@vitest/browser 4.1.1 → 4.1.2

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.
@@ -14,8 +14,8 @@
14
14
  * @vue/runtime-dom v3.5.29
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let pp;const Fy=typeof window<"u"&&window.trustedTypes;if(Fy)try{pp=Fy.createPolicy("vue",{createHTML:e=>e})}catch{}const g1=pp?e=>pp.createHTML(e):e=>e,QA="http://www.w3.org/2000/svg",e$="http://www.w3.org/1998/Math/MathML",Mi=typeof document<"u"?document:null,zy=Mi&&Mi.createElement("template"),t$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?Mi.createElementNS(QA,e):t==="mathml"?Mi.createElementNS(e$,e):n?Mi.createElement(e,{is:n}):Mi.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Mi.createTextNode(e),createComment:e=>Mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,l){const u=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{zy.innerHTML=g1(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const f=zy.content;if(i==="svg"||i==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}t.insertBefore(f,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},uo="transition",xa="animation",Qa=Symbol("_vtc"),m1={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},n$=Qt({},Lx,m1),r$=e=>(e.displayName="Transition",e.props=n$,e),i$=r$((e,{slots:t})=>Tc(XE,o$(e),t)),ts=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hy=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function o$(e){const t={};for(const P in e)P in m1||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:g=f,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,$=s$(o),_=$&&$[0],C=$&&$[1],{onBeforeEnter:E,onEnter:L,onEnterCancelled:D,onLeave:N,onLeaveCancelled:I,onBeforeAppear:q=E,onAppear:X=L,onAppearCancelled:ie=D}=t,J=(P,O,k,S)=>{P._enterCancelled=S,ns(P,O?g:f),ns(P,O?p:u),k&&k()},U=(P,O)=>{P._isLeaving=!1,ns(P,v),ns(P,w),ns(P,y),O&&O()},K=P=>(O,k)=>{const S=P?X:L,R=()=>J(O,P,k);ts(S,[O,R]),By(()=>{ns(O,P?h:l),Ci(O,P?g:f),Hy(S)||jy(O,i,_,R)})};return Qt(t,{onBeforeEnter(P){ts(E,[P]),Ci(P,l),Ci(P,u)},onBeforeAppear(P){ts(q,[P]),Ci(P,h),Ci(P,p)},onEnter:K(!1),onAppear:K(!0),onLeave(P,O){P._isLeaving=!0;const k=()=>U(P,O);Ci(P,v),P._enterCancelled?(Ci(P,y),Uy(P)):(Uy(P),Ci(P,y)),By(()=>{P._isLeaving&&(ns(P,v),Ci(P,w),Hy(N)||jy(P,i,C,k))}),ts(N,[P,k])},onEnterCancelled(P){J(P,!1,void 0,!0),ts(D,[P])},onAppearCancelled(P){J(P,!0,void 0,!0),ts(ie,[P])},onLeaveCancelled(P){U(P),ts(I,[P])}})}function s$(e){if(e==null)return null;if(wt(e))return[Sh(e.enter),Sh(e.leave)];{const t=Sh(e);return[t,t]}}function Sh(e){return Qw(e)}function Ci(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Qa]||(e[Qa]=new Set)).add(t)}function ns(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[Qa];n&&(n.delete(t),n.size||(e[Qa]=void 0))}function By(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let l$=0;function jy(e,t,n,i){const o=e._endId=++l$,l=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(l,n);const{type:u,timeout:f,propCount:h}=a$(e,t);if(!u)return i();const p=u+"end";let g=0;const v=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},f+1),e.addEventListener(p,y)}function a$(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${uo}Delay`),l=i(`${uo}Duration`),u=Wy(o,l),f=i(`${xa}Delay`),h=i(`${xa}Duration`),p=Wy(f,h);let g=null,v=0,y=0;t===uo?u>0&&(g=uo,v=u,y=l.length):t===xa?p>0&&(g=xa,v=p,y=h.length):(v=Math.max(u,p),g=v>0?u>p?uo:xa:null,y=g?g===uo?l.length:h.length:0);const w=g===uo&&/\b(?:transform|all)(?:,|$)/.test(i(`${uo}Property`).toString());return{type:g,timeout:v,propCount:y,hasTransform:w}}function Wy(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>qy(n)+qy(e[i])))}function qy(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Uy(e){return(e?e.ownerDocument:document).body.offsetHeight}function c$(e,t,n){const i=e[Qa];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const uf=Symbol("_vod"),v1=Symbol("_vsh"),Co={name:"show",beforeMount(e,{value:t},{transition:n}){e[uf]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Sa(e,!0),i.enter(e)):i.leave(e,()=>{Sa(e,!1)}):Sa(e,t))},beforeUnmount(e,{value:t}){Sa(e,t)}};function Sa(e,t){e.style.display=t?e[uf]:"none",e[v1]=!t}const u$=Symbol(""),f$=/(?:^|;)\s*display\s*:/;function d$(e,t,n){const i=e.style,o=jt(n);let l=!1;if(n&&!o){if(t)if(jt(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();n[f]==null&&Du(i,f,"")}else for(const u in t)n[u]==null&&Du(i,u,"");for(const u in n)u==="display"&&(l=!0),Du(i,u,n[u])}else if(o){if(t!==n){const u=i[u$];u&&(n+=";"+u),i.cssText=n,l=f$.test(n)}}else t&&e.removeAttribute("style");uf in e&&(e[uf]=l?i.display:"",e[v1]&&(i.display="none"))}const Vy=/\s*!important$/;function Du(e,t,n){if(Ye(n))n.forEach(i=>Du(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=h$(e,t);Vy.test(n)?e.setProperty(Gi(i),n.replace(Vy,""),"important"):e[i]=n}}const Gy=["Webkit","Moz","ms"],_h={};function h$(e,t){const n=_h[t];if(n)return n;let i=mr(t);if(i!=="filter"&&i in e)return _h[t]=i;i=Hf(i);for(let o=0;o<Gy.length;o++){const l=Gy[o]+i;if(l in e)return _h[t]=l}return t}const Ky="http://www.w3.org/1999/xlink";function Yy(e,t,n,i,o,l=lE(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ky,t.slice(6,t.length)):e.setAttributeNS(Ky,t,n):n==null||l&&!ex(n)?e.removeAttribute(t):e.setAttribute(t,l?"":qr(n)?String(n):n)}function Xy(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?g1(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const f=l==="OPTION"?e.getAttribute("value")||"":e.value,h=n==null?e.type==="checkbox"?"on":"":String(n);(f!==h||!("_value"in e))&&(e.value=h),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ex(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(o||t)}function To(e,t,n,i){e.addEventListener(t,n,i)}function p$(e,t,n,i){e.removeEventListener(t,n,i)}const Jy=Symbol("_vei");function g$(e,t,n,i,o=null){const l=e[Jy]||(e[Jy]={}),u=l[t];if(i&&u)u.value=i;else{const[f,h]=m$(t);if(i){const p=l[t]=b$(i,o);To(e,f,p,h)}else u&&(p$(e,f,u,h),l[t]=void 0)}}const Zy=/(?:Once|Passive|Capture)$/;function m$(e){let t;if(Zy.test(e)){t={};let i;for(;i=e.match(Zy);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gi(e.slice(2)),t]}let kh=0;const v$=Promise.resolve(),y$=()=>kh||(v$.then(()=>kh=0),kh=Date.now());function b$(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Vr(w$(i,n.value),t,5,[i])};return n.value=e,n.attached=y$(),n}function w$(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const Qy=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,x$=(e,t,n,i,o,l)=>{const u=o==="svg";t==="class"?c$(e,i,u):t==="style"?d$(e,n,i):Df(t)?og(t)||g$(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):S$(e,t,i,u))?(Xy(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yy(e,t,i,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!jt(i))?Xy(e,mr(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Yy(e,t,i,u))};function S$(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qy(t)&&rt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Qy(t)&&jt(n)?!1:t in e}const El=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>Pu(t,n):t};function _$(e){e.target.composing=!0}function e0(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign");function t0(e,t,n){return t&&(e=e.trim()),n&&(e=Bf(e)),e}const y1={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[Hi]=El(o);const l=i||o.props&&o.props.type==="number";To(e,t?"change":"input",u=>{u.target.composing||e[Hi](t0(e.value,n,l))}),(n||l)&&To(e,"change",()=>{e.value=t0(e.value,n,l)}),t||(To(e,"compositionstart",_$),To(e,"compositionend",e0),To(e,"change",e0))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:l}},u){if(e[Hi]=El(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?Bf(e.value):e.value,h=t??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===h)||(e.value=h))}},b1={deep:!0,created(e,t,n){e[Hi]=El(n),To(e,"change",()=>{const i=e._modelValue,o=ec(e),l=e.checked,u=e[Hi];if(Ye(i)){const f=lg(i,o),h=f!==-1;if(l&&!h)u(i.concat(o));else if(!l&&h){const p=[...i];p.splice(f,1),u(p)}}else if(Fl(i)){const f=new Set(i);l?f.add(o):f.delete(o),u(f)}else u(w1(e,l))})},mounted:n0,beforeUpdate(e,t,n){e[Hi]=El(n),n0(e,t,n)}};function n0(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(Ye(t))o=lg(t,i.props.value)>-1;else if(Fl(t))o=t.has(i.props.value);else{if(t===n)return;o=zl(t,w1(e,!0))}e.checked!==o&&(e.checked=o)}const r0={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=Fl(t);To(e,"change",()=>{const l=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Bf(ec(u)):ec(u));e[Hi](e.multiple?o?new Set(l):l:l[0]),e._assigning=!0,At(()=>{e._assigning=!1})}),e[Hi]=El(i)},mounted(e,{value:t}){i0(e,t)},beforeUpdate(e,t,n){e[Hi]=El(n)},updated(e,{value:t}){e._assigning||i0(e,t)}};function i0(e,t){const n=e.multiple,i=Ye(t);if(!(n&&!i&&!Fl(t))){for(let o=0,l=e.options.length;o<l;o++){const u=e.options[o],f=ec(u);if(n)if(i){const h=typeof f;h==="string"||h==="number"?u.selected=t.some(p=>String(p)===String(f)):u.selected=lg(t,f)>-1}else u.selected=t.has(f);else if(zl(ec(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ec(e){return"_value"in e?e._value:e.value}function w1(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const k$=["ctrl","shift","alt","meta"],T$={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)=>k$.some(n=>e[`${n}Key`]&&!t.includes(n))},Fu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((o,...l)=>{for(let u=0;u<t.length;u++){const f=T$[t[u]];if(f&&f(o,t))return}return e(o,...l)}))},C$={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gp=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(o=>{if(!("key"in o))return;const l=Gi(o.key);if(t.some(u=>u===l||C$[u]===l))return e(o)}))},E$=Qt({patchProp:x$},t$);let o0;function A$(){return o0||(o0=MA(E$))}const x1=((...e)=>{const t=A$().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=N$(i);if(!o)return;const l=t._component;!rt(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const u=n(o,!1,$$(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function $$(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function N$(e){return jt(e)?document.querySelector(e):e}const Xi=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},M$={};function L$(e,t){const n=ys("RouterView");return te(),We(n)}const O$=Xi(M$,[["render",L$]]),R$=["top","right","bottom","left"],s0=["start","end"],l0=R$.reduce((e,t)=>e.concat(t,t+"-"+s0[0],t+"-"+s0[1]),[]),tc=Math.min,ss=Math.max,P$={left:"right",right:"left",bottom:"top",top:"bottom"},I$={start:"end",end:"start"};function mp(e,t,n){return ss(e,tc(t,n))}function _s(e,t){return typeof e=="function"?e(t):e}function hi(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function S1(e){return e==="x"?"y":"x"}function _g(e){return e==="y"?"height":"width"}const D$=new Set(["top","bottom"]);function Di(e){return D$.has(hi(e))?"y":"x"}function kg(e){return S1(Di(e))}function _1(e,t,n){n===void 0&&(n=!1);const i=Wr(e),o=kg(e),l=_g(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=df(u)),[u,df(u)]}function F$(e){const t=df(e);return[ff(e),t,ff(t)]}function ff(e){return e.replace(/start|end/g,t=>I$[t])}const a0=["left","right"],c0=["right","left"],z$=["top","bottom"],H$=["bottom","top"];function B$(e,t,n){switch(e){case"top":case"bottom":return n?t?c0:a0:t?a0:c0;case"left":case"right":return t?z$:H$;default:return[]}}function j$(e,t,n,i){const o=Wr(e);let l=B$(hi(e),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),t&&(l=l.concat(l.map(ff)))),l}function df(e){return e.replace(/left|right|bottom|top/g,t=>P$[t])}function W$(e){return{top:0,right:0,bottom:0,left:0,...e}}function k1(e){return typeof e!="number"?W$(e):{top:e,right:e,bottom:e,left:e}}function za(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function u0(e,t,n){let{reference:i,floating:o}=e;const l=Di(t),u=kg(t),f=_g(u),h=hi(t),p=l==="y",g=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,y=i[f]/2-o[f]/2;let w;switch(h){case"top":w={x:g,y:i.y-o.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-o.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Wr(t)){case"start":w[u]-=y*(n&&p?-1:1);break;case"end":w[u]+=y*(n&&p?-1:1);break}return w}const q$=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:v}=u0(p,i,h),y=i,w={},$=0;for(let _=0;_<f.length;_++){const{name:C,fn:E}=f[_],{x:L,y:D,data:N,reset:I}=await E({x:g,y:v,initialPlacement:i,placement:y,strategy:o,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=L??g,v=D??v,w={...w,[C]:{...w[C],...N}},I&&$<=50&&($++,typeof I=="object"&&(I.placement&&(y=I.placement),I.rects&&(p=I.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:g,y:v}=u0(p,y,h)),_=-1)}return{x:g,y:v,placement:y,strategy:o,middlewareData:w}};async function td(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:y=!1,padding:w=0}=_s(t,e),$=k1(w),C=f[y?v==="floating"?"reference":"floating":v],E=za(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),L=v==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),N=await(l.isElement==null?void 0:l.isElement(D))?await(l.getScale==null?void 0:l.getScale(D))||{x:1,y:1}:{x:1,y:1},I=za(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:D,strategy:h}):L);return{top:(E.top-I.top+$.top)/N.y,bottom:(I.bottom-E.bottom+$.bottom)/N.y,left:(E.left-I.left+$.left)/N.x,right:(I.right-E.right+$.right)/N.x}}const U$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:g=0}=_s(e,t)||{};if(p==null)return{};const v=k1(g),y={x:n,y:i},w=kg(o),$=_g(w),_=await u.getDimensions(p),C=w==="y",E=C?"top":"left",L=C?"bottom":"right",D=C?"clientHeight":"clientWidth",N=l.reference[$]+l.reference[w]-y[w]-l.floating[$],I=y[w]-l.reference[w],q=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let X=q?q[D]:0;(!X||!await(u.isElement==null?void 0:u.isElement(q)))&&(X=f.floating[D]||l.floating[$]);const ie=N/2-I/2,J=X/2-_[$]/2-1,U=tc(v[E],J),K=tc(v[L],J),P=U,O=X-_[$]-K,k=X/2-_[$]/2+ie,S=mp(P,k,O),R=!h.arrow&&Wr(o)!=null&&k!==S&&l.reference[$]/2-(k<P?U:K)-_[$]/2<0,B=R?k<P?k-P:k-O:0;return{[w]:y[w]+B,data:{[w]:S,centerOffset:k-S-B,...R&&{alignmentOffset:B}},reset:R}}});function V$(e,t,n){return(e?[...n.filter(o=>Wr(o)===e),...n.filter(o=>Wr(o)!==e)]:n.filter(o=>hi(o)===o)).filter(o=>e?Wr(o)===e||(t?ff(o)!==o:!1):!0)}const G$=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o;const{rects:l,middlewareData:u,placement:f,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:y=l0,autoAlignment:w=!0,...$}=_s(e,t),_=v!==void 0||y===l0?V$(v||null,w,y):y,C=await td(t,$),E=((n=u.autoPlacement)==null?void 0:n.index)||0,L=_[E];if(L==null)return{};const D=_1(L,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(f!==L)return{reset:{placement:_[0]}};const N=[C[hi(L)],C[D[0]],C[D[1]]],I=[...((i=u.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:N}],q=_[E+1];if(q)return{data:{index:E+1,overflows:I},reset:{placement:q}};const X=I.map(U=>{const K=Wr(U.placement);return[U.placement,K&&g?U.overflows.slice(0,2).reduce((P,O)=>P+O,0):U.overflows[0],U.overflows]}).sort((U,K)=>U[1]-K[1]),J=((o=X.filter(U=>U[2].slice(0,Wr(U[0])?2:3).every(K=>K<=0))[0])==null?void 0:o[0])||X[0][0];return J!==f?{data:{index:E+1,overflows:I},reset:{placement:J}}:{}}}},K$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:_=!0,...C}=_s(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=hi(o),L=Di(f),D=hi(f)===f,N=await(h.isRTL==null?void 0:h.isRTL(p.floating)),I=y||(D||!_?[df(f)]:F$(f)),q=$!=="none";!y&&q&&I.push(...j$(f,_,$,N));const X=[f,...I],ie=await td(t,C),J=[];let U=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&J.push(ie[E]),v){const k=_1(o,u,N);J.push(ie[k[0]],ie[k[1]])}if(U=[...U,{placement:o,overflows:J}],!J.every(k=>k<=0)){var K,P;const k=(((K=l.flip)==null?void 0:K.index)||0)+1,S=X[k];if(S&&(!(v==="alignment"?L!==Di(S):!1)||U.every(ae=>Di(ae.placement)===L?ae.overflows[0]>0:!0)))return{data:{index:k,overflows:U},reset:{placement:S}};let R=(P=U.filter(B=>B.overflows[0]<=0).sort((B,ae)=>B.overflows[1]-ae.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(w){case"bestFit":{var O;const B=(O=U.filter(ae=>{if(q){const ve=Di(ae.placement);return ve===L||ve==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ve=>ve>0).reduce((ve,_e)=>ve+_e,0)]).sort((ae,ve)=>ae[1]-ve[1])[0])==null?void 0:O[0];B&&(R=B);break}case"initialPlacement":R=f;break}if(o!==R)return{reset:{placement:R}}}return{}}}},Y$=new Set(["left","top"]);async function X$(e,t){const{placement:n,platform:i,elements:o}=e,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=hi(n),f=Wr(n),h=Di(n)==="y",p=Y$.has(u)?-1:1,g=l&&h?-1:1,v=_s(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:$}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof $=="number"&&(w=f==="end"?$*-1:$),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const J$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:l,placement:u,middlewareData:f}=t,h=await X$(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:u}}}}},Z$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:C=>{let{x:E,y:L}=C;return{x:E,y:L}}},...h}=_s(e,t),p={x:n,y:i},g=await td(t,h),v=Di(hi(o)),y=S1(v);let w=p[y],$=p[v];if(l){const C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",L=w+g[C],D=w-g[E];w=mp(L,w,D)}if(u){const C=v==="y"?"top":"left",E=v==="y"?"bottom":"right",L=$+g[C],D=$-g[E];$=mp(L,$,D)}const _=f.fn({...t,[y]:w,[v]:$});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[y]:l,[v]:u}}}}}},Q$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...p}=_s(e,t),g=await td(t,p),v=hi(o),y=Wr(o),w=Di(o)==="y",{width:$,height:_}=l.floating;let C,E;v==="top"||v==="bottom"?(C=v,E=y===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(E=v,C=y==="end"?"top":"bottom");const L=_-g.top-g.bottom,D=$-g.left-g.right,N=tc(_-g[C],L),I=tc($-g[E],D),q=!t.middlewareData.shift;let X=N,ie=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ie=D),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(X=L),q&&!y){const U=ss(g.left,0),K=ss(g.right,0),P=ss(g.top,0),O=ss(g.bottom,0);w?ie=$-2*(U!==0||K!==0?U+K:ss(g.left,g.right)):X=_-2*(P!==0||O!==0?P+O:ss(g.top,g.bottom))}await h({...t,availableWidth:ie,availableHeight:X});const J=await u.getDimensions(f.floating);return $!==J.width||_!==J.height?{reset:{rects:!0}}:{}}}};function kr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){return kr(e).getComputedStyle(e)}const f0=Math.min,Ha=Math.max,hf=Math.round;function T1(e){const t=ui(e);let n=parseFloat(t.width),i=parseFloat(t.height);const o=e.offsetWidth,l=e.offsetHeight,u=hf(n)!==o||hf(i)!==l;return u&&(n=o,i=l),{width:n,height:i,fallback:u}}function Oo(e){return E1(e)?(e.nodeName||"").toLowerCase():""}let mu;function C1(){if(mu)return mu;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(mu=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),mu):navigator.userAgent}function fi(e){return e instanceof kr(e).HTMLElement}function Ao(e){return e instanceof kr(e).Element}function E1(e){return e instanceof kr(e).Node}function d0(e){return typeof ShadowRoot>"u"?!1:e instanceof kr(e).ShadowRoot||e instanceof ShadowRoot}function nd(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ui(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function eN(e){return["table","td","th"].includes(Oo(e))}function vp(e){const t=/firefox/i.test(C1()),n=ui(e),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const l=n.contain;return l!=null&&l.includes(o)}))}function A1(){return!/^((?!chrome|android).)*safari/i.test(C1())}function Tg(e){return["html","body","#document"].includes(Oo(e))}function $1(e){return Ao(e)?e:e.contextElement}const N1={x:1,y:1};function hl(e){const t=$1(e);if(!fi(t))return N1;const n=t.getBoundingClientRect(),{width:i,height:o,fallback:l}=T1(t);let u=(l?hf(n.width):n.width)/i,f=(l?hf(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}function nc(e,t,n,i){var o,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),f=$1(e);let h=N1;t&&(i?Ao(i)&&(h=hl(i)):h=hl(e));const p=f?kr(f):window,g=!A1()&&n;let v=(u.left+(g&&((o=p.visualViewport)==null?void 0:o.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,$=u.height/h.y;if(f){const _=kr(f),C=i&&Ao(i)?kr(i):i;let E=_.frameElement;for(;E&&i&&C!==_;){const L=hl(E),D=E.getBoundingClientRect(),N=getComputedStyle(E);D.x+=(E.clientLeft+parseFloat(N.paddingLeft))*L.x,D.y+=(E.clientTop+parseFloat(N.paddingTop))*L.y,v*=L.x,y*=L.y,w*=L.x,$*=L.y,v+=D.x,y+=D.y,E=kr(E).frameElement}}return{width:w,height:$,top:y,right:v+w,bottom:y+$,left:v,x:v,y}}function $o(e){return((E1(e)?e.ownerDocument:e.document)||window.document).documentElement}function rd(e){return Ao(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M1(e){return nc($o(e)).left+rd(e).scrollLeft}function rc(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||d0(e)&&e.host||$o(e);return d0(t)?t.host:t}function L1(e){const t=rc(e);return Tg(t)?t.ownerDocument.body:fi(t)&&nd(t)?t:L1(t)}function pf(e,t){var n;t===void 0&&(t=[]);const i=L1(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),l=kr(i);return o?t.concat(l,l.visualViewport||[],nd(i)?i:[]):t.concat(i,pf(i))}function h0(e,t,n){return t==="viewport"?za((function(i,o){const l=kr(i),u=$o(i),f=l.visualViewport;let h=u.clientWidth,p=u.clientHeight,g=0,v=0;if(f){h=f.width,p=f.height;const y=A1();(y||!y&&o==="fixed")&&(g=f.offsetLeft,v=f.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,n)):Ao(t)?za((function(i,o){const l=nc(i,!0,o==="fixed"),u=l.top+i.clientTop,f=l.left+i.clientLeft,h=fi(i)?hl(i):{x:1,y:1};return{width:i.clientWidth*h.x,height:i.clientHeight*h.y,x:f*h.x,y:u*h.y}})(t,n)):za((function(i){const o=$o(i),l=rd(i),u=i.ownerDocument.body,f=Ha(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),h=Ha(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+M1(i);const g=-l.scrollTop;return ui(u).direction==="rtl"&&(p+=Ha(o.clientWidth,u.clientWidth)-f),{width:f,height:h,x:p,y:g}})($o(e)))}function p0(e){return fi(e)&&ui(e).position!=="fixed"?e.offsetParent:null}function g0(e){const t=kr(e);let n=p0(e);for(;n&&eN(n)&&ui(n).position==="static";)n=p0(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&ui(n).position==="static"&&!vp(n))?t:n||(function(i){let o=rc(i);for(;fi(o)&&!Tg(o);){if(vp(o))return o;o=rc(o)}return null})(e)||t}function tN(e,t,n){const i=fi(t),o=$o(t),l=nc(e,!0,n==="fixed",t);let u={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(i||!i&&n!=="fixed")if((Oo(t)!=="body"||nd(o))&&(u=rd(t)),fi(t)){const h=nc(t,!0);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else o&&(f.x=M1(o));return{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}const nN={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const l=n==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let y=pf(p).filter((C=>Ao(C)&&Oo(C)!=="body")),w=null;const $=ui(p).position==="fixed";let _=$?rc(p):p;for(;Ao(_)&&!Tg(_);){const C=ui(_),E=vp(_);($?E||w:E||C.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=C:y=y.filter((L=>L!==_)),_=rc(_)}return g.set(p,y),y})(t,this._c):[].concat(n),u=[...l,i],f=u[0],h=u.reduce(((p,g)=>{const v=h0(t,g,o);return p.top=Ha(v.top,p.top),p.right=f0(v.right,p.right),p.bottom=f0(v.bottom,p.bottom),p.left=Ha(v.left,p.left),p}),h0(t,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=fi(n),l=$o(n);if(n===l)return t;let u={scrollLeft:0,scrollTop:0},f={x:1,y:1};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((Oo(n)!=="body"||nd(l))&&(u=rd(n)),fi(n))){const p=nc(n);f=hl(n),h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x,y:t.y*f.y-u.scrollTop*f.y+h.y}},isElement:Ao,getDimensions:function(e){return fi(e)?T1(e):e.getBoundingClientRect()},getOffsetParent:g0,getDocumentElement:$o,getScale:hl,async getElementRects(e){let{reference:t,floating:n,strategy:i}=e;const o=this.getOffsetParent||g0,l=this.getDimensions;return{reference:tN(t,await o(n),i),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ui(e).direction==="rtl"},rN=(e,t,n)=>{const i=new Map,o={platform:nN,...n},l={...o.platform,_c:i};return q$(e,t,{...o,platform:l})},No={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 ic(e,t){let n=No.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=No.themes[n.$extend]||{}:(n=null,i=No[t]):n=null;while(n);return i}function iN(e){const t=[e];let n=No.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=No.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function m0(e){const t=[e];let n=No.themes[e]||{};do n.$extend?(t.push(n.$extend),n=No.themes[n.$extend]||{}):n=null;while(n);return t}let oc=!1;if(typeof window<"u"){oc=!1;try{const e=Object.defineProperty({},"passive",{get(){oc=!0}});window.addEventListener("test",null,e)}catch{}}let O1=!1;typeof window<"u"&&typeof navigator<"u"&&(O1=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const R1=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),v0={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},y0={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function b0(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Th(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const cr=[];let rs=null;const w0={};function x0(e){let t=w0[e];return t||(t=w0[e]=[]),t}let yp=function(){};typeof window<"u"&&(yp=window.Element);function ht(e){return function(t){return ic(t.theme,e)}}const Ch="__floating-vue__popper",P1=()=>tt({name:"VPopper",provide(){return{[Ch]:{parentPopper:this}}},inject:{[Ch]:{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:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>R1.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,yp,Boolean],default:ht("container")},boundary:{type:[String,yp],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("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[Ch])==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:n=!1}={}){var i,o;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.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 n;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}((n=this.parentPopper)==null?void 0:n.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(J$({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(G$({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Z$({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(K$({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(U$({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:l})=>{let u;const{centerOffset:f}=l.arrow;return i.startsWith("top")||i.startsWith("bottom")?u=Math.abs(f)>o.reference.width/2:u=Math.abs(f)>o.reference.height/2,{data:{overflow:u}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:l,middlewareData:u})=>{var f;if((f=u.autoSize)!=null&&f.skip)return{};let h,p;return l.startsWith("top")||l.startsWith("bottom")?h=o.reference.width:p=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="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(Q$({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await rN(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),rs&&this.instantMove&&rs.instantMove&&rs!==this.parentPopper){rs.$_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&&(rs=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 Th(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...pf(this.$_referenceNode),...pf(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(i.left+n.offsetLeft),l=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${o}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<cr.length;n++)t=cr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}cr.push(this),document.body.classList.add("v-popper--some-open");for(const t of m0(this.theme))x0(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 Th(),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,b0(cr,this),cr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of m0(this.theme)){const i=x0(n);b0(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}rs===this&&(rs=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 Th(),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=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,v0,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],v0,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,y0,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],y0,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(i=>i.addEventListener(t,n,oc?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,o){let l=n;i!=null&&(l=typeof i=="function"?i(l):i),l.forEach(u=>{const f=t[u];f&&this.$_registerEventListeners(e,f,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:o,handler:l}=n;!e||e===o?i.forEach(u=>u.removeEventListener(o,l)):t.push(n)}),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 n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}},$_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(Ba>=e.left&&Ba<=e.right&&ja>=e.top&&ja<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ba-po,i=ja-go,o=t.left+t.width/2-po+(t.top+t.height/2)-go+t.width+t.height,l=po+n*o,u=go+i*o;return vu(po,go,l,u,t.left,t.top,t.left,t.bottom)||vu(po,go,l,u,t.left,t.top,t.right,t.top)||vu(po,go,l,u,t.right,t.top,t.right,t.bottom)||vu(po,go,l,u,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(O1){const e=oc?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>S0(t),e),document.addEventListener("touchend",t=>_0(t,!0),e)}else window.addEventListener("mousedown",e=>S0(e),!0),window.addEventListener("click",e=>_0(e,!1),!0);window.addEventListener("resize",lN)}function S0(e,t){for(let n=0;n<cr.length;n++){const i=cr[n];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function _0(e,t){oN(e,t)}function oN(e,t){const n={};for(let i=cr.length-1;i>=0;i--){const o=cr[i];try{const l=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&k0(o,l,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=o.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let u=o.parentPopper;for(;u&&k0(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function k0(e,t,n){return n.closeAllPopover||n.closePopover&&t||sN(e,n)&&!t}function sN(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function lN(){for(let e=0;e<cr.length;e++)cr[e].$_computePosition()}function T0(){for(let e=0;e<cr.length;e++)cr[e].hide()}let po=0,go=0,Ba=0,ja=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{po=Ba,go=ja,Ba=e.clientX,ja=e.clientY},oc?{passive:!0}:void 0);function vu(e,t,n,i,o,l,u,f){const h=((u-o)*(t-l)-(f-l)*(e-o))/((f-l)*(n-e)-(u-o)*(i-t)),p=((n-e)*(t-l)-(i-t)*(e-o))/((f-l)*(n-e)-(u-o)*(i-t));return h>=0&&h<=1&&p>=0&&p<=1}const aN={extends:P1()},id=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};function cN(e,t,n,i,o,l){return te(),ge("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Bt(e.$slots,"default",oE(f1(e.slotData)))],2)}const uN=id(aN,[["render",cN]]);function fN(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let zu;function bp(){bp.init||(bp.init=!0,zu=fN()!==-1)}var od={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){bp(),At(()=>{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",zu&&this.$el.appendChild(e),e.data="about:blank",zu||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&&(!zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const dN=Ex();Tx("data-v-b329ee4c");const hN={class:"resize-observer",tabindex:"-1"};Cx();const pN=dN((e,t,n,i,o,l)=>(te(),We("div",hN)));od.render=pN;od.__scopeId="data-v-b329ee4c";od.__file="src/components/ResizeObserver.vue";const I1=(e="theme")=>({computed:{themeClass(){return iN(this[e])}}}),gN=tt({name:"VPopperContent",components:{ResizeObserver:od},mixins:[I1()],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}}}),mN=["id","aria-hidden","tabindex","data-popper-placement"],vN={ref:"inner",class:"v-popper__inner"},yN=Y("div",{class:"v-popper__arrow-outer"},null,-1),bN=Y("div",{class:"v-popper__arrow-inner"},null,-1),wN=[yN,bN];function xN(e,t,n,i,o,l){const u=ys("ResizeObserver");return te(),ge("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:Pt(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]=gp(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Pt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",vN,[e.mounted?(te(),ge(nt,{key:0},[Y("div",null,[Bt(e.$slots,"default")]),e.handleResize?(te(),We(u,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):Fe("",!0)],64)):Fe("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Pt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},wN,4)],4)],46,mN)}const D1=id(gN,[["render",xN]]),F1={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 wp=function(){};typeof window<"u"&&(wp=window.Element);const SN=tt({name:"VPopperWrapper",components:{Popper:uN,PopperContent:D1},mixins:[F1,I1("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,wp,Boolean],default:void 0},boundary:{type:[String,wp],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 _N(e,t,n,i,o,l){const u=ys("PopperContent"),f=ys("Popper");return te(),We(f,ci({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:je(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,show:w,hide:$,handleResize:_,onResize:C,classes:E,result:L})=>[Bt(e.$slots,"default",{shown:p,show:w,hide:$}),Ne(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":_,classes:E,result:L,onHide:$,onResize:C},{default:je(()=>[Bt(e.$slots,"popper",{shown:p,hide:$})]),_: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 Cg=id(SN,[["render",_N]]);({...Cg});({...Cg});const kN={...Cg,name:"VTooltip",vPopperTheme:"tooltip"},TN=tt({name:"VTooltipDirective",components:{Popper:P1(),PopperContent:D1},mixins:[F1],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ic(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ic(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,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),CN=["innerHTML"],EN=["textContent"];function AN(e,t,n,i,o,l){const u=ys("PopperContent"),f=ys("Popper");return te(),We(f,ci({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:je(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,hide:w,handleResize:$,onResize:_,classes:C,result:E})=>[Ne(u,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":$,classes:C,result:E,onHide:w,onResize:_},{default:je(()=>[e.html?(te(),ge("div",{key:0,innerHTML:e.finalContent},null,8,CN)):(te(),ge("div",{key:1,textContent:Me(e.finalContent)},null,8,EN))]),_: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 $N=id(TN,[["render",AN]]),z1="v-popper--has-tooltip";function NN(e,t){let n=e.placement;if(!n&&t)for(const i of R1)t[i]&&(n=i);return n||(n=ic(e.theme||"tooltip","placement")),n}function H1(e,t,n){let i;const o=typeof t;return o==="string"?i={content:t}:t&&o==="object"?i=t:i={content:!1},i.placement=NN(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Eh,sc,MN=0;function LN(){if(Eh)return;sc=Ke([]),Eh=x1({name:"VTooltipDirectiveApp",setup(){return{directives:sc}},render(){return this.directives.map(t=>Tc($N,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Eh.mount(e)}function B1(e,t,n){LN();const i=Ke(H1(e,t,n)),o=Ke(!1),l={id:MN++,options:i,shown:o};return sc.value.push(l),e.classList&&e.classList.add(z1),e.$_popper={options:i,item:l,show(){o.value=!0},hide(){o.value=!1}}}function Eg(e){if(e.$_popper){const t=sc.value.indexOf(e.$_popper.item);t!==-1&&sc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(z1)}function C0(e,{value:t,modifiers:n}){const i=H1(e,t,n);if(!i.content||ic(i.theme||"tooltip","disabled"))Eg(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=i):o=B1(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const ON={beforeMount:C0,updated:C0,beforeUnmount(e){Eg(e)}},RN=ON,wo=kN,j1={options:No};function W1(e,t){return ag()?(uE(e,t),!0):!1}const Ah=new WeakMap,PN=(...e)=>{var t;const n=e[0],i=(t=gi())===null||t===void 0?void 0:t.proxy,o=i??ag();if(o==null&&!Ax())throw new Error("injectLocal must be called in setup");return o&&Ah.has(o)&&n in Ah.get(o)?Ah.get(o)[n]:bn(...e)},IN=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const DN=Object.prototype.toString,FN=e=>DN.call(e)==="[object Object]",zN=()=>+Date.now(),gf=()=>{};function ks(...e){if(e.length!==1)return IE(...e);const t=e[0];return typeof t=="function"?Sl(bx(()=>({get:t,set:gf}))):Ke(t)}function Ag(e,t){function n(...i){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(l)})}return n}const $g=e=>e();function q1(e,t={}){let n,i,o=gf;const l=h=>{clearTimeout(h),o(),o=gf};let u;return h=>{const p=Zt(e),g=Zt(t.maxWait);return n&&l(n),p<=0||g!==void 0&&g<=0?(i&&(l(i),i=void 0),Promise.resolve(h())):new Promise((v,y)=>{o=t.rejectOnCancel?y:v,u=h,g&&!i&&(i=setTimeout(()=>{n&&l(n),i=void 0,v(u())},g)),n=setTimeout(()=>{i&&l(i),i=void 0,v(h())},p)})}}function U1(e=$g,t={}){const{initialState:n="active"}=t,i=ks(n==="active");function o(){i.value=!1}function l(){i.value=!0}return{isActive:Sl(i),pause:o,resume:l,eventFilter:(...f)=>{i.value&&e(...f)}}}function E0(e,t=!1,n="Timeout"){return new Promise((i,o)=>{setTimeout(t?()=>o(n):i,e)})}function A0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function $h(e){return Array.isArray(e)?e:[e]}function HN(e){return gi()}function yu(e,t=200,n={}){return Ag(q1(t,n),e)}function V1(e,t,n={}){const{eventFilter:i=$g,...o}=n;return yt(e,Ag(i,t),o)}function G1(e,t,n={}){const{eventFilter:i,initialState:o="active",...l}=n,{eventFilter:u,pause:f,resume:h,isActive:p}=U1(i,{initialState:o});return{stop:V1(e,t,{...l,eventFilter:u}),pause:f,resume:h,isActive:p}}function Ng(e,t=!0,n){HN()?Yi(e,n):t?e():At(e)}function xp(e,t=!1){function n(v,{flush:y="sync",deep:w=!1,timeout:$,throwOnTimeout:_}={}){let C=null;const E=[new Promise(L=>{C=yt(e,D=>{v(D)!==t&&(C?C():At(()=>C?.()),L(D))},{flush:y,deep:w,immediate:!0})})];return $!=null&&E.push(E0($,_).then(()=>Zt(e)).finally(()=>C?.())),Promise.race(E)}function i(v,y){if(!Lt(v))return n(D=>D===v,y);const{flush:w="sync",deep:$=!1,timeout:_,throwOnTimeout:C}=y??{};let E=null;const L=[new Promise(D=>{E=yt([e,v],([N,I])=>{t!==(N===I)&&(E?E():At(()=>E?.()),D(N))},{flush:w,deep:$,immediate:!0})})];return _!=null&&L.push(E0(_,C).then(()=>Zt(e)).finally(()=>(E?.(),Zt(e)))),Promise.race(L)}function o(v){return n(y=>!!y,v)}function l(v){return i(null,v)}function u(v){return i(void 0,v)}function f(v){return n(Number.isNaN,v)}function h(v,y){return n(w=>{const $=Array.from(w);return $.includes(v)||$.includes(Zt(v))},y)}function p(v){return g(1,v)}function g(v=1,y){let w=-1;return n(()=>(w+=1,w>=v),y)}return Array.isArray(Zt(e))?{toMatch:n,toContains:h,changed:p,changedTimes:g,get not(){return xp(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:o,toBeNull:l,toBeNaN:f,toBeUndefined:u,changed:p,changedTimes:g,get not(){return xp(e,!t)}}}function $0(e){return xp(e)}function BN(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=Lt(e),l=Vt(e);function u(f){if(arguments.length)return l.value=f,l.value;{const h=Zt(n);return l.value=l.value===h?Zt(i):h,l.value}}return o?u:[l,u]}function K1(e,t,n={}){const{debounce:i=0,maxWait:o=void 0,...l}=n;return V1(e,t,{...l,eventFilter:q1(i,{maxWait:o})})}const Y1=K1;function jN(e,t,n={}){const{eventFilter:i=$g,...o}=n,l=Ag(i,t);let u,f,h;if(o.flush==="sync"){let p=!1;f=()=>{},u=g=>{p=!0,g(),p=!1},h=yt(e,(...g)=>{p||l(...g)},o)}else{const p=[];let g=0,v=0;f=()=>{g=v},p.push(yt(e,()=>{v++},{...o,flush:"sync"})),u=y=>{const w=v;y(),g+=v-w},p.push(yt(e,(...y)=>{const w=g>0&&g===v;g=0,v=0,!w&&l(...y)},o)),h=()=>{p.forEach(y=>y())}}return{stop:h,ignoreUpdates:u,ignorePrevAsyncUpdates:f}}function WN(e,t,n){return yt(e,t,{...n,immediate:!0})}function qN(e,t,n){return yt(e,t,{...n,once:!0})}function UN(e,t,n){var i;let o;Lt(n)?o={evaluating:n}:o=n||{};const{lazy:l=!1,flush:u="sync",evaluating:f=void 0,shallow:h=!0,onError:p=(i=globalThis.reportError)!==null&&i!==void 0?i:gf}=o,g=Vt(!l),v=h?Vt(t):Ke(t);let y=0;return $x(async w=>{if(!g.value)return;y++;const $=y;let _=!1;f&&Promise.resolve().then(()=>{f.value=!0});try{const C=await e(E=>{w(()=>{f&&(f.value=!1),_||E()})});$===y&&(v.value=C)}catch(C){p(C)}finally{f&&$===y&&(f.value=!1),_=!0}},{flush:u}),l?Se(()=>(g.value=!0,v.value)):v}const VN=UN,fr=IN?window:void 0;function mf(e){var t;const n=Zt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ro(...e){const t=(i,o,l,u)=>(i.addEventListener(o,l,u),()=>i.removeEventListener(o,l,u)),n=Se(()=>{const i=$h(Zt(e[0])).filter(o=>o!=null);return i.every(o=>typeof o!="string")?i:void 0});return WN(()=>{var i,o;return[(i=(o=n.value)===null||o===void 0?void 0:o.map(l=>mf(l)))!==null&&i!==void 0?i:[fr].filter(l=>l!=null),$h(Zt(n.value?e[1]:e[0])),$h(W(n.value?e[2]:e[1])),Zt(n.value?e[3]:e[2])]},([i,o,l,u],f,h)=>{if(!i?.length||!o?.length||!l?.length)return;const p=FN(u)?{...u}:u,g=i.flatMap(v=>o.flatMap(y=>l.map(w=>t(v,y,w,p))));h(()=>{g.forEach(v=>v())})},{flush:"post"})}function GN(){const e=Vt(!1),t=gi();return t&&Yi(()=>{e.value=!0},t),e}function X1(e){const t=GN();return Se(()=>(t.value,!!e()))}function KN(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function J1(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=fr,eventName:l="keydown",passive:u=!1,dedupe:f=!1}=i,h=KN(t);return Ro(o,l,g=>{g.repeat&&Zt(f)||h(g)&&n(g)},u)}function YN(e,t={}){const{immediate:n=!0,fpsLimit:i=null,window:o=fr,once:l=!1}=t,u=Vt(!1),f=Se(()=>{const w=Zt(i);return w?1e3/w:null});let h=0,p=null;function g(w){if(!u.value||!o)return;h||(h=w);const $=w-h;if(f.value&&$<f.value){p=o.requestAnimationFrame(g);return}if(h=w,e({delta:$,timestamp:w}),l){u.value=!1,p=null;return}p=o.requestAnimationFrame(g)}function v(){!u.value&&o&&(u.value=!0,h=0,p=o.requestAnimationFrame(g))}function y(){u.value=!1,p!=null&&o&&(o.cancelAnimationFrame(p),p=null)}return n&&v(),W1(y),{isActive:Sl(u),pause:y,resume:v}}const XN=Symbol("vueuse-ssr-width");function JN(){const e=Ax()?PN(XN,null):null;return typeof e=="number"?e:void 0}function Z1(e,t={}){const{window:n=fr,ssrWidth:i=JN()}=t,o=X1(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=Vt(typeof i=="number"),u=Vt(),f=Vt(!1),h=p=>{f.value=p.matches};return $x(()=>{if(l.value){l.value=!o.value,f.value=Zt(e).split(",").some(p=>{const g=p.includes("not all"),v=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(v||y);return v&&w&&(w=i>=A0(v[1])),y&&w&&(w=i<=A0(y[1])),g?!w:w});return}o.value&&(u.value=n.matchMedia(Zt(e)),f.value=u.value.matches)}),Ro(u,"change",h,{passive:!0}),Se(()=>f.value)}function Q1(e){return JSON.parse(JSON.stringify(e))}const bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wu="__vueuse_ssr_handlers__",ZN=QN();function QN(){return wu in bu||(bu[wu]=bu[wu]||{}),bu[wu]}function eS(e,t){return ZN[e]||t}function eM(e){return Z1("(prefers-color-scheme: dark)",e)}function tM(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 nM={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()}},N0="vueuse-storage";function tS(e,t,n,i={}){var o;const{flush:l="pre",deep:u=!0,listenToStorageChanges:f=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=fr,eventFilter:y,onError:w=k=>{console.error(k)},initOnMounted:$}=i,_=(g?Vt:Ke)(typeof t=="function"?t():t),C=Se(()=>Zt(e));if(!n)try{n=eS("getDefaultStorage",()=>fr?.localStorage)()}catch(k){w(k)}if(!n)return _;const E=Zt(t),L=tM(E),D=(o=i.serializer)!==null&&o!==void 0?o:nM[L],{pause:N,resume:I}=G1(_,k=>U(k),{flush:l,deep:u,eventFilter:y});yt(C,()=>P(),{flush:l});let q=!1;const X=k=>{$&&!q||P(k)},ie=k=>{$&&!q||O(k)};v&&f&&(n instanceof Storage?Ro(v,"storage",X,{passive:!0}):Ro(v,N0,ie)),$?Ng(()=>{q=!0,P()}):P();function J(k,S){if(v){const R={key:C.value,oldValue:k,newValue:S,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",R):new CustomEvent(N0,{detail:R}))}}function U(k){try{const S=n.getItem(C.value);if(k==null)J(S,null),n.removeItem(C.value);else{const R=D.write(k);S!==R&&(n.setItem(C.value,R),J(S,R))}}catch(S){w(S)}}function K(k){const S=k?k.newValue:n.getItem(C.value);if(S==null)return h&&E!=null&&n.setItem(C.value,D.write(E)),E;if(!k&&p){const R=D.read(S);return typeof p=="function"?p(R,E):L==="object"&&!Array.isArray(R)?{...E,...R}:R}else return typeof S!="string"?S:D.read(S)}function P(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){_.value=E;return}if(!(k&&k.key!==C.value)){N();try{const S=D.write(_.value);(k===void 0||k?.newValue!==S)&&(_.value=K(k))}catch(S){w(S)}finally{k?At(I):I()}}}}function O(k){P(k.detail)}return _}const rM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iM(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:o=fr,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=eM({window:o}),w=Se(()=>y.value?"dark":"light"),$=h||(u==null?ks(i):tS(u,i,l,{window:o,listenToStorageChanges:f})),_=Se(()=>$.value==="auto"?w.value:$.value),C=eS("updateHTMLAttrs",(N,I,q)=>{const X=typeof N=="string"?o?.document.querySelector(N):mf(N);if(!X)return;const ie=new Set,J=new Set;let U=null;if(I==="class"){const P=q.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?ie.add(O):J.add(O)})}else U={key:I,value:q};if(ie.size===0&&J.size===0&&U===null)return;let K;g&&(K=o.document.createElement("style"),K.appendChild(document.createTextNode(rM)),o.document.head.appendChild(K));for(const P of ie)X.classList.add(P);for(const P of J)X.classList.remove(P);U&&X.setAttribute(U.key,U.value),g&&(o.getComputedStyle(K).opacity,document.head.removeChild(K))});function E(N){var I;C(t,n,(I=v[N])!==null&&I!==void 0?I:N)}function L(N){e.onChanged?e.onChanged(N,E):E(N)}yt(_,L,{flush:"post",immediate:!0}),Ng(()=>L(_.value));const D=Se({get(){return p?$.value:_.value},set(N){$.value=N}});return Object.assign(D,{store:$,system:w,state:_})}function oM(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=iM({...e,onChanged:(l,u)=>{var f;e.onChanged?(f=e.onChanged)===null||f===void 0||f.call(e,l==="dark",u,l):u(l)},modes:{dark:t,light:n}}),o=Se(()=>i.system.value);return Se({get(){return i.value==="dark"},set(l){const u=l?"dark":"light";o.value===u?i.value="auto":i.value=u}})}function nS(e){return e}function sM(e,t){return e.value=t}function lM(e){return e?typeof e=="function"?e:Q1:nS}function aM(e){return e?typeof e=="function"?e:Q1:nS}function cM(e,t={}){const{clone:n=!1,dump:i=lM(n),parse:o=aM(n),setSource:l=sM}=t;function u(){return Vf({snapshot:i(e.value),timestamp:zN()})}const f=Ke(u()),h=Ke([]),p=Ke([]),g=C=>{l(e,o(C.snapshot)),f.value=C},v=()=>{h.value.unshift(f.value),f.value=u(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},y=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const C=h.value.shift();C&&(p.value.unshift(f.value),g(C))},$=()=>{const C=p.value.shift();C&&(h.value.unshift(f.value),g(C))},_=()=>{g(f.value)};return{source:e,undoStack:h,redoStack:p,last:f,history:Se(()=>[f.value,...h.value]),canUndo:Se(()=>h.value.length>0),canRedo:Se(()=>p.value.length>0),clear:y,commit:v,reset:_,undo:w,redo:$}}function uM(e,t={}){const{deep:n=!1,flush:i="pre",eventFilter:o,shouldCommit:l=()=>!0}=t,{eventFilter:u,pause:f,resume:h,isActive:p}=U1(o);let g=e.value;const{ignoreUpdates:v,ignorePrevAsyncUpdates:y,stop:w}=jN(e,L,{deep:n,flush:i,eventFilter:u});function $(q,X){y(),v(()=>{q.value=X,g=X})}const _=cM(e,{...t,clone:t.clone||n,setSource:$}),{clear:C,commit:E}=_;function L(){y(),l(g,e.value)&&(g=e.value,E())}function D(q){h(),q&&L()}function N(q){let X=!1;const ie=()=>X=!0;v(()=>{q(ie)}),X||L()}function I(){w(),C()}return{..._,isTracking:p,pause:f,resume:D,commit:L,batch:N,dispose:I}}function fM(e,t,n={}){const{window:i=fr,...o}=n;let l;const u=X1(()=>i&&"ResizeObserver"in i),f=()=>{l&&(l.disconnect(),l=void 0)},h=yt(Se(()=>{const g=Zt(e);return Array.isArray(g)?g.map(v=>mf(v)):[mf(g)]}),g=>{if(f(),u.value&&i){l=new ResizeObserver(t);for(const v of g)v&&l.observe(v,o)}},{immediate:!0,flush:"post"}),p=()=>{f(),h()};return W1(p),{isSupported:u,stop:p}}function Cc(e,t,n={}){const{window:i=fr}=n;return tS(e,t,i?.localStorage,n)}function dM(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:l=!0,writeMode:u="replace",window:f=fr,stringify:h=N=>N.toString()}=t;if(!f)return dr(n);const p=dr({});function g(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",I=N.indexOf("?");return I>0?N.slice(I):""}else return(f.location.hash||"").replace(/^#/,"")}function v(N){const I=h(N);if(e==="history")return`${I?`?${I}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${I?`#${I}`:""}`;const q=f.location.hash||"#",X=q.indexOf("?");return X>0?`${f.location.search||""}${q.slice(0,X)}${I?`?${I}`:""}`:`${f.location.search||""}${q}${I?`?${I}`:""}`}function y(){return new URLSearchParams(g())}function w(N){const I=new Set(Object.keys(p));for(const q of N.keys()){const X=N.getAll(q);p[q]=X.length>1?X:N.get(q)||"",I.delete(q)}Array.from(I).forEach(q=>delete p[q])}const{pause:$,resume:_}=G1(p,()=>{const N=new URLSearchParams("");Object.keys(p).forEach(I=>{const q=p[I];Array.isArray(q)?q.forEach(X=>N.append(I,X)):i&&q==null||o&&!q?N.delete(I):N.set(I,q)}),C(N,!1)},{deep:!0});function C(N,I,q=!0){$(),I&&w(N),u==="replace"?f.history.replaceState(f.history.state,f.document.title,f.location.pathname+v(N)):q&&f.history.pushState(f.history.state,f.document.title,f.location.pathname+v(N)),At(()=>_())}function E(){l&&C(y(),!0,!1)}const L={passive:!0};Ro(f,"popstate",E,L),e!=="history"&&Ro(f,"hashchange",E,L);const D=y();return D.keys().next().value?w(D):Object.assign(p,n),p}function rS(e={}){const{window:t=fr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:u="inner"}=e,f=Vt(n),h=Vt(i),p=()=>{if(t)if(u==="outer")f.value=t.outerWidth,h.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:v,height:y,scale:w}=t.visualViewport;f.value=Math.round(v*w),h.value=Math.round(y*w)}else l?(f.value=t.innerWidth,h.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Ng(p);const g={passive:!0};return Ro("resize",p,g),t&&u==="visual"&&t.visualViewport&&Ro(t.visualViewport,"resize",p,g),o&&yt(Z1("(orientation: portrait)"),()=>p()),{width:f,height:h}}const M0={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const n=t,i=e,o=Bx(),l=Ke([]),u=Se(()=>l.value.reduce((z,Z)=>(z[~~Z.id]=Z)&&z,{})),f=Se(()=>l.value.length),h=Ke(null),p=Ke(!1),g=Ke({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ke({splitter:null,timeoutId:null}),y=Se(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",C,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E))},$=()=>{document.removeEventListener("mousemove",C,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",C,{passive:!1}),document.removeEventListener("touchend",E))},_=(z,Z)=>{const re=z.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ce}=re.getBoundingClientRect(),{clientX:F,clientY:j}="ontouchstart"in window&&z.touches?z.touches[0]:z;g.value.cursorOffset=i.horizontal?j-ce:F-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Z},C=z=>{g.value.mouseDown&&(z.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{X(I(z)),He("resize",{event:z},!0)}))},E=z=>{g.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:z},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,$()},100)},L=(z,Z)=>{"ontouchstart"in window&&(z.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,D(z,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||He("splitter-click",{event:z,index:Z},!0)},D=(z,Z)=>{if(He("splitter-dblclick",{event:z,index:Z},!0),i.maximizePanes){let re=0;l.value=l.value.map((le,ce)=>(le.size=ce===Z?le.max:le.min,ce!==Z&&(re+=le.min),le)),l.value[Z].size-=re,He("pane-maximize",{event:z,index:Z,pane:l.value[Z]}),He("resized",{event:z,index:Z},!0)}},N=(z,Z)=>{He("pane-click",{event:z,index:u.value[Z].index,pane:u.value[Z]})},I=z=>{const Z=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&z.touches?z.touches[0]:z;return{x:re-(i.horizontal?0:g.value.cursorOffset)-Z.left,y:le-(i.horizontal?g.value.cursorOffset:0)-Z.top}},q=z=>{z=z[i.horizontal?"y":"x"];const Z=h.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(z=Z-z),z*100/Z},X=z=>{const Z=g.value.activeSplitter;let re={prevPanesSize:J(Z),nextPanesSize:U(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(i.pushOtherPanes?0:re.prevPanesSize),ce=100-(i.pushOtherPanes?0:re.nextPanesSize),F=Math.max(Math.min(q(z),ce),le);let j=[Z,Z+1],ee=l.value[j[0]]||null,de=l.value[j[1]]||null;const he=ee.max<100&&F>=ee.max+re.prevPanesSize,me=de.max<100&&F<=100-(de.max+U(Z+1));if(he||me){he?(ee.size=ee.max,de.size=Math.max(100-ee.max-re.prevPanesSize-re.nextPanesSize,0)):(ee.size=Math.max(100-de.max-re.prevPanesSize-U(Z+1),0),de.size=de.max);return}if(i.pushOtherPanes){const Ce=ie(re,F);if(!Ce)return;({sums:re,panesToResize:j}=Ce),ee=l.value[j[0]]||null,de=l.value[j[1]]||null}ee!==null&&(ee.size=Math.min(Math.max(F-re.prevPanesSize-re.prevReachedMinPanes,ee.min),ee.max)),de!==null&&(de.size=Math.min(Math.max(100-F-re.nextPanesSize-re.nextReachedMinPanes,de.min),de.max))},ie=(z,Z)=>{const re=g.value.activeSplitter,le=[re,re+1];return Z<z.prevPanesSize+l.value[le[0]].min&&(le[0]=K(re).index,z.prevReachedMinPanes=0,le[0]<re&&l.value.forEach((ce,F)=>{F>le[0]&&F<=re&&(ce.size=ce.min,z.prevReachedMinPanes+=ce.min)}),z.prevPanesSize=J(le[0]),le[0]===void 0)?(z.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((ce,F)=>{F>0&&F<=re&&(ce.size=ce.min,z.prevReachedMinPanes+=ce.min)}),l.value[le[1]].size=100-z.prevReachedMinPanes-l.value[0].min-z.prevPanesSize-z.nextPanesSize,null):Z>100-z.nextPanesSize-l.value[le[1]].min&&(le[1]=P(re).index,z.nextReachedMinPanes=0,le[1]>re+1&&l.value.forEach((ce,F)=>{F>re&&F<le[1]&&(ce.size=ce.min,z.nextReachedMinPanes+=ce.min)}),z.nextPanesSize=U(le[1]-1),le[1]===void 0)?(z.nextReachedMinPanes=0,l.value.forEach((ce,F)=>{F<f.value-1&&F>=re+1&&(ce.size=ce.min,z.nextReachedMinPanes+=ce.min)}),l.value[le[0]].size=100-z.prevPanesSize-U(le[0]-1),null):{sums:z,panesToResize:le}},J=z=>l.value.reduce((Z,re,le)=>Z+(le<z?re.size:0),0),U=z=>l.value.reduce((Z,re,le)=>Z+(le>z+1?re.size:0),0),K=z=>[...l.value].reverse().find(Z=>Z.index<z&&Z.size>Z.min)||{},P=z=>l.value.find(Z=>Z.index>z+1&&Z.size>Z.min)||{},O=()=>{var z;const Z=Array.from(((z=h.value)==null?void 0:z.children)||[]);for(const re of Z){const le=re.classList.contains("splitpanes__pane"),ce=re.classList.contains("splitpanes__splitter");!le&&!ce&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},k=(z,Z,re=!1)=>{const le=z-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),re||(ce.onmousedown=F=>_(F,le),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=F=>_(F,le)),ce.onclick=F=>L(F,le+1)),ce.ondblclick=F=>D(F,le+1),Z.parentNode.insertBefore(ce,Z)},S=z=>{z.onmousedown=void 0,z.onclick=void 0,z.ondblclick=void 0,z.remove()},R=()=>{var z;const Z=Array.from(((z=h.value)==null?void 0:z.children)||[]);for(const le of Z)le.className.includes("splitpanes__splitter")&&S(le);let re=0;for(const le of Z)le.className.includes("splitpanes__pane")&&(!re&&i.firstSplitter?k(re,le,!0):re&&k(re,le),re++)},B=({uid:z,...Z})=>{const re=u.value[z];for(const[le,ce]of Object.entries(Z))re[le]=ce},ae=z=>{var Z;let re=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(z.el))),l.value.splice(re,0,{...z,index:re}),l.value.forEach((le,ce)=>le.index=ce),p.value&&At(()=>{R(),_e({addedPane:l.value[re]}),He("pane-add",{pane:l.value[re]})})},ve=z=>{const Z=l.value.findIndex(le=>le.id===z);l.value[Z].el=null;const re=l.value.splice(Z,1)[0];l.value.forEach((le,ce)=>le.index=ce),At(()=>{R(),He("pane-remove",{pane:re}),_e({removedPane:{...re}})})},_e=(z={})=>{!z.addedPane&&!z.removedPane?Ee():l.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ge(z):Be(),p.value&&He("resized")},Be=()=>{const z=100/f.value;let Z=0;const re=[],le=[];for(const ce of l.value)ce.size=Math.max(Math.min(z,ce.max),ce.min),Z-=ce.size,ce.size>=ce.max&&re.push(ce.id),ce.size<=ce.min&&le.push(ce.id);Z>.1&&Ue(Z,re,le)},Ee=()=>{let z=100;const Z=[],re=[];let le=0;for(const F of l.value)z-=F.size,F.givenSize!==null&&le++,F.size>=F.max&&Z.push(F.id),F.size<=F.min&&re.push(F.id);let ce=100;if(z>.1){for(const F of l.value)F.givenSize===null&&(F.size=Math.max(Math.min(z/(f.value-le),F.max),F.min)),ce-=F.size;ce>.1&&Ue(ce,Z,re)}},Ge=({addedPane:z,removedPane:Z}={})=>{let re=100/f.value,le=0;const ce=[],F=[];(z?.givenSize??null)!==null&&(re=(100-z.givenSize)/(f.value-1));for(const j of l.value)le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&F.push(j.id);if(!(Math.abs(le)<.1)){for(const j of l.value)z?.givenSize!==null&&z?.id===j.id||(j.size=Math.max(Math.min(re,j.max),j.min)),le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&F.push(j.id);le>.1&&Ue(le,ce,F)}},Ue=(z,Z,re)=>{let le;z>0?le=z/(f.value-Z.length):le=z/(f.value-re.length),l.value.forEach((ce,F)=>{if(z>0&&!Z.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;z-=ee,ce.size=j}else if(!re.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;z-=ee,ce.size=j}}),Math.abs(z)>.1&&At(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(z,Z=void 0,re=!1)=>{const le=Z?.index??g.value.activeSplitter??null;n(z,{...Z,...le!==null&&{index:le},...re&&le!==null&&{prevPane:l.value[le-(i.firstSplitter?1:0)],nextPane:l.value[le+(i.firstSplitter?0:1)]},panes:l.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};yt(()=>i.firstSplitter,()=>R()),Yi(()=>{O(),R(),_e(),He("ready"),p.value=!0}),Sc(()=>p.value=!1);const Re=()=>{var z;return Tc("div",{ref:h,class:y.value},(z=o.default)==null?void 0:z.call(o))};return _r("panes",l),_r("indexedPanes",u),_r("horizontal",Se(()=>i.horizontal)),_r("requestUpdate",B),_r("onPaneAdd",ae),_r("onPaneRemove",ve),_r("onPaneClick",N),(z,Z)=>(te(),We(sf(Re)))}},xu={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,i=bn("requestUpdate"),o=bn("onPaneAdd"),l=bn("horizontal"),u=bn("onPaneRemove"),f=bn("onPaneClick"),h=(t=gi())==null?void 0:t.uid,p=bn("indexedPanes"),g=Se(()=>p.value[h]),v=Ke(null),y=Se(()=>{const C=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(C,$.value),w.value)}),w=Se(()=>{const C=parseFloat(n.minSize);return isNaN(C)?0:C}),$=Se(()=>{const C=parseFloat(n.maxSize);return isNaN(C)?100:C}),_=Se(()=>{var C;return`${l.value?"height":"width"}: ${(C=g.value)==null?void 0:C.size}%`});return yt(()=>y.value,C=>i({uid:h,size:C})),yt(()=>w.value,C=>i({uid:h,min:C})),yt(()=>$.value,C=>i({uid:h,max:C})),Yi(()=>{o({id:h,el:v.value,min:w.value,max:$.value,givenSize:n.size===void 0?null:y.value,size:y.value})}),Sc(()=>u(h)),(C,E)=>(te(),ge("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:E[0]||(E[0]=L=>W(f)(L,C._.uid)),style:Pt(_.value)},[Bt(C.$slots,"default")],4))}},lr=Ke([414,896]);var L0={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Mg(e){return String(e)}Mg.open="";Mg.close="";function hM(){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=t.FORCE_TTY!=="false",i=e?.argv||[];return!("NO_COLOR"in t||i.includes("--no-color"))&&("FORCE_COLOR"in t||i.includes("--color")||e?.platform==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}function pM(){let e=hM(),t=(l,u,f,h)=>{let p="",g=0;do p+=l.substring(g,h)+f,g=h+u.length,h=l.indexOf(u,g);while(~h);return p+l.substring(g)},n=(l,u,f=l)=>{let h=p=>{let g=String(p),v=g.indexOf(u,l.length);return~v?l+t(g,u,f,v)+u:l+g+u};return h.open=l,h.close=u,h},i={isColorSupported:e},o=l=>`\x1B[${l}m`;for(let l in L0){let u=L0[l];i[l]=e?n(o(u[0]),o(u[1]),u[2]):Mg}return i}var gM=pM();function iS(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(e)}function mM(e,t){const n=Object.keys(e),i=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&i.push(o);return i}function sd(e,t,n,i,o,l,u=": "){let f="",h=0,p=e.next();if(!p.done){f+=t.spacingOuter;const g=n+t.indent;for(;!p.done;){if(f+=g,h++===t.maxWidth){f+="…";break}const v=l(p.value[0],t,g,i,o),y=l(p.value[1],t,g,i,o);f+=v+u+y,p=e.next(),p.done?t.min||(f+=","):f+=`,${t.spacingInner}`}f+=t.spacingOuter+n}return f}function Lg(e,t,n,i,o,l){let u="",f=0,h=e.next();if(!h.done){u+=t.spacingOuter;const p=n+t.indent;for(;!h.done;){if(u+=p,f++===t.maxWidth){u+="…";break}u+=l(h.value,t,p,i,o),h=e.next(),h.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+n}return u}function vf(e,t,n,i,o,l){let u="";e=e instanceof ArrayBuffer?new DataView(e):e;const f=p=>p instanceof DataView,h=f(e)?e.byteLength:e.length;if(h>0){u+=t.spacingOuter;const p=n+t.indent;for(let g=0;g<h;g++){if(u+=p,g===t.maxWidth){u+="…";break}(f(e)||g in e)&&(u+=l(f(e)?e.getInt8(g):e[g],t,p,i,o)),g<h-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+n}return u}function Og(e,t,n,i,o,l){let u="";const f=mM(e,t.compareKeys);if(f.length>0){u+=t.spacingOuter;const h=n+t.indent;for(let p=0;p<f.length;p++){const g=f[p],v=l(g,t,h,i,o),y=l(e[g],t,h,i,o);u+=`${h+v}: ${y}`,p<f.length-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+n}return u}const vM=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Su=" ",yM=(e,t,n,i,o,l)=>{const u=e.toString();if(u==="ArrayContaining"||u==="ArrayNotContaining")return++i>t.maxDepth?`[${u}]`:`${u+Su}[${vf(e.sample,t,n,i,o,l)}]`;if(u==="ObjectContaining"||u==="ObjectNotContaining")return++i>t.maxDepth?`[${u}]`:`${u+Su}{${Og(e.sample,t,n,i,o,l)}}`;if(u==="StringMatching"||u==="StringNotMatching"||u==="StringContaining"||u==="StringNotContaining")return u+Su+l(e.sample,t,n,i,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},bM=e=>e&&e.$$typeof===vM,wM={serialize:yM,test:bM},xM=" ",oS=new Set(["DOMStringMap","NamedNodeMap"]),SM=/^(?:HTML\w*Collection|NodeList)$/;function _M(e){return oS.has(e)||SM.test(e)}const kM=e=>e&&e.constructor&&!!e.constructor.name&&_M(e.constructor.name);function TM(e){return e.constructor.name==="NamedNodeMap"}const CM=(e,t,n,i,o,l)=>{const u=e.constructor.name;return++i>t.maxDepth?`[${u}]`:(t.min?"":u+xM)+(oS.has(u)?`{${Og(TM(e)?[...e].reduce((f,h)=>(f[h.name]=h.value,f),{}):{...e},t,n,i,o,l)}}`:`[${vf([...e],t,n,i,o,l)}]`)},EM={serialize:CM,test:kM};function sS(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Rg(e,t,n,i,o,l,u){const f=i+n.indent,h=n.colors;return e.map(p=>{const g=t[p];if(typeof g=="string"&&g[0]==="_"&&g.startsWith("__vitest_")&&g.match(/__vitest_\d+__/))return"";let v=u(g,n,f,o,l);return typeof g!="string"&&(v.includes(`
18
- `)&&(v=n.spacingOuter+f+v+n.spacingOuter+i),v=`{${v}}`),`${n.spacingInner+i+h.prop.open+p+h.prop.close}=${h.value.open}${v}${h.value.close}`}).join("")}function ld(e,t,n,i,o,l){return e.map(u=>t.spacingOuter+n+(typeof u=="string"?lS(u,t):l(u,t,n,i,o))).join("")}function AM(e,t,n,i,o,l){return t.printShadowRoot===!1?"":[`${t.spacingOuter+n}#shadow-root`,ld(e,t,n+t.indent,i,o,l)].join("")}function lS(e,t){const n=t.colors.content;return n.open+sS(e)+n.close}function $M(e,t){const n=t.colors.comment;return`${n.open}<!--${sS(e)}-->${n.close}`}function Pg(e,t,n,i,o){const l=i.colors.tag;return`${l.open}<${e}${t&&l.close+t+i.spacingOuter+o+l.open}${n?`>${l.close}${n}${i.spacingOuter}${o}${l.open}</${e}`:`${t&&!i.min?"":" "}/`}>${l.close}`}function Ig(e,t){const n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}const NM=1,Dg=3,aS=8,cS=11,MM=/^(?:(?:HTML|SVG)\w*)?Element$/;function LM(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function OM(e){const t=e.constructor.name,{nodeType:n,tagName:i}=e,o=typeof i=="string"&&i.includes("-")||LM(e);return n===NM&&(MM.test(t)||o)||n===Dg&&t==="Text"||n===aS&&t==="Comment"||n===cS&&t==="DocumentFragment"}const uS=e=>e?.constructor?.name&&OM(e);function RM(e){return e.nodeType===Dg}function PM(e){return e.nodeType===aS}function _u(e){return e.nodeType===cS}function O0(e,t){let n=e.filter(i=>i.nodeType===Dg?(i.data||"").trim().length>0:!0);return t&&(n=n.filter(t)),n}function fS(e,t,n,i,o,l,u){if(RM(e))return lS(e.data,t);if(PM(e))return $M(e.data,t);const f=_u(e)?"DocumentFragment":e.tagName.toLowerCase();if(++i>t.maxDepth)return Ig(f,t);const h=Array.prototype.slice.call(e.childNodes||e.children),p=_u(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),g=u?O0(h,u):h,v=u?O0(p,u):p;return Pg(f,Rg(_u(e)?[]:Array.from(e.attributes,y=>y.name).sort(),_u(e)?{}:[...e.attributes].reduce((y,w)=>(y[w.name]=w.value,y),{}),t,n+t.indent,i,o,l),(v.length>0?AM(v,t,n+t.indent,i,o,l):"")+ld(g,t,n+t.indent,i,o,l),t,n)}const IM=(e,t,n,i,o,l)=>fS(e,t,n,i,o,l);function DM(e){return{test:uS,serialize:(t,n,i,o,l,u)=>fS(t,n,i,o,l,u,e)}}const FM={serialize:IM,test:uS},zM="@@__IMMUTABLE_ITERABLE__@@",HM="@@__IMMUTABLE_LIST__@@",BM="@@__IMMUTABLE_KEYED__@@",jM="@@__IMMUTABLE_MAP__@@",R0="@@__IMMUTABLE_ORDERED__@@",WM="@@__IMMUTABLE_RECORD__@@",qM="@@__IMMUTABLE_SEQ__@@",UM="@@__IMMUTABLE_SET__@@",VM="@@__IMMUTABLE_STACK__@@",Al=e=>`Immutable.${e}`,ad=e=>`[${e}]`,lc=" ",P0="…";function GM(e,t,n,i,o,l,u){return++i>t.maxDepth?ad(Al(u)):`${Al(u)+lc}{${sd(e.entries(),t,n,i,o,l)}}`}function KM(e){let t=0;return{next(){if(t<e._keys.length){const n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function YM(e,t,n,i,o,l){const u=Al(e._name||"Record");return++i>t.maxDepth?ad(u):`${u+lc}{${sd(KM(e),t,n,i,o,l)}}`}function XM(e,t,n,i,o,l){const u=Al("Seq");return++i>t.maxDepth?ad(u):e[BM]?`${u+lc}{${e._iter||e._object?sd(e.entries(),t,n,i,o,l):P0}}`:`${u+lc}[${e._iter||e._array||e._collection||e._iterable?Lg(e.values(),t,n,i,o,l):P0}]`}function Nh(e,t,n,i,o,l,u){return++i>t.maxDepth?ad(Al(u)):`${Al(u)+lc}[${Lg(e.values(),t,n,i,o,l)}]`}const JM=(e,t,n,i,o,l)=>e[jM]?GM(e,t,n,i,o,l,e[R0]?"OrderedMap":"Map"):e[HM]?Nh(e,t,n,i,o,l,"List"):e[UM]?Nh(e,t,n,i,o,l,e[R0]?"OrderedSet":"Set"):e[VM]?Nh(e,t,n,i,o,l,"Stack"):e[qM]?XM(e,t,n,i,o,l):YM(e,t,n,i,o,l),ZM=e=>e&&(e[zM]===!0||e[WM]===!0),QM={serialize:JM,test:ZM};function dS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh={exports:{}},Et={};/**
17
+ **/let pp;const Fy=typeof window<"u"&&window.trustedTypes;if(Fy)try{pp=Fy.createPolicy("vue",{createHTML:e=>e})}catch{}const g1=pp?e=>pp.createHTML(e):e=>e,QA="http://www.w3.org/2000/svg",e$="http://www.w3.org/1998/Math/MathML",Mi=typeof document<"u"?document:null,zy=Mi&&Mi.createElement("template"),t$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?Mi.createElementNS(QA,e):t==="mathml"?Mi.createElementNS(e$,e):n?Mi.createElement(e,{is:n}):Mi.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Mi.createTextNode(e),createComment:e=>Mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,l){const u=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{zy.innerHTML=g1(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const f=zy.content;if(i==="svg"||i==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}t.insertBefore(f,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},uo="transition",xa="animation",Qa=Symbol("_vtc"),m1={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},n$=Qt({},Lx,m1),r$=e=>(e.displayName="Transition",e.props=n$,e),i$=r$((e,{slots:t})=>Tc(XE,o$(e),t)),ts=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hy=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function o$(e){const t={};for(const P in e)P in m1||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:g=f,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,$=s$(o),_=$&&$[0],C=$&&$[1],{onBeforeEnter:E,onEnter:L,onEnterCancelled:D,onLeave:N,onLeaveCancelled:I,onBeforeAppear:q=E,onAppear:X=L,onAppearCancelled:ie=D}=t,J=(P,O,k,S)=>{P._enterCancelled=S,ns(P,O?g:f),ns(P,O?p:u),k&&k()},U=(P,O)=>{P._isLeaving=!1,ns(P,v),ns(P,w),ns(P,y),O&&O()},K=P=>(O,k)=>{const S=P?X:L,R=()=>J(O,P,k);ts(S,[O,R]),By(()=>{ns(O,P?h:l),Ci(O,P?g:f),Hy(S)||jy(O,i,_,R)})};return Qt(t,{onBeforeEnter(P){ts(E,[P]),Ci(P,l),Ci(P,u)},onBeforeAppear(P){ts(q,[P]),Ci(P,h),Ci(P,p)},onEnter:K(!1),onAppear:K(!0),onLeave(P,O){P._isLeaving=!0;const k=()=>U(P,O);Ci(P,v),P._enterCancelled?(Ci(P,y),Uy(P)):(Uy(P),Ci(P,y)),By(()=>{P._isLeaving&&(ns(P,v),Ci(P,w),Hy(N)||jy(P,i,C,k))}),ts(N,[P,k])},onEnterCancelled(P){J(P,!1,void 0,!0),ts(D,[P])},onAppearCancelled(P){J(P,!0,void 0,!0),ts(ie,[P])},onLeaveCancelled(P){U(P),ts(I,[P])}})}function s$(e){if(e==null)return null;if(wt(e))return[Sh(e.enter),Sh(e.leave)];{const t=Sh(e);return[t,t]}}function Sh(e){return Qw(e)}function Ci(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Qa]||(e[Qa]=new Set)).add(t)}function ns(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[Qa];n&&(n.delete(t),n.size||(e[Qa]=void 0))}function By(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let l$=0;function jy(e,t,n,i){const o=e._endId=++l$,l=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(l,n);const{type:u,timeout:f,propCount:h}=a$(e,t);if(!u)return i();const p=u+"end";let g=0;const v=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},f+1),e.addEventListener(p,y)}function a$(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${uo}Delay`),l=i(`${uo}Duration`),u=Wy(o,l),f=i(`${xa}Delay`),h=i(`${xa}Duration`),p=Wy(f,h);let g=null,v=0,y=0;t===uo?u>0&&(g=uo,v=u,y=l.length):t===xa?p>0&&(g=xa,v=p,y=h.length):(v=Math.max(u,p),g=v>0?u>p?uo:xa:null,y=g?g===uo?l.length:h.length:0);const w=g===uo&&/\b(?:transform|all)(?:,|$)/.test(i(`${uo}Property`).toString());return{type:g,timeout:v,propCount:y,hasTransform:w}}function Wy(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>qy(n)+qy(e[i])))}function qy(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Uy(e){return(e?e.ownerDocument:document).body.offsetHeight}function c$(e,t,n){const i=e[Qa];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const uf=Symbol("_vod"),v1=Symbol("_vsh"),Co={name:"show",beforeMount(e,{value:t},{transition:n}){e[uf]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Sa(e,!0),i.enter(e)):i.leave(e,()=>{Sa(e,!1)}):Sa(e,t))},beforeUnmount(e,{value:t}){Sa(e,t)}};function Sa(e,t){e.style.display=t?e[uf]:"none",e[v1]=!t}const u$=Symbol(""),f$=/(?:^|;)\s*display\s*:/;function d$(e,t,n){const i=e.style,o=jt(n);let l=!1;if(n&&!o){if(t)if(jt(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();n[f]==null&&Du(i,f,"")}else for(const u in t)n[u]==null&&Du(i,u,"");for(const u in n)u==="display"&&(l=!0),Du(i,u,n[u])}else if(o){if(t!==n){const u=i[u$];u&&(n+=";"+u),i.cssText=n,l=f$.test(n)}}else t&&e.removeAttribute("style");uf in e&&(e[uf]=l?i.display:"",e[v1]&&(i.display="none"))}const Vy=/\s*!important$/;function Du(e,t,n){if(Ye(n))n.forEach(i=>Du(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=h$(e,t);Vy.test(n)?e.setProperty(Gi(i),n.replace(Vy,""),"important"):e[i]=n}}const Gy=["Webkit","Moz","ms"],_h={};function h$(e,t){const n=_h[t];if(n)return n;let i=mr(t);if(i!=="filter"&&i in e)return _h[t]=i;i=Hf(i);for(let o=0;o<Gy.length;o++){const l=Gy[o]+i;if(l in e)return _h[t]=l}return t}const Ky="http://www.w3.org/1999/xlink";function Yy(e,t,n,i,o,l=lE(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ky,t.slice(6,t.length)):e.setAttributeNS(Ky,t,n):n==null||l&&!ex(n)?e.removeAttribute(t):e.setAttribute(t,l?"":qr(n)?String(n):n)}function Xy(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?g1(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const f=l==="OPTION"?e.getAttribute("value")||"":e.value,h=n==null?e.type==="checkbox"?"on":"":String(n);(f!==h||!("_value"in e))&&(e.value=h),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ex(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(o||t)}function To(e,t,n,i){e.addEventListener(t,n,i)}function p$(e,t,n,i){e.removeEventListener(t,n,i)}const Jy=Symbol("_vei");function g$(e,t,n,i,o=null){const l=e[Jy]||(e[Jy]={}),u=l[t];if(i&&u)u.value=i;else{const[f,h]=m$(t);if(i){const p=l[t]=b$(i,o);To(e,f,p,h)}else u&&(p$(e,f,u,h),l[t]=void 0)}}const Zy=/(?:Once|Passive|Capture)$/;function m$(e){let t;if(Zy.test(e)){t={};let i;for(;i=e.match(Zy);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gi(e.slice(2)),t]}let kh=0;const v$=Promise.resolve(),y$=()=>kh||(v$.then(()=>kh=0),kh=Date.now());function b$(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Vr(w$(i,n.value),t,5,[i])};return n.value=e,n.attached=y$(),n}function w$(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const Qy=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,x$=(e,t,n,i,o,l)=>{const u=o==="svg";t==="class"?c$(e,i,u):t==="style"?d$(e,n,i):Df(t)?og(t)||g$(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):S$(e,t,i,u))?(Xy(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yy(e,t,i,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!jt(i))?Xy(e,mr(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Yy(e,t,i,u))};function S$(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qy(t)&&rt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Qy(t)&&jt(n)?!1:t in e}const El=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>Pu(t,n):t};function _$(e){e.target.composing=!0}function e0(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign");function t0(e,t,n){return t&&(e=e.trim()),n&&(e=Bf(e)),e}const y1={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[Hi]=El(o);const l=i||o.props&&o.props.type==="number";To(e,t?"change":"input",u=>{u.target.composing||e[Hi](t0(e.value,n,l))}),(n||l)&&To(e,"change",()=>{e.value=t0(e.value,n,l)}),t||(To(e,"compositionstart",_$),To(e,"compositionend",e0),To(e,"change",e0))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:l}},u){if(e[Hi]=El(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?Bf(e.value):e.value,h=t??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===h)||(e.value=h))}},b1={deep:!0,created(e,t,n){e[Hi]=El(n),To(e,"change",()=>{const i=e._modelValue,o=ec(e),l=e.checked,u=e[Hi];if(Ye(i)){const f=lg(i,o),h=f!==-1;if(l&&!h)u(i.concat(o));else if(!l&&h){const p=[...i];p.splice(f,1),u(p)}}else if(Fl(i)){const f=new Set(i);l?f.add(o):f.delete(o),u(f)}else u(w1(e,l))})},mounted:n0,beforeUpdate(e,t,n){e[Hi]=El(n),n0(e,t,n)}};function n0(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(Ye(t))o=lg(t,i.props.value)>-1;else if(Fl(t))o=t.has(i.props.value);else{if(t===n)return;o=zl(t,w1(e,!0))}e.checked!==o&&(e.checked=o)}const r0={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=Fl(t);To(e,"change",()=>{const l=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Bf(ec(u)):ec(u));e[Hi](e.multiple?o?new Set(l):l:l[0]),e._assigning=!0,At(()=>{e._assigning=!1})}),e[Hi]=El(i)},mounted(e,{value:t}){i0(e,t)},beforeUpdate(e,t,n){e[Hi]=El(n)},updated(e,{value:t}){e._assigning||i0(e,t)}};function i0(e,t){const n=e.multiple,i=Ye(t);if(!(n&&!i&&!Fl(t))){for(let o=0,l=e.options.length;o<l;o++){const u=e.options[o],f=ec(u);if(n)if(i){const h=typeof f;h==="string"||h==="number"?u.selected=t.some(p=>String(p)===String(f)):u.selected=lg(t,f)>-1}else u.selected=t.has(f);else if(zl(ec(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ec(e){return"_value"in e?e._value:e.value}function w1(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const k$=["ctrl","shift","alt","meta"],T$={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)=>k$.some(n=>e[`${n}Key`]&&!t.includes(n))},Fu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((o,...l)=>{for(let u=0;u<t.length;u++){const f=T$[t[u]];if(f&&f(o,t))return}return e(o,...l)}))},C$={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gp=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(o=>{if(!("key"in o))return;const l=Gi(o.key);if(t.some(u=>u===l||C$[u]===l))return e(o)}))},E$=Qt({patchProp:x$},t$);let o0;function A$(){return o0||(o0=MA(E$))}const x1=((...e)=>{const t=A$().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=N$(i);if(!o)return;const l=t._component;!rt(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const u=n(o,!1,$$(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function $$(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function N$(e){return jt(e)?document.querySelector(e):e}const Xi=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},M$={};function L$(e,t){const n=ys("RouterView");return te(),We(n)}const O$=Xi(M$,[["render",L$]]),R$=["top","right","bottom","left"],s0=["start","end"],l0=R$.reduce((e,t)=>e.concat(t,t+"-"+s0[0],t+"-"+s0[1]),[]),tc=Math.min,ss=Math.max,P$={left:"right",right:"left",bottom:"top",top:"bottom"},I$={start:"end",end:"start"};function mp(e,t,n){return ss(e,tc(t,n))}function _s(e,t){return typeof e=="function"?e(t):e}function hi(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function S1(e){return e==="x"?"y":"x"}function _g(e){return e==="y"?"height":"width"}const D$=new Set(["top","bottom"]);function Di(e){return D$.has(hi(e))?"y":"x"}function kg(e){return S1(Di(e))}function _1(e,t,n){n===void 0&&(n=!1);const i=Wr(e),o=kg(e),l=_g(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=df(u)),[u,df(u)]}function F$(e){const t=df(e);return[ff(e),t,ff(t)]}function ff(e){return e.replace(/start|end/g,t=>I$[t])}const a0=["left","right"],c0=["right","left"],z$=["top","bottom"],H$=["bottom","top"];function B$(e,t,n){switch(e){case"top":case"bottom":return n?t?c0:a0:t?a0:c0;case"left":case"right":return t?z$:H$;default:return[]}}function j$(e,t,n,i){const o=Wr(e);let l=B$(hi(e),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),t&&(l=l.concat(l.map(ff)))),l}function df(e){return e.replace(/left|right|bottom|top/g,t=>P$[t])}function W$(e){return{top:0,right:0,bottom:0,left:0,...e}}function k1(e){return typeof e!="number"?W$(e):{top:e,right:e,bottom:e,left:e}}function za(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function u0(e,t,n){let{reference:i,floating:o}=e;const l=Di(t),u=kg(t),f=_g(u),h=hi(t),p=l==="y",g=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,y=i[f]/2-o[f]/2;let w;switch(h){case"top":w={x:g,y:i.y-o.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-o.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Wr(t)){case"start":w[u]-=y*(n&&p?-1:1);break;case"end":w[u]+=y*(n&&p?-1:1);break}return w}const q$=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:v}=u0(p,i,h),y=i,w={},$=0;for(let _=0;_<f.length;_++){const{name:C,fn:E}=f[_],{x:L,y:D,data:N,reset:I}=await E({x:g,y:v,initialPlacement:i,placement:y,strategy:o,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=L??g,v=D??v,w={...w,[C]:{...w[C],...N}},I&&$<=50&&($++,typeof I=="object"&&(I.placement&&(y=I.placement),I.rects&&(p=I.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:g,y:v}=u0(p,y,h)),_=-1)}return{x:g,y:v,placement:y,strategy:o,middlewareData:w}};async function td(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:y=!1,padding:w=0}=_s(t,e),$=k1(w),C=f[y?v==="floating"?"reference":"floating":v],E=za(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),L=v==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),N=await(l.isElement==null?void 0:l.isElement(D))?await(l.getScale==null?void 0:l.getScale(D))||{x:1,y:1}:{x:1,y:1},I=za(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:D,strategy:h}):L);return{top:(E.top-I.top+$.top)/N.y,bottom:(I.bottom-E.bottom+$.bottom)/N.y,left:(E.left-I.left+$.left)/N.x,right:(I.right-E.right+$.right)/N.x}}const U$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:g=0}=_s(e,t)||{};if(p==null)return{};const v=k1(g),y={x:n,y:i},w=kg(o),$=_g(w),_=await u.getDimensions(p),C=w==="y",E=C?"top":"left",L=C?"bottom":"right",D=C?"clientHeight":"clientWidth",N=l.reference[$]+l.reference[w]-y[w]-l.floating[$],I=y[w]-l.reference[w],q=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let X=q?q[D]:0;(!X||!await(u.isElement==null?void 0:u.isElement(q)))&&(X=f.floating[D]||l.floating[$]);const ie=N/2-I/2,J=X/2-_[$]/2-1,U=tc(v[E],J),K=tc(v[L],J),P=U,O=X-_[$]-K,k=X/2-_[$]/2+ie,S=mp(P,k,O),R=!h.arrow&&Wr(o)!=null&&k!==S&&l.reference[$]/2-(k<P?U:K)-_[$]/2<0,B=R?k<P?k-P:k-O:0;return{[w]:y[w]+B,data:{[w]:S,centerOffset:k-S-B,...R&&{alignmentOffset:B}},reset:R}}});function V$(e,t,n){return(e?[...n.filter(o=>Wr(o)===e),...n.filter(o=>Wr(o)!==e)]:n.filter(o=>hi(o)===o)).filter(o=>e?Wr(o)===e||(t?ff(o)!==o:!1):!0)}const G$=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o;const{rects:l,middlewareData:u,placement:f,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:y=l0,autoAlignment:w=!0,...$}=_s(e,t),_=v!==void 0||y===l0?V$(v||null,w,y):y,C=await td(t,$),E=((n=u.autoPlacement)==null?void 0:n.index)||0,L=_[E];if(L==null)return{};const D=_1(L,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(f!==L)return{reset:{placement:_[0]}};const N=[C[hi(L)],C[D[0]],C[D[1]]],I=[...((i=u.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:N}],q=_[E+1];if(q)return{data:{index:E+1,overflows:I},reset:{placement:q}};const X=I.map(U=>{const K=Wr(U.placement);return[U.placement,K&&g?U.overflows.slice(0,2).reduce((P,O)=>P+O,0):U.overflows[0],U.overflows]}).sort((U,K)=>U[1]-K[1]),J=((o=X.filter(U=>U[2].slice(0,Wr(U[0])?2:3).every(K=>K<=0))[0])==null?void 0:o[0])||X[0][0];return J!==f?{data:{index:E+1,overflows:I},reset:{placement:J}}:{}}}},K$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:_=!0,...C}=_s(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=hi(o),L=Di(f),D=hi(f)===f,N=await(h.isRTL==null?void 0:h.isRTL(p.floating)),I=y||(D||!_?[df(f)]:F$(f)),q=$!=="none";!y&&q&&I.push(...j$(f,_,$,N));const X=[f,...I],ie=await td(t,C),J=[];let U=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&J.push(ie[E]),v){const k=_1(o,u,N);J.push(ie[k[0]],ie[k[1]])}if(U=[...U,{placement:o,overflows:J}],!J.every(k=>k<=0)){var K,P;const k=(((K=l.flip)==null?void 0:K.index)||0)+1,S=X[k];if(S&&(!(v==="alignment"?L!==Di(S):!1)||U.every(ae=>Di(ae.placement)===L?ae.overflows[0]>0:!0)))return{data:{index:k,overflows:U},reset:{placement:S}};let R=(P=U.filter(B=>B.overflows[0]<=0).sort((B,ae)=>B.overflows[1]-ae.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(w){case"bestFit":{var O;const B=(O=U.filter(ae=>{if(q){const ve=Di(ae.placement);return ve===L||ve==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ve=>ve>0).reduce((ve,_e)=>ve+_e,0)]).sort((ae,ve)=>ae[1]-ve[1])[0])==null?void 0:O[0];B&&(R=B);break}case"initialPlacement":R=f;break}if(o!==R)return{reset:{placement:R}}}return{}}}},Y$=new Set(["left","top"]);async function X$(e,t){const{placement:n,platform:i,elements:o}=e,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=hi(n),f=Wr(n),h=Di(n)==="y",p=Y$.has(u)?-1:1,g=l&&h?-1:1,v=_s(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:$}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof $=="number"&&(w=f==="end"?$*-1:$),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const J$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:l,placement:u,middlewareData:f}=t,h=await X$(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:u}}}}},Z$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:C=>{let{x:E,y:L}=C;return{x:E,y:L}}},...h}=_s(e,t),p={x:n,y:i},g=await td(t,h),v=Di(hi(o)),y=S1(v);let w=p[y],$=p[v];if(l){const C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",L=w+g[C],D=w-g[E];w=mp(L,w,D)}if(u){const C=v==="y"?"top":"left",E=v==="y"?"bottom":"right",L=$+g[C],D=$-g[E];$=mp(L,$,D)}const _=f.fn({...t,[y]:w,[v]:$});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[y]:l,[v]:u}}}}}},Q$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...p}=_s(e,t),g=await td(t,p),v=hi(o),y=Wr(o),w=Di(o)==="y",{width:$,height:_}=l.floating;let C,E;v==="top"||v==="bottom"?(C=v,E=y===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(E=v,C=y==="end"?"top":"bottom");const L=_-g.top-g.bottom,D=$-g.left-g.right,N=tc(_-g[C],L),I=tc($-g[E],D),q=!t.middlewareData.shift;let X=N,ie=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ie=D),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(X=L),q&&!y){const U=ss(g.left,0),K=ss(g.right,0),P=ss(g.top,0),O=ss(g.bottom,0);w?ie=$-2*(U!==0||K!==0?U+K:ss(g.left,g.right)):X=_-2*(P!==0||O!==0?P+O:ss(g.top,g.bottom))}await h({...t,availableWidth:ie,availableHeight:X});const J=await u.getDimensions(f.floating);return $!==J.width||_!==J.height?{reset:{rects:!0}}:{}}}};function kr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){return kr(e).getComputedStyle(e)}const f0=Math.min,Ha=Math.max,hf=Math.round;function T1(e){const t=ui(e);let n=parseFloat(t.width),i=parseFloat(t.height);const o=e.offsetWidth,l=e.offsetHeight,u=hf(n)!==o||hf(i)!==l;return u&&(n=o,i=l),{width:n,height:i,fallback:u}}function Oo(e){return E1(e)?(e.nodeName||"").toLowerCase():""}let mu;function C1(){if(mu)return mu;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(mu=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),mu):navigator.userAgent}function fi(e){return e instanceof kr(e).HTMLElement}function Ao(e){return e instanceof kr(e).Element}function E1(e){return e instanceof kr(e).Node}function d0(e){return typeof ShadowRoot>"u"?!1:e instanceof kr(e).ShadowRoot||e instanceof ShadowRoot}function nd(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ui(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function eN(e){return["table","td","th"].includes(Oo(e))}function vp(e){const t=/firefox/i.test(C1()),n=ui(e),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const l=n.contain;return l!=null&&l.includes(o)}))}function A1(){return!/^((?!chrome|android).)*safari/i.test(C1())}function Tg(e){return["html","body","#document"].includes(Oo(e))}function $1(e){return Ao(e)?e:e.contextElement}const N1={x:1,y:1};function hl(e){const t=$1(e);if(!fi(t))return N1;const n=t.getBoundingClientRect(),{width:i,height:o,fallback:l}=T1(t);let u=(l?hf(n.width):n.width)/i,f=(l?hf(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}function nc(e,t,n,i){var o,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),f=$1(e);let h=N1;t&&(i?Ao(i)&&(h=hl(i)):h=hl(e));const p=f?kr(f):window,g=!A1()&&n;let v=(u.left+(g&&((o=p.visualViewport)==null?void 0:o.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,$=u.height/h.y;if(f){const _=kr(f),C=i&&Ao(i)?kr(i):i;let E=_.frameElement;for(;E&&i&&C!==_;){const L=hl(E),D=E.getBoundingClientRect(),N=getComputedStyle(E);D.x+=(E.clientLeft+parseFloat(N.paddingLeft))*L.x,D.y+=(E.clientTop+parseFloat(N.paddingTop))*L.y,v*=L.x,y*=L.y,w*=L.x,$*=L.y,v+=D.x,y+=D.y,E=kr(E).frameElement}}return{width:w,height:$,top:y,right:v+w,bottom:y+$,left:v,x:v,y}}function $o(e){return((E1(e)?e.ownerDocument:e.document)||window.document).documentElement}function rd(e){return Ao(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M1(e){return nc($o(e)).left+rd(e).scrollLeft}function rc(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||d0(e)&&e.host||$o(e);return d0(t)?t.host:t}function L1(e){const t=rc(e);return Tg(t)?t.ownerDocument.body:fi(t)&&nd(t)?t:L1(t)}function pf(e,t){var n;t===void 0&&(t=[]);const i=L1(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),l=kr(i);return o?t.concat(l,l.visualViewport||[],nd(i)?i:[]):t.concat(i,pf(i))}function h0(e,t,n){return t==="viewport"?za((function(i,o){const l=kr(i),u=$o(i),f=l.visualViewport;let h=u.clientWidth,p=u.clientHeight,g=0,v=0;if(f){h=f.width,p=f.height;const y=A1();(y||!y&&o==="fixed")&&(g=f.offsetLeft,v=f.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,n)):Ao(t)?za((function(i,o){const l=nc(i,!0,o==="fixed"),u=l.top+i.clientTop,f=l.left+i.clientLeft,h=fi(i)?hl(i):{x:1,y:1};return{width:i.clientWidth*h.x,height:i.clientHeight*h.y,x:f*h.x,y:u*h.y}})(t,n)):za((function(i){const o=$o(i),l=rd(i),u=i.ownerDocument.body,f=Ha(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),h=Ha(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+M1(i);const g=-l.scrollTop;return ui(u).direction==="rtl"&&(p+=Ha(o.clientWidth,u.clientWidth)-f),{width:f,height:h,x:p,y:g}})($o(e)))}function p0(e){return fi(e)&&ui(e).position!=="fixed"?e.offsetParent:null}function g0(e){const t=kr(e);let n=p0(e);for(;n&&eN(n)&&ui(n).position==="static";)n=p0(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&ui(n).position==="static"&&!vp(n))?t:n||(function(i){let o=rc(i);for(;fi(o)&&!Tg(o);){if(vp(o))return o;o=rc(o)}return null})(e)||t}function tN(e,t,n){const i=fi(t),o=$o(t),l=nc(e,!0,n==="fixed",t);let u={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(i||!i&&n!=="fixed")if((Oo(t)!=="body"||nd(o))&&(u=rd(t)),fi(t)){const h=nc(t,!0);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else o&&(f.x=M1(o));return{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}const nN={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const l=n==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let y=pf(p).filter((C=>Ao(C)&&Oo(C)!=="body")),w=null;const $=ui(p).position==="fixed";let _=$?rc(p):p;for(;Ao(_)&&!Tg(_);){const C=ui(_),E=vp(_);($?E||w:E||C.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=C:y=y.filter((L=>L!==_)),_=rc(_)}return g.set(p,y),y})(t,this._c):[].concat(n),u=[...l,i],f=u[0],h=u.reduce(((p,g)=>{const v=h0(t,g,o);return p.top=Ha(v.top,p.top),p.right=f0(v.right,p.right),p.bottom=f0(v.bottom,p.bottom),p.left=Ha(v.left,p.left),p}),h0(t,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=fi(n),l=$o(n);if(n===l)return t;let u={scrollLeft:0,scrollTop:0},f={x:1,y:1};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((Oo(n)!=="body"||nd(l))&&(u=rd(n)),fi(n))){const p=nc(n);f=hl(n),h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x,y:t.y*f.y-u.scrollTop*f.y+h.y}},isElement:Ao,getDimensions:function(e){return fi(e)?T1(e):e.getBoundingClientRect()},getOffsetParent:g0,getDocumentElement:$o,getScale:hl,async getElementRects(e){let{reference:t,floating:n,strategy:i}=e;const o=this.getOffsetParent||g0,l=this.getDimensions;return{reference:tN(t,await o(n),i),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ui(e).direction==="rtl"},rN=(e,t,n)=>{const i=new Map,o={platform:nN,...n},l={...o.platform,_c:i};return q$(e,t,{...o,platform:l})},No={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 ic(e,t){let n=No.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=No.themes[n.$extend]||{}:(n=null,i=No[t]):n=null;while(n);return i}function iN(e){const t=[e];let n=No.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=No.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function m0(e){const t=[e];let n=No.themes[e]||{};do n.$extend?(t.push(n.$extend),n=No.themes[n.$extend]||{}):n=null;while(n);return t}let oc=!1;if(typeof window<"u"){oc=!1;try{const e=Object.defineProperty({},"passive",{get(){oc=!0}});window.addEventListener("test",null,e)}catch{}}let O1=!1;typeof window<"u"&&typeof navigator<"u"&&(O1=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const R1=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),v0={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},y0={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function b0(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Th(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const cr=[];let rs=null;const w0={};function x0(e){let t=w0[e];return t||(t=w0[e]=[]),t}let yp=function(){};typeof window<"u"&&(yp=window.Element);function ht(e){return function(t){return ic(t.theme,e)}}const Ch="__floating-vue__popper",P1=()=>tt({name:"VPopper",provide(){return{[Ch]:{parentPopper:this}}},inject:{[Ch]:{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:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>R1.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,yp,Boolean],default:ht("container")},boundary:{type:[String,yp],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("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[Ch])==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:n=!1}={}){var i,o;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.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 n;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}((n=this.parentPopper)==null?void 0:n.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(J$({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(G$({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Z$({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(K$({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(U$({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:l})=>{let u;const{centerOffset:f}=l.arrow;return i.startsWith("top")||i.startsWith("bottom")?u=Math.abs(f)>o.reference.width/2:u=Math.abs(f)>o.reference.height/2,{data:{overflow:u}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:l,middlewareData:u})=>{var f;if((f=u.autoSize)!=null&&f.skip)return{};let h,p;return l.startsWith("top")||l.startsWith("bottom")?h=o.reference.width:p=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="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(Q$({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await rN(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),rs&&this.instantMove&&rs.instantMove&&rs!==this.parentPopper){rs.$_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&&(rs=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 Th(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...pf(this.$_referenceNode),...pf(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(i.left+n.offsetLeft),l=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${o}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<cr.length;n++)t=cr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}cr.push(this),document.body.classList.add("v-popper--some-open");for(const t of m0(this.theme))x0(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 Th(),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,b0(cr,this),cr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of m0(this.theme)){const i=x0(n);b0(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}rs===this&&(rs=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 Th(),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=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,v0,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],v0,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,y0,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],y0,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(i=>i.addEventListener(t,n,oc?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,o){let l=n;i!=null&&(l=typeof i=="function"?i(l):i),l.forEach(u=>{const f=t[u];f&&this.$_registerEventListeners(e,f,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:o,handler:l}=n;!e||e===o?i.forEach(u=>u.removeEventListener(o,l)):t.push(n)}),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 n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}},$_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(Ba>=e.left&&Ba<=e.right&&ja>=e.top&&ja<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ba-po,i=ja-go,o=t.left+t.width/2-po+(t.top+t.height/2)-go+t.width+t.height,l=po+n*o,u=go+i*o;return vu(po,go,l,u,t.left,t.top,t.left,t.bottom)||vu(po,go,l,u,t.left,t.top,t.right,t.top)||vu(po,go,l,u,t.right,t.top,t.right,t.bottom)||vu(po,go,l,u,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(O1){const e=oc?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>S0(t),e),document.addEventListener("touchend",t=>_0(t,!0),e)}else window.addEventListener("mousedown",e=>S0(e),!0),window.addEventListener("click",e=>_0(e,!1),!0);window.addEventListener("resize",lN)}function S0(e,t){for(let n=0;n<cr.length;n++){const i=cr[n];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function _0(e,t){oN(e,t)}function oN(e,t){const n={};for(let i=cr.length-1;i>=0;i--){const o=cr[i];try{const l=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&k0(o,l,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=o.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let u=o.parentPopper;for(;u&&k0(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function k0(e,t,n){return n.closeAllPopover||n.closePopover&&t||sN(e,n)&&!t}function sN(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function lN(){for(let e=0;e<cr.length;e++)cr[e].$_computePosition()}function T0(){for(let e=0;e<cr.length;e++)cr[e].hide()}let po=0,go=0,Ba=0,ja=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{po=Ba,go=ja,Ba=e.clientX,ja=e.clientY},oc?{passive:!0}:void 0);function vu(e,t,n,i,o,l,u,f){const h=((u-o)*(t-l)-(f-l)*(e-o))/((f-l)*(n-e)-(u-o)*(i-t)),p=((n-e)*(t-l)-(i-t)*(e-o))/((f-l)*(n-e)-(u-o)*(i-t));return h>=0&&h<=1&&p>=0&&p<=1}const aN={extends:P1()},id=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};function cN(e,t,n,i,o,l){return te(),ge("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Bt(e.$slots,"default",oE(f1(e.slotData)))],2)}const uN=id(aN,[["render",cN]]);function fN(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let zu;function bp(){bp.init||(bp.init=!0,zu=fN()!==-1)}var od={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){bp(),At(()=>{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",zu&&this.$el.appendChild(e),e.data="about:blank",zu||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&&(!zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const dN=Ex();Tx("data-v-b329ee4c");const hN={class:"resize-observer",tabindex:"-1"};Cx();const pN=dN((e,t,n,i,o,l)=>(te(),We("div",hN)));od.render=pN;od.__scopeId="data-v-b329ee4c";od.__file="src/components/ResizeObserver.vue";const I1=(e="theme")=>({computed:{themeClass(){return iN(this[e])}}}),gN=tt({name:"VPopperContent",components:{ResizeObserver:od},mixins:[I1()],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}}}),mN=["id","aria-hidden","tabindex","data-popper-placement"],vN={ref:"inner",class:"v-popper__inner"},yN=Y("div",{class:"v-popper__arrow-outer"},null,-1),bN=Y("div",{class:"v-popper__arrow-inner"},null,-1),wN=[yN,bN];function xN(e,t,n,i,o,l){const u=ys("ResizeObserver");return te(),ge("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:Pt(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]=gp(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Pt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",vN,[e.mounted?(te(),ge(nt,{key:0},[Y("div",null,[Bt(e.$slots,"default")]),e.handleResize?(te(),We(u,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):Fe("",!0)],64)):Fe("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Pt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},wN,4)],4)],46,mN)}const D1=id(gN,[["render",xN]]),F1={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 wp=function(){};typeof window<"u"&&(wp=window.Element);const SN=tt({name:"VPopperWrapper",components:{Popper:uN,PopperContent:D1},mixins:[F1,I1("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,wp,Boolean],default:void 0},boundary:{type:[String,wp],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 _N(e,t,n,i,o,l){const u=ys("PopperContent"),f=ys("Popper");return te(),We(f,ci({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:je(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,show:w,hide:$,handleResize:_,onResize:C,classes:E,result:L})=>[Bt(e.$slots,"default",{shown:p,show:w,hide:$}),Ne(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":_,classes:E,result:L,onHide:$,onResize:C},{default:je(()=>[Bt(e.$slots,"popper",{shown:p,hide:$})]),_: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 Cg=id(SN,[["render",_N]]);({...Cg});({...Cg});const kN={...Cg,name:"VTooltip",vPopperTheme:"tooltip"},TN=tt({name:"VTooltipDirective",components:{Popper:P1(),PopperContent:D1},mixins:[F1],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ic(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ic(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,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),CN=["innerHTML"],EN=["textContent"];function AN(e,t,n,i,o,l){const u=ys("PopperContent"),f=ys("Popper");return te(),We(f,ci({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:je(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,hide:w,handleResize:$,onResize:_,classes:C,result:E})=>[Ne(u,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":$,classes:C,result:E,onHide:w,onResize:_},{default:je(()=>[e.html?(te(),ge("div",{key:0,innerHTML:e.finalContent},null,8,CN)):(te(),ge("div",{key:1,textContent:Me(e.finalContent)},null,8,EN))]),_: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 $N=id(TN,[["render",AN]]),z1="v-popper--has-tooltip";function NN(e,t){let n=e.placement;if(!n&&t)for(const i of R1)t[i]&&(n=i);return n||(n=ic(e.theme||"tooltip","placement")),n}function H1(e,t,n){let i;const o=typeof t;return o==="string"?i={content:t}:t&&o==="object"?i=t:i={content:!1},i.placement=NN(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Eh,sc,MN=0;function LN(){if(Eh)return;sc=Ke([]),Eh=x1({name:"VTooltipDirectiveApp",setup(){return{directives:sc}},render(){return this.directives.map(t=>Tc($N,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Eh.mount(e)}function B1(e,t,n){LN();const i=Ke(H1(e,t,n)),o=Ke(!1),l={id:MN++,options:i,shown:o};return sc.value.push(l),e.classList&&e.classList.add(z1),e.$_popper={options:i,item:l,show(){o.value=!0},hide(){o.value=!1}}}function Eg(e){if(e.$_popper){const t=sc.value.indexOf(e.$_popper.item);t!==-1&&sc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(z1)}function C0(e,{value:t,modifiers:n}){const i=H1(e,t,n);if(!i.content||ic(i.theme||"tooltip","disabled"))Eg(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=i):o=B1(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const ON={beforeMount:C0,updated:C0,beforeUnmount(e){Eg(e)}},RN=ON,wo=kN,j1={options:No};function W1(e,t){return ag()?(uE(e,t),!0):!1}const Ah=new WeakMap,PN=(...e)=>{var t;const n=e[0],i=(t=gi())===null||t===void 0?void 0:t.proxy,o=i??ag();if(o==null&&!Ax())throw new Error("injectLocal must be called in setup");return o&&Ah.has(o)&&n in Ah.get(o)?Ah.get(o)[n]:bn(...e)},IN=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const DN=Object.prototype.toString,FN=e=>DN.call(e)==="[object Object]",zN=()=>+Date.now(),gf=()=>{};function ks(...e){if(e.length!==1)return IE(...e);const t=e[0];return typeof t=="function"?Sl(bx(()=>({get:t,set:gf}))):Ke(t)}function Ag(e,t){function n(...i){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(l)})}return n}const $g=e=>e();function q1(e,t={}){let n,i,o=gf;const l=h=>{clearTimeout(h),o(),o=gf};let u;return h=>{const p=Zt(e),g=Zt(t.maxWait);return n&&l(n),p<=0||g!==void 0&&g<=0?(i&&(l(i),i=void 0),Promise.resolve(h())):new Promise((v,y)=>{o=t.rejectOnCancel?y:v,u=h,g&&!i&&(i=setTimeout(()=>{n&&l(n),i=void 0,v(u())},g)),n=setTimeout(()=>{i&&l(i),i=void 0,v(h())},p)})}}function U1(e=$g,t={}){const{initialState:n="active"}=t,i=ks(n==="active");function o(){i.value=!1}function l(){i.value=!0}return{isActive:Sl(i),pause:o,resume:l,eventFilter:(...f)=>{i.value&&e(...f)}}}function E0(e,t=!1,n="Timeout"){return new Promise((i,o)=>{setTimeout(t?()=>o(n):i,e)})}function A0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function $h(e){return Array.isArray(e)?e:[e]}function HN(e){return gi()}function yu(e,t=200,n={}){return Ag(q1(t,n),e)}function V1(e,t,n={}){const{eventFilter:i=$g,...o}=n;return yt(e,Ag(i,t),o)}function G1(e,t,n={}){const{eventFilter:i,initialState:o="active",...l}=n,{eventFilter:u,pause:f,resume:h,isActive:p}=U1(i,{initialState:o});return{stop:V1(e,t,{...l,eventFilter:u}),pause:f,resume:h,isActive:p}}function Ng(e,t=!0,n){HN()?Yi(e,n):t?e():At(e)}function xp(e,t=!1){function n(v,{flush:y="sync",deep:w=!1,timeout:$,throwOnTimeout:_}={}){let C=null;const E=[new Promise(L=>{C=yt(e,D=>{v(D)!==t&&(C?C():At(()=>C?.()),L(D))},{flush:y,deep:w,immediate:!0})})];return $!=null&&E.push(E0($,_).then(()=>Zt(e)).finally(()=>C?.())),Promise.race(E)}function i(v,y){if(!Lt(v))return n(D=>D===v,y);const{flush:w="sync",deep:$=!1,timeout:_,throwOnTimeout:C}=y??{};let E=null;const L=[new Promise(D=>{E=yt([e,v],([N,I])=>{t!==(N===I)&&(E?E():At(()=>E?.()),D(N))},{flush:w,deep:$,immediate:!0})})];return _!=null&&L.push(E0(_,C).then(()=>Zt(e)).finally(()=>(E?.(),Zt(e)))),Promise.race(L)}function o(v){return n(y=>!!y,v)}function l(v){return i(null,v)}function u(v){return i(void 0,v)}function f(v){return n(Number.isNaN,v)}function h(v,y){return n(w=>{const $=Array.from(w);return $.includes(v)||$.includes(Zt(v))},y)}function p(v){return g(1,v)}function g(v=1,y){let w=-1;return n(()=>(w+=1,w>=v),y)}return Array.isArray(Zt(e))?{toMatch:n,toContains:h,changed:p,changedTimes:g,get not(){return xp(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:o,toBeNull:l,toBeNaN:f,toBeUndefined:u,changed:p,changedTimes:g,get not(){return xp(e,!t)}}}function $0(e){return xp(e)}function BN(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=Lt(e),l=Vt(e);function u(f){if(arguments.length)return l.value=f,l.value;{const h=Zt(n);return l.value=l.value===h?Zt(i):h,l.value}}return o?u:[l,u]}function K1(e,t,n={}){const{debounce:i=0,maxWait:o=void 0,...l}=n;return V1(e,t,{...l,eventFilter:q1(i,{maxWait:o})})}const Y1=K1;function jN(e,t,n={}){const{eventFilter:i=$g,...o}=n,l=Ag(i,t);let u,f,h;if(o.flush==="sync"){let p=!1;f=()=>{},u=g=>{p=!0,g(),p=!1},h=yt(e,(...g)=>{p||l(...g)},o)}else{const p=[];let g=0,v=0;f=()=>{g=v},p.push(yt(e,()=>{v++},{...o,flush:"sync"})),u=y=>{const w=v;y(),g+=v-w},p.push(yt(e,(...y)=>{const w=g>0&&g===v;g=0,v=0,!w&&l(...y)},o)),h=()=>{p.forEach(y=>y())}}return{stop:h,ignoreUpdates:u,ignorePrevAsyncUpdates:f}}function WN(e,t,n){return yt(e,t,{...n,immediate:!0})}function qN(e,t,n){return yt(e,t,{...n,once:!0})}function UN(e,t,n){var i;let o;Lt(n)?o={evaluating:n}:o=n||{};const{lazy:l=!1,flush:u="sync",evaluating:f=void 0,shallow:h=!0,onError:p=(i=globalThis.reportError)!==null&&i!==void 0?i:gf}=o,g=Vt(!l),v=h?Vt(t):Ke(t);let y=0;return $x(async w=>{if(!g.value)return;y++;const $=y;let _=!1;f&&Promise.resolve().then(()=>{f.value=!0});try{const C=await e(E=>{w(()=>{f&&(f.value=!1),_||E()})});$===y&&(v.value=C)}catch(C){p(C)}finally{f&&$===y&&(f.value=!1),_=!0}},{flush:u}),l?Se(()=>(g.value=!0,v.value)):v}const VN=UN,fr=IN?window:void 0;function mf(e){var t;const n=Zt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ro(...e){const t=(i,o,l,u)=>(i.addEventListener(o,l,u),()=>i.removeEventListener(o,l,u)),n=Se(()=>{const i=$h(Zt(e[0])).filter(o=>o!=null);return i.every(o=>typeof o!="string")?i:void 0});return WN(()=>{var i,o;return[(i=(o=n.value)===null||o===void 0?void 0:o.map(l=>mf(l)))!==null&&i!==void 0?i:[fr].filter(l=>l!=null),$h(Zt(n.value?e[1]:e[0])),$h(W(n.value?e[2]:e[1])),Zt(n.value?e[3]:e[2])]},([i,o,l,u],f,h)=>{if(!i?.length||!o?.length||!l?.length)return;const p=FN(u)?{...u}:u,g=i.flatMap(v=>o.flatMap(y=>l.map(w=>t(v,y,w,p))));h(()=>{g.forEach(v=>v())})},{flush:"post"})}function GN(){const e=Vt(!1),t=gi();return t&&Yi(()=>{e.value=!0},t),e}function X1(e){const t=GN();return Se(()=>(t.value,!!e()))}function KN(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function J1(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=fr,eventName:l="keydown",passive:u=!1,dedupe:f=!1}=i,h=KN(t);return Ro(o,l,g=>{g.repeat&&Zt(f)||h(g)&&n(g)},u)}function YN(e,t={}){const{immediate:n=!0,fpsLimit:i=null,window:o=fr,once:l=!1}=t,u=Vt(!1),f=Se(()=>{const w=Zt(i);return w?1e3/w:null});let h=0,p=null;function g(w){if(!u.value||!o)return;h||(h=w);const $=w-h;if(f.value&&$<f.value){p=o.requestAnimationFrame(g);return}if(h=w,e({delta:$,timestamp:w}),l){u.value=!1,p=null;return}p=o.requestAnimationFrame(g)}function v(){!u.value&&o&&(u.value=!0,h=0,p=o.requestAnimationFrame(g))}function y(){u.value=!1,p!=null&&o&&(o.cancelAnimationFrame(p),p=null)}return n&&v(),W1(y),{isActive:Sl(u),pause:y,resume:v}}const XN=Symbol("vueuse-ssr-width");function JN(){const e=Ax()?PN(XN,null):null;return typeof e=="number"?e:void 0}function Z1(e,t={}){const{window:n=fr,ssrWidth:i=JN()}=t,o=X1(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=Vt(typeof i=="number"),u=Vt(),f=Vt(!1),h=p=>{f.value=p.matches};return $x(()=>{if(l.value){l.value=!o.value,f.value=Zt(e).split(",").some(p=>{const g=p.includes("not all"),v=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(v||y);return v&&w&&(w=i>=A0(v[1])),y&&w&&(w=i<=A0(y[1])),g?!w:w});return}o.value&&(u.value=n.matchMedia(Zt(e)),f.value=u.value.matches)}),Ro(u,"change",h,{passive:!0}),Se(()=>f.value)}function Q1(e){return JSON.parse(JSON.stringify(e))}const bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wu="__vueuse_ssr_handlers__",ZN=QN();function QN(){return wu in bu||(bu[wu]=bu[wu]||{}),bu[wu]}function eS(e,t){return ZN[e]||t}function eM(e){return Z1("(prefers-color-scheme: dark)",e)}function tM(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 nM={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()}},N0="vueuse-storage";function tS(e,t,n,i={}){var o;const{flush:l="pre",deep:u=!0,listenToStorageChanges:f=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=fr,eventFilter:y,onError:w=k=>{console.error(k)},initOnMounted:$}=i,_=(g?Vt:Ke)(typeof t=="function"?t():t),C=Se(()=>Zt(e));if(!n)try{n=eS("getDefaultStorage",()=>fr?.localStorage)()}catch(k){w(k)}if(!n)return _;const E=Zt(t),L=tM(E),D=(o=i.serializer)!==null&&o!==void 0?o:nM[L],{pause:N,resume:I}=G1(_,k=>U(k),{flush:l,deep:u,eventFilter:y});yt(C,()=>P(),{flush:l});let q=!1;const X=k=>{$&&!q||P(k)},ie=k=>{$&&!q||O(k)};v&&f&&(n instanceof Storage?Ro(v,"storage",X,{passive:!0}):Ro(v,N0,ie)),$?Ng(()=>{q=!0,P()}):P();function J(k,S){if(v){const R={key:C.value,oldValue:k,newValue:S,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",R):new CustomEvent(N0,{detail:R}))}}function U(k){try{const S=n.getItem(C.value);if(k==null)J(S,null),n.removeItem(C.value);else{const R=D.write(k);S!==R&&(n.setItem(C.value,R),J(S,R))}}catch(S){w(S)}}function K(k){const S=k?k.newValue:n.getItem(C.value);if(S==null)return h&&E!=null&&n.setItem(C.value,D.write(E)),E;if(!k&&p){const R=D.read(S);return typeof p=="function"?p(R,E):L==="object"&&!Array.isArray(R)?{...E,...R}:R}else return typeof S!="string"?S:D.read(S)}function P(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){_.value=E;return}if(!(k&&k.key!==C.value)){N();try{const S=D.write(_.value);(k===void 0||k?.newValue!==S)&&(_.value=K(k))}catch(S){w(S)}finally{k?At(I):I()}}}}function O(k){P(k.detail)}return _}const rM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iM(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:o=fr,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=eM({window:o}),w=Se(()=>y.value?"dark":"light"),$=h||(u==null?ks(i):tS(u,i,l,{window:o,listenToStorageChanges:f})),_=Se(()=>$.value==="auto"?w.value:$.value),C=eS("updateHTMLAttrs",(N,I,q)=>{const X=typeof N=="string"?o?.document.querySelector(N):mf(N);if(!X)return;const ie=new Set,J=new Set;let U=null;if(I==="class"){const P=q.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?ie.add(O):J.add(O)})}else U={key:I,value:q};if(ie.size===0&&J.size===0&&U===null)return;let K;g&&(K=o.document.createElement("style"),K.appendChild(document.createTextNode(rM)),o.document.head.appendChild(K));for(const P of ie)X.classList.add(P);for(const P of J)X.classList.remove(P);U&&X.setAttribute(U.key,U.value),g&&(o.getComputedStyle(K).opacity,document.head.removeChild(K))});function E(N){var I;C(t,n,(I=v[N])!==null&&I!==void 0?I:N)}function L(N){e.onChanged?e.onChanged(N,E):E(N)}yt(_,L,{flush:"post",immediate:!0}),Ng(()=>L(_.value));const D=Se({get(){return p?$.value:_.value},set(N){$.value=N}});return Object.assign(D,{store:$,system:w,state:_})}function oM(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=iM({...e,onChanged:(l,u)=>{var f;e.onChanged?(f=e.onChanged)===null||f===void 0||f.call(e,l==="dark",u,l):u(l)},modes:{dark:t,light:n}}),o=Se(()=>i.system.value);return Se({get(){return i.value==="dark"},set(l){const u=l?"dark":"light";o.value===u?i.value="auto":i.value=u}})}function nS(e){return e}function sM(e,t){return e.value=t}function lM(e){return e?typeof e=="function"?e:Q1:nS}function aM(e){return e?typeof e=="function"?e:Q1:nS}function cM(e,t={}){const{clone:n=!1,dump:i=lM(n),parse:o=aM(n),setSource:l=sM}=t;function u(){return Vf({snapshot:i(e.value),timestamp:zN()})}const f=Ke(u()),h=Ke([]),p=Ke([]),g=C=>{l(e,o(C.snapshot)),f.value=C},v=()=>{h.value.unshift(f.value),f.value=u(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},y=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const C=h.value.shift();C&&(p.value.unshift(f.value),g(C))},$=()=>{const C=p.value.shift();C&&(h.value.unshift(f.value),g(C))},_=()=>{g(f.value)};return{source:e,undoStack:h,redoStack:p,last:f,history:Se(()=>[f.value,...h.value]),canUndo:Se(()=>h.value.length>0),canRedo:Se(()=>p.value.length>0),clear:y,commit:v,reset:_,undo:w,redo:$}}function uM(e,t={}){const{deep:n=!1,flush:i="pre",eventFilter:o,shouldCommit:l=()=>!0}=t,{eventFilter:u,pause:f,resume:h,isActive:p}=U1(o);let g=e.value;const{ignoreUpdates:v,ignorePrevAsyncUpdates:y,stop:w}=jN(e,L,{deep:n,flush:i,eventFilter:u});function $(q,X){y(),v(()=>{q.value=X,g=X})}const _=cM(e,{...t,clone:t.clone||n,setSource:$}),{clear:C,commit:E}=_;function L(){y(),l(g,e.value)&&(g=e.value,E())}function D(q){h(),q&&L()}function N(q){let X=!1;const ie=()=>X=!0;v(()=>{q(ie)}),X||L()}function I(){w(),C()}return{..._,isTracking:p,pause:f,resume:D,commit:L,batch:N,dispose:I}}function fM(e,t,n={}){const{window:i=fr,...o}=n;let l;const u=X1(()=>i&&"ResizeObserver"in i),f=()=>{l&&(l.disconnect(),l=void 0)},h=yt(Se(()=>{const g=Zt(e);return Array.isArray(g)?g.map(v=>mf(v)):[mf(g)]}),g=>{if(f(),u.value&&i){l=new ResizeObserver(t);for(const v of g)v&&l.observe(v,o)}},{immediate:!0,flush:"post"}),p=()=>{f(),h()};return W1(p),{isSupported:u,stop:p}}function Cc(e,t,n={}){const{window:i=fr}=n;return tS(e,t,i?.localStorage,n)}function dM(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:l=!0,writeMode:u="replace",window:f=fr,stringify:h=N=>N.toString()}=t;if(!f)return dr(n);const p=dr({});function g(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",I=N.indexOf("?");return I>0?N.slice(I):""}else return(f.location.hash||"").replace(/^#/,"")}function v(N){const I=h(N);if(e==="history")return`${I?`?${I}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${I?`#${I}`:""}`;const q=f.location.hash||"#",X=q.indexOf("?");return X>0?`${f.location.search||""}${q.slice(0,X)}${I?`?${I}`:""}`:`${f.location.search||""}${q}${I?`?${I}`:""}`}function y(){return new URLSearchParams(g())}function w(N){const I=new Set(Object.keys(p));for(const q of N.keys()){const X=N.getAll(q);p[q]=X.length>1?X:N.get(q)||"",I.delete(q)}Array.from(I).forEach(q=>delete p[q])}const{pause:$,resume:_}=G1(p,()=>{const N=new URLSearchParams("");Object.keys(p).forEach(I=>{const q=p[I];Array.isArray(q)?q.forEach(X=>N.append(I,X)):i&&q==null||o&&!q?N.delete(I):N.set(I,q)}),C(N,!1)},{deep:!0});function C(N,I,q=!0){$(),I&&w(N),u==="replace"?f.history.replaceState(f.history.state,f.document.title,f.location.pathname+v(N)):q&&f.history.pushState(f.history.state,f.document.title,f.location.pathname+v(N)),At(()=>_())}function E(){l&&C(y(),!0,!1)}const L={passive:!0};Ro(f,"popstate",E,L),e!=="history"&&Ro(f,"hashchange",E,L);const D=y();return D.keys().next().value?w(D):Object.assign(p,n),p}function rS(e={}){const{window:t=fr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:u="inner"}=e,f=Vt(n),h=Vt(i),p=()=>{if(t)if(u==="outer")f.value=t.outerWidth,h.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:v,height:y,scale:w}=t.visualViewport;f.value=Math.round(v*w),h.value=Math.round(y*w)}else l?(f.value=t.innerWidth,h.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Ng(p);const g={passive:!0};return Ro("resize",p,g),t&&u==="visual"&&t.visualViewport&&Ro(t.visualViewport,"resize",p,g),o&&yt(Z1("(orientation: portrait)"),()=>p()),{width:f,height:h}}const M0={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const n=t,i=e,o=Bx(),l=Ke([]),u=Se(()=>l.value.reduce((z,Z)=>(z[~~Z.id]=Z)&&z,{})),f=Se(()=>l.value.length),h=Ke(null),p=Ke(!1),g=Ke({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ke({splitter:null,timeoutId:null}),y=Se(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",C,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E))},$=()=>{document.removeEventListener("mousemove",C,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",C,{passive:!1}),document.removeEventListener("touchend",E))},_=(z,Z)=>{const re=z.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ce}=re.getBoundingClientRect(),{clientX:F,clientY:j}="ontouchstart"in window&&z.touches?z.touches[0]:z;g.value.cursorOffset=i.horizontal?j-ce:F-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Z},C=z=>{g.value.mouseDown&&(z.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{X(I(z)),He("resize",{event:z},!0)}))},E=z=>{g.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:z},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,$()},100)},L=(z,Z)=>{"ontouchstart"in window&&(z.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,D(z,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||He("splitter-click",{event:z,index:Z},!0)},D=(z,Z)=>{if(He("splitter-dblclick",{event:z,index:Z},!0),i.maximizePanes){let re=0;l.value=l.value.map((le,ce)=>(le.size=ce===Z?le.max:le.min,ce!==Z&&(re+=le.min),le)),l.value[Z].size-=re,He("pane-maximize",{event:z,index:Z,pane:l.value[Z]}),He("resized",{event:z,index:Z},!0)}},N=(z,Z)=>{He("pane-click",{event:z,index:u.value[Z].index,pane:u.value[Z]})},I=z=>{const Z=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&z.touches?z.touches[0]:z;return{x:re-(i.horizontal?0:g.value.cursorOffset)-Z.left,y:le-(i.horizontal?g.value.cursorOffset:0)-Z.top}},q=z=>{z=z[i.horizontal?"y":"x"];const Z=h.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(z=Z-z),z*100/Z},X=z=>{const Z=g.value.activeSplitter;let re={prevPanesSize:J(Z),nextPanesSize:U(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(i.pushOtherPanes?0:re.prevPanesSize),ce=100-(i.pushOtherPanes?0:re.nextPanesSize),F=Math.max(Math.min(q(z),ce),le);let j=[Z,Z+1],ee=l.value[j[0]]||null,de=l.value[j[1]]||null;const he=ee.max<100&&F>=ee.max+re.prevPanesSize,me=de.max<100&&F<=100-(de.max+U(Z+1));if(he||me){he?(ee.size=ee.max,de.size=Math.max(100-ee.max-re.prevPanesSize-re.nextPanesSize,0)):(ee.size=Math.max(100-de.max-re.prevPanesSize-U(Z+1),0),de.size=de.max);return}if(i.pushOtherPanes){const Ce=ie(re,F);if(!Ce)return;({sums:re,panesToResize:j}=Ce),ee=l.value[j[0]]||null,de=l.value[j[1]]||null}ee!==null&&(ee.size=Math.min(Math.max(F-re.prevPanesSize-re.prevReachedMinPanes,ee.min),ee.max)),de!==null&&(de.size=Math.min(Math.max(100-F-re.nextPanesSize-re.nextReachedMinPanes,de.min),de.max))},ie=(z,Z)=>{const re=g.value.activeSplitter,le=[re,re+1];return Z<z.prevPanesSize+l.value[le[0]].min&&(le[0]=K(re).index,z.prevReachedMinPanes=0,le[0]<re&&l.value.forEach((ce,F)=>{F>le[0]&&F<=re&&(ce.size=ce.min,z.prevReachedMinPanes+=ce.min)}),z.prevPanesSize=J(le[0]),le[0]===void 0)?(z.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((ce,F)=>{F>0&&F<=re&&(ce.size=ce.min,z.prevReachedMinPanes+=ce.min)}),l.value[le[1]].size=100-z.prevReachedMinPanes-l.value[0].min-z.prevPanesSize-z.nextPanesSize,null):Z>100-z.nextPanesSize-l.value[le[1]].min&&(le[1]=P(re).index,z.nextReachedMinPanes=0,le[1]>re+1&&l.value.forEach((ce,F)=>{F>re&&F<le[1]&&(ce.size=ce.min,z.nextReachedMinPanes+=ce.min)}),z.nextPanesSize=U(le[1]-1),le[1]===void 0)?(z.nextReachedMinPanes=0,l.value.forEach((ce,F)=>{F<f.value-1&&F>=re+1&&(ce.size=ce.min,z.nextReachedMinPanes+=ce.min)}),l.value[le[0]].size=100-z.prevPanesSize-U(le[0]-1),null):{sums:z,panesToResize:le}},J=z=>l.value.reduce((Z,re,le)=>Z+(le<z?re.size:0),0),U=z=>l.value.reduce((Z,re,le)=>Z+(le>z+1?re.size:0),0),K=z=>[...l.value].reverse().find(Z=>Z.index<z&&Z.size>Z.min)||{},P=z=>l.value.find(Z=>Z.index>z+1&&Z.size>Z.min)||{},O=()=>{var z;const Z=Array.from(((z=h.value)==null?void 0:z.children)||[]);for(const re of Z){const le=re.classList.contains("splitpanes__pane"),ce=re.classList.contains("splitpanes__splitter");!le&&!ce&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},k=(z,Z,re=!1)=>{const le=z-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),re||(ce.onmousedown=F=>_(F,le),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=F=>_(F,le)),ce.onclick=F=>L(F,le+1)),ce.ondblclick=F=>D(F,le+1),Z.parentNode.insertBefore(ce,Z)},S=z=>{z.onmousedown=void 0,z.onclick=void 0,z.ondblclick=void 0,z.remove()},R=()=>{var z;const Z=Array.from(((z=h.value)==null?void 0:z.children)||[]);for(const le of Z)le.className.includes("splitpanes__splitter")&&S(le);let re=0;for(const le of Z)le.className.includes("splitpanes__pane")&&(!re&&i.firstSplitter?k(re,le,!0):re&&k(re,le),re++)},B=({uid:z,...Z})=>{const re=u.value[z];for(const[le,ce]of Object.entries(Z))re[le]=ce},ae=z=>{var Z;let re=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(z.el))),l.value.splice(re,0,{...z,index:re}),l.value.forEach((le,ce)=>le.index=ce),p.value&&At(()=>{R(),_e({addedPane:l.value[re]}),He("pane-add",{pane:l.value[re]})})},ve=z=>{const Z=l.value.findIndex(le=>le.id===z);l.value[Z].el=null;const re=l.value.splice(Z,1)[0];l.value.forEach((le,ce)=>le.index=ce),At(()=>{R(),He("pane-remove",{pane:re}),_e({removedPane:{...re}})})},_e=(z={})=>{!z.addedPane&&!z.removedPane?Ee():l.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ge(z):Be(),p.value&&He("resized")},Be=()=>{const z=100/f.value;let Z=0;const re=[],le=[];for(const ce of l.value)ce.size=Math.max(Math.min(z,ce.max),ce.min),Z-=ce.size,ce.size>=ce.max&&re.push(ce.id),ce.size<=ce.min&&le.push(ce.id);Z>.1&&Ue(Z,re,le)},Ee=()=>{let z=100;const Z=[],re=[];let le=0;for(const F of l.value)z-=F.size,F.givenSize!==null&&le++,F.size>=F.max&&Z.push(F.id),F.size<=F.min&&re.push(F.id);let ce=100;if(z>.1){for(const F of l.value)F.givenSize===null&&(F.size=Math.max(Math.min(z/(f.value-le),F.max),F.min)),ce-=F.size;ce>.1&&Ue(ce,Z,re)}},Ge=({addedPane:z,removedPane:Z}={})=>{let re=100/f.value,le=0;const ce=[],F=[];(z?.givenSize??null)!==null&&(re=(100-z.givenSize)/(f.value-1));for(const j of l.value)le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&F.push(j.id);if(!(Math.abs(le)<.1)){for(const j of l.value)z?.givenSize!==null&&z?.id===j.id||(j.size=Math.max(Math.min(re,j.max),j.min)),le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&F.push(j.id);le>.1&&Ue(le,ce,F)}},Ue=(z,Z,re)=>{let le;z>0?le=z/(f.value-Z.length):le=z/(f.value-re.length),l.value.forEach((ce,F)=>{if(z>0&&!Z.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;z-=ee,ce.size=j}else if(!re.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;z-=ee,ce.size=j}}),Math.abs(z)>.1&&At(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(z,Z=void 0,re=!1)=>{const le=Z?.index??g.value.activeSplitter??null;n(z,{...Z,...le!==null&&{index:le},...re&&le!==null&&{prevPane:l.value[le-(i.firstSplitter?1:0)],nextPane:l.value[le+(i.firstSplitter?0:1)]},panes:l.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};yt(()=>i.firstSplitter,()=>R()),Yi(()=>{O(),R(),_e(),He("ready"),p.value=!0}),Sc(()=>p.value=!1);const Re=()=>{var z;return Tc("div",{ref:h,class:y.value},(z=o.default)==null?void 0:z.call(o))};return _r("panes",l),_r("indexedPanes",u),_r("horizontal",Se(()=>i.horizontal)),_r("requestUpdate",B),_r("onPaneAdd",ae),_r("onPaneRemove",ve),_r("onPaneClick",N),(z,Z)=>(te(),We(sf(Re)))}},xu={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,i=bn("requestUpdate"),o=bn("onPaneAdd"),l=bn("horizontal"),u=bn("onPaneRemove"),f=bn("onPaneClick"),h=(t=gi())==null?void 0:t.uid,p=bn("indexedPanes"),g=Se(()=>p.value[h]),v=Ke(null),y=Se(()=>{const C=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(C,$.value),w.value)}),w=Se(()=>{const C=parseFloat(n.minSize);return isNaN(C)?0:C}),$=Se(()=>{const C=parseFloat(n.maxSize);return isNaN(C)?100:C}),_=Se(()=>{var C;return`${l.value?"height":"width"}: ${(C=g.value)==null?void 0:C.size}%`});return yt(()=>y.value,C=>i({uid:h,size:C})),yt(()=>w.value,C=>i({uid:h,min:C})),yt(()=>$.value,C=>i({uid:h,max:C})),Yi(()=>{o({id:h,el:v.value,min:w.value,max:$.value,givenSize:n.size===void 0?null:y.value,size:y.value})}),Sc(()=>u(h)),(C,E)=>(te(),ge("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:E[0]||(E[0]=L=>W(f)(L,C._.uid)),style:Pt(_.value)},[Bt(C.$slots,"default")],4))}},lr=Ke([414,896]);var L0={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Mg(e){return String(e)}Mg.open="";Mg.close="";function hM(){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=t.FORCE_TTY!=="false",i=e?.argv||[];return!("NO_COLOR"in t||i.includes("--no-color"))&&("FORCE_COLOR"in t||i.includes("--color")||e?.platform==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}function pM({force:e}={}){let t=e||hM(),n=(u,f,h,p)=>{let g="",v=0;do g+=u.substring(v,p)+h,v=p+f.length,p=u.indexOf(f,v);while(~p);return g+u.substring(v)},i=(u,f,h=u)=>{let p=g=>{let v=String(g),y=v.indexOf(f,u.length);return~y?u+n(v,f,h,y)+f:u+v+f};return p.open=u,p.close=f,p},o={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let u in L0){let f=L0[u];o[u]=t?i(l(f[0]),l(f[1]),f[2]):Mg}return o}var gM=pM(),mM=gM;function iS(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(e)}function vM(e,t){const n=Object.keys(e),i=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&i.push(o);return i}function sd(e,t,n,i,o,l,u=": "){let f="",h=0,p=e.next();if(!p.done){f+=t.spacingOuter;const g=n+t.indent;for(;!p.done;){if(f+=g,h++===t.maxWidth){f+="…";break}const v=l(p.value[0],t,g,i,o),y=l(p.value[1],t,g,i,o);f+=v+u+y,p=e.next(),p.done?t.min||(f+=","):f+=`,${t.spacingInner}`}f+=t.spacingOuter+n}return f}function Lg(e,t,n,i,o,l){let u="",f=0,h=e.next();if(!h.done){u+=t.spacingOuter;const p=n+t.indent;for(;!h.done;){if(u+=p,f++===t.maxWidth){u+="…";break}u+=l(h.value,t,p,i,o),h=e.next(),h.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+n}return u}function vf(e,t,n,i,o,l){let u="";e=e instanceof ArrayBuffer?new DataView(e):e;const f=p=>p instanceof DataView,h=f(e)?e.byteLength:e.length;if(h>0){u+=t.spacingOuter;const p=n+t.indent;for(let g=0;g<h;g++){if(u+=p,g===t.maxWidth){u+="…";break}(f(e)||g in e)&&(u+=l(f(e)?e.getInt8(g):e[g],t,p,i,o)),g<h-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+n}return u}function Og(e,t,n,i,o,l){let u="";const f=vM(e,t.compareKeys);if(f.length>0){u+=t.spacingOuter;const h=n+t.indent;for(let p=0;p<f.length;p++){const g=f[p],v=l(g,t,h,i,o),y=l(e[g],t,h,i,o);u+=`${h+v}: ${y}`,p<f.length-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+n}return u}const yM=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Su=" ",bM=(e,t,n,i,o,l)=>{const u=e.toString();if(u==="ArrayContaining"||u==="ArrayNotContaining")return++i>t.maxDepth?`[${u}]`:`${u+Su}[${vf(e.sample,t,n,i,o,l)}]`;if(u==="ObjectContaining"||u==="ObjectNotContaining")return++i>t.maxDepth?`[${u}]`:`${u+Su}{${Og(e.sample,t,n,i,o,l)}}`;if(u==="StringMatching"||u==="StringNotMatching"||u==="StringContaining"||u==="StringNotContaining")return u+Su+l(e.sample,t,n,i,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},wM=e=>e&&e.$$typeof===yM,xM={serialize:bM,test:wM},SM=" ",oS=new Set(["DOMStringMap","NamedNodeMap"]),_M=/^(?:HTML\w*Collection|NodeList)$/;function kM(e){return oS.has(e)||_M.test(e)}const TM=e=>e&&e.constructor&&!!e.constructor.name&&kM(e.constructor.name);function CM(e){return e.constructor.name==="NamedNodeMap"}const EM=(e,t,n,i,o,l)=>{const u=e.constructor.name;return++i>t.maxDepth?`[${u}]`:(t.min?"":u+SM)+(oS.has(u)?`{${Og(CM(e)?[...e].reduce((f,h)=>(f[h.name]=h.value,f),{}):{...e},t,n,i,o,l)}}`:`[${vf([...e],t,n,i,o,l)}]`)},AM={serialize:EM,test:TM};function sS(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Rg(e,t,n,i,o,l,u){const f=i+n.indent,h=n.colors;return e.map(p=>{const g=t[p];if(typeof g=="string"&&g[0]==="_"&&g.startsWith("__vitest_")&&g.match(/__vitest_\d+__/))return"";let v=u(g,n,f,o,l);return typeof g!="string"&&(v.includes(`
18
+ `)&&(v=n.spacingOuter+f+v+n.spacingOuter+i),v=`{${v}}`),`${n.spacingInner+i+h.prop.open+p+h.prop.close}=${h.value.open}${v}${h.value.close}`}).join("")}function ld(e,t,n,i,o,l){return e.map(u=>t.spacingOuter+n+(typeof u=="string"?lS(u,t):l(u,t,n,i,o))).join("")}function $M(e,t,n,i,o,l){return t.printShadowRoot===!1?"":[`${t.spacingOuter+n}#shadow-root`,ld(e,t,n+t.indent,i,o,l)].join("")}function lS(e,t){const n=t.colors.content;return n.open+sS(e)+n.close}function NM(e,t){const n=t.colors.comment;return`${n.open}<!--${sS(e)}-->${n.close}`}function Pg(e,t,n,i,o){const l=i.colors.tag;return`${l.open}<${e}${t&&l.close+t+i.spacingOuter+o+l.open}${n?`>${l.close}${n}${i.spacingOuter}${o}${l.open}</${e}`:`${t&&!i.min?"":" "}/`}>${l.close}`}function Ig(e,t){const n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}const MM=1,Dg=3,aS=8,cS=11,LM=/^(?:(?:HTML|SVG)\w*)?Element$/;function OM(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function RM(e){const t=e.constructor.name,{nodeType:n,tagName:i}=e,o=typeof i=="string"&&i.includes("-")||OM(e);return n===MM&&(LM.test(t)||o)||n===Dg&&t==="Text"||n===aS&&t==="Comment"||n===cS&&t==="DocumentFragment"}const uS=e=>e?.constructor?.name&&RM(e);function PM(e){return e.nodeType===Dg}function IM(e){return e.nodeType===aS}function _u(e){return e.nodeType===cS}function O0(e,t){let n=e.filter(i=>i.nodeType===Dg?(i.data||"").trim().length>0:!0);return t&&(n=n.filter(t)),n}function fS(e,t,n,i,o,l,u){if(PM(e))return lS(e.data,t);if(IM(e))return NM(e.data,t);const f=_u(e)?"DocumentFragment":e.tagName.toLowerCase();if(++i>t.maxDepth)return Ig(f,t);const h=Array.prototype.slice.call(e.childNodes||e.children),p=_u(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),g=u?O0(h,u):h,v=u?O0(p,u):p;return Pg(f,Rg(_u(e)?[]:Array.from(e.attributes,y=>y.name).sort(),_u(e)?{}:[...e.attributes].reduce((y,w)=>(y[w.name]=w.value,y),{}),t,n+t.indent,i,o,l),(v.length>0?$M(v,t,n+t.indent,i,o,l):"")+ld(g,t,n+t.indent,i,o,l),t,n)}const DM=(e,t,n,i,o,l)=>fS(e,t,n,i,o,l);function FM(e){return{test:uS,serialize:(t,n,i,o,l,u)=>fS(t,n,i,o,l,u,e)}}const zM={serialize:DM,test:uS},HM="@@__IMMUTABLE_ITERABLE__@@",BM="@@__IMMUTABLE_LIST__@@",jM="@@__IMMUTABLE_KEYED__@@",WM="@@__IMMUTABLE_MAP__@@",R0="@@__IMMUTABLE_ORDERED__@@",qM="@@__IMMUTABLE_RECORD__@@",UM="@@__IMMUTABLE_SEQ__@@",VM="@@__IMMUTABLE_SET__@@",GM="@@__IMMUTABLE_STACK__@@",Al=e=>`Immutable.${e}`,ad=e=>`[${e}]`,lc=" ",P0="…";function KM(e,t,n,i,o,l,u){return++i>t.maxDepth?ad(Al(u)):`${Al(u)+lc}{${sd(e.entries(),t,n,i,o,l)}}`}function YM(e){let t=0;return{next(){if(t<e._keys.length){const n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function XM(e,t,n,i,o,l){const u=Al(e._name||"Record");return++i>t.maxDepth?ad(u):`${u+lc}{${sd(YM(e),t,n,i,o,l)}}`}function JM(e,t,n,i,o,l){const u=Al("Seq");return++i>t.maxDepth?ad(u):e[jM]?`${u+lc}{${e._iter||e._object?sd(e.entries(),t,n,i,o,l):P0}}`:`${u+lc}[${e._iter||e._array||e._collection||e._iterable?Lg(e.values(),t,n,i,o,l):P0}]`}function Nh(e,t,n,i,o,l,u){return++i>t.maxDepth?ad(Al(u)):`${Al(u)+lc}[${Lg(e.values(),t,n,i,o,l)}]`}const ZM=(e,t,n,i,o,l)=>e[WM]?KM(e,t,n,i,o,l,e[R0]?"OrderedMap":"Map"):e[BM]?Nh(e,t,n,i,o,l,"List"):e[VM]?Nh(e,t,n,i,o,l,e[R0]?"OrderedSet":"Set"):e[GM]?Nh(e,t,n,i,o,l,"Stack"):e[UM]?JM(e,t,n,i,o,l):XM(e,t,n,i,o,l),QM=e=>e&&(e[HM]===!0||e[qM]===!0),eL={serialize:ZM,test:QM};function dS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh={exports:{}},Et={};/**
19
19
  * @license React
20
20
  * react-is.production.js
21
21
  *
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var I0;function eL(){if(I0)return Et;I0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function $(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case e:switch(_=_.type,_){case n:case o:case i:case h:case p:case y:return _;default:switch(_=_&&_.$$typeof,_){case u:case f:case v:case g:return _;case l:return _;default:return C}}case t:return C}}}return Et.ContextConsumer=l,Et.ContextProvider=u,Et.Element=e,Et.ForwardRef=f,Et.Fragment=n,Et.Lazy=v,Et.Memo=g,Et.Portal=t,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.SuspenseList=p,Et.isContextConsumer=function(_){return $(_)===l},Et.isContextProvider=function(_){return $(_)===u},Et.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},Et.isForwardRef=function(_){return $(_)===f},Et.isFragment=function(_){return $(_)===n},Et.isLazy=function(_){return $(_)===v},Et.isMemo=function(_){return $(_)===g},Et.isPortal=function(_){return $(_)===t},Et.isProfiler=function(_){return $(_)===o},Et.isStrictMode=function(_){return $(_)===i},Et.isSuspense=function(_){return $(_)===h},Et.isSuspenseList=function(_){return $(_)===p},Et.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===o||_===i||_===h||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===g||_.$$typeof===u||_.$$typeof===l||_.$$typeof===f||_.$$typeof===w||_.getModuleId!==void 0)},Et.typeOf=$,Et}var D0;function tL(){return D0||(D0=1,Mh.exports=eL()),Mh.exports}var hS=tL(),nL=dS(hS),rL=iS({__proto__:null,default:nL},[hS]),Lh={exports:{}},St={};/**
26
+ */var I0;function tL(){if(I0)return Et;I0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function $(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case e:switch(_=_.type,_){case n:case o:case i:case h:case p:case y:return _;default:switch(_=_&&_.$$typeof,_){case u:case f:case v:case g:return _;case l:return _;default:return C}}case t:return C}}}return Et.ContextConsumer=l,Et.ContextProvider=u,Et.Element=e,Et.ForwardRef=f,Et.Fragment=n,Et.Lazy=v,Et.Memo=g,Et.Portal=t,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.SuspenseList=p,Et.isContextConsumer=function(_){return $(_)===l},Et.isContextProvider=function(_){return $(_)===u},Et.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},Et.isForwardRef=function(_){return $(_)===f},Et.isFragment=function(_){return $(_)===n},Et.isLazy=function(_){return $(_)===v},Et.isMemo=function(_){return $(_)===g},Et.isPortal=function(_){return $(_)===t},Et.isProfiler=function(_){return $(_)===o},Et.isStrictMode=function(_){return $(_)===i},Et.isSuspense=function(_){return $(_)===h},Et.isSuspenseList=function(_){return $(_)===p},Et.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===o||_===i||_===h||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===g||_.$$typeof===u||_.$$typeof===l||_.$$typeof===f||_.$$typeof===w||_.getModuleId!==void 0)},Et.typeOf=$,Et}var D0;function nL(){return D0||(D0=1,Mh.exports=tL()),Mh.exports}var hS=nL(),rL=dS(hS),iL=iS({__proto__:null,default:rL},[hS]),Lh={exports:{}},St={};/**
27
27
  * @license React
28
28
  * react-is.production.min.js
29
29
  *
@@ -31,25 +31,25 @@
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var F0;function iL(){if(F0)return St;F0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function _(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case e:switch(C=C.type,C){case n:case o:case i:case p:case g:return C;default:switch(C=C&&C.$$typeof,C){case f:case u:case h:case y:case v:case l:return C;default:return E}}case t:return E}}}return St.ContextConsumer=u,St.ContextProvider=l,St.Element=e,St.ForwardRef=h,St.Fragment=n,St.Lazy=y,St.Memo=v,St.Portal=t,St.Profiler=o,St.StrictMode=i,St.Suspense=p,St.SuspenseList=g,St.isAsyncMode=function(){return!1},St.isConcurrentMode=function(){return!1},St.isContextConsumer=function(C){return _(C)===u},St.isContextProvider=function(C){return _(C)===l},St.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},St.isForwardRef=function(C){return _(C)===h},St.isFragment=function(C){return _(C)===n},St.isLazy=function(C){return _(C)===y},St.isMemo=function(C){return _(C)===v},St.isPortal=function(C){return _(C)===t},St.isProfiler=function(C){return _(C)===o},St.isStrictMode=function(C){return _(C)===i},St.isSuspense=function(C){return _(C)===p},St.isSuspenseList=function(C){return _(C)===g},St.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===i||C===p||C===g||C===w||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===l||C.$$typeof===u||C.$$typeof===h||C.$$typeof===$||C.getModuleId!==void 0)},St.typeOf=_,St}var z0;function oL(){return z0||(z0=1,Lh.exports=iL()),Lh.exports}var pS=oL(),sL=dS(pS),lL=iS({__proto__:null,default:sL},[pS]);const aL=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ls=Object.fromEntries(aL.map(e=>[e,t=>lL[e](t)||rL[e](t)]));function gS(e,t=[]){if(Array.isArray(e))for(const n of e)gS(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function H0(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ls.isFragment(e))return"React.Fragment";if(ls.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ls.isContextProvider(e))return"Context.Provider";if(ls.isContextConsumer(e))return"Context.Consumer";if(ls.isForwardRef(e)){if(t.displayName)return t.displayName;const n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(ls.isMemo(e)){const n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function cL(e){const{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}const uL=(e,t,n,i,o,l)=>++i>t.maxDepth?Ig(H0(e),t):Pg(H0(e),Rg(cL(e),e.props,t,n+t.indent,i,o,l),ld(gS(e.props.children),t,n+t.indent,i,o,l),t,n),fL=e=>e!=null&&ls.isElement(e),dL={serialize:uL,test:fL},hL=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function pL(e){const{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}const gL=(e,t,n,i,o,l)=>++i>t.maxDepth?Ig(e.type,t):Pg(e.type,e.props?Rg(pL(e),e.props,t,n+t.indent,i,o,l):"",e.children?ld(e.children,t,n+t.indent,i,o,l):"",t,n),mL=e=>e&&e.$$typeof===hL,vL={serialize:gL,test:mL},mS=Object.prototype.toString,yL=Date.prototype.toISOString,bL=Error.prototype.toString,B0=RegExp.prototype.toString;function Oh(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function wL(e){return typeof window<"u"&&e===window}const xL=/^Symbol\((.*)\)(.*)$/,SL=/\n/g;class vS extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}}function _L(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function kL(e){return Object.is(e,-0)?"-0":String(e)}function TL(e){return`${e}n`}function j0(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function W0(e){return String(e).replace(xL,"Symbol($1)")}function q0(e){return`[${bL.call(e)}]`}function yS(e,t,n,i){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const o=typeof e;if(o==="number")return kL(e);if(o==="bigint")return TL(e);if(o==="string")return i?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return j0(e,t);if(o==="symbol")return W0(e);const l=mS.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?j0(e,t):l==="[object Symbol]"?W0(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":yL.call(e):l==="[object Error]"?q0(e):l==="[object RegExp]"?n?B0.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):B0.call(e):e instanceof Error?q0(e):null}function bS(e,t,n,i,o,l){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const u=++i>t.maxDepth,f=t.min;if(t.callToJSON&&!u&&e.toJSON&&typeof e.toJSON=="function"&&!l)return xo(e.toJSON(),t,n,i,o,!0);const h=mS.call(e);return h==="[object Arguments]"?u?"[Arguments]":`${f?"":"Arguments "}[${vf(e,t,n,i,o,xo)}]`:_L(h)?u?`[${e.constructor.name}]`:`${f||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${vf(e,t,n,i,o,xo)}]`:h==="[object Map]"?u?"[Map]":`Map {${sd(e.entries(),t,n,i,o,xo," => ")}}`:h==="[object Set]"?u?"[Set]":`Set {${Lg(e.values(),t,n,i,o,xo)}}`:u||wL(e)?`[${Oh(e)}]`:`${f||!t.printBasicPrototype&&Oh(e)==="Object"?"":`${Oh(e)} `}{${Og(e,t,n,i,o,xo)}}`}function CL(e){return e.serialize!=null}function wS(e,t,n,i,o,l){let u;try{u=CL(e)?e.serialize(t,n,i,o,l,xo):e.print(t,f=>xo(f,n,i,o,l),f=>{const h=i+n.indent;return h+f.replaceAll(SL,`
35
- ${h}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(f){throw new vS(f.message,f.stack)}if(typeof u!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof u}".`);return u}function xS(e,t){for(const n of e)try{if(n.test(t))return n}catch(i){throw new vS(i.message,i.stack)}return null}function xo(e,t,n,i,o,l){let u;const f=xS(t.plugins,e);if(f!==null)u=wS(f,e,t,n,i,o);else{const h=yS(e,t.printFunctionName,t.escapeRegex,t.escapeString);h!==null?u=h:u=bS(e,t,n,i,o,l)}return t.outputLength+=u.length,t.outputLength>t.maxOutputLength&&(t.maxDepth=0),u}const Fg={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},SS=Object.keys(Fg),Sr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxOutputLength:1e6,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:Fg};function EL(e){for(const t of Object.keys(e))if(!Object.hasOwn(Sr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function AL(){return SS.reduce((e,t)=>{const n=Fg[t],i=n&&gM[n];if(i&&typeof i.close=="string"&&typeof i.open=="string")e[t]=i;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function $L(){return SS.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function _S(e){return e?.printFunctionName??Sr.printFunctionName}function kS(e){return e?.escapeRegex??Sr.escapeRegex}function TS(e){return e?.escapeString??Sr.escapeString}function U0(e){return{callToJSON:e?.callToJSON??Sr.callToJSON,colors:e?.highlight?AL():$L(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Sr.compareKeys,escapeRegex:kS(e),escapeString:TS(e),indent:e?.min?"":NL(e?.indent??Sr.indent),maxDepth:e?.maxDepth??Sr.maxDepth,maxWidth:e?.maxWidth??Sr.maxWidth,min:e?.min??Sr.min,plugins:e?.plugins??Sr.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:_S(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?" ":`
34
+ */var F0;function oL(){if(F0)return St;F0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function _(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case e:switch(C=C.type,C){case n:case o:case i:case p:case g:return C;default:switch(C=C&&C.$$typeof,C){case f:case u:case h:case y:case v:case l:return C;default:return E}}case t:return E}}}return St.ContextConsumer=u,St.ContextProvider=l,St.Element=e,St.ForwardRef=h,St.Fragment=n,St.Lazy=y,St.Memo=v,St.Portal=t,St.Profiler=o,St.StrictMode=i,St.Suspense=p,St.SuspenseList=g,St.isAsyncMode=function(){return!1},St.isConcurrentMode=function(){return!1},St.isContextConsumer=function(C){return _(C)===u},St.isContextProvider=function(C){return _(C)===l},St.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},St.isForwardRef=function(C){return _(C)===h},St.isFragment=function(C){return _(C)===n},St.isLazy=function(C){return _(C)===y},St.isMemo=function(C){return _(C)===v},St.isPortal=function(C){return _(C)===t},St.isProfiler=function(C){return _(C)===o},St.isStrictMode=function(C){return _(C)===i},St.isSuspense=function(C){return _(C)===p},St.isSuspenseList=function(C){return _(C)===g},St.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===i||C===p||C===g||C===w||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===l||C.$$typeof===u||C.$$typeof===h||C.$$typeof===$||C.getModuleId!==void 0)},St.typeOf=_,St}var z0;function sL(){return z0||(z0=1,Lh.exports=oL()),Lh.exports}var pS=sL(),lL=dS(pS),aL=iS({__proto__:null,default:lL},[pS]);const cL=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ls=Object.fromEntries(cL.map(e=>[e,t=>aL[e](t)||iL[e](t)]));function gS(e,t=[]){if(Array.isArray(e))for(const n of e)gS(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function H0(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ls.isFragment(e))return"React.Fragment";if(ls.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ls.isContextProvider(e))return"Context.Provider";if(ls.isContextConsumer(e))return"Context.Consumer";if(ls.isForwardRef(e)){if(t.displayName)return t.displayName;const n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(ls.isMemo(e)){const n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function uL(e){const{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}const fL=(e,t,n,i,o,l)=>++i>t.maxDepth?Ig(H0(e),t):Pg(H0(e),Rg(uL(e),e.props,t,n+t.indent,i,o,l),ld(gS(e.props.children),t,n+t.indent,i,o,l),t,n),dL=e=>e!=null&&ls.isElement(e),hL={serialize:fL,test:dL},pL=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function gL(e){const{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}const mL=(e,t,n,i,o,l)=>++i>t.maxDepth?Ig(e.type,t):Pg(e.type,e.props?Rg(gL(e),e.props,t,n+t.indent,i,o,l):"",e.children?ld(e.children,t,n+t.indent,i,o,l):"",t,n),vL=e=>e&&e.$$typeof===pL,yL={serialize:mL,test:vL},mS=Object.prototype.toString,bL=Date.prototype.toISOString,wL=Error.prototype.toString,B0=RegExp.prototype.toString;function Oh(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function xL(e){return typeof window<"u"&&e===window}const SL=/^Symbol\((.*)\)(.*)$/,_L=/\n/g;class vS extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}}function kL(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function TL(e){return Object.is(e,-0)?"-0":String(e)}function CL(e){return`${e}n`}function j0(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function W0(e){return String(e).replace(SL,"Symbol($1)")}function q0(e){return`[${wL.call(e)}]`}function yS(e,t,n,i){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const o=typeof e;if(o==="number")return TL(e);if(o==="bigint")return CL(e);if(o==="string")return i?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return j0(e,t);if(o==="symbol")return W0(e);const l=mS.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?j0(e,t):l==="[object Symbol]"?W0(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":bL.call(e):l==="[object Error]"?q0(e):l==="[object RegExp]"?n?B0.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):B0.call(e):e instanceof Error?q0(e):null}function bS(e,t,n,i,o,l){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const u=++i>t.maxDepth,f=t.min;if(t.callToJSON&&!u&&e.toJSON&&typeof e.toJSON=="function"&&!l)return xo(e.toJSON(),t,n,i,o,!0);const h=mS.call(e);return h==="[object Arguments]"?u?"[Arguments]":`${f?"":"Arguments "}[${vf(e,t,n,i,o,xo)}]`:kL(h)?u?`[${e.constructor.name}]`:`${f||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${vf(e,t,n,i,o,xo)}]`:h==="[object Map]"?u?"[Map]":`Map {${sd(e.entries(),t,n,i,o,xo," => ")}}`:h==="[object Set]"?u?"[Set]":`Set {${Lg(e.values(),t,n,i,o,xo)}}`:u||xL(e)?`[${Oh(e)}]`:`${f||!t.printBasicPrototype&&Oh(e)==="Object"?"":`${Oh(e)} `}{${Og(e,t,n,i,o,xo)}}`}function EL(e){return e.serialize!=null}function wS(e,t,n,i,o,l){let u;try{u=EL(e)?e.serialize(t,n,i,o,l,xo):e.print(t,f=>xo(f,n,i,o,l),f=>{const h=i+n.indent;return h+f.replaceAll(_L,`
35
+ ${h}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(f){throw new vS(f.message,f.stack)}if(typeof u!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof u}".`);return u}function xS(e,t){for(const n of e)try{if(n.test(t))return n}catch(i){throw new vS(i.message,i.stack)}return null}function xo(e,t,n,i,o,l){let u;const f=xS(t.plugins,e);if(f!==null)u=wS(f,e,t,n,i,o);else{const h=yS(e,t.printFunctionName,t.escapeRegex,t.escapeString);h!==null?u=h:u=bS(e,t,n,i,o,l)}return t._outputLengthPerDepth[i]??=0,t._outputLengthPerDepth[i]+=u.length,t._outputLengthPerDepth[i]>t.maxOutputLength&&(t.maxDepth=0),u}const Fg={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},SS=Object.keys(Fg),Sr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxOutputLength:1e6,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:Fg};function AL(e){for(const t of Object.keys(e))if(!Object.hasOwn(Sr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function $L(){return SS.reduce((e,t)=>{const n=Fg[t],i=n&&mM[n];if(i&&typeof i.close=="string"&&typeof i.open=="string")e[t]=i;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function NL(){return SS.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function _S(e){return e?.printFunctionName??Sr.printFunctionName}function kS(e){return e?.escapeRegex??Sr.escapeRegex}function TS(e){return e?.escapeString??Sr.escapeString}function U0(e){return{callToJSON:e?.callToJSON??Sr.callToJSON,colors:e?.highlight?$L():NL(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Sr.compareKeys,escapeRegex:kS(e),escapeString:TS(e),indent:e?.min?"":ML(e?.indent??Sr.indent),maxDepth:e?.maxDepth??Sr.maxDepth,maxWidth:e?.maxWidth??Sr.maxWidth,min:e?.min??Sr.min,plugins:e?.plugins??Sr.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:_S(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?" ":`
36
36
  `,spacingOuter:e?.min?"":`
37
- `,maxOutputLength:e?.maxOutputLength??Sr.maxOutputLength,outputLength:0}}function NL(e){return Array.from({length:e+1}).join(" ")}function V0(e,t){if(t&&(EL(t),t.plugins)){const i=xS(t.plugins,e);if(i!==null)return wS(i,e,U0(t),"",0,[])}const n=yS(e,_S(t),kS(t),TS(t));return n!==null?n:bS(e,U0(t),"",0,[])}const ML={AsymmetricMatcher:wM,DOMCollection:EM,DOMElement:FM,Immutable:QM,ReactElement:dL,ReactTestComponent:vL},G0={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},LL={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},$l="…";function OL(e,t){const n=G0[LL[t]]||G0[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function RL({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:o=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:f=[],truncate:h=1/0,stylize:p=String}={},g){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!i,showProxy:!!o,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=OL),v}function PL(e){return e>="\uD800"&&e<="\uDBFF"}function zo(e,t,n=$l){e=String(e);const i=n.length,o=e.length;if(i>t&&o>i)return n;if(o>t&&o>i){let l=t-i;return l>0&&PL(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Gr(e,t,n,i=", "){n=n||t.inspect;const o=e.length;if(o===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<o;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${$l}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),$=u.length+w.length,_=$+h.length;if(g&&$>l&&u.length+h.length<=l||!g&&!v&&_>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&_>l&&$+f.length>l))break;if(u+=w,!g&&!v&&$+f.length>=l){h=`${$l}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function IL(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ac([e,t],n){return n.truncate-=2,typeof e=="string"?e=IL(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function DL(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Gr(e,t);t.truncate-=i.length;let o="";return n.length&&(o=Gr(n.map(l=>[l,e[l]]),t,ac)),`[ ${i}${o?`, ${o}`:""} ]`}const FL=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Ei(e,t){const n=FL(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let o="";for(let u=0;u<e.length;u++){const f=`${t.stylize(zo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){o+=`${$l}(${e.length-e[u]+1})`;break}o+=f}let l="";return i.length&&(l=Gr(i.map(u=>[u,e[u]]),t,ac)),`${n}[ ${o}${l?`, ${l}`:""} ]`}function zL(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),o=i[0];return t.stylize(`${o}T${zo(i[1],t.truncate-o.length-1)}`,"date")}function K0(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${zo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function HL([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function BL(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function jL(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Gr(BL(e),t,HL)} }`)}const WL=Number.isNaN||(e=>e!==e);function Y0(e,t){return WL(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(zo(String(e),t.truncate),"number")}function X0(e,t){let n=zo(e.toString(),t.truncate-1);return n!==$l&&(n+="n"),t.stylize(n,"bigint")}function qL(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${zo(o,i)}/${n}`,"regexp")}function UL(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function VL(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Gr(UL(e),t)} }`)}const J0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),GL={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},KL=16;function YL(e){return GL[e]||`\\u${`0000${e.charCodeAt(0).toString(KL)}`.slice(-4)}`}function Z0(e,t){return J0.test(e)&&(e=e.replace(J0,YL)),t.stylize(`'${zo(e,t.truncate-2)}'`,"string")}function Q0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}const XL=()=>"Promise{…}";function Hu(e,t){const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&i.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=Gr(n.map(f=>[f,e[f]]),t,ac),l=Gr(i.map(f=>[f,e[f]]),t,ac);t.seen.pop();let u="";return o&&l&&(u=", "),`{ ${o}${u}${l} }`}const Rh=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function JL(e,t){let n="";return Rh&&Rh in e&&(n=e[Rh]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Hu(e,t)}`}function ZL(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Gr(e,t)} ]`)}const QL=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function eO(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>QL.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let o="";if(typeof e.message=="string"?o=zo(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Gr(n.map(u=>[u,e[u]]),t,ac);return`${i}${o}${l?` { ${l} }`:""}`}function tO([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Sp(e,t){return Gr(e,t,nO,`
38
- `)}function nO(e,t){switch(e.nodeType){case 1:return CS(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function CS(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),o=t.stylize(`<${i}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${i}>`,"special");t.truncate-=i.length*2+5;let f="";n.length>0&&(f+=" ",f+=Gr(n.map(g=>[g,e.getAttribute(g)]),t,tO," ")),t.truncate-=f.length;const h=t.truncate;let p=Sp(e.children,t);return p&&p.length>h&&(p=`${$l}(${e.children.length})`),`${o}${f}${l}${p}${u}`}const rO=typeof Symbol=="function"&&typeof Symbol.for=="function",Ph=rO?Symbol.for("chai/inspect"):"@@chai/inspect",Ih=Symbol.for("nodejs.util.inspect.custom"),eb=new WeakMap,tb={},nb={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Y0,Number:Y0,bigint:X0,BigInt:X0,string:Z0,String:Z0,function:K0,Function:K0,symbol:Q0,Symbol:Q0,Array:DL,Date:zL,Map:jL,Set:VL,RegExp:qL,Promise:XL,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:ZL,Int8Array:Ei,Uint8Array:Ei,Uint8ClampedArray:Ei,Int16Array:Ei,Uint16Array:Ei,Int32Array:Ei,Uint32Array:Ei,Float32Array:Ei,Float64Array:Ei,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:eO,HTMLCollection:Sp,NodeList:Sp},iO=(e,t,n,i)=>Ph in e&&typeof e[Ph]=="function"?e[Ph](t):Ih in e&&typeof e[Ih]=="function"?e[Ih](t.depth,t,i):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&eb.has(e.constructor)?eb.get(e.constructor)(e,t):tb[n]?tb[n](e,t):"",oO=Object.prototype.toString;function Bu(e,t={}){const n=RL(t,Bu),{customInspect:i}=n;let o=e===null?"null":typeof e;if(o==="object"&&(o=oO.call(e).slice(8,-1)),o in nb)return nb[o](e,n);if(i&&e){const u=iO(e,n,o,Bu);if(u)return typeof u=="string"?u:Bu(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Hu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?CS(e,n):"constructor"in e?e.constructor!==Object?JL(e,n):Hu(e,n):e===Object(e)?Hu(e,n):n.stylize(String(e),o)}const{AsymmetricMatcher:ES,DOMCollection:AS,DOMElement:sO,Immutable:$S,ReactElement:NS,ReactTestComponent:MS}=ML,lO=[MS,NS,sO,AS,$S,ES];function LS(e,t=10,{maxLength:n,filterNode:i,...o}={}){const l=n??1e4;let u;const f=typeof i=="string"?aO(i):i,h=f?[MS,NS,DM(f),AS,$S,ES]:lO;try{u=V0(e,{maxDepth:t,escapeString:!1,plugins:h,...o})}catch{u=V0(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:h,...o})}return u.length>=l&&t>1?LS(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:i,...o}):u}function aO(e){return i=>{if(i.nodeType===8)return!1;if(i.nodeType===1&&i.matches)try{return!i.matches(e)}catch{return!0}return!0}}const OS=/%[sdjifoOc%]/g;function cO(e,t={}){const n=(f,h)=>t.prettifyObject?LS(f,void 0,{printBasicPrototype:!1,escapeString:!1}):RS(f,h);if(typeof e[0]!="string"){const f=[];for(let h=0;h<e.length;h++)f.push(n(e[h],{depth:0,colors:!1}));return f.join(" ")}const i=e.length;let o=1;const l=e[0];let u=String(l).replace(OS,f=>{if(f==="%%")return"%";if(o>=i)return f;switch(f){case"%s":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="number"&&h===0&&1/h<0?"-0":typeof h=="object"&&h!==null?typeof h.toString=="function"&&h.toString!==Object.prototype.toString?h.toString():n(h,{depth:0,colors:!1}):String(h)}case"%d":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="symbol"?"NaN":Number(h).toString()}case"%i":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:Number.parseInt(String(h)).toString()}case"%f":return Number.parseFloat(String(e[o++])).toString();case"%o":return n(e[o++],{showHidden:!0,showProxy:!0});case"%O":return n(e[o++]);case"%c":return o++,"";case"%j":try{return JSON.stringify(e[o++])}catch(h){const p=h.message;if(p.includes("circular structure")||p.includes("cyclic structures")||p.includes("cyclic object"))return"[Circular]";throw h}default:return f}});for(let f=e[o];o<i;f=e[++o])f===null||typeof f!="object"?u+=` ${typeof f=="symbol"?f.toString():f}`:u+=` ${n(f)}`;return u}function uO(...e){return cO(e)}function RS(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Bu(e,t)}function fO(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=RS(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const o=Object.keys(e);return`{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}function PS(e){return e!=null}function Hl(e,t,n){const i=typeof e;if(!n.includes(i))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${i}"`)}function dO(e){const t=[];let n="none";for(let i=0;i<e.length;++i)n==="singleline"?e[i]===`
39
- `&&(n="none"):n==="multiline"?e[i-1]==="*"&&e[i]==="/"&&(n="none"):n==="none"&&(e[i]==="/"&&e[i+1]==="/"?n="singleline":e[i]==="/"&&e[i+1]==="*"?(n="multiline",i+=2):t.push(e[i]));return t.join("")}function bs(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function IS(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function rb(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let o=e;for(const l of i)if(o=new Object(o)[l],o===void 0)return n;return o}function ib(){let e=null,t=null;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function hO(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function ob(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function sb(e){return Array.from(new Set(e))}const lb=Symbol("vitest:SAFE_TIMERS");function DS(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}=globalThis[lb]||globalThis,{nextTick:f}=globalThis[lb]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}}const pO=/^[A-Za-z]:\//;function gO(e=""){return e&&e.replace(/\\/g,"/").replace(pO,t=>t.toUpperCase())}const mO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function vO(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const FS=function(...e){e=e.map(i=>gO(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:vO();!o||o.length===0||(t=`${o}/${t}`,n=ab(o))}return t=yO(t,!n),n&&!ab(t)?`/${t}`:t.length>0?t:"."};function yO(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const ab=function(e){return mO.test(e)};var bO=44,cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wO=new Uint8Array(64),zS=new Uint8Array(128);for(let e=0;e<cb.length;e++){const t=cb.charCodeAt(e);wO[e]=t,zS[t]=e}function _a(e,t){let n=0,i=0,o=0;do{const u=e.next();o=zS[u],n|=(o&31)<<i,i+=5}while(o&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function ub(e,t){return e.pos>=t?!1:e.peek()!==bO}var xO=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:n}=this,i=t.indexOf(e,n);return i===-1?t.length:i}};function SO(e){const{length:t}=e,n=new xO(e),i=[];let o=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(o=0;n.pos<p;){let w;o=_a(n,o),o<y&&(v=!1),y=o,ub(n,p)?(l=_a(n,l),u=_a(n,u),f=_a(n,f),ub(n,p)?(h=_a(n,h),w=[o,l,u,f,h]):w=[o,l,u,f]):w=[o],g.push(w),n.pos++}v||_O(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function _O(e){e.sort(kO)}function kO(e,t){return e[0]-t[0]}var cd=0,TO=1,CO=2,EO=3,AO=4,yf=!1;function $O(e,t,n,i){for(;n<=i;){const o=n+(i-n>>1),l=e[o][cd]-t;if(l===0)return yf=!0,o;l<0?n=o+1:i=o-1}return yf=!1,n-1}function NO(e,t,n){for(let i=n+1;i<e.length&&e[i][cd]===t;n=i++);return n}function MO(e,t,n){for(let i=n-1;i>=0&&e[i][cd]===t;n=i--);return n}function LO(e,t,n,i){const{lastKey:o,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===o){if(t===l)return yf=u!==-1&&e[u][cd]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=$O(e,t,f,h)}var OO="`line` must be greater than 0 (lines start at line 1)",RO="`column` must be greater than or equal to 0 (columns start at column 0)",fb=-1,PO=1;function IO(e){var t;return(t=e)._decoded||(t._decoded=SO(e._encoded))}function DO(e,t){let{line:n,column:i,bias:o}=t;if(n--,n<0)throw new Error(OO);if(i<0)throw new Error(RO);const l=IO(e);if(n>=l.length)return ku(null,null,null,null);const u=l[n],f=FO(u,e._decodedMemo,n,i,o||PO);if(f===-1)return ku(null,null,null,null);const h=u[f];if(h.length===1)return ku(null,null,null,null);const{names:p,resolvedSources:g}=e;return ku(g[h[TO]],h[CO]+1,h[EO],h.length===5?p[h[AO]]:null)}function ku(e,t,n,i){return{source:e,line:t,column:n,name:i}}function FO(e,t,n,i,o){let l=LO(e,i,t,n);return yf?l=(o===fb?NO:MO)(e,i,l):o===fb&&l++,l===-1||l===e.length?-1:l}const zg=/^\s*at .*(?:\S:\d+|\(native\))/m,zO=/^(?:eval@)?(?:\[native code\])?$/,HO=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/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__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],BO=Date.now().toString().length,jO=new RegExp(`vitest=\\d{${BO}}`);function HS(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const o=new URL(i);o.searchParams.delete("import"),o.searchParams.delete("browserv"),i=o.pathname+o.hash+o.search}if(i.startsWith("/@fs/")){const o=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(o?5:4)}return i.includes("vitest=")&&(i=i.replace(jO,"").replace(/[?&]$/,"")),[i,n[2]||void 0,n[3]||void 0]}function BS(e){let t=e.trim();if(zO.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,i="",o;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){n=h,i=p,o=h>0?t.slice(0,h):void 0;break}}if(n===-1||!i.includes(":")||i.length<3)return null;const[l,u,f]=HS(i);return!l||!u||!f?null:{file:l,method:o||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function WO(e){const t=e.trim();return zg.test(t)?jS(t):BS(t)}function jS(e){let t=e.trim();if(!zg.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[o,l,u]=HS(i?i[1]:n);let f=i&&n||"",h=o&&["eval","<anonymous>"].includes(o)?void 0:o;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:FS(h),f&&(f=f.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function qO(e,t={}){const{ignoreStackEntries:n=HO}=t;let i=zg.test(e)?VO(e):UO(e);const o=i.findLastIndex(l=>l.method==="__VITEST_HELPER__"||l.method==="async*__VITEST_HELPER__");return o>=0&&(i=i.slice(o+1)),i.map(l=>{t.getUrlId&&(l.file=t.getUrlId(l.file));const u=t.getSourceMap?.(l.file);if(!u||typeof u!="object"||!u.version)return db(n,l.file)?null:l;const f=new GO(u,l.file),h=YO(f,l);if(!h)return l;const{line:p,column:g,source:v,name:y}=h;let w=v||l.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),db(n,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:y||l.method}:l}).filter(l=>l!=null)}function db(e,t){return e.some(n=>t.match(n))}function UO(e){return e.split(`
40
- `).map(t=>BS(t)).filter(PS)}function VO(e){return e.split(`
41
- `).map(t=>jS(t)).filter(PS)}class GO{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;const{mappings:i,names:o,sources:l}=t;this.version=t.version,this.names=o||[],this._encoded=i||"",this._decodedMemo=KO(),this.url=n,this.resolvedSources=(l||[]).map(u=>FS(n,"..",u||""))}}function KO(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function YO(e,t){const n=DO(e,t);return n.column==null?null:n}const XO=/^[A-Za-z]:\//;function Hg(e=""){return e&&e.replace(/\\/g,"/").replace(XO,t=>t.toUpperCase())}const JO=/^[/\\]{2}/,ZO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,QO=/^[A-Za-z]:$/,hb=/^\/([A-Za-z]:)?$/,eR=function(e){if(e.length===0)return".";e=Hg(e);const t=e.match(JO),n=bf(e),i=e[e.length-1]==="/";return e=WS(e,!n),e.length===0?n?"/":i?"./":".":(i&&(e+="/"),QO.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!bf(e)?`/${e}`:e)},tR=function(...e){let t="";for(const n of e)if(n)if(t.length>0){const i=t[t.length-1]==="/",o=n[0]==="/";i&&o?t+=n.slice(1):t+=i||o?n:`/${n}`}else t+=n;return eR(t)};function nR(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const pb=function(...e){e=e.map(i=>Hg(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:nR();!o||o.length===0||(t=`${o}/${t}`,n=bf(o))}return t=WS(t,!n),n&&!bf(t)?`/${t}`:t.length>0?t:"."};function WS(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const bf=function(e){return ZO.test(e)},ud=function(e,t){const n=pb(e).replace(hb,"$1").split("/"),i=pb(t).replace(hb,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const o=[...n];for(const l of o){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")},rR=function(e,t){const n=Hg(e).split("/");let i="";for(let o=n.length-1;o>=0;o--){const l=n[o];if(l){i=l;break}}return t&&i.endsWith(t)?i.slice(0,-t.length):i};class iR extends Error{code="VITEST_PENDING";taskId;constructor(t,n,i){super(t),this.message=t,this.note=i,this.taskId=n.id}}class mo extends Error{name="FixtureDependencyError"}class oR extends Error{name="FixtureAccessError"}class gb extends Error{name="FixtureParseError"}const sR=new WeakMap,qS=new WeakMap,US=new WeakMap;function lR(e,t){sR.set(e,t)}function aR(e,t){qS.set(e,t)}function cR(e){return qS.get(e)}function uR(e,t){US.set(e,t)}function fR(e){return US.get(e)}const ju=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class un{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){un._definitions.length=0}static getWorkerContexts(){return un._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return un._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return IS(t)&&Object.keys(t).some(n=>un._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,un._definitions.push(this)}extend(t,n){const{suite:i}=pi(),o=!i||i.file===i,l=this.parseUserFixtures(t,n,o);return new un(l)}get(t){let n=t;for(;n;){const i=this._overrides.get(n);if(i)return i;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:i,file:o}=pi(),l=i||o,u=!i||i.file===i,f=new Map(this.get(l)),h=this.parseUserFixtures(t,n,u,f);u?this._registrations=h:this._overrides.set(l,h)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(un._workerContextSuite)||this._suiteContexts.set(un._workerContextSuite,Object.create(null)),this._suiteContexts.get(un._workerContextSuite)}parseUserFixtures(t,n,i,o=new Map(this._registrations)){const l=[];Object.entries(n).forEach(([u,f])=>{let h,p,g;Array.isArray(f)&&f.length>=2&&un.isFixtureOptions(f[1])?(g=f[1],h={auto:g.auto??!1,scope:g.scope??"test",injected:g.injected??!1},p=h.injected?t.injectValue?.(u)??f[0]:f[0]):p=f;const v=o.get(u);v&&h?(v.scope!==h.scope&&l.push(new mo(`The "${u}" fixture was already registered with a "${h.scope}" scope.`)),v.auto!==h.auto&&l.push(new mo(`The "${u}" fixture was already registered as { auto: ${h.auto} }.`))):v?h={auto:v.auto,scope:v.scope,injected:v.injected}:h||(h={auto:!1,injected:!1,scope:"test"}),h.scope&&!un._fixtureScopes.includes(h.scope)&&l.push(new mo(`The "${u}" fixture has unknown scope "${h.scope}".`)),!i&&h.scope!=="test"&&l.push(new mo(`The "${u}" fixture cannot be defined with a ${h.scope} scope${!g?.scope&&v?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const y=cc(p)?Bg(p):new Set,w={name:u,value:p,auto:h.auto??!1,injected:h.injected??!1,scope:h.scope??"test",deps:y,parent:v};cc(p)&&Object.assign(p,{[ju]:new Error("STACK_TRACE_ERROR")}),o.set(u,w),w.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(w.scope="file")});for(const u of o.values())for(const f of u.deps){if(un._builtinFixtures.includes(f))continue;const h=o.get(f);if(!h){l.push(new mo(`The "${u.name}" fixture depends on unknown fixture "${f}".`));continue}if(f===u.name&&!u.parent){l.push(new mo(`The "${u.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(un._fixtureScopes.indexOf(u.scope)>un._fixtureScopes.indexOf(h.scope)){l.push(new mo(`The ${u.scope} "${u.name}" fixture cannot depend on a ${h.scope} fixture "${h.name}".`));continue}}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Cannot resolve user fixtures. See errors for more information.");return o}}const pl=new WeakMap,Dh=new WeakMap;function Ec(e,t){const n=pi(),i=t?.suite||n.suite||n.file;return async o=>{const l=o||t?.context;if(!l)return t?.suiteHook&&pR(e,t.suiteHook,t.stackTraceError),e({});const u=t?.fixtures||cR(l);if(!u)return e(l);const f=u.get(i);if(!f.size)return e(l);const h=[],p=Bg(e);for(const w of f.values())(w.auto||p.has(w.name))&&h.push(w);if(!h.length)return e(l);pl.has(l)||pl.set(l,[]);const g=pl.get(l),v=GS(h,f);if(!v.length)return e(l);if(t?.suiteHook){const w=v.filter($=>$.scope==="test");if(w.length>0){const $=w.map(E=>`"${E.name}"`).join(", "),_={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},C=new mo(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${$}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${_[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(C.stack=C.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),C}}Dh.has(l)||Dh.set(l,new WeakSet);const y=Dh.get(l);for(const w of v)if(w.scope==="test"){if(y.has(w))continue;y.add(w);const $=await dR(w,l,g);l[w.name]=$,g.push(()=>{y.delete(w)})}else{const $=await hR(u,i,w);l[w.name]=$}return e(l)}}function cc(e){return typeof e=="function"}function dR(e,t,n){return cc(e.value)?VS(e.value,e.name,t,n):e.value}const Tu=new WeakMap;async function hR(e,t,n){const i=e.getWorkerContext(),o=e.getFileContext(t.file),l=n.scope==="worker"?i:o;if(!cc(n.value))return l[n.name]=n.value,n.value;if(n.name in l)return l[n.name];if(Tu.has(n))return Tu.get(n);pl.has(l)||pl.set(l,[]);const u=pl.get(l),f=VS(n.value,n.name,n.scope==="file"?{...i,...o}:l,u).then(h=>(l[n.name]=h,Tu.delete(n),h));return Tu.set(n,f),f}async function VS(e,t,n,i){const o=ib(),l=ju in e&&e[ju]instanceof Error?e[ju]:void 0;let u=!1;const f=e(n,async h=>{u=!0,o.resolve(h);const p=ib();i.push(async()=>{p.resolve(),await f}),await p}).then(()=>{if(!u){const h=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);l?.stack&&(h.stack=h.message+l.stack.replace(l.message,"")),o.reject(h)}}).catch(h=>{if(!u){o.reject(h);return}throw h});return o}function GS(e,t,n=new Set,i=[]){return e.forEach(o=>{if(!i.includes(o)){if(!cc(o.value)||!o.deps){i.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(l=>l.name).join(" <- ")}`);n.add(o),GS([...o.deps].map(l=>l===o.name?o.parent:t.get(l)).filter(l=>!!l),t,n,i),i.push(o),n.clear()}}),i}function pR(e,t,n){const i=Bg(e,{sourceError:n,suiteHook:t});if(i.size){const o=new oR(`The ${t} hook uses fixtures "${[...i].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
42
- If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}const _p=Symbol("$vitest:fixture-props"),kp=Symbol("$vitest:fixture-prop-names");function wf(e,t){Object.defineProperty(e,_p,{value:t,enumerable:!1})}function Cu(e,t){return e[kp]=t,t}function Bg(e,{sourceError:t,suiteHook:n}={}){if(kp in e)return e[kp];const{index:i=0,original:o=e}=_p in e?e[_p]:{};let l=dO(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(l)&&(l=l.split(/__async\((?:this|null),/)[1]);const u=l.match(/[^(]*\(([^)]*)/);if(!u)return Cu(e,new Set);const f=mb(u[1]);if(!f.length)return Cu(e,new Set);const h=f[i];if(!h)return Cu(e,new Set);if(!(h[0]==="{"&&h.endsWith("}"))){const y=ob(i+1),w=new gb(`The ${y} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${h}".${n?` If you used internal "suite" task as the ${y} argument previously, access it in the ${ob(i+2)} argument instead.`:""}`);throw t&&(w.stack=t.stack?.replace(t.message,w.message)),w}const p=h.slice(1,-1).replace(/\s/g,""),g=mb(p).map(y=>y.replace(/:.*|=.*/g,"")),v=g.at(-1);if(v&&v.startsWith("...")){const y=new gb(`Rest parameters are not supported in fixtures, received "${v}".`);throw t&&(y.stack=t.stack?.replace(t.message,y.message)),y}return Cu(e,new Set(g))}function mb(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n.at(-1))n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const o=e.substring(i).trim();return o&&t.push(o),t}const KS=Symbol("kChainableContext");function Ii(e){return e?.[KS]}function YS(e,t,n){function i(l){const u=function(...f){return t.apply(l,f)};Object.assign(u,t),Object.defineProperty(u,KS,{value:{withContext:()=>u.bind(l),getFixtures:()=>l.fixtures,setContext:(f,h)=>{l[f]=h},mergeContext:f=>{Object.assign(l,f)}},enumerable:!1});for(const f of e)Object.defineProperty(u,f,{get(){return i({...l,[f]:!0})}});return u}const o=i(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function ws(){return qg().config.hookTimeout}const XS=Symbol.for("VITEST_CLEANUP_TIMEOUT"),JS=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),ZS=Symbol.for("VITEST_AROUND_TIMEOUT"),QS=Symbol.for("VITEST_AROUND_STACK_TRACE");function gR(e,t=ws()){Hl(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=Ii(this);return pi().on("beforeAll",Object.assign(xs(jg("beforeAll",e,i,n),t,!0,n),{[XS]:t,[JS]:n}))}function mR(e,t){Hl(e,'"afterAll" callback',["function"]);const n=Ii(this),i=new Error("STACK_TRACE_ERROR");return pi().on("afterAll",xs(jg("afterAll",e,n,i),t??ws(),!0,i))}function vR(e,t=ws()){Hl(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=(o,l)=>Ec(e,{suite:l})(o);return pi().on("beforeEach",Object.assign(xs(i,t??ws(),!0,n,Vg),{[XS]:t,[JS]:n}))}function yR(e,t){Hl(e,'"afterEach" callback',["function"]);const n=(i,o)=>Ec(e,{suite:o})(i);return pi().on("afterEach",xs(n,t??ws(),!0,new Error("STACK_TRACE_ERROR"),Vg))}function bR(e,t){Hl(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=Ii(this);return pi().on("aroundAll",Object.assign(jg("aroundAll",e,o,n,1),{[ZS]:i,[QS]:n}))}function wR(e,t){Hl(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=(l,u,f)=>{const h=g=>e(l,g,f);return wf(h,{index:1,original:e}),Ec(h,{suite:f})(u)};return pi().on("aroundEach",Object.assign(o,{[ZS]:i,[QS]:n}))}function jg(e,t,n,i,o=0){return(...l)=>{const u=l.at(-1),f=l.slice(0,-1),h=y=>t(...f,y,u);wf(h,{index:o,original:t});const p=n?.getFixtures(),g=p?.getFileContext(u.file);return Ec(h,{suiteHook:e,fixtures:p,context:g,stackTraceError:i})()}}function xR(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function e_(e,t,n,i,o){const l=ud(t,e),u={id:SR(l,n),name:l,fullName:l,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i,viteEnvironment:o};return u.file=u,u}function SR(e,t){return xR(`${e}${t||""}`)}function t_(e,t){const n=t.split(`
43
- `).slice(1);for(const i of n){const o=WO(i);if(o&&o.file===e)return o}}function _R(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(i=>i.name));for(const i of t)if(!n.has(i))throw xf(e.tags,i)}function xf(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
37
+ `,maxOutputLength:e?.maxOutputLength??Sr.maxOutputLength,_outputLengthPerDepth:[]}}function ML(e){return Array.from({length:e+1}).join(" ")}function V0(e,t){if(t&&(AL(t),t.plugins)){const i=xS(t.plugins,e);if(i!==null)return wS(i,e,U0(t),"",0,[])}const n=yS(e,_S(t),kS(t),TS(t));return n!==null?n:bS(e,U0(t),"",0,[])}const LL={AsymmetricMatcher:xM,DOMCollection:AM,DOMElement:zM,Immutable:eL,ReactElement:hL,ReactTestComponent:yL},G0={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},OL={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},$l="…";function RL(e,t){const n=G0[OL[t]]||G0[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function PL({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:o=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:f=[],truncate:h=1/0,stylize:p=String}={},g){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!i,showProxy:!!o,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=RL),v}function IL(e){return e>="\uD800"&&e<="\uDBFF"}function zo(e,t,n=$l){e=String(e);const i=n.length,o=e.length;if(i>t&&o>i)return n;if(o>t&&o>i){let l=t-i;return l>0&&IL(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Gr(e,t,n,i=", "){n=n||t.inspect;const o=e.length;if(o===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<o;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${$l}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),$=u.length+w.length,_=$+h.length;if(g&&$>l&&u.length+h.length<=l||!g&&!v&&_>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&_>l&&$+f.length>l))break;if(u+=w,!g&&!v&&$+f.length>=l){h=`${$l}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function DL(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ac([e,t],n){return n.truncate-=2,typeof e=="string"?e=DL(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function FL(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Gr(e,t);t.truncate-=i.length;let o="";return n.length&&(o=Gr(n.map(l=>[l,e[l]]),t,ac)),`[ ${i}${o?`, ${o}`:""} ]`}const zL=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Ei(e,t){const n=zL(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let o="";for(let u=0;u<e.length;u++){const f=`${t.stylize(zo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){o+=`${$l}(${e.length-e[u]+1})`;break}o+=f}let l="";return i.length&&(l=Gr(i.map(u=>[u,e[u]]),t,ac)),`${n}[ ${o}${l?`, ${l}`:""} ]`}function HL(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),o=i[0];return t.stylize(`${o}T${zo(i[1],t.truncate-o.length-1)}`,"date")}function K0(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${zo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function BL([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function jL(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function WL(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Gr(jL(e),t,BL)} }`)}const qL=Number.isNaN||(e=>e!==e);function Y0(e,t){return qL(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(zo(String(e),t.truncate),"number")}function X0(e,t){let n=zo(e.toString(),t.truncate-1);return n!==$l&&(n+="n"),t.stylize(n,"bigint")}function UL(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${zo(o,i)}/${n}`,"regexp")}function VL(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function GL(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Gr(VL(e),t)} }`)}const J0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),KL={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},YL=16;function XL(e){return KL[e]||`\\u${`0000${e.charCodeAt(0).toString(YL)}`.slice(-4)}`}function Z0(e,t){return J0.test(e)&&(e=e.replace(J0,XL)),t.stylize(`'${zo(e,t.truncate-2)}'`,"string")}function Q0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}const JL=()=>"Promise{…}";function Hu(e,t){const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&i.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=Gr(n.map(f=>[f,e[f]]),t,ac),l=Gr(i.map(f=>[f,e[f]]),t,ac);t.seen.pop();let u="";return o&&l&&(u=", "),`{ ${o}${u}${l} }`}const Rh=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ZL(e,t){let n="";return Rh&&Rh in e&&(n=e[Rh]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Hu(e,t)}`}function QL(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Gr(e,t)} ]`)}const eO=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function tO(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>eO.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let o="";if(typeof e.message=="string"?o=zo(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Gr(n.map(u=>[u,e[u]]),t,ac);return`${i}${o}${l?` { ${l} }`:""}`}function nO([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Sp(e,t){return Gr(e,t,rO,`
38
+ `)}function rO(e,t){switch(e.nodeType){case 1:return CS(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function CS(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),o=t.stylize(`<${i}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${i}>`,"special");t.truncate-=i.length*2+5;let f="";n.length>0&&(f+=" ",f+=Gr(n.map(g=>[g,e.getAttribute(g)]),t,nO," ")),t.truncate-=f.length;const h=t.truncate;let p=Sp(e.children,t);return p&&p.length>h&&(p=`${$l}(${e.children.length})`),`${o}${f}${l}${p}${u}`}const iO=typeof Symbol=="function"&&typeof Symbol.for=="function",Ph=iO?Symbol.for("chai/inspect"):"@@chai/inspect",Ih=Symbol.for("nodejs.util.inspect.custom"),eb=new WeakMap,tb={},nb={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Y0,Number:Y0,bigint:X0,BigInt:X0,string:Z0,String:Z0,function:K0,Function:K0,symbol:Q0,Symbol:Q0,Array:FL,Date:HL,Map:WL,Set:GL,RegExp:UL,Promise:JL,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:QL,Int8Array:Ei,Uint8Array:Ei,Uint8ClampedArray:Ei,Int16Array:Ei,Uint16Array:Ei,Int32Array:Ei,Uint32Array:Ei,Float32Array:Ei,Float64Array:Ei,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:tO,HTMLCollection:Sp,NodeList:Sp},oO=(e,t,n,i)=>Ph in e&&typeof e[Ph]=="function"?e[Ph](t):Ih in e&&typeof e[Ih]=="function"?e[Ih](t.depth,t,i):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&eb.has(e.constructor)?eb.get(e.constructor)(e,t):tb[n]?tb[n](e,t):"",sO=Object.prototype.toString;function Bu(e,t={}){const n=PL(t,Bu),{customInspect:i}=n;let o=e===null?"null":typeof e;if(o==="object"&&(o=sO.call(e).slice(8,-1)),o in nb)return nb[o](e,n);if(i&&e){const u=oO(e,n,o,Bu);if(u)return typeof u=="string"?u:Bu(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Hu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?CS(e,n):"constructor"in e?e.constructor!==Object?ZL(e,n):Hu(e,n):e===Object(e)?Hu(e,n):n.stylize(String(e),o)}const{AsymmetricMatcher:ES,DOMCollection:AS,DOMElement:lO,Immutable:$S,ReactElement:NS,ReactTestComponent:MS}=LL,aO=[MS,NS,lO,AS,$S,ES];function LS(e,t=10,{maxLength:n,filterNode:i,...o}={}){const l=n??1e4;let u;const f=typeof i=="string"?cO(i):i,h=f?[MS,NS,FM(f),AS,$S,ES]:aO;try{u=V0(e,{maxDepth:t,escapeString:!1,plugins:h,...o})}catch{u=V0(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:h,...o})}return u.length>=l&&t>1?LS(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:i,...o}):u}function cO(e){return i=>{if(i.nodeType===8)return!1;if(i.nodeType===1&&i.matches)try{return!i.matches(e)}catch{return!0}return!0}}const OS=/%[sdjifoOc%]/g;function uO(e,t={}){const n=(f,h)=>t.prettifyObject?LS(f,void 0,{printBasicPrototype:!1,escapeString:!1}):RS(f,h);if(typeof e[0]!="string"){const f=[];for(let h=0;h<e.length;h++)f.push(n(e[h],{depth:0,colors:!1}));return f.join(" ")}const i=e.length;let o=1;const l=e[0];let u=String(l).replace(OS,f=>{if(f==="%%")return"%";if(o>=i)return f;switch(f){case"%s":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="number"&&h===0&&1/h<0?"-0":typeof h=="object"&&h!==null?typeof h.toString=="function"&&h.toString!==Object.prototype.toString?h.toString():n(h,{depth:0,colors:!1}):String(h)}case"%d":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="symbol"?"NaN":Number(h).toString()}case"%i":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:Number.parseInt(String(h)).toString()}case"%f":return Number.parseFloat(String(e[o++])).toString();case"%o":return n(e[o++],{showHidden:!0,showProxy:!0});case"%O":return n(e[o++]);case"%c":return o++,"";case"%j":try{return JSON.stringify(e[o++])}catch(h){const p=h.message;if(p.includes("circular structure")||p.includes("cyclic structures")||p.includes("cyclic object"))return"[Circular]";throw h}default:return f}});for(let f=e[o];o<i;f=e[++o])f===null||typeof f!="object"?u+=` ${typeof f=="symbol"?f.toString():f}`:u+=` ${n(f)}`;return u}function fO(...e){return uO(e)}function RS(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Bu(e,t)}function dO(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=RS(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const o=Object.keys(e);return`{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}function PS(e){return e!=null}function Hl(e,t,n){const i=typeof e;if(!n.includes(i))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${i}"`)}function hO(e){const t=[];let n="none";for(let i=0;i<e.length;++i)n==="singleline"?e[i]===`
39
+ `&&(n="none"):n==="multiline"?e[i-1]==="*"&&e[i]==="/"&&(n="none"):n==="none"&&(e[i]==="/"&&e[i+1]==="/"?n="singleline":e[i]==="/"&&e[i+1]==="*"?(n="multiline",i+=2):t.push(e[i]));return t.join("")}function bs(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function IS(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function rb(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let o=e;for(const l of i)if(o=new Object(o)[l],o===void 0)return n;return o}function ib(){let e=null,t=null;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function pO(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function ob(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function sb(e){return Array.from(new Set(e))}const lb=Symbol("vitest:SAFE_TIMERS");function DS(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}=globalThis[lb]||globalThis,{nextTick:f}=globalThis[lb]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}}const gO=/^[A-Za-z]:\//;function mO(e=""){return e&&e.replace(/\\/g,"/").replace(gO,t=>t.toUpperCase())}const vO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function yO(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const FS=function(...e){e=e.map(i=>mO(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:yO();!o||o.length===0||(t=`${o}/${t}`,n=ab(o))}return t=bO(t,!n),n&&!ab(t)?`/${t}`:t.length>0?t:"."};function bO(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const ab=function(e){return vO.test(e)};var wO=44,cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xO=new Uint8Array(64),zS=new Uint8Array(128);for(let e=0;e<cb.length;e++){const t=cb.charCodeAt(e);xO[e]=t,zS[t]=e}function _a(e,t){let n=0,i=0,o=0;do{const u=e.next();o=zS[u],n|=(o&31)<<i,i+=5}while(o&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function ub(e,t){return e.pos>=t?!1:e.peek()!==wO}var SO=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:n}=this,i=t.indexOf(e,n);return i===-1?t.length:i}};function _O(e){const{length:t}=e,n=new SO(e),i=[];let o=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(o=0;n.pos<p;){let w;o=_a(n,o),o<y&&(v=!1),y=o,ub(n,p)?(l=_a(n,l),u=_a(n,u),f=_a(n,f),ub(n,p)?(h=_a(n,h),w=[o,l,u,f,h]):w=[o,l,u,f]):w=[o],g.push(w),n.pos++}v||kO(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function kO(e){e.sort(TO)}function TO(e,t){return e[0]-t[0]}var cd=0,CO=1,EO=2,AO=3,$O=4,yf=!1;function NO(e,t,n,i){for(;n<=i;){const o=n+(i-n>>1),l=e[o][cd]-t;if(l===0)return yf=!0,o;l<0?n=o+1:i=o-1}return yf=!1,n-1}function MO(e,t,n){for(let i=n+1;i<e.length&&e[i][cd]===t;n=i++);return n}function LO(e,t,n){for(let i=n-1;i>=0&&e[i][cd]===t;n=i--);return n}function OO(e,t,n,i){const{lastKey:o,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===o){if(t===l)return yf=u!==-1&&e[u][cd]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=NO(e,t,f,h)}var RO="`line` must be greater than 0 (lines start at line 1)",PO="`column` must be greater than or equal to 0 (columns start at column 0)",fb=-1,IO=1;function DO(e){var t;return(t=e)._decoded||(t._decoded=_O(e._encoded))}function FO(e,t){let{line:n,column:i,bias:o}=t;if(n--,n<0)throw new Error(RO);if(i<0)throw new Error(PO);const l=DO(e);if(n>=l.length)return ku(null,null,null,null);const u=l[n],f=zO(u,e._decodedMemo,n,i,o||IO);if(f===-1)return ku(null,null,null,null);const h=u[f];if(h.length===1)return ku(null,null,null,null);const{names:p,resolvedSources:g}=e;return ku(g[h[CO]],h[EO]+1,h[AO],h.length===5?p[h[$O]]:null)}function ku(e,t,n,i){return{source:e,line:t,column:n,name:i}}function zO(e,t,n,i,o){let l=OO(e,i,t,n);return yf?l=(o===fb?MO:LO)(e,i,l):o===fb&&l++,l===-1||l===e.length?-1:l}const zg=/^\s*at .*(?:\S:\d+|\(native\))/m,HO=/^(?:eval@)?(?:\[native code\])?$/,BO=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/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__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],jO=Date.now().toString().length,WO=new RegExp(`vitest=\\d{${jO}}`);function HS(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const o=new URL(i);o.searchParams.delete("import"),o.searchParams.delete("browserv"),i=o.pathname+o.hash+o.search}if(i.startsWith("/@fs/")){const o=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(o?5:4)}return i.includes("vitest=")&&(i=i.replace(WO,"").replace(/[?&]$/,"")),[i,n[2]||void 0,n[3]||void 0]}function BS(e){let t=e.trim();if(HO.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,i="",o;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){n=h,i=p,o=h>0?t.slice(0,h):void 0;break}}if(n===-1||!i.includes(":")||i.length<3)return null;const[l,u,f]=HS(i);return!l||!u||!f?null:{file:l,method:o||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function qO(e){const t=e.trim();return zg.test(t)?jS(t):BS(t)}function jS(e){let t=e.trim();if(!zg.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[o,l,u]=HS(i?i[1]:n);let f=i&&n||"",h=o&&["eval","<anonymous>"].includes(o)?void 0:o;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:FS(h),f&&(f=f.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function UO(e,t={}){const{ignoreStackEntries:n=BO}=t;let i=zg.test(e)?GO(e):VO(e);const o=i.findLastIndex(l=>l.method==="__VITEST_HELPER__"||l.method==="async*__VITEST_HELPER__");return o>=0&&(i=i.slice(o+1)),i.map(l=>{t.getUrlId&&(l.file=t.getUrlId(l.file));const u=t.getSourceMap?.(l.file);if(!u||typeof u!="object"||!u.version)return db(n,l.file)?null:l;const f=new KO(u,l.file),h=XO(f,l);if(!h)return l;const{line:p,column:g,source:v,name:y}=h;let w=v||l.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),db(n,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:y||l.method}:l}).filter(l=>l!=null)}function db(e,t){return e.some(n=>t.match(n))}function VO(e){return e.split(`
40
+ `).map(t=>BS(t)).filter(PS)}function GO(e){return e.split(`
41
+ `).map(t=>jS(t)).filter(PS)}class KO{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;const{mappings:i,names:o,sources:l}=t;this.version=t.version,this.names=o||[],this._encoded=i||"",this._decodedMemo=YO(),this.url=n,this.resolvedSources=(l||[]).map(u=>FS(n,"..",u||""))}}function YO(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function XO(e,t){const n=FO(e,t);return n.column==null?null:n}const JO=/^[A-Za-z]:\//;function Hg(e=""){return e&&e.replace(/\\/g,"/").replace(JO,t=>t.toUpperCase())}const ZO=/^[/\\]{2}/,QO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,eR=/^[A-Za-z]:$/,hb=/^\/([A-Za-z]:)?$/,tR=function(e){if(e.length===0)return".";e=Hg(e);const t=e.match(ZO),n=bf(e),i=e[e.length-1]==="/";return e=WS(e,!n),e.length===0?n?"/":i?"./":".":(i&&(e+="/"),eR.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!bf(e)?`/${e}`:e)},nR=function(...e){let t="";for(const n of e)if(n)if(t.length>0){const i=t[t.length-1]==="/",o=n[0]==="/";i&&o?t+=n.slice(1):t+=i||o?n:`/${n}`}else t+=n;return tR(t)};function rR(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const pb=function(...e){e=e.map(i=>Hg(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:rR();!o||o.length===0||(t=`${o}/${t}`,n=bf(o))}return t=WS(t,!n),n&&!bf(t)?`/${t}`:t.length>0?t:"."};function WS(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const bf=function(e){return QO.test(e)},ud=function(e,t){const n=pb(e).replace(hb,"$1").split("/"),i=pb(t).replace(hb,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const o=[...n];for(const l of o){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")},iR=function(e,t){const n=Hg(e).split("/");let i="";for(let o=n.length-1;o>=0;o--){const l=n[o];if(l){i=l;break}}return t&&i.endsWith(t)?i.slice(0,-t.length):i};class oR extends Error{code="VITEST_PENDING";taskId;constructor(t,n,i){super(t),this.message=t,this.note=i,this.taskId=n.id}}class mo extends Error{name="FixtureDependencyError"}class sR extends Error{name="FixtureAccessError"}class gb extends Error{name="FixtureParseError"}const lR=new WeakMap,qS=new WeakMap,US=new WeakMap;function aR(e,t){lR.set(e,t)}function cR(e,t){qS.set(e,t)}function uR(e){return qS.get(e)}function fR(e,t){US.set(e,t)}function dR(e){return US.get(e)}const ju=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class un{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){un._definitions.length=0}static getWorkerContexts(){return un._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return un._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return IS(t)&&Object.keys(t).some(n=>un._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,un._definitions.push(this)}extend(t,n){const{suite:i}=pi(),o=!i||i.file===i,l=this.parseUserFixtures(t,n,o);return new un(l)}get(t){let n=t;for(;n;){const i=this._overrides.get(n);if(i)return i;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:i,file:o}=pi(),l=i||o,u=!i||i.file===i,f=new Map(this.get(l)),h=this.parseUserFixtures(t,n,u,f);u?this._registrations=h:this._overrides.set(l,h)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(un._workerContextSuite)||this._suiteContexts.set(un._workerContextSuite,Object.create(null)),this._suiteContexts.get(un._workerContextSuite)}parseUserFixtures(t,n,i,o=new Map(this._registrations)){const l=[];Object.entries(n).forEach(([u,f])=>{let h,p,g;Array.isArray(f)&&f.length>=2&&un.isFixtureOptions(f[1])?(g=f[1],h={auto:g.auto??!1,scope:g.scope??"test",injected:g.injected??!1},p=h.injected?t.injectValue?.(u)??f[0]:f[0]):p=f;const v=o.get(u);v&&h?(v.scope!==h.scope&&l.push(new mo(`The "${u}" fixture was already registered with a "${h.scope}" scope.`)),v.auto!==h.auto&&l.push(new mo(`The "${u}" fixture was already registered as { auto: ${h.auto} }.`))):v?h={auto:v.auto,scope:v.scope,injected:v.injected}:h||(h={auto:!1,injected:!1,scope:"test"}),h.scope&&!un._fixtureScopes.includes(h.scope)&&l.push(new mo(`The "${u}" fixture has unknown scope "${h.scope}".`)),!i&&h.scope!=="test"&&l.push(new mo(`The "${u}" fixture cannot be defined with a ${h.scope} scope${!g?.scope&&v?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const y=cc(p)?Bg(p):new Set,w={name:u,value:p,auto:h.auto??!1,injected:h.injected??!1,scope:h.scope??"test",deps:y,parent:v};cc(p)&&Object.assign(p,{[ju]:new Error("STACK_TRACE_ERROR")}),o.set(u,w),w.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(w.scope="file")});for(const u of o.values())for(const f of u.deps){if(un._builtinFixtures.includes(f))continue;const h=o.get(f);if(!h){l.push(new mo(`The "${u.name}" fixture depends on unknown fixture "${f}".`));continue}if(f===u.name&&!u.parent){l.push(new mo(`The "${u.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(un._fixtureScopes.indexOf(u.scope)>un._fixtureScopes.indexOf(h.scope)){l.push(new mo(`The ${u.scope} "${u.name}" fixture cannot depend on a ${h.scope} fixture "${h.name}".`));continue}}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Cannot resolve user fixtures. See errors for more information.");return o}}const pl=new WeakMap,Dh=new WeakMap;function Ec(e,t){const n=pi(),i=t?.suite||n.suite||n.file;return async o=>{const l=o||t?.context;if(!l)return t?.suiteHook&&gR(e,t.suiteHook,t.stackTraceError),e({});const u=t?.fixtures||uR(l);if(!u)return e(l);const f=u.get(i);if(!f.size)return e(l);const h=[],p=Bg(e);for(const w of f.values())(w.auto||p.has(w.name))&&h.push(w);if(!h.length)return e(l);pl.has(l)||pl.set(l,[]);const g=pl.get(l),v=GS(h,f);if(!v.length)return e(l);if(t?.suiteHook){const w=v.filter($=>$.scope==="test");if(w.length>0){const $=w.map(E=>`"${E.name}"`).join(", "),_={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},C=new mo(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${$}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${_[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(C.stack=C.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),C}}Dh.has(l)||Dh.set(l,new WeakSet);const y=Dh.get(l);for(const w of v)if(w.scope==="test"){if(y.has(w))continue;y.add(w);const $=await hR(w,l,g);l[w.name]=$,g.push(()=>{y.delete(w)})}else{const $=await pR(u,i,w);l[w.name]=$}return e(l)}}function cc(e){return typeof e=="function"}function hR(e,t,n){return cc(e.value)?VS(e.value,e.name,t,n):e.value}const Tu=new WeakMap;async function pR(e,t,n){const i=e.getWorkerContext(),o=e.getFileContext(t.file),l=n.scope==="worker"?i:o;if(!cc(n.value))return l[n.name]=n.value,n.value;if(n.name in l)return l[n.name];if(Tu.has(n))return Tu.get(n);pl.has(l)||pl.set(l,[]);const u=pl.get(l),f=VS(n.value,n.name,n.scope==="file"?{...i,...o}:l,u).then(h=>(l[n.name]=h,Tu.delete(n),h));return Tu.set(n,f),f}async function VS(e,t,n,i){const o=ib(),l=ju in e&&e[ju]instanceof Error?e[ju]:void 0;let u=!1;const f=e(n,async h=>{u=!0,o.resolve(h);const p=ib();i.push(async()=>{p.resolve(),await f}),await p}).then(()=>{if(!u){const h=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);l?.stack&&(h.stack=h.message+l.stack.replace(l.message,"")),o.reject(h)}}).catch(h=>{if(!u){o.reject(h);return}throw h});return o}function GS(e,t,n=new Set,i=[]){return e.forEach(o=>{if(!i.includes(o)){if(!cc(o.value)||!o.deps){i.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(l=>l.name).join(" <- ")}`);n.add(o),GS([...o.deps].map(l=>l===o.name?o.parent:t.get(l)).filter(l=>!!l),t,n,i),i.push(o),n.clear()}}),i}function gR(e,t,n){const i=Bg(e,{sourceError:n,suiteHook:t});if(i.size){const o=new sR(`The ${t} hook uses fixtures "${[...i].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
42
+ If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}const _p=Symbol("$vitest:fixture-props"),kp=Symbol("$vitest:fixture-prop-names");function wf(e,t){Object.defineProperty(e,_p,{value:t,enumerable:!1})}function Cu(e,t){return e[kp]=t,t}function Bg(e,{sourceError:t,suiteHook:n}={}){if(kp in e)return e[kp];const{index:i=0,original:o=e}=_p in e?e[_p]:{};let l=hO(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(l)&&(l=l.split(/__async\((?:this|null),/)[1]);const u=l.match(/[^(]*\(([^)]*)/);if(!u)return Cu(e,new Set);const f=mb(u[1]);if(!f.length)return Cu(e,new Set);const h=f[i];if(!h)return Cu(e,new Set);if(!(h[0]==="{"&&h.endsWith("}"))){const y=ob(i+1),w=new gb(`The ${y} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${h}".${n?` If you used internal "suite" task as the ${y} argument previously, access it in the ${ob(i+2)} argument instead.`:""}`);throw t&&(w.stack=t.stack?.replace(t.message,w.message)),w}const p=h.slice(1,-1).replace(/\s/g,""),g=mb(p).map(y=>y.replace(/:.*|=.*/g,"")),v=g.at(-1);if(v&&v.startsWith("...")){const y=new gb(`Rest parameters are not supported in fixtures, received "${v}".`);throw t&&(y.stack=t.stack?.replace(t.message,y.message)),y}return Cu(e,new Set(g))}function mb(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n.at(-1))n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const o=e.substring(i).trim();return o&&t.push(o),t}const KS=Symbol("kChainableContext");function Ii(e){return e?.[KS]}function YS(e,t,n){function i(l){const u=function(...f){return t.apply(l,f)};Object.assign(u,t),Object.defineProperty(u,KS,{value:{withContext:()=>u.bind(l),getFixtures:()=>l.fixtures,setContext:(f,h)=>{l[f]=h},mergeContext:f=>{Object.assign(l,f)}},enumerable:!1});for(const f of e)Object.defineProperty(u,f,{get(){return i({...l,[f]:!0})}});return u}const o=i(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function ws(){return qg().config.hookTimeout}const XS=Symbol.for("VITEST_CLEANUP_TIMEOUT"),JS=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),ZS=Symbol.for("VITEST_AROUND_TIMEOUT"),QS=Symbol.for("VITEST_AROUND_STACK_TRACE");function mR(e,t=ws()){Hl(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=Ii(this);return pi().on("beforeAll",Object.assign(xs(jg("beforeAll",e,i,n),t,!0,n),{[XS]:t,[JS]:n}))}function vR(e,t){Hl(e,'"afterAll" callback',["function"]);const n=Ii(this),i=new Error("STACK_TRACE_ERROR");return pi().on("afterAll",xs(jg("afterAll",e,n,i),t??ws(),!0,i))}function yR(e,t=ws()){Hl(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=(o,l)=>Ec(e,{suite:l})(o);return pi().on("beforeEach",Object.assign(xs(i,t??ws(),!0,n,Vg),{[XS]:t,[JS]:n}))}function bR(e,t){Hl(e,'"afterEach" callback',["function"]);const n=(i,o)=>Ec(e,{suite:o})(i);return pi().on("afterEach",xs(n,t??ws(),!0,new Error("STACK_TRACE_ERROR"),Vg))}function wR(e,t){Hl(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=Ii(this);return pi().on("aroundAll",Object.assign(jg("aroundAll",e,o,n,1),{[ZS]:i,[QS]:n}))}function xR(e,t){Hl(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=(l,u,f)=>{const h=g=>e(l,g,f);return wf(h,{index:1,original:e}),Ec(h,{suite:f})(u)};return pi().on("aroundEach",Object.assign(o,{[ZS]:i,[QS]:n}))}function jg(e,t,n,i,o=0){return(...l)=>{const u=l.at(-1),f=l.slice(0,-1),h=y=>t(...f,y,u);wf(h,{index:o,original:t});const p=n?.getFixtures(),g=p?.getFileContext(u.file);return Ec(h,{suiteHook:e,fixtures:p,context:g,stackTraceError:i})()}}function SR(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function e_(e,t,n,i,o){const l=ud(t,e),u={id:_R(l,n),name:l,fullName:l,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i,viteEnvironment:o};return u.file=u,u}function _R(e,t){return SR(`${e}${t||""}`)}function t_(e,t){const n=t.split(`
43
+ `).slice(1);for(const i of n){const o=qO(i);if(o&&o.file===e)return o}}function kR(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(i=>i.name));for(const i of t)if(!n.has(i))throw xf(e.tags,i)}function xf(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
44
44
  ${e.map(i=>`- ${i.name}${i.description?`: ${i.description}`:""}`).join(`
45
- `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function kR(e,t){const n=e.map(i=>TR(i,t));return i=>n.every(o=>o(i))}function TR(e,t){const n=CR(e),i=new ER(n,e),o=r_(i,t);if(i.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${Tp(i.peek())}" in "${e}"`);return l=>nl(o,l)}function Tp(e){switch(e.type){case"TAG":return e.value;default:return n_(e.type)}}function CR(e){const t=[];let n=0;for(;n<e.length;){if(e[n]===" "||e[n]===" "){n++;continue}if(e[n]==="("){t.push({type:"LPAREN"}),n++;continue}if(e[n]===")"){t.push({type:"RPAREN"}),n++;continue}if(e[n]==="!"){t.push({type:"NOT"}),n++;continue}if(e.slice(n,n+2)==="&&"){t.push({type:"AND"}),n+=2;continue}if(e.slice(n,n+2)==="||"){t.push({type:"OR"}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"AND"}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"OR"}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:"NOT"}),n+=3;continue}let i="";for(;n<e.length&&e[n]!==" "&&e[n]!==" "&&e[n]!=="("&&e[n]!==")"&&e[n]!=="!"&&e[n]!=="&"&&e[n]!=="|";){const o=e.slice(n);if(i===""&&(/^and(?:\s|\)|$)/i.test(o)||/^or(?:\s|\)|$)/i.test(o)||/^not\s/i.test(o)))break;i+=e[n],n++}i&&t.push({type:"TAG",value:i})}return t.push({type:"EOF"}),t}class ER{pos=0;constructor(t,n){this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const n=this.next();if(n.type!==t)throw t==="RPAREN"&&n.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${n_(t)}" but got "${Tp(n)}" in "${this.expr}"`);return n}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${Tp(t)}" in "${this.expr}"`)}}function n_(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function r_(e,t){let n=vb(e,t);for(;e.peek().type==="OR";){e.next();const i=vb(e,t);n={type:"or",left:n,right:i}}return n}function vb(e,t){let n=Cp(e,t);for(;e.peek().type==="AND";){e.next();const i=Cp(e,t);n={type:"and",left:n,right:i}}return n}function Cp(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:Cp(e,t)}):AR(e,t)}function AR(e,t){const n=e.peek();if(n.type==="LPAREN"){e.next();const i=r_(e,t);return e.expect("RPAREN"),i}if(n.type==="TAG"){e.next();const i=n.value,o=NR(i,t);return{type:"tag",value:i,pattern:o}}e.unexpectedToken()}function $R(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function NR(e,t){if(e.includes("*")){const n=$R(e);if(!t.some(o=>n.test(o.name)))throw xf(t,e,"tag pattern");return n}if(!t.length||!t.some(n=>n.name===e))throw xf(t,e,"tag pattern");return null}function nl(e,t){switch(e.type){case"tag":return e.pattern?t.some(n=>e.pattern.test(n)):t.includes(e.value);case"not":return!nl(e.operand,t);case"and":return nl(e.left,t)&&nl(e.right,t);case"or":return nl(e.left,t)||nl(e.right,t)}}function Nl(e){return e.type==="test"}function i_(e){const t=[],n=bs(e);for(const i of n)if(Nl(i))t.push(i);else for(const o of i.tasks)if(Nl(o))t.push(o);else{const l=i_(o);for(const u of l)t.push(u)}return t}function Wg(e=[]){return bs(e).flatMap(t=>Nl(t)?[t]:[t,...Wg(t.tasks)])}function MR(e){const t=[e.name];let n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Eu(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}const cs=IR();Ug(function(e,t,n){pi().test.fn.call(this,Mo(e),t,n)});let Hn,o_,LR;function s_(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
45
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function TR(e,t){const n=e.map(i=>CR(i,t));return i=>n.every(o=>o(i))}function CR(e,t){const n=ER(e),i=new AR(n,e),o=r_(i,t);if(i.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${Tp(i.peek())}" in "${e}"`);return l=>nl(o,l)}function Tp(e){switch(e.type){case"TAG":return e.value;default:return n_(e.type)}}function ER(e){const t=[];let n=0;for(;n<e.length;){if(e[n]===" "||e[n]===" "){n++;continue}if(e[n]==="("){t.push({type:"LPAREN"}),n++;continue}if(e[n]===")"){t.push({type:"RPAREN"}),n++;continue}if(e[n]==="!"){t.push({type:"NOT"}),n++;continue}if(e.slice(n,n+2)==="&&"){t.push({type:"AND"}),n+=2;continue}if(e.slice(n,n+2)==="||"){t.push({type:"OR"}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"AND"}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"OR"}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:"NOT"}),n+=3;continue}let i="";for(;n<e.length&&e[n]!==" "&&e[n]!==" "&&e[n]!=="("&&e[n]!==")"&&e[n]!=="!"&&e[n]!=="&"&&e[n]!=="|";){const o=e.slice(n);if(i===""&&(/^and(?:\s|\)|$)/i.test(o)||/^or(?:\s|\)|$)/i.test(o)||/^not\s/i.test(o)))break;i+=e[n],n++}i&&t.push({type:"TAG",value:i})}return t.push({type:"EOF"}),t}class AR{pos=0;constructor(t,n){this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const n=this.next();if(n.type!==t)throw t==="RPAREN"&&n.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${n_(t)}" but got "${Tp(n)}" in "${this.expr}"`);return n}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${Tp(t)}" in "${this.expr}"`)}}function n_(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function r_(e,t){let n=vb(e,t);for(;e.peek().type==="OR";){e.next();const i=vb(e,t);n={type:"or",left:n,right:i}}return n}function vb(e,t){let n=Cp(e,t);for(;e.peek().type==="AND";){e.next();const i=Cp(e,t);n={type:"and",left:n,right:i}}return n}function Cp(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:Cp(e,t)}):$R(e,t)}function $R(e,t){const n=e.peek();if(n.type==="LPAREN"){e.next();const i=r_(e,t);return e.expect("RPAREN"),i}if(n.type==="TAG"){e.next();const i=n.value,o=MR(i,t);return{type:"tag",value:i,pattern:o}}e.unexpectedToken()}function NR(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function MR(e,t){if(e.includes("*")){const n=NR(e);if(!t.some(o=>n.test(o.name)))throw xf(t,e,"tag pattern");return n}if(!t.length||!t.some(n=>n.name===e))throw xf(t,e,"tag pattern");return null}function nl(e,t){switch(e.type){case"tag":return e.pattern?t.some(n=>e.pattern.test(n)):t.includes(e.value);case"not":return!nl(e.operand,t);case"and":return nl(e.left,t)&&nl(e.right,t);case"or":return nl(e.left,t)||nl(e.right,t)}}function Nl(e){return e.type==="test"}function i_(e){const t=[],n=bs(e);for(const i of n)if(Nl(i))t.push(i);else for(const o of i.tasks)if(Nl(o))t.push(o);else{const l=i_(o);for(const u of l)t.push(u)}return t}function Wg(e=[]){return bs(e).flatMap(t=>Nl(t)?[t]:[t,...Wg(t.tasks)])}function LR(e){const t=[e.name];let n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Eu(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}const cs=DR();Ug(function(e,t,n){pi().test.fn.call(this,Mo(e),t,n)});let Hn,o_,OR;function s_(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
46
46
  - "vitest" is imported directly without running "vitest" command
47
47
  - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
48
48
  - "vitest" is imported inside Vite / Vitest config file
49
49
  - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
50
- `)}function qg(){return s_(Hn,"the runner"),Hn}function pi(){const e=Jn.currentSuite||o_;return s_(e,"the current suite"),e}function OR(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const yb=Number.POSITIVE_INFINITY;function gl(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},i;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function RR(e,t=()=>{},n,i,o){const l=[];let u;v();const f=function($="",_={}){const C=Jn.currentSuite?.suite,L=(C??Jn.currentSuite?.file)?.tags||[],D=sb([...L,...bs(_.tags)]),N=D.map(S=>{const R=Hn.config.tags?.find(B=>B.name===S);if(!R&&Hn.config.strictTags)throw xf(Hn.config.tags,S);return R}).filter(S=>S!=null).sort((S,R)=>(R.priority??yb)-(S.priority??yb)).reduce((S,R)=>{const{name:B,description:ae,priority:ve,meta:_e,...Be}=R;return Object.assign(S,Be),_e&&(S.meta=Object.assign(S.meta??Object.create(null),_e)),S},{}),I=_.meta;_={...N,..._};const q=_.timeout??Hn.config.testTimeout,X=C?.meta,ie=N.meta,J=Object.create(null);ie&&Object.assign(J,ie),X&&Object.assign(J,X),I&&Object.assign(J,I);const U={id:"",name:$,fullName:Eu([C?.fullName??Jn.currentSuite?.file?.fullName,$]),fullTestName:Eu([C?.fullTestName,$]),suite:C,each:_.each,fails:_.fails,context:void 0,type:"test",file:C?.file??Jn.currentSuite?.file,timeout:q,retry:_.retry??Hn.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:J,annotations:[],artifacts:[],tags:D},K=_.handler;U.mode==="run"&&!K&&(U.mode="todo"),(_.concurrent||!_.sequential&&Hn.config.sequence.concurrent)&&(U.concurrent=!0),U.shuffle=o?.shuffle;const P=WR(U,Hn);Object.defineProperty(U,"context",{value:P,enumerable:!1}),aR(P,_.fixtures??new un);const O=Error.stackTraceLimit;Error.stackTraceLimit=10;const k=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,K&&lR(U,xs(BR(PR(Ec(K,{context:P}),U),U.context.signal),q,!1,k,(S,R)=>Vg([P],R))),Hn.config.includeTaskLocation){const S=k.stack,R=t_(LR,S);R&&(U.location={line:R.line,column:R.column})}return l.push(U),U},h=Ug(function($,_,C){let{options:E,handler:L}=gl(_,C);typeof o=="object"&&(E=Object.assign({},o,E));const D=this.concurrent??(!this.sequential&&E?.concurrent);E.concurrent!=null&&D!=null&&(E.concurrent=D);const N=this.sequential??(!this.concurrent&&E?.sequential);E.sequential!=null&&N!=null&&(E.sequential=N);const I=f(Mo($),{...this,...E,handler:L});I.type="test"}),p={type:"collector",name:e,mode:n,suite:u,options:o,test:h,file:u.file,tasks:l,collect:w,task:f,clear:y,on:g};function g($,..._){fR(u)[$].push(..._)}function v($){typeof o=="number"&&(o={timeout:o});const _=Jn.currentSuite?.suite,C=_??Jn.currentSuite?.file,E=bs(o?.tags);_R(Hn.config,E),u={id:"",type:"suite",name:e,fullName:Eu([_?.fullName??Jn.currentSuite?.file?.fullName,e]),fullTestName:Eu([_?.fullTestName,e]),suite:_,mode:n,each:i,file:_?.file??Jn.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:sb([...C?.tags||[],...E])},uR(u,OR())}function y(){l.length=0,v()}async function w($){if(!$)throw new TypeError("File is required to collect tasks.");t&&await HR(p,()=>t(h));const _=[];for(const C of l)_.push(C.type==="collector"?await C.collect($):C);return u.tasks=_,u}return zR(p),p}function PR(e,t){return(async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i})}function IR(){function e(t,n,i){const o=Jn.currentSuite||o_;let{options:l,handler:u}=gl(n,i);const f=l.concurrent||this.concurrent||l.sequential===!1,h=l.sequential||this.sequential||l.concurrent===!1,{meta:p,...g}=o?.options||{};l={...g,...l};const v=this.shuffle??l.shuffle??o?.options?.shuffle??Hn?.config.sequence.shuffle;v!=null&&(l.shuffle=v);let y=this.only??l.only?"only":this.skip??l.skip?"skip":this.todo??l.todo?"todo":"run";y==="run"&&!u&&(y="todo");const w=f||l.concurrent&&!h,$=h||l.sequential&&!f;return w!=null&&(l.concurrent=w&&!$),$!=null&&(l.sequential=$&&!w),p&&(l.meta=Object.assign(Object.create(null),p,l.meta)),RR(Mo(t),u,y,this.each,l)}return e.each=function(t,...n){const i=Ii(this),o=i.withContext();return i.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Sf(t,n)),(l,u,f)=>{const h=Mo(l),p=t.every(Array.isArray),{options:g,handler:v}=gl(u,f),y=typeof u=="function";t.forEach((w,$)=>{const _=Array.isArray(w)?w:[w];y?p?o(li(h,_,$),v?()=>v(..._):void 0,g.timeout):o(li(h,_,$),v?()=>v(w):void 0,g.timeout):p?o(li(h,_,$),g,v?()=>v(..._):void 0):o(li(h,_,$),g,v?()=>v(w):void 0)}),i.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Sf(t,n)),(i,o,l)=>{const u=Mo(i),{options:f,handler:h}=gl(o,l);t.forEach((p,g)=>{cs(li(u,bs(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?cs.skip:cs,e.runIf=t=>t?cs:cs.skip,YS(["concurrent","sequential","shuffle","skip","only","todo"],e)}function DR(e){const t=e;t.each=function(o,...l){const u=Ii(this),f=u.withContext();return u.setContext("each",!0),Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),y=o.every(Array.isArray),{options:w,handler:$}=gl(p,g),_=typeof p=="function";o.forEach((C,E)=>{const L=Array.isArray(C)?C:[C];_?y?f(li(v,L,E),$?()=>$(...L):void 0,w.timeout):f(li(v,L,E),$?()=>$(C):void 0,w.timeout):y?f(li(v,L,E),w,$?()=>$(...L):void 0):f(li(v,L,E),w,$?()=>$(C):void 0)}),u.setContext("each",void 0)}},t.for=function(o,...l){const f=Ii(this).withContext();return Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),{options:y,handler:w}=gl(p,g);o.forEach(($,_)=>{const C=w?E=>w($,E):void 0;C&&wf(C,{index:1,original:w}),f(li(v,bs($),_),y,C)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,l,u){if(typeof o!="string")return o;const f=o;let h,p;if(u!==void 0?(h=l,p=u):l!==null&&typeof l=="object"&&!Array.isArray(l)&&un.isFixtureOptions(l)?(h=l,p={}):(h=void 0,p=l),typeof p=="function"){const g=p,v=async(y,w)=>{let $;const C=await g(y,{onCleanup:E=>{if($!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");$=E}});await w(C),$&&await $()};return wf(v,{original:g}),h?{[f]:[v,h]}:{[f]:v}}return h?{[f]:[p,h]}:{[f]:p}}return t.override=function(o,l,u){const f=n(o,l,u);return Ii(this).getFixtures().override(Hn,f),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,l,u){const f=n(o,l,u),h=Ii(this).getFixtures().extend(Hn,f),p=Ug(function(g,v,y){e.call(this,Mo(g),v,y)});return Ii(p).mergeContext({fixtures:h}),p},t.describe=cs,t.suite=cs,t.beforeEach=vR,t.afterEach=yR,t.beforeAll=gR,t.afterAll=mR,t.aroundEach=wR,t.aroundAll=bR,YS(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new un})}function Ug(e){return DR(e)}function Mo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function li(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((p,g)=>{if(hO(t[g])||Object.is(t[g],-0)){let v=0;e=e.replace(/%f/g,y=>(v++,v===g+1?"-%f":y))}});const o=IS(t[0]);function l(h){return h.replace(/\$([$\w.]+)/g,(p,g)=>{const v=/^\d+$/.test(g);if(!o&&!v)return`$${g}`;const y=v?rb(t,g):void 0,w=o?rb(t[0],g,y):y;return fO(w,{truncate:Hn?.config?.chaiConfig?.truncateThreshold})})}let u="",f=0;return FR(e,OS,h=>{f<i?u+=uO(h[0],t[f++]):u+=h[0]},h=>{u+=l(h)}),u}function FR(e,t,n,i){let o=0;for(const l of e.matchAll(t))o<l.index&&i(e.slice(o,l.index)),n(l),o=l.index+l[0].length;o<e.length&&i(e.slice(o))}function Sf(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
51
- `).map(o=>o.split("|"))[0],i=[];for(let o=0;o<Math.floor(t.length/n.length);o++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[o*n.length+u];i.push(l)}return i}const bb=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Jn={currentSuite:null};function zR(e){Jn.currentSuite?.tasks.push(e)}async function HR(e,t){const n=Jn.currentSuite;Jn.currentSuite=e,await t(),Jn.currentSuite=n}function xs(e,t,n=!1,i,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=DS();return(function(...h){const p=bb(),g=qg();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{const w=l(()=>{u(w),$()},t);w.unref?.();function $(){const E=qR(n,t,i);o?.(h,E),y(E)}function _(E){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),bb()-p>=t){$();return}v(E)}function C(E){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),y(E)}try{const E=e(...h);typeof E=="object"&&E!=null&&typeof E.then=="function"?E.then(_,C):_(E)}catch(E){C(E)}})})}function BR(e,t){return(function(...i){return new Promise((o,l)=>{t.addEventListener("abort",()=>l(t.reason));try{const u=e(...i);typeof u=="object"&&u!=null&&typeof u.then=="function"?u.then(o,l):o(u)}catch(u){l(u)}})})}const Ep=new WeakMap;function Vg([e],t){e&&jR(e,t)}function jR(e,t){Ep.get(e)?.abort(t)}function WR(e,t){const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let i=Ep.get(n);return i||(i=new AbortController,Ep.set(n,i)),n.signal=i.signal,n.task=e,n.skip=(o,l)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new iR("test is skipped; abort execution",e,typeof o=="string"?o:l)},n.annotate=((o,l,u)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const f={message:o,type:typeof l=="object"||l===void 0?"notice":l},h=typeof l=="object"?l:u;return h&&(f.attachment=h,a_(f.attachment)),KR(e,VR(e,{type:"internal:annotation",annotation:f}).then(async({annotation:p})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await l_(t);const g=await t.onTestAnnotate(e,p);return e.annotations.push(g),g}))}),n.onTestFailed=(o,l)=>{e.onFailed||=[],e.onFailed.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},n.onTestFinished=(o,l)=>{e.onFinished||=[],e.onFinished.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},t.extendTaskContext?.(n)||n}function qR(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
52
- If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(i);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;DS();const Fh=new Map,wb=[],Wu=[];function UR(e){if(Fh.size){const t=Array.from(Fh).map(([i,o])=>[i,o[0],o[1]]),n=e.onTaskUpdate?.(t,wb);n&&(Wu.push(n),n.then(()=>Wu.splice(Wu.indexOf(n),1),()=>{})),wb.length=0,Fh.clear()}}async function l_(e){UR(e),await Promise.all(Wu)}async function VR(e,t){const n=qg(),i=t_(e.file.filepath,new Error("STACK_TRACE").stack);if(i&&(t.location={file:i.file,line:i.line,column:i.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const l of t.attachments)a_(l);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await l_(n);const o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const ar=[];for(let e=65;e<91;e++)ar.push(String.fromCharCode(e));for(let e=97;e<123;e++)ar.push(String.fromCharCode(e));for(let e=0;e<10;e++)ar.push(e.toString(10));ar.push("+","/");function GR(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const o=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ar[o],t+=ar[l],t+="=="}else if(n===i+2){const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ar[o],t+=ar[l],t+=ar[u],t+="="}else{const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ar[o],t+=ar[l],t+=ar[u],t+=ar[f]}return t}function KR(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function a_(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=GR(e.body))}const xb="q",Sb="s";function YR(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}const XR=Math.random.bind(Math),JR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ZR(e=21){let t="",n=e;for(;n--;)t+=JR[XR()*64|0];return t}const QR=6e4,c_=e=>e,eP=c_,{clearTimeout:_b,setTimeout:tP}=globalThis;function nP(e,t){const{post:n,on:i,off:o=()=>{},eventNames:l=[],serialize:u=c_,deserialize:f=eP,resolver:h,bind:p="rpc",timeout:g=QR,proxify:v=!0}=t;let y=!1;const w=new Map;let $,_;async function C(I,q,X,ie){if(y)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:xb};ie&&(J.o=!0);const U=async B=>n(u(B));if(X){await U(J);return}if($)try{await $}finally{$=void 0}let{promise:K,resolve:P,reject:O}=YR();const k=ZR();J.i=k;let S;async function R(B=J){return g>=0&&(S=tP(()=>{try{if(t.onTimeoutError?.call(_,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){O(ae)}w.delete(k)},g),typeof S=="object"&&(S=S.unref?.())),w.set(k,{resolve:P,reject:O,timeoutId:S,method:I}),await U(B),K}try{t.onRequest?await t.onRequest.call(_,J,R,P):await R()}catch(B){if(t.onGeneralError?.call(_,B)!==!0)throw B;return}finally{_b(S),w.delete(k)}return K}const E={$call:(I,...q)=>C(I,q,!1),$callOptional:(I,...q)=>C(I,q,!1,!0),$callEvent:(I,...q)=>C(I,q,!0),$callRaw:I=>C(I.method,I.args,I.event,I.optional),$rejectPendingCalls:D,get $closed(){return y},get $meta(){return t.meta},$close:L,$functions:e};v?_=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(E,q))return E[q];if(q==="then"&&!l.includes("then")&&!("then"in e))return;const X=(...J)=>C(q,J,!0);if(l.includes(q))return X.asEvent=X,X;const ie=(...J)=>C(q,J,!1);return ie.asEvent=X,ie}}):_=E;function L(I){y=!0,w.forEach(({reject:q,method:X})=>{const ie=new Error(`[birpc] rpc is closed, cannot call "${X}"`);if(I)return I.cause??=ie,q(I);q(ie)}),w.clear(),o(N)}function D(I){const q=Array.from(w.values()).map(({method:X,reject:ie})=>I?I({method:X,reject:ie}):ie(new Error(`[birpc]: rejected pending call "${X}".`)));return w.clear(),q}async function N(I,...q){let X;try{X=f(I)}catch(ie){if(t.onGeneralError?.call(_,ie)!==!0)throw ie;return}if(X.t===xb){const{m:ie,a:J,o:U}=X;let K,P,O=await(h?h.call(_,ie,e[ie]):e[ie]);if(U&&(O||=()=>{}),!O)P=new Error(`[birpc] function "${ie}" not found`);else try{K=await O.apply(p==="rpc"?_:e,J)}catch(k){P=k}if(X.i){if(P&&t.onFunctionError&&t.onFunctionError.call(_,P,ie,J)===!0)return;if(!P)try{await n(u({t:Sb,i:X.i,r:K}),...q);return}catch(k){if(P=k,t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}try{await n(u({t:Sb,i:X.i,e:P}),...q)}catch(k){if(t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}}}else{const{i:ie,r:J,e:U}=X,K=w.get(ie);K&&(_b(K.timeoutId),U?K.reject(U):K.resolve(J)),w.delete(ie)}}return $=i(N),_}const{parse:u_,stringify:rP}=JSON,{keys:iP}=Object,uc=String,f_="string",kb={},_f="object",d_=(e,t)=>t,oP=e=>e instanceof uc?uc(e):e,sP=(e,t)=>typeof t===f_?new uc(t):t,lP=(e,t,n,i)=>o=>{for(let l=iP(o),{length:u}=l,f=0;f<u;f++){const h=l[f],p=o[h];if(p instanceof uc){const g=e[p];typeof g===_f&&!n.has(g)?(n.add(g),o[h]=kb,t.push({o,k:h,r:g})):o[h]=i.call(o,h,g)}else o[h]!==kb&&(o[h]=i.call(o,h,p))}return o},Tb=(e,t,n)=>{const i=uc(t.push(n)-1);return e.set(n,i),i},Ap=(e,t)=>{const n=u_(e,sP).map(oP),i=t||d_;let o=n[0];if(typeof o===_f&&o){const l=[],u=lP(n,l,new Set,i);o=u(o);let f=0;for(;f<l.length;){const{o:h,k:p,r:g}=l[f++];h[p]=i.call(h,p,u(g))}}return i.call({"":o},"",o)},h_=(e,t,n)=>{const i=t&&typeof t===_f?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||d_,o=new Map,l=[],u=[];let f=+Tb(o,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=rP(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case _f:if(y===null)return y;case f_:return o.get(y)||Tb(o,l,y)}return y}},aP=e=>u_(h_(e));class p_{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.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(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],o=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(o=>{const l=this.filesMap.get(o),u=e_(o,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(o,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(o,[...f,u]):this.filesMap.set(o,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,o]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=o,i?.state==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function cP(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new p_,waitForConnection:E,reconnect:_},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(L,D){n.onTestAnnotate?.(L,D)},onTestArtifactRecord(L,D){n.onTestArtifactRecord?.(L,D)},onSpecsCollected(L,D){L?.forEach(([N,I])=>{g.state.clearFiles({config:N},[I])}),n.onSpecsCollected?.(L,D)},onPathsCollected(L){g.state.collectPaths(L),n.onPathsCollected?.(L)},onCollected(L){g.state.collectFiles(L),n.onCollected?.(L)},onTaskUpdate(L,D){g.state.updateTasks(L),n.onTaskUpdate?.(L,D)},onUserConsoleLog(L){g.state.updateUserLog(L),n.onUserConsoleLog?.(L)},onFinished(L,D,N,I){n.onFinished?.(L,D,N,I)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},w={post:L=>g.ws.send(L),on:L=>v=L,serialize:L=>h_(L,(D,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Ap,timeout:-1};g.rpc=nP(y,w);let $;function _(L=!1){L&&(p=l),g.ws=new h(e),C()}function C(){$=new Promise((L,D)=>{const N=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u)?.unref?.();g.ws.OPEN===g.ws.readyState&&L(),g.ws.addEventListener("open",()=>{p=l,L(),clearTimeout(N)})}),g.ws.addEventListener("message",L=>{v(L.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout(_,o)})}C();function E(){return $}return g}const Po=oM(),uP=BN(Po);function Ac(e){return Object.hasOwn(e,"tasks")}function fP(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function us(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zh(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function dP(e){const t=new Map,n=new Map,i=[];for(;;){let o=0;if(e.forEach((l,u)=>{const{splits:f,finished:h}=l;if(h){o++;const{raw:g,candidate:v}=l;t.set(g,v);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,n.get(p)?.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,o===e.length)break}return t}function g_(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,splitted:[...n],candidate:"",finished:!1,id:e}}function hP(e){return g_(e).raw}function qu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function kf(e){const t=qu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Uu(e,t=!1){if(!e)return"";const n=e.split("").reduce((l,u,f)=>l+u.charCodeAt(0)+f,0),i=Po.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],o=Po.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?o:i)[n%i.length]}function m_(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const $p=Vt([]),rr=Vt([]),Kr=Cc("vitest-ui_task-tree-opened",[],{shallow:!0}),Bl="__vitest_ui_all_projects__",Tf=Se(()=>new Set(Kr.value)),Ht=Cc("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:Bl,projectSort:void 0}),Fr=Ke(Ht.value.projectSort||"default"),ml=Vt(Ht.value?.project||Bl),Np=Se(()=>rm.value.length>1),pP=Se(()=>ml.value===Bl),Gg=Se(()=>!Np.value||ml.value===Bl?void 0:ml.value),Hr=Ke(Ht.value.search),Cb=new Map,vo=Se(()=>{if(Hr.value.startsWith("tag:")){if(!pt.value.tags)return{matcher:()=>!0};const e=Hr.value.slice(4).trim();let t=Cb.get(e);return t||(t=gP(e),Cb.set(e,t)),{matcher:n=>t.matcher(n.tags||[]),error:t.error}}return{matcher:e=>Hr.value===""||fP(e.name,Hr.value)}});function gP(e){if(!e)return{matcher:()=>!0};try{return{matcher:kR([e],pt.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const mP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v_(e){return e.replace(/[&<>"']/g,t=>mP[t])}const vP=Se(()=>{const e=Hr.value.toLowerCase();return e.length?new RegExp(`(${v_(e)})`,"gi"):null}),y_=Se(()=>Hr.value.trim()!==""),Ze=dr({failed:Ht.value.failed,success:Ht.value.success,skipped:Ht.value.skipped,slow:Ht.value.slow,onlyTests:Ht.value.onlyTests}),Mp=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped||Ze.slow)),fd=Vt([]),Ml=Ke(!1),Eb=Se(()=>{const e=Ht.value.expandAll;return Kr.value.length>0?e!==!0:e!==!1}),yP=Se(()=>{const e=y_.value,t=Mp.value,n=Gg.value,i=Ze.onlyTests,o=$e.summary.filesFailed,l=$e.summary.filesSuccess,u=$e.summary.filesSkipped,f=$e.summary.filesRunning,h=fd.value;return $e.collectTestsTotal(e||t||!!n,i,h,{failed:o,success:l,skipped:u,running:f})});function bP(e){return e.type==="test"}function wP(e){return e.mode==="run"&&e.type==="test"}function Wn(e){return e.type==="file"}function Ui(e){return e.type==="file"||e.type==="suite"}function Lp(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const n=pt.value.slowTestThreshold;return typeof n=="number"&&t>n}function xP(e,t=$e.root.tasks){const n=[...t];return n.sort((i,o)=>{if(e==="duration-desc"||e==="duration-asc"){const l=i.duration??0,u=o.duration??0;if(l!==u)return e==="duration-desc"?u-l:l-u}else if(e==="asc"||e==="desc"){const l=i.projectName||"",u=o.projectName||"";if(l!==u)return e==="asc"?l.localeCompare(u):u.localeCompare(l)}return`${i.filepath}:${i.projectName}`.localeCompare(`${o.filepath}:${o.projectName}`)}),n}function fc(e,t=!1){let n=$e.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:$e.colors.get(e.projectName||"")||Uu(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},$e.nodes.set(e.id,n),$e.root.tasks.push(n)),t)for(let i=0;i<e.tasks.length;i++)$c(e.id,e.tasks[i],!0)}function b_(e,t){const n=$e.nodes.get(e);if(!n||!Ui(n))return;const i=ft.state.idMap.get(e);if(!(!i||!Ac(i)))return $c(n.parentId,i,t&&i.tasks.length>0),[n,i]}function SP(e){const t=$e.nodes.get(e);if(!t)return;const n=ft.state.idMap.get(e);!n||!Nl(n)||$c(t.parentId,n,!1)}function $c(e,t,n){const i=$e.nodes.get(e);let o;const l=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(i&&(o=$e.nodes.get(t.id),o?(i.children.has(t.id)||(i.tasks.push(o),i.children.add(t.id)),o.name=t.name,o.mode=t.mode,o.duration=l,o.slow=Lp(t),o.state=t.result?.state):(Nl(t)?o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:i.indent+1,duration:l,slow:Lp(t),state:t.result?.state}:o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,slow:!1,state:t.result?.state},$e.nodes.set(t.id,o),i.tasks.push(o),i.children.add(t.id)),o&&n&&Ac(t)))for(let u=0;u<t.tasks.length;u++)$c(o.id,t.tasks[u],n)}function _P(e){const t=$e.nodes.get(e);if(!t||!Ui(t))return;const n=new Set(Kr.value);n.delete(t.id);const i=[...TP(t)];Kr.value=Array.from(n),rr.value=i}function kP(){Op($e.root.tasks);const e=[...rr.value.filter(Wn)];Op(e),Kr.value=[],Ht.value.expandAll=!0,rr.value=e}function Op(e){for(const t of e)Ui(t)&&(t.expanded=!1,Op(t.tasks))}function*w_(e,t){if(t&&(yield e.id),Ui(e))for(let n=0;n<e.tasks.length;n++)yield*w_(e.tasks[n],!0)}function*TP(e){const t=e.id,n=new Set(w_(e,!1));for(let i=0;i<rr.value.length;i++){const o=rr.value[i];if(o.id===t){o.expanded=!1,yield o;continue}if(n.has(o.id)){n.delete(o.id);continue}yield o}}const dd=Ke("idle"),ol=Se(()=>dd.value==="idle"),So=Ke([]),CP=Se(()=>(pt.value.tags||[]).reduce((t,n)=>(t[n.name]=n,t),{}));function EP(e,t,n){return e?__(e,t,n):!1}function Kg(e,t){const n=[...x_(e,t)];rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function*x_(e,t){const n=Gg.value,i=xP(Fr.value);for(const o of i)n&&o.projectName!==n||(yield*S_(o,e,t))}function*S_(e,t,n){const i=new Set,o=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))l.push([v,y]);else{for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))Ui(y)?(o.set(y.id,v),Wn(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||o.get(y.parentId)===!0,y])):l.push([v||o.get(y.parentId)===!0,y]);!u&&!Wn(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...$P(l,n.onlyTests,i,f,u)].reverse(),p=$e.nodes;for(const v of i){const y=p.get(v);y&&"expanded"in y&&(y.expanded=!0)}const g=new Set(h.filter(v=>Wn(v)||Ui(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Wn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function AP(e,t,n,i,o){if(i){if(Wn(t))return o.has(t.id)?t:void 0;if(n.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}else if(e||n.has(t.id)||o.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}function*$P(e,t,n,i,o){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ui(f);if(!t&&o&&n.has(o)&&"fileId"in f&&f.fileId===o){h&&n.add(f.id);let p=$e.nodes.get(f.parentId);for(;p;)n.add(p.id),Wn(p)&&i.add(p.id),p=$e.nodes.get(p.parentId);yield f;continue}if(h){const p=AP(u,f,n,t,i);p&&(yield p)}else if(u){const p=$e.nodes.get(f.parentId);p&&Wn(p)&&i.add(p.id),yield f}}}function NP(e,t){if(t.slow&&e.type==="test"){const n=pt.value.slowTestThreshold;if(typeof n=="number"&&typeof e.result?.duration=="number"&&e.result.duration>n)return!0}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 __(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(NP(e,n))return!0}else return!0;return!1}function*Rp(e,t,n){const i=n(e);if(i)if(bP(e)){let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}else if(Wn(e))t.add(e.id);else{t.add(e.id);let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}if(yield[i,e],Ui(e))for(let o=0;o<e.tasks.length;o++)yield*Rp(e.tasks[o],t,n)}function Ab(e,t,n){const i=ft.state.idMap.get(e.id);return i?__(i,t,n):!1}function MP(e,t,n){const i=b_(e,!1);if(!i)return;const[o,l]=i;for(const p of l.tasks)$c(o.id,p,!1);o.expanded=!0;const u=new Set(Kr.value);u.add(o.id);const f=new Set(S_(o,t,n)),h=[...RP(o,f)];Kr.value=Array.from(u),rr.value=h}function LP(e,t){Yg($e.root.tasks,!1);const n=[...x_(e,t)];Ht.value.expandAll=!1,Kr.value=[],rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function OP(e,t){if(e.size)for(const n of rr.value)e.has(n.id)&&(n.expanded=!0);else t&&Yg(rr.value.filter(Wn),!0)}function Yg(e,t){for(const n of e)Ui(n)&&(n.expanded=!0,Yg(n.tasks,!1));t&&(Ht.value.expandAll=!1,Kr.value=[])}function*RP(e,t){const n=e.id,i=new Set(Array.from(t).map(o=>o.id));for(const o of rr.value)o.id===n?(o.expanded=!0,i.has(o.id)||(yield e),yield*t):i.has(o.id)||(yield o)}function Xg(e){return i_(e).some(t=>t.result?.errors?.some(n=>typeof n?.message=="string"&&n.message.match(/Snapshot .* mismatched/)))}function PP(e,t,n,i){e.map(o=>[`${o.filepath}:${o.projectName||""}`,o]).sort(([o],[l])=>o.localeCompare(l)).map(([,o])=>fc(o,t)),$p.value=[...$e.root.tasks],Kg(n,{failed:i.failed,success:i.success,skipped:i.skipped,slow:i.slow,onlyTests:i.onlyTests})}function IP(e){queueMicrotask(()=>{const t=$e.pendingTasks,n=ft.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function DP(e,t){const n=$e.pendingTasks,o=ft.state.idMap.get(e);if(o?.type==="test"){let l=n.get(o.file.id);l||(l=new Set,n.set(o.file.id,l)),l.add(o.id),t.type==="internal:annotation"?o.annotations.push(t.annotation):o.artifacts.push(t)}}function $b(e,t,n,i,o,l){e&&WP(n);const u=!e;queueMicrotask(()=>{t?HP(u):BP(u)}),queueMicrotask(()=>{qP(n,l)}),queueMicrotask(()=>{t&&(n.failedSnapshot=$p.value&&Xg($p.value.map(f=>Cr(f.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{jP(i,o,t)})}function*FP(){yield*rr.value.filter(wP)}function zP(){const e=ft.state.idMap;let t;for(const n of FP())t=e.get(n.parentId),t&&Ac(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function HP(e){const t=ft.state.getFiles(),n=$e.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)fc(i[l],e),Cf(i[l].tasks);const o=$e.root.tasks;for(let l=0;l<o.length;l++){const u=o[l],f=Cr(u.id);!f||(fc(f,e),!f.tasks?.length)||Cf(f.tasks)}}function BP(e){const t=new Map($e.pendingTasks.entries());$e.pendingTasks.clear();const n=$e.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>Cr(f)).filter(Boolean);let o;for(let f=0;f<i.length;f++)o=i[f],fc(o,!1),Cf(o.tasks),t.delete(o.id);const l=ft.state.idMap,u=$e.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=Cr(h.id);if(!p)continue;const g=t.get(p.id);g&&(fc(p,e),Cf(Array.from(g,v=>l.get(v)).filter(Boolean)))}}function jP(e,t,n=!1){const i=Ht.value.expandAll,o=i!==!0,l=new Set(Kr.value),u=l.size>0&&i===!1||o;queueMicrotask(()=>{Nb(e,t,n)}),Ml.value||queueMicrotask(()=>{(rr.value.length||n)&&(Ml.value=!0)}),u&&(queueMicrotask(()=>{OP(l,n),o&&(Ht.value.expandAll=!1)}),queueMicrotask(()=>{Nb(e,t,n)}))}function Nb(e,t,n){Kg(e,t),n&&(zP(),dd.value="idle")}function Cf(e){let t;for(let n=0;n<e.length;n++)t=e[n],Ac(t)?b_(t.id,!0):SP(t.id)}function WP(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.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function qP(e,t){const n=ft.state.idMap,i=new Map($e.root.tasks.filter(u=>n.has(u.id)).map(u=>[u.id,u])),o=Array.from(i.values(),u=>[u.id,Cr(u.id)]),l={files:i.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[u,f]of o){if(!f)continue;f.result?.state==="fail"?l.filesFailed++:f.result?.state==="pass"?l.filesSuccess++:f.mode==="skip"?(l.filesIgnore++,l.filesSkipped++):f.mode==="todo"?(l.filesIgnore++,l.filesTodo++):l.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:y,todo:w,expectedFail:$,slow:_}=k_(f);l.totalTests+=v,l.testsFailed+=h,l.testsSuccess+=p,l.testsSkipped+=g,l.testsTodo+=w,l.testsExpectedFail+=$,l.testsSlow+=_,l.testsIgnore+=y}e.files=l.files,e.time=l.time,e.filesFailed=l.filesFailed,e.filesSuccess=l.filesSuccess,e.filesIgnore=l.filesIgnore,e.filesRunning=l.filesRunning,e.filesSkipped=l.filesSkipped,e.filesTodo=l.filesTodo,e.testsFailed=l.testsFailed,e.testsSuccess=l.testsSuccess,e.testsTodo=l.testsTodo,e.testsExpectedFail=l.testsExpectedFail,e.testsSlow=l.testsSlow,e.testsIgnore=l.testsIgnore,e.testsSkipped=l.testsSkipped,e.totalTests=l.totalTests}function k_(e,t=()=>!0,n){const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const o of T_(e))(!n||EP(o,t,n))&&(i.total++,Lp(o)&&i.slow++,o.result?.state==="fail"?i.failed++:o.result?.state==="pass"?o.fails?i.expectedFail++:i.success++:o.mode==="skip"?(i.ignored++,i.skipped++):o.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored-i.expectedFail,i}function UP(e,t,n,i,o,l){if(t)return n.map(u=>k_(u,o,l)).reduce((u,{failed:f,success:h,ignored:p,running:g})=>(u.failed+=f,u.success+=h,u.skipped+=p,u.running+=g,u),{failed:0,success:0,skipped:0,running:0});if(e){const u={failed:0,success:0,skipped:0,running:0},f=!l.success&&!l.failed,h=l.failed||f,p=l.success||f;for(const g of n)g.result?.state==="fail"?u.failed+=h?1:0:g.result?.state==="pass"?u.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||u.running++;return u}return i}function*T_(e){const t=bs(e);let n;for(let i=0;i<t.length;i++)n=t[i],Nl(n)?yield n:yield*T_(n.tasks)}class VP{constructor(t=[],n=new Map,i=!1,o=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=new Map,h=dr({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,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=o,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=YN(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),PP(t,!0,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,n){DP(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){IP(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,n,i=!0){i?queueMicrotask(()=>{$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}):$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,n,i,o){return UP(t,n,i,o,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{_P(t)})}expandNode(t){queueMicrotask(()=>{MP(t,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{kP()})}expandAllNodes(){queueMicrotask(()=>{LP(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kg(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}}const $e=new VP;function Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vu={exports:{}},GP=Vu.exports,Mb;function Ho(){return Mb||(Mb=1,(function(e,t){(function(n,i){e.exports=i()})(GP,(function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],$=/Opera\//.test(n),_=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),L=_&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),N=L||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),I=L||/Mac/.test(i),q=/\bCrOS\b/.test(n),X=/win/i.test(i),ie=$&&n.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&($=!1,g=!0);var J=I&&(v||$&&(ie==null||ie<12.11)),U=o||h&&p>=9;function K(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var P=function(r,s){var c=r.className,a=K(s).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function O(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function k(r,s){return O(r).appendChild(s)}function S(r,s,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof s=="string")d.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)d.appendChild(s[m]);return d}function R(r,s,c,a){var d=S(r,s,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,s,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,s),d}:B=function(r,s,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",s),a};function ae(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function ve(r){var s=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=s.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function _e(r,s){var c=r.className;K(s).test(c)||(r.className+=(c?" ":"")+s)}function Be(r,s){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!K(c[a]).test(s)&&(s+=" "+c[a]);return s}var Ee=function(r){r.select()};L?Ee=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(Ee=function(r){try{r.select()}catch{}});function Ge(r){return r.display.wrapper.ownerDocument}function Ue(r){return He(r.display.wrapper)}function He(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function Re(r){return Ge(r).defaultView}function z(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function Z(r,s,c){s||(s={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!s.hasOwnProperty(a))&&(s[a]=r[a]);return s}function re(r,s,c,a,d){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=s)return b+(s-m);b+=x-m,b+=c-b%c,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};le.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},le.prototype.set=function(r,s){this.f=s;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ce(r,s){for(var c=0;c<r.length;++c)if(r[c]==s)return c;return-1}var F=50,j={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function me(r,s,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=s)return a+Math.min(b,s-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=s)return a}}var Ce=[""];function Ae(r){for(;Ce.length<=r;)Ce.push(xe(Ce)+" ");return Ce[r]}function xe(r){return r[r.length-1]}function be(r,s){for(var c=[],a=0;a<r.length;a++)c[a]=s(r[a],a);return c}function Q(r,s,c){for(var a=0,d=c(s);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,s)}function ue(){}function oe(r,s){var c;return Object.create?c=Object.create(r):(ue.prototype=r,c=new ue),s&&Z(s,c),c}var Pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Pe.test(r))}function ct(r,s){return s?s.source.indexOf("\\w")>-1&&et(r)?!0:s.test(r):et(r)}function dt(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var Ot=/[\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 ut(r){return r.charCodeAt(0)>=768&&Ot.test(r)}function en(r,s,c){for(;(c<0?s>0:s<r.length)&&ut(r.charAt(s));)s+=c;return s}function Gt(r,s,c){for(var a=s>c?-1:1;;){if(s==c)return s;var d=(s+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==s)return r(m)?s:c;r(m)?c=m:s=m+a}}function Vn(r,s,c,a){if(!r)return a(s,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>s||s==c&&b.to==s)&&(a(Math.max(b.from,s),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(s,c,"ltr")}var Jr=null;function Wt(r,s,c){var a;Jr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<s&&m.to>s)return d;m.to==s&&(m.from!=m.to&&c=="before"?a=d:Jr=d),m.from==s&&(m.from!=m.to&&c!="before"?a=d:Jr=d)}return a??Jr}var Gn=(function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(A){return A<=247?r.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?s.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function T(A,H,G){this.level=A,this.from=H,this.to=G}return function(A,H){var G=H=="ltr"?"L":"R";if(A.length==0||H=="ltr"&&!a.test(A))return!1;for(var se=A.length,ne=[],pe=0;pe<se;++pe)ne.push(c(A.charCodeAt(pe)));for(var we=0,Te=G;we<se;++we){var Le=ne[we];Le=="m"?ne[we]=Te:Te=Le}for(var De=0,Oe=G;De<se;++De){var ze=ne[De];ze=="1"&&Oe=="r"?ne[De]="n":m.test(ze)&&(Oe=ze,ze=="r"&&(ne[De]="R"))}for(var Je=1,Ve=ne[0];Je<se-1;++Je){var lt=ne[Je];lt=="+"&&Ve=="1"&&ne[Je+1]=="1"?ne[Je]="1":lt==","&&Ve==ne[Je+1]&&(Ve=="1"||Ve=="n")&&(ne[Je]=Ve),Ve=lt}for(var Ct=0;Ct<se;++Ct){var sn=ne[Ct];if(sn==",")ne[Ct]="N";else if(sn=="%"){var Rt=void 0;for(Rt=Ct+1;Rt<se&&ne[Rt]=="%";++Rt);for(var Xn=Ct&&ne[Ct-1]=="!"||Rt<se&&ne[Rt]=="1"?"1":"N",Ln=Ct;Ln<Rt;++Ln)ne[Ln]=Xn;Ct=Rt-1}}for(var Kt=0,On=G;Kt<se;++Kt){var cn=ne[Kt];On=="L"&&cn=="1"?ne[Kt]="L":m.test(cn)&&(On=cn)}for(var Jt=0;Jt<se;++Jt)if(d.test(ne[Jt])){var Yt=void 0;for(Yt=Jt+1;Yt<se&&d.test(ne[Yt]);++Yt);for(var zt=(Jt?ne[Jt-1]:G)=="L",Rn=(Yt<se?ne[Yt]:G)=="L",Xs=zt==Rn?zt?"L":"R":G,co=Jt;co<Yt;++co)ne[co]=Xs;Jt=Yt-1}for(var mn=[],ni,ln=0;ln<se;)if(b.test(ne[ln])){var dh=ln;for(++ln;ln<se&&b.test(ne[ln]);++ln);mn.push(new T(0,dh,ln))}else{var ki=ln,Jo=mn.length,Zo=H=="rtl"?1:0;for(++ln;ln<se&&ne[ln]!="L";++ln);for(var _n=ki;_n<ln;)if(x.test(ne[_n])){ki<_n&&(mn.splice(Jo,0,new T(1,ki,_n)),Jo+=Zo);var Js=_n;for(++_n;_n<ln&&x.test(ne[_n]);++_n);mn.splice(Jo,0,new T(2,Js,_n)),Jo+=Zo,ki=_n}else++_n;ki<ln&&mn.splice(Jo,0,new T(1,ki,ln))}return H=="ltr"&&(mn[0].level==1&&(ni=A.match(/^\s+/))&&(mn[0].from=ni[0].length,mn.unshift(new T(0,0,ni[0].length))),xe(mn).level==1&&(ni=A.match(/\s+$/))&&(xe(mn).to-=ni[0].length,mn.push(new T(0,se-ni[0].length,se)))),H=="rtl"?mn.reverse():mn}})();function at(r,s){var c=r.order;return c==null&&(c=r.order=Gn(r.text,s)),c}var Bo=[],Xe=function(r,s,c){if(r.addEventListener)r.addEventListener(s,c,!1);else if(r.attachEvent)r.attachEvent("on"+s,c);else{var a=r._handlers||(r._handlers={});a[s]=(a[s]||Bo).concat(c)}};function vi(r,s){return r._handlers&&r._handlers[s]||Bo}function hn(r,s,c){if(r.removeEventListener)r.removeEventListener(s,c,!1);else if(r.detachEvent)r.detachEvent("on"+s,c);else{var a=r._handlers,d=a&&a[s];if(d){var m=ce(d,c);m>-1&&(a[s]=d.slice(0,m).concat(d.slice(m+1)))}}}function It(r,s){var c=vi(r,s);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Dt(r,s,c){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),It(r,c||s.type,r,s),An(s)||s.codemirrorIgnore}function yr(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<s.length;++a)ce(c,s[a])==-1&&c.push(s[a])}function Kn(r,s){return vi(r,s).length>0}function Er(r){r.prototype.on=function(s,c){Xe(this,s,c)},r.prototype.off=function(s,c){hn(this,s,c)}}function pn(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Ts(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function An(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Ji(r){pn(r),Ts(r)}function jl(r){return r.target||r.srcElement}function Ar(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),I&&r.ctrlKey&&s==1&&(s=3),s}var bd=(function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r})(),Cs;function Pc(r){if(Cs==null){var s=S("span","​");k(r,S("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Cs=s.offsetWidth<=1&&s.offsetHeight>2&&!(h&&p<8))}var c=Cs?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var Wl;function Zi(r){if(Wl!=null)return Wl;var s=k(r,document.createTextNode("AخA")),c=B(s,0,1).getBoundingClientRect(),a=B(s,1,2).getBoundingClientRect();return O(r),!c||c.left==c.right?!1:Wl=a.right-c.right<3}var br=`
50
+ `)}function qg(){return s_(Hn,"the runner"),Hn}function pi(){const e=Jn.currentSuite||o_;return s_(e,"the current suite"),e}function RR(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const yb=Number.POSITIVE_INFINITY;function gl(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},i;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function PR(e,t=()=>{},n,i,o){const l=[];let u;v();const f=function($="",_={}){const C=Jn.currentSuite?.suite,L=(C??Jn.currentSuite?.file)?.tags||[],D=sb([...L,...bs(_.tags)]),N=D.map(S=>{const R=Hn.config.tags?.find(B=>B.name===S);if(!R&&Hn.config.strictTags)throw xf(Hn.config.tags,S);return R}).filter(S=>S!=null).sort((S,R)=>(R.priority??yb)-(S.priority??yb)).reduce((S,R)=>{const{name:B,description:ae,priority:ve,meta:_e,...Be}=R;return Object.assign(S,Be),_e&&(S.meta=Object.assign(S.meta??Object.create(null),_e)),S},{}),I=_.meta;_={...N,..._};const q=_.timeout??Hn.config.testTimeout,X=C?.meta,ie=N.meta,J=Object.create(null);ie&&Object.assign(J,ie),X&&Object.assign(J,X),I&&Object.assign(J,I);const U={id:"",name:$,fullName:Eu([C?.fullName??Jn.currentSuite?.file?.fullName,$]),fullTestName:Eu([C?.fullTestName,$]),suite:C,each:_.each,fails:_.fails,context:void 0,type:"test",file:C?.file??Jn.currentSuite?.file,timeout:q,retry:_.retry??Hn.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:J,annotations:[],artifacts:[],tags:D},K=_.handler;U.mode==="run"&&!K&&(U.mode="todo"),(_.concurrent||!_.sequential&&Hn.config.sequence.concurrent)&&(U.concurrent=!0),U.shuffle=o?.shuffle;const P=qR(U,Hn);Object.defineProperty(U,"context",{value:P,enumerable:!1}),cR(P,_.fixtures??new un);const O=Error.stackTraceLimit;Error.stackTraceLimit=10;const k=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,K&&aR(U,xs(jR(IR(Ec(K,{context:P}),U),U.context.signal),q,!1,k,(S,R)=>Vg([P],R))),Hn.config.includeTaskLocation){const S=k.stack,R=t_(OR,S);R&&(U.location={line:R.line,column:R.column})}return l.push(U),U},h=Ug(function($,_,C){let{options:E,handler:L}=gl(_,C);typeof o=="object"&&(E=Object.assign({},o,E));const D=this.concurrent??(!this.sequential&&E?.concurrent);E.concurrent!=null&&D!=null&&(E.concurrent=D);const N=this.sequential??(!this.concurrent&&E?.sequential);E.sequential!=null&&N!=null&&(E.sequential=N);const I=f(Mo($),{...this,...E,handler:L});I.type="test"}),p={type:"collector",name:e,mode:n,suite:u,options:o,test:h,file:u.file,tasks:l,collect:w,task:f,clear:y,on:g};function g($,..._){dR(u)[$].push(..._)}function v($){typeof o=="number"&&(o={timeout:o});const _=Jn.currentSuite?.suite,C=_??Jn.currentSuite?.file,E=bs(o?.tags);kR(Hn.config,E),u={id:"",type:"suite",name:e,fullName:Eu([_?.fullName??Jn.currentSuite?.file?.fullName,e]),fullTestName:Eu([_?.fullTestName,e]),suite:_,mode:n,each:i,file:_?.file??Jn.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:sb([...C?.tags||[],...E])},fR(u,RR())}function y(){l.length=0,v()}async function w($){if(!$)throw new TypeError("File is required to collect tasks.");t&&await BR(p,()=>t(h));const _=[];for(const C of l)_.push(C.type==="collector"?await C.collect($):C);return u.tasks=_,u}return HR(p),p}function IR(e,t){return(async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i})}function DR(){function e(t,n,i){const o=Jn.currentSuite||o_;let{options:l,handler:u}=gl(n,i);const f=l.concurrent||this.concurrent||l.sequential===!1,h=l.sequential||this.sequential||l.concurrent===!1,{meta:p,...g}=o?.options||{};l={...g,...l};const v=this.shuffle??l.shuffle??o?.options?.shuffle??Hn?.config.sequence.shuffle;v!=null&&(l.shuffle=v);let y=this.only??l.only?"only":this.skip??l.skip?"skip":this.todo??l.todo?"todo":"run";y==="run"&&!u&&(y="todo");const w=f||l.concurrent&&!h,$=h||l.sequential&&!f;return w!=null&&(l.concurrent=w&&!$),$!=null&&(l.sequential=$&&!w),p&&(l.meta=Object.assign(Object.create(null),p,l.meta)),PR(Mo(t),u,y,this.each,l)}return e.each=function(t,...n){const i=Ii(this),o=i.withContext();return i.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Sf(t,n)),(l,u,f)=>{const h=Mo(l),p=t.every(Array.isArray),{options:g,handler:v}=gl(u,f),y=typeof u=="function";t.forEach((w,$)=>{const _=Array.isArray(w)?w:[w];y?p?o(li(h,_,$),v?()=>v(..._):void 0,g.timeout):o(li(h,_,$),v?()=>v(w):void 0,g.timeout):p?o(li(h,_,$),g,v?()=>v(..._):void 0):o(li(h,_,$),g,v?()=>v(w):void 0)}),i.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Sf(t,n)),(i,o,l)=>{const u=Mo(i),{options:f,handler:h}=gl(o,l);t.forEach((p,g)=>{cs(li(u,bs(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?cs.skip:cs,e.runIf=t=>t?cs:cs.skip,YS(["concurrent","sequential","shuffle","skip","only","todo"],e)}function FR(e){const t=e;t.each=function(o,...l){const u=Ii(this),f=u.withContext();return u.setContext("each",!0),Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),y=o.every(Array.isArray),{options:w,handler:$}=gl(p,g),_=typeof p=="function";o.forEach((C,E)=>{const L=Array.isArray(C)?C:[C];_?y?f(li(v,L,E),$?()=>$(...L):void 0,w.timeout):f(li(v,L,E),$?()=>$(C):void 0,w.timeout):y?f(li(v,L,E),w,$?()=>$(...L):void 0):f(li(v,L,E),w,$?()=>$(C):void 0)}),u.setContext("each",void 0)}},t.for=function(o,...l){const f=Ii(this).withContext();return Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),{options:y,handler:w}=gl(p,g);o.forEach(($,_)=>{const C=w?E=>w($,E):void 0;C&&wf(C,{index:1,original:w}),f(li(v,bs($),_),y,C)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,l,u){if(typeof o!="string")return o;const f=o;let h,p;if(u!==void 0?(h=l,p=u):l!==null&&typeof l=="object"&&!Array.isArray(l)&&un.isFixtureOptions(l)?(h=l,p={}):(h=void 0,p=l),typeof p=="function"){const g=p,v=async(y,w)=>{let $;const C=await g(y,{onCleanup:E=>{if($!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");$=E}});await w(C),$&&await $()};return wf(v,{original:g}),h?{[f]:[v,h]}:{[f]:v}}return h?{[f]:[p,h]}:{[f]:p}}return t.override=function(o,l,u){const f=n(o,l,u);return Ii(this).getFixtures().override(Hn,f),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,l,u){const f=n(o,l,u),h=Ii(this).getFixtures().extend(Hn,f),p=Ug(function(g,v,y){e.call(this,Mo(g),v,y)});return Ii(p).mergeContext({fixtures:h}),p},t.describe=cs,t.suite=cs,t.beforeEach=yR,t.afterEach=bR,t.beforeAll=mR,t.afterAll=vR,t.aroundEach=xR,t.aroundAll=wR,YS(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new un})}function Ug(e){return FR(e)}function Mo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function li(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((p,g)=>{if(pO(t[g])||Object.is(t[g],-0)){let v=0;e=e.replace(/%f/g,y=>(v++,v===g+1?"-%f":y))}});const o=IS(t[0]);function l(h){return h.replace(/\$([$\w.]+)/g,(p,g)=>{const v=/^\d+$/.test(g);if(!o&&!v)return`$${g}`;const y=v?rb(t,g):void 0,w=o?rb(t[0],g,y):y;return dO(w,{truncate:Hn?.config?.chaiConfig?.truncateThreshold})})}let u="",f=0;return zR(e,OS,h=>{f<i?u+=fO(h[0],t[f++]):u+=h[0]},h=>{u+=l(h)}),u}function zR(e,t,n,i){let o=0;for(const l of e.matchAll(t))o<l.index&&i(e.slice(o,l.index)),n(l),o=l.index+l[0].length;o<e.length&&i(e.slice(o))}function Sf(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
51
+ `).map(o=>o.split("|"))[0],i=[];for(let o=0;o<Math.floor(t.length/n.length);o++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[o*n.length+u];i.push(l)}return i}const bb=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Jn={currentSuite:null};function HR(e){Jn.currentSuite?.tasks.push(e)}async function BR(e,t){const n=Jn.currentSuite;Jn.currentSuite=e,await t(),Jn.currentSuite=n}function xs(e,t,n=!1,i,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=DS();return(function(...h){const p=bb(),g=qg();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{const w=l(()=>{u(w),$()},t);w.unref?.();function $(){const E=UR(n,t,i);o?.(h,E),y(E)}function _(E){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),bb()-p>=t){$();return}v(E)}function C(E){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),y(E)}try{const E=e(...h);typeof E=="object"&&E!=null&&typeof E.then=="function"?E.then(_,C):_(E)}catch(E){C(E)}})})}function jR(e,t){return(function(...i){return new Promise((o,l)=>{t.addEventListener("abort",()=>l(t.reason));try{const u=e(...i);typeof u=="object"&&u!=null&&typeof u.then=="function"?u.then(o,l):o(u)}catch(u){l(u)}})})}const Ep=new WeakMap;function Vg([e],t){e&&WR(e,t)}function WR(e,t){Ep.get(e)?.abort(t)}function qR(e,t){const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let i=Ep.get(n);return i||(i=new AbortController,Ep.set(n,i)),n.signal=i.signal,n.task=e,n.skip=(o,l)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new oR("test is skipped; abort execution",e,typeof o=="string"?o:l)},n.annotate=((o,l,u)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const f={message:o,type:typeof l=="object"||l===void 0?"notice":l},h=typeof l=="object"?l:u;return h&&(f.attachment=h,a_(f.attachment)),YR(e,GR(e,{type:"internal:annotation",annotation:f}).then(async({annotation:p})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await l_(t);const g=await t.onTestAnnotate(e,p);return e.annotations.push(g),g}))}),n.onTestFailed=(o,l)=>{e.onFailed||=[],e.onFailed.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},n.onTestFinished=(o,l)=>{e.onFinished||=[],e.onFinished.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},t.extendTaskContext?.(n)||n}function UR(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
52
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(i);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;DS();const Fh=new Map,wb=[],Wu=[];function VR(e){if(Fh.size){const t=Array.from(Fh).map(([i,o])=>[i,o[0],o[1]]),n=e.onTaskUpdate?.(t,wb);n&&(Wu.push(n),n.then(()=>Wu.splice(Wu.indexOf(n),1),()=>{})),wb.length=0,Fh.clear()}}async function l_(e){VR(e),await Promise.all(Wu)}async function GR(e,t){const n=qg(),i=t_(e.file.filepath,new Error("STACK_TRACE").stack);if(i&&(t.location={file:i.file,line:i.line,column:i.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const l of t.attachments)a_(l);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await l_(n);const o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const ar=[];for(let e=65;e<91;e++)ar.push(String.fromCharCode(e));for(let e=97;e<123;e++)ar.push(String.fromCharCode(e));for(let e=0;e<10;e++)ar.push(e.toString(10));ar.push("+","/");function KR(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const o=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ar[o],t+=ar[l],t+="=="}else if(n===i+2){const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ar[o],t+=ar[l],t+=ar[u],t+="="}else{const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ar[o],t+=ar[l],t+=ar[u],t+=ar[f]}return t}function YR(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function a_(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=KR(e.body))}const xb="q",Sb="s";function XR(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}const JR=Math.random.bind(Math),ZR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function QR(e=21){let t="",n=e;for(;n--;)t+=ZR[JR()*64|0];return t}const eP=6e4,c_=e=>e,tP=c_,{clearTimeout:_b,setTimeout:nP}=globalThis;function rP(e,t){const{post:n,on:i,off:o=()=>{},eventNames:l=[],serialize:u=c_,deserialize:f=tP,resolver:h,bind:p="rpc",timeout:g=eP,proxify:v=!0}=t;let y=!1;const w=new Map;let $,_;async function C(I,q,X,ie){if(y)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:xb};ie&&(J.o=!0);const U=async B=>n(u(B));if(X){await U(J);return}if($)try{await $}finally{$=void 0}let{promise:K,resolve:P,reject:O}=XR();const k=QR();J.i=k;let S;async function R(B=J){return g>=0&&(S=nP(()=>{try{if(t.onTimeoutError?.call(_,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){O(ae)}w.delete(k)},g),typeof S=="object"&&(S=S.unref?.())),w.set(k,{resolve:P,reject:O,timeoutId:S,method:I}),await U(B),K}try{t.onRequest?await t.onRequest.call(_,J,R,P):await R()}catch(B){if(t.onGeneralError?.call(_,B)!==!0)throw B;return}finally{_b(S),w.delete(k)}return K}const E={$call:(I,...q)=>C(I,q,!1),$callOptional:(I,...q)=>C(I,q,!1,!0),$callEvent:(I,...q)=>C(I,q,!0),$callRaw:I=>C(I.method,I.args,I.event,I.optional),$rejectPendingCalls:D,get $closed(){return y},get $meta(){return t.meta},$close:L,$functions:e};v?_=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(E,q))return E[q];if(q==="then"&&!l.includes("then")&&!("then"in e))return;const X=(...J)=>C(q,J,!0);if(l.includes(q))return X.asEvent=X,X;const ie=(...J)=>C(q,J,!1);return ie.asEvent=X,ie}}):_=E;function L(I){y=!0,w.forEach(({reject:q,method:X})=>{const ie=new Error(`[birpc] rpc is closed, cannot call "${X}"`);if(I)return I.cause??=ie,q(I);q(ie)}),w.clear(),o(N)}function D(I){const q=Array.from(w.values()).map(({method:X,reject:ie})=>I?I({method:X,reject:ie}):ie(new Error(`[birpc]: rejected pending call "${X}".`)));return w.clear(),q}async function N(I,...q){let X;try{X=f(I)}catch(ie){if(t.onGeneralError?.call(_,ie)!==!0)throw ie;return}if(X.t===xb){const{m:ie,a:J,o:U}=X;let K,P,O=await(h?h.call(_,ie,e[ie]):e[ie]);if(U&&(O||=()=>{}),!O)P=new Error(`[birpc] function "${ie}" not found`);else try{K=await O.apply(p==="rpc"?_:e,J)}catch(k){P=k}if(X.i){if(P&&t.onFunctionError&&t.onFunctionError.call(_,P,ie,J)===!0)return;if(!P)try{await n(u({t:Sb,i:X.i,r:K}),...q);return}catch(k){if(P=k,t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}try{await n(u({t:Sb,i:X.i,e:P}),...q)}catch(k){if(t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}}}else{const{i:ie,r:J,e:U}=X,K=w.get(ie);K&&(_b(K.timeoutId),U?K.reject(U):K.resolve(J)),w.delete(ie)}}return $=i(N),_}const{parse:u_,stringify:iP}=JSON,{keys:oP}=Object,uc=String,f_="string",kb={},_f="object",d_=(e,t)=>t,sP=e=>e instanceof uc?uc(e):e,lP=(e,t)=>typeof t===f_?new uc(t):t,aP=(e,t,n,i)=>o=>{for(let l=oP(o),{length:u}=l,f=0;f<u;f++){const h=l[f],p=o[h];if(p instanceof uc){const g=e[+p];typeof g===_f&&!n.has(g)?(n.add(g),o[h]=kb,t.push({o,k:h,r:g})):o[h]=i.call(o,h,g)}else o[h]!==kb&&(o[h]=i.call(o,h,p))}return o},Tb=(e,t,n)=>{const i=uc(t.push(n)-1);return e.set(n,i),i},Ap=(e,t)=>{const n=u_(e,lP).map(sP),i=t||d_;let o=n[0];if(typeof o===_f&&o){const l=[],u=aP(n,l,new Set,i);o=u(o);let f=0;for(;f<l.length;){const{o:h,k:p,r:g}=l[f++];h[p]=i.call(h,p,u(g))}}return i.call({"":o},"",o)},h_=(e,t,n)=>{const i=t&&typeof t===_f?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||d_,o=new Map,l=[],u=[];let f=+Tb(o,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=iP(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case _f:if(y===null)return y;case f_:return o.get(y)||Tb(o,l,y)}return y}},cP=e=>u_(h_(e));class p_{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.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(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],o=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(o=>{const l=this.filesMap.get(o),u=e_(o,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(o,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(o,[...f,u]):this.filesMap.set(o,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,o]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=o,i?.state==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function uP(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new p_,waitForConnection:E,reconnect:_},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(L,D){n.onTestAnnotate?.(L,D)},onTestArtifactRecord(L,D){n.onTestArtifactRecord?.(L,D)},onSpecsCollected(L,D){L?.forEach(([N,I])=>{g.state.clearFiles({config:N},[I])}),n.onSpecsCollected?.(L,D)},onPathsCollected(L){g.state.collectPaths(L),n.onPathsCollected?.(L)},onCollected(L){g.state.collectFiles(L),n.onCollected?.(L)},onTaskUpdate(L,D){g.state.updateTasks(L),n.onTaskUpdate?.(L,D)},onUserConsoleLog(L){g.state.updateUserLog(L),n.onUserConsoleLog?.(L)},onFinished(L,D,N,I){n.onFinished?.(L,D,N,I)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},w={post:L=>g.ws.send(L),on:L=>v=L,serialize:L=>h_(L,(D,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Ap,timeout:-1};g.rpc=rP(y,w);let $;function _(L=!1){L&&(p=l),g.ws=new h(e),C()}function C(){$=new Promise((L,D)=>{const N=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u)?.unref?.();g.ws.OPEN===g.ws.readyState&&L(),g.ws.addEventListener("open",()=>{p=l,L(),clearTimeout(N)})}),g.ws.addEventListener("message",L=>{v(L.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout(_,o)})}C();function E(){return $}return g}const Po=oM(),fP=BN(Po);function Ac(e){return Object.hasOwn(e,"tasks")}function dP(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function us(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zh(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function hP(e){const t=new Map,n=new Map,i=[];for(;;){let o=0;if(e.forEach((l,u)=>{const{splits:f,finished:h}=l;if(h){o++;const{raw:g,candidate:v}=l;t.set(g,v);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,n.get(p)?.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,o===e.length)break}return t}function g_(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,splitsCopy:[...n],candidate:"",finished:!1,id:e}}function pP(e){return g_(e).raw}function qu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function kf(e){const t=qu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Uu(e,t=!1){if(!e)return"";const n=e.split("").reduce((l,u,f)=>l+u.charCodeAt(0)+f,0),i=Po.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],o=Po.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?o:i)[n%i.length]}function m_(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const $p=Vt([]),rr=Vt([]),Kr=Cc("vitest-ui_task-tree-opened",[],{shallow:!0}),Bl="__vitest_ui_all_projects__",Tf=Se(()=>new Set(Kr.value)),Ht=Cc("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:Bl,projectSort:void 0}),Fr=Ke(Ht.value.projectSort||"default"),ml=Vt(Ht.value?.project||Bl),Np=Se(()=>rm.value.length>1),gP=Se(()=>ml.value===Bl),Gg=Se(()=>!Np.value||ml.value===Bl?void 0:ml.value),Hr=Ke(Ht.value.search),Cb=new Map,vo=Se(()=>{if(Hr.value.startsWith("tag:")){if(!pt.value.tags)return{matcher:()=>!0};const e=Hr.value.slice(4).trim();let t=Cb.get(e);return t||(t=mP(e),Cb.set(e,t)),{matcher:n=>t.matcher(n.tags||[]),error:t.error}}return{matcher:e=>Hr.value===""||dP(e.name,Hr.value)}});function mP(e){if(!e)return{matcher:()=>!0};try{return{matcher:TR([e],pt.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const vP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v_(e){return e.replace(/[&<>"']/g,t=>vP[t])}const yP=Se(()=>{const e=Hr.value.toLowerCase();return e.length?new RegExp(`(${v_(e)})`,"gi"):null}),y_=Se(()=>Hr.value.trim()!==""),Ze=dr({failed:Ht.value.failed,success:Ht.value.success,skipped:Ht.value.skipped,slow:Ht.value.slow,onlyTests:Ht.value.onlyTests}),Mp=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped||Ze.slow)),fd=Vt([]),Ml=Ke(!1),Eb=Se(()=>{const e=Ht.value.expandAll;return Kr.value.length>0?e!==!0:e!==!1}),bP=Se(()=>{const e=y_.value,t=Mp.value,n=Gg.value,i=Ze.onlyTests,o=$e.summary.filesFailed,l=$e.summary.filesSuccess,u=$e.summary.filesSkipped,f=$e.summary.filesRunning,h=fd.value;return $e.collectTestsTotal(e||t||!!n,i,h,{failed:o,success:l,skipped:u,running:f})});function wP(e){return e.type==="test"}function xP(e){return e.mode==="run"&&e.type==="test"}function Wn(e){return e.type==="file"}function Ui(e){return e.type==="file"||e.type==="suite"}function Lp(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const n=pt.value.slowTestThreshold;return typeof n=="number"&&t>n}function SP(e,t=$e.root.tasks){const n=[...t];return n.sort((i,o)=>{if(e==="duration-desc"||e==="duration-asc"){const l=i.duration??0,u=o.duration??0;if(l!==u)return e==="duration-desc"?u-l:l-u}else if(e==="asc"||e==="desc"){const l=i.projectName||"",u=o.projectName||"";if(l!==u)return e==="asc"?l.localeCompare(u):u.localeCompare(l)}return`${i.filepath}:${i.projectName}`.localeCompare(`${o.filepath}:${o.projectName}`)}),n}function fc(e,t=!1){let n=$e.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:$e.colors.get(e.projectName||"")||Uu(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},$e.nodes.set(e.id,n),$e.root.tasks.push(n)),t)for(let i=0;i<e.tasks.length;i++)$c(e.id,e.tasks[i],!0)}function b_(e,t){const n=$e.nodes.get(e);if(!n||!Ui(n))return;const i=ft.state.idMap.get(e);if(!(!i||!Ac(i)))return $c(n.parentId,i,t&&i.tasks.length>0),[n,i]}function _P(e){const t=$e.nodes.get(e);if(!t)return;const n=ft.state.idMap.get(e);!n||!Nl(n)||$c(t.parentId,n,!1)}function $c(e,t,n){const i=$e.nodes.get(e);let o;const l=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(i&&(o=$e.nodes.get(t.id),o?(i.children.has(t.id)||(i.tasks.push(o),i.children.add(t.id)),o.name=t.name,o.mode=t.mode,o.duration=l,o.slow=Lp(t),o.state=t.result?.state):(Nl(t)?o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:i.indent+1,duration:l,slow:Lp(t),state:t.result?.state}:o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,slow:!1,state:t.result?.state},$e.nodes.set(t.id,o),i.tasks.push(o),i.children.add(t.id)),o&&n&&Ac(t)))for(let u=0;u<t.tasks.length;u++)$c(o.id,t.tasks[u],n)}function kP(e){const t=$e.nodes.get(e);if(!t||!Ui(t))return;const n=new Set(Kr.value);n.delete(t.id);const i=[...CP(t)];Kr.value=Array.from(n),rr.value=i}function TP(){Op($e.root.tasks);const e=[...rr.value.filter(Wn)];Op(e),Kr.value=[],Ht.value.expandAll=!0,rr.value=e}function Op(e){for(const t of e)Ui(t)&&(t.expanded=!1,Op(t.tasks))}function*w_(e,t){if(t&&(yield e.id),Ui(e))for(let n=0;n<e.tasks.length;n++)yield*w_(e.tasks[n],!0)}function*CP(e){const t=e.id,n=new Set(w_(e,!1));for(let i=0;i<rr.value.length;i++){const o=rr.value[i];if(o.id===t){o.expanded=!1,yield o;continue}if(n.has(o.id)){n.delete(o.id);continue}yield o}}const dd=Ke("idle"),ol=Se(()=>dd.value==="idle"),So=Ke([]),EP=Se(()=>(pt.value.tags||[]).reduce((t,n)=>(t[n.name]=n,t),{}));function AP(e,t,n){return e?__(e,t,n):!1}function Kg(e,t){const n=[...x_(e,t)];rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function*x_(e,t){const n=Gg.value,i=SP(Fr.value);for(const o of i)n&&o.projectName!==n||(yield*S_(o,e,t))}function*S_(e,t,n){const i=new Set,o=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))l.push([v,y]);else{for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))Ui(y)?(o.set(y.id,v),Wn(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||o.get(y.parentId)===!0,y])):l.push([v||o.get(y.parentId)===!0,y]);!u&&!Wn(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...NP(l,n.onlyTests,i,f,u)].reverse(),p=$e.nodes;for(const v of i){const y=p.get(v);y&&"expanded"in y&&(y.expanded=!0)}const g=new Set(h.filter(v=>Wn(v)||Ui(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Wn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function $P(e,t,n,i,o){if(i){if(Wn(t))return o.has(t.id)?t:void 0;if(n.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}else if(e||n.has(t.id)||o.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}function*NP(e,t,n,i,o){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ui(f);if(!t&&o&&n.has(o)&&"fileId"in f&&f.fileId===o){h&&n.add(f.id);let p=$e.nodes.get(f.parentId);for(;p;)n.add(p.id),Wn(p)&&i.add(p.id),p=$e.nodes.get(p.parentId);yield f;continue}if(h){const p=$P(u,f,n,t,i);p&&(yield p)}else if(u){const p=$e.nodes.get(f.parentId);p&&Wn(p)&&i.add(p.id),yield f}}}function MP(e,t){if(t.slow&&e.type==="test"){const n=pt.value.slowTestThreshold;if(typeof n=="number"&&typeof e.result?.duration=="number"&&e.result.duration>n)return!0}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 __(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(MP(e,n))return!0}else return!0;return!1}function*Rp(e,t,n){const i=n(e);if(i)if(wP(e)){let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}else if(Wn(e))t.add(e.id);else{t.add(e.id);let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}if(yield[i,e],Ui(e))for(let o=0;o<e.tasks.length;o++)yield*Rp(e.tasks[o],t,n)}function Ab(e,t,n){const i=ft.state.idMap.get(e.id);return i?__(i,t,n):!1}function LP(e,t,n){const i=b_(e,!1);if(!i)return;const[o,l]=i;for(const p of l.tasks)$c(o.id,p,!1);o.expanded=!0;const u=new Set(Kr.value);u.add(o.id);const f=new Set(S_(o,t,n)),h=[...PP(o,f)];Kr.value=Array.from(u),rr.value=h}function OP(e,t){Yg($e.root.tasks,!1);const n=[...x_(e,t)];Ht.value.expandAll=!1,Kr.value=[],rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function RP(e,t){if(e.size)for(const n of rr.value)e.has(n.id)&&(n.expanded=!0);else t&&Yg(rr.value.filter(Wn),!0)}function Yg(e,t){for(const n of e)Ui(n)&&(n.expanded=!0,Yg(n.tasks,!1));t&&(Ht.value.expandAll=!1,Kr.value=[])}function*PP(e,t){const n=e.id,i=new Set(Array.from(t).map(o=>o.id));for(const o of rr.value)o.id===n?(o.expanded=!0,i.has(o.id)||(yield e),yield*t):i.has(o.id)||(yield o)}function Xg(e){return i_(e).some(t=>t.result?.errors?.some(n=>typeof n?.message=="string"&&n.message.match(/Snapshot .* mismatched/)))}function IP(e,t,n,i){e.map(o=>[`${o.filepath}:${o.projectName||""}`,o]).sort(([o],[l])=>o.localeCompare(l)).map(([,o])=>fc(o,t)),$p.value=[...$e.root.tasks],Kg(n,{failed:i.failed,success:i.success,skipped:i.skipped,slow:i.slow,onlyTests:i.onlyTests})}function DP(e){queueMicrotask(()=>{const t=$e.pendingTasks,n=ft.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function FP(e,t){const n=$e.pendingTasks,o=ft.state.idMap.get(e);if(o?.type==="test"){let l=n.get(o.file.id);l||(l=new Set,n.set(o.file.id,l)),l.add(o.id),t.type==="internal:annotation"?o.annotations.push(t.annotation):o.artifacts.push(t)}}function $b(e,t,n,i,o,l){e&&qP(n);const u=!e;queueMicrotask(()=>{t?BP(u):jP(u)}),queueMicrotask(()=>{UP(n,l)}),queueMicrotask(()=>{t&&(n.failedSnapshot=$p.value&&Xg($p.value.map(f=>Cr(f.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{WP(i,o,t)})}function*zP(){yield*rr.value.filter(xP)}function HP(){const e=ft.state.idMap;let t;for(const n of zP())t=e.get(n.parentId),t&&Ac(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function BP(e){const t=ft.state.getFiles(),n=$e.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)fc(i[l],e),Cf(i[l].tasks);const o=$e.root.tasks;for(let l=0;l<o.length;l++){const u=o[l],f=Cr(u.id);!f||(fc(f,e),!f.tasks?.length)||Cf(f.tasks)}}function jP(e){const t=new Map($e.pendingTasks.entries());$e.pendingTasks.clear();const n=$e.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>Cr(f)).filter(Boolean);let o;for(let f=0;f<i.length;f++)o=i[f],fc(o,!1),Cf(o.tasks),t.delete(o.id);const l=ft.state.idMap,u=$e.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=Cr(h.id);if(!p)continue;const g=t.get(p.id);g&&(fc(p,e),Cf(Array.from(g,v=>l.get(v)).filter(Boolean)))}}function WP(e,t,n=!1){const i=Ht.value.expandAll,o=i!==!0,l=new Set(Kr.value),u=l.size>0&&i===!1||o;queueMicrotask(()=>{Nb(e,t,n)}),Ml.value||queueMicrotask(()=>{(rr.value.length||n)&&(Ml.value=!0)}),u&&(queueMicrotask(()=>{RP(l,n),o&&(Ht.value.expandAll=!1)}),queueMicrotask(()=>{Nb(e,t,n)}))}function Nb(e,t,n){Kg(e,t),n&&(HP(),dd.value="idle")}function Cf(e){let t;for(let n=0;n<e.length;n++)t=e[n],Ac(t)?b_(t.id,!0):_P(t.id)}function qP(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.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function UP(e,t){const n=ft.state.idMap,i=new Map($e.root.tasks.filter(u=>n.has(u.id)).map(u=>[u.id,u])),o=Array.from(i.values(),u=>[u.id,Cr(u.id)]),l={files:i.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[u,f]of o){if(!f)continue;f.result?.state==="fail"?l.filesFailed++:f.result?.state==="pass"?l.filesSuccess++:f.mode==="skip"?(l.filesIgnore++,l.filesSkipped++):f.mode==="todo"?(l.filesIgnore++,l.filesTodo++):l.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:y,todo:w,expectedFail:$,slow:_}=k_(f);l.totalTests+=v,l.testsFailed+=h,l.testsSuccess+=p,l.testsSkipped+=g,l.testsTodo+=w,l.testsExpectedFail+=$,l.testsSlow+=_,l.testsIgnore+=y}e.files=l.files,e.time=l.time,e.filesFailed=l.filesFailed,e.filesSuccess=l.filesSuccess,e.filesIgnore=l.filesIgnore,e.filesRunning=l.filesRunning,e.filesSkipped=l.filesSkipped,e.filesTodo=l.filesTodo,e.testsFailed=l.testsFailed,e.testsSuccess=l.testsSuccess,e.testsTodo=l.testsTodo,e.testsExpectedFail=l.testsExpectedFail,e.testsSlow=l.testsSlow,e.testsIgnore=l.testsIgnore,e.testsSkipped=l.testsSkipped,e.totalTests=l.totalTests}function k_(e,t=()=>!0,n){const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const o of T_(e))(!n||AP(o,t,n))&&(i.total++,Lp(o)&&i.slow++,o.result?.state==="fail"?i.failed++:o.result?.state==="pass"?o.fails?i.expectedFail++:i.success++:o.mode==="skip"?(i.ignored++,i.skipped++):o.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored-i.expectedFail,i}function VP(e,t,n,i,o,l){if(t)return n.map(u=>k_(u,o,l)).reduce((u,{failed:f,success:h,ignored:p,running:g})=>(u.failed+=f,u.success+=h,u.skipped+=p,u.running+=g,u),{failed:0,success:0,skipped:0,running:0});if(e){const u={failed:0,success:0,skipped:0,running:0},f=!l.success&&!l.failed,h=l.failed||f,p=l.success||f;for(const g of n)g.result?.state==="fail"?u.failed+=h?1:0:g.result?.state==="pass"?u.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||u.running++;return u}return i}function*T_(e){const t=bs(e);let n;for(let i=0;i<t.length;i++)n=t[i],Nl(n)?yield n:yield*T_(n.tasks)}class GP{constructor(t=[],n=new Map,i=!1,o=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=new Map,h=dr({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,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=o,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=YN(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),IP(t,!0,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,n){FP(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){DP(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,n,i=!0){i?queueMicrotask(()=>{$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}):$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,n,i,o){return VP(t,n,i,o,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{kP(t)})}expandNode(t){queueMicrotask(()=>{LP(t,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{TP()})}expandAllNodes(){queueMicrotask(()=>{OP(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kg(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}}const $e=new GP;function Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vu={exports:{}},KP=Vu.exports,Mb;function Ho(){return Mb||(Mb=1,(function(e,t){(function(n,i){e.exports=i()})(KP,(function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],$=/Opera\//.test(n),_=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),L=_&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),N=L||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),I=L||/Mac/.test(i),q=/\bCrOS\b/.test(n),X=/win/i.test(i),ie=$&&n.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&($=!1,g=!0);var J=I&&(v||$&&(ie==null||ie<12.11)),U=o||h&&p>=9;function K(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var P=function(r,s){var c=r.className,a=K(s).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function O(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function k(r,s){return O(r).appendChild(s)}function S(r,s,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof s=="string")d.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)d.appendChild(s[m]);return d}function R(r,s,c,a){var d=S(r,s,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,s,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,s),d}:B=function(r,s,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",s),a};function ae(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function ve(r){var s=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=s.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function _e(r,s){var c=r.className;K(s).test(c)||(r.className+=(c?" ":"")+s)}function Be(r,s){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!K(c[a]).test(s)&&(s+=" "+c[a]);return s}var Ee=function(r){r.select()};L?Ee=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(Ee=function(r){try{r.select()}catch{}});function Ge(r){return r.display.wrapper.ownerDocument}function Ue(r){return He(r.display.wrapper)}function He(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function Re(r){return Ge(r).defaultView}function z(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function Z(r,s,c){s||(s={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!s.hasOwnProperty(a))&&(s[a]=r[a]);return s}function re(r,s,c,a,d){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=s)return b+(s-m);b+=x-m,b+=c-b%c,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};le.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},le.prototype.set=function(r,s){this.f=s;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ce(r,s){for(var c=0;c<r.length;++c)if(r[c]==s)return c;return-1}var F=50,j={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function me(r,s,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=s)return a+Math.min(b,s-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=s)return a}}var Ce=[""];function Ae(r){for(;Ce.length<=r;)Ce.push(xe(Ce)+" ");return Ce[r]}function xe(r){return r[r.length-1]}function be(r,s){for(var c=[],a=0;a<r.length;a++)c[a]=s(r[a],a);return c}function Q(r,s,c){for(var a=0,d=c(s);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,s)}function ue(){}function oe(r,s){var c;return Object.create?c=Object.create(r):(ue.prototype=r,c=new ue),s&&Z(s,c),c}var Pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Pe.test(r))}function ct(r,s){return s?s.source.indexOf("\\w")>-1&&et(r)?!0:s.test(r):et(r)}function dt(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var Ot=/[\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 ut(r){return r.charCodeAt(0)>=768&&Ot.test(r)}function en(r,s,c){for(;(c<0?s>0:s<r.length)&&ut(r.charAt(s));)s+=c;return s}function Gt(r,s,c){for(var a=s>c?-1:1;;){if(s==c)return s;var d=(s+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==s)return r(m)?s:c;r(m)?c=m:s=m+a}}function Vn(r,s,c,a){if(!r)return a(s,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>s||s==c&&b.to==s)&&(a(Math.max(b.from,s),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(s,c,"ltr")}var Jr=null;function Wt(r,s,c){var a;Jr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<s&&m.to>s)return d;m.to==s&&(m.from!=m.to&&c=="before"?a=d:Jr=d),m.from==s&&(m.from!=m.to&&c!="before"?a=d:Jr=d)}return a??Jr}var Gn=(function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(A){return A<=247?r.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?s.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function T(A,H,G){this.level=A,this.from=H,this.to=G}return function(A,H){var G=H=="ltr"?"L":"R";if(A.length==0||H=="ltr"&&!a.test(A))return!1;for(var se=A.length,ne=[],pe=0;pe<se;++pe)ne.push(c(A.charCodeAt(pe)));for(var we=0,Te=G;we<se;++we){var Le=ne[we];Le=="m"?ne[we]=Te:Te=Le}for(var De=0,Oe=G;De<se;++De){var ze=ne[De];ze=="1"&&Oe=="r"?ne[De]="n":m.test(ze)&&(Oe=ze,ze=="r"&&(ne[De]="R"))}for(var Je=1,Ve=ne[0];Je<se-1;++Je){var lt=ne[Je];lt=="+"&&Ve=="1"&&ne[Je+1]=="1"?ne[Je]="1":lt==","&&Ve==ne[Je+1]&&(Ve=="1"||Ve=="n")&&(ne[Je]=Ve),Ve=lt}for(var Ct=0;Ct<se;++Ct){var sn=ne[Ct];if(sn==",")ne[Ct]="N";else if(sn=="%"){var Rt=void 0;for(Rt=Ct+1;Rt<se&&ne[Rt]=="%";++Rt);for(var Xn=Ct&&ne[Ct-1]=="!"||Rt<se&&ne[Rt]=="1"?"1":"N",Ln=Ct;Ln<Rt;++Ln)ne[Ln]=Xn;Ct=Rt-1}}for(var Kt=0,On=G;Kt<se;++Kt){var cn=ne[Kt];On=="L"&&cn=="1"?ne[Kt]="L":m.test(cn)&&(On=cn)}for(var Jt=0;Jt<se;++Jt)if(d.test(ne[Jt])){var Yt=void 0;for(Yt=Jt+1;Yt<se&&d.test(ne[Yt]);++Yt);for(var zt=(Jt?ne[Jt-1]:G)=="L",Rn=(Yt<se?ne[Yt]:G)=="L",Xs=zt==Rn?zt?"L":"R":G,co=Jt;co<Yt;++co)ne[co]=Xs;Jt=Yt-1}for(var mn=[],ni,ln=0;ln<se;)if(b.test(ne[ln])){var dh=ln;for(++ln;ln<se&&b.test(ne[ln]);++ln);mn.push(new T(0,dh,ln))}else{var ki=ln,Jo=mn.length,Zo=H=="rtl"?1:0;for(++ln;ln<se&&ne[ln]!="L";++ln);for(var _n=ki;_n<ln;)if(x.test(ne[_n])){ki<_n&&(mn.splice(Jo,0,new T(1,ki,_n)),Jo+=Zo);var Js=_n;for(++_n;_n<ln&&x.test(ne[_n]);++_n);mn.splice(Jo,0,new T(2,Js,_n)),Jo+=Zo,ki=_n}else++_n;ki<ln&&mn.splice(Jo,0,new T(1,ki,ln))}return H=="ltr"&&(mn[0].level==1&&(ni=A.match(/^\s+/))&&(mn[0].from=ni[0].length,mn.unshift(new T(0,0,ni[0].length))),xe(mn).level==1&&(ni=A.match(/\s+$/))&&(xe(mn).to-=ni[0].length,mn.push(new T(0,se-ni[0].length,se)))),H=="rtl"?mn.reverse():mn}})();function at(r,s){var c=r.order;return c==null&&(c=r.order=Gn(r.text,s)),c}var Bo=[],Xe=function(r,s,c){if(r.addEventListener)r.addEventListener(s,c,!1);else if(r.attachEvent)r.attachEvent("on"+s,c);else{var a=r._handlers||(r._handlers={});a[s]=(a[s]||Bo).concat(c)}};function vi(r,s){return r._handlers&&r._handlers[s]||Bo}function hn(r,s,c){if(r.removeEventListener)r.removeEventListener(s,c,!1);else if(r.detachEvent)r.detachEvent("on"+s,c);else{var a=r._handlers,d=a&&a[s];if(d){var m=ce(d,c);m>-1&&(a[s]=d.slice(0,m).concat(d.slice(m+1)))}}}function It(r,s){var c=vi(r,s);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Dt(r,s,c){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),It(r,c||s.type,r,s),An(s)||s.codemirrorIgnore}function yr(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<s.length;++a)ce(c,s[a])==-1&&c.push(s[a])}function Kn(r,s){return vi(r,s).length>0}function Er(r){r.prototype.on=function(s,c){Xe(this,s,c)},r.prototype.off=function(s,c){hn(this,s,c)}}function pn(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Ts(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function An(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Ji(r){pn(r),Ts(r)}function jl(r){return r.target||r.srcElement}function Ar(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),I&&r.ctrlKey&&s==1&&(s=3),s}var bd=(function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r})(),Cs;function Pc(r){if(Cs==null){var s=S("span","​");k(r,S("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Cs=s.offsetWidth<=1&&s.offsetHeight>2&&!(h&&p<8))}var c=Cs?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var Wl;function Zi(r){if(Wl!=null)return Wl;var s=k(r,document.createTextNode("AخA")),c=B(s,0,1).getBoundingClientRect(),a=B(s,1,2).getBoundingClientRect();return O(r),!c||c.left==c.right?!1:Wl=a.right-c.right<3}var br=`
53
53
 
54
54
  b`.split(/\n/).length!=3?function(r){for(var s=0,c=[],a=r.length;s<=a;){var d=r.indexOf(`
55
55
  `,s);d==-1&&(d=r.length);var m=r.slice(s,r.charAt(d-1)=="\r"?d-1:d),b=m.indexOf("\r");b!=-1?(c.push(m.slice(0,b)),s+=b+1):(c.push(m),s=d+1)}return c}:function(r){return r.split(/\r\n?|\n/)},Qi=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},Ic=(function(){var r=S("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")})(),$r=null;function wd(r){if($r!=null)return $r;var s=k(r,S("span","x")),c=s.getBoundingClientRect(),a=B(s,0,1).getBoundingClientRect();return $r=Math.abs(c.left-a.left)>1}var Es={},Nr={};function Mr(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Es[r]=s}function jo(r,s){Nr[r]=s}function As(r){if(typeof r=="string"&&Nr.hasOwnProperty(r))r=Nr[r];else if(r&&typeof r.name=="string"&&Nr.hasOwnProperty(r.name)){var s=Nr[r.name];typeof s=="string"&&(s={name:s}),r=oe(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return As("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return As("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function $s(r,s){s=As(s);var c=Es[s.name];if(!c)return $s(r,"text/plain");var a=c(r,s);if(eo.hasOwnProperty(s.name)){var d=eo[s.name];for(var m in d)d.hasOwnProperty(m)&&(a.hasOwnProperty(m)&&(a["_"+m]=a[m]),a[m]=d[m])}if(a.name=s.name,s.helperType&&(a.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)a[b]=s.modeProps[b];return a}var eo={};function Ns(r,s){var c=eo.hasOwnProperty(r)?eo[r]:eo[r]={};Z(s,c)}function Zr(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var c={};for(var a in s){var d=s[a];d instanceof Array&&(d=d.concat([])),c[a]=d}return c}function ql(r,s){for(var c;r.innerMode&&(c=r.innerMode(s),!(!c||c.mode==r));)s=c.state,r=c.mode;return c||{mode:r,state:s}}function Ms(r,s,c){return r.startState?r.startState(s,c):!0}var Ft=function(r,s,c){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(r){var s=this.string.charAt(this.pos),c;if(typeof r=="string"?c=s==r:c=s&&(r.test?r.test(s):r(s)),c)return++this.pos,s},Ft.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},Ft.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},Ft.prototype.backUp=function(r){this.pos-=r},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(r,s,c){if(typeof r=="string"){var a=function(b){return c?b.toLowerCase():b},d=this.string.substr(this.pos,r.length);if(a(d)==a(r))return s!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&s!==!1&&(this.pos+=m[0].length),m)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},Ft.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},Ft.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function qe(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var c=r;!c.lines;)for(var a=0;;++a){var d=c.children[a],m=d.chunkSize();if(s<m){c=d;break}s-=m}return c.lines[s]}function yi(r,s,c){var a=[],d=s.line;return r.iter(s.line,c.line+1,function(m){var b=m.text;d==c.line&&(b=b.slice(0,c.ch)),d==s.line&&(b=b.slice(s.ch)),a.push(b),++d}),a}function Ul(r,s,c){var a=[];return r.iter(s,c,function(d){a.push(d.text)}),a}function or(r,s){var c=s-r.height;if(c)for(var a=r;a;a=a.parent)a.height+=c}function M(r){if(r.parent==null)return null;for(var s=r.parent,c=ce(s.lines,r),a=s.parent;a;s=a,a=a.parent)for(var d=0;a.children[d]!=s;++d)c+=a.children[d].chunkSize();return c+s.first}function V(r,s){var c=r.first;e:do{for(var a=0;a<r.children.length;++a){var d=r.children[a],m=d.height;if(s<m){r=d;continue e}s-=m,c+=d.chunkSize()}return c}while(!r.lines);for(var b=0;b<r.lines.length;++b){var x=r.lines[b],T=x.height;if(s<T)break;s-=T}return c+b}function ye(r,s){return s>=r.first&&s<r.first+r.size}function ke(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function fe(r,s,c){if(c===void 0&&(c=null),!(this instanceof fe))return new fe(r,s,c);this.line=r,this.ch=s,this.sticky=c}function Ie(r,s){return r.line-s.line||r.ch-s.ch}function gt(r,s){return r.sticky==s.sticky&&Ie(r,s)==0}function tn(r){return fe(r.line,r.ch)}function $n(r,s){return Ie(r,s)<0?s:r}function Ls(r,s){return Ie(r,s)<0?r:s}function xm(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function it(r,s){if(s.line<r.first)return fe(r.first,0);var c=r.first+r.size-1;return s.line>c?fe(c,qe(r,c).text.length):Zk(s,qe(r,s.line).text.length)}function Zk(r,s){var c=r.ch;return c==null||c>s?fe(r.line,s):c<0?fe(r.line,0):r}function Sm(r,s){for(var c=[],a=0;a<s.length;a++)c[a]=it(r,s[a]);return c}var Dc=function(r,s){this.state=r,this.lookAhead=s},Qr=function(r,s,c,a){this.state=s,this.doc=r,this.line=c,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Qr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},Qr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(r,s,c){return s instanceof Dc?new Qr(r,Zr(r.mode,s.state),c,s.lookAhead):new Qr(r,Zr(r.mode,s),c)},Qr.prototype.save=function(r){var s=r!==!1?Zr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Dc(s,this.maxLookAhead):s};function _m(r,s,c,a){var d=[r.state.modeGen],m={};$m(r,s.text,r.doc.mode,c,function(A,H){return d.push(A,H)},m,a);for(var b=c.state,x=function(A){c.baseTokens=d;var H=r.state.overlays[A],G=1,se=0;c.state=!0,$m(r,s.text,H.mode,c,function(ne,pe){for(var we=G;se<ne;){var Te=d[G];Te>ne&&d.splice(G,1,ne,d[G+1],Te),G+=2,se=Math.min(ne,Te)}if(pe)if(H.opaque)d.splice(we,G-we,ne,"overlay "+pe),G=we+2;else for(;we<G;we+=2){var Le=d[we+1];d[we+1]=(Le?Le+" ":"")+"overlay "+pe}},m),c.state=b,c.baseTokens=null,c.baseTokenPos=1},T=0;T<r.state.overlays.length;++T)x(T);return{styles:d,classes:m.bgClass||m.textClass?m:null}}function km(r,s,c){if(!s.styles||s.styles[0]!=r.state.modeGen){var a=Vl(r,M(s)),d=s.text.length>r.options.maxHighlightLength&&Zr(r.doc.mode,a.state),m=_m(r,s,a);d&&(a.state=d),s.stateAfter=a.save(!d),s.styles=m.styles,m.classes?s.styleClasses=m.classes:s.styleClasses&&(s.styleClasses=null),c===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Vl(r,s,c){var a=r.doc,d=r.display;if(!a.mode.startState)return new Qr(a,!0,s);var m=Qk(r,s,c),b=m>a.first&&qe(a,m-1).stateAfter,x=b?Qr.fromSaved(a,b,m):new Qr(a,Ms(a.mode),m);return a.iter(m,s,function(T){xd(r,T.text,x);var A=x.line;T.stateAfter=A==s-1||A%5==0||A>=d.viewFrom&&A<d.viewTo?x.save():null,x.nextLine()}),c&&(a.modeFrontier=x.line),x}function xd(r,s,c,a){var d=r.doc.mode,m=new Ft(s,r.options.tabSize,c);for(m.start=m.pos=a||0,s==""&&Tm(d,c.state);!m.eol();)Sd(d,m,c.state),m.start=m.pos}function Tm(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var c=ql(r,s);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function Sd(r,s,c,a){for(var d=0;d<10;d++){a&&(a[0]=ql(r,c).mode);var m=r.token(s,c);if(s.pos>s.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var Cm=function(r,s,c){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=c};function Em(r,s,c,a){var d=r.doc,m=d.mode,b;s=it(d,s);var x=qe(d,s.line),T=Vl(r,s.line,c),A=new Ft(x.text,r.options.tabSize,T),H;for(a&&(H=[]);(a||A.pos<s.ch)&&!A.eol();)A.start=A.pos,b=Sd(m,A,T.state),a&&H.push(new Cm(A,b,Zr(d.mode,T.state)));return a?H:new Cm(A,b,T.state)}function Am(r,s){if(r)for(;;){var c=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;r=r.slice(0,c.index)+r.slice(c.index+c[0].length);var a=c[1]?"bgClass":"textClass";s[a]==null?s[a]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(s[a])||(s[a]+=" "+c[2])}return r}function $m(r,s,c,a,d,m,b){var x=c.flattenSpans;x==null&&(x=r.options.flattenSpans);var T=0,A=null,H=new Ft(s,r.options.tabSize,a),G,se=r.options.addModeClass&&[null];for(s==""&&Am(Tm(c,a.state),m);!H.eol();){if(H.pos>r.options.maxHighlightLength?(x=!1,b&&xd(r,s,a,H.pos),H.pos=s.length,G=null):G=Am(Sd(c,H,a.state,se),m),se){var ne=se[0].name;ne&&(G="m-"+(G?ne+" "+G:ne))}if(!x||A!=G){for(;T<H.start;)T=Math.min(H.start,T+5e3),d(T,A);A=G}H.start=H.pos}for(;T<H.pos;){var pe=Math.min(H.pos,T+5e3);d(pe,A),T=pe}}function Qk(r,s,c){for(var a,d,m=r.doc,b=c?-1:s-(r.doc.mode.innerMode?1e3:100),x=s;x>b;--x){if(x<=m.first)return m.first;var T=qe(m,x-1),A=T.stateAfter;if(A&&(!c||x+(A instanceof Dc?A.lookAhead:0)<=m.modeFrontier))return x;var H=re(T.text,null,r.options.tabSize);(d==null||a>H)&&(d=x-1,a=H)}return d}function eT(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var c=r.first,a=s-1;a>c;a--){var d=qe(r,a).stateAfter;if(d&&(!(d instanceof Dc)||a+d.lookAhead<s)){c=a+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,c)}}var Nm=!1,bi=!1;function tT(){Nm=!0}function nT(){bi=!0}function Fc(r,s,c){this.marker=r,this.from=s,this.to=c}function Gl(r,s){if(r)for(var c=0;c<r.length;++c){var a=r[c];if(a.marker==s)return a}}function rT(r,s){for(var c,a=0;a<r.length;++a)r[a]!=s&&(c||(c=[])).push(r[a]);return c}function iT(r,s,c){var a=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));a&&r.markedSpans&&a.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],a&&a.add(r.markedSpans)),s.marker.attachLine(r)}function oT(r,s,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);if(x||m.from==s&&b.type=="bookmark"&&(!c||!m.marker.insertLeft)){var T=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);(a||(a=[])).push(new Fc(b,m.from,T?null:m.to))}}return a}function sT(r,s,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);if(x||m.from==s&&b.type=="bookmark"&&(!c||m.marker.insertLeft)){var T=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);(a||(a=[])).push(new Fc(b,T?null:m.from-s,m.to==null?null:m.to-s))}}return a}function _d(r,s){if(s.full)return null;var c=ye(r,s.from.line)&&qe(r,s.from.line).markedSpans,a=ye(r,s.to.line)&&qe(r,s.to.line).markedSpans;if(!c&&!a)return null;var d=s.from.ch,m=s.to.ch,b=Ie(s.from,s.to)==0,x=oT(c,d,b),T=sT(a,m,b),A=s.text.length==1,H=xe(s.text).length+(A?d:0);if(x)for(var G=0;G<x.length;++G){var se=x[G];if(se.to==null){var ne=Gl(T,se.marker);ne?A&&(se.to=ne.to==null?null:ne.to+H):se.to=d}}if(T)for(var pe=0;pe<T.length;++pe){var we=T[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=Gl(x,we.marker);Te||(we.from=H,A&&(x||(x=[])).push(we))}else we.from+=H,A&&(x||(x=[])).push(we)}x&&(x=Mm(x)),T&&T!=x&&(T=Mm(T));var Le=[x];if(!A){var De=s.text.length-2,Oe;if(De>0&&x)for(var ze=0;ze<x.length;++ze)x[ze].to==null&&(Oe||(Oe=[])).push(new Fc(x[ze].marker,null,null));for(var Je=0;Je<De;++Je)Le.push(Oe);Le.push(T)}return Le}function Mm(r){for(var s=0;s<r.length;++s){var c=r[s];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function lT(r,s,c){var a=null;if(r.iter(s.line,c.line+1,function(ne){if(ne.markedSpans)for(var pe=0;pe<ne.markedSpans.length;++pe){var we=ne.markedSpans[pe].marker;we.readOnly&&(!a||ce(a,we)==-1)&&(a||(a=[])).push(we)}}),!a)return null;for(var d=[{from:s,to:c}],m=0;m<a.length;++m)for(var b=a[m],x=b.find(0),T=0;T<d.length;++T){var A=d[T];if(!(Ie(A.to,x.from)<0||Ie(A.from,x.to)>0)){var H=[T,1],G=Ie(A.from,x.from),se=Ie(A.to,x.to);(G<0||!b.inclusiveLeft&&!G)&&H.push({from:A.from,to:x.from}),(se>0||!b.inclusiveRight&&!se)&&H.push({from:x.to,to:A.to}),d.splice.apply(d,H),T+=H.length-3}}return d}function Lm(r){var s=r.markedSpans;if(s){for(var c=0;c<s.length;++c)s[c].marker.detachLine(r);r.markedSpans=null}}function Om(r,s){if(s){for(var c=0;c<s.length;++c)s[c].marker.attachLine(r);r.markedSpans=s}}function zc(r){return r.inclusiveLeft?-1:0}function Hc(r){return r.inclusiveRight?1:0}function kd(r,s){var c=r.lines.length-s.lines.length;if(c!=0)return c;var a=r.find(),d=s.find(),m=Ie(a.from,d.from)||zc(r)-zc(s);if(m)return-m;var b=Ie(a.to,d.to)||Hc(r)-Hc(s);return b||s.id-r.id}function Rm(r,s){var c=bi&&r.markedSpans,a;if(c)for(var d=void 0,m=0;m<c.length;++m)d=c[m],d.marker.collapsed&&(s?d.from:d.to)==null&&(!a||kd(a,d.marker)<0)&&(a=d.marker);return a}function Pm(r){return Rm(r,!0)}function Bc(r){return Rm(r,!1)}function aT(r,s){var c=bi&&r.markedSpans,a;if(c)for(var d=0;d<c.length;++d){var m=c[d];m.marker.collapsed&&(m.from==null||m.from<s)&&(m.to==null||m.to>s)&&(!a||kd(a,m.marker)<0)&&(a=m.marker)}return a}function Im(r,s,c,a,d){var m=qe(r,s),b=bi&&m.markedSpans;if(b)for(var x=0;x<b.length;++x){var T=b[x];if(T.marker.collapsed){var A=T.marker.find(0),H=Ie(A.from,c)||zc(T.marker)-zc(d),G=Ie(A.to,a)||Hc(T.marker)-Hc(d);if(!(H>=0&&G<=0||H<=0&&G>=0)&&(H<=0&&(T.marker.inclusiveRight&&d.inclusiveLeft?Ie(A.to,c)>=0:Ie(A.to,c)>0)||H>=0&&(T.marker.inclusiveRight&&d.inclusiveLeft?Ie(A.from,a)<=0:Ie(A.from,a)<0)))return!0}}}function Lr(r){for(var s;s=Pm(r);)r=s.find(-1,!0).line;return r}function cT(r){for(var s;s=Bc(r);)r=s.find(1,!0).line;return r}function uT(r){for(var s,c;s=Bc(r);)r=s.find(1,!0).line,(c||(c=[])).push(r);return c}function Td(r,s){var c=qe(r,s),a=Lr(c);return c==a?s:M(a)}function Dm(r,s){if(s>r.lastLine())return s;var c=qe(r,s),a;if(!to(r,c))return s;for(;a=Bc(c);)c=a.find(1,!0).line;return M(c)+1}function to(r,s){var c=bi&&s.markedSpans;if(c){for(var a=void 0,d=0;d<c.length;++d)if(a=c[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&Cd(r,s,a))return!0}}}function Cd(r,s,c){if(c.to==null){var a=c.marker.find(1,!0);return Cd(r,a.line,Gl(a.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==s.text.length)return!0;for(var d=void 0,m=0;m<s.markedSpans.length;++m)if(d=s.markedSpans[m],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(d.to==null||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Cd(r,s,d))return!0}function wi(r){r=Lr(r);for(var s=0,c=r.parent,a=0;a<c.lines.length;++a){var d=c.lines[a];if(d==r)break;s+=d.height}for(var m=c.parent;m;c=m,m=c.parent)for(var b=0;b<m.children.length;++b){var x=m.children[b];if(x==c)break;s+=x.height}return s}function jc(r){if(r.height==0)return 0;for(var s=r.text.length,c,a=r;c=Pm(a);){var d=c.find(0,!0);a=d.from.line,s+=d.from.ch-d.to.ch}for(a=r;c=Bc(a);){var m=c.find(0,!0);s-=a.text.length-m.from.ch,a=m.to.line,s+=a.text.length-m.to.ch}return s}function Ed(r){var s=r.display,c=r.doc;s.maxLine=qe(c,c.first),s.maxLineLength=jc(s.maxLine),s.maxLineChanged=!0,c.iter(function(a){var d=jc(a);d>s.maxLineLength&&(s.maxLineLength=d,s.maxLine=a)})}var Os=function(r,s,c){this.text=r,Om(this,s),this.height=c?c(this):1};Os.prototype.lineNo=function(){return M(this)},Er(Os);function fT(r,s,c,a){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),Lm(r),Om(r,c);var d=a?a(r):1;d!=r.height&&or(r,d)}function dT(r){r.parent=null,Lm(r)}var hT={},pT={};function Fm(r,s){if(!r||/^\s*$/.test(r))return null;var c=s.addModeClass?pT:hT;return c[r]||(c[r]=r.replace(/\S+/g,"cm-$&"))}function zm(r,s){var c=R("span",null,null,g?"padding-right: .1px":null),a={pre:R("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var d=0;d<=(s.rest?s.rest.length:0);d++){var m=d?s.rest[d-1]:s.line,b=void 0;a.pos=0,a.addToken=mT,Zi(r.display.measure)&&(b=at(m,r.doc.direction))&&(a.addToken=yT(a.addToken,b)),a.map=[];var x=s!=r.display.externalMeasured&&M(m);bT(m,a,km(r,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(a.bgClass=Be(m.styleClasses.bgClass,a.bgClass||"")),m.styleClasses.textClass&&(a.textClass=Be(m.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Pc(r.display.measure))),d==0?(s.measure.map=a.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(a.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(g){var T=a.content.lastChild;(/\bcm-tab\b/.test(T.className)||T.querySelector&&T.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return It(r,"renderLine",r,s.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function gT(r){var s=S("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function mT(r,s,c,a,d,m,b){if(s){var x=r.splitSpaces?vT(s,r.trailingSpace):s,T=r.cm.state.specialChars,A=!1,H;if(!T.test(s))r.col+=s.length,H=document.createTextNode(x),r.map.push(r.pos,r.pos+s.length,H),h&&p<9&&(A=!0),r.pos+=s.length;else{H=document.createDocumentFragment();for(var G=0;;){T.lastIndex=G;var se=T.exec(s),ne=se?se.index-G:s.length-G;if(ne){var pe=document.createTextNode(x.slice(G,G+ne));h&&p<9?H.appendChild(S("span",[pe])):H.appendChild(pe),r.map.push(r.pos,r.pos+ne,pe),r.col+=ne,r.pos+=ne}if(!se)break;G+=ne+1;var we=void 0;if(se[0]==" "){var Te=r.cm.options.tabSize,Le=Te-r.col%Te;we=H.appendChild(S("span",Ae(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),r.col+=Le}else se[0]=="\r"||se[0]==`
@@ -72,23 +72,23 @@ b`.split(/\n/).length!=3?function(r){for(var s=0,c=[],a=r.length;s<=a;){var d=r.
72
72
  `)>-1?c.value=r.prevInput="":r.prevInput=d,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},qt.prototype.onContextMenu=function(r){var s=this,c=s.cm,a=c.display,d=s.textarea;s.contextMenuPending&&s.contextMenuPending();var m=Uo(c,r),b=a.scroller.scrollTop;if(!m||$)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(m)==-1&&rn(c,gn)(c.doc,io(m),ee);var T=d.style.cssText,A=s.wrapper.style.cssText,H=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
73
73
  top: `+(r.clientY-H.top-5)+"px; left: "+(r.clientX-H.left-5)+`px;
74
74
  z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
75
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;g&&(G=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,G),a.input.reset(),c.somethingSelected()||(d.value=s.prevInput=" "),s.contextMenuPending=ne,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function se(){if(d.selectionStart!=null){var we=c.somethingSelected(),Te="​"+(we?d.value:"");d.value="⇚",d.value=Te,s.prevInput=we?"":"​",d.selectionStart=1,d.selectionEnd=Te.length,a.selForContextMenu=c.doc.sel}}function ne(){if(s.contextMenuPending==ne&&(s.contextMenuPending=!1,s.wrapper.style.cssText=A,d.style.cssText=T,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&s.prevInput=="​"?rn(c,Fv)(c):we++<10?a.detectingSelectAll=setTimeout(Te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),U){Ji(r);var pe=function(){hn(window,"mouseup",pe),setTimeout(ne,20)};Xe(window,"mouseup",pe)}else setTimeout(ne,50)},qt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},qt.prototype.setUneditable=function(){},qt.prototype.needsContentAttribute=!1;function KC(r,s){if(s=s?Z(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var c=ve(He(r));s.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Xe(r.form,"submit",a),!s.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}s.finishInit=function(T){T.save=a,T.getTextArea=function(){return r},T.toTextArea=function(){T.toTextArea=isNaN,a(),r.parentNode.removeChild(T.getWrapperElement()),r.style.display="",r.form&&(hn(r.form,"submit",a),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Nt(function(T){return r.parentNode.insertBefore(T,r.nextSibling)},s);return x}function YC(r){r.off=hn,r.on=Xe,r.wheelEventPixels=nC,r.Doc=Mn,r.splitLines=br,r.countColumn=re,r.findColumn=me,r.isWordChar=et,r.Pass=j,r.signal=It,r.Line=Os,r.changeEnd=oo,r.scrollbarModel=pv,r.Pos=fe,r.cmpPos=Ie,r.modes=Es,r.mimeModes=Nr,r.resolveMode=As,r.getMode=$s,r.modeExtensions=eo,r.extendMode=Ns,r.copyState=Zr,r.startState=Ms,r.innerMode=ql,r.commands=pa,r.keyMap=_i,r.keyName=ey,r.isModifierKey=Zv,r.lookupKey=Vs,r.normalizeKeyMap=kC,r.StringStream=Ft,r.SharedTextMarker=fa,r.TextMarker=lo,r.LineWidget=ua,r.e_preventDefault=pn,r.e_stopPropagation=Ts,r.e_stop=Ji,r.addClass=_e,r.contains=ae,r.rmClass=P,r.keyNames=ao}HC(Nt),qC(Nt);var XC="iter insert remove copy getEditor constructor".split(" ");for(var du in Mn.prototype)Mn.prototype.hasOwnProperty(du)&&ce(XC,du)<0&&(Nt.prototype[du]=(function(r){return function(){return r.apply(this.doc,arguments)}})(Mn.prototype[du]));return Er(Mn),Nt.inputStyles={textarea:qt,contenteditable:xt},Nt.defineMode=function(r){!Nt.defaults.mode&&r!="null"&&(Nt.defaults.mode=r),Mr.apply(this,arguments)},Nt.defineMIME=jo,Nt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(r,s){Nt.prototype[r]=s},Nt.defineDocExtension=function(r,s){Mn.prototype[r]=s},Nt.fromTextArea=KC,YC(Nt),Nt.version="5.65.18",Nt}))})(Vu)),Vu.exports}var KP=Ho();const YP=Jg(KP);var Hh={},Ir={};const XP="Á",JP="á",ZP="Ă",QP="ă",eI="∾",tI="∿",nI="∾̳",rI="Â",iI="â",oI="´",sI="А",lI="а",aI="Æ",cI="æ",uI="⁡",fI="𝔄",dI="𝔞",hI="À",pI="à",gI="ℵ",mI="ℵ",vI="Α",yI="α",bI="Ā",wI="ā",xI="⨿",SI="&",_I="&",kI="⩕",TI="⩓",CI="∧",EI="⩜",AI="⩘",$I="⩚",NI="∠",MI="⦤",LI="∠",OI="⦨",RI="⦩",PI="⦪",II="⦫",DI="⦬",FI="⦭",zI="⦮",HI="⦯",BI="∡",jI="∟",WI="⊾",qI="⦝",UI="∢",VI="Å",GI="⍼",KI="Ą",YI="ą",XI="𝔸",JI="𝕒",ZI="⩯",QI="≈",e2="⩰",t2="≊",n2="≋",r2="'",i2="⁡",o2="≈",s2="≊",l2="Å",a2="å",c2="𝒜",u2="𝒶",f2="≔",d2="*",h2="≈",p2="≍",g2="Ã",m2="ã",v2="Ä",y2="ä",b2="∳",w2="⨑",x2="≌",S2="϶",_2="‵",k2="∽",T2="⋍",C2="∖",E2="⫧",A2="⊽",$2="⌅",N2="⌆",M2="⌅",L2="⎵",O2="⎶",R2="≌",P2="Б",I2="б",D2="„",F2="∵",z2="∵",H2="∵",B2="⦰",j2="϶",W2="ℬ",q2="ℬ",U2="Β",V2="β",G2="ℶ",K2="≬",Y2="𝔅",X2="𝔟",J2="⋂",Z2="◯",Q2="⋃",eD="⨀",tD="⨁",nD="⨂",rD="⨆",iD="★",oD="▽",sD="△",lD="⨄",aD="⋁",cD="⋀",uD="⤍",fD="⧫",dD="▪",hD="▴",pD="▾",gD="◂",mD="▸",vD="␣",yD="▒",bD="░",wD="▓",xD="█",SD="=⃥",_D="≡⃥",kD="⫭",TD="⌐",CD="𝔹",ED="𝕓",AD="⊥",$D="⊥",ND="⋈",MD="⧉",LD="┐",OD="╕",RD="╖",PD="╗",ID="┌",DD="╒",FD="╓",zD="╔",HD="─",BD="═",jD="┬",WD="╤",qD="╥",UD="╦",VD="┴",GD="╧",KD="╨",YD="╩",XD="⊟",JD="⊞",ZD="⊠",QD="┘",eF="╛",tF="╜",nF="╝",rF="└",iF="╘",oF="╙",sF="╚",lF="│",aF="║",cF="┼",uF="╪",fF="╫",dF="╬",hF="┤",pF="╡",gF="╢",mF="╣",vF="├",yF="╞",bF="╟",wF="╠",xF="‵",SF="˘",_F="˘",kF="¦",TF="𝒷",CF="ℬ",EF="⁏",AF="∽",$F="⋍",NF="⧅",MF="\\",LF="⟈",OF="•",RF="•",PF="≎",IF="⪮",DF="≏",FF="≎",zF="≏",HF="Ć",BF="ć",jF="⩄",WF="⩉",qF="⩋",UF="∩",VF="⋒",GF="⩇",KF="⩀",YF="ⅅ",XF="∩︀",JF="⁁",ZF="ˇ",QF="ℭ",ez="⩍",tz="Č",nz="č",rz="Ç",iz="ç",oz="Ĉ",sz="ĉ",lz="∰",az="⩌",cz="⩐",uz="Ċ",fz="ċ",dz="¸",hz="¸",pz="⦲",gz="¢",mz="·",vz="·",yz="𝔠",bz="ℭ",wz="Ч",xz="ч",Sz="✓",_z="✓",kz="Χ",Tz="χ",Cz="ˆ",Ez="≗",Az="↺",$z="↻",Nz="⊛",Mz="⊚",Lz="⊝",Oz="⊙",Rz="®",Pz="Ⓢ",Iz="⊖",Dz="⊕",Fz="⊗",zz="○",Hz="⧃",Bz="≗",jz="⨐",Wz="⫯",qz="⧂",Uz="∲",Vz="”",Gz="’",Kz="♣",Yz="♣",Xz=":",Jz="∷",Zz="⩴",Qz="≔",e3="≔",t3=",",n3="@",r3="∁",i3="∘",o3="∁",s3="ℂ",l3="≅",a3="⩭",c3="≡",u3="∮",f3="∯",d3="∮",h3="𝕔",p3="ℂ",g3="∐",m3="∐",v3="©",y3="©",b3="℗",w3="∳",x3="↵",S3="✗",_3="⨯",k3="𝒞",T3="𝒸",C3="⫏",E3="⫑",A3="⫐",$3="⫒",N3="⋯",M3="⤸",L3="⤵",O3="⋞",R3="⋟",P3="↶",I3="⤽",D3="⩈",F3="⩆",z3="≍",H3="∪",B3="⋓",j3="⩊",W3="⊍",q3="⩅",U3="∪︀",V3="↷",G3="⤼",K3="⋞",Y3="⋟",X3="⋎",J3="⋏",Z3="¤",Q3="↶",eH="↷",tH="⋎",nH="⋏",rH="∲",iH="∱",oH="⌭",sH="†",lH="‡",aH="ℸ",cH="↓",uH="↡",fH="⇓",dH="‐",hH="⫤",pH="⊣",gH="⤏",mH="˝",vH="Ď",yH="ď",bH="Д",wH="д",xH="‡",SH="⇊",_H="ⅅ",kH="ⅆ",TH="⤑",CH="⩷",EH="°",AH="∇",$H="Δ",NH="δ",MH="⦱",LH="⥿",OH="𝔇",RH="𝔡",PH="⥥",IH="⇃",DH="⇂",FH="´",zH="˙",HH="˝",BH="`",jH="˜",WH="⋄",qH="⋄",UH="⋄",VH="♦",GH="♦",KH="¨",YH="ⅆ",XH="ϝ",JH="⋲",ZH="÷",QH="÷",eB="⋇",tB="⋇",nB="Ђ",rB="ђ",iB="⌞",oB="⌍",sB="$",lB="𝔻",aB="𝕕",cB="¨",uB="˙",fB="⃜",dB="≐",hB="≑",pB="≐",gB="∸",mB="∔",vB="⊡",yB="⌆",bB="∯",wB="¨",xB="⇓",SB="⇐",_B="⇔",kB="⫤",TB="⟸",CB="⟺",EB="⟹",AB="⇒",$B="⊨",NB="⇑",MB="⇕",LB="∥",OB="⤓",RB="↓",PB="↓",IB="⇓",DB="⇵",FB="̑",zB="⇊",HB="⇃",BB="⇂",jB="⥐",WB="⥞",qB="⥖",UB="↽",VB="⥟",GB="⥗",KB="⇁",YB="↧",XB="⊤",JB="⤐",ZB="⌟",QB="⌌",ej="𝒟",tj="𝒹",nj="Ѕ",rj="ѕ",ij="⧶",oj="Đ",sj="đ",lj="⋱",aj="▿",cj="▾",uj="⇵",fj="⥯",dj="⦦",hj="Џ",pj="џ",gj="⟿",mj="É",vj="é",yj="⩮",bj="Ě",wj="ě",xj="Ê",Sj="ê",_j="≖",kj="≕",Tj="Э",Cj="э",Ej="⩷",Aj="Ė",$j="ė",Nj="≑",Mj="ⅇ",Lj="≒",Oj="𝔈",Rj="𝔢",Pj="⪚",Ij="È",Dj="è",Fj="⪖",zj="⪘",Hj="⪙",Bj="∈",jj="⏧",Wj="ℓ",qj="⪕",Uj="⪗",Vj="Ē",Gj="ē",Kj="∅",Yj="∅",Xj="◻",Jj="∅",Zj="▫",Qj=" ",e5=" ",t5=" ",n5="Ŋ",r5="ŋ",i5=" ",o5="Ę",s5="ę",l5="𝔼",a5="𝕖",c5="⋕",u5="⧣",f5="⩱",d5="ε",h5="Ε",p5="ε",g5="ϵ",m5="≖",v5="≕",y5="≂",b5="⪖",w5="⪕",x5="⩵",S5="=",_5="≂",k5="≟",T5="⇌",C5="≡",E5="⩸",A5="⧥",$5="⥱",N5="≓",M5="ℯ",L5="ℰ",O5="≐",R5="⩳",P5="≂",I5="Η",D5="η",F5="Ð",z5="ð",H5="Ë",B5="ë",j5="€",W5="!",q5="∃",U5="∃",V5="ℰ",G5="ⅇ",K5="ⅇ",Y5="≒",X5="Ф",J5="ф",Z5="♀",Q5="ffi",e8="ff",t8="ffl",n8="𝔉",r8="𝔣",i8="fi",o8="◼",s8="▪",l8="fj",a8="♭",c8="fl",u8="▱",f8="ƒ",d8="𝔽",h8="𝕗",p8="∀",g8="∀",m8="⋔",v8="⫙",y8="ℱ",b8="⨍",w8="½",x8="⅓",S8="¼",_8="⅕",k8="⅙",T8="⅛",C8="⅔",E8="⅖",A8="¾",$8="⅗",N8="⅜",M8="⅘",L8="⅚",O8="⅝",R8="⅞",P8="⁄",I8="⌢",D8="𝒻",F8="ℱ",z8="ǵ",H8="Γ",B8="γ",j8="Ϝ",W8="ϝ",q8="⪆",U8="Ğ",V8="ğ",G8="Ģ",K8="Ĝ",Y8="ĝ",X8="Г",J8="г",Z8="Ġ",Q8="ġ",e4="≥",t4="≧",n4="⪌",r4="⋛",i4="≥",o4="≧",s4="⩾",l4="⪩",a4="⩾",c4="⪀",u4="⪂",f4="⪄",d4="⋛︀",h4="⪔",p4="𝔊",g4="𝔤",m4="≫",v4="⋙",y4="⋙",b4="ℷ",w4="Ѓ",x4="ѓ",S4="⪥",_4="≷",k4="⪒",T4="⪤",C4="⪊",E4="⪊",A4="⪈",$4="≩",N4="⪈",M4="≩",L4="⋧",O4="𝔾",R4="𝕘",P4="`",I4="≥",D4="⋛",F4="≧",z4="⪢",H4="≷",B4="⩾",j4="≳",W4="𝒢",q4="ℊ",U4="≳",V4="⪎",G4="⪐",K4="⪧",Y4="⩺",X4=">",J4=">",Z4="≫",Q4="⋗",eW="⦕",tW="⩼",nW="⪆",rW="⥸",iW="⋗",oW="⋛",sW="⪌",lW="≷",aW="≳",cW="≩︀",uW="≩︀",fW="ˇ",dW=" ",hW="½",pW="ℋ",gW="Ъ",mW="ъ",vW="⥈",yW="↔",bW="⇔",wW="↭",xW="^",SW="ℏ",_W="Ĥ",kW="ĥ",TW="♥",CW="♥",EW="…",AW="⊹",$W="𝔥",NW="ℌ",MW="ℋ",LW="⤥",OW="⤦",RW="⇿",PW="∻",IW="↩",DW="↪",FW="𝕙",zW="ℍ",HW="―",BW="─",jW="𝒽",WW="ℋ",qW="ℏ",UW="Ħ",VW="ħ",GW="≎",KW="≏",YW="⁃",XW="‐",JW="Í",ZW="í",QW="⁣",eq="Î",tq="î",nq="И",rq="и",iq="İ",oq="Е",sq="е",lq="¡",aq="⇔",cq="𝔦",uq="ℑ",fq="Ì",dq="ì",hq="ⅈ",pq="⨌",gq="∭",mq="⧜",vq="℩",yq="IJ",bq="ij",wq="Ī",xq="ī",Sq="ℑ",_q="ⅈ",kq="ℐ",Tq="ℑ",Cq="ı",Eq="ℑ",Aq="⊷",$q="Ƶ",Nq="⇒",Mq="℅",Lq="∞",Oq="⧝",Rq="ı",Pq="⊺",Iq="∫",Dq="∬",Fq="ℤ",zq="∫",Hq="⊺",Bq="⋂",jq="⨗",Wq="⨼",qq="⁣",Uq="⁢",Vq="Ё",Gq="ё",Kq="Į",Yq="į",Xq="𝕀",Jq="𝕚",Zq="Ι",Qq="ι",eU="⨼",tU="¿",nU="𝒾",rU="ℐ",iU="∈",oU="⋵",sU="⋹",lU="⋴",aU="⋳",cU="∈",uU="⁢",fU="Ĩ",dU="ĩ",hU="І",pU="і",gU="Ï",mU="ï",vU="Ĵ",yU="ĵ",bU="Й",wU="й",xU="𝔍",SU="𝔧",_U="ȷ",kU="𝕁",TU="𝕛",CU="𝒥",EU="𝒿",AU="Ј",$U="ј",NU="Є",MU="є",LU="Κ",OU="κ",RU="ϰ",PU="Ķ",IU="ķ",DU="К",FU="к",zU="𝔎",HU="𝔨",BU="ĸ",jU="Х",WU="х",qU="Ќ",UU="ќ",VU="𝕂",GU="𝕜",KU="𝒦",YU="𝓀",XU="⇚",JU="Ĺ",ZU="ĺ",QU="⦴",e6="ℒ",t6="Λ",n6="λ",r6="⟨",i6="⟪",o6="⦑",s6="⟨",l6="⪅",a6="ℒ",c6="«",u6="⇤",f6="⤟",d6="←",h6="↞",p6="⇐",g6="⤝",m6="↩",v6="↫",y6="⤹",b6="⥳",w6="↢",x6="⤙",S6="⤛",_6="⪫",k6="⪭",T6="⪭︀",C6="⤌",E6="⤎",A6="❲",$6="{",N6="[",M6="⦋",L6="⦏",O6="⦍",R6="Ľ",P6="ľ",I6="Ļ",D6="ļ",F6="⌈",z6="{",H6="Л",B6="л",j6="⤶",W6="“",q6="„",U6="⥧",V6="⥋",G6="↲",K6="≤",Y6="≦",X6="⟨",J6="⇤",Z6="←",Q6="←",eV="⇐",tV="⇆",nV="↢",rV="⌈",iV="⟦",oV="⥡",sV="⥙",lV="⇃",aV="⌊",cV="↽",uV="↼",fV="⇇",dV="↔",hV="↔",pV="⇔",gV="⇆",mV="⇋",vV="↭",yV="⥎",bV="↤",wV="⊣",xV="⥚",SV="⋋",_V="⧏",kV="⊲",TV="⊴",CV="⥑",EV="⥠",AV="⥘",$V="↿",NV="⥒",MV="↼",LV="⪋",OV="⋚",RV="≤",PV="≦",IV="⩽",DV="⪨",FV="⩽",zV="⩿",HV="⪁",BV="⪃",jV="⋚︀",WV="⪓",qV="⪅",UV="⋖",VV="⋚",GV="⪋",KV="⋚",YV="≦",XV="≶",JV="≶",ZV="⪡",QV="≲",e9="⩽",t9="≲",n9="⥼",r9="⌊",i9="𝔏",o9="𝔩",s9="≶",l9="⪑",a9="⥢",c9="↽",u9="↼",f9="⥪",d9="▄",h9="Љ",p9="љ",g9="⇇",m9="≪",v9="⋘",y9="⌞",b9="⇚",w9="⥫",x9="◺",S9="Ŀ",_9="ŀ",k9="⎰",T9="⎰",C9="⪉",E9="⪉",A9="⪇",$9="≨",N9="⪇",M9="≨",L9="⋦",O9="⟬",R9="⇽",P9="⟦",I9="⟵",D9="⟵",F9="⟸",z9="⟷",H9="⟷",B9="⟺",j9="⟼",W9="⟶",q9="⟶",U9="⟹",V9="↫",G9="↬",K9="⦅",Y9="𝕃",X9="𝕝",J9="⨭",Z9="⨴",Q9="∗",eG="_",tG="↙",nG="↘",rG="◊",iG="◊",oG="⧫",sG="(",lG="⦓",aG="⇆",cG="⌟",uG="⇋",fG="⥭",dG="‎",hG="⊿",pG="‹",gG="𝓁",mG="ℒ",vG="↰",yG="↰",bG="≲",wG="⪍",xG="⪏",SG="[",_G="‘",kG="‚",TG="Ł",CG="ł",EG="⪦",AG="⩹",$G="<",NG="<",MG="≪",LG="⋖",OG="⋋",RG="⋉",PG="⥶",IG="⩻",DG="◃",FG="⊴",zG="◂",HG="⦖",BG="⥊",jG="⥦",WG="≨︀",qG="≨︀",UG="¯",VG="♂",GG="✠",KG="✠",YG="↦",XG="↦",JG="↧",ZG="↤",QG="↥",eK="▮",tK="⨩",nK="М",rK="м",iK="—",oK="∺",sK="∡",lK=" ",aK="ℳ",cK="𝔐",uK="𝔪",fK="℧",dK="µ",hK="*",pK="⫰",gK="∣",mK="·",vK="⊟",yK="−",bK="∸",wK="⨪",xK="∓",SK="⫛",_K="…",kK="∓",TK="⊧",CK="𝕄",EK="𝕞",AK="∓",$K="𝓂",NK="ℳ",MK="∾",LK="Μ",OK="μ",RK="⊸",PK="⊸",IK="∇",DK="Ń",FK="ń",zK="∠⃒",HK="≉",BK="⩰̸",jK="≋̸",WK="ʼn",qK="≉",UK="♮",VK="ℕ",GK="♮",KK=" ",YK="≎̸",XK="≏̸",JK="⩃",ZK="Ň",QK="ň",e7="Ņ",t7="ņ",n7="≇",r7="⩭̸",i7="⩂",o7="Н",s7="н",l7="–",a7="⤤",c7="↗",u7="⇗",f7="↗",d7="≠",h7="≐̸",p7="​",g7="​",m7="​",v7="​",y7="≢",b7="⤨",w7="≂̸",x7="≫",S7="≪",_7=`
76
- `,k7="∄",T7="∄",C7="𝔑",E7="𝔫",A7="≧̸",$7="≱",N7="≱",M7="≧̸",L7="⩾̸",O7="⩾̸",R7="⋙̸",P7="≵",I7="≫⃒",D7="≯",F7="≯",z7="≫̸",H7="↮",B7="⇎",j7="⫲",W7="∋",q7="⋼",U7="⋺",V7="∋",G7="Њ",K7="њ",Y7="↚",X7="⇍",J7="‥",Z7="≦̸",Q7="≰",eY="↚",tY="⇍",nY="↮",rY="⇎",iY="≰",oY="≦̸",sY="⩽̸",lY="⩽̸",aY="≮",cY="⋘̸",uY="≴",fY="≪⃒",dY="≮",hY="⋪",pY="⋬",gY="≪̸",mY="∤",vY="⁠",yY=" ",bY="𝕟",wY="ℕ",xY="⫬",SY="¬",_Y="≢",kY="≭",TY="∦",CY="∉",EY="≠",AY="≂̸",$Y="∄",NY="≯",MY="≱",LY="≧̸",OY="≫̸",RY="≹",PY="⩾̸",IY="≵",DY="≎̸",FY="≏̸",zY="∉",HY="⋵̸",BY="⋹̸",jY="∉",WY="⋷",qY="⋶",UY="⧏̸",VY="⋪",GY="⋬",KY="≮",YY="≰",XY="≸",JY="≪̸",ZY="⩽̸",QY="≴",eX="⪢̸",tX="⪡̸",nX="∌",rX="∌",iX="⋾",oX="⋽",sX="⊀",lX="⪯̸",aX="⋠",cX="∌",uX="⧐̸",fX="⋫",dX="⋭",hX="⊏̸",pX="⋢",gX="⊐̸",mX="⋣",vX="⊂⃒",yX="⊈",bX="⊁",wX="⪰̸",xX="⋡",SX="≿̸",_X="⊃⃒",kX="⊉",TX="≁",CX="≄",EX="≇",AX="≉",$X="∤",NX="∦",MX="∦",LX="⫽⃥",OX="∂̸",RX="⨔",PX="⊀",IX="⋠",DX="⊀",FX="⪯̸",zX="⪯̸",HX="⤳̸",BX="↛",jX="⇏",WX="↝̸",qX="↛",UX="⇏",VX="⋫",GX="⋭",KX="⊁",YX="⋡",XX="⪰̸",JX="𝒩",ZX="𝓃",QX="∤",eJ="∦",tJ="≁",nJ="≄",rJ="≄",iJ="∤",oJ="∦",sJ="⋢",lJ="⋣",aJ="⊄",cJ="⫅̸",uJ="⊈",fJ="⊂⃒",dJ="⊈",hJ="⫅̸",pJ="⊁",gJ="⪰̸",mJ="⊅",vJ="⫆̸",yJ="⊉",bJ="⊃⃒",wJ="⊉",xJ="⫆̸",SJ="≹",_J="Ñ",kJ="ñ",TJ="≸",CJ="⋪",EJ="⋬",AJ="⋫",$J="⋭",NJ="Ν",MJ="ν",LJ="#",OJ="№",RJ=" ",PJ="≍⃒",IJ="⊬",DJ="⊭",FJ="⊮",zJ="⊯",HJ="≥⃒",BJ=">⃒",jJ="⤄",WJ="⧞",qJ="⤂",UJ="≤⃒",VJ="<⃒",GJ="⊴⃒",KJ="⤃",YJ="⊵⃒",XJ="∼⃒",JJ="⤣",ZJ="↖",QJ="⇖",eZ="↖",tZ="⤧",nZ="Ó",rZ="ó",iZ="⊛",oZ="Ô",sZ="ô",lZ="⊚",aZ="О",cZ="о",uZ="⊝",fZ="Ő",dZ="ő",hZ="⨸",pZ="⊙",gZ="⦼",mZ="Œ",vZ="œ",yZ="⦿",bZ="𝔒",wZ="𝔬",xZ="˛",SZ="Ò",_Z="ò",kZ="⧁",TZ="⦵",CZ="Ω",EZ="∮",AZ="↺",$Z="⦾",NZ="⦻",MZ="‾",LZ="⧀",OZ="Ō",RZ="ō",PZ="Ω",IZ="ω",DZ="Ο",FZ="ο",zZ="⦶",HZ="⊖",BZ="𝕆",jZ="𝕠",WZ="⦷",qZ="“",UZ="‘",VZ="⦹",GZ="⊕",KZ="↻",YZ="⩔",XZ="∨",JZ="⩝",ZZ="ℴ",QZ="ℴ",eQ="ª",tQ="º",nQ="⊶",rQ="⩖",iQ="⩗",oQ="⩛",sQ="Ⓢ",lQ="𝒪",aQ="ℴ",cQ="Ø",uQ="ø",fQ="⊘",dQ="Õ",hQ="õ",pQ="⨶",gQ="⨷",mQ="⊗",vQ="Ö",yQ="ö",bQ="⌽",wQ="‾",xQ="⏞",SQ="⎴",_Q="⏜",kQ="¶",TQ="∥",CQ="∥",EQ="⫳",AQ="⫽",$Q="∂",NQ="∂",MQ="П",LQ="п",OQ="%",RQ=".",PQ="‰",IQ="⊥",DQ="‱",FQ="𝔓",zQ="𝔭",HQ="Φ",BQ="φ",jQ="ϕ",WQ="ℳ",qQ="☎",UQ="Π",VQ="π",GQ="⋔",KQ="ϖ",YQ="ℏ",XQ="ℎ",JQ="ℏ",ZQ="⨣",QQ="⊞",eee="⨢",tee="+",nee="∔",ree="⨥",iee="⩲",oee="±",see="±",lee="⨦",aee="⨧",cee="±",uee="ℌ",fee="⨕",dee="𝕡",hee="ℙ",pee="£",gee="⪷",mee="⪻",vee="≺",yee="≼",bee="⪷",wee="≺",xee="≼",See="≺",_ee="⪯",kee="≼",Tee="≾",Cee="⪯",Eee="⪹",Aee="⪵",$ee="⋨",Nee="⪯",Mee="⪳",Lee="≾",Oee="′",Ree="″",Pee="ℙ",Iee="⪹",Dee="⪵",Fee="⋨",zee="∏",Hee="∏",Bee="⌮",jee="⌒",Wee="⌓",qee="∝",Uee="∝",Vee="∷",Gee="∝",Kee="≾",Yee="⊰",Xee="𝒫",Jee="𝓅",Zee="Ψ",Qee="ψ",ete=" ",tte="𝔔",nte="𝔮",rte="⨌",ite="𝕢",ote="ℚ",ste="⁗",lte="𝒬",ate="𝓆",cte="ℍ",ute="⨖",fte="?",dte="≟",hte='"',pte='"',gte="⇛",mte="∽̱",vte="Ŕ",yte="ŕ",bte="√",wte="⦳",xte="⟩",Ste="⟫",_te="⦒",kte="⦥",Tte="⟩",Cte="»",Ete="⥵",Ate="⇥",$te="⤠",Nte="⤳",Mte="→",Lte="↠",Ote="⇒",Rte="⤞",Pte="↪",Ite="↬",Dte="⥅",Fte="⥴",zte="⤖",Hte="↣",Bte="↝",jte="⤚",Wte="⤜",qte="∶",Ute="ℚ",Vte="⤍",Gte="⤏",Kte="⤐",Yte="❳",Xte="}",Jte="]",Zte="⦌",Qte="⦎",ene="⦐",tne="Ř",nne="ř",rne="Ŗ",ine="ŗ",one="⌉",sne="}",lne="Р",ane="р",cne="⤷",une="⥩",fne="”",dne="”",hne="↳",pne="ℜ",gne="ℛ",mne="ℜ",vne="ℝ",yne="ℜ",bne="▭",wne="®",xne="®",Sne="∋",_ne="⇋",kne="⥯",Tne="⥽",Cne="⌋",Ene="𝔯",Ane="ℜ",$ne="⥤",Nne="⇁",Mne="⇀",Lne="⥬",One="Ρ",Rne="ρ",Pne="ϱ",Ine="⟩",Dne="⇥",Fne="→",zne="→",Hne="⇒",Bne="⇄",jne="↣",Wne="⌉",qne="⟧",Une="⥝",Vne="⥕",Gne="⇂",Kne="⌋",Yne="⇁",Xne="⇀",Jne="⇄",Zne="⇌",Qne="⇉",ere="↝",tre="↦",nre="⊢",rre="⥛",ire="⋌",ore="⧐",sre="⊳",lre="⊵",are="⥏",cre="⥜",ure="⥔",fre="↾",dre="⥓",hre="⇀",pre="˚",gre="≓",mre="⇄",vre="⇌",yre="‏",bre="⎱",wre="⎱",xre="⫮",Sre="⟭",_re="⇾",kre="⟧",Tre="⦆",Cre="𝕣",Ere="ℝ",Are="⨮",$re="⨵",Nre="⥰",Mre=")",Lre="⦔",Ore="⨒",Rre="⇉",Pre="⇛",Ire="›",Dre="𝓇",Fre="ℛ",zre="↱",Hre="↱",Bre="]",jre="’",Wre="’",qre="⋌",Ure="⋊",Vre="▹",Gre="⊵",Kre="▸",Yre="⧎",Xre="⧴",Jre="⥨",Zre="℞",Qre="Ś",eie="ś",tie="‚",nie="⪸",rie="Š",iie="š",oie="⪼",sie="≻",lie="≽",aie="⪰",cie="⪴",uie="Ş",fie="ş",die="Ŝ",hie="ŝ",pie="⪺",gie="⪶",mie="⋩",vie="⨓",yie="≿",bie="С",wie="с",xie="⊡",Sie="⋅",_ie="⩦",kie="⤥",Tie="↘",Cie="⇘",Eie="↘",Aie="§",$ie=";",Nie="⤩",Mie="∖",Lie="∖",Oie="✶",Rie="𝔖",Pie="𝔰",Iie="⌢",Die="♯",Fie="Щ",zie="щ",Hie="Ш",Bie="ш",jie="↓",Wie="←",qie="∣",Uie="∥",Vie="→",Gie="↑",Kie="­",Yie="Σ",Xie="σ",Jie="ς",Zie="ς",Qie="∼",eoe="⩪",toe="≃",noe="≃",roe="⪞",ioe="⪠",ooe="⪝",soe="⪟",loe="≆",aoe="⨤",coe="⥲",uoe="←",foe="∘",doe="∖",hoe="⨳",poe="⧤",goe="∣",moe="⌣",voe="⪪",yoe="⪬",boe="⪬︀",woe="Ь",xoe="ь",Soe="⌿",_oe="⧄",koe="/",Toe="𝕊",Coe="𝕤",Eoe="♠",Aoe="♠",$oe="∥",Noe="⊓",Moe="⊓︀",Loe="⊔",Ooe="⊔︀",Roe="√",Poe="⊏",Ioe="⊑",Doe="⊏",Foe="⊑",zoe="⊐",Hoe="⊒",Boe="⊐",joe="⊒",Woe="□",qoe="□",Uoe="⊓",Voe="⊏",Goe="⊑",Koe="⊐",Yoe="⊒",Xoe="⊔",Joe="▪",Zoe="□",Qoe="▪",ese="→",tse="𝒮",nse="𝓈",rse="∖",ise="⌣",ose="⋆",sse="⋆",lse="☆",ase="★",cse="ϵ",use="ϕ",fse="¯",dse="⊂",hse="⋐",pse="⪽",gse="⫅",mse="⊆",vse="⫃",yse="⫁",bse="⫋",wse="⊊",xse="⪿",Sse="⥹",_se="⊂",kse="⋐",Tse="⊆",Cse="⫅",Ese="⊆",Ase="⊊",$se="⫋",Nse="⫇",Mse="⫕",Lse="⫓",Ose="⪸",Rse="≻",Pse="≽",Ise="≻",Dse="⪰",Fse="≽",zse="≿",Hse="⪰",Bse="⪺",jse="⪶",Wse="⋩",qse="≿",Use="∋",Vse="∑",Gse="∑",Kse="♪",Yse="¹",Xse="²",Jse="³",Zse="⊃",Qse="⋑",ele="⪾",tle="⫘",nle="⫆",rle="⊇",ile="⫄",ole="⊃",sle="⊇",lle="⟉",ale="⫗",cle="⥻",ule="⫂",fle="⫌",dle="⊋",hle="⫀",ple="⊃",gle="⋑",mle="⊇",vle="⫆",yle="⊋",ble="⫌",wle="⫈",xle="⫔",Sle="⫖",_le="⤦",kle="↙",Tle="⇙",Cle="↙",Ele="⤪",Ale="ß",$le=" ",Nle="⌖",Mle="Τ",Lle="τ",Ole="⎴",Rle="Ť",Ple="ť",Ile="Ţ",Dle="ţ",Fle="Т",zle="т",Hle="⃛",Ble="⌕",jle="𝔗",Wle="𝔱",qle="∴",Ule="∴",Vle="∴",Gle="Θ",Kle="θ",Yle="ϑ",Xle="ϑ",Jle="≈",Zle="∼",Qle="  ",eae=" ",tae=" ",nae="≈",rae="∼",iae="Þ",oae="þ",sae="˜",lae="∼",aae="≃",cae="≅",uae="≈",fae="⨱",dae="⊠",hae="×",pae="⨰",gae="∭",mae="⤨",vae="⌶",yae="⫱",bae="⊤",wae="𝕋",xae="𝕥",Sae="⫚",_ae="⤩",kae="‴",Tae="™",Cae="™",Eae="▵",Aae="▿",$ae="◃",Nae="⊴",Mae="≜",Lae="▹",Oae="⊵",Rae="◬",Pae="≜",Iae="⨺",Dae="⃛",Fae="⨹",zae="⧍",Hae="⨻",Bae="⏢",jae="𝒯",Wae="𝓉",qae="Ц",Uae="ц",Vae="Ћ",Gae="ћ",Kae="Ŧ",Yae="ŧ",Xae="≬",Jae="↞",Zae="↠",Qae="Ú",ece="ú",tce="↑",nce="↟",rce="⇑",ice="⥉",oce="Ў",sce="ў",lce="Ŭ",ace="ŭ",cce="Û",uce="û",fce="У",dce="у",hce="⇅",pce="Ű",gce="ű",mce="⥮",vce="⥾",yce="𝔘",bce="𝔲",wce="Ù",xce="ù",Sce="⥣",_ce="↿",kce="↾",Tce="▀",Cce="⌜",Ece="⌜",Ace="⌏",$ce="◸",Nce="Ū",Mce="ū",Lce="¨",Oce="_",Rce="⏟",Pce="⎵",Ice="⏝",Dce="⋃",Fce="⊎",zce="Ų",Hce="ų",Bce="𝕌",jce="𝕦",Wce="⤒",qce="↑",Uce="↑",Vce="⇑",Gce="⇅",Kce="↕",Yce="↕",Xce="⇕",Jce="⥮",Zce="↿",Qce="↾",eue="⊎",tue="↖",nue="↗",rue="υ",iue="ϒ",oue="ϒ",sue="Υ",lue="υ",aue="↥",cue="⊥",uue="⇈",fue="⌝",due="⌝",hue="⌎",pue="Ů",gue="ů",mue="◹",vue="𝒰",yue="𝓊",bue="⋰",wue="Ũ",xue="ũ",Sue="▵",_ue="▴",kue="⇈",Tue="Ü",Cue="ü",Eue="⦧",Aue="⦜",$ue="ϵ",Nue="ϰ",Mue="∅",Lue="ϕ",Oue="ϖ",Rue="∝",Pue="↕",Iue="⇕",Due="ϱ",Fue="ς",zue="⊊︀",Hue="⫋︀",Bue="⊋︀",jue="⫌︀",Wue="ϑ",que="⊲",Uue="⊳",Vue="⫨",Gue="⫫",Kue="⫩",Yue="В",Xue="в",Jue="⊢",Zue="⊨",Que="⊩",efe="⊫",tfe="⫦",nfe="⊻",rfe="∨",ife="⋁",ofe="≚",sfe="⋮",lfe="|",afe="‖",cfe="|",ufe="‖",ffe="∣",dfe="|",hfe="❘",pfe="≀",gfe=" ",mfe="𝔙",vfe="𝔳",yfe="⊲",bfe="⊂⃒",wfe="⊃⃒",xfe="𝕍",Sfe="𝕧",_fe="∝",kfe="⊳",Tfe="𝒱",Cfe="𝓋",Efe="⫋︀",Afe="⊊︀",$fe="⫌︀",Nfe="⊋︀",Mfe="⊪",Lfe="⦚",Ofe="Ŵ",Rfe="ŵ",Pfe="⩟",Ife="∧",Dfe="⋀",Ffe="≙",zfe="℘",Hfe="𝔚",Bfe="𝔴",jfe="𝕎",Wfe="𝕨",qfe="℘",Ufe="≀",Vfe="≀",Gfe="𝒲",Kfe="𝓌",Yfe="⋂",Xfe="◯",Jfe="⋃",Zfe="▽",Qfe="𝔛",ede="𝔵",tde="⟷",nde="⟺",rde="Ξ",ide="ξ",ode="⟵",sde="⟸",lde="⟼",ade="⋻",cde="⨀",ude="𝕏",fde="𝕩",dde="⨁",hde="⨂",pde="⟶",gde="⟹",mde="𝒳",vde="𝓍",yde="⨆",bde="⨄",wde="△",xde="⋁",Sde="⋀",_de="Ý",kde="ý",Tde="Я",Cde="я",Ede="Ŷ",Ade="ŷ",$de="Ы",Nde="ы",Mde="¥",Lde="𝔜",Ode="𝔶",Rde="Ї",Pde="ї",Ide="𝕐",Dde="𝕪",Fde="𝒴",zde="𝓎",Hde="Ю",Bde="ю",jde="ÿ",Wde="Ÿ",qde="Ź",Ude="ź",Vde="Ž",Gde="ž",Kde="З",Yde="з",Xde="Ż",Jde="ż",Zde="ℨ",Qde="​",ehe="Ζ",the="ζ",nhe="𝔷",rhe="ℨ",ihe="Ж",ohe="ж",she="⇝",lhe="𝕫",ahe="ℤ",che="𝒵",uhe="𝓏",fhe="‍",dhe="‌",C_={Aacute:XP,aacute:JP,Abreve:ZP,abreve:QP,ac:eI,acd:tI,acE:nI,Acirc:rI,acirc:iI,acute:oI,Acy:sI,acy:lI,AElig:aI,aelig:cI,af:uI,Afr:fI,afr:dI,Agrave:hI,agrave:pI,alefsym:gI,aleph:mI,Alpha:vI,alpha:yI,Amacr:bI,amacr:wI,amalg:xI,amp:SI,AMP:_I,andand:kI,And:TI,and:CI,andd:EI,andslope:AI,andv:$I,ang:NI,ange:MI,angle:LI,angmsdaa:OI,angmsdab:RI,angmsdac:PI,angmsdad:II,angmsdae:DI,angmsdaf:FI,angmsdag:zI,angmsdah:HI,angmsd:BI,angrt:jI,angrtvb:WI,angrtvbd:qI,angsph:UI,angst:VI,angzarr:GI,Aogon:KI,aogon:YI,Aopf:XI,aopf:JI,apacir:ZI,ap:QI,apE:e2,ape:t2,apid:n2,apos:r2,ApplyFunction:i2,approx:o2,approxeq:s2,Aring:l2,aring:a2,Ascr:c2,ascr:u2,Assign:f2,ast:d2,asymp:h2,asympeq:p2,Atilde:g2,atilde:m2,Auml:v2,auml:y2,awconint:b2,awint:w2,backcong:x2,backepsilon:S2,backprime:_2,backsim:k2,backsimeq:T2,Backslash:C2,Barv:E2,barvee:A2,barwed:$2,Barwed:N2,barwedge:M2,bbrk:L2,bbrktbrk:O2,bcong:R2,Bcy:P2,bcy:I2,bdquo:D2,becaus:F2,because:z2,Because:H2,bemptyv:B2,bepsi:j2,bernou:W2,Bernoullis:q2,Beta:U2,beta:V2,beth:G2,between:K2,Bfr:Y2,bfr:X2,bigcap:J2,bigcirc:Z2,bigcup:Q2,bigodot:eD,bigoplus:tD,bigotimes:nD,bigsqcup:rD,bigstar:iD,bigtriangledown:oD,bigtriangleup:sD,biguplus:lD,bigvee:aD,bigwedge:cD,bkarow:uD,blacklozenge:fD,blacksquare:dD,blacktriangle:hD,blacktriangledown:pD,blacktriangleleft:gD,blacktriangleright:mD,blank:vD,blk12:yD,blk14:bD,blk34:wD,block:xD,bne:SD,bnequiv:_D,bNot:kD,bnot:TD,Bopf:CD,bopf:ED,bot:AD,bottom:$D,bowtie:ND,boxbox:MD,boxdl:LD,boxdL:OD,boxDl:RD,boxDL:PD,boxdr:ID,boxdR:DD,boxDr:FD,boxDR:zD,boxh:HD,boxH:BD,boxhd:jD,boxHd:WD,boxhD:qD,boxHD:UD,boxhu:VD,boxHu:GD,boxhU:KD,boxHU:YD,boxminus:XD,boxplus:JD,boxtimes:ZD,boxul:QD,boxuL:eF,boxUl:tF,boxUL:nF,boxur:rF,boxuR:iF,boxUr:oF,boxUR:sF,boxv:lF,boxV:aF,boxvh:cF,boxvH:uF,boxVh:fF,boxVH:dF,boxvl:hF,boxvL:pF,boxVl:gF,boxVL:mF,boxvr:vF,boxvR:yF,boxVr:bF,boxVR:wF,bprime:xF,breve:SF,Breve:_F,brvbar:kF,bscr:TF,Bscr:CF,bsemi:EF,bsim:AF,bsime:$F,bsolb:NF,bsol:MF,bsolhsub:LF,bull:OF,bullet:RF,bump:PF,bumpE:IF,bumpe:DF,Bumpeq:FF,bumpeq:zF,Cacute:HF,cacute:BF,capand:jF,capbrcup:WF,capcap:qF,cap:UF,Cap:VF,capcup:GF,capdot:KF,CapitalDifferentialD:YF,caps:XF,caret:JF,caron:ZF,Cayleys:QF,ccaps:ez,Ccaron:tz,ccaron:nz,Ccedil:rz,ccedil:iz,Ccirc:oz,ccirc:sz,Cconint:lz,ccups:az,ccupssm:cz,Cdot:uz,cdot:fz,cedil:dz,Cedilla:hz,cemptyv:pz,cent:gz,centerdot:mz,CenterDot:vz,cfr:yz,Cfr:bz,CHcy:wz,chcy:xz,check:Sz,checkmark:_z,Chi:kz,chi:Tz,circ:Cz,circeq:Ez,circlearrowleft:Az,circlearrowright:$z,circledast:Nz,circledcirc:Mz,circleddash:Lz,CircleDot:Oz,circledR:Rz,circledS:Pz,CircleMinus:Iz,CirclePlus:Dz,CircleTimes:Fz,cir:zz,cirE:Hz,cire:Bz,cirfnint:jz,cirmid:Wz,cirscir:qz,ClockwiseContourIntegral:Uz,CloseCurlyDoubleQuote:Vz,CloseCurlyQuote:Gz,clubs:Kz,clubsuit:Yz,colon:Xz,Colon:Jz,Colone:Zz,colone:Qz,coloneq:e3,comma:t3,commat:n3,comp:r3,compfn:i3,complement:o3,complexes:s3,cong:l3,congdot:a3,Congruent:c3,conint:u3,Conint:f3,ContourIntegral:d3,copf:h3,Copf:p3,coprod:g3,Coproduct:m3,copy:v3,COPY:y3,copysr:b3,CounterClockwiseContourIntegral:w3,crarr:x3,cross:S3,Cross:_3,Cscr:k3,cscr:T3,csub:C3,csube:E3,csup:A3,csupe:$3,ctdot:N3,cudarrl:M3,cudarrr:L3,cuepr:O3,cuesc:R3,cularr:P3,cularrp:I3,cupbrcap:D3,cupcap:F3,CupCap:z3,cup:H3,Cup:B3,cupcup:j3,cupdot:W3,cupor:q3,cups:U3,curarr:V3,curarrm:G3,curlyeqprec:K3,curlyeqsucc:Y3,curlyvee:X3,curlywedge:J3,curren:Z3,curvearrowleft:Q3,curvearrowright:eH,cuvee:tH,cuwed:nH,cwconint:rH,cwint:iH,cylcty:oH,dagger:sH,Dagger:lH,daleth:aH,darr:cH,Darr:uH,dArr:fH,dash:dH,Dashv:hH,dashv:pH,dbkarow:gH,dblac:mH,Dcaron:vH,dcaron:yH,Dcy:bH,dcy:wH,ddagger:xH,ddarr:SH,DD:_H,dd:kH,DDotrahd:TH,ddotseq:CH,deg:EH,Del:AH,Delta:$H,delta:NH,demptyv:MH,dfisht:LH,Dfr:OH,dfr:RH,dHar:PH,dharl:IH,dharr:DH,DiacriticalAcute:FH,DiacriticalDot:zH,DiacriticalDoubleAcute:HH,DiacriticalGrave:BH,DiacriticalTilde:jH,diam:WH,diamond:qH,Diamond:UH,diamondsuit:VH,diams:GH,die:KH,DifferentialD:YH,digamma:XH,disin:JH,div:ZH,divide:QH,divideontimes:eB,divonx:tB,DJcy:nB,djcy:rB,dlcorn:iB,dlcrop:oB,dollar:sB,Dopf:lB,dopf:aB,Dot:cB,dot:uB,DotDot:fB,doteq:dB,doteqdot:hB,DotEqual:pB,dotminus:gB,dotplus:mB,dotsquare:vB,doublebarwedge:yB,DoubleContourIntegral:bB,DoubleDot:wB,DoubleDownArrow:xB,DoubleLeftArrow:SB,DoubleLeftRightArrow:_B,DoubleLeftTee:kB,DoubleLongLeftArrow:TB,DoubleLongLeftRightArrow:CB,DoubleLongRightArrow:EB,DoubleRightArrow:AB,DoubleRightTee:$B,DoubleUpArrow:NB,DoubleUpDownArrow:MB,DoubleVerticalBar:LB,DownArrowBar:OB,downarrow:RB,DownArrow:PB,Downarrow:IB,DownArrowUpArrow:DB,DownBreve:FB,downdownarrows:zB,downharpoonleft:HB,downharpoonright:BB,DownLeftRightVector:jB,DownLeftTeeVector:WB,DownLeftVectorBar:qB,DownLeftVector:UB,DownRightTeeVector:VB,DownRightVectorBar:GB,DownRightVector:KB,DownTeeArrow:YB,DownTee:XB,drbkarow:JB,drcorn:ZB,drcrop:QB,Dscr:ej,dscr:tj,DScy:nj,dscy:rj,dsol:ij,Dstrok:oj,dstrok:sj,dtdot:lj,dtri:aj,dtrif:cj,duarr:uj,duhar:fj,dwangle:dj,DZcy:hj,dzcy:pj,dzigrarr:gj,Eacute:mj,eacute:vj,easter:yj,Ecaron:bj,ecaron:wj,Ecirc:xj,ecirc:Sj,ecir:_j,ecolon:kj,Ecy:Tj,ecy:Cj,eDDot:Ej,Edot:Aj,edot:$j,eDot:Nj,ee:Mj,efDot:Lj,Efr:Oj,efr:Rj,eg:Pj,Egrave:Ij,egrave:Dj,egs:Fj,egsdot:zj,el:Hj,Element:Bj,elinters:jj,ell:Wj,els:qj,elsdot:Uj,Emacr:Vj,emacr:Gj,empty:Kj,emptyset:Yj,EmptySmallSquare:Xj,emptyv:Jj,EmptyVerySmallSquare:Zj,emsp13:Qj,emsp14:e5,emsp:t5,ENG:n5,eng:r5,ensp:i5,Eogon:o5,eogon:s5,Eopf:l5,eopf:a5,epar:c5,eparsl:u5,eplus:f5,epsi:d5,Epsilon:h5,epsilon:p5,epsiv:g5,eqcirc:m5,eqcolon:v5,eqsim:y5,eqslantgtr:b5,eqslantless:w5,Equal:x5,equals:S5,EqualTilde:_5,equest:k5,Equilibrium:T5,equiv:C5,equivDD:E5,eqvparsl:A5,erarr:$5,erDot:N5,escr:M5,Escr:L5,esdot:O5,Esim:R5,esim:P5,Eta:I5,eta:D5,ETH:F5,eth:z5,Euml:H5,euml:B5,euro:j5,excl:W5,exist:q5,Exists:U5,expectation:V5,exponentiale:G5,ExponentialE:K5,fallingdotseq:Y5,Fcy:X5,fcy:J5,female:Z5,ffilig:Q5,fflig:e8,ffllig:t8,Ffr:n8,ffr:r8,filig:i8,FilledSmallSquare:o8,FilledVerySmallSquare:s8,fjlig:l8,flat:a8,fllig:c8,fltns:u8,fnof:f8,Fopf:d8,fopf:h8,forall:p8,ForAll:g8,fork:m8,forkv:v8,Fouriertrf:y8,fpartint:b8,frac12:w8,frac13:x8,frac14:S8,frac15:_8,frac16:k8,frac18:T8,frac23:C8,frac25:E8,frac34:A8,frac35:$8,frac38:N8,frac45:M8,frac56:L8,frac58:O8,frac78:R8,frasl:P8,frown:I8,fscr:D8,Fscr:F8,gacute:z8,Gamma:H8,gamma:B8,Gammad:j8,gammad:W8,gap:q8,Gbreve:U8,gbreve:V8,Gcedil:G8,Gcirc:K8,gcirc:Y8,Gcy:X8,gcy:J8,Gdot:Z8,gdot:Q8,ge:e4,gE:t4,gEl:n4,gel:r4,geq:i4,geqq:o4,geqslant:s4,gescc:l4,ges:a4,gesdot:c4,gesdoto:u4,gesdotol:f4,gesl:d4,gesles:h4,Gfr:p4,gfr:g4,gg:m4,Gg:v4,ggg:y4,gimel:b4,GJcy:w4,gjcy:x4,gla:S4,gl:_4,glE:k4,glj:T4,gnap:C4,gnapprox:E4,gne:A4,gnE:$4,gneq:N4,gneqq:M4,gnsim:L4,Gopf:O4,gopf:R4,grave:P4,GreaterEqual:I4,GreaterEqualLess:D4,GreaterFullEqual:F4,GreaterGreater:z4,GreaterLess:H4,GreaterSlantEqual:B4,GreaterTilde:j4,Gscr:W4,gscr:q4,gsim:U4,gsime:V4,gsiml:G4,gtcc:K4,gtcir:Y4,gt:X4,GT:J4,Gt:Z4,gtdot:Q4,gtlPar:eW,gtquest:tW,gtrapprox:nW,gtrarr:rW,gtrdot:iW,gtreqless:oW,gtreqqless:sW,gtrless:lW,gtrsim:aW,gvertneqq:cW,gvnE:uW,Hacek:fW,hairsp:dW,half:hW,hamilt:pW,HARDcy:gW,hardcy:mW,harrcir:vW,harr:yW,hArr:bW,harrw:wW,Hat:xW,hbar:SW,Hcirc:_W,hcirc:kW,hearts:TW,heartsuit:CW,hellip:EW,hercon:AW,hfr:$W,Hfr:NW,HilbertSpace:MW,hksearow:LW,hkswarow:OW,hoarr:RW,homtht:PW,hookleftarrow:IW,hookrightarrow:DW,hopf:FW,Hopf:zW,horbar:HW,HorizontalLine:BW,hscr:jW,Hscr:WW,hslash:qW,Hstrok:UW,hstrok:VW,HumpDownHump:GW,HumpEqual:KW,hybull:YW,hyphen:XW,Iacute:JW,iacute:ZW,ic:QW,Icirc:eq,icirc:tq,Icy:nq,icy:rq,Idot:iq,IEcy:oq,iecy:sq,iexcl:lq,iff:aq,ifr:cq,Ifr:uq,Igrave:fq,igrave:dq,ii:hq,iiiint:pq,iiint:gq,iinfin:mq,iiota:vq,IJlig:yq,ijlig:bq,Imacr:wq,imacr:xq,image:Sq,ImaginaryI:_q,imagline:kq,imagpart:Tq,imath:Cq,Im:Eq,imof:Aq,imped:$q,Implies:Nq,incare:Mq,in:"∈",infin:Lq,infintie:Oq,inodot:Rq,intcal:Pq,int:Iq,Int:Dq,integers:Fq,Integral:zq,intercal:Hq,Intersection:Bq,intlarhk:jq,intprod:Wq,InvisibleComma:qq,InvisibleTimes:Uq,IOcy:Vq,iocy:Gq,Iogon:Kq,iogon:Yq,Iopf:Xq,iopf:Jq,Iota:Zq,iota:Qq,iprod:eU,iquest:tU,iscr:nU,Iscr:rU,isin:iU,isindot:oU,isinE:sU,isins:lU,isinsv:aU,isinv:cU,it:uU,Itilde:fU,itilde:dU,Iukcy:hU,iukcy:pU,Iuml:gU,iuml:mU,Jcirc:vU,jcirc:yU,Jcy:bU,jcy:wU,Jfr:xU,jfr:SU,jmath:_U,Jopf:kU,jopf:TU,Jscr:CU,jscr:EU,Jsercy:AU,jsercy:$U,Jukcy:NU,jukcy:MU,Kappa:LU,kappa:OU,kappav:RU,Kcedil:PU,kcedil:IU,Kcy:DU,kcy:FU,Kfr:zU,kfr:HU,kgreen:BU,KHcy:jU,khcy:WU,KJcy:qU,kjcy:UU,Kopf:VU,kopf:GU,Kscr:KU,kscr:YU,lAarr:XU,Lacute:JU,lacute:ZU,laemptyv:QU,lagran:e6,Lambda:t6,lambda:n6,lang:r6,Lang:i6,langd:o6,langle:s6,lap:l6,Laplacetrf:a6,laquo:c6,larrb:u6,larrbfs:f6,larr:d6,Larr:h6,lArr:p6,larrfs:g6,larrhk:m6,larrlp:v6,larrpl:y6,larrsim:b6,larrtl:w6,latail:x6,lAtail:S6,lat:_6,late:k6,lates:T6,lbarr:C6,lBarr:E6,lbbrk:A6,lbrace:$6,lbrack:N6,lbrke:M6,lbrksld:L6,lbrkslu:O6,Lcaron:R6,lcaron:P6,Lcedil:I6,lcedil:D6,lceil:F6,lcub:z6,Lcy:H6,lcy:B6,ldca:j6,ldquo:W6,ldquor:q6,ldrdhar:U6,ldrushar:V6,ldsh:G6,le:K6,lE:Y6,LeftAngleBracket:X6,LeftArrowBar:J6,leftarrow:Z6,LeftArrow:Q6,Leftarrow:eV,LeftArrowRightArrow:tV,leftarrowtail:nV,LeftCeiling:rV,LeftDoubleBracket:iV,LeftDownTeeVector:oV,LeftDownVectorBar:sV,LeftDownVector:lV,LeftFloor:aV,leftharpoondown:cV,leftharpoonup:uV,leftleftarrows:fV,leftrightarrow:dV,LeftRightArrow:hV,Leftrightarrow:pV,leftrightarrows:gV,leftrightharpoons:mV,leftrightsquigarrow:vV,LeftRightVector:yV,LeftTeeArrow:bV,LeftTee:wV,LeftTeeVector:xV,leftthreetimes:SV,LeftTriangleBar:_V,LeftTriangle:kV,LeftTriangleEqual:TV,LeftUpDownVector:CV,LeftUpTeeVector:EV,LeftUpVectorBar:AV,LeftUpVector:$V,LeftVectorBar:NV,LeftVector:MV,lEg:LV,leg:OV,leq:RV,leqq:PV,leqslant:IV,lescc:DV,les:FV,lesdot:zV,lesdoto:HV,lesdotor:BV,lesg:jV,lesges:WV,lessapprox:qV,lessdot:UV,lesseqgtr:VV,lesseqqgtr:GV,LessEqualGreater:KV,LessFullEqual:YV,LessGreater:XV,lessgtr:JV,LessLess:ZV,lesssim:QV,LessSlantEqual:e9,LessTilde:t9,lfisht:n9,lfloor:r9,Lfr:i9,lfr:o9,lg:s9,lgE:l9,lHar:a9,lhard:c9,lharu:u9,lharul:f9,lhblk:d9,LJcy:h9,ljcy:p9,llarr:g9,ll:m9,Ll:v9,llcorner:y9,Lleftarrow:b9,llhard:w9,lltri:x9,Lmidot:S9,lmidot:_9,lmoustache:k9,lmoust:T9,lnap:C9,lnapprox:E9,lne:A9,lnE:$9,lneq:N9,lneqq:M9,lnsim:L9,loang:O9,loarr:R9,lobrk:P9,longleftarrow:I9,LongLeftArrow:D9,Longleftarrow:F9,longleftrightarrow:z9,LongLeftRightArrow:H9,Longleftrightarrow:B9,longmapsto:j9,longrightarrow:W9,LongRightArrow:q9,Longrightarrow:U9,looparrowleft:V9,looparrowright:G9,lopar:K9,Lopf:Y9,lopf:X9,loplus:J9,lotimes:Z9,lowast:Q9,lowbar:eG,LowerLeftArrow:tG,LowerRightArrow:nG,loz:rG,lozenge:iG,lozf:oG,lpar:sG,lparlt:lG,lrarr:aG,lrcorner:cG,lrhar:uG,lrhard:fG,lrm:dG,lrtri:hG,lsaquo:pG,lscr:gG,Lscr:mG,lsh:vG,Lsh:yG,lsim:bG,lsime:wG,lsimg:xG,lsqb:SG,lsquo:_G,lsquor:kG,Lstrok:TG,lstrok:CG,ltcc:EG,ltcir:AG,lt:$G,LT:NG,Lt:MG,ltdot:LG,lthree:OG,ltimes:RG,ltlarr:PG,ltquest:IG,ltri:DG,ltrie:FG,ltrif:zG,ltrPar:HG,lurdshar:BG,luruhar:jG,lvertneqq:WG,lvnE:qG,macr:UG,male:VG,malt:GG,maltese:KG,Map:"⤅",map:YG,mapsto:XG,mapstodown:JG,mapstoleft:ZG,mapstoup:QG,marker:eK,mcomma:tK,Mcy:nK,mcy:rK,mdash:iK,mDDot:oK,measuredangle:sK,MediumSpace:lK,Mellintrf:aK,Mfr:cK,mfr:uK,mho:fK,micro:dK,midast:hK,midcir:pK,mid:gK,middot:mK,minusb:vK,minus:yK,minusd:bK,minusdu:wK,MinusPlus:xK,mlcp:SK,mldr:_K,mnplus:kK,models:TK,Mopf:CK,mopf:EK,mp:AK,mscr:$K,Mscr:NK,mstpos:MK,Mu:LK,mu:OK,multimap:RK,mumap:PK,nabla:IK,Nacute:DK,nacute:FK,nang:zK,nap:HK,napE:BK,napid:jK,napos:WK,napprox:qK,natural:UK,naturals:VK,natur:GK,nbsp:KK,nbump:YK,nbumpe:XK,ncap:JK,Ncaron:ZK,ncaron:QK,Ncedil:e7,ncedil:t7,ncong:n7,ncongdot:r7,ncup:i7,Ncy:o7,ncy:s7,ndash:l7,nearhk:a7,nearr:c7,neArr:u7,nearrow:f7,ne:d7,nedot:h7,NegativeMediumSpace:p7,NegativeThickSpace:g7,NegativeThinSpace:m7,NegativeVeryThinSpace:v7,nequiv:y7,nesear:b7,nesim:w7,NestedGreaterGreater:x7,NestedLessLess:S7,NewLine:_7,nexist:k7,nexists:T7,Nfr:C7,nfr:E7,ngE:A7,nge:$7,ngeq:N7,ngeqq:M7,ngeqslant:L7,nges:O7,nGg:R7,ngsim:P7,nGt:I7,ngt:D7,ngtr:F7,nGtv:z7,nharr:H7,nhArr:B7,nhpar:j7,ni:W7,nis:q7,nisd:U7,niv:V7,NJcy:G7,njcy:K7,nlarr:Y7,nlArr:X7,nldr:J7,nlE:Z7,nle:Q7,nleftarrow:eY,nLeftarrow:tY,nleftrightarrow:nY,nLeftrightarrow:rY,nleq:iY,nleqq:oY,nleqslant:sY,nles:lY,nless:aY,nLl:cY,nlsim:uY,nLt:fY,nlt:dY,nltri:hY,nltrie:pY,nLtv:gY,nmid:mY,NoBreak:vY,NonBreakingSpace:yY,nopf:bY,Nopf:wY,Not:xY,not:SY,NotCongruent:_Y,NotCupCap:kY,NotDoubleVerticalBar:TY,NotElement:CY,NotEqual:EY,NotEqualTilde:AY,NotExists:$Y,NotGreater:NY,NotGreaterEqual:MY,NotGreaterFullEqual:LY,NotGreaterGreater:OY,NotGreaterLess:RY,NotGreaterSlantEqual:PY,NotGreaterTilde:IY,NotHumpDownHump:DY,NotHumpEqual:FY,notin:zY,notindot:HY,notinE:BY,notinva:jY,notinvb:WY,notinvc:qY,NotLeftTriangleBar:UY,NotLeftTriangle:VY,NotLeftTriangleEqual:GY,NotLess:KY,NotLessEqual:YY,NotLessGreater:XY,NotLessLess:JY,NotLessSlantEqual:ZY,NotLessTilde:QY,NotNestedGreaterGreater:eX,NotNestedLessLess:tX,notni:nX,notniva:rX,notnivb:iX,notnivc:oX,NotPrecedes:sX,NotPrecedesEqual:lX,NotPrecedesSlantEqual:aX,NotReverseElement:cX,NotRightTriangleBar:uX,NotRightTriangle:fX,NotRightTriangleEqual:dX,NotSquareSubset:hX,NotSquareSubsetEqual:pX,NotSquareSuperset:gX,NotSquareSupersetEqual:mX,NotSubset:vX,NotSubsetEqual:yX,NotSucceeds:bX,NotSucceedsEqual:wX,NotSucceedsSlantEqual:xX,NotSucceedsTilde:SX,NotSuperset:_X,NotSupersetEqual:kX,NotTilde:TX,NotTildeEqual:CX,NotTildeFullEqual:EX,NotTildeTilde:AX,NotVerticalBar:$X,nparallel:NX,npar:MX,nparsl:LX,npart:OX,npolint:RX,npr:PX,nprcue:IX,nprec:DX,npreceq:FX,npre:zX,nrarrc:HX,nrarr:BX,nrArr:jX,nrarrw:WX,nrightarrow:qX,nRightarrow:UX,nrtri:VX,nrtrie:GX,nsc:KX,nsccue:YX,nsce:XX,Nscr:JX,nscr:ZX,nshortmid:QX,nshortparallel:eJ,nsim:tJ,nsime:nJ,nsimeq:rJ,nsmid:iJ,nspar:oJ,nsqsube:sJ,nsqsupe:lJ,nsub:aJ,nsubE:cJ,nsube:uJ,nsubset:fJ,nsubseteq:dJ,nsubseteqq:hJ,nsucc:pJ,nsucceq:gJ,nsup:mJ,nsupE:vJ,nsupe:yJ,nsupset:bJ,nsupseteq:wJ,nsupseteqq:xJ,ntgl:SJ,Ntilde:_J,ntilde:kJ,ntlg:TJ,ntriangleleft:CJ,ntrianglelefteq:EJ,ntriangleright:AJ,ntrianglerighteq:$J,Nu:NJ,nu:MJ,num:LJ,numero:OJ,numsp:RJ,nvap:PJ,nvdash:IJ,nvDash:DJ,nVdash:FJ,nVDash:zJ,nvge:HJ,nvgt:BJ,nvHarr:jJ,nvinfin:WJ,nvlArr:qJ,nvle:UJ,nvlt:VJ,nvltrie:GJ,nvrArr:KJ,nvrtrie:YJ,nvsim:XJ,nwarhk:JJ,nwarr:ZJ,nwArr:QJ,nwarrow:eZ,nwnear:tZ,Oacute:nZ,oacute:rZ,oast:iZ,Ocirc:oZ,ocirc:sZ,ocir:lZ,Ocy:aZ,ocy:cZ,odash:uZ,Odblac:fZ,odblac:dZ,odiv:hZ,odot:pZ,odsold:gZ,OElig:mZ,oelig:vZ,ofcir:yZ,Ofr:bZ,ofr:wZ,ogon:xZ,Ograve:SZ,ograve:_Z,ogt:kZ,ohbar:TZ,ohm:CZ,oint:EZ,olarr:AZ,olcir:$Z,olcross:NZ,oline:MZ,olt:LZ,Omacr:OZ,omacr:RZ,Omega:PZ,omega:IZ,Omicron:DZ,omicron:FZ,omid:zZ,ominus:HZ,Oopf:BZ,oopf:jZ,opar:WZ,OpenCurlyDoubleQuote:qZ,OpenCurlyQuote:UZ,operp:VZ,oplus:GZ,orarr:KZ,Or:YZ,or:XZ,ord:JZ,order:ZZ,orderof:QZ,ordf:eQ,ordm:tQ,origof:nQ,oror:rQ,orslope:iQ,orv:oQ,oS:sQ,Oscr:lQ,oscr:aQ,Oslash:cQ,oslash:uQ,osol:fQ,Otilde:dQ,otilde:hQ,otimesas:pQ,Otimes:gQ,otimes:mQ,Ouml:vQ,ouml:yQ,ovbar:bQ,OverBar:wQ,OverBrace:xQ,OverBracket:SQ,OverParenthesis:_Q,para:kQ,parallel:TQ,par:CQ,parsim:EQ,parsl:AQ,part:$Q,PartialD:NQ,Pcy:MQ,pcy:LQ,percnt:OQ,period:RQ,permil:PQ,perp:IQ,pertenk:DQ,Pfr:FQ,pfr:zQ,Phi:HQ,phi:BQ,phiv:jQ,phmmat:WQ,phone:qQ,Pi:UQ,pi:VQ,pitchfork:GQ,piv:KQ,planck:YQ,planckh:XQ,plankv:JQ,plusacir:ZQ,plusb:QQ,pluscir:eee,plus:tee,plusdo:nee,plusdu:ree,pluse:iee,PlusMinus:oee,plusmn:see,plussim:lee,plustwo:aee,pm:cee,Poincareplane:uee,pointint:fee,popf:dee,Popf:hee,pound:pee,prap:gee,Pr:mee,pr:vee,prcue:yee,precapprox:bee,prec:wee,preccurlyeq:xee,Precedes:See,PrecedesEqual:_ee,PrecedesSlantEqual:kee,PrecedesTilde:Tee,preceq:Cee,precnapprox:Eee,precneqq:Aee,precnsim:$ee,pre:Nee,prE:Mee,precsim:Lee,prime:Oee,Prime:Ree,primes:Pee,prnap:Iee,prnE:Dee,prnsim:Fee,prod:zee,Product:Hee,profalar:Bee,profline:jee,profsurf:Wee,prop:qee,Proportional:Uee,Proportion:Vee,propto:Gee,prsim:Kee,prurel:Yee,Pscr:Xee,pscr:Jee,Psi:Zee,psi:Qee,puncsp:ete,Qfr:tte,qfr:nte,qint:rte,qopf:ite,Qopf:ote,qprime:ste,Qscr:lte,qscr:ate,quaternions:cte,quatint:ute,quest:fte,questeq:dte,quot:hte,QUOT:pte,rAarr:gte,race:mte,Racute:vte,racute:yte,radic:bte,raemptyv:wte,rang:xte,Rang:Ste,rangd:_te,range:kte,rangle:Tte,raquo:Cte,rarrap:Ete,rarrb:Ate,rarrbfs:$te,rarrc:Nte,rarr:Mte,Rarr:Lte,rArr:Ote,rarrfs:Rte,rarrhk:Pte,rarrlp:Ite,rarrpl:Dte,rarrsim:Fte,Rarrtl:zte,rarrtl:Hte,rarrw:Bte,ratail:jte,rAtail:Wte,ratio:qte,rationals:Ute,rbarr:Vte,rBarr:Gte,RBarr:Kte,rbbrk:Yte,rbrace:Xte,rbrack:Jte,rbrke:Zte,rbrksld:Qte,rbrkslu:ene,Rcaron:tne,rcaron:nne,Rcedil:rne,rcedil:ine,rceil:one,rcub:sne,Rcy:lne,rcy:ane,rdca:cne,rdldhar:une,rdquo:fne,rdquor:dne,rdsh:hne,real:pne,realine:gne,realpart:mne,reals:vne,Re:yne,rect:bne,reg:wne,REG:xne,ReverseElement:Sne,ReverseEquilibrium:_ne,ReverseUpEquilibrium:kne,rfisht:Tne,rfloor:Cne,rfr:Ene,Rfr:Ane,rHar:$ne,rhard:Nne,rharu:Mne,rharul:Lne,Rho:One,rho:Rne,rhov:Pne,RightAngleBracket:Ine,RightArrowBar:Dne,rightarrow:Fne,RightArrow:zne,Rightarrow:Hne,RightArrowLeftArrow:Bne,rightarrowtail:jne,RightCeiling:Wne,RightDoubleBracket:qne,RightDownTeeVector:Une,RightDownVectorBar:Vne,RightDownVector:Gne,RightFloor:Kne,rightharpoondown:Yne,rightharpoonup:Xne,rightleftarrows:Jne,rightleftharpoons:Zne,rightrightarrows:Qne,rightsquigarrow:ere,RightTeeArrow:tre,RightTee:nre,RightTeeVector:rre,rightthreetimes:ire,RightTriangleBar:ore,RightTriangle:sre,RightTriangleEqual:lre,RightUpDownVector:are,RightUpTeeVector:cre,RightUpVectorBar:ure,RightUpVector:fre,RightVectorBar:dre,RightVector:hre,ring:pre,risingdotseq:gre,rlarr:mre,rlhar:vre,rlm:yre,rmoustache:bre,rmoust:wre,rnmid:xre,roang:Sre,roarr:_re,robrk:kre,ropar:Tre,ropf:Cre,Ropf:Ere,roplus:Are,rotimes:$re,RoundImplies:Nre,rpar:Mre,rpargt:Lre,rppolint:Ore,rrarr:Rre,Rrightarrow:Pre,rsaquo:Ire,rscr:Dre,Rscr:Fre,rsh:zre,Rsh:Hre,rsqb:Bre,rsquo:jre,rsquor:Wre,rthree:qre,rtimes:Ure,rtri:Vre,rtrie:Gre,rtrif:Kre,rtriltri:Yre,RuleDelayed:Xre,ruluhar:Jre,rx:Zre,Sacute:Qre,sacute:eie,sbquo:tie,scap:nie,Scaron:rie,scaron:iie,Sc:oie,sc:sie,sccue:lie,sce:aie,scE:cie,Scedil:uie,scedil:fie,Scirc:die,scirc:hie,scnap:pie,scnE:gie,scnsim:mie,scpolint:vie,scsim:yie,Scy:bie,scy:wie,sdotb:xie,sdot:Sie,sdote:_ie,searhk:kie,searr:Tie,seArr:Cie,searrow:Eie,sect:Aie,semi:$ie,seswar:Nie,setminus:Mie,setmn:Lie,sext:Oie,Sfr:Rie,sfr:Pie,sfrown:Iie,sharp:Die,SHCHcy:Fie,shchcy:zie,SHcy:Hie,shcy:Bie,ShortDownArrow:jie,ShortLeftArrow:Wie,shortmid:qie,shortparallel:Uie,ShortRightArrow:Vie,ShortUpArrow:Gie,shy:Kie,Sigma:Yie,sigma:Xie,sigmaf:Jie,sigmav:Zie,sim:Qie,simdot:eoe,sime:toe,simeq:noe,simg:roe,simgE:ioe,siml:ooe,simlE:soe,simne:loe,simplus:aoe,simrarr:coe,slarr:uoe,SmallCircle:foe,smallsetminus:doe,smashp:hoe,smeparsl:poe,smid:goe,smile:moe,smt:voe,smte:yoe,smtes:boe,SOFTcy:woe,softcy:xoe,solbar:Soe,solb:_oe,sol:koe,Sopf:Toe,sopf:Coe,spades:Eoe,spadesuit:Aoe,spar:$oe,sqcap:Noe,sqcaps:Moe,sqcup:Loe,sqcups:Ooe,Sqrt:Roe,sqsub:Poe,sqsube:Ioe,sqsubset:Doe,sqsubseteq:Foe,sqsup:zoe,sqsupe:Hoe,sqsupset:Boe,sqsupseteq:joe,square:Woe,Square:qoe,SquareIntersection:Uoe,SquareSubset:Voe,SquareSubsetEqual:Goe,SquareSuperset:Koe,SquareSupersetEqual:Yoe,SquareUnion:Xoe,squarf:Joe,squ:Zoe,squf:Qoe,srarr:ese,Sscr:tse,sscr:nse,ssetmn:rse,ssmile:ise,sstarf:ose,Star:sse,star:lse,starf:ase,straightepsilon:cse,straightphi:use,strns:fse,sub:dse,Sub:hse,subdot:pse,subE:gse,sube:mse,subedot:vse,submult:yse,subnE:bse,subne:wse,subplus:xse,subrarr:Sse,subset:_se,Subset:kse,subseteq:Tse,subseteqq:Cse,SubsetEqual:Ese,subsetneq:Ase,subsetneqq:$se,subsim:Nse,subsub:Mse,subsup:Lse,succapprox:Ose,succ:Rse,succcurlyeq:Pse,Succeeds:Ise,SucceedsEqual:Dse,SucceedsSlantEqual:Fse,SucceedsTilde:zse,succeq:Hse,succnapprox:Bse,succneqq:jse,succnsim:Wse,succsim:qse,SuchThat:Use,sum:Vse,Sum:Gse,sung:Kse,sup1:Yse,sup2:Xse,sup3:Jse,sup:Zse,Sup:Qse,supdot:ele,supdsub:tle,supE:nle,supe:rle,supedot:ile,Superset:ole,SupersetEqual:sle,suphsol:lle,suphsub:ale,suplarr:cle,supmult:ule,supnE:fle,supne:dle,supplus:hle,supset:ple,Supset:gle,supseteq:mle,supseteqq:vle,supsetneq:yle,supsetneqq:ble,supsim:wle,supsub:xle,supsup:Sle,swarhk:_le,swarr:kle,swArr:Tle,swarrow:Cle,swnwar:Ele,szlig:Ale,Tab:$le,target:Nle,Tau:Mle,tau:Lle,tbrk:Ole,Tcaron:Rle,tcaron:Ple,Tcedil:Ile,tcedil:Dle,Tcy:Fle,tcy:zle,tdot:Hle,telrec:Ble,Tfr:jle,tfr:Wle,there4:qle,therefore:Ule,Therefore:Vle,Theta:Gle,theta:Kle,thetasym:Yle,thetav:Xle,thickapprox:Jle,thicksim:Zle,ThickSpace:Qle,ThinSpace:eae,thinsp:tae,thkap:nae,thksim:rae,THORN:iae,thorn:oae,tilde:sae,Tilde:lae,TildeEqual:aae,TildeFullEqual:cae,TildeTilde:uae,timesbar:fae,timesb:dae,times:hae,timesd:pae,tint:gae,toea:mae,topbot:vae,topcir:yae,top:bae,Topf:wae,topf:xae,topfork:Sae,tosa:_ae,tprime:kae,trade:Tae,TRADE:Cae,triangle:Eae,triangledown:Aae,triangleleft:$ae,trianglelefteq:Nae,triangleq:Mae,triangleright:Lae,trianglerighteq:Oae,tridot:Rae,trie:Pae,triminus:Iae,TripleDot:Dae,triplus:Fae,trisb:zae,tritime:Hae,trpezium:Bae,Tscr:jae,tscr:Wae,TScy:qae,tscy:Uae,TSHcy:Vae,tshcy:Gae,Tstrok:Kae,tstrok:Yae,twixt:Xae,twoheadleftarrow:Jae,twoheadrightarrow:Zae,Uacute:Qae,uacute:ece,uarr:tce,Uarr:nce,uArr:rce,Uarrocir:ice,Ubrcy:oce,ubrcy:sce,Ubreve:lce,ubreve:ace,Ucirc:cce,ucirc:uce,Ucy:fce,ucy:dce,udarr:hce,Udblac:pce,udblac:gce,udhar:mce,ufisht:vce,Ufr:yce,ufr:bce,Ugrave:wce,ugrave:xce,uHar:Sce,uharl:_ce,uharr:kce,uhblk:Tce,ulcorn:Cce,ulcorner:Ece,ulcrop:Ace,ultri:$ce,Umacr:Nce,umacr:Mce,uml:Lce,UnderBar:Oce,UnderBrace:Rce,UnderBracket:Pce,UnderParenthesis:Ice,Union:Dce,UnionPlus:Fce,Uogon:zce,uogon:Hce,Uopf:Bce,uopf:jce,UpArrowBar:Wce,uparrow:qce,UpArrow:Uce,Uparrow:Vce,UpArrowDownArrow:Gce,updownarrow:Kce,UpDownArrow:Yce,Updownarrow:Xce,UpEquilibrium:Jce,upharpoonleft:Zce,upharpoonright:Qce,uplus:eue,UpperLeftArrow:tue,UpperRightArrow:nue,upsi:rue,Upsi:iue,upsih:oue,Upsilon:sue,upsilon:lue,UpTeeArrow:aue,UpTee:cue,upuparrows:uue,urcorn:fue,urcorner:due,urcrop:hue,Uring:pue,uring:gue,urtri:mue,Uscr:vue,uscr:yue,utdot:bue,Utilde:wue,utilde:xue,utri:Sue,utrif:_ue,uuarr:kue,Uuml:Tue,uuml:Cue,uwangle:Eue,vangrt:Aue,varepsilon:$ue,varkappa:Nue,varnothing:Mue,varphi:Lue,varpi:Oue,varpropto:Rue,varr:Pue,vArr:Iue,varrho:Due,varsigma:Fue,varsubsetneq:zue,varsubsetneqq:Hue,varsupsetneq:Bue,varsupsetneqq:jue,vartheta:Wue,vartriangleleft:que,vartriangleright:Uue,vBar:Vue,Vbar:Gue,vBarv:Kue,Vcy:Yue,vcy:Xue,vdash:Jue,vDash:Zue,Vdash:Que,VDash:efe,Vdashl:tfe,veebar:nfe,vee:rfe,Vee:ife,veeeq:ofe,vellip:sfe,verbar:lfe,Verbar:afe,vert:cfe,Vert:ufe,VerticalBar:ffe,VerticalLine:dfe,VerticalSeparator:hfe,VerticalTilde:pfe,VeryThinSpace:gfe,Vfr:mfe,vfr:vfe,vltri:yfe,vnsub:bfe,vnsup:wfe,Vopf:xfe,vopf:Sfe,vprop:_fe,vrtri:kfe,Vscr:Tfe,vscr:Cfe,vsubnE:Efe,vsubne:Afe,vsupnE:$fe,vsupne:Nfe,Vvdash:Mfe,vzigzag:Lfe,Wcirc:Ofe,wcirc:Rfe,wedbar:Pfe,wedge:Ife,Wedge:Dfe,wedgeq:Ffe,weierp:zfe,Wfr:Hfe,wfr:Bfe,Wopf:jfe,wopf:Wfe,wp:qfe,wr:Ufe,wreath:Vfe,Wscr:Gfe,wscr:Kfe,xcap:Yfe,xcirc:Xfe,xcup:Jfe,xdtri:Zfe,Xfr:Qfe,xfr:ede,xharr:tde,xhArr:nde,Xi:rde,xi:ide,xlarr:ode,xlArr:sde,xmap:lde,xnis:ade,xodot:cde,Xopf:ude,xopf:fde,xoplus:dde,xotime:hde,xrarr:pde,xrArr:gde,Xscr:mde,xscr:vde,xsqcup:yde,xuplus:bde,xutri:wde,xvee:xde,xwedge:Sde,Yacute:_de,yacute:kde,YAcy:Tde,yacy:Cde,Ycirc:Ede,ycirc:Ade,Ycy:$de,ycy:Nde,yen:Mde,Yfr:Lde,yfr:Ode,YIcy:Rde,yicy:Pde,Yopf:Ide,yopf:Dde,Yscr:Fde,yscr:zde,YUcy:Hde,yucy:Bde,yuml:jde,Yuml:Wde,Zacute:qde,zacute:Ude,Zcaron:Vde,zcaron:Gde,Zcy:Kde,zcy:Yde,Zdot:Xde,zdot:Jde,zeetrf:Zde,ZeroWidthSpace:Qde,Zeta:ehe,zeta:the,zfr:nhe,Zfr:rhe,ZHcy:ihe,zhcy:ohe,zigrarr:she,zopf:lhe,Zopf:ahe,Zscr:che,zscr:uhe,zwj:fhe,zwnj:dhe},hhe="Á",phe="á",ghe="Â",mhe="â",vhe="´",yhe="Æ",bhe="æ",whe="À",xhe="à",She="&",_he="&",khe="Å",The="å",Che="Ã",Ehe="ã",Ahe="Ä",$he="ä",Nhe="¦",Mhe="Ç",Lhe="ç",Ohe="¸",Rhe="¢",Phe="©",Ihe="©",Dhe="¤",Fhe="°",zhe="÷",Hhe="É",Bhe="é",jhe="Ê",Whe="ê",qhe="È",Uhe="è",Vhe="Ð",Ghe="ð",Khe="Ë",Yhe="ë",Xhe="½",Jhe="¼",Zhe="¾",Qhe=">",epe=">",tpe="Í",npe="í",rpe="Î",ipe="î",ope="¡",spe="Ì",lpe="ì",ape="¿",cpe="Ï",upe="ï",fpe="«",dpe="<",hpe="<",ppe="¯",gpe="µ",mpe="·",vpe=" ",ype="¬",bpe="Ñ",wpe="ñ",xpe="Ó",Spe="ó",_pe="Ô",kpe="ô",Tpe="Ò",Cpe="ò",Epe="ª",Ape="º",$pe="Ø",Npe="ø",Mpe="Õ",Lpe="õ",Ope="Ö",Rpe="ö",Ppe="¶",Ipe="±",Dpe="£",Fpe='"',zpe='"',Hpe="»",Bpe="®",jpe="®",Wpe="§",qpe="­",Upe="¹",Vpe="²",Gpe="³",Kpe="ß",Ype="Þ",Xpe="þ",Jpe="×",Zpe="Ú",Qpe="ú",ege="Û",tge="û",nge="Ù",rge="ù",ige="¨",oge="Ü",sge="ü",lge="Ý",age="ý",cge="¥",uge="ÿ",fge={Aacute:hhe,aacute:phe,Acirc:ghe,acirc:mhe,acute:vhe,AElig:yhe,aelig:bhe,Agrave:whe,agrave:xhe,amp:She,AMP:_he,Aring:khe,aring:The,Atilde:Che,atilde:Ehe,Auml:Ahe,auml:$he,brvbar:Nhe,Ccedil:Mhe,ccedil:Lhe,cedil:Ohe,cent:Rhe,copy:Phe,COPY:Ihe,curren:Dhe,deg:Fhe,divide:zhe,Eacute:Hhe,eacute:Bhe,Ecirc:jhe,ecirc:Whe,Egrave:qhe,egrave:Uhe,ETH:Vhe,eth:Ghe,Euml:Khe,euml:Yhe,frac12:Xhe,frac14:Jhe,frac34:Zhe,gt:Qhe,GT:epe,Iacute:tpe,iacute:npe,Icirc:rpe,icirc:ipe,iexcl:ope,Igrave:spe,igrave:lpe,iquest:ape,Iuml:cpe,iuml:upe,laquo:fpe,lt:dpe,LT:hpe,macr:ppe,micro:gpe,middot:mpe,nbsp:vpe,not:ype,Ntilde:bpe,ntilde:wpe,Oacute:xpe,oacute:Spe,Ocirc:_pe,ocirc:kpe,Ograve:Tpe,ograve:Cpe,ordf:Epe,ordm:Ape,Oslash:$pe,oslash:Npe,Otilde:Mpe,otilde:Lpe,Ouml:Ope,ouml:Rpe,para:Ppe,plusmn:Ipe,pound:Dpe,quot:Fpe,QUOT:zpe,raquo:Hpe,reg:Bpe,REG:jpe,sect:Wpe,shy:qpe,sup1:Upe,sup2:Vpe,sup3:Gpe,szlig:Kpe,THORN:Ype,thorn:Xpe,times:Jpe,Uacute:Zpe,uacute:Qpe,Ucirc:ege,ucirc:tge,Ugrave:nge,ugrave:rge,uml:ige,Uuml:oge,uuml:sge,Yacute:lge,yacute:age,yen:cge,yuml:uge},dge="&",hge="'",pge=">",gge="<",mge='"',E_={amp:dge,apos:hge,gt:pge,lt:gge,quot:mge};var Qs={};const vge={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Lb;function yge(){if(Lb)return Qs;Lb=1;var e=Qs&&Qs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Qs,"__esModule",{value:!0});var t=e(vge),n=String.fromCodePoint||function(o){var l="";return o>65535&&(o-=65536,l+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),l+=String.fromCharCode(o),l};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return Qs.default=i,Qs}var Ob;function Rb(){if(Ob)return Ir;Ob=1;var e=Ir&&Ir.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.decodeHTML=Ir.decodeHTMLStrict=Ir.decodeXML=void 0;var t=e(C_),n=e(fge),i=e(E_),o=e(yge()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ir.decodeXML=u(i.default),Ir.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Ir.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),$=h(t.default);function _(C){return C.substr(-1)!==";"&&(C+=";"),$(C)}return function(C){return String(C).replace(w,_)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?o.default(parseInt(v.substr(3),16)):o.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Ir}var Pn={},Pb;function Ib(){if(Pb)return Pn;Pb=1;var e=Pn&&Pn.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.escapeUTF8=Pn.escape=Pn.encodeNonAsciiHTML=Pn.encodeHTML=Pn.encodeXML=void 0;var t=e(E_),n=f(t.default),i=h(n);Pn.encodeXML=C(n);var o=e(C_),l=f(o.default),u=h(l);Pn.encodeHTML=y(l,u),Pn.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(L,D){return L[E[D]]="&"+D+";",L},{})}function h(E){for(var L=[],D=[],N=0,I=Object.keys(E);N<I.length;N++){var q=I[N];q.length===1?L.push("\\"+q):D.push(q)}L.sort();for(var X=0;X<L.length-1;X++){for(var ie=X;ie<L.length-1&&L[ie].charCodeAt(1)+1===L[ie+1].charCodeAt(1);)ie+=1;var J=1+ie-X;J<3||L.splice(X,J,L[X]+"-"+L[ie])}return D.unshift("["+L.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,L){return function(D){return D.replace(L,function(N){return E[N]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function $(E){return E.replace(w,v)}Pn.escape=$;function _(E){return E.replace(i,v)}Pn.escapeUTF8=_;function C(E){return function(L){return L.replace(w,function(D){return E[D]||v(D)})}}return Pn}var Db;function bge(){return Db||(Db=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Rb(),n=Ib();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=o;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=Ib();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=Rb();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})})(Hh)),Hh}var Bh,Fb;function wge(){if(Fb)return Bh;Fb=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var k=0;k<O.length;k++){var S=O[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function n(P,O,k){return O&&t(P.prototype,O),P}function i(P,O){var k=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!k){if(Array.isArray(P)||(k=o(P))||O){k&&(P=k);var S=0,R=function(){};return{s:R,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Be){throw Be},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,ve;return{s:function(){k=k.call(P)},n:function(){var Be=k.next();return B=Be.done,Be},e:function(Be){ae=!0,ve=Be},f:function(){try{!B&&k.return!=null&&k.return()}finally{if(ae)throw ve}}}}function o(P,O){if(P){if(typeof P=="string")return l(P,O);var k=Object.prototype.toString.call(P).slice(8,-1);if(k==="Object"&&P.constructor&&(k=P.constructor.name),k==="Map"||k==="Set")return Array.from(P);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return l(P,O)}}function l(P,O){(O==null||O>P.length)&&(O=P.length);for(var k=0,S=new Array(O);k<O;k++)S[k]=P[k];return S}var u=bge(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return C(0,5).forEach(function(O){C(0,5).forEach(function(k){C(0,5).forEach(function(S){return p(O,k,S,P)})})}),C(0,23).forEach(function(O){var k=O+232,S=g(O*10+8);P[k]="#"+S+S+S}),P}function p(P,O,k,S){var R=16+P*36+O*6+k,B=P>0?P*40+55:0,ae=O>0?O*40+55:0,ve=k>0?k*40+55:0;S[R]=v([B,ae,ve])}function g(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function v(P){var O=[],k=i(P),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;O.push(g(R))}}catch(B){k.e(B)}finally{k.f()}return"#"+O.join("")}function y(P,O,k,S){var R;return O==="text"?R=D(k,S):O==="display"?R=$(P,k,S):O==="xterm256Foreground"?R=q(P,S.colors[k]):O==="xterm256Background"?R=X(P,S.colors[k]):O==="rgb"&&(R=w(P,k)),R}function w(P,O){O=O.substring(2).slice(0,-1);var k=+O.substr(0,2),S=O.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(P,(k===38?"color:#":"background-color:#")+R)}function $(P,O,k){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&_(P)},1:function(){return N(P,"b")},3:function(){return N(P,"i")},4:function(){return N(P,"u")},8:function(){return I(P,"display:none")},9:function(){return N(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ie(P,"i")},24:function(){return ie(P,"u")},39:function(){return q(P,k.fg)},49:function(){return X(P,k.bg)},53:function(){return I(P,"text-decoration:overline")}},R;return S[O]?R=S[O]():4<O&&O<7?R=N(P,"blink"):29<O&&O<38?R=q(P,k.colors[O-30]):39<O&&O<48?R=X(P,k.colors[O-40]):89<O&&O<98?R=q(P,k.colors[8+(O-90)]):99<O&&O<108&&(R=X(P,k.colors[8+(O-100)])),R}function _(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(k){return"</"+k+">"}).join("")}function C(P,O){for(var k=[],S=P;S<=O;S++)k.push(S);return k}function E(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function L(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function D(P,O){return O.escapeXML?u.encodeXML(P):P}function N(P,O,k){return k||(k=""),P.push(O),"<".concat(O).concat(k?' style="'.concat(k,'"'):"",">")}function I(P,O){return N(P,"span",O)}function q(P,O){return N(P,"span","color:"+O)}function X(P,O){return N(P,"span","background-color:"+O)}function ie(P,O){var k;if(P.slice(-1)[0]===O&&(k=P.pop()),k)return"</"+O+">"}function J(P,O,k){var S=!1,R=3;function B(){return""}function ae(j,ee){return k("xterm256Foreground",ee),""}function ve(j,ee){return k("xterm256Background",ee),""}function _e(j){return O.newline?k("display",-1):k("text",j),""}function Be(j,ee){S=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var de=i(ee),he;try{for(de.s();!(he=de.n()).done;){var me=he.value;k("display",me)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ee(j){return k("text",j),""}function Ge(j){return k("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ge},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function He(j,ee){ee>R&&S||(S=!1,P=P.replace(j.pattern,j.sub))}var Re=[],z=P,Z=z.length;e:for(;Z>0;){for(var re=0,le=0,ce=Ue.length;le<ce;re=++le){var F=Ue[re];if(He(F,re),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;Re.push(0),Z=P.length}return Re}function U(P,O,k){return O!=="text"&&(P=P.filter(E(L(k))),P.push({token:O,data:k,category:L(k)})),P}var K=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},f.colors,O.colors)),this.options=Object.assign({},f,O),this.stack=[],this.stickyStack=[]}return n(P,[{key:"toHtml",value:function(k){var S=this;k=typeof k=="string"?[k]:k;var R=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=y(R,ve.token,ve.data,B);_e&&ae.push(_e)}),J(k.join(""),B,function(ve,_e){var Be=y(R,ve,_e,B);Be&&ae.push(Be),B.stream&&(S.stickyStack=U(S.stickyStack,ve,_e))}),R.length&&ae.push(_(R)),ae.join("")}}]),P})();return Bh=K,Bh}var xge=wge();const Sge=Jg(xge);function Wa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _ge(e,t){return t&&e.endsWith(t)}async function Zg(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Qg(e){return new Sge({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function kge(e){return e===null||typeof e!="function"&&typeof e!="object"}function A_(e){let t=e;if(kge(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:"",stacks:[]}}return t.stacks=qO(t.stack||"",{ignoreStackEntries:[]}),t}function Tge(e,t){let n="";return t.message?.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(Wa(t.message))}`),t.stack?.includes("\x1B")&&(n.length>0?n+=e.toHtml(Wa(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(Wa(t.stack))}`),n.length>0?n:null}function $_(e,t){const n=Qg(e);return t.map(i=>{const o=i.result;if(!o||o.htmlError)return i;const l=o.errors?.map(u=>Tge(n,u)).filter(u=>u!=null).join("<br><br>");return l?.length&&(o.htmlError=l),i})}const Nc=dM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),Io=ks(Nc,"file"),yn=ks(Nc,"view"),N_=ks(Nc,"line"),M_=ks(Nc,"column"),Fi=ks(Nc,"test");var zb={exports:{}},Hb;function em(){return Hb||(Hb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("javascript",function(i,o){var l=i.indentUnit,u=o.statementIndent,f=o.jsonld,h=o.json||f,p=o.trackScope!==!1,g=o.typescript,v=o.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function M(tn){return{type:tn,style:"keyword"}}var V=M("keyword a"),ye=M("keyword b"),ke=M("keyword c"),fe=M("keyword d"),Ie=M("operator"),gt={type:"atom",style:"atom"};return{if:M("if"),while:V,with:V,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:M("new"),delete:ke,void:ke,throw:ke,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Ie,typeof:Ie,instanceof:Ie,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:M("this"),class:M("class"),super:M("atom"),yield:ke,export:M("export"),import:M("import"),extends:ke,await:ke}})(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(M){for(var V=!1,ye,ke=!1;(ye=M.next())!=null;){if(!V){if(ye=="/"&&!ke)return;ye=="["?ke=!0:ke&&ye=="]"&&(ke=!1)}V=!V&&ye=="\\"}}var C,E;function L(M,V,ye){return C=M,E=ye,V}function D(M,V){var ye=M.next();if(ye=='"'||ye=="'")return V.tokenize=N(ye),V.tokenize(M,V);if(ye=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(ye=="."&&M.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return L(ye);if(ye=="="&&M.eat(">"))return L("=>","operator");if(ye=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(ye))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(ye=="/")return M.eat("*")?(V.tokenize=I,I(M,V)):M.eat("/")?(M.skipToEnd(),L("comment","comment")):or(M,V,1)?(_(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(M.eat("="),L("operator","operator",M.current()));if(ye=="`")return V.tokenize=q,q(M,V);if(ye=="#"&&M.peek()=="!")return M.skipToEnd(),L("meta","meta");if(ye=="#"&&M.eatWhile(v))return L("variable","property");if(ye=="<"&&M.match("!--")||ye=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),L("comment","comment");if(w.test(ye))return(ye!=">"||!V.lexical||V.lexical.type!=">")&&(M.eat("=")?(ye=="!"||ye=="=")&&M.eat("="):/[<>*+\-|&?]/.test(ye)&&(M.eat(ye),ye==">"&&M.eat(ye))),ye=="?"&&M.eat(".")?L("."):L("operator","operator",M.current());if(v.test(ye)){M.eatWhile(v);var ke=M.current();if(V.lastType!="."){if(y.propertyIsEnumerable(ke)){var fe=y[ke];return L(fe.type,fe.style,ke)}if(ke=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ke)}return L("variable","variable",ke)}}function N(M){return function(V,ye){var ke=!1,fe;if(f&&V.peek()=="@"&&V.match($))return ye.tokenize=D,L("jsonld-keyword","meta");for(;(fe=V.next())!=null&&!(fe==M&&!ke);)ke=!ke&&fe=="\\";return ke||(ye.tokenize=D),L("string","string")}}function I(M,V){for(var ye=!1,ke;ke=M.next();){if(ke=="/"&&ye){V.tokenize=D;break}ye=ke=="*"}return L("comment","comment")}function q(M,V){for(var ye=!1,ke;(ke=M.next())!=null;){if(!ye&&(ke=="`"||ke=="$"&&M.eat("{"))){V.tokenize=D;break}ye=!ye&&ke=="\\"}return L("quasi","string-2",M.current())}var X="([{}])";function ie(M,V){V.fatArrowAt&&(V.fatArrowAt=null);var ye=M.string.indexOf("=>",M.start);if(!(ye<0)){if(g){var ke=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,ye));ke&&(ye=ke.index)}for(var fe=0,Ie=!1,gt=ye-1;gt>=0;--gt){var tn=M.string.charAt(gt),$n=X.indexOf(tn);if($n>=0&&$n<3){if(!fe){++gt;break}if(--fe==0){tn=="("&&(Ie=!0);break}}else if($n>=3&&$n<6)++fe;else if(v.test(tn))Ie=!0;else if(/["'\/`]/.test(tn))for(;;--gt){if(gt==0)return;var Ls=M.string.charAt(gt-1);if(Ls==tn&&M.string.charAt(gt-2)!="\\"){gt--;break}}else if(Ie&&!fe){++gt;break}}Ie&&!fe&&(V.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function U(M,V,ye,ke,fe,Ie){this.indented=M,this.column=V,this.type=ye,this.prev=fe,this.info=Ie,ke!=null&&(this.align=ke)}function K(M,V){if(!p)return!1;for(var ye=M.localVars;ye;ye=ye.next)if(ye.name==V)return!0;for(var ke=M.context;ke;ke=ke.prev)for(var ye=ke.vars;ye;ye=ye.next)if(ye.name==V)return!0}function P(M,V,ye,ke,fe){var Ie=M.cc;for(O.state=M,O.stream=fe,O.marked=null,O.cc=Ie,O.style=V,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var gt=Ie.length?Ie.pop():h?ce:re;if(gt(ye,ke)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:ye=="variable"&&K(M,ke)?"variable-2":V}}}var O={state:null,marked:null,cc:null};function k(){for(var M=arguments.length-1;M>=0;M--)O.cc.push(arguments[M])}function S(){return k.apply(null,arguments),!0}function R(M,V){for(var ye=V;ye;ye=ye.next)if(ye.name==M)return!0;return!1}function B(M){var V=O.state;if(O.marked="def",!!p){if(V.context){if(V.lexical.info=="var"&&V.context&&V.context.block){var ye=ae(M,V.context);if(ye!=null){V.context=ye;return}}else if(!R(M,V.localVars)){V.localVars=new Be(M,V.localVars);return}}o.globalVars&&!R(M,V.globalVars)&&(V.globalVars=new Be(M,V.globalVars))}}function ae(M,V){if(V)if(V.block){var ye=ae(M,V.prev);return ye?ye==V.prev?V:new _e(ye,V.vars,!0):null}else return R(M,V.vars)?V:new _e(V.prev,new Be(M,V.vars),!1);else return null}function ve(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function _e(M,V,ye){this.prev=M,this.vars=V,this.block=ye}function Be(M,V){this.name=M,this.next=V}var Ee=new Be("this",new Be("arguments",null));function Ge(){O.state.context=new _e(O.state.context,O.state.localVars,!1),O.state.localVars=Ee}function Ue(){O.state.context=new _e(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ge.lex=Ue.lex=!0;function He(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}He.lex=!0;function Re(M,V){var ye=function(){var ke=O.state,fe=ke.indented;if(ke.lexical.type=="stat")fe=ke.lexical.indented;else for(var Ie=ke.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;ke.lexical=new U(fe,O.stream.column(),M,null,ke.lexical,V)};return ye.lex=!0,ye}function z(){var M=O.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}z.lex=!0;function Z(M){function V(ye){return ye==M?S():M==";"||ye=="}"||ye==")"||ye=="]"?k():S(V)}return V}function re(M,V){return M=="var"?S(Re("vardef",V),Ts,Z(";"),z):M=="keyword a"?S(Re("form"),j,re,z):M=="keyword b"?S(Re("form"),re,z):M=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(Re("stat"),de,Z(";"),z):M=="debugger"?S(Z(";")):M=="{"?S(Re("}"),Ue,Gt,z,He):M==";"?S():M=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==z&&O.state.cc.pop()(),S(Re("form"),j,re,z,Cs)):M=="function"?S(br):M=="for"?S(Re("form"),Ue,Pc,re,He,z):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form",M=="class"?M:V),Es,z)):M=="variable"?g&&V=="declare"?(O.marked="keyword",S(re)):g&&(V=="module"||V=="enum"||V=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",V=="enum"?S(qe):V=="type"?S(Ic,Z("operator"),at,Z(";")):S(Re("form"),An,Z("{"),Re("}"),Gt,z,z)):g&&V=="namespace"?(O.marked="keyword",S(Re("form"),ce,re,z)):g&&V=="abstract"?(O.marked="keyword",S(re)):S(Re("stat"),Pe):M=="switch"?S(Re("form"),j,Z("{"),Re("}","switch"),Ue,Gt,z,z,He):M=="case"?S(ce,Z(":")):M=="default"?S(Z(":")):M=="catch"?S(Re("form"),Ge,le,re,z,He):M=="export"?S(Re("stat"),As,z):M=="import"?S(Re("stat"),eo,z):M=="async"?S(re):V=="@"?S(ce,re):k(Re("stat"),ce,Z(";"),z)}function le(M){if(M=="(")return S($r,Z(")"))}function ce(M,V){return ee(M,V,!1)}function F(M,V){return ee(M,V,!0)}function j(M){return M!="("?k():S(Re(")"),de,Z(")"),z)}function ee(M,V,ye){if(O.state.fatArrowAt==O.stream.start){var ke=ye?be:xe;if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Z("=>"),ke,He);if(M=="variable")return k(Ge,An,Z("=>"),ke,He)}var fe=ye?me:he;return J.hasOwnProperty(M)?S(fe):M=="function"?S(br,fe):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form"),wd,z)):M=="keyword c"||M=="async"?S(ye?F:ce):M=="("?S(Re(")"),de,Z(")"),z,fe):M=="operator"||M=="spread"?S(ye?F:ce):M=="["?S(Re("]"),Ft,z,fe):M=="{"?en(ct,"}",null,fe):M=="quasi"?k(Ce,fe):M=="new"?S(Q(ye)):S()}function de(M){return M.match(/[;\}\)\],]/)?k():k(ce)}function he(M,V){return M==","?S(de):me(M,V,!1)}function me(M,V,ye){var ke=ye==!1?he:me,fe=ye==!1?ce:F;if(M=="=>")return S(Ge,ye?be:xe,He);if(M=="operator")return/\+\+|--/.test(V)||g&&V=="!"?S(ke):g&&V=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Re(">"),ut(at,">"),z,ke):V=="?"?S(ce,Z(":"),fe):S(fe);if(M=="quasi")return k(Ce,ke);if(M!=";"){if(M=="(")return en(F,")","call",ke);if(M==".")return S(et,ke);if(M=="[")return S(Re("]"),de,Z("]"),z,ke);if(g&&V=="as")return O.marked="keyword",S(at,ke);if(M=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(fe)}}function Ce(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(Ce):S(de,Ae)}function Ae(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(Ce)}function xe(M){return ie(O.stream,O.state),k(M=="{"?re:ce)}function be(M){return ie(O.stream,O.state),k(M=="{"?re:F)}function Q(M){return function(V){return V=="."?S(M?oe:ue):V=="variable"&&g?S(Kn,M?me:he):k(M?F:ce)}}function ue(M,V){if(V=="target")return O.marked="keyword",S(he)}function oe(M,V){if(V=="target")return O.marked="keyword",S(me)}function Pe(M){return M==":"?S(z,re):k(he,Z(";"),z)}function et(M){if(M=="variable")return O.marked="property",S()}function ct(M,V){if(M=="async")return O.marked="property",S(ct);if(M=="variable"||O.style=="keyword"){if(O.marked="property",V=="get"||V=="set")return S(dt);var ye;return g&&O.state.fatArrowAt==O.stream.start&&(ye=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+ye[0].length),S(Ot)}else{if(M=="number"||M=="string")return O.marked=f?"property":O.style+" property",S(Ot);if(M=="jsonld-keyword")return S(Ot);if(g&&ve(V))return O.marked="keyword",S(ct);if(M=="[")return S(ce,Vn,Z("]"),Ot);if(M=="spread")return S(F,Ot);if(V=="*")return O.marked="keyword",S(ct);if(M==":")return k(Ot)}}function dt(M){return M!="variable"?k(Ot):(O.marked="property",S(br))}function Ot(M){if(M==":")return S(F);if(M=="(")return k(br)}function ut(M,V,ye){function ke(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var gt=O.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(tn,$n){return tn==V||$n==V?k():k(M)},ke)}return fe==V||Ie==V?S():ye&&ye.indexOf(";")>-1?k(M):S(Z(V))}return function(fe,Ie){return fe==V||Ie==V?S():k(M,ke)}}function en(M,V,ye){for(var ke=3;ke<arguments.length;ke++)O.cc.push(arguments[ke]);return S(Re(V,ye),ut(M,V),z)}function Gt(M){return M=="}"?S():k(re,Gt)}function Vn(M,V){if(g){if(M==":")return S(at);if(V=="?")return S(Vn)}}function Jr(M,V){if(g&&(M==":"||V=="in"))return S(at)}function Wt(M){if(g&&M==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(ce,Gn,at):S(at)}function Gn(M,V){if(V=="is")return O.marked="keyword",S()}function at(M,V){if(V=="keyof"||V=="typeof"||V=="infer"||V=="readonly")return O.marked="keyword",S(V=="typeof"?F:at);if(M=="variable"||V=="void")return O.marked="type",S(yr);if(V=="|"||V=="&")return S(at);if(M=="string"||M=="number"||M=="atom")return S(yr);if(M=="[")return S(Re("]"),ut(at,"]",","),z,yr);if(M=="{")return S(Re("}"),Xe,z,yr);if(M=="(")return S(ut(Dt,")"),Bo,yr);if(M=="<")return S(ut(at,">"),at);if(M=="quasi")return k(hn,yr)}function Bo(M){if(M=="=>")return S(at)}function Xe(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Xe):k(vi,Xe)}function vi(M,V){if(M=="variable"||O.style=="keyword")return O.marked="property",S(vi);if(V=="?"||M=="number"||M=="string")return S(vi);if(M==":")return S(at);if(M=="[")return S(Z("variable"),Jr,Z("]"),vi);if(M=="(")return k(Qi,vi);if(!M.match(/[;\}\)\],]/))return S()}function hn(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(hn):S(at,It)}function It(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(hn)}function Dt(M,V){return M=="variable"&&O.stream.match(/^\s*[?:]/,!1)||V=="?"?S(Dt):M==":"?S(at):M=="spread"?S(Dt):k(at)}function yr(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr);if(V=="|"||M=="."||V=="&")return S(at);if(M=="[")return S(at,Z("]"),yr);if(V=="extends"||V=="implements")return O.marked="keyword",S(at);if(V=="?")return S(at,Z(":"),at)}function Kn(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr)}function Er(){return k(at,pn)}function pn(M,V){if(V=="=")return S(at)}function Ts(M,V){return V=="enum"?(O.marked="keyword",S(qe)):k(An,Vn,Ar,bd)}function An(M,V){if(g&&ve(V))return O.marked="keyword",S(An);if(M=="variable")return B(V),S();if(M=="spread")return S(An);if(M=="[")return en(jl,"]");if(M=="{")return en(Ji,"}")}function Ji(M,V){return M=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(V),S(Ar)):(M=="variable"&&(O.marked="property"),M=="spread"?S(An):M=="}"?k():M=="["?S(ce,Z("]"),Z(":"),Ji):S(Z(":"),An,Ar))}function jl(){return k(An,Ar)}function Ar(M,V){if(V=="=")return S(F)}function bd(M){if(M==",")return S(Ts)}function Cs(M,V){if(M=="keyword b"&&V=="else")return S(Re("form","else"),re,z)}function Pc(M,V){if(V=="await")return S(Pc);if(M=="(")return S(Re(")"),Wl,z)}function Wl(M){return M=="var"?S(Ts,Zi):M=="variable"?S(Zi):k(Zi)}function Zi(M,V){return M==")"?S():M==";"?S(Zi):V=="in"||V=="of"?(O.marked="keyword",S(ce,Zi)):k(ce,Zi)}function br(M,V){if(V=="*")return O.marked="keyword",S(br);if(M=="variable")return B(V),S(br);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,re,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,br)}function Qi(M,V){if(V=="*")return O.marked="keyword",S(Qi);if(M=="variable")return B(V),S(Qi);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,Qi)}function Ic(M,V){if(M=="keyword"||M=="variable")return O.marked="type",S(Ic);if(V=="<")return S(Re(">"),ut(Er,">"),z)}function $r(M,V){return V=="@"&&S(ce,$r),M=="spread"?S($r):g&&ve(V)?(O.marked="keyword",S($r)):g&&M=="this"?S(Vn,Ar):k(An,Vn,Ar)}function wd(M,V){return M=="variable"?Es(M,V):Nr(M,V)}function Es(M,V){if(M=="variable")return B(V),S(Nr)}function Nr(M,V){if(V=="<")return S(Re(">"),ut(Er,">"),z,Nr);if(V=="extends"||V=="implements"||g&&M==",")return V=="implements"&&(O.marked="keyword"),S(g?at:ce,Nr);if(M=="{")return S(Re("}"),Mr,z)}function Mr(M,V){if(M=="async"||M=="variable"&&(V=="static"||V=="get"||V=="set"||g&&ve(V))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(Mr);if(M=="variable"||O.style=="keyword")return O.marked="property",S(jo,Mr);if(M=="number"||M=="string")return S(jo,Mr);if(M=="[")return S(ce,Vn,Z("]"),jo,Mr);if(V=="*")return O.marked="keyword",S(Mr);if(g&&M=="(")return k(Qi,Mr);if(M==";"||M==",")return S(Mr);if(M=="}")return S();if(V=="@")return S(ce,Mr)}function jo(M,V){if(V=="!"||V=="?")return S(jo);if(M==":")return S(at,Ar);if(V=="=")return S(F);var ye=O.state.lexical.prev,ke=ye&&ye.info=="interface";return k(ke?Qi:br)}function As(M,V){return V=="*"?(O.marked="keyword",S(Ms,Z(";"))):V=="default"?(O.marked="keyword",S(ce,Z(";"))):M=="{"?S(ut($s,"}"),Ms,Z(";")):k(re)}function $s(M,V){if(V=="as")return O.marked="keyword",S(Z("variable"));if(M=="variable")return k(F,$s)}function eo(M){return M=="string"?S():M=="("?k(ce):M=="."?k(he):k(Ns,Zr,Ms)}function Ns(M,V){return M=="{"?en(Ns,"}"):(M=="variable"&&B(V),V=="*"&&(O.marked="keyword"),S(ql))}function Zr(M){if(M==",")return S(Ns,Zr)}function ql(M,V){if(V=="as")return O.marked="keyword",S(Ns)}function Ms(M,V){if(V=="from")return O.marked="keyword",S(ce)}function Ft(M){return M=="]"?S():k(ut(F,"]"))}function qe(){return k(Re("form"),An,Z("{"),Re("}"),ut(yi,"}"),z,z)}function yi(){return k(An,Ar)}function Ul(M,V){return M.lastType=="operator"||M.lastType==","||w.test(V.charAt(0))||/[,.]/.test(V.charAt(0))}function or(M,V,ye){return V.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(V.lastType)||V.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(ye||0)))}return{startState:function(M){var V={tokenize:D,lastType:"sof",cc:[],lexical:new U((M||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new _e(null,null,!1),indented:M||0};return o.globalVars&&typeof o.globalVars=="object"&&(V.globalVars=o.globalVars),V},token:function(M,V){if(M.sol()&&(V.lexical.hasOwnProperty("align")||(V.lexical.align=!1),V.indented=M.indentation(),ie(M,V)),V.tokenize!=I&&M.eatSpace())return null;var ye=V.tokenize(M,V);return C=="comment"?ye:(V.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,P(V,ye,C,E,M))},indent:function(M,V){if(M.tokenize==I||M.tokenize==q)return n.Pass;if(M.tokenize!=D)return 0;var ye=V&&V.charAt(0),ke=M.lexical,fe;if(!/^\s*else\b/.test(V))for(var Ie=M.cc.length-1;Ie>=0;--Ie){var gt=M.cc[Ie];if(gt==z)ke=ke.prev;else if(gt!=Cs&&gt!=He)break}for(;(ke.type=="stat"||ke.type=="form")&&(ye=="}"||(fe=M.cc[M.cc.length-1])&&(fe==he||fe==me)&&!/^[,\.=+\-*:?[\(]/.test(V));)ke=ke.prev;u&&ke.type==")"&&ke.prev.type=="stat"&&(ke=ke.prev);var tn=ke.type,$n=ye==tn;return tn=="vardef"?ke.indented+(M.lastType=="operator"||M.lastType==","?ke.info.length+1:0):tn=="form"&&ye=="{"?ke.indented:tn=="form"?ke.indented+l:tn=="stat"?ke.indented+(Ul(M,V)?u||l:0):ke.info=="switch"&&!$n&&o.doubleIndentSwitch!=!1?ke.indented+(/^(?:case|default)\b/.test(V)?l:2*l):ke.align?ke.column+($n?0:1):ke.indented+($n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:or,skipExpression:function(M){P(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),zb.exports}em();var Bb={exports:{}},jb;function tm(){return jb||(jb=1,(function(e,t){(function(n){n(Ho())})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:o;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(_e){return R.tokenize=_e,_e(S,R)}var ae=S.next();if(ae=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(ae=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function $(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=q,R.tagName=R.tagStart=null;var ae=R.tokenize(S,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=_(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _(S){var R=function(B,ae){for(;!B.eol();)if(B.next()==S){ae.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ae){for(;!B.eol();){if(B.match(R)){ae.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ae;(ae=R.next())!=null;){if(ae=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ae==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function L(S){return S&&S.toLowerCase()}function D(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function N(S){S.context&&(S.context=S.context.prev)}function I(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(L(B))||!h.contextGrabbers[L(B)].hasOwnProperty(L(R))))return;N(S)}}function q(S,R,B){return S=="openTag"?(B.tagStart=R.column(),X):S=="closeTag"?ie:q}function X(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",K):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",K(S,R,B)):(y="error",X)}function ie(S,R,B){if(S=="word"){var ae=R.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(L(B.context.tagName))&&N(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(y="tag",J):(y="tag error",U)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",J(S,R,B)):(y="error",U)}function J(S,R,B){return S!="endTag"?(y="error",J):(N(B),q)}function U(S,R,B){return y="error",J(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ae=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ae))?I(B,ae):(I(B,ae),B.context=new D(B,ae,ve==B.indented)),q}return y="error",K}function P(S,R,B){return S=="equals"?O:(h.allowMissing||(y="error"),K(S,R,B))}function O(S,R,B){return S=="string"?k:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function k(S,R,B){return S=="string"?k:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:q,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ae=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ae&&ae.noIndent)return n.Pass;if(S.tokenize!=$&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=h.contextGrabbers[L(ae.tagName)];if(_e&&_e.hasOwnProperty(L(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Bb.exports}tm();var Wb={exports:{}},qb={exports:{}},Ub;function Cge(){return Ub||(Ub=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("css",function(U,K){var P=K.inline;K.propertyKeywords||(K=n.resolveMode("text/css"));var O=U.indentUnit,k=K.tokenHooks,S=K.documentTypes||{},R=K.mediaTypes||{},B=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ve=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},Be=K.fontProperties||{},Ee=K.counterDescriptors||{},Ge=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,Re=K.lineComment,z=K.supportsAtComponent===!0,Z=U.highlightNonStandardPropertyKeywords!==!1,re,le;function ce(Q,ue){return re=ue,Q}function F(Q,ue){var oe=Q.next();if(k[oe]){var Pe=k[oe](Q,ue);if(Pe!==!1)return Pe}if(oe=="@")return Q.eatWhile(/[\w\\\-]/),ce("def",Q.current());if(oe=="="||(oe=="~"||oe=="|")&&Q.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=j(oe),ue.tokenize(Q,ue);if(oe=="#")return Q.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return Q.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(Q.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(ue.tokenize=ee),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(Q.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(Q){return function(ue,oe){for(var Pe=!1,et;(et=ue.next())!=null;){if(et==Q&&!Pe){Q==")"&&ue.backUp(1);break}Pe=!Pe&&et=="\\"}return(et==Q||!Pe&&Q!=")")&&(oe.tokenize=null),ce("string","string")}}function ee(Q,ue){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(Q,ue,oe){this.type=Q,this.indent=ue,this.prev=oe}function he(Q,ue,oe,Pe){return Q.context=new de(oe,ue.indentation()+(Pe===!1?0:O),Q.context),oe}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,ue,oe){return be[oe.context.type](Q,ue,oe)}function Ae(Q,ue,oe,Pe){for(var et=Pe||1;et>0;et--)oe.context=oe.context.prev;return Ce(Q,ue,oe)}function xe(Q){var ue=Q.current().toLowerCase();Ue.hasOwnProperty(ue)?le="atom":Ge.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(Q,ue,oe){if(Q=="{")return he(oe,ue,"block");if(Q=="}"&&oe.context.prev)return me(oe);if(z&&/@component/i.test(Q))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return oe.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return he(oe,ue,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(Q,ue,oe){if(Q=="word"){var Pe=ue.current().toLowerCase();return ve.hasOwnProperty(Pe)?(le="property","maybeprop"):_e.hasOwnProperty(Pe)?(le=Z?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,ue,oe)},be.maybeprop=function(Q,ue,oe){return Q==":"?he(oe,ue,"prop"):Ce(Q,ue,oe)},be.prop=function(Q,ue,oe){if(Q==";")return me(oe);if(Q=="{"&&He)return he(oe,ue,"propBlock");if(Q=="}"||Q=="{")return Ae(Q,ue,oe);if(Q=="(")return he(oe,ue,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(Q=="word")xe(ue);else if(Q=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(Q,ue,oe){return Q=="}"?me(oe):Q=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(Q,ue,oe){return Q=="{"||Q=="}"?Ae(Q,ue,oe):Q==")"?me(oe):Q=="("?he(oe,ue,"parens"):Q=="interpolation"?he(oe,ue,"interpolation"):(Q=="word"&&xe(ue),"parens")},be.pseudo=function(Q,ue,oe){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",oe.context.type):Ce(Q,ue,oe)},be.documentTypes=function(Q,ue,oe){return Q=="word"&&S.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(Q,ue,oe)},be.atBlock=function(Q,ue,oe){if(Q=="(")return he(oe,ue,"atBlock_parens");if(Q=="}"||Q==";")return Ae(Q,ue,oe);if(Q=="{")return me(oe)&&he(oe,ue,He?"block":"top");if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q=="word"){var Pe=ue.current().toLowerCase();Pe=="only"||Pe=="not"||Pe=="and"||Pe=="or"?le="keyword":R.hasOwnProperty(Pe)?le="attribute":B.hasOwnProperty(Pe)?le="property":ae.hasOwnProperty(Pe)?le="keyword":ve.hasOwnProperty(Pe)?le="property":_e.hasOwnProperty(Pe)?le=Z?"string-2":"property":Ue.hasOwnProperty(Pe)?le="atom":Ge.hasOwnProperty(Pe)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(Q,ue,oe){return Q=="}"?Ae(Q,ue,oe):Q=="{"?me(oe)&&he(oe,ue,He?"block":"top",!1):(Q=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(Q,ue,oe){return Q==")"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe,2):be.atBlock(Q,ue,oe)},be.restricted_atBlock_before=function(Q,ue,oe){return Q=="{"?he(oe,ue,"restricted_atBlock"):Q=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,ue,oe)},be.restricted_atBlock=function(Q,ue,oe){return Q=="}"?(oe.stateArg=null,me(oe)):Q=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ee.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,ue,oe){return Q=="word"?(le="variable","keyframes"):Q=="{"?he(oe,ue,"top"):Ce(Q,ue,oe)},be.at=function(Q,ue,oe){return Q==";"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,ue,oe){return Q=="}"?me(oe):Q=="{"||Q==";"?Ae(Q,ue,oe):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new de(P?"block":"top",Q||0,null)}},token:function(Q,ue){if(!ue.tokenize&&Q.eatSpace())return null;var oe=(ue.tokenize||F)(Q,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=be[ue.state](re,Q,ue)),le},indent:function(Q,ue){var oe=Q.context,Pe=ue&&ue.charAt(0),et=oe.indent;return oe.type=="prop"&&(Pe=="}"||Pe==")")&&(oe=oe.prev),oe.prev&&(Pe=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,et=oe.indent):(Pe==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Pe=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(et=Math.max(0,oe.indent-O))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function i(U){for(var K={},P=0;P<U.length;++P)K[U[P].toLowerCase()]=!0;return K}var o=["domain","regexp","url","url-prefix"],l=i(o),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=i(u),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=i(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=i(g),y=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=i(y),$=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=i($),C=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=i(C),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=i(L),N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=i(N),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],X=i(q),ie=o.concat(u).concat(h).concat(g).concat(y).concat($).concat(N).concat(q);n.registerHelper("hintWords","css",ie);function J(U,K){for(var P=!1,O;(O=U.next())!=null;){if(P&&O=="/"){K.tokenize=null;break}P=O=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:l,mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},":":function(U){return U.match(/^\s*\{/,!1)?[null,null]:!1},$:function(U){return U.match(/^[\w-]+/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(U){return U.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},"@":function(U){return U.eat("{")?[null,"interpolation"]:U.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:f,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,supportsAtComponent:!0,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css",helperType:"gss"})})})()),qb.exports}var Vb;function Ege(){return Vb||(Vb=1,(function(e,t){(function(n){n(Ho(),tm(),em(),Cge())})(function(n){var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function o(v,y,w){var $=v.current(),_=$.search(y);return _>-1?v.backUp($.length-_):$.match(/<\/?$/)&&(v.backUp($.length),v.match(y,!1)||v.match($)),w}var l={};function u(v){var y=l[v];return y||(l[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function f(v,y){var w=v.match(u(y));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,y){return new RegExp((y?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,y){for(var w in v)for(var $=y[w]||(y[w]=[]),_=v[w],C=_.length-1;C>=0;C--)$.unshift(_[C])}function g(v,y){for(var w=0;w<v.length;w++){var $=v[w];if(!$[0]||$[1].test(f(y,$[0])))return $[2]}}n.defineMode("htmlmixed",function(v,y){var w=n.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),$={},_=y&&y.tags,C=y&&y.scriptTypes;if(p(i,$),_&&p(_,$),C)for(var E=C.length-1;E>=0;E--)$.script.unshift(["type",C[E].matches,C[E].mode]);function L(D,N){var I=w.token(D,N.htmlState),q=/\btag\b/.test(I),X;if(q&&!/[<>\s\/]/.test(D.current())&&(X=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&$.hasOwnProperty(X))N.inTag=X+" ";else if(N.inTag&&q&&/>$/.test(D.current())){var ie=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var J=D.current()==">"&&g($[ie[1]],ie[2]),U=n.getMode(v,J),K=h(ie[1],!0),P=h(ie[1],!1);N.token=function(O,k){return O.match(K,!1)?(k.token=L,k.localState=k.localMode=null,null):o(O,P,k.localMode.token(O,k.localState))},N.localMode=U,N.localState=n.startState(U,w.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=D.current(),D.eol()&&(N.inTag+=" "));return I}return{startState:function(){var D=n.startState(w);return{token:L,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var N;return D.localState&&(N=n.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:N,htmlState:n.copyState(w,D.htmlState)}},token:function(D,N){return N.token(D,N)},indent:function(D,N,I){return!D.localMode||/^\s*<\//.test(N)?w.indent(D.htmlState,N,I):D.localMode.indent?D.localMode.indent(D.localState,N,I):n.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||w}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})()),Wb.exports}Ege();var Gb={exports:{}},Kb;function Age(){return Kb||(Kb=1,(function(e,t){(function(n){n(Ho(),tm(),em())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function o(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&o(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var _=f.indent(w,"","");return w.tagName=$,_}function g(w,$){return $.context.mode==f?v(w,$,$.context):y(w,$,$.context)}function v(w,$,_){if(_.depth==2)return w.match(/^.*?\*\//)?_.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute(_.state);var C=p(_.state),E=_.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:_.prev.state.lexical&&(C=_.prev.state.lexical.indented)}else _.depth==1&&(C+=l.indentUnit);return $.context=new i(n.startState(h,C),h,0,$.context),null}if(_.depth==1){if(w.peek()=="<")return f.skipAttribute(_.state),$.context=new i(n.startState(f,p(_.state)),f,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return _.depth=2,g(w,$)}var L=f.token(w,_.state),D=w.current(),N;return/\btag\b/.test(L)?/>$/.test(D)?_.state.context?_.depth=0:$.context=$.context.prev:/^</.test(D)&&(_.depth=1):!L&&(N=D.indexOf("{"))>-1&&w.backUp(D.length-N),L}function y(w,$,_){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,_.state))return $.context=new i(n.startState(f,h.indent(_.state,"","")),f,0,$.context),h.skipExpression(_.state),null;var C=h.token(w,_.state);if(!C&&_.depth!=null){var E=w.current();E=="{"?_.depth++:E=="}"&&--_.depth==0&&($.context=$.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,_){return w.context.mode.indent(w.context.state,$,_)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Gb.exports}Age();var Yb={exports:{}},Xb;function $ge(){return Xb||(Xb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?o(p):i(p)},20)}function u(p){h(p)&&o(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?o(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Yb.exports}$ge();var Jb={exports:{}},Zb;function Nge(){return Zb||(Zb=1,(function(e,t){(function(n){n(Ho())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],$=p.pos;function _(){n.off(document,"mousemove",C),n.off(document,"mouseup",_)}function C(E){if(E.which!=1)return _();p.moveTo($+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",_)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var o=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<o&&(this.size-=o-g,g=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})})()),Jb.exports}Nge();const Fn=Vt();function Mge(e,t,n={}){const i=YP.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),yt(t,l=>{if(l!==i.getValue()){o=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),_c(()=>{Fn.value=void 0}),Vf(i)}async function L_(e){dc({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Lge(e,t){dc({file:e,column:t.column-1,line:t.line,view:"editor",test:Fi.value})}function Oge(e,t){if(!t)return;const{line:n,column:i,file:o}=t;if(e.file.filepath!==o)return Zg(o,n,i);dc({file:e.file.id,column:i-1,line:n,view:"editor",test:Fi.value})}const Tr=Ke(),vl=Ke(!0),Do=Ke(!1),Ef=Ke(!0),O_=Se(()=>pt.value?.coverage),Pp=Se(()=>O_.value?.enabled),$a=Se(()=>Pp.value&&!!O_.value?.htmlDir),yl=Cc("vitest-ui_splitpanes-mainSizes",[33,67]),ms=Cc("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?lr.value[0]/window.outerWidth*100:33,67]),Bi=Cc("vitest-ui_details-panel-visible",!0),Tn=Ke("right");At(()=>{yt(pt,()=>{pt.value?.browser?.detailsPanelPosition&&(Tn.value=pt.value.browser.detailsPanelPosition)})});function Rge(){setTimeout(()=>{Bi.value=!1},0)}function Pge(){Bi.value=!0}const fn=dr({navigation:yl.value[0],details:{size:yl.value[1],browser:ms.value[0],main:ms.value[1]}});yt(dd,e=>{Ef.value=e==="running"},{immediate:!0});function Ige(){const e=Io.value;if(e&&e.length>0){const t=Cr(e);t?(Tr.value=t,vl.value=!1,Do.value=!1):qN(()=>ft.state.getFiles(),()=>{Tr.value=Cr(e),vl.value=!1,Do.value=!1})}return vl}function Af(e){vl.value=e,Do.value=!1,e&&(Tr.value=void 0,Io.value="")}function dc({file:e,line:t,view:n,test:i,column:o}){Io.value=e,N_.value=t,M_.value=o,yn.value=n,Fi.value=i,Tr.value=Cr(e),Af(!1)}function Dge(e){e.type==="test"?yn.value==="editor"?L_(e):dc({file:e.file.id,line:null,column:null,view:yn.value,test:e.id}):dc({file:e.file.id,test:null,line:null,view:yn.value,column:null})}function Fge(){Do.value=!0,vl.value=!1,Tr.value=void 0,Io.value=""}function zge(){if(gr?.provider==="webdriverio"){const e=window.outerWidth*(fn.details.size/100);return(lr.value[0]+20)/e*100}return 33}function Hge(){fn.navigation=33,fn.details.size=67,yl.value=[33,67]}function R_(){fn.details.main!==0&&(fn.details.browser=zge(),fn.details.main=100-fn.details.browser,ms.value=[fn.details.browser,fn.details.main])}function Bge(){Tn.value=Tn.value==="right"?"bottom":"right";const e=Tn.value==="bottom"?33:50;ms.value=[e,100-e],fn.details.browser=e,fn.details.main=100-e}const jge={setCurrentFileId(e){Io.value=e,Tr.value=Cr(e),Af(!1)},async setIframeViewport(e,t){lr.value=[e,t],gr?.provider==="webdriverio"&&R_(),await new Promise(n=>requestAnimationFrame(n))}},Wge=location.port,qge=[location.hostname,Wge].filter(Boolean).join(":"),Uge=`${location.protocol==="https:"?"wss:":"ws:"}//${qge}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var ur=Uint8Array,sl=Uint16Array,Vge=Int32Array,P_=new ur([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I_=new ur([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gge=new ur([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D_=function(e,t){for(var n=new sl(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new Vge(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)o[l]=l-n[i]<<5|i;return{b:n,r:o}},F_=D_(P_,2),z_=F_.b,Kge=F_.r;z_[28]=258,Kge[258]=28;var Yge=D_(I_,0),Xge=Yge.b,Ip=new sl(32768);for(var Mt=0;Mt<32768;++Mt){var fo=(Mt&43690)>>1|(Mt&21845)<<1;fo=(fo&52428)>>2|(fo&13107)<<2,fo=(fo&61680)>>4|(fo&3855)<<4,Ip[Mt]=((fo&65280)>>8|(fo&255)<<8)>>1}var qa=(function(e,t,n){for(var i=e.length,o=0,l=new sl(t);o<i;++o)e[o]&&++l[e[o]-1];var u=new sl(t);for(o=1;o<t;++o)u[o]=u[o-1]+l[o-1]<<1;var f;if(n){f=new sl(1<<t);var h=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],v=u[e[o]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Ip[v]>>h]=p}else for(f=new sl(i),o=0;o<i;++o)e[o]&&(f[o]=Ip[u[e[o]-1]++]>>15-e[o]);return f}),Mc=new ur(288);for(var Mt=0;Mt<144;++Mt)Mc[Mt]=8;for(var Mt=144;Mt<256;++Mt)Mc[Mt]=9;for(var Mt=256;Mt<280;++Mt)Mc[Mt]=7;for(var Mt=280;Mt<288;++Mt)Mc[Mt]=8;var H_=new ur(32);for(var Mt=0;Mt<32;++Mt)H_[Mt]=5;var Jge=qa(Mc,9,1),Zge=qa(H_,5,1),jh=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Dr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Wh=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Qge=function(e){return(e+7)/8|0},B_=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new ur(e.subarray(t,n))},eme=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Zn=function(e,t,n){var i=new Error(t||eme[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Zn),!n)throw i;return i},nm=function(e,t,n,i){var o=e.length,l=0;if(!o||t.f&&!t.l)return n||new ur(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new ur(o*3));var p=function(ce){var F=n.length;if(ce>F){var j=new ur(Math.max(F*2,ce));j.set(n),n=j}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,$=t.d,_=t.m,C=t.n,E=o*8;do{if(!w){g=Dr(e,v,1);var L=Dr(e,v+1,3);if(v+=3,L)if(L==1)w=Jge,$=Zge,_=9,C=5;else if(L==2){var q=Dr(e,v,31)+257,X=Dr(e,v+10,15)+4,ie=q+Dr(e,v+5,31)+1;v+=14;for(var J=new ur(ie),U=new ur(19),K=0;K<X;++K)U[Gge[K]]=Dr(e,v+K*3,7);v+=X*3;for(var P=jh(U),O=(1<<P)-1,k=qa(U,P,1),K=0;K<ie;){var S=k[Dr(e,v,O)];v+=S&15;var D=S>>4;if(D<16)J[K++]=D;else{var R=0,B=0;for(D==16?(B=3+Dr(e,v,3),v+=2,R=J[K-1]):D==17?(B=3+Dr(e,v,7),v+=3):D==18&&(B=11+Dr(e,v,127),v+=7);B--;)J[K++]=R}}var ae=J.subarray(0,q),ve=J.subarray(q);_=jh(ae),C=jh(ve),w=qa(ae,_,1),$=qa(ve,C,1)}else Zn(1);else{var D=Qge(v)+4,N=e[D-4]|e[D-3]<<8,I=D+N;if(I>o){h&&Zn(0);break}f&&p(y+N),n.set(e.subarray(D,I),y),t.b=y+=N,t.p=v=I*8,t.f=g;continue}if(v>E){h&&Zn(0);break}}f&&p(y+131072);for(var _e=(1<<_)-1,Be=(1<<C)-1,Ee=v;;Ee=v){var R=w[Wh(e,v)&_e],Ge=R>>4;if(v+=R&15,v>E){h&&Zn(0);break}if(R||Zn(2),Ge<256)n[y++]=Ge;else if(Ge==256){Ee=v,w=null;break}else{var Ue=Ge-254;if(Ge>264){var K=Ge-257,He=P_[K];Ue=Dr(e,v,(1<<He)-1)+z_[K],v+=He}var Re=$[Wh(e,v)&Be],z=Re>>4;Re||Zn(3),v+=Re&15;var ve=Xge[z];if(z>3){var He=I_[z];ve+=Wh(e,v)&(1<<He)-1,v+=He}if(v>E){h&&Zn(0);break}f&&p(y+131072);var Z=y+Ue;if(y<ve){var re=l-ve,le=Math.min(ve,Z);for(re+y<0&&Zn(3);y<le;++y)n[y]=i[re+y]}for(;y<Z;++y)n[y]=n[y-ve]}}t.l=w,t.p=Ee,t.b=y,t.f=g,w&&(g=1,t.m=_,t.d=$,t.n=C)}while(!g);return y!=n.length&&u?B_(n,0,y):n.subarray(0,y)},tme=new ur(0),nme=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Zn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},rme=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},ime=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Zn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Zn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function ome(e,t){return nm(e,{i:2},t,t)}function sme(e,t){var n=nme(e);return n+8>e.length&&Zn(6,"invalid gzip data"),nm(e.subarray(n,-8),{i:2},new ur(rme(e)),t)}function lme(e,t){return nm(e.subarray(ime(e),-4),{i:2},t,t)}function ame(e,t){return e[0]==31&&e[1]==139&&e[2]==8?sme(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?ome(e,t):lme(e,t)}var Dp=typeof TextDecoder<"u"&&new TextDecoder,cme=0;try{Dp.decode(tme,{stream:!0}),cme=1}catch{}var ume=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return{s:t,r:B_(e,n-1)};o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Qb(e,t){var n;if(Dp)return Dp.decode(e);var i=ume(e),o=i.s,n=i.r;return n.length&&Zn(8),o}const ew=()=>{},vn=()=>Promise.resolve();function fme(){const e=dr({state:new p_,waitForConnection:u,reconnect:o,ws:new EventTarget});e.state.filesMap=dr(e.state.filesMap),e.state.idMap=dr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>t.moduleGraph[f]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:vn,getTransformResult:vn,onDone:ew,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async f=>t.sources[f],removeSnapshotFile:vn,onUnhandledError:ew,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=n;const i=Promise.resolve();function o(){l()}async function l(){const f=await fetch(window.METADATA_PATH),h=new Uint8Array(await f.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Qb(ame(h));t=Ap(g)}else t=Ap(Qb(h));const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ft=(function(){return pr?fme():cP(Uge,{reactive:(t,n)=>n==="state"?dr(t):Vt(t),handlers:{onTestAnnotate(t,n){$e.recordTestArtifact(t,{type:"internal:annotation",annotation:n,location:n.location})},onTestArtifactRecord(t,n){$e.recordTestArtifact(t,n)},onTaskUpdate(t,n){$e.resumeRun(t,n),dd.value="running"},onSpecsCollected(t,n){$e.startTime=n||performance.now()},onFinished(t,n,i,o){$e.endRun(o),So.value=(n||[]).map(A_)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),pt=Vt({}),ll=Ke("CONNECTING"),rm=Vt([]),Xt=Se(()=>{const e=Io.value;return e?Cr(e):void 0}),j_=Se(()=>Wg(Xt.value).map(e=>e?.logs||[]).flat()||[]);function Cr(e){const t=ft.state.idMap.get(e);return t||void 0}const dme=Se(()=>ll.value==="OPEN"),qh=Se(()=>ll.value==="CONNECTING");function hme(){return im(ft.state.getFiles())}function W_(e){delete e.result;const t=$e.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ac(e)))for(const n of e.tasks)W_(n)}function pme(e){const t=$e.nodes;e.forEach(n=>{delete n.result,Wg(n).forEach(o=>{if(delete o.result,t.has(o.id)){const l=t.get(o.id);l&&(l.state=void 0,l.mode="run",l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.mode="run",i.duration=void 0,Wn(i)&&(i.collectDuration=void 0))})}function im(e){return pme(e),$e.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function gme(e){return W_(e),$e.startRun(),ft.rpc.rerunTask(e.id)}const gr=window.__vitest_browser_runner__;window.__vitest_ui_api__=jge;yt(()=>ft.ws,e=>{ll.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{ll.value="OPEN",ft.state.filesMap.clear();let[t,n,i,o]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=e_(h,f,u);return p.mode="skip",p})),rm.value=o.map(l=>l.name),$e.loadFiles(t,o),ft.state.collectFiles(t),$e.startRun(),So.value=(i||[]).map(A_),pt.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{ll.value==="CONNECTING"&&(ll.value="CLOSED")},1e3)})},{immediate:!0});const mme=["aria-label","opacity","disabled","hover"],Tt=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(te(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Bt(t.$slots,"default",{},()=>[Y("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,mme))}}),vme={h:"full",flex:"~ col"},yme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},bme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},wme={class:"pointer-events-none","text-sm":""},xme={key:0},Sme={id:"tester-container",relative:""},_me=["data-scale"],tw=20,kme=100,Tme=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return lr.value[0]===g[0]&&lr.value[1]===g[1]}const{width:i,height:o}=rS();async function l(p){lr.value=t[p],gr?.provider==="webdriverio"&&R_()}const u=Se(()=>{if(gr?.provider==="webdriverio"){const[w,$]=lr.value;return{width:w,height:$}}const v=i.value*(fn.details.size/100)*(fn.details.browser/100)-tw,y=o.value-kme;return{width:v,height:y}}),f=Se(()=>{if(gr?.provider==="webdriverio")return 1;const[p,g]=lr.value,{width:v,height:y}=u.value,w=v>p?1:v/p,$=y>g?1:y/g;return Math.min(1,w,$)}),h=Se(()=>{const p=u.value.width,g=lr.value[0];return`${Math.trunc((p+tw-g)/2)}px`});return(p,g)=>{const v=ir("tooltip");return te(),ge("div",vme,[Y("div",yme,[st(Ne(Tt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=y=>W(Hge)())},null,512),[[Co,W(fn).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ne(Tt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=y=>Bi.value=!0)},null,512),[[Co,W(Tn)==="right"&&!W(Bi)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),Y("div",bme,[st(Ne(Tt,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[2]||(g[2]=y=>l("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[3]||(g[3]=y=>l("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[4]||(g[4]=y=>l("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),Y("span",wme,[Qe(Me(W(lr)[0])+"x"+Me(W(lr)[1])+"px ",1),f.value<1?(te(),ge("span",xme,"("+Me((f.value*100).toFixed(0))+"%)",1)):Fe("",!0)])]),Y("div",Sme,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":f.value,style:Pt({"--viewport-width":`${W(lr)[0]}px`,"--viewport-height":`${W(lr)[1]}px`,"--tester-transform":`scale(${f.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,_me)])])}}}),Cme=Xi(Tme,[["__scopeId","data-v-f70ca3ae"]]),hd=tt({__name:"DetailsHeaderButtons",setup(e){function t(n){return Tn.value==="right"?n==="hide"?"rotate-180":"":n==="hide"?"-rotate-90":"rotate-90"}return(n,i)=>{const o=ir("tooltip");return te(),ge(nt,null,[st(Ne(Tt,{title:`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:ot({"rotate-90":W(Tn)==="right"}),onClick:W(Bge)},null,8,["title","class","onClick"]),[[o,`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Bi)?st((te(),We(Tt,{key:0,title:W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("hide")),onClick:W(Rge)},null,8,["title","class","onClick"])),[[o,W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):Fe("",!0),st(Ne(Tt,{title:W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("show")),onClick:W(Pge)},null,8,["title","class","onClick"]),[[Co,!W(Bi)],[o,W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Eme={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ame=tt({__name:"ClosedDetailsHeader",setup(e){return(t,n)=>(te(),ge("div",Eme,[n[0]||(n[0]=Y("div",{"flex-1":""},null,-1)),Ne(hd)]))}}),$me={"text-2xl":""},Nme={"text-lg":"",op50:""},Mme=tt({__name:"ConnectionOverlay",setup(e){return(t,n)=>W(dme)?Fe("",!0):(te(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>W(ft).reconnect&&W(ft).reconnect(...i))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(W(qh)?"animate-pulse":"")},[Y("div",{text:"5xl",class:ot(W(qh)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",$me,Me(W(qh)?"Connecting...":"Disconnected"),1),Y("div",Nme," Check your terminal or start a new server with `"+Me(W(gr)?`vitest --browser=${W(gr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lme={h:"full",flex:"~ col"},Ome={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nw=tt({__name:"Coverage",setup(e){return(t,n)=>(te(),ge("div",Lme,[Y("div",Ome,[n[0]||(n[0]=Y("div",{class:"i-carbon:folder-details-reference"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),n[2]||(n[2]=Y("div",{"flex-auto":"","py-1":"","bg-white":""},[Y("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),Rme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Pme={"font-bold":""},Ime={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Dme=["font-bold"],Fme={text:"red500/70"},zme={key:1,text:"sm","mb-2":""},Hme={"font-bold":""},Bme={key:2,text:"sm","mb-2":""},jme={"font-bold":""},Wme=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>(te(),ge(nt,null,[Y("h4",Rme,[Y("span",Pme,[Qe(Me(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ge(nt,{key:0},[Qe(":")],64)):Fe("",!0)]),Qe(" "+Me(e.error.message),1)]),e.error.stacks?.length?(te(),ge("p",Ime,[(te(!0),ge(nt,null,xn(e.error.stacks,(i,o)=>(te(),ge("span",{key:o,"whitespace-pre":"","font-bold":o===0?"":null},[Qe("❯ "+Me(i.method)+" "+Me(i.file)+":",1),Y("span",Fme,Me(i.line)+":"+Me(i.column),1),n[0]||(n[0]=Y("br",null,null,-1))],8,Dme))),128))])):Fe("",!0),e.error.VITEST_TEST_PATH?(te(),ge("p",zme,[n[1]||(n[1]=Qe(" This error originated in ",-1)),Y("span",Hme,Me(e.error.VITEST_TEST_PATH),1),n[2]||(n[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Fe("",!0),e.error.VITEST_TEST_NAME?(te(),ge("div",Bme,[n[3]||(n[3]=Qe(" The latest test that might've caused the error is ",-1)),Y("span",jme,Me(e.error.VITEST_TEST_NAME),1),n[4]||(n[4]=Qe(". It might mean one of the following:",-1)),n[5]||(n[5]=Y("br",null,null,-1)),n[6]||(n[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Fe("",!0)],64))}}),qme={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Ume={class:"number","data-testid":"num-files"},Vme={class:"number"},Gme={class:"number","text-purple-700":"","dark:text-purple-400":""},Kme={class:"number","text-red-700":"","dark:text-red-500":""},Yme={class:"number","text-red-700":"","dark:text-red-500":""},Xme={class:"number","text-red-700":"","dark:text-red-500":""},Jme={class:"number","data-testid":"run-time"},Zme={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Qme={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},eve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},tve=tt({__name:"TestFilesEntry",setup(e){return(t,n)=>(te(),ge(nt,null,[Y("div",qme,[n[10]||(n[10]=Y("div",{"i-carbon-document":""},null,-1)),n[11]||(n[11]=Y("div",null,"Files",-1)),Y("div",Ume,Me(W($e).summary.files),1),W($e).summary.filesSuccess?(te(),ge(nt,{key:0},[n[0]||(n[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=Y("div",null,"Pass",-1)),Y("div",Vme,Me(W($e).summary.filesSuccess),1)],64)):Fe("",!0),W($e).summary.filesSkipped?(te(),ge(nt,{key:1},[n[2]||(n[2]=Y("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),n[3]||(n[3]=Y("div",null," Skip ",-1)),Y("div",Gme,Me(W($e).summary.filesSkipped),1)],64)):Fe("",!0),W($e).summary.filesFailed?(te(),ge(nt,{key:2},[n[4]||(n[4]=Y("div",{"i-carbon-close":""},null,-1)),n[5]||(n[5]=Y("div",null," Fail ",-1)),Y("div",Kme,Me(W($e).summary.filesFailed),1)],64)):Fe("",!0),W($e).summary.filesSnapshotFailed?(te(),ge(nt,{key:3},[n[6]||(n[6]=Y("div",{"i-carbon-compare":""},null,-1)),n[7]||(n[7]=Y("div",null," Snapshot Fail ",-1)),Y("div",Yme,Me(W($e).summary.filesSnapshotFailed),1)],64)):Fe("",!0),W(So).length?(te(),ge(nt,{key:4},[n[8]||(n[8]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[9]||(n[9]=Y("div",null," Errors ",-1)),Y("div",Xme,Me(W(So).length),1)],64)):Fe("",!0),n[12]||(n[12]=Y("div",{"i-carbon-timer":""},null,-1)),n[13]||(n[13]=Y("div",null,"Time",-1)),Y("div",Jme,Me(W($e).summary.time),1)]),W(So).length?(te(),ge("div",Zme,[n[17]||(n[17]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",Qme,[Qe(" Vitest caught "+Me(W(So).length)+" error"+Me(W(So).length>1?"s":"")+" during the test run.",1),n[14]||(n[14]=Y("br",null,null,-1)),n[15]||(n[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Y("details",eve,[n[16]||(n[16]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ge(nt,null,xn(W(So),(i,o)=>(te(),We(Wme,{key:o,error:i},null,8,["error"]))),128))])])):Fe("",!0)],64))}}),nve=Xi(tve,[["__scopeId","data-v-cfae3633"]]),rve={"p-2":"","text-center":"",flex:""},ive={"text-4xl":"","min-w-2em":""},ove={"text-md":""},is=tt({__name:"DashboardEntry",setup(e){return(t,n)=>(te(),ge("div",rve,[Y("div",null,[Y("div",ive,[Bt(t.$slots,"body")]),Y("div",ove,[Bt(t.$slots,"header")])])]))}}),sve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},lve=tt({__name:"TestsEntry",setup(e){function t(n){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,Ze.slow=!1,n!=="total"&&(Ze[n]=!0)}return(n,i)=>(te(),ge("div",sve,[Ne(is,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:i[0]||(i[0]=o=>t("success"))},{header:je(()=>[...i[5]||(i[5]=[Qe(" Pass ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSuccess),1)]),_:1}),Ne(is,{class:ot({"text-red-700 dark:text-red-500":W($e).summary.testsFailed,op50:!W($e).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:i[1]||(i[1]=o=>t("failed"))},{header:je(()=>[...i[6]||(i[6]=[Qe(" Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsFailed),1)]),_:1},8,["class"]),W($e).summary.testsExpectedFail?(te(),We(is,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:je(()=>[...i[7]||(i[7]=[Qe(" Expected Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsExpectedFail),1)]),_:1})):Fe("",!0),W($e).summary.testsSkipped?(te(),We(is,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:i[2]||(i[2]=o=>t("skipped"))},{header:je(()=>[...i[8]||(i[8]=[Qe(" Skip ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSkipped),1)]),_:1})):Fe("",!0),W($e).summary.testsTodo?(te(),We(is,{key:2,op50:"","data-testid":"todo-entry"},{header:je(()=>[...i[9]||(i[9]=[Qe(" Todo ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsTodo),1)]),_:1})):Fe("",!0),Ne(is,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:i[3]||(i[3]=o=>t("total"))},{header:je(()=>[...i[10]||(i[10]=[Qe(" Total ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.totalTests),1)]),_:1}),W($e).summary.testsSlow?(te(),We(is,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:i[4]||(i[4]=o=>t("slow"))},{header:je(()=>[...i[11]||(i[11]=[Qe(" Slow ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSlow),1)]),_:1})):Fe("",!0)]))}}),ave={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},cve={key:0,class:"text-gray-5"},uve={"aria-labelledby":"tests",m:"y-4 x-2"},fve=tt({__name:"TestsFilesContainer",setup(e){return(t,n)=>(te(),ge("div",ave,[W($e).summary.files===0&&W(ol)?(te(),ge("div",cve," No tests found ")):Fe("",!0),Y("section",uve,[Ne(lve)]),Ne(nve)]))}}),dve={h:"full",flex:"~ col"},hve={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},pve={class:"scrolls","flex-auto":"","py-1":""},rw=tt({__name:"Dashboard",setup(e){return(t,n)=>(te(),ge("div",dve,[Y("div",hve,[n[0]||(n[0]=Y("div",{class:"i-carbon-dashboard"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),Y("div",pve,[Ne(fve)])]))}});var Uh,iw;function gve(){if(iw)return Uh;iw=1;var e=function(L){return t(L)&&!n(L)};function t(E){return!!E&&typeof E=="object"}function n(E){var L=Object.prototype.toString.call(E);return L==="[object RegExp]"||L==="[object Date]"||l(E)}var i=typeof Symbol=="function"&&Symbol.for,o=i?Symbol.for("react.element"):60103;function l(E){return E.$$typeof===o}function u(E){return Array.isArray(E)?[]:{}}function f(E,L){return L.clone!==!1&&L.isMergeableObject(E)?_(u(E),E,L):E}function h(E,L,D){return E.concat(L).map(function(N){return f(N,D)})}function p(E,L){if(!L.customMerge)return _;var D=L.customMerge(E);return typeof D=="function"?D:_}function g(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(L){return Object.propertyIsEnumerable.call(E,L)}):[]}function v(E){return Object.keys(E).concat(g(E))}function y(E,L){try{return L in E}catch{return!1}}function w(E,L){return y(E,L)&&!(Object.hasOwnProperty.call(E,L)&&Object.propertyIsEnumerable.call(E,L))}function $(E,L,D){var N={};return D.isMergeableObject(E)&&v(E).forEach(function(I){N[I]=f(E[I],D)}),v(L).forEach(function(I){w(E,I)||(y(E,I)&&D.isMergeableObject(L[I])?N[I]=p(I,D)(E[I],L[I],D):N[I]=f(L[I],D))}),N}function _(E,L,D){D=D||{},D.arrayMerge=D.arrayMerge||h,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=f;var N=Array.isArray(L),I=Array.isArray(E),q=N===I;return q?N?D.arrayMerge(E,L,D):$(E,L,D):f(L,D)}_.all=function(L,D){if(!Array.isArray(L))throw new Error("first argument should be an array");return L.reduce(function(N,I){return _(N,I,D)},{})};var C=_;return Uh=C,Uh}var mve=gve();const vve=Jg(mve);function yve(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Fp="http://www.w3.org/1999/xhtml";const ow={svg:"http://www.w3.org/2000/svg",xhtml:Fp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ow.hasOwnProperty(t)?{space:ow[t],local:e}:e}function bve(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fp&&t.documentElement.namespaceURI===Fp?t.createElement(e):t.createElementNS(n,e)}}function wve(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function q_(e){var t=pd(e);return(t.local?wve:bve)(t)}function xve(){}function om(e){return e==null?xve:function(){return this.querySelector(e)}}function Sve(e){typeof e!="function"&&(e=om(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new vr(i,this._parents)}function _ve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kve(){return[]}function U_(e){return e==null?kve:function(){return this.querySelectorAll(e)}}function Tve(e){return function(){return _ve(e.apply(this,arguments))}}function Cve(e){typeof e=="function"?e=Tve(e):e=U_(e);for(var t=this._groups,n=t.length,i=[],o=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),o.push(h));return new vr(i,o)}function V_(e){return function(){return this.matches(e)}}function G_(e){return function(t){return t.matches(e)}}var Eve=Array.prototype.find;function Ave(e){return function(){return Eve.call(this.children,e)}}function $ve(){return this.firstElementChild}function Nve(e){return this.select(e==null?$ve:Ave(typeof e=="function"?e:G_(e)))}var Mve=Array.prototype.filter;function Lve(){return Array.from(this.children)}function Ove(e){return function(){return Mve.call(this.children,e)}}function Rve(e){return this.selectAll(e==null?Lve:Ove(typeof e=="function"?e:G_(e)))}function Pve(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new vr(i,this._parents)}function K_(e){return new Array(e.length)}function Ive(){return new vr(this._enter||this._groups.map(K_),this._parents)}function $f(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$f.prototype={constructor:$f,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Dve(e){return function(){return e}}function Fve(e,t,n,i,o,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new $f(e,l[u]);for(;u<h;++u)(f=t[u])&&(o[u]=f)}function zve(e,t,n,i,o,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?o[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new $f(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(o[f]=h)}function Hve(e){return e.__data__}function Bve(e,t){if(!arguments.length)return Array.from(this,Hve);var n=t?zve:Fve,i=this._parents,o=this._groups;typeof e!="function"&&(e=Dve(e));for(var l=o.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=o[p],y=v.length,w=jve(e.call(g,g&&g.__data__,p,i)),$=w.length,_=f[p]=new Array($),C=u[p]=new Array($),E=h[p]=new Array(y);n(g,v,_,C,E,w,t);for(var L=0,D=0,N,I;L<$;++L)if(N=_[L]){for(L>=D&&(D=L+1);!(I=C[D])&&++D<$;);N._next=I||null}}return u=new vr(u,i),u._enter=f,u._exit=h,u}function jve(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Wve(){return new vr(this._exit||this._groups.map(K_),this._parents)}function qve(e,t,n){var i=this.enter(),o=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?l.remove():n(l),i&&o?i.merge(o).order():o}function Uve(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,l=i.length,u=Math.min(o,l),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,$=0;$<v;++$)(w=p[$]||g[$])&&(y[$]=w);for(;h<o;++h)f[h]=n[h];return new vr(f,this._parents)}function Vve(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,l=i[o],u;--o>=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Gve(e){e||(e=Kve);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,o=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=o[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new vr(o,this._parents).order()}function Kve(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Yve(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Xve(){return Array.from(this)}function Jve(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length;o<l;++o){var u=i[o];if(u)return u}return null}function Zve(){let e=0;for(const t of this)++e;return e}function Qve(){return!this.node()}function eye(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],l=0,u=o.length,f;l<u;++l)(f=o[l])&&e.call(f,f.__data__,l,o);return this}function tye(e){return function(){this.removeAttribute(e)}}function nye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rye(e,t){return function(){this.setAttribute(e,t)}}function iye(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function oye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function sye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function lye(e,t){var n=pd(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?nye:tye:typeof t=="function"?n.local?sye:oye:n.local?iye:rye)(n,t))}function Y_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function aye(e){return function(){this.style.removeProperty(e)}}function cye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function uye(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function fye(e,t,n){return arguments.length>1?this.each((t==null?aye:typeof t=="function"?uye:cye)(e,t,n??"")):Ll(this.node(),e)}function Ll(e,t){return e.style.getPropertyValue(t)||Y_(e).getComputedStyle(e,null).getPropertyValue(t)}function dye(e){return function(){delete this[e]}}function hye(e,t){return function(){this[e]=t}}function pye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function gye(e,t){return arguments.length>1?this.each((t==null?dye:typeof t=="function"?pye:hye)(e,t)):this.node()[e]}function X_(e){return e.trim().split(/^|\s+/)}function sm(e){return e.classList||new J_(e)}function J_(e){this._node=e,this._names=X_(e.getAttribute("class")||"")}J_.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Z_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Q_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function mye(e){return function(){Z_(this,e)}}function vye(e){return function(){Q_(this,e)}}function yye(e,t){return function(){(t.apply(this,arguments)?Z_:Q_)(this,e)}}function bye(e,t){var n=X_(e+"");if(arguments.length<2){for(var i=sm(this.node()),o=-1,l=n.length;++o<l;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?yye:t?mye:vye)(n,t))}function wye(){this.textContent=""}function xye(e){return function(){this.textContent=e}}function Sye(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _ye(e){return arguments.length?this.each(e==null?wye:(typeof e=="function"?Sye:xye)(e)):this.node().textContent}function kye(){this.innerHTML=""}function Tye(e){return function(){this.innerHTML=e}}function Cye(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Eye(e){return arguments.length?this.each(e==null?kye:(typeof e=="function"?Cye:Tye)(e)):this.node().innerHTML}function Aye(){this.nextSibling&&this.parentNode.appendChild(this)}function $ye(){return this.each(Aye)}function Nye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mye(){return this.each(Nye)}function Lye(e){var t=typeof e=="function"?e:q_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Oye(){return null}function Rye(e,t){var n=typeof e=="function"?e:q_(e),i=t==null?Oye:typeof t=="function"?t:om(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Pye(){var e=this.parentNode;e&&e.removeChild(this)}function Iye(){return this.each(Pye)}function Dye(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Fye(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zye(e){return this.select(e?Fye:Dye)}function Hye(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Bye(e){return function(t){e.call(this,t,this.__data__)}}function jye(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function Wye(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,l;n<o;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function qye(e,t,n){return function(){var i=this.__on,o,l=Bye(t);if(i){for(var u=0,f=i.length;u<f;++u)if((o=i[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=l,o.options=n),o.value=t;return}}this.addEventListener(e.type,l,n),o={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(o):this.__on=[o]}}function Uye(e,t,n){var i=jye(e+""),o,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(o=0,g=f[h];o<l;++o)if((u=i[o]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?qye:Wye,o=0;o<l;++o)this.each(f(i[o],t,n));return this}function ek(e,t,n){var i=Y_(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Vye(e,t){return function(){return ek(this,e,t)}}function Gye(e,t){return function(){return ek(this,e,t.apply(this,arguments))}}function Kye(e,t){return this.each((typeof t=="function"?Gye:Vye)(e,t))}function*Yye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length,u;o<l;++o)(u=i[o])&&(yield u)}var tk=[null];function vr(e,t){this._groups=e,this._parents=t}function Lc(){return new vr([[document.documentElement]],tk)}function Xye(){return this}vr.prototype=Lc.prototype={constructor:vr,select:Sve,selectAll:Cve,selectChild:Nve,selectChildren:Rve,filter:Pve,data:Bve,enter:Ive,exit:Wve,join:qve,merge:Uve,selection:Xye,order:Vve,sort:Gve,call:Yve,nodes:Xve,node:Jve,size:Zve,empty:Qve,each:eye,attr:lye,style:fye,property:gye,classed:bye,text:_ye,html:Eye,raise:$ye,lower:Mye,append:Lye,insert:Rye,remove:Iye,clone:zye,datum:Hye,on:Uye,dispatch:Kye,[Symbol.iterator]:Yye};function er(e){return typeof e=="string"?new vr([[document.querySelector(e)]],[document.documentElement]):new vr([[e]],tk)}function Jye(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Li(e,t){if(e=Jye(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ol=class Ni{x;y;static of([t,n]){return new Ni(t,n)}constructor(t,n){this.x=t,this.y=n}add(t){return new Ni(this.x+t.x,this.y+t.y)}subtract(t){return new Ni(this.x-t.x,this.y-t.y)}multiply(t){return new Ni(this.x*t,this.y*t)}divide(t){return new Ni(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Ni(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Ni(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Ni(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Zye={value:()=>{}};function Oc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Gu(n)}function Gu(e){this._=e}function Qye(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Gu.prototype=Oc.prototype={constructor:Gu,on:function(e,t){var n=this._,i=Qye(e+"",n),o,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((o=(e=i[l]).type)&&(o=e0e(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(o=(e=i[l]).type)n[o]=sw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=sw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Gu(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,l;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,o=l.length;i<o;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,l=i.length;o<l;++o)i[o].value.apply(t,n)}};function e0e(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function sw(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=Zye,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const t0e={passive:!1},hc={capture:!0,passive:!1};function Vh(e){e.stopImmediatePropagation()}function bl(e){e.preventDefault(),e.stopImmediatePropagation()}function nk(e){var t=e.document.documentElement,n=er(e).on("dragstart.drag",bl,hc);"onselectstart"in t?n.on("selectstart.drag",bl,hc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rk(e,t){var n=e.document.documentElement,i=er(e).on("dragstart.drag",null);t&&(i.on("click.drag",bl,hc),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Au=e=>()=>e;function zp(e,{sourceEvent:t,subject:n,target:i,identifier:o,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function n0e(e){return!e.ctrlKey&&!e.button}function r0e(){return this.parentNode}function i0e(e,t){return t??{x:e.x,y:e.y}}function o0e(){return navigator.maxTouchPoints||"ontouchstart"in this}function s0e(){var e=n0e,t=r0e,n=i0e,i=o0e,o={},l=Oc("start","drag","end"),u=0,f,h,p,g,v=0;function y(N){N.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,t0e).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(N,I){if(!(g||!e.call(this,N,I))){var q=D(this,t.call(this,N,I),N,I,"mouse");q&&(er(N.view).on("mousemove.drag",$,hc).on("mouseup.drag",_,hc),nk(N.view),Vh(N),p=!1,f=N.clientX,h=N.clientY,q("start",N))}}function $(N){if(bl(N),!p){var I=N.clientX-f,q=N.clientY-h;p=I*I+q*q>v}o.mouse("drag",N)}function _(N){er(N.view).on("mousemove.drag mouseup.drag",null),rk(N.view,p),bl(N),o.mouse("end",N)}function C(N,I){if(e.call(this,N,I)){var q=N.changedTouches,X=t.call(this,N,I),ie=q.length,J,U;for(J=0;J<ie;++J)(U=D(this,X,N,I,q[J].identifier,q[J]))&&(Vh(N),U("start",N,q[J]))}}function E(N){var I=N.changedTouches,q=I.length,X,ie;for(X=0;X<q;++X)(ie=o[I[X].identifier])&&(bl(N),ie("drag",N,I[X]))}function L(N){var I=N.changedTouches,q=I.length,X,ie;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),X=0;X<q;++X)(ie=o[I[X].identifier])&&(Vh(N),ie("end",N,I[X]))}function D(N,I,q,X,ie,J){var U=l.copy(),K=Li(J||q,I),P,O,k;if((k=n.call(N,new zp("beforestart",{sourceEvent:q,target:y,identifier:ie,active:u,x:K[0],y:K[1],dx:0,dy:0,dispatch:U}),X))!=null)return P=k.x-K[0]||0,O=k.y-K[1]||0,function S(R,B,ae){var ve=K,_e;switch(R){case"start":o[ie]=S,_e=u++;break;case"end":delete o[ie],--u;case"drag":K=Li(ae||B,I),_e=u;break}U.call(R,N,new zp(R,{sourceEvent:B,subject:k,target:y,identifier:ie,active:_e,x:K[0]+P,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:U}),X)}}return y.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Au(!!N),y):e},y.container=function(N){return arguments.length?(t=typeof N=="function"?N:Au(N),y):t},y.subject=function(N){return arguments.length?(n=typeof N=="function"?N:Au(N),y):n},y.touchable=function(N){return arguments.length?(i=typeof N=="function"?N:Au(!!N),y):i},y.on=function(){var N=l.on.apply(l,arguments);return N===l?y:N},y.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,y):Math.sqrt(v)},y}function lm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ik(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Rc(){}var pc=.7,Nf=1/pc,wl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l0e=/^#([0-9a-f]{3,8})$/,a0e=new RegExp(`^rgb\\(${wl},${wl},${wl}\\)$`),c0e=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),u0e=new RegExp(`^rgba\\(${wl},${wl},${wl},${gc}\\)$`),f0e=new RegExp(`^rgba\\(${di},${di},${di},${gc}\\)$`),d0e=new RegExp(`^hsl\\(${gc},${di},${di}\\)$`),h0e=new RegExp(`^hsla\\(${gc},${di},${di},${gc}\\)$`),lw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lm(Rc,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aw,formatHex:aw,formatHex8:p0e,formatHsl:g0e,formatRgb:cw,toString:cw});function aw(){return this.rgb().formatHex()}function p0e(){return this.rgb().formatHex8()}function g0e(){return ok(this).formatHsl()}function cw(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l0e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uw(t):n===3?new nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$u(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$u(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=a0e.exec(e))?new nr(t[1],t[2],t[3],1):(t=c0e.exec(e))?new nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=u0e.exec(e))?$u(t[1],t[2],t[3],t[4]):(t=f0e.exec(e))?$u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=d0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,1):(t=h0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,t[4]):lw.hasOwnProperty(e)?uw(lw[e]):e==="transparent"?new nr(NaN,NaN,NaN,0):null}function uw(e){return new nr(e>>16&255,e>>8&255,e&255,1)}function $u(e,t,n,i){return i<=0&&(e=t=n=NaN),new nr(e,t,n,i)}function m0e(e){return e instanceof Rc||(e=mc(e)),e?(e=e.rgb(),new nr(e.r,e.g,e.b,e.opacity)):new nr}function Hp(e,t,n,i){return arguments.length===1?m0e(e):new nr(e,t,n,i??1)}function nr(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}lm(nr,Hp,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nr(vs(this.r),vs(this.g),vs(this.b),Mf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fw,formatHex:fw,formatHex8:v0e,formatRgb:dw,toString:dw}));function fw(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}`}function v0e(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}${fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function dw(){const e=Mf(this.opacity);return`${e===1?"rgb(":"rgba("}${vs(this.r)}, ${vs(this.g)}, ${vs(this.b)}${e===1?")":`, ${e})`}`}function Mf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fs(e){return e=vs(e),(e<16?"0":"")+e.toString(16)}function hw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Br(e,t,n,i)}function ok(e){if(e instanceof Br)return new Br(e.h,e.s,e.l,e.opacity);if(e instanceof Rc||(e=mc(e)),!e)return new Br;if(e instanceof Br)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-o,h=(l+o)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+o:2-l-o,u*=60):f=h>0&&h<1?0:u,new Br(u,f,h,e.opacity)}function y0e(e,t,n,i){return arguments.length===1?ok(e):new Br(e,t,n,i??1)}function Br(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}lm(Br,y0e,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new Br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new Br(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new nr(Gh(e>=240?e-240:e+120,o,i),Gh(e,o,i),Gh(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Br(pw(this.h),Nu(this.s),Nu(this.l),Mf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mf(this.opacity);return`${e===1?"hsl(":"hsla("}${pw(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pw(e){return e=(e||0)%360,e<0?e+360:e}function Nu(e){return Math.max(0,Math.min(1,e||0))}function Gh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const sk=e=>()=>e;function b0e(e,t){return function(n){return e+n*t}}function w0e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function x0e(e){return(e=+e)==1?lk:function(t,n){return n-t?w0e(t,n,e):sk(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?b0e(e,n):sk(isNaN(e)?t:e)}const gw=(function e(t){var n=x0e(t);function i(o,l){var u=n((o=Hp(o)).r,(l=Hp(l)).r),f=n(o.g,l.g),h=n(o.b,l.b),p=lk(o.opacity,l.opacity);return function(g){return o.r=u(g),o.g=f(g),o.b=h(g),o.opacity=p(g),o+""}}return i.gamma=e,i})(1);function _o(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Bp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kh=new RegExp(Bp.source,"g");function S0e(e){return function(){return e}}function _0e(e){return function(t){return e(t)+""}}function k0e(e,t){var n=Bp.lastIndex=Kh.lastIndex=0,i,o,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Bp.exec(e))&&(o=Kh.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,h.push({i:u,x:_o(i,o)})),n=Kh.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?_0e(h[0].x):S0e(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var mw=180/Math.PI,jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ak(e,t,n,i,o,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:o,translateY:l,rotate:Math.atan2(t,e)*mw,skewX:Math.atan(h)*mw,scaleX:u,scaleY:f}}var Mu;function T0e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jp:ak(t.a,t.b,t.c,t.d,t.e,t.f)}function C0e(e){return e==null||(Mu||(Mu=document.createElementNS("http://www.w3.org/2000/svg","g")),Mu.setAttribute("transform",e),!(e=Mu.transform.baseVal.consolidate()))?jp:(e=e.matrix,ak(e.a,e.b,e.c,e.d,e.e,e.f))}function ck(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push("translate(",null,t,null,n);$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(o(v)+"rotate(",null,i)-2,x:_o(p,g)})):g&&v.push(o(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(o(v)+"skewX(",null,i)-2,x:_o(p,g)}):g&&v.push(o(v)+"skewX("+g+i)}function h(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push(o(w)+"scale(",null,",",null,")");$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v!==1||y!==1)&&w.push(o(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var $=-1,_=y.length,C;++$<_;)v[(C=y[$]).i]=C.x(w);return v.join("")}}}var E0e=ck(T0e,"px, ","px)","deg)"),A0e=ck(C0e,", ",")",")"),$0e=1e-12;function vw(e){return((e=Math.exp(e))+1/e)/2}function N0e(e){return((e=Math.exp(e))-1/e)/2}function M0e(e){return((e=Math.exp(2*e))-1)/(e+1)}const L0e=(function e(t,n,i){function o(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,$=v-h,_=w*w+$*$,C,E;if(_<$0e)E=Math.log(y/p)/t,C=function(X){return[f+X*w,h+X*$,p*Math.exp(t*X*E)]};else{var L=Math.sqrt(_),D=(y*y-p*p+i*_)/(2*p*n*L),N=(y*y-p*p-i*_)/(2*y*n*L),I=Math.log(Math.sqrt(D*D+1)-D),q=Math.log(Math.sqrt(N*N+1)-N);E=(q-I)/t,C=function(X){var ie=X*E,J=vw(I),U=p/(n*L)*(J*M0e(t*ie+I)-N0e(I));return[f+U*w,h+U*$,p*J/vw(t*ie+I)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return o.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},o})(Math.SQRT2,2,4);var Rl=0,Na=0,ka=0,uk=1e3,Lf,Ma,Of=0,Ss=0,gd=0,vc=typeof performance=="object"&&performance.now?performance:Date,fk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function am(){return Ss||(fk(O0e),Ss=vc.now()+gd)}function O0e(){Ss=0}function Rf(){this._call=this._time=this._next=null}Rf.prototype=cm.prototype={constructor:Rf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?am():+n)+(t==null?0:+t),!this._next&&Ma!==this&&(Ma?Ma._next=this:Lf=this,Ma=this),this._call=e,this._time=n,Wp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wp())}};function cm(e,t,n){var i=new Rf;return i.restart(e,t,n),i}function R0e(){am(),++Rl;for(var e=Lf,t;e;)(t=Ss-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rl}function yw(){Ss=(Of=vc.now())+gd,Rl=Na=0;try{R0e()}finally{Rl=0,I0e(),Ss=0}}function P0e(){var e=vc.now(),t=e-Of;t>uk&&(gd-=t,Of=e)}function I0e(){for(var e,t=Lf,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lf=n);Ma=e,Wp(i)}function Wp(e){if(!Rl){Na&&(Na=clearTimeout(Na));var t=e-Ss;t>24?(e<1/0&&(Na=setTimeout(yw,e-vc.now()-gd)),ka&&(ka=clearInterval(ka))):(ka||(Of=vc.now(),ka=setInterval(P0e,uk)),Rl=1,fk(yw))}}function bw(e,t,n){var i=new Rf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var D0e=Oc("start","end","cancel","interrupt"),F0e=[],dk=0,ww=1,qp=2,Ku=3,xw=4,Up=5,Yu=6;function md(e,t,n,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;z0e(e,n,{name:t,index:i,group:o,on:D0e,tween:F0e,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:dk})}function um(e,t){var n=Xr(e,t);if(n.state>dk)throw new Error("too late; already scheduled");return n}function mi(e,t){var n=Xr(e,t);if(n.state>Ku)throw new Error("too late; already running");return n}function Xr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function z0e(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=cm(l,0,n.time);function l(p){n.state=ww,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ww)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===Ku)return bw(u);w.state===xw?(w.state=Yu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=Yu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(bw(function(){n.state===Ku&&(n.state=xw,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=qp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===qp){for(n.state=Ku,o=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++v]=w);o.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Up,1),v=-1,y=o.length;++v<y;)o[v].call(e,g);n.state===Up&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Yu,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function Xu(e,t){var n=e.__transition,i,o,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}o=i.state>qp&&i.state<Up,i.state=Yu,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function H0e(e){return this.each(function(){Xu(this,e)})}function B0e(e,t){var n,i;return function(){var o=mi(this,e),l=o.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}o.tween=i}}function j0e(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var l=mi(this,e),u=l.tween;if(u!==i){o=(i=u).slice();for(var f={name:t,value:n},h=0,p=o.length;h<p;++h)if(o[h].name===t){o[h]=f;break}h===p&&o.push(f)}l.tween=o}}function W0e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Xr(this.node(),n).tween,o=0,l=i.length,u;o<l;++o)if((u=i[o]).name===e)return u.value;return null}return this.each((t==null?B0e:j0e)(n,e,t))}function fm(e,t,n){var i=e._id;return e.each(function(){var o=mi(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Xr(o,i).value[t]}}function hk(e,t){var n;return(typeof t=="number"?_o:t instanceof mc?gw:(n=mc(t))?(t=n,gw):k0e)(e,t)}function q0e(e){return function(){this.removeAttribute(e)}}function U0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttribute(e);return u===o?null:u===i?l:l=t(i=u,n)}}function G0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===i?l:l=t(i=u,n)}}function K0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function Y0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function X0e(e,t){var n=pd(e),i=n==="transform"?A0e:hk;return this.attrTween(e,typeof t=="function"?(n.local?Y0e:K0e)(n,i,fm(this,"attr."+e,t)):t==null?(n.local?U0e:q0e)(n):(n.local?G0e:V0e)(n,i,t))}function J0e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Z0e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Q0e(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Z0e(e,l)),n}return o._value=t,o}function ebe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&J0e(e,l)),n}return o._value=t,o}function tbe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pd(e);return this.tween(n,(i.local?Q0e:ebe)(i,t))}function nbe(e,t){return function(){um(this,e).delay=+t.apply(this,arguments)}}function rbe(e,t){return t=+t,function(){um(this,e).delay=t}}function ibe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?nbe:rbe)(t,e)):Xr(this.node(),t).delay}function obe(e,t){return function(){mi(this,e).duration=+t.apply(this,arguments)}}function sbe(e,t){return t=+t,function(){mi(this,e).duration=t}}function lbe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?obe:sbe)(t,e)):Xr(this.node(),t).duration}function abe(e,t){if(typeof t!="function")throw new Error;return function(){mi(this,e).ease=t}}function cbe(e){var t=this._id;return arguments.length?this.each(abe(t,e)):Xr(this.node(),t).ease}function ube(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mi(this,e).ease=n}}function fbe(e){if(typeof e!="function")throw new Error;return this.each(ube(this._id,e))}function dbe(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Vi(i,this._parents,this._name,this._id)}function hbe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,l=Math.min(i,o),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Vi(u,this._parents,this._name,this._id)}function pbe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function gbe(e,t,n){var i,o,l=pbe(t)?um:mi;return function(){var u=l(this,e),f=u.on;f!==i&&(o=(i=f).copy()).on(t,n),u.on=o}}function mbe(e,t){var n=this._id;return arguments.length<2?Xr(this.node(),n).on.on(e):this.each(gbe(n,e,t))}function vbe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ybe(){return this.on("end.remove",vbe(this._id))}function bbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=om(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u<o;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,md(p[y],t,n,y,p,Xr(g,n)));return new Vi(l,this._parents,t,n)}function wbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=U_(e));for(var i=this._groups,o=i.length,l=[],u=[],f=0;f<o;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,$=Xr(g,n),_=0,C=y.length;_<C;++_)(w=y[_])&&md(w,t,n,_,y,$);l.push(y),u.push(g)}return new Vi(l,u,t,n)}var xbe=Lc.prototype.constructor;function Sbe(){return new xbe(this._groups,this._parents)}function _be(e,t){var n,i,o;return function(){var l=Ll(this,e),u=(this.style.removeProperty(e),Ll(this,e));return l===u?null:l===n&&u===i?o:o=t(n=l,i=u)}}function pk(e){return function(){this.style.removeProperty(e)}}function kbe(e,t,n){var i,o=n+"",l;return function(){var u=Ll(this,e);return u===o?null:u===i?l:l=t(i=u,n)}}function Tbe(e,t,n){var i,o,l;return function(){var u=Ll(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),Ll(this,e))),u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f))}}function Cbe(e,t){var n,i,o,l="style."+t,u="end."+l,f;return function(){var h=mi(this,e),p=h.on,g=h.value[l]==null?f||(f=pk(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(u,o=g),h.on=i}}function Ebe(e,t,n){var i=(e+="")=="transform"?E0e:hk;return t==null?this.styleTween(e,_be(e,i)).on("end.style."+e,pk(e)):typeof t=="function"?this.styleTween(e,Tbe(e,i,fm(this,"style."+e,t))).each(Cbe(this._id,e)):this.styleTween(e,kbe(e,i,t),n).on("end.style."+e,null)}function Abe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function $be(e,t,n){var i,o;function l(){var u=t.apply(this,arguments);return u!==o&&(i=(o=u)&&Abe(e,u,n)),i}return l._value=t,l}function Nbe(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,$be(e,t,n??""))}function Mbe(e){return function(){this.textContent=e}}function Lbe(e){return function(){var t=e(this);this.textContent=t??""}}function Obe(e){return this.tween("text",typeof e=="function"?Lbe(fm(this,"text",e)):Mbe(e==null?"":e+""))}function Rbe(e){return function(t){this.textContent=e.call(this,t)}}function Pbe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Rbe(o)),t}return i._value=e,i}function Ibe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Pbe(e))}function Dbe(){for(var e=this._name,t=this._id,n=gk(),i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Xr(h,t);md(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Vi(i,this._parents,e,n)}function Fbe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--o===0&&l()}};n.each(function(){var p=mi(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),o===0&&l()})}var zbe=0;function Vi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function gk(){return++zbe}var Ai=Lc.prototype;Vi.prototype={constructor:Vi,select:bbe,selectAll:wbe,selectChild:Ai.selectChild,selectChildren:Ai.selectChildren,filter:dbe,merge:hbe,selection:Sbe,transition:Dbe,call:Ai.call,nodes:Ai.nodes,node:Ai.node,size:Ai.size,empty:Ai.empty,each:Ai.each,on:mbe,attr:X0e,attrTween:tbe,style:Ebe,styleTween:Nbe,text:Obe,textTween:Ibe,remove:ybe,tween:W0e,delay:ibe,duration:lbe,ease:cbe,easeVarying:fbe,end:Fbe,[Symbol.iterator]:Ai[Symbol.iterator]};function Hbe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Bbe={time:null,delay:0,duration:250,ease:Hbe};function jbe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Wbe(e){var t,n;e instanceof Vi?(t=e._id,e=e._name):(t=gk(),(n=Bbe).time=am(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&md(h,e,t,p,u,n||jbe(h,t));return new Vi(i,this._parents,e,t)}Lc.prototype.interrupt=H0e;Lc.prototype.transition=Wbe;const Lu=e=>()=>e;function qbe(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zi(e,t,n){this.k=e,this.x=t,this.y=n}zi.prototype={constructor:zi,scale:function(e){return e===1?this:new zi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dm=new zi(1,0,0);zi.prototype;function Yh(e){e.stopImmediatePropagation()}function Ta(e){e.preventDefault(),e.stopImmediatePropagation()}function Ube(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Vbe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sw(){return this.__zoom||dm}function Gbe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Kbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ybe(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function Xbe(){var e=Ube,t=Vbe,n=Ybe,i=Gbe,o=Kbe,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=L0e,p=Oc("start","zoom","end"),g,v,y,w=500,$=150,_=0,C=10;function E(k){k.property("__zoom",Sw).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",U).filter(o).on("touchstart.zoom",K).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(k,S,R,B){var ae=k.selection?k.selection():k;ae.property("__zoom",Sw),k!==ae?I(k,S,R,B):ae.interrupt().each(function(){q(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(k,S,R,B){E.scaleTo(k,function(){var ae=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return ae*ve},R,B)},E.scaleTo=function(k,S,R,B){E.transform(k,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?N(ae):typeof R=="function"?R.apply(this,arguments):R,Be=ve.invert(_e),Ee=typeof S=="function"?S.apply(this,arguments):S;return n(D(L(ve,Ee),_e,Be),ae,u)},R,B)},E.translateBy=function(k,S,R,B){E.transform(k,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(k,S,R,B,ae){E.transform(k,function(){var ve=t.apply(this,arguments),_e=this.__zoom,Be=B==null?N(ve):typeof B=="function"?B.apply(this,arguments):B;return n(dm.translate(Be[0],Be[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ve,u)},B,ae)};function L(k,S){return S=Math.max(l[0],Math.min(l[1],S)),S===k.k?k:new zi(S,k.x,k.y)}function D(k,S,R){var B=S[0]-R[0]*k.k,ae=S[1]-R[1]*k.k;return B===k.x&&ae===k.y?k:new zi(k.k,B,ae)}function N(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function I(k,S,R,B){k.on("start.zoom",function(){q(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=q(ae,ve).event(B),Be=t.apply(ae,ve),Ee=R==null?N(Be):typeof R=="function"?R.apply(ae,ve):R,Ge=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),Ue=ae.__zoom,He=typeof S=="function"?S.apply(ae,ve):S,Re=h(Ue.invert(Ee).concat(Ge/Ue.k),He.invert(Ee).concat(Ge/He.k));return function(z){if(z===1)z=He;else{var Z=Re(z),re=Ge/Z[2];z=new zi(re,Ee[0]-Z[0]*re,Ee[1]-Z[1]*re)}_e.zoom(null,z)}})}function q(k,S,R){return!R&&k.__zooming||new X(k,S)}function X(k,S){this.that=k,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,S),this.taps=0}X.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,S){return this.mouse&&k!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var S=er(this.that).datum();p.call(k,this.that,new qbe(k,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function ie(k,...S){if(!e.apply(this,arguments))return;var R=q(this,S).event(k),B=this.__zoom,ae=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ve=Li(k);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(B.k===ae)return;R.mouse=[ve,B.invert(ve)],Xu(this),R.start()}Ta(k),R.wheel=setTimeout(_e,$),R.zoom("mouse",n(D(L(B,ae),R.mouse[0],R.mouse[1]),R.extent,u));function _e(){R.wheel=null,R.end()}}function J(k,...S){if(y||!e.apply(this,arguments))return;var R=k.currentTarget,B=q(this,S,!0).event(k),ae=er(k.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ge,!0),ve=Li(k,R),_e=k.clientX,Be=k.clientY;nk(k.view),Yh(k),B.mouse=[ve,this.__zoom.invert(ve)],Xu(this),B.start();function Ee(Ue){if(Ta(Ue),!B.moved){var He=Ue.clientX-_e,Re=Ue.clientY-Be;B.moved=He*He+Re*Re>_}B.event(Ue).zoom("mouse",n(D(B.that.__zoom,B.mouse[0]=Li(Ue,R),B.mouse[1]),B.extent,u))}function Ge(Ue){ae.on("mousemove.zoom mouseup.zoom",null),rk(Ue.view,B.moved),Ta(Ue),B.event(Ue).end()}}function U(k,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=Li(k.changedTouches?k.changedTouches[0]:k,this),ae=R.invert(B),ve=R.k*(k.shiftKey?.5:2),_e=n(D(L(R,ve),B,ae),t.apply(this,S),u);Ta(k),f>0?er(this).transition().duration(f).call(I,_e,B,k):er(this).call(E.transform,_e,B,k)}}function K(k,...S){if(e.apply(this,arguments)){var R=k.touches,B=R.length,ae=q(this,S,k.changedTouches.length===B).event(k),ve,_e,Be,Ee;for(Yh(k),_e=0;_e<B;++_e)Be=R[_e],Ee=Li(Be,this),Ee=[Ee,this.__zoom.invert(Ee),Be.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ee[2]&&(ae.touch1=Ee,ae.taps=0):(ae.touch0=Ee,ve=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ve&&(ae.taps<2&&(v=Ee[0],g=setTimeout(function(){g=null},w)),Xu(this),ae.start())}}function P(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e,Be,Ee;for(Ta(k),ve=0;ve<ae;++ve)_e=B[ve],Be=Li(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=Be:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=Be);if(_e=R.that.__zoom,R.touch1){var Ge=R.touch0[0],Ue=R.touch0[1],He=R.touch1[0],Re=R.touch1[1],z=(z=He[0]-Ge[0])*z+(z=He[1]-Ge[1])*z,Z=(Z=Re[0]-Ue[0])*Z+(Z=Re[1]-Ue[1])*Z;_e=L(_e,Math.sqrt(z/Z)),Be=[(Ge[0]+He[0])/2,(Ge[1]+He[1])/2],Ee=[(Ue[0]+Re[0])/2,(Ue[1]+Re[1])/2]}else if(R.touch0)Be=R.touch0[0],Ee=R.touch0[1];else return;R.zoom("touch",n(D(_e,Be,Ee),R.extent,u))}}function O(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e;for(Yh(k),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ve=0;ve<ae;++ve)_e=B[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=Li(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<C)){var Be=er(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return E.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Lu(+k),E):i},E.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Lu(!!k),E):e},E.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Lu(!!k),E):o},E.extent=function(k){return arguments.length?(t=typeof k=="function"?k:Lu([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),E):t},E.scaleExtent=function(k){return arguments.length?(l[0]=+k[0],l[1]=+k[1],E):[l[0],l[1]]},E.translateExtent=function(k){return arguments.length?(u[0][0]=+k[0][0],u[1][0]=+k[1][0],u[0][1]=+k[0][1],u[1][1]=+k[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(k){return arguments.length?(n=k,E):n},E.duration=function(k){return arguments.length?(f=+k,E):f},E.interpolate=function(k){return arguments.length?(h=k,E):h},E.on=function(){var k=p.on.apply(p,arguments);return k===p?E:k},E.clickDistance=function(k){return arguments.length?(_=(k=+k)*k,E):Math.sqrt(_)},E.tapDistance=function(k){return arguments.length?(C=+k,E):C},E}function Jbe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return mk(this.cover(t,n),t,n,e)}function mk(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var o,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,$,_,C,E,L;if(!l)return e._root=u,e;for(;l.length;)if((_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,o=l,!(l=l[E=C<<1|_]))return o[E]=u,e;if(w=+e._x.call(null,l.data),$=+e._y.call(null,l.data),t===w&&n===$)return u.next=l,o?o[E]=u:e._root=u,e;do o=o?o[E]=new Array(4):e._root=new Array(4),(_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|_)===(L=($>=y)<<1|w>=v));return o[L]=l,o[E]=u,e}function Zbe(e){var t,n,i=e.length,o,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=o,f[n]=l,o<h&&(h=o),o>g&&(g=o),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)mk(this,u[n],f[n],e[n]);return this}function Qbe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,l=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=o-n||1,f=this._root,h,p;n>e||e>=o||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:o=n+u,l=i+u;break;case 1:n=o-u,l=i+u;break;case 2:o=n+u,i=l-u;break;case 3:n=o-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=o,this._y1=l,this}function ewe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function twe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function jn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function nwe(e,t,n){var i,o=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,$,_;for(w&&y.push(new jn(w,o,l,g,v)),n==null?n=1/0:(o=e-n,l=t-n,g=e+n,v=t+n,n*=n);$=y.pop();)if(!(!(w=$.node)||(u=$.x0)>g||(f=$.y0)>v||(h=$.x1)<o||(p=$.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new jn(w[3],C,E,h,p),new jn(w[2],u,E,C,p),new jn(w[1],C,f,h,E),new jn(w[0],u,f,C,E)),(_=(t>=E)<<1|e>=C)&&($=y[y.length-1],y[y.length-1]=y[y.length-1-_],y[y.length-1-_]=$)}else{var L=e-+this._x.call(null,w.data),D=t-+this._y.call(null,w.data),N=L*L+D*D;if(N<n){var I=Math.sqrt(n=N);o=e-I,l=t-I,g=e+I,v=t+I,i=w.data}}return i}function rwe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,o,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,$,_,C,E;if(!n)return this;if(n.length)for(;;){if(($=g>=(y=(u+h)/2))?u=y:h=y,(_=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=_<<1|$]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,o?(l?o.next=l:delete o.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function iwe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function owe(){return this._root}function swe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function lwe(e){var t=[],n,i=this._root,o,l,u,f,h;for(i&&t.push(new jn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(o=i[3])&&t.push(new jn(o,p,g,f,h)),(o=i[2])&&t.push(new jn(o,l,g,p,h)),(o=i[1])&&t.push(new jn(o,p,u,f,g)),(o=i[0])&&t.push(new jn(o,l,u,p,g))}return this}function awe(e){var t=[],n=[],i;for(this._root&&t.push(new jn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var o=i.node;if(o.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=o[0])&&t.push(new jn(l,u,f,g,v)),(l=o[1])&&t.push(new jn(l,g,f,h,v)),(l=o[2])&&t.push(new jn(l,u,v,g,p)),(l=o[3])&&t.push(new jn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function cwe(e){return e[0]}function uwe(e){return arguments.length?(this._x=e,this):this._x}function fwe(e){return e[1]}function dwe(e){return arguments.length?(this._y=e,this):this._y}function hm(e,t,n){var i=new pm(t??cwe,n??fwe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function pm(e,t,n,i,o,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=l,this._root=void 0}function _w(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Un=hm.prototype=pm.prototype;Un.copy=function(){var e=new pm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=_w(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?n.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=_w(i));return e};Un.add=Jbe;Un.addAll=Zbe;Un.cover=Qbe;Un.data=ewe;Un.extent=twe;Un.find=nwe;Un.remove=rwe;Un.removeAll=iwe;Un.root=owe;Un.size=swe;Un.visit=lwe;Un.visitAfter=awe;Un.x=uwe;Un.y=dwe;function qn(e){return function(){return e}}function Eo(e){return(e()-.5)*1e-6}function hwe(e){return e.x+e.vx}function pwe(e){return e.y+e.vy}function gwe(e){var t,n,i,o=1,l=1;typeof e!="function"&&(e=qn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,$,_,C,E=0;E<l;++E)for(v=hm(t,hwe,pwe).visitAfter(f),p=0;p<g;++p)y=t[p],_=n[y.index],C=_*_,w=y.x+y.vx,$=y.y+y.vy,v.visit(L);function L(D,N,I,q,X){var ie=D.data,J=D.r,U=_+J;if(ie){if(ie.index>y.index){var K=w-ie.x-ie.vx,P=$-ie.y-ie.vy,O=K*K+P*P;O<U*U&&(K===0&&(K=Eo(i),O+=K*K),P===0&&(P=Eo(i),O+=P*P),O=(U-(O=Math.sqrt(O)))/O*o,y.vx+=(K*=O)*(U=(J*=J)/(C+J)),y.vy+=(P*=O)*U,ie.vx-=K*(U=1-U),ie.vy-=P*U)}return}return N>w+U||q<w-U||I>$+U||X<$-U}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(o=+p,u):o},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:qn(+p),h(),u):e},u}function mwe(e){return e.index}function kw(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function vwe(e){var t=mwe,n=v,i,o=qn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,L=e.length;E<g;++E)for(var D=0,N,I,q,X,ie,J,U;D<L;++D)N=e[D],I=N.source,q=N.target,X=q.x+q.vx-I.x-I.vx||Eo(p),ie=q.y+q.vy-I.y-I.vy||Eo(p),J=Math.sqrt(X*X+ie*ie),J=(J-l[D])/J*C*i[D],X*=J,ie*=J,q.vx-=X*(U=h[D]),q.vy-=ie*U,I.vx+=X*(U=1-U),I.vy+=ie*U}function w(){if(u){var C,E=u.length,L=e.length,D=new Map(u.map((I,q)=>[t(I,q,u),I])),N;for(C=0,f=new Array(E);C<L;++C)N=e[C],N.index=C,typeof N.source!="object"&&(N.source=kw(D,N.source)),typeof N.target!="object"&&(N.target=kw(D,N.target)),f[N.source.index]=(f[N.source.index]||0)+1,f[N.target.index]=(f[N.target.index]||0)+1;for(C=0,h=new Array(L);C<L;++C)N=e[C],h[C]=f[N.source.index]/(f[N.source.index]+f[N.target.index]);i=new Array(L),$(),l=new Array(L),_()}}function $(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function _(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+o(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:qn(+C),$(),y):n},y.distance=function(C){return arguments.length?(o=typeof C=="function"?C:qn(+C),_(),y):o},y}const ywe=1664525,bwe=1013904223,Tw=4294967296;function wwe(){let e=1;return()=>(e=(ywe*e+bwe)%Tw)/Tw}function xwe(e){return e.x}function Swe(e){return e.y}var _we=10,kwe=Math.PI*(3-Math.sqrt(5));function Twe(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=cm(v),p=Oc("tick","end"),g=wwe();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y(_){var C,E=e.length,L;_===void 0&&(_=1);for(var D=0;D<_;++D)for(n+=(l-n)*o,f.forEach(function(N){N(n)}),C=0;C<E;++C)L=e[C],L.fx==null?L.x+=L.vx*=u:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=u:(L.y=L.fy,L.vy=0);return t}function w(){for(var _=0,C=e.length,E;_<C;++_){if(E=e[_],E.index=_,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var L=_we*Math.sqrt(.5+_),D=_*kwe;E.x=L*Math.cos(D),E.y=L*Math.sin(D)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function $(_){return _.initialize&&_.initialize(e,g),_}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(_){return arguments.length?(e=_,w(),f.forEach($),t):e},alpha:function(_){return arguments.length?(n=+_,t):n},alphaMin:function(_){return arguments.length?(i=+_,t):i},alphaDecay:function(_){return arguments.length?(o=+_,t):+o},alphaTarget:function(_){return arguments.length?(l=+_,t):l},velocityDecay:function(_){return arguments.length?(u=1-_,t):1-u},randomSource:function(_){return arguments.length?(g=_,f.forEach($),t):g},force:function(_,C){return arguments.length>1?(C==null?f.delete(_):f.set(_,$(C)),t):f.get(_)},find:function(_,C,E){var L=0,D=e.length,N,I,q,X,ie;for(E==null?E=1/0:E*=E,L=0;L<D;++L)X=e[L],N=_-X.x,I=C-X.y,q=N*N+I*I,q<E&&(ie=X,E=q);return ie},on:function(_,C){return arguments.length>1?(p.on(_,C),t):p.on(_)}}}function Cwe(){var e,t,n,i,o=qn(-30),l,u=1,f=1/0,h=.81;function p(w){var $,_=e.length,C=hm(e,xwe,Swe).visitAfter(v);for(i=w,$=0;$<_;++$)t=e[$],C.visit(y)}function g(){if(e){var w,$=e.length,_;for(l=new Array($),w=0;w<$;++w)_=e[w],l[_.index]=+o(_,w,e)}}function v(w){var $=0,_,C,E=0,L,D,N;if(w.length){for(L=D=N=0;N<4;++N)(_=w[N])&&(C=Math.abs(_.value))&&($+=_.value,E+=C,L+=C*_.x,D+=C*_.y);w.x=L/E,w.y=D/E}else{_=w,_.x=_.data.x,_.y=_.data.y;do $+=l[_.data.index];while(_=_.next)}w.value=$}function y(w,$,_,C){if(!w.value)return!0;var E=w.x-t.x,L=w.y-t.y,D=C-$,N=E*E+L*L;if(D*D/h<N)return N<f&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)),t.vx+=E*w.value*i/N,t.vy+=L*w.value*i/N),!0;if(w.length||N>=f)return;(w.data!==t||w.next)&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)));do w.data!==t&&(D=l[w.data.index]*i/N,t.vx+=E*D,t.vy+=L*D);while(w=w.next)}return p.initialize=function(w,$){e=w,n=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:qn(+w),g(),p):o},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Ewe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(o[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function Awe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(o[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function $we(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function Nwe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Mwe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function vk(e){e.preventDefault(),e.stopPropagation()}function yk(e){return typeof e=="number"}function Fo(e,t){return yk(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Lwe(e){return`${e.source.id}-${e.target.id}`}function bk(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Owe(e){return`url(#${bk(e.color)})`}function Rwe(e){return{size:e,padding:(t,n)=>Fo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const wk={Arrow:e=>Rwe(e)},Pwe=(e,t,n)=>[t/2,n/2],Iwe=(e,t,n)=>[Cw(0,t),Cw(0,n)];function Cw(e,t){return Math.random()*(t-e)+e}const Vp={Centered:Pwe,Randomized:Iwe};function Dwe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Mwe(),nodeRadius:16,marker:wk.Arrow(4),modifiers:{},positionInitializer:Vp.Centered,simulation:{alphas:$we(),forces:Nwe()},zoom:{initial:1,min:.1,max:2}}}function Fwe(e={}){return vve(Dwe(),e,{arrayMerge:(t,n)=>n})}function zwe({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:o,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>vk(g)).on("dblclick",g=>n?.(g)).on("dblclick.zoom",null).on("pointermove",g=>i?.(g)).on("pointerup",g=>o?.(g)).style("cursor","grab");return e&&p.call(h.transform,dm.translate(l,u).scale(f)),p.append("g")}function Hwe({canvas:e,scale:t,xOffset:n,yOffset:i}){e?.attr("transform",`translate(${n},${i})scale(${t})`)}function Bwe({config:e,onDragStart:t,onDragEnd:n}){const i=s0e().filter(o=>o.type==="mousedown"?o.button===0:o.type==="touchstart"?o.touches.length===1:!1).on("start",(o,l)=>{o.active===0&&t(o,l),er(o.sourceEvent.target).classed("grabbed",!0),l.fx=l.x,l.fy=l.y}).on("drag",(o,l)=>{l.fx=o.x,l.fy=o.y}).on("end",(o,l)=>{o.active===0&&n(o,l),er(o.sourceEvent.target).classed("grabbed",!1),l.fx=void 0,l.fy=void 0});return e.modifiers.drag?.(i),i}function jwe({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:o}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&o(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:Wwe({links:l},n)}function Wwe(e,t){const n=[...qwe(e,t),...Uwe(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function qwe(e,t){return xk(e,t,(n,i)=>n.target.id===i.id)}function Uwe(e,t){return xk(e,t,(n,i)=>n.source.id===i.id)}function xk(e,t,n){const i=new Set(e.links),o=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...o].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{o.add(f.source),o.add(f.target),l.push(f),i.delete(f)})}return l}function Gp(e){return e.x??0}function Kp(e){return e.y??0}function gm({source:e,target:t}){const n=new Ol(Gp(e),Kp(e)),i=new Ol(Gp(t),Kp(t)),o=i.subtract(n),l=o.length(),u=o.normalize();return{s:n,t:i,dist:l,norm:u,endNorm:u.multiply(-1)}}function Sk({center:e,node:t}){const n=new Ol(Gp(t),Kp(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Ol(0,1))),{n,c:i}}function _k({config:e,source:t,target:n}){const{s:i,t:o,norm:l}=gm({source:t,target:n});return{start:i.add(l.multiply(Fo(e,t)-1)),end:o.subtract(l.multiply(e.marker.padding(n,e)))}}function Vwe(e){const{start:t,end:n}=_k(e);return`M${t.x},${t.y}
78
- L${n.x},${n.y}`}function Gwe(e){const{start:t,end:n}=_k(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function Kwe({config:e,source:t,target:n}){const{s:i,t:o,dist:l,norm:u,endNorm:f}=gm({source:t,target:n}),h=10,p=u.rotateByDegrees(-h).multiply(Fo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(Fo(e,n)).add(o).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
79
- A${v},${v},0,0,1,${g.x},${g.y}`}function Ywe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=Fo(t,n),u=i.subtract(o),f=u.multiply(1/u.length()),h=40,p=f.rotateByDegrees(h).multiply(l-1).add(i),g=f.rotateByDegrees(-h).multiply(l).add(i).add(f.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
80
- A${l},${l},0,1,0,${g.x},${g.y}`}function Xwe({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:l}=gm({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*o).add(i);return`translate(${u.x},${u.y})`}function Jwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=i.subtract(o),u=l.multiply(1/l.length()).multiply(3*Fo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const xl={line:{labelTransform:Gwe,path:Vwe},arc:{labelTransform:Xwe,path:Kwe},reflexive:{labelTransform:Jwe,path:Ywe}};function Zwe(e){return e.append("g").classed("links",!0).selectAll("path")}function Qwe({config:e,graph:t,selection:n,showLabels:i}){const o=n?.data(t.links,l=>Lwe(l)).join(l=>{const u=l.append("g"),f=u.append("path").classed("link",!0).style("marker-end",p=>Owe(p)).style("stroke",p=>p.color);e.modifiers.link?.(f);const h=u.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),u});return o?.select(".link__label").attr("opacity",l=>l.label&&i?1:0),o}function exe(e){txe(e),nxe(e)}function txe({center:e,config:t,graph:n,selection:i}){i?.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?xl.reflexive.path({config:t,node:o.source,center:e}):kk(n,o.source,o.target)?xl.arc.path({config:t,source:o.source,target:o.target}):xl.line.path({config:t,source:o.source,target:o.target}))}function nxe({config:e,center:t,graph:n,selection:i}){i?.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?xl.reflexive.labelTransform({config:e,node:o.source,center:t}):kk(n,o.source,o.target)?xl.arc.labelTransform({config:e,source:o.source,target:o.target}):xl.line.labelTransform({config:e,source:o.source,target:o.target}))}function kk(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function rxe(e){return e.append("defs").selectAll("marker")}function ixe({config:e,graph:t,selection:n}){return n?.data(oxe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",l=>bk(l)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",l=>l);return o.append("path").attr("d",sxe(e.marker.path)),o})}function oxe(e){return[...new Set(e.links.map(t=>t.color))]}function sxe(e){const[t,...n]=e;if(!t)return"M0,0";const[i,o]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${o}`)}function lxe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function axe({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:o,selection:l,showLabels:u}){const f=l?.data(n.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",y=>Fo(e,y)).on("contextmenu",(y,w)=>{vk(y),i(w)}).on("pointerdown",(y,w)=>uxe(y,w,o??i)).style("fill",y=>y.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",y=>y.label?y.label.color:null).style("font-size",y=>y.label?y.label.fontSize:null).style("stroke","none").text(y=>y.label?y.label.text:null);return e.modifiers.nodeLabel?.(v),p});return f?.select(".node").classed("focused",h=>h.isFocused),f?.select(".node__label").attr("opacity",u?1:0),f}const cxe=500;function uxe(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,o=Date.now();if(i===void 0||o-i>cxe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function fxe(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function dxe({center:e,config:t,graph:n,onTick:i}){const o=Twe(n.nodes),l=t.simulation.forces.centering;if(l&&l.enabled){const p=l.strength;o.force("x",Ewe(()=>e().x).strength(p)).force("y",Awe(()=>e().y).strength(p))}const u=t.simulation.forces.charge;u&&u.enabled&&o.force("charge",Cwe().strength(u.strength));const f=t.simulation.forces.collision;f&&f.enabled&&o.force("collision",gwe().radius(p=>f.radiusMultiplier*Fo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&o.force("link",vwe(n.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),o.on("tick",()=>i()),t.modifiers.simulation?.(o),o}function hxe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){const l=Xbe().scaleExtent([n,i]).filter(u=>u.button===0||u.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",u=>o(u)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(l),l}var pxe=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(i=>{const[o,l]=n.positionInitializer(i,this.effectiveWidth,this.effectiveHeight);i.x=i.x??o,i.y=i.y??l}),this.nodeTypes=[...new Set(t.nodes.map(i=>i.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){const{includeUnlinked:i,nodeTypeFilter:o,linkFilter:l,showLinkLabels:u,showNodeLabels:f}=n.initial;this._includeUnlinked=i??this._includeUnlinked,this._showLinkLabels=u??this._showLinkLabels,this._showNodeLabels=f??this._showNodeLabels,this._nodeTypeFilter=o??this._nodeTypeFilter,this._linkFilter=l??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(yve(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,i=e?t:n;this.restart(i)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,i=e?n:t;this.restart(i)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.links,i=e?n:t;this.restart(i)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Ol.of([this.width,this.height]).divide(2).subtract(Ol.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,i=this.container.getBoundingClientRect().height,o=e.toFixed()!==n.toFixed(),l=t.toFixed()!==i.toFixed();if(!o&&!l)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const u=this.config.simulation.alphas.resize;this.restart(yk(u)?u:u({oldWidth:e,oldHeight:t,newWidth:n,newHeight:i}))}restart(e){this.markerSelection=ixe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Qwe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=axe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=dxe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(n=>n!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=hxe({config:this.config,canvasContainer:()=>er(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=zwe({applyZoom:this.scale!==1,container:er(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Zwe(this.canvas),this.nodeSelection=lxe(this.canvas),this.markerSelection=rxe(this.canvas),this.drag=Bwe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){fxe(this.nodeSelection),exe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),er(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Hwe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=jwe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ew({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function gxe(e){return{...e}}function mm(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Aw(e){const t=e.map(i=>g_(i)),n=dP(t);return t.map(({raw:i,id:o,splitted:l})=>mm({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:o.includes("node_modules")?n.get(i)??i:l[l.length-1]},isFocused:!1,id:o,type:"external"}))}function mxe(e,t){return mm({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function vxe(e,t){if(!e)return Ew({});const n=pt.value.experimental?.viteModuleRunner?Aw(e.externalized):Aw([...e.inlined,...e.externalized]),i=pt.value.experimental?.viteModuleRunner?e.inlined.map(f=>mxe(f,f===t))??[]:[],o=[...n,...i],l=Object.fromEntries(o.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return gxe({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ew({nodes:o,links:u})}const yxe={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},bxe={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},wxe={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},xxe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Sxe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},_xe={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Tk=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=ir("tooltip");return e.state==="pass"?(te(),ge("div",yxe)):e.failedSnapshot?st((te(),ge("div",bxe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ge("div",wxe)):e.mode==="todo"?st((te(),ge("div",xxe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((te(),ge("div",Sxe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(te(),ge("div",_xe))}}}),kxe={border:"b base","p-4":""},Txe=["innerHTML"],Cxe=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(te(),ge("div",kxe,[Y("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Me(t(e.time))+" | "+Me(e.taskName)+" | "+Me(e.type),3),Y("pre",{"data-type":"html",innerHTML:e.content},null,8,Txe)]))}}),Exe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Axe={key:1,p6:""},$xe=tt({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const i=j_.value;if(i){const o=Qg(Po.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:o.toHtml(Wa(h))}))}});function n(i){const o=i&&ft.state.idMap.get(i);return o&&"filepath"in o?o.name:(o?MR(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>t.value?.length?(te(),ge("div",Exe,[(te(!0),ge(nt,null,xn(t.value,({taskId:l,type:u,time:f,content:h})=>(te(),ge("div",{key:l,"font-mono":""},[Ne(Cxe,{"task-name":n(l),type:u,time:f,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ge("div",Axe,[...o[0]||(o[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),Y("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),Ck={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Ck);var xr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},rl,La,as;class Nxe{constructor(...t){rl.set(this,new Map),La.set(this,new Map),as.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,o]of Object.entries(t)){i=i.toLowerCase(),o=o.map(f=>f.toLowerCase()),xr(this,as,"f").has(i)||xr(this,as,"f").set(i,new Set);const l=xr(this,as,"f").get(i);let u=!0;for(let f of o){const h=f.startsWith("*");if(f=h?f.slice(1):f,l?.add(f),u&&xr(this,La,"f").set(i,f),u=!1,h)continue;const p=xr(this,rl,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);xr(this,rl,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),o=n.length<t.length;return!(i.length<n.length-1)&&o?null:xr(this,rl,"f").get(i)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&xr(this,La,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:xr(this,as,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of xr(this,as,"f").values())Object.freeze(t);return this}_getTestState(){return{types:xr(this,rl,"f"),extensions:xr(this,La,"f")}}}rl=new WeakMap,La=new WeakMap,as=new WeakMap;const Mxe=new Nxe(Ck)._freeze();function Pl(e){const t=e.contentType??"application/octet-stream";return e.path?pr?`./data/${rR(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Ek(e,t){const n=t?Mxe.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function Ak(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Yp(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Pl(e)}const Ju=tt({__name:"CodeMirrorContainer",props:Xa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Xa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=Jf(e,"modelValue"),o=fA(),l={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},u=Ke();return Yi(async()=>{const f=Mge(u,i,{...o,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.on("refresh",()=>{n("codemirror",f)}),f.on("change",()=>{n("codemirror",f)}),f.setSize("100%","100%"),f.clearHistory(),Fn.value=f,setTimeout(()=>Fn.value?.refresh(),100)}),(f,h)=>(te(),ge("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[Y("textarea",{ref_key:"el",ref:u},null,512)],2))}}),Lxe=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,o=Ke(""),l=Vt(void 0),u=Ke(!1),f=Ke(!0),h=Ke(!1),p=Ke();yt(()=>n.file,async()=>{if(!h.value){f.value=!0;try{if(!n.file||!n.file?.filepath){o.value="",l.value=o.value,u.value=!1,f.value=!1;return}o.value=await ft.rpc.readTestFile(n.file.filepath)||"",l.value=o.value,u.value=!1}catch(J){console.error("cannot fetch file",J)}await At(),f.value=!1}},{immediate:!0}),yt(()=>[f.value,h.value,n.file,N_.value,M_.value],([J,U,K,P,O])=>{!J&&!U&&(P!=null?At(()=>{const k=p.value,S=k??{line:(P??1)-1,ch:O??0};k?p.value=void 0:(Fn.value?.scrollIntoView(S,100),At(()=>{Fn.value?.focus(),Fn.value?.setCursor(S)}))}):At(()=>{Fn.value?.focus()}))},{flush:"post"});const g=Se(()=>n.file?.filepath?.split(/\./g).pop()||"js"),v=Ke(),y=Se(()=>{const J=[];function U(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),w=Se(()=>{const J=[];function U(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),$=[],_=[],C=[],E=Ke(!1);function L(){C.forEach(([J,U,K])=>{J.removeEventListener("click",U),K()}),C.length=0}fM(v,()=>{Fn.value?.refresh()});function D(){u.value=l.value!==Fn.value.getValue()}yt(u,J=>{i("draft",J)},{immediate:!0});function N(J){const K=(J?.stacks||[]).filter(R=>R.file&&R.file===n.file?.filepath)?.[0];if(!K)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-700 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,P.appendChild(O);const k=document.createElement("span");k.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",k.tabIndex=0,k.ariaLabel="Open in Editor",B1(k,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Zg(K.file,K.line,K.column)};k.addEventListener("click",S),P.appendChild(k),C.push([k,S,()=>Eg(k)]),_.push(Fn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),$.push(Fn.value.addLineWidget(K.line-1,P))}function I(J){if(!J.location)return;const{line:U,file:K}=J.location;if(K!==n.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const k=document.createElement("span");k.textContent=`${J.type}: `,k.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
81
- `),O.append(k,S),P.append(O);const R=J.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Pl(R)),B.target="_blank",B.href=ae.src,B.append(ae),P.append(B)}else{const B=document.createElement("a");B.href=Pl(R),B.download=Ek(J.message,R.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(ae,ve),P.append(B)}$.push(Fn.value.addLineWidget(U-1,P))}const{pause:q,resume:X}=yt([Fn,y,w,ol],([J,U,K,P])=>{if(!J){$.length=0,_.length=0,L();return}P&&(J.off("changes",D),L(),$.forEach(O=>O.clear()),_.forEach(O=>J?.removeLineClass(O,"wrap")),$.length=0,_.length=0,setTimeout(()=>{U.forEach(N),K.forEach(I),E.value||J.clearHistory(),J.on("changes",D)},100))},{flush:"post"});K1(()=>[ol.value,h.value,p.value],([J,U],K)=>{J&&!U&&K&&K[2]&&Fn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function ie(J){if(h.value)return;q(),h.value=!0,await At();const U=Fn.value;U&&(U.setOption("readOnly",!0),await At(),U.refresh()),p.value=U?.getCursor(),U?.off("changes",D),L(),$.forEach(K=>K.clear()),_.forEach(K=>U?.removeLineClass(K,"wrap")),$.length=0,_.length=0;try{E.value=!0,await ft.rpc.saveTestFile(n.file.filepath,J),l.value=J,u.value=!1}catch(K){console.error("error saving file",K)}E.value||U?.clearHistory();try{await $0(ol).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await $0(ol).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(N),w.value.forEach(I),U?.on("changes",D),h.value=!1,await At(),U&&(U.setOption("readOnly",!1),await At(),U.refresh()),X()}return Sc(L),(J,U)=>(te(),We(Ju,ci({ref_key:"editor",ref:v,modelValue:o.value,"onUpdate:modelValue":U[0]||(U[0]=K=>o.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(pr)||!W(pt).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ie}),null,16,["modelValue","mode"]))}}),$k=tt({__name:"Modal",props:Xa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue"),n=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),i=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),o=()=>t.value=!1;return(l,u)=>(te(),ge("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:o},null,2),Y("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[n.value]]),style:Pt(t.value?{}:{transform:i.value})},[Bt(l.$slots,"default")],6)],2))}}),Oxe={class:"overflow-auto max-h-120"},Rxe={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},Pxe=["onClick"],Ixe=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const n=t,i=Se(()=>{const u=Tr.value?.importDurations,f=pt.value.root;if(!u||!f)return[];const h=[];for(const p in u){const g=u[p],v=g.external?hP(p):ud(f,p);h.push({importedFile:p,relativeFile:o(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:us(g.selfTime),formattedTotalTime:us(g.totalTime),selfTimeClass:kf(g.selfTime),totalTimeClass:kf(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function o(l){return l.length<=45?l:`...${l.slice(-45)}`}return(l,u)=>(te(),ge("div",Oxe,[u[1]||(u[1]=Y("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),Y("span",{"op-70":""},"(ordered by Total Time)")],-1)),Y("table",Rxe,[u[0]||(u[0]=Y("thead",null,[Y("tr",null,[Y("th",null," Module "),Y("th",null," Self "),Y("th",null," Total "),Y("th",null," % ")])],-1)),Y("tbody",null,[(te(!0),ge(nt,null,xn(i.value,f=>(te(),ge("tr",{key:f.importedFile},[Y("td",{class:"cursor-pointer pr-2",style:Pt({color:f.external?"var(--color-node-external)":void 0}),onClick:h=>n("select",f.importedFile,f.external?"external":"inline")},Me(f.relativeFile),13,Pxe),Y("td",{"pr-2":"",class:ot(f.selfTimeClass)},Me(f.formattedSelfTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(f.formattedTotalTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(Math.round(f.totalTime/i.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),el=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,n)=>(te(),ge("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Bt(t.$slots,"default")],2))}}),Dxe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Fxe={"p-4":"",relative:""},zxe={flex:"","justify-between":""},Hxe={"mr-8":"",flex:"","gap-2":"","items-center":""},Bxe={op50:"","font-mono":"","text-sm":""},jxe={key:0,"p-5":""},Wxe={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},qxe={key:0},Uxe={p:"x3 y-1","bg-overlay":"",border:"base b t"},Vxe=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const n=e,i=t,o=VN(()=>{if(Tr.value?.id){if(n.type==="inline")return ft.rpc.getTransformResult(n.projectName,n.id,Tr.value.id,!!gr);if(n.type==="external")return ft.rpc.getExternalResult(n.id,Tr.value.id)}}),l=Se(()=>{const D=Tr.value?.importDurations||{};return D[n.id]||D[tR("/@fs/",n.id)]||{}}),u=Se(()=>n.id?.split(/\./g).pop()||"js"),f=Se(()=>o.value?.source?.trim()||""),h=Se(()=>!o.value||!("code"in o.value)||!pt.value.experimental?.fsModuleCache?void 0:o.value.code.lastIndexOf("vitestCache=")!==-1),p=Se(()=>!o.value||!("code"in o.value)?null:o.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=Se(()=>!o.value||!("map"in o.value)?{mappings:""}:{mappings:o.value?.map?.mappings??"",version:o.value?.map?.version}),v=[],y=[],w=[];function $(D,N){const I=D.coordsChar({left:N.clientX,top:N.clientY}),q=D.findMarksAt(I);if(q.length!==1)return;const X=q[0].title;if(X){const ie=q[0].attributes?.["data-external"]==="true"?"external":"inline";i("select",X,ie)}}function _(D){const N=document.createElement("div");N.classList.add("mb-5");const I=pt.value.root;if(I)return D.forEach(({resolvedId:q,totalTime:X,external:ie})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const U=document.createElement("span"),K=ud(I,q);U.textContent=`"/${K}"`,U.className="hover:underline decoration-gray cursor-pointer select-none",J.append(U),U.addEventListener("click",()=>{i("select",q,ie?"external":"inline")});const P=document.createElement("span");P.textContent=` ${us(X)}`;const O=kf(X);O&&P.classList.add(O),J.append(P),N.append(J)}),N}function C(D){const N=document.createElement("div");N.className="flex ml-2",N.textContent=us(D);const I=kf(D);return I&&N.classList.add(I),N}function E(D){if(w.forEach(N=>N.clear()),w.length=0,v.forEach(N=>N.remove()),v.length=0,y.forEach(N=>N.clear()),y.length=0,o.value&&"modules"in o.value){D.off("mousedown",$),D.on("mousedown",$);const N=o.value.untrackedModules;if(N?.length){const I=_(N);if(!I)return;v.push(I),w.push(D.addLineWidget(0,I,{above:!0}))}o.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},X={line:I.end.line-1,ch:I.end.column},ie=D.markText(q,X,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});y.push(ie);const J=C(I.totalTime+(I.transformTime||0));N?.length||J.classList.add("-mt-5"),v.push(J),D.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function L(){i("back")}return J1("Escape",()=>{i("close")}),(D,N)=>{const I=ir("tooltip");return te(),ge("div",Dxe,[Y("div",Fxe,[Y("div",zxe,[Y("p",null,[e.canUndo?st((te(),We(Tt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:N[0]||(N[0]=q=>L())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):Fe("",!0),N[7]||(N[7]=Qe(" Module Info ",-1)),Ne(W(wo),{class:"inline","cursor-help":""},{popper:je(()=>[Qe(" This is module is "+Me(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ge(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ge(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:je(()=>[Ne(el,{type:"custom","ml-1":"",style:Pt({backgroundColor:`var(--color-node-${e.type})`})},{default:je(()=>[Qe(Me(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[...N[4]||(N[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:je(()=>[Ne(el,{type:"tip","ml-2":""},{default:je(()=>[...N[3]||(N[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Fe("",!0),h.value===!1?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[...N[6]||(N[6]=[Y("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),Y("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:je(()=>[Ne(el,{type:"warning","ml-2":""},{default:je(()=>[...N[5]||(N[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Fe("",!0)]),Y("div",Hxe,[l.value.selfTime!=null&&l.value.external!==!0?(te(),We(W(wo),{key:0,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.selfTime)},{default:je(()=>[Qe(" self: "+Me(W(us)(l.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),l.value.totalTime!=null?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.totalTime)},{default:je(()=>[Qe(" total: "+Me(W(us)(l.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),W(o)&&"transformTime"in W(o)&&W(o).transformTime?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(W(o).transformTime))+" to transform this module by Vite plugins. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(W(o).transformTime)},{default:je(()=>[Qe(" transform: "+Me(W(us)(W(o).transformTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0)])]),Y("p",Bxe,Me(e.id),1),Ne(Tt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:N[1]||(N[1]=q=>i("close"))})]),W(o)?(te(),ge(nt,{key:1},[Y("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[N[8]||(N[8]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ge("div",Wxe," Transformed ")):Fe("",!0),(te(),We(Ju,ci({key:e.id,"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:u.value,onCodemirror:N[2]||(N[2]=q=>E(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(Ju,ci({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Fe("",!0)],2),g.value.mappings!==""?(te(),ge("div",qxe,[Y("div",Uxe," Source map (v"+Me(g.value.version)+") ",1),Ne(Ju,ci({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Fe("",!0)],64)):(te(),ge("div",jxe," No transform result found for this module. "))])}}}),Gxe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Kxe={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Yxe={flex:"~ gap-1","items-center":"","select-none":""},Xxe={class:"pr-2"},Jxe=["id","checked","onChange"],Zxe=["for"],Qxe={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},e1e=tt({__name:"ViewModuleGraph",props:Xa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Jf(e,"modelValue"),{graph:i}=OE(t),o=Ke(),l=Ke(!1),u=Ke(),f=uM(u),h=Ke(),p=Ke(null),g=Vt(i.value),v=Se(()=>{let K="";const P=Tr.value?.importDurations,O=pt.value.experimental?.importDurations.thresholds;if(!P||!O)return K;for(const k in P){const{totalTime:S}=P[k];if(S>=O.danger){K="text-red";break}else S>=O.warn&&(K="text-orange")}return K}),y=Ke(v.value==="text-red");Yi(()=>{g.value=_(i.value,null,2),X()}),_c(()=>{h.value?.shutdown()}),yt(i,()=>{g.value=_(i.value,p.value,2),X()});function w(){g.value=i.value,X()}function $(){y.value=!y.value}function _(K,P,O=2){if(!K.nodes.length||K.nodes.length<=50)return K;const k=new Map;K.nodes.forEach(Ee=>k.set(Ee.id,new Set)),K.links.forEach(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);k.get(Ge)?.add(Ue),k.get(Ue)?.add(Ge)});let S;if(P)S=[P];else{const Ee=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ge=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ee.has(Ue.id));S=Ge.length>0?[Ge[0].id]:[K.nodes[0].id]}const R=new Set,B=S.map(Ee=>({id:Ee,level:0}));for(;B.length>0;){const{id:Ee,level:Ge}=B.shift();R.has(Ee)||Ge>O||(R.add(Ee),Ge<O&&(k.get(Ee)||new Set).forEach(He=>{R.has(He)||B.push({id:He,level:Ge+1})}))}const ae=new Map(K.nodes.map(Ee=>[Ee.id,Ee])),ve=Array.from(R).map(Ee=>ae.get(Ee)).filter(Ee=>Ee!==void 0),_e=new Map(ve.map(Ee=>[Ee.id,Ee])),Be=K.links.map(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);if(R.has(Ge)&&R.has(Ue)){const He=_e.get(Ge),Re=_e.get(Ue);if(He&&Re)return{...Ee,source:He,target:Re}}return null}).filter(Ee=>Ee!==null);return{nodes:ve,links:Be}}function C(K,P){h.value?.filterNodesByType(P,K)}function E(K,P){u.value={id:K,type:P},l.value=!0}function L(){f.undo()}function D(){l.value=!1,f.clear()}function N(K){p.value=K,g.value=_(i.value,K,2),q(),X()}function I(){p.value=null,g.value=_(i.value,null,2),q(),X()}function q(){const K=g.value.nodes.map(k=>{let S,R;return k.id===p.value?(S="var(--color-node-focused)",R="var(--color-node-focused)"):k.type==="inline"?(S=k.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=S):(S="var(--color-node-external)",R="var(--color-node-external)"),mm({...k,color:S,label:k.label?{...k.label,color:R}:k.label})}),P=new Map(K.map(k=>[k.id,k])),O=g.value.links.map(k=>{const S=typeof k.source=="object"?k.source.id:String(k.source),R=typeof k.target=="object"?k.target.id:String(k.target);return{...k,source:P.get(S),target:P.get(R)}});g.value={nodes:K,links:O}}function X(K=!1){if(h.value?.shutdown(),K&&!n.value){n.value=!0;return}if(!g.value||!o.value)return;const P=g.value.nodes.length;let O=1,k=.5;P>300?(O=.3,k=.2):P>200?(O=.4,k=.3):P>100?(O=.5,k=.3):P>50&&(O=.7,O=.4),h.value=new pxe(o.value,g.value,Fwe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:S,newWidth:R})=>S===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:wk.Arrow(2),modifiers:{node:U},positionInitializer:i.value.nodes.length===1?Vp.Centered:Vp.Randomized,zoom:{initial:O,min:k,max:1.5}}))}const ie=K=>K.button===0,J=K=>K.button===2;function U(K){if(pr)return;let P=0,O=0,k=0,S=!1;K.on("pointerdown",(R,B)=>{!B.x||!B.y||(S=J(R),!(!ie(R)&&!S)&&(P=B.x,O=B.y,k=Date.now()))}).on("pointerup",(R,B)=>{if(!B.x||!B.y)return;const ae=J(R);if(!ie(R)&&!ae||Date.now()-k>500)return;const ve=B.x-P,_e=B.y-O;ve**2+_e**2<100&&(!ae&&!R.shiftKey?E(B.id,B.type):(ae||R.shiftKey)&&(R.preventDefault(),B.type==="inline"&&N(B.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(K,P)=>{const O=ir("tooltip");return te(),ge("div",Gxe,[Y("div",null,[Y("div",Kxe,[Y("div",Yxe,[Y("div",Xxe,Me(g.value.nodes.length)+"/"+Me(W(i).nodes.length)+" "+Me(g.value.nodes.length===1?"module":"modules"),1),st(Y("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=k=>n.value=k),type:"checkbox"},null,512),[[b1,n.value]]),P[9]||(P[9]=Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(te(!0),ge(nt,null,xn(h.value?.nodeTypes.sort(),k=>(te(),ge("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${k}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(k),onChange:S=>C(k,S.target.checked)},null,40,Jxe),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:Pt({"border-color":`var(--color-node-${k})`})},Me(k)+" Modules",13,Zxe)]))),128)),P[10]||(P[10]=Y("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=Y("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[Y("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-notebook",class:ot(v.value),onClick:P[1]||(P[1]=k=>$())},null,8,["class"]),[[O,`${y.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=k=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=k=>I())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),y.value?(te(),ge("div",Qxe,[Ne(Ixe,{onSelect:P[4]||(P[4]=(k,S)=>E(k,S))})])):Fe("",!0),Y("div",{ref_key:"el",ref:o},null,512),Ne($k,{modelValue:l.value,"onUpdate:modelValue":P[8]||(P[8]=k=>l.value=k),direction:"right"},{default:je(()=>[u.value?(te(),We(IA,{key:0},{default:je(()=>[Ne(Vxe,{id:u.value.id,"project-name":e.projectName,type:u.value.type,"can-undo":W(f).undoStack.value.length>1,onClose:P[5]||(P[5]=k=>D()),onSelect:P[6]||(P[6]=(k,S)=>E(k,S)),onBack:P[7]||(P[7]=k=>L())},null,8,["id","project-name","type","can-undo"])]),_:1})):Fe("",!0)]),_:1},8,["modelValue"])])}}}),t1e={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},n1e={"p-4":"",relative:"",border:"base b"},r1e={op50:"","font-mono":"","text-sm":""},i1e={op50:"","font-mono":"","text-sm":""},o1e={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},s1e=["src","alt"],l1e={key:1},a1e=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return J1("Escape",()=>{n("close")}),(i,o)=>(te(),ge("div",t1e,[Y("div",n1e,[o[1]||(o[1]=Y("p",null,"Screenshot error",-1)),Y("p",r1e,Me(e.file),1),Y("p",i1e,Me(e.name),1),Ne(Tt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:o[0]||(o[0]=l=>n("close"))})]),Y("div",o1e,[e.url?(te(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,s1e)):(te(),ge("div",l1e," Something was wrong, the image cannot be resolved. "))])]))}}),c1e=Xi(a1e,[["__scopeId","data-v-08ce44b7"]]),u1e={flex:"~ gap-2 items-center"},Nk=tt({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ke(!1),n=Se(()=>{if(e.task.type==="test"){const l=e.task.artifacts.find(u=>u.type==="internal:failureScreenshot");if(l!==void 0)return l}return null}),i=Se(()=>n.value&&n.value.attachments.length&&Pl(n.value.attachments[0]));function o(){if(n.value===null||n.value.attachments.length===0)return;const l=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(l)}`)}return(l,u)=>{const f=ir("tooltip");return i.value?(te(),ge(nt,{key:0},[Y("div",u1e,[st(Ne(Tt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:u[0]||(u[0]=h=>t.value=!0)},null,512),[[f,"View screenshot error",void 0,{bottom:!0}]]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:o},null,512)),[[f,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(te(),We($k,{key:i.value,modelValue:t.value,"onUpdate:modelValue":u[2]||(u[2]=h=>t.value=h),direction:"right"},{default:je(()=>[Ne(c1e,{file:e.task.file.filepath,name:e.task.name,url:i.value,onClose:u[1]||(u[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):Fe("",!0)}}}),f1e={class:"scrolls scrolls-rounded task-error"},d1e=["onClickPassive"],h1e=["innerHTML"],p1e=tt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=Se(()=>Qg(Po.value)),o=Se(()=>!!t.error?.diff),l=Se(()=>t.error.diff?i.value.toHtml(Wa(t.error.diff)):void 0);function u(f){return _ge(f.file,t.filename)?Lge(t.fileId,f):Zg(f.file,f.line,f.column)}return(f,h)=>{const p=ir("tooltip");return te(),ge("div",f1e,[Y("pre",null,[Y("b",null,Me(e.error.name),1),Qe(": "+Me(e.error.message),1)]),(te(!0),ge(nt,null,xn(e.error.stacks,(g,v)=>(te(),ge("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Me(n(g.file))+":"+Me(g.line)+":"+Me(g.column),1),st(Y("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>u(g)},null,40,d1e),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),o.value?(te(),ge("pre",{key:0,"data-testid":"diff",innerHTML:l.value},null,8,h1e)):Fe("",!0)])}}}),Mk=Xi(p1e,[["__scopeId","data-v-bd36ee9a"]]),g1e={"h-full":"",class:"scrolls"},m1e=["id"],v1e={flex:"~ gap-2 items-center"},y1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},b1e=["innerHTML"],w1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},x1e=tt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(o,l){return o.result?.state!=="fail"?[]:o.type==="test"?[{...o,level:l}]:[{...o,level:l},...o.tasks.flatMap(u=>n(u,l+1))]}const i=Se(()=>{const o=t.file,l=o.tasks?.flatMap(h=>n(h,0))??[],u=o.result;if(u?.errors?.[0]){const h={id:o.id,file:o,name:o.name,fullName:o.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:u};l.unshift(h)}return l.length>0?$_(Po.value,l):l});return(o,l)=>(te(),ge("div",g1e,[i.value.length?(te(!0),ge(nt,{key:0},xn(i.value,u=>(te(),ge("div",{id:u.id,key:u.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Pt({"margin-left":`${u.result?.htmlError?.5:2*u.level+.5}rem`})},[Y("div",v1e,[Y("span",null,Me(u.name),1),Ne(Nk,{task:u},null,8,["task"])]),u.result?.htmlError?(te(),ge("div",y1e,[Y("pre",{innerHTML:u.result.htmlError},null,8,b1e)])):u.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(u.result.errors,(f,h)=>(te(),We(Mk,{key:h,error:f,filename:e.file.name,root:W(pt).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Fe("",!0)],4)],8,m1e))),128)):(te(),ge("div",w1e," All tests passed in this file "))]))}}),S1e=Xi(x1e,[["__scopeId","data-v-13572615"]]);function Lk(e,t){return Oge(e,t)}function Pf(e){const t=pt.value.root;return`${t?ud(t,e.file):e.file}:${e.line}:${e.column}`}const _1e=["href","referrerPolicy"],k1e=["src"],T1e=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=Se(()=>{const i=t.annotation.attachment,o=i.path||i.body;return typeof o=="string"&&(o.startsWith("http://")||o.startsWith("https://"))?o:Pl(i)});return(i,o)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:n.value,referrerPolicy:W(Ak)(e.annotation.attachment)?"no-referrer":void 0},[Y("img",{src:n.value},null,8,k1e)],8,_1e)):Fe("",!0)}}),C1e={class:"flex flex-col gap-4"},E1e={key:0},A1e=tt({__name:"ArtifactTemplate",setup(e){const t=Bx();return(n,i)=>(te(),ge("article",C1e,[Y("h1",null,[Bt(n.$slots,"title")]),W(t).message?(te(),ge("p",E1e,[Bt(n.$slots,"message")])):Fe("",!0),Bt(n.$slots,"default")]))}}),Ok=Symbol("tabContext"),If={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},$1e={class:"flex flex-col items-center gap-6"},N1e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},M1e=["id","aria-selected","aria-controls","onClick"],L1e=tt({__name:"SmallTabs",setup(e){const t=Ke(null),n=Ke([]),i=mg();return _r(Ok,{id:i,activeTab:t,registerTab:o=>{n.value.some(({id:l})=>l===o.id)||n.value.push(o),n.value.length===1&&(t.value=o.id)},unregisterTab:o=>{const l=n.value.findIndex(({id:u})=>u===o.id);l>-1&&n.value.splice(l,1),t.value===o.id&&(t.value=n.value[0]?.id??null)}}),(o,l)=>(te(),ge("div",$1e,[Y("div",N1e,[(te(!0),ge(nt,null,xn(n.value,u=>(te(),ge("button",{id:W(If).tab(u.id,W(i)),key:u.id,role:"tab","aria-selected":t.value===u.id,"aria-controls":W(If).tabpanel(u.id,W(i)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:f=>t.value=u.id},Me(u.title),9,M1e))),128))]),Bt(o.$slots,"default")]))}}),O1e=["id","aria-labelledby","hidden"],Ou=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,n=bn(Ok);if(!n)throw new Error("TabPane must be used within Tabs");const i=mg(),o=Se(()=>n.activeTab.value===i);return Yi(()=>{n.registerTab({...t,id:i})}),_c(()=>{n.unregisterTab({...t,id:i})}),(l,u)=>(te(),ge("div",{id:W(If).tabpanel(W(i),W(n).id),role:"tabpanel","aria-labelledby":W(If).tab(W(i),W(n).id),hidden:!o.value,class:"max-w-full"},[Bt(l.$slots,"default")],8,O1e))}}),Rk=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(n,i)=>(te(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Pt({backgroundImage:t})},[Bt(n.$slots,"default")],4))}}),R1e=["href","referrerPolicy"],P1e=["src"],Xh=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=Se(()=>Yp(e.attachment));return(n,i)=>(te(),We(Rk,null,{default:je(()=>[Y("a",{target:"_blank",href:t.value,referrerPolicy:W(Ak)(e.attachment)?"no-referrer":void 0},[Y("img",{src:t.value},null,8,P1e)],8,R1e)]),_:1}))}}),I1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},D1e=["src"],F1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},z1e=["src"],H1e=["id"],B1e=["for"],j1e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=Se(()=>Yp(e.reference)),n=Se(()=>Yp(e.actual)),i=Se(()=>Math.max(e.reference.width,e.actual.width)),o=Se(()=>Math.max(e.reference.height,e.actual.height)),l=Ke(50),u=mg();return(f,h)=>(te(),We(Rk,null,{default:je(()=>[Y("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Pt({"--split":`${l.value}%`,aspectRatio:`${i.value} / ${o.value}`,width:`${i.value}px`})},[Y("div",I1e,[Y("img",{src:t.value},null,8,D1e)]),Y("div",F1e,[Y("img",{src:n.value},null,8,z1e)]),h[1]||(h[1]=Y("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(Y("input",{id:W(u),"onUpdate:modelValue":h[0]||(h[0]=p=>l.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,H1e),[[y1,l.value]]),Y("output",{for:W(u),class:"sr-only"}," Showing "+Me(l.value)+"% reference, "+Me(100-l.value)+"% actual ",9,B1e)],4)]),_:1}))}}),W1e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=Se(()=>({diff:e.regression.attachments.find(n=>n.name==="diff"),reference:e.regression.attachments.find(n=>n.name==="reference"),actual:e.regression.attachments.find(n=>n.name==="actual")}));return(n,i)=>(te(),We(A1e,null,{title:je(()=>[...i[0]||(i[0]=[Qe(" Visual Regression ",-1)])]),message:je(()=>[Qe(Me(e.regression.message),1)]),default:je(()=>[Ne(L1e,null,{default:je(()=>[t.value.diff?(te(),We(Ou,{key:t.value.diff.path,title:"Diff"},{default:je(()=>[Ne(Xh,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference?(te(),We(Ou,{key:t.value.reference.path,title:"Reference"},{default:je(()=>[Ne(Xh,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.actual?(te(),We(Ou,{key:t.value.actual.path,title:"Actual"},{default:je(()=>[Ne(Xh,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference&&t.value.actual?(te(),We(Ou,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:je(()=>[Ne(j1e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Fe("",!0)]),_:1})]),_:1}))}}),q1e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},U1e=["onClick"],V1e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},G1e=tt({__name:"Artifacts",props:{test:{}},setup(e){const t=Se(()=>{const n=[];for(const i of e.test.artifacts)switch(i.type){case"internal:toMatchScreenshot":{i.kind==="visual-regression"&&n.push({artifact:i,component:W1e,props:{regression:i}});continue}}return n});return(n,i)=>{const o=ir("tooltip");return t.value.length?(te(),ge(nt,{key:0},[i[0]||(i[0]=Y("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ge(nt,null,xn(t.value,({artifact:l,component:u,props:f},h)=>(te(),ge("div",{key:l.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",q1e,[Y("div",null,[l.location&&l.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,l.location)},[Qe(Me(W(Pf)(l.location)),1)],8,U1e)),[[o,"Open in Editor",void 0,{bottom:!0}]]):l.location&&l.location.file!==e.test.file.filepath?(te(),ge("span",V1e,Me(W(Pf)(l.location)),1)):Fe("",!0)])]),(te(),We(sf(u),ci({ref_for:!0},f),null,16))]))),128))],64)):Fe("",!0)}}}),K1e={"h-full":"",class:"scrolls"},Y1e={key:0},X1e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},J1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Z1e=["innerHTML"],Q1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},eSe={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},tSe={class:"flex gap-2","overflow-hidden":""},nSe={class:"font-bold","ws-nowrap":"",truncate:""},rSe=["href","download"],iSe=["onClick"],oSe={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},sSe={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lSe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},aSe={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},cSe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},uSe=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=Se(()=>!t.test.result||!t.test.result.errors?.length?null:$_(Po.value,[t.test])[0]),i=new Set(["benchmark","typecheck"]),o=Se(()=>Object.entries(t.test.meta).filter(([l])=>!i.has(l)));return(l,u)=>{const f=ir("tooltip");return te(),ge("div",K1e,[n.value?(te(),ge("div",Y1e,[Y("div",X1e,[Ne(Nk,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(te(),ge("div",J1e,[Y("pre",{innerHTML:e.test.result.htmlError},null,8,Z1e)])):e.test.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(e.test.result.errors,(h,p)=>(te(),We(Mk,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:W(pt).root},null,8,["file-id","error","filename","root"]))),128)):Fe("",!0)])])):(te(),ge("div",Q1e," The test has passed without any errors ")),e.test.annotations.length?(te(),ge(nt,{key:2},[u[1]||(u[1]=Y("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ge(nt,null,xn(e.test.annotations,h=>(te(),ge("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",eSe,[Y("div",tSe,[Y("span",nSe,Me(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(Pl)(h.attachment),download:W(Ek)(h.message,h.attachment.contentType)},[...u[0]||(u[0]=[Y("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,rSe)):Fe("",!0)]),Y("div",null,[h.location&&h.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,h.location)},[Qe(Me(W(Pf)(h.location)),1)],8,iSe)),[[f,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(te(),ge("span",oSe,Me(W(Pf)(h.location)),1)):Fe("",!0)])]),Y("div",sSe,Me(h.message),1),Ne(T1e,{annotation:h},null,8,["annotation"])]))),128))],64)):Fe("",!0),Ne(G1e,{test:e.test},null,8,["test"]),o.value.length?(te(),ge(nt,{key:3},[u[2]||(u[2]=Y("h1",{"m-2":""}," Test Meta ",-1)),Y("div",lSe,[(te(!0),ge(nt,null,xn(o.value,([h,p])=>(te(),ge(nt,{key:h},[Y("div",aSe,Me(h),1),Y("pre",cSe,Me(p),1)],64))),128))])],64)):Fe("",!0)])}}}),fSe=Xi(uSe,[["__scopeId","data-v-da767a0b"]]),dSe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},hSe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},pSe={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},gSe={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},mSe={"op-50":"",truncate:""},vSe=["title"],ySe={class:"flex text-lg"},bSe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},wSe={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},xSe={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},SSe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},_Se=["flex-1"],$w=tt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),n=Ke(!1),i=Ke(!1),o=Ke(!1),l=Ke(void 0),u=Ke(!0),f=Se(()=>Fi.value?ft.state.idMap.get(Fi.value):void 0),h=Se(()=>{const I=Xt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=Se(()=>Xt.value&&Xg(Xt.value)),g=Se(()=>!!Xt.value?.meta?.typecheck);function v(){const I=Xt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function y(I){I==="graph"&&(i.value=!0),yn.value=I}const w=Se(()=>j_.value?.reduce((I,{size:q})=>I+q,0)??0);function $(I){n.value=I}const _=/[/\\]node_modules[/\\]/;async function C(I=!1){if(!(o.value||h.value?.filepath===l.value&&!I)){o.value=!0,await At();try{const q=h.value;if(!q){o.value=!1;return}if(I||!l.value||q.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let X=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!gr);u.value&&(pr&&(X=typeof window.structuredClone<"u"?window.structuredClone(X):aP(X)),X.inlined=X.inlined.filter(ie=>!_.test(ie)),X.externalized=X.externalized.filter(ie=>!_.test(ie))),t.value=vxe(X,q.filepath),l.value=q.filepath}y("graph")}finally{await new Promise(q=>setTimeout(q,100)),o.value=!1}}}Y1(()=>[h.value,yn.value,u.value],([,I,q],X)=>{I==="graph"&&C(X&&q!==X[2])},{debounce:100,immediate:!0});const E=Se(()=>{const I=Xt.value?.file.projectName||"";return $e.colors.get(I)||Uu(Xt.value?.file.projectName)}),L=Se(()=>m_(E.value)),D=Se(()=>{const I=Fi.value;if(!I)return Xt.value?.name;const q=[];let X=ft.state.idMap.get(I);for(;X;)q.push(X.name),X=X.suite;return q.reverse().join(" > ")}),N=Se(()=>{const I=Fi.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(X=>({name:X,description:CP.value[X]?.description,bg:Uu(X,!0),border:Uu(X),text:"white"})):[]});return(I,q)=>{const X=ir("tooltip");return W(Xt)?(te(),ge("div",dSe,[Y("div",null,[Y("div",hSe,[Ne(Tk,{state:W(Xt).result?.state,mode:W(Xt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?st((te(),ge("div",pSe,null,512)),[[X,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),W(Xt)?.file.projectName?(te(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Pt({backgroundColor:E.value,color:L.value}),"cursor-default":""},Me(W(Xt).file.projectName),5)):Fe("",!0),Y("div",gSe,[Y("span",mSe,Me(D.value),1),(te(!0),ge(nt,null,xn(N.value,ie=>st((te(),ge("span",{key:ie.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Pt({backgroundColor:ie.bg,color:ie.text,border:`1px solid ${ie.border}`}),title:ie.description,"cursor-default":"",flex:"","items-center":""},[Qe(Me(ie.name),1)],12,vSe)),[[X,ie.description,void 0,{bottom:!0}]])),128))]),Y("div",ySe,[W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Xt)?.filepath,onClick:v},null,8,["disabled"])),[[X,"Open in editor",void 0,{bottom:!0}]]),W(gr)?(te(),We(hd,{key:1})):Fe("",!0)])]),Y("div",bSe,[Y("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=ie=>y(null))},[...q[5]||(q[5]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="graph"}]),onClick:q[1]||(q[1]=ie=>y("graph"))},[o.value?(te(),ge("span",wSe)):(te(),ge("span",xSe)),q[6]||(q[6]=Qe(" Module Graph ",-1))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="editor"}]),onClick:q[2]||(q[2]=ie=>y("editor"))},[q[7]||(q[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Me(n.value?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="console",op20:W(yn)!=="console"&&w.value===0}]),onClick:q[3]||(q[3]=ie=>y("console"))},[q[8]||(q[8]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Me(w.value)+") ",1)],2)])]),Y("div",SSe,[i.value?(te(),ge("div",{key:0,"flex-1":W(yn)==="graph"&&""},[st(Ne(e1e,{modelValue:u.value,"onUpdate:modelValue":q[4]||(q[4]=ie=>u.value=ie),graph:t.value,"data-testid":"graph","project-name":W(Xt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Co,W(yn)==="graph"&&!o.value]])],8,_Se)):Fe("",!0),W(yn)==="editor"?(te(),We(Lxe,{key:W(Xt).id,file:W(Xt),"data-testid":"editor",onDraft:$},null,8,["file"])):W(yn)==="console"?(te(),We($xe,{key:2,file:W(Xt),"data-testid":"console"},null,8,["file"])):!W(yn)&&!f.value&&W(Xt)?(te(),We(S1e,{key:3,file:W(Xt),"data-testid":"report"},null,8,["file"])):!W(yn)&&f.value?(te(),We(fSe,{key:4,test:f.value,"data-testid":"report"},null,8,["test"])):Fe("",!0)])])):Fe("",!0)}}}),kSe=""+new URL("../favicon.svg",import.meta.url).href;function TSe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Zu;function Xp(){Xp.init||(Xp.init=!0,Zu=TSe()!==-1)}var vd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Xp(),At(()=>{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",Zu&&this.$el.appendChild(e),e.data="about:blank",Zu||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&&(!Zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const CSe=Ex();Tx("data-v-b329ee4c");const ESe={class:"resize-observer",tabindex:"-1"};Cx();const ASe=CSe((e,t,n,i,o,l)=>(te(),We("div",ESe)));vd.render=ASe;vd.__scopeId="data-v-b329ee4c";vd.__file="src/components/ResizeObserver.vue";function Qu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qu=function(t){return typeof t}:Qu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function $Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function MSe(e,t,n){return t&&NSe(e.prototype,t),e}function Nw(e){return LSe(e)||OSe(e)||RSe(e)||PSe()}function LSe(e){if(Array.isArray(e))return Jp(e)}function OSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function RSe(e,t){if(e){if(typeof e=="string")return Jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jp(e,t)}}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function PSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ISe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function DSe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===o)){var y=n.leading;typeof y=="function"&&(y=y(h,o)),(!i||h!==o)&&y&&e.apply(void 0,[h].concat(Nw(l))),o=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Nw(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function Pk(e,t){if(e===t)return!0;if(Qu(e)==="object"){for(var n in e)if(!Pk(e[n],t[n]))return!1;return!0}return!1}var FSe=(function(){function e(t,n,i){$Se(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return MSe(e,[{key:"createObserver",value:function(n,i){var o=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=ISe(n),this.callback=function(f,h){o.options.callback(f,h),f&&o.options.once&&(o.frozen=!0,o.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=DSe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(o.callback){var g=h.isIntersecting&&h.intersectionRatio>=o.threshold;if(g===o.oldResult)return;o.oldResult=g,o.callback(g,h)}},this.options.intersection),At(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ik(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new FSe(e,i,n);e._vue_visibilityState=o}}function zSe(e,t,n){var i=t.value,o=t.oldValue;if(!Pk(i,o)){var l=e._vue_visibilityState;if(!i){Dk(e);return}l?l.createObserver(i,n):Ik(e,{value:i},n)}}function Dk(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var HSe={beforeMount:Ik,updated:zSe,unmounted:Dk},BSe={itemsLimit:1e3},jSe=/(auto|scroll)/;function Fk(e,t){return e.parentNode===null?t:Fk(e.parentNode,t.concat([e]))}var Jh=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},WSe=function(t){return Jh(t,"overflow")+Jh(t,"overflow-y")+Jh(t,"overflow-x")},qSe=function(t){return jSe.test(WSe(t))};function Mw(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fk(e.parentNode,[]),n=0;n<t.length;n+=1)if(qSe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}var USe={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function VSe(){return this.items.length&&Zp(this.items[0])!=="object"}var Qp=!1;if(typeof window<"u"){Qp=!1;try{var GSe=Object.defineProperty({},"passive",{get:function(){Qp=!0}});window.addEventListener("test",null,GSe)}catch{}}let KSe=0;var vm={name:"RecycleScroller",components:{ResizeObserver:vd},directives:{ObserveVisibility:HSe},props:{...USe,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,i=this.minItemSize;let o=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<o&&(o=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=o,e}return[]},simpleArray:VSe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,o=t.length;i<o;i++)n[t[i][e]]=i;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const l=Vf({id:KSe++,index:t,used:!0,key:i,type:o}),u=hg({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,$=this.itemIndexByKey;let _,C,E,L,D;if(!p)_=C=L=D=E=0;else if(this.$_prerender)_=L=0,C=D=Math.min(this.prerender,h.length),E=null;else{const U=this.getScroll();if(t){let O=U.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<l||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const K=this.buffer;U.start-=K,U.end+=K;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,U.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;U.end+=O}if(n===null){let O,k=0,S=p-1,R=~~(p/2),B;do B=R,O=g[R].accumulator,O<U.start?k=R:R<p-1&&g[R+1].accumulator>U.start&&(S=R),R=~~((k+S)/2);while(R!==B);for(R<0&&(R=0),_=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<U.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),L=_;L<p&&P+g[L].accumulator<U.start;L++);for(D=L;D<p&&P+g[D].accumulator<U.end;D++);}else{_=~~(U.start/n*i);const O=_%i;_-=O,C=Math.ceil(U.end/n*i),L=Math.max(0,Math.floor((U.start-P)/n*i)),D=Math.floor((U.end-P)/n*i),_<0&&(_=0),C>p&&(C=p),L<0&&(L=0),D>p&&(D=p),E=Math.ceil(p/i)*n}}C-_>BSe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let N;const I=_<=this.$_endIndex&&C>=this.$_startIndex;if(I)for(let U=0,K=w.length;U<K;U++)N=w[U],N.nr.used&&(e&&(N.nr.index=$[N.item[f]]),(N.nr.index==null||N.nr.index<_||N.nr.index>=C)&&this.unuseView(N));const q=I?null:new Map;let X,ie,J;for(let U=_;U<C;U++){X=h[U];const K=f?X[f]:X;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${f}')`);if(N=v.get(K),!n&&!g[U].size){N&&this.unuseView(N);continue}ie=X[u];let P=y.get(ie),O=!1;if(!N)I?P&&P.length?N=P.pop():N=this.addView(w,U,X,K,ie):(J=q.get(ie)||0,(!P||J>=P.length)&&(N=this.addView(w,U,X,K,ie),this.unuseView(N,!0),P=y.get(ie)),N=P[J],q.set(ie,J+1)),v.delete(N.nr.key),N.nr.used=!0,N.nr.index=U,N.nr.key=K,N.nr.type=ie,v.set(K,N),O=!0;else if(!N.nr.used&&(N.nr.used=!0,O=!0,P)){const k=P.indexOf(N);k!==-1&&P.splice(k,1)}N.item=X,O&&(U===h.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),n===null?(N.position=g[U-1].accumulator,N.offset=0):(N.position=Math.floor(U/i)*n,N.offset=U%i*o)}return this.$_startIndex=_,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",_,C,L,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Mw(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),l=n?o.height:o.width;let u=-(n?o.top:o.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Qp?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const l=Mw(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,o=e+u+p}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const YSe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},XSe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function JSe(e,t,n,i,o,l){const u=ys("ResizeObserver"),f=ir("observe-visibility");return st((te(),ge("div",{class:ot(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(te(),ge("div",YSe,[Bt(e.$slots,"before")],512)):Fe("v-if",!0),(te(),We(sf(n.listTag),{ref:"wrapper",style:Pt({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:je(()=>[(te(!0),ge(nt,null,xn(o.pool,h=>(te(),We(sf(n.itemTag),ci({key:h.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===h.nr.key}]]},cA(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=h.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:je(()=>[Bt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Bt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ge("div",XSe,[Bt(e.$slots,"after")],512)):Fe("v-if",!0),Ne(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}vm.render=JSe;vm.__file="src/components/RecycleScroller.vue";function ZSe(e,t,n){const i=Se(()=>Mp.value?!1:!Ze.onlyTests),o=Se(()=>Hr.value===""),l=Ke(Hr.value),u=Se(()=>Fr.value==="default");yt(()=>Np.value,w=>{!w&&(Fr.value==="asc"||Fr.value==="desc")&&(Fr.value="default")}),Y1(()=>Hr.value,w=>{l.value=w?.trim()??""},{debounce:256});function f(w){Hr.value="",w&&e.value?.focus()}function h(w){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.slow=!1,Ze.onlyTests=!1,w&&e.value?.focus()}function p(w){ml.value=Bl,w&&t.value?.focus()}function g(w){Fr.value="default",w&&n.value?.focus()}function v(){h(!1),f(!0),p(!1),g(!1)}function y(w,$,_,C,E,L,D,N){Ml.value&&(Ht.value.search=w?.trim()??"",Ht.value.failed=$,Ht.value.success=_,Ht.value.skipped=C,Ht.value.slow=E,Ht.value.onlyTests=L,Ht.value.project=D,Ht.value.projectSort=N==="default"?void 0:N)}return yt(()=>[l.value,Ze.failed,Ze.success,Ze.skipped,Ze.slow,Ze.onlyTests,ml.value,Fr.value],([w,$,_,C,E,L,D,N])=>{y(w,$,_,C,E,L,D,N),$e.filterNodes()},{flush:"post"}),yt(()=>Kr.value.length,w=>{w&&(Ht.value.expandAll=void 0)},{flush:"post"}),{initialized:Ml,filter:Ze,search:Hr,disableFilter:i,isFiltered:y_,isFilteredByStatus:Mp,disableClearSearch:o,clearAll:v,clearSearch:f,clearFilter:h,filteredFiles:fd,testsTotal:yP,uiEntries:rr,searchMatcher:vo,enableProjects:Np,disableClearProjects:pP,currentProject:ml,currentProjectName:Gg,clearProject:p,projectSort:Fr,clearProjectSort:g,disableClearProjectSort:u}}const QSe=["disabled"],e_e={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},Ca=tt({__name:"FilterStatus",props:Xa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue");function n(){e.disabled||(t.value=!t.value)}return(i,o)=>(te(),ge("label",ci({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},i.$attrs,{onClick:Fu(n,["prevent"])}),[Y("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,QSe),[[b1,t.value]]),Y("span",e_e,Me(e.label),1)],16))}}),t_e=["open"],n_e=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(n,i)=>(te(),ge("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Bt(n.$slots,"summary",{open:t.value}),i[2]||(i[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Bt(n.$slots,"default")],40,t_e))}}),r_e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},i_e=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,n)=>(te(),ge("button",r_e,[Y("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),o_e=["aria-label","data-current"],s_e={key:1,"w-4":""},l_e={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},a_e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},c_e={"text-sm":"",truncate:"","font-light":""},u_e=["innerHTML"],f_e={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},d_e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},h_e={key:1},p_e=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>ft.state.idMap.get(e.taskId)),n=Se(()=>{if(pr)return!1;const C=t.value;return C&&Xg(C)});function i(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?$e.collapseNode(e.taskId):$e.expandNode(e.taskId)}async function o(C){e.onItemClick?.(C),$a.value&&(Ef.value=!0,await At()),e.type==="file"?await im([C.file]):await gme(C)}function l(C){return ft.rpc.updateSnapshot(C.file)}const u=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=Se(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Se(()=>pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>v_(e.name)),g=Se(()=>{const C=vP.value,E=p.value;return C?E.replace(C,L=>`<span class="highlight">${L}</span>`):E}),v=Se(()=>e.type!=="file"&&e.disableTaskLocation),y=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>v.value?"color-red5 dark:color-#f43f5e":null);function $(){const C=t.value;e.type==="file"?e.onItemClick?.(C):L_(C)}const _=Se(()=>m_(e.projectNameColor));return(C,E)=>{const L=ir("tooltip");return t.value?(te(),ge("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Pt(f.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:E[2]||(E[2]=D=>i())},[e.indent>0?(te(!0),ge(nt,{key:0},xn(u.value,D=>(te(),ge("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Fe("",!0),e.type==="file"||e.type==="suite"?(te(),ge("div",s_e,[Y("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Fe("",!0),Ne(Tk,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",l_e,[e.type==="file"&&e.typecheck?st((te(),ge("div",a_e,null,512)),[[L,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),Y("span",c_e,[e.type==="file"&&e.projectName?(te(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Pt({backgroundColor:e.projectNameColor,color:_.value})},Me(e.projectName),5)):Fe("",!0),Y("span",{class:ot(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:g.value},null,10,u_e)]),typeof e.duration=="number"?(te(),ge("span",{key:1,text:"xs",class:ot(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Me(e.duration>0?e.duration:"< 1")+"ms ",3)):Fe("",!0)]),Y("div",f_e,[!W(pr)&&n.value&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(i_e,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Fu(D=>l(t.value),["prevent","stop"]))},null,512)),[[L,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),Ne(W(wo),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:je(()=>[v.value?(te(),ge("div",d_e,[E[5]||(E[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[Qe(Me(y.value)+": this feature is not available, you have disabled ",1),E[3]||(E[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=Qe(" in your configuration file.",-1))]),E[6]||(E[6]=Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(te(),ge("div",h_e,Me(y.value),1))]),default:je(()=>[Ne(Tt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fu($,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:W(pt).api?.allowExec===!1,onClick:E[1]||(E[1]=Fu(D=>o(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[L,h.value,void 0,{bottom:!0}]])])],12,o_e)):Fe("",!0)}}}),g_e=Xi(p_e,[["__scopeId","data-v-7f38aded"]]),m_e={h:"full",flex:"~ col"},v_e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},y_e={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},b_e={class:"relative flex-1"},w_e=["value"],x_e=["value"],S_e={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},__e={class:"relative flex-1"},k_e={key:0,value:"asc",class:"text-base bg-base"},T_e={key:1,value:"desc",class:"text-base bg-base"},C_e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},E_e=["op"],A_e={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},$_e={"min-w-full":"",flex:"~ gap-2 items-center"},N_e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},M_e={"text-red-700":"","dark:text-red-500":""},L_e={"text-yellow-700":"","dark:text-yellow-500":""},O_e={"text-green-700":"","dark:text-green-500":""},R_e={class:"text-purple-700 dark:text-purple-400"},P_e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},I_e={key:0,"text-red":"","text-center":""},D_e={key:1,op30:""},F_e=["disabled"],z_e=["disabled"],H_e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},B_e=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=Se(()=>pt.value.includeTaskLocation),o=Se(()=>{const O=pt.value.slowTestThreshold;return typeof O=="number"?` (>${O}ms)`:""}),l=Ke(),u=Ke(),f=Ke(),{initialized:h,filter:p,search:g,disableFilter:v,isFiltered:y,isFilteredByStatus:w,disableClearSearch:$,clearAll:_,clearSearch:C,clearFilter:E,filteredFiles:L,testsTotal:D,uiEntries:N,enableProjects:I,disableClearProjects:q,currentProject:X,currentProjectName:ie,clearProject:J,clearProjectSort:U,disableClearProjectSort:K,searchMatcher:P}=ZSe(l,u,f);return(O,k)=>{const S=ir("tooltip");return te(),ge("div",m_e,[Y("div",null,[Y("div",v_e,[Bt(O.$slots,"header",{filteredFiles:W(y)||W(w)?W(L):void 0})]),W(I)?(te(),ge("div",y_e,[k[19]||(k[19]=Y("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),k[20]||(k[20]=Y("label",{for:"project-select","text-sm":""}," Projects ",-1)),Y("div",b_e,[st(Y("select",{id:"project-select",ref_key:"selectProjectRef",ref:u,"onUpdate:modelValue":k[0]||(k[0]=R=>Lt(X)?X.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[Y("option",{value:W(Bl),class:"text-base bg-base"}," All Projects ",8,w_e),(te(!0),ge(nt,null,xn(W(rm),R=>(te(),ge("option",{key:R,value:R,class:"text-base bg-base"},Me(R),9,x_e))),128))],512),[[r0,W(X)]]),k[18]||(k[18]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(q),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:k[1]||(k[1]=R=>W(J)(!0))},null,8,["disabled"]),[[S,"Clear project filter",void 0,{bottom:!0}]])])):Fe("",!0),Y("div",S_e,[k[25]||(k[25]=Y("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),k[26]||(k[26]=Y("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),Y("div",__e,[st(Y("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":k[2]||(k[2]=R=>Lt(Fr)?Fr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[k[21]||(k[21]=Y("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),k[22]||(k[22]=Y("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),k[23]||(k[23]=Y("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),W(I)?(te(),ge("option",k_e," Project A-Z ")):Fe("",!0),W(I)?(te(),ge("option",T_e," Project Z-A ")):Fe("",!0)],512),[[r0,W(Fr)]]),k[24]||(k[24]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:k[3]||(k[3]=R=>W(U)(!0))},null,8,["disabled"]),[[S,"Reset sort",void 0,{bottom:!0}]])]),Y("div",C_e,[k[27]||(k[27]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(Y("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":k[4]||(k[4]=R=>Lt(g)?g.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(g).length?"100":"50",onKeydown:[k[5]||(k[5]=gp(R=>W(C)(!1),["esc"])),k[6]||(k[6]=gp(R=>n("run",W(y)||W(w)?W(L):void 0),["enter"]))]},null,40,E_e),[[y1,W(g)]]),st(Ne(Tt,{disabled:W($),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:k[7]||(k[7]=R=>W(C)(!0))},null,8,["disabled"]),[[S,"Clear search",void 0,{bottom:!0}]])]),Y("div",A_e,[Y("div",$_e,[k[28]||(k[28]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),k[29]||(k[29]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ne(Tt,{disabled:W(v),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:k[8]||(k[8]=R=>W(E)(!1))},null,8,["disabled"]),[[S,"Clear Filter",void 0,{bottom:!0}]])]),Ne(Ca,{modelValue:W(p).failed,"onUpdate:modelValue":k[9]||(k[9]=R=>W(p).failed=R),label:"Fail"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).success,"onUpdate:modelValue":k[10]||(k[10]=R=>W(p).success=R),label:"Pass"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).skipped,"onUpdate:modelValue":k[11]||(k[11]=R=>W(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).onlyTests,"onUpdate:modelValue":k[12]||(k[12]=R=>W(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).slow,"onUpdate:modelValue":k[13]||(k[13]=R=>W(p).slow=R),label:`Slow${o.value}`},null,8,["modelValue","label"])])]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:k[17]||(k[17]=(...R)=>W(T0)&&W(T0)(...R))},[Ne(n_e,null,aA({default:je(()=>[(W(y)||W(w)||W(ie))&&W(N).length===0?(te(),ge(nt,{key:0},[W(h)?(te(),ge("div",P_e,[W(P).error?(te(),ge("div",I_e,Me(W(P).error),1)):(te(),ge("div",D_e," No matched test ")),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W($)?null:"hover:op100"),disabled:W($),onClickPassive:k[14]||(k[14]=R=>W(C)(!0))}," Clear Search ",42,F_e),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(v)?null:"hover:op100"),disabled:W(v),onClickPassive:k[15]||(k[15]=R=>W(E)(!0))}," Clear Filter ",42,z_e),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:k[16]||(k[16]=(...R)=>W(_)&&W(_)(...R))}," Clear All ",32)])):(te(),ge("div",H_e,[...k[32]||(k[32]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(vm),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(N),buffer:100},{default:je(({item:R})=>[Ne(g_e,{class:ot(["h-28px m-0 p-0",W(Fi)===R.id||!W(Fi)&&W(Io)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:W(Io)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!i.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(h)?{name:"summary",fn:je(()=>[Y("div",N_e,[Y("span",M_e," FAIL ("+Me(W(D).failed)+") ",1),k[30]||(k[30]=Y("span",null,"/",-1)),Y("span",L_e," RUNNING ("+Me(W(D).running)+") ",1),Y("span",O_e," PASS ("+Me(W(D).success)+") ",1),k[31]||(k[31]=Y("span",null,"/",-1)),Y("span",R_e," SKIP ("+Me(W(p).onlyTests?W(D).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),j_e={class:"flex text-lg"},W_e=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const n=Se(()=>Po.value?"light":"dark");async function i(f){pt.value.api?.allowExec!==!1&&($a.value&&(Ef.value=!0,await At(),Do.value&&(Af(!0),await At())),f?.length?await im(f):await hme())}function o(){$e.collapseAllNodes()}function l(){$e.expandAllNodes()}function u(f){return pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":f?f.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(f,h)=>{const p=ir("tooltip");return te(),We(B_e,{border:"r base","on-item-click":W(Dge),nested:!0,onRun:i},{header:je(({filteredFiles:g})=>[h[8]||(h[8]=Y("img",{"w-6":"","h-6":"",src:kSe,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",j_e,[st(Ne(Tt,{title:"Collapse tests",disabled:!W(Ml),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>o())},null,8,["disabled"]),[[Co,!W(Eb)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Ne(Tt,{disabled:!W(Ml),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>l())},null,8,["disabled"]),[[Co,W(Eb)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(Af)(!0))},null,512),[[Co,W(Pp)&&!W($a)||!W(vl)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Pp)&&!W($a)?(te(),We(W(wo),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:je(()=>[...h[6]||(h[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:je(()=>[h[7]||(h[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Fe("",!0),W($a)?st((te(),We(Tt,{key:1,disabled:W(Ef),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(Fge)())},null,8,["disabled"])),[[Co,!W(Do)],[p,"Coverage",void 0,{bottom:!0}]]):Fe("",!0),W($e).summary.failedSnapshot&&!W(pr)&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(Tt,{key:2,icon:"i-carbon:result-old",disabled:!W($e).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W($e).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),W(pr)?Fe("",!0):st((te(),We(Tt,{key:3,disabled:g?.length===0||!W(pt).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>i(g)},null,8,["disabled","onClick"])),[[p,u(g),void 0,{bottom:!0}]]),st(Ne(Tt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W(uP)())},null,512),[[p,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),q_e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},U_e=tt({__name:"ProgressBar",setup(e){const{width:t}=rS(),n=Se(()=>[$e.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ol.value&&"in-progress"].filter(Boolean).join(" ")),i=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesSuccess/f:0}),o=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesFailed/f:0}),l=Se(()=>$e.summary.files-$e.summary.filesFailed-$e.summary.filesSuccess),u=Se(()=>{const f=$e.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(te(),ge("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(n.value)},[Y("div",q_e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:ot(n.value),style:Pt(`width: ${o.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${o.value}px; width: ${i.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${i.value+o.value}px; width: ${u.value}px;`)},"   ",6)])],2))}}),V_e=Xi(U_e,[["__scopeId","data-v-d5dc96ee"]]),G_e={"h-screen":"","w-screen":"",overflow:"hidden"},K_e={key:1,flex:"~ col","h-full":""},Y_e={"h-full":"","overflow-hidden":""},X_e=tt({__name:"index",setup(e){const t=Ige(),n=yu(({panes:g})=>{h(),f(g)},0),i=yu(({panes:g})=>{g.forEach((v,y)=>{yl.value[y]=v.size}),u(g),p()},0),o=yu(({panes:g})=>{g.forEach((v,y)=>{ms.value[y]=v.size}),f(g),p()},0),l=yu(({panes:g})=>{u(g),h()},0);function u(g){fn.navigation=g[0].size,g[1]&&(fn.details.size=g[1].size)}function f(g){fn.details.browser=g[0].size,g[1]&&(fn.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ge(nt,null,[Ne(V_e),Y("div",G_e,[Ne(W(M0),{class:"pt-4px",onResized:W(i),onResize:W(l)},{default:je(()=>[Ne(W(xu),{size:W(yl)[0]},{default:je(()=>[Ne(W_e)]),_:1},8,["size"]),Ne(W(xu),{size:W(yl)[1]},{default:je(()=>[W(gr)?(te(),ge("div",K_e,[Ne(W(M0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(Tn)==="bottom",class:ot(W(Tn)==="bottom"&&!W(Bi)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(n),onResized:W(o)},{default:je(()=>[Ne(W(xu),{size:W(ms)[0],"min-size":"10"},{default:je(()=>[v[0]||(Tl(-1,!0),(v[0]=Ne(Cme)).cacheIndex=0,Tl(1),v[0])]),_:1},8,["size"]),W(Bi)?(te(),We(W(xu),{key:0,size:W(ms)[1],"min-size":"10"},{default:je(()=>[Y("div",Y_e,[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))])]),_:1},8,["size"])):Fe("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(Tn)==="bottom"&&!W(Bi)?(te(),We(Ame,{key:0})):Fe("",!0)])):(te(),We(i$,{key:"ui-detail"},{default:je(()=>[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Mme)],64))}}),J_e=[{name:"index",path:"/",component:X_e,props:!0}];/*!
75
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;g&&(G=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,G),a.input.reset(),c.somethingSelected()||(d.value=s.prevInput=" "),s.contextMenuPending=ne,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function se(){if(d.selectionStart!=null){var we=c.somethingSelected(),Te="​"+(we?d.value:"");d.value="⇚",d.value=Te,s.prevInput=we?"":"​",d.selectionStart=1,d.selectionEnd=Te.length,a.selForContextMenu=c.doc.sel}}function ne(){if(s.contextMenuPending==ne&&(s.contextMenuPending=!1,s.wrapper.style.cssText=A,d.style.cssText=T,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&s.prevInput=="​"?rn(c,Fv)(c):we++<10?a.detectingSelectAll=setTimeout(Te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),U){Ji(r);var pe=function(){hn(window,"mouseup",pe),setTimeout(ne,20)};Xe(window,"mouseup",pe)}else setTimeout(ne,50)},qt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},qt.prototype.setUneditable=function(){},qt.prototype.needsContentAttribute=!1;function KC(r,s){if(s=s?Z(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var c=ve(He(r));s.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Xe(r.form,"submit",a),!s.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}s.finishInit=function(T){T.save=a,T.getTextArea=function(){return r},T.toTextArea=function(){T.toTextArea=isNaN,a(),r.parentNode.removeChild(T.getWrapperElement()),r.style.display="",r.form&&(hn(r.form,"submit",a),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Nt(function(T){return r.parentNode.insertBefore(T,r.nextSibling)},s);return x}function YC(r){r.off=hn,r.on=Xe,r.wheelEventPixels=nC,r.Doc=Mn,r.splitLines=br,r.countColumn=re,r.findColumn=me,r.isWordChar=et,r.Pass=j,r.signal=It,r.Line=Os,r.changeEnd=oo,r.scrollbarModel=pv,r.Pos=fe,r.cmpPos=Ie,r.modes=Es,r.mimeModes=Nr,r.resolveMode=As,r.getMode=$s,r.modeExtensions=eo,r.extendMode=Ns,r.copyState=Zr,r.startState=Ms,r.innerMode=ql,r.commands=pa,r.keyMap=_i,r.keyName=ey,r.isModifierKey=Zv,r.lookupKey=Vs,r.normalizeKeyMap=kC,r.StringStream=Ft,r.SharedTextMarker=fa,r.TextMarker=lo,r.LineWidget=ua,r.e_preventDefault=pn,r.e_stopPropagation=Ts,r.e_stop=Ji,r.addClass=_e,r.contains=ae,r.rmClass=P,r.keyNames=ao}HC(Nt),qC(Nt);var XC="iter insert remove copy getEditor constructor".split(" ");for(var du in Mn.prototype)Mn.prototype.hasOwnProperty(du)&&ce(XC,du)<0&&(Nt.prototype[du]=(function(r){return function(){return r.apply(this.doc,arguments)}})(Mn.prototype[du]));return Er(Mn),Nt.inputStyles={textarea:qt,contenteditable:xt},Nt.defineMode=function(r){!Nt.defaults.mode&&r!="null"&&(Nt.defaults.mode=r),Mr.apply(this,arguments)},Nt.defineMIME=jo,Nt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(r,s){Nt.prototype[r]=s},Nt.defineDocExtension=function(r,s){Mn.prototype[r]=s},Nt.fromTextArea=KC,YC(Nt),Nt.version="5.65.18",Nt}))})(Vu)),Vu.exports}var YP=Ho();const XP=Jg(YP);var Hh={},Ir={};const JP="Á",ZP="á",QP="Ă",eI="ă",tI="∾",nI="∿",rI="∾̳",iI="Â",oI="â",sI="´",lI="А",aI="а",cI="Æ",uI="æ",fI="⁡",dI="𝔄",hI="𝔞",pI="À",gI="à",mI="ℵ",vI="ℵ",yI="Α",bI="α",wI="Ā",xI="ā",SI="⨿",_I="&",kI="&",TI="⩕",CI="⩓",EI="∧",AI="⩜",$I="⩘",NI="⩚",MI="∠",LI="⦤",OI="∠",RI="⦨",PI="⦩",II="⦪",DI="⦫",FI="⦬",zI="⦭",HI="⦮",BI="⦯",jI="∡",WI="∟",qI="⊾",UI="⦝",VI="∢",GI="Å",KI="⍼",YI="Ą",XI="ą",JI="𝔸",ZI="𝕒",QI="⩯",e2="≈",t2="⩰",n2="≊",r2="≋",i2="'",o2="⁡",s2="≈",l2="≊",a2="Å",c2="å",u2="𝒜",f2="𝒶",d2="≔",h2="*",p2="≈",g2="≍",m2="Ã",v2="ã",y2="Ä",b2="ä",w2="∳",x2="⨑",S2="≌",_2="϶",k2="‵",T2="∽",C2="⋍",E2="∖",A2="⫧",$2="⊽",N2="⌅",M2="⌆",L2="⌅",O2="⎵",R2="⎶",P2="≌",I2="Б",D2="б",F2="„",z2="∵",H2="∵",B2="∵",j2="⦰",W2="϶",q2="ℬ",U2="ℬ",V2="Β",G2="β",K2="ℶ",Y2="≬",X2="𝔅",J2="𝔟",Z2="⋂",Q2="◯",eD="⋃",tD="⨀",nD="⨁",rD="⨂",iD="⨆",oD="★",sD="▽",lD="△",aD="⨄",cD="⋁",uD="⋀",fD="⤍",dD="⧫",hD="▪",pD="▴",gD="▾",mD="◂",vD="▸",yD="␣",bD="▒",wD="░",xD="▓",SD="█",_D="=⃥",kD="≡⃥",TD="⫭",CD="⌐",ED="𝔹",AD="𝕓",$D="⊥",ND="⊥",MD="⋈",LD="⧉",OD="┐",RD="╕",PD="╖",ID="╗",DD="┌",FD="╒",zD="╓",HD="╔",BD="─",jD="═",WD="┬",qD="╤",UD="╥",VD="╦",GD="┴",KD="╧",YD="╨",XD="╩",JD="⊟",ZD="⊞",QD="⊠",eF="┘",tF="╛",nF="╜",rF="╝",iF="└",oF="╘",sF="╙",lF="╚",aF="│",cF="║",uF="┼",fF="╪",dF="╫",hF="╬",pF="┤",gF="╡",mF="╢",vF="╣",yF="├",bF="╞",wF="╟",xF="╠",SF="‵",_F="˘",kF="˘",TF="¦",CF="𝒷",EF="ℬ",AF="⁏",$F="∽",NF="⋍",MF="⧅",LF="\\",OF="⟈",RF="•",PF="•",IF="≎",DF="⪮",FF="≏",zF="≎",HF="≏",BF="Ć",jF="ć",WF="⩄",qF="⩉",UF="⩋",VF="∩",GF="⋒",KF="⩇",YF="⩀",XF="ⅅ",JF="∩︀",ZF="⁁",QF="ˇ",ez="ℭ",tz="⩍",nz="Č",rz="č",iz="Ç",oz="ç",sz="Ĉ",lz="ĉ",az="∰",cz="⩌",uz="⩐",fz="Ċ",dz="ċ",hz="¸",pz="¸",gz="⦲",mz="¢",vz="·",yz="·",bz="𝔠",wz="ℭ",xz="Ч",Sz="ч",_z="✓",kz="✓",Tz="Χ",Cz="χ",Ez="ˆ",Az="≗",$z="↺",Nz="↻",Mz="⊛",Lz="⊚",Oz="⊝",Rz="⊙",Pz="®",Iz="Ⓢ",Dz="⊖",Fz="⊕",zz="⊗",Hz="○",Bz="⧃",jz="≗",Wz="⨐",qz="⫯",Uz="⧂",Vz="∲",Gz="”",Kz="’",Yz="♣",Xz="♣",Jz=":",Zz="∷",Qz="⩴",e3="≔",t3="≔",n3=",",r3="@",i3="∁",o3="∘",s3="∁",l3="ℂ",a3="≅",c3="⩭",u3="≡",f3="∮",d3="∯",h3="∮",p3="𝕔",g3="ℂ",m3="∐",v3="∐",y3="©",b3="©",w3="℗",x3="∳",S3="↵",_3="✗",k3="⨯",T3="𝒞",C3="𝒸",E3="⫏",A3="⫑",$3="⫐",N3="⫒",M3="⋯",L3="⤸",O3="⤵",R3="⋞",P3="⋟",I3="↶",D3="⤽",F3="⩈",z3="⩆",H3="≍",B3="∪",j3="⋓",W3="⩊",q3="⊍",U3="⩅",V3="∪︀",G3="↷",K3="⤼",Y3="⋞",X3="⋟",J3="⋎",Z3="⋏",Q3="¤",eH="↶",tH="↷",nH="⋎",rH="⋏",iH="∲",oH="∱",sH="⌭",lH="†",aH="‡",cH="ℸ",uH="↓",fH="↡",dH="⇓",hH="‐",pH="⫤",gH="⊣",mH="⤏",vH="˝",yH="Ď",bH="ď",wH="Д",xH="д",SH="‡",_H="⇊",kH="ⅅ",TH="ⅆ",CH="⤑",EH="⩷",AH="°",$H="∇",NH="Δ",MH="δ",LH="⦱",OH="⥿",RH="𝔇",PH="𝔡",IH="⥥",DH="⇃",FH="⇂",zH="´",HH="˙",BH="˝",jH="`",WH="˜",qH="⋄",UH="⋄",VH="⋄",GH="♦",KH="♦",YH="¨",XH="ⅆ",JH="ϝ",ZH="⋲",QH="÷",eB="÷",tB="⋇",nB="⋇",rB="Ђ",iB="ђ",oB="⌞",sB="⌍",lB="$",aB="𝔻",cB="𝕕",uB="¨",fB="˙",dB="⃜",hB="≐",pB="≑",gB="≐",mB="∸",vB="∔",yB="⊡",bB="⌆",wB="∯",xB="¨",SB="⇓",_B="⇐",kB="⇔",TB="⫤",CB="⟸",EB="⟺",AB="⟹",$B="⇒",NB="⊨",MB="⇑",LB="⇕",OB="∥",RB="⤓",PB="↓",IB="↓",DB="⇓",FB="⇵",zB="̑",HB="⇊",BB="⇃",jB="⇂",WB="⥐",qB="⥞",UB="⥖",VB="↽",GB="⥟",KB="⥗",YB="⇁",XB="↧",JB="⊤",ZB="⤐",QB="⌟",ej="⌌",tj="𝒟",nj="𝒹",rj="Ѕ",ij="ѕ",oj="⧶",sj="Đ",lj="đ",aj="⋱",cj="▿",uj="▾",fj="⇵",dj="⥯",hj="⦦",pj="Џ",gj="џ",mj="⟿",vj="É",yj="é",bj="⩮",wj="Ě",xj="ě",Sj="Ê",_j="ê",kj="≖",Tj="≕",Cj="Э",Ej="э",Aj="⩷",$j="Ė",Nj="ė",Mj="≑",Lj="ⅇ",Oj="≒",Rj="𝔈",Pj="𝔢",Ij="⪚",Dj="È",Fj="è",zj="⪖",Hj="⪘",Bj="⪙",jj="∈",Wj="⏧",qj="ℓ",Uj="⪕",Vj="⪗",Gj="Ē",Kj="ē",Yj="∅",Xj="∅",Jj="◻",Zj="∅",Qj="▫",e5=" ",t5=" ",n5=" ",r5="Ŋ",i5="ŋ",o5=" ",s5="Ę",l5="ę",a5="𝔼",c5="𝕖",u5="⋕",f5="⧣",d5="⩱",h5="ε",p5="Ε",g5="ε",m5="ϵ",v5="≖",y5="≕",b5="≂",w5="⪖",x5="⪕",S5="⩵",_5="=",k5="≂",T5="≟",C5="⇌",E5="≡",A5="⩸",$5="⧥",N5="⥱",M5="≓",L5="ℯ",O5="ℰ",R5="≐",P5="⩳",I5="≂",D5="Η",F5="η",z5="Ð",H5="ð",B5="Ë",j5="ë",W5="€",q5="!",U5="∃",V5="∃",G5="ℰ",K5="ⅇ",Y5="ⅇ",X5="≒",J5="Ф",Z5="ф",Q5="♀",e8="ffi",t8="ff",n8="ffl",r8="𝔉",i8="𝔣",o8="fi",s8="◼",l8="▪",a8="fj",c8="♭",u8="fl",f8="▱",d8="ƒ",h8="𝔽",p8="𝕗",g8="∀",m8="∀",v8="⋔",y8="⫙",b8="ℱ",w8="⨍",x8="½",S8="⅓",_8="¼",k8="⅕",T8="⅙",C8="⅛",E8="⅔",A8="⅖",$8="¾",N8="⅗",M8="⅜",L8="⅘",O8="⅚",R8="⅝",P8="⅞",I8="⁄",D8="⌢",F8="𝒻",z8="ℱ",H8="ǵ",B8="Γ",j8="γ",W8="Ϝ",q8="ϝ",U8="⪆",V8="Ğ",G8="ğ",K8="Ģ",Y8="Ĝ",X8="ĝ",J8="Г",Z8="г",Q8="Ġ",e4="ġ",t4="≥",n4="≧",r4="⪌",i4="⋛",o4="≥",s4="≧",l4="⩾",a4="⪩",c4="⩾",u4="⪀",f4="⪂",d4="⪄",h4="⋛︀",p4="⪔",g4="𝔊",m4="𝔤",v4="≫",y4="⋙",b4="⋙",w4="ℷ",x4="Ѓ",S4="ѓ",_4="⪥",k4="≷",T4="⪒",C4="⪤",E4="⪊",A4="⪊",$4="⪈",N4="≩",M4="⪈",L4="≩",O4="⋧",R4="𝔾",P4="𝕘",I4="`",D4="≥",F4="⋛",z4="≧",H4="⪢",B4="≷",j4="⩾",W4="≳",q4="𝒢",U4="ℊ",V4="≳",G4="⪎",K4="⪐",Y4="⪧",X4="⩺",J4=">",Z4=">",Q4="≫",eW="⋗",tW="⦕",nW="⩼",rW="⪆",iW="⥸",oW="⋗",sW="⋛",lW="⪌",aW="≷",cW="≳",uW="≩︀",fW="≩︀",dW="ˇ",hW=" ",pW="½",gW="ℋ",mW="Ъ",vW="ъ",yW="⥈",bW="↔",wW="⇔",xW="↭",SW="^",_W="ℏ",kW="Ĥ",TW="ĥ",CW="♥",EW="♥",AW="…",$W="⊹",NW="𝔥",MW="ℌ",LW="ℋ",OW="⤥",RW="⤦",PW="⇿",IW="∻",DW="↩",FW="↪",zW="𝕙",HW="ℍ",BW="―",jW="─",WW="𝒽",qW="ℋ",UW="ℏ",VW="Ħ",GW="ħ",KW="≎",YW="≏",XW="⁃",JW="‐",ZW="Í",QW="í",eq="⁣",tq="Î",nq="î",rq="И",iq="и",oq="İ",sq="Е",lq="е",aq="¡",cq="⇔",uq="𝔦",fq="ℑ",dq="Ì",hq="ì",pq="ⅈ",gq="⨌",mq="∭",vq="⧜",yq="℩",bq="IJ",wq="ij",xq="Ī",Sq="ī",_q="ℑ",kq="ⅈ",Tq="ℐ",Cq="ℑ",Eq="ı",Aq="ℑ",$q="⊷",Nq="Ƶ",Mq="⇒",Lq="℅",Oq="∞",Rq="⧝",Pq="ı",Iq="⊺",Dq="∫",Fq="∬",zq="ℤ",Hq="∫",Bq="⊺",jq="⋂",Wq="⨗",qq="⨼",Uq="⁣",Vq="⁢",Gq="Ё",Kq="ё",Yq="Į",Xq="į",Jq="𝕀",Zq="𝕚",Qq="Ι",eU="ι",tU="⨼",nU="¿",rU="𝒾",iU="ℐ",oU="∈",sU="⋵",lU="⋹",aU="⋴",cU="⋳",uU="∈",fU="⁢",dU="Ĩ",hU="ĩ",pU="І",gU="і",mU="Ï",vU="ï",yU="Ĵ",bU="ĵ",wU="Й",xU="й",SU="𝔍",_U="𝔧",kU="ȷ",TU="𝕁",CU="𝕛",EU="𝒥",AU="𝒿",$U="Ј",NU="ј",MU="Є",LU="є",OU="Κ",RU="κ",PU="ϰ",IU="Ķ",DU="ķ",FU="К",zU="к",HU="𝔎",BU="𝔨",jU="ĸ",WU="Х",qU="х",UU="Ќ",VU="ќ",GU="𝕂",KU="𝕜",YU="𝒦",XU="𝓀",JU="⇚",ZU="Ĺ",QU="ĺ",e6="⦴",t6="ℒ",n6="Λ",r6="λ",i6="⟨",o6="⟪",s6="⦑",l6="⟨",a6="⪅",c6="ℒ",u6="«",f6="⇤",d6="⤟",h6="←",p6="↞",g6="⇐",m6="⤝",v6="↩",y6="↫",b6="⤹",w6="⥳",x6="↢",S6="⤙",_6="⤛",k6="⪫",T6="⪭",C6="⪭︀",E6="⤌",A6="⤎",$6="❲",N6="{",M6="[",L6="⦋",O6="⦏",R6="⦍",P6="Ľ",I6="ľ",D6="Ļ",F6="ļ",z6="⌈",H6="{",B6="Л",j6="л",W6="⤶",q6="“",U6="„",V6="⥧",G6="⥋",K6="↲",Y6="≤",X6="≦",J6="⟨",Z6="⇤",Q6="←",eV="←",tV="⇐",nV="⇆",rV="↢",iV="⌈",oV="⟦",sV="⥡",lV="⥙",aV="⇃",cV="⌊",uV="↽",fV="↼",dV="⇇",hV="↔",pV="↔",gV="⇔",mV="⇆",vV="⇋",yV="↭",bV="⥎",wV="↤",xV="⊣",SV="⥚",_V="⋋",kV="⧏",TV="⊲",CV="⊴",EV="⥑",AV="⥠",$V="⥘",NV="↿",MV="⥒",LV="↼",OV="⪋",RV="⋚",PV="≤",IV="≦",DV="⩽",FV="⪨",zV="⩽",HV="⩿",BV="⪁",jV="⪃",WV="⋚︀",qV="⪓",UV="⪅",VV="⋖",GV="⋚",KV="⪋",YV="⋚",XV="≦",JV="≶",ZV="≶",QV="⪡",e9="≲",t9="⩽",n9="≲",r9="⥼",i9="⌊",o9="𝔏",s9="𝔩",l9="≶",a9="⪑",c9="⥢",u9="↽",f9="↼",d9="⥪",h9="▄",p9="Љ",g9="љ",m9="⇇",v9="≪",y9="⋘",b9="⌞",w9="⇚",x9="⥫",S9="◺",_9="Ŀ",k9="ŀ",T9="⎰",C9="⎰",E9="⪉",A9="⪉",$9="⪇",N9="≨",M9="⪇",L9="≨",O9="⋦",R9="⟬",P9="⇽",I9="⟦",D9="⟵",F9="⟵",z9="⟸",H9="⟷",B9="⟷",j9="⟺",W9="⟼",q9="⟶",U9="⟶",V9="⟹",G9="↫",K9="↬",Y9="⦅",X9="𝕃",J9="𝕝",Z9="⨭",Q9="⨴",eG="∗",tG="_",nG="↙",rG="↘",iG="◊",oG="◊",sG="⧫",lG="(",aG="⦓",cG="⇆",uG="⌟",fG="⇋",dG="⥭",hG="‎",pG="⊿",gG="‹",mG="𝓁",vG="ℒ",yG="↰",bG="↰",wG="≲",xG="⪍",SG="⪏",_G="[",kG="‘",TG="‚",CG="Ł",EG="ł",AG="⪦",$G="⩹",NG="<",MG="<",LG="≪",OG="⋖",RG="⋋",PG="⋉",IG="⥶",DG="⩻",FG="◃",zG="⊴",HG="◂",BG="⦖",jG="⥊",WG="⥦",qG="≨︀",UG="≨︀",VG="¯",GG="♂",KG="✠",YG="✠",XG="↦",JG="↦",ZG="↧",QG="↤",eK="↥",tK="▮",nK="⨩",rK="М",iK="м",oK="—",sK="∺",lK="∡",aK=" ",cK="ℳ",uK="𝔐",fK="𝔪",dK="℧",hK="µ",pK="*",gK="⫰",mK="∣",vK="·",yK="⊟",bK="−",wK="∸",xK="⨪",SK="∓",_K="⫛",kK="…",TK="∓",CK="⊧",EK="𝕄",AK="𝕞",$K="∓",NK="𝓂",MK="ℳ",LK="∾",OK="Μ",RK="μ",PK="⊸",IK="⊸",DK="∇",FK="Ń",zK="ń",HK="∠⃒",BK="≉",jK="⩰̸",WK="≋̸",qK="ʼn",UK="≉",VK="♮",GK="ℕ",KK="♮",YK=" ",XK="≎̸",JK="≏̸",ZK="⩃",QK="Ň",e7="ň",t7="Ņ",n7="ņ",r7="≇",i7="⩭̸",o7="⩂",s7="Н",l7="н",a7="–",c7="⤤",u7="↗",f7="⇗",d7="↗",h7="≠",p7="≐̸",g7="​",m7="​",v7="​",y7="​",b7="≢",w7="⤨",x7="≂̸",S7="≫",_7="≪",k7=`
76
+ `,T7="∄",C7="∄",E7="𝔑",A7="𝔫",$7="≧̸",N7="≱",M7="≱",L7="≧̸",O7="⩾̸",R7="⩾̸",P7="⋙̸",I7="≵",D7="≫⃒",F7="≯",z7="≯",H7="≫̸",B7="↮",j7="⇎",W7="⫲",q7="∋",U7="⋼",V7="⋺",G7="∋",K7="Њ",Y7="њ",X7="↚",J7="⇍",Z7="‥",Q7="≦̸",eY="≰",tY="↚",nY="⇍",rY="↮",iY="⇎",oY="≰",sY="≦̸",lY="⩽̸",aY="⩽̸",cY="≮",uY="⋘̸",fY="≴",dY="≪⃒",hY="≮",pY="⋪",gY="⋬",mY="≪̸",vY="∤",yY="⁠",bY=" ",wY="𝕟",xY="ℕ",SY="⫬",_Y="¬",kY="≢",TY="≭",CY="∦",EY="∉",AY="≠",$Y="≂̸",NY="∄",MY="≯",LY="≱",OY="≧̸",RY="≫̸",PY="≹",IY="⩾̸",DY="≵",FY="≎̸",zY="≏̸",HY="∉",BY="⋵̸",jY="⋹̸",WY="∉",qY="⋷",UY="⋶",VY="⧏̸",GY="⋪",KY="⋬",YY="≮",XY="≰",JY="≸",ZY="≪̸",QY="⩽̸",eX="≴",tX="⪢̸",nX="⪡̸",rX="∌",iX="∌",oX="⋾",sX="⋽",lX="⊀",aX="⪯̸",cX="⋠",uX="∌",fX="⧐̸",dX="⋫",hX="⋭",pX="⊏̸",gX="⋢",mX="⊐̸",vX="⋣",yX="⊂⃒",bX="⊈",wX="⊁",xX="⪰̸",SX="⋡",_X="≿̸",kX="⊃⃒",TX="⊉",CX="≁",EX="≄",AX="≇",$X="≉",NX="∤",MX="∦",LX="∦",OX="⫽⃥",RX="∂̸",PX="⨔",IX="⊀",DX="⋠",FX="⊀",zX="⪯̸",HX="⪯̸",BX="⤳̸",jX="↛",WX="⇏",qX="↝̸",UX="↛",VX="⇏",GX="⋫",KX="⋭",YX="⊁",XX="⋡",JX="⪰̸",ZX="𝒩",QX="𝓃",eJ="∤",tJ="∦",nJ="≁",rJ="≄",iJ="≄",oJ="∤",sJ="∦",lJ="⋢",aJ="⋣",cJ="⊄",uJ="⫅̸",fJ="⊈",dJ="⊂⃒",hJ="⊈",pJ="⫅̸",gJ="⊁",mJ="⪰̸",vJ="⊅",yJ="⫆̸",bJ="⊉",wJ="⊃⃒",xJ="⊉",SJ="⫆̸",_J="≹",kJ="Ñ",TJ="ñ",CJ="≸",EJ="⋪",AJ="⋬",$J="⋫",NJ="⋭",MJ="Ν",LJ="ν",OJ="#",RJ="№",PJ=" ",IJ="≍⃒",DJ="⊬",FJ="⊭",zJ="⊮",HJ="⊯",BJ="≥⃒",jJ=">⃒",WJ="⤄",qJ="⧞",UJ="⤂",VJ="≤⃒",GJ="<⃒",KJ="⊴⃒",YJ="⤃",XJ="⊵⃒",JJ="∼⃒",ZJ="⤣",QJ="↖",eZ="⇖",tZ="↖",nZ="⤧",rZ="Ó",iZ="ó",oZ="⊛",sZ="Ô",lZ="ô",aZ="⊚",cZ="О",uZ="о",fZ="⊝",dZ="Ő",hZ="ő",pZ="⨸",gZ="⊙",mZ="⦼",vZ="Œ",yZ="œ",bZ="⦿",wZ="𝔒",xZ="𝔬",SZ="˛",_Z="Ò",kZ="ò",TZ="⧁",CZ="⦵",EZ="Ω",AZ="∮",$Z="↺",NZ="⦾",MZ="⦻",LZ="‾",OZ="⧀",RZ="Ō",PZ="ō",IZ="Ω",DZ="ω",FZ="Ο",zZ="ο",HZ="⦶",BZ="⊖",jZ="𝕆",WZ="𝕠",qZ="⦷",UZ="“",VZ="‘",GZ="⦹",KZ="⊕",YZ="↻",XZ="⩔",JZ="∨",ZZ="⩝",QZ="ℴ",eQ="ℴ",tQ="ª",nQ="º",rQ="⊶",iQ="⩖",oQ="⩗",sQ="⩛",lQ="Ⓢ",aQ="𝒪",cQ="ℴ",uQ="Ø",fQ="ø",dQ="⊘",hQ="Õ",pQ="õ",gQ="⨶",mQ="⨷",vQ="⊗",yQ="Ö",bQ="ö",wQ="⌽",xQ="‾",SQ="⏞",_Q="⎴",kQ="⏜",TQ="¶",CQ="∥",EQ="∥",AQ="⫳",$Q="⫽",NQ="∂",MQ="∂",LQ="П",OQ="п",RQ="%",PQ=".",IQ="‰",DQ="⊥",FQ="‱",zQ="𝔓",HQ="𝔭",BQ="Φ",jQ="φ",WQ="ϕ",qQ="ℳ",UQ="☎",VQ="Π",GQ="π",KQ="⋔",YQ="ϖ",XQ="ℏ",JQ="ℎ",ZQ="ℏ",QQ="⨣",eee="⊞",tee="⨢",nee="+",ree="∔",iee="⨥",oee="⩲",see="±",lee="±",aee="⨦",cee="⨧",uee="±",fee="ℌ",dee="⨕",hee="𝕡",pee="ℙ",gee="£",mee="⪷",vee="⪻",yee="≺",bee="≼",wee="⪷",xee="≺",See="≼",_ee="≺",kee="⪯",Tee="≼",Cee="≾",Eee="⪯",Aee="⪹",$ee="⪵",Nee="⋨",Mee="⪯",Lee="⪳",Oee="≾",Ree="′",Pee="″",Iee="ℙ",Dee="⪹",Fee="⪵",zee="⋨",Hee="∏",Bee="∏",jee="⌮",Wee="⌒",qee="⌓",Uee="∝",Vee="∝",Gee="∷",Kee="∝",Yee="≾",Xee="⊰",Jee="𝒫",Zee="𝓅",Qee="Ψ",ete="ψ",tte=" ",nte="𝔔",rte="𝔮",ite="⨌",ote="𝕢",ste="ℚ",lte="⁗",ate="𝒬",cte="𝓆",ute="ℍ",fte="⨖",dte="?",hte="≟",pte='"',gte='"',mte="⇛",vte="∽̱",yte="Ŕ",bte="ŕ",wte="√",xte="⦳",Ste="⟩",_te="⟫",kte="⦒",Tte="⦥",Cte="⟩",Ete="»",Ate="⥵",$te="⇥",Nte="⤠",Mte="⤳",Lte="→",Ote="↠",Rte="⇒",Pte="⤞",Ite="↪",Dte="↬",Fte="⥅",zte="⥴",Hte="⤖",Bte="↣",jte="↝",Wte="⤚",qte="⤜",Ute="∶",Vte="ℚ",Gte="⤍",Kte="⤏",Yte="⤐",Xte="❳",Jte="}",Zte="]",Qte="⦌",ene="⦎",tne="⦐",nne="Ř",rne="ř",ine="Ŗ",one="ŗ",sne="⌉",lne="}",ane="Р",cne="р",une="⤷",fne="⥩",dne="”",hne="”",pne="↳",gne="ℜ",mne="ℛ",vne="ℜ",yne="ℝ",bne="ℜ",wne="▭",xne="®",Sne="®",_ne="∋",kne="⇋",Tne="⥯",Cne="⥽",Ene="⌋",Ane="𝔯",$ne="ℜ",Nne="⥤",Mne="⇁",Lne="⇀",One="⥬",Rne="Ρ",Pne="ρ",Ine="ϱ",Dne="⟩",Fne="⇥",zne="→",Hne="→",Bne="⇒",jne="⇄",Wne="↣",qne="⌉",Une="⟧",Vne="⥝",Gne="⥕",Kne="⇂",Yne="⌋",Xne="⇁",Jne="⇀",Zne="⇄",Qne="⇌",ere="⇉",tre="↝",nre="↦",rre="⊢",ire="⥛",ore="⋌",sre="⧐",lre="⊳",are="⊵",cre="⥏",ure="⥜",fre="⥔",dre="↾",hre="⥓",pre="⇀",gre="˚",mre="≓",vre="⇄",yre="⇌",bre="‏",wre="⎱",xre="⎱",Sre="⫮",_re="⟭",kre="⇾",Tre="⟧",Cre="⦆",Ere="𝕣",Are="ℝ",$re="⨮",Nre="⨵",Mre="⥰",Lre=")",Ore="⦔",Rre="⨒",Pre="⇉",Ire="⇛",Dre="›",Fre="𝓇",zre="ℛ",Hre="↱",Bre="↱",jre="]",Wre="’",qre="’",Ure="⋌",Vre="⋊",Gre="▹",Kre="⊵",Yre="▸",Xre="⧎",Jre="⧴",Zre="⥨",Qre="℞",eie="Ś",tie="ś",nie="‚",rie="⪸",iie="Š",oie="š",sie="⪼",lie="≻",aie="≽",cie="⪰",uie="⪴",fie="Ş",die="ş",hie="Ŝ",pie="ŝ",gie="⪺",mie="⪶",vie="⋩",yie="⨓",bie="≿",wie="С",xie="с",Sie="⊡",_ie="⋅",kie="⩦",Tie="⤥",Cie="↘",Eie="⇘",Aie="↘",$ie="§",Nie=";",Mie="⤩",Lie="∖",Oie="∖",Rie="✶",Pie="𝔖",Iie="𝔰",Die="⌢",Fie="♯",zie="Щ",Hie="щ",Bie="Ш",jie="ш",Wie="↓",qie="←",Uie="∣",Vie="∥",Gie="→",Kie="↑",Yie="­",Xie="Σ",Jie="σ",Zie="ς",Qie="ς",eoe="∼",toe="⩪",noe="≃",roe="≃",ioe="⪞",ooe="⪠",soe="⪝",loe="⪟",aoe="≆",coe="⨤",uoe="⥲",foe="←",doe="∘",hoe="∖",poe="⨳",goe="⧤",moe="∣",voe="⌣",yoe="⪪",boe="⪬",woe="⪬︀",xoe="Ь",Soe="ь",_oe="⌿",koe="⧄",Toe="/",Coe="𝕊",Eoe="𝕤",Aoe="♠",$oe="♠",Noe="∥",Moe="⊓",Loe="⊓︀",Ooe="⊔",Roe="⊔︀",Poe="√",Ioe="⊏",Doe="⊑",Foe="⊏",zoe="⊑",Hoe="⊐",Boe="⊒",joe="⊐",Woe="⊒",qoe="□",Uoe="□",Voe="⊓",Goe="⊏",Koe="⊑",Yoe="⊐",Xoe="⊒",Joe="⊔",Zoe="▪",Qoe="□",ese="▪",tse="→",nse="𝒮",rse="𝓈",ise="∖",ose="⌣",sse="⋆",lse="⋆",ase="☆",cse="★",use="ϵ",fse="ϕ",dse="¯",hse="⊂",pse="⋐",gse="⪽",mse="⫅",vse="⊆",yse="⫃",bse="⫁",wse="⫋",xse="⊊",Sse="⪿",_se="⥹",kse="⊂",Tse="⋐",Cse="⊆",Ese="⫅",Ase="⊆",$se="⊊",Nse="⫋",Mse="⫇",Lse="⫕",Ose="⫓",Rse="⪸",Pse="≻",Ise="≽",Dse="≻",Fse="⪰",zse="≽",Hse="≿",Bse="⪰",jse="⪺",Wse="⪶",qse="⋩",Use="≿",Vse="∋",Gse="∑",Kse="∑",Yse="♪",Xse="¹",Jse="²",Zse="³",Qse="⊃",ele="⋑",tle="⪾",nle="⫘",rle="⫆",ile="⊇",ole="⫄",sle="⊃",lle="⊇",ale="⟉",cle="⫗",ule="⥻",fle="⫂",dle="⫌",hle="⊋",ple="⫀",gle="⊃",mle="⋑",vle="⊇",yle="⫆",ble="⊋",wle="⫌",xle="⫈",Sle="⫔",_le="⫖",kle="⤦",Tle="↙",Cle="⇙",Ele="↙",Ale="⤪",$le="ß",Nle=" ",Mle="⌖",Lle="Τ",Ole="τ",Rle="⎴",Ple="Ť",Ile="ť",Dle="Ţ",Fle="ţ",zle="Т",Hle="т",Ble="⃛",jle="⌕",Wle="𝔗",qle="𝔱",Ule="∴",Vle="∴",Gle="∴",Kle="Θ",Yle="θ",Xle="ϑ",Jle="ϑ",Zle="≈",Qle="∼",eae="  ",tae=" ",nae=" ",rae="≈",iae="∼",oae="Þ",sae="þ",lae="˜",aae="∼",cae="≃",uae="≅",fae="≈",dae="⨱",hae="⊠",pae="×",gae="⨰",mae="∭",vae="⤨",yae="⌶",bae="⫱",wae="⊤",xae="𝕋",Sae="𝕥",_ae="⫚",kae="⤩",Tae="‴",Cae="™",Eae="™",Aae="▵",$ae="▿",Nae="◃",Mae="⊴",Lae="≜",Oae="▹",Rae="⊵",Pae="◬",Iae="≜",Dae="⨺",Fae="⃛",zae="⨹",Hae="⧍",Bae="⨻",jae="⏢",Wae="𝒯",qae="𝓉",Uae="Ц",Vae="ц",Gae="Ћ",Kae="ћ",Yae="Ŧ",Xae="ŧ",Jae="≬",Zae="↞",Qae="↠",ece="Ú",tce="ú",nce="↑",rce="↟",ice="⇑",oce="⥉",sce="Ў",lce="ў",ace="Ŭ",cce="ŭ",uce="Û",fce="û",dce="У",hce="у",pce="⇅",gce="Ű",mce="ű",vce="⥮",yce="⥾",bce="𝔘",wce="𝔲",xce="Ù",Sce="ù",_ce="⥣",kce="↿",Tce="↾",Cce="▀",Ece="⌜",Ace="⌜",$ce="⌏",Nce="◸",Mce="Ū",Lce="ū",Oce="¨",Rce="_",Pce="⏟",Ice="⎵",Dce="⏝",Fce="⋃",zce="⊎",Hce="Ų",Bce="ų",jce="𝕌",Wce="𝕦",qce="⤒",Uce="↑",Vce="↑",Gce="⇑",Kce="⇅",Yce="↕",Xce="↕",Jce="⇕",Zce="⥮",Qce="↿",eue="↾",tue="⊎",nue="↖",rue="↗",iue="υ",oue="ϒ",sue="ϒ",lue="Υ",aue="υ",cue="↥",uue="⊥",fue="⇈",due="⌝",hue="⌝",pue="⌎",gue="Ů",mue="ů",vue="◹",yue="𝒰",bue="𝓊",wue="⋰",xue="Ũ",Sue="ũ",_ue="▵",kue="▴",Tue="⇈",Cue="Ü",Eue="ü",Aue="⦧",$ue="⦜",Nue="ϵ",Mue="ϰ",Lue="∅",Oue="ϕ",Rue="ϖ",Pue="∝",Iue="↕",Due="⇕",Fue="ϱ",zue="ς",Hue="⊊︀",Bue="⫋︀",jue="⊋︀",Wue="⫌︀",que="ϑ",Uue="⊲",Vue="⊳",Gue="⫨",Kue="⫫",Yue="⫩",Xue="В",Jue="в",Zue="⊢",Que="⊨",efe="⊩",tfe="⊫",nfe="⫦",rfe="⊻",ife="∨",ofe="⋁",sfe="≚",lfe="⋮",afe="|",cfe="‖",ufe="|",ffe="‖",dfe="∣",hfe="|",pfe="❘",gfe="≀",mfe=" ",vfe="𝔙",yfe="𝔳",bfe="⊲",wfe="⊂⃒",xfe="⊃⃒",Sfe="𝕍",_fe="𝕧",kfe="∝",Tfe="⊳",Cfe="𝒱",Efe="𝓋",Afe="⫋︀",$fe="⊊︀",Nfe="⫌︀",Mfe="⊋︀",Lfe="⊪",Ofe="⦚",Rfe="Ŵ",Pfe="ŵ",Ife="⩟",Dfe="∧",Ffe="⋀",zfe="≙",Hfe="℘",Bfe="𝔚",jfe="𝔴",Wfe="𝕎",qfe="𝕨",Ufe="℘",Vfe="≀",Gfe="≀",Kfe="𝒲",Yfe="𝓌",Xfe="⋂",Jfe="◯",Zfe="⋃",Qfe="▽",ede="𝔛",tde="𝔵",nde="⟷",rde="⟺",ide="Ξ",ode="ξ",sde="⟵",lde="⟸",ade="⟼",cde="⋻",ude="⨀",fde="𝕏",dde="𝕩",hde="⨁",pde="⨂",gde="⟶",mde="⟹",vde="𝒳",yde="𝓍",bde="⨆",wde="⨄",xde="△",Sde="⋁",_de="⋀",kde="Ý",Tde="ý",Cde="Я",Ede="я",Ade="Ŷ",$de="ŷ",Nde="Ы",Mde="ы",Lde="¥",Ode="𝔜",Rde="𝔶",Pde="Ї",Ide="ї",Dde="𝕐",Fde="𝕪",zde="𝒴",Hde="𝓎",Bde="Ю",jde="ю",Wde="ÿ",qde="Ÿ",Ude="Ź",Vde="ź",Gde="Ž",Kde="ž",Yde="З",Xde="з",Jde="Ż",Zde="ż",Qde="ℨ",ehe="​",the="Ζ",nhe="ζ",rhe="𝔷",ihe="ℨ",ohe="Ж",she="ж",lhe="⇝",ahe="𝕫",che="ℤ",uhe="𝒵",fhe="𝓏",dhe="‍",hhe="‌",C_={Aacute:JP,aacute:ZP,Abreve:QP,abreve:eI,ac:tI,acd:nI,acE:rI,Acirc:iI,acirc:oI,acute:sI,Acy:lI,acy:aI,AElig:cI,aelig:uI,af:fI,Afr:dI,afr:hI,Agrave:pI,agrave:gI,alefsym:mI,aleph:vI,Alpha:yI,alpha:bI,Amacr:wI,amacr:xI,amalg:SI,amp:_I,AMP:kI,andand:TI,And:CI,and:EI,andd:AI,andslope:$I,andv:NI,ang:MI,ange:LI,angle:OI,angmsdaa:RI,angmsdab:PI,angmsdac:II,angmsdad:DI,angmsdae:FI,angmsdaf:zI,angmsdag:HI,angmsdah:BI,angmsd:jI,angrt:WI,angrtvb:qI,angrtvbd:UI,angsph:VI,angst:GI,angzarr:KI,Aogon:YI,aogon:XI,Aopf:JI,aopf:ZI,apacir:QI,ap:e2,apE:t2,ape:n2,apid:r2,apos:i2,ApplyFunction:o2,approx:s2,approxeq:l2,Aring:a2,aring:c2,Ascr:u2,ascr:f2,Assign:d2,ast:h2,asymp:p2,asympeq:g2,Atilde:m2,atilde:v2,Auml:y2,auml:b2,awconint:w2,awint:x2,backcong:S2,backepsilon:_2,backprime:k2,backsim:T2,backsimeq:C2,Backslash:E2,Barv:A2,barvee:$2,barwed:N2,Barwed:M2,barwedge:L2,bbrk:O2,bbrktbrk:R2,bcong:P2,Bcy:I2,bcy:D2,bdquo:F2,becaus:z2,because:H2,Because:B2,bemptyv:j2,bepsi:W2,bernou:q2,Bernoullis:U2,Beta:V2,beta:G2,beth:K2,between:Y2,Bfr:X2,bfr:J2,bigcap:Z2,bigcirc:Q2,bigcup:eD,bigodot:tD,bigoplus:nD,bigotimes:rD,bigsqcup:iD,bigstar:oD,bigtriangledown:sD,bigtriangleup:lD,biguplus:aD,bigvee:cD,bigwedge:uD,bkarow:fD,blacklozenge:dD,blacksquare:hD,blacktriangle:pD,blacktriangledown:gD,blacktriangleleft:mD,blacktriangleright:vD,blank:yD,blk12:bD,blk14:wD,blk34:xD,block:SD,bne:_D,bnequiv:kD,bNot:TD,bnot:CD,Bopf:ED,bopf:AD,bot:$D,bottom:ND,bowtie:MD,boxbox:LD,boxdl:OD,boxdL:RD,boxDl:PD,boxDL:ID,boxdr:DD,boxdR:FD,boxDr:zD,boxDR:HD,boxh:BD,boxH:jD,boxhd:WD,boxHd:qD,boxhD:UD,boxHD:VD,boxhu:GD,boxHu:KD,boxhU:YD,boxHU:XD,boxminus:JD,boxplus:ZD,boxtimes:QD,boxul:eF,boxuL:tF,boxUl:nF,boxUL:rF,boxur:iF,boxuR:oF,boxUr:sF,boxUR:lF,boxv:aF,boxV:cF,boxvh:uF,boxvH:fF,boxVh:dF,boxVH:hF,boxvl:pF,boxvL:gF,boxVl:mF,boxVL:vF,boxvr:yF,boxvR:bF,boxVr:wF,boxVR:xF,bprime:SF,breve:_F,Breve:kF,brvbar:TF,bscr:CF,Bscr:EF,bsemi:AF,bsim:$F,bsime:NF,bsolb:MF,bsol:LF,bsolhsub:OF,bull:RF,bullet:PF,bump:IF,bumpE:DF,bumpe:FF,Bumpeq:zF,bumpeq:HF,Cacute:BF,cacute:jF,capand:WF,capbrcup:qF,capcap:UF,cap:VF,Cap:GF,capcup:KF,capdot:YF,CapitalDifferentialD:XF,caps:JF,caret:ZF,caron:QF,Cayleys:ez,ccaps:tz,Ccaron:nz,ccaron:rz,Ccedil:iz,ccedil:oz,Ccirc:sz,ccirc:lz,Cconint:az,ccups:cz,ccupssm:uz,Cdot:fz,cdot:dz,cedil:hz,Cedilla:pz,cemptyv:gz,cent:mz,centerdot:vz,CenterDot:yz,cfr:bz,Cfr:wz,CHcy:xz,chcy:Sz,check:_z,checkmark:kz,Chi:Tz,chi:Cz,circ:Ez,circeq:Az,circlearrowleft:$z,circlearrowright:Nz,circledast:Mz,circledcirc:Lz,circleddash:Oz,CircleDot:Rz,circledR:Pz,circledS:Iz,CircleMinus:Dz,CirclePlus:Fz,CircleTimes:zz,cir:Hz,cirE:Bz,cire:jz,cirfnint:Wz,cirmid:qz,cirscir:Uz,ClockwiseContourIntegral:Vz,CloseCurlyDoubleQuote:Gz,CloseCurlyQuote:Kz,clubs:Yz,clubsuit:Xz,colon:Jz,Colon:Zz,Colone:Qz,colone:e3,coloneq:t3,comma:n3,commat:r3,comp:i3,compfn:o3,complement:s3,complexes:l3,cong:a3,congdot:c3,Congruent:u3,conint:f3,Conint:d3,ContourIntegral:h3,copf:p3,Copf:g3,coprod:m3,Coproduct:v3,copy:y3,COPY:b3,copysr:w3,CounterClockwiseContourIntegral:x3,crarr:S3,cross:_3,Cross:k3,Cscr:T3,cscr:C3,csub:E3,csube:A3,csup:$3,csupe:N3,ctdot:M3,cudarrl:L3,cudarrr:O3,cuepr:R3,cuesc:P3,cularr:I3,cularrp:D3,cupbrcap:F3,cupcap:z3,CupCap:H3,cup:B3,Cup:j3,cupcup:W3,cupdot:q3,cupor:U3,cups:V3,curarr:G3,curarrm:K3,curlyeqprec:Y3,curlyeqsucc:X3,curlyvee:J3,curlywedge:Z3,curren:Q3,curvearrowleft:eH,curvearrowright:tH,cuvee:nH,cuwed:rH,cwconint:iH,cwint:oH,cylcty:sH,dagger:lH,Dagger:aH,daleth:cH,darr:uH,Darr:fH,dArr:dH,dash:hH,Dashv:pH,dashv:gH,dbkarow:mH,dblac:vH,Dcaron:yH,dcaron:bH,Dcy:wH,dcy:xH,ddagger:SH,ddarr:_H,DD:kH,dd:TH,DDotrahd:CH,ddotseq:EH,deg:AH,Del:$H,Delta:NH,delta:MH,demptyv:LH,dfisht:OH,Dfr:RH,dfr:PH,dHar:IH,dharl:DH,dharr:FH,DiacriticalAcute:zH,DiacriticalDot:HH,DiacriticalDoubleAcute:BH,DiacriticalGrave:jH,DiacriticalTilde:WH,diam:qH,diamond:UH,Diamond:VH,diamondsuit:GH,diams:KH,die:YH,DifferentialD:XH,digamma:JH,disin:ZH,div:QH,divide:eB,divideontimes:tB,divonx:nB,DJcy:rB,djcy:iB,dlcorn:oB,dlcrop:sB,dollar:lB,Dopf:aB,dopf:cB,Dot:uB,dot:fB,DotDot:dB,doteq:hB,doteqdot:pB,DotEqual:gB,dotminus:mB,dotplus:vB,dotsquare:yB,doublebarwedge:bB,DoubleContourIntegral:wB,DoubleDot:xB,DoubleDownArrow:SB,DoubleLeftArrow:_B,DoubleLeftRightArrow:kB,DoubleLeftTee:TB,DoubleLongLeftArrow:CB,DoubleLongLeftRightArrow:EB,DoubleLongRightArrow:AB,DoubleRightArrow:$B,DoubleRightTee:NB,DoubleUpArrow:MB,DoubleUpDownArrow:LB,DoubleVerticalBar:OB,DownArrowBar:RB,downarrow:PB,DownArrow:IB,Downarrow:DB,DownArrowUpArrow:FB,DownBreve:zB,downdownarrows:HB,downharpoonleft:BB,downharpoonright:jB,DownLeftRightVector:WB,DownLeftTeeVector:qB,DownLeftVectorBar:UB,DownLeftVector:VB,DownRightTeeVector:GB,DownRightVectorBar:KB,DownRightVector:YB,DownTeeArrow:XB,DownTee:JB,drbkarow:ZB,drcorn:QB,drcrop:ej,Dscr:tj,dscr:nj,DScy:rj,dscy:ij,dsol:oj,Dstrok:sj,dstrok:lj,dtdot:aj,dtri:cj,dtrif:uj,duarr:fj,duhar:dj,dwangle:hj,DZcy:pj,dzcy:gj,dzigrarr:mj,Eacute:vj,eacute:yj,easter:bj,Ecaron:wj,ecaron:xj,Ecirc:Sj,ecirc:_j,ecir:kj,ecolon:Tj,Ecy:Cj,ecy:Ej,eDDot:Aj,Edot:$j,edot:Nj,eDot:Mj,ee:Lj,efDot:Oj,Efr:Rj,efr:Pj,eg:Ij,Egrave:Dj,egrave:Fj,egs:zj,egsdot:Hj,el:Bj,Element:jj,elinters:Wj,ell:qj,els:Uj,elsdot:Vj,Emacr:Gj,emacr:Kj,empty:Yj,emptyset:Xj,EmptySmallSquare:Jj,emptyv:Zj,EmptyVerySmallSquare:Qj,emsp13:e5,emsp14:t5,emsp:n5,ENG:r5,eng:i5,ensp:o5,Eogon:s5,eogon:l5,Eopf:a5,eopf:c5,epar:u5,eparsl:f5,eplus:d5,epsi:h5,Epsilon:p5,epsilon:g5,epsiv:m5,eqcirc:v5,eqcolon:y5,eqsim:b5,eqslantgtr:w5,eqslantless:x5,Equal:S5,equals:_5,EqualTilde:k5,equest:T5,Equilibrium:C5,equiv:E5,equivDD:A5,eqvparsl:$5,erarr:N5,erDot:M5,escr:L5,Escr:O5,esdot:R5,Esim:P5,esim:I5,Eta:D5,eta:F5,ETH:z5,eth:H5,Euml:B5,euml:j5,euro:W5,excl:q5,exist:U5,Exists:V5,expectation:G5,exponentiale:K5,ExponentialE:Y5,fallingdotseq:X5,Fcy:J5,fcy:Z5,female:Q5,ffilig:e8,fflig:t8,ffllig:n8,Ffr:r8,ffr:i8,filig:o8,FilledSmallSquare:s8,FilledVerySmallSquare:l8,fjlig:a8,flat:c8,fllig:u8,fltns:f8,fnof:d8,Fopf:h8,fopf:p8,forall:g8,ForAll:m8,fork:v8,forkv:y8,Fouriertrf:b8,fpartint:w8,frac12:x8,frac13:S8,frac14:_8,frac15:k8,frac16:T8,frac18:C8,frac23:E8,frac25:A8,frac34:$8,frac35:N8,frac38:M8,frac45:L8,frac56:O8,frac58:R8,frac78:P8,frasl:I8,frown:D8,fscr:F8,Fscr:z8,gacute:H8,Gamma:B8,gamma:j8,Gammad:W8,gammad:q8,gap:U8,Gbreve:V8,gbreve:G8,Gcedil:K8,Gcirc:Y8,gcirc:X8,Gcy:J8,gcy:Z8,Gdot:Q8,gdot:e4,ge:t4,gE:n4,gEl:r4,gel:i4,geq:o4,geqq:s4,geqslant:l4,gescc:a4,ges:c4,gesdot:u4,gesdoto:f4,gesdotol:d4,gesl:h4,gesles:p4,Gfr:g4,gfr:m4,gg:v4,Gg:y4,ggg:b4,gimel:w4,GJcy:x4,gjcy:S4,gla:_4,gl:k4,glE:T4,glj:C4,gnap:E4,gnapprox:A4,gne:$4,gnE:N4,gneq:M4,gneqq:L4,gnsim:O4,Gopf:R4,gopf:P4,grave:I4,GreaterEqual:D4,GreaterEqualLess:F4,GreaterFullEqual:z4,GreaterGreater:H4,GreaterLess:B4,GreaterSlantEqual:j4,GreaterTilde:W4,Gscr:q4,gscr:U4,gsim:V4,gsime:G4,gsiml:K4,gtcc:Y4,gtcir:X4,gt:J4,GT:Z4,Gt:Q4,gtdot:eW,gtlPar:tW,gtquest:nW,gtrapprox:rW,gtrarr:iW,gtrdot:oW,gtreqless:sW,gtreqqless:lW,gtrless:aW,gtrsim:cW,gvertneqq:uW,gvnE:fW,Hacek:dW,hairsp:hW,half:pW,hamilt:gW,HARDcy:mW,hardcy:vW,harrcir:yW,harr:bW,hArr:wW,harrw:xW,Hat:SW,hbar:_W,Hcirc:kW,hcirc:TW,hearts:CW,heartsuit:EW,hellip:AW,hercon:$W,hfr:NW,Hfr:MW,HilbertSpace:LW,hksearow:OW,hkswarow:RW,hoarr:PW,homtht:IW,hookleftarrow:DW,hookrightarrow:FW,hopf:zW,Hopf:HW,horbar:BW,HorizontalLine:jW,hscr:WW,Hscr:qW,hslash:UW,Hstrok:VW,hstrok:GW,HumpDownHump:KW,HumpEqual:YW,hybull:XW,hyphen:JW,Iacute:ZW,iacute:QW,ic:eq,Icirc:tq,icirc:nq,Icy:rq,icy:iq,Idot:oq,IEcy:sq,iecy:lq,iexcl:aq,iff:cq,ifr:uq,Ifr:fq,Igrave:dq,igrave:hq,ii:pq,iiiint:gq,iiint:mq,iinfin:vq,iiota:yq,IJlig:bq,ijlig:wq,Imacr:xq,imacr:Sq,image:_q,ImaginaryI:kq,imagline:Tq,imagpart:Cq,imath:Eq,Im:Aq,imof:$q,imped:Nq,Implies:Mq,incare:Lq,in:"∈",infin:Oq,infintie:Rq,inodot:Pq,intcal:Iq,int:Dq,Int:Fq,integers:zq,Integral:Hq,intercal:Bq,Intersection:jq,intlarhk:Wq,intprod:qq,InvisibleComma:Uq,InvisibleTimes:Vq,IOcy:Gq,iocy:Kq,Iogon:Yq,iogon:Xq,Iopf:Jq,iopf:Zq,Iota:Qq,iota:eU,iprod:tU,iquest:nU,iscr:rU,Iscr:iU,isin:oU,isindot:sU,isinE:lU,isins:aU,isinsv:cU,isinv:uU,it:fU,Itilde:dU,itilde:hU,Iukcy:pU,iukcy:gU,Iuml:mU,iuml:vU,Jcirc:yU,jcirc:bU,Jcy:wU,jcy:xU,Jfr:SU,jfr:_U,jmath:kU,Jopf:TU,jopf:CU,Jscr:EU,jscr:AU,Jsercy:$U,jsercy:NU,Jukcy:MU,jukcy:LU,Kappa:OU,kappa:RU,kappav:PU,Kcedil:IU,kcedil:DU,Kcy:FU,kcy:zU,Kfr:HU,kfr:BU,kgreen:jU,KHcy:WU,khcy:qU,KJcy:UU,kjcy:VU,Kopf:GU,kopf:KU,Kscr:YU,kscr:XU,lAarr:JU,Lacute:ZU,lacute:QU,laemptyv:e6,lagran:t6,Lambda:n6,lambda:r6,lang:i6,Lang:o6,langd:s6,langle:l6,lap:a6,Laplacetrf:c6,laquo:u6,larrb:f6,larrbfs:d6,larr:h6,Larr:p6,lArr:g6,larrfs:m6,larrhk:v6,larrlp:y6,larrpl:b6,larrsim:w6,larrtl:x6,latail:S6,lAtail:_6,lat:k6,late:T6,lates:C6,lbarr:E6,lBarr:A6,lbbrk:$6,lbrace:N6,lbrack:M6,lbrke:L6,lbrksld:O6,lbrkslu:R6,Lcaron:P6,lcaron:I6,Lcedil:D6,lcedil:F6,lceil:z6,lcub:H6,Lcy:B6,lcy:j6,ldca:W6,ldquo:q6,ldquor:U6,ldrdhar:V6,ldrushar:G6,ldsh:K6,le:Y6,lE:X6,LeftAngleBracket:J6,LeftArrowBar:Z6,leftarrow:Q6,LeftArrow:eV,Leftarrow:tV,LeftArrowRightArrow:nV,leftarrowtail:rV,LeftCeiling:iV,LeftDoubleBracket:oV,LeftDownTeeVector:sV,LeftDownVectorBar:lV,LeftDownVector:aV,LeftFloor:cV,leftharpoondown:uV,leftharpoonup:fV,leftleftarrows:dV,leftrightarrow:hV,LeftRightArrow:pV,Leftrightarrow:gV,leftrightarrows:mV,leftrightharpoons:vV,leftrightsquigarrow:yV,LeftRightVector:bV,LeftTeeArrow:wV,LeftTee:xV,LeftTeeVector:SV,leftthreetimes:_V,LeftTriangleBar:kV,LeftTriangle:TV,LeftTriangleEqual:CV,LeftUpDownVector:EV,LeftUpTeeVector:AV,LeftUpVectorBar:$V,LeftUpVector:NV,LeftVectorBar:MV,LeftVector:LV,lEg:OV,leg:RV,leq:PV,leqq:IV,leqslant:DV,lescc:FV,les:zV,lesdot:HV,lesdoto:BV,lesdotor:jV,lesg:WV,lesges:qV,lessapprox:UV,lessdot:VV,lesseqgtr:GV,lesseqqgtr:KV,LessEqualGreater:YV,LessFullEqual:XV,LessGreater:JV,lessgtr:ZV,LessLess:QV,lesssim:e9,LessSlantEqual:t9,LessTilde:n9,lfisht:r9,lfloor:i9,Lfr:o9,lfr:s9,lg:l9,lgE:a9,lHar:c9,lhard:u9,lharu:f9,lharul:d9,lhblk:h9,LJcy:p9,ljcy:g9,llarr:m9,ll:v9,Ll:y9,llcorner:b9,Lleftarrow:w9,llhard:x9,lltri:S9,Lmidot:_9,lmidot:k9,lmoustache:T9,lmoust:C9,lnap:E9,lnapprox:A9,lne:$9,lnE:N9,lneq:M9,lneqq:L9,lnsim:O9,loang:R9,loarr:P9,lobrk:I9,longleftarrow:D9,LongLeftArrow:F9,Longleftarrow:z9,longleftrightarrow:H9,LongLeftRightArrow:B9,Longleftrightarrow:j9,longmapsto:W9,longrightarrow:q9,LongRightArrow:U9,Longrightarrow:V9,looparrowleft:G9,looparrowright:K9,lopar:Y9,Lopf:X9,lopf:J9,loplus:Z9,lotimes:Q9,lowast:eG,lowbar:tG,LowerLeftArrow:nG,LowerRightArrow:rG,loz:iG,lozenge:oG,lozf:sG,lpar:lG,lparlt:aG,lrarr:cG,lrcorner:uG,lrhar:fG,lrhard:dG,lrm:hG,lrtri:pG,lsaquo:gG,lscr:mG,Lscr:vG,lsh:yG,Lsh:bG,lsim:wG,lsime:xG,lsimg:SG,lsqb:_G,lsquo:kG,lsquor:TG,Lstrok:CG,lstrok:EG,ltcc:AG,ltcir:$G,lt:NG,LT:MG,Lt:LG,ltdot:OG,lthree:RG,ltimes:PG,ltlarr:IG,ltquest:DG,ltri:FG,ltrie:zG,ltrif:HG,ltrPar:BG,lurdshar:jG,luruhar:WG,lvertneqq:qG,lvnE:UG,macr:VG,male:GG,malt:KG,maltese:YG,Map:"⤅",map:XG,mapsto:JG,mapstodown:ZG,mapstoleft:QG,mapstoup:eK,marker:tK,mcomma:nK,Mcy:rK,mcy:iK,mdash:oK,mDDot:sK,measuredangle:lK,MediumSpace:aK,Mellintrf:cK,Mfr:uK,mfr:fK,mho:dK,micro:hK,midast:pK,midcir:gK,mid:mK,middot:vK,minusb:yK,minus:bK,minusd:wK,minusdu:xK,MinusPlus:SK,mlcp:_K,mldr:kK,mnplus:TK,models:CK,Mopf:EK,mopf:AK,mp:$K,mscr:NK,Mscr:MK,mstpos:LK,Mu:OK,mu:RK,multimap:PK,mumap:IK,nabla:DK,Nacute:FK,nacute:zK,nang:HK,nap:BK,napE:jK,napid:WK,napos:qK,napprox:UK,natural:VK,naturals:GK,natur:KK,nbsp:YK,nbump:XK,nbumpe:JK,ncap:ZK,Ncaron:QK,ncaron:e7,Ncedil:t7,ncedil:n7,ncong:r7,ncongdot:i7,ncup:o7,Ncy:s7,ncy:l7,ndash:a7,nearhk:c7,nearr:u7,neArr:f7,nearrow:d7,ne:h7,nedot:p7,NegativeMediumSpace:g7,NegativeThickSpace:m7,NegativeThinSpace:v7,NegativeVeryThinSpace:y7,nequiv:b7,nesear:w7,nesim:x7,NestedGreaterGreater:S7,NestedLessLess:_7,NewLine:k7,nexist:T7,nexists:C7,Nfr:E7,nfr:A7,ngE:$7,nge:N7,ngeq:M7,ngeqq:L7,ngeqslant:O7,nges:R7,nGg:P7,ngsim:I7,nGt:D7,ngt:F7,ngtr:z7,nGtv:H7,nharr:B7,nhArr:j7,nhpar:W7,ni:q7,nis:U7,nisd:V7,niv:G7,NJcy:K7,njcy:Y7,nlarr:X7,nlArr:J7,nldr:Z7,nlE:Q7,nle:eY,nleftarrow:tY,nLeftarrow:nY,nleftrightarrow:rY,nLeftrightarrow:iY,nleq:oY,nleqq:sY,nleqslant:lY,nles:aY,nless:cY,nLl:uY,nlsim:fY,nLt:dY,nlt:hY,nltri:pY,nltrie:gY,nLtv:mY,nmid:vY,NoBreak:yY,NonBreakingSpace:bY,nopf:wY,Nopf:xY,Not:SY,not:_Y,NotCongruent:kY,NotCupCap:TY,NotDoubleVerticalBar:CY,NotElement:EY,NotEqual:AY,NotEqualTilde:$Y,NotExists:NY,NotGreater:MY,NotGreaterEqual:LY,NotGreaterFullEqual:OY,NotGreaterGreater:RY,NotGreaterLess:PY,NotGreaterSlantEqual:IY,NotGreaterTilde:DY,NotHumpDownHump:FY,NotHumpEqual:zY,notin:HY,notindot:BY,notinE:jY,notinva:WY,notinvb:qY,notinvc:UY,NotLeftTriangleBar:VY,NotLeftTriangle:GY,NotLeftTriangleEqual:KY,NotLess:YY,NotLessEqual:XY,NotLessGreater:JY,NotLessLess:ZY,NotLessSlantEqual:QY,NotLessTilde:eX,NotNestedGreaterGreater:tX,NotNestedLessLess:nX,notni:rX,notniva:iX,notnivb:oX,notnivc:sX,NotPrecedes:lX,NotPrecedesEqual:aX,NotPrecedesSlantEqual:cX,NotReverseElement:uX,NotRightTriangleBar:fX,NotRightTriangle:dX,NotRightTriangleEqual:hX,NotSquareSubset:pX,NotSquareSubsetEqual:gX,NotSquareSuperset:mX,NotSquareSupersetEqual:vX,NotSubset:yX,NotSubsetEqual:bX,NotSucceeds:wX,NotSucceedsEqual:xX,NotSucceedsSlantEqual:SX,NotSucceedsTilde:_X,NotSuperset:kX,NotSupersetEqual:TX,NotTilde:CX,NotTildeEqual:EX,NotTildeFullEqual:AX,NotTildeTilde:$X,NotVerticalBar:NX,nparallel:MX,npar:LX,nparsl:OX,npart:RX,npolint:PX,npr:IX,nprcue:DX,nprec:FX,npreceq:zX,npre:HX,nrarrc:BX,nrarr:jX,nrArr:WX,nrarrw:qX,nrightarrow:UX,nRightarrow:VX,nrtri:GX,nrtrie:KX,nsc:YX,nsccue:XX,nsce:JX,Nscr:ZX,nscr:QX,nshortmid:eJ,nshortparallel:tJ,nsim:nJ,nsime:rJ,nsimeq:iJ,nsmid:oJ,nspar:sJ,nsqsube:lJ,nsqsupe:aJ,nsub:cJ,nsubE:uJ,nsube:fJ,nsubset:dJ,nsubseteq:hJ,nsubseteqq:pJ,nsucc:gJ,nsucceq:mJ,nsup:vJ,nsupE:yJ,nsupe:bJ,nsupset:wJ,nsupseteq:xJ,nsupseteqq:SJ,ntgl:_J,Ntilde:kJ,ntilde:TJ,ntlg:CJ,ntriangleleft:EJ,ntrianglelefteq:AJ,ntriangleright:$J,ntrianglerighteq:NJ,Nu:MJ,nu:LJ,num:OJ,numero:RJ,numsp:PJ,nvap:IJ,nvdash:DJ,nvDash:FJ,nVdash:zJ,nVDash:HJ,nvge:BJ,nvgt:jJ,nvHarr:WJ,nvinfin:qJ,nvlArr:UJ,nvle:VJ,nvlt:GJ,nvltrie:KJ,nvrArr:YJ,nvrtrie:XJ,nvsim:JJ,nwarhk:ZJ,nwarr:QJ,nwArr:eZ,nwarrow:tZ,nwnear:nZ,Oacute:rZ,oacute:iZ,oast:oZ,Ocirc:sZ,ocirc:lZ,ocir:aZ,Ocy:cZ,ocy:uZ,odash:fZ,Odblac:dZ,odblac:hZ,odiv:pZ,odot:gZ,odsold:mZ,OElig:vZ,oelig:yZ,ofcir:bZ,Ofr:wZ,ofr:xZ,ogon:SZ,Ograve:_Z,ograve:kZ,ogt:TZ,ohbar:CZ,ohm:EZ,oint:AZ,olarr:$Z,olcir:NZ,olcross:MZ,oline:LZ,olt:OZ,Omacr:RZ,omacr:PZ,Omega:IZ,omega:DZ,Omicron:FZ,omicron:zZ,omid:HZ,ominus:BZ,Oopf:jZ,oopf:WZ,opar:qZ,OpenCurlyDoubleQuote:UZ,OpenCurlyQuote:VZ,operp:GZ,oplus:KZ,orarr:YZ,Or:XZ,or:JZ,ord:ZZ,order:QZ,orderof:eQ,ordf:tQ,ordm:nQ,origof:rQ,oror:iQ,orslope:oQ,orv:sQ,oS:lQ,Oscr:aQ,oscr:cQ,Oslash:uQ,oslash:fQ,osol:dQ,Otilde:hQ,otilde:pQ,otimesas:gQ,Otimes:mQ,otimes:vQ,Ouml:yQ,ouml:bQ,ovbar:wQ,OverBar:xQ,OverBrace:SQ,OverBracket:_Q,OverParenthesis:kQ,para:TQ,parallel:CQ,par:EQ,parsim:AQ,parsl:$Q,part:NQ,PartialD:MQ,Pcy:LQ,pcy:OQ,percnt:RQ,period:PQ,permil:IQ,perp:DQ,pertenk:FQ,Pfr:zQ,pfr:HQ,Phi:BQ,phi:jQ,phiv:WQ,phmmat:qQ,phone:UQ,Pi:VQ,pi:GQ,pitchfork:KQ,piv:YQ,planck:XQ,planckh:JQ,plankv:ZQ,plusacir:QQ,plusb:eee,pluscir:tee,plus:nee,plusdo:ree,plusdu:iee,pluse:oee,PlusMinus:see,plusmn:lee,plussim:aee,plustwo:cee,pm:uee,Poincareplane:fee,pointint:dee,popf:hee,Popf:pee,pound:gee,prap:mee,Pr:vee,pr:yee,prcue:bee,precapprox:wee,prec:xee,preccurlyeq:See,Precedes:_ee,PrecedesEqual:kee,PrecedesSlantEqual:Tee,PrecedesTilde:Cee,preceq:Eee,precnapprox:Aee,precneqq:$ee,precnsim:Nee,pre:Mee,prE:Lee,precsim:Oee,prime:Ree,Prime:Pee,primes:Iee,prnap:Dee,prnE:Fee,prnsim:zee,prod:Hee,Product:Bee,profalar:jee,profline:Wee,profsurf:qee,prop:Uee,Proportional:Vee,Proportion:Gee,propto:Kee,prsim:Yee,prurel:Xee,Pscr:Jee,pscr:Zee,Psi:Qee,psi:ete,puncsp:tte,Qfr:nte,qfr:rte,qint:ite,qopf:ote,Qopf:ste,qprime:lte,Qscr:ate,qscr:cte,quaternions:ute,quatint:fte,quest:dte,questeq:hte,quot:pte,QUOT:gte,rAarr:mte,race:vte,Racute:yte,racute:bte,radic:wte,raemptyv:xte,rang:Ste,Rang:_te,rangd:kte,range:Tte,rangle:Cte,raquo:Ete,rarrap:Ate,rarrb:$te,rarrbfs:Nte,rarrc:Mte,rarr:Lte,Rarr:Ote,rArr:Rte,rarrfs:Pte,rarrhk:Ite,rarrlp:Dte,rarrpl:Fte,rarrsim:zte,Rarrtl:Hte,rarrtl:Bte,rarrw:jte,ratail:Wte,rAtail:qte,ratio:Ute,rationals:Vte,rbarr:Gte,rBarr:Kte,RBarr:Yte,rbbrk:Xte,rbrace:Jte,rbrack:Zte,rbrke:Qte,rbrksld:ene,rbrkslu:tne,Rcaron:nne,rcaron:rne,Rcedil:ine,rcedil:one,rceil:sne,rcub:lne,Rcy:ane,rcy:cne,rdca:une,rdldhar:fne,rdquo:dne,rdquor:hne,rdsh:pne,real:gne,realine:mne,realpart:vne,reals:yne,Re:bne,rect:wne,reg:xne,REG:Sne,ReverseElement:_ne,ReverseEquilibrium:kne,ReverseUpEquilibrium:Tne,rfisht:Cne,rfloor:Ene,rfr:Ane,Rfr:$ne,rHar:Nne,rhard:Mne,rharu:Lne,rharul:One,Rho:Rne,rho:Pne,rhov:Ine,RightAngleBracket:Dne,RightArrowBar:Fne,rightarrow:zne,RightArrow:Hne,Rightarrow:Bne,RightArrowLeftArrow:jne,rightarrowtail:Wne,RightCeiling:qne,RightDoubleBracket:Une,RightDownTeeVector:Vne,RightDownVectorBar:Gne,RightDownVector:Kne,RightFloor:Yne,rightharpoondown:Xne,rightharpoonup:Jne,rightleftarrows:Zne,rightleftharpoons:Qne,rightrightarrows:ere,rightsquigarrow:tre,RightTeeArrow:nre,RightTee:rre,RightTeeVector:ire,rightthreetimes:ore,RightTriangleBar:sre,RightTriangle:lre,RightTriangleEqual:are,RightUpDownVector:cre,RightUpTeeVector:ure,RightUpVectorBar:fre,RightUpVector:dre,RightVectorBar:hre,RightVector:pre,ring:gre,risingdotseq:mre,rlarr:vre,rlhar:yre,rlm:bre,rmoustache:wre,rmoust:xre,rnmid:Sre,roang:_re,roarr:kre,robrk:Tre,ropar:Cre,ropf:Ere,Ropf:Are,roplus:$re,rotimes:Nre,RoundImplies:Mre,rpar:Lre,rpargt:Ore,rppolint:Rre,rrarr:Pre,Rrightarrow:Ire,rsaquo:Dre,rscr:Fre,Rscr:zre,rsh:Hre,Rsh:Bre,rsqb:jre,rsquo:Wre,rsquor:qre,rthree:Ure,rtimes:Vre,rtri:Gre,rtrie:Kre,rtrif:Yre,rtriltri:Xre,RuleDelayed:Jre,ruluhar:Zre,rx:Qre,Sacute:eie,sacute:tie,sbquo:nie,scap:rie,Scaron:iie,scaron:oie,Sc:sie,sc:lie,sccue:aie,sce:cie,scE:uie,Scedil:fie,scedil:die,Scirc:hie,scirc:pie,scnap:gie,scnE:mie,scnsim:vie,scpolint:yie,scsim:bie,Scy:wie,scy:xie,sdotb:Sie,sdot:_ie,sdote:kie,searhk:Tie,searr:Cie,seArr:Eie,searrow:Aie,sect:$ie,semi:Nie,seswar:Mie,setminus:Lie,setmn:Oie,sext:Rie,Sfr:Pie,sfr:Iie,sfrown:Die,sharp:Fie,SHCHcy:zie,shchcy:Hie,SHcy:Bie,shcy:jie,ShortDownArrow:Wie,ShortLeftArrow:qie,shortmid:Uie,shortparallel:Vie,ShortRightArrow:Gie,ShortUpArrow:Kie,shy:Yie,Sigma:Xie,sigma:Jie,sigmaf:Zie,sigmav:Qie,sim:eoe,simdot:toe,sime:noe,simeq:roe,simg:ioe,simgE:ooe,siml:soe,simlE:loe,simne:aoe,simplus:coe,simrarr:uoe,slarr:foe,SmallCircle:doe,smallsetminus:hoe,smashp:poe,smeparsl:goe,smid:moe,smile:voe,smt:yoe,smte:boe,smtes:woe,SOFTcy:xoe,softcy:Soe,solbar:_oe,solb:koe,sol:Toe,Sopf:Coe,sopf:Eoe,spades:Aoe,spadesuit:$oe,spar:Noe,sqcap:Moe,sqcaps:Loe,sqcup:Ooe,sqcups:Roe,Sqrt:Poe,sqsub:Ioe,sqsube:Doe,sqsubset:Foe,sqsubseteq:zoe,sqsup:Hoe,sqsupe:Boe,sqsupset:joe,sqsupseteq:Woe,square:qoe,Square:Uoe,SquareIntersection:Voe,SquareSubset:Goe,SquareSubsetEqual:Koe,SquareSuperset:Yoe,SquareSupersetEqual:Xoe,SquareUnion:Joe,squarf:Zoe,squ:Qoe,squf:ese,srarr:tse,Sscr:nse,sscr:rse,ssetmn:ise,ssmile:ose,sstarf:sse,Star:lse,star:ase,starf:cse,straightepsilon:use,straightphi:fse,strns:dse,sub:hse,Sub:pse,subdot:gse,subE:mse,sube:vse,subedot:yse,submult:bse,subnE:wse,subne:xse,subplus:Sse,subrarr:_se,subset:kse,Subset:Tse,subseteq:Cse,subseteqq:Ese,SubsetEqual:Ase,subsetneq:$se,subsetneqq:Nse,subsim:Mse,subsub:Lse,subsup:Ose,succapprox:Rse,succ:Pse,succcurlyeq:Ise,Succeeds:Dse,SucceedsEqual:Fse,SucceedsSlantEqual:zse,SucceedsTilde:Hse,succeq:Bse,succnapprox:jse,succneqq:Wse,succnsim:qse,succsim:Use,SuchThat:Vse,sum:Gse,Sum:Kse,sung:Yse,sup1:Xse,sup2:Jse,sup3:Zse,sup:Qse,Sup:ele,supdot:tle,supdsub:nle,supE:rle,supe:ile,supedot:ole,Superset:sle,SupersetEqual:lle,suphsol:ale,suphsub:cle,suplarr:ule,supmult:fle,supnE:dle,supne:hle,supplus:ple,supset:gle,Supset:mle,supseteq:vle,supseteqq:yle,supsetneq:ble,supsetneqq:wle,supsim:xle,supsub:Sle,supsup:_le,swarhk:kle,swarr:Tle,swArr:Cle,swarrow:Ele,swnwar:Ale,szlig:$le,Tab:Nle,target:Mle,Tau:Lle,tau:Ole,tbrk:Rle,Tcaron:Ple,tcaron:Ile,Tcedil:Dle,tcedil:Fle,Tcy:zle,tcy:Hle,tdot:Ble,telrec:jle,Tfr:Wle,tfr:qle,there4:Ule,therefore:Vle,Therefore:Gle,Theta:Kle,theta:Yle,thetasym:Xle,thetav:Jle,thickapprox:Zle,thicksim:Qle,ThickSpace:eae,ThinSpace:tae,thinsp:nae,thkap:rae,thksim:iae,THORN:oae,thorn:sae,tilde:lae,Tilde:aae,TildeEqual:cae,TildeFullEqual:uae,TildeTilde:fae,timesbar:dae,timesb:hae,times:pae,timesd:gae,tint:mae,toea:vae,topbot:yae,topcir:bae,top:wae,Topf:xae,topf:Sae,topfork:_ae,tosa:kae,tprime:Tae,trade:Cae,TRADE:Eae,triangle:Aae,triangledown:$ae,triangleleft:Nae,trianglelefteq:Mae,triangleq:Lae,triangleright:Oae,trianglerighteq:Rae,tridot:Pae,trie:Iae,triminus:Dae,TripleDot:Fae,triplus:zae,trisb:Hae,tritime:Bae,trpezium:jae,Tscr:Wae,tscr:qae,TScy:Uae,tscy:Vae,TSHcy:Gae,tshcy:Kae,Tstrok:Yae,tstrok:Xae,twixt:Jae,twoheadleftarrow:Zae,twoheadrightarrow:Qae,Uacute:ece,uacute:tce,uarr:nce,Uarr:rce,uArr:ice,Uarrocir:oce,Ubrcy:sce,ubrcy:lce,Ubreve:ace,ubreve:cce,Ucirc:uce,ucirc:fce,Ucy:dce,ucy:hce,udarr:pce,Udblac:gce,udblac:mce,udhar:vce,ufisht:yce,Ufr:bce,ufr:wce,Ugrave:xce,ugrave:Sce,uHar:_ce,uharl:kce,uharr:Tce,uhblk:Cce,ulcorn:Ece,ulcorner:Ace,ulcrop:$ce,ultri:Nce,Umacr:Mce,umacr:Lce,uml:Oce,UnderBar:Rce,UnderBrace:Pce,UnderBracket:Ice,UnderParenthesis:Dce,Union:Fce,UnionPlus:zce,Uogon:Hce,uogon:Bce,Uopf:jce,uopf:Wce,UpArrowBar:qce,uparrow:Uce,UpArrow:Vce,Uparrow:Gce,UpArrowDownArrow:Kce,updownarrow:Yce,UpDownArrow:Xce,Updownarrow:Jce,UpEquilibrium:Zce,upharpoonleft:Qce,upharpoonright:eue,uplus:tue,UpperLeftArrow:nue,UpperRightArrow:rue,upsi:iue,Upsi:oue,upsih:sue,Upsilon:lue,upsilon:aue,UpTeeArrow:cue,UpTee:uue,upuparrows:fue,urcorn:due,urcorner:hue,urcrop:pue,Uring:gue,uring:mue,urtri:vue,Uscr:yue,uscr:bue,utdot:wue,Utilde:xue,utilde:Sue,utri:_ue,utrif:kue,uuarr:Tue,Uuml:Cue,uuml:Eue,uwangle:Aue,vangrt:$ue,varepsilon:Nue,varkappa:Mue,varnothing:Lue,varphi:Oue,varpi:Rue,varpropto:Pue,varr:Iue,vArr:Due,varrho:Fue,varsigma:zue,varsubsetneq:Hue,varsubsetneqq:Bue,varsupsetneq:jue,varsupsetneqq:Wue,vartheta:que,vartriangleleft:Uue,vartriangleright:Vue,vBar:Gue,Vbar:Kue,vBarv:Yue,Vcy:Xue,vcy:Jue,vdash:Zue,vDash:Que,Vdash:efe,VDash:tfe,Vdashl:nfe,veebar:rfe,vee:ife,Vee:ofe,veeeq:sfe,vellip:lfe,verbar:afe,Verbar:cfe,vert:ufe,Vert:ffe,VerticalBar:dfe,VerticalLine:hfe,VerticalSeparator:pfe,VerticalTilde:gfe,VeryThinSpace:mfe,Vfr:vfe,vfr:yfe,vltri:bfe,vnsub:wfe,vnsup:xfe,Vopf:Sfe,vopf:_fe,vprop:kfe,vrtri:Tfe,Vscr:Cfe,vscr:Efe,vsubnE:Afe,vsubne:$fe,vsupnE:Nfe,vsupne:Mfe,Vvdash:Lfe,vzigzag:Ofe,Wcirc:Rfe,wcirc:Pfe,wedbar:Ife,wedge:Dfe,Wedge:Ffe,wedgeq:zfe,weierp:Hfe,Wfr:Bfe,wfr:jfe,Wopf:Wfe,wopf:qfe,wp:Ufe,wr:Vfe,wreath:Gfe,Wscr:Kfe,wscr:Yfe,xcap:Xfe,xcirc:Jfe,xcup:Zfe,xdtri:Qfe,Xfr:ede,xfr:tde,xharr:nde,xhArr:rde,Xi:ide,xi:ode,xlarr:sde,xlArr:lde,xmap:ade,xnis:cde,xodot:ude,Xopf:fde,xopf:dde,xoplus:hde,xotime:pde,xrarr:gde,xrArr:mde,Xscr:vde,xscr:yde,xsqcup:bde,xuplus:wde,xutri:xde,xvee:Sde,xwedge:_de,Yacute:kde,yacute:Tde,YAcy:Cde,yacy:Ede,Ycirc:Ade,ycirc:$de,Ycy:Nde,ycy:Mde,yen:Lde,Yfr:Ode,yfr:Rde,YIcy:Pde,yicy:Ide,Yopf:Dde,yopf:Fde,Yscr:zde,yscr:Hde,YUcy:Bde,yucy:jde,yuml:Wde,Yuml:qde,Zacute:Ude,zacute:Vde,Zcaron:Gde,zcaron:Kde,Zcy:Yde,zcy:Xde,Zdot:Jde,zdot:Zde,zeetrf:Qde,ZeroWidthSpace:ehe,Zeta:the,zeta:nhe,zfr:rhe,Zfr:ihe,ZHcy:ohe,zhcy:she,zigrarr:lhe,zopf:ahe,Zopf:che,Zscr:uhe,zscr:fhe,zwj:dhe,zwnj:hhe},phe="Á",ghe="á",mhe="Â",vhe="â",yhe="´",bhe="Æ",whe="æ",xhe="À",She="à",_he="&",khe="&",The="Å",Che="å",Ehe="Ã",Ahe="ã",$he="Ä",Nhe="ä",Mhe="¦",Lhe="Ç",Ohe="ç",Rhe="¸",Phe="¢",Ihe="©",Dhe="©",Fhe="¤",zhe="°",Hhe="÷",Bhe="É",jhe="é",Whe="Ê",qhe="ê",Uhe="È",Vhe="è",Ghe="Ð",Khe="ð",Yhe="Ë",Xhe="ë",Jhe="½",Zhe="¼",Qhe="¾",epe=">",tpe=">",npe="Í",rpe="í",ipe="Î",ope="î",spe="¡",lpe="Ì",ape="ì",cpe="¿",upe="Ï",fpe="ï",dpe="«",hpe="<",ppe="<",gpe="¯",mpe="µ",vpe="·",ype=" ",bpe="¬",wpe="Ñ",xpe="ñ",Spe="Ó",_pe="ó",kpe="Ô",Tpe="ô",Cpe="Ò",Epe="ò",Ape="ª",$pe="º",Npe="Ø",Mpe="ø",Lpe="Õ",Ope="õ",Rpe="Ö",Ppe="ö",Ipe="¶",Dpe="±",Fpe="£",zpe='"',Hpe='"',Bpe="»",jpe="®",Wpe="®",qpe="§",Upe="­",Vpe="¹",Gpe="²",Kpe="³",Ype="ß",Xpe="Þ",Jpe="þ",Zpe="×",Qpe="Ú",ege="ú",tge="Û",nge="û",rge="Ù",ige="ù",oge="¨",sge="Ü",lge="ü",age="Ý",cge="ý",uge="¥",fge="ÿ",dge={Aacute:phe,aacute:ghe,Acirc:mhe,acirc:vhe,acute:yhe,AElig:bhe,aelig:whe,Agrave:xhe,agrave:She,amp:_he,AMP:khe,Aring:The,aring:Che,Atilde:Ehe,atilde:Ahe,Auml:$he,auml:Nhe,brvbar:Mhe,Ccedil:Lhe,ccedil:Ohe,cedil:Rhe,cent:Phe,copy:Ihe,COPY:Dhe,curren:Fhe,deg:zhe,divide:Hhe,Eacute:Bhe,eacute:jhe,Ecirc:Whe,ecirc:qhe,Egrave:Uhe,egrave:Vhe,ETH:Ghe,eth:Khe,Euml:Yhe,euml:Xhe,frac12:Jhe,frac14:Zhe,frac34:Qhe,gt:epe,GT:tpe,Iacute:npe,iacute:rpe,Icirc:ipe,icirc:ope,iexcl:spe,Igrave:lpe,igrave:ape,iquest:cpe,Iuml:upe,iuml:fpe,laquo:dpe,lt:hpe,LT:ppe,macr:gpe,micro:mpe,middot:vpe,nbsp:ype,not:bpe,Ntilde:wpe,ntilde:xpe,Oacute:Spe,oacute:_pe,Ocirc:kpe,ocirc:Tpe,Ograve:Cpe,ograve:Epe,ordf:Ape,ordm:$pe,Oslash:Npe,oslash:Mpe,Otilde:Lpe,otilde:Ope,Ouml:Rpe,ouml:Ppe,para:Ipe,plusmn:Dpe,pound:Fpe,quot:zpe,QUOT:Hpe,raquo:Bpe,reg:jpe,REG:Wpe,sect:qpe,shy:Upe,sup1:Vpe,sup2:Gpe,sup3:Kpe,szlig:Ype,THORN:Xpe,thorn:Jpe,times:Zpe,Uacute:Qpe,uacute:ege,Ucirc:tge,ucirc:nge,Ugrave:rge,ugrave:ige,uml:oge,Uuml:sge,uuml:lge,Yacute:age,yacute:cge,yen:uge,yuml:fge},hge="&",pge="'",gge=">",mge="<",vge='"',E_={amp:hge,apos:pge,gt:gge,lt:mge,quot:vge};var Qs={};const yge={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Lb;function bge(){if(Lb)return Qs;Lb=1;var e=Qs&&Qs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Qs,"__esModule",{value:!0});var t=e(yge),n=String.fromCodePoint||function(o){var l="";return o>65535&&(o-=65536,l+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),l+=String.fromCharCode(o),l};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return Qs.default=i,Qs}var Ob;function Rb(){if(Ob)return Ir;Ob=1;var e=Ir&&Ir.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.decodeHTML=Ir.decodeHTMLStrict=Ir.decodeXML=void 0;var t=e(C_),n=e(dge),i=e(E_),o=e(bge()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ir.decodeXML=u(i.default),Ir.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Ir.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),$=h(t.default);function _(C){return C.substr(-1)!==";"&&(C+=";"),$(C)}return function(C){return String(C).replace(w,_)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?o.default(parseInt(v.substr(3),16)):o.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Ir}var Pn={},Pb;function Ib(){if(Pb)return Pn;Pb=1;var e=Pn&&Pn.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.escapeUTF8=Pn.escape=Pn.encodeNonAsciiHTML=Pn.encodeHTML=Pn.encodeXML=void 0;var t=e(E_),n=f(t.default),i=h(n);Pn.encodeXML=C(n);var o=e(C_),l=f(o.default),u=h(l);Pn.encodeHTML=y(l,u),Pn.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(L,D){return L[E[D]]="&"+D+";",L},{})}function h(E){for(var L=[],D=[],N=0,I=Object.keys(E);N<I.length;N++){var q=I[N];q.length===1?L.push("\\"+q):D.push(q)}L.sort();for(var X=0;X<L.length-1;X++){for(var ie=X;ie<L.length-1&&L[ie].charCodeAt(1)+1===L[ie+1].charCodeAt(1);)ie+=1;var J=1+ie-X;J<3||L.splice(X,J,L[X]+"-"+L[ie])}return D.unshift("["+L.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,L){return function(D){return D.replace(L,function(N){return E[N]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function $(E){return E.replace(w,v)}Pn.escape=$;function _(E){return E.replace(i,v)}Pn.escapeUTF8=_;function C(E){return function(L){return L.replace(w,function(D){return E[D]||v(D)})}}return Pn}var Db;function wge(){return Db||(Db=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Rb(),n=Ib();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=o;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=Ib();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=Rb();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})})(Hh)),Hh}var Bh,Fb;function xge(){if(Fb)return Bh;Fb=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var k=0;k<O.length;k++){var S=O[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function n(P,O,k){return O&&t(P.prototype,O),P}function i(P,O){var k=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!k){if(Array.isArray(P)||(k=o(P))||O){k&&(P=k);var S=0,R=function(){};return{s:R,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Be){throw Be},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,ve;return{s:function(){k=k.call(P)},n:function(){var Be=k.next();return B=Be.done,Be},e:function(Be){ae=!0,ve=Be},f:function(){try{!B&&k.return!=null&&k.return()}finally{if(ae)throw ve}}}}function o(P,O){if(P){if(typeof P=="string")return l(P,O);var k=Object.prototype.toString.call(P).slice(8,-1);if(k==="Object"&&P.constructor&&(k=P.constructor.name),k==="Map"||k==="Set")return Array.from(P);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return l(P,O)}}function l(P,O){(O==null||O>P.length)&&(O=P.length);for(var k=0,S=new Array(O);k<O;k++)S[k]=P[k];return S}var u=wge(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return C(0,5).forEach(function(O){C(0,5).forEach(function(k){C(0,5).forEach(function(S){return p(O,k,S,P)})})}),C(0,23).forEach(function(O){var k=O+232,S=g(O*10+8);P[k]="#"+S+S+S}),P}function p(P,O,k,S){var R=16+P*36+O*6+k,B=P>0?P*40+55:0,ae=O>0?O*40+55:0,ve=k>0?k*40+55:0;S[R]=v([B,ae,ve])}function g(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function v(P){var O=[],k=i(P),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;O.push(g(R))}}catch(B){k.e(B)}finally{k.f()}return"#"+O.join("")}function y(P,O,k,S){var R;return O==="text"?R=D(k,S):O==="display"?R=$(P,k,S):O==="xterm256Foreground"?R=q(P,S.colors[k]):O==="xterm256Background"?R=X(P,S.colors[k]):O==="rgb"&&(R=w(P,k)),R}function w(P,O){O=O.substring(2).slice(0,-1);var k=+O.substr(0,2),S=O.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(P,(k===38?"color:#":"background-color:#")+R)}function $(P,O,k){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&_(P)},1:function(){return N(P,"b")},3:function(){return N(P,"i")},4:function(){return N(P,"u")},8:function(){return I(P,"display:none")},9:function(){return N(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ie(P,"i")},24:function(){return ie(P,"u")},39:function(){return q(P,k.fg)},49:function(){return X(P,k.bg)},53:function(){return I(P,"text-decoration:overline")}},R;return S[O]?R=S[O]():4<O&&O<7?R=N(P,"blink"):29<O&&O<38?R=q(P,k.colors[O-30]):39<O&&O<48?R=X(P,k.colors[O-40]):89<O&&O<98?R=q(P,k.colors[8+(O-90)]):99<O&&O<108&&(R=X(P,k.colors[8+(O-100)])),R}function _(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(k){return"</"+k+">"}).join("")}function C(P,O){for(var k=[],S=P;S<=O;S++)k.push(S);return k}function E(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function L(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function D(P,O){return O.escapeXML?u.encodeXML(P):P}function N(P,O,k){return k||(k=""),P.push(O),"<".concat(O).concat(k?' style="'.concat(k,'"'):"",">")}function I(P,O){return N(P,"span",O)}function q(P,O){return N(P,"span","color:"+O)}function X(P,O){return N(P,"span","background-color:"+O)}function ie(P,O){var k;if(P.slice(-1)[0]===O&&(k=P.pop()),k)return"</"+O+">"}function J(P,O,k){var S=!1,R=3;function B(){return""}function ae(j,ee){return k("xterm256Foreground",ee),""}function ve(j,ee){return k("xterm256Background",ee),""}function _e(j){return O.newline?k("display",-1):k("text",j),""}function Be(j,ee){S=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var de=i(ee),he;try{for(de.s();!(he=de.n()).done;){var me=he.value;k("display",me)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ee(j){return k("text",j),""}function Ge(j){return k("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ge},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function He(j,ee){ee>R&&S||(S=!1,P=P.replace(j.pattern,j.sub))}var Re=[],z=P,Z=z.length;e:for(;Z>0;){for(var re=0,le=0,ce=Ue.length;le<ce;re=++le){var F=Ue[re];if(He(F,re),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;Re.push(0),Z=P.length}return Re}function U(P,O,k){return O!=="text"&&(P=P.filter(E(L(k))),P.push({token:O,data:k,category:L(k)})),P}var K=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},f.colors,O.colors)),this.options=Object.assign({},f,O),this.stack=[],this.stickyStack=[]}return n(P,[{key:"toHtml",value:function(k){var S=this;k=typeof k=="string"?[k]:k;var R=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=y(R,ve.token,ve.data,B);_e&&ae.push(_e)}),J(k.join(""),B,function(ve,_e){var Be=y(R,ve,_e,B);Be&&ae.push(Be),B.stream&&(S.stickyStack=U(S.stickyStack,ve,_e))}),R.length&&ae.push(_(R)),ae.join("")}}]),P})();return Bh=K,Bh}var Sge=xge();const _ge=Jg(Sge);function Wa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function kge(e,t){return t&&e.endsWith(t)}async function Zg(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Qg(e){return new _ge({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Tge(e){return e===null||typeof e!="function"&&typeof e!="object"}function A_(e){let t=e;if(Tge(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:"",stacks:[]}}return t.stacks=UO(t.stack||"",{ignoreStackEntries:[]}),t}function Cge(e,t){let n="";return t.message?.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(Wa(t.message))}`),t.stack?.includes("\x1B")&&(n.length>0?n+=e.toHtml(Wa(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(Wa(t.stack))}`),n.length>0?n:null}function $_(e,t){const n=Qg(e);return t.map(i=>{const o=i.result;if(!o||o.htmlError)return i;const l=o.errors?.map(u=>Cge(n,u)).filter(u=>u!=null).join("<br><br>");return l?.length&&(o.htmlError=l),i})}const Nc=dM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),Io=ks(Nc,"file"),yn=ks(Nc,"view"),N_=ks(Nc,"line"),M_=ks(Nc,"column"),Fi=ks(Nc,"test");var zb={exports:{}},Hb;function em(){return Hb||(Hb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("javascript",function(i,o){var l=i.indentUnit,u=o.statementIndent,f=o.jsonld,h=o.json||f,p=o.trackScope!==!1,g=o.typescript,v=o.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function M(tn){return{type:tn,style:"keyword"}}var V=M("keyword a"),ye=M("keyword b"),ke=M("keyword c"),fe=M("keyword d"),Ie=M("operator"),gt={type:"atom",style:"atom"};return{if:M("if"),while:V,with:V,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:M("new"),delete:ke,void:ke,throw:ke,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Ie,typeof:Ie,instanceof:Ie,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:M("this"),class:M("class"),super:M("atom"),yield:ke,export:M("export"),import:M("import"),extends:ke,await:ke}})(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(M){for(var V=!1,ye,ke=!1;(ye=M.next())!=null;){if(!V){if(ye=="/"&&!ke)return;ye=="["?ke=!0:ke&&ye=="]"&&(ke=!1)}V=!V&&ye=="\\"}}var C,E;function L(M,V,ye){return C=M,E=ye,V}function D(M,V){var ye=M.next();if(ye=='"'||ye=="'")return V.tokenize=N(ye),V.tokenize(M,V);if(ye=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(ye=="."&&M.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return L(ye);if(ye=="="&&M.eat(">"))return L("=>","operator");if(ye=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(ye))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(ye=="/")return M.eat("*")?(V.tokenize=I,I(M,V)):M.eat("/")?(M.skipToEnd(),L("comment","comment")):or(M,V,1)?(_(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(M.eat("="),L("operator","operator",M.current()));if(ye=="`")return V.tokenize=q,q(M,V);if(ye=="#"&&M.peek()=="!")return M.skipToEnd(),L("meta","meta");if(ye=="#"&&M.eatWhile(v))return L("variable","property");if(ye=="<"&&M.match("!--")||ye=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),L("comment","comment");if(w.test(ye))return(ye!=">"||!V.lexical||V.lexical.type!=">")&&(M.eat("=")?(ye=="!"||ye=="=")&&M.eat("="):/[<>*+\-|&?]/.test(ye)&&(M.eat(ye),ye==">"&&M.eat(ye))),ye=="?"&&M.eat(".")?L("."):L("operator","operator",M.current());if(v.test(ye)){M.eatWhile(v);var ke=M.current();if(V.lastType!="."){if(y.propertyIsEnumerable(ke)){var fe=y[ke];return L(fe.type,fe.style,ke)}if(ke=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ke)}return L("variable","variable",ke)}}function N(M){return function(V,ye){var ke=!1,fe;if(f&&V.peek()=="@"&&V.match($))return ye.tokenize=D,L("jsonld-keyword","meta");for(;(fe=V.next())!=null&&!(fe==M&&!ke);)ke=!ke&&fe=="\\";return ke||(ye.tokenize=D),L("string","string")}}function I(M,V){for(var ye=!1,ke;ke=M.next();){if(ke=="/"&&ye){V.tokenize=D;break}ye=ke=="*"}return L("comment","comment")}function q(M,V){for(var ye=!1,ke;(ke=M.next())!=null;){if(!ye&&(ke=="`"||ke=="$"&&M.eat("{"))){V.tokenize=D;break}ye=!ye&&ke=="\\"}return L("quasi","string-2",M.current())}var X="([{}])";function ie(M,V){V.fatArrowAt&&(V.fatArrowAt=null);var ye=M.string.indexOf("=>",M.start);if(!(ye<0)){if(g){var ke=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,ye));ke&&(ye=ke.index)}for(var fe=0,Ie=!1,gt=ye-1;gt>=0;--gt){var tn=M.string.charAt(gt),$n=X.indexOf(tn);if($n>=0&&$n<3){if(!fe){++gt;break}if(--fe==0){tn=="("&&(Ie=!0);break}}else if($n>=3&&$n<6)++fe;else if(v.test(tn))Ie=!0;else if(/["'\/`]/.test(tn))for(;;--gt){if(gt==0)return;var Ls=M.string.charAt(gt-1);if(Ls==tn&&M.string.charAt(gt-2)!="\\"){gt--;break}}else if(Ie&&!fe){++gt;break}}Ie&&!fe&&(V.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function U(M,V,ye,ke,fe,Ie){this.indented=M,this.column=V,this.type=ye,this.prev=fe,this.info=Ie,ke!=null&&(this.align=ke)}function K(M,V){if(!p)return!1;for(var ye=M.localVars;ye;ye=ye.next)if(ye.name==V)return!0;for(var ke=M.context;ke;ke=ke.prev)for(var ye=ke.vars;ye;ye=ye.next)if(ye.name==V)return!0}function P(M,V,ye,ke,fe){var Ie=M.cc;for(O.state=M,O.stream=fe,O.marked=null,O.cc=Ie,O.style=V,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var gt=Ie.length?Ie.pop():h?ce:re;if(gt(ye,ke)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:ye=="variable"&&K(M,ke)?"variable-2":V}}}var O={state:null,marked:null,cc:null};function k(){for(var M=arguments.length-1;M>=0;M--)O.cc.push(arguments[M])}function S(){return k.apply(null,arguments),!0}function R(M,V){for(var ye=V;ye;ye=ye.next)if(ye.name==M)return!0;return!1}function B(M){var V=O.state;if(O.marked="def",!!p){if(V.context){if(V.lexical.info=="var"&&V.context&&V.context.block){var ye=ae(M,V.context);if(ye!=null){V.context=ye;return}}else if(!R(M,V.localVars)){V.localVars=new Be(M,V.localVars);return}}o.globalVars&&!R(M,V.globalVars)&&(V.globalVars=new Be(M,V.globalVars))}}function ae(M,V){if(V)if(V.block){var ye=ae(M,V.prev);return ye?ye==V.prev?V:new _e(ye,V.vars,!0):null}else return R(M,V.vars)?V:new _e(V.prev,new Be(M,V.vars),!1);else return null}function ve(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function _e(M,V,ye){this.prev=M,this.vars=V,this.block=ye}function Be(M,V){this.name=M,this.next=V}var Ee=new Be("this",new Be("arguments",null));function Ge(){O.state.context=new _e(O.state.context,O.state.localVars,!1),O.state.localVars=Ee}function Ue(){O.state.context=new _e(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ge.lex=Ue.lex=!0;function He(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}He.lex=!0;function Re(M,V){var ye=function(){var ke=O.state,fe=ke.indented;if(ke.lexical.type=="stat")fe=ke.lexical.indented;else for(var Ie=ke.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;ke.lexical=new U(fe,O.stream.column(),M,null,ke.lexical,V)};return ye.lex=!0,ye}function z(){var M=O.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}z.lex=!0;function Z(M){function V(ye){return ye==M?S():M==";"||ye=="}"||ye==")"||ye=="]"?k():S(V)}return V}function re(M,V){return M=="var"?S(Re("vardef",V),Ts,Z(";"),z):M=="keyword a"?S(Re("form"),j,re,z):M=="keyword b"?S(Re("form"),re,z):M=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(Re("stat"),de,Z(";"),z):M=="debugger"?S(Z(";")):M=="{"?S(Re("}"),Ue,Gt,z,He):M==";"?S():M=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==z&&O.state.cc.pop()(),S(Re("form"),j,re,z,Cs)):M=="function"?S(br):M=="for"?S(Re("form"),Ue,Pc,re,He,z):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form",M=="class"?M:V),Es,z)):M=="variable"?g&&V=="declare"?(O.marked="keyword",S(re)):g&&(V=="module"||V=="enum"||V=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",V=="enum"?S(qe):V=="type"?S(Ic,Z("operator"),at,Z(";")):S(Re("form"),An,Z("{"),Re("}"),Gt,z,z)):g&&V=="namespace"?(O.marked="keyword",S(Re("form"),ce,re,z)):g&&V=="abstract"?(O.marked="keyword",S(re)):S(Re("stat"),Pe):M=="switch"?S(Re("form"),j,Z("{"),Re("}","switch"),Ue,Gt,z,z,He):M=="case"?S(ce,Z(":")):M=="default"?S(Z(":")):M=="catch"?S(Re("form"),Ge,le,re,z,He):M=="export"?S(Re("stat"),As,z):M=="import"?S(Re("stat"),eo,z):M=="async"?S(re):V=="@"?S(ce,re):k(Re("stat"),ce,Z(";"),z)}function le(M){if(M=="(")return S($r,Z(")"))}function ce(M,V){return ee(M,V,!1)}function F(M,V){return ee(M,V,!0)}function j(M){return M!="("?k():S(Re(")"),de,Z(")"),z)}function ee(M,V,ye){if(O.state.fatArrowAt==O.stream.start){var ke=ye?be:xe;if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Z("=>"),ke,He);if(M=="variable")return k(Ge,An,Z("=>"),ke,He)}var fe=ye?me:he;return J.hasOwnProperty(M)?S(fe):M=="function"?S(br,fe):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form"),wd,z)):M=="keyword c"||M=="async"?S(ye?F:ce):M=="("?S(Re(")"),de,Z(")"),z,fe):M=="operator"||M=="spread"?S(ye?F:ce):M=="["?S(Re("]"),Ft,z,fe):M=="{"?en(ct,"}",null,fe):M=="quasi"?k(Ce,fe):M=="new"?S(Q(ye)):S()}function de(M){return M.match(/[;\}\)\],]/)?k():k(ce)}function he(M,V){return M==","?S(de):me(M,V,!1)}function me(M,V,ye){var ke=ye==!1?he:me,fe=ye==!1?ce:F;if(M=="=>")return S(Ge,ye?be:xe,He);if(M=="operator")return/\+\+|--/.test(V)||g&&V=="!"?S(ke):g&&V=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Re(">"),ut(at,">"),z,ke):V=="?"?S(ce,Z(":"),fe):S(fe);if(M=="quasi")return k(Ce,ke);if(M!=";"){if(M=="(")return en(F,")","call",ke);if(M==".")return S(et,ke);if(M=="[")return S(Re("]"),de,Z("]"),z,ke);if(g&&V=="as")return O.marked="keyword",S(at,ke);if(M=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(fe)}}function Ce(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(Ce):S(de,Ae)}function Ae(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(Ce)}function xe(M){return ie(O.stream,O.state),k(M=="{"?re:ce)}function be(M){return ie(O.stream,O.state),k(M=="{"?re:F)}function Q(M){return function(V){return V=="."?S(M?oe:ue):V=="variable"&&g?S(Kn,M?me:he):k(M?F:ce)}}function ue(M,V){if(V=="target")return O.marked="keyword",S(he)}function oe(M,V){if(V=="target")return O.marked="keyword",S(me)}function Pe(M){return M==":"?S(z,re):k(he,Z(";"),z)}function et(M){if(M=="variable")return O.marked="property",S()}function ct(M,V){if(M=="async")return O.marked="property",S(ct);if(M=="variable"||O.style=="keyword"){if(O.marked="property",V=="get"||V=="set")return S(dt);var ye;return g&&O.state.fatArrowAt==O.stream.start&&(ye=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+ye[0].length),S(Ot)}else{if(M=="number"||M=="string")return O.marked=f?"property":O.style+" property",S(Ot);if(M=="jsonld-keyword")return S(Ot);if(g&&ve(V))return O.marked="keyword",S(ct);if(M=="[")return S(ce,Vn,Z("]"),Ot);if(M=="spread")return S(F,Ot);if(V=="*")return O.marked="keyword",S(ct);if(M==":")return k(Ot)}}function dt(M){return M!="variable"?k(Ot):(O.marked="property",S(br))}function Ot(M){if(M==":")return S(F);if(M=="(")return k(br)}function ut(M,V,ye){function ke(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var gt=O.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(tn,$n){return tn==V||$n==V?k():k(M)},ke)}return fe==V||Ie==V?S():ye&&ye.indexOf(";")>-1?k(M):S(Z(V))}return function(fe,Ie){return fe==V||Ie==V?S():k(M,ke)}}function en(M,V,ye){for(var ke=3;ke<arguments.length;ke++)O.cc.push(arguments[ke]);return S(Re(V,ye),ut(M,V),z)}function Gt(M){return M=="}"?S():k(re,Gt)}function Vn(M,V){if(g){if(M==":")return S(at);if(V=="?")return S(Vn)}}function Jr(M,V){if(g&&(M==":"||V=="in"))return S(at)}function Wt(M){if(g&&M==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(ce,Gn,at):S(at)}function Gn(M,V){if(V=="is")return O.marked="keyword",S()}function at(M,V){if(V=="keyof"||V=="typeof"||V=="infer"||V=="readonly")return O.marked="keyword",S(V=="typeof"?F:at);if(M=="variable"||V=="void")return O.marked="type",S(yr);if(V=="|"||V=="&")return S(at);if(M=="string"||M=="number"||M=="atom")return S(yr);if(M=="[")return S(Re("]"),ut(at,"]",","),z,yr);if(M=="{")return S(Re("}"),Xe,z,yr);if(M=="(")return S(ut(Dt,")"),Bo,yr);if(M=="<")return S(ut(at,">"),at);if(M=="quasi")return k(hn,yr)}function Bo(M){if(M=="=>")return S(at)}function Xe(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Xe):k(vi,Xe)}function vi(M,V){if(M=="variable"||O.style=="keyword")return O.marked="property",S(vi);if(V=="?"||M=="number"||M=="string")return S(vi);if(M==":")return S(at);if(M=="[")return S(Z("variable"),Jr,Z("]"),vi);if(M=="(")return k(Qi,vi);if(!M.match(/[;\}\)\],]/))return S()}function hn(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(hn):S(at,It)}function It(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(hn)}function Dt(M,V){return M=="variable"&&O.stream.match(/^\s*[?:]/,!1)||V=="?"?S(Dt):M==":"?S(at):M=="spread"?S(Dt):k(at)}function yr(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr);if(V=="|"||M=="."||V=="&")return S(at);if(M=="[")return S(at,Z("]"),yr);if(V=="extends"||V=="implements")return O.marked="keyword",S(at);if(V=="?")return S(at,Z(":"),at)}function Kn(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr)}function Er(){return k(at,pn)}function pn(M,V){if(V=="=")return S(at)}function Ts(M,V){return V=="enum"?(O.marked="keyword",S(qe)):k(An,Vn,Ar,bd)}function An(M,V){if(g&&ve(V))return O.marked="keyword",S(An);if(M=="variable")return B(V),S();if(M=="spread")return S(An);if(M=="[")return en(jl,"]");if(M=="{")return en(Ji,"}")}function Ji(M,V){return M=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(V),S(Ar)):(M=="variable"&&(O.marked="property"),M=="spread"?S(An):M=="}"?k():M=="["?S(ce,Z("]"),Z(":"),Ji):S(Z(":"),An,Ar))}function jl(){return k(An,Ar)}function Ar(M,V){if(V=="=")return S(F)}function bd(M){if(M==",")return S(Ts)}function Cs(M,V){if(M=="keyword b"&&V=="else")return S(Re("form","else"),re,z)}function Pc(M,V){if(V=="await")return S(Pc);if(M=="(")return S(Re(")"),Wl,z)}function Wl(M){return M=="var"?S(Ts,Zi):M=="variable"?S(Zi):k(Zi)}function Zi(M,V){return M==")"?S():M==";"?S(Zi):V=="in"||V=="of"?(O.marked="keyword",S(ce,Zi)):k(ce,Zi)}function br(M,V){if(V=="*")return O.marked="keyword",S(br);if(M=="variable")return B(V),S(br);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,re,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,br)}function Qi(M,V){if(V=="*")return O.marked="keyword",S(Qi);if(M=="variable")return B(V),S(Qi);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,Qi)}function Ic(M,V){if(M=="keyword"||M=="variable")return O.marked="type",S(Ic);if(V=="<")return S(Re(">"),ut(Er,">"),z)}function $r(M,V){return V=="@"&&S(ce,$r),M=="spread"?S($r):g&&ve(V)?(O.marked="keyword",S($r)):g&&M=="this"?S(Vn,Ar):k(An,Vn,Ar)}function wd(M,V){return M=="variable"?Es(M,V):Nr(M,V)}function Es(M,V){if(M=="variable")return B(V),S(Nr)}function Nr(M,V){if(V=="<")return S(Re(">"),ut(Er,">"),z,Nr);if(V=="extends"||V=="implements"||g&&M==",")return V=="implements"&&(O.marked="keyword"),S(g?at:ce,Nr);if(M=="{")return S(Re("}"),Mr,z)}function Mr(M,V){if(M=="async"||M=="variable"&&(V=="static"||V=="get"||V=="set"||g&&ve(V))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(Mr);if(M=="variable"||O.style=="keyword")return O.marked="property",S(jo,Mr);if(M=="number"||M=="string")return S(jo,Mr);if(M=="[")return S(ce,Vn,Z("]"),jo,Mr);if(V=="*")return O.marked="keyword",S(Mr);if(g&&M=="(")return k(Qi,Mr);if(M==";"||M==",")return S(Mr);if(M=="}")return S();if(V=="@")return S(ce,Mr)}function jo(M,V){if(V=="!"||V=="?")return S(jo);if(M==":")return S(at,Ar);if(V=="=")return S(F);var ye=O.state.lexical.prev,ke=ye&&ye.info=="interface";return k(ke?Qi:br)}function As(M,V){return V=="*"?(O.marked="keyword",S(Ms,Z(";"))):V=="default"?(O.marked="keyword",S(ce,Z(";"))):M=="{"?S(ut($s,"}"),Ms,Z(";")):k(re)}function $s(M,V){if(V=="as")return O.marked="keyword",S(Z("variable"));if(M=="variable")return k(F,$s)}function eo(M){return M=="string"?S():M=="("?k(ce):M=="."?k(he):k(Ns,Zr,Ms)}function Ns(M,V){return M=="{"?en(Ns,"}"):(M=="variable"&&B(V),V=="*"&&(O.marked="keyword"),S(ql))}function Zr(M){if(M==",")return S(Ns,Zr)}function ql(M,V){if(V=="as")return O.marked="keyword",S(Ns)}function Ms(M,V){if(V=="from")return O.marked="keyword",S(ce)}function Ft(M){return M=="]"?S():k(ut(F,"]"))}function qe(){return k(Re("form"),An,Z("{"),Re("}"),ut(yi,"}"),z,z)}function yi(){return k(An,Ar)}function Ul(M,V){return M.lastType=="operator"||M.lastType==","||w.test(V.charAt(0))||/[,.]/.test(V.charAt(0))}function or(M,V,ye){return V.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(V.lastType)||V.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(ye||0)))}return{startState:function(M){var V={tokenize:D,lastType:"sof",cc:[],lexical:new U((M||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new _e(null,null,!1),indented:M||0};return o.globalVars&&typeof o.globalVars=="object"&&(V.globalVars=o.globalVars),V},token:function(M,V){if(M.sol()&&(V.lexical.hasOwnProperty("align")||(V.lexical.align=!1),V.indented=M.indentation(),ie(M,V)),V.tokenize!=I&&M.eatSpace())return null;var ye=V.tokenize(M,V);return C=="comment"?ye:(V.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,P(V,ye,C,E,M))},indent:function(M,V){if(M.tokenize==I||M.tokenize==q)return n.Pass;if(M.tokenize!=D)return 0;var ye=V&&V.charAt(0),ke=M.lexical,fe;if(!/^\s*else\b/.test(V))for(var Ie=M.cc.length-1;Ie>=0;--Ie){var gt=M.cc[Ie];if(gt==z)ke=ke.prev;else if(gt!=Cs&&gt!=He)break}for(;(ke.type=="stat"||ke.type=="form")&&(ye=="}"||(fe=M.cc[M.cc.length-1])&&(fe==he||fe==me)&&!/^[,\.=+\-*:?[\(]/.test(V));)ke=ke.prev;u&&ke.type==")"&&ke.prev.type=="stat"&&(ke=ke.prev);var tn=ke.type,$n=ye==tn;return tn=="vardef"?ke.indented+(M.lastType=="operator"||M.lastType==","?ke.info.length+1:0):tn=="form"&&ye=="{"?ke.indented:tn=="form"?ke.indented+l:tn=="stat"?ke.indented+(Ul(M,V)?u||l:0):ke.info=="switch"&&!$n&&o.doubleIndentSwitch!=!1?ke.indented+(/^(?:case|default)\b/.test(V)?l:2*l):ke.align?ke.column+($n?0:1):ke.indented+($n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:or,skipExpression:function(M){P(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),zb.exports}em();var Bb={exports:{}},jb;function tm(){return jb||(jb=1,(function(e,t){(function(n){n(Ho())})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:o;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(_e){return R.tokenize=_e,_e(S,R)}var ae=S.next();if(ae=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(ae=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function $(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=q,R.tagName=R.tagStart=null;var ae=R.tokenize(S,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=_(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _(S){var R=function(B,ae){for(;!B.eol();)if(B.next()==S){ae.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ae){for(;!B.eol();){if(B.match(R)){ae.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ae;(ae=R.next())!=null;){if(ae=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ae==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function L(S){return S&&S.toLowerCase()}function D(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function N(S){S.context&&(S.context=S.context.prev)}function I(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(L(B))||!h.contextGrabbers[L(B)].hasOwnProperty(L(R))))return;N(S)}}function q(S,R,B){return S=="openTag"?(B.tagStart=R.column(),X):S=="closeTag"?ie:q}function X(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",K):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",K(S,R,B)):(y="error",X)}function ie(S,R,B){if(S=="word"){var ae=R.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(L(B.context.tagName))&&N(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(y="tag",J):(y="tag error",U)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",J(S,R,B)):(y="error",U)}function J(S,R,B){return S!="endTag"?(y="error",J):(N(B),q)}function U(S,R,B){return y="error",J(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ae=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ae))?I(B,ae):(I(B,ae),B.context=new D(B,ae,ve==B.indented)),q}return y="error",K}function P(S,R,B){return S=="equals"?O:(h.allowMissing||(y="error"),K(S,R,B))}function O(S,R,B){return S=="string"?k:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function k(S,R,B){return S=="string"?k:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:q,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ae=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ae&&ae.noIndent)return n.Pass;if(S.tokenize!=$&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=h.contextGrabbers[L(ae.tagName)];if(_e&&_e.hasOwnProperty(L(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Bb.exports}tm();var Wb={exports:{}},qb={exports:{}},Ub;function Ege(){return Ub||(Ub=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("css",function(U,K){var P=K.inline;K.propertyKeywords||(K=n.resolveMode("text/css"));var O=U.indentUnit,k=K.tokenHooks,S=K.documentTypes||{},R=K.mediaTypes||{},B=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ve=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},Be=K.fontProperties||{},Ee=K.counterDescriptors||{},Ge=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,Re=K.lineComment,z=K.supportsAtComponent===!0,Z=U.highlightNonStandardPropertyKeywords!==!1,re,le;function ce(Q,ue){return re=ue,Q}function F(Q,ue){var oe=Q.next();if(k[oe]){var Pe=k[oe](Q,ue);if(Pe!==!1)return Pe}if(oe=="@")return Q.eatWhile(/[\w\\\-]/),ce("def",Q.current());if(oe=="="||(oe=="~"||oe=="|")&&Q.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=j(oe),ue.tokenize(Q,ue);if(oe=="#")return Q.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return Q.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(Q.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(ue.tokenize=ee),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(Q.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(Q){return function(ue,oe){for(var Pe=!1,et;(et=ue.next())!=null;){if(et==Q&&!Pe){Q==")"&&ue.backUp(1);break}Pe=!Pe&&et=="\\"}return(et==Q||!Pe&&Q!=")")&&(oe.tokenize=null),ce("string","string")}}function ee(Q,ue){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(Q,ue,oe){this.type=Q,this.indent=ue,this.prev=oe}function he(Q,ue,oe,Pe){return Q.context=new de(oe,ue.indentation()+(Pe===!1?0:O),Q.context),oe}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,ue,oe){return be[oe.context.type](Q,ue,oe)}function Ae(Q,ue,oe,Pe){for(var et=Pe||1;et>0;et--)oe.context=oe.context.prev;return Ce(Q,ue,oe)}function xe(Q){var ue=Q.current().toLowerCase();Ue.hasOwnProperty(ue)?le="atom":Ge.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(Q,ue,oe){if(Q=="{")return he(oe,ue,"block");if(Q=="}"&&oe.context.prev)return me(oe);if(z&&/@component/i.test(Q))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return oe.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return he(oe,ue,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(Q,ue,oe){if(Q=="word"){var Pe=ue.current().toLowerCase();return ve.hasOwnProperty(Pe)?(le="property","maybeprop"):_e.hasOwnProperty(Pe)?(le=Z?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,ue,oe)},be.maybeprop=function(Q,ue,oe){return Q==":"?he(oe,ue,"prop"):Ce(Q,ue,oe)},be.prop=function(Q,ue,oe){if(Q==";")return me(oe);if(Q=="{"&&He)return he(oe,ue,"propBlock");if(Q=="}"||Q=="{")return Ae(Q,ue,oe);if(Q=="(")return he(oe,ue,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(Q=="word")xe(ue);else if(Q=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(Q,ue,oe){return Q=="}"?me(oe):Q=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(Q,ue,oe){return Q=="{"||Q=="}"?Ae(Q,ue,oe):Q==")"?me(oe):Q=="("?he(oe,ue,"parens"):Q=="interpolation"?he(oe,ue,"interpolation"):(Q=="word"&&xe(ue),"parens")},be.pseudo=function(Q,ue,oe){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",oe.context.type):Ce(Q,ue,oe)},be.documentTypes=function(Q,ue,oe){return Q=="word"&&S.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(Q,ue,oe)},be.atBlock=function(Q,ue,oe){if(Q=="(")return he(oe,ue,"atBlock_parens");if(Q=="}"||Q==";")return Ae(Q,ue,oe);if(Q=="{")return me(oe)&&he(oe,ue,He?"block":"top");if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q=="word"){var Pe=ue.current().toLowerCase();Pe=="only"||Pe=="not"||Pe=="and"||Pe=="or"?le="keyword":R.hasOwnProperty(Pe)?le="attribute":B.hasOwnProperty(Pe)?le="property":ae.hasOwnProperty(Pe)?le="keyword":ve.hasOwnProperty(Pe)?le="property":_e.hasOwnProperty(Pe)?le=Z?"string-2":"property":Ue.hasOwnProperty(Pe)?le="atom":Ge.hasOwnProperty(Pe)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(Q,ue,oe){return Q=="}"?Ae(Q,ue,oe):Q=="{"?me(oe)&&he(oe,ue,He?"block":"top",!1):(Q=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(Q,ue,oe){return Q==")"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe,2):be.atBlock(Q,ue,oe)},be.restricted_atBlock_before=function(Q,ue,oe){return Q=="{"?he(oe,ue,"restricted_atBlock"):Q=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,ue,oe)},be.restricted_atBlock=function(Q,ue,oe){return Q=="}"?(oe.stateArg=null,me(oe)):Q=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ee.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,ue,oe){return Q=="word"?(le="variable","keyframes"):Q=="{"?he(oe,ue,"top"):Ce(Q,ue,oe)},be.at=function(Q,ue,oe){return Q==";"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,ue,oe){return Q=="}"?me(oe):Q=="{"||Q==";"?Ae(Q,ue,oe):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new de(P?"block":"top",Q||0,null)}},token:function(Q,ue){if(!ue.tokenize&&Q.eatSpace())return null;var oe=(ue.tokenize||F)(Q,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=be[ue.state](re,Q,ue)),le},indent:function(Q,ue){var oe=Q.context,Pe=ue&&ue.charAt(0),et=oe.indent;return oe.type=="prop"&&(Pe=="}"||Pe==")")&&(oe=oe.prev),oe.prev&&(Pe=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,et=oe.indent):(Pe==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Pe=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(et=Math.max(0,oe.indent-O))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function i(U){for(var K={},P=0;P<U.length;++P)K[U[P].toLowerCase()]=!0;return K}var o=["domain","regexp","url","url-prefix"],l=i(o),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=i(u),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=i(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=i(g),y=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=i(y),$=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=i($),C=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=i(C),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=i(L),N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=i(N),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],X=i(q),ie=o.concat(u).concat(h).concat(g).concat(y).concat($).concat(N).concat(q);n.registerHelper("hintWords","css",ie);function J(U,K){for(var P=!1,O;(O=U.next())!=null;){if(P&&O=="/"){K.tokenize=null;break}P=O=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:l,mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},":":function(U){return U.match(/^\s*\{/,!1)?[null,null]:!1},$:function(U){return U.match(/^[\w-]+/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(U){return U.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},"@":function(U){return U.eat("{")?[null,"interpolation"]:U.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:f,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,supportsAtComponent:!0,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css",helperType:"gss"})})})()),qb.exports}var Vb;function Age(){return Vb||(Vb=1,(function(e,t){(function(n){n(Ho(),tm(),em(),Ege())})(function(n){var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function o(v,y,w){var $=v.current(),_=$.search(y);return _>-1?v.backUp($.length-_):$.match(/<\/?$/)&&(v.backUp($.length),v.match(y,!1)||v.match($)),w}var l={};function u(v){var y=l[v];return y||(l[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function f(v,y){var w=v.match(u(y));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,y){return new RegExp((y?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,y){for(var w in v)for(var $=y[w]||(y[w]=[]),_=v[w],C=_.length-1;C>=0;C--)$.unshift(_[C])}function g(v,y){for(var w=0;w<v.length;w++){var $=v[w];if(!$[0]||$[1].test(f(y,$[0])))return $[2]}}n.defineMode("htmlmixed",function(v,y){var w=n.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),$={},_=y&&y.tags,C=y&&y.scriptTypes;if(p(i,$),_&&p(_,$),C)for(var E=C.length-1;E>=0;E--)$.script.unshift(["type",C[E].matches,C[E].mode]);function L(D,N){var I=w.token(D,N.htmlState),q=/\btag\b/.test(I),X;if(q&&!/[<>\s\/]/.test(D.current())&&(X=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&$.hasOwnProperty(X))N.inTag=X+" ";else if(N.inTag&&q&&/>$/.test(D.current())){var ie=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var J=D.current()==">"&&g($[ie[1]],ie[2]),U=n.getMode(v,J),K=h(ie[1],!0),P=h(ie[1],!1);N.token=function(O,k){return O.match(K,!1)?(k.token=L,k.localState=k.localMode=null,null):o(O,P,k.localMode.token(O,k.localState))},N.localMode=U,N.localState=n.startState(U,w.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=D.current(),D.eol()&&(N.inTag+=" "));return I}return{startState:function(){var D=n.startState(w);return{token:L,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var N;return D.localState&&(N=n.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:N,htmlState:n.copyState(w,D.htmlState)}},token:function(D,N){return N.token(D,N)},indent:function(D,N,I){return!D.localMode||/^\s*<\//.test(N)?w.indent(D.htmlState,N,I):D.localMode.indent?D.localMode.indent(D.localState,N,I):n.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||w}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})()),Wb.exports}Age();var Gb={exports:{}},Kb;function $ge(){return Kb||(Kb=1,(function(e,t){(function(n){n(Ho(),tm(),em())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function o(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&o(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var _=f.indent(w,"","");return w.tagName=$,_}function g(w,$){return $.context.mode==f?v(w,$,$.context):y(w,$,$.context)}function v(w,$,_){if(_.depth==2)return w.match(/^.*?\*\//)?_.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute(_.state);var C=p(_.state),E=_.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:_.prev.state.lexical&&(C=_.prev.state.lexical.indented)}else _.depth==1&&(C+=l.indentUnit);return $.context=new i(n.startState(h,C),h,0,$.context),null}if(_.depth==1){if(w.peek()=="<")return f.skipAttribute(_.state),$.context=new i(n.startState(f,p(_.state)),f,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return _.depth=2,g(w,$)}var L=f.token(w,_.state),D=w.current(),N;return/\btag\b/.test(L)?/>$/.test(D)?_.state.context?_.depth=0:$.context=$.context.prev:/^</.test(D)&&(_.depth=1):!L&&(N=D.indexOf("{"))>-1&&w.backUp(D.length-N),L}function y(w,$,_){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,_.state))return $.context=new i(n.startState(f,h.indent(_.state,"","")),f,0,$.context),h.skipExpression(_.state),null;var C=h.token(w,_.state);if(!C&&_.depth!=null){var E=w.current();E=="{"?_.depth++:E=="}"&&--_.depth==0&&($.context=$.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,_){return w.context.mode.indent(w.context.state,$,_)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Gb.exports}$ge();var Yb={exports:{}},Xb;function Nge(){return Xb||(Xb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?o(p):i(p)},20)}function u(p){h(p)&&o(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?o(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Yb.exports}Nge();var Jb={exports:{}},Zb;function Mge(){return Zb||(Zb=1,(function(e,t){(function(n){n(Ho())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],$=p.pos;function _(){n.off(document,"mousemove",C),n.off(document,"mouseup",_)}function C(E){if(E.which!=1)return _();p.moveTo($+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",_)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var o=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<o&&(this.size-=o-g,g=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})})()),Jb.exports}Mge();const Fn=Vt();function Lge(e,t,n={}){const i=XP.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),yt(t,l=>{if(l!==i.getValue()){o=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),_c(()=>{Fn.value=void 0}),Vf(i)}async function L_(e){dc({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Oge(e,t){dc({file:e,column:t.column-1,line:t.line,view:"editor",test:Fi.value})}function Rge(e,t){if(!t)return;const{line:n,column:i,file:o}=t;if(e.file.filepath!==o)return Zg(o,n,i);dc({file:e.file.id,column:i-1,line:n,view:"editor",test:Fi.value})}const Tr=Ke(),vl=Ke(!0),Do=Ke(!1),Ef=Ke(!0),O_=Se(()=>pt.value?.coverage),Pp=Se(()=>O_.value?.enabled),$a=Se(()=>Pp.value&&!!O_.value?.htmlDir),yl=Cc("vitest-ui_splitpanes-mainSizes",[33,67]),ms=Cc("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?lr.value[0]/window.outerWidth*100:33,67]),Bi=Cc("vitest-ui_details-panel-visible",!0),Tn=Ke("right");At(()=>{yt(pt,()=>{pt.value?.browser?.detailsPanelPosition&&(Tn.value=pt.value.browser.detailsPanelPosition)})});function Pge(){setTimeout(()=>{Bi.value=!1},0)}function Ige(){Bi.value=!0}const fn=dr({navigation:yl.value[0],details:{size:yl.value[1],browser:ms.value[0],main:ms.value[1]}});yt(dd,e=>{Ef.value=e==="running"},{immediate:!0});function Dge(){const e=Io.value;if(e&&e.length>0){const t=Cr(e);t?(Tr.value=t,vl.value=!1,Do.value=!1):qN(()=>ft.state.getFiles(),()=>{Tr.value=Cr(e),vl.value=!1,Do.value=!1})}return vl}function Af(e){vl.value=e,Do.value=!1,e&&(Tr.value=void 0,Io.value="")}function dc({file:e,line:t,view:n,test:i,column:o}){Io.value=e,N_.value=t,M_.value=o,yn.value=n,Fi.value=i,Tr.value=Cr(e),Af(!1)}function Fge(e){e.type==="test"?yn.value==="editor"?L_(e):dc({file:e.file.id,line:null,column:null,view:yn.value,test:e.id}):dc({file:e.file.id,test:null,line:null,view:yn.value,column:null})}function zge(){Do.value=!0,vl.value=!1,Tr.value=void 0,Io.value=""}function Hge(){if(gr?.provider==="webdriverio"){const e=window.outerWidth*(fn.details.size/100);return(lr.value[0]+20)/e*100}return 33}function Bge(){fn.navigation=33,fn.details.size=67,yl.value=[33,67]}function R_(){fn.details.main!==0&&(fn.details.browser=Hge(),fn.details.main=100-fn.details.browser,ms.value=[fn.details.browser,fn.details.main])}function jge(){Tn.value=Tn.value==="right"?"bottom":"right";const e=Tn.value==="bottom"?33:50;ms.value=[e,100-e],fn.details.browser=e,fn.details.main=100-e}const Wge={setCurrentFileId(e){Io.value=e,Tr.value=Cr(e),Af(!1)},async setIframeViewport(e,t){lr.value=[e,t],gr?.provider==="webdriverio"&&R_(),await new Promise(n=>requestAnimationFrame(n))}},qge=location.port,Uge=[location.hostname,qge].filter(Boolean).join(":"),Vge=`${location.protocol==="https:"?"wss:":"ws:"}//${Uge}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var ur=Uint8Array,sl=Uint16Array,Gge=Int32Array,P_=new ur([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I_=new ur([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Kge=new ur([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D_=function(e,t){for(var n=new sl(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new Gge(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)o[l]=l-n[i]<<5|i;return{b:n,r:o}},F_=D_(P_,2),z_=F_.b,Yge=F_.r;z_[28]=258,Yge[258]=28;var Xge=D_(I_,0),Jge=Xge.b,Ip=new sl(32768);for(var Mt=0;Mt<32768;++Mt){var fo=(Mt&43690)>>1|(Mt&21845)<<1;fo=(fo&52428)>>2|(fo&13107)<<2,fo=(fo&61680)>>4|(fo&3855)<<4,Ip[Mt]=((fo&65280)>>8|(fo&255)<<8)>>1}var qa=(function(e,t,n){for(var i=e.length,o=0,l=new sl(t);o<i;++o)e[o]&&++l[e[o]-1];var u=new sl(t);for(o=1;o<t;++o)u[o]=u[o-1]+l[o-1]<<1;var f;if(n){f=new sl(1<<t);var h=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],v=u[e[o]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Ip[v]>>h]=p}else for(f=new sl(i),o=0;o<i;++o)e[o]&&(f[o]=Ip[u[e[o]-1]++]>>15-e[o]);return f}),Mc=new ur(288);for(var Mt=0;Mt<144;++Mt)Mc[Mt]=8;for(var Mt=144;Mt<256;++Mt)Mc[Mt]=9;for(var Mt=256;Mt<280;++Mt)Mc[Mt]=7;for(var Mt=280;Mt<288;++Mt)Mc[Mt]=8;var H_=new ur(32);for(var Mt=0;Mt<32;++Mt)H_[Mt]=5;var Zge=qa(Mc,9,1),Qge=qa(H_,5,1),jh=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Dr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Wh=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},eme=function(e){return(e+7)/8|0},B_=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new ur(e.subarray(t,n))},tme=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Zn=function(e,t,n){var i=new Error(t||tme[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Zn),!n)throw i;return i},nm=function(e,t,n,i){var o=e.length,l=0;if(!o||t.f&&!t.l)return n||new ur(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new ur(o*3));var p=function(ce){var F=n.length;if(ce>F){var j=new ur(Math.max(F*2,ce));j.set(n),n=j}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,$=t.d,_=t.m,C=t.n,E=o*8;do{if(!w){g=Dr(e,v,1);var L=Dr(e,v+1,3);if(v+=3,L)if(L==1)w=Zge,$=Qge,_=9,C=5;else if(L==2){var q=Dr(e,v,31)+257,X=Dr(e,v+10,15)+4,ie=q+Dr(e,v+5,31)+1;v+=14;for(var J=new ur(ie),U=new ur(19),K=0;K<X;++K)U[Kge[K]]=Dr(e,v+K*3,7);v+=X*3;for(var P=jh(U),O=(1<<P)-1,k=qa(U,P,1),K=0;K<ie;){var S=k[Dr(e,v,O)];v+=S&15;var D=S>>4;if(D<16)J[K++]=D;else{var R=0,B=0;for(D==16?(B=3+Dr(e,v,3),v+=2,R=J[K-1]):D==17?(B=3+Dr(e,v,7),v+=3):D==18&&(B=11+Dr(e,v,127),v+=7);B--;)J[K++]=R}}var ae=J.subarray(0,q),ve=J.subarray(q);_=jh(ae),C=jh(ve),w=qa(ae,_,1),$=qa(ve,C,1)}else Zn(1);else{var D=eme(v)+4,N=e[D-4]|e[D-3]<<8,I=D+N;if(I>o){h&&Zn(0);break}f&&p(y+N),n.set(e.subarray(D,I),y),t.b=y+=N,t.p=v=I*8,t.f=g;continue}if(v>E){h&&Zn(0);break}}f&&p(y+131072);for(var _e=(1<<_)-1,Be=(1<<C)-1,Ee=v;;Ee=v){var R=w[Wh(e,v)&_e],Ge=R>>4;if(v+=R&15,v>E){h&&Zn(0);break}if(R||Zn(2),Ge<256)n[y++]=Ge;else if(Ge==256){Ee=v,w=null;break}else{var Ue=Ge-254;if(Ge>264){var K=Ge-257,He=P_[K];Ue=Dr(e,v,(1<<He)-1)+z_[K],v+=He}var Re=$[Wh(e,v)&Be],z=Re>>4;Re||Zn(3),v+=Re&15;var ve=Jge[z];if(z>3){var He=I_[z];ve+=Wh(e,v)&(1<<He)-1,v+=He}if(v>E){h&&Zn(0);break}f&&p(y+131072);var Z=y+Ue;if(y<ve){var re=l-ve,le=Math.min(ve,Z);for(re+y<0&&Zn(3);y<le;++y)n[y]=i[re+y]}for(;y<Z;++y)n[y]=n[y-ve]}}t.l=w,t.p=Ee,t.b=y,t.f=g,w&&(g=1,t.m=_,t.d=$,t.n=C)}while(!g);return y!=n.length&&u?B_(n,0,y):n.subarray(0,y)},nme=new ur(0),rme=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Zn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},ime=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},ome=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Zn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Zn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function sme(e,t){return nm(e,{i:2},t,t)}function lme(e,t){var n=rme(e);return n+8>e.length&&Zn(6,"invalid gzip data"),nm(e.subarray(n,-8),{i:2},new ur(ime(e)),t)}function ame(e,t){return nm(e.subarray(ome(e),-4),{i:2},t,t)}function cme(e,t){return e[0]==31&&e[1]==139&&e[2]==8?lme(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?sme(e,t):ame(e,t)}var Dp=typeof TextDecoder<"u"&&new TextDecoder,ume=0;try{Dp.decode(nme,{stream:!0}),ume=1}catch{}var fme=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return{s:t,r:B_(e,n-1)};o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Qb(e,t){var n;if(Dp)return Dp.decode(e);var i=fme(e),o=i.s,n=i.r;return n.length&&Zn(8),o}const ew=()=>{},vn=()=>Promise.resolve();function dme(){const e=dr({state:new p_,waitForConnection:u,reconnect:o,ws:new EventTarget});e.state.filesMap=dr(e.state.filesMap),e.state.idMap=dr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>t.moduleGraph[f]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:vn,getTransformResult:vn,onDone:ew,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async f=>t.sources[f],removeSnapshotFile:vn,onUnhandledError:ew,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=n;const i=Promise.resolve();function o(){l()}async function l(){const f=await fetch(window.METADATA_PATH),h=new Uint8Array(await f.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Qb(cme(h));t=Ap(g)}else t=Ap(Qb(h));const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ft=(function(){return pr?dme():uP(Vge,{reactive:(t,n)=>n==="state"?dr(t):Vt(t),handlers:{onTestAnnotate(t,n){$e.recordTestArtifact(t,{type:"internal:annotation",annotation:n,location:n.location})},onTestArtifactRecord(t,n){$e.recordTestArtifact(t,n)},onTaskUpdate(t,n){$e.resumeRun(t,n),dd.value="running"},onSpecsCollected(t,n){$e.startTime=n||performance.now()},onFinished(t,n,i,o){$e.endRun(o),So.value=(n||[]).map(A_)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),pt=Vt({}),ll=Ke("CONNECTING"),rm=Vt([]),Xt=Se(()=>{const e=Io.value;return e?Cr(e):void 0}),j_=Se(()=>Wg(Xt.value).map(e=>e?.logs||[]).flat()||[]);function Cr(e){const t=ft.state.idMap.get(e);return t||void 0}const hme=Se(()=>ll.value==="OPEN"),qh=Se(()=>ll.value==="CONNECTING");function pme(){return im(ft.state.getFiles())}function W_(e){delete e.result;const t=$e.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ac(e)))for(const n of e.tasks)W_(n)}function gme(e){const t=$e.nodes;e.forEach(n=>{delete n.result,Wg(n).forEach(o=>{if(delete o.result,t.has(o.id)){const l=t.get(o.id);l&&(l.state=void 0,l.mode="run",l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.mode="run",i.duration=void 0,Wn(i)&&(i.collectDuration=void 0))})}function im(e){return gme(e),$e.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function mme(e){return W_(e),$e.startRun(),ft.rpc.rerunTask(e.id)}const gr=window.__vitest_browser_runner__;window.__vitest_ui_api__=Wge;yt(()=>ft.ws,e=>{ll.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{ll.value="OPEN",ft.state.filesMap.clear();let[t,n,i,o]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=e_(h,f,u);return p.mode="skip",p})),rm.value=o.map(l=>l.name),$e.loadFiles(t,o),ft.state.collectFiles(t),$e.startRun(),So.value=(i||[]).map(A_),pt.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{ll.value==="CONNECTING"&&(ll.value="CLOSED")},1e3)})},{immediate:!0});const vme=["aria-label","opacity","disabled","hover"],Tt=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(te(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Bt(t.$slots,"default",{},()=>[Y("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,vme))}}),yme={h:"full",flex:"~ col"},bme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},wme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},xme={class:"pointer-events-none","text-sm":""},Sme={key:0},_me={id:"tester-container",relative:""},kme=["data-scale"],tw=20,Tme=100,Cme=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return lr.value[0]===g[0]&&lr.value[1]===g[1]}const{width:i,height:o}=rS();async function l(p){lr.value=t[p],gr?.provider==="webdriverio"&&R_()}const u=Se(()=>{if(gr?.provider==="webdriverio"){const[w,$]=lr.value;return{width:w,height:$}}const v=i.value*(fn.details.size/100)*(fn.details.browser/100)-tw,y=o.value-Tme;return{width:v,height:y}}),f=Se(()=>{if(gr?.provider==="webdriverio")return 1;const[p,g]=lr.value,{width:v,height:y}=u.value,w=v>p?1:v/p,$=y>g?1:y/g;return Math.min(1,w,$)}),h=Se(()=>{const p=u.value.width,g=lr.value[0];return`${Math.trunc((p+tw-g)/2)}px`});return(p,g)=>{const v=ir("tooltip");return te(),ge("div",yme,[Y("div",bme,[st(Ne(Tt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=y=>W(Bge)())},null,512),[[Co,W(fn).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ne(Tt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=y=>Bi.value=!0)},null,512),[[Co,W(Tn)==="right"&&!W(Bi)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),Y("div",wme,[st(Ne(Tt,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[2]||(g[2]=y=>l("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[3]||(g[3]=y=>l("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[4]||(g[4]=y=>l("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),Y("span",xme,[Qe(Me(W(lr)[0])+"x"+Me(W(lr)[1])+"px ",1),f.value<1?(te(),ge("span",Sme,"("+Me((f.value*100).toFixed(0))+"%)",1)):Fe("",!0)])]),Y("div",_me,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":f.value,style:Pt({"--viewport-width":`${W(lr)[0]}px`,"--viewport-height":`${W(lr)[1]}px`,"--tester-transform":`scale(${f.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,kme)])])}}}),Eme=Xi(Cme,[["__scopeId","data-v-f70ca3ae"]]),hd=tt({__name:"DetailsHeaderButtons",setup(e){function t(n){return Tn.value==="right"?n==="hide"?"rotate-180":"":n==="hide"?"-rotate-90":"rotate-90"}return(n,i)=>{const o=ir("tooltip");return te(),ge(nt,null,[st(Ne(Tt,{title:`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:ot({"rotate-90":W(Tn)==="right"}),onClick:W(jge)},null,8,["title","class","onClick"]),[[o,`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Bi)?st((te(),We(Tt,{key:0,title:W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("hide")),onClick:W(Pge)},null,8,["title","class","onClick"])),[[o,W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):Fe("",!0),st(Ne(Tt,{title:W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("show")),onClick:W(Ige)},null,8,["title","class","onClick"]),[[Co,!W(Bi)],[o,W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Ame={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},$me=tt({__name:"ClosedDetailsHeader",setup(e){return(t,n)=>(te(),ge("div",Ame,[n[0]||(n[0]=Y("div",{"flex-1":""},null,-1)),Ne(hd)]))}}),Nme={"text-2xl":""},Mme={"text-lg":"",op50:""},Lme=tt({__name:"ConnectionOverlay",setup(e){return(t,n)=>W(hme)?Fe("",!0):(te(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>W(ft).reconnect&&W(ft).reconnect(...i))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(W(qh)?"animate-pulse":"")},[Y("div",{text:"5xl",class:ot(W(qh)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Nme,Me(W(qh)?"Connecting...":"Disconnected"),1),Y("div",Mme," Check your terminal or start a new server with `"+Me(W(gr)?`vitest --browser=${W(gr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Ome={h:"full",flex:"~ col"},Rme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nw=tt({__name:"Coverage",setup(e){return(t,n)=>(te(),ge("div",Ome,[Y("div",Rme,[n[0]||(n[0]=Y("div",{class:"i-carbon:folder-details-reference"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),n[2]||(n[2]=Y("div",{"flex-auto":"","py-1":"","bg-white":""},[Y("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),Pme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Ime={"font-bold":""},Dme={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Fme=["font-bold"],zme={text:"red500/70"},Hme={key:1,text:"sm","mb-2":""},Bme={"font-bold":""},jme={key:2,text:"sm","mb-2":""},Wme={"font-bold":""},qme=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>(te(),ge(nt,null,[Y("h4",Pme,[Y("span",Ime,[Qe(Me(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ge(nt,{key:0},[Qe(":")],64)):Fe("",!0)]),Qe(" "+Me(e.error.message),1)]),e.error.stacks?.length?(te(),ge("p",Dme,[(te(!0),ge(nt,null,xn(e.error.stacks,(i,o)=>(te(),ge("span",{key:o,"whitespace-pre":"","font-bold":o===0?"":null},[Qe("❯ "+Me(i.method)+" "+Me(i.file)+":",1),Y("span",zme,Me(i.line)+":"+Me(i.column),1),n[0]||(n[0]=Y("br",null,null,-1))],8,Fme))),128))])):Fe("",!0),e.error.VITEST_TEST_PATH?(te(),ge("p",Hme,[n[1]||(n[1]=Qe(" This error originated in ",-1)),Y("span",Bme,Me(e.error.VITEST_TEST_PATH),1),n[2]||(n[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Fe("",!0),e.error.VITEST_TEST_NAME?(te(),ge("div",jme,[n[3]||(n[3]=Qe(" The latest test that might've caused the error is ",-1)),Y("span",Wme,Me(e.error.VITEST_TEST_NAME),1),n[4]||(n[4]=Qe(". It might mean one of the following:",-1)),n[5]||(n[5]=Y("br",null,null,-1)),n[6]||(n[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Fe("",!0)],64))}}),Ume={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Vme={class:"number","data-testid":"num-files"},Gme={class:"number"},Kme={class:"number","text-purple-700":"","dark:text-purple-400":""},Yme={class:"number","text-red-700":"","dark:text-red-500":""},Xme={class:"number","text-red-700":"","dark:text-red-500":""},Jme={class:"number","text-red-700":"","dark:text-red-500":""},Zme={class:"number","data-testid":"run-time"},Qme={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},eve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},tve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},nve=tt({__name:"TestFilesEntry",setup(e){return(t,n)=>(te(),ge(nt,null,[Y("div",Ume,[n[10]||(n[10]=Y("div",{"i-carbon-document":""},null,-1)),n[11]||(n[11]=Y("div",null,"Files",-1)),Y("div",Vme,Me(W($e).summary.files),1),W($e).summary.filesSuccess?(te(),ge(nt,{key:0},[n[0]||(n[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=Y("div",null,"Pass",-1)),Y("div",Gme,Me(W($e).summary.filesSuccess),1)],64)):Fe("",!0),W($e).summary.filesSkipped?(te(),ge(nt,{key:1},[n[2]||(n[2]=Y("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),n[3]||(n[3]=Y("div",null," Skip ",-1)),Y("div",Kme,Me(W($e).summary.filesSkipped),1)],64)):Fe("",!0),W($e).summary.filesFailed?(te(),ge(nt,{key:2},[n[4]||(n[4]=Y("div",{"i-carbon-close":""},null,-1)),n[5]||(n[5]=Y("div",null," Fail ",-1)),Y("div",Yme,Me(W($e).summary.filesFailed),1)],64)):Fe("",!0),W($e).summary.filesSnapshotFailed?(te(),ge(nt,{key:3},[n[6]||(n[6]=Y("div",{"i-carbon-compare":""},null,-1)),n[7]||(n[7]=Y("div",null," Snapshot Fail ",-1)),Y("div",Xme,Me(W($e).summary.filesSnapshotFailed),1)],64)):Fe("",!0),W(So).length?(te(),ge(nt,{key:4},[n[8]||(n[8]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[9]||(n[9]=Y("div",null," Errors ",-1)),Y("div",Jme,Me(W(So).length),1)],64)):Fe("",!0),n[12]||(n[12]=Y("div",{"i-carbon-timer":""},null,-1)),n[13]||(n[13]=Y("div",null,"Time",-1)),Y("div",Zme,Me(W($e).summary.time),1)]),W(So).length?(te(),ge("div",Qme,[n[17]||(n[17]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",eve,[Qe(" Vitest caught "+Me(W(So).length)+" error"+Me(W(So).length>1?"s":"")+" during the test run.",1),n[14]||(n[14]=Y("br",null,null,-1)),n[15]||(n[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Y("details",tve,[n[16]||(n[16]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ge(nt,null,xn(W(So),(i,o)=>(te(),We(qme,{key:o,error:i},null,8,["error"]))),128))])])):Fe("",!0)],64))}}),rve=Xi(nve,[["__scopeId","data-v-cfae3633"]]),ive={"p-2":"","text-center":"",flex:""},ove={"text-4xl":"","min-w-2em":""},sve={"text-md":""},is=tt({__name:"DashboardEntry",setup(e){return(t,n)=>(te(),ge("div",ive,[Y("div",null,[Y("div",ove,[Bt(t.$slots,"body")]),Y("div",sve,[Bt(t.$slots,"header")])])]))}}),lve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},ave=tt({__name:"TestsEntry",setup(e){function t(n){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,Ze.slow=!1,n!=="total"&&(Ze[n]=!0)}return(n,i)=>(te(),ge("div",lve,[Ne(is,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:i[0]||(i[0]=o=>t("success"))},{header:je(()=>[...i[5]||(i[5]=[Qe(" Pass ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSuccess),1)]),_:1}),Ne(is,{class:ot({"text-red-700 dark:text-red-500":W($e).summary.testsFailed,op50:!W($e).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:i[1]||(i[1]=o=>t("failed"))},{header:je(()=>[...i[6]||(i[6]=[Qe(" Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsFailed),1)]),_:1},8,["class"]),W($e).summary.testsExpectedFail?(te(),We(is,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:je(()=>[...i[7]||(i[7]=[Qe(" Expected Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsExpectedFail),1)]),_:1})):Fe("",!0),W($e).summary.testsSkipped?(te(),We(is,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:i[2]||(i[2]=o=>t("skipped"))},{header:je(()=>[...i[8]||(i[8]=[Qe(" Skip ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSkipped),1)]),_:1})):Fe("",!0),W($e).summary.testsTodo?(te(),We(is,{key:2,op50:"","data-testid":"todo-entry"},{header:je(()=>[...i[9]||(i[9]=[Qe(" Todo ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsTodo),1)]),_:1})):Fe("",!0),Ne(is,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:i[3]||(i[3]=o=>t("total"))},{header:je(()=>[...i[10]||(i[10]=[Qe(" Total ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.totalTests),1)]),_:1}),W($e).summary.testsSlow?(te(),We(is,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:i[4]||(i[4]=o=>t("slow"))},{header:je(()=>[...i[11]||(i[11]=[Qe(" Slow ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSlow),1)]),_:1})):Fe("",!0)]))}}),cve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},uve={key:0,class:"text-gray-5"},fve={"aria-labelledby":"tests",m:"y-4 x-2"},dve=tt({__name:"TestsFilesContainer",setup(e){return(t,n)=>(te(),ge("div",cve,[W($e).summary.files===0&&W(ol)?(te(),ge("div",uve," No tests found ")):Fe("",!0),Y("section",fve,[Ne(ave)]),Ne(rve)]))}}),hve={h:"full",flex:"~ col"},pve={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},gve={class:"scrolls","flex-auto":"","py-1":""},rw=tt({__name:"Dashboard",setup(e){return(t,n)=>(te(),ge("div",hve,[Y("div",pve,[n[0]||(n[0]=Y("div",{class:"i-carbon-dashboard"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),Y("div",gve,[Ne(dve)])]))}});var Uh,iw;function mve(){if(iw)return Uh;iw=1;var e=function(L){return t(L)&&!n(L)};function t(E){return!!E&&typeof E=="object"}function n(E){var L=Object.prototype.toString.call(E);return L==="[object RegExp]"||L==="[object Date]"||l(E)}var i=typeof Symbol=="function"&&Symbol.for,o=i?Symbol.for("react.element"):60103;function l(E){return E.$$typeof===o}function u(E){return Array.isArray(E)?[]:{}}function f(E,L){return L.clone!==!1&&L.isMergeableObject(E)?_(u(E),E,L):E}function h(E,L,D){return E.concat(L).map(function(N){return f(N,D)})}function p(E,L){if(!L.customMerge)return _;var D=L.customMerge(E);return typeof D=="function"?D:_}function g(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(L){return Object.propertyIsEnumerable.call(E,L)}):[]}function v(E){return Object.keys(E).concat(g(E))}function y(E,L){try{return L in E}catch{return!1}}function w(E,L){return y(E,L)&&!(Object.hasOwnProperty.call(E,L)&&Object.propertyIsEnumerable.call(E,L))}function $(E,L,D){var N={};return D.isMergeableObject(E)&&v(E).forEach(function(I){N[I]=f(E[I],D)}),v(L).forEach(function(I){w(E,I)||(y(E,I)&&D.isMergeableObject(L[I])?N[I]=p(I,D)(E[I],L[I],D):N[I]=f(L[I],D))}),N}function _(E,L,D){D=D||{},D.arrayMerge=D.arrayMerge||h,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=f;var N=Array.isArray(L),I=Array.isArray(E),q=N===I;return q?N?D.arrayMerge(E,L,D):$(E,L,D):f(L,D)}_.all=function(L,D){if(!Array.isArray(L))throw new Error("first argument should be an array");return L.reduce(function(N,I){return _(N,I,D)},{})};var C=_;return Uh=C,Uh}var vve=mve();const yve=Jg(vve);function bve(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Fp="http://www.w3.org/1999/xhtml";const ow={svg:"http://www.w3.org/2000/svg",xhtml:Fp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ow.hasOwnProperty(t)?{space:ow[t],local:e}:e}function wve(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fp&&t.documentElement.namespaceURI===Fp?t.createElement(e):t.createElementNS(n,e)}}function xve(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function q_(e){var t=pd(e);return(t.local?xve:wve)(t)}function Sve(){}function om(e){return e==null?Sve:function(){return this.querySelector(e)}}function _ve(e){typeof e!="function"&&(e=om(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new vr(i,this._parents)}function kve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Tve(){return[]}function U_(e){return e==null?Tve:function(){return this.querySelectorAll(e)}}function Cve(e){return function(){return kve(e.apply(this,arguments))}}function Eve(e){typeof e=="function"?e=Cve(e):e=U_(e);for(var t=this._groups,n=t.length,i=[],o=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),o.push(h));return new vr(i,o)}function V_(e){return function(){return this.matches(e)}}function G_(e){return function(t){return t.matches(e)}}var Ave=Array.prototype.find;function $ve(e){return function(){return Ave.call(this.children,e)}}function Nve(){return this.firstElementChild}function Mve(e){return this.select(e==null?Nve:$ve(typeof e=="function"?e:G_(e)))}var Lve=Array.prototype.filter;function Ove(){return Array.from(this.children)}function Rve(e){return function(){return Lve.call(this.children,e)}}function Pve(e){return this.selectAll(e==null?Ove:Rve(typeof e=="function"?e:G_(e)))}function Ive(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new vr(i,this._parents)}function K_(e){return new Array(e.length)}function Dve(){return new vr(this._enter||this._groups.map(K_),this._parents)}function $f(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$f.prototype={constructor:$f,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fve(e){return function(){return e}}function zve(e,t,n,i,o,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new $f(e,l[u]);for(;u<h;++u)(f=t[u])&&(o[u]=f)}function Hve(e,t,n,i,o,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?o[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new $f(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(o[f]=h)}function Bve(e){return e.__data__}function jve(e,t){if(!arguments.length)return Array.from(this,Bve);var n=t?Hve:zve,i=this._parents,o=this._groups;typeof e!="function"&&(e=Fve(e));for(var l=o.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=o[p],y=v.length,w=Wve(e.call(g,g&&g.__data__,p,i)),$=w.length,_=f[p]=new Array($),C=u[p]=new Array($),E=h[p]=new Array(y);n(g,v,_,C,E,w,t);for(var L=0,D=0,N,I;L<$;++L)if(N=_[L]){for(L>=D&&(D=L+1);!(I=C[D])&&++D<$;);N._next=I||null}}return u=new vr(u,i),u._enter=f,u._exit=h,u}function Wve(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qve(){return new vr(this._exit||this._groups.map(K_),this._parents)}function Uve(e,t,n){var i=this.enter(),o=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?l.remove():n(l),i&&o?i.merge(o).order():o}function Vve(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,l=i.length,u=Math.min(o,l),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,$=0;$<v;++$)(w=p[$]||g[$])&&(y[$]=w);for(;h<o;++h)f[h]=n[h];return new vr(f,this._parents)}function Gve(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,l=i[o],u;--o>=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Kve(e){e||(e=Yve);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,o=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=o[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new vr(o,this._parents).order()}function Yve(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Xve(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Jve(){return Array.from(this)}function Zve(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length;o<l;++o){var u=i[o];if(u)return u}return null}function Qve(){let e=0;for(const t of this)++e;return e}function eye(){return!this.node()}function tye(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],l=0,u=o.length,f;l<u;++l)(f=o[l])&&e.call(f,f.__data__,l,o);return this}function nye(e){return function(){this.removeAttribute(e)}}function rye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iye(e,t){return function(){this.setAttribute(e,t)}}function oye(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function sye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function lye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function aye(e,t){var n=pd(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?rye:nye:typeof t=="function"?n.local?lye:sye:n.local?oye:iye)(n,t))}function Y_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cye(e){return function(){this.style.removeProperty(e)}}function uye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function fye(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function dye(e,t,n){return arguments.length>1?this.each((t==null?cye:typeof t=="function"?fye:uye)(e,t,n??"")):Ll(this.node(),e)}function Ll(e,t){return e.style.getPropertyValue(t)||Y_(e).getComputedStyle(e,null).getPropertyValue(t)}function hye(e){return function(){delete this[e]}}function pye(e,t){return function(){this[e]=t}}function gye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mye(e,t){return arguments.length>1?this.each((t==null?hye:typeof t=="function"?gye:pye)(e,t)):this.node()[e]}function X_(e){return e.trim().split(/^|\s+/)}function sm(e){return e.classList||new J_(e)}function J_(e){this._node=e,this._names=X_(e.getAttribute("class")||"")}J_.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Z_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Q_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function vye(e){return function(){Z_(this,e)}}function yye(e){return function(){Q_(this,e)}}function bye(e,t){return function(){(t.apply(this,arguments)?Z_:Q_)(this,e)}}function wye(e,t){var n=X_(e+"");if(arguments.length<2){for(var i=sm(this.node()),o=-1,l=n.length;++o<l;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?bye:t?vye:yye)(n,t))}function xye(){this.textContent=""}function Sye(e){return function(){this.textContent=e}}function _ye(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function kye(e){return arguments.length?this.each(e==null?xye:(typeof e=="function"?_ye:Sye)(e)):this.node().textContent}function Tye(){this.innerHTML=""}function Cye(e){return function(){this.innerHTML=e}}function Eye(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Aye(e){return arguments.length?this.each(e==null?Tye:(typeof e=="function"?Eye:Cye)(e)):this.node().innerHTML}function $ye(){this.nextSibling&&this.parentNode.appendChild(this)}function Nye(){return this.each($ye)}function Mye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Lye(){return this.each(Mye)}function Oye(e){var t=typeof e=="function"?e:q_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Rye(){return null}function Pye(e,t){var n=typeof e=="function"?e:q_(e),i=t==null?Rye:typeof t=="function"?t:om(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Iye(){var e=this.parentNode;e&&e.removeChild(this)}function Dye(){return this.each(Iye)}function Fye(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zye(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hye(e){return this.select(e?zye:Fye)}function Bye(e){return arguments.length?this.property("__data__",e):this.node().__data__}function jye(e){return function(t){e.call(this,t,this.__data__)}}function Wye(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function qye(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,l;n<o;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function Uye(e,t,n){return function(){var i=this.__on,o,l=jye(t);if(i){for(var u=0,f=i.length;u<f;++u)if((o=i[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=l,o.options=n),o.value=t;return}}this.addEventListener(e.type,l,n),o={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(o):this.__on=[o]}}function Vye(e,t,n){var i=Wye(e+""),o,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(o=0,g=f[h];o<l;++o)if((u=i[o]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?Uye:qye,o=0;o<l;++o)this.each(f(i[o],t,n));return this}function ek(e,t,n){var i=Y_(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Gye(e,t){return function(){return ek(this,e,t)}}function Kye(e,t){return function(){return ek(this,e,t.apply(this,arguments))}}function Yye(e,t){return this.each((typeof t=="function"?Kye:Gye)(e,t))}function*Xye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length,u;o<l;++o)(u=i[o])&&(yield u)}var tk=[null];function vr(e,t){this._groups=e,this._parents=t}function Lc(){return new vr([[document.documentElement]],tk)}function Jye(){return this}vr.prototype=Lc.prototype={constructor:vr,select:_ve,selectAll:Eve,selectChild:Mve,selectChildren:Pve,filter:Ive,data:jve,enter:Dve,exit:qve,join:Uve,merge:Vve,selection:Jye,order:Gve,sort:Kve,call:Xve,nodes:Jve,node:Zve,size:Qve,empty:eye,each:tye,attr:aye,style:dye,property:mye,classed:wye,text:kye,html:Aye,raise:Nye,lower:Lye,append:Oye,insert:Pye,remove:Dye,clone:Hye,datum:Bye,on:Vye,dispatch:Yye,[Symbol.iterator]:Xye};function er(e){return typeof e=="string"?new vr([[document.querySelector(e)]],[document.documentElement]):new vr([[e]],tk)}function Zye(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Li(e,t){if(e=Zye(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ol=class Ni{x;y;static of([t,n]){return new Ni(t,n)}constructor(t,n){this.x=t,this.y=n}add(t){return new Ni(this.x+t.x,this.y+t.y)}subtract(t){return new Ni(this.x-t.x,this.y-t.y)}multiply(t){return new Ni(this.x*t,this.y*t)}divide(t){return new Ni(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Ni(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Ni(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Ni(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Qye={value:()=>{}};function Oc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Gu(n)}function Gu(e){this._=e}function e0e(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Gu.prototype=Oc.prototype={constructor:Gu,on:function(e,t){var n=this._,i=e0e(e+"",n),o,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((o=(e=i[l]).type)&&(o=t0e(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(o=(e=i[l]).type)n[o]=sw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=sw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Gu(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,l;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,o=l.length;i<o;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,l=i.length;o<l;++o)i[o].value.apply(t,n)}};function t0e(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function sw(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=Qye,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const n0e={passive:!1},hc={capture:!0,passive:!1};function Vh(e){e.stopImmediatePropagation()}function bl(e){e.preventDefault(),e.stopImmediatePropagation()}function nk(e){var t=e.document.documentElement,n=er(e).on("dragstart.drag",bl,hc);"onselectstart"in t?n.on("selectstart.drag",bl,hc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rk(e,t){var n=e.document.documentElement,i=er(e).on("dragstart.drag",null);t&&(i.on("click.drag",bl,hc),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Au=e=>()=>e;function zp(e,{sourceEvent:t,subject:n,target:i,identifier:o,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function r0e(e){return!e.ctrlKey&&!e.button}function i0e(){return this.parentNode}function o0e(e,t){return t??{x:e.x,y:e.y}}function s0e(){return navigator.maxTouchPoints||"ontouchstart"in this}function l0e(){var e=r0e,t=i0e,n=o0e,i=s0e,o={},l=Oc("start","drag","end"),u=0,f,h,p,g,v=0;function y(N){N.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,n0e).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(N,I){if(!(g||!e.call(this,N,I))){var q=D(this,t.call(this,N,I),N,I,"mouse");q&&(er(N.view).on("mousemove.drag",$,hc).on("mouseup.drag",_,hc),nk(N.view),Vh(N),p=!1,f=N.clientX,h=N.clientY,q("start",N))}}function $(N){if(bl(N),!p){var I=N.clientX-f,q=N.clientY-h;p=I*I+q*q>v}o.mouse("drag",N)}function _(N){er(N.view).on("mousemove.drag mouseup.drag",null),rk(N.view,p),bl(N),o.mouse("end",N)}function C(N,I){if(e.call(this,N,I)){var q=N.changedTouches,X=t.call(this,N,I),ie=q.length,J,U;for(J=0;J<ie;++J)(U=D(this,X,N,I,q[J].identifier,q[J]))&&(Vh(N),U("start",N,q[J]))}}function E(N){var I=N.changedTouches,q=I.length,X,ie;for(X=0;X<q;++X)(ie=o[I[X].identifier])&&(bl(N),ie("drag",N,I[X]))}function L(N){var I=N.changedTouches,q=I.length,X,ie;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),X=0;X<q;++X)(ie=o[I[X].identifier])&&(Vh(N),ie("end",N,I[X]))}function D(N,I,q,X,ie,J){var U=l.copy(),K=Li(J||q,I),P,O,k;if((k=n.call(N,new zp("beforestart",{sourceEvent:q,target:y,identifier:ie,active:u,x:K[0],y:K[1],dx:0,dy:0,dispatch:U}),X))!=null)return P=k.x-K[0]||0,O=k.y-K[1]||0,function S(R,B,ae){var ve=K,_e;switch(R){case"start":o[ie]=S,_e=u++;break;case"end":delete o[ie],--u;case"drag":K=Li(ae||B,I),_e=u;break}U.call(R,N,new zp(R,{sourceEvent:B,subject:k,target:y,identifier:ie,active:_e,x:K[0]+P,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:U}),X)}}return y.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Au(!!N),y):e},y.container=function(N){return arguments.length?(t=typeof N=="function"?N:Au(N),y):t},y.subject=function(N){return arguments.length?(n=typeof N=="function"?N:Au(N),y):n},y.touchable=function(N){return arguments.length?(i=typeof N=="function"?N:Au(!!N),y):i},y.on=function(){var N=l.on.apply(l,arguments);return N===l?y:N},y.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,y):Math.sqrt(v)},y}function lm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ik(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Rc(){}var pc=.7,Nf=1/pc,wl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a0e=/^#([0-9a-f]{3,8})$/,c0e=new RegExp(`^rgb\\(${wl},${wl},${wl}\\)$`),u0e=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),f0e=new RegExp(`^rgba\\(${wl},${wl},${wl},${gc}\\)$`),d0e=new RegExp(`^rgba\\(${di},${di},${di},${gc}\\)$`),h0e=new RegExp(`^hsl\\(${gc},${di},${di}\\)$`),p0e=new RegExp(`^hsla\\(${gc},${di},${di},${gc}\\)$`),lw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lm(Rc,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aw,formatHex:aw,formatHex8:g0e,formatHsl:m0e,formatRgb:cw,toString:cw});function aw(){return this.rgb().formatHex()}function g0e(){return this.rgb().formatHex8()}function m0e(){return ok(this).formatHsl()}function cw(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=a0e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uw(t):n===3?new nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$u(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$u(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=c0e.exec(e))?new nr(t[1],t[2],t[3],1):(t=u0e.exec(e))?new nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=f0e.exec(e))?$u(t[1],t[2],t[3],t[4]):(t=d0e.exec(e))?$u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=h0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,1):(t=p0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,t[4]):lw.hasOwnProperty(e)?uw(lw[e]):e==="transparent"?new nr(NaN,NaN,NaN,0):null}function uw(e){return new nr(e>>16&255,e>>8&255,e&255,1)}function $u(e,t,n,i){return i<=0&&(e=t=n=NaN),new nr(e,t,n,i)}function v0e(e){return e instanceof Rc||(e=mc(e)),e?(e=e.rgb(),new nr(e.r,e.g,e.b,e.opacity)):new nr}function Hp(e,t,n,i){return arguments.length===1?v0e(e):new nr(e,t,n,i??1)}function nr(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}lm(nr,Hp,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nr(vs(this.r),vs(this.g),vs(this.b),Mf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fw,formatHex:fw,formatHex8:y0e,formatRgb:dw,toString:dw}));function fw(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}`}function y0e(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}${fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function dw(){const e=Mf(this.opacity);return`${e===1?"rgb(":"rgba("}${vs(this.r)}, ${vs(this.g)}, ${vs(this.b)}${e===1?")":`, ${e})`}`}function Mf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fs(e){return e=vs(e),(e<16?"0":"")+e.toString(16)}function hw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Br(e,t,n,i)}function ok(e){if(e instanceof Br)return new Br(e.h,e.s,e.l,e.opacity);if(e instanceof Rc||(e=mc(e)),!e)return new Br;if(e instanceof Br)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-o,h=(l+o)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+o:2-l-o,u*=60):f=h>0&&h<1?0:u,new Br(u,f,h,e.opacity)}function b0e(e,t,n,i){return arguments.length===1?ok(e):new Br(e,t,n,i??1)}function Br(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}lm(Br,b0e,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new Br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new Br(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new nr(Gh(e>=240?e-240:e+120,o,i),Gh(e,o,i),Gh(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Br(pw(this.h),Nu(this.s),Nu(this.l),Mf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mf(this.opacity);return`${e===1?"hsl(":"hsla("}${pw(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pw(e){return e=(e||0)%360,e<0?e+360:e}function Nu(e){return Math.max(0,Math.min(1,e||0))}function Gh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const sk=e=>()=>e;function w0e(e,t){return function(n){return e+n*t}}function x0e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function S0e(e){return(e=+e)==1?lk:function(t,n){return n-t?x0e(t,n,e):sk(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?w0e(e,n):sk(isNaN(e)?t:e)}const gw=(function e(t){var n=S0e(t);function i(o,l){var u=n((o=Hp(o)).r,(l=Hp(l)).r),f=n(o.g,l.g),h=n(o.b,l.b),p=lk(o.opacity,l.opacity);return function(g){return o.r=u(g),o.g=f(g),o.b=h(g),o.opacity=p(g),o+""}}return i.gamma=e,i})(1);function _o(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Bp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kh=new RegExp(Bp.source,"g");function _0e(e){return function(){return e}}function k0e(e){return function(t){return e(t)+""}}function T0e(e,t){var n=Bp.lastIndex=Kh.lastIndex=0,i,o,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Bp.exec(e))&&(o=Kh.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,h.push({i:u,x:_o(i,o)})),n=Kh.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?k0e(h[0].x):_0e(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var mw=180/Math.PI,jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ak(e,t,n,i,o,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:o,translateY:l,rotate:Math.atan2(t,e)*mw,skewX:Math.atan(h)*mw,scaleX:u,scaleY:f}}var Mu;function C0e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jp:ak(t.a,t.b,t.c,t.d,t.e,t.f)}function E0e(e){return e==null||(Mu||(Mu=document.createElementNS("http://www.w3.org/2000/svg","g")),Mu.setAttribute("transform",e),!(e=Mu.transform.baseVal.consolidate()))?jp:(e=e.matrix,ak(e.a,e.b,e.c,e.d,e.e,e.f))}function ck(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push("translate(",null,t,null,n);$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(o(v)+"rotate(",null,i)-2,x:_o(p,g)})):g&&v.push(o(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(o(v)+"skewX(",null,i)-2,x:_o(p,g)}):g&&v.push(o(v)+"skewX("+g+i)}function h(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push(o(w)+"scale(",null,",",null,")");$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v!==1||y!==1)&&w.push(o(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var $=-1,_=y.length,C;++$<_;)v[(C=y[$]).i]=C.x(w);return v.join("")}}}var A0e=ck(C0e,"px, ","px)","deg)"),$0e=ck(E0e,", ",")",")"),N0e=1e-12;function vw(e){return((e=Math.exp(e))+1/e)/2}function M0e(e){return((e=Math.exp(e))-1/e)/2}function L0e(e){return((e=Math.exp(2*e))-1)/(e+1)}const O0e=(function e(t,n,i){function o(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,$=v-h,_=w*w+$*$,C,E;if(_<N0e)E=Math.log(y/p)/t,C=function(X){return[f+X*w,h+X*$,p*Math.exp(t*X*E)]};else{var L=Math.sqrt(_),D=(y*y-p*p+i*_)/(2*p*n*L),N=(y*y-p*p-i*_)/(2*y*n*L),I=Math.log(Math.sqrt(D*D+1)-D),q=Math.log(Math.sqrt(N*N+1)-N);E=(q-I)/t,C=function(X){var ie=X*E,J=vw(I),U=p/(n*L)*(J*L0e(t*ie+I)-M0e(I));return[f+U*w,h+U*$,p*J/vw(t*ie+I)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return o.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},o})(Math.SQRT2,2,4);var Rl=0,Na=0,ka=0,uk=1e3,Lf,Ma,Of=0,Ss=0,gd=0,vc=typeof performance=="object"&&performance.now?performance:Date,fk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function am(){return Ss||(fk(R0e),Ss=vc.now()+gd)}function R0e(){Ss=0}function Rf(){this._call=this._time=this._next=null}Rf.prototype=cm.prototype={constructor:Rf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?am():+n)+(t==null?0:+t),!this._next&&Ma!==this&&(Ma?Ma._next=this:Lf=this,Ma=this),this._call=e,this._time=n,Wp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wp())}};function cm(e,t,n){var i=new Rf;return i.restart(e,t,n),i}function P0e(){am(),++Rl;for(var e=Lf,t;e;)(t=Ss-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rl}function yw(){Ss=(Of=vc.now())+gd,Rl=Na=0;try{P0e()}finally{Rl=0,D0e(),Ss=0}}function I0e(){var e=vc.now(),t=e-Of;t>uk&&(gd-=t,Of=e)}function D0e(){for(var e,t=Lf,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lf=n);Ma=e,Wp(i)}function Wp(e){if(!Rl){Na&&(Na=clearTimeout(Na));var t=e-Ss;t>24?(e<1/0&&(Na=setTimeout(yw,e-vc.now()-gd)),ka&&(ka=clearInterval(ka))):(ka||(Of=vc.now(),ka=setInterval(I0e,uk)),Rl=1,fk(yw))}}function bw(e,t,n){var i=new Rf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var F0e=Oc("start","end","cancel","interrupt"),z0e=[],dk=0,ww=1,qp=2,Ku=3,xw=4,Up=5,Yu=6;function md(e,t,n,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;H0e(e,n,{name:t,index:i,group:o,on:F0e,tween:z0e,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:dk})}function um(e,t){var n=Xr(e,t);if(n.state>dk)throw new Error("too late; already scheduled");return n}function mi(e,t){var n=Xr(e,t);if(n.state>Ku)throw new Error("too late; already running");return n}function Xr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function H0e(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=cm(l,0,n.time);function l(p){n.state=ww,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ww)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===Ku)return bw(u);w.state===xw?(w.state=Yu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=Yu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(bw(function(){n.state===Ku&&(n.state=xw,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=qp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===qp){for(n.state=Ku,o=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++v]=w);o.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Up,1),v=-1,y=o.length;++v<y;)o[v].call(e,g);n.state===Up&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Yu,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function Xu(e,t){var n=e.__transition,i,o,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}o=i.state>qp&&i.state<Up,i.state=Yu,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function B0e(e){return this.each(function(){Xu(this,e)})}function j0e(e,t){var n,i;return function(){var o=mi(this,e),l=o.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}o.tween=i}}function W0e(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var l=mi(this,e),u=l.tween;if(u!==i){o=(i=u).slice();for(var f={name:t,value:n},h=0,p=o.length;h<p;++h)if(o[h].name===t){o[h]=f;break}h===p&&o.push(f)}l.tween=o}}function q0e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Xr(this.node(),n).tween,o=0,l=i.length,u;o<l;++o)if((u=i[o]).name===e)return u.value;return null}return this.each((t==null?j0e:W0e)(n,e,t))}function fm(e,t,n){var i=e._id;return e.each(function(){var o=mi(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Xr(o,i).value[t]}}function hk(e,t){var n;return(typeof t=="number"?_o:t instanceof mc?gw:(n=mc(t))?(t=n,gw):T0e)(e,t)}function U0e(e){return function(){this.removeAttribute(e)}}function V0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function G0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttribute(e);return u===o?null:u===i?l:l=t(i=u,n)}}function K0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===i?l:l=t(i=u,n)}}function Y0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function X0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function J0e(e,t){var n=pd(e),i=n==="transform"?$0e:hk;return this.attrTween(e,typeof t=="function"?(n.local?X0e:Y0e)(n,i,fm(this,"attr."+e,t)):t==null?(n.local?V0e:U0e)(n):(n.local?K0e:G0e)(n,i,t))}function Z0e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Q0e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ebe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Q0e(e,l)),n}return o._value=t,o}function tbe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Z0e(e,l)),n}return o._value=t,o}function nbe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pd(e);return this.tween(n,(i.local?ebe:tbe)(i,t))}function rbe(e,t){return function(){um(this,e).delay=+t.apply(this,arguments)}}function ibe(e,t){return t=+t,function(){um(this,e).delay=t}}function obe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?rbe:ibe)(t,e)):Xr(this.node(),t).delay}function sbe(e,t){return function(){mi(this,e).duration=+t.apply(this,arguments)}}function lbe(e,t){return t=+t,function(){mi(this,e).duration=t}}function abe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?sbe:lbe)(t,e)):Xr(this.node(),t).duration}function cbe(e,t){if(typeof t!="function")throw new Error;return function(){mi(this,e).ease=t}}function ube(e){var t=this._id;return arguments.length?this.each(cbe(t,e)):Xr(this.node(),t).ease}function fbe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mi(this,e).ease=n}}function dbe(e){if(typeof e!="function")throw new Error;return this.each(fbe(this._id,e))}function hbe(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Vi(i,this._parents,this._name,this._id)}function pbe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,l=Math.min(i,o),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Vi(u,this._parents,this._name,this._id)}function gbe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function mbe(e,t,n){var i,o,l=gbe(t)?um:mi;return function(){var u=l(this,e),f=u.on;f!==i&&(o=(i=f).copy()).on(t,n),u.on=o}}function vbe(e,t){var n=this._id;return arguments.length<2?Xr(this.node(),n).on.on(e):this.each(mbe(n,e,t))}function ybe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function bbe(){return this.on("end.remove",ybe(this._id))}function wbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=om(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u<o;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,md(p[y],t,n,y,p,Xr(g,n)));return new Vi(l,this._parents,t,n)}function xbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=U_(e));for(var i=this._groups,o=i.length,l=[],u=[],f=0;f<o;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,$=Xr(g,n),_=0,C=y.length;_<C;++_)(w=y[_])&&md(w,t,n,_,y,$);l.push(y),u.push(g)}return new Vi(l,u,t,n)}var Sbe=Lc.prototype.constructor;function _be(){return new Sbe(this._groups,this._parents)}function kbe(e,t){var n,i,o;return function(){var l=Ll(this,e),u=(this.style.removeProperty(e),Ll(this,e));return l===u?null:l===n&&u===i?o:o=t(n=l,i=u)}}function pk(e){return function(){this.style.removeProperty(e)}}function Tbe(e,t,n){var i,o=n+"",l;return function(){var u=Ll(this,e);return u===o?null:u===i?l:l=t(i=u,n)}}function Cbe(e,t,n){var i,o,l;return function(){var u=Ll(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),Ll(this,e))),u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f))}}function Ebe(e,t){var n,i,o,l="style."+t,u="end."+l,f;return function(){var h=mi(this,e),p=h.on,g=h.value[l]==null?f||(f=pk(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(u,o=g),h.on=i}}function Abe(e,t,n){var i=(e+="")=="transform"?A0e:hk;return t==null?this.styleTween(e,kbe(e,i)).on("end.style."+e,pk(e)):typeof t=="function"?this.styleTween(e,Cbe(e,i,fm(this,"style."+e,t))).each(Ebe(this._id,e)):this.styleTween(e,Tbe(e,i,t),n).on("end.style."+e,null)}function $be(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Nbe(e,t,n){var i,o;function l(){var u=t.apply(this,arguments);return u!==o&&(i=(o=u)&&$be(e,u,n)),i}return l._value=t,l}function Mbe(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Nbe(e,t,n??""))}function Lbe(e){return function(){this.textContent=e}}function Obe(e){return function(){var t=e(this);this.textContent=t??""}}function Rbe(e){return this.tween("text",typeof e=="function"?Obe(fm(this,"text",e)):Lbe(e==null?"":e+""))}function Pbe(e){return function(t){this.textContent=e.call(this,t)}}function Ibe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Pbe(o)),t}return i._value=e,i}function Dbe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Ibe(e))}function Fbe(){for(var e=this._name,t=this._id,n=gk(),i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Xr(h,t);md(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Vi(i,this._parents,e,n)}function zbe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--o===0&&l()}};n.each(function(){var p=mi(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),o===0&&l()})}var Hbe=0;function Vi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function gk(){return++Hbe}var Ai=Lc.prototype;Vi.prototype={constructor:Vi,select:wbe,selectAll:xbe,selectChild:Ai.selectChild,selectChildren:Ai.selectChildren,filter:hbe,merge:pbe,selection:_be,transition:Fbe,call:Ai.call,nodes:Ai.nodes,node:Ai.node,size:Ai.size,empty:Ai.empty,each:Ai.each,on:vbe,attr:J0e,attrTween:nbe,style:Abe,styleTween:Mbe,text:Rbe,textTween:Dbe,remove:bbe,tween:q0e,delay:obe,duration:abe,ease:ube,easeVarying:dbe,end:zbe,[Symbol.iterator]:Ai[Symbol.iterator]};function Bbe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var jbe={time:null,delay:0,duration:250,ease:Bbe};function Wbe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function qbe(e){var t,n;e instanceof Vi?(t=e._id,e=e._name):(t=gk(),(n=jbe).time=am(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&md(h,e,t,p,u,n||Wbe(h,t));return new Vi(i,this._parents,e,t)}Lc.prototype.interrupt=B0e;Lc.prototype.transition=qbe;const Lu=e=>()=>e;function Ube(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zi(e,t,n){this.k=e,this.x=t,this.y=n}zi.prototype={constructor:zi,scale:function(e){return e===1?this:new zi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dm=new zi(1,0,0);zi.prototype;function Yh(e){e.stopImmediatePropagation()}function Ta(e){e.preventDefault(),e.stopImmediatePropagation()}function Vbe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Gbe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sw(){return this.__zoom||dm}function Kbe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ybe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xbe(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function Jbe(){var e=Vbe,t=Gbe,n=Xbe,i=Kbe,o=Ybe,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=O0e,p=Oc("start","zoom","end"),g,v,y,w=500,$=150,_=0,C=10;function E(k){k.property("__zoom",Sw).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",U).filter(o).on("touchstart.zoom",K).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(k,S,R,B){var ae=k.selection?k.selection():k;ae.property("__zoom",Sw),k!==ae?I(k,S,R,B):ae.interrupt().each(function(){q(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(k,S,R,B){E.scaleTo(k,function(){var ae=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return ae*ve},R,B)},E.scaleTo=function(k,S,R,B){E.transform(k,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?N(ae):typeof R=="function"?R.apply(this,arguments):R,Be=ve.invert(_e),Ee=typeof S=="function"?S.apply(this,arguments):S;return n(D(L(ve,Ee),_e,Be),ae,u)},R,B)},E.translateBy=function(k,S,R,B){E.transform(k,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(k,S,R,B,ae){E.transform(k,function(){var ve=t.apply(this,arguments),_e=this.__zoom,Be=B==null?N(ve):typeof B=="function"?B.apply(this,arguments):B;return n(dm.translate(Be[0],Be[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ve,u)},B,ae)};function L(k,S){return S=Math.max(l[0],Math.min(l[1],S)),S===k.k?k:new zi(S,k.x,k.y)}function D(k,S,R){var B=S[0]-R[0]*k.k,ae=S[1]-R[1]*k.k;return B===k.x&&ae===k.y?k:new zi(k.k,B,ae)}function N(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function I(k,S,R,B){k.on("start.zoom",function(){q(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=q(ae,ve).event(B),Be=t.apply(ae,ve),Ee=R==null?N(Be):typeof R=="function"?R.apply(ae,ve):R,Ge=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),Ue=ae.__zoom,He=typeof S=="function"?S.apply(ae,ve):S,Re=h(Ue.invert(Ee).concat(Ge/Ue.k),He.invert(Ee).concat(Ge/He.k));return function(z){if(z===1)z=He;else{var Z=Re(z),re=Ge/Z[2];z=new zi(re,Ee[0]-Z[0]*re,Ee[1]-Z[1]*re)}_e.zoom(null,z)}})}function q(k,S,R){return!R&&k.__zooming||new X(k,S)}function X(k,S){this.that=k,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,S),this.taps=0}X.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,S){return this.mouse&&k!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var S=er(this.that).datum();p.call(k,this.that,new Ube(k,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function ie(k,...S){if(!e.apply(this,arguments))return;var R=q(this,S).event(k),B=this.__zoom,ae=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ve=Li(k);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(B.k===ae)return;R.mouse=[ve,B.invert(ve)],Xu(this),R.start()}Ta(k),R.wheel=setTimeout(_e,$),R.zoom("mouse",n(D(L(B,ae),R.mouse[0],R.mouse[1]),R.extent,u));function _e(){R.wheel=null,R.end()}}function J(k,...S){if(y||!e.apply(this,arguments))return;var R=k.currentTarget,B=q(this,S,!0).event(k),ae=er(k.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ge,!0),ve=Li(k,R),_e=k.clientX,Be=k.clientY;nk(k.view),Yh(k),B.mouse=[ve,this.__zoom.invert(ve)],Xu(this),B.start();function Ee(Ue){if(Ta(Ue),!B.moved){var He=Ue.clientX-_e,Re=Ue.clientY-Be;B.moved=He*He+Re*Re>_}B.event(Ue).zoom("mouse",n(D(B.that.__zoom,B.mouse[0]=Li(Ue,R),B.mouse[1]),B.extent,u))}function Ge(Ue){ae.on("mousemove.zoom mouseup.zoom",null),rk(Ue.view,B.moved),Ta(Ue),B.event(Ue).end()}}function U(k,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=Li(k.changedTouches?k.changedTouches[0]:k,this),ae=R.invert(B),ve=R.k*(k.shiftKey?.5:2),_e=n(D(L(R,ve),B,ae),t.apply(this,S),u);Ta(k),f>0?er(this).transition().duration(f).call(I,_e,B,k):er(this).call(E.transform,_e,B,k)}}function K(k,...S){if(e.apply(this,arguments)){var R=k.touches,B=R.length,ae=q(this,S,k.changedTouches.length===B).event(k),ve,_e,Be,Ee;for(Yh(k),_e=0;_e<B;++_e)Be=R[_e],Ee=Li(Be,this),Ee=[Ee,this.__zoom.invert(Ee),Be.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ee[2]&&(ae.touch1=Ee,ae.taps=0):(ae.touch0=Ee,ve=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ve&&(ae.taps<2&&(v=Ee[0],g=setTimeout(function(){g=null},w)),Xu(this),ae.start())}}function P(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e,Be,Ee;for(Ta(k),ve=0;ve<ae;++ve)_e=B[ve],Be=Li(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=Be:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=Be);if(_e=R.that.__zoom,R.touch1){var Ge=R.touch0[0],Ue=R.touch0[1],He=R.touch1[0],Re=R.touch1[1],z=(z=He[0]-Ge[0])*z+(z=He[1]-Ge[1])*z,Z=(Z=Re[0]-Ue[0])*Z+(Z=Re[1]-Ue[1])*Z;_e=L(_e,Math.sqrt(z/Z)),Be=[(Ge[0]+He[0])/2,(Ge[1]+He[1])/2],Ee=[(Ue[0]+Re[0])/2,(Ue[1]+Re[1])/2]}else if(R.touch0)Be=R.touch0[0],Ee=R.touch0[1];else return;R.zoom("touch",n(D(_e,Be,Ee),R.extent,u))}}function O(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e;for(Yh(k),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ve=0;ve<ae;++ve)_e=B[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=Li(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<C)){var Be=er(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return E.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Lu(+k),E):i},E.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Lu(!!k),E):e},E.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Lu(!!k),E):o},E.extent=function(k){return arguments.length?(t=typeof k=="function"?k:Lu([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),E):t},E.scaleExtent=function(k){return arguments.length?(l[0]=+k[0],l[1]=+k[1],E):[l[0],l[1]]},E.translateExtent=function(k){return arguments.length?(u[0][0]=+k[0][0],u[1][0]=+k[1][0],u[0][1]=+k[0][1],u[1][1]=+k[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(k){return arguments.length?(n=k,E):n},E.duration=function(k){return arguments.length?(f=+k,E):f},E.interpolate=function(k){return arguments.length?(h=k,E):h},E.on=function(){var k=p.on.apply(p,arguments);return k===p?E:k},E.clickDistance=function(k){return arguments.length?(_=(k=+k)*k,E):Math.sqrt(_)},E.tapDistance=function(k){return arguments.length?(C=+k,E):C},E}function Zbe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return mk(this.cover(t,n),t,n,e)}function mk(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var o,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,$,_,C,E,L;if(!l)return e._root=u,e;for(;l.length;)if((_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,o=l,!(l=l[E=C<<1|_]))return o[E]=u,e;if(w=+e._x.call(null,l.data),$=+e._y.call(null,l.data),t===w&&n===$)return u.next=l,o?o[E]=u:e._root=u,e;do o=o?o[E]=new Array(4):e._root=new Array(4),(_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|_)===(L=($>=y)<<1|w>=v));return o[L]=l,o[E]=u,e}function Qbe(e){var t,n,i=e.length,o,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=o,f[n]=l,o<h&&(h=o),o>g&&(g=o),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)mk(this,u[n],f[n],e[n]);return this}function ewe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,l=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=o-n||1,f=this._root,h,p;n>e||e>=o||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:o=n+u,l=i+u;break;case 1:n=o-u,l=i+u;break;case 2:o=n+u,i=l-u;break;case 3:n=o-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=o,this._y1=l,this}function twe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function nwe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function jn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function rwe(e,t,n){var i,o=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,$,_;for(w&&y.push(new jn(w,o,l,g,v)),n==null?n=1/0:(o=e-n,l=t-n,g=e+n,v=t+n,n*=n);$=y.pop();)if(!(!(w=$.node)||(u=$.x0)>g||(f=$.y0)>v||(h=$.x1)<o||(p=$.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new jn(w[3],C,E,h,p),new jn(w[2],u,E,C,p),new jn(w[1],C,f,h,E),new jn(w[0],u,f,C,E)),(_=(t>=E)<<1|e>=C)&&($=y[y.length-1],y[y.length-1]=y[y.length-1-_],y[y.length-1-_]=$)}else{var L=e-+this._x.call(null,w.data),D=t-+this._y.call(null,w.data),N=L*L+D*D;if(N<n){var I=Math.sqrt(n=N);o=e-I,l=t-I,g=e+I,v=t+I,i=w.data}}return i}function iwe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,o,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,$,_,C,E;if(!n)return this;if(n.length)for(;;){if(($=g>=(y=(u+h)/2))?u=y:h=y,(_=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=_<<1|$]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,o?(l?o.next=l:delete o.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function owe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function swe(){return this._root}function lwe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function awe(e){var t=[],n,i=this._root,o,l,u,f,h;for(i&&t.push(new jn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(o=i[3])&&t.push(new jn(o,p,g,f,h)),(o=i[2])&&t.push(new jn(o,l,g,p,h)),(o=i[1])&&t.push(new jn(o,p,u,f,g)),(o=i[0])&&t.push(new jn(o,l,u,p,g))}return this}function cwe(e){var t=[],n=[],i;for(this._root&&t.push(new jn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var o=i.node;if(o.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=o[0])&&t.push(new jn(l,u,f,g,v)),(l=o[1])&&t.push(new jn(l,g,f,h,v)),(l=o[2])&&t.push(new jn(l,u,v,g,p)),(l=o[3])&&t.push(new jn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function uwe(e){return e[0]}function fwe(e){return arguments.length?(this._x=e,this):this._x}function dwe(e){return e[1]}function hwe(e){return arguments.length?(this._y=e,this):this._y}function hm(e,t,n){var i=new pm(t??uwe,n??dwe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function pm(e,t,n,i,o,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=l,this._root=void 0}function _w(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Un=hm.prototype=pm.prototype;Un.copy=function(){var e=new pm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=_w(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?n.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=_w(i));return e};Un.add=Zbe;Un.addAll=Qbe;Un.cover=ewe;Un.data=twe;Un.extent=nwe;Un.find=rwe;Un.remove=iwe;Un.removeAll=owe;Un.root=swe;Un.size=lwe;Un.visit=awe;Un.visitAfter=cwe;Un.x=fwe;Un.y=hwe;function qn(e){return function(){return e}}function Eo(e){return(e()-.5)*1e-6}function pwe(e){return e.x+e.vx}function gwe(e){return e.y+e.vy}function mwe(e){var t,n,i,o=1,l=1;typeof e!="function"&&(e=qn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,$,_,C,E=0;E<l;++E)for(v=hm(t,pwe,gwe).visitAfter(f),p=0;p<g;++p)y=t[p],_=n[y.index],C=_*_,w=y.x+y.vx,$=y.y+y.vy,v.visit(L);function L(D,N,I,q,X){var ie=D.data,J=D.r,U=_+J;if(ie){if(ie.index>y.index){var K=w-ie.x-ie.vx,P=$-ie.y-ie.vy,O=K*K+P*P;O<U*U&&(K===0&&(K=Eo(i),O+=K*K),P===0&&(P=Eo(i),O+=P*P),O=(U-(O=Math.sqrt(O)))/O*o,y.vx+=(K*=O)*(U=(J*=J)/(C+J)),y.vy+=(P*=O)*U,ie.vx-=K*(U=1-U),ie.vy-=P*U)}return}return N>w+U||q<w-U||I>$+U||X<$-U}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(o=+p,u):o},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:qn(+p),h(),u):e},u}function vwe(e){return e.index}function kw(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function ywe(e){var t=vwe,n=v,i,o=qn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,L=e.length;E<g;++E)for(var D=0,N,I,q,X,ie,J,U;D<L;++D)N=e[D],I=N.source,q=N.target,X=q.x+q.vx-I.x-I.vx||Eo(p),ie=q.y+q.vy-I.y-I.vy||Eo(p),J=Math.sqrt(X*X+ie*ie),J=(J-l[D])/J*C*i[D],X*=J,ie*=J,q.vx-=X*(U=h[D]),q.vy-=ie*U,I.vx+=X*(U=1-U),I.vy+=ie*U}function w(){if(u){var C,E=u.length,L=e.length,D=new Map(u.map((I,q)=>[t(I,q,u),I])),N;for(C=0,f=new Array(E);C<L;++C)N=e[C],N.index=C,typeof N.source!="object"&&(N.source=kw(D,N.source)),typeof N.target!="object"&&(N.target=kw(D,N.target)),f[N.source.index]=(f[N.source.index]||0)+1,f[N.target.index]=(f[N.target.index]||0)+1;for(C=0,h=new Array(L);C<L;++C)N=e[C],h[C]=f[N.source.index]/(f[N.source.index]+f[N.target.index]);i=new Array(L),$(),l=new Array(L),_()}}function $(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function _(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+o(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:qn(+C),$(),y):n},y.distance=function(C){return arguments.length?(o=typeof C=="function"?C:qn(+C),_(),y):o},y}const bwe=1664525,wwe=1013904223,Tw=4294967296;function xwe(){let e=1;return()=>(e=(bwe*e+wwe)%Tw)/Tw}function Swe(e){return e.x}function _we(e){return e.y}var kwe=10,Twe=Math.PI*(3-Math.sqrt(5));function Cwe(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=cm(v),p=Oc("tick","end"),g=xwe();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y(_){var C,E=e.length,L;_===void 0&&(_=1);for(var D=0;D<_;++D)for(n+=(l-n)*o,f.forEach(function(N){N(n)}),C=0;C<E;++C)L=e[C],L.fx==null?L.x+=L.vx*=u:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=u:(L.y=L.fy,L.vy=0);return t}function w(){for(var _=0,C=e.length,E;_<C;++_){if(E=e[_],E.index=_,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var L=kwe*Math.sqrt(.5+_),D=_*Twe;E.x=L*Math.cos(D),E.y=L*Math.sin(D)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function $(_){return _.initialize&&_.initialize(e,g),_}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(_){return arguments.length?(e=_,w(),f.forEach($),t):e},alpha:function(_){return arguments.length?(n=+_,t):n},alphaMin:function(_){return arguments.length?(i=+_,t):i},alphaDecay:function(_){return arguments.length?(o=+_,t):+o},alphaTarget:function(_){return arguments.length?(l=+_,t):l},velocityDecay:function(_){return arguments.length?(u=1-_,t):1-u},randomSource:function(_){return arguments.length?(g=_,f.forEach($),t):g},force:function(_,C){return arguments.length>1?(C==null?f.delete(_):f.set(_,$(C)),t):f.get(_)},find:function(_,C,E){var L=0,D=e.length,N,I,q,X,ie;for(E==null?E=1/0:E*=E,L=0;L<D;++L)X=e[L],N=_-X.x,I=C-X.y,q=N*N+I*I,q<E&&(ie=X,E=q);return ie},on:function(_,C){return arguments.length>1?(p.on(_,C),t):p.on(_)}}}function Ewe(){var e,t,n,i,o=qn(-30),l,u=1,f=1/0,h=.81;function p(w){var $,_=e.length,C=hm(e,Swe,_we).visitAfter(v);for(i=w,$=0;$<_;++$)t=e[$],C.visit(y)}function g(){if(e){var w,$=e.length,_;for(l=new Array($),w=0;w<$;++w)_=e[w],l[_.index]=+o(_,w,e)}}function v(w){var $=0,_,C,E=0,L,D,N;if(w.length){for(L=D=N=0;N<4;++N)(_=w[N])&&(C=Math.abs(_.value))&&($+=_.value,E+=C,L+=C*_.x,D+=C*_.y);w.x=L/E,w.y=D/E}else{_=w,_.x=_.data.x,_.y=_.data.y;do $+=l[_.data.index];while(_=_.next)}w.value=$}function y(w,$,_,C){if(!w.value)return!0;var E=w.x-t.x,L=w.y-t.y,D=C-$,N=E*E+L*L;if(D*D/h<N)return N<f&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)),t.vx+=E*w.value*i/N,t.vy+=L*w.value*i/N),!0;if(w.length||N>=f)return;(w.data!==t||w.next)&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)));do w.data!==t&&(D=l[w.data.index]*i/N,t.vx+=E*D,t.vy+=L*D);while(w=w.next)}return p.initialize=function(w,$){e=w,n=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:qn(+w),g(),p):o},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Awe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(o[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function $we(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(o[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function Nwe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function Mwe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Lwe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function vk(e){e.preventDefault(),e.stopPropagation()}function yk(e){return typeof e=="number"}function Fo(e,t){return yk(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Owe(e){return`${e.source.id}-${e.target.id}`}function bk(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Rwe(e){return`url(#${bk(e.color)})`}function Pwe(e){return{size:e,padding:(t,n)=>Fo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const wk={Arrow:e=>Pwe(e)},Iwe=(e,t,n)=>[t/2,n/2],Dwe=(e,t,n)=>[Cw(0,t),Cw(0,n)];function Cw(e,t){return Math.random()*(t-e)+e}const Vp={Centered:Iwe,Randomized:Dwe};function Fwe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Lwe(),nodeRadius:16,marker:wk.Arrow(4),modifiers:{},positionInitializer:Vp.Centered,simulation:{alphas:Nwe(),forces:Mwe()},zoom:{initial:1,min:.1,max:2}}}function zwe(e={}){return yve(Fwe(),e,{arrayMerge:(t,n)=>n})}function Hwe({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:o,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>vk(g)).on("dblclick",g=>n?.(g)).on("dblclick.zoom",null).on("pointermove",g=>i?.(g)).on("pointerup",g=>o?.(g)).style("cursor","grab");return e&&p.call(h.transform,dm.translate(l,u).scale(f)),p.append("g")}function Bwe({canvas:e,scale:t,xOffset:n,yOffset:i}){e?.attr("transform",`translate(${n},${i})scale(${t})`)}function jwe({config:e,onDragStart:t,onDragEnd:n}){const i=l0e().filter(o=>o.type==="mousedown"?o.button===0:o.type==="touchstart"?o.touches.length===1:!1).on("start",(o,l)=>{o.active===0&&t(o,l),er(o.sourceEvent.target).classed("grabbed",!0),l.fx=l.x,l.fy=l.y}).on("drag",(o,l)=>{l.fx=o.x,l.fy=o.y}).on("end",(o,l)=>{o.active===0&&n(o,l),er(o.sourceEvent.target).classed("grabbed",!1),l.fx=void 0,l.fy=void 0});return e.modifiers.drag?.(i),i}function Wwe({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:o}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&o(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:qwe({links:l},n)}function qwe(e,t){const n=[...Uwe(e,t),...Vwe(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function Uwe(e,t){return xk(e,t,(n,i)=>n.target.id===i.id)}function Vwe(e,t){return xk(e,t,(n,i)=>n.source.id===i.id)}function xk(e,t,n){const i=new Set(e.links),o=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...o].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{o.add(f.source),o.add(f.target),l.push(f),i.delete(f)})}return l}function Gp(e){return e.x??0}function Kp(e){return e.y??0}function gm({source:e,target:t}){const n=new Ol(Gp(e),Kp(e)),i=new Ol(Gp(t),Kp(t)),o=i.subtract(n),l=o.length(),u=o.normalize();return{s:n,t:i,dist:l,norm:u,endNorm:u.multiply(-1)}}function Sk({center:e,node:t}){const n=new Ol(Gp(t),Kp(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Ol(0,1))),{n,c:i}}function _k({config:e,source:t,target:n}){const{s:i,t:o,norm:l}=gm({source:t,target:n});return{start:i.add(l.multiply(Fo(e,t)-1)),end:o.subtract(l.multiply(e.marker.padding(n,e)))}}function Gwe(e){const{start:t,end:n}=_k(e);return`M${t.x},${t.y}
78
+ L${n.x},${n.y}`}function Kwe(e){const{start:t,end:n}=_k(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function Ywe({config:e,source:t,target:n}){const{s:i,t:o,dist:l,norm:u,endNorm:f}=gm({source:t,target:n}),h=10,p=u.rotateByDegrees(-h).multiply(Fo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(Fo(e,n)).add(o).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
79
+ A${v},${v},0,0,1,${g.x},${g.y}`}function Xwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=Fo(t,n),u=i.subtract(o),f=u.multiply(1/u.length()),h=40,p=f.rotateByDegrees(h).multiply(l-1).add(i),g=f.rotateByDegrees(-h).multiply(l).add(i).add(f.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
80
+ A${l},${l},0,1,0,${g.x},${g.y}`}function Jwe({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:l}=gm({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*o).add(i);return`translate(${u.x},${u.y})`}function Zwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=i.subtract(o),u=l.multiply(1/l.length()).multiply(3*Fo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const xl={line:{labelTransform:Kwe,path:Gwe},arc:{labelTransform:Jwe,path:Ywe},reflexive:{labelTransform:Zwe,path:Xwe}};function Qwe(e){return e.append("g").classed("links",!0).selectAll("path")}function exe({config:e,graph:t,selection:n,showLabels:i}){const o=n?.data(t.links,l=>Owe(l)).join(l=>{const u=l.append("g"),f=u.append("path").classed("link",!0).style("marker-end",p=>Rwe(p)).style("stroke",p=>p.color);e.modifiers.link?.(f);const h=u.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),u});return o?.select(".link__label").attr("opacity",l=>l.label&&i?1:0),o}function txe(e){nxe(e),rxe(e)}function nxe({center:e,config:t,graph:n,selection:i}){i?.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?xl.reflexive.path({config:t,node:o.source,center:e}):kk(n,o.source,o.target)?xl.arc.path({config:t,source:o.source,target:o.target}):xl.line.path({config:t,source:o.source,target:o.target}))}function rxe({config:e,center:t,graph:n,selection:i}){i?.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?xl.reflexive.labelTransform({config:e,node:o.source,center:t}):kk(n,o.source,o.target)?xl.arc.labelTransform({config:e,source:o.source,target:o.target}):xl.line.labelTransform({config:e,source:o.source,target:o.target}))}function kk(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function ixe(e){return e.append("defs").selectAll("marker")}function oxe({config:e,graph:t,selection:n}){return n?.data(sxe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",l=>bk(l)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",l=>l);return o.append("path").attr("d",lxe(e.marker.path)),o})}function sxe(e){return[...new Set(e.links.map(t=>t.color))]}function lxe(e){const[t,...n]=e;if(!t)return"M0,0";const[i,o]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${o}`)}function axe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function cxe({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:o,selection:l,showLabels:u}){const f=l?.data(n.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",y=>Fo(e,y)).on("contextmenu",(y,w)=>{vk(y),i(w)}).on("pointerdown",(y,w)=>fxe(y,w,o??i)).style("fill",y=>y.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",y=>y.label?y.label.color:null).style("font-size",y=>y.label?y.label.fontSize:null).style("stroke","none").text(y=>y.label?y.label.text:null);return e.modifiers.nodeLabel?.(v),p});return f?.select(".node").classed("focused",h=>h.isFocused),f?.select(".node__label").attr("opacity",u?1:0),f}const uxe=500;function fxe(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,o=Date.now();if(i===void 0||o-i>uxe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function dxe(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function hxe({center:e,config:t,graph:n,onTick:i}){const o=Cwe(n.nodes),l=t.simulation.forces.centering;if(l&&l.enabled){const p=l.strength;o.force("x",Awe(()=>e().x).strength(p)).force("y",$we(()=>e().y).strength(p))}const u=t.simulation.forces.charge;u&&u.enabled&&o.force("charge",Ewe().strength(u.strength));const f=t.simulation.forces.collision;f&&f.enabled&&o.force("collision",mwe().radius(p=>f.radiusMultiplier*Fo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&o.force("link",ywe(n.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),o.on("tick",()=>i()),t.modifiers.simulation?.(o),o}function pxe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){const l=Jbe().scaleExtent([n,i]).filter(u=>u.button===0||u.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",u=>o(u)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(l),l}var gxe=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(i=>{const[o,l]=n.positionInitializer(i,this.effectiveWidth,this.effectiveHeight);i.x=i.x??o,i.y=i.y??l}),this.nodeTypes=[...new Set(t.nodes.map(i=>i.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){const{includeUnlinked:i,nodeTypeFilter:o,linkFilter:l,showLinkLabels:u,showNodeLabels:f}=n.initial;this._includeUnlinked=i??this._includeUnlinked,this._showLinkLabels=u??this._showLinkLabels,this._showNodeLabels=f??this._showNodeLabels,this._nodeTypeFilter=o??this._nodeTypeFilter,this._linkFilter=l??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(bve(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,i=e?t:n;this.restart(i)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,i=e?n:t;this.restart(i)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.links,i=e?n:t;this.restart(i)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Ol.of([this.width,this.height]).divide(2).subtract(Ol.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,i=this.container.getBoundingClientRect().height,o=e.toFixed()!==n.toFixed(),l=t.toFixed()!==i.toFixed();if(!o&&!l)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const u=this.config.simulation.alphas.resize;this.restart(yk(u)?u:u({oldWidth:e,oldHeight:t,newWidth:n,newHeight:i}))}restart(e){this.markerSelection=oxe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=exe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=cxe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=hxe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(n=>n!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=pxe({config:this.config,canvasContainer:()=>er(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Hwe({applyZoom:this.scale!==1,container:er(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Qwe(this.canvas),this.nodeSelection=axe(this.canvas),this.markerSelection=ixe(this.canvas),this.drag=jwe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){dxe(this.nodeSelection),txe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),er(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Bwe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Wwe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ew({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function mxe(e){return{...e}}function mm(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Aw(e){const t=e.map(i=>g_(i)),n=hP(t);return t.map(({raw:i,id:o,splitsCopy:l})=>mm({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:o.includes("node_modules")?n.get(i)??i:l[l.length-1]},isFocused:!1,id:o,type:"external"}))}function vxe(e,t){return mm({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function yxe(e,t){if(!e)return Ew({});const n=pt.value.experimental?.viteModuleRunner?Aw(e.externalized):Aw([...e.inlined,...e.externalized]),i=pt.value.experimental?.viteModuleRunner?e.inlined.map(f=>vxe(f,f===t))??[]:[],o=[...n,...i],l=Object.fromEntries(o.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return mxe({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ew({nodes:o,links:u})}const bxe={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},wxe={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},xxe={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Sxe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},_xe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},kxe={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Tk=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=ir("tooltip");return e.state==="pass"?(te(),ge("div",bxe)):e.failedSnapshot?st((te(),ge("div",wxe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ge("div",xxe)):e.mode==="todo"?st((te(),ge("div",Sxe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((te(),ge("div",_xe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(te(),ge("div",kxe))}}}),Txe={border:"b base","p-4":""},Cxe=["innerHTML"],Exe=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(te(),ge("div",Txe,[Y("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Me(t(e.time))+" | "+Me(e.taskName)+" | "+Me(e.type),3),Y("pre",{"data-type":"html",innerHTML:e.content},null,8,Cxe)]))}}),Axe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},$xe={key:1,p6:""},Nxe=tt({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const i=j_.value;if(i){const o=Qg(Po.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:o.toHtml(Wa(h))}))}});function n(i){const o=i&&ft.state.idMap.get(i);return o&&"filepath"in o?o.name:(o?LR(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>t.value?.length?(te(),ge("div",Axe,[(te(!0),ge(nt,null,xn(t.value,({taskId:l,type:u,time:f,content:h})=>(te(),ge("div",{key:l,"font-mono":""},[Ne(Exe,{"task-name":n(l),type:u,time:f,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ge("div",$xe,[...o[0]||(o[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),Y("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),Ck={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Ck);var xr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},rl,La,as;class Mxe{constructor(...t){rl.set(this,new Map),La.set(this,new Map),as.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,o]of Object.entries(t)){i=i.toLowerCase(),o=o.map(f=>f.toLowerCase()),xr(this,as,"f").has(i)||xr(this,as,"f").set(i,new Set);const l=xr(this,as,"f").get(i);let u=!0;for(let f of o){const h=f.startsWith("*");if(f=h?f.slice(1):f,l?.add(f),u&&xr(this,La,"f").set(i,f),u=!1,h)continue;const p=xr(this,rl,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);xr(this,rl,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),o=n.length<t.length;return!(i.length<n.length-1)&&o?null:xr(this,rl,"f").get(i)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&xr(this,La,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:xr(this,as,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of xr(this,as,"f").values())Object.freeze(t);return this}_getTestState(){return{types:xr(this,rl,"f"),extensions:xr(this,La,"f")}}}rl=new WeakMap,La=new WeakMap,as=new WeakMap;const Lxe=new Mxe(Ck)._freeze();function Pl(e){const t=e.contentType??"application/octet-stream";return e.path?pr?`./data/${iR(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Ek(e,t){const n=t?Lxe.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function Ak(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Yp(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Pl(e)}const Ju=tt({__name:"CodeMirrorContainer",props:Xa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Xa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=Jf(e,"modelValue"),o=fA(),l={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},u=Ke();return Yi(async()=>{const f=Lge(u,i,{...o,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.on("refresh",()=>{n("codemirror",f)}),f.on("change",()=>{n("codemirror",f)}),f.setSize("100%","100%"),f.clearHistory(),Fn.value=f,setTimeout(()=>Fn.value?.refresh(),100)}),(f,h)=>(te(),ge("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[Y("textarea",{ref_key:"el",ref:u},null,512)],2))}}),Oxe=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,o=Ke(""),l=Vt(void 0),u=Ke(!1),f=Ke(!0),h=Ke(!1),p=Ke();yt(()=>n.file,async()=>{if(!h.value){f.value=!0;try{if(!n.file||!n.file?.filepath){o.value="",l.value=o.value,u.value=!1,f.value=!1;return}o.value=await ft.rpc.readTestFile(n.file.filepath)||"",l.value=o.value,u.value=!1}catch(J){console.error("cannot fetch file",J)}await At(),f.value=!1}},{immediate:!0}),yt(()=>[f.value,h.value,n.file,N_.value,M_.value],([J,U,K,P,O])=>{!J&&!U&&(P!=null?At(()=>{const k=p.value,S=k??{line:(P??1)-1,ch:O??0};k?p.value=void 0:(Fn.value?.scrollIntoView(S,100),At(()=>{Fn.value?.focus(),Fn.value?.setCursor(S)}))}):At(()=>{Fn.value?.focus()}))},{flush:"post"});const g=Se(()=>n.file?.filepath?.split(/\./g).pop()||"js"),v=Ke(),y=Se(()=>{const J=[];function U(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),w=Se(()=>{const J=[];function U(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),$=[],_=[],C=[],E=Ke(!1);function L(){C.forEach(([J,U,K])=>{J.removeEventListener("click",U),K()}),C.length=0}fM(v,()=>{Fn.value?.refresh()});function D(){u.value=l.value!==Fn.value.getValue()}yt(u,J=>{i("draft",J)},{immediate:!0});function N(J){const K=(J?.stacks||[]).filter(R=>R.file&&R.file===n.file?.filepath)?.[0];if(!K)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-700 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,P.appendChild(O);const k=document.createElement("span");k.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",k.tabIndex=0,k.ariaLabel="Open in Editor",B1(k,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Zg(K.file,K.line,K.column)};k.addEventListener("click",S),P.appendChild(k),C.push([k,S,()=>Eg(k)]),_.push(Fn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),$.push(Fn.value.addLineWidget(K.line-1,P))}function I(J){if(!J.location)return;const{line:U,file:K}=J.location;if(K!==n.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const k=document.createElement("span");k.textContent=`${J.type}: `,k.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
81
+ `),O.append(k,S),P.append(O);const R=J.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Pl(R)),B.target="_blank",B.href=ae.src,B.append(ae),P.append(B)}else{const B=document.createElement("a");B.href=Pl(R),B.download=Ek(J.message,R.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(ae,ve),P.append(B)}$.push(Fn.value.addLineWidget(U-1,P))}const{pause:q,resume:X}=yt([Fn,y,w,ol],([J,U,K,P])=>{if(!J){$.length=0,_.length=0,L();return}P&&(J.off("changes",D),L(),$.forEach(O=>O.clear()),_.forEach(O=>J?.removeLineClass(O,"wrap")),$.length=0,_.length=0,setTimeout(()=>{U.forEach(N),K.forEach(I),E.value||J.clearHistory(),J.on("changes",D)},100))},{flush:"post"});K1(()=>[ol.value,h.value,p.value],([J,U],K)=>{J&&!U&&K&&K[2]&&Fn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function ie(J){if(h.value)return;q(),h.value=!0,await At();const U=Fn.value;U&&(U.setOption("readOnly",!0),await At(),U.refresh()),p.value=U?.getCursor(),U?.off("changes",D),L(),$.forEach(K=>K.clear()),_.forEach(K=>U?.removeLineClass(K,"wrap")),$.length=0,_.length=0;try{E.value=!0,await ft.rpc.saveTestFile(n.file.filepath,J),l.value=J,u.value=!1}catch(K){console.error("error saving file",K)}E.value||U?.clearHistory();try{await $0(ol).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await $0(ol).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(N),w.value.forEach(I),U?.on("changes",D),h.value=!1,await At(),U&&(U.setOption("readOnly",!1),await At(),U.refresh()),X()}return Sc(L),(J,U)=>(te(),We(Ju,ci({ref_key:"editor",ref:v,modelValue:o.value,"onUpdate:modelValue":U[0]||(U[0]=K=>o.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(pr)||!W(pt).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ie}),null,16,["modelValue","mode"]))}}),$k=tt({__name:"Modal",props:Xa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue"),n=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),i=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),o=()=>t.value=!1;return(l,u)=>(te(),ge("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:o},null,2),Y("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[n.value]]),style:Pt(t.value?{}:{transform:i.value})},[Bt(l.$slots,"default")],6)],2))}}),Rxe={class:"overflow-auto max-h-120"},Pxe={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},Ixe=["onClick"],Dxe=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const n=t,i=Se(()=>{const u=Tr.value?.importDurations,f=pt.value.root;if(!u||!f)return[];const h=[];for(const p in u){const g=u[p],v=g.external?pP(p):ud(f,p);h.push({importedFile:p,relativeFile:o(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:us(g.selfTime),formattedTotalTime:us(g.totalTime),selfTimeClass:kf(g.selfTime),totalTimeClass:kf(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function o(l){return l.length<=45?l:`...${l.slice(-45)}`}return(l,u)=>(te(),ge("div",Rxe,[u[1]||(u[1]=Y("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),Y("span",{"op-70":""},"(ordered by Total Time)")],-1)),Y("table",Pxe,[u[0]||(u[0]=Y("thead",null,[Y("tr",null,[Y("th",null," Module "),Y("th",null," Self "),Y("th",null," Total "),Y("th",null," % ")])],-1)),Y("tbody",null,[(te(!0),ge(nt,null,xn(i.value,f=>(te(),ge("tr",{key:f.importedFile},[Y("td",{class:"cursor-pointer pr-2",style:Pt({color:f.external?"var(--color-node-external)":void 0}),onClick:h=>n("select",f.importedFile,f.external?"external":"inline")},Me(f.relativeFile),13,Ixe),Y("td",{"pr-2":"",class:ot(f.selfTimeClass)},Me(f.formattedSelfTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(f.formattedTotalTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(Math.round(f.totalTime/i.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),el=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,n)=>(te(),ge("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Bt(t.$slots,"default")],2))}}),Fxe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},zxe={"p-4":"",relative:""},Hxe={flex:"","justify-between":""},Bxe={"mr-8":"",flex:"","gap-2":"","items-center":""},jxe={op50:"","font-mono":"","text-sm":""},Wxe={key:0,"p-5":""},qxe={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Uxe={key:0},Vxe={p:"x3 y-1","bg-overlay":"",border:"base b t"},Gxe=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const n=e,i=t,o=VN(()=>{if(Tr.value?.id){if(n.type==="inline")return ft.rpc.getTransformResult(n.projectName,n.id,Tr.value.id,!!gr);if(n.type==="external")return ft.rpc.getExternalResult(n.id,Tr.value.id)}}),l=Se(()=>{const D=Tr.value?.importDurations||{};return D[n.id]||D[nR("/@fs/",n.id)]||{}}),u=Se(()=>n.id?.split(/\./g).pop()||"js"),f=Se(()=>o.value?.source?.trim()||""),h=Se(()=>!o.value||!("code"in o.value)||!pt.value.experimental?.fsModuleCache?void 0:o.value.code.lastIndexOf("vitestCache=")!==-1),p=Se(()=>!o.value||!("code"in o.value)?null:o.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=Se(()=>!o.value||!("map"in o.value)?{mappings:""}:{mappings:o.value?.map?.mappings??"",version:o.value?.map?.version}),v=[],y=[],w=[];function $(D,N){const I=D.coordsChar({left:N.clientX,top:N.clientY}),q=D.findMarksAt(I);if(q.length!==1)return;const X=q[0].title;if(X){const ie=q[0].attributes?.["data-external"]==="true"?"external":"inline";i("select",X,ie)}}function _(D){const N=document.createElement("div");N.classList.add("mb-5");const I=pt.value.root;if(I)return D.forEach(({resolvedId:q,totalTime:X,external:ie})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const U=document.createElement("span"),K=ud(I,q);U.textContent=`"/${K}"`,U.className="hover:underline decoration-gray cursor-pointer select-none",J.append(U),U.addEventListener("click",()=>{i("select",q,ie?"external":"inline")});const P=document.createElement("span");P.textContent=` ${us(X)}`;const O=kf(X);O&&P.classList.add(O),J.append(P),N.append(J)}),N}function C(D){const N=document.createElement("div");N.className="flex ml-2",N.textContent=us(D);const I=kf(D);return I&&N.classList.add(I),N}function E(D){if(w.forEach(N=>N.clear()),w.length=0,v.forEach(N=>N.remove()),v.length=0,y.forEach(N=>N.clear()),y.length=0,o.value&&"modules"in o.value){D.off("mousedown",$),D.on("mousedown",$);const N=o.value.untrackedModules;if(N?.length){const I=_(N);if(!I)return;v.push(I),w.push(D.addLineWidget(0,I,{above:!0}))}o.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},X={line:I.end.line-1,ch:I.end.column},ie=D.markText(q,X,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});y.push(ie);const J=C(I.totalTime+(I.transformTime||0));N?.length||J.classList.add("-mt-5"),v.push(J),D.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function L(){i("back")}return J1("Escape",()=>{i("close")}),(D,N)=>{const I=ir("tooltip");return te(),ge("div",Fxe,[Y("div",zxe,[Y("div",Hxe,[Y("p",null,[e.canUndo?st((te(),We(Tt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:N[0]||(N[0]=q=>L())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):Fe("",!0),N[7]||(N[7]=Qe(" Module Info ",-1)),Ne(W(wo),{class:"inline","cursor-help":""},{popper:je(()=>[Qe(" This is module is "+Me(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ge(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ge(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:je(()=>[Ne(el,{type:"custom","ml-1":"",style:Pt({backgroundColor:`var(--color-node-${e.type})`})},{default:je(()=>[Qe(Me(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[...N[4]||(N[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:je(()=>[Ne(el,{type:"tip","ml-2":""},{default:je(()=>[...N[3]||(N[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Fe("",!0),h.value===!1?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[...N[6]||(N[6]=[Y("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),Y("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:je(()=>[Ne(el,{type:"warning","ml-2":""},{default:je(()=>[...N[5]||(N[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Fe("",!0)]),Y("div",Bxe,[l.value.selfTime!=null&&l.value.external!==!0?(te(),We(W(wo),{key:0,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.selfTime)},{default:je(()=>[Qe(" self: "+Me(W(us)(l.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),l.value.totalTime!=null?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.totalTime)},{default:je(()=>[Qe(" total: "+Me(W(us)(l.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),W(o)&&"transformTime"in W(o)&&W(o).transformTime?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(W(o).transformTime))+" to transform this module by Vite plugins. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(W(o).transformTime)},{default:je(()=>[Qe(" transform: "+Me(W(us)(W(o).transformTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0)])]),Y("p",jxe,Me(e.id),1),Ne(Tt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:N[1]||(N[1]=q=>i("close"))})]),W(o)?(te(),ge(nt,{key:1},[Y("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[N[8]||(N[8]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ge("div",qxe," Transformed ")):Fe("",!0),(te(),We(Ju,ci({key:e.id,"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:u.value,onCodemirror:N[2]||(N[2]=q=>E(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(Ju,ci({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Fe("",!0)],2),g.value.mappings!==""?(te(),ge("div",Uxe,[Y("div",Vxe," Source map (v"+Me(g.value.version)+") ",1),Ne(Ju,ci({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Fe("",!0)],64)):(te(),ge("div",Wxe," No transform result found for this module. "))])}}}),Kxe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Yxe={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Xxe={flex:"~ gap-1","items-center":"","select-none":""},Jxe={class:"pr-2"},Zxe=["id","checked","onChange"],Qxe=["for"],e1e={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},t1e=tt({__name:"ViewModuleGraph",props:Xa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Jf(e,"modelValue"),{graph:i}=OE(t),o=Ke(),l=Ke(!1),u=Ke(),f=uM(u),h=Ke(),p=Ke(null),g=Vt(i.value),v=Se(()=>{let K="";const P=Tr.value?.importDurations,O=pt.value.experimental?.importDurations.thresholds;if(!P||!O)return K;for(const k in P){const{totalTime:S}=P[k];if(S>=O.danger){K="text-red";break}else S>=O.warn&&(K="text-orange")}return K}),y=Ke(v.value==="text-red");Yi(()=>{g.value=_(i.value,null,2),X()}),_c(()=>{h.value?.shutdown()}),yt(i,()=>{g.value=_(i.value,p.value,2),X()});function w(){g.value=i.value,X()}function $(){y.value=!y.value}function _(K,P,O=2){if(!K.nodes.length||K.nodes.length<=50)return K;const k=new Map;K.nodes.forEach(Ee=>k.set(Ee.id,new Set)),K.links.forEach(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);k.get(Ge)?.add(Ue),k.get(Ue)?.add(Ge)});let S;if(P)S=[P];else{const Ee=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ge=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ee.has(Ue.id));S=Ge.length>0?[Ge[0].id]:[K.nodes[0].id]}const R=new Set,B=S.map(Ee=>({id:Ee,level:0}));for(;B.length>0;){const{id:Ee,level:Ge}=B.shift();R.has(Ee)||Ge>O||(R.add(Ee),Ge<O&&(k.get(Ee)||new Set).forEach(He=>{R.has(He)||B.push({id:He,level:Ge+1})}))}const ae=new Map(K.nodes.map(Ee=>[Ee.id,Ee])),ve=Array.from(R).map(Ee=>ae.get(Ee)).filter(Ee=>Ee!==void 0),_e=new Map(ve.map(Ee=>[Ee.id,Ee])),Be=K.links.map(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);if(R.has(Ge)&&R.has(Ue)){const He=_e.get(Ge),Re=_e.get(Ue);if(He&&Re)return{...Ee,source:He,target:Re}}return null}).filter(Ee=>Ee!==null);return{nodes:ve,links:Be}}function C(K,P){h.value?.filterNodesByType(P,K)}function E(K,P){u.value={id:K,type:P},l.value=!0}function L(){f.undo()}function D(){l.value=!1,f.clear()}function N(K){p.value=K,g.value=_(i.value,K,2),q(),X()}function I(){p.value=null,g.value=_(i.value,null,2),q(),X()}function q(){const K=g.value.nodes.map(k=>{let S,R;return k.id===p.value?(S="var(--color-node-focused)",R="var(--color-node-focused)"):k.type==="inline"?(S=k.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=S):(S="var(--color-node-external)",R="var(--color-node-external)"),mm({...k,color:S,label:k.label?{...k.label,color:R}:k.label})}),P=new Map(K.map(k=>[k.id,k])),O=g.value.links.map(k=>{const S=typeof k.source=="object"?k.source.id:String(k.source),R=typeof k.target=="object"?k.target.id:String(k.target);return{...k,source:P.get(S),target:P.get(R)}});g.value={nodes:K,links:O}}function X(K=!1){if(h.value?.shutdown(),K&&!n.value){n.value=!0;return}if(!g.value||!o.value)return;const P=g.value.nodes.length;let O=1,k=.5;P>300?(O=.3,k=.2):P>200?(O=.4,k=.3):P>100?(O=.5,k=.3):P>50&&(O=.7,O=.4),h.value=new gxe(o.value,g.value,zwe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:S,newWidth:R})=>S===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:wk.Arrow(2),modifiers:{node:U},positionInitializer:i.value.nodes.length===1?Vp.Centered:Vp.Randomized,zoom:{initial:O,min:k,max:1.5}}))}const ie=K=>K.button===0,J=K=>K.button===2;function U(K){if(pr)return;let P=0,O=0,k=0,S=!1;K.on("pointerdown",(R,B)=>{!B.x||!B.y||(S=J(R),!(!ie(R)&&!S)&&(P=B.x,O=B.y,k=Date.now()))}).on("pointerup",(R,B)=>{if(!B.x||!B.y)return;const ae=J(R);if(!ie(R)&&!ae||Date.now()-k>500)return;const ve=B.x-P,_e=B.y-O;ve**2+_e**2<100&&(!ae&&!R.shiftKey?E(B.id,B.type):(ae||R.shiftKey)&&(R.preventDefault(),B.type==="inline"&&N(B.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(K,P)=>{const O=ir("tooltip");return te(),ge("div",Kxe,[Y("div",null,[Y("div",Yxe,[Y("div",Xxe,[Y("div",Jxe,Me(g.value.nodes.length)+"/"+Me(W(i).nodes.length)+" "+Me(g.value.nodes.length===1?"module":"modules"),1),st(Y("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=k=>n.value=k),type:"checkbox"},null,512),[[b1,n.value]]),P[9]||(P[9]=Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(te(!0),ge(nt,null,xn(h.value?.nodeTypes.sort(),k=>(te(),ge("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${k}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(k),onChange:S=>C(k,S.target.checked)},null,40,Zxe),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:Pt({"border-color":`var(--color-node-${k})`})},Me(k)+" Modules",13,Qxe)]))),128)),P[10]||(P[10]=Y("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=Y("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[Y("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-notebook",class:ot(v.value),onClick:P[1]||(P[1]=k=>$())},null,8,["class"]),[[O,`${y.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=k=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=k=>I())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),y.value?(te(),ge("div",e1e,[Ne(Dxe,{onSelect:P[4]||(P[4]=(k,S)=>E(k,S))})])):Fe("",!0),Y("div",{ref_key:"el",ref:o},null,512),Ne($k,{modelValue:l.value,"onUpdate:modelValue":P[8]||(P[8]=k=>l.value=k),direction:"right"},{default:je(()=>[u.value?(te(),We(IA,{key:0},{default:je(()=>[Ne(Gxe,{id:u.value.id,"project-name":e.projectName,type:u.value.type,"can-undo":W(f).undoStack.value.length>1,onClose:P[5]||(P[5]=k=>D()),onSelect:P[6]||(P[6]=(k,S)=>E(k,S)),onBack:P[7]||(P[7]=k=>L())},null,8,["id","project-name","type","can-undo"])]),_:1})):Fe("",!0)]),_:1},8,["modelValue"])])}}}),n1e={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},r1e={"p-4":"",relative:"",border:"base b"},i1e={op50:"","font-mono":"","text-sm":""},o1e={op50:"","font-mono":"","text-sm":""},s1e={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},l1e=["src","alt"],a1e={key:1},c1e=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return J1("Escape",()=>{n("close")}),(i,o)=>(te(),ge("div",n1e,[Y("div",r1e,[o[1]||(o[1]=Y("p",null,"Screenshot error",-1)),Y("p",i1e,Me(e.file),1),Y("p",o1e,Me(e.name),1),Ne(Tt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:o[0]||(o[0]=l=>n("close"))})]),Y("div",s1e,[e.url?(te(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,l1e)):(te(),ge("div",a1e," Something was wrong, the image cannot be resolved. "))])]))}}),u1e=Xi(c1e,[["__scopeId","data-v-08ce44b7"]]),f1e={flex:"~ gap-2 items-center"},Nk=tt({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ke(!1),n=Se(()=>{if(e.task.type==="test"){const l=e.task.artifacts.find(u=>u.type==="internal:failureScreenshot");if(l!==void 0)return l}return null}),i=Se(()=>n.value&&n.value.attachments.length&&Pl(n.value.attachments[0]));function o(){if(n.value===null||n.value.attachments.length===0)return;const l=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(l)}`)}return(l,u)=>{const f=ir("tooltip");return i.value?(te(),ge(nt,{key:0},[Y("div",f1e,[st(Ne(Tt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:u[0]||(u[0]=h=>t.value=!0)},null,512),[[f,"View screenshot error",void 0,{bottom:!0}]]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:o},null,512)),[[f,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(te(),We($k,{key:i.value,modelValue:t.value,"onUpdate:modelValue":u[2]||(u[2]=h=>t.value=h),direction:"right"},{default:je(()=>[Ne(u1e,{file:e.task.file.filepath,name:e.task.name,url:i.value,onClose:u[1]||(u[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):Fe("",!0)}}}),d1e={class:"scrolls scrolls-rounded task-error"},h1e=["onClickPassive"],p1e=["innerHTML"],g1e=tt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=Se(()=>Qg(Po.value)),o=Se(()=>!!t.error?.diff),l=Se(()=>t.error.diff?i.value.toHtml(Wa(t.error.diff)):void 0);function u(f){return kge(f.file,t.filename)?Oge(t.fileId,f):Zg(f.file,f.line,f.column)}return(f,h)=>{const p=ir("tooltip");return te(),ge("div",d1e,[Y("pre",null,[Y("b",null,Me(e.error.name),1),Qe(": "+Me(e.error.message),1)]),(te(!0),ge(nt,null,xn(e.error.stacks,(g,v)=>(te(),ge("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Me(n(g.file))+":"+Me(g.line)+":"+Me(g.column),1),st(Y("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>u(g)},null,40,h1e),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),o.value?(te(),ge("pre",{key:0,"data-testid":"diff",innerHTML:l.value},null,8,p1e)):Fe("",!0)])}}}),Mk=Xi(g1e,[["__scopeId","data-v-bd36ee9a"]]),m1e={"h-full":"",class:"scrolls"},v1e=["id"],y1e={flex:"~ gap-2 items-center"},b1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},w1e=["innerHTML"],x1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},S1e=tt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(o,l){return o.result?.state!=="fail"?[]:o.type==="test"?[{...o,level:l}]:[{...o,level:l},...o.tasks.flatMap(u=>n(u,l+1))]}const i=Se(()=>{const o=t.file,l=o.tasks?.flatMap(h=>n(h,0))??[],u=o.result;if(u?.errors?.[0]){const h={id:o.id,file:o,name:o.name,fullName:o.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:u};l.unshift(h)}return l.length>0?$_(Po.value,l):l});return(o,l)=>(te(),ge("div",m1e,[i.value.length?(te(!0),ge(nt,{key:0},xn(i.value,u=>(te(),ge("div",{id:u.id,key:u.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Pt({"margin-left":`${u.result?.htmlError?.5:2*u.level+.5}rem`})},[Y("div",y1e,[Y("span",null,Me(u.name),1),Ne(Nk,{task:u},null,8,["task"])]),u.result?.htmlError?(te(),ge("div",b1e,[Y("pre",{innerHTML:u.result.htmlError},null,8,w1e)])):u.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(u.result.errors,(f,h)=>(te(),We(Mk,{key:h,error:f,filename:e.file.name,root:W(pt).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Fe("",!0)],4)],8,v1e))),128)):(te(),ge("div",x1e," All tests passed in this file "))]))}}),_1e=Xi(S1e,[["__scopeId","data-v-13572615"]]);function Lk(e,t){return Rge(e,t)}function Pf(e){const t=pt.value.root;return`${t?ud(t,e.file):e.file}:${e.line}:${e.column}`}const k1e=["href","referrerPolicy"],T1e=["src"],C1e=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=Se(()=>{const i=t.annotation.attachment,o=i.path||i.body;return typeof o=="string"&&(o.startsWith("http://")||o.startsWith("https://"))?o:Pl(i)});return(i,o)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:n.value,referrerPolicy:W(Ak)(e.annotation.attachment)?"no-referrer":void 0},[Y("img",{src:n.value},null,8,T1e)],8,k1e)):Fe("",!0)}}),E1e={class:"flex flex-col gap-4"},A1e={key:0},$1e=tt({__name:"ArtifactTemplate",setup(e){const t=Bx();return(n,i)=>(te(),ge("article",E1e,[Y("h1",null,[Bt(n.$slots,"title")]),W(t).message?(te(),ge("p",A1e,[Bt(n.$slots,"message")])):Fe("",!0),Bt(n.$slots,"default")]))}}),Ok=Symbol("tabContext"),If={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},N1e={class:"flex flex-col items-center gap-6"},M1e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},L1e=["id","aria-selected","aria-controls","onClick"],O1e=tt({__name:"SmallTabs",setup(e){const t=Ke(null),n=Ke([]),i=mg();return _r(Ok,{id:i,activeTab:t,registerTab:o=>{n.value.some(({id:l})=>l===o.id)||n.value.push(o),n.value.length===1&&(t.value=o.id)},unregisterTab:o=>{const l=n.value.findIndex(({id:u})=>u===o.id);l>-1&&n.value.splice(l,1),t.value===o.id&&(t.value=n.value[0]?.id??null)}}),(o,l)=>(te(),ge("div",N1e,[Y("div",M1e,[(te(!0),ge(nt,null,xn(n.value,u=>(te(),ge("button",{id:W(If).tab(u.id,W(i)),key:u.id,role:"tab","aria-selected":t.value===u.id,"aria-controls":W(If).tabpanel(u.id,W(i)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:f=>t.value=u.id},Me(u.title),9,L1e))),128))]),Bt(o.$slots,"default")]))}}),R1e=["id","aria-labelledby","hidden"],Ou=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,n=bn(Ok);if(!n)throw new Error("TabPane must be used within Tabs");const i=mg(),o=Se(()=>n.activeTab.value===i);return Yi(()=>{n.registerTab({...t,id:i})}),_c(()=>{n.unregisterTab({...t,id:i})}),(l,u)=>(te(),ge("div",{id:W(If).tabpanel(W(i),W(n).id),role:"tabpanel","aria-labelledby":W(If).tab(W(i),W(n).id),hidden:!o.value,class:"max-w-full"},[Bt(l.$slots,"default")],8,R1e))}}),Rk=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(n,i)=>(te(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Pt({backgroundImage:t})},[Bt(n.$slots,"default")],4))}}),P1e=["href","referrerPolicy"],I1e=["src"],Xh=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=Se(()=>Yp(e.attachment));return(n,i)=>(te(),We(Rk,null,{default:je(()=>[Y("a",{target:"_blank",href:t.value,referrerPolicy:W(Ak)(e.attachment)?"no-referrer":void 0},[Y("img",{src:t.value},null,8,I1e)],8,P1e)]),_:1}))}}),D1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},F1e=["src"],z1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},H1e=["src"],B1e=["id"],j1e=["for"],W1e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=Se(()=>Yp(e.reference)),n=Se(()=>Yp(e.actual)),i=Se(()=>Math.max(e.reference.width,e.actual.width)),o=Se(()=>Math.max(e.reference.height,e.actual.height)),l=Ke(50),u=mg();return(f,h)=>(te(),We(Rk,null,{default:je(()=>[Y("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Pt({"--split":`${l.value}%`,aspectRatio:`${i.value} / ${o.value}`,width:`${i.value}px`})},[Y("div",D1e,[Y("img",{src:t.value},null,8,F1e)]),Y("div",z1e,[Y("img",{src:n.value},null,8,H1e)]),h[1]||(h[1]=Y("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(Y("input",{id:W(u),"onUpdate:modelValue":h[0]||(h[0]=p=>l.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,B1e),[[y1,l.value]]),Y("output",{for:W(u),class:"sr-only"}," Showing "+Me(l.value)+"% reference, "+Me(100-l.value)+"% actual ",9,j1e)],4)]),_:1}))}}),q1e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=Se(()=>({diff:e.regression.attachments.find(n=>n.name==="diff"),reference:e.regression.attachments.find(n=>n.name==="reference"),actual:e.regression.attachments.find(n=>n.name==="actual")}));return(n,i)=>(te(),We($1e,null,{title:je(()=>[...i[0]||(i[0]=[Qe(" Visual Regression ",-1)])]),message:je(()=>[Qe(Me(e.regression.message),1)]),default:je(()=>[Ne(O1e,null,{default:je(()=>[t.value.diff?(te(),We(Ou,{key:t.value.diff.path,title:"Diff"},{default:je(()=>[Ne(Xh,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference?(te(),We(Ou,{key:t.value.reference.path,title:"Reference"},{default:je(()=>[Ne(Xh,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.actual?(te(),We(Ou,{key:t.value.actual.path,title:"Actual"},{default:je(()=>[Ne(Xh,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference&&t.value.actual?(te(),We(Ou,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:je(()=>[Ne(W1e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Fe("",!0)]),_:1})]),_:1}))}}),U1e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},V1e=["onClick"],G1e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},K1e=tt({__name:"Artifacts",props:{test:{}},setup(e){const t=Se(()=>{const n=[];for(const i of e.test.artifacts)switch(i.type){case"internal:toMatchScreenshot":{i.kind==="visual-regression"&&n.push({artifact:i,component:q1e,props:{regression:i}});continue}}return n});return(n,i)=>{const o=ir("tooltip");return t.value.length?(te(),ge(nt,{key:0},[i[0]||(i[0]=Y("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ge(nt,null,xn(t.value,({artifact:l,component:u,props:f},h)=>(te(),ge("div",{key:l.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",U1e,[Y("div",null,[l.location&&l.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,l.location)},[Qe(Me(W(Pf)(l.location)),1)],8,V1e)),[[o,"Open in Editor",void 0,{bottom:!0}]]):l.location&&l.location.file!==e.test.file.filepath?(te(),ge("span",G1e,Me(W(Pf)(l.location)),1)):Fe("",!0)])]),(te(),We(sf(u),ci({ref_for:!0},f),null,16))]))),128))],64)):Fe("",!0)}}}),Y1e={"h-full":"",class:"scrolls"},X1e={key:0},J1e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},Z1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Q1e=["innerHTML"],eSe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},tSe={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},nSe={class:"flex gap-2","overflow-hidden":""},rSe={class:"font-bold","ws-nowrap":"",truncate:""},iSe=["href","download"],oSe=["onClick"],sSe={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},lSe={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},aSe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},cSe={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},uSe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},fSe=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=Se(()=>!t.test.result||!t.test.result.errors?.length?null:$_(Po.value,[t.test])[0]),i=new Set(["benchmark","typecheck"]),o=Se(()=>Object.entries(t.test.meta).filter(([l])=>!i.has(l)));return(l,u)=>{const f=ir("tooltip");return te(),ge("div",Y1e,[n.value?(te(),ge("div",X1e,[Y("div",J1e,[Ne(Nk,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(te(),ge("div",Z1e,[Y("pre",{innerHTML:e.test.result.htmlError},null,8,Q1e)])):e.test.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(e.test.result.errors,(h,p)=>(te(),We(Mk,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:W(pt).root},null,8,["file-id","error","filename","root"]))),128)):Fe("",!0)])])):(te(),ge("div",eSe," The test has passed without any errors ")),e.test.annotations.length?(te(),ge(nt,{key:2},[u[1]||(u[1]=Y("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ge(nt,null,xn(e.test.annotations,h=>(te(),ge("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",tSe,[Y("div",nSe,[Y("span",rSe,Me(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(Pl)(h.attachment),download:W(Ek)(h.message,h.attachment.contentType)},[...u[0]||(u[0]=[Y("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,iSe)):Fe("",!0)]),Y("div",null,[h.location&&h.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,h.location)},[Qe(Me(W(Pf)(h.location)),1)],8,oSe)),[[f,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(te(),ge("span",sSe,Me(W(Pf)(h.location)),1)):Fe("",!0)])]),Y("div",lSe,Me(h.message),1),Ne(C1e,{annotation:h},null,8,["annotation"])]))),128))],64)):Fe("",!0),Ne(K1e,{test:e.test},null,8,["test"]),o.value.length?(te(),ge(nt,{key:3},[u[2]||(u[2]=Y("h1",{"m-2":""}," Test Meta ",-1)),Y("div",aSe,[(te(!0),ge(nt,null,xn(o.value,([h,p])=>(te(),ge(nt,{key:h},[Y("div",cSe,Me(h),1),Y("pre",uSe,Me(p),1)],64))),128))])],64)):Fe("",!0)])}}}),dSe=Xi(fSe,[["__scopeId","data-v-da767a0b"]]),hSe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},pSe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},gSe={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},mSe={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},vSe={"op-50":"",truncate:""},ySe=["title"],bSe={class:"flex text-lg"},wSe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},xSe={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},SSe={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},_Se={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},kSe=["flex-1"],$w=tt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),n=Ke(!1),i=Ke(!1),o=Ke(!1),l=Ke(void 0),u=Ke(!0),f=Se(()=>Fi.value?ft.state.idMap.get(Fi.value):void 0),h=Se(()=>{const I=Xt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=Se(()=>Xt.value&&Xg(Xt.value)),g=Se(()=>!!Xt.value?.meta?.typecheck);function v(){const I=Xt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function y(I){I==="graph"&&(i.value=!0),yn.value=I}const w=Se(()=>j_.value?.reduce((I,{size:q})=>I+q,0)??0);function $(I){n.value=I}const _=/[/\\]node_modules[/\\]/;async function C(I=!1){if(!(o.value||h.value?.filepath===l.value&&!I)){o.value=!0,await At();try{const q=h.value;if(!q){o.value=!1;return}if(I||!l.value||q.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let X=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!gr);u.value&&(pr&&(X=typeof window.structuredClone<"u"?window.structuredClone(X):cP(X)),X.inlined=X.inlined.filter(ie=>!_.test(ie)),X.externalized=X.externalized.filter(ie=>!_.test(ie))),t.value=yxe(X,q.filepath),l.value=q.filepath}y("graph")}finally{await new Promise(q=>setTimeout(q,100)),o.value=!1}}}Y1(()=>[h.value,yn.value,u.value],([,I,q],X)=>{I==="graph"&&C(X&&q!==X[2])},{debounce:100,immediate:!0});const E=Se(()=>{const I=Xt.value?.file.projectName||"";return $e.colors.get(I)||Uu(Xt.value?.file.projectName)}),L=Se(()=>m_(E.value)),D=Se(()=>{const I=Fi.value;if(!I)return Xt.value?.name;const q=[];let X=ft.state.idMap.get(I);for(;X;)q.push(X.name),X=X.suite;return q.reverse().join(" > ")}),N=Se(()=>{const I=Fi.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(X=>({name:X,description:EP.value[X]?.description,bg:Uu(X,!0),border:Uu(X),text:"white"})):[]});return(I,q)=>{const X=ir("tooltip");return W(Xt)?(te(),ge("div",hSe,[Y("div",null,[Y("div",pSe,[Ne(Tk,{state:W(Xt).result?.state,mode:W(Xt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?st((te(),ge("div",gSe,null,512)),[[X,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),W(Xt)?.file.projectName?(te(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Pt({backgroundColor:E.value,color:L.value}),"cursor-default":""},Me(W(Xt).file.projectName),5)):Fe("",!0),Y("div",mSe,[Y("span",vSe,Me(D.value),1),(te(!0),ge(nt,null,xn(N.value,ie=>st((te(),ge("span",{key:ie.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Pt({backgroundColor:ie.bg,color:ie.text,border:`1px solid ${ie.border}`}),title:ie.description,"cursor-default":"",flex:"","items-center":""},[Qe(Me(ie.name),1)],12,ySe)),[[X,ie.description,void 0,{bottom:!0}]])),128))]),Y("div",bSe,[W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Xt)?.filepath,onClick:v},null,8,["disabled"])),[[X,"Open in editor",void 0,{bottom:!0}]]),W(gr)?(te(),We(hd,{key:1})):Fe("",!0)])]),Y("div",wSe,[Y("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=ie=>y(null))},[...q[5]||(q[5]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="graph"}]),onClick:q[1]||(q[1]=ie=>y("graph"))},[o.value?(te(),ge("span",xSe)):(te(),ge("span",SSe)),q[6]||(q[6]=Qe(" Module Graph ",-1))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="editor"}]),onClick:q[2]||(q[2]=ie=>y("editor"))},[q[7]||(q[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Me(n.value?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="console",op20:W(yn)!=="console"&&w.value===0}]),onClick:q[3]||(q[3]=ie=>y("console"))},[q[8]||(q[8]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Me(w.value)+") ",1)],2)])]),Y("div",_Se,[i.value?(te(),ge("div",{key:0,"flex-1":W(yn)==="graph"&&""},[st(Ne(t1e,{modelValue:u.value,"onUpdate:modelValue":q[4]||(q[4]=ie=>u.value=ie),graph:t.value,"data-testid":"graph","project-name":W(Xt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Co,W(yn)==="graph"&&!o.value]])],8,kSe)):Fe("",!0),W(yn)==="editor"?(te(),We(Oxe,{key:W(Xt).id,file:W(Xt),"data-testid":"editor",onDraft:$},null,8,["file"])):W(yn)==="console"?(te(),We(Nxe,{key:2,file:W(Xt),"data-testid":"console"},null,8,["file"])):!W(yn)&&!f.value&&W(Xt)?(te(),We(_1e,{key:3,file:W(Xt),"data-testid":"report"},null,8,["file"])):!W(yn)&&f.value?(te(),We(dSe,{key:4,test:f.value,"data-testid":"report"},null,8,["test"])):Fe("",!0)])])):Fe("",!0)}}}),TSe=""+new URL("../favicon.svg",import.meta.url).href;function CSe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Zu;function Xp(){Xp.init||(Xp.init=!0,Zu=CSe()!==-1)}var vd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Xp(),At(()=>{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",Zu&&this.$el.appendChild(e),e.data="about:blank",Zu||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&&(!Zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ESe=Ex();Tx("data-v-b329ee4c");const ASe={class:"resize-observer",tabindex:"-1"};Cx();const $Se=ESe((e,t,n,i,o,l)=>(te(),We("div",ASe)));vd.render=$Se;vd.__scopeId="data-v-b329ee4c";vd.__file="src/components/ResizeObserver.vue";function Qu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qu=function(t){return typeof t}:Qu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function NSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function LSe(e,t,n){return t&&MSe(e.prototype,t),e}function Nw(e){return OSe(e)||RSe(e)||PSe(e)||ISe()}function OSe(e){if(Array.isArray(e))return Jp(e)}function RSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function PSe(e,t){if(e){if(typeof e=="string")return Jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jp(e,t)}}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ISe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DSe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function FSe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===o)){var y=n.leading;typeof y=="function"&&(y=y(h,o)),(!i||h!==o)&&y&&e.apply(void 0,[h].concat(Nw(l))),o=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Nw(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function Pk(e,t){if(e===t)return!0;if(Qu(e)==="object"){for(var n in e)if(!Pk(e[n],t[n]))return!1;return!0}return!1}var zSe=(function(){function e(t,n,i){NSe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return LSe(e,[{key:"createObserver",value:function(n,i){var o=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=DSe(n),this.callback=function(f,h){o.options.callback(f,h),f&&o.options.once&&(o.frozen=!0,o.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=FSe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(o.callback){var g=h.isIntersecting&&h.intersectionRatio>=o.threshold;if(g===o.oldResult)return;o.oldResult=g,o.callback(g,h)}},this.options.intersection),At(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ik(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new zSe(e,i,n);e._vue_visibilityState=o}}function HSe(e,t,n){var i=t.value,o=t.oldValue;if(!Pk(i,o)){var l=e._vue_visibilityState;if(!i){Dk(e);return}l?l.createObserver(i,n):Ik(e,{value:i},n)}}function Dk(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var BSe={beforeMount:Ik,updated:HSe,unmounted:Dk},jSe={itemsLimit:1e3},WSe=/(auto|scroll)/;function Fk(e,t){return e.parentNode===null?t:Fk(e.parentNode,t.concat([e]))}var Jh=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},qSe=function(t){return Jh(t,"overflow")+Jh(t,"overflow-y")+Jh(t,"overflow-x")},USe=function(t){return WSe.test(qSe(t))};function Mw(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fk(e.parentNode,[]),n=0;n<t.length;n+=1)if(USe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}var VSe={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function GSe(){return this.items.length&&Zp(this.items[0])!=="object"}var Qp=!1;if(typeof window<"u"){Qp=!1;try{var KSe=Object.defineProperty({},"passive",{get:function(){Qp=!0}});window.addEventListener("test",null,KSe)}catch{}}let YSe=0;var vm={name:"RecycleScroller",components:{ResizeObserver:vd},directives:{ObserveVisibility:BSe},props:{...VSe,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,i=this.minItemSize;let o=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<o&&(o=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=o,e}return[]},simpleArray:GSe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,o=t.length;i<o;i++)n[t[i][e]]=i;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const l=Vf({id:YSe++,index:t,used:!0,key:i,type:o}),u=hg({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,$=this.itemIndexByKey;let _,C,E,L,D;if(!p)_=C=L=D=E=0;else if(this.$_prerender)_=L=0,C=D=Math.min(this.prerender,h.length),E=null;else{const U=this.getScroll();if(t){let O=U.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<l||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const K=this.buffer;U.start-=K,U.end+=K;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,U.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;U.end+=O}if(n===null){let O,k=0,S=p-1,R=~~(p/2),B;do B=R,O=g[R].accumulator,O<U.start?k=R:R<p-1&&g[R+1].accumulator>U.start&&(S=R),R=~~((k+S)/2);while(R!==B);for(R<0&&(R=0),_=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<U.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),L=_;L<p&&P+g[L].accumulator<U.start;L++);for(D=L;D<p&&P+g[D].accumulator<U.end;D++);}else{_=~~(U.start/n*i);const O=_%i;_-=O,C=Math.ceil(U.end/n*i),L=Math.max(0,Math.floor((U.start-P)/n*i)),D=Math.floor((U.end-P)/n*i),_<0&&(_=0),C>p&&(C=p),L<0&&(L=0),D>p&&(D=p),E=Math.ceil(p/i)*n}}C-_>jSe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let N;const I=_<=this.$_endIndex&&C>=this.$_startIndex;if(I)for(let U=0,K=w.length;U<K;U++)N=w[U],N.nr.used&&(e&&(N.nr.index=$[N.item[f]]),(N.nr.index==null||N.nr.index<_||N.nr.index>=C)&&this.unuseView(N));const q=I?null:new Map;let X,ie,J;for(let U=_;U<C;U++){X=h[U];const K=f?X[f]:X;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${f}')`);if(N=v.get(K),!n&&!g[U].size){N&&this.unuseView(N);continue}ie=X[u];let P=y.get(ie),O=!1;if(!N)I?P&&P.length?N=P.pop():N=this.addView(w,U,X,K,ie):(J=q.get(ie)||0,(!P||J>=P.length)&&(N=this.addView(w,U,X,K,ie),this.unuseView(N,!0),P=y.get(ie)),N=P[J],q.set(ie,J+1)),v.delete(N.nr.key),N.nr.used=!0,N.nr.index=U,N.nr.key=K,N.nr.type=ie,v.set(K,N),O=!0;else if(!N.nr.used&&(N.nr.used=!0,O=!0,P)){const k=P.indexOf(N);k!==-1&&P.splice(k,1)}N.item=X,O&&(U===h.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),n===null?(N.position=g[U-1].accumulator,N.offset=0):(N.position=Math.floor(U/i)*n,N.offset=U%i*o)}return this.$_startIndex=_,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",_,C,L,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Mw(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),l=n?o.height:o.width;let u=-(n?o.top:o.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Qp?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const l=Mw(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,o=e+u+p}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const XSe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},JSe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function ZSe(e,t,n,i,o,l){const u=ys("ResizeObserver"),f=ir("observe-visibility");return st((te(),ge("div",{class:ot(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(te(),ge("div",XSe,[Bt(e.$slots,"before")],512)):Fe("v-if",!0),(te(),We(sf(n.listTag),{ref:"wrapper",style:Pt({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:je(()=>[(te(!0),ge(nt,null,xn(o.pool,h=>(te(),We(sf(n.itemTag),ci({key:h.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===h.nr.key}]]},cA(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=h.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:je(()=>[Bt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Bt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ge("div",JSe,[Bt(e.$slots,"after")],512)):Fe("v-if",!0),Ne(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}vm.render=ZSe;vm.__file="src/components/RecycleScroller.vue";function QSe(e,t,n){const i=Se(()=>Mp.value?!1:!Ze.onlyTests),o=Se(()=>Hr.value===""),l=Ke(Hr.value),u=Se(()=>Fr.value==="default");yt(()=>Np.value,w=>{!w&&(Fr.value==="asc"||Fr.value==="desc")&&(Fr.value="default")}),Y1(()=>Hr.value,w=>{l.value=w?.trim()??""},{debounce:256});function f(w){Hr.value="",w&&e.value?.focus()}function h(w){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.slow=!1,Ze.onlyTests=!1,w&&e.value?.focus()}function p(w){ml.value=Bl,w&&t.value?.focus()}function g(w){Fr.value="default",w&&n.value?.focus()}function v(){h(!1),f(!0),p(!1),g(!1)}function y(w,$,_,C,E,L,D,N){Ml.value&&(Ht.value.search=w?.trim()??"",Ht.value.failed=$,Ht.value.success=_,Ht.value.skipped=C,Ht.value.slow=E,Ht.value.onlyTests=L,Ht.value.project=D,Ht.value.projectSort=N==="default"?void 0:N)}return yt(()=>[l.value,Ze.failed,Ze.success,Ze.skipped,Ze.slow,Ze.onlyTests,ml.value,Fr.value],([w,$,_,C,E,L,D,N])=>{y(w,$,_,C,E,L,D,N),$e.filterNodes()},{flush:"post"}),yt(()=>Kr.value.length,w=>{w&&(Ht.value.expandAll=void 0)},{flush:"post"}),{initialized:Ml,filter:Ze,search:Hr,disableFilter:i,isFiltered:y_,isFilteredByStatus:Mp,disableClearSearch:o,clearAll:v,clearSearch:f,clearFilter:h,filteredFiles:fd,testsTotal:bP,uiEntries:rr,searchMatcher:vo,enableProjects:Np,disableClearProjects:gP,currentProject:ml,currentProjectName:Gg,clearProject:p,projectSort:Fr,clearProjectSort:g,disableClearProjectSort:u}}const e_e=["disabled"],t_e={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},Ca=tt({__name:"FilterStatus",props:Xa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue");function n(){e.disabled||(t.value=!t.value)}return(i,o)=>(te(),ge("label",ci({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},i.$attrs,{onClick:Fu(n,["prevent"])}),[Y("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,e_e),[[b1,t.value]]),Y("span",t_e,Me(e.label),1)],16))}}),n_e=["open"],r_e=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(n,i)=>(te(),ge("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Bt(n.$slots,"summary",{open:t.value}),i[2]||(i[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Bt(n.$slots,"default")],40,n_e))}}),i_e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},o_e=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,n)=>(te(),ge("button",i_e,[Y("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),s_e=["aria-label","data-current"],l_e={key:1,"w-4":""},a_e={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},c_e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},u_e={"text-sm":"",truncate:"","font-light":""},f_e=["innerHTML"],d_e={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},h_e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},p_e={key:1},g_e=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>ft.state.idMap.get(e.taskId)),n=Se(()=>{if(pr)return!1;const C=t.value;return C&&Xg(C)});function i(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?$e.collapseNode(e.taskId):$e.expandNode(e.taskId)}async function o(C){e.onItemClick?.(C),$a.value&&(Ef.value=!0,await At()),e.type==="file"?await im([C.file]):await mme(C)}function l(C){return ft.rpc.updateSnapshot(C.file)}const u=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=Se(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Se(()=>pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>v_(e.name)),g=Se(()=>{const C=yP.value,E=p.value;return C?E.replace(C,L=>`<span class="highlight">${L}</span>`):E}),v=Se(()=>e.type!=="file"&&e.disableTaskLocation),y=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>v.value?"color-red5 dark:color-#f43f5e":null);function $(){const C=t.value;e.type==="file"?e.onItemClick?.(C):L_(C)}const _=Se(()=>m_(e.projectNameColor));return(C,E)=>{const L=ir("tooltip");return t.value?(te(),ge("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Pt(f.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:E[2]||(E[2]=D=>i())},[e.indent>0?(te(!0),ge(nt,{key:0},xn(u.value,D=>(te(),ge("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Fe("",!0),e.type==="file"||e.type==="suite"?(te(),ge("div",l_e,[Y("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Fe("",!0),Ne(Tk,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",a_e,[e.type==="file"&&e.typecheck?st((te(),ge("div",c_e,null,512)),[[L,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),Y("span",u_e,[e.type==="file"&&e.projectName?(te(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Pt({backgroundColor:e.projectNameColor,color:_.value})},Me(e.projectName),5)):Fe("",!0),Y("span",{class:ot(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:g.value},null,10,f_e)]),typeof e.duration=="number"?(te(),ge("span",{key:1,text:"xs",class:ot(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Me(e.duration>0?e.duration:"< 1")+"ms ",3)):Fe("",!0)]),Y("div",d_e,[!W(pr)&&n.value&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(o_e,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Fu(D=>l(t.value),["prevent","stop"]))},null,512)),[[L,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),Ne(W(wo),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:je(()=>[v.value?(te(),ge("div",h_e,[E[5]||(E[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[Qe(Me(y.value)+": this feature is not available, you have disabled ",1),E[3]||(E[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=Qe(" in your configuration file.",-1))]),E[6]||(E[6]=Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(te(),ge("div",p_e,Me(y.value),1))]),default:je(()=>[Ne(Tt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fu($,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:W(pt).api?.allowExec===!1,onClick:E[1]||(E[1]=Fu(D=>o(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[L,h.value,void 0,{bottom:!0}]])])],12,s_e)):Fe("",!0)}}}),m_e=Xi(g_e,[["__scopeId","data-v-7f38aded"]]),v_e={h:"full",flex:"~ col"},y_e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},b_e={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},w_e={class:"relative flex-1"},x_e=["value"],S_e=["value"],__e={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},k_e={class:"relative flex-1"},T_e={key:0,value:"asc",class:"text-base bg-base"},C_e={key:1,value:"desc",class:"text-base bg-base"},E_e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},A_e=["op"],$_e={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},N_e={"min-w-full":"",flex:"~ gap-2 items-center"},M_e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},L_e={"text-red-700":"","dark:text-red-500":""},O_e={"text-yellow-700":"","dark:text-yellow-500":""},R_e={"text-green-700":"","dark:text-green-500":""},P_e={class:"text-purple-700 dark:text-purple-400"},I_e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},D_e={key:0,"text-red":"","text-center":""},F_e={key:1,op30:""},z_e=["disabled"],H_e=["disabled"],B_e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},j_e=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=Se(()=>pt.value.includeTaskLocation),o=Se(()=>{const O=pt.value.slowTestThreshold;return typeof O=="number"?` (>${O}ms)`:""}),l=Ke(),u=Ke(),f=Ke(),{initialized:h,filter:p,search:g,disableFilter:v,isFiltered:y,isFilteredByStatus:w,disableClearSearch:$,clearAll:_,clearSearch:C,clearFilter:E,filteredFiles:L,testsTotal:D,uiEntries:N,enableProjects:I,disableClearProjects:q,currentProject:X,currentProjectName:ie,clearProject:J,clearProjectSort:U,disableClearProjectSort:K,searchMatcher:P}=QSe(l,u,f);return(O,k)=>{const S=ir("tooltip");return te(),ge("div",v_e,[Y("div",null,[Y("div",y_e,[Bt(O.$slots,"header",{filteredFiles:W(y)||W(w)?W(L):void 0})]),W(I)?(te(),ge("div",b_e,[k[19]||(k[19]=Y("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),k[20]||(k[20]=Y("label",{for:"project-select","text-sm":""}," Projects ",-1)),Y("div",w_e,[st(Y("select",{id:"project-select",ref_key:"selectProjectRef",ref:u,"onUpdate:modelValue":k[0]||(k[0]=R=>Lt(X)?X.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[Y("option",{value:W(Bl),class:"text-base bg-base"}," All Projects ",8,x_e),(te(!0),ge(nt,null,xn(W(rm),R=>(te(),ge("option",{key:R,value:R,class:"text-base bg-base"},Me(R),9,S_e))),128))],512),[[r0,W(X)]]),k[18]||(k[18]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(q),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:k[1]||(k[1]=R=>W(J)(!0))},null,8,["disabled"]),[[S,"Clear project filter",void 0,{bottom:!0}]])])):Fe("",!0),Y("div",__e,[k[25]||(k[25]=Y("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),k[26]||(k[26]=Y("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),Y("div",k_e,[st(Y("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":k[2]||(k[2]=R=>Lt(Fr)?Fr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[k[21]||(k[21]=Y("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),k[22]||(k[22]=Y("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),k[23]||(k[23]=Y("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),W(I)?(te(),ge("option",T_e," Project A-Z ")):Fe("",!0),W(I)?(te(),ge("option",C_e," Project Z-A ")):Fe("",!0)],512),[[r0,W(Fr)]]),k[24]||(k[24]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:k[3]||(k[3]=R=>W(U)(!0))},null,8,["disabled"]),[[S,"Reset sort",void 0,{bottom:!0}]])]),Y("div",E_e,[k[27]||(k[27]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(Y("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":k[4]||(k[4]=R=>Lt(g)?g.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(g).length?"100":"50",onKeydown:[k[5]||(k[5]=gp(R=>W(C)(!1),["esc"])),k[6]||(k[6]=gp(R=>n("run",W(y)||W(w)?W(L):void 0),["enter"]))]},null,40,A_e),[[y1,W(g)]]),st(Ne(Tt,{disabled:W($),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:k[7]||(k[7]=R=>W(C)(!0))},null,8,["disabled"]),[[S,"Clear search",void 0,{bottom:!0}]])]),Y("div",$_e,[Y("div",N_e,[k[28]||(k[28]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),k[29]||(k[29]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ne(Tt,{disabled:W(v),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:k[8]||(k[8]=R=>W(E)(!1))},null,8,["disabled"]),[[S,"Clear Filter",void 0,{bottom:!0}]])]),Ne(Ca,{modelValue:W(p).failed,"onUpdate:modelValue":k[9]||(k[9]=R=>W(p).failed=R),label:"Fail"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).success,"onUpdate:modelValue":k[10]||(k[10]=R=>W(p).success=R),label:"Pass"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).skipped,"onUpdate:modelValue":k[11]||(k[11]=R=>W(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).onlyTests,"onUpdate:modelValue":k[12]||(k[12]=R=>W(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).slow,"onUpdate:modelValue":k[13]||(k[13]=R=>W(p).slow=R),label:`Slow${o.value}`},null,8,["modelValue","label"])])]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:k[17]||(k[17]=(...R)=>W(T0)&&W(T0)(...R))},[Ne(r_e,null,aA({default:je(()=>[(W(y)||W(w)||W(ie))&&W(N).length===0?(te(),ge(nt,{key:0},[W(h)?(te(),ge("div",I_e,[W(P).error?(te(),ge("div",D_e,Me(W(P).error),1)):(te(),ge("div",F_e," No matched test ")),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W($)?null:"hover:op100"),disabled:W($),onClickPassive:k[14]||(k[14]=R=>W(C)(!0))}," Clear Search ",42,z_e),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(v)?null:"hover:op100"),disabled:W(v),onClickPassive:k[15]||(k[15]=R=>W(E)(!0))}," Clear Filter ",42,H_e),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:k[16]||(k[16]=(...R)=>W(_)&&W(_)(...R))}," Clear All ",32)])):(te(),ge("div",B_e,[...k[32]||(k[32]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(vm),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(N),buffer:100},{default:je(({item:R})=>[Ne(m_e,{class:ot(["h-28px m-0 p-0",W(Fi)===R.id||!W(Fi)&&W(Io)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:W(Io)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!i.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(h)?{name:"summary",fn:je(()=>[Y("div",M_e,[Y("span",L_e," FAIL ("+Me(W(D).failed)+") ",1),k[30]||(k[30]=Y("span",null,"/",-1)),Y("span",O_e," RUNNING ("+Me(W(D).running)+") ",1),Y("span",R_e," PASS ("+Me(W(D).success)+") ",1),k[31]||(k[31]=Y("span",null,"/",-1)),Y("span",P_e," SKIP ("+Me(W(p).onlyTests?W(D).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),W_e={class:"flex text-lg"},q_e=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const n=Se(()=>Po.value?"light":"dark");async function i(f){pt.value.api?.allowExec!==!1&&($a.value&&(Ef.value=!0,await At(),Do.value&&(Af(!0),await At())),f?.length?await im(f):await pme())}function o(){$e.collapseAllNodes()}function l(){$e.expandAllNodes()}function u(f){return pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":f?f.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(f,h)=>{const p=ir("tooltip");return te(),We(j_e,{border:"r base","on-item-click":W(Fge),nested:!0,onRun:i},{header:je(({filteredFiles:g})=>[h[8]||(h[8]=Y("img",{"w-6":"","h-6":"",src:TSe,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",W_e,[st(Ne(Tt,{title:"Collapse tests",disabled:!W(Ml),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>o())},null,8,["disabled"]),[[Co,!W(Eb)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Ne(Tt,{disabled:!W(Ml),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>l())},null,8,["disabled"]),[[Co,W(Eb)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(Af)(!0))},null,512),[[Co,W(Pp)&&!W($a)||!W(vl)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Pp)&&!W($a)?(te(),We(W(wo),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:je(()=>[...h[6]||(h[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:je(()=>[h[7]||(h[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Fe("",!0),W($a)?st((te(),We(Tt,{key:1,disabled:W(Ef),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(zge)())},null,8,["disabled"])),[[Co,!W(Do)],[p,"Coverage",void 0,{bottom:!0}]]):Fe("",!0),W($e).summary.failedSnapshot&&!W(pr)&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(Tt,{key:2,icon:"i-carbon:result-old",disabled:!W($e).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W($e).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),W(pr)?Fe("",!0):st((te(),We(Tt,{key:3,disabled:g?.length===0||!W(pt).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>i(g)},null,8,["disabled","onClick"])),[[p,u(g),void 0,{bottom:!0}]]),st(Ne(Tt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W(fP)())},null,512),[[p,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),U_e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},V_e=tt({__name:"ProgressBar",setup(e){const{width:t}=rS(),n=Se(()=>[$e.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ol.value&&"in-progress"].filter(Boolean).join(" ")),i=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesSuccess/f:0}),o=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesFailed/f:0}),l=Se(()=>$e.summary.files-$e.summary.filesFailed-$e.summary.filesSuccess),u=Se(()=>{const f=$e.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(te(),ge("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(n.value)},[Y("div",U_e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:ot(n.value),style:Pt(`width: ${o.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${o.value}px; width: ${i.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${i.value+o.value}px; width: ${u.value}px;`)},"   ",6)])],2))}}),G_e=Xi(V_e,[["__scopeId","data-v-d5dc96ee"]]),K_e={"h-screen":"","w-screen":"",overflow:"hidden"},Y_e={key:1,flex:"~ col","h-full":""},X_e={"h-full":"","overflow-hidden":""},J_e=tt({__name:"index",setup(e){const t=Dge(),n=yu(({panes:g})=>{h(),f(g)},0),i=yu(({panes:g})=>{g.forEach((v,y)=>{yl.value[y]=v.size}),u(g),p()},0),o=yu(({panes:g})=>{g.forEach((v,y)=>{ms.value[y]=v.size}),f(g),p()},0),l=yu(({panes:g})=>{u(g),h()},0);function u(g){fn.navigation=g[0].size,g[1]&&(fn.details.size=g[1].size)}function f(g){fn.details.browser=g[0].size,g[1]&&(fn.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ge(nt,null,[Ne(G_e),Y("div",K_e,[Ne(W(M0),{class:"pt-4px",onResized:W(i),onResize:W(l)},{default:je(()=>[Ne(W(xu),{size:W(yl)[0]},{default:je(()=>[Ne(q_e)]),_:1},8,["size"]),Ne(W(xu),{size:W(yl)[1]},{default:je(()=>[W(gr)?(te(),ge("div",Y_e,[Ne(W(M0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(Tn)==="bottom",class:ot(W(Tn)==="bottom"&&!W(Bi)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(n),onResized:W(o)},{default:je(()=>[Ne(W(xu),{size:W(ms)[0],"min-size":"10"},{default:je(()=>[v[0]||(Tl(-1,!0),(v[0]=Ne(Eme)).cacheIndex=0,Tl(1),v[0])]),_:1},8,["size"]),W(Bi)?(te(),We(W(xu),{key:0,size:W(ms)[1],"min-size":"10"},{default:je(()=>[Y("div",X_e,[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))])]),_:1},8,["size"])):Fe("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(Tn)==="bottom"&&!W(Bi)?(te(),We($me,{key:0})):Fe("",!0)])):(te(),We(i$,{key:"ui-detail"},{default:je(()=>[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Lme)],64))}}),Z_e=[{name:"index",path:"/",component:J_e,props:!0}];/*!
83
83
  * vue-router v5.0.3
84
84
  * (c) 2026 Eduardo San Martin Morote
85
85
  * @license MIT
86
- */const il=typeof document<"u";function zk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Z_e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zk(e.default)}const _t=Object.assign;function Zh(e,t){const n={};for(const i in t){const o=t[i];n[i]=Yr(o)?o.map(e):e(o)}return n}const Ua=()=>{},Yr=Array.isArray;function Lw(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}let Ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Hk=Symbol("");Ut.MATCHER_NOT_FOUND+"",Ut.NAVIGATION_GUARD_REDIRECT+"",Ut.NAVIGATION_ABORTED+"",Ut.NAVIGATION_CANCELLED+"",Ut.NAVIGATION_DUPLICATED+"";function Il(e,t){return _t(new Error,{type:e,[Hk]:!0},t)}function $i(e,t){return e instanceof Error&&Hk in e&&(t==null||!!(e.type&t))}const Q_e=["params","query","hash"];function eke(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Q_e)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const tke=Symbol(""),Ow=Symbol(""),ym=Symbol(""),Bk=Symbol(""),eg=Symbol("");/*!
86
+ */const il=typeof document<"u";function zk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Q_e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zk(e.default)}const _t=Object.assign;function Zh(e,t){const n={};for(const i in t){const o=t[i];n[i]=Yr(o)?o.map(e):e(o)}return n}const Ua=()=>{},Yr=Array.isArray;function Lw(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}let Ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Hk=Symbol("");Ut.MATCHER_NOT_FOUND+"",Ut.NAVIGATION_GUARD_REDIRECT+"",Ut.NAVIGATION_ABORTED+"",Ut.NAVIGATION_CANCELLED+"",Ut.NAVIGATION_DUPLICATED+"";function Il(e,t){return _t(new Error,{type:e,[Hk]:!0},t)}function $i(e,t){return e instanceof Error&&Hk in e&&(t==null||!!(e.type&t))}const eke=["params","query","hash"];function tke(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of eke)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const nke=Symbol(""),Ow=Symbol(""),ym=Symbol(""),Bk=Symbol(""),eg=Symbol("");/*!
87
87
  * vue-router v5.0.3
88
88
  * (c) 2026 Eduardo San Martin Morote
89
89
  * @license MIT
90
- */const jk=/#/g,nke=/&/g,rke=/\//g,ike=/=/g,oke=/\?/g,Wk=/\+/g,ske=/%5B/g,lke=/%5D/g,qk=/%5E/g,ake=/%60/g,Uk=/%7B/g,cke=/%7C/g,Vk=/%7D/g,uke=/%20/g;function bm(e){return e==null?"":encodeURI(""+e).replace(cke,"|").replace(ske,"[").replace(lke,"]")}function fke(e){return bm(e).replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function tg(e){return bm(e).replace(Wk,"%2B").replace(uke,"+").replace(jk,"%23").replace(nke,"%26").replace(ake,"`").replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function dke(e){return tg(e).replace(ike,"%3D")}function hke(e){return bm(e).replace(jk,"%23").replace(oke,"%3F")}function pke(e){return hke(e).replace(rke,"%2F")}function yc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const gke=/\/$/,mke=e=>e.replace(gke,"");function Qh(e,t,n="/"){let i,o={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return h=f>=0&&h>f?-1:h,h>=0&&(i=t.slice(0,h),l=t.slice(h,f>0?f:t.length),o=e(l.slice(1))),f>=0&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=wke(i??t,n),{fullPath:i+l+u,path:i,query:o,hash:yc(u)}}function vke(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rw(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yke(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Dl(t.matched[i],n.matched[o])&&Gk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bke(e[n],t[n]))return!1;return!0}function bke(e,t){return Yr(e)?Pw(e,t):Yr(t)?Pw(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Pw(e,t){return Yr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function wke(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ng=(function(e){return e.pop="pop",e.push="push",e})({}),ep=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function xke(e){if(!e)if(il){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mke(e)}const Ske=/^[^#]+#/;function _ke(e,t){return e.replace(Ske,"#")+t}function kke(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yd=()=>({left:window.scrollX,top:window.scrollY});function Tke(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=kke(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Iw(e,t){return(history.state?history.state.position-t:-1)+e}const rg=new Map;function Cke(e,t){rg.set(e,t)}function Eke(e){const t=rg.get(e);return rg.delete(e),t}function Ake(e){return typeof e=="string"||e&&typeof e=="object"}function Kk(e){return typeof e=="string"||typeof e=="symbol"}function $ke(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace(Wk," "),l=o.indexOf("="),u=yc(l<0?o:o.slice(0,l)),f=l<0?null:yc(o.slice(l+1));if(u in t){let h=t[u];Yr(h)||(h=t[u]=[h]),h.push(f)}else t[u]=f}return t}function Dw(e){let t="";for(let n in e){const i=e[n];if(n=dke(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Yr(i)?i.map(o=>o&&tg(o)):[i&&tg(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nke(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}function Ea(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ko(e,t,n,i,o,l=u=>u()){const u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Il(Ut.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?h(y):Ake(y)?h(Il(Ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[o]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[o],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function tp(e,t,n,i,o=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(zk(h)){const p=(h.__vccOpts||h)[t];p&&l.push(ko(p,n,i,u,f,o))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=Z_e(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const y=(v.__vccOpts||v)[t];return y&&ko(y,n,i,u,f,o)()}))}}return l}function Mke(e,t){const n=[],i=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>Dl(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>Dl(p,h))||o.push(h))}return[n,i,o]}/*!
90
+ */const jk=/#/g,rke=/&/g,ike=/\//g,oke=/=/g,ske=/\?/g,Wk=/\+/g,lke=/%5B/g,ake=/%5D/g,qk=/%5E/g,cke=/%60/g,Uk=/%7B/g,uke=/%7C/g,Vk=/%7D/g,fke=/%20/g;function bm(e){return e==null?"":encodeURI(""+e).replace(uke,"|").replace(lke,"[").replace(ake,"]")}function dke(e){return bm(e).replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function tg(e){return bm(e).replace(Wk,"%2B").replace(fke,"+").replace(jk,"%23").replace(rke,"%26").replace(cke,"`").replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function hke(e){return tg(e).replace(oke,"%3D")}function pke(e){return bm(e).replace(jk,"%23").replace(ske,"%3F")}function gke(e){return pke(e).replace(ike,"%2F")}function yc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const mke=/\/$/,vke=e=>e.replace(mke,"");function Qh(e,t,n="/"){let i,o={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return h=f>=0&&h>f?-1:h,h>=0&&(i=t.slice(0,h),l=t.slice(h,f>0?f:t.length),o=e(l.slice(1))),f>=0&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=xke(i??t,n),{fullPath:i+l+u,path:i,query:o,hash:yc(u)}}function yke(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rw(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bke(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Dl(t.matched[i],n.matched[o])&&Gk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!wke(e[n],t[n]))return!1;return!0}function wke(e,t){return Yr(e)?Pw(e,t):Yr(t)?Pw(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Pw(e,t){return Yr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function xke(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ng=(function(e){return e.pop="pop",e.push="push",e})({}),ep=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Ske(e){if(!e)if(il){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vke(e)}const _ke=/^[^#]+#/;function kke(e,t){return e.replace(_ke,"#")+t}function Tke(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yd=()=>({left:window.scrollX,top:window.scrollY});function Cke(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Tke(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Iw(e,t){return(history.state?history.state.position-t:-1)+e}const rg=new Map;function Eke(e,t){rg.set(e,t)}function Ake(e){const t=rg.get(e);return rg.delete(e),t}function $ke(e){return typeof e=="string"||e&&typeof e=="object"}function Kk(e){return typeof e=="string"||typeof e=="symbol"}function Nke(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace(Wk," "),l=o.indexOf("="),u=yc(l<0?o:o.slice(0,l)),f=l<0?null:yc(o.slice(l+1));if(u in t){let h=t[u];Yr(h)||(h=t[u]=[h]),h.push(f)}else t[u]=f}return t}function Dw(e){let t="";for(let n in e){const i=e[n];if(n=hke(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Yr(i)?i.map(o=>o&&tg(o)):[i&&tg(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Mke(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}function Ea(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ko(e,t,n,i,o,l=u=>u()){const u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Il(Ut.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?h(y):$ke(y)?h(Il(Ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[o]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[o],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function tp(e,t,n,i,o=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(zk(h)){const p=(h.__vccOpts||h)[t];p&&l.push(ko(p,n,i,u,f,o))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=Q_e(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const y=(v.__vccOpts||v)[t];return y&&ko(y,n,i,u,f,o)()}))}}return l}function Lke(e,t){const n=[],i=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>Dl(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>Dl(p,h))||o.push(h))}return[n,i,o]}/*!
91
91
  * vue-router v5.0.3
92
92
  * (c) 2026 Eduardo San Martin Morote
93
93
  * @license MIT
94
- */let Lke=()=>location.protocol+"//"+location.host;function Yk(e,t){const{pathname:n,search:i,hash:o}=t,l=e.indexOf("#");if(l>-1){let u=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(u);return f[0]!=="/"&&(f="/"+f),Rw(f,"")}return Rw(n,e)+i+o}function Oke(e,t,n,i){let o=[],l=[],u=null;const f=({state:y})=>{const w=Yk(e,location),$=n.value,_=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===$){u=null;return}C=_?y.position-_.position:0}else i(w);o.forEach(E=>{E(n.value,$,{delta:C,type:ng.pop,direction:C?C>0?ep.forward:ep.back:ep.unknown})})};function h(){u=n.value}function p(y){o.push(y);const w=()=>{const $=o.indexOf(y);$>-1&&o.splice($,1)};return l.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(_t({},y.state,{scroll:yd()}),"")}}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",f),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function Fw(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?yd():null}}function Rke(e){const{history:t,location:n}=window,i={value:Yk(e,n)},o={value:t.state};o.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Lke()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),o.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){l(h,_t({},t.state,Fw(o.value.back,h,o.value.forward,!0),p,{position:o.value.position}),!0),i.value=h}function f(h,p){const g=_t({},o.value,t.state,{forward:h,scroll:yd()});l(g.current,g,!0),l(h,_t({},Fw(i.value,h,null),{position:g.position+1},p),!1),i.value=h}return{location:i,state:o,push:f,replace:u}}function Pke(e){e=xke(e);const t=Rke(e),n=Oke(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const o=_t({location:"",base:e,go:i,createHref:_ke.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Ike(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Pke(e)}let ds=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var an=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(an||{});const Dke={type:ds.Static,value:""},Fke=/[a-zA-Z0-9_]/;function zke(e){if(!e)return[[]];if(e==="/")return[[Dke]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=an.Static,i=n;const o=[];let l;function u(){l&&o.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===an.Static?l.push({type:ds.Static,value:p}):n===an.Param||n===an.ParamRegExp||n===an.ParamRegExpEnd?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:ds.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==an.ParamRegExp){i=n,n=an.EscapeNext;continue}switch(n){case an.Static:h==="/"?(p&&v(),u()):h===":"?(v(),n=an.Param):y();break;case an.EscapeNext:y(),n=i;break;case an.Param:h==="("?n=an.ParamRegExp:Fke.test(h)?y():(v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case an.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=an.ParamRegExpEnd:g+=h;break;case an.ParamRegExpEnd:v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===an.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),o}const zw="[^/]+?",Hke={sensitive:!1,strict:!1,start:!0,end:!0};var zn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(zn||{});const Bke=/[.+*?^${}()[\]/\\]/g;function jke(e,t){const n=_t({},Hke,t),i=[];let o=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[zn.Root];n.strict&&!p.length&&(o+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=zn.Segment+(n.sensitive?zn.BonusCaseSensitive:0);if(y.type===ds.Static)v||(o+="/"),o+=y.value.replace(Bke,"\\$&"),w+=zn.Static;else if(y.type===ds.Param){const{value:$,repeatable:_,optional:C,regexp:E}=y;l.push({name:$,repeatable:_,optional:C});const L=E||zw;if(L!==zw){w+=zn.BonusCustomRegExp;try{new RegExp(`(${L})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${$}" (${L}): `+N.message)}}let D=_?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;v||(D=C&&p.length<2?`(?:/${D})`:"/"+D),C&&(D+="?"),o+=D,w+=zn.Dynamic,C&&(w+=zn.BonusOptional),_&&(w+=zn.BonusRepeatable),L===".*"&&(w+=zn.BonusWildcard)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=zn.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const u=new RegExp(o,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",$=l[y-1];v[$.name]=w&&$.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===ds.Static)g+=w.value;else if(w.type===ds.Param){const{value:$,repeatable:_,optional:C}=w,E=$ in p?p[$]:"";if(Yr(E)&&!_)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const L=Yr(E)?E.join("/"):E;if(!L)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${$}"`);g+=L}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function Wke(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===zn.Static+zn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===zn.Static+zn.Segment?1:-1:0}function Xk(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const l=Wke(i[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-i.length)===1){if(Hw(i))return 1;if(Hw(o))return-1}return o.length-i.length}function Hw(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qke={strict:!1,end:!0,sensitive:!1};function Uke(e,t,n){const i=jke(zke(e.path),n),o=_t(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Vke(e,t){const n=[],i=new Map;t=Lw(qke,t);function o(v){return i.get(v)}function l(v,y,w){const $=!w,_=jw(v);_.aliasOf=w&&w.record;const C=Lw(t,v),E=[_];if("alias"in v){const N=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of N)E.push(jw(_t({},_,{components:w?w.record.components:_.components,path:I,aliasOf:w?w.record:_})))}let L,D;for(const N of E){const{path:I}=N;if(y&&I[0]!=="/"){const q=y.record.path,X=q[q.length-1]==="/"?"":"/";N.path=y.record.path+(I&&X+I)}if(L=Uke(N,y,C),w?w.alias.push(L):(D=D||L,D!==L&&D.alias.push(L),$&&v.name&&!Ww(L)&&u(v.name)),Jk(L)&&h(L),_.children){const q=_.children;for(let X=0;X<q.length;X++)l(q[X],L,w&&w.children[X])}w=w||L}return D?()=>{u(D)}:Ua}function u(v){if(Kk(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Yke(v,n);n.splice(y,0,v),v.record.name&&!Ww(v)&&i.set(v.record.name,v)}function p(v,y){let w,$={},_,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v});C=w.record.name,$=_t(Bw(y.params,w.keys.filter(D=>!D.optional).concat(w.parent?w.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Bw(v.params,w.keys.map(D=>D.name))),_=w.stringify($)}else if(v.path!=null)_=v.path,w=n.find(D=>D.re.test(_)),w&&($=w.parse(_),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(D=>D.re.test(y.path)),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v,currentLocation:y});C=w.record.name,$=_t({},y.params,v.params),_=w.stringify($)}const E=[];let L=w;for(;L;)E.unshift(L.record),L=L.parent;return{name:C,path:_,params:$,matched:E,meta:Kke(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:o}}function Bw(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function jw(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gke(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Gke(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ww(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kke(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function Yke(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;Xk(e,t[l])<0?i=l:n=l+1}const o=Xke(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function Xke(e){let t=e;for(;t=t.parent;)if(Jk(t)&&Xk(e,t)===0)return t}function Jk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qw(e){const t=bn(ym),n=bn(Bk),i=Se(()=>{const h=W(e.to);return t.resolve(h)}),o=Se(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(Dl.bind(null,g));if(y>-1)return y;const w=Uw(h[p-2]);return p>1&&Uw(g)===w&&v[v.length-1].path!==w?v.findIndex(Dl.bind(null,h[p-2])):y}),l=Se(()=>o.value>-1&&tTe(n.params,i.value.params)),u=Se(()=>o.value>-1&&o.value===n.matched.length-1&&Gk(n.params,i.value.params));function f(h={}){if(eTe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Ua);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:Se(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function Jke(e){return e.length===1?e[0]:e}const Zke=tt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qw,setup(e,{slots:t}){const n=dr(qw(e)),{options:i}=bn(ym),o=Se(()=>({[Vw(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Vw(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Jke(t.default(n));return e.custom?l:Tc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),Qke=Zke;function eTe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function tTe(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Yr(o)||o.length!==i.length||i.some((l,u)=>l.valueOf()!==o[u].valueOf()))return!1}return!0}function Uw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vw=(e,t,n)=>e??t??n,nTe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=bn(eg),o=Se(()=>e.route||i.value),l=bn(Ow,0),u=Se(()=>{let p=W(l);const{matched:g}=o.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=Se(()=>o.value.matched[u.value]);_r(Ow,Se(()=>u.value+1)),_r(tke,f),_r(eg,o);const h=Ke();return yt(()=>[h.value,f.value,e.name],([p,g,v],[y,w,$])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!Dl(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Gw(n.default,{Component:y,route:p});const w=v.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=Tc(y,_t({},$,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Gw(n.default,{Component:C,route:p})||C}}});function Gw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const rTe=nTe;function iTe(e){const t=Vke(e.routes,e),n=e.parseQuery||$ke,i=e.stringifyQuery||Dw,o=e.history,l=Ea(),u=Ea(),f=Ea(),h=Vt(ho);let p=ho;il&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zh.bind(null,z=>""+z),v=Zh.bind(null,pke),y=Zh.bind(null,yc);function w(z,Z){let re,le;return Kk(z)?(re=t.getRecordMatcher(z),le=Z):le=z,t.addRoute(le,re)}function $(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function _(){return t.getRoutes().map(z=>z.record)}function C(z){return!!t.getRecordMatcher(z)}function E(z,Z){if(Z=_t({},Z||h.value),typeof z=="string"){const ee=Qh(n,z,Z.path),de=t.resolve({path:ee.path},Z),he=o.createHref(ee.fullPath);return _t(ee,de,{params:y(de.params),hash:yc(ee.hash),redirectedFrom:void 0,href:he})}let re;if(z.path!=null)re=_t({},z,{path:Qh(n,z.path,Z.path).path});else{const ee=_t({},z.params);for(const de in ee)ee[de]==null&&delete ee[de];re=_t({},z,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ce=z.hash||"";le.params=g(y(le.params));const F=vke(i,_t({},z,{hash:fke(ce),path:le.path})),j=o.createHref(F);return _t({fullPath:F,hash:ce,query:i===Dw?Nke(z.query):z.query||{}},le,{redirectedFrom:void 0,href:j})}function L(z){return typeof z=="string"?Qh(n,z,h.value.path):_t({},z)}function D(z,Z){if(p!==z)return Il(Ut.NAVIGATION_CANCELLED,{from:Z,to:z})}function N(z){return X(z)}function I(z){return N(_t(L(z),{replace:!0}))}function q(z,Z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ce=typeof le=="function"?le(z,Z):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=L(ce):{path:ce},ce.params={}),_t({query:z.query,hash:z.hash,params:ce.path!=null?{}:z.params},ce)}}function X(z,Z){const re=p=E(z),le=h.value,ce=z.state,F=z.force,j=z.replace===!0,ee=q(re,le);if(ee)return X(_t(L(ee),{state:typeof ee=="object"?_t({},ce,ee.state):ce,force:F,replace:j}),Z||re);const de=re;de.redirectedFrom=Z;let he;return!F&&yke(i,le,re)&&(he=Il(Ut.NAVIGATION_DUPLICATED,{to:de,from:le}),Be(le,le,!0,!1)),(he?Promise.resolve(he):U(de,le)).catch(me=>$i(me)?$i(me,Ut.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,de,le)).then(me=>{if(me){if($i(me,Ut.NAVIGATION_GUARD_REDIRECT))return X(_t({replace:j},L(me.to),{state:typeof me.to=="object"?_t({},ce,me.to.state):ce,force:F}),Z||de)}else me=P(de,le,!0,j,ce);return K(de,le,me),me})}function ie(z,Z){const re=D(z,Z);return re?Promise.reject(re):Promise.resolve()}function J(z){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function U(z,Z){let re;const[le,ce,F]=Mke(z,Z);re=tp(le.reverse(),"beforeRouteLeave",z,Z);for(const ee of le)ee.leaveGuards.forEach(de=>{re.push(ko(de,z,Z))});const j=ie.bind(null,z,Z);return re.push(j),Re(re).then(()=>{re=[];for(const ee of l.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).then(()=>{re=tp(ce,"beforeRouteUpdate",z,Z);for(const ee of ce)ee.updateGuards.forEach(de=>{re.push(ko(de,z,Z))});return re.push(j),Re(re)}).then(()=>{re=[];for(const ee of F)if(ee.beforeEnter)if(Yr(ee.beforeEnter))for(const de of ee.beforeEnter)re.push(ko(de,z,Z));else re.push(ko(ee.beforeEnter,z,Z));return re.push(j),Re(re)}).then(()=>(z.matched.forEach(ee=>ee.enterCallbacks={}),re=tp(F,"beforeRouteEnter",z,Z,J),re.push(j),Re(re))).then(()=>{re=[];for(const ee of u.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).catch(ee=>$i(ee,Ut.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(z,Z,re){f.list().forEach(le=>J(()=>le(z,Z,re)))}function P(z,Z,re,le,ce){const F=D(z,Z);if(F)return F;const j=Z===ho,ee=il?history.state:{};re&&(le||j?o.replace(z.fullPath,_t({scroll:j&&ee&&ee.scroll},ce)):o.push(z.fullPath,ce)),h.value=z,Be(z,Z,re,j),_e()}let O;function k(){O||(O=o.listen((z,Z,re)=>{if(!He.listening)return;const le=E(z),ce=q(le,He.currentRoute.value);if(ce){X(_t(ce,{replace:!0,force:!0}),le).catch(Ua);return}p=le;const F=h.value;il&&Cke(Iw(F.fullPath,re.delta),yd()),U(le,F).catch(j=>$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_CANCELLED)?j:$i(j,Ut.NAVIGATION_GUARD_REDIRECT)?(X(_t(L(j.to),{force:!0}),le).then(ee=>{$i(ee,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===ng.pop&&o.go(-1,!1)}).catch(Ua),Promise.reject()):(re.delta&&o.go(-re.delta,!1),ae(j,le,F))).then(j=>{j=j||P(le,F,!1),j&&(re.delta&&!$i(j,Ut.NAVIGATION_CANCELLED)?o.go(-re.delta,!1):re.type===ng.pop&&$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),K(le,F,j)}).catch(Ua)}))}let S=Ea(),R=Ea(),B;function ae(z,Z,re){_e(z);const le=R.list();return le.length?le.forEach(ce=>ce(z,Z,re)):console.error(z),Promise.reject(z)}function ve(){return B&&h.value!==ho?Promise.resolve():new Promise((z,Z)=>{S.add([z,Z])})}function _e(z){return B||(B=!z,k(),S.list().forEach(([Z,re])=>z?re(z):Z()),S.reset()),z}function Be(z,Z,re,le){const{scrollBehavior:ce}=e;if(!il||!ce)return Promise.resolve();const F=!re&&Eke(Iw(z.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return At().then(()=>ce(z,Z,F)).then(j=>j&&Tke(j)).catch(j=>ae(j,z,Z))}const Ee=z=>o.go(z);let Ge;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:_,resolve:E,options:e,push:N,replace:I,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ve,install(z){z.component("RouterLink",Qke),z.component("RouterView",rTe),z.config.globalProperties.$router=He,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),il&&!Ge&&h.value===ho&&(Ge=!0,N(o.location).catch(le=>{}));const Z={};for(const le in ho)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});z.provide(ym,He),z.provide(Bk,hg(Z)),z.provide(eg,h);const re=z.unmount;Ue.add(z),z.unmount=function(){Ue.delete(z),Ue.size<1&&(p=ho,O&&O(),O=null,h.value=ho,Ge=!1,B=!1),re()}}};function Re(z){return z.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const oTe={tooltip:RN};j1.options.instantMove=!0;j1.options.distance=10;function sTe(){return iTe({history:Ike(),routes:J_e})}const lTe=[sTe],wm=x1(O$);lTe.forEach(e=>{wm.use(e())});Object.entries(oTe).forEach(([e,t])=>{wm.directive(e,t)});wm.mount("#app");
94
+ */let Oke=()=>location.protocol+"//"+location.host;function Yk(e,t){const{pathname:n,search:i,hash:o}=t,l=e.indexOf("#");if(l>-1){let u=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(u);return f[0]!=="/"&&(f="/"+f),Rw(f,"")}return Rw(n,e)+i+o}function Rke(e,t,n,i){let o=[],l=[],u=null;const f=({state:y})=>{const w=Yk(e,location),$=n.value,_=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===$){u=null;return}C=_?y.position-_.position:0}else i(w);o.forEach(E=>{E(n.value,$,{delta:C,type:ng.pop,direction:C?C>0?ep.forward:ep.back:ep.unknown})})};function h(){u=n.value}function p(y){o.push(y);const w=()=>{const $=o.indexOf(y);$>-1&&o.splice($,1)};return l.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(_t({},y.state,{scroll:yd()}),"")}}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",f),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function Fw(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?yd():null}}function Pke(e){const{history:t,location:n}=window,i={value:Yk(e,n)},o={value:t.state};o.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Oke()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),o.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){l(h,_t({},t.state,Fw(o.value.back,h,o.value.forward,!0),p,{position:o.value.position}),!0),i.value=h}function f(h,p){const g=_t({},o.value,t.state,{forward:h,scroll:yd()});l(g.current,g,!0),l(h,_t({},Fw(i.value,h,null),{position:g.position+1},p),!1),i.value=h}return{location:i,state:o,push:f,replace:u}}function Ike(e){e=Ske(e);const t=Pke(e),n=Rke(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const o=_t({location:"",base:e,go:i,createHref:kke.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Dke(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ike(e)}let ds=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var an=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(an||{});const Fke={type:ds.Static,value:""},zke=/[a-zA-Z0-9_]/;function Hke(e){if(!e)return[[]];if(e==="/")return[[Fke]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=an.Static,i=n;const o=[];let l;function u(){l&&o.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===an.Static?l.push({type:ds.Static,value:p}):n===an.Param||n===an.ParamRegExp||n===an.ParamRegExpEnd?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:ds.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==an.ParamRegExp){i=n,n=an.EscapeNext;continue}switch(n){case an.Static:h==="/"?(p&&v(),u()):h===":"?(v(),n=an.Param):y();break;case an.EscapeNext:y(),n=i;break;case an.Param:h==="("?n=an.ParamRegExp:zke.test(h)?y():(v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case an.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=an.ParamRegExpEnd:g+=h;break;case an.ParamRegExpEnd:v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===an.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),o}const zw="[^/]+?",Bke={sensitive:!1,strict:!1,start:!0,end:!0};var zn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(zn||{});const jke=/[.+*?^${}()[\]/\\]/g;function Wke(e,t){const n=_t({},Bke,t),i=[];let o=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[zn.Root];n.strict&&!p.length&&(o+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=zn.Segment+(n.sensitive?zn.BonusCaseSensitive:0);if(y.type===ds.Static)v||(o+="/"),o+=y.value.replace(jke,"\\$&"),w+=zn.Static;else if(y.type===ds.Param){const{value:$,repeatable:_,optional:C,regexp:E}=y;l.push({name:$,repeatable:_,optional:C});const L=E||zw;if(L!==zw){w+=zn.BonusCustomRegExp;try{new RegExp(`(${L})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${$}" (${L}): `+N.message)}}let D=_?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;v||(D=C&&p.length<2?`(?:/${D})`:"/"+D),C&&(D+="?"),o+=D,w+=zn.Dynamic,C&&(w+=zn.BonusOptional),_&&(w+=zn.BonusRepeatable),L===".*"&&(w+=zn.BonusWildcard)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=zn.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const u=new RegExp(o,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",$=l[y-1];v[$.name]=w&&$.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===ds.Static)g+=w.value;else if(w.type===ds.Param){const{value:$,repeatable:_,optional:C}=w,E=$ in p?p[$]:"";if(Yr(E)&&!_)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const L=Yr(E)?E.join("/"):E;if(!L)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${$}"`);g+=L}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function qke(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===zn.Static+zn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===zn.Static+zn.Segment?1:-1:0}function Xk(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const l=qke(i[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-i.length)===1){if(Hw(i))return 1;if(Hw(o))return-1}return o.length-i.length}function Hw(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Uke={strict:!1,end:!0,sensitive:!1};function Vke(e,t,n){const i=Wke(Hke(e.path),n),o=_t(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Gke(e,t){const n=[],i=new Map;t=Lw(Uke,t);function o(v){return i.get(v)}function l(v,y,w){const $=!w,_=jw(v);_.aliasOf=w&&w.record;const C=Lw(t,v),E=[_];if("alias"in v){const N=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of N)E.push(jw(_t({},_,{components:w?w.record.components:_.components,path:I,aliasOf:w?w.record:_})))}let L,D;for(const N of E){const{path:I}=N;if(y&&I[0]!=="/"){const q=y.record.path,X=q[q.length-1]==="/"?"":"/";N.path=y.record.path+(I&&X+I)}if(L=Vke(N,y,C),w?w.alias.push(L):(D=D||L,D!==L&&D.alias.push(L),$&&v.name&&!Ww(L)&&u(v.name)),Jk(L)&&h(L),_.children){const q=_.children;for(let X=0;X<q.length;X++)l(q[X],L,w&&w.children[X])}w=w||L}return D?()=>{u(D)}:Ua}function u(v){if(Kk(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Xke(v,n);n.splice(y,0,v),v.record.name&&!Ww(v)&&i.set(v.record.name,v)}function p(v,y){let w,$={},_,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v});C=w.record.name,$=_t(Bw(y.params,w.keys.filter(D=>!D.optional).concat(w.parent?w.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Bw(v.params,w.keys.map(D=>D.name))),_=w.stringify($)}else if(v.path!=null)_=v.path,w=n.find(D=>D.re.test(_)),w&&($=w.parse(_),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(D=>D.re.test(y.path)),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v,currentLocation:y});C=w.record.name,$=_t({},y.params,v.params),_=w.stringify($)}const E=[];let L=w;for(;L;)E.unshift(L.record),L=L.parent;return{name:C,path:_,params:$,matched:E,meta:Yke(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:o}}function Bw(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function jw(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Kke(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Kke(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ww(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yke(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function Xke(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;Xk(e,t[l])<0?i=l:n=l+1}const o=Jke(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function Jke(e){let t=e;for(;t=t.parent;)if(Jk(t)&&Xk(e,t)===0)return t}function Jk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qw(e){const t=bn(ym),n=bn(Bk),i=Se(()=>{const h=W(e.to);return t.resolve(h)}),o=Se(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(Dl.bind(null,g));if(y>-1)return y;const w=Uw(h[p-2]);return p>1&&Uw(g)===w&&v[v.length-1].path!==w?v.findIndex(Dl.bind(null,h[p-2])):y}),l=Se(()=>o.value>-1&&nTe(n.params,i.value.params)),u=Se(()=>o.value>-1&&o.value===n.matched.length-1&&Gk(n.params,i.value.params));function f(h={}){if(tTe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Ua);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:Se(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function Zke(e){return e.length===1?e[0]:e}const Qke=tt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qw,setup(e,{slots:t}){const n=dr(qw(e)),{options:i}=bn(ym),o=Se(()=>({[Vw(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Vw(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Zke(t.default(n));return e.custom?l:Tc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),eTe=Qke;function tTe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function nTe(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Yr(o)||o.length!==i.length||i.some((l,u)=>l.valueOf()!==o[u].valueOf()))return!1}return!0}function Uw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vw=(e,t,n)=>e??t??n,rTe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=bn(eg),o=Se(()=>e.route||i.value),l=bn(Ow,0),u=Se(()=>{let p=W(l);const{matched:g}=o.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=Se(()=>o.value.matched[u.value]);_r(Ow,Se(()=>u.value+1)),_r(nke,f),_r(eg,o);const h=Ke();return yt(()=>[h.value,f.value,e.name],([p,g,v],[y,w,$])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!Dl(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Gw(n.default,{Component:y,route:p});const w=v.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=Tc(y,_t({},$,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Gw(n.default,{Component:C,route:p})||C}}});function Gw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const iTe=rTe;function oTe(e){const t=Gke(e.routes,e),n=e.parseQuery||Nke,i=e.stringifyQuery||Dw,o=e.history,l=Ea(),u=Ea(),f=Ea(),h=Vt(ho);let p=ho;il&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zh.bind(null,z=>""+z),v=Zh.bind(null,gke),y=Zh.bind(null,yc);function w(z,Z){let re,le;return Kk(z)?(re=t.getRecordMatcher(z),le=Z):le=z,t.addRoute(le,re)}function $(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function _(){return t.getRoutes().map(z=>z.record)}function C(z){return!!t.getRecordMatcher(z)}function E(z,Z){if(Z=_t({},Z||h.value),typeof z=="string"){const ee=Qh(n,z,Z.path),de=t.resolve({path:ee.path},Z),he=o.createHref(ee.fullPath);return _t(ee,de,{params:y(de.params),hash:yc(ee.hash),redirectedFrom:void 0,href:he})}let re;if(z.path!=null)re=_t({},z,{path:Qh(n,z.path,Z.path).path});else{const ee=_t({},z.params);for(const de in ee)ee[de]==null&&delete ee[de];re=_t({},z,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ce=z.hash||"";le.params=g(y(le.params));const F=yke(i,_t({},z,{hash:dke(ce),path:le.path})),j=o.createHref(F);return _t({fullPath:F,hash:ce,query:i===Dw?Mke(z.query):z.query||{}},le,{redirectedFrom:void 0,href:j})}function L(z){return typeof z=="string"?Qh(n,z,h.value.path):_t({},z)}function D(z,Z){if(p!==z)return Il(Ut.NAVIGATION_CANCELLED,{from:Z,to:z})}function N(z){return X(z)}function I(z){return N(_t(L(z),{replace:!0}))}function q(z,Z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ce=typeof le=="function"?le(z,Z):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=L(ce):{path:ce},ce.params={}),_t({query:z.query,hash:z.hash,params:ce.path!=null?{}:z.params},ce)}}function X(z,Z){const re=p=E(z),le=h.value,ce=z.state,F=z.force,j=z.replace===!0,ee=q(re,le);if(ee)return X(_t(L(ee),{state:typeof ee=="object"?_t({},ce,ee.state):ce,force:F,replace:j}),Z||re);const de=re;de.redirectedFrom=Z;let he;return!F&&bke(i,le,re)&&(he=Il(Ut.NAVIGATION_DUPLICATED,{to:de,from:le}),Be(le,le,!0,!1)),(he?Promise.resolve(he):U(de,le)).catch(me=>$i(me)?$i(me,Ut.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,de,le)).then(me=>{if(me){if($i(me,Ut.NAVIGATION_GUARD_REDIRECT))return X(_t({replace:j},L(me.to),{state:typeof me.to=="object"?_t({},ce,me.to.state):ce,force:F}),Z||de)}else me=P(de,le,!0,j,ce);return K(de,le,me),me})}function ie(z,Z){const re=D(z,Z);return re?Promise.reject(re):Promise.resolve()}function J(z){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function U(z,Z){let re;const[le,ce,F]=Lke(z,Z);re=tp(le.reverse(),"beforeRouteLeave",z,Z);for(const ee of le)ee.leaveGuards.forEach(de=>{re.push(ko(de,z,Z))});const j=ie.bind(null,z,Z);return re.push(j),Re(re).then(()=>{re=[];for(const ee of l.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).then(()=>{re=tp(ce,"beforeRouteUpdate",z,Z);for(const ee of ce)ee.updateGuards.forEach(de=>{re.push(ko(de,z,Z))});return re.push(j),Re(re)}).then(()=>{re=[];for(const ee of F)if(ee.beforeEnter)if(Yr(ee.beforeEnter))for(const de of ee.beforeEnter)re.push(ko(de,z,Z));else re.push(ko(ee.beforeEnter,z,Z));return re.push(j),Re(re)}).then(()=>(z.matched.forEach(ee=>ee.enterCallbacks={}),re=tp(F,"beforeRouteEnter",z,Z,J),re.push(j),Re(re))).then(()=>{re=[];for(const ee of u.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).catch(ee=>$i(ee,Ut.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(z,Z,re){f.list().forEach(le=>J(()=>le(z,Z,re)))}function P(z,Z,re,le,ce){const F=D(z,Z);if(F)return F;const j=Z===ho,ee=il?history.state:{};re&&(le||j?o.replace(z.fullPath,_t({scroll:j&&ee&&ee.scroll},ce)):o.push(z.fullPath,ce)),h.value=z,Be(z,Z,re,j),_e()}let O;function k(){O||(O=o.listen((z,Z,re)=>{if(!He.listening)return;const le=E(z),ce=q(le,He.currentRoute.value);if(ce){X(_t(ce,{replace:!0,force:!0}),le).catch(Ua);return}p=le;const F=h.value;il&&Eke(Iw(F.fullPath,re.delta),yd()),U(le,F).catch(j=>$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_CANCELLED)?j:$i(j,Ut.NAVIGATION_GUARD_REDIRECT)?(X(_t(L(j.to),{force:!0}),le).then(ee=>{$i(ee,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===ng.pop&&o.go(-1,!1)}).catch(Ua),Promise.reject()):(re.delta&&o.go(-re.delta,!1),ae(j,le,F))).then(j=>{j=j||P(le,F,!1),j&&(re.delta&&!$i(j,Ut.NAVIGATION_CANCELLED)?o.go(-re.delta,!1):re.type===ng.pop&&$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),K(le,F,j)}).catch(Ua)}))}let S=Ea(),R=Ea(),B;function ae(z,Z,re){_e(z);const le=R.list();return le.length?le.forEach(ce=>ce(z,Z,re)):console.error(z),Promise.reject(z)}function ve(){return B&&h.value!==ho?Promise.resolve():new Promise((z,Z)=>{S.add([z,Z])})}function _e(z){return B||(B=!z,k(),S.list().forEach(([Z,re])=>z?re(z):Z()),S.reset()),z}function Be(z,Z,re,le){const{scrollBehavior:ce}=e;if(!il||!ce)return Promise.resolve();const F=!re&&Ake(Iw(z.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return At().then(()=>ce(z,Z,F)).then(j=>j&&Cke(j)).catch(j=>ae(j,z,Z))}const Ee=z=>o.go(z);let Ge;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:_,resolve:E,options:e,push:N,replace:I,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ve,install(z){z.component("RouterLink",eTe),z.component("RouterView",iTe),z.config.globalProperties.$router=He,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),il&&!Ge&&h.value===ho&&(Ge=!0,N(o.location).catch(le=>{}));const Z={};for(const le in ho)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});z.provide(ym,He),z.provide(Bk,hg(Z)),z.provide(eg,h);const re=z.unmount;Ue.add(z),z.unmount=function(){Ue.delete(z),Ue.size<1&&(p=ho,O&&O(),O=null,h.value=ho,Ge=!1,B=!1),re()}}};function Re(z){return z.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const sTe={tooltip:RN};j1.options.instantMove=!0;j1.options.distance=10;function lTe(){return oTe({history:Dke(),routes:Z_e})}const aTe=[lTe],wm=x1(O$);aTe.forEach(e=>{wm.use(e())});Object.entries(sTe).forEach(([e,t])=>{wm.directive(e,t)});wm.mount("#app");