offerte.punto-informatico.it Open in urlscan Pro
95.110.149.210  Public Scan

URL: https://offerte.punto-informatico.it/scripts/main.js?ver
Submission: On August 01 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

"use strict";function log(){for(var e,t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];"undefined"!=typeof _jeit_debug&&_jeit_debug&&(e=console).log.apply(e,["%cSELL","background: #fada55; color: #333; font:800 10px sans-serif; border-radius:3px 0 0 3px  ;padding:2px 3px;"].concat(i))}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var JeitPage=function(){function t(e){_classCallCheck(this,t),this.config_domain="undefined"!=typeof _jeit_domain?_jeit_domain:"service.justearn.it",log("config_domain",this.config_domain),this.page_domain=void 0!==e.page_domain?e.page_domain:window.location.hostname,this.page_domain=this.page_domain.replace("staging","www").replace("local.","www."),this.page_url=void 0!==e.page_url?e.page_url:window.location.href,this.is_amp=void 0!==e.is_amp&&e.is_amp,this.config=null,this.callback=e.callback,this.config_url="https://"+this.config_domain+"/config/"+this.page_domain+"/config.js?ver=1.5"+this.cacheBreaker(),this.loadConfig(function(){this.config&&(this.website=this.config.website,this.site=this.config.site,this.GAID=this.config.GAID,this.usetags=this.config.usetags,this.element=this.config.element,this.bodyclasses=this.config.bodyclasses,this.category=this.config.getCategory(),this.subcategory=this.config.getSubCategory(),this.tags=this.config.getTags(),this.keys=this.config.getKeys(),this.getTrackingID=this.config.getTrackingID,this.callback.call(this))}.bind(this))}return _createClass(t,[{key:"loadConfig",value:function(e){this.loadScript(this.config_url,function(){this.config=new PageConfig(this.is_amp,e,this.page_url,this.config_domain)}.bind(this))}},{key:"loadScript",value:function(e,t){var i=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=e,a.onreadystatechange=t,a.onload=t,i.appendChild(a)}},{key:"cacheBreaker",value:function(){var e=new Date;return"".concat(e.getFullYear()).concat(e.getMonth()).concat(e.getDate()).concat(e.getHours()).concat(e.getMinutes())}}]),t}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var JeitScroller=function(){function i(){_classCallCheck(this,i),this._supportPageOffset=void 0!==window.pageYOffset,this._isCSS1Compat="CSS1Compat"===(document.compatMode||""),this.pageHeight=0,this.viewPortHeight=0,this.viewPortPosition=0,this.scrolling=!1,this.actionStack=[];var e=this;this.actionStack.push(function(){e.setPageHeight.call(e),e.setViewPortHeight.call(e),e.setViewPortPosition.call(e)});for(var t=0;t<this.actionStack.length;t++)this.actionStack[t]();this._setScrollEventListener(),this.observer=this._setIntersectionObserver(),this.onInViewPort=new CustomEvent("inviewport")}return _createClass(i,[{key:"setPageHeight",value:function(){this.pageHeight=(this._isCSS1Compat?document.documentElement:document.body).scrollHeight}},{key:"setViewPortHeight",value:function(){this.viewPortHeight=window.innerHeight}},{key:"setViewPortPosition",value:function(){this.viewPortPosition=parseInt(this._supportPageOffset?window.pageYOffset:(this._isCSS1Compat?document.documentElement:document.body).scrollTop,10)}},{key:"getPosition",value:function(e){return e.getBoundingClientRect().top+this.viewPortPosition}},{key:"getYinViewPort",value:function(e){return e.getBoundingClientRect().top}},{key:"getProgressIn",value:function(e){var t=this.getPosition(e),i=e.scrollHeight,a=t+e.scrollHeight,o=t-this.viewPortHeight,e=t+e.scrollHeight-this.viewPortHeight;if(this.viewPortPosition<o||this.viewPortPosition>a)return null;if(this.viewPortPosition>o&&this.viewPortPosition<t)return 0;if(this.viewPortPosition>e&&this.viewPortPosition<a)return 100;t=this.viewPortPosition-t;return parseInt(100*t/(i-this.viewPortHeight))}},{key:"isInViewPort",value:function(e,t){t=1<arguments.length&&void 0!==t?t:0;return e.getBoundingClientRect().top<this.viewPortHeight+t&&0<e.getBoundingClientRect().bottom+t}},{key:"_setIntersectionObserver",value:function(){if("undefined"==typeof IntersectionObserver||!1 in window||!1 in window||!1 in window.IntersectionObserverEntry.prototype)return null;document.body;return window.observerTGTCallbacks||(window.observerTGTCallbacks=[]),this.observerCallbacksID=window.observerTGTCallbacks.length,new IntersectionObserver(this._observerCallback)}},{key:"onElementInViewport",value:function(e,t,i){i=!(2<arguments.length&&void 0!==i)||i;null==this.observer?(e.addEventListener("inviewport",t),this._polyfill(e,t,i)):(e.setAttribute("data-scroller-observer-callback-id",this.observerCallbacksID),window.observerTGTCallbacks[this.observerCallbacksID++]=t,this.observer.observe(e))}},{key:"_polyfill",value:function(e,t,i){var a=this;this.actionStack.push(function(){a.isInViewPort(e)&&(e.dispatchEvent(a.onInViewPort),i&&e.removeEventListener("inviewport",t))})}},{key:"_observerCallback",value:function(e,t){e.forEach(function(e){e.isIntersecting&&(window.observerTGTCallbacks[e.target.dataset.scrollerObserverCallbackId](),t.unobserve(e.target))})}},{key:"_executeActionStack",value:function(){for(var e=0;e<this.actionStack.length;e++)this.actionStack[e]();this.scrolling=!1}},{key:"_setScrollEventListenerAnimationframe",value:function(){window.addEventListener("scroll",function(){this.scrolling||(this.scrolling=!0,window.requestAnimationFrame(this._executeActionStack.bind(this)))}.bind(this))}},{key:"_setScrollEventListenerSetInterval",value:function(){window.addEventListener("scroll",function(){this.scrolling=!0}.bind(this)),setInterval(function(){this.scrolling&&(scrolling=!1,this._executeActionStack())}.bind(this),200)}},{key:"_setScrollEventListener",value:function(){window.requestAnimationFrame?this._setScrollEventListenerAnimationframe():this._setScrollEventListenerSetInterval()}}]),i}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i});var JeitLoader=function(){function t(e){_classCallCheck(this,t),this.loading=!1,this.loader=null,this.loader=this._setWorker(),this.onLoad=void 0!==e&&e.onLoad?e.onLoad:null,this.onError=void 0!==e&&e.onError?e.onError:null,this.onLoading=void 0!==e&&e.onLoading?e.onLoading:null}return _createClass(t,[{key:"_setLoaderWorker",value:function(){try{if(window.Worker)return new Worker(this.worker)}catch(e){}}},{key:"_loading",value:function(){this.loading=!0,this.onLoading&&this.onLoading()}},{key:"_error",value:function(e){this.loading=!1,this.onError&&this.onError(e)}},{key:"_loaded",value:function(e){this.loading=!1,this.onLoad&&this.onLoad(e)}},{key:"_parallelLoad",value:function(e){var t,i=this;this.loader?(this.loader.onmessage=function(e){switch(e.data.type){case"loaded":i._loaded.call(i,e.data.payload);break;case"loading":i._loading.call(i);break;case"error":i._error.call(i)}},this.loader.postMessage({url:e})):((t=new XMLHttpRequest).onload=function(e){var t=this.responseText;i._loaded.call(i,t)},t.onerror=function(){i._error.call(i)},t.open("GET",e),t.send(),i._loading.call(i))}},{key:"load",value:function(e){null!=e&&this._parallelLoad(e)}},{key:"_setWorker",value:function(){var e=new Blob([" onmessage = function(msg) { if(msg.data.url) load(msg.data.url); else postMessage({type : 'error', text : 'no url specified'}); }\n load = function(url) { var oReq = new XMLHttpRequest(); oReq.onload = transferComplete; oReq.onerror = transferFailed; console.log('_b| loading...', url); oReq.open('GET', url); oReq.send(); postMessage({type : 'loading'}); }\n function transferComplete() { console.log('_b| loaded'/*, this*/); postMessage({type: 'loaded', payload : this.response}); }\n function transferFailed() { console.log('_b| load error', this.responseText); postMessage({type: 'error', text : this.response}); }\n"]);return new Worker(window.URL.createObjectURL(e))}}]),t}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var JEITTracker=function(){function t(e){_classCallCheck(this,t),this.selectors=void 0!==e.selectors?e.selectors.map(function(e){return void 0===e.viewsEnabled&&(e.viewsEnabled=!0),e}):[],this.gaid=void 0!==e.gaid?e.gaid:null,"undefined"==typeof gtag&&this.insertGTAG(this.gaid),gtag("config",this.gaid,{send_page_view:!1}),this._scroller=void 0!==e.scroller?e.scroller:new JeitScroller,this._watch=[],this.init()}return _createClass(t,[{key:"init",value:function(){for(var e=this,t=0;t<this.selectors.length;t++)this._initSelector(this.selectors[t]);this._scroller.actionStack.push(function(){e._watchInit()})}},{key:"_watchInit",value:function(){for(var e=0;e<this._watch.length;e++)this._scroller.isInViewPort(this._watch[e].element,0)&&(this.trackEvt(this._watch[e].action,this._watch[e].args),this._watch.splice(e,1))}},{key:"_initSelector",value:function(e){if("event"===e.type)for(var t=document.querySelectorAll(e.selector),i=void 0!==e.args?e.args:{event_category:"track"},a=0;a<t.length;a++)this.initClick(t[a],e.name,i),e.viewsEnabled&&this.initView(t[a],e.name,i)}},{key:"initView",value:function(e,t,i){-1<this._watch.indexOf(e)||(t=t+" view",this._scroller.isInViewPort(e,0)?this.trackEvt(t,i):this._watch.push({element:e,action:t,args:i}))}},{key:"initClick",value:function(e,t,i){var a=this,o=t+" click";e.addEventListener("click",function(){return a.trackEvt(o,i)})}},{key:"add",value:function(e,t,i,a,o){o={selector:e,type:t,name:i,viewsEnabled:void 0===o||o};void 0!==a&&(o.args=a),this._initSelector(o)}},{key:"trackPV",value:function(e,t){var i,a,o=void 0!==t?t:this.gaid;null!=o&&(a=i=null,t=window.location.pathname+window.location.search+window.location.hash,null!=e?(i=void 0!==e.page_title?e.page_title:document.title,a=void 0!==e.page_path?e.page_path:t,gtag("config",o,{page_title:i,page_path:a})):gtag("config",o))}},{key:"trackEvt",value:function(e,t,i){var a=void 0!==i?a=i:this.gaid;null!=a&&void 0!==e&&null!=e&&""!=e&&(gtag("config",a,{send_page_view:!1,send_to:a}),void 0!==t?gtag("event",e,t):gtag("event",e))}},{key:"insertGTAG",value:function(e){var t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id="+e;var i=document.createElement("script");i.textContent="window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '"+e+"');",document.head.appendChild(t),document.head.appendChild(i)}}]),t}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var SectionsMapping=function(){function i(e,t){_classCallCheck(this,i),void 0!==e.config.website&&(this.url="https://"+e.config_domain+"/config/"+e.config.website+"/sections.json?"+this.cacheBreaker(),this.load(t))}return _createClass(i,[{key:"cacheBreaker",value:function(){var e=new Date;return"".concat(e.getFullYear()).concat(e.getMonth()).concat(e.getDate()).concat(e.getHours()).concat(e.getMinutes())}},{key:"load",value:function(t){new JeitLoader({onLoad:function(e){this.mapping=JSON.parse(e),t()}.bind(this)}).load(this.url)}},{key:"find",value:function(e){var t=this.mapping.sections[e];if(log("choices",t),void 0===t)return null;var i=Math.floor(Math.random()*t.length),e={keywords:t[i].keys.toLowerCase().replace(/\s+/g,"+"),tag:t[i].name};return void 0!==t[i].amazon_category&&(e.amazon_category=t[i].amazon_category),e}},{key:"findByTags",value:function(e){var t=Object.keys(this.mapping.sections);log("tags",e),log("keywords",t);var i=t.filter(function(t){return e.filter(function(e){return-1<e.value.toLowerCase().indexOf(t.toLowerCase())}).length}).filter(function(e){return""!=e.trim()});if(i.length){var a=i[0];log("keywordsInTag - Keyword found: ",i,a);a=this.shuffle(this.mapping.sections[a])[0];return{keywords:a.keys.toLowerCase().replace(/\s+/g,"+"),tag:a.name}}for(var o=[],n=0;n<t.length;n++)for(var r=0;r<e.length;r++)""!=e[r].value.trim()&&-1<t[n].toLowerCase().indexOf(e[r].value.toLowerCase())&&o.push(t[n]);if(o.length){a=this.shuffle(o)[0];log("keywordsContainingTags - Keyword found: ",a);a=this.shuffle(this.mapping.sections[a])[0];return{keywords:a.keys.toLowerCase().replace(/\s+/g,"+"),tag:a.name}}return null}},{key:"shuffle",value:function(e){for(var t=e.length-1;0<t;t--){var i=Math.floor(Math.random()*(t+1)),a=[e[i],e[t]];e[t]=a[0],e[i]=a[1]}return e}}]),i}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var SuggestMapping=function(){function i(e,t){_classCallCheck(this,i),void 0!==e.config.website&&(this.url="https://"+e.config_domain+"/config/"+e.config.website+"/deep_map.json?"+this.cacheBreaker(),this.load(t))}return _createClass(i,[{key:"cacheBreaker",value:function(){var e=new Date;return"".concat(e.getFullYear()).concat(e.getMonth()).concat(e.getDate()).concat(e.getHours()).concat(e.getMinutes())}},{key:"load",value:function(t){new JeitLoader({onLoad:function(e){this.mapping=JSON.parse(e),t()}.bind(this)}).load(this.url)}},{key:"find",value:function(e){var t=Object.keys(this.mapping);log("tags",e),log("keywords",t);for(var i=0;i<t.length;i++)for(var a=0;a<e.length;a++)if(-1<e[a].value.toLowerCase().indexOf(t[i].toLowerCase()))return this.set_mapped(this.shuffle(this.mapping[t[i]]));return[]}},{key:"shuffle",value:function(e){for(var t=e.length-1;0<t;t--){var i=Math.floor(Math.random()*(t+1)),a=[e[i],e[t]];e[t]=a[0],e[i]=a[1]}return e}},{key:"set_mapped",value:function(e){for(var t=0;t<e.length;t++)e[t].type="mapped";return e}}]),i}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var CopyHandler=function(){function a(e,t,i){_classCallCheck(this,a),this.site_config=void 0!==t?t:"service.justearn.it",this.offer=e,this.logopath="https://"+this.site_config+"/assets/logo/",this.logo={amazon:"amazon.png",ebay:"ebay.png",mrkeyshop:"mrkeyshop.png",eprice:"eprice.png",unieuro:"unieuro.png",cellularline:"cellularline.png",dx:"dx.png",gearbest:"gearbest.png","eglobal-central":"eglobalcentral.png",eglobalcentral:"eglobalcentral.png",honorbuy:"honorbuy.png","hp-store":"hpstore.png",magix:"magix.png",trendevice:"trendevice.png",tomtop:"tomtop.png","media-world":"mediaworld.png",mediaworld:"mediaworld.png",mobzilla:"mobzilla.png",yoox:"yoox.png",udemy:"udemy.png",domestika:"domestika.png",etoro:"etoro.png","freedom-finance":"freedomfinance.png",bitpanda:"bitpanda.png",trovaprezzi:"trovaprezzi.png",hostinger:"hostinger.png",nordvpn:"nordvpn.png",cyberghost:"cyberghost.png",kaspersky:"kaspersky.png",keliweb:"keliweb.png",norton:"norton.png",pcloud:"pcloud.png",aruba:"aruba.png","prime-day":"prime-day.png","html.it":"html-it.png",spusu:"spusu.png"},this.brandspath="https://"+this.site_config+"/assets/brands/",this.brands={apple:"apple.png",samsung:"samsung.png",huawei:"huawei.png",honor:"honor.png",oppo:"oppo.png",lg:"lg.png",motorola:"motorola.png"},this.getCopyList()}return _createClass(a,[{key:"getLogo",value:function(){var e=this.offer.merchant.replace(" ","-").toLowerCase();return void 0!==this.logo[e]?'<img class="blz_mkt_logo" src="'+this.logopath+this.logo[e]+'">':this.offer.merchant}},{key:"getCopyList",value:function(){this.copyList={deep:{discoup:[{id:"tkt0",pattern:"Approfitta delle offerte {{logo}}, oggi con {{type_article}} {{s_link}}{{price}}{{type}} di sconto{{c_link}}."},{id:"tkt1",pattern:"Oggi {{type_article}} {{price}}{{type}} di sconto su {{logo}} {{s_link}}Clicca subito, &egrave; un'offerta da non perdere!{{c_link}}"}],default:{label:[{id:"def0",pattern:"Oggi {{s_link}}{{label}}{{c_link}}, a <strong>&euro; {{price}}</strong> su {{logo}}"},{id:"def1",pattern:"Scopri l'offerta per {{s_link}}{{label}}{{c_link}}. Oggi a <strong>&euro; {{price}}</strong> su {{logo}}"}],title:[{id:"def0",pattern:"Oggi {{s_link}}{{title}}{{c_link}}, a <strong>&euro; {{price}}</strong> su {{logo}}"},{id:"def1",pattern:"Scopri l'offerta per {{s_link}}{{title}}{{c_link}}. Oggi a <strong>&euro; {{price}}</strong> su {{logo}}"}]}}}}},{key:"replaceBrand",value:function(e){for(var t=Object.keys(this.brands),i=0;i<t.length;i++){var a=e.match(new RegExp(t[i],"i"));a&&(e=e.replace(a[0],'<img class="blz_mkt_logo" src="'+this.brandspath+this.brands[t[i]]+'">'))}return e}},{key:"renderCopy",value:function(){this.offer.s_link='<span class="blz-link">',this.offer.c_link="</span>",this.offer.logo=this.getLogo(),void 0!==this.copyList.deep[this.offer.marketplace]?this.copies=this.copyList.deep[this.offer.marketplace]:void 0!==this.offer.label?this.copies=""!=this.offer.label?this.copyList.deep.default.label:this.copyList.deep.default.title:this.copies=this.copyList.deep.default.title;for(var e=Math.floor(Math.random()*this.copies.length),e=this.copies[e],t=e.pattern.match(/{{(.*?)}}/g),i=t.map(function(e){return e.replace(/[{{|}}]/g,"")}),a=e.pattern,o=0;o<t.length;o++)a=a.replace(t[o],this.offer[i[o]].trim());return this.copy={id:e.id,text:a},this.copy}}]),a}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var OfferRetiever=function(){function t(e){_classCallCheck(this,t),this.querypath="/api/v1/getoffer/{query}/marketplace/{waterfall}/items/2".replace(/\//g,"___"),this.querypath="https://"+e.page.config_domain+"/assets/querymaker/"+this.querypath+"/",this.blacklist=[],this.waterfall=[],this.queries=[],this.callback=function(e){},void 0!==e&&(this.default=void 0!==e.default?e.default:"",this.blacklist=void 0!==e.blacklist?e.blacklist:[],this.waterfall=void 0!==e.waterfall?e.waterfall:[],this.callback=(void 0!==e.callback?e:this).callback,this.queries=(void 0!==e.queries?e:this).queries)}return _createClass(t,[{key:"inBlacklist",value:function(t){return 0<this.blacklist.filter(function(e){return t.toLowerCase().includes(e.toLowerCase())}).length}},{key:"getOffer",value:function(o,n){var r,e,t;0!=o.length?(log("{query} = ",r=o.shift(),"remaining",o.length),e=new JeitLoader({onLoad:function(e){for(var e=JSON.parse(e),t="undefined"!=e?e:[],i=null,a=null;(a=t.shift())&&!i;)0==o.length&&this.default&&a.marketplace==this.default&&(i=a),i||"pure"==r.type||"default"==r.type||((i=a).label=r.label),"pure"!=r.type||this.page.config.pure_deep_lock||!i&&a.title.toLowerCase().includes(r.value.toLowerCase())&&(this.inBlacklist(a.title)||(i=a));log("selected offer",i),i?n(i):this.getOffer(o,n)}.bind(this)}),t=r.value.replace(/[\s|//]/g,"+").substring(0,180),log("request",t=this.querypath.replace("{query}",t).replace("{waterfall}",this.waterfall)),e.load(t)):n(null)}}]),t}();function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var StopWords=function(){function o(){_classCallCheck(this,o);var e=["l","il","lo","la","i","gli","le","un","uno","una"],t=["di","d","a","ad","da","in","con","su","per","tra","fra"],i=["del","dello","della","degli","delle","dei","dell","al","allo","alle","agli","alla","ai","all","sul","sullo","sugli","sulla","sulle","sui","sull","dal","dallo","dalla","dagli","dai","dall","nel","nello","nella","negli","nei","nell","col","coi"],a=["io","tu","egli","lui","lei","noi","voi","loro","essi"];this.list=[].concat(_toConsumableArray(e),_toConsumableArray(t),_toConsumableArray(i),_toConsumableArray(a),["si","no","m","km","cm","gr","hg","kg","l","cl","ml","s","è","c","ce","li","l","ma","anche","e","o","che","più","cosa","cos","com","non","chi","se","però","tutti","tutto","tutte","così","vi","ti","ci","già","prezzo","poi","quando","cui"],["nell","tue","dovrà","avesse","quello","tranne","sempre","nonsia","siano","avrà","faccio","diventato","ed","abbiamo","soltanto","inoltre","ahimè","altrui","dagli","tuttavia","dappertutto","dirimpetto","ahime","spesso","facesse","noi","oltre","che","ministro","dopo","da","gia","stavi","fecero","scola","farei","fui","inc","codesto","foste","moltissimo","loro","ci","certa","gliele","recentemente","fossimo","facendo","facciano","salvo","stiano","ultimo","nonostante","durante","perfino","starebbe","generale","ottanta","ognuna","una","saremo","fatto","perciò","starei","aveste","no","avrai","facevate","facesti","stato","parecchi","magari","faccia","insieme","recente","avranno","casa","pochissimo","avesti","aveva","al","detto","facciamo","vostra","press","varia","futuro","allora","prima","coloro","quali","mia","già","haha","degli","troppo","là","stati","sarò","come","lui","abbiate","chicchessia","niente","qualcuna","stanno","diventare","avemmo","dunque","sarei","stiamo","poco","avessero","quelli","altrimenti","molti","vostri","ancora","starà","momento","dov","circa","osi","lavoro","siate","attraverso","colui","farete","persino","nazionale","mediante","molto","staresti","percio","col","averlo","facessero","questo","seguito","avessimo","sembrato","grazie","piu","principalmente","nostro","stata","basta","ieri","ma","po","tre","poi","stesti","frattempo","su","sette","sugl","varie","chi","sembra","sono","cento","poiche","registrazione","sul","sull","staranno","mondo","proprio","diventa","vale","visto","alcuno","quanti","ebbe","parecchio","stia","sta","nostre","sei","quella","fece","successivo","faresti","facevo","sullo","possedere","saremmo","eravate","avuta","dovunque","non","mezzo","all","fai","dallo","uguali","scopo","stetti","marche","preferibilmente","dove","nostri","se","qualcuno","eravamo","accidenti","sareste","faceste","sua","esser","nessuno","sia","uomo","sotto","ore","perché","tutti","furono","gliene","miei","malissimo","me","effettivamente","avanti","macche","avrete","fuori","stessero","facessi","le","vario","cosi","lungo","dell","avrebbe","avrò","era","contro","forza","certo","fossero","fin","miliardi","attesa","citta","faceva","mentre","tra","stando","stessimo","quante","stai","medesimo","fra","lo","lato","fareste","avremo","farai","entrambi","gli","coll","nove","tua","realmente","nei","agli","colei","però","sarebbero","dai","piglia","essendo","ebbi","gruppo","finalmente","avessi","avevamo","anni","subito","otto","quanto","facevano","lontano","cogli","per","affinche","stette","un","sue","cioe","meno","paese","farà","negli","pure","avute","peccato","mila","stemmo","nemmeno","trenta","luogo","glieli","così","co","sugli","certi","esempio","tanto","cortesia","più","di","abbia","sulle","favore","saresti","avrebbero","fu","ciascuno","altri","facciate","stesse","male","anticipo","avete","giorni","tempo","meglio","questi","vostro","ti","fare","allo","sig","qualche","stavano","bene","starete","tu","quasi","negl","sarà","nulla","due","essi","nessuna","può","stesso","via","certe","riecco","stessa","mio","avrei","avuto","avevo","presa","avevano","qualunque","ora","infatti","dagl","sara","adesso","avere","davanti","dovra","vita","delle","alcuni","conciliarsi","persone","volta","stettero","città","nella","ho","comunque","finche","intorno","tutto","steste","faranno","avreste","deve","qui","alcuna","ciascuna","parecchie","anche","fossi","od","fosti","avendo","srl","dietro","avevi","stiate","ella","starai","volte","dal","essere","hanno","queste","sarai","solito","solo","invece","cui","io","abbastanza","si","quel","codesta","vi","seguente","nondimeno","ogni","neppure","chiunque","ha","tale","farebbe","agl","vicino","vostre","mancanza","avuti","perche","probabilmente","concernente","ai","dalle","farebbero","dire","li","faremmo","purtroppo","quantunque","ero","malgrado","cominci","sarebbe","governo","verso","secondo","dall","vari","sulla","sui","giacche","lasciato","gliela","conclusione","ne","fine","stavo","relativo","senza","facemmo","partendo","il","siamo","tutte","quindi","eppure","aver","sarete","sto","improvviso","quando","nessun","staremo","intanto","oppure","anno","puo","stareste","facevi","degl","ansa","starò","facevamo","brava","abbiano","dice","te","fino","facessimo","altro","primo","voi","esse","ossia","mosto","mai","saranno","stavamo","torino","cosa","del","farò","dalla","avremmo","altrove","assai","pieno","tuo","stavate","trovato","alle","state","ulteriore","mesi","successivamente","caso","avente","lei","forse","mie","ad","oggi","con","maggior","tali","quattro","talvolta","feci","piedi","avresti","codesti","egli","titolo","eri","staremmo","erano","fosse","ecco","avevate","stava","posteriore","cos","peggio","milioni","potrebbe","faremo","fanno","cima","parte","cio","novanta","sembrare","quanta","nostra","nel","pero","dello","nelle","uno","mi","coi","consiglio","qualcosa","sembri","sopra","fa","dei","dentro","giorno","scorso","possa","tutta","tuoi","della","suoi","glielo","questa","bravo","benissimo","quale","la","ecc","saro","va","a","in","minimi","suo","posto","piuttosto","ex","ognuno","siete","nello","modo","stessi","alla","quelle","ebbero","fummo","grande","hai","nuovo","starebbero","quest"])}return _createClass(o,[{key:"removeFrom",value:function(e){return e.toLowerCase().split(" ").filter(function(e){return-1==this.list.indexOf(e)}.bind(this)).join(" ")}}]),o}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}"undefined"!=typeof module&&module.exports&&(module.exports=StopWords);var Punctuation=function(){function e(){_classCallCheck(this,e),this.apostrophe=/['`‘’"]/g,this.punctuations_and_characters=/['!“”’"#$%&\'()\*+,\-\.\/:;<=>?@\[\\\]\^…–_°`{|}~']/g}return _createClass(e,[{key:"removeFrom",value:function(e){return(e=e.replace(this.apostrophe," ")).replace(this.punctuations_and_characters," ").replace("  "," ")}}]),e}();function NGrams(e){this.terms=e,this.make=function(o){return this.terms.map(function(e,t){if(t>this.terms.length-o)return null;for(var i=[e],a=1;a<o;a++)i.push(this.terms[t+a]);return i}.bind(this)).filter(function(e){return null!=e}).map(function(e){return e.join(" ")})}}function Density(e){this.text=e.replace(/[\n\r]/g," ").replace(/\s+/g," "),this.stopwords=new StopWords,this.punctuation=new Punctuation,this._options={minKeywordLength:2},this.calculateNGramsDensity=function(e){var t=this.stopwords.removeFrom(this.punctuation.removeFrom(this.text)).split(" ").map(function(e){return e.trim()}).filter(function(e){return e.length>=this._options.minKeywordLength}.bind(this));return 1<e&&(t=new NGrams(t).make(e)),this.calculateTermsDensity(t)},this.calculateTermsDensity=function(e){var t=e.sort().reduce(function(e,t){return e[t]=void 0===e[t]?1:e[t]=e[t]+1,e},{});return Object.keys(t).map(function(e){return{keyword:e,count:t[e]}}).filter(function(e){return 1<e.count}).sort(function(e,t){return e.count>t.count?-1:e.count<t.count?1:0})}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}"undefined"!=typeof module&&module.exports&&(module.exports=Punctuation);var Actions=function(){function t(e){_classCallCheck(this,t),this.page=void 0!==e.page?e.page:null,void 0!==this.page.config.stop&&this.page.config.stop()?log("(!) Stop. This page is not allowed"):(this.scroller=void 0!==e.scroller?e.scroller:null,this.tracker=void 0!==e.tracker?e.tracker:null,this.positions=this.page.config.getPositions(),log("positions:",this.positions),this.sections=new SectionsMapping(this.page,function(){this.suggest=new SuggestMapping(this.page,function(){var e=this.getDeepQueries();log("actions deep queries",e),new OfferRetiever({default:this.page.config.default_marketplace,blacklist:this.page.config.blacklist,waterfall:this.selectWaterfall(this.page.config.waterfalls),page:this.page}).getOffer(e,function(e){var t=null;if(null!=e&&(t=e.marketplace==this.page.config.default_marketplace?e:null),null!=e&&null==t){log("offer not null and is not default");for(var i=0;i<this.positions.length;i++)this.printLink(this.positions[i],"deep",e.label,e)}else if("search_link"==this.selectWaterfall(this.page.config.fallbackbalance)){if(this.tag_keywords=this.getSearchQuery(),log("this.tag_keywords",this.tag_keywords),!this.tag_keywords)return null;log("offer not found, let's search",this.page.config.search_mkt);var a=void 0!==this.page.config.amz_site_category?this.page.config.amz_site_category:"",a=void 0!==this.tag_keywords.amazon_category?this.tag_keywords.amazon_category:a,o={marketplace:this.page.config.search_mkt,amazon_category:a};log("search_offer",o,this.page.config);for(i=0;i<this.positions.length;i++)this.printLink(this.positions[i],"search",this.tag_keywords.tag,o)}else if(null!=t)for(i=0;i<this.positions.length;i++)this.printLink(this.positions[i],"deep",t.label,t)}.bind(this))}.bind(this))}.bind(this)))}return _createClass(t,[{key:"getDeepQueries",value:function(){var e=this.page.tags.filter(function(e){return"product"==e.type}),t=this.suggest.find(this.page.tags.filter(function(e){return"search"!=e.type})),t=e.concat(t);return log("deep_queries",t),t.length||this.page.config.pure_deep_lock||(t=this.page.tags.filter(function(e){return"pure"==e.type})),t.length||(t=this.suggest.find([{value:"default",label:"default"}])),t.length||(t=[{value:"_d_e_f_a_u_l_t_",label:"",type:"default"}]),t}},{key:"getSearchQuery",value:function(){var e=this.sections.findByTags(this.page.tags.filter(function(e){return"search"==e.type}));if(null!=e)return e;log("no brand");e=this.sections.find(this.page.category);if(null!=e)return e;log("no category");e=this.sections.findByTags(this.page.tags.filter(function(e){return"pure"==e.type}));if(log("pure_keywords",e),null!=e)return e;log("no pure");e=this.sections.find("default");return null!=e?e:null}},{key:"getSearchLinkMarkup",value:function(e,t){var i=this.tag_keywords||this.cat_keywords;return log("search",i,this,this.tag_keywords,this.cat_keywords),this.page.config.getSearchLinkMarkup(i,e,t)}},{key:"selectWaterfall",value:function(e){for(var t=Math.ceil(100*Math.random()),i=0,a=0;a<e.length;a++){if(i<=t&&t<=i+e[a].pressure)return e[a].waterfall.replace(" ","");i+=e[a].pressure}return"amazon"}},{key:"getDeepLinkMarkup",value:function(e,t){var i=this.page.config.getDeepLinkStyle(t);if(void 0!==this.page.config.getDeepLinkMarkup)return this.page.config.getDeepLinkMarkup(e,t)+i;t=new CopyHandler(e,"service.justearn.it",this.deep_mkts).renderCopy(),i='<p><a data-track="{tracking}" class="blz-url" href="'.concat(e.link,'" target="_blank">').concat(t.text,"</a></p>").concat(i);return"discoup"==e.marketplace&&(i=i.replace(/\{tracking-id\}/g,"bzm-{tracking-id}")),i}},{key:"getSource",value:function(){var e="desktop",t=navigator.userAgent||navigator.vendor||window.opera,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)),a=/android/i.test(t),o=/iPad|iPhone|iPod/.test(t),t=-1<t.indexOf("FBAN")||-1<t.indexOf("FBAV");return i&&(e="mobile",a&&(e+="-android"),o&&(e+="-ios"),t&&(e+="-fbiab")),e}},{key:"printLink",value:function(e,t,i,a){var o=void 0!==a?a.marketplace:void 0!==this.page.config.deep_mkt?this.page.config.deep_mkt:this.page.config.search_mkt;void 0!==this.page.config.tracksource&&this.page.config.tracksource&&(t=this.getSource()+"-"+t);var n="blz ".concat(t," ").concat(e.name," ").concat(this.page.site," ").concat(o),r=this.page.getTrackingID(e);"discoup"==o&&(r=r.replace("-21","-"+t+"-21")),r=r.replace("_type_",t),log("type:",t);var s=t.includes("deep")?this.getDeepLinkMarkup(a,e):this.getSearchLinkMarkup(this.page.config.search_mkt,e),t=(s=(s=(s=s.replace("<a",'<a rel="nofollow"')).replace(/\{tracking\}/g,n)).replace(/\{tracking-id\}/g,r)).match(/data-track="(.*?)"/)[1];log("proxy",this.page.config.proxy),s=this.optimizeURL(s,o),log("marketplace",o),"amazon"==o&&void 0!==a.amazon_category&&""!=a.amazon_category&&(s=s.replace("&__mk_it_IT","&i="+a.amazon_category+"&__mk_it_IT")),void 0!==this.page.config.proxy&&this.page.config.proxy&&(n=-1<navigator.userAgent.toLowerCase().indexOf("android"),log("old_url",o=s.match(/href="(.*?)"/)[1]),a="https://"+this.page.config.proxy+"/?url="+encodeURIComponent(o.replace(/\s+/g,"+")),n&&(a=o.replace(/\s+/g,"+").replace("https://www.amazon.it/s?k","amzn://apps/android?s").replace("tag=","t=")),s=s.replace(o,a)),e.element.insertAdjacentHTML(e.where,s);i={event_category:"track",event_label:i};log("analytics tracking data | ",t),log("marketplace tracking id | ",r),this.tracker.add('a[data-track^="'+t+'"]',"event",t,i,this.isViewTrackingEnabled())}},{key:"isViewTrackingEnabled",value:function(){return null==_typeof(this.page.config.dont_track_views)||!this.page.config.dont_track_views}},{key:"optimizeURL",value:function(e,t){var i=e.match(/href="(.*?)"/)[1],a=i.replace(/\s+/g,"+");return"amazon"==t&&(a=(a=a.replace("s?k","s/ref=as_li_ss_tl?k")).replace("&tag","&__mk_it_IT=%C3%85M%C3%85%C5%BD%C3%95%C3%91&tag"),this.getSource().includes("mobile-android")&&(a=this.createAmazonAndroidDeepLink(a)),log("amz_browser_fallback",a)),e=e.replace(i,a)}},{key:"getIpAndUserAgent",value:function(t){new JeitLoader({onLoad:function(e){log("loaded"),t(e.split("\n").reduce(function(e,t){return e[t.split("=")[0]]=t.split("=")[1],e},{}))}.bind(this)}).load("https://www.cloudflare.com/cdn-cgi/trace")}},{key:"trackIpAndUserAgent",value:function(t,e){new JeitLoader({onLoad:function(e){log("ip salvato",t,e)}.bind(this)}).load("https://service.justearn.it/assets/click_check.php?ip="+t+"&useragent="+e)}},{key:"createAmazonAndroidDeepLink",value:function(e){var t=e.replace("-android",""),t=";S.browser_fallback_url="+encodeURIComponent(t);return e.replace("https://www.amazon.it","intent://#Intent;package=com.amazon.mShop.android.shopping;scheme=com.amazon.mobile.shopping.web://amazon.it")+t+";end"}},{key:"optimizeAndroidFacebookChromeURL",value:function(e){encodeURI(e);return e.replace("https://www.amazon.it","intent://#Intent;package=com.android.chrome;scheme=https://amazon.it")+";end"}},{key:"loadTags",value:function(t){new JeitLoader({onLoad:function(e){this.tags=e.split("\n"),this.tags.sort(function(e,t){return t.length-e.length}),t()}.bind(this)}).load(this.tags_url)}}]),t}();function keys_find(e,t,i,a){for(var o=i;o<a;o++)if(-1<e[o].indexOf(t))return e[o];return null}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var JeitMain=function(){function i(e){var t=this;_classCallCheck(this,i),this.adblock=this.isAdBlocked(),this.isMobile=this.isMobile(),this.ieVersion=this.ieVersion(),log("justearn is on"),this.page=new JeitPage({callback:function(){t.scroller=new JeitScroller,t.tracker=new JEITTracker({gaid:""!=t.page.GAID?t.page.GAID:"UA-167641007-1",scroller:t.scroller}),t.actions=new Actions({page:t.page,scroller:t.scroller,tracker:t.tracker})}})}return _createClass(i,[{key:"isMobile",value:function(){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||screen.width<=720||window.innerWidth<=720}},{key:"isAdBlocked",value:function(){return!1}},{key:"ieVersion",value:function(e){e=e||navigator.userAgent,e=/\b(MSIE |Trident.*?rv:|Edge\/)(\d+)/.exec(e);return e?parseInt(e[2]):0}}]),i}(),blzmtc=null,blzmtc="undefined"!=typeof blzmtc_domain?new JeitMain({pageurl:blzmtc_domain}):new JeitMain;