';if(closeEvent) {Event.add(closebox, 'click', closeEvent);}Event.add(closebox, 'click', this.close);Dom.add(closebox,box);let msgbox = Dom.make('div');msgbox.innerHTML = message;Dom.add(msgbox,box);let scover = Dom.make('div');scover.id = 'alertboxscreen';if(closeEvent) {Event.add(scover, 'click', closeEvent);}Event.add(scover, 'click', this.close);Dom.add(scover,d.body);let divwidth = box.offsetWidth;let divheight = box.offsetHeight;let topposition = parseInt(((viewheight-divheight)/2)+scrolltop);let leftposition = parseInt(((viewwidth-divwidth)/2)+scrollleft);if(topposition<0) topposition = 0;if(leftposition<0) leftposition = 0;box.style.top = topposition + 'px';box.style.left = leftposition + 'px';},close:function() {let allWrap = d.getElementById(allWrapId) ? $(allWrapId) : d.body.children[0];allWrap.style.filter = "none";Dom.remove('alertboxscreen');$(alertBoxID).style.opacity = "0";setTimeout(function(){$(alertBoxID).style.display='none';Dom.remove(alertBoxID);}, 600);}};function isStorageAvailable(){try {localStorage.setItem('t', 't');localStorage.removeItem('t');return true;}catch(e) {return false;}}var StorageAvailable = isStorageAvailable();/*function traverse(target) {for (const key in target) {if (key !== 'e' && typeof target[key] === 'object') {traverse(target[key]);}else {console.log(key, target[key]);}}}*/