(function(){function e(e,t){try{const n=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=n}catch(e){}}function t(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",t)=>e+t.toString(16).padStart(8,"0")),"")}class n{registeredApis={};frameId=t();registerApi(e,t){if(this.registeredApis[e]!==undefined){throw new Error(`API ${e} already registered.`)}this.registeredApis[e]=t}getRegisteredApi(e){return this.registeredApis[e]}getFrameId(){if(!this.frameId){this.frameId=t()}return this.frameId}registerFrame(){e("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}if(!window.__gCrWeb){window.__gCrWeb=new n}const r=window.__gCrWeb;function o(e){const t=new RegExp("banner|combx|comment|community|disqus|extra|foot|header|menu|related|"+"remark|rss|share|shoutbox|sidebar|skyscraper|sponsor|ad-break|"+"agegate|pagination|pager|popup");const n=new RegExp("and|article|body|column|main|shadow");const r=e.className+" "+e.id;if(t.test(r)&&!n.test(r)){return 0}if(e.matches&&e.matches("li p")){return 0}const o=e.textContent?.length||0;return Math.min(1e3,o)}function s(e,t){const n=[];for(let t=0;t<e.length;t++){const r=e[t];if(r===undefined){continue}n.push(o(r))}for(let e=0;e<t.length;e++){const r=t[e];if(r===undefined){continue}n.push(o(r))}return n}function i(e,t,n){let r=0;for(let o=0;o<e.length;o++){const s=e[o];if(s===undefined){continue}if(s<n){continue}r+=Math.pow(s-n,t)}return r}function a(){const t=performance.now();const n=document.body;if(!n){return}const r=document.body.getElementsByTagName("p");const o=document.body.getElementsByTagName("pre");const a=s(r,o);const c={numElements:n.getElementsByTagName("*").length,numAnchors:n.getElementsByTagName("a").length,numForms:n.getElementsByTagName("form").length,mozScore:Math.min(6*Math.sqrt(1e3-140),i(a,.5,140)),mozScoreAllSqrt:Math.min(6*Math.sqrt(1e3),i(a,.5,0)),mozScoreAllLinear:Math.min(6*1e3,i(a,1,0)),time:0};const d=performance.now();const m=d-t;c["time"]=m;e("ReaderModeMessageHandler",c)}r.readerMode={retrieveDOMFeatures:a}})();