@vitest/browser 4.0.0-beta.18 → 4.0.0-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  "name": "utils"
5
5
  },
6
6
  "orchestrator.html": {
7
- "file": "__vitest_browser__/orchestrator-Ce7D5fGP.js",
7
+ "file": "__vitest_browser__/orchestrator-CFVVvVT1.js",
8
8
  "name": "orchestrator",
9
9
  "src": "orchestrator.html",
10
10
  "isEntry": true,
@@ -13,7 +13,7 @@
13
13
  ]
14
14
  },
15
15
  "tester/tester.html": {
16
- "file": "__vitest_browser__/tester-Vm4ppAv-.js",
16
+ "file": "__vitest_browser__/tester-B-r90tWf.js",
17
17
  "name": "tester",
18
18
  "src": "tester/tester.html",
19
19
  "isEntry": true,
@@ -14,7 +14,7 @@
14
14
  * @vue/runtime-dom v3.5.21
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let zd;const Nv=typeof window<"u"&&window.trustedTypes;if(Nv)try{zd=Nv.createPolicy("vue",{createHTML:e=>e})}catch{}const db=zd?e=>zd.createHTML(e):e=>e,eT="http://www.w3.org/2000/svg",tT="http://www.w3.org/1998/Math/MathML",fi=typeof document<"u"?document:null,Ov=fi&&fi.createElement("template"),nT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?fi.createElementNS(eT,e):t==="mathml"?fi.createElementNS(tT,e):r?fi.createElement(e,{is:r}):fi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>fi.createTextNode(e),createComment:e=>fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Ov.innerHTML=db(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Di="transition",El="animation",ia=Symbol("_vtc"),hb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rT=en({},My,hb),iT=e=>(e.displayName="Transition",e.props=rT,e),oT=iT((e,{slots:t})=>Ea(GS,sT(e),t)),ko=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pv=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function sT(e){const t={};for(const O in e)O in hb||(t[O]=e[O]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,M=lT(s),E=M&&M[0],A=M&&M[1],{onBeforeEnter:L,onEnter:$,onEnterCancelled:R,onLeave:C,onLeaveCancelled:D,onBeforeAppear:U=L,onAppear:ie=$,onAppearCancelled:le=R}=t,ne=(O,P,N,S)=>{O._enterCancelled=S,To(O,P?v:d),To(O,P?p:f),N&&N()},G=(O,P)=>{O._isLeaving=!1,To(O,m),To(O,x),To(O,b),P&&P()},J=O=>(P,N)=>{const S=O?ie:$,F=()=>ne(P,O,N);ko(S,[P,F]),Rv(()=>{To(P,O?h:c),ai(P,O?v:d),Pv(S)||zv(P,o,E,F)})};return en(t,{onBeforeEnter(O){ko(L,[O]),ai(O,c),ai(O,f)},onBeforeAppear(O){ko(U,[O]),ai(O,h),ai(O,p)},onEnter:J(!1),onAppear:J(!0),onLeave(O,P){O._isLeaving=!0;const N=()=>G(O,P);ai(O,m),O._enterCancelled?(ai(O,b),Fv()):(Fv(),ai(O,b)),Rv(()=>{O._isLeaving&&(To(O,m),ai(O,x),Pv(C)||zv(O,o,A,N))}),ko(C,[O,N])},onEnterCancelled(O){ne(O,!1,void 0,!0),ko(R,[O])},onAppearCancelled(O){ne(O,!0,void 0,!0),ko(le,[O])},onLeaveCancelled(O){G(O),ko(D,[O])}})}function lT(e){if(e==null)return null;if(St(e))return[ed(e.enter),ed(e.leave)];{const t=ed(e);return[t,t]}}function ed(e){return J0(e)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ia]||(e[ia]=new Set)).add(t)}function To(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ia];r&&(r.delete(t),r.size||(e[ia]=void 0))}function Rv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let aT=0;function zv(e,t,r,o){const s=e._endId=++aT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=cT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function cT(e,t){const r=window.getComputedStyle(e),o=M=>(r[M]||"").split(", "),s=o(`${Di}Delay`),c=o(`${Di}Duration`),f=Iv(s,c),d=o(`${El}Delay`),h=o(`${El}Duration`),p=Iv(d,h);let v=null,m=0,b=0;t===Di?f>0&&(v=Di,m=f,b=c.length):t===El?p>0&&(v=El,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Di:El:null,b=v?v===Di?c.length:h.length:0);const x=v===Di&&/\b(?:transform|all)(?:,|$)/.test(o(`${Di}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Iv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Dv(r)+Dv(e[o])))}function Dv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fv(){return document.body.offsetHeight}function uT(e,t,r){const o=e[ia];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Jc=Symbol("_vod"),pb=Symbol("_vsh"),Ki={name:"show",beforeMount(e,{value:t},{transition:r}){e[Jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Al(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Al(e,!0),o.enter(e)):o.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e[Jc]:"none",e[pb]=!t}const fT=Symbol(""),dT=/(?:^|;)\s*display\s*:/;function hT(e,t,r){const o=e.style,s=zt(r);let c=!1;if(r&&!s){if(t)if(zt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Oc(o,d,"")}else for(const f in t)r[f]==null&&Oc(o,f,"");for(const f in r)f==="display"&&(c=!0),Oc(o,f,r[f])}else if(s){if(t!==r){const f=o[fT];f&&(r+=";"+f),o.cssText=r,c=dT.test(r)}}else t&&e.removeAttribute("style");Jc in e&&(e[Jc]=c?o.display:"",e[pb]&&(o.display="none"))}const Hv=/\s*!important$/;function Oc(e,t,r){if(Be(r))r.forEach(o=>Oc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=pT(e,t);Hv.test(r)?e.setProperty(_i(o),r.replace(Hv,""),"important"):e[o]=r}}const Bv=["Webkit","Moz","ms"],td={};function pT(e,t){const r=td[t];if(r)return r;let o=nr(t);if(o!=="filter"&&o in e)return td[t]=o;o=_u(o);for(let s=0;s<Bv.length;s++){const c=Bv[s]+o;if(c in e)return td[t]=c}return t}const Wv="http://www.w3.org/1999/xlink";function qv(e,t,r,o,s,c=cS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Wv,t.slice(6,t.length)):e.setAttributeNS(Wv,t,r):r==null||c&&!Q0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Lr(r)?String(r):r)}function jv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?db(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=Q0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Mo(e,t,r,o){e.addEventListener(t,r,o)}function gT(e,t,r,o){e.removeEventListener(t,r,o)}const Uv=Symbol("_vei");function vT(e,t,r,o,s=null){const c=e[Uv]||(e[Uv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=mT(t);if(o){const p=c[t]=wT(o,s);Mo(e,d,p,h)}else f&&(gT(e,d,f,h),c[t]=void 0)}}const Vv=/(?:Once|Passive|Capture)$/;function mT(e){let t;if(Vv.test(e)){t={};let o;for(;o=e.match(Vv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_i(e.slice(2)),t]}let nd=0;const yT=Promise.resolve(),bT=()=>nd||(yT.then(()=>nd=0),nd=Date.now());function wT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Mr(xT(o,r.value),t,5,[o])};return r.value=e,r.attached=bT(),r}function xT(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Gv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_T=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?uT(e,o,f):t==="style"?hT(e,r,o):bu(t)?mh(t)||vT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ST(e,t,o,f))?(jv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!zt(o))?jv(e,nr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qv(e,t,o,f))};function ST(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gv(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gv(t)&&zt(r)?!1:t in e}const Qc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>$c(t,r):t};function kT(e){e.target.composing=!0}function Kv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Es=Symbol("_assign"),TT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Es]=Qc(s);const c=o||s.props&&s.props.type==="number";Mo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=_d(d)),e[Es](d)}),r&&Mo(e,"change",()=>{e.value=e.value.trim()}),t||(Mo(e,"compositionstart",kT),Mo(e,"compositionend",Kv),Mo(e,"change",Kv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Es]=Qc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?_d(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},gb={deep:!0,created(e,t,r){e[Es]=Qc(r),Mo(e,"change",()=>{const o=e._modelValue,s=CT(e),c=e.checked,f=e[Es];if(Be(o)){const d=ey(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(wu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(vb(e,c))})},mounted:Xv,beforeUpdate(e,t,r){e[Es]=Qc(r),Xv(e,t,r)}};function Xv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Be(t))s=ey(t,o.props.value)>-1;else if(wu(t))s=t.has(o.props.value);else{if(t===r)return;s=ku(t,vb(e,!0))}e.checked!==s&&(e.checked=s)}function CT(e){return"_value"in e?e._value:e.value}function vb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const ET=["ctrl","shift","alt","meta"],AT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ET.some(r=>e[`${r}Key`]&&!t.includes(r))},Pc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=AT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},LT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Id=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=_i(s.key);if(t.some(f=>f===c||LT[f]===c))return e(s)}))},MT=en({patchProp:_T},nT);let Yv;function $T(){return Yv||(Yv=Sk(MT))}const mb=((...e)=>{const t=$T().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=OT(o);if(!s)return;const c=t._component;!Ge(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,NT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function NT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function OT(e){return zt(e)?document.querySelector(e):e}const Yr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},PT={};function RT(e,t){const r=zo("RouterView");return oe(),Je(r)}const zT=Yr(PT,[["render",RT]]),IT=["top","right","bottom","left"],Zv=["start","end"],Jv=IT.reduce((e,t)=>e.concat(t,t+"-"+Zv[0],t+"-"+Zv[1]),[]),oa=Math.min,Ao=Math.max,DT={left:"right",right:"left",bottom:"top",top:"bottom"},FT={start:"end",end:"start"};function Dd(e,t,r){return Ao(e,oa(t,r))}function Do(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Ar(e){return e.split("-")[1]}function yb(e){return e==="x"?"y":"x"}function Ih(e){return e==="y"?"height":"width"}function Aa(e){return["top","bottom"].includes(Xr(e))?"y":"x"}function Dh(e){return yb(Aa(e))}function bb(e,t,r){r===void 0&&(r=!1);const o=Ar(e),s=Dh(e),c=Ih(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=tu(f)),[f,tu(f)]}function HT(e){const t=tu(e);return[eu(e),t,eu(t)]}function eu(e){return e.replace(/start|end/g,t=>FT[t])}function BT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function WT(e,t,r,o){const s=Ar(e);let c=BT(Xr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(eu)))),c}function tu(e){return e.replace(/left|right|bottom|top/g,t=>DT[t])}function qT(e){return{top:0,right:0,bottom:0,left:0,...e}}function wb(e){return typeof e!="number"?qT(e):{top:e,right:e,bottom:e,left:e}}function ql(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Qv(e,t,r){let{reference:o,floating:s}=e;const c=Aa(t),f=Dh(t),d=Ih(f),h=Xr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Ar(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const jT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Qv(p,o,h),b=o,x={},M=0;for(let E=0;E<d.length;E++){const{name:A,fn:L}=d[E],{x:$,y:R,data:C,reset:D}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=$??v,m=R??m,x={...x,[A]:{...x[A],...C}},D&&M<=50&&(M++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(p=D.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):D.rects),{x:v,y:m}=Qv(p,b,h)),E=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function zu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Do(t,e),M=wb(x),A=d[b?m==="floating"?"reference":"floating":m],L=ql(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(A)))==null||r?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),$=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),C=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},D=ql(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:R,strategy:h}):$);return{top:(L.top-D.top+M.top)/C.y,bottom:(D.bottom-L.bottom+M.bottom)/C.y,left:(L.left-D.left+M.left)/C.x,right:(D.right-L.right+M.right)/C.x}}const UT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Do(e,t)||{};if(p==null)return{};const m=wb(v),b={x:r,y:o},x=Dh(s),M=Ih(x),E=await f.getDimensions(p),A=x==="y",L=A?"top":"left",$=A?"bottom":"right",R=A?"clientHeight":"clientWidth",C=c.reference[M]+c.reference[x]-b[x]-c.floating[M],D=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ie=U?U[R]:0;(!ie||!await(f.isElement==null?void 0:f.isElement(U)))&&(ie=d.floating[R]||c.floating[M]);const le=C/2-D/2,ne=ie/2-E[M]/2-1,G=oa(m[L],ne),J=oa(m[$],ne),O=G,P=ie-E[M]-J,N=ie/2-E[M]/2+le,S=Dd(O,N,P),F=!h.arrow&&Ar(s)!=null&&N!==S&&c.reference[M]/2-(N<O?G:J)-E[M]/2<0,V=F?N<O?N-O:N-P:0;return{[x]:b[x]+V,data:{[x]:S,centerOffset:N-S-V,...F&&{alignmentOffset:V}},reset:F}}});function VT(e,t,r){return(e?[...r.filter(s=>Ar(s)===e),...r.filter(s=>Ar(s)!==e)]:r.filter(s=>Xr(s)===s)).filter(s=>e?Ar(s)===e||(t?eu(s)!==s:!1):!0)}const GT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Jv,autoAlignment:x=!0,...M}=Do(e,t),E=m!==void 0||b===Jv?VT(m||null,x,b):b,A=await zu(t,M),L=((r=f.autoPlacement)==null?void 0:r.index)||0,$=E[L];if($==null)return{};const R=bb($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:E[0]}};const C=[A[Xr($)],A[R[0]],A[R[1]]],D=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],U=E[L+1];if(U)return{data:{index:L+1,overflows:D},reset:{placement:U}};const ie=D.map(G=>{const J=Ar(G.placement);return[G.placement,J&&v?G.overflows.slice(0,2).reduce((O,P)=>O+P,0):G.overflows[0],G.overflows]}).sort((G,J)=>G[1]-J[1]),ne=((s=ie.filter(G=>G[2].slice(0,Ar(G[0])?2:3).every(J=>J<=0))[0])==null?void 0:s[0])||ie[0][0];return ne!==d?{data:{index:L+1,overflows:D},reset:{placement:ne}}:{}}}},KT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:E=!0,...A}=Do(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Xr(s),$=Xr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),C=b||($||!E?[tu(d)]:HT(d));!b&&M!=="none"&&C.push(...WT(d,E,M,R));const D=[d,...C],U=await zu(t,A),ie=[];let le=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ie.push(U[L]),m){const O=bb(s,f,R);ie.push(U[O[0]],U[O[1]])}if(le=[...le,{placement:s,overflows:ie}],!ie.every(O=>O<=0)){var ne,G;const O=(((ne=c.flip)==null?void 0:ne.index)||0)+1,P=D[O];if(P)return{data:{index:O,overflows:le},reset:{placement:P}};let N=(G=le.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:G.placement;if(!N)switch(x){case"bestFit":{var J;const S=(J=le.map(F=>[F.placement,F.overflows.filter(V=>V>0).reduce((V,re)=>V+re,0)]).sort((F,V)=>F[1]-V[1])[0])==null?void 0:J[0];S&&(N=S);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function XT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Xr(r),d=Ar(r),h=Aa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Do(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:M}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof M=="number"&&(x=d==="end"?M*-1:M),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const YT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await XT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},ZT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:A=>{let{x:L,y:$}=A;return{x:L,y:$}}},...h}=Do(e,t),p={x:r,y:o},v=await zu(t,h),m=Aa(Xr(s)),b=yb(m);let x=p[b],M=p[m];if(c){const A=b==="y"?"top":"left",L=b==="y"?"bottom":"right",$=x+v[A],R=x-v[L];x=Dd($,x,R)}if(f){const A=m==="y"?"top":"left",L=m==="y"?"bottom":"right",$=M+v[A],R=M-v[L];M=Dd($,M,R)}const E=d.fn({...t,[b]:x,[m]:M});return{...E,data:{x:E.x-r,y:E.y-o}}}}},JT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Do(e,t),h=await zu(t,d),p=Xr(r),v=Ar(r),m=Aa(r)==="y",{width:b,height:x}=o.floating;let M,E;p==="top"||p==="bottom"?(M=p,E=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,M=v==="end"?"top":"bottom");const A=x-h[M],L=b-h[E],$=!t.middlewareData.shift;let R=A,C=L;if(m){const U=b-h.left-h.right;C=v||$?oa(L,U):U}else{const U=x-h.top-h.bottom;R=v||$?oa(A,U):U}if($&&!v){const U=Ao(h.left,0),ie=Ao(h.right,0),le=Ao(h.top,0),ne=Ao(h.bottom,0);m?C=b-2*(U!==0||ie!==0?U+ie:Ao(h.left,h.right)):R=x-2*(le!==0||ne!==0?le+ne:Ao(h.top,h.bottom))}await f({...t,availableWidth:C,availableHeight:R});const D=await s.getDimensions(c.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};function ar(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){return ar(e).getComputedStyle(e)}const em=Math.min,jl=Math.max,nu=Math.round;function xb(e){const t=Vr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=nu(r)!==s||nu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ro(e){return Sb(e)?(e.nodeName||"").toLowerCase():""}let yc;function _b(){if(yc)return yc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(yc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),yc):navigator.userAgent}function Gr(e){return e instanceof ar(e).HTMLElement}function Zi(e){return e instanceof ar(e).Element}function Sb(e){return e instanceof ar(e).Node}function tm(e){return typeof ShadowRoot>"u"?!1:e instanceof ar(e).ShadowRoot||e instanceof ShadowRoot}function Iu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function QT(e){return["table","td","th"].includes(ro(e))}function Fd(e){const t=/firefox/i.test(_b()),r=Vr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function kb(){return!/^((?!chrome|android).)*safari/i.test(_b())}function Fh(e){return["html","body","#document"].includes(ro(e))}function Tb(e){return Zi(e)?e:e.contextElement}const Cb={x:1,y:1};function As(e){const t=Tb(e);if(!Gr(t))return Cb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=xb(t);let f=(c?nu(r.width):r.width)/o,d=(c?nu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function sa(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Tb(e);let h=Cb;t&&(o?Zi(o)&&(h=As(o)):h=As(e));const p=d?ar(d):window,v=!kb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,M=f.height/h.y;if(d){const E=ar(d),A=o&&Zi(o)?ar(o):o;let L=E.frameElement;for(;L&&o&&A!==E;){const $=As(L),R=L.getBoundingClientRect(),C=getComputedStyle(L);R.x+=(L.clientLeft+parseFloat(C.paddingLeft))*$.x,R.y+=(L.clientTop+parseFloat(C.paddingTop))*$.y,m*=$.x,b*=$.y,x*=$.x,M*=$.y,m+=R.x,b+=R.y,L=ar(L).frameElement}}return{width:x,height:M,top:b,right:m+x,bottom:b+M,left:m,x:m,y:b}}function Ji(e){return((Sb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eb(e){return sa(Ji(e)).left+Du(e).scrollLeft}function la(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tm(e)&&e.host||Ji(e);return tm(t)?t.host:t}function Ab(e){const t=la(e);return Fh(t)?t.ownerDocument.body:Gr(t)&&Iu(t)?t:Ab(t)}function ru(e,t){var r;t===void 0&&(t=[]);const o=Ab(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ar(o);return s?t.concat(c,c.visualViewport||[],Iu(o)?o:[]):t.concat(o,ru(o))}function nm(e,t,r){return t==="viewport"?ql((function(o,s){const c=ar(o),f=Ji(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=kb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):Zi(t)?ql((function(o,s){const c=sa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Gr(o)?As(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ql((function(o){const s=Ji(o),c=Du(o),f=o.ownerDocument.body,d=jl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=jl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Eb(o);const v=-c.scrollTop;return Vr(f).direction==="rtl"&&(p+=jl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(Ji(e)))}function rm(e){return Gr(e)&&Vr(e).position!=="fixed"?e.offsetParent:null}function im(e){const t=ar(e);let r=rm(e);for(;r&&QT(r)&&Vr(r).position==="static";)r=rm(r);return r&&(ro(r)==="html"||ro(r)==="body"&&Vr(r).position==="static"&&!Fd(r))?t:r||(function(o){let s=la(o);for(;Gr(s)&&!Fh(s);){if(Fd(s))return s;s=la(s)}return null})(e)||t}function eC(e,t,r){const o=Gr(t),s=Ji(t),c=sa(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ro(t)!=="body"||Iu(s))&&(f=Du(t)),Gr(t)){const h=sa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Eb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const tC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,v){const m=v.get(p);if(m)return m;let b=ru(p).filter((A=>Zi(A)&&ro(A)!=="body")),x=null;const M=Vr(p).position==="fixed";let E=M?la(p):p;for(;Zi(E)&&!Fh(E);){const A=Vr(E),L=Fd(E);(M?L||x:L||A.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=A:b=b.filter(($=>$!==E)),E=la(E)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=nm(t,v,s);return p.top=jl(m.top,p.top),p.right=em(m.right,p.right),p.bottom=em(m.bottom,p.bottom),p.left=jl(m.left,p.left),p}),nm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Gr(r),c=Ji(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((ro(r)!=="body"||Iu(c))&&(f=Du(r)),Gr(r))){const p=sa(r);d=As(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Zi,getDimensions:function(e){return Gr(e)?xb(e):e.getBoundingClientRect()},getOffsetParent:im,getDocumentElement:Ji,getScale:As,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||im,c=this.getDimensions;return{reference:eC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Vr(e).direction==="rtl"},nC=(e,t,r)=>{const o=new Map,s={platform:tC,...r},c={...s.platform,_c:o};return jT(e,t,{...s,platform:c})},Qi={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function aa(e,t){let r=Qi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Qi.themes[r.$extend]||{}:(r=null,o=Qi[t]):r=null;while(r);return o}function rC(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function om(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t}let ca=!1;if(typeof window<"u"){ca=!1;try{const e=Object.defineProperty({},"passive",{get(){ca=!0}});window.addEventListener("test",null,e)}catch{}}let Lb=!1;typeof window<"u"&&typeof navigator<"u"&&(Lb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Mb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),sm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function am(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function rd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Qn=[];let Co=null;const cm={};function um(e){let t=cm[e];return t||(t=cm[e]=[]),t}let Hd=function(){};typeof window<"u"&&(Hd=window.Element);function ft(e){return function(t){return aa(t.theme,e)}}const id="__floating-vue__popper",$b=()=>at({name:"VPopper",provide(){return{[id]:{parentPopper:this}}},inject:{[id]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Mb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Hd,Boolean],default:ft("container")},boundary:{type:[String,Hd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[id])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(YT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(GT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(ZT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(KT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(UT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(JT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await nC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Co&&this.instantMove&&Co.instantMove&&Co!==this.parentPopper){Co.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Co=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await rd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ru(this.$_referenceNode),...ru(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Qn.length;r++)t=Qn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Qn.push(this),document.body.classList.add("v-popper--some-open");for(const t of om(this.theme))um(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await rd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,am(Qn,this),Qn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of om(this.theme)){const o=um(r);am(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Co===this&&(Co=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await rd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,sm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],sm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,lm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ca?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ul>=e.left&&Ul<=e.right&&Vl>=e.top&&Vl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Ul-Bi,o=Vl-Wi,s=t.left+t.width/2-Bi+(t.top+t.height/2)-Wi+t.width+t.height,c=Bi+r*s,f=Wi+o*s;return bc(Bi,Wi,c,f,t.left,t.top,t.left,t.bottom)||bc(Bi,Wi,c,f,t.left,t.top,t.right,t.top)||bc(Bi,Wi,c,f,t.right,t.top,t.right,t.bottom)||bc(Bi,Wi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Lb){const e=ca?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>fm(t),e),document.addEventListener("touchend",t=>dm(t,!0),e)}else window.addEventListener("mousedown",e=>fm(e),!0),window.addEventListener("click",e=>dm(e,!1),!0);window.addEventListener("resize",sC)}function fm(e,t){for(let r=0;r<Qn.length;r++){const o=Qn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function dm(e,t){iC(e,t)}function iC(e,t){const r={};for(let o=Qn.length-1;o>=0;o--){const s=Qn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&hm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&hm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function hm(e,t,r){return r.closeAllPopover||r.closePopover&&t||oC(e,r)&&!t}function oC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function sC(){for(let e=0;e<Qn.length;e++)Qn[e].$_computePosition()}function pm(){for(let e=0;e<Qn.length;e++)Qn[e].hide()}let Bi=0,Wi=0,Ul=0,Vl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Bi=Ul,Wi=Vl,Ul=e.clientX,Vl=e.clientY},ca?{passive:!0}:void 0);function bc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const lC={extends:$b()},Fu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function aC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[bn(e.$slots,"default",lS(ab(e.slotData)))],2)}const cC=Fu(lC,[["render",aC]]);function uC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function Bd(){Bd.init||(Bd.init=!0,Rc=uC()!==-1)}var Hu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bd(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const fC=Ay();Cy("data-v-b329ee4c");const dC={class:"resize-observer",tabindex:"-1"};Ey();const hC=fC((e,t,r,o,s,c)=>(oe(),Je("div",dC)));Hu.render=hC;Hu.__scopeId="data-v-b329ee4c";Hu.__file="src/components/ResizeObserver.vue";const Nb=(e="theme")=>({computed:{themeClass(){return rC(this[e])}}}),pC=at({name:"VPopperContent",components:{ResizeObserver:Hu},mixins:[Nb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),gC=["id","aria-hidden","tabindex","data-popper-placement"],vC={ref:"inner",class:"v-popper__inner"},mC=Q("div",{class:"v-popper__arrow-outer"},null,-1),yC=Q("div",{class:"v-popper__arrow-inner"},null,-1),bC=[mC,yC];function wC(e,t,r,o,s,c){const f=zo("ResizeObserver");return oe(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Jt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Id(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Q("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Q("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Q("div",vC,[e.mounted?(oe(),ye(nt,{key:0},[Q("div",null,[bn(e.$slots,"default")]),e.handleResize?(oe(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):qe("",!0)],64)):qe("",!0)],512),Q("div",{ref:"arrow",class:"v-popper__arrow-container",style:Jt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},bC,4)],4)],46,gC)}const Ob=Fu(pC,[["render",wC]]),Pb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Wd=function(){};typeof window<"u"&&(Wd=window.Element);const xC=at({name:"VPopperWrapper",components:{Popper:cC,PopperContent:Ob},mixins:[Pb,Nb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Wd,Boolean],default:void 0},boundary:{type:[String,Wd],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function _C(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return oe(),Je(d,mi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:M,handleResize:E,onResize:A,classes:L,result:$})=>[bn(e.$slots,"default",{shown:p,show:x,hide:M}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:L,result:$,onHide:M,onResize:A},{default:it(()=>[bn(e.$slots,"popper",{shown:p,hide:M})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Hh=Fu(xC,[["render",_C]]);({...Hh});({...Hh});const SC={...Hh,name:"VTooltip",vPopperTheme:"tooltip"},kC=at({name:"VTooltipDirective",components:{Popper:$b(),PopperContent:Ob},mixins:[Pb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>aa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>aa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),TC=["innerHTML"],CC=["textContent"];function EC(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return oe(),Je(d,mi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:M,onResize:E,classes:A,result:L})=>[Oe(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:A,result:L,onHide:x,onResize:E},{default:it(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,TC)):(oe(),ye("div",{key:1,textContent:ze(e.finalContent)},null,8,CC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const AC=Fu(kC,[["render",EC]]),Rb="v-popper--has-tooltip";function LC(e,t){let r=e.placement;if(!r&&t)for(const o of Mb)t[o]&&(r=o);return r||(r=aa(e.theme||"tooltip","placement")),r}function zb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=LC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let od,ua,MC=0;function $C(){if(od)return;ua=Ue([]),od=mb({name:"VTooltipDirectiveApp",setup(){return{directives:ua}},render(){return this.directives.map(t=>Ea(AC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),od.mount(e)}function Ib(e,t,r){$C();const o=Ue(zb(e,t,r)),s=Ue(!1),c={id:MC++,options:o,shown:s};return ua.value.push(c),e.classList&&e.classList.add(Rb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Bh(e){if(e.$_popper){const t=ua.value.indexOf(e.$_popper.item);t!==-1&&ua.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Rb)}function gm(e,{value:t,modifiers:r}){const o=zb(e,t,r);if(!o.content||aa(o.theme||"tooltip","disabled"))Bh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ib(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const NC={beforeMount:gm,updated:gm,beforeUnmount(e){Bh(e)}},OC=NC,Db=SC,Fb={options:Qi};function Hb(e){return e!=null}function Wh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const PC=/^[A-Za-z]:\//;function RC(e=""){return e&&e.replace(/\\/g,"/").replace(PC,t=>t.toUpperCase())}const zC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function IC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Bb=function(...e){e=e.map(o=>RC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:IC();!s||s.length===0||(t=`${s}/${t}`,r=vm(s))}return t=DC(t,!r),r&&!vm(t)?`/${t}`:t.length>0?t:"."};function DC(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const vm=function(e){return zC.test(e)};var FC=44,mm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",HC=new Uint8Array(64),Wb=new Uint8Array(128);for(let e=0;e<mm.length;e++){const t=mm.charCodeAt(e);HC[e]=t,Wb[t]=e}function Ll(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Wb[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function ym(e,t){return e.pos>=t?!1:e.peek()!==FC}var BC=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function WC(e){const{length:t}=e,r=new BC(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=Ll(r,s),s<b&&(m=!1),b=s,ym(r,p)?(c=Ll(r,c),f=Ll(r,f),d=Ll(r,d),ym(r,p)?(h=Ll(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||qC(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function qC(e){e.sort(jC)}function jC(e,t){return e[0]-t[0]}var Bu=0,UC=1,VC=2,GC=3,KC=4,iu=!1;function XC(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Bu]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function YC(e,t,r){for(let o=r+1;o<e.length&&e[o][Bu]===t;r=o++);return r}function ZC(e,t,r){for(let o=r-1;o>=0&&e[o][Bu]===t;r=o--);return r}function JC(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return iu=f!==-1&&e[f][Bu]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=XC(e,t,d,h)}var QC="`line` must be greater than 0 (lines start at line 1)",eE="`column` must be greater than or equal to 0 (columns start at column 0)",bm=-1,tE=1;function nE(e){var t;return(t=e)._decoded||(t._decoded=WC(e._encoded))}function rE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(QC);if(o<0)throw new Error(eE);const c=nE(e);if(r>=c.length)return wc(null,null,null,null);const f=c[r],d=iE(f,e._decodedMemo,r,o,s||tE);if(d===-1)return wc(null,null,null,null);const h=f[d];if(h.length===1)return wc(null,null,null,null);const{names:p,resolvedSources:v}=e;return wc(v[h[UC]],h[VC]+1,h[GC],h.length===5?p[h[KC]]:null)}function wc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function iE(e,t,r,o,s){let c=JC(e,o,t,r);return iu?c=(s===bm?YC:ZC)(e,o,c):s===bm&&c++,c===-1||c===e.length?-1:c}const qb=/^\s*at .*(?:\S:\d+|\(native\))/m,oE=/^(?:eval@)?(?:\[native code\])?$/,sE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function jb(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function lE(e){let t=e.trim();if(oE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=jb(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function aE(e){let t=e.trim();if(!qb.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=jb(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:Bb(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function cE(e,t={}){const{ignoreStackEntries:r=sE}=t;return(qb.test(e)?fE(e):uE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return wm(r,s.file)?null:s;const d=new dE(f,s.file),h=pE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),wm(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function wm(e,t){return e.some(r=>t.match(r))}function uE(e){return e.split(`
17
+ **/let zd;const Nv=typeof window<"u"&&window.trustedTypes;if(Nv)try{zd=Nv.createPolicy("vue",{createHTML:e=>e})}catch{}const db=zd?e=>zd.createHTML(e):e=>e,eT="http://www.w3.org/2000/svg",tT="http://www.w3.org/1998/Math/MathML",fi=typeof document<"u"?document:null,Ov=fi&&fi.createElement("template"),nT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?fi.createElementNS(eT,e):t==="mathml"?fi.createElementNS(tT,e):r?fi.createElement(e,{is:r}):fi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>fi.createTextNode(e),createComment:e=>fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Ov.innerHTML=db(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Di="transition",El="animation",ia=Symbol("_vtc"),hb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rT=en({},My,hb),iT=e=>(e.displayName="Transition",e.props=rT,e),oT=iT((e,{slots:t})=>Ea(GS,sT(e),t)),ko=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pv=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function sT(e){const t={};for(const O in e)O in hb||(t[O]=e[O]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,M=lT(s),E=M&&M[0],A=M&&M[1],{onBeforeEnter:L,onEnter:$,onEnterCancelled:R,onLeave:C,onLeaveCancelled:D,onBeforeAppear:U=L,onAppear:ie=$,onAppearCancelled:le=R}=t,ne=(O,P,N,S)=>{O._enterCancelled=S,To(O,P?v:d),To(O,P?p:f),N&&N()},G=(O,P)=>{O._isLeaving=!1,To(O,m),To(O,x),To(O,b),P&&P()},J=O=>(P,N)=>{const S=O?ie:$,F=()=>ne(P,O,N);ko(S,[P,F]),Rv(()=>{To(P,O?h:c),ai(P,O?v:d),Pv(S)||zv(P,o,E,F)})};return en(t,{onBeforeEnter(O){ko(L,[O]),ai(O,c),ai(O,f)},onBeforeAppear(O){ko(U,[O]),ai(O,h),ai(O,p)},onEnter:J(!1),onAppear:J(!0),onLeave(O,P){O._isLeaving=!0;const N=()=>G(O,P);ai(O,m),O._enterCancelled?(ai(O,b),Fv()):(Fv(),ai(O,b)),Rv(()=>{O._isLeaving&&(To(O,m),ai(O,x),Pv(C)||zv(O,o,A,N))}),ko(C,[O,N])},onEnterCancelled(O){ne(O,!1,void 0,!0),ko(R,[O])},onAppearCancelled(O){ne(O,!0,void 0,!0),ko(le,[O])},onLeaveCancelled(O){G(O),ko(D,[O])}})}function lT(e){if(e==null)return null;if(St(e))return[ed(e.enter),ed(e.leave)];{const t=ed(e);return[t,t]}}function ed(e){return J0(e)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ia]||(e[ia]=new Set)).add(t)}function To(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ia];r&&(r.delete(t),r.size||(e[ia]=void 0))}function Rv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let aT=0;function zv(e,t,r,o){const s=e._endId=++aT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=cT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function cT(e,t){const r=window.getComputedStyle(e),o=M=>(r[M]||"").split(", "),s=o(`${Di}Delay`),c=o(`${Di}Duration`),f=Iv(s,c),d=o(`${El}Delay`),h=o(`${El}Duration`),p=Iv(d,h);let v=null,m=0,b=0;t===Di?f>0&&(v=Di,m=f,b=c.length):t===El?p>0&&(v=El,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Di:El:null,b=v?v===Di?c.length:h.length:0);const x=v===Di&&/\b(?:transform|all)(?:,|$)/.test(o(`${Di}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Iv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Dv(r)+Dv(e[o])))}function Dv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fv(){return document.body.offsetHeight}function uT(e,t,r){const o=e[ia];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Jc=Symbol("_vod"),pb=Symbol("_vsh"),Ki={name:"show",beforeMount(e,{value:t},{transition:r}){e[Jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Al(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Al(e,!0),o.enter(e)):o.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e[Jc]:"none",e[pb]=!t}const fT=Symbol(""),dT=/(?:^|;)\s*display\s*:/;function hT(e,t,r){const o=e.style,s=zt(r);let c=!1;if(r&&!s){if(t)if(zt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Oc(o,d,"")}else for(const f in t)r[f]==null&&Oc(o,f,"");for(const f in r)f==="display"&&(c=!0),Oc(o,f,r[f])}else if(s){if(t!==r){const f=o[fT];f&&(r+=";"+f),o.cssText=r,c=dT.test(r)}}else t&&e.removeAttribute("style");Jc in e&&(e[Jc]=c?o.display:"",e[pb]&&(o.display="none"))}const Hv=/\s*!important$/;function Oc(e,t,r){if(Be(r))r.forEach(o=>Oc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=pT(e,t);Hv.test(r)?e.setProperty(_i(o),r.replace(Hv,""),"important"):e[o]=r}}const Bv=["Webkit","Moz","ms"],td={};function pT(e,t){const r=td[t];if(r)return r;let o=nr(t);if(o!=="filter"&&o in e)return td[t]=o;o=_u(o);for(let s=0;s<Bv.length;s++){const c=Bv[s]+o;if(c in e)return td[t]=c}return t}const Wv="http://www.w3.org/1999/xlink";function qv(e,t,r,o,s,c=cS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Wv,t.slice(6,t.length)):e.setAttributeNS(Wv,t,r):r==null||c&&!Q0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Lr(r)?String(r):r)}function jv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?db(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=Q0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Mo(e,t,r,o){e.addEventListener(t,r,o)}function gT(e,t,r,o){e.removeEventListener(t,r,o)}const Uv=Symbol("_vei");function vT(e,t,r,o,s=null){const c=e[Uv]||(e[Uv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=mT(t);if(o){const p=c[t]=wT(o,s);Mo(e,d,p,h)}else f&&(gT(e,d,f,h),c[t]=void 0)}}const Vv=/(?:Once|Passive|Capture)$/;function mT(e){let t;if(Vv.test(e)){t={};let o;for(;o=e.match(Vv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_i(e.slice(2)),t]}let nd=0;const yT=Promise.resolve(),bT=()=>nd||(yT.then(()=>nd=0),nd=Date.now());function wT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Mr(xT(o,r.value),t,5,[o])};return r.value=e,r.attached=bT(),r}function xT(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Gv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_T=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?uT(e,o,f):t==="style"?hT(e,r,o):bu(t)?mh(t)||vT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ST(e,t,o,f))?(jv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!zt(o))?jv(e,nr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qv(e,t,o,f))};function ST(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gv(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gv(t)&&zt(r)?!1:t in e}const Qc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>$c(t,r):t};function kT(e){e.target.composing=!0}function Kv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Es=Symbol("_assign"),TT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Es]=Qc(s);const c=o||s.props&&s.props.type==="number";Mo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=_d(d)),e[Es](d)}),r&&Mo(e,"change",()=>{e.value=e.value.trim()}),t||(Mo(e,"compositionstart",kT),Mo(e,"compositionend",Kv),Mo(e,"change",Kv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Es]=Qc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?_d(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},gb={deep:!0,created(e,t,r){e[Es]=Qc(r),Mo(e,"change",()=>{const o=e._modelValue,s=CT(e),c=e.checked,f=e[Es];if(Be(o)){const d=ey(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(wu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(vb(e,c))})},mounted:Xv,beforeUpdate(e,t,r){e[Es]=Qc(r),Xv(e,t,r)}};function Xv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Be(t))s=ey(t,o.props.value)>-1;else if(wu(t))s=t.has(o.props.value);else{if(t===r)return;s=ku(t,vb(e,!0))}e.checked!==s&&(e.checked=s)}function CT(e){return"_value"in e?e._value:e.value}function vb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const ET=["ctrl","shift","alt","meta"],AT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ET.some(r=>e[`${r}Key`]&&!t.includes(r))},Pc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=AT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},LT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Id=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=_i(s.key);if(t.some(f=>f===c||LT[f]===c))return e(s)}))},MT=en({patchProp:_T},nT);let Yv;function $T(){return Yv||(Yv=Sk(MT))}const mb=((...e)=>{const t=$T().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=OT(o);if(!s)return;const c=t._component;!Ge(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,NT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function NT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function OT(e){return zt(e)?document.querySelector(e):e}const Yr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},PT={};function RT(e,t){const r=zo("RouterView");return oe(),Je(r)}const zT=Yr(PT,[["render",RT]]),IT=["top","right","bottom","left"],Zv=["start","end"],Jv=IT.reduce((e,t)=>e.concat(t,t+"-"+Zv[0],t+"-"+Zv[1]),[]),oa=Math.min,Ao=Math.max,DT={left:"right",right:"left",bottom:"top",top:"bottom"},FT={start:"end",end:"start"};function Dd(e,t,r){return Ao(e,oa(t,r))}function Do(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Ar(e){return e.split("-")[1]}function yb(e){return e==="x"?"y":"x"}function Ih(e){return e==="y"?"height":"width"}function Aa(e){return["top","bottom"].includes(Xr(e))?"y":"x"}function Dh(e){return yb(Aa(e))}function bb(e,t,r){r===void 0&&(r=!1);const o=Ar(e),s=Dh(e),c=Ih(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=tu(f)),[f,tu(f)]}function HT(e){const t=tu(e);return[eu(e),t,eu(t)]}function eu(e){return e.replace(/start|end/g,t=>FT[t])}function BT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function WT(e,t,r,o){const s=Ar(e);let c=BT(Xr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(eu)))),c}function tu(e){return e.replace(/left|right|bottom|top/g,t=>DT[t])}function qT(e){return{top:0,right:0,bottom:0,left:0,...e}}function wb(e){return typeof e!="number"?qT(e):{top:e,right:e,bottom:e,left:e}}function ql(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Qv(e,t,r){let{reference:o,floating:s}=e;const c=Aa(t),f=Dh(t),d=Ih(f),h=Xr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Ar(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const jT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Qv(p,o,h),b=o,x={},M=0;for(let E=0;E<d.length;E++){const{name:A,fn:L}=d[E],{x:$,y:R,data:C,reset:D}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=$??v,m=R??m,x={...x,[A]:{...x[A],...C}},D&&M<=50&&(M++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(p=D.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):D.rects),{x:v,y:m}=Qv(p,b,h)),E=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function zu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Do(t,e),M=wb(x),A=d[b?m==="floating"?"reference":"floating":m],L=ql(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(A)))==null||r?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),$=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),C=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},D=ql(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:R,strategy:h}):$);return{top:(L.top-D.top+M.top)/C.y,bottom:(D.bottom-L.bottom+M.bottom)/C.y,left:(L.left-D.left+M.left)/C.x,right:(D.right-L.right+M.right)/C.x}}const UT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Do(e,t)||{};if(p==null)return{};const m=wb(v),b={x:r,y:o},x=Dh(s),M=Ih(x),E=await f.getDimensions(p),A=x==="y",L=A?"top":"left",$=A?"bottom":"right",R=A?"clientHeight":"clientWidth",C=c.reference[M]+c.reference[x]-b[x]-c.floating[M],D=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ie=U?U[R]:0;(!ie||!await(f.isElement==null?void 0:f.isElement(U)))&&(ie=d.floating[R]||c.floating[M]);const le=C/2-D/2,ne=ie/2-E[M]/2-1,G=oa(m[L],ne),J=oa(m[$],ne),O=G,P=ie-E[M]-J,N=ie/2-E[M]/2+le,S=Dd(O,N,P),F=!h.arrow&&Ar(s)!=null&&N!==S&&c.reference[M]/2-(N<O?G:J)-E[M]/2<0,V=F?N<O?N-O:N-P:0;return{[x]:b[x]+V,data:{[x]:S,centerOffset:N-S-V,...F&&{alignmentOffset:V}},reset:F}}});function VT(e,t,r){return(e?[...r.filter(s=>Ar(s)===e),...r.filter(s=>Ar(s)!==e)]:r.filter(s=>Xr(s)===s)).filter(s=>e?Ar(s)===e||(t?eu(s)!==s:!1):!0)}const GT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Jv,autoAlignment:x=!0,...M}=Do(e,t),E=m!==void 0||b===Jv?VT(m||null,x,b):b,A=await zu(t,M),L=((r=f.autoPlacement)==null?void 0:r.index)||0,$=E[L];if($==null)return{};const R=bb($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:E[0]}};const C=[A[Xr($)],A[R[0]],A[R[1]]],D=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],U=E[L+1];if(U)return{data:{index:L+1,overflows:D},reset:{placement:U}};const ie=D.map(G=>{const J=Ar(G.placement);return[G.placement,J&&v?G.overflows.slice(0,2).reduce((O,P)=>O+P,0):G.overflows[0],G.overflows]}).sort((G,J)=>G[1]-J[1]),ne=((s=ie.filter(G=>G[2].slice(0,Ar(G[0])?2:3).every(J=>J<=0))[0])==null?void 0:s[0])||ie[0][0];return ne!==d?{data:{index:L+1,overflows:D},reset:{placement:ne}}:{}}}},KT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:E=!0,...A}=Do(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Xr(s),$=Xr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),C=b||($||!E?[tu(d)]:HT(d));!b&&M!=="none"&&C.push(...WT(d,E,M,R));const D=[d,...C],U=await zu(t,A),ie=[];let le=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ie.push(U[L]),m){const O=bb(s,f,R);ie.push(U[O[0]],U[O[1]])}if(le=[...le,{placement:s,overflows:ie}],!ie.every(O=>O<=0)){var ne,G;const O=(((ne=c.flip)==null?void 0:ne.index)||0)+1,P=D[O];if(P)return{data:{index:O,overflows:le},reset:{placement:P}};let N=(G=le.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:G.placement;if(!N)switch(x){case"bestFit":{var J;const S=(J=le.map(F=>[F.placement,F.overflows.filter(V=>V>0).reduce((V,re)=>V+re,0)]).sort((F,V)=>F[1]-V[1])[0])==null?void 0:J[0];S&&(N=S);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function XT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Xr(r),d=Ar(r),h=Aa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Do(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:M}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof M=="number"&&(x=d==="end"?M*-1:M),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const YT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await XT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},ZT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:A=>{let{x:L,y:$}=A;return{x:L,y:$}}},...h}=Do(e,t),p={x:r,y:o},v=await zu(t,h),m=Aa(Xr(s)),b=yb(m);let x=p[b],M=p[m];if(c){const A=b==="y"?"top":"left",L=b==="y"?"bottom":"right",$=x+v[A],R=x-v[L];x=Dd($,x,R)}if(f){const A=m==="y"?"top":"left",L=m==="y"?"bottom":"right",$=M+v[A],R=M-v[L];M=Dd($,M,R)}const E=d.fn({...t,[b]:x,[m]:M});return{...E,data:{x:E.x-r,y:E.y-o}}}}},JT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Do(e,t),h=await zu(t,d),p=Xr(r),v=Ar(r),m=Aa(r)==="y",{width:b,height:x}=o.floating;let M,E;p==="top"||p==="bottom"?(M=p,E=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,M=v==="end"?"top":"bottom");const A=x-h[M],L=b-h[E],$=!t.middlewareData.shift;let R=A,C=L;if(m){const U=b-h.left-h.right;C=v||$?oa(L,U):U}else{const U=x-h.top-h.bottom;R=v||$?oa(A,U):U}if($&&!v){const U=Ao(h.left,0),ie=Ao(h.right,0),le=Ao(h.top,0),ne=Ao(h.bottom,0);m?C=b-2*(U!==0||ie!==0?U+ie:Ao(h.left,h.right)):R=x-2*(le!==0||ne!==0?le+ne:Ao(h.top,h.bottom))}await f({...t,availableWidth:C,availableHeight:R});const D=await s.getDimensions(c.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};function ar(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vr(e){return ar(e).getComputedStyle(e)}const em=Math.min,jl=Math.max,nu=Math.round;function xb(e){const t=Vr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=nu(r)!==s||nu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ro(e){return Sb(e)?(e.nodeName||"").toLowerCase():""}let yc;function _b(){if(yc)return yc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(yc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),yc):navigator.userAgent}function Gr(e){return e instanceof ar(e).HTMLElement}function Zi(e){return e instanceof ar(e).Element}function Sb(e){return e instanceof ar(e).Node}function tm(e){return typeof ShadowRoot>"u"?!1:e instanceof ar(e).ShadowRoot||e instanceof ShadowRoot}function Iu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function QT(e){return["table","td","th"].includes(ro(e))}function Fd(e){const t=/firefox/i.test(_b()),r=Vr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function kb(){return!/^((?!chrome|android).)*safari/i.test(_b())}function Fh(e){return["html","body","#document"].includes(ro(e))}function Tb(e){return Zi(e)?e:e.contextElement}const Cb={x:1,y:1};function As(e){const t=Tb(e);if(!Gr(t))return Cb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=xb(t);let f=(c?nu(r.width):r.width)/o,d=(c?nu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function sa(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Tb(e);let h=Cb;t&&(o?Zi(o)&&(h=As(o)):h=As(e));const p=d?ar(d):window,v=!kb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,M=f.height/h.y;if(d){const E=ar(d),A=o&&Zi(o)?ar(o):o;let L=E.frameElement;for(;L&&o&&A!==E;){const $=As(L),R=L.getBoundingClientRect(),C=getComputedStyle(L);R.x+=(L.clientLeft+parseFloat(C.paddingLeft))*$.x,R.y+=(L.clientTop+parseFloat(C.paddingTop))*$.y,m*=$.x,b*=$.y,x*=$.x,M*=$.y,m+=R.x,b+=R.y,L=ar(L).frameElement}}return{width:x,height:M,top:b,right:m+x,bottom:b+M,left:m,x:m,y:b}}function Ji(e){return((Sb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eb(e){return sa(Ji(e)).left+Du(e).scrollLeft}function la(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tm(e)&&e.host||Ji(e);return tm(t)?t.host:t}function Ab(e){const t=la(e);return Fh(t)?t.ownerDocument.body:Gr(t)&&Iu(t)?t:Ab(t)}function ru(e,t){var r;t===void 0&&(t=[]);const o=Ab(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ar(o);return s?t.concat(c,c.visualViewport||[],Iu(o)?o:[]):t.concat(o,ru(o))}function nm(e,t,r){return t==="viewport"?ql((function(o,s){const c=ar(o),f=Ji(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=kb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):Zi(t)?ql((function(o,s){const c=sa(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Gr(o)?As(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ql((function(o){const s=Ji(o),c=Du(o),f=o.ownerDocument.body,d=jl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=jl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Eb(o);const v=-c.scrollTop;return Vr(f).direction==="rtl"&&(p+=jl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(Ji(e)))}function rm(e){return Gr(e)&&Vr(e).position!=="fixed"?e.offsetParent:null}function im(e){const t=ar(e);let r=rm(e);for(;r&&QT(r)&&Vr(r).position==="static";)r=rm(r);return r&&(ro(r)==="html"||ro(r)==="body"&&Vr(r).position==="static"&&!Fd(r))?t:r||(function(o){let s=la(o);for(;Gr(s)&&!Fh(s);){if(Fd(s))return s;s=la(s)}return null})(e)||t}function eC(e,t,r){const o=Gr(t),s=Ji(t),c=sa(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ro(t)!=="body"||Iu(s))&&(f=Du(t)),Gr(t)){const h=sa(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Eb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const tC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,v){const m=v.get(p);if(m)return m;let b=ru(p).filter((A=>Zi(A)&&ro(A)!=="body")),x=null;const M=Vr(p).position==="fixed";let E=M?la(p):p;for(;Zi(E)&&!Fh(E);){const A=Vr(E),L=Fd(E);(M?L||x:L||A.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=A:b=b.filter(($=>$!==E)),E=la(E)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=nm(t,v,s);return p.top=jl(m.top,p.top),p.right=em(m.right,p.right),p.bottom=em(m.bottom,p.bottom),p.left=jl(m.left,p.left),p}),nm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Gr(r),c=Ji(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((ro(r)!=="body"||Iu(c))&&(f=Du(r)),Gr(r))){const p=sa(r);d=As(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Zi,getDimensions:function(e){return Gr(e)?xb(e):e.getBoundingClientRect()},getOffsetParent:im,getDocumentElement:Ji,getScale:As,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||im,c=this.getDimensions;return{reference:eC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Vr(e).direction==="rtl"},nC=(e,t,r)=>{const o=new Map,s={platform:tC,...r},c={...s.platform,_c:o};return jT(e,t,{...s,platform:c})},Qi={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function aa(e,t){let r=Qi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Qi.themes[r.$extend]||{}:(r=null,o=Qi[t]):r=null;while(r);return o}function rC(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function om(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t}let ca=!1;if(typeof window<"u"){ca=!1;try{const e=Object.defineProperty({},"passive",{get(){ca=!0}});window.addEventListener("test",null,e)}catch{}}let Lb=!1;typeof window<"u"&&typeof navigator<"u"&&(Lb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Mb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),sm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function am(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function rd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Qn=[];let Co=null;const cm={};function um(e){let t=cm[e];return t||(t=cm[e]=[]),t}let Hd=function(){};typeof window<"u"&&(Hd=window.Element);function ft(e){return function(t){return aa(t.theme,e)}}const id="__floating-vue__popper",$b=()=>at({name:"VPopper",provide(){return{[id]:{parentPopper:this}}},inject:{[id]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Mb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,Hd,Boolean],default:ft("container")},boundary:{type:[String,Hd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[id])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(YT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(GT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(ZT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(KT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(UT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(JT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await nC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Co&&this.instantMove&&Co.instantMove&&Co!==this.parentPopper){Co.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Co=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await rd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ru(this.$_referenceNode),...ru(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Qn.length;r++)t=Qn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Qn.push(this),document.body.classList.add("v-popper--some-open");for(const t of om(this.theme))um(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await rd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,am(Qn,this),Qn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of om(this.theme)){const o=um(r);am(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Co===this&&(Co=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await rd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,sm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],sm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,lm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ca?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ul>=e.left&&Ul<=e.right&&Vl>=e.top&&Vl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Ul-Bi,o=Vl-Wi,s=t.left+t.width/2-Bi+(t.top+t.height/2)-Wi+t.width+t.height,c=Bi+r*s,f=Wi+o*s;return bc(Bi,Wi,c,f,t.left,t.top,t.left,t.bottom)||bc(Bi,Wi,c,f,t.left,t.top,t.right,t.top)||bc(Bi,Wi,c,f,t.right,t.top,t.right,t.bottom)||bc(Bi,Wi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Lb){const e=ca?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>fm(t),e),document.addEventListener("touchend",t=>dm(t,!0),e)}else window.addEventListener("mousedown",e=>fm(e),!0),window.addEventListener("click",e=>dm(e,!1),!0);window.addEventListener("resize",sC)}function fm(e,t){for(let r=0;r<Qn.length;r++){const o=Qn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function dm(e,t){iC(e,t)}function iC(e,t){const r={};for(let o=Qn.length-1;o>=0;o--){const s=Qn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&hm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&hm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function hm(e,t,r){return r.closeAllPopover||r.closePopover&&t||oC(e,r)&&!t}function oC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function sC(){for(let e=0;e<Qn.length;e++)Qn[e].$_computePosition()}function pm(){for(let e=0;e<Qn.length;e++)Qn[e].hide()}let Bi=0,Wi=0,Ul=0,Vl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Bi=Ul,Wi=Vl,Ul=e.clientX,Vl=e.clientY},ca?{passive:!0}:void 0);function bc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const lC={extends:$b()},Fu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function aC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[bn(e.$slots,"default",lS(ab(e.slotData)))],2)}const cC=Fu(lC,[["render",aC]]);function uC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function Bd(){Bd.init||(Bd.init=!0,Rc=uC()!==-1)}var Hu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bd(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const fC=Ay();Cy("data-v-b329ee4c");const dC={class:"resize-observer",tabindex:"-1"};Ey();const hC=fC((e,t,r,o,s,c)=>(oe(),Je("div",dC)));Hu.render=hC;Hu.__scopeId="data-v-b329ee4c";Hu.__file="src/components/ResizeObserver.vue";const Nb=(e="theme")=>({computed:{themeClass(){return rC(this[e])}}}),pC=at({name:"VPopperContent",components:{ResizeObserver:Hu},mixins:[Nb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),gC=["id","aria-hidden","tabindex","data-popper-placement"],vC={ref:"inner",class:"v-popper__inner"},mC=Q("div",{class:"v-popper__arrow-outer"},null,-1),yC=Q("div",{class:"v-popper__arrow-inner"},null,-1),bC=[mC,yC];function wC(e,t,r,o,s,c){const f=zo("ResizeObserver");return oe(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Jt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Id(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Q("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Q("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Q("div",vC,[e.mounted?(oe(),ye(nt,{key:0},[Q("div",null,[bn(e.$slots,"default")]),e.handleResize?(oe(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):qe("",!0)],64)):qe("",!0)],512),Q("div",{ref:"arrow",class:"v-popper__arrow-container",style:Jt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},bC,4)],4)],46,gC)}const Ob=Fu(pC,[["render",wC]]),Pb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Wd=function(){};typeof window<"u"&&(Wd=window.Element);const xC=at({name:"VPopperWrapper",components:{Popper:cC,PopperContent:Ob},mixins:[Pb,Nb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Wd,Boolean],default:void 0},boundary:{type:[String,Wd],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function _C(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return oe(),Je(d,mi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:M,handleResize:E,onResize:A,classes:L,result:$})=>[bn(e.$slots,"default",{shown:p,show:x,hide:M}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:L,result:$,onHide:M,onResize:A},{default:it(()=>[bn(e.$slots,"popper",{shown:p,hide:M})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Hh=Fu(xC,[["render",_C]]);({...Hh});({...Hh});const SC={...Hh,name:"VTooltip",vPopperTheme:"tooltip"},kC=at({name:"VTooltipDirective",components:{Popper:$b(),PopperContent:Ob},mixins:[Pb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>aa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>aa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),TC=["innerHTML"],CC=["textContent"];function EC(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return oe(),Je(d,mi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:M,onResize:E,classes:A,result:L})=>[Oe(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:A,result:L,onHide:x,onResize:E},{default:it(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,TC)):(oe(),ye("div",{key:1,textContent:ze(e.finalContent)},null,8,CC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const AC=Fu(kC,[["render",EC]]),Rb="v-popper--has-tooltip";function LC(e,t){let r=e.placement;if(!r&&t)for(const o of Mb)t[o]&&(r=o);return r||(r=aa(e.theme||"tooltip","placement")),r}function zb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=LC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let od,ua,MC=0;function $C(){if(od)return;ua=Ue([]),od=mb({name:"VTooltipDirectiveApp",setup(){return{directives:ua}},render(){return this.directives.map(t=>Ea(AC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),od.mount(e)}function Ib(e,t,r){$C();const o=Ue(zb(e,t,r)),s=Ue(!1),c={id:MC++,options:o,shown:s};return ua.value.push(c),e.classList&&e.classList.add(Rb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Bh(e){if(e.$_popper){const t=ua.value.indexOf(e.$_popper.item);t!==-1&&ua.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Rb)}function gm(e,{value:t,modifiers:r}){const o=zb(e,t,r);if(!o.content||aa(o.theme||"tooltip","disabled"))Bh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ib(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const NC={beforeMount:gm,updated:gm,beforeUnmount(e){Bh(e)}},OC=NC,Db=SC,Fb={options:Qi};function Hb(e){return e!=null}function Wh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const PC=/^[A-Za-z]:\//;function RC(e=""){return e&&e.replace(/\\/g,"/").replace(PC,t=>t.toUpperCase())}const zC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function IC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Bb=function(...e){e=e.map(o=>RC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:IC();!s||s.length===0||(t=`${s}/${t}`,r=vm(s))}return t=DC(t,!r),r&&!vm(t)?`/${t}`:t.length>0?t:"."};function DC(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const vm=function(e){return zC.test(e)};var FC=44,mm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",HC=new Uint8Array(64),Wb=new Uint8Array(128);for(let e=0;e<mm.length;e++){const t=mm.charCodeAt(e);HC[e]=t,Wb[t]=e}function Ll(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Wb[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function ym(e,t){return e.pos>=t?!1:e.peek()!==FC}var BC=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function WC(e){const{length:t}=e,r=new BC(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=Ll(r,s),s<b&&(m=!1),b=s,ym(r,p)?(c=Ll(r,c),f=Ll(r,f),d=Ll(r,d),ym(r,p)?(h=Ll(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||qC(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function qC(e){e.sort(jC)}function jC(e,t){return e[0]-t[0]}var Bu=0,UC=1,VC=2,GC=3,KC=4,iu=!1;function XC(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Bu]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function YC(e,t,r){for(let o=r+1;o<e.length&&e[o][Bu]===t;r=o++);return r}function ZC(e,t,r){for(let o=r-1;o>=0&&e[o][Bu]===t;r=o--);return r}function JC(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return iu=f!==-1&&e[f][Bu]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=XC(e,t,d,h)}var QC="`line` must be greater than 0 (lines start at line 1)",eE="`column` must be greater than or equal to 0 (columns start at column 0)",bm=-1,tE=1;function nE(e){var t;return(t=e)._decoded||(t._decoded=WC(e._encoded))}function rE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(QC);if(o<0)throw new Error(eE);const c=nE(e);if(r>=c.length)return wc(null,null,null,null);const f=c[r],d=iE(f,e._decodedMemo,r,o,s||tE);if(d===-1)return wc(null,null,null,null);const h=f[d];if(h.length===1)return wc(null,null,null,null);const{names:p,resolvedSources:v}=e;return wc(v[h[UC]],h[VC]+1,h[GC],h.length===5?p[h[KC]]:null)}function wc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function iE(e,t,r,o,s){let c=JC(e,o,t,r);return iu?c=(s===bm?YC:ZC)(e,o,c):s===bm&&c++,c===-1||c===e.length?-1:c}const qb=/^\s*at .*(?:\S:\d+|\(native\))/m,oE=/^(?:eval@)?(?:\[native code\])?$/,sE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function jb(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function lE(e){let t=e.trim();if(oE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=jb(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function aE(e){let t=e.trim();if(!qb.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=jb(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:Bb(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function cE(e,t={}){const{ignoreStackEntries:r=sE}=t;return(qb.test(e)?fE(e):uE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return wm(r,s.file)?null:s;const d=new dE(f,s.file),h=pE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),wm(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function wm(e,t){return e.some(r=>t.match(r))}function uE(e){return e.split(`
18
18
  `).map(t=>lE(t)).filter(Hb)}function fE(e){return e.split(`
19
19
  `).map(t=>aE(t)).filter(Hb)}class dE{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=hE(),this.url=r,this.resolvedSources=(c||[]).map(f=>Bb(f||"",r))}}function hE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function pE(e,t){const r=rE(e,t);return r.column==null?null:r}const gE=/^[A-Za-z]:\//;function vE(e=""){return e&&e.replace(/\\/g,"/").replace(gE,t=>t.toUpperCase())}const mE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,xm=/^\/([A-Za-z]:)?$/;function yE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const _m=function(...e){e=e.map(o=>vE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:yE();!s||s.length===0||(t=`${s}/${t}`,r=Sm(s))}return t=bE(t,!r),r&&!Sm(t)?`/${t}`:t.length>0?t:"."};function bE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Sm=function(e){return mE.test(e)},Ub=function(e,t){const r=_m(e).replace(xm,"$1").split("/"),o=_m(t).replace(xm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function wE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Vb(e,t,r,o){const s=Ub(t,e),c={id:xE(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function xE(e,t){return wE(`${e}${t||""}`)}function Ds(e){return e.type==="test"}function Gb(e){const t=[],r=Wh(e);for(const o of r)if(Ds(o))t.push(o);else for(const s of o.tasks)if(Ds(s))t.push(s);else{const c=Gb(s);for(const f of c)t.push(f)}return t}function qh(e=[]){return Wh(e).flatMap(t=>Ds(t)?[t]:[t,...qh(t.tasks)])}function _E(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const km="q",Tm="s",SE=6e4;function Kb(e){return e}const kE=Kb,{clearTimeout:TE,setTimeout:CE}=globalThis,EE=Math.random.bind(Math);function AE(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Kb,deserialize:d=kE,resolver:h,bind:p="rpc",timeout:v=SE}=t,m=new Map;let b,x=!1;const M=new Proxy({},{get($,R){if(R==="$functions")return e;if(R==="$close")return E;if(R==="$rejectPendingCalls")return A;if(R==="$closed")return x;if(R==="then"&&!c.includes("then")&&!("then"in e))return;const C=(...U)=>{r(f({m:R,a:U,t:km}))};if(c.includes(R))return C.asEvent=C,C;const D=async(...U)=>{if(x)throw new Error(`[birpc] rpc is closed, cannot call "${R}"`);if(b)try{await b}finally{b=void 0}return new Promise((ie,le)=>{const ne=ME();let G;v>=0&&(G=CE(()=>{try{if(t.onTimeoutError?.(R,U)!==!0)throw new Error(`[birpc] timeout on calling "${R}"`)}catch(J){le(J)}m.delete(ne)},v),typeof G=="object"&&(G=G.unref?.())),m.set(ne,{resolve:ie,reject:le,timeoutId:G,method:R}),r(f({m:R,a:U,i:ne,t:"q"}))})};return D.asEvent=C,D}});function E($){x=!0,m.forEach(({reject:R,method:C})=>{const D=new Error(`[birpc] rpc is closed, cannot call "${C}"`);if($)return $.cause??=D,R($);R(D)}),m.clear(),s(L)}function A($){const C=Array.from(m.values()).map(({method:D,reject:U})=>$?$({method:D,reject:U}):U(new Error(`[birpc]: rejected pending call "${D}".`)));return m.clear(),C}async function L($,...R){let C;try{C=d($)}catch(D){if(t.onGeneralError?.(D)!==!0)throw D;return}if(C.t===km){const{m:D,a:U}=C;let ie,le;const ne=h?h(D,e[D]):e[D];if(!ne)le=new Error(`[birpc] function "${D}" not found`);else try{ie=await ne.apply(p==="rpc"?M:e,U)}catch(G){le=G}if(C.i){if(le&&t.onError&&t.onError(le,D,U),le&&t.onFunctionError&&t.onFunctionError(le,D,U)===!0)return;if(!le)try{r(f({t:Tm,i:C.i,r:ie}),...R);return}catch(G){if(le=G,t.onGeneralError?.(G,D,U)!==!0)throw G}try{r(f({t:Tm,i:C.i,e:le}),...R)}catch(G){if(t.onGeneralError?.(G,D,U)!==!0)throw G}}}else{const{i:D,r:U,e:ie}=C,le=m.get(D);le&&(TE(le.timeoutId),ie?le.reject(ie):le.resolve(U)),m.delete(D)}}return b=o(L),M}const LE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ME(e=21){let t="",r=e;for(;r--;)t+=LE[EE()*64|0];return t}const{parse:Xb,stringify:$E}=JSON,{keys:NE}=Object,fa=String,Yb="string",Cm={},ou="object",Zb=(e,t)=>t,OE=e=>e instanceof fa?fa(e):e,PE=(e,t)=>typeof t===Yb?new fa(t):t,Jb=(e,t,r,o)=>{const s=[];for(let c=NE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof fa){const v=e[p];typeof v===ou&&!t.has(v)?(t.add(v),r[h]=Cm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Cm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Jb.apply(null,h))}return r},Em=(e,t,r)=>{const o=fa(t.push(r)-1);return e.set(r,o),o},qd=(e,t)=>{const r=Xb(e,PE).map(OE),o=r[0],s=t||Zb,c=typeof o===ou&&o?Jb(r,new Set,o,s):o;return s.call({"":c},"",c)},Qb=(e,t,r)=>{const o=t&&typeof t===ou?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Zb,s=new Map,c=[],f=[];let d=+Em(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=$E(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case ou:if(b===null)return b;case Yb:return s.get(b)||Em(s,c,b)}return b}},RE=e=>Xb(Qb(e));class ew{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Vb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function zE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=$=>$,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new ew,waitForConnection:L,reconnect:E},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate($,R){r.onTestAnnotate?.($,R)},onSpecsCollected($){$?.forEach(([R,C])=>{v.state.clearFiles({config:R},[C])}),r.onSpecsCollected?.($)},onPathsCollected($){v.state.collectPaths($),r.onPathsCollected?.($)},onCollected($){v.state.collectFiles($),r.onCollected?.($)},onTaskUpdate($,R){v.state.updateTasks($),r.onTaskUpdate?.($,R)},onUserConsoleLog($){v.state.updateUserLog($),r.onUserConsoleLog?.($)},onFinished($,R){r.onFinished?.($,R)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:$=>v.ws.send($),on:$=>m=$,serialize:$=>Qb($,(R,C)=>C instanceof Error?{name:C.name,message:C.message,stack:C.stack}:C),deserialize:qd,timeout:-1};v.rpc=AE(b,x);let M;function E($=!1){$&&(p=c),v.ws=new h(e),A()}function A(){M=new Promise(($,R)=>{const C=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&$(),v.ws.addEventListener("open",()=>{p=c,$(),clearTimeout(C)})}),v.ws.addEventListener("message",$=>{m($.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(E,s)})}A();function L(){return M}return v}function jh(e){return ry()?(dS(e),!0):!1}const sd=new WeakMap,IE=(...e)=>{var t;const r=e[0],o=(t=ki())==null?void 0:t.proxy;if(o==null&&!qy())throw new Error("injectLocal must be called in setup");return o&&sd.has(o)&&r in sd.get(o)?sd.get(o)[r]:mn(...e)},DE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const FE=Object.prototype.toString,HE=e=>FE.call(e)==="[object Object]",su=()=>{};function tw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const nw=e=>e();function rw(e,t={}){let r,o,s=su;const c=h=>{clearTimeout(h),s(),s=su};let f;return h=>{const p=jt(e),v=jt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function BE(e=nw,t={}){const{initialState:r="active"}=t,o=iw(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:_a(o),pause:s,resume:c,eventFilter:f}}function Am(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Lm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function WE(e){return ki()}function ld(e){return Array.isArray(e)?e:[e]}function iw(...e){if(e.length!==1)return Vs(...e);const t=e[0];return typeof t=="function"?_a(wy(()=>({get:t,set:su}))):Ue(t)}function xc(e,t=200,r={}){return tw(rw(t,r),e)}function ow(e,t,r={}){const{eventFilter:o=nw,...s}=r;return _t(e,tw(o,t),s)}function sw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=BE(o,{initialState:s});return{stop:ow(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Uh(e,t=!0,r){WE()?ao(e,r):t?e():Et(e)}function jd(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:M,throwOnTimeout:E}={}){let A=null;const $=[new Promise(R=>{A=_t(e,C=>{m(C)!==t&&(A?A():Et(()=>A?.()),R(C))},{flush:b,deep:x,immediate:!0})})];return M!=null&&$.push(Am(M,E).then(()=>jt(e)).finally(()=>A?.())),Promise.race($)}function o(m,b){if(!kt(m))return r(C=>C===m,b);const{flush:x="sync",deep:M=!1,timeout:E,throwOnTimeout:A}=b??{};let L=null;const R=[new Promise(C=>{L=_t([e,m],([D,U])=>{t!==(D===U)&&(L?L():Et(()=>L?.()),C(D))},{flush:x,deep:M,immediate:!0})})];return E!=null&&R.push(Am(E,A).then(()=>jt(e)).finally(()=>(L?.(),jt(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const M=Array.from(x);return M.includes(m)||M.includes(jt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(jt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return jd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return jd(e,!t)}}}function Mm(e){return jd(e)}function qE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=Qt(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=jt(r);return c.value=c.value===h?jt(o):h,c.value}}return s?f:[c,f]}function Vh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return ow(e,t,{...c,eventFilter:rw(o,{maxWait:s})})}function jE(e,t,r){return _t(e,t,{...r,immediate:!0})}function UE(e,t,r){const o=_t(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function VE(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=su}=o,h=Qt(!s),p=f?Qt(t):Ue(t);let v=0;return Oh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const M=await e(E=>{m(()=>{c&&(c.value=!1),x||E()})});b===v&&(p.value=M)}catch(M){d(M)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const $r=DE?window:void 0;function lu(e){var t;const r=jt(e);return(t=r?.$el)!=null?t:r}function io(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=_e(()=>{const d=ld(jt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=jE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>lu(p)))!=null?h:[$r].filter(p=>p!=null),ld(jt(s.value?e[1]:e[0])),ld(H(s.value?e[2]:e[1])),jt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=HE(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(M=>o(b,x,M,m)))))},{flush:"post"}),f=()=>{c(),r()};return jh(r),f}function GE(){const e=Qt(!1),t=ki();return t&&ao(()=>{e.value=!0},t),e}function lw(e){const t=GE();return _e(()=>(t.value,!!e()))}function KE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function aw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=$r,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=KE(t);return io(s,c,v=>{v.repeat&&jt(d)||h(v)&&r(v)},f)}function XE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=$r,once:c=!1}=t,f=Qt(!1),d=_e(()=>o?1e3/jt(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const M=x-h;if(d.value&&M<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:M,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),jh(b),{isActive:_a(f),pause:b,resume:m}}const YE=Symbol("vueuse-ssr-width");function ZE(){const e=qy()?IE(YE,null):null;return typeof e=="number"?e:void 0}function cw(e,t={}){const{window:r=$r,ssrWidth:o=ZE()}=t,s=lw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Qt(typeof o=="number"),f=Qt(),d=Qt(!1),h=p=>{d.value=p.matches};return Oh(()=>{if(c.value){c.value=!s.value;const p=jt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let M=!!(b||x);return b&&M&&(M=o>=Lm(b[1])),x&&M&&(M=o<=Lm(x[1])),m?!M:M});return}s.value&&(f.value=r.matchMedia(jt(e)),d.value=f.value.matches)}),io(f,"change",h,{passive:!0}),_e(()=>d.value)}const _c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sc="__vueuse_ssr_handlers__",JE=QE();function QE(){return Sc in _c||(_c[Sc]=_c[Sc]||{}),_c[Sc]}function uw(e,t){return JE[e]||t}function eA(e){return cw("(prefers-color-scheme: dark)",e)}function tA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const nA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$m="vueuse-storage";function fw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=$r,eventFilter:b,onError:x=J=>{console.error(J)},initOnMounted:M}=o,E=(v?Qt:Ue)(typeof t=="function"?t():t),A=_e(()=>jt(e));if(!r)try{r=uw("getDefaultStorage",()=>{var J;return(J=$r)==null?void 0:J.localStorage})()}catch(J){x(J)}if(!r)return E;const L=jt(t),$=tA(L),R=(s=o.serializer)!=null?s:nA[$],{pause:C,resume:D}=sw(E,()=>ie(E.value),{flush:c,deep:f,eventFilter:b});_t(A,()=>ne(),{flush:c}),m&&d&&Uh(()=>{r instanceof Storage?io(m,"storage",ne,{passive:!0}):io(m,$m,G),M&&ne()}),M||ne();function U(J,O){if(m){const P={key:A.value,oldValue:J,newValue:O,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",P):new CustomEvent($m,{detail:P}))}}function ie(J){try{const O=r.getItem(A.value);if(J==null)U(O,null),r.removeItem(A.value);else{const P=R.write(J);O!==P&&(r.setItem(A.value,P),U(O,P))}}catch(O){x(O)}}function le(J){const O=J?J.newValue:r.getItem(A.value);if(O==null)return h&&L!=null&&r.setItem(A.value,R.write(L)),L;if(!J&&p){const P=R.read(O);return typeof p=="function"?p(P,L):$==="object"&&!Array.isArray(P)?{...L,...P}:P}else return typeof O!="string"?O:R.read(O)}function ne(J){if(!(J&&J.storageArea!==r)){if(J&&J.key==null){E.value=L;return}if(!(J&&J.key!==A.value)){C();try{J?.newValue!==R.write(E.value)&&(E.value=le(J))}catch(O){x(O)}finally{J?Et(D):D()}}}}function G(J){ne(J.detail)}return E}const rA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=$r,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=eA({window:s}),x=_e(()=>b.value?"dark":"light"),M=h||(f==null?iw(o):fw(f,o,c,{window:s,listenToStorageChanges:d})),E=_e(()=>M.value==="auto"?x.value:M.value),A=uw("updateHTMLAttrs",(C,D,U)=>{const ie=typeof C=="string"?s?.document.querySelector(C):lu(C);if(!ie)return;const le=new Set,ne=new Set;let G=null;if(D==="class"){const O=U.split(/\s/g);Object.values(m).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{O.includes(P)?le.add(P):ne.add(P)})}else G={key:D,value:U};if(le.size===0&&ne.size===0&&G===null)return;let J;v&&(J=s.document.createElement("style"),J.appendChild(document.createTextNode(rA)),s.document.head.appendChild(J));for(const O of le)ie.classList.add(O);for(const O of ne)ie.classList.remove(O);G&&ie.setAttribute(G.key,G.value),v&&(s.getComputedStyle(J).opacity,document.head.removeChild(J))});function L(C){var D;A(t,r,(D=m[C])!=null?D:C)}function $(C){e.onChanged?e.onChanged(C,L):L(C)}_t(E,$,{flush:"post",immediate:!0}),Uh(()=>$(E.value));const R=_e({get(){return p?M.value:E.value},set(C){M.value=C}});return Object.assign(R,{store:M,system:x,state:E})}function oA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=iA({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=_e(()=>o.system.value);return _e({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function dw(e,t,r={}){const{window:o=$r,...s}=r;let c;const f=lw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=_e(()=>{const m=jt(e);return Array.isArray(m)?m.map(b=>lu(b)):[lu(m)]}),p=_t(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return jh(v),{isSupported:f,stop:v}}function Wu(e,t,r={}){const{window:o=$r}=r;return fw(e,t,o?.localStorage,r)}function sA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=$r}=t;if(!d)return tr(r);const h=tr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",C=R.indexOf("?");return C>0?R.slice(C):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const C=R.toString();if(e==="history")return`${C?`?${C}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${C?`#${C}`:""}`;const D=d.location.hash||"#",U=D.indexOf("?");return U>0?`${d.location.search||""}${D.slice(0,U)}${C?`?${C}`:""}`:`${d.location.search||""}${D}${C?`?${C}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const C=new Set(Object.keys(h));for(const D of R.keys()){const U=R.getAll(D);h[D]=U.length>1?U:R.get(D)||"",C.delete(D)}Array.from(C).forEach(D=>delete h[D])}const{pause:x,resume:M}=sw(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(C=>{const D=h[C];Array.isArray(D)?D.forEach(U=>R.append(C,U)):o&&D==null||s&&!D?R.delete(C):R.set(C,D)}),E(R,!1)},{deep:!0});function E(R,C){x(),C&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),M()}function A(){c&&E(m(),!0)}const L={passive:!0};io(d,"popstate",A,L),e!=="history"&&io(d,"hashchange",A,L);const $=m();return $.keys().next().value?b($):Object.assign(h,r),h}function hw(e={}){const{window:t=$r,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Qt(r),h=Qt(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Uh(p);const v={passive:!0};if(io("resize",p,v),t&&f==="visual"&&t.visualViewport&&io(t.visualViewport,"resize",p,v),s){const m=cw("(orientation: portrait)");_t(m,()=>p())}return{width:d,height:h}}const Ud=Qt([]),Kn=Qt([]),Nr=Wu("vitest-ui_task-tree-opened",[],{shallow:!0}),au=_e(()=>new Set(Nr.value)),un=Wu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Wn=Ue(un.value.search),lA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function pw(e){return e.replace(/[&<>"']/g,t=>lA[t])}const aA=_e(()=>{const e=Wn.value.toLowerCase();return e.length?new RegExp(`(${pw(e)})`,"gi"):null}),gw=_e(()=>Wn.value.trim()!==""),Ze=tr({failed:un.value.failed,success:un.value.success,skipped:un.value.skipped,onlyTests:un.value.onlyTests}),Vd=_e(()=>!!(Ze.failed||Ze.success||Ze.skipped)),qu=Qt([]),Fs=Ue(!1),Nm=_e(()=>{const e=un.value.expandAll;return Nr.value.length>0?e!==!0:e!==!1}),cA=_e(()=>{const e=gw.value,t=Vd.value,r=Ze.onlyTests,o=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,c=Ae.summary.filesSkipped,f=Ae.summary.filesRunning,d=qu.value;return Ae.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function La(e){return Object.hasOwn(e,"tasks")}function uA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function vw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function mw(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function fA(e){return e.type==="test"}function dA(e){return e.mode==="run"&&e.type==="test"}function On(e){return e.type==="file"}function wi(e){return e.type==="file"||e.type==="suite"}function hA(e=Ae.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function da(e,t=!1){let r=Ae.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=e.result?.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:au.value.size>0&&au.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:e.result?.duration!=null?Math.round(e.result?.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||vw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ae.nodes.set(e.id,r),Ae.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ma(e.id,e.tasks[o],!0)}function yw(e,t){const r=Ae.nodes.get(e);if(!r||!wi(r))return;const o=ht.state.idMap.get(e);if(!(!o||!La(o)))return Ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function pA(e){const t=Ae.nodes.get(e);if(!t)return;const r=ht.state.idMap.get(e);!r||!Ds(r)||Ma(t.parentId,r,!1)}function Ma(e,t,r){const o=Ae.nodes.get(e);let s;const c=t.result?.duration!=null?Math.round(t.result?.duration):void 0;if(o&&(s=Ae.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Ds(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:au.value.size>0&&au.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ae.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&La(t)))for(let f=0;f<t.tasks.length;f++)Ma(s.id,t.tasks[f],r)}function gA(e){const t=Ae.nodes.get(e);if(!t||!wi(t))return;const r=new Set(Nr.value);r.delete(t.id);const o=[...mA(t)];Nr.value=Array.from(r),Kn.value=o}function vA(){Gd(Ae.root.tasks);const e=[...Kn.value.filter(On)];Gd(e),Nr.value=[],un.value.expandAll=!0,Kn.value=e}function Gd(e){for(const t of e)wi(t)&&(t.expanded=!1,Gd(t.tasks))}function*bw(e,t){if(t&&(yield e.id),wi(e))for(let r=0;r<e.tasks.length;r++)yield*bw(e.tasks[r],!0)}function*mA(e){const t=e.id,r=new Set(bw(e,!1));for(let o=0;o<Kn.value.length;o++){const s=Kn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const ju=Ue("idle"),ms=_e(()=>ju.value==="idle"),Ui=Ue([]);function yA(e,t,r){return e?_w(e,t,r):!1}function Gh(e,t){const r=[...ww(e,t)];Kn.value=r,qu.value=r.filter(On).map(o=>dr(o.id))}function*ww(e,t){for(const r of hA())yield*xw(r,e,t)}function*xw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Kd(e,o,x=>Om(x,t,r)))c.push([m,b]);else{for(const[m,b]of Kd(e,o,x=>Om(x,t,r)))wi(b)?(s.set(b.id,m),On(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!On(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...wA(c,r.onlyTests,o,d,f)].reverse(),p=Ae.nodes,v=new Set(h.filter(m=>On(m)||wi(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>On(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function bA(e,t,r,o,s){if(o){if(On(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&On(c)&&s.add(c.id),t}}function*wA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=wi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ae.nodes.get(d.parentId);for(;p;)r.add(p.id),On(p)&&o.add(p.id),p=Ae.nodes.get(p.parentId);yield d;continue}if(h){const p=bA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ae.nodes.get(d.parentId);p&&On(p)&&o.add(p.id),yield d}}}function xA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function _w(e,t,r){if(t.length===0||uA(e.name,t))if(r.success||r.failed||r.skipped){if(xA(e,r))return!0}else return!0;return!1}function*Kd(e,t,r){const o=r(e);if(o)if(fA(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(On(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[o,e],wi(e))for(let s=0;s<e.tasks.length;s++)yield*Kd(e.tasks[s],t,r)}function Om(e,t,r){const o=ht.state.idMap.get(e.id);return o?_w(o,t,r):!1}function _A(e,t,r){const o=yw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ma(s.id,p,!1);s.expanded=!0;const f=new Set(Nr.value);f.add(s.id);const d=new Set(xw(s,t,r)),h=[...TA(s,d)];Nr.value=Array.from(f),Kn.value=h}function SA(e,t){Kh(Ae.root.tasks,!1);const r=[...ww(e,t)];un.value.expandAll=!1,Nr.value=[],Kn.value=r,qu.value=r.filter(On).map(o=>dr(o.id))}function kA(e,t){if(e.size)for(const r of Kn.value)e.has(r.id)&&(r.expanded=!0);else t&&Kh(Kn.value.filter(On),!0)}function Kh(e,t){for(const r of e)wi(r)&&(r.expanded=!0,Kh(r.tasks,!1));t&&(un.value.expandAll=!1,Nr.value=[])}function*TA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Kn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Xh(e){return Gb(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function CA(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>da(s,t)),Ud.value=[...Ae.root.tasks],Gh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function EA(e){queueMicrotask(()=>{const t=Ae.pendingTasks,r=ht.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function AA(e,t){const r=Ae.pendingTasks,s=ht.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Pm(e,t,r,o,s){e&&PA(r);const c=!e;queueMicrotask(()=>{t?$A(c):NA(c)}),queueMicrotask(()=>{RA(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Ud.value&&Xh(Ud.value.map(f=>dr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{OA(o,s,t)})}function*LA(){yield*Kn.value.filter(dA)}function MA(){const e=ht.state.idMap;let t;for(const r of LA())t=e.get(r.parentId),t&&La(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function $A(e){const t=ht.state.getFiles(),r=Ae.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)da(o[c],e),cu(o[c].tasks);const s=Ae.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=dr(f.id);!d||(da(d,e),!d.tasks?.length)||cu(d.tasks)}}function NA(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const r=Ae.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>dr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],da(s,!1),cu(s.tasks),t.delete(s.id);const c=ht.state.idMap,f=Ae.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=dr(h.id);if(!p)continue;const v=t.get(p.id);v&&(da(p,e),cu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function OA(e,t,r=!1){const o=un.value.expandAll,s=o!==!0,c=new Set(Nr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Rm(e,t,r)}),Fs.value||queueMicrotask(()=>{(Kn.value.length||r)&&(Fs.value=!0)}),f&&(queueMicrotask(()=>{kA(c,r),s&&(un.value.expandAll=!1)}),queueMicrotask(()=>{Rm(e,t,r)}))}function Rm(e,t,r){Gh(e,t),r&&(MA(),ju.value="idle")}function cu(e){let t;for(let r=0;r<e.length;r++)t=e[r],La(t)?yw(t.id,!0):pA(t.id)}function PA(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function RA(e){const t=ht.state.idMap,r=new Map(Ae.root.tasks.filter(f=>t.has(f.id)).map(f=>[f.id,f])),o=Array.from(r.values()).map(f=>[f.id,dr(f.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[f,d]of o){if(!d)continue;const h=r.get(f);h&&(h.mode=d.mode,h.setupDuration=d.setupDuration,h.prepareDuration=d.prepareDuration,h.environmentLoad=d.environmentLoad,h.collectDuration=d.collectDuration,h.duration=d.result?.duration!=null?Math.round(d.result?.duration):void 0,h.state=d.result?.state),c+=Math.max(0,d.collectDuration||0),c+=Math.max(0,d.setupDuration||0),c+=Math.max(0,d.result?.duration||0),c+=Math.max(0,d.environmentLoad||0),c+=Math.max(0,d.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,d.result?.state==="fail"?s.filesFailed++:d.result?.state==="pass"?s.filesSuccess++:d.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):d.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:p,success:v,skipped:m,total:b,ignored:x,todo:M}=Sw(d);s.totalTests+=b,s.testsFailed+=p,s.testsSuccess+=v,s.testsSkipped+=m,s.testsTodo+=M,s.testsIgnore+=x}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Sw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of kw(e))(!r||yA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function zA(e,t,r,o,s,c){if(t)return r.map(f=>Sw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*kw(e){const t=Wh(e);let r;for(let o=0;o<t.length;o++)r=t[o],Ds(r)?yield r:yield*kw(r.tasks)}class IA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=tr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=XE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),CA(t,!0,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){AA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){EA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Pm(t,r,this.summary,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):Pm(t,r,this.summary,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return zA(t,r,o,s,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{gA(t)})}expandNode(t){queueMicrotask(()=>{_A(t,Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{vA()})}expandAllNodes(){queueMicrotask(()=>{SA(Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Gh(Wn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ae=new IA,Jn=Ue([414,896]),$a=sA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),oo=Vs($a,"file"),an=Vs($a,"view"),Tw=Vs($a,"line"),Cw=Vs($a,"column"),Ls=Vs($a,"test");function Ew(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zc={exports:{}},DA=zc.exports,zm;function Gs(){return zm||(zm=1,(function(e,t){(function(r,o){e.exports=o()})(DA,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],M=/Opera\//.test(r),E=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),$=E&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),C=$||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),D=$||/Mac/.test(o),U=/\bCrOS\b/.test(r),ie=/win/i.test(o),le=M&&r.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(M=!1,v=!0);var ne=D&&(m||M&&(le==null||le<12.11)),G=s||h&&p>=9;function J(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var O=function(n,i){var a=n.className,l=J(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function P(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return P(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function F(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function me(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;J(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!J(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};$?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Xe(n){return Ye(n.display.wrapper)}function Ye(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function te(n){return Qe(n).defaultView}function B(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Z(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function K(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};ae.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},ae.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,j={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function fe(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function $e(){}function De(n,i){var a;return Object.create?a=Object.create(n):($e.prototype=n,a=new $e),i&&Z(i,a),a}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Ve.test(n))}function st(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function lt(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function Ut(n,i,a){for(;(a<0?i>0:i<n.length)&&lt(n.charAt(i));)i+=a;return i}function Ft(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function zn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var zr=null;function It(n,i,a){var l;zr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:zr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:zr=u)}return l??zr}var In=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function _(k,I,q){this.level=k,this.from=I,this.to=q}return function(k,I){var q=I=="ltr"?"L":"R";if(k.length==0||I=="ltr"&&!l.test(k))return!1;for(var ee=k.length,Y=[],ce=0;ce<ee;++ce)Y.push(a(k.charCodeAt(ce)));for(var ge=0,xe=q;ge<ee;++ge){var ke=Y[ge];ke=="m"?Y[ge]=xe:xe=ke}for(var Me=0,Te=q;Me<ee;++Me){var Ne=Y[Me];Ne=="1"&&Te=="r"?Y[Me]="n":g.test(Ne)&&(Te=Ne,Ne=="r"&&(Y[Me]="R"))}for(var He=1,Ie=Y[0];He<ee-1;++He){var et=Y[He];et=="+"&&Ie=="1"&&Y[He+1]=="1"?Y[He]="1":et==","&&Ie==Y[He+1]&&(Ie=="1"||Ie=="n")&&(Y[He]=Ie),Ie=et}for(var xt=0;xt<ee;++xt){var Yt=Y[xt];if(Yt==",")Y[xt]="N";else if(Yt=="%"){var $t=void 0;for($t=xt+1;$t<ee&&Y[$t]=="%";++$t);for(var Hn=xt&&Y[xt-1]=="!"||$t<ee&&Y[$t]=="1"?"1":"N",kn=xt;kn<$t;++kn)Y[kn]=Hn;xt=$t-1}}for(var Ht=0,Tn=q;Ht<ee;++Ht){var tn=Y[Ht];Tn=="L"&&tn=="1"?Y[Ht]="L":g.test(tn)&&(Tn=tn)}for(var qt=0;qt<ee;++qt)if(u.test(Y[qt])){var Bt=void 0;for(Bt=qt+1;Bt<ee&&u.test(Y[Bt]);++Bt);for(var Rt=(qt?Y[qt-1]:q)=="L",Cn=(Bt<ee?Y[Bt]:q)=="L",us=Rt==Cn?Rt?"L":"R":q,Ii=qt;Ii<Bt;++Ii)Y[Ii]=us;qt=Bt-1}for(var ln=[],Br,Zt=0;Zt<ee;)if(y.test(Y[Zt])){var jf=Zt;for(++Zt;Zt<ee&&y.test(Y[Zt]);++Zt);ln.push(new _(0,jf,Zt))}else{var si=Zt,wo=ln.length,xo=I=="rtl"?1:0;for(++Zt;Zt<ee&&Y[Zt]!="L";++Zt);for(var hn=si;hn<Zt;)if(w.test(Y[hn])){si<hn&&(ln.splice(wo,0,new _(1,si,hn)),wo+=xo);var fs=hn;for(++hn;hn<Zt&&w.test(Y[hn]);++hn);ln.splice(wo,0,new _(2,fs,hn)),wo+=xo,si=hn}else++hn;si<Zt&&ln.splice(wo,0,new _(1,si,Zt))}return I=="ltr"&&(ln[0].level==1&&(Br=k.match(/^\s+/))&&(ln[0].from=Br[0].length,ln.unshift(new _(0,0,Br[0].length))),ve(ln).level==1&&(Br=k.match(/\s+$/))&&(ve(ln).to-=Br[0].length,ln.push(new _(0,ee-Br[0].length,ee)))),I=="rtl"?ln.reverse():ln}})();function tt(n,i){var a=n.order;return a==null&&(a=n.order=In(n.text,i)),a}var co=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||co).concat(a)}};function Qr(n,i){return n._handlers&&n._handlers[i]||co}function rn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Nt(n,i){var a=Qr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Ot(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Nt(n,a||i.type,n,i),wn(i)||i.codemirrorIgnore}function ir(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)pe(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Qr(n,i).length>0}function hr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){rn(this,i,a)}}function on(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Fo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function wn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ti(n){on(n),Fo(n)}function Xs(n){return n.target||n.srcElement}function pr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),D&&n.ctrlKey&&i==1&&(i=3),i}var Yu=(function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n})(),Ho;function za(n){if(Ho==null){var i=S("span","​");N(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ho=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ho?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ys;function Ci(n){if(Ys!=null)return Ys;var i=N(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return P(n),!a||a.left==a.right?!1:Ys=l.right-a.right<3}var or=`
20
20
 
@@ -23,7 +23,7 @@
23
23
  })();
24
24
  </script>
25
25
  <!-- !LOAD_METADATA! -->
26
- <script type="module" src="./assets/index-CKAjAT2u.js"></script>
26
+ <script type="module" src="./assets/index-EgMhmdk8.js"></script>
27
27
  <link rel="stylesheet" href="./assets/index-CjTcNCIc.css">
28
28
  </head>
29
29
  <body>
@@ -100,9 +100,10 @@ class IframeOrchestrator {
100
100
  });
101
101
  debug("finished running tests", options.files.join(", "));
102
102
  }
103
- async runIsolatedTestInIframe(container, file, options, startTime) {
103
+ async runIsolatedTestInIframe(container, spec, options, startTime) {
104
104
  const config = getConfig();
105
105
  const { width, height } = config.browser.viewport;
106
+ const file = spec.filepath;
106
107
  if (this.iframes.has(file)) {
107
108
  this.iframes.get(file).remove();
108
109
  this.iframes.delete(file);
@@ -111,7 +112,7 @@ class IframeOrchestrator {
111
112
  await setIframeViewport(iframe, width, height);
112
113
  await sendEventToIframe({
113
114
  event: "execute",
114
- files: [file],
115
+ files: [spec],
115
116
  method: options.method,
116
117
  iframeId: file,
117
118
  context: options.providedContext
@@ -550,7 +550,6 @@ const stackIgnorePatterns = [
550
550
  "/vite-node/dist/",
551
551
  "/vite-node/src/",
552
552
  "/node_modules/chai/",
553
- "/node_modules/tinypool/",
554
553
  "/node_modules/tinyspy/",
555
554
  "/vite/dist/node/module-runner",
556
555
  "/rolldown-vite/dist/node/module-runner",
@@ -2062,15 +2061,15 @@ async function executeTests(method, files) {
2062
2061
  state.ctx.files = files;
2063
2062
  runner.setMethod(method);
2064
2063
  const version = url.searchParams.get("browserv") || "";
2065
- files.forEach((filename) => {
2066
- const currentVersion = browserHashMap.get(filename);
2064
+ files.forEach(({ filepath }) => {
2065
+ const currentVersion = browserHashMap.get(filepath);
2067
2066
  if (!currentVersion || currentVersion[1] !== version) {
2068
- browserHashMap.set(filename, version);
2067
+ browserHashMap.set(filepath, version);
2069
2068
  }
2070
2069
  });
2071
2070
  debug == null ? void 0 : debug("prepare time", state.durations.prepare, "ms");
2072
2071
  for (const file of files) {
2073
- state.filepath = file;
2072
+ state.filepath = file.filepath;
2074
2073
  if (method === "run") {
2075
2074
  await startTests([file], runner);
2076
2075
  } else {
@@ -26,7 +26,7 @@
26
26
  {__VITEST_INJECTOR__}
27
27
  {__VITEST_ERROR_CATCHER__}
28
28
  {__VITEST_SCRIPTS__}
29
- <script type="module" crossorigin src="/__vitest_browser__/orchestrator-Ce7D5fGP.js"></script>
29
+ <script type="module" crossorigin src="/__vitest_browser__/orchestrator-CFVVvVT1.js"></script>
30
30
  <link rel="modulepreload" crossorigin href="/__vitest_browser__/utils-uxqdqUz8.js">
31
31
  </head>
32
32
  <body>
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" href="{__VITEST_FAVICON__}" type="image/svg+xml">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Vitest Browser Tester</title>
8
- <script type="module" crossorigin src="/__vitest_browser__/tester-Vm4ppAv-.js"></script>
8
+ <script type="module" crossorigin src="/__vitest_browser__/tester-B-r90tWf.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/__vitest_browser__/utils-uxqdqUz8.js">
10
10
  </head>
11
11
  <body>
@@ -1,10 +1,10 @@
1
- import{expect,chai}from"vitest";import{getType}from"vitest/internal/browser";import{k as kAriaCheckedRoles,L as Locator,g as getAriaChecked,a as getAriaRole,b as getAriaDisabled,c as beginAriaCaches,e as endAriaCaches,i as isElementVisible$1,d as getElementAccessibleDescription,f as getElementAccessibleErrorMessage,h as getElementAccessibleName,j as cssEscape,l as getWorkerState,m as convertToSelector,n as getBrowserState,p as processTimeoutOptions}from"./index-BnLTaCRv.js";import{server}from"vitest/browser";function getAriaCheckedRoles(){return[...kAriaCheckedRoles]}function getElementFromUserInput(_,K,q){_ instanceof Locator&&(_=_.element());let J=_?.ownerDocument?.defaultView||window;if(_ instanceof J.HTMLElement||_ instanceof J.SVGElement)return _;throw new UserInputElementTypeError(_,K,q)}function getNodeFromUserInput(_,K,q){_ instanceof Locator&&(_=_.element());let J=_.ownerDocument?.defaultView||window;if(_ instanceof J.Node)return _;throw new UserInputNodeTypeError(_,K,q)}function getMessage(_,K,q,J,Y,X){return[`${K}\n`,`${q}:\n${_.utils.EXPECTED_COLOR(redent(display(_,J),2))}`,`${Y}:\n${_.utils.RECEIVED_COLOR(redent(display(_,X),2))}`].join(`
1
+ import{expect,chai}from"vitest";import{getType}from"vitest/internal/browser";import{k as kAriaCheckedRoles,L as Locator,g as getAriaChecked,a as getAriaRole,b as getAriaDisabled,c as beginAriaCaches,e as endAriaCaches,i as isElementVisible$1,d as getElementAccessibleDescription,f as getElementAccessibleErrorMessage,h as getElementAccessibleName,j as cssEscape,l as getWorkerState,m as convertToSelector,n as getBrowserState,p as processTimeoutOptions}from"./index-BnLTaCRv.js";import{server}from"vitest/browser";function getAriaCheckedRoles(){return[...kAriaCheckedRoles]}function queryElementFromUserInput(_,K,q){return _ instanceof Locator&&(_=_.query()),_==null?null:getElementFromUserInput(_,K,q)}function getElementFromUserInput(_,K,q){_ instanceof Locator&&(_=_.element());let J=_?.ownerDocument?.defaultView||window;if(_ instanceof J.HTMLElement||_ instanceof J.SVGElement)return _;throw new UserInputElementTypeError(_,K,q)}function getNodeFromUserInput(_,K,q){_ instanceof Locator&&(_=_.element());let J=_.ownerDocument?.defaultView||window;if(_ instanceof J.Node)return _;throw new UserInputNodeTypeError(_,K,q)}function getMessage(_,K,q,J,Y,X){return[`${K}\n`,`${q}:\n${_.utils.EXPECTED_COLOR(redent(display(_,J),2))}`,`${Y}:\n${_.utils.RECEIVED_COLOR(redent(display(_,X),2))}`].join(`
2
2
  `)}function redent(_,K){return indentString(stripIndent(_),K)}function indentString(_,K){return _.replace(/^(?!\s*$)/gm,` `.repeat(K))}function minIndent(_){let K=_.match(/^[ \t]*(?=\S)/gm);return K?K.reduce((_,K)=>Math.min(_,K.length),1/0):0}function stripIndent(_){let K=minIndent(_);if(K===0)return _;let q=RegExp(`^[ \\t]{${K}}`,`gm`);return _.replace(q,``)}function display(_,K){return typeof K==`string`?K:_.utils.stringify(K)}function toSentence(_,{wordConnector:K=`, `,lastWordConnector:q=` and `}={}){return[_.slice(0,-1).join(K),_.at(-1)].join(_.length>1?q:``)}class GenericTypeError extends Error{constructor(_,K,q,J){super(),Error.captureStackTrace&&Error.captureStackTrace(this,q);let Y=``;try{Y=J.utils.printWithType(`Received`,K,J.utils.printReceived)}catch{}this.message=[J.utils.matcherHint(`${J.isNot?`.not`:``}.${q.name}`,`received`,``),``,`${J.utils.RECEIVED_COLOR(`received`)} value must ${_} or a Locator that returns ${_}.`,Y].join(`
3
3
  `)}}class UserInputElementTypeError extends GenericTypeError{constructor(_,K,q){super(`an HTMLElement or an SVGElement`,_,K,q)}}class UserInputNodeTypeError extends GenericTypeError{constructor(_,K,q){super(`a Node`,_,K,q)}}function getTag(_){return _ instanceof HTMLFormElement?`FORM`:_.tagName.toUpperCase()}function isInputElement(_){return getTag(_)===`INPUT`}function getSingleElementValue(_){if(_)switch(getTag(_)){case`INPUT`:return getInputValue(_);case`SELECT`:return getSelectValue(_);default:return _.value??getAccessibleValue(_)}}function getSelectValue({multiple:_,options:K}){let q=[...K].filter(_=>_.selected);if(_)return[...q].map(_=>_.value);if(q.length!==0)return q[0].value}function getInputValue(_){switch(_.type){case`number`:return _.value===``?null:Number(_.value);case`checkbox`:return _.checked;default:return _.value}}const rolesSupportingValues=[`meter`,`progressbar`,`slider`,`spinbutton`];function getAccessibleValue(_){if(rolesSupportingValues.includes(_.getAttribute(`role`)||``))return Number(_.getAttribute(`aria-valuenow`))}function normalize(_){return _.replace(/\s+/g,` `).trim()}function matches(_,K){return K instanceof RegExp?K.test(_):_.includes(String(K))}function arrayAsSetComparison(_,K){if(Array.isArray(_)&&Array.isArray(K)){let q=new Set(K);for(let K of new Set(_))if(!q.has(K))return!1;return!0}}const supportedRoles=getAriaCheckedRoles();function toBeChecked(_){let K=getElementFromUserInput(_,toBeChecked,this);if(!(()=>isInputElement(K)&&[`checkbox`,`radio`].includes(K.type))()&&!(()=>supportedRoles.includes(getAriaRole(K)||``)&&[`true`,`false`].includes(K.getAttribute(`aria-checked`)||``))())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let q=getAriaChecked(K)===!0;return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${_} checked:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(`
4
4
  `)}}}function supportedRolesSentence(){return toSentence(supportedRoles.map(_=>`role="${_}"`),{lastWordConnector:` or `})}function toBeEmptyDOMElement(_){let K=getElementFromUserInput(_,toBeEmptyDOMElement,this);return{pass:isEmptyElement(K),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmptyDOMElement`,`element`,``),``,`Received:`,` ${this.utils.printReceived(K.innerHTML)}`].join(`
5
5
  `)}}function isEmptyElement(_){return[..._.childNodes].filter(_=>_.nodeType!==Node.COMMENT_NODE).length===0}function toBeDisabled(_){let K=getElementFromUserInput(_,toBeDisabled,this),q=isElementDisabled(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${_} disabled:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(`
6
6
  `)}}}function toBeEnabled(_){let K=getElementFromUserInput(_,toBeEnabled,this),q=isElementDisabled(K);return{pass:!q,message:()=>{let _=q?`is not`:`is`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${_} enabled:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(`
7
- `)}}}function isElementDisabled(_){return getTag(_).includes(`-`)?_.hasAttribute(`disabled`):getAriaDisabled(_)}function toBeInTheDocument(_){let K=null;(_!==null||!this.isNot)&&(K=getElementFromUserInput(_,toBeInTheDocument,this));let q=K===null?!1:K.ownerDocument===K.getRootNode({composed:!0}),J=()=>`expected document not to contain element, found ${this.utils.stringify(K?.cloneNode(!0))} instead`,Y=()=>`element could not be found in the document`;return{pass:q,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDocument`,`element`,``),``,this.utils.RECEIVED_COLOR(this.isNot?J():Y())].join(`
7
+ `)}}}function isElementDisabled(_){return getTag(_).includes(`-`)?_.hasAttribute(`disabled`):getAriaDisabled(_)}function toBeInTheDocument(_){let K=null;(_!==null||!this.isNot)&&(K=queryElementFromUserInput(_,toBeInTheDocument,this));let q=K===null?!1:K.ownerDocument===K.getRootNode({composed:!0}),J=()=>`expected document not to contain element, found ${this.utils.stringify(K?.cloneNode(!0))} instead`,Y=()=>`element could not be found in the document`;return{pass:q,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDocument`,`element`,``),``,this.utils.RECEIVED_COLOR(this.isNot?J():Y())].join(`
8
8
  `)}}const FORM_TAGS$1=[`FORM`,`INPUT`,`SELECT`,`TEXTAREA`];function isElementHavingAriaInvalid(_){return _.hasAttribute(`aria-invalid`)&&_.getAttribute(`aria-invalid`)!==`false`}function isSupportsValidityMethod(_){return FORM_TAGS$1.includes(getTag(_))}function isElementInvalid(_){let K=isElementHavingAriaInvalid(_);return isSupportsValidityMethod(_)?K||!_.checkValidity():K}function toBeInvalid(_){let K=getElementFromUserInput(_,toBeInvalid,this),q=isElementInvalid(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInvalid`,`element`,``),``,`Received element ${_} currently invalid:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(`
9
9
  `)}}}function toBeValid(_){let K=getElementFromUserInput(_,toBeInvalid,this),q=!isElementInvalid(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeValid`,`element`,``),``,`Received element ${_} currently valid:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(`
10
10
  `)}}}function toBeInViewport(_,K){let q=getElementFromUserInput(_,toBeInViewport,this),J=K?.ratio??0;return getViewportIntersection(q,J).then(({pass:_,ratio:K})=>({pass:_,message:()=>{let Y=_?`is`:`is not`,X=J>0?` with ratio ${J}`:``,Z=K===void 0?``:` (actual ratio: ${K.toFixed(3)})`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInViewport`,`element`,``),``,`Received element ${Y} in viewport${X}${Z}:`,` ${this.utils.printReceived(q.cloneNode(!1))}`].join(`
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import { PNG } from 'pngjs';
18
18
  import pm from 'pixelmatch';
19
19
  import { WebSocketServer } from 'ws';
20
20
 
21
- var version = "4.0.0-beta.18";
21
+ var version = "4.0.0-beta.19";
22
22
 
23
23
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
24
24
  function normalizeWindowsPath(input = "") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/browser",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.18",
4
+ "version": "4.0.0-beta.19",
5
5
  "description": "Browser running for Vitest",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -51,7 +51,7 @@
51
51
  "providers"
52
52
  ],
53
53
  "peerDependencies": {
54
- "vitest": "4.0.0-beta.18"
54
+ "vitest": "4.0.0-beta.19"
55
55
  },
56
56
  "dependencies": {
57
57
  "magic-string": "^0.30.19",
@@ -60,8 +60,8 @@
60
60
  "sirv": "^3.0.2",
61
61
  "tinyrainbow": "^3.0.3",
62
62
  "ws": "^8.18.3",
63
- "@vitest/mocker": "4.0.0-beta.18",
64
- "@vitest/utils": "4.0.0-beta.18"
63
+ "@vitest/mocker": "4.0.0-beta.19",
64
+ "@vitest/utils": "4.0.0-beta.19"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@testing-library/user-event": "^14.6.1",
@@ -72,8 +72,8 @@
72
72
  "ivya": "^1.7.0",
73
73
  "mime": "^4.1.0",
74
74
  "pathe": "^2.0.3",
75
- "@vitest/runner": "4.0.0-beta.18",
76
- "vitest": "4.0.0-beta.18"
75
+ "@vitest/runner": "4.0.0-beta.19",
76
+ "vitest": "4.0.0-beta.19"
77
77
  },
78
78
  "scripts": {
79
79
  "typecheck": "tsc -p ./src/client/tsconfig.json --noEmit",