1import{ct as e,tt as t,vn as n,xn as r}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{l as i,o as a,p as o}from"./dist-B-kFk9Az.js";import{t as s}from"./ssr-F9GWYbf6.js";import{l as c}from"./utils-DICGkfbo.js";var l=Symbol(`visibility-gate`),u=4e3;function d(e){if(!s||!e)return!1;let t=globalThis.location.hash.slice(1);if(!t)return!1;let n=document.getElementById(t);return n?n===e||n.contains(e)||e.contains(n):!1}function f(s={}){let{rootMargin:l=`120px 0px`,threshold:f=0}=s,p=n(null),m=r(!1),h=r(0),{stop:g}=i(p,([e])=>{e?.isIntersecting&&(m.value=!0,g())},{rootMargin:l,threshold:f}),_=()=>{d(p.value)&&t(()=>{c(globalThis.location.hash.slice(1))})},v=()=>{h.value=Date.now()+u,_()},y=()=>{h.value=0},b=()=>m.value||!d(p.value)?!1:(m.value=!0,g(),!0);return e(()=>{b()&&v()}),a(globalThis.window,`hashchange`,()=>{(b()||m.value&&d(p.value))&&v()}),a(globalThis.window,`wheel`,y,{passive:!0}),a(globalThis.window,`touchmove`,y,{passive:!0}),o(p,()=>{Date.now()>h.value||_()}),{rootRef:p,shouldMount:m,onContentReady:()=>{Date.now()>h.value||_()}}}export{l as n,f as t};
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.