@vitest/browser 3.2.4 → 4.0.0-beta.1

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.
@@ -15,7 +15,7 @@ var Sk=Object.defineProperty;var _k=(e,t,n)=>t in e?Sk(e,t,{enumerable:!0,config
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
17
  **/let fh;const pv=typeof window<"u"&&window.trustedTypes;if(pv)try{fh=pv.createPolicy("vue",{createHTML:e=>e})}catch{}const yw=fh?e=>fh.createHTML(e):e=>e,TC="http://www.w3.org/2000/svg",CC="http://www.w3.org/1998/Math/MathML",yi=typeof document<"u"?document:null,gv=yi&&yi.createElement("template"),EC={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 s=t==="svg"?yi.createElementNS(TC,e):t==="mathml"?yi.createElementNS(CC,e):n?yi.createElement(e,{is:n}):yi.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>yi.createTextNode(e),createComment:e=>yi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,l){const u=n?n.previousSibling:t.lastChild;if(s&&(s===l||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===l||!(s=s.nextSibling)););else{gv.innerHTML=yw(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const f=gv.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]}},qi="transition",Hl="animation",va=Symbol("_vtc"),bw={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},AC=on({},Rb,bw),LC=e=>(e.displayName="Transition",e.props=AC,e),$C=LC((e,{slots:t})=>Ba(bT,MC(e),t)),Po=(e,t=[])=>{Fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},mv=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function MC(e){const t={};for(const C in e)C in bw||(t[C]=e[C]);if(e.css===!1)return t;const{name:n="v",type:i,duration:s,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,L=NC(s),$=L&&L[0],A=L&&L[1],{onBeforeEnter:E,onEnter:M,onEnterCancelled:O,onLeave:k,onLeaveCancelled:z,onBeforeAppear:D=E,onAppear:te=M,onAppearCancelled:ee=O}=t,W=(C,P,I,S)=>{C._enterCancelled=S,Oo(C,P?g:f),Oo(C,P?p:u),I&&I()},q=(C,P)=>{C._isLeaving=!1,Oo(C,v),Oo(C,w),Oo(C,y),P&&P()},K=C=>(P,I)=>{const S=C?te:M,R=()=>W(P,C,I);Po(S,[P,R]),vv(()=>{Oo(P,C?h:l),pi(P,C?g:f),mv(S)||yv(P,i,$,R)})};return on(t,{onBeforeEnter(C){Po(E,[C]),pi(C,l),pi(C,u)},onBeforeAppear(C){Po(D,[C]),pi(C,h),pi(C,p)},onEnter:K(!1),onAppear:K(!0),onLeave(C,P){C._isLeaving=!0;const I=()=>q(C,P);pi(C,v),C._enterCancelled?(pi(C,y),xv()):(xv(),pi(C,y)),vv(()=>{C._isLeaving&&(Oo(C,v),pi(C,w),mv(k)||yv(C,i,A,I))}),Po(k,[C,I])},onEnterCancelled(C){W(C,!1,void 0,!0),Po(O,[C])},onAppearCancelled(C){W(C,!0,void 0,!0),Po(ee,[C])},onLeaveCancelled(C){q(C),Po(z,[C])}})}function NC(e){if(e==null)return null;if(_t(e))return[Sd(e.enter),Sd(e.leave)];{const t=Sd(e);return[t,t]}}function Sd(e){return ib(e)}function pi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[va]||(e[va]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[va];n&&(n.delete(t),n.size||(e[va]=void 0))}function vv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let IC=0;function yv(e,t,n,i){const s=e._endId=++IC,l=()=>{s===e._endId&&i()};if(n!=null)return setTimeout(l,n);const{type:u,timeout:f,propCount:h}=PC(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 PC(e,t){const n=window.getComputedStyle(e),i=L=>(n[L]||"").split(", "),s=i(`${qi}Delay`),l=i(`${qi}Duration`),u=bv(s,l),f=i(`${Hl}Delay`),h=i(`${Hl}Duration`),p=bv(f,h);let g=null,v=0,y=0;t===qi?u>0&&(g=qi,v=u,y=l.length):t===Hl?p>0&&(g=Hl,v=p,y=h.length):(v=Math.max(u,p),g=v>0?u>p?qi:Hl:null,y=g?g===qi?l.length:h.length:0);const w=g===qi&&/\b(transform|all)(,|$)/.test(i(`${qi}Property`).toString());return{type:g,timeout:v,propCount:y,hasTransform:w}}function bv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>wv(n)+wv(e[i])))}function wv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xv(){return document.body.offsetHeight}function OC(e,t,n){const i=e[va];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bu=Symbol("_vod"),ww=Symbol("_vsh"),to={beforeMount(e,{value:t},{transition:n}){e[bu]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bl(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),Bl(e,!0),i.enter(e)):i.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e[bu]:"none",e[ww]=!t}const RC=Symbol(""),zC=/(^|;)\s*display\s*:/;function DC(e,t,n){const i=e.style,s=Dt(n);let l=!1;if(n&&!s){if(t)if(Dt(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();n[f]==null&&Yc(i,f,"")}else for(const u in t)n[u]==null&&Yc(i,u,"");for(const u in n)u==="display"&&(l=!0),Yc(i,u,n[u])}else if(s){if(t!==n){const u=i[RC];u&&(n+=";"+u),i.cssText=n,l=zC.test(n)}}else t&&e.removeAttribute("style");bu in e&&(e[bu]=l?i.display:"",e[ww]&&(i.display="none"))}const Sv=/\s*!important$/;function Yc(e,t,n){if(Fe(n))n.forEach(i=>Yc(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=FC(e,t);Sv.test(n)?e.setProperty(Ai(i),n.replace(Sv,""),"important"):e[i]=n}}const _v=["Webkit","Moz","ms"],_d={};function FC(e,t){const n=_d[t];if(n)return n;let i=ir(t);if(i!=="filter"&&i in e)return _d[t]=i;i=qu(i);for(let s=0;s<_v.length;s++){const l=_v[s]+i;if(l in e)return _d[t]=l}return t}const kv="http://www.w3.org/1999/xlink";function Tv(e,t,n,i,s,l=Ok(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(kv,t.slice(6,t.length)):e.setAttributeNS(kv,t,n):n==null||l&&!ob(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Nr(n)?String(n):n)}function Cv(e,t,n,i,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?yw(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=ob(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(s||t)}function Ho(e,t,n,i){e.addEventListener(t,n,i)}function HC(e,t,n,i){e.removeEventListener(t,n,i)}const Ev=Symbol("_vei");function BC(e,t,n,i,s=null){const l=e[Ev]||(e[Ev]={}),u=l[t];if(i&&u)u.value=i;else{const[f,h]=WC(t);if(i){const p=l[t]=UC(i,s);Ho(e,f,p,h)}else u&&(HC(e,f,u,h),l[t]=void 0)}}const Av=/(?:Once|Passive|Capture)$/;function WC(e){let t;if(Av.test(e)){t={};let i;for(;i=e.match(Av);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let kd=0;const jC=Promise.resolve(),qC=()=>kd||(jC.then(()=>kd=0),kd=Date.now());function UC(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ir(VC(i,n.value),t,5,[i])};return n.value=e,n.attached=qC(),n}function VC(e,t){if(Fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const Lv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,GC=(e,t,n,i,s,l)=>{const u=s==="svg";t==="class"?OC(e,i,u):t==="style"?DC(e,n,i):Bu(t)?Yh(t)||BC(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):XC(e,t,i,u))?(Cv(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Tv(e,t,i,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(i))?Cv(e,ir(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Tv(e,t,i,u))};function XC(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lv(t)&&Ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Lv(t)&&Dt(n)?!1:t in e}const wu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?n=>Kc(t,n):t};function KC(e){e.target.composing=!0}function $v(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hs=Symbol("_assign"),JC={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Hs]=wu(s);const l=i||s.props&&s.props.type==="number";Ho(e,t?"change":"input",u=>{if(u.target.composing)return;let f=e.value;n&&(f=f.trim()),l&&(f=Yd(f)),e[Hs](f)}),n&&Ho(e,"change",()=>{e.value=e.value.trim()}),t||(Ho(e,"compositionstart",KC),Ho(e,"compositionend",$v),Ho(e,"change",$v))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:l}},u){if(e[Hs]=wu(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?Yd(e.value):e.value,h=t??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||s&&e.value.trim()===h)||(e.value=h))}},xw={deep:!0,created(e,t,n){e[Hs]=wu(n),Ho(e,"change",()=>{const i=e._modelValue,s=YC(e),l=e.checked,u=e[Hs];if(Fe(i)){const f=sb(i,s),h=f!==-1;if(l&&!h)u(i.concat(s));else if(!l&&h){const p=[...i];p.splice(f,1),u(p)}}else if(Wu(i)){const f=new Set(i);l?f.add(s):f.delete(s),u(f)}else u(Sw(e,l))})},mounted:Mv,beforeUpdate(e,t,n){e[Hs]=wu(n),Mv(e,t,n)}};function Mv(e,{value:t,oldValue:n},i){e._modelValue=t;let s;if(Fe(t))s=sb(t,i.props.value)>-1;else if(Wu(t))s=t.has(i.props.value);else{if(t===n)return;s=Vu(t,Sw(e,!0))}e.checked!==s&&(e.checked=s)}function YC(e){return"_value"in e?e._value:e.value}function Sw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ZC=["ctrl","shift","alt","meta"],QC={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)=>ZC.some(n=>e[`${n}Key`]&&!t.includes(n))},Zc=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...l)=>{for(let u=0;u<t.length;u++){const f=QC[t[u]];if(f&&f(s,t))return}return e(s,...l)})},eE={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},dh=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=s=>{if(!("key"in s))return;const l=Ai(s.key);if(t.some(u=>u===l||eE[u]===l))return e(s)})},tE=on({patchProp:GC},EC);let Nv;function nE(){return Nv||(Nv=KT(tE))}const _w=(...e)=>{const t=nE().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=iE(i);if(!s)return;const l=t._component;!Ge(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const u=n(s,!1,rE(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),u},t};function rE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function iE(e){return Dt(e)?document.querySelector(e):e}const ni=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},oE={};function sE(e,t){const n=Go("RouterView");return se(),Ye(n)}const lE=ni(oE,[["render",sE]]),aE=["top","right","bottom","left"],Iv=["start","end"],Pv=aE.reduce((e,t)=>e.concat(t,t+"-"+Iv[0],t+"-"+Iv[1]),[]),ya=Math.min,Do=Math.max,cE={left:"right",right:"left",bottom:"top",top:"bottom"},uE={start:"end",end:"start"};function hh(e,t,n){return Do(e,ya(t,n))}function Jo(e,t){return typeof e=="function"?e(t):e}function ti(e){return e.split("-")[0]}function Mr(e){return e.split("-")[1]}function kw(e){return e==="x"?"y":"x"}function vp(e){return e==="y"?"height":"width"}function Wa(e){return["top","bottom"].includes(ti(e))?"y":"x"}function yp(e){return kw(Wa(e))}function Tw(e,t,n){n===void 0&&(n=!1);const i=Mr(e),s=yp(e),l=vp(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Su(u)),[u,Su(u)]}function fE(e){const t=Su(e);return[xu(e),t,xu(t)]}function xu(e){return e.replace(/start|end/g,t=>uE[t])}function dE(e,t,n){const i=["left","right"],s=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:i:t?i:s;case"left":case"right":return t?l:u;default:return[]}}function hE(e,t,n,i){const s=Mr(e);let l=dE(ti(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(xu)))),l}function Su(e){return e.replace(/left|right|bottom|top/g,t=>cE[t])}function pE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cw(e){return typeof e!="number"?pE(e):{top:e,right:e,bottom:e,left:e}}function na(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ov(e,t,n){let{reference:i,floating:s}=e;const l=Wa(t),u=yp(t),f=vp(u),h=ti(t),p=l==="y",g=i.x+i.width/2-s.width/2,v=i.y+i.height/2-s.height/2,y=i[f]/2-s[f]/2;let w;switch(h){case"top":w={x:g,y:i.y-s.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-s.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Mr(t)){case"start":w[u]-=y*(n&&p?-1:1);break;case"end":w[u]+=y*(n&&p?-1:1);break}return w}const gE=async(e,t,n)=>{const{placement:i="bottom",strategy:s="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:s}),{x:g,y:v}=Ov(p,i,h),y=i,w={},L=0;for(let $=0;$<f.length;$++){const{name:A,fn:E}=f[$],{x:M,y:O,data:k,reset:z}=await E({x:g,y:v,initialPlacement:i,placement:y,strategy:s,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=M??g,v=O??v,w={...w,[A]:{...w[A],...k}},z&&L<=50&&(L++,typeof z=="object"&&(z.placement&&(y=z.placement),z.rects&&(p=z.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:g,y:v}=Ov(p,y,h)),$=-1)}return{x:g,y:v,placement:y,strategy:s,middlewareData:w}};async function of(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:y=!1,padding:w=0}=Jo(t,e),L=Cw(w),A=f[y?v==="floating"?"reference":"floating":v],E=na(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(A)))==null||n?A:A.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),M=v==="floating"?{...u.floating,x:i,y:s}:u.reference,O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),k=await(l.isElement==null?void 0:l.isElement(O))?await(l.getScale==null?void 0:l.getScale(O))||{x:1,y:1}:{x:1,y:1},z=na(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:M,offsetParent:O,strategy:h}):M);return{top:(E.top-z.top+L.top)/k.y,bottom:(z.bottom-E.bottom+L.bottom)/k.y,left:(E.left-z.left+L.left)/k.x,right:(z.right-E.right+L.right)/k.x}}const mE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:g=0}=Jo(e,t)||{};if(p==null)return{};const v=Cw(g),y={x:n,y:i},w=yp(s),L=vp(w),$=await u.getDimensions(p),A=w==="y",E=A?"top":"left",M=A?"bottom":"right",O=A?"clientHeight":"clientWidth",k=l.reference[L]+l.reference[w]-y[w]-l.floating[L],z=y[w]-l.reference[w],D=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let te=D?D[O]:0;(!te||!await(u.isElement==null?void 0:u.isElement(D)))&&(te=f.floating[O]||l.floating[L]);const ee=k/2-z/2,W=te/2-$[L]/2-1,q=ya(v[E],W),K=ya(v[M],W),C=q,P=te-$[L]-K,I=te/2-$[L]/2+ee,S=hh(C,I,P),R=!h.arrow&&Mr(s)!=null&&I!==S&&l.reference[L]/2-(I<C?q:K)-$[L]/2<0,B=R?I<C?I-C:I-P:0;return{[w]:y[w]+B,data:{[w]:S,centerOffset:I-S-B,...R&&{alignmentOffset:B}},reset:R}}});function vE(e,t,n){return(e?[...n.filter(s=>Mr(s)===e),...n.filter(s=>Mr(s)!==e)]:n.filter(s=>ti(s)===s)).filter(s=>e?Mr(s)===e||(t?xu(s)!==s:!1):!0)}const yE=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,s;const{rects:l,middlewareData:u,placement:f,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:y=Pv,autoAlignment:w=!0,...L}=Jo(e,t),$=v!==void 0||y===Pv?vE(v||null,w,y):y,A=await of(t,L),E=((n=u.autoPlacement)==null?void 0:n.index)||0,M=$[E];if(M==null)return{};const O=Tw(M,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(f!==M)return{reset:{placement:$[0]}};const k=[A[ti(M)],A[O[0]],A[O[1]]],z=[...((i=u.autoPlacement)==null?void 0:i.overflows)||[],{placement:M,overflows:k}],D=$[E+1];if(D)return{data:{index:E+1,overflows:z},reset:{placement:D}};const te=z.map(q=>{const K=Mr(q.placement);return[q.placement,K&&g?q.overflows.slice(0,2).reduce((C,P)=>C+P,0):q.overflows[0],q.overflows]}).sort((q,K)=>q[1]-K[1]),W=((s=te.filter(q=>q[2].slice(0,Mr(q[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||te[0][0];return W!==f?{data:{index:E+1,overflows:z},reset:{placement:W}}:{}}}},bE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:$=!0,...A}=Jo(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=ti(s),M=ti(f)===f,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),k=y||(M||!$?[Su(f)]:fE(f));!y&&L!=="none"&&k.push(...hE(f,$,L,O));const z=[f,...k],D=await of(t,A),te=[];let ee=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&te.push(D[E]),v){const C=Tw(s,u,O);te.push(D[C[0]],D[C[1]])}if(ee=[...ee,{placement:s,overflows:te}],!te.every(C=>C<=0)){var W,q;const C=(((W=l.flip)==null?void 0:W.index)||0)+1,P=z[C];if(P)return{data:{index:C,overflows:ee},reset:{placement:P}};let I=(q=ee.filter(S=>S.overflows[0]<=0).sort((S,R)=>S.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!I)switch(w){case"bestFit":{var K;const S=(K=ee.map(R=>[R.placement,R.overflows.filter(B=>B>0).reduce((B,oe)=>B+oe,0)]).sort((R,B)=>R[1]-B[1])[0])==null?void 0:K[0];S&&(I=S);break}case"initialPlacement":I=f;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function wE(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=ti(n),f=Mr(n),h=Wa(n)==="y",p=["left","top"].includes(u)?-1:1,g=l&&h?-1:1,v=Jo(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:L}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return f&&typeof L=="number"&&(w=f==="end"?L*-1:L),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const xE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:f}=t,h=await wE(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:u}}}}},SE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:A=>{let{x:E,y:M}=A;return{x:E,y:M}}},...h}=Jo(e,t),p={x:n,y:i},g=await of(t,h),v=Wa(ti(s)),y=kw(v);let w=p[y],L=p[v];if(l){const A=y==="y"?"top":"left",E=y==="y"?"bottom":"right",M=w+g[A],O=w-g[E];w=hh(M,w,O)}if(u){const A=v==="y"?"top":"left",E=v==="y"?"bottom":"right",M=L+g[A],O=L-g[E];L=hh(M,L,O)}const $=f.fn({...t,[y]:w,[v]:L});return{...$,data:{x:$.x-n,y:$.y-i}}}}},_E=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:u=()=>{},...f}=Jo(e,t),h=await of(t,f),p=ti(n),g=Mr(n),v=Wa(n)==="y",{width:y,height:w}=i.floating;let L,$;p==="top"||p==="bottom"?(L=p,$=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):($=p,L=g==="end"?"top":"bottom");const A=w-h[L],E=y-h[$],M=!t.middlewareData.shift;let O=A,k=E;if(v){const D=y-h.left-h.right;k=g||M?ya(E,D):D}else{const D=w-h.top-h.bottom;O=g||M?ya(A,D):D}if(M&&!g){const D=Do(h.left,0),te=Do(h.right,0),ee=Do(h.top,0),W=Do(h.bottom,0);v?k=y-2*(D!==0||te!==0?D+te:Do(h.left,h.right)):O=w-2*(ee!==0||W!==0?ee+W:Do(h.top,h.bottom))}await u({...t,availableWidth:k,availableHeight:O});const z=await s.getDimensions(l.floating);return y!==z.width||w!==z.height?{reset:{rects:!0}}:{}}}};function fr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(e){return fr(e).getComputedStyle(e)}const Rv=Math.min,ra=Math.max,_u=Math.round;function Ew(e){const t=Zr(e);let n=parseFloat(t.width),i=parseFloat(t.height);const s=e.offsetWidth,l=e.offsetHeight,u=_u(n)!==s||_u(i)!==l;return u&&(n=s,i=l),{width:n,height:i,fallback:u}}function ho(e){return Lw(e)?(e.nodeName||"").toLowerCase():""}let Pc;function Aw(){if(Pc)return Pc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Pc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Pc):navigator.userAgent}function Qr(e){return e instanceof fr(e).HTMLElement}function io(e){return e instanceof fr(e).Element}function Lw(e){return e instanceof fr(e).Node}function zv(e){return typeof ShadowRoot>"u"?!1:e instanceof fr(e).ShadowRoot||e instanceof ShadowRoot}function sf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(s)}function kE(e){return["table","td","th"].includes(ho(e))}function ph(e){const t=/firefox/i.test(Aw()),n=Zr(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(s=>n.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const l=n.contain;return l!=null&&l.includes(s)})}function $w(){return!/^((?!chrome|android).)*safari/i.test(Aw())}function bp(e){return["html","body","#document"].includes(ho(e))}function Mw(e){return io(e)?e:e.contextElement}const Nw={x:1,y:1};function Bs(e){const t=Mw(e);if(!Qr(t))return Nw;const n=t.getBoundingClientRect(),{width:i,height:s,fallback:l}=Ew(t);let u=(l?_u(n.width):n.width)/i,f=(l?_u(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}function ba(e,t,n,i){var s,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),f=Mw(e);let h=Nw;t&&(i?io(i)&&(h=Bs(i)):h=Bs(e));const p=f?fr(f):window,g=!$w()&&n;let v=(u.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,L=u.height/h.y;if(f){const $=fr(f),A=i&&io(i)?fr(i):i;let E=$.frameElement;for(;E&&i&&A!==$;){const M=Bs(E),O=E.getBoundingClientRect(),k=getComputedStyle(E);O.x+=(E.clientLeft+parseFloat(k.paddingLeft))*M.x,O.y+=(E.clientTop+parseFloat(k.paddingTop))*M.y,v*=M.x,y*=M.y,w*=M.x,L*=M.y,v+=O.x,y+=O.y,E=fr(E).frameElement}}return{width:w,height:L,top:y,right:v+w,bottom:y+L,left:v,x:v,y}}function oo(e){return((Lw(e)?e.ownerDocument:e.document)||window.document).documentElement}function lf(e){return io(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Iw(e){return ba(oo(e)).left+lf(e).scrollLeft}function wa(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zv(e)&&e.host||oo(e);return zv(t)?t.host:t}function Pw(e){const t=wa(e);return bp(t)?t.ownerDocument.body:Qr(t)&&sf(t)?t:Pw(t)}function ku(e,t){var n;t===void 0&&(t=[]);const i=Pw(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=fr(i);return s?t.concat(l,l.visualViewport||[],sf(i)?i:[]):t.concat(i,ku(i))}function Dv(e,t,n){return t==="viewport"?na(function(i,s){const l=fr(i),u=oo(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=$w();(y||!y&&s==="fixed")&&(g=f.offsetLeft,v=f.offsetTop)}return{width:h,height:p,x:g,y:v}}(e,n)):io(t)?na(function(i,s){const l=ba(i,!0,s==="fixed"),u=l.top+i.clientTop,f=l.left+i.clientLeft,h=Qr(i)?Bs(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)):na(function(i){const s=oo(i),l=lf(i),u=i.ownerDocument.body,f=ra(s.scrollWidth,s.clientWidth,u.scrollWidth,u.clientWidth),h=ra(s.scrollHeight,s.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+Iw(i);const g=-l.scrollTop;return Zr(u).direction==="rtl"&&(p+=ra(s.clientWidth,u.clientWidth)-f),{width:f,height:h,x:p,y:g}}(oo(e)))}function Fv(e){return Qr(e)&&Zr(e).position!=="fixed"?e.offsetParent:null}function Hv(e){const t=fr(e);let n=Fv(e);for(;n&&kE(n)&&Zr(n).position==="static";)n=Fv(n);return n&&(ho(n)==="html"||ho(n)==="body"&&Zr(n).position==="static"&&!ph(n))?t:n||function(i){let s=wa(i);for(;Qr(s)&&!bp(s);){if(ph(s))return s;s=wa(s)}return null}(e)||t}function TE(e,t,n){const i=Qr(t),s=oo(t),l=ba(e,!0,n==="fixed",t);let u={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(i||!i&&n!=="fixed")if((ho(t)!=="body"||sf(s))&&(u=lf(t)),Qr(t)){const h=ba(t,!0);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else s&&(f.x=Iw(s));return{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}const CE={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=n==="clippingAncestors"?function(p,g){const v=g.get(p);if(v)return v;let y=ku(p).filter(A=>io(A)&&ho(A)!=="body"),w=null;const L=Zr(p).position==="fixed";let $=L?wa(p):p;for(;io($)&&!bp($);){const A=Zr($),E=ph($);(L?E||w:E||A.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=A:y=y.filter(M=>M!==$),$=wa($)}return g.set(p,y),y}(t,this._c):[].concat(n),u=[...l,i],f=u[0],h=u.reduce((p,g)=>{const v=Dv(t,g,s);return p.top=ra(v.top,p.top),p.right=Rv(v.right,p.right),p.bottom=Rv(v.bottom,p.bottom),p.left=ra(v.left,p.left),p},Dv(t,f,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:i}=e;const s=Qr(n),l=oo(n);if(n===l)return t;let u={scrollLeft:0,scrollTop:0},f={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((ho(n)!=="body"||sf(l))&&(u=lf(n)),Qr(n))){const p=ba(n);f=Bs(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:io,getDimensions:function(e){return Qr(e)?Ew(e):e.getBoundingClientRect()},getOffsetParent:Hv,getDocumentElement:oo,getScale:Bs,async getElementRects(e){let{reference:t,floating:n,strategy:i}=e;const s=this.getOffsetParent||Hv,l=this.getDimensions;return{reference:TE(t,await s(n),i),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Zr(e).direction==="rtl"},EE=(e,t,n)=>{const i=new Map,s={platform:CE,...n},l={...s.platform,_c:i};return gE(e,t,{...s,platform:l})},so={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 xa(e,t){let n=so.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=so.themes[n.$extend]||{}:(n=null,i=so[t]):n=null;while(n);return i}function AE(e){const t=[e];let n=so.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=so.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function Bv(e){const t=[e];let n=so.themes[e]||{};do n.$extend?(t.push(n.$extend),n=so.themes[n.$extend]||{}):n=null;while(n);return t}let Sa=!1;if(typeof window<"u"){Sa=!1;try{const e=Object.defineProperty({},"passive",{get(){Sa=!0}});window.addEventListener("test",null,e)}catch{}}let Ow=!1;typeof window<"u"&&typeof navigator<"u"&&(Ow=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Rw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Wv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},jv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function qv(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Td(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const tr=[];let Ro=null;const Uv={};function Vv(e){let t=Uv[e];return t||(t=Uv[e]=[]),t}let gh=function(){};typeof window<"u"&&(gh=window.Element);function ft(e){return function(t){return xa(t.theme,e)}}const Cd="__floating-vue__popper",zw=()=>at({name:"VPopper",provide(){return{[Cd]:{parentPopper:this}}},inject:{[Cd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>Rw.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,gh,Boolean],default:ft("container")},boundary:{type:[String,gh],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Cd])==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,s;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var 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(xE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(yE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(SE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(bE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(mE({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:s,middlewareData:l})=>{let u;const{centerOffset:f}=l.arrow;return i.startsWith("top")||i.startsWith("bottom")?u=Math.abs(f)>s.reference.width/2:u=Math.abs(f)>s.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:s,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=s.reference.width:p=s.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(_E({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:s})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await EE(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),Ro&&this.instantMove&&Ro.instantMove&&Ro!==this.parentPopper){Ro.$_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&&(Ro=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 Td(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ku(this.$_referenceNode),...ku(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(),s=t.x+t.width/2-(i.left+n.offsetLeft),l=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${s}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<tr.length;n++)t=tr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}tr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Bv(this.theme))Vv(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 Td(),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,qv(tr,this),tr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Bv(this.theme)){const i=Vv(n);qv(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Ro===this&&(Ro=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 Td(),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,Wv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Wv,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,jv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],jv,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,Sa?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,s){let l=n;i!=null&&(l=typeof i=="function"?i(l):i),l.forEach(u=>{const f=t[u];f&&this.$_registerEventListeners(e,f,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:s,handler:l}=n;!e||e===s?i.forEach(u=>u.removeEventListener(s,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(ia>=e.left&&ia<=e.right&&oa>=e.top&&oa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ia-Gi,i=oa-Xi,s=t.left+t.width/2-Gi+(t.top+t.height/2)-Xi+t.width+t.height,l=Gi+n*s,u=Xi+i*s;return Oc(Gi,Xi,l,u,t.left,t.top,t.left,t.bottom)||Oc(Gi,Xi,l,u,t.left,t.top,t.right,t.top)||Oc(Gi,Xi,l,u,t.right,t.top,t.right,t.bottom)||Oc(Gi,Xi,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(Ow){const e=Sa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Gv(t),e),document.addEventListener("touchend",t=>Xv(t,!0),e)}else window.addEventListener("mousedown",e=>Gv(e),!0),window.addEventListener("click",e=>Xv(e,!1),!0);window.addEventListener("resize",ME)}function Gv(e,t){for(let n=0;n<tr.length;n++){const i=tr[n];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function Xv(e,t){LE(e,t)}function LE(e,t){const n={};for(let i=tr.length-1;i>=0;i--){const s=tr[i];try{const l=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Kv(s,l,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=s.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let u=s.parentPopper;for(;u&&Kv(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function Kv(e,t,n){return n.closeAllPopover||n.closePopover&&t||$E(e,n)&&!t}function $E(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function ME(){for(let e=0;e<tr.length;e++)tr[e].$_computePosition()}function Jv(){for(let e=0;e<tr.length;e++)tr[e].hide()}let Gi=0,Xi=0,ia=0,oa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Gi=ia,Xi=oa,ia=e.clientX,oa=e.clientY},Sa?{passive:!0}:void 0);function Oc(e,t,n,i,s,l,u,f){const h=((u-s)*(t-l)-(f-l)*(e-s))/((f-l)*(n-e)-(u-s)*(i-t)),p=((n-e)*(t-l)-(i-t)*(e-s))/((f-l)*(n-e)-(u-s)*(i-t));return h>=0&&h<=1&&p>=0&&p<=1}const NE={extends:zw()},af=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n};function IE(e,t,n,i,s,l){return se(),ye("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xn(e.$slots,"default",Ik(pw(e.slotData)))],2)}const PE=af(NE,[["render",IE]]);function OE(){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 s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Qc;function mh(){mh.init||(mh.init=!0,Qc=OE()!==-1)}var cf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){mh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Qc&&this.$el.appendChild(e),e.data="about:blank",Qc||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&&(!Qc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const RE=Pb();Nb("data-v-b329ee4c");const zE={class:"resize-observer",tabindex:"-1"};Ib();const DE=RE((e,t,n,i,s,l)=>(se(),Ye("div",zE)));cf.render=DE;cf.__scopeId="data-v-b329ee4c";cf.__file="src/components/ResizeObserver.vue";const Dw=(e="theme")=>({computed:{themeClass(){return AE(this[e])}}}),FE=at({name:"VPopperContent",components:{ResizeObserver:cf},mixins:[Dw()],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}}}),HE=["id","aria-hidden","tabindex","data-popper-placement"],BE={ref:"inner",class:"v-popper__inner"},WE=ne("div",{class:"v-popper__arrow-outer"},null,-1),jE=ne("div",{class:"v-popper__arrow-inner"},null,-1),qE=[WE,jE];function UE(e,t,n,i,s,l){const u=Go("ResizeObserver");return se(),ye("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:nn(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]=dh(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[ne("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),ne("div",{class:"v-popper__wrapper",style:nn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ne("div",BE,[e.mounted?(se(),ye(nt,{key:0},[ne("div",null,[xn(e.$slots,"default")]),e.handleResize?(se(),Ye(u,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):je("",!0)],64)):je("",!0)],512),ne("div",{ref:"arrow",class:"v-popper__arrow-container",style:nn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},qE,4)],4)],46,HE)}const Fw=af(FE,[["render",UE]]),Hw={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 vh=function(){};typeof window<"u"&&(vh=window.Element);const VE=at({name:"VPopperWrapper",components:{Popper:PE,PopperContent:Fw},mixins:[Hw,Dw("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,vh,Boolean],default:void 0},boundary:{type:[String,vh],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 GE(e,t,n,i,s,l){const u=Go("PopperContent"),f=Go("Popper");return se(),Ye(f,_i({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,show:w,hide:L,handleResize:$,onResize:A,classes:E,result:M})=>[xn(e.$slots,"default",{shown:p,show:w,hide:L}),Ie(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":$,classes:E,result:M,onHide:L,onResize:A},{default:it(()=>[xn(e.$slots,"popper",{shown:p,hide:L})]),_: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 wp=af(VE,[["render",GE]]);({...wp});({...wp});const XE={...wp,name:"VTooltip",vPopperTheme:"tooltip"},KE=at({name:"VTooltipDirective",components:{Popper:zw(),PopperContent:Fw},mixins:[Hw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>xa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>xa(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}}}),JE=["innerHTML"],YE=["textContent"];function ZE(e,t,n,i,s,l){const u=Go("PopperContent"),f=Go("Popper");return se(),Ye(f,_i({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,hide:w,handleResize:L,onResize:$,classes:A,result:E})=>[Ie(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":L,classes:A,result:E,onHide:w,onResize:$},{default:it(()=>[e.html?(se(),ye("div",{key:0,innerHTML:e.finalContent},null,8,JE)):(se(),ye("div",{key:1,textContent:Re(e.finalContent)},null,8,YE))]),_: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 QE=af(KE,[["render",ZE]]),Bw="v-popper--has-tooltip";function eA(e,t){let n=e.placement;if(!n&&t)for(const i of Rw)t[i]&&(n=i);return n||(n=xa(e.theme||"tooltip","placement")),n}function Ww(e,t,n){let i;const s=typeof t;return s==="string"?i={content:t}:t&&s==="object"?i=t:i={content:!1},i.placement=eA(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Ed,_a,tA=0;function nA(){if(Ed)return;_a=Ue([]),Ed=_w({name:"VTooltipDirectiveApp",setup(){return{directives:_a}},render(){return this.directives.map(t=>Ba(QE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ed.mount(e)}function jw(e,t,n){nA();const i=Ue(Ww(e,t,n)),s=Ue(!1),l={id:tA++,options:i,shown:s};return _a.value.push(l),e.classList&&e.classList.add(Bw),e.$_popper={options:i,item:l,show(){s.value=!0},hide(){s.value=!1}}}function xp(e){if(e.$_popper){const t=_a.value.indexOf(e.$_popper.item);t!==-1&&_a.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bw)}function Yv(e,{value:t,modifiers:n}){const i=Ww(e,t,n);if(!i.content||xa(i.theme||"tooltip","disabled"))xp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=i):s=jw(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const rA={beforeMount:Yv,updated:Yv,beforeUnmount(e){xp(e)}},iA=rA,qw=XE,Uw={options:so};var oA={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]},sA=Object.entries(oA);function Sp(e){return String(e)}Sp.open="";Sp.close="";function lA(e=!1){let t=typeof process<"u"?process:void 0,n=(t==null?void 0:t.env)||{},i=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in n||i.includes("--no-color"))&&("FORCE_COLOR"in n||i.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function aA(e=!1){let t=lA(e),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},s={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let[u,f]of sA)s[u]=t?i(l(f[0]),l(f[1]),f[2]):Sp;return s}aA();const Zv={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"]},cA={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ys="…";function uA(e,t){const n=Zv[cA[t]]||Zv[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function fA({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:s=!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:!!s,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=uA),v}function dA(e){return e>="\uD800"&&e<="\uDBFF"}function wo(e,t,n=Ys){e=String(e);const i=n.length,s=e.length;if(i>t&&s>i)return n;if(s>t&&s>i){let l=t-i;return l>0&&dA(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Pr(e,t,n,i=", "){n=n||t.inspect;const s=e.length;if(s===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<s;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${Ys}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),L=u.length+w.length,$=L+h.length;if(g&&L>l&&u.length+h.length<=l||!g&&!v&&$>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&$>l&&L+f.length>l))break;if(u+=w,!g&&!v&&L+f.length>=l){h=`${Ys}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function hA(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ka([e,t],n){return n.truncate-=2,typeof e=="string"?e=hA(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function pA(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Pr(e,t);t.truncate-=i.length;let s="";return n.length&&(s=Pr(n.map(l=>[l,e[l]]),t,ka)),`[ ${i}${s?`, ${s}`:""} ]`}const gA=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function gi(e,t){const n=gA(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let s="";for(let u=0;u<e.length;u++){const f=`${t.stylize(wo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){s+=`${Ys}(${e.length-e[u]+1})`;break}s+=f}let l="";return i.length&&(l=Pr(i.map(u=>[u,e[u]]),t,ka)),`${n}[ ${s}${l?`, ${l}`:""} ]`}function mA(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),s=i[0];return t.stylize(`${s}T${wo(i[1],t.truncate-s.length-1)}`,"date")}function Qv(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${wo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function vA([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function yA(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function bA(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Pr(yA(e),t,vA)} }`)}const wA=Number.isNaN||(e=>e!==e);function e0(e,t){return wA(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(wo(String(e),t.truncate),"number")}function t0(e,t){let n=wo(e.toString(),t.truncate-1);return n!==Ys&&(n+="n"),t.stylize(n,"bigint")}function xA(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),s=e.source;return t.stylize(`/${wo(s,i)}/${n}`,"regexp")}function SA(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function _A(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Pr(SA(e),t)} }`)}const n0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),kA={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},TA=16;function CA(e){return kA[e]||`\\u${`0000${e.charCodeAt(0).toString(TA)}`.slice(-4)}`}function r0(e,t){return n0.test(e)&&(e=e.replace(n0,CA)),t.stylize(`'${wo(e,t.truncate-2)}'`,"string")}function i0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}let Vw=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Vw=(i,s)=>{const[l,u]=e(i);return l===t?"Promise{<pending>}":`Promise${l===n?"!":""}{${s.inspect(u,s)}}`})}catch{}function eu(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 s=Pr(n.map(f=>[f,e[f]]),t,ka),l=Pr(i.map(f=>[f,e[f]]),t,ka);t.seen.pop();let u="";return s&&l&&(u=", "),`{ ${s}${u}${l} }`}const Ad=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function EA(e,t){let n="";return Ad&&Ad in e&&(n=e[Ad]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${eu(e,t)}`}function AA(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Pr(e,t)} ]`)}const LA=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function $A(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>LA.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let s="";if(typeof e.message=="string"?s=wo(e.message,t.truncate):n.unshift("message"),s=s?`: ${s}`:"",t.truncate-=s.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Pr(n.map(u=>[u,e[u]]),t,ka);return`${i}${s}${l?` { ${l} }`:""}`}function MA([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function yh(e,t){return Pr(e,t,NA,`
18
- `)}function NA(e,t){switch(e.nodeType){case 1:return Gw(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Gw(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),s=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+=Pr(n.map(g=>[g,e.getAttribute(g)]),t,MA," ")),t.truncate-=f.length;const h=t.truncate;let p=yh(e.children,t);return p&&p.length>h&&(p=`${Ys}(${e.children.length})`),`${s}${f}${l}${p}${u}`}const IA=typeof Symbol=="function"&&typeof Symbol.for=="function",Ld=IA?Symbol.for("chai/inspect"):"@@chai/inspect",$d=Symbol.for("nodejs.util.inspect.custom"),o0=new WeakMap,s0={},l0={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:e0,Number:e0,bigint:t0,BigInt:t0,string:r0,String:r0,function:Qv,Function:Qv,symbol:i0,Symbol:i0,Array:pA,Date:mA,Map:bA,Set:_A,RegExp:xA,Promise:Vw,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:AA,Int8Array:gi,Uint8Array:gi,Uint8ClampedArray:gi,Int16Array:gi,Uint16Array:gi,Int32Array:gi,Uint32Array:gi,Float32Array:gi,Float64Array:gi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:$A,HTMLCollection:yh,NodeList:yh},PA=(e,t,n)=>Ld in e&&typeof e[Ld]=="function"?e[Ld](t):$d in e&&typeof e[$d]=="function"?e[$d](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&o0.has(e.constructor)?o0.get(e.constructor)(e,t):s0[n]?s0[n](e,t):"",OA=Object.prototype.toString;function bh(e,t={}){const n=fA(t,bh),{customInspect:i}=n;let s=e===null?"null":typeof e;if(s==="object"&&(s=OA.call(e).slice(8,-1)),s in l0)return l0[s](e,n);if(i&&e){const u=PA(e,n,s);if(u)return typeof u=="string"?u:bh(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?eu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Gw(e,n):"constructor"in e?e.constructor!==Object?EA(e,n):eu(e,n):e===Object(e)?eu(e,n):n.stylize(String(e),s)}const RA=/%[sdjifoOc%]/g;function zA(...e){if(typeof e[0]!="string"){const l=[];for(let u=0;u<e.length;u++)l.push(Es(e[u],{depth:0,colors:!1}));return l.join(" ")}const t=e.length;let n=1;const i=e[0];let s=String(i).replace(RA,l=>{if(l==="%%")return"%";if(n>=t)return l;switch(l){case"%s":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():Es(u,{depth:0,colors:!1}):String(u)}case"%d":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return Es(e[n++],{showHidden:!0,showProxy:!0});case"%O":return Es(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(u){const f=u.message;if(f.includes("circular structure")||f.includes("cyclic structures")||f.includes("cyclic object"))return"[Circular]";throw u}default:return l}});for(let l=e[n];n<t;l=e[++n])l===null||typeof l!="object"?s+=` ${l}`:s+=` ${Es(l)}`;return s}function Es(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),bh(e,t)}function DA(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=Es(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const s=e;return s.name?`[Function: ${s.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const s=Object.keys(e);return`{ Object (${s.length>2?`${s.splice(0,2).join(", ")}, ...`:s.join(", ")}) }`}else return n}return n}function Xw(e){return e!=null}function ja(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function Kw(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function a0(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let s=e;for(const l of i)if(s=new Object(s)[l],s===void 0)return n;return s}function c0(){let e=null,t=null;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function FA(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var Md,u0;function HA(){if(u0)return Md;u0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,A,E,M;return y=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,v=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,L=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,g=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,$=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,M=/[\t\v\f\ufeff\p{Zs}]+/yu,f=/\r?\n|[\r\u2028\u2029]/y,h=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,w=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:(?!\1)[^])*(\1)?/y,s=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,A=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(f.source),Md=function*(O,{jsx:k=!1}={}){var z,D,te,ee,W,q,K,C,P,I,S,R,B,oe;for({length:q}=O,ee=0,W="",oe=[{tag:"JS"}],z=[],S=0,R=!1;ee<q;){switch(C=oe[oe.length-1],C.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(O[ee]==="/"&&(E.test(W)||l.test(W))&&(y.lastIndex=ee,K=y.exec(O))){ee=y.lastIndex,W=K[0],R=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}if(v.lastIndex=ee,K=v.exec(O)){switch(B=K[0],P=v.lastIndex,I=B,B){case"(":W==="?NonExpressionParenKeyword"&&oe.push({tag:"JSNonExpressionParen",nesting:S}),S++,R=!1;break;case")":S--,R=!0,C.tag==="JSNonExpressionParen"&&S===C.nesting&&(oe.pop(),I="?NonExpressionParenEnd",R=!1);break;case"{":v.lastIndex=0,te=!A.test(W)&&(E.test(W)||l.test(W)),z.push(te),R=!1;break;case"}":switch(C.tag){case"InterpolationInTemplate":if(z.length===C.nesting){$.lastIndex=ee,K=$.exec(O),ee=$.lastIndex,W=K[0],K[1]==="${"?(W="?InterpolationInTemplate",R=!1,yield{type:"TemplateMiddle",value:K[0]}):(oe.pop(),R=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"});continue}break;case"InterpolationInJSX":if(z.length===C.nesting){oe.pop(),ee+=1,W="}",yield{type:"JSXPunctuator",value:"}"};continue}}R=z.pop(),I=R?"?ExpressionBraceEnd":"}";break;case"]":R=!0;break;case"++":case"--":I=R?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(k&&(E.test(W)||l.test(W))){oe.push({tag:"JSXTag"}),ee+=1,W="<",yield{type:"JSXPunctuator",value:B};continue}R=!1;break;default:R=!1}ee=P,W=I,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=ee,K=e.exec(O)){switch(ee=e.lastIndex,I=K[0],K[0]){case"for":case"if":case"while":case"with":W!=="."&&W!=="?."&&(I="?NonExpressionParenKeyword")}W=I,R=!l.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(L.lastIndex=ee,K=L.exec(O)){ee=L.lastIndex,W=K[0],R=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(g.lastIndex=ee,K=g.exec(O)){ee=g.lastIndex,W=K[0],R=!0,yield{type:"NumericLiteral",value:K[0]};continue}if($.lastIndex=ee,K=$.exec(O)){ee=$.lastIndex,W=K[0],K[1]==="${"?(W="?InterpolationInTemplate",oe.push({tag:"InterpolationInTemplate",nesting:z.length}),R=!1,yield{type:"TemplateHead",value:K[0]}):(R=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=ee,K=n.exec(O)){switch(ee=n.lastIndex,I=K[0],K[0]){case"<":oe.push({tag:"JSXTag"});break;case">":oe.pop(),W==="/"||C.tag==="JSXTagEnd"?(I="?JSX",R=!0):oe.push({tag:"JSXChildren"});break;case"{":oe.push({tag:"InterpolationInJSX",nesting:z.length}),I="?InterpolationInJSX",R=!1;break;case"/":W==="<"&&(oe.pop(),oe[oe.length-1].tag==="JSXChildren"&&oe.pop(),oe.push({tag:"JSXTagEnd"}))}W=I,yield{type:"JSXPunctuator",value:K[0]};continue}if(t.lastIndex=ee,K=t.exec(O)){ee=t.lastIndex,W=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(i.lastIndex=ee,K=i.exec(O)){ee=i.lastIndex,W=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(s.lastIndex=ee,K=s.exec(O)){ee=s.lastIndex,W=K[0],yield{type:"JSXText",value:K[0]};continue}switch(O[ee]){case"<":oe.push({tag:"JSXTag"}),ee++,W="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":oe.push({tag:"InterpolationInJSX",nesting:z.length}),ee++,W="?InterpolationInJSX",R=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(M.lastIndex=ee,K=M.exec(O)){ee=M.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(f.lastIndex=ee,K=f.exec(O)){ee=f.lastIndex,R=!1,u.test(W)&&(W="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:K[0]};continue}if(h.lastIndex=ee,K=h.exec(O)){ee=h.lastIndex,p.test(K[0])&&(R=!1,u.test(W)&&(W="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(w.lastIndex=ee,K=w.exec(O)){ee=w.lastIndex,R=!1,yield{type:"SingleLineComment",value:K[0]};continue}D=String.fromCodePoint(O.codePointAt(ee)),ee+=D.length,W=D,R=!1,yield{type:C.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:D}}},Md}HA();var Jw={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Jw.keyword);new Set(Jw.strict);const f0=Symbol("vitest:SAFE_TIMERS");function Yw(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}=globalThis[f0]||globalThis,{nextTick:f}=globalThis[f0]||globalThis.process||{nextTick:h=>h()};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}}const BA=44,d0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",WA=new Uint8Array(64),Zw=new Uint8Array(128);for(let e=0;e<d0.length;e++){const t=d0.charCodeAt(e);WA[e]=t,Zw[t]=e}function Wl(e,t){let n=0,i=0,s=0;do{const u=e.next();s=Zw[u],n|=(s&31)<<i,i+=5}while(s&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function h0(e,t){return e.pos>=t?!1:e.peek()!==BA}class jA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:n,pos:i}=this,s=n.indexOf(t,i);return s===-1?n.length:s}}function qA(e){const{length:t}=e,n=new jA(e),i=[];let s=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(s=0;n.pos<p;){let w;s=Wl(n,s),s<y&&(v=!1),y=s,h0(n,p)?(l=Wl(n,l),u=Wl(n,u),f=Wl(n,f),h0(n,p)?(h=Wl(n,h),w=[s,l,u,f,h]):w=[s,l,u,f]):w=[s],g.push(w),n.pos++}v||UA(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function UA(e){e.sort(VA)}function VA(e,t){return e[0]-t[0]}const GA=/^[\w+.-]+:\/\//,XA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,KA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Ut;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Ut||(Ut={}));function JA(e){return GA.test(e)}function YA(e){return e.startsWith("//")}function Qw(e){return e.startsWith("/")}function ZA(e){return e.startsWith("file:")}function p0(e){return/^[.?#]/.test(e)}function Rc(e){const t=XA.exec(e);return ex(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function QA(e){const t=KA.exec(e),n=t[2];return ex("file:","",t[1]||"","",Qw(n)?n:"/"+n,t[3]||"",t[4]||"")}function ex(e,t,n,i,s,l,u){return{scheme:e,user:t,host:n,port:i,path:s,query:l,hash:u,type:Ut.Absolute}}function g0(e){if(YA(e)){const n=Rc("http:"+e);return n.scheme="",n.type=Ut.SchemeRelative,n}if(Qw(e)){const n=Rc("http://foo.com"+e);return n.scheme="",n.host="",n.type=Ut.AbsolutePath,n}if(ZA(e))return QA(e);if(JA(e))return Rc(e);const t=Rc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Ut.Query:e.startsWith("#")?Ut.Hash:Ut.RelativePath:Ut.Empty,t}function eL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function tL(e,t){tx(t,t.type),e.path==="/"?e.path=t.path:e.path=eL(t.path)+e.path}function tx(e,t){const n=t<=Ut.RelativePath,i=e.path.split("/");let s=1,l=0,u=!1;for(let h=1;h<i.length;h++){const p=i[h];if(!p){u=!0;continue}if(u=!1,p!=="."){if(p===".."){l?(u=!0,l--,s--):n&&(i[s++]=p);continue}i[s++]=p,l++}}let f="";for(let h=1;h<s;h++)f+="/"+i[h];(!f||u&&!f.endsWith("/.."))&&(f+="/"),e.path=f}function nL(e,t){if(!e&&!t)return"";const n=g0(e);let i=n.type;if(t&&i!==Ut.Absolute){const l=g0(t),u=l.type;switch(i){case Ut.Empty:n.hash=l.hash;case Ut.Hash:n.query=l.query;case Ut.Query:case Ut.RelativePath:tL(n,l);case Ut.AbsolutePath:n.user=l.user,n.host=l.host,n.port=l.port;case Ut.SchemeRelative:n.scheme=l.scheme}u>i&&(i=u)}tx(n,i);const s=n.query+n.hash;switch(i){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const l=n.path.slice(1);return l?p0(t||e)&&!p0(l)?"./"+l+s:l+s:s||"."}case Ut.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function m0(e,t){return t&&!t.endsWith("/")&&(t+="/"),nL(e,t)}function rL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const po=0,iL=1,oL=2,sL=3,lL=4;function aL(e,t){const n=v0(e,0);if(n===e.length)return e;t||(e=e.slice());for(let i=n;i<e.length;i=v0(e,i+1))e[i]=uL(e[i],t);return e}function v0(e,t){for(let n=t;n<e.length;n++)if(!cL(e[n]))return n;return e.length}function cL(e){for(let t=1;t<e.length;t++)if(e[t][po]<e[t-1][po])return!1;return!0}function uL(e,t){return t||(e=e.slice()),e.sort(fL)}function fL(e,t){return e[po]-t[po]}let Tu=!1;function dL(e,t,n,i){for(;n<=i;){const s=n+(i-n>>1),l=e[s][po]-t;if(l===0)return Tu=!0,s;l<0?n=s+1:i=s-1}return Tu=!1,n-1}function hL(e,t,n){for(let i=n+1;i<e.length&&e[i][po]===t;n=i++);return n}function pL(e,t,n){for(let i=n-1;i>=0&&e[i][po]===t;n=i--);return n}function gL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function mL(e,t,n,i){const{lastKey:s,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===s){if(t===l)return Tu=u!==-1&&e[u][po]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=dL(e,t,f,h)}const vL="`line` must be greater than 0 (lines start at line 1)",yL="`column` must be greater than or equal to 0 (columns start at column 0)",y0=-1,bL=1;class wL{constructor(t,n){const i=typeof t=="string";if(!i&&t._decodedMemo)return t;const s=i?JSON.parse(t):t,{version:l,file:u,names:f,sourceRoot:h,sources:p,sourcesContent:g}=s;this.version=l,this.file=u,this.names=f||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=g,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const v=m0(h||"",rL(n));this.resolvedSources=p.map(w=>m0(w||"",v));const{mappings:y}=s;typeof y=="string"?(this._encoded=y,this._decoded=void 0):(this._encoded=void 0,this._decoded=aL(y,i)),this._decodedMemo=gL(),this._bySources=void 0,this._bySourceMemos=void 0}}function xL(e){var t;return(t=e)._decoded||(t._decoded=qA(e._encoded))}function SL(e,t){let{line:n,column:i,bias:s}=t;if(n--,n<0)throw new Error(vL);if(i<0)throw new Error(yL);const l=xL(e);if(n>=l.length)return zc(null,null,null,null);const u=l[n],f=_L(u,e._decodedMemo,n,i,s||bL);if(f===-1)return zc(null,null,null,null);const h=u[f];if(h.length===1)return zc(null,null,null,null);const{names:p,resolvedSources:g}=e;return zc(g[h[iL]],h[oL]+1,h[sL],h.length===5?p[h[lL]]:null)}function zc(e,t,n,i){return{source:e,line:t,column:n,name:i}}function _L(e,t,n,i,s){let l=mL(e,i,t,n);return Tu?l=(s===y0?hL:pL)(e,i,l):s===y0&&l++,l===-1||l===e.length?-1:l}const kL=/^[A-Za-z]:\//;function TL(e=""){return e&&e.replace(/\\/g,"/").replace(kL,t=>t.toUpperCase())}const CL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function EL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const AL=function(...e){e=e.map(i=>TL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:EL();!s||s.length===0||(t=`${s}/${t}`,n=b0(s))}return t=LL(t,!n),n&&!b0(t)?`/${t}`:t.length>0?t:"."};function LL(e,t){let n="",i=0,s=-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(!(s===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("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const b0=function(e){return CL.test(e)},_p=/^\s*at .*(?:\S:\d+|\(native\))/m,$L=/^(?:eval@)?(?:\[native code\])?$/,ML=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function nx(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 s=new URL(i);s.searchParams.delete("import"),s.searchParams.delete("browserv"),i=s.pathname+s.hash+s.search}if(i.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(s?5:4)}return[i,n[2]||void 0,n[3]||void 0]}function rx(e){let t=e.trim();if($L.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,i=t.match(n),s=i&&i[1]?i[1]:void 0,[l,u,f]=nx(t.replace(n,""));return!l||!u||!f?null:{file:l,method:s||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function ix(e){const t=e.trim();return _p.test(t)?ox(t):rx(t)}function ox(e){let t=e.trim();if(!_p.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[s,l,u]=nx(i?i[1]:n);let f=i&&n||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;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:AL(h),f&&(f=f.replace(/__vite_ssr_import_\d+__\./g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function NL(e,t={}){const{ignoreStackEntries:n=ML}=t;return(_p.test(e)?PL(e):IL(e)).map(s=>{var l;t.getUrlId&&(s.file=t.getUrlId(s.file));const u=(l=t.getSourceMap)===null||l===void 0?void 0:l.call(t,s.file);if(!u||typeof u!="object"||!u.version)return w0(n,s.file)?null:s;const f=new wL(u),{line:h,column:p,source:g,name:v}=SL(f,s);let y=s.file;if(g){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,L=u.sourceRoot?new URL(u.sourceRoot,w):w;y=new URL(g,L).pathname,y.match(/\/\w:\//)&&(y=y.slice(1))}return w0(n,y)?null:h!=null&&p!=null?{line:h,column:p,file:y,method:v||s.method}:s}).filter(s=>s!=null)}function w0(e,t){return e.some(n=>t.match(n))}function IL(e){return e.split(`
18
+ `)}function NA(e,t){switch(e.nodeType){case 1:return Gw(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Gw(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),s=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+=Pr(n.map(g=>[g,e.getAttribute(g)]),t,MA," ")),t.truncate-=f.length;const h=t.truncate;let p=yh(e.children,t);return p&&p.length>h&&(p=`${Ys}(${e.children.length})`),`${s}${f}${l}${p}${u}`}const IA=typeof Symbol=="function"&&typeof Symbol.for=="function",Ld=IA?Symbol.for("chai/inspect"):"@@chai/inspect",$d=Symbol.for("nodejs.util.inspect.custom"),o0=new WeakMap,s0={},l0={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:e0,Number:e0,bigint:t0,BigInt:t0,string:r0,String:r0,function:Qv,Function:Qv,symbol:i0,Symbol:i0,Array:pA,Date:mA,Map:bA,Set:_A,RegExp:xA,Promise:Vw,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:AA,Int8Array:gi,Uint8Array:gi,Uint8ClampedArray:gi,Int16Array:gi,Uint16Array:gi,Int32Array:gi,Uint32Array:gi,Float32Array:gi,Float64Array:gi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:$A,HTMLCollection:yh,NodeList:yh},PA=(e,t,n)=>Ld in e&&typeof e[Ld]=="function"?e[Ld](t):$d in e&&typeof e[$d]=="function"?e[$d](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&o0.has(e.constructor)?o0.get(e.constructor)(e,t):s0[n]?s0[n](e,t):"",OA=Object.prototype.toString;function bh(e,t={}){const n=fA(t,bh),{customInspect:i}=n;let s=e===null?"null":typeof e;if(s==="object"&&(s=OA.call(e).slice(8,-1)),s in l0)return l0[s](e,n);if(i&&e){const u=PA(e,n,s);if(u)return typeof u=="string"?u:bh(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?eu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Gw(e,n):"constructor"in e?e.constructor!==Object?EA(e,n):eu(e,n):e===Object(e)?eu(e,n):n.stylize(String(e),s)}const RA=/%[sdjifoOc%]/g;function zA(...e){if(typeof e[0]!="string"){const l=[];for(let u=0;u<e.length;u++)l.push(Es(e[u],{depth:0,colors:!1}));return l.join(" ")}const t=e.length;let n=1;const i=e[0];let s=String(i).replace(RA,l=>{if(l==="%%")return"%";if(n>=t)return l;switch(l){case"%s":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():Es(u,{depth:0,colors:!1}):String(u)}case"%d":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{const u=e[n++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return Es(e[n++],{showHidden:!0,showProxy:!0});case"%O":return Es(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(u){const f=u.message;if(f.includes("circular structure")||f.includes("cyclic structures")||f.includes("cyclic object"))return"[Circular]";throw u}default:return l}});for(let l=e[n];n<t;l=e[++n])l===null||typeof l!="object"?s+=` ${l}`:s+=` ${Es(l)}`;return s}function Es(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),bh(e,t)}function DA(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=Es(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const s=e;return s.name?`[Function: ${s.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const s=Object.keys(e);return`{ Object (${s.length>2?`${s.splice(0,2).join(", ")}, ...`:s.join(", ")}) }`}else return n}return n}function Xw(e){return e!=null}function ja(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function Kw(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function a0(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let s=e;for(const l of i)if(s=new Object(s)[l],s===void 0)return n;return s}function c0(){let e=null,t=null;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function FA(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var Md,u0;function HA(){if(u0)return Md;u0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,A,E,M;return y=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,v=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,L=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,g=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,$=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,M=/[\t\v\f\ufeff\p{Zs}]+/yu,f=/\r?\n|[\r\u2028\u2029]/y,h=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,w=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:(?!\1)[^])*(\1)?/y,s=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,A=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(f.source),Md=function*(O,{jsx:k=!1}={}){var z,D,te,ee,W,q,K,C,P,I,S,R,B,oe;for({length:q}=O,ee=0,W="",oe=[{tag:"JS"}],z=[],S=0,R=!1;ee<q;){switch(C=oe[oe.length-1],C.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(O[ee]==="/"&&(E.test(W)||l.test(W))&&(y.lastIndex=ee,K=y.exec(O))){ee=y.lastIndex,W=K[0],R=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}if(v.lastIndex=ee,K=v.exec(O)){switch(B=K[0],P=v.lastIndex,I=B,B){case"(":W==="?NonExpressionParenKeyword"&&oe.push({tag:"JSNonExpressionParen",nesting:S}),S++,R=!1;break;case")":S--,R=!0,C.tag==="JSNonExpressionParen"&&S===C.nesting&&(oe.pop(),I="?NonExpressionParenEnd",R=!1);break;case"{":v.lastIndex=0,te=!A.test(W)&&(E.test(W)||l.test(W)),z.push(te),R=!1;break;case"}":switch(C.tag){case"InterpolationInTemplate":if(z.length===C.nesting){$.lastIndex=ee,K=$.exec(O),ee=$.lastIndex,W=K[0],K[1]==="${"?(W="?InterpolationInTemplate",R=!1,yield{type:"TemplateMiddle",value:K[0]}):(oe.pop(),R=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"});continue}break;case"InterpolationInJSX":if(z.length===C.nesting){oe.pop(),ee+=1,W="}",yield{type:"JSXPunctuator",value:"}"};continue}}R=z.pop(),I=R?"?ExpressionBraceEnd":"}";break;case"]":R=!0;break;case"++":case"--":I=R?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(k&&(E.test(W)||l.test(W))){oe.push({tag:"JSXTag"}),ee+=1,W="<",yield{type:"JSXPunctuator",value:B};continue}R=!1;break;default:R=!1}ee=P,W=I,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=ee,K=e.exec(O)){switch(ee=e.lastIndex,I=K[0],K[0]){case"for":case"if":case"while":case"with":W!=="."&&W!=="?."&&(I="?NonExpressionParenKeyword")}W=I,R=!l.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(L.lastIndex=ee,K=L.exec(O)){ee=L.lastIndex,W=K[0],R=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(g.lastIndex=ee,K=g.exec(O)){ee=g.lastIndex,W=K[0],R=!0,yield{type:"NumericLiteral",value:K[0]};continue}if($.lastIndex=ee,K=$.exec(O)){ee=$.lastIndex,W=K[0],K[1]==="${"?(W="?InterpolationInTemplate",oe.push({tag:"InterpolationInTemplate",nesting:z.length}),R=!1,yield{type:"TemplateHead",value:K[0]}):(R=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=ee,K=n.exec(O)){switch(ee=n.lastIndex,I=K[0],K[0]){case"<":oe.push({tag:"JSXTag"});break;case">":oe.pop(),W==="/"||C.tag==="JSXTagEnd"?(I="?JSX",R=!0):oe.push({tag:"JSXChildren"});break;case"{":oe.push({tag:"InterpolationInJSX",nesting:z.length}),I="?InterpolationInJSX",R=!1;break;case"/":W==="<"&&(oe.pop(),oe[oe.length-1].tag==="JSXChildren"&&oe.pop(),oe.push({tag:"JSXTagEnd"}))}W=I,yield{type:"JSXPunctuator",value:K[0]};continue}if(t.lastIndex=ee,K=t.exec(O)){ee=t.lastIndex,W=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(i.lastIndex=ee,K=i.exec(O)){ee=i.lastIndex,W=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(s.lastIndex=ee,K=s.exec(O)){ee=s.lastIndex,W=K[0],yield{type:"JSXText",value:K[0]};continue}switch(O[ee]){case"<":oe.push({tag:"JSXTag"}),ee++,W="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":oe.push({tag:"InterpolationInJSX",nesting:z.length}),ee++,W="?InterpolationInJSX",R=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(M.lastIndex=ee,K=M.exec(O)){ee=M.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(f.lastIndex=ee,K=f.exec(O)){ee=f.lastIndex,R=!1,u.test(W)&&(W="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:K[0]};continue}if(h.lastIndex=ee,K=h.exec(O)){ee=h.lastIndex,p.test(K[0])&&(R=!1,u.test(W)&&(W="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(w.lastIndex=ee,K=w.exec(O)){ee=w.lastIndex,R=!1,yield{type:"SingleLineComment",value:K[0]};continue}D=String.fromCodePoint(O.codePointAt(ee)),ee+=D.length,W=D,R=!1,yield{type:C.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:D}}},Md}HA();var Jw={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Jw.keyword);new Set(Jw.strict);const f0=Symbol("vitest:SAFE_TIMERS");function Yw(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}=globalThis[f0]||globalThis,{nextTick:f}=globalThis[f0]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:s,clearImmediate:l,queueMicrotask:u}}const BA=44,d0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",WA=new Uint8Array(64),Zw=new Uint8Array(128);for(let e=0;e<d0.length;e++){const t=d0.charCodeAt(e);WA[e]=t,Zw[t]=e}function Wl(e,t){let n=0,i=0,s=0;do{const u=e.next();s=Zw[u],n|=(s&31)<<i,i+=5}while(s&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function h0(e,t){return e.pos>=t?!1:e.peek()!==BA}class jA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:n,pos:i}=this,s=n.indexOf(t,i);return s===-1?n.length:s}}function qA(e){const{length:t}=e,n=new jA(e),i=[];let s=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(s=0;n.pos<p;){let w;s=Wl(n,s),s<y&&(v=!1),y=s,h0(n,p)?(l=Wl(n,l),u=Wl(n,u),f=Wl(n,f),h0(n,p)?(h=Wl(n,h),w=[s,l,u,f,h]):w=[s,l,u,f]):w=[s],g.push(w),n.pos++}v||UA(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function UA(e){e.sort(VA)}function VA(e,t){return e[0]-t[0]}const GA=/^[\w+.-]+:\/\//,XA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,KA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Ut;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Ut||(Ut={}));function JA(e){return GA.test(e)}function YA(e){return e.startsWith("//")}function Qw(e){return e.startsWith("/")}function ZA(e){return e.startsWith("file:")}function p0(e){return/^[.?#]/.test(e)}function Rc(e){const t=XA.exec(e);return ex(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function QA(e){const t=KA.exec(e),n=t[2];return ex("file:","",t[1]||"","",Qw(n)?n:"/"+n,t[3]||"",t[4]||"")}function ex(e,t,n,i,s,l,u){return{scheme:e,user:t,host:n,port:i,path:s,query:l,hash:u,type:Ut.Absolute}}function g0(e){if(YA(e)){const n=Rc("http:"+e);return n.scheme="",n.type=Ut.SchemeRelative,n}if(Qw(e)){const n=Rc("http://foo.com"+e);return n.scheme="",n.host="",n.type=Ut.AbsolutePath,n}if(ZA(e))return QA(e);if(JA(e))return Rc(e);const t=Rc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Ut.Query:e.startsWith("#")?Ut.Hash:Ut.RelativePath:Ut.Empty,t}function eL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function tL(e,t){tx(t,t.type),e.path==="/"?e.path=t.path:e.path=eL(t.path)+e.path}function tx(e,t){const n=t<=Ut.RelativePath,i=e.path.split("/");let s=1,l=0,u=!1;for(let h=1;h<i.length;h++){const p=i[h];if(!p){u=!0;continue}if(u=!1,p!=="."){if(p===".."){l?(u=!0,l--,s--):n&&(i[s++]=p);continue}i[s++]=p,l++}}let f="";for(let h=1;h<s;h++)f+="/"+i[h];(!f||u&&!f.endsWith("/.."))&&(f+="/"),e.path=f}function nL(e,t){if(!e&&!t)return"";const n=g0(e);let i=n.type;if(t&&i!==Ut.Absolute){const l=g0(t),u=l.type;switch(i){case Ut.Empty:n.hash=l.hash;case Ut.Hash:n.query=l.query;case Ut.Query:case Ut.RelativePath:tL(n,l);case Ut.AbsolutePath:n.user=l.user,n.host=l.host,n.port=l.port;case Ut.SchemeRelative:n.scheme=l.scheme}u>i&&(i=u)}tx(n,i);const s=n.query+n.hash;switch(i){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const l=n.path.slice(1);return l?p0(t||e)&&!p0(l)?"./"+l+s:l+s:s||"."}case Ut.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function m0(e,t){return t&&!t.endsWith("/")&&(t+="/"),nL(e,t)}function rL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const po=0,iL=1,oL=2,sL=3,lL=4;function aL(e,t){const n=v0(e,0);if(n===e.length)return e;t||(e=e.slice());for(let i=n;i<e.length;i=v0(e,i+1))e[i]=uL(e[i],t);return e}function v0(e,t){for(let n=t;n<e.length;n++)if(!cL(e[n]))return n;return e.length}function cL(e){for(let t=1;t<e.length;t++)if(e[t][po]<e[t-1][po])return!1;return!0}function uL(e,t){return t||(e=e.slice()),e.sort(fL)}function fL(e,t){return e[po]-t[po]}let Tu=!1;function dL(e,t,n,i){for(;n<=i;){const s=n+(i-n>>1),l=e[s][po]-t;if(l===0)return Tu=!0,s;l<0?n=s+1:i=s-1}return Tu=!1,n-1}function hL(e,t,n){for(let i=n+1;i<e.length&&e[i][po]===t;n=i++);return n}function pL(e,t,n){for(let i=n-1;i>=0&&e[i][po]===t;n=i--);return n}function gL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function mL(e,t,n,i){const{lastKey:s,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===s){if(t===l)return Tu=u!==-1&&e[u][po]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=dL(e,t,f,h)}const vL="`line` must be greater than 0 (lines start at line 1)",yL="`column` must be greater than or equal to 0 (columns start at column 0)",y0=-1,bL=1;class wL{constructor(t,n){const i=typeof t=="string";if(!i&&t._decodedMemo)return t;const s=i?JSON.parse(t):t,{version:l,file:u,names:f,sourceRoot:h,sources:p,sourcesContent:g}=s;this.version=l,this.file=u,this.names=f||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=g,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const v=m0(h||"",rL(n));this.resolvedSources=p.map(w=>m0(w||"",v));const{mappings:y}=s;typeof y=="string"?(this._encoded=y,this._decoded=void 0):(this._encoded=void 0,this._decoded=aL(y,i)),this._decodedMemo=gL(),this._bySources=void 0,this._bySourceMemos=void 0}}function xL(e){var t;return(t=e)._decoded||(t._decoded=qA(e._encoded))}function SL(e,t){let{line:n,column:i,bias:s}=t;if(n--,n<0)throw new Error(vL);if(i<0)throw new Error(yL);const l=xL(e);if(n>=l.length)return zc(null,null,null,null);const u=l[n],f=_L(u,e._decodedMemo,n,i,s||bL);if(f===-1)return zc(null,null,null,null);const h=u[f];if(h.length===1)return zc(null,null,null,null);const{names:p,resolvedSources:g}=e;return zc(g[h[iL]],h[oL]+1,h[sL],h.length===5?p[h[lL]]:null)}function zc(e,t,n,i){return{source:e,line:t,column:n,name:i}}function _L(e,t,n,i,s){let l=mL(e,i,t,n);return Tu?l=(s===y0?hL:pL)(e,i,l):s===y0&&l++,l===-1||l===e.length?-1:l}const kL=/^[A-Za-z]:\//;function TL(e=""){return e&&e.replace(/\\/g,"/").replace(kL,t=>t.toUpperCase())}const CL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function EL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const AL=function(...e){e=e.map(i=>TL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:EL();!s||s.length===0||(t=`${s}/${t}`,n=b0(s))}return t=LL(t,!n),n&&!b0(t)?`/${t}`:t.length>0?t:"."};function LL(e,t){let n="",i=0,s=-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(!(s===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("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const b0=function(e){return CL.test(e)},_p=/^\s*at .*(?:\S:\d+|\(native\))/m,$L=/^(?:eval@)?(?:\[native code\])?$/,ML=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function nx(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 s=new URL(i);s.searchParams.delete("import"),s.searchParams.delete("browserv"),i=s.pathname+s.hash+s.search}if(i.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(s?5:4)}return[i,n[2]||void 0,n[3]||void 0]}function rx(e){let t=e.trim();if($L.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,i=t.match(n),s=i&&i[1]?i[1]:void 0,[l,u,f]=nx(t.replace(n,""));return!l||!u||!f?null:{file:l,method:s||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function ix(e){const t=e.trim();return _p.test(t)?ox(t):rx(t)}function ox(e){let t=e.trim();if(!_p.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[s,l,u]=nx(i?i[1]:n);let f=i&&n||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;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:AL(h),f&&(f=f.replace(/__vite_ssr_import_\d+__\./g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function NL(e,t={}){const{ignoreStackEntries:n=ML}=t;return(_p.test(e)?PL(e):IL(e)).map(s=>{var l;t.getUrlId&&(s.file=t.getUrlId(s.file));const u=(l=t.getSourceMap)===null||l===void 0?void 0:l.call(t,s.file);if(!u||typeof u!="object"||!u.version)return w0(n,s.file)?null:s;const f=new wL(u),{line:h,column:p,source:g,name:v}=SL(f,s);let y=s.file;if(g){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,L=u.sourceRoot?new URL(u.sourceRoot,w):w;y=new URL(g,L).pathname,y.match(/\/\w:\//)&&(y=y.slice(1))}return w0(n,y)?null:h!=null&&p!=null?{line:h,column:p,file:y,method:v||s.method}:s}).filter(s=>s!=null)}function w0(e,t){return e.some(n=>t.match(n))}function IL(e){return e.split(`
19
19
  `).map(t=>rx(t)).filter(Xw)}function PL(e){return e.split(`
20
20
  `).map(t=>ox(t)).filter(Xw)}function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd,x0;function OL(){if(x0)return Nd;x0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,A,E,M,O;return w=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,$=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,v=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,A=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,O=/[\t\v\f\ufeff\p{Zs}]+/yu,h=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,L=/\/\/.*/y,e=/^#!.*/,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,l=/[^<>{}]+/y,M=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,u=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,f=/^(?:return|throw|yield)$/,g=RegExp(h.source),Nd=function*(k,{jsx:z=!1}={}){var D,te,ee,W,q,K,C,P,I,S,R,B,oe,ue;for({length:K}=k,W=0,q="",ue=[{tag:"JS"}],D=[],R=0,B=!1,(C=e.exec(k))&&(yield{type:"HashbangComment",value:C[0]},W=C[0].length);W<K;){switch(P=ue[ue.length-1],P.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(k[W]==="/"&&(M.test(q)||u.test(q))&&(w.lastIndex=W,C=w.exec(k))){W=w.lastIndex,q=C[0],B=!0,yield{type:"RegularExpressionLiteral",value:C[0],closed:C[1]!==void 0&&C[1]!=="\\"};continue}if(y.lastIndex=W,C=y.exec(k)){switch(oe=C[0],I=y.lastIndex,S=oe,oe){case"(":q==="?NonExpressionParenKeyword"&&ue.push({tag:"JSNonExpressionParen",nesting:R}),R++,B=!1;break;case")":R--,B=!0,P.tag==="JSNonExpressionParen"&&R===P.nesting&&(ue.pop(),S="?NonExpressionParenEnd",B=!1);break;case"{":y.lastIndex=0,ee=!E.test(q)&&(M.test(q)||u.test(q)),D.push(ee),B=!1;break;case"}":switch(P.tag){case"InterpolationInTemplate":if(D.length===P.nesting){A.lastIndex=W,C=A.exec(k),W=A.lastIndex,q=C[0],C[1]==="${"?(q="?InterpolationInTemplate",B=!1,yield{type:"TemplateMiddle",value:C[0]}):(ue.pop(),B=!0,yield{type:"TemplateTail",value:C[0],closed:C[1]==="`"});continue}break;case"InterpolationInJSX":if(D.length===P.nesting){ue.pop(),W+=1,q="}",yield{type:"JSXPunctuator",value:"}"};continue}}B=D.pop(),S=B?"?ExpressionBraceEnd":"}";break;case"]":B=!0;break;case"++":case"--":S=B?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(M.test(q)||u.test(q))){ue.push({tag:"JSXTag"}),W+=1,q="<",yield{type:"JSXPunctuator",value:oe};continue}B=!1;break;default:B=!1}W=I,q=S,yield{type:"Punctuator",value:oe};continue}if(t.lastIndex=W,C=t.exec(k)){switch(W=t.lastIndex,S=C[0],C[0]){case"for":case"if":case"while":case"with":q!=="."&&q!=="?."&&(S="?NonExpressionParenKeyword")}q=S,B=!u.test(C[0]),yield{type:C[1]==="#"?"PrivateIdentifier":"IdentifierName",value:C[0]};continue}if($.lastIndex=W,C=$.exec(k)){W=$.lastIndex,q=C[0],B=!0,yield{type:"StringLiteral",value:C[0],closed:C[2]!==void 0};continue}if(v.lastIndex=W,C=v.exec(k)){W=v.lastIndex,q=C[0],B=!0,yield{type:"NumericLiteral",value:C[0]};continue}if(A.lastIndex=W,C=A.exec(k)){W=A.lastIndex,q=C[0],C[1]==="${"?(q="?InterpolationInTemplate",ue.push({tag:"InterpolationInTemplate",nesting:D.length}),B=!1,yield{type:"TemplateHead",value:C[0]}):(B=!0,yield{type:"NoSubstitutionTemplate",value:C[0],closed:C[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=W,C=i.exec(k)){switch(W=i.lastIndex,S=C[0],C[0]){case"<":ue.push({tag:"JSXTag"});break;case">":ue.pop(),q==="/"||P.tag==="JSXTagEnd"?(S="?JSX",B=!0):ue.push({tag:"JSXChildren"});break;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),S="?InterpolationInJSX",B=!1;break;case"/":q==="<"&&(ue.pop(),ue[ue.length-1].tag==="JSXChildren"&&ue.pop(),ue.push({tag:"JSXTagEnd"}))}q=S,yield{type:"JSXPunctuator",value:C[0]};continue}if(n.lastIndex=W,C=n.exec(k)){W=n.lastIndex,q=C[0],yield{type:"JSXIdentifier",value:C[0]};continue}if(s.lastIndex=W,C=s.exec(k)){W=s.lastIndex,q=C[0],yield{type:"JSXString",value:C[0],closed:C[2]!==void 0};continue}break;case"JSXChildren":if(l.lastIndex=W,C=l.exec(k)){W=l.lastIndex,q=C[0],yield{type:"JSXText",value:C[0]};continue}switch(k[W]){case"<":ue.push({tag:"JSXTag"}),W++,q="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),W++,q="?InterpolationInJSX",B=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(O.lastIndex=W,C=O.exec(k)){W=O.lastIndex,yield{type:"WhiteSpace",value:C[0]};continue}if(h.lastIndex=W,C=h.exec(k)){W=h.lastIndex,B=!1,f.test(q)&&(q="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:C[0]};continue}if(p.lastIndex=W,C=p.exec(k)){W=p.lastIndex,g.test(C[0])&&(B=!1,f.test(q)&&(q="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:C[0],closed:C[1]!==void 0};continue}if(L.lastIndex=W,C=L.exec(k)){W=L.lastIndex,B=!1,yield{type:"SingleLineComment",value:C[0]};continue}te=String.fromCodePoint(k.codePointAt(W)),W+=te.length,q=te,B=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:te}}},Nd}var RL=OL();const zL=kp(RL);function DL(e,t){const n=" ",i=" ";let s="";const l=[];for(const u of zL(e,{jsx:!1})){if(l.push(u),u.type==="SingleLineComment"){s+=i.repeat(u.value.length);continue}if(u.type==="MultiLineComment"){s+=u.value.replace(/[^\n]/g,i);continue}if(u.type==="StringLiteral"){if(!u.closed){s+=u.value;continue}const f=u.value.slice(1,-1);{s+=u.value[0]+n.repeat(f.length)+u.value[u.value.length-1];continue}}if(u.type==="NoSubstitutionTemplate"){const f=u.value.slice(1,-1);{s+=`\`${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="RegularExpressionLiteral"){const f=u.value;{s+=f.replace(/\/(.*)\/(\w?)$/g,(h,p,g)=>`/${n.repeat(p.length)}/${g}`);continue}}if(u.type==="TemplateHead"){const f=u.value.slice(1,-2);{s+=`\`${f.replace(/[^\n]/g,n)}\${`;continue}}if(u.type==="TemplateTail"){const f=u.value.slice(0,-2);{s+=`}${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="TemplateMiddle"){const f=u.value.slice(1,-2);{s+=`}${f.replace(/[^\n]/g,n)}\${`;continue}}s+=u.value}return{result:s,tokens:l}}function FL(e,t){return HL(e).result}function HL(e,t){return DL(e)}const BL=/^[A-Za-z]:\//;function WL(e=""){return e&&e.replace(/\\/g,"/").replace(BL,t=>t.toUpperCase())}const jL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,S0=/^\/([A-Za-z]:)?$/;function qL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const _0=function(...e){e=e.map(i=>WL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:qL();!s||s.length===0||(t=`${s}/${t}`,n=k0(s))}return t=UL(t,!n),n&&!k0(t)?`/${t}`:t.length>0?t:"."};function UL(e,t){let n="",i=0,s=-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(!(s===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("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const k0=function(e){return jL.test(e)},sx=function(e,t){const n=_0(e).replace(S0,"$1").split("/"),i=_0(t).replace(S0,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const s=[...n];for(const l of s){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")};class VL extends Error{constructor(n,i,s){super(n);ji(this,"code","VITEST_PENDING");ji(this,"taskId");this.message=n,this.note=s,this.taskId=i.id}}const GL=new WeakMap,lx=new WeakMap,ax=new WeakMap;function XL(e,t){GL.set(e,t)}function KL(e,t){lx.set(e,t)}function JL(e){return lx.get(e)}function YL(e,t){ax.set(e,t)}function ZL(e){return ax.get(e)}function QL(e,t){const n=t.reduce((l,u)=>(l[u.prop]=u,l),{}),i={};e.forEach(l=>{const u=n[l.prop]||{...l};i[u.prop]=u});for(const l in i){var s;const u=i[l];u.deps=(s=u.deps)===null||s===void 0?void 0:s.map(f=>i[f.prop])}return Object.values(i)}function cx(e,t,n){const i=["auto","injected","scope"],s=Object.entries(e).map(([l,u])=>{const f={value:u};if(Array.isArray(u)&&u.length>=2&&Kw(u[1])&&Object.keys(u[1]).some(p=>i.includes(p))){var h;Object.assign(f,u[1]);const p=u[0];f.value=f.injected?((h=n.injectValue)===null||h===void 0?void 0:h.call(n,l))??p:p}return f.scope=f.scope||"test",f.scope==="worker"&&!n.getWorkerContext&&(f.scope="file"),f.prop=l,f.isFn=typeof f.value=="function",f});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(s):t.fixtures=s,s.forEach(l=>{if(l.isFn){const f=fx(l.value);if(f.length&&(l.deps=t.fixtures.filter(({prop:h})=>h!==l.prop&&f.includes(h))),l.scope!=="test"){var u;(u=l.deps)===null||u===void 0||u.forEach(h=>{if(h.isFn&&!(l.scope==="worker"&&h.scope==="worker")&&!(l.scope==="file"&&h.scope!=="test"))throw new SyntaxError(`cannot use the ${h.scope} fixture "${h.prop}" inside the ${l.scope} fixture "${l.prop}"`)})}}}),t}const Id=new Map,Ws=new Map;function e$(e,t,n){return i=>{const s=i||n;if(!s)return t({});const l=JL(s);if(!(l!=null&&l.length))return t(s);const u=fx(t),f=l.some(({auto:w})=>w);if(!u.length&&!f)return t(s);Id.get(s)||Id.set(s,new Map);const h=Id.get(s);Ws.has(s)||Ws.set(s,[]);const p=Ws.get(s),g=l.filter(({prop:w,auto:L})=>L||u.includes(w)),v=ux(g);if(!v.length)return t(s);async function y(){for(const w of v){if(h.has(w))continue;const L=await t$(e,w,s,p);s[w.prop]=L,h.set(w,L),w.scope==="test"&&p.unshift(()=>{h.delete(w)})}}return y().then(()=>t(s))}}const Dc=new WeakMap;function t$(e,t,n,i){var s;const l=S$(n.task.file),u=(s=e.getWorkerContext)===null||s===void 0?void 0:s.call(e);if(!t.isFn){var f;if(l[f=t.prop]??(l[f]=t.value),u){var h;u[h=t.prop]??(u[h]=t.value)}return t.value}if(t.scope==="test")return T0(t.value,n,i);if(Dc.has(t))return Dc.get(t);let p;if(t.scope==="worker"){if(!u)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");p=u}else p=l;if(t.prop in p)return p[t.prop];Ws.has(p)||Ws.set(p,[]);const g=Ws.get(p),v=T0(t.value,p,g).then(y=>(p[t.prop]=y,Dc.delete(t),y));return Dc.set(t,v),v}async function T0(e,t,n){const i=c0();let s=!1;const l=e(t,async u=>{s=!0,i.resolve(u);const f=c0();n.push(async()=>{f.resolve(),await l}),await f}).catch(u=>{if(!s){i.reject(u);return}throw u});return i}function ux(e,t=new Set,n=[]){return e.forEach(i=>{if(!n.includes(i)){if(!i.isFn||!i.deps){n.push(i);return}if(t.has(i))throw new Error(`Circular fixture dependency detected: ${i.prop} <- ${[...t].reverse().map(s=>s.prop).join(" <- ")}`);t.add(i),ux(i.deps,t,n),n.push(i),t.clear()}}),n}function fx(e){let t=FL(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const n=t.match(/[^(]*\(([^)]*)/);if(!n)return[];const i=C0(n[1]);if(!i.length)return[];let s=i[0];if("__VITEST_FIXTURE_INDEX__"in e&&(s=i[e.__VITEST_FIXTURE_INDEX__],!s))return[];if(!(s.startsWith("{")&&s.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${s}".`);const l=s.slice(1,-1).replace(/\s/g,""),u=C0(l).map(h=>h.replace(/:.*|=.*/g,"")),f=u.at(-1);if(f&&f.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${f}".`);return u}function C0(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[n.length-1])n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const s=e.substring(i).trim();return s&&t.push(s),t}function dx(e,t){function n(s){const l=function(...u){return t.apply(s,u)};Object.assign(l,t),l.withContext=()=>l.bind(s),l.setContext=(u,f)=>{s[u]=f},l.mergeContext=u=>{Object.assign(s,u)};for(const u of e)Object.defineProperty(l,u,{get(){return n({...s,[u]:!0})}});return l}const i=n({});return i.fn=t,i}const jl=a$();Tp(function(e,t,n){wh().test.fn.call(this,lo(e),t,n)});let Xr,hx,n$;function px(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function r$(){return n$}function i$(){return px(Xr,"the runner"),Xr}function wh(){const e=ao.currentSuite||hx;return px(e,"the current suite"),e}function o$(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Uo(e,t){let n={},i=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=t}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(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 s$(e,t=()=>{},n,i,s,l){const u=[];let f;w();const h=function(A="",E={}){var M;const O=(E==null?void 0:E.timeout)??Xr.config.testTimeout,k={id:"",name:A,suite:(M=ao.currentSuite)===null||M===void 0?void 0:M.suite,each:E.each,fails:E.fails,context:void 0,type:"test",file:void 0,timeout:O,retry:E.retry??Xr.config.retry,repeats:E.repeats,mode:E.only?"only":E.skip?"skip":E.todo?"todo":"run",meta:E.meta??Object.create(null),annotations:[]},z=E.handler;(E.concurrent||!E.sequential&&Xr.config.sequence.concurrent)&&(k.concurrent=!0),k.shuffle=s==null?void 0:s.shuffle;const D=w$(k,Xr);Object.defineProperty(k,"context",{value:D,enumerable:!1}),KL(D,E.fixtures);const te=Error.stackTraceLimit;Error.stackTraceLimit=15;const ee=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=te,z&&XL(k,xh(l$(e$(Xr,z,D),k),O,!1,ee,(W,q)=>y$([D],q))),Xr.config.includeTaskLocation){const W=ee.stack,q=u$(W);q&&(k.location=q)}return u.push(k),k},p=Tp(function(A,E,M){let{options:O,handler:k}=Uo(E,M);typeof s=="object"&&(O=Object.assign({},s,O)),O.concurrent=this.concurrent||!this.sequential&&(O==null?void 0:O.concurrent),O.sequential=this.sequential||!this.concurrent&&(O==null?void 0:O.sequential);const z=h(lo(A),{...this,...O,handler:k});z.type="test"});let g=l;const v={type:"collector",name:e,mode:n,suite:f,options:s,test:p,tasks:u,collect:$,task:h,clear:L,on:y,fixtures(){return g},scoped(A){const E=cx(A,{fixtures:g},Xr);E.fixtures&&(g=E.fixtures)}};function y(A,...E){ZL(f)[A].push(...E)}function w(A){var E;typeof s=="number"&&(s={timeout:s}),f={id:"",type:"suite",name:e,suite:(E=ao.currentSuite)===null||E===void 0?void 0:E.suite,mode:n,each:i,file:void 0,shuffle:s==null?void 0:s.shuffle,tasks:[],meta:Object.create(null),concurrent:s==null?void 0:s.concurrent},YL(f,o$())}function L(){u.length=0,w()}async function $(A){if(!A)throw new TypeError("File is required to collect tasks.");t&&await v$(v,()=>t(p));const E=[];for(const M of u)E.push(M.type==="collector"?await M.collect(A):M);return f.file=A,f.tasks=E,E.forEach(M=>{M.file=A}),f}return m$(v),v}function l$(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 a$(){function e(t,n,i){var s;const l=this.only?"only":this.skip?"skip":this.todo?"todo":"run",u=ao.currentSuite||hx;let{options:f,handler:h}=Uo(n,i);const p=f.concurrent||this.concurrent||f.sequential===!1,g=f.sequential||this.sequential||f.concurrent===!1;f={...u==null?void 0:u.options,...f,shuffle:this.shuffle??f.shuffle??(u==null||(s=u.options)===null||s===void 0?void 0:s.shuffle)??void 0};const v=p||f.concurrent&&!g,y=g||f.sequential&&!p;return f.concurrent=v&&!y,f.sequential=y&&!v,s$(lo(t),h,l,this.each,f,u==null?void 0:u.fixtures())}return e.each=function(t,...n){const i=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Cu(t,n)),(s,l,u)=>{const f=lo(s),h=t.every(Array.isArray),{options:p,handler:g}=Uo(l,u),v=typeof l=="function"&&typeof u=="object";t.forEach((y,w)=>{const L=Array.isArray(y)?y:[y];v?h?i(Jr(f,L,w),()=>g(...L),p):i(Jr(f,L,w),()=>g(y),p):h?i(Jr(f,L,w),p,()=>g(...L)):i(Jr(f,L,w),p,()=>g(y))}),this.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Cu(t,n)),(i,s,l)=>{const u=lo(i),{options:f,handler:h}=Uo(s,l);t.forEach((p,g)=>{jl(Jr(u,ja(p),g),f,()=>h(p))})}},e.skipIf=t=>t?jl.skip:jl,e.runIf=t=>t?jl:jl.skip,dx(["concurrent","sequential","shuffle","skip","only","todo"],e)}function c$(e,t){const n=e;n.each=function(s,...l){const u=this.withContext();return this.setContext("each",!0),Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=lo(f),v=s.every(Array.isArray),{options:y,handler:w}=Uo(h,p),L=typeof h=="function"&&typeof p=="object";s.forEach(($,A)=>{const E=Array.isArray($)?$:[$];L?v?u(Jr(g,E,A),()=>w(...E),y):u(Jr(g,E,A),()=>w($),y):v?u(Jr(g,E,A),y,()=>w(...E)):u(Jr(g,E,A),y,()=>w($))}),this.setContext("each",void 0)}},n.for=function(s,...l){const u=this.withContext();return Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=lo(f),{options:v,handler:y}=Uo(h,p);s.forEach((w,L)=>{const $=A=>y(w,A);$.__VITEST_FIXTURE_INDEX__=1,$.toString=()=>y.toString(),u(Jr(g,ja(w),L),v,$)})}},n.skipIf=function(s){return s?this.skip:this},n.runIf=function(s){return s?this:this.skip},n.scoped=function(s){wh().scoped(s)},n.extend=function(s){const l=cx(s,t||{},Xr),u=e;return Tp(function(f,h,p){const v=wh().fixtures(),y={...this};v&&(y.fixtures=QL(y.fixtures||[],v));const{handler:w,options:L}=Uo(h,p),$=L.timeout??void 0;u.call(y,lo(f),w,$)},l)};const i=dx(["concurrent","sequential","skip","only","todo","fails"],n);return t&&i.mergeContext(t),i}function Tp(e,t){return c$(e,t)}function lo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function Jr(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((f,h)=>{if(FA(t[h])||Object.is(t[h],-0)){let p=0;e=e.replace(/%f/g,g=>(p++,p===h+1?"-%f":g))}});let s=zA(e,...t.slice(0,i));const l=Kw(t[0]);return s=s.replace(/\$([$\w.]+)/g,(u,f)=>{const h=/^\d+$/.test(f);if(!l&&!h)return`$${f}`;const p=h?a0(t,f):void 0,g=l?a0(t[0],f,p):p;return DA(g,{truncate:void 0})}),s}function Cu(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
21
21
  `).map(s=>s.split("|"))[0],i=[];for(let s=0;s<Math.floor(t.length/n.length);s++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[s*n.length+u];i.push(l)}return i}function u$(e){const t=r$(),n=e.split(`
@@ -46,7 +46,7 @@ b`.split(/\n/).length!=3?function(r){for(var o=0,c=[],a=r.length;o<=a;){var d=r.
46
46
  `)>-1?c.value=r.prevInput="":r.prevInput=d,r.composing&&(r.composing.range.clear(),r.composing.range=o.markText(r.composing.start,o.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ht.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ht.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ht.prototype.onContextMenu=function(r){var o=this,c=o.cm,a=c.display,d=o.textarea;o.contextMenuPending&&o.contextMenuPending();var m=ko(c,r),b=a.scroller.scrollTop;if(!m||L)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(m)==-1&&Yt(c,fn)(c.doc,zi(m),Y);var _=d.style.cssText,T=o.wrapper.style.cssText,H=o.wrapper.offsetParent.getBoundingClientRect();o.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
47
47
  top: `+(r.clientY-H.top-5)+"px; left: "+(r.clientX-H.left-5)+`px;
48
48
  z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
49
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var X;g&&(X=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,X),a.input.reset(),c.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=Z,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function re(){if(d.selectionStart!=null){var me=c.somethingSelected(),Se="​"+(me?d.value:"");d.value="⇚",d.value=Se,o.prevInput=me?"":"​",d.selectionStart=1,d.selectionEnd=Se.length,a.selForContextMenu=c.doc.sel}}function Z(){if(o.contextMenuPending==Z&&(o.contextMenuPending=!1,o.wrapper.style.cssText=T,d.style.cssText=_,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&re();var me=0,Se=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&o.prevInput=="​"?Yt(c,mm)(c):me++<10?a.detectingSelectAll=setTimeout(Se,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Se,200)}}if(h&&p>=9&&re(),q){$i(r);var ce=function(){cn(window,"mouseup",ce),setTimeout(Z,20)};He(window,"mouseup",ce)}else setTimeout(Z,50)},Ht.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Ht.prototype.setUneditable=function(){},Ht.prototype.needsContentAttribute=!1;function bk(r,o){if(o=o?Q(o):{},o.value=r.value,!o.tabindex&&r.tabIndex&&(o.tabindex=r.tabIndex),!o.placeholder&&r.placeholder&&(o.placeholder=r.placeholder),o.autofocus==null){var c=ue(Je(r));o.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(He(r.form,"submit",a),!o.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}o.finishInit=function(_){_.save=a,_.getTextArea=function(){return r},_.toTextArea=function(){_.toTextArea=isNaN,a(),r.parentNode.removeChild(_.getWrapperElement()),r.style.display="",r.form&&(cn(r.form,"submit",a),!o.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Ct(function(_){return r.parentNode.insertBefore(_,r.nextSibling)},o);return x}function wk(r){r.off=cn,r.on=He,r.wheelEventPixels=E_,r.Doc=Tn,r.splitLines=lr,r.countColumn=J,r.findColumn=he,r.isWordChar=rt,r.Pass=V,r.signal=Pt,r.Line=os,r.changeEnd=Di,r.scrollbarModel=Vg,r.Pos=le,r.cmpPos=Le,r.modes=Qo,r.mimeModes=br,r.resolveMode=es,r.getMode=ts,r.modeExtensions=Ii,r.extendMode=ns,r.copyState=Br,r.startState=rs,r.innerMode=ul,r.commands=Pl,r.keyMap=fi,r.keyName=Nm,r.isModifierKey=$m,r.lookupKey=ys,r.normalizeKeyMap=K_,r.StringStream=Rt,r.SharedTextMarker=Ml,r.TextMarker=Hi,r.LineWidget=$l,r.e_preventDefault=un,r.e_stopPropagation=Yo,r.e_stop=$i,r.addClass=we,r.contains=oe,r.rmClass=C,r.keyNames=Bi}fk(Ct),gk(Ct);var xk="iter insert remove copy getEditor constructor".split(" ");for(var Lc in Tn.prototype)Tn.prototype.hasOwnProperty(Lc)&&ge(xk,Lc)<0&&(Ct.prototype[Lc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Tn.prototype[Lc]));return mr(Tn),Ct.inputStyles={textarea:Ht,contenteditable:yt},Ct.defineMode=function(r){!Ct.defaults.mode&&r!="null"&&(Ct.defaults.mode=r),wr.apply(this,arguments)},Ct.defineMIME=xo,Ct.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(r,o){Ct.prototype[r]=o},Ct.defineDocExtension=function(r,o){Tn.prototype[r]=o},Ct.fromTextArea=bk,wk(Ct),Ct.version="5.65.18",Ct})}(nu)),nu.exports}var Cde=sl();const Ede=kp(Cde);var Z0={exports:{}},Q0;function m1(){return Q0||(Q0=1,function(e,t){(function(n){n(sl())})(function(n){n.defineMode("javascript",function(i,s){var l=i.indentUnit,u=s.statementIndent,f=s.jsonld,h=s.json||f,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function N(Kt){return{type:Kt,style:"keyword"}}var G=N("keyword a"),de=N("keyword b"),xe=N("keyword c"),le=N("keyword d"),Le=N("operator"),pt={type:"atom",style:"atom"};return{if:N("if"),while:G,with:G,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:N("new"),delete:xe,void:xe,throw:xe,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:N("this"),class:N("class"),super:N("atom"),yield:xe,export:N("export"),import:N("import"),extends:xe,await:xe}}(),w=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function $(N){for(var G=!1,de,xe=!1;(de=N.next())!=null;){if(!G){if(de=="/"&&!xe)return;de=="["?xe=!0:xe&&de=="]"&&(xe=!1)}G=!G&&de=="\\"}}var A,E;function M(N,G,de){return A=N,E=de,G}function O(N,G){var de=N.next();if(de=='"'||de=="'")return G.tokenize=k(de),G.tokenize(N,G);if(de=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(de=="."&&N.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return M(de);if(de=="="&&N.eat(">"))return M("=>","operator");if(de=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(de))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(de=="/")return N.eat("*")?(G.tokenize=z,z(N,G)):N.eat("/")?(N.skipToEnd(),M("comment","comment")):Yn(N,G,1)?($(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(N.eat("="),M("operator","operator",N.current()));if(de=="`")return G.tokenize=D,D(N,G);if(de=="#"&&N.peek()=="!")return N.skipToEnd(),M("meta","meta");if(de=="#"&&N.eatWhile(v))return M("variable","property");if(de=="<"&&N.match("!--")||de=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),M("comment","comment");if(w.test(de))return(de!=">"||!G.lexical||G.lexical.type!=">")&&(N.eat("=")?(de=="!"||de=="=")&&N.eat("="):/[<>*+\-|&?]/.test(de)&&(N.eat(de),de==">"&&N.eat(de))),de=="?"&&N.eat(".")?M("."):M("operator","operator",N.current());if(v.test(de)){N.eatWhile(v);var xe=N.current();if(G.lastType!="."){if(y.propertyIsEnumerable(xe)){var le=y[xe];return M(le.type,le.style,xe)}if(xe=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",xe)}return M("variable","variable",xe)}}function k(N){return function(G,de){var xe=!1,le;if(f&&G.peek()=="@"&&G.match(L))return de.tokenize=O,M("jsonld-keyword","meta");for(;(le=G.next())!=null&&!(le==N&&!xe);)xe=!xe&&le=="\\";return xe||(de.tokenize=O),M("string","string")}}function z(N,G){for(var de=!1,xe;xe=N.next();){if(xe=="/"&&de){G.tokenize=O;break}de=xe=="*"}return M("comment","comment")}function D(N,G){for(var de=!1,xe;(xe=N.next())!=null;){if(!de&&(xe=="`"||xe=="$"&&N.eat("{"))){G.tokenize=O;break}de=!de&&xe=="\\"}return M("quasi","string-2",N.current())}var te="([{}])";function ee(N,G){G.fatArrowAt&&(G.fatArrowAt=null);var de=N.string.indexOf("=>",N.start);if(!(de<0)){if(g){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,de));xe&&(de=xe.index)}for(var le=0,Le=!1,pt=de-1;pt>=0;--pt){var Kt=N.string.charAt(pt),_n=te.indexOf(Kt);if(_n>=0&&_n<3){if(!le){++pt;break}if(--le==0){Kt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++le;else if(v.test(Kt))Le=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var is=N.string.charAt(pt-1);if(is==Kt&&N.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!le){++pt;break}}Le&&!le&&(G.fatArrowAt=pt)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function q(N,G,de,xe,le,Le){this.indented=N,this.column=G,this.type=de,this.prev=le,this.info=Le,xe!=null&&(this.align=xe)}function K(N,G){if(!p)return!1;for(var de=N.localVars;de;de=de.next)if(de.name==G)return!0;for(var xe=N.context;xe;xe=xe.prev)for(var de=xe.vars;de;de=de.next)if(de.name==G)return!0}function C(N,G,de,xe,le){var Le=N.cc;for(P.state=N,P.stream=le,P.marked=null,P.cc=Le,P.style=G,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var pt=Le.length?Le.pop():h?ge:J;if(pt(de,xe)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return P.marked?P.marked:de=="variable"&&K(N,xe)?"variable-2":G}}}var P={state:null,marked:null,cc:null};function I(){for(var N=arguments.length-1;N>=0;N--)P.cc.push(arguments[N])}function S(){return I.apply(null,arguments),!0}function R(N,G){for(var de=G;de;de=de.next)if(de.name==N)return!0;return!1}function B(N){var G=P.state;if(P.marked="def",!!p){if(G.context){if(G.lexical.info=="var"&&G.context&&G.context.block){var de=oe(N,G.context);if(de!=null){G.context=de;return}}else if(!R(N,G.localVars)){G.localVars=new Pe(N,G.localVars);return}}s.globalVars&&!R(N,G.globalVars)&&(G.globalVars=new Pe(N,G.globalVars))}}function oe(N,G){if(G)if(G.block){var de=oe(N,G.prev);return de?de==G.prev?G:new we(de,G.vars,!0):null}else return R(N,G.vars)?G:new we(G.prev,new Pe(N,G.vars),!1);else return null}function ue(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function we(N,G,de){this.prev=N,this.vars=G,this.block=de}function Pe(N,G){this.name=N,this.next=G}var qe=new Pe("this",new Pe("arguments",null));function Ze(){P.state.context=new we(P.state.context,P.state.localVars,!1),P.state.localVars=qe}function Ke(){P.state.context=new we(P.state.context,P.state.localVars,!0),P.state.localVars=null}Ze.lex=Ke.lex=!0;function Je(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}Je.lex=!0;function ie(N,G){var de=function(){var xe=P.state,le=xe.indented;if(xe.lexical.type=="stat")le=xe.lexical.indented;else for(var Le=xe.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;xe.lexical=new q(le,P.stream.column(),N,null,xe.lexical,G)};return de.lex=!0,de}function U(){var N=P.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}U.lex=!0;function Q(N){function G(de){return de==N?S():N==";"||de=="}"||de==")"||de=="]"?I():S(G)}return G}function J(N,G){return N=="var"?S(ie("vardef",G),Yo,Q(";"),U):N=="keyword a"?S(ie("form"),V,J,U):N=="keyword b"?S(ie("form"),J,U):N=="keyword d"?P.stream.match(/^\s*$/,!1)?S():S(ie("stat"),fe,Q(";"),U):N=="debugger"?S(Q(";")):N=="{"?S(ie("}"),Ke,Bt,U,Je):N==";"?S():N=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==U&&P.state.cc.pop()(),S(ie("form"),V,J,U,Zo)):N=="function"?S(lr):N=="for"?S(ie("form"),Ke,Za,J,Je,U):N=="class"||g&&G=="interface"?(P.marked="keyword",S(ie("form",N=="class"?N:G),Qo,U)):N=="variable"?g&&G=="declare"?(P.marked="keyword",S(J)):g&&(G=="module"||G=="enum"||G=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",G=="enum"?S(Oe):G=="type"?S(Qa,Q("operator"),tt,Q(";")):S(ie("form"),Sn,Q("{"),ie("}"),Bt,U,U)):g&&G=="namespace"?(P.marked="keyword",S(ie("form"),ge,J,U)):g&&G=="abstract"?(P.marked="keyword",S(J)):S(ie("stat"),Ve):N=="switch"?S(ie("form"),V,Q("{"),ie("}","switch"),Ke,Bt,U,U,Je):N=="case"?S(ge,Q(":")):N=="default"?S(Q(":")):N=="catch"?S(ie("form"),Ze,ae,J,U,Je):N=="export"?S(ie("stat"),es,U):N=="import"?S(ie("stat"),Ii,U):N=="async"?S(J):G=="@"?S(ge,J):I(ie("stat"),ge,Q(";"),U)}function ae(N){if(N=="(")return S(yr,Q(")"))}function ge(N,G){return Y(N,G,!1)}function F(N,G){return Y(N,G,!0)}function V(N){return N!="("?I():S(ie(")"),fe,Q(")"),U)}function Y(N,G,de){if(P.state.fatArrowAt==P.stream.start){var xe=de?be:ve;if(N=="(")return S(Ze,ie(")"),lt(yr,")"),U,Q("=>"),xe,Je);if(N=="variable")return I(Ze,Sn,Q("=>"),xe,Je)}var le=de?he:pe;return W.hasOwnProperty(N)?S(le):N=="function"?S(lr,le):N=="class"||g&&G=="interface"?(P.marked="keyword",S(ie("form"),wf,U)):N=="keyword c"||N=="async"?S(de?F:ge):N=="("?S(ie(")"),fe,Q(")"),U,le):N=="operator"||N=="spread"?S(de?F:ge):N=="["?S(ie("]"),Rt,U,le):N=="{"?Xt(st,"}",null,le):N=="quasi"?I(Ce,le):N=="new"?S(We(de)):S()}function fe(N){return N.match(/[;\}\)\],]/)?I():I(ge)}function pe(N,G){return N==","?S(fe):he(N,G,!1)}function he(N,G,de){var xe=de==!1?pe:he,le=de==!1?ge:F;if(N=="=>")return S(Ze,de?be:ve,Je);if(N=="operator")return/\+\+|--/.test(G)||g&&G=="!"?S(xe):g&&G=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(ie(">"),lt(tt,">"),U,xe):G=="?"?S(ge,Q(":"),le):S(le);if(N=="quasi")return I(Ce,xe);if(N!=";"){if(N=="(")return Xt(F,")","call",xe);if(N==".")return S(rt,xe);if(N=="[")return S(ie("]"),fe,Q("]"),U,xe);if(g&&G=="as")return P.marked="keyword",S(tt,xe);if(N=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),S(le)}}function Ce(N,G){return N!="quasi"?I():G.slice(G.length-2)!="${"?S(Ce):S(fe,Ee)}function Ee(N){if(N=="}")return P.marked="string-2",P.state.tokenize=D,S(Ce)}function ve(N){return ee(P.stream,P.state),I(N=="{"?J:ge)}function be(N){return ee(P.stream,P.state),I(N=="{"?J:F)}function We(N){return function(G){return G=="."?S(N?De:Me):G=="variable"&&g?S(Hn,N?he:pe):I(N?F:ge)}}function Me(N,G){if(G=="target")return P.marked="keyword",S(pe)}function De(N,G){if(G=="target")return P.marked="keyword",S(he)}function Ve(N){return N==":"?S(U,J):I(pe,Q(";"),U)}function rt(N){if(N=="variable")return P.marked="property",S()}function st(N,G){if(N=="async")return P.marked="property",S(st);if(N=="variable"||P.style=="keyword"){if(P.marked="property",G=="get"||G=="set")return S(ut);var de;return g&&P.state.fatArrowAt==P.stream.start&&(de=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+de[0].length),S(It)}else{if(N=="number"||N=="string")return P.marked=f?"property":P.style+" property",S(It);if(N=="jsonld-keyword")return S(It);if(g&&ue(G))return P.marked="keyword",S(st);if(N=="[")return S(ge,Dn,Q("]"),It);if(N=="spread")return S(F,It);if(G=="*")return P.marked="keyword",S(st);if(N==":")return I(It)}}function ut(N){return N!="variable"?I(It):(P.marked="property",S(lr))}function It(N){if(N==":")return S(F);if(N=="(")return I(lr)}function lt(N,G,de){function xe(le,Le){if(de?de.indexOf(le)>-1:le==","){var pt=P.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Kt,_n){return Kt==G||_n==G?I():I(N)},xe)}return le==G||Le==G?S():de&&de.indexOf(";")>-1?I(N):S(Q(G))}return function(le,Le){return le==G||Le==G?S():I(N,xe)}}function Xt(N,G,de){for(var xe=3;xe<arguments.length;xe++)P.cc.push(arguments[xe]);return S(ie(G,de),lt(N,G),U)}function Bt(N){return N=="}"?S():I(J,Bt)}function Dn(N,G){if(g){if(N==":")return S(tt);if(G=="?")return S(Dn)}}function Hr(N,G){if(g&&(N==":"||G=="in"))return S(tt)}function Ft(N){if(g&&N==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?S(ge,Fn,tt):S(tt)}function Fn(N,G){if(G=="is")return P.marked="keyword",S()}function tt(N,G){if(G=="keyof"||G=="typeof"||G=="infer"||G=="readonly")return P.marked="keyword",S(G=="typeof"?F:tt);if(N=="variable"||G=="void")return P.marked="type",S(sr);if(G=="|"||G=="&")return S(tt);if(N=="string"||N=="number"||N=="atom")return S(sr);if(N=="[")return S(ie("]"),lt(tt,"]",","),U,sr);if(N=="{")return S(ie("}"),He,U,sr);if(N=="(")return S(lt(Ot,")"),Ya,sr);if(N=="<")return S(lt(tt,">"),tt);if(N=="quasi")return I(cn,sr)}function Ya(N){if(N=="=>")return S(tt)}function He(N){return N.match(/[\}\)\]]/)?S():N==","||N==";"?S(He):I(oi,He)}function oi(N,G){if(N=="variable"||P.style=="keyword")return P.marked="property",S(oi);if(G=="?"||N=="number"||N=="string")return S(oi);if(N==":")return S(tt);if(N=="[")return S(Q("variable"),Hr,Q("]"),oi);if(N=="(")return I(Ni,oi);if(!N.match(/[;\}\)\],]/))return S()}function cn(N,G){return N!="quasi"?I():G.slice(G.length-2)!="${"?S(cn):S(tt,Pt)}function Pt(N){if(N=="}")return P.marked="string-2",P.state.tokenize=D,S(cn)}function Ot(N,G){return N=="variable"&&P.stream.match(/^\s*[?:]/,!1)||G=="?"?S(Ot):N==":"?S(tt):N=="spread"?S(Ot):I(tt)}function sr(N,G){if(G=="<")return S(ie(">"),lt(tt,">"),U,sr);if(G=="|"||N=="."||G=="&")return S(tt);if(N=="[")return S(tt,Q("]"),sr);if(G=="extends"||G=="implements")return P.marked="keyword",S(tt);if(G=="?")return S(tt,Q(":"),tt)}function Hn(N,G){if(G=="<")return S(ie(">"),lt(tt,">"),U,sr)}function mr(){return I(tt,un)}function un(N,G){if(G=="=")return S(tt)}function Yo(N,G){return G=="enum"?(P.marked="keyword",S(Oe)):I(Sn,Dn,vr,bf)}function Sn(N,G){if(g&&ue(G))return P.marked="keyword",S(Sn);if(N=="variable")return B(G),S();if(N=="spread")return S(Sn);if(N=="[")return Xt(al,"]");if(N=="{")return Xt($i,"}")}function $i(N,G){return N=="variable"&&!P.stream.match(/^\s*:/,!1)?(B(G),S(vr)):(N=="variable"&&(P.marked="property"),N=="spread"?S(Sn):N=="}"?I():N=="["?S(ge,Q("]"),Q(":"),$i):S(Q(":"),Sn,vr))}function al(){return I(Sn,vr)}function vr(N,G){if(G=="=")return S(F)}function bf(N){if(N==",")return S(Yo)}function Zo(N,G){if(N=="keyword b"&&G=="else")return S(ie("form","else"),J,U)}function Za(N,G){if(G=="await")return S(Za);if(N=="(")return S(ie(")"),cl,U)}function cl(N){return N=="var"?S(Yo,Mi):N=="variable"?S(Mi):I(Mi)}function Mi(N,G){return N==")"?S():N==";"?S(Mi):G=="in"||G=="of"?(P.marked="keyword",S(ge,Mi)):I(ge,Mi)}function lr(N,G){if(G=="*")return P.marked="keyword",S(lr);if(N=="variable")return B(G),S(lr);if(N=="(")return S(Ze,ie(")"),lt(yr,")"),U,Ft,J,Je);if(g&&G=="<")return S(ie(">"),lt(mr,">"),U,lr)}function Ni(N,G){if(G=="*")return P.marked="keyword",S(Ni);if(N=="variable")return B(G),S(Ni);if(N=="(")return S(Ze,ie(")"),lt(yr,")"),U,Ft,Je);if(g&&G=="<")return S(ie(">"),lt(mr,">"),U,Ni)}function Qa(N,G){if(N=="keyword"||N=="variable")return P.marked="type",S(Qa);if(G=="<")return S(ie(">"),lt(mr,">"),U)}function yr(N,G){return G=="@"&&S(ge,yr),N=="spread"?S(yr):g&&ue(G)?(P.marked="keyword",S(yr)):g&&N=="this"?S(Dn,vr):I(Sn,Dn,vr)}function wf(N,G){return N=="variable"?Qo(N,G):br(N,G)}function Qo(N,G){if(N=="variable")return B(G),S(br)}function br(N,G){if(G=="<")return S(ie(">"),lt(mr,">"),U,br);if(G=="extends"||G=="implements"||g&&N==",")return G=="implements"&&(P.marked="keyword"),S(g?tt:ge,br);if(N=="{")return S(ie("}"),wr,U)}function wr(N,G){if(N=="async"||N=="variable"&&(G=="static"||G=="get"||G=="set"||g&&ue(G))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",S(wr);if(N=="variable"||P.style=="keyword")return P.marked="property",S(xo,wr);if(N=="number"||N=="string")return S(xo,wr);if(N=="[")return S(ge,Dn,Q("]"),xo,wr);if(G=="*")return P.marked="keyword",S(wr);if(g&&N=="(")return I(Ni,wr);if(N==";"||N==",")return S(wr);if(N=="}")return S();if(G=="@")return S(ge,wr)}function xo(N,G){if(G=="!"||G=="?")return S(xo);if(N==":")return S(tt,vr);if(G=="=")return S(F);var de=P.state.lexical.prev,xe=de&&de.info=="interface";return I(xe?Ni:lr)}function es(N,G){return G=="*"?(P.marked="keyword",S(rs,Q(";"))):G=="default"?(P.marked="keyword",S(ge,Q(";"))):N=="{"?S(lt(ts,"}"),rs,Q(";")):I(J)}function ts(N,G){if(G=="as")return P.marked="keyword",S(Q("variable"));if(N=="variable")return I(F,ts)}function Ii(N){return N=="string"?S():N=="("?I(ge):N=="."?I(pe):I(ns,Br,rs)}function ns(N,G){return N=="{"?Xt(ns,"}"):(N=="variable"&&B(G),G=="*"&&(P.marked="keyword"),S(ul))}function Br(N){if(N==",")return S(ns,Br)}function ul(N,G){if(G=="as")return P.marked="keyword",S(ns)}function rs(N,G){if(G=="from")return P.marked="keyword",S(ge)}function Rt(N){return N=="]"?S():I(lt(F,"]"))}function Oe(){return I(ie("form"),Sn,Q("{"),ie("}"),lt(si,"}"),U,U)}function si(){return I(Sn,vr)}function fl(N,G){return N.lastType=="operator"||N.lastType==","||w.test(G.charAt(0))||/[,.]/.test(G.charAt(0))}function Yn(N,G,de){return G.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(G.lastType)||G.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(de||0)))}return{startState:function(N){var G={tokenize:O,lastType:"sof",cc:[],lexical:new q((N||0)-l,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:N||0};return s.globalVars&&typeof s.globalVars=="object"&&(G.globalVars=s.globalVars),G},token:function(N,G){if(N.sol()&&(G.lexical.hasOwnProperty("align")||(G.lexical.align=!1),G.indented=N.indentation(),ee(N,G)),G.tokenize!=z&&N.eatSpace())return null;var de=G.tokenize(N,G);return A=="comment"?de:(G.lastType=A=="operator"&&(E=="++"||E=="--")?"incdec":A,C(G,de,A,E,N))},indent:function(N,G){if(N.tokenize==z||N.tokenize==D)return n.Pass;if(N.tokenize!=O)return 0;var de=G&&G.charAt(0),xe=N.lexical,le;if(!/^\s*else\b/.test(G))for(var Le=N.cc.length-1;Le>=0;--Le){var pt=N.cc[Le];if(pt==U)xe=xe.prev;else if(pt!=Zo&&pt!=Je)break}for(;(xe.type=="stat"||xe.type=="form")&&(de=="}"||(le=N.cc[N.cc.length-1])&&(le==pe||le==he)&&!/^[,\.=+\-*:?[\(]/.test(G));)xe=xe.prev;u&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Kt=xe.type,_n=de==Kt;return Kt=="vardef"?xe.indented+(N.lastType=="operator"||N.lastType==","?xe.info.length+1:0):Kt=="form"&&de=="{"?xe.indented:Kt=="form"?xe.indented+l:Kt=="stat"?xe.indented+(fl(N,G)?u||l:0):xe.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(G)?l:2*l):xe.align?xe.column+(_n?0:1):xe.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:Yn,skipExpression:function(N){C(N,"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})})}()),Z0.exports}m1();var ey={exports:{}},ty;function v1(){return ty||(ty=1,function(e,t){(function(n){n(sl())})(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},s={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:s;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(we){return R.tokenize=we,we(S,R)}var oe=S.next();if(oe=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(A("atom","]]>")):null:S.match("--")?B(A("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=A("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=L,"tag bracket");if(oe=="&"){var ue;return S.eat("#")?S.eat("x")?ue=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ue=S.eatWhile(/[\d]/)&&S.eat(";"):ue=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ue?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function L(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=D,R.tagName=R.tagStart=null;var oe=R.tokenize(S,R);return oe?oe+" 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,oe){for(;!B.eol();)if(B.next()==S){oe.tokenize=L;break}return"string"};return R.isInAttribute=!0,R}function A(S,R){return function(B,oe){for(;!B.eol();){if(B.match(R)){oe.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var oe;(oe=R.next())!=null;){if(oe=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(oe==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function M(S){return S&&S.toLowerCase()}function O(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 k(S){S.context&&(S.context=S.context.prev)}function z(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(M(B))||!h.contextGrabbers[M(B)].hasOwnProperty(M(R))))return;k(S)}}function D(S,R,B){return S=="openTag"?(B.tagStart=R.column(),te):S=="closeTag"?ee:D}function te(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",te)}function ee(S,R,B){if(S=="word"){var oe=R.current();return B.context&&B.context.tagName!=oe&&h.implicitlyClosed.hasOwnProperty(M(B.context.tagName))&&k(B),B.context&&B.context.tagName==oe||h.matchClosing===!1?(y="tag",W):(y="tag error",q)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",W(S,R,B)):(y="error",q)}function W(S,R,B){return S!="endTag"?(y="error",W):(k(B),D)}function q(S,R,B){return y="error",W(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",C;if(S=="endTag"||S=="selfcloseTag"){var oe=B.tagName,ue=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(M(oe))?z(B,oe):(z(B,oe),B.context=new O(B,oe,ue==B.indented)),D}return y="error",K}function C(S,R,B){return S=="equals"?P:(h.allowMissing||(y="error"),K(S,R,B))}function P(S,R,B){return S=="string"?I:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function I(S,R,B){return S=="string"?I:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:D,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 oe=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(oe&&oe.noIndent)return n.Pass;if(S.tokenize!=L&&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 ue=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ue&&ue[1])for(;oe;)if(oe.tagName==ue[2]){oe=oe.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M(oe.tagName)))oe=oe.prev;else break;else if(ue)for(;oe;){var we=h.contextGrabbers[M(oe.tagName)];if(we&&we.hasOwnProperty(M(ue[2])))oe=oe.prev;else break}for(;oe&&oe.prev&&!oe.startOfLine;)oe=oe.prev;return oe?oe.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==P&&(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})})}()),ey.exports}v1();var ny={exports:{}},ry;function Ade(){return ry||(ry=1,function(e,t){(function(n){n(sl(),v1(),m1())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function s(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&s(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 L=w.tagName;w.tagName=null;var $=f.indent(w,"","");return w.tagName=L,$}function g(w,L){return L.context.mode==f?v(w,L,L.context):y(w,L,L.context)}function v(w,L,$){if($.depth==2)return w.match(/^.*?\*\//)?$.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute($.state);var A=p($.state),E=$.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?A-=l.indentUnit:$.prev.state.lexical&&(A=$.prev.state.lexical.indented)}else $.depth==1&&(A+=l.indentUnit);return L.context=new i(n.startState(h,A),h,0,L.context),null}if($.depth==1){if(w.peek()=="<")return f.skipAttribute($.state),L.context=new i(n.startState(f,p($.state)),f,0,L.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return $.depth=2,g(w,L)}var M=f.token(w,$.state),O=w.current(),k;return/\btag\b/.test(M)?/>$/.test(O)?$.state.context?$.depth=0:L.context=L.context.prev:/^</.test(O)&&($.depth=1):!M&&(k=O.indexOf("{"))>-1&&w.backUp(O.length-k),M}function y(w,L,$){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,$.state))return L.context=new i(n.startState(f,h.indent($.state,"","")),f,0,L.context),h.skipExpression($.state),null;var A=h.token(w,$.state);if(!A&&$.depth!=null){var E=w.current();E=="{"?$.depth++:E=="}"&&--$.depth==0&&(L.context=L.context.prev)}return A}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,L,$){return w.context.mode.indent(w.context.state,L,$)},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}})})}()),ny.exports}Ade();var iy={exports:{}},oy;function Lde(){return oy||(oy=1,function(e,t){(function(n){n(sl())})(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 s(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?s(p):i(p)},20)}function u(p){h(p)&&s(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),iy.exports}Lde();var sy={exports:{}},ly;function $de(){return ly||(ly=1,function(e,t){(function(n){n(sl())})(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],L=p.pos;function $(){n.off(document,"mousemove",A),n.off(document,"mouseup",$)}function A(E){if(E.which!=1)return $();p.moveTo(L+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",A),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 s=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<s&&(this.size-=s-g,g=s),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)}})}()),sy.exports}$de();const Mn=rn();function Mde(e,t,n={}){const i=Ede.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let s=!1;return i.on("change",()=>{if(s){s=!1;return}t.value=i.getValue()}),St(t,l=>{if(l!==i.getValue()){s=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),Zu(()=>{Mn.value=void 0}),lp(i)}async function Nde(e){var t;hf({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null,column:null})}function Ide(e,t){hf({file:e,column:t.column-1,line:t.line,view:"editor",test:js.value})}function Pde(e,t){if(!t.location)return;const{line:n,column:i,file:s}=t.location;if(e.file.filepath!==s)return Ip(s,n,i);hf({file:e.file.id,column:i-1,line:n,view:"editor",test:js.value})}const ll=lM(),Ode=U$(ll),Rde={class:"scrolls scrolls-rounded task-error"},zde=["onClickPassive"],Dde=["innerHTML"],Fde=at({__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=_e(()=>Pp(ll.value)),s=_e(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),l=_e(()=>t.error.diff?i.value.toHtml(sa(t.error.diff)):void 0);function u(f){return _fe(f.file,t.filename)?Ide(t.fileId,f):Ip(f.file,f.line,f.column)}return(f,h)=>{const p=Dr("tooltip");return se(),ye("div",Rde,[ne("pre",null,[ne("b",null,Re(f.error.name),1),dt(": "+Re(f.error.message),1)]),(se(!0),ye(nt,null,hr(f.error.stacks,(g,v)=>(se(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ne("pre",null," - "+Re(n(g.file))+":"+Re(g.line)+":"+Re(g.column),1),ct(ne("div",{class:"i-carbon-launch c-red-600 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,zde),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),j(s)?(se(),ye("pre",{key:0,"data-testid":"diff",innerHTML:j(l)},null,8,Dde)):je("",!0)])}}}),y1=ni(Fde,[["__scopeId","data-v-ae719fab"]]);function b1(e){var n;const t=(n=e.meta)==null?void 0:n.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function w1(){const e=Ue(!1),t=Ue(Date.now()),n=Ue(),i=_e(()=>{var f;const l=(f=n.value)==null?void 0:f.id,u=t.value;return l?`/__screenshot-error?id=${encodeURIComponent(l)}&t=${u}`:void 0});function s(l){n.value=l,t.value=Date.now(),e.value=!0}return{currentTask:n,showScreenshot:e,currentScreenshotUrl:i,showScreenshotModal:s}}const Hde={"h-full":"",class:"scrolls"},Bde={key:0},Wde={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},jde={flex:"~ gap-2 items-center"},qde={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ude=["innerHTML"],Vde={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Gde={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Xde={class:"flex gap-2","overflow-hidden":""},Kde={class:"font-bold","ws-nowrap":"",truncate:""},Jde=["href","download"],Yde=["onClick"],Zde={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Qde={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},ehe={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":""},the={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},nhe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},rhe=at({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=_e(()=>{var v;return!t.test.result||!((v=t.test.result.errors)!=null&&v.length)?null:r1(ll.value,[t.test])[0]});function i(v){return Pde(t.test,v)}const{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=w1();function h(v){return`${sx(el.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=_e(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,y)=>{var O,k,z;const w=ri,L=y1,$=kde,A=h1,E=zp,M=Dr("tooltip");return se(),ye("div",Hde,[j(n)?(se(),ye("div",Bde,[ne("div",Wde,[ne("div",jde,[j(Nt)&&((O=v.test.meta)!=null&&O.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(w,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:y[0]||(y[0]=D=>j(u)(v.test))},null,512),[[M,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(w,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:y[1]||(y[1]=D=>j(b1)(v.test))},null,512),[[M,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(k=v.test.result)!=null&&k.htmlError?(se(),ye("div",qde,[ne("pre",{innerHTML:v.test.result.htmlError},null,8,Ude)])):(z=v.test.result)!=null&&z.errors?(se(!0),ye(nt,{key:1},hr(v.test.result.errors,(D,te)=>(se(),Ye(L,{key:te,"file-id":v.test.file.id,error:D,filename:v.test.file.name,root:j(el).root},null,8,["file-id","error","filename","root"]))),128)):je("",!0)])])):(se(),ye("div",Vde," All tests passed in this file ")),v.test.annotations.length?(se(),ye(nt,{key:2},[y[5]||(y[5]=ne("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),ye(nt,null,hr(v.test.annotations,D=>{var te;return se(),ye("div",{key:D.type+D.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ne("div",Gde,[ne("div",Xde,[ne("span",Kde,Re(D.type),1),D.attachment&&!((te=D.attachment.contentType)!=null&&te.startsWith("image/"))?(se(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:j(Pu)(D.attachment),download:j(g1)(D.message,D.attachment.contentType)},y[4]||(y[4]=[ne("span",{class:"i-carbon:download block"},null,-1),dt(" Download ")]),8,Jde)):je("",!0)]),ne("div",null,[D.location&&D.location.file===v.test.file.filepath?ct((se(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:ee=>i(D)},[dt(Re(h(D.location)),1)],8,Yde)),[[M,"Open in Editor",void 0,{bottom:!0}]]):D.location&&D.location.file!==v.test.file.filepath?(se(),ye("span",Zde,Re(h(D.location)),1)):je("",!0)])]),ne("div",Qde,Re(D.message),1),Ie($,{annotation:D},null,8,["annotation"])])}),128))],64)):je("",!0),j(g).length?(se(),ye(nt,{key:3},[y[6]||(y[6]=ne("h1",{"m-2":""}," Test Meta ",-1)),ne("div",ehe,[(se(!0),ye(nt,null,hr(j(g),([D,te])=>(se(),ye(nt,{key:D},[ne("div",the,Re(D),1),ne("pre",nhe,Re(te),1)],64))),128))])],64)):je("",!0),j(Nt)?(se(),Ye(E,{key:4,modelValue:j(l),"onUpdate:modelValue":y[3]||(y[3]=D=>kt(l)?l.value=D:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(gp,{key:0},{default:it(()=>[Ie(A,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:y[2]||(y[2]=D=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),ihe=ni(rhe,[["__scopeId","data-v-efadcc09"]]),ohe={"h-full":"",class:"scrolls"},she=["id"],lhe={flex:"~ gap-2 items-center"},ahe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},che=["innerHTML"],uhe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},fhe=at({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(h,p){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>n(v,p+1))]}const i=_e(()=>{var y,w;const h=t.file,p=((y=h.tasks)==null?void 0:y.flatMap(L=>n(L,0)))??[],g=h.result;if((w=g==null?void 0:g.errors)==null?void 0:w[0]){const L={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(L)}return p.length>0?r1(ll.value,p):p}),{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=w1();return(h,p)=>{const g=ri,v=y1,y=h1,w=zp,L=Dr("tooltip");return se(),ye("div",ohe,[j(i).length?(se(!0),ye(nt,{key:0},hr(j(i),$=>{var A,E,M,O;return se(),ye("div",{id:$.id,key:$.id},[ne("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:nn({"margin-left":`${(A=$.result)!=null&&A.htmlError?.5:2*$.level+.5}rem`})},[ne("div",lhe,[ne("span",null,Re($.name),1),j(Nt)&&((E=$.meta)!=null&&E.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(g,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:k=>j(u)($)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(g,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:k=>j(b1)($)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(M=$.result)!=null&&M.htmlError?(se(),ye("div",ahe,[ne("pre",{innerHTML:$.result.htmlError},null,8,che)])):(O=$.result)!=null&&O.errors?(se(!0),ye(nt,{key:1},hr($.result.errors,(k,z)=>(se(),Ye(v,{key:z,error:k,filename:h.file.name,root:j(el).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):je("",!0)],4)],8,she)}),128)):(se(),ye("div",uhe," All tests passed in this file ")),j(Nt)?(se(),Ye(w,{key:2,modelValue:j(l),"onUpdate:modelValue":p[1]||(p[1]=$=>kt(l)?l.value=$:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(gp,{key:0},{default:it(()=>[Ie(y,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:p[0]||(p[0]=$=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),dhe=ni(fhe,[["__scopeId","data-v-d1b5950e"]]),hhe={border:"b base","p-4":""},phe=["innerHTML"],ghe=at({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(se(),ye("div",hhe,[ne("div",{"text-xs":"","mb-1":"",class:ot(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(n.time))+" | "+Re(n.taskName)+" | "+Re(n.type),3),ne("pre",{"data-type":"html",innerHTML:n.content},null,8,phe)]))}}),mhe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},vhe={key:1,p6:""},yhe=at({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const i=f1.value;if(i){const s=Pp(ll.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:s.toHtml(sa(h))}))}});function n(i){const s=i&&ht.state.idMap.get(i);return s&&"filepath"in s?s.name:(s?h$(s).slice(1).join(" > "):"-")||"-"}return(i,s)=>{var u;const l=ghe;return(u=j(t))!=null&&u.length?(se(),ye("div",mhe,[(se(!0),ye(nt,null,hr(j(t),({taskId:f,type:h,time:p,content:g})=>(se(),ye("div",{key:f,"font-mono":""},[Ie(l,{"task-name":n(f),type:h,time:p,content:g},null,8,["task-name","type","time","content"])]))),128))])):(se(),ye("div",vhe,s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. "),ne("pre",{inline:""},"console.log(foo)",-1),dt(") ")])))}}}),x1=at({__name:"CodeMirrorContainer",props:pa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:pa(["save"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=ef(e,"modelValue"),s=OT(),l={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=Ue();return bo(async()=>{const f=Mde(u,i,{...s,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.setSize("100%","100%"),f.clearHistory(),Mn.value=f,setTimeout(()=>Mn.value.refresh(),100)}),(f,h)=>(se(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",f.saving?"codemirror-busy":void 0])},[ne("textarea",{ref_key:"el",ref:u},null,512)],2))}}),bhe=at({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,s=Ue(""),l=rn(void 0),u=Ue(!1),f=Ue(!0),h=Ue(!1),p=Ue();St(()=>n.file,async()=>{var W;if(!h.value){f.value=!0;try{if(!n.file||!((W=n.file)!=null&&W.filepath)){s.value="",l.value=s.value,u.value=!1,f.value=!1;return}s.value=await ht.rpc.readTestFile(n.file.filepath)||"",l.value=s.value,u.value=!1}catch(q){console.error("cannot fetch file",q)}await Et(),f.value=!1}},{immediate:!0}),St(()=>[f.value,h.value,n.file,Jx.value,Yx.value],([W,q,K,C,P])=>{!W&&!q&&(C!=null?Et(()=>{var R;const I=p.value,S=I??{line:(C??1)-1,ch:P??0};I?p.value=void 0:((R=Mn.value)==null||R.scrollIntoView(S,100),Et(()=>{var B,oe;(B=Mn.value)==null||B.focus(),(oe=Mn.value)==null||oe.setCursor(S)}))}):Et(()=>{var I;(I=Mn.value)==null||I.focus()}))},{flush:"post"});const g=_e(()=>{var W,q;return((q=(W=n.file)==null?void 0:W.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),v=Ue(),y=_e(()=>{var K;const W=[];function q(C){var P;(P=C.result)!=null&&P.errors&&W.push(...C.result.errors),C.type==="suite"&&C.tasks.forEach(q)}return(K=n.file)==null||K.tasks.forEach(q),W}),w=_e(()=>{var K;const W=[];function q(C){C.type==="test"&&W.push(...C.annotations),C.type==="suite"&&C.tasks.forEach(q)}return(K=n.file)==null||K.tasks.forEach(q),W}),L=[],$=[],A=[],E=Ue(!1);function M(){A.forEach(([W,q,K])=>{W.removeEventListener("click",q),K()}),A.length=0}zx(v,()=>{var W;(W=Mn.value)==null||W.refresh()});function O(){u.value=l.value!==Mn.value.getValue()}St(u,W=>{i("draft",W)},{immediate:!0});function k(W){const q=((W==null?void 0:W.stacks)||[]).filter(R=>{var B;return R.file&&R.file===((B=n.file)==null?void 0:B.filepath)}),K=q==null?void 0:q[0];if(!K)return;const C=document.createElement("div");C.className="op80 flex gap-x-2 items-center";const P=document.createElement("pre");P.className="c-red-600 dark:c-red-400",P.textContent=`${" ".repeat(K.column)}^ ${W.name}: ${(W==null?void 0:W.message)||""}`,C.appendChild(P);const I=document.createElement("span");I.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",I.tabIndex=0,I.ariaLabel="Open in Editor",jw(I,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Ip(K.file,K.line,K.column)};I.addEventListener("click",S),C.appendChild(I),A.push([I,S,()=>xp(I)]),$.push(Mn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),L.push(Mn.value.addLineWidget(K.line-1,C))}function z(W){var B,oe;if(!W.location)return;const{line:q,file:K}=W.location;if(K!==((B=n.file)==null?void 0:B.filepath))return;const C=document.createElement("div");C.classList.add("wrap","bg-active","py-3","px-6","my-1"),C.role="note";const P=document.createElement("div");P.classList.add("block","text-black","dark:text-white");const I=document.createElement("span");I.textContent=`${W.type}: `,I.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=W.message.replace(/[^\r]\n/,`\r
49
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var X;g&&(X=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,X),a.input.reset(),c.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=Z,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function re(){if(d.selectionStart!=null){var me=c.somethingSelected(),Se="​"+(me?d.value:"");d.value="⇚",d.value=Se,o.prevInput=me?"":"​",d.selectionStart=1,d.selectionEnd=Se.length,a.selForContextMenu=c.doc.sel}}function Z(){if(o.contextMenuPending==Z&&(o.contextMenuPending=!1,o.wrapper.style.cssText=T,d.style.cssText=_,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&re();var me=0,Se=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&o.prevInput=="​"?Yt(c,mm)(c):me++<10?a.detectingSelectAll=setTimeout(Se,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Se,200)}}if(h&&p>=9&&re(),q){$i(r);var ce=function(){cn(window,"mouseup",ce),setTimeout(Z,20)};He(window,"mouseup",ce)}else setTimeout(Z,50)},Ht.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},Ht.prototype.setUneditable=function(){},Ht.prototype.needsContentAttribute=!1;function bk(r,o){if(o=o?Q(o):{},o.value=r.value,!o.tabindex&&r.tabIndex&&(o.tabindex=r.tabIndex),!o.placeholder&&r.placeholder&&(o.placeholder=r.placeholder),o.autofocus==null){var c=ue(Je(r));o.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(He(r.form,"submit",a),!o.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}o.finishInit=function(_){_.save=a,_.getTextArea=function(){return r},_.toTextArea=function(){_.toTextArea=isNaN,a(),r.parentNode.removeChild(_.getWrapperElement()),r.style.display="",r.form&&(cn(r.form,"submit",a),!o.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Ct(function(_){return r.parentNode.insertBefore(_,r.nextSibling)},o);return x}function wk(r){r.off=cn,r.on=He,r.wheelEventPixels=E_,r.Doc=Tn,r.splitLines=lr,r.countColumn=J,r.findColumn=he,r.isWordChar=rt,r.Pass=V,r.signal=Pt,r.Line=os,r.changeEnd=Di,r.scrollbarModel=Vg,r.Pos=le,r.cmpPos=Le,r.modes=Qo,r.mimeModes=br,r.resolveMode=es,r.getMode=ts,r.modeExtensions=Ii,r.extendMode=ns,r.copyState=Br,r.startState=rs,r.innerMode=ul,r.commands=Pl,r.keyMap=fi,r.keyName=Nm,r.isModifierKey=$m,r.lookupKey=ys,r.normalizeKeyMap=K_,r.StringStream=Rt,r.SharedTextMarker=Ml,r.TextMarker=Hi,r.LineWidget=$l,r.e_preventDefault=un,r.e_stopPropagation=Yo,r.e_stop=$i,r.addClass=we,r.contains=oe,r.rmClass=C,r.keyNames=Bi}fk(Ct),gk(Ct);var xk="iter insert remove copy getEditor constructor".split(" ");for(var Lc in Tn.prototype)Tn.prototype.hasOwnProperty(Lc)&&ge(xk,Lc)<0&&(Ct.prototype[Lc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Tn.prototype[Lc]));return mr(Tn),Ct.inputStyles={textarea:Ht,contenteditable:yt},Ct.defineMode=function(r){!Ct.defaults.mode&&r!="null"&&(Ct.defaults.mode=r),wr.apply(this,arguments)},Ct.defineMIME=xo,Ct.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(r,o){Ct.prototype[r]=o},Ct.defineDocExtension=function(r,o){Tn.prototype[r]=o},Ct.fromTextArea=bk,wk(Ct),Ct.version="5.65.18",Ct})}(nu)),nu.exports}var Cde=sl();const Ede=kp(Cde);var Z0={exports:{}},Q0;function m1(){return Q0||(Q0=1,function(e,t){(function(n){n(sl())})(function(n){n.defineMode("javascript",function(i,s){var l=i.indentUnit,u=s.statementIndent,f=s.jsonld,h=s.json||f,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function N(Kt){return{type:Kt,style:"keyword"}}var G=N("keyword a"),de=N("keyword b"),xe=N("keyword c"),le=N("keyword d"),Le=N("operator"),pt={type:"atom",style:"atom"};return{if:N("if"),while:G,with:G,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:N("new"),delete:xe,void:xe,throw:xe,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:N("this"),class:N("class"),super:N("atom"),yield:xe,export:N("export"),import:N("import"),extends:xe,await:xe}}(),w=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function $(N){for(var G=!1,de,xe=!1;(de=N.next())!=null;){if(!G){if(de=="/"&&!xe)return;de=="["?xe=!0:xe&&de=="]"&&(xe=!1)}G=!G&&de=="\\"}}var A,E;function M(N,G,de){return A=N,E=de,G}function O(N,G){var de=N.next();if(de=='"'||de=="'")return G.tokenize=k(de),G.tokenize(N,G);if(de=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(de=="."&&N.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return M(de);if(de=="="&&N.eat(">"))return M("=>","operator");if(de=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(de))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(de=="/")return N.eat("*")?(G.tokenize=z,z(N,G)):N.eat("/")?(N.skipToEnd(),M("comment","comment")):Yn(N,G,1)?($(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(N.eat("="),M("operator","operator",N.current()));if(de=="`")return G.tokenize=D,D(N,G);if(de=="#"&&N.peek()=="!")return N.skipToEnd(),M("meta","meta");if(de=="#"&&N.eatWhile(v))return M("variable","property");if(de=="<"&&N.match("!--")||de=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),M("comment","comment");if(w.test(de))return(de!=">"||!G.lexical||G.lexical.type!=">")&&(N.eat("=")?(de=="!"||de=="=")&&N.eat("="):/[<>*+\-|&?]/.test(de)&&(N.eat(de),de==">"&&N.eat(de))),de=="?"&&N.eat(".")?M("."):M("operator","operator",N.current());if(v.test(de)){N.eatWhile(v);var xe=N.current();if(G.lastType!="."){if(y.propertyIsEnumerable(xe)){var le=y[xe];return M(le.type,le.style,xe)}if(xe=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",xe)}return M("variable","variable",xe)}}function k(N){return function(G,de){var xe=!1,le;if(f&&G.peek()=="@"&&G.match(L))return de.tokenize=O,M("jsonld-keyword","meta");for(;(le=G.next())!=null&&!(le==N&&!xe);)xe=!xe&&le=="\\";return xe||(de.tokenize=O),M("string","string")}}function z(N,G){for(var de=!1,xe;xe=N.next();){if(xe=="/"&&de){G.tokenize=O;break}de=xe=="*"}return M("comment","comment")}function D(N,G){for(var de=!1,xe;(xe=N.next())!=null;){if(!de&&(xe=="`"||xe=="$"&&N.eat("{"))){G.tokenize=O;break}de=!de&&xe=="\\"}return M("quasi","string-2",N.current())}var te="([{}])";function ee(N,G){G.fatArrowAt&&(G.fatArrowAt=null);var de=N.string.indexOf("=>",N.start);if(!(de<0)){if(g){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,de));xe&&(de=xe.index)}for(var le=0,Le=!1,pt=de-1;pt>=0;--pt){var Kt=N.string.charAt(pt),_n=te.indexOf(Kt);if(_n>=0&&_n<3){if(!le){++pt;break}if(--le==0){Kt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++le;else if(v.test(Kt))Le=!0;else if(/["'\/`]/.test(Kt))for(;;--pt){if(pt==0)return;var is=N.string.charAt(pt-1);if(is==Kt&&N.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!le){++pt;break}}Le&&!le&&(G.fatArrowAt=pt)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function q(N,G,de,xe,le,Le){this.indented=N,this.column=G,this.type=de,this.prev=le,this.info=Le,xe!=null&&(this.align=xe)}function K(N,G){if(!p)return!1;for(var de=N.localVars;de;de=de.next)if(de.name==G)return!0;for(var xe=N.context;xe;xe=xe.prev)for(var de=xe.vars;de;de=de.next)if(de.name==G)return!0}function C(N,G,de,xe,le){var Le=N.cc;for(P.state=N,P.stream=le,P.marked=null,P.cc=Le,P.style=G,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var pt=Le.length?Le.pop():h?ge:J;if(pt(de,xe)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return P.marked?P.marked:de=="variable"&&K(N,xe)?"variable-2":G}}}var P={state:null,marked:null,cc:null};function I(){for(var N=arguments.length-1;N>=0;N--)P.cc.push(arguments[N])}function S(){return I.apply(null,arguments),!0}function R(N,G){for(var de=G;de;de=de.next)if(de.name==N)return!0;return!1}function B(N){var G=P.state;if(P.marked="def",!!p){if(G.context){if(G.lexical.info=="var"&&G.context&&G.context.block){var de=oe(N,G.context);if(de!=null){G.context=de;return}}else if(!R(N,G.localVars)){G.localVars=new Pe(N,G.localVars);return}}s.globalVars&&!R(N,G.globalVars)&&(G.globalVars=new Pe(N,G.globalVars))}}function oe(N,G){if(G)if(G.block){var de=oe(N,G.prev);return de?de==G.prev?G:new we(de,G.vars,!0):null}else return R(N,G.vars)?G:new we(G.prev,new Pe(N,G.vars),!1);else return null}function ue(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function we(N,G,de){this.prev=N,this.vars=G,this.block=de}function Pe(N,G){this.name=N,this.next=G}var qe=new Pe("this",new Pe("arguments",null));function Ze(){P.state.context=new we(P.state.context,P.state.localVars,!1),P.state.localVars=qe}function Ke(){P.state.context=new we(P.state.context,P.state.localVars,!0),P.state.localVars=null}Ze.lex=Ke.lex=!0;function Je(){P.state.localVars=P.state.context.vars,P.state.context=P.state.context.prev}Je.lex=!0;function ie(N,G){var de=function(){var xe=P.state,le=xe.indented;if(xe.lexical.type=="stat")le=xe.lexical.indented;else for(var Le=xe.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;xe.lexical=new q(le,P.stream.column(),N,null,xe.lexical,G)};return de.lex=!0,de}function U(){var N=P.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}U.lex=!0;function Q(N){function G(de){return de==N?S():N==";"||de=="}"||de==")"||de=="]"?I():S(G)}return G}function J(N,G){return N=="var"?S(ie("vardef",G),Yo,Q(";"),U):N=="keyword a"?S(ie("form"),V,J,U):N=="keyword b"?S(ie("form"),J,U):N=="keyword d"?P.stream.match(/^\s*$/,!1)?S():S(ie("stat"),fe,Q(";"),U):N=="debugger"?S(Q(";")):N=="{"?S(ie("}"),Ke,Bt,U,Je):N==";"?S():N=="if"?(P.state.lexical.info=="else"&&P.state.cc[P.state.cc.length-1]==U&&P.state.cc.pop()(),S(ie("form"),V,J,U,Zo)):N=="function"?S(lr):N=="for"?S(ie("form"),Ke,Za,J,Je,U):N=="class"||g&&G=="interface"?(P.marked="keyword",S(ie("form",N=="class"?N:G),Qo,U)):N=="variable"?g&&G=="declare"?(P.marked="keyword",S(J)):g&&(G=="module"||G=="enum"||G=="type")&&P.stream.match(/^\s*\w/,!1)?(P.marked="keyword",G=="enum"?S(Oe):G=="type"?S(Qa,Q("operator"),tt,Q(";")):S(ie("form"),Sn,Q("{"),ie("}"),Bt,U,U)):g&&G=="namespace"?(P.marked="keyword",S(ie("form"),ge,J,U)):g&&G=="abstract"?(P.marked="keyword",S(J)):S(ie("stat"),Ve):N=="switch"?S(ie("form"),V,Q("{"),ie("}","switch"),Ke,Bt,U,U,Je):N=="case"?S(ge,Q(":")):N=="default"?S(Q(":")):N=="catch"?S(ie("form"),Ze,ae,J,U,Je):N=="export"?S(ie("stat"),es,U):N=="import"?S(ie("stat"),Ii,U):N=="async"?S(J):G=="@"?S(ge,J):I(ie("stat"),ge,Q(";"),U)}function ae(N){if(N=="(")return S(yr,Q(")"))}function ge(N,G){return Y(N,G,!1)}function F(N,G){return Y(N,G,!0)}function V(N){return N!="("?I():S(ie(")"),fe,Q(")"),U)}function Y(N,G,de){if(P.state.fatArrowAt==P.stream.start){var xe=de?be:ve;if(N=="(")return S(Ze,ie(")"),lt(yr,")"),U,Q("=>"),xe,Je);if(N=="variable")return I(Ze,Sn,Q("=>"),xe,Je)}var le=de?he:pe;return W.hasOwnProperty(N)?S(le):N=="function"?S(lr,le):N=="class"||g&&G=="interface"?(P.marked="keyword",S(ie("form"),wf,U)):N=="keyword c"||N=="async"?S(de?F:ge):N=="("?S(ie(")"),fe,Q(")"),U,le):N=="operator"||N=="spread"?S(de?F:ge):N=="["?S(ie("]"),Rt,U,le):N=="{"?Xt(st,"}",null,le):N=="quasi"?I(Ce,le):N=="new"?S(We(de)):S()}function fe(N){return N.match(/[;\}\)\],]/)?I():I(ge)}function pe(N,G){return N==","?S(fe):he(N,G,!1)}function he(N,G,de){var xe=de==!1?pe:he,le=de==!1?ge:F;if(N=="=>")return S(Ze,de?be:ve,Je);if(N=="operator")return/\+\+|--/.test(G)||g&&G=="!"?S(xe):g&&G=="<"&&P.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(ie(">"),lt(tt,">"),U,xe):G=="?"?S(ge,Q(":"),le):S(le);if(N=="quasi")return I(Ce,xe);if(N!=";"){if(N=="(")return Xt(F,")","call",xe);if(N==".")return S(rt,xe);if(N=="[")return S(ie("]"),fe,Q("]"),U,xe);if(g&&G=="as")return P.marked="keyword",S(tt,xe);if(N=="regexp")return P.state.lastType=P.marked="operator",P.stream.backUp(P.stream.pos-P.stream.start-1),S(le)}}function Ce(N,G){return N!="quasi"?I():G.slice(G.length-2)!="${"?S(Ce):S(fe,Ee)}function Ee(N){if(N=="}")return P.marked="string-2",P.state.tokenize=D,S(Ce)}function ve(N){return ee(P.stream,P.state),I(N=="{"?J:ge)}function be(N){return ee(P.stream,P.state),I(N=="{"?J:F)}function We(N){return function(G){return G=="."?S(N?De:Me):G=="variable"&&g?S(Hn,N?he:pe):I(N?F:ge)}}function Me(N,G){if(G=="target")return P.marked="keyword",S(pe)}function De(N,G){if(G=="target")return P.marked="keyword",S(he)}function Ve(N){return N==":"?S(U,J):I(pe,Q(";"),U)}function rt(N){if(N=="variable")return P.marked="property",S()}function st(N,G){if(N=="async")return P.marked="property",S(st);if(N=="variable"||P.style=="keyword"){if(P.marked="property",G=="get"||G=="set")return S(ut);var de;return g&&P.state.fatArrowAt==P.stream.start&&(de=P.stream.match(/^\s*:\s*/,!1))&&(P.state.fatArrowAt=P.stream.pos+de[0].length),S(It)}else{if(N=="number"||N=="string")return P.marked=f?"property":P.style+" property",S(It);if(N=="jsonld-keyword")return S(It);if(g&&ue(G))return P.marked="keyword",S(st);if(N=="[")return S(ge,Dn,Q("]"),It);if(N=="spread")return S(F,It);if(G=="*")return P.marked="keyword",S(st);if(N==":")return I(It)}}function ut(N){return N!="variable"?I(It):(P.marked="property",S(lr))}function It(N){if(N==":")return S(F);if(N=="(")return I(lr)}function lt(N,G,de){function xe(le,Le){if(de?de.indexOf(le)>-1:le==","){var pt=P.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Kt,_n){return Kt==G||_n==G?I():I(N)},xe)}return le==G||Le==G?S():de&&de.indexOf(";")>-1?I(N):S(Q(G))}return function(le,Le){return le==G||Le==G?S():I(N,xe)}}function Xt(N,G,de){for(var xe=3;xe<arguments.length;xe++)P.cc.push(arguments[xe]);return S(ie(G,de),lt(N,G),U)}function Bt(N){return N=="}"?S():I(J,Bt)}function Dn(N,G){if(g){if(N==":")return S(tt);if(G=="?")return S(Dn)}}function Hr(N,G){if(g&&(N==":"||G=="in"))return S(tt)}function Ft(N){if(g&&N==":")return P.stream.match(/^\s*\w+\s+is\b/,!1)?S(ge,Fn,tt):S(tt)}function Fn(N,G){if(G=="is")return P.marked="keyword",S()}function tt(N,G){if(G=="keyof"||G=="typeof"||G=="infer"||G=="readonly")return P.marked="keyword",S(G=="typeof"?F:tt);if(N=="variable"||G=="void")return P.marked="type",S(sr);if(G=="|"||G=="&")return S(tt);if(N=="string"||N=="number"||N=="atom")return S(sr);if(N=="[")return S(ie("]"),lt(tt,"]",","),U,sr);if(N=="{")return S(ie("}"),He,U,sr);if(N=="(")return S(lt(Ot,")"),Ya,sr);if(N=="<")return S(lt(tt,">"),tt);if(N=="quasi")return I(cn,sr)}function Ya(N){if(N=="=>")return S(tt)}function He(N){return N.match(/[\}\)\]]/)?S():N==","||N==";"?S(He):I(oi,He)}function oi(N,G){if(N=="variable"||P.style=="keyword")return P.marked="property",S(oi);if(G=="?"||N=="number"||N=="string")return S(oi);if(N==":")return S(tt);if(N=="[")return S(Q("variable"),Hr,Q("]"),oi);if(N=="(")return I(Ni,oi);if(!N.match(/[;\}\)\],]/))return S()}function cn(N,G){return N!="quasi"?I():G.slice(G.length-2)!="${"?S(cn):S(tt,Pt)}function Pt(N){if(N=="}")return P.marked="string-2",P.state.tokenize=D,S(cn)}function Ot(N,G){return N=="variable"&&P.stream.match(/^\s*[?:]/,!1)||G=="?"?S(Ot):N==":"?S(tt):N=="spread"?S(Ot):I(tt)}function sr(N,G){if(G=="<")return S(ie(">"),lt(tt,">"),U,sr);if(G=="|"||N=="."||G=="&")return S(tt);if(N=="[")return S(tt,Q("]"),sr);if(G=="extends"||G=="implements")return P.marked="keyword",S(tt);if(G=="?")return S(tt,Q(":"),tt)}function Hn(N,G){if(G=="<")return S(ie(">"),lt(tt,">"),U,sr)}function mr(){return I(tt,un)}function un(N,G){if(G=="=")return S(tt)}function Yo(N,G){return G=="enum"?(P.marked="keyword",S(Oe)):I(Sn,Dn,vr,bf)}function Sn(N,G){if(g&&ue(G))return P.marked="keyword",S(Sn);if(N=="variable")return B(G),S();if(N=="spread")return S(Sn);if(N=="[")return Xt(al,"]");if(N=="{")return Xt($i,"}")}function $i(N,G){return N=="variable"&&!P.stream.match(/^\s*:/,!1)?(B(G),S(vr)):(N=="variable"&&(P.marked="property"),N=="spread"?S(Sn):N=="}"?I():N=="["?S(ge,Q("]"),Q(":"),$i):S(Q(":"),Sn,vr))}function al(){return I(Sn,vr)}function vr(N,G){if(G=="=")return S(F)}function bf(N){if(N==",")return S(Yo)}function Zo(N,G){if(N=="keyword b"&&G=="else")return S(ie("form","else"),J,U)}function Za(N,G){if(G=="await")return S(Za);if(N=="(")return S(ie(")"),cl,U)}function cl(N){return N=="var"?S(Yo,Mi):N=="variable"?S(Mi):I(Mi)}function Mi(N,G){return N==")"?S():N==";"?S(Mi):G=="in"||G=="of"?(P.marked="keyword",S(ge,Mi)):I(ge,Mi)}function lr(N,G){if(G=="*")return P.marked="keyword",S(lr);if(N=="variable")return B(G),S(lr);if(N=="(")return S(Ze,ie(")"),lt(yr,")"),U,Ft,J,Je);if(g&&G=="<")return S(ie(">"),lt(mr,">"),U,lr)}function Ni(N,G){if(G=="*")return P.marked="keyword",S(Ni);if(N=="variable")return B(G),S(Ni);if(N=="(")return S(Ze,ie(")"),lt(yr,")"),U,Ft,Je);if(g&&G=="<")return S(ie(">"),lt(mr,">"),U,Ni)}function Qa(N,G){if(N=="keyword"||N=="variable")return P.marked="type",S(Qa);if(G=="<")return S(ie(">"),lt(mr,">"),U)}function yr(N,G){return G=="@"&&S(ge,yr),N=="spread"?S(yr):g&&ue(G)?(P.marked="keyword",S(yr)):g&&N=="this"?S(Dn,vr):I(Sn,Dn,vr)}function wf(N,G){return N=="variable"?Qo(N,G):br(N,G)}function Qo(N,G){if(N=="variable")return B(G),S(br)}function br(N,G){if(G=="<")return S(ie(">"),lt(mr,">"),U,br);if(G=="extends"||G=="implements"||g&&N==",")return G=="implements"&&(P.marked="keyword"),S(g?tt:ge,br);if(N=="{")return S(ie("}"),wr,U)}function wr(N,G){if(N=="async"||N=="variable"&&(G=="static"||G=="get"||G=="set"||g&&ue(G))&&P.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return P.marked="keyword",S(wr);if(N=="variable"||P.style=="keyword")return P.marked="property",S(xo,wr);if(N=="number"||N=="string")return S(xo,wr);if(N=="[")return S(ge,Dn,Q("]"),xo,wr);if(G=="*")return P.marked="keyword",S(wr);if(g&&N=="(")return I(Ni,wr);if(N==";"||N==",")return S(wr);if(N=="}")return S();if(G=="@")return S(ge,wr)}function xo(N,G){if(G=="!"||G=="?")return S(xo);if(N==":")return S(tt,vr);if(G=="=")return S(F);var de=P.state.lexical.prev,xe=de&&de.info=="interface";return I(xe?Ni:lr)}function es(N,G){return G=="*"?(P.marked="keyword",S(rs,Q(";"))):G=="default"?(P.marked="keyword",S(ge,Q(";"))):N=="{"?S(lt(ts,"}"),rs,Q(";")):I(J)}function ts(N,G){if(G=="as")return P.marked="keyword",S(Q("variable"));if(N=="variable")return I(F,ts)}function Ii(N){return N=="string"?S():N=="("?I(ge):N=="."?I(pe):I(ns,Br,rs)}function ns(N,G){return N=="{"?Xt(ns,"}"):(N=="variable"&&B(G),G=="*"&&(P.marked="keyword"),S(ul))}function Br(N){if(N==",")return S(ns,Br)}function ul(N,G){if(G=="as")return P.marked="keyword",S(ns)}function rs(N,G){if(G=="from")return P.marked="keyword",S(ge)}function Rt(N){return N=="]"?S():I(lt(F,"]"))}function Oe(){return I(ie("form"),Sn,Q("{"),ie("}"),lt(si,"}"),U,U)}function si(){return I(Sn,vr)}function fl(N,G){return N.lastType=="operator"||N.lastType==","||w.test(G.charAt(0))||/[,.]/.test(G.charAt(0))}function Yn(N,G,de){return G.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(G.lastType)||G.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(de||0)))}return{startState:function(N){var G={tokenize:O,lastType:"sof",cc:[],lexical:new q((N||0)-l,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:N||0};return s.globalVars&&typeof s.globalVars=="object"&&(G.globalVars=s.globalVars),G},token:function(N,G){if(N.sol()&&(G.lexical.hasOwnProperty("align")||(G.lexical.align=!1),G.indented=N.indentation(),ee(N,G)),G.tokenize!=z&&N.eatSpace())return null;var de=G.tokenize(N,G);return A=="comment"?de:(G.lastType=A=="operator"&&(E=="++"||E=="--")?"incdec":A,C(G,de,A,E,N))},indent:function(N,G){if(N.tokenize==z||N.tokenize==D)return n.Pass;if(N.tokenize!=O)return 0;var de=G&&G.charAt(0),xe=N.lexical,le;if(!/^\s*else\b/.test(G))for(var Le=N.cc.length-1;Le>=0;--Le){var pt=N.cc[Le];if(pt==U)xe=xe.prev;else if(pt!=Zo&&pt!=Je)break}for(;(xe.type=="stat"||xe.type=="form")&&(de=="}"||(le=N.cc[N.cc.length-1])&&(le==pe||le==he)&&!/^[,\.=+\-*:?[\(]/.test(G));)xe=xe.prev;u&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Kt=xe.type,_n=de==Kt;return Kt=="vardef"?xe.indented+(N.lastType=="operator"||N.lastType==","?xe.info.length+1:0):Kt=="form"&&de=="{"?xe.indented:Kt=="form"?xe.indented+l:Kt=="stat"?xe.indented+(fl(N,G)?u||l:0):xe.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(G)?l:2*l):xe.align?xe.column+(_n?0:1):xe.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:Yn,skipExpression:function(N){C(N,"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})})}()),Z0.exports}m1();var ey={exports:{}},ty;function v1(){return ty||(ty=1,function(e,t){(function(n){n(sl())})(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},s={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:s;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(we){return R.tokenize=we,we(S,R)}var oe=S.next();if(oe=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(A("atom","]]>")):null:S.match("--")?B(A("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=A("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=L,"tag bracket");if(oe=="&"){var ue;return S.eat("#")?S.eat("x")?ue=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ue=S.eatWhile(/[\d]/)&&S.eat(";"):ue=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ue?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function L(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=D,R.tagName=R.tagStart=null;var oe=R.tokenize(S,R);return oe?oe+" 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,oe){for(;!B.eol();)if(B.next()==S){oe.tokenize=L;break}return"string"};return R.isInAttribute=!0,R}function A(S,R){return function(B,oe){for(;!B.eol();){if(B.match(R)){oe.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var oe;(oe=R.next())!=null;){if(oe=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(oe==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function M(S){return S&&S.toLowerCase()}function O(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 k(S){S.context&&(S.context=S.context.prev)}function z(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(M(B))||!h.contextGrabbers[M(B)].hasOwnProperty(M(R))))return;k(S)}}function D(S,R,B){return S=="openTag"?(B.tagStart=R.column(),te):S=="closeTag"?ee:D}function te(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",te)}function ee(S,R,B){if(S=="word"){var oe=R.current();return B.context&&B.context.tagName!=oe&&h.implicitlyClosed.hasOwnProperty(M(B.context.tagName))&&k(B),B.context&&B.context.tagName==oe||h.matchClosing===!1?(y="tag",W):(y="tag error",q)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",W(S,R,B)):(y="error",q)}function W(S,R,B){return S!="endTag"?(y="error",W):(k(B),D)}function q(S,R,B){return y="error",W(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",C;if(S=="endTag"||S=="selfcloseTag"){var oe=B.tagName,ue=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(M(oe))?z(B,oe):(z(B,oe),B.context=new O(B,oe,ue==B.indented)),D}return y="error",K}function C(S,R,B){return S=="equals"?P:(h.allowMissing||(y="error"),K(S,R,B))}function P(S,R,B){return S=="string"?I:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function I(S,R,B){return S=="string"?I:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:D,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 oe=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(oe&&oe.noIndent)return n.Pass;if(S.tokenize!=L&&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 ue=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ue&&ue[1])for(;oe;)if(oe.tagName==ue[2]){oe=oe.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M(oe.tagName)))oe=oe.prev;else break;else if(ue)for(;oe;){var we=h.contextGrabbers[M(oe.tagName)];if(we&&we.hasOwnProperty(M(ue[2])))oe=oe.prev;else break}for(;oe&&oe.prev&&!oe.startOfLine;)oe=oe.prev;return oe?oe.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==P&&(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})})}()),ey.exports}v1();var ny={exports:{}},ry;function Ade(){return ry||(ry=1,function(e,t){(function(n){n(sl(),v1(),m1())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function s(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&s(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 L=w.tagName;w.tagName=null;var $=f.indent(w,"","");return w.tagName=L,$}function g(w,L){return L.context.mode==f?v(w,L,L.context):y(w,L,L.context)}function v(w,L,$){if($.depth==2)return w.match(/^.*?\*\//)?$.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute($.state);var A=p($.state),E=$.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?A-=l.indentUnit:$.prev.state.lexical&&(A=$.prev.state.lexical.indented)}else $.depth==1&&(A+=l.indentUnit);return L.context=new i(n.startState(h,A),h,0,L.context),null}if($.depth==1){if(w.peek()=="<")return f.skipAttribute($.state),L.context=new i(n.startState(f,p($.state)),f,0,L.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return $.depth=2,g(w,L)}var M=f.token(w,$.state),O=w.current(),k;return/\btag\b/.test(M)?/>$/.test(O)?$.state.context?$.depth=0:L.context=L.context.prev:/^</.test(O)&&($.depth=1):!M&&(k=O.indexOf("{"))>-1&&w.backUp(O.length-k),M}function y(w,L,$){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,$.state))return L.context=new i(n.startState(f,h.indent($.state,"","")),f,0,L.context),h.skipExpression($.state),null;var A=h.token(w,$.state);if(!A&&$.depth!=null){var E=w.current();E=="{"?$.depth++:E=="}"&&--$.depth==0&&(L.context=L.context.prev)}return A}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,L,$){return w.context.mode.indent(w.context.state,L,$)},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}})})}()),ny.exports}Ade();var iy={exports:{}},oy;function Lde(){return oy||(oy=1,function(e,t){(function(n){n(sl())})(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 s(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?s(p):i(p)},20)}function u(p){h(p)&&s(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),iy.exports}Lde();var sy={exports:{}},ly;function $de(){return ly||(ly=1,function(e,t){(function(n){n(sl())})(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],L=p.pos;function $(){n.off(document,"mousemove",A),n.off(document,"mouseup",$)}function A(E){if(E.which!=1)return $();p.moveTo(L+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",A),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 s=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<s&&(this.size-=s-g,g=s),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)}})}()),sy.exports}$de();const Mn=rn();function Mde(e,t,n={}){const i=Ede.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let s=!1;return i.on("change",()=>{if(s){s=!1;return}t.value=i.getValue()}),St(t,l=>{if(l!==i.getValue()){s=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),Zu(()=>{Mn.value=void 0}),lp(i)}async function Nde(e){var t;hf({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null,column:null})}function Ide(e,t){hf({file:e,column:t.column-1,line:t.line,view:"editor",test:js.value})}function Pde(e,t){if(!t.location)return;const{line:n,column:i,file:s}=t.location;if(e.file.filepath!==s)return Ip(s,n,i);hf({file:e.file.id,column:i-1,line:n,view:"editor",test:js.value})}const ll=lM(),Ode=U$(ll),Rde={class:"scrolls scrolls-rounded task-error"},zde=["onClickPassive"],Dde=["innerHTML"],Fde=at({__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=_e(()=>Pp(ll.value)),s=_e(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),l=_e(()=>t.error.diff?i.value.toHtml(sa(t.error.diff)):void 0);function u(f){return _fe(f.file,t.filename)?Ide(t.fileId,f):Ip(f.file,f.line,f.column)}return(f,h)=>{const p=Dr("tooltip");return se(),ye("div",Rde,[ne("pre",null,[ne("b",null,Re(f.error.name),1),dt(": "+Re(f.error.message),1)]),(se(!0),ye(nt,null,hr(f.error.stacks,(g,v)=>(se(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ne("pre",null," - "+Re(n(g.file))+":"+Re(g.line)+":"+Re(g.column),1),ct(ne("div",{class:"i-carbon-launch c-red-600 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,zde),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),j(s)?(se(),ye("pre",{key:0,"data-testid":"diff",innerHTML:j(l)},null,8,Dde)):je("",!0)])}}}),y1=ni(Fde,[["__scopeId","data-v-e0212169"]]);function b1(e){var n;const t=(n=e.meta)==null?void 0:n.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function w1(){const e=Ue(!1),t=Ue(Date.now()),n=Ue(),i=_e(()=>{var f;const l=(f=n.value)==null?void 0:f.id,u=t.value;return l?`/__screenshot-error?id=${encodeURIComponent(l)}&t=${u}`:void 0});function s(l){n.value=l,t.value=Date.now(),e.value=!0}return{currentTask:n,showScreenshot:e,currentScreenshotUrl:i,showScreenshotModal:s}}const Hde={"h-full":"",class:"scrolls"},Bde={key:0},Wde={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},jde={flex:"~ gap-2 items-center"},qde={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ude=["innerHTML"],Vde={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Gde={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Xde={class:"flex gap-2","overflow-hidden":""},Kde={class:"font-bold","ws-nowrap":"",truncate:""},Jde=["href","download"],Yde=["onClick"],Zde={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Qde={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},ehe={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":""},the={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},nhe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},rhe=at({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=_e(()=>{var v;return!t.test.result||!((v=t.test.result.errors)!=null&&v.length)?null:r1(ll.value,[t.test])[0]});function i(v){return Pde(t.test,v)}const{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=w1();function h(v){return`${sx(el.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=_e(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,y)=>{var O,k,z;const w=ri,L=y1,$=kde,A=h1,E=zp,M=Dr("tooltip");return se(),ye("div",Hde,[j(n)?(se(),ye("div",Bde,[ne("div",Wde,[ne("div",jde,[j(Nt)&&((O=v.test.meta)!=null&&O.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(w,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:y[0]||(y[0]=D=>j(u)(v.test))},null,512),[[M,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(w,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:y[1]||(y[1]=D=>j(b1)(v.test))},null,512),[[M,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(k=v.test.result)!=null&&k.htmlError?(se(),ye("div",qde,[ne("pre",{innerHTML:v.test.result.htmlError},null,8,Ude)])):(z=v.test.result)!=null&&z.errors?(se(!0),ye(nt,{key:1},hr(v.test.result.errors,(D,te)=>(se(),Ye(L,{key:te,"file-id":v.test.file.id,error:D,filename:v.test.file.name,root:j(el).root},null,8,["file-id","error","filename","root"]))),128)):je("",!0)])])):(se(),ye("div",Vde," All tests passed in this file ")),v.test.annotations.length?(se(),ye(nt,{key:2},[y[5]||(y[5]=ne("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),ye(nt,null,hr(v.test.annotations,D=>{var te;return se(),ye("div",{key:D.type+D.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ne("div",Gde,[ne("div",Xde,[ne("span",Kde,Re(D.type),1),D.attachment&&!((te=D.attachment.contentType)!=null&&te.startsWith("image/"))?(se(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:j(Pu)(D.attachment),download:j(g1)(D.message,D.attachment.contentType)},y[4]||(y[4]=[ne("span",{class:"i-carbon:download block"},null,-1),dt(" Download ")]),8,Jde)):je("",!0)]),ne("div",null,[D.location&&D.location.file===v.test.file.filepath?ct((se(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:ee=>i(D)},[dt(Re(h(D.location)),1)],8,Yde)),[[M,"Open in Editor",void 0,{bottom:!0}]]):D.location&&D.location.file!==v.test.file.filepath?(se(),ye("span",Zde,Re(h(D.location)),1)):je("",!0)])]),ne("div",Qde,Re(D.message),1),Ie($,{annotation:D},null,8,["annotation"])])}),128))],64)):je("",!0),j(g).length?(se(),ye(nt,{key:3},[y[6]||(y[6]=ne("h1",{"m-2":""}," Test Meta ",-1)),ne("div",ehe,[(se(!0),ye(nt,null,hr(j(g),([D,te])=>(se(),ye(nt,{key:D},[ne("div",the,Re(D),1),ne("pre",nhe,Re(te),1)],64))),128))])],64)):je("",!0),j(Nt)?(se(),Ye(E,{key:4,modelValue:j(l),"onUpdate:modelValue":y[3]||(y[3]=D=>kt(l)?l.value=D:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(gp,{key:0},{default:it(()=>[Ie(A,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:y[2]||(y[2]=D=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),ihe=ni(rhe,[["__scopeId","data-v-efadcc09"]]),ohe={"h-full":"",class:"scrolls"},she=["id"],lhe={flex:"~ gap-2 items-center"},ahe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},che=["innerHTML"],uhe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},fhe=at({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(h,p){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>n(v,p+1))]}const i=_e(()=>{var y,w;const h=t.file,p=((y=h.tasks)==null?void 0:y.flatMap(L=>n(L,0)))??[],g=h.result;if((w=g==null?void 0:g.errors)==null?void 0:w[0]){const L={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(L)}return p.length>0?r1(ll.value,p):p}),{currentTask:s,showScreenshot:l,showScreenshotModal:u,currentScreenshotUrl:f}=w1();return(h,p)=>{const g=ri,v=y1,y=h1,w=zp,L=Dr("tooltip");return se(),ye("div",ohe,[j(i).length?(se(!0),ye(nt,{key:0},hr(j(i),$=>{var A,E,M,O;return se(),ye("div",{id:$.id,key:$.id},[ne("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:nn({"margin-left":`${(A=$.result)!=null&&A.htmlError?.5:2*$.level+.5}rem`})},[ne("div",lhe,[ne("span",null,Re($.name),1),j(Nt)&&((E=$.meta)!=null&&E.failScreenshotPath)?(se(),ye(nt,{key:0},[ct(Ie(g,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:k=>j(u)($)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),ct(Ie(g,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:k=>j(b1)($)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):je("",!0)]),(M=$.result)!=null&&M.htmlError?(se(),ye("div",ahe,[ne("pre",{innerHTML:$.result.htmlError},null,8,che)])):(O=$.result)!=null&&O.errors?(se(!0),ye(nt,{key:1},hr($.result.errors,(k,z)=>(se(),Ye(v,{key:z,error:k,filename:h.file.name,root:j(el).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):je("",!0)],4)],8,she)}),128)):(se(),ye("div",uhe," All tests passed in this file ")),j(Nt)?(se(),Ye(w,{key:2,modelValue:j(l),"onUpdate:modelValue":p[1]||(p[1]=$=>kt(l)?l.value=$:null),direction:"right"},{default:it(()=>[j(s)?(se(),Ye(gp,{key:0},{default:it(()=>[Ie(y,{file:j(s).file.filepath,name:j(s).name,url:j(f),onClose:p[0]||(p[0]=$=>l.value=!1)},null,8,["file","name","url"])]),_:1})):je("",!0)]),_:1},8,["modelValue"])):je("",!0)])}}}),dhe=ni(fhe,[["__scopeId","data-v-d1b5950e"]]),hhe={border:"b base","p-4":""},phe=["innerHTML"],ghe=at({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(se(),ye("div",hhe,[ne("div",{"text-xs":"","mb-1":"",class:ot(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(n.time))+" | "+Re(n.taskName)+" | "+Re(n.type),3),ne("pre",{"data-type":"html",innerHTML:n.content},null,8,phe)]))}}),mhe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},vhe={key:1,p6:""},yhe=at({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const i=f1.value;if(i){const s=Pp(ll.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:s.toHtml(sa(h))}))}});function n(i){const s=i&&ht.state.idMap.get(i);return s&&"filepath"in s?s.name:(s?h$(s).slice(1).join(" > "):"-")||"-"}return(i,s)=>{var u;const l=ghe;return(u=j(t))!=null&&u.length?(se(),ye("div",mhe,[(se(!0),ye(nt,null,hr(j(t),({taskId:f,type:h,time:p,content:g})=>(se(),ye("div",{key:f,"font-mono":""},[Ie(l,{"task-name":n(f),type:h,time:p,content:g},null,8,["task-name","type","time","content"])]))),128))])):(se(),ye("div",vhe,s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. "),ne("pre",{inline:""},"console.log(foo)",-1),dt(") ")])))}}}),x1=at({__name:"CodeMirrorContainer",props:pa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:pa(["save"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=ef(e,"modelValue"),s=OT(),l={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=Ue();return bo(async()=>{const f=Mde(u,i,{...s,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.setSize("100%","100%"),f.clearHistory(),Mn.value=f,setTimeout(()=>Mn.value.refresh(),100)}),(f,h)=>(se(),ye("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",f.saving?"codemirror-busy":void 0])},[ne("textarea",{ref_key:"el",ref:u},null,512)],2))}}),bhe=at({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,s=Ue(""),l=rn(void 0),u=Ue(!1),f=Ue(!0),h=Ue(!1),p=Ue();St(()=>n.file,async()=>{var W;if(!h.value){f.value=!0;try{if(!n.file||!((W=n.file)!=null&&W.filepath)){s.value="",l.value=s.value,u.value=!1,f.value=!1;return}s.value=await ht.rpc.readTestFile(n.file.filepath)||"",l.value=s.value,u.value=!1}catch(q){console.error("cannot fetch file",q)}await Et(),f.value=!1}},{immediate:!0}),St(()=>[f.value,h.value,n.file,Jx.value,Yx.value],([W,q,K,C,P])=>{!W&&!q&&(C!=null?Et(()=>{var R;const I=p.value,S=I??{line:(C??1)-1,ch:P??0};I?p.value=void 0:((R=Mn.value)==null||R.scrollIntoView(S,100),Et(()=>{var B,oe;(B=Mn.value)==null||B.focus(),(oe=Mn.value)==null||oe.setCursor(S)}))}):Et(()=>{var I;(I=Mn.value)==null||I.focus()}))},{flush:"post"});const g=_e(()=>{var W,q;return((q=(W=n.file)==null?void 0:W.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),v=Ue(),y=_e(()=>{var K;const W=[];function q(C){var P;(P=C.result)!=null&&P.errors&&W.push(...C.result.errors),C.type==="suite"&&C.tasks.forEach(q)}return(K=n.file)==null||K.tasks.forEach(q),W}),w=_e(()=>{var K;const W=[];function q(C){C.type==="test"&&W.push(...C.annotations),C.type==="suite"&&C.tasks.forEach(q)}return(K=n.file)==null||K.tasks.forEach(q),W}),L=[],$=[],A=[],E=Ue(!1);function M(){A.forEach(([W,q,K])=>{W.removeEventListener("click",q),K()}),A.length=0}zx(v,()=>{var W;(W=Mn.value)==null||W.refresh()});function O(){u.value=l.value!==Mn.value.getValue()}St(u,W=>{i("draft",W)},{immediate:!0});function k(W){const q=((W==null?void 0:W.stacks)||[]).filter(R=>{var B;return R.file&&R.file===((B=n.file)==null?void 0:B.filepath)}),K=q==null?void 0:q[0];if(!K)return;const C=document.createElement("div");C.className="op80 flex gap-x-2 items-center";const P=document.createElement("pre");P.className="c-red-600 dark:c-red-400",P.textContent=`${" ".repeat(K.column)}^ ${W.name}: ${(W==null?void 0:W.message)||""}`,C.appendChild(P);const I=document.createElement("span");I.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",I.tabIndex=0,I.ariaLabel="Open in Editor",jw(I,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Ip(K.file,K.line,K.column)};I.addEventListener("click",S),C.appendChild(I),A.push([I,S,()=>xp(I)]),$.push(Mn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),L.push(Mn.value.addLineWidget(K.line-1,C))}function z(W){var B,oe;if(!W.location)return;const{line:q,file:K}=W.location;if(K!==((B=n.file)==null?void 0:B.filepath))return;const C=document.createElement("div");C.classList.add("wrap","bg-active","py-3","px-6","my-1"),C.role="note";const P=document.createElement("div");P.classList.add("block","text-black","dark:text-white");const I=document.createElement("span");I.textContent=`${W.type}: `,I.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=W.message.replace(/[^\r]\n/,`\r
50
50
  `),P.append(I,S),C.append(P);const R=W.attachment;if(R!=null&&R.path||R!=null&&R.body)if((oe=R.contentType)!=null&&oe.startsWith("image/")){const ue=document.createElement("a"),we=document.createElement("img");ue.classList.add("inline-block","mt-3"),ue.style.maxWidth="50vw";const Pe=R.path||R.body;typeof Pe=="string"&&(Pe.startsWith("http://")||Pe.startsWith("https://"))?(we.setAttribute("src",Pe),ue.referrerPolicy="no-referrer"):we.setAttribute("src",Pu(R)),ue.target="_blank",ue.href=we.src,ue.append(we),C.append(ue)}else{const ue=document.createElement("a");ue.href=Pu(R),ue.download=g1(W.message,R.contentType),ue.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const we=document.createElement("div");we.classList.add("i-carbon:download","block");const Pe=document.createElement("span");Pe.textContent="Download",ue.append(we,Pe),C.append(ue)}L.push(Mn.value.addLineWidget(q-1,C))}const{pause:D,resume:te}=St([Mn,y,w,$s],([W,q,K,C])=>{if(!W){L.length=0,$.length=0,M();return}C&&(W.off("changes",O),M(),L.forEach(P=>P.clear()),$.forEach(P=>W==null?void 0:W.removeLineClass(P,"wrap")),L.length=0,$.length=0,setTimeout(()=>{q.forEach(k),K.forEach(z),E.value||W.clearHistory(),W.on("changes",O)},100))},{flush:"post"});Lp(()=>[$s.value,h.value,p.value],([W,q],K)=>{var C;W&&!q&&K&&K[2]&&((C=Mn.value)==null||C.setCursor(K[2]))},{debounce:100,flush:"post"});async function ee(W){if(h.value)return;D(),h.value=!0,await Et();const q=Mn.value;q&&(q.setOption("readOnly",!0),await Et(),q.refresh()),p.value=q==null?void 0:q.getCursor(),q==null||q.off("changes",O),M(),L.forEach(K=>K.clear()),$.forEach(K=>q==null?void 0:q.removeLineClass(K,"wrap")),L.length=0,$.length=0;try{E.value=!0,await ht.rpc.saveTestFile(n.file.filepath,W),l.value=W,u.value=!1}catch(K){console.error("error saving file",K)}E.value||q==null||q.clearHistory();try{await R0($s).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await R0($s).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(k),w.value.forEach(z),q==null||q.on("changes",O),h.value=!1,await Et(),q&&(q.setOption("readOnly",!1),await Et(),q.refresh()),te()}return Fa(M),(W,q)=>{const K=x1;return se(),Ye(K,_i({ref_key:"editor",ref:v,modelValue:j(s),"onUpdate:modelValue":q[0]||(q[0]=C=>kt(s)?s.value=C:null),"h-full":""},{lineNumbers:!0,readOnly:j(pr),saving:j(h)},{mode:j(g),"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"])}}}),whe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},xhe={"p-4":"",relative:""},She={op50:"","font-mono":"","text-sm":""},_he={key:0,"p-5":""},khe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},The={key:0},Che={p:"x3 y-1","bg-overlay":"",border:"base b t"},Ehe=at({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,s=X$(()=>ht.rpc.getTransformResult(n.projectName,n.id,!!Nt)),l=_e(()=>{var p;return((p=n.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=_e(()=>{var p,g;return((g=(p=s.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=_e(()=>{var p,g,v,y;return{mappings:((g=(p=s.value)==null?void 0:p.map)==null?void 0:g.mappings)??"",version:(y=(v=s.value)==null?void 0:v.map)==null?void 0:y.version}});return Ix("Escape",()=>{i("close")}),(p,g)=>{const v=ri,y=x1;return se(),ye("div",whe,[ne("div",xhe,[g[1]||(g[1]=ne("p",null,"Module Info",-1)),ne("p",She,Re(p.id),1),Ie(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=w=>i("close"))})]),j(s)?(se(),ye(nt,{key:1},[ne("div",khe,[g[2]||(g[2]=ne("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),g[3]||(g[3]=ne("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Ie(y,_i({"h-full":"","model-value":j(u),"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"]),Ie(y,_i({"h-full":"","model-value":j(f),"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"])]),j(h).mappings!==""?(se(),ye("div",The,[ne("div",Che," Source map (v"+Re(j(h).version)+") ",1),Ie(y,_i({"model-value":j(h).mappings,"read-only":""},{lineNumbers:!0},{mode:j(l)}),null,16,["model-value","mode"])])):je("",!0)],64)):(se(),ye("div",_he," No transform result found for this module. "))])}}});function Ahe(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Nh="http://www.w3.org/1999/xhtml";const ay={svg:"http://www.w3.org/2000/svg",xhtml:Nh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pf(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ay.hasOwnProperty(t)?{space:ay[t],local:e}:e}function Lhe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Nh&&t.documentElement.namespaceURI===Nh?t.createElement(e):t.createElementNS(n,e)}}function $he(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function S1(e){var t=pf(e);return(t.local?$he:Lhe)(t)}function Mhe(){}function Dp(e){return e==null?Mhe:function(){return this.querySelector(e)}}function Nhe(e){typeof e!="function"&&(e=Dp(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=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 or(i,this._parents)}function Ihe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Phe(){return[]}function _1(e){return e==null?Phe:function(){return this.querySelectorAll(e)}}function Ohe(e){return function(){return Ihe(e.apply(this,arguments))}}function Rhe(e){typeof e=="function"?e=Ohe(e):e=_1(e);for(var t=this._groups,n=t.length,i=[],s=[],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)),s.push(h));return new or(i,s)}function k1(e){return function(){return this.matches(e)}}function T1(e){return function(t){return t.matches(e)}}var zhe=Array.prototype.find;function Dhe(e){return function(){return zhe.call(this.children,e)}}function Fhe(){return this.firstElementChild}function Hhe(e){return this.select(e==null?Fhe:Dhe(typeof e=="function"?e:T1(e)))}var Bhe=Array.prototype.filter;function Whe(){return Array.from(this.children)}function jhe(e){return function(){return Bhe.call(this.children,e)}}function qhe(e){return this.selectAll(e==null?Whe:jhe(typeof e=="function"?e:T1(e)))}function Uhe(e){typeof e!="function"&&(e=k1(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new or(i,this._parents)}function C1(e){return new Array(e.length)}function Vhe(){return new or(this._enter||this._groups.map(C1),this._parents)}function Ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ou.prototype={constructor:Ou,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 Ghe(e){return function(){return e}}function Xhe(e,t,n,i,s,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 Ou(e,l[u]);for(;u<h;++u)(f=t[u])&&(s[u]=f)}function Khe(e,t,n,i,s,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)?s[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 Ou(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(s[f]=h)}function Jhe(e){return e.__data__}function Yhe(e,t){if(!arguments.length)return Array.from(this,Jhe);var n=t?Khe:Xhe,i=this._parents,s=this._groups;typeof e!="function"&&(e=Ghe(e));for(var l=s.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=s[p],y=v.length,w=Zhe(e.call(g,g&&g.__data__,p,i)),L=w.length,$=f[p]=new Array(L),A=u[p]=new Array(L),E=h[p]=new Array(y);n(g,v,$,A,E,w,t);for(var M=0,O=0,k,z;M<L;++M)if(k=$[M]){for(M>=O&&(O=M+1);!(z=A[O])&&++O<L;);k._next=z||null}}return u=new or(u,i),u._enter=f,u._exit=h,u}function Zhe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Qhe(){return new or(this._exit||this._groups.map(C1),this._parents)}function epe(e,t,n){var i=this.enter(),s=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?l.remove():n(l),i&&s?i.merge(s).order():s}function tpe(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,s=n.length,l=i.length,u=Math.min(s,l),f=new Array(s),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,L=0;L<v;++L)(w=p[L]||g[L])&&(y[L]=w);for(;h<s;++h)f[h]=n[h];return new or(f,this._parents)}function npe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],s=i.length-1,l=i[s],u;--s>=0;)(u=i[s])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function rpe(e){e||(e=ipe);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,s=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=s[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new or(s,this._parents).order()}function ipe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ope(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function spe(){return Array.from(this)}function lpe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,l=i.length;s<l;++s){var u=i[s];if(u)return u}return null}function ape(){let e=0;for(const t of this)++e;return e}function cpe(){return!this.node()}function upe(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var s=t[n],l=0,u=s.length,f;l<u;++l)(f=s[l])&&e.call(f,f.__data__,l,s);return this}function fpe(e){return function(){this.removeAttribute(e)}}function dpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hpe(e,t){return function(){this.setAttribute(e,t)}}function ppe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gpe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function mpe(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 vpe(e,t){var n=pf(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?dpe:fpe:typeof t=="function"?n.local?mpe:gpe:n.local?ppe:hpe)(n,t))}function E1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ype(e){return function(){this.style.removeProperty(e)}}function bpe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function wpe(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function xpe(e,t,n){return arguments.length>1?this.each((t==null?ype:typeof t=="function"?wpe:bpe)(e,t,n??"")):tl(this.node(),e)}function tl(e,t){return e.style.getPropertyValue(t)||E1(e).getComputedStyle(e,null).getPropertyValue(t)}function Spe(e){return function(){delete this[e]}}function _pe(e,t){return function(){this[e]=t}}function kpe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Tpe(e,t){return arguments.length>1?this.each((t==null?Spe:typeof t=="function"?kpe:_pe)(e,t)):this.node()[e]}function A1(e){return e.trim().split(/^|\s+/)}function Fp(e){return e.classList||new L1(e)}function L1(e){this._node=e,this._names=A1(e.getAttribute("class")||"")}L1.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 $1(e,t){for(var n=Fp(e),i=-1,s=t.length;++i<s;)n.add(t[i])}function M1(e,t){for(var n=Fp(e),i=-1,s=t.length;++i<s;)n.remove(t[i])}function Cpe(e){return function(){$1(this,e)}}function Epe(e){return function(){M1(this,e)}}function Ape(e,t){return function(){(t.apply(this,arguments)?$1:M1)(this,e)}}function Lpe(e,t){var n=A1(e+"");if(arguments.length<2){for(var i=Fp(this.node()),s=-1,l=n.length;++s<l;)if(!i.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?Ape:t?Cpe:Epe)(n,t))}function $pe(){this.textContent=""}function Mpe(e){return function(){this.textContent=e}}function Npe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ipe(e){return arguments.length?this.each(e==null?$pe:(typeof e=="function"?Npe:Mpe)(e)):this.node().textContent}function Ppe(){this.innerHTML=""}function Ope(e){return function(){this.innerHTML=e}}function Rpe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function zpe(e){return arguments.length?this.each(e==null?Ppe:(typeof e=="function"?Rpe:Ope)(e)):this.node().innerHTML}function Dpe(){this.nextSibling&&this.parentNode.appendChild(this)}function Fpe(){return this.each(Dpe)}function Hpe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bpe(){return this.each(Hpe)}function Wpe(e){var t=typeof e=="function"?e:S1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function jpe(){return null}function qpe(e,t){var n=typeof e=="function"?e:S1(e),i=t==null?jpe:typeof t=="function"?t:Dp(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Upe(){var e=this.parentNode;e&&e.removeChild(this)}function Vpe(){return this.each(Upe)}function Gpe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xpe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Kpe(e){return this.select(e?Xpe:Gpe)}function Jpe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ype(e){return function(t){e.call(this,t,this.__data__)}}function Zpe(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 Qpe(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,s=t.length,l;n<s;++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 ege(e,t,n){return function(){var i=this.__on,s,l=Ype(t);if(i){for(var u=0,f=i.length;u<f;++u)if((s=i[u]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=l,s.options=n),s.value=t;return}}this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(s):this.__on=[s]}}function tge(e,t,n){var i=Zpe(e+""),s,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(s=0,g=f[h];s<l;++s)if((u=i[s]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?ege:Qpe,s=0;s<l;++s)this.each(f(i[s],t,n));return this}function N1(e,t,n){var i=E1(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,n):(s=i.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function nge(e,t){return function(){return N1(this,e,t)}}function rge(e,t){return function(){return N1(this,e,t.apply(this,arguments))}}function ige(e,t){return this.each((typeof t=="function"?rge:nge)(e,t))}function*oge(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,l=i.length,u;s<l;++s)(u=i[s])&&(yield u)}var I1=[null];function or(e,t){this._groups=e,this._parents=t}function Xa(){return new or([[document.documentElement]],I1)}function sge(){return this}or.prototype=Xa.prototype={constructor:or,select:Nhe,selectAll:Rhe,selectChild:Hhe,selectChildren:qhe,filter:Uhe,data:Yhe,enter:Vhe,exit:Qhe,join:epe,merge:tpe,selection:sge,order:npe,sort:rpe,call:ope,nodes:spe,node:lpe,size:ape,empty:cpe,each:upe,attr:vpe,style:xpe,property:Tpe,classed:Lpe,text:Ipe,html:zpe,raise:Fpe,lower:Bpe,append:Wpe,insert:qpe,remove:Vpe,clone:Kpe,datum:Jpe,on:tge,dispatch:ige,[Symbol.iterator]:oge};function Gn(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],I1)}function lge(e){let t;for(;t=e.sourceEvent;)e=t;return e}function bi(e,t){if(e=lge(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 s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var age=Object.defineProperty,cge=(e,t,n)=>t in e?age(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cy=(e,t,n)=>cge(e,typeof t!="symbol"?t+"":t,n);class Nn{constructor(t,n){cy(this,"x"),cy(this,"y"),this.x=t,this.y=n}static of([t,n]){return new Nn(t,n)}add(t){return new Nn(this.x+t.x,this.y+t.y)}subtract(t){return new Nn(this.x-t.x,this.y-t.y)}multiply(t){return new Nn(this.x*t,this.y*t)}divide(t){return new Nn(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 Nn(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 Nn(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Nn(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var uge={value:()=>{}};function Ka(){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 ru(n)}function ru(e){this._=e}function fge(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");if(s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}ru.prototype=Ka.prototype={constructor:ru,on:function(e,t){var n=this._,i=fge(e+"",n),s,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((s=(e=i[l]).type)&&(s=dge(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(s=(e=i[l]).type)n[s]=uy(n[s],e.name,t);else if(t==null)for(s in n)n[s]=uy(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ru(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),i=0,s,l;i<s;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,s=l.length;i<s;++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],s=0,l=i.length;s<l;++s)i[s].value.apply(t,n)}};function dge(e,t){for(var n=0,i=e.length,s;n<i;++n)if((s=e[n]).name===t)return s.value}function uy(e,t,n){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=uge,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const hge={passive:!1},Aa={capture:!0,passive:!1};function jd(e){e.stopImmediatePropagation()}function Vs(e){e.preventDefault(),e.stopImmediatePropagation()}function P1(e){var t=e.document.documentElement,n=Gn(e).on("dragstart.drag",Vs,Aa);"onselectstart"in t?n.on("selectstart.drag",Vs,Aa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function O1(e,t){var n=e.document.documentElement,i=Gn(e).on("dragstart.drag",null);t&&(i.on("click.drag",Vs,Aa),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 Wc=e=>()=>e;function Ih(e,{sourceEvent:t,subject:n,target:i,identifier:s,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:s,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}})}Ih.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function pge(e){return!e.ctrlKey&&!e.button}function gge(){return this.parentNode}function mge(e,t){return t??{x:e.x,y:e.y}}function vge(){return navigator.maxTouchPoints||"ontouchstart"in this}function yge(){var e=pge,t=gge,n=mge,i=vge,s={},l=Ka("start","drag","end"),u=0,f,h,p,g,v=0;function y(k){k.on("mousedown.drag",w).filter(i).on("touchstart.drag",A).on("touchmove.drag",E,hge).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(k,z){if(!(g||!e.call(this,k,z))){var D=O(this,t.call(this,k,z),k,z,"mouse");D&&(Gn(k.view).on("mousemove.drag",L,Aa).on("mouseup.drag",$,Aa),P1(k.view),jd(k),p=!1,f=k.clientX,h=k.clientY,D("start",k))}}function L(k){if(Vs(k),!p){var z=k.clientX-f,D=k.clientY-h;p=z*z+D*D>v}s.mouse("drag",k)}function $(k){Gn(k.view).on("mousemove.drag mouseup.drag",null),O1(k.view,p),Vs(k),s.mouse("end",k)}function A(k,z){if(e.call(this,k,z)){var D=k.changedTouches,te=t.call(this,k,z),ee=D.length,W,q;for(W=0;W<ee;++W)(q=O(this,te,k,z,D[W].identifier,D[W]))&&(jd(k),q("start",k,D[W]))}}function E(k){var z=k.changedTouches,D=z.length,te,ee;for(te=0;te<D;++te)(ee=s[z[te].identifier])&&(Vs(k),ee("drag",k,z[te]))}function M(k){var z=k.changedTouches,D=z.length,te,ee;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),te=0;te<D;++te)(ee=s[z[te].identifier])&&(jd(k),ee("end",k,z[te]))}function O(k,z,D,te,ee,W){var q=l.copy(),K=bi(W||D,z),C,P,I;if((I=n.call(k,new Ih("beforestart",{sourceEvent:D,target:y,identifier:ee,active:u,x:K[0],y:K[1],dx:0,dy:0,dispatch:q}),te))!=null)return C=I.x-K[0]||0,P=I.y-K[1]||0,function S(R,B,oe){var ue=K,we;switch(R){case"start":s[ee]=S,we=u++;break;case"end":delete s[ee],--u;case"drag":K=bi(oe||B,z),we=u;break}q.call(R,k,new Ih(R,{sourceEvent:B,subject:I,target:y,identifier:ee,active:we,x:K[0]+C,y:K[1]+P,dx:K[0]-ue[0],dy:K[1]-ue[1],dispatch:q}),te)}}return y.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Wc(!!k),y):e},y.container=function(k){return arguments.length?(t=typeof k=="function"?k:Wc(k),y):t},y.subject=function(k){return arguments.length?(n=typeof k=="function"?k:Wc(k),y):n},y.touchable=function(k){return arguments.length?(i=typeof k=="function"?k:Wc(!!k),y):i},y.on=function(){var k=l.on.apply(l,arguments);return k===l?y:k},y.clickDistance=function(k){return arguments.length?(v=(k=+k)*k,y):Math.sqrt(v)},y}function Hp(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function R1(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ja(){}var La=.7,Ru=1/La,Gs="\\s*([+-]?\\d+)\\s*",$a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bge=/^#([0-9a-f]{3,8})$/,wge=new RegExp(`^rgb\\(${Gs},${Gs},${Gs}\\)$`),xge=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),Sge=new RegExp(`^rgba\\(${Gs},${Gs},${Gs},${$a}\\)$`),_ge=new RegExp(`^rgba\\(${ei},${ei},${ei},${$a}\\)$`),kge=new RegExp(`^hsl\\(${$a},${ei},${ei}\\)$`),Tge=new RegExp(`^hsla\\(${$a},${ei},${ei},${$a}\\)$`),fy={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};Hp(Ja,Ma,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dy,formatHex:dy,formatHex8:Cge,formatHsl:Ege,formatRgb:hy,toString:hy});function dy(){return this.rgb().formatHex()}function Cge(){return this.rgb().formatHex8()}function Ege(){return z1(this).formatHsl()}function hy(){return this.rgb().formatRgb()}function Ma(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bge.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?py(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?jc(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=wge.exec(e))?new Kn(t[1],t[2],t[3],1):(t=xge.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Sge.exec(e))?jc(t[1],t[2],t[3],t[4]):(t=_ge.exec(e))?jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kge.exec(e))?vy(t[1],t[2]/100,t[3]/100,1):(t=Tge.exec(e))?vy(t[1],t[2]/100,t[3]/100,t[4]):fy.hasOwnProperty(e)?py(fy[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function py(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function jc(e,t,n,i){return i<=0&&(e=t=n=NaN),new Kn(e,t,n,i)}function Age(e){return e instanceof Ja||(e=Ma(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function Ph(e,t,n,i){return arguments.length===1?Age(e):new Kn(e,t,n,i??1)}function Kn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Hp(Kn,Ph,R1(Ja,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?La:Math.pow(La,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Vo(this.r),Vo(this.g),Vo(this.b),zu(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:gy,formatHex:gy,formatHex8:Lge,formatRgb:my,toString:my}));function gy(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}`}function Lge(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}${Wo((isNaN(this.opacity)?1:this.opacity)*255)}`}function my(){const e=zu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function zu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function vy(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,n,i)}function z1(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Ja||(e=Ma(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-s,h=(l+s)/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+s:2-l-s,u*=60):f=h>0&&h<1?0:u,new Lr(u,f,h,e.opacity)}function $ge(e,t,n,i){return arguments.length===1?z1(e):new Lr(e,t,n,i??1)}function Lr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Hp(Lr,$ge,R1(Ja,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?La:Math.pow(La,e),new Lr(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,s=2*n-i;return new Kn(qd(e>=240?e-240:e+120,s,i),qd(e,s,i),qd(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Lr(yy(this.h),qc(this.s),qc(this.l),zu(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=zu(this.opacity);return`${e===1?"hsl(":"hsla("}${yy(this.h)}, ${qc(this.s)*100}%, ${qc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yy(e){return e=(e||0)%360,e<0?e+360:e}function qc(e){return Math.max(0,Math.min(1,e||0))}function qd(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 D1=e=>()=>e;function Mge(e,t){return function(n){return e+n*t}}function Nge(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 Ige(e){return(e=+e)==1?F1:function(t,n){return n-t?Nge(t,n,e):D1(isNaN(t)?n:t)}}function F1(e,t){var n=t-e;return n?Mge(e,n):D1(isNaN(e)?t:e)}const by=function e(t){var n=Ige(t);function i(s,l){var u=n((s=Ph(s)).r,(l=Ph(l)).r),f=n(s.g,l.g),h=n(s.b,l.b),p=F1(s.opacity,l.opacity);return function(g){return s.r=u(g),s.g=f(g),s.b=h(g),s.opacity=p(g),s+""}}return i.gamma=e,i}(1);function Qi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Oh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ud=new RegExp(Oh.source,"g");function Pge(e){return function(){return e}}function Oge(e){return function(t){return e(t)+""}}function Rge(e,t){var n=Oh.lastIndex=Ud.lastIndex=0,i,s,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Oh.exec(e))&&(s=Ud.exec(t));)(l=s.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(s=s[0])?f[u]?f[u]+=s:f[++u]=s:(f[++u]=null,h.push({i:u,x:Qi(i,s)})),n=Ud.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?Oge(h[0].x):Pge(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 wy=180/Math.PI,Rh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function H1(e,t,n,i,s,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:s,translateY:l,rotate:Math.atan2(t,e)*wy,skewX:Math.atan(h)*wy,scaleX:u,scaleY:f}}var Uc;function zge(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Rh:H1(t.a,t.b,t.c,t.d,t.e,t.f)}function Dge(e){return e==null||(Uc||(Uc=document.createElementNS("http://www.w3.org/2000/svg","g")),Uc.setAttribute("transform",e),!(e=Uc.transform.baseVal.consolidate()))?Rh:(e=e.matrix,H1(e.a,e.b,e.c,e.d,e.e,e.f))}function B1(e,t,n,i){function s(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,L){if(p!==v||g!==y){var $=w.push("translate(",null,t,null,n);L.push({i:$-4,x:Qi(p,v)},{i:$-2,x:Qi(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(s(v)+"rotate(",null,i)-2,x:Qi(p,g)})):g&&v.push(s(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(s(v)+"skewX(",null,i)-2,x:Qi(p,g)}):g&&v.push(s(v)+"skewX("+g+i)}function h(p,g,v,y,w,L){if(p!==v||g!==y){var $=w.push(s(w)+"scale(",null,",",null,")");L.push({i:$-4,x:Qi(p,v)},{i:$-2,x:Qi(g,y)})}else(v!==1||y!==1)&&w.push(s(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 L=-1,$=y.length,A;++L<$;)v[(A=y[L]).i]=A.x(w);return v.join("")}}}var Fge=B1(zge,"px, ","px)","deg)"),Hge=B1(Dge,", ",")",")"),Bge=1e-12;function xy(e){return((e=Math.exp(e))+1/e)/2}function Wge(e){return((e=Math.exp(e))-1/e)/2}function jge(e){return((e=Math.exp(2*e))-1)/(e+1)}const qge=function e(t,n,i){function s(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,L=v-h,$=w*w+L*L,A,E;if($<Bge)E=Math.log(y/p)/t,A=function(te){return[f+te*w,h+te*L,p*Math.exp(t*te*E)]};else{var M=Math.sqrt($),O=(y*y-p*p+i*$)/(2*p*n*M),k=(y*y-p*p-i*$)/(2*y*n*M),z=Math.log(Math.sqrt(O*O+1)-O),D=Math.log(Math.sqrt(k*k+1)-k);E=(D-z)/t,A=function(te){var ee=te*E,W=xy(z),q=p/(n*M)*(W*jge(t*ee+z)-Wge(z));return[f+q*w,h+q*L,p*W/xy(t*ee+z)]}}return A.duration=E*1e3*t/Math.SQRT2,A}return s.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},s}(Math.SQRT2,2,4);var nl=0,Kl=0,ql=0,W1=1e3,Du,Jl,Fu=0,Xo=0,gf=0,Na=typeof performance=="object"&&performance.now?performance:Date,j1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Bp(){return Xo||(j1(Uge),Xo=Na.now()+gf)}function Uge(){Xo=0}function Hu(){this._call=this._time=this._next=null}Hu.prototype=Wp.prototype={constructor:Hu,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Bp():+n)+(t==null?0:+t),!this._next&&Jl!==this&&(Jl?Jl._next=this:Du=this,Jl=this),this._call=e,this._time=n,zh()},stop:function(){this._call&&(this._call=null,this._time=1/0,zh())}};function Wp(e,t,n){var i=new Hu;return i.restart(e,t,n),i}function Vge(){Bp(),++nl;for(var e=Du,t;e;)(t=Xo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nl}function Sy(){Xo=(Fu=Na.now())+gf,nl=Kl=0;try{Vge()}finally{nl=0,Xge(),Xo=0}}function Gge(){var e=Na.now(),t=e-Fu;t>W1&&(gf-=t,Fu=e)}function Xge(){for(var e,t=Du,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:Du=n);Jl=e,zh(i)}function zh(e){if(!nl){Kl&&(Kl=clearTimeout(Kl));var t=e-Xo;t>24?(e<1/0&&(Kl=setTimeout(Sy,e-Na.now()-gf)),ql&&(ql=clearInterval(ql))):(ql||(Fu=Na.now(),ql=setInterval(Gge,W1)),nl=1,j1(Sy))}}function _y(e,t,n){var i=new Hu;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,n),i}var Kge=Ka("start","end","cancel","interrupt"),Jge=[],q1=0,ky=1,Dh=2,iu=3,Ty=4,Fh=5,ou=6;function mf(e,t,n,i,s,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;Yge(e,n,{name:t,index:i,group:s,on:Kge,tween:Jge,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:q1})}function jp(e,t){var n=Fr(e,t);if(n.state>q1)throw new Error("too late; already scheduled");return n}function ii(e,t){var n=Fr(e,t);if(n.state>iu)throw new Error("too late; already running");return n}function Fr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Yge(e,t,n){var i=e.__transition,s;i[t]=n,n.timer=Wp(l,0,n.time);function l(p){n.state=ky,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!==ky)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===iu)return _y(u);w.state===Ty?(w.state=ou,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=ou,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(_y(function(){n.state===iu&&(n.state=Ty,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=Dh,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Dh){for(n.state=iu,s=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))&&(s[++v]=w);s.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=Fh,1),v=-1,y=s.length;++v<y;)s[v].call(e,g);n.state===Fh&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=ou,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function su(e,t){var n=e.__transition,i,s,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}s=i.state>Dh&&i.state<Fh,i.state=ou,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function Zge(e){return this.each(function(){su(this,e)})}function Qge(e,t){var n,i;return function(){var s=ii(this,e),l=s.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}}s.tween=i}}function eme(e,t,n){var i,s;if(typeof n!="function")throw new Error;return function(){var l=ii(this,e),u=l.tween;if(u!==i){s=(i=u).slice();for(var f={name:t,value:n},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=f;break}h===p&&s.push(f)}l.tween=s}}function tme(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Fr(this.node(),n).tween,s=0,l=i.length,u;s<l;++s)if((u=i[s]).name===e)return u.value;return null}return this.each((t==null?Qge:eme)(n,e,t))}function qp(e,t,n){var i=e._id;return e.each(function(){var s=ii(this,i);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Fr(s,i).value[t]}}function U1(e,t){var n;return(typeof t=="number"?Qi:t instanceof Ma?by:(n=Ma(t))?(t=n,by):Rge)(e,t)}function nme(e){return function(){this.removeAttribute(e)}}function rme(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ime(e,t,n){var i,s=n+"",l;return function(){var u=this.getAttribute(e);return u===s?null:u===i?l:l=t(i=u,n)}}function ome(e,t,n){var i,s=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===s?null:u===i?l:l=t(i=u,n)}}function sme(e,t,n){var i,s,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===s?l:(s=h,l=t(i=u,f)))}}function lme(e,t,n){var i,s,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===s?l:(s=h,l=t(i=u,f)))}}function ame(e,t){var n=pf(e),i=n==="transform"?Hge:U1;return this.attrTween(e,typeof t=="function"?(n.local?lme:sme)(n,i,qp(this,"attr."+e,t)):t==null?(n.local?rme:nme)(n):(n.local?ome:ime)(n,i,t))}function cme(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ume(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function fme(e,t){var n,i;function s(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&ume(e,l)),n}return s._value=t,s}function dme(e,t){var n,i;function s(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&cme(e,l)),n}return s._value=t,s}function hme(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=pf(e);return this.tween(n,(i.local?fme:dme)(i,t))}function pme(e,t){return function(){jp(this,e).delay=+t.apply(this,arguments)}}function gme(e,t){return t=+t,function(){jp(this,e).delay=t}}function mme(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pme:gme)(t,e)):Fr(this.node(),t).delay}function vme(e,t){return function(){ii(this,e).duration=+t.apply(this,arguments)}}function yme(e,t){return t=+t,function(){ii(this,e).duration=t}}function bme(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vme:yme)(t,e)):Fr(this.node(),t).duration}function wme(e,t){if(typeof t!="function")throw new Error;return function(){ii(this,e).ease=t}}function xme(e){var t=this._id;return arguments.length?this.each(wme(t,e)):Fr(this.node(),t).ease}function Sme(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ii(this,e).ease=n}}function _me(e){if(typeof e!="function")throw new Error;return this.each(Sme(this._id,e))}function kme(e){typeof e!="function"&&(e=k1(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var l=t[s],u=l.length,f=i[s]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Ei(i,this._parents,this._name,this._id)}function Tme(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,s=n.length,l=Math.min(i,s),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 Ei(u,this._parents,this._name,this._id)}function Cme(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 Eme(e,t,n){var i,s,l=Cme(t)?jp:ii;return function(){var u=l(this,e),f=u.on;f!==i&&(s=(i=f).copy()).on(t,n),u.on=s}}function Ame(e,t){var n=this._id;return arguments.length<2?Fr(this.node(),n).on.on(e):this.each(Eme(n,e,t))}function Lme(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $me(){return this.on("end.remove",Lme(this._id))}function Mme(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Dp(e));for(var i=this._groups,s=i.length,l=new Array(s),u=0;u<s;++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,mf(p[y],t,n,y,p,Fr(g,n)));return new Ei(l,this._parents,t,n)}function Nme(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_1(e));for(var i=this._groups,s=i.length,l=[],u=[],f=0;f<s;++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,L=Fr(g,n),$=0,A=y.length;$<A;++$)(w=y[$])&&mf(w,t,n,$,y,L);l.push(y),u.push(g)}return new Ei(l,u,t,n)}var Ime=Xa.prototype.constructor;function Pme(){return new Ime(this._groups,this._parents)}function Ome(e,t){var n,i,s;return function(){var l=tl(this,e),u=(this.style.removeProperty(e),tl(this,e));return l===u?null:l===n&&u===i?s:s=t(n=l,i=u)}}function V1(e){return function(){this.style.removeProperty(e)}}function Rme(e,t,n){var i,s=n+"",l;return function(){var u=tl(this,e);return u===s?null:u===i?l:l=t(i=u,n)}}function zme(e,t,n){var i,s,l;return function(){var u=tl(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),tl(this,e))),u===h?null:u===i&&h===s?l:(s=h,l=t(i=u,f))}}function Dme(e,t){var n,i,s,l="style."+t,u="end."+l,f;return function(){var h=ii(this,e),p=h.on,g=h.value[l]==null?f||(f=V1(t)):void 0;(p!==n||s!==g)&&(i=(n=p).copy()).on(u,s=g),h.on=i}}function Fme(e,t,n){var i=(e+="")=="transform"?Fge:U1;return t==null?this.styleTween(e,Ome(e,i)).on("end.style."+e,V1(e)):typeof t=="function"?this.styleTween(e,zme(e,i,qp(this,"style."+e,t))).each(Dme(this._id,e)):this.styleTween(e,Rme(e,i,t),n).on("end.style."+e,null)}function Hme(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Bme(e,t,n){var i,s;function l(){var u=t.apply(this,arguments);return u!==s&&(i=(s=u)&&Hme(e,u,n)),i}return l._value=t,l}function Wme(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,Bme(e,t,n??""))}function jme(e){return function(){this.textContent=e}}function qme(e){return function(){var t=e(this);this.textContent=t??""}}function Ume(e){return this.tween("text",typeof e=="function"?qme(qp(this,"text",e)):jme(e==null?"":e+""))}function Vme(e){return function(t){this.textContent=e.call(this,t)}}function Gme(e){var t,n;function i(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&Vme(s)),t}return i._value=e,i}function Xme(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,Gme(e))}function Kme(){for(var e=this._name,t=this._id,n=G1(),i=this._groups,s=i.length,l=0;l<s;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Fr(h,t);mf(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ei(i,this._parents,e,n)}function Jme(){var e,t,n=this,i=n._id,s=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--s===0&&l()}};n.each(function(){var p=ii(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}),s===0&&l()})}var Yme=0;function Ei(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function G1(){return++Yme}var mi=Xa.prototype;Ei.prototype={constructor:Ei,select:Mme,selectAll:Nme,selectChild:mi.selectChild,selectChildren:mi.selectChildren,filter:kme,merge:Tme,selection:Pme,transition:Kme,call:mi.call,nodes:mi.nodes,node:mi.node,size:mi.size,empty:mi.empty,each:mi.each,on:Ame,attr:ame,attrTween:hme,style:Fme,styleTween:Wme,text:Ume,textTween:Xme,remove:$me,tween:tme,delay:mme,duration:bme,ease:xme,easeVarying:_me,end:Jme,[Symbol.iterator]:mi[Symbol.iterator]};function Zme(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Qme={time:null,delay:0,duration:250,ease:Zme};function eve(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 tve(e){var t,n;e instanceof Ei?(t=e._id,e=e._name):(t=G1(),(n=Qme).time=Bp(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,l=0;l<s;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&mf(h,e,t,p,u,n||eve(h,t));return new Ei(i,this._parents,e,t)}Xa.prototype.interrupt=Zge;Xa.prototype.transition=tve;const Vc=e=>()=>e;function nve(e,{sourceEvent:t,target:n,transform:i,dispatch:s}){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:s}})}function Si(e,t,n){this.k=e,this.x=t,this.y=n}Si.prototype={constructor:Si,scale:function(e){return e===1?this:new Si(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Si(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 Up=new Si(1,0,0);Si.prototype;function Vd(e){e.stopImmediatePropagation()}function Ul(e){e.preventDefault(),e.stopImmediatePropagation()}function rve(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ive(){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 Cy(){return this.__zoom||Up}function ove(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function sve(){return navigator.maxTouchPoints||"ontouchstart"in this}function lve(e,t,n){var i=e.invertX(t[0][0])-n[0][0],s=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(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function ave(){var e=rve,t=ive,n=lve,i=ove,s=sve,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=qge,p=Ka("start","zoom","end"),g,v,y,w=500,L=150,$=0,A=10;function E(I){I.property("__zoom",Cy).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",q).filter(s).on("touchstart.zoom",K).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(I,S,R,B){var oe=I.selection?I.selection():I;oe.property("__zoom",Cy),I!==oe?z(I,S,R,B):oe.interrupt().each(function(){D(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(I,S,R,B){E.scaleTo(I,function(){var oe=this.__zoom.k,ue=typeof S=="function"?S.apply(this,arguments):S;return oe*ue},R,B)},E.scaleTo=function(I,S,R,B){E.transform(I,function(){var oe=t.apply(this,arguments),ue=this.__zoom,we=R==null?k(oe):typeof R=="function"?R.apply(this,arguments):R,Pe=ue.invert(we),qe=typeof S=="function"?S.apply(this,arguments):S;return n(O(M(ue,qe),we,Pe),oe,u)},R,B)},E.translateBy=function(I,S,R,B){E.transform(I,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(I,S,R,B,oe){E.transform(I,function(){var ue=t.apply(this,arguments),we=this.__zoom,Pe=B==null?k(ue):typeof B=="function"?B.apply(this,arguments):B;return n(Up.translate(Pe[0],Pe[1]).scale(we.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ue,u)},B,oe)};function M(I,S){return S=Math.max(l[0],Math.min(l[1],S)),S===I.k?I:new Si(S,I.x,I.y)}function O(I,S,R){var B=S[0]-R[0]*I.k,oe=S[1]-R[1]*I.k;return B===I.x&&oe===I.y?I:new Si(I.k,B,oe)}function k(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function z(I,S,R,B){I.on("start.zoom",function(){D(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(B).end()}).tween("zoom",function(){var oe=this,ue=arguments,we=D(oe,ue).event(B),Pe=t.apply(oe,ue),qe=R==null?k(Pe):typeof R=="function"?R.apply(oe,ue):R,Ze=Math.max(Pe[1][0]-Pe[0][0],Pe[1][1]-Pe[0][1]),Ke=oe.__zoom,Je=typeof S=="function"?S.apply(oe,ue):S,ie=h(Ke.invert(qe).concat(Ze/Ke.k),Je.invert(qe).concat(Ze/Je.k));return function(U){if(U===1)U=Je;else{var Q=ie(U),J=Ze/Q[2];U=new Si(J,qe[0]-Q[0]*J,qe[1]-Q[1]*J)}we.zoom(null,U)}})}function D(I,S,R){return!R&&I.__zooming||new te(I,S)}function te(I,S){this.that=I,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,S),this.taps=0}te.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,S){return this.mouse&&I!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&I!=="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(I){var S=Gn(this.that).datum();p.call(I,this.that,new nve(I,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function ee(I,...S){if(!e.apply(this,arguments))return;var R=D(this,S).event(I),B=this.__zoom,oe=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ue=bi(I);if(R.wheel)(R.mouse[0][0]!==ue[0]||R.mouse[0][1]!==ue[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ue)),clearTimeout(R.wheel);else{if(B.k===oe)return;R.mouse=[ue,B.invert(ue)],su(this),R.start()}Ul(I),R.wheel=setTimeout(we,L),R.zoom("mouse",n(O(M(B,oe),R.mouse[0],R.mouse[1]),R.extent,u));function we(){R.wheel=null,R.end()}}function W(I,...S){if(y||!e.apply(this,arguments))return;var R=I.currentTarget,B=D(this,S,!0).event(I),oe=Gn(I.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",Ze,!0),ue=bi(I,R),we=I.clientX,Pe=I.clientY;P1(I.view),Vd(I),B.mouse=[ue,this.__zoom.invert(ue)],su(this),B.start();function qe(Ke){if(Ul(Ke),!B.moved){var Je=Ke.clientX-we,ie=Ke.clientY-Pe;B.moved=Je*Je+ie*ie>$}B.event(Ke).zoom("mouse",n(O(B.that.__zoom,B.mouse[0]=bi(Ke,R),B.mouse[1]),B.extent,u))}function Ze(Ke){oe.on("mousemove.zoom mouseup.zoom",null),O1(Ke.view,B.moved),Ul(Ke),B.event(Ke).end()}}function q(I,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=bi(I.changedTouches?I.changedTouches[0]:I,this),oe=R.invert(B),ue=R.k*(I.shiftKey?.5:2),we=n(O(M(R,ue),B,oe),t.apply(this,S),u);Ul(I),f>0?Gn(this).transition().duration(f).call(z,we,B,I):Gn(this).call(E.transform,we,B,I)}}function K(I,...S){if(e.apply(this,arguments)){var R=I.touches,B=R.length,oe=D(this,S,I.changedTouches.length===B).event(I),ue,we,Pe,qe;for(Vd(I),we=0;we<B;++we)Pe=R[we],qe=bi(Pe,this),qe=[qe,this.__zoom.invert(qe),Pe.identifier],oe.touch0?!oe.touch1&&oe.touch0[2]!==qe[2]&&(oe.touch1=qe,oe.taps=0):(oe.touch0=qe,ue=!0,oe.taps=1+!!g);g&&(g=clearTimeout(g)),ue&&(oe.taps<2&&(v=qe[0],g=setTimeout(function(){g=null},w)),su(this),oe.start())}}function C(I,...S){if(this.__zooming){var R=D(this,S).event(I),B=I.changedTouches,oe=B.length,ue,we,Pe,qe;for(Ul(I),ue=0;ue<oe;++ue)we=B[ue],Pe=bi(we,this),R.touch0&&R.touch0[2]===we.identifier?R.touch0[0]=Pe:R.touch1&&R.touch1[2]===we.identifier&&(R.touch1[0]=Pe);if(we=R.that.__zoom,R.touch1){var Ze=R.touch0[0],Ke=R.touch0[1],Je=R.touch1[0],ie=R.touch1[1],U=(U=Je[0]-Ze[0])*U+(U=Je[1]-Ze[1])*U,Q=(Q=ie[0]-Ke[0])*Q+(Q=ie[1]-Ke[1])*Q;we=M(we,Math.sqrt(U/Q)),Pe=[(Ze[0]+Je[0])/2,(Ze[1]+Je[1])/2],qe=[(Ke[0]+ie[0])/2,(Ke[1]+ie[1])/2]}else if(R.touch0)Pe=R.touch0[0],qe=R.touch0[1];else return;R.zoom("touch",n(O(we,Pe,qe),R.extent,u))}}function P(I,...S){if(this.__zooming){var R=D(this,S).event(I),B=I.changedTouches,oe=B.length,ue,we;for(Vd(I),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ue=0;ue<oe;++ue)we=B[ue],R.touch0&&R.touch0[2]===we.identifier?delete R.touch0:R.touch1&&R.touch1[2]===we.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&&(we=bi(we,this),Math.hypot(v[0]-we[0],v[1]-we[1])<A)){var Pe=Gn(this).on("dblclick.zoom");Pe&&Pe.apply(this,arguments)}}}return E.wheelDelta=function(I){return arguments.length?(i=typeof I=="function"?I:Vc(+I),E):i},E.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Vc(!!I),E):e},E.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:Vc(!!I),E):s},E.extent=function(I){return arguments.length?(t=typeof I=="function"?I:Vc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),E):t},E.scaleExtent=function(I){return arguments.length?(l[0]=+I[0],l[1]=+I[1],E):[l[0],l[1]]},E.translateExtent=function(I){return arguments.length?(u[0][0]=+I[0][0],u[1][0]=+I[1][0],u[0][1]=+I[0][1],u[1][1]=+I[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(I){return arguments.length?(n=I,E):n},E.duration=function(I){return arguments.length?(f=+I,E):f},E.interpolate=function(I){return arguments.length?(h=I,E):h},E.on=function(){var I=p.on.apply(p,arguments);return I===p?E:I},E.clickDistance=function(I){return arguments.length?($=(I=+I)*I,E):Math.sqrt($)},E.tapDistance=function(I){return arguments.length?(A=+I,E):A},E}function cve(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return X1(this.cover(t,n),t,n,e)}function X1(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var s,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,L,$,A,E,M;if(!l)return e._root=u,e;for(;l.length;)if(($=t>=(v=(f+p)/2))?f=v:p=v,(A=n>=(y=(h+g)/2))?h=y:g=y,s=l,!(l=l[E=A<<1|$]))return s[E]=u,e;if(w=+e._x.call(null,l.data),L=+e._y.call(null,l.data),t===w&&n===L)return u.next=l,s?s[E]=u:e._root=u,e;do s=s?s[E]=new Array(4):e._root=new Array(4),($=t>=(v=(f+p)/2))?f=v:p=v,(A=n>=(y=(h+g)/2))?h=y:g=y;while((E=A<<1|$)===(M=(L>=y)<<1|w>=v));return s[M]=l,s[E]=u,e}function uve(e){var t,n,i=e.length,s,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(s=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=s,f[n]=l,s<h&&(h=s),s>g&&(g=s),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)X1(this,u[n],f[n],e[n]);return this}function fve(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,s=this._x1,l=this._y1;if(isNaN(n))s=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=s-n||1,f=this._root,h,p;n>e||e>=s||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:s=n+u,l=i+u;break;case 1:n=s-u,l=i+u;break;case 2:s=n+u,i=l-u;break;case 3:n=s-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=s,this._y1=l,this}function dve(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function hve(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 Pn(e,t,n,i,s){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=s}function pve(e,t,n){var i,s=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,L,$;for(w&&y.push(new Pn(w,s,l,g,v)),n==null?n=1/0:(s=e-n,l=t-n,g=e+n,v=t+n,n*=n);L=y.pop();)if(!(!(w=L.node)||(u=L.x0)>g||(f=L.y0)>v||(h=L.x1)<s||(p=L.y1)<l))if(w.length){var A=(u+h)/2,E=(f+p)/2;y.push(new Pn(w[3],A,E,h,p),new Pn(w[2],u,E,A,p),new Pn(w[1],A,f,h,E),new Pn(w[0],u,f,A,E)),($=(t>=E)<<1|e>=A)&&(L=y[y.length-1],y[y.length-1]=y[y.length-1-$],y[y.length-1-$]=L)}else{var M=e-+this._x.call(null,w.data),O=t-+this._y.call(null,w.data),k=M*M+O*O;if(k<n){var z=Math.sqrt(n=k);s=e-z,l=t-z,g=e+z,v=t+z,i=w.data}}return i}function gve(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,s,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,L,$,A,E;if(!n)return this;if(n.length)for(;;){if((L=g>=(y=(u+h)/2))?u=y:h=y,($=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[A=$<<1|L]))return this;if(!n.length)break;(t[A+1&3]||t[A+2&3]||t[A+3&3])&&(i=t,E=A)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,s?(l?s.next=l:delete s.next,this):t?(l?t[A]=l:delete t[A],(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 mve(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function vve(){return this._root}function yve(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function bve(e){var t=[],n,i=this._root,s,l,u,f,h;for(i&&t.push(new Pn(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;(s=i[3])&&t.push(new Pn(s,p,g,f,h)),(s=i[2])&&t.push(new Pn(s,l,g,p,h)),(s=i[1])&&t.push(new Pn(s,p,u,f,g)),(s=i[0])&&t.push(new Pn(s,l,u,p,g))}return this}function wve(e){var t=[],n=[],i;for(this._root&&t.push(new Pn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var s=i.node;if(s.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=s[0])&&t.push(new Pn(l,u,f,g,v)),(l=s[1])&&t.push(new Pn(l,g,f,h,v)),(l=s[2])&&t.push(new Pn(l,u,v,g,p)),(l=s[3])&&t.push(new Pn(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 xve(e){return e[0]}function Sve(e){return arguments.length?(this._x=e,this):this._x}function _ve(e){return e[1]}function kve(e){return arguments.length?(this._y=e,this):this._y}function Vp(e,t,n){var i=new Gp(t??xve,n??_ve,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Gp(e,t,n,i,s,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=s,this._y1=l,this._root=void 0}function Ey(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var zn=Vp.prototype=Gp.prototype;zn.copy=function(){var e=new Gp(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=Ey(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var s=0;s<4;++s)(i=t.source[s])&&(i.length?n.push({source:i,target:t.target[s]=new Array(4)}):t.target[s]=Ey(i));return e};zn.add=cve;zn.addAll=uve;zn.cover=fve;zn.data=dve;zn.extent=hve;zn.find=pve;zn.remove=gve;zn.removeAll=mve;zn.root=vve;zn.size=yve;zn.visit=bve;zn.visitAfter=wve;zn.x=Sve;zn.y=kve;function Rn(e){return function(){return e}}function no(e){return(e()-.5)*1e-6}function Tve(e){return e.x+e.vx}function Cve(e){return e.y+e.vy}function Eve(e){var t,n,i,s=1,l=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,L,$,A,E=0;E<l;++E)for(v=Vp(t,Tve,Cve).visitAfter(f),p=0;p<g;++p)y=t[p],$=n[y.index],A=$*$,w=y.x+y.vx,L=y.y+y.vy,v.visit(M);function M(O,k,z,D,te){var ee=O.data,W=O.r,q=$+W;if(ee){if(ee.index>y.index){var K=w-ee.x-ee.vx,C=L-ee.y-ee.vy,P=K*K+C*C;P<q*q&&(K===0&&(K=no(i),P+=K*K),C===0&&(C=no(i),P+=C*C),P=(q-(P=Math.sqrt(P)))/P*s,y.vx+=(K*=P)*(q=(W*=W)/(A+W)),y.vy+=(C*=P)*q,ee.vx-=K*(q=1-q),ee.vy-=C*q)}return}return k>w+q||D<w-q||z>L+q||te<L-q}}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?(s=+p,u):s},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),u):e},u}function Ave(e){return e.index}function Ay(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Lve(e){var t=Ave,n=v,i,s=Rn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(A){return 1/Math.min(f[A.source.index],f[A.target.index])}function y(A){for(var E=0,M=e.length;E<g;++E)for(var O=0,k,z,D,te,ee,W,q;O<M;++O)k=e[O],z=k.source,D=k.target,te=D.x+D.vx-z.x-z.vx||no(p),ee=D.y+D.vy-z.y-z.vy||no(p),W=Math.sqrt(te*te+ee*ee),W=(W-l[O])/W*A*i[O],te*=W,ee*=W,D.vx-=te*(q=h[O]),D.vy-=ee*q,z.vx+=te*(q=1-q),z.vy+=ee*q}function w(){if(u){var A,E=u.length,M=e.length,O=new Map(u.map((z,D)=>[t(z,D,u),z])),k;for(A=0,f=new Array(E);A<M;++A)k=e[A],k.index=A,typeof k.source!="object"&&(k.source=Ay(O,k.source)),typeof k.target!="object"&&(k.target=Ay(O,k.target)),f[k.source.index]=(f[k.source.index]||0)+1,f[k.target.index]=(f[k.target.index]||0)+1;for(A=0,h=new Array(M);A<M;++A)k=e[A],h[A]=f[k.source.index]/(f[k.source.index]+f[k.target.index]);i=new Array(M),L(),l=new Array(M),$()}}function L(){if(u)for(var A=0,E=e.length;A<E;++A)i[A]=+n(e[A],A,e)}function $(){if(u)for(var A=0,E=e.length;A<E;++A)l[A]=+s(e[A],A,e)}return y.initialize=function(A,E){u=A,p=E,w()},y.links=function(A){return arguments.length?(e=A,w(),y):e},y.id=function(A){return arguments.length?(t=A,y):t},y.iterations=function(A){return arguments.length?(g=+A,y):g},y.strength=function(A){return arguments.length?(n=typeof A=="function"?A:Rn(+A),L(),y):n},y.distance=function(A){return arguments.length?(s=typeof A=="function"?A:Rn(+A),$(),y):s},y}const $ve=1664525,Mve=1013904223,Ly=4294967296;function Nve(){let e=1;return()=>(e=($ve*e+Mve)%Ly)/Ly}function Ive(e){return e.x}function Pve(e){return e.y}var Ove=10,Rve=Math.PI*(3-Math.sqrt(5));function zve(e){var t,n=1,i=.001,s=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=Wp(v),p=Ka("tick","end"),g=Nve();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y($){var A,E=e.length,M;$===void 0&&($=1);for(var O=0;O<$;++O)for(n+=(l-n)*s,f.forEach(function(k){k(n)}),A=0;A<E;++A)M=e[A],M.fx==null?M.x+=M.vx*=u:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=u:(M.y=M.fy,M.vy=0);return t}function w(){for(var $=0,A=e.length,E;$<A;++$){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 M=Ove*Math.sqrt(.5+$),O=$*Rve;E.x=M*Math.cos(O),E.y=M*Math.sin(O)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function L($){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(L),t):e},alpha:function($){return arguments.length?(n=+$,t):n},alphaMin:function($){return arguments.length?(i=+$,t):i},alphaDecay:function($){return arguments.length?(s=+$,t):+s},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(L),t):g},force:function($,A){return arguments.length>1?(A==null?f.delete($):f.set($,L(A)),t):f.get($)},find:function($,A,E){var M=0,O=e.length,k,z,D,te,ee;for(E==null?E=1/0:E*=E,M=0;M<O;++M)te=e[M],k=$-te.x,z=A-te.y,D=k*k+z*z,D<E&&(ee=te,E=D);return ee},on:function($,A){return arguments.length>1?(p.on($,A),t):p.on($)}}}function Dve(){var e,t,n,i,s=Rn(-30),l,u=1,f=1/0,h=.81;function p(w){var L,$=e.length,A=Vp(e,Ive,Pve).visitAfter(v);for(i=w,L=0;L<$;++L)t=e[L],A.visit(y)}function g(){if(e){var w,L=e.length,$;for(l=new Array(L),w=0;w<L;++w)$=e[w],l[$.index]=+s($,w,e)}}function v(w){var L=0,$,A,E=0,M,O,k;if(w.length){for(M=O=k=0;k<4;++k)($=w[k])&&(A=Math.abs($.value))&&(L+=$.value,E+=A,M+=A*$.x,O+=A*$.y);w.x=M/E,w.y=O/E}else{$=w,$.x=$.data.x,$.y=$.data.y;do L+=l[$.data.index];while($=$.next)}w.value=L}function y(w,L,$,A){if(!w.value)return!0;var E=w.x-t.x,M=w.y-t.y,O=A-L,k=E*E+M*M;if(O*O/h<k)return k<f&&(E===0&&(E=no(n),k+=E*E),M===0&&(M=no(n),k+=M*M),k<u&&(k=Math.sqrt(u*k)),t.vx+=E*w.value*i/k,t.vy+=M*w.value*i/k),!0;if(w.length||k>=f)return;(w.data!==t||w.next)&&(E===0&&(E=no(n),k+=E*E),M===0&&(M=no(n),k+=M*M),k<u&&(k=Math.sqrt(u*k)));do w.data!==t&&(O=l[w.data.index]*i/k,t.vx+=E*O,t.vy+=M*O);while(w=w.next)}return p.initialize=function(w,L){e=w,n=L,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),g(),p):s},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 Fve(e){var t=Rn(.1),n,i,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(s[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),s=new Array(h),f=0;f<h;++f)i[f]=isNaN(s[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:Rn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),u(),l):e},l}function Hve(e){var t=Rn(.1),n,i,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(s[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),s=new Array(h),f=0;f<h;++f)i[f]=isNaN(s[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:Rn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),u(),l):e},l}var Bve=Object.defineProperty,Wve=(e,t,n)=>t in e?Bve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t,n)=>Wve(e,typeof t!="symbol"?t+"":t,n);function jve(){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 $y(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function ro(...e){return e.reduce((t,n)=>{if(Array.isArray(n))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(n).forEach(i=>{["__proto__","constructor","prototype"].includes(i)||(Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=ro.options.mergeArrays?Array.from(new Set(t[i].concat(n[i]))):n[i]:$y(t[i])&&$y(n[i])?t[i]=ro(t[i],n[i]):t[i]=n[i])}),t},{})}const K1={mergeArrays:!0};ro.options=K1;ro.withOptions=(e,...t)=>{ro.options={mergeArrays:!0,...e};const n=ro(...t);return ro.options=K1,n};function qve(){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 Uve(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function J1(e){e.preventDefault(),e.stopPropagation()}function Y1(e){return typeof e=="number"}function yo(e,t){return Y1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Vve(e){return`${e.source.id}-${e.target.id}`}function Z1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Gve(e){return`url(#${Z1(e.color)})`}function Xve(e){return{size:e,padding:(t,n)=>yo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Q1={Arrow:e=>Xve(e)},Kve=(e,t,n)=>[t/2,n/2],Jve=(e,t,n)=>[My(0,t),My(0,n)];function My(e,t){return Math.random()*(t-e)+e}const Hh={Centered:Kve,Randomized:Jve};function Yve(){return{autoResize:!1,callbacks:{},hooks:{},initial:Uve(),nodeRadius:16,marker:Q1.Arrow(4),modifiers:{},positionInitializer:Hh.Centered,simulation:{alphas:jve(),forces:qve()},zoom:{initial:1,min:.1,max:2}}}function Zve(e={}){return ro.withOptions({mergeArrays:!1},Yve(),e)}function Qve({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:s,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=>J1(g)).on("dblclick",g=>n==null?void 0:n(g)).on("dblclick.zoom",null).on("pointermove",g=>i==null?void 0:i(g)).on("pointerup",g=>s==null?void 0:s(g)).style("cursor","grab");return e&&p.call(h.transform,Up.translate(l,u).scale(f)),p.append("g")}function e0e({canvas:e,scale:t,xOffset:n,yOffset:i}){e==null||e.attr("transform",`translate(${n},${i})scale(${t})`)}function t0e({config:e,onDragStart:t,onDragEnd:n}){var i,s;const l=yge().filter(u=>u.type==="mousedown"?u.button===0:u.type==="touchstart"?u.touches.length===1:!1).on("start",(u,f)=>{u.active===0&&t(u,f),Gn(u.sourceEvent.target).classed("grabbed",!0),f.fx=f.x,f.fy=f.y}).on("drag",(u,f)=>{f.fx=u.x,f.fy=u.y}).on("end",(u,f)=>{u.active===0&&n(u,f),Gn(u.sourceEvent.target).classed("grabbed",!1),f.fx=void 0,f.fy=void 0});return(s=(i=e.modifiers).drag)==null||s.call(i,l),l}function n0e({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:s}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(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}:r0e({links:l},n)}function r0e(e,t){const n=[...i0e(e,t),...o0e(e,t)],i=n.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function i0e(e,t){return eS(e,t,(n,i)=>n.target.id===i.id)}function o0e(e,t){return eS(e,t,(n,i)=>n.source.id===i.id)}function eS(e,t,n){const i=new Set(e.links),s=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...s].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{s.add(f.source),s.add(f.target),l.push(f),i.delete(f)})}return l}function Bh(e){return e.x??0}function Wh(e){return e.y??0}function Xp({source:e,target:t}){const n=new Nn(Bh(e),Wh(e)),i=new Nn(Bh(t),Wh(t)),s=i.subtract(n),l=s.length(),u=s.normalize(),f=u.multiply(-1);return{s:n,t:i,dist:l,norm:u,endNorm:f}}function tS({center:e,node:t}){const n=new Nn(Bh(t),Wh(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Nn(0,1))),{n,c:i}}function nS({config:e,source:t,target:n}){const{s:i,t:s,norm:l}=Xp({source:t,target:n}),u=i.add(l.multiply(yo(e,t)-1)),f=s.subtract(l.multiply(e.marker.padding(n,e)));return{start:u,end:f}}function s0e(e){const{start:t,end:n}=nS(e);return`M${t.x},${t.y}
51
51
  L${n.x},${n.y}`}function l0e(e){const{start:t,end:n}=nS(e),i=n.subtract(t).multiply(.5),s=t.add(i);return`translate(${s.x-8},${s.y-4})`}function a0e({config:e,source:t,target:n}){const{s:i,t:s,dist:l,norm:u,endNorm:f}=Xp({source:t,target:n}),h=10,p=u.rotateByDegrees(-10).multiply(yo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(yo(e,n)).add(s).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
52
52
  A${v},${v},0,0,1,${g.x},${g.y}`}function c0e({center:e,config:t,node:n}){const{n:i,c:s}=tS({center:e,node:n}),l=yo(t,n),u=i.subtract(s),f=u.multiply(1/u.length()),h=f.rotateByDegrees(40).multiply(l-1).add(i),p=f.rotateByDegrees(-40).multiply(l).add(i).add(f.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}