1import{c as Y,i as ee}from"./DHPFtRLG.js";import{aU as te,aV as ne,i as S,p as F,n as O,aH as T,$ as se,av as P,ax as re,au as oe,O as C,aM as L,e as N,aW as ae,o as x,m as R,w as $,Q as W,g as _,S as ie,r as j,aX as ue,ay as ce,h as le,aY as de}from"./Dqk0Ip7M.js";import{u as V}from"./CvHQ5aBi.js";import{P as z}from"./B7i4XTrb.js";import{g as b}from"./FUKBWQwh.js";function G(e,n,t){const s=t.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&s.addEventListener(e,n,{once:!0}),s.dispatchEvent(u)}const fe=ne(()=>{const e=S(new Map),n=S(),t=O(()=>{for(const i of e.value.values())if(i)return!0;return!1}),s=Y({scrollBody:S(!0)}),u=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.value??"",n.value=void 0};return F(t,(i,f)=>{if(!T)return;if(!i){f&&u();return}n.value===void 0&&(n.value=document.body.style.overflow);const c=window.innerWidth-document.documentElement.clientWidth,d={padding:c,margin:0},v=s.scrollBody?.value?typeof s.scrollBody.value=="object"?se({padding:s.scrollBody.value.padding===!0?c:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?c:s.scrollBody.value.margin},d):d:{padding:0,margin:0};c>0&&(document.body.style.paddingRight=typeof v.padding=="number"?`${v.padding}px`:String(v.padding),document.body.style.marginRight=typeof v.margin=="number"?`${v.margin}px`:String(v.margin),document.documentElement.style.setProperty("--scrollbar-width",`${c}px`),document.body.style.overflow="hidden"),P(()=>{t.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Ke(e){const n=Math.random().toString(36).substring(2,7),t=fe();t.value.set(n,e??!1);const s=O({get:()=>t.value.get(n)??!1,set:u=>t.value.set(n,u)});return te(()=>{t.value.delete(n)}),s}var ve=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},D=new WeakMap,A=new WeakMap,B={},k=0,X=function(e){return e&&(e.host||X(e.parentNode))},pe=function(e,n){return n.map(function(t){if(e.contains(t))return t;var s=X(t);return s&&e.contains(s)?s:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},ye=function(e,n,t,s){var u=pe(n,Array.isArray(e)?e:[e]);B[t]||(B[t]=new WeakMap);var i=B[t],f=[],c=new Set,d=new Set(u),v=function(o){!o||c.has(o)||
1(c.add(o),v(o.parentNode))};u.forEach(v);var m=function(o){!o||d.has(o)||Array.prototype.forEach.call(o.children,function(a){if(c.has(a))m(a);else try{var r=a.getAttribute(s),l=r!==null&&r!=="false",p=(D.get(a)||0)+1,y=(i.get(a)||0)+1;D.set(a,p),i.set(a,y),f.push(a),p===1&&l&&A.set(a,!0),y===1&&a.setAttribute(t,"true"),l||a.setAttribute(s,"true")}catch(E){console.error("aria-hidden: cannot operate on ",a,E)}})};return m(n),c.clear(),k++,function(){f.forEach(function(o){var a=D.get(o)-1,r=i.get(o)-1;D.set(o,a),i.set(o,r),a||(A.has(o)||o.removeAttribute(s),A.delete(o)),r||o.removeAttribute(t)}),k--,k||(D=new WeakMap,D=new WeakMap,A=new WeakMap,B={})}},me=function(e,n,t){t===void 0&&(t="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),u=ve(e);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),ye(s,u,t,"aria-hidden")):function(){return null}};function qe(e){let n;F(()=>oe(e),t=>{let s=!1;try{s=!!t?.closest("[popover]:not(:popover-open)")}catch{}t&&!s?n=me(t):n&&n()}),re(()=>{n&&n()})}const he="dismissableLayer.pointerDownOutside",Ee="dismissableLayer.focusOutside";function Q(e,n){if(!(n instanceof Element))return!1;const t=n.closest("[data-dismissable-layer]"),s=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),u=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(t&&(s===t||u.indexOf(s)<u.indexOf(t)))}function be(e,n,t=!0){const s=n?.value?.ownerDocument??globalThis?.document,u=S(!1),i=S(()=>{});return C(f=>{if(!T||!L(t))return;const c=async v=>{const m=v.target;if(!(!n?.value||!m)){if(Q(n.value,m)){u.value=!1;return}if(v.target&&!u.value){let a=function(){G(he,e,o)};const o={originalEvent:v};v.pointerType==="touch"?(s.removeEventListener("click",i.value),i.value=a,s.addEventListener("click",i.value,{once:!0})):a()}else s.removeEventListener("click",i.value);u.value=!1}},d=window.setTimeout(()=>{s.addEventListener("pointerdown",c)},0);f(()=>{window.clearTimeout(d),s.removeEventListener("pointerdown",c),s.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{L(t)&&(u.value=!0)}}}function ge(e,n,t=!0){const s=n?.value?.ownerDocument??globalThis?.document,u=S(!1);return C(i=>{if(!T||!L(t))return;const f=async c=>{if(!n?.value)return;await P(),await P();const d=c.target;!n.value||!d||Q(n.value,d)||c.target&&!u.value&&G(Ee,e,{originalEvent:c})};s.addEventListener("focusin",f),i(()=>s.removeEventListener("focusin",f))}),{onFocusCapture:()=>{L(t)&&(u.value=!0)},onBlurCapture:()=>{L(t)&&(u.value=!1)}}}const h=j({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var we=N({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:n}){const t=e,s=n,{forwardRef:u,currentElement:i}=V(),f=O(()=>i.value?.ownerDocument??globalThis.document),c=O(()=>h.layersRoot),d=O(()=>i.value?Array.from(c.value).indexOf(i.value):-1),v=O(()=>h.layersWithOutsidePointerEventsDisabled.size>0),m=O(()=>{const r=Array.from(c.value),[l]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),p=r.indexOf(l);return d.value>=p}),o=be(async r=>{const l=[...h.branches].some(p=>p?.contains(r.target));!t.present||!m.value||l||(s("pointerDownOutside",r),s("interactOutside",r),await P(),r.defaultPrevented||s("dismiss"))},i),a=ge(r=>{const l=[...h.branches].some(p=>p?.contains(r.target));!t.present||l||(s("focusOutside",r),s("interactOutside",r),r.defaultPrevented||s("dismiss"))},i);return ae("Escape",r=>{!t.present||!(d.value===c.value.size-1)||(s("escapeKeyDown",r),r.defaultPrevented||s("dismiss"))}),F([i,()=>t.disableOutsidePointerEvents,()=>t.present],([r,l,p],y,E)=>{!r||!p||l&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(h.originalBodyPointerEvents=f.value.body.style.pointerEvents,f.value.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(r),E(()=>{h.layersWithOutsidePointerEventsDisabled.delete(r),h.layersWithOutsidePointerEventsDisabled.size===0&&!ee(h.originalBodyPointerEvents)&&(f.value.body.style.pointerEvents=h.originalBodyPointerEvents)}))},{immediate:!0}),F([i,()=>t.present],([r,l],p,y)=>{!r||!l||(c.value.add(r),y(()=>{c.value.delete(r)}))},{immediate:!0}),C(r=>{r(()=>{i.value&&(c.value.delete(i.value),h.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(r,l)=>(x(),R(_(z),{ref:_(u),"as-child":r.asChild,as:r.as,"data-dismissable-layer":"",style:ie({pointerEvents:v.value?m.value?"auto":"none":void 0}),onFocusCapture:_(a).onFocusCapture,onBlurCapture:_(a).onBlurCapture,onPointerdownCapture:_(o).onPointerDownCapture},{default:$(()=>[W(r.$slots,"default")]),_:3}
1,8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),He=we;const Oe=ue(()=>S([]));function Se(){const e=Oe();return{add(n){const t=e.value[0];n!==t&&t?.pause(),e.value=U(e.value,n),e.value.unshift(n)},remove(n){e.value=U(e.value,n),e.value[0]?.resume()}}}function U(e,n){const t=[...e],s=t.indexOf(n);return s!==-1&&t.splice(s,1),t}const I="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",K={bubbles:!1,cancelable:!0};function _e(e,{select:n=!1}={}){const t=b();for(const s of e)if(w(s,{select:n}),b()!==t)return!0}function De(e){const n=J(e),t=q(n,e),s=q(n.reverse(),e);return[t,s]}function J(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function q(e,n){for(const t of e)if(!Pe(t,{upTo:n}))return t}function Pe(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Le(e){return e instanceof HTMLInputElement&&"select"in e}function w(e,{select:n=!1}={}){if(e&&e.focus){const t=b();e.focus({preventScroll:!0}),e!==t&&Le(e)&&n&&e.select()}}var Fe=N({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:n}){const t=e,s=n,{currentRef:u,currentElement:i}=V(),f=S(null),c=Se(),d=j({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});C(o=>{if(!T)return;const a=i.value;if(!t.trapped)return;function r(E){if(d.paused||!a)return;const g=E.target;a.contains(g)?f.value=g:w(f.value,{select:!0})}function l(E){if(d.paused||!a)return;const g=E.relatedTarget;g!==null&&(a.contains(g)||w(f.value,{select:!0}))}function p(E){const g=f.value;if(g===null||!E.some(Z=>Z.removedNodes.length>0))return;a.contains(g)||w(a)}document.addEventListener("focusin",r),document.addEventListener("focusout",l);const y=new MutationObserver(p);a&&y.observe(a,{childList:!0,subtree:!0}),o(()=>{document.removeEventListener("focusin",r),document.removeEventListener("focusout",l),y.disconnect()})});function v(o,a){const r=new CustomEvent(I,K),l=p=>s("mountAutoFocus",p);o.addEventListener(I,l),o.dispatchEvent(r),o.removeEventListener(I,l),r.defaultPrevented||(_e(J(o),{select:!0}),b()===a&&w(o))}C(async o=>{const a=i.value;if(await P(),!a)return;t.present!==!1&&c.add(d);const r=b();!a.contains(r)&&t.present!==!1&&v(a,r),o(()=>{const p=new CustomEvent(M,K),y=E=>{s("unmountAutoFocus",E)};a.addEventListener(M,y),a.dispatchEvent(p),a.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{p.defaultPrevented||w(r??document.body,{select:!0}),a.removeEventListener(M,y),c.remove(d),a.removeAttribute("data-focus-scope-unmounting")},0)})}),F(()=>t.present,async(o,a)=>{if(!T)return;if(o===!1&&a===!0){c.remove(d);return}if(o!==!0||a!==!1)return;c.add(d),await P();const r=i.value;if(!r)return;const l=b();r.contains(l)||v(r,l)});function m(o){if(!t.loop&&!t.trapped||d.paused)return;const a=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,r=b();if(a&&r){const l=o.currentTarget,[p,y]=De(l);
1p&&y?!o.shiftKey&&r===y?(o.preventDefault(),t.loop&&w(p,{select:!0})):o.shiftKey&&r===p&&(o.preventDefault(),t.loop&&w(y,{select:!0})):r===l&&o.preventDefault()}}return(o,a)=>(x(),R(_(z),{ref_key:"currentRef",ref:u,tabindex:"-1","as-child":o.asChild,as:o.as,onKeydown:m},{default:$(()=>[W(o.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ye=Fe;const $e="menu.itemSelect",H=["Enter"," "],Te=["ArrowDown","PageUp","Home"],Ce=["ArrowUp","PageDown","End"],je=[...Te,...Ce],Ve={ltr:[...H,"ArrowRight"],rtl:[...H,"ArrowLeft"]},ze={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Ge(e){return e?"open":"closed"}function Ae(e){return e==="indeterminate"}function Xe(e){return Ae(e)?"indeterminate":e?"checked":"unchecked"}function Qe(e){const n=b();for(const t of e)if(t===n||(t.focus(),b()!==n))return}function Be(e,n){const{x:t,y:s}=e;let u=!1;for(let i=0,f=n.length-1;i<n.length;f=i++){const c=n[i].x,d=n[i].y,v=n[f].x,m=n[f].y;d>s!=m>s&&t<(v-c)*(s-d)/(m-d)+c&&(u=!u)}return u}function Je(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Be(t,n)}function Ze(e){return e.pointerType==="mouse"}var ke=N({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const n=e,t=Y({}),s=O(()=>n.to??t.teleportTo?.value??"body"),u=de();return(i,f)=>_(u)||i.forceMount?(x(),R(ce,{key:0,to:s.value,disabled:i.disabled,defer:i.defer},[W(i.$slots,"default")],8,["to","disabled","defer"])):le("v-if",!0)}}),et=ke;export{He as D,Ye as F,$e as I,Ce as L,ze as S,et as T,qe as a,Xe as b,Ze as c,Ve as d,Je as e,Qe as f,Ge as g,G as h,Ae as i,je as j,H as k,Ke 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.