1import{t as e}from"./vendor-react~index~index~publish-v4~publish~index~nag-sunset~nag-no-user~nag-degraded-perfo~ef2jpwjt-DLne3g0l.js";import{s as t}from"./rolldown-runtime-Czos8NxU.js";import{l as n}from"./vendor-markdown~index~index~index~index~index~index~index~index~index~index~index~markdown-~hcabgpoy-BRj_0M9Z.js";import{t as r}from"./debounce-4lmnK-An.js";var i=t(e()),a=n(),o=50;function s(e){let t=window.devicePixelRatio||1;return t<1?Math.ceil(e/t):Math.ceil(e*t)}function c(e){let{yOffset:t}=e,n=i.useRef(),[c,l]=i.useState(!1),u=i.useCallback(e=>{let n=e&&e.current;if(n){let e=n.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,a=t&&e.top<r+s(t);return e.width>0&&e.height>0&&e.bottom>=0&&e.right>=0&&e.top<=r&&e.left<=i||a}return!1},[t]);i.useEffect(()=>{let e=setTimeout(()=>{!c&&u(n)&&l(!0)},500);return()=>clearTimeout(e)},[]),i.useEffect(()=>{let e=r(()=>{u(n)&&l(!0)},o);if(n&&n.current&&!c)return window.addEventListener(`scroll`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e)}},[n,l,c,u]);let d=e.skipWait||c;return(0,a.jsxs)(`div`,{ref:n,children:[d&&e.children,!d&&e.placeholder!==void 0&&e.placeholder]})}export{c as t}; 2//# sourceMappingURL=wait-until-on-page-DTVnTJ4S.js.map
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.