1import{bl as U,bm as D,aO as W,C as g,z as x,j as M,ai as P,a_ as Y,bn as C,aj as j,N as I,a2 as q,al as $,bo as H,d as V,$ as X,ah as T,bp as E,a3 as S,bq as _,br as G,bs as z,bt as F,bu as L,o as J,l as Q,h as Z,T as ee,g as te,V as ne,S as oe,bv as re}from"./B85l4eF0.js";const se=D(()=>{const e=g(new Map),t=g(),n=M(()=>{for(const c of e.value.values())if(c)return!0;return!1}),r=W({scrollBody:g(!0)});let u=null;const l=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",C&&u?.(),t.value=void 0};return x(n,(c,p)=>{if(!P)return;if(!c){p&&l();return}t.value===void 0&&(t.value=document.body.style.overflow);const i=window.innerWidth-document.documentElement.clientWidth,h={padding:i,margin:0},s=r.scrollBody?.value?typeof r.scrollBody.value=="object"?Y({padding:r.scrollBody.value.padding===!0?i:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?i:r.scrollBody.value.margin},h):h:{padding:0,margin:0};i>0&&(document.body.style.paddingRight=typeof s.padding=="number"?`${s.padding}px`:String(s.padding),document.body.style.marginRight=typeof s.margin=="number"?`${s.margin}px`:String(s.margin),document.documentElement.style.setProperty("--scrollbar-width",`${i}px`),document.body.style.overflow="hidden"),C&&(u=j(document,"touchmove",o=>ae(o),{passive:!1})),I(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Se(e){const t=Math.random().toString(36).substring(2,7),n=se();n.value.set(t,e??!1);const r=M({get:()=>n.value.get(t)??!1,set:u=>n.value.set(t,u)});return U(()=>{n.value.delete(t)}),r}function K(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:K(n)}}function ae(e){const t=e||window.event,n=t.target;return n instanceof Element&&K(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var ue=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},b=new WeakMap,w=new WeakMap,A={},O=0,N=function(e){return e&&(e.host||N(e.parentNode))},ie=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=N(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ce=function(e,t,n,r){var u=ie(t,Array.isArray(e)?e:[e]);A[n]||(A[n]=new WeakMap);var l=A[n],c=[],p=new Set,i=new Set(u),h=function(o){!o||p.has(o)||(p.add(o),h(o.parentNode))};u.forEach(h);var s=function(o){!o||i.has(o)||Array.prototype.forEach.call(o.children,function(a){if(p.has(a))s(a);else try{var m=a.getAttribute(r),d=m!==null&&m!=="false",f=(b.get(a)||0)+1,v=(l.get(a)||0)+1;b.set(a,f),l.set(a,v),c.push(a),f===1&&d&&w.set(a,!0),v===1&&a.setAttribute(n,"true"),d||a.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",a,y)}})};return s(t),p.clear(),O++,function(){c.forEach(function(o){var a=b.get(o)-1,m=l.get(o)-1;b.set(o,a),l.set(o,m),a||(w.has(o)||o.removeAttribute(r),w.delete(o)),m||o.removeAttribute(n)}),O--,O||(b=new WeakMap,b=new WeakMap,w=new WeakMap,A={})}},le=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=ue(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live], script"))),ce(r,u,n,"aria-hidden")):function(){return null}};function we(e){let t;x(()=>$(e),n=>{let r=!1;try{r=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!r?t=le(n):t&&t()}),q(()=>{t&&t()})}const de=H(()=>g([]));function fe(){const e=de();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=k(e.value,t),e.value.unshift(t)},remove(t){e.value=k(e.value,t),e.value[0]?.resume()}}}function k(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var ve=V({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:u,currentElement:l}=X(),c=g(null),p=fe(),i=oe({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});T(s=>{if(!P)return;const o=l.value;if(!n.trapped)return;function a(v){if(i.paused||!o)return;const y=v.target;o.contains(y)?c.value=y:E(c.value,{select:!0})}function m(v){if(i.paused||!o)return;const y=v.relatedTarget;y!==null&&(o.contains(y)||E(c.value,{select:!0}))}function d(v){const y=c.value;if(y===null||!v.some(R=>R.removedNodes.length>0))return;o.contains(y)||E(o)}document.addEventListener("focusin",a),document.addEventListener("focusout",m);const f=new MutationObserver(d);o&&f.observe(o,{childList:!0,subtree:!0}),s(()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",m),f.disconnect()})}),T(async s=>{const o=l.value;if(await I(),!o)return;p.add(i);const a=S();if(!o.contains(a)){const d=new CustomEvent(_,L);o.addEventListener(_,f=>r("mountAutoFocus",f)),o.dispatchEvent(d),d.defaultPrevented||(G(z(o),{select:!0}
1),S()===a&&E(o))}s(()=>{o.removeEventListener(_,v=>r("mountAutoFocus",v));const d=new CustomEvent(F,L),f=v=>{r("unmountAutoFocus",v)};o.addEventListener(F,f),o.dispatchEvent(d),o.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{d.defaultPrevented||E(a??document.body,{select:!0}),o.removeEventListener(F,f),p.remove(i),o.removeAttribute("data-focus-scope-unmounting")},0)})});function h(s){if(!n.loop&&!n.trapped||i.paused)return;const o=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,a=S();if(o&&a){const m=s.currentTarget,[d,f]=re(m);d&&f?!s.shiftKey&&a===f?(s.preventDefault(),n.loop&&E(d,{select:!0})):s.shiftKey&&a===d&&(s.preventDefault(),n.loop&&E(f,{select:!0})):a===m&&s.preventDefault()}}return(s,o)=>(J(),Q(te(ne),{ref_key:"currentRef",ref:u,tabindex:"-1","as-child":s.asChild,as:s.as,onKeydown:h},{default:Z(()=>[ee(s.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ae=ve;const _e="menu.itemSelect",B=["Enter"," "],pe=["ArrowDown","PageUp","Home"],me=["ArrowUp","PageDown","End"],Fe=[...pe,...me],Oe={ltr:[...B,"ArrowRight"],rtl:[...B,"ArrowLeft"]},Ce={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Te(e){return e?"open":"closed"}function ye(e){return e==="indeterminate"}function Le(e){return ye(e)?"indeterminate":e?"checked":"unchecked"}function ke(e){const t=S();for(const n of e)if(n===t||(n.focus(),S()!==t))return}function he(e,t){const{x:n,y:r}=e;let u=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const p=t[l].x,i=t[l].y,h=t[c].x,s=t[c].y;i>r!=s>r&&n<(h-p)*(r-i)/(s-i)+p&&(u=!u)}return u}function Be(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return he(n,t)}function xe(e){return e.pointerType==="mouse"}export{Ae as F,_e as I,me as L,B as S,we as a,Fe as b,xe as c,Le as d,ye as e,ke as f,Te as g,Ce as h,Be as i,Oe as j,Se 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.