1import{bo as g,r as a,cL as l}from"./index-CuSEeJFb.js";const S=u=>{const[i]=g(),r=a.useRef(new Set),c=a.useRef(Date.now()),t=u||i;return a.useEffect(()=>{r.current.clear(),c.current=Date.now();const s=()=>{const d=window.innerHeight,w=document.documentElement.scrollHeight-d,m=window.pageYOffset||document.documentElement.scrollTop,f=Math.round(m/w*100);[25,50,75,90,100].forEach(e=>{if(f>=e&&!r.current.has(e)&&(r.current.add(e),l(e,t),e>=75)){const h=(Date.now()-c.current)/1e3;l(e,`${t}_time_${Math.round(h)}s`)}})};let n=!1;const o=()=>{n||(requestAnimationFrame(()=>{s(),n=!1}),n=!0)};return window.addEventListener("scroll",o,{passive:!0}),()=>{window.removeEventListener("scroll",o)}},[t]),{trackCustomScrollEvent:(s,n)=>{const o=(Date.now()-c.current)/1e3;l(0,`${t}_${s}_${Math.round(o)}s`)}}};export{S as u};
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.