@vitest/browser 4.0.0-beta.10 → 4.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,53 @@
1
+ var eS=Object.defineProperty;var tS=(e,t,r)=>t in e?eS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ot=(e,t,r)=>tS(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
2
+ * @vue/shared v3.5.21
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function mh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const yt={},_s=[],Vr=()=>{},X0=()=>!1,bu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yh=e=>e.startsWith("onUpdate:"),nn=Object.assign,bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},nS=Object.prototype.hasOwnProperty,xt=(e,t)=>nS.call(e,t),Be=Array.isArray,Ss=e=>xa(e)==="[object Map]",wu=e=>xa(e)==="[object Set]",vv=e=>xa(e)==="[object Date]",Ge=e=>typeof e=="function",Dt=e=>typeof e=="string",Mr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",Y0=e=>(kt(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),Z0=Object.prototype.toString,xa=e=>Z0.call(e),rS=e=>xa(e).slice(8,-1),J0=e=>xa(e)==="[object Object]",wh=e=>Dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dl=mh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},iS=/-\w/g,rr=xu(e=>e.replace(iS,t=>t.slice(1).toUpperCase())),oS=/\B([A-Z])/g,Si=xu(e=>e.replace(oS,"-$1").toLowerCase()),_u=xu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mc=xu(e=>e?`on${_u(e)}`:""),Un=(e,t)=>!Object.is(e,t),$c=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Q0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Sd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ey=e=>{const t=Dt(e)?Number(e):NaN;return isNaN(t)?e:t};let mv;const Su=()=>mv||(mv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function en(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Dt(o)?cS(o):en(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Dt(e)||kt(e))return e}const sS=/;(?![^(]*\))/g,lS=/:([^]+)/,aS=/\/\*[^]*?\*\//g;function cS(e){const t={};return e.replace(aS,"").split(sS).forEach(r=>{if(r){const o=r.split(lS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if(Dt(e))t=e;else if(Be(e))for(let r=0;r<e.length;r++){const o=st(e[r]);o&&(t+=o+" ")}else if(kt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function uS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Dt(t)&&(e.class=st(t)),r&&(e.style=en(r)),e}const fS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dS=mh(fS);function ty(e){return!!e||e===""}function hS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=ku(e[o],t[o]);return r}function ku(e,t){if(e===t)return!0;let r=vv(e),o=vv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Mr(e),o=Mr(t),r||o)return e===t;if(r=Be(e),o=Be(t),r||o)return r&&o?hS(e,t):!1;if(r=kt(e),o=kt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!ku(e[f],t[f]))return!1}}return String(e)===String(t)}function ny(e,t){return e.findIndex(r=>ku(r,t))}const ry=e=>!!(e&&e.__v_isRef===!0),ze=e=>Dt(e)?e:e==null?"":Be(e)||kt(e)&&(e.toString===Z0||!Ge(e.toString))?ry(e)?ze(e.value):JSON.stringify(e,iy,2):String(e),iy=(e,t)=>ry(t)?iy(e,t.value):Ss(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Gf(o,c)+" =>"]=s,r),{})}:wu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Gf(r))}:Mr(t)?Gf(t):kt(t)&&!Be(t)&&!J0(t)?String(t):t,Gf=(e,t="")=>{var r;return Mr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
+ * @vue/reactivity v3.5.21
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let vn;class pS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=vn,!t&&vn&&(this.index=(vn.scopes||(vn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=vn;try{return vn=this,t()}finally{vn=r}}}on(){++this._on===1&&(this.prevScope=vn,vn=this)}off(){this._on>0&&--this._on===0&&(vn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function oy(){return vn}function gS(e,t=!1){vn&&vn.cleanups.push(e)}let Ct;const Kf=new WeakSet;class sy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,vn&&vn.active&&vn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Kf.has(this)&&(Kf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ay(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yv(this),cy(this);const t=Ct,r=Ar;Ct=this,Ar=!0;try{return this.fn()}finally{uy(this),Ct=t,Ar=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Sh(t);this.deps=this.depsTail=void 0,yv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Kf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kd(this)&&this.run()}get dirty(){return kd(this)}}let ly=0,Fl,Hl;function ay(e,t=!1){if(e.flags|=8,t){e.next=Hl,Hl=e;return}e.next=Fl,Fl=e}function xh(){ly++}function _h(){if(--ly>0)return;if(Hl){let t=Hl;for(Hl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Fl;){let t=Fl;for(Fl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function cy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uy(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Sh(o),vS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function kd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jl)||(e.globalVersion=Jl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!kd(e))))return;e.flags|=2;const t=e.dep,r=Ct,o=Ar;Ct=e,Ar=!0;try{cy(e);const s=e.fn(e._value);(t.version===0||Un(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ct=r,Ar=o,uy(e),e.flags&=-3}}function Sh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Sh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function vS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ar=!0;const dy=[];function bi(){dy.push(Ar),Ar=!1}function wi(){const e=dy.pop();Ar=e===void 0?!0:e}function yv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ct;Ct=void 0;try{t()}finally{Ct=r}}}let Jl=0;class mS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ct||!Ar||Ct===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ct)r=this.activeLink=new mS(Ct,this),Ct.deps?(r.prevDep=Ct.depsTail,Ct.depsTail.nextDep=r,Ct.depsTail=r):Ct.deps=Ct.depsTail=r,hy(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=Ct.depsTail,r.nextDep=void 0,Ct.depsTail.nextDep=r,Ct.depsTail=r,Ct.deps===r&&(Ct.deps=o)}return r}trigger(t){this.version++,Jl++,this.notify(t)}notify(t){xh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{_h()}}}function hy(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)hy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const qc=new WeakMap,Po=Symbol(""),Td=Symbol(""),Ql=Symbol("");function mn(e,t,r){if(Ar&&Ct){let o=qc.get(e);o||qc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Tu),s.map=o,s.key=r),s.track()}}function gi(e,t,r,o,s,c){const f=qc.get(e);if(!f){Jl++;return}const d=h=>{h&&h.trigger()};if(xh(),t==="clear")f.forEach(d);else{const h=Be(e),p=h&&wh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ql||!Mr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ql)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Po)),Ss(e)&&d(f.get(Td)));break;case"delete":h||(d(f.get(Po)),Ss(e)&&d(f.get(Td)));break;case"set":Ss(e)&&d(f.get(Po));break}}_h()}function yS(e,t){const r=qc.get(e);return r&&r.get(t)}function hs(e){const t=mt(e);return t===e?t:(mn(t,"iterate",Ql),ur(e)?t:t.map(un))}function Cu(e){return mn(e=mt(e),"iterate",Ql),e}const bS={__proto__:null,[Symbol.iterator](){return Xf(this,Symbol.iterator,un)},concat(...e){return hs(this).concat(...e.map(t=>Be(t)?hs(t):t))},entries(){return Xf(this,"entries",e=>(e[1]=un(e[1]),e))},every(e,t){return ai(this,"every",e,t,void 0,arguments)},filter(e,t){return ai(this,"filter",e,t,r=>r.map(un),arguments)},find(e,t){return ai(this,"find",e,t,un,arguments)},findIndex(e,t){return ai(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ai(this,"findLast",e,t,un,arguments)},findLastIndex(e,t){return ai(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ai(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yf(this,"includes",e)},indexOf(...e){return Yf(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return Yf(this,"lastIndexOf",e)},map(e,t){return ai(this,"map",e,t,void 0,arguments)},pop(){return El(this,"pop")},push(...e){return El(this,"push",e)},reduce(e,...t){return bv(this,"reduce",e,t)},reduceRight(e,...t){return bv(this,"reduceRight",e,t)},shift(){return El(this,"shift")},some(e,t){return ai(this,"some",e,t,void 0,arguments)},splice(...e){return El(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return El(this,"unshift",e)},values(){return Xf(this,"values",un)}};function Xf(e,t,r){const o=Cu(e),s=o[t]();return o!==e&&!ur(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const wS=Array.prototype;function ai(e,t,r,o,s,c){const f=Cu(e),d=f!==e&&!ur(e),h=f[t];if(h!==wS[t]){const m=h.apply(e,c);return d?un(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,un(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function bv(e,t,r,o){const s=Cu(e);let c=r;return s!==e&&(ur(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,un(d),h,e)}),s[t](c,...o)}function Yf(e,t,r){const o=mt(e);mn(o,"iterate",Ql);const s=o[t](...r);return(s===-1||s===!1)&&Eh(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function El(e,t,r=[]){bi(),xh();const o=mt(e)[t].apply(e,r);return _h(),wi(),o}const xS=mh("__proto__,__v_isRef,__isVue"),py=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mr));function _S(e){Mr(e)||(e=String(e));const t=mt(this);return mn(t,"has",e),t.hasOwnProperty(e)}class gy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?NS:by:c?yy:my).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Be(t);if(!s){let h;if(f&&(h=bS[r]))return h;if(r==="hasOwnProperty")return _S}const d=Reflect.get(t,r,Tt(t)?t:o);return(Mr(r)?py.has(r):xS(r))||(s||mn(t,"get",r),c)?d:Tt(d)?f&&wh(r)?d:d.value:kt(d)?s?_a(d):nr(d):d}}class vy extends gy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=no(c);if(!ur(o)&&!no(o)&&(c=mt(c),o=mt(o)),!Be(t)&&Tt(c)&&!Tt(o))return h||(c.value=o),!0}const f=Be(t)&&wh(r)?Number(r)<t.length:xt(t,r),d=Reflect.set(t,r,o,Tt(t)?t:s);return t===mt(s)&&(f?Un(o,c)&&gi(t,"set",r,o):gi(t,"add",r,o)),d}deleteProperty(t,r){const o=xt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&gi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Mr(r)||!py.has(r))&&mn(t,"has",r),o}ownKeys(t){return mn(t,"iterate",Be(t)?"length":Po),Reflect.ownKeys(t)}}class SS extends gy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const kS=new vy,TS=new SS,CS=new vy(!0);const Cd=e=>e,pc=e=>Reflect.getPrototypeOf(e);function ES(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=Ss(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Cd:t?jc:un;return!t&&mn(c,"iterate",h?Td:Po),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function gc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function AS(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Un(s,d)&&mn(f,"get",s),mn(f,"get",d));const{has:h}=pc(f),p=t?Cd:e?jc:un;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&mn(mt(s),"iterate",Po),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Un(s,d)&&mn(f,"has",s),mn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=mt(d),p=t?Cd:e?jc:un;return!e&&mn(h,"iterate",Po),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return nn(r,e?{add:gc("add"),set:gc("set"),delete:gc("delete"),clear:gc("clear")}:{add(s){!t&&!ur(s)&&!no(s)&&(s=mt(s));const c=mt(this);return pc(c).has.call(c,s)||(c.add(s),gi(c,"add",s,s)),this},set(s,c){!t&&!ur(c)&&!no(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=pc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?Un(c,v)&&gi(f,"set",s,c):gi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=pc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&gi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&gi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=ES(s,e,t)}),r}function kh(e,t){const r=AS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(xt(r,s)&&s in o?r:o,s,c)}const LS={get:kh(!1,!1)},MS={get:kh(!1,!0)},$S={get:kh(!0,!1)};const my=new WeakMap,yy=new WeakMap,by=new WeakMap,NS=new WeakMap;function OS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function PS(e){return e.__v_skip||!Object.isExtensible(e)?0:OS(rS(e))}function nr(e){return no(e)?e:Ch(e,!1,kS,LS,my)}function Th(e){return Ch(e,!1,CS,MS,yy)}function _a(e){return Ch(e,!0,TS,$S,by)}function Ch(e,t,r,o,s){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=PS(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function ks(e){return no(e)?ks(e.__v_raw):!!(e&&e.__v_isReactive)}function no(e){return!!(e&&e.__v_isReadonly)}function ur(e){return!!(e&&e.__v_isShallow)}function Eh(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Ah(e){return!xt(e,"__v_skip")&&Object.isExtensible(e)&&Q0(e,"__v_skip",!0),e}const un=e=>kt(e)?nr(e):e,jc=e=>kt(e)?_a(e):e;function Tt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return wy(e,!1)}function tn(e){return wy(e,!0)}function wy(e,t){return Tt(e)?e:new RS(e,t)}class RS{constructor(t,r){this.dep=new Tu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:un(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||ur(t)||no(t);t=o?t:mt(t),Un(t,r)&&(this._rawValue=t,this._value=o?t:un(t),this.dep.trigger())}}function B(e){return Tt(e)?e.value:e}function Vt(e){return Ge(e)?e():B(e)}const zS={get:(e,t,r)=>t==="__v_raw"?e:B(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Tt(s)&&!Tt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function xy(e){return ks(e)?e:new Proxy(e,zS)}class IS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Tu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function _y(e){return new IS(e)}function DS(e){const t=Be(e)?new Array(e.length):{};for(const r in e)t[r]=Sy(e,r);return t}class FS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return yS(mt(this._object),this._key)}}class HS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Gs(e,t,r){return Tt(e)?e:Ge(e)?new HS(e):kt(e)&&arguments.length>1?Sy(e,t,r):Ue(e)}function Sy(e,t,r){const o=e[t];return Tt(o)?o:new FS(e,t,r)}class BS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Tu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Ct!==this)return ay(this,!0),!0}get value(){const t=this.dep.track();return fy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function WS(e,t,r=!1){let o,s;return Ge(e)?o=e:(o=e.get,s=e.set),new BS(o,s,r)}const vc={},Uc=new WeakMap;let Ao;function qS(e,t=!1,r=Ao){if(r){let o=Uc.get(r);o||Uc.set(r,o=[]),o.push(e)}}function jS(e,t,r=yt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=T=>s?T:ur(T)||s===!1||s===0?vi(T,1):vi(T);let v,m,b,w,L=!1,M=!1;if(Tt(e)?(m=()=>e.value,L=ur(e)):ks(e)?(m=()=>p(e),L=!0):Be(e)?(M=!0,L=e.some(T=>ks(T)||ur(T)),m=()=>e.map(T=>{if(Tt(T))return T.value;if(ks(T))return p(T);if(Ge(T))return h?h(T,2):T()})):Ge(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){bi();try{b()}finally{wi()}}const T=Ao;Ao=v;try{return h?h(e,3,[w]):e(w)}finally{Ao=T}}:m=Vr,t&&s){const T=m,I=s===!0?1/0:s;m=()=>vi(T(),I)}const E=oy(),A=()=>{v.stop(),E&&E.active&&bh(E.effects,v)};if(c&&t){const T=t;t=(...I)=>{T(...I),A()}}let $=M?new Array(e.length).fill(vc):vc;const R=T=>{if(!(!(v.flags&1)||!v.dirty&&!T))if(t){const I=v.run();if(s||L||(M?I.some((F,re)=>Un(F,$[re])):Un(I,$))){b&&b();const F=Ao;Ao=v;try{const re=[I,$===vc?void 0:M&&$[0]===vc?[]:$,w];$=I,h?h(t,3,re):t(...re)}finally{Ao=F}}}else v.run()};return d&&d(R),v=new sy(m),v.scheduler=f?()=>f(R,!1):R,w=T=>qS(T,!1,v),b=v.onStop=()=>{const T=Uc.get(v);if(T){if(h)h(T,4);else for(const I of T)I();Uc.delete(v)}},t?o?R(!0):$=v.run():f?f(R.bind(null,!0),!0):v.run(),A.pause=v.pause.bind(v),A.resume=v.resume.bind(v),A.stop=A,A}function vi(e,t=1/0,r){if(t<=0||!kt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Tt(e))vi(e.value,t,r);else if(Be(e))for(let o=0;o<e.length;o++)vi(e[o],t,r);else if(wu(e)||Ss(e))e.forEach(o=>{vi(o,t,r)});else if(J0(e)){for(const o in e)vi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&vi(e[o],t,r)}return e}/**
10
+ * @vue/runtime-core v3.5.21
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function Sa(e,t,r,o){try{return o?e(...o):e()}catch(s){ka(s,t,r)}}function $r(e,t,r,o){if(Ge(e)){const s=Sa(e,t,r,o);return s&&Y0(s)&&s.catch(c=>{ka(c,t,r)}),s}if(Be(e)){const s=[];for(let c=0;c<e.length;c++)s.push($r(e[c],t,r,o));return s}}function ka(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||yt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){bi(),Sa(c,null,10,[e,h,p]),wi();return}}US(e,r,s,o,f)}function US(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Nn=[];let jr=-1;const Ts=[];let ji=null,gs=0;const ky=Promise.resolve();let Vc=null;function At(e){const t=Vc||ky;return e?t.then(this?e.bind(this):e):t}function VS(e){let t=jr+1,r=Nn.length;for(;t<r;){const o=t+r>>>1,s=Nn[o],c=ea(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Lh(e){if(!(e.flags&1)){const t=ea(e),r=Nn[Nn.length-1];!r||!(e.flags&2)&&t>=ea(r)?Nn.push(e):Nn.splice(VS(t),0,e),e.flags|=1,Ty()}}function Ty(){Vc||(Vc=ky.then(Ey))}function Ed(e){Be(e)?Ts.push(...e):ji&&e.id===-1?ji.splice(gs+1,0,e):e.flags&1||(Ts.push(e),e.flags|=1),Ty()}function wv(e,t,r=jr+1){for(;r<Nn.length;r++){const o=Nn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Nn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Cy(e){if(Ts.length){const t=[...new Set(Ts)].sort((r,o)=>ea(r)-ea(o));if(Ts.length=0,ji){ji.push(...t);return}for(ji=t,gs=0;gs<ji.length;gs++){const r=ji[gs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}ji=null,gs=0}}const ea=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ey(e){try{for(jr=0;jr<Nn.length;jr++){const t=Nn[jr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Sa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;jr<Nn.length;jr++){const t=Nn[jr];t&&(t.flags&=-2)}jr=-1,Nn.length=0,Cy(),Vc=null,(Nn.length||Ts.length)&&Ey()}}let dn=null,Eu=null;function Gc(e){const t=dn;return dn=e,Eu=e&&e.type.__scopeId||null,t}function Ay(e){Eu=e}function Ly(){Eu=null}const My=e=>it;function it(e,t=dn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Is(-1);const c=Gc(t);let f;try{f=e(...s)}finally{Gc(c),o._d&&Is(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ut(e,t){if(dn===null)return e;const r=Ru(dn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=yt]=t[s];c&&(Ge(c)&&(c={mounted:c,updated:c}),c.deep&&vi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function So(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(bi(),$r(h,r,8,[e.el,d,e,t]),wi())}}const GS=Symbol("_vte"),$y=e=>e.__isTeleport,pi=Symbol("_leaveCb"),mc=Symbol("_enterCb");function KS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return co(()=>{e.isMounted=!0}),Ta(()=>{e.isUnmounting=!0}),e}const lr=[Function,Array],Ny={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:lr,onEnter:lr,onAfterEnter:lr,onEnterCancelled:lr,onBeforeLeave:lr,onLeave:lr,onAfterLeave:lr,onLeaveCancelled:lr,onBeforeAppear:lr,onAppear:lr,onAfterAppear:lr,onAppearCancelled:lr},Oy=e=>{const t=e.subTree;return t.component?Oy(t.component):t},XS={name:"BaseTransition",props:Ny,setup(e,{slots:t}){const r=Ti(),o=KS();return()=>{const s=t.default&&zy(t.default(),!0);if(!s||!s.length)return;const c=Py(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return Zf(c);const h=xv(c);if(!h)return Zf(c);let p=Ad(h,f,o,r,m=>p=m);h.type!==on&&ta(h,p);let v=r.subTree&&xv(r.subTree);if(v&&v.type!==on&&!Ur(v,h)&&Oy(r).type!==on){let m=Ad(v,f,o,r);if(ta(v,m),d==="out-in"&&h.type!==on)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},Zf(c);d==="in-out"&&h.type!==on?m.delayLeave=(b,w,L)=>{const M=Ry(o,v);M[String(v.key)]=v,b[pi]=()=>{w(),b[pi]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{L(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function Py(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==on){t=r;break}}return t}const YS=XS;function Ry(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Ad(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:L,onLeaveCancelled:M,onBeforeAppear:E,onAppear:A,onAfterAppear:$,onAppearCancelled:R}=t,T=String(e.key),I=Ry(r,e),F=(J,G)=>{J&&$r(J,o,9,G)},re=(J,G)=>{const K=G[1];F(J,G),Be(J)?J.every(N=>N.length<=1)&&K():J.length<=1&&K()},se={mode:f,persisted:d,beforeEnter(J){let G=h;if(!r.isMounted)if(c)G=E||h;else return;J[pi]&&J[pi](!0);const K=I[T];K&&Ur(e,K)&&K.el[pi]&&K.el[pi](),F(G,[J])},enter(J){let G=p,K=v,N=m;if(!r.isMounted)if(c)G=A||p,K=$||v,N=R||m;else return;let O=!1;const P=J[mc]=S=>{O||(O=!0,S?F(N,[J]):F(K,[J]),se.delayedLeave&&se.delayedLeave(),J[mc]=void 0)};G?re(G,[J,P]):P()},leave(J,G){const K=String(e.key);if(J[mc]&&J[mc](!0),r.isUnmounting)return G();F(b,[J]);let N=!1;const O=J[pi]=P=>{N||(N=!0,G(),P?F(M,[J]):F(L,[J]),J[pi]=void 0,I[K]===e&&delete I[K])};I[K]=e,w?re(w,[J,O]):O()},clone(J){const G=Ad(J,t,r,o,s);return s&&s(G),G}};return se}function Zf(e){if(Au(e))return e=ro(e),e.children=null,e}function xv(e){if(!Au(e))return $y(e.type)&&e.children?Py(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ge(r.default))return r.default()}}function ta(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ta(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===nt?(f.patchFlag&128&&s++,o=o.concat(zy(f.children,t,d))):(t||f.type!==on)&&o.push(d!=null?ro(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function ct(e,t){return Ge(e)?nn({name:e.name},t,{setup:e}):e}function Iy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Kc=new WeakMap;function Bl(e,t,r,o,s=!1){if(Be(e)){e.forEach((L,M)=>Bl(L,t&&(Be(t)?t[M]:t),r,o,s));return}if(Cs(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Bl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Ru(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===yt?d.refs={}:d.refs,m=d.setupState,b=mt(m),w=m===yt?X0:L=>xt(b,L);if(p!=null&&p!==h){if(_v(t),Dt(p))v[p]=null,w(p)&&(m[p]=null);else if(Tt(p)){p.value=null;const L=t;L.k&&(v[L.k]=null)}}if(Ge(h))Sa(h,d,12,[f,v]);else{const L=Dt(h),M=Tt(h);if(L||M){const E=()=>{if(e.f){const A=L?w(h)?m[h]:v[h]:h.value;if(s)Be(A)&&bh(A,c);else if(Be(A))A.includes(c)||A.push(c);else if(L)v[h]=[c],w(h)&&(m[h]=v[h]);else{const $=[c];h.value=$,e.k&&(v[e.k]=$)}}else L?(v[h]=f,w(h)&&(m[h]=f)):M&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const A=()=>{E(),Kc.delete(e)};A.id=-1,Kc.set(e,A),Jn(A,r)}else _v(e),E()}}}function _v(e){const t=Kc.get(e);t&&(t.flags|=8,Kc.delete(e))}Su().requestIdleCallback;Su().cancelIdleCallback;const Cs=e=>!!e.type.__asyncLoader,Au=e=>e.type.__isKeepAlive;function ZS(e,t){Dy(e,"a",t)}function JS(e,t){Dy(e,"da",t)}function Dy(e,t,r=bn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Lu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Au(s.parent.vnode)&&QS(o,t,r,s),s=s.parent}}function QS(e,t,r,o){const s=Lu(t,e,o,!0);Mu(()=>{bh(o[t],s)},r)}function Lu(e,t,r=bn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{bi();const d=Ca(r),h=$r(t,r,e,f);return d(),wi(),h});return o?s.unshift(c):s.push(c),c}}const ki=e=>(t,r=bn)=>{(!ia||e==="sp")&&Lu(e,(...o)=>t(...o),r)},ek=ki("bm"),co=ki("m"),tk=ki("bu"),nk=ki("u"),Ta=ki("bum"),Mu=ki("um"),rk=ki("sp"),ik=ki("rtg"),ok=ki("rtc");function sk(e,t=bn){Lu("ec",e,t)}const Mh="components",lk="directives";function Io(e,t){return $h(Mh,e,!0,t)||e}const Fy=Symbol.for("v-ndc");function Ld(e){return Dt(e)?$h(Mh,e,!1)||e:e||Fy}function Rr(e){return $h(lk,e)}function $h(e,t,r=!0,o=!1){const s=dn||bn;if(s){const c=s.type;if(e===Mh){const d=eT(c,!1);if(d&&(d===t||d===rr(t)||d===_u(rr(t))))return c}const f=Sv(s[e]||c[e],t)||Sv(s.appContext[e],t);return!f&&o?c:f}}function Sv(e,t){return e&&(e[t]||e[rr(t)]||e[_u(rr(t))])}function fr(e,t,r,o){let s;const c=r,f=Be(e);if(f||Dt(e)){const d=f&&ks(e);let h=!1,p=!1;d&&(h=!ur(e),p=no(e),e=Cu(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?jc(un(e[v])):un(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(kt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function ak(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Be(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function wn(e,t,r={},o,s){if(dn.ce||dn.parent&&Cs(dn.parent)&&dn.parent.ce)return t!=="default"&&(r.name=t),ie(),Je(nt,null,[Pe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),ie();const f=c&&Hy(c(r)),d=r.key||f&&f.key,h=Je(nt,{key:(d&&!Mr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function Hy(e){return e.some(t=>Ds(t)?!(t.type===on||t.type===nt&&!Hy(t.children)):!0)?e:null}function ck(e,t){const r={};for(const o in e)r[Mc(o)]=e[o];return r}const Md=e=>e?fb(e)?Ru(e):Md(e.parent):null,Wl=nn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Md(e.parent),$root:e=>Md(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qy(e),$forceUpdate:e=>e.f||(e.f=()=>{Lh(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>Ok.bind(e)}),Jf=(e,t)=>e!==yt&&!e.__isScriptSetup&&xt(e,t),uk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Jf(o,t))return f[t]=1,o[t];if(s!==yt&&xt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&xt(p,t))return f[t]=3,c[t];if(r!==yt&&xt(r,t))return f[t]=4,r[t];$d&&(f[t]=0)}}const v=Wl[t];let m,b;if(v)return t==="$attrs"&&mn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==yt&&xt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,xt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Jf(s,t)?(s[t]=r,!0):o!==yt&&xt(o,t)?(o[t]=r,!0):xt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c,type:f}},d){let h,p;return!!(r[d]||e!==yt&&d[0]!=="$"&&xt(e,d)||Jf(t,d)||(h=c[0])&&xt(h,d)||xt(o,d)||xt(Wl,d)||xt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:xt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function fk(){return By().slots}function dk(){return By().attrs}function By(e){const t=Ti();return t.setupContext||(t.setupContext=hb(t))}function Xc(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function na(e,t){return!e||!t?e||t:Be(e)&&Be(t)?e.concat(t):nn({},Xc(e),Xc(t))}let $d=!0;function hk(e){const t=qy(e),r=e.proxy,o=e.ctx;$d=!1,t.beforeCreate&&kv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:L,activated:M,deactivated:E,beforeDestroy:A,beforeUnmount:$,destroyed:R,unmounted:T,render:I,renderTracked:F,renderTriggered:re,errorCaptured:se,serverPrefetch:J,expose:G,inheritAttrs:K,components:N,directives:O,filters:P}=t;if(p&&pk(p,o,null),f)for(const V in f){const oe=f[V];Ge(oe)&&(o[V]=oe.bind(r))}if(s){const V=s.call(r,r);kt(V)&&(e.data=nr(V))}if($d=!0,c)for(const V in c){const oe=c[V],ve=Ge(oe)?oe.bind(r,r):Ge(oe.get)?oe.get.bind(r,r):Vr,we=!Ge(oe)&&Ge(oe.set)?oe.set.bind(r):Vr,Oe=Se({get:ve,set:we});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:je=>Oe.value=je})}if(d)for(const V in d)Wy(d[V],o,r,V);if(h){const V=Ge(h)?h.call(r):h;Reflect.ownKeys(V).forEach(oe=>{Tr(oe,V[oe])})}v&&kv(v,e,"c");function H(V,oe){Be(oe)?oe.forEach(ve=>V(ve.bind(r))):oe&&V(oe.bind(r))}if(H(ek,m),H(co,b),H(tk,w),H(nk,L),H(ZS,M),H(JS,E),H(sk,se),H(ok,F),H(ik,re),H(Ta,$),H(Mu,T),H(rk,J),Be(G))if(G.length){const V=e.exposed||(e.exposed={});G.forEach(oe=>{Object.defineProperty(V,oe,{get:()=>r[oe],set:ve=>r[oe]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Vr&&(e.render=I),K!=null&&(e.inheritAttrs=K),N&&(e.components=N),O&&(e.directives=O),J&&Iy(e)}function pk(e,t,r=Vr){Be(e)&&(e=Nd(e));for(const o in e){const s=e[o];let c;kt(s)?"default"in s?c=yn(s.from||o,s.default,!0):c=yn(s.from||o):c=yn(s),Tt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function kv(e,t,r){$r(Be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Wy(e,t,r,o){let s=o.includes(".")?nb(r,o):()=>r[o];if(Dt(e)){const c=t[e];Ge(c)&&St(s,c)}else if(Ge(e))St(s,e.bind(r));else if(kt(e))if(Be(e))e.forEach(c=>Wy(c,t,r,o));else{const c=Ge(e.handler)?e.handler.bind(r):t[e.handler];Ge(c)&&St(s,c,e)}}function qy(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Yc(h,p,f,!0)),Yc(h,t,f)),kt(t)&&c.set(t,h),h}function Yc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Yc(e,c,r,!0),s&&s.forEach(f=>Yc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=gk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const gk={data:Tv,props:Cv,emits:Cv,methods:Pl,computed:Pl,beforeCreate:Ln,created:Ln,beforeMount:Ln,mounted:Ln,beforeUpdate:Ln,updated:Ln,beforeDestroy:Ln,beforeUnmount:Ln,destroyed:Ln,unmounted:Ln,activated:Ln,deactivated:Ln,errorCaptured:Ln,serverPrefetch:Ln,components:Pl,directives:Pl,watch:mk,provide:Tv,inject:vk};function Tv(e,t){return t?e?function(){return nn(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function vk(e,t){return Pl(Nd(e),Nd(t))}function Nd(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ln(e,t){return e?[...new Set([].concat(e,t))]:t}function Pl(e,t){return e?nn(Object.create(null),e,t):t}function Cv(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:nn(Object.create(null),Xc(e),Xc(t??{})):t}function mk(e,t){if(!e)return t;if(!t)return e;const r=nn(Object.create(null),e);for(const o in t)r[o]=Ln(e[o],t[o]);return r}function jy(){return{app:null,config:{isNativeTag:X0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let yk=0;function bk(e,t){return function(o,s=null){Ge(o)||(o=nn({},o)),s!=null&&!kt(s)&&(s=null);const c=jy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:yk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:nT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ge(v.install)?(f.add(v),v.install(p,...m)):Ge(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Pe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,Ru(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&($r(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Ro;Ro=p;try{return v()}finally{Ro=m}}};return p}}let Ro=null;function Tr(e,t){if(bn){let r=bn.provides;const o=bn.parent&&bn.parent.provides;o===r&&(r=bn.provides=Object.create(o)),r[e]=t}}function yn(e,t,r=!1){const o=Ti();if(o||Ro){let s=Ro?Ro._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ge(t)?t.call(o&&o.proxy):t}}function Uy(){return!!(Ti()||Ro)}const Vy={},Gy=()=>Object.create(Vy),Ky=e=>Object.getPrototypeOf(e)===Vy;function wk(e,t,r,o=!1){const s={},c=Gy();e.propsDefaults=Object.create(null),Xy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Th(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function xk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Ou(e.emitsOptions,b))continue;const w=t[b];if(h)if(xt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const L=rr(b);s[L]=Od(h,d,L,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Xy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!xt(t,m)&&((v=Si(m))===m||!xt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Od(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!xt(t,m))&&(delete c[m],p=!0)}p&&gi(e.attrs,"set","")}function Xy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Dl(h))continue;const p=t[h];let v;s&&xt(s,v=rr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Ou(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=mt(r),p=d||yt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Od(s,h,m,p[m],e,!xt(p,m))}}return f}function Od(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=xt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ge(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ca(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Si(r))&&(o=!0))}return o}const _k=new WeakMap;function Yy(e,t,r=!1){const o=r?_k:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ge(e)){const v=m=>{h=!0;const[b,w]=Yy(m,t,!0);nn(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return kt(e)&&o.set(e,_s),_s;if(Be(c))for(let v=0;v<c.length;v++){const m=rr(c[v]);Ev(m)&&(f[m]=yt)}else if(c)for(const v in c){const m=rr(v);if(Ev(m)){const b=c[v],w=f[m]=Be(b)||Ge(b)?{type:b}:nn({},b),L=w.type;let M=!1,E=!0;if(Be(L))for(let A=0;A<L.length;++A){const $=L[A],R=Ge($)&&$.name;if(R==="Boolean"){M=!0;break}else R==="String"&&(E=!1)}else M=Ge(L)&&L.name==="Boolean";w[0]=M,w[1]=E,(M||xt(w,"default"))&&d.push(m)}}const p=[f,d];return kt(e)&&o.set(e,p),p}function Ev(e){return e[0]!=="$"&&!Dl(e)}const Nh=e=>e==="_"||e==="_ctx"||e==="$stable",Oh=e=>Be(e)?e.map(Cr):[Cr(e)],Sk=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Oh(t(...s)),r);return o._c=!1,o},Zy=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Nh(s))continue;const c=e[s];if(Ge(c))t[s]=Sk(s,c,o);else if(c!=null){const f=Oh(c);t[s]=()=>f}}},Jy=(e,t)=>{const r=Oh(t);e.slots.default=()=>r},Qy=(e,t,r)=>{for(const o in t)(r||!Nh(o))&&(e[o]=t[o])},kk=(e,t,r)=>{const o=e.slots=Gy();if(e.vnode.shapeFlag&32){const s=t._;s?(Qy(o,t,r),r&&Q0(o,"_",s,!0)):Zy(t,o)}else t&&Jy(e,t)},Tk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=yt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Qy(s,t,r):(c=!t.$stable,Zy(t,s)),f=t}else t&&(Jy(e,t),f={default:1});if(c)for(const d in s)!Nh(d)&&f[d]==null&&delete s[d]},Jn=Uk;function Ck(e){return Ek(e)}function Ek(e,t){const r=Su();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=Vr,insertStaticContent:L}=e,M=(z,U,Y,ue=null,he=null,fe=null,Ce=void 0,Ee=null,me=!!U.dynamicChildren)=>{if(z===U)return;z&&!Ur(z,U)&&(ue=W(z),je(z,he,fe,!0),z=null),U.patchFlag===-2&&(me=!1,U.dynamicChildren=null);const{type:be,ref:We,shapeFlag:$e}=U;switch(be){case Pu:E(z,U,Y,ue);break;case on:A(z,U,Y,ue);break;case ed:z==null&&$(U,Y,ue,Ce);break;case nt:N(z,U,Y,ue,he,fe,Ce,Ee,me);break;default:$e&1?I(z,U,Y,ue,he,fe,Ce,Ee,me):$e&6?O(z,U,Y,ue,he,fe,Ce,Ee,me):($e&64||$e&128)&&be.process(z,U,Y,ue,he,fe,Ce,Ee,me,ae)}We!=null&&he?Bl(We,z&&z.ref,fe,U||z,!U):We==null&&z&&z.ref!=null&&Bl(z.ref,null,fe,z,!0)},E=(z,U,Y,ue)=>{if(z==null)o(U.el=d(U.children),Y,ue);else{const he=U.el=z.el;U.children!==z.children&&p(he,U.children)}},A=(z,U,Y,ue)=>{z==null?o(U.el=h(U.children||""),Y,ue):U.el=z.el},$=(z,U,Y,ue)=>{[z.el,z.anchor]=L(z.children,U,Y,ue,z.el,z.anchor)},R=({el:z,anchor:U},Y,ue)=>{let he;for(;z&&z!==U;)he=b(z),o(z,Y,ue),z=he;o(U,Y,ue)},T=({el:z,anchor:U})=>{let Y;for(;z&&z!==U;)Y=b(z),s(z),z=Y;s(U)},I=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{U.type==="svg"?Ce="svg":U.type==="math"&&(Ce="mathml"),z==null?F(U,Y,ue,he,fe,Ce,Ee,me):J(z,U,he,fe,Ce,Ee,me)},F=(z,U,Y,ue,he,fe,Ce,Ee)=>{let me,be;const{props:We,shapeFlag:$e,transition:De,dirs:Ve}=z;if(me=z.el=f(z.type,fe,We&&We.is,We),$e&8?v(me,z.children):$e&16&&se(z.children,me,null,ue,he,Qf(z,fe),Ce,Ee),Ve&&So(z,null,ue,"created"),re(me,z,z.scopeId,Ce,ue),We){for(const lt in We)lt!=="value"&&!Dl(lt)&&c(me,lt,null,We[lt],fe,ue);"value"in We&&c(me,"value",null,We.value,fe),(be=We.onVnodeBeforeMount)&&qr(be,ue,z)}Ve&&So(z,null,ue,"beforeMount");const rt=Ak(he,De);rt&&De.beforeEnter(me),o(me,U,Y),((be=We&&We.onVnodeMounted)||rt||Ve)&&Jn(()=>{be&&qr(be,ue,z),rt&&De.enter(me),Ve&&So(z,null,ue,"mounted")},he)},re=(z,U,Y,ue,he)=>{if(Y&&w(z,Y),ue)for(let fe=0;fe<ue.length;fe++)w(z,ue[fe]);if(he){let fe=he.subTree;if(U===fe||ob(fe.type)&&(fe.ssContent===U||fe.ssFallback===U)){const Ce=he.vnode;re(z,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},se=(z,U,Y,ue,he,fe,Ce,Ee,me=0)=>{for(let be=me;be<z.length;be++){const We=z[be]=Ee?Ui(z[be]):Cr(z[be]);M(null,We,U,Y,ue,he,fe,Ce,Ee)}},J=(z,U,Y,ue,he,fe,Ce)=>{const Ee=U.el=z.el;let{patchFlag:me,dynamicChildren:be,dirs:We}=U;me|=z.patchFlag&16;const $e=z.props||yt,De=U.props||yt;let Ve;if(Y&&ko(Y,!1),(Ve=De.onVnodeBeforeUpdate)&&qr(Ve,Y,U,z),We&&So(U,z,Y,"beforeUpdate"),Y&&ko(Y,!0),($e.innerHTML&&De.innerHTML==null||$e.textContent&&De.textContent==null)&&v(Ee,""),be?G(z.dynamicChildren,be,Ee,Y,ue,Qf(U,he),fe):Ce||oe(z,U,Ee,null,Y,ue,Qf(U,he),fe,!1),me>0){if(me&16)K(Ee,$e,De,Y,he);else if(me&2&&$e.class!==De.class&&c(Ee,"class",null,De.class,he),me&4&&c(Ee,"style",$e.style,De.style,he),me&8){const rt=U.dynamicProps;for(let lt=0;lt<rt.length;lt++){const ft=rt[lt],$t=$e[ft],at=De[ft];(at!==$t||ft==="value")&&c(Ee,ft,$t,at,he,Y)}}me&1&&z.children!==U.children&&v(Ee,U.children)}else!Ce&&be==null&&K(Ee,$e,De,Y,he);((Ve=De.onVnodeUpdated)||We)&&Jn(()=>{Ve&&qr(Ve,Y,U,z),We&&So(U,z,Y,"updated")},ue)},G=(z,U,Y,ue,he,fe,Ce)=>{for(let Ee=0;Ee<U.length;Ee++){const me=z[Ee],be=U[Ee],We=me.el&&(me.type===nt||!Ur(me,be)||me.shapeFlag&198)?m(me.el):Y;M(me,be,We,null,ue,he,fe,Ce,!0)}},K=(z,U,Y,ue,he)=>{if(U!==Y){if(U!==yt)for(const fe in U)!Dl(fe)&&!(fe in Y)&&c(z,fe,U[fe],null,he,ue);for(const fe in Y){if(Dl(fe))continue;const Ce=Y[fe],Ee=U[fe];Ce!==Ee&&fe!=="value"&&c(z,fe,Ee,Ce,he,ue)}"value"in Y&&c(z,"value",U.value,Y.value,he)}},N=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{const be=U.el=z?z.el:d(""),We=U.anchor=z?z.anchor:d("");let{patchFlag:$e,dynamicChildren:De,slotScopeIds:Ve}=U;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),z==null?(o(be,Y,ue),o(We,Y,ue),se(U.children||[],Y,We,he,fe,Ce,Ee,me)):$e>0&&$e&64&&De&&z.dynamicChildren?(G(z.dynamicChildren,De,Y,he,fe,Ce,Ee),(U.key!=null||he&&U===he.subTree)&&eb(z,U,!0)):oe(z,U,Y,We,he,fe,Ce,Ee,me)},O=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{U.slotScopeIds=Ee,z==null?U.shapeFlag&512?he.ctx.activate(U,Y,ue,Ce,me):P(U,Y,ue,he,fe,Ce,me):S(z,U,me)},P=(z,U,Y,ue,he,fe,Ce)=>{const Ee=z.component=Yk(z,ue,he);if(Au(z)&&(Ee.ctx.renderer=ae),Zk(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,H,Ce),!z.el){const me=Ee.subTree=Pe(on);A(null,me,U,Y),z.placeholder=me.el}}else H(Ee,z,U,Y,he,fe,Ce)},S=(z,U,Y)=>{const ue=U.component=z.component;if(Fk(z,U,Y))if(ue.asyncDep&&!ue.asyncResolved){V(ue,U,Y);return}else ue.next=U,ue.update();else U.el=z.el,ue.vnode=U},H=(z,U,Y,ue,he,fe,Ce)=>{const Ee=()=>{if(z.isMounted){let{next:$e,bu:De,u:Ve,parent:rt,vnode:lt}=z;{const Bt=tb(z);if(Bt){$e&&($e.el=lt.el,V(z,$e,Ce)),Bt.asyncDep.then(()=>{z.isUnmounted||Ee()});return}}let ft=$e,$t;ko(z,!1),$e?($e.el=lt.el,V(z,$e,Ce)):$e=lt,De&&$c(De),($t=$e.props&&$e.props.onVnodeBeforeUpdate)&&qr($t,rt,$e,lt),ko(z,!0);const at=Lv(z),Gt=z.subTree;z.subTree=at,M(Gt,at,m(Gt.el),W(Gt),z,he,fe),$e.el=at.el,ft===null&&Rh(z,at.el),Ve&&Jn(Ve,he),($t=$e.props&&$e.props.onVnodeUpdated)&&Jn(()=>qr($t,rt,$e,lt),he)}else{let $e;const{el:De,props:Ve}=U,{bm:rt,m:lt,parent:ft,root:$t,type:at}=z,Gt=Cs(U);ko(z,!1),rt&&$c(rt),!Gt&&($e=Ve&&Ve.onVnodeBeforeMount)&&qr($e,ft,U),ko(z,!0);{$t.ce&&$t.ce._def.shadowRoot!==!1&&$t.ce._injectChildStyle(at);const Bt=z.subTree=Lv(z);M(null,Bt,Y,ue,z,he,fe),U.el=Bt.el}if(lt&&Jn(lt,he),!Gt&&($e=Ve&&Ve.onVnodeMounted)){const Bt=U;Jn(()=>qr($e,ft,Bt),he)}(U.shapeFlag&256||ft&&Cs(ft.vnode)&&ft.vnode.shapeFlag&256)&&z.a&&Jn(z.a,he),z.isMounted=!0,U=Y=ue=null}};z.scope.on();const me=z.effect=new sy(Ee);z.scope.off();const be=z.update=me.run.bind(me),We=z.job=me.runIfDirty.bind(me);We.i=z,We.id=z.uid,me.scheduler=()=>Lh(We),ko(z,!0),be()},V=(z,U,Y)=>{U.component=z;const ue=z.vnode.props;z.vnode=U,z.next=null,xk(z,U.props,ue,Y),Tk(z,U.children,Y),bi(),wv(z),wi()},oe=(z,U,Y,ue,he,fe,Ce,Ee,me=!1)=>{const be=z&&z.children,We=z?z.shapeFlag:0,$e=U.children,{patchFlag:De,shapeFlag:Ve}=U;if(De>0){if(De&128){we(be,$e,Y,ue,he,fe,Ce,Ee,me);return}else if(De&256){ve(be,$e,Y,ue,he,fe,Ce,Ee,me);return}}Ve&8?(We&16&&ne(be,he,fe),$e!==be&&v(Y,$e)):We&16?Ve&16?we(be,$e,Y,ue,he,fe,Ce,Ee,me):ne(be,he,fe,!0):(We&8&&v(Y,""),Ve&16&&se($e,Y,ue,he,fe,Ce,Ee,me))},ve=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{z=z||_s,U=U||_s;const be=z.length,We=U.length,$e=Math.min(be,We);let De;for(De=0;De<$e;De++){const Ve=U[De]=me?Ui(U[De]):Cr(U[De]);M(z[De],Ve,Y,null,he,fe,Ce,Ee,me)}be>We?ne(z,he,fe,!0,!1,$e):se(U,Y,ue,he,fe,Ce,Ee,me,$e)},we=(z,U,Y,ue,he,fe,Ce,Ee,me)=>{let be=0;const We=U.length;let $e=z.length-1,De=We-1;for(;be<=$e&&be<=De;){const Ve=z[be],rt=U[be]=me?Ui(U[be]):Cr(U[be]);if(Ur(Ve,rt))M(Ve,rt,Y,null,he,fe,Ce,Ee,me);else break;be++}for(;be<=$e&&be<=De;){const Ve=z[$e],rt=U[De]=me?Ui(U[De]):Cr(U[De]);if(Ur(Ve,rt))M(Ve,rt,Y,null,he,fe,Ce,Ee,me);else break;$e--,De--}if(be>$e){if(be<=De){const Ve=De+1,rt=Ve<We?U[Ve].el:ue;for(;be<=De;)M(null,U[be]=me?Ui(U[be]):Cr(U[be]),Y,rt,he,fe,Ce,Ee,me),be++}}else if(be>De)for(;be<=$e;)je(z[be],he,fe,!0),be++;else{const Ve=be,rt=be,lt=new Map;for(be=rt;be<=De;be++){const Ft=U[be]=me?Ui(U[be]):Cr(U[be]);Ft.key!=null&&lt.set(Ft.key,be)}let ft,$t=0;const at=De-rt+1;let Gt=!1,Bt=0;const In=new Array(at);for(be=0;be<at;be++)In[be]=0;for(be=Ve;be<=$e;be++){const Ft=z[be];if($t>=at){je(Ft,he,fe,!0);continue}let Dn;if(Ft.key!=null)Dn=lt.get(Ft.key);else for(ft=rt;ft<=De;ft++)if(In[ft-rt]===0&&Ur(Ft,U[ft])){Dn=ft;break}Dn===void 0?je(Ft,he,fe,!0):(In[Dn-rt]=be+1,Dn>=Bt?Bt=Dn:Gt=!0,M(Ft,U[Dn],Y,null,he,fe,Ce,Ee,me),$t++)}const Ir=Gt?Lk(In):_s;for(ft=Ir.length-1,be=at-1;be>=0;be--){const Ft=rt+be,Dn=U[Ft],tt=U[Ft+1],uo=Ft+1<We?tt.el||tt.placeholder:ue;In[be]===0?M(null,Dn,Y,uo,he,fe,Ce,Ee,me):Gt&&(ft<0||be!==Ir[ft]?Oe(Dn,Y,uo,2):ft--)}}},Oe=(z,U,Y,ue,he=null)=>{const{el:fe,type:Ce,transition:Ee,children:me,shapeFlag:be}=z;if(be&6){Oe(z.component.subTree,U,Y,ue);return}if(be&128){z.suspense.move(U,Y,ue);return}if(be&64){Ce.move(z,U,Y,ae);return}if(Ce===nt){o(fe,U,Y);for(let $e=0;$e<me.length;$e++)Oe(me[$e],U,Y,ue);o(z.anchor,U,Y);return}if(Ce===ed){R(z,U,Y);return}if(ue!==2&&be&1&&Ee)if(ue===0)Ee.beforeEnter(fe),o(fe,U,Y),Jn(()=>Ee.enter(fe),he);else{const{leave:$e,delayLeave:De,afterLeave:Ve}=Ee,rt=()=>{z.ctx.isUnmounted?s(fe):o(fe,U,Y)},lt=()=>{fe._isLeaving&&fe[pi](!0),$e(fe,()=>{rt(),Ve&&Ve()})};De?De(fe,rt,lt):lt()}else o(fe,U,Y)},je=(z,U,Y,ue=!1,he=!1)=>{const{type:fe,props:Ce,ref:Ee,children:me,dynamicChildren:be,shapeFlag:We,patchFlag:$e,dirs:De,cacheIndex:Ve}=z;if($e===-2&&(he=!1),Ee!=null&&(bi(),Bl(Ee,null,Y,z,!0),wi()),Ve!=null&&(U.renderCache[Ve]=void 0),We&256){U.ctx.deactivate(z);return}const rt=We&1&&De,lt=!Cs(z);let ft;if(lt&&(ft=Ce&&Ce.onVnodeBeforeUnmount)&&qr(ft,U,z),We&6)Ye(z.component,Y,ue);else{if(We&128){z.suspense.unmount(Y,ue);return}rt&&So(z,null,U,"beforeUnmount"),We&64?z.type.remove(z,U,Y,ae,ue):be&&!be.hasOnce&&(fe!==nt||$e>0&&$e&64)?ne(be,U,Y,!1,!0):(fe===nt&&$e&384||!he&&We&16)&&ne(me,U,Y),ue&&Qe(z)}(lt&&(ft=Ce&&Ce.onVnodeUnmounted)||rt)&&Jn(()=>{ft&&qr(ft,U,z),rt&&So(z,null,U,"unmounted")},Y)},Qe=z=>{const{type:U,el:Y,anchor:ue,transition:he}=z;if(U===nt){Xe(Y,ue);return}if(U===ed){T(z);return}const fe=()=>{s(Y),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(z.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,me=()=>Ce(Y,fe);Ee?Ee(z.el,fe,me):me()}else fe()},Xe=(z,U)=>{let Y;for(;z!==U;)Y=b(z),s(z),z=Y;s(U)},Ye=(z,U,Y)=>{const{bum:ue,scope:he,job:fe,subTree:Ce,um:Ee,m:me,a:be}=z;Av(me),Av(be),ue&&$c(ue),he.stop(),fe&&(fe.flags|=8,je(Ce,z,U,Y)),Ee&&Jn(Ee,U),Jn(()=>{z.isUnmounted=!0},U)},ne=(z,U,Y,ue=!1,he=!1,fe=0)=>{for(let Ce=fe;Ce<z.length;Ce++)je(z[Ce],U,Y,ue,he)},W=z=>{if(z.shapeFlag&6)return W(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const U=b(z.anchor||z.el),Y=U&&U[GS];return Y?b(Y):U};let Q=!1;const X=(z,U,Y)=>{z==null?U._vnode&&je(U._vnode,null,null,!0):M(U._vnode||null,z,U,null,null,null,Y),U._vnode=z,Q||(Q=!0,wv(),Cy(),Q=!1)},ae={p:M,um:je,m:Oe,r:Qe,mt:P,mc:se,pc:oe,pbc:G,n:W,o:e};return{render:X,hydrate:void 0,createApp:bk(X)}}function Qf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function ko({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ak(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function eb(e,t,r=!1){const o=e.children,s=t.children;if(Be(o)&&Be(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Ui(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&eb(f,d)),d.type===Pu&&d.patchFlag!==-1&&(d.el=f.el),d.type===on&&!d.el&&(d.el=f.el)}}function Lk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function tb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:tb(t)}function Av(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Mk=Symbol.for("v-scx"),$k=()=>yn(Mk);function Ph(e,t){return $u(e,null,t)}function Nk(e,t){return $u(e,null,{flush:"sync"})}function St(e,t,r){return $u(e,t,r)}function $u(e,t,r=yt){const{immediate:o,deep:s,flush:c,once:f}=r,d=nn({},r),h=t&&o||!t&&c!=="post";let p;if(ia){if(c==="sync"){const w=$k();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Vr,w.resume=Vr,w.pause=Vr,w}}const v=bn;d.call=(w,L,M)=>$r(w,v,L,M);let m=!1;c==="post"?d.scheduler=w=>{Jn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,L)=>{L?w():Lh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=jS(e,t,d);return ia&&(p?p.push(b):h&&b()),b}function Ok(e,t,r){const o=this.proxy,s=Dt(e)?e.includes(".")?nb(o,e):()=>o[e]:e.bind(o,o);let c;Ge(t)?c=t:(c=t.handler,r=t);const f=Ca(this),d=$u(s,c.bind(o),r);return f(),d}function nb(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Nu(e,t,r=yt){const o=Ti(),s=rr(t),c=Si(t),f=rb(e,s),d=_y((h,p)=>{let v,m=yt,b;return Nk(()=>{const w=e[s];Un(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const L=r.set?r.set(w):w;if(!Un(L,v)&&!(m!==yt&&Un(w,m)))return;const M=o.vnode.props;M&&(t in M||s in M||c in M)&&(`onUpdate:${t}`in M||`onUpdate:${s}`in M||`onUpdate:${c}`in M)||(v=w,p()),o.emit(`update:${t}`,L),Un(w,L)&&Un(w,m)&&!Un(L,b)&&p(),m=w,b=L}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||yt:d,done:!1}:{done:!0}}}},d}const rb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${rr(t)}Modifiers`]||e[`${Si(t)}Modifiers`];function Pk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||yt;let s=r;const c=t.startsWith("update:"),f=c&&rb(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Dt(v)?v.trim():v)),f.number&&(s=r.map(Sd)));let d,h=o[d=Mc(t)]||o[d=Mc(rr(t))];!h&&c&&(h=o[d=Mc(Si(t))]),h&&$r(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,$r(p,e,6,s)}}const Rk=new WeakMap;function ib(e,t,r=!1){const o=r?Rk:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ge(e)){const h=p=>{const v=ib(p,t,!0);v&&(d=!0,nn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(kt(e)&&o.set(e,null),null):(Be(c)?c.forEach(h=>f[h]=null):nn(f,c),kt(e)&&o.set(e,f),f)}function Ou(e,t){return!e||!bu(t)?!1:(t=t.slice(2).replace(/Once$/,""),xt(e,t[0].toLowerCase()+t.slice(1))||xt(e,Si(t))||xt(e,t))}function Lv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:L,inheritAttrs:M}=e,E=Gc(e);let A,$;try{if(r.shapeFlag&4){const T=s||o,I=T;A=Cr(p.call(I,T,v,m,w,b,L)),$=d}else{const T=t;A=Cr(T.length>1?T(m,{attrs:d,slots:f,emit:h}):T(m,null)),$=t.props?d:Ik(d)}}catch(T){ql.length=0,ka(T,e,1),A=Pe(on)}let R=A;if($&&M!==!1){const T=Object.keys($),{shapeFlag:I}=R;T.length&&I&7&&(c&&T.some(yh)&&($=Dk($,c)),R=ro(R,$,!1,!0))}return r.dirs&&(R=ro(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&ta(R,r.transition),A=R,Gc(E),A}function zk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Ds(s)){if(s.type!==on||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Ik=e=>{let t;for(const r in e)(r==="class"||r==="style"||bu(r))&&((t||(t={}))[r]=e[r]);return t},Dk=(e,t)=>{const r={};for(const o in e)(!yh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Fk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Mv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Ou(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Mv(o,f,p):!0:!!f;return!1}function Mv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Ou(r,c))return!0}return!1}function Rh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const ob=e=>e.__isSuspense;let Pd=0;const Hk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Bk(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Wk(e,t,r,o,s,f,d,h,p)}},hydrate:qk,normalize:jk},zh=Hk;function ra(e,t){const r=e.props&&e.props[t];Ge(r)&&r()}function Bk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=sb(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(ra(e,"onPending"),ra(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Es(b,e.ssFallback)):b.resolve(!1,!0)}function Wk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:L,pendingBranch:M,isInFallback:E,isHydrating:A}=m;if(M)m.pendingBranch=b,Ur(M,b)?(h(M,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():E&&(A||(h(L,w,r,o,s,null,c,f,d),Es(m,w)))):(m.pendingId=Pd++,A?(m.isHydrating=!1,m.activeBranch=M):p(M,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),E?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(L,w,r,o,s,null,c,f,d),Es(m,w))):L&&Ur(L,b)?(h(L,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(L&&Ur(L,b))h(L,b,r,o,s,m,c,f,d),Es(m,b);else if(ra(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Pd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:$,pendingId:R}=m;$>0?setTimeout(()=>{m.pendingId===R&&m.fallback(w)},$):$===0&&m.fallback(w)}}function sb(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:L,o:{parentNode:M,remove:E}}=p;let A;const $=Vk(e);$&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const R=e.props?ey(e.props.timeout):void 0,T=c,I={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Pd++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(F=!1,re=!1){const{vnode:se,activeBranch:J,pendingBranch:G,pendingId:K,effects:N,parentComponent:O,container:P}=I;let S=!1;I.isHydrating?I.isHydrating=!1:F||(S=J&&G.transition&&G.transition.mode==="out-in",S&&(J.transition.afterLeave=()=>{K===I.pendingId&&(b(G,P,c===T?L(J):c,0),Ed(N))}),J&&(M(J.el)===P&&(c=L(J)),w(J,O,I,!0)),S||b(G,P,c,0)),Es(I,G),I.pendingBranch=null,I.isInFallback=!1;let H=I.parent,V=!1;for(;H;){if(H.pendingBranch){H.effects.push(...N),V=!0;break}H=H.parent}!V&&!S&&Ed(N),I.effects=[],$&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!re&&t.resolve()),ra(se,"onResolve")},fallback(F){if(!I.pendingBranch)return;const{vnode:re,activeBranch:se,parentComponent:J,container:G,namespace:K}=I;ra(re,"onFallback");const N=L(se),O=()=>{I.isInFallback&&(m(null,F,G,N,J,null,K,d,h),Es(I,F))},P=F.transition&&F.transition.mode==="out-in";P&&(se.transition.afterLeave=O),I.isInFallback=!0,w(se,J,null,!0),P||O()},move(F,re,se){I.activeBranch&&b(I.activeBranch,F,re,se),I.container=F},next(){return I.activeBranch&&L(I.activeBranch)},registerDep(F,re,se){const J=!!I.pendingBranch;J&&I.deps++;const G=F.vnode.el;F.asyncDep.catch(K=>{ka(K,F,0)}).then(K=>{if(F.isUnmounted||I.isUnmounted||I.pendingId!==F.suspenseId)return;F.asyncResolved=!0;const{vnode:N}=F;zd(F,K),G&&(N.el=G);const O=!G&&F.subTree.el;re(F,N,M(G||F.subTree.el),G?null:L(F.subTree),I,f,se),O&&E(O),Rh(F,N.el),J&&--I.deps===0&&I.resolve()})},unmount(F,re){I.isUnmounted=!0,I.activeBranch&&w(I.activeBranch,r,F,re),I.pendingBranch&&w(I.pendingBranch,r,F,re)}};return I}function qk(e,t,r,o,s,c,f,d,h){const p=t.suspense=sb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function jk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=$v(o?r.default:r),e.ssFallback=o?$v(r.fallback):Pe(on)}function $v(e){let t;if(Ge(e)){const r=zs&&e._c;r&&(e._d=!1,ie()),e=e(),r&&(e._d=!0,t=Gn,lb())}return Be(e)&&(e=zk(e)),e=Cr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Uk(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):Ed(e)}function Es(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Rh(o,s))}function Vk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Pu=Symbol.for("v-txt"),on=Symbol.for("v-cmt"),ed=Symbol.for("v-stc"),ql=[];let Gn=null;function ie(e=!1){ql.push(Gn=e?null:[])}function lb(){ql.pop(),Gn=ql[ql.length-1]||null}let zs=1;function Is(e,t=!1){zs+=e,e<0&&Gn&&t&&(Gn.hasOnce=!0)}function ab(e){return e.dynamicChildren=zs>0?Gn||_s:null,lb(),zs>0&&Gn&&Gn.push(e),e}function ye(e,t,r,o,s,c){return ab(ee(e,t,r,o,s,c,!0))}function Je(e,t,r,o,s){return ab(Pe(e,t,r,o,s,!0))}function Ds(e){return e?e.__v_isVNode===!0:!1}function Ur(e,t){return e.type===t.type&&e.key===t.key}const cb=({key:e})=>e??null,Nc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Dt(e)||Tt(e)||Ge(e)?{i:dn,r:e,k:t,f:!!r}:e:null);function ee(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cb(t),ref:t&&Nc(t),scopeId:Eu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:dn};return d?(Ih(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Dt(r)?8:16),zs>0&&!f&&Gn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Gn.push(h),h}const Pe=Gk;function Gk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Fy)&&(e=on),Ds(e)){const d=ro(e,t,!0);return r&&Ih(d,r),zs>0&&!c&&Gn&&(d.shapeFlag&6?Gn[Gn.indexOf(e)]=d:Gn.push(d)),d.patchFlag=-2,d}if(tT(e)&&(e=e.__vccOpts),t){t=ub(t);let{class:d,style:h}=t;d&&!Dt(d)&&(t.class=st(d)),kt(h)&&(Eh(h)&&!Be(h)&&(h=nn({},h)),t.style=en(h))}const f=Dt(e)?1:ob(e)?128:$y(e)?64:kt(e)?4:Ge(e)?2:0;return ee(e,t,r,o,s,f,c,!0)}function ub(e){return e?Eh(e)||Ky(e)?nn({},e):e:null}function ro(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?yi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&cb(p),ref:t&&t.ref?r&&c?Be(c)?c.concat(Nc(t)):[c,Nc(t)]:Nc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ro(e.ssContent),ssFallback:e.ssFallback&&ro(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&ta(v,h.clone(v)),v}function ht(e=" ",t=0){return Pe(Pu,null,e,t)}function qe(e="",t=!1){return t?(ie(),Je(on,null,e)):Pe(on,null,e)}function Cr(e){return e==null||typeof e=="boolean"?Pe(on):Be(e)?Pe(nt,null,e.slice()):Ds(e)?Ui(e):Pe(Pu,null,String(e))}function Ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ro(e)}function Ih(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ih(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Ky(t)?t._ctx=dn:s===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:dn},r=32):(t=String(t),o&64?(r=16,t=[ht(t)]):r=8);e.children=t,e.shapeFlag|=r}function yi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=st([t.class,o.class]));else if(s==="style")t.style=en([t.style,o.style]);else if(bu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Be(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function qr(e,t,r,o=null){$r(e,t,7,[r,o])}const Kk=jy();let Xk=0;function Yk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Kk,c={uid:Xk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new pS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yy(o,s),emitsOptions:ib(o,s),emit:null,emitted:null,propsDefaults:yt,inheritAttrs:o.inheritAttrs,ctx:yt,data:yt,props:yt,attrs:yt,slots:yt,refs:yt,setupState:yt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Pk.bind(null,c),e.ce&&e.ce(c),c}let bn=null;const Ti=()=>bn||dn;let Zc,Rd;{const e=Su(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Zc=t("__VUE_INSTANCE_SETTERS__",r=>bn=r),Rd=t("__VUE_SSR_SETTERS__",r=>ia=r)}const Ca=e=>{const t=bn;return Zc(e),e.scope.on(),()=>{e.scope.off(),Zc(t)}},Nv=()=>{bn&&bn.scope.off(),Zc(null)};function fb(e){return e.vnode.shapeFlag&4}let ia=!1;function Zk(e,t=!1,r=!1){t&&Rd(t);const{props:o,children:s}=e.vnode,c=fb(e);wk(e,o,c,t),kk(e,s,r||t);const f=c?Jk(e,t):void 0;return t&&Rd(!1),f}function Jk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uk);const{setup:o}=r;if(o){bi();const s=e.setupContext=o.length>1?hb(e):null,c=Ca(e),f=Sa(o,e,0,[e.props,s]),d=Y0(f);if(wi(),c(),(d||e.sp)&&!Cs(e)&&Iy(e),d){if(f.then(Nv,Nv),t)return f.then(h=>{zd(e,h)}).catch(h=>{ka(h,e,0)});e.asyncDep=f}else zd(e,f)}else db(e)}function zd(e,t,r){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=xy(t)),db(e)}function db(e,t,r){const o=e.type;e.render||(e.render=o.render||Vr);{const s=Ca(e);bi();try{hk(e)}finally{wi(),s()}}}const Qk={get(e,t){return mn(e,"get",""),e[t]}};function hb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Qk),slots:e.slots,emit:e.emit,expose:t}}function Ru(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(xy(Ah(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Wl)return Wl[r](e)},has(t,r){return r in t||r in Wl}})):e.proxy}function eT(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function tT(e){return Ge(e)&&"__vccOpts"in e}const Se=(e,t)=>WS(e,t,ia);function Ea(e,t,r){const o=(c,f,d)=>{Is(-1);try{return Pe(c,f,d)}finally{Is(1)}},s=arguments.length;return s===2?kt(t)&&!Be(t)?Ds(t)?o(e,null,[t]):o(e,t):o(e,null,t):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&Ds(r)&&(r=[r]),o(e,t,r))}const nT="3.5.21";/**
14
+ * @vue/runtime-dom v3.5.21
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let Id;const Ov=typeof window<"u"&&window.trustedTypes;if(Ov)try{Id=Ov.createPolicy("vue",{createHTML:e=>e})}catch{}const pb=Id?e=>Id.createHTML(e):e=>e,rT="http://www.w3.org/2000/svg",iT="http://www.w3.org/1998/Math/MathML",di=typeof document<"u"?document:null,Pv=di&&di.createElement("template"),oT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?di.createElementNS(rT,e):t==="mathml"?di.createElementNS(iT,e):r?di.createElement(e,{is:r}):di.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>di.createTextNode(e),createComment:e=>di.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>di.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Pv.innerHTML=pb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Pv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Fi="transition",Al="animation",oa=Symbol("_vtc"),gb={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},sT=nn({},Ny,gb),lT=e=>(e.displayName="Transition",e.props=sT,e),aT=lT((e,{slots:t})=>Ea(YS,cT(e),t)),To=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},Rv=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function cT(e){const t={};for(const N in e)N in gb||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,L=uT(s),M=L&&L[0],E=L&&L[1],{onBeforeEnter:A,onEnter:$,onEnterCancelled:R,onLeave:T,onLeaveCancelled:I,onBeforeAppear:F=A,onAppear:re=$,onAppearCancelled:se=R}=t,J=(N,O,P,S)=>{N._enterCancelled=S,Co(N,O?v:d),Co(N,O?p:f),P&&P()},G=(N,O)=>{N._isLeaving=!1,Co(N,m),Co(N,w),Co(N,b),O&&O()},K=N=>(O,P)=>{const S=N?re:$,H=()=>J(O,N,P);To(S,[O,H]),zv(()=>{Co(O,N?h:c),ci(O,N?v:d),Rv(S)||Iv(O,o,M,H)})};return nn(t,{onBeforeEnter(N){To(A,[N]),ci(N,c),ci(N,f)},onBeforeAppear(N){To(F,[N]),ci(N,h),ci(N,p)},onEnter:K(!1),onAppear:K(!0),onLeave(N,O){N._isLeaving=!0;const P=()=>G(N,O);ci(N,m),N._enterCancelled?(ci(N,b),Hv()):(Hv(),ci(N,b)),zv(()=>{N._isLeaving&&(Co(N,m),ci(N,w),Rv(T)||Iv(N,o,E,P))}),To(T,[N,P])},onEnterCancelled(N){J(N,!1,void 0,!0),To(R,[N])},onAppearCancelled(N){J(N,!0,void 0,!0),To(se,[N])},onLeaveCancelled(N){G(N),To(I,[N])}})}function uT(e){if(e==null)return null;if(kt(e))return[td(e.enter),td(e.leave)];{const t=td(e);return[t,t]}}function td(e){return ey(e)}function ci(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[oa]||(e[oa]=new Set)).add(t)}function Co(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[oa];r&&(r.delete(t),r.size||(e[oa]=void 0))}function zv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fT=0;function Iv(e,t,r,o){const s=e._endId=++fT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=dT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function dT(e,t){const r=window.getComputedStyle(e),o=L=>(r[L]||"").split(", "),s=o(`${Fi}Delay`),c=o(`${Fi}Duration`),f=Dv(s,c),d=o(`${Al}Delay`),h=o(`${Al}Duration`),p=Dv(d,h);let v=null,m=0,b=0;t===Fi?f>0&&(v=Fi,m=f,b=c.length):t===Al?p>0&&(v=Al,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Fi:Al:null,b=v?v===Fi?c.length:h.length:0);const w=v===Fi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Fi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Dv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Fv(r)+Fv(e[o])))}function Fv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Hv(){return document.body.offsetHeight}function hT(e,t,r){const o=e[oa];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Jc=Symbol("_vod"),vb=Symbol("_vsh"),Xi={name:"show",beforeMount(e,{value:t},{transition:r}){e[Jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ll(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Ll(e,!0),o.enter(e)):o.leave(e,()=>{Ll(e,!1)}):Ll(e,t))},beforeUnmount(e,{value:t}){Ll(e,t)}};function Ll(e,t){e.style.display=t?e[Jc]:"none",e[vb]=!t}const pT=Symbol(""),gT=/(?:^|;)\s*display\s*:/;function vT(e,t,r){const o=e.style,s=Dt(r);let c=!1;if(r&&!s){if(t)if(Dt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Oc(o,d,"")}else for(const f in t)r[f]==null&&Oc(o,f,"");for(const f in r)f==="display"&&(c=!0),Oc(o,f,r[f])}else if(s){if(t!==r){const f=o[pT];f&&(r+=";"+f),o.cssText=r,c=gT.test(r)}}else t&&e.removeAttribute("style");Jc in e&&(e[Jc]=c?o.display:"",e[vb]&&(o.display="none"))}const Bv=/\s*!important$/;function Oc(e,t,r){if(Be(r))r.forEach(o=>Oc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=mT(e,t);Bv.test(r)?e.setProperty(Si(o),r.replace(Bv,""),"important"):e[o]=r}}const Wv=["Webkit","Moz","ms"],nd={};function mT(e,t){const r=nd[t];if(r)return r;let o=rr(t);if(o!=="filter"&&o in e)return nd[t]=o;o=_u(o);for(let s=0;s<Wv.length;s++){const c=Wv[s]+o;if(c in e)return nd[t]=c}return t}const qv="http://www.w3.org/1999/xlink";function jv(e,t,r,o,s,c=dS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(qv,t.slice(6,t.length)):e.setAttributeNS(qv,t,r):r==null||c&&!ty(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Mr(r)?String(r):r)}function Uv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?pb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=ty(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function $o(e,t,r,o){e.addEventListener(t,r,o)}function yT(e,t,r,o){e.removeEventListener(t,r,o)}const Vv=Symbol("_vei");function bT(e,t,r,o,s=null){const c=e[Vv]||(e[Vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=wT(t);if(o){const p=c[t]=ST(o,s);$o(e,d,p,h)}else f&&(yT(e,d,f,h),c[t]=void 0)}}const Gv=/(?:Once|Passive|Capture)$/;function wT(e){let t;if(Gv.test(e)){t={};let o;for(;o=e.match(Gv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Si(e.slice(2)),t]}let rd=0;const xT=Promise.resolve(),_T=()=>rd||(xT.then(()=>rd=0),rd=Date.now());function ST(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(kT(o,r.value),t,5,[o])};return r.value=e,r.attached=_T(),r}function kT(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Kv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,TT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?hT(e,o,f):t==="style"?vT(e,r,o):bu(t)?yh(t)||bT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):CT(e,t,o,f))?(Uv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dt(o))?Uv(e,rr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),jv(e,t,o,f))};function CT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Kv(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Kv(t)&&Dt(r)?!1:t in e}const Qc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>$c(t,r):t};function ET(e){e.target.composing=!0}function Xv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const As=Symbol("_assign"),AT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[As]=Qc(s);const c=o||s.props&&s.props.type==="number";$o(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=Sd(d)),e[As](d)}),r&&$o(e,"change",()=>{e.value=e.value.trim()}),t||($o(e,"compositionstart",ET),$o(e,"compositionend",Xv),$o(e,"change",Xv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[As]=Qc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Sd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},mb={deep:!0,created(e,t,r){e[As]=Qc(r),$o(e,"change",()=>{const o=e._modelValue,s=LT(e),c=e.checked,f=e[As];if(Be(o)){const d=ny(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(wu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(yb(e,c))})},mounted:Yv,beforeUpdate(e,t,r){e[As]=Qc(r),Yv(e,t,r)}};function Yv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Be(t))s=ny(t,o.props.value)>-1;else if(wu(t))s=t.has(o.props.value);else{if(t===r)return;s=ku(t,yb(e,!0))}e.checked!==s&&(e.checked=s)}function LT(e){return"_value"in e?e._value:e.value}function yb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const MT=["ctrl","shift","alt","meta"],$T={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>MT.some(r=>e[`${r}Key`]&&!t.includes(r))},Pc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=$T[t[f]];if(d&&d(s,t))return}return e(s,...c)})},NT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Dd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=Si(s.key);if(t.some(f=>f===c||NT[f]===c))return e(s)})},OT=nn({patchProp:TT},oT);let Zv;function PT(){return Zv||(Zv=Ck(OT))}const bb=(...e)=>{const t=PT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=zT(o);if(!s)return;const c=t._component;!Ge(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,RT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function RT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zT(e){return Dt(e)?document.querySelector(e):e}const Zr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},IT={};function DT(e,t){const r=Io("RouterView");return ie(),Je(r)}const FT=Zr(IT,[["render",DT]]),HT=["top","right","bottom","left"],Jv=["start","end"],Qv=HT.reduce((e,t)=>e.concat(t,t+"-"+Jv[0],t+"-"+Jv[1]),[]),sa=Math.min,Lo=Math.max,BT={left:"right",right:"left",bottom:"top",top:"bottom"},WT={start:"end",end:"start"};function Fd(e,t,r){return Lo(e,sa(t,r))}function Fo(e,t){return typeof e=="function"?e(t):e}function Yr(e){return e.split("-")[0]}function Lr(e){return e.split("-")[1]}function wb(e){return e==="x"?"y":"x"}function Dh(e){return e==="y"?"height":"width"}function Aa(e){return["top","bottom"].includes(Yr(e))?"y":"x"}function Fh(e){return wb(Aa(e))}function xb(e,t,r){r===void 0&&(r=!1);const o=Lr(e),s=Fh(e),c=Dh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=tu(f)),[f,tu(f)]}function qT(e){const t=tu(e);return[eu(e),t,eu(t)]}function eu(e){return e.replace(/start|end/g,t=>WT[t])}function jT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function UT(e,t,r,o){const s=Lr(e);let c=jT(Yr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(eu)))),c}function tu(e){return e.replace(/left|right|bottom|top/g,t=>BT[t])}function VT(e){return{top:0,right:0,bottom:0,left:0,...e}}function _b(e){return typeof e!="number"?VT(e):{top:e,right:e,bottom:e,left:e}}function jl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function em(e,t,r){let{reference:o,floating:s}=e;const c=Aa(t),f=Fh(t),d=Dh(f),h=Yr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Lr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const GT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=em(p,o,h),b=o,w={},L=0;for(let M=0;M<d.length;M++){const{name:E,fn:A}=d[M],{x:$,y:R,data:T,reset:I}=await A({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=$??v,m=R??m,w={...w,[E]:{...w[E],...T}},I&&L<=50&&(L++,typeof I=="object"&&(I.placement&&(b=I.placement),I.rects&&(p=I.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:v,y:m}=em(p,b,h)),M=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function zu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=Fo(t,e),L=_b(w),E=d[b?m==="floating"?"reference":"floating":m],A=jl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),$=m==="floating"?{...f.floating,x:o,y:s}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),T=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},I=jl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:R,strategy:h}):$);return{top:(A.top-I.top+L.top)/T.y,bottom:(I.bottom-A.bottom+L.bottom)/T.y,left:(A.left-I.left+L.left)/T.x,right:(I.right-A.right+L.right)/T.x}}const KT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Fo(e,t)||{};if(p==null)return{};const m=_b(v),b={x:r,y:o},w=Fh(s),L=Dh(w),M=await f.getDimensions(p),E=w==="y",A=E?"top":"left",$=E?"bottom":"right",R=E?"clientHeight":"clientWidth",T=c.reference[L]+c.reference[w]-b[w]-c.floating[L],I=b[w]-c.reference[w],F=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let re=F?F[R]:0;(!re||!await(f.isElement==null?void 0:f.isElement(F)))&&(re=d.floating[R]||c.floating[L]);const se=T/2-I/2,J=re/2-M[L]/2-1,G=sa(m[A],J),K=sa(m[$],J),N=G,O=re-M[L]-K,P=re/2-M[L]/2+se,S=Fd(N,P,O),H=!h.arrow&&Lr(s)!=null&&P!==S&&c.reference[L]/2-(P<N?G:K)-M[L]/2<0,V=H?P<N?P-N:P-O:0;return{[w]:b[w]+V,data:{[w]:S,centerOffset:P-S-V,...H&&{alignmentOffset:V}},reset:H}}});function XT(e,t,r){return(e?[...r.filter(s=>Lr(s)===e),...r.filter(s=>Lr(s)!==e)]:r.filter(s=>Yr(s)===s)).filter(s=>e?Lr(s)===e||(t?eu(s)!==s:!1):!0)}const YT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Qv,autoAlignment:w=!0,...L}=Fo(e,t),M=m!==void 0||b===Qv?XT(m||null,w,b):b,E=await zu(t,L),A=((r=f.autoPlacement)==null?void 0:r.index)||0,$=M[A];if($==null)return{};const R=xb($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:M[0]}};const T=[E[Yr($)],E[R[0]],E[R[1]]],I=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:T}],F=M[A+1];if(F)return{data:{index:A+1,overflows:I},reset:{placement:F}};const re=I.map(G=>{const K=Lr(G.placement);return[G.placement,K&&v?G.overflows.slice(0,2).reduce((N,O)=>N+O,0):G.overflows[0],G.overflows]}).sort((G,K)=>G[1]-K[1]),J=((s=re.filter(G=>G[2].slice(0,Lr(G[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||re[0][0];return J!==d?{data:{index:A+1,overflows:I},reset:{placement:J}}:{}}}},ZT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:M=!0,...E}=Fo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Yr(s),$=Yr(d)===d,R=await(h.isRTL==null?void 0:h.isRTL(p.floating)),T=b||($||!M?[tu(d)]:qT(d));!b&&L!=="none"&&T.push(...UT(d,M,L,R));const I=[d,...T],F=await zu(t,E),re=[];let se=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&re.push(F[A]),m){const N=xb(s,f,R);re.push(F[N[0]],F[N[1]])}if(se=[...se,{placement:s,overflows:re}],!re.every(N=>N<=0)){var J,G;const N=(((J=c.flip)==null?void 0:J.index)||0)+1,O=I[N];if(O)return{data:{index:N,overflows:se},reset:{placement:O}};let P=(G=se.filter(S=>S.overflows[0]<=0).sort((S,H)=>S.overflows[1]-H.overflows[1])[0])==null?void 0:G.placement;if(!P)switch(w){case"bestFit":{var K;const S=(K=se.map(H=>[H.placement,H.overflows.filter(V=>V>0).reduce((V,oe)=>V+oe,0)]).sort((H,V)=>H[1]-V[1])[0])==null?void 0:K[0];S&&(P=S);break}case"initialPlacement":P=d;break}if(s!==P)return{reset:{placement:P}}}return{}}}};async function JT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Yr(r),d=Lr(r),h=Aa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Fo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:L}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof L=="number"&&(w=d==="end"?L*-1:L),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const QT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await JT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},eC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:E=>{let{x:A,y:$}=E;return{x:A,y:$}}},...h}=Fo(e,t),p={x:r,y:o},v=await zu(t,h),m=Aa(Yr(s)),b=wb(m);let w=p[b],L=p[m];if(c){const E=b==="y"?"top":"left",A=b==="y"?"bottom":"right",$=w+v[E],R=w-v[A];w=Fd($,w,R)}if(f){const E=m==="y"?"top":"left",A=m==="y"?"bottom":"right",$=L+v[E],R=L-v[A];L=Fd($,L,R)}const M=d.fn({...t,[b]:w,[m]:L});return{...M,data:{x:M.x-r,y:M.y-o}}}}},tC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Fo(e,t),h=await zu(t,d),p=Yr(r),v=Lr(r),m=Aa(r)==="y",{width:b,height:w}=o.floating;let L,M;p==="top"||p==="bottom"?(L=p,M=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=p,L=v==="end"?"top":"bottom");const E=w-h[L],A=b-h[M],$=!t.middlewareData.shift;let R=E,T=A;if(m){const F=b-h.left-h.right;T=v||$?sa(A,F):F}else{const F=w-h.top-h.bottom;R=v||$?sa(E,F):F}if($&&!v){const F=Lo(h.left,0),re=Lo(h.right,0),se=Lo(h.top,0),J=Lo(h.bottom,0);m?T=b-2*(F!==0||re!==0?F+re:Lo(h.left,h.right)):R=w-2*(se!==0||J!==0?se+J:Lo(h.top,h.bottom))}await f({...t,availableWidth:T,availableHeight:R});const I=await s.getDimensions(c.floating);return b!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function cr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gr(e){return cr(e).getComputedStyle(e)}const tm=Math.min,Ul=Math.max,nu=Math.round;function Sb(e){const t=Gr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=nu(r)!==s||nu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function io(e){return Tb(e)?(e.nodeName||"").toLowerCase():""}let yc;function kb(){if(yc)return yc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(yc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),yc):navigator.userAgent}function Kr(e){return e instanceof cr(e).HTMLElement}function Ji(e){return e instanceof cr(e).Element}function Tb(e){return e instanceof cr(e).Node}function nm(e){return typeof ShadowRoot>"u"?!1:e instanceof cr(e).ShadowRoot||e instanceof ShadowRoot}function Iu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function nC(e){return["table","td","th"].includes(io(e))}function Hd(e){const t=/firefox/i.test(kb()),r=Gr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function Cb(){return!/^((?!chrome|android).)*safari/i.test(kb())}function Hh(e){return["html","body","#document"].includes(io(e))}function Eb(e){return Ji(e)?e:e.contextElement}const Ab={x:1,y:1};function Ls(e){const t=Eb(e);if(!Kr(t))return Ab;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Sb(t);let f=(c?nu(r.width):r.width)/o,d=(c?nu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function la(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Eb(e);let h=Ab;t&&(o?Ji(o)&&(h=Ls(o)):h=Ls(e));const p=d?cr(d):window,v=!Cb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,L=f.height/h.y;if(d){const M=cr(d),E=o&&Ji(o)?cr(o):o;let A=M.frameElement;for(;A&&o&&E!==M;){const $=Ls(A),R=A.getBoundingClientRect(),T=getComputedStyle(A);R.x+=(A.clientLeft+parseFloat(T.paddingLeft))*$.x,R.y+=(A.clientTop+parseFloat(T.paddingTop))*$.y,m*=$.x,b*=$.y,w*=$.x,L*=$.y,m+=R.x,b+=R.y,A=cr(A).frameElement}}return{width:w,height:L,top:b,right:m+w,bottom:b+L,left:m,x:m,y:b}}function Qi(e){return((Tb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return Ji(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lb(e){return la(Qi(e)).left+Du(e).scrollLeft}function aa(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nm(e)&&e.host||Qi(e);return nm(t)?t.host:t}function Mb(e){const t=aa(e);return Hh(t)?t.ownerDocument.body:Kr(t)&&Iu(t)?t:Mb(t)}function ru(e,t){var r;t===void 0&&(t=[]);const o=Mb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=cr(o);return s?t.concat(c,c.visualViewport||[],Iu(o)?o:[]):t.concat(o,ru(o))}function rm(e,t,r){return t==="viewport"?jl(function(o,s){const c=cr(o),f=Qi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=Cb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Ji(t)?jl(function(o,s){const c=la(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Kr(o)?Ls(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):jl(function(o){const s=Qi(o),c=Du(o),f=o.ownerDocument.body,d=Ul(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Ul(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Lb(o);const v=-c.scrollTop;return Gr(f).direction==="rtl"&&(p+=Ul(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Qi(e)))}function im(e){return Kr(e)&&Gr(e).position!=="fixed"?e.offsetParent:null}function om(e){const t=cr(e);let r=im(e);for(;r&&nC(r)&&Gr(r).position==="static";)r=im(r);return r&&(io(r)==="html"||io(r)==="body"&&Gr(r).position==="static"&&!Hd(r))?t:r||function(o){let s=aa(o);for(;Kr(s)&&!Hh(s);){if(Hd(s))return s;s=aa(s)}return null}(e)||t}function rC(e,t,r){const o=Kr(t),s=Qi(t),c=la(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((io(t)!=="body"||Iu(s))&&(f=Du(t)),Kr(t)){const h=la(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Lb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const iC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=ru(p).filter(E=>Ji(E)&&io(E)!=="body"),w=null;const L=Gr(p).position==="fixed";let M=L?aa(p):p;for(;Ji(M)&&!Hh(M);){const E=Gr(M),A=Hd(M);(L?A||w:A||E.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=E:b=b.filter($=>$!==M),M=aa(M)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=rm(t,v,s);return p.top=Ul(m.top,p.top),p.right=tm(m.right,p.right),p.bottom=tm(m.bottom,p.bottom),p.left=Ul(m.left,p.left),p},rm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Kr(r),c=Qi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((io(r)!=="body"||Iu(c))&&(f=Du(r)),Kr(r))){const p=la(r);d=Ls(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Ji,getDimensions:function(e){return Kr(e)?Sb(e):e.getBoundingClientRect()},getOffsetParent:om,getDocumentElement:Qi,getScale:Ls,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||om,c=this.getDimensions;return{reference:rC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Gr(e).direction==="rtl"},oC=(e,t,r)=>{const o=new Map,s={platform:iC,...r},c={...s.platform,_c:o};return GT(e,t,{...s,platform:c})},eo={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ca(e,t){let r=eo.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=eo.themes[r.$extend]||{}:(r=null,o=eo[t]):r=null;while(r);return o}function sC(e){const t=[e];let r=eo.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=eo.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function sm(e){const t=[e];let r=eo.themes[e]||{};do r.$extend?(t.push(r.$extend),r=eo.themes[r.$extend]||{}):r=null;while(r);return t}let ua=!1;if(typeof window<"u"){ua=!1;try{const e=Object.defineProperty({},"passive",{get(){ua=!0}});window.addEventListener("test",null,e)}catch{}}let $b=!1;typeof window<"u"&&typeof navigator<"u"&&($b=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Nb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),lm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},am={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function cm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function id(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const er=[];let Eo=null;const um={};function fm(e){let t=um[e];return t||(t=um[e]=[]),t}let Bd=function(){};typeof window<"u"&&(Bd=window.Element);function dt(e){return function(t){return ca(t.theme,e)}}const od="__floating-vue__popper",Ob=()=>ct({name:"VPopper",provide(){return{[od]:{parentPopper:this}}},inject:{[od]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:dt("disabled")},positioningDisabled:{type:Boolean,default:dt("positioningDisabled")},placement:{type:String,default:dt("placement"),validator:e=>Nb.includes(e)},delay:{type:[String,Number,Object],default:dt("delay")},distance:{type:[Number,String],default:dt("distance")},skidding:{type:[Number,String],default:dt("skidding")},triggers:{type:Array,default:dt("triggers")},showTriggers:{type:[Array,Function],default:dt("showTriggers")},hideTriggers:{type:[Array,Function],default:dt("hideTriggers")},popperTriggers:{type:Array,default:dt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:dt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:dt("popperHideTriggers")},container:{type:[String,Object,Bd,Boolean],default:dt("container")},boundary:{type:[String,Bd],default:dt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:dt("strategy")},autoHide:{type:[Boolean,Function],default:dt("autoHide")},handleResize:{type:Boolean,default:dt("handleResize")},instantMove:{type:Boolean,default:dt("instantMove")},eagerMount:{type:Boolean,default:dt("eagerMount")},popperClass:{type:[String,Array,Object],default:dt("popperClass")},computeTransformOrigin:{type:Boolean,default:dt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:dt("autoMinSize")},autoSize:{type:[Boolean,String],default:dt("autoSize")},autoMaxSize:{type:Boolean,default:dt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:dt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:dt("preventOverflow")},overflowPadding:{type:[Number,String],default:dt("overflowPadding")},arrowPadding:{type:[Number,String],default:dt("arrowPadding")},arrowOverflow:{type:Boolean,default:dt("arrowOverflow")},flip:{type:Boolean,default:dt("flip")},shift:{type:Boolean,default:dt("shift")},shiftCrossAxis:{type:Boolean,default:dt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:dt("noAutoFocus")},disposeTimeout:{type:Number,default:dt("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[od])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(QT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(YT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(eC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(ZT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(KT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(tC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await oC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Eo&&this.instantMove&&Eo.instantMove&&Eo!==this.parentPopper){Eo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Eo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await id(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ru(this.$_referenceNode),...ru(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<er.length;r++)t=er[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}er.push(this),document.body.classList.add("v-popper--some-open");for(const t of sm(this.theme))fm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await id(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,cm(er,this),er.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of sm(this.theme)){const o=fm(r);cm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Eo===this&&(Eo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await id(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,lm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],lm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,am,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],am,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ua?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Vl>=e.left&&Vl<=e.right&&Gl>=e.top&&Gl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Vl-Wi,o=Gl-qi,s=t.left+t.width/2-Wi+(t.top+t.height/2)-qi+t.width+t.height,c=Wi+r*s,f=qi+o*s;return bc(Wi,qi,c,f,t.left,t.top,t.left,t.bottom)||bc(Wi,qi,c,f,t.left,t.top,t.right,t.top)||bc(Wi,qi,c,f,t.right,t.top,t.right,t.bottom)||bc(Wi,qi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if($b){const e=ua?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dm(t),e),document.addEventListener("touchend",t=>hm(t,!0),e)}else window.addEventListener("mousedown",e=>dm(e),!0),window.addEventListener("click",e=>hm(e,!1),!0);window.addEventListener("resize",cC)}function dm(e,t){for(let r=0;r<er.length;r++){const o=er[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function hm(e,t){lC(e,t)}function lC(e,t){const r={};for(let o=er.length-1;o>=0;o--){const s=er[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&pm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&pm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function pm(e,t,r){return r.closeAllPopover||r.closePopover&&t||aC(e,r)&&!t}function aC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function cC(){for(let e=0;e<er.length;e++)er[e].$_computePosition()}function gm(){for(let e=0;e<er.length;e++)er[e].hide()}let Wi=0,qi=0,Vl=0,Gl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Wi=Vl,qi=Gl,Vl=e.clientX,Gl=e.clientY},ua?{passive:!0}:void 0);function bc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const uC={extends:Ob()},Fu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function fC(e,t,r,o,s,c){return ie(),ye("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[wn(e.$slots,"default",uS(ub(e.slotData)))],2)}const dC=Fu(uC,[["render",fC]]);function hC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function Wd(){Wd.init||(Wd.init=!0,Rc=hC()!==-1)}var Hu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wd(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const pC=My();Ay("data-v-b329ee4c");const gC={class:"resize-observer",tabindex:"-1"};Ly();const vC=pC((e,t,r,o,s,c)=>(ie(),Je("div",gC)));Hu.render=vC;Hu.__scopeId="data-v-b329ee4c";Hu.__file="src/components/ResizeObserver.vue";const Pb=(e="theme")=>({computed:{themeClass(){return sC(this[e])}}}),mC=ct({name:"VPopperContent",components:{ResizeObserver:Hu},mixins:[Pb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),yC=["id","aria-hidden","tabindex","data-popper-placement"],bC={ref:"inner",class:"v-popper__inner"},wC=ee("div",{class:"v-popper__arrow-outer"},null,-1),xC=ee("div",{class:"v-popper__arrow-inner"},null,-1),_C=[wC,xC];function SC(e,t,r,o,s,c){const f=Io("ResizeObserver");return ie(),ye("div",{id:e.popperId,ref:"popover",class:st(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:en(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Dd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[ee("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),ee("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ee("div",bC,[e.mounted?(ie(),ye(nt,{key:0},[ee("div",null,[wn(e.$slots,"default")]),e.handleResize?(ie(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):qe("",!0)],64)):qe("",!0)],512),ee("div",{ref:"arrow",class:"v-popper__arrow-container",style:en(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},_C,4)],4)],46,yC)}const Rb=Fu(mC,[["render",SC]]),zb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let qd=function(){};typeof window<"u"&&(qd=window.Element);const kC=ct({name:"VPopperWrapper",components:{Popper:dC,PopperContent:Rb},mixins:[zb,Pb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,qd,Boolean],default:void 0},boundary:{type:[String,qd],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function TC(e,t,r,o,s,c){const f=Io("PopperContent"),d=Io("Popper");return ie(),Je(d,yi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:L,handleResize:M,onResize:E,classes:A,result:$})=>[wn(e.$slots,"default",{shown:p,show:w,hide:L}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:A,result:$,onHide:L,onResize:E},{default:it(()=>[wn(e.$slots,"popper",{shown:p,hide:L})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Bh=Fu(kC,[["render",TC]]);({...Bh});({...Bh});const CC={...Bh,name:"VTooltip",vPopperTheme:"tooltip"},EC=ct({name:"VTooltipDirective",components:{Popper:Ob(),PopperContent:Rb},mixins:[zb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ca(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ca(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),AC=["innerHTML"],LC=["textContent"];function MC(e,t,r,o,s,c){const f=Io("PopperContent"),d=Io("Popper");return ie(),Je(d,yi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:L,onResize:M,classes:E,result:A})=>[Pe(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":L,classes:E,result:A,onHide:w,onResize:M},{default:it(()=>[e.html?(ie(),ye("div",{key:0,innerHTML:e.finalContent},null,8,AC)):(ie(),ye("div",{key:1,textContent:ze(e.finalContent)},null,8,LC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const $C=Fu(EC,[["render",MC]]),Ib="v-popper--has-tooltip";function NC(e,t){let r=e.placement;if(!r&&t)for(const o of Nb)t[o]&&(r=o);return r||(r=ca(e.theme||"tooltip","placement")),r}function Db(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=NC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let sd,fa,OC=0;function PC(){if(sd)return;fa=Ue([]),sd=bb({name:"VTooltipDirectiveApp",setup(){return{directives:fa}},render(){return this.directives.map(t=>Ea($C,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),sd.mount(e)}function Fb(e,t,r){PC();const o=Ue(Db(e,t,r)),s=Ue(!1),c={id:OC++,options:o,shown:s};return fa.value.push(c),e.classList&&e.classList.add(Ib),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Wh(e){if(e.$_popper){const t=fa.value.indexOf(e.$_popper.item);t!==-1&&fa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ib)}function vm(e,{value:t,modifiers:r}){const o=Db(e,t,r);if(!o.content||ca(o.theme||"tooltip","disabled"))Wh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Fb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const RC={beforeMount:vm,updated:vm,beforeUnmount(e){Wh(e)}},zC=RC,Hb=CC,Bb={options:eo};function Wb(e){return e!=null}function qh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const IC=/^[A-Za-z]:\//;function DC(e=""){return e&&e.replace(/\\/g,"/").replace(IC,t=>t.toUpperCase())}const FC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function HC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const qb=function(...e){e=e.map(o=>DC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:HC();!s||s.length===0||(t=`${s}/${t}`,r=mm(s))}return t=BC(t,!r),r&&!mm(t)?`/${t}`:t.length>0?t:"."};function BC(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const mm=function(e){return FC.test(e)};var WC=44,ym="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qC=new Uint8Array(64),jb=new Uint8Array(128);for(let e=0;e<ym.length;e++){const t=ym.charCodeAt(e);qC[e]=t,jb[t]=e}function Ml(e,t){let r=0,o=0,s=0;do{const f=e.next();s=jb[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function bm(e,t){return e.pos>=t?!1:e.peek()!==WC}var jC=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function UC(e){const{length:t}=e,r=new jC(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=Ml(r,s),s<b&&(m=!1),b=s,bm(r,p)?(c=Ml(r,c),f=Ml(r,f),d=Ml(r,d),bm(r,p)?(h=Ml(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||VC(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function VC(e){e.sort(GC)}function GC(e,t){return e[0]-t[0]}var Bu=0,KC=1,XC=2,YC=3,ZC=4,iu=!1;function JC(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Bu]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function QC(e,t,r){for(let o=r+1;o<e.length&&e[o][Bu]===t;r=o++);return r}function eE(e,t,r){for(let o=r-1;o>=0&&e[o][Bu]===t;r=o--);return r}function tE(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return iu=f!==-1&&e[f][Bu]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=JC(e,t,d,h)}var nE="`line` must be greater than 0 (lines start at line 1)",rE="`column` must be greater than or equal to 0 (columns start at column 0)",wm=-1,iE=1;function oE(e){var t;return(t=e)._decoded||(t._decoded=UC(e._encoded))}function sE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(nE);if(o<0)throw new Error(rE);const c=oE(e);if(r>=c.length)return wc(null,null,null,null);const f=c[r],d=lE(f,e._decodedMemo,r,o,s||iE);if(d===-1)return wc(null,null,null,null);const h=f[d];if(h.length===1)return wc(null,null,null,null);const{names:p,resolvedSources:v}=e;return wc(v[h[KC]],h[XC]+1,h[YC],h.length===5?p[h[ZC]]:null)}function wc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function lE(e,t,r,o,s){let c=tE(e,o,t,r);return iu?c=(s===wm?QC:eE)(e,o,c):s===wm&&c++,c===-1||c===e.length?-1:c}const Ub=/^\s*at .*(?:\S:\d+|\(native\))/m,aE=/^(?:eval@)?(?:\[native code\])?$/,cE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Vb(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function uE(e){let t=e.trim();if(aE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=Vb(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function fE(e){let t=e.trim();if(!Ub.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=Vb(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:qb(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function dE(e,t={}){const{ignoreStackEntries:r=cE}=t;return(Ub.test(e)?pE(e):hE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return xm(r,s.file)?null:s;const d=new gE(f,s.file),h=mE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let w=m||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),xm(r,w)?null:p!=null&&v!=null?{line:p,column:v,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function xm(e,t){return e.some(r=>t.match(r))}function hE(e){return e.split(`
18
+ `).map(t=>uE(t)).filter(Wb)}function pE(e){return e.split(`
19
+ `).map(t=>fE(t)).filter(Wb)}class gE{constructor(t,r){ot(this,"_encoded");ot(this,"_decoded");ot(this,"_decodedMemo");ot(this,"url");ot(this,"version");ot(this,"names",[]);ot(this,"resolvedSources");this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=vE(),this.url=r,this.resolvedSources=(c||[]).map(f=>qb(f||"",r))}}function vE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function mE(e,t){const r=sE(e,t);return r.column==null?null:r}const yE=/^[A-Za-z]:\//;function bE(e=""){return e&&e.replace(/\\/g,"/").replace(yE,t=>t.toUpperCase())}const wE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,_m=/^\/([A-Za-z]:)?$/;function xE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Sm=function(...e){e=e.map(o=>bE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:xE();!s||s.length===0||(t=`${s}/${t}`,r=km(s))}return t=_E(t,!r),r&&!km(t)?`/${t}`:t.length>0?t:"."};function _E(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const km=function(e){return wE.test(e)},Gb=function(e,t){const r=Sm(e).replace(_m,"$1").split("/"),o=Sm(t).replace(_m,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function SE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Kb(e,t,r,o){const s=Gb(t,e),c={id:kE(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function kE(e,t){return SE(`${e}${t||""}`)}function Fs(e){return e.type==="test"}function Xb(e){const t=[],r=qh(e);for(const o of r)if(Fs(o))t.push(o);else for(const s of o.tasks)if(Fs(s))t.push(s);else{const c=Xb(s);for(const f of c)t.push(f)}return t}function jh(e=[]){return qh(e).flatMap(t=>Fs(t)?[t]:[t,...jh(t.tasks)])}function TE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const Tm="q",Cm="s",CE=6e4;function Yb(e){return e}const EE=Yb,{clearTimeout:AE,setTimeout:LE}=globalThis,ME=Math.random.bind(Math);function $E(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Yb,deserialize:d=EE,resolver:h,bind:p="rpc",timeout:v=CE}=t,m=new Map;let b,w=!1;const L=new Proxy({},{get($,R){if(R==="$functions")return e;if(R==="$close")return M;if(R==="$rejectPendingCalls")return E;if(R==="$closed")return w;if(R==="then"&&!c.includes("then")&&!("then"in e))return;const T=(...F)=>{r(f({m:R,a:F,t:Tm}))};if(c.includes(R))return T.asEvent=T,T;const I=async(...F)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${R}"`);if(b)try{await b}finally{b=void 0}return new Promise((re,se)=>{var K;const J=OE();let G;v>=0&&(G=LE(()=>{var N;try{if(((N=t.onTimeoutError)==null?void 0:N.call(t,R,F))!==!0)throw new Error(`[birpc] timeout on calling "${R}"`)}catch(O){se(O)}m.delete(J)},v),typeof G=="object"&&(G=(K=G.unref)==null?void 0:K.call(G))),m.set(J,{resolve:re,reject:se,timeoutId:G,method:R}),r(f({m:R,a:F,i:J,t:"q"}))})};return I.asEvent=T,I}});function M($){w=!0,m.forEach(({reject:R,method:T})=>{const I=new Error(`[birpc] rpc is closed, cannot call "${T}"`);if($)return $.cause??($.cause=I),R($);R(I)}),m.clear(),s(A)}function E($){const T=Array.from(m.values()).map(({method:I,reject:F})=>$?$({method:I,reject:F}):F(new Error(`[birpc]: rejected pending call "${I}".`)));return m.clear(),T}async function A($,...R){var I,F,re;let T;try{T=d($)}catch(se){if(((I=t.onGeneralError)==null?void 0:I.call(t,se))!==!0)throw se;return}if(T.t===Tm){const{m:se,a:J}=T;let G,K;const N=h?h(se,e[se]):e[se];if(!N)K=new Error(`[birpc] function "${se}" not found`);else try{G=await N.apply(p==="rpc"?L:e,J)}catch(O){K=O}if(T.i){if(K&&t.onError&&t.onError(K,se,J),K&&t.onFunctionError&&t.onFunctionError(K,se,J)===!0)return;if(!K)try{r(f({t:Cm,i:T.i,r:G}),...R);return}catch(O){if(K=O,((F=t.onGeneralError)==null?void 0:F.call(t,O,se,J))!==!0)throw O}try{r(f({t:Cm,i:T.i,e:K}),...R)}catch(O){if(((re=t.onGeneralError)==null?void 0:re.call(t,O,se,J))!==!0)throw O}}}else{const{i:se,r:J,e:G}=T,K=m.get(se);K&&(AE(K.timeoutId),G?K.reject(G):K.resolve(J)),m.delete(se)}}return b=o(A),L}const NE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function OE(e=21){let t="",r=e;for(;r--;)t+=NE[ME()*64|0];return t}const{parse:Zb,stringify:PE}=JSON,{keys:RE}=Object,da=String,Jb="string",Em={},ou="object",Qb=(e,t)=>t,zE=e=>e instanceof da?da(e):e,IE=(e,t)=>typeof t===Jb?new da(t):t,ew=(e,t,r,o)=>{const s=[];for(let c=RE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof da){const v=e[p];typeof v===ou&&!t.has(v)?(t.add(v),r[h]=Em,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Em&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,ew.apply(null,h))}return r},Am=(e,t,r)=>{const o=da(t.push(r)-1);return e.set(r,o),o},jd=(e,t)=>{const r=Zb(e,IE).map(zE),o=r[0],s=t||Qb,c=typeof o===ou&&o?ew(r,new Set,o,s):o;return s.call({"":c},"",c)},tw=(e,t,r)=>{const o=t&&typeof t===ou?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Qb,s=new Map,c=[],f=[];let d=+Am(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=PE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case ou:if(b===null)return b;case Jb:return s.get(b)||Am(s,c,b)}return b}},DE=e=>Zb(tw(e));class nw{constructor(){ot(this,"filesMap",new Map);ot(this,"pathsSet",new Set);ot(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Kb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function FE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=$=>$,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new nw,waitForConnection:A,reconnect:M},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate($,R){var T;(T=r.onTestAnnotate)==null||T.call(r,$,R)},onSpecsCollected($){var R;$==null||$.forEach(([T,I])=>{v.state.clearFiles({config:T},[I])}),(R=r.onSpecsCollected)==null||R.call(r,$)},onPathsCollected($){var R;v.state.collectPaths($),(R=r.onPathsCollected)==null||R.call(r,$)},onCollected($){var R;v.state.collectFiles($),(R=r.onCollected)==null||R.call(r,$)},onTaskUpdate($,R){var T;v.state.updateTasks($),(T=r.onTaskUpdate)==null||T.call(r,$,R)},onUserConsoleLog($){var R;v.state.updateUserLog($),(R=r.onUserConsoleLog)==null||R.call(r,$)},onFinished($,R){var T;(T=r.onFinished)==null||T.call(r,$,R)},onFinishedReportCoverage(){var $;($=r.onFinishedReportCoverage)==null||$.call(r)}},w={post:$=>v.ws.send($),on:$=>m=$,serialize:$=>tw($,(R,T)=>T instanceof Error?{name:T.name,message:T.message,stack:T.stack}:T),deserialize:jd,timeout:-1};v.rpc=$E(b,w);let L;function M($=!1){$&&(p=c),v.ws=new h(e),E()}function E(){L=new Promise(($,R)=>{var I,F;const T=(F=(I=setTimeout(()=>{R(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:I.unref)==null?void 0:F.call(I);v.ws.OPEN===v.ws.readyState&&$(),v.ws.addEventListener("open",()=>{p=c,$(),clearTimeout(T)})}),v.ws.addEventListener("message",$=>{m($.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,s)})}E();function A(){return L}return v}function Uh(e){return oy()?(gS(e),!0):!1}const ld=new WeakMap,HE=(...e)=>{var t;const r=e[0],o=(t=Ti())==null?void 0:t.proxy;if(o==null&&!Uy())throw new Error("injectLocal must be called in setup");return o&&ld.has(o)&&r in ld.get(o)?ld.get(o)[r]:yn(...e)},BE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const WE=Object.prototype.toString,qE=e=>WE.call(e)==="[object Object]",su=()=>{};function rw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const iw=e=>e();function ow(e,t={}){let r,o,s=su;const c=h=>{clearTimeout(h),s(),s=su};let f;return h=>{const p=Vt(e),v=Vt(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function jE(e=iw,t={}){const{initialState:r="active"}=t,o=sw(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:_a(o),pause:s,resume:c,eventFilter:f}}function Lm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function Mm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function UE(e){return Ti()}function ad(e){return Array.isArray(e)?e:[e]}function sw(...e){if(e.length!==1)return Gs(...e);const t=e[0];return typeof t=="function"?_a(_y(()=>({get:t,set:su}))):Ue(t)}function xc(e,t=200,r={}){return rw(ow(t,r),e)}function lw(e,t,r={}){const{eventFilter:o=iw,...s}=r;return St(e,rw(o,t),s)}function aw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=jE(o,{initialState:s});return{stop:lw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Vh(e,t=!0,r){UE()?co(e,r):t?e():At(e)}function Ud(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:L,throwOnTimeout:M}={}){let E=null;const $=[new Promise(R=>{E=St(e,T=>{m(T)!==t&&(E?E():At(()=>E==null?void 0:E()),R(T))},{flush:b,deep:w,immediate:!0})})];return L!=null&&$.push(Lm(L,M).then(()=>Vt(e)).finally(()=>E==null?void 0:E())),Promise.race($)}function o(m,b){if(!Tt(m))return r(T=>T===m,b);const{flush:w="sync",deep:L=!1,timeout:M,throwOnTimeout:E}=b??{};let A=null;const R=[new Promise(T=>{A=St([e,m],([I,F])=>{t!==(I===F)&&(A?A():At(()=>A==null?void 0:A()),T(I))},{flush:w,deep:L,immediate:!0})})];return M!=null&&R.push(Lm(M,E).then(()=>Vt(e)).finally(()=>(A==null||A(),Vt(e)))),Promise.race(R)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const L=Array.from(w);return L.includes(m)||L.includes(Vt(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Vt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Ud(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Ud(e,!t)}}}function $m(e){return Ud(e)}function VE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Tt(e),c=tn(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Vt(r);return c.value=c.value===h?Vt(o):h,c.value}}return s?f:[c,f]}function Gh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return lw(e,t,{...c,eventFilter:ow(o,{maxWait:s})})}function GE(e,t,r){return St(e,t,{...r,immediate:!0})}function KE(e,t,r){const o=St(e,(...s)=>(At(()=>o()),t(...s)),r);return o}function XE(e,t,r){let o;Tt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=su}=o,h=tn(!s),p=f?tn(t):Ue(t);let v=0;return Ph(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const L=await e(M=>{m(()=>{c&&(c.value=!1),w||M()})});b===v&&(p.value=L)}catch(L){d(L)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?Se(()=>(h.value=!0,p.value)):p}const Nr=BE?window:void 0;function lu(e){var t;const r=Vt(e);return(t=r==null?void 0:r.$el)!=null?t:r}function oo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=Se(()=>{const d=ad(Vt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=GE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>lu(p)))!=null?h:[Nr].filter(p=>p!=null),ad(Vt(s.value?e[1]:e[0])),ad(B(s.value?e[2]:e[1])),Vt(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=qE(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(L=>o(b,w,L,m)))))},{flush:"post"}),f=()=>{c(),r()};return Uh(r),f}function YE(){const e=tn(!1),t=Ti();return t&&co(()=>{e.value=!0},t),e}function cw(e){const t=YE();return Se(()=>(t.value,!!e()))}function ZE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function uw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Nr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=ZE(t);return oo(s,c,v=>{v.repeat&&Vt(d)||h(v)&&r(v)},f)}function JE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Nr,once:c=!1}=t,f=tn(!1),d=Se(()=>o?1e3/Vt(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const L=w-h;if(d.value&&L<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:L,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Uh(b),{isActive:_a(f),pause:b,resume:m}}const QE=Symbol("vueuse-ssr-width");function eA(){const e=Uy()?HE(QE,null):null;return typeof e=="number"?e:void 0}function fw(e,t={}){const{window:r=Nr,ssrWidth:o=eA()}=t,s=cw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=tn(typeof o=="number"),f=tn(),d=tn(!1),h=p=>{d.value=p.matches};return Ph(()=>{if(c.value){c.value=!s.value;const p=Vt(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let L=!!(b||w);return b&&L&&(L=o>=Mm(b[1])),w&&L&&(L=o<=Mm(w[1])),m?!L:L});return}s.value&&(f.value=r.matchMedia(Vt(e)),d.value=f.value.matches)}),oo(f,"change",h,{passive:!0}),Se(()=>d.value)}const _c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sc="__vueuse_ssr_handlers__",tA=nA();function nA(){return Sc in _c||(_c[Sc]=_c[Sc]||{}),_c[Sc]}function dw(e,t){return tA[e]||t}function rA(e){return fw("(prefers-color-scheme: dark)",e)}function iA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const oA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Nm="vueuse-storage";function hw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Nr,eventFilter:b,onError:w=K=>{console.error(K)},initOnMounted:L}=o,M=(v?tn:Ue)(typeof t=="function"?t():t),E=Se(()=>Vt(e));if(!r)try{r=dw("getDefaultStorage",()=>{var K;return(K=Nr)==null?void 0:K.localStorage})()}catch(K){w(K)}if(!r)return M;const A=Vt(t),$=iA(A),R=(s=o.serializer)!=null?s:oA[$],{pause:T,resume:I}=aw(M,()=>re(M.value),{flush:c,deep:f,eventFilter:b});St(E,()=>J(),{flush:c}),m&&d&&Vh(()=>{r instanceof Storage?oo(m,"storage",J,{passive:!0}):oo(m,Nm,G),L&&J()}),L||J();function F(K,N){if(m){const O={key:E.value,oldValue:K,newValue:N,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Nm,{detail:O}))}}function re(K){try{const N=r.getItem(E.value);if(K==null)F(N,null),r.removeItem(E.value);else{const O=R.write(K);N!==O&&(r.setItem(E.value,O),F(N,O))}}catch(N){w(N)}}function se(K){const N=K?K.newValue:r.getItem(E.value);if(N==null)return h&&A!=null&&r.setItem(E.value,R.write(A)),A;if(!K&&p){const O=R.read(N);return typeof p=="function"?p(O,A):$==="object"&&!Array.isArray(O)?{...A,...O}:O}else return typeof N!="string"?N:R.read(N)}function J(K){if(!(K&&K.storageArea!==r)){if(K&&K.key==null){M.value=A;return}if(!(K&&K.key!==E.value)){T();try{(K==null?void 0:K.newValue)!==R.write(M.value)&&(M.value=se(K))}catch(N){w(N)}finally{K?At(I):I()}}}}function G(K){J(K.detail)}return M}const sA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function lA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Nr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=rA({window:s}),w=Se(()=>b.value?"dark":"light"),L=h||(f==null?sw(o):hw(f,o,c,{window:s,listenToStorageChanges:d})),M=Se(()=>L.value==="auto"?w.value:L.value),E=dw("updateHTMLAttrs",(T,I,F)=>{const re=typeof T=="string"?s==null?void 0:s.document.querySelector(T):lu(T);if(!re)return;const se=new Set,J=new Set;let G=null;if(I==="class"){const N=F.split(/\s/g);Object.values(m).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{N.includes(O)?se.add(O):J.add(O)})}else G={key:I,value:F};if(se.size===0&&J.size===0&&G===null)return;let K;v&&(K=s.document.createElement("style"),K.appendChild(document.createTextNode(sA)),s.document.head.appendChild(K));for(const N of se)re.classList.add(N);for(const N of J)re.classList.remove(N);G&&re.setAttribute(G.key,G.value),v&&(s.getComputedStyle(K).opacity,document.head.removeChild(K))});function A(T){var I;E(t,r,(I=m[T])!=null?I:T)}function $(T){e.onChanged?e.onChanged(T,A):A(T)}St(M,$,{flush:"post",immediate:!0}),Vh(()=>$(M.value));const R=Se({get(){return p?L.value:M.value},set(T){L.value=T}});return Object.assign(R,{store:L,system:w,state:M})}function aA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=lA({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=Se(()=>o.system.value);return Se({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function pw(e,t,r={}){const{window:o=Nr,...s}=r;let c;const f=cw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Se(()=>{const m=Vt(e);return Array.isArray(m)?m.map(b=>lu(b)):[lu(m)]}),p=St(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Uh(v),{isSupported:f,stop:v}}function Wu(e,t,r={}){const{window:o=Nr}=r;return hw(e,t,o==null?void 0:o.localStorage,r)}function cA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Nr}=t;if(!d)return nr(r);const h=nr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const R=d.location.hash||"",T=R.indexOf("?");return T>0?R.slice(T):""}else return(d.location.hash||"").replace(/^#/,"")}function v(R){const T=R.toString();if(e==="history")return`${T?`?${T}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${T?`#${T}`:""}`;const I=d.location.hash||"#",F=I.indexOf("?");return F>0?`${d.location.search||""}${I.slice(0,F)}${T?`?${T}`:""}`:`${d.location.search||""}${I}${T?`?${T}`:""}`}function m(){return new URLSearchParams(p())}function b(R){const T=new Set(Object.keys(h));for(const I of R.keys()){const F=R.getAll(I);h[I]=F.length>1?F:R.get(I)||"",T.delete(I)}Array.from(T).forEach(I=>delete h[I])}const{pause:w,resume:L}=aw(h,()=>{const R=new URLSearchParams("");Object.keys(h).forEach(T=>{const I=h[T];Array.isArray(I)?I.forEach(F=>R.append(T,F)):o&&I==null||s&&!I?R.delete(T):R.set(T,I)}),M(R,!1)},{deep:!0});function M(R,T){w(),T&&b(R),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(R)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(R)),L()}function E(){c&&M(m(),!0)}const A={passive:!0};oo(d,"popstate",E,A),e!=="history"&&oo(d,"hashchange",E,A);const $=m();return $.keys().next().value?b($):Object.assign(h,r),h}function gw(e={}){const{window:t=Nr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=tn(r),h=tn(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Vh(p);const v={passive:!0};if(oo("resize",p,v),t&&f==="visual"&&t.visualViewport&&oo(t.visualViewport,"resize",p,v),s){const m=fw("(orientation: portrait)");St(m,()=>p())}return{width:d,height:h}}const Vd=tn([]),Xn=tn([]),Or=Wu("vitest-ui_task-tree-opened",[],{shallow:!0}),au=Se(()=>new Set(Or.value)),fn=Wu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),jn=Ue(fn.value.search),uA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function vw(e){return e.replace(/[&<>"']/g,t=>uA[t])}const fA=Se(()=>{const e=jn.value.toLowerCase();return e.length?new RegExp(`(${vw(e)})`,"gi"):null}),mw=Se(()=>jn.value.trim()!==""),Ze=nr({failed:fn.value.failed,success:fn.value.success,skipped:fn.value.skipped,onlyTests:fn.value.onlyTests}),Gd=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped)),qu=tn([]),Hs=Ue(!1),Om=Se(()=>{const e=fn.value.expandAll;return Or.value.length>0?e!==!0:e!==!1}),dA=Se(()=>{const e=mw.value,t=Gd.value,r=Ze.onlyTests,o=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,c=Ae.summary.filesSkipped,f=Ae.summary.filesRunning,d=qu.value;return Ae.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function La(e){return Object.hasOwn(e,"tasks")}function hA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function yw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function bw(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function pA(e){return e.type==="test"}function gA(e){return e.mode==="run"&&e.type==="test"}function Pn(e){return e.type==="file"}function xi(e){return e.type==="file"||e.type==="suite"}function vA(e=Ae.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ha(e,t=!1){var o,s,c,f,d;let r=Ae.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:au.value.size>0&&au.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||yw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ae.nodes.set(e.id,r),Ae.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)Ma(e.id,e.tasks[h],!0)}function ww(e,t){const r=Ae.nodes.get(e);if(!r||!xi(r))return;const o=pt.state.idMap.get(e);if(!(!o||!La(o)))return Ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function mA(e){const t=Ae.nodes.get(e);if(!t)return;const r=pt.state.idMap.get(e);!r||!Fs(r)||Ma(t.parentId,r,!1)}function Ma(e,t,r){var f,d,h,p,v;const o=Ae.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ae.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Fs(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:au.value.size>0&&au.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ae.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&La(t)))for(let m=0;m<t.tasks.length;m++)Ma(s.id,t.tasks[m],r)}function yA(e){const t=Ae.nodes.get(e);if(!t||!xi(t))return;const r=new Set(Or.value);r.delete(t.id);const o=[...wA(t)];Or.value=Array.from(r),Xn.value=o}function bA(){Kd(Ae.root.tasks);const e=[...Xn.value.filter(Pn)];Kd(e),Or.value=[],fn.value.expandAll=!0,Xn.value=e}function Kd(e){for(const t of e)xi(t)&&(t.expanded=!1,Kd(t.tasks))}function*xw(e,t){if(t&&(yield e.id),xi(e))for(let r=0;r<e.tasks.length;r++)yield*xw(e.tasks[r],!0)}function*wA(e){const t=e.id,r=new Set(xw(e,!1));for(let o=0;o<Xn.value.length;o++){const s=Xn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const ju=Ue("idle"),ys=Se(()=>ju.value==="idle"),Vi=Ue([]);function xA(e,t,r){return e?kw(e,t,r):!1}function Kh(e,t){const r=[..._w(e,t)];Xn.value=r,qu.value=r.filter(Pn).map(o=>hr(o.id))}function*_w(e,t){for(const r of vA())yield*Sw(r,e,t)}function*Sw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Xd(e,o,w=>Pm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Xd(e,o,w=>Pm(w,t,r)))xi(b)?(s.set(b.id,m),Pn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Pn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...SA(c,r.onlyTests,o,d,f)].reverse(),p=Ae.nodes,v=new Set(h.filter(m=>{var b;return Pn(m)||xi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Pn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function _A(e,t,r,o,s){if(o){if(Pn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&Pn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&Pn(c)&&s.add(c.id),t}}function*SA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=xi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ae.nodes.get(d.parentId);for(;p;)r.add(p.id),Pn(p)&&o.add(p.id),p=Ae.nodes.get(p.parentId);yield d;continue}if(h){const p=_A(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ae.nodes.get(d.parentId);p&&Pn(p)&&o.add(p.id),yield d}}}function kA(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function kw(e,t,r){if(t.length===0||hA(e.name,t))if(r.success||r.failed||r.skipped){if(kA(e,r))return!0}else return!0;return!1}function*Xd(e,t,r){const o=r(e);if(o)if(pA(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(Pn(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[o,e],xi(e))for(let s=0;s<e.tasks.length;s++)yield*Xd(e.tasks[s],t,r)}function Pm(e,t,r){const o=pt.state.idMap.get(e.id);return o?kw(o,t,r):!1}function TA(e,t,r){const o=ww(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ma(s.id,p,!1);s.expanded=!0;const f=new Set(Or.value);f.add(s.id);const d=new Set(Sw(s,t,r)),h=[...AA(s,d)];Or.value=Array.from(f),Xn.value=h}function CA(e,t){Xh(Ae.root.tasks,!1);const r=[..._w(e,t)];fn.value.expandAll=!1,Or.value=[],Xn.value=r,qu.value=r.filter(Pn).map(o=>hr(o.id))}function EA(e,t){if(e.size)for(const r of Xn.value)e.has(r.id)&&(r.expanded=!0);else t&&Xh(Xn.value.filter(Pn),!0)}function Xh(e,t){for(const r of e)xi(r)&&(r.expanded=!0,Xh(r.tasks,!1));t&&(fn.value.expandAll=!1,Or.value=[])}function*AA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Xn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Yh(e){return Xb(e).some(t=>{var r,o;return(o=(r=t.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 LA(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ha(s,t)),Vd.value=[...Ae.root.tasks],Kh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function MA(e){queueMicrotask(()=>{const t=Ae.pendingTasks,r=pt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function $A(e,t){const r=Ae.pendingTasks,s=pt.state.idMap.get(e);if((s==null?void 0:s.type)==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Rm(e,t,r,o,s){e&&IA(r);const c=!e;queueMicrotask(()=>{t?PA(c):RA(c)}),queueMicrotask(()=>{DA(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Vd.value&&Yh(Vd.value.map(f=>hr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{zA(o,s,t)})}function*NA(){yield*Xn.value.filter(gA)}function OA(){const e=pt.state.idMap;let t;for(const r of NA())t=e.get(r.parentId),t&&La(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function PA(e){const t=pt.state.getFiles(),r=Ae.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ha(o[c],e),cu(o[c].tasks);const s=Ae.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=hr(f.id);if(!d)continue;ha(d,e);const h=d.tasks;h!=null&&h.length&&cu(d.tasks)}}function RA(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const r=Ae.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>hr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ha(s,!1),cu(s.tasks),t.delete(s.id);const c=pt.state.idMap,f=Ae.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=hr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ha(p,e),cu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function zA(e,t,r=!1){const o=fn.value.expandAll,s=o!==!0,c=new Set(Or.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{zm(e,t,r)}),Hs.value||queueMicrotask(()=>{(Xn.value.length||r)&&(Hs.value=!0)}),f&&(queueMicrotask(()=>{EA(c,r),s&&(fn.value.expandAll=!1)}),queueMicrotask(()=>{zm(e,t,r)}))}function zm(e,t,r){Kh(e,t),r&&(OA(),ju.value="idle")}function cu(e){let t;for(let r=0;r<e.length;r++)t=e[r],La(t)?ww(t.id,!0):mA(t.id)}function IA(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function DA(e){var f,d,h,p,v,m;const t=pt.state.idMap,r=new Map(Ae.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,hr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const L=r.get(b);L&&(L.mode=w.mode,L.setupDuration=w.setupDuration,L.prepareDuration=w.prepareDuration,L.environmentLoad=w.environmentLoad,L.collectDuration=w.collectDuration,L.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,L.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:M,success:E,skipped:A,total:$,ignored:R,todo:T}=Tw(w);s.totalTests+=$,s.testsFailed+=M,s.testsSuccess+=E,s.testsSkipped+=A,s.testsTodo+=T,s.testsIgnore+=R}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Tw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Cw(e))(!r||xA(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function FA(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>Tw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Cw(e){const t=qh(e);let r;for(let o=0;o<t.length;o++)r=t[o],Fs(r)?yield r:yield*Cw(r.tasks)}class HA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=nr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){ot(this,"rafCollector");ot(this,"resumeEndRunId");this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=JE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),LA(t,!0,jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){$A(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){MA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Rm(t,r,this.summary,jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):Rm(t,r,this.summary,jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return FA(t,r,o,s,jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{yA(t)})}expandNode(t){queueMicrotask(()=>{TA(t,jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{bA()})}expandAllNodes(){queueMicrotask(()=>{CA(jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kh(jn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ae=new HA,Qn=Ue([414,896]),$a=cA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),so=Gs($a,"file"),Wn=Gs($a,"view"),Ew=Gs($a,"line"),Aw=Gs($a,"column"),Ms=Gs($a,"test"),Bs=Ue(),$s=Ue(!0),lo=Ue(!1),uu=Ue(!0),bs=Se(()=>{var e;return(e=Ws.value)==null?void 0:e.coverage}),Yd=Se(()=>{var e;return(e=bs.value)==null?void 0:e.enabled}),ws=Se(()=>Yd.value&&!!bs.value.htmlReporter),Ns=Wu("vitest-ui_splitpanes-mainSizes",[33,67]);var K0;const to=Wu("vitest-ui_splitpanes-detailSizes",[((K0=window.__vitest_browser_runner__)==null?void 0:K0.provider)==="webdriverio"?Qn.value[0]/window.outerWidth*100:33,67]),Lt=nr({navigation:Ns.value[0],details:{size:Ns.value[1],browser:to.value[0],main:to.value[1]}}),Im=Se(()=>{var e;if(ws.value){const t=bs.value.reportsDirectory.lastIndexOf("/"),r=(e=bs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${bs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${bs.value.reportsDirectory.slice(t+1)}/index.html`}});St(ju,e=>{uu.value=e==="running"},{immediate:!0});function BA(){const e=so.value;if(e&&e.length>0){const t=hr(e);t?(Bs.value=t,$s.value=!1,lo.value=!1):KE(()=>pt.state.getFiles(),()=>{Bs.value=hr(e),$s.value=!1,lo.value=!1})}return $s}function fu(e){$s.value=e,lo.value=!1,e&&(Bs.value=void 0,so.value="")}function Uu({file:e,line:t,view:r,test:o,column:s}){so.value=e,Ew.value=t,Aw.value=s,Wn.value=r,Ms.value=o,Bs.value=hr(e),fu(!1)}function WA(e){Uu({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null,column:null})}function qA(){lo.value=!0,$s.value=!1,Bs.value=void 0,so.value=""}function jA(){Lt.details.browser=100,Lt.details.main=0,to.value=[100,0]}function Lw(){if((Ot==null?void 0:Ot.provider)==="webdriverio"){const e=window.outerWidth*(Lt.details.size/100);return(Qn.value[0]+20)/e*100}return 33}function UA(){Lt.details.browser=Lw(),Lt.details.main=100-Lt.details.browser,to.value=[Lt.details.browser,Lt.details.main]}function VA(){Lt.navigation=33,Lt.details.size=67,Ns.value=[33,67]}function Mw(){Lt.details.main!==0&&(Lt.details.browser=Lw(),Lt.details.main=100-Lt.details.browser,to.value=[Lt.details.browser,Lt.details.main])}const GA={setCurrentFileId(e){so.value=e,Bs.value=hr(e),fu(!1)},async setIframeViewport(e,t){Qn.value=[e,t],(Ot==null?void 0:Ot.provider)==="webdriverio"&&Mw(),await new Promise(r=>requestAnimationFrame(r))}},KA=location.port,XA=[location.hostname,KA].filter(Boolean).join(":"),YA=`${location.protocol==="https:"?"wss:":"ws:"}//${XA}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,dr=!!window.METADATA_PATH;function $w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cd={},Sr={};const ZA="Á",JA="á",QA="Ă",eL="ă",tL="∾",nL="∿",rL="∾̳",iL="Â",oL="â",sL="´",lL="А",aL="а",cL="Æ",uL="æ",fL="⁡",dL="𝔄",hL="𝔞",pL="À",gL="à",vL="ℵ",mL="ℵ",yL="Α",bL="α",wL="Ā",xL="ā",_L="⨿",SL="&",kL="&",TL="⩕",CL="⩓",EL="∧",AL="⩜",LL="⩘",ML="⩚",$L="∠",NL="⦤",OL="∠",PL="⦨",RL="⦩",zL="⦪",IL="⦫",DL="⦬",FL="⦭",HL="⦮",BL="⦯",WL="∡",qL="∟",jL="⊾",UL="⦝",VL="∢",GL="Å",KL="⍼",XL="Ą",YL="ą",ZL="𝔸",JL="𝕒",QL="⩯",eM="≈",tM="⩰",nM="≊",rM="≋",iM="'",oM="⁡",sM="≈",lM="≊",aM="Å",cM="å",uM="𝒜",fM="𝒶",dM="≔",hM="*",pM="≈",gM="≍",vM="Ã",mM="ã",yM="Ä",bM="ä",wM="∳",xM="⨑",_M="≌",SM="϶",kM="‵",TM="∽",CM="⋍",EM="∖",AM="⫧",LM="⊽",MM="⌅",$M="⌆",NM="⌅",OM="⎵",PM="⎶",RM="≌",zM="Б",IM="б",DM="„",FM="∵",HM="∵",BM="∵",WM="⦰",qM="϶",jM="ℬ",UM="ℬ",VM="Β",GM="β",KM="ℶ",XM="≬",YM="𝔅",ZM="𝔟",JM="⋂",QM="◯",e$="⋃",t$="⨀",n$="⨁",r$="⨂",i$="⨆",o$="★",s$="▽",l$="△",a$="⨄",c$="⋁",u$="⋀",f$="⤍",d$="⧫",h$="▪",p$="▴",g$="▾",v$="◂",m$="▸",y$="␣",b$="▒",w$="░",x$="▓",_$="█",S$="=⃥",k$="≡⃥",T$="⫭",C$="⌐",E$="𝔹",A$="𝕓",L$="⊥",M$="⊥",$$="⋈",N$="⧉",O$="┐",P$="╕",R$="╖",z$="╗",I$="┌",D$="╒",F$="╓",H$="╔",B$="─",W$="═",q$="┬",j$="╤",U$="╥",V$="╦",G$="┴",K$="╧",X$="╨",Y$="╩",Z$="⊟",J$="⊞",Q$="⊠",eN="┘",tN="╛",nN="╜",rN="╝",iN="└",oN="╘",sN="╙",lN="╚",aN="│",cN="║",uN="┼",fN="╪",dN="╫",hN="╬",pN="┤",gN="╡",vN="╢",mN="╣",yN="├",bN="╞",wN="╟",xN="╠",_N="‵",SN="˘",kN="˘",TN="¦",CN="𝒷",EN="ℬ",AN="⁏",LN="∽",MN="⋍",$N="⧅",NN="\\",ON="⟈",PN="•",RN="•",zN="≎",IN="⪮",DN="≏",FN="≎",HN="≏",BN="Ć",WN="ć",qN="⩄",jN="⩉",UN="⩋",VN="∩",GN="⋒",KN="⩇",XN="⩀",YN="ⅅ",ZN="∩︀",JN="⁁",QN="ˇ",e2="ℭ",t2="⩍",n2="Č",r2="č",i2="Ç",o2="ç",s2="Ĉ",l2="ĉ",a2="∰",c2="⩌",u2="⩐",f2="Ċ",d2="ċ",h2="¸",p2="¸",g2="⦲",v2="¢",m2="·",y2="·",b2="𝔠",w2="ℭ",x2="Ч",_2="ч",S2="✓",k2="✓",T2="Χ",C2="χ",E2="ˆ",A2="≗",L2="↺",M2="↻",$2="⊛",N2="⊚",O2="⊝",P2="⊙",R2="®",z2="Ⓢ",I2="⊖",D2="⊕",F2="⊗",H2="○",B2="⧃",W2="≗",q2="⨐",j2="⫯",U2="⧂",V2="∲",G2="”",K2="’",X2="♣",Y2="♣",Z2=":",J2="∷",Q2="⩴",eO="≔",tO="≔",nO=",",rO="@",iO="∁",oO="∘",sO="∁",lO="ℂ",aO="≅",cO="⩭",uO="≡",fO="∮",dO="∯",hO="∮",pO="𝕔",gO="ℂ",vO="∐",mO="∐",yO="©",bO="©",wO="℗",xO="∳",_O="↵",SO="✗",kO="⨯",TO="𝒞",CO="𝒸",EO="⫏",AO="⫑",LO="⫐",MO="⫒",$O="⋯",NO="⤸",OO="⤵",PO="⋞",RO="⋟",zO="↶",IO="⤽",DO="⩈",FO="⩆",HO="≍",BO="∪",WO="⋓",qO="⩊",jO="⊍",UO="⩅",VO="∪︀",GO="↷",KO="⤼",XO="⋞",YO="⋟",ZO="⋎",JO="⋏",QO="¤",eP="↶",tP="↷",nP="⋎",rP="⋏",iP="∲",oP="∱",sP="⌭",lP="†",aP="‡",cP="ℸ",uP="↓",fP="↡",dP="⇓",hP="‐",pP="⫤",gP="⊣",vP="⤏",mP="˝",yP="Ď",bP="ď",wP="Д",xP="д",_P="‡",SP="⇊",kP="ⅅ",TP="ⅆ",CP="⤑",EP="⩷",AP="°",LP="∇",MP="Δ",$P="δ",NP="⦱",OP="⥿",PP="𝔇",RP="𝔡",zP="⥥",IP="⇃",DP="⇂",FP="´",HP="˙",BP="˝",WP="`",qP="˜",jP="⋄",UP="⋄",VP="⋄",GP="♦",KP="♦",XP="¨",YP="ⅆ",ZP="ϝ",JP="⋲",QP="÷",eR="÷",tR="⋇",nR="⋇",rR="Ђ",iR="ђ",oR="⌞",sR="⌍",lR="$",aR="𝔻",cR="𝕕",uR="¨",fR="˙",dR="⃜",hR="≐",pR="≑",gR="≐",vR="∸",mR="∔",yR="⊡",bR="⌆",wR="∯",xR="¨",_R="⇓",SR="⇐",kR="⇔",TR="⫤",CR="⟸",ER="⟺",AR="⟹",LR="⇒",MR="⊨",$R="⇑",NR="⇕",OR="∥",PR="⤓",RR="↓",zR="↓",IR="⇓",DR="⇵",FR="̑",HR="⇊",BR="⇃",WR="⇂",qR="⥐",jR="⥞",UR="⥖",VR="↽",GR="⥟",KR="⥗",XR="⇁",YR="↧",ZR="⊤",JR="⤐",QR="⌟",ez="⌌",tz="𝒟",nz="𝒹",rz="Ѕ",iz="ѕ",oz="⧶",sz="Đ",lz="đ",az="⋱",cz="▿",uz="▾",fz="⇵",dz="⥯",hz="⦦",pz="Џ",gz="џ",vz="⟿",mz="É",yz="é",bz="⩮",wz="Ě",xz="ě",_z="Ê",Sz="ê",kz="≖",Tz="≕",Cz="Э",Ez="э",Az="⩷",Lz="Ė",Mz="ė",$z="≑",Nz="ⅇ",Oz="≒",Pz="𝔈",Rz="𝔢",zz="⪚",Iz="È",Dz="è",Fz="⪖",Hz="⪘",Bz="⪙",Wz="∈",qz="⏧",jz="ℓ",Uz="⪕",Vz="⪗",Gz="Ē",Kz="ē",Xz="∅",Yz="∅",Zz="◻",Jz="∅",Qz="▫",eI=" ",tI=" ",nI=" ",rI="Ŋ",iI="ŋ",oI=" ",sI="Ę",lI="ę",aI="𝔼",cI="𝕖",uI="⋕",fI="⧣",dI="⩱",hI="ε",pI="Ε",gI="ε",vI="ϵ",mI="≖",yI="≕",bI="≂",wI="⪖",xI="⪕",_I="⩵",SI="=",kI="≂",TI="≟",CI="⇌",EI="≡",AI="⩸",LI="⧥",MI="⥱",$I="≓",NI="ℯ",OI="ℰ",PI="≐",RI="⩳",zI="≂",II="Η",DI="η",FI="Ð",HI="ð",BI="Ë",WI="ë",qI="€",jI="!",UI="∃",VI="∃",GI="ℰ",KI="ⅇ",XI="ⅇ",YI="≒",ZI="Ф",JI="ф",QI="♀",eD="ffi",tD="ff",nD="ffl",rD="𝔉",iD="𝔣",oD="fi",sD="◼",lD="▪",aD="fj",cD="♭",uD="fl",fD="▱",dD="ƒ",hD="𝔽",pD="𝕗",gD="∀",vD="∀",mD="⋔",yD="⫙",bD="ℱ",wD="⨍",xD="½",_D="⅓",SD="¼",kD="⅕",TD="⅙",CD="⅛",ED="⅔",AD="⅖",LD="¾",MD="⅗",$D="⅜",ND="⅘",OD="⅚",PD="⅝",RD="⅞",zD="⁄",ID="⌢",DD="𝒻",FD="ℱ",HD="ǵ",BD="Γ",WD="γ",qD="Ϝ",jD="ϝ",UD="⪆",VD="Ğ",GD="ğ",KD="Ģ",XD="Ĝ",YD="ĝ",ZD="Г",JD="г",QD="Ġ",eF="ġ",tF="≥",nF="≧",rF="⪌",iF="⋛",oF="≥",sF="≧",lF="⩾",aF="⪩",cF="⩾",uF="⪀",fF="⪂",dF="⪄",hF="⋛︀",pF="⪔",gF="𝔊",vF="𝔤",mF="≫",yF="⋙",bF="⋙",wF="ℷ",xF="Ѓ",_F="ѓ",SF="⪥",kF="≷",TF="⪒",CF="⪤",EF="⪊",AF="⪊",LF="⪈",MF="≩",$F="⪈",NF="≩",OF="⋧",PF="𝔾",RF="𝕘",zF="`",IF="≥",DF="⋛",FF="≧",HF="⪢",BF="≷",WF="⩾",qF="≳",jF="𝒢",UF="ℊ",VF="≳",GF="⪎",KF="⪐",XF="⪧",YF="⩺",ZF=">",JF=">",QF="≫",eH="⋗",tH="⦕",nH="⩼",rH="⪆",iH="⥸",oH="⋗",sH="⋛",lH="⪌",aH="≷",cH="≳",uH="≩︀",fH="≩︀",dH="ˇ",hH=" ",pH="½",gH="ℋ",vH="Ъ",mH="ъ",yH="⥈",bH="↔",wH="⇔",xH="↭",_H="^",SH="ℏ",kH="Ĥ",TH="ĥ",CH="♥",EH="♥",AH="…",LH="⊹",MH="𝔥",$H="ℌ",NH="ℋ",OH="⤥",PH="⤦",RH="⇿",zH="∻",IH="↩",DH="↪",FH="𝕙",HH="ℍ",BH="―",WH="─",qH="𝒽",jH="ℋ",UH="ℏ",VH="Ħ",GH="ħ",KH="≎",XH="≏",YH="⁃",ZH="‐",JH="Í",QH="í",e3="⁣",t3="Î",n3="î",r3="И",i3="и",o3="İ",s3="Е",l3="е",a3="¡",c3="⇔",u3="𝔦",f3="ℑ",d3="Ì",h3="ì",p3="ⅈ",g3="⨌",v3="∭",m3="⧜",y3="℩",b3="IJ",w3="ij",x3="Ī",_3="ī",S3="ℑ",k3="ⅈ",T3="ℐ",C3="ℑ",E3="ı",A3="ℑ",L3="⊷",M3="Ƶ",$3="⇒",N3="℅",O3="∞",P3="⧝",R3="ı",z3="⊺",I3="∫",D3="∬",F3="ℤ",H3="∫",B3="⊺",W3="⋂",q3="⨗",j3="⨼",U3="⁣",V3="⁢",G3="Ё",K3="ё",X3="Į",Y3="į",Z3="𝕀",J3="𝕚",Q3="Ι",eB="ι",tB="⨼",nB="¿",rB="𝒾",iB="ℐ",oB="∈",sB="⋵",lB="⋹",aB="⋴",cB="⋳",uB="∈",fB="⁢",dB="Ĩ",hB="ĩ",pB="І",gB="і",vB="Ï",mB="ï",yB="Ĵ",bB="ĵ",wB="Й",xB="й",_B="𝔍",SB="𝔧",kB="ȷ",TB="𝕁",CB="𝕛",EB="𝒥",AB="𝒿",LB="Ј",MB="ј",$B="Є",NB="є",OB="Κ",PB="κ",RB="ϰ",zB="Ķ",IB="ķ",DB="К",FB="к",HB="𝔎",BB="𝔨",WB="ĸ",qB="Х",jB="х",UB="Ќ",VB="ќ",GB="𝕂",KB="𝕜",XB="𝒦",YB="𝓀",ZB="⇚",JB="Ĺ",QB="ĺ",e5="⦴",t5="ℒ",n5="Λ",r5="λ",i5="⟨",o5="⟪",s5="⦑",l5="⟨",a5="⪅",c5="ℒ",u5="«",f5="⇤",d5="⤟",h5="←",p5="↞",g5="⇐",v5="⤝",m5="↩",y5="↫",b5="⤹",w5="⥳",x5="↢",_5="⤙",S5="⤛",k5="⪫",T5="⪭",C5="⪭︀",E5="⤌",A5="⤎",L5="❲",M5="{",$5="[",N5="⦋",O5="⦏",P5="⦍",R5="Ľ",z5="ľ",I5="Ļ",D5="ļ",F5="⌈",H5="{",B5="Л",W5="л",q5="⤶",j5="“",U5="„",V5="⥧",G5="⥋",K5="↲",X5="≤",Y5="≦",Z5="⟨",J5="⇤",Q5="←",e8="←",t8="⇐",n8="⇆",r8="↢",i8="⌈",o8="⟦",s8="⥡",l8="⥙",a8="⇃",c8="⌊",u8="↽",f8="↼",d8="⇇",h8="↔",p8="↔",g8="⇔",v8="⇆",m8="⇋",y8="↭",b8="⥎",w8="↤",x8="⊣",_8="⥚",S8="⋋",k8="⧏",T8="⊲",C8="⊴",E8="⥑",A8="⥠",L8="⥘",M8="↿",$8="⥒",N8="↼",O8="⪋",P8="⋚",R8="≤",z8="≦",I8="⩽",D8="⪨",F8="⩽",H8="⩿",B8="⪁",W8="⪃",q8="⋚︀",j8="⪓",U8="⪅",V8="⋖",G8="⋚",K8="⪋",X8="⋚",Y8="≦",Z8="≶",J8="≶",Q8="⪡",e4="≲",t4="⩽",n4="≲",r4="⥼",i4="⌊",o4="𝔏",s4="𝔩",l4="≶",a4="⪑",c4="⥢",u4="↽",f4="↼",d4="⥪",h4="▄",p4="Љ",g4="љ",v4="⇇",m4="≪",y4="⋘",b4="⌞",w4="⇚",x4="⥫",_4="◺",S4="Ŀ",k4="ŀ",T4="⎰",C4="⎰",E4="⪉",A4="⪉",L4="⪇",M4="≨",$4="⪇",N4="≨",O4="⋦",P4="⟬",R4="⇽",z4="⟦",I4="⟵",D4="⟵",F4="⟸",H4="⟷",B4="⟷",W4="⟺",q4="⟼",j4="⟶",U4="⟶",V4="⟹",G4="↫",K4="↬",X4="⦅",Y4="𝕃",Z4="𝕝",J4="⨭",Q4="⨴",eW="∗",tW="_",nW="↙",rW="↘",iW="◊",oW="◊",sW="⧫",lW="(",aW="⦓",cW="⇆",uW="⌟",fW="⇋",dW="⥭",hW="‎",pW="⊿",gW="‹",vW="𝓁",mW="ℒ",yW="↰",bW="↰",wW="≲",xW="⪍",_W="⪏",SW="[",kW="‘",TW="‚",CW="Ł",EW="ł",AW="⪦",LW="⩹",MW="<",$W="<",NW="≪",OW="⋖",PW="⋋",RW="⋉",zW="⥶",IW="⩻",DW="◃",FW="⊴",HW="◂",BW="⦖",WW="⥊",qW="⥦",jW="≨︀",UW="≨︀",VW="¯",GW="♂",KW="✠",XW="✠",YW="↦",ZW="↦",JW="↧",QW="↤",eq="↥",tq="▮",nq="⨩",rq="М",iq="м",oq="—",sq="∺",lq="∡",aq=" ",cq="ℳ",uq="𝔐",fq="𝔪",dq="℧",hq="µ",pq="*",gq="⫰",vq="∣",mq="·",yq="⊟",bq="−",wq="∸",xq="⨪",_q="∓",Sq="⫛",kq="…",Tq="∓",Cq="⊧",Eq="𝕄",Aq="𝕞",Lq="∓",Mq="𝓂",$q="ℳ",Nq="∾",Oq="Μ",Pq="μ",Rq="⊸",zq="⊸",Iq="∇",Dq="Ń",Fq="ń",Hq="∠⃒",Bq="≉",Wq="⩰̸",qq="≋̸",jq="ʼn",Uq="≉",Vq="♮",Gq="ℕ",Kq="♮",Xq=" ",Yq="≎̸",Zq="≏̸",Jq="⩃",Qq="Ň",ej="ň",tj="Ņ",nj="ņ",rj="≇",ij="⩭̸",oj="⩂",sj="Н",lj="н",aj="–",cj="⤤",uj="↗",fj="⇗",dj="↗",hj="≠",pj="≐̸",gj="​",vj="​",mj="​",yj="​",bj="≢",wj="⤨",xj="≂̸",_j="≫",Sj="≪",kj=`
20
+ `,Tj="∄",Cj="∄",Ej="𝔑",Aj="𝔫",Lj="≧̸",Mj="≱",$j="≱",Nj="≧̸",Oj="⩾̸",Pj="⩾̸",Rj="⋙̸",zj="≵",Ij="≫⃒",Dj="≯",Fj="≯",Hj="≫̸",Bj="↮",Wj="⇎",qj="⫲",jj="∋",Uj="⋼",Vj="⋺",Gj="∋",Kj="Њ",Xj="њ",Yj="↚",Zj="⇍",Jj="‥",Qj="≦̸",e6="≰",t6="↚",n6="⇍",r6="↮",i6="⇎",o6="≰",s6="≦̸",l6="⩽̸",a6="⩽̸",c6="≮",u6="⋘̸",f6="≴",d6="≪⃒",h6="≮",p6="⋪",g6="⋬",v6="≪̸",m6="∤",y6="⁠",b6=" ",w6="𝕟",x6="ℕ",_6="⫬",S6="¬",k6="≢",T6="≭",C6="∦",E6="∉",A6="≠",L6="≂̸",M6="∄",$6="≯",N6="≱",O6="≧̸",P6="≫̸",R6="≹",z6="⩾̸",I6="≵",D6="≎̸",F6="≏̸",H6="∉",B6="⋵̸",W6="⋹̸",q6="∉",j6="⋷",U6="⋶",V6="⧏̸",G6="⋪",K6="⋬",X6="≮",Y6="≰",Z6="≸",J6="≪̸",Q6="⩽̸",eU="≴",tU="⪢̸",nU="⪡̸",rU="∌",iU="∌",oU="⋾",sU="⋽",lU="⊀",aU="⪯̸",cU="⋠",uU="∌",fU="⧐̸",dU="⋫",hU="⋭",pU="⊏̸",gU="⋢",vU="⊐̸",mU="⋣",yU="⊂⃒",bU="⊈",wU="⊁",xU="⪰̸",_U="⋡",SU="≿̸",kU="⊃⃒",TU="⊉",CU="≁",EU="≄",AU="≇",LU="≉",MU="∤",$U="∦",NU="∦",OU="⫽⃥",PU="∂̸",RU="⨔",zU="⊀",IU="⋠",DU="⊀",FU="⪯̸",HU="⪯̸",BU="⤳̸",WU="↛",qU="⇏",jU="↝̸",UU="↛",VU="⇏",GU="⋫",KU="⋭",XU="⊁",YU="⋡",ZU="⪰̸",JU="𝒩",QU="𝓃",eV="∤",tV="∦",nV="≁",rV="≄",iV="≄",oV="∤",sV="∦",lV="⋢",aV="⋣",cV="⊄",uV="⫅̸",fV="⊈",dV="⊂⃒",hV="⊈",pV="⫅̸",gV="⊁",vV="⪰̸",mV="⊅",yV="⫆̸",bV="⊉",wV="⊃⃒",xV="⊉",_V="⫆̸",SV="≹",kV="Ñ",TV="ñ",CV="≸",EV="⋪",AV="⋬",LV="⋫",MV="⋭",$V="Ν",NV="ν",OV="#",PV="№",RV=" ",zV="≍⃒",IV="⊬",DV="⊭",FV="⊮",HV="⊯",BV="≥⃒",WV=">⃒",qV="⤄",jV="⧞",UV="⤂",VV="≤⃒",GV="<⃒",KV="⊴⃒",XV="⤃",YV="⊵⃒",ZV="∼⃒",JV="⤣",QV="↖",e9="⇖",t9="↖",n9="⤧",r9="Ó",i9="ó",o9="⊛",s9="Ô",l9="ô",a9="⊚",c9="О",u9="о",f9="⊝",d9="Ő",h9="ő",p9="⨸",g9="⊙",v9="⦼",m9="Œ",y9="œ",b9="⦿",w9="𝔒",x9="𝔬",_9="˛",S9="Ò",k9="ò",T9="⧁",C9="⦵",E9="Ω",A9="∮",L9="↺",M9="⦾",$9="⦻",N9="‾",O9="⧀",P9="Ō",R9="ō",z9="Ω",I9="ω",D9="Ο",F9="ο",H9="⦶",B9="⊖",W9="𝕆",q9="𝕠",j9="⦷",U9="“",V9="‘",G9="⦹",K9="⊕",X9="↻",Y9="⩔",Z9="∨",J9="⩝",Q9="ℴ",eG="ℴ",tG="ª",nG="º",rG="⊶",iG="⩖",oG="⩗",sG="⩛",lG="Ⓢ",aG="𝒪",cG="ℴ",uG="Ø",fG="ø",dG="⊘",hG="Õ",pG="õ",gG="⨶",vG="⨷",mG="⊗",yG="Ö",bG="ö",wG="⌽",xG="‾",_G="⏞",SG="⎴",kG="⏜",TG="¶",CG="∥",EG="∥",AG="⫳",LG="⫽",MG="∂",$G="∂",NG="П",OG="п",PG="%",RG=".",zG="‰",IG="⊥",DG="‱",FG="𝔓",HG="𝔭",BG="Φ",WG="φ",qG="ϕ",jG="ℳ",UG="☎",VG="Π",GG="π",KG="⋔",XG="ϖ",YG="ℏ",ZG="ℎ",JG="ℏ",QG="⨣",e7="⊞",t7="⨢",n7="+",r7="∔",i7="⨥",o7="⩲",s7="±",l7="±",a7="⨦",c7="⨧",u7="±",f7="ℌ",d7="⨕",h7="𝕡",p7="ℙ",g7="£",v7="⪷",m7="⪻",y7="≺",b7="≼",w7="⪷",x7="≺",_7="≼",S7="≺",k7="⪯",T7="≼",C7="≾",E7="⪯",A7="⪹",L7="⪵",M7="⋨",$7="⪯",N7="⪳",O7="≾",P7="′",R7="″",z7="ℙ",I7="⪹",D7="⪵",F7="⋨",H7="∏",B7="∏",W7="⌮",q7="⌒",j7="⌓",U7="∝",V7="∝",G7="∷",K7="∝",X7="≾",Y7="⊰",Z7="𝒫",J7="𝓅",Q7="Ψ",eK="ψ",tK=" ",nK="𝔔",rK="𝔮",iK="⨌",oK="𝕢",sK="ℚ",lK="⁗",aK="𝒬",cK="𝓆",uK="ℍ",fK="⨖",dK="?",hK="≟",pK='"',gK='"',vK="⇛",mK="∽̱",yK="Ŕ",bK="ŕ",wK="√",xK="⦳",_K="⟩",SK="⟫",kK="⦒",TK="⦥",CK="⟩",EK="»",AK="⥵",LK="⇥",MK="⤠",$K="⤳",NK="→",OK="↠",PK="⇒",RK="⤞",zK="↪",IK="↬",DK="⥅",FK="⥴",HK="⤖",BK="↣",WK="↝",qK="⤚",jK="⤜",UK="∶",VK="ℚ",GK="⤍",KK="⤏",XK="⤐",YK="❳",ZK="}",JK="]",QK="⦌",eX="⦎",tX="⦐",nX="Ř",rX="ř",iX="Ŗ",oX="ŗ",sX="⌉",lX="}",aX="Р",cX="р",uX="⤷",fX="⥩",dX="”",hX="”",pX="↳",gX="ℜ",vX="ℛ",mX="ℜ",yX="ℝ",bX="ℜ",wX="▭",xX="®",_X="®",SX="∋",kX="⇋",TX="⥯",CX="⥽",EX="⌋",AX="𝔯",LX="ℜ",MX="⥤",$X="⇁",NX="⇀",OX="⥬",PX="Ρ",RX="ρ",zX="ϱ",IX="⟩",DX="⇥",FX="→",HX="→",BX="⇒",WX="⇄",qX="↣",jX="⌉",UX="⟧",VX="⥝",GX="⥕",KX="⇂",XX="⌋",YX="⇁",ZX="⇀",JX="⇄",QX="⇌",eY="⇉",tY="↝",nY="↦",rY="⊢",iY="⥛",oY="⋌",sY="⧐",lY="⊳",aY="⊵",cY="⥏",uY="⥜",fY="⥔",dY="↾",hY="⥓",pY="⇀",gY="˚",vY="≓",mY="⇄",yY="⇌",bY="‏",wY="⎱",xY="⎱",_Y="⫮",SY="⟭",kY="⇾",TY="⟧",CY="⦆",EY="𝕣",AY="ℝ",LY="⨮",MY="⨵",$Y="⥰",NY=")",OY="⦔",PY="⨒",RY="⇉",zY="⇛",IY="›",DY="𝓇",FY="ℛ",HY="↱",BY="↱",WY="]",qY="’",jY="’",UY="⋌",VY="⋊",GY="▹",KY="⊵",XY="▸",YY="⧎",ZY="⧴",JY="⥨",QY="℞",eZ="Ś",tZ="ś",nZ="‚",rZ="⪸",iZ="Š",oZ="š",sZ="⪼",lZ="≻",aZ="≽",cZ="⪰",uZ="⪴",fZ="Ş",dZ="ş",hZ="Ŝ",pZ="ŝ",gZ="⪺",vZ="⪶",mZ="⋩",yZ="⨓",bZ="≿",wZ="С",xZ="с",_Z="⊡",SZ="⋅",kZ="⩦",TZ="⤥",CZ="↘",EZ="⇘",AZ="↘",LZ="§",MZ=";",$Z="⤩",NZ="∖",OZ="∖",PZ="✶",RZ="𝔖",zZ="𝔰",IZ="⌢",DZ="♯",FZ="Щ",HZ="щ",BZ="Ш",WZ="ш",qZ="↓",jZ="←",UZ="∣",VZ="∥",GZ="→",KZ="↑",XZ="­",YZ="Σ",ZZ="σ",JZ="ς",QZ="ς",eJ="∼",tJ="⩪",nJ="≃",rJ="≃",iJ="⪞",oJ="⪠",sJ="⪝",lJ="⪟",aJ="≆",cJ="⨤",uJ="⥲",fJ="←",dJ="∘",hJ="∖",pJ="⨳",gJ="⧤",vJ="∣",mJ="⌣",yJ="⪪",bJ="⪬",wJ="⪬︀",xJ="Ь",_J="ь",SJ="⌿",kJ="⧄",TJ="/",CJ="𝕊",EJ="𝕤",AJ="♠",LJ="♠",MJ="∥",$J="⊓",NJ="⊓︀",OJ="⊔",PJ="⊔︀",RJ="√",zJ="⊏",IJ="⊑",DJ="⊏",FJ="⊑",HJ="⊐",BJ="⊒",WJ="⊐",qJ="⊒",jJ="□",UJ="□",VJ="⊓",GJ="⊏",KJ="⊑",XJ="⊐",YJ="⊒",ZJ="⊔",JJ="▪",QJ="□",eQ="▪",tQ="→",nQ="𝒮",rQ="𝓈",iQ="∖",oQ="⌣",sQ="⋆",lQ="⋆",aQ="☆",cQ="★",uQ="ϵ",fQ="ϕ",dQ="¯",hQ="⊂",pQ="⋐",gQ="⪽",vQ="⫅",mQ="⊆",yQ="⫃",bQ="⫁",wQ="⫋",xQ="⊊",_Q="⪿",SQ="⥹",kQ="⊂",TQ="⋐",CQ="⊆",EQ="⫅",AQ="⊆",LQ="⊊",MQ="⫋",$Q="⫇",NQ="⫕",OQ="⫓",PQ="⪸",RQ="≻",zQ="≽",IQ="≻",DQ="⪰",FQ="≽",HQ="≿",BQ="⪰",WQ="⪺",qQ="⪶",jQ="⋩",UQ="≿",VQ="∋",GQ="∑",KQ="∑",XQ="♪",YQ="¹",ZQ="²",JQ="³",QQ="⊃",eee="⋑",tee="⪾",nee="⫘",ree="⫆",iee="⊇",oee="⫄",see="⊃",lee="⊇",aee="⟉",cee="⫗",uee="⥻",fee="⫂",dee="⫌",hee="⊋",pee="⫀",gee="⊃",vee="⋑",mee="⊇",yee="⫆",bee="⊋",wee="⫌",xee="⫈",_ee="⫔",See="⫖",kee="⤦",Tee="↙",Cee="⇙",Eee="↙",Aee="⤪",Lee="ß",Mee=" ",$ee="⌖",Nee="Τ",Oee="τ",Pee="⎴",Ree="Ť",zee="ť",Iee="Ţ",Dee="ţ",Fee="Т",Hee="т",Bee="⃛",Wee="⌕",qee="𝔗",jee="𝔱",Uee="∴",Vee="∴",Gee="∴",Kee="Θ",Xee="θ",Yee="ϑ",Zee="ϑ",Jee="≈",Qee="∼",ete="  ",tte=" ",nte=" ",rte="≈",ite="∼",ote="Þ",ste="þ",lte="˜",ate="∼",cte="≃",ute="≅",fte="≈",dte="⨱",hte="⊠",pte="×",gte="⨰",vte="∭",mte="⤨",yte="⌶",bte="⫱",wte="⊤",xte="𝕋",_te="𝕥",Ste="⫚",kte="⤩",Tte="‴",Cte="™",Ete="™",Ate="▵",Lte="▿",Mte="◃",$te="⊴",Nte="≜",Ote="▹",Pte="⊵",Rte="◬",zte="≜",Ite="⨺",Dte="⃛",Fte="⨹",Hte="⧍",Bte="⨻",Wte="⏢",qte="𝒯",jte="𝓉",Ute="Ц",Vte="ц",Gte="Ћ",Kte="ћ",Xte="Ŧ",Yte="ŧ",Zte="≬",Jte="↞",Qte="↠",ene="Ú",tne="ú",nne="↑",rne="↟",ine="⇑",one="⥉",sne="Ў",lne="ў",ane="Ŭ",cne="ŭ",une="Û",fne="û",dne="У",hne="у",pne="⇅",gne="Ű",vne="ű",mne="⥮",yne="⥾",bne="𝔘",wne="𝔲",xne="Ù",_ne="ù",Sne="⥣",kne="↿",Tne="↾",Cne="▀",Ene="⌜",Ane="⌜",Lne="⌏",Mne="◸",$ne="Ū",Nne="ū",One="¨",Pne="_",Rne="⏟",zne="⎵",Ine="⏝",Dne="⋃",Fne="⊎",Hne="Ų",Bne="ų",Wne="𝕌",qne="𝕦",jne="⤒",Une="↑",Vne="↑",Gne="⇑",Kne="⇅",Xne="↕",Yne="↕",Zne="⇕",Jne="⥮",Qne="↿",ere="↾",tre="⊎",nre="↖",rre="↗",ire="υ",ore="ϒ",sre="ϒ",lre="Υ",are="υ",cre="↥",ure="⊥",fre="⇈",dre="⌝",hre="⌝",pre="⌎",gre="Ů",vre="ů",mre="◹",yre="𝒰",bre="𝓊",wre="⋰",xre="Ũ",_re="ũ",Sre="▵",kre="▴",Tre="⇈",Cre="Ü",Ere="ü",Are="⦧",Lre="⦜",Mre="ϵ",$re="ϰ",Nre="∅",Ore="ϕ",Pre="ϖ",Rre="∝",zre="↕",Ire="⇕",Dre="ϱ",Fre="ς",Hre="⊊︀",Bre="⫋︀",Wre="⊋︀",qre="⫌︀",jre="ϑ",Ure="⊲",Vre="⊳",Gre="⫨",Kre="⫫",Xre="⫩",Yre="В",Zre="в",Jre="⊢",Qre="⊨",eie="⊩",tie="⊫",nie="⫦",rie="⊻",iie="∨",oie="⋁",sie="≚",lie="⋮",aie="|",cie="‖",uie="|",fie="‖",die="∣",hie="|",pie="❘",gie="≀",vie=" ",mie="𝔙",yie="𝔳",bie="⊲",wie="⊂⃒",xie="⊃⃒",_ie="𝕍",Sie="𝕧",kie="∝",Tie="⊳",Cie="𝒱",Eie="𝓋",Aie="⫋︀",Lie="⊊︀",Mie="⫌︀",$ie="⊋︀",Nie="⊪",Oie="⦚",Pie="Ŵ",Rie="ŵ",zie="⩟",Iie="∧",Die="⋀",Fie="≙",Hie="℘",Bie="𝔚",Wie="𝔴",qie="𝕎",jie="𝕨",Uie="℘",Vie="≀",Gie="≀",Kie="𝒲",Xie="𝓌",Yie="⋂",Zie="◯",Jie="⋃",Qie="▽",eoe="𝔛",toe="𝔵",noe="⟷",roe="⟺",ioe="Ξ",ooe="ξ",soe="⟵",loe="⟸",aoe="⟼",coe="⋻",uoe="⨀",foe="𝕏",doe="𝕩",hoe="⨁",poe="⨂",goe="⟶",voe="⟹",moe="𝒳",yoe="𝓍",boe="⨆",woe="⨄",xoe="△",_oe="⋁",Soe="⋀",koe="Ý",Toe="ý",Coe="Я",Eoe="я",Aoe="Ŷ",Loe="ŷ",Moe="Ы",$oe="ы",Noe="¥",Ooe="𝔜",Poe="𝔶",Roe="Ї",zoe="ї",Ioe="𝕐",Doe="𝕪",Foe="𝒴",Hoe="𝓎",Boe="Ю",Woe="ю",qoe="ÿ",joe="Ÿ",Uoe="Ź",Voe="ź",Goe="Ž",Koe="ž",Xoe="З",Yoe="з",Zoe="Ż",Joe="ż",Qoe="ℨ",ese="​",tse="Ζ",nse="ζ",rse="𝔷",ise="ℨ",ose="Ж",sse="ж",lse="⇝",ase="𝕫",cse="ℤ",use="𝒵",fse="𝓏",dse="‍",hse="‌",Nw={Aacute:ZA,aacute:JA,Abreve:QA,abreve:eL,ac:tL,acd:nL,acE:rL,Acirc:iL,acirc:oL,acute:sL,Acy:lL,acy:aL,AElig:cL,aelig:uL,af:fL,Afr:dL,afr:hL,Agrave:pL,agrave:gL,alefsym:vL,aleph:mL,Alpha:yL,alpha:bL,Amacr:wL,amacr:xL,amalg:_L,amp:SL,AMP:kL,andand:TL,And:CL,and:EL,andd:AL,andslope:LL,andv:ML,ang:$L,ange:NL,angle:OL,angmsdaa:PL,angmsdab:RL,angmsdac:zL,angmsdad:IL,angmsdae:DL,angmsdaf:FL,angmsdag:HL,angmsdah:BL,angmsd:WL,angrt:qL,angrtvb:jL,angrtvbd:UL,angsph:VL,angst:GL,angzarr:KL,Aogon:XL,aogon:YL,Aopf:ZL,aopf:JL,apacir:QL,ap:eM,apE:tM,ape:nM,apid:rM,apos:iM,ApplyFunction:oM,approx:sM,approxeq:lM,Aring:aM,aring:cM,Ascr:uM,ascr:fM,Assign:dM,ast:hM,asymp:pM,asympeq:gM,Atilde:vM,atilde:mM,Auml:yM,auml:bM,awconint:wM,awint:xM,backcong:_M,backepsilon:SM,backprime:kM,backsim:TM,backsimeq:CM,Backslash:EM,Barv:AM,barvee:LM,barwed:MM,Barwed:$M,barwedge:NM,bbrk:OM,bbrktbrk:PM,bcong:RM,Bcy:zM,bcy:IM,bdquo:DM,becaus:FM,because:HM,Because:BM,bemptyv:WM,bepsi:qM,bernou:jM,Bernoullis:UM,Beta:VM,beta:GM,beth:KM,between:XM,Bfr:YM,bfr:ZM,bigcap:JM,bigcirc:QM,bigcup:e$,bigodot:t$,bigoplus:n$,bigotimes:r$,bigsqcup:i$,bigstar:o$,bigtriangledown:s$,bigtriangleup:l$,biguplus:a$,bigvee:c$,bigwedge:u$,bkarow:f$,blacklozenge:d$,blacksquare:h$,blacktriangle:p$,blacktriangledown:g$,blacktriangleleft:v$,blacktriangleright:m$,blank:y$,blk12:b$,blk14:w$,blk34:x$,block:_$,bne:S$,bnequiv:k$,bNot:T$,bnot:C$,Bopf:E$,bopf:A$,bot:L$,bottom:M$,bowtie:$$,boxbox:N$,boxdl:O$,boxdL:P$,boxDl:R$,boxDL:z$,boxdr:I$,boxdR:D$,boxDr:F$,boxDR:H$,boxh:B$,boxH:W$,boxhd:q$,boxHd:j$,boxhD:U$,boxHD:V$,boxhu:G$,boxHu:K$,boxhU:X$,boxHU:Y$,boxminus:Z$,boxplus:J$,boxtimes:Q$,boxul:eN,boxuL:tN,boxUl:nN,boxUL:rN,boxur:iN,boxuR:oN,boxUr:sN,boxUR:lN,boxv:aN,boxV:cN,boxvh:uN,boxvH:fN,boxVh:dN,boxVH:hN,boxvl:pN,boxvL:gN,boxVl:vN,boxVL:mN,boxvr:yN,boxvR:bN,boxVr:wN,boxVR:xN,bprime:_N,breve:SN,Breve:kN,brvbar:TN,bscr:CN,Bscr:EN,bsemi:AN,bsim:LN,bsime:MN,bsolb:$N,bsol:NN,bsolhsub:ON,bull:PN,bullet:RN,bump:zN,bumpE:IN,bumpe:DN,Bumpeq:FN,bumpeq:HN,Cacute:BN,cacute:WN,capand:qN,capbrcup:jN,capcap:UN,cap:VN,Cap:GN,capcup:KN,capdot:XN,CapitalDifferentialD:YN,caps:ZN,caret:JN,caron:QN,Cayleys:e2,ccaps:t2,Ccaron:n2,ccaron:r2,Ccedil:i2,ccedil:o2,Ccirc:s2,ccirc:l2,Cconint:a2,ccups:c2,ccupssm:u2,Cdot:f2,cdot:d2,cedil:h2,Cedilla:p2,cemptyv:g2,cent:v2,centerdot:m2,CenterDot:y2,cfr:b2,Cfr:w2,CHcy:x2,chcy:_2,check:S2,checkmark:k2,Chi:T2,chi:C2,circ:E2,circeq:A2,circlearrowleft:L2,circlearrowright:M2,circledast:$2,circledcirc:N2,circleddash:O2,CircleDot:P2,circledR:R2,circledS:z2,CircleMinus:I2,CirclePlus:D2,CircleTimes:F2,cir:H2,cirE:B2,cire:W2,cirfnint:q2,cirmid:j2,cirscir:U2,ClockwiseContourIntegral:V2,CloseCurlyDoubleQuote:G2,CloseCurlyQuote:K2,clubs:X2,clubsuit:Y2,colon:Z2,Colon:J2,Colone:Q2,colone:eO,coloneq:tO,comma:nO,commat:rO,comp:iO,compfn:oO,complement:sO,complexes:lO,cong:aO,congdot:cO,Congruent:uO,conint:fO,Conint:dO,ContourIntegral:hO,copf:pO,Copf:gO,coprod:vO,Coproduct:mO,copy:yO,COPY:bO,copysr:wO,CounterClockwiseContourIntegral:xO,crarr:_O,cross:SO,Cross:kO,Cscr:TO,cscr:CO,csub:EO,csube:AO,csup:LO,csupe:MO,ctdot:$O,cudarrl:NO,cudarrr:OO,cuepr:PO,cuesc:RO,cularr:zO,cularrp:IO,cupbrcap:DO,cupcap:FO,CupCap:HO,cup:BO,Cup:WO,cupcup:qO,cupdot:jO,cupor:UO,cups:VO,curarr:GO,curarrm:KO,curlyeqprec:XO,curlyeqsucc:YO,curlyvee:ZO,curlywedge:JO,curren:QO,curvearrowleft:eP,curvearrowright:tP,cuvee:nP,cuwed:rP,cwconint:iP,cwint:oP,cylcty:sP,dagger:lP,Dagger:aP,daleth:cP,darr:uP,Darr:fP,dArr:dP,dash:hP,Dashv:pP,dashv:gP,dbkarow:vP,dblac:mP,Dcaron:yP,dcaron:bP,Dcy:wP,dcy:xP,ddagger:_P,ddarr:SP,DD:kP,dd:TP,DDotrahd:CP,ddotseq:EP,deg:AP,Del:LP,Delta:MP,delta:$P,demptyv:NP,dfisht:OP,Dfr:PP,dfr:RP,dHar:zP,dharl:IP,dharr:DP,DiacriticalAcute:FP,DiacriticalDot:HP,DiacriticalDoubleAcute:BP,DiacriticalGrave:WP,DiacriticalTilde:qP,diam:jP,diamond:UP,Diamond:VP,diamondsuit:GP,diams:KP,die:XP,DifferentialD:YP,digamma:ZP,disin:JP,div:QP,divide:eR,divideontimes:tR,divonx:nR,DJcy:rR,djcy:iR,dlcorn:oR,dlcrop:sR,dollar:lR,Dopf:aR,dopf:cR,Dot:uR,dot:fR,DotDot:dR,doteq:hR,doteqdot:pR,DotEqual:gR,dotminus:vR,dotplus:mR,dotsquare:yR,doublebarwedge:bR,DoubleContourIntegral:wR,DoubleDot:xR,DoubleDownArrow:_R,DoubleLeftArrow:SR,DoubleLeftRightArrow:kR,DoubleLeftTee:TR,DoubleLongLeftArrow:CR,DoubleLongLeftRightArrow:ER,DoubleLongRightArrow:AR,DoubleRightArrow:LR,DoubleRightTee:MR,DoubleUpArrow:$R,DoubleUpDownArrow:NR,DoubleVerticalBar:OR,DownArrowBar:PR,downarrow:RR,DownArrow:zR,Downarrow:IR,DownArrowUpArrow:DR,DownBreve:FR,downdownarrows:HR,downharpoonleft:BR,downharpoonright:WR,DownLeftRightVector:qR,DownLeftTeeVector:jR,DownLeftVectorBar:UR,DownLeftVector:VR,DownRightTeeVector:GR,DownRightVectorBar:KR,DownRightVector:XR,DownTeeArrow:YR,DownTee:ZR,drbkarow:JR,drcorn:QR,drcrop:ez,Dscr:tz,dscr:nz,DScy:rz,dscy:iz,dsol:oz,Dstrok:sz,dstrok:lz,dtdot:az,dtri:cz,dtrif:uz,duarr:fz,duhar:dz,dwangle:hz,DZcy:pz,dzcy:gz,dzigrarr:vz,Eacute:mz,eacute:yz,easter:bz,Ecaron:wz,ecaron:xz,Ecirc:_z,ecirc:Sz,ecir:kz,ecolon:Tz,Ecy:Cz,ecy:Ez,eDDot:Az,Edot:Lz,edot:Mz,eDot:$z,ee:Nz,efDot:Oz,Efr:Pz,efr:Rz,eg:zz,Egrave:Iz,egrave:Dz,egs:Fz,egsdot:Hz,el:Bz,Element:Wz,elinters:qz,ell:jz,els:Uz,elsdot:Vz,Emacr:Gz,emacr:Kz,empty:Xz,emptyset:Yz,EmptySmallSquare:Zz,emptyv:Jz,EmptyVerySmallSquare:Qz,emsp13:eI,emsp14:tI,emsp:nI,ENG:rI,eng:iI,ensp:oI,Eogon:sI,eogon:lI,Eopf:aI,eopf:cI,epar:uI,eparsl:fI,eplus:dI,epsi:hI,Epsilon:pI,epsilon:gI,epsiv:vI,eqcirc:mI,eqcolon:yI,eqsim:bI,eqslantgtr:wI,eqslantless:xI,Equal:_I,equals:SI,EqualTilde:kI,equest:TI,Equilibrium:CI,equiv:EI,equivDD:AI,eqvparsl:LI,erarr:MI,erDot:$I,escr:NI,Escr:OI,esdot:PI,Esim:RI,esim:zI,Eta:II,eta:DI,ETH:FI,eth:HI,Euml:BI,euml:WI,euro:qI,excl:jI,exist:UI,Exists:VI,expectation:GI,exponentiale:KI,ExponentialE:XI,fallingdotseq:YI,Fcy:ZI,fcy:JI,female:QI,ffilig:eD,fflig:tD,ffllig:nD,Ffr:rD,ffr:iD,filig:oD,FilledSmallSquare:sD,FilledVerySmallSquare:lD,fjlig:aD,flat:cD,fllig:uD,fltns:fD,fnof:dD,Fopf:hD,fopf:pD,forall:gD,ForAll:vD,fork:mD,forkv:yD,Fouriertrf:bD,fpartint:wD,frac12:xD,frac13:_D,frac14:SD,frac15:kD,frac16:TD,frac18:CD,frac23:ED,frac25:AD,frac34:LD,frac35:MD,frac38:$D,frac45:ND,frac56:OD,frac58:PD,frac78:RD,frasl:zD,frown:ID,fscr:DD,Fscr:FD,gacute:HD,Gamma:BD,gamma:WD,Gammad:qD,gammad:jD,gap:UD,Gbreve:VD,gbreve:GD,Gcedil:KD,Gcirc:XD,gcirc:YD,Gcy:ZD,gcy:JD,Gdot:QD,gdot:eF,ge:tF,gE:nF,gEl:rF,gel:iF,geq:oF,geqq:sF,geqslant:lF,gescc:aF,ges:cF,gesdot:uF,gesdoto:fF,gesdotol:dF,gesl:hF,gesles:pF,Gfr:gF,gfr:vF,gg:mF,Gg:yF,ggg:bF,gimel:wF,GJcy:xF,gjcy:_F,gla:SF,gl:kF,glE:TF,glj:CF,gnap:EF,gnapprox:AF,gne:LF,gnE:MF,gneq:$F,gneqq:NF,gnsim:OF,Gopf:PF,gopf:RF,grave:zF,GreaterEqual:IF,GreaterEqualLess:DF,GreaterFullEqual:FF,GreaterGreater:HF,GreaterLess:BF,GreaterSlantEqual:WF,GreaterTilde:qF,Gscr:jF,gscr:UF,gsim:VF,gsime:GF,gsiml:KF,gtcc:XF,gtcir:YF,gt:ZF,GT:JF,Gt:QF,gtdot:eH,gtlPar:tH,gtquest:nH,gtrapprox:rH,gtrarr:iH,gtrdot:oH,gtreqless:sH,gtreqqless:lH,gtrless:aH,gtrsim:cH,gvertneqq:uH,gvnE:fH,Hacek:dH,hairsp:hH,half:pH,hamilt:gH,HARDcy:vH,hardcy:mH,harrcir:yH,harr:bH,hArr:wH,harrw:xH,Hat:_H,hbar:SH,Hcirc:kH,hcirc:TH,hearts:CH,heartsuit:EH,hellip:AH,hercon:LH,hfr:MH,Hfr:$H,HilbertSpace:NH,hksearow:OH,hkswarow:PH,hoarr:RH,homtht:zH,hookleftarrow:IH,hookrightarrow:DH,hopf:FH,Hopf:HH,horbar:BH,HorizontalLine:WH,hscr:qH,Hscr:jH,hslash:UH,Hstrok:VH,hstrok:GH,HumpDownHump:KH,HumpEqual:XH,hybull:YH,hyphen:ZH,Iacute:JH,iacute:QH,ic:e3,Icirc:t3,icirc:n3,Icy:r3,icy:i3,Idot:o3,IEcy:s3,iecy:l3,iexcl:a3,iff:c3,ifr:u3,Ifr:f3,Igrave:d3,igrave:h3,ii:p3,iiiint:g3,iiint:v3,iinfin:m3,iiota:y3,IJlig:b3,ijlig:w3,Imacr:x3,imacr:_3,image:S3,ImaginaryI:k3,imagline:T3,imagpart:C3,imath:E3,Im:A3,imof:L3,imped:M3,Implies:$3,incare:N3,in:"∈",infin:O3,infintie:P3,inodot:R3,intcal:z3,int:I3,Int:D3,integers:F3,Integral:H3,intercal:B3,Intersection:W3,intlarhk:q3,intprod:j3,InvisibleComma:U3,InvisibleTimes:V3,IOcy:G3,iocy:K3,Iogon:X3,iogon:Y3,Iopf:Z3,iopf:J3,Iota:Q3,iota:eB,iprod:tB,iquest:nB,iscr:rB,Iscr:iB,isin:oB,isindot:sB,isinE:lB,isins:aB,isinsv:cB,isinv:uB,it:fB,Itilde:dB,itilde:hB,Iukcy:pB,iukcy:gB,Iuml:vB,iuml:mB,Jcirc:yB,jcirc:bB,Jcy:wB,jcy:xB,Jfr:_B,jfr:SB,jmath:kB,Jopf:TB,jopf:CB,Jscr:EB,jscr:AB,Jsercy:LB,jsercy:MB,Jukcy:$B,jukcy:NB,Kappa:OB,kappa:PB,kappav:RB,Kcedil:zB,kcedil:IB,Kcy:DB,kcy:FB,Kfr:HB,kfr:BB,kgreen:WB,KHcy:qB,khcy:jB,KJcy:UB,kjcy:VB,Kopf:GB,kopf:KB,Kscr:XB,kscr:YB,lAarr:ZB,Lacute:JB,lacute:QB,laemptyv:e5,lagran:t5,Lambda:n5,lambda:r5,lang:i5,Lang:o5,langd:s5,langle:l5,lap:a5,Laplacetrf:c5,laquo:u5,larrb:f5,larrbfs:d5,larr:h5,Larr:p5,lArr:g5,larrfs:v5,larrhk:m5,larrlp:y5,larrpl:b5,larrsim:w5,larrtl:x5,latail:_5,lAtail:S5,lat:k5,late:T5,lates:C5,lbarr:E5,lBarr:A5,lbbrk:L5,lbrace:M5,lbrack:$5,lbrke:N5,lbrksld:O5,lbrkslu:P5,Lcaron:R5,lcaron:z5,Lcedil:I5,lcedil:D5,lceil:F5,lcub:H5,Lcy:B5,lcy:W5,ldca:q5,ldquo:j5,ldquor:U5,ldrdhar:V5,ldrushar:G5,ldsh:K5,le:X5,lE:Y5,LeftAngleBracket:Z5,LeftArrowBar:J5,leftarrow:Q5,LeftArrow:e8,Leftarrow:t8,LeftArrowRightArrow:n8,leftarrowtail:r8,LeftCeiling:i8,LeftDoubleBracket:o8,LeftDownTeeVector:s8,LeftDownVectorBar:l8,LeftDownVector:a8,LeftFloor:c8,leftharpoondown:u8,leftharpoonup:f8,leftleftarrows:d8,leftrightarrow:h8,LeftRightArrow:p8,Leftrightarrow:g8,leftrightarrows:v8,leftrightharpoons:m8,leftrightsquigarrow:y8,LeftRightVector:b8,LeftTeeArrow:w8,LeftTee:x8,LeftTeeVector:_8,leftthreetimes:S8,LeftTriangleBar:k8,LeftTriangle:T8,LeftTriangleEqual:C8,LeftUpDownVector:E8,LeftUpTeeVector:A8,LeftUpVectorBar:L8,LeftUpVector:M8,LeftVectorBar:$8,LeftVector:N8,lEg:O8,leg:P8,leq:R8,leqq:z8,leqslant:I8,lescc:D8,les:F8,lesdot:H8,lesdoto:B8,lesdotor:W8,lesg:q8,lesges:j8,lessapprox:U8,lessdot:V8,lesseqgtr:G8,lesseqqgtr:K8,LessEqualGreater:X8,LessFullEqual:Y8,LessGreater:Z8,lessgtr:J8,LessLess:Q8,lesssim:e4,LessSlantEqual:t4,LessTilde:n4,lfisht:r4,lfloor:i4,Lfr:o4,lfr:s4,lg:l4,lgE:a4,lHar:c4,lhard:u4,lharu:f4,lharul:d4,lhblk:h4,LJcy:p4,ljcy:g4,llarr:v4,ll:m4,Ll:y4,llcorner:b4,Lleftarrow:w4,llhard:x4,lltri:_4,Lmidot:S4,lmidot:k4,lmoustache:T4,lmoust:C4,lnap:E4,lnapprox:A4,lne:L4,lnE:M4,lneq:$4,lneqq:N4,lnsim:O4,loang:P4,loarr:R4,lobrk:z4,longleftarrow:I4,LongLeftArrow:D4,Longleftarrow:F4,longleftrightarrow:H4,LongLeftRightArrow:B4,Longleftrightarrow:W4,longmapsto:q4,longrightarrow:j4,LongRightArrow:U4,Longrightarrow:V4,looparrowleft:G4,looparrowright:K4,lopar:X4,Lopf:Y4,lopf:Z4,loplus:J4,lotimes:Q4,lowast:eW,lowbar:tW,LowerLeftArrow:nW,LowerRightArrow:rW,loz:iW,lozenge:oW,lozf:sW,lpar:lW,lparlt:aW,lrarr:cW,lrcorner:uW,lrhar:fW,lrhard:dW,lrm:hW,lrtri:pW,lsaquo:gW,lscr:vW,Lscr:mW,lsh:yW,Lsh:bW,lsim:wW,lsime:xW,lsimg:_W,lsqb:SW,lsquo:kW,lsquor:TW,Lstrok:CW,lstrok:EW,ltcc:AW,ltcir:LW,lt:MW,LT:$W,Lt:NW,ltdot:OW,lthree:PW,ltimes:RW,ltlarr:zW,ltquest:IW,ltri:DW,ltrie:FW,ltrif:HW,ltrPar:BW,lurdshar:WW,luruhar:qW,lvertneqq:jW,lvnE:UW,macr:VW,male:GW,malt:KW,maltese:XW,Map:"⤅",map:YW,mapsto:ZW,mapstodown:JW,mapstoleft:QW,mapstoup:eq,marker:tq,mcomma:nq,Mcy:rq,mcy:iq,mdash:oq,mDDot:sq,measuredangle:lq,MediumSpace:aq,Mellintrf:cq,Mfr:uq,mfr:fq,mho:dq,micro:hq,midast:pq,midcir:gq,mid:vq,middot:mq,minusb:yq,minus:bq,minusd:wq,minusdu:xq,MinusPlus:_q,mlcp:Sq,mldr:kq,mnplus:Tq,models:Cq,Mopf:Eq,mopf:Aq,mp:Lq,mscr:Mq,Mscr:$q,mstpos:Nq,Mu:Oq,mu:Pq,multimap:Rq,mumap:zq,nabla:Iq,Nacute:Dq,nacute:Fq,nang:Hq,nap:Bq,napE:Wq,napid:qq,napos:jq,napprox:Uq,natural:Vq,naturals:Gq,natur:Kq,nbsp:Xq,nbump:Yq,nbumpe:Zq,ncap:Jq,Ncaron:Qq,ncaron:ej,Ncedil:tj,ncedil:nj,ncong:rj,ncongdot:ij,ncup:oj,Ncy:sj,ncy:lj,ndash:aj,nearhk:cj,nearr:uj,neArr:fj,nearrow:dj,ne:hj,nedot:pj,NegativeMediumSpace:gj,NegativeThickSpace:vj,NegativeThinSpace:mj,NegativeVeryThinSpace:yj,nequiv:bj,nesear:wj,nesim:xj,NestedGreaterGreater:_j,NestedLessLess:Sj,NewLine:kj,nexist:Tj,nexists:Cj,Nfr:Ej,nfr:Aj,ngE:Lj,nge:Mj,ngeq:$j,ngeqq:Nj,ngeqslant:Oj,nges:Pj,nGg:Rj,ngsim:zj,nGt:Ij,ngt:Dj,ngtr:Fj,nGtv:Hj,nharr:Bj,nhArr:Wj,nhpar:qj,ni:jj,nis:Uj,nisd:Vj,niv:Gj,NJcy:Kj,njcy:Xj,nlarr:Yj,nlArr:Zj,nldr:Jj,nlE:Qj,nle:e6,nleftarrow:t6,nLeftarrow:n6,nleftrightarrow:r6,nLeftrightarrow:i6,nleq:o6,nleqq:s6,nleqslant:l6,nles:a6,nless:c6,nLl:u6,nlsim:f6,nLt:d6,nlt:h6,nltri:p6,nltrie:g6,nLtv:v6,nmid:m6,NoBreak:y6,NonBreakingSpace:b6,nopf:w6,Nopf:x6,Not:_6,not:S6,NotCongruent:k6,NotCupCap:T6,NotDoubleVerticalBar:C6,NotElement:E6,NotEqual:A6,NotEqualTilde:L6,NotExists:M6,NotGreater:$6,NotGreaterEqual:N6,NotGreaterFullEqual:O6,NotGreaterGreater:P6,NotGreaterLess:R6,NotGreaterSlantEqual:z6,NotGreaterTilde:I6,NotHumpDownHump:D6,NotHumpEqual:F6,notin:H6,notindot:B6,notinE:W6,notinva:q6,notinvb:j6,notinvc:U6,NotLeftTriangleBar:V6,NotLeftTriangle:G6,NotLeftTriangleEqual:K6,NotLess:X6,NotLessEqual:Y6,NotLessGreater:Z6,NotLessLess:J6,NotLessSlantEqual:Q6,NotLessTilde:eU,NotNestedGreaterGreater:tU,NotNestedLessLess:nU,notni:rU,notniva:iU,notnivb:oU,notnivc:sU,NotPrecedes:lU,NotPrecedesEqual:aU,NotPrecedesSlantEqual:cU,NotReverseElement:uU,NotRightTriangleBar:fU,NotRightTriangle:dU,NotRightTriangleEqual:hU,NotSquareSubset:pU,NotSquareSubsetEqual:gU,NotSquareSuperset:vU,NotSquareSupersetEqual:mU,NotSubset:yU,NotSubsetEqual:bU,NotSucceeds:wU,NotSucceedsEqual:xU,NotSucceedsSlantEqual:_U,NotSucceedsTilde:SU,NotSuperset:kU,NotSupersetEqual:TU,NotTilde:CU,NotTildeEqual:EU,NotTildeFullEqual:AU,NotTildeTilde:LU,NotVerticalBar:MU,nparallel:$U,npar:NU,nparsl:OU,npart:PU,npolint:RU,npr:zU,nprcue:IU,nprec:DU,npreceq:FU,npre:HU,nrarrc:BU,nrarr:WU,nrArr:qU,nrarrw:jU,nrightarrow:UU,nRightarrow:VU,nrtri:GU,nrtrie:KU,nsc:XU,nsccue:YU,nsce:ZU,Nscr:JU,nscr:QU,nshortmid:eV,nshortparallel:tV,nsim:nV,nsime:rV,nsimeq:iV,nsmid:oV,nspar:sV,nsqsube:lV,nsqsupe:aV,nsub:cV,nsubE:uV,nsube:fV,nsubset:dV,nsubseteq:hV,nsubseteqq:pV,nsucc:gV,nsucceq:vV,nsup:mV,nsupE:yV,nsupe:bV,nsupset:wV,nsupseteq:xV,nsupseteqq:_V,ntgl:SV,Ntilde:kV,ntilde:TV,ntlg:CV,ntriangleleft:EV,ntrianglelefteq:AV,ntriangleright:LV,ntrianglerighteq:MV,Nu:$V,nu:NV,num:OV,numero:PV,numsp:RV,nvap:zV,nvdash:IV,nvDash:DV,nVdash:FV,nVDash:HV,nvge:BV,nvgt:WV,nvHarr:qV,nvinfin:jV,nvlArr:UV,nvle:VV,nvlt:GV,nvltrie:KV,nvrArr:XV,nvrtrie:YV,nvsim:ZV,nwarhk:JV,nwarr:QV,nwArr:e9,nwarrow:t9,nwnear:n9,Oacute:r9,oacute:i9,oast:o9,Ocirc:s9,ocirc:l9,ocir:a9,Ocy:c9,ocy:u9,odash:f9,Odblac:d9,odblac:h9,odiv:p9,odot:g9,odsold:v9,OElig:m9,oelig:y9,ofcir:b9,Ofr:w9,ofr:x9,ogon:_9,Ograve:S9,ograve:k9,ogt:T9,ohbar:C9,ohm:E9,oint:A9,olarr:L9,olcir:M9,olcross:$9,oline:N9,olt:O9,Omacr:P9,omacr:R9,Omega:z9,omega:I9,Omicron:D9,omicron:F9,omid:H9,ominus:B9,Oopf:W9,oopf:q9,opar:j9,OpenCurlyDoubleQuote:U9,OpenCurlyQuote:V9,operp:G9,oplus:K9,orarr:X9,Or:Y9,or:Z9,ord:J9,order:Q9,orderof:eG,ordf:tG,ordm:nG,origof:rG,oror:iG,orslope:oG,orv:sG,oS:lG,Oscr:aG,oscr:cG,Oslash:uG,oslash:fG,osol:dG,Otilde:hG,otilde:pG,otimesas:gG,Otimes:vG,otimes:mG,Ouml:yG,ouml:bG,ovbar:wG,OverBar:xG,OverBrace:_G,OverBracket:SG,OverParenthesis:kG,para:TG,parallel:CG,par:EG,parsim:AG,parsl:LG,part:MG,PartialD:$G,Pcy:NG,pcy:OG,percnt:PG,period:RG,permil:zG,perp:IG,pertenk:DG,Pfr:FG,pfr:HG,Phi:BG,phi:WG,phiv:qG,phmmat:jG,phone:UG,Pi:VG,pi:GG,pitchfork:KG,piv:XG,planck:YG,planckh:ZG,plankv:JG,plusacir:QG,plusb:e7,pluscir:t7,plus:n7,plusdo:r7,plusdu:i7,pluse:o7,PlusMinus:s7,plusmn:l7,plussim:a7,plustwo:c7,pm:u7,Poincareplane:f7,pointint:d7,popf:h7,Popf:p7,pound:g7,prap:v7,Pr:m7,pr:y7,prcue:b7,precapprox:w7,prec:x7,preccurlyeq:_7,Precedes:S7,PrecedesEqual:k7,PrecedesSlantEqual:T7,PrecedesTilde:C7,preceq:E7,precnapprox:A7,precneqq:L7,precnsim:M7,pre:$7,prE:N7,precsim:O7,prime:P7,Prime:R7,primes:z7,prnap:I7,prnE:D7,prnsim:F7,prod:H7,Product:B7,profalar:W7,profline:q7,profsurf:j7,prop:U7,Proportional:V7,Proportion:G7,propto:K7,prsim:X7,prurel:Y7,Pscr:Z7,pscr:J7,Psi:Q7,psi:eK,puncsp:tK,Qfr:nK,qfr:rK,qint:iK,qopf:oK,Qopf:sK,qprime:lK,Qscr:aK,qscr:cK,quaternions:uK,quatint:fK,quest:dK,questeq:hK,quot:pK,QUOT:gK,rAarr:vK,race:mK,Racute:yK,racute:bK,radic:wK,raemptyv:xK,rang:_K,Rang:SK,rangd:kK,range:TK,rangle:CK,raquo:EK,rarrap:AK,rarrb:LK,rarrbfs:MK,rarrc:$K,rarr:NK,Rarr:OK,rArr:PK,rarrfs:RK,rarrhk:zK,rarrlp:IK,rarrpl:DK,rarrsim:FK,Rarrtl:HK,rarrtl:BK,rarrw:WK,ratail:qK,rAtail:jK,ratio:UK,rationals:VK,rbarr:GK,rBarr:KK,RBarr:XK,rbbrk:YK,rbrace:ZK,rbrack:JK,rbrke:QK,rbrksld:eX,rbrkslu:tX,Rcaron:nX,rcaron:rX,Rcedil:iX,rcedil:oX,rceil:sX,rcub:lX,Rcy:aX,rcy:cX,rdca:uX,rdldhar:fX,rdquo:dX,rdquor:hX,rdsh:pX,real:gX,realine:vX,realpart:mX,reals:yX,Re:bX,rect:wX,reg:xX,REG:_X,ReverseElement:SX,ReverseEquilibrium:kX,ReverseUpEquilibrium:TX,rfisht:CX,rfloor:EX,rfr:AX,Rfr:LX,rHar:MX,rhard:$X,rharu:NX,rharul:OX,Rho:PX,rho:RX,rhov:zX,RightAngleBracket:IX,RightArrowBar:DX,rightarrow:FX,RightArrow:HX,Rightarrow:BX,RightArrowLeftArrow:WX,rightarrowtail:qX,RightCeiling:jX,RightDoubleBracket:UX,RightDownTeeVector:VX,RightDownVectorBar:GX,RightDownVector:KX,RightFloor:XX,rightharpoondown:YX,rightharpoonup:ZX,rightleftarrows:JX,rightleftharpoons:QX,rightrightarrows:eY,rightsquigarrow:tY,RightTeeArrow:nY,RightTee:rY,RightTeeVector:iY,rightthreetimes:oY,RightTriangleBar:sY,RightTriangle:lY,RightTriangleEqual:aY,RightUpDownVector:cY,RightUpTeeVector:uY,RightUpVectorBar:fY,RightUpVector:dY,RightVectorBar:hY,RightVector:pY,ring:gY,risingdotseq:vY,rlarr:mY,rlhar:yY,rlm:bY,rmoustache:wY,rmoust:xY,rnmid:_Y,roang:SY,roarr:kY,robrk:TY,ropar:CY,ropf:EY,Ropf:AY,roplus:LY,rotimes:MY,RoundImplies:$Y,rpar:NY,rpargt:OY,rppolint:PY,rrarr:RY,Rrightarrow:zY,rsaquo:IY,rscr:DY,Rscr:FY,rsh:HY,Rsh:BY,rsqb:WY,rsquo:qY,rsquor:jY,rthree:UY,rtimes:VY,rtri:GY,rtrie:KY,rtrif:XY,rtriltri:YY,RuleDelayed:ZY,ruluhar:JY,rx:QY,Sacute:eZ,sacute:tZ,sbquo:nZ,scap:rZ,Scaron:iZ,scaron:oZ,Sc:sZ,sc:lZ,sccue:aZ,sce:cZ,scE:uZ,Scedil:fZ,scedil:dZ,Scirc:hZ,scirc:pZ,scnap:gZ,scnE:vZ,scnsim:mZ,scpolint:yZ,scsim:bZ,Scy:wZ,scy:xZ,sdotb:_Z,sdot:SZ,sdote:kZ,searhk:TZ,searr:CZ,seArr:EZ,searrow:AZ,sect:LZ,semi:MZ,seswar:$Z,setminus:NZ,setmn:OZ,sext:PZ,Sfr:RZ,sfr:zZ,sfrown:IZ,sharp:DZ,SHCHcy:FZ,shchcy:HZ,SHcy:BZ,shcy:WZ,ShortDownArrow:qZ,ShortLeftArrow:jZ,shortmid:UZ,shortparallel:VZ,ShortRightArrow:GZ,ShortUpArrow:KZ,shy:XZ,Sigma:YZ,sigma:ZZ,sigmaf:JZ,sigmav:QZ,sim:eJ,simdot:tJ,sime:nJ,simeq:rJ,simg:iJ,simgE:oJ,siml:sJ,simlE:lJ,simne:aJ,simplus:cJ,simrarr:uJ,slarr:fJ,SmallCircle:dJ,smallsetminus:hJ,smashp:pJ,smeparsl:gJ,smid:vJ,smile:mJ,smt:yJ,smte:bJ,smtes:wJ,SOFTcy:xJ,softcy:_J,solbar:SJ,solb:kJ,sol:TJ,Sopf:CJ,sopf:EJ,spades:AJ,spadesuit:LJ,spar:MJ,sqcap:$J,sqcaps:NJ,sqcup:OJ,sqcups:PJ,Sqrt:RJ,sqsub:zJ,sqsube:IJ,sqsubset:DJ,sqsubseteq:FJ,sqsup:HJ,sqsupe:BJ,sqsupset:WJ,sqsupseteq:qJ,square:jJ,Square:UJ,SquareIntersection:VJ,SquareSubset:GJ,SquareSubsetEqual:KJ,SquareSuperset:XJ,SquareSupersetEqual:YJ,SquareUnion:ZJ,squarf:JJ,squ:QJ,squf:eQ,srarr:tQ,Sscr:nQ,sscr:rQ,ssetmn:iQ,ssmile:oQ,sstarf:sQ,Star:lQ,star:aQ,starf:cQ,straightepsilon:uQ,straightphi:fQ,strns:dQ,sub:hQ,Sub:pQ,subdot:gQ,subE:vQ,sube:mQ,subedot:yQ,submult:bQ,subnE:wQ,subne:xQ,subplus:_Q,subrarr:SQ,subset:kQ,Subset:TQ,subseteq:CQ,subseteqq:EQ,SubsetEqual:AQ,subsetneq:LQ,subsetneqq:MQ,subsim:$Q,subsub:NQ,subsup:OQ,succapprox:PQ,succ:RQ,succcurlyeq:zQ,Succeeds:IQ,SucceedsEqual:DQ,SucceedsSlantEqual:FQ,SucceedsTilde:HQ,succeq:BQ,succnapprox:WQ,succneqq:qQ,succnsim:jQ,succsim:UQ,SuchThat:VQ,sum:GQ,Sum:KQ,sung:XQ,sup1:YQ,sup2:ZQ,sup3:JQ,sup:QQ,Sup:eee,supdot:tee,supdsub:nee,supE:ree,supe:iee,supedot:oee,Superset:see,SupersetEqual:lee,suphsol:aee,suphsub:cee,suplarr:uee,supmult:fee,supnE:dee,supne:hee,supplus:pee,supset:gee,Supset:vee,supseteq:mee,supseteqq:yee,supsetneq:bee,supsetneqq:wee,supsim:xee,supsub:_ee,supsup:See,swarhk:kee,swarr:Tee,swArr:Cee,swarrow:Eee,swnwar:Aee,szlig:Lee,Tab:Mee,target:$ee,Tau:Nee,tau:Oee,tbrk:Pee,Tcaron:Ree,tcaron:zee,Tcedil:Iee,tcedil:Dee,Tcy:Fee,tcy:Hee,tdot:Bee,telrec:Wee,Tfr:qee,tfr:jee,there4:Uee,therefore:Vee,Therefore:Gee,Theta:Kee,theta:Xee,thetasym:Yee,thetav:Zee,thickapprox:Jee,thicksim:Qee,ThickSpace:ete,ThinSpace:tte,thinsp:nte,thkap:rte,thksim:ite,THORN:ote,thorn:ste,tilde:lte,Tilde:ate,TildeEqual:cte,TildeFullEqual:ute,TildeTilde:fte,timesbar:dte,timesb:hte,times:pte,timesd:gte,tint:vte,toea:mte,topbot:yte,topcir:bte,top:wte,Topf:xte,topf:_te,topfork:Ste,tosa:kte,tprime:Tte,trade:Cte,TRADE:Ete,triangle:Ate,triangledown:Lte,triangleleft:Mte,trianglelefteq:$te,triangleq:Nte,triangleright:Ote,trianglerighteq:Pte,tridot:Rte,trie:zte,triminus:Ite,TripleDot:Dte,triplus:Fte,trisb:Hte,tritime:Bte,trpezium:Wte,Tscr:qte,tscr:jte,TScy:Ute,tscy:Vte,TSHcy:Gte,tshcy:Kte,Tstrok:Xte,tstrok:Yte,twixt:Zte,twoheadleftarrow:Jte,twoheadrightarrow:Qte,Uacute:ene,uacute:tne,uarr:nne,Uarr:rne,uArr:ine,Uarrocir:one,Ubrcy:sne,ubrcy:lne,Ubreve:ane,ubreve:cne,Ucirc:une,ucirc:fne,Ucy:dne,ucy:hne,udarr:pne,Udblac:gne,udblac:vne,udhar:mne,ufisht:yne,Ufr:bne,ufr:wne,Ugrave:xne,ugrave:_ne,uHar:Sne,uharl:kne,uharr:Tne,uhblk:Cne,ulcorn:Ene,ulcorner:Ane,ulcrop:Lne,ultri:Mne,Umacr:$ne,umacr:Nne,uml:One,UnderBar:Pne,UnderBrace:Rne,UnderBracket:zne,UnderParenthesis:Ine,Union:Dne,UnionPlus:Fne,Uogon:Hne,uogon:Bne,Uopf:Wne,uopf:qne,UpArrowBar:jne,uparrow:Une,UpArrow:Vne,Uparrow:Gne,UpArrowDownArrow:Kne,updownarrow:Xne,UpDownArrow:Yne,Updownarrow:Zne,UpEquilibrium:Jne,upharpoonleft:Qne,upharpoonright:ere,uplus:tre,UpperLeftArrow:nre,UpperRightArrow:rre,upsi:ire,Upsi:ore,upsih:sre,Upsilon:lre,upsilon:are,UpTeeArrow:cre,UpTee:ure,upuparrows:fre,urcorn:dre,urcorner:hre,urcrop:pre,Uring:gre,uring:vre,urtri:mre,Uscr:yre,uscr:bre,utdot:wre,Utilde:xre,utilde:_re,utri:Sre,utrif:kre,uuarr:Tre,Uuml:Cre,uuml:Ere,uwangle:Are,vangrt:Lre,varepsilon:Mre,varkappa:$re,varnothing:Nre,varphi:Ore,varpi:Pre,varpropto:Rre,varr:zre,vArr:Ire,varrho:Dre,varsigma:Fre,varsubsetneq:Hre,varsubsetneqq:Bre,varsupsetneq:Wre,varsupsetneqq:qre,vartheta:jre,vartriangleleft:Ure,vartriangleright:Vre,vBar:Gre,Vbar:Kre,vBarv:Xre,Vcy:Yre,vcy:Zre,vdash:Jre,vDash:Qre,Vdash:eie,VDash:tie,Vdashl:nie,veebar:rie,vee:iie,Vee:oie,veeeq:sie,vellip:lie,verbar:aie,Verbar:cie,vert:uie,Vert:fie,VerticalBar:die,VerticalLine:hie,VerticalSeparator:pie,VerticalTilde:gie,VeryThinSpace:vie,Vfr:mie,vfr:yie,vltri:bie,vnsub:wie,vnsup:xie,Vopf:_ie,vopf:Sie,vprop:kie,vrtri:Tie,Vscr:Cie,vscr:Eie,vsubnE:Aie,vsubne:Lie,vsupnE:Mie,vsupne:$ie,Vvdash:Nie,vzigzag:Oie,Wcirc:Pie,wcirc:Rie,wedbar:zie,wedge:Iie,Wedge:Die,wedgeq:Fie,weierp:Hie,Wfr:Bie,wfr:Wie,Wopf:qie,wopf:jie,wp:Uie,wr:Vie,wreath:Gie,Wscr:Kie,wscr:Xie,xcap:Yie,xcirc:Zie,xcup:Jie,xdtri:Qie,Xfr:eoe,xfr:toe,xharr:noe,xhArr:roe,Xi:ioe,xi:ooe,xlarr:soe,xlArr:loe,xmap:aoe,xnis:coe,xodot:uoe,Xopf:foe,xopf:doe,xoplus:hoe,xotime:poe,xrarr:goe,xrArr:voe,Xscr:moe,xscr:yoe,xsqcup:boe,xuplus:woe,xutri:xoe,xvee:_oe,xwedge:Soe,Yacute:koe,yacute:Toe,YAcy:Coe,yacy:Eoe,Ycirc:Aoe,ycirc:Loe,Ycy:Moe,ycy:$oe,yen:Noe,Yfr:Ooe,yfr:Poe,YIcy:Roe,yicy:zoe,Yopf:Ioe,yopf:Doe,Yscr:Foe,yscr:Hoe,YUcy:Boe,yucy:Woe,yuml:qoe,Yuml:joe,Zacute:Uoe,zacute:Voe,Zcaron:Goe,zcaron:Koe,Zcy:Xoe,zcy:Yoe,Zdot:Zoe,zdot:Joe,zeetrf:Qoe,ZeroWidthSpace:ese,Zeta:tse,zeta:nse,zfr:rse,Zfr:ise,ZHcy:ose,zhcy:sse,zigrarr:lse,zopf:ase,Zopf:cse,Zscr:use,zscr:fse,zwj:dse,zwnj:hse},pse="Á",gse="á",vse="Â",mse="â",yse="´",bse="Æ",wse="æ",xse="À",_se="à",Sse="&",kse="&",Tse="Å",Cse="å",Ese="Ã",Ase="ã",Lse="Ä",Mse="ä",$se="¦",Nse="Ç",Ose="ç",Pse="¸",Rse="¢",zse="©",Ise="©",Dse="¤",Fse="°",Hse="÷",Bse="É",Wse="é",qse="Ê",jse="ê",Use="È",Vse="è",Gse="Ð",Kse="ð",Xse="Ë",Yse="ë",Zse="½",Jse="¼",Qse="¾",ele=">",tle=">",nle="Í",rle="í",ile="Î",ole="î",sle="¡",lle="Ì",ale="ì",cle="¿",ule="Ï",fle="ï",dle="«",hle="<",ple="<",gle="¯",vle="µ",mle="·",yle=" ",ble="¬",wle="Ñ",xle="ñ",_le="Ó",Sle="ó",kle="Ô",Tle="ô",Cle="Ò",Ele="ò",Ale="ª",Lle="º",Mle="Ø",$le="ø",Nle="Õ",Ole="õ",Ple="Ö",Rle="ö",zle="¶",Ile="±",Dle="£",Fle='"',Hle='"',Ble="»",Wle="®",qle="®",jle="§",Ule="­",Vle="¹",Gle="²",Kle="³",Xle="ß",Yle="Þ",Zle="þ",Jle="×",Qle="Ú",eae="ú",tae="Û",nae="û",rae="Ù",iae="ù",oae="¨",sae="Ü",lae="ü",aae="Ý",cae="ý",uae="¥",fae="ÿ",dae={Aacute:pse,aacute:gse,Acirc:vse,acirc:mse,acute:yse,AElig:bse,aelig:wse,Agrave:xse,agrave:_se,amp:Sse,AMP:kse,Aring:Tse,aring:Cse,Atilde:Ese,atilde:Ase,Auml:Lse,auml:Mse,brvbar:$se,Ccedil:Nse,ccedil:Ose,cedil:Pse,cent:Rse,copy:zse,COPY:Ise,curren:Dse,deg:Fse,divide:Hse,Eacute:Bse,eacute:Wse,Ecirc:qse,ecirc:jse,Egrave:Use,egrave:Vse,ETH:Gse,eth:Kse,Euml:Xse,euml:Yse,frac12:Zse,frac14:Jse,frac34:Qse,gt:ele,GT:tle,Iacute:nle,iacute:rle,Icirc:ile,icirc:ole,iexcl:sle,Igrave:lle,igrave:ale,iquest:cle,Iuml:ule,iuml:fle,laquo:dle,lt:hle,LT:ple,macr:gle,micro:vle,middot:mle,nbsp:yle,not:ble,Ntilde:wle,ntilde:xle,Oacute:_le,oacute:Sle,Ocirc:kle,ocirc:Tle,Ograve:Cle,ograve:Ele,ordf:Ale,ordm:Lle,Oslash:Mle,oslash:$le,Otilde:Nle,otilde:Ole,Ouml:Ple,ouml:Rle,para:zle,plusmn:Ile,pound:Dle,quot:Fle,QUOT:Hle,raquo:Ble,reg:Wle,REG:qle,sect:jle,shy:Ule,sup1:Vle,sup2:Gle,sup3:Kle,szlig:Xle,THORN:Yle,thorn:Zle,times:Jle,Uacute:Qle,uacute:eae,Ucirc:tae,ucirc:nae,Ugrave:rae,ugrave:iae,uml:oae,Uuml:sae,uuml:lae,Yacute:aae,yacute:cae,yen:uae,yuml:fae},hae="&",pae="'",gae=">",vae="<",mae='"',Ow={amp:hae,apos:pae,gt:gae,lt:vae,quot:mae};var ps={};const yae={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 Dm;function bae(){if(Dm)return ps;Dm=1;var e=ps&&ps.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ps,"__esModule",{value:!0});var t=e(yae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ps.default=o,ps}var Fm;function Hm(){if(Fm)return Sr;Fm=1;var e=Sr&&Sr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.decodeHTML=Sr.decodeHTMLStrict=Sr.decodeXML=void 0;var t=e(Nw),r=e(dae),o=e(Ow),s=e(bae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Sr.decodeXML=f(o.default),Sr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};Sr.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),L=h(t.default);function M(E){return E.substr(-1)!==";"&&(E+=";"),L(E)}return function(E){return String(E).replace(w,M)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return Sr}var An={},Bm;function Wm(){if(Bm)return An;Bm=1;var e=An&&An.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(An,"__esModule",{value:!0}),An.escapeUTF8=An.escape=An.encodeNonAsciiHTML=An.encodeHTML=An.encodeXML=void 0;var t=e(Ow),r=d(t.default),o=h(r);An.encodeXML=E(r);var s=e(Nw),c=d(s.default),f=h(c);An.encodeHTML=b(c,f),An.encodeNonAsciiHTML=E(c);function d(A){return Object.keys(A).sort().reduce(function($,R){return $[A[R]]="&"+R+";",$},{})}function h(A){for(var $=[],R=[],T=0,I=Object.keys(A);T<I.length;T++){var F=I[T];F.length===1?$.push("\\"+F):R.push(F)}$.sort();for(var re=0;re<$.length-1;re++){for(var se=re;se<$.length-1&&$[se].charCodeAt(1)+1===$[se+1].charCodeAt(1);)se+=1;var J=1+se-re;J<3||$.splice(re,J,$[re]+"-"+$[se])}return R.unshift("["+$.join("")+"]"),new RegExp(R.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(A){return A.codePointAt(0)}:function(A){return(A.charCodeAt(0)-55296)*1024+A.charCodeAt(1)-56320+65536};function m(A){return"&#x"+(A.length>1?v(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(A,$){return function(R){return R.replace($,function(T){return A[T]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function L(A){return A.replace(w,m)}An.escape=L;function M(A){return A.replace(o,m)}An.escapeUTF8=M;function E(A){return function($){return $.replace(w,function(R){return A[R]||m(R)})}}return An}var qm;function wae(){return qm||(qm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Hm(),r=Wm();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Wm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=Hm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})}(cd)),cd}var ud,jm;function xae(){if(jm)return ud;jm=1;function e(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function t(N,O){for(var P=0;P<O.length;P++){var S=O[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(N,S.key,S)}}function r(N,O,P){return O&&t(N.prototype,O),N}function o(N,O){var P=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!P){if(Array.isArray(N)||(P=s(N))||O){P&&(N=P);var S=0,H=function(){};return{s:H,n:function(){return S>=N.length?{done:!0}:{done:!1,value:N[S++]}},e:function(Oe){throw Oe},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V=!0,oe=!1,ve;return{s:function(){P=P.call(N)},n:function(){var Oe=P.next();return V=Oe.done,Oe},e:function(Oe){oe=!0,ve=Oe},f:function(){try{!V&&P.return!=null&&P.return()}finally{if(oe)throw ve}}}}function s(N,O){if(N){if(typeof N=="string")return c(N,O);var P=Object.prototype.toString.call(N).slice(8,-1);if(P==="Object"&&N.constructor&&(P=N.constructor.name),P==="Map"||P==="Set")return Array.from(N);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return c(N,O)}}function c(N,O){(O==null||O>N.length)&&(O=N.length);for(var P=0,S=new Array(O);P<O;P++)S[P]=N[P];return S}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var N={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return E(0,5).forEach(function(O){E(0,5).forEach(function(P){E(0,5).forEach(function(S){return p(O,P,S,N)})})}),E(0,23).forEach(function(O){var P=O+232,S=v(O*10+8);N[P]="#"+S+S+S}),N}function p(N,O,P,S){var H=16+N*36+O*6+P,V=N>0?N*40+55:0,oe=O>0?O*40+55:0,ve=P>0?P*40+55:0;S[H]=m([V,oe,ve])}function v(N){for(var O=N.toString(16);O.length<2;)O="0"+O;return O}function m(N){var O=[],P=o(N),S;try{for(P.s();!(S=P.n()).done;){var H=S.value;O.push(v(H))}}catch(V){P.e(V)}finally{P.f()}return"#"+O.join("")}function b(N,O,P,S){var H;return O==="text"?H=R(P,S):O==="display"?H=L(N,P,S):O==="xterm256Foreground"?H=F(N,S.colors[P]):O==="xterm256Background"?H=re(N,S.colors[P]):O==="rgb"&&(H=w(N,P)),H}function w(N,O){O=O.substring(2).slice(0,-1);var P=+O.substr(0,2),S=O.substring(5).split(";"),H=S.map(function(V){return("0"+Number(V).toString(16)).substr(-2)}).join("");return I(N,(P===38?"color:#":"background-color:#")+H)}function L(N,O,P){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return N.length&&M(N)},1:function(){return T(N,"b")},3:function(){return T(N,"i")},4:function(){return T(N,"u")},8:function(){return I(N,"display:none")},9:function(){return T(N,"strike")},22:function(){return I(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return se(N,"i")},24:function(){return se(N,"u")},39:function(){return F(N,P.fg)},49:function(){return re(N,P.bg)},53:function(){return I(N,"text-decoration:overline")}},H;return S[O]?H=S[O]():4<O&&O<7?H=T(N,"blink"):29<O&&O<38?H=F(N,P.colors[O-30]):39<O&&O<48?H=re(N,P.colors[O-40]):89<O&&O<98?H=F(N,P.colors[8+(O-90)]):99<O&&O<108&&(H=re(N,P.colors[8+(O-100)])),H}function M(N){var O=N.slice(0);return N.length=0,O.reverse().map(function(P){return"</"+P+">"}).join("")}function E(N,O){for(var P=[],S=N;S<=O;S++)P.push(S);return P}function A(N){return function(O){return(N===null||O.category!==N)&&N!=="all"}}function $(N){N=parseInt(N,10);var O=null;return N===0?O="all":N===1?O="bold":2<N&&N<5?O="underline":4<N&&N<7?O="blink":N===8?O="hide":N===9?O="strike":29<N&&N<38||N===39||89<N&&N<98?O="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(O="background-color"),O}function R(N,O){return O.escapeXML?f.encodeXML(N):N}function T(N,O,P){return P||(P=""),N.push(O),"<".concat(O).concat(P?' style="'.concat(P,'"'):"",">")}function I(N,O){return T(N,"span",O)}function F(N,O){return T(N,"span","color:"+O)}function re(N,O){return T(N,"span","background-color:"+O)}function se(N,O){var P;if(N.slice(-1)[0]===O&&(P=N.pop()),P)return"</"+O+">"}function J(N,O,P){var S=!1,H=3;function V(){return""}function oe(U,Y){return P("xterm256Foreground",Y),""}function ve(U,Y){return P("xterm256Background",Y),""}function we(U){return O.newline?P("display",-1):P("text",U),""}function Oe(U,Y){S=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var ue=o(Y),he;try{for(ue.s();!(he=ue.n()).done;){var fe=he.value;P("display",fe)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function je(U){return P("text",U),""}function Qe(U){return P("rgb",U),""}var Xe=[{pattern:/^\x08+/,sub:V},{pattern:/^\x1b\[[012]?K/,sub:V},{pattern:/^\x1b\[\(B/,sub:V},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Qe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:oe},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:we},{pattern:/^\r+\n/,sub:we},{pattern:/^\r/,sub:we},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Oe},{pattern:/^\x1b\[\d?J/,sub:V},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:V},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:V},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function Ye(U,Y){Y>H&&S||(S=!1,N=N.replace(U.pattern,U.sub))}var ne=[],W=N,Q=W.length;e:for(;Q>0;){for(var X=0,ae=0,pe=Xe.length;ae<pe;X=++ae){var z=Xe[X];if(Ye(z,X),N.length!==Q){Q=N.length;continue e}}if(N.length===Q)break;ne.push(0),Q=N.length}return ne}function G(N,O,P){return O!=="text"&&(N=N.filter(A($(P))),N.push({token:O,data:P,category:$(P)})),N}var K=function(){function N(O){e(this,N),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(N,[{key:"toHtml",value:function(P){var S=this;P=typeof P=="string"?[P]:P;var H=this.stack,V=this.options,oe=[];return this.stickyStack.forEach(function(ve){var we=b(H,ve.token,ve.data,V);we&&oe.push(we)}),J(P.join(""),V,function(ve,we){var Oe=b(H,ve,we,V);Oe&&oe.push(Oe),V.stream&&(S.stickyStack=G(S.stickyStack,ve,we))}),H.length&&oe.push(M(H)),oe.join("")}}]),N}();return ud=K,ud}var _ae=xae();const Sae=$w(_ae);function Kl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function kae(e,t){return t&&e.endsWith(t)}async function Zh(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Jh(e){return new Sae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Tae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Pw(e){let t=e;if(Tae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=dE(t.stack||"",{ignoreStackEntries:[]}),t}function Cae(e,t){var s,c;let r="";return(s=t.message)!=null&&s.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(Kl(t.message))}`),((c=t.stack)==null?void 0:c.includes("\x1B"))&&(r.length>0?r+=e.toHtml(Kl(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(Kl(t.stack))}`),r.length>0?r:null}function Rw(e,t){const r=Jh(e);return t.map(o=>{var f;const s=o.result;if(!s||s.htmlError)return o;const c=(f=s.errors)==null?void 0:f.map(d=>Cae(r,d)).filter(d=>d!=null).join("<br><br>");return c!=null&&c.length&&(s.htmlError=c),o})}var tr=Uint8Array,xs=Uint16Array,Eae=Int32Array,zw=new tr([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]),Iw=new tr([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]),Aae=new tr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Dw=function(e,t){for(var r=new xs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Eae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Fw=Dw(zw,2),Hw=Fw.b,Lae=Fw.r;Hw[28]=258,Lae[258]=28;var Mae=Dw(Iw,0),$ae=Mae.b,Zd=new xs(32768);for(var Mt=0;Mt<32768;++Mt){var Hi=(Mt&43690)>>1|(Mt&21845)<<1;Hi=(Hi&52428)>>2|(Hi&13107)<<2,Hi=(Hi&61680)>>4|(Hi&3855)<<4,Zd[Mt]=((Hi&65280)>>8|(Hi&255)<<8)>>1}var Xl=function(e,t,r){for(var o=e.length,s=0,c=new xs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new xs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new xs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Zd[m]>>h]=p}else for(d=new xs(o),s=0;s<o;++s)e[s]&&(d[s]=Zd[f[e[s]-1]++]>>15-e[s]);return d},Na=new tr(288);for(var Mt=0;Mt<144;++Mt)Na[Mt]=8;for(var Mt=144;Mt<256;++Mt)Na[Mt]=9;for(var Mt=256;Mt<280;++Mt)Na[Mt]=7;for(var Mt=280;Mt<288;++Mt)Na[Mt]=8;var Bw=new tr(32);for(var Mt=0;Mt<32;++Mt)Bw[Mt]=5;var Nae=Xl(Na,9,1),Oae=Xl(Bw,5,1),fd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},kr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},dd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Pae=function(e){return(e+7)/8|0},Ww=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new tr(e.subarray(t,r))},Rae=["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"],qn=function(e,t,r){var o=new Error(t||Rae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,qn),!r)throw o;return o},Qh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new tr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new tr(s*3));var p=function(pe){var z=r.length;if(pe>z){var U=new tr(Math.max(z*2,pe));U.set(r),r=U}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,L=t.d,M=t.m,E=t.n,A=s*8;do{if(!w){v=kr(e,m,1);var $=kr(e,m+1,3);if(m+=3,$)if($==1)w=Nae,L=Oae,M=9,E=5;else if($==2){var F=kr(e,m,31)+257,re=kr(e,m+10,15)+4,se=F+kr(e,m+5,31)+1;m+=14;for(var J=new tr(se),G=new tr(19),K=0;K<re;++K)G[Aae[K]]=kr(e,m+K*3,7);m+=re*3;for(var N=fd(G),O=(1<<N)-1,P=Xl(G,N,1),K=0;K<se;){var S=P[kr(e,m,O)];m+=S&15;var R=S>>4;if(R<16)J[K++]=R;else{var H=0,V=0;for(R==16?(V=3+kr(e,m,3),m+=2,H=J[K-1]):R==17?(V=3+kr(e,m,7),m+=3):R==18&&(V=11+kr(e,m,127),m+=7);V--;)J[K++]=H}}var oe=J.subarray(0,F),ve=J.subarray(F);M=fd(oe),E=fd(ve),w=Xl(oe,M,1),L=Xl(ve,E,1)}else qn(1);else{var R=Pae(m)+4,T=e[R-4]|e[R-3]<<8,I=R+T;if(I>s){h&&qn(0);break}d&&p(b+T),r.set(e.subarray(R,I),b),t.b=b+=T,t.p=m=I*8,t.f=v;continue}if(m>A){h&&qn(0);break}}d&&p(b+131072);for(var we=(1<<M)-1,Oe=(1<<E)-1,je=m;;je=m){var H=w[dd(e,m)&we],Qe=H>>4;if(m+=H&15,m>A){h&&qn(0);break}if(H||qn(2),Qe<256)r[b++]=Qe;else if(Qe==256){je=m,w=null;break}else{var Xe=Qe-254;if(Qe>264){var K=Qe-257,Ye=zw[K];Xe=kr(e,m,(1<<Ye)-1)+Hw[K],m+=Ye}var ne=L[dd(e,m)&Oe],W=ne>>4;ne||qn(3),m+=ne&15;var ve=$ae[W];if(W>3){var Ye=Iw[W];ve+=dd(e,m)&(1<<Ye)-1,m+=Ye}if(m>A){h&&qn(0);break}d&&p(b+131072);var Q=b+Xe;if(b<ve){var X=c-ve,ae=Math.min(ve,Q);for(X+b<0&&qn(3);b<ae;++b)r[b]=o[X+b]}for(;b<Q;++b)r[b]=r[b-ve]}}t.l=w,t.p=je,t.b=b,t.f=v,w&&(v=1,t.m=M,t.d=L,t.n=E)}while(!v);return b!=r.length&&f?Ww(r,0,b):r.subarray(0,b)},zae=new tr(0),Iae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&qn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Fae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&qn(6,"invalid zlib data"),(e[1]>>5&1)==1&&qn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Hae(e,t){return Qh(e,{i:2},t,t)}function Bae(e,t){var r=Iae(e);return r+8>e.length&&qn(6,"invalid gzip data"),Qh(e.subarray(r,-8),{i:2},new tr(Dae(e)),t)}function Wae(e,t){return Qh(e.subarray(Fae(e),-4),{i:2},t,t)}function qae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Bae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Hae(e,t):Wae(e,t)}var Jd=typeof TextDecoder<"u"&&new TextDecoder,jae=0;try{Jd.decode(zae,{stream:!0}),jae=1}catch{}var Uae=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Ww(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Vae(e,t){var r;if(Jd)return Jd.decode(e);var o=Uae(e),s=o.s,r=o.r;return r.length&&qn(8),s}const hd=()=>{},gn=()=>Promise.resolve();function Gae(){const e=nr({state:new nw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=nr(e.state.filesMap),e.state.idMap=nr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:gn,onDone:hd,onTaskUpdate:hd,writeFile:gn,rerun:gn,rerunTask:gn,updateSnapshot:gn,resolveSnapshotPath:gn,snapshotSaved:gn,onAfterSuiteRun:gn,onCancel:gn,getCountOfFailedTests:()=>0,sendLog:gn,resolveSnapshotRawPath:gn,readSnapshotFile:gn,saveSnapshotFile:gn,readTestFile:async d=>t.sources[d],removeSnapshotFile:gn,onUnhandledError:hd,saveTestFile:gn,getProvidedContext:()=>({}),getTestFiles:gn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=Vae(qae(m));t=jd(b)}else t=jd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const pt=function(){return dr?Gae():FE(YA,{reactive:(t,r)=>r==="state"?nr(t):tn(t),handlers:{onTestAnnotate(t,r){Ae.annotateTest(t,r)},onTaskUpdate(t,r){Ae.resumeRun(t,r),ju.value="running"},onFinished(t,r){Ae.endRun(),Vi.value=(r||[]).map(Pw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Ws=tn({}),No=Ue("CONNECTING"),jt=Se(()=>{const e=so.value;return e?hr(e):void 0}),qw=Se(()=>jh(jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function hr(e){const t=pt.state.idMap.get(e);return t||void 0}const Kae=Se(()=>No.value==="OPEN"),pd=Se(()=>No.value==="CONNECTING");Se(()=>No.value==="CLOSED");function Xae(){return ep(pt.state.getFiles())}function jw(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,La(e)))for(const r of e.tasks)jw(r)}function Yae(e){const t=Ae.nodes;e.forEach(r=>{delete r.result,jh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Pn(o)&&(o.collectDuration=void 0))})}function ep(e){return Yae(e),Ae.startRun(),pt.rpc.rerun(e.map(t=>t.filepath),!0)}function Zae(e){return jw(e),Ae.startRun(),pt.rpc.rerunTask(e.id)}const Ot=window.__vitest_browser_runner__;window.__vitest_ui_api__=GA;St(()=>pt.ws,e=>{No.value=dr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{No.value="OPEN",pt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([pt.rpc.getFiles(),pt.rpc.getConfig(),pt.rpc.getUnhandledErrors(),pt.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await pt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Kb(h,d,f);return p.mode="skip",p})),Ae.loadFiles(t,s),pt.state.collectFiles(t),Ae.startRun(),Vi.value=(o||[]).map(Pw),Ws.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{No.value==="CONNECTING"&&(No.value="CLOSED")},1e3)})},{immediate:!0});const Jae={"text-2xl":""},Qae={"text-lg":"",op50:""},ece=ct({__name:"ConnectionOverlay",setup(e){return(t,r)=>B(Kae)?qe("",!0):(ie(),ye("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)=>B(pt).reconnect&&B(pt).reconnect(...o))},[ee("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(B(pd)?"animate-pulse":"")},[ee("div",{text:"5xl",class:st(B(pd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ee("div",Jae,ze(B(pd)?"Connecting...":"Disconnected"),1),ee("div",Qae," Check your terminal or start a new server with `"+ze(B(Ot)?`vitest --browser=${B(Ot).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),tce=["aria-label","opacity","disabled","hover"],Jr=ct({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ie(),ye("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[wn(t.$slots,"default",{},()=>[ee("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,tce))}}),nce={h:"full",flex:"~ col"},rce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},ice={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},oce={class:"pointer-events-none","text-sm":""},sce={key:0},lce={id:"tester-container",relative:""},ace=["data-scale"],Um=20,cce=100,uce=ct({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Qn.value[0]===v[0]&&Qn.value[1]===v[1]}const{width:o,height:s}=gw();async function c(p){Qn.value=t[p],(Ot==null?void 0:Ot.provider)==="webdriverio"&&Mw()}const f=Se(()=>{if((Ot==null?void 0:Ot.provider)==="webdriverio"){const[w,L]=Qn.value;return{width:w,height:L}}const m=o.value*(Lt.details.size/100)*(Lt.details.browser/100)-Um,b=s.value-cce;return{width:m,height:b}}),d=Se(()=>{if((Ot==null?void 0:Ot.provider)==="webdriverio")return 1;const[p,v]=Qn.value,{width:m,height:b}=f.value,w=m>p?1:m/p,L=b>v?1:b/v;return Math.min(1,w,L)}),h=Se(()=>{const p=f.value.width,v=Qn.value[0];return`${Math.trunc((p+Um-v)/2)}px`});return(p,v)=>{const m=Jr,b=Rr("tooltip");return ie(),ye("div",nce,[ee("div",rce,[ut(Pe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>B(VA)())},null,512),[[Xi,B(Lt).navigation<=15],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=ee("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ut(Pe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>B(jA)())},null,512),[[Xi,B(Lt).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),ut(Pe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>B(UA)())},null,512),[[Xi,B(Lt).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),ee("div",ice,[ut(Pe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>c("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),ut(Pe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>c("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),ut(Pe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>c("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),ee("span",oce,[ht(ze(B(Qn)[0])+"x"+ze(B(Qn)[1])+"px ",1),B(d)<1?(ie(),ye("span",sce,"("+ze((B(d)*100).toFixed(0))+"%)",1)):qe("",!0)])]),ee("div",lce,[ee("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":B(d),style:en({"--viewport-width":`${B(Qn)[0]}px`,"--viewport-height":`${B(Qn)[1]}px`,"--tester-transform":`scale(${B(d)})`,"--tester-margin-left":B(h)})}," Select a test to run ",12,ace)])])}}}),fce=Zr(uce,[["__scopeId","data-v-9fd23e63"]]),tp=ct({__name:"Modal",props:na({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nu(e,"modelValue"),r=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ie(),ye("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[ee("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),ee("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[B(r)]]),style:en(t.value?{}:{transform:B(o)})},[wn(c.$slots,"default")],6)],2))}}),dce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},hce={"p-4":"",relative:"",border:"base b"},pce={op50:"","font-mono":"","text-sm":""},gce={op50:"","font-mono":"","text-sm":""},vce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},mce=["src","alt"],yce={key:1},bce=ct({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return uw("Escape",()=>{r("close")}),(o,s)=>{const c=Jr;return ie(),ye("div",dce,[ee("div",hce,[s[1]||(s[1]=ee("p",null,"Screenshot error",-1)),ee("p",pce,ze(o.file),1),ee("p",gce,ze(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),ee("div",vce,[o.url?(ie(),ye("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,mce)):(ie(),ye("div",yce," Something was wrong, the image cannot be resolved. "))])])}}}),Uw=Zr(bce,[["__scopeId","data-v-93900314"]]),Vw={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Vw);var ar=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},vs,Rl,Mo;class wce{constructor(...t){vs.set(this,new Map),Rl.set(this,new Map),Mo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),ar(this,Mo,"f").has(o)||ar(this,Mo,"f").set(o,new Set);const c=ar(this,Mo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c==null||c.add(d),f&&ar(this,Rl,"f").set(o,d),f=!1,h)continue;const p=ar(this,vs,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);ar(this,vs,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:ar(this,vs,"f").get(o)??null}getExtension(t){var r;return typeof t!="string"?null:(t=(r=t==null?void 0:t.split)==null?void 0:r.call(t,";")[0],(t&&ar(this,Rl,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:ar(this,Mo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of ar(this,Mo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:ar(this,vs,"f"),extensions:ar(this,Rl,"f")}}}vs=new WeakMap,Rl=new WeakMap,Mo=new WeakMap;const xce=new wce(Vw)._freeze();function du(e){if(dr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Gw(e,t){const r=t?xce.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function _ce(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const Sce=["href","referrerPolicy"],kce=["src"],Tce=ct({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=Se(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:du(o)});return(o,s)=>{var c;return o.annotation.attachment&&((c=o.annotation.attachment.contentType)!=null&&c.startsWith("image/"))?(ie(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:B(r),referrerPolicy:B(_ce)(o.annotation.attachment)?"no-referrer":void 0},[ee("img",{src:B(r)},null,8,kce)],8,Sce)):qe("",!0)}}});var zc={exports:{}},Cce=zc.exports,Vm;function Ks(){return Vm||(Vm=1,function(e,t){(function(r,o){e.exports=o()})(Cce,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],L=/Opera\//.test(r),M=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),A=/PhantomJS/.test(r),$=M&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),T=$||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),I=$||/Mac/.test(o),F=/\bCrOS\b/.test(r),re=/win/i.test(o),se=L&&r.match(/Version\/(\d*\.\d*)/);se&&(se=Number(se[1])),se&&se>=15&&(L=!1,v=!0);var J=I&&(m||L&&(se==null||se<12.11)),G=s||h&&p>=9;function K(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var a=n.className,l=K(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function P(n,i){return O(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function H(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function oe(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ve(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function we(n,i){var a=n.className;K(i).test(a)||(n.className+=(a?" ":"")+i)}function Oe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!K(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};$?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Xe(n){return Ye(n.display.wrapper)}function Ye(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function ne(n){return Qe(n).defaultView}function W(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Q(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function X(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};ae.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},ae.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,U={toString:function(){return"CodeMirror.Pass"}},Y={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function fe(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(me(Ce)+" ");return Ce[n]}function me(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function $e(){}function De(n,i){var a;return Object.create?a=Object.create(n):($e.prototype=n,a=new $e),i&&Q(i,a),a}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Ve.test(n))}function lt(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ft(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var $t=/[\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 at(n){return n.charCodeAt(0)>=768&&$t.test(n)}function Gt(n,i,a){for(;(a<0?i>0:i<n.length)&&at(n.charAt(i));)i+=a;return i}function Bt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function In(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Ir=null;function Ft(n,i,a){var l;Ir=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Ir=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Ir=u)}return l??Ir}var Dn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function _(k,D,j){this.level=k,this.from=D,this.to=j}return function(k,D){var j=D=="ltr"?"L":"R";if(k.length==0||D=="ltr"&&!l.test(k))return!1;for(var te=k.length,Z=[],ce=0;ce<te;++ce)Z.push(a(k.charCodeAt(ce)));for(var ge=0,_e=j;ge<te;++ge){var ke=Z[ge];ke=="m"?Z[ge]=_e:_e=ke}for(var Me=0,Te=j;Me<te;++Me){var Ne=Z[Me];Ne=="1"&&Te=="r"?Z[Me]="n":g.test(Ne)&&(Te=Ne,Ne=="r"&&(Z[Me]="R"))}for(var He=1,Ie=Z[0];He<te-1;++He){var et=Z[He];et=="+"&&Ie=="1"&&Z[He+1]=="1"?Z[He]="1":et==","&&Ie==Z[He+1]&&(Ie=="1"||Ie=="n")&&(Z[He]=Ie),Ie=et}for(var _t=0;_t<te;++_t){var Jt=Z[_t];if(Jt==",")Z[_t]="N";else if(Jt=="%"){var Nt=void 0;for(Nt=_t+1;Nt<te&&Z[Nt]=="%";++Nt);for(var Bn=_t&&Z[_t-1]=="!"||Nt<te&&Z[Nt]=="1"?"1":"N",Tn=_t;Tn<Nt;++Tn)Z[Tn]=Bn;_t=Nt-1}}for(var Wt=0,Cn=j;Wt<te;++Wt){var rn=Z[Wt];Cn=="L"&&rn=="1"?Z[Wt]="L":g.test(rn)&&(Cn=rn)}for(var Ut=0;Ut<te;++Ut)if(u.test(Z[Ut])){var qt=void 0;for(qt=Ut+1;qt<te&&u.test(Z[qt]);++qt);for(var It=(Ut?Z[Ut-1]:j)=="L",En=(qt<te?Z[qt]:j)=="L",fs=It==En?It?"L":"R":j,Di=Ut;Di<qt;++Di)Z[Di]=fs;Ut=qt-1}for(var cn=[],Wr,Qt=0;Qt<te;)if(y.test(Z[Qt])){var Uf=Qt;for(++Qt;Qt<te&&y.test(Z[Qt]);++Qt);cn.push(new _(0,Uf,Qt))}else{var li=Qt,xo=cn.length,_o=D=="rtl"?1:0;for(++Qt;Qt<te&&Z[Qt]!="L";++Qt);for(var pn=li;pn<Qt;)if(x.test(Z[pn])){li<pn&&(cn.splice(xo,0,new _(1,li,pn)),xo+=_o);var ds=pn;for(++pn;pn<Qt&&x.test(Z[pn]);++pn);cn.splice(xo,0,new _(2,ds,pn)),xo+=_o,li=pn}else++pn;li<Qt&&cn.splice(xo,0,new _(1,li,Qt))}return D=="ltr"&&(cn[0].level==1&&(Wr=k.match(/^\s+/))&&(cn[0].from=Wr[0].length,cn.unshift(new _(0,0,Wr[0].length))),me(cn).level==1&&(Wr=k.match(/\s+$/))&&(me(cn).to-=Wr[0].length,cn.push(new _(0,te-Wr[0].length,te)))),D=="rtl"?cn.reverse():cn}}();function tt(n,i){var a=n.order;return a==null&&(a=n.order=Dn(n.text,i)),a}var uo=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||uo).concat(a)}};function ei(n,i){return n._handlers&&n._handlers[i]||uo}function sn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Pt(n,i){var a=ei(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Pt(n,a||i.type,n,i),xn(i)||i.codemirrorIgnore}function or(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)pe(a,i[l])==-1&&a.push(i[l])}function Fn(n,i){return ei(n,i).length>0}function pr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){sn(this,i,a)}}function ln(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Ho(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function xn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ci(n){ln(n),Ho(n)}function Ys(n){return n.target||n.srcElement}function gr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),I&&n.ctrlKey&&i==1&&(i=3),i}var Zu=function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n}(),Bo;function za(n){if(Bo==null){var i=S("span","​");P(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Bo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Bo?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Zs;function Ei(n){if(Zs!=null)return Zs;var i=P(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:Zs=l.right-a.right<3}var sr=`
22
+
23
+ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
24
+ `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ai=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},Ia=function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),vr=null;function Ju(n){if(vr!=null)return vr;var i=P(n,S("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return vr=Math.abs(a.left-l.left)>1}var Wo={},mr={};function yr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Wo[n]=i}function fo(n,i){mr[n]=i}function qo(n){if(typeof n=="string"&&mr.hasOwnProperty(n))n=mr[n];else if(n&&typeof n.name=="string"&&mr.hasOwnProperty(n.name)){var i=mr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function jo(n,i){i=qo(i);var a=Wo[i.name];if(!a)return jo(n,"text/plain");var l=a(n,i);if(Li.hasOwnProperty(i.name)){var u=Li[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var Li={};function Uo(n,i){var a=Li.hasOwnProperty(n)?Li[n]:Li[n]={};Q(i,a)}function Dr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Js(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 Vo(n,i,a){return n.startState?n.startState(i,a):!0}var zt=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};zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zt.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},zt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},zt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},zt.prototype.backUp=function(n){this.pos-=n},zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=X(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},zt.prototype.indentation=function(){return X(this.string,null,this.tabSize)-(this.lineStart?X(this.string,this.lineStart,this.tabSize):0)},zt.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},zt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},zt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Re(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function ti(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function Qs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Yn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=pe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function q(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],_=x.height;if(i<_)break;i-=_}return a+y}function de(n,i){return i>=n.first&&i<n.first+n.size}function xe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function le(n,i,a){if(a===void 0&&(a=null),!(this instanceof le))return new le(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Le(n,i){return n.line-i.line||n.ch-i.ch}function gt(n,i){return n.sticky==i.sticky&&Le(n,i)==0}function Kt(n){return le(n.line,n.ch)}function _n(n,i){return Le(n,i)<0?i:n}function Go(n,i){return Le(n,i)<0?n:i}function mp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return le(n.first,0);var a=n.first+n.size-1;return i.line>a?le(a,Re(n,a).text.length):t1(i,Re(n,i.line).text.length)}function t1(n,i){var a=n.ch;return a==null||a>i?le(n.line,i):a<0?le(n.line,0):n}function yp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var Da=function(n,i){this.state=n,this.lookAhead=i},Fr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Fr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.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 Da?new Fr(n,Dr(n.mode,i.state),a,i.lookAhead):new Fr(n,Dr(n.mode,i),a)},Fr.prototype.save=function(n){var i=n!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Da(i,this.maxLookAhead):i};function bp(n,i,a,l){var u=[n.state.modeGen],g={};Tp(n,i.text,n.doc.mode,a,function(k,D){return u.push(k,D)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var D=n.state.overlays[k],j=1,te=0;a.state=!0,Tp(n,i.text,D.mode,a,function(Z,ce){for(var ge=j;te<Z;){var _e=u[j];_e>Z&&u.splice(j,1,Z,u[j+1],_e),j+=2,te=Math.min(Z,_e)}if(ce)if(D.opaque)u.splice(ge,j-ge,Z,"overlay "+ce),j=ge+2;else for(;ge<j;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)x(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function wp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=el(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Dr(n.doc.mode,l.state),g=bp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.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 el(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Fr(l,!0,i);var g=n1(n,i,a),y=g>l.first&&Re(l,g-1).stateAfter,x=y?Fr.fromSaved(l,y,g):new Fr(l,Vo(l.mode),g);return l.iter(g,i,function(_){Qu(n,_.text,x);var k=x.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Qu(n,i,a,l){var u=n.doc.mode,g=new zt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&xp(u,a.state);!g.eol();)ef(u,g,a.state),g.start=g.pos}function xp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Js(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function ef(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Js(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var _p=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Sp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ke(u,i);var x=Re(u,i.line),_=el(n,i.line,a),k=new zt(x.text,n.options.tabSize,_),D;for(l&&(D=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=ef(g,k,_.state),l&&D.push(new _p(k,y,Dr(u.mode,_.state)));return l?D:new _p(k,y,_.state)}function kp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function Tp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var _=0,k=null,D=new zt(i,n.options.tabSize,l),j,te=n.options.addModeClass&&[null];for(i==""&&kp(xp(a,l.state),g);!D.eol();){if(D.pos>n.options.maxHighlightLength?(x=!1,y&&Qu(n,i,l,D.pos),D.pos=i.length,j=null):j=kp(ef(a,D,l.state,te),g),te){var Z=te[0].name;Z&&(j="m-"+(j?Z+" "+j:Z))}if(!x||k!=j){for(;_<D.start;)_=Math.min(D.start,_+5e3),u(_,k);k=j}D.start=D.pos}for(;_<D.pos;){var ce=Math.min(D.pos,_+5e3);u(ce,k),_=ce}}function n1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var _=Re(g,x-1),k=_.stateAfter;if(k&&(!a||x+(k instanceof Da?k.lookAhead:0)<=g.modeFrontier))return x;var D=X(_.text,null,n.options.tabSize);(u==null||l>D)&&(u=x-1,l=D)}return u}function r1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Re(n,l).stateAfter;if(u&&(!(u instanceof Da)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Cp=!1,ni=!1;function i1(){Cp=!0}function o1(){ni=!0}function Fa(n,i,a){this.marker=n,this.from=i,this.to=a}function tl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function s1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function l1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function a1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Fa(y,g.from,_?null:g.to))}}return l}function c1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Fa(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function tf(n,i){if(i.full)return null;var a=de(n,i.from.line)&&Re(n,i.from.line).markedSpans,l=de(n,i.to.line)&&Re(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Le(i.from,i.to)==0,x=a1(a,u,y),_=c1(l,g,y),k=i.text.length==1,D=me(i.text).length+(k?u:0);if(x)for(var j=0;j<x.length;++j){var te=x[j];if(te.to==null){var Z=tl(_,te.marker);Z?k&&(te.to=Z.to==null?null:Z.to+D):te.to=u}}if(_)for(var ce=0;ce<_.length;++ce){var ge=_[ce];if(ge.to!=null&&(ge.to+=D),ge.from==null){var _e=tl(x,ge.marker);_e||(ge.from=D,k&&(x||(x=[])).push(ge))}else ge.from+=D,k&&(x||(x=[])).push(ge)}x&&(x=Ep(x)),_&&_!=x&&(_=Ep(_));var ke=[x];if(!k){var Me=i.text.length-2,Te;if(Me>0&&x)for(var Ne=0;Ne<x.length;++Ne)x[Ne].to==null&&(Te||(Te=[])).push(new Fa(x[Ne].marker,null,null));for(var He=0;He<Me;++He)ke.push(Te);ke.push(_)}return ke}function Ep(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function u1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(Z){if(Z.markedSpans)for(var ce=0;ce<Z.markedSpans.length;++ce){var ge=Z.markedSpans[ce].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Le(k.to,x.from)<0||Le(k.from,x.to)>0)){var D=[_,1],j=Le(k.from,x.from),te=Le(k.to,x.to);(j<0||!y.inclusiveLeft&&!j)&&D.push({from:k.from,to:x.from}),(te>0||!y.inclusiveRight&&!te)&&D.push({from:x.to,to:k.to}),u.splice.apply(u,D),_+=D.length-3}}return u}function Ap(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Lp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ha(n){return n.inclusiveLeft?-1:0}function Ba(n){return n.inclusiveRight?1:0}function nf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Le(l.from,u.from)||Ha(n)-Ha(i);if(g)return-g;var y=Le(l.to,u.to)||Ba(n)-Ba(i);return y||i.id-n.id}function Mp(n,i){var a=ni&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||nf(l,u.marker)<0)&&(l=u.marker);return l}function $p(n){return Mp(n,!0)}function Wa(n){return Mp(n,!1)}function f1(n,i){var a=ni&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||nf(l,g.marker)<0)&&(l=g.marker)}return l}function Np(n,i,a,l,u){var g=Re(n,i),y=ni&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var _=y[x];if(_.marker.collapsed){var k=_.marker.find(0),D=Le(k.from,a)||Ha(_.marker)-Ha(u),j=Le(k.to,l)||Ba(_.marker)-Ba(u);if(!(D>=0&&j<=0||D<=0&&j>=0)&&(D<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.to,a)>=0:Le(k.to,a)>0)||D>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.from,l)<=0:Le(k.from,l)<0)))return!0}}}function br(n){for(var i;i=$p(n);)n=i.find(-1,!0).line;return n}function d1(n){for(var i;i=Wa(n);)n=i.find(1,!0).line;return n}function h1(n){for(var i,a;i=Wa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function rf(n,i){var a=Re(n,i),l=br(a);return a==l?i:C(l)}function Op(n,i){if(i>n.lastLine())return i;var a=Re(n,i),l;if(!Mi(n,a))return i;for(;l=Wa(a);)a=l.find(1,!0).line;return C(a)+1}function Mi(n,i){var a=ni&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&of(n,i,l))return!0}}}function of(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return of(n,l.line,tl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&of(n,i,u))return!0}function ri(n){n=br(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function qa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=$p(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Wa(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function sf(n){var i=n.display,a=n.doc;i.maxLine=Re(a,a.first),i.maxLineLength=qa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=qa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Ko=function(n,i,a){this.text=n,Lp(this,i),this.height=a?a(this):1};Ko.prototype.lineNo=function(){return C(this)},pr(Ko);function p1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ap(n),Lp(n,a);var u=l?l(n):1;u!=n.height&&Yn(n,u)}function g1(n){n.parent=null,Ap(n)}var v1={},m1={};function Pp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?m1:v1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Rp(n,i){var a=H("span",null,null,v?"padding-right: .1px":null),l={pre:H("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=b1,Ei(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=x1(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);_1(g,l,wp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Oe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Oe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(za(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Oe(l.pre.className,l.textClass||"")),l}function y1(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function b1(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?w1(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,D;if(!_.test(i))n.col+=i.length,D=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,D),h&&p<9&&(k=!0),n.pos+=i.length;else{D=document.createDocumentFragment();for(var j=0;;){_.lastIndex=j;var te=_.exec(i),Z=te?te.index-j:i.length-j;if(Z){var ce=document.createTextNode(x.slice(j,j+Z));h&&p<9?D.appendChild(S("span",[ce])):D.appendChild(ce),n.map.push(n.pos,n.pos+Z,ce),n.col+=Z,n.pos+=Z}if(!te)break;j+=Z+1;var ge=void 0;if(te[0]==" "){var _e=n.cm.options.tabSize,ke=_e-n.col%_e;ge=D.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else te[0]=="\r"||te[0]==`
25
+ `?(ge=D.appendChild(S("span",te[0]=="\r"?"␍":"␤","cm-invalidchar")),ge.setAttribute("cm-text",te[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(te[0]),ge.setAttribute("cm-text",te[0]),h&&p<9?D.appendChild(S("span",[ge])):D.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Me=a||"";l&&(Me+=l),u&&(Me+=u);var Te=S("span",[D],Me,g);if(y)for(var Ne in y)y.hasOwnProperty(Ne)&&Ne!="style"&&Ne!="class"&&Te.setAttribute(Ne,y[Ne]);return n.content.appendChild(Te)}n.content.appendChild(D)}}function w1(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function x1(n,i){return function(a,l,u,g,y,x,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,D=k+l.length;;){for(var j=void 0,te=0;te<i.length&&(j=i[te],!(j.to>k&&j.from<=k));te++);if(j.to>=D)return n(a,l,u,g,y,x,_);n(a,l.slice(0,j.to-k),u,g,null,x,_),g=null,l=l.slice(j.to-k),k=j.to}}}function zp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function _1(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Pp(a[y+1],i.cm.options));return}for(var x=u.length,_=0,k=1,D="",j,te,Z=0,ce,ge,_e,ke,Me;;){if(Z==_){ce=ge=_e=te="",Me=null,ke=null,Z=1/0;for(var Te=[],Ne=void 0,He=0;He<l.length;++He){var Ie=l[He],et=Ie.marker;if(et.type=="bookmark"&&Ie.from==_&&et.widgetNode)Te.push(et);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||et.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&Z>Ie.to&&(Z=Ie.to,ge=""),et.className&&(ce+=" "+et.className),et.css&&(te=(te?te+";":"")+et.css),et.startStyle&&Ie.from==_&&(_e+=" "+et.startStyle),et.endStyle&&Ie.to==Z&&(Ne||(Ne=[])).push(et.endStyle,Ie.to),et.title&&((Me||(Me={})).title=et.title),et.attributes)for(var _t in et.attributes)(Me||(Me={}))[_t]=et.attributes[_t];et.collapsed&&(!ke||nf(ke.marker,et)<0)&&(ke=Ie)}else Ie.from>_&&Z>Ie.from&&(Z=Ie.from)}if(Ne)for(var Jt=0;Jt<Ne.length;Jt+=2)Ne[Jt+1]==Z&&(ge+=" "+Ne[Jt]);if(!ke||ke.from==_)for(var Nt=0;Nt<Te.length;++Nt)zp(i,0,Te[Nt]);if(ke&&(ke.from||0)==_){if(zp(i,(ke.to==null?x+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=x)break;for(var Bn=Math.min(x,Z);;){if(D){var Tn=_+D.length;if(!ke){var Wt=Tn>Bn?D.slice(0,Bn-_):D;i.addToken(i,Wt,j?j+ce:ce,_e,_+Wt.length==Z?ge:"",te,Me)}if(Tn>=Bn){D=D.slice(Bn-_),_=Bn;break}_=Tn,_e=""}D=u.slice(g,g=a[k++]),j=Pp(a[k++],i.cm.options)}}}function Ip(n,i,a){this.line=i,this.rest=h1(i),this.size=this.rest?C(me(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Mi(n,i)}function ja(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Ip(n.doc,Re(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Xo=null;function S1(n){Xo?Xo.ops.push(n):n.ownsGroup=Xo={ops:[n],delayedCallbacks:[]}}function k1(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function T1(n,i){var a=n.ownsGroup;if(a)try{k1(a)}finally{Xo=null,i(a)}}var nl=null;function Xt(n,i){var a=ei(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Xo?u=Xo.delayedCallbacks:nl?u=nl:(u=nl=[],setTimeout(C1,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function C1(){var n=nl;nl=null;for(var i=0;i<n.length;++i)n[i]()}function Dp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?A1(n,i):g=="gutter"?Hp(n,i,a,l):g=="class"?lf(n,i):g=="widget"&&L1(n,i,l)}i.changes=null}function rl(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function E1(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=rl(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Fp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Rp(n,i)}function A1(n,i){var a=i.text.className,l=Fp(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,lf(n,i)):a&&(i.text.className=a)}function lf(n,i){E1(n,i),i.line.wrapClass?rl(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Hp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=rl(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=rl(i),x=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(S("div",xe(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,D=g.hasOwnProperty(k)&&g[k];D&&x.appendChild(S("div",[D],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function L1(n,i,a){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Bp(n,i,a)}function M1(n,i,a,l){var u=Fp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),lf(n,i),Hp(n,i,a,l),Bp(n,i,l),i.node}function Bp(n,i,a){if(Wp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Wp(n,i.rest[l],i,a,!1)}function Wp(n,i,a,l,u){if(i.widgets)for(var g=rl(a),y=0,x=i.widgets;y<x.length;++y){var _=x[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),$1(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Xt(_,"redraw")}}function $1(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function il(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!oe(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),P(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ii(n,i){for(var a=Ys(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Ua(n){return n.lineSpace.offsetTop}function af(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function qp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=P(n.measure,S("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Hr(n){return z-n.display.nativeBarWidth}function ho(n){return n.display.scroller.clientWidth-Hr(n)-n.display.barWidth}function cf(n){return n.display.scroller.clientHeight-Hr(n)-n.display.barHeight}function N1(n,i,a){var l=n.options.lineWrapping,u=l&&ho(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var _=y[x],k=y[x+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function jp(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function O1(n,i){i=br(i);var a=C(i),l=n.display.externalMeasured=new Ip(n.doc,i,a);l.lineN=a;var u=l.built=Rp(n,l);return l.text=u.pre,P(n.display.lineMeasure,u.pre),l}function Up(n,i,a,l){return Br(n,Yo(n,i),a,l)}function uf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[vo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Yo(n,i){var a=C(i),l=uf(n,a);l&&!l.text?l=null:l&&l.changes&&(Dp(n,l,a,gf(n)),n.curOp.forceUpdate=!0),l||(l=O1(n,i));var u=jp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Br(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(N1(n,i.view,i.rect),i.hasHeights=!0),y=R1(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Vp={left:0,right:0,top:0,bottom:0};function Gp(n,i,a){for(var l,u,g,y,x,_,k=0;k<n.length;k+=3)if(x=n[k],_=n[k+1],i<x?(u=0,g=1,y="left"):i<_?(u=i-x,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-x,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],x==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-x)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:_}}function P1(n,i){var a=Vp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function R1(n,i,a,l){var u=Gp(i.map,a,l),g=u.node,y=u.start,x=u.end,_=u.collapse,k;if(g.nodeType==3){for(var D=0;D<4;D++){for(;y&&at(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&at(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=P1(V(g,y,x).getClientRects(),l),k.left||k.right||y==0)break;x=y,y=y-1,_="right"}h&&p<11&&(k=z1(n.display.measure,k))}else{y>0&&(_=l="right");var j;n.options.lineWrapping&&(j=g.getClientRects()).length>1?k=j[l=="right"?j.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var te=g.parentNode.getClientRects()[0];te?k={left:te.left,right:te.left+Jo(n.display),top:te.top,bottom:te.bottom}:k=Vp}for(var Z=k.top-i.rect.top,ce=k.bottom-i.rect.top,ge=(Z+ce)/2,_e=i.view.measure.heights,ke=0;ke<_e.length-1&&!(ge<_e[ke]);ke++);var Me=ke?_e[ke-1]:0,Te=_e[ke],Ne={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Me,bottom:Te};return!k.left&&!k.right&&(Ne.bogus=!0),n.options.singleCursorHeightPerLine||(Ne.rtop=Z,Ne.rbottom=ce),Ne}function z1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ju(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Kp(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Xp(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Kp(n.display.view[i])}function ol(n){Xp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Yp(n){return b&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Zp(n){return b&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function ff(n){var i=br(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=il(a[u]));return l}function Va(n,i,a,l,u){if(!u){var g=ff(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ri(i);if(l=="local"?y+=Ua(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Zp(Qe(n)));var _=x.left+(l=="window"?0:Yp(Qe(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Jp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Yp(Qe(n)),u-=Zp(Qe(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Ga(n,i,a,l,u){return l||(l=Re(n.doc,i.line)),Va(n,l,Up(n,l,i.ch,u),a)}function wr(n,i,a,l,u,g){l=l||Re(n.doc,i.line),u||(u=Yo(n,l));function y(ce,ge){var _e=Br(n,u,ce,ge?"right":"left",g);return ge?_e.left=_e.right:_e.right=_e.left,Va(n,l,_e,a)}var x=tt(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!x)return y(k=="before"?_-1:_,k=="before");function D(ce,ge,_e){var ke=x[ge],Me=ke.level==1;return y(_e?ce-1:ce,Me!=_e)}var j=Ft(x,_,k),te=Ir,Z=D(_,j,k=="before");return te!=null&&(Z.other=D(_,te,k!="before")),Z}function Qp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Jo(n.display)*i.ch);var l=Re(n.doc,i.line),u=ri(l)+Ua(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function df(n,i,a,l,u){var g=le(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function hf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return df(l.first,0,null,-1,-1);var u=q(l,a),g=l.first+l.size-1;if(u>g)return df(l.first+l.size-1,Re(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Re(l,u);;){var x=I1(n,y,u,i,a),_=f1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!_)return x;var k=_.find(1);if(k.line==u)return k;y=Re(l,u=k.line)}}function eg(n,i,a,l){l-=ff(i);var u=i.text.length,g=Bt(function(y){return Br(n,a,y-1).bottom<=l},u,0);return u=Bt(function(y){return Br(n,a,y).top>l},g,u),{begin:g,end:u}}function tg(n,i,a,l){a||(a=Yo(n,i));var u=Va(n,i,Br(n,a,l),"line").top;return eg(n,i,a,u)}function pf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function I1(n,i,a,l,u){u-=ri(i);var g=Yo(n,i),y=ff(i),x=0,_=i.text.length,k=!0,D=tt(i,n.doc.direction);if(D){var j=(n.options.lineWrapping?F1:D1)(n,i,a,g,D,l,u);k=j.level!=1,x=k?j.from:j.to-1,_=k?j.to:j.from-1}var te=null,Z=null,ce=Bt(function(He){var Ie=Br(n,g,He);return Ie.top+=y,Ie.bottom+=y,pf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(te=He,Z=Ie),!0):!1},x,_),ge,_e,ke=!1;if(Z){var Me=l-Z.left<Z.right-l,Te=Me==k;ce=te+(Te?0:1),_e=Te?"after":"before",ge=Me?Z.left:Z.right}else{!k&&(ce==_||ce==x)&&ce++,_e=ce==0?"after":ce==i.text.length?"before":Br(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Ne=wr(n,le(a,ce,_e),"line",i,g);ge=Ne.left,ke=u<Ne.top?-1:u>=Ne.bottom?1:0}return ce=Gt(i.text,ce,1),df(a,ce,_e,ke,l-ge)}function D1(n,i,a,l,u,g,y){var x=Bt(function(j){var te=u[j],Z=te.level!=1;return pf(wr(n,le(a,Z?te.to:te.from,Z?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[x];if(x>0){var k=_.level!=1,D=wr(n,le(a,k?_.from:_.to,k?"after":"before"),"line",i,l);pf(D,g,y,!0)&&D.top>y&&(_=u[x-1])}return _}function F1(n,i,a,l,u,g,y){var x=eg(n,i,l,y),_=x.begin,k=x.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var D=null,j=null,te=0;te<u.length;te++){var Z=u[te];if(!(Z.from>=k||Z.to<=_)){var ce=Z.level!=1,ge=Br(n,l,ce?Math.min(k,Z.to)-1:Math.max(_,Z.from)).right,_e=ge<g?g-ge+1e9:ge-g;(!D||j>_e)&&(D=Z,j=_e)}}return D||(D=u[u.length-1]),D.from<_&&(D={from:_,to:D.to,level:D.level}),D.to>k&&(D={from:D.from,to:k,level:D.level}),D}var po;function Zo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(po==null){po=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)po.appendChild(document.createTextNode("x")),po.appendChild(S("br"));po.appendChild(document.createTextNode("x"))}P(n.measure,po);var a=po.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function Jo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");P(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function gf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:vf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function vf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function ng(n){var i=Zo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Jo(n.display)-3);return function(u){if(Mi(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function mf(n){var i=n.doc,a=ng(n);i.iter(function(l){var u=a(l);u!=l.height&&Yn(l,u)})}function go(n,i,a,l){var u=n.display;if(!a&&Ys(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var _=hf(n,g,y),k;if(l&&_.xRel>0&&(k=Re(n.doc,_.line).text).length==_.ch){var D=X(k,k.length,n.options.tabSize)-k.length;_=le(_.line,Math.max(0,Math.round((g-qp(n.display).left)/Jo(n.display))-D))}return _}function vo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function Sn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)ni&&rf(n.doc,i)<u.viewTo&&Ni(n);else if(a<=u.viewFrom)ni&&Op(n.doc,a+l)>u.viewFrom?Ni(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ni(n);else if(i<=u.viewFrom){var g=Ka(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ni(n)}else if(a>=u.viewTo){var y=Ka(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ni(n)}else{var x=Ka(n,i,i,-1),_=Ka(n,a,a+l,1);x&&_?(u.view=u.view.slice(0,x.index).concat(ja(n,x.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):Ni(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function $i(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[vo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function Ni(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ka(n,i,a,l){var u=vo(n,i),g,y=n.display.view;if(!ni||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,_=0;_<u;_++)x+=y[_].size;if(x!=i){if(l>0){if(u==y.length-1)return null;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;rf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function H1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=ja(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=ja(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(vo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(ja(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,vo(n,a)))),l.viewTo=a}function rg(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function sl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function ig(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var _=a.sel.ranges[x];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var D=y(n,_);D&&yf(n,D,u)}else(k||n.options.showCursorWhenSelecting)&&yf(n,_.head,u);k||B1(n,_,g)}}return l}function yf(n,i,a){var l=wr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ga(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Xa(n,i){return n.top-i.top||n.left-i.left}function B1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=qp(n.display),x=y.left,_=Math.max(l.sizerWidth,ho(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function D(Te,Ne,He,Ie){Ne<0&&(Ne=0),Ne=Math.round(Ne),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
26
+ top: `+Ne+"px; width: "+(He??_-Te)+`px;
27
+ height: `+(Ie-Ne)+"px"))}function j(Te,Ne,He){var Ie=Re(u,Te),et=Ie.text.length,_t,Jt;function Nt(Wt,Cn){return Ga(n,le(Te,Wt),"div",Ie,Cn)}function Bn(Wt,Cn,rn){var Ut=tg(n,Ie,null,Wt),qt=Cn=="ltr"==(rn=="after")?"left":"right",It=rn=="after"?Ut.begin:Ut.end-(/\s/.test(Ie.text.charAt(Ut.end-1))?2:1);return Nt(It,qt)[qt]}var Tn=tt(Ie,u.direction);return In(Tn,Ne||0,He??et,function(Wt,Cn,rn,Ut){var qt=rn=="ltr",It=Nt(Wt,qt?"left":"right"),En=Nt(Cn-1,qt?"right":"left"),fs=Ne==null&&Wt==0,Di=He==null&&Cn==et,cn=Ut==0,Wr=!Tn||Ut==Tn.length-1;if(En.top-It.top<=3){var Qt=(k?fs:Di)&&cn,Uf=(k?Di:fs)&&Wr,li=Qt?x:(qt?It:En).left,xo=Uf?_:(qt?En:It).right;D(li,It.top,xo-li,It.bottom)}else{var _o,pn,ds,Vf;qt?(_o=k&&fs&&cn?x:It.left,pn=k?_:Bn(Wt,rn,"before"),ds=k?x:Bn(Cn,rn,"after"),Vf=k&&Di&&Wr?_:En.right):(_o=k?Bn(Wt,rn,"before"):x,pn=!k&&fs&&cn?_:It.right,ds=!k&&Di&&Wr?x:En.left,Vf=k?Bn(Cn,rn,"after"):_),D(_o,It.top,pn-_o,It.bottom),It.bottom<En.top&&D(x,It.bottom,null,En.top),D(ds,En.top,Vf-ds,En.bottom)}(!_t||Xa(It,_t)<0)&&(_t=It),Xa(En,_t)<0&&(_t=En),(!Jt||Xa(It,Jt)<0)&&(Jt=It),Xa(En,Jt)<0&&(Jt=En)}),{start:_t,end:Jt}}var te=i.from(),Z=i.to();if(te.line==Z.line)j(te.line,te.ch,Z.ch);else{var ce=Re(u,te.line),ge=Re(u,Z.line),_e=br(ce)==br(ge),ke=j(te.line,te.ch,_e?ce.text.length+1:null).end,Me=j(Z.line,_e?0:null,Z.ch).start;_e&&(ke.top<Me.top-2?(D(ke.right,ke.top,null,ke.bottom),D(x,Me.top,Me.left,Me.bottom)):D(ke.right,ke.top,Me.left-ke.right,ke.bottom)),ke.bottom<Me.top&&D(x,ke.bottom,null,Me.top)}a.appendChild(g)}function bf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Qo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function og(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||xf(n))}function wf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Qo(n))},100)}function xf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,we(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()),bf(n))}function Qo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,N(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ya(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var x=i.view[y],_=n.options.lineWrapping,k=void 0,D=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var j=x.node.offsetTop+x.node.offsetHeight;k=j-a,a=j}else{var te=x.node.getBoundingClientRect();k=te.bottom-te.top,!_&&x.text.firstChild&&(D=x.text.firstChild.getBoundingClientRect().right-te.left-1)}var Z=x.line.height-k;if((Z>.005||Z<-.005)&&(u<l&&(g-=Z),Yn(x.line,k),sg(x.line),x.rest))for(var ce=0;ce<x.rest.length;ce++)sg(x.rest[ce]);if(D>n.display.sizerWidth){var ge=Math.ceil(D/Jo(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function sg(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function Za(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Ua(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=q(i,l),y=q(i,u);if(a&&a.ensure){var x=a.ensure.from.line,_=a.ensure.to.line;x<g?(g=x,y=q(i,ri(Re(i,x))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=q(i,ri(Re(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function W1(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!A){var y=S("div","​",null,`position: absolute;
28
+ top: `+(i.top-a.viewOffset-Ua(n.display))+`px;
29
+ height: `+(i.bottom-i.top+Hr(n)+a.barHeight)+`px;
30
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function q1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?le(i.line,i.ch+1,"before"):i,i=i.ch?le(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=wr(n,i),_=!a||a==i?x:wr(n,a);u={left:Math.min(x.left,_.left),top:Math.min(x.top,_.top)-l,right:Math.max(x.left,_.left),bottom:Math.max(x.bottom,_.bottom)+l};var k=_f(n,u),D=n.doc.scrollTop,j=n.doc.scrollLeft;if(k.scrollTop!=null&&(al(n,k.scrollTop),Math.abs(n.doc.scrollTop-D)>1&&(y=!0)),k.scrollLeft!=null&&(mo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-j)>1&&(y=!0)),!y)break}return u}function j1(n,i){var a=_f(n,i);a.scrollTop!=null&&al(n,a.scrollTop),a.scrollLeft!=null&&mo(n,a.scrollLeft)}function _f(n,i){var a=n.display,l=Zo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=cf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+af(a),_=i.top<l,k=i.bottom>x-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var D=Math.min(i.top,(k?x:i.bottom)-g);D!=u&&(y.scrollTop=D)}var j=n.options.fixedGutter?0:a.gutters.offsetWidth,te=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-j,Z=ho(n)-a.gutters.offsetWidth,ce=i.right-i.left>Z;return ce&&(i.right=i.left+Z),i.left<10?y.scrollLeft=0:i.left<te?y.scrollLeft=Math.max(0,i.left+j-(ce?0:10)):i.right>Z+te-3&&(y.scrollLeft=i.right+(ce?0:10)-Z),y}function Sf(n,i){i!=null&&(Ja(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function es(n){Ja(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function ll(n,i,a){(i!=null||a!=null)&&Ja(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function U1(n,i){Ja(n),n.curOp.scrollToPos=i}function Ja(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Qp(n,i.from),l=Qp(n,i.to);lg(n,a,l,i.margin)}}function lg(n,i,a,l){var u=_f(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});ll(n,u.scrollLeft,u.scrollTop)}function al(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Tf(n,{top:i}),ag(n,i,!0),s&&Tf(n),fl(n,100))}function ag(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 mo(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,hg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function cl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+af(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 yo=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"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}},yo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yo.prototype.zeroWidthHack=function(){var n=I&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},yo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},yo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var ul=function(){};ul.prototype.update=function(){return{bottom:0,right:0}},ul.prototype.setScrollLeft=function(){},ul.prototype.setScrollTop=function(){},ul.prototype.clear=function(){};function ts(n,i){i||(i=cl(n));var a=n.display.barWidth,l=n.display.barHeight;cg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ya(n),cg(n,cl(n)),a=n.display.barWidth,l=n.display.barHeight}function cg(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 ug={native:yo,null:ul};function fg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&N(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ug[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(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"?mo(n,i):al(n,i)},n),n.display.scrollbars.addClass&&we(n.display.wrapper,n.display.scrollbars.addClass)}var V1=0;function bo(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:++V1,markArrays:null},S1(n.curOp)}function wo(n){var i=n.curOp;i&&T1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;G1(a)})}function G1(n){for(var i=n.ops,a=0;a<i.length;a++)K1(i[a]);for(var l=0;l<i.length;l++)X1(i[l]);for(var u=0;u<i.length;u++)Y1(i[u]);for(var g=0;g<i.length;g++)Z1(i[g]);for(var y=0;y<i.length;y++)J1(i[y])}function K1(n){var i=n.cm,a=i.display;e_(i),n.updateMaxLine&&sf(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Qa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function X1(n){n.updatedDisplay=n.mustUpdate&&kf(n.cm,n.update)}function Y1(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ya(i),n.barMeasure=cl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Up(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-ho(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Z1(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&mo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Xe(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ts(i,n.barMeasure),n.updatedDisplay&&Ef(i,n.barMeasure),n.selectionChanged&&bf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&og(n.cm)}function J1(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&dg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ag(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&mo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=q1(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);W1(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Pt(g[x],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Pt(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Pt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Hn(n,i){if(n.curOp)return i();bo(n);try{return i()}finally{wo(n)}}function Yt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);bo(n);try{return i.apply(n,arguments)}finally{wo(n)}}}function hn(n){return function(){if(this.curOp)return n.apply(this,arguments);bo(this);try{return n.apply(this,arguments)}finally{wo(this)}}}function Zt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);bo(i);try{return n.apply(this,arguments)}finally{wo(i)}}}function fl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,W(Q1,n))}function Q1(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=el(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?Dr(i.mode,l.state):null,_=bp(n,g,l,!0);x&&(l.state=x),g.styles=_.styles;var k=g.styleClasses,D=_.classes;D?g.styleClasses=D:k&&(g.styleClasses=null);for(var j=!y||y.length!=g.styles.length||k!=D&&(!k||!D||k.bgClass!=D.bgClass||k.textClass!=D.textClass),te=0;!j&&te<y.length;++te)j=y[te]!=g.styles[te];j&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Qu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return fl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Hn(n,function(){for(var g=0;g<u.length;g++)$i(n,u[g],"text")})}}var Qa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Za(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=ho(n),this.force=a,this.dims=gf(n),this.events=[]};Qa.prototype.signal=function(n,i){Fn(n,i)&&this.events.push(arguments)},Qa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Pt.apply(null,this.events[n])};function e_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Hr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Hr(n)+"px",i.scrollbarsClipped=!0)}function t_(n){if(n.hasFocus())return null;var i=ve(Xe(n));if(!i||!oe(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=ne(n).getSelection();l.anchorNode&&l.extend&&oe(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function n_(n){if(!(!n||!n.activeElt||n.activeElt==ve(Ye(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&oe(document.body,n.anchorNode)&&oe(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function kf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ni(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&rg(n)==0)return!1;pg(n)&&(Ni(n),i.dims=gf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),ni&&(g=rf(n.doc,g),y=Op(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;H1(n,g,y),a.viewOffset=ri(Re(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=rg(n);if(!x&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=t_(n);return _>4&&(a.lineDiv.style.display="none"),r_(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,n_(k),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,fl(n,400)),a.updateLineNumbers=null,!0}function dg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==ho(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+af(n.display)-cf(n),a.top)}),i.visible=Za(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Za(n.display,n.doc,a));if(!kf(n,i))break;Ya(n);var u=cl(n);sl(n),ts(n,u),Ef(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Tf(n,i){var a=new Qa(n,i);if(kf(n,a)){Ya(n),dg(n,a);var l=cl(n);sl(n),ts(n,l),Ef(n,l),a.finish()}}function r_(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(ce){var ge=ce.nextSibling;return v&&I&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),ge}for(var _=l.view,k=l.viewFrom,D=0;D<_.length;D++){var j=_[D];if(!j.hidden)if(!j.node||j.node.parentNode!=g){var te=M1(n,j,k,a);g.insertBefore(te,y)}else{for(;y!=j.node;)y=x(y);var Z=u&&i!=null&&i<=k&&j.lineNumber;j.changes&&(pe(j.changes,"gutter")>-1&&(Z=!1),Dp(n,j,k,a)),Z&&(O(j.lineNumber),j.lineNumber.appendChild(document.createTextNode(xe(n.options,k)))),y=j.node.nextSibling}k+=j.size}for(;y;)y=x(y)}function Cf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Xt(n,"gutterChanged",n)}function Ef(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 hg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=vf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var _=0;_<x.length;_++)x[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function pg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=xe(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Cf(n.display),!0}return!1}function Af(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function gg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Cf(n)}function dl(n){gg(n.display),Sn(n),hg(n)}function i_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=H("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=H("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=H("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&T)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Af(l.gutters,l.lineNumbers),gg(u),a.init(u)}var ec=0,oi=null;h?oi=-.53:s?oi=15:b?oi=-.7:M&&(oi=-1/3);function vg(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 o_(n){var i=vg(n);return i.x*=oi,i.y*=oi,i}function mg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=vg(i),l=a.x,u=a.y,g=oi;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,_=x.scrollWidth>x.clientWidth,k=x.scrollHeight>x.clientHeight;if(l&&_||u&&k){if(u&&I&&v){e:for(var D=i.target,j=y.view;D!=x;D=D.parentNode)for(var te=0;te<j.length;te++)if(j[te].node==D){n.display.currentWheelTarget=D;break e}}if(l&&!s&&!L&&g!=null){u&&k&&al(n,Math.max(0,x.scrollTop+u*g)),mo(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&k)&&ln(i),y.wheelStartX=null;return}if(u&&g!=null){var Z=u*g,ce=n.doc.scrollTop,ge=ce+y.wrapper.clientHeight;Z<0?ce=Math.max(0,ce+Z-50):ge=Math.min(n.doc.height,ge+Z+50),Tf(n,{top:ce,bottom:ge})}ec<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var _e=x.scrollLeft-y.wheelStartX,ke=x.scrollTop-y.wheelStartY,Me=ke&&y.wheelDY&&ke/y.wheelDY||_e&&y.wheelDX&&_e/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Me&&(oi=(oi*ec+Me)/(ec+1),++ec)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Zn=function(n,i){this.ranges=n,this.primIndex=i};Zn.prototype.primary=function(){return this.ranges[this.primIndex]},Zn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!gt(a.anchor,l.anchor)||!gt(a.head,l.head))return!1}return!0},Zn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new vt(Kt(this.ranges[i].anchor),Kt(this.ranges[i].head));return new Zn(n,this.primIndex)},Zn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Zn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Le(i,l.from())>=0&&Le(n,l.to())<=0)return a}return-1};var vt=function(n,i){this.anchor=n,this.head=i};vt.prototype.from=function(){return Go(this.anchor,this.head)},vt.prototype.to=function(){return _n(this.anchor,this.head)},vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(te,Z){return Le(te.from(),Z.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],_=Le(x.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Go(x.from(),y.from()),D=_n(x.to(),y.to()),j=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new vt(j?D:k,j?k:D))}}return new Zn(i,a)}function Oi(n,i){return new Zn([new vt(n,i||n)],0)}function Pi(n){return n.text?le(n.from.line+n.text.length-1,me(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function yg(n,i){if(Le(n,i.from)<0)return n;if(Le(n,i.to)<=0)return Pi(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+=Pi(i).ch-i.to.ch),le(a,l)}function Lf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new vt(yg(u.anchor,i),yg(u.head,i)))}return xr(n.cm,a,n.sel.primIndex)}function bg(n,i,a){return n.line==i.line?le(a.line,n.ch-i.ch+a.ch):le(a.line+(n.line-i.line),n.ch)}function s_(n,i,a){for(var l=[],u=le(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],_=bg(x.from,u,g),k=bg(Pi(x),u,g);if(u=x.to,g=k,a=="around"){var D=n.sel.ranges[y],j=Le(D.head,D.anchor)<0;l[y]=new vt(j?k:_,j?_:k)}else l[y]=new vt(_,_)}return new Zn(l,n.sel.primIndex)}function Mf(n){n.doc.mode=jo(n.options,n.doc.modeOption),hl(n)}function hl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,fl(n,100),n.state.modeGen++,n.curOp&&Sn(n)}function wg(n,i){return i.from.ch==0&&i.to.ch==0&&me(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function $f(n,i,a,l){function u(Me){return a?a[Me]:null}function g(Me,Te,Ne){p1(Me,Te,Ne,l),Xt(Me,"change",Me,i)}function y(Me,Te){for(var Ne=[],He=Me;He<Te;++He)Ne.push(new Ko(k[He],u(He),l));return Ne}var x=i.from,_=i.to,k=i.text,D=Re(n,x.line),j=Re(n,_.line),te=me(k),Z=u(k.length-1),ce=_.line-x.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(wg(n,i)){var ge=y(0,k.length-1);g(j,j.text,Z),ce&&n.remove(x.line,ce),ge.length&&n.insert(x.line,ge)}else if(D==j)if(k.length==1)g(D,D.text.slice(0,x.ch)+te+D.text.slice(_.ch),Z);else{var _e=y(1,k.length-1);_e.push(new Ko(te+D.text.slice(_.ch),Z,l)),g(D,D.text.slice(0,x.ch)+k[0],u(0)),n.insert(x.line+1,_e)}else if(k.length==1)g(D,D.text.slice(0,x.ch)+k[0]+j.text.slice(_.ch),u(0)),n.remove(x.line+1,ce);else{g(D,D.text.slice(0,x.ch)+k[0],u(0)),g(j,te+j.text.slice(_.ch),Z);var ke=y(1,k.length-1);ce>1&&n.remove(x.line+1,ce-1),n.insert(x.line+1,ke)}Xt(n,"change",n,i)}function Ri(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var _=u.linked[x];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function xg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,mf(n),Mf(n),_g(n),n.options.direction=i.direction,n.options.lineWrapping||sf(n),n.options.mode=i.modeOption,Sn(n)}function _g(n){(n.doc.direction=="rtl"?we:N)(n.display.lineDiv,"CodeMirror-rtl")}function l_(n){Hn(n,function(){_g(n),Sn(n)})}function tc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Nf(n,i){var a={from:Kt(i.from),to:Pi(i),text:ti(n,i.from,i.to)};return Tg(n,a,i.from.line,i.to.line+1),Ri(n,function(l){return Tg(l,a,i.from.line,i.to.line+1)},!0),a}function Sg(n){for(;n.length;){var i=me(n);if(i.ranges)n.pop();else break}}function a_(n,i){if(i)return Sg(n.done),me(n.done);if(n.done.length&&!me(n.done).ranges)return me(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),me(n.done)}function kg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=a_(u,u.lastOp==l)))x=me(y.changes),Le(i.from,i.to)==0&&Le(i.from,x.to)==0?x.to=Pi(i):y.changes.push(Nf(n,i));else{var _=me(u.done);for((!_||!_.ranges)&&nc(n.sel,u.done),y={changes:[Nf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Pt(n,"historyAdded")}function c_(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function u_(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||c_(n,g,me(u.done),i))?u.done[u.done.length-1]=i:nc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Sg(u.undone)}function nc(n,i){var a=me(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Tg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function f_(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function d_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(f_(a[u]));return l}function Cg(n,i){var a=d_(n,i),l=tf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var _=y[x],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ns(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Zn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var _=0;_<y.length;++_){var k=y[_],D=void 0;if(x.push({from:k.from,to:k.to,text:k.text}),i)for(var j in k)(D=j.match(/^spans_(\d+)$/))&&pe(i,Number(D[1]))>-1&&(me(x)[j]=k[j],delete k[j])}}return l}function Of(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Le(i,u)<0;g!=Le(a,u)<0?(u=i,i=a):g!=Le(i,a)<0&&(i=a)}return new vt(u,i)}else return new vt(a||i,i)}function rc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),an(n,new Zn([Of(n.sel.primary(),i,a,u)],0),l)}function Eg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Of(n.sel.ranges[g],i[g],null,u);var y=xr(n.cm,l,n.sel.primIndex);an(n,y,a)}function Pf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,an(n,xr(n.cm,u,n.sel.primIndex),l)}function Ag(n,i,a,l){an(n,Oi(i,a),l)}function h_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new vt(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Pt(n,"beforeSelectionChange",n,l),n.cm&&Pt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?xr(n.cm,l.ranges,l.ranges.length-1):i}function Lg(n,i,a){var l=n.history.done,u=me(l);u&&u.ranges?(l[l.length-1]=i,ic(n,i,a)):an(n,i,a)}function an(n,i,a){ic(n,i,a),u_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function ic(n,i,a){(Fn(n,"beforeSelectionChange")||n.cm&&Fn(n.cm,"beforeSelectionChange"))&&(i=h_(n,i,a));var l=a&&a.bias||(Le(i.primary().head,n.sel.primary().head)<0?-1:1);Mg(n,Ng(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&es(n.cm)}function Mg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,or(n.cm)),Xt(n,"cursorActivity",n))}function $g(n){Mg(n,Ng(n,n.sel,null,!1))}function Ng(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=oc(n,y.anchor,x&&x.anchor,a,l),k=y.head==y.anchor?_:oc(n,y.head,x&&x.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new vt(_,k))}return u?xr(n.cm,u,i.primIndex):i}function rs(n,i,a,l,u){var g=Re(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],_=x.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,D="selectRight"in _?!_.selectRight:_.inclusiveRight;if((x.from==null||(k?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(D?x.to>=i.ch:x.to>i.ch))){if(u&&(Pt(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var j=_.find(l<0?1:-1),te=void 0;if((l<0?D:k)&&(j=Og(n,j,-l,j&&j.line==i.line?g:null)),j&&j.line==i.line&&(te=Le(j,a))&&(l<0?te<0:te>0))return rs(n,j,i,l,u)}var Z=_.find(l<0?-1:1);return(l<0?k:D)&&(Z=Og(n,Z,l,Z.line==i.line?g:null)),Z?rs(n,Z,i,l,u):null}}return i}function oc(n,i,a,l,u){var g=l||1,y=rs(n,i,a,g,u)||!u&&rs(n,i,a,g,!0)||rs(n,i,a,-g,u)||!u&&rs(n,i,a,-g,!0);return y||(n.cantEdit=!0,le(n.first,0))}function Og(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,le(i.line-1)):null:a>0&&i.ch==(l||Re(n,i.line)).text.length?i.line<n.first+n.size-1?le(i.line+1,0):null:new le(i.line,i.ch+a)}function Pg(n){n.setSelection(le(n.firstLine(),0),le(n.lastLine()),Y)}function Rg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,x){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Pt(n,"beforeChange",n,l),n.cm&&Pt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function is(n,i,a){if(n.cm){if(!n.cm.curOp)return Yt(n.cm,is)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Fn(n,"beforeChange")||n.cm&&Fn(n.cm,"beforeChange"))&&(i=Rg(n,i,!0),!i))){var l=Cp&&!a&&u1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)zg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else zg(n,i)}}function zg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Le(i.from,i.to)==0)){var a=Lf(n,i);kg(n,i,a,n.cm?n.cm.curOp.id:NaN),pl(n,i,a,tf(n,i));var l=[];Ri(n,function(u,g){!g&&pe(l,u.history)==-1&&(Hg(u.history,i),l.push(u.history)),pl(u,i,null,tf(u,i))})}}function sc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<x.length&&(g=x[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(nc(g,_),a&&!g.equals(n.sel)){an(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var D=[];nc(y,_),_.push({changes:D,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var j=Fn(n,"beforeChange")||n.cm&&Fn(n.cm,"beforeChange"),te=function(ge){var _e=g.changes[ge];if(_e.origin=i,j&&!Rg(n,_e,!1))return x.length=0,{};D.push(Nf(n,_e));var ke=ge?Lf(n,_e):me(x);pl(n,_e,ke,Cg(n,_e)),!ge&&n.cm&&n.cm.scrollIntoView({from:_e.from,to:Pi(_e)});var Me=[];Ri(n,function(Te,Ne){!Ne&&pe(Me,Te.history)==-1&&(Hg(Te.history,_e),Me.push(Te.history)),pl(Te,_e,null,Cg(Te,_e))})},Z=g.changes.length-1;Z>=0;--Z){var ce=te(Z);if(ce)return ce.v}}}}function Ig(n,i){if(i!=0&&(n.first+=i,n.sel=new Zn(be(n.sel.ranges,function(u){return new vt(le(u.anchor.line+i,u.anchor.ch),le(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){Sn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)$i(n.cm,l,"gutter")}}function pl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Yt(n.cm,pl)(n,i,a,l);if(i.to.line<n.first){Ig(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Ig(n,u),i={from:le(n.first,0),to:le(i.to.line+u,i.to.ch),text:[me(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:le(g,Re(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ti(n,i.from,i.to),a||(a=Lf(n,i)),n.cm?p_(n.cm,i,l):$f(n,i,l),ic(n,a,Y),n.cantEdit&&oc(n,le(n.firstLine(),0))&&(n.cantEdit=!1)}}function p_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,_=g.line;n.options.lineWrapping||(_=C(br(Re(l,g.line))),l.iter(_,y.line+1,function(Z){if(Z==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&or(n),$f(l,i,a,ng(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(Z){var ce=qa(Z);ce>u.maxLineLength&&(u.maxLine=Z,u.maxLineLength=ce,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),r1(l,g.line),fl(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?Sn(n):g.line==y.line&&i.text.length==1&&!wg(n.doc,i)?$i(n,g.line,"text"):Sn(n,g.line,y.line+1,k);var D=Fn(n,"changes"),j=Fn(n,"change");if(j||D){var te={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};j&&Xt(n,"change",n,te),D&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(te)}n.display.selForContextMenu=null}function os(n,i,a,l,u){var g;l||(l=a),Le(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),is(n,{from:a,to:l,text:i,origin:u})}function Dg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Fg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)Dg(g.ranges[x].anchor,i,a,l),Dg(g.ranges[x].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=le(k.from.line+l,k.from.ch),k.to=le(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Hg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Fg(n.done,a,l,u),Fg(n.undone,a,l,u)}function gl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Re(n,mp(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&$i(n.cm,u,a),g)}function vl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}vl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,g1(u),Xt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function ml(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ml.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof vl))){var x=[];this.collapse(x),this.children=[new vl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var _=new vl(u.lines.slice(x,x+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ml(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ml(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var yl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};yl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=il(this);Yn(a,Math.max(0,a.height-g)),n&&(Hn(n,function(){Bg(n,a,-g),$i(n,l,"widget")}),Xt(n,"lineWidgetCleared",n,this,l))}},yl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=il(this)-i;u&&(Mi(this.doc,l)||Yn(l,l.height+u),a&&Hn(a,function(){a.curOp.forceUpdate=!0,Bg(a,l,u),Xt(a,"lineWidgetChanged",a,n,C(l))}))},pr(yl);function Bg(n,i,a){ri(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Sf(n,a)}function g_(n,i,a,l){var u=new yl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),gl(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Mi(n,y)){var _=ri(y)<n.scrollTop;Yn(y,y.height+il(u)),_&&Sf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Xt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var Wg=0,zi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Wg};zi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&bo(n),Fn(this,"clear")){var a=this.find();a&&Xt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=tl(y.markedSpans,this);n&&!this.collapsed?$i(n,C(y),"text"):n&&(x.to!=null&&(u=C(y)),x.from!=null&&(l=C(y))),y.markedSpans=s1(y.markedSpans,x),x.from==null&&this.collapsed&&!Mi(this.doc,y)&&n&&Yn(y,Zo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=br(this.lines[_]),D=qa(k);D>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=D,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&Sn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&$g(n.doc)),n&&Xt(n,"markerCleared",n,this,l,u),i&&wo(n),this.parent&&this.parent.clear()}},zi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=tl(g.markedSpans,this);if(y.from!=null&&(a=le(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=le(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},zi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Hn(l,function(){var u=i.line,g=C(i.line),y=uf(l,g);if(y&&(Kp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Mi(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var _=il(a)-x;_&&Yn(u,u.height+_)}Xt(l,"markerChanged",l,n)})},zi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},zi.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(zi);function ss(n,i,a,l,u){if(l&&l.shared)return v_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Yt(n.cm,ss)(n,i,a,l,u);var g=new zi(n,u),y=Le(i,a);if(l&&Q(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=H("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Np(n,i.line,i,a,g)||i.line!=a.line&&Np(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");o1()}g.addToHistory&&kg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,_=n.cm,k;if(n.iter(x,a.line+1,function(j){_&&g.collapsed&&!_.options.lineWrapping&&br(j)==_.display.maxLine&&(k=!0),g.collapsed&&x!=i.line&&Yn(j,0),l1(j,new Fa(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(j){Mi(n,j)&&Yn(j,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(i1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Wg,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)Sn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var D=i.line;D<=a.line;D++)$i(_,D,"text");g.atomic&&$g(_.doc),Xt(_,"markerAdded",_,g)}return g}var bl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};bl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Xt(this,"clear")}},bl.prototype.find=function(n,i){return this.primary.find(n,i)},pr(bl);function v_(n,i,a,l,u){l=Q(l),l.shared=!1;var g=[ss(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Ri(n,function(_){x&&(l.widgetNode=x.cloneNode(!0)),g.push(ss(_,Ke(_,i),Ke(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=me(g)}),new bl(g,y)}function qg(n){return n.findMarks(le(n.first,0),n.clipPos(le(n.lastLine())),function(i){return i.parent})}function m_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Le(g,y)){var x=ss(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function y_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Ri(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];pe(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var b_=0,kn=function(n,i,a,l,u){if(!(this instanceof kn))return new kn(n,i,a,l,u);a==null&&(a=0),ml.call(this,[new vl([new Ko("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=le(a,0);this.sel=Oi(g),this.history=new tc(null),this.id=++b_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),$f(this,{from:g,to:g,text:n}),an(this,Oi(g),Y)};kn.prototype=De(ml.prototype,{constructor:kn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=Qs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Zt(function(n){var i=le(this.first,0),a=this.first+this.size-1;is(this,{from:i,to:le(a,Re(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&ll(this.cm,0,0),an(this,Oi(i),Y)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,os(this,n,i,a,l)},getRange:function(n,i,a){var l=ti(this,Ke(this,n),Ke(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(de(this,n))return Re(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Re(this,n)),br(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zt(function(n,i,a){Ag(this,Ke(this,typeof n=="number"?le(n,i||0):n),null,a)}),setSelection:Zt(function(n,i,a){Ag(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Zt(function(n,i,a){rc(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Zt(function(n,i){Eg(this,yp(this,n),i)}),extendSelectionsBy:Zt(function(n,i){var a=be(this.sel.ranges,n);Eg(this,yp(this,a),i)}),setSelections:Zt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new vt(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),an(this,xr(this.cm,l,i),a)}}),addSelection:Zt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new vt(Ke(this,n),Ke(this,i||n))),an(this,xr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ti(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=ti(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Zt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&s_(this,l,i),_=l.length-1;_>=0;_--)is(this,l[_]);x?Lg(this,x):this.cm&&es(this.cm)}),undo:Zt(function(){sc(this,"undo")}),redo:Zt(function(){sc(this,"redo")}),undoSelection:Zt(function(){sc(this,"undo",!0)}),redoSelection:Zt(function(){sc(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.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new tc(this.history),Ri(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ns(this.history.done),undone:ns(this.history.undone)}},setHistory:function(n){var i=this.history=new tc(this.history);i.done=ns(n.done.slice(0),null,!0),i.undone=ns(n.undone.slice(0),null,!0)},setGutterMarker:Zt(function(n,i,a){return gl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ft(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Zt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&gl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ft(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!de(this,n)||(i=n,n=Re(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Zt(function(n,i,a){return gl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(K(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Zt(function(n,i,a){return gl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(K(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Zt(function(n,i,a){return g_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return ss(this,Ke(this,n),Ke(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ke(this,n),ss(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Re(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var _=y[x];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,le(a,i))},indexFromPos:function(n){n=Ke(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new kn(Qs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new kn(Qs(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],m_(l,qg(this)),l},unlinkDoc:function(n){if(n instanceof Et&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),y_(qg(this));break}}if(n.history==this.history){var l=[n.id];Ri(n,function(u){return l.push(u.id)},!0),n.history=new tc(null),n.history.done=ns(this.history.done,l),n.history.undone=ns(this.history.undone,l)}},iterLinkedDocs:function(n){Ri(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):sr(n)},lineSeparator:function(){return this.lineSep||`
31
+ `},setDirection:Zt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&l_(this.cm))})}),kn.prototype.eachLine=kn.prototype.iter;var jg=0;function w_(n){var i=this;if(Ug(i),!(Rt(i,n)||ii(i.display,n))){ln(n),h&&(jg=+new Date);var a=go(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Yt(i,function(){a=Ke(i.doc,a);var Z={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};is(i.doc,Z),Lg(i.doc,Oi(Ke(i.doc,a),Ke(i.doc,Pi(Z))))})()},_=function(Z,ce){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,Z.type)==-1){x();return}var ge=new FileReader;ge.onerror=function(){return x()},ge.onload=function(){var _e=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_e)){x();return}g[ce]=_e,x()},ge.readAsText(Z)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var D=n.dataTransfer.getData("Text");if(D){var j;if(i.state.draggingText&&!i.state.draggingText.copy&&(j=i.listSelections()),ic(i.doc,Oi(a,a)),j)for(var te=0;te<j.length;++te)os(i.doc,"",j[te].anchor,j[te].head,"drag");i.replaceSelection(D,"around","paste"),i.display.input.focus()}}catch{}}}}function x_(n,i){if(h&&(!n.state.draggingText||+new Date-jg<100)){Ci(i);return}if(!(Rt(n,i)||ii(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!M)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",L&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),L&&a.parentNode.removeChild(a)}}function __(n,i){var a=go(n,i);if(a){var l=document.createDocumentFragment();yf(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),P(n.display.dragCursor,l)}}function Ug(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Vg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var Gg=!1;function S_(){Gg||(k_(),Gg=!0)}function k_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Vg(T_)},100))}),Fe(window,"blur",function(){return Vg(Qo)})}function T_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ii={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},wl=0;wl<10;wl++)Ii[wl+48]=Ii[wl+96]=String(wl);for(var lc=65;lc<=90;lc++)Ii[lc]=String.fromCharCode(lc);for(var xl=1;xl<=12;xl++)Ii[xl+111]=Ii[xl+63235]="F"+xl;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=I?si.macDefault:si.pcDefault;function C_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function E_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=be(a.split(" "),C_),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var _=i[x];if(!_)i[x]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var k in i)n[k]=i[k];return n}function ls(n,i,a,l){i=ac(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ls(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ls(n,i.fallthrough[g],a,l);if(y)return y}}}function Kg(n){var i=typeof n=="string"?n:Ii[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Xg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(J?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(J?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Yg(n,i){if(L&&n.keyCode==34&&n.char)return!1;var a=Ii[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Xg(a,n,i))}function ac(n){return typeof n=="string"?si[n]:n}function as(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Le(g.from,me(l).to)<=0;){var y=l.pop();if(Le(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Hn(n,function(){for(var x=l.length-1;x>=0;x--)os(n.doc,"",l[x].from,l[x].to,"+delete");es(n)})}function Rf(n,i,a){var l=Gt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function zf(n,i,a){var l=Rf(n,i.ch,a);return l==null?null:new le(i.line,l,a<0?"after":"before")}function If(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?me(g):g[0],x=u<0==(y.level==1),_=x?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var D=Yo(i,a);k=u<0?a.text.length-1:0;var j=Br(i,D,k).top;k=Bt(function(te){return Br(i,D,te).top==j},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=Rf(a,k,1))}else k=u<0?y.to:y.from;return new le(l,k,_)}}return new le(l,u<0?a.text.length:0,u<0?"before":"after")}function A_(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return zf(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 g=Ft(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return zf(i,a,l);var x=function(ke,Me){return Rf(i,ke instanceof le?ke.ch:ke,Me)},_,k=function(ke){return n.options.lineWrapping?(_=_||Yo(n,i),tg(n,i,_,ke)):{begin:0,end:i.text.length}},D=k(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var j=y.level==1==l<0,te=x(a,j?1:-1);if(te!=null&&(j?te<=y.to&&te<=D.end:te>=y.from&&te>=D.begin)){var Z=j?"before":"after";return new le(a.line,te,Z)}}var ce=function(ke,Me,Te){for(var Ne=function(_t,Jt){return Jt?new le(a.line,x(_t,1),"before"):new le(a.line,_t,"after")};ke>=0&&ke<u.length;ke+=Me){var He=u[ke],Ie=Me>0==(He.level!=1),et=Ie?Te.begin:x(Te.end,-1);if(He.from<=et&&et<He.to||(et=Ie?He.from:x(He.to,-1),Te.begin<=et&&et<Te.end))return Ne(et,Ie)}},ge=ce(g+l,l,D);if(ge)return ge;var _e=l>0?D.end:x(D.begin,-1);return _e!=null&&!(l>0&&_e==i.text.length)&&(ge=ce(l>0?0:u.length-1,l,k(_e)),ge)?ge:null}var _l={selectAll:Pg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Y)},killLine:function(n){return as(n,function(i){if(i.empty()){var a=Re(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:le(i.head.line+1,0)}:{from:i.head,to:le(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return as(n,function(i){return{from:le(i.from().line,0),to:Ke(n.doc,le(i.to().line+1,0))}})},delLineLeft:function(n){return as(n,function(i){return{from:le(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return as(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return as(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(le(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(le(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Zg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Jg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return L_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Jg(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=X(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Hn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Re(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new le(u.line,u.ch-1)),u.ch>0)u=new le(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),le(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Re(n.doc,u.line-1).text;y&&(u=new le(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),le(u.line-1,y.length-1),u,"+transpose"))}}a.push(new vt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Hn(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;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);es(n)})},openLine:function(n){return n.replaceSelection(`
32
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Zg(n,i){var a=Re(n.doc,i),l=br(a);return l!=a&&(i=C(l)),If(!0,n,l,i,1)}function L_(n,i){var a=Re(n.doc,i),l=d1(a);return l!=a&&(i=C(l)),If(!0,n,a,i,-1)}function Jg(n,i){var a=Zg(n,i.line),l=Re(n.doc,a.line),u=tt(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return le(a.line,y?0:g,a.sticky)}return a}function cc(n,i,a){if(typeof i=="string"&&(i=_l[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=U}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function M_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ls(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ls(i,n.options.extraKeys,a,n)||ls(i,n.options.keyMap,a,n)}var $_=new ae;function Sl(n,i,a,l){var u=n.state.keySeq;if(u){if(Kg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:$_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Qg(n,u+" "+i,a,l))return!0}return Qg(n,i,a,l)}function Qg(n,i,a,l){var u=M_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Xt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(ln(a),bf(n)),!!u}function ev(n,i){var a=Yg(i,!0);return a?i.shiftKey&&!n.state.keySeq?Sl(n,"Shift-"+a,i,function(l){return cc(n,l,!0)})||Sl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return cc(n,l)}):Sl(n,a,i,function(l){return cc(n,l)}):!1}function N_(n,i,a){return Sl(n,"'"+a+"'",i,function(l){return cc(n,l,!0)})}var Df=null;function tv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Xe(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=ev(i,n);L&&(Df=l?a:null,!l&&a==88&&!Ia&&(I?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!I&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&O_(i)}}function O_(n){var i=n.display.lineDiv;we(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(N(i,"CodeMirror-crosshair"),sn(document,"keyup",a),sn(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function nv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function rv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ii(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||I&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(L&&a==Df){Df=null,ln(n);return}if(!(L&&(!n.which||n.which<10)&&ev(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(N_(i,n,u)||i.display.input.onKeyPress(n))}}}var P_=400,Ff=function(n,i,a){this.time=n,this.pos=i,this.button=a};Ff.prototype.compare=function(n,i,a){return this.time+P_>n&&Le(i,this.pos)==0&&a==this.button};var kl,Tl;function R_(n,i){var a=+new Date;return Tl&&Tl.compare(a,n,i)?(kl=Tl=null,"triple"):kl&&kl.compare(a,n,i)?(Tl=new Ff(a,n,i),kl=null,"double"):(kl=new Ff(a,n,i),Tl=null,"single")}function iv(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ii(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Hf(i,n)){var l=go(i,n),u=gr(n),g=l?R_(l,u):"single";ne(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&z_(i,u,l,g,n))&&(u==1?l?D_(i,l,g,n):Ys(n)==a.scroller&&ln(n):u==2?(l&&rc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):wf(i)))}}}function z_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,Sl(n,Xg(g,u),u,function(y){if(typeof y=="string"&&(y=_l[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=U}finally{n.state.suppressEdits=!1}return x})}function I_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=F?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=I?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(I?a.altKey:a.ctrlKey)),u}function D_(n,i,a,l){h?setTimeout(W(og,n),0):n.curOp.focus=ve(Xe(n));var u=I_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Zu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Le((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Le(y.to(),i)>0||i.xRel<0)?F_(n,l,i,u):H_(n,l,i,u)}function F_(n,i,a,l){var u=n.display,g=!1,y=Yt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:wf(n)),sn(u.wrapper.ownerDocument,"mouseup",y),sn(u.wrapper.ownerDocument,"mousemove",x),sn(u.scroller,"dragstart",_),sn(u.scroller,"drop",y),g||(ln(k),l.addNew||rc(n.doc,a,null,null,l.extend),v&&!M||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",y),Fe(u.wrapper.ownerDocument,"mousemove",x),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function ov(n,i,a){if(a=="char")return new vt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new vt(le(i.line,0),Ke(n.doc,le(i.line+1,0)));var l=a(n,i);return new vt(l.from,l.to)}function H_(n,i,a,l){h&&wf(n);var u=n.display,g=n.doc;ln(i);var y,x,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=k[x]:y=new vt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new vt(a,a)),a=go(n,i,!0,!0),x=-1;else{var D=ov(n,a,l.unit);l.extend?y=Of(y,D.anchor,D.head,l.extend):y=D}l.addNew?x==-1?(x=k.length,an(g,xr(n,k.concat([y]),x),{scroll:!1,origin:"*mouse"})):k.length>1&&k[x].empty()&&l.unit=="char"&&!l.extend?(an(g,xr(n,k.slice(0,x).concat(k.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Pf(g,x,y,ue):(x=0,an(g,new Zn([y],0),ue),_=g.sel);var j=a;function te(Te){if(Le(j,Te)!=0)if(j=Te,l.unit=="rectangle"){for(var Ne=[],He=n.options.tabSize,Ie=X(Re(g,a.line).text,a.ch,He),et=X(Re(g,Te.line).text,Te.ch,He),_t=Math.min(Ie,et),Jt=Math.max(Ie,et),Nt=Math.min(a.line,Te.line),Bn=Math.min(n.lastLine(),Math.max(a.line,Te.line));Nt<=Bn;Nt++){var Tn=Re(g,Nt).text,Wt=fe(Tn,_t,He);_t==Jt?Ne.push(new vt(le(Nt,Wt),le(Nt,Wt))):Tn.length>Wt&&Ne.push(new vt(le(Nt,Wt),le(Nt,fe(Tn,Jt,He))))}Ne.length||Ne.push(new vt(a,a)),an(g,xr(n,_.ranges.slice(0,x).concat(Ne),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var Cn=y,rn=ov(n,Te,l.unit),Ut=Cn.anchor,qt;Le(rn.anchor,Ut)>0?(qt=rn.head,Ut=Go(Cn.from(),rn.anchor)):(qt=rn.anchor,Ut=_n(Cn.to(),rn.head));var It=_.ranges.slice(0);It[x]=B_(n,new vt(Ke(g,Ut),qt)),an(g,xr(n,It,x),ue)}}var Z=u.wrapper.getBoundingClientRect(),ce=0;function ge(Te){var Ne=++ce,He=go(n,Te,!0,l.unit=="rectangle");if(He)if(Le(He,j)!=0){n.curOp.focus=ve(Xe(n)),te(He);var Ie=Za(u,g);(He.line>=Ie.to||He.line<Ie.from)&&setTimeout(Yt(n,function(){ce==Ne&&ge(Te)}),150)}else{var et=Te.clientY<Z.top?-20:Te.clientY>Z.bottom?20:0;et&&setTimeout(Yt(n,function(){ce==Ne&&(u.scroller.scrollTop+=et,ge(Te))}),50)}}function _e(Te){n.state.selectingText=!1,ce=1/0,Te&&(ln(Te),u.input.focus()),sn(u.wrapper.ownerDocument,"mousemove",ke),sn(u.wrapper.ownerDocument,"mouseup",Me),g.history.lastSelOrigin=null}var ke=Yt(n,function(Te){Te.buttons===0||!gr(Te)?_e(Te):ge(Te)}),Me=Yt(n,_e);n.state.selectingText=Me,Fe(u.wrapper.ownerDocument,"mousemove",ke),Fe(u.wrapper.ownerDocument,"mouseup",Me)}function B_(n,i){var a=i.anchor,l=i.head,u=Re(n.doc,a.line);if(Le(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=Ft(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var _=y+(x.from==a.ch==(x.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var D=Ft(g,l.ch,l.sticky),j=D-y||(l.ch-a.ch)*(x.level==1?-1:1);D==_-1||D==_?k=j<0:k=j>0}var te=g[_+(k?-1:0)],Z=k==(te.level==1),ce=Z?te.from:te.to,ge=Z?"after":"before";return a.ch==ce&&a.sticky==ge?i:new vt(new le(a.line,ce,ge),l)}function sv(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&ln(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Fn(n,a))return xn(i);g-=x.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var D=q(n.doc,g),j=n.display.gutterSpecs[_];return Pt(n,a,n,D,j.className,i),xn(i)}}}function Hf(n,i){return sv(n,i,"gutterClick",!0)}function lv(n,i){ii(n.display,i)||W_(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function W_(n,i){return Fn(n,"gutterContextMenu")?sv(n,i,"gutterContextMenu",!1):!1}function av(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ol(n)}var cs={toString:function(){return"CodeMirror.Init"}},cv={},uc={};function q_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,_,k){k!=cs&&g(x,_,k)}:g)}n.defineOption=a,n.Init=cs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Mf(l)},!0),a("indentUnit",2,Mf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){hl(l),ol(l),Sn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var D=_.text.indexOf(u,k);if(D==-1)break;k=D+u.length,g.push(le(y,D))}y++});for(var x=g.length-1;x>=0;x--)os(l.doc,u,g[x],le(g[x].line,g[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=cs&&l.refresh()}),a("specialCharPlaceholder",y1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!re),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){av(l),dl(l)},!0),a("keyMap","default",function(l,u,g){var y=ac(u),x=g!=cs&&ac(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,U_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Af(u,l.options.lineNumbers),dl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?vf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ts(l)},!0),a("scrollbarStyle","native",function(l){fg(l),ts(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Af(l.options.gutters,u),dl(l)},!0),a("firstLineNumber",1,dl,!0),a("lineNumberFormatter",function(l){return l},dl,!0),a("showCursorWhenSelecting",!1,sl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Qo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,j_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,sl,!0),a("singleCursorHeightPerLine",!0,sl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,hl,!0),a("addModeClass",!1,hl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,hl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function j_(n,i,a){var l=a&&a!=cs;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:sn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function U_(n){n.options.lineWrapping?(we(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(N(n.display.wrapper,"CodeMirror-wrap"),sf(n)),mf(n),Sn(n),ol(n),setTimeout(function(){return ts(n)},100)}function Et(n,i){var a=this;if(!(this instanceof Et))return new Et(n,i);this.options=i=i?Q(i):{},Q(cv,i,!1);var l=i.value;typeof l=="string"?l=new kn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Et.inputStyles[i.inputStyle](this),g=this.display=new i_(n,l,u,i);g.wrapper.CodeMirror=this,av(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),fg(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 ae,keySeq:null,specialChars:null},i.autofocus&&!T&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),V_(this),S_(),bo(this),this.curOp.forceUpdate=!0,xg(this,l),i.autofocus&&!T||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&xf(a)},20):Qo(this);for(var y in uc)uc.hasOwnProperty(y)&&uc[y](this,i[y],cs);pg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<Bf.length;++x)Bf[x](this);wo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Et.defaults=cv,Et.optionHandlers=uc;function V_(n){var i=n.display;Fe(i.scroller,"mousedown",Yt(n,iv)),h&&p<11?Fe(i.scroller,"dblclick",Yt(n,function(_){if(!Rt(n,_)){var k=go(n,_);if(!(!k||Hf(n,_)||ii(n.display,_))){ln(_);var D=n.findWordAt(k);rc(n.doc,D.anchor,D.head)}}})):Fe(i.scroller,"dblclick",function(_){return Rt(n,_)||ln(_)}),Fe(i.scroller,"contextmenu",function(_){return lv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||lv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var D=k.left-_.left,j=k.top-_.top;return D*D+j*j>20*20}Fe(i.scroller,"touchstart",function(_){if(!Rt(n,_)&&!g(_)&&!Hf(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!ii(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var D=n.coordsChar(i.activeTouch,"page"),j;!k.prev||y(k,k.prev)?j=new vt(D,D):!k.prev.prev||y(k,k.prev.prev)?j=n.findWordAt(D):j=new vt(le(D.line,0),Ke(n.doc,le(D.line+1,0))),n.setSelection(j.anchor,j.head),n.focus(),ln(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(al(n,i.scroller.scrollTop),mo(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return mg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return mg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Rt(n,_)||Ci(_)},over:function(_){Rt(n,_)||(__(n,_),Ci(_))},start:function(_){return x_(n,_)},drop:Yt(n,w_),leave:function(_){Rt(n,_)||Ug(n)}};var x=i.input.getField();Fe(x,"keyup",function(_){return nv.call(n,_)}),Fe(x,"keydown",Yt(n,tv)),Fe(x,"keypress",Yt(n,rv)),Fe(x,"focus",function(_){return xf(n,_)}),Fe(x,"blur",function(_){return Qo(n,_)})}var Bf=[];Et.defineInitHook=function(n){return Bf.push(n)};function Cl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=el(n,i).state:a="prev");var y=n.options.tabSize,x=Re(u,i),_=X(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var k=x.text.match(/^\s*/)[0],D;if(!l&&!/\S/.test(x.text))D=0,a="not";else if(a=="smart"&&(D=u.mode.indent(g,x.text.slice(k.length),x.text),D==U||D>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?D=X(Re(u,i-1).text,null,y):D=0:a=="add"?D=_+n.options.indentUnit:a=="subtract"?D=_-n.options.indentUnit:typeof a=="number"&&(D=_+a),D=Math.max(0,D);var j="",te=0;if(n.options.indentWithTabs)for(var Z=Math.floor(D/y);Z;--Z)te+=y,j+=" ";if(te<D&&(j+=Ee(D-te)),j!=k)return os(u,j,le(i,0),le(i,k.length),"+input"),x.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var ge=u.sel.ranges[ce];if(ge.head.line==i&&ge.head.ch<k.length){var _e=le(i,k.length);Pf(u,ce,new vt(_e,_e));break}}}var _r=null;function fc(n){_r=n}function Wf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,_=sr(i),k=null;if(x&&l.ranges.length>1)if(_r&&_r.text.join(`
33
+ `)==i){if(l.ranges.length%_r.text.length==0){k=[];for(var D=0;D<_r.text.length;D++)k.push(g.splitLines(_r.text[D]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=be(_,function(ke){return[ke]}));for(var j=n.curOp.updateInput,te=l.ranges.length-1;te>=0;te--){var Z=l.ranges[te],ce=Z.from(),ge=Z.to();Z.empty()&&(a&&a>0?ce=le(ce.line,ce.ch-a):n.state.overwrite&&!x?ge=le(ge.line,Math.min(Re(g,ge.line).text.length,ge.ch+me(_).length)):x&&_r&&_r.lineWise&&_r.text.join(`
34
+ `)==_.join(`
35
+ `)&&(ce=ge=le(ce.line,0)));var _e={from:ce,to:ge,text:k?k[te%k.length]:_,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};is(n.doc,_e),Xt(n,"inputRead",n,_e)}i&&!x&&fv(n,i),es(n),n.curOp.updateInput<2&&(n.curOp.updateInput=j),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function uv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Hn(i,function(){return Wf(i,a,0,null,"paste")}),!0}function fv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=Cl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Re(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Cl(n,u.head.line,"smart"));y&&Xt(n,"electricInput",n,u.head.line)}}}function dv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:le(u,0),head:le(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function qf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function hv(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),$&&(n.style.border="1px solid black"),i}function G_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){ne(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Yt(this,i[l])(this,u,y),Pt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](ac(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:hn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,Sn(this)}),removeOverlay:hn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,Sn(this);return}}}),indentLine:hn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),de(this.doc,l)&&Cl(this,l,u,g)}),indentSelection:hn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(Cl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&es(this));else{var _=x.from(),k=x.to(),D=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var j=D;j<g;++j)Cl(this,j,l);var te=this.doc.sel.ranges;_.ch==0&&u.length==te.length&&te[y].from().ch>0&&Pf(this.doc,y,new vt(_,te[y].to()),Y)}}}),getTokenAt:function(l,u){return Sp(this,l,u)},getLineTokens:function(l,u){return Sp(this,le(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=wp(this,Re(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,_;if(x==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=x)y=k;else if(u[k*2+1]<x)g=k+1;else{_=u[k*2+2];break}}var D=_?_.indexOf("overlay "):-1;return D<0?_:D==0?null:_.slice(0,D-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var _=0;_<x[u].length;_++){var k=y[x[u][_]];k&&g.push(k)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var D=0;D<y._global.length;D++){var j=y._global[D];j.pred(x,this)&&pe(g,j.val)==-1&&g.push(j.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=mp(g,l??g.first+g.size-1),el(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ke(this.doc,l):g=l?y.from():y.to(),wr(this,g,u||"page")},charCoords:function(l,u){return Ga(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Jp(this,l,u||"page"),hf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Jp(this,{top:l,left:0},u||"page").top,q(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),x=Re(this.doc,l)}else x=l;return Va(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ri(x):0)},defaultTextHeight:function(){return Zo(this.display)},defaultCharWidth:function(){return Jo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var _=this.display;l=wr(this,Ke(this.doc,l));var k=l.bottom,D=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var j=Math.max(_.wrapper.clientHeight,this.doc.height),te=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>j)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=j&&(k=l.bottom),D+u.offsetWidth>te&&(D=te-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",x=="right"?(D=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?D=0:x=="middle"&&(D=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=D+"px"),g&&j1(this,{left:D,top:k,right:D+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:hn(tv),triggerOnKeyPress:hn(rv),triggerOnKeyUp:nv,triggerOnMouseDown:hn(iv),execCommand:function(l){if(_l.hasOwnProperty(l))return _l[l].call(null,this)},triggerElectric:hn(function(l){fv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var _=Ke(this.doc,l),k=0;k<u&&(_=jf(this.doc,_,x,g,y),!_.hitSide);++k);return _},moveH:hn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?jf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:hn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):as(this,function(x){var _=jf(y,x.head,l,u,!1);return l<0?{from:_,to:x.head}:{from:x.head,to:_}})}),findPosV:function(l,u,g,y){var x=1,_=y;u<0&&(x=-1,u=-u);for(var k=Ke(this.doc,l),D=0;D<u;++D){var j=wr(this,k,"div");if(_==null?_=j.left:j.left=_,k=pv(this,j,x,g),k.hitSide)break}return k},moveV:hn(function(l,u){var g=this,y=this.doc,x=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(D){if(_)return l<0?D.from():D.to();var j=wr(g,D.head,"div");D.goalColumn!=null&&(j.left=D.goalColumn),x.push(j.left);var te=pv(g,j,l,u);return u=="page"&&D==y.sel.primary()&&Sf(g,Ga(g,te,"div").top-j.top),te},he),x.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=x[k]}),findWordAt:function(l){var u=this.doc,g=Re(u,l.line).text,y=l.ch,x=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var k=g.charAt(y),D=lt(k,_)?function(j){return lt(j,_)}:/\s/.test(k)?function(j){return/\s/.test(j)}:function(j){return!/\s/.test(j)&&!lt(j)};y>0&&D(g.charAt(y-1));)--y;for(;x<g.length&&D(g.charAt(x));)++x}return new vt(le(l.line,y),le(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):N(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:hn(function(l,u){ll(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Hr(this)-this.display.barHeight,width:l.scrollWidth-Hr(this)-this.display.barWidth,clientHeight:cf(this),clientWidth:ho(this)}},scrollIntoView:hn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:le(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?U1(this,l):lg(this,l.from,l.to,l.margin)}),setSize:hn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Xp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){$i(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(l){return Hn(this,l)},startOperation:function(){return bo(this)},endOperation:function(){return wo(this)},refresh:hn(function(){var l=this.display.cachedTextHeight;Sn(this),this.curOp.forceUpdate=!0,ol(this),ll(this,this.doc.scrollLeft,this.doc.scrollTop),Cf(this.display),(l==null||Math.abs(l-Zo(this.display))>.5||this.options.lineWrapping)&&mf(this),Pt(this,"refresh",this)}),swapDoc:hn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),xg(this,l),ol(this),this.display.input.reset(),ll(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Xt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function jf(n,i,a,l,u){var g=i,y=a,x=Re(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Me=i.line+_;return Me<n.first||Me>=n.first+n.size?!1:(i=new le(Me,i.ch,i.sticky),x=Re(n,Me))}function D(Me){var Te;if(l=="codepoint"){var Ne=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ne))Te=null;else{var He=a>0?Ne>=55296&&Ne<56320:Ne>=56320&&Ne<57343;Te=new le(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(He?2:1))),-a)}}else u?Te=A_(n.cm,x,i,a):Te=zf(x,i,a);if(Te==null)if(!Me&&k())i=If(u,n.cm,x,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")D();else if(l=="column")D(!0);else if(l=="word"||l=="group")for(var j=null,te=l=="group",Z=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!D(!ce));ce=!1){var ge=x.text.charAt(i.ch)||`
36
+ `,_e=lt(ge,Z)?"w":te&&ge==`
37
+ `?"n":!te||/\s/.test(ge)?null:"p";if(te&&!ce&&!_e&&(_e="s"),j&&j!=_e){a<0&&(a=1,D(),i.sticky="after");break}if(_e&&(j=_e),a>0&&!D(!ce))break}var ke=oc(n,i,g,y,!0);return gt(g,ke)&&(ke.hitSide=!0),ke}function pv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,ne(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(x-.5*Zo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=hf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var bt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,qf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var _=x.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(x){!g(x)||Rt(l,x)||uv(x,l)||p<=11&&setTimeout(Yt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Fe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Fe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Rt(l,x))){if(l.somethingSelected())fc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=dv(l);fc({lineWise:!0,text:_.text}),x.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,Y),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var k=_r.text.join(`
38
+ `);if(x.clipboardData.setData("Text",k),x.clipboardData.getData("Text")==k){x.preventDefault();return}}var D=hv(),j=D.firstChild;qf(j),l.display.lineSpace.insertBefore(D,l.display.lineSpace.firstChild),j.value=_r.text.join(`
39
+ `);var te=ve(Ye(u));je(j),setTimeout(function(){l.display.lineSpace.removeChild(D),te.focus(),te==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",y),Fe(u,"cut",y)},bt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var n=ig(this.cm,!1);return n.focus=ve(Ye(this.div))==this.div,n},bt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},bt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=dc(i,n.anchorNode,n.anchorOffset),y=dc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Le(Go(g,y),l)==0&&Le(_n(g,y),u)==0)){var x=i.display.view,_=l.line>=i.display.viewFrom&&gv(i,l)||{node:x[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&gv(i,u);if(!k){var D=x[x.length-1].measure,j=D.maps?D.maps[D.maps.length-1]:D.map;k={node:j[j.length-1],offset:j[j.length-2]-j[j.length-3]}}if(!_||!k){n.removeAllRanges();return}var te=n.rangeCount&&n.getRangeAt(0),Z;try{Z=V(_.node,_.offset,k.offset,k.node)}catch{}Z&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),Z.collapsed||(n.removeAllRanges(),n.addRange(Z))):(n.removeAllRanges(),n.addRange(Z)),te&&n.anchorNode==null?n.addRange(te):s&&this.startGracePeriod()),this.rememberSelection()}},bt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},bt.prototype.showMultipleSelections=function(n){P(this.cm.display.cursorDiv,n.cursors),P(this.cm.display.selectionDiv,n.selection)},bt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},bt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return oe(this.div,i)},bt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(Ye(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bt.prototype.blur=function(){this.div.blur()},bt.prototype.getField=function(){return this.div},bt.prototype.supportsTouch=function(){return!0},bt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Hn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},bt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},bt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&b&&this.cm.display.gutterSpecs.length&&K_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=dc(i,n.anchorNode,n.anchorOffset),l=dc(i,n.focusNode,n.focusOffset);a&&l&&Hn(i,function(){an(i.doc,Oi(a,l),Y),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},bt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=le(l.line-1,Re(n.doc,l.line-1).length)),u.ch==Re(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=le(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=vo(n,l.line))==0?(y=C(i.view[0].line),x=i.view[0].node):(y=C(i.view[g].line),x=i.view[g-1].node.nextSibling);var _=vo(n,u.line),k,D;if(_==i.view.length-1?(k=i.viewTo-1,D=i.lineDiv.lastChild):(k=C(i.view[_+1].line)-1,D=i.view[_+1].node.previousSibling),!x)return!1;for(var j=n.doc.splitLines(X_(n,x,D,y,k)),te=ti(n.doc,le(y,0),le(k,Re(n.doc,k).text.length));j.length>1&&te.length>1;)if(me(j)==me(te))j.pop(),te.pop(),k--;else if(j[0]==te[0])j.shift(),te.shift(),y++;else break;for(var Z=0,ce=0,ge=j[0],_e=te[0],ke=Math.min(ge.length,_e.length);Z<ke&&ge.charCodeAt(Z)==_e.charCodeAt(Z);)++Z;for(var Me=me(j),Te=me(te),Ne=Math.min(Me.length-(j.length==1?Z:0),Te.length-(te.length==1?Z:0));ce<Ne&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(j.length==1&&te.length==1&&y==l.line)for(;Z&&Z>l.ch&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)Z--,ce++;j[j.length-1]=Me.slice(0,Me.length-ce).replace(/^\u200b+/,""),j[0]=j[0].slice(Z).replace(/\u200b+$/,"");var He=le(y,Z),Ie=le(k,te.length?me(te).length-ce:0);if(j.length>1||j[0]||Le(He,Ie))return os(n.doc,j,He,Ie,"+input"),!0},bt.prototype.ensurePolled=function(){this.forceCompositionEnd()},bt.prototype.reset=function(){this.forceCompositionEnd()},bt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bt.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))},bt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Hn(this.cm,function(){return Sn(n.cm)})},bt.prototype.setUneditable=function(n){n.contentEditable="false"},bt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Yt(this.cm,Wf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},bt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},bt.prototype.onContextMenu=function(){},bt.prototype.resetPosition=function(){},bt.prototype.needsContentAttribute=!0;function gv(n,i){var a=uf(n,i.line);if(!a||a.hidden)return null;var l=Re(n.doc,i.line),u=jp(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var x=Ft(g,i.ch);y=x%2?"right":"left"}var _=Gp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function K_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function us(n,i){return i&&(n.bad=!0),n}function X_(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),_=!1;function k(Z){return function(ce){return ce.id==Z}}function D(){y&&(g+=x,_&&(g+=x),y=_=!1)}function j(Z){Z&&(D(),g+=Z)}function te(Z){if(Z.nodeType==1){var ce=Z.getAttribute("cm-text");if(ce){j(ce);return}var ge=Z.getAttribute("cm-marker"),_e;if(ge){var ke=n.findMarks(le(l,0),le(u+1,0),k(+ge));ke.length&&(_e=ke[0].find(0))&&j(ti(n.doc,_e.from,_e.to).join(x));return}if(Z.getAttribute("contenteditable")=="false")return;var Me=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;Me&&D();for(var Te=0;Te<Z.childNodes.length;Te++)te(Z.childNodes[Te]);/^(pre|p)$/i.test(Z.nodeName)&&(_=!0),Me&&(y=!0)}else Z.nodeType==3&&j(Z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;te(i),i!=a;)i=i.nextSibling,_=!1;return g}function dc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return us(n.clipPos(le(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return Y_(g,i,a)}}function Y_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!oe(l,i))return us(le(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?me(n.rest):n.line;return us(le(C(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var _=n.measure,k=_.maps;function D(_e,ke,Me){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Ne=Te<0?_.map:k[Te],He=0;He<Ne.length;He+=3){var Ie=Ne[He+2];if(Ie==_e||Ie==ke){var et=C(Te<0?n.line:n.rest[Te]),_t=Ne[He]+Me;return(Me<0||Ie!=_e)&&(_t=Ne[He+(Me?1:0)]),le(et,_t)}}}var j=D(y,x,a);if(j)return us(j,u);for(var te=x.nextSibling,Z=y?y.nodeValue.length-a:0;te;te=te.nextSibling){if(j=D(te,te.firstChild,0),j)return us(le(j.line,j.ch-Z),u);Z+=te.textContent.length}for(var ce=x.previousSibling,ge=a;ce;ce=ce.previousSibling){if(j=D(ce,ce.firstChild,-1),j)return us(le(j.line,j.ch+ge),u);ge+=ce.textContent.length}}var Ht=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ht.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),$&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(y){Rt(l,y)||uv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Rt(l,y)){if(l.somethingSelected())fc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=dv(l);fc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Y):(a.prevInput="",u.value=x.text.join(`
40
+ `),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(y){if(!(ii(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Fe(n.lineSpace,"selectstart",function(y){ii(n,y)||ln(y)}),Fe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ht.prototype.createField=function(n){this.wrapper=hv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;qf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ht.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ht.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=ig(n);if(n.options.moveInputWithCursor){var u=wr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ht.prototype.showSelection=function(n){var i=this.cm,a=i.display;P(a.cursorDiv,n.cursors),P(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ht.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&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ht.prototype.getField=function(){return this.textarea},Ht.prototype.supportsTouch=function(){return!1},Ht.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||ve(Ye(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ht.prototype.blur=function(){this.textarea.blur()},Ht.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ht.prototype.receivedFocus=function(){this.slowPoll()},Ht.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ht.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)},Ht.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ai(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||I&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Hn(i,function(){Wf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
41
+ `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ht.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ht.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ht.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=go(a,n),y=l.scroller.scrollTop;if(!g||L)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Yt(a,an)(a.doc,Oi(g),Y);var _=u.style.cssText,k=i.wrapper.style.cssText,D=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
+ top: `+(n.clientY-D.top-5)+"px; left: "+(n.clientX-D.left-5)+`px;
43
+ z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
44
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var j;v&&(j=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,j),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=Z,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function te(){if(u.selectionStart!=null){var ge=a.somethingSelected(),_e="​"+(ge?u.value:"");u.value="⇚",u.value=_e,i.prevInput=ge?"":"​",u.selectionStart=1,u.selectionEnd=_e.length,l.selForContextMenu=a.doc.sel}}function Z(){if(i.contextMenuPending==Z&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&te();var ge=0,_e=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Yt(a,Pg)(a):ge++<10?l.detectingSelectAll=setTimeout(_e,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(_e,200)}}if(h&&p>=9&&te(),G){Ci(n);var ce=function(){sn(window,"mouseup",ce),setTimeout(Z,20)};Fe(window,"mouseup",ce)}else setTimeout(Z,50)},Ht.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ht.prototype.setUneditable=function(){},Ht.prototype.needsContentAttribute=!1;function Z_(n,i){if(i=i?Q(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=ve(Ye(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(sn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Et(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return x}function J_(n){n.off=sn,n.on=Fe,n.wheelEventPixels=o_,n.Doc=kn,n.splitLines=sr,n.countColumn=X,n.findColumn=fe,n.isWordChar=rt,n.Pass=U,n.signal=Pt,n.Line=Ko,n.changeEnd=Pi,n.scrollbarModel=ug,n.Pos=le,n.cmpPos=Le,n.modes=Wo,n.mimeModes=mr,n.resolveMode=qo,n.getMode=jo,n.modeExtensions=Li,n.extendMode=Uo,n.copyState=Dr,n.startState=Vo,n.innerMode=Js,n.commands=_l,n.keyMap=si,n.keyName=Yg,n.isModifierKey=Kg,n.lookupKey=ls,n.normalizeKeyMap=E_,n.StringStream=zt,n.SharedTextMarker=bl,n.TextMarker=zi,n.LineWidget=yl,n.e_preventDefault=ln,n.e_stopPropagation=Ho,n.e_stop=Ci,n.addClass=we,n.contains=oe,n.rmClass=N,n.keyNames=Ii}q_(Et),G_(Et);var Q_="iter insert remove copy getEditor constructor".split(" ");for(var hc in kn.prototype)kn.prototype.hasOwnProperty(hc)&&pe(Q_,hc)<0&&(Et.prototype[hc]=function(n){return function(){return n.apply(this.doc,arguments)}}(kn.prototype[hc]));return pr(kn),Et.inputStyles={textarea:Ht,contenteditable:bt},Et.defineMode=function(n){!Et.defaults.mode&&n!="null"&&(Et.defaults.mode=n),yr.apply(this,arguments)},Et.defineMIME=fo,Et.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(n,i){Et.prototype[n]=i},Et.defineDocExtension=function(n,i){kn.prototype[n]=i},Et.fromTextArea=Z_,J_(Et),Et.version="5.65.18",Et})}(zc)),zc.exports}var Ece=Ks();const Ace=$w(Ece);var Gm={exports:{}},Km;function Kw(){return Km||(Km=1,function(e,t){(function(r){r(Ks())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Kt){return{type:Kt,style:"keyword"}}var q=C("keyword a"),de=C("keyword b"),xe=C("keyword c"),le=C("keyword d"),Le=C("operator"),gt={type:"atom",style:"atom"};return{if:C("if"),while:q,with:q,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:C("new"),delete:xe,void:xe,throw:xe,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:Le,typeof:Le,instanceof:Le,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:C("this"),class:C("class"),super:C("atom"),yield:xe,export:C("export"),import:C("import"),extends:xe,await:xe}}(),w=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(C){for(var q=!1,de,xe=!1;(de=C.next())!=null;){if(!q){if(de=="/"&&!xe)return;de=="["?xe=!0:xe&&de=="]"&&(xe=!1)}q=!q&&de=="\\"}}var E,A;function $(C,q,de){return E=C,A=de,q}function R(C,q){var de=C.next();if(de=='"'||de=="'")return q.tokenize=T(de),q.tokenize(C,q);if(de=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return $("number","number");if(de=="."&&C.match(".."))return $("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return $(de);if(de=="="&&C.eat(">"))return $("=>","operator");if(de=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return $("number","number");if(/\d/.test(de))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),$("number","number");if(de=="/")return C.eat("*")?(q.tokenize=I,I(C,q)):C.eat("/")?(C.skipToEnd(),$("comment","comment")):Yn(C,q,1)?(M(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),$("regexp","string-2")):(C.eat("="),$("operator","operator",C.current()));if(de=="`")return q.tokenize=F,F(C,q);if(de=="#"&&C.peek()=="!")return C.skipToEnd(),$("meta","meta");if(de=="#"&&C.eatWhile(m))return $("variable","property");if(de=="<"&&C.match("!--")||de=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),$("comment","comment");if(w.test(de))return(de!=">"||!q.lexical||q.lexical.type!=">")&&(C.eat("=")?(de=="!"||de=="=")&&C.eat("="):/[<>*+\-|&?]/.test(de)&&(C.eat(de),de==">"&&C.eat(de))),de=="?"&&C.eat(".")?$("."):$("operator","operator",C.current());if(m.test(de)){C.eatWhile(m);var xe=C.current();if(q.lastType!="."){if(b.propertyIsEnumerable(xe)){var le=b[xe];return $(le.type,le.style,xe)}if(xe=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return $("async","keyword",xe)}return $("variable","variable",xe)}}function T(C){return function(q,de){var xe=!1,le;if(d&&q.peek()=="@"&&q.match(L))return de.tokenize=R,$("jsonld-keyword","meta");for(;(le=q.next())!=null&&!(le==C&&!xe);)xe=!xe&&le=="\\";return xe||(de.tokenize=R),$("string","string")}}function I(C,q){for(var de=!1,xe;xe=C.next();){if(xe=="/"&&de){q.tokenize=R;break}de=xe=="*"}return $("comment","comment")}function F(C,q){for(var de=!1,xe;(xe=C.next())!=null;){if(!de&&(xe=="`"||xe=="$"&&C.eat("{"))){q.tokenize=R;break}de=!de&&xe=="\\"}return $("quasi","string-2",C.current())}var re="([{}])";function se(C,q){q.fatArrowAt&&(q.fatArrowAt=null);var de=C.string.indexOf("=>",C.start);if(!(de<0)){if(v){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,de));xe&&(de=xe.index)}for(var le=0,Le=!1,gt=de-1;gt>=0;--gt){var Kt=C.string.charAt(gt),_n=re.indexOf(Kt);if(_n>=0&&_n<3){if(!le){++gt;break}if(--le==0){Kt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++le;else if(m.test(Kt))Le=!0;else if(/["'\/`]/.test(Kt))for(;;--gt){if(gt==0)return;var Go=C.string.charAt(gt-1);if(Go==Kt&&C.string.charAt(gt-2)!="\\"){gt--;break}}else if(Le&&!le){++gt;break}}Le&&!le&&(q.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(C,q,de,xe,le,Le){this.indented=C,this.column=q,this.type=de,this.prev=le,this.info=Le,xe!=null&&(this.align=xe)}function K(C,q){if(!p)return!1;for(var de=C.localVars;de;de=de.next)if(de.name==q)return!0;for(var xe=C.context;xe;xe=xe.prev)for(var de=xe.vars;de;de=de.next)if(de.name==q)return!0}function N(C,q,de,xe,le){var Le=C.cc;for(O.state=C,O.stream=le,O.marked=null,O.cc=Le,O.style=q,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var gt=Le.length?Le.pop():h?pe:X;if(gt(de,xe)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return O.marked?O.marked:de=="variable"&&K(C,xe)?"variable-2":q}}}var O={state:null,marked:null,cc:null};function P(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function S(){return P.apply(null,arguments),!0}function H(C,q){for(var de=q;de;de=de.next)if(de.name==C)return!0;return!1}function V(C){var q=O.state;if(O.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var de=oe(C,q.context);if(de!=null){q.context=de;return}}else if(!H(C,q.localVars)){q.localVars=new Oe(C,q.localVars);return}}s.globalVars&&!H(C,q.globalVars)&&(q.globalVars=new Oe(C,q.globalVars))}}function oe(C,q){if(q)if(q.block){var de=oe(C,q.prev);return de?de==q.prev?q:new we(de,q.vars,!0):null}else return H(C,q.vars)?q:new we(q.prev,new Oe(C,q.vars),!1);else return null}function ve(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function we(C,q,de){this.prev=C,this.vars=q,this.block=de}function Oe(C,q){this.name=C,this.next=q}var je=new Oe("this",new Oe("arguments",null));function Qe(){O.state.context=new we(O.state.context,O.state.localVars,!1),O.state.localVars=je}function Xe(){O.state.context=new we(O.state.context,O.state.localVars,!0),O.state.localVars=null}Qe.lex=Xe.lex=!0;function Ye(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Ye.lex=!0;function ne(C,q){var de=function(){var xe=O.state,le=xe.indented;if(xe.lexical.type=="stat")le=xe.lexical.indented;else for(var Le=xe.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;xe.lexical=new G(le,O.stream.column(),C,null,xe.lexical,q)};return de.lex=!0,de}function W(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}W.lex=!0;function Q(C){function q(de){return de==C?S():C==";"||de=="}"||de==")"||de=="]"?P():S(q)}return q}function X(C,q){return C=="var"?S(ne("vardef",q),Ho,Q(";"),W):C=="keyword a"?S(ne("form"),U,X,W):C=="keyword b"?S(ne("form"),X,W):C=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(ne("stat"),ue,Q(";"),W):C=="debugger"?S(Q(";")):C=="{"?S(ne("}"),Xe,Bt,W,Ye):C==";"?S():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==W&&O.state.cc.pop()(),S(ne("form"),U,X,W,Bo)):C=="function"?S(sr):C=="for"?S(ne("form"),Xe,za,X,Ye,W):C=="class"||v&&q=="interface"?(O.marked="keyword",S(ne("form",C=="class"?C:q),Wo,W)):C=="variable"?v&&q=="declare"?(O.marked="keyword",S(X)):v&&(q=="module"||q=="enum"||q=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",q=="enum"?S(Re):q=="type"?S(Ia,Q("operator"),tt,Q(";")):S(ne("form"),xn,Q("{"),ne("}"),Bt,W,W)):v&&q=="namespace"?(O.marked="keyword",S(ne("form"),pe,X,W)):v&&q=="abstract"?(O.marked="keyword",S(X)):S(ne("stat"),Ve):C=="switch"?S(ne("form"),U,Q("{"),ne("}","switch"),Xe,Bt,W,W,Ye):C=="case"?S(pe,Q(":")):C=="default"?S(Q(":")):C=="catch"?S(ne("form"),Qe,ae,X,W,Ye):C=="export"?S(ne("stat"),qo,W):C=="import"?S(ne("stat"),Li,W):C=="async"?S(X):q=="@"?S(pe,X):P(ne("stat"),pe,Q(";"),W)}function ae(C){if(C=="(")return S(vr,Q(")"))}function pe(C,q){return Y(C,q,!1)}function z(C,q){return Y(C,q,!0)}function U(C){return C!="("?P():S(ne(")"),ue,Q(")"),W)}function Y(C,q,de){if(O.state.fatArrowAt==O.stream.start){var xe=de?be:me;if(C=="(")return S(Qe,ne(")"),at(vr,")"),W,Q("=>"),xe,Ye);if(C=="variable")return P(Qe,xn,Q("=>"),xe,Ye)}var le=de?fe:he;return J.hasOwnProperty(C)?S(le):C=="function"?S(sr,le):C=="class"||v&&q=="interface"?(O.marked="keyword",S(ne("form"),Ju,W)):C=="keyword c"||C=="async"?S(de?z:pe):C=="("?S(ne(")"),ue,Q(")"),W,le):C=="operator"||C=="spread"?S(de?z:pe):C=="["?S(ne("]"),zt,W,le):C=="{"?Gt(lt,"}",null,le):C=="quasi"?P(Ce,le):C=="new"?S(We(de)):S()}function ue(C){return C.match(/[;\}\)\],]/)?P():P(pe)}function he(C,q){return C==","?S(ue):fe(C,q,!1)}function fe(C,q,de){var xe=de==!1?he:fe,le=de==!1?pe:z;if(C=="=>")return S(Qe,de?be:me,Ye);if(C=="operator")return/\+\+|--/.test(q)||v&&q=="!"?S(xe):v&&q=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(ne(">"),at(tt,">"),W,xe):q=="?"?S(pe,Q(":"),le):S(le);if(C=="quasi")return P(Ce,xe);if(C!=";"){if(C=="(")return Gt(z,")","call",xe);if(C==".")return S(rt,xe);if(C=="[")return S(ne("]"),ue,Q("]"),W,xe);if(v&&q=="as")return O.marked="keyword",S(tt,xe);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(le)}}function Ce(C,q){return C!="quasi"?P():q.slice(q.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(C){if(C=="}")return O.marked="string-2",O.state.tokenize=F,S(Ce)}function me(C){return se(O.stream,O.state),P(C=="{"?X:pe)}function be(C){return se(O.stream,O.state),P(C=="{"?X:z)}function We(C){return function(q){return q=="."?S(C?De:$e):q=="variable"&&v?S(Fn,C?fe:he):P(C?z:pe)}}function $e(C,q){if(q=="target")return O.marked="keyword",S(he)}function De(C,q){if(q=="target")return O.marked="keyword",S(fe)}function Ve(C){return C==":"?S(W,X):P(he,Q(";"),W)}function rt(C){if(C=="variable")return O.marked="property",S()}function lt(C,q){if(C=="async")return O.marked="property",S(lt);if(C=="variable"||O.style=="keyword"){if(O.marked="property",q=="get"||q=="set")return S(ft);var de;return v&&O.state.fatArrowAt==O.stream.start&&(de=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+de[0].length),S($t)}else{if(C=="number"||C=="string")return O.marked=d?"property":O.style+" property",S($t);if(C=="jsonld-keyword")return S($t);if(v&&ve(q))return O.marked="keyword",S(lt);if(C=="[")return S(pe,In,Q("]"),$t);if(C=="spread")return S(z,$t);if(q=="*")return O.marked="keyword",S(lt);if(C==":")return P($t)}}function ft(C){return C!="variable"?P($t):(O.marked="property",S(sr))}function $t(C){if(C==":")return S(z);if(C=="(")return P(sr)}function at(C,q,de){function xe(le,Le){if(de?de.indexOf(le)>-1:le==","){var gt=O.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(Kt,_n){return Kt==q||_n==q?P():P(C)},xe)}return le==q||Le==q?S():de&&de.indexOf(";")>-1?P(C):S(Q(q))}return function(le,Le){return le==q||Le==q?S():P(C,xe)}}function Gt(C,q,de){for(var xe=3;xe<arguments.length;xe++)O.cc.push(arguments[xe]);return S(ne(q,de),at(C,q),W)}function Bt(C){return C=="}"?S():P(X,Bt)}function In(C,q){if(v){if(C==":")return S(tt);if(q=="?")return S(In)}}function Ir(C,q){if(v&&(C==":"||q=="in"))return S(tt)}function Ft(C){if(v&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,Dn,tt):S(tt)}function Dn(C,q){if(q=="is")return O.marked="keyword",S()}function tt(C,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return O.marked="keyword",S(q=="typeof"?z:tt);if(C=="variable"||q=="void")return O.marked="type",S(or);if(q=="|"||q=="&")return S(tt);if(C=="string"||C=="number"||C=="atom")return S(or);if(C=="[")return S(ne("]"),at(tt,"]",","),W,or);if(C=="{")return S(ne("}"),Fe,W,or);if(C=="(")return S(at(Rt,")"),uo,or);if(C=="<")return S(at(tt,">"),tt);if(C=="quasi")return P(sn,or)}function uo(C){if(C=="=>")return S(tt)}function Fe(C){return C.match(/[\}\)\]]/)?S():C==","||C==";"?S(Fe):P(ei,Fe)}function ei(C,q){if(C=="variable"||O.style=="keyword")return O.marked="property",S(ei);if(q=="?"||C=="number"||C=="string")return S(ei);if(C==":")return S(tt);if(C=="[")return S(Q("variable"),Ir,Q("]"),ei);if(C=="(")return P(Ai,ei);if(!C.match(/[;\}\)\],]/))return S()}function sn(C,q){return C!="quasi"?P():q.slice(q.length-2)!="${"?S(sn):S(tt,Pt)}function Pt(C){if(C=="}")return O.marked="string-2",O.state.tokenize=F,S(sn)}function Rt(C,q){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||q=="?"?S(Rt):C==":"?S(tt):C=="spread"?S(Rt):P(tt)}function or(C,q){if(q=="<")return S(ne(">"),at(tt,">"),W,or);if(q=="|"||C=="."||q=="&")return S(tt);if(C=="[")return S(tt,Q("]"),or);if(q=="extends"||q=="implements")return O.marked="keyword",S(tt);if(q=="?")return S(tt,Q(":"),tt)}function Fn(C,q){if(q=="<")return S(ne(">"),at(tt,">"),W,or)}function pr(){return P(tt,ln)}function ln(C,q){if(q=="=")return S(tt)}function Ho(C,q){return q=="enum"?(O.marked="keyword",S(Re)):P(xn,In,gr,Zu)}function xn(C,q){if(v&&ve(q))return O.marked="keyword",S(xn);if(C=="variable")return V(q),S();if(C=="spread")return S(xn);if(C=="[")return Gt(Ys,"]");if(C=="{")return Gt(Ci,"}")}function Ci(C,q){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(V(q),S(gr)):(C=="variable"&&(O.marked="property"),C=="spread"?S(xn):C=="}"?P():C=="["?S(pe,Q("]"),Q(":"),Ci):S(Q(":"),xn,gr))}function Ys(){return P(xn,gr)}function gr(C,q){if(q=="=")return S(z)}function Zu(C){if(C==",")return S(Ho)}function Bo(C,q){if(C=="keyword b"&&q=="else")return S(ne("form","else"),X,W)}function za(C,q){if(q=="await")return S(za);if(C=="(")return S(ne(")"),Zs,W)}function Zs(C){return C=="var"?S(Ho,Ei):C=="variable"?S(Ei):P(Ei)}function Ei(C,q){return C==")"?S():C==";"?S(Ei):q=="in"||q=="of"?(O.marked="keyword",S(pe,Ei)):P(pe,Ei)}function sr(C,q){if(q=="*")return O.marked="keyword",S(sr);if(C=="variable")return V(q),S(sr);if(C=="(")return S(Qe,ne(")"),at(vr,")"),W,Ft,X,Ye);if(v&&q=="<")return S(ne(">"),at(pr,">"),W,sr)}function Ai(C,q){if(q=="*")return O.marked="keyword",S(Ai);if(C=="variable")return V(q),S(Ai);if(C=="(")return S(Qe,ne(")"),at(vr,")"),W,Ft,Ye);if(v&&q=="<")return S(ne(">"),at(pr,">"),W,Ai)}function Ia(C,q){if(C=="keyword"||C=="variable")return O.marked="type",S(Ia);if(q=="<")return S(ne(">"),at(pr,">"),W)}function vr(C,q){return q=="@"&&S(pe,vr),C=="spread"?S(vr):v&&ve(q)?(O.marked="keyword",S(vr)):v&&C=="this"?S(In,gr):P(xn,In,gr)}function Ju(C,q){return C=="variable"?Wo(C,q):mr(C,q)}function Wo(C,q){if(C=="variable")return V(q),S(mr)}function mr(C,q){if(q=="<")return S(ne(">"),at(pr,">"),W,mr);if(q=="extends"||q=="implements"||v&&C==",")return q=="implements"&&(O.marked="keyword"),S(v?tt:pe,mr);if(C=="{")return S(ne("}"),yr,W)}function yr(C,q){if(C=="async"||C=="variable"&&(q=="static"||q=="get"||q=="set"||v&&ve(q))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(yr);if(C=="variable"||O.style=="keyword")return O.marked="property",S(fo,yr);if(C=="number"||C=="string")return S(fo,yr);if(C=="[")return S(pe,In,Q("]"),fo,yr);if(q=="*")return O.marked="keyword",S(yr);if(v&&C=="(")return P(Ai,yr);if(C==";"||C==",")return S(yr);if(C=="}")return S();if(q=="@")return S(pe,yr)}function fo(C,q){if(q=="!"||q=="?")return S(fo);if(C==":")return S(tt,gr);if(q=="=")return S(z);var de=O.state.lexical.prev,xe=de&&de.info=="interface";return P(xe?Ai:sr)}function qo(C,q){return q=="*"?(O.marked="keyword",S(Vo,Q(";"))):q=="default"?(O.marked="keyword",S(pe,Q(";"))):C=="{"?S(at(jo,"}"),Vo,Q(";")):P(X)}function jo(C,q){if(q=="as")return O.marked="keyword",S(Q("variable"));if(C=="variable")return P(z,jo)}function Li(C){return C=="string"?S():C=="("?P(pe):C=="."?P(he):P(Uo,Dr,Vo)}function Uo(C,q){return C=="{"?Gt(Uo,"}"):(C=="variable"&&V(q),q=="*"&&(O.marked="keyword"),S(Js))}function Dr(C){if(C==",")return S(Uo,Dr)}function Js(C,q){if(q=="as")return O.marked="keyword",S(Uo)}function Vo(C,q){if(q=="from")return O.marked="keyword",S(pe)}function zt(C){return C=="]"?S():P(at(z,"]"))}function Re(){return P(ne("form"),xn,Q("{"),ne("}"),at(ti,"}"),W,W)}function ti(){return P(xn,gr)}function Qs(C,q){return C.lastType=="operator"||C.lastType==","||w.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Yn(C,q,de){return q.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(de||0)))}return{startState:function(C){var q={tokenize:R,lastType:"sof",cc:[],lexical:new G((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new we(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(C,q){if(C.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=C.indentation(),se(C,q)),q.tokenize!=I&&C.eatSpace())return null;var de=q.tokenize(C,q);return E=="comment"?de:(q.lastType=E=="operator"&&(A=="++"||A=="--")?"incdec":E,N(q,de,E,A,C))},indent:function(C,q){if(C.tokenize==I||C.tokenize==F)return r.Pass;if(C.tokenize!=R)return 0;var de=q&&q.charAt(0),xe=C.lexical,le;if(!/^\s*else\b/.test(q))for(var Le=C.cc.length-1;Le>=0;--Le){var gt=C.cc[Le];if(gt==W)xe=xe.prev;else if(gt!=Bo&&gt!=Ye)break}for(;(xe.type=="stat"||xe.type=="form")&&(de=="}"||(le=C.cc[C.cc.length-1])&&(le==he||le==fe)&&!/^[,\.=+\-*:?[\(]/.test(q));)xe=xe.prev;f&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Kt=xe.type,_n=de==Kt;return Kt=="vardef"?xe.indented+(C.lastType=="operator"||C.lastType==","?xe.info.length+1:0):Kt=="form"&&de=="{"?xe.indented:Kt=="form"?xe.indented+c:Kt=="stat"?xe.indented+(Qs(C,q)?f||c:0):xe.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(q)?c:2*c):xe.align?xe.column+(_n?0:1):xe.indented+(_n?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Yn,skipExpression:function(C){N(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})})}()),Gm.exports}Kw();var Xm={exports:{}},Ym;function Xw(){return Ym||(Ym=1,function(e,t){(function(r){r(Ks())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(S,H){function V(we){return H.tokenize=we,we(S,H)}var oe=S.next();if(oe=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?V(E("atom","]]>")):null:S.match("--")?V(E("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),V(A(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),H.tokenize=E("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",H.tokenize=L,"tag bracket");if(oe=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function L(S,H){var V=S.next();if(V==">"||V=="/"&&S.eat(">"))return H.tokenize=w,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){H.tokenize=w,H.state=F,H.tagName=H.tagStart=null;var oe=H.tokenize(S,H);return oe?oe+" tag error":"tag error"}else return/[\'\"]/.test(V)?(H.tokenize=M(V),H.stringStartCol=S.column(),H.tokenize(S,H)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function M(S){var H=function(V,oe){for(;!V.eol();)if(V.next()==S){oe.tokenize=L;break}return"string"};return H.isInAttribute=!0,H}function E(S,H){return function(V,oe){for(;!V.eol();){if(V.match(H)){oe.tokenize=w;break}V.next()}return S}}function A(S){return function(H,V){for(var oe;(oe=H.next())!=null;){if(oe=="<")return V.tokenize=A(S+1),V.tokenize(H,V);if(oe==">")if(S==1){V.tokenize=w;break}else return V.tokenize=A(S-1),V.tokenize(H,V)}return"meta"}}function $(S){return S&&S.toLowerCase()}function R(S,H,V){this.prev=S.context,this.tagName=H||"",this.indent=S.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(H)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function T(S){S.context&&(S.context=S.context.prev)}function I(S,H){for(var V;;){if(!S.context||(V=S.context.tagName,!h.contextGrabbers.hasOwnProperty($(V))||!h.contextGrabbers[$(V)].hasOwnProperty($(H))))return;T(S)}}function F(S,H,V){return S=="openTag"?(V.tagStart=H.column(),re):S=="closeTag"?se:F}function re(S,H,V){return S=="word"?(V.tagName=H.current(),b="tag",K):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",K(S,H,V)):(b="error",re)}function se(S,H,V){if(S=="word"){var oe=H.current();return V.context&&V.context.tagName!=oe&&h.implicitlyClosed.hasOwnProperty($(V.context.tagName))&&T(V),V.context&&V.context.tagName==oe||h.matchClosing===!1?(b="tag",J):(b="tag error",G)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",J(S,H,V)):(b="error",G)}function J(S,H,V){return S!="endTag"?(b="error",J):(T(V),F)}function G(S,H,V){return b="error",J(S,H,V)}function K(S,H,V){if(S=="word")return b="attribute",N;if(S=="endTag"||S=="selfcloseTag"){var oe=V.tagName,ve=V.tagStart;return V.tagName=V.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty($(oe))?I(V,oe):(I(V,oe),V.context=new R(V,oe,ve==V.indented)),F}return b="error",K}function N(S,H,V){return S=="equals"?O:(h.allowMissing||(b="error"),K(S,H,V))}function O(S,H,V){return S=="string"?P:S=="word"&&h.allowUnquoted?(b="string",K):(b="error",K(S,H,V))}function P(S,H,V){return S=="string"?P:K(S,H,V)}return{startState:function(S){var H={tokenize:w,state:F,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(H.baseIndent=S),H},token:function(S,H){if(!H.tagName&&S.sol()&&(H.indented=S.indentation()),S.eatSpace())return null;m=null;var V=H.tokenize(S,H);return(V||m)&&V!="comment"&&(b=null,H.state=H.state(m||V,S,H),b&&(V=b=="error"?V+" error":b)),V},indent:function(S,H,V){var oe=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(oe&&oe.noIndent)return r.Pass;if(S.tokenize!=L&&S.tokenize!=w)return V?V.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var ve=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(ve&&ve[1])for(;oe;)if(oe.tagName==ve[2]){oe=oe.prev;break}else if(h.implicitlyClosed.hasOwnProperty($(oe.tagName)))oe=oe.prev;else break;else if(ve)for(;oe;){var we=h.contextGrabbers[$(oe.tagName)];if(we&&we.hasOwnProperty($(ve[2])))oe=oe.prev;else break}for(;oe&&oe.prev&&!oe.startOfLine;)oe=oe.prev;return oe?oe.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var H=[],V=S.context;V;V=V.prev)H.push(V.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Xm.exports}Xw();var Zm={exports:{}},Jm;function Lce(){return Jm||(Jm=1,function(e,t){(function(r){r(Ks(),Xw(),Kw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var L=w.tagName;w.tagName=null;var M=d.indent(w,"","");return w.tagName=L,M}function v(w,L){return L.context.mode==d?m(w,L,L.context):b(w,L,L.context)}function m(w,L,M){if(M.depth==2)return w.match(/^.*?\*\//)?M.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(M.state);var E=p(M.state),A=M.state.context;if(A&&w.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?E-=c.indentUnit:M.prev.state.lexical&&(E=M.prev.state.lexical.indented)}else M.depth==1&&(E+=c.indentUnit);return L.context=new o(r.startState(h,E),h,0,L.context),null}if(M.depth==1){if(w.peek()=="<")return d.skipAttribute(M.state),L.context=new o(r.startState(d,p(M.state)),d,0,L.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return M.depth=2,v(w,L)}var $=d.token(w,M.state),R=w.current(),T;return/\btag\b/.test($)?/>$/.test(R)?M.state.context?M.depth=0:L.context=L.context.prev:/^</.test(R)&&(M.depth=1):!$&&(T=R.indexOf("{"))>-1&&w.backUp(R.length-T),$}function b(w,L,M){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,M.state))return L.context=new o(r.startState(d,h.indent(M.state,"","")),d,0,L.context),h.skipExpression(M.state),null;var E=h.token(w,M.state);if(!E&&M.depth!=null){var A=w.current();A=="{"?M.depth++:A=="}"&&--M.depth==0&&(L.context=L.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,L,M){return w.context.mode.indent(w.context.state,L,M)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),Zm.exports}Lce();var Qm={exports:{}},e0;function Mce(){return e0||(e0=1,function(e,t){(function(r){r(Ks())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),Qm.exports}Mce();var t0={exports:{}},n0;function $ce(){return n0||(n0=1,function(e,t){(function(r){r(Ks())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],L=p.pos;function M(){r.off(document,"mousemove",E),r.off(document,"mouseup",M)}function E(A){if(A.which!=1)return M();p.moveTo(L+(A[b]-w)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",M)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&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,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),t0.exports}$ce();const Mn=tn();function Nce(e,t,r={}){const o=Ace.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),St(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Mu(()=>{Mn.value=void 0}),Ah(o)}async function Oce(e){var t;Uu({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null,column:null})}function Pce(e,t){Uu({file:e,column:t.column-1,line:t.line,view:"editor",test:Ms.value})}function Rce(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return Zh(s,r,o);Uu({file:e.file.id,column:o-1,line:r,view:"editor",test:Ms.value})}const Xs=aA(),zce=VE(Xs),Ice={class:"scrolls scrolls-rounded task-error"},Dce=["onClickPassive"],Fce=["innerHTML"],Hce=ct({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=Se(()=>Jh(Xs.value)),s=Se(()=>{var d;return!!((d=t.error)!=null&&d.diff)}),c=Se(()=>t.error.diff?o.value.toHtml(Kl(t.error.diff)):void 0);function f(d){return kae(d.file,t.filename)?Pce(t.fileId,d):Zh(d.file,d.line,d.column)}return(d,h)=>{const p=Rr("tooltip");return ie(),ye("div",Ice,[ee("pre",null,[ee("b",null,ze(d.error.name),1),ht(": "+ze(d.error.message),1)]),(ie(!0),ye(nt,null,fr(d.error.stacks,(v,m)=>(ie(),ye("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ee("pre",null," - "+ze(r(v.file))+":"+ze(v.line)+":"+ze(v.column),1),ut(ee("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(v)},null,40,Dce),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),B(s)?(ie(),ye("pre",{key:0,"data-testid":"diff",innerHTML:B(c)},null,8,Fce)):qe("",!0)])}}}),Yw=Zr(Hce,[["__scopeId","data-v-e0212169"]]);function Zw(e){var r;const t=(r=e.meta)==null?void 0:r.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function Jw(){const e=Ue(!1),t=Ue(Date.now()),r=Ue(),o=Se(()=>{var d;const c=(d=r.value)==null?void 0:d.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Bce={"h-full":"",class:"scrolls"},Wce={key:0},qce={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},jce={flex:"~ gap-2 items-center"},Uce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Vce=["innerHTML"],Gce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Kce={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Xce={class:"flex gap-2","overflow-hidden":""},Yce={class:"font-bold","ws-nowrap":"",truncate:""},Zce=["href","download"],Jce=["onClick"],Qce={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},eue={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},tue={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},nue={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},rue={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},iue=ct({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=Se(()=>{var m;return!t.test.result||!((m=t.test.result.errors)!=null&&m.length)?null:Rw(Xs.value,[t.test])[0]});function o(m){return Rce(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Jw();function h(m){return`${Gb(Ws.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=Se(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{var R,T,I;const w=Jr,L=Yw,M=Tce,E=Uw,A=tp,$=Rr("tooltip");return ie(),ye("div",Bce,[B(r)?(ie(),ye("div",Wce,[ee("div",qce,[ee("div",jce,[B(Ot)&&((R=m.test.meta)!=null&&R.failScreenshotPath)?(ie(),ye(nt,{key:0},[ut(Pe(w,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=F=>B(f)(m.test))},null,512),[[$,"View screenshot error",void 0,{bottom:!0}]]),ut(Pe(w,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=F=>B(Zw)(m.test))},null,512),[[$,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),(T=m.test.result)!=null&&T.htmlError?(ie(),ye("div",Uce,[ee("pre",{innerHTML:m.test.result.htmlError},null,8,Vce)])):(I=m.test.result)!=null&&I.errors?(ie(!0),ye(nt,{key:1},fr(m.test.result.errors,(F,re)=>(ie(),Je(L,{key:re,"file-id":m.test.file.id,error:F,filename:m.test.file.name,root:B(Ws).root},null,8,["file-id","error","filename","root"]))),128)):qe("",!0)])])):(ie(),ye("div",Gce," All tests passed in this file ")),m.test.annotations.length?(ie(),ye(nt,{key:2},[b[5]||(b[5]=ee("h1",{"m-2":""}," Test Annotations ",-1)),(ie(!0),ye(nt,null,fr(m.test.annotations,F=>{var re;return ie(),ye("div",{key:F.type+F.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[ee("div",Kce,[ee("div",Xce,[ee("span",Yce,ze(F.type),1),F.attachment&&!((re=F.attachment.contentType)!=null&&re.startsWith("image/"))?(ie(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:B(du)(F.attachment),download:B(Gw)(F.message,F.attachment.contentType)},[...b[4]||(b[4]=[ee("span",{class:"i-carbon:download block"},null,-1),ht(" Download ",-1)])],8,Zce)):qe("",!0)]),ee("div",null,[F.location&&F.location.file===m.test.file.filepath?ut((ie(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:se=>o(F)},[ht(ze(h(F.location)),1)],8,Jce)),[[$,"Open in Editor",void 0,{bottom:!0}]]):F.location&&F.location.file!==m.test.file.filepath?(ie(),ye("span",Qce,ze(h(F.location)),1)):qe("",!0)])]),ee("div",eue,ze(F.message),1),Pe(M,{annotation:F},null,8,["annotation"])])}),128))],64)):qe("",!0),B(v).length?(ie(),ye(nt,{key:3},[b[6]||(b[6]=ee("h1",{"m-2":""}," Test Meta ",-1)),ee("div",tue,[(ie(!0),ye(nt,null,fr(B(v),([F,re])=>(ie(),ye(nt,{key:F},[ee("div",nue,ze(F),1),ee("pre",rue,ze(re),1)],64))),128))])],64)):qe("",!0),B(Ot)?(ie(),Je(A,{key:4,modelValue:B(c),"onUpdate:modelValue":b[3]||(b[3]=F=>Tt(c)?c.value=F:null),direction:"right"},{default:it(()=>[B(s)?(ie(),Je(zh,{key:0},{default:it(()=>[Pe(E,{file:B(s).file.filepath,name:B(s).name,url:B(d),onClose:b[2]||(b[2]=F=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),oue=Zr(iue,[["__scopeId","data-v-efadcc09"]]),sue={"h-full":"",class:"scrolls"},lue=["id"],aue={flex:"~ gap-2 items-center"},cue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},uue=["innerHTML"],fue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},due=ct({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){var v;return((v=h.result)==null?void 0:v.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(m=>r(m,p+1))]}const o=Se(()=>{var b,w;const h=t.file,p=((b=h.tasks)==null?void 0:b.flatMap(L=>r(L,0)))??[],v=h.result;if((w=v==null?void 0:v.errors)==null?void 0:w[0]){const L={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(L)}return p.length>0?Rw(Xs.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Jw();return(h,p)=>{const v=Jr,m=Yw,b=Uw,w=tp,L=Rr("tooltip");return ie(),ye("div",sue,[B(o).length?(ie(!0),ye(nt,{key:0},fr(B(o),M=>{var E,A,$,R;return ie(),ye("div",{id:M.id,key:M.id},[ee("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(E=M.result)!=null&&E.htmlError?.5:2*M.level+.5}rem`})},[ee("div",aue,[ee("span",null,ze(M.name),1),B(Ot)&&((A=M.meta)!=null&&A.failScreenshotPath)?(ie(),ye(nt,{key:0},[ut(Pe(v,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:T=>B(f)(M)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),ut(Pe(v,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:T=>B(Zw)(M)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),($=M.result)!=null&&$.htmlError?(ie(),ye("div",cue,[ee("pre",{innerHTML:M.result.htmlError},null,8,uue)])):(R=M.result)!=null&&R.errors?(ie(!0),ye(nt,{key:1},fr(M.result.errors,(T,I)=>(ie(),Je(m,{key:I,error:T,filename:h.file.name,root:B(Ws).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):qe("",!0)],4)],8,lue)}),128)):(ie(),ye("div",fue," All tests passed in this file ")),B(Ot)?(ie(),Je(w,{key:2,modelValue:B(c),"onUpdate:modelValue":p[1]||(p[1]=M=>Tt(c)?c.value=M:null),direction:"right"},{default:it(()=>[B(s)?(ie(),Je(zh,{key:0},{default:it(()=>[Pe(b,{file:B(s).file.filepath,name:B(s).name,url:B(d),onClose:p[0]||(p[0]=M=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),hue=Zr(due,[["__scopeId","data-v-d1b5950e"]]),pue={border:"b base","p-4":""},gue=["innerHTML"],vue=ct({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ie(),ye("div",pue,[ee("div",{"text-xs":"","mb-1":"",class:st(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ze(t(r.time))+" | "+ze(r.taskName)+" | "+ze(r.type),3),ee("pre",{"data-type":"html",innerHTML:r.content},null,8,gue)]))}}),mue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},yue={key:1,p6:""},bue=ct({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const o=qw.value;if(o){const s=Jh(Xs.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Kl(h))}))}});function r(o){const s=o&&pt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?TE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=vue;return(f=B(t))!=null&&f.length?(ie(),ye("div",mue,[(ie(!0),ye(nt,null,fr(B(t),({taskId:d,type:h,time:p,content:v})=>(ie(),ye("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ie(),ye("div",yue,[...s[0]||(s[0]=[ht(" Log something in your test and it would print here. (e.g. ",-1),ee("pre",{inline:""},"console.log(foo)",-1),ht(") ",-1)])]))}}}),Qw=ct({__name:"CodeMirrorContainer",props:na({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:na(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Nu(e,"modelValue"),s=dk(),c={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}},f=Ue();return co(async()=>{const d=Nce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Mn.value=d,setTimeout(()=>Mn.value.refresh(),100)}),(d,h)=>(ie(),ye("div",{relative:"","font-mono":"","text-sm":"",class:st(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[ee("textarea",{ref_key:"el",ref:f},null,512)],2))}}),wue=ct({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=tn(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();St(()=>r.file,async()=>{var J;if(!h.value){d.value=!0;try{if(!r.file||!((J=r.file)!=null&&J.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await pt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(G){console.error("cannot fetch file",G)}await At(),d.value=!1}},{immediate:!0}),St(()=>[d.value,h.value,r.file,Ew.value,Aw.value],([J,G,K,N,O])=>{!J&&!G&&(N!=null?At(()=>{var H;const P=p.value,S=P??{line:(N??1)-1,ch:O??0};P?p.value=void 0:((H=Mn.value)==null||H.scrollIntoView(S,100),At(()=>{var V,oe;(V=Mn.value)==null||V.focus(),(oe=Mn.value)==null||oe.setCursor(S)}))}):At(()=>{var P;(P=Mn.value)==null||P.focus()}))},{flush:"post"});const v=Se(()=>{var J,G;return((G=(J=r.file)==null?void 0:J.filepath)==null?void 0:G.split(/\./g).pop())||"js"}),m=Ue(),b=Se(()=>{var K;const J=[];function G(N){var O;(O=N.result)!=null&&O.errors&&J.push(...N.result.errors),N.type==="suite"&&N.tasks.forEach(G)}return(K=r.file)==null||K.tasks.forEach(G),J}),w=Se(()=>{var K;const J=[];function G(N){N.type==="test"&&J.push(...N.annotations),N.type==="suite"&&N.tasks.forEach(G)}return(K=r.file)==null||K.tasks.forEach(G),J}),L=[],M=[],E=[],A=Ue(!1);function $(){E.forEach(([J,G,K])=>{J.removeEventListener("click",G),K()}),E.length=0}pw(m,()=>{var J;(J=Mn.value)==null||J.refresh()});function R(){f.value=c.value!==Mn.value.getValue()}St(f,J=>{o("draft",J)},{immediate:!0});function T(J){const G=((J==null?void 0:J.stacks)||[]).filter(H=>{var V;return H.file&&H.file===((V=r.file)==null?void 0:V.filepath)}),K=G==null?void 0:G[0];if(!K)return;const N=document.createElement("div");N.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${(J==null?void 0:J.message)||""}`,N.appendChild(O);const P=document.createElement("span");P.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",P.tabIndex=0,P.ariaLabel="Open in Editor",Fb(P,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Zh(K.file,K.line,K.column)};P.addEventListener("click",S),N.appendChild(P),E.push([P,S,()=>Wh(P)]),M.push(Mn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),L.push(Mn.value.addLineWidget(K.line-1,N))}function I(J){var V,oe;if(!J.location)return;const{line:G,file:K}=J.location;if(K!==((V=r.file)==null?void 0:V.filepath))return;const N=document.createElement("div");N.classList.add("wrap","bg-active","py-3","px-6","my-1"),N.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const P=document.createElement("span");P.textContent=`${J.type}: `,P.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
45
+ `),O.append(P,S),N.append(O);const H=J.attachment;if(H!=null&&H.path||H!=null&&H.body)if((oe=H.contentType)!=null&&oe.startsWith("image/")){const ve=document.createElement("a"),we=document.createElement("img");ve.classList.add("inline-block","mt-3"),ve.style.maxWidth="50vw";const Oe=H.path||H.body;typeof Oe=="string"&&(Oe.startsWith("http://")||Oe.startsWith("https://"))?(we.setAttribute("src",Oe),ve.referrerPolicy="no-referrer"):we.setAttribute("src",du(H)),ve.target="_blank",ve.href=we.src,ve.append(we),N.append(ve)}else{const ve=document.createElement("a");ve.href=du(H),ve.download=Gw(J.message,H.contentType),ve.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const we=document.createElement("div");we.classList.add("i-carbon:download","block");const Oe=document.createElement("span");Oe.textContent="Download",ve.append(we,Oe),N.append(ve)}L.push(Mn.value.addLineWidget(G-1,N))}const{pause:F,resume:re}=St([Mn,b,w,ys],([J,G,K,N])=>{if(!J){L.length=0,M.length=0,$();return}N&&(J.off("changes",R),$(),L.forEach(O=>O.clear()),M.forEach(O=>J==null?void 0:J.removeLineClass(O,"wrap")),L.length=0,M.length=0,setTimeout(()=>{G.forEach(T),K.forEach(I),A.value||J.clearHistory(),J.on("changes",R)},100))},{flush:"post"});Gh(()=>[ys.value,h.value,p.value],([J,G],K)=>{var N;J&&!G&&K&&K[2]&&((N=Mn.value)==null||N.setCursor(K[2]))},{debounce:100,flush:"post"});async function se(J){if(h.value)return;F(),h.value=!0,await At();const G=Mn.value;G&&(G.setOption("readOnly",!0),await At(),G.refresh()),p.value=G==null?void 0:G.getCursor(),G==null||G.off("changes",R),$(),L.forEach(K=>K.clear()),M.forEach(K=>G==null?void 0:G.removeLineClass(K,"wrap")),L.length=0,M.length=0;try{A.value=!0,await pt.rpc.saveTestFile(r.file.filepath,J),c.value=J,f.value=!1}catch(K){console.error("error saving file",K)}A.value||G==null||G.clearHistory();try{await $m(ys).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await $m(ys).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(T),w.value.forEach(I),G==null||G.on("changes",R),h.value=!1,await At(),G&&(G.setOption("readOnly",!1),await At(),G.refresh()),re()}return Ta($),(J,G)=>{const K=Qw;return ie(),Je(K,yi({ref_key:"editor",ref:m,modelValue:B(s),"onUpdate:modelValue":G[0]||(G[0]=N=>Tt(s)?s.value=N:null),"h-full":""},{lineNumbers:!0,readOnly:B(dr),saving:B(h)},{mode:B(v),"data-testid":"code-mirror",onSave:se}),null,16,["modelValue","mode"])}}}),xue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},_ue={"p-4":"",relative:""},Sue={op50:"","font-mono":"","text-sm":""},kue={key:0,"p-5":""},Tue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Cue={key:0},Eue={p:"x3 y-1","bg-overlay":"",border:"base b t"},Aue=ct({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=XE(()=>pt.rpc.getTransformResult(r.projectName,r.id,!!Ot)),c=Se(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Se(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Se(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return uw("Escape",()=>{o("close")}),(p,v)=>{const m=Jr,b=Qw;return ie(),ye("div",xue,[ee("div",_ue,[v[1]||(v[1]=ee("p",null,"Module Info",-1)),ee("p",Sue,ze(p.id),1),Pe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),B(s)?(ie(),ye(nt,{key:1},[ee("div",Tue,[v[2]||(v[2]=ee("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=ee("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Pe(b,yi({"h-full":"","model-value":B(f),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"]),Pe(b,yi({"h-full":"","model-value":B(d),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])]),B(h).mappings!==""?(ie(),ye("div",Cue,[ee("div",Eue," Source map (v"+ze(B(h).version)+") ",1),Pe(b,yi({"model-value":B(h).mappings,"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])])):qe("",!0)],64)):(ie(),ye("div",kue," No transform result found for this module. "))])}}});function Lue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Qd="http://www.w3.org/1999/xhtml";const r0={svg:"http://www.w3.org/2000/svg",xhtml:Qd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),r0.hasOwnProperty(t)?{space:r0[t],local:e}:e}function Mue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Qd&&t.documentElement.namespaceURI===Qd?t.createElement(e):t.createElementNS(r,e)}}function $ue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ex(e){var t=Vu(e);return(t.local?$ue:Mue)(t)}function Nue(){}function np(e){return e==null?Nue:function(){return this.querySelector(e)}}function Oue(e){typeof e!="function"&&(e=np(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new ir(o,this._parents)}function Pue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Rue(){return[]}function tx(e){return e==null?Rue:function(){return this.querySelectorAll(e)}}function zue(e){return function(){return Pue(e.apply(this,arguments))}}function Iue(e){typeof e=="function"?e=zue(e):e=tx(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new ir(o,s)}function nx(e){return function(){return this.matches(e)}}function rx(e){return function(t){return t.matches(e)}}var Due=Array.prototype.find;function Fue(e){return function(){return Due.call(this.children,e)}}function Hue(){return this.firstElementChild}function Bue(e){return this.select(e==null?Hue:Fue(typeof e=="function"?e:rx(e)))}var Wue=Array.prototype.filter;function que(){return Array.from(this.children)}function jue(e){return function(){return Wue.call(this.children,e)}}function Uue(e){return this.selectAll(e==null?que:jue(typeof e=="function"?e:rx(e)))}function Vue(e){typeof e!="function"&&(e=nx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new ir(o,this._parents)}function ix(e){return new Array(e.length)}function Gue(){return new ir(this._enter||this._groups.map(ix),this._parents)}function hu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}hu.prototype={constructor:hu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Kue(e){return function(){return e}}function Xue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new hu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Yue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new hu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Zue(e){return e.__data__}function Jue(e,t){if(!arguments.length)return Array.from(this,Zue);var r=t?Yue:Xue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Kue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=Que(e.call(v,v&&v.__data__,p,o)),L=w.length,M=d[p]=new Array(L),E=f[p]=new Array(L),A=h[p]=new Array(b);r(v,m,M,E,A,w,t);for(var $=0,R=0,T,I;$<L;++$)if(T=M[$]){for($>=R&&(R=$+1);!(I=E[R])&&++R<L;);T._next=I||null}}return f=new ir(f,o),f._enter=d,f._exit=h,f}function Que(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function efe(){return new ir(this._exit||this._groups.map(ix),this._parents)}function tfe(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function nfe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,L=0;L<m;++L)(w=p[L]||v[L])&&(b[L]=w);for(;h<s;++h)d[h]=r[h];return new ir(d,this._parents)}function rfe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function ife(e){e||(e=ofe);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new ir(s,this._parents).order()}function ofe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function sfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function lfe(){return Array.from(this)}function afe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function cfe(){let e=0;for(const t of this)++e;return e}function ufe(){return!this.node()}function ffe(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function dfe(e){return function(){this.removeAttribute(e)}}function hfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pfe(e,t){return function(){this.setAttribute(e,t)}}function gfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function mfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function yfe(e,t){var r=Vu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?hfe:dfe:typeof t=="function"?r.local?mfe:vfe:r.local?gfe:pfe)(r,t))}function ox(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function bfe(e){return function(){this.style.removeProperty(e)}}function wfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function xfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function _fe(e,t,r){return arguments.length>1?this.each((t==null?bfe:typeof t=="function"?xfe:wfe)(e,t,r??"")):qs(this.node(),e)}function qs(e,t){return e.style.getPropertyValue(t)||ox(e).getComputedStyle(e,null).getPropertyValue(t)}function Sfe(e){return function(){delete this[e]}}function kfe(e,t){return function(){this[e]=t}}function Tfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Cfe(e,t){return arguments.length>1?this.each((t==null?Sfe:typeof t=="function"?Tfe:kfe)(e,t)):this.node()[e]}function sx(e){return e.trim().split(/^|\s+/)}function rp(e){return e.classList||new lx(e)}function lx(e){this._node=e,this._names=sx(e.getAttribute("class")||"")}lx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ax(e,t){for(var r=rp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function cx(e,t){for(var r=rp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Efe(e){return function(){ax(this,e)}}function Afe(e){return function(){cx(this,e)}}function Lfe(e,t){return function(){(t.apply(this,arguments)?ax:cx)(this,e)}}function Mfe(e,t){var r=sx(e+"");if(arguments.length<2){for(var o=rp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Lfe:t?Efe:Afe)(r,t))}function $fe(){this.textContent=""}function Nfe(e){return function(){this.textContent=e}}function Ofe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Pfe(e){return arguments.length?this.each(e==null?$fe:(typeof e=="function"?Ofe:Nfe)(e)):this.node().textContent}function Rfe(){this.innerHTML=""}function zfe(e){return function(){this.innerHTML=e}}function Ife(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Dfe(e){return arguments.length?this.each(e==null?Rfe:(typeof e=="function"?Ife:zfe)(e)):this.node().innerHTML}function Ffe(){this.nextSibling&&this.parentNode.appendChild(this)}function Hfe(){return this.each(Ffe)}function Bfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Wfe(){return this.each(Bfe)}function qfe(e){var t=typeof e=="function"?e:ex(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function jfe(){return null}function Ufe(e,t){var r=typeof e=="function"?e:ex(e),o=t==null?jfe:typeof t=="function"?t:np(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Vfe(){var e=this.parentNode;e&&e.removeChild(this)}function Gfe(){return this.each(Vfe)}function Kfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yfe(e){return this.select(e?Xfe:Kfe)}function Zfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Jfe(e){return function(t){e.call(this,t,this.__data__)}}function Qfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function ede(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function tde(e,t,r){return function(){var o=this.__on,s,c=Jfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function nde(e,t,r){var o=Qfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?tde:ede,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function ux(e,t,r){var o=ox(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function rde(e,t){return function(){return ux(this,e,t)}}function ide(e,t){return function(){return ux(this,e,t.apply(this,arguments))}}function ode(e,t){return this.each((typeof t=="function"?ide:rde)(e,t))}function*sde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var fx=[null];function ir(e,t){this._groups=e,this._parents=t}function Oa(){return new ir([[document.documentElement]],fx)}function lde(){return this}ir.prototype=Oa.prototype={constructor:ir,select:Oue,selectAll:Iue,selectChild:Bue,selectChildren:Uue,filter:Vue,data:Jue,enter:Gue,exit:efe,join:tfe,merge:nfe,selection:lde,order:rfe,sort:ife,call:sfe,nodes:lfe,node:afe,size:cfe,empty:ufe,each:ffe,attr:yfe,style:_fe,property:Cfe,classed:Mfe,text:Pfe,html:Dfe,raise:Hfe,lower:Wfe,append:qfe,insert:Ufe,remove:Gfe,clone:Yfe,datum:Zfe,on:nde,dispatch:ode,[Symbol.iterator]:sde};function Vn(e){return typeof e=="string"?new ir([[document.querySelector(e)]],[document.documentElement]):new ir([[e]],fx)}function ade(e){let t;for(;t=e.sourceEvent;)e=t;return e}function hi(e,t){if(e=ade(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var cde=Object.defineProperty,ude=(e,t,r)=>t in e?cde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i0=(e,t,r)=>ude(e,typeof t!="symbol"?t+"":t,r);class $n{constructor(t,r){i0(this,"x"),i0(this,"y"),this.x=t,this.y=r}static of([t,r]){return new $n(t,r)}add(t){return new $n(this.x+t.x,this.y+t.y)}subtract(t){return new $n(this.x-t.x,this.y-t.y)}multiply(t){return new $n(this.x*t,this.y*t)}divide(t){return new $n(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new $n(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new $n(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new $n(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var fde={value:()=>{}};function Pa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Ic(r)}function Ic(e){this._=e}function dde(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Ic.prototype=Pa.prototype={constructor:Ic,on:function(e,t){var r=this._,o=dde(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=hde(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=o0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=o0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Ic(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function hde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function o0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=fde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const pde={passive:!1},pa={capture:!0,passive:!1};function gd(e){e.stopImmediatePropagation()}function Os(e){e.preventDefault(),e.stopImmediatePropagation()}function dx(e){var t=e.document.documentElement,r=Vn(e).on("dragstart.drag",Os,pa);"onselectstart"in t?r.on("selectstart.drag",Os,pa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function hx(e,t){var r=e.document.documentElement,o=Vn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Os,pa),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const kc=e=>()=>e;function eh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}eh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function gde(e){return!e.ctrlKey&&!e.button}function vde(){return this.parentNode}function mde(e,t){return t??{x:e.x,y:e.y}}function yde(){return navigator.maxTouchPoints||"ontouchstart"in this}function bde(){var e=gde,t=vde,r=mde,o=yde,s={},c=Pa("start","drag","end"),f=0,d,h,p,v,m=0;function b(T){T.on("mousedown.drag",w).filter(o).on("touchstart.drag",E).on("touchmove.drag",A,pde).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(T,I){if(!(v||!e.call(this,T,I))){var F=R(this,t.call(this,T,I),T,I,"mouse");F&&(Vn(T.view).on("mousemove.drag",L,pa).on("mouseup.drag",M,pa),dx(T.view),gd(T),p=!1,d=T.clientX,h=T.clientY,F("start",T))}}function L(T){if(Os(T),!p){var I=T.clientX-d,F=T.clientY-h;p=I*I+F*F>m}s.mouse("drag",T)}function M(T){Vn(T.view).on("mousemove.drag mouseup.drag",null),hx(T.view,p),Os(T),s.mouse("end",T)}function E(T,I){if(e.call(this,T,I)){var F=T.changedTouches,re=t.call(this,T,I),se=F.length,J,G;for(J=0;J<se;++J)(G=R(this,re,T,I,F[J].identifier,F[J]))&&(gd(T),G("start",T,F[J]))}}function A(T){var I=T.changedTouches,F=I.length,re,se;for(re=0;re<F;++re)(se=s[I[re].identifier])&&(Os(T),se("drag",T,I[re]))}function $(T){var I=T.changedTouches,F=I.length,re,se;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),re=0;re<F;++re)(se=s[I[re].identifier])&&(gd(T),se("end",T,I[re]))}function R(T,I,F,re,se,J){var G=c.copy(),K=hi(J||F,I),N,O,P;if((P=r.call(T,new eh("beforestart",{sourceEvent:F,target:b,identifier:se,active:f,x:K[0],y:K[1],dx:0,dy:0,dispatch:G}),re))!=null)return N=P.x-K[0]||0,O=P.y-K[1]||0,function S(H,V,oe){var ve=K,we;switch(H){case"start":s[se]=S,we=f++;break;case"end":delete s[se],--f;case"drag":K=hi(oe||V,I),we=f;break}G.call(H,T,new eh(H,{sourceEvent:V,subject:P,target:b,identifier:se,active:we,x:K[0]+N,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:G}),re)}}return b.filter=function(T){return arguments.length?(e=typeof T=="function"?T:kc(!!T),b):e},b.container=function(T){return arguments.length?(t=typeof T=="function"?T:kc(T),b):t},b.subject=function(T){return arguments.length?(r=typeof T=="function"?T:kc(T),b):r},b.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:kc(!!T),b):o},b.on=function(){var T=c.on.apply(c,arguments);return T===c?b:T},b.clickDistance=function(T){return arguments.length?(m=(T=+T)*T,b):Math.sqrt(m)},b}function ip(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function px(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ra(){}var ga=.7,pu=1/ga,Ps="\\s*([+-]?\\d+)\\s*",va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wde=/^#([0-9a-f]{3,8})$/,xde=new RegExp(`^rgb\\(${Ps},${Ps},${Ps}\\)$`),_de=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),Sde=new RegExp(`^rgba\\(${Ps},${Ps},${Ps},${va}\\)$`),kde=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${va}\\)$`),Tde=new RegExp(`^hsl\\(${va},${Xr},${Xr}\\)$`),Cde=new RegExp(`^hsla\\(${va},${Xr},${Xr},${va}\\)$`),s0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ip(Ra,ma,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:l0,formatHex:l0,formatHex8:Ede,formatHsl:Ade,formatRgb:a0,toString:a0});function l0(){return this.rgb().formatHex()}function Ede(){return this.rgb().formatHex8()}function Ade(){return gx(this).formatHsl()}function a0(){return this.rgb().formatRgb()}function ma(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?c0(t):r===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Tc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Tc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=xde.exec(e))?new Kn(t[1],t[2],t[3],1):(t=_de.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Sde.exec(e))?Tc(t[1],t[2],t[3],t[4]):(t=kde.exec(e))?Tc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Tde.exec(e))?d0(t[1],t[2]/100,t[3]/100,1):(t=Cde.exec(e))?d0(t[1],t[2]/100,t[3]/100,t[4]):s0.hasOwnProperty(e)?c0(s0[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function c0(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Tc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Kn(e,t,r,o)}function Lde(e){return e instanceof Ra||(e=ma(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function th(e,t,r,o){return arguments.length===1?Lde(e):new Kn(e,t,r,o??1)}function Kn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}ip(Kn,th,px(Ra,{brighter(e){return e=e==null?pu:Math.pow(pu,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(zo(this.r),zo(this.g),zo(this.b),gu(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:u0,formatHex:u0,formatHex8:Mde,formatRgb:f0,toString:f0}));function u0(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}`}function Mde(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}${Oo((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=gu(this.opacity);return`${e===1?"rgb(":"rgba("}${zo(this.r)}, ${zo(this.g)}, ${zo(this.b)}${e===1?")":`, ${e})`}`}function gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oo(e){return e=zo(e),(e<16?"0":"")+e.toString(16)}function d0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,r,o)}function gx(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof Ra||(e=ma(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Er(f,d,h,e.opacity)}function $de(e,t,r,o){return arguments.length===1?gx(e):new Er(e,t,r,o??1)}function Er(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}ip(Er,$de,px(Ra,{brighter(e){return e=e==null?pu:Math.pow(pu,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new Er(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Kn(vd(e>=240?e-240:e+120,s,o),vd(e,s,o),vd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Er(h0(this.h),Cc(this.s),Cc(this.l),gu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gu(this.opacity);return`${e===1?"hsl(":"hsla("}${h0(this.h)}, ${Cc(this.s)*100}%, ${Cc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h0(e){return e=(e||0)%360,e<0?e+360:e}function Cc(e){return Math.max(0,Math.min(1,e||0))}function vd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const vx=e=>()=>e;function Nde(e,t){return function(r){return e+r*t}}function Ode(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function Pde(e){return(e=+e)==1?mx:function(t,r){return r-t?Ode(t,r,e):vx(isNaN(t)?r:t)}}function mx(e,t){var r=t-e;return r?Nde(e,r):vx(isNaN(e)?t:e)}const p0=function e(t){var r=Pde(t);function o(s,c){var f=r((s=th(s)).r,(c=th(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=mx(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Gi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var nh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,md=new RegExp(nh.source,"g");function Rde(e){return function(){return e}}function zde(e){return function(t){return e(t)+""}}function Ide(e,t){var r=nh.lastIndex=md.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=nh.exec(e))&&(s=md.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Gi(o,s)})),r=md.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?zde(h[0].x):Rde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var g0=180/Math.PI,rh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yx(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*g0,skewX:Math.atan(h)*g0,scaleX:f,scaleY:d}}var Ec;function Dde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?rh:yx(t.a,t.b,t.c,t.d,t.e,t.f)}function Fde(e){return e==null||(Ec||(Ec=document.createElementNS("http://www.w3.org/2000/svg","g")),Ec.setAttribute("transform",e),!(e=Ec.transform.baseVal.consolidate()))?rh:(e=e.matrix,yx(e.a,e.b,e.c,e.d,e.e,e.f))}function bx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,L){if(p!==m||v!==b){var M=w.push("translate(",null,t,null,r);L.push({i:M-4,x:Gi(p,m)},{i:M-2,x:Gi(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Gi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Gi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,L){if(p!==m||v!==b){var M=w.push(s(w)+"scale(",null,",",null,")");L.push({i:M-4,x:Gi(p,m)},{i:M-2,x:Gi(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var L=-1,M=b.length,E;++L<M;)m[(E=b[L]).i]=E.x(w);return m.join("")}}}var Hde=bx(Dde,"px, ","px)","deg)"),Bde=bx(Fde,", ",")",")"),Wde=1e-12;function v0(e){return((e=Math.exp(e))+1/e)/2}function qde(e){return((e=Math.exp(e))-1/e)/2}function jde(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ude=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,L=m-h,M=w*w+L*L,E,A;if(M<Wde)A=Math.log(b/p)/t,E=function(re){return[d+re*w,h+re*L,p*Math.exp(t*re*A)]};else{var $=Math.sqrt(M),R=(b*b-p*p+o*M)/(2*p*r*$),T=(b*b-p*p-o*M)/(2*b*r*$),I=Math.log(Math.sqrt(R*R+1)-R),F=Math.log(Math.sqrt(T*T+1)-T);A=(F-I)/t,E=function(re){var se=re*A,J=v0(I),G=p/(r*$)*(J*jde(t*se+I)-qde(I));return[d+G*w,h+G*L,p*J/v0(t*se+I)]}}return E.duration=A*1e3*t/Math.SQRT2,E}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var js=0,zl=0,$l=0,wx=1e3,vu,Il,mu=0,Do=0,Gu=0,ya=typeof performance=="object"&&performance.now?performance:Date,xx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function op(){return Do||(xx(Vde),Do=ya.now()+Gu)}function Vde(){Do=0}function yu(){this._call=this._time=this._next=null}yu.prototype=sp.prototype={constructor:yu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?op():+r)+(t==null?0:+t),!this._next&&Il!==this&&(Il?Il._next=this:vu=this,Il=this),this._call=e,this._time=r,ih()},stop:function(){this._call&&(this._call=null,this._time=1/0,ih())}};function sp(e,t,r){var o=new yu;return o.restart(e,t,r),o}function Gde(){op(),++js;for(var e=vu,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--js}function m0(){Do=(mu=ya.now())+Gu,js=zl=0;try{Gde()}finally{js=0,Xde(),Do=0}}function Kde(){var e=ya.now(),t=e-mu;t>wx&&(Gu-=t,mu=e)}function Xde(){for(var e,t=vu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:vu=r);Il=e,ih(o)}function ih(e){if(!js){zl&&(zl=clearTimeout(zl));var t=e-Do;t>24?(e<1/0&&(zl=setTimeout(m0,e-ya.now()-Gu)),$l&&($l=clearInterval($l))):($l||(mu=ya.now(),$l=setInterval(Kde,wx)),js=1,xx(m0))}}function y0(e,t,r){var o=new yu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Yde=Pa("start","end","cancel","interrupt"),Zde=[],_x=0,b0=1,oh=2,Dc=3,w0=4,sh=5,Fc=6;function Ku(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Jde(e,r,{name:t,index:o,group:s,on:Yde,tween:Zde,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:_x})}function lp(e,t){var r=zr(e,t);if(r.state>_x)throw new Error("too late; already scheduled");return r}function Qr(e,t){var r=zr(e,t);if(r.state>Dc)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Jde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=sp(c,0,r.time);function c(p){r.state=b0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==b0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===Dc)return y0(f);w.state===w0?(w.state=Fc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Fc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(y0(function(){r.state===Dc&&(r.state=w0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=oh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===oh){for(r.state=Dc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=sh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===sh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Fc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Hc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>oh&&o.state<sh,o.state=Fc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Qde(e){return this.each(function(){Hc(this,e)})}function ehe(e,t){var r,o;return function(){var s=Qr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function the(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Qr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function nhe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=zr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?ehe:the)(r,e,t))}function ap(e,t,r){var o=e._id;return e.each(function(){var s=Qr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,o).value[t]}}function Sx(e,t){var r;return(typeof t=="number"?Gi:t instanceof ma?p0:(r=ma(t))?(t=r,p0):Ide)(e,t)}function rhe(e){return function(){this.removeAttribute(e)}}function ihe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ohe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function she(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function lhe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function ahe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function che(e,t){var r=Vu(e),o=r==="transform"?Bde:Sx;return this.attrTween(e,typeof t=="function"?(r.local?ahe:lhe)(r,o,ap(this,"attr."+e,t)):t==null?(r.local?ihe:rhe)(r):(r.local?she:ohe)(r,o,t))}function uhe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function fhe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function dhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&fhe(e,c)),r}return s._value=t,s}function hhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&uhe(e,c)),r}return s._value=t,s}function phe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Vu(e);return this.tween(r,(o.local?dhe:hhe)(o,t))}function ghe(e,t){return function(){lp(this,e).delay=+t.apply(this,arguments)}}function vhe(e,t){return t=+t,function(){lp(this,e).delay=t}}function mhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ghe:vhe)(t,e)):zr(this.node(),t).delay}function yhe(e,t){return function(){Qr(this,e).duration=+t.apply(this,arguments)}}function bhe(e,t){return t=+t,function(){Qr(this,e).duration=t}}function whe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?yhe:bhe)(t,e)):zr(this.node(),t).duration}function xhe(e,t){if(typeof t!="function")throw new Error;return function(){Qr(this,e).ease=t}}function _he(e){var t=this._id;return arguments.length?this.each(xhe(t,e)):zr(this.node(),t).ease}function She(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Qr(this,e).ease=r}}function khe(e){if(typeof e!="function")throw new Error;return this.each(She(this._id,e))}function The(e){typeof e!="function"&&(e=nx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new _i(o,this._parents,this._name,this._id)}function Che(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new _i(f,this._parents,this._name,this._id)}function Ehe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Ahe(e,t,r){var o,s,c=Ehe(t)?lp:Qr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Lhe(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(Ahe(r,e,t))}function Mhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function $he(){return this.on("end.remove",Mhe(this._id))}function Nhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=np(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Ku(p[b],t,r,b,p,zr(v,r)));return new _i(c,this._parents,t,r)}function Ohe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=tx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,L=zr(v,r),M=0,E=b.length;M<E;++M)(w=b[M])&&Ku(w,t,r,M,b,L);c.push(b),f.push(v)}return new _i(c,f,t,r)}var Phe=Oa.prototype.constructor;function Rhe(){return new Phe(this._groups,this._parents)}function zhe(e,t){var r,o,s;return function(){var c=qs(this,e),f=(this.style.removeProperty(e),qs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function kx(e){return function(){this.style.removeProperty(e)}}function Ihe(e,t,r){var o,s=r+"",c;return function(){var f=qs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Dhe(e,t,r){var o,s,c;return function(){var f=qs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),qs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Fhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Qr(this,e),p=h.on,v=h.value[c]==null?d||(d=kx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Hhe(e,t,r){var o=(e+="")=="transform"?Hde:Sx;return t==null?this.styleTween(e,zhe(e,o)).on("end.style."+e,kx(e)):typeof t=="function"?this.styleTween(e,Dhe(e,o,ap(this,"style."+e,t))).each(Fhe(this._id,e)):this.styleTween(e,Ihe(e,o,t),r).on("end.style."+e,null)}function Bhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Whe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Bhe(e,f,r)),o}return c._value=t,c}function qhe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Whe(e,t,r??""))}function jhe(e){return function(){this.textContent=e}}function Uhe(e){return function(){var t=e(this);this.textContent=t??""}}function Vhe(e){return this.tween("text",typeof e=="function"?Uhe(ap(this,"text",e)):jhe(e==null?"":e+""))}function Ghe(e){return function(t){this.textContent=e.call(this,t)}}function Khe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Ghe(s)),t}return o._value=e,o}function Xhe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Khe(e))}function Yhe(){for(var e=this._name,t=this._id,r=Tx(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=zr(h,t);Ku(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new _i(o,this._parents,e,r)}function Zhe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Qr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Jhe=0;function _i(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Tx(){return++Jhe}var ui=Oa.prototype;_i.prototype={constructor:_i,select:Nhe,selectAll:Ohe,selectChild:ui.selectChild,selectChildren:ui.selectChildren,filter:The,merge:Che,selection:Rhe,transition:Yhe,call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:Lhe,attr:che,attrTween:phe,style:Hhe,styleTween:qhe,text:Vhe,textTween:Xhe,remove:$he,tween:nhe,delay:mhe,duration:whe,ease:_he,easeVarying:khe,end:Zhe,[Symbol.iterator]:ui[Symbol.iterator]};function Qhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var epe={time:null,delay:0,duration:250,ease:Qhe};function tpe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function npe(e){var t,r;e instanceof _i?(t=e._id,e=e._name):(t=Tx(),(r=epe).time=op(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Ku(h,e,t,p,f,r||tpe(h,t));return new _i(o,this._parents,e,t)}Oa.prototype.interrupt=Qde;Oa.prototype.transition=npe;const Ac=e=>()=>e;function rpe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function mi(e,t,r){this.k=e,this.x=t,this.y=r}mi.prototype={constructor:mi,scale:function(e){return e===1?this:new mi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new mi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var cp=new mi(1,0,0);mi.prototype;function yd(e){e.stopImmediatePropagation()}function Nl(e){e.preventDefault(),e.stopImmediatePropagation()}function ipe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ope(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function x0(){return this.__zoom||cp}function spe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ape(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function cpe(){var e=ipe,t=ope,r=ape,o=spe,s=lpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Ude,p=Pa("start","zoom","end"),v,m,b,w=500,L=150,M=0,E=10;function A(P){P.property("__zoom",x0).on("wheel.zoom",se,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",K).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(P,S,H,V){var oe=P.selection?P.selection():P;oe.property("__zoom",x0),P!==oe?I(P,S,H,V):oe.interrupt().each(function(){F(this,arguments).event(V).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},A.scaleBy=function(P,S,H,V){A.scaleTo(P,function(){var oe=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return oe*ve},H,V)},A.scaleTo=function(P,S,H,V){A.transform(P,function(){var oe=t.apply(this,arguments),ve=this.__zoom,we=H==null?T(oe):typeof H=="function"?H.apply(this,arguments):H,Oe=ve.invert(we),je=typeof S=="function"?S.apply(this,arguments):S;return r(R($(ve,je),we,Oe),oe,f)},H,V)},A.translateBy=function(P,S,H,V){A.transform(P,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof H=="function"?H.apply(this,arguments):H),t.apply(this,arguments),f)},null,V)},A.translateTo=function(P,S,H,V,oe){A.transform(P,function(){var ve=t.apply(this,arguments),we=this.__zoom,Oe=V==null?T(ve):typeof V=="function"?V.apply(this,arguments):V;return r(cp.translate(Oe[0],Oe[1]).scale(we.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof H=="function"?-H.apply(this,arguments):-H),ve,f)},V,oe)};function $(P,S){return S=Math.max(c[0],Math.min(c[1],S)),S===P.k?P:new mi(S,P.x,P.y)}function R(P,S,H){var V=S[0]-H[0]*P.k,oe=S[1]-H[1]*P.k;return V===P.x&&oe===P.y?P:new mi(P.k,V,oe)}function T(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function I(P,S,H,V){P.on("start.zoom",function(){F(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).event(V).end()}).tween("zoom",function(){var oe=this,ve=arguments,we=F(oe,ve).event(V),Oe=t.apply(oe,ve),je=H==null?T(Oe):typeof H=="function"?H.apply(oe,ve):H,Qe=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Xe=oe.__zoom,Ye=typeof S=="function"?S.apply(oe,ve):S,ne=h(Xe.invert(je).concat(Qe/Xe.k),Ye.invert(je).concat(Qe/Ye.k));return function(W){if(W===1)W=Ye;else{var Q=ne(W),X=Qe/Q[2];W=new mi(X,je[0]-Q[0]*X,je[1]-Q[1]*X)}we.zoom(null,W)}})}function F(P,S,H){return!H&&P.__zooming||new re(P,S)}function re(P,S){this.that=P,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(P,S),this.taps=0}re.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,S){return this.mouse&&P!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&P!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(P){var S=Vn(this.that).datum();p.call(P,this.that,new rpe(P,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),S)}};function se(P,...S){if(!e.apply(this,arguments))return;var H=F(this,S).event(P),V=this.__zoom,oe=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),ve=hi(P);if(H.wheel)(H.mouse[0][0]!==ve[0]||H.mouse[0][1]!==ve[1])&&(H.mouse[1]=V.invert(H.mouse[0]=ve)),clearTimeout(H.wheel);else{if(V.k===oe)return;H.mouse=[ve,V.invert(ve)],Hc(this),H.start()}Nl(P),H.wheel=setTimeout(we,L),H.zoom("mouse",r(R($(V,oe),H.mouse[0],H.mouse[1]),H.extent,f));function we(){H.wheel=null,H.end()}}function J(P,...S){if(b||!e.apply(this,arguments))return;var H=P.currentTarget,V=F(this,S,!0).event(P),oe=Vn(P.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Qe,!0),ve=hi(P,H),we=P.clientX,Oe=P.clientY;dx(P.view),yd(P),V.mouse=[ve,this.__zoom.invert(ve)],Hc(this),V.start();function je(Xe){if(Nl(Xe),!V.moved){var Ye=Xe.clientX-we,ne=Xe.clientY-Oe;V.moved=Ye*Ye+ne*ne>M}V.event(Xe).zoom("mouse",r(R(V.that.__zoom,V.mouse[0]=hi(Xe,H),V.mouse[1]),V.extent,f))}function Qe(Xe){oe.on("mousemove.zoom mouseup.zoom",null),hx(Xe.view,V.moved),Nl(Xe),V.event(Xe).end()}}function G(P,...S){if(e.apply(this,arguments)){var H=this.__zoom,V=hi(P.changedTouches?P.changedTouches[0]:P,this),oe=H.invert(V),ve=H.k*(P.shiftKey?.5:2),we=r(R($(H,ve),V,oe),t.apply(this,S),f);Nl(P),d>0?Vn(this).transition().duration(d).call(I,we,V,P):Vn(this).call(A.transform,we,V,P)}}function K(P,...S){if(e.apply(this,arguments)){var H=P.touches,V=H.length,oe=F(this,S,P.changedTouches.length===V).event(P),ve,we,Oe,je;for(yd(P),we=0;we<V;++we)Oe=H[we],je=hi(Oe,this),je=[je,this.__zoom.invert(je),Oe.identifier],oe.touch0?!oe.touch1&&oe.touch0[2]!==je[2]&&(oe.touch1=je,oe.taps=0):(oe.touch0=je,ve=!0,oe.taps=1+!!v);v&&(v=clearTimeout(v)),ve&&(oe.taps<2&&(m=je[0],v=setTimeout(function(){v=null},w)),Hc(this),oe.start())}}function N(P,...S){if(this.__zooming){var H=F(this,S).event(P),V=P.changedTouches,oe=V.length,ve,we,Oe,je;for(Nl(P),ve=0;ve<oe;++ve)we=V[ve],Oe=hi(we,this),H.touch0&&H.touch0[2]===we.identifier?H.touch0[0]=Oe:H.touch1&&H.touch1[2]===we.identifier&&(H.touch1[0]=Oe);if(we=H.that.__zoom,H.touch1){var Qe=H.touch0[0],Xe=H.touch0[1],Ye=H.touch1[0],ne=H.touch1[1],W=(W=Ye[0]-Qe[0])*W+(W=Ye[1]-Qe[1])*W,Q=(Q=ne[0]-Xe[0])*Q+(Q=ne[1]-Xe[1])*Q;we=$(we,Math.sqrt(W/Q)),Oe=[(Qe[0]+Ye[0])/2,(Qe[1]+Ye[1])/2],je=[(Xe[0]+ne[0])/2,(Xe[1]+ne[1])/2]}else if(H.touch0)Oe=H.touch0[0],je=H.touch0[1];else return;H.zoom("touch",r(R(we,Oe,je),H.extent,f))}}function O(P,...S){if(this.__zooming){var H=F(this,S).event(P),V=P.changedTouches,oe=V.length,ve,we;for(yd(P),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ve=0;ve<oe;++ve)we=V[ve],H.touch0&&H.touch0[2]===we.identifier?delete H.touch0:H.touch1&&H.touch1[2]===we.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(we=hi(we,this),Math.hypot(m[0]-we[0],m[1]-we[1])<E)){var Oe=Vn(this).on("dblclick.zoom");Oe&&Oe.apply(this,arguments)}}}return A.wheelDelta=function(P){return arguments.length?(o=typeof P=="function"?P:Ac(+P),A):o},A.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Ac(!!P),A):e},A.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Ac(!!P),A):s},A.extent=function(P){return arguments.length?(t=typeof P=="function"?P:Ac([[+P[0][0],+P[0][1]],[+P[1][0],+P[1][1]]]),A):t},A.scaleExtent=function(P){return arguments.length?(c[0]=+P[0],c[1]=+P[1],A):[c[0],c[1]]},A.translateExtent=function(P){return arguments.length?(f[0][0]=+P[0][0],f[1][0]=+P[1][0],f[0][1]=+P[0][1],f[1][1]=+P[1][1],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(P){return arguments.length?(r=P,A):r},A.duration=function(P){return arguments.length?(d=+P,A):d},A.interpolate=function(P){return arguments.length?(h=P,A):h},A.on=function(){var P=p.on.apply(p,arguments);return P===p?A:P},A.clickDistance=function(P){return arguments.length?(M=(P=+P)*P,A):Math.sqrt(M)},A.tapDistance=function(P){return arguments.length?(E=+P,A):E},A}function upe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Cx(this.cover(t,r),t,r,e)}function Cx(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,L,M,E,A,$;if(!c)return e._root=f,e;for(;c.length;)if((M=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[A=E<<1|M]))return s[A]=f,e;if(w=+e._x.call(null,c.data),L=+e._y.call(null,c.data),t===w&&r===L)return f.next=c,s?s[A]=f:e._root=f,e;do s=s?s[A]=new Array(4):e._root=new Array(4),(M=t>=(m=(d+p)/2))?d=m:p=m,(E=r>=(b=(h+v)/2))?h=b:v=b;while((A=E<<1|M)===($=(L>=b)<<1|w>=m));return s[$]=c,s[A]=f,e}function fpe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)Cx(this,f[r],d[r],e[r]);return this}function dpe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function hpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function ppe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function On(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function gpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,L,M;for(w&&b.push(new On(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);L=b.pop();)if(!(!(w=L.node)||(f=L.x0)>v||(d=L.y0)>m||(h=L.x1)<s||(p=L.y1)<c))if(w.length){var E=(f+h)/2,A=(d+p)/2;b.push(new On(w[3],E,A,h,p),new On(w[2],f,A,E,p),new On(w[1],E,d,h,A),new On(w[0],f,d,E,A)),(M=(t>=A)<<1|e>=E)&&(L=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=L)}else{var $=e-+this._x.call(null,w.data),R=t-+this._y.call(null,w.data),T=$*$+R*R;if(T<r){var I=Math.sqrt(r=T);s=e-I,c=t-I,v=e+I,m=t+I,o=w.data}}return o}function vpe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,L,M,E,A;if(!r)return this;if(r.length)for(;;){if((L=v>=(b=(f+h)/2))?f=b:h=b,(M=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[E=M<<1|L]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,A=E)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[A]=r:this._root=r),this):(this._root=c,this)}function mpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function ype(){return this._root}function bpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function wpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new On(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new On(s,p,v,d,h)),(s=o[2])&&t.push(new On(s,c,v,p,h)),(s=o[1])&&t.push(new On(s,p,f,d,v)),(s=o[0])&&t.push(new On(s,c,f,p,v))}return this}function xpe(e){var t=[],r=[],o;for(this._root&&t.push(new On(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new On(c,f,d,v,m)),(c=s[1])&&t.push(new On(c,v,d,h,m)),(c=s[2])&&t.push(new On(c,f,m,v,p)),(c=s[3])&&t.push(new On(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function _pe(e){return e[0]}function Spe(e){return arguments.length?(this._x=e,this):this._x}function kpe(e){return e[1]}function Tpe(e){return arguments.length?(this._y=e,this):this._y}function up(e,t,r){var o=new fp(t??_pe,r??kpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function fp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function _0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=up.prototype=fp.prototype;zn.copy=function(){var e=new fp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=_0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=_0(o));return e};zn.add=upe;zn.addAll=fpe;zn.cover=dpe;zn.data=hpe;zn.extent=ppe;zn.find=gpe;zn.remove=vpe;zn.removeAll=mpe;zn.root=ype;zn.size=bpe;zn.visit=wpe;zn.visitAfter=xpe;zn.x=Spe;zn.y=Tpe;function Rn(e){return function(){return e}}function Yi(e){return(e()-.5)*1e-6}function Cpe(e){return e.x+e.vx}function Epe(e){return e.y+e.vy}function Ape(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,L,M,E,A=0;A<c;++A)for(m=up(t,Cpe,Epe).visitAfter(d),p=0;p<v;++p)b=t[p],M=r[b.index],E=M*M,w=b.x+b.vx,L=b.y+b.vy,m.visit($);function $(R,T,I,F,re){var se=R.data,J=R.r,G=M+J;if(se){if(se.index>b.index){var K=w-se.x-se.vx,N=L-se.y-se.vy,O=K*K+N*N;O<G*G&&(K===0&&(K=Yi(o),O+=K*K),N===0&&(N=Yi(o),O+=N*N),O=(G-(O=Math.sqrt(O)))/O*s,b.vx+=(K*=O)*(G=(J*=J)/(E+J)),b.vy+=(N*=O)*G,se.vx-=K*(G=1-G),se.vy-=N*G)}return}return T>w+G||F<w-G||I>L+G||re<L-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),f):e},f}function Lpe(e){return e.index}function S0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Mpe(e){var t=Lpe,r=m,o,s=Rn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var A=0,$=e.length;A<v;++A)for(var R=0,T,I,F,re,se,J,G;R<$;++R)T=e[R],I=T.source,F=T.target,re=F.x+F.vx-I.x-I.vx||Yi(p),se=F.y+F.vy-I.y-I.vy||Yi(p),J=Math.sqrt(re*re+se*se),J=(J-c[R])/J*E*o[R],re*=J,se*=J,F.vx-=re*(G=h[R]),F.vy-=se*G,I.vx+=re*(G=1-G),I.vy+=se*G}function w(){if(f){var E,A=f.length,$=e.length,R=new Map(f.map((I,F)=>[t(I,F,f),I])),T;for(E=0,d=new Array(A);E<$;++E)T=e[E],T.index=E,typeof T.source!="object"&&(T.source=S0(R,T.source)),typeof T.target!="object"&&(T.target=S0(R,T.target)),d[T.source.index]=(d[T.source.index]||0)+1,d[T.target.index]=(d[T.target.index]||0)+1;for(E=0,h=new Array($);E<$;++E)T=e[E],h[E]=d[T.source.index]/(d[T.source.index]+d[T.target.index]);o=new Array($),L(),c=new Array($),M()}}function L(){if(f)for(var E=0,A=e.length;E<A;++E)o[E]=+r(e[E],E,e)}function M(){if(f)for(var E=0,A=e.length;E<A;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,A){f=E,p=A,w()},b.links=function(E){return arguments.length?(e=E,w(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Rn(+E),L(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Rn(+E),M(),b):s},b}const $pe=1664525,Npe=1013904223,k0=4294967296;function Ope(){let e=1;return()=>(e=($pe*e+Npe)%k0)/k0}function Ppe(e){return e.x}function Rpe(e){return e.y}var zpe=10,Ipe=Math.PI*(3-Math.sqrt(5));function Dpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=sp(m),p=Pa("tick","end"),v=Ope();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(M){var E,A=e.length,$;M===void 0&&(M=1);for(var R=0;R<M;++R)for(r+=(c-r)*s,d.forEach(function(T){T(r)}),E=0;E<A;++E)$=e[E],$.fx==null?$.x+=$.vx*=f:($.x=$.fx,$.vx=0),$.fy==null?$.y+=$.vy*=f:($.y=$.fy,$.vy=0);return t}function w(){for(var M=0,E=e.length,A;M<E;++M){if(A=e[M],A.index=M,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var $=zpe*Math.sqrt(.5+M),R=M*Ipe;A.x=$*Math.cos(R),A.y=$*Math.sin(R)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function L(M){return M.initialize&&M.initialize(e,v),M}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(M){return arguments.length?(e=M,w(),d.forEach(L),t):e},alpha:function(M){return arguments.length?(r=+M,t):r},alphaMin:function(M){return arguments.length?(o=+M,t):o},alphaDecay:function(M){return arguments.length?(s=+M,t):+s},alphaTarget:function(M){return arguments.length?(c=+M,t):c},velocityDecay:function(M){return arguments.length?(f=1-M,t):1-f},randomSource:function(M){return arguments.length?(v=M,d.forEach(L),t):v},force:function(M,E){return arguments.length>1?(E==null?d.delete(M):d.set(M,L(E)),t):d.get(M)},find:function(M,E,A){var $=0,R=e.length,T,I,F,re,se;for(A==null?A=1/0:A*=A,$=0;$<R;++$)re=e[$],T=M-re.x,I=E-re.y,F=T*T+I*I,F<A&&(se=re,A=F);return se},on:function(M,E){return arguments.length>1?(p.on(M,E),t):p.on(M)}}}function Fpe(){var e,t,r,o,s=Rn(-30),c,f=1,d=1/0,h=.81;function p(w){var L,M=e.length,E=up(e,Ppe,Rpe).visitAfter(m);for(o=w,L=0;L<M;++L)t=e[L],E.visit(b)}function v(){if(e){var w,L=e.length,M;for(c=new Array(L),w=0;w<L;++w)M=e[w],c[M.index]=+s(M,w,e)}}function m(w){var L=0,M,E,A=0,$,R,T;if(w.length){for($=R=T=0;T<4;++T)(M=w[T])&&(E=Math.abs(M.value))&&(L+=M.value,A+=E,$+=E*M.x,R+=E*M.y);w.x=$/A,w.y=R/A}else{M=w,M.x=M.data.x,M.y=M.data.y;do L+=c[M.data.index];while(M=M.next)}w.value=L}function b(w,L,M,E){if(!w.value)return!0;var A=w.x-t.x,$=w.y-t.y,R=E-L,T=A*A+$*$;if(R*R/h<T)return T<d&&(A===0&&(A=Yi(r),T+=A*A),$===0&&($=Yi(r),T+=$*$),T<f&&(T=Math.sqrt(f*T)),t.vx+=A*w.value*o/T,t.vy+=$*w.value*o/T),!0;if(w.length||T>=d)return;(w.data!==t||w.next)&&(A===0&&(A=Yi(r),T+=A*A),$===0&&($=Yi(r),T+=$*$),T<f&&(T=Math.sqrt(f*T)));do w.data!==t&&(R=c[w.data.index]*o/T,t.vx+=A*R,t.vy+=$*R);while(w=w.next)}return p.initialize=function(w,L){e=w,r=L,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Rn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Hpe(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}function Bpe(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}function Wpe(){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 T0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Zi(...e){return e.reduce((t,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(t[o])&&Array.isArray(r[o])?t[o]=Zi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:T0(t[o])&&T0(r[o])?t[o]=Zi(t[o],r[o]):t[o]=r[o])}),t},{})}const Ex={mergeArrays:!0};Zi.options=Ex;Zi.withOptions=(e,...t)=>{Zi.options={mergeArrays:!0,...e};const r=Zi(...t);return Zi.options=Ex,r};function qpe(){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 jpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Ax(e){e.preventDefault(),e.stopPropagation()}function Lx(e){return typeof e=="number"}function ao(e,t){return Lx(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Upe(e){return`${e.source.id}-${e.target.id}`}function Mx(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Vpe(e){return`url(#${Mx(e.color)})`}function Gpe(e){return{size:e,padding:(t,r)=>ao(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const $x={Arrow:e=>Gpe(e)},Kpe=(e,t,r)=>[t/2,r/2],Xpe=(e,t,r)=>[C0(0,t),C0(0,r)];function C0(e,t){return Math.random()*(t-e)+e}const lh={Centered:Kpe,Randomized:Xpe};function Ype(){return{autoResize:!1,callbacks:{},hooks:{},initial:jpe(),nodeRadius:16,marker:$x.Arrow(4),modifiers:{},positionInitializer:lh.Centered,simulation:{alphas:Wpe(),forces:qpe()},zoom:{initial:1,min:.1,max:2}}}function Zpe(e={}){return Zi.withOptions({mergeArrays:!1},Ype(),e)}function Jpe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>Ax(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 e&&p.call(h.transform,cp.translate(c,f).scale(d)),p.append("g")}function Qpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function ege({config:e,onDragStart:t,onDragEnd:r}){var s,c;const o=bde().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Vn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Vn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(c=(s=e.modifiers).drag)==null||c.call(s,o),o}function tge({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:nge({links:c},r)}function nge(e,t){const r=[...rge(e,t),...ige(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function rge(e,t){return Nx(e,t,(r,o)=>r.target.id===o.id)}function ige(e,t){return Nx(e,t,(r,o)=>r.source.id===o.id)}function Nx(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function ah(e){return e.x??0}function ch(e){return e.y??0}function dp({source:e,target:t}){const r=new $n(ah(e),ch(e)),o=new $n(ah(t),ch(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function Ox({center:e,node:t}){const r=new $n(ah(t),ch(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new $n(0,1))),{n:r,c:o}}function Px({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=dp({source:t,target:r}),f=o.add(c.multiply(ao(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function oge(e){const{start:t,end:r}=Px(e);return`M${t.x},${t.y}
46
+ L${r.x},${r.y}`}function sge(e){const{start:t,end:r}=Px(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function lge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=dp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(ao(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ao(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
47
+ A${m},${m},0,0,1,${v.x},${v.y}`}function age({center:e,config:t,node:r}){const{n:o,c:s}=Ox({center:e,node:r}),c=ao(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
48
+ A${c},${c},0,1,0,${v.x},${v.y}`}function cge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=dp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function uge({center:e,config:t,node:r}){const{n:o,c:s}=Ox({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ao(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Rs={line:{labelTransform:sge,path:oge},arc:{labelTransform:cge,path:lge},reflexive:{labelTransform:uge,path:age}};function fge(e){return e.append("g").classed("links",!0).selectAll("path")}function dge({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Upe(c)).join(c=>{var p,v,m,b;const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",w=>Vpe(w)).style("stroke",w=>w.color);(v=(p=e.modifiers).link)==null||v.call(p,d);const h=f.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(b=(m=e.modifiers).linkLabel)==null||b.call(m,h),f});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function hge(e){pge(e),gge(e)}function pge({center:e,config:t,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?Rs.reflexive.path({config:t,node:s.source,center:e}):Rx(r,s.source,s.target)?Rs.arc.path({config:t,source:s.source,target:s.target}):Rs.line.path({config:t,source:s.source,target:s.target}))}function gge({config:e,center:t,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?Rs.reflexive.labelTransform({config:e,node:s.source,center:t}):Rx(r,s.source,s.target)?Rs.arc.labelTransform({config:e,source:s.source,target:s.target}):Rs.line.labelTransform({config:e,source:s.source,target:s.target}))}function Rx(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function vge(e){return e.append("defs").selectAll("marker")}function mge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(yge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Mx(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",bge(e.marker.path)),s})}function yge(e){return[...new Set(e.links.map(t=>t.color))]}function bge(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function wge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function xge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var b,w,L,M;const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",E=>ao(e,E)).on("contextmenu",(E,A)=>{Ax(E),o(A)}).on("pointerdown",(E,A)=>Sge(E,A,s??o)).style("fill",E=>E.color);(w=(b=e.modifiers).node)==null||w.call(b,v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(M=(L=e.modifiers).nodeLabel)==null||M.call(L,m),p});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const _ge=500;function Sge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>_ge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function kge(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Tge({center:e,config:t,graph:r,onTick:o}){var p,v;const s=Dpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const m=c.strength;s.force("x",Hpe(()=>e().x).strength(m)).force("y",Bpe(()=>e().y).strength(m))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",Fpe().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Ape().radius(m=>d.radiusMultiplier*ao(t,m)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Mpe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),(v=(p=t.modifiers).simulation)==null||v.call(p,s),s}function Cge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var f,d;const c=cpe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(d=(f=t.modifiers).zoom)==null||d.call(f,c),c}class Ege{constructor(t,r,o){ot(this,"nodeTypes");ot(this,"_nodeTypeFilter");ot(this,"_includeUnlinked",!0);ot(this,"_linkFilter",()=>!0);ot(this,"_showLinkLabels",!0);ot(this,"_showNodeLabels",!0);ot(this,"filteredGraph");ot(this,"width",0);ot(this,"height",0);ot(this,"simulation");ot(this,"canvas");ot(this,"linkSelection");ot(this,"nodeSelection");ot(this,"markerSelection");ot(this,"zoom");ot(this,"drag");ot(this,"xOffset",0);ot(this,"yOffset",0);ot(this,"scale");ot(this,"focusedNode");ot(this,"resizeObserver");ot(this,"container");ot(this,"graph");ot(this,"config");if(this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Lue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return $n.of([this.width,this.height]).divide(2).subtract($n.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(Lx(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=mge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=dge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=xge({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=Tge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?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 t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Cge({config:this.config,canvasContainer:()=>Vn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Jpe({applyZoom:this.scale!==1,container:Vn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=fge(this.canvas),this.nodeSelection=wge(this.canvas),this.markerSelection=vge(this.canvas),this.drag=ege({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){kge(this.nodeSelection),hge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Vn(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(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.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(){Qpe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=tge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function E0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Age(e){return{...e}}function zx(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Lge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Mge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},$ge={flex:"~ gap-1","items-center":"","select-none":""},Nge=["id","checked","onChange"],Oge=["for"],Pge=ct({__name:"ViewModuleGraph",props:na({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Nu(e,"modelValue"),{graph:o}=DS(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();Ph(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),co(()=>{v()}),Mu(()=>{var w;(w=d.value)==null||w.shutdown()}),St(o,()=>v());function h(w,L){var M;(M=d.value)==null||M.filterNodesByType(L,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var L;if((L=d.value)==null||L.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new Ege(s.value,o.value,Zpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:M,newWidth:E})=>M===0&&E===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:$x.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?lh.Randomized:lh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(dr)return;let L=0,M=0,E=0;w.on("pointerdown",(A,$)=>{$.type!=="external"&&(!$.x||!$.y||!m(A)||(L=$.x,M=$.y,E=Date.now()))}).on("pointerup",(A,$)=>{if($.type==="external"||!$.x||!$.y||!m(A)||Date.now()-E>500)return;const R=$.x-L,T=$.y-M;R**2+T**2<100&&p($.id)})}return(w,L)=>{var R;const M=Jr,E=Aue,A=tp,$=Rr("tooltip");return ie(),ye("div",Lge,[ee("div",null,[ee("div",Mge,[ee("div",$ge,[ut(ee("input",{id:"hide-node-modules","onUpdate:modelValue":L[0]||(L[0]=T=>r.value=T),type:"checkbox"},null,512),[[mb,r.value]]),L[4]||(L[4]=ee("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ie(!0),ye(nt,null,fr((R=B(d))==null?void 0:R.nodeTypes.sort(),T=>{var I;return ie(),ye("div",{key:T,flex:"~ gap-1","items-center":"","select-none":""},[ee("input",{id:`type-${T}`,type:"checkbox",checked:(I=B(d))==null?void 0:I.nodeTypeFilter.includes(T),onChange:F=>h(T,F.target.checked)},null,40,Nge),ee("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${T}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${T})`})},ze(T)+" Modules",13,Oge)])}),128)),L[5]||(L[5]=ee("div",{"flex-auto":""},null,-1)),ee("div",null,[ut(Pe(M,{icon:"i-carbon-reset",onClick:L[1]||(L[1]=T=>v(!0))},null,512),[[$,"Reset",void 0,{bottom:!0}]])])])]),ee("div",{ref_key:"el",ref:s},null,512),Pe(A,{modelValue:B(c),"onUpdate:modelValue":L[3]||(L[3]=T=>Tt(c)?c.value=T:null),direction:"right"},{default:it(()=>[B(f)?(ie(),Je(zh,{key:0},{default:it(()=>[Pe(E,{id:B(f),"project-name":w.projectName,onClose:L[2]||(L[2]=T=>c.value=!1)},null,8,["id","project-name"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])])}}}),Rge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},zge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Ige={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Dge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Fge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Hge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Ix=ct({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Rr("tooltip");return t.state==="pass"?(ie(),ye("div",Rge)):t.failedSnapshot?ut((ie(),ye("div",zge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(ie(),ye("div",Ige)):t.mode==="todo"?ut((ie(),ye("div",Dge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?ut((ie(),ye("div",Fge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ie(),ye("div",Hge))}}});function Bge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Wge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function qge(e){const t=e.map(o=>Wge(o)),r=Bge(t);return t.map(({raw:o,id:s})=>zx({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 jge(e,t){return zx({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Uge(e,t){if(!e)return E0({});const r=qge(e.externalized),o=e.inlined.map(d=>jge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return Age({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return E0({nodes:s,links:f})}const Vge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Gge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Kge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Xge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Yge={class:"flex text-lg"},Zge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Jge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Qge={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},eve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},tve=["flex-1"],nve=ct({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=Se(()=>Ms.value?pt.state.idMap.get(Ms.value):void 0),h=Se(()=>{const T=jt.value;if(!(!T||!T.filepath))return{filepath:T.filepath,projectName:T.file.projectName||""}}),p=Se(()=>jt.value&&Yh(jt.value)),v=Se(()=>{var T,I;return!!((I=(T=jt.value)==null?void 0:T.meta)!=null&&I.typecheck)});function m(){var I;const T=(I=jt.value)==null?void 0:I.filepath;T&&fetch(`/__open-in-editor?file=${encodeURIComponent(T)}`)}function b(T){T==="graph"&&(o.value=!0),Wn.value=T}const w=Se(()=>{var T;return((T=qw.value)==null?void 0:T.reduce((I,{size:F})=>I+F,0))??0});function L(T){r.value=T}const M=/[/\\]node_modules[/\\]/;async function E(T=!1){var I;if(!(s.value||((I=h.value)==null?void 0:I.filepath)===c.value&&!T)){s.value=!0,await At();try{const F=h.value;if(!F){s.value=!1;return}if(T||!c.value||F.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let re=await pt.rpc.getModuleGraph(F.projectName,F.filepath,!!Ot);f.value&&(dr&&(re=typeof window.structuredClone<"u"?window.structuredClone(re):DE(re)),re.inlined=re.inlined.filter(se=>!M.test(se)),re.externalized=re.externalized.filter(se=>!M.test(se))),t.value=Uge(re,F.filepath),c.value=F.filepath}b("graph")}finally{await new Promise(F=>setTimeout(F,100)),s.value=!1}}}Gh(()=>[h.value,Wn.value,f.value],([,T,I],F)=>{T==="graph"&&E(F&&I!==F[2])},{debounce:100,immediate:!0});const A=Se(()=>{var I,F;const T=((I=jt.value)==null?void 0:I.file.projectName)||"";return Ae.colors.get(T)||yw((F=jt.value)==null?void 0:F.file.projectName)}),$=Se(()=>bw(A.value)),R=Se(()=>{var re;const T=Ms.value;if(!T)return(re=jt.value)==null?void 0:re.name;const I=[];let F=pt.state.idMap.get(T);for(;F;)I.push(F.name),F=F.suite?F.suite:F===F.file?void 0:F.file;return I.reverse().join(" > ")});return(T,I)=>{var P,S,H;const F=Ix,re=Jr,se=Pge,J=wue,G=bue,K=hue,N=oue,O=Rr("tooltip");return B(jt)?(ie(),ye("div",Vge,[ee("div",null,[ee("div",Gge,[Pe(F,{state:(P=B(jt).result)==null?void 0:P.state,mode:B(jt).mode,"failed-snapshot":B(p)},null,8,["state","mode","failed-snapshot"]),B(v)?ut((ie(),ye("div",Kge,null,512)),[[O,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),(S=B(jt))!=null&&S.file.projectName?(ie(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:en({backgroundColor:B(A),color:B($)})},ze(B(jt).file.projectName),5)):qe("",!0),ee("div",Xge,ze(B(R)),1),ee("div",Yge,[B(dr)?qe("",!0):ut((ie(),Je(re,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((H=B(jt))!=null&&H.filepath),onClick:m},null,8,["disabled"])),[[O,"Open in editor",void 0,{bottom:!0}]])])]),ee("div",Zge,[ee("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":B(Wn)==null}]),"data-testid":"btn-report",onClick:I[0]||(I[0]=V=>b(null))},[...I[5]||(I[5]=[ee("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ht(" Report ",-1)])],2),ee("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":B(Wn)==="graph"}]),onClick:I[1]||(I[1]=V=>b("graph"))},[B(s)?(ie(),ye("span",Jge)):(ie(),ye("span",Qge)),I[6]||(I[6]=ht(" Module Graph ",-1))],2),ee("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":B(Wn)==="editor"}]),onClick:I[2]||(I[2]=V=>b("editor"))},[I[7]||(I[7]=ee("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),ht(" "+ze(B(r)?"* ":"")+"Code ",1)],2),ee("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":B(Wn)==="console",op20:B(Wn)!=="console"&&B(w)===0}]),onClick:I[3]||(I[3]=V=>b("console"))},[I[8]||(I[8]=ee("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),ht(" Console ("+ze(B(w))+") ",1)],2)])]),ee("div",eve,[B(o)?(ie(),ye("div",{key:0,"flex-1":B(Wn)==="graph"&&""},[ut(Pe(se,{modelValue:B(f),"onUpdate:modelValue":I[4]||(I[4]=V=>Tt(f)?f.value=V:null),graph:B(t),"data-testid":"graph","project-name":B(jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Xi,B(Wn)==="graph"&&!B(s)]])],8,tve)):qe("",!0),B(Wn)==="editor"?(ie(),Je(J,{key:B(jt).id,file:B(jt),"data-testid":"editor",onDraft:L},null,8,["file"])):B(Wn)==="console"?(ie(),Je(G,{key:2,file:B(jt),"data-testid":"console"},null,8,["file"])):!B(Wn)&&!B(d)&&B(jt)?(ie(),Je(K,{key:3,file:B(jt),"data-testid":"report"},null,8,["file"])):!B(Wn)&&B(d)?(ie(),Je(N,{key:4,test:B(d),"data-testid":"report"},null,8,["test"])):qe("",!0)])])):qe("",!0)}}}),rve={h:"full",flex:"~ col"},ive={"flex-auto":"","py-1":"","bg-white":""},ove=["src"],sve=ct({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ie(),ye("div",rve,[r[0]||(r[0]=ee("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ee("div",{class:"i-carbon:folder-details-reference"}),ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),ee("div",ive,[ee("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,ove)])]))}}),lve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},ave={"font-bold":""},cve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},uve=["font-bold"],fve={text:"red500/70"},dve={key:1,text:"sm","mb-2":""},hve={"font-bold":""},pve={key:2,text:"sm","mb-2":""},gve={"font-bold":""},vve={key:3,text:"sm","font-thin":""},mve=ct({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return ie(),ye(nt,null,[ee("h4",lve,[ee("span",ave,[ht(ze(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(ie(),ye(nt,{key:0},[ht(":")],64)):qe("",!0)]),ht(" "+ze(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(ie(),ye("p",cve,[(ie(!0),ye(nt,null,fr(t.error.stacks,(s,c)=>(ie(),ye("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[ht("❯ "+ze(s.method)+" "+ze(s.file)+":",1),ee("span",fve,ze(s.line)+":"+ze(s.column),1),r[0]||(r[0]=ee("br",null,null,-1))],8,uve))),128))])):qe("",!0),t.error.VITEST_TEST_PATH?(ie(),ye("p",dve,[r[1]||(r[1]=ht(" This error originated in ",-1)),ee("span",hve,ze(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=ht(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):qe("",!0),t.error.VITEST_TEST_NAME?(ie(),ye("div",pve,[r[3]||(r[3]=ht(" The latest test that might've caused the error is ",-1)),ee("span",gve,ze(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=ht(". It might mean one of the following:",-1)),r[5]||(r[5]=ee("br",null,null,-1)),r[6]||(r[6]=ee("ul",null,[ee("li",null," The error was thrown, while Vitest was running this test. "),ee("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):qe("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(ie(),ye("div",vve,[...r[7]||(r[7]=[ht(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:",-1),ee("br",null,null,-1),ee("ul",null,[ee("li",null," Cancel timeouts using clearTimeout and clearInterval. "),ee("li",null," Wait for promises to resolve using the await keyword. ")],-1)])])):qe("",!0)],64)}}}),yve={"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:""},bve={class:"number","data-testid":"num-files"},wve={class:"number"},xve={class:"number","text-red5":""},_ve={class:"number","text-red5":""},Sve={class:"number","text-red5":""},kve={class:"number","data-testid":"run-time"},Tve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Cve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Eve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Ave=ct({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=mve;return ie(),ye(nt,null,[ee("div",yve,[r[8]||(r[8]=ee("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=ee("div",null,"Files",-1)),ee("div",bve,ze(B(Ae).summary.files),1),B(Ae).summary.filesSuccess?(ie(),ye(nt,{key:0},[r[0]||(r[0]=ee("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=ee("div",null,"Pass",-1)),ee("div",wve,ze(B(Ae).summary.filesSuccess),1)],64)):qe("",!0),B(Ae).summary.filesFailed?(ie(),ye(nt,{key:1},[r[2]||(r[2]=ee("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=ee("div",null," Fail ",-1)),ee("div",xve,ze(B(Ae).summary.filesFailed),1)],64)):qe("",!0),B(Ae).summary.filesSnapshotFailed?(ie(),ye(nt,{key:2},[r[4]||(r[4]=ee("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=ee("div",null," Snapshot Fail ",-1)),ee("div",_ve,ze(B(Ae).summary.filesSnapshotFailed),1)],64)):qe("",!0),B(Vi).length?(ie(),ye(nt,{key:3},[r[6]||(r[6]=ee("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=ee("div",null," Errors ",-1)),ee("div",Sve,ze(B(Vi).length),1)],64)):qe("",!0),r[10]||(r[10]=ee("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=ee("div",null,"Time",-1)),ee("div",kve,ze(B(Ae).summary.time),1)]),B(Vi).length?(ie(),ye("div",Tve,[r[15]||(r[15]=ee("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),ee("p",Cve,[ht(" Vitest caught "+ze(B(Vi).length)+" error"+ze(B(Vi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=ee("br",null,null,-1)),r[13]||(r[13]=ht(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),ee("details",Eve,[r[14]||(r[14]=ee("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ie(!0),ye(nt,null,fr(B(Vi),(s,c)=>(ie(),Je(o,{key:c,error:s},null,8,["error"]))),128))])])):qe("",!0)],64)}}}),Lve=Zr(Ave,[["__scopeId","data-v-0178ddee"]]),Mve={"p-2":"","text-center":"",flex:""},$ve={"text-4xl":"","min-w-2em":""},Nve={"text-md":""},Ove=ct({__name:"DashboardEntry",setup(e){return(t,r)=>(ie(),ye("div",Mve,[ee("div",null,[ee("div",$ve,[wn(t.$slots,"body")]),ee("div",Nve,[wn(t.$slots,"header")])])]))}}),Pve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Rve=ct({__name:"TestsEntry",setup(e){function t(r){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,r!=="total"&&(Ze[r]=!0)}return(r,o)=>{const s=Ove;return ie(),ye("div",Pve,[Pe(s,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=c=>t("success"))},{header:it(()=>[...o[4]||(o[4]=[ht(" Pass ",-1)])]),body:it(()=>[ht(ze(B(Ae).summary.testsSuccess),1)]),_:1}),Pe(s,{class:st({"text-red5":B(Ae).summary.testsFailed,op50:!B(Ae).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=c=>t("failed"))},{header:it(()=>[...o[5]||(o[5]=[ht(" Fail ",-1)])]),body:it(()=>[ht(ze(B(Ae).summary.testsFailed),1)]),_:1},8,["class"]),B(Ae).summary.testsSkipped?(ie(),Je(s,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=c=>t("skipped"))},{header:it(()=>[...o[6]||(o[6]=[ht(" Skip ",-1)])]),body:it(()=>[ht(ze(B(Ae).summary.testsSkipped),1)]),_:1})):qe("",!0),B(Ae).summary.testsTodo?(ie(),Je(s,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...o[7]||(o[7]=[ht(" Todo ",-1)])]),body:it(()=>[ht(ze(B(Ae).summary.testsTodo),1)]),_:1})):qe("",!0),Pe(s,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=c=>t("total"))},{header:it(()=>[...o[8]||(o[8]=[ht(" Total ",-1)])]),body:it(()=>[ht(ze(B(Ae).summary.totalTests),1)]),_:1})])}}}),zve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Ive={key:0,class:"text-gray-5"},Dve={"aria-labelledby":"tests",m:"y-4 x-2"},Fve=ct({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=Rve,s=Lve;return ie(),ye("div",zve,[B(Ae).summary.files===0&&B(ys)?(ie(),ye("div",Ive," No tests found ")):qe("",!0),ee("section",Dve,[Pe(o)]),Pe(s)])}}}),Hve={},Bve={h:"full",flex:"~ col"},Wve={class:"scrolls","flex-auto":"","py-1":""};function qve(e,t){const r=Fve;return ie(),ye("div",Bve,[t[0]||(t[0]=ee("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ee("div",{class:"i-carbon-dashboard"}),ee("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),ee("div",Wve,[Pe(r)])])}const jve=Zr(Hve,[["render",qve]]),Uve=["open"],Vve=ct({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ie(),ye("div",{open:B(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[ee("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=ee("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),wn(r.$slots,"summary",{open:B(t)}),o[2]||(o[2]=ee("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),wn(r.$slots,"default")],40,Uve))}}),Gve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Kve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(ie(),ye("button",Gve,[ee("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Xve=["aria-label","data-current"],Yve={key:1,"w-4":""},Zve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Jve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Qve={"text-sm":"",truncate:"","font-light":""},eme=["text","innerHTML"],tme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},nme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},rme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},ime={key:1},ome=ct({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>pt.state.idMap.get(e.taskId)),r=Se(()=>{if(dr)return!1;const E=t.value;return E&&Yh(E)});function o(){var E;if(!e.expandable){(E=e.onItemClick)==null||E.call(e,t.value);return}e.opened?Ae.collapseNode(e.taskId):Ae.expandNode(e.taskId)}async function s(E){var A;(A=e.onItemClick)==null||A.call(e,E),ws.value&&(uu.value=!0,await At()),e.type==="file"?await ep([E.file]):await Zae(E)}function c(E){return pt.rpc.updateSnapshot(E.file)}const f=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(E,A)=>`${e.taskId}-${A}`)),d=Se(()=>{const E=f.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${E.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),h=Se(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>vw(e.name)),v=Se(()=>{const E=fA.value,A=p.value;return E?A.replace(E,$=>`<span class="highlight">${$}</span>`):A}),m=Se(()=>e.type!=="file"&&e.disableTaskLocation),b=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>m.value?"color-red5 dark:color-#f43f5e":null);function L(){var A;const E=t.value;e.type==="file"?(A=e.onItemClick)==null||A.call(e,E):Oce(E)}const M=Se(()=>bw(e.projectNameColor));return(E,A)=>{const $=Ix,R=Kve,T=Jr,I=Rr("tooltip");return B(t)?(ie(),ye("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:en(B(d)),"aria-label":E.name,"data-current":E.current,onClick:A[2]||(A[2]=F=>o())},[E.indent>0?(ie(!0),ye(nt,{key:0},fr(B(f),F=>(ie(),ye("div",{key:F,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):qe("",!0),E.type==="file"||E.type==="suite"?(ie(),ye("div",Yve,[ee("div",{class:st(E.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):qe("",!0),Pe($,{state:E.state,mode:B(t).mode,"failed-snapshot":B(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),ee("div",Zve,[E.type==="file"&&E.typecheck?ut((ie(),ye("div",Jve,null,512)),[[I,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),ee("span",Qve,[E.type==="file"&&E.projectName?(ie(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:en({backgroundColor:E.projectNameColor,color:B(M)})},ze(E.projectName),5)):qe("",!0),ee("span",{text:E.state==="fail"?"red-500":"",innerHTML:B(v)},null,8,eme)]),typeof E.duration=="number"?(ie(),ye("span",tme,ze(E.duration>0?E.duration:"< 1")+"ms ",1)):qe("",!0)]),ee("div",nme,[!B(dr)&&B(r)?ut((ie(),Je(R,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=Pc(F=>c(B(t)),["prevent","stop"]))},null,512)),[[I,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),Pe(B(Hb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",B(w)])},{popper:it(()=>[B(m)?(ie(),ye("div",rme,[A[5]||(A[5]=ee("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),ee("div",null,[ht(ze(B(b))+": this feature is not available, you have disabled ",1),A[3]||(A[3]=ee("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),A[4]||(A[4]=ht(" in your configuration file.",-1))]),A[6]||(A[6]=ee("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ie(),ye("div",ime,ze(B(b)),1))]),default:it(()=>[Pe(T,{"data-testid":"btn-open-details",icon:E.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Pc(L,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),B(dr)?qe("",!0):ut((ie(),Je(T,{key:1,"data-testid":"btn-run-test",title:B(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:A[1]||(A[1]=Pc(F=>s(B(t)),["prevent","stop"]))},null,8,["title"])),[[I,B(h),void 0,{bottom:!0}]])])],12,Xve)):qe("",!0)}}}),sme=Zr(ome,[["__scopeId","data-v-5b954324"]]),lme={"flex-1":"","ms-2":"","select-none":""},ame=ct({__name:"FilterStatus",props:na({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Nu(e,"modelValue");return(r,o)=>(ie(),ye("label",yi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Pc(s=>t.value=!t.value,["prevent"]))}),[ee("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ut(ee("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[mb,t.value]]),ee("span",lme,ze(r.label),1)],16))}});function cme(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Bc;function uh(){uh.init||(uh.init=!0,Bc=cme()!==-1)}var Xu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){uh(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Bc&&this.$el.appendChild(e),e.data="about:blank",Bc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Bc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ume=My();Ay("data-v-b329ee4c");const fme={class:"resize-observer",tabindex:"-1"};Ly();const dme=ume((e,t,r,o,s,c)=>(ie(),Je("div",fme)));Xu.render=dme;Xu.__scopeId="data-v-b329ee4c";Xu.__file="src/components/ResizeObserver.vue";function Wc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wc=function(t){return typeof t}:Wc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function hme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pme(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gme(e,t,r){return t&&pme(e.prototype,t),e}function A0(e){return vme(e)||mme(e)||yme(e)||bme()}function vme(e){if(Array.isArray(e))return fh(e)}function mme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yme(e,t){if(e){if(typeof e=="string")return fh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fh(e,t)}}function fh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function bme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function xme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(A0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(A0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function Dx(e,t){if(e===t)return!0;if(Wc(e)==="object"){for(var r in e)if(!Dx(e[r],t[r]))return!1;return!0}return!1}var _me=function(){function e(t,r,o){hme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return gme(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=wme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=xme(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),At(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Fx(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new _me(e,o,r);e._vue_visibilityState=s}}function Sme(e,t,r){var o=t.value,s=t.oldValue;if(!Dx(o,s)){var c=e._vue_visibilityState;if(!o){Hx(e);return}c?c.createObserver(o,r):Fx(e,{value:o},r)}}function Hx(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var kme={beforeMount:Fx,updated:Sme,unmounted:Hx},Tme={itemsLimit:1e3},Cme=/(auto|scroll)/;function Bx(e,t){return e.parentNode===null?t:Bx(e.parentNode,t.concat([e]))}var bd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Eme=function(t){return bd(t,"overflow")+bd(t,"overflow-y")+bd(t,"overflow-x")},Ame=function(t){return Cme.test(Eme(t))};function L0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Bx(e.parentNode,[]),r=0;r<t.length;r+=1)if(Ame(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}var Lme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Mme(){return this.items.length&&dh(this.items[0])!=="object"}var hh=!1;if(typeof window<"u"){hh=!1;try{var $me=Object.defineProperty({},"passive",{get:function(){hh=!0}});window.addEventListener("test",null,$me)}catch{}}let Nme=0;var hp={name:"RecycleScroller",components:{ResizeObserver:Xu},directives:{ObserveVisibility:kme},props:{...Lme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:Mme,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Ah({id:Nme++,index:t,used:!0,key:o,type:s}),f=Th({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,L=this.itemIndexByKey;let M,E,A,$,R;if(!p)M=E=$=R=A=0;else if(this.$_prerender)M=$=0,E=R=Math.min(this.prerender,h.length),A=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const K=this.buffer;G.start-=K,G.end+=K;let N=0;if(this.$refs.before&&(N=this.$refs.before.scrollHeight,G.start-=N),this.$refs.after){const O=this.$refs.after.scrollHeight;G.end+=O}if(r===null){let O,P=0,S=p-1,H=~~(p/2),V;do V=H,O=v[H].accumulator,O<G.start?P=H:H<p-1&&v[H+1].accumulator>G.start&&(S=H),H=~~((P+S)/2);while(H!==V);for(H<0&&(H=0),M=H,A=v[p-1].accumulator,E=H;E<p&&v[E].accumulator<G.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),$=M;$<p&&N+v[$].accumulator<G.start;$++);for(R=$;R<p&&N+v[R].accumulator<G.end;R++);}else{M=~~(G.start/r*o);const O=M%o;M-=O,E=Math.ceil(G.end/r*o),$=Math.max(0,Math.floor((G.start-N)/r*o)),R=Math.floor((G.end-N)/r*o),M<0&&(M=0),E>p&&(E=p),$<0&&($=0),R>p&&(R=p),A=Math.ceil(p/o)*r}}E-M>Tme.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let T;const I=M<=this.$_endIndex&&E>=this.$_startIndex;if(I)for(let G=0,K=w.length;G<K;G++)T=w[G],T.nr.used&&(e&&(T.nr.index=L[T.item[d]]),(T.nr.index==null||T.nr.index<M||T.nr.index>=E)&&this.unuseView(T));const F=I?null:new Map;let re,se,J;for(let G=M;G<E;G++){re=h[G];const K=d?re[d]:re;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${d}')`);if(T=m.get(K),!r&&!v[G].size){T&&this.unuseView(T);continue}se=re[f];let N=b.get(se),O=!1;if(!T)I?N&&N.length?T=N.pop():T=this.addView(w,G,re,K,se):(J=F.get(se)||0,(!N||J>=N.length)&&(T=this.addView(w,G,re,K,se),this.unuseView(T,!0),N=b.get(se)),T=N[J],F.set(se,J+1)),m.delete(T.nr.key),T.nr.used=!0,T.nr.index=G,T.nr.key=K,T.nr.type=se,m.set(K,T),O=!0;else if(!T.nr.used&&(T.nr.used=!0,O=!0,N)){const P=N.indexOf(T);P!==-1&&N.splice(P,1)}T.item=re,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(T.position=v[G-1].accumulator,T.offset=0):(T.position=Math.floor(G/o)*r,T.offset=G%o*s)}return this.$_startIndex=M,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",M,E,$,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=L0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,hh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=L0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Ome={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Pme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Rme(e,t,r,o,s,c){const f=Io("ResizeObserver"),d=Rr("observe-visibility");return ut((ie(),ye("div",{class:st(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ie(),ye("div",Ome,[wn(e.$slots,"before")],512)):qe("v-if",!0),(ie(),Je(Ld(r.listTag),{ref:"wrapper",style:en({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(ie(!0),ye(nt,null,fr(s.pool,h=>(ie(),Je(Ld(r.itemTag),yi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},ck(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[wn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),wn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ie(),ye("div",Pme,[wn(e.$slots,"after")],512)):qe("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}hp.render=Rme;hp.__file="src/components/RecycleScroller.vue";function zme(e){const t=Se(()=>Gd.value?!1:!Ze.onlyTests),r=Se(()=>jn.value===""),o=Ue(jn.value);Gh(()=>jn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;jn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Hs.value&&(fn.value.search=(h==null?void 0:h.trim())??"",fn.value.failed=p,fn.value.success=v,fn.value.skipped=m,fn.value.onlyTests=b)}return St(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ae.filterNodes()},{flush:"post"}),St(()=>Or.value.length,h=>{h&&(fn.value.expandAll=void 0)},{flush:"post"}),{initialized:Hs,filter:Ze,search:jn,disableFilter:t,isFiltered:mw,isFilteredByStatus:Gd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:qu,testsTotal:dA,uiEntries:Xn}}const Ime={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Dme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Fme=["op"],Hme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Bme={"text-red5":""},Wme={"text-yellow5":""},qme={"text-green5":""},jme={class:"text-purple5:50"},Ume={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Vme=["disabled"],Gme=["disabled"],Kme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Xme=ct({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Se(()=>Ws.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:L,filteredFiles:M,testsTotal:E,uiEntries:A}=zme(s),$=Ue("grid-cols-2"),R=Ue("grid-col-span-2"),T=Ue();return pw(()=>T.value,([{contentRect:I}])=>{I.width<420?($.value="grid-cols-2",R.value="grid-col-span-2"):($.value="grid-cols-4",R.value="grid-col-span-4")}),(I,F)=>{const re=Jr,se=ame,J=sme,G=Vve,K=Rr("tooltip");return ie(),ye("div",{ref_key:"testExplorerRef",ref:T,h:"full",flex:"~ col"},[ee("div",null,[ee("div",Ime,[wn(I.$slots,"header",{filteredFiles:B(p)||B(v)?B(M):void 0})]),ee("div",Dme,[F[13]||(F[13]=ee("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ut(ee("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":F[0]||(F[0]=N=>Tt(d)?d.value=N:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:B(d).length?"100":"50",onKeydown:[F[1]||(F[1]=Dd(N=>B(w)(!1),["esc"])),F[2]||(F[2]=Dd(N=>r("run",B(p)||B(v)?B(M):void 0),["enter"]))]},null,40,Fme),[[AT,B(d)]]),ut(Pe(re,{disabled:B(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:F[3]||(F[3]=N=>B(w)(!0))},null,8,["disabled"]),[[K,"Clear search",void 0,{bottom:!0}]])]),ee("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(B($))},[ee("div",{class:st(B(R)),flex:"~ gap-2 items-center"},[F[14]||(F[14]=ee("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),F[15]||(F[15]=ee("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ut(Pe(re,{disabled:B(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:F[4]||(F[4]=N=>B(L)(!1))},null,8,["disabled"]),[[K,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(se,{modelValue:B(f).failed,"onUpdate:modelValue":F[5]||(F[5]=N=>B(f).failed=N),label:"Fail"},null,8,["modelValue"]),Pe(se,{modelValue:B(f).success,"onUpdate:modelValue":F[6]||(F[6]=N=>B(f).success=N),label:"Pass"},null,8,["modelValue"]),Pe(se,{modelValue:B(f).skipped,"onUpdate:modelValue":F[7]||(F[7]=N=>B(f).skipped=N),label:"Skip"},null,8,["modelValue"]),Pe(se,{modelValue:B(f).onlyTests,"onUpdate:modelValue":F[8]||(F[8]=N=>B(f).onlyTests=N),label:"Only Tests"},null,8,["modelValue"])],2)]),ee("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:F[12]||(F[12]=(...N)=>B(gm)&&B(gm)(...N))},[Pe(G,null,ak({default:it(()=>[(B(p)||B(v))&&B(A).length===0?(ie(),ye(nt,{key:0},[B(c)?(ie(),ye("div",Ume,[F[18]||(F[18]=ee("div",{op30:""}," No matched test ",-1)),ee("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(B(m)?null:"hover:op100"),disabled:B(m),onClickPassive:F[9]||(F[9]=N=>B(w)(!0))}," Clear Search ",42,Vme),ee("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(B(h)?null:"hover:op100"),disabled:B(h),onClickPassive:F[10]||(F[10]=N=>B(L)(!0))}," Clear Filter ",42,Gme),ee("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:F[11]||(F[11]=(...N)=>B(b)&&B(b)(...N))}," Clear All ",32)])):(ie(),ye("div",Kme,[...F[19]||(F[19]=[ee("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),ee("div",{op30:""}," Loading... ",-1)])]))],64)):(ie(),Je(B(hp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:B(A),buffer:100},{default:it(({item:N})=>[Pe(J,{class:st(["h-28px m-0 p-0",B(so)===N.id?"bg-active":""]),"task-id":N.id,expandable:N.expandable,type:N.type,current:B(so)===N.id,indent:N.indent,name:N.name,typecheck:N.typecheck===!0,"project-name":N.projectName??"","project-name-color":N.projectNameColor??"",state:N.state,duration:N.duration,opened:N.expanded,"disable-task-location":!B(o),"on-item-click":I.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[B(c)?{name:"summary",fn:it(()=>[ee("div",Hme,[ee("span",Bme," FAIL ("+ze(B(E).failed)+") ",1),F[16]||(F[16]=ee("span",null,"/",-1)),ee("span",Wme," RUNNING ("+ze(B(E).running)+") ",1),ee("span",qme," PASS ("+ze(B(E).success)+") ",1),F[17]||(F[17]=ee("span",null,"/",-1)),ee("span",jme," SKIP ("+ze(B(f).onlyTests?B(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Yme=""+new URL("../favicon.svg",import.meta.url).href,Zme={class:"flex text-lg"},Jme=ct({__name:"Navigation",setup(e){function t(){return pt.rpc.updateSnapshot()}const r=Se(()=>Xs.value?"light":"dark");async function o(f){ws.value&&(uu.value=!0,await At(),lo.value&&(fu(!0),await At())),f!=null&&f.length?await ep(f):await Xae()}function s(){Ae.collapseAllNodes()}function c(){Ae.expandAllNodes()}return(f,d)=>{const h=Jr,p=Xme,v=Rr("tooltip");return ie(),Je(p,{border:"r base","on-item-click":B(WA),nested:!0,onRun:o},{header:it(({filteredFiles:m})=>[d[8]||(d[8]=ee("img",{"w-6":"","h-6":"",src:Yme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=ee("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),ee("div",Zme,[ut(Pe(h,{title:"Collapse tests",disabled:!B(Hs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Xi,!B(Om)],[v,"Collapse tests",void 0,{bottom:!0}]]),ut(Pe(h,{disabled:!B(Hs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Xi,B(Om)],[v,"Expand tests",void 0,{bottom:!0}]]),ut(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>B(fu)(!0))},null,512),[[Xi,B(Yd)&&!B(ws)||!B($s)],[v,"Dashboard",void 0,{bottom:!0}]]),B(Yd)&&!B(ws)?(ie(),Je(B(Hb),{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:it(()=>[...d[6]||(d[6]=[ee("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ee("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ee("div",null,"Coverage enabled but missing html reporter."),ee("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=ee("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):qe("",!0),B(ws)?ut((ie(),Je(h,{key:1,disabled:B(uu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>B(qA)())},null,8,["disabled"])),[[Xi,!B(lo)],[v,"Coverage",void 0,{bottom:!0}]]):qe("",!0),B(Ae).summary.failedSnapshot&&!B(dr)?ut((ie(),Je(h,{key:2,icon:"i-carbon:result-old",disabled:!B(Ae).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>B(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),B(dr)?qe("",!0):ut((ie(),Je(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ut(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>B(zce)())},null,512),[[v,`Toggle to ${B(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Qme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},e0e=ct({__name:"ProgressBar",setup(e){const{width:t}=gw(),r=Se(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ys.value&&"in-progress"].filter(Boolean).join(" ")),o=Se(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesSuccess/d:0}),s=Se(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesFailed/d:0}),c=Se(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),f=Se(()=>{const d=Ae.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ie(),ye("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:st(B(r))},[ee("div",Qme,[ee("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(B(r)),style:en(`width: ${B(s)}px;`)},"   ",6),ee("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(B(r)),style:en(`left: ${B(s)}px; width: ${B(o)}px;`)},"   ",6),ee("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(B(r)),style:en(`left: ${B(o)+B(s)}px; width: ${B(f)}px;`)},"   ",6)])],2))}}),t0e=Zr(e0e,[["__scopeId","data-v-16879415"]]),M0={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=fk(),c=Ue([]),f=Se(()=>c.value.reduce((ne,W)=>(ne[~~W.id]=W)&&ne,{})),d=Se(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=Se(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),w=()=>{document.addEventListener("mousemove",E,{passive:!1}),document.addEventListener("mouseup",A),"ontouchstart"in window&&(document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",A))},L=()=>{document.removeEventListener("mousemove",E,{passive:!1}),document.removeEventListener("mouseup",A),"ontouchstart"in window&&(document.removeEventListener("touchmove",E,{passive:!1}),document.removeEventListener("touchend",A))},M=(ne,W)=>{const Q=ne.target.closest(".splitpanes__splitter");if(Q){const{left:X,top:ae}=Q.getBoundingClientRect(),{clientX:pe,clientY:z}="ontouchstart"in window&&ne.touches?ne.touches[0]:ne;v.value.cursorOffset=o.horizontal?z-ae:pe-X}w(),v.value.mouseDown=!0,v.value.activeSplitter=W},E=ne=>{v.value.mouseDown&&(ne.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{re(I(ne)),r("resize",c.value.map(W=>({min:W.min,max:W.max,size:W.size})))}))},A=()=>{v.value.dragging&&r("resized",c.value.map(ne=>({min:ne.min,max:ne.max,size:ne.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,L()},100)},$=(ne,W)=>{"ontouchstart"in window&&(ne.preventDefault(),o.dblClickSplitter&&(m.value.splitter===W?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,R(ne,W),m.value.splitter=null):(m.value.splitter=W,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[W])},R=(ne,W)=>{let Q=0;c.value=c.value.map((X,ae)=>(X.size=ae===W?X.max:X.min,ae!==W&&(Q+=X.min),X)),c.value[W].size-=Q,r("pane-maximize",c.value[W]),r("resized",c.value.map(X=>({min:X.min,max:X.max,size:X.size})))},T=(ne,W)=>{r("pane-click",f.value[W])},I=ne=>{const W=h.value.getBoundingClientRect(),{clientX:Q,clientY:X}="ontouchstart"in window&&ne.touches?ne.touches[0]:ne;return{x:Q-(o.horizontal?0:v.value.cursorOffset)-W.left,y:X-(o.horizontal?v.value.cursorOffset:0)-W.top}},F=ne=>{ne=ne[o.horizontal?"y":"x"];const W=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(ne=W-ne),ne*100/W},re=ne=>{const W=v.value.activeSplitter;let Q={prevPanesSize:J(W),nextPanesSize:G(W),prevReachedMinPanes:0,nextReachedMinPanes:0};const X=0+(o.pushOtherPanes?0:Q.prevPanesSize),ae=100-(o.pushOtherPanes?0:Q.nextPanesSize),pe=Math.max(Math.min(F(ne),ae),X);let z=[W,W+1],U=c.value[z[0]]||null,Y=c.value[z[1]]||null;const ue=U.max<100&&pe>=U.max+Q.prevPanesSize,he=Y.max<100&&pe<=100-(Y.max+G(W+1));if(ue||he){ue?(U.size=U.max,Y.size=Math.max(100-U.max-Q.prevPanesSize-Q.nextPanesSize,0)):(U.size=Math.max(100-Y.max-Q.prevPanesSize-G(W+1),0),Y.size=Y.max);return}if(o.pushOtherPanes){const fe=se(Q,pe);if(!fe)return;({sums:Q,panesToResize:z}=fe),U=c.value[z[0]]||null,Y=c.value[z[1]]||null}U!==null&&(U.size=Math.min(Math.max(pe-Q.prevPanesSize-Q.prevReachedMinPanes,U.min),U.max)),Y!==null&&(Y.size=Math.min(Math.max(100-pe-Q.nextPanesSize-Q.nextReachedMinPanes,Y.min),Y.max))},se=(ne,W)=>{const Q=v.value.activeSplitter,X=[Q,Q+1];return W<ne.prevPanesSize+c.value[X[0]].min&&(X[0]=K(Q).index,ne.prevReachedMinPanes=0,X[0]<Q&&c.value.forEach((ae,pe)=>{pe>X[0]&&pe<=Q&&(ae.size=ae.min,ne.prevReachedMinPanes+=ae.min)}),ne.prevPanesSize=J(X[0]),X[0]===void 0)?(ne.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,pe)=>{pe>0&&pe<=Q&&(ae.size=ae.min,ne.prevReachedMinPanes+=ae.min)}),c.value[X[1]].size=100-ne.prevReachedMinPanes-c.value[0].min-ne.prevPanesSize-ne.nextPanesSize,null):W>100-ne.nextPanesSize-c.value[X[1]].min&&(X[1]=N(Q).index,ne.nextReachedMinPanes=0,X[1]>Q+1&&c.value.forEach((ae,pe)=>{pe>Q&&pe<X[1]&&(ae.size=ae.min,ne.nextReachedMinPanes+=ae.min)}),ne.nextPanesSize=G(X[1]-1),X[1]===void 0)?(ne.nextReachedMinPanes=0,c.value.forEach((ae,pe)=>{pe<d.value-1&&pe>=Q+1&&(ae.size=ae.min,ne.nextReachedMinPanes+=ae.min)}),c.value[X[0]].size=100-ne.prevPanesSize-G(X[0]-1),null):{sums:ne,panesToResize:X}},J=ne=>c.value.reduce((W,Q,X)=>W+(X<ne?Q.size:0),0),G=ne=>c.value.reduce((W,Q,X)=>W+(X>ne+1?Q.size:0),0),K=ne=>[...c.value].reverse().find(W=>W.index<ne&&W.size>W.min)||{},N=ne=>c.value.find(W=>W.index>ne+1&&W.size>W.min)||{},O=()=>{var ne;Array.from(((ne=h.value)==null?void 0:ne.children)||[]).forEach(W=>{const Q=W.classList.contains("splitpanes__pane"),X=W.classList.contains("splitpanes__splitter");!Q&&!X&&(W.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},P=(ne,W,Q=!1)=>{const X=ne-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),Q||(ae.onmousedown=pe=>M(pe,X),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=pe=>M(pe,X)),ae.onclick=pe=>$(pe,X+1)),o.dblClickSplitter&&(ae.ondblclick=pe=>R(pe,X+1)),W.parentNode.insertBefore(ae,W)},S=ne=>{ne.onmousedown=void 0,ne.onclick=void 0,ne.ondblclick=void 0,ne.remove()},H=()=>{var ne;const W=Array.from(((ne=h.value)==null?void 0:ne.children)||[]);W.forEach(X=>{X.className.includes("splitpanes__splitter")&&S(X)});let Q=0;W.forEach(X=>{X.className.includes("splitpanes__pane")&&(!Q&&o.firstSplitter?P(Q,X,!0):Q&&P(Q,X),Q++)})},V=({uid:ne,...W})=>{const Q=f.value[ne];Object.entries(W).forEach(([X,ae])=>Q[X]=ae)},oe=ne=>{var W;let Q=-1;Array.from(((W=h.value)==null?void 0:W.children)||[]).some(X=>(X.className.includes("splitpanes__pane")&&Q++,X.isSameNode(ne.el))),c.value.splice(Q,0,{...ne,index:Q}),c.value.forEach((X,ae)=>X.index=ae),p.value&&At(()=>{H(),we({addedPane:c.value[Q]}),r("pane-add",{index:Q,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},ve=ne=>{const W=c.value.findIndex(X=>X.id===ne),Q=c.value.splice(W,1)[0];c.value.forEach((X,ae)=>X.index=ae),At(()=>{H(),we({removedPane:{...Q}}),r("pane-remove",{removed:Q,panes:c.value.map(X=>({min:X.min,max:X.max,size:X.size}))})})},we=(ne={})=>{!ne.addedPane&&!ne.removedPane?je():c.value.some(W=>W.givenSize!==null||W.min||W.max<100)?Qe(ne):Oe(),p.value&&r("resized",c.value.map(W=>({min:W.min,max:W.max,size:W.size})))},Oe=()=>{const ne=100/d.value;let W=0;const Q=[],X=[];c.value.forEach(ae=>{ae.size=Math.max(Math.min(ne,ae.max),ae.min),W-=ae.size,ae.size>=ae.max&&Q.push(ae.id),ae.size<=ae.min&&X.push(ae.id)}),W>.1&&Xe(W,Q,X)},je=()=>{let ne=100;const W=[],Q=[];let X=0;c.value.forEach(pe=>{ne-=pe.size,pe.givenSize!==null&&X++,pe.size>=pe.max&&W.push(pe.id),pe.size<=pe.min&&Q.push(pe.id)});let ae=100;ne>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(ne/(d.value-X),pe.max),pe.min)),ae-=pe.size}),ae>.1&&Xe(ae,W,Q))},Qe=({addedPane:ne,removedPane:W}={})=>{let Q=100/d.value,X=0;const ae=[],pe=[];((ne==null?void 0:ne.givenSize)??null)!==null&&(Q=(100-ne.givenSize)/(d.value-1).value),c.value.forEach(z=>{X-=z.size,z.size>=z.max&&ae.push(z.id),z.size<=z.min&&pe.push(z.id)}),!(Math.abs(X)<.1)&&(c.value.forEach(z=>{(ne==null?void 0:ne.givenSize)!==null&&(ne==null?void 0:ne.id)===z.id||(z.size=Math.max(Math.min(Q,z.max),z.min)),X-=z.size,z.size>=z.max&&ae.push(z.id),z.size<=z.min&&pe.push(z.id)}),X>.1&&Xe(X,ae,pe))},Xe=(ne,W,Q)=>{let X;ne>0?X=ne/(d.value-W.length):X=ne/(d.value-Q.length),c.value.forEach((ae,pe)=>{if(ne>0&&!W.includes(ae.id)){const z=Math.max(Math.min(ae.size+X,ae.max),ae.min),U=z-ae.size;ne-=U,ae.size=z}else if(!Q.includes(ae.id)){const z=Math.max(Math.min(ae.size+X,ae.max),ae.min),U=z-ae.size;ne-=U,ae.size=z}}),Math.abs(ne)>.1&&At(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};St(()=>o.firstSplitter,()=>H()),St(()=>o.dblClickSplitter,ne=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((W,Q)=>{W.ondblclick=ne?X=>R(X,Q):void 0})}),Ta(()=>p.value=!1),co(()=>{O(),H(),we(),r("ready"),p.value=!0});const Ye=()=>{var ne;return Ea("div",{ref:h,class:b.value},(ne=s.default)==null?void 0:ne.call(s))};return Tr("panes",c),Tr("indexedPanes",f),Tr("horizontal",Se(()=>o.horizontal)),Tr("requestUpdate",V),Tr("onPaneAdd",oe),Tr("onPaneRemove",ve),Tr("onPaneClick",T),(ne,W)=>(ie(),Je(Ld(Ye)))}},Lc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=yn("requestUpdate"),s=yn("onPaneAdd"),c=yn("horizontal"),f=yn("onPaneRemove"),d=yn("onPaneClick"),h=(t=Ti())==null?void 0:t.uid,p=yn("indexedPanes"),v=Se(()=>p.value[h]),m=Ue(null),b=Se(()=>{const E=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(E,L.value),w.value)}),w=Se(()=>{const E=parseFloat(r.minSize);return isNaN(E)?0:E}),L=Se(()=>{const E=parseFloat(r.maxSize);return isNaN(E)?100:E}),M=Se(()=>{var E;return`${c.value?"height":"width"}: ${(E=v.value)==null?void 0:E.size}%`});return co(()=>{s({id:h,el:m.value,min:w.value,max:L.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),St(()=>b.value,E=>o({uid:h,size:E})),St(()=>w.value,E=>o({uid:h,min:E})),St(()=>L.value,E=>o({uid:h,max:E})),Ta(()=>f(h)),(E,A)=>(ie(),ye("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:A[0]||(A[0]=$=>B(d)($,E._.uid)),style:en(M.value)},[wn(E.$slots,"default")],4))}},n0e={"h-screen":"","w-screen":"",overflow:"hidden"},r0e=ct({__name:"index",setup(e){const t=BA(),r=xc(v=>{h(),d(v)},0),o=xc(v=>{v.forEach((m,b)=>{Ns.value[b]=m.size}),f(v),p()},0),s=xc(v=>{v.forEach((m,b)=>{to.value[b]=m.size}),d(v),p()},0),c=xc(v=>{f(v),h()},0);function f(v){Lt.navigation=v[0].size,Lt.details.size=v[1].size}function d(v){Lt.details.browser=v[0].size,Lt.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>{const b=t0e,w=Jme,L=jve,M=sve,E=nve,A=fce,$=ece;return ie(),ye(nt,null,[Pe(b),ee("div",n0e,[Pe(B(M0),{class:"pt-4px",onResized:B(o),onResize:B(c)},{default:it(()=>[Pe(B(Lc),{size:B(Ns)[0]},{default:it(()=>[Pe(w)]),_:1},8,["size"]),Pe(B(Lc),{size:B(Ns)[1]},{default:it(()=>[B(Ot)?(ie(),Je(B(M0),{id:"details-splitpanes",key:"browser-detail",onResize:B(r),onResized:B(s)},{default:it(()=>[Pe(B(Lc),{size:B(to)[0],"min-size":"10"},{default:it(()=>[m[0]||(Is(-1,!0),(m[0]=Pe(A)).cacheIndex=0,Is(1),m[0])]),_:1},8,["size"]),Pe(B(Lc),{size:B(to)[1]},{default:it(()=>[B(t)?(ie(),Je(L,{key:"summary"})):B(lo)?(ie(),Je(M,{key:"coverage",src:B(Im)},null,8,["src"])):(ie(),Je(E,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ie(),Je(aT,{key:"ui-detail"},{default:it(()=>[B(t)?(ie(),Je(L,{key:"summary"})):B(lo)?(ie(),Je(M,{key:"coverage",src:B(Im)},null,8,["src"])):(ie(),Je(E,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe($)],64)}}}),i0e=[{name:"index",path:"/",component:r0e,props:!0}];/*!
50
+ * vue-router v4.5.1
51
+ * (c) 2025 Eduardo San Martin Morote
52
+ * @license MIT
53
+ */const ms=typeof document<"u";function Wx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function o0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Wx(e.default)}const wt=Object.assign;function wd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Pr(s)?s.map(e):e(s)}return r}const Yl=()=>{},Pr=Array.isArray,qx=/#/g,s0e=/&/g,l0e=/\//g,a0e=/=/g,c0e=/\?/g,jx=/\+/g,u0e=/%5B/g,f0e=/%5D/g,Ux=/%5E/g,d0e=/%60/g,Vx=/%7B/g,h0e=/%7C/g,Gx=/%7D/g,p0e=/%20/g;function pp(e){return encodeURI(""+e).replace(h0e,"|").replace(u0e,"[").replace(f0e,"]")}function g0e(e){return pp(e).replace(Vx,"{").replace(Gx,"}").replace(Ux,"^")}function ph(e){return pp(e).replace(jx,"%2B").replace(p0e,"+").replace(qx,"%23").replace(s0e,"%26").replace(d0e,"`").replace(Vx,"{").replace(Gx,"}").replace(Ux,"^")}function v0e(e){return ph(e).replace(a0e,"%3D")}function m0e(e){return pp(e).replace(qx,"%23").replace(c0e,"%3F")}function y0e(e){return e==null?"":m0e(e).replace(l0e,"%2F")}function ba(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const b0e=/\/$/,w0e=e=>e.replace(b0e,"");function xd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=k0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ba(f)}}function x0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function $0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Us(t.matched[o],r.matched[s])&&Kx(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Kx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!S0e(e[r],t[r]))return!1;return!0}function S0e(e,t){return Pr(e)?N0(e,t):Pr(t)?N0(t,e):e===t}function N0(e,t){return Pr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function k0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Bi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var wa;(function(e){e.pop="pop",e.push="push"})(wa||(wa={}));var Zl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zl||(Zl={}));function T0e(e){if(!e)if(ms){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),w0e(e)}const C0e=/^[^#]+#/;function E0e(e,t){return e.replace(C0e,"#")+t}function A0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Yu=()=>({left:window.scrollX,top:window.scrollY});function L0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=A0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function O0(e,t){return(history.state?history.state.position-t:-1)+e}const gh=new Map;function M0e(e,t){gh.set(e,t)}function $0e(e){const t=gh.get(e);return gh.delete(e),t}let N0e=()=>location.protocol+"//"+location.host;function Xx(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),$0(h,"")}return $0(r,e)+o+s}function O0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=Xx(e,location),L=r.value,M=t.value;let E=0;if(b){if(r.value=w,t.value=b,f&&f===L){f=null;return}E=M?b.position-M.position:0}else o(w);s.forEach(A=>{A(r.value,L,{delta:E,type:wa.pop,direction:E?E>0?Zl.forward:Zl.back:Zl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const L=s.indexOf(b);L>-1&&s.splice(L,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(wt({},b.state,{scroll:Yu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function P0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Yu():null}}function P0e(e){const{history:t,location:r}=window,o={value:Xx(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:N0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=wt({},t.state,P0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=wt({},s.value,t.state,{forward:h,scroll:Yu()});c(v.current,v,!0);const m=wt({},P0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function R0e(e){e=T0e(e);const t=P0e(e),r=O0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=wt({location:"",base:e,go:o,createHref:E0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function z0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),R0e(e)}function I0e(e){return typeof e=="string"||e&&typeof e=="object"}function Yx(e){return typeof e=="string"||typeof e=="symbol"}const Zx=Symbol("");var R0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(R0||(R0={}));function Vs(e,t){return wt(new Error,{type:e,[Zx]:!0},t)}function fi(e,t){return e instanceof Error&&Zx in e&&(t==null||!!(e.type&t))}const z0="[^/]+?",D0e={sensitive:!1,strict:!1,start:!0,end:!0},F0e=/[.+*?^${}()[\]/\\]/g;function H0e(e,t){const r=wt({},D0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(F0e,"\\$&"),w+=40;else if(b.type===1){const{value:L,repeatable:M,optional:E,regexp:A}=b;c.push({name:L,repeatable:M,optional:E});const $=A||z0;if($!==z0){w+=10;try{new RegExp(`(${$})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${L}" (${$}): `+T.message)}}let R=M?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;m||(R=E&&p.length<2?`(?:/${R})`:"/"+R),E&&(R+="?"),s+=R,w+=20,E&&(w+=-8),M&&(w+=-20),$===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",L=c[b-1];m[L.name]=w&&L.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:L,repeatable:M,optional:E}=w,A=L in p?p[L]:"";if(Pr(A)&&!M)throw new Error(`Provided param "${L}" is an array but it is not repeatable (* or + modifiers)`);const $=Pr(A)?A.join("/"):A;if(!$)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${L}"`);v+=$}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function B0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Jx(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=B0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(I0(o))return 1;if(I0(s))return-1}return s.length-o.length}function I0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const W0e={type:0,value:""},q0e=/[a-zA-Z0-9_]/;function j0e(e){if(!e)return[[]];if(e==="/")return[[W0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:q0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function U0e(e,t,r){const o=H0e(j0e(e.path),r),s=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function V0e(e,t){const r=[],o=new Map;t=B0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const L=!w,M=F0(m);M.aliasOf=w&&w.record;const E=B0(t,m),A=[M];if("alias"in m){const T=typeof m.alias=="string"?[m.alias]:m.alias;for(const I of T)A.push(F0(wt({},M,{components:w?w.record.components:M.components,path:I,aliasOf:w?w.record:M})))}let $,R;for(const T of A){const{path:I}=T;if(b&&I[0]!=="/"){const F=b.record.path,re=F[F.length-1]==="/"?"":"/";T.path=b.record.path+(I&&re+I)}if($=U0e(T,b,E),w?w.alias.push($):(R=R||$,R!==$&&R.alias.push($),L&&m.name&&!H0($)&&f(m.name)),Qx($)&&h($),M.children){const F=M.children;for(let re=0;re<F.length;re++)c(F[re],$,w&&w.children[re])}w=w||$}return R?()=>{f(R)}:Yl}function f(m){if(Yx(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=X0e(m,r);r.splice(b,0,m),m.record.name&&!H0(m)&&o.set(m.record.name,m)}function p(m,b){let w,L={},M,E;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Vs(1,{location:m});E=w.record.name,L=wt(D0(b.params,w.keys.filter(R=>!R.optional).concat(w.parent?w.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),m.params&&D0(m.params,w.keys.map(R=>R.name))),M=w.stringify(L)}else if(m.path!=null)M=m.path,w=r.find(R=>R.re.test(M)),w&&(L=w.parse(M),E=w.record.name);else{if(w=b.name?o.get(b.name):r.find(R=>R.re.test(b.path)),!w)throw Vs(1,{location:m,currentLocation:b});E=w.record.name,L=wt({},b.params,m.params),M=w.stringify(L)}const A=[];let $=w;for(;$;)A.unshift($.record),$=$.parent;return{name:E,path:M,params:L,matched:A,meta:K0e(A)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function D0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function F0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:G0e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function G0e(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function H0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function K0e(e){return e.reduce((t,r)=>wt(t,r.meta),{})}function B0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function X0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;Jx(e,t[c])<0?o=c:r=c+1}const s=Y0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function Y0e(e){let t=e;for(;t=t.parent;)if(Qx(t)&&Jx(e,t)===0)return t}function Qx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Z0e(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(jx," "),f=c.indexOf("="),d=ba(f<0?c:c.slice(0,f)),h=f<0?null:ba(c.slice(f+1));if(d in t){let p=t[d];Pr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function W0(e){let t="";for(let r in e){const o=e[r];if(r=v0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Pr(o)?o.map(c=>c&&ph(c)):[o&&ph(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function J0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Pr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const Q0e=Symbol(""),q0=Symbol(""),gp=Symbol(""),e1=Symbol(""),vh=Symbol("");function Ol(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Ki(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Vs(4,{from:r,to:t})):b instanceof Error?h(b):I0e(b)?h(Vs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function _d(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(Wx(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Ki(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=o0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Ki(w,r,o,f,d,s)()}))}}return c}function j0(e){const t=yn(gp),r=yn(e1),o=Se(()=>{const h=B(e.to);return t.resolve(h)}),s=Se(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Us.bind(null,v));if(b>-1)return b;const w=U0(h[p-2]);return p>1&&U0(v)===w&&m[m.length-1].path!==w?m.findIndex(Us.bind(null,h[p-2])):b}),c=Se(()=>s.value>-1&&iye(r.params,o.value.params)),f=Se(()=>s.value>-1&&s.value===r.matched.length-1&&Kx(r.params,o.value.params));function d(h={}){if(rye(h)){const p=t[B(e.replace)?"replace":"push"](B(e.to)).catch(Yl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:Se(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function eye(e){return e.length===1?e[0]:e}const tye=ct({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:j0,setup(e,{slots:t}){const r=nr(j0(e)),{options:o}=yn(gp),s=Se(()=>({[V0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[V0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&eye(t.default(r));return e.custom?c:Ea("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),nye=tye;function rye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function iye(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Pr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function U0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const V0=(e,t,r)=>e??t??r,oye=ct({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=yn(vh),s=Se(()=>e.route||o.value),c=yn(q0,0),f=Se(()=>{let p=B(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Se(()=>s.value.matched[f.value]);Tr(q0,Se(()=>f.value+1)),Tr(Q0e,d),Tr(vh,s);const h=Ue();return St(()=>[h.value,d.value,e.name],([p,v,m],[b,w,L])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Us(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(M=>M(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return G0(r.default,{Component:b,route:p});const w=m.props[v],L=w?w===!0?p.params:typeof w=="function"?w(p):w:null,E=Ea(b,wt({},L,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return G0(r.default,{Component:E,route:p})||E}}});function G0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const sye=oye;function lye(e){const t=V0e(e.routes,e),r=e.parseQuery||Z0e,o=e.stringifyQuery||W0,s=e.history,c=Ol(),f=Ol(),d=Ol(),h=tn(Bi);let p=Bi;ms&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=wd.bind(null,W=>""+W),m=wd.bind(null,y0e),b=wd.bind(null,ba);function w(W,Q){let X,ae;return Yx(W)?(X=t.getRecordMatcher(W),ae=Q):ae=W,t.addRoute(ae,X)}function L(W){const Q=t.getRecordMatcher(W);Q&&t.removeRoute(Q)}function M(){return t.getRoutes().map(W=>W.record)}function E(W){return!!t.getRecordMatcher(W)}function A(W,Q){if(Q=wt({},Q||h.value),typeof W=="string"){const Y=xd(r,W,Q.path),ue=t.resolve({path:Y.path},Q),he=s.createHref(Y.fullPath);return wt(Y,ue,{params:b(ue.params),hash:ba(Y.hash),redirectedFrom:void 0,href:he})}let X;if(W.path!=null)X=wt({},W,{path:xd(r,W.path,Q.path).path});else{const Y=wt({},W.params);for(const ue in Y)Y[ue]==null&&delete Y[ue];X=wt({},W,{params:m(Y)}),Q.params=m(Q.params)}const ae=t.resolve(X,Q),pe=W.hash||"";ae.params=v(b(ae.params));const z=x0e(o,wt({},W,{hash:g0e(pe),path:ae.path})),U=s.createHref(z);return wt({fullPath:z,hash:pe,query:o===W0?J0e(W.query):W.query||{}},ae,{redirectedFrom:void 0,href:U})}function $(W){return typeof W=="string"?xd(r,W,h.value.path):wt({},W)}function R(W,Q){if(p!==W)return Vs(8,{from:Q,to:W})}function T(W){return re(W)}function I(W){return T(wt($(W),{replace:!0}))}function F(W){const Q=W.matched[W.matched.length-1];if(Q&&Q.redirect){const{redirect:X}=Q;let ae=typeof X=="function"?X(W):X;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=$(ae):{path:ae},ae.params={}),wt({query:W.query,hash:W.hash,params:ae.path!=null?{}:W.params},ae)}}function re(W,Q){const X=p=A(W),ae=h.value,pe=W.state,z=W.force,U=W.replace===!0,Y=F(X);if(Y)return re(wt($(Y),{state:typeof Y=="object"?wt({},pe,Y.state):pe,force:z,replace:U}),Q||X);const ue=X;ue.redirectedFrom=Q;let he;return!z&&_0e(o,ae,X)&&(he=Vs(16,{to:ue,from:ae}),Oe(ae,ae,!0,!1)),(he?Promise.resolve(he):G(ue,ae)).catch(fe=>fi(fe)?fi(fe,2)?fe:we(fe):oe(fe,ue,ae)).then(fe=>{if(fe){if(fi(fe,2))return re(wt({replace:U},$(fe.to),{state:typeof fe.to=="object"?wt({},pe,fe.to.state):pe,force:z}),Q||ue)}else fe=N(ue,ae,!0,U,pe);return K(ue,ae,fe),fe})}function se(W,Q){const X=R(W,Q);return X?Promise.reject(X):Promise.resolve()}function J(W){const Q=Xe.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function G(W,Q){let X;const[ae,pe,z]=aye(W,Q);X=_d(ae.reverse(),"beforeRouteLeave",W,Q);for(const Y of ae)Y.leaveGuards.forEach(ue=>{X.push(Ki(ue,W,Q))});const U=se.bind(null,W,Q);return X.push(U),ne(X).then(()=>{X=[];for(const Y of c.list())X.push(Ki(Y,W,Q));return X.push(U),ne(X)}).then(()=>{X=_d(pe,"beforeRouteUpdate",W,Q);for(const Y of pe)Y.updateGuards.forEach(ue=>{X.push(Ki(ue,W,Q))});return X.push(U),ne(X)}).then(()=>{X=[];for(const Y of z)if(Y.beforeEnter)if(Pr(Y.beforeEnter))for(const ue of Y.beforeEnter)X.push(Ki(ue,W,Q));else X.push(Ki(Y.beforeEnter,W,Q));return X.push(U),ne(X)}).then(()=>(W.matched.forEach(Y=>Y.enterCallbacks={}),X=_d(z,"beforeRouteEnter",W,Q,J),X.push(U),ne(X))).then(()=>{X=[];for(const Y of f.list())X.push(Ki(Y,W,Q));return X.push(U),ne(X)}).catch(Y=>fi(Y,8)?Y:Promise.reject(Y))}function K(W,Q,X){d.list().forEach(ae=>J(()=>ae(W,Q,X)))}function N(W,Q,X,ae,pe){const z=R(W,Q);if(z)return z;const U=Q===Bi,Y=ms?history.state:{};X&&(ae||U?s.replace(W.fullPath,wt({scroll:U&&Y&&Y.scroll},pe)):s.push(W.fullPath,pe)),h.value=W,Oe(W,Q,X,U),we()}let O;function P(){O||(O=s.listen((W,Q,X)=>{if(!Ye.listening)return;const ae=A(W),pe=F(ae);if(pe){re(wt(pe,{replace:!0,force:!0}),ae).catch(Yl);return}p=ae;const z=h.value;ms&&M0e(O0(z.fullPath,X.delta),Yu()),G(ae,z).catch(U=>fi(U,12)?U:fi(U,2)?(re(wt($(U.to),{force:!0}),ae).then(Y=>{fi(Y,20)&&!X.delta&&X.type===wa.pop&&s.go(-1,!1)}).catch(Yl),Promise.reject()):(X.delta&&s.go(-X.delta,!1),oe(U,ae,z))).then(U=>{U=U||N(ae,z,!1),U&&(X.delta&&!fi(U,8)?s.go(-X.delta,!1):X.type===wa.pop&&fi(U,20)&&s.go(-1,!1)),K(ae,z,U)}).catch(Yl)}))}let S=Ol(),H=Ol(),V;function oe(W,Q,X){we(W);const ae=H.list();return ae.length?ae.forEach(pe=>pe(W,Q,X)):console.error(W),Promise.reject(W)}function ve(){return V&&h.value!==Bi?Promise.resolve():new Promise((W,Q)=>{S.add([W,Q])})}function we(W){return V||(V=!W,P(),S.list().forEach(([Q,X])=>W?X(W):Q()),S.reset()),W}function Oe(W,Q,X,ae){const{scrollBehavior:pe}=e;if(!ms||!pe)return Promise.resolve();const z=!X&&$0e(O0(W.fullPath,0))||(ae||!X)&&history.state&&history.state.scroll||null;return At().then(()=>pe(W,Q,z)).then(U=>U&&L0e(U)).catch(U=>oe(U,W,Q))}const je=W=>s.go(W);let Qe;const Xe=new Set,Ye={currentRoute:h,listening:!0,addRoute:w,removeRoute:L,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:M,resolve:A,options:e,push:T,replace:I,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:H.add,isReady:ve,install(W){const Q=this;W.component("RouterLink",nye),W.component("RouterView",sye),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>B(h)}),ms&&!Qe&&h.value===Bi&&(Qe=!0,T(s.location).catch(pe=>{}));const X={};for(const pe in Bi)Object.defineProperty(X,pe,{get:()=>h.value[pe],enumerable:!0});W.provide(gp,Q),W.provide(e1,Th(X)),W.provide(vh,h);const ae=W.unmount;Xe.add(W),W.unmount=function(){Xe.delete(W),Xe.size<1&&(p=Bi,O&&O(),O=null,h.value=Bi,Qe=!1,V=!1),ae()}}};function ne(W){return W.reduce((Q,X)=>Q.then(()=>J(X)),Promise.resolve())}return Ye}function aye(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Us(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Us(p,h))||s.push(h))}return[r,o,s]}const cye={tooltip:zC};Bb.options.instantMove=!0;Bb.options.distance=10;function uye(){return lye({history:z0e(),routes:i0e})}const fye=[uye],vp=bb(FT);fye.forEach(e=>{vp.use(e())});Object.entries(cye).forEach(([e,t])=>{vp.directive(e,t)});vp.mount("#app");