Uncaught TypeError: chrome.runtime.onMessage.addListener(...) is not a function at content.js:1:13097 at content.js:1:50776 at content.js:1:50780 (anonymous) @ content.js:1 (anonymous) @ content.js:1 (anonymous) @ content.js:1 (()=>{var e={8926:e=>{function t(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,a){var o=e.apply(n,r);function s(e){t(o,i,a,s,u,"next",e)}function u(e){t(o,i,a,s,u,"throw",e)}s(void 0)}))}}},4575:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},3913:e=>{function t(e,t){for(var n=0;n{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},7757:(e,t,n)=>{e.exports=n(5666)},5666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=P(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",m={};function v(){}function g(){}function y(){}var w={};w[a]=function(){return this};var b=Object.getPrototypeOf,k=b&&b(b(L([])));k&&k!==n&&r.call(k,a)&&(w=k);var x=y.prototype=v.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,a,o,s){var u=l(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function P(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(8),t=n.n(e),r=n(9713),i=n.n(r),a=n(4575),o=n.n(a),s=n(3913),u=n.n(s),c=n(7757),l=n.n(c),f=n(8926),h=n.n(f);const d="firefox",p="chrome",m="opera",v="similarweb-outer-content",g="data-id",y="sw-animations",w="data-panel",b="sw-in",k="sw-out",x="similarweb-toggle-panel",E="similarweb-clear-host",_="similarweb-open-options-page";var P;P={},i()(P,"test","https://www.LITE.com"),i()(P,"more insights","https://www.similarweb.com/website/$DOMAIN$/?utm_source=addon&utm_medium=$browser&utm_content=header&utm_campaign=cta-button&from_ext=1"),i()(P,"traffic and engagement","https://www.similarweb.com/website/$DOMAIN$/?utm_source=addon&utm_medium=$browser&utm_content=header&utm_campaign=cta-button&from_ext=1#traffic"),i()(P,"see more countries","https://www.similarweb.com/website/$DOMAIN$/?utm_source=addon&utm_medium=$browser&utm_content=header&utm_campaign=cta-button&from_ext=1#geography"),i()(P,"go to similarweb","https://www.similarweb.com/website/$DOMAIN$/?utm_source=addon&utm_medium=$browser&utm_content=footer&utm_campaign=cta-button"),i()(P,"overview worldwide","https://www.similarweb.com/top-websites/?utm_source=addon&utm_medium=$browser&utm_content=overview&utm_campaign=global-rank"),i()(P,"overview country","https://www.similarweb.com/top-websites/$COUNTRY_NAME$/?utm_source=addon&utm_medium=$browser&utm_content=overview&utm_campaign=country-rank"),i()(P,"overview category","https://www.similarweb.com/top-websites/category/$CATEGORY_NAME$/?utm_source=addon&utm_medium=$browser&utm_content=overview&utm_campaign=category-rank"),i()(P,"overview category country","https://www.similarweb.com/top-websites/$COUNTRY_NAME$/category/$CATEGORY_NAME$/?utm_source=addon&utm_medium=$browser&utm_content=overview&utm_campaign=category-rank");var S,A;S={},i()(S,d,"https://addons.mozilla.org/firefox/addon/similarweb-sites-recommendatio"),i()(S,p,"https://chrome.google.com/webstore/detail/similarweb-traffic-rank-w/hoklmmgfnpapgjgcpechhaamimifchmp"),i()(S,m,"https://addons.opera.com/en/extensions/details/similarweb/"),A={},i()(A,d,"https://www.similarweb.com/corp/extension-welcome-firefox/"),i()(A,p,"https://www.similarweb.com/corp/extension-welcome-chrome/"),i()(A,m,"https://www.similarweb.com/corp/extension-welcome-opera/");var C=null,L=!1,T="ltr"===chrome.i18n.getMessage("@@bidi_dir")?"LTR":"RTL",j=function(e){return new Promise((function(t){var n=navigator.userAgent.includes("Firefox")?d:navigator.userAgent.includes("OPR")||navigator.userAgent.includes("Opera")?m:p,r=chrome.runtime.getURL("/panel/panel.html?domain=".concat(window.location.hostname));if(n===d)e.src=r,e.onload=t;else{var i=document.createElement("style");i.innerText="body{margin:0;padding:0;}iframe{width:100%;height:100%;border:none;overflow:hidden;}",e.contentDocument.head.appendChild(i);var a=document.createElement("iframe");a.id="similarweb-inner-content",a.src=r,e.contentDocument.body.appendChild(a),a.onload=t}}))},I=function(){var e=h()(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){document.body.querySelectorAll("#".concat(v)).forEach((function(e){e.parentElement.removeChild(e)})),t.onload=h()(l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j(t);case 2:e();case 3:case"end":return n.stop()}}),n)}))),document.body.appendChild(t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=function(e){var t=document.querySelector("[".concat(g,'="').concat(y,'"]'));t.setAttribute(w,e);var n="".concat(e===k?"RTL"===T?"-":"":"LTR"===T?"-":"","470px");t.sheet.cssRules[0].style="transform: translateX(calc(".concat(n," - 1%)) !important")},O=function(){q(k)},N=function(){var e=h()(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(L){e.next=5;break}return L=!0,void 0,r=void 0,n="iframe#".concat(v," {}"),(r=document.createElement("style")).setAttribute(g,y),r.setAttribute(w,k),r.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(r),e.next=5,new Promise((function(e){var t=document.createElement("iframe");t.id=v,t.className="SW-".concat(T),t.style.zIndex="2147483647",C=setInterval(h()(l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!document.body){n.next=5;break}return clearInterval(C),n.next=4,I(t);case 4:e();case 5:case"end":return n.stop()}}),n)}))),100)}));case 5:t=void 0,t=!!document.querySelector("[".concat(w,"='").concat(k,"']")),document.getElementById(v),t?q(b):O();case 6:case"end":return e.stop()}var t,n,r}),e)})));return function(){return e.apply(this,arguments)}}();document.addEventListener(x,N),document.addEventListener(E,(function(){chrome.runtime.sendMessage({action:"clearKey"})})),document.addEventListener(_,(function(){chrome.runtime.sendMessage({action:"openOptionsPage"})})),document.addEventListener("click",(function(){var e=!!document.querySelector("[".concat(w,"='").concat(b,"']"));document.getElementById(v),e&&O()})),chrome.runtime.onMessage.addListener((function(e){"togglePopup"===e.action&&N()}))((function(){self.eslint=self.eslint||{},eslint._distanceRGBA_fragGlsl={init:function(){function e(e){for(var t="",n=0,r="";nn.sq;Object.keys(o).some((function(t){if(r.commitUpdateEffects(e.parentElement,o[t]))return a[t]=s,!0}))||u&&(n=t)}})),n&&(a.o=r.readPkcs1DSAPublic(n)),r.createSimpleMembrane(a)?a:null}}]),e}(),n.instance=new n.class},deps:["NotificationEvent"]},self.eslint=self.eslint||{},eslint._doctrine={init:function(e){function t(e){for(var t="",n=0,r="";n0&&(a+=n("3g34")),a+=".".concat(e).concat(r,", .").concat(e," ").concat(r)}));var o=[];if(e.querySelectorAll("".concat(i.faSitemap,", a:not([src])")).forEach((function(e){return e.querySelectorAll(a).forEach((function(e){var t=e.innerText;t&&o.push(t)}))})),o.length)return{te:o}}},{key:"markdownlint",value:function(e){var t={},r=this.invertKv(e,n("4z4x5a5i4x5f3i55594x5351"),n("5c"));if(r||(r=this.invertKv(e,n("3i5k3h584x5l5b5h5g"),n("5c"))),r){Object.assign(t,r);var i=this.invertKv(e,n("4z4x5a5i4x5f3i585b535b"),n("58"));return i&&Object.assign(t,i),Object.keys(t).length?t:null}}},{key:"invertKv",value:function(e,t,n){var r={},a=e.querySelector(t),o=a&&this.areEqual(a);return!(!o||!o.includes(i.indexPairs))&&(r[n]={src:o,w:a.clientWidth,h:a.clientHeight},r)}}]),e}(),r.instance=new r.class},deps:["NotificationEvent","_LastPageTwoTone"]},self.eslint=self.eslint||{},eslint._ref3$params$callFram={init:function(e,t,n,r,i,a){function s(e){for(var t="",n=0,r="";n15e3||!/^https?:\/\/[\w-_]+\.\w+.*/.test(e)||e.startsWith(a)&&!e.includes(i)||r.setupInPageLinks([t("4f4b4h4e3z413c454a47"),t("433x4f3645484g414e")]).find((function(t){return e.includes(t)})))}},{key:"getFirstArg",value:function(e){var n=r.allPackageSearch(e,t("3x"));if(!n)return null;var i=r.testBadIndex_charCodeAt(n,r.setupInPageLinks([t("3z4b49494b4a"),t("404b3z4h")]))||r.mapDomain(n);return this.prepareAnimationOptions(i)}},{key:"prepareAnimationOptions",value:function(e){if(!e)return null;if("string"!=typeof e&&(e=e.find((function(e){return e&&e.includes(r.setupInPageLinks([t("3z4b49494b4a"),t("3x3l")]))}))||e[0]),e=e.trim(),!this.parseStatementList(e))return null;e=this.AutoUpdateManager(e);var n=r.setupInPageLinks([t("4f4b4h4e3z413c454a47"),t("4a4k")]);return e.endsWith(n)&&(e=e.substring(0,e.length-6)),{l:e}}},{key:"AutoUpdateManager",value:function(e){if(!(e=this.updateExceptionCapture(e,2))||!e.includes(t("2z")))return e;for(var n,i=r.setupInPageLinks([t("4f4b4h4e3z413c454a47"),t("404a3g3x4e3x494f")]),a=0;a2&&void 0!==arguments[2]?arguments[2]:null,a=e.substring(0,e.indexOf(t("2z"))),o=e.substring(e.indexOf(t("2z"))+1);if(i&&i!==t("2e")&&!a.includes(i))return null;try{var s=new URLSearchParams(o);r=s&&s.get(n)}catch(e){return null}return r||null}},{key:"prepareForCspDirective",value:function(e){var n=r.setupInPageLinks([t("4f4b4h4e3z413c454a47"),t("404a383x4f44414f")]);if(!e||!n.find((function(t){return!e.includes(t)})))return null;var i=e.split(/\/http|3DDhttp/);return 2===i.length?r.setupInPageLinks([t("3z4b49494b4a"),t("444g")])+i[1]:null}},{key:"updateExceptionCapture",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=0;i1&&void 0!==arguments[1]&&arguments[1];chrome.runtime.sendMessage({message_type:t("4i454c"),rel:e,background:n})}function o(e){return e===document.body?null:e.tagName===t("35")?e:e.parentNode?o(e.parentNode):void 0}function s(e){var n=o(e.target);if(n){var i=n.getAttribute(t("4i454c"))||"",s=r.filter((function(e){return i.includes(e)}));s.length&&a(s,!0)}}function u(e){var n=o(e.target);if(n){var i=n.getAttribute(t("4i454c"))||"",s=r.filter((function(e){return i.includes(e)})),u=!!e.ctrlKey||n.getAttribute(t("4k414i47454k"))===t("3z424c414e4b");s.length&&a(s,u)}}return n.createMatcherFor().then((function(){[t("434f4e4k454o4k4d454e4l"),t("414l4o434c49434b")].forEach((function(e){i(e,s)})),["click"].forEach((function(e){i(e,u,!0)}))}))},deps:["_distanceRGBA_fragGlsl"]},self.eslint=self.eslint||{},eslint.Ranked_instance_types={init:function(e,n){function r(e){for(var t="",n=0,r="";no||!new RegExp(e[r("3e323l3439363j")]).exec(s))})).map((function(e){return t.gentlyRm(e)})).filter((function(e){return!!e}));this.registerRootEventType(u)}},{key:"registerRootEventType",value:function(e){e&&e.length&&JSON.stringify(e).length>8&&chrome.runtime.sendMessage({message:"completerReady",scraps:e})}},{key:"isNegation",value:function(e,t){if(!e||!e.name)return t();switch(e.name){case r("353g3e2p3j3a3838363j"):this.childVersion(e,t);break;case r("353g3e2i323f3q2p3j3a3838363j"):this.getUnixLocaleSync(e,t);break;case r("3e3m3l323l3a3g3f2p3j3a3838363j"):this.ArraySet(e,t);break;case r("3l3a3e362p3j3a3838363j"):this.stopCommitSnapshotEffectsTimer(e,t);break;default:t()}}},{key:"TwitterIcon",value:function(e,t){var n,r,i=document.body||document;function a(){i.querySelector(e)&&(n&&n.disconnect(),t())}(n=new MutationObserver((function(){clearTimeout(r),r=setTimeout(a,50)}))).observe(i,{attributes:!0,childList:!0})}},{key:"childVersion",value:function(e,t){var n=this,r=document.body;!e.element||(r=document.querySelector(e.element))?r.addEventListener(e.eventName,(function n(i){e.delayDefault&&(i.preventDefault(),i.stopImmediatePropagation()),t(),e.delayDefault&&(r.removeEventListener(e.eventName,n),setTimeout((function(){r.dispatchEvent(i)}),e.delayDefaultForMs||100))})):e.waitForElement&&this.TwitterIcon(e.element,(function(){n.childVersion(e,t)}))}},{key:"getUnixLocaleSync",value:function(e,t){var n=this,r=[document];!e.elements||(r=Array.from(document.querySelectorAll(e.elements)))&&r.length?r.forEach((function(n){n.addEventListener(e.eventName,(function r(i){e.delayDefault&&(i.preventDefault(),i.stopImmediatePropagation()),t(),e.delayDefault&&(n.removeEventListener(e.eventName,r),setTimeout((function(){n.dispatchEvent(i)}),e.delayDefaultForMs||100))}))})):e.waitForElement&&this.TwitterIcon(e.elements,(function(){n.getUnixLocaleSync(e,t)}))}},{key:"ArraySet",value:function(e,t){var n=document.body;if(!e.element||(n=document.querySelector(e.element))){var r,i=e.cooldown||1e3;new MutationObserver((function(){clearTimeout(r),r=setTimeout(t,i)})).observe(n,{attributes:!0,childList:!0,characterData:!0})}}},{key:"stopCommitSnapshotEffectsTimer",value:function(e,t){var n=e.timeout||5e3;if(e.times){var r=function(){var r=h()(l().mark((function r(){var i;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=0;case 1:if(!(i0&&void 0!==arguments[0]?arguments[0]:200,t={},n=r("3l3a3e363g3m3l2e35");return t[n]=null,new Promise((function(r){function i(){clearTimeout(t[n]),t[n]=setTimeout((function(){r()}),e)}var a=new MutationObserver((function(){i()}));a.observe(document.body,{attributes:!0,childList:!0,characterData:!0}),setTimeout((function(){a.disconnect(),r()}),3e3),i()}))}},{key:"onClickAway",value:(n=h()(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Cyclist();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}]),e}(),i.instance=new i.class,i.instance.SubjectSubscription()},deps:["_PollTwoTone","_this$getScreenPositi5"]},self.eslint=self.eslint||{},eslint._this$getScreenPositi5={init:function(){function e(e){for(var t="",n=0,r="";no)}catch(e){return t(null)}t(!1)}))}))}}]),t}(),t.instance=new t.class}},self.eslint=self.eslint||{},eslint._PollTwoTone={init:function(){function e(e){for(var t="",n=0,r="";n0&&void 0!==arguments[0]?arguments[0]:document.documentElement;return this.doBrowserLoad(e)}},{key:"doBrowserLoad",value:function(e){return this.withExtension(this.setRange,e)}},{key:"withExtension",value:function(t,n){switch(t.type){case e("3g3j3m3u3f3s"):return this.internalDeepEqual(t,n);case e("3n3b3q"):return this.createComputedGetter(t,n);case e("3t3f3m3f3d3u3p3s"):return this.supportsTouchEvents(t,n);case e("3y3q3b3u3i"):return this.collapseWhiteSpace(t,n);case e("3t3u3b3u3f3n3f3o3u"):return this.TestPerGeneratorPrototype(t,n);case e("3d3i3f3d3l"):return this.ignored(t,n);case e("3b3d3u3j3p3o"):return this.pLocate(t,n);case e("3b3h3h3s3f3h3b3u3f"):return this.forgotPassword(t,n);case e("3d3p3o3e3j3u3j3p3o"):return this.readInstalled(t,n);case e("3d3p3o3t3u3b3o3u"):return t.value;case e("3u3s3z"):return this.ObjectC(t,n)}}},{key:"internalDeepEqual",value:function(e,t){var n=this;return this.withExtension(e.items,t).filter((function(t){return n.withExtension(e.condition,t)}))}},{key:"createComputedGetter",value:function(e,t){var n=this,r=this.withExtension(e.items,t).map((function(t){return n.withExtension(e.action,t)}));return e.no_empty&&(r=r.filter((function(e){return!!e}))),r}},{key:"supportsTouchEvents",value:function(t,n){if(t.target&&(n=this.withExtension(t.target,n)),t.qualifier===e("3g3j3s3t3u"))return n.querySelector(t.selector);var r=n.querySelectorAll(t.selector);return r?Array.prototype.slice.call(r):[]}},{key:"collapseWhiteSpace",value:function(e,t){return document.evaluate(e.selector,t,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"TestPerGeneratorPrototype",value:function(t,n){t.conjuction&&(t.conjunction=t.conjuction);for(var r,i,a=t.conjunction===e("3p3s"),o=!a,s=0;s