1import{D as W,L as A,M as F,N,O as S,u as x,G as g,r as v,P,b as T}from"./BJWtpvdE.js";function I(e){return F()?(N(e),!0):!1}function w(e){return typeof e=="function"?e():x(e)}const j=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const C=e=>e!=null,D=Object.prototype.toString,V=e=>D.call(e)==="[object Object]",h=()=>{};function _(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const H=e=>e();function G(e,t={}){let n,r,i=h;const o=s=>{clearTimeout(s),i(),i=h};return s=>{const a=w(e),u=w(t.maxWait);return n&&o(n),a<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{i=t.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(s())},a)})}}function z(e){return S()}function Q(e,t,n={}){const{eventFilter:r=H,...i}=n;return g(e,_(r,t),i)}function Y(e,t=!0,n){z()?W(e,n):t?e():A(e)}function J(e,t,n={}){const{debounce:r=0,maxWait:i=void 0,...o}=n;return Q(e,t,{...o,eventFilter:G(r,{maxWait:i})})}const y=j?window:void 0;function b(e){var t;const n=w(e);return(t=n?.$el)!=null?t:n}function k(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=y):[t,n,r,i]=e,!t)return h;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],l=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,m,p)=>(c.addEventListener(f,m,p),()=>c.removeEventListener(f,m,p)),a=g(()=>[b(t),w(i)],([c,f])=>{if(l(),!c)return;const m=V(f)?{...f}:f;o.push(...n.flatMap(p=>r.map(d=>s(c,p,d,m))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return I(u),u}function B(){const e=v(!1),t=S();return t&&W(()=>{e.value=!0},t),e}function M(e){const t=B();return T(()=>(t.value,!!e()))}function R(e,t={}){const{window:n=y}=t,r=M(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=v(!1),l=u=>{o.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",l):i.removeListener(l))},a=P(()=>{r.value&&(s(),i=n.matchMedia(w(e)),"addEventListener"in i?i.addEventListener("change",l):i.addListener(l),o.value=i.matches)});return I(()=>{a(),s(),i=void 0}),o}function $(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:o=0,window:l=y,immediate:s=!0}=n,a=M(()=>l&&"IntersectionObserver"in l),u=T(()=>{const d=w(e);return(Array.isArray(d)?d:[d]).map(b).filter(C)});let c=h;const f=v(s),m=a.value?g(()=>[u.value,b(r),f.value],([d,L])=>{if(c(),!f.value||!d.length)return;const E=new IntersectionObserver(t,{root:b(L),rootMargin:i,threshold:o});d.forEach(O=>O&&E.observe(O)),c=()=>{E.disconnect(),c=h}},{immediate:s,flush:"post"}):h,p=()=>{c(),m(),f.value=!1};return I(p),{isSupported:a,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:p}}function K(e,t={}){const{window:n=y,scrollTarget:r,threshold:i=0}=t,o=v(!1);return $(e,l=>{let s=o.value,a=0;for(const u of l)u.time>=a&&(a=u.time,s=u.isIntersecting);o.value=s},{root:r,window:n,threshold:i}),o}function U(e={}){const{window:t=y,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:l="inner"}=e,s=v(n),a=v(r),u=()=>{t&&(l==="outer"?(s.value=t.outerWidth,a.value=t.outerHeight):o?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};if(u(),Y(u),k("resize",u,{passive:!0}),i){const c=R("(orientation: portrait)");g(c,()=>u())}return{width:s,height:a}}export{$ as a,U as b,K as u,J as w};
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.