Advertisement
Guest User

Ghostery all XMHL texts

a guest
Feb 14th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.41 KB | None | 0 0
  1. a(a,t){e.call(this),this.promise=a,this.scheduler=t}return
  2. s(a,e),a.create=function(e,t){return
  3. new a(e,t)},a.prototype._subscribe=function(e){var
  4. a=this,t=this.promise,s=this.scheduler;if(null==s)this._isScalar?!e.closed&&(e.next(this.value),e.complete()):t.then(function(t){a.value=t,a._isScalar=!0,e.closed||(e.next(t),e.complete())},function(a){e.closed||e.error(a)}).then(null,function(e){r.root.setTimeout(function(){throw
  5. e})});else
  6. if(!this._isScalar)t.then(function(t){a.value=t,a._isScalar=!0,e.closed||e.add(s.schedule(n,0,{value:t,subscriber:e}))},function(a){e.closed||e.add(s.schedule(o,0,{err:a,subscriber:e}))}).then(null,function(e){r.root.setTimeout(function(){throw
  7. e})});else if(!e.closed)return
  8. s.schedule(n,0,{value:this.value,subscriber:e})},a}(i.Observable);a.PromiseObservable=d},function(e,a){"use
  9. strict";a.identity=function(e){return e}},function(e,a,t){"use strict";var
  10. n=t(790);a.timer=n.TimerObservable.create},function(e,a,t){"use
  11. strict";function n(){if(m.root.XMLHttpRequest)return new
  12. m.root.XMLHttpRequest;if(!!m.root.XDomainRequest)return new
  13. m.root.XDomainRequest;throw new Error("CORS is not supported by
  14. your browser")}function o(){if(m.root.XMLHttpRequest)return
  15. new m.root.XMLHttpRequest;var e;try{for(var
  16. a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],t=0;3>t;t++)try{if(e=a[t],new
  17. m.root.ActiveXObject(e))break}catch(a){}return new
  18. m.root.ActiveXObject(e)}catch(a){throw new Error("XMLHttpRequest
  19. is not supported by your browser")}}function s(e,a){return void
  20. 0===a&&(a=null),new k({method:"GET",url:e,headers:a})}function r(e,a,t){return
  21. new k({method:"POST",url:e,body:a,headers:t})}function i(e,a){return
  22. new k({method:"DELETE",url:e,headers:a})}function d(e,a,t){return new
  23. k({method:"PUT",url:e,body:a,headers:t})}function $(e,a,t){return new
  24. k({method:"PATCH",url:e,body:a,headers:t})}function l(e,a){return b(new
  25. k({method:"GET",url:e,responseType:"json",headers:a}))}function
  26. u(e,a){switch(e){case"json":return"response"in
  27. a?a.responseType?a.response:JSON.parse(a.response||a.responseText||"null"):JSON.parse(a.responseText||"null");case"xml":return
  28. a.responseXML;case"text":default:return"response"in
  29. --
  30. e.response});a.ajaxGetJSON=l;var k=function(e){function
  31. a(a){e.call(this);var t={async:!0,createXHR:function(){return
  32. this.crossDomain?n.call(this):o()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof
  33. a)t.url=a;else for(var s in
  34. a)a.hasOwnProperty(s)&&(t[s]=a[s]);this.request=t}return
  35. c(a,e),a.prototype._subscribe=function(e){return
  36. new _(e,this.request)},a.create=function(){var
  37. e=function(e){return new a(e)};return
  38. e.get=s,e.post=r,e.delete=i,e.put=d,e.patch=$,e.getJSON=l,e}(),a}(y.Observable);a.AjaxObservable=k;var
  39. _=function(e){function a(a,t){e.call(this,a),this.request=t,this.done=!1;var
  40. n=t.headers=t.headers||{};t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in
  41. n||m.root.FormData&&t.body instanceof m.root.FormData||"undefined"==typeof
  42. t.body||(n["Content-Type"]="application/x-www-form-urlencoded;
  43. charset=UTF-8"),t.body=this.serializeBody(t.body,t.headers["Content-Type"]),this.send()}return
  44. c(a,e),a.prototype.next=function(a){this.done=!0;var
  45. e=this,t=e.xhr,n=e.request,o=e.destination,s=new
  46. v(a,t,n);o.next(s)},a.prototype.send=function(){var
  47. e=this,a=e.request,t=e.request,n=t.user,o=t.method,s=t.url,r=t.async,i=t.password,d=t.headers,$=t.body,l=a.createXHR,u=p.tryCatch(l).call(a);if(u===h.errorObject)this.error(h.errorObject.e);else{this.xhr=u,this.setupEvents(u,a);var
  48. c;if(c=n?p.tryCatch(u.open).call(u,o,s,r,n,i):p.tryCatch(u.open).call(u,o,s,r),c===h.errorObject)return
  49. this.error(h.errorObject.e),null;if(r&&(u.timeout=a.timeout,u.responseType=a.responseType),"withCredentials"in
  50. u&&(u.withCredentials=!!a.withCredentials),this.setHeaders(u,d),c=$?p.tryCatch(u.send).call(u,$):p.tryCatch(u.send).call(u),c===h.errorObject)return
  51. --
  52. e.json&&(t.set("Accept","application/json"),t.set("Content-Type",e.headers["Content-Type"]||"application/json")),n.body=e.body&&e.processData&&"string"!=typeof
  53. e.body?JSON.stringify(e.body):"body"in
  54. e?e.body:null,Object.keys(e.headers).forEach(function(a){e.headers.hasOwnProperty(a)&&t.set(a,e.headers[a])}),o=Bt(e.url,n),0<e.timeout&&(s=setTimeout(function(){o.reject(new
  55. Error("Load timeout for
  56. resource: "+e.url))},e.timeout)),o.promise.then(function(a){return
  57. r={statusCode:a.status},0<e.timeout&&clearTimeout(s),200<=r.statusCode&&300>r.statusCode?e.binary?a.blob():a.text():a.json()}).then(function(e){200<=r.statusCode&&300>r.statusCode?a(null,r,e):(e.status=r.statusCode,a(e))}).catch(function(e){e||(e=new
  58. Error("canceled")),a(e)}),{abort:o.reject}}function Jt(e,a){var
  59. t=!1,n=function(){t=!0,r.abort(),s()},o={abort:function(){r.abort(),s()}},s=function(){clearTimeout(i),o.abort=function(){},r&&(r.onprogress=void
  60. 0,r.upload&&(r.upload.onprogress=void
  61. 0),r.onreadystatechange=void 0,r=void 0)},r,i;r=e.xhr?new e.xhr:new
  62. XMLHttpRequest;try{r.open(e.method,e.url)}catch(e){return
  63. a(new Error(e.name||"Url is invalid"))}for(var
  64. d in r.withCredentials=!("withCredentials"in
  65. e)||e.withCredentials,"GET"===e.method?delete
  66. e.headers["Content-Type"]:e.json&&(e.headers.Accept="application/json",e.headers["Content-Type"]=e.headers["Content-Type"]||"application/json",e.body&&e.processData&&"string"!=typeof
  67. e.body&&(e.body=JSON.stringify(e.body))),e.binary&&(r.responseType="arraybuffer"),"body"in
  68. e||(e.body=null),e.headers)e.headers.hasOwnProperty(d)&&r.setRequestHeader(d,e.headers[d]);return
  69. 0<e.timeout&&(i=setTimeout(n,e.timeout),r.onprogress=function(){clearTimeout(i),4!==r.readyState&&(i=setTimeout(n,e.timeout))},"undefined"!=typeof
  70. r.upload&&(r.upload.onprogress=r.onprogress)),r.onreadystatechange=function(){if(4===r.readyState){var
  71. n={statusCode:r.status};if(200<=r.status&&300>r.status){var
  72. o;o=e.binary?Ya([r.response||""],{type:r.getResponseHeader("Content-Type")}):r.responseText,a(null,n,o)}else{var
  73. --
  74. Ys=7,Ss=Lt("document-store"),Ts=Lt("by-sequence"),Ds=Lt("attach-store"),js=Lt("local-store"),Os=Lt("metadata-store"),Es=Lt("attach-seq-store"),zs=new
  75. ko,As=new L,Ps=1,Hs="CREATE INDEX IF NOT EXISTS 'by-seq-deleted-idx' ON "+Ts+"
  76. (seq, deleted)",Cs="CREATE UNIQUE INDEX IF NOT EXISTS 'by-seq-doc-id-rev' ON
  77. "+Ts+" (doc_id, rev)",Is="CREATE INDEX IF NOT EXISTS 'doc-winningseq-idx' ON
  78. "+Ss+" (winningseq)",qs="CREATE INDEX IF NOT EXISTS 'attach-seq-seq-idx' ON
  79. "+Es+" (seq)",Rs="CREATE UNIQUE INDEX IF NOT EXISTS 'attach-seq-digest-idx'
  80. ON "+Es+" (digest, seq)",Fs=Ts+".seq = "+Ss+".winningseq",Ns=Ts+".seq AS
  81. seq, "+Ts+".deleted AS deleted, "+Ts+".json AS data, "+Ts+".rev AS rev,
  82. "+Ss+".json AS metadata";Ut.valid=function(){return!("function"!=typeof
  83. openDatabase)&&Nt()},Ut.use_prefix=!0;var Ws=function(){try{return new
  84. XMLHttpRequest,!0}catch(e){return!1}}(),Us=function(){},Bs=25,Vs=50,Js=5e3,Gs=1e4,Ks={};$n.valid=function(){return!0};ro()(ln,Error),ro()(un,Error),ro()(cn,Error);var
  85. Zs=Y.bind(null,"log"),Xs=Array.isArray,Qs=JSON.parse;vn.prototype.add=function(e){return
  86. this.promise=this.promise.catch(function(){}).then(function(){return
  87. e()}),this.promise},vn.prototype.finish=function(){return
  88. this.promise};var er={},ar=new
  89. vn,tr=50,nr={_sum:function(e,a){return kn(a)},_count:function(e,a){return
  90. a.length},_stats:function(e,a){return{sum:kn(a),min:s.apply(null,a),max:Math.max.apply(null,a),count:a.length,sumsqr:function(e){for(var
  91. a=0,t=0,n=e.length,o;t<n;t++)o=e[t],a+=o*o;return
  92. a}(a)}}},or=function(e,a,t,n){function
  93. o(a,e,t){try{e(t)}catch(t){Sn(a,t)}}function
  94. s(a,e,t,n,o){try{return{output:e(t,n,o)}}catch(t){return
  95. --
  96. wa(e,a,t){return t?Je(e,a):Ge(e,a)}function xa(e,a,t){const
  97. n=e.indexOf("*",a),o=e.indexOf("^",a);return-1!==n&&n<t||-1!==o&&o<t}function
  98. Ma(e){const a=e;let
  99. t=1572864,n=null,o=null,s="",r="",i="",d=!1,$=0,l=a.length;Ze(a,"@@")&&($+=2,t=Je(t,134217728));const
  100. u=a.indexOf("$",$);if(-1!==u){l=u;const
  101. e=a.substr(u+1),n=e.split(",");for(let e=0;e<n.length;e+=1){const
  102. a=n[e];let o=!1,$=a;Ze($,"~")?(o=!0,$=$.substr(1)):o=!1;let
  103. l=[];if(-1!==$.indexOf("=")){const
  104. e=$.split("=",2);$=e[0],l=e[1].split("|")}switch($){case"domain":{const
  105. e=[],a=[];for(let t=0;t<l.length;t+=1){const
  106. n=l[t];n&&(Ze(n,"~")?a.push(n.substr(1)):e.push(n))}0<e.length&&(s=e.join("|")),0<a.length&&(r=a.join("|"));break}case"image":d=!0,t=wa(t,1,!o);break;case"media":d=!0,t=wa(t,2,!o);break;case"object":d=!0,t=wa(t,4,!o);break;case"object-subrequest":d=!0,t=wa(t,8,!o);break;case"other":d=!0,t=wa(t,16,!o);break;case"ping":d=!0,t=wa(t,32,!o);break;case"script":d=!0,t=wa(t,64,!o);break;case"stylesheet":d=!0,t=wa(t,128,!o);break;case"subdocument":d=!0,t=wa(t,256,!o);break;case"xmlhttprequest":d=!0,t=wa(t,1024,!o);break;case"websocket":d=!0,t=wa(t,512,!o);break;case"font":d=!0,t=wa(t,8192,!o);break;case"important":if(o)return
  107. null;t=Je(t,131072);break;case"match-case":if(o)return
  108. null;t=Je(t,262144);break;case"third-party":t=o?Ge(t,524288):Ge(t,1048576);break;case"first-party":t=o?Ge(t,1048576):Ge(t,524288);break;case"collapse":break;case"redirect":if(o)return
  109. null;if(0===l.length)return null;i=l[0];break;default:return
  110. null;}}}if(!1==d&&(t=Je(t,bn)),Ze(a,"127.0.0.1"))o=a.substr(a.lastIndexOf("
  111. ")+1),n="",t=Ge(t,8388608),t=Je(t,2097152),t=Je(t,67108864);else{"|"===a[l-1]&&(t=Je(t,33554432),l-=1),Xe(a,"||",$)?(t=Je(t,67108864),$+=2):"|"===a[$]&&(t=Je(t,16777216),$+=1),"*"===a.charAt(l-1)&&1<l-$&&(l-=1);const
  112. e=xa(a,$,l);t=wa(t,8388608,e);const s=Ve(t,67108864);if(!e&&s){const
  113. e=a.indexOf("/",$);-1===e?(o=a.substring($,l),n=""):(o=a.substring($,e),$=e)}else
  114. if(e&&s){const
  115. e=a.search(_n);-1!==e&&(o=a.substring($,e),$=e,1==l-$&&"^"===a.charAt($)?(n="",t=Ge(t,8388608)):t=wa(t,8388608,xa(a,$,l)))}}null===n&&(n=a.substring($,l).toLowerCase());let
  116. c="";null!==o&&(c=o);let
  117. --
  118. n=0,o;n<e.length;n+=1)if(o=e[n],We(t,o))return o;return
  119. null===a?null:a.length===t.length?null:Ue(t,a)},sn=function(e){var
  120. a=e.lastIndexOf(".");return-1===a?null:e.substr(a+1)},rn=function(e,a){if(e.hasTld(a))return
  121. a;var t=e.suffixLookup(a);return null===t?sn(a):t},dn=function(e,a){return
  122. null===a?null:e.substr(0,e.length-a.length-1)},$n=function(e,a){if(e.hasTld(a))return!0;var
  123. t=sn(a);return
  124. null!==t&&e.hasTld(t)},ln=c.fromJson($t&&dt||$t),un=1,cn=2,mn=3,pn=4,hn=5,yn=Be({}),gn=yn.parse,fn=yn.getPublicSuffix;const
  125. bn=131071,kn={1:16,2:64,3:1,4:128,5:4,7:256,10:32,11:1024,12:8,13:4096,14:8192,15:2,16:512,17:65536,18:16384,19:32768,20:2048,21:1},_n=/[/^*]/;class
  126. vn{constructor({mask:e,filter:a,optDomains:t,optNotDomains:n,redirect:o,hostname:s,id:r}){this.id=r,this.mask=e,this.filter=a,this.optDomains=t,this.optNotDomains=n,this.redirect=o,this.hostname=s,this.regex=null,this.optDomainsSet=null,this.optNotDomainsSet=null,this.rawLine=null}isCosmeticFilter(){return!1}isNetworkFilter(){return!0}toString(){let
  127. e="";this.isException()&&(e+="@@"),this.isHostnameAnchor()&&(e+="||"),this.isLeftAnchor()&&(e+="|"),this.isRegex()?e+=this.getRegex().source:(this.hasHostname()&&(e+=this.getHostname(),e+="^"),e+=this.getFilter());const
  128. a=[];if(this.fromAny()||(this.fromImage()&&a.push("image"),this.fromMedia()&&a.push("media"),this.fromObject()&&a.push("object"),this.fromObjectSubrequest()&&a.push("object-subrequest"),this.fromOther()&&a.push("other"),this.fromPing()&&a.push("ping"),this.fromScript()&&a.push("script"),this.fromStylesheet()&&a.push("stylesheet"),this.fromSubdocument()&&a.push("subdocument"),this.fromWebsocket()&&a.push("websocket"),this.fromXmlHttpRequest()&&a.push("xmlhttprequest"),this.fromFont()&&a.push("font")),this.isImportant()&&a.push("important"),this.isRedirect()&&a.push(`redirect=${this.getRedirect()}`),this.firstParty()!==this.thirdParty()&&(this.firstParty()&&a.push("first-party"),this.thirdParty()&&a.push("third-party")),this.hasOptDomains()||this.hasOptNotDomains()){const
  129. e=[...this.getOptDomains()];this.getOptNotDomains().forEach((a)=>e.push(`~${a}`)),a.push(`domain=${e.join("|")}`)}return
  130. 0<a.length&&(e+=`$${a.join(",")}`),this.isRightAnchor()&&(e+="|"),e}hasFilter(){return!!this.filter}hasOptNotDomains(){return!!this.optNotDomains}getOptNotDomains(){return
  131. this.optNotDomainsSet=this.optNotDomainsSet||va(this.optNotDomains),this.optNotDomainsSet}hasOptDomains(){return!!this.optDomains}getOptDomains(){return
  132. this.optDomainsSet=this.optDomainsSet||va(this.optDomains),this.optDomainsSet}getMask(){return
  133. this.mask}isRedirect(){return!!this.redirect}getRedirect(){return
  134. this.redirect}hasHostname(){return!!this.hostname}getHostname(){return
  135. this.hostname}getFilter(){return
  136. this.filter}setRegex(e){this.regex=e,this.mask=Je(this.mask,8388608),this.mask=Ge(this.mask,4194304)}getRegex(){return
  137. null===this.regex&&(this.regex=_a(this.filter,this.isRightAnchor(),this.isLeftAnchor(),this.matchCase())),this.regex}getTokens(){return
  138. oa(this.filter).concat(oa(this.hostname))}isCptAllowed(e){const
  139. --
  140. Ve(this.mask,8388608)}isPlain(){return!Ve(this.mask,8388608)}isHostname(){return
  141. Ve(this.mask,2097152)}fromAny(){return(this.mask&bn)==bn}thirdParty(){return
  142. Ve(this.mask,524288)}firstParty(){return
  143. Ve(this.mask,1048576)}fromImage(){return
  144. Ve(this.mask,1)}fromMedia(){return Ve(this.mask,2)}fromObject(){return
  145. Ve(this.mask,4)}fromObjectSubrequest(){return
  146. Ve(this.mask,8)}fromOther(){return Ve(this.mask,16)}fromPing(){return
  147. Ve(this.mask,32)}fromScript(){return Ve(this.mask,64)}fromStylesheet(){return
  148. Ve(this.mask,128)}fromSubdocument(){return
  149. Ve(this.mask,256)}fromWebsocket(){return
  150. Ve(this.mask,512)}fromXmlHttpRequest(){return
  151. Ve(this.mask,1024)}fromFont(){return Ve(this.mask,8192)}}class
  152. wn{constructor({mask:e,selector:a,hostnames:t,id:n}){this.id=n,this.mask=e,this.selector=a,this.hostnames=t,this.hostnamesArray=null,this.rawLine=null}isCosmeticFilter(){return!0}isNetworkFilter(){return!1}toString(){let
  153. e="";return
  154. this.hasHostnames()&&(e+=this.hostnames),e+=this.isUnhide()?"#@#":"##",this.isScriptInject()?(e+="script:inject(",e+=this.selector,e+=")"):this.isScriptBlock()?(e+="script:contains(",e+=this.selector,e+=")"):e+=this.selector,e}getTokensSelector(){if(this.isScriptInject()||this.isScriptBlock())return[];const
  155. e=this.selector.lastIndexOf(">");return-1===e?sa(this.selector):sa(this.selector.substr(e))}getSelector(){return
  156. this.selector}hasHostnames(){return!!this.hostnames}getHostnames(){return
  157. null===this.hostnamesArray&&(this.hasHostnames()?this.hostnamesArray=this.hostnames.split(",").sort((e,a)=>e.length>a.length?-1:e.length<a.length?1:0):this.hostnamesArray=[]),this.hostnamesArray}isUnhide(){return
  158. Ve(this.mask,1)}isScriptInject(){return
  159. Ve(this.mask,2)}isScriptBlock(){return Ve(this.mask,4)}}const xn=/\s/;class
  160. Mn{constructor(e,a,{optimizer:t=Pa,multiKeys:n=!1}={}){this.index=new
  161. --
  162. i=t(159),o=t(200),r=(1+2.23606797749979)/2;n.a=function e(n){function
  163. t(e,t,d,i,o){a(n,e,t,d,i,o)}return t.ratio=function(n){return
  164. e(1<(n=+n)?n:1)},t}(r)},function(e,n,t){"use strict";function
  165. a(e){return function(n,t){e(null==n?t:null)}}function d(e){var
  166. n=e.responseType;return n&&"text"!==n?e.response:e.responseText}var
  167. i=t(156),o=t(93);n.a=function(e,n){function t(e){var
  168. n=l.status,t;if(!n&&d(l)||200<=n&&300>n||304===n){if(f)try{t=f.call(p,l)}catch(n){return
  169. void r.call("error",p,n)}else
  170. t=l;r.call("load",p,t)}else r.call("error",p,e)}var
  171. r=Object(o.a)("beforesend","progress","load","error"),s=Object(i.a)(),l=new
  172. XMLHttpRequest,u=null,m=null,c=0,p,h,f,y;if("undefined"!=typeof
  173. XDomainRequest&&!("withCredentials"in
  174. l)&&/^(http(s)?:)?\/\//.test(e)&&(l=new XDomainRequest),"onload"in
  175. l?l.onload=l.onerror=l.ontimeout=t:l.onreadystatechange=function(e){3<l.readyState&&t(e)},l.onprogress=function(n){r.call("progress",p,n)},p={header:function(e,n){return(e=(e+"").toLowerCase(),2>arguments.length)?s.get(e):(null==n?s.remove(e):s.set(e,n+""),p)},mimeType:function(e){return
  176. arguments.length?(h=null==e?null:e+"",p):h},responseType:function(e){return
  177. arguments.length?(y=e,p):y},timeout:function(e){return
  178. arguments.length?(c=+e,p):c},user:function(e){return
  179. 1>arguments.length?u:(u=null==e?null:e+"",p)},password:function(e){return
  180. 1>arguments.length?m:(m=null==e?null:e+"",p)},response:function(e){return
  181. f=e,p},get:function(e,n){return p.send("GET",e,n)},post:function(e,n){return
  182. p.send("POST",e,n)},send:function(n,t,d){return
  183. --
  184. medium-6
  185. text-right'},d.a.createElement('span',null,e)))),d.a.createElement('div',{className:'callout-container
  186. column'},d.a.createElement('div',{className:`${(this.props.message?'':'hide
  187. ')+(this.props.success?'success ':'alert')}
  188. callout`},d.a.createElement('svg',{onClick:this.clearMessage,width:'15px',height:'15px',viewBox:'0
  189. 0 15
  190. 15',className:'close-button'},d.a.createElement('g',null,d.a.createElement('path',{strokeWidth:'3',strokeLinecap:'round',d:'M3,3
  191. L12,12 M3,12
  192. L12,3'}))),d.a.createElement('span',{className:'callout-text'},this.props.message,d.a.createElement('span',{dangerouslySetInnerHTML:{__html:this.props.notificationText}})))))}}t.a=s},1496:function(e,t,a){'use
  193. strict';t.a=function(e,t,a){return new Promise((d,s)=>{const o=new
  194. XMLHttpRequest;o.onload=function(){200<=o.status&&400>o.status?d(JSON.parse(o.responseText)):(Object(n.c)('doXHR
  195. error',o.statusText),s(new
  196. Error(o.statusText)))},o.onerror=function(e){Object(n.c)('doXHR
  197. network error',e),s(new Error(e))},Object(n.c)('doXHR
  198. request',e,t,a),o.open(e,t,!0),o.setRequestHeader('Content-Type','application/json'),o.setRequestHeader('Accept','application/json'),o.overrideMimeType('application/json'),o.send(a)})};var
  199. n=a(4)},1497:function(e,t,a){'use strict';var
  200. n=a(19),d=a(13),s=a(1498);t.a=Object(n.b)((e)=>Object.assign({},e.topContent))(s.a)},1498:function(e,t,a){'use
  201. strict';var n=a(1),d=a.n(n),s=a(12);class o extends
  202. n.Component{render(){return d.a.createElement('div',{className:'row expanded
  203. padded-content'},d.a.createElement('div',{className:'columns'},d.a.createElement('div',{className:'columns'},d.a.createElement('div',{className:'row
  204. expanded
  205. --
  206. t=e||'/',a='',n='',d=t.indexOf('#');-1!==d&&(n=t.substr(d),t=t.substr(0,d));var
  207. s=t.indexOf('?');return-1!==s&&(a=t.substr(s),t=t.substr(0,s)),{pathname:t,search:'?'===a?'':a,hash:'#'===n?'':n}},l=function(e){var
  208. t=e.pathname,a=e.search,n=e.hash,d=t||'/';return
  209. a&&'?'!==a&&(d+='?'===a.charAt(0)?a:'?'+a),n&&'#'!==n&&(d+='#'===n.charAt(0)?n:'#'+n),d}},52:function(e,t,a){'use
  210. strict';t.d=function(e,t,a){const n={};return
  211. n[t]=a,Object.assign({},e,n)},t.a=function(e,t){return[...e,t]},t.c=function(e,t){return
  212. e.filter((e,a)=>a!==t)},t.e=function(e){const
  213. t=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/;return''!==e&&t.test(e)},t.f=function(e){const
  214. t=/^[a-zA-Z0-9!@#$%^&*=+()<>{}[\];:,./?]{8,50}$/;return''!==e&&t.test(e)},t.b=function(e,t,a){return
  215. new Promise((d,s)=>{const o=new
  216. XMLHttpRequest;o.onload=function(){200<=o.status&&400>o.status?d(JSON.parse(o.responseText)):(Object(n.c)('doXHR
  217. error',o.statusText),s(new
  218. Error(o.statusText)))},o.onerror=function(e){Object(n.c)('doXHR
  219. network error',e),s(new Error(e))},Object(n.c)('doXHR
  220. request',e,t,a),o.open(e,t,!0),o.setRequestHeader('Content-Type','application/json'),o.setRequestHeader('Accept','application/json'),o.overrideMimeType('application/json'),o.send(a)})};var
  221. n=a(4)},586:function(e,t,a){'use
  222. strict';Object.defineProperty(t,'__esModule',{value:!0}),t.clearMessage=function(){return{type:n.a}},t.getLoginInfo=function(){return
  223. function(e){return
  224. Object(d.b)('getLoginInfo').then((t)=>{e({type:n.f,data:t})})}},t.createAccountFail=function(){return{type:n.c,data:''}},t.loginFail=function(){return{type:n.h,data:''}},t.userLogin=function(e){return
  225. function(t){return
  226. Object(s.a)('POST',`${r}/api/Login`,JSON.stringify(e)).then((a)=>{if(null!==a.UserId&&null!==a.Token){const
  227. --
  228. function(e){return
  229. Object(n.b)("getCliqzModuleData").then((a)=>{e({type:s.j,data:a})})}},a.openDrawer=function(e){return{type:s.t,data:e}},a.closeDrawer=function(){return{type:s.a}},a.toggleDrawerSetting=function(e,a){return{type:s.C,data:{settingName:e,isEnabled:a}}};var
  230. s=t(32),n=t(10)},501:function(e,a,t){"use strict";var
  231. s=t(19),n=t(13),i=t(1148),l=t(191),r=t(76),o=t(500);a.a=Object(s.b)((e)=>Object.assign({},e.summary,e.panel,e.drawer,{is_expanded:e.panel.is_expanded,is_expert:e.panel.is_expert,tab_id:e.panel.tab_id}),(e)=>({actions:Object(n.b)(Object.assign(l,r,o),e)}))(i.a)},52:function(e,a,t){"use
  232. strict";a.d=function(e,a,t){const s={};return
  233. s[a]=t,Object.assign({},e,s)},a.a=function(e,a){return[...e,a]},a.c=function(e,a){return
  234. e.filter((e,t)=>t!==a)},a.e=function(e){const
  235. a=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/;return""!==e&&a.test(e)},a.f=function(e){const
  236. a=/^[a-zA-Z0-9!@#$%^&*=+()<>{}[\];:,./?]{8,50}$/;return""!==e&&a.test(e)},a.b=function(e,a,t){return
  237. new Promise((n,i)=>{const l=new
  238. XMLHttpRequest;l.onload=function(){200<=l.status&&400>l.status?n(JSON.parse(l.responseText)):(Object(s.c)("doXHR
  239. error",l.statusText),i(new
  240. Error(l.statusText)))},l.onerror=function(e){Object(s.c)("doXHR
  241. network error",e),i(new Error(e))},Object(s.c)("doXHR
  242. request",e,a,t),l.open(e,a,!0),l.setRequestHeader("Content-Type","application/json"),l.setRequestHeader("Accept","application/json"),l.overrideMimeType("application/json"),l.send(t)})};var
  243. s=t(4)},584:function(e,a,t){"use strict";var s=t(1),n=t.n(s);class i extends
  244. n.a.Component{render(){return n.a.createElement("div",{className:"row
  245. not-scanned-wrapper"},n.a.createElement("div",{className:"columns
  246. text-center"},n.a.createElement("div",{className:"title"},function(e,a){return
  247. chrome.i18n.getMessage(e,a)}("summary_page_not_scanned")),n.a.createElement("div",{className:"text"},function(e,a){return
  248. chrome.i18n.getMessage(e,a)}("summary_description_not_scanned_1"),n.a.createElement("br",null),n.a.createElement("br",null),function(e,a){return
  249. --
  250. o.num_blocked=0,o.trackers.forEach((e)=>{if(e.shouldShow){if(e.id===a.data.app_id){e.blocked=n;let
  251. a=e.id;n?l[a]=1:delete
  252. l[a]}e.blocked&&o.num_blocked++}}),Object(i.a)("setPanelData",{selected_app_ids:l}),{categories:r,selected_app_ids:l}};var
  253. s=t(4),n=t(52),i=t(10)}},[1137]); Binary file ./dist/ghostery_dot_com.js
  254. matches -- ./dist/css/setup.css-*/ ./dist/css/setup.css-@font-face {
  255. ./dist/css/setup.css- font-family: 'Roboto'; ./dist/css/setup.css-
  256. font-style: normal; ./dist/css/setup.css- font-weight: 400;
  257. ./dist/css/setup.css: src: local("Roboto"), local("Roboto-Regular"),
  258. format("woff"); } ./dist/css/setup.css- ./dist/css/setup.css-/**
  259. ./dist/css/setup.css- * Ghostery Brand Colors ./dist/css/setup.css- *
  260. ./dist/css/setup.css- * Imported by default in _settings.scss. Taken from
  261. -- ./dist/content_script_bundle.js- ./dist/content_script_bundle.js-
  262. if (parent) { ./dist/content_script_bundle.js-
  263. parent.removeChild(currentScript); ./dist/content_script_bundle.js- }
  264. ./dist/content_script_bundle.js- })(); ./dist/content_script_bundle.js:
  265. `,o=e.createElement('script');o.type='text/javascript',o.id='cliqz-adblocker-script',o.appendChild(e.createTextNode(a));const
  266. t=e.head||e.documentElement;t.appendChild(o)}function t($,e){const
  267. a=new RegExp($);e.addEventListener('beforescriptexecute',($)=>{const
  268. --
  269. be($,e,a){return a?H$($,e):Y$($,e)}function ye($,e,a){const
  270. o=$.indexOf('*',e),t=$.indexOf('^',e);return-1!==o&&o<a||-1!==t&&t<a}function
  271. ve($){const e=$;let
  272. a=1572864,o=null,t=null,i='',n='',s='',r=!1,l=0,u=e.length;K$(e,'@@')&&(l+=2,a=H$(a,134217728));const
  273. d=e.indexOf('$',l);if(-1!==d){u=d;const
  274. $=e.substr(d+1),o=$.split(',');for(let $=0;$<o.length;$+=1){const
  275. e=o[$];let t=!1,l=e;K$(l,'~')?(t=!0,l=l.substr(1)):t=!1;let
  276. u=[];if(-1!==l.indexOf('=')){const
  277. $=l.split('=',2);l=$[0],u=$[1].split('|')}switch(l){case'domain':{const
  278. $=[],e=[];for(let a=0;a<u.length;a+=1){const
  279. o=u[a];o&&(K$(o,'~')?e.push(o.substr(1)):$.push(o))}0<$.length&&(i=$.join('|')),0<e.length&&(n=e.join('|'));break}case'image':r=!0,a=be(a,1,!t);break;case'media':r=!0,a=be(a,2,!t);break;case'object':r=!0,a=be(a,4,!t);break;case'object-subrequest':r=!0,a=be(a,8,!t);break;case'other':r=!0,a=be(a,16,!t);break;case'ping':r=!0,a=be(a,32,!t);break;case'script':r=!0,a=be(a,64,!t);break;case'stylesheet':r=!0,a=be(a,128,!t);break;case'subdocument':r=!0,a=be(a,256,!t);break;case'xmlhttprequest':r=!0,a=be(a,1024,!t);break;case'websocket':r=!0,a=be(a,512,!t);break;case'font':r=!0,a=be(a,8192,!t);break;case'important':if(t)return
  280. null;a=H$(a,131072);break;case'match-case':if(t)return
  281. null;a=H$(a,262144);break;case'third-party':a=t?Y$(a,524288):Y$(a,1048576);break;case'first-party':a=t?Y$(a,1048576):Y$(a,524288);break;case'collapse':break;case'redirect':if(t)return
  282. null;if(0===u.length)return null;s=u[0];break;default:return
  283. null;}}}if(!1==r&&(a=H$(a,bo)),K$(e,'127.0.0.1'))t=e.substr(e.lastIndexOf('
  284. ')+1),o='',a=Y$(a,8388608),a=H$(a,2097152),a=H$(a,67108864);else{'|'===e[u-1]&&(a=H$(a,33554432),u-=1),V$(e,'||',l)?(a=H$(a,67108864),l+=2):'|'===e[l]&&(a=H$(a,16777216),l+=1),'*'===e.charAt(u-1)&&1<u-l&&(u-=1);const
  285. $=ye(e,l,u);a=be(a,8388608,$);const i=F$(a,67108864);if(!$&&i){const
  286. $=e.indexOf('/',l);-1===$?(t=e.substring(l,u),o=''):(t=e.substring(l,$),l=$)}else
  287. if($&&i){const
  288. $=e.search(vo);-1!==$&&(t=e.substring(l,$),l=$,1==u-l&&'^'===e.charAt(l)?(o='',a=Y$(a,8388608)):a=be(a,8388608,ye(e,l,u)))}}null===o&&(o=e.substring(l,u).toLowerCase());let
  289. c='';null!==t&&(c=t);let
  290. --
  291. o=0,t;o<$.length;o+=1)if(t=$[o],L$(a,t))return t;return
  292. null===e?null:e.length===a.length?null:N$(a,e)},io=function($){var
  293. e=$.lastIndexOf('.');return-1===e?null:$.substr(e+1)},no=function($,e){if($.hasTld(e))return
  294. e;var a=$.suffixLookup(e);return null===a?io(e):a},so=function($,e){return
  295. null===e?null:$.substr(0,$.length-e.length-1)},ro=function($,e){if($.hasTld(e))return!0;var
  296. a=io(e);return
  297. null!==a&&$.hasTld(a)},lo=r.fromJson(la&&ra||la),uo=1,co=2,mo=3,ho=4,go=5,po=B$({}),ko=po.parse,fo=po.getPublicSuffix;const
  298. bo=131071,yo={1:16,2:64,3:1,4:128,5:4,7:256,10:32,11:1024,12:8,13:4096,14:8192,15:2,16:512,17:65536,18:16384,19:32768,20:2048,21:1},vo=/[/^*]/;class
  299. xo{constructor({mask:$,filter:e,optDomains:a,optNotDomains:o,redirect:t,hostname:i,id:n}){this.id=n,this.mask=$,this.filter=e,this.optDomains=a,this.optNotDomains=o,this.redirect=t,this.hostname=i,this.regex=null,this.optDomainsSet=null,this.optNotDomainsSet=null,this.rawLine=null}isCosmeticFilter(){return!1}isNetworkFilter(){return!0}toString(){let
  300. $='';this.isException()&&($+='@@'),this.isHostnameAnchor()&&($+='||'),this.isLeftAnchor()&&($+='|'),this.isRegex()?$+=this.getRegex().source:(this.hasHostname()&&($+=this.getHostname(),$+='^'),$+=this.getFilter());const
  301. e=[];if(this.fromAny()||(this.fromImage()&&e.push('image'),this.fromMedia()&&e.push('media'),this.fromObject()&&e.push('object'),this.fromObjectSubrequest()&&e.push('object-subrequest'),this.fromOther()&&e.push('other'),this.fromPing()&&e.push('ping'),this.fromScript()&&e.push('script'),this.fromStylesheet()&&e.push('stylesheet'),this.fromSubdocument()&&e.push('subdocument'),this.fromWebsocket()&&e.push('websocket'),this.fromXmlHttpRequest()&&e.push('xmlhttprequest'),this.fromFont()&&e.push('font')),this.isImportant()&&e.push('important'),this.isRedirect()&&e.push(`redirect=${this.getRedirect()}`),this.firstParty()!==this.thirdParty()&&(this.firstParty()&&e.push('first-party'),this.thirdParty()&&e.push('third-party')),this.hasOptDomains()||this.hasOptNotDomains()){const
  302. $=[...this.getOptDomains()];this.getOptNotDomains().forEach((e)=>$.push(`~${e}`)),e.push(`domain=${$.join('|')}`)}return
  303. 0<e.length&&($+=`$${e.join(',')}`),this.isRightAnchor()&&($+='|'),$}hasFilter(){return!!this.filter}hasOptNotDomains(){return!!this.optNotDomains}getOptNotDomains(){return
  304. this.optNotDomainsSet=this.optNotDomainsSet||fe(this.optNotDomains),this.optNotDomainsSet}hasOptDomains(){return!!this.optDomains}getOptDomains(){return
  305. this.optDomainsSet=this.optDomainsSet||fe(this.optDomains),this.optDomainsSet}getMask(){return
  306. this.mask}isRedirect(){return!!this.redirect}getRedirect(){return
  307. this.redirect}hasHostname(){return!!this.hostname}getHostname(){return
  308. this.hostname}getFilter(){return
  309. this.filter}setRegex($){this.regex=$,this.mask=H$(this.mask,8388608),this.mask=Y$(this.mask,4194304)}getRegex(){return
  310. null===this.regex&&(this.regex=ke(this.filter,this.isRightAnchor(),this.isLeftAnchor(),this.matchCase())),this.regex}getTokens(){return
  311. $e(this.filter).concat($e(this.hostname))}isCptAllowed($){const
  312. --
  313. F$(this.mask,8388608)}isPlain(){return!F$(this.mask,8388608)}isHostname(){return
  314. F$(this.mask,2097152)}fromAny(){return(this.mask&bo)==bo}thirdParty(){return
  315. F$(this.mask,524288)}firstParty(){return
  316. F$(this.mask,1048576)}fromImage(){return
  317. F$(this.mask,1)}fromMedia(){return F$(this.mask,2)}fromObject(){return
  318. F$(this.mask,4)}fromObjectSubrequest(){return
  319. F$(this.mask,8)}fromOther(){return F$(this.mask,16)}fromPing(){return
  320. F$(this.mask,32)}fromScript(){return F$(this.mask,64)}fromStylesheet(){return
  321. F$(this.mask,128)}fromSubdocument(){return
  322. F$(this.mask,256)}fromWebsocket(){return
  323. F$(this.mask,512)}fromXmlHttpRequest(){return
  324. F$(this.mask,1024)}fromFont(){return F$(this.mask,8192)}}class
  325. wo{constructor({mask:$,selector:e,hostnames:a,id:o}){this.id=o,this.mask=$,this.selector=e,this.hostnames=a,this.hostnamesArray=null,this.rawLine=null}isCosmeticFilter(){return!0}isNetworkFilter(){return!1}toString(){let
  326. $='';return
  327. this.hasHostnames()&&($+=this.hostnames),$+=this.isUnhide()?'#@#':'##',this.isScriptInject()?($+='script:inject(',$+=this.selector,$+=')'):this.isScriptBlock()?($+='script:contains(',$+=this.selector,$+=')'):$+=this.selector,$}getTokensSelector(){if(this.isScriptInject()||this.isScriptBlock())return[];const
  328. $=this.selector.lastIndexOf('>');return-1===$?ee(this.selector):ee(this.selector.substr($))}getSelector(){return
  329. this.selector}hasHostnames(){return!!this.hostnames}getHostnames(){return
  330. null===this.hostnamesArray&&(this.hasHostnames()?this.hostnamesArray=this.hostnames.split(',').sort(($,e)=>$.length>e.length?-1:$.length<e.length?1:0):this.hostnamesArray=[]),this.hostnamesArray}isUnhide(){return
  331. F$(this.mask,1)}isScriptInject(){return
  332. F$(this.mask,2)}isScriptBlock(){return F$(this.mask,4)}}const zo=/\s/;class
  333. jo{constructor($,e,{optimizer:a=Ae,multiKeys:o=!1}={}){this.index=new
  334. --
  335. new Error("build: this should be implemented on the
  336. inherited classes")}destroy(){}getExprValue(){throw
  337. new Error("getExprValue: this should be implemented on the inherited
  338. classes")}_buildHashID(){if(!this.hash_id&&this.data&&this.data.raw_op)try{this.hash_id=(0,r.hashString)(JSON.stringify(this.data.raw_op))}catch(e){s.default.error(`Error
  339. building the hash: ${e}`),s.default.error(`Error
  340. building the hash for trigger id:
  341. ${this.data.parent_trigger.trigger_id}`),this.hash_id=null}}}},,,function(e,t,a){"use
  342. strict";function
  343. r(e,t,a,r,n,s,i,d,l){if("GET"===e&&t.startsWith("chrome://")&&c.chromeUrlHandler)return
  344. void(0,c.chromeUrlHandler)(t,a,r);const
  345. f=(0,u.XMLHttpRequestFactory)();var g=new f;return g.timestamp=+new
  346. Date,l&&(0,u.setBackgroundRequest)(g),g.open(e,t,!i),(0,u.setPrivateFlags)(g),g.overrideMimeType&&g.overrideMimeType("application/json"),g.setRequestHeader("Content-Type","application/json"),d&&g.setRequestHeader("Content-Encoding",d),g.onload=function(){if(parseInt){var
  347. e=parseInt(g.status/100);if(2==e||3==e||0==e)a&&a(g);else{const
  348. e=`loaded with non-200 ${t} (status=${g.status} ${g.statusText})
  349. CLIQZEnvironment.httpHandler`;o.default.log(e),r&&r(e)}}},g.onerror=function(){const
  350. e=`error loading ${t} (status=${g.status} ${g.statusText})
  351. CLIQZEnvironment.httpHandler`;o.default.log(e),r&&r(e)},g.ontimeout=function(){const
  352. e=`timeout for ${t}
  353. CLIQZEnvironment.httpHandler`;o.default.log(e),r&&r(e)},a&&(n?g.timeout=parseInt(n):g.timeout=0<=["POST","PUT"].indexOf(e)?1e4:1e3),g.send(s),g}function
  354. n(){return f(...arguments)}function s(e){return
  355. g&&!p.has(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Request=t.Headers=t.fetch=void
  356. --
  357. T(e,t,a,r){let n=e;return
  358. n=n.replace(/([|.$+?{}()[\]\\])/g,"\\$1"),n=n.replace(/\*/g,".*"),n=n.replace(/\^/g,"(?:[^\\w\\d_.%-]|$)"),t&&(n=`${n}$`),a&&(n=`^${n}`),r?new
  359. RegExp(n):new RegExp(n,"i")}function
  360. D(e){return new Set(e?e.split("|"):[])}function
  361. L(e,t,a){return a?n(e,t):s(e,t)}function w(e,t,a){const
  362. r=e.indexOf("*",t),n=e.indexOf("^",t);return-1!==r&&r<a||-1!==n&&n<a}Object.defineProperty(t,"__esModule",{value:!0});const
  363. I=131071,C={1:16,2:64,3:1,4:128,5:4,7:256,10:32,11:1024,12:8,13:4096,14:8192,15:2,16:512,17:65536,18:16384,19:32768,20:2048,21:1},M=/[/^*]/;class
  364. O{constructor(e){let
  365. t=e.mask,a=e.filter,r=e.optDomains,n=e.optNotDomains,s=e.redirect,i=e.hostname,d=e.id;this.id=d,this.mask=t,this.filter=a,this.optDomains=r,this.optNotDomains=n,this.redirect=s,this.hostname=i,this.regex=null,this.optDomainsSet=null,this.optNotDomainsSet=null,this.rawLine=null}isCosmeticFilter(){return!1}isNetworkFilter(){return!0}toString(){let
  366. e="";this.isException()&&(e+="@@"),this.isHostnameAnchor()&&(e+="||"),this.isLeftAnchor()&&(e+="|"),this.isRegex()?e+=this.getRegex().source:(this.hasHostname()&&(e+=this.getHostname(),e+="^"),e+=this.getFilter());const
  367. t=[];if(this.fromAny()||(this.fromImage()&&t.push("image"),this.fromMedia()&&t.push("media"),this.fromObject()&&t.push("object"),this.fromObjectSubrequest()&&t.push("object-subrequest"),this.fromOther()&&t.push("other"),this.fromPing()&&t.push("ping"),this.fromScript()&&t.push("script"),this.fromStylesheet()&&t.push("stylesheet"),this.fromSubdocument()&&t.push("subdocument"),this.fromWebsocket()&&t.push("websocket"),this.fromXmlHttpRequest()&&t.push("xmlhttprequest"),this.fromFont()&&t.push("font")),this.isImportant()&&t.push("important"),this.isRedirect()&&t.push(`redirect=${this.getRedirect()}`),this.firstParty()!==this.thirdParty()&&(this.firstParty()&&t.push("first-party"),this.thirdParty()&&t.push("third-party")),this.hasOptDomains()||this.hasOptNotDomains()){const
  368. e=[...this.getOptDomains()];this.getOptNotDomains().forEach((t)=>e.push(`~${t}`)),t.push(`domain=${e.join("|")}`)}return
  369. 0<t.length&&(e+=`$${t.join(",")}`),this.isRightAnchor()&&(e+="|"),e}hasFilter(){return!!this.filter}hasOptNotDomains(){return!!this.optNotDomains}getOptNotDomains(){return
  370. this.optNotDomainsSet=this.optNotDomainsSet||D(this.optNotDomains),this.optNotDomainsSet}hasOptDomains(){return!!this.optDomains}getOptDomains(){return
  371. this.optDomainsSet=this.optDomainsSet||D(this.optDomains),this.optDomainsSet}getMask(){return
  372. this.mask}isRedirect(){return!!this.redirect}getRedirect(){return
  373. this.redirect}hasHostname(){return!!this.hostname}getHostname(){return
  374. this.hostname}getFilter(){return
  375. this.filter}setRegex(e){this.regex=e,this.mask=n(this.mask,8388608),this.mask=s(this.mask,4194304)}getRegex(){return
  376. null===this.regex&&(this.regex=T(this.filter,this.isRightAnchor(),this.isLeftAnchor(),this.matchCase())),this.regex}getTokens(){return
  377. g(this.filter).concat(g(this.hostname))}isCptAllowed(e){const
  378. --
  379. r(this.mask,262144)}isImportant(){return r(this.mask,131072)}isRegex(){return
  380. r(this.mask,8388608)}isPlain(){return!r(this.mask,8388608)}isHostname(){return
  381. r(this.mask,2097152)}fromAny(){return(this.mask&I)==I}thirdParty(){return
  382. r(this.mask,524288)}firstParty(){return r(this.mask,1048576)}fromImage(){return
  383. r(this.mask,1)}fromMedia(){return r(this.mask,2)}fromObject(){return
  384. r(this.mask,4)}fromObjectSubrequest(){return r(this.mask,8)}fromOther(){return
  385. r(this.mask,16)}fromPing(){return r(this.mask,32)}fromScript(){return
  386. r(this.mask,64)}fromStylesheet(){return
  387. r(this.mask,128)}fromSubdocument(){return
  388. r(this.mask,256)}fromWebsocket(){return
  389. r(this.mask,512)}fromXmlHttpRequest(){return
  390. r(this.mask,1024)}fromFont(){return
  391. r(this.mask,8192)}}t.ReverseIndex=class{constructor(e,t){var
  392. r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},n=r.optimizer;let
  393. s=n===void 0?a:n;var i=r.multiKeys;this.index=new
  394. Map,this.size=0,this.optimizer=s,this.getTokens=t,this.multiKeys=i!==void
  395. 0&&i||!1,this.addFilters(e||[])}iterMatchingFilters(e,t){for(let
  396. a=0;a<e.length;a+=1)if(!1===this.iterBucket(e[a],t))return;this.iterBucket(0,t)}report(){const
  397. e=new Map;let t="";return this.index.forEach((a,r)=>{const
  398. n=a.filters;e.set(n.length,(e.get(n.length)||0)+1),5<length&&(t=t.concat(`adblocker
  399. size bucket "${r}" =>
  400. --
  401. 0){a.hit+=1,this.optimize(a);const e=a.filters;for(let
  402. a=0;a<e.length;a+=1)if(!1===t(e[a]))return!1}return!0}},t.matchNetworkFilter=function(e,t){return
  403. S(e,t)&&R(e,t)},t.parseNetworkFilter=function(e){const t=e;let
  404. a=1572864,l=null,u=null,c="",f="",g="",p=!1,h=0,_=t.length;o(t,"@@")&&(h+=2,a=n(a,134217728));const
  405. m=t.indexOf("$",h);if(-1!==m){_=m;const
  406. e=t.substr(m+1),r=e.split(",");for(let e=0;e<r.length;e+=1){const
  407. t=r[e];let i=!1,d=t;o(d,"~")?(i=!0,d=d.substr(1)):i=!1;let
  408. l=[];if(-1!==d.indexOf("=")){const
  409. e=d.split("=",2);d=e[0],l=e[1].split("|")}switch(d){case"domain":{const
  410. e=[],t=[];for(let a=0;a<l.length;a+=1){const
  411. r=l[a];r&&(o(r,"~")?t.push(r.substr(1)):e.push(r))}0<e.length&&(c=e.join("|")),0<t.length&&(f=t.join("|"));break}case"image":p=!0,a=L(a,1,!i);break;case"media":p=!0,a=L(a,2,!i);break;case"object":p=!0,a=L(a,4,!i);break;case"object-subrequest":p=!0,a=L(a,8,!i);break;case"other":p=!0,a=L(a,16,!i);break;case"ping":p=!0,a=L(a,32,!i);break;case"script":p=!0,a=L(a,64,!i);break;case"stylesheet":p=!0,a=L(a,128,!i);break;case"subdocument":p=!0,a=L(a,256,!i);break;case"xmlhttprequest":p=!0,a=L(a,1024,!i);break;case"websocket":p=!0,a=L(a,512,!i);break;case"font":p=!0,a=L(a,8192,!i);break;case"important":if(i)return
  412. null;a=n(a,131072);break;case"match-case":if(i)return
  413. null;a=n(a,262144);break;case"third-party":a=i?s(a,524288):s(a,1048576);break;case"first-party":a=i?s(a,1048576):s(a,524288);break;case"collapse":break;case"redirect":if(i)return
  414. null;if(0===l.length)return null;g=l[0];break;default:return
  415. null;}}}if(!1==p&&(a=n(a,I)),o(t,"127.0.0.1"))u=t.substr(t.lastIndexOf("
  416. ")+1),l="",a=s(a,8388608),a=n(a,2097152),a=n(a,67108864);else{"|"===t[_-1]&&(a=n(a,33554432),_-=1),i(t,"||",h)?(a=n(a,67108864),h+=2):"|"===t[h]&&(a=n(a,16777216),h+=1),"*"===t.charAt(_-1)&&1<_-h&&(_-=1);const
  417. e=w(t,h,_);a=L(a,8388608,e);const d=r(a,67108864);if(!e&&d){const
  418. e=t.indexOf("/",h);-1===e?(u=t.substring(h,_),l=""):(u=t.substring(h,e),h=e)}else
  419. if(e&&d){const
  420. e=t.search(M);-1!==e&&(u=t.substring(h,e),h=e,1==_-h&&"^"===t.charAt(h)?(l="",a=s(a,8388608)):a=L(a,8388608,w(t,h,_)))}}null===l&&(l=t.substring(h,_).toLowerCase());let
  421. y="";null!==u&&(y=u);let
  422. --
  423. strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e){this.maxSize=e,this.reset=()=>{this.cache=new
  424. Map,this.head=null,this.tail=null,this.size=0},this.reset()}has(e){return
  425. this.cache.has(e)}get(e){const
  426. t=this.cache.get(e);return t?(this._touch(t),t.value):void 0}set(e,t){let
  427. a=this.cache.get(e);a?(a.value=t,this._touch(a)):(a=this._newNode(e,t),this.size>=this.maxSize&&(this.cache.delete(this.tail.key),this._remove(this.tail)),this.cache.set(e,a),this._pushFront(a))}_newNode(e,t){return{prev:null,next:null,key:e,value:t}}_touch(e){this._remove(e),this._pushFront(e)}_remove(e){e&&(null===e.prev?this.head=e.next:e.prev.next=e.next,null===e.next?this.tail=e.prev:e.next.prev=e.prev,this.size-=1)}_pushFront(e){e&&(e.prev=null,e.next=this.head,null!==this.head&&(this.head.prev=e),this.head=e,null===this.tail&&(this.tail=e),this.size+=1)}}},function(e,t,a){"use
  428. strict";Object.defineProperty(t,"__esModule",{value:!0});var
  429. r=a(611),n=function(e){return
  430. e&&e.__esModule?e:{default:e}}(r);t.default=n.default},,,,,,,,,,,,function(e,t){"use
  431. strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={gw:"cc",gu:"cc",gt:"cc",gs:"cc",gr:"cc",gq:"cc",gp:"cc",dance:"na",tienda:"na",gy:"cc",gg:"cc",gf:"cc",ge:"cc",gd:"cc",gb:"cc",ga:"cc",edu:"na",gn:"cc",gm:"cc",gl:"cc",公司:"na",gi:"cc",gh:"cc",tz:"cc",zone:"na",tv:"cc",tw:"cc",tt:"cc",immobilien:"na",tr:"cc",tp:"cc",tn:"cc",to:"cc",tl:"cc",bike:"na",tj:"cc",tk:"cc",th:"cc",tf:"cc",tg:"cc",td:"cc",tc:"cc",coop:"na",онлайн:"na",cool:"na",ro:"cc",vu:"cc",democrat:"na",guitars:"na",qpon:"na",срб:"cc",zm:"cc",tel:"na",futbol:"na",za:"cc",بازار:"na",рф:"cc",zw:"cc",blue:"na",mu:"cc",ไทย:"cc",asia:"na",marketing:"na",测试:"na",international:"na",net:"na",新加坡:"cc",okinawa:"na",பரிட்சை:"na",טעסט:"na",삼성:"na",sexy:"na",institute:"na",台灣:"cc",pics:"na",公益:"na",机构:"na",social:"na",domains:"na",香港:"cc",集团:"na",limo:"na",мон:"cc",tools:"na",nagoya:"na",properties:"na",camera:"na",today:"na",club:"na",company:"na",glass:"na",berlin:"na",me:"cc",md:"cc",mg:"cc",mf:"cc",ma:"cc",mc:"cc",tokyo:"na",mm:"cc",ml:"cc",mo:"cc",mn:"cc",mh:"cc",mk:"cc",cat:"na",reviews:"na",mt:"cc",mw:"cc",mv:"cc",mq:"cc",mp:"cc",ms:"cc",mr:"cc",cab:"na",my:"cc",mx:"cc",mz:"cc",இலங்கை:"cc",wang:"na",estate:"na",clothing:"na",monash:"na",guru:"na",technology:"na",travel:"na",テスト:"na",pink:"na",fr:"cc",테스트:"na",farm:"na",lighting:"na",fi:"cc",fj:"cc",fk:"cc",fm:"cc",fo:"cc",sz:"cc",kaufen:"na",sx:"cc",ss:"cc",sr:"cc",sv:"cc",su:"cc",st:"cc",sk:"cc",sj:"cc",si:"cc",sh:"cc",so:"cc",sn:"cc",sm:"cc",sl:"cc",sc:"cc",sb:"cc",rentals:"na",sg:"cc",se:"cc",sd:"cc",组织机构:"na",shoes:"na",中國:"cc",industries:"na",lb:"cc",lc:"cc",la:"cc",lk:"cc",li:"cc",lv:"cc",lt:"cc",lu:"cc",lr:"cc",ls:"cc",holiday:"na",ly:"cc",coffee:"na",ceo:"na",在线:"na",ye:"cc",إختبار:"na",ninja:"na",yt:"cc",name:"na",moda:"na",eh:"cc",بھارت:"cc",ee:"cc",house:"na",eg:"cc",ec:"cc",vote:"na",eu:"cc",et:"cc",es:"cc",er:"cc",ru:"cc",rw:"cc",ભારત:"cc",rs:"cc",boutique:"na",re:"cc",سورية:"cc",gov:"na",орг:"na",red:"na",foundation:"na",pub:"na",vacations:"na",org:"na",training:"na",recipes:"na",испытание:"na",中文网:"na",support:"na",onl:"na",中信:"na",voto:"na",florist:"na",ලංකා:"cc",қаз:"cc",management:"na",مصر:"cc",آزمایشی:"na",kiwi:"na",academy:"na",sy:"cc",cards:"na",संगठन:"na",pro:"na",kred:"na",sa:"cc",mil:"na",我爱你:"na",agency:"na",みんな:"na",equipment:"na",mango:"na",luxury:"na",villas:"na",政务:"na",singles:"na",systems:"na",plumbing:"na",δοκιμή:"na",تونس:"cc",پاکستان:"cc",gallery:"na",kg:"cc",ke:"cc",বাংলা:"cc",ki:"cc",kh:"cc",kn:"cc",km:"cc",kr:"cc",kp:"cc",kw:"cc",link:"na",ky:"cc",voting:"na",cruises:"na",عمان:"cc",cheap:"na",solutions:"na",測試:"na",neustar:"na",partners:"na",இந்தியா:"cc",menu:"na",arpa:"na",flights:"na",rich:"na",do:"cc",dm:"cc",dj:"cc",dk:"cc",photography:"na",de:"cc",watch:"na",dz:"cc",supplies:"na",report:"na",tips:"na",გე:"cc",bar:"na",qa:"cc",shiksha:"na",укр:"cc",vision:"na",wiki:"na",قطر:"cc",한국:"cc",computer:"na",best:"na",voyage:"na",expert:"na",diamonds:"na",email:"na",wf:"cc",jobs:"na",bargains:"na",移动:"na",jp:"cc",jm:"cc",jo:"cc",ws:"cc",je:"cc",kitchen:"na",ਭਾਰਤ:"cc",ایران:"cc",ua:"cc",buzz:"na",com:"na",uno:"na",ck:"cc",ci:"cc",ch:"cc",co:"cc",cn:"cc",cm:"cc",cl:"cc",cc:"cc",ca:"cc",cg:"cc",cf:"cc",community:"na",cd:"cc",cz:"cc",cy:"cc",cx:"cc",cr:"cc",cw:"cc",cv:"cc",cu:"cc",pr:"cc",ps:"cc",pw:"cc",pt:"cc",holdings:"na",wien:"na",py:"cc",ai:"cc",pa:"cc",pf:"cc",pg:"cc",pe:"cc",pk:"cc",ph:"cc",pn:"cc",pl:"cc",pm:"cc",台湾:"cc",aero:"na",catering:"na",photos:"na",परीक्षा:"na",graphics:"na",فلسطين:"cc",ভারত:"cc",ventures:"na",va:"cc",vc:"cc",ve:"cc",vg:"cc",iq:"cc",vi:"cc",is:"cc",ir:"cc",it:"cc",vn:"cc",im:"cc",il:"cc",io:"cc",in:"cc",ie:"cc",id:"cc",tattoo:"na",education:"na",parts:"na",events:"na",భారత్:"cc",cleaning:"na",kim:"na",contractors:"na",mobi:"na",center:"na",photo:"na",nf:"cc",مليسيا:"cc",wed:"na",supply:"na",网络:"na",сайт:"na",careers:"na",build:"na",الاردن:"cc",bid:"na",biz:"na",السعودية:"cc",gift:"na",дети:"na",works:"na",游戏:"na",tm:"cc",exposed:"na",productions:"na",koeln:"na",dating:"na",christmas:"na",bd:"cc",be:"cc",bf:"cc",bg:"cc",ba:"cc",bb:"cc",bl:"cc",bm:"cc",bn:"cc",bo:"cc",bh:"cc",bi:"cc",bj:"cc",bt:"cc",bv:"cc",bw:"cc",bq:"cc",br:"cc",bs:"cc",post:"na",by:"cc",bz:"cc",om:"cc",ruhr:"na",امارات:"cc",repair:"na",xyz:"na",شبكة:"na",viajes:"na",museum:"na",fish:"na",الجزائر:"cc",hr:"cc",ht:"cc",hu:"cc",hk:"cc",construction:"na",hn:"cc",solar:"na",hm:"cc",info:"na",சிங்கப்பூர்:"cc",uy:"cc",uz:"cc",us:"cc",um:"cc",uk:"cc",ug:"cc",builders:"na",ac:"cc",camp:"na",ae:"cc",ad:"cc",ag:"cc",af:"cc",int:"na",am:"cc",al:"cc",ao:"cc",an:"cc",aq:"cc",as:"cc",ar:"cc",au:"cc",at:"cc",aw:"cc",ax:"cc",az:"cc",ni:"cc",codes:"na",nl:"cc",no:"cc",na:"cc",nc:"cc",ne:"cc",actor:"na",ng:"cc",भारत:"cc",nz:"cc",سودان:"cc",np:"cc",nr:"cc",nu:"cc",xxx:"na",世界:"na",kz:"cc",enterprises:"na",land:"na",المغرب:"cc",中国:"cc",directory:"na"}},function(){"use
  432. strict"},function(e,t){"use
  433. strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLHttpRequestFactory=function(){return
  434. XMLHttpRequest},t.setPrivateFlags=function(){},t.setBackgroundRequest=function(){}},function(e,t){"use
  435. strict";Object.defineProperty(t,"__esModule",{value:!0});t.chromeUrlHandler=!1},function(e,t){"use
  436. strict";Object.defineProperty(t,"__esModule",{value:!0});var
  437. a={init(){},stateToQueryString:function(){return"&lang=de,en"},addLocale(){}};t.default=a},function(e,t){"use
  438. strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=crypto},function(e,t){"use
  439. strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPlatformAtLeastInVersion=function(){return!0},t.isCliqzAtLeastInVersion=function(){return!0},t.default={isMobile:!1,isFirefox:!1,isChromium:!0,get
  440. isEdge(){try{return
  441. /Edge/.test(navigator.userAgent)}catch(t){return!1}}};t.OS={}},function(e,t,a){"use
  442. strict";function r(e){return
  443. e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguageFromLocale=void
  444. 0,t.getMessage=function(e){let t=1<arguments.length&&void
  445. --
  446. this.whitelist.getState(e)},addPipelineStep(e,t){if(this.initialized){const
  447. a=this.getPipeline(e);null===a?v.default.error("WebRequest
  448. pipeline (add) does not have
  449. stage",e):a.addPipelineStep(t)}},removePipelineStep(e,t){if(this.initialized){const
  450. a=this.getPipeline(e);null===a?v.default.error("WebRequest
  451. pipeline (remove) does not have
  452. stage",e):(a.removePipelineStep(t),0===a.length&&this.unloadPipeline(e))}}}})},function(e,t,a){"use
  453. strict";function r(e){const t=new Map;for(let a=0;a<e.length;a+=1){const
  454. r=e[a];t.set(r.name.toLowerCase(),r.value)}return
  455. t}Object.defineProperty(t,"__esModule",{value:!0});var n=a(82);const
  456. s={other:1,script:2,image:3,stylesheet:4,object:5,main_frame:6,sub_frame:7,xbl:9,ping:10,xmlhttprequest:11,object_subrequest:12,xml_dtd:13,font:14,media:15,websocket:16,csp_report:17,xslt:18,beacon:19,imageset:21,web_manifest:22},i=Object.keys(s).reduce((e,t)=>Object.assign(e,{[s[t]]:t}),{});class
  457. d{constructor(e){this.requestId=e.requestId,this.timeStamp=e.timeStamp,this.method=e.method,this.ip=e.ip,this.error=e.error,this.proxyInfo=e.proxyInfo,this.frameId=e.frameId,this.parentFrameId=e.parentFrameId,this.tabId=e.tabId,this.url=e.url,this._urlParts=null,this.originUrl=e.originUrl,this._originUrlParts=null,this.sourceUrl=e.sourceUrl,this._sourceUrlParts=null,this.trigger=e.trigger||e.originUrl,this.type=e.type,"string"==typeof
  458. e.type?this.typeInt=s[e.type]:(this.typeInt=this.type,this.type=i[e.type]),this.requestHeaders=e.requestHeaders,this._requestHeadersMap=null,this.responseHeaders=e.responseHeaders,this._responseHeadersMap=null,this.isRedirect=e.isRedirect,this.statusCode=e.statusCode,this.fromCache=e.fromCache,this.isPrivate=e.isPrivate||!1}get
  459. urlParts(){return
  460. null===this._urlParts&&(this._urlParts=n.URLInfo.get(this.url)),this._urlParts}get
  461. originUrlParts(){return
  462. null===this._originUrlParts&&(this._originUrlParts=n.URLInfo.get(this.originUrl)),this._originUrlParts}get
  463. sourceUrlParts(){return
  464. null===this._sourceUrlParts&&(this._sourceUrlParts=n.URLInfo.get(this.sourceUrl)),this._sourceUrlParts}getRequestHeader(e){return
  465. this.requestHeaders?(null===this._requestHeadersMap&&(this._requestHeadersMap=r(this.requestHeaders)),this._requestHeadersMap.get(e.toLowerCase())):void
  466. 0}getResponseHeader(e){return
  467. --
  468. data for domain ${a}`),Object(o.c)(i[a]);const
  469. e=i[a].events.splice(0,100);n('POST',r,JSON.stringify(e),function(){Object(o.c)('>>>>
  470. Success>>>'),0===i[a].events.length&&delete i[a]},function(){Object(o.c)('Error
  471. while sending data'),e.map((t)=>i[a].events.push(t))})}else
  472. if(100<=i[a].events.length){Object(o.c)(`Push data
  473. for domain ${a}`),Object(o.c)(i[a]),Object(o.c)('>>>>>
  474. length of data being sent; '+i[a].events.length);const
  475. e=i[a].events.splice(0,100);n('POST',r,JSON.stringify(e),function(){Object(o.c)('>>>>
  476. Success>>>'),0===i[a].events.length&&delete i[a]},function(){Object(o.c)('Error
  477. while sending data'),e.map((t)=>i[a].events.push(t))})}})}function
  478. n(e,t,a,s,n,i){const r=new XMLHttpRequest;return
  479. r.open(e,t,!0),r.setRequestHeader('Content-Type','application/json'),r.setRequestHeader('Accept','application/json'),r.onload=function(){200!==r.status&&0!==r.status&&204!==r.status?(Object(o.c)(`loaded
  480. with non-200 ${t} status=
  481. ${r.status}`),n()):s(r)},r.onerror=function(){Object(o.c)(`error loading
  482. ${t} status= ${r.status}`),n()},r.ontimeout=function(){Object(o.c)(`timeout for
  483. ${t}`),n()},s&&(i?r.timeout=parseInt(i):r.timeout='POST'===e?3e4:1e3),r.send(a),r}var
  484. o=a(4);const
  485. i={},r='https://l.ghostery.com/api/census',d={pacemakerID:setInterval(function(){d.counter+=1,Object(o.c)(`Pacemaker
  486. ${d.counter}`),0==d.counter%60&&s()},1e3,null),counter:0,record:function(e,t){i.hasOwnProperty(t)||(i[t]={events:[],ts:null}),i[t].events.push(e),i[t].ts=Date.now(),Object(o.c)(`Length
  487. >>>>
  488. ${JSON.stringify(i)}`)},unload:function(){d.pacemakerID.cancel()}};t.a=d},1104:function(e,t,a){'use
  489. --
  490. r.body;const d=new Request(t,r);return fetch(d).then((e)=>{const
  491. a=e.headers.get('content-type');return
  492. e.ok?204!==e.status&&(a&&a.includes('application/json')?e.json():a&&a.includes('text/html')?e.text():e.text()):Promise.reject(new
  493. Error(`Failed to fetch ${t} with status ${e.status}
  494. (${e.statusText})`))}).then((e)=>{if('string'==typeof
  495. e&&e.includes('{'))try{return Object(p.c)('_fetchJson
  496. resolved',e?JSON.parse(e):{}),e?JSON.parse(e):{}}catch(e){return
  497. Object(p.c)('_fetchJson error',e),Promise.reject(new Error(e))}else return
  498. e}).catch((e)=>(Object(p.c)(`_fetchJson Error: ${e}`),Promise.reject(new
  499. Error(e))))}return new Promise(function(n,o){const i=new
  500. XMLHttpRequest;if(i.onload=function(){if(!(200<=i.status&&400>i.status))Object(p.c)('_fetchJson
  501. error',i.statusText),o(new
  502. Error(i.statusText));else if(204===i.status)n(!1);else
  503. if(i.responseText.includes('{'))try{Object(p.c)('_fetchJson
  504. resolved',i.responseText?JSON.parse(i.responseText):{}),n(i.responseText?JSON.parse(i.responseText):{})}catch(e){Object(p.c)('_fetchJson
  505. error',e),o(new Error(e))}else
  506. n(i.responseText)},i.onerror=function(e){Object(p.c)('_fetchJson
  507. network error',e),o(new Error(e))},Object(p.c)('_fetchJson
  508. request',e,t,a,s),i.open(e,t,!0),i.setRequestHeader('Content-Type','application/json'),i.setRequestHeader('Accept','application/json'),s)for(let[e,t]of
  509. Object(p.d)(s))i.setRequestHeader(e,t);i.overrideMimeType('application/json'),i.send(a)})}t.r=s,t.a=function(e,t,a){Object(p.c)('IN
  510. BROADCAST
  511. --
  512. a&&a(chrome.runtime.lastError)):e&&'function'==typeof
  513. t&&t(e)})},t.g=n,t.n=function(e){b?chrome.tabs.create({url:e.url,active:e.become_active||!1}):e.tab_id?chrome.tabs.get(e.tab_id,(t)=>{t?chrome.tabs.create({url:e.url,active:e.become_active||!1,openerTabId:t.id,index:t.index+1,windowId:t.windowId}):o(e)}):o(e)},t.o=function(e,t,a){return
  514. r('POST',e,t,a).catch(function(e){return Object(p.c)('postJson
  515. error',e),Promise.reject(e)})},t.h=function(e,t){return
  516. r('GET',e,null,t).catch(function(e){return Object(p.c)('getJson
  517. error',e),Promise.reject(e)})},t.d=function(e){return'function'==typeof
  518. fetch?fetch(e,{type:'image'}).then((t)=>t.ok?t.text():Promise.reject(new
  519. Error(`Failed to fetchLocalImageResource ${e} with status ${t.status}
  520. (${t.statusText})`))).catch((e)=>(Object(p.c)(`fetchLocalImageResource error:
  521. ${e}`),Promise.reject(new Error(e)))):new Promise(function(t,a){const s=new
  522. XMLHttpRequest;s.onload=function(){200<=s.status&&400>s.status?t(s.responseText):(Object(p.c)('fetchLocalImageResource
  523. error',s.statusText),a(new
  524. Error(s.statusText)))},s.onerror=function(e){Object(p.c)('fetchLocalImageResource
  525. network error',e),a(new Error(e))},Object(p.c)('fetchLocalImageResource
  526. request',e),s.open('GET',e,!0),s.overrideMimeType('image/png'),s.send()})},t.e=function(e){return'function'==typeof
  527. fetch?fetch(e).then((t)=>t.ok?t.json():Promise.reject(new
  528. Error(`Failed to fetchLocalJSONResource ${e} with status ${t.status}
  529. (${t.statusText})`))).catch((e)=>(Object(p.c)(`fetchLocalJSONResource error:
  530. ${e}`),Promise.reject(new Error(e)))):new Promise(function(t,a){const s=new
  531. XMLHttpRequest;s.onload=function(){if(200<=s.status&&400>s.status)try{t(s.responseText?JSON.parse(s.responseText):{})}catch(e){Object(p.c)('fetchLocalJSONResource
  532. error',e),a(new Error(e))}else
  533. Object(p.c)('fetchLocalJSONResource error',s.statusText),a(new
  534. Error(s.statusText))},s.onerror=function(e){Object(p.c)('fetchLocalJSONResource
  535. network error',e),a(new Error(e))},Object(p.c)('fetchLocalJSONResource
  536. request',e),s.open('GET',e,!0),s.overrideMimeType('image/png'),s.send()})},t.k=i,t.j=function(e,t=!1){if(_['default'].NOTIFICATIONS_LOADED)return
  537. Promise.resolve(!0);const a=c.a.getTabInfo(e);return
  538. a&&!0===a.prefetched||a.path&&a.path.includes('_/chrome/newtab')||!t&&_['default'].EXCLUDES.includes(a.host)?Promise.resolve(!1):i(e,'dist/notifications.js','','document_start').then(()=>(_['default'].NOTIFICATIONS_LOADED=!0,!0)).catch((e)=>(Object(p.c)('injectNotifications
  539. error',e),!1))},t.l=function(e){return
  540. e&&'cliqz'===e.origin&&'offers'===e.type&&e.data},t.c=function(){try{return
  541. localStorage.setItem('test',!0),localStorage.removeItem('test'),!0}catch(t){return!1}},t.t=function(e){if(Object(p.c)('TRANSFER
  542. --
  543. ${h} ./dist/background.js- extension_version:
  544. ${b}`),_.a.record(o,y.host),this._setCache(f.preCensusCache,u,a,k)}}recordPageInfo(e,t){if(r.a.ghostrank&&!p.a.isSuspiciousDomainName(e)){let
  545. a=p.a.maskURL(e);const
  546. s='https://l.ghostery.com/api/page/?d='+encodeURIComponent(a)+'&l='+t+'&ua='+encodeURIComponent(h);if(Object(c.c)(`\nGhostrank
  547. Page Info: ./dist/background.js- domain:
  548. ${a} ./dist/background.js- page_latency:
  549. ${t} ./dist/background.js: ua:
  550. ${h}`),'function'==typeof fetch){const e=new
  551. Request(s,{referrerPolicy:'no-referrer',credentials:'omit'});fetch(e).catch((e)=>{Object(c.c)('Error
  552. sending Ghostrank Page Info:',e)})}else{const e=new
  553. XMLHttpRequest;e.open('GET',s,!0),e.send()}}}isValidUrl(e){return
  554. e.protocol.startsWith('http')&&e.host.includes('.')&&/[A-Za-z]/.test(e.host)||(Object(c.c)('Ghostrank
  555. data not sent, invalid URL'),!1)}_cleanCaches(){const
  556. e=this._getToday();[f.censusCache,f.preCensusCache].forEach(function(t,a){for(let
  557. s in t)t.hasOwnProperty(s)&&s!==e&&(Object(c.c)('Cleaned
  558. up',1===a?'preCensusCache':'censusCache'),delete
  559. t[s])})}_setCache(e,t,a,s){e[t]||(e[t]={}),e[t][s]||(e[t][s]={}),e[t][s][a]=1}_getToday(){const
  560. e=new Date;return
  561. e.getFullYear()+'-'+e.getMonth()+'-'+e.getDate()}}t.a=f},244:function(e,t,a){'use
  562. strict';function s(){const e={};return A.forEach((t)=>{e[t]=b.a[t]}),e}function
  563. n(e){return p().then(()=>l(e)).catch((e)=>(Object(f.c)('Token
  564. --
  565. e=this._buildMetricsUrl('uninstall');e.length&&chrome.runtime.setUninstallURL(e)}}}_buildMetricsUrl(e,t){const
  566. a='uninstall'===e?'':'/'+t;return'https://'+l+'.ghostery.com/'+e+a+'?gr='+encodeURIComponent(n.a.ghostrank?'1':'0')+'&hw='+encodeURIComponent(p?'0':n.a.enable_human_web?'1':'0')+'&offers='+encodeURIComponent(p?'0':n.a.enable_offers?'1':'0')+'&v='+encodeURIComponent(c)+'&install_rand='+encodeURIComponent(n.a.install_random_number)+'&signed_in='+encodeURIComponent(n.a.login_info.logged_in?'1':'0')+'&install_date='+encodeURIComponent(n.a.install_date)+'&noncritical='+encodeURIComponent(n.a.enable_metrics?'1':'0')+'&purplebox='+encodeURIComponent(n.a.show_alert?n.a.alert_expanded?'1':'2':'0')+'&show_cmp='+encodeURIComponent(n.a.show_cmp?'1':'0')+'&ua='+encodeURIComponent(_.token)+'&os='+encodeURIComponent(_.os)+'&l='+encodeURIComponent(n.a.language)+'&utm_source='+encodeURIComponent(this.utm_source)+'&utm_campaign='+encodeURIComponent(this.utm_campaign)}_sendReq(e,t){if('undefined'==typeof
  567. t&&(t=['all']),!p&&'function'==typeof fetch){var
  568. a=new Headers;a.append('Content-Type','image/gif');var
  569. s={headers:a,referrerPolicy:'no-referrer',credentials:'omit',type:'image'}}t.forEach((t)=>{if(this._checkPing(e,t)){const
  570. a=+new
  571. Date().getTime(),i=this._buildMetricsUrl(e,t),r=n.a.metrics||{};if(r[e+'_'+t]=a,n.a.metrics=r,Object(o.c)(`sending
  572. ${e} ping with ${t} frequency`),!p&&'function'==typeof fetch){const
  573. t=new Request(i,s);fetch(t).catch((t)=>{Object(o.c)(`Error
  574. sending Metrics ${e} ping`,t)})}else{const e=new
  575. XMLHttpRequest;e.open('GET',i,!0),e.setRequestHeader('Content-Type','image/gif'),e.send()}}})}_timeToExpired(e,t){if('all'===t)return
  576. 0;else{const a=n.a.metrics[e+'_'+t],s=a===void 0?0:a,o=+new
  577. Date().getTime(),i=o-r[t];return null===s?0:s-i}}_checkPing(e,t){const
  578. a=this._timeToExpired(e,t);return!(0<a)&&(d.includes(e)||n.a.enable_metrics)}_recordInstall(){n.a.metrics.install_all||this._sendReq('install')}_recordUpgrade(){const
  579. e=n.a.metrics;e.install_all=+new
  580. Date().getTime(),n.a.metrics=e,this._sendReq('upgrade')}_recordActive(){const
  581. e=this._timeToExpired('active','daily');0<e?setTimeout(()=>{this._sendReq('active',['daily']),setInterval(()=>{this._sendReq('active',['daily'])},r.daily)},e):(this._sendReq('active',['daily']),setInterval(()=>{this._sendReq('active',['daily'])},r.daily));const
  582. t=this._timeToExpired('active','weekly');0<t?setTimeout(()=>{this._sendReq('active',['weekly']),setInterval(()=>{this._sendReq('active',['weekly'])},r.weekly)},t):(this._sendReq('active',['weekly']),setInterval(()=>{this._sendReq('active',['weekly'])},r.weekly));const
  583. a=this._timeToExpired('active','monthly');0<a?a<=r.biweekly?setTimeout(()=>{this._sendReq('active',['monthly']),this._repeat()},a):setTimeout(()=>{setTimeout(()=>{this._sendReq('active',['monthly']),this._repeat()},a-r.biweekly)},r.biweekly):(this._sendReq('active',['monthly']),this._repeat())}_repeat(){let
  584. e=!1;setInterval(()=>{e&&this._sendReq('active',['monthly']),e=!e},r.biweekly)}}},495:function(e,t,a){'use
  585. strict';var s=a(22),n=a(2),o=a(23),i=a(4);const
  586. --
  587. if(e.hasOwnProperty('bugsVersion')&&t.version!==e.bugsVersion){const
  588. s=n.a.reduce(e.bugs,function(e,t){return
  589. e[t.aid]=!0,e},{});a=this.updateNewAppIds(t.apps,s),a.length&&(this.applyBlockByDefault(a),t.version>e.bugsVersion&&(l.JUST_UPDATED_WITH_NEW_TRACKERS=!0))}o.a.bugs=t}return
  590. l.categories=this.buildCategories(l),this.db=l,a||Object(r.f)(),!0}}t.a=new
  591. l('bugs')}},[596]); -- ./cliqz/hpn/worker.bundle.js- const core
  592. = { ./cliqz/hpn/worker.bundle.js- // Method that performs
  593. request ./cliqz/hpn/worker.bundle.js- req(method, uri, data,
  594. type) { ./cliqz/hpn/worker.bundle.js- // Creating a promise
  595. ./cliqz/hpn/worker.bundle.js- const promise = new Promise((resolve,
  596. reject) => { ./cliqz/hpn/worker.bundle.js: // Instantiates
  597. the XMLHttpRequest ./cliqz/hpn/worker.bundle.js: const
  598. client = new XMLHttpRequest(); ./cliqz/hpn/worker.bundle.js-
  599. ./cliqz/hpn/worker.bundle.js- client.open(method, uri, true);
  600. ./cliqz/hpn/worker.bundle.js- client.setRequestHeader('x-type',
  601. type || 'delayed'); ./cliqz/hpn/worker.bundle.js-
  602. client.overrideMimeType('application/json'); ./cliqz/hpn/worker.bundle.js-
  603. // client.setRequestHeader("Content-Type", "application/json;charset=utf-8");
  604. -- ./cliqz/core/content-script.bundle.js- options.push('subdocument');
  605. ./cliqz/core/content-script.bundle.js- }
  606. ./cliqz/core/content-script.bundle.js- if
  607. (this.fromWebsocket()) { ./cliqz/core/content-script.bundle.js-
  608. options.push('websocket'); ./cliqz/core/content-script.bundle.js-
  609. } ./cliqz/core/content-script.bundle.js: if
  610. (this.fromXmlHttpRequest()) { ./cliqz/core/content-script.bundle.js:
  611. options.push('xmlhttprequest'); ./cliqz/core/content-script.bundle.js- }
  612. ./cliqz/core/content-script.bundle.js- if (this.fromFont()) {
  613. ./cliqz/core/content-script.bundle.js- options.push('font');
  614. ./cliqz/core/content-script.bundle.js- }
  615. ./cliqz/core/content-script.bundle.js- } --
  616. ./cliqz/core/content-script.bundle.js- return
  617. getBit(this.mask, 256); ./cliqz/core/content-script.bundle.js-
  618. } ./cliqz/core/content-script.bundle.js- fromWebsocket()
  619. { ./cliqz/core/content-script.bundle.js- return
  620. getBit(this.mask, 512); ./cliqz/core/content-script.bundle.js- }
  621. ./cliqz/core/content-script.bundle.js: fromXmlHttpRequest()
  622. { ./cliqz/core/content-script.bundle.js- return
  623. getBit(this.mask, 1024); ./cliqz/core/content-script.bundle.js-
  624. } ./cliqz/core/content-script.bundle.js- fromFont()
  625. { ./cliqz/core/content-script.bundle.js- return
  626. getBit(this.mask, 8192); ./cliqz/core/content-script.bundle.js-
  627. } -- ./cliqz/core/content-script.bundle.js- break;
  628. ./cliqz/core/content-script.bundle.js- case 'subdocument':
  629. ./cliqz/core/content-script.bundle.js- hasCptOption = true;
  630. ./cliqz/core/content-script.bundle.js- mask = setNetworkMask(mask,
  631. 256, !negation); ./cliqz/core/content-script.bundle.js- break;
  632. ./cliqz/core/content-script.bundle.js: case 'xmlhttprequest':
  633. ./cliqz/core/content-script.bundle.js- hasCptOption = true;
  634. ./cliqz/core/content-script.bundle.js- mask = setNetworkMask(mask,
  635. 1024, !negation); ./cliqz/core/content-script.bundle.js- break;
  636. ./cliqz/core/content-script.bundle.js- case 'websocket':
  637. ./cliqz/core/content-script.bundle.js- hasCptOption = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement