PageSourceSearch

https://umbraint.com/assets/use-in-view-BqNgqeT4.js

js umbraint.com collected 2026-10-07 10:50:01 UTC 1,041 bytes, 1 lines download raw bytes

1import{q as f,P as p,Q as m,T as E,r as I}from"./index-DGVy8yui.js";function b(s){const t=f.useRef(0),{isStatic:o}=f.useContext(p);f.useEffect(()=>{if(o)return;const r=({timestamp:e,delta:c})=>{t.current||(t.current=e),s(e-t.current,c)};return m.update(r,!0),()=>E(r)},[s])}const h={some:0,all:1};function v(s,t,{root:o,margin:r,amount:e="some"}={}){const c=I(s),i=new WeakMap,l=a=>{a.forEach(n=>{const d=i.get(n.target);if(n.isIntersecting!==!!d)if(n.isIntersecting){const g=t(n.target,n);typeof g=="function"?i.set(n.target,g):u.unobserve(n.target)}else typeof d=="function"&&(d(n),i.delete(n.target))})},u=new IntersectionObserver(l,{root:o,rootMargin:r,threshold:typeof e=="number"?e:h[e]});return c.forEach(a=>u.observe(a)),()=>u.disconnect()}function x(s,{root:t,margin:o,amount:r,once:e=!1,initial:c=!1}={}){const[i,l]=f.useState(c);return f.useEffect(()=>{if(!s.current||e&&i)return;const u=()=>(l(!0),e?void 0:()=>l(!1)),a={root:t&&t.current||void 0,margin:o,amount:r};return v(s.current,u,a)},[t,s,o,e,r]),i}export{x as a,b 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.