1import{r}from"./jsx-runtime-Cz9qpTus.js";const O=({initialDirection:t,thresholdPixels:l,off:n}={})=>{const u="down",[f,c]=r.useState(t),[w,S]=r.useState(0);return r.useEffect(()=>{const d=l||0;let o=window.pageYOffset,s=!1;const i=()=>{const e=window.pageYOffset;if(Math.abs(e-o)<d){s=!1;return}c(e>o?u:"up"),o=e>0?e:0,s=!1,S(e)},a=()=>{s||(window.requestAnimationFrame(i),s=!0)};return n?c(t):window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)},[t,l,n]),{scrollDir:f,scrollPos:w}};export{O 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.