1import{h as L,T as W,U as j,m as C,r as O,p as _,l as D,V as F,W as $}from"./Dn9c66Ap.js";function S(e){return W()?(j(e),!0):!1}function I(){const e=new Set,n=l=>{e.delete(l)};return{on:l=>{e.add(l);const f=()=>n(l);return S(f),{off:f}},off:n,trigger:(...l)=>Promise.all(Array.from(e).map(f=>f(...l)))}}function b(e){return typeof e=="function"?e():L(e)}const k=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const x=e=>e!=null,N=Object.prototype.toString,R=e=>N.call(e)==="[object Object]",y=()=>{},B=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),G=U();function U(){var e,n;return k&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const P=k?window:void 0,V=k?window.document:void 0;function v(e){var n;const i=b(e);return(n=i==null?void 0:i.$el)!=null?n:i}function E(...e){let n,i,u,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([i,u,l]=e,n=P):[n,i,u,l]=e,!n)return y;Array.isArray(i)||(i=[i]),Array.isArray(u)||(u=[u]);const f=[],m=()=>{f.forEach(c=>c()),f.length=0},r=(c,o,p,g)=>(c.addEventListener(o,p,g),()=>c.removeEventListener(o,p,g)),d=_(()=>[v(n),b(l)],([c,o])=>{if(m(),!c)return;const p=R(o)?{...o}:o;f.push(...i.flatMap(g=>u.map(h=>r(c,g,h,p))))},{immediate:!0,flush:"post"}),w=()=>{d(),m()};return S(w),w}let M=!1;function K(e,n,i={}){const{window:u=P,ignore:l=[],capture:f=!0,detectIframe:m=!1}=i;if(!u)return y;G&&!M&&(M=!0,Array.from(u.document.body.children).forEach(t=>t.addEventListener("click",y)),u.document.documentElement.addEventListener("click",y));let r=!0;const d=t=>b(l).some(s=>{if(typeof s=="string")return Array.from(u.document.querySelectorAll(s)).some(a=>a===t.target||t.composedPath().includes(a));{const a=v(s);return a&&(t.target===a||t.composedPath().includes(a))}});function w(t){const s=b(t);return s&&s.$.subTree.shapeFlag===16}function c(t,s){const a=b(t),A=a.$.subTree&&a.$.subTree.children;return A==null||!Array.isArray(A)?!1:A.some(T=>T.el===s.target||s.composedPath().includes(T.el))}const o=t=>{const s=v(e);if(t.target!=null&&!(!(s instanceof Element)&&w(e)&&c(e,t))&&!(!s||s===t.target||t.composedPath().includes(s))){if(t.detail===0&&(r=!d(t)),!r){r=!0;return}n(t)}};let p=!1;const g=[E(u,"click",t=>{p||(p=!0,setTimeout(()=>{p=!1},0),o(t))},{passive:!0,capture:f}),E(u,"pointerdown",t=>{const s=v(e);r=!d(t)&&!!(s&&!t.composedPath().includes(s))},{passive:!0}),m&&E(u,"blur",t=>{setTimeout(()=>{var s;const a=v(e);((s=u.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(a!=null&&a.contains(u.document.activeElement))&&n(t)},0)})].filter(Boolean);return()=>g.forEach(t=>t())}function q(){const e=O(!1),n=F();return n&&D(()=>{e.value=!0},n),e}function H(e){const n=q();return C(()=>(n.value,!!e()))}function Q(e,n,i={}){const{root:u,rootMargin:l="0px",threshold:f=0,window:m=P,immediate:r=!0}=i,d=H(()=>m&&"IntersectionObserver"in m),w=C(()=>{const h=b(e);return(Array.isArray(h)?h:[h]).map(v).filter(x)});let c=y;const o=O(r),p=d.value?_(()=>[w.value,v(u),o.value],([h,t])=>{if(c(),!o.value||!h.length)return;const s=new IntersectionObserver(n,{root:v(t),rootMargin:l,threshold:f});h.forEach(a=>a&&s.observe(a)),c=()=>{s.disconnect(),c=y}},{immediate:r,flush:"post"}):y,g=()=>{c(),p(),o.value=!1};return S(g),{isSupported:d,isActive:o,pause(){c(),o.value=!1},resume(){o.value=!0},stop:g}}const z={multiple:!0,accept:"*",reset:!1,directory:!1};function X(e={}){const{document:n=V}=e,i=O(null),{on:u,trigger:l}=I(),{on:f,trigger:m}=I();let r;n&&(r=n.createElement("input"),r.type="file",r.onchange=c=>{const o=c.target;i.value=o.files,l(i.value)},r.oncancel=()=>{m()});const d=()=>{i.value=null,r&&r.value&&(r.value="",l(null))},w=c=>{if(!r)return;const o={...z,...e,...c};r.multiple=o.multiple,r.accept=o.accept,r.webkitdirectory=o.directory,B(o,"capture")&&(r.capture=o.capture),o.reset&&d(),r.click()};return{files:$(i),open:w,reset:d,onCancel:f,onChange:u}}export{Q as a,K as o,X 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.