1function ieAvtInitArticleViewTracker(){"use strict";if(!isScrollDepth()){return}if(window.__ieAvtInited){return}window.__ieAvtInited=true;if("undefined"===typeof IntersectionObserver||"undefined"===typeof WeakMap||"undefined"===typeof Map||"undefined"===typeof Set){return}let ieAvtConfig={articleSelector:".native_story[data-postid]",contentSelector:".story_details",articleTextSelector:"p, h2, h3, h4, h5, h6, li",articleTextExcludeSelector:["script","style","noscript","template","figure","figcaption","picture","iframe","video","audio","aside","[hidden]",'[aria-hidden="true"]',".ad",".ads",".adbox",".adsbox",".ad-slot",".ad-container",".ad-wrapper",".advertisement",".advertisment",".google-ad","ins.adsbygoogle","[data-ad-slot]","[data-ad-unit]",'[id^="ad-"]','[id^="ads-"]',".related-story",".related-stories",".recommended",".recommendation",".also-read"].join(","),debug:false,thresholds:[25,50,75,100],wordCountBuckets:[{max:200,label:"0-200"},{max:400,label:"201-400"},{max:600,label:"401-600"},{max:800,label:"601-800"},{max:1e3,label:"801-1000"},{max:1500,label:"1001-1500"},{max:2e3,label:"1501-2000"},{max:Infinity,label:"2000+"}],elapsedSecBuckets:[{max:10,label:"0-10"},{max:50,label:"10-50"},{max:100,label:"50-100"},{max:200,label:"100-200"},{max:500,label:"200-500"},{max:1e3,label:"500-1000"},{max:Infinity,label:"1000+"}],fastScrollWpsThreshold:15,recomputeDelayMs:1500,backgroundTaskTimeoutMs:1e3};
1function ieAvtScheduleBackgroundTask(callback,timeoutMs){let timeout=timeoutMs||ieAvtConfig.backgroundTaskTimeoutMs;if(window.scheduler&&"function"===typeof window.scheduler.postTask){window.scheduler.postTask(callback,{priority:"background"});return}if("function"===typeof window.requestIdleCallback){window.requestIdleCallback(callback,{timeout:timeout});return}setTimeout(callback,0)}let ieAvtArticles=new Map;let ieAvtFeedPositionCounter=0;let ieAvtHiddenIntervals=[];if(typeof document!=="undefined"&&document.hidden){ieAvtHiddenIntervals.push({start:Date.now(),end:null})}document.addEventListener("visibilitychange",()=>{if(document.hidden){ieAvtHiddenIntervals.push({start:Date.now(),end:null})}else{let openInterval=ieAvtHiddenIntervals[ieAvtHiddenIntervals.length-1];if(openInterval&&openInterval.end===null){openInterval.end=Date.now()}}});function ieAvtHiddenMsBetween(t0,t1){if(t0==null){return 0}let total=0;for(let interval of ieAvtHiddenIntervals){let s=Math.max(interval.start,t0);let e=Math.min(interval.end??Date.now(),t1);if(e>s){total+=e-s}}return total}let ieAvtIo=new IntersectionObserver(ieAvtHandleIntersections,{root:null,threshold:0});let ieAvtMarkerMeta=new WeakMap;function ieAvtHandleIntersections(entries){for(let entry of entries){if(!entry.isIntersecting){continue}let meta=ieAvtMarkerMeta.get(entry.target);if(!meta){continue}let state=ieAvtArticles.get(meta.postid);if(!state||state.fired.has(meta.label)){ieAvtIo.unobserve(entry.target);if(entry.target.classList&&entry.target.classList.contains("ie-avt-marker")){entry.target.remove()}continue}state.fired.add(meta.label);ieAvtLogProgress(meta.postid,meta.label);ieAvtIo.unobserve(entry.target);if(entry.target.classList&&entry.target.classList.contains("ie-avt-marker")){entry.target.remove()}}}function ieAvtBucketLookup(value,buckets){for(let bucket of buckets){if(value<=bucket.max){return bucket.label}}return buckets[buckets.length-1].label}function ieAvtBucketizeWordCount(wordCount){return ieAvtBucketLookup(wordCount,ieAvtConfig.wordCountBuckets)}function ieAvtBucketizeElapsedMs(elapsedMs){let elapsedSeconds=elapsedMs/1e3;return ieAvtBucketLookup(elapsedSeconds,ieAvtConfig.elapsedSecBuckets)}function ieAvtLogProgress(postid,label){let state=ieAvtArticles.get(postid);let now=Date.now();let elapsedMs=null;let deltaMs=null;let likelyFastScroll=null;if(state){if(label==="started"){state.startTime=now;elapsedMs=0}else if(state.startTime!=null){elapsedMs=now-state.startTime-ieAvtHiddenMsBetween(state.startTime,now)}if(state.lastBodyEventTime!=null){deltaMs=now-state.lastBodyEventTime-ieAvtHiddenMsBetween(state.lastBodyEventTime,now);deltaMs=Math.max(deltaMs,0);let prevPct=state.lastBodyPct??0;let currPct=label==="started"?0:label;let wordsCovered=(currPct-prevPct)/100*state.wordCount;let seconds=deltaMs/1e3;if(seconds>0&&wordsCovered>0){let wps=wordsCovered/seconds;likelyFastScroll=wps>ieAvtConfig.fastScrollWpsThreshold}else if(deltaMs===0){likelyFastScroll=true}}state.lastBodyEventTime=now;state.lastBodyPct=label==="started"?0:label}let pct=label==="started"?0:label;let elapsedBucket=elapsedMs!=null?ieAvtBucketizeElapsedMs(elapsedMs):null;if(state&&(typeof label==="number"||label==="started")){if(!state.impliedFired.has(label)){state.impliedFired.add(label);ieAvtFireImplyScrollDepth(pct,elapsedBucket,state.wordBucket,state.feedPosition,likelyFastScroll)}}}function ieAvtFireImplyScrollDepth(percent,elapsedBucket,wordBucket,feedPosition,likelyFastScroll){let sImplyData={};sImplyData.eventName="scroll_depth_tracker";sImplyData.eventType="scroll_depth";sImplyData.e1=String(percent);sImplyData.e2=elapsedBucket;sImplyData.e3=wordBucket;sImplyData.e4=feedPosition;sImplyData.e5=likelyFastScroll?"true":"false";if("undefined"!==typeof window.psdkvar&&window.psdkvar&&"function"===typeof window.psdkvar.eventCapture){ieAvtScheduleBackgroun
1dTask(()=>{if("undefined"===typeof window.psdkvar||!window.psdkvar||"function"!==typeof window.psdkvar.eventCapture){return}window.psdkvar.eventCapture(sImplyData)})}}function ieAvtMakeMarker(topDocPx,postid,label,markerRoot){let marker=document.createElement("div");marker.className="ie-avt-marker";marker.style.cssText=` 2 position: absolute; 3 top: ${topDocPx}px; 4 left: 0; 5 width: 1px; 6 height: 1px; 7 pointer - events: none; 8 visibility: hidden; 9 `;markerRoot.appendChild(marker);ieAvtMarkerMeta.set(marker,{postid:postid,label:label});ieAvtIo.observe(marker);return marker}function ieAvtGetArticleTextStats(contentEl){let textParts=[];let blocks=contentEl.querySelectorAll(ieAvtConfig.articleTextSelector);for(let block of blocks){if(block.closest(ieAvtConfig.articleTextExcludeSelector)){continue}if(block.matches("li")&&block.querySelector("p")){continue}let blockText=(block.textContent||"").replace(/\s+/g," ").trim();if(blockText){textParts.push(blockText)}}let text=textParts.join(" ");return{text:text,charCount:text.length,wordCount:text?(text.match(/\S+/g)||[]).length:0}}function ieAvtPlaceMarkersFor(container,postid,feedPosition,markerParent){if(!container){return}let prev=ieAvtArticles.get(postid);let contentEl=container.querySelector(ieAvtConfig.contentSelector);if(!contentEl){return}let rect=contentEl.getBoundingClientRect();let contentTopDoc=rect.top+window.scrollY;let contentHeight=contentEl.scrollHeight||rect.height;if(contentHeight<=0){return}let textStats=prev?null:ieAvtGetArticleTextStats(contentEl);let charCount=prev?prev.charCount:textStats.charCount;let wordCount=prev?prev.wordCount:textStats.wordCount;let wordBucket=prev?prev.wordBucket:ieAvtBucketizeWordCount(wordCount);let fired=prev?prev.fired:new Set;let impliedFired=prev?prev.impliedFired:new Set;let startTime=prev?prev.startTime:null;let lastBodyEventTime=prev?prev.lastBodyEventTime:null;let lastBodyPct=prev?prev.lastBodyPct:null;let markers=[];let markerRoot=markerParent||document.createDocumentFragment();if(prev){for(let m of prev.markers){ieAvtIo.unobserve(m);if(m.classList&&m.classList.contains("ie-avt-marker")){m.remove()}}}if(!fired.has("started")){ieAvtMarkerMeta.set(contentEl,{postid:postid,label:"started"});ieAvtIo.observe(contentEl);markers.push(contentEl)}for(let pct of ieAvtConfig.thresholds){if(fired.has(pct)){continue}let top=contentTopDoc+contentHeight*pct/100;markers.push(ieAvtMakeMarker(top,postid,pct,markerRoot))}ieAvtArticles.set(postid,{fired:fired,impliedFired:impliedFired,markers:markers,wordCount:wordCount,charCount:charCount,wordBucket:wordBucket,startTime:startTime,lastBodyEventTime:lastBodyEventTime,lastBodyPct:lastBodyPct,feedPosition:prev?prev.feedPosition:feedPosition,container:container,contentEl:contentEl,contentHeight:contentHeight});if(!markerParent&&markerRoot.childNodes.length){document.body.appendChild(markerRoot)}}let ieAvtPendingResizePostids=new Set;let ieAvtResizeWorkScheduled=false;function ieAvtProcessNextResize(){let next=ieAvtPendingResizePostids.values().next();if(next.done){ieAvtResizeWorkScheduled=false;return}let postid=next.value;ieAvtPendingResizePostids.delete(postid);let markerRoot=document.createDocumentFragment();let state=ieAvtArticles.get(postid);if(state&&state.contentEl.isConnected){let contentHeight=state.contentEl.scrollHeight;if(Math.abs(contentHeight-state.contentHeight)>=1){try{ieAvtPlaceMarkersFor(state.container,postid,state.feedPosition,markerRoot)}catch(err){if(ieAvtConfig.debug){console.log("view-tracker error",postid,err)}}}}if(markerRoot.childNodes.length){document.body.appendChild(markerRoot)}
9if(ieAvtPendingResizePostids.size){ieAvtScheduleBackgroundTask(ieAvtProcessNextResize)}else{ieAvtResizeWorkScheduled=false}}function ieAvtSchedulePendingResizeWork(){if(ieAvtResizeWorkScheduled||!ieAvtPendingResizePostids.size){return}ieAvtResizeWorkScheduled=true;ieAvtScheduleBackgroundTask(ieAvtProcessNextResize)}let ieAvtResizeObserver="undefined"!==typeof ResizeObserver?new ResizeObserver(entries=>{for(let entry of entries){let meta=ieAvtMarkerMeta.get(entry.target);if(meta){ieAvtPendingResizePostids.add(meta.postid)}}ieAvtSchedulePendingResizeWork()}):null;function ieAvtSetupArticleTracking(container,markerRoot){let postid=container&&container.dataset?container.dataset.postid:null;if(!postid||container.dataset.ieAvtInit){return}container.dataset.ieAvtInit="1";ieAvtFeedPositionCounter+=1;let feedPosition=ieAvtFeedPositionCounter;try{ieAvtPlaceMarkersFor(container,postid,feedPosition,markerRoot)}catch(err){if(ieAvtConfig.debug){console.log("view-tracker error",postid,err)}}let state=ieAvtArticles.get(postid);if(state&&ieAvtResizeObserver){ieAvtResizeObserver.observe(state.contentEl)}else if(state){setTimeout(()=>{try{ieAvtPlaceMarkersFor(container,postid,feedPosition)}catch(err){if(ieAvtConfig.debug){console.log("view-tracker error",postid,err)}}},ieAvtConfig.recomputeDelayMs)}}function ieAvtTrackNewInfiniteScrollArticle(articleElement){if("subscriber"!==ieSget_cookie("ev_user_state")){return}if(!articleElement||!articleElement.isConnected||articleElement.nodeType!==1||"function"!==typeof articleElement.matches||!articleElement.matches(ieAvtConfig.articleSelector)){return}let markerRoot=document.createDocumentFragment();ieAvtSetupArticleTracking(articleElement,markerRoot);if(markerRoot.childNodes.length){document.body.appendChild(markerRoot)}}window.ieAvtTrackNewInfiniteScrollArticle=ieAvtTrackNewInfiniteScrollArticle;window.ieAvtRescanArticles=ieAvtInit;function ieAvtInit(){let markerRoot=document.createDocumentFragment();let initialArticles=document.querySelectorAll(ieAvtConfig.articleSelector);for(let article of initialArticles){ieAvtSetupArticleTracking(article,markerRoot)}if(markerRoot.childNodes.length){document.body.appendChild(markerRoot)}}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",ieAvtInit)}else{ieAvtInit()}function isScrollDepth(){if("undefined"===typeof ieScrollDepthSetting){return false}let userType=ieSget_cookie("ev_user_state");if("guest"===userType){return ieScrollDepthSetting.is_anon}if("registered"===userType){return ieScrollDepthSetting.is_reg}if("subscriber"===userType){return ieScrollDepthSetting.is_sub}return false}function ieSget_cookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");var arr_length=ARRcookies.length;for(i=0;i<arr_length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);x=x.replace(/^\s+|\s+$/g,"");if(x===c_name){return unescape(y)}}}}document.addEventListener("success-sublime-api",function(e){if(ie_sd_sublime_isDisabled()){return}if("undefined"!==typeof e&&"undefined"!==typeof e.detail&&"undefined"!==typeof e.detail.ruleEngineResponseDto&&("pay_wall"===e.detail.ruleEngineResponseDto.actionName||"hard_register_wall"===e.detail.ruleEngineResponseDto.actionName)){return}ieAvtInitScrollDepth()});document.addEventListener("success-evolok-api",function(evResponse){if(!ie_sd_sublime_isDisabled()){return}if("undefined"!==typeof evResponse&&"undefined"!==typeof evResponse.result&&("REQUIRE_LOGIN"===evResponse.result||"REQUIRE_ENTITLEMENT"===evResponse.result)){return}ieAvtInitScrollDepth()});function ieAvtInitScrollDepth(){if(window.__ieAvtInited){if("function"===typeof window.ieAvtRescanArticles){window.ieAvtRescanArticles()}return}if(window.__ieAvtStartScheduled){return}window.__ieAvtStartScheduled=true;let startTracker=function(){window.__ieAvtStartScheduled=false;ieAvtInitArticleViewTracker()};if("function"===typeof window.requestIdleCallback){window.requestIdleCallback(startTracker,{timeout:2e3})}else{setTimeout(startTracker,0)}}function ie_sd_sublime_isDisabled(){return"undefined"!==typeof custom_ua_data&&"undefined"!==typeof custom_ua_data.enable_sublime&&"false"===custom_ua_data.enable_sublime}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.