!function(){var t=["ad","ad01","ad-","ad_","_ad_","ads","ads-","-ads-","ads_","_ads_","-ads-","ad-text","ad-banner","ads-banner","adSense","adContent","adBlock","adsbygoogle","pub300","pub_300x250","pub_300x250m","pub_728x90","text-ad","text_ad","text_ads","text-ads","text-ad-links","textad","textAd","textads","view_ad"],e=["width: 1px !important;","height: 1px !important;","position: absolute !important;","left: -10000px !important;","top: -1000px !important;","background: transparent !important;"],o={offsetParent:null,offsetHeight:0,offsetLeft:0,offsetTop:0,offsetWidth:0,clientHeight:0,clientWidth:0},i={baitClass:"subnav-container ad ad01",baitStyle:"visibility:visible; display:block; width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"};function n(t){var e=new Date;e.setTime(e.getTime()+3e5),document.cookie="__adblocker="+(t?"true":"false")+"; expires="+e.toUTCString()+"; path=/"}function s(){n(!0)}function c(){window.__purposefulCheck||n(!1)}function a(){var t=!1;try{var e=window.location.search,o="xpdebug";(t=(t=t||e.match(new RegExp("[&?]xpdebug")))||window.localStorage&&null!==window.localStorage.getItem(o))&&window.localStorage&&console.log("[BABCommon][isDebug] xpdebug="+window.localStorage.getItem(o))}catch(t){}return!!t}var d=/*#__PURE__*/function(){function i(o){var i=this;this.options={checkOnLoad:!1,resetOnEnd:!0,loopCheckTime:50,loopMaxNumber:5,baitId:"adblocker_bait",baitClass:t.join(" "),baitStyle:e.join(" "),debug:!1},this.checking=!1,this.bait=null,this.loop=null,this.loopNumber=0,this.event={detected:[],notDetected:[]},void 0!==o&&this.setOptions(o);var n=this.options,s=n.checkOnLoad,c=n.debug;window.addEventListener("load",function(){setTimeout(function(){s&&(c&&i.log("onload->eventCallback","A check loading is launched"),i.bait||i.createBait(),i.check())},1)}.bind(this),!1)}var n=i.prototype;return n.log=function(t,e){this.options.debug&&console.log("[BAB]["+t+"] "+e)},n.setOptions=function(t,e){if(void 0!==e&&"string"==typeof t){var o=t;(t={})[o]=e}for(var i in t)this.options[i]=t[i],this.options.debug&&this.log("setOption",'The option "'+i+'" was assigned to "'+t[i]+'"');return this},n.createBait=function(){var t=this.options,e=t.baitId,o=t.debug;document.body.insertAdjacentHTML("beforeend",'
'),this.bait=document.getElementById(e),o&&this.bait&&this.log("creatBait","Bait has been created")},n.destroyBait=function(){var t=this.options,e=t.debug,o=document.getElementById(t.baitId);o&&o.remove(),this.bait=null,e&&this.log("destroyBait","Bait has been removed")},n.check=function(t){var e=this;return void 0===t&&(t=!0),this.options.debug&&this.log("check","An audit was requested "+(t?"with a":"without")+" loop"),this.checking?(this.log("check","A check was canceled because there is already an ongoing"),!1):(this.checking=!0,this.bait||this.createBait(),this.loop&&this.stopLoop(),this.loopNumber=0,t&&(this.loop=setInterval(function(){e.checkBait(t)},this.options.loopCheckTime)),setTimeout(function(){e.checkBait(t)},1),this.log("check","A check is in progress ..."),!0)},n.checkBait=function(t){var e,i,n,s,c;this.bait||this.createBait(),e=this.bait,n="none"===(i=document.defaultView.getComputedStyle(e,null)).display||"hidden"===i.visibility,s=Object.entries(o).some(function(t){return e[t[0]]===t[1]}),c=n||s,this.options.debug&&this.log("checkBait","A check ("+(this.loopNumber+1)+"/"+this.options.loopMaxNumber+" ~"+(1+this.loopNumber*this.options.loopCheckTime)+"ms) was conducted and detection is "+(c?"positive":"negative")),t&&(this.loopNumber++,this.loopNumber>=this.options.loopMaxNumber&&this.stopLoop()),c?(this.stopLoop(),this.destroyBait(),this.emitEvent(!0),t&&(this.checking=!1)):this.loop||(this.destroyBait(),this.emitEvent(!1),t&&(this.checking=!1))},n.stopLoop=function(){clearInterval(this.loop),this.loop=null,this.loopNumber=0,this.options.debug&&this.log("stopLoop","A loop has been stopped")},n.emitEvent=function(t){var e=this.options.debug;e&&this.log("emitEvent","An event with a "+(!0===t?"positive":"negative")+" detection was called");var o=t?this.event.detected:this.event.notDetected;for(var i in o)e&&this.log("emitEvent","Call function "+(parseInt(i)+1)+"/"+o.length),Object.prototype.hasOwnProperty.call(o,i)&&o[i]();return this.options.resetOnEnd&&this.clearEvent(),this},n.clearEvent=function(){this.event.detected=[],this.event.notDetected=[],this.log("clearEvent","The event list has been cleared")},n.on=function(t,e){return this.event[t?"detected":"notDetected"].push(e),this.options.debug&&this.log("on",'A type of event "'+(t?"detected":"notDetected")+'" was added'),this},n.onDetected=function(t){return this.on(!0,t)},n.onNotDetected=function(t){return this.on(!1,t)},i}();!function(t){t.BlockAdBlock=new d,void 0===t.blockAdBlock&&(t.blockAdBlock=new d({checkOnLoad:!1,resetOnEnd:!0,debug:a()}));var e=function(){void 0!==t.document.body&&t.document.body?blockAdBlock.check():document.addEventListener("DOMContentLoaded",function(){blockAdBlock.check()},!1)};"undefined"==typeof blockAdBlock?s():(blockAdBlock.onDetected(s),blockAdBlock.onNotDetected(c));var o=t.document.location.host;/businessinsider.com/i.test(o)?(blockAdBlock.setOptions(i),e()):/therealdeal\.com/i.test(o)?function(){var e=!1,o=function(){e||(e=!0,blockAdBlock.check())};if(void 0!==t.document.body&&t.document.body)o(),blockAdBlock.log("coba","bae");else{var i=t.MutationObserver||t.WebKitMutationObserver||t.MozMutationObserver;if(i){var n=new i(function(){t.document.body&&(n.disconnect(),o(),blockAdBlock.log("coba","mo"))});n.observe(document.documentElement,{childList:!0,subtree:!0})}else!function e(){void 0!==t.document.body&&t.document.body?(o(),blockAdBlock.log("coba","st")):setTimeout(e,5)}();document.addEventListener("DOMContentLoaded",function(){o(),blockAdBlock.log("coba","dcl")},!1)}}():e()}(window)}();