var vx=Object.defineProperty;var mx=(t,e,r)=>e in t?vx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Vi=(t,e,r)=>(mx(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function yh(t,e){const r=Object.create(null),o=t.split(",");for(let s=0;s!!r[s.toLowerCase()]:s=>!!r[s]}const we={},Qo=[],_r=()=>{},yx=()=>!1,bx=/^on[^a-z]/,Oc=t=>bx.test(t),bh=t=>t.startsWith("onUpdate:"),Fe=Object.assign,wh=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},wx=Object.prototype.hasOwnProperty,le=(t,e)=>wx.call(t,e),It=Array.isArray,Jo=t=>Rc(t)==="[object Map]",Fm=t=>Rc(t)==="[object Set]",jt=t=>typeof t=="function",Re=t=>typeof t=="string",Dc=t=>typeof t=="symbol",ye=t=>t!==null&&typeof t=="object",Hm=t=>(ye(t)||jt(t))&&jt(t.then)&&jt(t.catch),qm=Object.prototype.toString,Rc=t=>qm.call(t),xx=t=>Rc(t).slice(8,-1),Bm=t=>Rc(t)==="[object Object]",xh=t=>Re(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ya=yh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},_x=/-(\w)/g,Er=zc(t=>t.replace(_x,(e,r)=>r?r.toUpperCase():"")),Sx=/\B([A-Z])/g,go=zc(t=>t.replace(Sx,"-$1").toLowerCase()),Ic=zc(t=>t.charAt(0).toUpperCase()+t.slice(1)),nf=zc(t=>t?`on${Ic(t)}`:""),ao=(t,e)=>!Object.is(t,e),Za=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Lf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Wm=t=>{const e=Re(t)?Number(t):NaN;return isNaN(e)?t:e};let wg;const Af=()=>wg||(wg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function An(t){if(It(t)){const e={};for(let r=0;r{if(r){const o=r.split(Cx);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ge(t){let e="";if(Re(t))e=t;else if(It(t))for(let r=0;rRe(t)?t:t==null?"":It(t)||ye(t)&&(t.toString===qm||!jt(t.toString))?JSON.stringify(t,jm,2):String(t),jm=(t,e)=>e&&e.__v_isRef?jm(t,e.value):Jo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,s])=>(r[`${o} =>`]=s,r),{})}:Fm(e)?{[`Set(${e.size})`]:[...e.values()]}:ye(e)&&!It(e)&&!Bm(e)?String(e):e;let Dn;class Nx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dn,!e&&Dn&&(this.index=(Dn.scopes||(Dn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Dn;try{return Dn=this,e()}finally{Dn=r}}}on(){Dn=this}off(){Dn=this.parent}stop(e){if(this._active){let r,o;for(r=0,o=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},Vm=t=>(t.w&Ni)>0,Km=t=>(t.n&Ni)>0,Ox=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let o=0;o{(v==="length"||!Dc(v)&&v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":It(t)?xh(r)&&h.push(f.get("length")):(h.push(f.get(oo)),Jo(t)&&h.push(f.get(Nf)));break;case"delete":It(t)||(h.push(f.get(oo)),Jo(t)&&h.push(f.get(Nf)));break;case"set":Jo(t)&&h.push(f.get(oo));break}if(h.length===1)h[0]&&Pf(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);Pf(_h(d))}}function Pf(t,e){const r=It(t)?t:[...t];for(const o of r)o.computed&&_g(o);for(const o of r)o.computed||_g(o)}function _g(t,e){(t!==or||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Rx(t,e){var r;return(r=cc.get(t))==null?void 0:r.get(e)}const zx=yh("__proto__,__v_isRef,__isVue"),Zm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Dc)),Sg=Ix();function Ix(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=ae(this);for(let c=0,f=this.length;c{t[e]=function(...r){ms();const o=ae(this)[e].apply(this,r);return ys(),o}}),t}function Fx(t){const e=ae(this);return Nn(e,"has",t),e.hasOwnProperty(t)}class Qm{constructor(e=!1,r=!1){this._isReadonly=e,this._shallow=r}get(e,r,o){const s=this._isReadonly,c=this._shallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw"&&o===(s?c?Qx:n0:c?e0:t0).get(e))return e;const f=It(e);if(!s){if(f&&le(Sg,r))return Reflect.get(Sg,r,o);if(r==="hasOwnProperty")return Fx}const h=Reflect.get(e,r,o);return(Dc(r)?Zm.has(r):zx(r))||(s||Nn(e,"get",r),c)?h:Le(h)?f&&xh(r)?h:h.value:ye(h)?s?Hc(h):Sr(h):h}}class Jm extends Qm{constructor(e=!1){super(!1,e)}set(e,r,o,s){let c=e[r];if(as(c)&&Le(c)&&!Le(o))return!1;if(!this._shallow&&(!uc(o)&&!as(o)&&(c=ae(c),o=ae(o)),!It(e)&&Le(c)&&!Le(o)))return c.value=o,!0;const f=It(e)&&xh(r)?Number(r)t,Fc=t=>Reflect.getPrototypeOf(t);function Ma(t,e,r=!1,o=!1){t=t.__v_raw;const s=ae(t),c=ae(e);r||(ao(e,c)&&Nn(s,"get",e),Nn(s,"get",c));const{has:f}=Fc(s),h=o?kh:r?Lh:xl;if(f.call(s,e))return h(t.get(e));if(f.call(s,c))return h(t.get(c));t!==s&&t.get(e)}function Na(t,e=!1){const r=this.__v_raw,o=ae(r),s=ae(t);return e||(ao(t,s)&&Nn(o,"has",t),Nn(o,"has",s)),t===s?r.has(t):r.has(t)||r.has(s)}function Pa(t,e=!1){return t=t.__v_raw,!e&&Nn(ae(t),"iterate",oo),Reflect.get(t,"size",t)}function kg(t){t=ae(t);const e=ae(this);return Fc(e).has.call(e,t)||(e.add(t),jr(e,"add",t,t)),this}function Cg(t,e){e=ae(e);const r=ae(this),{has:o,get:s}=Fc(r);let c=o.call(r,t);c||(t=ae(t),c=o.call(r,t));const f=s.call(r,t);return r.set(t,e),c?ao(e,f)&&jr(r,"set",t,e):jr(r,"add",t,e),this}function Tg(t){const e=ae(this),{has:r,get:o}=Fc(e);let s=r.call(e,t);s||(t=ae(t),s=r.call(e,t)),o&&o.call(e,t);const c=e.delete(t);return s&&jr(e,"delete",t,void 0),c}function Eg(){const t=ae(this),e=t.size!==0,r=t.clear();return e&&jr(t,"clear",void 0,void 0),r}function $a(t,e){return function(o,s){const c=this,f=c.__v_raw,h=ae(f),d=e?kh:t?Lh:xl;return!t&&Nn(h,"iterate",oo),f.forEach((g,v)=>o.call(s,d(g),d(v),c))}}function Oa(t,e,r){return function(...o){const s=this.__v_raw,c=ae(s),f=Jo(c),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=s[t](...o),v=r?kh:e?Lh:xl;return!e&&Nn(c,"iterate",d?Nf:oo),{next(){const{value:y,done:w}=g.next();return w?{value:y,done:w}:{value:h?[v(y[0]),v(y[1])]:v(y),done:w}},[Symbol.iterator](){return this}}}}function fi(t){return function(...e){return t==="delete"?!1:this}}function Ux(){const t={get(c){return Ma(this,c)},get size(){return Pa(this)},has:Na,add:kg,set:Cg,delete:Tg,clear:Eg,forEach:$a(!1,!1)},e={get(c){return Ma(this,c,!1,!0)},get size(){return Pa(this)},has:Na,add:kg,set:Cg,delete:Tg,clear:Eg,forEach:$a(!1,!0)},r={get(c){return Ma(this,c,!0)},get size(){return Pa(this,!0)},has(c){return Na.call(this,c,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:$a(!0,!1)},o={get(c){return Ma(this,c,!0,!0)},get size(){return Pa(this,!0)},has(c){return Na.call(this,c,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:$a(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{t[c]=Oa(c,!1,!1),r[c]=Oa(c,!0,!1),e[c]=Oa(c,!1,!0),o[c]=Oa(c,!0,!0)}),[t,r,e,o]}const[jx,Gx,Vx,Kx]=Ux();function Ch(t,e){const r=e?t?Kx:Vx:t?Gx:jx;return(o,s,c)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?o:Reflect.get(le(r,s)&&s in o?r:o,s,c)}const Xx={get:Ch(!1,!1)},Yx={get:Ch(!1,!0)},Zx={get:Ch(!0,!1)},t0=new WeakMap,e0=new WeakMap,n0=new WeakMap,Qx=new WeakMap;function Jx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function t_(t){return t.__v_skip||!Object.isExtensible(t)?0:Jx(xx(t))}function Sr(t){return as(t)?t:Th(t,!1,qx,Xx,t0)}function r0(t){return Th(t,!1,Wx,Yx,e0)}function Hc(t){return Th(t,!0,Bx,Zx,n0)}function Th(t,e,r,o,s){if(!ye(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const c=s.get(t);if(c)return c;const f=t_(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return s.set(t,h),h}function ts(t){return as(t)?ts(t.__v_raw):!!(t&&t.__v_isReactive)}function as(t){return!!(t&&t.__v_isReadonly)}function uc(t){return!!(t&&t.__v_isShallow)}function i0(t){return ts(t)||as(t)}function ae(t){const e=t&&t.__v_raw;return e?ae(e):t}function Eh(t){return ac(t,"__v_skip",!0),t}const xl=t=>ye(t)?Sr(t):t,Lh=t=>ye(t)?Hc(t):t;function Ah(t){Ti&&or&&(t=ae(t),Ym(t.dep||(t.dep=_h())))}function Mh(t,e){t=ae(t);const r=t.dep;r&&Pf(r)}function Le(t){return!!(t&&t.__v_isRef===!0)}function Zt(t){return o0(t,!1)}function bs(t){return o0(t,!0)}function o0(t,e){return Le(t)?t:new e_(t,e)}class e_{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:ae(e),this._value=r?e:xl(e)}get value(){return Ah(this),this._value}set value(e){const r=this.__v_isShallow||uc(e)||as(e);e=r?e:ae(e),ao(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:xl(e),Mh(this))}}function U(t){return Le(t)?t.value:t}const n_={get:(t,e,r)=>U(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const s=t[e];return Le(s)&&!Le(r)?(s.value=r,!0):Reflect.set(t,e,r,o)}};function s0(t){return ts(t)?t:new Proxy(t,n_)}class r_{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=e(()=>Ah(this),()=>Mh(this));this._get=r,this._set=o}get value(){return this._get()}set value(e){this._set(e)}}function i_(t){return new r_(t)}function o_(t){const e=It(t)?new Array(t.length):{};for(const r in t)e[r]=l0(t,r);return e}class s_{constructor(e,r,o){this._object=e,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Rx(ae(this._object),this._key)}}class l_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Nh(t,e,r){return Le(t)?t:jt(t)?new l_(t):ye(t)&&arguments.length>1?l0(t,e,r):Zt(t)}function l0(t,e,r){const o=t[e];return Le(o)?o:new s_(t,e,r)}class a_{constructor(e,r,o,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Sh(e,()=>{this._dirty||(this._dirty=!0,Mh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const e=ae(this);return Ah(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function c_(t,e,r=!1){let o,s;const c=jt(t);return c?(o=t,s=_r):(o=t.get,s=t.set),new a_(o,s,c||!s,r)}function Ei(t,e,r,o){let s;try{s=o?t(...o):t()}catch(c){Bl(c,e,r)}return s}function jn(t,e,r,o){if(jt(t)){const c=Ei(t,e,r,o);return c&&Hm(c)&&c.catch(f=>{Bl(f,e,r)}),c}const s=[];for(let c=0;c>>1,s=en[o],c=Sl(s);cbr&&en.splice(e,1)}function Of(t){It(t)?es.push(...t):(!Br||!Br.includes(t,t.allowRecurse?to+1:to))&&es.push(t),c0()}function Lg(t,e=_l?br+1:0){for(;eSl(r)-Sl(o)),to=0;tot.id==null?1/0:t.id,d_=(t,e)=>{const r=Sl(t)-Sl(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function f0(t){$f=!1,_l=!0,en.sort(d_);try{for(br=0;brRe(_)?_.trim():_)),y&&(s=r.map(Lf))}let h,d=o[h=nf(e)]||o[h=nf(Er(e))];!d&&c&&(d=o[h=nf(go(e))]),d&&jn(d,t,6,s);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,jn(g,t,6,s)}}function h0(t,e,r=!1){const o=e.emitsCache,s=o.get(t);if(s!==void 0)return s;const c=t.emits;let f={},h=!1;if(!jt(t)){const d=g=>{const v=h0(g,e,!0);v&&(h=!0,Fe(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!c&&!h?(ye(t)&&o.set(t,null),null):(It(c)?c.forEach(d=>f[d]=null):Fe(f,c),ye(t)&&o.set(t,f),f)}function qc(t,e){return!t||!Oc(e)?!1:(e=e.slice(2).replace(/Once$/,""),le(t,e[0].toLowerCase()+e.slice(1))||le(t,go(e))||le(t,e))}let Qe=null,Bc=null;function fc(t){const e=Qe;return Qe=t,Bc=t&&t.type.__scopeId||null,e}function d0(t){Bc=t}function p0(){Bc=null}const g_=t=>ee;function ee(t,e=Qe,r){if(!e||t._n)return t;const o=(...s)=>{o._d&&Hg(-1);const c=fc(e);let f;try{f=t(...s)}finally{fc(c),o._d&&Hg(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function rf(t){const{type:e,vnode:r,proxy:o,withProxy:s,props:c,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:y,data:w,setupState:_,ctx:N,inheritAttrs:L}=t;let A,T;const M=fc(t);try{if(r.shapeFlag&4){const E=s||o;A=ir(v.call(E,E,y,c,_,w,N)),T=d}else{const E=e;A=ir(E.length>1?E(c,{attrs:d,slots:h,emit:g}):E(c,null)),T=e.props?d:m_(d)}}catch(E){hl.length=0,Bl(E,t,1),A=Ft(Mn)}let $=A;if(T&&L!==!1){const E=Object.keys(T),{shapeFlag:H}=$;E.length&&H&7&&(f&&E.some(bh)&&(T=y_(T,f)),$=Pi($,T))}return r.dirs&&($=Pi($),$.dirs=$.dirs?$.dirs.concat(r.dirs):r.dirs),r.transition&&($.transition=r.transition),A=$,fc(M),A}function v_(t){let e;for(let r=0;r{let e;for(const r in t)(r==="class"||r==="style"||Oc(r))&&((e||(e={}))[r]=t[r]);return e},y_=(t,e)=>{const r={};for(const o in t)(!bh(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function b_(t,e,r){const{props:o,children:s,component:c}=t,{props:f,children:h,patchFlag:d}=e,g=c.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?Ag(o,f,g):!!f;if(d&8){const v=e.dynamicProps;for(let y=0;yt.__isSuspense,S_={name:"Suspense",__isSuspense:!0,process(t,e,r,o,s,c,f,h,d,g){t==null?C_(e,r,o,s,c,f,h,d,g):T_(t,e,r,o,s,f,h,d,g)},hydrate:E_,create:Dh,normalize:L_},k_=S_;function kl(t,e){const r=t.props&&t.props[e];jt(r)&&r()}function C_(t,e,r,o,s,c,f,h,d){const{p:g,o:{createElement:v}}=d,y=v("div"),w=t.suspense=Dh(t,s,o,e,y,r,c,f,h,d);g(null,w.pendingBranch=t.ssContent,y,null,o,w,c,f),w.deps>0?(kl(t,"onPending"),kl(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,c,f),ns(w,t.ssFallback)):w.resolve(!1,!0)}function T_(t,e,r,o,s,c,f,h,{p:d,um:g,o:{createElement:v}}){const y=e.suspense=t.suspense;y.vnode=e,e.el=t.el;const w=e.ssContent,_=e.ssFallback,{activeBranch:N,pendingBranch:L,isInFallback:A,isHydrating:T}=y;if(L)y.pendingBranch=w,wr(w,L)?(d(L,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0?y.resolve():A&&(d(N,_,r,o,s,null,c,f,h),ns(y,_))):(y.pendingId++,T?(y.isHydrating=!1,y.activeBranch=L):g(L,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),A?(d(null,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0?y.resolve():(d(N,_,r,o,s,null,c,f,h),ns(y,_))):N&&wr(w,N)?(d(N,w,r,o,s,y,c,f,h),y.resolve(!0)):(d(null,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0&&y.resolve()));else if(N&&wr(w,N))d(N,w,r,o,s,y,c,f,h),ns(y,w);else if(kl(e,"onPending"),y.pendingBranch=w,y.pendingId++,d(null,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0)y.resolve();else{const{timeout:M,pendingId:$}=y;M>0?setTimeout(()=>{y.pendingId===$&&y.fallback(_)},M):M===0&&y.fallback(_)}}function Dh(t,e,r,o,s,c,f,h,d,g,v=!1){const{p:y,m:w,um:_,n:N,o:{parentNode:L,remove:A}}=g;let T;const M=M_(t);M&&e!=null&&e.pendingBranch&&(T=e.pendingId,e.deps++);const $=t.props?Wm(t.props.timeout):void 0,E={vnode:t,parent:e,parentComponent:r,isSVG:f,container:o,hiddenContainer:s,anchor:c,deps:0,pendingId:0,timeout:typeof $=="number"?$:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(H=!1,K=!1){const{vnode:ct,activeBranch:Y,pendingBranch:nt,pendingId:rt,effects:dt,parentComponent:ht,container:G}=E;let z=!1;if(E.isHydrating)E.isHydrating=!1;else if(!H){z=Y&&nt.transition&&nt.transition.mode==="out-in",z&&(Y.transition.afterLeave=()=>{rt===E.pendingId&&(w(nt,G,B,0),Of(dt))});let{anchor:B}=E;Y&&(B=N(Y),_(Y,ht,E,!0)),z||w(nt,G,B,0)}ns(E,nt),E.pendingBranch=null,E.isInFallback=!1;let k=E.parent,F=!1;for(;k;){if(k.pendingBranch){k.effects.push(...dt),F=!0;break}k=k.parent}!F&&!z&&Of(dt),E.effects=[],M&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!K&&e.resolve()),kl(ct,"onResolve")},fallback(H){if(!E.pendingBranch)return;const{vnode:K,activeBranch:ct,parentComponent:Y,container:nt,isSVG:rt}=E;kl(K,"onFallback");const dt=N(ct),ht=()=>{E.isInFallback&&(y(null,H,nt,dt,Y,null,rt,h,d),ns(E,H))},G=H.transition&&H.transition.mode==="out-in";G&&(ct.transition.afterLeave=ht),E.isInFallback=!0,_(ct,Y,null,!0),G||ht()},move(H,K,ct){E.activeBranch&&w(E.activeBranch,H,K,ct),E.container=H},next(){return E.activeBranch&&N(E.activeBranch)},registerDep(H,K){const ct=!!E.pendingBranch;ct&&E.deps++;const Y=H.vnode.el;H.asyncDep.catch(nt=>{Bl(nt,H,0)}).then(nt=>{if(H.isUnmounted||E.isUnmounted||E.pendingId!==H.suspenseId)return;H.asyncResolved=!0;const{vnode:rt}=H;Wf(H,nt,!1),Y&&(rt.el=Y);const dt=!Y&&H.subTree.el;K(H,rt,L(Y||H.subTree.el),Y?null:N(H.subTree),E,f,d),dt&&A(dt),Oh(H,rt.el),ct&&--E.deps===0&&E.resolve()})},unmount(H,K){E.isUnmounted=!0,E.activeBranch&&_(E.activeBranch,r,H,K),E.pendingBranch&&_(E.pendingBranch,r,H,K)}};return E}function E_(t,e,r,o,s,c,f,h,d){const g=e.suspense=Dh(e,o,r,t.parentNode,document.createElement("div"),null,s,c,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,c,f);return g.deps===0&&g.resolve(!1,!0),v}function L_(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=Ng(o?r.default:r),t.ssFallback=o?Ng(r.fallback):Ft(Mn)}function Ng(t){let e;if(jt(t)){const r=cs&&t._c;r&&(t._d=!1,st()),t=t(),r&&(t._d=!0,e=Wn,$0())}return It(t)&&(t=v_(t)),t=ir(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function A_(t,e){e&&e.pendingBranch?It(t)?e.effects.push(...t):e.effects.push(t):Of(t)}function ns(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t,s=r.el=e.el;o&&o.subTree===r&&(o.vnode.el=s,Oh(o,s))}function M_(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Rh(t,e){return zh(t,null,e)}const Da={};function Ie(t,e,r){return zh(t,e,r)}function zh(t,e,{immediate:r,deep:o,flush:s,onTrack:c,onTrigger:f}=we){var h;const d=Gm()===((h=Ve)==null?void 0:h.scope)?Ve:null;let g,v=!1,y=!1;if(Le(t)?(g=()=>t.value,v=uc(t)):ts(t)?(g=()=>t,o=!0):It(t)?(y=!0,v=t.some(E=>ts(E)||uc(E)),g=()=>t.map(E=>{if(Le(E))return E.value;if(ts(E))return no(E);if(jt(E))return Ei(E,d,2)})):jt(t)?e?g=()=>Ei(t,d,2):g=()=>{if(!(d&&d.isUnmounted))return w&&w(),jn(t,d,3,[_])}:g=_r,e&&o){const E=g;g=()=>no(E())}let w,_=E=>{w=M.onStop=()=>{Ei(E,d,4)}},N;if(Tl)if(_=_r,e?r&&jn(e,d,3,[g(),y?[]:void 0,_]):g(),s==="sync"){const E=xS();N=E.__watcherHandles||(E.__watcherHandles=[])}else return _r;let L=y?new Array(t.length).fill(Da):Da;const A=()=>{if(M.active)if(e){const E=M.run();(o||v||(y?E.some((H,K)=>ao(H,L[K])):ao(E,L)))&&(w&&w(),jn(e,d,3,[E,L===Da?void 0:y&&L[0]===Da?[]:L,_]),L=E)}else M.run()};A.allowRecurse=!!e;let T;s==="sync"?T=A:s==="post"?T=()=>Cn(A,d&&d.suspense):(A.pre=!0,d&&(A.id=d.uid),T=()=>$h(A));const M=new Sh(g,T);e?r?A():L=M.run():s==="post"?Cn(M.run.bind(M),d&&d.suspense):M.run();const $=()=>{M.stop(),d&&d.scope&&wh(d.scope.effects,M)};return N&&N.push($),$}function N_(t,e,r){const o=this.proxy,s=Re(t)?t.includes(".")?m0(o,t):()=>o[t]:t.bind(o,o);let c;jt(e)?c=e:(c=e.handler,r=e);const f=Ve;us(this);const h=zh(s,c.bind(o),r);return f?us(f):so(),h}function m0(t,e){const r=e.split(".");return()=>{let o=t;for(let s=0;s{no(r,e)});else if(Bm(t))for(const r in t)no(t[r],e);return t}function nn(t,e){const r=Qe;if(r===null)return t;const o=Vc(r)||r.proxy,s=t.dirs||(t.dirs=[]);for(let c=0;c{t.isMounted=!0}),_0(()=>{t.isUnmounting=!0}),t}const Bn=[Function,Array],y0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bn,onEnter:Bn,onAfterEnter:Bn,onEnterCancelled:Bn,onBeforeLeave:Bn,onLeave:Bn,onAfterLeave:Bn,onLeaveCancelled:Bn,onBeforeAppear:Bn,onAppear:Bn,onAfterAppear:Bn,onAppearCancelled:Bn},$_={name:"BaseTransition",props:y0,setup(t,{slots:e}){const r=Wl(),o=P_();let s;return()=>{const c=e.default&&w0(e.default(),!0);if(!c||!c.length)return;let f=c[0];if(c.length>1){for(const L of c)if(L.type!==Mn){f=L;break}}const h=ae(t),{mode:d}=h;if(o.isLeaving)return of(f);const g=Pg(f);if(!g)return of(f);const v=Df(g,h,o,r);Rf(g,v);const y=r.subTree,w=y&&Pg(y);let _=!1;const{getTransitionKey:N}=g.type;if(N){const L=N();s===void 0?s=L:L!==s&&(s=L,_=!0)}if(w&&w.type!==Mn&&(!wr(g,w)||_)){const L=Df(w,h,o,r);if(Rf(w,L),d==="out-in")return o.isLeaving=!0,L.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},of(f);d==="in-out"&&g.type!==Mn&&(L.delayLeave=(A,T,M)=>{const $=b0(o,w);$[String(w.key)]=w,A[yi]=()=>{T(),A[yi]=void 0,delete v.delayedLeave},v.delayedLeave=M})}return f}}},O_=$_;function b0(t,e){const{leavingVNodes:r}=t;let o=r.get(e.type);return o||(o=Object.create(null),r.set(e.type,o)),o}function Df(t,e,r,o){const{appear:s,mode:c,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:y,onLeave:w,onAfterLeave:_,onLeaveCancelled:N,onBeforeAppear:L,onAppear:A,onAfterAppear:T,onAppearCancelled:M}=e,$=String(t.key),E=b0(r,t),H=(Y,nt)=>{Y&&jn(Y,o,9,nt)},K=(Y,nt)=>{const rt=nt[1];H(Y,nt),It(Y)?Y.every(dt=>dt.length<=1)&&rt():Y.length<=1&&rt()},ct={mode:c,persisted:f,beforeEnter(Y){let nt=h;if(!r.isMounted)if(s)nt=L||h;else return;Y[yi]&&Y[yi](!0);const rt=E[$];rt&&wr(t,rt)&&rt.el[yi]&&rt.el[yi](),H(nt,[Y])},enter(Y){let nt=d,rt=g,dt=v;if(!r.isMounted)if(s)nt=A||d,rt=T||g,dt=M||v;else return;let ht=!1;const G=Y[Ra]=z=>{ht||(ht=!0,z?H(dt,[Y]):H(rt,[Y]),ct.delayedLeave&&ct.delayedLeave(),Y[Ra]=void 0)};nt?K(nt,[Y,G]):G()},leave(Y,nt){const rt=String(t.key);if(Y[Ra]&&Y[Ra](!0),r.isUnmounting)return nt();H(y,[Y]);let dt=!1;const ht=Y[yi]=G=>{dt||(dt=!0,nt(),G?H(N,[Y]):H(_,[Y]),Y[yi]=void 0,E[rt]===t&&delete E[rt])};E[rt]=t,w?K(w,[Y,ht]):ht()},clone(Y){return Df(Y,e,r,o)}};return ct}function of(t){if(Wc(t))return t=Pi(t),t.children=null,t}function Pg(t){return Wc(t)?t.children?t.children[0]:void 0:t}function Rf(t,e){t.shapeFlag&6&&t.component?Rf(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function w0(t,e=!1,r){let o=[],s=0;for(let c=0;c1)for(let c=0;c!!t.type.__asyncLoader,Wc=t=>t.type.__isKeepAlive;function D_(t,e){x0(t,"a",e)}function R_(t,e){x0(t,"da",e)}function x0(t,e,r=Ve){const o=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Uc(e,o,r),r){let s=r.parent;for(;s&&s.parent;)Wc(s.parent.vnode)&&z_(o,e,r,s),s=s.parent}}function z_(t,e,r,o){const s=Uc(e,t,o,!0);Ih(()=>{wh(o[e],s)},r)}function Uc(t,e,r=Ve,o=!1){if(r){const s=r[t]||(r[t]=[]),c=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;ms(),us(r);const h=jn(e,r,t,f);return so(),ys(),h});return o?s.unshift(c):s.push(c),c}}const Zr=t=>(e,r=Ve)=>(!Tl||t==="sp")&&Uc(t,(...o)=>e(...o),r),I_=Zr("bm"),ws=Zr("m"),F_=Zr("bu"),H_=Zr("u"),_0=Zr("bum"),Ih=Zr("um"),q_=Zr("sp"),B_=Zr("rtg"),W_=Zr("rtc");function U_(t,e=Ve){Uc("ec",t,e)}function Rn(t,e,r,o){let s;const c=r&&r[o];if(It(t)||Re(t)){s=new Array(t.length);for(let f=0,h=t.length;fe(f,h,void 0,c&&c[h]));else{const f=Object.keys(t);s=new Array(f.length);for(let h=0,d=f.length;hCl(e)?!(e.type===Mn||e.type===ne&&!S0(e.children)):!0)?t:null}const zf=t=>t?z0(t)?Vc(t)||t.proxy:zf(t.parent):null,fl=Fe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>zf(t.parent),$root:t=>zf(t.root),$emit:t=>t.emit,$options:t=>Fh(t),$forceUpdate:t=>t.f||(t.f=()=>$h(t.update)),$nextTick:t=>t.n||(t.n=Kr.bind(t.proxy)),$watch:t=>N_.bind(t)}),sf=(t,e)=>t!==we&&!t.__isScriptSetup&&le(t,e),j_={get({_:t},e){const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:h,appContext:d}=t;let g;if(e[0]!=="$"){const _=f[e];if(_!==void 0)switch(_){case 1:return o[e];case 2:return s[e];case 4:return r[e];case 3:return c[e]}else{if(sf(o,e))return f[e]=1,o[e];if(s!==we&&le(s,e))return f[e]=2,s[e];if((g=t.propsOptions[0])&&le(g,e))return f[e]=3,c[e];if(r!==we&&le(r,e))return f[e]=4,r[e];Ff&&(f[e]=0)}}const v=fl[e];let y,w;if(v)return e==="$attrs"&&Nn(t,"get",e),v(t);if((y=h.__cssModules)&&(y=y[e]))return y;if(r!==we&&le(r,e))return f[e]=4,r[e];if(w=d.config.globalProperties,le(w,e))return w[e]},set({_:t},e,r){const{data:o,setupState:s,ctx:c}=t;return sf(s,e)?(s[e]=r,!0):o!==we&&le(o,e)?(o[e]=r,!0):le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(c[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let h;return!!r[f]||t!==we&&le(t,f)||sf(e,f)||(h=c[0])&&le(h,f)||le(o,f)||le(fl,f)||le(s.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:le(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function G_(){return V_().attrs}function k0(t,e,r){const o=Wl();if(r&&r.local){const s=Zt(t[e]);return Ie(()=>t[e],c=>s.value=c),Ie(s,c=>{c!==t[e]&&o.emit(`update:${e}`,c)}),s}else return{__v_isRef:!0,get value(){return t[e]},set value(s){o.emit(`update:${e}`,s)}}}function V_(){const t=Wl();return t.setupContext||(t.setupContext=F0(t))}function hc(t){return It(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function If(t,e){return!t||!e?t||e:It(t)&&It(e)?t.concat(e):Fe({},hc(t),hc(e))}let Ff=!0;function K_(t){const e=Fh(t),r=t.proxy,o=t.ctx;Ff=!1,e.beforeCreate&&$g(e.beforeCreate,t,"bc");const{data:s,computed:c,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:y,mounted:w,beforeUpdate:_,updated:N,activated:L,deactivated:A,beforeDestroy:T,beforeUnmount:M,destroyed:$,unmounted:E,render:H,renderTracked:K,renderTriggered:ct,errorCaptured:Y,serverPrefetch:nt,expose:rt,inheritAttrs:dt,components:ht,directives:G,filters:z}=e;if(g&&X_(g,o,null),f)for(const B in f){const Q=f[B];jt(Q)&&(o[B]=Q.bind(r))}if(s){const B=s.call(r,r);ye(B)&&(t.data=Sr(B))}if(Ff=!0,c)for(const B in c){const Q=c[B],yt=jt(Q)?Q.bind(r,r):jt(Q.get)?Q.get.bind(r,r):_r,At=!jt(Q)&&jt(Q.set)?Q.set.bind(r):_r,Ht=xt({get:yt,set:At});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Ht.value,set:qt=>Ht.value=qt})}if(h)for(const B in h)C0(h[B],o,r,B);if(d){const B=jt(d)?d.call(r):d;Reflect.ownKeys(B).forEach(Q=>{Qa(Q,B[Q])})}v&&$g(v,t,"c");function F(B,Q){It(Q)?Q.forEach(yt=>B(yt.bind(r))):Q&&B(Q.bind(r))}if(F(I_,y),F(ws,w),F(F_,_),F(H_,N),F(D_,L),F(R_,A),F(U_,Y),F(W_,K),F(B_,ct),F(_0,M),F(Ih,E),F(q_,nt),It(rt))if(rt.length){const B=t.exposed||(t.exposed={});rt.forEach(Q=>{Object.defineProperty(B,Q,{get:()=>r[Q],set:yt=>r[Q]=yt})})}else t.exposed||(t.exposed={});H&&t.render===_r&&(t.render=H),dt!=null&&(t.inheritAttrs=dt),ht&&(t.components=ht),G&&(t.directives=G)}function X_(t,e,r=_r){It(t)&&(t=Hf(t));for(const o in t){const s=t[o];let c;ye(s)?"default"in s?c=Gr(s.from||o,s.default,!0):c=Gr(s.from||o):c=Gr(s),Le(c)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):e[o]=c}}function $g(t,e,r){jn(It(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function C0(t,e,r,o){const s=o.includes(".")?m0(r,o):()=>r[o];if(Re(t)){const c=e[t];jt(c)&&Ie(s,c)}else if(jt(t))Ie(s,t.bind(r));else if(ye(t))if(It(t))t.forEach(c=>C0(c,e,r,o));else{const c=jt(t.handler)?t.handler.bind(r):e[t.handler];jt(c)&&Ie(s,c,t)}}function Fh(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=t.appContext,h=c.get(e);let d;return h?d=h:!s.length&&!r&&!o?d=e:(d={},s.length&&s.forEach(g=>dc(d,g,f,!0)),dc(d,e,f)),ye(e)&&c.set(e,d),d}function dc(t,e,r,o=!1){const{mixins:s,extends:c}=e;c&&dc(t,c,r,!0),s&&s.forEach(f=>dc(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=Y_[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const Y_={data:Og,props:Dg,emits:Dg,methods:ll,computed:ll,beforeCreate:dn,created:dn,beforeMount:dn,mounted:dn,beforeUpdate:dn,updated:dn,beforeDestroy:dn,beforeUnmount:dn,destroyed:dn,unmounted:dn,activated:dn,deactivated:dn,errorCaptured:dn,serverPrefetch:dn,components:ll,directives:ll,watch:Q_,provide:Og,inject:Z_};function Og(t,e){return e?t?function(){return Fe(jt(t)?t.call(this,this):t,jt(e)?e.call(this,this):e)}:e:t}function Z_(t,e){return ll(Hf(t),Hf(e))}function Hf(t){if(It(t)){const e={};for(let r=0;r1)return r&&jt(e)?e.call(o&&o.proxy):e}}function eS(t,e,r,o=!1){const s={},c={};ac(c,Gc,1),t.propsDefaults=Object.create(null),E0(t,e,s,c);for(const f in t.propsOptions[0])f in s||(s[f]=void 0);r?t.props=o?s:r0(s):t.type.props?t.props=s:t.props=c,t.attrs=c}function nS(t,e,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=t,h=ae(s),[d]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let y=0;y{d=!0;const[w,_]=L0(y,e,!0);Fe(f,w),_&&h.push(..._)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!c&&!d)return ye(t)&&o.set(t,Qo),Qo;if(It(c))for(let v=0;v-1,_[1]=L<0||N-1||le(_,"default"))&&h.push(y)}}}const g=[f,h];return ye(t)&&o.set(t,g),g}function Rg(t){return t[0]!=="$"}function zg(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Ig(t,e){return zg(t)===zg(e)}function Fg(t,e){return It(e)?e.findIndex(r=>Ig(r,t)):jt(e)&&Ig(e,t)?0:-1}const A0=t=>t[0]==="_"||t==="$stable",Hh=t=>It(t)?t.map(ir):[ir(t)],rS=(t,e,r)=>{if(e._n)return e;const o=ee((...s)=>Hh(e(...s)),r);return o._c=!1,o},M0=(t,e,r)=>{const o=t._ctx;for(const s in t){if(A0(s))continue;const c=t[s];if(jt(c))e[s]=rS(s,c,o);else if(c!=null){const f=Hh(c);e[s]=()=>f}}},N0=(t,e)=>{const r=Hh(e);t.slots.default=()=>r},iS=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=ae(e),ac(e,"_",r)):M0(e,t.slots={})}else t.slots={},e&&N0(t,e);ac(t.slots,Gc,1)},oS=(t,e,r)=>{const{vnode:o,slots:s}=t;let c=!0,f=we;if(o.shapeFlag&32){const h=e._;h?r&&h===1?c=!1:(Fe(s,e),!r&&h===1&&delete s._):(c=!e.$stable,M0(e,s)),f=e}else e&&(N0(t,e),f={default:1});if(c)for(const h in s)!A0(h)&&f[h]==null&&delete s[h]};function Bf(t,e,r,o,s=!1){if(It(t)){t.forEach((w,_)=>Bf(w,e&&(It(e)?e[_]:e),r,o,s));return}if(ul(o)&&!s)return;const c=o.shapeFlag&4?Vc(o.component)||o.component.proxy:o.el,f=s?null:c,{i:h,r:d}=t,g=e&&e.r,v=h.refs===we?h.refs={}:h.refs,y=h.setupState;if(g!=null&&g!==d&&(Re(g)?(v[g]=null,le(y,g)&&(y[g]=null)):Le(g)&&(g.value=null)),jt(d))Ei(d,h,12,[f,v]);else{const w=Re(d),_=Le(d);if(w||_){const N=()=>{if(t.f){const L=w?le(y,d)?y[d]:v[d]:d.value;s?It(L)&&wh(L,c):It(L)?L.includes(c)||L.push(c):w?(v[d]=[c],le(y,d)&&(y[d]=v[d])):(d.value=[c],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,le(y,d)&&(y[d]=f)):_&&(d.value=f,t.k&&(v[t.k]=f))};f?(N.id=-1,Cn(N,r)):N()}}}const Cn=A_;function sS(t){return lS(t)}function lS(t,e){const r=Af();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:y,nextSibling:w,setScopeId:_=_r,insertStaticContent:N}=t,L=(R,I,V,J=null,lt=null,ft=null,kt=!1,mt=null,ut=!!I.dynamicChildren)=>{if(R===I)return;R&&!wr(R,I)&&(J=j(R),qt(R,lt,ft,!0),R=null),I.patchFlag===-2&&(ut=!1,I.dynamicChildren=null);const{type:pt,ref:Dt,shapeFlag:Nt}=I;switch(pt){case jc:A(R,I,V,J);break;case Mn:T(R,I,V,J);break;case lf:R==null&&M(I,V,J,kt);break;case ne:ht(R,I,V,J,lt,ft,kt,mt,ut);break;default:Nt&1?H(R,I,V,J,lt,ft,kt,mt,ut):Nt&6?G(R,I,V,J,lt,ft,kt,mt,ut):(Nt&64||Nt&128)&&pt.process(R,I,V,J,lt,ft,kt,mt,ut,at)}Dt!=null&<&&Bf(Dt,R&&R.ref,ft,I||R,!I)},A=(R,I,V,J)=>{if(R==null)o(I.el=h(I.children),V,J);else{const lt=I.el=R.el;I.children!==R.children&&g(lt,I.children)}},T=(R,I,V,J)=>{R==null?o(I.el=d(I.children||""),V,J):I.el=R.el},M=(R,I,V,J)=>{[R.el,R.anchor]=N(R.children,I,V,J,R.el,R.anchor)},$=({el:R,anchor:I},V,J)=>{let lt;for(;R&&R!==I;)lt=w(R),o(R,V,J),R=lt;o(I,V,J)},E=({el:R,anchor:I})=>{let V;for(;R&&R!==I;)V=w(R),s(R),R=V;s(I)},H=(R,I,V,J,lt,ft,kt,mt,ut)=>{kt=kt||I.type==="svg",R==null?K(I,V,J,lt,ft,kt,mt,ut):nt(R,I,lt,ft,kt,mt,ut)},K=(R,I,V,J,lt,ft,kt,mt)=>{let ut,pt;const{type:Dt,props:Nt,shapeFlag:Ot,transition:Bt,dirs:Kt}=R;if(ut=R.el=f(R.type,ft,Nt&&Nt.is,Nt),Ot&8?v(ut,R.children):Ot&16&&Y(R.children,ut,null,J,lt,ft&&Dt!=="foreignObject",kt,mt),Kt&&Ki(R,null,J,"created"),ct(ut,R,R.scopeId,kt,J),Nt){for(const oe in Nt)oe!=="value"&&!Ya(oe)&&c(ut,oe,null,Nt[oe],ft,R.children,J,lt,Tt);"value"in Nt&&c(ut,"value",null,Nt.value),(pt=Nt.onVnodeBeforeMount)&&yr(pt,J,R)}Kt&&Ki(R,null,J,"beforeMount");const re=aS(lt,Bt);re&&Bt.beforeEnter(ut),o(ut,I,V),((pt=Nt&&Nt.onVnodeMounted)||re||Kt)&&Cn(()=>{pt&&yr(pt,J,R),re&&Bt.enter(ut),Kt&&Ki(R,null,J,"mounted")},lt)},ct=(R,I,V,J,lt)=>{if(V&&_(R,V),J)for(let ft=0;ft{for(let pt=ut;pt{const mt=I.el=R.el;let{patchFlag:ut,dynamicChildren:pt,dirs:Dt}=I;ut|=R.patchFlag&16;const Nt=R.props||we,Ot=I.props||we;let Bt;V&&Xi(V,!1),(Bt=Ot.onVnodeBeforeUpdate)&&yr(Bt,V,I,R),Dt&&Ki(I,R,V,"beforeUpdate"),V&&Xi(V,!0);const Kt=lt&&I.type!=="foreignObject";if(pt?rt(R.dynamicChildren,pt,mt,V,J,Kt,ft):kt||Q(R,I,mt,null,V,J,Kt,ft,!1),ut>0){if(ut&16)dt(mt,I,Nt,Ot,V,J,lt);else if(ut&2&&Nt.class!==Ot.class&&c(mt,"class",null,Ot.class,lt),ut&4&&c(mt,"style",Nt.style,Ot.style,lt),ut&8){const re=I.dynamicProps;for(let oe=0;oe{Bt&&yr(Bt,V,I,R),Dt&&Ki(I,R,V,"updated")},J)},rt=(R,I,V,J,lt,ft,kt)=>{for(let mt=0;mt{if(V!==J){if(V!==we)for(const mt in V)!Ya(mt)&&!(mt in J)&&c(R,mt,V[mt],null,kt,I.children,lt,ft,Tt);for(const mt in J){if(Ya(mt))continue;const ut=J[mt],pt=V[mt];ut!==pt&&mt!=="value"&&c(R,mt,pt,ut,kt,I.children,lt,ft,Tt)}"value"in J&&c(R,"value",V.value,J.value)}},ht=(R,I,V,J,lt,ft,kt,mt,ut)=>{const pt=I.el=R?R.el:h(""),Dt=I.anchor=R?R.anchor:h("");let{patchFlag:Nt,dynamicChildren:Ot,slotScopeIds:Bt}=I;Bt&&(mt=mt?mt.concat(Bt):Bt),R==null?(o(pt,V,J),o(Dt,V,J),Y(I.children,V,Dt,lt,ft,kt,mt,ut)):Nt>0&&Nt&64&&Ot&&R.dynamicChildren?(rt(R.dynamicChildren,Ot,V,lt,ft,kt,mt),(I.key!=null||lt&&I===lt.subTree)&&P0(R,I,!0)):Q(R,I,V,Dt,lt,ft,kt,mt,ut)},G=(R,I,V,J,lt,ft,kt,mt,ut)=>{I.slotScopeIds=mt,R==null?I.shapeFlag&512?lt.ctx.activate(I,V,J,kt,ut):z(I,V,J,lt,ft,kt,ut):k(R,I,ut)},z=(R,I,V,J,lt,ft,kt)=>{const mt=R.component=pS(R,J,lt);if(Wc(R)&&(mt.ctx.renderer=at),gS(mt),mt.asyncDep){if(lt&<.registerDep(mt,F),!R.el){const ut=mt.subTree=Ft(Mn);T(null,ut,I,V)}return}F(mt,R,I,V,lt,ft,kt)},k=(R,I,V)=>{const J=I.component=R.component;if(b_(R,I,V))if(J.asyncDep&&!J.asyncResolved){B(J,I,V);return}else J.next=I,h_(J.update),J.update();else I.el=R.el,J.vnode=I},F=(R,I,V,J,lt,ft,kt)=>{const mt=()=>{if(R.isMounted){let{next:Dt,bu:Nt,u:Ot,parent:Bt,vnode:Kt}=R,re=Dt,oe;Xi(R,!1),Dt?(Dt.el=Kt.el,B(R,Dt,kt)):Dt=Kt,Nt&&Za(Nt),(oe=Dt.props&&Dt.props.onVnodeBeforeUpdate)&&yr(oe,Bt,Dt,Kt),Xi(R,!0);const he=rf(R),se=R.subTree;R.subTree=he,L(se,he,y(se.el),j(se),R,lt,ft),Dt.el=he.el,re===null&&Oh(R,he.el),Ot&&Cn(Ot,lt),(oe=Dt.props&&Dt.props.onVnodeUpdated)&&Cn(()=>yr(oe,Bt,Dt,Kt),lt)}else{let Dt;const{el:Nt,props:Ot}=I,{bm:Bt,m:Kt,parent:re}=R,oe=ul(I);if(Xi(R,!1),Bt&&Za(Bt),!oe&&(Dt=Ot&&Ot.onVnodeBeforeMount)&&yr(Dt,re,I),Xi(R,!0),Nt&&Et){const he=()=>{R.subTree=rf(R),Et(Nt,R.subTree,R,lt,null)};oe?I.type.__asyncLoader().then(()=>!R.isUnmounted&&he()):he()}else{const he=R.subTree=rf(R);L(null,he,V,J,R,lt,ft),I.el=he.el}if(Kt&&Cn(Kt,lt),!oe&&(Dt=Ot&&Ot.onVnodeMounted)){const he=I;Cn(()=>yr(Dt,re,he),lt)}(I.shapeFlag&256||re&&ul(re.vnode)&&re.vnode.shapeFlag&256)&&R.a&&Cn(R.a,lt),R.isMounted=!0,I=V=J=null}},ut=R.effect=new Sh(mt,()=>$h(pt),R.scope),pt=R.update=()=>ut.run();pt.id=R.uid,Xi(R,!0),pt()},B=(R,I,V)=>{I.component=R;const J=R.vnode.props;R.vnode=I,R.next=null,nS(R,I.props,J,V),oS(R,I.children,V),ms(),Lg(),ys()},Q=(R,I,V,J,lt,ft,kt,mt,ut=!1)=>{const pt=R&&R.children,Dt=R?R.shapeFlag:0,Nt=I.children,{patchFlag:Ot,shapeFlag:Bt}=I;if(Ot>0){if(Ot&128){At(pt,Nt,V,J,lt,ft,kt,mt,ut);return}else if(Ot&256){yt(pt,Nt,V,J,lt,ft,kt,mt,ut);return}}Bt&8?(Dt&16&&Tt(pt,lt,ft),Nt!==pt&&v(V,Nt)):Dt&16?Bt&16?At(pt,Nt,V,J,lt,ft,kt,mt,ut):Tt(pt,lt,ft,!0):(Dt&8&&v(V,""),Bt&16&&Y(Nt,V,J,lt,ft,kt,mt,ut))},yt=(R,I,V,J,lt,ft,kt,mt,ut)=>{R=R||Qo,I=I||Qo;const pt=R.length,Dt=I.length,Nt=Math.min(pt,Dt);let Ot;for(Ot=0;OtDt?Tt(R,lt,ft,!0,!1,Nt):Y(I,V,J,lt,ft,kt,mt,ut,Nt)},At=(R,I,V,J,lt,ft,kt,mt,ut)=>{let pt=0;const Dt=I.length;let Nt=R.length-1,Ot=Dt-1;for(;pt<=Nt&&pt<=Ot;){const Bt=R[pt],Kt=I[pt]=ut?bi(I[pt]):ir(I[pt]);if(wr(Bt,Kt))L(Bt,Kt,V,null,lt,ft,kt,mt,ut);else break;pt++}for(;pt<=Nt&&pt<=Ot;){const Bt=R[Nt],Kt=I[Ot]=ut?bi(I[Ot]):ir(I[Ot]);if(wr(Bt,Kt))L(Bt,Kt,V,null,lt,ft,kt,mt,ut);else break;Nt--,Ot--}if(pt>Nt){if(pt<=Ot){const Bt=Ot+1,Kt=BtOt)for(;pt<=Nt;)qt(R[pt],lt,ft,!0),pt++;else{const Bt=pt,Kt=pt,re=new Map;for(pt=Kt;pt<=Ot;pt++){const Ae=I[pt]=ut?bi(I[pt]):ir(I[pt]);Ae.key!=null&&re.set(Ae.key,pt)}let oe,he=0;const se=Ot-Kt+1;let rn=!1,Pn=0;const wn=new Array(se);for(pt=0;pt=se){qt(Ae,lt,ft,!0);continue}let xn;if(Ae.key!=null)xn=re.get(Ae.key);else for(oe=Kt;oe<=Ot;oe++)if(wn[oe-Kt]===0&&wr(Ae,I[oe])){xn=oe;break}xn===void 0?qt(Ae,lt,ft,!0):(wn[xn-Kt]=pt+1,xn>=Pn?Pn=xn:rn=!0,L(Ae,I[xn],V,null,lt,ft,kt,mt,ut),he++)}const hr=rn?cS(wn):Qo;for(oe=hr.length-1,pt=se-1;pt>=0;pt--){const Ae=Kt+pt,xn=I[Ae],Yt=Ae+1{const{el:ft,type:kt,transition:mt,children:ut,shapeFlag:pt}=R;if(pt&6){Ht(R.component.subTree,I,V,J);return}if(pt&128){R.suspense.move(I,V,J);return}if(pt&64){kt.move(R,I,V,at);return}if(kt===ne){o(ft,I,V);for(let Nt=0;Ntmt.enter(ft),lt);else{const{leave:Nt,delayLeave:Ot,afterLeave:Bt}=mt,Kt=()=>o(ft,I,V),re=()=>{Nt(ft,()=>{Kt(),Bt&&Bt()})};Ot?Ot(ft,Kt,re):re()}else o(ft,I,V)},qt=(R,I,V,J=!1,lt=!1)=>{const{type:ft,props:kt,ref:mt,children:ut,dynamicChildren:pt,shapeFlag:Dt,patchFlag:Nt,dirs:Ot}=R;if(mt!=null&&Bf(mt,null,V,R,!0),Dt&256){I.ctx.deactivate(R);return}const Bt=Dt&1&&Ot,Kt=!ul(R);let re;if(Kt&&(re=kt&&kt.onVnodeBeforeUnmount)&&yr(re,I,R),Dt&6)Vt(R.component,V,J);else{if(Dt&128){R.suspense.unmount(V,J);return}Bt&&Ki(R,null,I,"beforeUnmount"),Dt&64?R.type.remove(R,I,V,lt,at,J):pt&&(ft!==ne||Nt>0&&Nt&64)?Tt(pt,I,V,!1,!0):(ft===ne&&Nt&384||!lt&&Dt&16)&&Tt(ut,I,V),J&&Jt(R)}(Kt&&(re=kt&&kt.onVnodeUnmounted)||Bt)&&Cn(()=>{re&&yr(re,I,R),Bt&&Ki(R,null,I,"unmounted")},V)},Jt=R=>{const{type:I,el:V,anchor:J,transition:lt}=R;if(I===ne){Qt(V,J);return}if(I===lf){E(R);return}const ft=()=>{s(V),lt&&!lt.persisted&<.afterLeave&<.afterLeave()};if(R.shapeFlag&1&<&&!lt.persisted){const{leave:kt,delayLeave:mt}=lt,ut=()=>kt(V,ft);mt?mt(R.el,ft,ut):ut()}else ft()},Qt=(R,I)=>{let V;for(;R!==I;)V=w(R),s(R),R=V;s(I)},Vt=(R,I,V)=>{const{bum:J,scope:lt,update:ft,subTree:kt,um:mt}=R;J&&Za(J),lt.stop(),ft&&(ft.active=!1,qt(kt,R,I,V)),mt&&Cn(mt,I),Cn(()=>{R.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Tt=(R,I,V,J=!1,lt=!1,ft=0)=>{for(let kt=ft;ktR.shapeFlag&6?j(R.component.subTree):R.shapeFlag&128?R.suspense.next():w(R.anchor||R.el),it=(R,I,V)=>{R==null?I._vnode&&qt(I._vnode,null,null,!0):L(I._vnode||null,R,I,null,null,null,V),Lg(),u0(),I._vnode=R},at={p:L,um:qt,m:Ht,r:Jt,mt:z,mc:Y,pc:Q,pbc:rt,n:j,o:t};let Mt,Et;return e&&([Mt,Et]=e(at)),{render:it,hydrate:Mt,createApp:tS(it,Mt)}}function Xi({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function aS(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function P0(t,e,r=!1){const o=t.children,s=e.children;if(It(o)&&It(s))for(let c=0;c>1,t[r[h]]0&&(e[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=e[f];return r}const uS=t=>t.__isTeleport,ne=Symbol.for("v-fgt"),jc=Symbol.for("v-txt"),Mn=Symbol.for("v-cmt"),lf=Symbol.for("v-stc"),hl=[];let Wn=null;function st(t=!1){hl.push(Wn=t?null:[])}function $0(){hl.pop(),Wn=hl[hl.length-1]||null}let cs=1;function Hg(t){cs+=t}function O0(t){return t.dynamicChildren=cs>0?Wn||Qo:null,$0(),cs>0&&Wn&&Wn.push(t),t}function St(t,e,r,o,s,c){return O0(tt(t,e,r,o,s,c,!0))}function te(t,e,r,o,s){return O0(Ft(t,e,r,o,s,!0))}function Cl(t){return t?t.__v_isVNode===!0:!1}function wr(t,e){return t.type===e.type&&t.key===e.key}const Gc="__vInternal",D0=({key:t})=>t??null,Ja=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Re(t)||Le(t)||jt(t)?{i:Qe,r:t,k:e,f:!!r}:t:null);function tt(t,e=null,r=null,o=0,s=null,c=t===ne?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&D0(e),ref:e&&Ja(e),scopeId:Bc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Qe};return h?(qh(d,r),c&128&&t.normalize(d)):r&&(d.shapeFlag|=Re(r)?8:16),cs>0&&!f&&Wn&&(d.patchFlag>0||c&6)&&d.patchFlag!==32&&Wn.push(d),d}const Ft=fS;function fS(t,e=null,r=null,o=0,s=null,c=!1){if((!t||t===x_)&&(t=Mn),Cl(t)){const h=Pi(t,e,!0);return r&&qh(h,r),cs>0&&!c&&Wn&&(h.shapeFlag&6?Wn[Wn.indexOf(t)]=h:Wn.push(h)),h.patchFlag|=-2,h}if(bS(t)&&(t=t.__vccOpts),e){e=R0(e);let{class:h,style:d}=e;h&&!Re(h)&&(e.class=ge(h)),ye(d)&&(i0(d)&&!It(d)&&(d=Fe({},d)),e.style=An(d))}const f=Re(t)?1:__(t)?128:uS(t)?64:ye(t)?4:jt(t)?2:0;return tt(t,e,r,o,s,f,c,!0)}function R0(t){return t?i0(t)||Gc in t?Fe({},t):t:null}function Pi(t,e,r=!1){const{props:o,ref:s,patchFlag:c,children:f}=t,h=e?Li(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&D0(h),ref:e&&e.ref?r&&s?It(s)?s.concat(Ja(e)):[s,Ja(e)]:Ja(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ne?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Pi(t.ssContent),ssFallback:t.ssFallback&&Pi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function me(t=" ",e=0){return Ft(jc,null,t,e)}function Gt(t="",e=!1){return e?(st(),te(Mn,null,t)):Ft(Mn,null,t)}function ir(t){return t==null||typeof t=="boolean"?Ft(Mn):It(t)?Ft(ne,null,t.slice()):typeof t=="object"?bi(t):Ft(jc,null,String(t))}function bi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Pi(t)}function qh(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(It(e))r=16;else if(typeof e=="object")if(o&65){const s=e.default;s&&(s._c&&(s._d=!1),qh(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!(Gc in e)?e._ctx=Qe:s===3&&Qe&&(Qe.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else jt(e)?(e={default:e,_ctx:Qe},r=32):(e=String(e),o&64?(r=16,e=[me(e)]):r=8);t.children=e,t.shapeFlag|=r}function Li(...t){const e={};for(let r=0;rVe||Qe;let Bh,Go,qg="__VUE_INSTANCE_SETTERS__";(Go=Af()[qg])||(Go=Af()[qg]=[]),Go.push(t=>Ve=t),Bh=t=>{Go.length>1?Go.forEach(e=>e(t)):Go[0](t)};const us=t=>{Bh(t),t.scope.on()},so=()=>{Ve&&Ve.scope.off(),Bh(null)};function z0(t){return t.vnode.shapeFlag&4}let Tl=!1;function gS(t,e=!1){Tl=e;const{props:r,children:o}=t.vnode,s=z0(t);eS(t,r,s,e),iS(t,o);const c=s?vS(t,e):void 0;return Tl=!1,c}function vS(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Eh(new Proxy(t.ctx,j_));const{setup:o}=r;if(o){const s=t.setupContext=o.length>1?F0(t):null;us(t),ms();const c=Ei(o,t,0,[t.props,s]);if(ys(),so(),Hm(c)){if(c.then(so,so),e)return c.then(f=>{Wf(t,f,e)}).catch(f=>{Bl(f,t,0)});t.asyncDep=c}else Wf(t,c,e)}else I0(t,e)}function Wf(t,e,r){jt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ye(e)&&(t.setupState=s0(e)),I0(t,r)}let Bg;function I0(t,e,r){const o=t.type;if(!t.render){if(!e&&Bg&&!o.render){const s=o.template||Fh(t).template;if(s){const{isCustomElement:c,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Fe(Fe({isCustomElement:c,delimiters:h},f),d);o.render=Bg(s,g)}}t.render=o.render||_r}{us(t),ms();try{K_(t)}finally{ys(),so()}}}function mS(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return Nn(t,"get","$attrs"),e[r]}}))}function F0(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return mS(t)},slots:t.slots,emit:t.emit,expose:e}}function Vc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(s0(Eh(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in fl)return fl[r](t)},has(e,r){return r in e||r in fl}}))}function yS(t,e=!0){return jt(t)?t.displayName||t.name:t.name||e&&t.__name}function bS(t){return jt(t)&&"__vccOpts"in t}const xt=(t,e)=>c_(t,e,Tl);function Ul(t,e,r){const o=arguments.length;return o===2?ye(e)&&!It(e)?Cl(e)?Ft(t,null,[e]):Ft(t,e):Ft(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Cl(r)&&(r=[r]),Ft(t,e,r))}const wS=Symbol.for("v-scx"),xS=()=>Gr(wS),_S="3.3.8",SS="http://www.w3.org/2000/svg",eo=typeof document<"u"?document:null,Wg=eo&&eo.createElement("template"),kS={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,o)=>{const s=e?eo.createElementNS(SS,t):eo.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:t=>eo.createTextNode(t),createComment:t=>eo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>eo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,s,c){const f=r?r.previousSibling:e.lastChild;if(s&&(s===c||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Wg.innerHTML=o?`${t}`:t;const h=Wg.content;if(o){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}e.insertBefore(h,r)}return[f?f.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},hi="transition",tl="animation",El=Symbol("_vtc"),Wh=(t,{slots:e})=>Ul(O_,CS(t),e);Wh.displayName="Transition";const H0={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};Wh.props=Fe({},y0,H0);const Yi=(t,e=[])=>{It(t)?t.forEach(r=>r(...e)):t&&t(...e)},Ug=t=>t?It(t)?t.some(e=>e.length>1):t.length>1:!1;function CS(t){const e={};for(const ht in t)ht in H0||(e[ht]=t[ht]);if(t.css===!1)return e;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=c,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:w=`${r}-leave-active`,leaveToClass:_=`${r}-leave-to`}=t,N=TS(s),L=N&&N[0],A=N&&N[1],{onBeforeEnter:T,onEnter:M,onEnterCancelled:$,onLeave:E,onLeaveCancelled:H,onBeforeAppear:K=T,onAppear:ct=M,onAppearCancelled:Y=$}=e,nt=(ht,G,z)=>{Zi(ht,G?v:h),Zi(ht,G?g:f),z&&z()},rt=(ht,G)=>{ht._isLeaving=!1,Zi(ht,y),Zi(ht,_),Zi(ht,w),G&&G()},dt=ht=>(G,z)=>{const k=ht?ct:M,F=()=>nt(G,ht,z);Yi(k,[G,F]),jg(()=>{Zi(G,ht?d:c),di(G,ht?v:h),Ug(k)||Gg(G,o,L,F)})};return Fe(e,{onBeforeEnter(ht){Yi(T,[ht]),di(ht,c),di(ht,f)},onBeforeAppear(ht){Yi(K,[ht]),di(ht,d),di(ht,g)},onEnter:dt(!1),onAppear:dt(!0),onLeave(ht,G){ht._isLeaving=!0;const z=()=>rt(ht,G);di(ht,y),AS(),di(ht,w),jg(()=>{ht._isLeaving&&(Zi(ht,y),di(ht,_),Ug(E)||Gg(ht,o,A,z))}),Yi(E,[ht,z])},onEnterCancelled(ht){nt(ht,!1),Yi($,[ht])},onAppearCancelled(ht){nt(ht,!0),Yi(Y,[ht])},onLeaveCancelled(ht){rt(ht),Yi(H,[ht])}})}function TS(t){if(t==null)return null;if(ye(t))return[af(t.enter),af(t.leave)];{const e=af(t);return[e,e]}}function af(t){return Wm(t)}function di(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[El]||(t[El]=new Set)).add(e)}function Zi(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[El];r&&(r.delete(e),r.size||(t[El]=void 0))}function jg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ES=0;function Gg(t,e,r,o){const s=t._endId=++ES,c=()=>{s===t._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:h,propCount:d}=LS(t,e);if(!f)return o();const g=f+"end";let v=0;const y=()=>{t.removeEventListener(g,w),c()},w=_=>{_.target===t&&++v>=d&&y()};setTimeout(()=>{v(r[N]||"").split(", "),s=o(`${hi}Delay`),c=o(`${hi}Duration`),f=Vg(s,c),h=o(`${tl}Delay`),d=o(`${tl}Duration`),g=Vg(h,d);let v=null,y=0,w=0;e===hi?f>0&&(v=hi,y=f,w=c.length):e===tl?g>0&&(v=tl,y=g,w=d.length):(y=Math.max(f,g),v=y>0?f>g?hi:tl:null,w=v?v===hi?c.length:d.length:0);const _=v===hi&&/\b(transform|all)(,|$)/.test(o(`${hi}Property`).toString());return{type:v,timeout:y,propCount:w,hasTransform:_}}function Vg(t,e){for(;t.lengthKg(r)+Kg(t[o])))}function Kg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function AS(){return document.body.offsetHeight}function MS(t,e,r){const o=t[El];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Uh=Symbol("_vod"),Uf={beforeMount(t,{value:e},{transition:r}){t[Uh]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):el(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:o}){!e!=!r&&(o?e?(o.beforeEnter(t),el(t,!0),o.enter(t)):o.leave(t,()=>{el(t,!1)}):el(t,e))},beforeUnmount(t,{value:e}){el(t,e)}};function el(t,e){t.style.display=e?t[Uh]:"none"}function NS(t,e,r){const o=t.style,s=Re(r);if(r&&!s){if(e&&!Re(e))for(const c in e)r[c]==null&&jf(o,c,"");for(const c in r)jf(o,c,r[c])}else{const c=o.display;s?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),Uh in t&&(o.display=c)}}const Xg=/\s*!important$/;function jf(t,e,r){if(It(r))r.forEach(o=>jf(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=PS(t,e);Xg.test(r)?t.setProperty(go(o),r.replace(Xg,""),"important"):t[o]=r}}const Yg=["Webkit","Moz","ms"],cf={};function PS(t,e){const r=cf[e];if(r)return r;let o=Er(e);if(o!=="filter"&&o in t)return cf[e]=o;o=Ic(o);for(let s=0;suf||(IS.then(()=>uf=0),uf=Date.now());function HS(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;jn(qS(o,r.value),e,5,[o])};return r.value=t,r.attached=FS(),r}function qS(t,e){if(It(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>s=>!s._stopped&&o&&o(s))}else return e}const tv=/^on[a-z]/,BS=(t,e,r,o,s=!1,c,f,h,d)=>{e==="class"?MS(t,o,s):e==="style"?NS(t,r,o):Oc(e)?bh(e)||RS(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):WS(t,e,o,s))?OS(t,e,o,c,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),$S(t,e,o,s))};function WS(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&tv.test(e)&&jt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||tv.test(e)&&Re(r)?!1:e in t}const ev=t=>{const e=t.props["onUpdate:modelValue"]||!1;return It(e)?r=>Za(e,r):e};function US(t){t.target.composing=!0}function nv(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ff=Symbol("_assign"),jS={created(t,{modifiers:{lazy:e,trim:r,number:o}},s){t[ff]=ev(s);const c=o||s.props&&s.props.type==="number";Vo(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),c&&(h=Lf(h)),t[ff](h)}),r&&Vo(t,"change",()=>{t.value=t.value.trim()}),e||(Vo(t,"compositionstart",US),Vo(t,"compositionend",nv),Vo(t,"change",nv))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:s}},c){if(t[ff]=ev(c),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===e||(s||t.type==="number")&&Lf(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},GS={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gf=(t,e)=>r=>{if(!("key"in r))return;const o=go(r.key);if(e.some(s=>s===o||GS[s]===o))return t(r)},VS=Fe({patchProp:BS},kS);let rv;function KS(){return rv||(rv=sS(VS))}const q0=(...t)=>{const e=KS().createApp(...t),{mount:r}=e;return e.mount=o=>{const s=XS(o);if(!s)return;const c=e._component;!jt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},e};function XS(t){return Re(t)?document.querySelector(t):t}const mo=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},YS={};function ZS(t,e){const r=co("RouterView");return st(),te(r)}const QS=mo(YS,[["render",ZS]]);/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT */const Ko=typeof window<"u";function JS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function hf(t,e){const r={};for(const o in e){const s=e[o];r[o]=ur(s)?s.map(t):t(s)}return r}const dl=()=>{},ur=Array.isArray,tk=/\/$/,ek=t=>t.replace(tk,"");function df(t,e,r="/"){let o,s={},c="",f="";const h=e.indexOf("#");let d=e.indexOf("?");return h=0&&(d=-1),d>-1&&(o=e.slice(0,d),c=e.slice(d+1,h>-1?h:e.length),s=t(c)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=ok(o??e,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:f}}function nk(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function iv(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function rk(t,e,r){const o=e.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&fs(e.matched[o],r.matched[s])&&B0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function fs(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function B0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!ik(t[r],e[r]))return!1;return!0}function ik(t,e){return ur(t)?ov(t,e):ur(e)?ov(e,t):t===e}function ov(t,e){return ur(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function ok(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,h;for(f=0;f1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f-(f===o.length?1:0)).join("/")}var Ll;(function(t){t.pop="pop",t.push="push"})(Ll||(Ll={}));var pl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(pl||(pl={}));function sk(t){if(!t)if(Ko){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),ek(t)}const lk=/^[^#]+#/;function ak(t,e){return t.replace(lk,"#")+e}function ck(t,e){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-r.left-(e.left||0),top:o.top-r.top-(e.top||0)}}const Kc=()=>({left:window.pageXOffset,top:window.pageYOffset});function uk(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;e=ck(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function sv(t,e){return(history.state?history.state.position-e:-1)+t}const Vf=new Map;function fk(t,e){Vf.set(t,e)}function hk(t){const e=Vf.get(t);return Vf.delete(t),e}let dk=()=>location.protocol+"//"+location.host;function W0(t,e){const{pathname:r,search:o,hash:s}=e,c=t.indexOf("#");if(c>-1){let h=s.includes(t.slice(c))?t.slice(c).length:1,d=s.slice(h);return d[0]!=="/"&&(d="/"+d),iv(d,"")}return iv(r,t)+o+s}function pk(t,e,r,o){let s=[],c=[],f=null;const h=({state:w})=>{const _=W0(t,location),N=r.value,L=e.value;let A=0;if(w){if(r.value=_,e.value=w,f&&f===N){f=null;return}A=L?w.position-L.position:0}else o(_);s.forEach(T=>{T(r.value,N,{delta:A,type:Ll.pop,direction:A?A>0?pl.forward:pl.back:pl.unknown})})};function d(){f=r.value}function g(w){s.push(w);const _=()=>{const N=s.indexOf(w);N>-1&&s.splice(N,1)};return c.push(_),_}function v(){const{history:w}=window;w.state&&w.replaceState(pe({},w.state,{scroll:Kc()}),"")}function y(){for(const w of c)w();c=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:d,listen:g,destroy:y}}function lv(t,e,r,o=!1,s=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:s?Kc():null}}function gk(t){const{history:e,location:r}=window,o={value:W0(t,r)},s={value:e.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function c(d,g,v){const y=t.indexOf("#"),w=y>-1?(r.host&&document.querySelector("base")?t:t.slice(y))+d:dk()+t+d;try{e[v?"replaceState":"pushState"](g,"",w),s.value=g}catch(_){console.error(_),r[v?"replace":"assign"](w)}}function f(d,g){const v=pe({},e.state,lv(s.value.back,d,s.value.forward,!0),g,{position:s.value.position});c(d,v,!0),o.value=d}function h(d,g){const v=pe({},s.value,e.state,{forward:d,scroll:Kc()});c(v.current,v,!0);const y=pe({},lv(o.value,d,null),{position:v.position+1},g);c(d,y,!1),o.value=d}return{location:o,state:s,push:h,replace:f}}function vk(t){t=sk(t);const e=gk(t),r=pk(t,e.state,e.location,e.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=pe({location:"",base:t,go:o,createHref:ak.bind(null,t)},e,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function mk(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),vk(t)}function yk(t){return typeof t=="string"||t&&typeof t=="object"}function U0(t){return typeof t=="string"||typeof t=="symbol"}const pi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},j0=Symbol("");var av;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(av||(av={}));function hs(t,e){return pe(new Error,{type:t,[j0]:!0},e)}function Hr(t,e){return t instanceof Error&&j0 in t&&(e==null||!!(t.type&e))}const cv="[^/]+?",bk={sensitive:!1,strict:!1,start:!0,end:!0},wk=/[.+*?^${}()[\]/\\]/g;function xk(t,e){const r=pe({},bk,e),o=[];let s=r.start?"^":"";const c=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(s+="/");for(let y=0;ye.length?e.length===1&&e[0]===80?1:-1:0}function Sk(t,e){let r=0;const o=t.score,s=e.score;for(;r0&&e[e.length-1]<0}const kk={type:0,value:""},Ck=/[a-zA-Z0-9_]/;function Tk(t){if(!t)return[[]];if(t==="/")return[[kk]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${r})/"${g}": ${_}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let h=0,d,g="",v="";function y(){g&&(r===0?c.push({type:0,value:g}):r===1||r===2||r===3?(c.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:g,regexp:v,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),g="")}function w(){g+=d}for(;h{f(M)}:dl}function f(v){if(U0(v)){const y=o.get(v);y&&(o.delete(v),r.splice(r.indexOf(y),1),y.children.forEach(f),y.alias.forEach(f))}else{const y=r.indexOf(v);y>-1&&(r.splice(y,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function d(v){let y=0;for(;y=0&&(v.record.path!==r[y].record.path||!G0(v,r[y]));)y++;r.splice(y,0,v),v.record.name&&!hv(v)&&o.set(v.record.name,v)}function g(v,y){let w,_={},N,L;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw hs(1,{location:v});L=w.record.name,_=pe(fv(y.params,w.keys.filter(M=>!M.optional).map(M=>M.name)),v.params&&fv(v.params,w.keys.map(M=>M.name))),N=w.stringify(_)}else if("path"in v)N=v.path,w=r.find(M=>M.re.test(N)),w&&(_=w.parse(N),L=w.record.name);else{if(w=y.name?o.get(y.name):r.find(M=>M.re.test(y.path)),!w)throw hs(1,{location:v,currentLocation:y});L=w.record.name,_=pe({},y.params,v.params),N=w.stringify(_)}const A=[];let T=w;for(;T;)A.unshift(T.record),T=T.parent;return{name:L,path:N,params:_,matched:A,meta:Nk(A)}}return t.forEach(v=>c(v)),{addRoute:c,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:s}}function fv(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function Ak(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Mk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Mk(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const o in t.components)e[o]=typeof r=="object"?r[o]:r;return e}function hv(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Nk(t){return t.reduce((e,r)=>pe(e,r.meta),{})}function dv(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function G0(t,e){return e.children.some(r=>r===t||G0(t,r))}const V0=/#/g,Pk=/&/g,$k=/\//g,Ok=/=/g,Dk=/\?/g,K0=/\+/g,Rk=/%5B/g,zk=/%5D/g,X0=/%5E/g,Ik=/%60/g,Y0=/%7B/g,Fk=/%7C/g,Z0=/%7D/g,Hk=/%20/g;function jh(t){return encodeURI(""+t).replace(Fk,"|").replace(Rk,"[").replace(zk,"]")}function qk(t){return jh(t).replace(Y0,"{").replace(Z0,"}").replace(X0,"^")}function Kf(t){return jh(t).replace(K0,"%2B").replace(Hk,"+").replace(V0,"%23").replace(Pk,"%26").replace(Ik,"`").replace(Y0,"{").replace(Z0,"}").replace(X0,"^")}function Bk(t){return Kf(t).replace(Ok,"%3D")}function Wk(t){return jh(t).replace(V0,"%23").replace(Dk,"%3F")}function Uk(t){return t==null?"":Wk(t).replace($k,"%2F")}function gc(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function jk(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sc&&Kf(c)):[o&&Kf(o)]).forEach(c=>{c!==void 0&&(e+=(e.length?"&":"")+r,c!=null&&(e+="="+c))})}return e}function Gk(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=ur(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return e}const Vk=Symbol(""),gv=Symbol(""),Gh=Symbol(""),Q0=Symbol(""),Xf=Symbol("");function nl(){let t=[];function e(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function wi(t,e,r,o,s){const c=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((f,h)=>{const d=y=>{y===!1?h(hs(4,{from:r,to:e})):y instanceof Error?h(y):yk(y)?h(hs(2,{from:e,to:y})):(c&&o.enterCallbacks[s]===c&&typeof y=="function"&&c.push(y),f())},g=t.call(o&&o.instances[s],e,r,d);let v=Promise.resolve(g);t.length<3&&(v=v.then(d)),v.catch(y=>h(y))})}function pf(t,e,r,o){const s=[];for(const c of t)for(const f in c.components){let h=c.components[f];if(!(e!=="beforeRouteEnter"&&!c.instances[f]))if(Kk(h)){const g=(h.__vccOpts||h)[e];g&&s.push(wi(g,r,o,c,f))}else{let d=h();s.push(()=>d.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${c.path}"`));const v=JS(g)?g.default:g;c.components[f]=v;const w=(v.__vccOpts||v)[e];return w&&wi(w,r,o,c,f)()}))}}return s}function Kk(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function vv(t){const e=Gr(Gh),r=Gr(Q0),o=xt(()=>e.resolve(U(t.to))),s=xt(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],y=r.matched;if(!v||!y.length)return-1;const w=y.findIndex(fs.bind(null,v));if(w>-1)return w;const _=mv(d[g-2]);return g>1&&mv(v)===_&&y[y.length-1].path!==_?y.findIndex(fs.bind(null,d[g-2])):w}),c=xt(()=>s.value>-1&&Qk(r.params,o.value.params)),f=xt(()=>s.value>-1&&s.value===r.matched.length-1&&B0(r.params,o.value.params));function h(d={}){return Zk(d)?e[U(t.replace)?"replace":"push"](U(t.to)).catch(dl):Promise.resolve()}return{route:o,href:xt(()=>o.value.href),isActive:c,isExactActive:f,navigate:h}}const Xk=fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:vv,setup(t,{slots:e}){const r=Sr(vv(t)),{options:o}=Gr(Gh),s=xt(()=>({[yv(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[yv(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=e.default&&e.default(r);return t.custom?c:Ul("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),Yk=Xk;function Zk(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Qk(t,e){for(const r in e){const o=e[r],s=t[r];if(typeof o=="string"){if(o!==s)return!1}else if(!ur(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function mv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const yv=(t,e,r)=>t??e??r,Jk=fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=Gr(Xf),s=xt(()=>t.route||o.value),c=Gr(gv,0),f=xt(()=>{let g=U(c);const{matched:v}=s.value;let y;for(;(y=v[g])&&!y.components;)g++;return g}),h=xt(()=>s.value.matched[f.value]);Qa(gv,xt(()=>f.value+1)),Qa(Vk,h),Qa(Xf,s);const d=Zt();return Ie(()=>[d.value,h.value,t.name],([g,v,y],[w,_,N])=>{v&&(v.instances[y]=g,_&&_!==v&&g&&g===w&&(v.leaveGuards.size||(v.leaveGuards=_.leaveGuards),v.updateGuards.size||(v.updateGuards=_.updateGuards))),g&&v&&(!_||!fs(v,_)||!w)&&(v.enterCallbacks[y]||[]).forEach(L=>L(g))},{flush:"post"}),()=>{const g=s.value,v=t.name,y=h.value,w=y&&y.components[v];if(!w)return bv(r.default,{Component:w,route:g});const _=y.props[v],N=_?_===!0?g.params:typeof _=="function"?_(g):_:null,A=Ul(w,pe({},N,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(y.instances[v]=null)},ref:d}));return bv(r.default,{Component:A,route:g})||A}}});function bv(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const tC=Jk;function eC(t){const e=Lk(t.routes,t),r=t.parseQuery||jk,o=t.stringifyQuery||pv,s=t.history,c=nl(),f=nl(),h=nl(),d=bs(pi);let g=pi;Ko&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=hf.bind(null,j=>""+j),y=hf.bind(null,Uk),w=hf.bind(null,gc);function _(j,it){let at,Mt;return U0(j)?(at=e.getRecordMatcher(j),Mt=it):Mt=j,e.addRoute(Mt,at)}function N(j){const it=e.getRecordMatcher(j);it&&e.removeRoute(it)}function L(){return e.getRoutes().map(j=>j.record)}function A(j){return!!e.getRecordMatcher(j)}function T(j,it){if(it=pe({},it||d.value),typeof j=="string"){const V=df(r,j,it.path),J=e.resolve({path:V.path},it),lt=s.createHref(V.fullPath);return pe(V,J,{params:w(J.params),hash:gc(V.hash),redirectedFrom:void 0,href:lt})}let at;if("path"in j)at=pe({},j,{path:df(r,j.path,it.path).path});else{const V=pe({},j.params);for(const J in V)V[J]==null&&delete V[J];at=pe({},j,{params:y(V)}),it.params=y(it.params)}const Mt=e.resolve(at,it),Et=j.hash||"";Mt.params=v(w(Mt.params));const R=nk(o,pe({},j,{hash:qk(Et),path:Mt.path})),I=s.createHref(R);return pe({fullPath:R,hash:Et,query:o===pv?Gk(j.query):j.query||{}},Mt,{redirectedFrom:void 0,href:I})}function M(j){return typeof j=="string"?df(r,j,d.value.path):pe({},j)}function $(j,it){if(g!==j)return hs(8,{from:it,to:j})}function E(j){return ct(j)}function H(j){return E(pe(M(j),{replace:!0}))}function K(j){const it=j.matched[j.matched.length-1];if(it&&it.redirect){const{redirect:at}=it;let Mt=typeof at=="function"?at(j):at;return typeof Mt=="string"&&(Mt=Mt.includes("?")||Mt.includes("#")?Mt=M(Mt):{path:Mt},Mt.params={}),pe({query:j.query,hash:j.hash,params:"path"in Mt?{}:j.params},Mt)}}function ct(j,it){const at=g=T(j),Mt=d.value,Et=j.state,R=j.force,I=j.replace===!0,V=K(at);if(V)return ct(pe(M(V),{state:typeof V=="object"?pe({},Et,V.state):Et,force:R,replace:I}),it||at);const J=at;J.redirectedFrom=it;let lt;return!R&&rk(o,Mt,at)&&(lt=hs(16,{to:J,from:Mt}),Ht(Mt,Mt,!0,!1)),(lt?Promise.resolve(lt):rt(J,Mt)).catch(ft=>Hr(ft)?Hr(ft,2)?ft:At(ft):Q(ft,J,Mt)).then(ft=>{if(ft){if(Hr(ft,2))return ct(pe({replace:I},M(ft.to),{state:typeof ft.to=="object"?pe({},Et,ft.to.state):Et,force:R}),it||J)}else ft=ht(J,Mt,!0,I,Et);return dt(J,Mt,ft),ft})}function Y(j,it){const at=$(j,it);return at?Promise.reject(at):Promise.resolve()}function nt(j){const it=Qt.values().next().value;return it&&typeof it.runWithContext=="function"?it.runWithContext(j):j()}function rt(j,it){let at;const[Mt,Et,R]=nC(j,it);at=pf(Mt.reverse(),"beforeRouteLeave",j,it);for(const V of Mt)V.leaveGuards.forEach(J=>{at.push(wi(J,j,it))});const I=Y.bind(null,j,it);return at.push(I),Tt(at).then(()=>{at=[];for(const V of c.list())at.push(wi(V,j,it));return at.push(I),Tt(at)}).then(()=>{at=pf(Et,"beforeRouteUpdate",j,it);for(const V of Et)V.updateGuards.forEach(J=>{at.push(wi(J,j,it))});return at.push(I),Tt(at)}).then(()=>{at=[];for(const V of R)if(V.beforeEnter)if(ur(V.beforeEnter))for(const J of V.beforeEnter)at.push(wi(J,j,it));else at.push(wi(V.beforeEnter,j,it));return at.push(I),Tt(at)}).then(()=>(j.matched.forEach(V=>V.enterCallbacks={}),at=pf(R,"beforeRouteEnter",j,it),at.push(I),Tt(at))).then(()=>{at=[];for(const V of f.list())at.push(wi(V,j,it));return at.push(I),Tt(at)}).catch(V=>Hr(V,8)?V:Promise.reject(V))}function dt(j,it,at){h.list().forEach(Mt=>nt(()=>Mt(j,it,at)))}function ht(j,it,at,Mt,Et){const R=$(j,it);if(R)return R;const I=it===pi,V=Ko?history.state:{};at&&(Mt||I?s.replace(j.fullPath,pe({scroll:I&&V&&V.scroll},Et)):s.push(j.fullPath,Et)),d.value=j,Ht(j,it,at,I),At()}let G;function z(){G||(G=s.listen((j,it,at)=>{if(!Vt.listening)return;const Mt=T(j),Et=K(Mt);if(Et){ct(pe(Et,{replace:!0}),Mt).catch(dl);return}g=Mt;const R=d.value;Ko&&fk(sv(R.fullPath,at.delta),Kc()),rt(Mt,R).catch(I=>Hr(I,12)?I:Hr(I,2)?(ct(I.to,Mt).then(V=>{Hr(V,20)&&!at.delta&&at.type===Ll.pop&&s.go(-1,!1)}).catch(dl),Promise.reject()):(at.delta&&s.go(-at.delta,!1),Q(I,Mt,R))).then(I=>{I=I||ht(Mt,R,!1),I&&(at.delta&&!Hr(I,8)?s.go(-at.delta,!1):at.type===Ll.pop&&Hr(I,20)&&s.go(-1,!1)),dt(Mt,R,I)}).catch(dl)}))}let k=nl(),F=nl(),B;function Q(j,it,at){At(j);const Mt=F.list();return Mt.length?Mt.forEach(Et=>Et(j,it,at)):console.error(j),Promise.reject(j)}function yt(){return B&&d.value!==pi?Promise.resolve():new Promise((j,it)=>{k.add([j,it])})}function At(j){return B||(B=!j,z(),k.list().forEach(([it,at])=>j?at(j):it()),k.reset()),j}function Ht(j,it,at,Mt){const{scrollBehavior:Et}=t;if(!Ko||!Et)return Promise.resolve();const R=!at&&hk(sv(j.fullPath,0))||(Mt||!at)&&history.state&&history.state.scroll||null;return Kr().then(()=>Et(j,it,R)).then(I=>I&&uk(I)).catch(I=>Q(I,j,it))}const qt=j=>s.go(j);let Jt;const Qt=new Set,Vt={currentRoute:d,listening:!0,addRoute:_,removeRoute:N,hasRoute:A,getRoutes:L,resolve:T,options:t,push:E,replace:H,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:c.add,beforeResolve:f.add,afterEach:h.add,onError:F.add,isReady:yt,install(j){const it=this;j.component("RouterLink",Yk),j.component("RouterView",tC),j.config.globalProperties.$router=it,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>U(d)}),Ko&&!Jt&&d.value===pi&&(Jt=!0,E(s.location).catch(Et=>{}));const at={};for(const Et in pi)Object.defineProperty(at,Et,{get:()=>d.value[Et],enumerable:!0});j.provide(Gh,it),j.provide(Q0,r0(at)),j.provide(Xf,d);const Mt=j.unmount;Qt.add(j),j.unmount=function(){Qt.delete(j),Qt.size<1&&(g=pi,G&&G(),G=null,d.value=pi,Jt=!1,B=!1),Mt()}}};function Tt(j){return j.reduce((it,at)=>it.then(()=>nt(at)),Promise.resolve())}return Vt}function nC(t,e){const r=[],o=[],s=[],c=Math.max(e.matched.length,t.matched.length);for(let f=0;ffs(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>fs(g,d))||s.push(d))}return[r,o,s]}const rC=["top","right","bottom","left"],wv=["start","end"],xv=rC.reduce((t,e)=>t.concat(e,e+"-"+wv[0],e+"-"+wv[1]),[]),Al=Math.min,Ji=Math.max,iC={left:"right",right:"left",bottom:"top",top:"bottom"},oC={start:"end",end:"start"};function Yf(t,e,r){return Ji(t,Al(e,r))}function yo(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function ar(t){return t.split("-")[1]}function J0(t){return t==="x"?"y":"x"}function Vh(t){return t==="y"?"height":"width"}function jl(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function Kh(t){return J0(jl(t))}function ty(t,e,r){r===void 0&&(r=!1);const o=ar(t),s=Kh(t),c=Vh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(f=mc(f)),[f,mc(f)]}function sC(t){const e=mc(t);return[vc(t),e,vc(e)]}function vc(t){return t.replace(/start|end/g,e=>oC[e])}function lC(t,e,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:o:e?o:s;case"left":case"right":return e?c:f;default:return[]}}function aC(t,e,r,o){const s=ar(t);let c=lC(Lr(t),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),e&&(c=c.concat(c.map(vc)))),c}function mc(t){return t.replace(/left|right|bottom|top/g,e=>iC[e])}function cC(t){return{top:0,right:0,bottom:0,left:0,...t}}function ey(t){return typeof t!="number"?cC(t):{top:t,right:t,bottom:t,left:t}}function gl(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function _v(t,e,r){let{reference:o,floating:s}=t;const c=jl(e),f=Kh(e),h=Vh(f),d=Lr(e),g=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,w=o[h]/2-s[h]/2;let _;switch(d){case"top":_={x:v,y:o.y-s.height};break;case"bottom":_={x:v,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y};break;case"left":_={x:o.x-s.width,y};break;default:_={x:o.x,y:o.y}}switch(ar(e)){case"start":_[f]-=w*(r&&g?-1:1);break;case"end":_[f]+=w*(r&&g?-1:1);break}return _}const uC=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,h=c.filter(Boolean),d=await(f.isRTL==null?void 0:f.isRTL(e));let g=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:v,y}=_v(g,o,d),w=o,_={},N=0;for(let L=0;L({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:s,rects:c,platform:f,elements:h,middlewareData:d}=e,{element:g,padding:v=0}=yo(t,e)||{};if(g==null)return{};const y=ey(v),w={x:r,y:o},_=Kh(s),N=Vh(_),L=await f.getDimensions(g),A=_==="y",T=A?"top":"left",M=A?"bottom":"right",$=A?"clientHeight":"clientWidth",E=c.reference[N]+c.reference[_]-w[_]-c.floating[N],H=w[_]-c.reference[_],K=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let ct=K?K[$]:0;(!ct||!await(f.isElement==null?void 0:f.isElement(K)))&&(ct=h.floating[$]||c.floating[N]);const Y=E/2-H/2,nt=ct/2-L[N]/2-1,rt=Al(y[T],nt),dt=Al(y[M],nt),ht=rt,G=ct-L[N]-dt,z=ct/2-L[N]/2+Y,k=Yf(ht,z,G),F=!d.arrow&&ar(s)!=null&&z!==k&&c.reference[N]/2-(zar(s)===t),...r.filter(s=>ar(s)!==t)]:r.filter(s=>Lr(s)===s)).filter(s=>t?ar(s)===t||(e?vc(s)!==s:!1):!0)}const dC=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,s;const{rects:c,middlewareData:f,placement:h,platform:d,elements:g}=e,{crossAxis:v=!1,alignment:y,allowedPlacements:w=xv,autoAlignment:_=!0,...N}=yo(t,e),L=y!==void 0||w===xv?hC(y||null,_,w):w,A=await Xc(e,N),T=((r=f.autoPlacement)==null?void 0:r.index)||0,M=L[T];if(M==null)return{};const $=ty(M,c,await(d.isRTL==null?void 0:d.isRTL(g.floating)));if(h!==M)return{reset:{placement:L[0]}};const E=[A[Lr(M)],A[$[0]],A[$[1]]],H=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:M,overflows:E}],K=L[T+1];if(K)return{data:{index:T+1,overflows:H},reset:{placement:K}};const ct=H.map(rt=>{const dt=ar(rt.placement);return[rt.placement,dt&&v?rt.overflows.slice(0,2).reduce((ht,G)=>ht+G,0):rt.overflows[0],rt.overflows]}).sort((rt,dt)=>rt[1]-dt[1]),nt=((s=ct.filter(rt=>rt[2].slice(0,ar(rt[0])?2:3).every(dt=>dt<=0))[0])==null?void 0:s[0])||ct[0][0];return nt!==h?{data:{index:T+1,overflows:H},reset:{placement:nt}}:{}}}},pC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:d,elements:g}=e,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:L=!0,...A}=yo(t,e);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const T=Lr(s),M=Lr(h)===h,$=await(d.isRTL==null?void 0:d.isRTL(g.floating)),E=w||(M||!L?[mc(h)]:sC(h));!w&&N!=="none"&&E.push(...aC(h,L,N,$));const H=[h,...E],K=await Xc(e,A),ct=[];let Y=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ct.push(K[T]),y){const ht=ty(s,f,$);ct.push(K[ht[0]],K[ht[1]])}if(Y=[...Y,{placement:s,overflows:ct}],!ct.every(ht=>ht<=0)){var nt,rt;const ht=(((nt=c.flip)==null?void 0:nt.index)||0)+1,G=H[ht];if(G)return{data:{index:ht,overflows:Y},reset:{placement:G}};let z=(rt=Y.filter(k=>k.overflows[0]<=0).sort((k,F)=>k.overflows[1]-F.overflows[1])[0])==null?void 0:rt.placement;if(!z)switch(_){case"bestFit":{var dt;const k=(dt=Y.map(F=>[F.placement,F.overflows.filter(B=>B>0).reduce((B,Q)=>B+Q,0)]).sort((F,B)=>F[1]-B[1])[0])==null?void 0:dt[0];k&&(z=k);break}case"initialPlacement":z=h;break}if(s!==z)return{reset:{placement:z}}}return{}}}};async function gC(t,e){const{placement:r,platform:o,elements:s}=t,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Lr(r),h=ar(r),d=jl(r)==="y",g=["left","top"].includes(f)?-1:1,v=c&&d?-1:1,y=yo(e,t);let{mainAxis:w,crossAxis:_,alignmentAxis:N}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return h&&typeof N=="number"&&(_=h==="end"?N*-1:N),d?{x:_*v,y:w*g}:{x:w*g,y:_*v}}const vC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:s,y:c,placement:f,middlewareData:h}=e,d=await gC(e,t);return f===((r=h.offset)==null?void 0:r.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:s+d.x,y:c+d.y,data:{...d,placement:f}}}}},mC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:c=!0,crossAxis:f=!1,limiter:h={fn:A=>{let{x:T,y:M}=A;return{x:T,y:M}}},...d}=yo(t,e),g={x:r,y:o},v=await Xc(e,d),y=jl(Lr(s)),w=J0(y);let _=g[w],N=g[y];if(c){const A=w==="y"?"top":"left",T=w==="y"?"bottom":"right",M=_+v[A],$=_-v[T];_=Yf(M,_,$)}if(f){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",M=N+v[A],$=N-v[T];N=Yf(M,N,$)}const L=h.fn({...e,[w]:_,[y]:N});return{...L,data:{x:L.x-r,y:L.y-o}}}}},yC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:s,elements:c}=e,{apply:f=()=>{},...h}=yo(t,e),d=await Xc(e,h),g=Lr(r),v=ar(r),y=jl(r)==="y",{width:w,height:_}=o.floating;let N,L;g==="top"||g==="bottom"?(N=g,L=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=g,N=v==="end"?"top":"bottom");const A=_-d[N],T=w-d[L],M=!e.middlewareData.shift;let $=A,E=T;if(y){const K=w-d.left-d.right;E=v||M?Al(T,K):K}else{const K=_-d.top-d.bottom;$=v||M?Al(A,K):K}if(M&&!v){const K=Ji(d.left,0),ct=Ji(d.right,0),Y=Ji(d.top,0),nt=Ji(d.bottom,0);y?E=w-2*(K!==0||ct!==0?K+ct:Ji(d.left,d.right)):$=_-2*(Y!==0||nt!==0?Y+nt:Ji(d.top,d.bottom))}await f({...e,availableWidth:E,availableHeight:$});const H=await s.getDimensions(c.floating);return w!==H.width||_!==H.height?{reset:{rects:!0}}:{}}}};function Un(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function kr(t){return Un(t).getComputedStyle(t)}const Sv=Math.min,vl=Math.max,yc=Math.round;function ny(t){const e=kr(t);let r=parseFloat(e.width),o=parseFloat(e.height);const s=t.offsetWidth,c=t.offsetHeight,f=yc(r)!==s||yc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function $i(t){return iy(t)?(t.nodeName||"").toLowerCase():""}let za;function ry(){if(za)return za;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(za=t.brands.map(e=>e.brand+"/"+e.version).join(" "),za):navigator.userAgent}function Cr(t){return t instanceof Un(t).HTMLElement}function Ai(t){return t instanceof Un(t).Element}function iy(t){return t instanceof Un(t).Node}function kv(t){return typeof ShadowRoot>"u"?!1:t instanceof Un(t).ShadowRoot||t instanceof ShadowRoot}function Yc(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=kr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function bC(t){return["table","td","th"].includes($i(t))}function Zf(t){const e=/firefox/i.test(ry()),r=kr(t),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||e&&r.willChange==="filter"||e&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function oy(){return!/^((?!chrome|android).)*safari/i.test(ry())}function Xh(t){return["html","body","#document"].includes($i(t))}function sy(t){return Ai(t)?t:t.contextElement}const ly={x:1,y:1};function rs(t){const e=sy(t);if(!Cr(e))return ly;const r=e.getBoundingClientRect(),{width:o,height:s,fallback:c}=ny(e);let f=(c?yc(r.width):r.width)/o,h=(c?yc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),h&&Number.isFinite(h)||(h=1),{x:f,y:h}}function Ml(t,e,r,o){var s,c;e===void 0&&(e=!1),r===void 0&&(r=!1);const f=t.getBoundingClientRect(),h=sy(t);let d=ly;e&&(o?Ai(o)&&(d=rs(o)):d=rs(t));const g=h?Un(h):window,v=!oy()&&r;let y=(f.left+(v&&((s=g.visualViewport)==null?void 0:s.offsetLeft)||0))/d.x,w=(f.top+(v&&((c=g.visualViewport)==null?void 0:c.offsetTop)||0))/d.y,_=f.width/d.x,N=f.height/d.y;if(h){const L=Un(h),A=o&&Ai(o)?Un(o):o;let T=L.frameElement;for(;T&&o&&A!==L;){const M=rs(T),$=T.getBoundingClientRect(),E=getComputedStyle(T);$.x+=(T.clientLeft+parseFloat(E.paddingLeft))*M.x,$.y+=(T.clientTop+parseFloat(E.paddingTop))*M.y,y*=M.x,w*=M.y,_*=M.x,N*=M.y,y+=$.x,w+=$.y,T=Un(T).frameElement}}return{width:_,height:N,top:w,right:y+_,bottom:w+N,left:y,x:y,y:w}}function Mi(t){return((iy(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zc(t){return Ai(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ay(t){return Ml(Mi(t)).left+Zc(t).scrollLeft}function Nl(t){if($i(t)==="html")return t;const e=t.assignedSlot||t.parentNode||kv(t)&&t.host||Mi(t);return kv(e)?e.host:e}function cy(t){const e=Nl(t);return Xh(e)?e.ownerDocument.body:Cr(e)&&Yc(e)?e:cy(e)}function bc(t,e){var r;e===void 0&&(e=[]);const o=cy(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),c=Un(o);return s?e.concat(c,c.visualViewport||[],Yc(o)?o:[]):e.concat(o,bc(o))}function Cv(t,e,r){return e==="viewport"?gl(function(o,s){const c=Un(o),f=Mi(o),h=c.visualViewport;let d=f.clientWidth,g=f.clientHeight,v=0,y=0;if(h){d=h.width,g=h.height;const w=oy();(w||!w&&s==="fixed")&&(v=h.offsetLeft,y=h.offsetTop)}return{width:d,height:g,x:v,y}}(t,r)):Ai(e)?gl(function(o,s){const c=Ml(o,!0,s==="fixed"),f=c.top+o.clientTop,h=c.left+o.clientLeft,d=Cr(o)?rs(o):{x:1,y:1};return{width:o.clientWidth*d.x,height:o.clientHeight*d.y,x:h*d.x,y:f*d.y}}(e,r)):gl(function(o){const s=Mi(o),c=Zc(o),f=o.ownerDocument.body,h=vl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),d=vl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let g=-c.scrollLeft+ay(o);const v=-c.scrollTop;return kr(f).direction==="rtl"&&(g+=vl(s.clientWidth,f.clientWidth)-h),{width:h,height:d,x:g,y:v}}(Mi(t)))}function Tv(t){return Cr(t)&&kr(t).position!=="fixed"?t.offsetParent:null}function Ev(t){const e=Un(t);let r=Tv(t);for(;r&&bC(r)&&kr(r).position==="static";)r=Tv(r);return r&&($i(r)==="html"||$i(r)==="body"&&kr(r).position==="static"&&!Zf(r))?e:r||function(o){let s=Nl(o);for(;Cr(s)&&!Xh(s);){if(Zf(s))return s;s=Nl(s)}return null}(t)||e}function wC(t,e,r){const o=Cr(e),s=Mi(e),c=Ml(t,!0,r==="fixed",e);let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if(($i(e)!=="body"||Yc(s))&&(f=Zc(e)),Cr(e)){const d=Ml(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else s&&(h.x=ay(s));return{x:c.left+f.scrollLeft-h.x,y:c.top+f.scrollTop-h.y,width:c.width,height:c.height}}const xC={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const c=r==="clippingAncestors"?function(g,v){const y=v.get(g);if(y)return y;let w=bc(g).filter(A=>Ai(A)&&$i(A)!=="body"),_=null;const N=kr(g).position==="fixed";let L=N?Nl(g):g;for(;Ai(L)&&!Xh(L);){const A=kr(L),T=Zf(L);(N?T||_:T||A.position!=="static"||!_||!["absolute","fixed"].includes(_.position))?_=A:w=w.filter(M=>M!==L),L=Nl(L)}return v.set(g,w),w}(e,this._c):[].concat(r),f=[...c,o],h=f[0],d=f.reduce((g,v)=>{const y=Cv(e,v,s);return g.top=vl(y.top,g.top),g.right=Sv(y.right,g.right),g.bottom=Sv(y.bottom,g.bottom),g.left=vl(y.left,g.left),g},Cv(e,h,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Cr(r),c=Mi(r);if(r===c)return e;let f={scrollLeft:0,scrollTop:0},h={x:1,y:1};const d={x:0,y:0};if((s||!s&&o!=="fixed")&&(($i(r)!=="body"||Yc(c))&&(f=Zc(r)),Cr(r))){const g=Ml(r);h=rs(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}return{width:e.width*h.x,height:e.height*h.y,x:e.x*h.x-f.scrollLeft*h.x+d.x,y:e.y*h.y-f.scrollTop*h.y+d.y}},isElement:Ai,getDimensions:function(t){return Cr(t)?ny(t):t.getBoundingClientRect()},getOffsetParent:Ev,getDocumentElement:Mi,getScale:rs,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||Ev,c=this.getDimensions;return{reference:wC(e,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>kr(t).direction==="rtl"},_C=(t,e,r)=>{const o=new Map,s={platform:xC,...r},c={...s.platform,_c:o};return uC(t,e,{...s,platform:c})};function uy(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?uy(t[r],e[r]):t[r]=e[r])}const cr={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:t=>[...t,"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 Pl(t,e){let r=cr.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=cr.themes[r.$extend]||{}:(r=null,o=cr[e]):r=null;while(r);return o}function SC(t){const e=[t];let r=cr.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=cr.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}function Lv(t){const e=[t];let r=cr.themes[t]||{};do r.$extend?(e.push(r.$extend),r=cr.themes[r.$extend]||{}):r=null;while(r);return e}let ds=!1;if(typeof window<"u"){ds=!1;try{const t=Object.defineProperty({},"passive",{get(){ds=!0}});window.addEventListener("test",null,t)}catch{}}let fy=!1;typeof window<"u"&&typeof navigator<"u"&&(fy=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const hy=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),Av={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Mv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Nv(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function gf(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const sr=[];let Qi=null;const Pv={};function $v(t){let e=Pv[t];return e||(e=Pv[t]=[]),e}let Qf=function(){};typeof window<"u"&&(Qf=window.Element);function ie(t){return function(e){return Pl(e.theme,t)}}const vf="__floating-vue__popper",dy=()=>fe({name:"VPopper",provide(){return{[vf]:{parentPopper:this}}},inject:{[vf]:{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:ie("disabled")},positioningDisabled:{type:Boolean,default:ie("positioningDisabled")},placement:{type:String,default:ie("placement"),validator:t=>hy.includes(t)},delay:{type:[String,Number,Object],default:ie("delay")},distance:{type:[Number,String],default:ie("distance")},skidding:{type:[Number,String],default:ie("skidding")},triggers:{type:Array,default:ie("triggers")},showTriggers:{type:[Array,Function],default:ie("showTriggers")},hideTriggers:{type:[Array,Function],default:ie("hideTriggers")},popperTriggers:{type:Array,default:ie("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ie("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ie("popperHideTriggers")},container:{type:[String,Object,Qf,Boolean],default:ie("container")},boundary:{type:[String,Qf],default:ie("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:ie("strategy")},autoHide:{type:[Boolean,Function],default:ie("autoHide")},handleResize:{type:Boolean,default:ie("handleResize")},instantMove:{type:Boolean,default:ie("instantMove")},eagerMount:{type:Boolean,default:ie("eagerMount")},popperClass:{type:[String,Array,Object],default:ie("popperClass")},computeTransformOrigin:{type:Boolean,default:ie("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ie("autoMinSize")},autoSize:{type:[Boolean,String],default:ie("autoSize")},autoMaxSize:{type:Boolean,default:ie("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ie("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ie("preventOverflow")},overflowPadding:{type:[Number,String],default:ie("overflowPadding")},arrowPadding:{type:[Number,String],default:ie("arrowPadding")},arrowOverflow:{type:Boolean,default:ie("arrowOverflow")},flip:{type:Boolean,default:ie("flip")},shift:{type:Boolean,default:ie("shift")},shiftCrossAxis:{type:Boolean,default:ie("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ie("noAutoFocus")},disposeTimeout:{type:Number,default:ie("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!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(t=>t.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 t;return(t=this[vf])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,e;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?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((t,e)=>(t[e]="$_computePosition",t),{})},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:t=null,skipDelay:e=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:e=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.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 t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(vC({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?t.middleware.push(dC({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(mC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&t.middleware.push(pC({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(fC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:h}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(h)>s.reference.width/2:f=Math.abs(h)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var h;if((h=f.autoSize)!=null&&h.skip)return{};let d,g;return c.startsWith("top")||c.startsWith("bottom")?d=s.reference.width:g=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(yC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await _C(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(t,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Qi&&this.instantMove&&Qi.instantMove&&Qi!==this.parentPopper){Qi.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,e=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Qi=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await gf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...bc(this.$_referenceNode),...bc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=e.x+e.width/2-(o.left+r.offsetLeft),c=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let r=0;r0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Nv(sr,this),sr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Lv(this.theme)){const o=$v(r);Nv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Qi===this&&(Qi=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await gf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Av,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Av,this.popperTriggers,this.popperShowTriggers,t);const e=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Mv,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Mv,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(t,e,r){this.$_events.push({targetNodes:t,eventType:e,handler:r}),t.forEach(o=>o.addEventListener(e,r,ds?{passive:!0}:void 0))},$_registerTriggerListeners(t,e,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const h=e[f];h&&this.$_registerEventListeners(t,h,s)})},$_removeEventListeners(t){const e=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!t||t===s?o.forEach(f=>f.removeEventListener(s,c)):e.push(r)}),this.$_events=e},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(e,o))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const r in t){const o=t[r];o==null?e.removeAttribute(r):e.setAttribute(r,o)}},$_updateParentShownChildren(t){let e=this.parentPopper;for(;e;)t?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(ml>=t.left&&ml<=t.right&&yl>=t.top&&yl<=t.bottom){const e=this.$_popperNode.getBoundingClientRect(),r=ml-vi,o=yl-mi,s=e.left+e.width/2-vi+(e.top+e.height/2)-mi+e.width+e.height,c=vi+r*s,f=mi+o*s;return Ia(vi,mi,c,f,e.left,e.top,e.left,e.bottom)||Ia(vi,mi,c,f,e.left,e.top,e.right,e.top)||Ia(vi,mi,c,f,e.right,e.top,e.right,e.bottom)||Ia(vi,mi,c,f,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(fy){const t=ds?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",e=>Ov(e,!0),t),document.addEventListener("touchend",e=>Dv(e,!0),t)}else window.addEventListener("mousedown",t=>Ov(t,!1),!0),window.addEventListener("click",t=>Dv(t,!1),!0);window.addEventListener("resize",CC)}function Ov(t,e){if(cr.autoHideOnMousedown)py(t,e);else for(let r=0;r=0;o--){const s=sr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(t.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Rv(s,c,t)){if(s.$_handleGlobalClose(t,e),!t.closeAllPopover&&t.closePopover&&c){let h=s.parentPopper;for(;h;)r[h.randomId]=!0,h=h.parentPopper;return}let f=s.parentPopper;for(;f&&Rv(f,f.containsGlobalTarget,t);)f.$_handleGlobalClose(t,e),f=f.parentPopper}})}catch{}}}function Rv(t,e,r){return r.closeAllPopover||r.closePopover&&e||kC(t,r)&&!e}function kC(t,e){if(typeof t.autoHide=="function"){const r=t.autoHide(e);return t.lastAutoHide=r,r}return t.autoHide}function CC(){for(let t=0;t{vi=ml,mi=yl,ml=t.clientX,yl=t.clientY},ds?{passive:!0}:void 0);function Ia(t,e,r,o,s,c,f,h){const d=((f-s)*(e-c)-(h-c)*(t-s))/((h-c)*(r-t)-(f-s)*(o-e)),g=((r-t)*(e-c)-(o-e)*(t-s))/((h-c)*(r-t)-(f-s)*(o-e));return d>=0&&d<=1&&g>=0&&g<=1}const TC={extends:dy()},Qc=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r};function EC(t,e,r,o,s,c){return st(),St("div",{ref:"reference",class:ge(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Gn(t.$slots,"default",Lx(R0(t.slotData)))],2)}const LC=Qc(TC,[["render",EC]]);function AC(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}let tc;function Jf(){Jf.init||(Jf.init=!0,tc=AC()!==-1)}var Jc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Jf(),Kr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",tc&&this.$el.appendChild(t),t.data="about:blank",tc||this.$el.appendChild(t)},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&&(!tc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const MC=g_();d0("data-v-b329ee4c");const NC={class:"resize-observer",tabindex:"-1"};p0();const PC=MC((t,e,r,o,s,c)=>(st(),te("div",NC)));Jc.render=PC;Jc.__scopeId="data-v-b329ee4c";Jc.__file="src/components/ResizeObserver.vue";const gy=(t="theme")=>({computed:{themeClass(){return SC(this[t])}}}),$C=fe({name:"VPopperContent",components:{ResizeObserver:Jc},mixins:[gy()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),OC=["id","aria-hidden","tabindex","data-popper-placement"],DC={ref:"inner",class:"v-popper__inner"},RC=tt("div",{class:"v-popper__arrow-outer"},null,-1),zC=tt("div",{class:"v-popper__arrow-inner"},null,-1),IC=[RC,zC];function FC(t,e,r,o,s,c){const f=co("ResizeObserver");return st(),St("div",{id:t.popperId,ref:"popover",class:ge(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:An(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:e[2]||(e[2]=Gf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[tt("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=h=>t.autoHide&&t.$emit("hide"))}),tt("div",{class:"v-popper__wrapper",style:An(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[tt("div",DC,[t.mounted?(st(),St(ne,{key:0},[tt("div",null,[Gn(t.$slots,"default")]),t.handleResize?(st(),te(f,{key:0,onNotify:e[1]||(e[1]=h=>t.$emit("resize",h))})):Gt("",!0)],64)):Gt("",!0)],512),tt("div",{ref:"arrow",class:"v-popper__arrow-container",style:An(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},IC,4)],4)],46,OC)}const vy=Qc($C,[["render",FC]]),my={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let th=function(){};typeof window<"u"&&(th=window.Element);const HC=fe({name:"VPopperWrapper",components:{Popper:LC,PopperContent:vy},mixins:[my,gy("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,th,Boolean],default:void 0},boundary:{type:[String,th],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":t=>!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(t=>t!==this.$refs.popperContent.$el)}}});function qC(t,e,r,o,s,c){const f=co("PopperContent"),h=co("Popper");return st(),te(h,Li({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:e[0]||(e[0]=()=>t.$emit("show")),onHide:e[1]||(e[1]=()=>t.$emit("hide")),"onUpdate:shown":e[2]||(e[2]=d=>t.$emit("update:shown",d)),onApplyShow:e[3]||(e[3]=()=>t.$emit("apply-show")),onApplyHide:e[4]||(e[4]=()=>t.$emit("apply-hide")),onCloseGroup:e[5]||(e[5]=()=>t.$emit("close-group")),onCloseDirective:e[6]||(e[6]=()=>t.$emit("close-directive")),onAutoHide:e[7]||(e[7]=()=>t.$emit("auto-hide")),onResize:e[8]||(e[8]=()=>t.$emit("resize"))}),{default:ee(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:y,autoHide:w,show:_,hide:N,handleResize:L,onResize:A,classes:T,result:M})=>[Gn(t.$slots,"default",{shown:g,show:_,hide:N}),Ft(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":y,"auto-hide":w,"handle-resize":L,classes:T,result:M,onHide:N,onResize:A},{default:ee(()=>[Gn(t.$slots,"popper",{shown:g,hide:N})]),_: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 Yh=Qc(HC,[["render",qC]]),BC={...Yh,name:"VDropdown",vPopperTheme:"dropdown"},WC={...Yh,name:"VMenu",vPopperTheme:"menu"},yy={...Yh,name:"VTooltip",vPopperTheme:"tooltip"},UC=fe({name:"VTooltipDirective",components:{Popper:dy(),PopperContent:vy},mixins:[my],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Pl(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Pl(t.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(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(e,o)):this.onResult(e,r)}},onResult(t,e){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),jC=["innerHTML"],GC=["textContent"];function VC(t,e,r,o,s,c){const f=co("PopperContent"),h=co("Popper");return st(),te(h,Li({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:ee(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:y,autoHide:w,hide:_,handleResize:N,onResize:L,classes:A,result:T})=>[Ft(f,{ref:"popperContent",class:ge({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":y,"auto-hide":w,"handle-resize":N,classes:A,result:T,onHide:_,onResize:L},{default:ee(()=>[t.html?(st(),St("div",{key:0,innerHTML:t.finalContent},null,8,jC)):(st(),St("div",{key:1,textContent:Ut(t.finalContent)},null,8,GC))]),_: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 KC=Qc(UC,[["render",VC]]),by="v-popper--has-tooltip";function XC(t,e){let r=t.placement;if(!r&&e)for(const o of hy)e[o]&&(r=o);return r||(r=Pl(t.theme||"tooltip","placement")),r}function wy(t,e,r){let o;const s=typeof e;return s==="string"?o={content:e}:e&&s==="object"?o=e:o={content:!1},o.placement=XC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let mf,$l,YC=0;function ZC(){if(mf)return;$l=Zt([]),mf=q0({name:"VTooltipDirectiveApp",setup(){return{directives:$l}},render(){return this.directives.map(e=>Ul(KC,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),mf.mount(t)}function xy(t,e,r){ZC();const o=Zt(wy(t,e,r)),s=Zt(!1),c={id:YC++,options:o,shown:s};return $l.value.push(c),t.classList&&t.classList.add(by),t.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Zh(t){if(t.$_popper){const e=$l.value.indexOf(t.$_popper.item);e!==-1&&$l.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(by)}function zv(t,{value:e,modifiers:r}){const o=wy(t,e,r);if(!o.content||Pl(o.theme||"tooltip","disabled"))Zh(t);else{let s;t.$_popper?(s=t.$_popper,s.options.value=o):s=xy(t,e,r),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?s.show():s.hide())}}const _y={beforeMount:zv,updated:zv,beforeUnmount(t){Zh(t)}};function Iv(t){t.addEventListener("mousedown",wc),t.addEventListener("click",wc),t.addEventListener("touchstart",Sy,ds?{passive:!0}:!1)}function Fv(t){t.removeEventListener("mousedown",wc),t.removeEventListener("click",wc),t.removeEventListener("touchstart",Sy),t.removeEventListener("touchend",ky),t.removeEventListener("touchcancel",Cy)}function wc(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function Sy(t){if(t.changedTouches.length===1){const e=t.currentTarget;e.$_vclosepopover_touch=!0;const r=t.changedTouches[0];e.$_vclosepopover_touchPoint=r,e.addEventListener("touchend",ky),e.addEventListener("touchcancel",Cy)}}function ky(t){const e=t.currentTarget;if(e.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function Cy(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}const QC={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&Iv(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?Iv(t):Fv(t))},beforeUnmount(t){Fv(t)}},JC=_y,tT=yy;function eT(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,uy(cr,e),t.directive("tooltip",_y),t.directive("close-popper",QC),t.component("VTooltip",yy),t.component("VDropdown",BC),t.component("VMenu",WC))}const Ty={version:"5.2.2",install:eT,options:cr},nT=6e4;function Ey(t){return t}const rT=Ey,{clearTimeout:iT,setTimeout:oT}=globalThis,sT=Math.random.bind(Math);function lT(t,e){const{post:r,on:o,eventNames:s=[],serialize:c=Ey,deserialize:f=rT,resolver:h,timeout:d=nT}=e,g=new Map;let v;const y=new Proxy({},{get(w,_){if(_==="$functions")return t;const N=(...A)=>{r(c({m:_,a:A,t:"q"}))};if(s.includes(_))return N.asEvent=N,N;const L=async(...A)=>(await v,new Promise((T,M)=>{var H,K;const $=cT();let E;d>=0&&(E=(K=(H=oT(()=>{var ct;try{throw(ct=e.onTimeoutError)==null||ct.call(e,_,A),new Error(`[birpc] timeout on calling "${_}"`)}catch(Y){M(Y)}g.delete($)},d)).unref)==null?void 0:K.call(H)),g.set($,{resolve:T,reject:M,timeoutId:E}),r(c({m:_,a:A,i:$,t:"q"}))}));return L.asEvent=N,L}});return v=o(async(w,..._)=>{const N=f(w);if(N.t==="q"){const{m:L,a:A}=N;let T,M;const $=h?h(L,t[L]):t[L];if(!$)M=new Error(`[birpc] function "${L}" not found`);else try{T=await $.apply(y,A)}catch(E){M=E}N.i&&(M&&e.onError&&e.onError(M,L,A),r(c({t:"s",i:N.i,r:T,e:M}),..._))}else{const{i:L,r:A,e:T}=N,M=g.get(L);M&&(iT(M.timeoutId),T?M.reject(T):M.resolve(A)),g.delete(L)}}),y}const aT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function cT(t=21){let e="",r=t;for(;r--;)e+=aT[sT()*64|0];return e}/*! (c) 2020 Andrea Giammarchi */const{parse:uT,stringify:fT}=JSON,{keys:hT}=Object,Ol=String,Ly="string",Hv={},xc="object",Ay=(t,e)=>e,dT=t=>t instanceof Ol?Ol(t):t,pT=(t,e)=>typeof e===Ly?new Ol(e):e,My=(t,e,r,o)=>{const s=[];for(let c=hT(r),{length:f}=c,h=0;h{const o=Ol(e.push(r)-1);return t.set(r,o),o},eh=(t,e)=>{const r=uT(t,pT).map(dT),o=r[0],s=e||Ay,c=typeof o===xc&&o?My(r,new Set,o,s):o;return s.call({"":c},"",c)},gT=(t,e,r)=>{const o=e&&typeof e===xc?(v,y)=>v===""||-1vT(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:yT();!s||s.length===0||(e=`${s}/${e}`,r=Wv(s))}return e=bT(e,!r),r&&!Wv(e)?`/${e}`:e.length>0?e:"."};function bT(t,e){let r="",o=0,s=-1,c=0,f=null;for(let h=0;h<=t.length;++h){if(h2){const d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,c=0;continue}else if(r.length>0){r="",o=0,s=h,c=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Wv=function(t){return mT.test(t)},Ny=function(t,e){const r=Bv(t).split("/"),o=Bv(e).split("/"),s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function wT(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class Py{constructor(){Vi(this,"filesMap",new Map);Vi(this,"pathsSet",new Set);Vi(this,"idMap",new Map);Vi(this,"taskFileMap",new WeakMap);Vi(this,"errorsSet",new Set);Vi(this,"processTimeoutCauses",new Set)}catchError(e,r){if(wT(e))return e.errors.forEach(s=>this.catchError(s,r));e===Object(e)?e.type=r:e={type:r,message:e};const o=e;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const s=this.idMap.get(o.taskId);s&&(s.mode="skip",s.result??(s.result={state:"skip"}),s.result.state="skip");return}this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(e){this.processTimeoutCauses.add(e)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(e){return e?e.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).map(e=>e.filepath)}collectPaths(e=[]){e.forEach(r=>{this.pathsSet.add(r)})}collectFiles(e=[]){e.forEach(r=>{const s=(this.filesMap.get(r.filepath)||[]).filter(c=>c.projectName!==r.projectName);s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(e,r=[]){const o=e;r.forEach(s=>{const c=this.filesMap.get(s);if(!c)return;const f=c.filter(h=>h.projectName!==o.config.name);f.length?this.filesMap.set(s,f):this.filesMap.delete(s)})}updateId(e){this.idMap.get(e.id)!==e&&(this.idMap.set(e.id,e),e.type==="suite"&&e.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(e){for(const[r,o,s]of e){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(e,r,o){this.collectFiles(e.map(s=>({filepath:s,name:Ny(r,s),id:s,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:o})))}}var uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Oy(t){return t!=null}function Dy(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function xT(t){let e=0;if(t.length===0)return`${e}`;for(let r=0;rnh(e)?[e]:[e,...Qh(e.tasks)])}function _T(t){const e=[t.name];let r=t;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&e.unshift(r.name);return e}function tu(t){return Ry(t).some(e=>{var r,o;return(o=(r=e.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function ST(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:h=M=>M,WebSocketConstructor:d=globalThis.WebSocket}=e;let g=c;const v=h({ws:new d(t),state:new Py,waitForConnection:T,reconnect:L});v.state.filesMap=h(v.state.filesMap),v.state.idMap=h(v.state.idMap);let y;const w={onPathsCollected(M){var $;v.state.collectPaths(M),($=r.onPathsCollected)==null||$.call(r,M)},onCollected(M){var $;v.state.collectFiles(M),($=r.onCollected)==null||$.call(r,M)},onTaskUpdate(M){var $;v.state.updateTasks(M),($=r.onTaskUpdate)==null||$.call(r,M)},onUserConsoleLog(M){v.state.updateUserLog(M)},onFinished(M,$){var E;(E=r.onFinished)==null||E.call(r,M,$)},onFinishedReportCoverage(){var M;(M=r.onFinishedReportCoverage)==null||M.call(r)},onCancel(M){var $;($=r.onCancel)==null||$.call(r,M)}},_={post:M=>v.ws.send(M),on:M=>y=M,serialize:gT,deserialize:eh,onTimeoutError(M){throw new Error(`[vitest-ws-client]: Timeout calling "${M}"`)}};v.rpc=lT(w,_);let N;function L(M=!1){M&&(g=c),v.ws=new d(t),A()}function A(){N=new Promise((M,$)=>{var H,K;const E=(K=(H=setTimeout(()=>{$(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:H.unref)==null?void 0:K.call(H);v.ws.OPEN===v.ws.readyState&&M(),v.ws.addEventListener("open",()=>{g=c,M(),clearTimeout(E)})}),v.ws.addEventListener("message",M=>{y(M.data)}),v.ws.addEventListener("close",()=>{g-=1,o&&g>0&&setTimeout(L,s)})}A();function T(){return N}return v}const kT=location.port,CT=[location.hostname,kT].filter(Boolean).join(":"),TT=`${location.protocol==="https:"?"wss:":"ws:"}//${CT}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Xr=!!window.METADATA_PATH;var zy={},Vr={};const ET="Á",LT="á",AT="Ă",MT="ă",NT="∾",PT="∿",$T="∾̳",OT="Â",DT="â",RT="´",zT="А",IT="а",FT="Æ",HT="æ",qT="⁡",BT="𝔄",WT="𝔞",UT="À",jT="à",GT="ℵ",VT="ℵ",KT="Α",XT="α",YT="Ā",ZT="ā",QT="⨿",JT="&",tE="&",eE="⩕",nE="⩓",rE="∧",iE="⩜",oE="⩘",sE="⩚",lE="∠",aE="⦤",cE="∠",uE="⦨",fE="⦩",hE="⦪",dE="⦫",pE="⦬",gE="⦭",vE="⦮",mE="⦯",yE="∡",bE="∟",wE="⊾",xE="⦝",_E="∢",SE="Å",kE="⍼",CE="Ą",TE="ą",EE="𝔸",LE="𝕒",AE="⩯",ME="≈",NE="⩰",PE="≊",$E="≋",OE="'",DE="⁡",RE="≈",zE="≊",IE="Å",FE="å",HE="𝒜",qE="𝒶",BE="≔",WE="*",UE="≈",jE="≍",GE="Ã",VE="ã",KE="Ä",XE="ä",YE="∳",ZE="⨑",QE="≌",JE="϶",tL="‵",eL="∽",nL="⋍",rL="∖",iL="⫧",oL="⊽",sL="⌅",lL="⌆",aL="⌅",cL="⎵",uL="⎶",fL="≌",hL="Б",dL="б",pL="„",gL="∵",vL="∵",mL="∵",yL="⦰",bL="϶",wL="ℬ",xL="ℬ",_L="Β",SL="β",kL="ℶ",CL="≬",TL="𝔅",EL="𝔟",LL="⋂",AL="◯",ML="⋃",NL="⨀",PL="⨁",$L="⨂",OL="⨆",DL="★",RL="▽",zL="△",IL="⨄",FL="⋁",HL="⋀",qL="⤍",BL="⧫",WL="▪",UL="▴",jL="▾",GL="◂",VL="▸",KL="␣",XL="▒",YL="░",ZL="▓",QL="█",JL="=⃥",tA="≡⃥",eA="⫭",nA="⌐",rA="𝔹",iA="𝕓",oA="⊥",sA="⊥",lA="⋈",aA="⧉",cA="┐",uA="╕",fA="╖",hA="╗",dA="┌",pA="╒",gA="╓",vA="╔",mA="─",yA="═",bA="┬",wA="╤",xA="╥",_A="╦",SA="┴",kA="╧",CA="╨",TA="╩",EA="⊟",LA="⊞",AA="⊠",MA="┘",NA="╛",PA="╜",$A="╝",OA="└",DA="╘",RA="╙",zA="╚",IA="│",FA="║",HA="┼",qA="╪",BA="╫",WA="╬",UA="┤",jA="╡",GA="╢",VA="╣",KA="├",XA="╞",YA="╟",ZA="╠",QA="‵",JA="˘",tM="˘",eM="¦",nM="𝒷",rM="ℬ",iM="⁏",oM="∽",sM="⋍",lM="⧅",aM="\\",cM="⟈",uM="•",fM="•",hM="≎",dM="⪮",pM="≏",gM="≎",vM="≏",mM="Ć",yM="ć",bM="⩄",wM="⩉",xM="⩋",_M="∩",SM="⋒",kM="⩇",CM="⩀",TM="ⅅ",EM="∩︀",LM="⁁",AM="ˇ",MM="ℭ",NM="⩍",PM="Č",$M="č",OM="Ç",DM="ç",RM="Ĉ",zM="ĉ",IM="∰",FM="⩌",HM="⩐",qM="Ċ",BM="ċ",WM="¸",UM="¸",jM="⦲",GM="¢",VM="·",KM="·",XM="𝔠",YM="ℭ",ZM="Ч",QM="ч",JM="✓",tN="✓",eN="Χ",nN="χ",rN="ˆ",iN="≗",oN="↺",sN="↻",lN="⊛",aN="⊚",cN="⊝",uN="⊙",fN="®",hN="Ⓢ",dN="⊖",pN="⊕",gN="⊗",vN="○",mN="⧃",yN="≗",bN="⨐",wN="⫯",xN="⧂",_N="∲",SN="”",kN="’",CN="♣",TN="♣",EN=":",LN="∷",AN="⩴",MN="≔",NN="≔",PN=",",$N="@",ON="∁",DN="∘",RN="∁",zN="ℂ",IN="≅",FN="⩭",HN="≡",qN="∮",BN="∯",WN="∮",UN="𝕔",jN="ℂ",GN="∐",VN="∐",KN="©",XN="©",YN="℗",ZN="∳",QN="↵",JN="✗",tP="⨯",eP="𝒞",nP="𝒸",rP="⫏",iP="⫑",oP="⫐",sP="⫒",lP="⋯",aP="⤸",cP="⤵",uP="⋞",fP="⋟",hP="↶",dP="⤽",pP="⩈",gP="⩆",vP="≍",mP="∪",yP="⋓",bP="⩊",wP="⊍",xP="⩅",_P="∪︀",SP="↷",kP="⤼",CP="⋞",TP="⋟",EP="⋎",LP="⋏",AP="¤",MP="↶",NP="↷",PP="⋎",$P="⋏",OP="∲",DP="∱",RP="⌭",zP="†",IP="‡",FP="ℸ",HP="↓",qP="↡",BP="⇓",WP="‐",UP="⫤",jP="⊣",GP="⤏",VP="˝",KP="Ď",XP="ď",YP="Д",ZP="д",QP="‡",JP="⇊",t$="ⅅ",e$="ⅆ",n$="⤑",r$="⩷",i$="°",o$="∇",s$="Δ",l$="δ",a$="⦱",c$="⥿",u$="𝔇",f$="𝔡",h$="⥥",d$="⇃",p$="⇂",g$="´",v$="˙",m$="˝",y$="`",b$="˜",w$="⋄",x$="⋄",_$="⋄",S$="♦",k$="♦",C$="¨",T$="ⅆ",E$="ϝ",L$="⋲",A$="÷",M$="÷",N$="⋇",P$="⋇",$$="Ђ",O$="ђ",D$="⌞",R$="⌍",z$="$",I$="𝔻",F$="𝕕",H$="¨",q$="˙",B$="⃜",W$="≐",U$="≑",j$="≐",G$="∸",V$="∔",K$="⊡",X$="⌆",Y$="∯",Z$="¨",Q$="⇓",J$="⇐",tO="⇔",eO="⫤",nO="⟸",rO="⟺",iO="⟹",oO="⇒",sO="⊨",lO="⇑",aO="⇕",cO="∥",uO="⤓",fO="↓",hO="↓",dO="⇓",pO="⇵",gO="̑",vO="⇊",mO="⇃",yO="⇂",bO="⥐",wO="⥞",xO="⥖",_O="↽",SO="⥟",kO="⥗",CO="⇁",TO="↧",EO="⊤",LO="⤐",AO="⌟",MO="⌌",NO="𝒟",PO="𝒹",$O="Ѕ",OO="ѕ",DO="⧶",RO="Đ",zO="đ",IO="⋱",FO="▿",HO="▾",qO="⇵",BO="⥯",WO="⦦",UO="Џ",jO="џ",GO="⟿",VO="É",KO="é",XO="⩮",YO="Ě",ZO="ě",QO="Ê",JO="ê",tD="≖",eD="≕",nD="Э",rD="э",iD="⩷",oD="Ė",sD="ė",lD="≑",aD="ⅇ",cD="≒",uD="𝔈",fD="𝔢",hD="⪚",dD="È",pD="è",gD="⪖",vD="⪘",mD="⪙",yD="∈",bD="⏧",wD="ℓ",xD="⪕",_D="⪗",SD="Ē",kD="ē",CD="∅",TD="∅",ED="◻",LD="∅",AD="▫",MD=" ",ND=" ",PD=" ",$D="Ŋ",OD="ŋ",DD=" ",RD="Ę",zD="ę",ID="𝔼",FD="𝕖",HD="⋕",qD="⧣",BD="⩱",WD="ε",UD="Ε",jD="ε",GD="ϵ",VD="≖",KD="≕",XD="≂",YD="⪖",ZD="⪕",QD="⩵",JD="=",tR="≂",eR="≟",nR="⇌",rR="≡",iR="⩸",oR="⧥",sR="⥱",lR="≓",aR="ℯ",cR="ℰ",uR="≐",fR="⩳",hR="≂",dR="Η",pR="η",gR="Ð",vR="ð",mR="Ë",yR="ë",bR="€",wR="!",xR="∃",_R="∃",SR="ℰ",kR="ⅇ",CR="ⅇ",TR="≒",ER="Ф",LR="ф",AR="♀",MR="ffi",NR="ff",PR="ffl",$R="𝔉",OR="𝔣",DR="fi",RR="◼",zR="▪",IR="fj",FR="♭",HR="fl",qR="▱",BR="ƒ",WR="𝔽",UR="𝕗",jR="∀",GR="∀",VR="⋔",KR="⫙",XR="ℱ",YR="⨍",ZR="½",QR="⅓",JR="¼",t2="⅕",e2="⅙",n2="⅛",r2="⅔",i2="⅖",o2="¾",s2="⅗",l2="⅜",a2="⅘",c2="⅚",u2="⅝",f2="⅞",h2="⁄",d2="⌢",p2="𝒻",g2="ℱ",v2="ǵ",m2="Γ",y2="γ",b2="Ϝ",w2="ϝ",x2="⪆",_2="Ğ",S2="ğ",k2="Ģ",C2="Ĝ",T2="ĝ",E2="Г",L2="г",A2="Ġ",M2="ġ",N2="≥",P2="≧",$2="⪌",O2="⋛",D2="≥",R2="≧",z2="⩾",I2="⪩",F2="⩾",H2="⪀",q2="⪂",B2="⪄",W2="⋛︀",U2="⪔",j2="𝔊",G2="𝔤",V2="≫",K2="⋙",X2="⋙",Y2="ℷ",Z2="Ѓ",Q2="ѓ",J2="⪥",tz="≷",ez="⪒",nz="⪤",rz="⪊",iz="⪊",oz="⪈",sz="≩",lz="⪈",az="≩",cz="⋧",uz="𝔾",fz="𝕘",hz="`",dz="≥",pz="⋛",gz="≧",vz="⪢",mz="≷",yz="⩾",bz="≳",wz="𝒢",xz="ℊ",_z="≳",Sz="⪎",kz="⪐",Cz="⪧",Tz="⩺",Ez=">",Lz=">",Az="≫",Mz="⋗",Nz="⦕",Pz="⩼",$z="⪆",Oz="⥸",Dz="⋗",Rz="⋛",zz="⪌",Iz="≷",Fz="≳",Hz="≩︀",qz="≩︀",Bz="ˇ",Wz=" ",Uz="½",jz="ℋ",Gz="Ъ",Vz="ъ",Kz="⥈",Xz="↔",Yz="⇔",Zz="↭",Qz="^",Jz="ℏ",tI="Ĥ",eI="ĥ",nI="♥",rI="♥",iI="…",oI="⊹",sI="𝔥",lI="ℌ",aI="ℋ",cI="⤥",uI="⤦",fI="⇿",hI="∻",dI="↩",pI="↪",gI="𝕙",vI="ℍ",mI="―",yI="─",bI="𝒽",wI="ℋ",xI="ℏ",_I="Ħ",SI="ħ",kI="≎",CI="≏",TI="⁃",EI="‐",LI="Í",AI="í",MI="⁣",NI="Î",PI="î",$I="И",OI="и",DI="İ",RI="Е",zI="е",II="¡",FI="⇔",HI="𝔦",qI="ℑ",BI="Ì",WI="ì",UI="ⅈ",jI="⨌",GI="∭",VI="⧜",KI="℩",XI="IJ",YI="ij",ZI="Ī",QI="ī",JI="ℑ",tF="ⅈ",eF="ℐ",nF="ℑ",rF="ı",iF="ℑ",oF="⊷",sF="Ƶ",lF="⇒",aF="℅",cF="∞",uF="⧝",fF="ı",hF="⊺",dF="∫",pF="∬",gF="ℤ",vF="∫",mF="⊺",yF="⋂",bF="⨗",wF="⨼",xF="⁣",_F="⁢",SF="Ё",kF="ё",CF="Į",TF="į",EF="𝕀",LF="𝕚",AF="Ι",MF="ι",NF="⨼",PF="¿",$F="𝒾",OF="ℐ",DF="∈",RF="⋵",zF="⋹",IF="⋴",FF="⋳",HF="∈",qF="⁢",BF="Ĩ",WF="ĩ",UF="І",jF="і",GF="Ï",VF="ï",KF="Ĵ",XF="ĵ",YF="Й",ZF="й",QF="𝔍",JF="𝔧",tH="ȷ",eH="𝕁",nH="𝕛",rH="𝒥",iH="𝒿",oH="Ј",sH="ј",lH="Є",aH="є",cH="Κ",uH="κ",fH="ϰ",hH="Ķ",dH="ķ",pH="К",gH="к",vH="𝔎",mH="𝔨",yH="ĸ",bH="Х",wH="х",xH="Ќ",_H="ќ",SH="𝕂",kH="𝕜",CH="𝒦",TH="𝓀",EH="⇚",LH="Ĺ",AH="ĺ",MH="⦴",NH="ℒ",PH="Λ",$H="λ",OH="⟨",DH="⟪",RH="⦑",zH="⟨",IH="⪅",FH="ℒ",HH="«",qH="⇤",BH="⤟",WH="←",UH="↞",jH="⇐",GH="⤝",VH="↩",KH="↫",XH="⤹",YH="⥳",ZH="↢",QH="⤙",JH="⤛",tq="⪫",eq="⪭",nq="⪭︀",rq="⤌",iq="⤎",oq="❲",sq="{",lq="[",aq="⦋",cq="⦏",uq="⦍",fq="Ľ",hq="ľ",dq="Ļ",pq="ļ",gq="⌈",vq="{",mq="Л",yq="л",bq="⤶",wq="“",xq="„",_q="⥧",Sq="⥋",kq="↲",Cq="≤",Tq="≦",Eq="⟨",Lq="⇤",Aq="←",Mq="←",Nq="⇐",Pq="⇆",$q="↢",Oq="⌈",Dq="⟦",Rq="⥡",zq="⥙",Iq="⇃",Fq="⌊",Hq="↽",qq="↼",Bq="⇇",Wq="↔",Uq="↔",jq="⇔",Gq="⇆",Vq="⇋",Kq="↭",Xq="⥎",Yq="↤",Zq="⊣",Qq="⥚",Jq="⋋",tB="⧏",eB="⊲",nB="⊴",rB="⥑",iB="⥠",oB="⥘",sB="↿",lB="⥒",aB="↼",cB="⪋",uB="⋚",fB="≤",hB="≦",dB="⩽",pB="⪨",gB="⩽",vB="⩿",mB="⪁",yB="⪃",bB="⋚︀",wB="⪓",xB="⪅",_B="⋖",SB="⋚",kB="⪋",CB="⋚",TB="≦",EB="≶",LB="≶",AB="⪡",MB="≲",NB="⩽",PB="≲",$B="⥼",OB="⌊",DB="𝔏",RB="𝔩",zB="≶",IB="⪑",FB="⥢",HB="↽",qB="↼",BB="⥪",WB="▄",UB="Љ",jB="љ",GB="⇇",VB="≪",KB="⋘",XB="⌞",YB="⇚",ZB="⥫",QB="◺",JB="Ŀ",t3="ŀ",e3="⎰",n3="⎰",r3="⪉",i3="⪉",o3="⪇",s3="≨",l3="⪇",a3="≨",c3="⋦",u3="⟬",f3="⇽",h3="⟦",d3="⟵",p3="⟵",g3="⟸",v3="⟷",m3="⟷",y3="⟺",b3="⟼",w3="⟶",x3="⟶",_3="⟹",S3="↫",k3="↬",C3="⦅",T3="𝕃",E3="𝕝",L3="⨭",A3="⨴",M3="∗",N3="_",P3="↙",$3="↘",O3="◊",D3="◊",R3="⧫",z3="(",I3="⦓",F3="⇆",H3="⌟",q3="⇋",B3="⥭",W3="‎",U3="⊿",j3="‹",G3="𝓁",V3="ℒ",K3="↰",X3="↰",Y3="≲",Z3="⪍",Q3="⪏",J3="[",t5="‘",e5="‚",n5="Ł",r5="ł",i5="⪦",o5="⩹",s5="<",l5="<",a5="≪",c5="⋖",u5="⋋",f5="⋉",h5="⥶",d5="⩻",p5="◃",g5="⊴",v5="◂",m5="⦖",y5="⥊",b5="⥦",w5="≨︀",x5="≨︀",_5="¯",S5="♂",k5="✠",C5="✠",T5="↦",E5="↦",L5="↧",A5="↤",M5="↥",N5="▮",P5="⨩",$5="М",O5="м",D5="—",R5="∺",z5="∡",I5=" ",F5="ℳ",H5="𝔐",q5="𝔪",B5="℧",W5="µ",U5="*",j5="⫰",G5="∣",V5="·",K5="⊟",X5="−",Y5="∸",Z5="⨪",Q5="∓",J5="⫛",t8="…",e8="∓",n8="⊧",r8="𝕄",i8="𝕞",o8="∓",s8="𝓂",l8="ℳ",a8="∾",c8="Μ",u8="μ",f8="⊸",h8="⊸",d8="∇",p8="Ń",g8="ń",v8="∠⃒",m8="≉",y8="⩰̸",b8="≋̸",w8="ʼn",x8="≉",_8="♮",S8="ℕ",k8="♮",C8=" ",T8="≎̸",E8="≏̸",L8="⩃",A8="Ň",M8="ň",N8="Ņ",P8="ņ",$8="≇",O8="⩭̸",D8="⩂",R8="Н",z8="н",I8="–",F8="⤤",H8="↗",q8="⇗",B8="↗",W8="≠",U8="≐̸",j8="​",G8="​",V8="​",K8="​",X8="≢",Y8="⤨",Z8="≂̸",Q8="≫",J8="≪",tW=` `,eW="∄",nW="∄",rW="𝔑",iW="𝔫",oW="≧̸",sW="≱",lW="≱",aW="≧̸",cW="⩾̸",uW="⩾̸",fW="⋙̸",hW="≵",dW="≫⃒",pW="≯",gW="≯",vW="≫̸",mW="↮",yW="⇎",bW="⫲",wW="∋",xW="⋼",_W="⋺",SW="∋",kW="Њ",CW="њ",TW="↚",EW="⇍",LW="‥",AW="≦̸",MW="≰",NW="↚",PW="⇍",$W="↮",OW="⇎",DW="≰",RW="≦̸",zW="⩽̸",IW="⩽̸",FW="≮",HW="⋘̸",qW="≴",BW="≪⃒",WW="≮",UW="⋪",jW="⋬",GW="≪̸",VW="∤",KW="⁠",XW=" ",YW="𝕟",ZW="ℕ",QW="⫬",JW="¬",tU="≢",eU="≭",nU="∦",rU="∉",iU="≠",oU="≂̸",sU="∄",lU="≯",aU="≱",cU="≧̸",uU="≫̸",fU="≹",hU="⩾̸",dU="≵",pU="≎̸",gU="≏̸",vU="∉",mU="⋵̸",yU="⋹̸",bU="∉",wU="⋷",xU="⋶",_U="⧏̸",SU="⋪",kU="⋬",CU="≮",TU="≰",EU="≸",LU="≪̸",AU="⩽̸",MU="≴",NU="⪢̸",PU="⪡̸",$U="∌",OU="∌",DU="⋾",RU="⋽",zU="⊀",IU="⪯̸",FU="⋠",HU="∌",qU="⧐̸",BU="⋫",WU="⋭",UU="⊏̸",jU="⋢",GU="⊐̸",VU="⋣",KU="⊂⃒",XU="⊈",YU="⊁",ZU="⪰̸",QU="⋡",JU="≿̸",t4="⊃⃒",e4="⊉",n4="≁",r4="≄",i4="≇",o4="≉",s4="∤",l4="∦",a4="∦",c4="⫽⃥",u4="∂̸",f4="⨔",h4="⊀",d4="⋠",p4="⊀",g4="⪯̸",v4="⪯̸",m4="⤳̸",y4="↛",b4="⇏",w4="↝̸",x4="↛",_4="⇏",S4="⋫",k4="⋭",C4="⊁",T4="⋡",E4="⪰̸",L4="𝒩",A4="𝓃",M4="∤",N4="∦",P4="≁",$4="≄",O4="≄",D4="∤",R4="∦",z4="⋢",I4="⋣",F4="⊄",H4="⫅̸",q4="⊈",B4="⊂⃒",W4="⊈",U4="⫅̸",j4="⊁",G4="⪰̸",V4="⊅",K4="⫆̸",X4="⊉",Y4="⊃⃒",Z4="⊉",Q4="⫆̸",J4="≹",t6="Ñ",e6="ñ",n6="≸",r6="⋪",i6="⋬",o6="⋫",s6="⋭",l6="Ν",a6="ν",c6="#",u6="№",f6=" ",h6="≍⃒",d6="⊬",p6="⊭",g6="⊮",v6="⊯",m6="≥⃒",y6=">⃒",b6="⤄",w6="⧞",x6="⤂",_6="≤⃒",S6="<⃒",k6="⊴⃒",C6="⤃",T6="⊵⃒",E6="∼⃒",L6="⤣",A6="↖",M6="⇖",N6="↖",P6="⤧",$6="Ó",O6="ó",D6="⊛",R6="Ô",z6="ô",I6="⊚",F6="О",H6="о",q6="⊝",B6="Ő",W6="ő",U6="⨸",j6="⊙",G6="⦼",V6="Œ",K6="œ",X6="⦿",Y6="𝔒",Z6="𝔬",Q6="˛",J6="Ò",tj="ò",ej="⧁",nj="⦵",rj="Ω",ij="∮",oj="↺",sj="⦾",lj="⦻",aj="‾",cj="⧀",uj="Ō",fj="ō",hj="Ω",dj="ω",pj="Ο",gj="ο",vj="⦶",mj="⊖",yj="𝕆",bj="𝕠",wj="⦷",xj="“",_j="‘",Sj="⦹",kj="⊕",Cj="↻",Tj="⩔",Ej="∨",Lj="⩝",Aj="ℴ",Mj="ℴ",Nj="ª",Pj="º",$j="⊶",Oj="⩖",Dj="⩗",Rj="⩛",zj="Ⓢ",Ij="𝒪",Fj="ℴ",Hj="Ø",qj="ø",Bj="⊘",Wj="Õ",Uj="õ",jj="⨶",Gj="⨷",Vj="⊗",Kj="Ö",Xj="ö",Yj="⌽",Zj="‾",Qj="⏞",Jj="⎴",t9="⏜",e9="¶",n9="∥",r9="∥",i9="⫳",o9="⫽",s9="∂",l9="∂",a9="П",c9="п",u9="%",f9=".",h9="‰",d9="⊥",p9="‱",g9="𝔓",v9="𝔭",m9="Φ",y9="φ",b9="ϕ",w9="ℳ",x9="☎",_9="Π",S9="π",k9="⋔",C9="ϖ",T9="ℏ",E9="ℎ",L9="ℏ",A9="⨣",M9="⊞",N9="⨢",P9="+",$9="∔",O9="⨥",D9="⩲",R9="±",z9="±",I9="⨦",F9="⨧",H9="±",q9="ℌ",B9="⨕",W9="𝕡",U9="ℙ",j9="£",G9="⪷",V9="⪻",K9="≺",X9="≼",Y9="⪷",Z9="≺",Q9="≼",J9="≺",tG="⪯",eG="≼",nG="≾",rG="⪯",iG="⪹",oG="⪵",sG="⋨",lG="⪯",aG="⪳",cG="≾",uG="′",fG="″",hG="ℙ",dG="⪹",pG="⪵",gG="⋨",vG="∏",mG="∏",yG="⌮",bG="⌒",wG="⌓",xG="∝",_G="∝",SG="∷",kG="∝",CG="≾",TG="⊰",EG="𝒫",LG="𝓅",AG="Ψ",MG="ψ",NG=" ",PG="𝔔",$G="𝔮",OG="⨌",DG="𝕢",RG="ℚ",zG="⁗",IG="𝒬",FG="𝓆",HG="ℍ",qG="⨖",BG="?",WG="≟",UG='"',jG='"',GG="⇛",VG="∽̱",KG="Ŕ",XG="ŕ",YG="√",ZG="⦳",QG="⟩",JG="⟫",tV="⦒",eV="⦥",nV="⟩",rV="»",iV="⥵",oV="⇥",sV="⤠",lV="⤳",aV="→",cV="↠",uV="⇒",fV="⤞",hV="↪",dV="↬",pV="⥅",gV="⥴",vV="⤖",mV="↣",yV="↝",bV="⤚",wV="⤜",xV="∶",_V="ℚ",SV="⤍",kV="⤏",CV="⤐",TV="❳",EV="}",LV="]",AV="⦌",MV="⦎",NV="⦐",PV="Ř",$V="ř",OV="Ŗ",DV="ŗ",RV="⌉",zV="}",IV="Р",FV="р",HV="⤷",qV="⥩",BV="”",WV="”",UV="↳",jV="ℜ",GV="ℛ",VV="ℜ",KV="ℝ",XV="ℜ",YV="▭",ZV="®",QV="®",JV="∋",t7="⇋",e7="⥯",n7="⥽",r7="⌋",i7="𝔯",o7="ℜ",s7="⥤",l7="⇁",a7="⇀",c7="⥬",u7="Ρ",f7="ρ",h7="ϱ",d7="⟩",p7="⇥",g7="→",v7="→",m7="⇒",y7="⇄",b7="↣",w7="⌉",x7="⟧",_7="⥝",S7="⥕",k7="⇂",C7="⌋",T7="⇁",E7="⇀",L7="⇄",A7="⇌",M7="⇉",N7="↝",P7="↦",$7="⊢",O7="⥛",D7="⋌",R7="⧐",z7="⊳",I7="⊵",F7="⥏",H7="⥜",q7="⥔",B7="↾",W7="⥓",U7="⇀",j7="˚",G7="≓",V7="⇄",K7="⇌",X7="‏",Y7="⎱",Z7="⎱",Q7="⫮",J7="⟭",tK="⇾",eK="⟧",nK="⦆",rK="𝕣",iK="ℝ",oK="⨮",sK="⨵",lK="⥰",aK=")",cK="⦔",uK="⨒",fK="⇉",hK="⇛",dK="›",pK="𝓇",gK="ℛ",vK="↱",mK="↱",yK="]",bK="’",wK="’",xK="⋌",_K="⋊",SK="▹",kK="⊵",CK="▸",TK="⧎",EK="⧴",LK="⥨",AK="℞",MK="Ś",NK="ś",PK="‚",$K="⪸",OK="Š",DK="š",RK="⪼",zK="≻",IK="≽",FK="⪰",HK="⪴",qK="Ş",BK="ş",WK="Ŝ",UK="ŝ",jK="⪺",GK="⪶",VK="⋩",KK="⨓",XK="≿",YK="С",ZK="с",QK="⊡",JK="⋅",tX="⩦",eX="⤥",nX="↘",rX="⇘",iX="↘",oX="§",sX=";",lX="⤩",aX="∖",cX="∖",uX="✶",fX="𝔖",hX="𝔰",dX="⌢",pX="♯",gX="Щ",vX="щ",mX="Ш",yX="ш",bX="↓",wX="←",xX="∣",_X="∥",SX="→",kX="↑",CX="­",TX="Σ",EX="σ",LX="ς",AX="ς",MX="∼",NX="⩪",PX="≃",$X="≃",OX="⪞",DX="⪠",RX="⪝",zX="⪟",IX="≆",FX="⨤",HX="⥲",qX="←",BX="∘",WX="∖",UX="⨳",jX="⧤",GX="∣",VX="⌣",KX="⪪",XX="⪬",YX="⪬︀",ZX="Ь",QX="ь",JX="⌿",tY="⧄",eY="/",nY="𝕊",rY="𝕤",iY="♠",oY="♠",sY="∥",lY="⊓",aY="⊓︀",cY="⊔",uY="⊔︀",fY="√",hY="⊏",dY="⊑",pY="⊏",gY="⊑",vY="⊐",mY="⊒",yY="⊐",bY="⊒",wY="□",xY="□",_Y="⊓",SY="⊏",kY="⊑",CY="⊐",TY="⊒",EY="⊔",LY="▪",AY="□",MY="▪",NY="→",PY="𝒮",$Y="𝓈",OY="∖",DY="⌣",RY="⋆",zY="⋆",IY="☆",FY="★",HY="ϵ",qY="ϕ",BY="¯",WY="⊂",UY="⋐",jY="⪽",GY="⫅",VY="⊆",KY="⫃",XY="⫁",YY="⫋",ZY="⊊",QY="⪿",JY="⥹",tZ="⊂",eZ="⋐",nZ="⊆",rZ="⫅",iZ="⊆",oZ="⊊",sZ="⫋",lZ="⫇",aZ="⫕",cZ="⫓",uZ="⪸",fZ="≻",hZ="≽",dZ="≻",pZ="⪰",gZ="≽",vZ="≿",mZ="⪰",yZ="⪺",bZ="⪶",wZ="⋩",xZ="≿",_Z="∋",SZ="∑",kZ="∑",CZ="♪",TZ="¹",EZ="²",LZ="³",AZ="⊃",MZ="⋑",NZ="⪾",PZ="⫘",$Z="⫆",OZ="⊇",DZ="⫄",RZ="⊃",zZ="⊇",IZ="⟉",FZ="⫗",HZ="⥻",qZ="⫂",BZ="⫌",WZ="⊋",UZ="⫀",jZ="⊃",GZ="⋑",VZ="⊇",KZ="⫆",XZ="⊋",YZ="⫌",ZZ="⫈",QZ="⫔",JZ="⫖",tQ="⤦",eQ="↙",nQ="⇙",rQ="↙",iQ="⤪",oQ="ß",sQ=" ",lQ="⌖",aQ="Τ",cQ="τ",uQ="⎴",fQ="Ť",hQ="ť",dQ="Ţ",pQ="ţ",gQ="Т",vQ="т",mQ="⃛",yQ="⌕",bQ="𝔗",wQ="𝔱",xQ="∴",_Q="∴",SQ="∴",kQ="Θ",CQ="θ",TQ="ϑ",EQ="ϑ",LQ="≈",AQ="∼",MQ="  ",NQ=" ",PQ=" ",$Q="≈",OQ="∼",DQ="Þ",RQ="þ",zQ="˜",IQ="∼",FQ="≃",HQ="≅",qQ="≈",BQ="⨱",WQ="⊠",UQ="×",jQ="⨰",GQ="∭",VQ="⤨",KQ="⌶",XQ="⫱",YQ="⊤",ZQ="𝕋",QQ="𝕥",JQ="⫚",tJ="⤩",eJ="‴",nJ="™",rJ="™",iJ="▵",oJ="▿",sJ="◃",lJ="⊴",aJ="≜",cJ="▹",uJ="⊵",fJ="◬",hJ="≜",dJ="⨺",pJ="⃛",gJ="⨹",vJ="⧍",mJ="⨻",yJ="⏢",bJ="𝒯",wJ="𝓉",xJ="Ц",_J="ц",SJ="Ћ",kJ="ћ",CJ="Ŧ",TJ="ŧ",EJ="≬",LJ="↞",AJ="↠",MJ="Ú",NJ="ú",PJ="↑",$J="↟",OJ="⇑",DJ="⥉",RJ="Ў",zJ="ў",IJ="Ŭ",FJ="ŭ",HJ="Û",qJ="û",BJ="У",WJ="у",UJ="⇅",jJ="Ű",GJ="ű",VJ="⥮",KJ="⥾",XJ="𝔘",YJ="𝔲",ZJ="Ù",QJ="ù",JJ="⥣",ttt="↿",ett="↾",ntt="▀",rtt="⌜",itt="⌜",ott="⌏",stt="◸",ltt="Ū",att="ū",ctt="¨",utt="_",ftt="⏟",htt="⎵",dtt="⏝",ptt="⋃",gtt="⊎",vtt="Ų",mtt="ų",ytt="𝕌",btt="𝕦",wtt="⤒",xtt="↑",_tt="↑",Stt="⇑",ktt="⇅",Ctt="↕",Ttt="↕",Ett="⇕",Ltt="⥮",Att="↿",Mtt="↾",Ntt="⊎",Ptt="↖",$tt="↗",Ott="υ",Dtt="ϒ",Rtt="ϒ",ztt="Υ",Itt="υ",Ftt="↥",Htt="⊥",qtt="⇈",Btt="⌝",Wtt="⌝",Utt="⌎",jtt="Ů",Gtt="ů",Vtt="◹",Ktt="𝒰",Xtt="𝓊",Ytt="⋰",Ztt="Ũ",Qtt="ũ",Jtt="▵",tet="▴",eet="⇈",net="Ü",ret="ü",iet="⦧",oet="⦜",set="ϵ",aet="ϰ",cet="∅",uet="ϕ",fet="ϖ",het="∝",det="↕",pet="⇕",get="ϱ",vet="ς",met="⊊︀",yet="⫋︀",bet="⊋︀",wet="⫌︀",xet="ϑ",_et="⊲",ket="⊳",Cet="⫨",Tet="⫫",Eet="⫩",Let="В",Aet="в",Met="⊢",Net="⊨",Pet="⊩",$et="⊫",Oet="⫦",Det="⊻",Ret="∨",zet="⋁",Iet="≚",Fet="⋮",Het="|",qet="‖",Bet="|",Wet="‖",Uet="∣",jet="|",Get="❘",Vet="≀",Ket=" ",Xet="𝔙",Yet="𝔳",Zet="⊲",Qet="⊂⃒",Jet="⊃⃒",tnt="𝕍",ent="𝕧",nnt="∝",rnt="⊳",int="𝒱",ont="𝓋",snt="⫋︀",lnt="⊊︀",ant="⫌︀",cnt="⊋︀",unt="⊪",fnt="⦚",hnt="Ŵ",dnt="ŵ",pnt="⩟",gnt="∧",vnt="⋀",mnt="≙",ynt="℘",bnt="𝔚",wnt="𝔴",xnt="𝕎",_nt="𝕨",Snt="℘",knt="≀",Cnt="≀",Tnt="𝒲",Ent="𝓌",Lnt="⋂",Ant="◯",Mnt="⋃",Nnt="▽",Pnt="𝔛",$nt="𝔵",Ont="⟷",Dnt="⟺",Rnt="Ξ",znt="ξ",Int="⟵",Fnt="⟸",Hnt="⟼",qnt="⋻",Bnt="⨀",Wnt="𝕏",Unt="𝕩",jnt="⨁",Gnt="⨂",Vnt="⟶",Knt="⟹",Xnt="𝒳",Ynt="𝓍",Znt="⨆",Qnt="⨄",Jnt="△",trt="⋁",ert="⋀",nrt="Ý",rrt="ý",irt="Я",ort="я",srt="Ŷ",lrt="ŷ",art="Ы",crt="ы",urt="¥",frt="𝔜",hrt="𝔶",drt="Ї",prt="ї",grt="𝕐",vrt="𝕪",mrt="𝒴",yrt="𝓎",brt="Ю",wrt="ю",xrt="ÿ",_rt="Ÿ",Srt="Ź",krt="ź",Crt="Ž",Trt="ž",Ert="З",Lrt="з",Art="Ż",Mrt="ż",Nrt="ℨ",Prt="​",$rt="Ζ",Ort="ζ",Drt="𝔷",Rrt="ℨ",zrt="Ж",Irt="ж",Frt="⇝",Hrt="𝕫",qrt="ℤ",Brt="𝒵",Wrt="𝓏",Urt="‍",jrt="‌",Iy={Aacute:ET,aacute:LT,Abreve:AT,abreve:MT,ac:NT,acd:PT,acE:$T,Acirc:OT,acirc:DT,acute:RT,Acy:zT,acy:IT,AElig:FT,aelig:HT,af:qT,Afr:BT,afr:WT,Agrave:UT,agrave:jT,alefsym:GT,aleph:VT,Alpha:KT,alpha:XT,Amacr:YT,amacr:ZT,amalg:QT,amp:JT,AMP:tE,andand:eE,And:nE,and:rE,andd:iE,andslope:oE,andv:sE,ang:lE,ange:aE,angle:cE,angmsdaa:uE,angmsdab:fE,angmsdac:hE,angmsdad:dE,angmsdae:pE,angmsdaf:gE,angmsdag:vE,angmsdah:mE,angmsd:yE,angrt:bE,angrtvb:wE,angrtvbd:xE,angsph:_E,angst:SE,angzarr:kE,Aogon:CE,aogon:TE,Aopf:EE,aopf:LE,apacir:AE,ap:ME,apE:NE,ape:PE,apid:$E,apos:OE,ApplyFunction:DE,approx:RE,approxeq:zE,Aring:IE,aring:FE,Ascr:HE,ascr:qE,Assign:BE,ast:WE,asymp:UE,asympeq:jE,Atilde:GE,atilde:VE,Auml:KE,auml:XE,awconint:YE,awint:ZE,backcong:QE,backepsilon:JE,backprime:tL,backsim:eL,backsimeq:nL,Backslash:rL,Barv:iL,barvee:oL,barwed:sL,Barwed:lL,barwedge:aL,bbrk:cL,bbrktbrk:uL,bcong:fL,Bcy:hL,bcy:dL,bdquo:pL,becaus:gL,because:vL,Because:mL,bemptyv:yL,bepsi:bL,bernou:wL,Bernoullis:xL,Beta:_L,beta:SL,beth:kL,between:CL,Bfr:TL,bfr:EL,bigcap:LL,bigcirc:AL,bigcup:ML,bigodot:NL,bigoplus:PL,bigotimes:$L,bigsqcup:OL,bigstar:DL,bigtriangledown:RL,bigtriangleup:zL,biguplus:IL,bigvee:FL,bigwedge:HL,bkarow:qL,blacklozenge:BL,blacksquare:WL,blacktriangle:UL,blacktriangledown:jL,blacktriangleleft:GL,blacktriangleright:VL,blank:KL,blk12:XL,blk14:YL,blk34:ZL,block:QL,bne:JL,bnequiv:tA,bNot:eA,bnot:nA,Bopf:rA,bopf:iA,bot:oA,bottom:sA,bowtie:lA,boxbox:aA,boxdl:cA,boxdL:uA,boxDl:fA,boxDL:hA,boxdr:dA,boxdR:pA,boxDr:gA,boxDR:vA,boxh:mA,boxH:yA,boxhd:bA,boxHd:wA,boxhD:xA,boxHD:_A,boxhu:SA,boxHu:kA,boxhU:CA,boxHU:TA,boxminus:EA,boxplus:LA,boxtimes:AA,boxul:MA,boxuL:NA,boxUl:PA,boxUL:$A,boxur:OA,boxuR:DA,boxUr:RA,boxUR:zA,boxv:IA,boxV:FA,boxvh:HA,boxvH:qA,boxVh:BA,boxVH:WA,boxvl:UA,boxvL:jA,boxVl:GA,boxVL:VA,boxvr:KA,boxvR:XA,boxVr:YA,boxVR:ZA,bprime:QA,breve:JA,Breve:tM,brvbar:eM,bscr:nM,Bscr:rM,bsemi:iM,bsim:oM,bsime:sM,bsolb:lM,bsol:aM,bsolhsub:cM,bull:uM,bullet:fM,bump:hM,bumpE:dM,bumpe:pM,Bumpeq:gM,bumpeq:vM,Cacute:mM,cacute:yM,capand:bM,capbrcup:wM,capcap:xM,cap:_M,Cap:SM,capcup:kM,capdot:CM,CapitalDifferentialD:TM,caps:EM,caret:LM,caron:AM,Cayleys:MM,ccaps:NM,Ccaron:PM,ccaron:$M,Ccedil:OM,ccedil:DM,Ccirc:RM,ccirc:zM,Cconint:IM,ccups:FM,ccupssm:HM,Cdot:qM,cdot:BM,cedil:WM,Cedilla:UM,cemptyv:jM,cent:GM,centerdot:VM,CenterDot:KM,cfr:XM,Cfr:YM,CHcy:ZM,chcy:QM,check:JM,checkmark:tN,Chi:eN,chi:nN,circ:rN,circeq:iN,circlearrowleft:oN,circlearrowright:sN,circledast:lN,circledcirc:aN,circleddash:cN,CircleDot:uN,circledR:fN,circledS:hN,CircleMinus:dN,CirclePlus:pN,CircleTimes:gN,cir:vN,cirE:mN,cire:yN,cirfnint:bN,cirmid:wN,cirscir:xN,ClockwiseContourIntegral:_N,CloseCurlyDoubleQuote:SN,CloseCurlyQuote:kN,clubs:CN,clubsuit:TN,colon:EN,Colon:LN,Colone:AN,colone:MN,coloneq:NN,comma:PN,commat:$N,comp:ON,compfn:DN,complement:RN,complexes:zN,cong:IN,congdot:FN,Congruent:HN,conint:qN,Conint:BN,ContourIntegral:WN,copf:UN,Copf:jN,coprod:GN,Coproduct:VN,copy:KN,COPY:XN,copysr:YN,CounterClockwiseContourIntegral:ZN,crarr:QN,cross:JN,Cross:tP,Cscr:eP,cscr:nP,csub:rP,csube:iP,csup:oP,csupe:sP,ctdot:lP,cudarrl:aP,cudarrr:cP,cuepr:uP,cuesc:fP,cularr:hP,cularrp:dP,cupbrcap:pP,cupcap:gP,CupCap:vP,cup:mP,Cup:yP,cupcup:bP,cupdot:wP,cupor:xP,cups:_P,curarr:SP,curarrm:kP,curlyeqprec:CP,curlyeqsucc:TP,curlyvee:EP,curlywedge:LP,curren:AP,curvearrowleft:MP,curvearrowright:NP,cuvee:PP,cuwed:$P,cwconint:OP,cwint:DP,cylcty:RP,dagger:zP,Dagger:IP,daleth:FP,darr:HP,Darr:qP,dArr:BP,dash:WP,Dashv:UP,dashv:jP,dbkarow:GP,dblac:VP,Dcaron:KP,dcaron:XP,Dcy:YP,dcy:ZP,ddagger:QP,ddarr:JP,DD:t$,dd:e$,DDotrahd:n$,ddotseq:r$,deg:i$,Del:o$,Delta:s$,delta:l$,demptyv:a$,dfisht:c$,Dfr:u$,dfr:f$,dHar:h$,dharl:d$,dharr:p$,DiacriticalAcute:g$,DiacriticalDot:v$,DiacriticalDoubleAcute:m$,DiacriticalGrave:y$,DiacriticalTilde:b$,diam:w$,diamond:x$,Diamond:_$,diamondsuit:S$,diams:k$,die:C$,DifferentialD:T$,digamma:E$,disin:L$,div:A$,divide:M$,divideontimes:N$,divonx:P$,DJcy:$$,djcy:O$,dlcorn:D$,dlcrop:R$,dollar:z$,Dopf:I$,dopf:F$,Dot:H$,dot:q$,DotDot:B$,doteq:W$,doteqdot:U$,DotEqual:j$,dotminus:G$,dotplus:V$,dotsquare:K$,doublebarwedge:X$,DoubleContourIntegral:Y$,DoubleDot:Z$,DoubleDownArrow:Q$,DoubleLeftArrow:J$,DoubleLeftRightArrow:tO,DoubleLeftTee:eO,DoubleLongLeftArrow:nO,DoubleLongLeftRightArrow:rO,DoubleLongRightArrow:iO,DoubleRightArrow:oO,DoubleRightTee:sO,DoubleUpArrow:lO,DoubleUpDownArrow:aO,DoubleVerticalBar:cO,DownArrowBar:uO,downarrow:fO,DownArrow:hO,Downarrow:dO,DownArrowUpArrow:pO,DownBreve:gO,downdownarrows:vO,downharpoonleft:mO,downharpoonright:yO,DownLeftRightVector:bO,DownLeftTeeVector:wO,DownLeftVectorBar:xO,DownLeftVector:_O,DownRightTeeVector:SO,DownRightVectorBar:kO,DownRightVector:CO,DownTeeArrow:TO,DownTee:EO,drbkarow:LO,drcorn:AO,drcrop:MO,Dscr:NO,dscr:PO,DScy:$O,dscy:OO,dsol:DO,Dstrok:RO,dstrok:zO,dtdot:IO,dtri:FO,dtrif:HO,duarr:qO,duhar:BO,dwangle:WO,DZcy:UO,dzcy:jO,dzigrarr:GO,Eacute:VO,eacute:KO,easter:XO,Ecaron:YO,ecaron:ZO,Ecirc:QO,ecirc:JO,ecir:tD,ecolon:eD,Ecy:nD,ecy:rD,eDDot:iD,Edot:oD,edot:sD,eDot:lD,ee:aD,efDot:cD,Efr:uD,efr:fD,eg:hD,Egrave:dD,egrave:pD,egs:gD,egsdot:vD,el:mD,Element:yD,elinters:bD,ell:wD,els:xD,elsdot:_D,Emacr:SD,emacr:kD,empty:CD,emptyset:TD,EmptySmallSquare:ED,emptyv:LD,EmptyVerySmallSquare:AD,emsp13:MD,emsp14:ND,emsp:PD,ENG:$D,eng:OD,ensp:DD,Eogon:RD,eogon:zD,Eopf:ID,eopf:FD,epar:HD,eparsl:qD,eplus:BD,epsi:WD,Epsilon:UD,epsilon:jD,epsiv:GD,eqcirc:VD,eqcolon:KD,eqsim:XD,eqslantgtr:YD,eqslantless:ZD,Equal:QD,equals:JD,EqualTilde:tR,equest:eR,Equilibrium:nR,equiv:rR,equivDD:iR,eqvparsl:oR,erarr:sR,erDot:lR,escr:aR,Escr:cR,esdot:uR,Esim:fR,esim:hR,Eta:dR,eta:pR,ETH:gR,eth:vR,Euml:mR,euml:yR,euro:bR,excl:wR,exist:xR,Exists:_R,expectation:SR,exponentiale:kR,ExponentialE:CR,fallingdotseq:TR,Fcy:ER,fcy:LR,female:AR,ffilig:MR,fflig:NR,ffllig:PR,Ffr:$R,ffr:OR,filig:DR,FilledSmallSquare:RR,FilledVerySmallSquare:zR,fjlig:IR,flat:FR,fllig:HR,fltns:qR,fnof:BR,Fopf:WR,fopf:UR,forall:jR,ForAll:GR,fork:VR,forkv:KR,Fouriertrf:XR,fpartint:YR,frac12:ZR,frac13:QR,frac14:JR,frac15:t2,frac16:e2,frac18:n2,frac23:r2,frac25:i2,frac34:o2,frac35:s2,frac38:l2,frac45:a2,frac56:c2,frac58:u2,frac78:f2,frasl:h2,frown:d2,fscr:p2,Fscr:g2,gacute:v2,Gamma:m2,gamma:y2,Gammad:b2,gammad:w2,gap:x2,Gbreve:_2,gbreve:S2,Gcedil:k2,Gcirc:C2,gcirc:T2,Gcy:E2,gcy:L2,Gdot:A2,gdot:M2,ge:N2,gE:P2,gEl:$2,gel:O2,geq:D2,geqq:R2,geqslant:z2,gescc:I2,ges:F2,gesdot:H2,gesdoto:q2,gesdotol:B2,gesl:W2,gesles:U2,Gfr:j2,gfr:G2,gg:V2,Gg:K2,ggg:X2,gimel:Y2,GJcy:Z2,gjcy:Q2,gla:J2,gl:tz,glE:ez,glj:nz,gnap:rz,gnapprox:iz,gne:oz,gnE:sz,gneq:lz,gneqq:az,gnsim:cz,Gopf:uz,gopf:fz,grave:hz,GreaterEqual:dz,GreaterEqualLess:pz,GreaterFullEqual:gz,GreaterGreater:vz,GreaterLess:mz,GreaterSlantEqual:yz,GreaterTilde:bz,Gscr:wz,gscr:xz,gsim:_z,gsime:Sz,gsiml:kz,gtcc:Cz,gtcir:Tz,gt:Ez,GT:Lz,Gt:Az,gtdot:Mz,gtlPar:Nz,gtquest:Pz,gtrapprox:$z,gtrarr:Oz,gtrdot:Dz,gtreqless:Rz,gtreqqless:zz,gtrless:Iz,gtrsim:Fz,gvertneqq:Hz,gvnE:qz,Hacek:Bz,hairsp:Wz,half:Uz,hamilt:jz,HARDcy:Gz,hardcy:Vz,harrcir:Kz,harr:Xz,hArr:Yz,harrw:Zz,Hat:Qz,hbar:Jz,Hcirc:tI,hcirc:eI,hearts:nI,heartsuit:rI,hellip:iI,hercon:oI,hfr:sI,Hfr:lI,HilbertSpace:aI,hksearow:cI,hkswarow:uI,hoarr:fI,homtht:hI,hookleftarrow:dI,hookrightarrow:pI,hopf:gI,Hopf:vI,horbar:mI,HorizontalLine:yI,hscr:bI,Hscr:wI,hslash:xI,Hstrok:_I,hstrok:SI,HumpDownHump:kI,HumpEqual:CI,hybull:TI,hyphen:EI,Iacute:LI,iacute:AI,ic:MI,Icirc:NI,icirc:PI,Icy:$I,icy:OI,Idot:DI,IEcy:RI,iecy:zI,iexcl:II,iff:FI,ifr:HI,Ifr:qI,Igrave:BI,igrave:WI,ii:UI,iiiint:jI,iiint:GI,iinfin:VI,iiota:KI,IJlig:XI,ijlig:YI,Imacr:ZI,imacr:QI,image:JI,ImaginaryI:tF,imagline:eF,imagpart:nF,imath:rF,Im:iF,imof:oF,imped:sF,Implies:lF,incare:aF,in:"∈",infin:cF,infintie:uF,inodot:fF,intcal:hF,int:dF,Int:pF,integers:gF,Integral:vF,intercal:mF,Intersection:yF,intlarhk:bF,intprod:wF,InvisibleComma:xF,InvisibleTimes:_F,IOcy:SF,iocy:kF,Iogon:CF,iogon:TF,Iopf:EF,iopf:LF,Iota:AF,iota:MF,iprod:NF,iquest:PF,iscr:$F,Iscr:OF,isin:DF,isindot:RF,isinE:zF,isins:IF,isinsv:FF,isinv:HF,it:qF,Itilde:BF,itilde:WF,Iukcy:UF,iukcy:jF,Iuml:GF,iuml:VF,Jcirc:KF,jcirc:XF,Jcy:YF,jcy:ZF,Jfr:QF,jfr:JF,jmath:tH,Jopf:eH,jopf:nH,Jscr:rH,jscr:iH,Jsercy:oH,jsercy:sH,Jukcy:lH,jukcy:aH,Kappa:cH,kappa:uH,kappav:fH,Kcedil:hH,kcedil:dH,Kcy:pH,kcy:gH,Kfr:vH,kfr:mH,kgreen:yH,KHcy:bH,khcy:wH,KJcy:xH,kjcy:_H,Kopf:SH,kopf:kH,Kscr:CH,kscr:TH,lAarr:EH,Lacute:LH,lacute:AH,laemptyv:MH,lagran:NH,Lambda:PH,lambda:$H,lang:OH,Lang:DH,langd:RH,langle:zH,lap:IH,Laplacetrf:FH,laquo:HH,larrb:qH,larrbfs:BH,larr:WH,Larr:UH,lArr:jH,larrfs:GH,larrhk:VH,larrlp:KH,larrpl:XH,larrsim:YH,larrtl:ZH,latail:QH,lAtail:JH,lat:tq,late:eq,lates:nq,lbarr:rq,lBarr:iq,lbbrk:oq,lbrace:sq,lbrack:lq,lbrke:aq,lbrksld:cq,lbrkslu:uq,Lcaron:fq,lcaron:hq,Lcedil:dq,lcedil:pq,lceil:gq,lcub:vq,Lcy:mq,lcy:yq,ldca:bq,ldquo:wq,ldquor:xq,ldrdhar:_q,ldrushar:Sq,ldsh:kq,le:Cq,lE:Tq,LeftAngleBracket:Eq,LeftArrowBar:Lq,leftarrow:Aq,LeftArrow:Mq,Leftarrow:Nq,LeftArrowRightArrow:Pq,leftarrowtail:$q,LeftCeiling:Oq,LeftDoubleBracket:Dq,LeftDownTeeVector:Rq,LeftDownVectorBar:zq,LeftDownVector:Iq,LeftFloor:Fq,leftharpoondown:Hq,leftharpoonup:qq,leftleftarrows:Bq,leftrightarrow:Wq,LeftRightArrow:Uq,Leftrightarrow:jq,leftrightarrows:Gq,leftrightharpoons:Vq,leftrightsquigarrow:Kq,LeftRightVector:Xq,LeftTeeArrow:Yq,LeftTee:Zq,LeftTeeVector:Qq,leftthreetimes:Jq,LeftTriangleBar:tB,LeftTriangle:eB,LeftTriangleEqual:nB,LeftUpDownVector:rB,LeftUpTeeVector:iB,LeftUpVectorBar:oB,LeftUpVector:sB,LeftVectorBar:lB,LeftVector:aB,lEg:cB,leg:uB,leq:fB,leqq:hB,leqslant:dB,lescc:pB,les:gB,lesdot:vB,lesdoto:mB,lesdotor:yB,lesg:bB,lesges:wB,lessapprox:xB,lessdot:_B,lesseqgtr:SB,lesseqqgtr:kB,LessEqualGreater:CB,LessFullEqual:TB,LessGreater:EB,lessgtr:LB,LessLess:AB,lesssim:MB,LessSlantEqual:NB,LessTilde:PB,lfisht:$B,lfloor:OB,Lfr:DB,lfr:RB,lg:zB,lgE:IB,lHar:FB,lhard:HB,lharu:qB,lharul:BB,lhblk:WB,LJcy:UB,ljcy:jB,llarr:GB,ll:VB,Ll:KB,llcorner:XB,Lleftarrow:YB,llhard:ZB,lltri:QB,Lmidot:JB,lmidot:t3,lmoustache:e3,lmoust:n3,lnap:r3,lnapprox:i3,lne:o3,lnE:s3,lneq:l3,lneqq:a3,lnsim:c3,loang:u3,loarr:f3,lobrk:h3,longleftarrow:d3,LongLeftArrow:p3,Longleftarrow:g3,longleftrightarrow:v3,LongLeftRightArrow:m3,Longleftrightarrow:y3,longmapsto:b3,longrightarrow:w3,LongRightArrow:x3,Longrightarrow:_3,looparrowleft:S3,looparrowright:k3,lopar:C3,Lopf:T3,lopf:E3,loplus:L3,lotimes:A3,lowast:M3,lowbar:N3,LowerLeftArrow:P3,LowerRightArrow:$3,loz:O3,lozenge:D3,lozf:R3,lpar:z3,lparlt:I3,lrarr:F3,lrcorner:H3,lrhar:q3,lrhard:B3,lrm:W3,lrtri:U3,lsaquo:j3,lscr:G3,Lscr:V3,lsh:K3,Lsh:X3,lsim:Y3,lsime:Z3,lsimg:Q3,lsqb:J3,lsquo:t5,lsquor:e5,Lstrok:n5,lstrok:r5,ltcc:i5,ltcir:o5,lt:s5,LT:l5,Lt:a5,ltdot:c5,lthree:u5,ltimes:f5,ltlarr:h5,ltquest:d5,ltri:p5,ltrie:g5,ltrif:v5,ltrPar:m5,lurdshar:y5,luruhar:b5,lvertneqq:w5,lvnE:x5,macr:_5,male:S5,malt:k5,maltese:C5,Map:"⤅",map:T5,mapsto:E5,mapstodown:L5,mapstoleft:A5,mapstoup:M5,marker:N5,mcomma:P5,Mcy:$5,mcy:O5,mdash:D5,mDDot:R5,measuredangle:z5,MediumSpace:I5,Mellintrf:F5,Mfr:H5,mfr:q5,mho:B5,micro:W5,midast:U5,midcir:j5,mid:G5,middot:V5,minusb:K5,minus:X5,minusd:Y5,minusdu:Z5,MinusPlus:Q5,mlcp:J5,mldr:t8,mnplus:e8,models:n8,Mopf:r8,mopf:i8,mp:o8,mscr:s8,Mscr:l8,mstpos:a8,Mu:c8,mu:u8,multimap:f8,mumap:h8,nabla:d8,Nacute:p8,nacute:g8,nang:v8,nap:m8,napE:y8,napid:b8,napos:w8,napprox:x8,natural:_8,naturals:S8,natur:k8,nbsp:C8,nbump:T8,nbumpe:E8,ncap:L8,Ncaron:A8,ncaron:M8,Ncedil:N8,ncedil:P8,ncong:$8,ncongdot:O8,ncup:D8,Ncy:R8,ncy:z8,ndash:I8,nearhk:F8,nearr:H8,neArr:q8,nearrow:B8,ne:W8,nedot:U8,NegativeMediumSpace:j8,NegativeThickSpace:G8,NegativeThinSpace:V8,NegativeVeryThinSpace:K8,nequiv:X8,nesear:Y8,nesim:Z8,NestedGreaterGreater:Q8,NestedLessLess:J8,NewLine:tW,nexist:eW,nexists:nW,Nfr:rW,nfr:iW,ngE:oW,nge:sW,ngeq:lW,ngeqq:aW,ngeqslant:cW,nges:uW,nGg:fW,ngsim:hW,nGt:dW,ngt:pW,ngtr:gW,nGtv:vW,nharr:mW,nhArr:yW,nhpar:bW,ni:wW,nis:xW,nisd:_W,niv:SW,NJcy:kW,njcy:CW,nlarr:TW,nlArr:EW,nldr:LW,nlE:AW,nle:MW,nleftarrow:NW,nLeftarrow:PW,nleftrightarrow:$W,nLeftrightarrow:OW,nleq:DW,nleqq:RW,nleqslant:zW,nles:IW,nless:FW,nLl:HW,nlsim:qW,nLt:BW,nlt:WW,nltri:UW,nltrie:jW,nLtv:GW,nmid:VW,NoBreak:KW,NonBreakingSpace:XW,nopf:YW,Nopf:ZW,Not:QW,not:JW,NotCongruent:tU,NotCupCap:eU,NotDoubleVerticalBar:nU,NotElement:rU,NotEqual:iU,NotEqualTilde:oU,NotExists:sU,NotGreater:lU,NotGreaterEqual:aU,NotGreaterFullEqual:cU,NotGreaterGreater:uU,NotGreaterLess:fU,NotGreaterSlantEqual:hU,NotGreaterTilde:dU,NotHumpDownHump:pU,NotHumpEqual:gU,notin:vU,notindot:mU,notinE:yU,notinva:bU,notinvb:wU,notinvc:xU,NotLeftTriangleBar:_U,NotLeftTriangle:SU,NotLeftTriangleEqual:kU,NotLess:CU,NotLessEqual:TU,NotLessGreater:EU,NotLessLess:LU,NotLessSlantEqual:AU,NotLessTilde:MU,NotNestedGreaterGreater:NU,NotNestedLessLess:PU,notni:$U,notniva:OU,notnivb:DU,notnivc:RU,NotPrecedes:zU,NotPrecedesEqual:IU,NotPrecedesSlantEqual:FU,NotReverseElement:HU,NotRightTriangleBar:qU,NotRightTriangle:BU,NotRightTriangleEqual:WU,NotSquareSubset:UU,NotSquareSubsetEqual:jU,NotSquareSuperset:GU,NotSquareSupersetEqual:VU,NotSubset:KU,NotSubsetEqual:XU,NotSucceeds:YU,NotSucceedsEqual:ZU,NotSucceedsSlantEqual:QU,NotSucceedsTilde:JU,NotSuperset:t4,NotSupersetEqual:e4,NotTilde:n4,NotTildeEqual:r4,NotTildeFullEqual:i4,NotTildeTilde:o4,NotVerticalBar:s4,nparallel:l4,npar:a4,nparsl:c4,npart:u4,npolint:f4,npr:h4,nprcue:d4,nprec:p4,npreceq:g4,npre:v4,nrarrc:m4,nrarr:y4,nrArr:b4,nrarrw:w4,nrightarrow:x4,nRightarrow:_4,nrtri:S4,nrtrie:k4,nsc:C4,nsccue:T4,nsce:E4,Nscr:L4,nscr:A4,nshortmid:M4,nshortparallel:N4,nsim:P4,nsime:$4,nsimeq:O4,nsmid:D4,nspar:R4,nsqsube:z4,nsqsupe:I4,nsub:F4,nsubE:H4,nsube:q4,nsubset:B4,nsubseteq:W4,nsubseteqq:U4,nsucc:j4,nsucceq:G4,nsup:V4,nsupE:K4,nsupe:X4,nsupset:Y4,nsupseteq:Z4,nsupseteqq:Q4,ntgl:J4,Ntilde:t6,ntilde:e6,ntlg:n6,ntriangleleft:r6,ntrianglelefteq:i6,ntriangleright:o6,ntrianglerighteq:s6,Nu:l6,nu:a6,num:c6,numero:u6,numsp:f6,nvap:h6,nvdash:d6,nvDash:p6,nVdash:g6,nVDash:v6,nvge:m6,nvgt:y6,nvHarr:b6,nvinfin:w6,nvlArr:x6,nvle:_6,nvlt:S6,nvltrie:k6,nvrArr:C6,nvrtrie:T6,nvsim:E6,nwarhk:L6,nwarr:A6,nwArr:M6,nwarrow:N6,nwnear:P6,Oacute:$6,oacute:O6,oast:D6,Ocirc:R6,ocirc:z6,ocir:I6,Ocy:F6,ocy:H6,odash:q6,Odblac:B6,odblac:W6,odiv:U6,odot:j6,odsold:G6,OElig:V6,oelig:K6,ofcir:X6,Ofr:Y6,ofr:Z6,ogon:Q6,Ograve:J6,ograve:tj,ogt:ej,ohbar:nj,ohm:rj,oint:ij,olarr:oj,olcir:sj,olcross:lj,oline:aj,olt:cj,Omacr:uj,omacr:fj,Omega:hj,omega:dj,Omicron:pj,omicron:gj,omid:vj,ominus:mj,Oopf:yj,oopf:bj,opar:wj,OpenCurlyDoubleQuote:xj,OpenCurlyQuote:_j,operp:Sj,oplus:kj,orarr:Cj,Or:Tj,or:Ej,ord:Lj,order:Aj,orderof:Mj,ordf:Nj,ordm:Pj,origof:$j,oror:Oj,orslope:Dj,orv:Rj,oS:zj,Oscr:Ij,oscr:Fj,Oslash:Hj,oslash:qj,osol:Bj,Otilde:Wj,otilde:Uj,otimesas:jj,Otimes:Gj,otimes:Vj,Ouml:Kj,ouml:Xj,ovbar:Yj,OverBar:Zj,OverBrace:Qj,OverBracket:Jj,OverParenthesis:t9,para:e9,parallel:n9,par:r9,parsim:i9,parsl:o9,part:s9,PartialD:l9,Pcy:a9,pcy:c9,percnt:u9,period:f9,permil:h9,perp:d9,pertenk:p9,Pfr:g9,pfr:v9,Phi:m9,phi:y9,phiv:b9,phmmat:w9,phone:x9,Pi:_9,pi:S9,pitchfork:k9,piv:C9,planck:T9,planckh:E9,plankv:L9,plusacir:A9,plusb:M9,pluscir:N9,plus:P9,plusdo:$9,plusdu:O9,pluse:D9,PlusMinus:R9,plusmn:z9,plussim:I9,plustwo:F9,pm:H9,Poincareplane:q9,pointint:B9,popf:W9,Popf:U9,pound:j9,prap:G9,Pr:V9,pr:K9,prcue:X9,precapprox:Y9,prec:Z9,preccurlyeq:Q9,Precedes:J9,PrecedesEqual:tG,PrecedesSlantEqual:eG,PrecedesTilde:nG,preceq:rG,precnapprox:iG,precneqq:oG,precnsim:sG,pre:lG,prE:aG,precsim:cG,prime:uG,Prime:fG,primes:hG,prnap:dG,prnE:pG,prnsim:gG,prod:vG,Product:mG,profalar:yG,profline:bG,profsurf:wG,prop:xG,Proportional:_G,Proportion:SG,propto:kG,prsim:CG,prurel:TG,Pscr:EG,pscr:LG,Psi:AG,psi:MG,puncsp:NG,Qfr:PG,qfr:$G,qint:OG,qopf:DG,Qopf:RG,qprime:zG,Qscr:IG,qscr:FG,quaternions:HG,quatint:qG,quest:BG,questeq:WG,quot:UG,QUOT:jG,rAarr:GG,race:VG,Racute:KG,racute:XG,radic:YG,raemptyv:ZG,rang:QG,Rang:JG,rangd:tV,range:eV,rangle:nV,raquo:rV,rarrap:iV,rarrb:oV,rarrbfs:sV,rarrc:lV,rarr:aV,Rarr:cV,rArr:uV,rarrfs:fV,rarrhk:hV,rarrlp:dV,rarrpl:pV,rarrsim:gV,Rarrtl:vV,rarrtl:mV,rarrw:yV,ratail:bV,rAtail:wV,ratio:xV,rationals:_V,rbarr:SV,rBarr:kV,RBarr:CV,rbbrk:TV,rbrace:EV,rbrack:LV,rbrke:AV,rbrksld:MV,rbrkslu:NV,Rcaron:PV,rcaron:$V,Rcedil:OV,rcedil:DV,rceil:RV,rcub:zV,Rcy:IV,rcy:FV,rdca:HV,rdldhar:qV,rdquo:BV,rdquor:WV,rdsh:UV,real:jV,realine:GV,realpart:VV,reals:KV,Re:XV,rect:YV,reg:ZV,REG:QV,ReverseElement:JV,ReverseEquilibrium:t7,ReverseUpEquilibrium:e7,rfisht:n7,rfloor:r7,rfr:i7,Rfr:o7,rHar:s7,rhard:l7,rharu:a7,rharul:c7,Rho:u7,rho:f7,rhov:h7,RightAngleBracket:d7,RightArrowBar:p7,rightarrow:g7,RightArrow:v7,Rightarrow:m7,RightArrowLeftArrow:y7,rightarrowtail:b7,RightCeiling:w7,RightDoubleBracket:x7,RightDownTeeVector:_7,RightDownVectorBar:S7,RightDownVector:k7,RightFloor:C7,rightharpoondown:T7,rightharpoonup:E7,rightleftarrows:L7,rightleftharpoons:A7,rightrightarrows:M7,rightsquigarrow:N7,RightTeeArrow:P7,RightTee:$7,RightTeeVector:O7,rightthreetimes:D7,RightTriangleBar:R7,RightTriangle:z7,RightTriangleEqual:I7,RightUpDownVector:F7,RightUpTeeVector:H7,RightUpVectorBar:q7,RightUpVector:B7,RightVectorBar:W7,RightVector:U7,ring:j7,risingdotseq:G7,rlarr:V7,rlhar:K7,rlm:X7,rmoustache:Y7,rmoust:Z7,rnmid:Q7,roang:J7,roarr:tK,robrk:eK,ropar:nK,ropf:rK,Ropf:iK,roplus:oK,rotimes:sK,RoundImplies:lK,rpar:aK,rpargt:cK,rppolint:uK,rrarr:fK,Rrightarrow:hK,rsaquo:dK,rscr:pK,Rscr:gK,rsh:vK,Rsh:mK,rsqb:yK,rsquo:bK,rsquor:wK,rthree:xK,rtimes:_K,rtri:SK,rtrie:kK,rtrif:CK,rtriltri:TK,RuleDelayed:EK,ruluhar:LK,rx:AK,Sacute:MK,sacute:NK,sbquo:PK,scap:$K,Scaron:OK,scaron:DK,Sc:RK,sc:zK,sccue:IK,sce:FK,scE:HK,Scedil:qK,scedil:BK,Scirc:WK,scirc:UK,scnap:jK,scnE:GK,scnsim:VK,scpolint:KK,scsim:XK,Scy:YK,scy:ZK,sdotb:QK,sdot:JK,sdote:tX,searhk:eX,searr:nX,seArr:rX,searrow:iX,sect:oX,semi:sX,seswar:lX,setminus:aX,setmn:cX,sext:uX,Sfr:fX,sfr:hX,sfrown:dX,sharp:pX,SHCHcy:gX,shchcy:vX,SHcy:mX,shcy:yX,ShortDownArrow:bX,ShortLeftArrow:wX,shortmid:xX,shortparallel:_X,ShortRightArrow:SX,ShortUpArrow:kX,shy:CX,Sigma:TX,sigma:EX,sigmaf:LX,sigmav:AX,sim:MX,simdot:NX,sime:PX,simeq:$X,simg:OX,simgE:DX,siml:RX,simlE:zX,simne:IX,simplus:FX,simrarr:HX,slarr:qX,SmallCircle:BX,smallsetminus:WX,smashp:UX,smeparsl:jX,smid:GX,smile:VX,smt:KX,smte:XX,smtes:YX,SOFTcy:ZX,softcy:QX,solbar:JX,solb:tY,sol:eY,Sopf:nY,sopf:rY,spades:iY,spadesuit:oY,spar:sY,sqcap:lY,sqcaps:aY,sqcup:cY,sqcups:uY,Sqrt:fY,sqsub:hY,sqsube:dY,sqsubset:pY,sqsubseteq:gY,sqsup:vY,sqsupe:mY,sqsupset:yY,sqsupseteq:bY,square:wY,Square:xY,SquareIntersection:_Y,SquareSubset:SY,SquareSubsetEqual:kY,SquareSuperset:CY,SquareSupersetEqual:TY,SquareUnion:EY,squarf:LY,squ:AY,squf:MY,srarr:NY,Sscr:PY,sscr:$Y,ssetmn:OY,ssmile:DY,sstarf:RY,Star:zY,star:IY,starf:FY,straightepsilon:HY,straightphi:qY,strns:BY,sub:WY,Sub:UY,subdot:jY,subE:GY,sube:VY,subedot:KY,submult:XY,subnE:YY,subne:ZY,subplus:QY,subrarr:JY,subset:tZ,Subset:eZ,subseteq:nZ,subseteqq:rZ,SubsetEqual:iZ,subsetneq:oZ,subsetneqq:sZ,subsim:lZ,subsub:aZ,subsup:cZ,succapprox:uZ,succ:fZ,succcurlyeq:hZ,Succeeds:dZ,SucceedsEqual:pZ,SucceedsSlantEqual:gZ,SucceedsTilde:vZ,succeq:mZ,succnapprox:yZ,succneqq:bZ,succnsim:wZ,succsim:xZ,SuchThat:_Z,sum:SZ,Sum:kZ,sung:CZ,sup1:TZ,sup2:EZ,sup3:LZ,sup:AZ,Sup:MZ,supdot:NZ,supdsub:PZ,supE:$Z,supe:OZ,supedot:DZ,Superset:RZ,SupersetEqual:zZ,suphsol:IZ,suphsub:FZ,suplarr:HZ,supmult:qZ,supnE:BZ,supne:WZ,supplus:UZ,supset:jZ,Supset:GZ,supseteq:VZ,supseteqq:KZ,supsetneq:XZ,supsetneqq:YZ,supsim:ZZ,supsub:QZ,supsup:JZ,swarhk:tQ,swarr:eQ,swArr:nQ,swarrow:rQ,swnwar:iQ,szlig:oQ,Tab:sQ,target:lQ,Tau:aQ,tau:cQ,tbrk:uQ,Tcaron:fQ,tcaron:hQ,Tcedil:dQ,tcedil:pQ,Tcy:gQ,tcy:vQ,tdot:mQ,telrec:yQ,Tfr:bQ,tfr:wQ,there4:xQ,therefore:_Q,Therefore:SQ,Theta:kQ,theta:CQ,thetasym:TQ,thetav:EQ,thickapprox:LQ,thicksim:AQ,ThickSpace:MQ,ThinSpace:NQ,thinsp:PQ,thkap:$Q,thksim:OQ,THORN:DQ,thorn:RQ,tilde:zQ,Tilde:IQ,TildeEqual:FQ,TildeFullEqual:HQ,TildeTilde:qQ,timesbar:BQ,timesb:WQ,times:UQ,timesd:jQ,tint:GQ,toea:VQ,topbot:KQ,topcir:XQ,top:YQ,Topf:ZQ,topf:QQ,topfork:JQ,tosa:tJ,tprime:eJ,trade:nJ,TRADE:rJ,triangle:iJ,triangledown:oJ,triangleleft:sJ,trianglelefteq:lJ,triangleq:aJ,triangleright:cJ,trianglerighteq:uJ,tridot:fJ,trie:hJ,triminus:dJ,TripleDot:pJ,triplus:gJ,trisb:vJ,tritime:mJ,trpezium:yJ,Tscr:bJ,tscr:wJ,TScy:xJ,tscy:_J,TSHcy:SJ,tshcy:kJ,Tstrok:CJ,tstrok:TJ,twixt:EJ,twoheadleftarrow:LJ,twoheadrightarrow:AJ,Uacute:MJ,uacute:NJ,uarr:PJ,Uarr:$J,uArr:OJ,Uarrocir:DJ,Ubrcy:RJ,ubrcy:zJ,Ubreve:IJ,ubreve:FJ,Ucirc:HJ,ucirc:qJ,Ucy:BJ,ucy:WJ,udarr:UJ,Udblac:jJ,udblac:GJ,udhar:VJ,ufisht:KJ,Ufr:XJ,ufr:YJ,Ugrave:ZJ,ugrave:QJ,uHar:JJ,uharl:ttt,uharr:ett,uhblk:ntt,ulcorn:rtt,ulcorner:itt,ulcrop:ott,ultri:stt,Umacr:ltt,umacr:att,uml:ctt,UnderBar:utt,UnderBrace:ftt,UnderBracket:htt,UnderParenthesis:dtt,Union:ptt,UnionPlus:gtt,Uogon:vtt,uogon:mtt,Uopf:ytt,uopf:btt,UpArrowBar:wtt,uparrow:xtt,UpArrow:_tt,Uparrow:Stt,UpArrowDownArrow:ktt,updownarrow:Ctt,UpDownArrow:Ttt,Updownarrow:Ett,UpEquilibrium:Ltt,upharpoonleft:Att,upharpoonright:Mtt,uplus:Ntt,UpperLeftArrow:Ptt,UpperRightArrow:$tt,upsi:Ott,Upsi:Dtt,upsih:Rtt,Upsilon:ztt,upsilon:Itt,UpTeeArrow:Ftt,UpTee:Htt,upuparrows:qtt,urcorn:Btt,urcorner:Wtt,urcrop:Utt,Uring:jtt,uring:Gtt,urtri:Vtt,Uscr:Ktt,uscr:Xtt,utdot:Ytt,Utilde:Ztt,utilde:Qtt,utri:Jtt,utrif:tet,uuarr:eet,Uuml:net,uuml:ret,uwangle:iet,vangrt:oet,varepsilon:set,varkappa:aet,varnothing:cet,varphi:uet,varpi:fet,varpropto:het,varr:det,vArr:pet,varrho:get,varsigma:vet,varsubsetneq:met,varsubsetneqq:yet,varsupsetneq:bet,varsupsetneqq:wet,vartheta:xet,vartriangleleft:_et,vartriangleright:ket,vBar:Cet,Vbar:Tet,vBarv:Eet,Vcy:Let,vcy:Aet,vdash:Met,vDash:Net,Vdash:Pet,VDash:$et,Vdashl:Oet,veebar:Det,vee:Ret,Vee:zet,veeeq:Iet,vellip:Fet,verbar:Het,Verbar:qet,vert:Bet,Vert:Wet,VerticalBar:Uet,VerticalLine:jet,VerticalSeparator:Get,VerticalTilde:Vet,VeryThinSpace:Ket,Vfr:Xet,vfr:Yet,vltri:Zet,vnsub:Qet,vnsup:Jet,Vopf:tnt,vopf:ent,vprop:nnt,vrtri:rnt,Vscr:int,vscr:ont,vsubnE:snt,vsubne:lnt,vsupnE:ant,vsupne:cnt,Vvdash:unt,vzigzag:fnt,Wcirc:hnt,wcirc:dnt,wedbar:pnt,wedge:gnt,Wedge:vnt,wedgeq:mnt,weierp:ynt,Wfr:bnt,wfr:wnt,Wopf:xnt,wopf:_nt,wp:Snt,wr:knt,wreath:Cnt,Wscr:Tnt,wscr:Ent,xcap:Lnt,xcirc:Ant,xcup:Mnt,xdtri:Nnt,Xfr:Pnt,xfr:$nt,xharr:Ont,xhArr:Dnt,Xi:Rnt,xi:znt,xlarr:Int,xlArr:Fnt,xmap:Hnt,xnis:qnt,xodot:Bnt,Xopf:Wnt,xopf:Unt,xoplus:jnt,xotime:Gnt,xrarr:Vnt,xrArr:Knt,Xscr:Xnt,xscr:Ynt,xsqcup:Znt,xuplus:Qnt,xutri:Jnt,xvee:trt,xwedge:ert,Yacute:nrt,yacute:rrt,YAcy:irt,yacy:ort,Ycirc:srt,ycirc:lrt,Ycy:art,ycy:crt,yen:urt,Yfr:frt,yfr:hrt,YIcy:drt,yicy:prt,Yopf:grt,yopf:vrt,Yscr:mrt,yscr:yrt,YUcy:brt,yucy:wrt,yuml:xrt,Yuml:_rt,Zacute:Srt,zacute:krt,Zcaron:Crt,zcaron:Trt,Zcy:Ert,zcy:Lrt,Zdot:Art,zdot:Mrt,zeetrf:Nrt,ZeroWidthSpace:Prt,Zeta:$rt,zeta:Ort,zfr:Drt,Zfr:Rrt,ZHcy:zrt,zhcy:Irt,zigrarr:Frt,zopf:Hrt,Zopf:qrt,Zscr:Brt,zscr:Wrt,zwj:Urt,zwnj:jrt},Grt="Á",Vrt="á",Krt="Â",Xrt="â",Yrt="´",Zrt="Æ",Qrt="æ",Jrt="À",tit="à",eit="&",nit="&",rit="Å",iit="å",oit="Ã",sit="ã",lit="Ä",ait="ä",cit="¦",uit="Ç",fit="ç",hit="¸",dit="¢",pit="©",git="©",vit="¤",mit="°",yit="÷",bit="É",wit="é",xit="Ê",_it="ê",Sit="È",kit="è",Cit="Ð",Tit="ð",Eit="Ë",Lit="ë",Ait="½",Mit="¼",Nit="¾",Pit=">",$it=">",Oit="Í",Dit="í",Rit="Î",zit="î",Iit="¡",Fit="Ì",Hit="ì",qit="¿",Bit="Ï",Wit="ï",Uit="«",jit="<",Git="<",Vit="¯",Kit="µ",Xit="·",Yit=" ",Zit="¬",Qit="Ñ",Jit="ñ",tot="Ó",eot="ó",not="Ô",rot="ô",iot="Ò",oot="ò",sot="ª",lot="º",aot="Ø",cot="ø",uot="Õ",fot="õ",hot="Ö",dot="ö",pot="¶",got="±",vot="£",mot='"',yot='"',bot="»",wot="®",xot="®",_ot="§",Sot="­",kot="¹",Cot="²",Tot="³",Eot="ß",Lot="Þ",Aot="þ",Mot="×",Not="Ú",Pot="ú",$ot="Û",Oot="û",Dot="Ù",Rot="ù",zot="¨",Iot="Ü",Fot="ü",Hot="Ý",qot="ý",Bot="¥",Wot="ÿ",Uot={Aacute:Grt,aacute:Vrt,Acirc:Krt,acirc:Xrt,acute:Yrt,AElig:Zrt,aelig:Qrt,Agrave:Jrt,agrave:tit,amp:eit,AMP:nit,Aring:rit,aring:iit,Atilde:oit,atilde:sit,Auml:lit,auml:ait,brvbar:cit,Ccedil:uit,ccedil:fit,cedil:hit,cent:dit,copy:pit,COPY:git,curren:vit,deg:mit,divide:yit,Eacute:bit,eacute:wit,Ecirc:xit,ecirc:_it,Egrave:Sit,egrave:kit,ETH:Cit,eth:Tit,Euml:Eit,euml:Lit,frac12:Ait,frac14:Mit,frac34:Nit,gt:Pit,GT:$it,Iacute:Oit,iacute:Dit,Icirc:Rit,icirc:zit,iexcl:Iit,Igrave:Fit,igrave:Hit,iquest:qit,Iuml:Bit,iuml:Wit,laquo:Uit,lt:jit,LT:Git,macr:Vit,micro:Kit,middot:Xit,nbsp:Yit,not:Zit,Ntilde:Qit,ntilde:Jit,Oacute:tot,oacute:eot,Ocirc:not,ocirc:rot,Ograve:iot,ograve:oot,ordf:sot,ordm:lot,Oslash:aot,oslash:cot,Otilde:uot,otilde:fot,Ouml:hot,ouml:dot,para:pot,plusmn:got,pound:vot,quot:mot,QUOT:yot,raquo:bot,reg:wot,REG:xot,sect:_ot,shy:Sot,sup1:kot,sup2:Cot,sup3:Tot,szlig:Eot,THORN:Lot,thorn:Aot,times:Mot,Uacute:Not,uacute:Pot,Ucirc:$ot,ucirc:Oot,Ugrave:Dot,ugrave:Rot,uml:zot,Uuml:Iot,uuml:Fot,Yacute:Hot,yacute:qot,yen:Bot,yuml:Wot},jot="&",Got="'",Vot=">",Kot="<",Xot='"',Fy={amp:jot,apos:Got,gt:Vot,lt:Kot,quot:Xot};var Jh={};const Yot={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Zot=uo&&uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jh,"__esModule",{value:!0});var Uv=Zot(Yot),Qot=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function Jot(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Uv.default&&(t=Uv.default[t]),Qot(t))}Jh.default=Jot;var eu=uo&&uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.decodeHTML=Vr.decodeHTMLStrict=Vr.decodeXML=void 0;var rh=eu(Iy),tst=eu(Uot),est=eu(Fy),jv=eu(Jh),nst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Vr.decodeXML=Hy(est.default);Vr.decodeHTMLStrict=Hy(rh.default);function Hy(t){var e=qy(t);return function(r){return String(r).replace(nst,e)}}var Gv=function(t,e){return t1?sst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function lst(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(Vy,nu)}}var Ky=new RegExp(Uy.source+"|"+Vy.source,"g");function ast(t){return t.replace(Ky,nu)}zn.escape=ast;function cst(t){return t.replace(Uy,nu)}zn.escapeUTF8=cst;function Xy(t){return function(e){return e.replace(Ky,function(r){return t[r]||nu(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=Vr,r=zn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function s(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=s;function c(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=c;var f=zn;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=Vr;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(zy);function ust(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vv(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return c=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function hst(t,e){if(t){if(typeof t=="string")return Kv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kv(t,e)}}function Kv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r0?t*40+55:0,f=e>0?e*40+55:0,h=r>0?r*40+55:0;o[s]=vst([c,f,h])}function Zy(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function vst(t){var e=[],r=Yy(t),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;e.push(Zy(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+e.join("")}function Yv(t,e,r,o){var s;return e==="text"?s=wst(r,o):e==="display"?s=yst(t,r,o):e==="xterm256Foreground"?s=nc(t,o.colors[r]):e==="xterm256Background"?s=rc(t,o.colors[r]):e==="rgb"&&(s=mst(t,r)),s}function mst(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return ec(t,(r===38?"color:#":"background-color:#")+s)}function yst(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"
"},0:function(){return t.length&&Qy(t)},1:function(){return Si(t,"b")},3:function(){return Si(t,"i")},4:function(){return Si(t,"u")},8:function(){return ec(t,"display:none")},9:function(){return Si(t,"strike")},22:function(){return ec(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Qv(t,"i")},24:function(){return Qv(t,"u")},39:function(){return nc(t,r.fg)},49:function(){return rc(t,r.bg)},53:function(){return ec(t,"text-decoration:overline")}},s;return o[e]?s=o[e]():4"}).join("")}function Fa(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function bst(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function Zv(t){t=parseInt(t,10);var e=null;return t===0?e="all":t===1?e="bold":2")}function ec(t,e){return Si(t,"span",e)}function nc(t,e){return Si(t,"span","color:"+e)}function rc(t,e){return Si(t,"span","background-color:"+e)}function Qv(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return""}function xst(t,e,r){var o=!1,s=3;function c(){return""}function f(H,K){return r("xterm256Foreground",K),""}function h(H,K){return r("xterm256Background",K),""}function d(H){return e.newline?r("display",-1):r("text",H),""}function g(H,K){o=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var ct=Yy(K),Y;try{for(ct.s();!(Y=ct.n()).done;){var nt=Y.value;r("display",nt)}}catch(rt){ct.e(rt)}finally{ct.f()}return""}function v(H){return r("text",H),""}function y(H){return r("rgb",H),""}var w=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function _(H,K){K>s&&o||(o=!1,t=t.replace(H.pattern,H.sub))}var N=[],L=t,A=L.length;t:for(;A>0;){for(var T=0,M=0,$=w.length;M<$;T=++M){var E=w[T];if(_(E,T),t.length!==A){A=t.length;continue t}}if(t.length===A)break;N.push(0),A=t.length}return N}function _st(t,e,r){return e!=="text"&&(t=t.filter(bst(Zv(r))),t.push({token:e,data:r,category:Zv(r)})),t}var Sst=function(){function t(e){ust(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},Xv.colors,e.colors)),this.options=Object.assign({},Xv,e),this.stack=[],this.stickyStack=[]}return fst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(h){var d=Yv(s,h.token,h.data,c);d&&f.push(d)}),xst(r.join(""),c,function(h,d){var g=Yv(s,h,d,c);g&&f.push(g),c.stream&&(o.stickyStack=_st(o.stickyStack,h,d))}),s.length&&f.push(Qy(s)),f.join("")}}]),t}(),kst=Sst;const Cst=$y(kst);function Tst(t=""){return!t||!t.includes("\\")?t:t.replace(/\\/g,"/")}const Est=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Lst(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const Ast=function(...t){t=t.map(o=>Tst(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:Lst();!s||s.length===0||(e=`${s}/${e}`,r=Jv(s))}return e=Mst(e,!r),r&&!Jv(e)?`/${e}`:e.length>0?e:"."};function Mst(t,e){let r="",o=0,s=-1,c=0,f=null;for(let h=0;h<=t.length;++h){if(h2){const d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,c=0;continue}else if(r.length>0){r="",o=0,s=h,c=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Jv=function(t){return Est.test(t)},Nst=44,tm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pst=new Uint8Array(64),Jy=new Uint8Array(128);for(let t=0;t>>=1,h&&(s=-2147483648|-s),r[o]+=s,e}function em(t,e,r){return e>=r?!1:t.charCodeAt(e)!==Nst}function Dst(t){t.sort(Rst)}function Rst(t,e){return t[0]-e[0]}const zst=/^[\w+.-]+:\/\//,Ist=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Fst=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Oe;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(Oe||(Oe={}));function Hst(t){return zst.test(t)}function qst(t){return t.startsWith("//")}function tb(t){return t.startsWith("/")}function Bst(t){return t.startsWith("file:")}function nm(t){return/^[.?#]/.test(t)}function Ha(t){const e=Ist.exec(t);return eb(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Wst(t){const e=Fst.exec(t),r=e[2];return eb("file:","",e[1]||"","",tb(r)?r:"/"+r,e[3]||"",e[4]||"")}function eb(t,e,r,o,s,c,f){return{scheme:t,user:e,host:r,port:o,path:s,query:c,hash:f,type:Oe.Absolute}}function rm(t){if(qst(t)){const r=Ha("http:"+t);return r.scheme="",r.type=Oe.SchemeRelative,r}if(tb(t)){const r=Ha("http://foo.com"+t);return r.scheme="",r.host="",r.type=Oe.AbsolutePath,r}if(Bst(t))return Wst(t);if(Hst(t))return Ha(t);const e=Ha("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?Oe.Query:t.startsWith("#")?Oe.Hash:Oe.RelativePath:Oe.Empty,e}function Ust(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function jst(t,e){nb(e,e.type),t.path==="/"?t.path=e.path:t.path=Ust(e.path)+t.path}function nb(t,e){const r=e<=Oe.RelativePath,o=t.path.split("/");let s=1,c=0,f=!1;for(let d=1;do&&(o=f)}nb(r,o);const s=r.query+r.hash;switch(o){case Oe.Hash:case Oe.Query:return s;case Oe.RelativePath:{const c=r.path.slice(1);return c?nm(e||t)&&!nm(c)?"./"+c+s:c+s:s||"."}case Oe.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function im(t,e){return e&&!e.endsWith("/")&&(e+="/"),Gst(t,e)}function Vst(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const Oi=0,Kst=1,Xst=2,Yst=3,Zst=4;function Qst(t,e){const r=om(t,0);if(r===t.length)return t;e||(t=t.slice());for(let o=r;o>1),c=t[s][Oi]-e;if(c===0)return _c=!0,s;c<0?r=s+1:o=s-1}return _c=!1,r-1}function rlt(t,e,r){for(let o=r+1;o=0&&t[o][Oi]===e;r=o--);return r}function olt(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function slt(t,e,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let h=0,d=t.length-1;if(o===s){if(e===c)return _c=f!==-1&&t[f][Oi]===e,f;e>=c?h=f===-1?0:f:d=f}return r.lastKey=o,r.lastNeedle=e,r.lastIndex=nlt(t,e,h,d)}const llt="`line` must be greater than 0 (lines start at line 1)",alt="`column` must be greater than or equal to 0 (columns start at column 0)",sm=-1,clt=1;let lm,rb;class ult{constructor(e,r){const o=typeof e=="string";if(!o&&e._decodedMemo)return e;const s=o?JSON.parse(e):e,{version:c,file:f,names:h,sourceRoot:d,sources:g,sourcesContent:v}=s;this.version=c,this.file=f,this.names=h||[],this.sourceRoot=d,this.sources=g,this.sourcesContent=v;const y=im(d||"",Vst(r));this.resolvedSources=g.map(_=>im(_||"",y));const{mappings:w}=s;typeof w=="string"?(this._encoded=w,this._decoded=void 0):(this._encoded=void 0,this._decoded=Qst(w,o)),this._decodedMemo=olt(),this._bySources=void 0,this._bySourceMemos=void 0}}lm=t=>t._decoded||(t._decoded=$st(t._encoded)),rb=(t,{line:e,column:r,bias:o})=>{if(e--,e<0)throw new Error(llt);if(r<0)throw new Error(alt);const s=lm(t);if(e>=s.length)return qa(null,null,null,null);const c=s[e],f=flt(c,t._decodedMemo,e,r,o||clt);if(f===-1)return qa(null,null,null,null);const h=c[f];if(h.length===1)return qa(null,null,null,null);const{names:d,resolvedSources:g}=t;return qa(g[h[Kst]],h[Xst]+1,h[Yst],h.length===5?d[h[Zst]]:null)};function qa(t,e,r,o){return{source:t,line:e,column:r,name:o}}function flt(t,e,r,o,s){let c=slt(t,o,e,r);return _c?c=(s===sm?rlt:ilt)(t,o,c):s===sm&&c++,c===-1||c===t.length?-1:c}const ib=/^\s*at .*(\S+:\d+|\(native\))/m,hlt=/^(eval@)?(\[native code])?$/,dlt=["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/chai.js",/__vitest_browser__/];function ob(t){if(!t.includes(":"))return[t];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!r)return[t];let o=r[1];return(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")&&(o=o.slice(typeof process<"u"&&process.platform==="win32"?5:4)),[o,r[2]||void 0,r[3]||void 0]}function plt(t){let e=t.trim();if(hlt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,[c,f,h]=ob(e.replace(r,""));return!c||!f||!h?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(h)}}function glt(t){let e=t.trim();if(!ib.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=ob(o?o[1]:r);let h=o&&r||"",d=s&&["eval",""].includes(s)?void 0:s;return!d||!c||!f?null:(h.startsWith("async ")&&(h=h.slice(6)),d.startsWith("file://")&&(d=d.slice(7)),d=Ast(d),h&&(h=h.replace(/__vite_ssr_import_\d+__\./g,"")),{method:h,file:d,line:Number.parseInt(c),column:Number.parseInt(f)})}function vlt(t,e={}){const{ignoreStackEntries:r=dlt}=e;let o=ib.test(t)?ylt(t):mlt(t);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;const f=(c=e.getSourceMap)==null?void 0:c.call(e,s.file);if(!f||typeof f!="object"||!f.version)return s;const h=new ult(f),{line:d,column:g}=rb(h,s);return d!=null&&g!=null?{...s,line:d,column:g}:s})}function mlt(t){return t.split(` `).map(e=>plt(e)).filter(Oy)}function ylt(t){return t.split(` `).map(e=>glt(e)).filter(Oy)}function blt(t,e){return e&&t.endsWith(e)}async function sb(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function ed(t){return new Cst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}function wlt(t){return t===null||typeof t!="function"&&typeof t!="object"}function lb(t){let e=t;if(wlt(t)&&(e={message:String(e).split(/\n/g)[0],stack:String(e),name:""}),!t){const r=new Error("unknown error");e={message:r.message,stack:r.stack,name:""}}return e.stacks=vlt(e.stack||e.stackStr||"",{ignoreStackEntries:[]}),e}function nd(t){return Gm()?($x(t),!0):!1}function Ar(t){return typeof t=="function"?t():U(t)}const xlt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _lt=Object.prototype.toString,Slt=t=>_lt.call(t)==="[object Object]",fo=()=>{};function rd(t,e){function r(...o){return new Promise((s,c)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(c)})}return r}const ab=t=>t();function cb(t,e={}){let r,o,s=fo;const c=h=>{clearTimeout(h),s(),s=fo};return h=>{const d=Ar(t),g=Ar(e.maxWait);return r&&c(r),d<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,y)=>{s=e.rejectOnCancel?y:v,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},d)})}}function klt(t,e=!0,r=!0,o=!1){let s=0,c,f=!0,h=fo,d;const g=()=>{c&&(clearTimeout(c),c=void 0,h(),h=fo)};return y=>{const w=Ar(t),_=Date.now()-s,N=()=>d=y();return g(),w<=0?(s=Date.now(),N()):(_>w&&(r||!f)?(s=Date.now(),N()):e&&(d=new Promise((L,A)=>{h=o?A:L,c=setTimeout(()=>{s=Date.now(),f=!0,L(N()),g()},Math.max(0,w-_))})),!r&&!c&&(c=setTimeout(()=>f=!0,w)),f=!1,d)}}function Clt(t=ab){const e=Zt(!0);function r(){e.value=!1}function o(){e.value=!0}const s=(...c)=>{e.value&&t(...c)};return{isActive:Hc(e),pause:r,resume:o,eventFilter:s}}function Tlt(...t){if(t.length!==1)return Nh(...t);const e=t[0];return typeof e=="function"?Hc(i_(()=>({get:e,set:fo}))):Zt(e)}function am(t,e=200,r={}){return rd(cb(e,r),t)}function Elt(t,e=200,r=!1,o=!0,s=!1){return rd(klt(e,r,o,s),t)}function Llt(t,e=200,r=!0,o=!0){if(e<=0)return t;const s=Zt(t.value),c=Elt(()=>{s.value=t.value},e,r,o);return Ie(t,()=>c()),s}function ub(t,e,r={}){const{eventFilter:o=ab,...s}=r;return Ie(t,rd(o,e),s)}function fb(t,e,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:h,isActive:d}=Clt(o);return{stop:ub(t,e,{...s,eventFilter:c}),pause:f,resume:h,isActive:d}}function id(t,e=!0){Wl()?ws(t):e?t():Kr(t)}function Alt(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,s=Le(t),c=Zt(t);function f(h){if(arguments.length)return c.value=h,c.value;{const d=Ar(r);return c.value=c.value===d?Ar(o):d,c.value}}return s?f:[c,f]}function Mlt(t,e,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return ub(t,e,{...c,eventFilter:cb(o,{maxWait:s})})}function Nlt(t,e,r){const o=Ie(t,(...s)=>(Kr(()=>o()),e(...s)),r);return o}function Plt(t,e,r){let o;Le(r)?o={evaluating:r}:o=r||{};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:h=fo}=o,d=Zt(!s),g=f?bs(e):Zt(e);let v=0;return Rh(async y=>{if(!d.value)return;v++;const w=v;let _=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const N=await t(L=>{y(()=>{c&&(c.value=!1),_||L()})});w===v&&(g.value=N)}catch(N){h(N)}finally{c&&w===v&&(c.value=!1),_=!0}}),s?xt(()=>(d.value=!0,g.value)):g}function Sc(t){var e;const r=Ar(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Mr=xlt?window:void 0;function ps(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=Mr):[e,r,o,s]=t,!e)return fo;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},h=(v,y,w,_)=>(v.addEventListener(y,w,_),()=>v.removeEventListener(y,w,_)),d=Ie(()=>[Sc(e),Ar(s)],([v,y])=>{if(f(),!v)return;const w=Slt(y)?{...y}:y;c.push(...r.flatMap(_=>o.map(N=>h(v,_,N,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return nd(g),g}function $lt(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function Olt(...t){let e,r,o={};t.length===3?(e=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],o=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:s=Mr,eventName:c="keydown",passive:f=!1,dedupe:h=!1}=o,d=$lt(e);return ps(s,c,v=>{v.repeat&&Ar(h)||d(v)&&r(v)},f)}function Dlt(){const t=Zt(!1);return Wl()&&ws(()=>{t.value=!0}),t}function hb(t){const e=Dlt();return xt(()=>(e.value,!!t()))}function db(t,e={}){const{window:r=Mr}=e,o=hb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Zt(!1),f=g=>{c.value=g.matches},h=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},d=Rh(()=>{o.value&&(h(),s=r.matchMedia(Ar(t)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return nd(()=>{d(),h(),s=void 0}),c}const Ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wa="__vueuse_ssr_handlers__",Rlt=zlt();function zlt(){return Wa in Ba||(Ba[Wa]=Ba[Wa]||{}),Ba[Wa]}function pb(t,e){return Rlt[t]||e}function Ilt(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Flt={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},cm="vueuse-storage";function gb(t,e,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:y=Mr,eventFilter:w,onError:_=nt=>{console.error(nt)},initOnMounted:N}=o,L=(v?bs:Zt)(typeof e=="function"?e():e);if(!r)try{r=pb("getDefaultStorage",()=>{var nt;return(nt=Mr)==null?void 0:nt.localStorage})()}catch(nt){_(nt)}if(!r)return L;const A=Ar(e),T=Ilt(A),M=(s=o.serializer)!=null?s:Flt[T],{pause:$,resume:E}=fb(L,()=>H(L.value),{flush:c,deep:f,eventFilter:w});return y&&h&&id(()=>{ps(y,"storage",Y),ps(y,cm,ct),N&&Y()}),N||Y(),L;function H(nt){try{if(nt==null)r.removeItem(t);else{const rt=M.write(nt),dt=r.getItem(t);dt!==rt&&(r.setItem(t,rt),y&&y.dispatchEvent(new CustomEvent(cm,{detail:{key:t,oldValue:dt,newValue:rt,storageArea:r}})))}}catch(rt){_(rt)}}function K(nt){const rt=nt?nt.newValue:r.getItem(t);if(rt==null)return d&&A!==null&&r.setItem(t,M.write(A)),A;if(!nt&&g){const dt=M.read(rt);return typeof g=="function"?g(dt,A):T==="object"&&!Array.isArray(dt)?{...A,...dt}:dt}else return typeof rt!="string"?rt:M.read(rt)}function ct(nt){Y(nt.detail)}function Y(nt){if(!(nt&&nt.storageArea!==r)){if(nt&&nt.key==null){L.value=A;return}if(!(nt&&nt.key!==t)){$();try{(nt==null?void 0:nt.newValue)!==M.write(L.value)&&(L.value=K(nt))}catch(rt){_(rt)}finally{nt?Kr(E):E()}}}}}function Hlt(t){return db("(prefers-color-scheme: dark)",t)}function qlt(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:s=Mr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g,disableTransition:v=!0}=t,y={auto:"",light:"light",dark:"dark",...t.modes||{}},w=Hlt({window:s}),_=xt(()=>w.value?"dark":"light"),N=d||(f==null?Tlt(o):gb(f,o,c,{window:s,listenToStorageChanges:h})),L=xt(()=>N.value==="auto"?_.value:N.value),A=pb("updateHTMLAttrs",(E,H,K)=>{const ct=typeof E=="string"?s==null?void 0:s.document.querySelector(E):Sc(E);if(!ct)return;let Y;if(v&&(Y=s.document.createElement("style"),Y.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(Y)),H==="class"){const nt=K.split(/\s/g);Object.values(y).flatMap(rt=>(rt||"").split(/\s/g)).filter(Boolean).forEach(rt=>{nt.includes(rt)?ct.classList.add(rt):ct.classList.remove(rt)})}else ct.setAttribute(H,K);v&&(s.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function T(E){var H;A(e,r,(H=y[E])!=null?H:E)}function M(E){t.onChanged?t.onChanged(E,T):T(E)}Ie(L,M,{flush:"post",immediate:!0}),id(()=>M(L.value));const $=xt({get(){return g?N.value:L.value},set(E){N.value=E}});try{return Object.assign($,{store:N,system:_,state:L})}catch{return $}}function Blt(t={}){const{valueDark:e="dark",valueLight:r=""}=t,o=qlt({...t,onChanged:(c,f)=>{var h;t.onChanged?(h=t.onChanged)==null||h.call(t,c==="dark",f,c):f(c)},modes:{dark:e,light:r}});return xt({get(){return o.value==="dark"},set(c){const f=c?"dark":"light";o.system.value===f?o.value="auto":o.value=f}})}function Wlt(t,e,r={}){const{window:o=Mr,...s}=r;let c;const f=hb(()=>o&&"ResizeObserver"in o),h=()=>{c&&(c.disconnect(),c=void 0)},d=xt(()=>Array.isArray(t)?t.map(y=>Sc(y)):[Sc(t)]),g=Ie(d,y=>{if(h(),f.value&&o){c=new ResizeObserver(e);for(const w of y)w&&c.observe(w,s)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{h(),g()};return nd(v),{isSupported:f,stop:v}}function um(t,e,r={}){const{window:o=Mr}=r;return gb(t,e,o==null?void 0:o.localStorage,r)}function Ult(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=Mr}=e;if(!f)return Sr(r);const h=Sr({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",M=T.indexOf("?");return M>0?T.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const M=T.toString();if(t==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const $=f.location.hash||"#",E=$.indexOf("?");return E>0?`${$.slice(0,E)}${M?`?${M}`:""}`:`${$}${M?`?${M}`:""}`}function v(){return new URLSearchParams(d())}function y(T){const M=new Set(Object.keys(h));for(const $ of T.keys()){const E=T.getAll($);h[$]=E.length>1?E:T.get($)||"",M.delete($)}Array.from(M).forEach($=>delete h[$])}const{pause:w,resume:_}=fb(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(M=>{const $=h[M];Array.isArray($)?$.forEach(E=>T.append(M,E)):o&&$==null||s&&!$?T.delete(M):T.set(M,$)}),N(T)},{deep:!0});function N(T,M){w(),M&&y(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),_()}function L(){c&&N(v(),!0)}ps(f,"popstate",L,!1),t!=="history"&&ps(f,"hashchange",L,!1);const A=v();return A.keys().next().value?y(A):Object.assign(h,r),h}function jlt(t={}){const{window:e=Mr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0}=t,f=Zt(r),h=Zt(o),d=()=>{e&&(c?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(d(),id(d),ps("resize",d,{passive:!0}),s){const g=db("(orientation: portrait)");Ie(g,()=>d())}return{width:f,height:h}}const vb=Ult("hash",{initialValue:{file:"",view:null}}),xr=Nh(vb,"file"),nr=Nh(vb,"view");var In=Uint8Array,Xo=Uint16Array,Glt=Int32Array,mb=new In([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yb=new In([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vlt=new In([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bb=function(t,e){for(var r=new Xo(31),o=0;o<31;++o)r[o]=e+=1<>1|(xe&21845)<<1;gi=(gi&52428)>>2|(gi&13107)<<2,gi=(gi&61680)>>4|(gi&3855)<<4,ih[xe]=((gi&65280)>>8|(gi&255)<<8)>>1}var bl=function(t,e,r){for(var o=t.length,s=0,c=new Xo(e);s>d]=g}else for(h=new Xo(o),s=0;s>15-t[s]);return h},Gl=new In(288);for(var xe=0;xe<144;++xe)Gl[xe]=8;for(var xe=144;xe<256;++xe)Gl[xe]=9;for(var xe=256;xe<280;++xe)Gl[xe]=7;for(var xe=280;xe<288;++xe)Gl[xe]=8;var _b=new In(32);for(var xe=0;xe<32;++xe)_b[xe]=5;var Zlt=bl(Gl,9,1),Qlt=bl(_b,5,1),yf=function(t){for(var e=t[0],r=1;re&&(e=t[r]);return e},rr=function(t,e,r){var o=e/8|0;return(t[o]|t[o+1]<<8)>>(e&7)&r},bf=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},Jlt=function(t){return(t+7)/8|0},Sb=function(t,e,r){return(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length),new In(t.subarray(e,r))},tat=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Tn=function(t,e,r){var o=new Error(e||tat[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,Tn),!r)throw o;return o},od=function(t,e,r,o){var s=t.length,c=o?o.length:0;if(!s||e.f&&!e.l)return r||new In(0);var f=!r,h=f||e.i!=2,d=e.i;f&&(r=new In(s*3));var g=function(Et){var R=r.length;if(Et>R){var I=new In(Math.max(R*2,Et));I.set(r),r=I}},v=e.f||0,y=e.p||0,w=e.b||0,_=e.l,N=e.d,L=e.m,A=e.n,T=s*8;do{if(!_){v=rr(t,y,1);var M=rr(t,y+1,3);if(y+=3,M)if(M==1)_=Zlt,N=Qlt,L=9,A=5;else if(M==2){var K=rr(t,y,31)+257,ct=rr(t,y+10,15)+4,Y=K+rr(t,y+5,31)+1;y+=14;for(var nt=new In(Y),rt=new In(19),dt=0;dt>4;if($<16)nt[dt++]=$;else{var F=0,B=0;for($==16?(B=3+rr(t,y,3),y+=2,F=nt[dt-1]):$==17?(B=3+rr(t,y,7),y+=3):$==18&&(B=11+rr(t,y,127),y+=7);B--;)nt[dt++]=F}}var Q=nt.subarray(0,K),yt=nt.subarray(K);L=yf(Q),A=yf(yt),_=bl(Q,L,1),N=bl(yt,A,1)}else Tn(1);else{var $=Jlt(y)+4,E=t[$-4]|t[$-3]<<8,H=$+E;if(H>s){d&&Tn(0);break}h&&g(w+E),r.set(t.subarray($,H),w),e.b=w+=E,e.p=y=H*8,e.f=v;continue}if(y>T){d&&Tn(0);break}}h&&g(w+131072);for(var At=(1<>4;if(y+=F&15,y>T){d&&Tn(0);break}if(F||Tn(2),Jt<256)r[w++]=Jt;else if(Jt==256){qt=y,_=null;break}else{var Qt=Jt-254;if(Jt>264){var dt=Jt-257,Vt=mb[dt];Qt=rr(t,y,(1<>4;Tt||Tn(3),y+=Tt&15;var yt=Ylt[j];if(j>3){var Vt=yb[j];yt+=bf(t,y)&(1<T){d&&Tn(0);break}h&&g(w+131072);var it=w+Qt;if(w>3&1)+(e>>4&1);o>0;o-=!t[r++]);return r+(e&2)},rat=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},iat=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Tn(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Tn(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function oat(t,e){return od(t,{i:2},e&&e.out,e&&e.dictionary)}function sat(t,e){var r=nat(t);return r+8>t.length&&Tn(6,"invalid gzip data"),od(t.subarray(r,-8),{i:2},e&&e.out||new In(rat(t)),e&&e.dictionary)}function lat(t,e){return od(t.subarray(iat(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function aat(t,e){return t[0]==31&&t[1]==139&&t[2]==8?sat(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?oat(t,e):lat(t,e)}var oh=typeof TextDecoder<"u"&&new TextDecoder,cat=0;try{oh.decode(eat,{stream:!0}),cat=1}catch{}var uat=function(t){for(var e="",r=0;;){var o=t[r++],s=(o>127)+(o>223)+(o>239);if(r+s>t.length)return{s:e,r:Sb(t,r-1)};s?s==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,e+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?e+=String.fromCharCode((o&31)<<6|t[r++]&63):e+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):e+=String.fromCharCode(o)}};function fat(t,e){if(e){for(var r="",o=0;o{},hn=()=>Promise.resolve();function hat(){const t=Sr({state:new Py,waitForConnection:f,reconnect:s,ws:new EventTarget});t.state.filesMap=Sr(t.state.filesMap),t.state.idMap=Sr(t.state.idMap);let e;const r={getFiles:()=>e.files,getPaths:()=>e.paths,getConfig:()=>e.config,getModuleGraph:async h=>e.moduleGraph[h],getUnhandledErrors:()=>e.unhandledErrors,getTransformResult:async h=>({code:h,source:"",map:null}),onDone:wf,onCollected:hn,onTaskUpdate:wf,writeFile:hn,rerun:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:hn,removeSnapshotFile:hn,onUnhandledError:wf,saveTestFile:hn,getProvidedContext:()=>({})};t.rpc=r;let o;function s(){c()}async function c(){var v;const h=await fetch(window.METADATA_PATH),d=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const y=new Uint8Array(await h.arrayBuffer()),w=fat(aat(y));e=eh(w)}else e=eh(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}c();function f(){return o}return t}const Dl=Zt("idle"),xi=Zt([]),De=function(){return Xr?hat():ST(TT,{reactive:Sr,handlers:{onTaskUpdate(){Dl.value="running"},onFinished(e,r){Dl.value="idle",xi.value=(r||[]).map(lb)},onFinishedReportCoverage(){const e=document.querySelector("iframe#vitest-ui-coverage");e instanceof HTMLIFrameElement&&e.contentWindow&&e.contentWindow.location.reload()}}})}();function dat(t,e){return t.name.localeCompare(e.name)}const sd=bs({}),ro=Zt("CONNECTING"),mn=xt(()=>De.state.getFiles().sort(dat)),Se=xt(()=>mn.value.find(t=>t.id===xr.value)),kb=xt(()=>Qh(Se.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function kc(t){return mn.value.find(e=>e.id===t)}const pat=xt(()=>ro.value==="OPEN"),xf=xt(()=>ro.value==="CONNECTING");xt(()=>ro.value==="CLOSED");function gat(t=De.state.getFiles()){return Cb(t)}function Cb(t){return t.forEach(e=>{delete e.result,Qh(e).forEach(r=>delete r.result)}),De.rpc.rerun(t.map(e=>e.filepath))}function vat(){if(Se.value)return Cb([Se.value])}Ie(()=>De.ws,t=>{ro.value=Xr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{ro.value="OPEN",De.state.filesMap.clear();const[e,r,o]=await Promise.all([De.rpc.getFiles(),De.rpc.getConfig(),De.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await De.rpc.getTestFiles()).map(([f,h])=>{const d=Ny(r.root,h);return{filepath:h,name:d,id:xT(`${d}${f||""}`),mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:f}});De.state.collectFiles(c)}else De.state.collectFiles(e);xi.value=(o||[]).map(lb),sd.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{ro.value==="CONNECTING"&&(ro.value="CLOSED")},1e3)})},{immediate:!0});const mat={"text-2xl":""},yat=tt("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),bat=fe({__name:"ConnectionOverlay",setup(t){return(e,r)=>U(pat)?Gt("",!0):(st(),St("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>U(De).reconnect&&U(De).reconnect(...o))},[tt("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ge(U(xf)?"animate-pulse":"")},[tt("div",{text:"5xl",class:ge(U(xf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),tt("div",mat,Ut(U(xf)?"Connecting...":"Disconnected"),1),yat],2)]))}});function wl(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Vl=Blt(),wat=Alt(Vl),xat={class:"scrolls scrolls-rounded task-error"},_at=["onClickPassive"],Sat=["innerHTML"],kat=fe({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const e=t;function r(f){return f.startsWith(e.root)?f.slice(e.root.length):f}const o=xt(()=>ed(Vl.value)),s=xt(()=>{var f;return!!((f=e.error)!=null&&f.diff)}),c=xt(()=>e.error.diff?o.value.toHtml(wl(e.error.diff)):void 0);return(f,h)=>{const d=vo("tooltip");return st(),St("div",xat,[tt("pre",null,[tt("b",null,Ut(f.error.name||f.error.nameStr),1),me(": "+Ut(f.error.message),1)]),(st(!0),St(ne,null,Rn(f.error.stacks,(g,v)=>(st(),St("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[tt("pre",null," - "+Ut(r(g.file))+":"+Ut(g.line)+":"+Ut(g.column),1),U(blt)(g.file,f.filename)?nn((st(),St("div",{key:0,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(sb)(g.file,g.line,g.column)},null,40,_at)),[[d,"Open in Editor",void 0,{bottom:!0}]]):Gt("",!0)]))),128)),U(s)?(st(),St("pre",{key:0,"data-testid":"diff",innerHTML:U(c)},null,8,Sat)):Gt("",!0)])}}}),Cat=mo(kat,[["__scopeId","data-v-ffc45ddf"]]),Tat={"h-full":"",class:"scrolls"},Eat={key:0,class:"scrolls scrolls-rounded task-error"},Lat=["innerHTML"],Aat={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Mat=fe({__name:"ViewReport",props:{file:{}},setup(t){const e=t;function r(f,h){var d;return((d=f.result)==null?void 0:d.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:h}]:[{...f,level:h},...f.tasks.flatMap(g=>r(g,h+1))]}function o(f,h){var v,y,w;let d="";(v=h.message)!=null&&v.includes("\x1B")&&(d=`${h.nameStr||h.name}: ${f.toHtml(wl(h.message))}`);const g=(y=h.stackStr)==null?void 0:y.includes("\x1B");return(g||(w=h.stack)!=null&&w.includes("\x1B"))&&(d.length>0?d+=f.toHtml(wl(g?h.stackStr:h.stack)):d=`${h.nameStr||h.name}: ${h.message}${f.toHtml(wl(g?h.stackStr:h.stack))}`),d.length>0?d:null}function s(f,h){const d=ed(f);return h.map(g=>{var w;const v=g.result;if(!v)return g;const y=(w=v.errors)==null?void 0:w.map(_=>o(d,_)).filter(_=>_!=null).join("

");return y!=null&&y.length&&(v.htmlError=y),g})}const c=xt(()=>{var v,y;const f=e.file,h=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(w=>r(w,0)))??[],d=f==null?void 0:f.result;if((y=d==null?void 0:d.errors)==null?void 0:y[0]){const w={id:f.id,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:d};h.unshift(w)}return h.length>0?s(Vl.value,h):h});return(f,h)=>(st(),St("div",Tat,[U(c).length?(st(!0),St(ne,{key:0},Rn(U(c),d=>{var g,v,y;return st(),St("div",{key:d.id},[tt("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:An({"margin-left":`${(g=d.result)!=null&&g.htmlError?.5:2*d.level+.5}rem`})},[me(Ut(d.name)+" ",1),(v=d.result)!=null&&v.htmlError?(st(),St("div",Eat,[tt("pre",{innerHTML:d.result.htmlError},null,8,Lat)])):(y=d.result)!=null&&y.errors?(st(!0),St(ne,{key:1},Rn(d.result.errors,(w,_)=>{var N;return st(),te(Cat,{key:_,error:w,filename:(N=f.file)==null?void 0:N.name,root:U(sd).root},null,8,["error","filename","root"])}),128)):Gt("",!0)],4)])}),128)):(st(),St("div",Aat," All tests passed in this file "))]))}}),Nat=mo(Mat,[["__scopeId","data-v-5e7bb715"]]),Pat={border:"b base","p-4":""},$at=["innerHTML"],Oat=fe({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function e(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(st(),St("div",Pat,[tt("div",{"text-xs":"","mb-1":"",class:ge(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ut(e(r.time))+" | "+Ut(r.taskName)+" | "+Ut(r.type),3),tt("pre",{"data-type":"html",innerHTML:r.content},null,8,$at)]))}}),Cc=xt(()=>mn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Tc=xt(()=>mn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),ld=xt(()=>mn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));xt(()=>mn.value.filter(t=>!Cc.value.includes(t)&&!Tc.value.includes(t)&&!ld.value.includes(t)));xt(()=>ld.value.filter(t=>t.mode==="skip"));const fm=xt(()=>mn.value.filter(tu));xt(()=>ld.value.filter(t=>t.mode==="todo"));const Dat=xt(()=>Dl.value==="idle"),ru=xt(()=>Ab(mn.value)),Tb=xt(()=>ru.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Eb=xt(()=>ru.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Lb=xt(()=>ru.value.filter(t=>t.mode==="skip"||t.mode==="todo")),Rat=xt(()=>Lb.value.filter(t=>t.mode==="skip")),zat=xt(()=>Lb.value.filter(t=>t.mode==="todo"));xt(()=>Tb.value.length+Eb.value.length);const Iat=xt(()=>{const t=mn.value.reduce((e,r)=>{var o;return e+=Math.max(0,r.collectDuration||0),e+=Math.max(0,r.setupDuration||0),e+=Math.max(0,((o=r.result)==null?void 0:o.duration)||0),e+=Math.max(0,r.environmentLoad||0),e+=Math.max(0,r.prepareDuration||0),e},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function Fat(t){return t=t||[],Array.isArray(t)?t:[t]}function hm(t){return t.type==="test"||t.type==="custom"}function Ab(t){const e=[],r=Fat(t);for(const o of r)if(hm(o))e.push(o);else for(const s of o.tasks)if(hm(s))e.push(s);else{const c=Ab(s);for(const f of c)e.push(f)}return e}const Hat={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},qat={key:1,p6:""},Bat=tt("pre",{inline:""},"console.log(foo)",-1),Wat=fe({__name:"ViewConsoleOutput",setup(t){const e=xt(()=>{const o=kb.value;if(o){const s=ed(Vl.value);return o.map(({taskId:c,type:f,time:h,content:d})=>({taskId:c,type:f,time:h,content:s.toHtml(wl(d))}))}});function r(o){const s=o&&De.state.idMap.get(o);return(s?_T(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Oat;return(f=U(e))!=null&&f.length?(st(),St("div",Hat,[(st(!0),St(ne,null,Rn(U(e),({taskId:h,type:d,time:g,content:v})=>(st(),St("div",{key:h,"font-mono":""},[Ft(c,{"task-name":r(h),type:d,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(st(),St("p",qat,[me(" Log something in your test and it would print here. (e.g. "),Bat,me(") ")]))}}});var _f={exports:{}},dm;function xs(){return dm||(dm=1,function(t,e){(function(r,o){t.exports=o()})(uo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),d=c||f||h,g=d&&(c?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),w=!h&&/Chrome\/(\d+)/.exec(r),_=w&&+w[1],N=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),M=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),$=/Android/.test(r),E=M||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),H=M||/Mac/.test(o),K=/\bCrOS\b/.test(r),ct=/win/i.test(o),Y=N&&r.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(N=!1,v=!0);var nt=H&&(y||N&&(Y==null||Y<12.11)),rt=s||d&&g>=9;function dt(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var ht=function(n,i){var a=n.className,l=dt(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function G(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function z(n,i){return G(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var p=0;p=i)return m+(i-p);m+=b-p,m+=a-m%a,p=b+1}}var Mt=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};Mt.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Mt.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a=i)return l+Math.min(m,i-u);if(u+=p-l,u+=a-u%a,l=p+1,u>=i)return l}}var kt=[""];function mt(n){for(;kt.length<=n;)kt.push(ut(kt)+" ");return kt[n]}function ut(n){return n[n.length-1]}function pt(n,i){for(var a=[],l=0;l"€"&&(n.toUpperCase()!=n.toLowerCase()||Bt.test(n))}function re(n,i){return i?i.source.indexOf("\\w")>-1&&Kt(n)?!0:i.test(n):Kt(n)}function oe(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var he=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(n){return n.charCodeAt(0)>=768&&he.test(n)}function rn(n,i,a){for(;(a<0?i>0:ia?-1:1;;){if(i==a)return i;var u=(i+a)/2,p=l<0?Math.ceil(u):Math.floor(u);if(p==i)return n(p)?i:a;n(p)?a=p:i=p+l}}function wn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,p=0;pi||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",p),u=!0)}u||l(i,a,"ltr")}var hr=null;function Ae(n,i,a){var l;hr=null;for(var u=0;ui)return u;p.to==i&&(p.from!=p.to&&a=="before"?l=u:hr=u),p.from==i&&(p.from!=p.to&&a!="before"?l=u:hr=u)}return l??hr}var xn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,p=/[LRr]/,m=/[Lb1n]/,b=/[1n]/;function x(S,P,D){this.level=S,this.from=P,this.to=D}return function(S,P){var D=P=="ltr"?"L":"R";if(S.length==0||P=="ltr"&&!l.test(S))return!1;for(var W=S.length,q=[],Z=0;Z-1&&(l[i]=u.slice(0,p).concat(u.slice(p+1)))}}}function ke(n,i){var a=Pr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u0}function Vn(n){n.prototype.on=function(i,a){Rt(this,i,a)},n.prototype.off=function(i,a){Ke(this,i,a)}}function Xe(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function bo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function on(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Qr(n){Xe(n),bo(n)}function Ss(n){return n.target||n.srcElement}function Kn(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),H&&n.ctrlKey&&i==1&&(i=3),i}var lu=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),wo;function Ql(n){if(wo==null){var i=k("span","​");z(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(wo=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var a=wo?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ks;function Jr(n){if(ks!=null)return ks;var i=z(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return G(n),!a||a.left==a.right?!1:ks=l.right-a.right<3}var qn=` b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(` `,i);u==-1&&(u=n.length);var p=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=p.indexOf("\r");m!=-1?(a.push(p.slice(0,m)),i+=m+1):(a.push(p),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},ti=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Jl=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Xn=null;function au(n){if(Xn!=null)return Xn;var i=z(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return Xn=Math.abs(a.left-l.left)>1}var xo={},Yn={};function Zn(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),xo[n]=i}function Ri(n,i){Yn[n]=i}function _o(n){if(typeof n=="string"&&Yn.hasOwnProperty(n))n=Yn[n];else if(n&&typeof n.name=="string"&&Yn.hasOwnProperty(n.name)){var i=Yn[n.name];typeof i=="string"&&(i={name:i}),n=Ot(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return _o("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return _o("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function So(n,i){i=_o(i);var a=xo[i.name];if(!a)return So(n,"text/plain");var l=a(n,i);if(ei.hasOwnProperty(i.name)){var u=ei[i.name];for(var p in u)u.hasOwnProperty(p)&&(l.hasOwnProperty(p)&&(l["_"+p]=l[p]),l[p]=u[p])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var ei={};function ko(n,i){var a=ei.hasOwnProperty(n)?ei[n]:ei[n]={};it(i,a)}function dr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Cs(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Co(n,i,a){return n.startState?n.startState(i,a):!0}var Te=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Te.prototype.eol=function(){return this.pos>=this.string.length},Te.prototype.sol=function(){return this.pos==this.lineStart},Te.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Te.prototype.next=function(){if(this.posi},Te.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Te.prototype.skipToEnd=function(){this.pos=this.string.length},Te.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Te.prototype.backUp=function(n){this.pos-=n},Te.prototype.column=function(){return this.lastColumnPos0?null:(p&&i!==!1&&(this.pos+=p[0].length),p)}},Te.prototype.current=function(){return this.string.slice(this.start,this.pos)},Te.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Te.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Te.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pt(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],p=u.chunkSize();if(i=n.first&&ia?X(a,Pt(n,a).text.length):mw(i,Pt(n,i.line).text.length)}function mw(n,i){var a=n.ch;return a==null||a>i?X(n.line,i):a<0?X(n.line,0):n}function _d(n,i){for(var a=[],l=0;lthis.maxLookAhead&&(this.maxLookAhead=n),i},pr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pr.fromSaved=function(n,i,a){return i instanceof ta?new pr(n,dr(n.mode,i.state),a,i.lookAhead):new pr(n,dr(n.mode,i),a)},pr.prototype.save=function(n){var i=n!==!1?dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ta(i,this.maxLookAhead):i};function Sd(n,i,a,l){var u=[n.state.modeGen],p={};Ad(n,i.text,n.doc.mode,a,function(S,P){return u.push(S,P)},p,l);for(var m=a.state,b=function(S){a.baseTokens=u;var P=n.state.overlays[S],D=1,W=0;a.state=!0,Ad(n,i.text,P.mode,a,function(q,Z){for(var ot=D;Wq&&u.splice(D,1,q,u[D+1],vt),D+=2,W=Math.min(q,vt)}if(Z)if(P.opaque)u.splice(ot,D-ot,q,"overlay "+Z),D=ot+2;else for(;otn.options.maxHighlightLength&&dr(n.doc.mode,l.state),p=Sd(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=p.styles,p.classes?i.styleClasses=p.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Es(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new pr(l,!0,i);var p=yw(n,i,a),m=p>l.first&&Pt(l,p-1).stateAfter,b=m?pr.fromSaved(l,m,p):new pr(l,Co(l.mode),p);return l.iter(p,i,function(x){cu(n,x.text,b);var S=b.line;x.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&Si.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var Td=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Ed(n,i,a,l){var u=n.doc,p=u.mode,m;i=Wt(u,i);var b=Pt(u,i.line),x=Es(n,i.line,a),S=new Te(b.text,n.options.tabSize,x),P;for(l&&(P=[]);(l||S.posn.options.maxHighlightLength?(b=!1,m&&cu(n,i,l,P.pos),P.pos=i.length,D=null):D=Ld(uu(a,P,l.state,W),p),W){var q=W[0].name;q&&(D="m-"+(D?q+" "+D:q))}if(!b||S!=D){for(;xm;--b){if(b<=p.first)return p.first;var x=Pt(p,b-1),S=x.stateAfter;if(S&&(!a||b+(S instanceof ta?S.lookAhead:0)<=p.modeFrontier))return b;var P=at(x.text,null,n.options.tabSize);(u==null||l>P)&&(u=b-1,l=P)}return u}function bw(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontiera;l--){var u=Pt(n,l).stateAfter;if(u&&(!(u instanceof ta)||l+u.lookAhead=i:p.to>i);(l||(l=[])).push(new ea(m,p.from,x?null:p.to))}}return l}function Cw(n,i,a){var l;if(n)for(var u=0;u=i:p.to>i);if(b||p.from==i&&m.type=="bookmark"&&(!a||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from0&&b)for(var Lt=0;Lt0)){var P=[x,1],D=_t(S.from,b.from),W=_t(S.to,b.to);(D<0||!m.inclusiveLeft&&!D)&&P.push({from:S.from,to:b.from}),(W>0||!m.inclusiveRight&&!W)&&P.push({from:b.to,to:S.to}),u.splice.apply(u,P),x+=P.length-3}}return u}function Pd(n){var i=n.markedSpans;if(i){for(var a=0;ai)&&(!l||hu(l,p.marker)<0)&&(l=p.marker)}return l}function Rd(n,i,a,l,u){var p=Pt(n,i),m=Or&&p.markedSpans;if(m)for(var b=0;b=0&&D<=0||P<=0&&D>=0)&&(P<=0&&(x.marker.inclusiveRight&&u.inclusiveLeft?_t(S.to,a)>=0:_t(S.to,a)>0)||P>=0&&(x.marker.inclusiveRight&&u.inclusiveLeft?_t(S.from,l)<=0:_t(S.from,l)<0)))return!0}}}function Qn(n){for(var i;i=Dd(n);)n=i.find(-1,!0).line;return n}function Lw(n){for(var i;i=ia(n);)n=i.find(1,!0).line;return n}function Aw(n){for(var i,a;i=ia(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function du(n,i){var a=Pt(n,i),l=Qn(a);return a==l?i:C(l)}function zd(n,i){if(i>n.lastLine())return i;var a=Pt(n,i),l;if(!ni(n,a))return i;for(;l=ia(a);)a=l.find(1,!0).line;return C(a)+1}function ni(n,i){var a=Or&&i.markedSpans;if(a){for(var l=void 0,u=0;ui.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Eo=function(n,i,a){this.text=n,$d(this,i),this.height=a?a(this):1};Eo.prototype.lineNo=function(){return C(this)},Vn(Eo);function Mw(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Pd(n),$d(n,a);var u=l?l(n):1;u!=n.height&&$n(n,u)}function Nw(n){n.parent=null,Pd(n)}var Pw={},$w={};function Id(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?$w:Pw;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Fd(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var p=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=Dw,Jr(n.display.measure)&&(m=Yt(p,n.doc.direction))&&(l.addToken=zw(l.addToken,m)),l.map=[];var b=i!=n.display.externalMeasured&&C(p);Iw(p,l,kd(n,p,b)),p.styleClasses&&(p.styleClasses.bgClass&&(l.bgClass=Ht(p.styleClasses.bgClass,l.bgClass||"")),p.styleClasses.textClass&&(l.textClass=Ht(p.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ql(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=l.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ke(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Ht(l.pre.className,l.textClass||"")),l}function Ow(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Dw(n,i,a,l,u,p,m){if(i){var b=n.splitSpaces?Rw(i,n.trailingSpace):i,x=n.cm.state.specialChars,S=!1,P;if(!x.test(i))n.col+=i.length,P=document.createTextNode(b),n.map.push(n.pos,n.pos+i.length,P),d&&g<9&&(S=!0),n.pos+=i.length;else{P=document.createDocumentFragment();for(var D=0;;){x.lastIndex=D;var W=x.exec(i),q=W?W.index-D:i.length-D;if(q){var Z=document.createTextNode(b.slice(D,D+q));d&&g<9?P.appendChild(k("span",[Z])):P.appendChild(Z),n.map.push(n.pos,n.pos+q,Z),n.col+=q,n.pos+=q}if(!W)break;D+=q+1;var ot=void 0;if(W[0]==" "){var vt=n.cm.options.tabSize,bt=vt-n.col%vt;ot=P.appendChild(k("span",mt(bt),"cm-tab")),ot.setAttribute("role","presentation"),ot.setAttribute("cm-text"," "),n.col+=bt}else W[0]=="\r"||W[0]==` `?(ot=P.appendChild(k("span",W[0]=="\r"?"␍":"␤","cm-invalidchar")),ot.setAttribute("cm-text",W[0]),n.col+=1):(ot=n.cm.options.specialCharPlaceholder(W[0]),ot.setAttribute("cm-text",W[0]),d&&g<9?P.appendChild(k("span",[ot])):P.appendChild(ot),n.col+=1);n.map.push(n.pos,n.pos+1,ot),n.pos++}}if(n.trailingSpace=b.charCodeAt(i.length-1)==32,a||l||u||S||p||m){var Ct=a||"";l&&(Ct+=l),u&&(Ct+=u);var wt=k("span",[P],Ct,p);if(m)for(var Lt in m)m.hasOwnProperty(Lt)&&Lt!="style"&&Lt!="class"&&wt.setAttribute(Lt,m[Lt]);return n.content.appendChild(wt)}n.content.appendChild(P)}}function Rw(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;uS&&D.from<=S));W++);if(D.to>=P)return n(a,l,u,p,m,b,x);n(a,l.slice(0,D.to-S),u,p,null,b,x),p=null,l=l.slice(D.to-S),S=D.to}}}function Hd(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function Iw(n,i,a){var l=n.markedSpans,u=n.text,p=0;if(!l){for(var m=1;mx||Xt.collapsed&&$t.to==x&&$t.from==x)){if($t.to!=null&&$t.to!=x&&q>$t.to&&(q=$t.to,ot=""),Xt.className&&(Z+=" "+Xt.className),Xt.css&&(W=(W?W+";":"")+Xt.css),Xt.startStyle&&$t.from==x&&(vt+=" "+Xt.startStyle),Xt.endStyle&&$t.to==q&&(Lt||(Lt=[])).push(Xt.endStyle,$t.to),Xt.title&&((Ct||(Ct={})).title=Xt.title),Xt.attributes)for(var ve in Xt.attributes)(Ct||(Ct={}))[ve]=Xt.attributes[ve];Xt.collapsed&&(!bt||hu(bt.marker,Xt)<0)&&(bt=$t)}else $t.from>x&&q>$t.from&&(q=$t.from)}if(Lt)for(var Ue=0;Ue=b)break;for(var kn=Math.min(b,q);;){if(P){var cn=x+P.length;if(!bt){var Ne=cn>kn?P.slice(0,kn-x):P;i.addToken(i,Ne,D?D+Z:Z,vt,x+Ne.length==q?ot:"",W,Ct)}if(cn>=kn){P=P.slice(kn-x),x=kn;break}x=cn,vt=""}P=u.slice(p,p=a[S++]),D=Id(a[S++],i.cm.options)}}}function qd(n,i,a){this.line=i,this.rest=Aw(i),this.size=this.rest?C(ut(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ni(n,i)}function sa(n,i,a){for(var l=[],u,p=i;p2&&p.push((x.bottom+S.top)/2-a.top)}}p.push(a.bottom-a.top)}}function Kd(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;la)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Xw(n,i){i=Qn(i);var a=C(i),l=n.display.externalMeasured=new qd(n.doc,i,a);l.lineN=a;var u=l.built=Fd(n,l);return l.text=u.pre,z(n.display.lineMeasure,u.pre),l}function Xd(n,i,a,l){return vr(n,Ao(n,i),a,l)}function bu(n,i){if(i>=n.display.viewFrom&&i=a.lineN&&ii)&&(p=x-b,u=p-1,i>=x&&(m="right")),u!=null){if(l=n[S+2],b==x&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&u==x-b)for(;S=0&&(a=n[u]).left==a.right;u--);return a}function Zw(n,i,a,l){var u=Zd(i.map,a,l),p=u.node,m=u.start,b=u.end,x=u.collapse,S;if(p.nodeType==3){for(var P=0;P<4;P++){for(;m&&se(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+b0&&(x=l="right");var D;n.options.lineWrapping&&(D=p.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!S||!S.left&&!S.right)){var W=p.parentNode.getClientRects()[0];W?S={left:W.left,right:W.left+No(n.display),top:W.top,bottom:W.bottom}:S=Yd}for(var q=S.top-i.rect.top,Z=S.bottom-i.rect.top,ot=(q+Z)/2,vt=i.view.measure.heights,bt=0;bt=l.text.length?(x=l.text.length,S="before"):x<=0&&(x=0,S="after"),!b)return m(S=="before"?x-1:x,S=="before");function P(Z,ot,vt){var bt=b[ot],Ct=bt.level==1;return m(vt?Z-1:Z,Ct!=vt)}var D=Ae(b,x,S),W=hr,q=P(x,D,S=="before");return W!=null&&(q.other=P(x,W,S!="before")),q}function rp(n,i){var a=0;i=Wt(n.doc,i),n.options.lineWrapping||(a=No(n.display)*i.ch);var l=Pt(n.doc,i.line),u=Dr(l)+la(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function xu(n,i,a,l,u){var p=X(n,i,a);return p.xRel=u,l&&(p.outside=l),p}function _u(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return xu(l.first,0,null,-1,-1);var u=O(l,a),p=l.first+l.size-1;if(u>p)return xu(l.first+l.size-1,Pt(l,p).text.length,null,1,1);i<0&&(i=0);for(var m=Pt(l,u);;){var b=Jw(n,m,u,i,a),x=Ew(m,b.ch+(b.xRel>0||b.outside>0?1:0));if(!x)return b;var S=x.find(1);if(S.line==u)return S;m=Pt(l,u=S.line)}}function ip(n,i,a,l){l-=wu(i);var u=i.text.length,p=Pn(function(m){return vr(n,a,m-1).bottom<=l},u,0);return u=Pn(function(m){return vr(n,a,m).top>l},p,u),{begin:p,end:u}}function op(n,i,a,l){a||(a=Ao(n,i));var u=aa(n,i,vr(n,a,l),"line").top;return ip(n,i,a,u)}function Su(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Jw(n,i,a,l,u){u-=Dr(i);var p=Ao(n,i),m=wu(i),b=0,x=i.text.length,S=!0,P=Yt(i,n.doc.direction);if(P){var D=(n.options.lineWrapping?e1:t1)(n,i,a,p,P,l,u);S=D.level!=1,b=S?D.from:D.to-1,x=S?D.to:D.from-1}var W=null,q=null,Z=Pn(function(zt){var $t=vr(n,p,zt);return $t.top+=m,$t.bottom+=m,Su($t,l,u,!1)?($t.top<=u&&$t.left<=l&&(W=zt,q=$t),!0):!1},b,x),ot,vt,bt=!1;if(q){var Ct=l-q.left=Lt.bottom?1:0}return Z=rn(i.text,Z,1),xu(a,Z,vt,bt,l-ot)}function t1(n,i,a,l,u,p,m){var b=Pn(function(D){var W=u[D],q=W.level!=1;return Su(Jn(n,X(a,q?W.to:W.from,q?"before":"after"),"line",i,l),p,m,!0)},0,u.length-1),x=u[b];if(b>0){var S=x.level!=1,P=Jn(n,X(a,S?x.from:x.to,S?"after":"before"),"line",i,l);Su(P,p,m,!0)&&P.top>m&&(x=u[b-1])}return x}function e1(n,i,a,l,u,p,m){var b=ip(n,i,l,m),x=b.begin,S=b.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var P=null,D=null,W=0;W=S||q.to<=x)){var Z=q.level!=1,ot=vr(n,l,Z?Math.min(S,q.to)-1:Math.max(x,q.from)).right,vt=otvt)&&(P=q,D=vt)}}return P||(P=u[u.length-1]),P.fromS&&(P={from:P.from,to:S,level:P.level}),P}var Ii;function Mo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Ii==null){Ii=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ii.appendChild(document.createTextNode("x")),Ii.appendChild(k("br"));Ii.appendChild(document.createTextNode("x"))}z(n.measure,Ii);var a=Ii.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),G(n.measure),a||1}function No(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");z(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function ku(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var b=n.display.gutterSpecs[m].className;a[b]=p.offsetLeft+p.clientLeft+u,l[b]=p.clientWidth}return{fixedPos:Cu(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Cu(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function sp(n){var i=Mo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/No(n.display)-3);return function(u){if(ni(n.doc,u))return 0;var p=0;if(u.widgets)for(var m=0;m0&&(S=Pt(n.doc,x.line).text).length==x.ch){var P=at(S,S.length,n.options.tabSize)-S.length;x=X(x.line,Math.max(0,Math.round((p-Vd(n.display).left)/No(n.display))-P))}return x}function Hi(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;li)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Or&&du(n.doc,i)u.viewFrom?ii(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)ii(n);else if(i<=u.viewFrom){var p=ua(n,a,a+l,1);p?(u.view=u.view.slice(p.index),u.viewFrom=p.lineN,u.viewTo+=l):ii(n)}else if(a>=u.viewTo){var m=ua(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):ii(n)}else{var b=ua(n,i,i,-1),x=ua(n,a,a+l,1);b&&x?(u.view=u.view.slice(0,b.index).concat(sa(n,b.lineN,x.lineN)).concat(u.view.slice(x.index)),u.viewTo+=l):ii(n)}var S=u.externalMeasured;S&&(a=u.lineN&&i=l.viewTo)){var p=l.view[Hi(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Et(m,a)==-1&&m.push(a)}}}function ii(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function ua(n,i,a,l){var u=Hi(n,i),p,m=n.display.view;if(!Or||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var b=n.display.viewFrom,x=0;x0){if(u==m.length-1)return null;p=b+m[u].size-i,u++}else p=b-i;i+=p,a+=p}for(;du(n.doc,a)!=a;){if(u==(l<0?0:m.length-1))return null;a+=l*m[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function n1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=sa(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=sa(n,i,l.viewFrom).concat(l.view):l.viewFroma&&(l.view=l.view.slice(0,Hi(n,a)))),l.viewTo=a}function lp(n){for(var i=n.display.view,a=0,l=0;l=n.display.viewTo||x.to().line0?m:n.defaultCharWidth())+"px"}if(l.other){var b=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));b.style.display="",b.style.left=l.other.left+"px",b.style.top=l.other.top+"px",b.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function fa(n,i){return n.top-i.top||n.left-i.left}function r1(n,i,a){var l=n.display,u=n.doc,p=document.createDocumentFragment(),m=Vd(n.display),b=m.left,x=Math.max(l.sizerWidth,zi(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function P(wt,Lt,zt,$t){Lt<0&&(Lt=0),Lt=Math.round(Lt),$t=Math.round($t),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px; top: `+Lt+"px; width: "+(zt??x-wt)+`px; height: `+($t-Lt)+"px"))}function D(wt,Lt,zt){var $t=Pt(u,wt),Xt=$t.text.length,ve,Ue;function _e(Ne,un){return ca(n,X(wt,Ne),"div",$t,un)}function kn(Ne,un,Ge){var ze=op(n,$t,null,Ne),Pe=un=="ltr"==(Ge=="after")?"left":"right",Ee=Ge=="after"?ze.begin:ze.end-(/\s/.test($t.text.charAt(ze.end-1))?2:1);return _e(Ee,Pe)[Pe]}var cn=Yt($t,u.direction);return wn(cn,Lt||0,zt??Xt,function(Ne,un,Ge,ze){var Pe=Ge=="ltr",Ee=_e(Ne,Pe?"left":"right"),fn=_e(un-1,Pe?"right":"left"),Uo=Lt==null&&Ne==0,ui=zt==null&&un==Xt,Ze=ze==0,mr=!cn||ze==cn.length-1;if(fn.top-Ee.top<=3){var je=(S?Uo:ui)&&Ze,tf=(S?ui:Uo)&&mr,Fr=je?b:(Pe?Ee:fn).left,ji=tf?x:(Pe?fn:Ee).right;P(Fr,Ee.top,ji-Fr,Ee.bottom)}else{var Gi,tn,jo,ef;Pe?(Gi=S&&Uo&&Ze?b:Ee.left,tn=S?x:kn(Ne,Ge,"before"),jo=S?b:kn(un,Ge,"after"),ef=S&&ui&&mr?x:fn.right):(Gi=S?kn(Ne,Ge,"before"):b,tn=!S&&Uo&&Ze?x:Ee.right,jo=!S&&ui&&mr?b:fn.left,ef=S?kn(un,Ge,"after"):x),P(Gi,Ee.top,tn-Gi,Ee.bottom),Ee.bottom0?i.blinker=setInterval(function(){n.hasFocus()||Po(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function cp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Mu(n))}function Au(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Po(n))},100)}function Mu(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(ke(n,"focus",n,i),n.state.focused=!0,At(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Lu(n))}function Po(n,i){n.state.delayingBlurEvent||(n.state.focused&&(ke(n,"blur",n,i),n.state.focused=!1,ht(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ha(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m.005||q<-.005)&&(un.display.sizerWidth){var ot=Math.ceil(P/No(n.display));ot>n.display.maxLineLength&&(n.display.maxLineLength=ot,n.display.maxLine=b.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function up(n){if(n.widgets)for(var i=0;i=m&&(p=O(i,Dr(Pt(i,x))-n.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function i1(n,i){if(!Ce(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,p=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(u=!1),u!=null&&!T){var m=k("div","​",null,`position: absolute; top: `+(i.top-a.viewOffset-la(n.display))+`px; height: `+(i.bottom-i.top+gr(n)+a.barHeight)+`px; left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(u),n.display.lineSpace.removeChild(m)}}}function o1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?X(i.line,i.ch+1,"before"):i,i=i.ch?X(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,b=Jn(n,i),x=!a||a==i?b:Jn(n,a);u={left:Math.min(b.left,x.left),top:Math.min(b.top,x.top)-l,right:Math.max(b.left,x.left),bottom:Math.max(b.bottom,x.bottom)+l};var S=Nu(n,u),P=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(Ds(n,S.scrollTop),Math.abs(n.doc.scrollTop-P)>1&&(m=!0)),S.scrollLeft!=null&&(qi(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return u}function s1(n,i){var a=Nu(n,i);a.scrollTop!=null&&Ds(n,a.scrollTop),a.scrollLeft!=null&&qi(n,a.scrollLeft)}function Nu(n,i){var a=n.display,l=Mo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,p=yu(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var b=n.doc.height+mu(a),x=i.topb-l;if(i.topu+p){var P=Math.min(i.top,(S?b:i.bottom)-p);P!=u&&(m.scrollTop=P)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,W=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,q=zi(n)-a.gutters.offsetWidth,Z=i.right-i.left>q;return Z&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.leftq+W-3&&(m.scrollLeft=i.right+(Z?0:10)-q),m}function Pu(n,i){i!=null&&(pa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function $o(n){pa(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Os(n,i,a){(i!=null||a!=null)&&pa(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function l1(n,i){pa(n),n.curOp.scrollToPos=i}function pa(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=rp(n,i.from),l=rp(n,i.to);fp(n,a,l,i.margin)}}function fp(n,i,a,l){var u=Nu(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});Os(n,u.scrollLeft,u.scrollTop)}function Ds(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Ou(n,{top:i}),hp(n,i,!0),s&&Ou(n),Is(n,100))}function hp(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function qi(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,mp(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Rs(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+mu(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+gr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Bi=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Rt(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Rt(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bi.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var p=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},Bi.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bi.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bi.prototype.zeroWidthHack=function(){var n=H&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Mt,this.disableVert=new Mt},Bi.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),p=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Bi.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var zs=function(){};zs.prototype.update=function(){return{bottom:0,right:0}},zs.prototype.setScrollLeft=function(){},zs.prototype.setScrollTop=function(){},zs.prototype.clear=function(){};function Oo(n,i){i||(i=Rs(n));var a=n.display.barWidth,l=n.display.barHeight;dp(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&ha(n),dp(n,Rs(n)),a=n.display.barWidth,l=n.display.barHeight}function dp(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var pp={native:Bi,null:zs};function gp(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&ht(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new pp[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Rt(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?qi(n,i):Ds(n,i)},n),n.display.scrollbars.addClass&&At(n.display.wrapper,n.display.scrollbars.addClass)}var a1=0;function Wi(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++a1,markArrays:null},Fw(n.curOp)}function Ui(n){var i=n.curOp;i&&qw(i,function(a){for(var l=0;l=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new ga(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function f1(n){n.updatedDisplay=n.mustUpdate&&$u(n.cm,n.update)}function h1(n){var i=n.cm,a=i.display;n.updatedDisplay&&ha(i),n.barMeasure=Rs(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Xd(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+gr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-zi(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function d1(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Es(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(p){if(l.line>=n.display.viewFrom){var m=p.styles,b=p.text.length>n.options.maxHighlightLength?dr(i.mode,l.state):null,x=Sd(n,p,l,!0);b&&(l.state=b),p.styles=x.styles;var S=p.styleClasses,P=x.classes;P?p.styleClasses=P:S&&(p.styleClasses=null);for(var D=!m||m.length!=p.styles.length||S!=P&&(!S||!P||S.bgClass!=P.bgClass||S.textClass!=P.textClass),W=0;!D&&Wa)return Is(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Sn(n,function(){for(var p=0;p=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&lp(n)==0)return!1;yp(n)&&(ii(n),i.dims=ku(n));var u=l.first+l.size,p=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFromm&&a.viewTo-m<20&&(m=Math.min(u,a.viewTo)),Or&&(p=du(n.doc,p),m=zd(n.doc,m));var b=p!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;n1(n,p,m),a.viewOffset=Dr(Pt(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var x=lp(n);if(!b&&x==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=m1(n);return x>4&&(a.lineDiv.style.display="none"),b1(n,a.updateLineNumbers,i.dims),x>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,y1(S),G(a.cursorDiv),G(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,b&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Is(n,400)),a.updateLineNumbers=null,!0}function vp(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==zi(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+mu(n.display)-yu(n),a.top)}),i.visible=da(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=da(n.display,n.doc,a));if(!$u(n,i))break;ha(n);var u=Rs(n);$s(n),Oo(n,u),Ru(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Ou(n,i){var a=new ga(n,i);if($u(n,a)){ha(n),vp(n,a);var l=Rs(n);$s(n),Oo(n,l),Ru(n,l),a.finish()}}function b1(n,i,a){var l=n.display,u=n.options.lineNumbers,p=l.lineDiv,m=p.firstChild;function b(Z){var ot=Z.nextSibling;return v&&H&&n.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),ot}for(var x=l.view,S=l.viewFrom,P=0;P-1&&(q=!1),Bd(n,D,S,a)),q&&(G(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(gt(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=b(m)}function Du(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",qe(n,"gutterChanged",n)}function Ru(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+gr(n)+"px"}function mp(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Cu(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,p=l+"px",m=0;m=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),d&&g<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=zu(l.gutters,l.lineNumbers),bp(u),a.init(u)}var va=0,zr=null;d?zr=-.53:s?zr=15:w?zr=-.7:L&&(zr=-1/3);function wp(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function x1(n){var i=wp(n);return i.x*=zr,i.y*=zr,i}function xp(n,i){w&&_==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=wp(i),l=a.x,u=a.y,p=zr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,p=1);var m=n.display,b=m.scroller,x=b.scrollWidth>b.clientWidth,S=b.scrollHeight>b.clientHeight;if(l&&x||u&&S){if(u&&H&&v){t:for(var P=i.target,D=m.view;P!=b;P=P.parentNode)for(var W=0;W=0&&_t(n,l.to())<=0)return a}return-1};var ue=function(n,i){this.anchor=n,this.head=i};ue.prototype.from=function(){return To(this.anchor,this.head)},ue.prototype.to=function(){return sn(this.anchor,this.head)},ue.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(W,q){return _t(W.from(),q.from())}),a=Et(i,u);for(var p=1;p0:x>=0){var S=To(b.from(),m.from()),P=sn(b.to(),m.to()),D=b.empty()?m.from()==m.head:b.from()==b.head;p<=a&&--a,i.splice(--p,2,new ue(D?P:S,D?S:P))}}return new On(i,a)}function oi(n,i){return new On([new ue(n,i||n)],0)}function si(n){return n.text?X(n.from.line+n.text.length-1,ut(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function _p(n,i){if(_t(n,i.from)<0)return n;if(_t(n,i.to)<=0)return si(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=si(i).ch-i.to.ch),X(a,l)}function Iu(n,i){for(var a=[],l=0;l1&&n.remove(b.line+1,Z-1),n.insert(b.line+1,bt)}qe(n,"change",n,i)}function li(n,i,a){function l(u,p,m){if(u.linked)for(var b=0;b1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ut(n.done)}function Lp(n,i,a,l){var u=n.history;u.undone.length=0;var p=+new Date,m,b;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>p-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=k1(u,u.lastOp==l)))b=ut(m.changes),_t(i.from,i.to)==0&&_t(i.from,b.to)==0?b.to=si(i):m.changes.push(qu(n,i));else{var x=ut(u.done);for((!x||!x.ranges)&&ya(n.sel,u.done),m={changes:[qu(n,i)],generation:u.generation},u.done.push(m);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=p,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,b||ke(n,"historyAdded")}function C1(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function T1(n,i,a,l){var u=n.history,p=l&&l.origin;a==u.lastSelOp||p&&u.lastSelOrigin==p&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==p||C1(n,p,ut(u.done),i))?u.done[u.done.length-1]=i:ya(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=p,u.lastSelOp=a,l&&l.clearRedo!==!1&&Ep(u.undone)}function ya(n,i){var a=ut(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Ap(n,i,a,l){var u=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((u||(u=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function E1(n){if(!n)return null;for(var i,a=0;a-1&&(ut(b)[D]=S[D],delete S[D])}}return l}function Bu(n,i,a,l){if(l){var u=n.anchor;if(a){var p=_t(i,u)<0;p!=_t(a,u)<0?(u=i,i=a):p!=_t(i,a)<0&&(i=a)}return new ue(u,i)}else return new ue(a||i,i)}function ba(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),Ye(n,new On([Bu(n.sel.primary(),i,a,u)],0),l)}function Np(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),p=0;p=i.ch:b.to>i.ch))){if(u&&(ke(x,"beforeCursorEnter"),x.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(a){var D=x.find(l<0?1:-1),W=void 0;if((l<0?P:S)&&(D=zp(n,D,-l,D&&D.line==i.line?p:null)),D&&D.line==i.line&&(W=_t(D,a))&&(l<0?W<0:W>0))return Ro(n,D,i,l,u)}var q=x.find(l<0?-1:1);return(l<0?S:P)&&(q=zp(n,q,l,q.line==i.line?p:null)),q?Ro(n,q,i,l,u):null}}return i}function xa(n,i,a,l,u){var p=l||1,m=Ro(n,i,a,p,u)||!u&&Ro(n,i,a,p,!0)||Ro(n,i,a,-p,u)||!u&&Ro(n,i,a,-p,!0);return m||(n.cantEdit=!0,X(n.first,0))}function zp(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Wt(n,X(i.line-1)):null:a>0&&i.ch==(l||Pt(n,i.line)).text.length?i.line=0;--u)Hp(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Hp(n,i)}}function Hp(n,i){if(!(i.text.length==1&&i.text[0]==""&&_t(i.from,i.to)==0)){var a=Iu(n,i);Lp(n,i,a,n.cm?n.cm.curOp.id:NaN),qs(n,i,a,fu(n,i));var l=[];li(n,function(u,p){!p&&Et(l,u.history)==-1&&(Up(u.history,i),l.push(u.history)),qs(u,i,null,fu(u,i))})}}function _a(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,p,m=n.sel,b=i=="undo"?u.done:u.undone,x=i=="undo"?u.undone:u.done,S=0;S=0;--q){var Z=W(q);if(Z)return Z.v}}}}function qp(n,i){if(i!=0&&(n.first+=i,n.sel=new On(pt(n.sel.ranges,function(u){return new ue(X(u.anchor.line+i,u.anchor.ch),X(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){ln(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;ln.lastLine())){if(i.from.linep&&(i={from:i.from,to:X(p,Pt(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=$r(n,i.from,i.to),a||(a=Iu(n,i)),n.cm?M1(n.cm,i,l):Hu(n,i,l),wa(n,a,V),n.cantEdit&&xa(n,X(n.firstLine(),0))&&(n.cantEdit=!1)}}function M1(n,i,a){var l=n.doc,u=n.display,p=i.from,m=i.to,b=!1,x=p.line;n.options.lineWrapping||(x=C(Qn(Pt(l,p.line))),l.iter(x,m.line+1,function(q){if(q==u.maxLine)return b=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Hn(n),Hu(l,i,a,sp(n)),n.options.lineWrapping||(l.iter(x,p.line+i.text.length,function(q){var Z=oa(q);Z>u.maxLineLength&&(u.maxLine=q,u.maxLineLength=Z,u.maxLineChanged=!0,b=!1)}),b&&(n.curOp.updateMaxLine=!0)),bw(l,p.line),Is(n,400);var S=i.text.length-(m.line-p.line)-1;i.full?ln(n):p.line==m.line&&i.text.length==1&&!kp(n.doc,i)?ri(n,p.line,"text"):ln(n,p.line,m.line+1,S);var P=_n(n,"changes"),D=_n(n,"change");if(D||P){var W={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&qe(n,"change",n,W),P&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(W)}n.display.selForContextMenu=null}function Io(n,i,a,l,u){var p;l||(l=a),_t(l,a)<0&&(p=[l,a],a=p[0],l=p[1]),typeof i=="string"&&(i=n.splitLines(i)),zo(n,{from:a,to:l,text:i,origin:u})}function Bp(n,i,a,l){a1||!(this.children[0]instanceof Ws))){var b=[];this.collapse(b),this.children=[new Ws(b)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i50){for(var m=u.lines.length%25+25,b=m;b10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;ln.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=P,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&ln(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Dp(n.doc)),n&&qe(n,"markerCleared",n,this,l,u),i&&Ui(n),this.parent&&this.parent.clear()}},ai.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=F("span",[p.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(Rd(n,i.line,i,a,p)||i.line!=a.line&&Rd(n,a.line,i,a,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");xw()}p.addToHistory&&Lp(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var b=i.line,x=n.cm,S;if(n.iter(b,a.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&Qn(D)==x.display.maxLine&&(S=!0),p.collapsed&&b!=i.line&&$n(D,0),Sw(D,new ea(p,b==i.line?i.ch:null,b==a.line?a.ch:null),n.cm&&n.cm.curOp),++b}),p.collapsed&&n.iter(i.line,a.line+1,function(D){ni(n,D)&&$n(D,0)}),p.clearOnEnter&&Rt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(ww(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++Gp,p.atomic=!0),x){if(S&&(x.curOp.updateMaxLine=!0),p.collapsed)ln(x,i.line,a.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var P=i.line;P<=a.line;P++)ri(x,P,"text");p.atomic&&Dp(x.doc),qe(x,"markerAdded",x,p)}return p}var Gs=function(n,i){this.markers=n,this.primary=i;for(var a=0;a=0;x--)zo(this,l[x]);b?$p(this,b):this.cm&&$o(this.cm)}),undo:We(function(){_a(this,"undo")}),redo:We(function(){_a(this,"redo")}),undoSelection:We(function(){_a(this,"undo",!0)}),redoSelection:We(function(){_a(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Wt(this,n),i=Wt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(p){var m=p.markedSpans;if(m)for(var b=0;b=x.to||x.from==null&&u!=n.line||x.from!=null&&u==i.line&&x.from>=i.ch)&&(!a||a(x.marker))&&l.push(x.marker.parent||x.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;ln)return i=n,!0;n-=p,++a}),Wt(this,X(a,i))},indexFromPos:function(n){n=Wt(this,n);var i=n.ch;if(n.linei&&(i=n.from),n.to!=null&&n.to-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var P=n.dataTransfer.getData("Text");if(P){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),wa(i.doc,oi(a,a)),D)for(var W=0;W=0;b--)Io(n.doc,"",l[b].from,l[b].to,"+delete");$o(n)})}function Uu(n,i,a){var l=rn(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ju(n,i,a){var l=Uu(n,i.ch,a);return l==null?null:new X(i.line,l,a<0?"after":"before")}function Gu(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var p=Yt(a,i.doc.direction);if(p){var m=u<0?ut(p):p[0],b=u<0==(m.level==1),x=b?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var P=Ao(i,a);S=u<0?a.text.length-1:0;var D=vr(i,P,S).top;S=Pn(function(W){return vr(i,P,W).top==D},u<0==(m.level==1)?m.from:m.to-1,S),x=="before"&&(S=Uu(a,S,1))}else S=u<0?m.to:m.from;return new X(l,S,x)}}return new X(l,u<0?a.text.length:0,u<0?"before":"after")}function U1(n,i,a,l){var u=Yt(i,n.doc.direction);if(!u)return ju(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var p=Ae(u,a.ch,a.sticky),m=u[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from=m.from&&W>=P.begin)){var q=D?"before":"after";return new X(a.line,W,q)}}var Z=function(bt,Ct,wt){for(var Lt=function(ve,Ue){return Ue?new X(a.line,b(ve,1),"before"):new X(a.line,ve,"after")};bt>=0&&bt0==(zt.level!=1),Xt=$t?wt.begin:b(wt.end,-1);if(zt.from<=Xt&&Xt0?P.end:b(P.begin,-1);return vt!=null&&!(l>0&&vt==i.text.length)&&(ot=Z(l>0?0:u.length-1,l,S(vt)),ot)?ot:null}var Xs={selectAll:Ip,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),V)},killLine:function(n){return qo(n,function(i){if(i.empty()){var a=Pt(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line0)u=new X(u.line,u.ch+1),n.replaceRange(p.charAt(u.ch-1)+p.charAt(u.ch-2),X(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var m=Pt(n.doc,u.line-1).text;m&&(u=new X(u.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),X(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ue(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Sn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;ln&&_t(i,this.pos)==0&&a==this.button};var Zs,Qs;function Z1(n,i){var a=+new Date;return Qs&&Qs.compare(a,n,i)?(Zs=Qs=null,"triple"):Zs&&Zs.compare(a,n,i)?(Qs=new Ku(a,n,i),Zs=null,"double"):(Zs=new Ku(a,n,i),Qs=null,"single")}function ag(n){var i=this,a=i.display;if(!(Ce(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Rr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Xu(i,n)){var l=Fi(i,n),u=Kn(n),p=l?Z1(l,u):"single";Tt(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&Q1(i,u,l,p,n))&&(u==1?l?tx(i,l,p,n):Ss(n)==a.scroller&&Xe(n):u==2?(l&&ba(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(rt?i.display.input.onContextMenu(n):Au(i)))}}}function Q1(n,i,a,l,u){var p="Click";return l=="double"?p="Double"+p:l=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Ys(n,Jp(p,u),u,function(m){if(typeof m=="string"&&(m=Xs[m]),!m)return!1;var b=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),b=m(n,a)!=I}finally{n.state.suppressEdits=!1}return b})}function J1(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var p=K?a.shiftKey&&a.metaKey:a.altKey;u.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=H?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(H?a.altKey:a.ctrlKey)),u}function tx(n,i,a,l){d?setTimeout(j(cp,n),0):n.curOp.focus=yt(Qt(n));var u=J1(n,a,l),p=n.doc.sel,m;n.options.dragDrop&&lu&&!n.isReadOnly()&&a=="single"&&(m=p.contains(i))>-1&&(_t((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(_t(m.to(),i)>0||i.xRel<0)?ex(n,l,i,u):nx(n,l,i,u)}function ex(n,i,a,l){var u=n.display,p=!1,m=Be(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Au(n)),Ke(u.wrapper.ownerDocument,"mouseup",m),Ke(u.wrapper.ownerDocument,"mousemove",b),Ke(u.scroller,"dragstart",x),Ke(u.scroller,"drop",m),p||(Xe(S),l.addNew||ba(n.doc,a,null,null,l.extend),v&&!L||d&&g==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),b=function(S){p=p||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},x=function(){return p=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Rt(u.wrapper.ownerDocument,"mouseup",m),Rt(u.wrapper.ownerDocument,"mousemove",b),Rt(u.scroller,"dragstart",x),Rt(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function cg(n,i,a){if(a=="char")return new ue(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ue(X(i.line,0),Wt(n.doc,X(i.line+1,0)));var l=a(n,i);return new ue(l.from,l.to)}function nx(n,i,a,l){d&&Au(n);var u=n.display,p=n.doc;Xe(i);var m,b,x=p.sel,S=x.ranges;if(l.addNew&&!l.extend?(b=p.sel.contains(a),b>-1?m=S[b]:m=new ue(a,a)):(m=p.sel.primary(),b=p.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ue(a,a)),a=Fi(n,i,!0,!0),b=-1;else{var P=cg(n,a,l.unit);l.extend?m=Bu(m,P.anchor,P.head,l.extend):m=P}l.addNew?b==-1?(b=S.length,Ye(p,tr(n,S.concat([m]),b),{scroll:!1,origin:"*mouse"})):S.length>1&&S[b].empty()&&l.unit=="char"&&!l.extend?(Ye(p,tr(n,S.slice(0,b).concat(S.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):Wu(p,b,m,J):(b=0,Ye(p,new On([m],0),J),x=p.sel);var D=a;function W(wt){if(_t(D,wt)!=0)if(D=wt,l.unit=="rectangle"){for(var Lt=[],zt=n.options.tabSize,$t=at(Pt(p,a.line).text,a.ch,zt),Xt=at(Pt(p,wt.line).text,wt.ch,zt),ve=Math.min($t,Xt),Ue=Math.max($t,Xt),_e=Math.min(a.line,wt.line),kn=Math.min(n.lastLine(),Math.max(a.line,wt.line));_e<=kn;_e++){var cn=Pt(p,_e).text,Ne=ft(cn,ve,zt);ve==Ue?Lt.push(new ue(X(_e,Ne),X(_e,Ne))):cn.length>Ne&&Lt.push(new ue(X(_e,Ne),X(_e,ft(cn,Ue,zt))))}Lt.length||Lt.push(new ue(a,a)),Ye(p,tr(n,x.ranges.slice(0,b).concat(Lt),b),{origin:"*mouse",scroll:!1}),n.scrollIntoView(wt)}else{var un=m,Ge=cg(n,wt,l.unit),ze=un.anchor,Pe;_t(Ge.anchor,ze)>0?(Pe=Ge.head,ze=To(un.from(),Ge.anchor)):(Pe=Ge.anchor,ze=sn(un.to(),Ge.head));var Ee=x.ranges.slice(0);Ee[b]=rx(n,new ue(Wt(p,ze),Pe)),Ye(p,tr(n,Ee,b),J)}}var q=u.wrapper.getBoundingClientRect(),Z=0;function ot(wt){var Lt=++Z,zt=Fi(n,wt,!0,l.unit=="rectangle");if(zt)if(_t(zt,D)!=0){n.curOp.focus=yt(Qt(n)),W(zt);var $t=da(u,p);(zt.line>=$t.to||zt.line<$t.from)&&setTimeout(Be(n,function(){Z==Lt&&ot(wt)}),150)}else{var Xt=wt.clientYq.bottom?20:0;Xt&&setTimeout(Be(n,function(){Z==Lt&&(u.scroller.scrollTop+=Xt,ot(wt))}),50)}}function vt(wt){n.state.selectingText=!1,Z=1/0,wt&&(Xe(wt),u.input.focus()),Ke(u.wrapper.ownerDocument,"mousemove",bt),Ke(u.wrapper.ownerDocument,"mouseup",Ct),p.history.lastSelOrigin=null}var bt=Be(n,function(wt){wt.buttons===0||!Kn(wt)?vt(wt):ot(wt)}),Ct=Be(n,vt);n.state.selectingText=Ct,Rt(u.wrapper.ownerDocument,"mousemove",bt),Rt(u.wrapper.ownerDocument,"mouseup",Ct)}function rx(n,i){var a=i.anchor,l=i.head,u=Pt(n.doc,a.line);if(_t(a,l)==0&&a.sticky==l.sticky)return i;var p=Yt(u);if(!p)return i;var m=Ae(p,a.ch,a.sticky),b=p[m];if(b.from!=a.ch&&b.to!=a.ch)return i;var x=m+(b.from==a.ch==(b.level!=1)?0:1);if(x==0||x==p.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var P=Ae(p,l.ch,l.sticky),D=P-m||(l.ch-a.ch)*(b.level==1?-1:1);P==x-1||P==x?S=D<0:S=D>0}var W=p[x+(S?-1:0)],q=S==(W.level==1),Z=q?W.from:W.to,ot=q?"after":"before";return a.ch==Z&&a.sticky==ot?i:new ue(new X(a.line,Z,ot),l)}function ug(n,i,a,l){var u,p;if(i.touches)u=i.touches[0].clientX,p=i.touches[0].clientY;else try{u=i.clientX,p=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&Xe(i);var m=n.display,b=m.lineDiv.getBoundingClientRect();if(p>b.bottom||!_n(n,a))return on(i);p-=b.top-m.viewOffset;for(var x=0;x=u){var P=O(n.doc,p),D=n.display.gutterSpecs[x];return ke(n,a,n,P,D.className,i),on(i)}}}function Xu(n,i){return ug(n,i,"gutterClick",!0)}function fg(n,i){Rr(n.display,i)||ix(n,i)||Ce(n,i,"contextmenu")||rt||n.display.input.onContextMenu(i)}function ix(n,i){return _n(n,"gutterContextMenu")?ug(n,i,"gutterContextMenu",!1):!1}function hg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ps(n)}var Bo={toString:function(){return"CodeMirror.Init"}},dg={},Ta={};function ox(n){var i=n.optionHandlers;function a(l,u,p,m){n.defaults[l]=u,p&&(i[l]=m?function(b,x,S){S!=Bo&&p(b,x,S)}:p)}n.defineOption=a,n.Init=Bo,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Fu(l)},!0),a("indentUnit",2,Fu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Hs(l),Ps(l),ln(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var p=[],m=l.doc.first;l.doc.iter(function(x){for(var S=0;;){var P=x.text.indexOf(u,S);if(P==-1)break;S=P+u.length,p.push(X(m,P))}m++});for(var b=p.length-1;b>=0;b--)Io(l.doc,u,p[b],X(p[b].line,p[b].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,p){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),p!=Bo&&l.refresh()}),a("specialCharPlaceholder",Ow,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!ct),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){hg(l),Fs(l)},!0),a("keyMap","default",function(l,u,p){var m=ka(u),b=p!=Bo&&ka(p);b&&b.detach&&b.detach(l,m),m.attach&&m.attach(l,b||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,lx,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=zu(u,l.options.lineNumbers),Fs(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Cu(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Oo(l)},!0),a("scrollbarStyle","native",function(l){gp(l),Oo(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=zu(l.options.gutters,u),Fs(l)},!0),a("firstLineNumber",1,Fs,!0),a("lineNumberFormatter",function(l){return l},Fs,!0),a("showCursorWhenSelecting",!1,$s,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Po(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,sx),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,$s,!0),a("singleCursorHeightPerLine",!0,$s,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Hs,!0),a("addModeClass",!1,Hs,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Hs,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function sx(n,i,a){var l=a&&a!=Bo;if(!i!=!l){var u=n.display.dragFunctions,p=i?Rt:Ke;p(n.display.scroller,"dragstart",u.start),p(n.display.scroller,"dragenter",u.enter),p(n.display.scroller,"dragover",u.over),p(n.display.scroller,"dragleave",u.leave),p(n.display.scroller,"drop",u.drop)}}function lx(n){n.options.lineWrapping?(At(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(ht(n.display.wrapper,"CodeMirror-wrap"),gu(n)),Tu(n),ln(n),Ps(n),setTimeout(function(){return Oo(n)},100)}function be(n,i){var a=this;if(!(this instanceof be))return new be(n,i);this.options=i=i?it(i):{},it(dg,i,!1);var l=i.value;typeof l=="string"?l=new an(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new be.inputStyles[i.inputStyle](this),p=this.display=new w1(n,l,u,i);p.wrapper.CodeMirror=this,hg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gp(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Mt,keySeq:null,specialChars:null},i.autofocus&&!E&&p.input.focus(),d&&g<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ax(this),F1(),Wi(this),this.curOp.forceUpdate=!0,Cp(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Mu(a)},20):Po(this);for(var m in Ta)Ta.hasOwnProperty(m)&&Ta[m](this,i[m],Bo);yp(this),i.finishInit&&i.finishInit(this);for(var b=0;b20*20}Rt(i.scroller,"touchstart",function(x){if(!Ce(n,x)&&!p(x)&&!Xu(n,x)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),Rt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Rt(i.scroller,"touchend",function(x){var S=i.activeTouch;if(S&&!Rr(i,x)&&S.left!=null&&!S.moved&&new Date-S.start<300){var P=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ue(P,P):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt(P):D=new ue(X(P.line,0),Wt(n.doc,X(P.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),Xe(x)}u()}),Rt(i.scroller,"touchcancel",u),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ds(n,i.scroller.scrollTop),qi(n,i.scroller.scrollLeft,!0),ke(n,"scroll",n))}),Rt(i.scroller,"mousewheel",function(x){return xp(n,x)}),Rt(i.scroller,"DOMMouseScroll",function(x){return xp(n,x)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Ce(n,x)||Qr(x)},over:function(x){Ce(n,x)||(I1(n,x),Qr(x))},start:function(x){return z1(n,x)},drop:Be(n,R1),leave:function(x){Ce(n,x)||Xp(n)}};var b=i.input.getField();Rt(b,"keyup",function(x){return sg.call(n,x)}),Rt(b,"keydown",Be(n,og)),Rt(b,"keypress",Be(n,lg)),Rt(b,"focus",function(x){return Mu(n,x)}),Rt(b,"blur",function(x){return Po(n,x)})}var Yu=[];be.defineInitHook=function(n){return Yu.push(n)};function Js(n,i,a,l){var u=n.doc,p;a==null&&(a="add"),a=="smart"&&(u.mode.indent?p=Es(n,i).state:a="prev");var m=n.options.tabSize,b=Pt(u,i),x=at(b.text,null,m);b.stateAfter&&(b.stateAfter=null);var S=b.text.match(/^\s*/)[0],P;if(!l&&!/\S/.test(b.text))P=0,a="not";else if(a=="smart"&&(P=u.mode.indent(p,b.text.slice(S.length),b.text),P==I||P>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?P=at(Pt(u,i-1).text,null,m):P=0:a=="add"?P=x+n.options.indentUnit:a=="subtract"?P=x-n.options.indentUnit:typeof a=="number"&&(P=x+a),P=Math.max(0,P);var D="",W=0;if(n.options.indentWithTabs)for(var q=Math.floor(P/m);q;--q)W+=m,D+=" ";if(Wm,x=qn(i),S=null;if(b&&l.ranges.length>1)if(er&&er.text.join(` `)==i){if(l.ranges.length%er.text.length==0){S=[];for(var P=0;P=0;W--){var q=l.ranges[W],Z=q.from(),ot=q.to();q.empty()&&(a&&a>0?Z=X(Z.line,Z.ch-a):n.state.overwrite&&!b?ot=X(ot.line,Math.min(Pt(p,ot.line).text.length,ot.ch+ut(x).length)):b&&er&&er.lineWise&&er.text.join(` `)==x.join(` `)&&(Z=ot=X(Z.line,0)));var vt={from:Z,to:ot,text:S?S[W%S.length]:x,origin:u||(b?"paste":n.state.cutIncoming>m?"cut":"+input")};zo(n.doc,vt),qe(n,"inputRead",n,vt)}i&&!b&&gg(n,i),$o(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function pg(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Sn(i,function(){return Zu(i,a,0,null,"paste")}),!0}function gg(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var p=n.getModeAt(u.head),m=!1;if(p.electricChars){for(var b=0;b-1){m=Js(n,u.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Pt(n.doc,u.head.line).text.slice(0,u.head.ch))&&(m=Js(n,u.head.line,"smart"));m&&qe(n,"electricInput",n,u.head.line)}}}function vg(n){for(var i=[],a=[],l=0;lp&&(Js(this,b.head.line,l,!0),p=b.head.line,m==this.doc.sel.primIndex&&$o(this));else{var x=b.from(),S=b.to(),P=Math.max(p,x.line);p=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=P;D0&&Wu(this.doc,m,new ue(x,W[m].to()),V)}}}),getTokenAt:function(l,u){return Ed(this,l,u)},getLineTokens:function(l,u){return Ed(this,X(l),u,!0)},getTokenTypeAt:function(l){l=Wt(this.doc,l);var u=kd(this,Pt(this.doc,l.line)),p=0,m=(u.length-1)/2,b=l.ch,x;if(b==0)x=u[2];else for(;;){var S=p+m>>1;if((S?u[S*2-1]:0)>=b)m=S;else if(u[S*2+1]x&&(l=x,m=!0),b=Pt(this.doc,l)}else b=l;return aa(this,b,{top:0,left:0},u||"page",p||m).top+(m?this.doc.height-Dr(b):0)},defaultTextHeight:function(){return Mo(this.display)},defaultCharWidth:function(){return No(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,p,m,b){var x=this.display;l=Jn(this,Wt(this.doc,l));var S=l.bottom,P=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),x.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),W=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?S=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(S=l.bottom),P+u.offsetWidth>W&&(P=W-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",b=="right"?(P=x.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(b=="left"?P=0:b=="middle"&&(P=(x.sizer.clientWidth-u.offsetWidth)/2),u.style.left=P+"px"),p&&s1(this,{left:P,top:S,right:P+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:Je(og),triggerOnKeyPress:Je(lg),triggerOnKeyUp:sg,triggerOnMouseDown:Je(ag),execCommand:function(l){if(Xs.hasOwnProperty(l))return Xs[l].call(null,this)},triggerElectric:Je(function(l){gg(this,l)}),findPosH:function(l,u,p,m){var b=1;u<0&&(b=-1,u=-u);for(var x=Wt(this.doc,l),S=0;S0&&P(p.charAt(m-1));)--m;for(;b.5||this.options.lineWrapping)&&Tu(this),ke(this,"refresh",this)}),swapDoc:Je(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Cp(this,l),Ps(this),this.display.input.reset(),Os(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,qe(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Vn(n),n.registerHelper=function(l,u,p){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=p},n.registerGlobalHelper=function(l,u,p,m){n.registerHelper(l,u,m),a[l]._global.push({pred:p,val:m})}}function Ju(n,i,a,l,u){var p=i,m=a,b=Pt(n,i.line),x=u&&n.direction=="rtl"?-a:a;function S(){var Ct=i.line+x;return Ct=n.first+n.size?!1:(i=new X(Ct,i.ch,i.sticky),b=Pt(n,Ct))}function P(Ct){var wt;if(l=="codepoint"){var Lt=b.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Lt))wt=null;else{var zt=a>0?Lt>=55296&&Lt<56320:Lt>=56320&&Lt<57343;wt=new X(i.line,Math.max(0,Math.min(b.text.length,i.ch+a*(zt?2:1))),-a)}}else u?wt=U1(n.cm,b,i,a):wt=ju(b,i,a);if(wt==null)if(!Ct&&S())i=Gu(u,n.cm,b,i.line,x);else return!1;else i=wt;return!0}if(l=="char"||l=="codepoint")P();else if(l=="column")P(!0);else if(l=="word"||l=="group")for(var D=null,W=l=="group",q=n.cm&&n.cm.getHelper(i,"wordChars"),Z=!0;!(a<0&&!P(!Z));Z=!1){var ot=b.text.charAt(i.ch)||` `,vt=re(ot,q)?"w":W&&ot==` `?"n":!W||/\s/.test(ot)?null:"p";if(W&&!Z&&!vt&&(vt="s"),D&&D!=vt){a<0&&(a=1,P(),i.sticky="after");break}if(vt&&(D=vt),a>0&&!P(!Z))break}var bt=xa(n,i,p,m,!0);return ce(p,bt)&&(bt.hitSide=!0),bt}function yg(n,i,a,l){var u=n.doc,p=i.left,m;if(l=="page"){var b=Math.min(n.display.wrapper.clientHeight,Tt(n).innerHeight||u(n).documentElement.clientHeight),x=Math.max(b-.5*Mo(n.display),3);m=(a>0?i.bottom:i.top)+a*x}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=_u(n,p,m),!!S.outside;){if(a<0?m<=0:m>=u.height){S.hitSide=!0;break}m+=a*5}return S}var de=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Mt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};de.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Qu(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function p(b){for(var x=b.target;x;x=x.parentNode){if(x==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Rt(u,"paste",function(b){!p(b)||Ce(l,b)||pg(b,l)||g<=11&&setTimeout(Be(l,function(){return i.updateFromDOM()}),20)}),Rt(u,"compositionstart",function(b){i.composing={data:b.data,done:!1}}),Rt(u,"compositionupdate",function(b){i.composing||(i.composing={data:b.data,done:!1})}),Rt(u,"compositionend",function(b){i.composing&&(b.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(u,"touchstart",function(){return a.forceCompositionEnd()}),Rt(u,"input",function(){i.composing||i.readFromDOMSoon()});function m(b){if(!(!p(b)||Ce(l,b))){if(l.somethingSelected())Ea({lineWise:!1,text:l.getSelections()}),b.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var x=vg(l);Ea({lineWise:!0,text:x.text}),b.type=="cut"&&l.operation(function(){l.setSelections(x.ranges,0,V),l.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var S=er.text.join(` `);if(b.clipboardData.setData("Text",S),b.clipboardData.getData("Text")==S){b.preventDefault();return}}var P=mg(),D=P.firstChild;Qu(D),l.display.lineSpace.insertBefore(P,l.display.lineSpace.firstChild),D.value=er.text.join(` `);var W=yt(Vt(u));qt(D),setTimeout(function(){l.display.lineSpace.removeChild(P),W.focus(),W==u&&a.showPrimarySelection()},50)}}Rt(u,"copy",m),Rt(u,"cut",m)},de.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},de.prototype.prepareSelection=function(){var n=ap(this.cm,!1);return n.focus=yt(Vt(this.div))==this.div,n},de.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},de.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},de.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line=i.display.viewFrom&&bg(i,l)||{node:b[0].measure.map[2],offset:0},S=u.linen.firstLine()&&(l=X(l.line-1,Pt(n.doc,l.line-1).length)),u.ch==Pt(n.doc,u.line).text.length&&u.linei.viewTo-1)return!1;var p,m,b;l.line==i.viewFrom||(p=Hi(n,l.line))==0?(m=C(i.view[0].line),b=i.view[0].node):(m=C(i.view[p].line),b=i.view[p-1].node.nextSibling);var x=Hi(n,u.line),S,P;if(x==i.view.length-1?(S=i.viewTo-1,P=i.lineDiv.lastChild):(S=C(i.view[x+1].line)-1,P=i.view[x+1].node.previousSibling),!b)return!1;for(var D=n.doc.splitLines(fx(n,b,P,m,S)),W=$r(n.doc,X(m,0),X(S,Pt(n.doc,S).text.length));D.length>1&&W.length>1;)if(ut(D)==ut(W))D.pop(),W.pop(),S--;else if(D[0]==W[0])D.shift(),W.shift(),m++;else break;for(var q=0,Z=0,ot=D[0],vt=W[0],bt=Math.min(ot.length,vt.length);ql.ch&&Ct.charCodeAt(Ct.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)q--,Z++;D[D.length-1]=Ct.slice(0,Ct.length-Z).replace(/^\u200b+/,""),D[0]=D[0].slice(q).replace(/\u200b+$/,"");var zt=X(m,q),$t=X(S,W.length?ut(W).length-Z:0);if(D.length>1||D[0]||_t(zt,$t))return Io(n.doc,D,zt,$t,"+input"),!0},de.prototype.ensurePolled=function(){this.forceCompositionEnd()},de.prototype.reset=function(){this.forceCompositionEnd()},de.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},de.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},de.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Sn(this.cm,function(){return ln(n.cm)})},de.prototype.setUneditable=function(n){n.contentEditable="false"},de.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Be(this.cm,Zu)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},de.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},de.prototype.onContextMenu=function(){},de.prototype.resetPosition=function(){},de.prototype.needsContentAttribute=!0;function bg(n,i){var a=bu(n,i.line);if(!a||a.hidden)return null;var l=Pt(n.doc,i.line),u=Kd(a,l,i.line),p=Yt(l,n.doc.direction),m="left";if(p){var b=Ae(p,i.ch);m=b%2?"right":"left"}var x=Zd(u.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function ux(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Wo(n,i){return i&&(n.bad=!0),n}function fx(n,i,a,l,u){var p="",m=!1,b=n.doc.lineSeparator(),x=!1;function S(q){return function(Z){return Z.id==q}}function P(){m&&(p+=b,x&&(p+=b),m=x=!1)}function D(q){q&&(P(),p+=q)}function W(q){if(q.nodeType==1){var Z=q.getAttribute("cm-text");if(Z){D(Z);return}var ot=q.getAttribute("cm-marker"),vt;if(ot){var bt=n.findMarks(X(l,0),X(u+1,0),S(+ot));bt.length&&(vt=bt[0].find(0))&&D($r(n.doc,vt.from,vt.to).join(b));return}if(q.getAttribute("contenteditable")=="false")return;var Ct=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;Ct&&P();for(var wt=0;wt=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Rt(u,"paste",function(m){Ce(l,m)||pg(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function p(m){if(!Ce(l,m)){if(l.somethingSelected())Ea({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var b=vg(l);Ea({lineWise:!0,text:b.text}),m.type=="cut"?l.setSelections(b.ranges,null,V):(a.prevInput="",u.value=b.text.join(` `),qt(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Rt(u,"cut",p),Rt(u,"copy",p),Rt(n.scroller,"paste",function(m){if(!(Rr(n,m)||Ce(l,m))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var b=new Event("paste");b.clipboardData=m.clipboardData,u.dispatchEvent(b)}}),Rt(n.lineSpace,"selectstart",function(m){Rr(n,m)||Xe(m)}),Rt(u,"compositionstart",function(){var m=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:m,range:l.markText(m,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Me.prototype.createField=function(n){this.wrapper=mg(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Qu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Me.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Me.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=ap(n);if(n.options.moveInputWithCursor){var u=Jn(n,a.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+m.top-p.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+m.left-p.left))}return l},Me.prototype.showSelection=function(n){var i=this.cm,a=i.display;z(a.cursorDiv,n.cursors),z(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Me.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&qt(this.textarea),d&&g>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Me.prototype.getField=function(){return this.textarea},Me.prototype.supportsTouch=function(){return!1},Me.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||yt(Vt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Me.prototype.blur=function(){this.textarea.blur()},Me.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Me.prototype.receivedFocus=function(){this.slowPoll()},Me.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Me.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Me.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||ti(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===u||H&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=u.charCodeAt(0);if(p==8203&&!l&&(l="​"),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,b=Math.min(l.length,u.length);m1e3||u.indexOf(` `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Me.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Me.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Me.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=Fi(a,n),m=l.scroller.scrollTop;if(!p||N)return;var b=a.options.resetSelectionOnContextMenu;b&&a.doc.sel.contains(p)==-1&&Be(a,Ye)(a.doc,oi(p),V);var x=u.style.cssText,S=i.wrapper.style.cssText,P=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(n.clientY-P.top-5)+"px; left: "+(n.clientX-P.left-5)+`px; z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=q,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function W(){if(u.selectionStart!=null){var ot=a.somethingSelected(),vt="​"+(ot?u.value:"");u.value="⇚",u.value=vt,i.prevInput=ot?"":"​",u.selectionStart=1,u.selectionEnd=vt.length,l.selForContextMenu=a.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=x,d&&g<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!d||d&&g<9)&&W();var ot=0,vt=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Be(a,Ip)(a):ot++<10?l.detectingSelectAll=setTimeout(vt,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(vt,200)}}if(d&&g>=9&&W(),rt){Qr(n);var Z=function(){Ke(window,"mouseup",Z),setTimeout(q,20)};Rt(window,"mouseup",Z)}else setTimeout(q,50)},Me.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Me.prototype.setUneditable=function(){},Me.prototype.needsContentAttribute=!1;function dx(n,i){if(i=i?it(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=yt(Vt(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=b.getValue()}var u;if(n.form&&(Rt(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var p=n.form;u=p.submit;try{var m=p.submit=function(){l(),p.submit=u,p.submit(),p.submit=m}}catch{}}i.finishInit=function(x){x.save=l,x.getTextArea=function(){return n},x.toTextArea=function(){x.toTextArea=isNaN,l(),n.parentNode.removeChild(x.getWrapperElement()),n.style.display="",n.form&&(Ke(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var b=be(function(x){return n.parentNode.insertBefore(x,n.nextSibling)},i);return b}function px(n){n.off=Ke,n.on=Rt,n.wheelEventPixels=x1,n.Doc=an,n.splitLines=qn,n.countColumn=at,n.findColumn=ft,n.isWordChar=Kt,n.Pass=I,n.signal=ke,n.Line=Eo,n.changeEnd=si,n.scrollbarModel=pp,n.Pos=X,n.cmpPos=_t,n.modes=xo,n.mimeModes=Yn,n.resolveMode=_o,n.getMode=So,n.modeExtensions=ei,n.extendMode=ko,n.copyState=dr,n.startState=Co,n.innerMode=Cs,n.commands=Xs,n.keyMap=Ir,n.keyName=tg,n.isModifierKey=Qp,n.lookupKey=Ho,n.normalizeKeyMap=W1,n.StringStream=Te,n.SharedTextMarker=Gs,n.TextMarker=ai,n.LineWidget=js,n.e_preventDefault=Xe,n.e_stopPropagation=bo,n.e_stop=Qr,n.addClass=At,n.contains=Q,n.rmClass=ht,n.keyNames=ci}ox(be),cx(be);var gx="iter insert remove copy getEditor constructor".split(" ");for(var Aa in an.prototype)an.prototype.hasOwnProperty(Aa)&&Et(gx,Aa)<0&&(be.prototype[Aa]=function(n){return function(){return n.apply(this.doc,arguments)}}(an.prototype[Aa]));return Vn(an),be.inputStyles={textarea:Me,contenteditable:de},be.defineMode=function(n){!be.defaults.mode&&n!="null"&&(be.defaults.mode=n),Zn.apply(this,arguments)},be.defineMIME=Ri,be.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),be.defineMIME("text/plain","null"),be.defineExtension=function(n,i){be.prototype[n]=i},be.defineDocExtension=function(n,i){an.prototype[n]=i},be.fromTextArea=dx,px(be),be.version="5.65.16",be})}(_f)),_f.exports}var Uat=xs();const jat=$y(Uat);var Gat={exports:{}};(function(t,e){(function(r){r(xs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,h=s.jsonld,d=s.json||h,g=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function C(He){return{type:He,style:"keyword"}}var O=C("keyword a"),et=C("keyword b"),gt=C("keyword c"),X=C("keyword d"),_t=C("operator"),ce={type:"atom",style:"atom"};return{if:C("if"),while:O,with:O,else:et,do:et,try:et,finally:et,return:X,break:X,continue:X,new:C("new"),delete:gt,void:gt,throw:gt,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_t,typeof:_t,instanceof:_t,true:ce,false:ce,null:ce,undefined:ce,NaN:ce,Infinity:ce,this:C("this"),class:C("class"),super:C("atom"),yield:gt,export:C("export"),import:C("import"),extends:gt,await:gt}}(),_=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(C){for(var O=!1,et,gt=!1;(et=C.next())!=null;){if(!O){if(et=="/"&&!gt)return;et=="["?gt=!0:gt&&et=="]"&&(gt=!1)}O=!O&&et=="\\"}}var A,T;function M(C,O,et){return A=C,T=et,O}function $(C,O){var et=C.next();if(et=='"'||et=="'")return O.tokenize=E(et),O.tokenize(C,O);if(et=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(et=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(et))return M(et);if(et=="="&&C.eat(">"))return M("=>","operator");if(et=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(et))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(et=="/")return C.eat("*")?(O.tokenize=H,H(C,O)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):$n(C,O,1)?(L(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(et=="`")return O.tokenize=K,K(C,O);if(et=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(et=="#"&&C.eatWhile(y))return M("variable","property");if(et=="<"&&C.match("!--")||et=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(_.test(et))return(et!=">"||!O.lexical||O.lexical.type!=">")&&(C.eat("=")?(et=="!"||et=="=")&&C.eat("="):/[<>*+\-|&?]/.test(et)&&(C.eat(et),et==">"&&C.eat(et))),et=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(y.test(et)){C.eatWhile(y);var gt=C.current();if(O.lastType!="."){if(w.propertyIsEnumerable(gt)){var X=w[gt];return M(X.type,X.style,gt)}if(gt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",gt)}return M("variable","variable",gt)}}function E(C){return function(O,et){var gt=!1,X;if(h&&O.peek()=="@"&&O.match(N))return et.tokenize=$,M("jsonld-keyword","meta");for(;(X=O.next())!=null&&!(X==C&&!gt);)gt=!gt&&X=="\\";return gt||(et.tokenize=$),M("string","string")}}function H(C,O){for(var et=!1,gt;gt=C.next();){if(gt=="/"&&et){O.tokenize=$;break}et=gt=="*"}return M("comment","comment")}function K(C,O){for(var et=!1,gt;(gt=C.next())!=null;){if(!et&&(gt=="`"||gt=="$"&&C.eat("{"))){O.tokenize=$;break}et=!et&>=="\\"}return M("quasi","string-2",C.current())}var ct="([{}])";function Y(C,O){O.fatArrowAt&&(O.fatArrowAt=null);var et=C.string.indexOf("=>",C.start);if(!(et<0)){if(v){var gt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,et));gt&&(et=gt.index)}for(var X=0,_t=!1,ce=et-1;ce>=0;--ce){var He=C.string.charAt(ce),sn=ct.indexOf(He);if(sn>=0&&sn<3){if(!X){++ce;break}if(--X==0){He=="("&&(_t=!0);break}}else if(sn>=3&&sn<6)++X;else if(y.test(He))_t=!0;else if(/["'\/`]/.test(He))for(;;--ce){if(ce==0)return;var To=C.string.charAt(ce-1);if(To==He&&C.string.charAt(ce-2)!="\\"){ce--;break}}else if(_t&&!X){++ce;break}}_t&&!X&&(O.fatArrowAt=ce)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function rt(C,O,et,gt,X,_t){this.indented=C,this.column=O,this.type=et,this.prev=X,this.info=_t,gt!=null&&(this.align=gt)}function dt(C,O){if(!g)return!1;for(var et=C.localVars;et;et=et.next)if(et.name==O)return!0;for(var gt=C.context;gt;gt=gt.prev)for(var et=gt.vars;et;et=et.next)if(et.name==O)return!0}function ht(C,O,et,gt,X){var _t=C.cc;for(G.state=C,G.stream=X,G.marked=null,G.cc=_t,G.style=O,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ce=_t.length?_t.pop():d?Et:at;if(ce(et,gt)){for(;_t.length&&_t[_t.length-1].lex;)_t.pop()();return G.marked?G.marked:et=="variable"&&dt(C,gt)?"variable-2":O}}}var G={state:null,column:null,marked:null,cc:null};function z(){for(var C=arguments.length-1;C>=0;C--)G.cc.push(arguments[C])}function k(){return z.apply(null,arguments),!0}function F(C,O){for(var et=O;et;et=et.next)if(et.name==C)return!0;return!1}function B(C){var O=G.state;if(G.marked="def",!!g){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var et=Q(C,O.context);if(et!=null){O.context=et;return}}else if(!F(C,O.localVars)){O.localVars=new Ht(C,O.localVars);return}}s.globalVars&&!F(C,O.globalVars)&&(O.globalVars=new Ht(C,O.globalVars))}}function Q(C,O){if(O)if(O.block){var et=Q(C,O.prev);return et?et==O.prev?O:new At(et,O.vars,!0):null}else return F(C,O.vars)?O:new At(O.prev,new Ht(C,O.vars),!1);else return null}function yt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function At(C,O,et){this.prev=C,this.vars=O,this.block=et}function Ht(C,O){this.name=C,this.next=O}var qt=new Ht("this",new Ht("arguments",null));function Jt(){G.state.context=new At(G.state.context,G.state.localVars,!1),G.state.localVars=qt}function Qt(){G.state.context=new At(G.state.context,G.state.localVars,!0),G.state.localVars=null}Jt.lex=Qt.lex=!0;function Vt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}Vt.lex=!0;function Tt(C,O){var et=function(){var gt=G.state,X=gt.indented;if(gt.lexical.type=="stat")X=gt.lexical.indented;else for(var _t=gt.lexical;_t&&_t.type==")"&&_t.align;_t=_t.prev)X=_t.indented;gt.lexical=new rt(X,G.stream.column(),C,null,gt.lexical,O)};return et.lex=!0,et}function j(){var C=G.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}j.lex=!0;function it(C){function O(et){return et==C?k():C==";"||et=="}"||et==")"||et=="]"?z():k(O)}return O}function at(C,O){return C=="var"?k(Tt("vardef",O),bo,it(";"),j):C=="keyword a"?k(Tt("form"),I,at,j):C=="keyword b"?k(Tt("form"),at,j):C=="keyword d"?G.stream.match(/^\s*$/,!1)?k():k(Tt("stat"),J,it(";"),j):C=="debugger"?k(it(";")):C=="{"?k(Tt("}"),Qt,Pn,j,Vt):C==";"?k():C=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==j&&G.state.cc.pop()(),k(Tt("form"),I,at,j,wo)):C=="function"?k(qn):C=="for"?k(Tt("form"),Qt,Ql,at,Vt,j):C=="class"||v&&O=="interface"?(G.marked="keyword",k(Tt("form",C=="class"?C:O),xo,j)):C=="variable"?v&&O=="declare"?(G.marked="keyword",k(at)):v&&(O=="module"||O=="enum"||O=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",O=="enum"?k(Pt):O=="type"?k(Jl,it("operator"),Yt,it(";")):k(Tt("form"),on,it("{"),Tt("}"),Pn,j,j)):v&&O=="namespace"?(G.marked="keyword",k(Tt("form"),Et,at,j)):v&&O=="abstract"?(G.marked="keyword",k(at)):k(Tt("stat"),Bt):C=="switch"?k(Tt("form"),I,it("{"),Tt("}","switch"),Qt,Pn,j,j,Vt):C=="case"?k(Et,it(":")):C=="default"?k(it(":")):C=="catch"?k(Tt("form"),Jt,Mt,at,j,Vt):C=="export"?k(Tt("stat"),_o,j):C=="import"?k(Tt("stat"),ei,j):C=="async"?k(at):O=="@"?k(Et,at):z(Tt("stat"),Et,it(";"),j)}function Mt(C){if(C=="(")return k(Xn,it(")"))}function Et(C,O){return V(C,O,!1)}function R(C,O){return V(C,O,!0)}function I(C){return C!="("?z():k(Tt(")"),J,it(")"),j)}function V(C,O,et){if(G.state.fatArrowAt==G.stream.start){var gt=et?pt:ut;if(C=="(")return k(Jt,Tt(")"),se(Xn,")"),j,it("=>"),gt,Vt);if(C=="variable")return z(Jt,on,it("=>"),gt,Vt)}var X=et?ft:lt;return nt.hasOwnProperty(C)?k(X):C=="function"?k(qn,X):C=="class"||v&&O=="interface"?(G.marked="keyword",k(Tt("form"),au,j)):C=="keyword c"||C=="async"?k(et?R:Et):C=="("?k(Tt(")"),J,it(")"),j,X):C=="operator"||C=="spread"?k(et?R:Et):C=="["?k(Tt("]"),Te,j,X):C=="{"?rn(re,"}",null,X):C=="quasi"?z(kt,X):C=="new"?k(Dt(et)):k()}function J(C){return C.match(/[;\}\)\],]/)?z():z(Et)}function lt(C,O){return C==","?k(J):ft(C,O,!1)}function ft(C,O,et){var gt=et==!1?lt:ft,X=et==!1?Et:R;if(C=="=>")return k(Jt,et?pt:ut,Vt);if(C=="operator")return/\+\+|--/.test(O)||v&&O=="!"?k(gt):v&&O=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Tt(">"),se(Yt,">"),j,gt):O=="?"?k(Et,it(":"),X):k(X);if(C=="quasi")return z(kt,gt);if(C!=";"){if(C=="(")return rn(R,")","call",gt);if(C==".")return k(Kt,gt);if(C=="[")return k(Tt("]"),J,it("]"),j,gt);if(v&&O=="as")return G.marked="keyword",k(Yt,gt);if(C=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),k(X)}}function kt(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(kt):k(J,mt)}function mt(C){if(C=="}")return G.marked="string-2",G.state.tokenize=K,k(kt)}function ut(C){return Y(G.stream,G.state),z(C=="{"?at:Et)}function pt(C){return Y(G.stream,G.state),z(C=="{"?at:R)}function Dt(C){return function(O){return O=="."?k(C?Ot:Nt):O=="variable"&&v?k(_n,C?ft:lt):z(C?R:Et)}}function Nt(C,O){if(O=="target")return G.marked="keyword",k(lt)}function Ot(C,O){if(O=="target")return G.marked="keyword",k(ft)}function Bt(C){return C==":"?k(j,at):z(lt,it(";"),j)}function Kt(C){if(C=="variable")return G.marked="property",k()}function re(C,O){if(C=="async")return G.marked="property",k(re);if(C=="variable"||G.style=="keyword"){if(G.marked="property",O=="get"||O=="set")return k(oe);var et;return v&&G.state.fatArrowAt==G.stream.start&&(et=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+et[0].length),k(he)}else{if(C=="number"||C=="string")return G.marked=h?"property":G.style+" property",k(he);if(C=="jsonld-keyword")return k(he);if(v&&yt(O))return G.marked="keyword",k(re);if(C=="[")return k(Et,wn,it("]"),he);if(C=="spread")return k(R,he);if(O=="*")return G.marked="keyword",k(re);if(C==":")return z(he)}}function oe(C){return C!="variable"?z(he):(G.marked="property",k(qn))}function he(C){if(C==":")return k(R);if(C=="(")return z(qn)}function se(C,O,et){function gt(X,_t){if(et?et.indexOf(X)>-1:X==","){var ce=G.state.lexical;return ce.info=="call"&&(ce.pos=(ce.pos||0)+1),k(function(He,sn){return He==O||sn==O?z():z(C)},gt)}return X==O||_t==O?k():et&&et.indexOf(";")>-1?z(C):k(it(O))}return function(X,_t){return X==O||_t==O?k():z(C,gt)}}function rn(C,O,et){for(var gt=3;gt"),Yt);if(C=="quasi")return z(Ke,Hn)}function Zl(C){if(C=="=>")return k(Yt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):z(Pr,Rt)}function Pr(C,O){if(C=="variable"||G.style=="keyword")return G.marked="property",k(Pr);if(O=="?"||C=="number"||C=="string")return k(Pr);if(C==":")return k(Yt);if(C=="[")return k(it("variable"),hr,it("]"),Pr);if(C=="(")return z(ti,Pr);if(!C.match(/[;\}\)\],]/))return k()}function Ke(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(Ke):k(Yt,ke)}function ke(C){if(C=="}")return G.marked="string-2",G.state.tokenize=K,k(Ke)}function Ce(C,O){return C=="variable"&&G.stream.match(/^\s*[?:]/,!1)||O=="?"?k(Ce):C==":"?k(Yt):C=="spread"?k(Ce):z(Yt)}function Hn(C,O){if(O=="<")return k(Tt(">"),se(Yt,">"),j,Hn);if(O=="|"||C=="."||O=="&")return k(Yt);if(C=="[")return k(Yt,it("]"),Hn);if(O=="extends"||O=="implements")return G.marked="keyword",k(Yt);if(O=="?")return k(Yt,it(":"),Yt)}function _n(C,O){if(O=="<")return k(Tt(">"),se(Yt,">"),j,Hn)}function Vn(){return z(Yt,Xe)}function Xe(C,O){if(O=="=")return k(Yt)}function bo(C,O){return O=="enum"?(G.marked="keyword",k(Pt)):z(on,wn,Kn,lu)}function on(C,O){if(v&&yt(O))return G.marked="keyword",k(on);if(C=="variable")return B(O),k();if(C=="spread")return k(on);if(C=="[")return rn(Ss,"]");if(C=="{")return rn(Qr,"}")}function Qr(C,O){return C=="variable"&&!G.stream.match(/^\s*:/,!1)?(B(O),k(Kn)):(C=="variable"&&(G.marked="property"),C=="spread"?k(on):C=="}"?z():C=="["?k(Et,it("]"),it(":"),Qr):k(it(":"),on,Kn))}function Ss(){return z(on,Kn)}function Kn(C,O){if(O=="=")return k(R)}function lu(C){if(C==",")return k(bo)}function wo(C,O){if(C=="keyword b"&&O=="else")return k(Tt("form","else"),at,j)}function Ql(C,O){if(O=="await")return k(Ql);if(C=="(")return k(Tt(")"),ks,j)}function ks(C){return C=="var"?k(bo,Jr):C=="variable"?k(Jr):z(Jr)}function Jr(C,O){return C==")"?k():C==";"?k(Jr):O=="in"||O=="of"?(G.marked="keyword",k(Et,Jr)):z(Et,Jr)}function qn(C,O){if(O=="*")return G.marked="keyword",k(qn);if(C=="variable")return B(O),k(qn);if(C=="(")return k(Jt,Tt(")"),se(Xn,")"),j,Ae,at,Vt);if(v&&O=="<")return k(Tt(">"),se(Vn,">"),j,qn)}function ti(C,O){if(O=="*")return G.marked="keyword",k(ti);if(C=="variable")return B(O),k(ti);if(C=="(")return k(Jt,Tt(")"),se(Xn,")"),j,Ae,Vt);if(v&&O=="<")return k(Tt(">"),se(Vn,">"),j,ti)}function Jl(C,O){if(C=="keyword"||C=="variable")return G.marked="type",k(Jl);if(O=="<")return k(Tt(">"),se(Vn,">"),j)}function Xn(C,O){return O=="@"&&k(Et,Xn),C=="spread"?k(Xn):v&&yt(O)?(G.marked="keyword",k(Xn)):v&&C=="this"?k(wn,Kn):z(on,wn,Kn)}function au(C,O){return C=="variable"?xo(C,O):Yn(C,O)}function xo(C,O){if(C=="variable")return B(O),k(Yn)}function Yn(C,O){if(O=="<")return k(Tt(">"),se(Vn,">"),j,Yn);if(O=="extends"||O=="implements"||v&&C==",")return O=="implements"&&(G.marked="keyword"),k(v?Yt:Et,Yn);if(C=="{")return k(Tt("}"),Zn,j)}function Zn(C,O){if(C=="async"||C=="variable"&&(O=="static"||O=="get"||O=="set"||v&&yt(O))&&G.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return G.marked="keyword",k(Zn);if(C=="variable"||G.style=="keyword")return G.marked="property",k(Ri,Zn);if(C=="number"||C=="string")return k(Ri,Zn);if(C=="[")return k(Et,wn,it("]"),Ri,Zn);if(O=="*")return G.marked="keyword",k(Zn);if(v&&C=="(")return z(ti,Zn);if(C==";"||C==",")return k(Zn);if(C=="}")return k();if(O=="@")return k(Et,Zn)}function Ri(C,O){if(O=="!"||O=="?")return k(Ri);if(C==":")return k(Yt,Kn);if(O=="=")return k(R);var et=G.state.lexical.prev,gt=et&&et.info=="interface";return z(gt?ti:qn)}function _o(C,O){return O=="*"?(G.marked="keyword",k(Co,it(";"))):O=="default"?(G.marked="keyword",k(Et,it(";"))):C=="{"?k(se(So,"}"),Co,it(";")):z(at)}function So(C,O){if(O=="as")return G.marked="keyword",k(it("variable"));if(C=="variable")return z(R,So)}function ei(C){return C=="string"?k():C=="("?z(Et):C=="."?z(lt):z(ko,dr,Co)}function ko(C,O){return C=="{"?rn(ko,"}"):(C=="variable"&&B(O),O=="*"&&(G.marked="keyword"),k(Cs))}function dr(C){if(C==",")return k(ko,dr)}function Cs(C,O){if(O=="as")return G.marked="keyword",k(ko)}function Co(C,O){if(O=="from")return G.marked="keyword",k(Et)}function Te(C){return C=="]"?k():z(se(R,"]"))}function Pt(){return z(Tt("form"),on,it("{"),Tt("}"),se($r,"}"),j,j)}function $r(){return z(on,Kn)}function Ts(C,O){return C.lastType=="operator"||C.lastType==","||_.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function $n(C,O,et){return O.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(et||0)))}return{startState:function(C){var O={tokenize:$,lastType:"sof",cc:[],lexical:new rt((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new At(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(O.globalVars=s.globalVars),O},token:function(C,O){if(C.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=C.indentation(),Y(C,O)),O.tokenize!=H&&C.eatSpace())return null;var et=O.tokenize(C,O);return A=="comment"?et:(O.lastType=A=="operator"&&(T=="++"||T=="--")?"incdec":A,ht(O,et,A,T,C))},indent:function(C,O){if(C.tokenize==H||C.tokenize==K)return r.Pass;if(C.tokenize!=$)return 0;var et=O&&O.charAt(0),gt=C.lexical,X;if(!/^\s*else\b/.test(O))for(var _t=C.cc.length-1;_t>=0;--_t){var ce=C.cc[_t];if(ce==j)gt=gt.prev;else if(ce!=wo&&ce!=Vt)break}for(;(gt.type=="stat"||gt.type=="form")&&(et=="}"||(X=C.cc[C.cc.length-1])&&(X==lt||X==ft)&&!/^[,\.=+\-*:?[\(]/.test(O));)gt=gt.prev;f&>.type==")"&>.prev.type=="stat"&&(gt=gt.prev);var He=gt.type,sn=et==He;return He=="vardef"?gt.indented+(C.lastType=="operator"||C.lastType==","?gt.info.length+1:0):He=="form"&&et=="{"?gt.indented:He=="form"?gt.indented+c:He=="stat"?gt.indented+(Ts(C,O)?f||c:0):gt.info=="switch"&&!sn&&s.doubleIndentSwitch!=!1?gt.indented+(/^(?:case|default)\b/.test(O)?c:2*c):gt.align?gt.column+(sn?0:1):gt.indented+(sn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:$n,skipExpression:function(C){ht(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Vat=Gat.exports,Kat={exports:{}};(function(t,e){(function(r){r(xs())})(function(r){var o={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};r.defineMode("xml",function(c,f){var h=c.indentUnit,d={},g=f.htmlMode?o:s;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var y,w;function _(k,F){function B(At){return F.tokenize=At,At(k,F)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(A("atom","]]>")):null:k.match("--")?B(A("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),F.tokenize=A("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",F.tokenize=N,"tag bracket");if(Q=="&"){var yt;return k.eat("#")?k.eat("x")?yt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):yt=k.eatWhile(/[\d]/)&&k.eat(";"):yt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),yt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}_.isInText=!0;function N(k,F){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return F.tokenize=_,y=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return y="equals",null;if(B=="<"){F.tokenize=_,F.state=K,F.tagName=F.tagStart=null;var Q=F.tokenize(k,F);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(B)?(F.tokenize=L(B),F.stringStartCol=k.column(),F.tokenize(k,F)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var F=function(B,Q){for(;!B.eol();)if(B.next()==k){Q.tokenize=N;break}return"string"};return F.isInAttribute=!0,F}function A(k,F){return function(B,Q){for(;!B.eol();){if(B.match(F)){Q.tokenize=_;break}B.next()}return k}}function T(k){return function(F,B){for(var Q;(Q=F.next())!=null;){if(Q=="<")return B.tokenize=T(k+1),B.tokenize(F,B);if(Q==">")if(k==1){B.tokenize=_;break}else return B.tokenize=T(k-1),B.tokenize(F,B)}return"meta"}}function M(k){return k&&k.toLowerCase()}function $(k,F,B){this.prev=k.context,this.tagName=F||"",this.indent=k.indented,this.startOfLine=B,(d.doNotIndent.hasOwnProperty(F)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function H(k,F){for(var B;;){if(!k.context||(B=k.context.tagName,!d.contextGrabbers.hasOwnProperty(M(B))||!d.contextGrabbers[M(B)].hasOwnProperty(M(F))))return;E(k)}}function K(k,F,B){return k=="openTag"?(B.tagStart=F.column(),ct):k=="closeTag"?Y:K}function ct(k,F,B){return k=="word"?(B.tagName=F.current(),w="tag",dt):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",dt(k,F,B)):(w="error",ct)}function Y(k,F,B){if(k=="word"){var Q=F.current();return B.context&&B.context.tagName!=Q&&d.implicitlyClosed.hasOwnProperty(M(B.context.tagName))&&E(B),B.context&&B.context.tagName==Q||d.matchClosing===!1?(w="tag",nt):(w="tag error",rt)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",nt(k,F,B)):(w="error",rt)}function nt(k,F,B){return k!="endTag"?(w="error",nt):(E(B),K)}function rt(k,F,B){return w="error",nt(k,F,B)}function dt(k,F,B){if(k=="word")return w="attribute",ht;if(k=="endTag"||k=="selfcloseTag"){var Q=B.tagName,yt=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(M(Q))?H(B,Q):(H(B,Q),B.context=new $(B,Q,yt==B.indented)),K}return w="error",dt}function ht(k,F,B){return k=="equals"?G:(d.allowMissing||(w="error"),dt(k,F,B))}function G(k,F,B){return k=="string"?z:k=="word"&&d.allowUnquoted?(w="string",dt):(w="error",dt(k,F,B))}function z(k,F,B){return k=="string"?z:dt(k,F,B)}return{startState:function(k){var F={tokenize:_,state:K,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(F.baseIndent=k),F},token:function(k,F){if(!F.tagName&&k.sol()&&(F.indented=k.indentation()),k.eatSpace())return null;y=null;var B=F.tokenize(k,F);return(B||y)&&B!="comment"&&(w=null,F.state=F.state(y||B,k,F),w&&(B=w=="error"?B+" error":w)),B},indent:function(k,F,B){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return r.Pass;if(k.tokenize!=N&&k.tokenize!=_)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/$/,blockCommentStart:"",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==G&&(k.state=dt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var F=[],B=k.context;B;B=B.prev)F.push(B.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Xat=Kat.exports;(function(t,e){(function(r){r(xs(),Xat,Vat)})(function(r){function o(c,f,h,d){this.state=c,this.mode=f,this.depth=h,this.prev=d}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var h=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(c,f&&f.base||"javascript");function g(_){var N=_.tagName;_.tagName=null;var L=h.indent(_,"","");return _.tagName=N,L}function v(_,N){return N.context.mode==h?y(_,N,N.context):w(_,N,N.context)}function y(_,N,L){if(L.depth==2)return _.match(/^.*?\*\//)?L.depth=1:_.skipToEnd(),"comment";if(_.peek()=="{"){h.skipAttribute(L.state);var A=g(L.state),T=L.state.context;if(T&&_.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?A-=c.indentUnit:L.prev.state.lexical&&(A=L.prev.state.lexical.indented)}else L.depth==1&&(A+=c.indentUnit);return N.context=new o(r.startState(d,A),d,0,N.context),null}if(L.depth==1){if(_.peek()=="<")return h.skipAttribute(L.state),N.context=new o(r.startState(h,g(L.state)),h,0,N.context),null;if(_.match("//"))return _.skipToEnd(),"comment";if(_.match("/*"))return L.depth=2,v(_,N)}var M=h.token(_,L.state),$=_.current(),E;return/\btag\b/.test(M)?/>$/.test($)?L.state.context?L.depth=0:N.context=N.context.prev:/^-1&&_.backUp($.length-E),M}function w(_,N,L){if(_.peek()=="<"&&!_.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&d.expressionAllowed(_,L.state))return N.context=new o(r.startState(h,d.indent(L.state,"","")),h,0,N.context),d.skipExpression(L.state),null;var A=d.token(_,L.state);if(!A&&L.depth!=null){var T=_.current();T=="{"?L.depth++:T=="}"&&--L.depth==0&&(N.context=N.context.prev)}return A}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(_){return{context:s(_.context)}},token:v,indent:function(_,N,L){return _.context.mode.indent(_.context.state,N,L)},innerMode:function(_){return _.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,e){(function(r){r(xs())})(function(r){r.defineOption("placeholder","",function(g,v,y){var w=y&&y!=r.Init;if(v&&!w)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){c(g)}),h(g);else if(!v&&w){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var _=g.getWrapperElement();_.className=_.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function s(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=g.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function c(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var y=g.getInputField();v=y.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(g):o(g)},20)}function f(g){d(g)&&s(g)}function h(g){var v=g.getWrapperElement(),y=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(xs())})(function(r){function o(f,h,d){this.orientation=h,this.scroll=d,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var w=g.orientation=="horizontal"?"pageX":"pageY",_=y[w],N=g.pos;function L(){r.off(document,"mousemove",A),r.off(document,"mouseup",L)}function A(T){if(T.which!=1)return L();g.moveTo(N+(T[w]-_)*(g.total/g.size))}r.on(document,"mousemove",A),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var w=g.inner.getBoundingClientRect(),_;g.orientation=="horizontal"?_=y.clientXw.right?1:0:_=y.clientYw.bottom?1:0,g.moveTo(g.pos+_*g.screen)});function v(y){var w=r.wheelEventPixels(y)[g.orientation=="horizontal"?"x":"y"],_=g.pos;g.moveTo(g.pos+w),g.pos!=_&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,h,d){var g=this.screen!=h||this.total!=f||this.size!=d;g&&(this.screen=h,this.total=f,this.size=d);var v=this.screen*(this.size/this.total);vf.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?d:0)),this.vert.node.style.bottom=g?d+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?d:0)-f.barLeft),this.horiz.node.style.right=v?d+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?d:0,bottom:g?d:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new c("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new c("CodeMirror-overlayscroll",f,h)}})})();function Yat(t,e,r={}){const o=jat.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}e.value=o.getValue()}),Ie(e,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Eh(o)}const Zat={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Mb=fe({__name:"CodeMirror",props:If({mode:{},readOnly:{type:Boolean}},{modelValue:{}}),emits:If(["save"],["update:modelValue"]),setup(t,{expose:e,emit:r}){const o=r,s=k0(t,"modelValue"),c=G_(),f={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}},h=Zt(),d=bs();return e({cm:d}),ws(async()=>{d.value=Yat(h,s,{...c,mode:f[t.mode||""]||t.mode,readOnly:t.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){o("save",g.getValue())},"Ctrl-S":function(g){o("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(st(),St("div",Zat,[tt("textarea",{ref_key:"el",ref:h},null,512)]))}}),Qat=fe({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:e}){const r=t,o=e,s=Zt(""),c=bs(void 0),f=Zt(!1);Ie(()=>r.file,async()=>{var $;if(!r.file||!(($=r.file)!=null&&$.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await De.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1},{immediate:!0});const h=xt(()=>{var $,E;return((E=($=r.file)==null?void 0:$.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),d=Zt(),g=xt(()=>{var $;return($=d.value)==null?void 0:$.cm}),v=xt(()=>{var $;return(($=r.file)==null?void 0:$.tasks.filter(E=>{var H;return((H=E.result)==null?void 0:H.state)==="fail"}))||[]}),y=[],w=[],_=[],N=Zt(!1);function L(){_.forEach(([$,E,H])=>{$.removeEventListener("click",E),H()}),_.length=0}Wlt(d,()=>{var $;($=g.value)==null||$.refresh()});function A(){f.value=c.value!==g.value.getValue()}Ie(f,$=>{o("draft",$)},{immediate:!0});function T($){const E=(($==null?void 0:$.stacks)||[]).filter(rt=>{var dt;return rt.file&&rt.file===((dt=r.file)==null?void 0:dt.filepath)}),H=E==null?void 0:E[0];if(!H)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const ct=document.createElement("pre");ct.className="c-red-600 dark:c-red-400",ct.textContent=`${" ".repeat(H.column)}^ ${($==null?void 0:$.nameStr)||$.name}: ${($==null?void 0:$.message)||""}`,K.appendChild(ct);const Y=document.createElement("span");Y.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Y.tabIndex=0,Y.ariaLabel="Open in Editor",xy(Y,{content:"Open in Editor",placement:"bottom"},!1);const nt=async()=>{await sb(H.file,H.line,H.column)};K.appendChild(Y),_.push([Y,nt,()=>Zh(Y)]),w.push(g.value.addLineClass(H.line-1,"wrap","bg-red-500/10")),y.push(g.value.addLineWidget(H.line-1,K))}Ie([g,v],([$])=>{if(!$){L();return}setTimeout(()=>{L(),y.forEach(E=>E.clear()),w.forEach(E=>{var H;return(H=g.value)==null?void 0:H.removeLineClass(E,"wrap")}),y.length=0,w.length=0,$.on("changes",A),v.value.forEach(E=>{var H,K;(K=(H=E.result)==null?void 0:H.errors)==null||K.forEach(T)}),N.value||$.clearHistory()},100)},{flush:"post"});async function M($){N.value=!0,await De.rpc.saveTestFile(r.file.filepath,$),c.value=$,f.value=!1}return($,E)=>{const H=Mb;return st(),te(H,Li({ref_key:"editor",ref:d,modelValue:U(s),"onUpdate:modelValue":E[0]||(E[0]=K=>Le(s)?s.value=K:null),"h-full":""},{lineNumbers:!0},{mode:U(h),"data-testid":"code-mirror",onSave:M}),null,16,["modelValue","mode"])}}}),Jat=fe({__name:"Modal",props:If({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup(t){const e=k0(t,"modelValue"),r=xt(()=>{switch(t.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=xt(()=>{switch(t.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>e.value=!1;return(c,f)=>(st(),St("div",{class:ge(["fixed inset-0 z-40",e.value?"":"pointer-events-none"])},[tt("div",{class:ge(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",e.value?"opacity-50":"opacity-0"]),onClick:s},null,2),tt("div",{class:ge(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:An(e.value?{}:{transform:U(o)})},[Gn(c.$slots,"default")],6)],2))}}),tct=["aria-label","opacity","disabled","hover"],_s=fe({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(e,r)=>(st(),St("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Gn(e.$slots,"default",{},()=>[tt("div",{class:ge(e.icon),ma:""},null,2)])],8,tct))}}),ect={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},nct={"p-4":"",relative:""},rct=tt("p",null,"Module Info",-1),ict={op50:"","font-mono":"","text-sm":""},oct={key:0,"p-5":""},sct={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},lct=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),act=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),cct={key:0},uct={p:"x3 y-1","bg-overlay":"",border:"base b t"},fct=fe({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:e}){const r=t,o=e,s=Plt(()=>De.rpc.getTransformResult(r.id)),c=xt(()=>{var g;return((g=r.id)==null?void 0:g.split(/\./g).pop())||"js"}),f=xt(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.source)==null?void 0:v.trim())||""}),h=xt(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),d=xt(()=>{var g,v,y,w;return{mappings:((v=(g=s.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(w=(y=s.value)==null?void 0:y.map)==null?void 0:w.version}});return Olt("Escape",()=>{o("close")}),(g,v)=>{const y=_s,w=Mb;return st(),St("div",ect,[tt("div",nct,[rct,tt("p",ict,Ut(g.id),1),Ft(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=_=>o("close"))})]),U(s)?(st(),St(ne,{key:1},[tt("div",sct,[lct,act,Ft(w,Li({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"]),Ft(w,Li({"h-full":"","model-value":U(h),"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])]),U(d).mappings!==""?(st(),St("div",cct,[tt("div",uct," Source map (v"+Ut(U(d).version)+") ",1),Ft(w,Li({"model-value":U(d).mappings,"read-only":""},{lineNumbers:!0},{mode:U(c)}),null,16,["model-value","mode"])])):Gt("",!0)],64)):(st(),St("div",oct," No transform result found for this module. "))])}}});function hct(t,e){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),e)}}var sh="http://www.w3.org/1999/xhtml";const pm={svg:"http://www.w3.org/2000/svg",xhtml:sh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function iu(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),pm.hasOwnProperty(e)?{space:pm[e],local:t}:t}function dct(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===sh&&e.documentElement.namespaceURI===sh?e.createElement(t):e.createElementNS(r,t)}}function pct(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Nb(t){var e=iu(t);return(e.local?pct:dct)(e)}function gct(){}function ad(t){return t==null?gct:function(){return this.querySelector(t)}}function vct(t){typeof t!="function"&&(t=ad(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s=$&&($=M+1);!(H=A[$])&&++$=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function qct(t){t||(t=Bct);function e(y,w){return y&&w?t(y.__data__,w.__data__):!y-!w}for(var r=this._groups,o=r.length,s=new Array(o),c=0;ce?1:t>=e?0:NaN}function Wct(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Uct(){return Array.from(this)}function jct(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?nut:typeof e=="function"?iut:rut)(t,e,r??"")):gs(this.node(),t)}function gs(t,e){return t.style.getPropertyValue(e)||Rb(t).getComputedStyle(t,null).getPropertyValue(e)}function sut(t){return function(){delete this[t]}}function lut(t,e){return function(){this[t]=e}}function aut(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function cut(t,e){return arguments.length>1?this.each((e==null?sut:typeof e=="function"?aut:lut)(t,e)):this.node()[t]}function zb(t){return t.trim().split(/^|\s+/)}function cd(t){return t.classList||new Ib(t)}function Ib(t){this._node=t,this._names=zb(t.getAttribute("class")||"")}Ib.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Fb(t,e){for(var r=cd(t),o=-1,s=e.length;++o=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function zut(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,s=e.length,c;r{}};function Xl(){for(var t=0,e=arguments.length,r={},o;t=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}ic.prototype=Xl.prototype={constructor:ic,on:function(t,e){var r=this._,o=Vut(t+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c0)for(var r=new Array(s),o=0,s,c;o()=>t;function lh(t,{sourceEvent:e,subject:r,target:o,identifier:s,active:c,x:f,y:h,dx:d,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}lh.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Yut(t){return!t.ctrlKey&&!t.button}function Zut(){return this.parentNode}function Qut(t,e){return e??{x:t.x,y:t.y}}function Jut(){return navigator.maxTouchPoints||"ontouchstart"in this}function tft(){var t=Yut,e=Zut,r=Qut,o=Jut,s={},c=Xl("start","drag","end"),f=0,h,d,g,v,y=0;function w(E){E.on("mousedown.drag",_).filter(o).on("touchstart.drag",A).on("touchmove.drag",T,Xut).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(E,H){if(!(v||!t.call(this,E,H))){var K=$(this,e.call(this,E,H),E,H,"mouse");K&&(En(E.view).on("mousemove.drag",N,Rl).on("mouseup.drag",L,Rl),Wb(E.view),Sf(E),g=!1,h=E.clientX,d=E.clientY,K("start",E))}}function N(E){if(is(E),!g){var H=E.clientX-h,K=E.clientY-d;g=H*H+K*K>y}s.mouse("drag",E)}function L(E){En(E.view).on("mousemove.drag mouseup.drag",null),Ub(E.view,g),is(E),s.mouse("end",E)}function A(E,H){if(t.call(this,E,H)){var K=E.changedTouches,ct=e.call(this,E,H),Y=K.length,nt,rt;for(nt=0;nt>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ja(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ja(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=nft.exec(t))?new Ln(e[1],e[2],e[3],1):(e=rft.exec(t))?new Ln(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ift.exec(t))?ja(e[1],e[2],e[3],e[4]):(e=oft.exec(t))?ja(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=sft.exec(t))?_m(e[1],e[2]/100,e[3]/100,1):(e=lft.exec(t))?_m(e[1],e[2]/100,e[3]/100,e[4]):vm.hasOwnProperty(t)?bm(vm[t]):t==="transparent"?new Ln(NaN,NaN,NaN,0):null}function bm(t){return new Ln(t>>16&255,t>>8&255,t&255,1)}function ja(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ln(t,e,r,o)}function uft(t){return t instanceof Yl||(t=Fl(t)),t?(t=t.rgb(),new Ln(t.r,t.g,t.b,t.opacity)):new Ln}function ah(t,e,r,o){return arguments.length===1?uft(t):new Ln(t,e,r,o??1)}function Ln(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}ud(Ln,ah,jb(Yl,{brighter(t){return t=t==null?Lc:Math.pow(Lc,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?zl:Math.pow(zl,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ln(lo(this.r),lo(this.g),lo(this.b),Ac(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:wm,formatHex:wm,formatHex8:fft,formatRgb:xm,toString:xm}));function wm(){return`#${io(this.r)}${io(this.g)}${io(this.b)}`}function fft(){return`#${io(this.r)}${io(this.g)}${io(this.b)}${io((isNaN(this.opacity)?1:this.opacity)*255)}`}function xm(){const t=Ac(this.opacity);return`${t===1?"rgb(":"rgba("}${lo(this.r)}, ${lo(this.g)}, ${lo(this.b)}${t===1?")":`, ${t})`}`}function Ac(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function lo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function io(t){return t=lo(t),(t<16?"0":"")+t.toString(16)}function _m(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new lr(t,e,r,o)}function Gb(t){if(t instanceof lr)return new lr(t.h,t.s,t.l,t.opacity);if(t instanceof Yl||(t=Fl(t)),!t)return new lr;if(t instanceof lr)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,s=Math.min(e,r,o),c=Math.max(e,r,o),f=NaN,h=c-s,d=(c+s)/2;return h?(e===c?f=(r-o)/h+(r0&&d<1?0:f,new lr(f,h,d,t.opacity)}function hft(t,e,r,o){return arguments.length===1?Gb(t):new lr(t,e,r,o??1)}function lr(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}ud(lr,hft,jb(Yl,{brighter(t){return t=t==null?Lc:Math.pow(Lc,t),new lr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?zl:Math.pow(zl,t),new lr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,s=2*r-o;return new Ln(kf(t>=240?t-240:t+120,s,o),kf(t,s,o),kf(t<120?t+240:t-120,s,o),this.opacity)},clamp(){return new lr(Sm(this.h),Ga(this.s),Ga(this.l),Ac(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 t=Ac(this.opacity);return`${t===1?"hsl(":"hsla("}${Sm(this.h)}, ${Ga(this.s)*100}%, ${Ga(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Sm(t){return t=(t||0)%360,t<0?t+360:t}function Ga(t){return Math.max(0,Math.min(1,t||0))}function kf(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Vb=t=>()=>t;function dft(t,e){return function(r){return t+r*e}}function pft(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}function gft(t){return(t=+t)==1?Kb:function(e,r){return r-e?pft(e,r,t):Vb(isNaN(e)?r:e)}}function Kb(t,e){var r=e-t;return r?dft(t,r):Vb(isNaN(t)?e:t)}const km=function t(e){var r=gft(e);function o(s,c){var f=r((s=ah(s)).r,(c=ah(c)).r),h=r(s.g,c.g),d=r(s.b,c.b),g=Kb(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=h(v),s.b=d(v),s.opacity=g(v),s+""}}return o.gamma=t,o}(1);function _i(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var ch=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cf=new RegExp(ch.source,"g");function vft(t){return function(){return t}}function mft(t){return function(e){return t(e)+""}}function yft(t,e){var r=ch.lastIndex=Cf.lastIndex=0,o,s,c,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=ch.exec(t))&&(s=Cf.exec(e));)(c=s.index)>r&&(c=e.slice(r,c),h[f]?h[f]+=c:h[++f]=c),(o=o[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,d.push({i:f,x:_i(o,s)})),r=Cf.lastIndex;return r180?v+=360:v-g>180&&(g+=360),w.push({i:y.push(s(y)+"rotate(",null,o)-2,x:_i(g,v)})):v&&y.push(s(y)+"rotate("+v+o)}function h(g,v,y,w){g!==v?w.push({i:y.push(s(y)+"skewX(",null,o)-2,x:_i(g,v)}):v&&y.push(s(y)+"skewX("+v+o)}function d(g,v,y,w,_,N){if(g!==y||v!==w){var L=_.push(s(_)+"scale(",null,",",null,")");N.push({i:L-4,x:_i(g,y)},{i:L-2,x:_i(v,w)})}else(y!==1||w!==1)&&_.push(s(_)+"scale("+y+","+w+")")}return function(g,v){var y=[],w=[];return g=t(g),v=t(v),c(g.translateX,g.translateY,v.translateX,v.translateY,y,w),f(g.rotate,v.rotate,y,w),h(g.skewX,v.skewX,y,w),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,y,w),g=v=null,function(_){for(var N=-1,L=w.length,A;++N=0&&t._call.call(void 0,e),t=t._next;--vs}function Em(){ho=(Nc=Hl.now())+ou,vs=al=0;try{Lft()}finally{vs=0,Mft(),ho=0}}function Aft(){var t=Hl.now(),e=t-Nc;e>Zb&&(ou-=e,Nc=t)}function Mft(){for(var t,e=Mc,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Mc=r);cl=t,fh(o)}function fh(t){if(!vs){al&&(al=clearTimeout(al));var e=t-ho;e>24?(t<1/0&&(al=setTimeout(Em,t-Hl.now()-ou)),il&&(il=clearInterval(il))):(il||(Nc=Hl.now(),il=setInterval(Aft,Zb)),vs=1,Qb(Em))}}function Lm(t,e,r){var o=new Pc;return e=e==null?0:+e,o.restart(s=>{o.stop(),t(s+e)},e,r),o}var Nft=Xl("start","end","cancel","interrupt"),Pft=[],Jb=0,Am=1,hh=2,oc=3,Mm=4,dh=5,sc=6;function su(t,e,r,o,s,c){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;$ft(t,r,{name:e,index:o,group:s,on:Nft,tween:Pft,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Jb})}function dd(t,e){var r=fr(t,e);if(r.state>Jb)throw new Error("too late; already scheduled");return r}function Nr(t,e){var r=fr(t,e);if(r.state>oc)throw new Error("too late; already running");return r}function fr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function $ft(t,e,r){var o=t.__transition,s;o[e]=r,r.timer=hd(c,0,r.time);function c(g){r.state=Am,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,y,w,_;if(r.state!==Am)return d();for(v in o)if(_=o[v],_.name===r.name){if(_.state===oc)return Lm(f);_.state===Mm?(_.state=sc,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete o[v]):+vhh&&o.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function cht(t,e,r){var o,s,c=aht(e)?dd:Nr;return function(){var f=c(this,t),h=f.on;h!==o&&(s=(o=h).copy()).on(e,r),f.on=s}}function uht(t,e){var r=this._id;return arguments.length<2?fr(this.node(),r).on.on(t):this.each(cht(r,t,e))}function fht(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function hht(){return this.on("end.remove",fht(this._id))}function dht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=ad(t));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f()=>t;function Iht(t,{sourceEvent:e,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function Ur(t,e,r){this.k=t,this.x=e,this.y=r}Ur.prototype={constructor:Ur,scale:function(t){return t===1?this:new Ur(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ur(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var gd=new Ur(1,0,0);Ur.prototype;function Tf(t){t.stopImmediatePropagation()}function ol(t){t.preventDefault(),t.stopImmediatePropagation()}function Fht(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Hht(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Nm(){return this.__zoom||gd}function qht(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Bht(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wht(t,e,r){var o=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],c=t.invertY(e[0][1])-r[0][1],f=t.invertY(e[1][1])-r[1][1];return t.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Uht(){var t=Fht,e=Hht,r=Wht,o=qht,s=Bht,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=Tft,g=Xl("start","zoom","end"),v,y,w,_=500,N=150,L=0,A=10;function T(z){z.property("__zoom",Nm).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",nt).on("dblclick.zoom",rt).filter(s).on("touchstart.zoom",dt).on("touchmove.zoom",ht).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,F,B){var Q=z.selection?z.selection():z;Q.property("__zoom",Nm),z!==Q?H(z,k,F,B):Q.interrupt().each(function(){K(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,F,B){T.scaleTo(z,function(){var Q=this.__zoom.k,yt=typeof k=="function"?k.apply(this,arguments):k;return Q*yt},F,B)},T.scaleTo=function(z,k,F,B){T.transform(z,function(){var Q=e.apply(this,arguments),yt=this.__zoom,At=F==null?E(Q):typeof F=="function"?F.apply(this,arguments):F,Ht=yt.invert(At),qt=typeof k=="function"?k.apply(this,arguments):k;return r($(M(yt,qt),At,Ht),Q,f)},F,B)},T.translateBy=function(z,k,F,B){T.transform(z,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof F=="function"?F.apply(this,arguments):F),e.apply(this,arguments),f)},null,B)},T.translateTo=function(z,k,F,B,Q){T.transform(z,function(){var yt=e.apply(this,arguments),At=this.__zoom,Ht=B==null?E(yt):typeof B=="function"?B.apply(this,arguments):B;return r(gd.translate(Ht[0],Ht[1]).scale(At.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof F=="function"?-F.apply(this,arguments):-F),yt,f)},B,Q)};function M(z,k){return k=Math.max(c[0],Math.min(c[1],k)),k===z.k?z:new Ur(k,z.x,z.y)}function $(z,k,F){var B=k[0]-F[0]*z.k,Q=k[1]-F[1]*z.k;return B===z.x&&Q===z.y?z:new Ur(z.k,B,Q)}function E(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function H(z,k,F,B){z.on("start.zoom",function(){K(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(B).end()}).tween("zoom",function(){var Q=this,yt=arguments,At=K(Q,yt).event(B),Ht=e.apply(Q,yt),qt=F==null?E(Ht):typeof F=="function"?F.apply(Q,yt):F,Jt=Math.max(Ht[1][0]-Ht[0][0],Ht[1][1]-Ht[0][1]),Qt=Q.__zoom,Vt=typeof k=="function"?k.apply(Q,yt):k,Tt=d(Qt.invert(qt).concat(Jt/Qt.k),Vt.invert(qt).concat(Jt/Vt.k));return function(j){if(j===1)j=Vt;else{var it=Tt(j),at=Jt/it[2];j=new Ur(at,qt[0]-it[0]*at,qt[1]-it[1]*at)}At.zoom(null,j)}})}function K(z,k,F){return!F&&z.__zooming||new ct(z,k)}function ct(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(z,k),this.taps=0}ct.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,k){return this.mouse&&z!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&z!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){var k=En(this.that).datum();g.call(z,this.that,new Iht(z,{sourceEvent:this.sourceEvent,target:T,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function Y(z,...k){if(!t.apply(this,arguments))return;var F=K(this,k).event(z),B=this.__zoom,Q=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),yt=Wr(z);if(F.wheel)(F.mouse[0][0]!==yt[0]||F.mouse[0][1]!==yt[1])&&(F.mouse[1]=B.invert(F.mouse[0]=yt)),clearTimeout(F.wheel);else{if(B.k===Q)return;F.mouse=[yt,B.invert(yt)],lc(this),F.start()}ol(z),F.wheel=setTimeout(At,N),F.zoom("mouse",r($(M(B,Q),F.mouse[0],F.mouse[1]),F.extent,f));function At(){F.wheel=null,F.end()}}function nt(z,...k){if(w||!t.apply(this,arguments))return;var F=z.currentTarget,B=K(this,k,!0).event(z),Q=En(z.view).on("mousemove.zoom",qt,!0).on("mouseup.zoom",Jt,!0),yt=Wr(z,F),At=z.clientX,Ht=z.clientY;Wb(z.view),Tf(z),B.mouse=[yt,this.__zoom.invert(yt)],lc(this),B.start();function qt(Qt){if(ol(Qt),!B.moved){var Vt=Qt.clientX-At,Tt=Qt.clientY-Ht;B.moved=Vt*Vt+Tt*Tt>L}B.event(Qt).zoom("mouse",r($(B.that.__zoom,B.mouse[0]=Wr(Qt,F),B.mouse[1]),B.extent,f))}function Jt(Qt){Q.on("mousemove.zoom mouseup.zoom",null),Ub(Qt.view,B.moved),ol(Qt),B.event(Qt).end()}}function rt(z,...k){if(t.apply(this,arguments)){var F=this.__zoom,B=Wr(z.changedTouches?z.changedTouches[0]:z,this),Q=F.invert(B),yt=F.k*(z.shiftKey?.5:2),At=r($(M(F,yt),B,Q),e.apply(this,k),f);ol(z),h>0?En(this).transition().duration(h).call(H,At,B,z):En(this).call(T.transform,At,B,z)}}function dt(z,...k){if(t.apply(this,arguments)){var F=z.touches,B=F.length,Q=K(this,k,z.changedTouches.length===B).event(z),yt,At,Ht,qt;for(Tf(z),At=0;At=(y=(h+g)/2))?h=y:g=y,(A=r>=(w=(d+v)/2))?d=w:v=w,s=c,!(c=c[T=A<<1|L]))return s[T]=f,t;if(_=+t._x.call(null,c.data),N=+t._y.call(null,c.data),e===_&&r===N)return f.next=c,s?s[T]=f:t._root=f,t;do s=s?s[T]=new Array(4):t._root=new Array(4),(L=e>=(y=(h+g)/2))?h=y:g=y,(A=r>=(w=(d+v)/2))?d=w:v=w;while((T=A<<1|L)===(M=(N>=w)<<1|_>=y));return s[M]=c,s[T]=f,t}function Ght(t){var e,r,o=t.length,s,c,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,y=-1/0;for(r=0;rv&&(v=s),cy&&(y=c));if(d>v||g>y)return this;for(this.cover(d,g).cover(v,y),r=0;rt||t>=s||o>e||e>=c;)switch(g=(ev||(h=N.y0)>y||(d=N.x1)=T)<<1|t>=A)&&(N=w[w.length-1],w[w.length-1]=w[w.length-1-L],w[w.length-1-L]=N)}else{var M=t-+this._x.call(null,_.data),$=e-+this._y.call(null,_.data),E=M*M+$*$;if(E=(w=(f+d)/2))?f=w:d=w,(L=y>=(_=(h+g)/2))?h=_:g=_,e=r,!(r=r[A=L<<1|N]))return this;if(!r.length)break;(e[A+1&3]||e[A+2&3]||e[A+3&3])&&(o=e,T=A)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):e?(c?e[A]=c:delete e[A],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=c,this)}function Qht(t){for(var e=0,r=t.length;ew.index){var dt=_-Y.x-Y.vx,ht=N-Y.y-Y.vy,G=dt*dt+ht*ht;G_+rt||K<_-rt||H>N+rt||ctg.r&&(g.r=g[v].r)}function d(){if(e){var g,v=e.length,y;for(r=new Array(v),g=0;g[e(H,K,f),H])),E;for(A=0,h=new Array(T);A(t=(hdt*t+ddt)%Om)/Om}function gdt(t){return t.x}function vdt(t){return t.y}var mdt=10,ydt=Math.PI*(3-Math.sqrt(5));function bdt(t){var e,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,h=new Map,d=hd(y),g=Xl("tick","end"),v=pdt();t==null&&(t=[]);function y(){w(),g.call("tick",e),r1?(A==null?h.delete(L):h.set(L,N(A)),e):h.get(L)},find:function(L,A,T){var M=0,$=t.length,E,H,K,ct,Y;for(T==null?T=1/0:T*=T,M=0;M<$;++M)ct=t[M],E=L-ct.x,H=A-ct.y,K=E*E+H*H,K1?(g.on(L,A),e):g.on(L)}}}function wdt(){var t,e,r,o,s=vn(-30),c,f=1,h=1/0,d=.81;function g(_){var N,L=t.length,A=vd(t,gdt,vdt).visitAfter(y);for(o=_,N=0;N=h)return;(_.data!==e||_.next)&&(T===0&&(T=ki(r),E+=T*T),M===0&&(M=ki(r),E+=M*M),Ee in t?Sdt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$e=(t,e,r)=>(kdt(t,typeof e!="symbol"?e+"":e,r),r);function Cdt(){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 Dm(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}function Ci(...t){return t.reduce((e,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(e[o])&&Array.isArray(r[o])?e[o]=Ci.options.mergeArrays?Array.from(new Set(e[o].concat(r[o]))):r[o]:Dm(e[o])&&Dm(r[o])?e[o]=Ci(e[o],r[o]):e[o]=r[o])}),e},{})}const iw={mergeArrays:!0};Ci.options=iw;Ci.withOptions=(t,...e)=>{Ci.options={mergeArrays:!0,...t};const r=Ci(...e);return Ci.options=iw,r};function Tdt(){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 Edt(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function ow(t){t.preventDefault(),t.stopPropagation()}function sw(t){return typeof t=="number"}function Di(t,e){return sw(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function Ldt(t){return`${t.source.id}-${t.target.id}`}function lw(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function Adt(t){return`url(#${lw(t.color)})`}function Mdt(t){return{size:t,padding:(e,r)=>Di(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const aw={Arrow:t=>Mdt(t)},Ndt=(t,e,r)=>[e/2,r/2],cw=(t,e,r)=>[Rm(0,e),Rm(0,r)];function Rm(t,e){return Math.random()*(e-t)+t}function Pdt(t){const e=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=e[r.id]??[];return!c||!f?cw(r,o,s):[c,f]}}const ph={Centered:Ndt,Randomized:cw,Stable:Pdt};function $dt(){return{autoResize:!1,callbacks:{},hooks:{},initial:Edt(),nodeRadius:16,marker:aw.Arrow(4),modifiers:{},positionInitializer:ph.Centered,simulation:{alphas:Cdt(),forces:Tdt()},zoom:{initial:1,min:.1,max:2}}}function Odt(t={}){return Ci.withOptions({mergeArrays:!1},$dt(),t)}function Ddt({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:h,zoom:d}){const g=e.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>ow(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return t&&g.call(d.transform,gd.translate(c,f).scale(h)),g.append("g")}function Rdt({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function zdt({config:t,onDragStart:e,onDragEnd:r}){var o,s;const c=tft().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&e(f,h),En(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),En(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(s=(o=t.modifiers).drag)==null||s.call(o,c),c}function Idt({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&s(d)),f=d=>c.find(g=>g.source.id===d.id||g.target.id===d.id)!==void 0,h=t.nodes.filter(d=>e.includes(d.type)&&(o||f(d)));return r===void 0||!e.includes(r.type)?{nodes:h,links:c}:Fdt({nodes:h,links:c},r)}function Fdt(t,e){const r=[...Hdt(t,e),...qdt(t,e)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function Hdt(t,e){return uw(t,e,(r,o)=>r.target.id===o.id)}function qdt(t,e){return uw(t,e,(r,o)=>r.source.id===o.id)}function uw(t,e,r){const o=new Set(t.links),s=new Set([e]),c=[];for(;o.size>0;){const f=[...o].filter(h=>[...s].some(d=>r(h,d)));if(f.length===0)return c;f.forEach(h=>{s.add(h.source),s.add(h.target),c.push(h),o.delete(h)})}return c}function gh(t){return t.x??0}function vh(t){return t.y??0}function yd({source:t,target:e}){const r=new pn(gh(t),vh(t)),o=new pn(gh(e),vh(e)),s=o.subtract(r),c=s.length(),f=s.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:h}}function fw({center:t,node:e}){const r=new pn(gh(e),vh(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new pn(0,1))),{n:r,c:o}}function hw({config:t,source:e,target:r}){const{s:o,t:s,norm:c}=yd({config:t,source:e,target:r}),f=o.add(c.multiply(Di(t,e)-1)),h=s.subtract(c.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function Bdt(t){const{start:e,end:r}=hw(t);return`M${e.x},${e.y} L${r.x},${r.y}`}function Wdt(t){const{start:e,end:r}=hw(t),o=r.subtract(e).multiply(.5),s=e.add(o);return`translate(${s.x-8},${s.y-4})`}function Udt({config:t,source:e,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:h}=yd({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(Di(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(Di(t,r)).add(s).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),y=1.2*c;return`M${g.x},${g.y} A${y},${y},0,0,1,${v.x},${v.y}`}function jdt({center:t,config:e,node:r}){const{n:o,c:s}=fw({center:t,config:e,node:r}),c=Di(e,r),f=o.subtract(s),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(c-1).add(o),v=h.rotateByDegrees(-d).multiply(c).add(o).add(h.rotateByDegrees(-d).multiply(2*e.marker.size));return`M${g.x},${g.y} A${c},${c},0,1,0,${v.x},${v.y}`}function Gdt({config:t,source:e,target:r}){const{t:o,dist:s,endNorm:c}=yd({config:t,source:e,target:r}),f=10,h=c.rotateByDegrees(f).multiply(.5*s).add(o);return`translate(${h.x},${h.y})`}function Vdt({center:t,config:e,node:r}){const{n:o,c:s}=fw({center:t,config:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*Di(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const ss={line:{labelTransform:Wdt,path:Bdt},arc:{labelTransform:Gdt,path:Udt},reflexive:{labelTransform:Vdt,path:jdt}};function Kdt(t){return t.append("g").classed("links",!0).selectAll("path")}function Xdt({config:t,graph:e,selection:r,showLabels:o}){const s=r==null?void 0:r.data(e.links,c=>Ldt(c)).join(c=>{var f,h,d,g;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",_=>Adt(_)).style("stroke",_=>_.color);(h=(f=t.modifiers).link)==null||h.call(f,y);const w=v.append("text").classed("link__label",!0).style("fill",_=>_.label?_.label.color:null).style("font-size",_=>_.label?_.label.fontSize:null).text(_=>_.label?_.label.text:null);return(g=(d=t.modifiers).linkLabel)==null||g.call(d,w),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Ydt(t){Zdt(t),Qdt(t)}function Zdt({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?ss.reflexive.path({config:e,node:s.source,center:t}):dw(r,s.source,s.target)?ss.arc.path({config:e,source:s.source,target:s.target}):ss.line.path({config:e,source:s.source,target:s.target}))}function Qdt({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?ss.reflexive.labelTransform({config:t,node:s.source,center:e}):dw(r,s.source,s.target)?ss.arc.labelTransform({config:t,source:s.source,target:s.target}):ss.line.labelTransform({config:t,source:s.source,target:s.target}))}function dw(t,e,r){return e.id!==r.id&&t.links.some(o=>o.target.id===e.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===e.id)}function Jdt(t){return t.append("defs").selectAll("marker")}function tpt({config:t,graph:e,selection:r}){return r==null?void 0:r.data(ept(e),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>lw(c)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",npt(t.marker.path)),s})}function ept(t){return[...new Set(t.links.map(e=>e.color))]}function npt(t){const[e,...r]=t;if(!e)return"M0,0";const[o,s]=e;return r.reduce((c,[f,h])=>`${c}L${f},${h}`,`M${o},${s}`)}function rpt(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function ipt({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const h=c==null?void 0:c.data(r.nodes,d=>d.id).join(d=>{var g,v,y,w;const _=d.append("g");e!==void 0&&_.call(e);const N=_.append("circle").classed("node",!0).attr("r",A=>Di(t,A)).on("contextmenu",(A,T)=>{ow(A),o(T)}).on("pointerdown",(A,T)=>spt(A,T,s??o)).style("fill",A=>A.color);(v=(g=t.modifiers).node)==null||v.call(g,N);const L=_.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",A=>A.label?A.label.color:null).style("font-size",A=>A.label?A.label.fontSize:null).style("stroke","none").text(A=>A.label?A.label.text:null);return(w=(y=t.modifiers).nodeLabel)==null||w.call(y,L),_});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const opt=500;function spt(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>opt){e.lastInteractionTimestamp=s;return}e.lastInteractionTimestamp=void 0,r(e)}function lpt(t){t==null||t.attr("transform",e=>`translate(${e.x??0},${e.y??0})`)}function apt({center:t,config:e,graph:r,onTick:o}){var s,c;const f=bdt(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;f.force("x",xdt(()=>t().x).strength(y)).force("y",_dt(()=>t().y).strength(y))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",wdt().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",cdt().radius(y=>g.radiusMultiplier*Di(e,y)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",fdt(r.links).id(y=>y.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=e.modifiers).simulation)==null||c.call(s,f),f}function cpt({canvasContainer:t,config:e,min:r,max:o,onZoom:s}){var c,f;const h=Uht().scaleExtent([r,o]).filter(d=>{var g;return d.button===0||((g=d.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",d=>s(d)).on("end",()=>t().classed("grabbed",!1));return(f=(c=e.modifiers).zoom)==null||f.call(c,h),h}class upt{constructor(e,r,o){if($e(this,"nodeTypes"),$e(this,"_nodeTypeFilter"),$e(this,"_includeUnlinked",!0),$e(this,"_linkFilter",()=>!0),$e(this,"_showLinkLabels",!0),$e(this,"_showNodeLabels",!0),$e(this,"filteredGraph"),$e(this,"width",0),$e(this,"height",0),$e(this,"simulation"),$e(this,"canvas"),$e(this,"linkSelection"),$e(this,"nodeSelection"),$e(this,"markerSelection"),$e(this,"zoom"),$e(this,"drag"),$e(this,"xOffset",0),$e(this,"yOffset",0),$e(this,"scale"),$e(this,"focusedNode"),$e(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(hct(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=e?r:o;this.restart(s)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=e?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=e?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return pn.of([this.width,this.height]).divide(2).subtract(pn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=e.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(sw(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:s}))}restart(e){var r;this.markerSelection=tpt({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Xdt({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=ipt({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=apt({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,r){e?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var e,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(e=this.resizeObserver)==null||e.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=cpt({config:this.config,canvasContainer:()=>En(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Ddt({applyZoom:this.scale!==1,container:En(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Kdt(this.canvas),this.nodeSelection=rpt(this.canvas),this.markerSelection=Jdt(this.canvas),this.drag=zdt({config:this.config,onDragStart:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){lpt(this.nodeSelection),Ydt({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),En(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){var r,o,s;this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Rdt({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Idt({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function zm({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function fpt(t){return{...t}}function pw(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const hpt={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},dpt={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},ppt=["id","checked","onChange"],gpt=["for"],vpt=tt("div",{"flex-auto":""},null,-1),mpt=fe({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const e=t,{graph:r}=o_(e),o=Zt(),s=Zt(!1),c=Zt(),f=Zt();Rh(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),ws(()=>{g()}),Ih(()=>{var y;(y=f.value)==null||y.shutdown()}),Ie(r,g);function h(y,w){var _;(_=f.value)==null||_.filterNodesByType(w,y)}function d(y){c.value=y,s.value=!0}function g(){var y;(y=f.value)==null||y.shutdown(),!(!r.value||!o.value)&&(f.value=new upt(o.value,r.value,Odt({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:_})=>w===0&&_===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:aw.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?ph.Randomized:ph.Centered,zoom:{min:.5,max:2}})))}function v(y){if(Xr)return;const w=A=>A.button===0;let _=0,N=0,L=0;y.on("pointerdown",(A,T)=>{T.type!=="external"&&(!T.x||!T.y||!w(A)||(_=T.x,N=T.y,L=Date.now()))}).on("pointerup",(A,T)=>{if(T.type==="external"||!T.x||!T.y||!w(A)||Date.now()-L>500)return;const M=T.x-_,$=T.y-N;M**2+$**2<100&&d(T.id)})}return(y,w)=>{var T;const _=_s,N=fct,L=Jat,A=vo("tooltip");return st(),St("div",hpt,[tt("div",null,[tt("div",dpt,[(st(!0),St(ne,null,Rn((T=U(f))==null?void 0:T.nodeTypes.sort(),M=>{var $;return st(),St("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[tt("input",{id:`type-${M}`,type:"checkbox",checked:($=U(f))==null?void 0:$.nodeTypeFilter.includes(M),onChange:E=>h(M,E.target.checked)},null,40,ppt),tt("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${M}`,"border-b-2":"",style:An({"border-color":`var(--color-node-${M})`})},Ut(M)+" Modules",13,gpt)])}),128)),vpt,tt("div",null,[nn(Ft(_,{icon:"i-carbon-reset",onClick:g},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),tt("div",{ref_key:"el",ref:o},null,512),Ft(L,{modelValue:U(s),"onUpdate:modelValue":w[1]||(w[1]=M=>Le(s)?s.value=M:null),direction:"right"},{default:ee(()=>[U(c)?(st(),te(k_,{key:0},{default:ee(()=>[Ft(N,{id:U(c),onClose:w[0]||(w[0]=M=>s.value=!1)},null,8,["id"])]),_:1})):Gt("",!0)]),_:1},8,["modelValue"])])}}}),ypt={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},bpt={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},wpt={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},xpt={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},_pt={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Spt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},bd=fe({__name:"StatusIcon",props:{task:{}},setup(t){return(e,r)=>{var s,c,f;const o=vo("tooltip");return((s=e.task.result)==null?void 0:s.state)==="pass"?(st(),St("div",ypt)):U(tu)(e.task)?nn((st(),St("div",bpt,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((c=e.task.result)==null?void 0:c.state)==="fail"?(st(),St("div",wpt)):e.task.mode==="todo"?nn((st(),St("div",xpt,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((f=e.task.result)==null?void 0:f.state)==="skip"?nn((st(),St("div",_pt,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(st(),St("div",Spt))}}});function kpt(t){const e=new Map,r=new Map,o=[];for(;;){let s=0;if(t.forEach((c,f)=>{var v;const{splits:h,finished:d}=c;if(d){s++;const{raw:y,candidate:w}=c;e.set(y,w);return}if(h.length===0){c.finished=!0;return}const g=h[0];r.has(g)?(c.candidate+=c.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(c=>{const f=t[c],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(c=>{if(c.length===1){const f=c[0];t[f].finished=!0}}),r.clear(),o.length=0,s===t.length)break}return e}function Cpt(t){let e=t;e.includes("/node_modules/")&&(e=t.split(/\/node_modules\//g).pop());const r=e.split(/\//g);return{raw:e,splits:r,candidate:"",finished:!1,id:t}}function Tpt(t){const e=t.map(o=>Cpt(o)),r=kpt(e);return e.map(({raw:o,id:s})=>pw({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Ept(t,e){return pw({color:e?"var(--color-node-root)":"var(--color-node-inline)",label:{color:e?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function Lpt(t,e){if(!t)return zm({});const r=Tpt(t.externalized),o=t.inlined.map(h=>Ept(h,h===e))??[],s=[...r,...o],c=Object.fromEntries(s.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=c[h],y=c[g];if(!(v===void 0||y===void 0))return fpt({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return zm({nodes:s,links:f})}const Apt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Mpt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Npt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Ppt={class:"flex text-lg"},$pt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Opt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Dpt=["flex-1"],Rpt=fe({__name:"FileDetails",setup(t){const e=Zt({externalized:[],graph:{},inlined:[]}),r=Zt({nodes:[],links:[]}),o=Zt(!1),s=Zt(!1);Mlt(Se,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await De.rpc.getModuleGraph(g.filepath),r.value=Lpt(e.value,g.filepath))},{debounce:100,immediate:!0});function c(){var v;const g=(v=Se.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)}function f(g){g==="graph"&&(s.value=!0),nr.value=g}const h=xt(()=>{var g;return((g=kb.value)==null?void 0:g.reduce((v,{size:y})=>v+y,0))??0});function d(g){o.value=g}return(g,v)=>{var M,$;const y=bd,w=_s,_=mpt,N=Qat,L=Wat,A=Nat,T=vo("tooltip");return U(Se)?(st(),St("div",Apt,[tt("div",null,[tt("div",Mpt,[Ft(y,{task:U(Se)},null,8,["task"]),tt("div",Npt,Ut((M=U(Se))==null?void 0:M.filepath),1),tt("div",Ppt,[U(Xr)?Gt("",!0):nn((st(),te(w,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!(($=U(Se))!=null&&$.filepath),onClick:c},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),tt("div",$pt,[tt("button",{"tab-button":"",class:ge({"tab-button-active":U(nr)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=E=>f(null))}," Report ",2),tt("button",{"tab-button":"","data-testid":"btn-graph",class:ge({"tab-button-active":U(nr)==="graph"}),onClick:v[1]||(v[1]=E=>f("graph"))}," Module Graph ",2),U(Xr)?Gt("",!0):(st(),St("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ge({"tab-button-active":U(nr)==="editor"}),onClick:v[2]||(v[2]=E=>f("editor"))},Ut(U(o)?"* ":"")+"Code ",3)),tt("button",{"tab-button":"","data-testid":"btn-console",class:ge({"tab-button-active":U(nr)==="console",op20:U(nr)!=="console"&&U(h)===0}),onClick:v[3]||(v[3]=E=>f("console"))}," Console ("+Ut(U(h))+") ",3)])]),tt("div",Opt,[U(s)?(st(),St("div",{key:0,"flex-1":U(nr)==="graph"&&""},[nn(Ft(_,{graph:U(r),"data-testid":"graph"},null,8,["graph"]),[[Uf,U(nr)==="graph"]])],8,Dpt)):Gt("",!0),U(nr)==="editor"?(st(),te(N,{key:U(Se).filepath,file:U(Se),"data-testid":"editor",onDraft:d},null,8,["file"])):U(nr)==="console"?(st(),te(L,{key:2,file:U(Se),"data-testid":"console"},null,8,["file"])):U(nr)?Gt("",!0):(st(),te(A,{key:3,file:U(Se),"data-testid":"report"},null,8,["file"]))])])):Gt("",!0)}}}),zpt=["open"],Ipt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Fpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Hpt=fe({__name:"DetailsPanel",props:{color:{}},setup(t){const e=Zt(!0);return(r,o)=>(st(),St("div",{open:U(e),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>e.value=s.target.open)},[tt("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ge(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[Ipt,Gn(r.$slots,"summary",{open:U(e)}),Fpt],2),Gn(r.$slots,"default")],40,zpt))}}),qpt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Bpt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},Wpt=["text"],Upt={"text-sm":"",truncate:"","font-light":""},jpt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Gpt=fe({__name:"TaskItem",props:{task:{}},setup(t){const e=t,r=xt(()=>{const{result:o}=e.task;return o&&Math.round(o.duration||0)});return(o,s)=>{var f,h;const c=bd;return o.task?(st(),St("div",qpt,[Ft(c,{task:o.task,"mr-2":""},null,8,["task"]),o.task.type==="suite"&&o.task.meta.typecheck?(st(),St("div",Bpt)):Gt("",!0),tt("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=o.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[tt("span",Upt,Ut(o.task.name),1),typeof U(r)=="number"?(st(),St("span",jpt,Ut(U(r)>0?U(r):"< 1")+"ms ",1)):Gt("",!0)],8,Wpt)])):Gt("",!0)}}});function Vpt(t){return Object.hasOwnProperty.call(t,"tasks")}function gw(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}const Kpt={key:1},Xpt=fe({inheritAttrs:!1,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{type:Function}},setup(t){return(e,r)=>{const o=Gpt,s=co("TaskTree",!0);return st(),St(ne,null,[!e.nested||!e.search||U(gw)(e.task.name,e.search)?(st(),te(o,Li({key:0},e.$attrs,{task:e.task,style:{paddingLeft:`${e.indent*.75+1}rem`},onClick:r[0]||(r[0]=c=>e.onItemClick&&e.onItemClick(e.task))}),null,16,["task","style"])):Gt("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(st(),St("div",Kpt,[(st(!0),St(ne,null,Rn(e.task.tasks,c=>(st(),te(s,{key:c.id,task:c,nested:e.nested,indent:e.indent+1,search:e.search,"on-item-click":e.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):Gt("",!0)],64)}}}),Ypt={h:"full",flex:"~ col"},Zpt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Qpt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Jpt=tt("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),tgt=["op"],egt={class:"scrolls","flex-auto":"","py-1":""},ngt={"text-red5":""},rgt={"text-yellow5":""},igt={"text-green5":""},ogt={class:"text-purple5:50"},sgt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},lgt=tt("div",{op30:""}," No matched test ",-1),vw=fe({inheritAttrs:!1,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{type:Function}},emits:["run"],setup(t,{emit:e}){const r=e,o=Zt(""),s=Zt(),c=xt(()=>o.value.trim()!==""),f=xt(()=>o.value.trim()?t.tasks.filter(A=>L([A],o.value)):t.tasks),h=xt(()=>c.value?f.value.map(A=>kc(A.id)).filter(Boolean):[]),d=xt(()=>f.value.filter(A=>{var T;return((T=A.result)==null?void 0:T.state)==="fail"})),g=xt(()=>f.value.filter(A=>{var T;return((T=A.result)==null?void 0:T.state)==="pass"})),v=xt(()=>f.value.filter(A=>A.mode==="skip"||A.mode==="todo")),y=xt(()=>f.value.filter(A=>!d.value.includes(A)&&!g.value.includes(A)&&!v.value.includes(A))),w=xt(()=>o.value===""),_=Llt(y,250);function N(A){var T;o.value="",A&&((T=s.value)==null||T.focus())}function L(A,T){let M=!1;for(let $=0;${const M=_s,$=Xpt,E=Hpt,H=vo("tooltip");return st(),St("div",Ypt,[tt("div",null,[tt("div",Zpt,[Gn(A.$slots,"header",{filteredTests:U(c)?U(h):void 0})]),tt("div",Qpt,[Jpt,nn(tt("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":T[0]||(T[0]=K=>Le(o)?o.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(o).length?"100":"50",onKeydown:[T[1]||(T[1]=Gf(K=>N(!1),["esc"])),T[2]||(T[2]=Gf(K=>r("run",U(c)?U(h):void 0),["enter"]))]},null,40,tgt),[[jS,U(o)]]),nn(Ft(M,{disabled:U(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=K=>N(!0))},null,8,["disabled"]),[[H,"Clear search",void 0,{bottom:!0}]])])]),tt("div",egt,[A.groupByType?(st(),St(ne,{key:0},[U(d).length?(st(),te(E,{key:0},{summary:ee(()=>[tt("div",ngt," FAIL ("+Ut(U(d).length)+") ",1)]),default:ee(()=>[(st(!0),St(ne,null,Rn(U(d),K=>(st(),te($,{key:K.id,task:K,nested:A.nested,search:U(o),class:ge(U(xr)===K.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Gt("",!0),U(y).length||U(Dl)==="running"?(st(),te(E,{key:1},{summary:ee(()=>[tt("div",rgt," RUNNING ("+Ut(U(_).length)+") ",1)]),default:ee(()=>[(st(!0),St(ne,null,Rn(U(_),K=>(st(),te($,{key:K.id,task:K,nested:A.nested,search:U(o),class:ge(U(xr)===K.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Gt("",!0),U(g).length?(st(),te(E,{key:2},{summary:ee(()=>[tt("div",igt," PASS ("+Ut(U(g).length)+") ",1)]),default:ee(()=>[(st(!0),St(ne,null,Rn(U(g),K=>(st(),te($,{key:K.id,task:K,nested:A.nested,search:U(o),class:ge(U(xr)===K.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Gt("",!0),U(v).length?(st(),te(E,{key:3},{summary:ee(()=>[tt("div",ogt," SKIP ("+Ut(U(v).length)+") ",1)]),default:ee(()=>[(st(!0),St(ne,null,Rn(U(v),K=>(st(),te($,{key:K.id,task:K,nested:A.nested,search:U(o),class:ge(U(xr)===K.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Gt("",!0)],64)):(st(!0),St(ne,{key:1},Rn(U(f),K=>(st(),te($,{key:K.id,task:K,nested:A.nested,search:U(o),class:ge(U(xr)===K.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),U(c)&&U(f).length===0?(st(),St("div",sgt,[lgt,tt("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=K=>N(!0))}," Clear ",32)])):Gt("",!0)])])}}}),ql=Zt(),ls=Zt(!0),po=Zt(!1),$c=Zt(!0),Yo=xt(()=>{var t;return(t=sd.value)==null?void 0:t.coverage}),mh=xt(()=>{var t;return(t=Yo.value)==null?void 0:t.enabled}),Zo=xt(()=>mh.value&&Yo.value.reporter.map(([t])=>t).includes("html")),agt=xt(()=>{if(Zo.value){const t=Yo.value.reportsDirectory.lastIndexOf("/"),e=Yo.value.reporter.find(r=>{if(r[0]==="html")return r});return e&&"subdir"in e[1]?`/${Yo.value.reportsDirectory.slice(t+1)}/${e[1].subdir}/index.html`:`/${Yo.value.reportsDirectory.slice(t+1)}/index.html`}});Ie(Dl,t=>{$c.value=t==="running"},{immediate:!0});function cgt(){const t=xr.value;if(t&&t.length>0){const e=kc(t);e?(ql.value=e,ls.value=!1,po.value=!1):Nlt(()=>De.state.getFiles(),()=>{ql.value=kc(t),ls.value=!1,po.value=!1})}return ls}function Ef(t){ls.value=t,po.value=!1,t&&(ql.value=void 0,xr.value="")}function ugt(){po.value=!0,ls.value=!1,ql.value=void 0,xr.value=""}const fgt={key:0,"h-full":""},hgt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-1":""},dgt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},pgt={class:"flex text-lg"},ggt=fe({__name:"Suites",setup(t){const e=xt(()=>{var c;return(c=Se.value)==null?void 0:c.name.split(/\//g).pop()}),r=xt(()=>{var c,f;return((c=Se.value)==null?void 0:c.tasks)&&tu((f=Se.value)==null?void 0:f.tasks)});function o(){return Se.value&&De.rpc.updateSnapshot(Se.value)}async function s(){Zo.value&&($c.value=!0,await Kr()),await vat()}return(c,f)=>{const h=bd,d=_s,g=vw,v=vo("tooltip");return U(Se)?(st(),St("div",fgt,[Ft(g,{tasks:U(Se).tasks,nested:!0},{header:ee(()=>[Ft(h,{"mx-1":"",task:U(Se)},null,8,["task"]),U(Se).type==="suite"&&U(Se).meta.typecheck?(st(),St("div",hgt)):Gt("",!0),tt("span",dgt,Ut(U(e)),1),tt("div",pgt,[U(r)&&!U(Xr)?nn((st(),te(d,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=y=>o())},null,512)),[[v,`Update failed snapshot(s) of ${U(Se).name}`,void 0,{bottom:!0}]]):Gt("",!0),U(Xr)?Gt("",!0):nn((st(),te(d,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=y=>s())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):Gt("",!0)}}}),vgt={h:"full",flex:"~ col"},mgt=tt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[tt("div",{class:"i-carbon:folder-details-reference"}),tt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),ygt={"flex-auto":"","py-1":"","bg-white":""},bgt=["src"],wgt=fe({__name:"Coverage",props:{src:{}},setup(t){return(e,r)=>(st(),St("div",vgt,[mgt,tt("div",ygt,[tt("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,bgt)])]))}}),xgt={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},_gt={"font-bold":""},Sgt={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},kgt=["font-bold"],Cgt={text:"red500/70"},Tgt=tt("br",null,null,-1),Egt={key:1,text:"sm","mb-2":""},Lgt={"font-bold":""},Agt={key:2,text:"sm","mb-2":""},Mgt={"font-bold":""},Ngt=tt("br",null,null,-1),Pgt=tt("ul",null,[tt("li",null," The error was thrown, while Vitest was running this test. "),tt("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),$gt={key:3,text:"sm","font-thin":""},Ogt=tt("br",null,null,-1),Dgt=tt("ul",null,[tt("li",null," Cancel timeouts using clearTimeout and clearInterval. "),tt("li",null," Wait for promises to resolve using the await keyword. ")],-1),Rgt=fe({__name:"ErrorEntry",props:{error:{}},setup(t){return(e,r)=>{var o;return st(),St(ne,null,[tt("h4",xgt,[tt("span",_gt,[me(Ut(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(st(),St(ne,{key:0},[me(":")],64)):Gt("",!0)]),me(" "+Ut(e.error.message),1)]),(o=e.error.stacks)!=null&&o.length?(st(),St("p",Sgt,[(st(!0),St(ne,null,Rn(e.error.stacks,(s,c)=>(st(),St("span",{"whitespace-pre":"","font-bold":c===0?"":null},[me("❯ "+Ut(s.method)+" "+Ut(s.file)+":",1),tt("span",Cgt,Ut(s.line)+":"+Ut(s.column),1),Tgt],8,kgt))),256))])):Gt("",!0),e.error.VITEST_TEST_PATH?(st(),St("p",Egt,[me(" This error originated in "),tt("span",Lgt,Ut(e.error.VITEST_TEST_PATH),1),me(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Gt("",!0),e.error.VITEST_TEST_NAME?(st(),St("p",Agt,[me(" The latest test that might've caused the error is "),tt("span",Mgt,Ut(e.error.VITEST_TEST_NAME),1),me(". It might mean one of the following:"),Ngt,Pgt])):Gt("",!0),e.error.VITEST_AFTER_ENV_TEARDOWN?(st(),St("p",$gt,[me(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Ogt,Dgt])):Gt("",!0)],64)}}}),bn=t=>(d0("data-v-09d153f7"),t=t(),p0(),t),zgt={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Igt=bn(()=>tt("div",{"i-carbon-document":""},null,-1)),Fgt=bn(()=>tt("div",null,"Files",-1)),Hgt={class:"number","data-testid":"num-files"},qgt=bn(()=>tt("div",{"i-carbon-checkmark":""},null,-1)),Bgt=bn(()=>tt("div",null,"Pass",-1)),Wgt={class:"number"},Ugt=bn(()=>tt("div",{"i-carbon-close":""},null,-1)),jgt=bn(()=>tt("div",null," Fail ",-1)),Ggt={class:"number","text-red5":""},Vgt=bn(()=>tt("div",{"i-carbon-compare":""},null,-1)),Kgt=bn(()=>tt("div",null," Snapshot Fail ",-1)),Xgt={class:"number","text-red5":""},Ygt=bn(()=>tt("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Zgt=bn(()=>tt("div",null," Errors ",-1)),Qgt={class:"number","text-red5":""},Jgt=bn(()=>tt("div",{"i-carbon-timer":""},null,-1)),tvt=bn(()=>tt("div",null,"Time",-1)),evt={class:"number","data-testid":"run-time"},nvt={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},rvt=bn(()=>tt("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ivt={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},ovt=bn(()=>tt("br",null,null,-1)),svt={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},lvt=bn(()=>tt("summary",{"font-bold":"","cursor-pointer":""},"Errors",-1)),avt=fe({__name:"TestFilesEntry",setup(t){return(e,r)=>{const o=Rgt;return st(),St(ne,null,[tt("div",zgt,[Igt,Fgt,tt("div",Hgt,Ut(U(mn).length),1),U(Tc).length?(st(),St(ne,{key:0},[qgt,Bgt,tt("div",Wgt,Ut(U(Tc).length),1)],64)):Gt("",!0),U(Cc).length?(st(),St(ne,{key:1},[Ugt,jgt,tt("div",Ggt,Ut(U(Cc).length),1)],64)):Gt("",!0),U(fm).length?(st(),St(ne,{key:2},[Vgt,Kgt,tt("div",Xgt,Ut(U(fm).length),1)],64)):Gt("",!0),U(xi).length?(st(),St(ne,{key:3},[Ygt,Zgt,tt("div",Qgt,Ut(U(xi).length),1)],64)):Gt("",!0),Jgt,tvt,tt("div",evt,Ut(U(Iat)),1)]),U(xi).length?(st(),St("div",nvt,[rvt,tt("p",ivt,[me(" Vitest caught "+Ut(U(xi).length)+" error"+Ut(U(xi).length>1?"s":"")+" during the test run.",1),ovt,me(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),tt("details",svt,[lvt,(st(!0),St(ne,null,Rn(U(xi),s=>(st(),te(o,{error:s},null,8,["error"]))),256))])])):Gt("",!0)],64)}}}),cvt=mo(avt,[["__scopeId","data-v-09d153f7"]]),uvt={"p-2":"","text-center":"",flex:""},fvt={"text-4xl":"","min-w-2em":""},hvt={"text-md":""},dvt=fe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(st(),St("div",uvt,[tt("div",null,[tt("div",fvt,[Gn(e.$slots,"body")]),tt("div",hvt,[Gn(e.$slots,"header")])])]))}}),pvt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},gvt=fe({__name:"TestsEntry",setup(t){const e=xt(()=>ru.value.length),r=xt(()=>Eb.value.length),o=xt(()=>Tb.value.length),s=xt(()=>Rat.value.length),c=xt(()=>zat.value.length);return(f,h)=>{const d=dvt;return st(),St("div",pvt,[Ft(d,{"text-green5":"","data-testid":"pass-entry"},{header:ee(()=>[me(" Pass ")]),body:ee(()=>[me(Ut(U(r)),1)]),_:1}),Ft(d,{class:ge({"text-red5":U(o),op50:!U(o)}),"data-testid":"fail-entry"},{header:ee(()=>[me(" Fail ")]),body:ee(()=>[me(Ut(U(o)),1)]),_:1},8,["class"]),U(s)?(st(),te(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:ee(()=>[me(" Skip ")]),body:ee(()=>[me(Ut(U(s)),1)]),_:1})):Gt("",!0),U(c)?(st(),te(d,{key:1,op50:"","data-testid":"todo-entry"},{header:ee(()=>[me(" Todo ")]),body:ee(()=>[me(Ut(U(c)),1)]),_:1})):Gt("",!0),Ft(d,{tail:!0,"data-testid":"total-entry"},{header:ee(()=>[me(" Total ")]),body:ee(()=>[me(Ut(U(e)),1)]),_:1})])}}}),vvt={},mvt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},yvt={"aria-labelledby":"tests",m:"y-4 x-2"};function bvt(t,e){const r=gvt,o=cvt;return st(),St("div",mvt,[tt("section",yvt,[Ft(r)]),Ft(o)])}const wvt=mo(vvt,[["render",bvt]]),xvt={},_vt={h:"full",flex:"~ col"},Svt=tt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[tt("div",{class:"i-carbon-dashboard"}),tt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),kvt={class:"scrolls","flex-auto":"","py-1":""};function Cvt(t,e){const r=wvt;return st(),St("div",_vt,[Svt,tt("div",kvt,[Ft(r)])])}const Tvt=mo(xvt,[["render",Cvt]]),Evt=""+new URL("../favicon.svg",import.meta.url).href,Lvt=tt("img",{"w-6":"","h-6":"",src:Evt,alt:"Vitest logo"},null,-1),Avt=tt("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Mvt={class:"flex text-lg"},Nvt=tt("div",{class:"i-carbon:folder-off ma"},null,-1),Pvt=tt("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[tt("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),tt("div",null,"Coverage enabled but missing html reporter."),tt("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),$vt=fe({__name:"Navigation",setup(t){const e=xt(()=>mn.value&&tu(mn.value));function r(){return De.rpc.updateSnapshot()}const o=xt(()=>Vl.value?"light":"dark");function s(f){xr.value=f.id,ql.value=kc(f.id),Ef(!1)}async function c(f){Zo.value&&($c.value=!0,await Kr(),po.value&&(Ef(!0),await Kr())),await gat(f)}return(f,h)=>{const d=_s,g=vw,v=vo("tooltip");return st(),te(g,{border:"r base",tasks:U(mn),"on-item-click":s,"group-by-type":!0,onRun:c},{header:ee(({filteredTests:y})=>[Lvt,Avt,tt("div",Mvt,[nn(Ft(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=w=>U(Ef)(!0))},null,512),[[Uf,U(mh)&&!U(Zo)||!U(ls)],[v,"Dashboard",void 0,{bottom:!0}]]),U(mh)&&!U(Zo)?(st(),te(U(tT),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:ee(()=>[Pvt]),default:ee(()=>[Nvt]),_:1})):Gt("",!0),U(Zo)?nn((st(),te(d,{key:1,disabled:U($c),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=w=>U(ugt)())},null,8,["disabled"])),[[Uf,!U(po)],[v,"Coverage",void 0,{bottom:!0}]]):Gt("",!0),U(e)&&!U(Xr)?nn((st(),te(d,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=w=>r())},null,512)),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Gt("",!0),U(Xr)?Gt("",!0):nn((st(),te(d,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:w=>c(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),nn(Ft(d,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=w=>U(wat)())},null,512),[[v,`Toggle to ${U(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),Ovt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Dvt=fe({__name:"ProgressBar",setup(t){const{width:e}=jlt(),r=xt(()=>mn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Dat.value?null:"in-progress"),o=xt(()=>mn.value.length),s=xt(()=>Tc.value.length),c=xt(()=>Cc.value.length),f=xt(()=>{const v=U(o);return v>0?e.value*s.value/v:0}),h=xt(()=>{const v=U(o);return v>0?e.value*c.value/v:0}),d=xt(()=>U(o)-c.value-s.value),g=xt(()=>{const v=U(o);return v>0?e.value*d.value/v:0});return(v,y)=>(st(),St("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ge(U(r))},[tt("div",Ovt,[tt("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ge(U(r)),style:An(`width: ${U(h)}px;`)},"   ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ge(U(r)),style:An(`left: ${U(h)}px; width: ${U(f)}px;`)},"   ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ge(U(r)),style:An(`left: ${U(f)+U(h)}px; width: ${U(g)}px;`)},"   ",6)])],2))}}),Rvt=mo(Dvt,[["__scopeId","data-v-f967c1fe"]]),Im={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===e?o.max:o.min,s!==e&&(r+=o.min),o)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:o-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(t),s),o);let f=[e,e+1],h=this.panes[f[0]]||null,d=this.panes[f[1]]||null;const g=h.max<100&&c>=h.max+r.prevPanesSize,v=d.max<100&&c<=100-(d.max+this.sumNextPanesSize(e+1));if(g||v){g?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),d.size=d.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),h=this.panes[f[0]]||null,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,o=[r,r+1];return e{c>o[0]&&c<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c{c=r+1&&(s.size=s.min,t.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((e,r,o)=>e+(oe+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,r=!1){const o=t-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),e.parentNode.insertBefore(s,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([o,s])=>r[o]=s)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&e++,s===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(t,s.max),s.min),e-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),e>.1&&this.readjustSizes(e,r,o)},initialPanesSizing(){let t=100;const e=[],r=[];let o=0;this.panes.forEach(c=>{t-=c.size,c.size!==null&&o++,c.size>=c.max&&e.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;t>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(t/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const s=[],c=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(t>0&&!e.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,r)=>{e.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Ul("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},zvt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},Ivt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function Fvt(t,e,r,o,s,c){return st(),St("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>c.onPaneClick(f,t._.uid)),style:An(t.style)},[Gn(t.$slots,"default")],4)}const Xa=zvt(Ivt,[["render",Fvt]]),Hvt={"h-screen":"","w-screen":"",overflow:"hidden"},qvt=fe({__name:"index",setup(t){const e=cgt(),r=um("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),o=um("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),s=am(h=>{h.forEach((d,g)=>{r.value[g]=d.size})},0),c=am(h=>{h.forEach((d,g)=>{o.value[g]=d.size})},0);function f(){const h=window.innerWidth,d=Math.min(h/3,300);r.value[0]=100*d/h,r.value[1]=100-r.value[0],o.value[0]=100*d/(h-d),o.value[1]=100-o.value[0]}return(h,d)=>{const g=Rvt,v=$vt,y=Tvt,w=wgt,_=ggt,N=Rpt,L=bat;return st(),St(ne,null,[Ft(g),tt("div",Hvt,[Ft(U(Im),{class:"pt-4px",onResized:U(s),onReady:f},{default:ee(()=>[Ft(U(Xa),{size:U(r)[0]},{default:ee(()=>[Ft(v)]),_:1},8,["size"]),Ft(U(Xa),{size:U(r)[1]},{default:ee(()=>[Ft(Wh,null,{default:ee(()=>[U(e)?(st(),te(y,{key:"summary"})):U(po)?(st(),te(w,{key:"coverage",src:U(agt)},null,8,["src"])):(st(),te(U(Im),{key:"detail",onResized:U(c)},{default:ee(()=>[Ft(U(Xa),{size:U(o)[0]},{default:ee(()=>[Ft(_)]),_:1},8,["size"]),Ft(U(Xa),{size:U(o)[1]},{default:ee(()=>[Ft(N)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Ft(L)],64)}}}),Bvt=[{name:"index",path:"/",component:qvt,props:!0}],Wvt={tooltip:JC};Ty.options.instantMove=!0;Ty.options.distance=10;function Uvt(){return eC({history:mk(),routes:Bvt})}const jvt=[Uvt],wd=q0(QS);jvt.forEach(t=>{wd.use(t())});Object.entries(Wvt).forEach(([t,e])=>{wd.directive(t,e)});wd.mount("#app");