var jx=Object.defineProperty;var Vx=(t,e,r)=>e in t?jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ci=(t,e,r)=>(Vx(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 u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function lh(t,e){const r=Object.create(null),o=t.split(",");for(let s=0;s!!r[s.toLowerCase()]:s=>!!r[s]}const we={},Go=[],wr=()=>{},Gx=()=>!1,Kx=/^on[^a-z]/,_c=t=>Kx.test(t),ah=t=>t.startsWith("onUpdate:"),ze=Object.assign,ch=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Xx=Object.prototype.hasOwnProperty,le=(t,e)=>Xx.call(t,e),It=Array.isArray,Ko=t=>kc(t)==="[object Map]",xm=t=>kc(t)==="[object Set]",jt=t=>typeof t=="function",Ie=t=>typeof t=="string",Sc=t=>typeof t=="symbol",ye=t=>t!==null&&typeof t=="object",_m=t=>(ye(t)||jt(t))&&jt(t.then)&&jt(t.catch),Sm=Object.prototype.toString,kc=t=>Sm.call(t),Yx=t=>kc(t).slice(8,-1),km=t=>kc(t)==="[object Object]",uh=t=>Ie(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ia=lh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Zx=/-(\w)/g,_r=Cc(t=>t.replace(Zx,(e,r)=>r?r.toUpperCase():"")),Qx=/\B([A-Z])/g,co=Cc(t=>t.replace(Qx,"-$1").toLowerCase()),Tc=Cc(t=>t.charAt(0).toUpperCase()+t.slice(1)),ju=Cc(t=>t?`on${Tc(t)}`:""),ro=(t,e)=>!Object.is(t,e),Fa=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},gf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Cm=t=>{const e=Ie(t)?Number(t):NaN;return isNaN(e)?t:e};let cg;const vf=()=>cg||(cg=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(t1);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ve(t){let e="";if(Ie(t))e=t;else if(It(t))for(let r=0;rIe(t)?t:t==null?"":It(t)||ye(t)&&(t.toString===Sm||!jt(t.toString))?JSON.stringify(t,Em,2):String(t),Em=(t,e)=>e&&e.__v_isRef?Em(t,e.value):Ko(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,s])=>(r[`${o} =>`]=s,r),{})}:xm(e)?{[`Set(${e.size})`]:[...e.values()]}:ye(e)&&!It(e)&&!km(e)?String(e):e;let $n;class o1{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$n,!e&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=$n;try{return $n=this,e()}finally{$n=r}}}on(){$n=this}off(){$n=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},Am=t=>(t.w&Ti)>0,Mm=t=>(t.n&Ti)>0,a1=({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"||!Sc(v)&&v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":It(t)?uh(r)&&h.push(f.get("length")):(h.push(f.get(Ji)),Ko(t)&&h.push(f.get(yf)));break;case"delete":It(t)||(h.push(f.get(Ji)),Ko(t)&&h.push(f.get(yf)));break;case"set":Ko(t)&&h.push(f.get(Ji));break}if(h.length===1)h[0]&&bf(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);bf(fh(d))}}function bf(t,e){const r=It(t)?t:[...t];for(const o of r)o.computed&&fg(o);for(const o of r)o.computed||fg(o)}function fg(t,e){(t!==ir||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function u1(t,e){var r;return(r=Qa.get(t))==null?void 0:r.get(e)}const f1=lh("__proto__,__v_isRef,__isVue"),Om=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Sc)),hg=h1();function h1(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=ae(this);for(let u=0,f=this.length;u{t[e]=function(...r){ps();const o=ae(this)[e].apply(this,r);return gs(),o}}),t}function d1(t){const e=ae(this);return Nn(e,"has",t),e.hasOwnProperty(t)}class Dm{constructor(e=!1,r=!1){this._isReadonly=e,this._shallow=r}get(e,r,o){const s=this._isReadonly,u=this._shallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return u;if(r==="__v_raw"&&o===(s?u?T1:Im:u?zm:Rm).get(e))return e;const f=It(e);if(!s){if(f&&le(hg,r))return Reflect.get(hg,r,o);if(r==="hasOwnProperty")return d1}const h=Reflect.get(e,r,o);return(Sc(r)?Om.has(r):f1(r))||(s||Nn(e,"get",r),u)?h:Le(h)?f&&uh(r)?h:h.value:ye(h)?s?Lc(h):Un(h):h}}class $m extends Dm{constructor(e=!1){super(!1,e)}set(e,r,o,s){let u=e[r];if(rs(u)&&Le(u)&&!Le(o))return!1;if(!this._shallow&&(!Ja(o)&&!rs(o)&&(u=ae(u),o=ae(o)),!It(e)&&Le(u)&&!Le(o)))return u.value=o,!0;const f=It(e)&&uh(r)?Number(r)t,Ec=t=>Reflect.getPrototypeOf(t);function wa(t,e,r=!1,o=!1){t=t.__v_raw;const s=ae(t),u=ae(e);r||(ro(e,u)&&Nn(s,"get",e),Nn(s,"get",u));const{has:f}=Ec(s),h=o?dh:r?mh:pl;if(f.call(s,e))return h(t.get(e));if(f.call(s,u))return h(t.get(u));t!==s&&t.get(e)}function xa(t,e=!1){const r=this.__v_raw,o=ae(r),s=ae(t);return e||(ro(t,s)&&Nn(o,"has",t),Nn(o,"has",s)),t===s?r.has(t):r.has(t)||r.has(s)}function _a(t,e=!1){return t=t.__v_raw,!e&&Nn(ae(t),"iterate",Ji),Reflect.get(t,"size",t)}function dg(t){t=ae(t);const e=ae(this);return Ec(e).has.call(e,t)||(e.add(t),Fr(e,"add",t,t)),this}function pg(t,e){e=ae(e);const r=ae(this),{has:o,get:s}=Ec(r);let u=o.call(r,t);u||(t=ae(t),u=o.call(r,t));const f=s.call(r,t);return r.set(t,e),u?ro(e,f)&&Fr(r,"set",t,e):Fr(r,"add",t,e),this}function gg(t){const e=ae(this),{has:r,get:o}=Ec(e);let s=r.call(e,t);s||(t=ae(t),s=r.call(e,t)),o&&o.call(e,t);const u=e.delete(t);return s&&Fr(e,"delete",t,void 0),u}function vg(){const t=ae(this),e=t.size!==0,r=t.clear();return e&&Fr(t,"clear",void 0,void 0),r}function Sa(t,e){return function(o,s){const u=this,f=u.__v_raw,h=ae(f),d=e?dh:t?mh:pl;return!t&&Nn(h,"iterate",Ji),f.forEach((g,v)=>o.call(s,d(g),d(v),u))}}function ka(t,e,r){return function(...o){const s=this.__v_raw,u=ae(s),f=Ko(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=s[t](...o),v=r?dh:e?mh:pl;return!e&&Nn(u,"iterate",d?yf:Ji),{next(){const{value:b,done:w}=g.next();return w?{value:b,done:w}:{value:h?[v(b[0]),v(b[1])]:v(b),done:w}},[Symbol.iterator](){return this}}}}function ui(t){return function(...e){return t==="delete"?!1:this}}function y1(){const t={get(u){return wa(this,u)},get size(){return _a(this)},has:xa,add:dg,set:pg,delete:gg,clear:vg,forEach:Sa(!1,!1)},e={get(u){return wa(this,u,!1,!0)},get size(){return _a(this)},has:xa,add:dg,set:pg,delete:gg,clear:vg,forEach:Sa(!1,!0)},r={get(u){return wa(this,u,!0)},get size(){return _a(this,!0)},has(u){return xa.call(this,u,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:Sa(!0,!1)},o={get(u){return wa(this,u,!0,!0)},get size(){return _a(this,!0)},has(u){return xa.call(this,u,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:Sa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ka(u,!1,!1),r[u]=ka(u,!0,!1),e[u]=ka(u,!1,!0),o[u]=ka(u,!0,!0)}),[t,r,e,o]}const[b1,w1,x1,_1]=y1();function ph(t,e){const r=e?t?_1:x1:t?w1:b1;return(o,s,u)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?o:Reflect.get(le(r,s)&&s in o?r:o,s,u)}const S1={get:ph(!1,!1)},k1={get:ph(!1,!0)},C1={get:ph(!0,!1)},Rm=new WeakMap,zm=new WeakMap,Im=new WeakMap,T1=new WeakMap;function E1(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L1(t){return t.__v_skip||!Object.isExtensible(t)?0:E1(Yx(t))}function Un(t){return rs(t)?t:gh(t,!1,g1,S1,Rm)}function Fm(t){return gh(t,!1,m1,k1,zm)}function Lc(t){return gh(t,!0,v1,C1,Im)}function gh(t,e,r,o,s){if(!ye(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=s.get(t);if(u)return u;const f=L1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return s.set(t,h),h}function Xo(t){return rs(t)?Xo(t.__v_raw):!!(t&&t.__v_isReactive)}function rs(t){return!!(t&&t.__v_isReadonly)}function Ja(t){return!!(t&&t.__v_isShallow)}function qm(t){return Xo(t)||rs(t)}function ae(t){const e=t&&t.__v_raw;return e?ae(e):t}function vh(t){return Za(t,"__v_skip",!0),t}const pl=t=>ye(t)?Un(t):t,mh=t=>ye(t)?Lc(t):t;function yh(t){Si&&ir&&(t=ae(t),Pm(t.dep||(t.dep=fh())))}function bh(t,e){t=ae(t);const r=t.dep;r&&bf(r)}function Le(t){return!!(t&&t.__v_isRef===!0)}function Zt(t){return Hm(t,!1)}function vs(t){return Hm(t,!0)}function Hm(t,e){return Le(t)?t:new A1(t,e)}class A1{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:pl(e)}get value(){return yh(this),this._value}set value(e){const r=this.__v_isShallow||Ja(e)||rs(e);e=r?e:ae(e),ro(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:pl(e),bh(this))}}function U(t){return Le(t)?t.value:t}const M1={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 Bm(t){return Xo(t)?t:new Proxy(t,M1)}class N1{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=e(()=>yh(this),()=>bh(this));this._get=r,this._set=o}get value(){return this._get()}set value(e){this._set(e)}}function P1(t){return new N1(t)}function O1(t){const e=It(t)?new Array(t.length):{};for(const r in t)e[r]=Wm(t,r);return e}class D1{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 u1(ae(this._object),this._key)}}class $1{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function wh(t,e,r){return Le(t)?t:jt(t)?new $1(t):ye(t)&&arguments.length>1?Wm(t,e,r):Zt(t)}function Wm(t,e,r){const o=t[e];return Le(o)?o:new D1(t,e,r)}class R1{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 hh(e,()=>{this._dirty||(this._dirty=!0,bh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const e=ae(this);return yh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function z1(t,e,r=!1){let o,s;const u=jt(t);return u?(o=t,s=wr):(o=t.get,s=t.set),new R1(o,s,u||!s,r)}function ki(t,e,r,o){let s;try{s=o?t(...o):t()}catch(u){Nl(u,e,r)}return s}function jn(t,e,r,o){if(jt(t)){const u=ki(t,e,r,o);return u&&_m(u)&&u.catch(f=>{Nl(f,e,r)}),u}const s=[];for(let u=0;u>>1,s=en[o],u=vl(s);uvr&&en.splice(e,1)}function xf(t){It(t)?Yo.push(...t):(!$r||!$r.includes(t,t.allowRecurse?Ki+1:Ki))&&Yo.push(t),jm()}function mg(t,e=gl?vr+1:0){for(;evl(r)-vl(o)),Ki=0;Ki<$r.length;Ki++)$r[Ki]();$r=null,Ki=0}}const vl=t=>t.id==null?1/0:t.id,H1=(t,e)=>{const r=vl(t)-vl(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Gm(t){wf=!1,gl=!0,en.sort(H1);try{for(vr=0;vrIe(S)?S.trim():S)),b&&(s=r.map(gf))}let h,d=o[h=ju(e)]||o[h=ju(_r(e))];!d&&u&&(d=o[h=ju(co(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 Km(t,e,r=!1){const o=e.emitsCache,s=o.get(t);if(s!==void 0)return s;const u=t.emits;let f={},h=!1;if(!jt(t)){const d=g=>{const v=Km(g,e,!0);v&&(h=!0,ze(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(ye(t)&&o.set(t,null),null):(It(u)?u.forEach(d=>f[d]=null):ze(f,u),ye(t)&&o.set(t,f),f)}function Ac(t,e){return!t||!_c(e)?!1:(e=e.slice(2).replace(/Once$/,""),le(t,e[0].toLowerCase()+e.slice(1))||le(t,co(e))||le(t,e))}let Qe=null,Mc=null;function tc(t){const e=Qe;return Qe=t,Mc=t&&t.type.__scopeId||null,e}function Xm(t){Mc=t}function Ym(){Mc=null}const W1=t=>ee;function ee(t,e=Qe,r){if(!e||t._n)return t;const o=(...s)=>{o._d&&Ag(-1);const u=tc(e);let f;try{f=t(...s)}finally{tc(u),o._d&&Ag(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Vu(t){const{type:e,vnode:r,proxy:o,withProxy:s,props:u,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:b,data:w,setupState:S,ctx:P,inheritAttrs:A}=t;let L,T;const M=tc(t);try{if(r.shapeFlag&4){const E=s||o;L=rr(v.call(E,E,b,u,S,w,P)),T=d}else{const E=e;L=rr(E.length>1?E(u,{attrs:d,slots:h,emit:g}):E(u,null)),T=e.props?d:j1(d)}}catch(E){cl.length=0,Nl(E,t,1),L=Ft(Mn)}let R=L;if(T&&A!==!1){const E=Object.keys(T),{shapeFlag:B}=R;E.length&&B&7&&(f&&E.some(ah)&&(T=V1(T,f)),R=Ei(R,T))}return r.dirs&&(R=Ei(R),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&(R.transition=r.transition),L=R,tc(M),L}function U1(t){let e;for(let r=0;r{let e;for(const r in t)(r==="class"||r==="style"||_c(r))&&((e||(e={}))[r]=t[r]);return e},V1=(t,e)=>{const r={};for(const o in t)(!ah(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function G1(t,e,r){const{props:o,children:s,component:u}=t,{props:f,children:h,patchFlag:d}=e,g=u.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?yg(o,f,g):!!f;if(d&8){const v=e.dynamicProps;for(let b=0;bt.__isSuspense,Z1={name:"Suspense",__isSuspense:!0,process(t,e,r,o,s,u,f,h,d,g){t==null?J1(e,r,o,s,u,f,h,d,g):t_(t,e,r,o,s,f,h,d,g)},hydrate:e_,create:kh,normalize:n_},Q1=Z1;function ml(t,e){const r=t.props&&t.props[e];jt(r)&&r()}function J1(t,e,r,o,s,u,f,h,d){const{p:g,o:{createElement:v}}=d,b=v("div"),w=t.suspense=kh(t,s,o,e,b,r,u,f,h,d);g(null,w.pendingBranch=t.ssContent,b,null,o,w,u,f),w.deps>0?(ml(t,"onPending"),ml(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,u,f),Zo(w,t.ssFallback)):w.resolve(!1,!0)}function t_(t,e,r,o,s,u,f,h,{p:d,um:g,o:{createElement:v}}){const b=e.suspense=t.suspense;b.vnode=e,e.el=t.el;const w=e.ssContent,S=e.ssFallback,{activeBranch:P,pendingBranch:A,isInFallback:L,isHydrating:T}=b;if(A)b.pendingBranch=w,mr(w,A)?(d(A,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0?b.resolve():L&&(d(P,S,r,o,s,null,u,f,h),Zo(b,S))):(b.pendingId++,T?(b.isHydrating=!1,b.activeBranch=A):g(A,s,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),L?(d(null,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0?b.resolve():(d(P,S,r,o,s,null,u,f,h),Zo(b,S))):P&&mr(w,P)?(d(P,w,r,o,s,b,u,f,h),b.resolve(!0)):(d(null,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0&&b.resolve()));else if(P&&mr(w,P))d(P,w,r,o,s,b,u,f,h),Zo(b,w);else if(ml(e,"onPending"),b.pendingBranch=w,b.pendingId++,d(null,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:M,pendingId:R}=b;M>0?setTimeout(()=>{b.pendingId===R&&b.fallback(S)},M):M===0&&b.fallback(S)}}function kh(t,e,r,o,s,u,f,h,d,g,v=!1){const{p:b,m:w,um:S,n:P,o:{parentNode:A,remove:L}}=g;let T;const M=i_(t);M&&e!=null&&e.pendingBranch&&(T=e.pendingId,e.deps++);const R=t.props?Cm(t.props.timeout):void 0,E={vnode:t,parent:e,parentComponent:r,isSVG:f,container:o,hiddenContainer:s,anchor:u,deps:0,pendingId:0,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(B=!1,K=!1){const{vnode:ht,activeBranch:Y,pendingBranch:nt,pendingId:at,effects:pt,parentComponent:gt,container:G}=E;let z=!1;if(E.isHydrating)E.isHydrating=!1;else if(!B){z=Y&&nt.transition&&nt.transition.mode==="out-in",z&&(Y.transition.afterLeave=()=>{at===E.pendingId&&(w(nt,G,H,0),xf(pt))});let{anchor:H}=E;Y&&(H=P(Y),S(Y,gt,E,!0)),z||w(nt,G,H,0)}Zo(E,nt),E.pendingBranch=null,E.isInFallback=!1;let k=E.parent,F=!1;for(;k;){if(k.pendingBranch){k.effects.push(...pt),F=!0;break}k=k.parent}!F&&!z&&xf(pt),E.effects=[],M&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!K&&e.resolve()),ml(ht,"onResolve")},fallback(B){if(!E.pendingBranch)return;const{vnode:K,activeBranch:ht,parentComponent:Y,container:nt,isSVG:at}=E;ml(K,"onFallback");const pt=P(ht),gt=()=>{E.isInFallback&&(b(null,B,nt,pt,Y,null,at,h,d),Zo(E,B))},G=B.transition&&B.transition.mode==="out-in";G&&(ht.transition.afterLeave=gt),E.isInFallback=!0,S(ht,Y,null,!0),G||gt()},move(B,K,ht){E.activeBranch&&w(E.activeBranch,B,K,ht),E.container=B},next(){return E.activeBranch&&P(E.activeBranch)},registerDep(B,K){const ht=!!E.pendingBranch;ht&&E.deps++;const Y=B.vnode.el;B.asyncDep.catch(nt=>{Nl(nt,B,0)}).then(nt=>{if(B.isUnmounted||E.isUnmounted||E.pendingId!==B.suspenseId)return;B.asyncResolved=!0;const{vnode:at}=B;Mf(B,nt,!1),Y&&(at.el=Y);const pt=!Y&&B.subTree.el;K(B,at,A(Y||B.subTree.el),Y?null:P(B.subTree),E,f,d),pt&&L(pt),Sh(B,at.el),ht&&--E.deps===0&&E.resolve()})},unmount(B,K){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,B,K),E.pendingBranch&&S(E.pendingBranch,r,B,K)}};return E}function e_(t,e,r,o,s,u,f,h,d){const g=e.suspense=kh(e,o,r,t.parentNode,document.createElement("div"),null,s,u,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,u,f);return g.deps===0&&g.resolve(!1,!0),v}function n_(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=wg(o?r.default:r),t.ssFallback=o?wg(r.fallback):Ft(Mn)}function wg(t){let e;if(jt(t)){const r=is&&t._c;r&&(t._d=!1,st()),t=t(),r&&(t._d=!0,e=Wn,g0())}return It(t)&&(t=U1(t)),t=rr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function r_(t,e){e&&e.pendingBranch?It(t)?e.effects.push(...t):e.effects.push(t):xf(t)}function Zo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t,s=r.el=e.el;o&&o.subTree===r&&(o.vnode.el=s,Sh(o,s))}function i_(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Ch(t,e){return Th(t,null,e)}const Ca={};function Re(t,e,r){return Th(t,e,r)}function Th(t,e,{immediate:r,deep:o,flush:s,onTrack:u,onTrigger:f}=we){var h;const d=Lm()===((h=Ge)==null?void 0:h.scope)?Ge:null;let g,v=!1,b=!1;if(Le(t)?(g=()=>t.value,v=Ja(t)):Xo(t)?(g=()=>t,o=!0):It(t)?(b=!0,v=t.some(E=>Xo(E)||Ja(E)),g=()=>t.map(E=>{if(Le(E))return E.value;if(Xo(E))return Yi(E);if(jt(E))return ki(E,d,2)})):jt(t)?e?g=()=>ki(t,d,2):g=()=>{if(!(d&&d.isUnmounted))return w&&w(),jn(t,d,3,[S])}:g=wr,e&&o){const E=g;g=()=>Yi(E())}let w,S=E=>{w=M.onStop=()=>{ki(E,d,4)}},P;if(bl)if(S=wr,e?r&&jn(e,d,3,[g(),b?[]:void 0,S]):g(),s==="sync"){const E=Y_();P=E.__watcherHandles||(E.__watcherHandles=[])}else return wr;let A=b?new Array(t.length).fill(Ca):Ca;const L=()=>{if(M.active)if(e){const E=M.run();(o||v||(b?E.some((B,K)=>ro(B,A[K])):ro(E,A)))&&(w&&w(),jn(e,d,3,[E,A===Ca?void 0:b&&A[0]===Ca?[]:A,S]),A=E)}else M.run()};L.allowRecurse=!!e;let T;s==="sync"?T=L:s==="post"?T=()=>Cn(L,d&&d.suspense):(L.pre=!0,d&&(L.id=d.uid),T=()=>_h(L));const M=new hh(g,T);e?r?L():A=M.run():s==="post"?Cn(M.run.bind(M),d&&d.suspense):M.run();const R=()=>{M.stop(),d&&d.scope&&ch(d.scope.effects,M)};return P&&P.push(R),R}function o_(t,e,r){const o=this.proxy,s=Ie(t)?t.includes(".")?Jm(o,t):()=>o[t]:t.bind(o,o);let u;jt(e)?u=e:(u=e.handler,r=e);const f=Ge;os(this);const h=Th(s,u.bind(o),r);return f?os(f):to(),h}function Jm(t,e){const r=e.split(".");return()=>{let o=t;for(let s=0;s{Yi(r,e)});else if(km(t))for(const r in t)Yi(t[r],e);return t}function nn(t,e){const r=Qe;if(r===null)return t;const o=$c(r)||r.proxy,s=t.dirs||(t.dirs=[]);for(let u=0;u{t.isMounted=!0}),i0(()=>{t.isUnmounting=!0}),t}const Bn=[Function,Array],t0={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},l_={name:"BaseTransition",props:t0,setup(t,{slots:e}){const r=Pl(),o=s_();let s;return()=>{const u=e.default&&n0(e.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Mn){f=A;break}}const h=ae(t),{mode:d}=h;if(o.isLeaving)return Gu(f);const g=xg(f);if(!g)return Gu(f);const v=_f(g,h,o,r);Sf(g,v);const b=r.subTree,w=b&&xg(b);let S=!1;const{getTransitionKey:P}=g.type;if(P){const A=P();s===void 0?s=A:A!==s&&(s=A,S=!0)}if(w&&w.type!==Mn&&(!mr(g,w)||S)){const A=_f(w,h,o,r);if(Sf(w,A),d==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},Gu(f);d==="in-out"&&g.type!==Mn&&(A.delayLeave=(L,T,M)=>{const R=e0(o,w);R[String(w.key)]=w,L[gi]=()=>{T(),L[gi]=void 0,delete v.delayedLeave},v.delayedLeave=M})}return f}}},a_=l_;function e0(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 _f(t,e,r,o){const{appear:s,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:S,onLeaveCancelled:P,onBeforeAppear:A,onAppear:L,onAfterAppear:T,onAppearCancelled:M}=e,R=String(t.key),E=e0(r,t),B=(Y,nt)=>{Y&&jn(Y,o,9,nt)},K=(Y,nt)=>{const at=nt[1];B(Y,nt),It(Y)?Y.every(pt=>pt.length<=1)&&at():Y.length<=1&&at()},ht={mode:u,persisted:f,beforeEnter(Y){let nt=h;if(!r.isMounted)if(s)nt=A||h;else return;Y[gi]&&Y[gi](!0);const at=E[R];at&&mr(t,at)&&at.el[gi]&&at.el[gi](),B(nt,[Y])},enter(Y){let nt=d,at=g,pt=v;if(!r.isMounted)if(s)nt=L||d,at=T||g,pt=M||v;else return;let gt=!1;const G=Y[Ta]=z=>{gt||(gt=!0,z?B(pt,[Y]):B(at,[Y]),ht.delayedLeave&&ht.delayedLeave(),Y[Ta]=void 0)};nt?K(nt,[Y,G]):G()},leave(Y,nt){const at=String(t.key);if(Y[Ta]&&Y[Ta](!0),r.isUnmounting)return nt();B(b,[Y]);let pt=!1;const gt=Y[gi]=G=>{pt||(pt=!0,nt(),G?B(P,[Y]):B(S,[Y]),Y[gi]=void 0,E[at]===t&&delete E[at])};E[at]=t,w?K(w,[Y,gt]):gt()},clone(Y){return _f(Y,e,r,o)}};return ht}function Gu(t){if(Nc(t))return t=Ei(t),t.children=null,t}function xg(t){return Nc(t)?t.children?t.children[0]:void 0:t}function Sf(t,e){t.shapeFlag&6&&t.component?Sf(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 n0(t,e=!1,r){let o=[],s=0;for(let u=0;u1)for(let u=0;uze({name:t.name},e,{setup:t}))():t}const ll=t=>!!t.type.__asyncLoader,Nc=t=>t.type.__isKeepAlive;function c_(t,e){r0(t,"a",e)}function u_(t,e){r0(t,"da",e)}function r0(t,e,r=Ge){const o=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Pc(e,o,r),r){let s=r.parent;for(;s&&s.parent;)Nc(s.parent.vnode)&&f_(o,e,r,s),s=s.parent}}function f_(t,e,r,o){const s=Pc(e,t,o,!0);Eh(()=>{ch(o[e],s)},r)}function Pc(t,e,r=Ge,o=!1){if(r){const s=r[t]||(r[t]=[]),u=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;ps(),os(r);const h=jn(e,r,t,f);return to(),gs(),h});return o?s.unshift(u):s.push(u),u}}const Kr=t=>(e,r=Ge)=>(!bl||t==="sp")&&Pc(t,(...o)=>e(...o),r),h_=Kr("bm"),ms=Kr("m"),d_=Kr("bu"),p_=Kr("u"),i0=Kr("bum"),Eh=Kr("um"),g_=Kr("sp"),v_=Kr("rtg"),m_=Kr("rtc");function y_(t,e=Ge){Pc("ec",t,e)}function Rn(t,e,r,o){let s;const u=r&&r[o];if(It(t)||Ie(t)){s=new Array(t.length);for(let f=0,h=t.length;fe(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);s=new Array(f.length);for(let h=0,d=f.length;hyl(e)?!(e.type===Mn||e.type===ne&&!o0(e.children)):!0)?t:null}const kf=t=>t?y0(t)?$c(t)||t.proxy:kf(t.parent):null,al=ze(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=>kf(t.parent),$root:t=>kf(t.root),$emit:t=>t.emit,$options:t=>Lh(t),$forceUpdate:t=>t.f||(t.f=()=>_h(t.update)),$nextTick:t=>t.n||(t.n=Br.bind(t.proxy)),$watch:t=>o_.bind(t)}),Ku=(t,e)=>t!==we&&!t.__isScriptSetup&&le(t,e),b_={get({_:t},e){const{ctx:r,setupState:o,data:s,props:u,accessCache:f,type:h,appContext:d}=t;let g;if(e[0]!=="$"){const S=f[e];if(S!==void 0)switch(S){case 1:return o[e];case 2:return s[e];case 4:return r[e];case 3:return u[e]}else{if(Ku(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,u[e];if(r!==we&&le(r,e))return f[e]=4,r[e];Tf&&(f[e]=0)}}const v=al[e];let b,w;if(v)return e==="$attrs"&&Nn(t,"get",e),v(t);if((b=h.__cssModules)&&(b=b[e]))return b;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:u}=t;return Ku(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:(u[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:s,propsOptions:u}},f){let h;return!!r[f]||t!==we&&le(t,f)||Ku(e,f)||(h=u[0])&&le(h,f)||le(o,f)||le(al,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 w_(){return x_().attrs}function s0(t,e,r){const o=Pl();if(r&&r.local){const s=Zt(t[e]);return Re(()=>t[e],u=>s.value=u),Re(s,u=>{u!==t[e]&&o.emit(`update:${e}`,u)}),s}else return{__v_isRef:!0,get value(){return t[e]},set value(s){o.emit(`update:${e}`,s)}}}function x_(){const t=Pl();return t.setupContext||(t.setupContext=w0(t))}function ec(t){return It(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function Cf(t,e){return!t||!e?t||e:It(t)&&It(e)?t.concat(e):ze({},ec(t),ec(e))}let Tf=!0;function __(t){const e=Lh(t),r=t.proxy,o=t.ctx;Tf=!1,e.beforeCreate&&_g(e.beforeCreate,t,"bc");const{data:s,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:b,mounted:w,beforeUpdate:S,updated:P,activated:A,deactivated:L,beforeDestroy:T,beforeUnmount:M,destroyed:R,unmounted:E,render:B,renderTracked:K,renderTriggered:ht,errorCaptured:Y,serverPrefetch:nt,expose:at,inheritAttrs:pt,components:gt,directives:G,filters:z}=e;if(g&&S_(g,o,null),f)for(const H in f){const Q=f[H];jt(Q)&&(o[H]=Q.bind(r))}if(s){const H=s.call(r,r);ye(H)&&(t.data=Un(H))}if(Tf=!0,u)for(const H in u){const Q=u[H],yt=jt(Q)?Q.bind(r,r):jt(Q.get)?Q.get.bind(r,r):wr,At=!jt(Q)&&jt(Q.set)?Q.set.bind(r):wr,qt=xt({get:yt,set:At});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Ht=>qt.value=Ht})}if(h)for(const H in h)l0(h[H],o,r,H);if(d){const H=jt(d)?d.call(r):d;Reflect.ownKeys(H).forEach(Q=>{qa(Q,H[Q])})}v&&_g(v,t,"c");function F(H,Q){It(Q)?Q.forEach(yt=>H(yt.bind(r))):Q&&H(Q.bind(r))}if(F(h_,b),F(ms,w),F(d_,S),F(p_,P),F(c_,A),F(u_,L),F(y_,Y),F(m_,K),F(v_,ht),F(i0,M),F(Eh,E),F(g_,nt),It(at))if(at.length){const H=t.exposed||(t.exposed={});at.forEach(Q=>{Object.defineProperty(H,Q,{get:()=>r[Q],set:yt=>r[Q]=yt})})}else t.exposed||(t.exposed={});B&&t.render===wr&&(t.render=B),pt!=null&&(t.inheritAttrs=pt),gt&&(t.components=gt),G&&(t.directives=G)}function S_(t,e,r=wr){It(t)&&(t=Ef(t));for(const o in t){const s=t[o];let u;ye(s)?"default"in s?u=qr(s.from||o,s.default,!0):u=qr(s.from||o):u=qr(s),Le(u)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):e[o]=u}}function _g(t,e,r){jn(It(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function l0(t,e,r,o){const s=o.includes(".")?Jm(r,o):()=>r[o];if(Ie(t)){const u=e[t];jt(u)&&Re(s,u)}else if(jt(t))Re(s,t.bind(r));else if(ye(t))if(It(t))t.forEach(u=>l0(u,e,r,o));else{const u=jt(t.handler)?t.handler.bind(r):e[t.handler];jt(u)&&Re(s,u,t)}}function Lh(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:s,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(e);let d;return h?d=h:!s.length&&!r&&!o?d=e:(d={},s.length&&s.forEach(g=>nc(d,g,f,!0)),nc(d,e,f)),ye(e)&&u.set(e,d),d}function nc(t,e,r,o=!1){const{mixins:s,extends:u}=e;u&&nc(t,u,r,!0),s&&s.forEach(f=>nc(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=k_[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const k_={data:Sg,props:kg,emits:kg,methods:il,computed:il,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:il,directives:il,watch:T_,provide:Sg,inject:C_};function Sg(t,e){return e?t?function(){return ze(jt(t)?t.call(this,this):t,jt(e)?e.call(this,this):e)}:e:t}function C_(t,e){return il(Ef(t),Ef(e))}function Ef(t){if(It(t)){const e={};for(let r=0;r1)return r&&jt(e)?e.call(o&&o.proxy):e}}function A_(t,e,r,o=!1){const s={},u={};Za(u,Dc,1),t.propsDefaults=Object.create(null),c0(t,e,s,u);for(const f in t.propsOptions[0])f in s||(s[f]=void 0);r?t.props=o?s:Fm(s):t.type.props?t.props=s:t.props=u,t.attrs=u}function M_(t,e,r,o){const{props:s,attrs:u,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 b=0;b{d=!0;const[w,S]=u0(b,e,!0);ze(f,w),S&&h.push(...S)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!d)return ye(t)&&o.set(t,Go),Go;if(It(u))for(let v=0;v-1,S[1]=A<0||P-1||le(S,"default"))&&h.push(b)}}}const g=[f,h];return ye(t)&&o.set(t,g),g}function Cg(t){return t[0]!=="$"}function Tg(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Eg(t,e){return Tg(t)===Tg(e)}function Lg(t,e){return It(e)?e.findIndex(r=>Eg(r,t)):jt(e)&&Eg(e,t)?0:-1}const f0=t=>t[0]==="_"||t==="$stable",Ah=t=>It(t)?t.map(rr):[rr(t)],N_=(t,e,r)=>{if(e._n)return e;const o=ee((...s)=>Ah(e(...s)),r);return o._c=!1,o},h0=(t,e,r)=>{const o=t._ctx;for(const s in t){if(f0(s))continue;const u=t[s];if(jt(u))e[s]=N_(s,u,o);else if(u!=null){const f=Ah(u);e[s]=()=>f}}},d0=(t,e)=>{const r=Ah(e);t.slots.default=()=>r},P_=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=ae(e),Za(e,"_",r)):h0(e,t.slots={})}else t.slots={},e&&d0(t,e);Za(t.slots,Dc,1)},O_=(t,e,r)=>{const{vnode:o,slots:s}=t;let u=!0,f=we;if(o.shapeFlag&32){const h=e._;h?r&&h===1?u=!1:(ze(s,e),!r&&h===1&&delete s._):(u=!e.$stable,h0(e,s)),f=e}else e&&(d0(t,e),f={default:1});if(u)for(const h in s)!f0(h)&&f[h]==null&&delete s[h]};function Af(t,e,r,o,s=!1){if(It(t)){t.forEach((w,S)=>Af(w,e&&(It(e)?e[S]:e),r,o,s));return}if(ll(o)&&!s)return;const u=o.shapeFlag&4?$c(o.component)||o.component.proxy:o.el,f=s?null:u,{i:h,r:d}=t,g=e&&e.r,v=h.refs===we?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==d&&(Ie(g)?(v[g]=null,le(b,g)&&(b[g]=null)):Le(g)&&(g.value=null)),jt(d))ki(d,h,12,[f,v]);else{const w=Ie(d),S=Le(d);if(w||S){const P=()=>{if(t.f){const A=w?le(b,d)?b[d]:v[d]:d.value;s?It(A)&&ch(A,u):It(A)?A.includes(u)||A.push(u):w?(v[d]=[u],le(b,d)&&(b[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,le(b,d)&&(b[d]=f)):S&&(d.value=f,t.k&&(v[t.k]=f))};f?(P.id=-1,Cn(P,r)):P()}}}const Cn=r_;function D_(t){return $_(t)}function $_(t,e){const r=vf();r.__VUE__=!0;const{insert:o,remove:s,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:b,nextSibling:w,setScopeId:S=wr,insertStaticContent:P}=t,A=($,I,V,J=null,ot=null,ut=null,St=!1,mt=null,ct=!!I.dynamicChildren)=>{if($===I)return;$&&!mr($,I)&&(J=j($),Ht($,ot,ut,!0),$=null),I.patchFlag===-2&&(ct=!1,I.dynamicChildren=null);const{type:ft,ref:$t,shapeFlag:Nt}=I;switch(ft){case Oc:L($,I,V,J);break;case Mn:T($,I,V,J);break;case Xu:$==null&&M(I,V,J,St);break;case ne:gt($,I,V,J,ot,ut,St,mt,ct);break;default:Nt&1?B($,I,V,J,ot,ut,St,mt,ct):Nt&6?G($,I,V,J,ot,ut,St,mt,ct):(Nt&64||Nt&128)&&ft.process($,I,V,J,ot,ut,St,mt,ct,lt)}$t!=null&&ot&&Af($t,$&&$.ref,ut,I||$,!I)},L=($,I,V,J)=>{if($==null)o(I.el=h(I.children),V,J);else{const ot=I.el=$.el;I.children!==$.children&&g(ot,I.children)}},T=($,I,V,J)=>{$==null?o(I.el=d(I.children||""),V,J):I.el=$.el},M=($,I,V,J)=>{[$.el,$.anchor]=P($.children,I,V,J,$.el,$.anchor)},R=({el:$,anchor:I},V,J)=>{let ot;for(;$&&$!==I;)ot=w($),o($,V,J),$=ot;o(I,V,J)},E=({el:$,anchor:I})=>{let V;for(;$&&$!==I;)V=w($),s($),$=V;s(I)},B=($,I,V,J,ot,ut,St,mt,ct)=>{St=St||I.type==="svg",$==null?K(I,V,J,ot,ut,St,mt,ct):nt($,I,ot,ut,St,mt,ct)},K=($,I,V,J,ot,ut,St,mt)=>{let ct,ft;const{type:$t,props:Nt,shapeFlag:Dt,transition:Bt,dirs:Kt}=$;if(ct=$.el=f($.type,ut,Nt&&Nt.is,Nt),Dt&8?v(ct,$.children):Dt&16&&Y($.children,ct,null,J,ot,ut&&$t!=="foreignObject",St,mt),Kt&&Wi($,null,J,"created"),ht(ct,$,$.scopeId,St,J),Nt){for(const oe in Nt)oe!=="value"&&!Ia(oe)&&u(ct,oe,null,Nt[oe],ut,$.children,J,ot,Tt);"value"in Nt&&u(ct,"value",null,Nt.value),(ft=Nt.onVnodeBeforeMount)&&gr(ft,J,$)}Kt&&Wi($,null,J,"beforeMount");const re=R_(ot,Bt);re&&Bt.beforeEnter(ct),o(ct,I,V),((ft=Nt&&Nt.onVnodeMounted)||re||Kt)&&Cn(()=>{ft&&gr(ft,J,$),re&&Bt.enter(ct),Kt&&Wi($,null,J,"mounted")},ot)},ht=($,I,V,J,ot)=>{if(V&&S($,V),J)for(let ut=0;ut{for(let ft=ct;ft<$.length;ft++){const $t=$[ft]=mt?vi($[ft]):rr($[ft]);A(null,$t,I,V,J,ot,ut,St,mt)}},nt=($,I,V,J,ot,ut,St)=>{const mt=I.el=$.el;let{patchFlag:ct,dynamicChildren:ft,dirs:$t}=I;ct|=$.patchFlag&16;const Nt=$.props||we,Dt=I.props||we;let Bt;V&&Ui(V,!1),(Bt=Dt.onVnodeBeforeUpdate)&&gr(Bt,V,I,$),$t&&Wi(I,$,V,"beforeUpdate"),V&&Ui(V,!0);const Kt=ot&&I.type!=="foreignObject";if(ft?at($.dynamicChildren,ft,mt,V,J,Kt,ut):St||Q($,I,mt,null,V,J,Kt,ut,!1),ct>0){if(ct&16)pt(mt,I,Nt,Dt,V,J,ot);else if(ct&2&&Nt.class!==Dt.class&&u(mt,"class",null,Dt.class,ot),ct&4&&u(mt,"style",Nt.style,Dt.style,ot),ct&8){const re=I.dynamicProps;for(let oe=0;oe{Bt&&gr(Bt,V,I,$),$t&&Wi(I,$,V,"updated")},J)},at=($,I,V,J,ot,ut,St)=>{for(let mt=0;mt{if(V!==J){if(V!==we)for(const mt in V)!Ia(mt)&&!(mt in J)&&u($,mt,V[mt],null,St,I.children,ot,ut,Tt);for(const mt in J){if(Ia(mt))continue;const ct=J[mt],ft=V[mt];ct!==ft&&mt!=="value"&&u($,mt,ft,ct,St,I.children,ot,ut,Tt)}"value"in J&&u($,"value",V.value,J.value)}},gt=($,I,V,J,ot,ut,St,mt,ct)=>{const ft=I.el=$?$.el:h(""),$t=I.anchor=$?$.anchor:h("");let{patchFlag:Nt,dynamicChildren:Dt,slotScopeIds:Bt}=I;Bt&&(mt=mt?mt.concat(Bt):Bt),$==null?(o(ft,V,J),o($t,V,J),Y(I.children,V,$t,ot,ut,St,mt,ct)):Nt>0&&Nt&64&&Dt&&$.dynamicChildren?(at($.dynamicChildren,Dt,V,ot,ut,St,mt),(I.key!=null||ot&&I===ot.subTree)&&p0($,I,!0)):Q($,I,V,$t,ot,ut,St,mt,ct)},G=($,I,V,J,ot,ut,St,mt,ct)=>{I.slotScopeIds=mt,$==null?I.shapeFlag&512?ot.ctx.activate(I,V,J,St,ct):z(I,V,J,ot,ut,St,ct):k($,I,ct)},z=($,I,V,J,ot,ut,St)=>{const mt=$.component=W_($,J,ot);if(Nc($)&&(mt.ctx.renderer=lt),U_(mt),mt.asyncDep){if(ot&&ot.registerDep(mt,F),!$.el){const ct=mt.subTree=Ft(Mn);T(null,ct,I,V)}return}F(mt,$,I,V,ot,ut,St)},k=($,I,V)=>{const J=I.component=$.component;if(G1($,I,V))if(J.asyncDep&&!J.asyncResolved){H(J,I,V);return}else J.next=I,q1(J.update),J.update();else I.el=$.el,J.vnode=I},F=($,I,V,J,ot,ut,St)=>{const mt=()=>{if($.isMounted){let{next:$t,bu:Nt,u:Dt,parent:Bt,vnode:Kt}=$,re=$t,oe;Ui($,!1),$t?($t.el=Kt.el,H($,$t,St)):$t=Kt,Nt&&Fa(Nt),(oe=$t.props&&$t.props.onVnodeBeforeUpdate)&&gr(oe,Bt,$t,Kt),Ui($,!0);const fe=Vu($),se=$.subTree;$.subTree=fe,A(se,fe,b(se.el),j(se),$,ot,ut),$t.el=fe.el,re===null&&Sh($,fe.el),Dt&&Cn(Dt,ot),(oe=$t.props&&$t.props.onVnodeUpdated)&&Cn(()=>gr(oe,Bt,$t,Kt),ot)}else{let $t;const{el:Nt,props:Dt}=I,{bm:Bt,m:Kt,parent:re}=$,oe=ll(I);if(Ui($,!1),Bt&&Fa(Bt),!oe&&($t=Dt&&Dt.onVnodeBeforeMount)&&gr($t,re,I),Ui($,!0),Nt&&Et){const fe=()=>{$.subTree=Vu($),Et(Nt,$.subTree,$,ot,null)};oe?I.type.__asyncLoader().then(()=>!$.isUnmounted&&fe()):fe()}else{const fe=$.subTree=Vu($);A(null,fe,V,J,$,ot,ut),I.el=fe.el}if(Kt&&Cn(Kt,ot),!oe&&($t=Dt&&Dt.onVnodeMounted)){const fe=I;Cn(()=>gr($t,re,fe),ot)}(I.shapeFlag&256||re&&ll(re.vnode)&&re.vnode.shapeFlag&256)&&$.a&&Cn($.a,ot),$.isMounted=!0,I=V=J=null}},ct=$.effect=new hh(mt,()=>_h(ft),$.scope),ft=$.update=()=>ct.run();ft.id=$.uid,Ui($,!0),ft()},H=($,I,V)=>{I.component=$;const J=$.vnode.props;$.vnode=I,$.next=null,M_($,I.props,J,V),O_($,I.children,V),ps(),mg(),gs()},Q=($,I,V,J,ot,ut,St,mt,ct=!1)=>{const ft=$&&$.children,$t=$?$.shapeFlag:0,Nt=I.children,{patchFlag:Dt,shapeFlag:Bt}=I;if(Dt>0){if(Dt&128){At(ft,Nt,V,J,ot,ut,St,mt,ct);return}else if(Dt&256){yt(ft,Nt,V,J,ot,ut,St,mt,ct);return}}Bt&8?($t&16&&Tt(ft,ot,ut),Nt!==ft&&v(V,Nt)):$t&16?Bt&16?At(ft,Nt,V,J,ot,ut,St,mt,ct):Tt(ft,ot,ut,!0):($t&8&&v(V,""),Bt&16&&Y(Nt,V,J,ot,ut,St,mt,ct))},yt=($,I,V,J,ot,ut,St,mt,ct)=>{$=$||Go,I=I||Go;const ft=$.length,$t=I.length,Nt=Math.min(ft,$t);let Dt;for(Dt=0;Dt$t?Tt($,ot,ut,!0,!1,Nt):Y(I,V,J,ot,ut,St,mt,ct,Nt)},At=($,I,V,J,ot,ut,St,mt,ct)=>{let ft=0;const $t=I.length;let Nt=$.length-1,Dt=$t-1;for(;ft<=Nt&&ft<=Dt;){const Bt=$[ft],Kt=I[ft]=ct?vi(I[ft]):rr(I[ft]);if(mr(Bt,Kt))A(Bt,Kt,V,null,ot,ut,St,mt,ct);else break;ft++}for(;ft<=Nt&&ft<=Dt;){const Bt=$[Nt],Kt=I[Dt]=ct?vi(I[Dt]):rr(I[Dt]);if(mr(Bt,Kt))A(Bt,Kt,V,null,ot,ut,St,mt,ct);else break;Nt--,Dt--}if(ft>Nt){if(ft<=Dt){const Bt=Dt+1,Kt=Bt<$t?I[Bt].el:J;for(;ft<=Dt;)A(null,I[ft]=ct?vi(I[ft]):rr(I[ft]),V,Kt,ot,ut,St,mt,ct),ft++}}else if(ft>Dt)for(;ft<=Nt;)Ht($[ft],ot,ut,!0),ft++;else{const Bt=ft,Kt=ft,re=new Map;for(ft=Kt;ft<=Dt;ft++){const Ae=I[ft]=ct?vi(I[ft]):rr(I[ft]);Ae.key!=null&&re.set(Ae.key,ft)}let oe,fe=0;const se=Dt-Kt+1;let rn=!1,Pn=0;const wn=new Array(se);for(ft=0;ft=se){Ht(Ae,ot,ut,!0);continue}let xn;if(Ae.key!=null)xn=re.get(Ae.key);else for(oe=Kt;oe<=Dt;oe++)if(wn[oe-Kt]===0&&mr(Ae,I[oe])){xn=oe;break}xn===void 0?Ht(Ae,ot,ut,!0):(wn[xn-Kt]=ft+1,xn>=Pn?Pn=xn:rn=!0,A(Ae,I[xn],V,null,ot,ut,St,mt,ct),fe++)}const cr=rn?z_(wn):Go;for(oe=cr.length-1,ft=se-1;ft>=0;ft--){const Ae=Kt+ft,xn=I[Ae],Yt=Ae+1<$t?I[Ae+1].el:J;wn[ft]===0?A(null,xn,V,Yt,ot,ut,St,mt,ct):rn&&(oe<0||ft!==cr[oe]?qt(xn,V,Yt,2):oe--)}}},qt=($,I,V,J,ot=null)=>{const{el:ut,type:St,transition:mt,children:ct,shapeFlag:ft}=$;if(ft&6){qt($.component.subTree,I,V,J);return}if(ft&128){$.suspense.move(I,V,J);return}if(ft&64){St.move($,I,V,lt);return}if(St===ne){o(ut,I,V);for(let Nt=0;Ntmt.enter(ut),ot);else{const{leave:Nt,delayLeave:Dt,afterLeave:Bt}=mt,Kt=()=>o(ut,I,V),re=()=>{Nt(ut,()=>{Kt(),Bt&&Bt()})};Dt?Dt(ut,Kt,re):re()}else o(ut,I,V)},Ht=($,I,V,J=!1,ot=!1)=>{const{type:ut,props:St,ref:mt,children:ct,dynamicChildren:ft,shapeFlag:$t,patchFlag:Nt,dirs:Dt}=$;if(mt!=null&&Af(mt,null,V,$,!0),$t&256){I.ctx.deactivate($);return}const Bt=$t&1&&Dt,Kt=!ll($);let re;if(Kt&&(re=St&&St.onVnodeBeforeUnmount)&&gr(re,I,$),$t&6)Gt($.component,V,J);else{if($t&128){$.suspense.unmount(V,J);return}Bt&&Wi($,null,I,"beforeUnmount"),$t&64?$.type.remove($,I,V,ot,lt,J):ft&&(ut!==ne||Nt>0&&Nt&64)?Tt(ft,I,V,!1,!0):(ut===ne&&Nt&384||!ot&&$t&16)&&Tt(ct,I,V),J&&Jt($)}(Kt&&(re=St&&St.onVnodeUnmounted)||Bt)&&Cn(()=>{re&&gr(re,I,$),Bt&&Wi($,null,I,"unmounted")},V)},Jt=$=>{const{type:I,el:V,anchor:J,transition:ot}=$;if(I===ne){Qt(V,J);return}if(I===Xu){E($);return}const ut=()=>{s(V),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if($.shapeFlag&1&&ot&&!ot.persisted){const{leave:St,delayLeave:mt}=ot,ct=()=>St(V,ut);mt?mt($.el,ut,ct):ct()}else ut()},Qt=($,I)=>{let V;for(;$!==I;)V=w($),s($),$=V;s(I)},Gt=($,I,V)=>{const{bum:J,scope:ot,update:ut,subTree:St,um:mt}=$;J&&Fa(J),ot.stop(),ut&&(ut.active=!1,Ht(St,$,I,V)),mt&&Cn(mt,I),Cn(()=>{$.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Tt=($,I,V,J=!1,ot=!1,ut=0)=>{for(let St=ut;St<$.length;St++)Ht($[St],I,V,J,ot)},j=$=>$.shapeFlag&6?j($.component.subTree):$.shapeFlag&128?$.suspense.next():w($.anchor||$.el),rt=($,I,V)=>{$==null?I._vnode&&Ht(I._vnode,null,null,!0):A(I._vnode||null,$,I,null,null,null,V),mg(),Vm(),I._vnode=$},lt={p:A,um:Ht,m:qt,r:Jt,mt:z,mc:Y,pc:Q,pbc:at,n:j,o:t};let Mt,Et;return e&&([Mt,Et]=e(lt)),{render:rt,hydrate:Mt,createApp:L_(rt,Mt)}}function Ui({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function R_(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 u=0;u>1,t[r[h]]0&&(e[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=e[f];return r}const I_=t=>t.__isTeleport,ne=Symbol.for("v-fgt"),Oc=Symbol.for("v-txt"),Mn=Symbol.for("v-cmt"),Xu=Symbol.for("v-stc"),cl=[];let Wn=null;function st(t=!1){cl.push(Wn=t?null:[])}function g0(){cl.pop(),Wn=cl[cl.length-1]||null}let is=1;function Ag(t){is+=t}function v0(t){return t.dynamicChildren=is>0?Wn||Go:null,g0(),is>0&&Wn&&Wn.push(t),t}function kt(t,e,r,o,s,u){return v0(tt(t,e,r,o,s,u,!0))}function te(t,e,r,o,s){return v0(Ft(t,e,r,o,s,!0))}function yl(t){return t?t.__v_isVNode===!0:!1}function mr(t,e){return t.type===e.type&&t.key===e.key}const Dc="__vInternal",m0=({key:t})=>t??null,Ha=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Ie(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,u=t===ne?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&m0(e),ref:e&&Ha(e),scopeId:Mc,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:u,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Qe};return h?(Mh(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=Ie(r)?8:16),is>0&&!f&&Wn&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&Wn.push(d),d}const Ft=F_;function F_(t,e=null,r=null,o=0,s=null,u=!1){if((!t||t===X1)&&(t=Mn),yl(t)){const h=Ei(t,e,!0);return r&&Mh(h,r),is>0&&!u&&Wn&&(h.shapeFlag&6?Wn[Wn.indexOf(t)]=h:Wn.push(h)),h.patchFlag|=-2,h}if(K_(t)&&(t=t.__vccOpts),e){e=q_(e);let{class:h,style:d}=e;h&&!Ie(h)&&(e.class=ve(h)),ye(d)&&(qm(d)&&!It(d)&&(d=ze({},d)),e.style=An(d))}const f=Ie(t)?1:Y1(t)?128:I_(t)?64:ye(t)?4:jt(t)?2:0;return tt(t,e,r,o,s,f,u,!0)}function q_(t){return t?qm(t)||Dc in t?ze({},t):t:null}function Ei(t,e,r=!1){const{props:o,ref:s,patchFlag:u,children:f}=t,h=e?Ci(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&m0(h),ref:e&&e.ref?r&&s?It(s)?s.concat(Ha(e)):[s,Ha(e)]:Ha(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?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ei(t.ssContent),ssFallback:t.ssFallback&&Ei(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function me(t=" ",e=0){return Ft(Oc,null,t,e)}function Vt(t="",e=!1){return e?(st(),te(Mn,null,t)):Ft(Mn,null,t)}function rr(t){return t==null||typeof t=="boolean"?Ft(Mn):It(t)?Ft(ne,null,t.slice()):typeof t=="object"?vi(t):Ft(Oc,null,String(t))}function vi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ei(t)}function Mh(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),Mh(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!(Dc 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 Ci(...t){const e={};for(let r=0;rGe||Qe;let Nh,qo,Mg="__VUE_INSTANCE_SETTERS__";(qo=vf()[Mg])||(qo=vf()[Mg]=[]),qo.push(t=>Ge=t),Nh=t=>{qo.length>1?qo.forEach(e=>e(t)):qo[0](t)};const os=t=>{Nh(t),t.scope.on()},to=()=>{Ge&&Ge.scope.off(),Nh(null)};function y0(t){return t.vnode.shapeFlag&4}let bl=!1;function U_(t,e=!1){bl=e;const{props:r,children:o}=t.vnode,s=y0(t);A_(t,r,s,e),P_(t,o);const u=s?j_(t,e):void 0;return bl=!1,u}function j_(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=vh(new Proxy(t.ctx,b_));const{setup:o}=r;if(o){const s=t.setupContext=o.length>1?w0(t):null;os(t),ps();const u=ki(o,t,0,[t.props,s]);if(gs(),to(),_m(u)){if(u.then(to,to),e)return u.then(f=>{Mf(t,f,e)}).catch(f=>{Nl(f,t,0)});t.asyncDep=u}else Mf(t,u,e)}else b0(t,e)}function Mf(t,e,r){jt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ye(e)&&(t.setupState=Bm(e)),b0(t,r)}let Ng;function b0(t,e,r){const o=t.type;if(!t.render){if(!e&&Ng&&!o.render){const s=o.template||Lh(t).template;if(s){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=ze(ze({isCustomElement:u,delimiters:h},f),d);o.render=Ng(s,g)}}t.render=o.render||wr}{os(t),ps();try{__(t)}finally{gs(),to()}}}function V_(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return Nn(t,"get","$attrs"),e[r]}}))}function w0(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return V_(t)},slots:t.slots,emit:t.emit,expose:e}}function $c(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Bm(vh(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in al)return al[r](t)},has(e,r){return r in e||r in al}}))}function G_(t,e=!0){return jt(t)?t.displayName||t.name:t.name||e&&t.__name}function K_(t){return jt(t)&&"__vccOpts"in t}const xt=(t,e)=>z1(t,e,bl);function Ol(t,e,r){const o=arguments.length;return o===2?ye(e)&&!It(e)?yl(e)?Ft(t,null,[e]):Ft(t,e):Ft(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&yl(r)&&(r=[r]),Ft(t,e,r))}const X_=Symbol.for("v-scx"),Y_=()=>qr(X_),Z_="3.3.8",Q_="http://www.w3.org/2000/svg",Xi=typeof document<"u"?document:null,Pg=Xi&&Xi.createElement("template"),J_={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?Xi.createElementNS(Q_,t):Xi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:t=>Xi.createTextNode(t),createComment:t=>Xi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Xi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,s,u){const f=r?r.previousSibling:e.lastChild;if(s&&(s===u||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===u||!(s=s.nextSibling)););else{Pg.innerHTML=o?`${t}`:t;const h=Pg.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]}},fi="transition",Zs="animation",wl=Symbol("_vtc"),Ph=(t,{slots:e})=>Ol(a_,tS(t),e);Ph.displayName="Transition";const x0={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};Ph.props=ze({},t0,x0);const ji=(t,e=[])=>{It(t)?t.forEach(r=>r(...e)):t&&t(...e)},Og=t=>t?It(t)?t.some(e=>e.length>1):t.length>1:!1;function tS(t){const e={};for(const gt in t)gt in x0||(e[gt]=t[gt]);if(t.css===!1)return e;const{name:r="v",type:o,duration:s,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:w=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,P=eS(s),A=P&&P[0],L=P&&P[1],{onBeforeEnter:T,onEnter:M,onEnterCancelled:R,onLeave:E,onLeaveCancelled:B,onBeforeAppear:K=T,onAppear:ht=M,onAppearCancelled:Y=R}=e,nt=(gt,G,z)=>{Vi(gt,G?v:h),Vi(gt,G?g:f),z&&z()},at=(gt,G)=>{gt._isLeaving=!1,Vi(gt,b),Vi(gt,S),Vi(gt,w),G&&G()},pt=gt=>(G,z)=>{const k=gt?ht:M,F=()=>nt(G,gt,z);ji(k,[G,F]),Dg(()=>{Vi(G,gt?d:u),hi(G,gt?v:h),Og(k)||$g(G,o,A,F)})};return ze(e,{onBeforeEnter(gt){ji(T,[gt]),hi(gt,u),hi(gt,f)},onBeforeAppear(gt){ji(K,[gt]),hi(gt,d),hi(gt,g)},onEnter:pt(!1),onAppear:pt(!0),onLeave(gt,G){gt._isLeaving=!0;const z=()=>at(gt,G);hi(gt,b),iS(),hi(gt,w),Dg(()=>{gt._isLeaving&&(Vi(gt,b),hi(gt,S),Og(E)||$g(gt,o,L,z))}),ji(E,[gt,z])},onEnterCancelled(gt){nt(gt,!1),ji(R,[gt])},onAppearCancelled(gt){nt(gt,!0),ji(Y,[gt])},onLeaveCancelled(gt){at(gt),ji(B,[gt])}})}function eS(t){if(t==null)return null;if(ye(t))return[Yu(t.enter),Yu(t.leave)];{const e=Yu(t);return[e,e]}}function Yu(t){return Cm(t)}function hi(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[wl]||(t[wl]=new Set)).add(e)}function Vi(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[wl];r&&(r.delete(e),r.size||(t[wl]=void 0))}function Dg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let nS=0;function $g(t,e,r,o){const s=t._endId=++nS,u=()=>{s===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=rS(t,e);if(!f)return o();const g=f+"end";let v=0;const b=()=>{t.removeEventListener(g,w),u()},w=S=>{S.target===t&&++v>=d&&b()};setTimeout(()=>{v(r[P]||"").split(", "),s=o(`${fi}Delay`),u=o(`${fi}Duration`),f=Rg(s,u),h=o(`${Zs}Delay`),d=o(`${Zs}Duration`),g=Rg(h,d);let v=null,b=0,w=0;e===fi?f>0&&(v=fi,b=f,w=u.length):e===Zs?g>0&&(v=Zs,b=g,w=d.length):(b=Math.max(f,g),v=b>0?f>g?fi:Zs:null,w=v?v===fi?u.length:d.length:0);const S=v===fi&&/\b(transform|all)(,|$)/.test(o(`${fi}Property`).toString());return{type:v,timeout:b,propCount:w,hasTransform:S}}function Rg(t,e){for(;t.lengthzg(r)+zg(t[o])))}function zg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function iS(){return document.body.offsetHeight}function oS(t,e,r){const o=t[wl];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Oh=Symbol("_vod"),Nf={beforeMount(t,{value:e},{transition:r}){t[Oh]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Qs(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),Qs(t,!0),o.enter(t)):o.leave(t,()=>{Qs(t,!1)}):Qs(t,e))},beforeUnmount(t,{value:e}){Qs(t,e)}};function Qs(t,e){t.style.display=e?t[Oh]:"none"}function sS(t,e,r){const o=t.style,s=Ie(r);if(r&&!s){if(e&&!Ie(e))for(const u in e)r[u]==null&&Pf(o,u,"");for(const u in r)Pf(o,u,r[u])}else{const u=o.display;s?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),Oh in t&&(o.display=u)}}const Ig=/\s*!important$/;function Pf(t,e,r){if(It(r))r.forEach(o=>Pf(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=lS(t,e);Ig.test(r)?t.setProperty(co(o),r.replace(Ig,""),"important"):t[o]=r}}const Fg=["Webkit","Moz","ms"],Zu={};function lS(t,e){const r=Zu[e];if(r)return r;let o=_r(e);if(o!=="filter"&&o in t)return Zu[e]=o;o=Tc(o);for(let s=0;sQu||(dS.then(()=>Qu=0),Qu=Date.now());function gS(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;jn(vS(o,r.value),e,5,[o])};return r.value=t,r.attached=pS(),r}function vS(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 Wg=/^on[a-z]/,mS=(t,e,r,o,s=!1,u,f,h,d)=>{e==="class"?oS(t,o,s):e==="style"?sS(t,r,o):_c(e)?ah(e)||fS(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):yS(t,e,o,s))?cS(t,e,o,u,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),aS(t,e,o,s))};function yS(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&Wg.test(e)&&jt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Wg.test(e)&&Ie(r)?!1:e in t}const Ug=t=>{const e=t.props["onUpdate:modelValue"]||!1;return It(e)?r=>Fa(e,r):e};function bS(t){t.target.composing=!0}function jg(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ju=Symbol("_assign"),wS={created(t,{modifiers:{lazy:e,trim:r,number:o}},s){t[Ju]=Ug(s);const u=o||s.props&&s.props.type==="number";Bo(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=gf(h)),t[Ju](h)}),r&&Bo(t,"change",()=>{t.value=t.value.trim()}),e||(Bo(t,"compositionstart",bS),Bo(t,"compositionend",jg),Bo(t,"change",jg))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:s}},u){if(t[Ju]=Ug(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===e||(s||t.type==="number")&&gf(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},xS={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Of=(t,e)=>r=>{if(!("key"in r))return;const o=co(r.key);if(e.some(s=>s===o||xS[s]===o))return t(r)},_S=ze({patchProp:mS},J_);let Vg;function SS(){return Vg||(Vg=D_(_S))}const _0=(...t)=>{const e=SS().createApp(...t),{mount:r}=e;return e.mount=o=>{const s=kS(o);if(!s)return;const u=e._component;!jt(u)&&!u.render&&!u.template&&(u.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 kS(t){return Ie(t)?document.querySelector(t):t}const fo=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},CS={};function TS(t,e){const r=io("RouterView");return st(),te(r)}const ES=fo(CS,[["render",TS]]);/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT */const Wo=typeof window<"u";function LS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function tf(t,e){const r={};for(const o in e){const s=e[o];r[o]=lr(s)?s.map(t):t(s)}return r}const ul=()=>{},lr=Array.isArray,AS=/\/$/,MS=t=>t.replace(AS,"");function ef(t,e,r="/"){let o,s={},u="",f="";const h=e.indexOf("#");let d=e.indexOf("?");return h=0&&(d=-1),d>-1&&(o=e.slice(0,d),u=e.slice(d+1,h>-1?h:e.length),s=t(u)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=DS(o??e,r),{fullPath:o+(u&&"?")+u+f,path:o,query:s,hash:f}}function NS(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Gg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function PS(t,e,r){const o=e.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&ss(e.matched[o],r.matched[s])&&S0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function ss(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function S0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!OS(t[r],e[r]))return!1;return!0}function OS(t,e){return lr(t)?Kg(t,e):lr(e)?Kg(e,t):t===e}function Kg(t,e){return lr(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function DS(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 u=r.length-1,f,h;for(f=0;f1&&u--;else break;return r.slice(0,u).join("/")+"/"+o.slice(f-(f===o.length?1:0)).join("/")}var xl;(function(t){t.pop="pop",t.push="push"})(xl||(xl={}));var fl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(fl||(fl={}));function $S(t){if(!t)if(Wo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),MS(t)}const RS=/^[^#]+#/;function zS(t,e){return t.replace(RS,"#")+e}function IS(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 Rc=()=>({left:window.pageXOffset,top:window.pageYOffset});function FS(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=IS(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 Xg(t,e){return(history.state?history.state.position-e:-1)+t}const Df=new Map;function qS(t,e){Df.set(t,e)}function HS(t){const e=Df.get(t);return Df.delete(t),e}let BS=()=>location.protocol+"//"+location.host;function k0(t,e){const{pathname:r,search:o,hash:s}=e,u=t.indexOf("#");if(u>-1){let h=s.includes(t.slice(u))?t.slice(u).length:1,d=s.slice(h);return d[0]!=="/"&&(d="/"+d),Gg(d,"")}return Gg(r,t)+o+s}function WS(t,e,r,o){let s=[],u=[],f=null;const h=({state:w})=>{const S=k0(t,location),P=r.value,A=e.value;let L=0;if(w){if(r.value=S,e.value=w,f&&f===P){f=null;return}L=A?w.position-A.position:0}else o(S);s.forEach(T=>{T(r.value,P,{delta:L,type:xl.pop,direction:L?L>0?fl.forward:fl.back:fl.unknown})})};function d(){f=r.value}function g(w){s.push(w);const S=()=>{const P=s.indexOf(w);P>-1&&s.splice(P,1)};return u.push(S),S}function v(){const{history:w}=window;w.state&&w.replaceState(pe({},w.state,{scroll:Rc()}),"")}function b(){for(const w of u)w();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:d,listen:g,destroy:b}}function Yg(t,e,r,o=!1,s=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:s?Rc():null}}function US(t){const{history:e,location:r}=window,o={value:k0(t,r)},s={value:e.state};s.value||u(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function u(d,g,v){const b=t.indexOf("#"),w=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+d:BS()+t+d;try{e[v?"replaceState":"pushState"](g,"",w),s.value=g}catch(S){console.error(S),r[v?"replace":"assign"](w)}}function f(d,g){const v=pe({},e.state,Yg(s.value.back,d,s.value.forward,!0),g,{position:s.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=pe({},s.value,e.state,{forward:d,scroll:Rc()});u(v.current,v,!0);const b=pe({},Yg(o.value,d,null),{position:v.position+1},g);u(d,b,!1),o.value=d}return{location:o,state:s,push:h,replace:f}}function jS(t){t=$S(t);const e=US(t),r=WS(t,e.state,e.location,e.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const s=pe({location:"",base:t,go:o,createHref:zS.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 VS(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),jS(t)}function GS(t){return typeof t=="string"||t&&typeof t=="object"}function C0(t){return typeof t=="string"||typeof t=="symbol"}const di={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},T0=Symbol("");var Zg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Zg||(Zg={}));function ls(t,e){return pe(new Error,{type:t,[T0]:!0},e)}function Or(t,e){return t instanceof Error&&T0 in t&&(e==null||!!(t.type&e))}const Qg="[^/]+?",KS={sensitive:!1,strict:!1,start:!0,end:!0},XS=/[.+*?^${}()[\]/\\]/g;function YS(t,e){const r=pe({},KS,e),o=[];let s=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(s+="/");for(let b=0;be.length?e.length===1&&e[0]===40+40?1:-1:0}function QS(t,e){let r=0;const o=t.score,s=e.score;for(;r0&&e[e.length-1]<0}const JS={type:0,value:""},tk=/[a-zA-Z0-9_]/;function ek(t){if(!t)return[[]];if(t==="/")return[[JS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const s=[];let u;function f(){u&&s.push(u),u=[]}let h=0,d,g="",v="";function b(){g&&(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.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)}:ul}function f(v){if(C0(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,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 b=0;for(;b=0&&(v.record.path!==r[b].record.path||!E0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!ev(v)&&o.set(v.record.name,v)}function g(v,b){let w,S={},P,A;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw ls(1,{location:v});A=w.record.name,S=pe(tv(b.params,w.keys.filter(M=>!M.optional).map(M=>M.name)),v.params&&tv(v.params,w.keys.map(M=>M.name))),P=w.stringify(S)}else if("path"in v)P=v.path,w=r.find(M=>M.re.test(P)),w&&(S=w.parse(P),A=w.record.name);else{if(w=b.name?o.get(b.name):r.find(M=>M.re.test(b.path)),!w)throw ls(1,{location:v,currentLocation:b});A=w.record.name,S=pe({},b.params,v.params),P=w.stringify(S)}const L=[];let T=w;for(;T;)L.unshift(T.record),T=T.parent;return{name:A,path:P,params:S,matched:L,meta:sk(L)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:s}}function tv(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function ik(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:ok(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 ok(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 ev(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function sk(t){return t.reduce((e,r)=>pe(e,r.meta),{})}function nv(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function E0(t,e){return e.children.some(r=>r===t||E0(t,r))}const L0=/#/g,lk=/&/g,ak=/\//g,ck=/=/g,uk=/\?/g,A0=/\+/g,fk=/%5B/g,hk=/%5D/g,M0=/%5E/g,dk=/%60/g,N0=/%7B/g,pk=/%7C/g,P0=/%7D/g,gk=/%20/g;function Dh(t){return encodeURI(""+t).replace(pk,"|").replace(fk,"[").replace(hk,"]")}function vk(t){return Dh(t).replace(N0,"{").replace(P0,"}").replace(M0,"^")}function $f(t){return Dh(t).replace(A0,"%2B").replace(gk,"+").replace(L0,"%23").replace(lk,"%26").replace(dk,"`").replace(N0,"{").replace(P0,"}").replace(M0,"^")}function mk(t){return $f(t).replace(ck,"%3D")}function yk(t){return Dh(t).replace(L0,"%23").replace(uk,"%3F")}function bk(t){return t==null?"":yk(t).replace(ak,"%2F")}function ic(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function wk(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;su&&$f(u)):[o&&$f(o)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function xk(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=lr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return e}const _k=Symbol(""),iv=Symbol(""),$h=Symbol(""),O0=Symbol(""),Rf=Symbol("");function Js(){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 mi(t,e,r,o,s){const u=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((f,h)=>{const d=b=>{b===!1?h(ls(4,{from:r,to:e})):b instanceof Error?h(b):GS(b)?h(ls(2,{from:e,to:b})):(u&&o.enterCallbacks[s]===u&&typeof b=="function"&&u.push(b),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(b=>h(b))})}function nf(t,e,r,o){const s=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(e!=="beforeRouteEnter"&&!u.instances[f]))if(Sk(h)){const g=(h.__vccOpts||h)[e];g&&s.push(mi(g,r,o,u,f))}else{let d=h();s.push(()=>d.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=LS(g)?g.default:g;u.components[f]=v;const w=(v.__vccOpts||v)[e];return w&&mi(w,r,o,u,f)()}))}}return s}function Sk(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function ov(t){const e=qr($h),r=qr(O0),o=xt(()=>e.resolve(U(t.to))),s=xt(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],b=r.matched;if(!v||!b.length)return-1;const w=b.findIndex(ss.bind(null,v));if(w>-1)return w;const S=sv(d[g-2]);return g>1&&sv(v)===S&&b[b.length-1].path!==S?b.findIndex(ss.bind(null,d[g-2])):w}),u=xt(()=>s.value>-1&&Ek(r.params,o.value.params)),f=xt(()=>s.value>-1&&s.value===r.matched.length-1&&S0(r.params,o.value.params));function h(d={}){return Tk(d)?e[U(t.replace)?"replace":"push"](U(t.to)).catch(ul):Promise.resolve()}return{route:o,href:xt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const kk=ie({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:ov,setup(t,{slots:e}){const r=Un(ov(t)),{options:o}=qr($h),s=xt(()=>({[lv(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[lv(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=e.default&&e.default(r);return t.custom?u:Ol("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},u)}}}),Ck=kk;function Tk(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 Ek(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(!lr(s)||s.length!==o.length||o.some((u,f)=>u!==s[f]))return!1}return!0}function sv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const lv=(t,e,r)=>t??e??r,Lk=ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=qr(Rf),s=xt(()=>t.route||o.value),u=qr(iv,0),f=xt(()=>{let g=U(u);const{matched:v}=s.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=xt(()=>s.value.matched[f.value]);qa(iv,xt(()=>f.value+1)),qa(_k,h),qa(Rf,s);const d=Zt();return Re(()=>[d.value,h.value,t.name],([g,v,b],[w,S,P])=>{v&&(v.instances[b]=g,S&&S!==v&&g&&g===w&&(v.leaveGuards.size||(v.leaveGuards=S.leaveGuards),v.updateGuards.size||(v.updateGuards=S.updateGuards))),g&&v&&(!S||!ss(v,S)||!w)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=s.value,v=t.name,b=h.value,w=b&&b.components[v];if(!w)return av(r.default,{Component:w,route:g});const S=b.props[v],P=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=Ol(w,pe({},P,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(b.instances[v]=null)},ref:d}));return av(r.default,{Component:L,route:g})||L}}});function av(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const Ak=Lk;function Mk(t){const e=rk(t.routes,t),r=t.parseQuery||wk,o=t.stringifyQuery||rv,s=t.history,u=Js(),f=Js(),h=Js(),d=vs(di);let g=di;Wo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=tf.bind(null,j=>""+j),b=tf.bind(null,bk),w=tf.bind(null,ic);function S(j,rt){let lt,Mt;return C0(j)?(lt=e.getRecordMatcher(j),Mt=rt):Mt=j,e.addRoute(Mt,lt)}function P(j){const rt=e.getRecordMatcher(j);rt&&e.removeRoute(rt)}function A(){return e.getRoutes().map(j=>j.record)}function L(j){return!!e.getRecordMatcher(j)}function T(j,rt){if(rt=pe({},rt||d.value),typeof j=="string"){const V=ef(r,j,rt.path),J=e.resolve({path:V.path},rt),ot=s.createHref(V.fullPath);return pe(V,J,{params:w(J.params),hash:ic(V.hash),redirectedFrom:void 0,href:ot})}let lt;if("path"in j)lt=pe({},j,{path:ef(r,j.path,rt.path).path});else{const V=pe({},j.params);for(const J in V)V[J]==null&&delete V[J];lt=pe({},j,{params:b(V)}),rt.params=b(rt.params)}const Mt=e.resolve(lt,rt),Et=j.hash||"";Mt.params=v(w(Mt.params));const $=NS(o,pe({},j,{hash:vk(Et),path:Mt.path})),I=s.createHref($);return pe({fullPath:$,hash:Et,query:o===rv?xk(j.query):j.query||{}},Mt,{redirectedFrom:void 0,href:I})}function M(j){return typeof j=="string"?ef(r,j,d.value.path):pe({},j)}function R(j,rt){if(g!==j)return ls(8,{from:rt,to:j})}function E(j){return ht(j)}function B(j){return E(pe(M(j),{replace:!0}))}function K(j){const rt=j.matched[j.matched.length-1];if(rt&&rt.redirect){const{redirect:lt}=rt;let Mt=typeof lt=="function"?lt(j):lt;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 ht(j,rt){const lt=g=T(j),Mt=d.value,Et=j.state,$=j.force,I=j.replace===!0,V=K(lt);if(V)return ht(pe(M(V),{state:typeof V=="object"?pe({},Et,V.state):Et,force:$,replace:I}),rt||lt);const J=lt;J.redirectedFrom=rt;let ot;return!$&&PS(o,Mt,lt)&&(ot=ls(16,{to:J,from:Mt}),qt(Mt,Mt,!0,!1)),(ot?Promise.resolve(ot):at(J,Mt)).catch(ut=>Or(ut)?Or(ut,2)?ut:At(ut):Q(ut,J,Mt)).then(ut=>{if(ut){if(Or(ut,2))return ht(pe({replace:I},M(ut.to),{state:typeof ut.to=="object"?pe({},Et,ut.to.state):Et,force:$}),rt||J)}else ut=gt(J,Mt,!0,I,Et);return pt(J,Mt,ut),ut})}function Y(j,rt){const lt=R(j,rt);return lt?Promise.reject(lt):Promise.resolve()}function nt(j){const rt=Qt.values().next().value;return rt&&typeof rt.runWithContext=="function"?rt.runWithContext(j):j()}function at(j,rt){let lt;const[Mt,Et,$]=Nk(j,rt);lt=nf(Mt.reverse(),"beforeRouteLeave",j,rt);for(const V of Mt)V.leaveGuards.forEach(J=>{lt.push(mi(J,j,rt))});const I=Y.bind(null,j,rt);return lt.push(I),Tt(lt).then(()=>{lt=[];for(const V of u.list())lt.push(mi(V,j,rt));return lt.push(I),Tt(lt)}).then(()=>{lt=nf(Et,"beforeRouteUpdate",j,rt);for(const V of Et)V.updateGuards.forEach(J=>{lt.push(mi(J,j,rt))});return lt.push(I),Tt(lt)}).then(()=>{lt=[];for(const V of $)if(V.beforeEnter)if(lr(V.beforeEnter))for(const J of V.beforeEnter)lt.push(mi(J,j,rt));else lt.push(mi(V.beforeEnter,j,rt));return lt.push(I),Tt(lt)}).then(()=>(j.matched.forEach(V=>V.enterCallbacks={}),lt=nf($,"beforeRouteEnter",j,rt),lt.push(I),Tt(lt))).then(()=>{lt=[];for(const V of f.list())lt.push(mi(V,j,rt));return lt.push(I),Tt(lt)}).catch(V=>Or(V,8)?V:Promise.reject(V))}function pt(j,rt,lt){h.list().forEach(Mt=>nt(()=>Mt(j,rt,lt)))}function gt(j,rt,lt,Mt,Et){const $=R(j,rt);if($)return $;const I=rt===di,V=Wo?history.state:{};lt&&(Mt||I?s.replace(j.fullPath,pe({scroll:I&&V&&V.scroll},Et)):s.push(j.fullPath,Et)),d.value=j,qt(j,rt,lt,I),At()}let G;function z(){G||(G=s.listen((j,rt,lt)=>{if(!Gt.listening)return;const Mt=T(j),Et=K(Mt);if(Et){ht(pe(Et,{replace:!0}),Mt).catch(ul);return}g=Mt;const $=d.value;Wo&&qS(Xg($.fullPath,lt.delta),Rc()),at(Mt,$).catch(I=>Or(I,12)?I:Or(I,2)?(ht(I.to,Mt).then(V=>{Or(V,20)&&!lt.delta&<.type===xl.pop&&s.go(-1,!1)}).catch(ul),Promise.reject()):(lt.delta&&s.go(-lt.delta,!1),Q(I,Mt,$))).then(I=>{I=I||gt(Mt,$,!1),I&&(lt.delta&&!Or(I,8)?s.go(-lt.delta,!1):lt.type===xl.pop&&Or(I,20)&&s.go(-1,!1)),pt(Mt,$,I)}).catch(ul)}))}let k=Js(),F=Js(),H;function Q(j,rt,lt){At(j);const Mt=F.list();return Mt.length?Mt.forEach(Et=>Et(j,rt,lt)):console.error(j),Promise.reject(j)}function yt(){return H&&d.value!==di?Promise.resolve():new Promise((j,rt)=>{k.add([j,rt])})}function At(j){return H||(H=!j,z(),k.list().forEach(([rt,lt])=>j?lt(j):rt()),k.reset()),j}function qt(j,rt,lt,Mt){const{scrollBehavior:Et}=t;if(!Wo||!Et)return Promise.resolve();const $=!lt&&HS(Xg(j.fullPath,0))||(Mt||!lt)&&history.state&&history.state.scroll||null;return Br().then(()=>Et(j,rt,$)).then(I=>I&&FS(I)).catch(I=>Q(I,j,rt))}const Ht=j=>s.go(j);let Jt;const Qt=new Set,Gt={currentRoute:d,listening:!0,addRoute:S,removeRoute:P,hasRoute:L,getRoutes:A,resolve:T,options:t,push:E,replace:B,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:F.add,isReady:yt,install(j){const rt=this;j.component("RouterLink",Ck),j.component("RouterView",Ak),j.config.globalProperties.$router=rt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>U(d)}),Wo&&!Jt&&d.value===di&&(Jt=!0,E(s.location).catch(Et=>{}));const lt={};for(const Et in di)Object.defineProperty(lt,Et,{get:()=>d.value[Et],enumerable:!0});j.provide($h,rt),j.provide(O0,Fm(lt)),j.provide(Rf,d);const Mt=j.unmount;Qt.add(j),j.unmount=function(){Qt.delete(j),Qt.size<1&&(g=di,G&&G(),G=null,d.value=di,Jt=!1,H=!1),Mt()}}};function Tt(j){return j.reduce((rt,lt)=>rt.then(()=>nt(lt)),Promise.resolve())}return Gt}function Nk(t,e){const r=[],o=[],s=[],u=Math.max(e.matched.length,t.matched.length);for(let f=0;fss(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>ss(g,d))||s.push(d))}return[r,o,s]}function Xr(t){return t.split("-")[0]}function Qo(t){return t.split("-")[1]}function Dl(t){return["top","bottom"].includes(Xr(t))?"x":"y"}function Rh(t){return t==="y"?"height":"width"}function cv(t){let{reference:e,floating:r,placement:o}=t;const s=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2;let f;switch(Xr(o)){case"top":f={x:s,y:e.y-r.height};break;case"bottom":f={x:s,y:e.y+e.height};break;case"right":f={x:e.x+e.width,y:u};break;case"left":f={x:e.x-r.width,y:u};break;default:f={x:e.x,y:e.y}}const h=Dl(o),d=Rh(h);switch(Qo(o)){case"start":f[h]=f[h]-(e[d]/2-r[d]/2);break;case"end":f[h]=f[h]+(e[d]/2-r[d]/2);break}return f}const Pk=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:g}=cv({...h,placement:o}),v=o,b={};for(let w=0;w({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t??{},{x:s,y:u,placement:f,rects:h,platform:d}=e;if(r==null)return{};const g=D0(o),v={x:s,y:u},b=Xr(f),w=Dl(b),S=Rh(w),P=await d.getDimensions({element:r}),A=w==="y"?"top":"left",L=w==="y"?"bottom":"right",T=h.reference[S]+h.reference[w]-v[w]-h.floating[S],M=v[w]-h.reference[w],R=await d.getOffsetParent({element:r}),E=R?w==="y"?R.clientHeight||0:R.clientWidth||0:0,B=T/2-M/2,K=g[A],ht=E-P[S]-g[L],Y=E/2-P[S]/2+B,nt=If(K,Y,ht);return{data:{[w]:nt,centerOffset:Y-nt}}}}),Rk={left:"right",right:"left",bottom:"top",top:"bottom"};function oc(t){return t.replace(/left|right|bottom|top/g,e=>Rk[e])}function $0(t,e){const r=Qo(t)==="start",o=Dl(t),s=Rh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return e.reference[s]>e.floating[s]&&(u=oc(u)),{main:u,cross:oc(u)}}const zk={start:"end",end:"start"};function Ff(t){return t.replace(/start|end/g,e=>zk[e])}const Ik=["top","right","bottom","left"],Fk=Ik.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function qk(t,e,r){return(t?[...r.filter(s=>Qo(s)===t),...r.filter(s=>Qo(s)!==t)]:r.filter(s=>Xr(s)===s)).filter(s=>t?Qo(s)===t||(e?Ff(s)!==s:!1):!0)}const Hk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,s,u,f,h;const{x:d,y:g,rects:v,middlewareData:b,placement:w}=e,{alignment:S=null,allowedPlacements:P=Fk,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const T=qk(S,A,P),M=await zc(e,L),R=(o=(s=b.autoPlacement)==null?void 0:s.index)!=null?o:0,E=T[R],{main:B,cross:K}=$0(E,v);if(w!==E)return{x:d,y:g,reset:{placement:T[0]}};const ht=[M[Xr(E)],M[B],M[K]],Y=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:E,overflows:ht}],nt=T[R+1];if(nt)return{data:{index:R+1,overflows:Y},reset:{placement:nt}};const at=Y.slice().sort((gt,G)=>gt.overflows[0]-G.overflows[0]),pt=(h=at.find(gt=>{let{overflows:G}=gt;return G.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:pt??at[0].placement}}}}};function Bk(t){const e=oc(t);return[Ff(t),e,Ff(e)]}const Wk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,middlewareData:u,rects:f,initialPlacement:h}=e;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",flipAlignment:w=!0,...S}=t,P=Xr(s),L=v||(P===h||!w?[oc(h)]:Bk(h)),T=[h,...L],M=await zc(e,S),R=[];let E=((o=u.flip)==null?void 0:o.overflows)||[];if(d&&R.push(M[P]),g){const{main:Y,cross:nt}=$0(s,f);R.push(M[Y],M[nt])}if(E=[...E,{placement:s,overflows:R}],!R.every(Y=>Y<=0)){var B,K;const Y=((B=(K=u.flip)==null?void 0:K.index)!=null?B:0)+1,nt=T[Y];if(nt)return{data:{index:Y,overflows:E},reset:{placement:nt}};let at="bottom";switch(b){case"bestFit":{var ht;const pt=(ht=E.slice().sort((gt,G)=>gt.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0)-G.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0))[0])==null?void 0:ht.placement;pt&&(at=pt);break}case"initialPlacement":at=h;break}return{data:{skip:!0},reset:{placement:at}}}return{}}}};function Uk(t){let{placement:e,rects:r,value:o}=t;const s=Xr(e),u=["left","top"].includes(s)?-1:1,f=typeof o=="function"?o({...r,placement:e}):o,{mainAxis:h,crossAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return Dl(s)==="x"?{x:d,y:h*u}:{x:h*u,y:d}}const jk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:r,y:o,placement:s,rects:u}=e,f=Uk({placement:s,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function Vk(t){return t==="x"?"y":"x"}const Gk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:T,y:M}=L;return{x:T,y:M}}},...d}=t,g={x:r,y:o},v=await zc(e,d),b=Dl(Xr(s)),w=Vk(b);let S=g[b],P=g[w];if(u){const L=b==="y"?"top":"left",T=b==="y"?"bottom":"right",M=S+v[L],R=S-v[T];S=If(M,S,R)}if(f){const L=w==="y"?"top":"left",T=w==="y"?"bottom":"right",M=P+v[L],R=P-v[T];P=If(M,P,R)}const A=h.fn({...e,[b]:S,[w]:P});return{...A,data:{x:A.x-r,y:A.y-o}}}}},Kk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r;const{placement:o,rects:s,middlewareData:u}=e,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const d=await zc(e,h),g=Xr(o),v=Qo(o)==="end";let b,w;g==="top"||g==="bottom"?(b=g,w=v?"left":"right"):(w=g,b=v?"top":"bottom");const S=Gi(d.left,0),P=Gi(d.right,0),A=Gi(d.top,0),L=Gi(d.bottom,0),T={height:s.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Gi(d.top,d.bottom)):d[b]),width:s.floating.width-(["top","bottom"].includes(o)?2*(S!==0||P!==0?S+P:Gi(d.left,d.right)):d[w])};return f==null||f({...T,...s}),{data:{skip:!0},reset:{rects:!0}}}}};function zh(t){return(t==null?void 0:t.toString())==="[object Window]"}function Mi(t){if(t==null)return window;if(!zh(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ic(t){return Mi(t).getComputedStyle(t)}function Wr(t){return zh(t)?"":t?(t.nodeName||"").toLowerCase():""}function Ur(t){return t instanceof Mi(t).HTMLElement}function sc(t){return t instanceof Mi(t).Element}function Xk(t){return t instanceof Mi(t).Node}function R0(t){const e=Mi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Fc(t){const{overflow:e,overflowX:r,overflowY:o}=Ic(t);return/auto|scroll|overlay|hidden/.test(e+o+r)}function Yk(t){return["table","td","th"].includes(Wr(t))}function z0(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),r=Ic(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":!1)}const uv=Math.min,hl=Math.max,lc=Math.round;function as(t,e){e===void 0&&(e=!1);const r=t.getBoundingClientRect();let o=1,s=1;return e&&Ur(t)&&(o=t.offsetWidth>0&&lc(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&lc(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/s,top:r.top/s,right:r.right/o,bottom:r.bottom/s,left:r.left/o,x:r.left/o,y:r.top/s}}function Ni(t){return((Xk(t)?t.ownerDocument:t.document)||window.document).documentElement}function qc(t){return zh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function I0(t){return as(Ni(t)).left+qc(t).scrollLeft}function Zk(t){const e=as(t);return lc(e.width)!==t.offsetWidth||lc(e.height)!==t.offsetHeight}function Qk(t,e,r){const o=Ur(e),s=Ni(e),u=as(t,o&&Zk(e));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Wr(e)!=="body"||Fc(s))&&(f=qc(e)),Ur(e)){const d=as(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else s&&(h.x=I0(s));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function Hc(t){return Wr(t)==="html"?t:t.assignedSlot||t.parentNode||(R0(t)?t.host:null)||Ni(t)}function fv(t){return!Ur(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function Jk(t){let e=Hc(t);for(;Ur(e)&&!["html","body"].includes(Wr(e));){if(z0(e))return e;e=e.parentNode}return null}function qf(t){const e=Mi(t);let r=fv(t);for(;r&&Yk(r)&&getComputedStyle(r).position==="static";)r=fv(r);return r&&(Wr(r)==="html"||Wr(r)==="body"&&getComputedStyle(r).position==="static"&&!z0(r))?e:r||Jk(t)||e}function hv(t){return{width:t.offsetWidth,height:t.offsetHeight}}function tC(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Ur(r),u=Ni(r);if(r===u)return e;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Wr(r)!=="body"||Fc(u))&&(f=qc(r)),Ur(r))){const d=as(r,!0);h.x=d.x+r.clientLeft,h.y=d.y+r.clientTop}return{...e,x:e.x-f.scrollLeft+h.x,y:e.y-f.scrollTop+h.y}}function eC(t){const e=Mi(t),r=Ni(t),o=e.visualViewport;let s=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(s=o.width,u=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:s,height:u,x:f,y:h}}function nC(t){var e;const r=Ni(t),o=qc(t),s=(e=t.ownerDocument)==null?void 0:e.body,u=hl(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),f=hl(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let h=-o.scrollLeft+I0(t);const d=-o.scrollTop;return Ic(s||r).direction==="rtl"&&(h+=hl(r.clientWidth,s?s.clientWidth:0)-u),{width:u,height:f,x:h,y:d}}function F0(t){return["html","body","#document"].includes(Wr(t))?t.ownerDocument.body:Ur(t)&&Fc(t)?t:F0(Hc(t))}function ac(t,e){var r;e===void 0&&(e=[]);const o=F0(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),u=Mi(o),f=s?[u].concat(u.visualViewport||[],Fc(o)?o:[]):o,h=e.concat(f);return s?h:h.concat(ac(Hc(f)))}function rC(t,e){const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&R0(r)){let o=e;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function iC(t){const e=as(t),r=e.top+t.clientTop,o=e.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function dv(t,e){return e==="viewport"?zf(eC(t)):sc(e)?iC(e):zf(nC(Ni(t)))}function oC(t){const e=ac(Hc(t)),o=["absolute","fixed"].includes(Ic(t).position)&&Ur(t)?qf(t):t;return sc(o)?e.filter(s=>sc(s)&&rC(s,o)&&Wr(s)!=="body"):[]}function sC(t){let{element:e,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?oC(e):[].concat(r),o],f=u[0],h=u.reduce((d,g)=>{const v=dv(e,g);return d.top=hl(v.top,d.top),d.right=uv(v.right,d.right),d.bottom=uv(v.bottom,d.bottom),d.left=hl(v.left,d.left),d},dv(e,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const lC={getElementRects:t=>{let{reference:e,floating:r,strategy:o}=t;return{reference:Qk(e,qf(r),o),floating:{...hv(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>tC(t),getOffsetParent:t=>{let{element:e}=t;return qf(e)},isElement:t=>sc(t),getDocumentElement:t=>{let{element:e}=t;return Ni(e)},getClippingClientRect:t=>sC(t),getDimensions:t=>{let{element:e}=t;return hv(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},aC=(t,e,r)=>Pk(t,e,{platform:lC,...r});var cC=Object.defineProperty,uC=Object.defineProperties,fC=Object.getOwnPropertyDescriptors,pv=Object.getOwnPropertySymbols,hC=Object.prototype.hasOwnProperty,dC=Object.prototype.propertyIsEnumerable,gv=(t,e,r)=>e in t?cC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zr=(t,e)=>{for(var r in e||(e={}))hC.call(e,r)&&gv(t,r,e[r]);if(pv)for(var r of pv(e))dC.call(e,r)&&gv(t,r,e[r]);return t},$l=(t,e)=>uC(t,fC(e));function q0(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?q0(t[r],e[r]):t[r]=e[r])}const eo={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,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","focus"],delay:{show:0,hide:400}}}};function cs(t,e){let r=eo.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=eo.themes[r.$extend]||{}:(r=null,o=eo[e]):r=null;while(r);return o}function pC(t){const e=[t];let r=eo.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=eo.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}let us=!1;if(typeof window<"u"){us=!1;try{const t=Object.defineProperty({},"passive",{get(){us=!0}});window.addEventListener("test",null,t)}catch{}}let H0=!1;typeof window<"u"&&typeof navigator<"u"&&(H0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const B0=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),vv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},mv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function gC(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function rf(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const br=[];let Ho=null,Hf=function(){};typeof window<"u"&&(Hf=window.Element);function de(t){return function(e){return cs(e.theme,t)}}var W0=()=>ie({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:de("disabled")},placement:{type:String,default:de("placement"),validator:t=>B0.includes(t)},delay:{type:[String,Number,Object],default:de("delay")},distance:{type:[Number,String],default:de("distance")},skidding:{type:[Number,String],default:de("skidding")},triggers:{type:Array,default:de("triggers")},showTriggers:{type:[Array,Function],default:de("showTriggers")},hideTriggers:{type:[Array,Function],default:de("hideTriggers")},popperTriggers:{type:Array,default:de("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:de("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:de("popperHideTriggers")},container:{type:[String,Object,Hf,Boolean],default:de("container")},boundary:{type:[String,Hf],default:de("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:de("strategy")},autoHide:{type:Boolean,default:de("autoHide")},handleResize:{type:Boolean,default:de("handleResize")},instantMove:{type:Boolean,default:de("instantMove")},eagerMount:{type:Boolean,default:de("eagerMount")},popperClass:{type:[String,Array,Object],default:de("popperClass")},computeTransformOrigin:{type:Boolean,default:de("computeTransformOrigin")},autoMinSize:{type:Boolean,default:de("autoMinSize")},autoMaxSize:{type:Boolean,default:de("autoMaxSize")},preventOverflow:{type:Boolean,default:de("preventOverflow")},overflowPadding:{type:[Number,String],default:de("overflowPadding")},arrowPadding:{type:[Number,String],default:de("arrowPadding")},arrowOverflow:{type:Boolean,default:de("arrowOverflow")},flip:{type:Boolean,default:de("flip")},shift:{type:Boolean,default:de("shift")},shiftCrossAxis:{type:Boolean,default:de("shiftCrossAxis")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],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}}},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:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:$l(zr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:zr({shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())}},["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,e)=>(t[e]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`},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}={}){(r||!this.disabled)&&(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}={}){this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(jk({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?e.middleware.push(Hk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Gk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&e.middleware.push(Wk({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push($k({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:u,middlewareData:f})=>{let h;const{centerOffset:d}=f.arrow;return s.startsWith("top")||s.startsWith("bottom")?h=Math.abs(d)>u.reference.width/2:h=Math.abs(d)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&e.middleware.push({name:"autoMinSize",fn:({rects:s,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let d,g;return u.startsWith("top")||u.startsWith("bottom")?d=s.reference.width:g=s.reference.height,this.$_innerNode.style.minWidth=d!=null?`${d}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&e.middleware.push(Kk({boundary:this.boundary,padding:this.overflowPadding,apply:({width:s,height:u})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await aC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:zr(zr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,e=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ho&&this.instantMove&&Ho.instantMove){Ho.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,e=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ho=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 rf(),await this.$_computePosition(),await this.$_applyShowEffect())},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),u=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${u}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;r{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await rf(),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=(s,u,f)=>{this.$_events.push({targetNodes:s,eventType:u,handler:f}),s.forEach(h=>h.addEventListener(u,f,us?{passive:!0}:void 0))},e=(s,u,f,h,d)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(v=>{const b=u[v];b&&t(s,b,d)})},r=s=>{this.isShown&&!this.$_hideInProgress||(s.usedByTooltip=!0,!this.$_preventShow&&this.show({event:s}))};e(this.$_targetNodes,vv,this.triggers,this.showTriggers,r),e([this.$_popperNode],vv,this.popperTriggers,this.popperShowTriggers,r);const o=s=>{s.usedByTooltip||this.hide({event:s})};e(this.$_targetNodes,mv,this.triggers,this.hideTriggers,o),e([this.$_popperNode],mv,this.popperTriggers,this.popperHideTriggers,o),t([...ac(this.$_referenceNode),...ac(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:e,handler:r})=>{t.forEach(o=>o.removeEventListener(e,r))}),this.$_events=[]},$_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)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(H0?(document.addEventListener("touchstart",yv,us?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",mC,us?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",yv,!0),window.addEventListener("click",vC,!0)),window.addEventListener("resize",yC));function yv(t){for(let e=0;e{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,e)})}}function yC(t){for(let e=0;e0)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 Ba;function Bf(){Bf.init||(Bf.init=!0,Ba=bC()!==-1)}var Bc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bf(),Br(()=>{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",Ba&&this.$el.appendChild(t),t.data="about:blank",Ba||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&&(!Ba&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wC=W1();Xm("data-v-b329ee4c");const xC={class:"resize-observer",tabindex:"-1"};Ym();const _C=wC((t,e,r,o,s,u)=>(st(),te("div",xC)));Bc.render=_C;Bc.__scopeId="data-v-b329ee4c";Bc.__file="src/components/ResizeObserver.vue";var j0={computed:{themeClass(){return pC(this.theme)}}},Ih=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r};const SC=ie({name:"VPopperContent",components:{ResizeObserver:Bc},mixins:[j0],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}}}),kC=["id","aria-hidden","tabindex","data-popper-placement"],CC={ref:"inner",class:"v-popper__inner"},TC=tt("div",{class:"v-popper__arrow-outer"},null,-1),EC=tt("div",{class:"v-popper__arrow-inner"},null,-1),LC=[TC,EC];function AC(t,e,r,o,s,u){const f=io("ResizeObserver");return st(),kt("div",{id:t.popperId,ref:"popover",class:ve(["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.arrow.overflow}]]),style:An({position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result.placement,onKeyup:e[1]||(e[1]=Of(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[tt("div",{class:"v-popper__wrapper",style:An({transformOrigin:t.result.transformOrigin})},[tt("div",CC,[t.mounted?(st(),kt(ne,{key:0},[tt("div",null,[sr(t.$slots,"default")]),t.handleResize?(st(),te(f,{key:0,onNotify:e[0]||(e[0]=h=>t.$emit("resize",h))})):Vt("",!0)],64)):Vt("",!0)],512),tt("div",{ref:"arrow",class:"v-popper__arrow-container",style:An({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},LC,4)],4)],46,kC)}var V0=Ih(SC,[["render",AC]]),G0={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)}}};const MC=ie({name:"VPopperWrapper",components:{Popper:W0(),PopperContent:V0},mixins:[G0,j0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=zr({},this.$attrs);return delete t.class,delete t.style,t}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function NC(t,e,r,o,s,u){const f=io("PopperContent"),h=io("Popper");return st(),te(h,Ci({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:ee(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,show:S,hide:P,handleResize:A,onResize:L,classes:T,result:M})=>[tt("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:An(t.$attrs.style)},[sr(t.$slots,"default",{shown:g,show:S,hide:P}),Ft(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":A,classes:T,result:M,onHide:P,onResize:L},{default:ee(()=>[sr(t.$slots,"popper",{shown:g,hide:P})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])],6)]),_:3},16,["theme","target-nodes","reference-node","popper-node"])}var Fh=Ih(MC,[["render",NC]]);const bv=ie($l(zr({},Fh),{name:"VDropdown",vPopperTheme:"dropdown"})),wv=ie($l(zr({},Fh),{name:"VMenu",vPopperTheme:"menu"})),Wf=ie($l(zr({},Fh),{name:"VTooltip",vPopperTheme:"tooltip"})),PC=ie({name:"VTooltipDirective",components:{Popper:W0(),PopperContent:V0},mixins:[G0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>cs(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>cs(t.theme,"loadingContent")}},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}}}),OC=["innerHTML"],DC=["textContent"];function $C(t,e,r,o,s,u){const f=io("PopperContent"),h=io("Popper");return st(),te(h,Ci({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:ee(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,hide:S,handleResize:P,onResize:A,classes:L,result:T})=>[Ft(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":P,classes:L,result:T,onHide:S,onResize:A},{default:ee(()=>[t.html?(st(),kt("div",{key:0,innerHTML:t.finalContent},null,8,OC)):(st(),kt("div",{key:1,textContent:Ut(t.finalContent)},null,8,DC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var RC=Ih(PC,[["render",$C]]);const K0="v-popper--has-tooltip";function zC(t,e){let r=t.placement;if(!r&&e)for(const o of B0)e[o]&&(r=o);return r||(r=cs(t.theme||"tooltip","placement")),r}function X0(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=zC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let of,_l,IC=0;function FC(){if(of)return;_l=Zt([]),of=_0({name:"VTooltipDirectiveApp",setup(){return{directives:_l}},render(){return this.directives.map(e=>Ol(RC,$l(zr({},e.options),{shown:e.shown.value||e.options.shown,key:e.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),of.mount(t)}function Y0(t,e,r){FC();const o=Zt(X0(t,e,r)),s=Zt(!1),u={id:IC++,options:o,shown:s};return _l.value.push(u),t.classList&&t.classList.add(K0),t.$_popper={options:o,item:u,show(){s.value=!0},hide(){s.value=!1}}}function qh(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(K0)}function xv(t,{value:e,oldValue:r,modifiers:o}){const s=X0(t,e,o);if(!s.content||cs(s.theme||"tooltip","disabled"))qh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=s):u=Y0(t,e,o),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?u.show():u.hide())}}var Z0={beforeMount:xv,updated:xv,beforeUnmount(t){qh(t)}};function _v(t){t.addEventListener("click",Q0),t.addEventListener("touchstart",J0,us?{passive:!0}:!1)}function Sv(t){t.removeEventListener("click",Q0),t.removeEventListener("touchstart",J0),t.removeEventListener("touchend",ty),t.removeEventListener("touchcancel",ey)}function Q0(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function J0(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",ty),e.addEventListener("touchcancel",ey)}}function ty(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 ey(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}var qC={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&_v(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?_v(t):Sv(t))},beforeUnmount(t){Sv(t)}};const HC=Z0,BC=Wf;function WC(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,q0(eo,e),t.directive("tooltip",Z0),t.directive("close-popper",qC),t.component("v-tooltip",Wf),t.component("VTooltip",Wf),t.component("v-dropdown",bv),t.component("VDropdown",bv),t.component("v-menu",wv),t.component("VMenu",wv))}const ny={version:"2.0.0-y.0",install:WC,options:eo},UC=6e4;function ry(t){return t}const jC=ry,{clearTimeout:VC,setTimeout:GC}=globalThis,KC=Math.random.bind(Math);function XC(t,e){const{post:r,on:o,eventNames:s=[],serialize:u=ry,deserialize:f=jC,resolver:h,timeout:d=UC}=e,g=new Map;let v;const b=new Proxy({},{get(w,S){if(S==="$functions")return t;const P=(...L)=>{r(u({m:S,a:L,t:"q"}))};if(s.includes(S))return P.asEvent=P,P;const A=async(...L)=>(await v,new Promise((T,M)=>{var B,K;const R=ZC();let E;d>=0&&(E=(K=(B=GC(()=>{M(new Error(`[birpc] timeout on calling "${S}"`)),g.delete(R)},d)).unref)==null?void 0:K.call(B)),g.set(R,{resolve:T,reject:M,timeoutId:E}),r(u({m:S,a:L,i:R,t:"q"}))}));return A.asEvent=P,A}});return v=o(async(w,...S)=>{const P=f(w);if(P.t==="q"){const{m:A,a:L}=P;let T,M;const R=h?h(A,t[A]):t[A];if(!R)M=new Error(`[birpc] function "${A}" not found`);else try{T=await R.apply(b,L)}catch(E){M=E}P.i&&(M&&e.onError&&e.onError(M,A,L),r(u({t:"s",i:P.i,r:T,e:M}),...S))}else{const{i:A,r:L,e:T}=P,M=g.get(A);M&&(VC(M.timeoutId),T?M.reject(T):M.resolve(L)),g.delete(A)}}),b}const YC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ZC(t=21){let e="",r=t;for(;r--;)e+=YC[KC()*64|0];return e}/*! (c) 2020 Andrea Giammarchi */const{parse:QC,stringify:JC}=JSON,{keys:tT}=Object,Sl=String,iy="string",kv={},cc="object",oy=(t,e)=>e,eT=t=>t instanceof Sl?Sl(t):t,nT=(t,e)=>typeof e===iy?new Sl(e):e,sy=(t,e,r,o)=>{const s=[];for(let u=tT(r),{length:f}=u,h=0;h{const o=Sl(e.push(r)-1);return t.set(r,o),o},Uf=(t,e)=>{const r=QC(t,nT).map(eT),o=r[0],s=e||oy,u=typeof o===cc&&o?sy(r,new Set,o,s):o;return s.call({"":u},"",u)},rT=(t,e,r)=>{const o=e&&typeof e===cc?(v,b)=>v===""||-1iT(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:sT();!s||s.length===0||(e=`${s}/${e}`,r=Ev(s))}return e=lT(e,!r),r&&!Ev(e)?`/${e}`:e.length>0?e:"."};function lT(t,e){let r="",o=0,s=-1,u=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,u=0;continue}else if(r.length>0){r="",o=0,s=h,u=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,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const Ev=function(t){return oT.test(t)},aT=function(t,e){const r=Tv(t).split("/"),o=Tv(e).split("/"),s=[...r];for(const u of s){if(o[0]!==u)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function cT(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class ly{constructor(){ci(this,"filesMap",new Map);ci(this,"pathsSet",new Set);ci(this,"browserTestPromises",new Map);ci(this,"idMap",new Map);ci(this,"taskFileMap",new WeakMap);ci(this,"errorsSet",new Set);ci(this,"processTimeoutCauses",new Set)}catchError(e,r){if(cT(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(u=>u.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 u=this.filesMap.get(s);if(!u)return;const f=u.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 u=this.idMap.get(r);u&&(u.result=o,u.meta=s,(o==null?void 0:o.state)==="skip"&&(u.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:aT(r,s),id:s,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:o})))}}var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ay(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cy(t){return t!=null}function uy(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function jf(t){return t.type==="test"||t.type==="custom"}function fy(t){const e=[],r=uy(t);for(const o of r)if(jf(o))e.push(o);else for(const s of o.tasks)jf(s)?e.push(s):e.push(...fy(s));return e}function Hh(t=[]){return uy(t).flatMap(e=>jf(e)?[e]:[e,...Hh(e.tasks)])}function uT(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 Wc(t){return fy(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 fT(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=e;let d=u;const g=f({ws:new h(t),state:new ly,waitForConnection:L,reconnect:P});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(T){var M;g.state.collectPaths(T),(M=r.onPathsCollected)==null||M.call(r,T)},onCollected(T){var M;g.state.collectFiles(T),(M=r.onCollected)==null||M.call(r,T)},onTaskUpdate(T){var M;g.state.updateTasks(T),(M=r.onTaskUpdate)==null||M.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T,M){var R;(R=r.onFinished)==null||R.call(r,T,M)},onCancel(T){var M;(M=r.onCancel)==null||M.call(r,T)}},w={post:T=>g.ws.send(T),on:T=>v=T,serialize:rT,deserialize:Uf};g.rpc=XC(b,w);let S;function P(T=!1){T&&(d=u),g.ws=new h(t),A()}function A(){S=new Promise(T=>{g.ws.addEventListener("open",()=>{d=u,T()})}),g.ws.addEventListener("message",T=>{v(T.data)}),g.ws.addEventListener("close",()=>{d-=1,o&&d>0&&setTimeout(P,s)})}A();function L(){return S}return g}const hT=location.port,dT=[location.hostname,hT].filter(Boolean).join(":"),pT=`${location.protocol==="https:"?"wss:":"ws:"}//${dT}/__vitest_api__`,jr=!!window.METADATA_PATH;var hy={},Hr={};const gT="Á",vT="á",mT="Ă",yT="ă",bT="∾",wT="∿",xT="∾̳",_T="Â",ST="â",kT="´",CT="А",TT="а",ET="Æ",LT="æ",AT="⁡",MT="𝔄",NT="𝔞",PT="À",OT="à",DT="ℵ",$T="ℵ",RT="Α",zT="α",IT="Ā",FT="ā",qT="⨿",HT="&",BT="&",WT="⩕",UT="⩓",jT="∧",VT="⩜",GT="⩘",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="≈",OE="≍",DE="Ã",$E="ã",RE="Ä",zE="ä",IE="∳",FE="⨑",qE="≌",HE="϶",BE="‵",WE="∽",UE="⋍",jE="∖",VE="⫧",GE="⊽",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="▴",OL="▾",DL="◂",$L="▸",RL="␣",zL="▒",IL="░",FL="▓",qL="█",HL="=⃥",BL="≡⃥",WL="⫭",UL="⌐",jL="𝔹",VL="𝕓",GL="⊥",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="┤",OA="╡",DA="╢",$A="╣",RA="├",zA="╞",IA="╟",FA="╠",qA="‵",HA="˘",BA="˘",WA="¦",UA="𝒷",jA="ℬ",VA="⁏",GA="∽",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="¸",OM="⦲",DM="¢",$M="·",RM="·",zM="𝔠",IM="ℭ",FM="Ч",qM="ч",HM="✓",BM="✓",WM="Χ",UM="χ",jM="ˆ",VM="≗",GM="↺",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="𝕔",ON="ℂ",DN="∐",$N="∐",RN="©",zN="©",IN="℗",FN="∳",qN="↵",HN="✗",BN="⨯",WN="𝒞",UN="𝒸",jN="⫏",VN="⫑",GN="⫐",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="⫤",OP="⊣",DP="⤏",$P="˝",RP="Ď",zP="ď",IP="Д",FP="д",qP="‡",HP="⇊",BP="ⅅ",WP="ⅆ",UP="⤑",jP="⩷",VP="°",GP="∇",KP="Δ",XP="δ",YP="⦱",ZP="⥿",QP="𝔇",JP="𝔡",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="≑",OO="≐",DO="∸",$O="∔",RO="⊡",zO="⌆",IO="∯",FO="¨",qO="⇓",HO="⇐",BO="⇔",WO="⫤",UO="⟸",jO="⟺",VO="⟹",GO="⇒",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="Џ",OD="џ",DD="⟿",$D="É",RD="é",zD="⩮",ID="Ě",FD="ě",qD="Ê",HD="ê",BD="≖",WD="≕",UD="Э",jD="э",VD="⩷",GD="Ė",KD="ė",XD="≑",YD="ⅇ",ZD="≒",QD="𝔈",JD="𝔢",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$="⪕",q$="⩵",H$="=",B$="≂",W$="≟",U$="⇌",j$="≡",V$="⩸",G$="⧥",K$="⥱",X$="≓",Y$="ℯ",Z$="ℰ",Q$="≐",J$="⩳",tR="≂",eR="Η",nR="η",rR="Ð",iR="ð",oR="Ë",sR="ë",lR="€",aR="!",cR="∃",uR="∃",fR="ℰ",hR="ⅇ",dR="ⅇ",pR="≒",gR="Ф",vR="ф",mR="♀",yR="ffi",bR="ff",wR="ffl",xR="𝔉",_R="𝔣",SR="fi",kR="◼",CR="▪",TR="fj",ER="♭",LR="fl",AR="▱",MR="ƒ",NR="𝔽",PR="𝕗",OR="∀",DR="∀",$R="⋔",RR="⫙",zR="ℱ",IR="⨍",FR="½",qR="⅓",HR="¼",BR="⅕",WR="⅙",UR="⅛",jR="⅔",VR="⅖",GR="¾",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="⪔",O2="𝔊",D2="𝔤",$2="≫",R2="⋙",z2="⋙",I2="ℷ",F2="Ѓ",q2="ѓ",H2="⪥",B2="≷",W2="⪒",U2="⪤",j2="⪊",V2="⪊",G2="⪈",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="½",Oz="ℋ",Dz="Ъ",$z="ъ",Rz="⥈",zz="↔",Iz="⇔",Fz="↭",qz="^",Hz="ℏ",Bz="Ĥ",Wz="ĥ",Uz="♥",jz="♥",Vz="…",Gz="⊹",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="ⅈ",OI="⨌",DI="∭",$I="⧜",RI="℩",zI="IJ",II="ij",FI="Ī",qI="ī",HI="ℑ",BI="ⅈ",WI="ℐ",UI="ℑ",jI="ı",VI="ℑ",GI="⊷",KI="Ƶ",XI="⇒",YI="℅",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="І",OF="і",DF="Ï",$F="ï",RF="Ĵ",zF="ĵ",IF="Й",FF="й",qF="𝔍",HF="𝔧",BF="ȷ",WF="𝕁",UF="𝕛",jF="𝒥",VF="𝒿",GF="Ј",KF="ј",XF="Є",YF="є",ZF="Κ",QF="κ",JF="ϰ",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="↞",Oq="⇐",Dq="⤝",$q="↩",Rq="↫",zq="⤹",Iq="⥳",Fq="↢",qq="⤙",Hq="⤛",Bq="⪫",Wq="⪭",Uq="⪭︀",jq="⤌",Vq="⤎",Gq="❲",Kq="{",Xq="[",Yq="⦋",Zq="⦏",Qq="⦍",Jq="Ľ",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="↔",OH="⇔",DH="⇆",$H="⇋",RH="↭",zH="⥎",IH="↤",FH="⊣",qH="⥚",HH="⋋",BH="⧏",WH="⊲",UH="⊴",jH="⥑",VH="⥠",GH="⥘",KH="↿",XH="⥒",YH="↼",ZH="⪋",QH="⋚",JH="≤",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="Љ",OB="љ",DB="⇇",$B="≪",RB="⋘",zB="⌞",IB="⇚",FB="⥫",qB="◺",HB="Ŀ",BB="ŀ",WB="⎰",UB="⎰",jB="⪉",VB="⪉",GB="⪇",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="⊿",O3="‹",D3="𝓁",$3="ℒ",R3="↰",z3="↰",I3="≲",F3="⪍",q3="⪏",H3="[",B3="‘",W3="‚",U3="Ł",j3="ł",V3="⪦",G3="⩹",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="*",O5="⫰",D5="∣",$5="·",R5="⊟",z5="−",I5="∸",F5="⨪",q5="∓",H5="⫛",B5="…",W5="∓",U5="⊧",j5="𝕄",V5="𝕞",G5="∓",K5="𝓂",X5="ℳ",Y5="∾",Z5="Μ",Q5="μ",J5="⊸",t8="⊸",e8="∇",n8="Ń",r8="ń",i8="∠⃒",o8="≉",s8="⩰̸",l8="≋̸",a8="ʼn",c8="≉",u8="♮",f8="ℕ",h8="♮",d8=" ",p8="≎̸",g8="≏̸",v8="⩃",m8="Ň",y8="ň",b8="Ņ",w8="ņ",x8="≇",_8="⩭̸",S8="⩂",k8="Н",C8="н",T8="–",E8="⤤",L8="↗",A8="⇗",M8="↗",N8="≠",P8="≐̸",O8="​",D8="​",$8="​",R8="​",z8="≢",I8="⤨",F8="≂̸",q8="≫",H8="≪",B8=` `,W8="∄",U8="∄",j8="𝔑",V8="𝔫",G8="≧̸",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="⋪",OW="⋬",DW="≪̸",$W="∤",RW="⁠",zW=" ",IW="𝕟",FW="ℕ",qW="⫬",HW="¬",BW="≢",WW="≭",UW="∦",jW="∉",VW="≠",GW="≂̸",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="⊏̸",OU="⋢",DU="⊐̸",$U="⋣",RU="⊂⃒",zU="⊈",IU="⊁",FU="⪰̸",qU="⋡",HU="≿̸",BU="⊃⃒",WU="⊉",UU="≁",jU="≄",VU="≇",GU="≉",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="⫅̸",O4="⊁",D4="⪰̸",$4="⊅",R4="⫆̸",z4="⊉",I4="⊃⃒",F4="⊉",q4="⫆̸",H4="≹",B4="Ñ",W4="ñ",U4="≸",j4="⋪",V4="⋬",G4="⋫",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="⨸",O6="⊙",D6="⦼",$6="Œ",R6="œ",z6="⦿",I6="𝔒",F6="𝔬",q6="˛",H6="Ò",B6="ò",W6="⧁",U6="⦵",j6="Ω",V6="∮",G6="↺",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="õ",Oj="⨶",Dj="⨷",$j="⊗",Rj="Ö",zj="ö",Ij="⌽",Fj="‾",qj="⏞",Hj="⎴",Bj="⏜",Wj="¶",Uj="∥",jj="∥",Vj="⫳",Gj="⫽",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="ℙ",O9="£",D9="⪷",$9="⪻",R9="≺",z9="≼",I9="⪷",F9="≺",q9="≼",H9="≺",B9="⪯",W9="≼",U9="≾",j9="⪯",V9="⪹",G9="⪵",K9="⋨",X9="⪯",Y9="⪳",Z9="≾",Q9="′",J9="″",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='"',OV='"',DV="⇛",$V="∽̱",RV="Ŕ",zV="ŕ",IV="√",FV="⦳",qV="⟩",HV="⟫",BV="⦒",WV="⦥",UV="⟩",jV="»",VV="⥵",GV="⇥",KV="⤠",XV="⤳",YV="→",ZV="↠",QV="⇒",JV="⤞",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="↳",OG="ℜ",DG="ℛ",$G="ℜ",RG="ℝ",zG="ℜ",IG="▭",FG="®",qG="®",HG="∋",BG="⇋",WG="⥯",UG="⥽",jG="⌋",VG="𝔯",GG="ℜ",KG="⥤",XG="⇁",YG="⇀",ZG="⥬",QG="Ρ",JG="ρ",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="⇀",O7="˚",D7="≓",$7="⇄",R7="⇌",z7="‏",I7="⎱",F7="⎱",q7="⫮",H7="⟭",B7="⇾",W7="⟧",U7="⦆",j7="𝕣",V7="ℝ",G7="⨮",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="ŝ",OK="⪺",DK="⪶",$K="⋩",RK="⨓",zK="≿",IK="С",FK="с",qK="⊡",HK="⋅",BK="⩦",WK="⤥",UK="↘",jK="⇘",VK="↘",GK="§",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="⨳",OX="⧤",DX="∣",$X="⌣",RX="⪪",zX="⪬",IX="⪬︀",FX="Ь",qX="ь",HX="⌿",BX="⧄",WX="/",UX="𝕊",jX="𝕤",VX="♠",GX="♠",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="⋐",OY="⪽",DY="⫅",$Y="⊆",RY="⫃",zY="⫁",IY="⫋",FY="⊊",qY="⪿",HY="⥹",BY="⊂",WY="⋐",UY="⊆",jY="⫅",VY="⊆",GY="⊊",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="⫀",OZ="⊃",DZ="⋑",$Z="⊇",RZ="⫆",zZ="⊋",IZ="⫌",FZ="⫈",qZ="⫔",HZ="⫖",BZ="⤦",WZ="↙",UZ="⇙",jZ="↙",VZ="⤪",GZ="ß",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="×",OQ="⨰",DQ="∭",$Q="⤨",RQ="⌶",zQ="⫱",IQ="⊤",FQ="𝕋",qQ="𝕥",HQ="⫚",BQ="⤩",WQ="‴",UQ="™",jQ="™",VQ="▵",GQ="▿",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="⇅",OJ="Ű",DJ="ű",$J="⥮",RJ="⥾",zJ="𝔘",IJ="𝔲",FJ="Ù",qJ="ù",HJ="⥣",BJ="↿",WJ="↾",UJ="▀",jJ="⌜",VJ="⌜",GJ="⌏",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="⌎",Ott="Ů",Dtt="ů",$tt="◹",Rtt="𝒰",ztt="𝓊",Itt="⋰",Ftt="Ũ",qtt="ũ",Htt="▵",Btt="▴",Wtt="⇈",Utt="Ü",jtt="ü",Vtt="⦧",Gtt="⦜",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="∣",Oet="|",Det="❘",$et="≀",Ret=" ",zet="𝔙",Iet="𝔳",Fet="⊲",qet="⊂⃒",Het="⊃⃒",Bet="𝕍",Wet="𝕧",Uet="∝",jet="⊳",Vet="𝒱",Get="𝓋",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="𝕩",Ont="⨁",Dnt="⨂",$nt="⟶",Rnt="⟹",znt="𝒳",Int="𝓍",Fnt="⨆",qnt="⨄",Hnt="△",Bnt="⋁",Wnt="⋀",Unt="Ý",jnt="ý",Vnt="Я",Gnt="я",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="‍",Ort="‌",dy={Aacute:gT,aacute:vT,Abreve:mT,abreve:yT,ac:bT,acd:wT,acE:xT,Acirc:_T,acirc:ST,acute:kT,Acy:CT,acy:TT,AElig:ET,aelig:LT,af:AT,Afr:MT,afr:NT,Agrave:PT,agrave:OT,alefsym:DT,aleph:$T,Alpha:RT,alpha:zT,Amacr:IT,amacr:FT,amalg:qT,amp:HT,AMP:BT,andand:WT,And:UT,and:jT,andd:VT,andslope:GT,andv:KT,ang:XT,ange:YT,angle:ZT,angmsdaa:QT,angmsdab:JT,angmsdac:tE,angmsdad:eE,angmsdae:nE,angmsdaf:rE,angmsdag:iE,angmsdah:oE,angmsd:sE,angrt:lE,angrtvb:aE,angrtvbd:cE,angsph:uE,angst:fE,angzarr:hE,Aogon:dE,aogon:pE,Aopf:gE,aopf:vE,apacir:mE,ap:yE,apE:bE,ape:wE,apid:xE,apos:_E,ApplyFunction:SE,approx:kE,approxeq:CE,Aring:TE,aring:EE,Ascr:LE,ascr:AE,Assign:ME,ast:NE,asymp:PE,asympeq:OE,Atilde:DE,atilde:$E,Auml:RE,auml:zE,awconint:IE,awint:FE,backcong:qE,backepsilon:HE,backprime:BE,backsim:WE,backsimeq:UE,Backslash:jE,Barv:VE,barvee:GE,barwed:KE,Barwed:XE,barwedge:YE,bbrk:ZE,bbrktbrk:QE,bcong:JE,Bcy:tL,bcy:eL,bdquo:nL,becaus:rL,because:iL,Because:oL,bemptyv:sL,bepsi:lL,bernou:aL,Bernoullis:cL,Beta:uL,beta:fL,beth:hL,between:dL,Bfr:pL,bfr:gL,bigcap:vL,bigcirc:mL,bigcup:yL,bigodot:bL,bigoplus:wL,bigotimes:xL,bigsqcup:_L,bigstar:SL,bigtriangledown:kL,bigtriangleup:CL,biguplus:TL,bigvee:EL,bigwedge:LL,bkarow:AL,blacklozenge:ML,blacksquare:NL,blacktriangle:PL,blacktriangledown:OL,blacktriangleleft:DL,blacktriangleright:$L,blank:RL,blk12:zL,blk14:IL,blk34:FL,block:qL,bne:HL,bnequiv:BL,bNot:WL,bnot:UL,Bopf:jL,bopf:VL,bot:GL,bottom:KL,bowtie:XL,boxbox:YL,boxdl:ZL,boxdL:QL,boxDl:JL,boxDL:tA,boxdr:eA,boxdR:nA,boxDr:rA,boxDR:iA,boxh:oA,boxH:sA,boxhd:lA,boxHd:aA,boxhD:cA,boxHD:uA,boxhu:fA,boxHu:hA,boxhU:dA,boxHU:pA,boxminus:gA,boxplus:vA,boxtimes:mA,boxul:yA,boxuL:bA,boxUl:wA,boxUL:xA,boxur:_A,boxuR:SA,boxUr:kA,boxUR:CA,boxv:TA,boxV:EA,boxvh:LA,boxvH:AA,boxVh:MA,boxVH:NA,boxvl:PA,boxvL:OA,boxVl:DA,boxVL:$A,boxvr:RA,boxvR:zA,boxVr:IA,boxVR:FA,bprime:qA,breve:HA,Breve:BA,brvbar:WA,bscr:UA,Bscr:jA,bsemi:VA,bsim:GA,bsime:KA,bsolb:XA,bsol:YA,bsolhsub:ZA,bull:QA,bullet:JA,bump:tM,bumpE:eM,bumpe:nM,Bumpeq:rM,bumpeq:iM,Cacute:oM,cacute:sM,capand:lM,capbrcup:aM,capcap:cM,cap:uM,Cap:fM,capcup:hM,capdot:dM,CapitalDifferentialD:pM,caps:gM,caret:vM,caron:mM,Cayleys:yM,ccaps:bM,Ccaron:wM,ccaron:xM,Ccedil:_M,ccedil:SM,Ccirc:kM,ccirc:CM,Cconint:TM,ccups:EM,ccupssm:LM,Cdot:AM,cdot:MM,cedil:NM,Cedilla:PM,cemptyv:OM,cent:DM,centerdot:$M,CenterDot:RM,cfr:zM,Cfr:IM,CHcy:FM,chcy:qM,check:HM,checkmark:BM,Chi:WM,chi:UM,circ:jM,circeq:VM,circlearrowleft:GM,circlearrowright:KM,circledast:XM,circledcirc:YM,circleddash:ZM,CircleDot:QM,circledR:JM,circledS:tN,CircleMinus:eN,CirclePlus:nN,CircleTimes:rN,cir:iN,cirE:oN,cire:sN,cirfnint:lN,cirmid:aN,cirscir:cN,ClockwiseContourIntegral:uN,CloseCurlyDoubleQuote:fN,CloseCurlyQuote:hN,clubs:dN,clubsuit:pN,colon:gN,Colon:vN,Colone:mN,colone:yN,coloneq:bN,comma:wN,commat:xN,comp:_N,compfn:SN,complement:kN,complexes:CN,cong:TN,congdot:EN,Congruent:LN,conint:AN,Conint:MN,ContourIntegral:NN,copf:PN,Copf:ON,coprod:DN,Coproduct:$N,copy:RN,COPY:zN,copysr:IN,CounterClockwiseContourIntegral:FN,crarr:qN,cross:HN,Cross:BN,Cscr:WN,cscr:UN,csub:jN,csube:VN,csup:GN,csupe:KN,ctdot:XN,cudarrl:YN,cudarrr:ZN,cuepr:QN,cuesc:JN,cularr:tP,cularrp:eP,cupbrcap:nP,cupcap:rP,CupCap:iP,cup:oP,Cup:sP,cupcup:lP,cupdot:aP,cupor:cP,cups:uP,curarr:fP,curarrm:hP,curlyeqprec:dP,curlyeqsucc:pP,curlyvee:gP,curlywedge:vP,curren:mP,curvearrowleft:yP,curvearrowright:bP,cuvee:wP,cuwed:xP,cwconint:_P,cwint:SP,cylcty:kP,dagger:CP,Dagger:TP,daleth:EP,darr:LP,Darr:AP,dArr:MP,dash:NP,Dashv:PP,dashv:OP,dbkarow:DP,dblac:$P,Dcaron:RP,dcaron:zP,Dcy:IP,dcy:FP,ddagger:qP,ddarr:HP,DD:BP,dd:WP,DDotrahd:UP,ddotseq:jP,deg:VP,Del:GP,Delta:KP,delta:XP,demptyv:YP,dfisht:ZP,Dfr:QP,dfr:JP,dHar:tO,dharl:eO,dharr:nO,DiacriticalAcute:rO,DiacriticalDot:iO,DiacriticalDoubleAcute:oO,DiacriticalGrave:sO,DiacriticalTilde:lO,diam:aO,diamond:cO,Diamond:uO,diamondsuit:fO,diams:hO,die:dO,DifferentialD:pO,digamma:gO,disin:vO,div:mO,divide:yO,divideontimes:bO,divonx:wO,DJcy:xO,djcy:_O,dlcorn:SO,dlcrop:kO,dollar:CO,Dopf:TO,dopf:EO,Dot:LO,dot:AO,DotDot:MO,doteq:NO,doteqdot:PO,DotEqual:OO,dotminus:DO,dotplus:$O,dotsquare:RO,doublebarwedge:zO,DoubleContourIntegral:IO,DoubleDot:FO,DoubleDownArrow:qO,DoubleLeftArrow:HO,DoubleLeftRightArrow:BO,DoubleLeftTee:WO,DoubleLongLeftArrow:UO,DoubleLongLeftRightArrow:jO,DoubleLongRightArrow:VO,DoubleRightArrow:GO,DoubleRightTee:KO,DoubleUpArrow:XO,DoubleUpDownArrow:YO,DoubleVerticalBar:ZO,DownArrowBar:QO,downarrow:JO,DownArrow:tD,Downarrow:eD,DownArrowUpArrow:nD,DownBreve:rD,downdownarrows:iD,downharpoonleft:oD,downharpoonright:sD,DownLeftRightVector:lD,DownLeftTeeVector:aD,DownLeftVectorBar:cD,DownLeftVector:uD,DownRightTeeVector:fD,DownRightVectorBar:hD,DownRightVector:dD,DownTeeArrow:pD,DownTee:gD,drbkarow:vD,drcorn:mD,drcrop:yD,Dscr:bD,dscr:wD,DScy:xD,dscy:_D,dsol:SD,Dstrok:kD,dstrok:CD,dtdot:TD,dtri:ED,dtrif:LD,duarr:AD,duhar:MD,dwangle:ND,DZcy:PD,dzcy:OD,dzigrarr:DD,Eacute:$D,eacute:RD,easter:zD,Ecaron:ID,ecaron:FD,Ecirc:qD,ecirc:HD,ecir:BD,ecolon:WD,Ecy:UD,ecy:jD,eDDot:VD,Edot:GD,edot:KD,eDot:XD,ee:YD,efDot:ZD,Efr:QD,efr:JD,eg:t$,Egrave:e$,egrave:n$,egs:r$,egsdot:i$,el:o$,Element:s$,elinters:l$,ell:a$,els:c$,elsdot:u$,Emacr:f$,emacr:h$,empty:d$,emptyset:p$,EmptySmallSquare:g$,emptyv:v$,EmptyVerySmallSquare:m$,emsp13:y$,emsp14:b$,emsp:w$,ENG:x$,eng:_$,ensp:S$,Eogon:k$,eogon:C$,Eopf:T$,eopf:E$,epar:L$,eparsl:A$,eplus:M$,epsi:N$,Epsilon:P$,epsilon:O$,epsiv:D$,eqcirc:$$,eqcolon:R$,eqsim:z$,eqslantgtr:I$,eqslantless:F$,Equal:q$,equals:H$,EqualTilde:B$,equest:W$,Equilibrium:U$,equiv:j$,equivDD:V$,eqvparsl:G$,erarr:K$,erDot:X$,escr:Y$,Escr:Z$,esdot:Q$,Esim:J$,esim:tR,Eta:eR,eta:nR,ETH:rR,eth:iR,Euml:oR,euml:sR,euro:lR,excl:aR,exist:cR,Exists:uR,expectation:fR,exponentiale:hR,ExponentialE:dR,fallingdotseq:pR,Fcy:gR,fcy:vR,female:mR,ffilig:yR,fflig:bR,ffllig:wR,Ffr:xR,ffr:_R,filig:SR,FilledSmallSquare:kR,FilledVerySmallSquare:CR,fjlig:TR,flat:ER,fllig:LR,fltns:AR,fnof:MR,Fopf:NR,fopf:PR,forall:OR,ForAll:DR,fork:$R,forkv:RR,Fouriertrf:zR,fpartint:IR,frac12:FR,frac13:qR,frac14:HR,frac15:BR,frac16:WR,frac18:UR,frac23:jR,frac25:VR,frac34:GR,frac35:KR,frac38:XR,frac45:YR,frac56:ZR,frac58:QR,frac78:JR,frasl:t2,frown:e2,fscr:n2,Fscr:r2,gacute:i2,Gamma:o2,gamma:s2,Gammad:l2,gammad:a2,gap:c2,Gbreve:u2,gbreve:f2,Gcedil:h2,Gcirc:d2,gcirc:p2,Gcy:g2,gcy:v2,Gdot:m2,gdot:y2,ge:b2,gE:w2,gEl:x2,gel:_2,geq:S2,geqq:k2,geqslant:C2,gescc:T2,ges:E2,gesdot:L2,gesdoto:A2,gesdotol:M2,gesl:N2,gesles:P2,Gfr:O2,gfr:D2,gg:$2,Gg:R2,ggg:z2,gimel:I2,GJcy:F2,gjcy:q2,gla:H2,gl:B2,glE:W2,glj:U2,gnap:j2,gnapprox:V2,gne:G2,gnE:K2,gneq:X2,gneqq:Y2,gnsim:Z2,Gopf:Q2,gopf:J2,grave:tz,GreaterEqual:ez,GreaterEqualLess:nz,GreaterFullEqual:rz,GreaterGreater:iz,GreaterLess:oz,GreaterSlantEqual:sz,GreaterTilde:lz,Gscr:az,gscr:cz,gsim:uz,gsime:fz,gsiml:hz,gtcc:dz,gtcir:pz,gt:gz,GT:vz,Gt:mz,gtdot:yz,gtlPar:bz,gtquest:wz,gtrapprox:xz,gtrarr:_z,gtrdot:Sz,gtreqless:kz,gtreqqless:Cz,gtrless:Tz,gtrsim:Ez,gvertneqq:Lz,gvnE:Az,Hacek:Mz,hairsp:Nz,half:Pz,hamilt:Oz,HARDcy:Dz,hardcy:$z,harrcir:Rz,harr:zz,hArr:Iz,harrw:Fz,Hat:qz,hbar:Hz,Hcirc:Bz,hcirc:Wz,hearts:Uz,heartsuit:jz,hellip:Vz,hercon:Gz,hfr:Kz,Hfr:Xz,HilbertSpace:Yz,hksearow:Zz,hkswarow:Qz,hoarr:Jz,homtht:tI,hookleftarrow:eI,hookrightarrow:nI,hopf:rI,Hopf:iI,horbar:oI,HorizontalLine:sI,hscr:lI,Hscr:aI,hslash:cI,Hstrok:uI,hstrok:fI,HumpDownHump:hI,HumpEqual:dI,hybull:pI,hyphen:gI,Iacute:vI,iacute:mI,ic:yI,Icirc:bI,icirc:wI,Icy:xI,icy:_I,Idot:SI,IEcy:kI,iecy:CI,iexcl:TI,iff:EI,ifr:LI,Ifr:AI,Igrave:MI,igrave:NI,ii:PI,iiiint:OI,iiint:DI,iinfin:$I,iiota:RI,IJlig:zI,ijlig:II,Imacr:FI,imacr:qI,image:HI,ImaginaryI:BI,imagline:WI,imagpart:UI,imath:jI,Im:VI,imof:GI,imped:KI,Implies:XI,incare:YI,in:"∈",infin:ZI,infintie:QI,inodot:JI,intcal:tF,int:eF,Int:nF,integers:rF,Integral:iF,intercal:oF,Intersection:sF,intlarhk:lF,intprod:aF,InvisibleComma:cF,InvisibleTimes:uF,IOcy:fF,iocy:hF,Iogon:dF,iogon:pF,Iopf:gF,iopf:vF,Iota:mF,iota:yF,iprod:bF,iquest:wF,iscr:xF,Iscr:_F,isin:SF,isindot:kF,isinE:CF,isins:TF,isinsv:EF,isinv:LF,it:AF,Itilde:MF,itilde:NF,Iukcy:PF,iukcy:OF,Iuml:DF,iuml:$F,Jcirc:RF,jcirc:zF,Jcy:IF,jcy:FF,Jfr:qF,jfr:HF,jmath:BF,Jopf:WF,jopf:UF,Jscr:jF,jscr:VF,Jsercy:GF,jsercy:KF,Jukcy:XF,jukcy:YF,Kappa:ZF,kappa:QF,kappav:JF,Kcedil:tq,kcedil:eq,Kcy:nq,kcy:rq,Kfr:iq,kfr:oq,kgreen:sq,KHcy:lq,khcy:aq,KJcy:cq,kjcy:uq,Kopf:fq,kopf:hq,Kscr:dq,kscr:pq,lAarr:gq,Lacute:vq,lacute:mq,laemptyv:yq,lagran:bq,Lambda:wq,lambda:xq,lang:_q,Lang:Sq,langd:kq,langle:Cq,lap:Tq,Laplacetrf:Eq,laquo:Lq,larrb:Aq,larrbfs:Mq,larr:Nq,Larr:Pq,lArr:Oq,larrfs:Dq,larrhk:$q,larrlp:Rq,larrpl:zq,larrsim:Iq,larrtl:Fq,latail:qq,lAtail:Hq,lat:Bq,late:Wq,lates:Uq,lbarr:jq,lBarr:Vq,lbbrk:Gq,lbrace:Kq,lbrack:Xq,lbrke:Yq,lbrksld:Zq,lbrkslu:Qq,Lcaron:Jq,lcaron:tH,Lcedil:eH,lcedil:nH,lceil:rH,lcub:iH,Lcy:oH,lcy:sH,ldca:lH,ldquo:aH,ldquor:cH,ldrdhar:uH,ldrushar:fH,ldsh:hH,le:dH,lE:pH,LeftAngleBracket:gH,LeftArrowBar:vH,leftarrow:mH,LeftArrow:yH,Leftarrow:bH,LeftArrowRightArrow:wH,leftarrowtail:xH,LeftCeiling:_H,LeftDoubleBracket:SH,LeftDownTeeVector:kH,LeftDownVectorBar:CH,LeftDownVector:TH,LeftFloor:EH,leftharpoondown:LH,leftharpoonup:AH,leftleftarrows:MH,leftrightarrow:NH,LeftRightArrow:PH,Leftrightarrow:OH,leftrightarrows:DH,leftrightharpoons:$H,leftrightsquigarrow:RH,LeftRightVector:zH,LeftTeeArrow:IH,LeftTee:FH,LeftTeeVector:qH,leftthreetimes:HH,LeftTriangleBar:BH,LeftTriangle:WH,LeftTriangleEqual:UH,LeftUpDownVector:jH,LeftUpTeeVector:VH,LeftUpVectorBar:GH,LeftUpVector:KH,LeftVectorBar:XH,LeftVector:YH,lEg:ZH,leg:QH,leq:JH,leqq:tB,leqslant:eB,lescc:nB,les:rB,lesdot:iB,lesdoto:oB,lesdotor:sB,lesg:lB,lesges:aB,lessapprox:cB,lessdot:uB,lesseqgtr:fB,lesseqqgtr:hB,LessEqualGreater:dB,LessFullEqual:pB,LessGreater:gB,lessgtr:vB,LessLess:mB,lesssim:yB,LessSlantEqual:bB,LessTilde:wB,lfisht:xB,lfloor:_B,Lfr:SB,lfr:kB,lg:CB,lgE:TB,lHar:EB,lhard:LB,lharu:AB,lharul:MB,lhblk:NB,LJcy:PB,ljcy:OB,llarr:DB,ll:$B,Ll:RB,llcorner:zB,Lleftarrow:IB,llhard:FB,lltri:qB,Lmidot:HB,lmidot:BB,lmoustache:WB,lmoust:UB,lnap:jB,lnapprox:VB,lne:GB,lnE:KB,lneq:XB,lneqq:YB,lnsim:ZB,loang:QB,loarr:JB,lobrk:t3,longleftarrow:e3,LongLeftArrow:n3,Longleftarrow:r3,longleftrightarrow:i3,LongLeftRightArrow:o3,Longleftrightarrow:s3,longmapsto:l3,longrightarrow:a3,LongRightArrow:c3,Longrightarrow:u3,looparrowleft:f3,looparrowright:h3,lopar:d3,Lopf:p3,lopf:g3,loplus:v3,lotimes:m3,lowast:y3,lowbar:b3,LowerLeftArrow:w3,LowerRightArrow:x3,loz:_3,lozenge:S3,lozf:k3,lpar:C3,lparlt:T3,lrarr:E3,lrcorner:L3,lrhar:A3,lrhard:M3,lrm:N3,lrtri:P3,lsaquo:O3,lscr:D3,Lscr:$3,lsh:R3,Lsh:z3,lsim:I3,lsime:F3,lsimg:q3,lsqb:H3,lsquo:B3,lsquor:W3,Lstrok:U3,lstrok:j3,ltcc:V3,ltcir:G3,lt:K3,LT:X3,Lt:Y3,ltdot:Z3,lthree:Q3,ltimes:J3,ltlarr:t5,ltquest:e5,ltri:n5,ltrie:r5,ltrif:i5,ltrPar:o5,lurdshar:s5,luruhar:l5,lvertneqq:a5,lvnE:c5,macr:u5,male:f5,malt:h5,maltese:d5,Map:"⤅",map:p5,mapsto:g5,mapstodown:v5,mapstoleft:m5,mapstoup:y5,marker:b5,mcomma:w5,Mcy:x5,mcy:_5,mdash:S5,mDDot:k5,measuredangle:C5,MediumSpace:T5,Mellintrf:E5,Mfr:L5,mfr:A5,mho:M5,micro:N5,midast:P5,midcir:O5,mid:D5,middot:$5,minusb:R5,minus:z5,minusd:I5,minusdu:F5,MinusPlus:q5,mlcp:H5,mldr:B5,mnplus:W5,models:U5,Mopf:j5,mopf:V5,mp:G5,mscr:K5,Mscr:X5,mstpos:Y5,Mu:Z5,mu:Q5,multimap:J5,mumap:t8,nabla:e8,Nacute:n8,nacute:r8,nang:i8,nap:o8,napE:s8,napid:l8,napos:a8,napprox:c8,natural:u8,naturals:f8,natur:h8,nbsp:d8,nbump:p8,nbumpe:g8,ncap:v8,Ncaron:m8,ncaron:y8,Ncedil:b8,ncedil:w8,ncong:x8,ncongdot:_8,ncup:S8,Ncy:k8,ncy:C8,ndash:T8,nearhk:E8,nearr:L8,neArr:A8,nearrow:M8,ne:N8,nedot:P8,NegativeMediumSpace:O8,NegativeThickSpace:D8,NegativeThinSpace:$8,NegativeVeryThinSpace:R8,nequiv:z8,nesear:I8,nesim:F8,NestedGreaterGreater:q8,NestedLessLess:H8,NewLine:B8,nexist:W8,nexists:U8,Nfr:j8,nfr:V8,ngE:G8,nge:K8,ngeq:X8,ngeqq:Y8,ngeqslant:Z8,nges:Q8,nGg:J8,ngsim:tW,nGt:eW,ngt:nW,ngtr:rW,nGtv:iW,nharr:oW,nhArr:sW,nhpar:lW,ni:aW,nis:cW,nisd:uW,niv:fW,NJcy:hW,njcy:dW,nlarr:pW,nlArr:gW,nldr:vW,nlE:mW,nle:yW,nleftarrow:bW,nLeftarrow:wW,nleftrightarrow:xW,nLeftrightarrow:_W,nleq:SW,nleqq:kW,nleqslant:CW,nles:TW,nless:EW,nLl:LW,nlsim:AW,nLt:MW,nlt:NW,nltri:PW,nltrie:OW,nLtv:DW,nmid:$W,NoBreak:RW,NonBreakingSpace:zW,nopf:IW,Nopf:FW,Not:qW,not:HW,NotCongruent:BW,NotCupCap:WW,NotDoubleVerticalBar:UW,NotElement:jW,NotEqual:VW,NotEqualTilde:GW,NotExists:KW,NotGreater:XW,NotGreaterEqual:YW,NotGreaterFullEqual:ZW,NotGreaterGreater:QW,NotGreaterLess:JW,NotGreaterSlantEqual:tU,NotGreaterTilde:eU,NotHumpDownHump:nU,NotHumpEqual:rU,notin:iU,notindot:oU,notinE:sU,notinva:lU,notinvb:aU,notinvc:cU,NotLeftTriangleBar:uU,NotLeftTriangle:fU,NotLeftTriangleEqual:hU,NotLess:dU,NotLessEqual:pU,NotLessGreater:gU,NotLessLess:vU,NotLessSlantEqual:mU,NotLessTilde:yU,NotNestedGreaterGreater:bU,NotNestedLessLess:wU,notni:xU,notniva:_U,notnivb:SU,notnivc:kU,NotPrecedes:CU,NotPrecedesEqual:TU,NotPrecedesSlantEqual:EU,NotReverseElement:LU,NotRightTriangleBar:AU,NotRightTriangle:MU,NotRightTriangleEqual:NU,NotSquareSubset:PU,NotSquareSubsetEqual:OU,NotSquareSuperset:DU,NotSquareSupersetEqual:$U,NotSubset:RU,NotSubsetEqual:zU,NotSucceeds:IU,NotSucceedsEqual:FU,NotSucceedsSlantEqual:qU,NotSucceedsTilde:HU,NotSuperset:BU,NotSupersetEqual:WU,NotTilde:UU,NotTildeEqual:jU,NotTildeFullEqual:VU,NotTildeTilde:GU,NotVerticalBar:KU,nparallel:XU,npar:YU,nparsl:ZU,npart:QU,npolint:JU,npr:t4,nprcue:e4,nprec:n4,npreceq:r4,npre:i4,nrarrc:o4,nrarr:s4,nrArr:l4,nrarrw:a4,nrightarrow:c4,nRightarrow:u4,nrtri:f4,nrtrie:h4,nsc:d4,nsccue:p4,nsce:g4,Nscr:v4,nscr:m4,nshortmid:y4,nshortparallel:b4,nsim:w4,nsime:x4,nsimeq:_4,nsmid:S4,nspar:k4,nsqsube:C4,nsqsupe:T4,nsub:E4,nsubE:L4,nsube:A4,nsubset:M4,nsubseteq:N4,nsubseteqq:P4,nsucc:O4,nsucceq:D4,nsup:$4,nsupE:R4,nsupe:z4,nsupset:I4,nsupseteq:F4,nsupseteqq:q4,ntgl:H4,Ntilde:B4,ntilde:W4,ntlg:U4,ntriangleleft:j4,ntrianglelefteq:V4,ntriangleright:G4,ntrianglerighteq:K4,Nu:X4,nu:Y4,num:Z4,numero:Q4,numsp:J4,nvap:t6,nvdash:e6,nvDash:n6,nVdash:r6,nVDash:i6,nvge:o6,nvgt:s6,nvHarr:l6,nvinfin:a6,nvlArr:c6,nvle:u6,nvlt:f6,nvltrie:h6,nvrArr:d6,nvrtrie:p6,nvsim:g6,nwarhk:v6,nwarr:m6,nwArr:y6,nwarrow:b6,nwnear:w6,Oacute:x6,oacute:_6,oast:S6,Ocirc:k6,ocirc:C6,ocir:T6,Ocy:E6,ocy:L6,odash:A6,Odblac:M6,odblac:N6,odiv:P6,odot:O6,odsold:D6,OElig:$6,oelig:R6,ofcir:z6,Ofr:I6,ofr:F6,ogon:q6,Ograve:H6,ograve:B6,ogt:W6,ohbar:U6,ohm:j6,oint:V6,olarr:G6,olcir:K6,olcross:X6,oline:Y6,olt:Z6,Omacr:Q6,omacr:J6,Omega:tj,omega:ej,Omicron:nj,omicron:rj,omid:ij,ominus:oj,Oopf:sj,oopf:lj,opar:aj,OpenCurlyDoubleQuote:cj,OpenCurlyQuote:uj,operp:fj,oplus:hj,orarr:dj,Or:pj,or:gj,ord:vj,order:mj,orderof:yj,ordf:bj,ordm:wj,origof:xj,oror:_j,orslope:Sj,orv:kj,oS:Cj,Oscr:Tj,oscr:Ej,Oslash:Lj,oslash:Aj,osol:Mj,Otilde:Nj,otilde:Pj,otimesas:Oj,Otimes:Dj,otimes:$j,Ouml:Rj,ouml:zj,ovbar:Ij,OverBar:Fj,OverBrace:qj,OverBracket:Hj,OverParenthesis:Bj,para:Wj,parallel:Uj,par:jj,parsim:Vj,parsl:Gj,part:Kj,PartialD:Xj,Pcy:Yj,pcy:Zj,percnt:Qj,period:Jj,permil:t9,perp:e9,pertenk:n9,Pfr:r9,pfr:i9,Phi:o9,phi:s9,phiv:l9,phmmat:a9,phone:c9,Pi:u9,pi:f9,pitchfork:h9,piv:d9,planck:p9,planckh:g9,plankv:v9,plusacir:m9,plusb:y9,pluscir:b9,plus:w9,plusdo:x9,plusdu:_9,pluse:S9,PlusMinus:k9,plusmn:C9,plussim:T9,plustwo:E9,pm:L9,Poincareplane:A9,pointint:M9,popf:N9,Popf:P9,pound:O9,prap:D9,Pr:$9,pr:R9,prcue:z9,precapprox:I9,prec:F9,preccurlyeq:q9,Precedes:H9,PrecedesEqual:B9,PrecedesSlantEqual:W9,PrecedesTilde:U9,preceq:j9,precnapprox:V9,precneqq:G9,precnsim:K9,pre:X9,prE:Y9,precsim:Z9,prime:Q9,Prime:J9,primes:tV,prnap:eV,prnE:nV,prnsim:rV,prod:iV,Product:oV,profalar:sV,profline:lV,profsurf:aV,prop:cV,Proportional:uV,Proportion:fV,propto:hV,prsim:dV,prurel:pV,Pscr:gV,pscr:vV,Psi:mV,psi:yV,puncsp:bV,Qfr:wV,qfr:xV,qint:_V,qopf:SV,Qopf:kV,qprime:CV,Qscr:TV,qscr:EV,quaternions:LV,quatint:AV,quest:MV,questeq:NV,quot:PV,QUOT:OV,rAarr:DV,race:$V,Racute:RV,racute:zV,radic:IV,raemptyv:FV,rang:qV,Rang:HV,rangd:BV,range:WV,rangle:UV,raquo:jV,rarrap:VV,rarrb:GV,rarrbfs:KV,rarrc:XV,rarr:YV,Rarr:ZV,rArr:QV,rarrfs:JV,rarrhk:tG,rarrlp:eG,rarrpl:nG,rarrsim:rG,Rarrtl:iG,rarrtl:oG,rarrw:sG,ratail:lG,rAtail:aG,ratio:cG,rationals:uG,rbarr:fG,rBarr:hG,RBarr:dG,rbbrk:pG,rbrace:gG,rbrack:vG,rbrke:mG,rbrksld:yG,rbrkslu:bG,Rcaron:wG,rcaron:xG,Rcedil:_G,rcedil:SG,rceil:kG,rcub:CG,Rcy:TG,rcy:EG,rdca:LG,rdldhar:AG,rdquo:MG,rdquor:NG,rdsh:PG,real:OG,realine:DG,realpart:$G,reals:RG,Re:zG,rect:IG,reg:FG,REG:qG,ReverseElement:HG,ReverseEquilibrium:BG,ReverseUpEquilibrium:WG,rfisht:UG,rfloor:jG,rfr:VG,Rfr:GG,rHar:KG,rhard:XG,rharu:YG,rharul:ZG,Rho:QG,rho:JG,rhov:t7,RightAngleBracket:e7,RightArrowBar:n7,rightarrow:r7,RightArrow:i7,Rightarrow:o7,RightArrowLeftArrow:s7,rightarrowtail:l7,RightCeiling:a7,RightDoubleBracket:c7,RightDownTeeVector:u7,RightDownVectorBar:f7,RightDownVector:h7,RightFloor:d7,rightharpoondown:p7,rightharpoonup:g7,rightleftarrows:v7,rightleftharpoons:m7,rightrightarrows:y7,rightsquigarrow:b7,RightTeeArrow:w7,RightTee:x7,RightTeeVector:_7,rightthreetimes:S7,RightTriangleBar:k7,RightTriangle:C7,RightTriangleEqual:T7,RightUpDownVector:E7,RightUpTeeVector:L7,RightUpVectorBar:A7,RightUpVector:M7,RightVectorBar:N7,RightVector:P7,ring:O7,risingdotseq:D7,rlarr:$7,rlhar:R7,rlm:z7,rmoustache:I7,rmoust:F7,rnmid:q7,roang:H7,roarr:B7,robrk:W7,ropar:U7,ropf:j7,Ropf:V7,roplus:G7,rotimes:K7,RoundImplies:X7,rpar:Y7,rpargt:Z7,rppolint:Q7,rrarr:J7,Rrightarrow:tK,rsaquo:eK,rscr:nK,Rscr:rK,rsh:iK,Rsh:oK,rsqb:sK,rsquo:lK,rsquor:aK,rthree:cK,rtimes:uK,rtri:fK,rtrie:hK,rtrif:dK,rtriltri:pK,RuleDelayed:gK,ruluhar:vK,rx:mK,Sacute:yK,sacute:bK,sbquo:wK,scap:xK,Scaron:_K,scaron:SK,Sc:kK,sc:CK,sccue:TK,sce:EK,scE:LK,Scedil:AK,scedil:MK,Scirc:NK,scirc:PK,scnap:OK,scnE:DK,scnsim:$K,scpolint:RK,scsim:zK,Scy:IK,scy:FK,sdotb:qK,sdot:HK,sdote:BK,searhk:WK,searr:UK,seArr:jK,searrow:VK,sect:GK,semi:KK,seswar:XK,setminus:YK,setmn:ZK,sext:QK,Sfr:JK,sfr:tX,sfrown:eX,sharp:nX,SHCHcy:rX,shchcy:iX,SHcy:oX,shcy:sX,ShortDownArrow:lX,ShortLeftArrow:aX,shortmid:cX,shortparallel:uX,ShortRightArrow:fX,ShortUpArrow:hX,shy:dX,Sigma:pX,sigma:gX,sigmaf:vX,sigmav:mX,sim:yX,simdot:bX,sime:wX,simeq:xX,simg:_X,simgE:SX,siml:kX,simlE:CX,simne:TX,simplus:EX,simrarr:LX,slarr:AX,SmallCircle:MX,smallsetminus:NX,smashp:PX,smeparsl:OX,smid:DX,smile:$X,smt:RX,smte:zX,smtes:IX,SOFTcy:FX,softcy:qX,solbar:HX,solb:BX,sol:WX,Sopf:UX,sopf:jX,spades:VX,spadesuit:GX,spar:KX,sqcap:XX,sqcaps:YX,sqcup:ZX,sqcups:QX,Sqrt:JX,sqsub:tY,sqsube:eY,sqsubset:nY,sqsubseteq:rY,sqsup:iY,sqsupe:oY,sqsupset:sY,sqsupseteq:lY,square:aY,Square:cY,SquareIntersection:uY,SquareSubset:fY,SquareSubsetEqual:hY,SquareSuperset:dY,SquareSupersetEqual:pY,SquareUnion:gY,squarf:vY,squ:mY,squf:yY,srarr:bY,Sscr:wY,sscr:xY,ssetmn:_Y,ssmile:SY,sstarf:kY,Star:CY,star:TY,starf:EY,straightepsilon:LY,straightphi:AY,strns:MY,sub:NY,Sub:PY,subdot:OY,subE:DY,sube:$Y,subedot:RY,submult:zY,subnE:IY,subne:FY,subplus:qY,subrarr:HY,subset:BY,Subset:WY,subseteq:UY,subseteqq:jY,SubsetEqual:VY,subsetneq:GY,subsetneqq:KY,subsim:XY,subsub:YY,subsup:ZY,succapprox:QY,succ:JY,succcurlyeq:tZ,Succeeds:eZ,SucceedsEqual:nZ,SucceedsSlantEqual:rZ,SucceedsTilde:iZ,succeq:oZ,succnapprox:sZ,succneqq:lZ,succnsim:aZ,succsim:cZ,SuchThat:uZ,sum:fZ,Sum:hZ,sung:dZ,sup1:pZ,sup2:gZ,sup3:vZ,sup:mZ,Sup:yZ,supdot:bZ,supdsub:wZ,supE:xZ,supe:_Z,supedot:SZ,Superset:kZ,SupersetEqual:CZ,suphsol:TZ,suphsub:EZ,suplarr:LZ,supmult:AZ,supnE:MZ,supne:NZ,supplus:PZ,supset:OZ,Supset:DZ,supseteq:$Z,supseteqq:RZ,supsetneq:zZ,supsetneqq:IZ,supsim:FZ,supsub:qZ,supsup:HZ,swarhk:BZ,swarr:WZ,swArr:UZ,swarrow:jZ,swnwar:VZ,szlig:GZ,Tab:KZ,target:XZ,Tau:YZ,tau:ZZ,tbrk:QZ,Tcaron:JZ,tcaron:tQ,Tcedil:eQ,tcedil:nQ,Tcy:rQ,tcy:iQ,tdot:oQ,telrec:sQ,Tfr:lQ,tfr:aQ,there4:cQ,therefore:uQ,Therefore:fQ,Theta:hQ,theta:dQ,thetasym:pQ,thetav:gQ,thickapprox:vQ,thicksim:mQ,ThickSpace:yQ,ThinSpace:bQ,thinsp:wQ,thkap:xQ,thksim:_Q,THORN:SQ,thorn:kQ,tilde:CQ,Tilde:TQ,TildeEqual:EQ,TildeFullEqual:LQ,TildeTilde:AQ,timesbar:MQ,timesb:NQ,times:PQ,timesd:OQ,tint:DQ,toea:$Q,topbot:RQ,topcir:zQ,top:IQ,Topf:FQ,topf:qQ,topfork:HQ,tosa:BQ,tprime:WQ,trade:UQ,TRADE:jQ,triangle:VQ,triangledown:GQ,triangleleft:KQ,trianglelefteq:XQ,triangleq:YQ,triangleright:ZQ,trianglerighteq:QQ,tridot:JQ,trie:tJ,triminus:eJ,TripleDot:nJ,triplus:rJ,trisb:iJ,tritime:oJ,trpezium:sJ,Tscr:lJ,tscr:aJ,TScy:cJ,tscy:uJ,TSHcy:fJ,tshcy:hJ,Tstrok:dJ,tstrok:pJ,twixt:gJ,twoheadleftarrow:vJ,twoheadrightarrow:mJ,Uacute:yJ,uacute:bJ,uarr:wJ,Uarr:xJ,uArr:_J,Uarrocir:SJ,Ubrcy:kJ,ubrcy:CJ,Ubreve:TJ,ubreve:EJ,Ucirc:LJ,ucirc:AJ,Ucy:MJ,ucy:NJ,udarr:PJ,Udblac:OJ,udblac:DJ,udhar:$J,ufisht:RJ,Ufr:zJ,ufr:IJ,Ugrave:FJ,ugrave:qJ,uHar:HJ,uharl:BJ,uharr:WJ,uhblk:UJ,ulcorn:jJ,ulcorner:VJ,ulcrop:GJ,ultri:KJ,Umacr:XJ,umacr:YJ,uml:ZJ,UnderBar:QJ,UnderBrace:JJ,UnderBracket:ttt,UnderParenthesis:ett,Union:ntt,UnionPlus:rtt,Uogon:itt,uogon:ott,Uopf:stt,uopf:ltt,UpArrowBar:att,uparrow:ctt,UpArrow:utt,Uparrow:ftt,UpArrowDownArrow:htt,updownarrow:dtt,UpDownArrow:ptt,Updownarrow:gtt,UpEquilibrium:vtt,upharpoonleft:mtt,upharpoonright:ytt,uplus:btt,UpperLeftArrow:wtt,UpperRightArrow:xtt,upsi:_tt,Upsi:Stt,upsih:ktt,Upsilon:Ctt,upsilon:Ttt,UpTeeArrow:Ett,UpTee:Ltt,upuparrows:Att,urcorn:Mtt,urcorner:Ntt,urcrop:Ptt,Uring:Ott,uring:Dtt,urtri:$tt,Uscr:Rtt,uscr:ztt,utdot:Itt,Utilde:Ftt,utilde:qtt,utri:Htt,utrif:Btt,uuarr:Wtt,Uuml:Utt,uuml:jtt,uwangle:Vtt,vangrt:Gtt,varepsilon:Ktt,varkappa:Xtt,varnothing:Ytt,varphi:Ztt,varpi:Qtt,varpropto:Jtt,varr:tet,vArr:eet,varrho:net,varsigma:ret,varsubsetneq:iet,varsubsetneqq:oet,varsupsetneq:set,varsupsetneqq:aet,vartheta:cet,vartriangleleft:uet,vartriangleright:fet,vBar:het,Vbar:det,vBarv:pet,Vcy:get,vcy:vet,vdash:met,vDash:yet,Vdash:bet,VDash:wet,Vdashl:xet,veebar:_et,vee:ket,Vee:Cet,veeeq:Tet,vellip:Eet,verbar:Let,Verbar:Aet,vert:Met,Vert:Net,VerticalBar:Pet,VerticalLine:Oet,VerticalSeparator:Det,VerticalTilde:$et,VeryThinSpace:Ret,Vfr:zet,vfr:Iet,vltri:Fet,vnsub:qet,vnsup:Het,Vopf:Bet,vopf:Wet,vprop:Uet,vrtri:jet,Vscr:Vet,vscr:Get,vsubnE:Ket,vsubne:Xet,vsupnE:Yet,vsupne:Zet,Vvdash:Qet,vzigzag:Jet,Wcirc:tnt,wcirc:ent,wedbar:nnt,wedge:rnt,Wedge:int,wedgeq:ont,weierp:snt,Wfr:lnt,wfr:ant,Wopf:cnt,wopf:unt,wp:fnt,wr:hnt,wreath:dnt,Wscr:pnt,wscr:gnt,xcap:vnt,xcirc:mnt,xcup:ynt,xdtri:bnt,Xfr:wnt,xfr:xnt,xharr:_nt,xhArr:Snt,Xi:knt,xi:Cnt,xlarr:Tnt,xlArr:Ent,xmap:Lnt,xnis:Ant,xodot:Mnt,Xopf:Nnt,xopf:Pnt,xoplus:Ont,xotime:Dnt,xrarr:$nt,xrArr:Rnt,Xscr:znt,xscr:Int,xsqcup:Fnt,xuplus:qnt,xutri:Hnt,xvee:Bnt,xwedge:Wnt,Yacute:Unt,yacute:jnt,YAcy:Vnt,yacy:Gnt,Ycirc:Knt,ycirc:Xnt,Ycy:Ynt,ycy:Znt,yen:Qnt,Yfr:Jnt,yfr:trt,YIcy:ert,yicy:nrt,Yopf:rrt,yopf:irt,Yscr:ort,yscr:srt,YUcy:lrt,yucy:art,yuml:crt,Yuml:urt,Zacute:frt,zacute:hrt,Zcaron:drt,zcaron:prt,Zcy:grt,zcy:vrt,Zdot:mrt,zdot:yrt,zeetrf:brt,ZeroWidthSpace:wrt,Zeta:xrt,zeta:_rt,zfr:Srt,Zfr:krt,ZHcy:Crt,zhcy:Trt,zigrarr:Ert,zopf:Lrt,Zopf:Art,Zscr:Mrt,zscr:Nrt,zwj:Prt,zwnj:Ort},Drt="Á",$rt="á",Rrt="Â",zrt="â",Irt="´",Frt="Æ",qrt="æ",Hrt="À",Brt="à",Wrt="&",Urt="&",jrt="Å",Vrt="å",Grt="Ã",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="«",Oit="<",Dit="<",$it="¯",Rit="µ",zit="·",Iit=" ",Fit="¬",qit="Ñ",Hit="ñ",Bit="Ó",Wit="ó",Uit="Ô",jit="ô",Vit="Ò",Git="ò",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={Aacute:Drt,aacute:$rt,Acirc:Rrt,acirc:zrt,acute:Irt,AElig:Frt,aelig:qrt,Agrave:Hrt,agrave:Brt,amp:Wrt,AMP:Urt,Aring:jrt,aring:Vrt,Atilde:Grt,atilde:Krt,Auml:Xrt,auml:Yrt,brvbar:Zrt,Ccedil:Qrt,ccedil:Jrt,cedil:tit,cent:eit,copy:nit,COPY:rit,curren:iit,deg:oit,divide:sit,Eacute:lit,eacute:ait,Ecirc:cit,ecirc:uit,Egrave:fit,egrave:hit,ETH:dit,eth:pit,Euml:git,euml:vit,frac12:mit,frac14:yit,frac34:bit,gt:wit,GT:xit,Iacute:_it,iacute:Sit,Icirc:kit,icirc:Cit,iexcl:Tit,Igrave:Eit,igrave:Lit,iquest:Ait,Iuml:Mit,iuml:Nit,laquo:Pit,lt:Oit,LT:Dit,macr:$it,micro:Rit,middot:zit,nbsp:Iit,not:Fit,Ntilde:qit,ntilde:Hit,Oacute:Bit,oacute:Wit,Ocirc:Uit,ocirc:jit,Ograve:Vit,ograve:Git,ordf:Kit,ordm:Xit,Oslash:Yit,oslash:Zit,Otilde:Qit,otilde:Jit,Ouml:tot,ouml:eot,para:not,plusmn:rot,pound:iot,quot:oot,QUOT:sot,raquo:lot,reg:aot,REG:cot,sect:uot,shy:fot,sup1:hot,sup2:dot,sup3:pot,szlig:got,THORN:vot,thorn:mot,times:yot,Uacute:bot,uacute:wot,Ucirc:xot,ucirc:_ot,Ugrave:Sot,ugrave:kot,uml:Cot,Uuml:Tot,uuml:Eot,Yacute:Lot,yacute:Aot,yen:Mot,yuml:Not},Oot="&",Dot="'",$ot=">",Rot="<",zot='"',py={amp:Oot,apos:Dot,gt:$ot,lt:Rot,quot:zot};var Bh={};const Iot={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 Fot=oo&&oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bh,"__esModule",{value:!0});var Lv=Fot(Iot),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 Hot(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Lv.default&&(t=Lv.default[t]),qot(t))}Bh.default=Hot;var Uc=oo&&oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.decodeHTML=Hr.decodeHTMLStrict=Hr.decodeXML=void 0;var Vf=Uc(dy),Bot=Uc(Pot),Wot=Uc(py),Av=Uc(Bh),Uot=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Hr.decodeXML=gy(Wot.default);Hr.decodeHTMLStrict=gy(Vf.default);function gy(t){var e=vy(t);return function(r){return String(r).replace(Uot,e)}}var Mv=function(t,e){return t1?Kot(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Xot(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(_y,jc)}}var Sy=new RegExp(by.source+"|"+_y.source,"g");function Yot(t){return t.replace(Sy,jc)}zn.escape=Yot;function Zot(t){return t.replace(by,jc)}zn.escapeUTF8=Zot;function ky(t){return function(e){return e.replace(Sy,function(r){return t[r]||jc(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=Hr,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 u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=u;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=Hr;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}})})(hy);function Qot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nv(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 u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function tst(t,e){if(t){if(typeof t=="string")return Pv(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 Pv(t,e)}}function Pv(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]=ist([u,f,h])}function Ty(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function ist(t){var e=[],r=Cy(t),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;e.push(Ty(s))}}catch(u){r.e(u)}finally{r.f()}return"#"+e.join("")}function Dv(t,e,r,o){var s;return e==="text"?s=ast(r,o):e==="display"?s=sst(t,r,o):e==="xterm256Foreground"?s=Ua(t,o.colors[r]):e==="xterm256Background"?s=ja(t,o.colors[r]):e==="rgb"&&(s=ost(t,r)),s}function ost(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),s=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return Wa(t,(r===38?"color:#":"background-color:#")+s)}function sst(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"
"},0:function(){return t.length&&Ey(t)},1:function(){return wi(t,"b")},3:function(){return wi(t,"i")},4:function(){return wi(t,"u")},8:function(){return Wa(t,"display:none")},9:function(){return wi(t,"strike")},22:function(){return Wa(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Rv(t,"i")},24:function(){return Rv(t,"u")},39:function(){return Ua(t,r.fg)},49:function(){return ja(t,r.bg)},53:function(){return Wa(t,"text-decoration:overline")}},s;return o[e]?s=o[e]():4"}).join("")}function Ea(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function lst(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function $v(t){t=parseInt(t,10);var e=null;return t===0?e="all":t===1?e="bold":2")}function Wa(t,e){return wi(t,"span",e)}function Ua(t,e){return wi(t,"span","color:"+e)}function ja(t,e){return wi(t,"span","background-color:"+e)}function Rv(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return""}function cst(t,e,r){var o=!1,s=3;function u(){return""}function f(B,K){return r("xterm256Foreground",K),""}function h(B,K){return r("xterm256Background",K),""}function d(B){return e.newline?r("display",-1):r("text",B),""}function g(B,K){o=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var ht=Cy(K),Y;try{for(ht.s();!(Y=ht.n()).done;){var nt=Y.value;r("display",nt)}}catch(at){ht.e(at)}finally{ht.f()}return""}function v(B){return r("text",B),""}function b(B){return r("rgb",B),""}var w=[{pattern:/^\x08+/,sub:u},{pattern:/^\x1b\[[012]?K/,sub:u},{pattern:/^\x1b\[\(B/,sub:u},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:b},{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:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function S(B,K){K>s&&o||(o=!1,t=t.replace(B.pattern,B.sub))}var P=[],A=t,L=A.length;t:for(;L>0;){for(var T=0,M=0,R=w.length;Mpst(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:vst();!s||s.length===0||(e=`${s}/${e}`,r=zv(s))}return e=yst(e,!r),r&&!zv(e)?`/${e}`:e.length>0?e:"."};function yst(t,e){let r="",o=0,s=-1,u=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,u=0;continue}else if(r.length>0){r="",o=0,s=h,u=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,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const zv=function(t){return gst.test(t)},bst=",".charCodeAt(0),Iv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wst=new Uint8Array(64),Ly=new Uint8Array(128);for(let t=0;t>>=1,h&&(s=-2147483648|-s),r[o]+=s,e}function Fv(t,e,r){return e>=r?!1:t.charCodeAt(e)!==bst}function Sst(t){t.sort(kst)}function kst(t,e){return t[0]-e[0]}const Cst=/^[\w+.-]+:\/\//,Tst=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Est=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var De;(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"})(De||(De={}));function Lst(t){return Cst.test(t)}function Ast(t){return t.startsWith("//")}function Ay(t){return t.startsWith("/")}function Mst(t){return t.startsWith("file:")}function qv(t){return/^[.?#]/.test(t)}function La(t){const e=Tst.exec(t);return My(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Nst(t){const e=Est.exec(t),r=e[2];return My("file:","",e[1]||"","",Ay(r)?r:"/"+r,e[3]||"",e[4]||"")}function My(t,e,r,o,s,u,f){return{scheme:t,user:e,host:r,port:o,path:s,query:u,hash:f,type:De.Absolute}}function Hv(t){if(Ast(t)){const r=La("http:"+t);return r.scheme="",r.type=De.SchemeRelative,r}if(Ay(t)){const r=La("http://foo.com"+t);return r.scheme="",r.host="",r.type=De.AbsolutePath,r}if(Mst(t))return Nst(t);if(Lst(t))return La(t);const e=La("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?De.Query:t.startsWith("#")?De.Hash:De.RelativePath:De.Empty,e}function Pst(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function Ost(t,e){Ny(e,e.type),t.path==="/"?t.path=e.path:t.path=Pst(e.path)+t.path}function Ny(t,e){const r=e<=De.RelativePath,o=t.path.split("/");let s=1,u=0,f=!1;for(let d=1;do&&(o=f)}Ny(r,o);const s=r.query+r.hash;switch(o){case De.Hash:case De.Query:return s;case De.RelativePath:{const u=r.path.slice(1);return u?qv(e||t)&&!qv(u)?"./"+u+s:u+s:s||"."}case De.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Bv(t,e){return e&&!e.endsWith("/")&&(e+="/"),Dst(t,e)}function $st(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const Li=0,Rst=1,zst=2,Ist=3,Fst=4;function qst(t,e){const r=Wv(t,0);if(r===t.length)return t;e||(t=t.slice());for(let o=r;o>1),u=t[s][Li]-e;if(u===0)return uc=!0,s;u<0?r=s+1:o=s-1}return uc=!1,r-1}function jst(t,e,r){for(let o=r+1;o=0&&t[o][Li]===e;r=o--);return r}function Gst(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Kst(t,e,r,o){const{lastKey:s,lastNeedle:u,lastIndex:f}=r;let h=0,d=t.length-1;if(o===s){if(e===u)return uc=f!==-1&&t[f][Li]===e,f;e>=u?h=f===-1?0:f:d=f}return r.lastKey=o,r.lastNeedle=e,r.lastIndex=Ust(t,e,h,d)}const Xst="`line` must be greater than 0 (lines start at line 1)",Yst="`column` must be greater than or equal to 0 (columns start at column 0)",Uv=-1,Zst=1;let jv,Py;class Qst{constructor(e,r){const o=typeof e=="string";if(!o&&e._decodedMemo)return e;const s=o?JSON.parse(e):e,{version:u,file:f,names:h,sourceRoot:d,sources:g,sourcesContent:v}=s;this.version=u,this.file=f,this.names=h||[],this.sourceRoot=d,this.sources=g,this.sourcesContent=v;const b=Bv(d||"",$st(r));this.resolvedSources=g.map(S=>Bv(S||"",b));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=Gst(),this._bySources=void 0,this._bySourceMemos=void 0}}jv=t=>t._decoded||(t._decoded=xst(t._encoded)),Py=(t,{line:e,column:r,bias:o})=>{if(e--,e<0)throw new Error(Xst);if(r<0)throw new Error(Yst);const s=jv(t);if(e>=s.length)return Aa(null,null,null,null);const u=s[e],f=Jst(u,t._decodedMemo,e,r,o||Zst);if(f===-1)return Aa(null,null,null,null);const h=u[f];if(h.length===1)return Aa(null,null,null,null);const{names:d,resolvedSources:g}=t;return Aa(g[h[Rst]],h[zst]+1,h[Ist],h.length===5?d[h[Fst]]:null)};function Aa(t,e,r,o){return{source:t,line:e,column:r,name:o}}function Jst(t,e,r,o,s){let u=Kst(t,o,e,r);return uc?u=(s===Uv?jst:Vst)(t,o,u):s===Uv&&u++,u===-1||u===t.length?-1:u}const Oy=/^\s*at .*(\S+:\d+|\(native\))/m,tlt=/^(eval@)?(\[native code])?$/,elt=["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 Dy(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 nlt(t){let e=t.trim();if(tlt.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,[u,f,h]=Dy(e.replace(r,""));return!u||!f||!h?null:{file:u,method:s||"",line:Number.parseInt(f),column:Number.parseInt(h)}}function rlt(t){let e=t.trim();if(!Oy.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,u,f]=Dy(o?o[1]:r);let h=o&&r||"",d=s&&["eval",""].includes(s)?void 0:s;return!d||!u||!f?null:(h.startsWith("async ")&&(h=h.slice(6)),d.startsWith("file://")&&(d=d.slice(7)),d=mst(d),h&&(h=h.replace(/__vite_ssr_import_\d+__\./g,"")),{method:h,file:d,line:Number.parseInt(u),column:Number.parseInt(f)})}function ilt(t,e={}){const{ignoreStackEntries:r=elt}=e;let o=Oy.test(t)?slt(t):olt(t);return r.length&&(o=o.filter(s=>!r.some(u=>s.file.match(u)))),o.map(s=>{var u;const f=(u=e.getSourceMap)==null?void 0:u.call(e,s.file);if(!f||typeof f!="object"||!f.version)return s;const h=new Qst(f),{line:d,column:g}=Py(h,s);return d!=null&&g!=null?{...s,line:d,column:g}:s})}function olt(t){return t.split(` `).map(e=>nlt(e)).filter(cy)}function slt(t){return t.split(` `).map(e=>rlt(e)).filter(cy)}function llt(t,e){return e&&t.endsWith(e)}async function $y(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Uh(t){return new dst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}function alt(t){return t===null||typeof t!="function"&&typeof t!="object"}function Ry(t){let e=t;if(alt(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=ilt(e.stack||e.stackStr||"",{ignoreStackEntries:[]}),e}function jh(t){return Lm()?(l1(t),!0):!1}function Sr(t){return typeof t=="function"?t():U(t)}const clt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ult=Object.prototype.toString,flt=t=>ult.call(t)==="[object Object]",so=()=>{};function Vh(t,e){function r(...o){return new Promise((s,u)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(u)})}return r}const zy=t=>t();function Iy(t,e={}){let r,o,s=so;const u=h=>{clearTimeout(h),s(),s=so};return h=>{const d=Sr(t),g=Sr(e.maxWait);return r&&u(r),d<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=e.rejectOnCancel?b:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},d)})}}function hlt(t,e=!0,r=!0,o=!1){let s=0,u,f=!0,h=so,d;const g=()=>{u&&(clearTimeout(u),u=void 0,h(),h=so)};return b=>{const w=Sr(t),S=Date.now()-s,P=()=>d=b();return g(),w<=0?(s=Date.now(),P()):(S>w&&(r||!f)?(s=Date.now(),P()):e&&(d=new Promise((A,L)=>{h=o?L:A,u=setTimeout(()=>{s=Date.now(),f=!0,A(P()),g()},Math.max(0,w-S))})),!r&&!u&&(u=setTimeout(()=>f=!0,w)),f=!1,d)}}function dlt(t=zy){const e=Zt(!0);function r(){e.value=!1}function o(){e.value=!0}const s=(...u)=>{e.value&&t(...u)};return{isActive:Lc(e),pause:r,resume:o,eventFilter:s}}function plt(...t){if(t.length!==1)return wh(...t);const e=t[0];return typeof e=="function"?Lc(P1(()=>({get:e,set:so}))):Zt(e)}function Vv(t,e=200,r={}){return Vh(Iy(e,r),t)}function glt(t,e=200,r=!1,o=!0,s=!1){return Vh(hlt(e,r,o,s),t)}function vlt(t,e=200,r=!0,o=!0){if(e<=0)return t;const s=Zt(t.value),u=glt(()=>{s.value=t.value},e,r,o);return Re(t,()=>u()),s}function Fy(t,e,r={}){const{eventFilter:o=zy,...s}=r;return Re(t,Vh(o,e),s)}function qy(t,e,r={}){const{eventFilter:o,...s}=r,{eventFilter:u,pause:f,resume:h,isActive:d}=dlt(o);return{stop:Fy(t,e,{...s,eventFilter:u}),pause:f,resume:h,isActive:d}}function Gh(t,e=!0){Pl()?ms(t):e?t():Br(t)}function mlt(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,s=Le(t),u=Zt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Sr(r);return u.value=u.value===d?Sr(o):d,u.value}}return s?f:[u,f]}function ylt(t,e,r={}){const{debounce:o=0,maxWait:s=void 0,...u}=r;return Fy(t,e,{...u,eventFilter:Iy(o,{maxWait:s})})}function blt(t,e,r){const o=Re(t,(...s)=>(Br(()=>o()),e(...s)),r);return o}function wlt(t,e,r){let o;Le(r)?o={evaluating:r}:o=r||{};const{lazy:s=!1,evaluating:u=void 0,shallow:f=!0,onError:h=so}=o,d=Zt(!s),g=f?vs(e):Zt(e);let v=0;return Ch(async b=>{if(!d.value)return;v++;const w=v;let S=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const P=await t(A=>{b(()=>{u&&(u.value=!1),S||A()})});w===v&&(g.value=P)}catch(P){h(P)}finally{u&&w===v&&(u.value=!1),S=!0}}),s?xt(()=>(d.value=!0,g.value)):g}function fc(t){var e;const r=Sr(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Vr=clt?window:void 0;function fs(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=Vr):[e,r,o,s]=t,!e)return so;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,b,w,S)=>(v.addEventListener(b,w,S),()=>v.removeEventListener(b,w,S)),d=Re(()=>[fc(e),Sr(s)],([v,b])=>{if(f(),!v)return;const w=flt(b)?{...b}:b;u.push(...r.flatMap(S=>o.map(P=>h(v,S,P,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return jh(g),g}function xlt(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function _lt(...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=Vr,eventName:u="keydown",passive:f=!1,dedupe:h=!1}=o,d=xlt(e);return fs(s,u,v=>{v.repeat&&Sr(h)||d(v)&&r(v)},f)}function Slt(){const t=Zt(!1);return Pl()&&ms(()=>{t.value=!0}),t}function Hy(t){const e=Slt();return xt(()=>(e.value,!!t()))}function By(t,e={}){const{window:r=Vr}=e,o=Hy(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const u=Zt(!1),f=g=>{u.value=g.matches},h=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},d=Ch(()=>{o.value&&(h(),s=r.matchMedia(Sr(t)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),u.value=s.matches)});return jh(()=>{d(),h(),s=void 0}),u}const Ma=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Na="__vueuse_ssr_handlers__",klt=Clt();function Clt(){return Na in Ma||(Ma[Na]=Ma[Na]||{}),Ma[Na]}function Wy(t,e){return klt[t]||e}function Tlt(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 Elt={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()}},Gv="vueuse-storage";function Llt(t,e,r,o={}){var s;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:b=Vr,eventFilter:w,onError:S=nt=>{console.error(nt)},initOnMounted:P}=o,A=(v?vs:Zt)(typeof e=="function"?e():e);if(!r)try{r=Wy("getDefaultStorage",()=>{var nt;return(nt=Vr)==null?void 0:nt.localStorage})()}catch(nt){S(nt)}if(!r)return A;const L=Sr(e),T=Tlt(L),M=(s=o.serializer)!=null?s:Elt[T],{pause:R,resume:E}=qy(A,()=>B(A.value),{flush:u,deep:f,eventFilter:w});return b&&h&&Gh(()=>{fs(b,"storage",Y),fs(b,Gv,ht),P&&Y()}),P||Y(),A;function B(nt){try{if(nt==null)r.removeItem(t);else{const at=M.write(nt),pt=r.getItem(t);pt!==at&&(r.setItem(t,at),b&&b.dispatchEvent(new CustomEvent(Gv,{detail:{key:t,oldValue:pt,newValue:at,storageArea:r}})))}}catch(at){S(at)}}function K(nt){const at=nt?nt.newValue:r.getItem(t);if(at==null)return d&&L!==null&&r.setItem(t,M.write(L)),L;if(!nt&&g){const pt=M.read(at);return typeof g=="function"?g(pt,L):T==="object"&&!Array.isArray(pt)?{...L,...pt}:pt}else return typeof at!="string"?at:M.read(at)}function ht(nt){Y(nt.detail)}function Y(nt){if(!(nt&&nt.storageArea!==r)){if(nt&&nt.key==null){A.value=L;return}if(!(nt&&nt.key!==t)){R();try{(nt==null?void 0:nt.newValue)!==M.write(A.value)&&(A.value=K(nt))}catch(at){S(at)}finally{nt?Br(E):E()}}}}}function Alt(t){return By("(prefers-color-scheme: dark)",t)}function Mlt(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:s=Vr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g,disableTransition:v=!0}=t,b={auto:"",light:"light",dark:"dark",...t.modes||{}},w=Alt({window:s}),S=xt(()=>w.value?"dark":"light"),P=d||(f==null?plt(o):Llt(f,o,u,{window:s,listenToStorageChanges:h})),A=xt(()=>P.value==="auto"?S.value:P.value),L=Wy("updateHTMLAttrs",(E,B,K)=>{const ht=typeof E=="string"?s==null?void 0:s.document.querySelector(E):fc(E);if(!ht)return;let Y;if(v){Y=s.document.createElement("style");const nt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Y.appendChild(document.createTextNode(nt)),s.document.head.appendChild(Y)}if(B==="class"){const nt=K.split(/\s/g);Object.values(b).flatMap(at=>(at||"").split(/\s/g)).filter(Boolean).forEach(at=>{nt.includes(at)?ht.classList.add(at):ht.classList.remove(at)})}else ht.setAttribute(B,K);v&&(s.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function T(E){var B;L(e,r,(B=b[E])!=null?B:E)}function M(E){t.onChanged?t.onChanged(E,T):T(E)}Re(A,M,{flush:"post",immediate:!0}),Gh(()=>M(A.value));const R=xt({get(){return g?P.value:A.value},set(E){P.value=E}});try{return Object.assign(R,{store:P,system:S,state:A})}catch{return R}}function Nlt(t={}){const{valueDark:e="dark",valueLight:r=""}=t,o=Mlt({...t,onChanged:(u,f)=>{var h;t.onChanged?(h=t.onChanged)==null||h.call(t,u==="dark",f,u):f(u)},modes:{dark:e,light:r}});return xt({get(){return o.value==="dark"},set(u){const f=u?"dark":"light";o.system.value===f?o.value="auto":o.value=f}})}function Plt(t,e,r={}){const{window:o=Vr,...s}=r;let u;const f=Hy(()=>o&&"ResizeObserver"in o),h=()=>{u&&(u.disconnect(),u=void 0)},d=xt(()=>Array.isArray(t)?t.map(b=>fc(b)):[fc(t)]),g=Re(d,b=>{if(h(),f.value&&o){u=new ResizeObserver(e);for(const w of b)w&&u.observe(w,s)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{h(),g()};return jh(v),{isSupported:f,stop:v}}function Olt(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:u=!0,window:f=Vr}=e;if(!f)return Un(r);const h=Un({});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 R=f.location.hash||"#",E=R.indexOf("?");return E>0?`${R.slice(0,E)}${M?`?${M}`:""}`:`${R}${M?`?${M}`:""}`}function v(){return new URLSearchParams(d())}function b(T){const M=new Set(Object.keys(h));for(const R of T.keys()){const E=T.getAll(R);h[R]=E.length>1?E:T.get(R)||"",M.delete(R)}Array.from(M).forEach(R=>delete h[R])}const{pause:w,resume:S}=qy(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(M=>{const R=h[M];Array.isArray(R)?R.forEach(E=>T.append(M,E)):o&&R==null||s&&!R?T.delete(M):T.set(M,R)}),P(T)},{deep:!0});function P(T,M){w(),M&&b(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),S()}function A(){u&&P(v(),!0)}fs(f,"popstate",A,!1),t!=="history"&&fs(f,"hashchange",A,!1);const L=v();return L.keys().next().value?b(L):Object.assign(h,r),h}function Dlt(t={}){const{window:e=Vr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:u=!0}=t,f=Zt(r),h=Zt(o),d=()=>{e&&(u?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(d(),Gh(d),fs("resize",d,{passive:!0}),s){const g=By("(orientation: portrait)");Re(g,()=>d())}return{width:f,height:h}}const Uy=Olt("hash",{initialValue:{file:"",view:null}}),yr=wh(Uy,"file"),er=wh(Uy,"view");var In=Uint8Array,Uo=Uint16Array,$lt=Int32Array,jy=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]),Vy=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]),Rlt=new In([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gy=function(t,e){for(var r=new Uo(31),o=0;o<31;++o)r[o]=e+=1<>1|(xe&21845)<<1;pi=(pi&52428)>>2|(pi&13107)<<2,pi=(pi&61680)>>4|(pi&3855)<<4,Gf[xe]=((pi&65280)>>8|(pi&255)<<8)>>1}var dl=function(t,e,r){for(var o=t.length,s=0,u=new Uo(e);s>d]=g}else for(h=new Uo(o),s=0;s>15-t[s]);return h},Rl=new In(288);for(var xe=0;xe<144;++xe)Rl[xe]=8;for(var xe=144;xe<256;++xe)Rl[xe]=9;for(var xe=256;xe<280;++xe)Rl[xe]=7;for(var xe=280;xe<288;++xe)Rl[xe]=8;var Yy=new In(32);for(var xe=0;xe<32;++xe)Yy[xe]=5;var qlt=dl(Rl,9,1),Hlt=dl(Yy,5,1),sf=function(t){for(var e=t[0],r=1;re&&(e=t[r]);return e},nr=function(t,e,r){var o=e/8|0;return(t[o]|t[o+1]<<8)>>(e&7)&r},lf=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},Blt=function(t){return(t+7)/8|0},Zy=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))},Wlt=["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||Wlt[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,Tn),!r)throw o;return o},Kh=function(t,e,r,o){var s=t.length,u=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.length;if(Et>$){var I=new In(Math.max($*2,Et));I.set(r),r=I}},v=e.f||0,b=e.p||0,w=e.b||0,S=e.l,P=e.d,A=e.m,L=e.n,T=s*8;do{if(!S){v=nr(t,b,1);var M=nr(t,b+1,3);if(b+=3,M)if(M==1)S=qlt,P=Hlt,A=9,L=5;else if(M==2){var K=nr(t,b,31)+257,ht=nr(t,b+10,15)+4,Y=K+nr(t,b+5,31)+1;b+=14;for(var nt=new In(Y),at=new In(19),pt=0;pt>4;if(R<16)nt[pt++]=R;else{var F=0,H=0;for(R==16?(H=3+nr(t,b,3),b+=2,F=nt[pt-1]):R==17?(H=3+nr(t,b,7),b+=3):R==18&&(H=11+nr(t,b,127),b+=7);H--;)nt[pt++]=F}}var Q=nt.subarray(0,K),yt=nt.subarray(K);A=sf(Q),L=sf(yt),S=dl(Q,A,1),P=dl(yt,L,1)}else Tn(1);else{var R=Blt(b)+4,E=t[R-4]|t[R-3]<<8,B=R+E;if(B>s){d&&Tn(0);break}h&&g(w+E),r.set(t.subarray(R,B),w),e.b=w+=E,e.p=b=B*8,e.f=v;continue}if(b>T){d&&Tn(0);break}}h&&g(w+131072);for(var At=(1<>4;if(b+=F&15,b>T){d&&Tn(0);break}if(F||Tn(2),Jt<256)r[w++]=Jt;else if(Jt==256){Ht=b,S=null;break}else{var Qt=Jt-254;if(Jt>264){var pt=Jt-257,Gt=jy[pt];Qt=nr(t,b,(1<>4;Tt||Tn(3),b+=Tt&15;var yt=Flt[j];if(j>3){var Gt=Vy[j];yt+=lf(t,b)&(1<T){d&&Tn(0);break}h&&g(w+131072);var rt=w+Qt;if(w>3&1)+(e>>4&1);o>0;o-=!t[r++]);return r+(e&2)},Vlt=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Glt=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 Klt(t,e){return Kh(t,{i:2},e&&e.out,e&&e.dictionary)}function Xlt(t,e){var r=jlt(t);return r+8>t.length&&Tn(6,"invalid gzip data"),Kh(t.subarray(r,-8),{i:2},e&&e.out||new In(Vlt(t)),e&&e.dictionary)}function Ylt(t,e){return Kh(t.subarray(Glt(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function Zlt(t,e){return t[0]==31&&t[1]==139&&t[2]==8?Xlt(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Klt(t,e):Ylt(t,e)}var Kf=typeof TextDecoder<"u"&&new TextDecoder,Qlt=0;try{Kf.decode(Ult,{stream:!0}),Qlt=1}catch{}var Jlt=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:Zy(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 tat(t,e){if(e){for(var r="",o=0;o{},hn=()=>Promise.resolve();function eat(){const t=Un({state:new ly,waitForConnection:f,reconnect:s,ws:new EventTarget});t.state.filesMap=Un(t.state.filesMap),t.state.idMap=Un(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:af,onCollected:hn,onTaskUpdate:af,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:af,saveTestFile:hn,getProvidedContext:()=>({})};t.rpc=r;let o;function s(){u()}async function u(){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 b=new Uint8Array(await h.arrayBuffer()),w=tat(Zlt(b));e=Uf(w)}else e=Uf(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}u();function f(){return o}return t}const kl=Zt("idle"),yi=Zt([]),je=function(){return jr?eat():fT(pT,{reactive:Un,handlers:{onTaskUpdate(){kl.value="running"},onFinished(e,r){kl.value="idle",yi.value=(r||[]).map(Ry)}}})}(),Xh=vs({}),Zi=Zt("CONNECTING"),mn=xt(()=>je.state.getFiles()),Se=xt(()=>mn.value.find(t=>t.id===yr.value)),Qy=xt(()=>Hh(Se.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function hc(t){return mn.value.find(e=>e.id===t)}const nat=xt(()=>Zi.value==="OPEN"),cf=xt(()=>Zi.value==="CONNECTING");xt(()=>Zi.value==="CLOSED");function rat(t=je.state.getFiles()){return Jy(t)}function Jy(t){return t.forEach(e=>{delete e.result,Hh(e).forEach(r=>delete r.result)}),je.rpc.rerun(t.map(e=>e.filepath))}function iat(){if(Se.value)return Jy([Se.value])}Re(()=>je.ws,t=>{Zi.value=jr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{Zi.value="OPEN",je.state.filesMap.clear();const[e,r,o]=await Promise.all([je.rpc.getFiles(),je.rpc.getConfig(),je.rpc.getUnhandledErrors()]);je.state.collectFiles(e),yi.value=(o||[]).map(Ry),Xh.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Zi.value==="CONNECTING"&&(Zi.value="CLOSED")},1e3)})},{immediate:!0});const oat={"text-2xl":""},sat=tt("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),lat=ie({__name:"ConnectionOverlay",setup(t){return(e,r)=>U(nat)?Vt("",!0):(st(),kt("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(je).reconnect&&U(je).reconnect(...o))},[tt("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(U(cf)?"animate-pulse":"")},[tt("div",{text:"5xl",class:ve(U(cf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),tt("div",oat,Ut(U(cf)?"Connecting...":"Disconnected"),1),sat],2)]))}}),zl=Nlt(),aat=mlt(zl),cat={class:"scrolls scrolls-rounded task-error"},uat=["onClickPassive"],fat=["innerHTML"],hat=ie({__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(()=>Uh(zl.value)),s=xt(()=>{var f;return!!((f=e.error)!=null&&f.diff)}),u=xt(()=>e.error.diff?o.value.toHtml(e.error.diff):void 0);return(f,h)=>{const d=uo("tooltip");return st(),kt("div",cat,[tt("pre",null,[tt("b",null,Ut(f.error.name||f.error.nameStr),1),me(": "+Ut(f.error.message),1)]),(st(!0),kt(ne,null,Rn(f.error.stacks,(g,v)=>(st(),kt("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(llt)(g.file,f.filename)?nn((st(),kt("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:b=>U($y)(g.file,g.line,g.column)},null,40,uat)),[[d,"Open in Editor",void 0,{bottom:!0}]]):Vt("",!0)]))),128)),U(s)?(st(),kt("pre",{key:0,"data-testid":"diff",innerHTML:U(u)},null,8,fat)):Vt("",!0)])}}}),dat=fo(hat,[["__scopeId","data-v-93ed29fc"]]);function Va(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const pat={"h-full":"",class:"scrolls"},gat={key:0,class:"scrolls scrolls-rounded task-error"},vat=["innerHTML"],mat={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},yat=ie({__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,b,w;let d="";(v=h.message)!=null&&v.includes("\x1B")&&(d=`${h.nameStr||h.name}: ${f.toHtml(Va(h.message))}`);const g=(b=h.stackStr)==null?void 0:b.includes("\x1B");return(g||(w=h.stack)!=null&&w.includes("\x1B"))&&(d.length>0?d+=f.toHtml(Va(g?h.stackStr:h.stack)):d=`${h.nameStr||h.name}: ${h.message}${f.toHtml(Va(g?h.stackStr:h.stack))}`),d.length>0?d:null}function s(f,h){const d=Uh(f);return h.map(g=>{var w;const v=g.result;if(!v)return g;const b=(w=v.errors)==null?void 0:w.map(S=>o(d,S)).filter(S=>S!=null).join("

");return b!=null&&b.length&&(v.htmlError=b),g})}const u=xt(()=>{var v,b;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((b=d==null?void 0:d.errors)==null?void 0:b[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(zl.value,h):h});return(f,h)=>(st(),kt("div",pat,[U(u).length?(st(!0),kt(ne,{key:0},Rn(U(u),d=>{var g,v,b;return st(),kt("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(),kt("div",gat,[tt("pre",{innerHTML:d.result.htmlError},null,8,vat)])):(b=d.result)!=null&&b.errors?(st(!0),kt(ne,{key:1},Rn(d.result.errors,(w,S)=>{var P;return st(),te(dat,{key:S,error:w,filename:(P=f.file)==null?void 0:P.name,root:U(Xh).root},null,8,["error","filename","root"])}),128)):Vt("",!0)],4)])}),128)):(st(),kt("div",mat," All tests passed in this file "))]))}}),bat=fo(yat,[["__scopeId","data-v-5e7bb715"]]),wat={border:"b base","p-4":""},xat=["innerHTML"],_at=ie({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function e(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(st(),kt("div",wat,[tt("div",{"text-xs":"","mb-1":"",class:ve(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,xat)]))}}),dc=xt(()=>mn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),pc=xt(()=>mn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Yh=xt(()=>mn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));xt(()=>mn.value.filter(t=>!dc.value.includes(t)&&!pc.value.includes(t)&&!Yh.value.includes(t)));xt(()=>Yh.value.filter(t=>t.mode==="skip"));const Kv=xt(()=>mn.value.filter(Wc));xt(()=>Yh.value.filter(t=>t.mode==="todo"));const Sat=xt(()=>kl.value==="idle"),Vc=xt(()=>rb(mn.value)),tb=xt(()=>Vc.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),eb=xt(()=>Vc.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),nb=xt(()=>Vc.value.filter(t=>t.mode==="skip"||t.mode==="todo")),kat=xt(()=>nb.value.filter(t=>t.mode==="skip")),Cat=xt(()=>nb.value.filter(t=>t.mode==="todo"));xt(()=>tb.value.length+eb.value.length);const Tat=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},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function Eat(t){return t=t||[],Array.isArray(t)?t:[t]}function Xv(t){return t.type==="test"||t.type==="custom"}function rb(t){const e=[],r=Eat(t);for(const o of r)if(Xv(o))e.push(o);else for(const s of o.tasks)Xv(s)?e.push(s):e.push(...rb(s));return e}const Lat={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Aat={key:1,p6:""},Mat=tt("pre",{inline:""},"console.log(foo)",-1),Nat=ie({__name:"ViewConsoleOutput",setup(t){const e=xt(()=>{const o=Qy.value;if(o){const s=Uh(zl.value);return o.map(({taskId:u,type:f,time:h,content:d})=>({taskId:u,type:f,time:h,content:s.toHtml(Va(d))}))}});function r(o){const s=o&&je.state.idMap.get(o);return(s?uT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const u=_at;return(f=U(e))!=null&&f.length?(st(),kt("div",Lat,[(st(!0),kt(ne,null,Rn(U(e),({taskId:h,type:d,time:g,content:v})=>(st(),kt("div",{key:h,"font-mono":""},[Ft(u,{"task-name":r(h),type:d,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(st(),kt("p",Aat,[me(" Log something in your test and it would print here. (e.g. "),Mat,me(") ")]))}}});var ib={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),d=u||f||h,g=d&&(u?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),b=v&&/Qt\/\d+\.\d+/.test(r),w=!h&&/Chrome\/(\d+)/.exec(r),S=w&&+w[1],P=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),M=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),E=M||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=M||/Mac/.test(o),K=/\bCrOS\b/.test(r),ht=/win/i.test(o),Y=P&&r.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(P=!1,v=!0);var nt=B&&(b||P&&(Y==null||Y<12.11)),at=s||d&&g>=9;function pt(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var gt=function(n,i){var a=n.className,l=pt(i).exec(a);if(l){var c=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(c?l[1]+c:"")}};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 c=document.createElement(n);if(a&&(c.className=a),l&&(c.style.cssText=l),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var p=0;p=i)return m+(i-p);m+=y-p,m+=a-m%a,p=y+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-c);if(c+=p-l,c+=a-c%a,l=p+1,c>=i)return l}}var St=[""];function mt(n){for(;St.length<=n;)St.push(ct(St)+" ");return St[n]}function ct(n){return n[n.length-1]}function ft(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 fe=/[\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&&fe.test(n)}function rn(n,i,a){for(;(a<0?i>0:ia?-1:1;;){if(i==a)return i;var c=(i+a)/2,p=l<0?Math.ceil(c):Math.floor(c);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 c=!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),c=!0)}c||l(i,a,"ltr")}var cr=null;function Ae(n,i,a){var l;cr=null;for(var c=0;ci)return c;p.to==i&&(p.from!=p.to&&a=="before"?l=c:cr=c),p.from==i&&(p.from!=p.to&&a!="before"?l=c:cr=c)}return l??cr}var xn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,p=/[LRr]/,m=/[Lb1n]/,y=/[1n]/;function x(_,N,D){this.level=_,this.from=N,this.to=D}return function(_,N){var D=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!l.test(_))return!1;for(var W=_.length,q=[],Z=0;Z-1&&(l[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function ke(n,i){var a=Cr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c0}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 ho(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function on(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Yr(n){Xe(n),ho(n)}function ws(n){return n.target||n.srcElement}function Gn(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var Yc=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),po;function Bl(n){if(po==null){var i=k("span","​");z(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(po=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var a=po?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var xs;function Zr(n){if(xs!=null)return xs;var i=z(n,document.createTextNode("AخA")),a=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return G(n),!a||a.left==a.right?!1:xs=l.right-a.right<3}var Hn=` b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var c=n.indexOf(` `,i);c==-1&&(c=n.length);var p=n.slice(i,n.charAt(c-1)=="\r"?c-1:c),m=p.indexOf("\r");m!=-1?(a.push(p.slice(0,m)),i+=m+1):(a.push(p),i=c+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Qr=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},Wl=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Kn=null;function Zc(n){if(Kn!=null)return Kn;var i=z(n,k("span","x")),a=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return Kn=Math.abs(a.left-l.left)>1}var go={},Xn={};function Yn(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),go[n]=i}function Pi(n,i){Xn[n]=i}function vo(n){if(typeof n=="string"&&Xn.hasOwnProperty(n))n=Xn[n];else if(n&&typeof n.name=="string"&&Xn.hasOwnProperty(n.name)){var i=Xn[n.name];typeof i=="string"&&(i={name:i}),n=Dt(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return vo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return vo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function mo(n,i){i=vo(i);var a=go[i.name];if(!a)return mo(n,"text/plain");var l=a(n,i);if(Jr.hasOwnProperty(i.name)){var c=Jr[i.name];for(var p in c)c.hasOwnProperty(p)&&(l.hasOwnProperty(p)&&(l["_"+p]=l[p]),l[p]=c[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 Jr={};function yo(n,i){var a=Jr.hasOwnProperty(n)?Jr[n]:Jr[n]={};rt(i,a)}function ur(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var c=i[l];c instanceof Array&&(c=c.concat([])),a[l]=c}return a}function _s(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 bo(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 c=a.children[l],p=c.chunkSize();if(i=n.first&&ia?X(a,Pt(n,a).text.length):Vb(i,Pt(n,i.line).text.length)}function Vb(n,i){var a=n.ch;return a==null||a>i?X(n.line,i):a<0?X(n.line,0):n}function fd(n,i){for(var a=[],l=0;lthis.maxLookAhead&&(this.maxLookAhead=n),i},fr.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}},fr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fr.fromSaved=function(n,i,a){return i instanceof Ul?new fr(n,ur(n.mode,i.state),a,i.lookAhead):new fr(n,ur(n.mode,i),a)},fr.prototype.save=function(n){var i=n!==!1?ur(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ul(i,this.maxLookAhead):i};function hd(n,i,a,l){var c=[n.state.modeGen],p={};yd(n,i.text,n.doc.mode,a,function(_,N){return c.push(_,N)},p,l);for(var m=a.state,y=function(_){a.baseTokens=c;var N=n.state.overlays[_],D=1,W=0;a.state=!0,yd(n,i.text,N.mode,a,function(q,Z){for(var it=D;Wq&&c.splice(D,1,q,c[D+1],vt),D+=2,W=Math.min(q,vt)}if(Z)if(N.opaque)c.splice(it,D-it,q,"overlay "+Z),D=it+2;else for(;itn.options.maxHighlightLength&&ur(n.doc.mode,l.state),p=hd(n,i,l);c&&(l.state=c),i.stateAfter=l.save(!c),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 ks(n,i,a){var l=n.doc,c=n.display;if(!l.mode.startState)return new fr(l,!0,i);var p=Gb(n,i,a),m=p>l.first&&Pt(l,p-1).stateAfter,y=m?fr.fromSaved(l,m,p):new fr(l,bo(l.mode),p);return l.iter(p,i,function(x){Qc(n,x.text,y);var _=y.line;x.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var gd=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function vd(n,i,a,l){var c=n.doc,p=c.mode,m;i=Wt(c,i);var y=Pt(c,i.line),x=ks(n,i.line,a),_=new Te(y.text,n.options.tabSize,x),N;for(l&&(N=[]);(l||_.posn.options.maxHighlightLength?(y=!1,m&&Qc(n,i,l,N.pos),N.pos=i.length,D=null):D=md(Jc(a,N,l.state,W),p),W){var q=W[0].name;q&&(D="m-"+(D?q+" "+D:q))}if(!y||_!=D){for(;xm;--y){if(y<=p.first)return p.first;var x=Pt(p,y-1),_=x.stateAfter;if(_&&(!a||y+(_ instanceof Ul?_.lookAhead:0)<=p.modeFrontier))return y;var N=lt(x.text,null,n.options.tabSize);(c==null||l>N)&&(c=y-1,l=N)}return c}function Kb(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontiera;l--){var c=Pt(n,l).stateAfter;if(c&&(!(c instanceof Ul)||l+c.lookAhead=i:p.to>i);(l||(l=[])).push(new jl(m,p.from,x?null:p.to))}}return l}function tw(n,i,a){var l;if(n)for(var c=0;c=i:p.to>i);if(y||p.from==i&&m.type=="bookmark"&&(!a||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from0&&y)for(var Lt=0;Lt0)){var N=[x,1],D=_t(_.from,y.from),W=_t(_.to,y.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:_.from,to:y.from}),(W>0||!m.inclusiveRight&&!W)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),x+=N.length-3}}return c}function xd(n){var i=n.markedSpans;if(i){for(var a=0;ai)&&(!l||eu(l,p.marker)<0)&&(l=p.marker)}return l}function Cd(n,i,a,l,c){var p=Pt(n,i),m=Er&&p.markedSpans;if(m)for(var y=0;y=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?_t(_.to,a)>=0:_t(_.to,a)>0)||N>=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?_t(_.from,l)<=0:_t(_.from,l)<0)))return!0}}}function Zn(n){for(var i;i=kd(n);)n=i.find(-1,!0).line;return n}function rw(n){for(var i;i=Kl(n);)n=i.find(1,!0).line;return n}function iw(n){for(var i,a;i=Kl(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function nu(n,i){var a=Pt(n,i),l=Zn(a);return a==l?i:C(l)}function Td(n,i){if(i>n.lastLine())return i;var a=Pt(n,i),l;if(!ti(n,a))return i;for(;l=Kl(a);)a=l.find(1,!0).line;return C(a)+1}function ti(n,i){var a=Er&&i.markedSpans;if(a){for(var l=void 0,c=0;ci.maxLineLength&&(i.maxLineLength=c,i.maxLine=l)})}var xo=function(n,i,a){this.text=n,_d(this,i),this.height=a?a(this):1};xo.prototype.lineNo=function(){return C(this)},Vn(xo);function ow(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),xd(n),_d(n,a);var c=l?l(n):1;c!=n.height&&On(n,c)}function sw(n){n.parent=null,xd(n)}var lw={},aw={};function Ed(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?aw:lw;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ld(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 c=0;c<=(i.rest?i.rest.length:0);c++){var p=c?i.rest[c-1]:i.line,m=void 0;l.pos=0,l.addToken=uw,Zr(n.display.measure)&&(m=Yt(p,n.doc.direction))&&(l.addToken=hw(l.addToken,m)),l.map=[];var y=i!=n.display.externalMeasured&&C(p);dw(p,l,dd(n,p,y)),p.styleClasses&&(p.styleClasses.bgClass&&(l.bgClass=qt(p.styleClasses.bgClass,l.bgClass||"")),p.styleClasses.textClass&&(l.textClass=qt(p.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Bl(n.display.measure))),c==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=qt(l.pre.className,l.textClass||"")),l}function cw(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function uw(n,i,a,l,c,p,m){if(i){var y=n.splitSpaces?fw(i,n.trailingSpace):i,x=n.cm.state.specialChars,_=!1,N;if(!x.test(i))n.col+=i.length,N=document.createTextNode(y),n.map.push(n.pos,n.pos+i.length,N),d&&g<9&&(_=!0),n.pos+=i.length;else{N=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(y.slice(D,D+q));d&&g<9?N.appendChild(k("span",[Z])):N.appendChild(Z),n.map.push(n.pos,n.pos+q,Z),n.col+=q,n.pos+=q}if(!W)break;D+=q+1;var it=void 0;if(W[0]==" "){var vt=n.cm.options.tabSize,bt=vt-n.col%vt;it=N.appendChild(k("span",mt(bt),"cm-tab")),it.setAttribute("role","presentation"),it.setAttribute("cm-text"," "),n.col+=bt}else W[0]=="\r"||W[0]==` `?(it=N.appendChild(k("span",W[0]=="\r"?"␍":"␤","cm-invalidchar")),it.setAttribute("cm-text",W[0]),n.col+=1):(it=n.cm.options.specialCharPlaceholder(W[0]),it.setAttribute("cm-text",W[0]),d&&g<9?N.appendChild(k("span",[it])):N.appendChild(it),n.col+=1);n.map.push(n.pos,n.pos+1,it),n.pos++}}if(n.trailingSpace=y.charCodeAt(i.length-1)==32,a||l||c||_||p||m){var Ct=a||"";l&&(Ct+=l),c&&(Ct+=c);var wt=k("span",[N],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(N)}}function fw(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",c=0;c_&&D.from<=_));W++);if(D.to>=N)return n(a,l,c,p,m,y,x);n(a,l.slice(0,D.to-_),c,p,null,y,x),p=null,l=l.slice(D.to-_),_=D.to}}}function Ad(n,i,a,l){var c=!l&&a.widgetNode;c&&n.map.push(n.pos,n.pos+i,c),!l&&n.cm.display.input.needsContentAttribute&&(c||(c=n.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",a.id)),c&&(n.cm.display.input.setUneditable(c),n.content.appendChild(c)),n.pos+=i,n.trailingSpace=!1}function dw(n,i,a){var l=n.markedSpans,c=n.text,p=0;if(!l){for(var m=1;mx||Xt.collapsed&&Ot.to==x&&Ot.from==x)){if(Ot.to!=null&&Ot.to!=x&&q>Ot.to&&(q=Ot.to,it=""),Xt.className&&(Z+=" "+Xt.className),Xt.css&&(W=(W?W+";":"")+Xt.css),Xt.startStyle&&Ot.from==x&&(vt+=" "+Xt.startStyle),Xt.endStyle&&Ot.to==q&&(Lt||(Lt=[])).push(Xt.endStyle,Ot.to),Xt.title&&((Ct||(Ct={})).title=Xt.title),Xt.attributes)for(var ge in Xt.attributes)(Ct||(Ct={}))[ge]=Xt.attributes[ge];Xt.collapsed&&(!bt||eu(bt.marker,Xt)<0)&&(bt=Ot)}else Ot.from>x&&q>Ot.from&&(q=Ot.from)}if(Lt)for(var We=0;We=y)break;for(var kn=Math.min(y,q);;){if(N){var cn=x+N.length;if(!bt){var Ne=cn>kn?N.slice(0,kn-x):N;i.addToken(i,Ne,D?D+Z:Z,vt,x+Ne.length==q?it:"",W,Ct)}if(cn>=kn){N=N.slice(kn-x),x=kn;break}x=cn,vt=""}N=c.slice(p,p=a[_++]),D=Ed(a[_++],i.cm.options)}}}function Md(n,i,a){this.line=i,this.rest=iw(i),this.size=this.rest?C(ct(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ti(n,i)}function Yl(n,i,a){for(var l=[],c,p=i;p2&&p.push((x.bottom+_.top)/2-a.top)}}p.push(a.bottom-a.top)}}function zd(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[c],cache:n.measure.caches[c],before:!0}}}function kw(n,i){i=Zn(i);var a=C(i),l=n.display.externalMeasured=new Md(n.doc,i,a);l.lineN=a;var c=l.built=Ld(n,l);return l.text=c.pre,z(n.display.lineMeasure,c.pre),l}function Id(n,i,a,l){return dr(n,So(n,i),a,l)}function au(n,i){if(i>=n.display.viewFrom&&i=a.lineN&&ii)&&(p=x-y,c=p-1,i>=x&&(m="right")),c!=null){if(l=n[_+2],y==x&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&c==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)l=n[(_-=3)+2],m="left";if(a=="right"&&c==x-y)for(;_=0&&(a=n[c]).left==a.right;c--);return a}function Tw(n,i,a,l){var c=qd(i.map,a,l),p=c.node,m=c.start,y=c.end,x=c.collapse,_;if(p.nodeType==3){for(var N=0;N<4;N++){for(;m&&se(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y0&&(x=l="right");var D;n.options.lineWrapping&&(D=p.getClientRects()).length>1?_=D[l=="right"?D.length-1:0]:_=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!_||!_.left&&!_.right)){var W=p.parentNode.getClientRects()[0];W?_={left:W.left,right:W.left+Co(n.display),top:W.top,bottom:W.bottom}:_=Fd}for(var q=_.top-i.rect.top,Z=_.bottom-i.rect.top,it=(q+Z)/2,vt=i.view.measure.heights,bt=0;bt=l.text.length?(x=l.text.length,_="before"):x<=0&&(x=0,_="after"),!y)return m(_=="before"?x-1:x,_=="before");function N(Z,it,vt){var bt=y[it],Ct=bt.level==1;return m(vt?Z-1:Z,Ct!=vt)}var D=Ae(y,x,_),W=cr,q=N(x,D,_=="before");return W!=null&&(q.other=N(x,W,_!="before")),q}function Vd(n,i){var a=0;i=Wt(n.doc,i),n.options.lineWrapping||(a=Co(n.display)*i.ch);var l=Pt(n.doc,i.line),c=Lr(l)+Zl(n.display);return{left:a,right:a,top:c,bottom:c+l.height}}function uu(n,i,a,l,c){var p=X(n,i,a);return p.xRel=c,l&&(p.outside=l),p}function fu(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return uu(l.first,0,null,-1,-1);var c=O(l,a),p=l.first+l.size-1;if(c>p)return uu(l.first+l.size-1,Pt(l,p).text.length,null,1,1);i<0&&(i=0);for(var m=Pt(l,c);;){var y=Lw(n,m,c,i,a),x=nw(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!x)return y;var _=x.find(1);if(_.line==c)return _;m=Pt(l,c=_.line)}}function Gd(n,i,a,l){l-=cu(i);var c=i.text.length,p=Pn(function(m){return dr(n,a,m-1).bottom<=l},c,0);return c=Pn(function(m){return dr(n,a,m).top>l},p,c),{begin:p,end:c}}function Kd(n,i,a,l){a||(a=So(n,i));var c=Ql(n,i,dr(n,a,l),"line").top;return Gd(n,i,a,c)}function hu(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Lw(n,i,a,l,c){c-=Lr(i);var p=So(n,i),m=cu(i),y=0,x=i.text.length,_=!0,N=Yt(i,n.doc.direction);if(N){var D=(n.options.lineWrapping?Mw:Aw)(n,i,a,p,N,l,c);_=D.level!=1,y=_?D.from:D.to-1,x=_?D.to:D.from-1}var W=null,q=null,Z=Pn(function(zt){var Ot=dr(n,p,zt);return Ot.top+=m,Ot.bottom+=m,hu(Ot,l,c,!1)?(Ot.top<=c&&Ot.left<=l&&(W=zt,q=Ot),!0):!1},y,x),it,vt,bt=!1;if(q){var Ct=l-q.left=Lt.bottom?1:0}return Z=rn(i.text,Z,1),uu(a,Z,vt,bt,l-it)}function Aw(n,i,a,l,c,p,m){var y=Pn(function(D){var W=c[D],q=W.level!=1;return hu(Qn(n,X(a,q?W.to:W.from,q?"before":"after"),"line",i,l),p,m,!0)},0,c.length-1),x=c[y];if(y>0){var _=x.level!=1,N=Qn(n,X(a,_?x.from:x.to,_?"after":"before"),"line",i,l);hu(N,p,m,!0)&&N.top>m&&(x=c[y-1])}return x}function Mw(n,i,a,l,c,p,m){var y=Gd(n,i,l,m),x=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,D=null,W=0;W=_||q.to<=x)){var Z=q.level!=1,it=dr(n,l,Z?Math.min(_,q.to)-1:Math.max(x,q.from)).right,vt=itvt)&&(N=q,D=vt)}}return N||(N=c[c.length-1]),N.from_&&(N={from:N.from,to:_,level:N.level}),N}var Di;function ko(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Di==null){Di=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Di.appendChild(document.createTextNode("x")),Di.appendChild(k("br"));Di.appendChild(document.createTextNode("x"))}z(n.measure,Di);var a=Di.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),G(n.measure),a||1}function Co(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(),c=(l.right-l.left)/10;return c>2&&(n.cachedCharWidth=c),c||10}function du(n){for(var i=n.display,a={},l={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var y=n.display.gutterSpecs[m].className;a[y]=p.offsetLeft+p.clientLeft+c,l[y]=p.clientWidth}return{fixedPos:pu(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function pu(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Xd(n){var i=ko(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Co(n.display)-3);return function(c){if(ti(n.doc,c))return 0;var p=0;if(c.widgets)for(var m=0;m0&&(_=Pt(n.doc,x.line).text).length==x.ch){var N=lt(_,_.length,n.options.tabSize)-_.length;x=X(x.line,Math.max(0,Math.round((p-Rd(n.display).left)/Co(n.display))-N))}return x}function Ri(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;li)&&(c.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=c.viewTo)Er&&nu(n.doc,i)c.viewFrom?ni(n):(c.viewFrom+=l,c.viewTo+=l);else if(i<=c.viewFrom&&a>=c.viewTo)ni(n);else if(i<=c.viewFrom){var p=ta(n,a,a+l,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=l):ni(n)}else if(a>=c.viewTo){var m=ta(n,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):ni(n)}else{var y=ta(n,i,i,-1),x=ta(n,a,a+l,1);y&&x?(c.view=c.view.slice(0,y.index).concat(Yl(n,y.lineN,x.lineN)).concat(c.view.slice(x.index)),c.viewTo+=l):ni(n)}var _=c.externalMeasured;_&&(a<_.lineN?_.lineN+=l:i<_.lineN+_.size&&(c.externalMeasured=null))}function ei(n,i,a){n.curOp.viewChanged=!0;var l=n.display,c=n.display.externalMeasured;if(c&&i>=c.lineN&&i=l.viewTo)){var p=l.view[Ri(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Et(m,a)==-1&&m.push(a)}}}function ni(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function ta(n,i,a,l){var c=Ri(n,i),p,m=n.display.view;if(!Er||a==n.doc.first+n.doc.size)return{index:c,lineN:a};for(var y=n.display.viewFrom,x=0;x0){if(c==m.length-1)return null;p=y+m[c].size-i,c++}else p=y-i;i+=p,a+=p}for(;nu(n.doc,a)!=a;){if(c==(l<0?0:m.length-1))return null;a+=l*m[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:a}}function Nw(n,i,a){var l=n.display,c=l.view;c.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Yl(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Yl(n,i,l.viewFrom).concat(l.view):l.viewFroma&&(l.view=l.view.slice(0,Ri(n,a)))),l.viewTo=a}function Yd(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 y=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=l.other.left+"px",y.style.top=l.other.top+"px",y.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ea(n,i){return n.top-i.top||n.left-i.left}function Pw(n,i,a){var l=n.display,c=n.doc,p=document.createDocumentFragment(),m=Rd(n.display),y=m.left,x=Math.max(l.sizerWidth,Oi(n)-l.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function N(wt,Lt,zt,Ot){Lt<0&&(Lt=0),Lt=Math.round(Lt),Ot=Math.round(Ot),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px; top: `+Lt+"px; width: "+(zt??x-wt)+`px; height: `+(Ot-Lt)+"px"))}function D(wt,Lt,zt){var Ot=Pt(c,wt),Xt=Ot.text.length,ge,We;function _e(Ne,un){return Jl(n,X(wt,Ne),"div",Ot,un)}function kn(Ne,un,Ve){var $e=Kd(n,Ot,null,Ne),Pe=un=="ltr"==(Ve=="after")?"left":"right",Ee=Ve=="after"?$e.begin:$e.end-(/\s/.test(Ot.text.charAt($e.end-1))?2:1);return _e(Ee,Pe)[Pe]}var cn=Yt(Ot,c.direction);return wn(cn,Lt||0,zt??Xt,function(Ne,un,Ve,$e){var Pe=Ve=="ltr",Ee=_e(Ne,Pe?"left":"right"),fn=_e(un-1,Pe?"right":"left"),Io=Lt==null&&Ne==0,ai=zt==null&&un==Xt,Ze=$e==0,pr=!cn||$e==cn.length-1;if(fn.top-Ee.top<=3){var Ue=(_?Io:ai)&&Ze,Wu=(_?ai:Io)&&pr,Pr=Ue?y:(Pe?Ee:fn).left,Hi=Wu?x:(Pe?fn:Ee).right;N(Pr,Ee.top,Hi-Pr,Ee.bottom)}else{var Bi,tn,Fo,Uu;Pe?(Bi=_&&Io&&Ze?y:Ee.left,tn=_?x:kn(Ne,Ve,"before"),Fo=_?y:kn(un,Ve,"after"),Uu=_&&ai&&pr?x:fn.right):(Bi=_?kn(Ne,Ve,"before"):y,tn=!_&&Io&&Ze?x:Ee.right,Fo=!_&&ai&&pr?y:fn.left,Uu=_?kn(un,Ve,"after"):x),N(Bi,Ee.top,tn-Bi,Ee.bottom),Ee.bottom0?i.blinker=setInterval(function(){n.hasFocus()||To(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qd(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||bu(n))}function yu(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&To(n))},100)}function bu(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()),mu(n))}function To(n,i){n.state.delayingBlurEvent||(n.state.focused&&(ke(n,"blur",n,i),n.state.focused=!1,gt(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function na(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m.005||q<-.005)&&(cn.display.sizerWidth){var it=Math.ceil(N/Co(n.display));it>n.display.maxLineLength&&(n.display.maxLineLength=it,n.display.maxLine=y.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function Jd(n){if(n.widgets)for(var i=0;i=m&&(p=O(i,Lr(Pt(i,x))-n.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function Ow(n,i){if(!Ce(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),c=null,p=a.wrapper.ownerDocument;if(i.top+l.top<0?c=!0:i.bottom+l.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","​",null,`position: absolute; top: `+(i.top-a.viewOffset-Zl(n.display))+`px; height: `+(i.bottom-i.top+hr(n)+a.barHeight)+`px; left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(c),n.display.lineSpace.removeChild(m)}}}function Dw(n,i,a,l){l==null&&(l=0);var c;!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,y=Qn(n,i),x=!a||a==i?y:Qn(n,a);c={left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-l,right:Math.max(y.left,x.left),bottom:Math.max(y.bottom,x.bottom)+l};var _=wu(n,c),N=n.doc.scrollTop,D=n.doc.scrollLeft;if(_.scrollTop!=null&&(Ps(n,_.scrollTop),Math.abs(n.doc.scrollTop-N)>1&&(m=!0)),_.scrollLeft!=null&&(zi(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function $w(n,i){var a=wu(n,i);a.scrollTop!=null&&Ps(n,a.scrollTop),a.scrollLeft!=null&&zi(n,a.scrollLeft)}function wu(n,i){var a=n.display,l=ko(n.display);i.top<0&&(i.top=0);var c=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,p=lu(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var y=n.doc.height+su(a),x=i.topy-l;if(i.topc+p){var N=Math.min(i.top,(_?y:i.bottom)-p);N!=c&&(m.scrollTop=N)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,W=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,q=Oi(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 xu(n,i){i!=null&&(ia(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Eo(n){ia(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Ns(n,i,a){(i!=null||a!=null)&&ia(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Rw(n,i){ia(n),n.curOp.scrollToPos=i}function ia(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Vd(n,i.from),l=Vd(n,i.to);tp(n,a,l,i.margin)}}function tp(n,i,a,l){var c=wu(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});Ns(n,c.scrollLeft,c.scrollTop)}function Ps(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Su(n,{top:i}),ep(n,i,!0),s&&Su(n),$s(n,100))}function ep(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 zi(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,sp(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Os(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+su(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+hr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Ii=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=c.tabIndex=-1,n(l),n(c),Rt(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Rt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ii.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 c=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+c)+"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}},Ii.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ii.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ii.prototype.zeroWidthHack=function(){var n=B&&!L?"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},Ii.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var c=n.getBoundingClientRect(),p=a=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Ii.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ds=function(){};Ds.prototype.update=function(){return{bottom:0,right:0}},Ds.prototype.setScrollLeft=function(){},Ds.prototype.setScrollTop=function(){},Ds.prototype.clear=function(){};function Lo(n,i){i||(i=Os(n));var a=n.display.barWidth,l=n.display.barHeight;np(n,i);for(var c=0;c<4&&a!=n.display.barWidth||l!=n.display.barHeight;c++)a!=n.display.barWidth&&n.options.lineWrapping&&na(n),np(n,Os(n)),a=n.display.barWidth,l=n.display.barHeight}function np(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 rp={native:Ii,null:Ds};function ip(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&>(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new rp[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"?zi(n,i):Ps(n,i)},n),n.display.scrollbars.addClass&&At(n.display.wrapper,n.display.scrollbars.addClass)}var zw=0;function Fi(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:++zw,markArrays:null},pw(n.curOp)}function qi(n){var i=n.curOp;i&&vw(i,function(a){for(var l=0;l=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new oa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function qw(n){n.updatedDisplay=n.mustUpdate&&_u(n.cm,n.update)}function Hw(n){var i=n.cm,a=i.display;n.updatedDisplay&&na(i),n.barMeasure=Os(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Id(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+hr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Oi(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Bw(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=ks(n,i.highlightFrontier),c=[];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,y=p.text.length>n.options.maxHighlightLength?ur(i.mode,l.state):null,x=hd(n,p,l,!0);y&&(l.state=y),p.styles=x.styles;var _=p.styleClasses,N=x.classes;N?p.styleClasses=N:_&&(p.styleClasses=null);for(var D=!m||m.length!=p.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),W=0;!D&&Wa)return $s(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),c.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&&Yd(n)==0)return!1;lp(n)&&(ni(n),i.dims=du(n));var c=l.first+l.size,p=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(c,i.visible.to+n.options.viewportMargin);a.viewFromm&&a.viewTo-m<20&&(m=Math.min(c,a.viewTo)),Er&&(p=nu(n.doc,p),m=Td(n.doc,m));var y=p!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Nw(n,p,m),a.viewOffset=Lr(Pt(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var x=Yd(n);if(!y&&x==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=Vw(n);return x>4&&(a.lineDiv.style.display="none"),Kw(n,a.updateLineNumbers,i.dims),x>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Gw(_),G(a.cursorDiv),G(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,y&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,$s(n,400)),a.updateLineNumbers=null,!0}function op(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Oi(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+su(n.display)-lu(n),a.top)}),i.visible=ra(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ra(n.display,n.doc,a));if(!_u(n,i))break;na(n);var c=Os(n);Ms(n),Lo(n,c),Cu(n,c),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 Su(n,i){var a=new oa(n,i);if(_u(n,a)){na(n),op(n,a);var l=Os(n);Ms(n),Lo(n,l),Cu(n,l),a.finish()}}function Kw(n,i,a){var l=n.display,c=n.options.lineNumbers,p=l.lineDiv,m=p.firstChild;function y(Z){var it=Z.nextSibling;return v&&B&&n.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),it}for(var x=l.view,_=l.viewFrom,N=0;N-1&&(q=!1),Nd(n,D,_,a)),q&&(G(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(dt(n.options,_)))),m=D.node.nextSibling}_+=D.size}for(;m;)m=y(m)}function ku(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",qe(n,"gutterChanged",n)}function Cu(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+hr(n)+"px"}function sp(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=pu(i)-i.scroller.scrollLeft+n.doc.scrollLeft,c=i.gutters.offsetWidth,p=l+"px",m=0;m=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),d&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(s&&E)&&(c.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(c.wrapper):n(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Tu(l.gutters,l.lineNumbers),ap(c),a.init(c)}var sa=0,Mr=null;d?Mr=-.53:s?Mr=15:w?Mr=-.7:A&&(Mr=-1/3);function cp(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 Yw(n){var i=cp(n);return i.x*=Mr,i.y*=Mr,i}function up(n,i){w&&S==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=cp(i),l=a.x,c=a.y,p=Mr;i.deltaMode===0&&(l=i.deltaX,c=i.deltaY,p=1);var m=n.display,y=m.scroller,x=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(l&&x||c&&_){if(c&&B&&v){t:for(var N=i.target,D=m.view;N!=y;N=N.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 wo(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 Jn(n,i,a){var l=n&&n.options.selectionsMayTouch,c=i[a];i.sort(function(W,q){return _t(W.from(),q.from())}),a=Et(i,c);for(var p=1;p0:x>=0){var _=wo(y.from(),m.from()),N=sn(y.to(),m.to()),D=y.empty()?m.from()==m.head:y.from()==y.head;p<=a&&--a,i.splice(--p,2,new ue(D?N:_,D?_:N))}}return new Dn(i,a)}function ri(n,i){return new Dn([new ue(n,i||n)],0)}function ii(n){return n.text?X(n.from.line+n.text.length-1,ct(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function fp(n,i){if(_t(n,i.from)<0)return n;if(_t(n,i.to)<=0)return ii(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+=ii(i).ch-i.to.ch),X(a,l)}function Eu(n,i){for(var a=[],l=0;l1&&n.remove(y.line+1,Z-1),n.insert(y.line+1,bt)}qe(n,"change",n,i)}function oi(n,i,a){function l(c,p,m){if(c.linked)for(var y=0;y1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ct(n.done)}function mp(n,i,a,l){var c=n.history;c.undone.length=0;var p=+new Date,m,y;if((c.lastOp==l||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>p-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=Jw(c,c.lastOp==l)))y=ct(m.changes),_t(i.from,i.to)==0&&_t(i.from,y.to)==0?y.to=ii(i):m.changes.push(Mu(n,i));else{var x=ct(c.done);for((!x||!x.ranges)&&aa(n.sel,c.done),m={changes:[Mu(n,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(a),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=p,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=i.origin,y||ke(n,"historyAdded")}function tx(n,i,a,l){var c=i.charAt(0);return c=="*"||c=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function ex(n,i,a,l){var c=n.history,p=l&&l.origin;a==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||tx(n,p,ct(c.done),i))?c.done[c.done.length-1]=i:aa(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=a,l&&l.clearRedo!==!1&&vp(c.undone)}function aa(n,i){var a=ct(i);a&&a.ranges&&a.equals(n)||i.push(n)}function yp(n,i,a,l){var c=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((c||(c=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function nx(n){if(!n)return null;for(var i,a=0;a-1&&(ct(y)[D]=_[D],delete _[D])}}return l}function Nu(n,i,a,l){if(l){var c=n.anchor;if(a){var p=_t(i,c)<0;p!=_t(a,c)<0?(c=i,i=a):p!=_t(i,a)<0&&(i=a)}return new ue(c,i)}else return new ue(a||i,i)}function ca(n,i,a,l,c){c==null&&(c=n.cm&&(n.cm.display.shift||n.extend)),Ye(n,new Dn([Nu(n.sel.primary(),i,a,c)],0),l)}function wp(n,i,a){for(var l=[],c=n.cm&&(n.cm.display.shift||n.extend),p=0;p=i.ch:y.to>i.ch))){if(c&&(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?N:_)&&(D=Tp(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 Mo(n,D,i,l,c)}var q=x.find(l<0?-1:1);return(l<0?_:N)&&(q=Tp(n,q,l,q.line==i.line?p:null)),q?Mo(n,q,i,l,c):null}}return i}function fa(n,i,a,l,c){var p=l||1,m=Mo(n,i,a,p,c)||!c&&Mo(n,i,a,p,!0)||Mo(n,i,a,-p,c)||!c&&Mo(n,i,a,-p,!0);return m||(n.cantEdit=!0,X(n.first,0))}function Tp(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;--c)Ap(n,{from:l[c].from,to:l[c].to,text:c?[""]:i.text,origin:i.origin});else Ap(n,i)}}function Ap(n,i){if(!(i.text.length==1&&i.text[0]==""&&_t(i.from,i.to)==0)){var a=Eu(n,i);mp(n,i,a,n.cm?n.cm.curOp.id:NaN),Is(n,i,a,tu(n,i));var l=[];oi(n,function(c,p){!p&&Et(l,c.history)==-1&&(Op(c.history,i),l.push(c.history)),Is(c,i,null,tu(c,i))})}}function ha(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var c=n.history,p,m=n.sel,y=i=="undo"?c.done:c.undone,x=i=="undo"?c.undone:c.done,_=0;_=0;--q){var Z=W(q);if(Z)return Z.v}}}}function Mp(n,i){if(i!=0&&(n.first+=i,n.sel=new Dn(ft(n.sel.ranges,function(c){return new ue(X(c.anchor.line+i,c.anchor.ch),X(c.head.line+i,c.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=Tr(n,i.from,i.to),a||(a=Eu(n,i)),n.cm?ox(n.cm,i,l):Au(n,i,l),ua(n,a,V),n.cantEdit&&fa(n,X(n.firstLine(),0))&&(n.cantEdit=!1)}}function ox(n,i,a){var l=n.doc,c=n.display,p=i.from,m=i.to,y=!1,x=p.line;n.options.lineWrapping||(x=C(Zn(Pt(l,p.line))),l.iter(x,m.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),l.sel.contains(i.from,i.to)>-1&&qn(n),Au(l,i,a,Xd(n)),n.options.lineWrapping||(l.iter(x,p.line+i.text.length,function(q){var Z=Xl(q);Z>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=Z,c.maxLineChanged=!0,y=!1)}),y&&(n.curOp.updateMaxLine=!0)),Kb(l,p.line),$s(n,400);var _=i.text.length-(m.line-p.line)-1;i.full?ln(n):p.line==m.line&&i.text.length==1&&!dp(n.doc,i)?ei(n,p.line,"text"):ln(n,p.line,m.line+1,_);var N=_n(n,"changes"),D=_n(n,"change");if(D||N){var W={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&qe(n,"change",n,W),N&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(W)}n.display.selForContextMenu=null}function Po(n,i,a,l,c){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)),No(n,{from:a,to:l,text:i,origin:c})}function Np(n,i,a,l){a1||!(this.children[0]instanceof qs))){var y=[];this.collapse(y),this.children=[new qs(y)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i50){for(var m=c.lines.length%25+25,y=m;y10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;ln.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=N,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&ln(n,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&kp(n.doc)),n&&qe(n,"markerCleared",n,this,l,c),i&&qi(n),this.parent&&this.parent.clear()}},si.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,c=0;c0||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(Cd(n,i.line,i,a,p)||i.line!=a.line&&Cd(n,a.line,i,a,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yb()}p.addToHistory&&mp(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var y=i.line,x=n.cm,_;if(n.iter(y,a.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&Zn(D)==x.display.maxLine&&(_=!0),p.collapsed&&y!=i.line&&On(D,0),Qb(D,new jl(p,y==i.line?i.ch:null,y==a.line?a.ch:null),n.cm&&n.cm.curOp),++y}),p.collapsed&&n.iter(i.line,a.line+1,function(D){ti(n,D)&&On(D,0)}),p.clearOnEnter&&Rt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(Xb(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++$p,p.atomic=!0),x){if(_&&(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 N=i.line;N<=a.line;N++)ei(x,N,"text");p.atomic&&kp(x.doc),qe(x,"markerAdded",x,p)}return p}var Ws=function(n,i){this.markers=n,this.primary=i;for(var a=0;a=0;x--)No(this,l[x]);y?_p(this,y):this.cm&&Eo(this.cm)}),undo:Be(function(){ha(this,"undo")}),redo:Be(function(){ha(this,"redo")}),undoSelection:Be(function(){ha(this,"undo",!0)}),redoSelection:Be(function(){ha(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(c.marker.parent||c.marker)}return i},findMarks:function(n,i,a){n=Wt(this,n),i=Wt(this,i);var l=[],c=n.line;return this.iter(n.line,i.line+1,function(p){var m=p.markedSpans;if(m)for(var y=0;y=x.to||x.from==null&&c!=n.line||x.from!=null&&c==i.line&&x.from>=i.ch)&&(!a||a(x.marker))&&l.push(x.marker.parent||x.marker)}++c}),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 N=n.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),ua(i.doc,ri(a,a)),D)for(var W=0;W=0;y--)Po(n.doc,"",l[y].from,l[y].to,"+delete");Eo(n)})}function Ou(n,i,a){var l=rn(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Du(n,i,a){var l=Ou(n,i.ch,a);return l==null?null:new X(i.line,l,a<0?"after":"before")}function $u(n,i,a,l,c){if(n){i.doc.direction=="rtl"&&(c=-c);var p=Yt(a,i.doc.direction);if(p){var m=c<0?ct(p):p[0],y=c<0==(m.level==1),x=y?"after":"before",_;if(m.level>0||i.doc.direction=="rtl"){var N=So(i,a);_=c<0?a.text.length-1:0;var D=dr(i,N,_).top;_=Pn(function(W){return dr(i,N,W).top==D},c<0==(m.level==1)?m.from:m.to-1,_),x=="before"&&(_=Ou(a,_,1))}else _=c<0?m.to:m.from;return new X(l,_,x)}}return new X(l,c<0?a.text.length:0,c<0?"before":"after")}function bx(n,i,a,l){var c=Yt(i,n.doc.direction);if(!c)return Du(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(c,a.ch,a.sticky),m=c[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from=m.from&&W>=N.begin)){var q=D?"before":"after";return new X(a.line,W,q)}}var Z=function(bt,Ct,wt){for(var Lt=function(ge,We){return We?new X(a.line,y(ge,1),"before"):new X(a.line,ge,"after")};bt>=0&&bt0==(zt.level!=1),Xt=Ot?wt.begin:y(wt.end,-1);if(zt.from<=Xt&&Xt0?N.end:y(N.begin,-1);return vt!=null&&!(l>0&&vt==i.text.length)&&(it=Z(l>0?0:c.length-1,l,_(vt)),it)?it:null}var Vs={selectAll:Ep,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),V)},killLine:function(n){return $o(n,function(i){if(i.empty()){var a=Pt(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line0)c=new X(c.line,c.ch+1),n.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),X(c.line,c.ch-2),c,"+transpose");else if(c.line>n.doc.first){var m=Pt(n.doc,c.line-1).text;m&&(c=new X(c.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),X(c.line-1,m.length-1),c,"+transpose"))}}a.push(new ue(c,c))}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 Ks,Xs;function Tx(n,i){var a=+new Date;return Xs&&Xs.compare(a,n,i)?(Ks=Xs=null,"triple"):Ks&&Ks.compare(a,n,i)?(Xs=new zu(a,n,i),Ks=null,"double"):(Ks=new zu(a,n,i),Xs=null,"single")}function Zp(n){var i=this,a=i.display;if(!(Ce(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Ar(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Iu(i,n)){var l=$i(i,n),c=Gn(n),p=l?Tx(l,c):"single";Tt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&Ex(i,c,l,p,n))&&(c==1?l?Ax(i,l,p,n):ws(n)==a.scroller&&Xe(n):c==2?(l&&ca(i.doc,l),setTimeout(function(){return a.input.focus()},20)):c==3&&(at?i.display.input.onContextMenu(n):yu(i)))}}}function Ex(n,i,a,l,c){var p="Click";return l=="double"?p="Double"+p:l=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Gs(n,Bp(p,c),c,function(m){if(typeof m=="string"&&(m=Vs[m]),!m)return!1;var y=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),y=m(n,a)!=I}finally{n.state.suppressEdits=!1}return y})}function Lx(n,i,a){var l=n.getOption("configureMouse"),c=l?l(n,i,a):{};if(c.unit==null){var p=K?a.shiftKey&&a.metaKey:a.altKey;c.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||n.doc.extend)&&(c.extend=n.doc.extend||a.shiftKey),c.addNew==null&&(c.addNew=B?a.metaKey:a.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?a.altKey:a.ctrlKey)),c}function Ax(n,i,a,l){d?setTimeout(j(Qd,n),0):n.curOp.focus=yt(Qt(n));var c=Lx(n,a,l),p=n.doc.sel,m;n.options.dragDrop&&Yc&&!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)?Mx(n,l,i,c):Nx(n,l,i,c)}function Mx(n,i,a,l){var c=n.display,p=!1,m=He(n,function(_){v&&(c.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:yu(n)),Ke(c.wrapper.ownerDocument,"mouseup",m),Ke(c.wrapper.ownerDocument,"mousemove",y),Ke(c.scroller,"dragstart",x),Ke(c.scroller,"drop",m),p||(Xe(_),l.addNew||ca(n.doc,a,null,null,l.extend),v&&!A||d&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){p=p||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},x=function(){return p=!0};v&&(c.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Rt(c.wrapper.ownerDocument,"mouseup",m),Rt(c.wrapper.ownerDocument,"mousemove",y),Rt(c.scroller,"dragstart",x),Rt(c.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Qp(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&&yu(n);var c=n.display,p=n.doc;Xe(i);var m,y,x=p.sel,_=x.ranges;if(l.addNew&&!l.extend?(y=p.sel.contains(a),y>-1?m=_[y]:m=new ue(a,a)):(m=p.sel.primary(),y=p.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ue(a,a)),a=$i(n,i,!0,!0),y=-1;else{var N=Qp(n,a,l.unit);l.extend?m=Nu(m,N.anchor,N.head,l.extend):m=N}l.addNew?y==-1?(y=_.length,Ye(p,Jn(n,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&l.unit=="char"&&!l.extend?(Ye(p,Jn(n,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):Pu(p,y,m,J):(y=0,Ye(p,new Dn([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,Ot=lt(Pt(p,a.line).text,a.ch,zt),Xt=lt(Pt(p,wt.line).text,wt.ch,zt),ge=Math.min(Ot,Xt),We=Math.max(Ot,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=ut(cn,ge,zt);ge==We?Lt.push(new ue(X(_e,Ne),X(_e,Ne))):cn.length>Ne&&Lt.push(new ue(X(_e,Ne),X(_e,ut(cn,We,zt))))}Lt.length||Lt.push(new ue(a,a)),Ye(p,Jn(n,x.ranges.slice(0,y).concat(Lt),y),{origin:"*mouse",scroll:!1}),n.scrollIntoView(wt)}else{var un=m,Ve=Qp(n,wt,l.unit),$e=un.anchor,Pe;_t(Ve.anchor,$e)>0?(Pe=Ve.head,$e=wo(un.from(),Ve.anchor)):(Pe=Ve.anchor,$e=sn(un.to(),Ve.head));var Ee=x.ranges.slice(0);Ee[y]=Px(n,new ue(Wt(p,$e),Pe)),Ye(p,Jn(n,Ee,y),J)}}var q=c.wrapper.getBoundingClientRect(),Z=0;function it(wt){var Lt=++Z,zt=$i(n,wt,!0,l.unit=="rectangle");if(zt)if(_t(zt,D)!=0){n.curOp.focus=yt(Qt(n)),W(zt);var Ot=ra(c,p);(zt.line>=Ot.to||zt.lineq.bottom?20:0;Xt&&setTimeout(He(n,function(){Z==Lt&&(c.scroller.scrollTop+=Xt,it(wt))}),50)}}function vt(wt){n.state.selectingText=!1,Z=1/0,wt&&(Xe(wt),c.input.focus()),Ke(c.wrapper.ownerDocument,"mousemove",bt),Ke(c.wrapper.ownerDocument,"mouseup",Ct),p.history.lastSelOrigin=null}var bt=He(n,function(wt){wt.buttons===0||!Gn(wt)?vt(wt):it(wt)}),Ct=He(n,vt);n.state.selectingText=Ct,Rt(c.wrapper.ownerDocument,"mousemove",bt),Rt(c.wrapper.ownerDocument,"mouseup",Ct)}function Px(n,i){var a=i.anchor,l=i.head,c=Pt(n.doc,a.line);if(_t(a,l)==0&&a.sticky==l.sticky)return i;var p=Yt(c);if(!p)return i;var m=Ae(p,a.ch,a.sticky),y=p[m];if(y.from!=a.ch&&y.to!=a.ch)return i;var x=m+(y.from==a.ch==(y.level!=1)?0:1);if(x==0||x==p.length)return i;var _;if(l.line!=a.line)_=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var N=Ae(p,l.ch,l.sticky),D=N-m||(l.ch-a.ch)*(y.level==1?-1:1);N==x-1||N==x?_=D<0:_=D>0}var W=p[x+(_?-1:0)],q=_==(W.level==1),Z=q?W.from:W.to,it=q?"after":"before";return a.ch==Z&&a.sticky==it?i:new ue(new X(a.line,Z,it),l)}function Jp(n,i,a,l){var c,p;if(i.touches)c=i.touches[0].clientX,p=i.touches[0].clientY;else try{c=i.clientX,p=i.clientY}catch{return!1}if(c>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&Xe(i);var m=n.display,y=m.lineDiv.getBoundingClientRect();if(p>y.bottom||!_n(n,a))return on(i);p-=y.top-m.viewOffset;for(var x=0;x=c){var N=O(n.doc,p),D=n.display.gutterSpecs[x];return ke(n,a,n,N,D.className,i),on(i)}}}function Iu(n,i){return Jp(n,i,"gutterClick",!0)}function tg(n,i){Ar(n.display,i)||Ox(n,i)||Ce(n,i,"contextmenu")||at||n.display.input.onContextMenu(i)}function Ox(n,i){return _n(n,"gutterContextMenu")?Jp(n,i,"gutterContextMenu",!1):!1}function eg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),As(n)}var Ro={toString:function(){return"CodeMirror.Init"}},ng={},va={};function Dx(n){var i=n.optionHandlers;function a(l,c,p,m){n.defaults[l]=c,p&&(i[l]=m?function(y,x,_){_!=Ro&&p(y,x,_)}:p)}n.defineOption=a,n.Init=Ro,a("value","",function(l,c){return l.setValue(c)},!0),a("mode",null,function(l,c){l.doc.modeOption=c,Lu(l)},!0),a("indentUnit",2,Lu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){zs(l),As(l),ln(l)},!0),a("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var p=[],m=l.doc.first;l.doc.iter(function(x){for(var _=0;;){var N=x.text.indexOf(c,_);if(N==-1)break;_=N+c.length,p.push(X(m,N))}m++});for(var y=p.length-1;y>=0;y--)Po(l.doc,c,p[y],X(p[y].line,p[y].ch+c.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,c,p){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=Ro&&l.refresh()}),a("specialCharPlaceholder",cw,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,c){return l.getInputField().spellcheck=c},!0),a("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),a("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),a("rtlMoveVisually",!ht),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){eg(l),Rs(l)},!0),a("keyMap","default",function(l,c,p){var m=pa(c),y=p!=Ro&&pa(p);y&&y.detach&&y.detach(l,m),m.attach&&m.attach(l,y||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Rx,!0),a("gutters",[],function(l,c){l.display.gutterSpecs=Tu(c,l.options.lineNumbers),Rs(l)},!0),a("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?pu(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Lo(l)},!0),a("scrollbarStyle","native",function(l){ip(l),Lo(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,c){l.display.gutterSpecs=Tu(l.options.gutters,c),Rs(l)},!0),a("firstLineNumber",1,Rs,!0),a("lineNumberFormatter",function(l){return l},Rs,!0),a("showCursorWhenSelecting",!1,Ms,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,c){c=="nocursor"&&(To(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),a("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),a("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),a("dragDrop",!0,$x),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Ms,!0),a("singleCursorHeightPerLine",!0,Ms,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,zs,!0),a("addModeClass",!1,zs,!0),a("pollInterval",100),a("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,zs,!0),a("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),a("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),a("autofocus",null),a("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),a("phrases",null)}function $x(n,i,a){var l=a&&a!=Ro;if(!i!=!l){var c=n.display.dragFunctions,p=i?Rt:Ke;p(n.display.scroller,"dragstart",c.start),p(n.display.scroller,"dragenter",c.enter),p(n.display.scroller,"dragover",c.over),p(n.display.scroller,"dragleave",c.leave),p(n.display.scroller,"drop",c.drop)}}function Rx(n){n.options.lineWrapping?(At(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(gt(n.display.wrapper,"CodeMirror-wrap"),iu(n)),gu(n),ln(n),As(n),setTimeout(function(){return Lo(n)},100)}function be(n,i){var a=this;if(!(this instanceof be))return new be(n,i);this.options=i=i?rt(i):{},rt(ng,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 c=new be.inputStyles[i.inputStyle](this),p=this.display=new Xw(n,l,c,i);p.wrapper.CodeMirror=this,eg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ip(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),zx(this),px(),Fi(this),this.curOp.forceUpdate=!0,pp(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&bu(a)},20):To(this);for(var m in va)va.hasOwnProperty(m)&&va[m](this,i[m],Ro);lp(this),i.finishInit&&i.finishInit(this);for(var y=0;y20*20}Rt(i.scroller,"touchstart",function(x){if(!Ce(n,x)&&!p(x)&&!Iu(n,x)){i.input.ensurePolled(),clearTimeout(a);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-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 _=i.activeTouch;if(_&&!Ar(i,x)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=n.coordsChar(i.activeTouch,"page"),D;!_.prev||m(_,_.prev)?D=new ue(N,N):!_.prev.prev||m(_,_.prev.prev)?D=n.findWordAt(N):D=new ue(X(N.line,0),Wt(n.doc,X(N.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),Xe(x)}c()}),Rt(i.scroller,"touchcancel",c),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ps(n,i.scroller.scrollTop),zi(n,i.scroller.scrollLeft,!0),ke(n,"scroll",n))}),Rt(i.scroller,"mousewheel",function(x){return up(n,x)}),Rt(i.scroller,"DOMMouseScroll",function(x){return up(n,x)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Ce(n,x)||Yr(x)},over:function(x){Ce(n,x)||(dx(n,x),Yr(x))},start:function(x){return hx(n,x)},drop:He(n,fx),leave:function(x){Ce(n,x)||Ip(n)}};var y=i.input.getField();Rt(y,"keyup",function(x){return Xp.call(n,x)}),Rt(y,"keydown",He(n,Kp)),Rt(y,"keypress",He(n,Yp)),Rt(y,"focus",function(x){return bu(n,x)}),Rt(y,"blur",function(x){return To(n,x)})}var Fu=[];be.defineInitHook=function(n){return Fu.push(n)};function Ys(n,i,a,l){var c=n.doc,p;a==null&&(a="add"),a=="smart"&&(c.mode.indent?p=ks(n,i).state:a="prev");var m=n.options.tabSize,y=Pt(c,i),x=lt(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!l&&!/\S/.test(y.text))N=0,a="not";else if(a=="smart"&&(N=c.mode.indent(p,y.text.slice(_.length),y.text),N==I||N>150)){if(!l)return;a="prev"}a=="prev"?i>c.first?N=lt(Pt(c,i-1).text,null,m):N=0:a=="add"?N=x+n.options.indentUnit:a=="subtract"?N=x-n.options.indentUnit:typeof a=="number"&&(N=x+a),N=Math.max(0,N);var D="",W=0;if(n.options.indentWithTabs)for(var q=Math.floor(N/m);q;--q)W+=m,D+=" ";if(Wm,x=Hn(i),_=null;if(y&&l.ranges.length>1)if(tr&&tr.text.join(` `)==i){if(l.ranges.length%tr.text.length==0){_=[];for(var N=0;N=0;W--){var q=l.ranges[W],Z=q.from(),it=q.to();q.empty()&&(a&&a>0?Z=X(Z.line,Z.ch-a):n.state.overwrite&&!y?it=X(it.line,Math.min(Pt(p,it.line).text.length,it.ch+ct(x).length)):y&&tr&&tr.lineWise&&tr.text.join(` `)==x.join(` `)&&(Z=it=X(Z.line,0)));var vt={from:Z,to:it,text:_?_[W%_.length]:x,origin:c||(y?"paste":n.state.cutIncoming>m?"cut":"+input")};No(n.doc,vt),qe(n,"inputRead",n,vt)}i&&!y&&ig(n,i),Eo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function rg(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 qu(i,a,0,null,"paste")}),!0}function ig(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var c=a.ranges[l];if(!(c.head.ch>100||l&&a.ranges[l-1].head.line==c.head.line)){var p=n.getModeAt(c.head),m=!1;if(p.electricChars){for(var y=0;y-1){m=Ys(n,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Pt(n.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Ys(n,c.head.line,"smart"));m&&qe(n,"electricInput",n,c.head.line)}}}function og(n){for(var i=[],a=[],l=0;lp&&(Ys(this,y.head.line,l,!0),p=y.head.line,m==this.doc.sel.primIndex&&Eo(this));else{var x=y.from(),_=y.to(),N=Math.max(p,x.line);p=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=N;D0&&Pu(this.doc,m,new ue(x,W[m].to()),V)}}}),getTokenAt:function(l,c){return vd(this,l,c)},getLineTokens:function(l,c){return vd(this,X(l),c,!0)},getTokenTypeAt:function(l){l=Wt(this.doc,l);var c=dd(this,Pt(this.doc,l.line)),p=0,m=(c.length-1)/2,y=l.ch,x;if(y==0)x=c[2];else for(;;){var _=p+m>>1;if((_?c[_*2-1]:0)>=y)m=_;else if(c[_*2+1]x&&(l=x,m=!0),y=Pt(this.doc,l)}else y=l;return Ql(this,y,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-Lr(y):0)},defaultTextHeight:function(){return ko(this.display)},defaultCharWidth:function(){return Co(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,p,m,y){var x=this.display;l=Qn(this,Wt(this.doc,l));var _=l.bottom,N=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),x.sizer.appendChild(c),m=="over")_=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+c.offsetHeight>D)&&l.top>c.offsetHeight?_=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=D&&(_=l.bottom),N+c.offsetWidth>W&&(N=W-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=x.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(x.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),p&&$w(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Je(Kp),triggerOnKeyPress:Je(Yp),triggerOnKeyUp:Xp,triggerOnMouseDown:Je(Zp),execCommand:function(l){if(Vs.hasOwnProperty(l))return Vs[l].call(null,this)},triggerElectric:Je(function(l){ig(this,l)}),findPosH:function(l,c,p,m){var y=1;c<0&&(y=-1,c=-c);for(var x=Wt(this.doc,l),_=0;_0&&N(p.charAt(m-1));)--m;for(;y.5||this.options.lineWrapping)&&gu(this),ke(this,"refresh",this)}),swapDoc:Je(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),pp(this,l),As(this),this.display.input.reset(),Ns(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,qe(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[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,c,p){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][c]=p},n.registerGlobalHelper=function(l,c,p,m){n.registerHelper(l,c,m),a[l]._global.push({pred:p,val:m})}}function Bu(n,i,a,l,c){var p=i,m=a,y=Pt(n,i.line),x=c&&n.direction=="rtl"?-a:a;function _(){var Ct=i.line+x;return Ct=n.first+n.size?!1:(i=new X(Ct,i.ch,i.sticky),y=Pt(n,Ct))}function N(Ct){var wt;if(l=="codepoint"){var Lt=y.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(y.text.length,i.ch+a*(zt?2:1))),-a)}}else c?wt=bx(n.cm,y,i,a):wt=Du(y,i,a);if(wt==null)if(!Ct&&_())i=$u(c,n.cm,y,i.line,x);else return!1;else i=wt;return!0}if(l=="char"||l=="codepoint")N();else if(l=="column")N(!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&&!N(!Z));Z=!1){var it=y.text.charAt(i.ch)||` `,vt=re(it,q)?"w":W&&it==` `?"n":!W||/\s/.test(it)?null:"p";if(W&&!Z&&!vt&&(vt="s"),D&&D!=vt){a<0&&(a=1,N(),i.sticky="after");break}if(vt&&(D=vt),a>0&&!N(!Z))break}var bt=fa(n,i,p,m,!0);return ce(p,bt)&&(bt.hitSide=!0),bt}function lg(n,i,a,l){var c=n.doc,p=i.left,m;if(l=="page"){var y=Math.min(n.display.wrapper.clientHeight,Tt(n).innerHeight||c(n).documentElement.clientHeight),x=Math.max(y-.5*ko(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 _;_=fu(n,p,m),!!_.outside;){if(a<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=a*5}return _}var he=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};he.prototype.init=function(n){var i=this,a=this,l=a.cm,c=a.div=n.lineDiv;c.contentEditable=!0,Hu(c,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function p(y){for(var x=y.target;x;x=x.parentNode){if(x==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Rt(c,"paste",function(y){!p(y)||Ce(l,y)||rg(y,l)||g<=11&&setTimeout(He(l,function(){return i.updateFromDOM()}),20)}),Rt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),Rt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),Rt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(c,"touchstart",function(){return a.forceCompositionEnd()}),Rt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!p(y)||Ce(l,y))){if(l.somethingSelected())ma({lineWise:!1,text:l.getSelections()}),y.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var x=og(l);ma({lineWise:!0,text:x.text}),y.type=="cut"&&l.operation(function(){l.setSelections(x.ranges,0,V),l.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=tr.text.join(` `);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=sg(),D=N.firstChild;Hu(D),l.display.lineSpace.insertBefore(N,l.display.lineSpace.firstChild),D.value=tr.text.join(` `);var W=yt(Gt(c));Ht(D),setTimeout(function(){l.display.lineSpace.removeChild(N),W.focus(),W==c&&a.showPrimarySelection()},50)}}Rt(c,"copy",m),Rt(c,"cut",m)},he.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},he.prototype.prepareSelection=function(){var n=Zd(this.cm,!1);return n.focus=yt(Gt(this.div))==this.div,n},he.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},he.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},he.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),c=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||c.line=i.display.viewFrom&&ag(i,l)||{node:y[0].measure.map[2],offset:0},_=c.linen.firstLine()&&(l=X(l.line-1,Pt(n.doc,l.line-1).length)),c.ch==Pt(n.doc,c.line).text.length&&c.linei.viewTo-1)return!1;var p,m,y;l.line==i.viewFrom||(p=Ri(n,l.line))==0?(m=C(i.view[0].line),y=i.view[0].node):(m=C(i.view[p].line),y=i.view[p-1].node.nextSibling);var x=Ri(n,c.line),_,N;if(x==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=C(i.view[x+1].line)-1,N=i.view[x+1].node.previousSibling),!y)return!1;for(var D=n.doc.splitLines(qx(n,y,N,m,_)),W=Tr(n.doc,X(m,0),X(_,Pt(n.doc,_).text.length));D.length>1&&W.length>1;)if(ct(D)==ct(W))D.pop(),W.pop(),_--;else if(D[0]==W[0])D.shift(),W.shift(),m++;else break;for(var q=0,Z=0,it=D[0],vt=W[0],bt=Math.min(it.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),Ot=X(_,W.length?ct(W).length-Z:0);if(D.length>1||D[0]||_t(zt,Ot))return Po(n.doc,D,zt,Ot,"+input"),!0},he.prototype.ensurePolled=function(){this.forceCompositionEnd()},he.prototype.reset=function(){this.forceCompositionEnd()},he.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},he.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))},he.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Sn(this.cm,function(){return ln(n.cm)})},he.prototype.setUneditable=function(n){n.contentEditable="false"},he.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||He(this.cm,qu)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},he.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},he.prototype.onContextMenu=function(){},he.prototype.resetPosition=function(){},he.prototype.needsContentAttribute=!0;function ag(n,i){var a=au(n,i.line);if(!a||a.hidden)return null;var l=Pt(n.doc,i.line),c=zd(a,l,i.line),p=Yt(l,n.doc.direction),m="left";if(p){var y=Ae(p,i.ch);m=y%2?"right":"left"}var x=qd(c.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function Fx(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function zo(n,i){return i&&(n.bad=!0),n}function qx(n,i,a,l,c){var p="",m=!1,y=n.doc.lineSeparator(),x=!1;function _(q){return function(Z){return Z.id==q}}function N(){m&&(p+=y,x&&(p+=y),m=x=!1)}function D(q){q&&(N(),p+=q)}function W(q){if(q.nodeType==1){var Z=q.getAttribute("cm-text");if(Z){D(Z);return}var it=q.getAttribute("cm-marker"),vt;if(it){var bt=n.findMarks(X(l,0),X(c+1,0),_(+it));bt.length&&(vt=bt[0].find(0))&&D(Tr(n.doc,vt.from,vt.to).join(y));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&&N();for(var wt=0;wt=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Rt(c,"paste",function(m){Ce(l,m)||rg(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function p(m){if(!Ce(l,m)){if(l.somethingSelected())ma({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var y=og(l);ma({lineWise:!0,text:y.text}),m.type=="cut"?l.setSelections(y.ranges,null,V):(a.prevInput="",c.value=y.text.join(` `),Ht(c))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Rt(c,"cut",p),Rt(c,"copy",p),Rt(n.scroller,"paste",function(m){if(!(Ar(n,m)||Ce(l,m))){if(!c.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),Rt(n.lineSpace,"selectstart",function(m){Ar(n,m)||Xe(m)}),Rt(c,"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(c,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Me.prototype.createField=function(n){this.wrapper=sg(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Hu(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=Zd(n);if(n.options.moveInputWithCursor){var c=Qn(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,c.top+m.top-p.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.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&&Ht(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(Gt(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||Qr(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=a.value;if(c==l&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=c.charCodeAt(0);if(p==8203&&!l&&(l="​"),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,y=Math.min(l.length,c.length);m1e3||c.indexOf(` `)>-1?a.value=n.prevInput="":n.prevInput=c,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,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=$i(a,n),m=l.scroller.scrollTop;if(!p||P)return;var y=a.options.resetSelectionOnContextMenu;y&&a.doc.sel.contains(p)==-1&&He(a,Ye)(a.doc,ri(p),V);var x=c.style.cssText,_=i.wrapper.style.cssText,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(n.clientY-N.top-5)+"px; left: "+(n.clientX-N.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=c.ownerDocument.defaultView.scrollY),l.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function W(){if(c.selectionStart!=null){var it=a.somethingSelected(),vt="​"+(it?c.value:"");c.value="⇚",c.value=vt,i.prevInput=it?"":"​",c.selectionStart=1,c.selectionEnd=vt.length,l.selForContextMenu=a.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=x,d&&g<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),c.selectionStart!=null)){(!d||d&&g<9)&&W();var it=0,vt=function(){l.selForContextMenu==a.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="​"?He(a,Ep)(a):it++<10?l.detectingSelectAll=setTimeout(vt,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(vt,200)}}if(d&&g>=9&&W(),at){Yr(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 Bx(n,i){if(i=i?rt(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(Gt(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=y.getValue()}var c;if(n.form&&(Rt(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var p=n.form;c=p.submit;try{var m=p.submit=function(){l(),p.submit=c,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=c))}},n.style.display="none";var y=be(function(x){return n.parentNode.insertBefore(x,n.nextSibling)},i);return y}function Wx(n){n.off=Ke,n.on=Rt,n.wheelEventPixels=Yw,n.Doc=an,n.splitLines=Hn,n.countColumn=lt,n.findColumn=ut,n.isWordChar=Kt,n.Pass=I,n.signal=ke,n.Line=xo,n.changeEnd=ii,n.scrollbarModel=rp,n.Pos=X,n.cmpPos=_t,n.modes=go,n.mimeModes=Xn,n.resolveMode=vo,n.getMode=mo,n.modeExtensions=Jr,n.extendMode=yo,n.copyState=ur,n.startState=bo,n.innerMode=_s,n.commands=Vs,n.keyMap=Nr,n.keyName=Wp,n.isModifierKey=Hp,n.lookupKey=Do,n.normalizeKeyMap=yx,n.StringStream=Te,n.SharedTextMarker=Ws,n.TextMarker=si,n.LineWidget=Bs,n.e_preventDefault=Xe,n.e_stopPropagation=ho,n.e_stop=Yr,n.addClass=At,n.contains=Q,n.rmClass=gt,n.keyNames=li}Dx(be),Ix(be);var Ux="iter insert remove copy getEditor constructor".split(" ");for(var ba in an.prototype)an.prototype.hasOwnProperty(ba)&&Et(Ux,ba)<0&&(be.prototype[ba]=function(n){return function(){return n.apply(this.doc,arguments)}}(an.prototype[ba]));return Vn(an),be.inputStyles={textarea:Me,contenteditable:he},be.defineMode=function(n){!be.defaults.mode&&n!="null"&&(be.defaults.mode=n),Yn.apply(this,arguments)},be.defineMIME=Pi,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=Bx,Wx(be),be.version="5.65.16",be})})(ib);var ys=ib.exports;const Pat=ay(ys);var Oat={exports:{}};(function(t,e){(function(r){r(ys)})(function(r){r.defineMode("javascript",function(o,s){var u=o.indentUnit,f=s.statementIndent,h=s.jsonld,d=s.json||h,g=s.trackScope!==!1,v=s.typescript,b=s.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function C(Fe){return{type:Fe,style:"keyword"}}var O=C("keyword a"),et=C("keyword b"),dt=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:dt,void:dt,throw:dt,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:dt,export:C("export"),import:C("import"),extends:dt,await:dt}}(),S=/[+\-*&%=<>!?|~^@]/,P=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var O=!1,et,dt=!1;(et=C.next())!=null;){if(!O){if(et=="/"&&!dt)return;et=="["?dt=!0:dt&&et=="]"&&(dt=!1)}O=!O&&et=="\\"}}var L,T;function M(C,O,et){return L=C,T=et,O}function R(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=B,B(C,O)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):On(C,O,1)?(A(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(b))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(S.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(b.test(et)){C.eatWhile(b);var dt=C.current();if(O.lastType!="."){if(w.propertyIsEnumerable(dt)){var X=w[dt];return M(X.type,X.style,dt)}if(dt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",dt)}return M("variable","variable",dt)}}function E(C){return function(O,et){var dt=!1,X;if(h&&O.peek()=="@"&&O.match(P))return et.tokenize=R,M("jsonld-keyword","meta");for(;(X=O.next())!=null&&!(X==C&&!dt);)dt=!dt&&X=="\\";return dt||(et.tokenize=R),M("string","string")}}function B(C,O){for(var et=!1,dt;dt=C.next();){if(dt=="/"&&et){O.tokenize=R;break}et=dt=="*"}return M("comment","comment")}function K(C,O){for(var et=!1,dt;(dt=C.next())!=null;){if(!et&&(dt=="`"||dt=="$"&&C.eat("{"))){O.tokenize=R;break}et=!et&&dt=="\\"}return M("quasi","string-2",C.current())}var ht="([{}])";function Y(C,O){O.fatArrowAt&&(O.fatArrowAt=null);var et=C.string.indexOf("=>",C.start);if(!(et<0)){if(v){var dt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,et));dt&&(et=dt.index)}for(var X=0,_t=!1,ce=et-1;ce>=0;--ce){var Fe=C.string.charAt(ce),sn=ht.indexOf(Fe);if(sn>=0&&sn<3){if(!X){++ce;break}if(--X==0){Fe=="("&&(_t=!0);break}}else if(sn>=3&&sn<6)++X;else if(b.test(Fe))_t=!0;else if(/["'\/`]/.test(Fe))for(;;--ce){if(ce==0)return;var wo=C.string.charAt(ce-1);if(wo==Fe&&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 at(C,O,et,dt,X,_t){this.indented=C,this.column=O,this.type=et,this.prev=X,this.info=_t,dt!=null&&(this.align=dt)}function pt(C,O){if(!g)return!1;for(var et=C.localVars;et;et=et.next)if(et.name==O)return!0;for(var dt=C.context;dt;dt=dt.prev)for(var et=dt.vars;et;et=et.next)if(et.name==O)return!0}function gt(C,O,et,dt,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:lt;if(ce(et,dt)){for(;_t.length&&_t[_t.length-1].lex;)_t.pop()();return G.marked?G.marked:et=="variable"&&pt(C,dt)?"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 H(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 qt(C,O.localVars);return}}s.globalVars&&!F(C,O.globalVars)&&(O.globalVars=new qt(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 qt(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 qt(C,O){this.name=C,this.next=O}var Ht=new qt("this",new qt("arguments",null));function Jt(){G.state.context=new At(G.state.context,G.state.localVars,!1),G.state.localVars=Ht}function Qt(){G.state.context=new At(G.state.context,G.state.localVars,!0),G.state.localVars=null}Jt.lex=Qt.lex=!0;function Gt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}Gt.lex=!0;function Tt(C,O){var et=function(){var dt=G.state,X=dt.indented;if(dt.lexical.type=="stat")X=dt.lexical.indented;else for(var _t=dt.lexical;_t&&_t.type==")"&&_t.align;_t=_t.prev)X=_t.indented;dt.lexical=new at(X,G.stream.column(),C,null,dt.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 rt(C){function O(et){return et==C?k():C==";"||et=="}"||et==")"||et=="]"?z():k(O)}return O}function lt(C,O){return C=="var"?k(Tt("vardef",O),ho,rt(";"),j):C=="keyword a"?k(Tt("form"),I,lt,j):C=="keyword b"?k(Tt("form"),lt,j):C=="keyword d"?G.stream.match(/^\s*$/,!1)?k():k(Tt("stat"),J,rt(";"),j):C=="debugger"?k(rt(";")):C=="{"?k(Tt("}"),Qt,Pn,j,Gt):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,lt,j,po)):C=="function"?k(Hn):C=="for"?k(Tt("form"),Qt,Bl,lt,Gt,j):C=="class"||v&&O=="interface"?(G.marked="keyword",k(Tt("form",C=="class"?C:O),go,j)):C=="variable"?v&&O=="declare"?(G.marked="keyword",k(lt)):v&&(O=="module"||O=="enum"||O=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",O=="enum"?k(Pt):O=="type"?k(Wl,rt("operator"),Yt,rt(";")):k(Tt("form"),on,rt("{"),Tt("}"),Pn,j,j)):v&&O=="namespace"?(G.marked="keyword",k(Tt("form"),Et,lt,j)):v&&O=="abstract"?(G.marked="keyword",k(lt)):k(Tt("stat"),Bt):C=="switch"?k(Tt("form"),I,rt("{"),Tt("}","switch"),Qt,Pn,j,j,Gt):C=="case"?k(Et,rt(":")):C=="default"?k(rt(":")):C=="catch"?k(Tt("form"),Jt,Mt,lt,j,Gt):C=="export"?k(Tt("stat"),vo,j):C=="import"?k(Tt("stat"),Jr,j):C=="async"?k(lt):O=="@"?k(Et,lt):z(Tt("stat"),Et,rt(";"),j)}function Mt(C){if(C=="(")return k(Kn,rt(")"))}function Et(C,O){return V(C,O,!1)}function $(C,O){return V(C,O,!0)}function I(C){return C!="("?z():k(Tt(")"),J,rt(")"),j)}function V(C,O,et){if(G.state.fatArrowAt==G.stream.start){var dt=et?ft:ct;if(C=="(")return k(Jt,Tt(")"),se(Kn,")"),j,rt("=>"),dt,Gt);if(C=="variable")return z(Jt,on,rt("=>"),dt,Gt)}var X=et?ut:ot;return nt.hasOwnProperty(C)?k(X):C=="function"?k(Hn,X):C=="class"||v&&O=="interface"?(G.marked="keyword",k(Tt("form"),Zc,j)):C=="keyword c"||C=="async"?k(et?$:Et):C=="("?k(Tt(")"),J,rt(")"),j,X):C=="operator"||C=="spread"?k(et?$:Et):C=="["?k(Tt("]"),Te,j,X):C=="{"?rn(re,"}",null,X):C=="quasi"?z(St,X):C=="new"?k($t(et)):k()}function J(C){return C.match(/[;\}\)\],]/)?z():z(Et)}function ot(C,O){return C==","?k(J):ut(C,O,!1)}function ut(C,O,et){var dt=et==!1?ot:ut,X=et==!1?Et:$;if(C=="=>")return k(Jt,et?ft:ct,Gt);if(C=="operator")return/\+\+|--/.test(O)||v&&O=="!"?k(dt):v&&O=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Tt(">"),se(Yt,">"),j,dt):O=="?"?k(Et,rt(":"),X):k(X);if(C=="quasi")return z(St,dt);if(C!=";"){if(C=="(")return rn($,")","call",dt);if(C==".")return k(Kt,dt);if(C=="[")return k(Tt("]"),J,rt("]"),j,dt);if(v&&O=="as")return G.marked="keyword",k(Yt,dt);if(C=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),k(X)}}function St(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(St):k(J,mt)}function mt(C){if(C=="}")return G.marked="string-2",G.state.tokenize=K,k(St)}function ct(C){return Y(G.stream,G.state),z(C=="{"?lt:Et)}function ft(C){return Y(G.stream,G.state),z(C=="{"?lt:$)}function $t(C){return function(O){return O=="."?k(C?Dt:Nt):O=="variable"&&v?k(_n,C?ut:ot):z(C?$:Et)}}function Nt(C,O){if(O=="target")return G.marked="keyword",k(ot)}function Dt(C,O){if(O=="target")return G.marked="keyword",k(ut)}function Bt(C){return C==":"?k(j,lt):z(ot,rt(";"),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(fe)}else{if(C=="number"||C=="string")return G.marked=h?"property":G.style+" property",k(fe);if(C=="jsonld-keyword")return k(fe);if(v&&yt(O))return G.marked="keyword",k(re);if(C=="[")return k(Et,wn,rt("]"),fe);if(C=="spread")return k($,fe);if(O=="*")return G.marked="keyword",k(re);if(C==":")return z(fe)}}function oe(C){return C!="variable"?z(fe):(G.marked="property",k(Hn))}function fe(C){if(C==":")return k($);if(C=="(")return z(Hn)}function se(C,O,et){function dt(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(Fe,sn){return Fe==O||sn==O?z():z(C)},dt)}return X==O||_t==O?k():et&&et.indexOf(";")>-1?z(C):k(rt(O))}return function(X,_t){return X==O||_t==O?k():z(C,dt)}}function rn(C,O,et){for(var dt=3;dt"),Yt);if(C=="quasi")return z(Ke,qn)}function Hl(C){if(C=="=>")return k(Yt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):z(Cr,Rt)}function Cr(C,O){if(C=="variable"||G.style=="keyword")return G.marked="property",k(Cr);if(O=="?"||C=="number"||C=="string")return k(Cr);if(C==":")return k(Yt);if(C=="[")return k(rt("variable"),cr,rt("]"),Cr);if(C=="(")return z(Qr,Cr);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 qn(C,O){if(O=="<")return k(Tt(">"),se(Yt,">"),j,qn);if(O=="|"||C=="."||O=="&")return k(Yt);if(C=="[")return k(Yt,rt("]"),qn);if(O=="extends"||O=="implements")return G.marked="keyword",k(Yt);if(O=="?")return k(Yt,rt(":"),Yt)}function _n(C,O){if(O=="<")return k(Tt(">"),se(Yt,">"),j,qn)}function Vn(){return z(Yt,Xe)}function Xe(C,O){if(O=="=")return k(Yt)}function ho(C,O){return O=="enum"?(G.marked="keyword",k(Pt)):z(on,wn,Gn,Yc)}function on(C,O){if(v&&yt(O))return G.marked="keyword",k(on);if(C=="variable")return H(O),k();if(C=="spread")return k(on);if(C=="[")return rn(ws,"]");if(C=="{")return rn(Yr,"}")}function Yr(C,O){return C=="variable"&&!G.stream.match(/^\s*:/,!1)?(H(O),k(Gn)):(C=="variable"&&(G.marked="property"),C=="spread"?k(on):C=="}"?z():C=="["?k(Et,rt("]"),rt(":"),Yr):k(rt(":"),on,Gn))}function ws(){return z(on,Gn)}function Gn(C,O){if(O=="=")return k($)}function Yc(C){if(C==",")return k(ho)}function po(C,O){if(C=="keyword b"&&O=="else")return k(Tt("form","else"),lt,j)}function Bl(C,O){if(O=="await")return k(Bl);if(C=="(")return k(Tt(")"),xs,j)}function xs(C){return C=="var"?k(ho,Zr):C=="variable"?k(Zr):z(Zr)}function Zr(C,O){return C==")"?k():C==";"?k(Zr):O=="in"||O=="of"?(G.marked="keyword",k(Et,Zr)):z(Et,Zr)}function Hn(C,O){if(O=="*")return G.marked="keyword",k(Hn);if(C=="variable")return H(O),k(Hn);if(C=="(")return k(Jt,Tt(")"),se(Kn,")"),j,Ae,lt,Gt);if(v&&O=="<")return k(Tt(">"),se(Vn,">"),j,Hn)}function Qr(C,O){if(O=="*")return G.marked="keyword",k(Qr);if(C=="variable")return H(O),k(Qr);if(C=="(")return k(Jt,Tt(")"),se(Kn,")"),j,Ae,Gt);if(v&&O=="<")return k(Tt(">"),se(Vn,">"),j,Qr)}function Wl(C,O){if(C=="keyword"||C=="variable")return G.marked="type",k(Wl);if(O=="<")return k(Tt(">"),se(Vn,">"),j)}function Kn(C,O){return O=="@"&&k(Et,Kn),C=="spread"?k(Kn):v&&yt(O)?(G.marked="keyword",k(Kn)):v&&C=="this"?k(wn,Gn):z(on,wn,Gn)}function Zc(C,O){return C=="variable"?go(C,O):Xn(C,O)}function go(C,O){if(C=="variable")return H(O),k(Xn)}function Xn(C,O){if(O=="<")return k(Tt(">"),se(Vn,">"),j,Xn);if(O=="extends"||O=="implements"||v&&C==",")return O=="implements"&&(G.marked="keyword"),k(v?Yt:Et,Xn);if(C=="{")return k(Tt("}"),Yn,j)}function Yn(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(Yn);if(C=="variable"||G.style=="keyword")return G.marked="property",k(Pi,Yn);if(C=="number"||C=="string")return k(Pi,Yn);if(C=="[")return k(Et,wn,rt("]"),Pi,Yn);if(O=="*")return G.marked="keyword",k(Yn);if(v&&C=="(")return z(Qr,Yn);if(C==";"||C==",")return k(Yn);if(C=="}")return k();if(O=="@")return k(Et,Yn)}function Pi(C,O){if(O=="!"||O=="?")return k(Pi);if(C==":")return k(Yt,Gn);if(O=="=")return k($);var et=G.state.lexical.prev,dt=et&&et.info=="interface";return z(dt?Qr:Hn)}function vo(C,O){return O=="*"?(G.marked="keyword",k(bo,rt(";"))):O=="default"?(G.marked="keyword",k(Et,rt(";"))):C=="{"?k(se(mo,"}"),bo,rt(";")):z(lt)}function mo(C,O){if(O=="as")return G.marked="keyword",k(rt("variable"));if(C=="variable")return z($,mo)}function Jr(C){return C=="string"?k():C=="("?z(Et):C=="."?z(ot):z(yo,ur,bo)}function yo(C,O){return C=="{"?rn(yo,"}"):(C=="variable"&&H(O),O=="*"&&(G.marked="keyword"),k(_s))}function ur(C){if(C==",")return k(yo,ur)}function _s(C,O){if(O=="as")return G.marked="keyword",k(yo)}function bo(C,O){if(O=="from")return G.marked="keyword",k(Et)}function Te(C){return C=="]"?k():z(se($,"]"))}function Pt(){return z(Tt("form"),on,rt("{"),Tt("}"),se(Tr,"}"),j,j)}function Tr(){return z(on,Gn)}function Ss(C,O){return C.lastType=="operator"||C.lastType==","||S.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function On(C,O,et){return O.tokenize==R&&/^(?: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:R,lastType:"sof",cc:[],lexical:new at((C||0)-u,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!=B&&C.eatSpace())return null;var et=O.tokenize(C,O);return L=="comment"?et:(O.lastType=L=="operator"&&(T=="++"||T=="--")?"incdec":L,gt(O,et,L,T,C))},indent:function(C,O){if(C.tokenize==B||C.tokenize==K)return r.Pass;if(C.tokenize!=R)return 0;var et=O&&O.charAt(0),dt=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)dt=dt.prev;else if(ce!=po&&ce!=Gt)break}for(;(dt.type=="stat"||dt.type=="form")&&(et=="}"||(X=C.cc[C.cc.length-1])&&(X==ot||X==ut)&&!/^[,\.=+\-*:?[\(]/.test(O));)dt=dt.prev;f&&dt.type==")"&&dt.prev.type=="stat"&&(dt=dt.prev);var Fe=dt.type,sn=et==Fe;return Fe=="vardef"?dt.indented+(C.lastType=="operator"||C.lastType==","?dt.info.length+1:0):Fe=="form"&&et=="{"?dt.indented:Fe=="form"?dt.indented+u:Fe=="stat"?dt.indented+(Ss(C,O)?f||u:0):dt.info=="switch"&&!sn&&s.doubleIndentSwitch!=!1?dt.indented+(/^(?:case|default)\b/.test(O)?u:2*u):dt.align?dt.column+(sn?0:1):dt.indented+(sn?0:u)},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:On,skipExpression:function(C){gt(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 Dat=Oat.exports,$at={exports:{}};(function(t,e){(function(r){r(ys)})(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(u,f){var h=u.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 b,w;function S(k,F){function H(At){return F.tokenize=At,At(k,F)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?H(L("atom","]]>")):null:k.match("--")?H(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),H(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),F.tokenize=L("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",F.tokenize=P,"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}S.isInText=!0;function P(k,F){var H=k.next();if(H==">"||H=="/"&&k.eat(">"))return F.tokenize=S,b=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return b="equals",null;if(H=="<"){F.tokenize=S,F.state=K,F.tagName=F.tagStart=null;var Q=F.tokenize(k,F);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(H)?(F.tokenize=A(H),F.stringStartCol=k.column(),F.tokenize(k,F)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var F=function(H,Q){for(;!H.eol();)if(H.next()==k){Q.tokenize=P;break}return"string"};return F.isInAttribute=!0,F}function L(k,F){return function(H,Q){for(;!H.eol();){if(H.match(F)){Q.tokenize=S;break}H.next()}return k}}function T(k){return function(F,H){for(var Q;(Q=F.next())!=null;){if(Q=="<")return H.tokenize=T(k+1),H.tokenize(F,H);if(Q==">")if(k==1){H.tokenize=S;break}else return H.tokenize=T(k-1),H.tokenize(F,H)}return"meta"}}function M(k){return k&&k.toLowerCase()}function R(k,F,H){this.prev=k.context,this.tagName=F||"",this.indent=k.indented,this.startOfLine=H,(d.doNotIndent.hasOwnProperty(F)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function B(k,F){for(var H;;){if(!k.context||(H=k.context.tagName,!d.contextGrabbers.hasOwnProperty(M(H))||!d.contextGrabbers[M(H)].hasOwnProperty(M(F))))return;E(k)}}function K(k,F,H){return k=="openTag"?(H.tagStart=F.column(),ht):k=="closeTag"?Y:K}function ht(k,F,H){return k=="word"?(H.tagName=F.current(),w="tag",pt):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",pt(k,F,H)):(w="error",ht)}function Y(k,F,H){if(k=="word"){var Q=F.current();return H.context&&H.context.tagName!=Q&&d.implicitlyClosed.hasOwnProperty(M(H.context.tagName))&&E(H),H.context&&H.context.tagName==Q||d.matchClosing===!1?(w="tag",nt):(w="tag error",at)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",nt(k,F,H)):(w="error",at)}function nt(k,F,H){return k!="endTag"?(w="error",nt):(E(H),K)}function at(k,F,H){return w="error",nt(k,F,H)}function pt(k,F,H){if(k=="word")return w="attribute",gt;if(k=="endTag"||k=="selfcloseTag"){var Q=H.tagName,yt=H.tagStart;return H.tagName=H.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(M(Q))?B(H,Q):(B(H,Q),H.context=new R(H,Q,yt==H.indented)),K}return w="error",pt}function gt(k,F,H){return k=="equals"?G:(d.allowMissing||(w="error"),pt(k,F,H))}function G(k,F,H){return k=="string"?z:k=="word"&&d.allowUnquoted?(w="string",pt):(w="error",pt(k,F,H))}function z(k,F,H){return k=="string"?z:pt(k,F,H)}return{startState:function(k){var F={tokenize:S,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;b=null;var H=F.tokenize(k,F);return(H||b)&&H!="comment"&&(w=null,F.state=F.state(b||H,k,F),w&&(H=w=="error"?H+" error":w)),H},indent:function(k,F,H){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!=P&&k.tokenize!=S)return H?H.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=pt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var F=[],H=k.context;H;H=H.prev)F.push(H.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 Rat=$at.exports;(function(t,e){(function(r){r(ys,Rat,Dat)})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}function s(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&s(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(u,f&&f.base||"javascript");function g(S){var P=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=P,A}function v(S,P){return P.context.mode==h?b(S,P,P.context):w(S,P,P.context)}function b(S,P,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var L=g(A.state),T=A.state.context;if(T&&S.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return P.context=new o(r.startState(d,L),d,0,P.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),P.context=new o(r.startState(h,g(A.state)),h,0,P.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,v(S,P)}var M=h.token(S,A.state),R=S.current(),E;return/\btag\b/.test(M)?/>$/.test(R)?A.state.context?A.depth=0:P.context=P.context.prev:/^-1&&S.backUp(R.length-E),M}function w(S,P,A){if(S.peek()=="<"&&!S.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&d.expressionAllowed(S,A.state))return P.context=new o(r.startState(h,d.indent(A.state,"","")),h,0,P.context),d.skipExpression(A.state),null;var L=d.token(S,A.state);if(!L&&A.depth!=null){var T=S.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(P.context=P.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(S){return{context:s(S.context)}},token:v,indent:function(S,P,A){return S.context.mode.indent(S.context.state,P,A)},innerMode:function(S){return S.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(ys)})(function(r){r.defineOption("placeholder","",function(g,v,b){var w=b&&b!=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(){u(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 S=g.getWrapperElement();S.className=S.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 b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),v.appendChild(b),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var b=g.getInputField();v=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}v?s(g):o(g)},20)}function f(g){d(g)&&s(g)}function h(g){var v=g.getWrapperElement(),b=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?s(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(ys)})(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(b){if(b.which!=1)return;r.e_preventDefault(b);var w=g.orientation=="horizontal"?"pageX":"pageY",S=b[w],P=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(T){if(T.which!=1)return A();g.moveTo(P+(T[w]-S)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var w=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientXw.right?1:0:S=b.clientYw.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function v(b){var w=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+w),g.pos!=S&&r.e_preventDefault(b)}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}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.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 u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function zat(t,e,r={}){const o=Pat.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}e.value=o.getValue()}),Re(e,u=>{if(u!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),vh(o)}const Iat={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},ob=ie({__name:"CodeMirror",props:Cf({mode:{},readOnly:{type:Boolean}},{modelValue:{}}),emits:Cf(["save"],["update:modelValue"]),setup(t,{expose:e,emit:r}){const o=r,s=s0(t,"modelValue"),u=w_(),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=vs();return e({cm:d}),ms(async()=>{d.value=zat(h,s,{...u,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(),kt("div",Iat,[tt("textarea",{ref_key:"el",ref:h},null,512)]))}}),Fat=ie({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:e}){const r=t,o=e,s=Zt(""),u=vs(void 0),f=Zt(!1);Re(()=>r.file,async()=>{var R;if(!r.file||!((R=r.file)!=null&&R.filepath)){s.value="",u.value=s.value,f.value=!1;return}s.value=await je.rpc.readTestFile(r.file.filepath)||"",u.value=s.value,f.value=!1},{immediate:!0});const h=xt(()=>{var R,E;return((E=(R=r.file)==null?void 0:R.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),d=Zt(),g=xt(()=>{var R;return(R=d.value)==null?void 0:R.cm}),v=xt(()=>{var R;return((R=r.file)==null?void 0:R.tasks.filter(E=>{var B;return((B=E.result)==null?void 0:B.state)==="fail"}))||[]}),b=[],w=[],S=[],P=Zt(!1);function A(){S.forEach(([R,E,B])=>{R.removeEventListener("click",E),B()}),S.length=0}Plt(d,()=>{var R;(R=g.value)==null||R.refresh()});function L(){f.value=u.value!==g.value.getValue()}Re(f,R=>{o("draft",R)},{immediate:!0});function T(R){const E=((R==null?void 0:R.stacks)||[]).filter(at=>{var pt;return at.file&&at.file===((pt=r.file)==null?void 0:pt.filepath)}),B=E==null?void 0:E[0];if(!B)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const ht=document.createElement("pre");ht.className="c-red-600 dark:c-red-400",ht.textContent=`${" ".repeat(B.column)}^ ${(R==null?void 0:R.nameStr)||R.name}: ${(R==null?void 0:R.message)||""}`,K.appendChild(ht);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",Y0(Y,{content:"Open in Editor",placement:"bottom"},!1);const nt=async()=>{await $y(B.file,B.line,B.column)};K.appendChild(Y),S.push([Y,nt,()=>qh(Y)]),w.push(g.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),b.push(g.value.addLineWidget(B.line-1,K))}Re([g,v],([R])=>{if(!R){A();return}setTimeout(()=>{A(),b.forEach(E=>E.clear()),w.forEach(E=>{var B;return(B=g.value)==null?void 0:B.removeLineClass(E,"wrap")}),b.length=0,w.length=0,R.on("changes",L),v.value.forEach(E=>{var B,K;(K=(B=E.result)==null?void 0:B.errors)==null||K.forEach(T)}),P.value||R.clearHistory()},100)},{flush:"post"});async function M(R){P.value=!0,await je.rpc.saveTestFile(r.file.filepath,R),u.value=R,f.value=!1}return(R,E)=>{const B=ob;return st(),te(B,Ci({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"])}}}),qat=ie({__name:"Modal",props:Cf({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup(t){const e=s0(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(u,f)=>(st(),kt("div",{class:ve(["fixed inset-0 z-40",e.value?"":"pointer-events-none"])},[tt("div",{class:ve(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",e.value?"opacity-50":"opacity-0"]),onClick:s},null,2),tt("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:An(e.value?{}:{transform:U(o)})},[sr(u.$slots,"default")],6)],2))}}),Hat=["aria-label","opacity","disabled","hover"],bs=ie({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(e,r)=>(st(),kt("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"},[sr(e.$slots,"default",{},()=>[tt("div",{class:ve(e.icon),ma:""},null,2)])],8,Hat))}}),Bat={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wat={"p-4":"",relative:""},Uat=tt("p",null,"Module Info",-1),jat={op50:"","font-mono":"","text-sm":""},Vat={key:0,"p-5":""},Gat={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Kat=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Xat=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Yat={key:0},Zat={p:"x3 y-1","bg-overlay":"",border:"base b t"},Qat=ie({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:e}){const r=t,o=e,s=wlt(()=>je.rpc.getTransformResult(r.id)),u=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,b,w;return{mappings:((v=(g=s.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(w=(b=s.value)==null?void 0:b.map)==null?void 0:w.version}});return _lt("Escape",()=>{o("close")}),(g,v)=>{const b=bs,w=ob;return st(),kt("div",Bat,[tt("div",Wat,[Uat,tt("p",jat,Ut(g.id),1),Ft(b,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=S=>o("close"))})]),U(s)?(st(),kt(ne,{key:1},[tt("div",Gat,[Kat,Xat,Ft(w,Ci({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"]),Ft(w,Ci({"h-full":"","model-value":U(h),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])]),U(d).mappings!==""?(st(),kt("div",Yat,[tt("div",Zat," Source map (v"+Ut(U(d).version)+") ",1),Ft(w,Ci({"model-value":U(d).mappings,"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])])):Vt("",!0)],64)):(st(),kt("div",Vat," No transform result found for this module. "))])}}});function Jat(t,e){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),e)}}var Xf="http://www.w3.org/1999/xhtml";const Yv={svg:"http://www.w3.org/2000/svg",xhtml:Xf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Yv.hasOwnProperty(e)?{space:Yv[e],local:t}:t}function tct(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Xf&&e.documentElement.namespaceURI===Xf?e.createElement(t):e.createElementNS(r,t)}}function ect(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function sb(t){var e=Gc(t);return(e.local?ect:tct)(e)}function nct(){}function Zh(t){return t==null?nct:function(){return this.querySelector(t)}}function rct(t){typeof t!="function"&&(t=Zh(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s=R&&(R=M+1);!(B=L[R])&&++R=0;)(f=o[s])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function Lct(t){t||(t=Act);function e(b,w){return b&&w?t(b.__data__,w.__data__):!b-!w}for(var r=this._groups,o=r.length,s=new Array(o),u=0;ue?1:t>=e?0:NaN}function Mct(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Nct(){return Array.from(this)}function Pct(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?Wct:typeof e=="function"?jct:Uct)(t,e,r??"")):hs(this.node(),t)}function hs(t,e){return t.style.getPropertyValue(e)||fb(t).getComputedStyle(t,null).getPropertyValue(e)}function Gct(t){return function(){delete this[t]}}function Kct(t,e){return function(){this[t]=e}}function Xct(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Yct(t,e){return arguments.length>1?this.each((e==null?Gct:typeof e=="function"?Xct:Kct)(t,e)):this.node()[t]}function hb(t){return t.trim().split(/^|\s+/)}function Qh(t){return t.classList||new db(t)}function db(t){this._node=t,this._names=hb(t.getAttribute("class")||"")}db.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 pb(t,e){for(var r=Qh(t),o=-1,s=e.length;++o=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function kut(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,s=e.length,u;r{}};function Fl(){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}})}Ga.prototype=Fl.prototype={constructor:Ga,on:function(t,e){var r=this._,o=Dut(t+"",r),s,u=-1,f=o.length;if(arguments.length<2){for(;++u0)for(var r=new Array(s),o=0,s,u;o()=>t;function Yf(t,{sourceEvent:e,subject:r,target:o,identifier:s,active:u,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:u,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}})}Yf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function zut(t){return!t.ctrlKey&&!t.button}function Iut(){return this.parentNode}function Fut(t,e){return e??{x:t.x,y:t.y}}function qut(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hut(){var t=zut,e=Iut,r=Fut,o=qut,s={},u=Fl("start","drag","end"),f=0,h,d,g,v,b=0;function w(E){E.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",T,Rut).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(E,B){if(!(v||!t.call(this,E,B))){var K=R(this,e.call(this,E,B),E,B,"mouse");K&&(En(E.view).on("mousemove.drag",P,Cl).on("mouseup.drag",A,Cl),yb(E.view),uf(E),g=!1,h=E.clientX,d=E.clientY,K("start",E))}}function P(E){if(Jo(E),!g){var B=E.clientX-h,K=E.clientY-d;g=B*B+K*K>b}s.mouse("drag",E)}function A(E){En(E.view).on("mousemove.drag mouseup.drag",null),bb(E.view,g),Jo(E),s.mouse("end",E)}function L(E,B){if(t.call(this,E,B)){var K=E.changedTouches,ht=e.call(this,E,B),Y=K.length,nt,at;for(nt=0;nt>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Oa(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Oa(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=Wut.exec(t))?new Ln(e[1],e[2],e[3],1):(e=Uut.exec(t))?new Ln(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=jut.exec(t))?Oa(e[1],e[2],e[3],e[4]):(e=Vut.exec(t))?Oa(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Gut.exec(t))?im(e[1],e[2]/100,e[3]/100,1):(e=Kut.exec(t))?im(e[1],e[2]/100,e[3]/100,e[4]):Qv.hasOwnProperty(t)?em(Qv[t]):t==="transparent"?new Ln(NaN,NaN,NaN,0):null}function em(t){return new Ln(t>>16&255,t>>8&255,t&255,1)}function Oa(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ln(t,e,r,o)}function Zut(t){return t instanceof ql||(t=Ll(t)),t?(t=t.rgb(),new Ln(t.r,t.g,t.b,t.opacity)):new Ln}function Zf(t,e,r,o){return arguments.length===1?Zut(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}Jh(Ln,Zf,wb(ql,{brighter(t){return t=t==null?vc:Math.pow(vc,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Tl:Math.pow(Tl,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ln(no(this.r),no(this.g),no(this.b),mc(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:nm,formatHex:nm,formatHex8:Qut,formatRgb:rm,toString:rm}));function nm(){return`#${Qi(this.r)}${Qi(this.g)}${Qi(this.b)}`}function Qut(){return`#${Qi(this.r)}${Qi(this.g)}${Qi(this.b)}${Qi((isNaN(this.opacity)?1:this.opacity)*255)}`}function rm(){const t=mc(this.opacity);return`${t===1?"rgb(":"rgba("}${no(this.r)}, ${no(this.g)}, ${no(this.b)}${t===1?")":`, ${t})`}`}function mc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function no(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Qi(t){return t=no(t),(t<16?"0":"")+t.toString(16)}function im(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new or(t,e,r,o)}function xb(t){if(t instanceof or)return new or(t.h,t.s,t.l,t.opacity);if(t instanceof ql||(t=Ll(t)),!t)return new or;if(t instanceof or)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,s=Math.min(e,r,o),u=Math.max(e,r,o),f=NaN,h=u-s,d=(u+s)/2;return h?(e===u?f=(r-o)/h+(r0&&d<1?0:f,new or(f,h,d,t.opacity)}function Jut(t,e,r,o){return arguments.length===1?xb(t):new or(t,e,r,o??1)}function or(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}Jh(or,Jut,wb(ql,{brighter(t){return t=t==null?vc:Math.pow(vc,t),new or(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Tl:Math.pow(Tl,t),new or(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(ff(t>=240?t-240:t+120,s,o),ff(t,s,o),ff(t<120?t+240:t-120,s,o),this.opacity)},clamp(){return new or(om(this.h),Da(this.s),Da(this.l),mc(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=mc(this.opacity);return`${t===1?"hsl(":"hsla("}${om(this.h)}, ${Da(this.s)*100}%, ${Da(this.l)*100}%${t===1?")":`, ${t})`}`}}));function om(t){return t=(t||0)%360,t<0?t+360:t}function Da(t){return Math.max(0,Math.min(1,t||0))}function ff(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 _b=t=>()=>t;function tft(t,e){return function(r){return t+r*e}}function eft(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 nft(t){return(t=+t)==1?Sb:function(e,r){return r-e?eft(e,r,t):_b(isNaN(e)?r:e)}}function Sb(t,e){var r=e-t;return r?tft(t,r):_b(isNaN(t)?e:t)}const sm=function t(e){var r=nft(e);function o(s,u){var f=r((s=Zf(s)).r,(u=Zf(u)).r),h=r(s.g,u.g),d=r(s.b,u.b),g=Sb(s.opacity,u.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 bi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Qf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hf=new RegExp(Qf.source,"g");function rft(t){return function(){return t}}function ift(t){return function(e){return t(e)+""}}function oft(t,e){var r=Qf.lastIndex=hf.lastIndex=0,o,s,u,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=Qf.exec(t))&&(s=hf.exec(e));)(u=s.index)>r&&(u=e.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,d.push({i:f,x:bi(o,s)})),r=hf.lastIndex;return r180?v+=360:v-g>180&&(g+=360),w.push({i:b.push(s(b)+"rotate(",null,o)-2,x:bi(g,v)})):v&&b.push(s(b)+"rotate("+v+o)}function h(g,v,b,w){g!==v?w.push({i:b.push(s(b)+"skewX(",null,o)-2,x:bi(g,v)}):v&&b.push(s(b)+"skewX("+v+o)}function d(g,v,b,w,S,P){if(g!==b||v!==w){var A=S.push(s(S)+"scale(",null,",",null,")");P.push({i:A-4,x:bi(g,b)},{i:A-2,x:bi(v,w)})}else(b!==1||w!==1)&&S.push(s(S)+"scale("+b+","+w+")")}return function(g,v){var b=[],w=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,b,w),f(g.rotate,v.rotate,b,w),h(g.skewX,v.skewX,b,w),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,w),g=v=null,function(S){for(var P=-1,A=w.length,L;++P=0&&t._call.call(void 0,e),t=t._next;--ds}function cm(){lo=(bc=Al.now())+Kc,ds=ol=0;try{gft()}finally{ds=0,mft(),lo=0}}function vft(){var t=Al.now(),e=t-bc;e>Tb&&(Kc-=e,bc=t)}function mft(){for(var t,e=yc,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:yc=r);sl=t,th(o)}function th(t){if(!ds){ol&&(ol=clearTimeout(ol));var e=t-lo;e>24?(t<1/0&&(ol=setTimeout(cm,t-Al.now()-Kc)),el&&(el=clearInterval(el))):(el||(bc=Al.now(),el=setInterval(vft,Tb)),ds=1,Eb(cm))}}function um(t,e,r){var o=new wc;return e=e==null?0:+e,o.restart(s=>{o.stop(),t(s+e)},e,r),o}var yft=Fl("start","end","cancel","interrupt"),bft=[],Lb=0,fm=1,eh=2,Ka=3,hm=4,nh=5,Xa=6;function Xc(t,e,r,o,s,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;wft(t,r,{name:e,index:o,group:s,on:yft,tween:bft,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Lb})}function nd(t,e){var r=ar(t,e);if(r.state>Lb)throw new Error("too late; already scheduled");return r}function kr(t,e){var r=ar(t,e);if(r.state>Ka)throw new Error("too late; already running");return r}function ar(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function wft(t,e,r){var o=t.__transition,s;o[e]=r,r.timer=ed(u,0,r.time);function u(g){r.state=fm,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,b,w,S;if(r.state!==fm)return d();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ka)return um(f);S.state===hm?(S.state=Xa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+veh&&o.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function Yft(t,e,r){var o,s,u=Xft(e)?nd:kr;return function(){var f=u(this,t),h=f.on;h!==o&&(s=(o=h).copy()).on(e,r),f.on=s}}function Zft(t,e){var r=this._id;return arguments.length<2?ar(this.node(),r).on.on(t):this.each(Yft(r,t,e))}function Qft(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Jft(){return this.on("end.remove",Qft(this._id))}function tht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Zh(t));for(var o=this._groups,s=o.length,u=new Array(s),f=0;f()=>t;function Cht(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 Ir(t,e,r){this.k=t,this.x=e,this.y=r}Ir.prototype={constructor:Ir,scale:function(t){return t===1?this:new Ir(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ir(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 id=new Ir(1,0,0);Ir.prototype;function df(t){t.stopImmediatePropagation()}function nl(t){t.preventDefault(),t.stopImmediatePropagation()}function Tht(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Eht(){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 dm(){return this.__zoom||id}function Lht(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Aht(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mht(t,e,r){var o=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],u=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>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function Nht(){var t=Tht,e=Eht,r=Mht,o=Lht,s=Aht,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=dft,g=Fl("start","zoom","end"),v,b,w,S=500,P=150,A=0,L=10;function T(z){z.property("__zoom",dm).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",nt).on("dblclick.zoom",at).filter(s).on("touchstart.zoom",pt).on("touchmove.zoom",gt).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,F,H){var Q=z.selection?z.selection():z;Q.property("__zoom",dm),z!==Q?B(z,k,F,H):Q.interrupt().each(function(){K(this,arguments).event(H).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,F,H){T.scaleTo(z,function(){var Q=this.__zoom.k,yt=typeof k=="function"?k.apply(this,arguments):k;return Q*yt},F,H)},T.scaleTo=function(z,k,F,H){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,qt=yt.invert(At),Ht=typeof k=="function"?k.apply(this,arguments):k;return r(R(M(yt,Ht),At,qt),Q,f)},F,H)},T.translateBy=function(z,k,F,H){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,H)},T.translateTo=function(z,k,F,H,Q){T.transform(z,function(){var yt=e.apply(this,arguments),At=this.__zoom,qt=H==null?E(yt):typeof H=="function"?H.apply(this,arguments):H;return r(id.translate(qt[0],qt[1]).scale(At.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof F=="function"?-F.apply(this,arguments):-F),yt,f)},H,Q)};function M(z,k){return k=Math.max(u[0],Math.min(u[1],k)),k===z.k?z:new Ir(k,z.x,z.y)}function R(z,k,F){var H=k[0]-F[0]*z.k,Q=k[1]-F[1]*z.k;return H===z.x&&Q===z.y?z:new Ir(z.k,H,Q)}function E(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function B(z,k,F,H){z.on("start.zoom",function(){K(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(H).end()}).tween("zoom",function(){var Q=this,yt=arguments,At=K(Q,yt).event(H),qt=e.apply(Q,yt),Ht=F==null?E(qt):typeof F=="function"?F.apply(Q,yt):F,Jt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),Qt=Q.__zoom,Gt=typeof k=="function"?k.apply(Q,yt):k,Tt=d(Qt.invert(Ht).concat(Jt/Qt.k),Gt.invert(Ht).concat(Jt/Gt.k));return function(j){if(j===1)j=Gt;else{var rt=Tt(j),lt=Jt/rt[2];j=new Ir(lt,Ht[0]-rt[0]*lt,Ht[1]-rt[1]*lt)}At.zoom(null,j)}})}function K(z,k,F){return!F&&z.__zooming||new ht(z,k)}function ht(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(z,k),this.taps=0}ht.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 Cht(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),H=this.__zoom,Q=Math.max(u[0],Math.min(u[1],H.k*Math.pow(2,o.apply(this,arguments)))),yt=Rr(z);if(F.wheel)(F.mouse[0][0]!==yt[0]||F.mouse[0][1]!==yt[1])&&(F.mouse[1]=H.invert(F.mouse[0]=yt)),clearTimeout(F.wheel);else{if(H.k===Q)return;F.mouse=[yt,H.invert(yt)],Ya(this),F.start()}nl(z),F.wheel=setTimeout(At,P),F.zoom("mouse",r(R(M(H,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,H=K(this,k,!0).event(z),Q=En(z.view).on("mousemove.zoom",Ht,!0).on("mouseup.zoom",Jt,!0),yt=Rr(z,F),At=z.clientX,qt=z.clientY;yb(z.view),df(z),H.mouse=[yt,this.__zoom.invert(yt)],Ya(this),H.start();function Ht(Qt){if(nl(Qt),!H.moved){var Gt=Qt.clientX-At,Tt=Qt.clientY-qt;H.moved=Gt*Gt+Tt*Tt>A}H.event(Qt).zoom("mouse",r(R(H.that.__zoom,H.mouse[0]=Rr(Qt,F),H.mouse[1]),H.extent,f))}function Jt(Qt){Q.on("mousemove.zoom mouseup.zoom",null),bb(Qt.view,H.moved),nl(Qt),H.event(Qt).end()}}function at(z,...k){if(t.apply(this,arguments)){var F=this.__zoom,H=Rr(z.changedTouches?z.changedTouches[0]:z,this),Q=F.invert(H),yt=F.k*(z.shiftKey?.5:2),At=r(R(M(F,yt),H,Q),e.apply(this,k),f);nl(z),h>0?En(this).transition().duration(h).call(B,At,H,z):En(this).call(T.transform,At,H,z)}}function pt(z,...k){if(t.apply(this,arguments)){var F=z.touches,H=F.length,Q=K(this,k,z.changedTouches.length===H).event(z),yt,At,qt,Ht;for(df(z),At=0;At=(b=(h+g)/2))?h=b:g=b,(L=r>=(w=(d+v)/2))?d=w:v=w,s=u,!(u=u[T=L<<1|A]))return s[T]=f,t;if(S=+t._x.call(null,u.data),P=+t._y.call(null,u.data),e===S&&r===P)return f.next=u,s?s[T]=f:t._root=f,t;do s=s?s[T]=new Array(4):t._root=new Array(4),(A=e>=(b=(h+g)/2))?h=b:g=b,(L=r>=(w=(d+v)/2))?d=w:v=w;while((T=L<<1|A)===(M=(P>=w)<<1|S>=b));return s[M]=u,s[T]=f,t}function Oht(t){var e,r,o=t.length,s,u,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,b=-1/0;for(r=0;rv&&(v=s),ub&&(b=u));if(d>v||g>b)return this;for(this.cover(d,g).cover(v,b),r=0;rt||t>=s||o>e||e>=u;)switch(g=(ev||(h=P.y0)>b||(d=P.x1)=T)<<1|t>=L)&&(P=w[w.length-1],w[w.length-1]=w[w.length-1-A],w[w.length-1-A]=P)}else{var M=t-+this._x.call(null,S.data),R=e-+this._y.call(null,S.data),E=M*M+R*R;if(E=(w=(f+d)/2))?f=w:d=w,(A=b>=(S=(h+g)/2))?h=S:g=S,e=r,!(r=r[L=A<<1|P]))return this;if(!r.length)break;(e[L+1&3]||e[L+2&3]||e[L+3&3])&&(o=e,T=L)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,s?(u?s.next=u:delete s.next,this):e?(u?e[L]=u:delete e[L],(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=u,this)}function Fht(t){for(var e=0,r=t.length;ew.index){var pt=S-Y.x-Y.vx,gt=P-Y.y-Y.vy,G=pt*pt+gt*gt;GS+at||KP+at||htg.r&&(g.r=g[v].r)}function d(){if(e){var g,v=e.length,b;for(r=new Array(v),g=0;g[e(B,K,f),B])),E;for(L=0,h=new Array(T);L(t=(Jht*t+tdt)%vm)/vm}function ndt(t){return t.x}function rdt(t){return t.y}var idt=10,odt=Math.PI*(3-Math.sqrt(5));function sdt(t){var e,r=1,o=.001,s=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=ed(b),g=Fl("tick","end"),v=edt();t==null&&(t=[]);function b(){w(),g.call("tick",e),r1?(L==null?h.delete(A):h.set(A,P(L)),e):h.get(A)},find:function(A,L,T){var M=0,R=t.length,E,B,K,ht,Y;for(T==null?T=1/0:T*=T,M=0;M1?(g.on(A,L),e):g.on(A)}}}function ldt(){var t,e,r,o,s=vn(-30),u,f=1,h=1/0,d=.81;function g(S){var P,A=t.length,L=od(t,ndt,rdt).visitAfter(b);for(o=S,P=0;P=h)return;(S.data!==e||S.next)&&(T===0&&(T=xi(r),E+=T*T),M===0&&(M=xi(r),E+=M*M),Ee in t?udt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oe=(t,e,r)=>(fdt(t,typeof e!="symbol"?e+"":e,r),r);function hdt(){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 mm(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 _i(...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]=_i.options.mergeArrays?Array.from(new Set(e[o].concat(r[o]))):r[o]:mm(e[o])&&mm(r[o])?e[o]=_i(e[o],r[o]):e[o]=r[o])}),e},{})}const Ob={mergeArrays:!0};_i.options=Ob;_i.withOptions=(t,...e)=>{_i.options={mergeArrays:!0,...t};const r=_i(...e);return _i.options=Ob,r};function ddt(){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 pdt(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Db(t){t.preventDefault(),t.stopPropagation()}function $b(t){return typeof t=="number"}function Ai(t,e){return $b(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function gdt(t){return`${t.source.id}-${t.target.id}`}function Rb(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function vdt(t){return`url(#${Rb(t.color)})`}function mdt(t){return{size:t,padding:(e,r)=>Ai(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const zb={Arrow:t=>mdt(t)},ydt=(t,e,r)=>[e/2,r/2],Ib=(t,e,r)=>[ym(0,e),ym(0,r)];function ym(t,e){return Math.random()*(e-t)+t}function bdt(t){const e=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[u,f]=e[r.id]??[];return!u||!f?Ib(r,o,s):[u,f]}}const rh={Centered:ydt,Randomized:Ib,Stable:bdt};function wdt(){return{autoResize:!1,callbacks:{},hooks:{},initial:pdt(),nodeRadius:16,marker:zb.Arrow(4),modifiers:{},positionInitializer:rh.Centered,simulation:{alphas:hdt(),forces:ddt()},zoom:{initial:1,min:.1,max:2}}}function xdt(t={}){return _i.withOptions({mergeArrays:!1},wdt(),t)}function _dt({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[u,f],scale:h,zoom:d}){const g=e.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>Db(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,id.translate(u,f).scale(h)),g.append("g")}function Sdt({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function kdt({config:t,onDragStart:e,onDragEnd:r}){var o,s;const u=Hut().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,u),u}function Cdt({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:s}){const u=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&s(d)),f=d=>u.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:u}:Tdt({nodes:h,links:u},r)}function Tdt(t,e){const r=[...Edt(t,e),...Ldt(t,e)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function Edt(t,e){return Fb(t,e,(r,o)=>r.target.id===o.id)}function Ldt(t,e){return Fb(t,e,(r,o)=>r.source.id===o.id)}function Fb(t,e,r){const o=new Set(t.links),s=new Set([e]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...s].some(d=>r(h,d)));if(f.length===0)return u;f.forEach(h=>{s.add(h.source),s.add(h.target),u.push(h),o.delete(h)})}return u}function ih(t){return t.x??0}function oh(t){return t.y??0}function ld({source:t,target:e}){const r=new pn(ih(t),oh(t)),o=new pn(ih(e),oh(e)),s=o.subtract(r),u=s.length(),f=s.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function qb({center:t,node:e}){const r=new pn(ih(e),oh(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 Hb({config:t,source:e,target:r}){const{s:o,t:s,norm:u}=ld({config:t,source:e,target:r}),f=o.add(u.multiply(Ai(t,e)-1)),h=s.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function Adt(t){const{start:e,end:r}=Hb(t);return`M${e.x},${e.y} L${r.x},${r.y}`}function Mdt(t){const{start:e,end:r}=Hb(t),o=r.subtract(e).multiply(.5),s=e.add(o);return`translate(${s.x-8},${s.y-4})`}function Ndt({config:t,source:e,target:r}){const{s:o,t:s,dist:u,norm:f,endNorm:h}=ld({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(Ai(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(Ai(t,r)).add(s).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y} A${b},${b},0,0,1,${v.x},${v.y}`}function Pdt({center:t,config:e,node:r}){const{n:o,c:s}=qb({center:t,config:e,node:r}),u=Ai(e,r),f=o.subtract(s),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(u-1).add(o),v=h.rotateByDegrees(-d).multiply(u).add(o).add(h.rotateByDegrees(-d).multiply(2*e.marker.size));return`M${g.x},${g.y} A${u},${u},0,1,0,${v.x},${v.y}`}function Odt({config:t,source:e,target:r}){const{t:o,dist:s,endNorm:u}=ld({config:t,source:e,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*s).add(o);return`translate(${h.x},${h.y})`}function Ddt({center:t,config:e,node:r}){const{n:o,c:s}=qb({center:t,config:e,node:r}),u=o.subtract(s),f=u.multiply(1/u.length()).multiply(3*Ai(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const es={line:{labelTransform:Mdt,path:Adt},arc:{labelTransform:Odt,path:Ndt},reflexive:{labelTransform:Ddt,path:Pdt}};function $dt(t){return t.append("g").classed("links",!0).selectAll("path")}function Rdt({config:t,graph:e,selection:r,showLabels:o}){const s=r==null?void 0:r.data(e.links,u=>gdt(u)).join(u=>{var f,h,d,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>vdt(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const w=v.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(d=t.modifiers).linkLabel)==null||g.call(d,w),v});return s==null||s.select(".link__label").attr("opacity",u=>u.label&&o?1:0),s}function zdt(t){Idt(t),Fdt(t)}function Idt({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?es.reflexive.path({config:e,node:s.source,center:t}):Bb(r,s.source,s.target)?es.arc.path({config:e,source:s.source,target:s.target}):es.line.path({config:e,source:s.source,target:s.target}))}function Fdt({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?es.reflexive.labelTransform({config:t,node:s.source,center:e}):Bb(r,s.source,s.target)?es.arc.labelTransform({config:t,source:s.source,target:s.target}):es.line.labelTransform({config:t,source:s.source,target:s.target}))}function Bb(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 qdt(t){return t.append("defs").selectAll("marker")}function Hdt({config:t,graph:e,selection:r}){return r==null?void 0:r.data(Bdt(e),o=>o).join(o=>{const s=o.append("marker").attr("id",u=>Rb(u)).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",u=>u);return s.append("path").attr("d",Wdt(t.marker.path)),s})}function Bdt(t){return[...new Set(t.links.map(e=>e.color))]}function Wdt(t){const[e,...r]=t;if(!e)return"M0,0";const[o,s]=e;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${s}`)}function Udt(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function jdt({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:s,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,d=>d.id).join(d=>{var g,v,b,w;const S=d.append("g");e!==void 0&&S.call(e);const P=S.append("circle").classed("node",!0).attr("r",L=>Ai(t,L)).on("contextmenu",(L,T)=>{Db(L),o(T)}).on("pointerdown",(L,T)=>Gdt(L,T,s??o)).style("fill",L=>L.color);(v=(g=t.modifiers).node)==null||v.call(g,P);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(w=(b=t.modifiers).nodeLabel)==null||w.call(b,A),S});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Vdt=500;function Gdt(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>Vdt){e.lastInteractionTimestamp=s;return}e.lastInteractionTimestamp=void 0,r(e)}function Kdt(t){t==null||t.attr("transform",e=>`translate(${e.x??0},${e.y??0})`)}function Xdt({center:t,config:e,graph:r,onTick:o}){var s,u;const f=sdt(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",adt(()=>t().x).strength(b)).force("y",cdt(()=>t().y).strength(b))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",ldt().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",Yht().radius(b=>g.radiusMultiplier*Ai(e,b)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",Qht(r.links).id(b=>b.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(s=e.modifiers).simulation)==null||u.call(s,f),f}function Ydt({canvasContainer:t,config:e,min:r,max:o,onZoom:s}){var u,f;const h=Nht().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=(u=e.modifiers).zoom)==null||f.call(u,h),h}class Zdt{constructor(e,r,o){if(Oe(this,"nodeTypes"),Oe(this,"_nodeTypeFilter"),Oe(this,"_includeUnlinked",!0),Oe(this,"_linkFilter",()=>!0),Oe(this,"_showLinkLabels",!0),Oe(this,"_showNodeLabels",!0),Oe(this,"filteredGraph"),Oe(this,"width",0),Oe(this,"height",0),Oe(this,"simulation"),Oe(this,"canvas"),Oe(this,"linkSelection"),Oe(this,"nodeSelection"),Oe(this,"markerSelection"),Oe(this,"zoom"),Oe(this,"drag"),Oe(this,"xOffset",0),Oe(this,"yOffset",0),Oe(this,"scale"),Oe(this,"focusedNode"),Oe(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[u,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??u,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:u,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=u??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(Jat(()=>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,u=e.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart($b(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:s}))}restart(e){var r;this.markerSelection=Hdt({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Rdt({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=jdt({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=Xdt({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=Ydt({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=_dt({applyZoom:this.scale!==1,container:En(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=$dt(this.canvas),this.nodeSelection=Udt(this.canvas),this.markerSelection=qdt(this.canvas),this.drag=kdt({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(){Kdt(this.nodeSelection),zdt({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(){Sdt({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=Cdt({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function bm({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function Qdt(t){return{...t}}function Wb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Jdt={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},tpt={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},ept=["id","checked","onChange"],npt=["for"],rpt=tt("div",{"flex-auto":""},null,-1),ipt=ie({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const e=t,{graph:r}=O1(e),o=Zt(),s=Zt(!1),u=Zt(),f=Zt();Ch(()=>{s.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ms(()=>{g()}),Eh(()=>{var b;(b=f.value)==null||b.shutdown()}),Re(r,g);function h(b,w){var S;(S=f.value)==null||S.filterNodesByType(w,b)}function d(b){u.value=b,s.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Zdt(o.value,r.value,xdt({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:S})=>w===0&&S===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:zb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?rh.Randomized:rh.Centered,zoom:{min:.5,max:2}})))}function v(b){if(jr)return;const w=L=>L.button===0;let S=0,P=0,A=0;b.on("pointerdown",(L,T)=>{T.type!=="external"&&(!T.x||!T.y||!w(L)||(S=T.x,P=T.y,A=Date.now()))}).on("pointerup",(L,T)=>{if(T.type==="external"||!T.x||!T.y||!w(L)||Date.now()-A>500)return;const M=T.x-S,R=T.y-P;M**2+R**2<100&&d(T.id)})}return(b,w)=>{var T;const S=bs,P=Qat,A=qat,L=uo("tooltip");return st(),kt("div",Jdt,[tt("div",null,[tt("div",tpt,[(st(!0),kt(ne,null,Rn((T=U(f))==null?void 0:T.nodeTypes.sort(),M=>{var R;return st(),kt("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[tt("input",{id:`type-${M}`,type:"checkbox",checked:(R=U(f))==null?void 0:R.nodeTypeFilter.includes(M),onChange:E=>h(M,E.target.checked)},null,40,ept),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,npt)])}),128)),rpt,tt("div",null,[nn(Ft(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),tt("div",{ref_key:"el",ref:o},null,512),Ft(A,{modelValue:U(s),"onUpdate:modelValue":w[1]||(w[1]=M=>Le(s)?s.value=M:null),direction:"right"},{default:ee(()=>[U(u)?(st(),te(Q1,{key:0},{default:ee(()=>[Ft(P,{id:U(u),onClose:w[0]||(w[0]=M=>s.value=!1)},null,8,["id"])]),_:1})):Vt("",!0)]),_:1},8,["modelValue"])])}}}),opt={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},spt={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},lpt={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},apt={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},cpt={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},upt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},ad=ie({__name:"StatusIcon",props:{task:{}},setup(t){return(e,r)=>{var s,u,f;const o=uo("tooltip");return((s=e.task.result)==null?void 0:s.state)==="pass"?(st(),kt("div",opt)):U(Wc)(e.task)?nn((st(),kt("div",spt,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=e.task.result)==null?void 0:u.state)==="fail"?(st(),kt("div",lpt)):e.task.mode==="todo"?nn((st(),kt("div",apt,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((f=e.task.result)==null?void 0:f.state)==="skip"?nn((st(),kt("div",cpt,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(st(),kt("div",upt))}}});function fpt(t){const e=new Map,r=new Map,o=[];for(;;){let s=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){s++;const{raw:b,candidate:w}=u;e.set(b,w);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,s===t.length)break}return e}function hpt(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 dpt(t){const e=t.map(o=>hpt(o)),r=fpt(e);return e.map(({raw:o,id:s})=>Wb({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 ppt(t,e){return Wb({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 gpt(t,e){if(!t)return bm({});const r=dpt(t.externalized),o=t.inlined.map(h=>ppt(h,h===e))??[],s=[...r,...o],u=Object.fromEntries(s.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=u[h],b=u[g];if(!(v===void 0||b===void 0))return Qdt({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return bm({nodes:s,links:f})}const vpt={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"},ypt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},bpt={class:"flex text-lg"},wpt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},xpt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},_pt=["flex-1"],Spt=ie({__name:"FileDetails",setup(t){const e=Zt({externalized:[],graph:{},inlined:[]}),r=Zt({nodes:[],links:[]}),o=Zt(!1),s=Zt(!1);ylt(Se,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await je.rpc.getModuleGraph(g.filepath),r.value=gpt(e.value,g.filepath))},{debounce:100,immediate:!0});function u(){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),er.value=g}const h=xt(()=>{var g;return((g=Qy.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function d(g){o.value=g}return(g,v)=>{var M,R;const b=ad,w=bs,S=ipt,P=Fat,A=Nat,L=bat,T=uo("tooltip");return U(Se)?(st(),kt("div",vpt,[tt("div",null,[tt("div",mpt,[Ft(b,{task:U(Se)},null,8,["task"]),tt("div",ypt,Ut((M=U(Se))==null?void 0:M.filepath),1),tt("div",bpt,[U(jr)?Vt("",!0):nn((st(),te(w,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=U(Se))!=null&&R.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),tt("div",wpt,[tt("button",{"tab-button":"",class:ve({"tab-button-active":U(er)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=E=>f(null))}," Report ",2),tt("button",{"tab-button":"","data-testid":"btn-graph",class:ve({"tab-button-active":U(er)==="graph"}),onClick:v[1]||(v[1]=E=>f("graph"))}," Module Graph ",2),U(jr)?Vt("",!0):(st(),kt("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ve({"tab-button-active":U(er)==="editor"}),onClick:v[2]||(v[2]=E=>f("editor"))},Ut(U(o)?"* ":"")+"Code ",3)),tt("button",{"tab-button":"","data-testid":"btn-console",class:ve({"tab-button-active":U(er)==="console",op20:U(er)!=="console"&&U(h)===0}),onClick:v[3]||(v[3]=E=>f("console"))}," Console ("+Ut(U(h))+") ",3)])]),tt("div",xpt,[U(s)?(st(),kt("div",{key:0,"flex-1":U(er)==="graph"&&""},[nn(Ft(S,{graph:U(r),"data-testid":"graph"},null,8,["graph"]),[[Nf,U(er)==="graph"]])],8,_pt)):Vt("",!0),U(er)==="editor"?(st(),te(P,{key:U(Se).filepath,file:U(Se),"data-testid":"editor",onDraft:d},null,8,["file"])):U(er)==="console"?(st(),te(A,{key:2,file:U(Se),"data-testid":"console"},null,8,["file"])):U(er)?Vt("",!0):(st(),te(L,{key:3,file:U(Se),"data-testid":"report"},null,8,["file"]))])])):Vt("",!0)}}}),kpt=["open"],Cpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Tpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Ept=ie({__name:"DetailsPanel",props:{color:{}},setup(t){const e=Zt(!0);return(r,o)=>(st(),kt("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:ve(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[Cpt,sr(r.$slots,"summary",{open:U(e)}),Tpt],2),sr(r.$slots,"default")],40,kpt))}}),Lpt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Apt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},Mpt=["text"],Npt={"text-sm":"",truncate:"","font-light":""},Ppt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Opt=ie({__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 u=ad;return o.task?(st(),kt("div",Lpt,[Ft(u,{task:o.task,"mr-2":""},null,8,["task"]),o.task.type==="suite"&&o.task.meta.typecheck?(st(),kt("div",Apt)):Vt("",!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",Npt,Ut(o.task.name),1),typeof U(r)=="number"?(st(),kt("span",Ppt,Ut(U(r)>0?U(r):"< 1")+"ms ",1)):Vt("",!0)],8,Mpt)])):Vt("",!0)}}});function Dpt(t){return Object.hasOwnProperty.call(t,"tasks")}function Ub(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}const $pt={key:1},Rpt=ie({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=Opt,s=io("TaskTree",!0);return st(),kt(ne,null,[!e.nested||!e.search||U(Ub)(e.task.name,e.search)?(st(),te(o,Ci({key:0},e.$attrs,{task:e.task,style:{paddingLeft:`${e.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>e.onItemClick&&e.onItemClick(e.task))}),null,16,["task","style"])):Vt("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(st(),kt("div",$pt,[(st(!0),kt(ne,null,Rn(e.task.tasks,u=>(st(),te(s,{key:u.id,task:u,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))])):Vt("",!0)],64)}}}),zpt={h:"full",flex:"~ col"},Ipt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Fpt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},qpt=tt("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Hpt=["op"],Bpt={class:"scrolls","flex-auto":"","py-1":""},Wpt={"text-red5":""},Upt={"text-yellow5":""},jpt={"text-green5":""},Vpt={class:"text-purple5:50"},Gpt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Kpt=tt("div",{op30:""}," No matched test ",-1),jb=ie({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(),u=xt(()=>o.value.trim()!==""),f=xt(()=>o.value.trim()?t.tasks.filter(L=>A([L],o.value)):t.tasks),h=xt(()=>u.value?f.value.map(L=>hc(L.id)).filter(Boolean):[]),d=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="fail"})),g=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="pass"})),v=xt(()=>f.value.filter(L=>L.mode==="skip"||L.mode==="todo")),b=xt(()=>f.value.filter(L=>!d.value.includes(L)&&!g.value.includes(L)&&!v.value.includes(L))),w=xt(()=>o.value===""),S=vlt(b,250);function P(L){var T;o.value="",L&&((T=s.value)==null||T.focus())}function A(L,T){let M=!1;for(let R=0;R{const M=bs,R=Rpt,E=Ept,B=uo("tooltip");return st(),kt("div",zpt,[tt("div",null,[tt("div",Ipt,[sr(L.$slots,"header",{filteredTests:U(u)?U(h):void 0})]),tt("div",Fpt,[qpt,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]=Of(K=>P(!1),["esc"])),T[2]||(T[2]=Of(K=>r("run",U(u)?U(h):void 0),["enter"]))]},null,40,Hpt),[[wS,U(o)]]),nn(Ft(M,{disabled:U(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=K=>P(!0))},null,8,["disabled"]),[[B,"Clear search",void 0,{bottom:!0}]])])]),tt("div",Bpt,[L.groupByType?(st(),kt(ne,{key:0},[U(d).length?(st(),te(E,{key:0},{summary:ee(()=>[tt("div",Wpt," FAIL ("+Ut(U(d).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(d),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0),U(b).length||U(kl)==="running"?(st(),te(E,{key:1},{summary:ee(()=>[tt("div",Upt," RUNNING ("+Ut(U(S).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(S),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0),U(g).length?(st(),te(E,{key:2},{summary:ee(()=>[tt("div",jpt," PASS ("+Ut(U(g).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(g),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0),U(v).length?(st(),te(E,{key:3},{summary:ee(()=>[tt("div",Vpt," SKIP ("+Ut(U(v).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(v),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0)],64)):(st(!0),kt(ne,{key:1},Rn(U(f),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),U(u)&&U(f).length===0?(st(),kt("div",Gpt,[Kpt,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=>P(!0))}," Clear ",32)])):Vt("",!0)])])}}}),Ml=Zt(),ns=Zt(!0),ao=Zt(!1),xc=Zt(!0),jo=xt(()=>{var t;return(t=Xh.value)==null?void 0:t.coverage}),sh=xt(()=>{var t;return(t=jo.value)==null?void 0:t.enabled}),Vo=xt(()=>sh.value&&jo.value.reporter.map(([t])=>t).includes("html")),Xpt=xt(()=>{if(Vo.value){const t=jo.value.reportsDirectory.lastIndexOf("/"),e=jo.value.reporter.find(r=>{if(r[0]==="html")return r});return e&&"subdir"in e[1]?`/${jo.value.reportsDirectory.slice(t+1)}/${e[1].subdir}/index.html`:`/${jo.value.reportsDirectory.slice(t+1)}/index.html`}});Re(kl,t=>{xc.value=t==="running"},{immediate:!0});function Ypt(){const t=yr.value;if(t&&t.length>0){const e=hc(t);e?(Ml.value=e,ns.value=!1,ao.value=!1):blt(()=>je.state.getFiles(),()=>{Ml.value=hc(t),ns.value=!1,ao.value=!1})}return ns}function pf(t){ns.value=t,ao.value=!1,t&&(Ml.value=void 0,yr.value="")}function Zpt(){ao.value=!0,ns.value=!1,Ml.value=void 0,yr.value=""}const Qpt={key:0,"h-full":""},Jpt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-1":""},tgt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},egt={class:"flex text-lg"},ngt=ie({__name:"Suites",setup(t){const e=xt(()=>{var u;return(u=Se.value)==null?void 0:u.name.split(/\//g).pop()}),r=xt(()=>{var u,f;return((u=Se.value)==null?void 0:u.tasks)&&Wc((f=Se.value)==null?void 0:f.tasks)});function o(){return Se.value&&je.rpc.updateSnapshot(Se.value)}async function s(){Vo.value&&(xc.value=!0,await Br()),await iat()}return(u,f)=>{const h=ad,d=bs,g=jb,v=uo("tooltip");return U(Se)?(st(),kt("div",Qpt,[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(),kt("div",Jpt)):Vt("",!0),tt("span",tgt,Ut(U(e)),1),tt("div",egt,[U(r)&&!U(jr)?nn((st(),te(d,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=b=>o())},null,512)),[[v,`Update failed snapshot(s) of ${U(Se).name}`,void 0,{bottom:!0}]]):Vt("",!0),U(jr)?Vt("",!0):nn((st(),te(d,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=b=>s())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):Vt("",!0)}}}),rgt={h:"full",flex:"~ col"},igt=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),ogt={"flex-auto":"","py-1":"","bg-white":""},sgt=["src"],lgt=ie({__name:"Coverage",props:{src:{}},setup(t){return(e,r)=>(st(),kt("div",rgt,[igt,tt("div",ogt,[tt("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,sgt)])]))}}),agt={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},cgt={"font-bold":""},ugt={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},fgt=["font-bold"],hgt={text:"red500/70"},dgt=tt("br",null,null,-1),pgt={key:1,text:"sm","mb-2":""},ggt={"font-bold":""},vgt={key:2,text:"sm","mb-2":""},mgt={"font-bold":""},ygt=tt("br",null,null,-1),bgt=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),wgt={key:3,text:"sm","font-thin":""},xgt=tt("br",null,null,-1),_gt=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),Sgt=ie({__name:"ErrorEntry",props:{error:{}},setup(t){return(e,r)=>{var o;return st(),kt(ne,null,[tt("h4",agt,[tt("span",cgt,[me(Ut(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(st(),kt(ne,{key:0},[me(":")],64)):Vt("",!0)]),me(" "+Ut(e.error.message),1)]),(o=e.error.stacks)!=null&&o.length?(st(),kt("p",ugt,[(st(!0),kt(ne,null,Rn(e.error.stacks,(s,u)=>(st(),kt("span",{"whitespace-pre":"","font-bold":u===0?"":null},[me("❯ "+Ut(s.method)+" "+Ut(s.file)+":",1),tt("span",hgt,Ut(s.line)+":"+Ut(s.column),1),dgt],8,fgt))),256))])):Vt("",!0),e.error.VITEST_TEST_PATH?(st(),kt("p",pgt,[me(" This error originated in "),tt("span",ggt,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. ")])):Vt("",!0),e.error.VITEST_TEST_NAME?(st(),kt("p",vgt,[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:"),ygt,bgt])):Vt("",!0),e.error.VITEST_AFTER_ENV_TEARDOWN?(st(),kt("p",wgt,[me(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),xgt,_gt])):Vt("",!0)],64)}}}),bn=t=>(Xm("data-v-09d153f7"),t=t(),Ym(),t),kgt={"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:""},Cgt=bn(()=>tt("div",{"i-carbon-document":""},null,-1)),Tgt=bn(()=>tt("div",null,"Files",-1)),Egt={class:"number","data-testid":"num-files"},Lgt=bn(()=>tt("div",{"i-carbon-checkmark":""},null,-1)),Agt=bn(()=>tt("div",null,"Pass",-1)),Mgt={class:"number"},Ngt=bn(()=>tt("div",{"i-carbon-close":""},null,-1)),Pgt=bn(()=>tt("div",null," Fail ",-1)),Ogt={class:"number","text-red5":""},Dgt=bn(()=>tt("div",{"i-carbon-compare":""},null,-1)),$gt=bn(()=>tt("div",null," Snapshot Fail ",-1)),Rgt={class:"number","text-red5":""},zgt=bn(()=>tt("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Igt=bn(()=>tt("div",null," Errors ",-1)),Fgt={class:"number","text-red5":""},qgt=bn(()=>tt("div",{"i-carbon-timer":""},null,-1)),Hgt=bn(()=>tt("div",null,"Time",-1)),Bgt={class:"number","data-testid":"run-time"},Wgt={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Ugt=bn(()=>tt("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),jgt={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Vgt=bn(()=>tt("br",null,null,-1)),Ggt={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Kgt=bn(()=>tt("summary",{"font-bold":"","cursor-pointer":""},"Errors",-1)),Xgt=ie({__name:"TestFilesEntry",setup(t){return(e,r)=>{const o=Sgt;return st(),kt(ne,null,[tt("div",kgt,[Cgt,Tgt,tt("div",Egt,Ut(U(mn).length),1),U(pc).length?(st(),kt(ne,{key:0},[Lgt,Agt,tt("div",Mgt,Ut(U(pc).length),1)],64)):Vt("",!0),U(dc).length?(st(),kt(ne,{key:1},[Ngt,Pgt,tt("div",Ogt,Ut(U(dc).length),1)],64)):Vt("",!0),U(Kv).length?(st(),kt(ne,{key:2},[Dgt,$gt,tt("div",Rgt,Ut(U(Kv).length),1)],64)):Vt("",!0),U(yi).length?(st(),kt(ne,{key:3},[zgt,Igt,tt("div",Fgt,Ut(U(yi).length),1)],64)):Vt("",!0),qgt,Hgt,tt("div",Bgt,Ut(U(Tat)),1)]),U(yi).length?(st(),kt("div",Wgt,[Ugt,tt("p",jgt,[me(" Vitest caught "+Ut(U(yi).length)+" error"+Ut(U(yi).length>1?"s":"")+" during the test run.",1),Vgt,me(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),tt("details",Ggt,[Kgt,(st(!0),kt(ne,null,Rn(U(yi),s=>(st(),te(o,{error:s},null,8,["error"]))),256))])])):Vt("",!0)],64)}}}),Ygt=fo(Xgt,[["__scopeId","data-v-09d153f7"]]),Zgt={"p-2":"","text-center":"",flex:""},Qgt={"text-4xl":"","min-w-2em":""},Jgt={"text-md":""},tvt=ie({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(st(),kt("div",Zgt,[tt("div",null,[tt("div",Qgt,[sr(e.$slots,"body")]),tt("div",Jgt,[sr(e.$slots,"header")])])]))}}),evt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},nvt=ie({__name:"TestsEntry",setup(t){const e=xt(()=>Vc.value.length),r=xt(()=>eb.value.length),o=xt(()=>tb.value.length),s=xt(()=>kat.value.length),u=xt(()=>Cat.value.length);return(f,h)=>{const d=tvt;return st(),kt("div",evt,[Ft(d,{"text-green5":"","data-testid":"pass-entry"},{header:ee(()=>[me(" Pass ")]),body:ee(()=>[me(Ut(U(r)),1)]),_:1}),Ft(d,{class:ve({"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})):Vt("",!0),U(u)?(st(),te(d,{key:1,op50:"","data-testid":"todo-entry"},{header:ee(()=>[me(" Todo ")]),body:ee(()=>[me(Ut(U(u)),1)]),_:1})):Vt("",!0),Ft(d,{tail:!0,"data-testid":"total-entry"},{header:ee(()=>[me(" Total ")]),body:ee(()=>[me(Ut(U(e)),1)]),_:1})])}}}),rvt={},ivt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},ovt={"aria-labelledby":"tests",m:"y-4 x-2"};function svt(t,e){const r=nvt,o=Ygt;return st(),kt("div",ivt,[tt("section",ovt,[Ft(r)]),Ft(o)])}const lvt=fo(rvt,[["render",svt]]),avt={},cvt={h:"full",flex:"~ col"},uvt=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),fvt={class:"scrolls","flex-auto":"","py-1":""};function hvt(t,e){const r=lvt;return st(),kt("div",cvt,[uvt,tt("div",fvt,[Ft(r)])])}const dvt=fo(avt,[["render",hvt]]),pvt=""+new URL("../favicon.svg",import.meta.url).href,gvt=tt("img",{"w-6":"","h-6":"",src:pvt,alt:"Vitest logo"},null,-1),vvt=tt("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),mvt={class:"flex text-lg"},yvt=tt("div",{class:"i-carbon:folder-off ma"},null,-1),bvt=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),wvt=ie({__name:"Navigation",setup(t){const e=xt(()=>mn.value&&Wc(mn.value));function r(){return je.rpc.updateSnapshot()}const o=xt(()=>zl.value?"light":"dark");function s(f){yr.value=f.id,Ml.value=hc(f.id),pf(!1)}async function u(f){Vo.value&&(xc.value=!0,await Br(),ao.value&&(pf(!0),await Br())),await rat(f)}return(f,h)=>{const d=bs,g=jb,v=uo("tooltip");return st(),te(g,{border:"r base",tasks:U(mn),"on-item-click":s,"group-by-type":!0,onRun:u},{header:ee(({filteredTests:b})=>[gvt,vvt,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(pf)(!0))},null,512),[[Nf,U(sh)&&!U(Vo)||!U(ns)],[v,"Dashboard",void 0,{bottom:!0}]]),U(sh)&&!U(Vo)?(st(),te(U(BC),{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(()=>[bvt]),default:ee(()=>[yvt]),_:1})):Vt("",!0),U(Vo)?nn((st(),te(d,{key:1,disabled:U(xc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=w=>U(Zpt)())},null,8,["disabled"])),[[Nf,!U(ao)],[v,"Coverage",void 0,{bottom:!0}]]):Vt("",!0),U(e)&&!U(jr)?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}]]):Vt("",!0),U(jr)?Vt("",!0):nn((st(),te(d,{key:3,disabled:(b==null?void 0:b.length)===0,icon:"i-carbon:play",onClick:w=>u(b)},null,8,["disabled","onClick"])),[[v,b?b.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(aat)())},null,512),[[v,`Toggle to ${U(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),xvt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},_vt=ie({__name:"ProgressBar",setup(t){const{width:e}=Dlt(),r=xt(()=>mn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Sat.value?null:"in-progress"),o=xt(()=>mn.value.length),s=xt(()=>pc.value.length),u=xt(()=>dc.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*u.value/v:0}),d=xt(()=>U(o)-u.value-s.value),g=xt(()=>{const v=U(o);return v>0?e.value*d.value/v:0});return(v,b)=>(st(),kt("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:ve(U(r))},[tt("div",xvt,[tt("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(U(r)),style:An(`width: ${U(h)}px;`)},"   ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(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:ve(U(r)),style:An(`left: ${U(f)+U(h)}px; width: ${U(g)}px;`)},"   ",6)])],2))}}),Svt=fo(_vt,[["__scopeId","data-v-f967c1fe"]]),wm={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),u=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&&u>=h.max+r.prevPanesSize,v=d.max<100&&u<=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 b=this.doPushOtherPanes(r,u);if(!b)return;({sums:r,panesToResize:f}=b),h=this.panes[f[0]]||null,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,o=[r,r+1];return e{u>o[0]&&u<=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,u)=>{u>0&&u<=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,u)=>{u>r&&u{u=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=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=u=>this.onMouseDown(u,o)),s.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(s.ondblclick=u=>this.onSplitterDblClick(u,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,u)=>s.index=u),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(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&e.push(u.id),u.size<=u.min&&r.push(u.id)});let s=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),s-=u.size}),s>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const s=[],u=[];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&&u.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&&u.push(f.id)}),o>.1&&this.readjustSizes(o,s,u))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((s,u)=>{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 Ol("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},kvt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},Cvt={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 Tvt(t,e,r,o,s,u){return st(),kt("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>u.onPaneClick(f,t._.uid)),style:An(t.style)},[sr(t.$slots,"default")],4)}const za=kvt(Cvt,[["render",Tvt]]),Evt={"h-screen":"","w-screen":"",overflow:"hidden"},Lvt=ie({__name:"index",setup(t){const e=Ypt(),r=Un([33,67]),o=Un([33,67]),s=Vv(h=>{h.forEach((d,g)=>{r[g]=d.size})},0),u=Vv(h=>{h.forEach((d,g)=>{o[g]=d.size})},0);function f(){const h=window.innerWidth,d=Math.min(h/3,300);r[0]=100*d/h,r[1]=100-r[0],o[0]=100*d/(h-d),o[1]=100-o[0]}return(h,d)=>{const g=Svt,v=wvt,b=dvt,w=lgt,S=ngt,P=Spt,A=lat;return st(),kt(ne,null,[Ft(g),tt("div",Evt,[Ft(U(wm),{class:"pt-4px",onResized:U(s),onReady:f},{default:ee(()=>[Ft(U(za),{size:U(r)[0]},{default:ee(()=>[Ft(v)]),_:1},8,["size"]),Ft(U(za),{size:U(r)[1]},{default:ee(()=>[Ft(Ph,null,{default:ee(()=>[U(e)?(st(),te(b,{key:"summary"})):U(ao)?(st(),te(w,{key:"coverage",src:U(Xpt)},null,8,["src"])):(st(),te(U(wm),{key:"detail",onResized:U(u)},{default:ee(()=>[Ft(U(za),{size:U(o)[0]},{default:ee(()=>[Ft(S)]),_:1},8,["size"]),Ft(U(za),{size:U(o)[1]},{default:ee(()=>[Ft(P)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Ft(A)],64)}}}),Avt=[{name:"index",path:"/",component:Lvt,props:!0}],Mvt={tooltip:HC};ny.options.instantMove=!0;ny.options.distance=10;function Nvt(){return Mk({history:VS(),routes:Avt})}const Pvt=[Nvt],cd=_0(ES);Pvt.forEach(t=>{cd.use(t())});Object.entries(Mvt).forEach(([t,e])=>{cd.directive(t,e)});cd.mount("#app");