1import{L,c as M,ab as d,b as S,m as j,r as C}from"./CyVqXwo4.js";const I=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const O=Object.prototype.toString,R=t=>O.call(t)==="[object Object]",y=()=>{};function T(t){return Array.isArray(t)?t:[t]}function W(t,s,i){return L(t,s,{...i,immediate:!0})}const k=I?window:void 0;function p(t){var s;const i=d(t);return(s=i?.$el)!==null&&s!==void 0?s:i}function P(...t){const s=(o,r,l,a)=>(o.addEventListener(r,l,a),()=>o.removeEventListener(r,l,a)),i=M(()=>{const o=T(d(t[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return W(()=>{var o,r;return[(o=(r=i.value)===null||r===void 0?void 0:r.map(l=>p(l)))!==null&&o!==void 0?o:[k].filter(l=>l!=null),T(d(i.value?t[1]:t[0])),T(S(i.value?t[2]:t[1])),d(i.value?t[3]:t[2])]},([o,r,l,a],b,c)=>{if(!o?.length||!r?.length||!l?.length)return;const v=R(a)?{...a}:a,g=o.flatMap(f=>r.flatMap(h=>l.map(m=>s(f,h,m,v))));c(()=>{g.forEach(f=>f())})},{flush:"post"})}function D(t,s,i={}){const{window:o=k,ignore:r=[],capture:l=!0,detectIframe:a=!1,controls:b=!1}=i;if(!o)return b?{stop:y,cancel:y,trigger:y}:y;let c=!0;const v=e=>d(r).some(n=>{if(typeof n=="string")return Array.from(o.document.querySelectorAll(n)).some(u=>u===e.target||e.composedPath().includes(u));{const u=p(n);return u&&(e.target===u||e.composedPath().includes(u))}});function g(e){const n=d(e);return n&&n.$.subTree.shapeFlag===16}function f(e,n){const u=d(e),E=u.$.subTree&&u.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some($=>$.el===n.target||n.composedPath().includes($.el))}const h=e=>{const n=p(t);if(e.target!=null&&!(!(n instanceof Element)&&g(t)&&f(t,e))&&!(!n||n===e.target||e.composedPath().includes(n))){if("detail"in e&&e.detail===0&&(c=!v(e)),!c){c=!0;return}s(e)}};let m=!1;const w=[P(o,"click",e=>{m||(m=!0,setTimeout(()=>{m=!1},0),h(e))},{passive:!0,capture:l}),P(o,"pointerdown",e=>{const n=p(t);c=!v(e)&&!!(n&&!e.composedPath().includes(n))},{passive:!0}),a&&P(o,"blur",e=>{setTimeout(()=>{var n;const u=p(t);((n=o.document.activeElement)===null||n===void 0?void 0:n.tagName)==="IFRAME"&&!u?.contains(o.document.activeElement)&&s(e)},0)},{passive:!0})].filter(Boolean),A=()=>w.forEach(e=>e());return b?{stop:A,cancel:()=>{c=!1},trigger:e=>{c=!0,h(e),c=!1}}:A}const G=t=>{const s=j(t),i=C(!1),o=()=>{i.value=!1};return D(s,()=>{o()}),{active:i,closeDropdown:o}};export{G 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.