@vitest/browser 4.1.0-beta.6 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,94 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/**
2
+ * @vue/shared v3.5.29
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function ig(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const bt={},al=[],ai=()=>{},Kw=()=>!1,Df=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),og=e=>e.startsWith("onUpdate:"),Qt=Object.assign,sg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},JC=Object.prototype.hasOwnProperty,kt=(e,t)=>JC.call(e,t),Ye=Array.isArray,cl=e=>bc(e)==="[object Map]",Fl=e=>bc(e)==="[object Set]",wy=e=>bc(e)==="[object Date]",rt=e=>typeof e=="function",jt=e=>typeof e=="string",qr=e=>typeof e=="symbol",wt=e=>e!==null&&typeof e=="object",Yw=e=>(wt(e)||rt(e))&&rt(e.then)&&rt(e.catch),Xw=Object.prototype.toString,bc=e=>Xw.call(e),ZC=e=>bc(e).slice(8,-1),Jw=e=>bc(e)==="[object Object]",Ff=e=>jt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oa=ig(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zf=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},QC=/-\w/g,mr=zf(e=>e.replace(QC,t=>t.slice(1).toUpperCase())),eE=/\B([A-Z])/g,Gi=zf(e=>e.replace(eE,"-$1").toLowerCase()),Hf=zf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ru=zf(e=>e?`on${Hf(e)}`:""),Qn=(e,t)=>!Object.is(e,t),Pu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Zw=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Bf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qw=e=>{const t=jt(e)?Number(e):NaN;return isNaN(t)?e:t};let xy;const jf=()=>xy||(xy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pt(e){if(Ye(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=jt(i)?iE(i):Pt(i);if(o)for(const l in o)t[l]=o[l]}return t}else if(jt(e)||wt(e))return e}const tE=/;(?![^(]*\))/g,nE=/:([^]+)/,rE=/\/\*[^]*?\*\//g;function iE(e){const t={};return e.replace(rE,"").split(tE).forEach(n=>{if(n){const i=n.split(nE);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ot(e){let t="";if(jt(e))t=e;else if(Ye(e))for(let n=0;n<e.length;n++){const i=ot(e[n]);i&&(t+=i+" ")}else if(wt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function oE(e){if(!e)return null;let{class:t,style:n}=e;return t&&!jt(t)&&(e.class=ot(t)),n&&(e.style=Pt(n)),e}const sE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lE=ig(sE);function ex(e){return!!e||e===""}function aE(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=zl(e[i],t[i]);return n}function zl(e,t){if(e===t)return!0;let n=wy(e),i=wy(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=qr(e),i=qr(t),n||i)return e===t;if(n=Ye(e),i=Ye(t),n||i)return n&&i?aE(e,t):!1;if(n=wt(e),i=wt(t),n||i){if(!n||!i)return!1;const o=Object.keys(e).length,l=Object.keys(t).length;if(o!==l)return!1;for(const u in e){const f=e.hasOwnProperty(u),h=t.hasOwnProperty(u);if(f&&!h||!f&&h||!zl(e[u],t[u]))return!1}}return String(e)===String(t)}function lg(e,t){return e.findIndex(n=>zl(n,t))}const tx=e=>!!(e&&e.__v_isRef===!0),Me=e=>jt(e)?e:e==null?"":Ye(e)||wt(e)&&(e.toString===Xw||!rt(e.toString))?tx(e)?Me(e.value):JSON.stringify(e,nx,2):String(e),nx=(e,t)=>tx(t)?nx(e,t.value):cl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],l)=>(n[ph(i,l)+" =>"]=o,n),{})}:Fl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ph(n))}:qr(t)?ph(t):wt(t)&&!Ye(t)&&!Jw(t)?String(t):t,ph=(e,t="")=>{var n;return qr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.29
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let kn;class cE{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=kn,!t&&kn&&(this.index=(kn.scopes||(kn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=kn;try{return kn=this,t()}finally{kn=n}}}on(){++this._on===1&&(this.prevScope=kn,kn=this)}off(){this._on>0&&--this._on===0&&(kn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ag(){return kn}function uE(e,t=!1){kn&&kn.cleanups.push(e)}let $t;const gh=new WeakSet;class rx{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,kn&&kn.active&&kn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gh.has(this)&&(gh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ox(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Sy(this),sx(this);const t=$t,n=jr;$t=this,jr=!0;try{return this.fn()}finally{lx(this),$t=t,jr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)fg(t);this.deps=this.depsTail=void 0,Sy(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){np(this)&&this.run()}get dirty(){return np(this)}}let ix=0,Ra,Pa;function ox(e,t=!1){if(e.flags|=8,t){e.next=Pa,Pa=e;return}e.next=Ra,Ra=e}function cg(){ix++}function ug(){if(--ix>0)return;if(Pa){let t=Pa;for(Pa=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ra;){let t=Ra;for(Ra=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function sx(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function lx(e){let t,n=e.depsTail,i=n;for(;i;){const o=i.prevDep;i.version===-1?(i===n&&(n=o),fg(i),fE(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=n}function np(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ax(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ax(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Va)||(e.globalVersion=Va,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!np(e))))return;e.flags|=2;const t=e.dep,n=$t,i=jr;$t=e,jr=!0;try{sx(e);const o=e.fn(e._value);(t.version===0||Qn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{$t=n,jr=i,lx(e),e.flags&=-3}}function fg(e,t=!1){const{dep:n,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)fg(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fE(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let jr=!0;const cx=[];function ji(){cx.push(jr),jr=!1}function Wi(){const e=cx.pop();jr=e===void 0?!0:e}function Sy(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$t;$t=void 0;try{t()}finally{$t=n}}}let Va=0;class dE{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wf{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(!$t||!jr||$t===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$t)n=this.activeLink=new dE($t,this),$t.deps?(n.prevDep=$t.depsTail,$t.depsTail.nextDep=n,$t.depsTail=n):$t.deps=$t.depsTail=n,ux(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=$t.depsTail,n.nextDep=void 0,$t.depsTail.nextDep=n,$t.depsTail=n,$t.deps===n&&($t.deps=i)}return n}trigger(t){this.version++,Va++,this.notify(t)}notify(t){cg();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ug()}}}function ux(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)ux(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ef=new WeakMap,hs=Symbol(""),rp=Symbol(""),Ga=Symbol("");function Cn(e,t,n){if(jr&&$t){let i=ef.get(e);i||ef.set(e,i=new Map);let o=i.get(n);o||(i.set(n,o=new Wf),o.map=i,o.key=n),o.track()}}function Ri(e,t,n,i,o,l){const u=ef.get(e);if(!u){Va++;return}const f=h=>{h&&h.trigger()};if(cg(),t==="clear")u.forEach(f);else{const h=Ye(e),p=h&&Ff(n);if(h&&n==="length"){const g=Number(i);u.forEach((v,y)=>{(y==="length"||y===Ga||!qr(y)&&y>=g)&&f(v)})}else switch((n!==void 0||u.has(void 0))&&f(u.get(n)),p&&f(u.get(Ga)),t){case"add":h?p&&f(u.get("length")):(f(u.get(hs)),cl(e)&&f(u.get(rp)));break;case"delete":h||(f(u.get(hs)),cl(e)&&f(u.get(rp)));break;case"set":cl(e)&&f(u.get(hs));break}}ug()}function hE(e,t){const n=ef.get(e);return n&&n.get(t)}function Zs(e){const t=vt(e);return t===e?t:(Cn(t,"iterate",Ga),hr(e)?t:t.map(Ur))}function qf(e){return Cn(e=vt(e),"iterate",Ga),e}function yo(e,t){return qi(e)?_l(ps(e)?Ur(t):t):Ur(t)}const pE={__proto__:null,[Symbol.iterator](){return mh(this,Symbol.iterator,e=>yo(this,e))},concat(...e){return Zs(this).concat(...e.map(t=>Ye(t)?Zs(t):t))},entries(){return mh(this,"entries",e=>(e[1]=yo(this,e[1]),e))},every(e,t){return Ti(this,"every",e,t,void 0,arguments)},filter(e,t){return Ti(this,"filter",e,t,n=>n.map(i=>yo(this,i)),arguments)},find(e,t){return Ti(this,"find",e,t,n=>yo(this,n),arguments)},findIndex(e,t){return Ti(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ti(this,"findLast",e,t,n=>yo(this,n),arguments)},findLastIndex(e,t){return Ti(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ti(this,"forEach",e,t,void 0,arguments)},includes(...e){return vh(this,"includes",e)},indexOf(...e){return vh(this,"indexOf",e)},join(e){return Zs(this).join(e)},lastIndexOf(...e){return vh(this,"lastIndexOf",e)},map(e,t){return Ti(this,"map",e,t,void 0,arguments)},pop(){return ba(this,"pop")},push(...e){return ba(this,"push",e)},reduce(e,...t){return _y(this,"reduce",e,t)},reduceRight(e,...t){return _y(this,"reduceRight",e,t)},shift(){return ba(this,"shift")},some(e,t){return Ti(this,"some",e,t,void 0,arguments)},splice(...e){return ba(this,"splice",e)},toReversed(){return Zs(this).toReversed()},toSorted(e){return Zs(this).toSorted(e)},toSpliced(...e){return Zs(this).toSpliced(...e)},unshift(...e){return ba(this,"unshift",e)},values(){return mh(this,"values",e=>yo(this,e))}};function mh(e,t,n){const i=qf(e),o=i[t]();return i!==e&&!hr(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const gE=Array.prototype;function Ti(e,t,n,i,o,l){const u=qf(e),f=u!==e&&!hr(e),h=u[t];if(h!==gE[t]){const v=h.apply(e,l);return f?Ur(v):v}let p=n;u!==e&&(f?p=function(v,y){return n.call(this,yo(e,v),y,e)}:n.length>2&&(p=function(v,y){return n.call(this,v,y,e)}));const g=h.call(u,p,i);return f&&o?o(g):g}function _y(e,t,n,i){const o=qf(e);let l=n;return o!==e&&(hr(e)?n.length>3&&(l=function(u,f,h){return n.call(this,u,f,h,e)}):l=function(u,f,h){return n.call(this,u,yo(e,f),h,e)}),o[t](l,...i)}function vh(e,t,n){const i=vt(e);Cn(i,"iterate",Ga);const o=i[t](...n);return(o===-1||o===!1)&&Uf(n[0])?(n[0]=vt(n[0]),i[t](...n)):o}function ba(e,t,n=[]){ji(),cg();const i=vt(e)[t].apply(e,n);return ug(),Wi(),i}const mE=ig("__proto__,__v_isRef,__isVue"),fx=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qr));function vE(e){qr(e)||(e=String(e));const t=vt(this);return Cn(t,"has",e),t.hasOwnProperty(e)}class dx{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return i===(o?l?EE:mx:l?gx:px).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const u=Ye(t);if(!o){let h;if(u&&(h=pE[n]))return h;if(n==="hasOwnProperty")return vE}const f=Reflect.get(t,n,Lt(t)?t:i);if((qr(n)?fx.has(n):mE(n))||(o||Cn(t,"get",n),l))return f;if(Lt(f)){const h=u&&Ff(n)?f:f.value;return o&&wt(h)?Sl(h):h}return wt(f)?o?Sl(f):dr(f):f}}class hx extends dx{constructor(t=!1){super(!1,t)}set(t,n,i,o){let l=t[n];const u=Ye(t)&&Ff(n);if(!this._isShallow){const p=qi(l);if(!hr(i)&&!qi(i)&&(l=vt(l),i=vt(i)),!u&&Lt(l)&&!Lt(i))return p||(l.value=i),!0}const f=u?Number(n)<t.length:kt(t,n),h=Reflect.set(t,n,i,Lt(t)?t:o);return t===vt(o)&&(f?Qn(i,l)&&Ri(t,"set",n,i):Ri(t,"add",n,i)),h}deleteProperty(t,n){const i=kt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&i&&Ri(t,"delete",n,void 0),o}has(t,n){const i=Reflect.has(t,n);return(!qr(n)||!fx.has(n))&&Cn(t,"has",n),i}ownKeys(t){return Cn(t,"iterate",Ye(t)?"length":hs),Reflect.ownKeys(t)}}class yE extends dx{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const bE=new hx,wE=new yE,xE=new hx(!0);const ip=e=>e,hu=e=>Reflect.getPrototypeOf(e);function SE(e,t,n){return function(...i){const o=this.__v_raw,l=vt(o),u=cl(l),f=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,p=o[e](...i),g=n?ip:t?_l:Ur;return!t&&Cn(l,"iterate",h?rp:hs),Qt(Object.create(p),{next(){const{value:v,done:y}=p.next();return y?{value:v,done:y}:{value:f?[g(v[0]),g(v[1])]:g(v),done:y}}})}}function pu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _E(e,t){const n={get(o){const l=this.__v_raw,u=vt(l),f=vt(o);e||(Qn(o,f)&&Cn(u,"get",o),Cn(u,"get",f));const{has:h}=hu(u),p=t?ip:e?_l:Ur;if(h.call(u,o))return p(l.get(o));if(h.call(u,f))return p(l.get(f));l!==u&&l.get(o)},get size(){const o=this.__v_raw;return!e&&Cn(vt(o),"iterate",hs),o.size},has(o){const l=this.__v_raw,u=vt(l),f=vt(o);return e||(Qn(o,f)&&Cn(u,"has",o),Cn(u,"has",f)),o===f?l.has(o):l.has(o)||l.has(f)},forEach(o,l){const u=this,f=u.__v_raw,h=vt(f),p=t?ip:e?_l:Ur;return!e&&Cn(h,"iterate",hs),f.forEach((g,v)=>o.call(l,p(g),p(v),u))}};return Qt(n,e?{add:pu("add"),set:pu("set"),delete:pu("delete"),clear:pu("clear")}:{add(o){!t&&!hr(o)&&!qi(o)&&(o=vt(o));const l=vt(this);return hu(l).has.call(l,o)||(l.add(o),Ri(l,"add",o,o)),this},set(o,l){!t&&!hr(l)&&!qi(l)&&(l=vt(l));const u=vt(this),{has:f,get:h}=hu(u);let p=f.call(u,o);p||(o=vt(o),p=f.call(u,o));const g=h.call(u,o);return u.set(o,l),p?Qn(l,g)&&Ri(u,"set",o,l):Ri(u,"add",o,l),this},delete(o){const l=vt(this),{has:u,get:f}=hu(l);let h=u.call(l,o);h||(o=vt(o),h=u.call(l,o)),f&&f.call(l,o);const p=l.delete(o);return h&&Ri(l,"delete",o,void 0),p},clear(){const o=vt(this),l=o.size!==0,u=o.clear();return l&&Ri(o,"clear",void 0,void 0),u}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=SE(o,e,t)}),n}function dg(e,t){const n=_E(e,t);return(i,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(kt(n,o)&&o in i?n:i,o,l)}const kE={get:dg(!1,!1)},TE={get:dg(!1,!0)},CE={get:dg(!0,!1)};const px=new WeakMap,gx=new WeakMap,mx=new WeakMap,EE=new WeakMap;function AE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $E(e){return e.__v_skip||!Object.isExtensible(e)?0:AE(ZC(e))}function dr(e){return qi(e)?e:pg(e,!1,bE,kE,px)}function hg(e){return pg(e,!1,xE,TE,gx)}function Sl(e){return pg(e,!0,wE,CE,mx)}function pg(e,t,n,i,o){if(!wt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=$E(e);if(l===0)return e;const u=o.get(e);if(u)return u;const f=new Proxy(e,l===2?i:n);return o.set(e,f),f}function ps(e){return qi(e)?ps(e.__v_raw):!!(e&&e.__v_isReactive)}function qi(e){return!!(e&&e.__v_isReadonly)}function hr(e){return!!(e&&e.__v_isShallow)}function Uf(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Vf(e){return!kt(e,"__v_skip")&&Object.isExtensible(e)&&Zw(e,"__v_skip",!0),e}const Ur=e=>wt(e)?dr(e):e,_l=e=>wt(e)?Sl(e):e;function Lt(e){return e?e.__v_isRef===!0:!1}function Ke(e){return vx(e,!1)}function Vt(e){return vx(e,!0)}function vx(e,t){return Lt(e)?e:new NE(e,t)}class NE{constructor(t,n){this.dep=new Wf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:vt(t),this._value=n?t:Ur(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||hr(t)||qi(t);t=i?t:vt(t),Qn(t,n)&&(this._rawValue=t,this._value=i?t:Ur(t),this.dep.trigger())}}function W(e){return Lt(e)?e.value:e}function Zt(e){return rt(e)?e():W(e)}const ME={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Lt(o)&&!Lt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function yx(e){return ps(e)?e:new Proxy(e,ME)}class LE{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Wf,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function bx(e){return new LE(e)}function OE(e){const t=Ye(e)?new Array(e.length):{};for(const n in e)t[n]=wx(e,n);return t}class RE{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=vt(t);let o=!0,l=t;if(!Ye(t)||!Ff(String(n)))do o=!Uf(l)||hr(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=W(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Lt(this._raw[this._key])){const n=this._object[this._key];if(Lt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return hE(this._raw,this._key)}}class PE{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 IE(e,t,n){return Lt(e)?e:rt(e)?new PE(e):wt(e)&&arguments.length>1?wx(e,t,n):Ke(e)}function wx(e,t,n){return new RE(e,t,n)}class DE{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Va-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&$t!==this)return ox(this,!0),!0}get value(){const t=this.dep.track();return ax(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FE(e,t,n=!1){let i,o;return rt(e)?i=e:(i=e.get,o=e.set),new DE(i,o,n)}const gu={},tf=new WeakMap;let os;function zE(e,t=!1,n=os){if(n){let i=tf.get(n);i||tf.set(n,i=[]),i.push(e)}}function HE(e,t,n=bt){const{immediate:i,deep:o,once:l,scheduler:u,augmentJob:f,call:h}=n,p=N=>o?N:hr(N)||o===!1||o===0?Pi(N,1):Pi(N);let g,v,y,w,$=!1,_=!1;if(Lt(e)?(v=()=>e.value,$=hr(e)):ps(e)?(v=()=>p(e),$=!0):Ye(e)?(_=!0,$=e.some(N=>ps(N)||hr(N)),v=()=>e.map(N=>{if(Lt(N))return N.value;if(ps(N))return p(N);if(rt(N))return h?h(N,2):N()})):rt(e)?t?v=h?()=>h(e,2):e:v=()=>{if(y){ji();try{y()}finally{Wi()}}const N=os;os=g;try{return h?h(e,3,[w]):e(w)}finally{os=N}}:v=ai,t&&o){const N=v,I=o===!0?1/0:o;v=()=>Pi(N(),I)}const C=ag(),E=()=>{g.stop(),C&&C.active&&sg(C.effects,g)};if(l&&t){const N=t;t=(...I)=>{N(...I),E()}}let L=_?new Array(e.length).fill(gu):gu;const D=N=>{if(!(!(g.flags&1)||!g.dirty&&!N))if(t){const I=g.run();if(o||$||(_?I.some((q,X)=>Qn(q,L[X])):Qn(I,L))){y&&y();const q=os;os=g;try{const X=[I,L===gu?void 0:_&&L[0]===gu?[]:L,w];L=I,h?h(t,3,X):t(...X)}finally{os=q}}}else g.run()};return f&&f(D),g=new rx(v),g.scheduler=u?()=>u(D,!1):D,w=N=>zE(N,!1,g),y=g.onStop=()=>{const N=tf.get(g);if(N){if(h)h(N,4);else for(const I of N)I();tf.delete(g)}},t?i?D(!0):L=g.run():u?u(D.bind(null,!0),!0):g.run(),E.pause=g.pause.bind(g),E.resume=g.resume.bind(g),E.stop=E,E}function Pi(e,t=1/0,n){if(t<=0||!wt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Lt(e))Pi(e.value,t,n);else if(Ye(e))for(let i=0;i<e.length;i++)Pi(e[i],t,n);else if(Fl(e)||cl(e))e.forEach(i=>{Pi(i,t,n)});else if(Jw(e)){for(const i in e)Pi(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Pi(e[i],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.29
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function wc(e,t,n,i){try{return i?e(...i):e()}catch(o){xc(o,t,n)}}function Vr(e,t,n,i){if(rt(e)){const o=wc(e,t,n,i);return o&&Yw(o)&&o.catch(l=>{xc(l,t,n)}),o}if(Ye(e)){const o=[];for(let l=0;l<e.length;l++)o.push(Vr(e[l],t,n,i));return o}}function xc(e,t,n,i=!0){const o=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||bt;if(t){let f=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;f;){const g=f.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}f=f.parent}if(l){ji(),wc(l,null,10,[e,h,p]),Wi();return}}BE(e,n,o,i,u)}function BE(e,t,n,i=!0,o=!1){if(o)throw e;console.error(e)}const Bn=[];let ii=-1;const ul=[];let bo=null,tl=0;const xx=Promise.resolve();let nf=null;function At(e){const t=nf||xx;return e?t.then(this?e.bind(this):e):t}function jE(e){let t=ii+1,n=Bn.length;for(;t<n;){const i=t+n>>>1,o=Bn[i],l=Ka(o);l<e||l===e&&o.flags&2?t=i+1:n=i}return t}function gg(e){if(!(e.flags&1)){const t=Ka(e),n=Bn[Bn.length-1];!n||!(e.flags&2)&&t>=Ka(n)?Bn.push(e):Bn.splice(jE(t),0,e),e.flags|=1,Sx()}}function Sx(){nf||(nf=xx.then(kx))}function op(e){Ye(e)?ul.push(...e):bo&&e.id===-1?bo.splice(tl+1,0,e):e.flags&1||(ul.push(e),e.flags|=1),Sx()}function ky(e,t,n=ii+1){for(;n<Bn.length;n++){const i=Bn[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Bn.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function _x(e){if(ul.length){const t=[...new Set(ul)].sort((n,i)=>Ka(n)-Ka(i));if(ul.length=0,bo){bo.push(...t);return}for(bo=t,tl=0;tl<bo.length;tl++){const n=bo[tl];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bo=null,tl=0}}const Ka=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kx(e){try{for(ii=0;ii<Bn.length;ii++){const t=Bn[ii];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ii<Bn.length;ii++){const t=Bn[ii];t&&(t.flags&=-2)}ii=-1,Bn.length=0,_x(),nf=null,(Bn.length||ul.length)&&kx()}}let wn=null,Gf=null;function rf(e){const t=wn;return wn=e,Gf=e&&e.type.__scopeId||null,t}function Tx(e){Gf=e}function Cx(){Gf=null}const Ex=e=>je;function je(e,t=wn,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&Tl(-1);const l=rf(t);let u;try{u=e(...o)}finally{rf(l),i._d&&Tl(1)}return u};return i._n=!0,i._c=!0,i._d=!0,i}function st(e,t){if(wn===null)return e;const n=ed(wn),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,u,f,h=bt]=t[o];l&&(rt(l)&&(l={mounted:l,updated:l}),l.deep&&Pi(u),i.push({dir:l,instance:n,value:u,oldValue:void 0,arg:f,modifiers:h}))}return e}function Qo(e,t,n,i){const o=e.dirs,l=t&&t.dirs;for(let u=0;u<o.length;u++){const f=o[u];l&&(f.oldValue=l[u].value);let h=f.dir[i];h&&(ji(),Vr(h,n,8,[e.el,f,e,t]),Wi())}}function _r(e,t){if(En){let n=En.provides;const i=En.parent&&En.parent.provides;i===n&&(n=En.provides=Object.create(i)),n[e]=t}}function bn(e,t,n=!1){const i=gi();if(i||gs){let o=gs?gs._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&rt(t)?t.call(i&&i.proxy):t}}function Ax(){return!!(gi()||gs)}const WE=Symbol.for("v-scx"),qE=()=>bn(WE);function $x(e,t){return Kf(e,null,t)}function UE(e,t){return Kf(e,null,{flush:"sync"})}function yt(e,t,n){return Kf(e,t,n)}function Kf(e,t,n=bt){const{immediate:i,deep:o,flush:l,once:u}=n,f=Qt({},n),h=t&&i||!t&&l!=="post";let p;if(Za){if(l==="sync"){const w=qE();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=ai,w.resume=ai,w.pause=ai,w}}const g=En;f.call=(w,$,_)=>Vr(w,g,$,_);let v=!1;l==="post"?f.scheduler=w=>{Dn(w,g&&g.suspense)}:l!=="sync"&&(v=!0,f.scheduler=(w,$)=>{$?w():gg(w)}),f.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const y=HE(e,t,f);return Za&&(p?p.push(y):h&&y()),y}function VE(e,t,n){const i=this.proxy,o=jt(e)?e.includes(".")?Nx(i,e):()=>i[e]:e.bind(i,i);let l;rt(t)?l=t:(l=t.handler,n=t);const u=kc(this),f=Kf(o,l.bind(i),n);return u(),f}function Nx(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}const GE=Symbol("_vte"),Mx=e=>e.__isTeleport,oi=Symbol("_leaveCb"),wa=Symbol("_enterCb");function KE(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yi(()=>{e.isMounted=!0}),Sc(()=>{e.isUnmounting=!0}),e}const wr=[Function,Array],Lx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wr,onEnter:wr,onAfterEnter:wr,onEnterCancelled:wr,onBeforeLeave:wr,onLeave:wr,onAfterLeave:wr,onLeaveCancelled:wr,onBeforeAppear:wr,onAppear:wr,onAfterAppear:wr,onAppearCancelled:wr},Ox=e=>{const t=e.subTree;return t.component?Ox(t.component):t},YE={name:"BaseTransition",props:Lx,setup(e,{slots:t}){const n=gi(),i=KE();return()=>{const o=t.default&&Ix(t.default(),!0);if(!o||!o.length)return;const l=Rx(o),u=vt(e),{mode:f}=u;if(i.isLeaving)return yh(l);const h=Ty(l);if(!h)return yh(l);let p=sp(h,u,i,n,v=>p=v);h.type!==dn&&Ya(h,p);let g=n.subTree&&Ty(n.subTree);if(g&&g.type!==dn&&!si(g,h)&&Ox(n).type!==dn){let v=sp(g,u,i,n);if(Ya(g,v),f==="out-in"&&h.type!==dn)return i.isLeaving=!0,v.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete v.afterLeave,g=void 0},yh(l);f==="in-out"&&h.type!==dn?v.delayLeave=(y,w,$)=>{const _=Px(i,g);_[String(g.key)]=g,y[oi]=()=>{w(),y[oi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{$(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return l}}};function Rx(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==dn){t=n;break}}return t}const XE=YE;function Px(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function sp(e,t,n,i,o){const{appear:l,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:y,onLeave:w,onAfterLeave:$,onLeaveCancelled:_,onBeforeAppear:C,onAppear:E,onAfterAppear:L,onAppearCancelled:D}=t,N=String(e.key),I=Px(n,e),q=(J,U)=>{J&&Vr(J,i,9,U)},X=(J,U)=>{const K=U[1];q(J,U),Ye(J)?J.every(P=>P.length<=1)&&K():J.length<=1&&K()},ie={mode:u,persisted:f,beforeEnter(J){let U=h;if(!n.isMounted)if(l)U=C||h;else return;J[oi]&&J[oi](!0);const K=I[N];K&&si(e,K)&&K.el[oi]&&K.el[oi](),q(U,[J])},enter(J){if(I[N]===e)return;let U=p,K=g,P=v;if(!n.isMounted)if(l)U=E||p,K=L||g,P=D||v;else return;let O=!1;J[wa]=S=>{O||(O=!0,S?q(P,[J]):q(K,[J]),ie.delayedLeave&&ie.delayedLeave(),J[wa]=void 0)};const k=J[wa].bind(null,!1);U?X(U,[J,k]):k()},leave(J,U){const K=String(e.key);if(J[wa]&&J[wa](!0),n.isUnmounting)return U();q(y,[J]);let P=!1;J[oi]=k=>{P||(P=!0,U(),k?q(_,[J]):q($,[J]),J[oi]=void 0,I[K]===e&&delete I[K])};const O=J[oi].bind(null,!1);I[K]=e,w?X(w,[J,O]):O()},clone(J){const U=sp(J,t,n,i,o);return o&&o(U),U}};return ie}function yh(e){if(Yf(e))return e=Lo(e),e.children=null,e}function Ty(e){if(!Yf(e))return Mx(e.type)&&e.children?Rx(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&rt(n.default))return n.default()}}function Ya(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ya(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 Ix(e,t=!1,n){let i=[],o=0;for(let l=0;l<e.length;l++){let u=e[l];const f=n==null?u.key:String(n)+String(u.key!=null?u.key:l);u.type===nt?(u.patchFlag&128&&o++,i=i.concat(Ix(u.children,t,f))):(t||u.type!==dn)&&i.push(f!=null?Lo(u,{key:f}):u)}if(o>1)for(let l=0;l<i.length;l++)i[l].patchFlag=-2;return i}function tt(e,t){return rt(e)?Qt({name:e.name},t,{setup:e}):e}function mg(){const e=gi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Dx(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Cy(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const of=new WeakMap;function Ia(e,t,n,i,o=!1){if(Ye(e)){e.forEach((_,C)=>Ia(_,t&&(Ye(t)?t[C]:t),n,i,o));return}if(fl(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Ia(e,t,n,i.component.subTree);return}const l=i.shapeFlag&4?ed(i.component):i.el,u=o?null:l,{i:f,r:h}=e,p=t&&t.r,g=f.refs===bt?f.refs={}:f.refs,v=f.setupState,y=vt(v),w=v===bt?Kw:_=>Cy(g,_)?!1:kt(y,_),$=(_,C)=>!(C&&Cy(g,C));if(p!=null&&p!==h){if(Ey(t),jt(p))g[p]=null,w(p)&&(v[p]=null);else if(Lt(p)){const _=t;$(p,_.k)&&(p.value=null),_.k&&(g[_.k]=null)}}if(rt(h))wc(h,f,12,[u,g]);else{const _=jt(h),C=Lt(h);if(_||C){const E=()=>{if(e.f){const L=_?w(h)?v[h]:g[h]:$()||!e.k?h.value:g[e.k];if(o)Ye(L)&&sg(L,l);else if(Ye(L))L.includes(l)||L.push(l);else if(_)g[h]=[l],w(h)&&(v[h]=g[h]);else{const D=[l];$(h,e.k)&&(h.value=D),e.k&&(g[e.k]=D)}}else _?(g[h]=u,w(h)&&(v[h]=u)):C&&($(h,e.k)&&(h.value=u),e.k&&(g[e.k]=u))};if(u){const L=()=>{E(),of.delete(e)};L.id=-1,of.set(e,L),Dn(L,n)}else Ey(e),E()}}}function Ey(e){const t=of.get(e);t&&(t.flags|=8,of.delete(e))}jf().requestIdleCallback;jf().cancelIdleCallback;const fl=e=>!!e.type.__asyncLoader,Yf=e=>e.type.__isKeepAlive;function JE(e,t){Fx(e,"a",t)}function ZE(e,t){Fx(e,"da",t)}function Fx(e,t,n=En){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xf(t,i,n),n){let o=n.parent;for(;o&&o.parent;)Yf(o.parent.vnode)&&QE(i,t,n,o),o=o.parent}}function QE(e,t,n,i){const o=Xf(t,e,i,!0);_c(()=>{sg(i[t],o)},n)}function Xf(e,t,n=En,i=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...u)=>{ji();const f=kc(n),h=Vr(t,n,e,u);return f(),Wi(),h});return i?o.unshift(l):o.push(l),l}}const Ki=e=>(t,n=En)=>{(!Za||e==="sp")&&Xf(e,(...i)=>t(...i),n)},eA=Ki("bm"),Yi=Ki("m"),tA=Ki("bu"),nA=Ki("u"),Sc=Ki("bum"),_c=Ki("um"),rA=Ki("sp"),iA=Ki("rtg"),oA=Ki("rtc");function sA(e,t=En){Xf("ec",e,t)}const vg="components",lA="directives";function ys(e,t){return yg(vg,e,!0,t)||e}const zx=Symbol.for("v-ndc");function sf(e){return jt(e)?yg(vg,e,!1)||e:e||zx}function ir(e){return yg(lA,e)}function yg(e,t,n=!0,i=!1){const o=wn||En;if(o){const l=o.type;if(e===vg){const f=XA(l,!1);if(f&&(f===t||f===mr(t)||f===Hf(mr(t))))return l}const u=Ay(o[e]||l[e],t)||Ay(o.appContext[e],t);return!u&&i?l:u}}function Ay(e,t){return e&&(e[t]||e[mr(t)]||e[Hf(mr(t))])}function xn(e,t,n,i){let o;const l=n,u=Ye(e);if(u||jt(e)){const f=u&&ps(e);let h=!1,p=!1;f&&(h=!hr(e),p=qi(e),e=qf(e)),o=new Array(e.length);for(let g=0,v=e.length;g<v;g++)o[g]=t(h?p?_l(Ur(e[g])):Ur(e[g]):e[g],g,void 0,l)}else if(typeof e=="number"){o=new Array(e);for(let f=0;f<e;f++)o[f]=t(f+1,f,void 0,l)}else if(wt(e))if(e[Symbol.iterator])o=Array.from(e,(f,h)=>t(f,h,void 0,l));else{const f=Object.keys(e);o=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];o[h]=t(e[g],g,h,l)}}else o=[];return o}function aA(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(Ye(i))for(let o=0;o<i.length;o++)e[i[o].name]=i[o].fn;else i&&(e[i.name]=i.key?(...o)=>{const l=i.fn(...o);return l&&(l.key=i.key),l}:i.fn)}return e}function Bt(e,t,n={},i,o){if(wn.ce||wn.parent&&fl(wn.parent)&&wn.parent.ce){const p=Object.keys(n).length>0;return t!=="default"&&(n.name=t),te(),We(nt,null,[Ne("slot",n,i&&i())],p?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),te();const u=l&&Hx(l(n)),f=n.key||u&&u.key,h=We(nt,{key:(f&&!qr(f)?f:`_${t}`)+(!u&&i?"_fb":"")},u||(i?i():[]),u&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),l&&l._c&&(l._d=!0),h}function Hx(e){return e.some(t=>Cl(t)?!(t.type===dn||t.type===nt&&!Hx(t.children)):!0)?e:null}function cA(e,t){const n={};for(const i in e)n[Ru(i)]=e[i];return n}const lp=e=>e?d1(e)?ed(e):lp(e.parent):null,Da=Qt(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=>lp(e.parent),$root:e=>lp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qx(e),$forceUpdate:e=>e.f||(e.f=()=>{gg(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>VE.bind(e)}),bh=(e,t)=>e!==bt&&!e.__isScriptSetup&&kt(e,t),uA={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:l,accessCache:u,type:f,appContext:h}=e;if(t[0]!=="$"){const y=u[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(bh(i,t))return u[t]=1,i[t];if(o!==bt&&kt(o,t))return u[t]=2,o[t];if(kt(l,t))return u[t]=3,l[t];if(n!==bt&&kt(n,t))return u[t]=4,n[t];ap&&(u[t]=0)}}const p=Da[t];let g,v;if(p)return t==="$attrs"&&Cn(e.attrs,"get",""),p(e);if((g=f.__cssModules)&&(g=g[t]))return g;if(n!==bt&&kt(n,t))return u[t]=4,n[t];if(v=h.config.globalProperties,kt(v,t))return v[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:l}=e;return bh(o,t)?(o[t]=n,!0):i!==bt&&kt(i,t)?(i[t]=n,!0):kt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,props:l,type:u}},f){let h;return!!(n[f]||e!==bt&&f[0]!=="$"&&kt(e,f)||bh(t,f)||kt(l,f)||kt(i,f)||kt(Da,f)||kt(o.config.globalProperties,f)||(h=u.__cssModules)&&h[f])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:kt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bx(){return jx().slots}function fA(){return jx().attrs}function jx(e){const t=gi();return t.setupContext||(t.setupContext=p1(t))}function lf(e){return Ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xa(e,t){return!e||!t?e||t:Ye(e)&&Ye(t)?e.concat(t):Qt({},lf(e),lf(t))}let ap=!0;function dA(e){const t=qx(e),n=e.proxy,i=e.ctx;ap=!1,t.beforeCreate&&$y(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:u,watch:f,provide:h,inject:p,created:g,beforeMount:v,mounted:y,beforeUpdate:w,updated:$,activated:_,deactivated:C,beforeDestroy:E,beforeUnmount:L,destroyed:D,unmounted:N,render:I,renderTracked:q,renderTriggered:X,errorCaptured:ie,serverPrefetch:J,expose:U,inheritAttrs:K,components:P,directives:O,filters:k}=t;if(p&&hA(p,i,null),u)for(const B in u){const ae=u[B];rt(ae)&&(i[B]=ae.bind(n))}if(o){const B=o.call(n,n);wt(B)&&(e.data=dr(B))}if(ap=!0,l)for(const B in l){const ae=l[B],ve=rt(ae)?ae.bind(n,n):rt(ae.get)?ae.get.bind(n,n):ai,_e=!rt(ae)&&rt(ae.set)?ae.set.bind(n):ai,Be=Se({get:ve,set:_e});Object.defineProperty(i,B,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ee=>Be.value=Ee})}if(f)for(const B in f)Wx(f[B],i,n,B);if(h){const B=rt(h)?h.call(n):h;Reflect.ownKeys(B).forEach(ae=>{_r(ae,B[ae])})}g&&$y(g,e,"c");function R(B,ae){Ye(ae)?ae.forEach(ve=>B(ve.bind(n))):ae&&B(ae.bind(n))}if(R(eA,v),R(Yi,y),R(tA,w),R(nA,$),R(JE,_),R(ZE,C),R(sA,ie),R(oA,q),R(iA,X),R(Sc,L),R(_c,N),R(rA,J),Ye(U))if(U.length){const B=e.exposed||(e.exposed={});U.forEach(ae=>{Object.defineProperty(B,ae,{get:()=>n[ae],set:ve=>n[ae]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===ai&&(e.render=I),K!=null&&(e.inheritAttrs=K),P&&(e.components=P),O&&(e.directives=O),J&&Dx(e)}function hA(e,t,n=ai){Ye(e)&&(e=cp(e));for(const i in e){const o=e[i];let l;wt(o)?"default"in o?l=bn(o.from||i,o.default,!0):l=bn(o.from||i):l=bn(o),Lt(l)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[i]=l}}function $y(e,t,n){Vr(Ye(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wx(e,t,n,i){let o=i.includes(".")?Nx(n,i):()=>n[i];if(jt(e)){const l=t[e];rt(l)&&yt(o,l)}else if(rt(e))yt(o,e.bind(n));else if(wt(e))if(Ye(e))e.forEach(l=>Wx(l,t,n,i));else{const l=rt(e.handler)?e.handler.bind(n):t[e.handler];rt(l)&&yt(o,l,e)}}function qx(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,f=l.get(t);let h;return f?h=f:!o.length&&!n&&!i?h=t:(h={},o.length&&o.forEach(p=>af(h,p,u,!0)),af(h,t,u)),wt(t)&&l.set(t,h),h}function af(e,t,n,i=!1){const{mixins:o,extends:l}=t;l&&af(e,l,n,!0),o&&o.forEach(u=>af(e,u,n,!0));for(const u in t)if(!(i&&u==="expose")){const f=pA[u]||n&&n[u];e[u]=f?f(e[u],t[u]):t[u]}return e}const pA={data:Ny,props:My,emits:My,methods:Aa,computed:Aa,beforeCreate:In,created:In,beforeMount:In,mounted:In,beforeUpdate:In,updated:In,beforeDestroy:In,beforeUnmount:In,destroyed:In,unmounted:In,activated:In,deactivated:In,errorCaptured:In,serverPrefetch:In,components:Aa,directives:Aa,watch:mA,provide:Ny,inject:gA};function Ny(e,t){return t?e?function(){return Qt(rt(e)?e.call(this,this):e,rt(t)?t.call(this,this):t)}:t:e}function gA(e,t){return Aa(cp(e),cp(t))}function cp(e){if(Ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function In(e,t){return e?[...new Set([].concat(e,t))]:t}function Aa(e,t){return e?Qt(Object.create(null),e,t):t}function My(e,t){return e?Ye(e)&&Ye(t)?[...new Set([...e,...t])]:Qt(Object.create(null),lf(e),lf(t??{})):t}function mA(e,t){if(!e)return t;if(!t)return e;const n=Qt(Object.create(null),e);for(const i in t)n[i]=In(e[i],t[i]);return n}function Ux(){return{app:null,config:{isNativeTag:Kw,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 vA=0;function yA(e,t){return function(i,o=null){rt(i)||(i=Qt({},i)),o!=null&&!wt(o)&&(o=null);const l=Ux(),u=new WeakSet,f=[];let h=!1;const p=l.app={_uid:vA++,_component:i,_props:o,_container:null,_context:l,_instance:null,version:ZA,get config(){return l.config},set config(g){},use(g,...v){return u.has(g)||(g&&rt(g.install)?(u.add(g),g.install(p,...v)):rt(g)&&(u.add(g),g(p,...v))),p},mixin(g){return l.mixins.includes(g)||l.mixins.push(g),p},component(g,v){return v?(l.components[g]=v,p):l.components[g]},directive(g,v){return v?(l.directives[g]=v,p):l.directives[g]},mount(g,v,y){if(!h){const w=p._ceVNode||Ne(i,o);return w.appContext=l,y===!0?y="svg":y===!1&&(y=void 0),e(w,g,y),h=!0,p._container=g,g.__vue_app__=p,ed(w.component)}},onUnmount(g){f.push(g)},unmount(){h&&(Vr(f,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return l.provides[g]=v,p},runWithContext(g){const v=gs;gs=p;try{return g()}finally{gs=v}}};return p}}let gs=null;function Jf(e,t,n=bt){const i=gi(),o=mr(t),l=Gi(t),u=Vx(e,o),f=bx((h,p)=>{let g,v=bt,y;return UE(()=>{const w=e[o];Qn(g,w)&&(g=w,p())}),{get(){return h(),n.get?n.get(g):g},set(w){const $=n.set?n.set(w):w;if(!Qn($,g)&&!(v!==bt&&Qn(w,v)))return;const _=i.vnode.props;_&&(t in _||o in _||l in _)&&(`onUpdate:${t}`in _||`onUpdate:${o}`in _||`onUpdate:${l}`in _)||(g=w,p()),i.emit(`update:${t}`,$),Qn(w,$)&&Qn(w,v)&&!Qn($,y)&&p(),v=w,y=$}}});return f[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?u||bt:f,done:!1}:{done:!0}}}},f}const Vx=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mr(t)}Modifiers`]||e[`${Gi(t)}Modifiers`];function bA(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||bt;let o=n;const l=t.startsWith("update:"),u=l&&Vx(i,t.slice(7));u&&(u.trim&&(o=n.map(g=>jt(g)?g.trim():g)),u.number&&(o=n.map(Bf)));let f,h=i[f=Ru(t)]||i[f=Ru(mr(t))];!h&&l&&(h=i[f=Ru(Gi(t))]),h&&Vr(h,e,6,o);const p=i[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Vr(p,e,6,o)}}const wA=new WeakMap;function Gx(e,t,n=!1){const i=n?wA:t.emitsCache,o=i.get(e);if(o!==void 0)return o;const l=e.emits;let u={},f=!1;if(!rt(e)){const h=p=>{const g=Gx(p,t,!0);g&&(f=!0,Qt(u,g))};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!l&&!f?(wt(e)&&i.set(e,null),null):(Ye(l)?l.forEach(h=>u[h]=null):Qt(u,l),wt(e)&&i.set(e,u),u)}function Zf(e,t){return!e||!Df(t)?!1:(t=t.slice(2).replace(/Once$/,""),kt(e,t[0].toLowerCase()+t.slice(1))||kt(e,Gi(t))||kt(e,t))}function Ly(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[l],slots:u,attrs:f,emit:h,render:p,renderCache:g,props:v,data:y,setupState:w,ctx:$,inheritAttrs:_}=e,C=rf(e);let E,L;try{if(n.shapeFlag&4){const N=o||i,I=N;E=zr(p.call(I,N,g,v,w,y,$)),L=f}else{const N=t;E=zr(N.length>1?N(v,{attrs:f,slots:u,emit:h}):N(v,null)),L=t.props?f:SA(f)}}catch(N){Fa.length=0,xc(N,e,1),E=Ne(dn)}let D=E;if(L&&_!==!1){const N=Object.keys(L),{shapeFlag:I}=D;N.length&&I&7&&(l&&N.some(og)&&(L=_A(L,l)),D=Lo(D,L,!1,!0))}return n.dirs&&(D=Lo(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&Ya(D,n.transition),E=D,rf(C),E}function xA(e,t=!0){let n;for(let i=0;i<e.length;i++){const o=e[i];if(Cl(o)){if(o.type!==dn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const SA=e=>{let t;for(const n in e)(n==="class"||n==="style"||Df(n))&&((t||(t={}))[n]=e[n]);return t},_A=(e,t)=>{const n={};for(const i in e)(!og(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function kA(e,t,n){const{props:i,children:o,component:l}=e,{props:u,children:f,patchFlag:h}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&h>=0){if(h&1024)return!0;if(h&16)return i?Oy(i,u,p):!!u;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const y=g[v];if(Kx(u,i,y)&&!Zf(p,y))return!0}}}else return(o||f)&&(!f||!f.$stable)?!0:i===u?!1:i?u?Oy(i,u,p):!0:!!u;return!1}function Oy(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const l=i[o];if(Kx(t,e,l)&&!Zf(n,l))return!0}return!1}function Kx(e,t,n){const i=e[n],o=t[n];return n==="style"&&wt(i)&&wt(o)?!zl(i,o):i!==o}function bg({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Yx={},Xx=()=>Object.create(Yx),Jx=e=>Object.getPrototypeOf(e)===Yx;function TA(e,t,n,i=!1){const o={},l=Xx();e.propsDefaults=Object.create(null),Zx(e,t,o,l);for(const u in e.propsOptions[0])u in o||(o[u]=void 0);n?e.props=i?o:hg(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function CA(e,t,n,i){const{props:o,attrs:l,vnode:{patchFlag:u}}=e,f=vt(o),[h]=e.propsOptions;let p=!1;if((i||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let y=g[v];if(Zf(e.emitsOptions,y))continue;const w=t[y];if(h)if(kt(l,y))w!==l[y]&&(l[y]=w,p=!0);else{const $=mr(y);o[$]=up(h,f,$,w,e,!1)}else w!==l[y]&&(l[y]=w,p=!0)}}}else{Zx(e,t,o,l)&&(p=!0);let g;for(const v in f)(!t||!kt(t,v)&&((g=Gi(v))===v||!kt(t,g)))&&(h?n&&(n[v]!==void 0||n[g]!==void 0)&&(o[v]=up(h,f,v,void 0,e,!0)):delete o[v]);if(l!==f)for(const v in l)(!t||!kt(t,v))&&(delete l[v],p=!0)}p&&Ri(e.attrs,"set","")}function Zx(e,t,n,i){const[o,l]=e.propsOptions;let u=!1,f;if(t)for(let h in t){if(Oa(h))continue;const p=t[h];let g;o&&kt(o,g=mr(h))?!l||!l.includes(g)?n[g]=p:(f||(f={}))[g]=p:Zf(e.emitsOptions,h)||(!(h in i)||p!==i[h])&&(i[h]=p,u=!0)}if(l){const h=vt(n),p=f||bt;for(let g=0;g<l.length;g++){const v=l[g];n[v]=up(o,h,v,p[v],e,!kt(p,v))}}return u}function up(e,t,n,i,o,l){const u=e[n];if(u!=null){const f=kt(u,"default");if(f&&i===void 0){const h=u.default;if(u.type!==Function&&!u.skipFactory&&rt(h)){const{propsDefaults:p}=o;if(n in p)i=p[n];else{const g=kc(o);i=p[n]=h.call(null,t),g()}}else i=h;o.ce&&o.ce._setProp(n,i)}u[0]&&(l&&!f?i=!1:u[1]&&(i===""||i===Gi(n))&&(i=!0))}return i}const EA=new WeakMap;function Qx(e,t,n=!1){const i=n?EA:t.propsCache,o=i.get(e);if(o)return o;const l=e.props,u={},f=[];let h=!1;if(!rt(e)){const g=v=>{h=!0;const[y,w]=Qx(v,t,!0);Qt(u,y),w&&f.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!l&&!h)return wt(e)&&i.set(e,al),al;if(Ye(l))for(let g=0;g<l.length;g++){const v=mr(l[g]);Ry(v)&&(u[v]=bt)}else if(l)for(const g in l){const v=mr(g);if(Ry(v)){const y=l[g],w=u[v]=Ye(y)||rt(y)?{type:y}:Qt({},y),$=w.type;let _=!1,C=!0;if(Ye($))for(let E=0;E<$.length;++E){const L=$[E],D=rt(L)&&L.name;if(D==="Boolean"){_=!0;break}else D==="String"&&(C=!1)}else _=rt($)&&$.name==="Boolean";w[0]=_,w[1]=C,(_||kt(w,"default"))&&f.push(v)}}const p=[u,f];return wt(e)&&i.set(e,p),p}function Ry(e){return e[0]!=="$"&&!Oa(e)}const wg=e=>e==="_"||e==="_ctx"||e==="$stable",xg=e=>Ye(e)?e.map(zr):[zr(e)],AA=(e,t,n)=>{if(t._n)return t;const i=je((...o)=>xg(t(...o)),n);return i._c=!1,i},e1=(e,t,n)=>{const i=e._ctx;for(const o in e){if(wg(o))continue;const l=e[o];if(rt(l))t[o]=AA(o,l,i);else if(l!=null){const u=xg(l);t[o]=()=>u}}},t1=(e,t)=>{const n=xg(t);e.slots.default=()=>n},n1=(e,t,n)=>{for(const i in t)(n||!wg(i))&&(e[i]=t[i])},$A=(e,t,n)=>{const i=e.slots=Xx();if(e.vnode.shapeFlag&32){const o=t._;o?(n1(i,t,n),n&&Zw(i,"_",o,!0)):e1(t,i)}else t&&t1(e,t)},NA=(e,t,n)=>{const{vnode:i,slots:o}=e;let l=!0,u=bt;if(i.shapeFlag&32){const f=t._;f?n&&f===1?l=!1:n1(o,t,n):(l=!t.$stable,e1(t,o)),u=t}else t&&(t1(e,t),u={default:1});if(l)for(const f in o)!wg(f)&&u[f]==null&&delete o[f]},Dn=BA;function MA(e){return LA(e)}function LA(e,t){const n=jf();n.__VUE__=!0;const{insert:i,remove:o,patchProp:l,createElement:u,createText:f,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:y,setScopeId:w=ai,insertStaticContent:$}=e,_=(F,j,ee,de=null,he=null,me=null,Ce=void 0,Ae=null,xe=!!j.dynamicChildren)=>{if(F===j)return;F&&!si(F,j)&&(de=z(F),Ee(F,he,me,!0),F=null),j.patchFlag===-2&&(xe=!1,j.dynamicChildren=null);const{type:be,ref:Q,shapeFlag:ue}=j;switch(be){case Qf:C(F,j,ee,de);break;case dn:E(F,j,ee,de);break;case xh:F==null&&L(j,ee,de,Ce);break;case nt:P(F,j,ee,de,he,me,Ce,Ae,xe);break;default:ue&1?I(F,j,ee,de,he,me,Ce,Ae,xe):ue&6?O(F,j,ee,de,he,me,Ce,Ae,xe):(ue&64||ue&128)&&be.process(F,j,ee,de,he,me,Ce,Ae,xe,le)}Q!=null&&he?Ia(Q,F&&F.ref,me,j||F,!j):Q==null&&F&&F.ref!=null&&Ia(F.ref,null,me,F,!0)},C=(F,j,ee,de)=>{if(F==null)i(j.el=f(j.children),ee,de);else{const he=j.el=F.el;j.children!==F.children&&p(he,j.children)}},E=(F,j,ee,de)=>{F==null?i(j.el=h(j.children||""),ee,de):j.el=F.el},L=(F,j,ee,de)=>{[F.el,F.anchor]=$(F.children,j,ee,de,F.el,F.anchor)},D=({el:F,anchor:j},ee,de)=>{let he;for(;F&&F!==j;)he=y(F),i(F,ee,de),F=he;i(j,ee,de)},N=({el:F,anchor:j})=>{let ee;for(;F&&F!==j;)ee=y(F),o(F),F=ee;o(j)},I=(F,j,ee,de,he,me,Ce,Ae,xe)=>{if(j.type==="svg"?Ce="svg":j.type==="math"&&(Ce="mathml"),F==null)q(j,ee,de,he,me,Ce,Ae,xe);else{const be=F.el&&F.el._isVueCE?F.el:null;try{be&&be._beginPatch(),J(F,j,he,me,Ce,Ae,xe)}finally{be&&be._endPatch()}}},q=(F,j,ee,de,he,me,Ce,Ae)=>{let xe,be;const{props:Q,shapeFlag:ue,transition:oe,dirs:Pe}=F;if(xe=F.el=u(F.type,me,Q&&Q.is,Q),ue&8?g(xe,F.children):ue&16&&ie(F.children,xe,null,de,he,wh(F,me),Ce,Ae),Pe&&Qo(F,null,de,"created"),X(xe,F,F.scopeId,Ce,de),Q){for(const ct in Q)ct!=="value"&&!Oa(ct)&&l(xe,ct,null,Q[ct],me,de);"value"in Q&&l(xe,"value",null,Q.value,me),(be=Q.onVnodeBeforeMount)&&ri(be,de,F)}Pe&&Qo(F,null,de,"beforeMount");const et=OA(he,oe);et&&oe.beforeEnter(xe),i(xe,j,ee),((be=Q&&Q.onVnodeMounted)||et||Pe)&&Dn(()=>{be&&ri(be,de,F),et&&oe.enter(xe),Pe&&Qo(F,null,de,"mounted")},he)},X=(F,j,ee,de,he)=>{if(ee&&w(F,ee),de)for(let me=0;me<de.length;me++)w(F,de[me]);if(he){let me=he.subTree;if(j===me||s1(me.type)&&(me.ssContent===j||me.ssFallback===j)){const Ce=he.vnode;X(F,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},ie=(F,j,ee,de,he,me,Ce,Ae,xe=0)=>{for(let be=xe;be<F.length;be++){const Q=F[be]=Ae?Oi(F[be]):zr(F[be]);_(null,Q,j,ee,de,he,me,Ce,Ae)}},J=(F,j,ee,de,he,me,Ce)=>{const Ae=j.el=F.el;let{patchFlag:xe,dynamicChildren:be,dirs:Q}=j;xe|=F.patchFlag&16;const ue=F.props||bt,oe=j.props||bt;let Pe;if(ee&&es(ee,!1),(Pe=oe.onVnodeBeforeUpdate)&&ri(Pe,ee,j,F),Q&&Qo(j,F,ee,"beforeUpdate"),ee&&es(ee,!0),(ue.innerHTML&&oe.innerHTML==null||ue.textContent&&oe.textContent==null)&&g(Ae,""),be?U(F.dynamicChildren,be,Ae,ee,de,wh(j,he),me):Ce||ae(F,j,Ae,null,ee,de,wh(j,he),me,!1),xe>0){if(xe&16)K(Ae,ue,oe,ee,he);else if(xe&2&&ue.class!==oe.class&&l(Ae,"class",null,oe.class,he),xe&4&&l(Ae,"style",ue.style,oe.style,he),xe&8){const et=j.dynamicProps;for(let ct=0;ct<et.length;ct++){const dt=et[ct],Ot=ue[dt],ut=oe[dt];(ut!==Ot||dt==="value")&&l(Ae,dt,Ot,ut,he,ee)}}xe&1&&F.children!==j.children&&g(Ae,j.children)}else!Ce&&be==null&&K(Ae,ue,oe,ee,he);((Pe=oe.onVnodeUpdated)||Q)&&Dn(()=>{Pe&&ri(Pe,ee,j,F),Q&&Qo(j,F,ee,"updated")},de)},U=(F,j,ee,de,he,me,Ce)=>{for(let Ae=0;Ae<j.length;Ae++){const xe=F[Ae],be=j[Ae],Q=xe.el&&(xe.type===nt||!si(xe,be)||xe.shapeFlag&198)?v(xe.el):ee;_(xe,be,Q,null,de,he,me,Ce,!0)}},K=(F,j,ee,de,he)=>{if(j!==ee){if(j!==bt)for(const me in j)!Oa(me)&&!(me in ee)&&l(F,me,j[me],null,he,de);for(const me in ee){if(Oa(me))continue;const Ce=ee[me],Ae=j[me];Ce!==Ae&&me!=="value"&&l(F,me,Ae,Ce,he,de)}"value"in ee&&l(F,"value",j.value,ee.value,he)}},P=(F,j,ee,de,he,me,Ce,Ae,xe)=>{const be=j.el=F?F.el:f(""),Q=j.anchor=F?F.anchor:f("");let{patchFlag:ue,dynamicChildren:oe,slotScopeIds:Pe}=j;Pe&&(Ae=Ae?Ae.concat(Pe):Pe),F==null?(i(be,ee,de),i(Q,ee,de),ie(j.children||[],ee,Q,he,me,Ce,Ae,xe)):ue>0&&ue&64&&oe&&F.dynamicChildren&&F.dynamicChildren.length===oe.length?(U(F.dynamicChildren,oe,ee,he,me,Ce,Ae),(j.key!=null||he&&j===he.subTree)&&r1(F,j,!0)):ae(F,j,ee,Q,he,me,Ce,Ae,xe)},O=(F,j,ee,de,he,me,Ce,Ae,xe)=>{j.slotScopeIds=Ae,F==null?j.shapeFlag&512?he.ctx.activate(j,ee,de,Ce,xe):k(j,ee,de,he,me,Ce,xe):S(F,j,xe)},k=(F,j,ee,de,he,me,Ce)=>{const Ae=F.component=VA(F,de,he);if(Yf(F)&&(Ae.ctx.renderer=le),GA(Ae,!1,Ce),Ae.asyncDep){if(he&&he.registerDep(Ae,R,Ce),!F.el){const xe=Ae.subTree=Ne(dn);E(null,xe,j,ee),F.placeholder=xe.el}}else R(Ae,F,j,ee,he,me,Ce)},S=(F,j,ee)=>{const de=j.component=F.component;if(kA(F,j,ee))if(de.asyncDep&&!de.asyncResolved){B(de,j,ee);return}else de.next=j,de.update();else j.el=F.el,de.vnode=j},R=(F,j,ee,de,he,me,Ce)=>{const Ae=()=>{if(F.isMounted){let{next:ue,bu:oe,u:Pe,parent:et,vnode:ct}=F;{const Gt=i1(F);if(Gt){ue&&(ue.el=ct.el,B(F,ue,Ce)),Gt.asyncDep.then(()=>{Dn(()=>{F.isUnmounted||be()},he)});return}}let dt=ue,Ot;es(F,!1),ue?(ue.el=ct.el,B(F,ue,Ce)):ue=ct,oe&&Pu(oe),(Ot=ue.props&&ue.props.onVnodeBeforeUpdate)&&ri(Ot,et,ue,ct),es(F,!0);const ut=Ly(F),en=F.subTree;F.subTree=ut,_(en,ut,v(en.el),z(en),F,he,me),ue.el=ut.el,dt===null&&bg(F,ut.el),Pe&&Dn(Pe,he),(Ot=ue.props&&ue.props.onVnodeUpdated)&&Dn(()=>ri(Ot,et,ue,ct),he)}else{let ue;const{el:oe,props:Pe}=j,{bm:et,m:ct,parent:dt,root:Ot,type:ut}=F,en=fl(j);es(F,!1),et&&Pu(et),!en&&(ue=Pe&&Pe.onVnodeBeforeMount)&&ri(ue,dt,j),es(F,!0);{Ot.ce&&Ot.ce._hasShadowRoot()&&Ot.ce._injectChildStyle(ut);const Gt=F.subTree=Ly(F);_(null,Gt,ee,de,F,he,me),j.el=Gt.el}if(ct&&Dn(ct,he),!en&&(ue=Pe&&Pe.onVnodeMounted)){const Gt=j;Dn(()=>ri(ue,dt,Gt),he)}(j.shapeFlag&256||dt&&fl(dt.vnode)&&dt.vnode.shapeFlag&256)&&F.a&&Dn(F.a,he),F.isMounted=!0,j=ee=de=null}};F.scope.on();const xe=F.effect=new rx(Ae);F.scope.off();const be=F.update=xe.run.bind(xe),Q=F.job=xe.runIfDirty.bind(xe);Q.i=F,Q.id=F.uid,xe.scheduler=()=>gg(Q),es(F,!0),be()},B=(F,j,ee)=>{j.component=F;const de=F.vnode.props;F.vnode=j,F.next=null,CA(F,j.props,de,ee),NA(F,j.children,ee),ji(),ky(F),Wi()},ae=(F,j,ee,de,he,me,Ce,Ae,xe=!1)=>{const be=F&&F.children,Q=F?F.shapeFlag:0,ue=j.children,{patchFlag:oe,shapeFlag:Pe}=j;if(oe>0){if(oe&128){_e(be,ue,ee,de,he,me,Ce,Ae,xe);return}else if(oe&256){ve(be,ue,ee,de,he,me,Ce,Ae,xe);return}}Pe&8?(Q&16&&Re(be,he,me),ue!==be&&g(ee,ue)):Q&16?Pe&16?_e(be,ue,ee,de,he,me,Ce,Ae,xe):Re(be,he,me,!0):(Q&8&&g(ee,""),Pe&16&&ie(ue,ee,de,he,me,Ce,Ae,xe))},ve=(F,j,ee,de,he,me,Ce,Ae,xe)=>{F=F||al,j=j||al;const be=F.length,Q=j.length,ue=Math.min(be,Q);let oe;for(oe=0;oe<ue;oe++){const Pe=j[oe]=xe?Oi(j[oe]):zr(j[oe]);_(F[oe],Pe,ee,null,he,me,Ce,Ae,xe)}be>Q?Re(F,he,me,!0,!1,ue):ie(j,ee,de,he,me,Ce,Ae,xe,ue)},_e=(F,j,ee,de,he,me,Ce,Ae,xe)=>{let be=0;const Q=j.length;let ue=F.length-1,oe=Q-1;for(;be<=ue&&be<=oe;){const Pe=F[be],et=j[be]=xe?Oi(j[be]):zr(j[be]);if(si(Pe,et))_(Pe,et,ee,null,he,me,Ce,Ae,xe);else break;be++}for(;be<=ue&&be<=oe;){const Pe=F[ue],et=j[oe]=xe?Oi(j[oe]):zr(j[oe]);if(si(Pe,et))_(Pe,et,ee,null,he,me,Ce,Ae,xe);else break;ue--,oe--}if(be>ue){if(be<=oe){const Pe=oe+1,et=Pe<Q?j[Pe].el:de;for(;be<=oe;)_(null,j[be]=xe?Oi(j[be]):zr(j[be]),ee,et,he,me,Ce,Ae,xe),be++}}else if(be>oe)for(;be<=ue;)Ee(F[be],he,me,!0),be++;else{const Pe=be,et=be,ct=new Map;for(be=et;be<=oe;be++){const Wt=j[be]=xe?Oi(j[be]):zr(j[be]);Wt.key!=null&&ct.set(Wt.key,be)}let dt,Ot=0;const ut=oe-et+1;let en=!1,Gt=0;const Vn=new Array(ut);for(be=0;be<ut;be++)Vn[be]=0;for(be=Pe;be<=ue;be++){const Wt=F[be];if(Ot>=ut){Ee(Wt,he,me,!0);continue}let Gn;if(Wt.key!=null)Gn=ct.get(Wt.key);else for(dt=et;dt<=oe;dt++)if(Vn[dt-et]===0&&si(Wt,j[dt])){Gn=dt;break}Gn===void 0?Ee(Wt,he,me,!0):(Vn[Gn-et]=be+1,Gn>=Gt?Gt=Gn:en=!0,_(Wt,j[Gn],ee,null,he,me,Ce,Ae,xe),Ot++)}const Jr=en?RA(Vn):al;for(dt=Jr.length-1,be=ut-1;be>=0;be--){const Wt=et+be,Gn=j[Wt],at=j[Wt+1],Bo=Wt+1<Q?at.el||o1(at):de;Vn[be]===0?_(null,Gn,ee,Bo,he,me,Ce,Ae,xe):en&&(dt<0||be!==Jr[dt]?Be(Gn,ee,Bo,2):dt--)}}},Be=(F,j,ee,de,he=null)=>{const{el:me,type:Ce,transition:Ae,children:xe,shapeFlag:be}=F;if(be&6){Be(F.component.subTree,j,ee,de);return}if(be&128){F.suspense.move(j,ee,de);return}if(be&64){Ce.move(F,j,ee,le);return}if(Ce===nt){i(me,j,ee);for(let ue=0;ue<xe.length;ue++)Be(xe[ue],j,ee,de);i(F.anchor,j,ee);return}if(Ce===xh){D(F,j,ee);return}if(de!==2&&be&1&&Ae)if(de===0)Ae.beforeEnter(me),i(me,j,ee),Dn(()=>Ae.enter(me),he);else{const{leave:ue,delayLeave:oe,afterLeave:Pe}=Ae,et=()=>{F.ctx.isUnmounted?o(me):i(me,j,ee)},ct=()=>{me._isLeaving&&me[oi](!0),ue(me,()=>{et(),Pe&&Pe()})};oe?oe(me,et,ct):ct()}else i(me,j,ee)},Ee=(F,j,ee,de=!1,he=!1)=>{const{type:me,props:Ce,ref:Ae,children:xe,dynamicChildren:be,shapeFlag:Q,patchFlag:ue,dirs:oe,cacheIndex:Pe}=F;if(ue===-2&&(he=!1),Ae!=null&&(ji(),Ia(Ae,null,ee,F,!0),Wi()),Pe!=null&&(j.renderCache[Pe]=void 0),Q&256){j.ctx.deactivate(F);return}const et=Q&1&&oe,ct=!fl(F);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&ri(dt,j,F),Q&6)He(F.component,ee,de);else{if(Q&128){F.suspense.unmount(ee,de);return}et&&Qo(F,null,j,"beforeUnmount"),Q&64?F.type.remove(F,j,ee,le,de):be&&!be.hasOnce&&(me!==nt||ue>0&&ue&64)?Re(be,j,ee,!1,!0):(me===nt&&ue&384||!he&&Q&16)&&Re(xe,j,ee),de&&Ge(F)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||et)&&Dn(()=>{dt&&ri(dt,j,F),et&&Qo(F,null,j,"unmounted")},ee)},Ge=F=>{const{type:j,el:ee,anchor:de,transition:he}=F;if(j===nt){Ue(ee,de);return}if(j===xh){N(F);return}const me=()=>{o(ee),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(F.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ae}=he,xe=()=>Ce(ee,me);Ae?Ae(F.el,me,xe):xe()}else me()},Ue=(F,j)=>{let ee;for(;F!==j;)ee=y(F),o(F),F=ee;o(j)},He=(F,j,ee)=>{const{bum:de,scope:he,job:me,subTree:Ce,um:Ae,m:xe,a:be}=F;Py(xe),Py(be),de&&Pu(de),he.stop(),me&&(me.flags|=8,Ee(Ce,F,j,ee)),Ae&&Dn(Ae,j),Dn(()=>{F.isUnmounted=!0},j)},Re=(F,j,ee,de=!1,he=!1,me=0)=>{for(let Ce=me;Ce<F.length;Ce++)Ee(F[Ce],j,ee,de,he)},z=F=>{if(F.shapeFlag&6)return z(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const j=y(F.anchor||F.el),ee=j&&j[GE];return ee?y(ee):j};let Z=!1;const re=(F,j,ee)=>{let de;F==null?j._vnode&&(Ee(j._vnode,null,null,!0),de=j._vnode.component):_(j._vnode||null,F,j,null,null,null,ee),j._vnode=F,Z||(Z=!0,ky(de),_x(),Z=!1)},le={p:_,um:Ee,m:Be,r:Ge,mt:k,mc:ie,pc:ae,pbc:U,n:z,o:e};return{render:re,hydrate:void 0,createApp:yA(re)}}function wh({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function es({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function OA(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function r1(e,t,n=!1){const i=e.children,o=t.children;if(Ye(i)&&Ye(o))for(let l=0;l<i.length;l++){const u=i[l];let f=o[l];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=o[l]=Oi(o[l]),f.el=u.el),!n&&f.patchFlag!==-2&&r1(u,f)),f.type===Qf&&(f.patchFlag===-1&&(f=o[l]=Oi(f)),f.el=u.el),f.type===dn&&!f.el&&(f.el=u.el)}}function RA(e){const t=e.slice(),n=[0];let i,o,l,u,f;const h=e.length;for(i=0;i<h;i++){const p=e[i];if(p!==0){if(o=n[n.length-1],e[o]<p){t[i]=o,n.push(i);continue}for(l=0,u=n.length-1;l<u;)f=l+u>>1,e[n[f]]<p?l=f+1:u=f;p<e[n[l]]&&(l>0&&(t[i]=n[l-1]),n[l]=i)}}for(l=n.length,u=n[l-1];l-- >0;)n[l]=u,u=t[u];return n}function i1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:i1(t)}function Py(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function o1(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?o1(t.subTree):null}const s1=e=>e.__isSuspense;let fp=0;const PA={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,l,u,f,h,p){if(e==null)DA(t,n,i,o,l,u,f,h,p);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}FA(e,t,n,i,o,u,f,h,p)}},hydrate:zA,normalize:HA},IA=PA;function Ja(e,t){const n=e.props&&e.props[t];rt(n)&&n()}function DA(e,t,n,i,o,l,u,f,h){const{p,o:{createElement:g}}=h,v=g("div"),y=e.suspense=l1(e,o,i,t,v,n,l,u,f,h);p(null,y.pendingBranch=e.ssContent,v,null,i,y,l,u),y.deps>0?(Ja(e,"onPending"),Ja(e,"onFallback"),p(null,e.ssFallback,t,n,i,null,l,u),dl(y,e.ssFallback)):y.resolve(!1,!0)}function FA(e,t,n,i,o,l,u,f,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const y=t.ssContent,w=t.ssFallback,{activeBranch:$,pendingBranch:_,isInFallback:C,isHydrating:E}=v;if(_)v.pendingBranch=y,si(_,y)?(h(_,y,v.hiddenContainer,null,o,v,l,u,f),v.deps<=0?v.resolve():C&&(E||(h($,w,n,i,o,null,l,u,f),dl(v,w)))):(v.pendingId=fp++,E?(v.isHydrating=!1,v.activeBranch=_):p(_,o,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),C?(h(null,y,v.hiddenContainer,null,o,v,l,u,f),v.deps<=0?v.resolve():(h($,w,n,i,o,null,l,u,f),dl(v,w))):$&&si($,y)?(h($,y,n,i,o,v,l,u,f),v.resolve(!0)):(h(null,y,v.hiddenContainer,null,o,v,l,u,f),v.deps<=0&&v.resolve()));else if($&&si($,y))h($,y,n,i,o,v,l,u,f),dl(v,y);else if(Ja(t,"onPending"),v.pendingBranch=y,y.shapeFlag&512?v.pendingId=y.component.suspenseId:v.pendingId=fp++,h(null,y,v.hiddenContainer,null,o,v,l,u,f),v.deps<=0)v.resolve();else{const{timeout:L,pendingId:D}=v;L>0?setTimeout(()=>{v.pendingId===D&&v.fallback(w)},L):L===0&&v.fallback(w)}}function l1(e,t,n,i,o,l,u,f,h,p,g=!1){const{p:v,m:y,um:w,n:$,o:{parentNode:_,remove:C}}=p;let E;const L=jA(e);L&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const D=e.props?Qw(e.props.timeout):void 0,N=l,I={vnode:e,parent:t,parentComponent:n,namespace:u,container:i,hiddenContainer:o,deps:0,pendingId:fp++,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(q=!1,X=!1){const{vnode:ie,activeBranch:J,pendingBranch:U,pendingId:K,effects:P,parentComponent:O,container:k,isInFallback:S}=I;let R=!1;I.isHydrating?I.isHydrating=!1:q||(R=J&&U.transition&&U.transition.mode==="out-in",R&&(J.transition.afterLeave=()=>{K===I.pendingId&&(y(U,k,l===N?$(J):l,0),op(P),S&&ie.ssFallback&&(ie.ssFallback.el=null))}),J&&(_(J.el)===k&&(l=$(J)),w(J,O,I,!0),!R&&S&&ie.ssFallback&&Dn(()=>ie.ssFallback.el=null,I)),R||y(U,k,l,0)),dl(I,U),I.pendingBranch=null,I.isInFallback=!1;let B=I.parent,ae=!1;for(;B;){if(B.pendingBranch){B.effects.push(...P),ae=!0;break}B=B.parent}!ae&&!R&&op(P),I.effects=[],L&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!X&&t.resolve()),Ja(ie,"onResolve")},fallback(q){if(!I.pendingBranch)return;const{vnode:X,activeBranch:ie,parentComponent:J,container:U,namespace:K}=I;Ja(X,"onFallback");const P=$(ie),O=()=>{I.isInFallback&&(v(null,q,U,P,J,null,K,f,h),dl(I,q))},k=q.transition&&q.transition.mode==="out-in";k&&(ie.transition.afterLeave=O),I.isInFallback=!0,w(ie,J,null,!0),k||O()},move(q,X,ie){I.activeBranch&&y(I.activeBranch,q,X,ie),I.container=q},next(){return I.activeBranch&&$(I.activeBranch)},registerDep(q,X,ie){const J=!!I.pendingBranch;J&&I.deps++;const U=q.vnode.el;q.asyncDep.catch(K=>{xc(K,q,0)}).then(K=>{if(q.isUnmounted||I.isUnmounted||I.pendingId!==q.suspenseId)return;q.asyncResolved=!0;const{vnode:P}=q;hp(q,K),U&&(P.el=U);const O=!U&&q.subTree.el;X(q,P,_(U||q.subTree.el),U?null:$(q.subTree),I,u,ie),O&&(P.placeholder=null,C(O)),bg(q,P.el),J&&--I.deps===0&&I.resolve()})},unmount(q,X){I.isUnmounted=!0,I.activeBranch&&w(I.activeBranch,n,q,X),I.pendingBranch&&w(I.pendingBranch,n,q,X)}};return I}function zA(e,t,n,i,o,l,u,f,h){const p=t.suspense=l1(t,i,n,e.parentNode,document.createElement("div"),null,o,l,u,f,!0),g=h(e,p.pendingBranch=t.ssContent,n,p,l,u);return p.deps===0&&p.resolve(!1,!0),g}function HA(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=Iy(i?n.default:n),e.ssFallback=i?Iy(n.fallback):Ne(dn)}function Iy(e){let t;if(rt(e)){const n=kl&&e._c;n&&(e._d=!1,te()),e=e(),n&&(e._d=!0,t=tr,a1())}return Ye(e)&&(e=xA(e)),e=zr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function BA(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):op(e)}function dl(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,i&&i.subTree===n&&(i.vnode.el=o,bg(i,o))}function jA(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Qf=Symbol.for("v-txt"),dn=Symbol.for("v-cmt"),xh=Symbol.for("v-stc"),Fa=[];let tr=null;function te(e=!1){Fa.push(tr=e?null:[])}function a1(){Fa.pop(),tr=Fa[Fa.length-1]||null}let kl=1;function Tl(e,t=!1){kl+=e,e<0&&tr&&t&&(tr.hasOnce=!0)}function c1(e){return e.dynamicChildren=kl>0?tr||al:null,a1(),kl>0&&tr&&tr.push(e),e}function ge(e,t,n,i,o,l){return c1(Y(e,t,n,i,o,l,!0))}function We(e,t,n,i,o){return c1(Ne(e,t,n,i,o,!0))}function Cl(e){return e?e.__v_isVNode===!0:!1}function si(e,t){return e.type===t.type&&e.key===t.key}const u1=({key:e})=>e??null,Iu=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?jt(e)||Lt(e)||rt(e)?{i:wn,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,i=0,o=null,l=e===nt?0:1,u=!1,f=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&u1(t),ref:t&&Iu(t),scopeId:Gf,slotScopeIds:null,children:n,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:l,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:wn};return f?(Sg(h,n),l&128&&e.normalize(h)):n&&(h.shapeFlag|=jt(n)?8:16),kl>0&&!u&&tr&&(h.patchFlag>0||l&6)&&h.patchFlag!==32&&tr.push(h),h}const Ne=WA;function WA(e,t=null,n=null,i=0,o=null,l=!1){if((!e||e===zx)&&(e=dn),Cl(e)){const f=Lo(e,t,!0);return n&&Sg(f,n),kl>0&&!l&&tr&&(f.shapeFlag&6?tr[tr.indexOf(e)]=f:tr.push(f)),f.patchFlag=-2,f}if(JA(e)&&(e=e.__vccOpts),t){t=f1(t);let{class:f,style:h}=t;f&&!jt(f)&&(t.class=ot(f)),wt(h)&&(Uf(h)&&!Ye(h)&&(h=Qt({},h)),t.style=Pt(h))}const u=jt(e)?1:s1(e)?128:Mx(e)?64:wt(e)?4:rt(e)?2:0;return Y(e,t,n,i,o,u,l,!0)}function f1(e){return e?Uf(e)||Jx(e)?Qt({},e):e:null}function Lo(e,t,n=!1,i=!1){const{props:o,ref:l,patchFlag:u,children:f,transition:h}=e,p=t?ci(o||{},t):o,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&u1(p),ref:t&&t.ref?n&&l?Ye(l)?l.concat(Iu(t)):[l,Iu(t)]:Iu(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Lo(e.ssContent),ssFallback:e.ssFallback&&Lo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&i&&Ya(g,h.clone(g)),g}function Qe(e=" ",t=0){return Ne(Qf,null,e,t)}function Fe(e="",t=!1){return t?(te(),We(dn,null,e)):Ne(dn,null,e)}function zr(e){return e==null||typeof e=="boolean"?Ne(dn):Ye(e)?Ne(nt,null,e.slice()):Cl(e)?Oi(e):Ne(Qf,null,String(e))}function Oi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Lo(e)}function Sg(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Ye(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),Sg(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Jx(t)?t._ctx=wn:o===3&&wn&&(wn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else rt(t)?(t={default:t,_ctx:wn},n=32):(t=String(t),i&64?(n=16,t=[Qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function ci(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=ot([t.class,i.class]));else if(o==="style")t.style=Pt([t.style,i.style]);else if(Df(o)){const l=t[o],u=i[o];u&&l!==u&&!(Ye(l)&&l.includes(u))&&(t[o]=l?[].concat(l,u):u)}else o!==""&&(t[o]=i[o])}return t}function ri(e,t,n,i=null){Vr(e,t,7,[n,i])}const qA=Ux();let UA=0;function VA(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||qA,l={uid:UA++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new cE(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qx(i,o),emitsOptions:Gx(i,o),emit:null,emitted:null,propsDefaults:bt,inheritAttrs:i.inheritAttrs,ctx:bt,data:bt,props:bt,attrs:bt,slots:bt,refs:bt,setupState:bt,setupContext:null,suspense:n,suspenseId:n?n.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 l.ctx={_:l},l.root=t?t.root:l,l.emit=bA.bind(null,l),e.ce&&e.ce(l),l}let En=null;const gi=()=>En||wn;let cf,dp;{const e=jf(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),l=>{o.length>1?o.forEach(u=>u(l)):o[0](l)}};cf=t("__VUE_INSTANCE_SETTERS__",n=>En=n),dp=t("__VUE_SSR_SETTERS__",n=>Za=n)}const kc=e=>{const t=En;return cf(e),e.scope.on(),()=>{e.scope.off(),cf(t)}},Dy=()=>{En&&En.scope.off(),cf(null)};function d1(e){return e.vnode.shapeFlag&4}let Za=!1;function GA(e,t=!1,n=!1){t&&dp(t);const{props:i,children:o}=e.vnode,l=d1(e);TA(e,i,l,t),$A(e,o,n||t);const u=l?KA(e,t):void 0;return t&&dp(!1),u}function KA(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uA);const{setup:i}=n;if(i){ji();const o=e.setupContext=i.length>1?p1(e):null,l=kc(e),u=wc(i,e,0,[e.props,o]),f=Yw(u);if(Wi(),l(),(f||e.sp)&&!fl(e)&&Dx(e),f){if(u.then(Dy,Dy),t)return u.then(h=>{hp(e,h)}).catch(h=>{xc(h,e,0)});e.asyncDep=u}else hp(e,u)}else h1(e)}function hp(e,t,n){rt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:wt(t)&&(e.setupState=yx(t)),h1(e)}function h1(e,t,n){const i=e.type;e.render||(e.render=i.render||ai);{const o=kc(e);ji();try{dA(e)}finally{Wi(),o()}}}const YA={get(e,t){return Cn(e,"get",""),e[t]}};function p1(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,YA),slots:e.slots,emit:e.emit,expose:t}}function ed(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yx(Vf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Da)return Da[n](e)},has(t,n){return n in t||n in Da}})):e.proxy}function XA(e,t=!0){return rt(e)?e.displayName||e.name:e.name||t&&e.__name}function JA(e){return rt(e)&&"__vccOpts"in e}const Se=(e,t)=>FE(e,t,Za);function Tc(e,t,n){try{Tl(-1);const i=arguments.length;return i===2?wt(t)&&!Ye(t)?Cl(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Cl(n)&&(n=[n]),Ne(e,t,n))}finally{Tl(1)}}const ZA="3.5.29";/**
14
+ * @vue/runtime-dom v3.5.29
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let pp;const Fy=typeof window<"u"&&window.trustedTypes;if(Fy)try{pp=Fy.createPolicy("vue",{createHTML:e=>e})}catch{}const g1=pp?e=>pp.createHTML(e):e=>e,QA="http://www.w3.org/2000/svg",e$="http://www.w3.org/1998/Math/MathML",Mi=typeof document<"u"?document:null,zy=Mi&&Mi.createElement("template"),t$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?Mi.createElementNS(QA,e):t==="mathml"?Mi.createElementNS(e$,e):n?Mi.createElement(e,{is:n}):Mi.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Mi.createTextNode(e),createComment:e=>Mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,l){const u=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{zy.innerHTML=g1(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const f=zy.content;if(i==="svg"||i==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}t.insertBefore(f,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},uo="transition",xa="animation",Qa=Symbol("_vtc"),m1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},n$=Qt({},Lx,m1),r$=e=>(e.displayName="Transition",e.props=n$,e),i$=r$((e,{slots:t})=>Tc(XE,o$(e),t)),ts=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hy=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function o$(e){const t={};for(const P in e)P in m1||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:g=f,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,$=s$(o),_=$&&$[0],C=$&&$[1],{onBeforeEnter:E,onEnter:L,onEnterCancelled:D,onLeave:N,onLeaveCancelled:I,onBeforeAppear:q=E,onAppear:X=L,onAppearCancelled:ie=D}=t,J=(P,O,k,S)=>{P._enterCancelled=S,ns(P,O?g:f),ns(P,O?p:u),k&&k()},U=(P,O)=>{P._isLeaving=!1,ns(P,v),ns(P,w),ns(P,y),O&&O()},K=P=>(O,k)=>{const S=P?X:L,R=()=>J(O,P,k);ts(S,[O,R]),By(()=>{ns(O,P?h:l),Ci(O,P?g:f),Hy(S)||jy(O,i,_,R)})};return Qt(t,{onBeforeEnter(P){ts(E,[P]),Ci(P,l),Ci(P,u)},onBeforeAppear(P){ts(q,[P]),Ci(P,h),Ci(P,p)},onEnter:K(!1),onAppear:K(!0),onLeave(P,O){P._isLeaving=!0;const k=()=>U(P,O);Ci(P,v),P._enterCancelled?(Ci(P,y),Uy(P)):(Uy(P),Ci(P,y)),By(()=>{P._isLeaving&&(ns(P,v),Ci(P,w),Hy(N)||jy(P,i,C,k))}),ts(N,[P,k])},onEnterCancelled(P){J(P,!1,void 0,!0),ts(D,[P])},onAppearCancelled(P){J(P,!0,void 0,!0),ts(ie,[P])},onLeaveCancelled(P){U(P),ts(I,[P])}})}function s$(e){if(e==null)return null;if(wt(e))return[Sh(e.enter),Sh(e.leave)];{const t=Sh(e);return[t,t]}}function Sh(e){return Qw(e)}function Ci(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Qa]||(e[Qa]=new Set)).add(t)}function ns(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[Qa];n&&(n.delete(t),n.size||(e[Qa]=void 0))}function By(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let l$=0;function jy(e,t,n,i){const o=e._endId=++l$,l=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(l,n);const{type:u,timeout:f,propCount:h}=a$(e,t);if(!u)return i();const p=u+"end";let g=0;const v=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},f+1),e.addEventListener(p,y)}function a$(e,t){const n=window.getComputedStyle(e),i=$=>(n[$]||"").split(", "),o=i(`${uo}Delay`),l=i(`${uo}Duration`),u=Wy(o,l),f=i(`${xa}Delay`),h=i(`${xa}Duration`),p=Wy(f,h);let g=null,v=0,y=0;t===uo?u>0&&(g=uo,v=u,y=l.length):t===xa?p>0&&(g=xa,v=p,y=h.length):(v=Math.max(u,p),g=v>0?u>p?uo:xa:null,y=g?g===uo?l.length:h.length:0);const w=g===uo&&/\b(?:transform|all)(?:,|$)/.test(i(`${uo}Property`).toString());return{type:g,timeout:v,propCount:y,hasTransform:w}}function Wy(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>qy(n)+qy(e[i])))}function qy(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Uy(e){return(e?e.ownerDocument:document).body.offsetHeight}function c$(e,t,n){const i=e[Qa];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const uf=Symbol("_vod"),v1=Symbol("_vsh"),Co={name:"show",beforeMount(e,{value:t},{transition:n}){e[uf]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Sa(e,!0),i.enter(e)):i.leave(e,()=>{Sa(e,!1)}):Sa(e,t))},beforeUnmount(e,{value:t}){Sa(e,t)}};function Sa(e,t){e.style.display=t?e[uf]:"none",e[v1]=!t}const u$=Symbol(""),f$=/(?:^|;)\s*display\s*:/;function d$(e,t,n){const i=e.style,o=jt(n);let l=!1;if(n&&!o){if(t)if(jt(t))for(const u of t.split(";")){const f=u.slice(0,u.indexOf(":")).trim();n[f]==null&&Du(i,f,"")}else for(const u in t)n[u]==null&&Du(i,u,"");for(const u in n)u==="display"&&(l=!0),Du(i,u,n[u])}else if(o){if(t!==n){const u=i[u$];u&&(n+=";"+u),i.cssText=n,l=f$.test(n)}}else t&&e.removeAttribute("style");uf in e&&(e[uf]=l?i.display:"",e[v1]&&(i.display="none"))}const Vy=/\s*!important$/;function Du(e,t,n){if(Ye(n))n.forEach(i=>Du(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=h$(e,t);Vy.test(n)?e.setProperty(Gi(i),n.replace(Vy,""),"important"):e[i]=n}}const Gy=["Webkit","Moz","ms"],_h={};function h$(e,t){const n=_h[t];if(n)return n;let i=mr(t);if(i!=="filter"&&i in e)return _h[t]=i;i=Hf(i);for(let o=0;o<Gy.length;o++){const l=Gy[o]+i;if(l in e)return _h[t]=l}return t}const Ky="http://www.w3.org/1999/xlink";function Yy(e,t,n,i,o,l=lE(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ky,t.slice(6,t.length)):e.setAttributeNS(Ky,t,n):n==null||l&&!ex(n)?e.removeAttribute(t):e.setAttribute(t,l?"":qr(n)?String(n):n)}function Xy(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?g1(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const f=l==="OPTION"?e.getAttribute("value")||"":e.value,h=n==null?e.type==="checkbox"?"on":"":String(n);(f!==h||!("_value"in e))&&(e.value=h),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ex(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(o||t)}function To(e,t,n,i){e.addEventListener(t,n,i)}function p$(e,t,n,i){e.removeEventListener(t,n,i)}const Jy=Symbol("_vei");function g$(e,t,n,i,o=null){const l=e[Jy]||(e[Jy]={}),u=l[t];if(i&&u)u.value=i;else{const[f,h]=m$(t);if(i){const p=l[t]=b$(i,o);To(e,f,p,h)}else u&&(p$(e,f,u,h),l[t]=void 0)}}const Zy=/(?:Once|Passive|Capture)$/;function m$(e){let t;if(Zy.test(e)){t={};let i;for(;i=e.match(Zy);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gi(e.slice(2)),t]}let kh=0;const v$=Promise.resolve(),y$=()=>kh||(v$.then(()=>kh=0),kh=Date.now());function b$(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Vr(w$(i,n.value),t,5,[i])};return n.value=e,n.attached=y$(),n}function w$(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const Qy=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,x$=(e,t,n,i,o,l)=>{const u=o==="svg";t==="class"?c$(e,i,u):t==="style"?d$(e,n,i):Df(t)?og(t)||g$(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):S$(e,t,i,u))?(Xy(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yy(e,t,i,u,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!jt(i))?Xy(e,mr(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Yy(e,t,i,u))};function S$(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qy(t)&&rt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Qy(t)&&jt(n)?!1:t in e}const El=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>Pu(t,n):t};function _$(e){e.target.composing=!0}function e0(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign");function t0(e,t,n){return t&&(e=e.trim()),n&&(e=Bf(e)),e}const y1={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[Hi]=El(o);const l=i||o.props&&o.props.type==="number";To(e,t?"change":"input",u=>{u.target.composing||e[Hi](t0(e.value,n,l))}),(n||l)&&To(e,"change",()=>{e.value=t0(e.value,n,l)}),t||(To(e,"compositionstart",_$),To(e,"compositionend",e0),To(e,"change",e0))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:l}},u){if(e[Hi]=El(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?Bf(e.value):e.value,h=t??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===h)||(e.value=h))}},b1={deep:!0,created(e,t,n){e[Hi]=El(n),To(e,"change",()=>{const i=e._modelValue,o=ec(e),l=e.checked,u=e[Hi];if(Ye(i)){const f=lg(i,o),h=f!==-1;if(l&&!h)u(i.concat(o));else if(!l&&h){const p=[...i];p.splice(f,1),u(p)}}else if(Fl(i)){const f=new Set(i);l?f.add(o):f.delete(o),u(f)}else u(w1(e,l))})},mounted:n0,beforeUpdate(e,t,n){e[Hi]=El(n),n0(e,t,n)}};function n0(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(Ye(t))o=lg(t,i.props.value)>-1;else if(Fl(t))o=t.has(i.props.value);else{if(t===n)return;o=zl(t,w1(e,!0))}e.checked!==o&&(e.checked=o)}const r0={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=Fl(t);To(e,"change",()=>{const l=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Bf(ec(u)):ec(u));e[Hi](e.multiple?o?new Set(l):l:l[0]),e._assigning=!0,At(()=>{e._assigning=!1})}),e[Hi]=El(i)},mounted(e,{value:t}){i0(e,t)},beforeUpdate(e,t,n){e[Hi]=El(n)},updated(e,{value:t}){e._assigning||i0(e,t)}};function i0(e,t){const n=e.multiple,i=Ye(t);if(!(n&&!i&&!Fl(t))){for(let o=0,l=e.options.length;o<l;o++){const u=e.options[o],f=ec(u);if(n)if(i){const h=typeof f;h==="string"||h==="number"?u.selected=t.some(p=>String(p)===String(f)):u.selected=lg(t,f)>-1}else u.selected=t.has(f);else if(zl(ec(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ec(e){return"_value"in e?e._value:e.value}function w1(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const k$=["ctrl","shift","alt","meta"],T$={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>k$.some(n=>e[`${n}Key`]&&!t.includes(n))},Fu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((o,...l)=>{for(let u=0;u<t.length;u++){const f=T$[t[u]];if(f&&f(o,t))return}return e(o,...l)}))},C$={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gp=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(o=>{if(!("key"in o))return;const l=Gi(o.key);if(t.some(u=>u===l||C$[u]===l))return e(o)}))},E$=Qt({patchProp:x$},t$);let o0;function A$(){return o0||(o0=MA(E$))}const x1=((...e)=>{const t=A$().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=N$(i);if(!o)return;const l=t._component;!rt(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const u=n(o,!1,$$(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function $$(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function N$(e){return jt(e)?document.querySelector(e):e}const Xi=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},M$={};function L$(e,t){const n=ys("RouterView");return te(),We(n)}const O$=Xi(M$,[["render",L$]]),R$=["top","right","bottom","left"],s0=["start","end"],l0=R$.reduce((e,t)=>e.concat(t,t+"-"+s0[0],t+"-"+s0[1]),[]),tc=Math.min,ss=Math.max,P$={left:"right",right:"left",bottom:"top",top:"bottom"},I$={start:"end",end:"start"};function mp(e,t,n){return ss(e,tc(t,n))}function _s(e,t){return typeof e=="function"?e(t):e}function hi(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function S1(e){return e==="x"?"y":"x"}function _g(e){return e==="y"?"height":"width"}const D$=new Set(["top","bottom"]);function Di(e){return D$.has(hi(e))?"y":"x"}function kg(e){return S1(Di(e))}function _1(e,t,n){n===void 0&&(n=!1);const i=Wr(e),o=kg(e),l=_g(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=df(u)),[u,df(u)]}function F$(e){const t=df(e);return[ff(e),t,ff(t)]}function ff(e){return e.replace(/start|end/g,t=>I$[t])}const a0=["left","right"],c0=["right","left"],z$=["top","bottom"],H$=["bottom","top"];function B$(e,t,n){switch(e){case"top":case"bottom":return n?t?c0:a0:t?a0:c0;case"left":case"right":return t?z$:H$;default:return[]}}function j$(e,t,n,i){const o=Wr(e);let l=B$(hi(e),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),t&&(l=l.concat(l.map(ff)))),l}function df(e){return e.replace(/left|right|bottom|top/g,t=>P$[t])}function W$(e){return{top:0,right:0,bottom:0,left:0,...e}}function k1(e){return typeof e!="number"?W$(e):{top:e,right:e,bottom:e,left:e}}function za(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function u0(e,t,n){let{reference:i,floating:o}=e;const l=Di(t),u=kg(t),f=_g(u),h=hi(t),p=l==="y",g=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,y=i[f]/2-o[f]/2;let w;switch(h){case"top":w={x:g,y:i.y-o.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-o.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Wr(t)){case"start":w[u]-=y*(n&&p?-1:1);break;case"end":w[u]+=y*(n&&p?-1:1);break}return w}const q$=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:v}=u0(p,i,h),y=i,w={},$=0;for(let _=0;_<f.length;_++){const{name:C,fn:E}=f[_],{x:L,y:D,data:N,reset:I}=await E({x:g,y:v,initialPlacement:i,placement:y,strategy:o,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});g=L??g,v=D??v,w={...w,[C]:{...w[C],...N}},I&&$<=50&&($++,typeof I=="object"&&(I.placement&&(y=I.placement),I.rects&&(p=I.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:g,y:v}=u0(p,y,h)),_=-1)}return{x:g,y:v,placement:y,strategy:o,middlewareData:w}};async function td(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:y=!1,padding:w=0}=_s(t,e),$=k1(w),C=f[y?v==="floating"?"reference":"floating":v],E=za(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:h})),L=v==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),N=await(l.isElement==null?void 0:l.isElement(D))?await(l.getScale==null?void 0:l.getScale(D))||{x:1,y:1}:{x:1,y:1},I=za(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:D,strategy:h}):L);return{top:(E.top-I.top+$.top)/N.y,bottom:(I.bottom-E.bottom+$.bottom)/N.y,left:(E.left-I.left+$.left)/N.x,right:(I.right-E.right+$.right)/N.x}}const U$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:g=0}=_s(e,t)||{};if(p==null)return{};const v=k1(g),y={x:n,y:i},w=kg(o),$=_g(w),_=await u.getDimensions(p),C=w==="y",E=C?"top":"left",L=C?"bottom":"right",D=C?"clientHeight":"clientWidth",N=l.reference[$]+l.reference[w]-y[w]-l.floating[$],I=y[w]-l.reference[w],q=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let X=q?q[D]:0;(!X||!await(u.isElement==null?void 0:u.isElement(q)))&&(X=f.floating[D]||l.floating[$]);const ie=N/2-I/2,J=X/2-_[$]/2-1,U=tc(v[E],J),K=tc(v[L],J),P=U,O=X-_[$]-K,k=X/2-_[$]/2+ie,S=mp(P,k,O),R=!h.arrow&&Wr(o)!=null&&k!==S&&l.reference[$]/2-(k<P?U:K)-_[$]/2<0,B=R?k<P?k-P:k-O:0;return{[w]:y[w]+B,data:{[w]:S,centerOffset:k-S-B,...R&&{alignmentOffset:B}},reset:R}}});function V$(e,t,n){return(e?[...n.filter(o=>Wr(o)===e),...n.filter(o=>Wr(o)!==e)]:n.filter(o=>hi(o)===o)).filter(o=>e?Wr(o)===e||(t?ff(o)!==o:!1):!0)}const G$=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o;const{rects:l,middlewareData:u,placement:f,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:y=l0,autoAlignment:w=!0,...$}=_s(e,t),_=v!==void 0||y===l0?V$(v||null,w,y):y,C=await td(t,$),E=((n=u.autoPlacement)==null?void 0:n.index)||0,L=_[E];if(L==null)return{};const D=_1(L,l,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(f!==L)return{reset:{placement:_[0]}};const N=[C[hi(L)],C[D[0]],C[D[1]]],I=[...((i=u.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:N}],q=_[E+1];if(q)return{data:{index:E+1,overflows:I},reset:{placement:q}};const X=I.map(U=>{const K=Wr(U.placement);return[U.placement,K&&g?U.overflows.slice(0,2).reduce((P,O)=>P+O,0):U.overflows[0],U.overflows]}).sort((U,K)=>U[1]-K[1]),J=((o=X.filter(U=>U[2].slice(0,Wr(U[0])?2:3).every(K=>K<=0))[0])==null?void 0:o[0])||X[0][0];return J!==f?{data:{index:E+1,overflows:I},reset:{placement:J}}:{}}}},K$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:_=!0,...C}=_s(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=hi(o),L=Di(f),D=hi(f)===f,N=await(h.isRTL==null?void 0:h.isRTL(p.floating)),I=y||(D||!_?[df(f)]:F$(f)),q=$!=="none";!y&&q&&I.push(...j$(f,_,$,N));const X=[f,...I],ie=await td(t,C),J=[];let U=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&J.push(ie[E]),v){const k=_1(o,u,N);J.push(ie[k[0]],ie[k[1]])}if(U=[...U,{placement:o,overflows:J}],!J.every(k=>k<=0)){var K,P;const k=(((K=l.flip)==null?void 0:K.index)||0)+1,S=X[k];if(S&&(!(v==="alignment"?L!==Di(S):!1)||U.every(ae=>Di(ae.placement)===L?ae.overflows[0]>0:!0)))return{data:{index:k,overflows:U},reset:{placement:S}};let R=(P=U.filter(B=>B.overflows[0]<=0).sort((B,ae)=>B.overflows[1]-ae.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(w){case"bestFit":{var O;const B=(O=U.filter(ae=>{if(q){const ve=Di(ae.placement);return ve===L||ve==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ve=>ve>0).reduce((ve,_e)=>ve+_e,0)]).sort((ae,ve)=>ae[1]-ve[1])[0])==null?void 0:O[0];B&&(R=B);break}case"initialPlacement":R=f;break}if(o!==R)return{reset:{placement:R}}}return{}}}},Y$=new Set(["left","top"]);async function X$(e,t){const{placement:n,platform:i,elements:o}=e,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=hi(n),f=Wr(n),h=Di(n)==="y",p=Y$.has(u)?-1:1,g=l&&h?-1:1,v=_s(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:$}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof $=="number"&&(w=f==="end"?$*-1:$),h?{x:w*g,y:y*p}:{x:y*p,y:w*g}}const J$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:l,placement:u,middlewareData:f}=t,h=await X$(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:u}}}}},Z$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:C=>{let{x:E,y:L}=C;return{x:E,y:L}}},...h}=_s(e,t),p={x:n,y:i},g=await td(t,h),v=Di(hi(o)),y=S1(v);let w=p[y],$=p[v];if(l){const C=y==="y"?"top":"left",E=y==="y"?"bottom":"right",L=w+g[C],D=w-g[E];w=mp(L,w,D)}if(u){const C=v==="y"?"top":"left",E=v==="y"?"bottom":"right",L=$+g[C],D=$-g[E];$=mp(L,$,D)}const _=f.fn({...t,[y]:w,[v]:$});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[y]:l,[v]:u}}}}}},Q$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...p}=_s(e,t),g=await td(t,p),v=hi(o),y=Wr(o),w=Di(o)==="y",{width:$,height:_}=l.floating;let C,E;v==="top"||v==="bottom"?(C=v,E=y===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(E=v,C=y==="end"?"top":"bottom");const L=_-g.top-g.bottom,D=$-g.left-g.right,N=tc(_-g[C],L),I=tc($-g[E],D),q=!t.middlewareData.shift;let X=N,ie=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ie=D),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(X=L),q&&!y){const U=ss(g.left,0),K=ss(g.right,0),P=ss(g.top,0),O=ss(g.bottom,0);w?ie=$-2*(U!==0||K!==0?U+K:ss(g.left,g.right)):X=_-2*(P!==0||O!==0?P+O:ss(g.top,g.bottom))}await h({...t,availableWidth:ie,availableHeight:X});const J=await u.getDimensions(f.floating);return $!==J.width||_!==J.height?{reset:{rects:!0}}:{}}}};function kr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){return kr(e).getComputedStyle(e)}const f0=Math.min,Ha=Math.max,hf=Math.round;function T1(e){const t=ui(e);let n=parseFloat(t.width),i=parseFloat(t.height);const o=e.offsetWidth,l=e.offsetHeight,u=hf(n)!==o||hf(i)!==l;return u&&(n=o,i=l),{width:n,height:i,fallback:u}}function Oo(e){return E1(e)?(e.nodeName||"").toLowerCase():""}let mu;function C1(){if(mu)return mu;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(mu=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),mu):navigator.userAgent}function fi(e){return e instanceof kr(e).HTMLElement}function Ao(e){return e instanceof kr(e).Element}function E1(e){return e instanceof kr(e).Node}function d0(e){return typeof ShadowRoot>"u"?!1:e instanceof kr(e).ShadowRoot||e instanceof ShadowRoot}function nd(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ui(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function eN(e){return["table","td","th"].includes(Oo(e))}function vp(e){const t=/firefox/i.test(C1()),n=ui(e),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const l=n.contain;return l!=null&&l.includes(o)}))}function A1(){return!/^((?!chrome|android).)*safari/i.test(C1())}function Tg(e){return["html","body","#document"].includes(Oo(e))}function $1(e){return Ao(e)?e:e.contextElement}const N1={x:1,y:1};function hl(e){const t=$1(e);if(!fi(t))return N1;const n=t.getBoundingClientRect(),{width:i,height:o,fallback:l}=T1(t);let u=(l?hf(n.width):n.width)/i,f=(l?hf(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}function nc(e,t,n,i){var o,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),f=$1(e);let h=N1;t&&(i?Ao(i)&&(h=hl(i)):h=hl(e));const p=f?kr(f):window,g=!A1()&&n;let v=(u.left+(g&&((o=p.visualViewport)==null?void 0:o.offsetLeft)||0))/h.x,y=(u.top+(g&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/h.y,w=u.width/h.x,$=u.height/h.y;if(f){const _=kr(f),C=i&&Ao(i)?kr(i):i;let E=_.frameElement;for(;E&&i&&C!==_;){const L=hl(E),D=E.getBoundingClientRect(),N=getComputedStyle(E);D.x+=(E.clientLeft+parseFloat(N.paddingLeft))*L.x,D.y+=(E.clientTop+parseFloat(N.paddingTop))*L.y,v*=L.x,y*=L.y,w*=L.x,$*=L.y,v+=D.x,y+=D.y,E=kr(E).frameElement}}return{width:w,height:$,top:y,right:v+w,bottom:y+$,left:v,x:v,y}}function $o(e){return((E1(e)?e.ownerDocument:e.document)||window.document).documentElement}function rd(e){return Ao(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M1(e){return nc($o(e)).left+rd(e).scrollLeft}function rc(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||d0(e)&&e.host||$o(e);return d0(t)?t.host:t}function L1(e){const t=rc(e);return Tg(t)?t.ownerDocument.body:fi(t)&&nd(t)?t:L1(t)}function pf(e,t){var n;t===void 0&&(t=[]);const i=L1(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),l=kr(i);return o?t.concat(l,l.visualViewport||[],nd(i)?i:[]):t.concat(i,pf(i))}function h0(e,t,n){return t==="viewport"?za((function(i,o){const l=kr(i),u=$o(i),f=l.visualViewport;let h=u.clientWidth,p=u.clientHeight,g=0,v=0;if(f){h=f.width,p=f.height;const y=A1();(y||!y&&o==="fixed")&&(g=f.offsetLeft,v=f.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,n)):Ao(t)?za((function(i,o){const l=nc(i,!0,o==="fixed"),u=l.top+i.clientTop,f=l.left+i.clientLeft,h=fi(i)?hl(i):{x:1,y:1};return{width:i.clientWidth*h.x,height:i.clientHeight*h.y,x:f*h.x,y:u*h.y}})(t,n)):za((function(i){const o=$o(i),l=rd(i),u=i.ownerDocument.body,f=Ha(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),h=Ha(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let p=-l.scrollLeft+M1(i);const g=-l.scrollTop;return ui(u).direction==="rtl"&&(p+=Ha(o.clientWidth,u.clientWidth)-f),{width:f,height:h,x:p,y:g}})($o(e)))}function p0(e){return fi(e)&&ui(e).position!=="fixed"?e.offsetParent:null}function g0(e){const t=kr(e);let n=p0(e);for(;n&&eN(n)&&ui(n).position==="static";)n=p0(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&ui(n).position==="static"&&!vp(n))?t:n||(function(i){let o=rc(i);for(;fi(o)&&!Tg(o);){if(vp(o))return o;o=rc(o)}return null})(e)||t}function tN(e,t,n){const i=fi(t),o=$o(t),l=nc(e,!0,n==="fixed",t);let u={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(i||!i&&n!=="fixed")if((Oo(t)!=="body"||nd(o))&&(u=rd(t)),fi(t)){const h=nc(t,!0);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else o&&(f.x=M1(o));return{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}const nN={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const l=n==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let y=pf(p).filter((C=>Ao(C)&&Oo(C)!=="body")),w=null;const $=ui(p).position==="fixed";let _=$?rc(p):p;for(;Ao(_)&&!Tg(_);){const C=ui(_),E=vp(_);($?E||w:E||C.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=C:y=y.filter((L=>L!==_)),_=rc(_)}return g.set(p,y),y})(t,this._c):[].concat(n),u=[...l,i],f=u[0],h=u.reduce(((p,g)=>{const v=h0(t,g,o);return p.top=Ha(v.top,p.top),p.right=f0(v.right,p.right),p.bottom=f0(v.bottom,p.bottom),p.left=Ha(v.left,p.left),p}),h0(t,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=fi(n),l=$o(n);if(n===l)return t;let u={scrollLeft:0,scrollTop:0},f={x:1,y:1};const h={x:0,y:0};if((o||!o&&i!=="fixed")&&((Oo(n)!=="body"||nd(l))&&(u=rd(n)),fi(n))){const p=nc(n);f=hl(n),h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x,y:t.y*f.y-u.scrollTop*f.y+h.y}},isElement:Ao,getDimensions:function(e){return fi(e)?T1(e):e.getBoundingClientRect()},getOffsetParent:g0,getDocumentElement:$o,getScale:hl,async getElementRects(e){let{reference:t,floating:n,strategy:i}=e;const o=this.getOffsetParent||g0,l=this.getDimensions;return{reference:tN(t,await o(n),i),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ui(e).direction==="rtl"},rN=(e,t,n)=>{const i=new Map,o={platform:nN,...n},l={...o.platform,_c:i};return q$(e,t,{...o,platform:l})},No={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ic(e,t){let n=No.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=No.themes[n.$extend]||{}:(n=null,i=No[t]):n=null;while(n);return i}function iN(e){const t=[e];let n=No.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=No.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function m0(e){const t=[e];let n=No.themes[e]||{};do n.$extend?(t.push(n.$extend),n=No.themes[n.$extend]||{}):n=null;while(n);return t}let oc=!1;if(typeof window<"u"){oc=!1;try{const e=Object.defineProperty({},"passive",{get(){oc=!0}});window.addEventListener("test",null,e)}catch{}}let O1=!1;typeof window<"u"&&typeof navigator<"u"&&(O1=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const R1=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),v0={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},y0={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function b0(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Th(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const cr=[];let rs=null;const w0={};function x0(e){let t=w0[e];return t||(t=w0[e]=[]),t}let yp=function(){};typeof window<"u"&&(yp=window.Element);function ht(e){return function(t){return ic(t.theme,e)}}const Ch="__floating-vue__popper",P1=()=>tt({name:"VPopper",provide(){return{[Ch]:{parentPopper:this}}},inject:{[Ch]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>R1.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,yp,Boolean],default:ht("container")},boundary:{type:[String,yp],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ch])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var i,o;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(J$({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(G$({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Z$({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(K$({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(U$({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:l})=>{let u;const{centerOffset:f}=l.arrow;return i.startsWith("top")||i.startsWith("bottom")?u=Math.abs(f)>o.reference.width/2:u=Math.abs(f)>o.reference.height/2,{data:{overflow:u}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:l,middlewareData:u})=>{var f;if((f=u.autoSize)!=null&&f.skip)return{};let h,p;return l.startsWith("top")||l.startsWith("bottom")?h=o.reference.width:p=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Q$({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await rN(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),rs&&this.instantMove&&rs.instantMove&&rs!==this.parentPopper){rs.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(rs=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Th(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...pf(this.$_referenceNode),...pf(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(i.left+n.offsetLeft),l=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${o}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<cr.length;n++)t=cr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}cr.push(this),document.body.classList.add("v-popper--some-open");for(const t of m0(this.theme))x0(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Th(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,b0(cr,this),cr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of m0(this.theme)){const i=x0(n);b0(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}rs===this&&(rs=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Th(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,v0,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],v0,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,y0,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],y0,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(i=>i.addEventListener(t,n,oc?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,o){let l=n;i!=null&&(l=typeof i=="function"?i(l):i),l.forEach(u=>{const f=t[u];f&&this.$_registerEventListeners(e,f,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:o,handler:l}=n;!e||e===o?i.forEach(u=>u.removeEventListener(o,l)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ba>=e.left&&Ba<=e.right&&ja>=e.top&&ja<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ba-po,i=ja-go,o=t.left+t.width/2-po+(t.top+t.height/2)-go+t.width+t.height,l=po+n*o,u=go+i*o;return vu(po,go,l,u,t.left,t.top,t.left,t.bottom)||vu(po,go,l,u,t.left,t.top,t.right,t.top)||vu(po,go,l,u,t.right,t.top,t.right,t.bottom)||vu(po,go,l,u,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(O1){const e=oc?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>S0(t),e),document.addEventListener("touchend",t=>_0(t,!0),e)}else window.addEventListener("mousedown",e=>S0(e),!0),window.addEventListener("click",e=>_0(e,!1),!0);window.addEventListener("resize",lN)}function S0(e,t){for(let n=0;n<cr.length;n++){const i=cr[n];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function _0(e,t){oN(e,t)}function oN(e,t){const n={};for(let i=cr.length-1;i>=0;i--){const o=cr[i];try{const l=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&k0(o,l,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=o.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let u=o.parentPopper;for(;u&&k0(u,u.containsGlobalTarget,e);)u.$_handleGlobalClose(e,t),u=u.parentPopper}})}catch{}}}function k0(e,t,n){return n.closeAllPopover||n.closePopover&&t||sN(e,n)&&!t}function sN(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function lN(){for(let e=0;e<cr.length;e++)cr[e].$_computePosition()}function T0(){for(let e=0;e<cr.length;e++)cr[e].hide()}let po=0,go=0,Ba=0,ja=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{po=Ba,go=ja,Ba=e.clientX,ja=e.clientY},oc?{passive:!0}:void 0);function vu(e,t,n,i,o,l,u,f){const h=((u-o)*(t-l)-(f-l)*(e-o))/((f-l)*(n-e)-(u-o)*(i-t)),p=((n-e)*(t-l)-(i-t)*(e-o))/((f-l)*(n-e)-(u-o)*(i-t));return h>=0&&h<=1&&p>=0&&p<=1}const aN={extends:P1()},id=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};function cN(e,t,n,i,o,l){return te(),ge("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Bt(e.$slots,"default",oE(f1(e.slotData)))],2)}const uN=id(aN,[["render",cN]]);function fN(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let zu;function bp(){bp.init||(bp.init=!0,zu=fN()!==-1)}var od={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){bp(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",zu&&this.$el.appendChild(e),e.data="about:blank",zu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const dN=Ex();Tx("data-v-b329ee4c");const hN={class:"resize-observer",tabindex:"-1"};Cx();const pN=dN((e,t,n,i,o,l)=>(te(),We("div",hN)));od.render=pN;od.__scopeId="data-v-b329ee4c";od.__file="src/components/ResizeObserver.vue";const I1=(e="theme")=>({computed:{themeClass(){return iN(this[e])}}}),gN=tt({name:"VPopperContent",components:{ResizeObserver:od},mixins:[I1()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),mN=["id","aria-hidden","tabindex","data-popper-placement"],vN={ref:"inner",class:"v-popper__inner"},yN=Y("div",{class:"v-popper__arrow-outer"},null,-1),bN=Y("div",{class:"v-popper__arrow-inner"},null,-1),wN=[yN,bN];function xN(e,t,n,i,o,l){const u=ys("ResizeObserver");return te(),ge("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Pt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=gp(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Pt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",vN,[e.mounted?(te(),ge(nt,{key:0},[Y("div",null,[Bt(e.$slots,"default")]),e.handleResize?(te(),We(u,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):Fe("",!0)],64)):Fe("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Pt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},wN,4)],4)],46,mN)}const D1=id(gN,[["render",xN]]),F1={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let wp=function(){};typeof window<"u"&&(wp=window.Element);const SN=tt({name:"VPopperWrapper",components:{Popper:uN,PopperContent:D1},mixins:[F1,I1("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,wp,Boolean],default:void 0},boundary:{type:[String,wp],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function _N(e,t,n,i,o,l){const u=ys("PopperContent"),f=ys("Popper");return te(),We(f,ci({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:je(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,show:w,hide:$,handleResize:_,onResize:C,classes:E,result:L})=>[Bt(e.$slots,"default",{shown:p,show:w,hide:$}),Ne(u,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":_,classes:E,result:L,onHide:$,onResize:C},{default:je(()=>[Bt(e.$slots,"popper",{shown:p,hide:$})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Cg=id(SN,[["render",_N]]);({...Cg});({...Cg});const kN={...Cg,name:"VTooltip",vPopperTheme:"tooltip"},TN=tt({name:"VTooltipDirective",components:{Popper:P1(),PopperContent:D1},mixins:[F1],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ic(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ic(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),CN=["innerHTML"],EN=["textContent"];function AN(e,t,n,i,o,l){const u=ys("PopperContent"),f=ys("Popper");return te(),We(f,ci({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:je(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:y,hide:w,handleResize:$,onResize:_,classes:C,result:E})=>[Ne(u,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":y,"handle-resize":$,classes:C,result:E,onHide:w,onResize:_},{default:je(()=>[e.html?(te(),ge("div",{key:0,innerHTML:e.finalContent},null,8,CN)):(te(),ge("div",{key:1,textContent:Me(e.finalContent)},null,8,EN))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const $N=id(TN,[["render",AN]]),z1="v-popper--has-tooltip";function NN(e,t){let n=e.placement;if(!n&&t)for(const i of R1)t[i]&&(n=i);return n||(n=ic(e.theme||"tooltip","placement")),n}function H1(e,t,n){let i;const o=typeof t;return o==="string"?i={content:t}:t&&o==="object"?i=t:i={content:!1},i.placement=NN(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Eh,sc,MN=0;function LN(){if(Eh)return;sc=Ke([]),Eh=x1({name:"VTooltipDirectiveApp",setup(){return{directives:sc}},render(){return this.directives.map(t=>Tc($N,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Eh.mount(e)}function B1(e,t,n){LN();const i=Ke(H1(e,t,n)),o=Ke(!1),l={id:MN++,options:i,shown:o};return sc.value.push(l),e.classList&&e.classList.add(z1),e.$_popper={options:i,item:l,show(){o.value=!0},hide(){o.value=!1}}}function Eg(e){if(e.$_popper){const t=sc.value.indexOf(e.$_popper.item);t!==-1&&sc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(z1)}function C0(e,{value:t,modifiers:n}){const i=H1(e,t,n);if(!i.content||ic(i.theme||"tooltip","disabled"))Eg(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=i):o=B1(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const ON={beforeMount:C0,updated:C0,beforeUnmount(e){Eg(e)}},RN=ON,wo=kN,j1={options:No};function W1(e,t){return ag()?(uE(e,t),!0):!1}const Ah=new WeakMap,PN=(...e)=>{var t;const n=e[0],i=(t=gi())===null||t===void 0?void 0:t.proxy,o=i??ag();if(o==null&&!Ax())throw new Error("injectLocal must be called in setup");return o&&Ah.has(o)&&n in Ah.get(o)?Ah.get(o)[n]:bn(...e)},IN=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const DN=Object.prototype.toString,FN=e=>DN.call(e)==="[object Object]",zN=()=>+Date.now(),gf=()=>{};function ks(...e){if(e.length!==1)return IE(...e);const t=e[0];return typeof t=="function"?Sl(bx(()=>({get:t,set:gf}))):Ke(t)}function Ag(e,t){function n(...i){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(l)})}return n}const $g=e=>e();function q1(e,t={}){let n,i,o=gf;const l=h=>{clearTimeout(h),o(),o=gf};let u;return h=>{const p=Zt(e),g=Zt(t.maxWait);return n&&l(n),p<=0||g!==void 0&&g<=0?(i&&(l(i),i=void 0),Promise.resolve(h())):new Promise((v,y)=>{o=t.rejectOnCancel?y:v,u=h,g&&!i&&(i=setTimeout(()=>{n&&l(n),i=void 0,v(u())},g)),n=setTimeout(()=>{i&&l(i),i=void 0,v(h())},p)})}}function U1(e=$g,t={}){const{initialState:n="active"}=t,i=ks(n==="active");function o(){i.value=!1}function l(){i.value=!0}return{isActive:Sl(i),pause:o,resume:l,eventFilter:(...f)=>{i.value&&e(...f)}}}function E0(e,t=!1,n="Timeout"){return new Promise((i,o)=>{setTimeout(t?()=>o(n):i,e)})}function A0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function $h(e){return Array.isArray(e)?e:[e]}function HN(e){return gi()}function yu(e,t=200,n={}){return Ag(q1(t,n),e)}function V1(e,t,n={}){const{eventFilter:i=$g,...o}=n;return yt(e,Ag(i,t),o)}function G1(e,t,n={}){const{eventFilter:i,initialState:o="active",...l}=n,{eventFilter:u,pause:f,resume:h,isActive:p}=U1(i,{initialState:o});return{stop:V1(e,t,{...l,eventFilter:u}),pause:f,resume:h,isActive:p}}function Ng(e,t=!0,n){HN()?Yi(e,n):t?e():At(e)}function xp(e,t=!1){function n(v,{flush:y="sync",deep:w=!1,timeout:$,throwOnTimeout:_}={}){let C=null;const E=[new Promise(L=>{C=yt(e,D=>{v(D)!==t&&(C?C():At(()=>C?.()),L(D))},{flush:y,deep:w,immediate:!0})})];return $!=null&&E.push(E0($,_).then(()=>Zt(e)).finally(()=>C?.())),Promise.race(E)}function i(v,y){if(!Lt(v))return n(D=>D===v,y);const{flush:w="sync",deep:$=!1,timeout:_,throwOnTimeout:C}=y??{};let E=null;const L=[new Promise(D=>{E=yt([e,v],([N,I])=>{t!==(N===I)&&(E?E():At(()=>E?.()),D(N))},{flush:w,deep:$,immediate:!0})})];return _!=null&&L.push(E0(_,C).then(()=>Zt(e)).finally(()=>(E?.(),Zt(e)))),Promise.race(L)}function o(v){return n(y=>!!y,v)}function l(v){return i(null,v)}function u(v){return i(void 0,v)}function f(v){return n(Number.isNaN,v)}function h(v,y){return n(w=>{const $=Array.from(w);return $.includes(v)||$.includes(Zt(v))},y)}function p(v){return g(1,v)}function g(v=1,y){let w=-1;return n(()=>(w+=1,w>=v),y)}return Array.isArray(Zt(e))?{toMatch:n,toContains:h,changed:p,changedTimes:g,get not(){return xp(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:o,toBeNull:l,toBeNaN:f,toBeUndefined:u,changed:p,changedTimes:g,get not(){return xp(e,!t)}}}function $0(e){return xp(e)}function BN(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,o=Lt(e),l=Vt(e);function u(f){if(arguments.length)return l.value=f,l.value;{const h=Zt(n);return l.value=l.value===h?Zt(i):h,l.value}}return o?u:[l,u]}function K1(e,t,n={}){const{debounce:i=0,maxWait:o=void 0,...l}=n;return V1(e,t,{...l,eventFilter:q1(i,{maxWait:o})})}const Y1=K1;function jN(e,t,n={}){const{eventFilter:i=$g,...o}=n,l=Ag(i,t);let u,f,h;if(o.flush==="sync"){let p=!1;f=()=>{},u=g=>{p=!0,g(),p=!1},h=yt(e,(...g)=>{p||l(...g)},o)}else{const p=[];let g=0,v=0;f=()=>{g=v},p.push(yt(e,()=>{v++},{...o,flush:"sync"})),u=y=>{const w=v;y(),g+=v-w},p.push(yt(e,(...y)=>{const w=g>0&&g===v;g=0,v=0,!w&&l(...y)},o)),h=()=>{p.forEach(y=>y())}}return{stop:h,ignoreUpdates:u,ignorePrevAsyncUpdates:f}}function WN(e,t,n){return yt(e,t,{...n,immediate:!0})}function qN(e,t,n){return yt(e,t,{...n,once:!0})}function UN(e,t,n){var i;let o;Lt(n)?o={evaluating:n}:o=n||{};const{lazy:l=!1,flush:u="sync",evaluating:f=void 0,shallow:h=!0,onError:p=(i=globalThis.reportError)!==null&&i!==void 0?i:gf}=o,g=Vt(!l),v=h?Vt(t):Ke(t);let y=0;return $x(async w=>{if(!g.value)return;y++;const $=y;let _=!1;f&&Promise.resolve().then(()=>{f.value=!0});try{const C=await e(E=>{w(()=>{f&&(f.value=!1),_||E()})});$===y&&(v.value=C)}catch(C){p(C)}finally{f&&$===y&&(f.value=!1),_=!0}},{flush:u}),l?Se(()=>(g.value=!0,v.value)):v}const VN=UN,fr=IN?window:void 0;function mf(e){var t;const n=Zt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ro(...e){const t=(i,o,l,u)=>(i.addEventListener(o,l,u),()=>i.removeEventListener(o,l,u)),n=Se(()=>{const i=$h(Zt(e[0])).filter(o=>o!=null);return i.every(o=>typeof o!="string")?i:void 0});return WN(()=>{var i,o;return[(i=(o=n.value)===null||o===void 0?void 0:o.map(l=>mf(l)))!==null&&i!==void 0?i:[fr].filter(l=>l!=null),$h(Zt(n.value?e[1]:e[0])),$h(W(n.value?e[2]:e[1])),Zt(n.value?e[3]:e[2])]},([i,o,l,u],f,h)=>{if(!i?.length||!o?.length||!l?.length)return;const p=FN(u)?{...u}:u,g=i.flatMap(v=>o.flatMap(y=>l.map(w=>t(v,y,w,p))));h(()=>{g.forEach(v=>v())})},{flush:"post"})}function GN(){const e=Vt(!1),t=gi();return t&&Yi(()=>{e.value=!0},t),e}function X1(e){const t=GN();return Se(()=>(t.value,!!e()))}function KN(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function J1(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=fr,eventName:l="keydown",passive:u=!1,dedupe:f=!1}=i,h=KN(t);return Ro(o,l,g=>{g.repeat&&Zt(f)||h(g)&&n(g)},u)}function YN(e,t={}){const{immediate:n=!0,fpsLimit:i=null,window:o=fr,once:l=!1}=t,u=Vt(!1),f=Se(()=>{const w=Zt(i);return w?1e3/w:null});let h=0,p=null;function g(w){if(!u.value||!o)return;h||(h=w);const $=w-h;if(f.value&&$<f.value){p=o.requestAnimationFrame(g);return}if(h=w,e({delta:$,timestamp:w}),l){u.value=!1,p=null;return}p=o.requestAnimationFrame(g)}function v(){!u.value&&o&&(u.value=!0,h=0,p=o.requestAnimationFrame(g))}function y(){u.value=!1,p!=null&&o&&(o.cancelAnimationFrame(p),p=null)}return n&&v(),W1(y),{isActive:Sl(u),pause:y,resume:v}}const XN=Symbol("vueuse-ssr-width");function JN(){const e=Ax()?PN(XN,null):null;return typeof e=="number"?e:void 0}function Z1(e,t={}){const{window:n=fr,ssrWidth:i=JN()}=t,o=X1(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=Vt(typeof i=="number"),u=Vt(),f=Vt(!1),h=p=>{f.value=p.matches};return $x(()=>{if(l.value){l.value=!o.value,f.value=Zt(e).split(",").some(p=>{const g=p.includes("not all"),v=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(v||y);return v&&w&&(w=i>=A0(v[1])),y&&w&&(w=i<=A0(y[1])),g?!w:w});return}o.value&&(u.value=n.matchMedia(Zt(e)),f.value=u.value.matches)}),Ro(u,"change",h,{passive:!0}),Se(()=>f.value)}function Q1(e){return JSON.parse(JSON.stringify(e))}const bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wu="__vueuse_ssr_handlers__",ZN=QN();function QN(){return wu in bu||(bu[wu]=bu[wu]||{}),bu[wu]}function eS(e,t){return ZN[e]||t}function eM(e){return Z1("(prefers-color-scheme: dark)",e)}function tM(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const nM={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},N0="vueuse-storage";function tS(e,t,n,i={}){var o;const{flush:l="pre",deep:u=!0,listenToStorageChanges:f=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=fr,eventFilter:y,onError:w=k=>{console.error(k)},initOnMounted:$}=i,_=(g?Vt:Ke)(typeof t=="function"?t():t),C=Se(()=>Zt(e));if(!n)try{n=eS("getDefaultStorage",()=>fr?.localStorage)()}catch(k){w(k)}if(!n)return _;const E=Zt(t),L=tM(E),D=(o=i.serializer)!==null&&o!==void 0?o:nM[L],{pause:N,resume:I}=G1(_,k=>U(k),{flush:l,deep:u,eventFilter:y});yt(C,()=>P(),{flush:l});let q=!1;const X=k=>{$&&!q||P(k)},ie=k=>{$&&!q||O(k)};v&&f&&(n instanceof Storage?Ro(v,"storage",X,{passive:!0}):Ro(v,N0,ie)),$?Ng(()=>{q=!0,P()}):P();function J(k,S){if(v){const R={key:C.value,oldValue:k,newValue:S,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",R):new CustomEvent(N0,{detail:R}))}}function U(k){try{const S=n.getItem(C.value);if(k==null)J(S,null),n.removeItem(C.value);else{const R=D.write(k);S!==R&&(n.setItem(C.value,R),J(S,R))}}catch(S){w(S)}}function K(k){const S=k?k.newValue:n.getItem(C.value);if(S==null)return h&&E!=null&&n.setItem(C.value,D.write(E)),E;if(!k&&p){const R=D.read(S);return typeof p=="function"?p(R,E):L==="object"&&!Array.isArray(R)?{...E,...R}:R}else return typeof S!="string"?S:D.read(S)}function P(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){_.value=E;return}if(!(k&&k.key!==C.value)){N();try{const S=D.write(_.value);(k===void 0||k?.newValue!==S)&&(_.value=K(k))}catch(S){w(S)}finally{k?At(I):I()}}}}function O(k){P(k.detail)}return _}const rM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iM(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:o=fr,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=eM({window:o}),w=Se(()=>y.value?"dark":"light"),$=h||(u==null?ks(i):tS(u,i,l,{window:o,listenToStorageChanges:f})),_=Se(()=>$.value==="auto"?w.value:$.value),C=eS("updateHTMLAttrs",(N,I,q)=>{const X=typeof N=="string"?o?.document.querySelector(N):mf(N);if(!X)return;const ie=new Set,J=new Set;let U=null;if(I==="class"){const P=q.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?ie.add(O):J.add(O)})}else U={key:I,value:q};if(ie.size===0&&J.size===0&&U===null)return;let K;g&&(K=o.document.createElement("style"),K.appendChild(document.createTextNode(rM)),o.document.head.appendChild(K));for(const P of ie)X.classList.add(P);for(const P of J)X.classList.remove(P);U&&X.setAttribute(U.key,U.value),g&&(o.getComputedStyle(K).opacity,document.head.removeChild(K))});function E(N){var I;C(t,n,(I=v[N])!==null&&I!==void 0?I:N)}function L(N){e.onChanged?e.onChanged(N,E):E(N)}yt(_,L,{flush:"post",immediate:!0}),Ng(()=>L(_.value));const D=Se({get(){return p?$.value:_.value},set(N){$.value=N}});return Object.assign(D,{store:$,system:w,state:_})}function oM(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=iM({...e,onChanged:(l,u)=>{var f;e.onChanged?(f=e.onChanged)===null||f===void 0||f.call(e,l==="dark",u,l):u(l)},modes:{dark:t,light:n}}),o=Se(()=>i.system.value);return Se({get(){return i.value==="dark"},set(l){const u=l?"dark":"light";o.value===u?i.value="auto":i.value=u}})}function nS(e){return e}function sM(e,t){return e.value=t}function lM(e){return e?typeof e=="function"?e:Q1:nS}function aM(e){return e?typeof e=="function"?e:Q1:nS}function cM(e,t={}){const{clone:n=!1,dump:i=lM(n),parse:o=aM(n),setSource:l=sM}=t;function u(){return Vf({snapshot:i(e.value),timestamp:zN()})}const f=Ke(u()),h=Ke([]),p=Ke([]),g=C=>{l(e,o(C.snapshot)),f.value=C},v=()=>{h.value.unshift(f.value),f.value=u(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},y=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const C=h.value.shift();C&&(p.value.unshift(f.value),g(C))},$=()=>{const C=p.value.shift();C&&(h.value.unshift(f.value),g(C))},_=()=>{g(f.value)};return{source:e,undoStack:h,redoStack:p,last:f,history:Se(()=>[f.value,...h.value]),canUndo:Se(()=>h.value.length>0),canRedo:Se(()=>p.value.length>0),clear:y,commit:v,reset:_,undo:w,redo:$}}function uM(e,t={}){const{deep:n=!1,flush:i="pre",eventFilter:o,shouldCommit:l=()=>!0}=t,{eventFilter:u,pause:f,resume:h,isActive:p}=U1(o);let g=e.value;const{ignoreUpdates:v,ignorePrevAsyncUpdates:y,stop:w}=jN(e,L,{deep:n,flush:i,eventFilter:u});function $(q,X){y(),v(()=>{q.value=X,g=X})}const _=cM(e,{...t,clone:t.clone||n,setSource:$}),{clear:C,commit:E}=_;function L(){y(),l(g,e.value)&&(g=e.value,E())}function D(q){h(),q&&L()}function N(q){let X=!1;const ie=()=>X=!0;v(()=>{q(ie)}),X||L()}function I(){w(),C()}return{..._,isTracking:p,pause:f,resume:D,commit:L,batch:N,dispose:I}}function fM(e,t,n={}){const{window:i=fr,...o}=n;let l;const u=X1(()=>i&&"ResizeObserver"in i),f=()=>{l&&(l.disconnect(),l=void 0)},h=yt(Se(()=>{const g=Zt(e);return Array.isArray(g)?g.map(v=>mf(v)):[mf(g)]}),g=>{if(f(),u.value&&i){l=new ResizeObserver(t);for(const v of g)v&&l.observe(v,o)}},{immediate:!0,flush:"post"}),p=()=>{f(),h()};return W1(p),{isSupported:u,stop:p}}function Cc(e,t,n={}){const{window:i=fr}=n;return tS(e,t,i?.localStorage,n)}function dM(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:o=!1,write:l=!0,writeMode:u="replace",window:f=fr,stringify:h=N=>N.toString()}=t;if(!f)return dr(n);const p=dr({});function g(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",I=N.indexOf("?");return I>0?N.slice(I):""}else return(f.location.hash||"").replace(/^#/,"")}function v(N){const I=h(N);if(e==="history")return`${I?`?${I}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${I?`#${I}`:""}`;const q=f.location.hash||"#",X=q.indexOf("?");return X>0?`${f.location.search||""}${q.slice(0,X)}${I?`?${I}`:""}`:`${f.location.search||""}${q}${I?`?${I}`:""}`}function y(){return new URLSearchParams(g())}function w(N){const I=new Set(Object.keys(p));for(const q of N.keys()){const X=N.getAll(q);p[q]=X.length>1?X:N.get(q)||"",I.delete(q)}Array.from(I).forEach(q=>delete p[q])}const{pause:$,resume:_}=G1(p,()=>{const N=new URLSearchParams("");Object.keys(p).forEach(I=>{const q=p[I];Array.isArray(q)?q.forEach(X=>N.append(I,X)):i&&q==null||o&&!q?N.delete(I):N.set(I,q)}),C(N,!1)},{deep:!0});function C(N,I,q=!0){$(),I&&w(N),u==="replace"?f.history.replaceState(f.history.state,f.document.title,f.location.pathname+v(N)):q&&f.history.pushState(f.history.state,f.document.title,f.location.pathname+v(N)),At(()=>_())}function E(){l&&C(y(),!0,!1)}const L={passive:!0};Ro(f,"popstate",E,L),e!=="history"&&Ro(f,"hashchange",E,L);const D=y();return D.keys().next().value?w(D):Object.assign(p,n),p}function rS(e={}){const{window:t=fr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:u="inner"}=e,f=Vt(n),h=Vt(i),p=()=>{if(t)if(u==="outer")f.value=t.outerWidth,h.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:v,height:y,scale:w}=t.visualViewport;f.value=Math.round(v*w),h.value=Math.round(y*w)}else l?(f.value=t.innerWidth,h.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Ng(p);const g={passive:!0};return Ro("resize",p,g),t&&u==="visual"&&t.visualViewport&&Ro(t.visualViewport,"resize",p,g),o&&yt(Z1("(orientation: portrait)"),()=>p()),{width:f,height:h}}const M0={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const n=t,i=e,o=Bx(),l=Ke([]),u=Se(()=>l.value.reduce((z,Z)=>(z[~~Z.id]=Z)&&z,{})),f=Se(()=>l.value.length),h=Ke(null),p=Ke(!1),g=Ke({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ke({splitter:null,timeoutId:null}),y=Se(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",C,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E))},$=()=>{document.removeEventListener("mousemove",C,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",C,{passive:!1}),document.removeEventListener("touchend",E))},_=(z,Z)=>{const re=z.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ce}=re.getBoundingClientRect(),{clientX:F,clientY:j}="ontouchstart"in window&&z.touches?z.touches[0]:z;g.value.cursorOffset=i.horizontal?j-ce:F-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Z},C=z=>{g.value.mouseDown&&(z.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{X(I(z)),He("resize",{event:z},!0)}))},E=z=>{g.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:z},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,$()},100)},L=(z,Z)=>{"ontouchstart"in window&&(z.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,D(z,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||He("splitter-click",{event:z,index:Z},!0)},D=(z,Z)=>{if(He("splitter-dblclick",{event:z,index:Z},!0),i.maximizePanes){let re=0;l.value=l.value.map((le,ce)=>(le.size=ce===Z?le.max:le.min,ce!==Z&&(re+=le.min),le)),l.value[Z].size-=re,He("pane-maximize",{event:z,index:Z,pane:l.value[Z]}),He("resized",{event:z,index:Z},!0)}},N=(z,Z)=>{He("pane-click",{event:z,index:u.value[Z].index,pane:u.value[Z]})},I=z=>{const Z=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&z.touches?z.touches[0]:z;return{x:re-(i.horizontal?0:g.value.cursorOffset)-Z.left,y:le-(i.horizontal?g.value.cursorOffset:0)-Z.top}},q=z=>{z=z[i.horizontal?"y":"x"];const Z=h.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(z=Z-z),z*100/Z},X=z=>{const Z=g.value.activeSplitter;let re={prevPanesSize:J(Z),nextPanesSize:U(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(i.pushOtherPanes?0:re.prevPanesSize),ce=100-(i.pushOtherPanes?0:re.nextPanesSize),F=Math.max(Math.min(q(z),ce),le);let j=[Z,Z+1],ee=l.value[j[0]]||null,de=l.value[j[1]]||null;const he=ee.max<100&&F>=ee.max+re.prevPanesSize,me=de.max<100&&F<=100-(de.max+U(Z+1));if(he||me){he?(ee.size=ee.max,de.size=Math.max(100-ee.max-re.prevPanesSize-re.nextPanesSize,0)):(ee.size=Math.max(100-de.max-re.prevPanesSize-U(Z+1),0),de.size=de.max);return}if(i.pushOtherPanes){const Ce=ie(re,F);if(!Ce)return;({sums:re,panesToResize:j}=Ce),ee=l.value[j[0]]||null,de=l.value[j[1]]||null}ee!==null&&(ee.size=Math.min(Math.max(F-re.prevPanesSize-re.prevReachedMinPanes,ee.min),ee.max)),de!==null&&(de.size=Math.min(Math.max(100-F-re.nextPanesSize-re.nextReachedMinPanes,de.min),de.max))},ie=(z,Z)=>{const re=g.value.activeSplitter,le=[re,re+1];return Z<z.prevPanesSize+l.value[le[0]].min&&(le[0]=K(re).index,z.prevReachedMinPanes=0,le[0]<re&&l.value.forEach((ce,F)=>{F>le[0]&&F<=re&&(ce.size=ce.min,z.prevReachedMinPanes+=ce.min)}),z.prevPanesSize=J(le[0]),le[0]===void 0)?(z.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((ce,F)=>{F>0&&F<=re&&(ce.size=ce.min,z.prevReachedMinPanes+=ce.min)}),l.value[le[1]].size=100-z.prevReachedMinPanes-l.value[0].min-z.prevPanesSize-z.nextPanesSize,null):Z>100-z.nextPanesSize-l.value[le[1]].min&&(le[1]=P(re).index,z.nextReachedMinPanes=0,le[1]>re+1&&l.value.forEach((ce,F)=>{F>re&&F<le[1]&&(ce.size=ce.min,z.nextReachedMinPanes+=ce.min)}),z.nextPanesSize=U(le[1]-1),le[1]===void 0)?(z.nextReachedMinPanes=0,l.value.forEach((ce,F)=>{F<f.value-1&&F>=re+1&&(ce.size=ce.min,z.nextReachedMinPanes+=ce.min)}),l.value[le[0]].size=100-z.prevPanesSize-U(le[0]-1),null):{sums:z,panesToResize:le}},J=z=>l.value.reduce((Z,re,le)=>Z+(le<z?re.size:0),0),U=z=>l.value.reduce((Z,re,le)=>Z+(le>z+1?re.size:0),0),K=z=>[...l.value].reverse().find(Z=>Z.index<z&&Z.size>Z.min)||{},P=z=>l.value.find(Z=>Z.index>z+1&&Z.size>Z.min)||{},O=()=>{var z;const Z=Array.from(((z=h.value)==null?void 0:z.children)||[]);for(const re of Z){const le=re.classList.contains("splitpanes__pane"),ce=re.classList.contains("splitpanes__splitter");!le&&!ce&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},k=(z,Z,re=!1)=>{const le=z-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),re||(ce.onmousedown=F=>_(F,le),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=F=>_(F,le)),ce.onclick=F=>L(F,le+1)),ce.ondblclick=F=>D(F,le+1),Z.parentNode.insertBefore(ce,Z)},S=z=>{z.onmousedown=void 0,z.onclick=void 0,z.ondblclick=void 0,z.remove()},R=()=>{var z;const Z=Array.from(((z=h.value)==null?void 0:z.children)||[]);for(const le of Z)le.className.includes("splitpanes__splitter")&&S(le);let re=0;for(const le of Z)le.className.includes("splitpanes__pane")&&(!re&&i.firstSplitter?k(re,le,!0):re&&k(re,le),re++)},B=({uid:z,...Z})=>{const re=u.value[z];for(const[le,ce]of Object.entries(Z))re[le]=ce},ae=z=>{var Z;let re=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(z.el))),l.value.splice(re,0,{...z,index:re}),l.value.forEach((le,ce)=>le.index=ce),p.value&&At(()=>{R(),_e({addedPane:l.value[re]}),He("pane-add",{pane:l.value[re]})})},ve=z=>{const Z=l.value.findIndex(le=>le.id===z);l.value[Z].el=null;const re=l.value.splice(Z,1)[0];l.value.forEach((le,ce)=>le.index=ce),At(()=>{R(),He("pane-remove",{pane:re}),_e({removedPane:{...re}})})},_e=(z={})=>{!z.addedPane&&!z.removedPane?Ee():l.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ge(z):Be(),p.value&&He("resized")},Be=()=>{const z=100/f.value;let Z=0;const re=[],le=[];for(const ce of l.value)ce.size=Math.max(Math.min(z,ce.max),ce.min),Z-=ce.size,ce.size>=ce.max&&re.push(ce.id),ce.size<=ce.min&&le.push(ce.id);Z>.1&&Ue(Z,re,le)},Ee=()=>{let z=100;const Z=[],re=[];let le=0;for(const F of l.value)z-=F.size,F.givenSize!==null&&le++,F.size>=F.max&&Z.push(F.id),F.size<=F.min&&re.push(F.id);let ce=100;if(z>.1){for(const F of l.value)F.givenSize===null&&(F.size=Math.max(Math.min(z/(f.value-le),F.max),F.min)),ce-=F.size;ce>.1&&Ue(ce,Z,re)}},Ge=({addedPane:z,removedPane:Z}={})=>{let re=100/f.value,le=0;const ce=[],F=[];(z?.givenSize??null)!==null&&(re=(100-z.givenSize)/(f.value-1));for(const j of l.value)le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&F.push(j.id);if(!(Math.abs(le)<.1)){for(const j of l.value)z?.givenSize!==null&&z?.id===j.id||(j.size=Math.max(Math.min(re,j.max),j.min)),le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&F.push(j.id);le>.1&&Ue(le,ce,F)}},Ue=(z,Z,re)=>{let le;z>0?le=z/(f.value-Z.length):le=z/(f.value-re.length),l.value.forEach((ce,F)=>{if(z>0&&!Z.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;z-=ee,ce.size=j}else if(!re.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;z-=ee,ce.size=j}}),Math.abs(z)>.1&&At(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(z,Z=void 0,re=!1)=>{const le=Z?.index??g.value.activeSplitter??null;n(z,{...Z,...le!==null&&{index:le},...re&&le!==null&&{prevPane:l.value[le-(i.firstSplitter?1:0)],nextPane:l.value[le+(i.firstSplitter?0:1)]},panes:l.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};yt(()=>i.firstSplitter,()=>R()),Yi(()=>{O(),R(),_e(),He("ready"),p.value=!0}),Sc(()=>p.value=!1);const Re=()=>{var z;return Tc("div",{ref:h,class:y.value},(z=o.default)==null?void 0:z.call(o))};return _r("panes",l),_r("indexedPanes",u),_r("horizontal",Se(()=>i.horizontal)),_r("requestUpdate",B),_r("onPaneAdd",ae),_r("onPaneRemove",ve),_r("onPaneClick",N),(z,Z)=>(te(),We(sf(Re)))}},xu={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,i=bn("requestUpdate"),o=bn("onPaneAdd"),l=bn("horizontal"),u=bn("onPaneRemove"),f=bn("onPaneClick"),h=(t=gi())==null?void 0:t.uid,p=bn("indexedPanes"),g=Se(()=>p.value[h]),v=Ke(null),y=Se(()=>{const C=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(C,$.value),w.value)}),w=Se(()=>{const C=parseFloat(n.minSize);return isNaN(C)?0:C}),$=Se(()=>{const C=parseFloat(n.maxSize);return isNaN(C)?100:C}),_=Se(()=>{var C;return`${l.value?"height":"width"}: ${(C=g.value)==null?void 0:C.size}%`});return yt(()=>y.value,C=>i({uid:h,size:C})),yt(()=>w.value,C=>i({uid:h,min:C})),yt(()=>$.value,C=>i({uid:h,max:C})),Yi(()=>{o({id:h,el:v.value,min:w.value,max:$.value,givenSize:n.size===void 0?null:y.value,size:y.value})}),Sc(()=>u(h)),(C,E)=>(te(),ge("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:E[0]||(E[0]=L=>W(f)(L,C._.uid)),style:Pt(_.value)},[Bt(C.$slots,"default")],4))}},lr=Ke([414,896]);var L0={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Mg(e){return String(e)}Mg.open="";Mg.close="";function hM(){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=t.FORCE_TTY!=="false",i=e?.argv||[];return!("NO_COLOR"in t||i.includes("--no-color"))&&("FORCE_COLOR"in t||i.includes("--color")||e?.platform==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}function pM(){let e=hM(),t=(l,u,f,h)=>{let p="",g=0;do p+=l.substring(g,h)+f,g=h+u.length,h=l.indexOf(u,g);while(~h);return p+l.substring(g)},n=(l,u,f=l)=>{let h=p=>{let g=String(p),v=g.indexOf(u,l.length);return~v?l+t(g,u,f,v)+u:l+g+u};return h.open=l,h.close=u,h},i={isColorSupported:e},o=l=>`\x1B[${l}m`;for(let l in L0){let u=L0[l];i[l]=e?n(o(u[0]),o(u[1]),u[2]):Mg}return i}var gM=pM();function iS(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(e)}function mM(e,t){const n=Object.keys(e),i=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&i.push(o);return i}function sd(e,t,n,i,o,l,u=": "){let f="",h=0,p=e.next();if(!p.done){f+=t.spacingOuter;const g=n+t.indent;for(;!p.done;){if(f+=g,h++===t.maxWidth){f+="…";break}const v=l(p.value[0],t,g,i,o),y=l(p.value[1],t,g,i,o);f+=v+u+y,p=e.next(),p.done?t.min||(f+=","):f+=`,${t.spacingInner}`}f+=t.spacingOuter+n}return f}function Lg(e,t,n,i,o,l){let u="",f=0,h=e.next();if(!h.done){u+=t.spacingOuter;const p=n+t.indent;for(;!h.done;){if(u+=p,f++===t.maxWidth){u+="…";break}u+=l(h.value,t,p,i,o),h=e.next(),h.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+n}return u}function vf(e,t,n,i,o,l){let u="";e=e instanceof ArrayBuffer?new DataView(e):e;const f=p=>p instanceof DataView,h=f(e)?e.byteLength:e.length;if(h>0){u+=t.spacingOuter;const p=n+t.indent;for(let g=0;g<h;g++){if(u+=p,g===t.maxWidth){u+="…";break}(f(e)||g in e)&&(u+=l(f(e)?e.getInt8(g):e[g],t,p,i,o)),g<h-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+n}return u}function Og(e,t,n,i,o,l){let u="";const f=mM(e,t.compareKeys);if(f.length>0){u+=t.spacingOuter;const h=n+t.indent;for(let p=0;p<f.length;p++){const g=f[p],v=l(g,t,h,i,o),y=l(e[g],t,h,i,o);u+=`${h+v}: ${y}`,p<f.length-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+n}return u}const vM=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Su=" ",yM=(e,t,n,i,o,l)=>{const u=e.toString();if(u==="ArrayContaining"||u==="ArrayNotContaining")return++i>t.maxDepth?`[${u}]`:`${u+Su}[${vf(e.sample,t,n,i,o,l)}]`;if(u==="ObjectContaining"||u==="ObjectNotContaining")return++i>t.maxDepth?`[${u}]`:`${u+Su}{${Og(e.sample,t,n,i,o,l)}}`;if(u==="StringMatching"||u==="StringNotMatching"||u==="StringContaining"||u==="StringNotContaining")return u+Su+l(e.sample,t,n,i,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},bM=e=>e&&e.$$typeof===vM,wM={serialize:yM,test:bM},xM=" ",oS=new Set(["DOMStringMap","NamedNodeMap"]),SM=/^(?:HTML\w*Collection|NodeList)$/;function _M(e){return oS.has(e)||SM.test(e)}const kM=e=>e&&e.constructor&&!!e.constructor.name&&_M(e.constructor.name);function TM(e){return e.constructor.name==="NamedNodeMap"}const CM=(e,t,n,i,o,l)=>{const u=e.constructor.name;return++i>t.maxDepth?`[${u}]`:(t.min?"":u+xM)+(oS.has(u)?`{${Og(TM(e)?[...e].reduce((f,h)=>(f[h.name]=h.value,f),{}):{...e},t,n,i,o,l)}}`:`[${vf([...e],t,n,i,o,l)}]`)},EM={serialize:CM,test:kM};function sS(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Rg(e,t,n,i,o,l,u){const f=i+n.indent,h=n.colors;return e.map(p=>{const g=t[p];if(typeof g=="string"&&g[0]==="_"&&g.startsWith("__vitest_")&&g.match(/__vitest_\d+__/))return"";let v=u(g,n,f,o,l);return typeof g!="string"&&(v.includes(`
18
+ `)&&(v=n.spacingOuter+f+v+n.spacingOuter+i),v=`{${v}}`),`${n.spacingInner+i+h.prop.open+p+h.prop.close}=${h.value.open}${v}${h.value.close}`}).join("")}function ld(e,t,n,i,o,l){return e.map(u=>t.spacingOuter+n+(typeof u=="string"?lS(u,t):l(u,t,n,i,o))).join("")}function AM(e,t,n,i,o,l){return t.printShadowRoot===!1?"":[`${t.spacingOuter+n}#shadow-root`,ld(e,t,n+t.indent,i,o,l)].join("")}function lS(e,t){const n=t.colors.content;return n.open+sS(e)+n.close}function $M(e,t){const n=t.colors.comment;return`${n.open}<!--${sS(e)}-->${n.close}`}function Pg(e,t,n,i,o){const l=i.colors.tag;return`${l.open}<${e}${t&&l.close+t+i.spacingOuter+o+l.open}${n?`>${l.close}${n}${i.spacingOuter}${o}${l.open}</${e}`:`${t&&!i.min?"":" "}/`}>${l.close}`}function Ig(e,t){const n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}const NM=1,Dg=3,aS=8,cS=11,MM=/^(?:(?:HTML|SVG)\w*)?Element$/;function LM(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function OM(e){const t=e.constructor.name,{nodeType:n,tagName:i}=e,o=typeof i=="string"&&i.includes("-")||LM(e);return n===NM&&(MM.test(t)||o)||n===Dg&&t==="Text"||n===aS&&t==="Comment"||n===cS&&t==="DocumentFragment"}const uS=e=>e?.constructor?.name&&OM(e);function RM(e){return e.nodeType===Dg}function PM(e){return e.nodeType===aS}function _u(e){return e.nodeType===cS}function O0(e,t){let n=e.filter(i=>i.nodeType===Dg?(i.data||"").trim().length>0:!0);return t&&(n=n.filter(t)),n}function fS(e,t,n,i,o,l,u){if(RM(e))return lS(e.data,t);if(PM(e))return $M(e.data,t);const f=_u(e)?"DocumentFragment":e.tagName.toLowerCase();if(++i>t.maxDepth)return Ig(f,t);const h=Array.prototype.slice.call(e.childNodes||e.children),p=_u(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),g=u?O0(h,u):h,v=u?O0(p,u):p;return Pg(f,Rg(_u(e)?[]:Array.from(e.attributes,y=>y.name).sort(),_u(e)?{}:[...e.attributes].reduce((y,w)=>(y[w.name]=w.value,y),{}),t,n+t.indent,i,o,l),(v.length>0?AM(v,t,n+t.indent,i,o,l):"")+ld(g,t,n+t.indent,i,o,l),t,n)}const IM=(e,t,n,i,o,l)=>fS(e,t,n,i,o,l);function DM(e){return{test:uS,serialize:(t,n,i,o,l,u)=>fS(t,n,i,o,l,u,e)}}const FM={serialize:IM,test:uS},zM="@@__IMMUTABLE_ITERABLE__@@",HM="@@__IMMUTABLE_LIST__@@",BM="@@__IMMUTABLE_KEYED__@@",jM="@@__IMMUTABLE_MAP__@@",R0="@@__IMMUTABLE_ORDERED__@@",WM="@@__IMMUTABLE_RECORD__@@",qM="@@__IMMUTABLE_SEQ__@@",UM="@@__IMMUTABLE_SET__@@",VM="@@__IMMUTABLE_STACK__@@",Al=e=>`Immutable.${e}`,ad=e=>`[${e}]`,lc=" ",P0="…";function GM(e,t,n,i,o,l,u){return++i>t.maxDepth?ad(Al(u)):`${Al(u)+lc}{${sd(e.entries(),t,n,i,o,l)}}`}function KM(e){let t=0;return{next(){if(t<e._keys.length){const n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function YM(e,t,n,i,o,l){const u=Al(e._name||"Record");return++i>t.maxDepth?ad(u):`${u+lc}{${sd(KM(e),t,n,i,o,l)}}`}function XM(e,t,n,i,o,l){const u=Al("Seq");return++i>t.maxDepth?ad(u):e[BM]?`${u+lc}{${e._iter||e._object?sd(e.entries(),t,n,i,o,l):P0}}`:`${u+lc}[${e._iter||e._array||e._collection||e._iterable?Lg(e.values(),t,n,i,o,l):P0}]`}function Nh(e,t,n,i,o,l,u){return++i>t.maxDepth?ad(Al(u)):`${Al(u)+lc}[${Lg(e.values(),t,n,i,o,l)}]`}const JM=(e,t,n,i,o,l)=>e[jM]?GM(e,t,n,i,o,l,e[R0]?"OrderedMap":"Map"):e[HM]?Nh(e,t,n,i,o,l,"List"):e[UM]?Nh(e,t,n,i,o,l,e[R0]?"OrderedSet":"Set"):e[VM]?Nh(e,t,n,i,o,l,"Stack"):e[qM]?XM(e,t,n,i,o,l):YM(e,t,n,i,o,l),ZM=e=>e&&(e[zM]===!0||e[WM]===!0),QM={serialize:JM,test:ZM};function dS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh={exports:{}},Et={};/**
19
+ * @license React
20
+ * react-is.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var I0;function eL(){if(I0)return Et;I0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function $(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case e:switch(_=_.type,_){case n:case o:case i:case h:case p:case y:return _;default:switch(_=_&&_.$$typeof,_){case u:case f:case v:case g:return _;case l:return _;default:return C}}case t:return C}}}return Et.ContextConsumer=l,Et.ContextProvider=u,Et.Element=e,Et.ForwardRef=f,Et.Fragment=n,Et.Lazy=v,Et.Memo=g,Et.Portal=t,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.SuspenseList=p,Et.isContextConsumer=function(_){return $(_)===l},Et.isContextProvider=function(_){return $(_)===u},Et.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},Et.isForwardRef=function(_){return $(_)===f},Et.isFragment=function(_){return $(_)===n},Et.isLazy=function(_){return $(_)===v},Et.isMemo=function(_){return $(_)===g},Et.isPortal=function(_){return $(_)===t},Et.isProfiler=function(_){return $(_)===o},Et.isStrictMode=function(_){return $(_)===i},Et.isSuspense=function(_){return $(_)===h},Et.isSuspenseList=function(_){return $(_)===p},Et.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===o||_===i||_===h||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===g||_.$$typeof===u||_.$$typeof===l||_.$$typeof===f||_.$$typeof===w||_.getModuleId!==void 0)},Et.typeOf=$,Et}var D0;function tL(){return D0||(D0=1,Mh.exports=eL()),Mh.exports}var hS=tL(),nL=dS(hS),rL=iS({__proto__:null,default:nL},[hS]),Lh={exports:{}},St={};/**
27
+ * @license React
28
+ * react-is.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var F0;function iL(){if(F0)return St;F0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),$;$=Symbol.for("react.module.reference");function _(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case e:switch(C=C.type,C){case n:case o:case i:case p:case g:return C;default:switch(C=C&&C.$$typeof,C){case f:case u:case h:case y:case v:case l:return C;default:return E}}case t:return E}}}return St.ContextConsumer=u,St.ContextProvider=l,St.Element=e,St.ForwardRef=h,St.Fragment=n,St.Lazy=y,St.Memo=v,St.Portal=t,St.Profiler=o,St.StrictMode=i,St.Suspense=p,St.SuspenseList=g,St.isAsyncMode=function(){return!1},St.isConcurrentMode=function(){return!1},St.isContextConsumer=function(C){return _(C)===u},St.isContextProvider=function(C){return _(C)===l},St.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},St.isForwardRef=function(C){return _(C)===h},St.isFragment=function(C){return _(C)===n},St.isLazy=function(C){return _(C)===y},St.isMemo=function(C){return _(C)===v},St.isPortal=function(C){return _(C)===t},St.isProfiler=function(C){return _(C)===o},St.isStrictMode=function(C){return _(C)===i},St.isSuspense=function(C){return _(C)===p},St.isSuspenseList=function(C){return _(C)===g},St.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===i||C===p||C===g||C===w||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===l||C.$$typeof===u||C.$$typeof===h||C.$$typeof===$||C.getModuleId!==void 0)},St.typeOf=_,St}var z0;function oL(){return z0||(z0=1,Lh.exports=iL()),Lh.exports}var pS=oL(),sL=dS(pS),lL=iS({__proto__:null,default:sL},[pS]);const aL=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ls=Object.fromEntries(aL.map(e=>[e,t=>lL[e](t)||rL[e](t)]));function gS(e,t=[]){if(Array.isArray(e))for(const n of e)gS(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function H0(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ls.isFragment(e))return"React.Fragment";if(ls.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ls.isContextProvider(e))return"Context.Provider";if(ls.isContextConsumer(e))return"Context.Consumer";if(ls.isForwardRef(e)){if(t.displayName)return t.displayName;const n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(ls.isMemo(e)){const n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function cL(e){const{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}const uL=(e,t,n,i,o,l)=>++i>t.maxDepth?Ig(H0(e),t):Pg(H0(e),Rg(cL(e),e.props,t,n+t.indent,i,o,l),ld(gS(e.props.children),t,n+t.indent,i,o,l),t,n),fL=e=>e!=null&&ls.isElement(e),dL={serialize:uL,test:fL},hL=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function pL(e){const{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}const gL=(e,t,n,i,o,l)=>++i>t.maxDepth?Ig(e.type,t):Pg(e.type,e.props?Rg(pL(e),e.props,t,n+t.indent,i,o,l):"",e.children?ld(e.children,t,n+t.indent,i,o,l):"",t,n),mL=e=>e&&e.$$typeof===hL,vL={serialize:gL,test:mL},mS=Object.prototype.toString,yL=Date.prototype.toISOString,bL=Error.prototype.toString,B0=RegExp.prototype.toString;function Oh(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function wL(e){return typeof window<"u"&&e===window}const xL=/^Symbol\((.*)\)(.*)$/,SL=/\n/g;class vS extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}}function _L(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function kL(e){return Object.is(e,-0)?"-0":String(e)}function TL(e){return`${e}n`}function j0(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function W0(e){return String(e).replace(xL,"Symbol($1)")}function q0(e){return`[${bL.call(e)}]`}function yS(e,t,n,i){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const o=typeof e;if(o==="number")return kL(e);if(o==="bigint")return TL(e);if(o==="string")return i?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return j0(e,t);if(o==="symbol")return W0(e);const l=mS.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?j0(e,t):l==="[object Symbol]"?W0(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":yL.call(e):l==="[object Error]"?q0(e):l==="[object RegExp]"?n?B0.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):B0.call(e):e instanceof Error?q0(e):null}function bS(e,t,n,i,o,l){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const u=++i>t.maxDepth,f=t.min;if(t.callToJSON&&!u&&e.toJSON&&typeof e.toJSON=="function"&&!l)return xo(e.toJSON(),t,n,i,o,!0);const h=mS.call(e);return h==="[object Arguments]"?u?"[Arguments]":`${f?"":"Arguments "}[${vf(e,t,n,i,o,xo)}]`:_L(h)?u?`[${e.constructor.name}]`:`${f||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${vf(e,t,n,i,o,xo)}]`:h==="[object Map]"?u?"[Map]":`Map {${sd(e.entries(),t,n,i,o,xo," => ")}}`:h==="[object Set]"?u?"[Set]":`Set {${Lg(e.values(),t,n,i,o,xo)}}`:u||wL(e)?`[${Oh(e)}]`:`${f||!t.printBasicPrototype&&Oh(e)==="Object"?"":`${Oh(e)} `}{${Og(e,t,n,i,o,xo)}}`}function CL(e){return e.serialize!=null}function wS(e,t,n,i,o,l){let u;try{u=CL(e)?e.serialize(t,n,i,o,l,xo):e.print(t,f=>xo(f,n,i,o,l),f=>{const h=i+n.indent;return h+f.replaceAll(SL,`
35
+ ${h}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(f){throw new vS(f.message,f.stack)}if(typeof u!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof u}".`);return u}function xS(e,t){for(const n of e)try{if(n.test(t))return n}catch(i){throw new vS(i.message,i.stack)}return null}function xo(e,t,n,i,o,l){let u;const f=xS(t.plugins,e);if(f!==null)u=wS(f,e,t,n,i,o);else{const h=yS(e,t.printFunctionName,t.escapeRegex,t.escapeString);h!==null?u=h:u=bS(e,t,n,i,o,l)}return t.outputLength+=u.length,t.outputLength>t.maxOutputLength&&(t.maxDepth=0),u}const Fg={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},SS=Object.keys(Fg),Sr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxOutputLength:1e6,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:Fg};function EL(e){for(const t of Object.keys(e))if(!Object.hasOwn(Sr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function AL(){return SS.reduce((e,t)=>{const n=Fg[t],i=n&&gM[n];if(i&&typeof i.close=="string"&&typeof i.open=="string")e[t]=i;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function $L(){return SS.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function _S(e){return e?.printFunctionName??Sr.printFunctionName}function kS(e){return e?.escapeRegex??Sr.escapeRegex}function TS(e){return e?.escapeString??Sr.escapeString}function U0(e){return{callToJSON:e?.callToJSON??Sr.callToJSON,colors:e?.highlight?AL():$L(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Sr.compareKeys,escapeRegex:kS(e),escapeString:TS(e),indent:e?.min?"":NL(e?.indent??Sr.indent),maxDepth:e?.maxDepth??Sr.maxDepth,maxWidth:e?.maxWidth??Sr.maxWidth,min:e?.min??Sr.min,plugins:e?.plugins??Sr.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:_S(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?" ":`
36
+ `,spacingOuter:e?.min?"":`
37
+ `,maxOutputLength:e?.maxOutputLength??Sr.maxOutputLength,outputLength:0}}function NL(e){return Array.from({length:e+1}).join(" ")}function V0(e,t){if(t&&(EL(t),t.plugins)){const i=xS(t.plugins,e);if(i!==null)return wS(i,e,U0(t),"",0,[])}const n=yS(e,_S(t),kS(t),TS(t));return n!==null?n:bS(e,U0(t),"",0,[])}const ML={AsymmetricMatcher:wM,DOMCollection:EM,DOMElement:FM,Immutable:QM,ReactElement:dL,ReactTestComponent:vL},G0={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},LL={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},$l="…";function OL(e,t){const n=G0[LL[t]]||G0[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function RL({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:o=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:f=[],truncate:h=1/0,stylize:p=String}={},g){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!i,showProxy:!!o,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=OL),v}function PL(e){return e>="\uD800"&&e<="\uDBFF"}function zo(e,t,n=$l){e=String(e);const i=n.length,o=e.length;if(i>t&&o>i)return n;if(o>t&&o>i){let l=t-i;return l>0&&PL(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Gr(e,t,n,i=", "){n=n||t.inspect;const o=e.length;if(o===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<o;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${$l}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),$=u.length+w.length,_=$+h.length;if(g&&$>l&&u.length+h.length<=l||!g&&!v&&_>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&_>l&&$+f.length>l))break;if(u+=w,!g&&!v&&$+f.length>=l){h=`${$l}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function IL(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ac([e,t],n){return n.truncate-=2,typeof e=="string"?e=IL(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function DL(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Gr(e,t);t.truncate-=i.length;let o="";return n.length&&(o=Gr(n.map(l=>[l,e[l]]),t,ac)),`[ ${i}${o?`, ${o}`:""} ]`}const FL=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Ei(e,t){const n=FL(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let o="";for(let u=0;u<e.length;u++){const f=`${t.stylize(zo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){o+=`${$l}(${e.length-e[u]+1})`;break}o+=f}let l="";return i.length&&(l=Gr(i.map(u=>[u,e[u]]),t,ac)),`${n}[ ${o}${l?`, ${l}`:""} ]`}function zL(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),o=i[0];return t.stylize(`${o}T${zo(i[1],t.truncate-o.length-1)}`,"date")}function K0(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${zo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function HL([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function BL(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function jL(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Gr(BL(e),t,HL)} }`)}const WL=Number.isNaN||(e=>e!==e);function Y0(e,t){return WL(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(zo(String(e),t.truncate),"number")}function X0(e,t){let n=zo(e.toString(),t.truncate-1);return n!==$l&&(n+="n"),t.stylize(n,"bigint")}function qL(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${zo(o,i)}/${n}`,"regexp")}function UL(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function VL(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Gr(UL(e),t)} }`)}const J0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),GL={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},KL=16;function YL(e){return GL[e]||`\\u${`0000${e.charCodeAt(0).toString(KL)}`.slice(-4)}`}function Z0(e,t){return J0.test(e)&&(e=e.replace(J0,YL)),t.stylize(`'${zo(e,t.truncate-2)}'`,"string")}function Q0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}const XL=()=>"Promise{…}";function Hu(e,t){const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&i.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=Gr(n.map(f=>[f,e[f]]),t,ac),l=Gr(i.map(f=>[f,e[f]]),t,ac);t.seen.pop();let u="";return o&&l&&(u=", "),`{ ${o}${u}${l} }`}const Rh=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function JL(e,t){let n="";return Rh&&Rh in e&&(n=e[Rh]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Hu(e,t)}`}function ZL(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Gr(e,t)} ]`)}const QL=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function eO(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>QL.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let o="";if(typeof e.message=="string"?o=zo(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Gr(n.map(u=>[u,e[u]]),t,ac);return`${i}${o}${l?` { ${l} }`:""}`}function tO([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Sp(e,t){return Gr(e,t,nO,`
38
+ `)}function nO(e,t){switch(e.nodeType){case 1:return CS(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function CS(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),o=t.stylize(`<${i}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${i}>`,"special");t.truncate-=i.length*2+5;let f="";n.length>0&&(f+=" ",f+=Gr(n.map(g=>[g,e.getAttribute(g)]),t,tO," ")),t.truncate-=f.length;const h=t.truncate;let p=Sp(e.children,t);return p&&p.length>h&&(p=`${$l}(${e.children.length})`),`${o}${f}${l}${p}${u}`}const rO=typeof Symbol=="function"&&typeof Symbol.for=="function",Ph=rO?Symbol.for("chai/inspect"):"@@chai/inspect",Ih=Symbol.for("nodejs.util.inspect.custom"),eb=new WeakMap,tb={},nb={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Y0,Number:Y0,bigint:X0,BigInt:X0,string:Z0,String:Z0,function:K0,Function:K0,symbol:Q0,Symbol:Q0,Array:DL,Date:zL,Map:jL,Set:VL,RegExp:qL,Promise:XL,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:ZL,Int8Array:Ei,Uint8Array:Ei,Uint8ClampedArray:Ei,Int16Array:Ei,Uint16Array:Ei,Int32Array:Ei,Uint32Array:Ei,Float32Array:Ei,Float64Array:Ei,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:eO,HTMLCollection:Sp,NodeList:Sp},iO=(e,t,n,i)=>Ph in e&&typeof e[Ph]=="function"?e[Ph](t):Ih in e&&typeof e[Ih]=="function"?e[Ih](t.depth,t,i):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&eb.has(e.constructor)?eb.get(e.constructor)(e,t):tb[n]?tb[n](e,t):"",oO=Object.prototype.toString;function Bu(e,t={}){const n=RL(t,Bu),{customInspect:i}=n;let o=e===null?"null":typeof e;if(o==="object"&&(o=oO.call(e).slice(8,-1)),o in nb)return nb[o](e,n);if(i&&e){const u=iO(e,n,o,Bu);if(u)return typeof u=="string"?u:Bu(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Hu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?CS(e,n):"constructor"in e?e.constructor!==Object?JL(e,n):Hu(e,n):e===Object(e)?Hu(e,n):n.stylize(String(e),o)}const{AsymmetricMatcher:ES,DOMCollection:AS,DOMElement:sO,Immutable:$S,ReactElement:NS,ReactTestComponent:MS}=ML,lO=[MS,NS,sO,AS,$S,ES];function LS(e,t=10,{maxLength:n,filterNode:i,...o}={}){const l=n??1e4;let u;const f=typeof i=="string"?aO(i):i,h=f?[MS,NS,DM(f),AS,$S,ES]:lO;try{u=V0(e,{maxDepth:t,escapeString:!1,plugins:h,...o})}catch{u=V0(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:h,...o})}return u.length>=l&&t>1?LS(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:i,...o}):u}function aO(e){return i=>{if(i.nodeType===8)return!1;if(i.nodeType===1&&i.matches)try{return!i.matches(e)}catch{return!0}return!0}}const OS=/%[sdjifoOc%]/g;function cO(e,t={}){const n=(f,h)=>t.prettifyObject?LS(f,void 0,{printBasicPrototype:!1,escapeString:!1}):RS(f,h);if(typeof e[0]!="string"){const f=[];for(let h=0;h<e.length;h++)f.push(n(e[h],{depth:0,colors:!1}));return f.join(" ")}const i=e.length;let o=1;const l=e[0];let u=String(l).replace(OS,f=>{if(f==="%%")return"%";if(o>=i)return f;switch(f){case"%s":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="number"&&h===0&&1/h<0?"-0":typeof h=="object"&&h!==null?typeof h.toString=="function"&&h.toString!==Object.prototype.toString?h.toString():n(h,{depth:0,colors:!1}):String(h)}case"%d":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="symbol"?"NaN":Number(h).toString()}case"%i":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:Number.parseInt(String(h)).toString()}case"%f":return Number.parseFloat(String(e[o++])).toString();case"%o":return n(e[o++],{showHidden:!0,showProxy:!0});case"%O":return n(e[o++]);case"%c":return o++,"";case"%j":try{return JSON.stringify(e[o++])}catch(h){const p=h.message;if(p.includes("circular structure")||p.includes("cyclic structures")||p.includes("cyclic object"))return"[Circular]";throw h}default:return f}});for(let f=e[o];o<i;f=e[++o])f===null||typeof f!="object"?u+=` ${typeof f=="symbol"?f.toString():f}`:u+=` ${n(f)}`;return u}function uO(...e){return cO(e)}function RS(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Bu(e,t)}function fO(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=RS(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const o=Object.keys(e);return`{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}function PS(e){return e!=null}function Hl(e,t,n){const i=typeof e;if(!n.includes(i))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${i}"`)}function dO(e){const t=[];let n="none";for(let i=0;i<e.length;++i)n==="singleline"?e[i]===`
39
+ `&&(n="none"):n==="multiline"?e[i-1]==="*"&&e[i]==="/"&&(n="none"):n==="none"&&(e[i]==="/"&&e[i+1]==="/"?n="singleline":e[i]==="/"&&e[i+1]==="*"?(n="multiline",i+=2):t.push(e[i]));return t.join("")}function bs(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function IS(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function rb(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let o=e;for(const l of i)if(o=new Object(o)[l],o===void 0)return n;return o}function ib(){let e=null,t=null;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function hO(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function ob(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function sb(e){return Array.from(new Set(e))}const lb=Symbol("vitest:SAFE_TIMERS");function DS(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}=globalThis[lb]||globalThis,{nextTick:f}=globalThis[lb]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}}const pO=/^[A-Za-z]:\//;function gO(e=""){return e&&e.replace(/\\/g,"/").replace(pO,t=>t.toUpperCase())}const mO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function vO(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const FS=function(...e){e=e.map(i=>gO(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:vO();!o||o.length===0||(t=`${o}/${t}`,n=ab(o))}return t=yO(t,!n),n&&!ab(t)?`/${t}`:t.length>0?t:"."};function yO(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const ab=function(e){return mO.test(e)};var bO=44,cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wO=new Uint8Array(64),zS=new Uint8Array(128);for(let e=0;e<cb.length;e++){const t=cb.charCodeAt(e);wO[e]=t,zS[t]=e}function _a(e,t){let n=0,i=0,o=0;do{const u=e.next();o=zS[u],n|=(o&31)<<i,i+=5}while(o&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function ub(e,t){return e.pos>=t?!1:e.peek()!==bO}var xO=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,i=t.indexOf(e,n);return i===-1?t.length:i}};function SO(e){const{length:t}=e,n=new xO(e),i=[];let o=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(o=0;n.pos<p;){let w;o=_a(n,o),o<y&&(v=!1),y=o,ub(n,p)?(l=_a(n,l),u=_a(n,u),f=_a(n,f),ub(n,p)?(h=_a(n,h),w=[o,l,u,f,h]):w=[o,l,u,f]):w=[o],g.push(w),n.pos++}v||_O(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function _O(e){e.sort(kO)}function kO(e,t){return e[0]-t[0]}var cd=0,TO=1,CO=2,EO=3,AO=4,yf=!1;function $O(e,t,n,i){for(;n<=i;){const o=n+(i-n>>1),l=e[o][cd]-t;if(l===0)return yf=!0,o;l<0?n=o+1:i=o-1}return yf=!1,n-1}function NO(e,t,n){for(let i=n+1;i<e.length&&e[i][cd]===t;n=i++);return n}function MO(e,t,n){for(let i=n-1;i>=0&&e[i][cd]===t;n=i--);return n}function LO(e,t,n,i){const{lastKey:o,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===o){if(t===l)return yf=u!==-1&&e[u][cd]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=$O(e,t,f,h)}var OO="`line` must be greater than 0 (lines start at line 1)",RO="`column` must be greater than or equal to 0 (columns start at column 0)",fb=-1,PO=1;function IO(e){var t;return(t=e)._decoded||(t._decoded=SO(e._encoded))}function DO(e,t){let{line:n,column:i,bias:o}=t;if(n--,n<0)throw new Error(OO);if(i<0)throw new Error(RO);const l=IO(e);if(n>=l.length)return ku(null,null,null,null);const u=l[n],f=FO(u,e._decodedMemo,n,i,o||PO);if(f===-1)return ku(null,null,null,null);const h=u[f];if(h.length===1)return ku(null,null,null,null);const{names:p,resolvedSources:g}=e;return ku(g[h[TO]],h[CO]+1,h[EO],h.length===5?p[h[AO]]:null)}function ku(e,t,n,i){return{source:e,line:t,column:n,name:i}}function FO(e,t,n,i,o){let l=LO(e,i,t,n);return yf?l=(o===fb?NO:MO)(e,i,l):o===fb&&l++,l===-1||l===e.length?-1:l}const zg=/^\s*at .*(?:\S:\d+|\(native\))/m,zO=/^(?:eval@)?(?:\[native code\])?$/,HO=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],BO=Date.now().toString().length,jO=new RegExp(`vitest=\\d{${BO}}`);function HS(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const o=new URL(i);o.searchParams.delete("import"),o.searchParams.delete("browserv"),i=o.pathname+o.hash+o.search}if(i.startsWith("/@fs/")){const o=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(o?5:4)}return i.includes("vitest=")&&(i=i.replace(jO,"").replace(/[?&]$/,"")),[i,n[2]||void 0,n[3]||void 0]}function BS(e){let t=e.trim();if(zO.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,i="",o;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){n=h,i=p,o=h>0?t.slice(0,h):void 0;break}}if(n===-1||!i.includes(":")||i.length<3)return null;const[l,u,f]=HS(i);return!l||!u||!f?null:{file:l,method:o||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function WO(e){const t=e.trim();return zg.test(t)?jS(t):BS(t)}function jS(e){let t=e.trim();if(!zg.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[o,l,u]=HS(i?i[1]:n);let f=i&&n||"",h=o&&["eval","<anonymous>"].includes(o)?void 0:o;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:FS(h),f&&(f=f.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function qO(e,t={}){const{ignoreStackEntries:n=HO}=t;let i=zg.test(e)?VO(e):UO(e);const o=i.findLastIndex(l=>l.method==="__VITEST_HELPER__"||l.method==="async*__VITEST_HELPER__");return o>=0&&(i=i.slice(o+1)),i.map(l=>{t.getUrlId&&(l.file=t.getUrlId(l.file));const u=t.getSourceMap?.(l.file);if(!u||typeof u!="object"||!u.version)return db(n,l.file)?null:l;const f=new GO(u,l.file),h=YO(f,l);if(!h)return l;const{line:p,column:g,source:v,name:y}=h;let w=v||l.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),db(n,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:y||l.method}:l}).filter(l=>l!=null)}function db(e,t){return e.some(n=>t.match(n))}function UO(e){return e.split(`
40
+ `).map(t=>BS(t)).filter(PS)}function VO(e){return e.split(`
41
+ `).map(t=>jS(t)).filter(PS)}class GO{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;const{mappings:i,names:o,sources:l}=t;this.version=t.version,this.names=o||[],this._encoded=i||"",this._decodedMemo=KO(),this.url=n,this.resolvedSources=(l||[]).map(u=>FS(n,"..",u||""))}}function KO(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function YO(e,t){const n=DO(e,t);return n.column==null?null:n}const XO=/^[A-Za-z]:\//;function Hg(e=""){return e&&e.replace(/\\/g,"/").replace(XO,t=>t.toUpperCase())}const JO=/^[/\\]{2}/,ZO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,QO=/^[A-Za-z]:$/,hb=/^\/([A-Za-z]:)?$/,eR=function(e){if(e.length===0)return".";e=Hg(e);const t=e.match(JO),n=bf(e),i=e[e.length-1]==="/";return e=WS(e,!n),e.length===0?n?"/":i?"./":".":(i&&(e+="/"),QO.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!bf(e)?`/${e}`:e)},tR=function(...e){let t="";for(const n of e)if(n)if(t.length>0){const i=t[t.length-1]==="/",o=n[0]==="/";i&&o?t+=n.slice(1):t+=i||o?n:`/${n}`}else t+=n;return eR(t)};function nR(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const pb=function(...e){e=e.map(i=>Hg(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:nR();!o||o.length===0||(t=`${o}/${t}`,n=bf(o))}return t=WS(t,!n),n&&!bf(t)?`/${t}`:t.length>0?t:"."};function WS(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const bf=function(e){return ZO.test(e)},ud=function(e,t){const n=pb(e).replace(hb,"$1").split("/"),i=pb(t).replace(hb,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const o=[...n];for(const l of o){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")},rR=function(e,t){const n=Hg(e).split("/");let i="";for(let o=n.length-1;o>=0;o--){const l=n[o];if(l){i=l;break}}return t&&i.endsWith(t)?i.slice(0,-t.length):i};class iR extends Error{code="VITEST_PENDING";taskId;constructor(t,n,i){super(t),this.message=t,this.note=i,this.taskId=n.id}}class mo extends Error{name="FixtureDependencyError"}class oR extends Error{name="FixtureAccessError"}class gb extends Error{name="FixtureParseError"}const sR=new WeakMap,qS=new WeakMap,US=new WeakMap;function lR(e,t){sR.set(e,t)}function aR(e,t){qS.set(e,t)}function cR(e){return qS.get(e)}function uR(e,t){US.set(e,t)}function fR(e){return US.get(e)}const ju=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class un{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){un._definitions.length=0}static getWorkerContexts(){return un._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return un._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return IS(t)&&Object.keys(t).some(n=>un._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,un._definitions.push(this)}extend(t,n){const{suite:i}=pi(),o=!i||i.file===i,l=this.parseUserFixtures(t,n,o);return new un(l)}get(t){let n=t;for(;n;){const i=this._overrides.get(n);if(i)return i;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:i,file:o}=pi(),l=i||o,u=!i||i.file===i,f=new Map(this.get(l)),h=this.parseUserFixtures(t,n,u,f);u?this._registrations=h:this._overrides.set(l,h)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(un._workerContextSuite)||this._suiteContexts.set(un._workerContextSuite,Object.create(null)),this._suiteContexts.get(un._workerContextSuite)}parseUserFixtures(t,n,i,o=new Map(this._registrations)){const l=[];Object.entries(n).forEach(([u,f])=>{let h,p,g;Array.isArray(f)&&f.length>=2&&un.isFixtureOptions(f[1])?(g=f[1],h={auto:g.auto??!1,scope:g.scope??"test",injected:g.injected??!1},p=h.injected?t.injectValue?.(u)??f[0]:f[0]):p=f;const v=o.get(u);v&&h?(v.scope!==h.scope&&l.push(new mo(`The "${u}" fixture was already registered with a "${h.scope}" scope.`)),v.auto!==h.auto&&l.push(new mo(`The "${u}" fixture was already registered as { auto: ${h.auto} }.`))):v?h={auto:v.auto,scope:v.scope,injected:v.injected}:h||(h={auto:!1,injected:!1,scope:"test"}),h.scope&&!un._fixtureScopes.includes(h.scope)&&l.push(new mo(`The "${u}" fixture has unknown scope "${h.scope}".`)),!i&&h.scope!=="test"&&l.push(new mo(`The "${u}" fixture cannot be defined with a ${h.scope} scope${!g?.scope&&v?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const y=cc(p)?Bg(p):new Set,w={name:u,value:p,auto:h.auto??!1,injected:h.injected??!1,scope:h.scope??"test",deps:y,parent:v};cc(p)&&Object.assign(p,{[ju]:new Error("STACK_TRACE_ERROR")}),o.set(u,w),w.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(w.scope="file")});for(const u of o.values())for(const f of u.deps){if(un._builtinFixtures.includes(f))continue;const h=o.get(f);if(!h){l.push(new mo(`The "${u.name}" fixture depends on unknown fixture "${f}".`));continue}if(f===u.name&&!u.parent){l.push(new mo(`The "${u.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(un._fixtureScopes.indexOf(u.scope)>un._fixtureScopes.indexOf(h.scope)){l.push(new mo(`The ${u.scope} "${u.name}" fixture cannot depend on a ${h.scope} fixture "${h.name}".`));continue}}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Cannot resolve user fixtures. See errors for more information.");return o}}const pl=new WeakMap,Dh=new WeakMap;function Ec(e,t){const n=pi(),i=t?.suite||n.suite||n.file;return async o=>{const l=o||t?.context;if(!l)return t?.suiteHook&&pR(e,t.suiteHook,t.stackTraceError),e({});const u=t?.fixtures||cR(l);if(!u)return e(l);const f=u.get(i);if(!f.size)return e(l);const h=[],p=Bg(e);for(const w of f.values())(w.auto||p.has(w.name))&&h.push(w);if(!h.length)return e(l);pl.has(l)||pl.set(l,[]);const g=pl.get(l),v=GS(h,f);if(!v.length)return e(l);if(t?.suiteHook){const w=v.filter($=>$.scope==="test");if(w.length>0){const $=w.map(E=>`"${E.name}"`).join(", "),_={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},C=new mo(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${$}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${_[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(C.stack=C.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),C}}Dh.has(l)||Dh.set(l,new WeakSet);const y=Dh.get(l);for(const w of v)if(w.scope==="test"){if(y.has(w))continue;y.add(w);const $=await dR(w,l,g);l[w.name]=$,g.push(()=>{y.delete(w)})}else{const $=await hR(u,i,w);l[w.name]=$}return e(l)}}function cc(e){return typeof e=="function"}function dR(e,t,n){return cc(e.value)?VS(e.value,e.name,t,n):e.value}const Tu=new WeakMap;async function hR(e,t,n){const i=e.getWorkerContext(),o=e.getFileContext(t.file),l=n.scope==="worker"?i:o;if(!cc(n.value))return l[n.name]=n.value,n.value;if(n.name in l)return l[n.name];if(Tu.has(n))return Tu.get(n);pl.has(l)||pl.set(l,[]);const u=pl.get(l),f=VS(n.value,n.name,n.scope==="file"?{...i,...o}:l,u).then(h=>(l[n.name]=h,Tu.delete(n),h));return Tu.set(n,f),f}async function VS(e,t,n,i){const o=ib(),l=ju in e&&e[ju]instanceof Error?e[ju]:void 0;let u=!1;const f=e(n,async h=>{u=!0,o.resolve(h);const p=ib();i.push(async()=>{p.resolve(),await f}),await p}).then(()=>{if(!u){const h=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);l?.stack&&(h.stack=h.message+l.stack.replace(l.message,"")),o.reject(h)}}).catch(h=>{if(!u){o.reject(h);return}throw h});return o}function GS(e,t,n=new Set,i=[]){return e.forEach(o=>{if(!i.includes(o)){if(!cc(o.value)||!o.deps){i.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(l=>l.name).join(" <- ")}`);n.add(o),GS([...o.deps].map(l=>l===o.name?o.parent:t.get(l)).filter(l=>!!l),t,n,i),i.push(o),n.clear()}}),i}function pR(e,t,n){const i=Bg(e,{sourceError:n,suiteHook:t});if(i.size){const o=new oR(`The ${t} hook uses fixtures "${[...i].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
42
+ If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}const _p=Symbol("$vitest:fixture-props"),kp=Symbol("$vitest:fixture-prop-names");function wf(e,t){Object.defineProperty(e,_p,{value:t,enumerable:!1})}function Cu(e,t){return e[kp]=t,t}function Bg(e,{sourceError:t,suiteHook:n}={}){if(kp in e)return e[kp];const{index:i=0,original:o=e}=_p in e?e[_p]:{};let l=dO(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(l)&&(l=l.split(/__async\((?:this|null),/)[1]);const u=l.match(/[^(]*\(([^)]*)/);if(!u)return Cu(e,new Set);const f=mb(u[1]);if(!f.length)return Cu(e,new Set);const h=f[i];if(!h)return Cu(e,new Set);if(!(h[0]==="{"&&h.endsWith("}"))){const y=ob(i+1),w=new gb(`The ${y} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${h}".${n?` If you used internal "suite" task as the ${y} argument previously, access it in the ${ob(i+2)} argument instead.`:""}`);throw t&&(w.stack=t.stack?.replace(t.message,w.message)),w}const p=h.slice(1,-1).replace(/\s/g,""),g=mb(p).map(y=>y.replace(/:.*|=.*/g,"")),v=g.at(-1);if(v&&v.startsWith("...")){const y=new gb(`Rest parameters are not supported in fixtures, received "${v}".`);throw t&&(y.stack=t.stack?.replace(t.message,y.message)),y}return Cu(e,new Set(g))}function mb(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n.at(-1))n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const o=e.substring(i).trim();return o&&t.push(o),t}const KS=Symbol("kChainableContext");function Ii(e){return e?.[KS]}function YS(e,t,n){function i(l){const u=function(...f){return t.apply(l,f)};Object.assign(u,t),Object.defineProperty(u,KS,{value:{withContext:()=>u.bind(l),getFixtures:()=>l.fixtures,setContext:(f,h)=>{l[f]=h},mergeContext:f=>{Object.assign(l,f)}},enumerable:!1});for(const f of e)Object.defineProperty(u,f,{get(){return i({...l,[f]:!0})}});return u}const o=i(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function ws(){return qg().config.hookTimeout}const XS=Symbol.for("VITEST_CLEANUP_TIMEOUT"),JS=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),ZS=Symbol.for("VITEST_AROUND_TIMEOUT"),QS=Symbol.for("VITEST_AROUND_STACK_TRACE");function gR(e,t=ws()){Hl(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=Ii(this);return pi().on("beforeAll",Object.assign(xs(jg("beforeAll",e,i,n),t,!0,n),{[XS]:t,[JS]:n}))}function mR(e,t){Hl(e,'"afterAll" callback',["function"]);const n=Ii(this),i=new Error("STACK_TRACE_ERROR");return pi().on("afterAll",xs(jg("afterAll",e,n,i),t??ws(),!0,i))}function vR(e,t=ws()){Hl(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=(o,l)=>Ec(e,{suite:l})(o);return pi().on("beforeEach",Object.assign(xs(i,t??ws(),!0,n,Vg),{[XS]:t,[JS]:n}))}function yR(e,t){Hl(e,'"afterEach" callback',["function"]);const n=(i,o)=>Ec(e,{suite:o})(i);return pi().on("afterEach",xs(n,t??ws(),!0,new Error("STACK_TRACE_ERROR"),Vg))}function bR(e,t){Hl(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=Ii(this);return pi().on("aroundAll",Object.assign(jg("aroundAll",e,o,n,1),{[ZS]:i,[QS]:n}))}function wR(e,t){Hl(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=(l,u,f)=>{const h=g=>e(l,g,f);return wf(h,{index:1,original:e}),Ec(h,{suite:f})(u)};return pi().on("aroundEach",Object.assign(o,{[ZS]:i,[QS]:n}))}function jg(e,t,n,i,o=0){return(...l)=>{const u=l.at(-1),f=l.slice(0,-1),h=y=>t(...f,y,u);wf(h,{index:o,original:t});const p=n?.getFixtures(),g=p?.getFileContext(u.file);return Ec(h,{suiteHook:e,fixtures:p,context:g,stackTraceError:i})()}}function xR(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function e_(e,t,n,i,o){const l=ud(t,e),u={id:SR(l,n),name:l,fullName:l,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i,viteEnvironment:o};return u.file=u,u}function SR(e,t){return xR(`${e}${t||""}`)}function t_(e,t){const n=t.split(`
43
+ `).slice(1);for(const i of n){const o=WO(i);if(o&&o.file===e)return o}}function _R(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(i=>i.name));for(const i of t)if(!n.has(i))throw xf(e.tags,i)}function xf(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
44
+ ${e.map(i=>`- ${i.name}${i.description?`: ${i.description}`:""}`).join(`
45
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function kR(e,t){const n=e.map(i=>TR(i,t));return i=>n.every(o=>o(i))}function TR(e,t){const n=CR(e),i=new ER(n,e),o=r_(i,t);if(i.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${Tp(i.peek())}" in "${e}"`);return l=>nl(o,l)}function Tp(e){switch(e.type){case"TAG":return e.value;default:return n_(e.type)}}function CR(e){const t=[];let n=0;for(;n<e.length;){if(e[n]===" "||e[n]===" "){n++;continue}if(e[n]==="("){t.push({type:"LPAREN"}),n++;continue}if(e[n]===")"){t.push({type:"RPAREN"}),n++;continue}if(e[n]==="!"){t.push({type:"NOT"}),n++;continue}if(e.slice(n,n+2)==="&&"){t.push({type:"AND"}),n+=2;continue}if(e.slice(n,n+2)==="||"){t.push({type:"OR"}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"AND"}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"OR"}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:"NOT"}),n+=3;continue}let i="";for(;n<e.length&&e[n]!==" "&&e[n]!==" "&&e[n]!=="("&&e[n]!==")"&&e[n]!=="!"&&e[n]!=="&"&&e[n]!=="|";){const o=e.slice(n);if(i===""&&(/^and(?:\s|\)|$)/i.test(o)||/^or(?:\s|\)|$)/i.test(o)||/^not\s/i.test(o)))break;i+=e[n],n++}i&&t.push({type:"TAG",value:i})}return t.push({type:"EOF"}),t}class ER{pos=0;constructor(t,n){this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const n=this.next();if(n.type!==t)throw t==="RPAREN"&&n.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${n_(t)}" but got "${Tp(n)}" in "${this.expr}"`);return n}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${Tp(t)}" in "${this.expr}"`)}}function n_(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function r_(e,t){let n=vb(e,t);for(;e.peek().type==="OR";){e.next();const i=vb(e,t);n={type:"or",left:n,right:i}}return n}function vb(e,t){let n=Cp(e,t);for(;e.peek().type==="AND";){e.next();const i=Cp(e,t);n={type:"and",left:n,right:i}}return n}function Cp(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:Cp(e,t)}):AR(e,t)}function AR(e,t){const n=e.peek();if(n.type==="LPAREN"){e.next();const i=r_(e,t);return e.expect("RPAREN"),i}if(n.type==="TAG"){e.next();const i=n.value,o=NR(i,t);return{type:"tag",value:i,pattern:o}}e.unexpectedToken()}function $R(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function NR(e,t){if(e.includes("*")){const n=$R(e);if(!t.some(o=>n.test(o.name)))throw xf(t,e,"tag pattern");return n}if(!t.length||!t.some(n=>n.name===e))throw xf(t,e,"tag pattern");return null}function nl(e,t){switch(e.type){case"tag":return e.pattern?t.some(n=>e.pattern.test(n)):t.includes(e.value);case"not":return!nl(e.operand,t);case"and":return nl(e.left,t)&&nl(e.right,t);case"or":return nl(e.left,t)||nl(e.right,t)}}function Nl(e){return e.type==="test"}function i_(e){const t=[],n=bs(e);for(const i of n)if(Nl(i))t.push(i);else for(const o of i.tasks)if(Nl(o))t.push(o);else{const l=i_(o);for(const u of l)t.push(u)}return t}function Wg(e=[]){return bs(e).flatMap(t=>Nl(t)?[t]:[t,...Wg(t.tasks)])}function MR(e){const t=[e.name];let n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Eu(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}const cs=IR();Ug(function(e,t,n){pi().test.fn.call(this,Mo(e),t,n)});let Hn,o_,LR;function s_(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
46
+ - "vitest" is imported directly without running "vitest" command
47
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
48
+ - "vitest" is imported inside Vite / Vitest config file
49
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
50
+ `)}function qg(){return s_(Hn,"the runner"),Hn}function pi(){const e=Jn.currentSuite||o_;return s_(e,"the current suite"),e}function OR(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const yb=Number.POSITIVE_INFINITY;function gl(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},i;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function RR(e,t=()=>{},n,i,o){const l=[];let u;v();const f=function($="",_={}){const C=Jn.currentSuite?.suite,L=(C??Jn.currentSuite?.file)?.tags||[],D=sb([...L,...bs(_.tags)]),N=D.map(S=>{const R=Hn.config.tags?.find(B=>B.name===S);if(!R&&Hn.config.strictTags)throw xf(Hn.config.tags,S);return R}).filter(S=>S!=null).sort((S,R)=>(R.priority??yb)-(S.priority??yb)).reduce((S,R)=>{const{name:B,description:ae,priority:ve,meta:_e,...Be}=R;return Object.assign(S,Be),_e&&(S.meta=Object.assign(S.meta??Object.create(null),_e)),S},{}),I=_.meta;_={...N,..._};const q=_.timeout??Hn.config.testTimeout,X=C?.meta,ie=N.meta,J=Object.create(null);ie&&Object.assign(J,ie),X&&Object.assign(J,X),I&&Object.assign(J,I);const U={id:"",name:$,fullName:Eu([C?.fullName??Jn.currentSuite?.file?.fullName,$]),fullTestName:Eu([C?.fullTestName,$]),suite:C,each:_.each,fails:_.fails,context:void 0,type:"test",file:C?.file??Jn.currentSuite?.file,timeout:q,retry:_.retry??Hn.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:J,annotations:[],artifacts:[],tags:D},K=_.handler;U.mode==="run"&&!K&&(U.mode="todo"),(_.concurrent||!_.sequential&&Hn.config.sequence.concurrent)&&(U.concurrent=!0),U.shuffle=o?.shuffle;const P=WR(U,Hn);Object.defineProperty(U,"context",{value:P,enumerable:!1}),aR(P,_.fixtures??new un);const O=Error.stackTraceLimit;Error.stackTraceLimit=10;const k=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,K&&lR(U,xs(BR(PR(Ec(K,{context:P}),U),U.context.signal),q,!1,k,(S,R)=>Vg([P],R))),Hn.config.includeTaskLocation){const S=k.stack,R=t_(LR,S);R&&(U.location={line:R.line,column:R.column})}return l.push(U),U},h=Ug(function($,_,C){let{options:E,handler:L}=gl(_,C);typeof o=="object"&&(E=Object.assign({},o,E));const D=this.concurrent??(!this.sequential&&E?.concurrent);E.concurrent!=null&&D!=null&&(E.concurrent=D);const N=this.sequential??(!this.concurrent&&E?.sequential);E.sequential!=null&&N!=null&&(E.sequential=N);const I=f(Mo($),{...this,...E,handler:L});I.type="test"}),p={type:"collector",name:e,mode:n,suite:u,options:o,test:h,file:u.file,tasks:l,collect:w,task:f,clear:y,on:g};function g($,..._){fR(u)[$].push(..._)}function v($){typeof o=="number"&&(o={timeout:o});const _=Jn.currentSuite?.suite,C=_??Jn.currentSuite?.file,E=bs(o?.tags);_R(Hn.config,E),u={id:"",type:"suite",name:e,fullName:Eu([_?.fullName??Jn.currentSuite?.file?.fullName,e]),fullTestName:Eu([_?.fullTestName,e]),suite:_,mode:n,each:i,file:_?.file??Jn.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:sb([...C?.tags||[],...E])},uR(u,OR())}function y(){l.length=0,v()}async function w($){if(!$)throw new TypeError("File is required to collect tasks.");t&&await HR(p,()=>t(h));const _=[];for(const C of l)_.push(C.type==="collector"?await C.collect($):C);return u.tasks=_,u}return zR(p),p}function PR(e,t){return(async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i})}function IR(){function e(t,n,i){const o=Jn.currentSuite||o_;let{options:l,handler:u}=gl(n,i);const f=l.concurrent||this.concurrent||l.sequential===!1,h=l.sequential||this.sequential||l.concurrent===!1,{meta:p,...g}=o?.options||{};l={...g,...l};const v=this.shuffle??l.shuffle??o?.options?.shuffle??Hn?.config.sequence.shuffle;v!=null&&(l.shuffle=v);let y=this.only??l.only?"only":this.skip??l.skip?"skip":this.todo??l.todo?"todo":"run";y==="run"&&!u&&(y="todo");const w=f||l.concurrent&&!h,$=h||l.sequential&&!f;return w!=null&&(l.concurrent=w&&!$),$!=null&&(l.sequential=$&&!w),p&&(l.meta=Object.assign(Object.create(null),p,l.meta)),RR(Mo(t),u,y,this.each,l)}return e.each=function(t,...n){const i=Ii(this),o=i.withContext();return i.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Sf(t,n)),(l,u,f)=>{const h=Mo(l),p=t.every(Array.isArray),{options:g,handler:v}=gl(u,f),y=typeof u=="function";t.forEach((w,$)=>{const _=Array.isArray(w)?w:[w];y?p?o(li(h,_,$),v?()=>v(..._):void 0,g.timeout):o(li(h,_,$),v?()=>v(w):void 0,g.timeout):p?o(li(h,_,$),g,v?()=>v(..._):void 0):o(li(h,_,$),g,v?()=>v(w):void 0)}),i.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Sf(t,n)),(i,o,l)=>{const u=Mo(i),{options:f,handler:h}=gl(o,l);t.forEach((p,g)=>{cs(li(u,bs(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?cs.skip:cs,e.runIf=t=>t?cs:cs.skip,YS(["concurrent","sequential","shuffle","skip","only","todo"],e)}function DR(e){const t=e;t.each=function(o,...l){const u=Ii(this),f=u.withContext();return u.setContext("each",!0),Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),y=o.every(Array.isArray),{options:w,handler:$}=gl(p,g),_=typeof p=="function";o.forEach((C,E)=>{const L=Array.isArray(C)?C:[C];_?y?f(li(v,L,E),$?()=>$(...L):void 0,w.timeout):f(li(v,L,E),$?()=>$(C):void 0,w.timeout):y?f(li(v,L,E),w,$?()=>$(...L):void 0):f(li(v,L,E),w,$?()=>$(C):void 0)}),u.setContext("each",void 0)}},t.for=function(o,...l){const f=Ii(this).withContext();return Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),{options:y,handler:w}=gl(p,g);o.forEach(($,_)=>{const C=w?E=>w($,E):void 0;C&&wf(C,{index:1,original:w}),f(li(v,bs($),_),y,C)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,l,u){if(typeof o!="string")return o;const f=o;let h,p;if(u!==void 0?(h=l,p=u):l!==null&&typeof l=="object"&&!Array.isArray(l)&&un.isFixtureOptions(l)?(h=l,p={}):(h=void 0,p=l),typeof p=="function"){const g=p,v=async(y,w)=>{let $;const C=await g(y,{onCleanup:E=>{if($!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");$=E}});await w(C),$&&await $()};return wf(v,{original:g}),h?{[f]:[v,h]}:{[f]:v}}return h?{[f]:[p,h]}:{[f]:p}}return t.override=function(o,l,u){const f=n(o,l,u);return Ii(this).getFixtures().override(Hn,f),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,l,u){const f=n(o,l,u),h=Ii(this).getFixtures().extend(Hn,f),p=Ug(function(g,v,y){e.call(this,Mo(g),v,y)});return Ii(p).mergeContext({fixtures:h}),p},t.describe=cs,t.suite=cs,t.beforeEach=vR,t.afterEach=yR,t.beforeAll=gR,t.afterAll=mR,t.aroundEach=wR,t.aroundAll=bR,YS(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new un})}function Ug(e){return DR(e)}function Mo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function li(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((p,g)=>{if(hO(t[g])||Object.is(t[g],-0)){let v=0;e=e.replace(/%f/g,y=>(v++,v===g+1?"-%f":y))}});const o=IS(t[0]);function l(h){return h.replace(/\$([$\w.]+)/g,(p,g)=>{const v=/^\d+$/.test(g);if(!o&&!v)return`$${g}`;const y=v?rb(t,g):void 0,w=o?rb(t[0],g,y):y;return fO(w,{truncate:Hn?.config?.chaiConfig?.truncateThreshold})})}let u="",f=0;return FR(e,OS,h=>{f<i?u+=uO(h[0],t[f++]):u+=h[0]},h=>{u+=l(h)}),u}function FR(e,t,n,i){let o=0;for(const l of e.matchAll(t))o<l.index&&i(e.slice(o,l.index)),n(l),o=l.index+l[0].length;o<e.length&&i(e.slice(o))}function Sf(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
51
+ `).map(o=>o.split("|"))[0],i=[];for(let o=0;o<Math.floor(t.length/n.length);o++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[o*n.length+u];i.push(l)}return i}const bb=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Jn={currentSuite:null};function zR(e){Jn.currentSuite?.tasks.push(e)}async function HR(e,t){const n=Jn.currentSuite;Jn.currentSuite=e,await t(),Jn.currentSuite=n}function xs(e,t,n=!1,i,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=DS();return(function(...h){const p=bb(),g=qg();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{const w=l(()=>{u(w),$()},t);w.unref?.();function $(){const E=qR(n,t,i);o?.(h,E),y(E)}function _(E){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),bb()-p>=t){$();return}v(E)}function C(E){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),y(E)}try{const E=e(...h);typeof E=="object"&&E!=null&&typeof E.then=="function"?E.then(_,C):_(E)}catch(E){C(E)}})})}function BR(e,t){return(function(...i){return new Promise((o,l)=>{t.addEventListener("abort",()=>l(t.reason));try{const u=e(...i);typeof u=="object"&&u!=null&&typeof u.then=="function"?u.then(o,l):o(u)}catch(u){l(u)}})})}const Ep=new WeakMap;function Vg([e],t){e&&jR(e,t)}function jR(e,t){Ep.get(e)?.abort(t)}function WR(e,t){const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let i=Ep.get(n);return i||(i=new AbortController,Ep.set(n,i)),n.signal=i.signal,n.task=e,n.skip=(o,l)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new iR("test is skipped; abort execution",e,typeof o=="string"?o:l)},n.annotate=((o,l,u)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const f={message:o,type:typeof l=="object"||l===void 0?"notice":l},h=typeof l=="object"?l:u;return h&&(f.attachment=h,a_(f.attachment)),KR(e,VR(e,{type:"internal:annotation",annotation:f}).then(async({annotation:p})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await l_(t);const g=await t.onTestAnnotate(e,p);return e.annotations.push(g),g}))}),n.onTestFailed=(o,l)=>{e.onFailed||=[],e.onFailed.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},n.onTestFinished=(o,l)=>{e.onFinished||=[],e.onFinished.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},t.extendTaskContext?.(n)||n}function qR(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
52
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(i);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;DS();const Fh=new Map,wb=[],Wu=[];function UR(e){if(Fh.size){const t=Array.from(Fh).map(([i,o])=>[i,o[0],o[1]]),n=e.onTaskUpdate?.(t,wb);n&&(Wu.push(n),n.then(()=>Wu.splice(Wu.indexOf(n),1),()=>{})),wb.length=0,Fh.clear()}}async function l_(e){UR(e),await Promise.all(Wu)}async function VR(e,t){const n=qg(),i=t_(e.file.filepath,new Error("STACK_TRACE").stack);if(i&&(t.location={file:i.file,line:i.line,column:i.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const l of t.attachments)a_(l);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await l_(n);const o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const ar=[];for(let e=65;e<91;e++)ar.push(String.fromCharCode(e));for(let e=97;e<123;e++)ar.push(String.fromCharCode(e));for(let e=0;e<10;e++)ar.push(e.toString(10));ar.push("+","/");function GR(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const o=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ar[o],t+=ar[l],t+="=="}else if(n===i+2){const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ar[o],t+=ar[l],t+=ar[u],t+="="}else{const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ar[o],t+=ar[l],t+=ar[u],t+=ar[f]}return t}function KR(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function a_(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=GR(e.body))}const xb="q",Sb="s";function YR(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}const XR=Math.random.bind(Math),JR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ZR(e=21){let t="",n=e;for(;n--;)t+=JR[XR()*64|0];return t}const QR=6e4,c_=e=>e,eP=c_,{clearTimeout:_b,setTimeout:tP}=globalThis;function nP(e,t){const{post:n,on:i,off:o=()=>{},eventNames:l=[],serialize:u=c_,deserialize:f=eP,resolver:h,bind:p="rpc",timeout:g=QR,proxify:v=!0}=t;let y=!1;const w=new Map;let $,_;async function C(I,q,X,ie){if(y)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:xb};ie&&(J.o=!0);const U=async B=>n(u(B));if(X){await U(J);return}if($)try{await $}finally{$=void 0}let{promise:K,resolve:P,reject:O}=YR();const k=ZR();J.i=k;let S;async function R(B=J){return g>=0&&(S=tP(()=>{try{if(t.onTimeoutError?.call(_,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){O(ae)}w.delete(k)},g),typeof S=="object"&&(S=S.unref?.())),w.set(k,{resolve:P,reject:O,timeoutId:S,method:I}),await U(B),K}try{t.onRequest?await t.onRequest.call(_,J,R,P):await R()}catch(B){if(t.onGeneralError?.call(_,B)!==!0)throw B;return}finally{_b(S),w.delete(k)}return K}const E={$call:(I,...q)=>C(I,q,!1),$callOptional:(I,...q)=>C(I,q,!1,!0),$callEvent:(I,...q)=>C(I,q,!0),$callRaw:I=>C(I.method,I.args,I.event,I.optional),$rejectPendingCalls:D,get $closed(){return y},get $meta(){return t.meta},$close:L,$functions:e};v?_=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(E,q))return E[q];if(q==="then"&&!l.includes("then")&&!("then"in e))return;const X=(...J)=>C(q,J,!0);if(l.includes(q))return X.asEvent=X,X;const ie=(...J)=>C(q,J,!1);return ie.asEvent=X,ie}}):_=E;function L(I){y=!0,w.forEach(({reject:q,method:X})=>{const ie=new Error(`[birpc] rpc is closed, cannot call "${X}"`);if(I)return I.cause??=ie,q(I);q(ie)}),w.clear(),o(N)}function D(I){const q=Array.from(w.values()).map(({method:X,reject:ie})=>I?I({method:X,reject:ie}):ie(new Error(`[birpc]: rejected pending call "${X}".`)));return w.clear(),q}async function N(I,...q){let X;try{X=f(I)}catch(ie){if(t.onGeneralError?.call(_,ie)!==!0)throw ie;return}if(X.t===xb){const{m:ie,a:J,o:U}=X;let K,P,O=await(h?h.call(_,ie,e[ie]):e[ie]);if(U&&(O||=()=>{}),!O)P=new Error(`[birpc] function "${ie}" not found`);else try{K=await O.apply(p==="rpc"?_:e,J)}catch(k){P=k}if(X.i){if(P&&t.onFunctionError&&t.onFunctionError.call(_,P,ie,J)===!0)return;if(!P)try{await n(u({t:Sb,i:X.i,r:K}),...q);return}catch(k){if(P=k,t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}try{await n(u({t:Sb,i:X.i,e:P}),...q)}catch(k){if(t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}}}else{const{i:ie,r:J,e:U}=X,K=w.get(ie);K&&(_b(K.timeoutId),U?K.reject(U):K.resolve(J)),w.delete(ie)}}return $=i(N),_}const{parse:u_,stringify:rP}=JSON,{keys:iP}=Object,uc=String,f_="string",kb={},_f="object",d_=(e,t)=>t,oP=e=>e instanceof uc?uc(e):e,sP=(e,t)=>typeof t===f_?new uc(t):t,lP=(e,t,n,i)=>o=>{for(let l=iP(o),{length:u}=l,f=0;f<u;f++){const h=l[f],p=o[h];if(p instanceof uc){const g=e[p];typeof g===_f&&!n.has(g)?(n.add(g),o[h]=kb,t.push({o,k:h,r:g})):o[h]=i.call(o,h,g)}else o[h]!==kb&&(o[h]=i.call(o,h,p))}return o},Tb=(e,t,n)=>{const i=uc(t.push(n)-1);return e.set(n,i),i},Ap=(e,t)=>{const n=u_(e,sP).map(oP),i=t||d_;let o=n[0];if(typeof o===_f&&o){const l=[],u=lP(n,l,new Set,i);o=u(o);let f=0;for(;f<l.length;){const{o:h,k:p,r:g}=l[f++];h[p]=i.call(h,p,u(g))}}return i.call({"":o},"",o)},h_=(e,t,n)=>{const i=t&&typeof t===_f?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||d_,o=new Map,l=[],u=[];let f=+Tb(o,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=rP(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case _f:if(y===null)return y;case f_:return o.get(y)||Tb(o,l,y)}return y}},aP=e=>u_(h_(e));class p_{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],o=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(o=>{const l=this.filesMap.get(o),u=e_(o,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(o,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(o,[...f,u]):this.filesMap.set(o,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,o]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=o,i?.state==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function cP(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new p_,waitForConnection:E,reconnect:_},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(L,D){n.onTestAnnotate?.(L,D)},onTestArtifactRecord(L,D){n.onTestArtifactRecord?.(L,D)},onSpecsCollected(L,D){L?.forEach(([N,I])=>{g.state.clearFiles({config:N},[I])}),n.onSpecsCollected?.(L,D)},onPathsCollected(L){g.state.collectPaths(L),n.onPathsCollected?.(L)},onCollected(L){g.state.collectFiles(L),n.onCollected?.(L)},onTaskUpdate(L,D){g.state.updateTasks(L),n.onTaskUpdate?.(L,D)},onUserConsoleLog(L){g.state.updateUserLog(L),n.onUserConsoleLog?.(L)},onFinished(L,D,N,I){n.onFinished?.(L,D,N,I)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},w={post:L=>g.ws.send(L),on:L=>v=L,serialize:L=>h_(L,(D,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Ap,timeout:-1};g.rpc=nP(y,w);let $;function _(L=!1){L&&(p=l),g.ws=new h(e),C()}function C(){$=new Promise((L,D)=>{const N=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u)?.unref?.();g.ws.OPEN===g.ws.readyState&&L(),g.ws.addEventListener("open",()=>{p=l,L(),clearTimeout(N)})}),g.ws.addEventListener("message",L=>{v(L.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout(_,o)})}C();function E(){return $}return g}const Po=oM(),uP=BN(Po);function Ac(e){return Object.hasOwn(e,"tasks")}function fP(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function us(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zh(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function dP(e){const t=new Map,n=new Map,i=[];for(;;){let o=0;if(e.forEach((l,u)=>{const{splits:f,finished:h}=l;if(h){o++;const{raw:g,candidate:v}=l;t.set(g,v);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,n.get(p)?.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,o===e.length)break}return t}function g_(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,splitted:[...n],candidate:"",finished:!1,id:e}}function hP(e){return g_(e).raw}function qu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function kf(e){const t=qu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Uu(e,t=!1){if(!e)return"";const n=e.split("").reduce((l,u,f)=>l+u.charCodeAt(0)+f,0),i=Po.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],o=Po.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?o:i)[n%i.length]}function m_(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const $p=Vt([]),rr=Vt([]),Kr=Cc("vitest-ui_task-tree-opened",[],{shallow:!0}),Bl="__vitest_ui_all_projects__",Tf=Se(()=>new Set(Kr.value)),Ht=Cc("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:Bl,projectSort:void 0}),Fr=Ke(Ht.value.projectSort||"default"),ml=Vt(Ht.value?.project||Bl),Np=Se(()=>rm.value.length>1),pP=Se(()=>ml.value===Bl),Gg=Se(()=>!Np.value||ml.value===Bl?void 0:ml.value),Hr=Ke(Ht.value.search),Cb=new Map,vo=Se(()=>{if(Hr.value.startsWith("tag:")){if(!pt.value.tags)return{matcher:()=>!0};const e=Hr.value.slice(4).trim();let t=Cb.get(e);return t||(t=gP(e),Cb.set(e,t)),{matcher:n=>t.matcher(n.tags||[]),error:t.error}}return{matcher:e=>Hr.value===""||fP(e.name,Hr.value)}});function gP(e){if(!e)return{matcher:()=>!0};try{return{matcher:kR([e],pt.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const mP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v_(e){return e.replace(/[&<>"']/g,t=>mP[t])}const vP=Se(()=>{const e=Hr.value.toLowerCase();return e.length?new RegExp(`(${v_(e)})`,"gi"):null}),y_=Se(()=>Hr.value.trim()!==""),Ze=dr({failed:Ht.value.failed,success:Ht.value.success,skipped:Ht.value.skipped,slow:Ht.value.slow,onlyTests:Ht.value.onlyTests}),Mp=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped||Ze.slow)),fd=Vt([]),Ml=Ke(!1),Eb=Se(()=>{const e=Ht.value.expandAll;return Kr.value.length>0?e!==!0:e!==!1}),yP=Se(()=>{const e=y_.value,t=Mp.value,n=Gg.value,i=Ze.onlyTests,o=$e.summary.filesFailed,l=$e.summary.filesSuccess,u=$e.summary.filesSkipped,f=$e.summary.filesRunning,h=fd.value;return $e.collectTestsTotal(e||t||!!n,i,h,{failed:o,success:l,skipped:u,running:f})});function bP(e){return e.type==="test"}function wP(e){return e.mode==="run"&&e.type==="test"}function Wn(e){return e.type==="file"}function Ui(e){return e.type==="file"||e.type==="suite"}function Lp(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const n=pt.value.slowTestThreshold;return typeof n=="number"&&t>n}function xP(e,t=$e.root.tasks){const n=[...t];return n.sort((i,o)=>{if(e==="duration-desc"||e==="duration-asc"){const l=i.duration??0,u=o.duration??0;if(l!==u)return e==="duration-desc"?u-l:l-u}else if(e==="asc"||e==="desc"){const l=i.projectName||"",u=o.projectName||"";if(l!==u)return e==="asc"?l.localeCompare(u):u.localeCompare(l)}return`${i.filepath}:${i.projectName}`.localeCompare(`${o.filepath}:${o.projectName}`)}),n}function fc(e,t=!1){let n=$e.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:$e.colors.get(e.projectName||"")||Uu(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},$e.nodes.set(e.id,n),$e.root.tasks.push(n)),t)for(let i=0;i<e.tasks.length;i++)$c(e.id,e.tasks[i],!0)}function b_(e,t){const n=$e.nodes.get(e);if(!n||!Ui(n))return;const i=ft.state.idMap.get(e);if(!(!i||!Ac(i)))return $c(n.parentId,i,t&&i.tasks.length>0),[n,i]}function SP(e){const t=$e.nodes.get(e);if(!t)return;const n=ft.state.idMap.get(e);!n||!Nl(n)||$c(t.parentId,n,!1)}function $c(e,t,n){const i=$e.nodes.get(e);let o;const l=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(i&&(o=$e.nodes.get(t.id),o?(i.children.has(t.id)||(i.tasks.push(o),i.children.add(t.id)),o.name=t.name,o.mode=t.mode,o.duration=l,o.slow=Lp(t),o.state=t.result?.state):(Nl(t)?o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:i.indent+1,duration:l,slow:Lp(t),state:t.result?.state}:o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,slow:!1,state:t.result?.state},$e.nodes.set(t.id,o),i.tasks.push(o),i.children.add(t.id)),o&&n&&Ac(t)))for(let u=0;u<t.tasks.length;u++)$c(o.id,t.tasks[u],n)}function _P(e){const t=$e.nodes.get(e);if(!t||!Ui(t))return;const n=new Set(Kr.value);n.delete(t.id);const i=[...TP(t)];Kr.value=Array.from(n),rr.value=i}function kP(){Op($e.root.tasks);const e=[...rr.value.filter(Wn)];Op(e),Kr.value=[],Ht.value.expandAll=!0,rr.value=e}function Op(e){for(const t of e)Ui(t)&&(t.expanded=!1,Op(t.tasks))}function*w_(e,t){if(t&&(yield e.id),Ui(e))for(let n=0;n<e.tasks.length;n++)yield*w_(e.tasks[n],!0)}function*TP(e){const t=e.id,n=new Set(w_(e,!1));for(let i=0;i<rr.value.length;i++){const o=rr.value[i];if(o.id===t){o.expanded=!1,yield o;continue}if(n.has(o.id)){n.delete(o.id);continue}yield o}}const dd=Ke("idle"),ol=Se(()=>dd.value==="idle"),So=Ke([]),CP=Se(()=>(pt.value.tags||[]).reduce((t,n)=>(t[n.name]=n,t),{}));function EP(e,t,n){return e?__(e,t,n):!1}function Kg(e,t){const n=[...x_(e,t)];rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function*x_(e,t){const n=Gg.value,i=xP(Fr.value);for(const o of i)n&&o.projectName!==n||(yield*S_(o,e,t))}function*S_(e,t,n){const i=new Set,o=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))l.push([v,y]);else{for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))Ui(y)?(o.set(y.id,v),Wn(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||o.get(y.parentId)===!0,y])):l.push([v||o.get(y.parentId)===!0,y]);!u&&!Wn(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...$P(l,n.onlyTests,i,f,u)].reverse(),p=$e.nodes;for(const v of i){const y=p.get(v);y&&"expanded"in y&&(y.expanded=!0)}const g=new Set(h.filter(v=>Wn(v)||Ui(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Wn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function AP(e,t,n,i,o){if(i){if(Wn(t))return o.has(t.id)?t:void 0;if(n.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}else if(e||n.has(t.id)||o.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}function*$P(e,t,n,i,o){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ui(f);if(!t&&o&&n.has(o)&&"fileId"in f&&f.fileId===o){h&&n.add(f.id);let p=$e.nodes.get(f.parentId);for(;p;)n.add(p.id),Wn(p)&&i.add(p.id),p=$e.nodes.get(p.parentId);yield f;continue}if(h){const p=AP(u,f,n,t,i);p&&(yield p)}else if(u){const p=$e.nodes.get(f.parentId);p&&Wn(p)&&i.add(p.id),yield f}}}function NP(e,t){if(t.slow&&e.type==="test"){const n=pt.value.slowTestThreshold;if(typeof n=="number"&&typeof e.result?.duration=="number"&&e.result.duration>n)return!0}return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function __(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(NP(e,n))return!0}else return!0;return!1}function*Rp(e,t,n){const i=n(e);if(i)if(bP(e)){let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}else if(Wn(e))t.add(e.id);else{t.add(e.id);let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}if(yield[i,e],Ui(e))for(let o=0;o<e.tasks.length;o++)yield*Rp(e.tasks[o],t,n)}function Ab(e,t,n){const i=ft.state.idMap.get(e.id);return i?__(i,t,n):!1}function MP(e,t,n){const i=b_(e,!1);if(!i)return;const[o,l]=i;for(const p of l.tasks)$c(o.id,p,!1);o.expanded=!0;const u=new Set(Kr.value);u.add(o.id);const f=new Set(S_(o,t,n)),h=[...RP(o,f)];Kr.value=Array.from(u),rr.value=h}function LP(e,t){Yg($e.root.tasks,!1);const n=[...x_(e,t)];Ht.value.expandAll=!1,Kr.value=[],rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function OP(e,t){if(e.size)for(const n of rr.value)e.has(n.id)&&(n.expanded=!0);else t&&Yg(rr.value.filter(Wn),!0)}function Yg(e,t){for(const n of e)Ui(n)&&(n.expanded=!0,Yg(n.tasks,!1));t&&(Ht.value.expandAll=!1,Kr.value=[])}function*RP(e,t){const n=e.id,i=new Set(Array.from(t).map(o=>o.id));for(const o of rr.value)o.id===n?(o.expanded=!0,i.has(o.id)||(yield e),yield*t):i.has(o.id)||(yield o)}function Xg(e){return i_(e).some(t=>t.result?.errors?.some(n=>typeof n?.message=="string"&&n.message.match(/Snapshot .* mismatched/)))}function PP(e,t,n,i){e.map(o=>[`${o.filepath}:${o.projectName||""}`,o]).sort(([o],[l])=>o.localeCompare(l)).map(([,o])=>fc(o,t)),$p.value=[...$e.root.tasks],Kg(n,{failed:i.failed,success:i.success,skipped:i.skipped,slow:i.slow,onlyTests:i.onlyTests})}function IP(e){queueMicrotask(()=>{const t=$e.pendingTasks,n=ft.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function DP(e,t){const n=$e.pendingTasks,o=ft.state.idMap.get(e);if(o?.type==="test"){let l=n.get(o.file.id);l||(l=new Set,n.set(o.file.id,l)),l.add(o.id),t.type==="internal:annotation"?o.annotations.push(t.annotation):o.artifacts.push(t)}}function $b(e,t,n,i,o,l){e&&WP(n);const u=!e;queueMicrotask(()=>{t?HP(u):BP(u)}),queueMicrotask(()=>{qP(n,l)}),queueMicrotask(()=>{t&&(n.failedSnapshot=$p.value&&Xg($p.value.map(f=>Cr(f.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{jP(i,o,t)})}function*FP(){yield*rr.value.filter(wP)}function zP(){const e=ft.state.idMap;let t;for(const n of FP())t=e.get(n.parentId),t&&Ac(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function HP(e){const t=ft.state.getFiles(),n=$e.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)fc(i[l],e),Cf(i[l].tasks);const o=$e.root.tasks;for(let l=0;l<o.length;l++){const u=o[l],f=Cr(u.id);!f||(fc(f,e),!f.tasks?.length)||Cf(f.tasks)}}function BP(e){const t=new Map($e.pendingTasks.entries());$e.pendingTasks.clear();const n=$e.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>Cr(f)).filter(Boolean);let o;for(let f=0;f<i.length;f++)o=i[f],fc(o,!1),Cf(o.tasks),t.delete(o.id);const l=ft.state.idMap,u=$e.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=Cr(h.id);if(!p)continue;const g=t.get(p.id);g&&(fc(p,e),Cf(Array.from(g,v=>l.get(v)).filter(Boolean)))}}function jP(e,t,n=!1){const i=Ht.value.expandAll,o=i!==!0,l=new Set(Kr.value),u=l.size>0&&i===!1||o;queueMicrotask(()=>{Nb(e,t,n)}),Ml.value||queueMicrotask(()=>{(rr.value.length||n)&&(Ml.value=!0)}),u&&(queueMicrotask(()=>{OP(l,n),o&&(Ht.value.expandAll=!1)}),queueMicrotask(()=>{Nb(e,t,n)}))}function Nb(e,t,n){Kg(e,t),n&&(zP(),dd.value="idle")}function Cf(e){let t;for(let n=0;n<e.length;n++)t=e[n],Ac(t)?b_(t.id,!0):SP(t.id)}function WP(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function qP(e,t){const n=ft.state.idMap,i=new Map($e.root.tasks.filter(u=>n.has(u.id)).map(u=>[u.id,u])),o=Array.from(i.values(),u=>[u.id,Cr(u.id)]),l={files:i.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[u,f]of o){if(!f)continue;f.result?.state==="fail"?l.filesFailed++:f.result?.state==="pass"?l.filesSuccess++:f.mode==="skip"?(l.filesIgnore++,l.filesSkipped++):f.mode==="todo"?(l.filesIgnore++,l.filesTodo++):l.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:y,todo:w,expectedFail:$,slow:_}=k_(f);l.totalTests+=v,l.testsFailed+=h,l.testsSuccess+=p,l.testsSkipped+=g,l.testsTodo+=w,l.testsExpectedFail+=$,l.testsSlow+=_,l.testsIgnore+=y}e.files=l.files,e.time=l.time,e.filesFailed=l.filesFailed,e.filesSuccess=l.filesSuccess,e.filesIgnore=l.filesIgnore,e.filesRunning=l.filesRunning,e.filesSkipped=l.filesSkipped,e.filesTodo=l.filesTodo,e.testsFailed=l.testsFailed,e.testsSuccess=l.testsSuccess,e.testsTodo=l.testsTodo,e.testsExpectedFail=l.testsExpectedFail,e.testsSlow=l.testsSlow,e.testsIgnore=l.testsIgnore,e.testsSkipped=l.testsSkipped,e.totalTests=l.totalTests}function k_(e,t=()=>!0,n){const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const o of T_(e))(!n||EP(o,t,n))&&(i.total++,Lp(o)&&i.slow++,o.result?.state==="fail"?i.failed++:o.result?.state==="pass"?o.fails?i.expectedFail++:i.success++:o.mode==="skip"?(i.ignored++,i.skipped++):o.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored-i.expectedFail,i}function UP(e,t,n,i,o,l){if(t)return n.map(u=>k_(u,o,l)).reduce((u,{failed:f,success:h,ignored:p,running:g})=>(u.failed+=f,u.success+=h,u.skipped+=p,u.running+=g,u),{failed:0,success:0,skipped:0,running:0});if(e){const u={failed:0,success:0,skipped:0,running:0},f=!l.success&&!l.failed,h=l.failed||f,p=l.success||f;for(const g of n)g.result?.state==="fail"?u.failed+=h?1:0:g.result?.state==="pass"?u.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||u.running++;return u}return i}function*T_(e){const t=bs(e);let n;for(let i=0;i<t.length;i++)n=t[i],Nl(n)?yield n:yield*T_(n.tasks)}class VP{constructor(t=[],n=new Map,i=!1,o=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=new Map,h=dr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=o,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=YN(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),PP(t,!0,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,n){DP(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){IP(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,n,i=!0){i?queueMicrotask(()=>{$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}):$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,n,i,o){return UP(t,n,i,o,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{_P(t)})}expandNode(t){queueMicrotask(()=>{MP(t,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{kP()})}expandAllNodes(){queueMicrotask(()=>{LP(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kg(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}}const $e=new VP;function Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vu={exports:{}},GP=Vu.exports,Mb;function Ho(){return Mb||(Mb=1,(function(e,t){(function(n,i){e.exports=i()})(GP,(function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],$=/Opera\//.test(n),_=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),L=_&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),N=L||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),I=L||/Mac/.test(i),q=/\bCrOS\b/.test(n),X=/win/i.test(i),ie=$&&n.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&($=!1,g=!0);var J=I&&(v||$&&(ie==null||ie<12.11)),U=o||h&&p>=9;function K(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var P=function(r,s){var c=r.className,a=K(s).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function O(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function k(r,s){return O(r).appendChild(s)}function S(r,s,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof s=="string")d.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)d.appendChild(s[m]);return d}function R(r,s,c,a){var d=S(r,s,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,s,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,s),d}:B=function(r,s,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",s),a};function ae(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function ve(r){var s=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=s.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function _e(r,s){var c=r.className;K(s).test(c)||(r.className+=(c?" ":"")+s)}function Be(r,s){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!K(c[a]).test(s)&&(s+=" "+c[a]);return s}var Ee=function(r){r.select()};L?Ee=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(Ee=function(r){try{r.select()}catch{}});function Ge(r){return r.display.wrapper.ownerDocument}function Ue(r){return He(r.display.wrapper)}function He(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function Re(r){return Ge(r).defaultView}function z(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function Z(r,s,c){s||(s={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!s.hasOwnProperty(a))&&(s[a]=r[a]);return s}function re(r,s,c,a,d){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=s)return b+(s-m);b+=x-m,b+=c-b%c,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};le.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},le.prototype.set=function(r,s){this.f=s;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ce(r,s){for(var c=0;c<r.length;++c)if(r[c]==s)return c;return-1}var F=50,j={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function me(r,s,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=s)return a+Math.min(b,s-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=s)return a}}var Ce=[""];function Ae(r){for(;Ce.length<=r;)Ce.push(xe(Ce)+" ");return Ce[r]}function xe(r){return r[r.length-1]}function be(r,s){for(var c=[],a=0;a<r.length;a++)c[a]=s(r[a],a);return c}function Q(r,s,c){for(var a=0,d=c(s);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,s)}function ue(){}function oe(r,s){var c;return Object.create?c=Object.create(r):(ue.prototype=r,c=new ue),s&&Z(s,c),c}var Pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Pe.test(r))}function ct(r,s){return s?s.source.indexOf("\\w")>-1&&et(r)?!0:s.test(r):et(r)}function dt(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var Ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(r){return r.charCodeAt(0)>=768&&Ot.test(r)}function en(r,s,c){for(;(c<0?s>0:s<r.length)&&ut(r.charAt(s));)s+=c;return s}function Gt(r,s,c){for(var a=s>c?-1:1;;){if(s==c)return s;var d=(s+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==s)return r(m)?s:c;r(m)?c=m:s=m+a}}function Vn(r,s,c,a){if(!r)return a(s,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>s||s==c&&b.to==s)&&(a(Math.max(b.from,s),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(s,c,"ltr")}var Jr=null;function Wt(r,s,c){var a;Jr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<s&&m.to>s)return d;m.to==s&&(m.from!=m.to&&c=="before"?a=d:Jr=d),m.from==s&&(m.from!=m.to&&c!="before"?a=d:Jr=d)}return a??Jr}var Gn=(function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(A){return A<=247?r.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?s.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function T(A,H,G){this.level=A,this.from=H,this.to=G}return function(A,H){var G=H=="ltr"?"L":"R";if(A.length==0||H=="ltr"&&!a.test(A))return!1;for(var se=A.length,ne=[],pe=0;pe<se;++pe)ne.push(c(A.charCodeAt(pe)));for(var we=0,Te=G;we<se;++we){var Le=ne[we];Le=="m"?ne[we]=Te:Te=Le}for(var De=0,Oe=G;De<se;++De){var ze=ne[De];ze=="1"&&Oe=="r"?ne[De]="n":m.test(ze)&&(Oe=ze,ze=="r"&&(ne[De]="R"))}for(var Je=1,Ve=ne[0];Je<se-1;++Je){var lt=ne[Je];lt=="+"&&Ve=="1"&&ne[Je+1]=="1"?ne[Je]="1":lt==","&&Ve==ne[Je+1]&&(Ve=="1"||Ve=="n")&&(ne[Je]=Ve),Ve=lt}for(var Ct=0;Ct<se;++Ct){var sn=ne[Ct];if(sn==",")ne[Ct]="N";else if(sn=="%"){var Rt=void 0;for(Rt=Ct+1;Rt<se&&ne[Rt]=="%";++Rt);for(var Xn=Ct&&ne[Ct-1]=="!"||Rt<se&&ne[Rt]=="1"?"1":"N",Ln=Ct;Ln<Rt;++Ln)ne[Ln]=Xn;Ct=Rt-1}}for(var Kt=0,On=G;Kt<se;++Kt){var cn=ne[Kt];On=="L"&&cn=="1"?ne[Kt]="L":m.test(cn)&&(On=cn)}for(var Jt=0;Jt<se;++Jt)if(d.test(ne[Jt])){var Yt=void 0;for(Yt=Jt+1;Yt<se&&d.test(ne[Yt]);++Yt);for(var zt=(Jt?ne[Jt-1]:G)=="L",Rn=(Yt<se?ne[Yt]:G)=="L",Xs=zt==Rn?zt?"L":"R":G,co=Jt;co<Yt;++co)ne[co]=Xs;Jt=Yt-1}for(var mn=[],ni,ln=0;ln<se;)if(b.test(ne[ln])){var dh=ln;for(++ln;ln<se&&b.test(ne[ln]);++ln);mn.push(new T(0,dh,ln))}else{var ki=ln,Jo=mn.length,Zo=H=="rtl"?1:0;for(++ln;ln<se&&ne[ln]!="L";++ln);for(var _n=ki;_n<ln;)if(x.test(ne[_n])){ki<_n&&(mn.splice(Jo,0,new T(1,ki,_n)),Jo+=Zo);var Js=_n;for(++_n;_n<ln&&x.test(ne[_n]);++_n);mn.splice(Jo,0,new T(2,Js,_n)),Jo+=Zo,ki=_n}else++_n;ki<ln&&mn.splice(Jo,0,new T(1,ki,ln))}return H=="ltr"&&(mn[0].level==1&&(ni=A.match(/^\s+/))&&(mn[0].from=ni[0].length,mn.unshift(new T(0,0,ni[0].length))),xe(mn).level==1&&(ni=A.match(/\s+$/))&&(xe(mn).to-=ni[0].length,mn.push(new T(0,se-ni[0].length,se)))),H=="rtl"?mn.reverse():mn}})();function at(r,s){var c=r.order;return c==null&&(c=r.order=Gn(r.text,s)),c}var Bo=[],Xe=function(r,s,c){if(r.addEventListener)r.addEventListener(s,c,!1);else if(r.attachEvent)r.attachEvent("on"+s,c);else{var a=r._handlers||(r._handlers={});a[s]=(a[s]||Bo).concat(c)}};function vi(r,s){return r._handlers&&r._handlers[s]||Bo}function hn(r,s,c){if(r.removeEventListener)r.removeEventListener(s,c,!1);else if(r.detachEvent)r.detachEvent("on"+s,c);else{var a=r._handlers,d=a&&a[s];if(d){var m=ce(d,c);m>-1&&(a[s]=d.slice(0,m).concat(d.slice(m+1)))}}}function It(r,s){var c=vi(r,s);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Dt(r,s,c){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),It(r,c||s.type,r,s),An(s)||s.codemirrorIgnore}function yr(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<s.length;++a)ce(c,s[a])==-1&&c.push(s[a])}function Kn(r,s){return vi(r,s).length>0}function Er(r){r.prototype.on=function(s,c){Xe(this,s,c)},r.prototype.off=function(s,c){hn(this,s,c)}}function pn(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Ts(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function An(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Ji(r){pn(r),Ts(r)}function jl(r){return r.target||r.srcElement}function Ar(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),I&&r.ctrlKey&&s==1&&(s=3),s}var bd=(function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r})(),Cs;function Pc(r){if(Cs==null){var s=S("span","​");k(r,S("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Cs=s.offsetWidth<=1&&s.offsetHeight>2&&!(h&&p<8))}var c=Cs?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var Wl;function Zi(r){if(Wl!=null)return Wl;var s=k(r,document.createTextNode("AخA")),c=B(s,0,1).getBoundingClientRect(),a=B(s,1,2).getBoundingClientRect();return O(r),!c||c.left==c.right?!1:Wl=a.right-c.right<3}var br=`
53
+
54
+ b`.split(/\n/).length!=3?function(r){for(var s=0,c=[],a=r.length;s<=a;){var d=r.indexOf(`
55
+ `,s);d==-1&&(d=r.length);var m=r.slice(s,r.charAt(d-1)=="\r"?d-1:d),b=m.indexOf("\r");b!=-1?(c.push(m.slice(0,b)),s+=b+1):(c.push(m),s=d+1)}return c}:function(r){return r.split(/\r\n?|\n/)},Qi=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},Ic=(function(){var r=S("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")})(),$r=null;function wd(r){if($r!=null)return $r;var s=k(r,S("span","x")),c=s.getBoundingClientRect(),a=B(s,0,1).getBoundingClientRect();return $r=Math.abs(c.left-a.left)>1}var Es={},Nr={};function Mr(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Es[r]=s}function jo(r,s){Nr[r]=s}function As(r){if(typeof r=="string"&&Nr.hasOwnProperty(r))r=Nr[r];else if(r&&typeof r.name=="string"&&Nr.hasOwnProperty(r.name)){var s=Nr[r.name];typeof s=="string"&&(s={name:s}),r=oe(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return As("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return As("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function $s(r,s){s=As(s);var c=Es[s.name];if(!c)return $s(r,"text/plain");var a=c(r,s);if(eo.hasOwnProperty(s.name)){var d=eo[s.name];for(var m in d)d.hasOwnProperty(m)&&(a.hasOwnProperty(m)&&(a["_"+m]=a[m]),a[m]=d[m])}if(a.name=s.name,s.helperType&&(a.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)a[b]=s.modeProps[b];return a}var eo={};function Ns(r,s){var c=eo.hasOwnProperty(r)?eo[r]:eo[r]={};Z(s,c)}function Zr(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var c={};for(var a in s){var d=s[a];d instanceof Array&&(d=d.concat([])),c[a]=d}return c}function ql(r,s){for(var c;r.innerMode&&(c=r.innerMode(s),!(!c||c.mode==r));)s=c.state,r=c.mode;return c||{mode:r,state:s}}function Ms(r,s,c){return r.startState?r.startState(s,c):!0}var Ft=function(r,s,c){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(r){var s=this.string.charAt(this.pos),c;if(typeof r=="string"?c=s==r:c=s&&(r.test?r.test(s):r(s)),c)return++this.pos,s},Ft.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},Ft.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},Ft.prototype.backUp=function(r){this.pos-=r},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(r,s,c){if(typeof r=="string"){var a=function(b){return c?b.toLowerCase():b},d=this.string.substr(this.pos,r.length);if(a(d)==a(r))return s!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&s!==!1&&(this.pos+=m[0].length),m)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},Ft.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},Ft.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function qe(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var c=r;!c.lines;)for(var a=0;;++a){var d=c.children[a],m=d.chunkSize();if(s<m){c=d;break}s-=m}return c.lines[s]}function yi(r,s,c){var a=[],d=s.line;return r.iter(s.line,c.line+1,function(m){var b=m.text;d==c.line&&(b=b.slice(0,c.ch)),d==s.line&&(b=b.slice(s.ch)),a.push(b),++d}),a}function Ul(r,s,c){var a=[];return r.iter(s,c,function(d){a.push(d.text)}),a}function or(r,s){var c=s-r.height;if(c)for(var a=r;a;a=a.parent)a.height+=c}function M(r){if(r.parent==null)return null;for(var s=r.parent,c=ce(s.lines,r),a=s.parent;a;s=a,a=a.parent)for(var d=0;a.children[d]!=s;++d)c+=a.children[d].chunkSize();return c+s.first}function V(r,s){var c=r.first;e:do{for(var a=0;a<r.children.length;++a){var d=r.children[a],m=d.height;if(s<m){r=d;continue e}s-=m,c+=d.chunkSize()}return c}while(!r.lines);for(var b=0;b<r.lines.length;++b){var x=r.lines[b],T=x.height;if(s<T)break;s-=T}return c+b}function ye(r,s){return s>=r.first&&s<r.first+r.size}function ke(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function fe(r,s,c){if(c===void 0&&(c=null),!(this instanceof fe))return new fe(r,s,c);this.line=r,this.ch=s,this.sticky=c}function Ie(r,s){return r.line-s.line||r.ch-s.ch}function gt(r,s){return r.sticky==s.sticky&&Ie(r,s)==0}function tn(r){return fe(r.line,r.ch)}function $n(r,s){return Ie(r,s)<0?s:r}function Ls(r,s){return Ie(r,s)<0?r:s}function xm(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function it(r,s){if(s.line<r.first)return fe(r.first,0);var c=r.first+r.size-1;return s.line>c?fe(c,qe(r,c).text.length):Zk(s,qe(r,s.line).text.length)}function Zk(r,s){var c=r.ch;return c==null||c>s?fe(r.line,s):c<0?fe(r.line,0):r}function Sm(r,s){for(var c=[],a=0;a<s.length;a++)c[a]=it(r,s[a]);return c}var Dc=function(r,s){this.state=r,this.lookAhead=s},Qr=function(r,s,c,a){this.state=s,this.doc=r,this.line=c,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Qr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},Qr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(r,s,c){return s instanceof Dc?new Qr(r,Zr(r.mode,s.state),c,s.lookAhead):new Qr(r,Zr(r.mode,s),c)},Qr.prototype.save=function(r){var s=r!==!1?Zr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Dc(s,this.maxLookAhead):s};function _m(r,s,c,a){var d=[r.state.modeGen],m={};$m(r,s.text,r.doc.mode,c,function(A,H){return d.push(A,H)},m,a);for(var b=c.state,x=function(A){c.baseTokens=d;var H=r.state.overlays[A],G=1,se=0;c.state=!0,$m(r,s.text,H.mode,c,function(ne,pe){for(var we=G;se<ne;){var Te=d[G];Te>ne&&d.splice(G,1,ne,d[G+1],Te),G+=2,se=Math.min(ne,Te)}if(pe)if(H.opaque)d.splice(we,G-we,ne,"overlay "+pe),G=we+2;else for(;we<G;we+=2){var Le=d[we+1];d[we+1]=(Le?Le+" ":"")+"overlay "+pe}},m),c.state=b,c.baseTokens=null,c.baseTokenPos=1},T=0;T<r.state.overlays.length;++T)x(T);return{styles:d,classes:m.bgClass||m.textClass?m:null}}function km(r,s,c){if(!s.styles||s.styles[0]!=r.state.modeGen){var a=Vl(r,M(s)),d=s.text.length>r.options.maxHighlightLength&&Zr(r.doc.mode,a.state),m=_m(r,s,a);d&&(a.state=d),s.stateAfter=a.save(!d),s.styles=m.styles,m.classes?s.styleClasses=m.classes:s.styleClasses&&(s.styleClasses=null),c===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Vl(r,s,c){var a=r.doc,d=r.display;if(!a.mode.startState)return new Qr(a,!0,s);var m=Qk(r,s,c),b=m>a.first&&qe(a,m-1).stateAfter,x=b?Qr.fromSaved(a,b,m):new Qr(a,Ms(a.mode),m);return a.iter(m,s,function(T){xd(r,T.text,x);var A=x.line;T.stateAfter=A==s-1||A%5==0||A>=d.viewFrom&&A<d.viewTo?x.save():null,x.nextLine()}),c&&(a.modeFrontier=x.line),x}function xd(r,s,c,a){var d=r.doc.mode,m=new Ft(s,r.options.tabSize,c);for(m.start=m.pos=a||0,s==""&&Tm(d,c.state);!m.eol();)Sd(d,m,c.state),m.start=m.pos}function Tm(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var c=ql(r,s);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function Sd(r,s,c,a){for(var d=0;d<10;d++){a&&(a[0]=ql(r,c).mode);var m=r.token(s,c);if(s.pos>s.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var Cm=function(r,s,c){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=c};function Em(r,s,c,a){var d=r.doc,m=d.mode,b;s=it(d,s);var x=qe(d,s.line),T=Vl(r,s.line,c),A=new Ft(x.text,r.options.tabSize,T),H;for(a&&(H=[]);(a||A.pos<s.ch)&&!A.eol();)A.start=A.pos,b=Sd(m,A,T.state),a&&H.push(new Cm(A,b,Zr(d.mode,T.state)));return a?H:new Cm(A,b,T.state)}function Am(r,s){if(r)for(;;){var c=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;r=r.slice(0,c.index)+r.slice(c.index+c[0].length);var a=c[1]?"bgClass":"textClass";s[a]==null?s[a]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(s[a])||(s[a]+=" "+c[2])}return r}function $m(r,s,c,a,d,m,b){var x=c.flattenSpans;x==null&&(x=r.options.flattenSpans);var T=0,A=null,H=new Ft(s,r.options.tabSize,a),G,se=r.options.addModeClass&&[null];for(s==""&&Am(Tm(c,a.state),m);!H.eol();){if(H.pos>r.options.maxHighlightLength?(x=!1,b&&xd(r,s,a,H.pos),H.pos=s.length,G=null):G=Am(Sd(c,H,a.state,se),m),se){var ne=se[0].name;ne&&(G="m-"+(G?ne+" "+G:ne))}if(!x||A!=G){for(;T<H.start;)T=Math.min(H.start,T+5e3),d(T,A);A=G}H.start=H.pos}for(;T<H.pos;){var pe=Math.min(H.pos,T+5e3);d(pe,A),T=pe}}function Qk(r,s,c){for(var a,d,m=r.doc,b=c?-1:s-(r.doc.mode.innerMode?1e3:100),x=s;x>b;--x){if(x<=m.first)return m.first;var T=qe(m,x-1),A=T.stateAfter;if(A&&(!c||x+(A instanceof Dc?A.lookAhead:0)<=m.modeFrontier))return x;var H=re(T.text,null,r.options.tabSize);(d==null||a>H)&&(d=x-1,a=H)}return d}function eT(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var c=r.first,a=s-1;a>c;a--){var d=qe(r,a).stateAfter;if(d&&(!(d instanceof Dc)||a+d.lookAhead<s)){c=a+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,c)}}var Nm=!1,bi=!1;function tT(){Nm=!0}function nT(){bi=!0}function Fc(r,s,c){this.marker=r,this.from=s,this.to=c}function Gl(r,s){if(r)for(var c=0;c<r.length;++c){var a=r[c];if(a.marker==s)return a}}function rT(r,s){for(var c,a=0;a<r.length;++a)r[a]!=s&&(c||(c=[])).push(r[a]);return c}function iT(r,s,c){var a=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));a&&r.markedSpans&&a.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],a&&a.add(r.markedSpans)),s.marker.attachLine(r)}function oT(r,s,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);if(x||m.from==s&&b.type=="bookmark"&&(!c||!m.marker.insertLeft)){var T=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);(a||(a=[])).push(new Fc(b,m.from,T?null:m.to))}}return a}function sT(r,s,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);if(x||m.from==s&&b.type=="bookmark"&&(!c||m.marker.insertLeft)){var T=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);(a||(a=[])).push(new Fc(b,T?null:m.from-s,m.to==null?null:m.to-s))}}return a}function _d(r,s){if(s.full)return null;var c=ye(r,s.from.line)&&qe(r,s.from.line).markedSpans,a=ye(r,s.to.line)&&qe(r,s.to.line).markedSpans;if(!c&&!a)return null;var d=s.from.ch,m=s.to.ch,b=Ie(s.from,s.to)==0,x=oT(c,d,b),T=sT(a,m,b),A=s.text.length==1,H=xe(s.text).length+(A?d:0);if(x)for(var G=0;G<x.length;++G){var se=x[G];if(se.to==null){var ne=Gl(T,se.marker);ne?A&&(se.to=ne.to==null?null:ne.to+H):se.to=d}}if(T)for(var pe=0;pe<T.length;++pe){var we=T[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=Gl(x,we.marker);Te||(we.from=H,A&&(x||(x=[])).push(we))}else we.from+=H,A&&(x||(x=[])).push(we)}x&&(x=Mm(x)),T&&T!=x&&(T=Mm(T));var Le=[x];if(!A){var De=s.text.length-2,Oe;if(De>0&&x)for(var ze=0;ze<x.length;++ze)x[ze].to==null&&(Oe||(Oe=[])).push(new Fc(x[ze].marker,null,null));for(var Je=0;Je<De;++Je)Le.push(Oe);Le.push(T)}return Le}function Mm(r){for(var s=0;s<r.length;++s){var c=r[s];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function lT(r,s,c){var a=null;if(r.iter(s.line,c.line+1,function(ne){if(ne.markedSpans)for(var pe=0;pe<ne.markedSpans.length;++pe){var we=ne.markedSpans[pe].marker;we.readOnly&&(!a||ce(a,we)==-1)&&(a||(a=[])).push(we)}}),!a)return null;for(var d=[{from:s,to:c}],m=0;m<a.length;++m)for(var b=a[m],x=b.find(0),T=0;T<d.length;++T){var A=d[T];if(!(Ie(A.to,x.from)<0||Ie(A.from,x.to)>0)){var H=[T,1],G=Ie(A.from,x.from),se=Ie(A.to,x.to);(G<0||!b.inclusiveLeft&&!G)&&H.push({from:A.from,to:x.from}),(se>0||!b.inclusiveRight&&!se)&&H.push({from:x.to,to:A.to}),d.splice.apply(d,H),T+=H.length-3}}return d}function Lm(r){var s=r.markedSpans;if(s){for(var c=0;c<s.length;++c)s[c].marker.detachLine(r);r.markedSpans=null}}function Om(r,s){if(s){for(var c=0;c<s.length;++c)s[c].marker.attachLine(r);r.markedSpans=s}}function zc(r){return r.inclusiveLeft?-1:0}function Hc(r){return r.inclusiveRight?1:0}function kd(r,s){var c=r.lines.length-s.lines.length;if(c!=0)return c;var a=r.find(),d=s.find(),m=Ie(a.from,d.from)||zc(r)-zc(s);if(m)return-m;var b=Ie(a.to,d.to)||Hc(r)-Hc(s);return b||s.id-r.id}function Rm(r,s){var c=bi&&r.markedSpans,a;if(c)for(var d=void 0,m=0;m<c.length;++m)d=c[m],d.marker.collapsed&&(s?d.from:d.to)==null&&(!a||kd(a,d.marker)<0)&&(a=d.marker);return a}function Pm(r){return Rm(r,!0)}function Bc(r){return Rm(r,!1)}function aT(r,s){var c=bi&&r.markedSpans,a;if(c)for(var d=0;d<c.length;++d){var m=c[d];m.marker.collapsed&&(m.from==null||m.from<s)&&(m.to==null||m.to>s)&&(!a||kd(a,m.marker)<0)&&(a=m.marker)}return a}function Im(r,s,c,a,d){var m=qe(r,s),b=bi&&m.markedSpans;if(b)for(var x=0;x<b.length;++x){var T=b[x];if(T.marker.collapsed){var A=T.marker.find(0),H=Ie(A.from,c)||zc(T.marker)-zc(d),G=Ie(A.to,a)||Hc(T.marker)-Hc(d);if(!(H>=0&&G<=0||H<=0&&G>=0)&&(H<=0&&(T.marker.inclusiveRight&&d.inclusiveLeft?Ie(A.to,c)>=0:Ie(A.to,c)>0)||H>=0&&(T.marker.inclusiveRight&&d.inclusiveLeft?Ie(A.from,a)<=0:Ie(A.from,a)<0)))return!0}}}function Lr(r){for(var s;s=Pm(r);)r=s.find(-1,!0).line;return r}function cT(r){for(var s;s=Bc(r);)r=s.find(1,!0).line;return r}function uT(r){for(var s,c;s=Bc(r);)r=s.find(1,!0).line,(c||(c=[])).push(r);return c}function Td(r,s){var c=qe(r,s),a=Lr(c);return c==a?s:M(a)}function Dm(r,s){if(s>r.lastLine())return s;var c=qe(r,s),a;if(!to(r,c))return s;for(;a=Bc(c);)c=a.find(1,!0).line;return M(c)+1}function to(r,s){var c=bi&&s.markedSpans;if(c){for(var a=void 0,d=0;d<c.length;++d)if(a=c[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&Cd(r,s,a))return!0}}}function Cd(r,s,c){if(c.to==null){var a=c.marker.find(1,!0);return Cd(r,a.line,Gl(a.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==s.text.length)return!0;for(var d=void 0,m=0;m<s.markedSpans.length;++m)if(d=s.markedSpans[m],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(d.to==null||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Cd(r,s,d))return!0}function wi(r){r=Lr(r);for(var s=0,c=r.parent,a=0;a<c.lines.length;++a){var d=c.lines[a];if(d==r)break;s+=d.height}for(var m=c.parent;m;c=m,m=c.parent)for(var b=0;b<m.children.length;++b){var x=m.children[b];if(x==c)break;s+=x.height}return s}function jc(r){if(r.height==0)return 0;for(var s=r.text.length,c,a=r;c=Pm(a);){var d=c.find(0,!0);a=d.from.line,s+=d.from.ch-d.to.ch}for(a=r;c=Bc(a);){var m=c.find(0,!0);s-=a.text.length-m.from.ch,a=m.to.line,s+=a.text.length-m.to.ch}return s}function Ed(r){var s=r.display,c=r.doc;s.maxLine=qe(c,c.first),s.maxLineLength=jc(s.maxLine),s.maxLineChanged=!0,c.iter(function(a){var d=jc(a);d>s.maxLineLength&&(s.maxLineLength=d,s.maxLine=a)})}var Os=function(r,s,c){this.text=r,Om(this,s),this.height=c?c(this):1};Os.prototype.lineNo=function(){return M(this)},Er(Os);function fT(r,s,c,a){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),Lm(r),Om(r,c);var d=a?a(r):1;d!=r.height&&or(r,d)}function dT(r){r.parent=null,Lm(r)}var hT={},pT={};function Fm(r,s){if(!r||/^\s*$/.test(r))return null;var c=s.addModeClass?pT:hT;return c[r]||(c[r]=r.replace(/\S+/g,"cm-$&"))}function zm(r,s){var c=R("span",null,null,g?"padding-right: .1px":null),a={pre:R("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var d=0;d<=(s.rest?s.rest.length:0);d++){var m=d?s.rest[d-1]:s.line,b=void 0;a.pos=0,a.addToken=mT,Zi(r.display.measure)&&(b=at(m,r.doc.direction))&&(a.addToken=yT(a.addToken,b)),a.map=[];var x=s!=r.display.externalMeasured&&M(m);bT(m,a,km(r,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(a.bgClass=Be(m.styleClasses.bgClass,a.bgClass||"")),m.styleClasses.textClass&&(a.textClass=Be(m.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Pc(r.display.measure))),d==0?(s.measure.map=a.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(a.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(g){var T=a.content.lastChild;(/\bcm-tab\b/.test(T.className)||T.querySelector&&T.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return It(r,"renderLine",r,s.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function gT(r){var s=S("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function mT(r,s,c,a,d,m,b){if(s){var x=r.splitSpaces?vT(s,r.trailingSpace):s,T=r.cm.state.specialChars,A=!1,H;if(!T.test(s))r.col+=s.length,H=document.createTextNode(x),r.map.push(r.pos,r.pos+s.length,H),h&&p<9&&(A=!0),r.pos+=s.length;else{H=document.createDocumentFragment();for(var G=0;;){T.lastIndex=G;var se=T.exec(s),ne=se?se.index-G:s.length-G;if(ne){var pe=document.createTextNode(x.slice(G,G+ne));h&&p<9?H.appendChild(S("span",[pe])):H.appendChild(pe),r.map.push(r.pos,r.pos+ne,pe),r.col+=ne,r.pos+=ne}if(!se)break;G+=ne+1;var we=void 0;if(se[0]==" "){var Te=r.cm.options.tabSize,Le=Te-r.col%Te;we=H.appendChild(S("span",Ae(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),r.col+=Le}else se[0]=="\r"||se[0]==`
56
+ `?(we=H.appendChild(S("span",se[0]=="\r"?"␍":"␤","cm-invalidchar")),we.setAttribute("cm-text",se[0]),r.col+=1):(we=r.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(S("span",[we])):H.appendChild(we),r.col+=1);r.map.push(r.pos,r.pos+1,we),r.pos++}}if(r.trailingSpace=x.charCodeAt(s.length-1)==32,c||a||d||A||m||b){var De=c||"";a&&(De+=a),d&&(De+=d);var Oe=S("span",[H],De,m);if(b)for(var ze in b)b.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Oe.setAttribute(ze,b[ze]);return r.content.appendChild(Oe)}r.content.appendChild(H)}}function vT(r,s){if(r.length>1&&!/ /.test(r))return r;for(var c=s,a="",d=0;d<r.length;d++){var m=r.charAt(d);m==" "&&c&&(d==r.length-1||r.charCodeAt(d+1)==32)&&(m=" "),a+=m,c=m==" "}return a}function yT(r,s){return function(c,a,d,m,b,x,T){d=d?d+" cm-force-border":"cm-force-border";for(var A=c.pos,H=A+a.length;;){for(var G=void 0,se=0;se<s.length&&(G=s[se],!(G.to>A&&G.from<=A));se++);if(G.to>=H)return r(c,a,d,m,b,x,T);r(c,a.slice(0,G.to-A),d,m,null,x,T),m=null,a=a.slice(G.to-A),A=G.to}}}function Hm(r,s,c,a){var d=!a&&c.widgetNode;d&&r.map.push(r.pos,r.pos+s,d),!a&&r.cm.display.input.needsContentAttribute&&(d||(d=r.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",c.id)),d&&(r.cm.display.input.setUneditable(d),r.content.appendChild(d)),r.pos+=s,r.trailingSpace=!1}function bT(r,s,c){var a=r.markedSpans,d=r.text,m=0;if(!a){for(var b=1;b<c.length;b+=2)s.addToken(s,d.slice(m,m=c[b]),Fm(c[b+1],s.cm.options));return}for(var x=d.length,T=0,A=1,H="",G,se,ne=0,pe,we,Te,Le,De;;){if(ne==T){pe=we=Te=se="",De=null,Le=null,ne=1/0;for(var Oe=[],ze=void 0,Je=0;Je<a.length;++Je){var Ve=a[Je],lt=Ve.marker;if(lt.type=="bookmark"&&Ve.from==T&&lt.widgetNode)Oe.push(lt);else if(Ve.from<=T&&(Ve.to==null||Ve.to>T||lt.collapsed&&Ve.to==T&&Ve.from==T)){if(Ve.to!=null&&Ve.to!=T&&ne>Ve.to&&(ne=Ve.to,we=""),lt.className&&(pe+=" "+lt.className),lt.css&&(se=(se?se+";":"")+lt.css),lt.startStyle&&Ve.from==T&&(Te+=" "+lt.startStyle),lt.endStyle&&Ve.to==ne&&(ze||(ze=[])).push(lt.endStyle,Ve.to),lt.title&&((De||(De={})).title=lt.title),lt.attributes)for(var Ct in lt.attributes)(De||(De={}))[Ct]=lt.attributes[Ct];lt.collapsed&&(!Le||kd(Le.marker,lt)<0)&&(Le=Ve)}else Ve.from>T&&ne>Ve.from&&(ne=Ve.from)}if(ze)for(var sn=0;sn<ze.length;sn+=2)ze[sn+1]==ne&&(we+=" "+ze[sn]);if(!Le||Le.from==T)for(var Rt=0;Rt<Oe.length;++Rt)Hm(s,0,Oe[Rt]);if(Le&&(Le.from||0)==T){if(Hm(s,(Le.to==null?x+1:Le.to)-T,Le.marker,Le.from==null),Le.to==null)return;Le.to==T&&(Le=!1)}}if(T>=x)break;for(var Xn=Math.min(x,ne);;){if(H){var Ln=T+H.length;if(!Le){var Kt=Ln>Xn?H.slice(0,Xn-T):H;s.addToken(s,Kt,G?G+pe:pe,Te,T+Kt.length==ne?we:"",se,De)}if(Ln>=Xn){H=H.slice(Xn-T),T=Xn;break}T=Ln,Te=""}H=d.slice(m,m=c[A++]),G=Fm(c[A++],s.cm.options)}}}function Bm(r,s,c){this.line=s,this.rest=uT(s),this.size=this.rest?M(xe(this.rest))-c+1:1,this.node=this.text=null,this.hidden=to(r,s)}function Wc(r,s,c){for(var a=[],d,m=s;m<c;m=d){var b=new Bm(r.doc,qe(r.doc,m),m);d=m+b.size,a.push(b)}return a}var Rs=null;function wT(r){Rs?Rs.ops.push(r):r.ownsGroup=Rs={ops:[r],delayedCallbacks:[]}}function xT(r){var s=r.delayedCallbacks,c=0;do{for(;c<s.length;c++)s[c].call(null);for(var a=0;a<r.ops.length;a++){var d=r.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(c<s.length)}function ST(r,s){var c=r.ownsGroup;if(c)try{xT(c)}finally{Rs=null,s(c)}}var Kl=null;function nn(r,s){var c=vi(r,s);if(c.length){var a=Array.prototype.slice.call(arguments,2),d;Rs?d=Rs.delayedCallbacks:Kl?d=Kl:(d=Kl=[],setTimeout(_T,0));for(var m=function(x){d.push(function(){return c[x].apply(null,a)})},b=0;b<c.length;++b)m(b)}}function _T(){var r=Kl;Kl=null;for(var s=0;s<r.length;++s)r[s]()}function jm(r,s,c,a){for(var d=0;d<s.changes.length;d++){var m=s.changes[d];m=="text"?TT(r,s):m=="gutter"?qm(r,s,c,a):m=="class"?Ad(r,s):m=="widget"&&CT(r,s,a)}s.changes=null}function Yl(r){return r.node==r.text&&(r.node=S("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),h&&p<8&&(r.node.style.zIndex=2)),r.node}function kT(r,s){var c=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(c&&(c+=" CodeMirror-linebackground"),s.background)c?s.background.className=c:(s.background.parentNode.removeChild(s.background),s.background=null);else if(c){var a=Yl(s);s.background=a.insertBefore(S("div",null,c),a.firstChild),r.display.input.setUneditable(s.background)}}function Wm(r,s){var c=r.display.externalMeasured;return c&&c.line==s.line?(r.display.externalMeasured=null,s.measure=c.measure,c.built):zm(r,s)}function TT(r,s){var c=s.text.className,a=Wm(r,s);s.text==s.node&&(s.node=a.pre),s.text.parentNode.replaceChild(a.pre,s.text),s.text=a.pre,a.bgClass!=s.bgClass||a.textClass!=s.textClass?(s.bgClass=a.bgClass,s.textClass=a.textClass,Ad(r,s)):c&&(s.text.className=c)}function Ad(r,s){kT(r,s),s.line.wrapClass?Yl(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var c=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=c||""}function qm(r,s,c,a){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var d=Yl(s);s.gutterBackground=S("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(r.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),r.display.input.setUneditable(s.gutterBackground),d.insertBefore(s.gutterBackground,s.text)}var m=s.line.gutterMarkers;if(r.options.lineNumbers||m){var b=Yl(s),x=s.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),r.display.input.setUneditable(x),b.insertBefore(x,s.text),s.line.gutterClass&&(x.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(s.lineNumber=x.appendChild(S("div",ke(r.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),m)for(var T=0;T<r.display.gutterSpecs.length;++T){var A=r.display.gutterSpecs[T].className,H=m.hasOwnProperty(A)&&m[A];H&&x.appendChild(S("div",[H],"CodeMirror-gutter-elt","left: "+a.gutterLeft[A]+"px; width: "+a.gutterWidth[A]+"px"))}}}function CT(r,s,c){s.alignable&&(s.alignable=null);for(var a=K("CodeMirror-linewidget"),d=s.node.firstChild,m=void 0;d;d=m)m=d.nextSibling,a.test(d.className)&&s.node.removeChild(d);Um(r,s,c)}function ET(r,s,c,a){var d=Wm(r,s);return s.text=s.node=d.pre,d.bgClass&&(s.bgClass=d.bgClass),d.textClass&&(s.textClass=d.textClass),Ad(r,s),qm(r,s,c,a),Um(r,s,a),s.node}function Um(r,s,c){if(Vm(r,s.line,s,c,!0),s.rest)for(var a=0;a<s.rest.length;a++)Vm(r,s.rest[a],s,c,!1)}function Vm(r,s,c,a,d){if(s.widgets)for(var m=Yl(c),b=0,x=s.widgets;b<x.length;++b){var T=x[b],A=S("div",[T.node],"CodeMirror-linewidget"+(T.className?" "+T.className:""));T.handleMouseEvents||A.setAttribute("cm-ignore-events","true"),AT(T,A,c,a),r.display.input.setUneditable(A),d&&T.above?m.insertBefore(A,c.gutter||c.text):m.appendChild(A),nn(T,"redraw")}}function AT(r,s,c,a){if(r.noHScroll){(c.alignable||(c.alignable=[])).push(s);var d=a.wrapperWidth;s.style.left=a.fixedPos+"px",r.coverGutter||(d-=a.gutterTotalWidth,s.style.paddingLeft=a.gutterTotalWidth+"px"),s.style.width=d+"px"}r.coverGutter&&(s.style.zIndex=5,s.style.position="relative",r.noHScroll||(s.style.marginLeft=-a.gutterTotalWidth+"px"))}function Xl(r){if(r.height!=null)return r.height;var s=r.doc.cm;if(!s)return 0;if(!ae(document.body,r.node)){var c="position: relative;";r.coverGutter&&(c+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),r.noHScroll&&(c+="width: "+s.display.wrapper.clientWidth+"px;"),k(s.display.measure,S("div",[r.node],null,c))}return r.height=r.node.parentNode.offsetHeight}function xi(r,s){for(var c=jl(s);c!=r.wrapper;c=c.parentNode)if(!c||c.nodeType==1&&c.getAttribute("cm-ignore-events")=="true"||c.parentNode==r.sizer&&c!=r.mover)return!0}function qc(r){return r.lineSpace.offsetTop}function $d(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function Gm(r){if(r.cachedPaddingH)return r.cachedPaddingH;var s=k(r.measure,S("pre","x","CodeMirror-line-like")),c=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,a={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(r.cachedPaddingH=a),a}function ei(r){return F-r.display.nativeBarWidth}function Wo(r){return r.display.scroller.clientWidth-ei(r)-r.display.barWidth}function Nd(r){return r.display.scroller.clientHeight-ei(r)-r.display.barHeight}function $T(r,s,c){var a=r.options.lineWrapping,d=a&&Wo(r);if(!s.measure.heights||a&&s.measure.width!=d){var m=s.measure.heights=[];if(a){s.measure.width=d;for(var b=s.text.firstChild.getClientRects(),x=0;x<b.length-1;x++){var T=b[x],A=b[x+1];Math.abs(T.bottom-A.bottom)>2&&m.push((T.bottom+A.top)/2-c.top)}}m.push(c.bottom-c.top)}}function Km(r,s,c){if(r.line==s)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var a=0;a<r.rest.length;a++)if(r.rest[a]==s)return{map:r.measure.maps[a],cache:r.measure.caches[a]};for(var d=0;d<r.rest.length;d++)if(M(r.rest[d])>c)return{map:r.measure.maps[d],cache:r.measure.caches[d],before:!0}}}function NT(r,s){s=Lr(s);var c=M(s),a=r.display.externalMeasured=new Bm(r.doc,s,c);a.lineN=c;var d=a.built=zm(r,a);return a.text=d.pre,k(r.display.lineMeasure,d.pre),a}function Ym(r,s,c,a){return ti(r,Ps(r,s),c,a)}function Md(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[Vo(r,s)];var c=r.display.externalMeasured;if(c&&s>=c.lineN&&s<c.lineN+c.size)return c}function Ps(r,s){var c=M(s),a=Md(r,c);a&&!a.text?a=null:a&&a.changes&&(jm(r,a,c,Id(r)),r.curOp.forceUpdate=!0),a||(a=NT(r,s));var d=Km(a,s,c);return{line:s,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ti(r,s,c,a,d){s.before&&(c=-1);var m=c+(a||""),b;return s.cache.hasOwnProperty(m)?b=s.cache[m]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||($T(r,s.view,s.rect),s.hasHeights=!0),b=LT(r,s,c,a),b.bogus||(s.cache[m]=b)),{left:b.left,right:b.right,top:d?b.rtop:b.top,bottom:d?b.rbottom:b.bottom}}var Xm={left:0,right:0,top:0,bottom:0};function Jm(r,s,c){for(var a,d,m,b,x,T,A=0;A<r.length;A+=3)if(x=r[A],T=r[A+1],s<x?(d=0,m=1,b="left"):s<T?(d=s-x,m=d+1):(A==r.length-3||s==T&&r[A+3]>s)&&(m=T-x,d=m-1,s>=T&&(b="right")),d!=null){if(a=r[A+2],x==T&&c==(a.insertLeft?"left":"right")&&(b=c),c=="left"&&d==0)for(;A&&r[A-2]==r[A-3]&&r[A-1].insertLeft;)a=r[(A-=3)+2],b="left";if(c=="right"&&d==T-x)for(;A<r.length-3&&r[A+3]==r[A+4]&&!r[A+5].insertLeft;)a=r[(A+=3)+2],b="right";break}return{node:a,start:d,end:m,collapse:b,coverStart:x,coverEnd:T}}function MT(r,s){var c=Xm;if(s=="left")for(var a=0;a<r.length&&(c=r[a]).left==c.right;a++);else for(var d=r.length-1;d>=0&&(c=r[d]).left==c.right;d--);return c}function LT(r,s,c,a){var d=Jm(s.map,c,a),m=d.node,b=d.start,x=d.end,T=d.collapse,A;if(m.nodeType==3){for(var H=0;H<4;H++){for(;b&&ut(s.line.text.charAt(d.coverStart+b));)--b;for(;d.coverStart+x<d.coverEnd&&ut(s.line.text.charAt(d.coverStart+x));)++x;if(h&&p<9&&b==0&&x==d.coverEnd-d.coverStart?A=m.parentNode.getBoundingClientRect():A=MT(B(m,b,x).getClientRects(),a),A.left||A.right||b==0)break;x=b,b=b-1,T="right"}h&&p<11&&(A=OT(r.display.measure,A))}else{b>0&&(T=a="right");var G;r.options.lineWrapping&&(G=m.getClientRects()).length>1?A=G[a=="right"?G.length-1:0]:A=m.getBoundingClientRect()}if(h&&p<9&&!b&&(!A||!A.left&&!A.right)){var se=m.parentNode.getClientRects()[0];se?A={left:se.left,right:se.left+Ds(r.display),top:se.top,bottom:se.bottom}:A=Xm}for(var ne=A.top-s.rect.top,pe=A.bottom-s.rect.top,we=(ne+pe)/2,Te=s.view.measure.heights,Le=0;Le<Te.length-1&&!(we<Te[Le]);Le++);var De=Le?Te[Le-1]:0,Oe=Te[Le],ze={left:(T=="right"?A.right:A.left)-s.rect.left,right:(T=="left"?A.left:A.right)-s.rect.left,top:De,bottom:Oe};return!A.left&&!A.right&&(ze.bogus=!0),r.options.singleCursorHeightPerLine||(ze.rtop=ne,ze.rbottom=pe),ze}function OT(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wd(r))return s;var c=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*c,right:s.right*c,top:s.top*a,bottom:s.bottom*a}}function Zm(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var s=0;s<r.rest.length;s++)r.measure.caches[s]={}}function Qm(r){r.display.externalMeasure=null,O(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)Zm(r.display.view[s])}function Jl(r){Qm(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function ev(r){return y&&D?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function tv(r){return y&&D?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function Ld(r){var s=Lr(r),c=s.widgets,a=0;if(c)for(var d=0;d<c.length;++d)c[d].above&&(a+=Xl(c[d]));return a}function Uc(r,s,c,a,d){if(!d){var m=Ld(s);c.top+=m,c.bottom+=m}if(a=="line")return c;a||(a="local");var b=wi(s);if(a=="local"?b+=qc(r.display):b-=r.display.viewOffset,a=="page"||a=="window"){var x=r.display.lineSpace.getBoundingClientRect();b+=x.top+(a=="window"?0:tv(Ge(r)));var T=x.left+(a=="window"?0:ev(Ge(r)));c.left+=T,c.right+=T}return c.top+=b,c.bottom+=b,c}function nv(r,s,c){if(c=="div")return s;var a=s.left,d=s.top;if(c=="page")a-=ev(Ge(r)),d-=tv(Ge(r));else if(c=="local"||!c){var m=r.display.sizer.getBoundingClientRect();a+=m.left,d+=m.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:a-b.left,top:d-b.top}}function Vc(r,s,c,a,d){return a||(a=qe(r.doc,s.line)),Uc(r,a,Ym(r,a,s.ch,d),c)}function Or(r,s,c,a,d,m){a=a||qe(r.doc,s.line),d||(d=Ps(r,a));function b(pe,we){var Te=ti(r,d,pe,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,Uc(r,a,Te,c)}var x=at(a,r.doc.direction),T=s.ch,A=s.sticky;if(T>=a.text.length?(T=a.text.length,A="before"):T<=0&&(T=0,A="after"),!x)return b(A=="before"?T-1:T,A=="before");function H(pe,we,Te){var Le=x[we],De=Le.level==1;return b(Te?pe-1:pe,De!=Te)}var G=Wt(x,T,A),se=Jr,ne=H(T,G,A=="before");return se!=null&&(ne.other=H(T,se,A!="before")),ne}function rv(r,s){var c=0;s=it(r.doc,s),r.options.lineWrapping||(c=Ds(r.display)*s.ch);var a=qe(r.doc,s.line),d=wi(a)+qc(r.display);return{left:c,right:c,top:d,bottom:d+a.height}}function Od(r,s,c,a,d){var m=fe(r,s,c);return m.xRel=d,a&&(m.outside=a),m}function Rd(r,s,c){var a=r.doc;if(c+=r.display.viewOffset,c<0)return Od(a.first,0,null,-1,-1);var d=V(a,c),m=a.first+a.size-1;if(d>m)return Od(a.first+a.size-1,qe(a,m).text.length,null,1,1);s<0&&(s=0);for(var b=qe(a,d);;){var x=RT(r,b,d,s,c),T=aT(b,x.ch+(x.xRel>0||x.outside>0?1:0));if(!T)return x;var A=T.find(1);if(A.line==d)return A;b=qe(a,d=A.line)}}function iv(r,s,c,a){a-=Ld(s);var d=s.text.length,m=Gt(function(b){return ti(r,c,b-1).bottom<=a},d,0);return d=Gt(function(b){return ti(r,c,b).top>a},m,d),{begin:m,end:d}}function ov(r,s,c,a){c||(c=Ps(r,s));var d=Uc(r,s,ti(r,c,a),"line").top;return iv(r,s,c,d)}function Pd(r,s,c,a){return r.bottom<=c?!1:r.top>c?!0:(a?r.left:r.right)>s}function RT(r,s,c,a,d){d-=wi(s);var m=Ps(r,s),b=Ld(s),x=0,T=s.text.length,A=!0,H=at(s,r.doc.direction);if(H){var G=(r.options.lineWrapping?IT:PT)(r,s,c,m,H,a,d);A=G.level!=1,x=A?G.from:G.to-1,T=A?G.to:G.from-1}var se=null,ne=null,pe=Gt(function(Je){var Ve=ti(r,m,Je);return Ve.top+=b,Ve.bottom+=b,Pd(Ve,a,d,!1)?(Ve.top<=d&&Ve.left<=a&&(se=Je,ne=Ve),!0):!1},x,T),we,Te,Le=!1;if(ne){var De=a-ne.left<ne.right-a,Oe=De==A;pe=se+(Oe?0:1),Te=Oe?"after":"before",we=De?ne.left:ne.right}else{!A&&(pe==T||pe==x)&&pe++,Te=pe==0?"after":pe==s.text.length?"before":ti(r,m,pe-(A?1:0)).bottom+b<=d==A?"after":"before";var ze=Or(r,fe(c,pe,Te),"line",s,m);we=ze.left,Le=d<ze.top?-1:d>=ze.bottom?1:0}return pe=en(s.text,pe,1),Od(c,pe,Te,Le,a-we)}function PT(r,s,c,a,d,m,b){var x=Gt(function(G){var se=d[G],ne=se.level!=1;return Pd(Or(r,fe(c,ne?se.to:se.from,ne?"before":"after"),"line",s,a),m,b,!0)},0,d.length-1),T=d[x];if(x>0){var A=T.level!=1,H=Or(r,fe(c,A?T.from:T.to,A?"after":"before"),"line",s,a);Pd(H,m,b,!0)&&H.top>b&&(T=d[x-1])}return T}function IT(r,s,c,a,d,m,b){var x=iv(r,s,a,b),T=x.begin,A=x.end;/\s/.test(s.text.charAt(A-1))&&A--;for(var H=null,G=null,se=0;se<d.length;se++){var ne=d[se];if(!(ne.from>=A||ne.to<=T)){var pe=ne.level!=1,we=ti(r,a,pe?Math.min(A,ne.to)-1:Math.max(T,ne.from)).right,Te=we<m?m-we+1e9:we-m;(!H||G>Te)&&(H=ne,G=Te)}}return H||(H=d[d.length-1]),H.from<T&&(H={from:T,to:H.to,level:H.level}),H.to>A&&(H={from:H.from,to:A,level:H.level}),H}var qo;function Is(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(qo==null){qo=S("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)qo.appendChild(document.createTextNode("x")),qo.appendChild(S("br"));qo.appendChild(document.createTextNode("x"))}k(r.measure,qo);var c=qo.offsetHeight/50;return c>3&&(r.cachedTextHeight=c),O(r.measure),c||1}function Ds(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var s=S("span","xxxxxxxxxx"),c=S("pre",[s],"CodeMirror-line-like");k(r.measure,c);var a=s.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(r.cachedCharWidth=d),d||10}function Id(r){for(var s=r.display,c={},a={},d=s.gutters.clientLeft,m=s.gutters.firstChild,b=0;m;m=m.nextSibling,++b){var x=r.display.gutterSpecs[b].className;c[x]=m.offsetLeft+m.clientLeft+d,a[x]=m.clientWidth}return{fixedPos:Dd(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:c,gutterWidth:a,wrapperWidth:s.wrapper.clientWidth}}function Dd(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function sv(r){var s=Is(r.display),c=r.options.lineWrapping,a=c&&Math.max(5,r.display.scroller.clientWidth/Ds(r.display)-3);return function(d){if(to(r.doc,d))return 0;var m=0;if(d.widgets)for(var b=0;b<d.widgets.length;b++)d.widgets[b].height&&(m+=d.widgets[b].height);return c?m+(Math.ceil(d.text.length/a)||1)*s:m+s}}function Fd(r){var s=r.doc,c=sv(r);s.iter(function(a){var d=c(a);d!=a.height&&or(a,d)})}function Uo(r,s,c,a){var d=r.display;if(!c&&jl(s).getAttribute("cm-not-content")=="true")return null;var m,b,x=d.lineSpace.getBoundingClientRect();try{m=s.clientX-x.left,b=s.clientY-x.top}catch{return null}var T=Rd(r,m,b),A;if(a&&T.xRel>0&&(A=qe(r.doc,T.line).text).length==T.ch){var H=re(A,A.length,r.options.tabSize)-A.length;T=fe(T.line,Math.max(0,Math.round((m-Gm(r.display).left)/Ds(r.display))-H))}return T}function Vo(r,s){if(s>=r.display.viewTo||(s-=r.display.viewFrom,s<0))return null;for(var c=r.display.view,a=0;a<c.length;a++)if(s-=c[a].size,s<0)return a}function Nn(r,s,c,a){s==null&&(s=r.doc.first),c==null&&(c=r.doc.first+r.doc.size),a||(a=0);var d=r.display;if(a&&c<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>s)&&(d.updateLineNumbers=s),r.curOp.viewChanged=!0,s>=d.viewTo)bi&&Td(r.doc,s)<d.viewTo&&ro(r);else if(c<=d.viewFrom)bi&&Dm(r.doc,c+a)>d.viewFrom?ro(r):(d.viewFrom+=a,d.viewTo+=a);else if(s<=d.viewFrom&&c>=d.viewTo)ro(r);else if(s<=d.viewFrom){var m=Gc(r,c,c+a,1);m?(d.view=d.view.slice(m.index),d.viewFrom=m.lineN,d.viewTo+=a):ro(r)}else if(c>=d.viewTo){var b=Gc(r,s,s,-1);b?(d.view=d.view.slice(0,b.index),d.viewTo=b.lineN):ro(r)}else{var x=Gc(r,s,s,-1),T=Gc(r,c,c+a,1);x&&T?(d.view=d.view.slice(0,x.index).concat(Wc(r,x.lineN,T.lineN)).concat(d.view.slice(T.index)),d.viewTo+=a):ro(r)}var A=d.externalMeasured;A&&(c<A.lineN?A.lineN+=a:s<A.lineN+A.size&&(d.externalMeasured=null))}function no(r,s,c){r.curOp.viewChanged=!0;var a=r.display,d=r.display.externalMeasured;if(d&&s>=d.lineN&&s<d.lineN+d.size&&(a.externalMeasured=null),!(s<a.viewFrom||s>=a.viewTo)){var m=a.view[Vo(r,s)];if(m.node!=null){var b=m.changes||(m.changes=[]);ce(b,c)==-1&&b.push(c)}}}function ro(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function Gc(r,s,c,a){var d=Vo(r,s),m,b=r.display.view;if(!bi||c==r.doc.first+r.doc.size)return{index:d,lineN:c};for(var x=r.display.viewFrom,T=0;T<d;T++)x+=b[T].size;if(x!=s){if(a>0){if(d==b.length-1)return null;m=x+b[d].size-s,d++}else m=x-s;s+=m,c+=m}for(;Td(r.doc,c)!=c;){if(d==(a<0?0:b.length-1))return null;c+=a*b[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:c}}function DT(r,s,c){var a=r.display,d=a.view;d.length==0||s>=a.viewTo||c<=a.viewFrom?(a.view=Wc(r,s,c),a.viewFrom=s):(a.viewFrom>s?a.view=Wc(r,s,a.viewFrom).concat(a.view):a.viewFrom<s&&(a.view=a.view.slice(Vo(r,s))),a.viewFrom=s,a.viewTo<c?a.view=a.view.concat(Wc(r,a.viewTo,c)):a.viewTo>c&&(a.view=a.view.slice(0,Vo(r,c)))),a.viewTo=c}function lv(r){for(var s=r.display.view,c=0,a=0;a<s.length;a++){var d=s[a];!d.hidden&&(!d.node||d.changes)&&++c}return c}function Zl(r){r.display.input.showSelection(r.display.input.prepareSelection())}function av(r,s){s===void 0&&(s=!0);var c=r.doc,a={},d=a.cursors=document.createDocumentFragment(),m=a.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(s=!0);for(var x=0;x<c.sel.ranges.length;x++)if(!(!s&&x==c.sel.primIndex)){var T=c.sel.ranges[x];if(!(T.from().line>=r.display.viewTo||T.to().line<r.display.viewFrom)){var A=T.empty();if(b){var H=b(r,T);H&&zd(r,H,d)}else(A||r.options.showCursorWhenSelecting)&&zd(r,T.head,d);A||FT(r,T,m)}}return a}function zd(r,s,c){var a=Or(r,s,"div",null,null,!r.options.singleCursorHeightPerLine),d=c.appendChild(S("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var m=Vc(r,s,"div",null,null),b=m.right-m.left;d.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(a.other){var x=c.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=a.other.left+"px",x.style.top=a.other.top+"px",x.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function Kc(r,s){return r.top-s.top||r.left-s.left}function FT(r,s,c){var a=r.display,d=r.doc,m=document.createDocumentFragment(),b=Gm(r.display),x=b.left,T=Math.max(a.sizerWidth,Wo(r)-a.sizer.offsetLeft)-b.right,A=d.direction=="ltr";function H(Oe,ze,Je,Ve){ze<0&&(ze=0),ze=Math.round(ze),Ve=Math.round(Ve),m.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Oe+`px;
57
+ top: `+ze+"px; width: "+(Je??T-Oe)+`px;
58
+ height: `+(Ve-ze)+"px"))}function G(Oe,ze,Je){var Ve=qe(d,Oe),lt=Ve.text.length,Ct,sn;function Rt(Kt,On){return Vc(r,fe(Oe,Kt),"div",Ve,On)}function Xn(Kt,On,cn){var Jt=ov(r,Ve,null,Kt),Yt=On=="ltr"==(cn=="after")?"left":"right",zt=cn=="after"?Jt.begin:Jt.end-(/\s/.test(Ve.text.charAt(Jt.end-1))?2:1);return Rt(zt,Yt)[Yt]}var Ln=at(Ve,d.direction);return Vn(Ln,ze||0,Je??lt,function(Kt,On,cn,Jt){var Yt=cn=="ltr",zt=Rt(Kt,Yt?"left":"right"),Rn=Rt(On-1,Yt?"right":"left"),Xs=ze==null&&Kt==0,co=Je==null&&On==lt,mn=Jt==0,ni=!Ln||Jt==Ln.length-1;if(Rn.top-zt.top<=3){var ln=(A?Xs:co)&&mn,dh=(A?co:Xs)&&ni,ki=ln?x:(Yt?zt:Rn).left,Jo=dh?T:(Yt?Rn:zt).right;H(ki,zt.top,Jo-ki,zt.bottom)}else{var Zo,_n,Js,hh;Yt?(Zo=A&&Xs&&mn?x:zt.left,_n=A?T:Xn(Kt,cn,"before"),Js=A?x:Xn(On,cn,"after"),hh=A&&co&&ni?T:Rn.right):(Zo=A?Xn(Kt,cn,"before"):x,_n=!A&&Xs&&mn?T:zt.right,Js=!A&&co&&ni?x:Rn.left,hh=A?Xn(On,cn,"after"):T),H(Zo,zt.top,_n-Zo,zt.bottom),zt.bottom<Rn.top&&H(x,zt.bottom,null,Rn.top),H(Js,Rn.top,hh-Js,Rn.bottom)}(!Ct||Kc(zt,Ct)<0)&&(Ct=zt),Kc(Rn,Ct)<0&&(Ct=Rn),(!sn||Kc(zt,sn)<0)&&(sn=zt),Kc(Rn,sn)<0&&(sn=Rn)}),{start:Ct,end:sn}}var se=s.from(),ne=s.to();if(se.line==ne.line)G(se.line,se.ch,ne.ch);else{var pe=qe(d,se.line),we=qe(d,ne.line),Te=Lr(pe)==Lr(we),Le=G(se.line,se.ch,Te?pe.text.length+1:null).end,De=G(ne.line,Te?0:null,ne.ch).start;Te&&(Le.top<De.top-2?(H(Le.right,Le.top,null,Le.bottom),H(x,De.top,De.left,De.bottom)):H(Le.right,Le.top,De.left-Le.right,Le.bottom)),Le.bottom<De.top&&H(x,Le.bottom,null,De.top)}c.appendChild(m)}function Hd(r){if(r.state.focused){var s=r.display;clearInterval(s.blinker);var c=!0;s.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?s.blinker=setInterval(function(){r.hasFocus()||Fs(r),s.cursorDiv.style.visibility=(c=!c)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function cv(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||jd(r))}function Bd(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&Fs(r))},100)}function jd(r,s){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(It(r,"focus",r,s),r.state.focused=!0,_e(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),g&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),Hd(r))}function Fs(r,s){r.state.delayingBlurEvent||(r.state.focused&&(It(r,"blur",r,s),r.state.focused=!1,P(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function Yc(r){for(var s=r.display,c=s.lineDiv.offsetTop,a=Math.max(0,s.scroller.getBoundingClientRect().top),d=s.lineDiv.getBoundingClientRect().top,m=0,b=0;b<s.view.length;b++){var x=s.view[b],T=r.options.lineWrapping,A=void 0,H=0;if(!x.hidden){if(d+=x.line.height,h&&p<8){var G=x.node.offsetTop+x.node.offsetHeight;A=G-c,c=G}else{var se=x.node.getBoundingClientRect();A=se.bottom-se.top,!T&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var ne=x.line.height-A;if((ne>.005||ne<-.005)&&(d<a&&(m-=ne),or(x.line,A),uv(x.line),x.rest))for(var pe=0;pe<x.rest.length;pe++)uv(x.rest[pe]);if(H>r.display.sizerWidth){var we=Math.ceil(H/Ds(r.display));we>r.display.maxLineLength&&(r.display.maxLineLength=we,r.display.maxLine=x.line,r.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(s.scroller.scrollTop+=m)}function uv(r){if(r.widgets)for(var s=0;s<r.widgets.length;++s){var c=r.widgets[s],a=c.node.parentNode;a&&(c.height=a.offsetHeight)}}function Xc(r,s,c){var a=c&&c.top!=null?Math.max(0,c.top):r.scroller.scrollTop;a=Math.floor(a-qc(r));var d=c&&c.bottom!=null?c.bottom:a+r.wrapper.clientHeight,m=V(s,a),b=V(s,d);if(c&&c.ensure){var x=c.ensure.from.line,T=c.ensure.to.line;x<m?(m=x,b=V(s,wi(qe(s,x))+r.wrapper.clientHeight)):Math.min(T,s.lastLine())>=b&&(m=V(s,wi(qe(s,T))-r.wrapper.clientHeight),b=T)}return{from:m,to:Math.max(b,m+1)}}function zT(r,s){if(!Dt(r,"scrollCursorIntoView")){var c=r.display,a=c.sizer.getBoundingClientRect(),d=null,m=c.wrapper.ownerDocument;if(s.top+a.top<0?d=!0:s.bottom+a.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(d=!1),d!=null&&!E){var b=S("div","​",null,`position: absolute;
59
+ top: `+(s.top-c.viewOffset-qc(r.display))+`px;
60
+ height: `+(s.bottom-s.top+ei(r)+c.barHeight)+`px;
61
+ left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(d),r.display.lineSpace.removeChild(b)}}}function HT(r,s,c,a){a==null&&(a=0);var d;!r.options.lineWrapping&&s==c&&(c=s.sticky=="before"?fe(s.line,s.ch+1,"before"):s,s=s.ch?fe(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var m=0;m<5;m++){var b=!1,x=Or(r,s),T=!c||c==s?x:Or(r,c);d={left:Math.min(x.left,T.left),top:Math.min(x.top,T.top)-a,right:Math.max(x.left,T.left),bottom:Math.max(x.bottom,T.bottom)+a};var A=Wd(r,d),H=r.doc.scrollTop,G=r.doc.scrollLeft;if(A.scrollTop!=null&&(ea(r,A.scrollTop),Math.abs(r.doc.scrollTop-H)>1&&(b=!0)),A.scrollLeft!=null&&(Go(r,A.scrollLeft),Math.abs(r.doc.scrollLeft-G)>1&&(b=!0)),!b)break}return d}function BT(r,s){var c=Wd(r,s);c.scrollTop!=null&&ea(r,c.scrollTop),c.scrollLeft!=null&&Go(r,c.scrollLeft)}function Wd(r,s){var c=r.display,a=Is(r.display);s.top<0&&(s.top=0);var d=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:c.scroller.scrollTop,m=Nd(r),b={};s.bottom-s.top>m&&(s.bottom=s.top+m);var x=r.doc.height+$d(c),T=s.top<a,A=s.bottom>x-a;if(s.top<d)b.scrollTop=T?0:s.top;else if(s.bottom>d+m){var H=Math.min(s.top,(A?x:s.bottom)-m);H!=d&&(b.scrollTop=H)}var G=r.options.fixedGutter?0:c.gutters.offsetWidth,se=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:c.scroller.scrollLeft-G,ne=Wo(r)-c.gutters.offsetWidth,pe=s.right-s.left>ne;return pe&&(s.right=s.left+ne),s.left<10?b.scrollLeft=0:s.left<se?b.scrollLeft=Math.max(0,s.left+G-(pe?0:10)):s.right>ne+se-3&&(b.scrollLeft=s.right+(pe?0:10)-ne),b}function qd(r,s){s!=null&&(Jc(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function zs(r){Jc(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Ql(r,s,c){(s!=null||c!=null)&&Jc(r),s!=null&&(r.curOp.scrollLeft=s),c!=null&&(r.curOp.scrollTop=c)}function jT(r,s){Jc(r),r.curOp.scrollToPos=s}function Jc(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var c=rv(r,s.from),a=rv(r,s.to);fv(r,c,a,s.margin)}}function fv(r,s,c,a){var d=Wd(r,{left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-a,right:Math.max(s.right,c.right),bottom:Math.max(s.bottom,c.bottom)+a});Ql(r,d.scrollLeft,d.scrollTop)}function ea(r,s){Math.abs(r.doc.scrollTop-s)<2||(o||Vd(r,{top:s}),dv(r,s,!0),o&&Vd(r),ra(r,100))}function dv(r,s,c){s=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,s)),!(r.display.scroller.scrollTop==s&&!c)&&(r.doc.scrollTop=s,r.display.scrollbars.setScrollTop(s),r.display.scroller.scrollTop!=s&&(r.display.scroller.scrollTop=s))}function Go(r,s,c,a){s=Math.max(0,Math.min(s,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((c?s==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-s)<2)&&!a)&&(r.doc.scrollLeft=s,vv(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function ta(r){var s=r.display,c=s.gutters.offsetWidth,a=Math.round(r.doc.height+$d(r.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:r.options.fixedGutter?c:0,docHeight:a,scrollHeight:a+ei(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:c}}var Ko=function(r,s,c){this.cm=c;var a=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,r(a),r(d),Xe(a,"scroll",function(){a.clientHeight&&s(a.scrollTop,"vertical")}),Xe(d,"scroll",function(){d.clientWidth&&s(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(r){var s=r.scrollWidth>r.clientWidth+1,c=r.scrollHeight>r.clientHeight+1,a=r.nativeBarWidth;if(c){this.vert.style.display="block",this.vert.style.bottom=s?a+"px":"0";var d=r.viewHeight-(s?a:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+d)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=c?a+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(c?a:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:c?a:0,bottom:s?a:0}},Ko.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var r=I&&!C?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},Ko.prototype.enableZeroWidthBar=function(r,s,c){r.style.visibility="";function a(){var d=r.getBoundingClientRect(),m=c=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);m!=r?r.style.visibility="hidden":s.set(1e3,a)}s.set(1e3,a)},Ko.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var na=function(){};na.prototype.update=function(){return{bottom:0,right:0}},na.prototype.setScrollLeft=function(){},na.prototype.setScrollTop=function(){},na.prototype.clear=function(){};function Hs(r,s){s||(s=ta(r));var c=r.display.barWidth,a=r.display.barHeight;hv(r,s);for(var d=0;d<4&&c!=r.display.barWidth||a!=r.display.barHeight;d++)c!=r.display.barWidth&&r.options.lineWrapping&&Yc(r),hv(r,ta(r)),c=r.display.barWidth,a=r.display.barHeight}function hv(r,s){var c=r.display,a=c.scrollbars.update(s);c.sizer.style.paddingRight=(c.barWidth=a.right)+"px",c.sizer.style.paddingBottom=(c.barHeight=a.bottom)+"px",c.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=a.bottom+"px",c.scrollbarFiller.style.width=a.right+"px"):c.scrollbarFiller.style.display="",a.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=a.bottom+"px",c.gutterFiller.style.width=s.gutterWidth+"px"):c.gutterFiller.style.display=""}var pv={native:Ko,null:na};function gv(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&P(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new pv[r.options.scrollbarStyle](function(s){r.display.wrapper.insertBefore(s,r.display.scrollbarFiller),Xe(s,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,c){c=="horizontal"?Go(r,s):ea(r,s)},r),r.display.scrollbars.addClass&&_e(r.display.wrapper,r.display.scrollbars.addClass)}var WT=0;function Yo(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.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:++WT,markArrays:null},wT(r.curOp)}function Xo(r){var s=r.curOp;s&&ST(s,function(c){for(var a=0;a<c.ops.length;a++)c.ops[a].cm.curOp=null;qT(c)})}function qT(r){for(var s=r.ops,c=0;c<s.length;c++)UT(s[c]);for(var a=0;a<s.length;a++)VT(s[a]);for(var d=0;d<s.length;d++)GT(s[d]);for(var m=0;m<s.length;m++)KT(s[m]);for(var b=0;b<s.length;b++)YT(s[b])}function UT(r){var s=r.cm,c=s.display;JT(s),r.updateMaxLine&&Ed(s),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<c.viewFrom||r.scrollToPos.to.line>=c.viewTo)||c.maxLineChanged&&s.options.lineWrapping,r.update=r.mustUpdate&&new Zc(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function VT(r){r.updatedDisplay=r.mustUpdate&&Ud(r.cm,r.update)}function GT(r){var s=r.cm,c=s.display;r.updatedDisplay&&Yc(s),r.barMeasure=ta(s),c.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=Ym(s,c.maxLine,c.maxLine.text.length).left+3,s.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(c.scroller.clientWidth,c.sizer.offsetLeft+r.adjustWidthTo+ei(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,c.sizer.offsetLeft+r.adjustWidthTo-Wo(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=c.input.prepareSelection())}function KT(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&Go(s,Math.min(s.display.scroller.scrollLeft,r.maxScrollLeft),!0),s.display.maxLineChanged=!1);var c=r.focus&&r.focus==ve(Ue(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,c),(r.updatedDisplay||r.startHeight!=s.doc.height)&&Hs(s,r.barMeasure),r.updatedDisplay&&Kd(s,r.barMeasure),r.selectionChanged&&Hd(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),c&&cv(r.cm)}function YT(r){var s=r.cm,c=s.display,a=s.doc;if(r.updatedDisplay&&mv(s,r.update),c.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(c.wheelStartX=c.wheelStartY=null),r.scrollTop!=null&&dv(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Go(s,r.scrollLeft,!0,!0),r.scrollToPos){var d=HT(s,it(a,r.scrollToPos.from),it(a,r.scrollToPos.to),r.scrollToPos.margin);zT(s,d)}var m=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||It(m[x],"hide");if(b)for(var T=0;T<b.length;++T)b[T].lines.length&&It(b[T],"unhide");c.wrapper.offsetHeight&&(a.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&It(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function Yn(r,s){if(r.curOp)return s();Yo(r);try{return s()}finally{Xo(r)}}function rn(r,s){return function(){if(r.curOp)return s.apply(r,arguments);Yo(r);try{return s.apply(r,arguments)}finally{Xo(r)}}}function Sn(r){return function(){if(this.curOp)return r.apply(this,arguments);Yo(this);try{return r.apply(this,arguments)}finally{Xo(this)}}}function on(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);Yo(s);try{return r.apply(this,arguments)}finally{Xo(s)}}}function ra(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,z(XT,r))}function XT(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var c=+new Date+r.options.workTime,a=Vl(r,s.highlightFrontier),d=[];s.iter(a.line,Math.min(s.first+s.size,r.display.viewTo+500),function(m){if(a.line>=r.display.viewFrom){var b=m.styles,x=m.text.length>r.options.maxHighlightLength?Zr(s.mode,a.state):null,T=_m(r,m,a,!0);x&&(a.state=x),m.styles=T.styles;var A=m.styleClasses,H=T.classes;H?m.styleClasses=H:A&&(m.styleClasses=null);for(var G=!b||b.length!=m.styles.length||A!=H&&(!A||!H||A.bgClass!=H.bgClass||A.textClass!=H.textClass),se=0;!G&&se<b.length;++se)G=b[se]!=m.styles[se];G&&d.push(a.line),m.stateAfter=a.save(),a.nextLine()}else m.text.length<=r.options.maxHighlightLength&&xd(r,m.text,a),m.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>c)return ra(r,r.options.workDelay),!0}),s.highlightFrontier=a.line,s.modeFrontier=Math.max(s.modeFrontier,a.line),d.length&&Yn(r,function(){for(var m=0;m<d.length;m++)no(r,d[m],"text")})}}var Zc=function(r,s,c){var a=r.display;this.viewport=s,this.visible=Xc(a,r.doc,s),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Wo(r),this.force=c,this.dims=Id(r),this.events=[]};Zc.prototype.signal=function(r,s){Kn(r,s)&&this.events.push(arguments)},Zc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)It.apply(null,this.events[r])};function JT(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=ei(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=ei(r)+"px",s.scrollbarsClipped=!0)}function ZT(r){if(r.hasFocus())return null;var s=ve(Ue(r));if(!s||!ae(r.display.lineDiv,s))return null;var c={activeElt:s};if(window.getSelection){var a=Re(r).getSelection();a.anchorNode&&a.extend&&ae(r.display.lineDiv,a.anchorNode)&&(c.anchorNode=a.anchorNode,c.anchorOffset=a.anchorOffset,c.focusNode=a.focusNode,c.focusOffset=a.focusOffset)}return c}function QT(r){if(!(!r||!r.activeElt||r.activeElt==ve(He(r.activeElt)))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&ae(document.body,r.anchorNode)&&ae(document.body,r.focusNode))){var s=r.activeElt.ownerDocument,c=s.defaultView.getSelection(),a=s.createRange();a.setEnd(r.anchorNode,r.anchorOffset),a.collapse(!1),c.removeAllRanges(),c.addRange(a),c.extend(r.focusNode,r.focusOffset)}}function Ud(r,s){var c=r.display,a=r.doc;if(s.editorIsHidden)return ro(r),!1;if(!s.force&&s.visible.from>=c.viewFrom&&s.visible.to<=c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo)&&c.renderedView==c.view&&lv(r)==0)return!1;yv(r)&&(ro(r),s.dims=Id(r));var d=a.first+a.size,m=Math.max(s.visible.from-r.options.viewportMargin,a.first),b=Math.min(d,s.visible.to+r.options.viewportMargin);c.viewFrom<m&&m-c.viewFrom<20&&(m=Math.max(a.first,c.viewFrom)),c.viewTo>b&&c.viewTo-b<20&&(b=Math.min(d,c.viewTo)),bi&&(m=Td(r.doc,m),b=Dm(r.doc,b));var x=m!=c.viewFrom||b!=c.viewTo||c.lastWrapHeight!=s.wrapperHeight||c.lastWrapWidth!=s.wrapperWidth;DT(r,m,b),c.viewOffset=wi(qe(r.doc,c.viewFrom)),r.display.mover.style.top=c.viewOffset+"px";var T=lv(r);if(!x&&T==0&&!s.force&&c.renderedView==c.view&&(c.updateLineNumbers==null||c.updateLineNumbers>=c.viewTo))return!1;var A=ZT(r);return T>4&&(c.lineDiv.style.display="none"),eC(r,c.updateLineNumbers,s.dims),T>4&&(c.lineDiv.style.display=""),c.renderedView=c.view,QT(A),O(c.cursorDiv),O(c.selectionDiv),c.gutters.style.height=c.sizer.style.minHeight=0,x&&(c.lastWrapHeight=s.wrapperHeight,c.lastWrapWidth=s.wrapperWidth,ra(r,400)),c.updateLineNumbers=null,!0}function mv(r,s){for(var c=s.viewport,a=!0;;a=!1){if(!a||!r.options.lineWrapping||s.oldDisplayWidth==Wo(r)){if(c&&c.top!=null&&(c={top:Math.min(r.doc.height+$d(r.display)-Nd(r),c.top)}),s.visible=Xc(r.display,r.doc,c),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else a&&(s.visible=Xc(r.display,r.doc,c));if(!Ud(r,s))break;Yc(r);var d=ta(r);Zl(r),Hs(r,d),Kd(r,d),s.force=!1}s.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(s.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function Vd(r,s){var c=new Zc(r,s);if(Ud(r,c)){Yc(r),mv(r,c);var a=ta(r);Zl(r),Hs(r,a),Kd(r,a),c.finish()}}function eC(r,s,c){var a=r.display,d=r.options.lineNumbers,m=a.lineDiv,b=m.firstChild;function x(pe){var we=pe.nextSibling;return g&&I&&r.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var T=a.view,A=a.viewFrom,H=0;H<T.length;H++){var G=T[H];if(!G.hidden)if(!G.node||G.node.parentNode!=m){var se=ET(r,G,A,c);m.insertBefore(se,b)}else{for(;b!=G.node;)b=x(b);var ne=d&&s!=null&&s<=A&&G.lineNumber;G.changes&&(ce(G.changes,"gutter")>-1&&(ne=!1),jm(r,G,A,c)),ne&&(O(G.lineNumber),G.lineNumber.appendChild(document.createTextNode(ke(r.options,A)))),b=G.node.nextSibling}A+=G.size}for(;b;)b=x(b)}function Gd(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",nn(r,"gutterChanged",r)}function Kd(r,s){r.display.sizer.style.minHeight=s.docHeight+"px",r.display.heightForcer.style.top=s.docHeight+"px",r.display.gutters.style.height=s.docHeight+r.display.barHeight+ei(r)+"px"}function vv(r){var s=r.display,c=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var a=Dd(s)-s.scroller.scrollLeft+r.doc.scrollLeft,d=s.gutters.offsetWidth,m=a+"px",b=0;b<c.length;b++)if(!c[b].hidden){r.options.fixedGutter&&(c[b].gutter&&(c[b].gutter.style.left=m),c[b].gutterBackground&&(c[b].gutterBackground.style.left=m));var x=c[b].alignable;if(x)for(var T=0;T<x.length;T++)x[T].style.left=m}r.options.fixedGutter&&(s.gutters.style.left=a+d+"px")}}function yv(r){if(!r.options.lineNumbers)return!1;var s=r.doc,c=ke(r.options,s.first+s.size-1),a=r.display;if(c.length!=a.lineNumChars){var d=a.measure.appendChild(S("div",[S("div",c)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=d.firstChild.offsetWidth,b=d.offsetWidth-m;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(m,a.lineGutter.offsetWidth-b)+1,a.lineNumWidth=a.lineNumInnerWidth+b,a.lineNumChars=a.lineNumInnerWidth?c.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Gd(r.display),!0}return!1}function Yd(r,s){for(var c=[],a=!1,d=0;d<r.length;d++){var m=r[d],b=null;if(typeof m!="string"&&(b=m.style,m=m.className),m=="CodeMirror-linenumbers")if(s)a=!0;else continue;c.push({className:m,style:b})}return s&&!a&&c.push({className:"CodeMirror-linenumbers",style:null}),c}function bv(r){var s=r.gutters,c=r.gutterSpecs;O(s),r.lineGutter=null;for(var a=0;a<c.length;++a){var d=c[a],m=d.className,b=d.style,x=s.appendChild(S("div",null,"CodeMirror-gutter "+m));b&&(x.style.cssText=b),m=="CodeMirror-linenumbers"&&(r.lineGutter=x,x.style.width=(r.lineNumWidth||1)+"px")}s.style.display=c.length?"":"none",Gd(r)}function ia(r){bv(r.display),Nn(r),vv(r)}function tC(r,s,c,a){var d=this;this.input=c,d.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=R("div",null,"CodeMirror-code"),d.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=S("div",null,"CodeMirror-cursors"),d.measure=S("div",null,"CodeMirror-measure"),d.lineMeasure=S("div",null,"CodeMirror-measure"),d.lineSpace=R("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var m=R("div",[d.lineSpace],"CodeMirror-lines");d.mover=S("div",[m],null,"position: relative"),d.sizer=S("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=S("div",null,null,"position: absolute; height: "+F+"px; width: 1px;"),d.gutters=S("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=S("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=S("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),y&&w>=105&&(d.wrapper.style.clipPath="inset(0px)"),d.wrapper.setAttribute("translate","no"),h&&p<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!g&&!(o&&N)&&(d.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(d.wrapper):r(d.wrapper)),d.viewFrom=d.viewTo=s.first,d.reportedViewFrom=d.reportedViewTo=s.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Yd(a.gutters,a.lineNumbers),bv(d),c.init(d)}var Qc=0,Si=null;h?Si=-.53:o?Si=15:y?Si=-.7:_&&(Si=-1/3);function wv(r){var s=r.wheelDeltaX,c=r.wheelDeltaY;return s==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(s=r.detail),c==null&&r.detail&&r.axis==r.VERTICAL_AXIS?c=r.detail:c==null&&(c=r.wheelDelta),{x:s,y:c}}function nC(r){var s=wv(r);return s.x*=Si,s.y*=Si,s}function xv(r,s){y&&w==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var c=wv(s),a=c.x,d=c.y,m=Si;s.deltaMode===0&&(a=s.deltaX,d=s.deltaY,m=1);var b=r.display,x=b.scroller,T=x.scrollWidth>x.clientWidth,A=x.scrollHeight>x.clientHeight;if(a&&T||d&&A){if(d&&I&&g){e:for(var H=s.target,G=b.view;H!=x;H=H.parentNode)for(var se=0;se<G.length;se++)if(G[se].node==H){r.display.currentWheelTarget=H;break e}}if(a&&!o&&!$&&m!=null){d&&A&&ea(r,Math.max(0,x.scrollTop+d*m)),Go(r,Math.max(0,x.scrollLeft+a*m)),(!d||d&&A)&&pn(s),b.wheelStartX=null;return}if(d&&m!=null){var ne=d*m,pe=r.doc.scrollTop,we=pe+b.wrapper.clientHeight;ne<0?pe=Math.max(0,pe+ne-50):we=Math.min(r.doc.height,we+ne+50),Vd(r,{top:pe,bottom:we})}Qc<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=x.scrollLeft,b.wheelStartY=x.scrollTop,b.wheelDX=a,b.wheelDY=d,setTimeout(function(){if(b.wheelStartX!=null){var Te=x.scrollLeft-b.wheelStartX,Le=x.scrollTop-b.wheelStartY,De=Le&&b.wheelDY&&Le/b.wheelDY||Te&&b.wheelDX&&Te/b.wheelDX;b.wheelStartX=b.wheelStartY=null,De&&(Si=(Si*Qc+De)/(Qc+1),++Qc)}},200)):(b.wheelDX+=a,b.wheelDY+=d))}}var sr=function(r,s){this.ranges=r,this.primIndex=s};sr.prototype.primary=function(){return this.ranges[this.primIndex]},sr.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var c=this.ranges[s],a=r.ranges[s];if(!gt(c.anchor,a.anchor)||!gt(c.head,a.head))return!1}return!0},sr.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new mt(tn(this.ranges[s].anchor),tn(this.ranges[s].head));return new sr(r,this.primIndex)},sr.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},sr.prototype.contains=function(r,s){s||(s=r);for(var c=0;c<this.ranges.length;c++){var a=this.ranges[c];if(Ie(s,a.from())>=0&&Ie(r,a.to())<=0)return c}return-1};var mt=function(r,s){this.anchor=r,this.head=s};mt.prototype.from=function(){return Ls(this.anchor,this.head)},mt.prototype.to=function(){return $n(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Rr(r,s,c){var a=r&&r.options.selectionsMayTouch,d=s[c];s.sort(function(se,ne){return Ie(se.from(),ne.from())}),c=ce(s,d);for(var m=1;m<s.length;m++){var b=s[m],x=s[m-1],T=Ie(x.to(),b.from());if(a&&!b.empty()?T>0:T>=0){var A=Ls(x.from(),b.from()),H=$n(x.to(),b.to()),G=x.empty()?b.from()==b.head:x.from()==x.head;m<=c&&--c,s.splice(--m,2,new mt(G?H:A,G?A:H))}}return new sr(s,c)}function io(r,s){return new sr([new mt(r,s||r)],0)}function oo(r){return r.text?fe(r.from.line+r.text.length-1,xe(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function Sv(r,s){if(Ie(r,s.from)<0)return r;if(Ie(r,s.to)<=0)return oo(s);var c=r.line+s.text.length-(s.to.line-s.from.line)-1,a=r.ch;return r.line==s.to.line&&(a+=oo(s).ch-s.to.ch),fe(c,a)}function Xd(r,s){for(var c=[],a=0;a<r.sel.ranges.length;a++){var d=r.sel.ranges[a];c.push(new mt(Sv(d.anchor,s),Sv(d.head,s)))}return Rr(r.cm,c,r.sel.primIndex)}function _v(r,s,c){return r.line==s.line?fe(c.line,r.ch-s.ch+c.ch):fe(c.line+(r.line-s.line),r.ch)}function rC(r,s,c){for(var a=[],d=fe(r.first,0),m=d,b=0;b<s.length;b++){var x=s[b],T=_v(x.from,d,m),A=_v(oo(x),d,m);if(d=x.to,m=A,c=="around"){var H=r.sel.ranges[b],G=Ie(H.head,H.anchor)<0;a[b]=new mt(G?A:T,G?T:A)}else a[b]=new mt(T,T)}return new sr(a,r.sel.primIndex)}function Jd(r){r.doc.mode=$s(r.options,r.doc.modeOption),oa(r)}function oa(r){r.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,ra(r,100),r.state.modeGen++,r.curOp&&Nn(r)}function kv(r,s){return s.from.ch==0&&s.to.ch==0&&xe(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function Zd(r,s,c,a){function d(De){return c?c[De]:null}function m(De,Oe,ze){fT(De,Oe,ze,a),nn(De,"change",De,s)}function b(De,Oe){for(var ze=[],Je=De;Je<Oe;++Je)ze.push(new Os(A[Je],d(Je),a));return ze}var x=s.from,T=s.to,A=s.text,H=qe(r,x.line),G=qe(r,T.line),se=xe(A),ne=d(A.length-1),pe=T.line-x.line;if(s.full)r.insert(0,b(0,A.length)),r.remove(A.length,r.size-A.length);else if(kv(r,s)){var we=b(0,A.length-1);m(G,G.text,ne),pe&&r.remove(x.line,pe),we.length&&r.insert(x.line,we)}else if(H==G)if(A.length==1)m(H,H.text.slice(0,x.ch)+se+H.text.slice(T.ch),ne);else{var Te=b(1,A.length-1);Te.push(new Os(se+H.text.slice(T.ch),ne,a)),m(H,H.text.slice(0,x.ch)+A[0],d(0)),r.insert(x.line+1,Te)}else if(A.length==1)m(H,H.text.slice(0,x.ch)+A[0]+G.text.slice(T.ch),d(0)),r.remove(x.line+1,pe);else{m(H,H.text.slice(0,x.ch)+A[0],d(0)),m(G,se+G.text.slice(T.ch),ne);var Le=b(1,A.length-1);pe>1&&r.remove(x.line+1,pe-1),r.insert(x.line+1,Le)}nn(r,"change",r,s)}function so(r,s,c){function a(d,m,b){if(d.linked)for(var x=0;x<d.linked.length;++x){var T=d.linked[x];if(T.doc!=m){var A=b&&T.sharedHist;c&&!A||(s(T.doc,A),a(T.doc,d,A))}}}a(r,null,!0)}function Tv(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,Fd(r),Jd(r),Cv(r),r.options.direction=s.direction,r.options.lineWrapping||Ed(r),r.options.mode=s.modeOption,Nn(r)}function Cv(r){(r.doc.direction=="rtl"?_e:P)(r.display.lineDiv,"CodeMirror-rtl")}function iC(r){Yn(r,function(){Cv(r),Nn(r)})}function eu(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function Qd(r,s){var c={from:tn(s.from),to:oo(s),text:yi(r,s.from,s.to)};return $v(r,c,s.from.line,s.to.line+1),so(r,function(a){return $v(a,c,s.from.line,s.to.line+1)},!0),c}function Ev(r){for(;r.length;){var s=xe(r);if(s.ranges)r.pop();else break}}function oC(r,s){if(s)return Ev(r.done),xe(r.done);if(r.done.length&&!xe(r.done).ranges)return xe(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),xe(r.done)}function Av(r,s,c,a){var d=r.history;d.undone.length=0;var m=+new Date,b,x;if((d.lastOp==a||d.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&d.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=oC(d,d.lastOp==a)))x=xe(b.changes),Ie(s.from,s.to)==0&&Ie(s.from,x.to)==0?x.to=oo(s):b.changes.push(Qd(r,s));else{var T=xe(d.done);for((!T||!T.ranges)&&tu(r.sel,d.done),b={changes:[Qd(r,s)],generation:d.generation},d.done.push(b);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(c),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=m,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=s.origin,x||It(r,"historyAdded")}function sC(r,s,c,a){var d=s.charAt(0);return d=="*"||d=="+"&&c.ranges.length==a.ranges.length&&c.somethingSelected()==a.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function lC(r,s,c,a){var d=r.history,m=a&&a.origin;c==d.lastSelOp||m&&d.lastSelOrigin==m&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==m||sC(r,m,xe(d.done),s))?d.done[d.done.length-1]=s:tu(s,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=m,d.lastSelOp=c,a&&a.clearRedo!==!1&&Ev(d.undone)}function tu(r,s){var c=xe(s);c&&c.ranges&&c.equals(r)||s.push(r)}function $v(r,s,c,a){var d=s["spans_"+r.id],m=0;r.iter(Math.max(r.first,c),Math.min(r.first+r.size,a),function(b){b.markedSpans&&((d||(d=s["spans_"+r.id]={}))[m]=b.markedSpans),++m})}function aC(r){if(!r)return null;for(var s,c=0;c<r.length;++c)r[c].marker.explicitlyCleared?s||(s=r.slice(0,c)):s&&s.push(r[c]);return s?s.length?s:null:r}function cC(r,s){var c=s["spans_"+r.id];if(!c)return null;for(var a=[],d=0;d<s.text.length;++d)a.push(aC(c[d]));return a}function Nv(r,s){var c=cC(r,s),a=_d(r,s);if(!c)return a;if(!a)return c;for(var d=0;d<c.length;++d){var m=c[d],b=a[d];if(m&&b)e:for(var x=0;x<b.length;++x){for(var T=b[x],A=0;A<m.length;++A)if(m[A].marker==T.marker)continue e;m.push(T)}else b&&(c[d]=b)}return c}function Bs(r,s,c){for(var a=[],d=0;d<r.length;++d){var m=r[d];if(m.ranges){a.push(c?sr.prototype.deepCopy.call(m):m);continue}var b=m.changes,x=[];a.push({changes:x});for(var T=0;T<b.length;++T){var A=b[T],H=void 0;if(x.push({from:A.from,to:A.to,text:A.text}),s)for(var G in A)(H=G.match(/^spans_(\d+)$/))&&ce(s,Number(H[1]))>-1&&(xe(x)[G]=A[G],delete A[G])}}return a}function eh(r,s,c,a){if(a){var d=r.anchor;if(c){var m=Ie(s,d)<0;m!=Ie(c,d)<0?(d=s,s=c):m!=Ie(s,c)<0&&(s=c)}return new mt(d,s)}else return new mt(c||s,s)}function nu(r,s,c,a,d){d==null&&(d=r.cm&&(r.cm.display.shift||r.extend)),gn(r,new sr([eh(r.sel.primary(),s,c,d)],0),a)}function Mv(r,s,c){for(var a=[],d=r.cm&&(r.cm.display.shift||r.extend),m=0;m<r.sel.ranges.length;m++)a[m]=eh(r.sel.ranges[m],s[m],null,d);var b=Rr(r.cm,a,r.sel.primIndex);gn(r,b,c)}function th(r,s,c,a){var d=r.sel.ranges.slice(0);d[s]=c,gn(r,Rr(r.cm,d,r.sel.primIndex),a)}function Lv(r,s,c,a){gn(r,io(s,c),a)}function uC(r,s,c){var a={ranges:s.ranges,update:function(d){this.ranges=[];for(var m=0;m<d.length;m++)this.ranges[m]=new mt(it(r,d[m].anchor),it(r,d[m].head))},origin:c&&c.origin};return It(r,"beforeSelectionChange",r,a),r.cm&&It(r.cm,"beforeSelectionChange",r.cm,a),a.ranges!=s.ranges?Rr(r.cm,a.ranges,a.ranges.length-1):s}function Ov(r,s,c){var a=r.history.done,d=xe(a);d&&d.ranges?(a[a.length-1]=s,ru(r,s,c)):gn(r,s,c)}function gn(r,s,c){ru(r,s,c),lC(r,r.sel,r.cm?r.cm.curOp.id:NaN,c)}function ru(r,s,c){(Kn(r,"beforeSelectionChange")||r.cm&&Kn(r.cm,"beforeSelectionChange"))&&(s=uC(r,s,c));var a=c&&c.bias||(Ie(s.primary().head,r.sel.primary().head)<0?-1:1);Rv(r,Iv(r,s,a,!0)),!(c&&c.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&zs(r.cm)}function Rv(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,yr(r.cm)),nn(r,"cursorActivity",r))}function Pv(r){Rv(r,Iv(r,r.sel,null,!1))}function Iv(r,s,c,a){for(var d,m=0;m<s.ranges.length;m++){var b=s.ranges[m],x=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[m],T=iu(r,b.anchor,x&&x.anchor,c,a),A=b.head==b.anchor?T:iu(r,b.head,x&&x.head,c,a);(d||T!=b.anchor||A!=b.head)&&(d||(d=s.ranges.slice(0,m)),d[m]=new mt(T,A))}return d?Rr(r.cm,d,s.primIndex):s}function js(r,s,c,a,d){var m=qe(r,s.line);if(m.markedSpans)for(var b=0;b<m.markedSpans.length;++b){var x=m.markedSpans[b],T=x.marker,A="selectLeft"in T?!T.selectLeft:T.inclusiveLeft,H="selectRight"in T?!T.selectRight:T.inclusiveRight;if((x.from==null||(A?x.from<=s.ch:x.from<s.ch))&&(x.to==null||(H?x.to>=s.ch:x.to>s.ch))){if(d&&(It(T,"beforeCursorEnter"),T.explicitlyCleared))if(m.markedSpans){--b;continue}else break;if(!T.atomic)continue;if(c){var G=T.find(a<0?1:-1),se=void 0;if((a<0?H:A)&&(G=Dv(r,G,-a,G&&G.line==s.line?m:null)),G&&G.line==s.line&&(se=Ie(G,c))&&(a<0?se<0:se>0))return js(r,G,s,a,d)}var ne=T.find(a<0?-1:1);return(a<0?A:H)&&(ne=Dv(r,ne,a,ne.line==s.line?m:null)),ne?js(r,ne,s,a,d):null}}return s}function iu(r,s,c,a,d){var m=a||1,b=js(r,s,c,m,d)||!d&&js(r,s,c,m,!0)||js(r,s,c,-m,d)||!d&&js(r,s,c,-m,!0);return b||(r.cantEdit=!0,fe(r.first,0))}function Dv(r,s,c,a){return c<0&&s.ch==0?s.line>r.first?it(r,fe(s.line-1)):null:c>0&&s.ch==(a||qe(r,s.line)).text.length?s.line<r.first+r.size-1?fe(s.line+1,0):null:new fe(s.line,s.ch+c)}function Fv(r){r.setSelection(fe(r.firstLine(),0),fe(r.lastLine()),ee)}function zv(r,s,c){var a={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return a.canceled=!0}};return c&&(a.update=function(d,m,b,x){d&&(a.from=it(r,d)),m&&(a.to=it(r,m)),b&&(a.text=b),x!==void 0&&(a.origin=x)}),It(r,"beforeChange",r,a),r.cm&&It(r.cm,"beforeChange",r.cm,a),a.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Ws(r,s,c){if(r.cm){if(!r.cm.curOp)return rn(r.cm,Ws)(r,s,c);if(r.cm.state.suppressEdits)return}if(!((Kn(r,"beforeChange")||r.cm&&Kn(r.cm,"beforeChange"))&&(s=zv(r,s,!0),!s))){var a=Nm&&!c&&lT(r,s.from,s.to);if(a)for(var d=a.length-1;d>=0;--d)Hv(r,{from:a[d].from,to:a[d].to,text:d?[""]:s.text,origin:s.origin});else Hv(r,s)}}function Hv(r,s){if(!(s.text.length==1&&s.text[0]==""&&Ie(s.from,s.to)==0)){var c=Xd(r,s);Av(r,s,c,r.cm?r.cm.curOp.id:NaN),sa(r,s,c,_d(r,s));var a=[];so(r,function(d,m){!m&&ce(a,d.history)==-1&&(qv(d.history,s),a.push(d.history)),sa(d,s,null,_d(d,s))})}}function ou(r,s,c){var a=r.cm&&r.cm.state.suppressEdits;if(!(a&&!c)){for(var d=r.history,m,b=r.sel,x=s=="undo"?d.done:d.undone,T=s=="undo"?d.undone:d.done,A=0;A<x.length&&(m=x[A],!(c?m.ranges&&!m.equals(r.sel):!m.ranges));A++);if(A!=x.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(tu(m,T),c&&!m.equals(r.sel)){gn(r,m,{clearRedo:!1});return}b=m}else if(a){x.push(m);return}else break;var H=[];tu(b,T),T.push({changes:H,generation:d.generation}),d.generation=m.generation||++d.maxGeneration;for(var G=Kn(r,"beforeChange")||r.cm&&Kn(r.cm,"beforeChange"),se=function(we){var Te=m.changes[we];if(Te.origin=s,G&&!zv(r,Te,!1))return x.length=0,{};H.push(Qd(r,Te));var Le=we?Xd(r,Te):xe(x);sa(r,Te,Le,Nv(r,Te)),!we&&r.cm&&r.cm.scrollIntoView({from:Te.from,to:oo(Te)});var De=[];so(r,function(Oe,ze){!ze&&ce(De,Oe.history)==-1&&(qv(Oe.history,Te),De.push(Oe.history)),sa(Oe,Te,null,Nv(Oe,Te))})},ne=m.changes.length-1;ne>=0;--ne){var pe=se(ne);if(pe)return pe.v}}}}function Bv(r,s){if(s!=0&&(r.first+=s,r.sel=new sr(be(r.sel.ranges,function(d){return new mt(fe(d.anchor.line+s,d.anchor.ch),fe(d.head.line+s,d.head.ch))}),r.sel.primIndex),r.cm)){Nn(r.cm,r.first,r.first-s,s);for(var c=r.cm.display,a=c.viewFrom;a<c.viewTo;a++)no(r.cm,a,"gutter")}}function sa(r,s,c,a){if(r.cm&&!r.cm.curOp)return rn(r.cm,sa)(r,s,c,a);if(s.to.line<r.first){Bv(r,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>r.lastLine())){if(s.from.line<r.first){var d=s.text.length-1-(r.first-s.from.line);Bv(r,d),s={from:fe(r.first,0),to:fe(s.to.line+d,s.to.ch),text:[xe(s.text)],origin:s.origin}}var m=r.lastLine();s.to.line>m&&(s={from:s.from,to:fe(m,qe(r,m).text.length),text:[s.text[0]],origin:s.origin}),s.removed=yi(r,s.from,s.to),c||(c=Xd(r,s)),r.cm?fC(r.cm,s,a):Zd(r,s,a),ru(r,c,ee),r.cantEdit&&iu(r,fe(r.firstLine(),0))&&(r.cantEdit=!1)}}function fC(r,s,c){var a=r.doc,d=r.display,m=s.from,b=s.to,x=!1,T=m.line;r.options.lineWrapping||(T=M(Lr(qe(a,m.line))),a.iter(T,b.line+1,function(ne){if(ne==d.maxLine)return x=!0,!0})),a.sel.contains(s.from,s.to)>-1&&yr(r),Zd(a,s,c,sv(r)),r.options.lineWrapping||(a.iter(T,m.line+s.text.length,function(ne){var pe=jc(ne);pe>d.maxLineLength&&(d.maxLine=ne,d.maxLineLength=pe,d.maxLineChanged=!0,x=!1)}),x&&(r.curOp.updateMaxLine=!0)),eT(a,m.line),ra(r,400);var A=s.text.length-(b.line-m.line)-1;s.full?Nn(r):m.line==b.line&&s.text.length==1&&!kv(r.doc,s)?no(r,m.line,"text"):Nn(r,m.line,b.line+1,A);var H=Kn(r,"changes"),G=Kn(r,"change");if(G||H){var se={from:m,to:b,text:s.text,removed:s.removed,origin:s.origin};G&&nn(r,"change",r,se),H&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(se)}r.display.selForContextMenu=null}function qs(r,s,c,a,d){var m;a||(a=c),Ie(a,c)<0&&(m=[a,c],c=m[0],a=m[1]),typeof s=="string"&&(s=r.splitLines(s)),Ws(r,{from:c,to:a,text:s,origin:d})}function jv(r,s,c,a){c<r.line?r.line+=a:s<r.line&&(r.line=s,r.ch=0)}function Wv(r,s,c,a){for(var d=0;d<r.length;++d){var m=r[d],b=!0;if(m.ranges){m.copied||(m=r[d]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)jv(m.ranges[x].anchor,s,c,a),jv(m.ranges[x].head,s,c,a);continue}for(var T=0;T<m.changes.length;++T){var A=m.changes[T];if(c<A.from.line)A.from=fe(A.from.line+a,A.from.ch),A.to=fe(A.to.line+a,A.to.ch);else if(s<=A.to.line){b=!1;break}}b||(r.splice(0,d+1),d=0)}}function qv(r,s){var c=s.from.line,a=s.to.line,d=s.text.length-(a-c)-1;Wv(r.done,c,a,d),Wv(r.undone,c,a,d)}function la(r,s,c,a){var d=s,m=s;return typeof s=="number"?m=qe(r,xm(r,s)):d=M(s),d==null?null:(a(m,d)&&r.cm&&no(r.cm,d,c),m)}function aa(r){this.lines=r,this.parent=null;for(var s=0,c=0;c<r.length;++c)r[c].parent=this,s+=r[c].height;this.height=s}aa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,s){for(var c=r,a=r+s;c<a;++c){var d=this.lines[c];this.height-=d.height,dT(d),nn(d,"delete")}this.lines.splice(r,s)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,s,c){this.height+=c,this.lines=this.lines.slice(0,r).concat(s).concat(this.lines.slice(r));for(var a=0;a<s.length;++a)s[a].parent=this},iterN:function(r,s,c){for(var a=r+s;r<a;++r)if(c(this.lines[r]))return!0}};function ca(r){this.children=r;for(var s=0,c=0,a=0;a<r.length;++a){var d=r[a];s+=d.chunkSize(),c+=d.height,d.parent=this}this.size=s,this.height=c,this.parent=null}ca.prototype={chunkSize:function(){return this.size},removeInner:function(r,s){this.size-=s;for(var c=0;c<this.children.length;++c){var a=this.children[c],d=a.chunkSize();if(r<d){var m=Math.min(s,d-r),b=a.height;if(a.removeInner(r,m),this.height-=b-a.height,d==m&&(this.children.splice(c--,1),a.parent=null),(s-=m)==0)break;r=0}else r-=d}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof aa))){var x=[];this.collapse(x),this.children=[new aa(x)],this.children[0].parent=this}},collapse:function(r){for(var s=0;s<this.children.length;++s)this.children[s].collapse(r)},insertInner:function(r,s,c){this.size+=s.length,this.height+=c;for(var a=0;a<this.children.length;++a){var d=this.children[a],m=d.chunkSize();if(r<=m){if(d.insertInner(r,s,c),d.lines&&d.lines.length>50){for(var b=d.lines.length%25+25,x=b;x<d.lines.length;){var T=new aa(d.lines.slice(x,x+=25));d.height-=T.height,this.children.splice(++a,0,T),T.parent=this}d.lines=d.lines.slice(0,b),this.maybeSpill()}break}r-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var s=r.children.splice(r.children.length-5,5),c=new ca(s);if(r.parent){r.size-=c.size,r.height-=c.height;var d=ce(r.parent.children,r);r.parent.children.splice(d+1,0,c)}else{var a=new ca(r.children);a.parent=r,r.children=[a,c],r=a}c.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,s,c){for(var a=0;a<this.children.length;++a){var d=this.children[a],m=d.chunkSize();if(r<m){var b=Math.min(s,m-r);if(d.iterN(r,b,c))return!0;if((s-=b)==0)break;r=0}else r-=m}}};var ua=function(r,s,c){if(c)for(var a in c)c.hasOwnProperty(a)&&(this[a]=c[a]);this.doc=r,this.node=s};ua.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,c=this.line,a=M(c);if(!(a==null||!s)){for(var d=0;d<s.length;++d)s[d]==this&&s.splice(d--,1);s.length||(c.widgets=null);var m=Xl(this);or(c,Math.max(0,c.height-m)),r&&(Yn(r,function(){Uv(r,c,-m),no(r,a,"widget")}),nn(r,"lineWidgetCleared",r,this,a))}},ua.prototype.changed=function(){var r=this,s=this.height,c=this.doc.cm,a=this.line;this.height=null;var d=Xl(this)-s;d&&(to(this.doc,a)||or(a,a.height+d),c&&Yn(c,function(){c.curOp.forceUpdate=!0,Uv(c,a,d),nn(c,"lineWidgetChanged",c,r,M(a))}))},Er(ua);function Uv(r,s,c){wi(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&qd(r,c)}function dC(r,s,c,a){var d=new ua(r,c,a),m=r.cm;return m&&d.noHScroll&&(m.display.alignWidgets=!0),la(r,s,"widget",function(b){var x=b.widgets||(b.widgets=[]);if(d.insertAt==null?x.push(d):x.splice(Math.min(x.length,Math.max(0,d.insertAt)),0,d),d.line=b,m&&!to(r,b)){var T=wi(b)<r.scrollTop;or(b,b.height+Xl(d)),T&&qd(m,d.height),m.curOp.forceUpdate=!0}return!0}),m&&nn(m,"lineWidgetAdded",m,d,typeof s=="number"?s:M(s)),d}var Vv=0,lo=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++Vv};lo.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&Yo(r),Kn(this,"clear")){var c=this.find();c&&nn(this,"clear",c.from,c.to)}for(var a=null,d=null,m=0;m<this.lines.length;++m){var b=this.lines[m],x=Gl(b.markedSpans,this);r&&!this.collapsed?no(r,M(b),"text"):r&&(x.to!=null&&(d=M(b)),x.from!=null&&(a=M(b))),b.markedSpans=rT(b.markedSpans,x),x.from==null&&this.collapsed&&!to(this.doc,b)&&r&&or(b,Is(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var T=0;T<this.lines.length;++T){var A=Lr(this.lines[T]),H=jc(A);H>r.display.maxLineLength&&(r.display.maxLine=A,r.display.maxLineLength=H,r.display.maxLineChanged=!0)}a!=null&&r&&this.collapsed&&Nn(r,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&Pv(r.doc)),r&&nn(r,"markerCleared",r,this,a,d),s&&Xo(r),this.parent&&this.parent.clear()}},lo.prototype.find=function(r,s){r==null&&this.type=="bookmark"&&(r=1);for(var c,a,d=0;d<this.lines.length;++d){var m=this.lines[d],b=Gl(m.markedSpans,this);if(b.from!=null&&(c=fe(s?m:M(m),b.from),r==-1))return c;if(b.to!=null&&(a=fe(s?m:M(m),b.to),r==1))return a}return c&&{from:c,to:a}},lo.prototype.changed=function(){var r=this,s=this.find(-1,!0),c=this,a=this.doc.cm;!s||!a||Yn(a,function(){var d=s.line,m=M(s.line),b=Md(a,m);if(b&&(Zm(b),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!to(c.doc,d)&&c.height!=null){var x=c.height;c.height=null;var T=Xl(c)-x;T&&or(d,d.height+T)}nn(a,"markerChanged",a,r)})},lo.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||ce(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},lo.prototype.detachLine=function(r){if(this.lines.splice(ce(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Er(lo);function Us(r,s,c,a,d){if(a&&a.shared)return hC(r,s,c,a,d);if(r.cm&&!r.cm.curOp)return rn(r.cm,Us)(r,s,c,a,d);var m=new lo(r,d),b=Ie(s,c);if(a&&Z(a,m,!1),b>0||b==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=R("span",[m.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Im(r,s.line,s,c,m)||s.line!=c.line&&Im(r,c.line,s,c,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");nT()}m.addToHistory&&Av(r,{from:s,to:c,origin:"markText"},r.sel,NaN);var x=s.line,T=r.cm,A;if(r.iter(x,c.line+1,function(G){T&&m.collapsed&&!T.options.lineWrapping&&Lr(G)==T.display.maxLine&&(A=!0),m.collapsed&&x!=s.line&&or(G,0),iT(G,new Fc(m,x==s.line?s.ch:null,x==c.line?c.ch:null),r.cm&&r.cm.curOp),++x}),m.collapsed&&r.iter(s.line,c.line+1,function(G){to(r,G)&&or(G,0)}),m.clearOnEnter&&Xe(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(tT(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++Vv,m.atomic=!0),T){if(A&&(T.curOp.updateMaxLine=!0),m.collapsed)Nn(T,s.line,c.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=s.line;H<=c.line;H++)no(T,H,"text");m.atomic&&Pv(T.doc),nn(T,"markerAdded",T,m)}return m}var fa=function(r,s){this.markers=r,this.primary=s;for(var c=0;c<r.length;++c)r[c].parent=this};fa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();nn(this,"clear")}},fa.prototype.find=function(r,s){return this.primary.find(r,s)},Er(fa);function hC(r,s,c,a,d){a=Z(a),a.shared=!1;var m=[Us(r,s,c,a,d)],b=m[0],x=a.widgetNode;return so(r,function(T){x&&(a.widgetNode=x.cloneNode(!0)),m.push(Us(T,it(T,s),it(T,c),a,d));for(var A=0;A<T.linked.length;++A)if(T.linked[A].isParent)return;b=xe(m)}),new fa(m,b)}function Gv(r){return r.findMarks(fe(r.first,0),r.clipPos(fe(r.lastLine())),function(s){return s.parent})}function pC(r,s){for(var c=0;c<s.length;c++){var a=s[c],d=a.find(),m=r.clipPos(d.from),b=r.clipPos(d.to);if(Ie(m,b)){var x=Us(r,m,b,a.primary,a.primary.type);a.markers.push(x),x.parent=a}}}function gC(r){for(var s=function(a){var d=r[a],m=[d.primary.doc];so(d.primary.doc,function(T){return m.push(T)});for(var b=0;b<d.markers.length;b++){var x=d.markers[b];ce(m,x.doc)==-1&&(x.parent=null,d.markers.splice(b--,1))}},c=0;c<r.length;c++)s(c)}var mC=0,Mn=function(r,s,c,a,d){if(!(this instanceof Mn))return new Mn(r,s,c,a,d);c==null&&(c=0),ca.call(this,[new aa([new Os("",null)])]),this.first=c,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=c;var m=fe(c,0);this.sel=io(m),this.history=new eu(null),this.id=++mC,this.modeOption=s,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),Zd(this,{from:m,to:m,text:r}),gn(this,io(m),ee)};Mn.prototype=oe(ca.prototype,{constructor:Mn,iter:function(r,s,c){c?this.iterN(r-this.first,s-r,c):this.iterN(this.first,this.first+this.size,r)},insert:function(r,s){for(var c=0,a=0;a<s.length;++a)c+=s[a].height;this.insertInner(r-this.first,s,c)},remove:function(r,s){this.removeInner(r-this.first,s)},getValue:function(r){var s=Ul(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:on(function(r){var s=fe(this.first,0),c=this.first+this.size-1;Ws(this,{from:s,to:fe(c,qe(this,c).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Ql(this.cm,0,0),gn(this,io(s),ee)}),replaceRange:function(r,s,c,a){s=it(this,s),c=c?it(this,c):s,qs(this,r,s,c,a)},getRange:function(r,s,c){var a=yi(this,it(this,r),it(this,s));return c===!1?a:c===""?a.join(""):a.join(c||this.lineSeparator())},getLine:function(r){var s=this.getLineHandle(r);return s&&s.text},getLineHandle:function(r){if(ye(this,r))return qe(this,r)},getLineNumber:function(r){return M(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=qe(this,r)),Lr(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return it(this,r)},getCursor:function(r){var s=this.sel.primary(),c;return r==null||r=="head"?c=s.head:r=="anchor"?c=s.anchor:r=="end"||r=="to"||r===!1?c=s.to():c=s.from(),c},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:on(function(r,s,c){Lv(this,it(this,typeof r=="number"?fe(r,s||0):r),null,c)}),setSelection:on(function(r,s,c){Lv(this,it(this,r),it(this,s||r),c)}),extendSelection:on(function(r,s,c){nu(this,it(this,r),s&&it(this,s),c)}),extendSelections:on(function(r,s){Mv(this,Sm(this,r),s)}),extendSelectionsBy:on(function(r,s){var c=be(this.sel.ranges,r);Mv(this,Sm(this,c),s)}),setSelections:on(function(r,s,c){if(r.length){for(var a=[],d=0;d<r.length;d++)a[d]=new mt(it(this,r[d].anchor),it(this,r[d].head||r[d].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),gn(this,Rr(this.cm,a,s),c)}}),addSelection:on(function(r,s,c){var a=this.sel.ranges.slice(0);a.push(new mt(it(this,r),it(this,s||r))),gn(this,Rr(this.cm,a,a.length-1),c)}),getSelection:function(r){for(var s=this.sel.ranges,c,a=0;a<s.length;a++){var d=yi(this,s[a].from(),s[a].to());c=c?c.concat(d):d}return r===!1?c:c.join(r||this.lineSeparator())},getSelections:function(r){for(var s=[],c=this.sel.ranges,a=0;a<c.length;a++){var d=yi(this,c[a].from(),c[a].to());r!==!1&&(d=d.join(r||this.lineSeparator())),s[a]=d}return s},replaceSelection:function(r,s,c){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=r;this.replaceSelections(a,s,c||"+input")},replaceSelections:on(function(r,s,c){for(var a=[],d=this.sel,m=0;m<d.ranges.length;m++){var b=d.ranges[m];a[m]={from:b.from(),to:b.to(),text:this.splitLines(r[m]),origin:c}}for(var x=s&&s!="end"&&rC(this,a,s),T=a.length-1;T>=0;T--)Ws(this,a[T]);x?Ov(this,x):this.cm&&zs(this.cm)}),undo:on(function(){ou(this,"undo")}),redo:on(function(){ou(this,"redo")}),undoSelection:on(function(){ou(this,"undo",!0)}),redoSelection:on(function(){ou(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,s=0,c=0,a=0;a<r.done.length;a++)r.done[a].ranges||++s;for(var d=0;d<r.undone.length;d++)r.undone[d].ranges||++c;return{undo:s,redo:c}},clearHistory:function(){var r=this;this.history=new eu(this.history),so(this,function(s){return s.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:Bs(this.history.done),undone:Bs(this.history.undone)}},setHistory:function(r){var s=this.history=new eu(this.history);s.done=Bs(r.done.slice(0),null,!0),s.undone=Bs(r.undone.slice(0),null,!0)},setGutterMarker:on(function(r,s,c){return la(this,r,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[s]=c,!c&&dt(d)&&(a.gutterMarkers=null),!0})}),clearGutter:on(function(r){var s=this;this.iter(function(c){c.gutterMarkers&&c.gutterMarkers[r]&&la(s,c,"gutter",function(){return c.gutterMarkers[r]=null,dt(c.gutterMarkers)&&(c.gutterMarkers=null),!0})})}),lineInfo:function(r){var s;if(typeof r=="number"){if(!ye(this,r)||(s=r,r=qe(this,r),!r))return null}else if(s=M(r),s==null)return null;return{line:s,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:on(function(r,s,c){return la(this,r,s=="gutter"?"gutter":"class",function(a){var d=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=c;else{if(K(c).test(a[d]))return!1;a[d]+=" "+c}return!0})}),removeLineClass:on(function(r,s,c){return la(this,r,s=="gutter"?"gutter":"class",function(a){var d=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",m=a[d];if(m)if(c==null)a[d]=null;else{var b=m.match(K(c));if(!b)return!1;var x=b.index+b[0].length;a[d]=m.slice(0,b.index)+(!b.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:on(function(r,s,c){return dC(this,r,s,c)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,c){return Us(this,it(this,r),it(this,s),c,c&&c.type||"range")},setBookmark:function(r,s){var c={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return r=it(this,r),Us(this,r,r,c,"bookmark")},findMarksAt:function(r){r=it(this,r);var s=[],c=qe(this,r.line).markedSpans;if(c)for(var a=0;a<c.length;++a){var d=c[a];(d.from==null||d.from<=r.ch)&&(d.to==null||d.to>=r.ch)&&s.push(d.marker.parent||d.marker)}return s},findMarks:function(r,s,c){r=it(this,r),s=it(this,s);var a=[],d=r.line;return this.iter(r.line,s.line+1,function(m){var b=m.markedSpans;if(b)for(var x=0;x<b.length;x++){var T=b[x];!(T.to!=null&&d==r.line&&r.ch>=T.to||T.from==null&&d!=r.line||T.from!=null&&d==s.line&&T.from>=s.ch)&&(!c||c(T.marker))&&a.push(T.marker.parent||T.marker)}++d}),a},getAllMarks:function(){var r=[];return this.iter(function(s){var c=s.markedSpans;if(c)for(var a=0;a<c.length;++a)c[a].from!=null&&r.push(c[a].marker)}),r},posFromIndex:function(r){var s,c=this.first,a=this.lineSeparator().length;return this.iter(function(d){var m=d.text.length+a;if(m>r)return s=r,!0;r-=m,++c}),it(this,fe(c,s))},indexFromPos:function(r){r=it(this,r);var s=r.ch;if(r.line<this.first||r.ch<0)return 0;var c=this.lineSeparator().length;return this.iter(this.first,r.line,function(a){s+=a.text.length+c}),s},copy:function(r){var s=new Mn(Ul(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,r&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(r){r||(r={});var s=this.first,c=this.first+this.size;r.from!=null&&r.from>s&&(s=r.from),r.to!=null&&r.to<c&&(c=r.to);var a=new Mn(Ul(this,s,c),r.mode||this.modeOption,s,this.lineSep,this.direction);return r.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:r.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],pC(a,Gv(this)),a},unlinkDoc:function(r){if(r instanceof Nt&&(r=r.doc),this.linked)for(var s=0;s<this.linked.length;++s){var c=this.linked[s];if(c.doc==r){this.linked.splice(s,1),r.unlinkDoc(this),gC(Gv(this));break}}if(r.history==this.history){var a=[r.id];so(r,function(d){return a.push(d.id)},!0),r.history=new eu(null),r.history.done=Bs(this.history.done,a),r.history.undone=Bs(this.history.undone,a)}},iterLinkedDocs:function(r){so(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):br(r)},lineSeparator:function(){return this.lineSep||`
62
+ `},setDirection:on(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&iC(this.cm))})}),Mn.prototype.eachLine=Mn.prototype.iter;var Kv=0;function vC(r){var s=this;if(Yv(s),!(Dt(s,r)||xi(s.display,r))){pn(r),h&&(Kv=+new Date);var c=Uo(s,r,!0),a=r.dataTransfer.files;if(!(!c||s.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,m=Array(d),b=0,x=function(){++b==d&&rn(s,function(){c=it(s.doc,c);var ne={from:c,to:c,text:s.doc.splitLines(m.filter(function(pe){return pe!=null}).join(s.doc.lineSeparator())),origin:"paste"};Ws(s.doc,ne),Ov(s.doc,io(it(s.doc,c),it(s.doc,oo(ne))))})()},T=function(ne,pe){if(s.options.allowDropFileTypes&&ce(s.options.allowDropFileTypes,ne.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}m[pe]=Te,x()},we.readAsText(ne)},A=0;A<a.length;A++)T(a[A],A);else{if(s.state.draggingText&&s.doc.sel.contains(c)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var H=r.dataTransfer.getData("Text");if(H){var G;if(s.state.draggingText&&!s.state.draggingText.copy&&(G=s.listSelections()),ru(s.doc,io(c,c)),G)for(var se=0;se<G.length;++se)qs(s.doc,"",G[se].anchor,G[se].head,"drag");s.replaceSelection(H,"around","paste"),s.display.input.focus()}}catch{}}}}function yC(r,s){if(h&&(!r.state.draggingText||+new Date-Kv<100)){Ji(s);return}if(!(Dt(r,s)||xi(r.display,s))&&(s.dataTransfer.setData("Text",r.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!_)){var c=S("img",null,null,"position: fixed; left: 0; top: 0;");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(c.width=c.height=1,r.display.wrapper.appendChild(c),c._top=c.offsetTop),s.dataTransfer.setDragImage(c,0,0),$&&c.parentNode.removeChild(c)}}function bC(r,s){var c=Uo(r,s);if(c){var a=document.createDocumentFragment();zd(r,c,a),r.display.dragCursor||(r.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),k(r.display.dragCursor,a)}}function Yv(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function Xv(r){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),c=[],a=0;a<s.length;a++){var d=s[a].CodeMirror;d&&c.push(d)}c.length&&c[0].operation(function(){for(var m=0;m<c.length;m++)r(c[m])})}}var Jv=!1;function wC(){Jv||(xC(),Jv=!0)}function xC(){var r;Xe(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,Xv(SC)},100))}),Xe(window,"blur",function(){return Xv(Fs)})}function SC(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.setSize()}for(var ao={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"},da=0;da<10;da++)ao[da+48]=ao[da+96]=String(da);for(var su=65;su<=90;su++)ao[su]=String.fromCharCode(su);for(var ha=1;ha<=12;ha++)ao[ha+111]=ao[ha+63235]="F"+ha;var _i={};_i.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"},_i.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"},_i.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"},_i.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"]},_i.default=I?_i.macDefault:_i.pcDefault;function _C(r){var s=r.split(/-(?!$)/);r=s[s.length-1];for(var c,a,d,m,b=0;b<s.length-1;b++){var x=s[b];if(/^(cmd|meta|m)$/i.test(x))m=!0;else if(/^a(lt)?$/i.test(x))c=!0;else if(/^(c|ctrl|control)$/i.test(x))a=!0;else if(/^s(hift)?$/i.test(x))d=!0;else throw new Error("Unrecognized modifier name: "+x)}return c&&(r="Alt-"+r),a&&(r="Ctrl-"+r),m&&(r="Cmd-"+r),d&&(r="Shift-"+r),r}function kC(r){var s={};for(var c in r)if(r.hasOwnProperty(c)){var a=r[c];if(/^(name|fallthrough|(de|at)tach)$/.test(c))continue;if(a=="..."){delete r[c];continue}for(var d=be(c.split(" "),_C),m=0;m<d.length;m++){var b=void 0,x=void 0;m==d.length-1?(x=d.join(" "),b=a):(x=d.slice(0,m+1).join(" "),b="...");var T=s[x];if(!T)s[x]=b;else if(T!=b)throw new Error("Inconsistent bindings for "+x)}delete r[c]}for(var A in s)r[A]=s[A];return r}function Vs(r,s,c,a){s=lu(s);var d=s.call?s.call(r,a):s[r];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&c(d))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Vs(r,s.fallthrough,c,a);for(var m=0;m<s.fallthrough.length;m++){var b=Vs(r,s.fallthrough[m],c,a);if(b)return b}}}function Zv(r){var s=typeof r=="string"?r:ao[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function Qv(r,s,c){var a=r;return s.altKey&&a!="Alt"&&(r="Alt-"+r),(J?s.metaKey:s.ctrlKey)&&a!="Ctrl"&&(r="Ctrl-"+r),(J?s.ctrlKey:s.metaKey)&&a!="Mod"&&(r="Cmd-"+r),!c&&s.shiftKey&&a!="Shift"&&(r="Shift-"+r),r}function ey(r,s){if($&&r.keyCode==34&&r.char)return!1;var c=ao[r.keyCode];return c==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(c=r.code),Qv(c,r,s))}function lu(r){return typeof r=="string"?_i[r]:r}function Gs(r,s){for(var c=r.doc.sel.ranges,a=[],d=0;d<c.length;d++){for(var m=s(c[d]);a.length&&Ie(m.from,xe(a).to)<=0;){var b=a.pop();if(Ie(b.from,m.from)<0){m.from=b.from;break}}a.push(m)}Yn(r,function(){for(var x=a.length-1;x>=0;x--)qs(r.doc,"",a[x].from,a[x].to,"+delete");zs(r)})}function nh(r,s,c){var a=en(r.text,s+c,c);return a<0||a>r.text.length?null:a}function rh(r,s,c){var a=nh(r,s.ch,c);return a==null?null:new fe(s.line,a,c<0?"after":"before")}function ih(r,s,c,a,d){if(r){s.doc.direction=="rtl"&&(d=-d);var m=at(c,s.doc.direction);if(m){var b=d<0?xe(m):m[0],x=d<0==(b.level==1),T=x?"after":"before",A;if(b.level>0||s.doc.direction=="rtl"){var H=Ps(s,c);A=d<0?c.text.length-1:0;var G=ti(s,H,A).top;A=Gt(function(se){return ti(s,H,se).top==G},d<0==(b.level==1)?b.from:b.to-1,A),T=="before"&&(A=nh(c,A,1))}else A=d<0?b.to:b.from;return new fe(a,A,T)}}return new fe(a,d<0?c.text.length:0,d<0?"before":"after")}function TC(r,s,c,a){var d=at(s,r.doc.direction);if(!d)return rh(s,c,a);c.ch>=s.text.length?(c.ch=s.text.length,c.sticky="before"):c.ch<=0&&(c.ch=0,c.sticky="after");var m=Wt(d,c.ch,c.sticky),b=d[m];if(r.doc.direction=="ltr"&&b.level%2==0&&(a>0?b.to>c.ch:b.from<c.ch))return rh(s,c,a);var x=function(Le,De){return nh(s,Le instanceof fe?Le.ch:Le,De)},T,A=function(Le){return r.options.lineWrapping?(T=T||Ps(r,s),ov(r,s,T,Le)):{begin:0,end:s.text.length}},H=A(c.sticky=="before"?x(c,-1):c.ch);if(r.doc.direction=="rtl"||b.level==1){var G=b.level==1==a<0,se=x(c,G?1:-1);if(se!=null&&(G?se<=b.to&&se<=H.end:se>=b.from&&se>=H.begin)){var ne=G?"before":"after";return new fe(c.line,se,ne)}}var pe=function(Le,De,Oe){for(var ze=function(Ct,sn){return sn?new fe(c.line,x(Ct,1),"before"):new fe(c.line,Ct,"after")};Le>=0&&Le<d.length;Le+=De){var Je=d[Le],Ve=De>0==(Je.level!=1),lt=Ve?Oe.begin:x(Oe.end,-1);if(Je.from<=lt&&lt<Je.to||(lt=Ve?Je.from:x(Je.to,-1),Oe.begin<=lt&&lt<Oe.end))return ze(lt,Ve)}},we=pe(m+a,a,H);if(we)return we;var Te=a>0?H.end:x(H.begin,-1);return Te!=null&&!(a>0&&Te==s.text.length)&&(we=pe(a>0?0:d.length-1,a,A(Te)),we)?we:null}var pa={selectAll:Fv,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),ee)},killLine:function(r){return Gs(r,function(s){if(s.empty()){var c=qe(r.doc,s.head.line).text.length;return s.head.ch==c&&s.head.line<r.lastLine()?{from:s.head,to:fe(s.head.line+1,0)}:{from:s.head,to:fe(s.head.line,c)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(r){return Gs(r,function(s){return{from:fe(s.from().line,0),to:it(r.doc,fe(s.to().line+1,0))}})},delLineLeft:function(r){return Gs(r,function(s){return{from:fe(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return Gs(r,function(s){var c=r.charCoords(s.head,"div").top+5,a=r.coordsChar({left:0,top:c},"div");return{from:a,to:s.from()}})},delWrappedLineRight:function(r){return Gs(r,function(s){var c=r.charCoords(s.head,"div").top+5,a=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:c},"div");return{from:s.from(),to:a}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(fe(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(fe(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(s){return ty(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return ny(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return CC(r,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(s){var c=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:c},"div")},he)},goLineLeft:function(r){return r.extendSelectionsBy(function(s){var c=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:0,top:c},"div")},he)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(s){var c=r.cursorCoords(s.head,"div").top+5,a=r.coordsChar({left:0,top:c},"div");return a.ch<r.getLine(a.line).search(/\S/)?ny(r,s.head):a},he)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var s=[],c=r.listSelections(),a=r.options.tabSize,d=0;d<c.length;d++){var m=c[d].from(),b=re(r.getLine(m.line),m.ch,a);s.push(Ae(a-b%a))}r.replaceSelections(s)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return Yn(r,function(){for(var s=r.listSelections(),c=[],a=0;a<s.length;a++)if(s[a].empty()){var d=s[a].head,m=qe(r.doc,d.line).text;if(m){if(d.ch==m.length&&(d=new fe(d.line,d.ch-1)),d.ch>0)d=new fe(d.line,d.ch+1),r.replaceRange(m.charAt(d.ch-1)+m.charAt(d.ch-2),fe(d.line,d.ch-2),d,"+transpose");else if(d.line>r.doc.first){var b=qe(r.doc,d.line-1).text;b&&(d=new fe(d.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),fe(d.line-1,b.length-1),d,"+transpose"))}}c.push(new mt(d,d))}r.setSelections(c)})},newlineAndIndent:function(r){return Yn(r,function(){for(var s=r.listSelections(),c=s.length-1;c>=0;c--)r.replaceRange(r.doc.lineSeparator(),s[c].anchor,s[c].head,"+input");s=r.listSelections();for(var a=0;a<s.length;a++)r.indentLine(s[a].from().line,null,!0);zs(r)})},openLine:function(r){return r.replaceSelection(`
63
+ `,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function ty(r,s){var c=qe(r.doc,s),a=Lr(c);return a!=c&&(s=M(a)),ih(!0,r,a,s,1)}function CC(r,s){var c=qe(r.doc,s),a=cT(c);return a!=c&&(s=M(a)),ih(!0,r,c,s,-1)}function ny(r,s){var c=ty(r,s.line),a=qe(r.doc,c.line),d=at(a,r.doc.direction);if(!d||d[0].level==0){var m=Math.max(c.ch,a.text.search(/\S/)),b=s.line==c.line&&s.ch<=m&&s.ch;return fe(c.line,b?0:m,c.sticky)}return c}function au(r,s,c){if(typeof s=="string"&&(s=pa[s],!s))return!1;r.display.input.ensurePolled();var a=r.display.shift,d=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),c&&(r.display.shift=!1),d=s(r)!=j}finally{r.display.shift=a,r.state.suppressEdits=!1}return d}function EC(r,s,c){for(var a=0;a<r.state.keyMaps.length;a++){var d=Vs(s,r.state.keyMaps[a],c,r);if(d)return d}return r.options.extraKeys&&Vs(s,r.options.extraKeys,c,r)||Vs(s,r.options.keyMap,c,r)}var AC=new le;function ga(r,s,c,a){var d=r.state.keySeq;if(d){if(Zv(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:AC.set(50,function(){r.state.keySeq==d&&(r.state.keySeq=null,r.display.input.reset())}),ry(r,d+" "+s,c,a))return!0}return ry(r,s,c,a)}function ry(r,s,c,a){var d=EC(r,s,a);return d=="multi"&&(r.state.keySeq=s),d=="handled"&&nn(r,"keyHandled",r,s,c),(d=="handled"||d=="multi")&&(pn(c),Hd(r)),!!d}function iy(r,s){var c=ey(s,!0);return c?s.shiftKey&&!r.state.keySeq?ga(r,"Shift-"+c,s,function(a){return au(r,a,!0)})||ga(r,c,s,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return au(r,a)}):ga(r,c,s,function(a){return au(r,a)}):!1}function $C(r,s,c){return ga(r,"'"+c+"'",s,function(a){return au(r,a,!0)})}var oh=null;function oy(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=ve(Ue(s)),!Dt(s,r))){h&&p<11&&r.keyCode==27&&(r.returnValue=!1);var c=r.keyCode;s.display.shift=c==16||r.shiftKey;var a=iy(s,r);$&&(oh=a?c:null,!a&&c==88&&!Ic&&(I?r.metaKey:r.ctrlKey)&&s.replaceSelection("",null,"cut")),o&&!I&&!a&&c==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),c==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&NC(s)}}function NC(r){var s=r.display.lineDiv;_e(s,"CodeMirror-crosshair");function c(a){(a.keyCode==18||!a.altKey)&&(P(s,"CodeMirror-crosshair"),hn(document,"keyup",c),hn(document,"mouseover",c))}Xe(document,"keyup",c),Xe(document,"mouseover",c)}function sy(r){r.keyCode==16&&(this.doc.sel.shift=!1),Dt(this,r)}function ly(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(xi(s.display,r)||Dt(s,r)||r.ctrlKey&&!r.altKey||I&&r.metaKey)){var c=r.keyCode,a=r.charCode;if($&&c==oh){oh=null,pn(r);return}if(!($&&(!r.which||r.which<10)&&iy(s,r))){var d=String.fromCharCode(a??c);d!="\b"&&($C(s,r,d)||s.display.input.onKeyPress(r))}}}var MC=400,sh=function(r,s,c){this.time=r,this.pos=s,this.button=c};sh.prototype.compare=function(r,s,c){return this.time+MC>r&&Ie(s,this.pos)==0&&c==this.button};var ma,va;function LC(r,s){var c=+new Date;return va&&va.compare(c,r,s)?(ma=va=null,"triple"):ma&&ma.compare(c,r,s)?(va=new sh(c,r,s),ma=null,"double"):(ma=new sh(c,r,s),va=null,"single")}function ay(r){var s=this,c=s.display;if(!(Dt(s,r)||c.activeTouch&&c.input.supportsTouch())){if(c.input.ensurePolled(),c.shift=r.shiftKey,xi(c,r)){g||(c.scroller.draggable=!1,setTimeout(function(){return c.scroller.draggable=!0},100));return}if(!lh(s,r)){var a=Uo(s,r),d=Ar(r),m=a?LC(a,d):"single";Re(s).focus(),d==1&&s.state.selectingText&&s.state.selectingText(r),!(a&&OC(s,d,a,m,r))&&(d==1?a?PC(s,a,m,r):jl(r)==c.scroller&&pn(r):d==2?(a&&nu(s.doc,a),setTimeout(function(){return c.input.focus()},20)):d==3&&(U?s.display.input.onContextMenu(r):Bd(s)))}}}function OC(r,s,c,a,d){var m="Click";return a=="double"?m="Double"+m:a=="triple"&&(m="Triple"+m),m=(s==1?"Left":s==2?"Middle":"Right")+m,ga(r,Qv(m,d),d,function(b){if(typeof b=="string"&&(b=pa[b]),!b)return!1;var x=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),x=b(r,c)!=j}finally{r.state.suppressEdits=!1}return x})}function RC(r,s,c){var a=r.getOption("configureMouse"),d=a?a(r,s,c):{};if(d.unit==null){var m=q?c.shiftKey&&c.metaKey:c.altKey;d.unit=m?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(d.extend==null||r.doc.extend)&&(d.extend=r.doc.extend||c.shiftKey),d.addNew==null&&(d.addNew=I?c.metaKey:c.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(I?c.altKey:c.ctrlKey)),d}function PC(r,s,c,a){h?setTimeout(z(cv,r),0):r.curOp.focus=ve(Ue(r));var d=RC(r,c,a),m=r.doc.sel,b;r.options.dragDrop&&bd&&!r.isReadOnly()&&c=="single"&&(b=m.contains(s))>-1&&(Ie((b=m.ranges[b]).from(),s)<0||s.xRel>0)&&(Ie(b.to(),s)>0||s.xRel<0)?IC(r,a,s,d):DC(r,a,s,d)}function IC(r,s,c,a){var d=r.display,m=!1,b=rn(r,function(A){g&&(d.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:Bd(r)),hn(d.wrapper.ownerDocument,"mouseup",b),hn(d.wrapper.ownerDocument,"mousemove",x),hn(d.scroller,"dragstart",T),hn(d.scroller,"drop",b),m||(pn(A),a.addNew||nu(r.doc,c,null,null,a.extend),g&&!_||h&&p==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),x=function(A){m=m||Math.abs(s.clientX-A.clientX)+Math.abs(s.clientY-A.clientY)>=10},T=function(){return m=!0};g&&(d.scroller.draggable=!0),r.state.draggingText=b,b.copy=!a.moveOnDrag,Xe(d.wrapper.ownerDocument,"mouseup",b),Xe(d.wrapper.ownerDocument,"mousemove",x),Xe(d.scroller,"dragstart",T),Xe(d.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function cy(r,s,c){if(c=="char")return new mt(s,s);if(c=="word")return r.findWordAt(s);if(c=="line")return new mt(fe(s.line,0),it(r.doc,fe(s.line+1,0)));var a=c(r,s);return new mt(a.from,a.to)}function DC(r,s,c,a){h&&Bd(r);var d=r.display,m=r.doc;pn(s);var b,x,T=m.sel,A=T.ranges;if(a.addNew&&!a.extend?(x=m.sel.contains(c),x>-1?b=A[x]:b=new mt(c,c)):(b=m.sel.primary(),x=m.sel.primIndex),a.unit=="rectangle")a.addNew||(b=new mt(c,c)),c=Uo(r,s,!0,!0),x=-1;else{var H=cy(r,c,a.unit);a.extend?b=eh(b,H.anchor,H.head,a.extend):b=H}a.addNew?x==-1?(x=A.length,gn(m,Rr(r,A.concat([b]),x),{scroll:!1,origin:"*mouse"})):A.length>1&&A[x].empty()&&a.unit=="char"&&!a.extend?(gn(m,Rr(r,A.slice(0,x).concat(A.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),T=m.sel):th(m,x,b,de):(x=0,gn(m,new sr([b],0),de),T=m.sel);var G=c;function se(Oe){if(Ie(G,Oe)!=0)if(G=Oe,a.unit=="rectangle"){for(var ze=[],Je=r.options.tabSize,Ve=re(qe(m,c.line).text,c.ch,Je),lt=re(qe(m,Oe.line).text,Oe.ch,Je),Ct=Math.min(Ve,lt),sn=Math.max(Ve,lt),Rt=Math.min(c.line,Oe.line),Xn=Math.min(r.lastLine(),Math.max(c.line,Oe.line));Rt<=Xn;Rt++){var Ln=qe(m,Rt).text,Kt=me(Ln,Ct,Je);Ct==sn?ze.push(new mt(fe(Rt,Kt),fe(Rt,Kt))):Ln.length>Kt&&ze.push(new mt(fe(Rt,Kt),fe(Rt,me(Ln,sn,Je))))}ze.length||ze.push(new mt(c,c)),gn(m,Rr(r,T.ranges.slice(0,x).concat(ze),x),{origin:"*mouse",scroll:!1}),r.scrollIntoView(Oe)}else{var On=b,cn=cy(r,Oe,a.unit),Jt=On.anchor,Yt;Ie(cn.anchor,Jt)>0?(Yt=cn.head,Jt=Ls(On.from(),cn.anchor)):(Yt=cn.anchor,Jt=$n(On.to(),cn.head));var zt=T.ranges.slice(0);zt[x]=FC(r,new mt(it(m,Jt),Yt)),gn(m,Rr(r,zt,x),de)}}var ne=d.wrapper.getBoundingClientRect(),pe=0;function we(Oe){var ze=++pe,Je=Uo(r,Oe,!0,a.unit=="rectangle");if(Je)if(Ie(Je,G)!=0){r.curOp.focus=ve(Ue(r)),se(Je);var Ve=Xc(d,m);(Je.line>=Ve.to||Je.line<Ve.from)&&setTimeout(rn(r,function(){pe==ze&&we(Oe)}),150)}else{var lt=Oe.clientY<ne.top?-20:Oe.clientY>ne.bottom?20:0;lt&&setTimeout(rn(r,function(){pe==ze&&(d.scroller.scrollTop+=lt,we(Oe))}),50)}}function Te(Oe){r.state.selectingText=!1,pe=1/0,Oe&&(pn(Oe),d.input.focus()),hn(d.wrapper.ownerDocument,"mousemove",Le),hn(d.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Le=rn(r,function(Oe){Oe.buttons===0||!Ar(Oe)?Te(Oe):we(Oe)}),De=rn(r,Te);r.state.selectingText=De,Xe(d.wrapper.ownerDocument,"mousemove",Le),Xe(d.wrapper.ownerDocument,"mouseup",De)}function FC(r,s){var c=s.anchor,a=s.head,d=qe(r.doc,c.line);if(Ie(c,a)==0&&c.sticky==a.sticky)return s;var m=at(d);if(!m)return s;var b=Wt(m,c.ch,c.sticky),x=m[b];if(x.from!=c.ch&&x.to!=c.ch)return s;var T=b+(x.from==c.ch==(x.level!=1)?0:1);if(T==0||T==m.length)return s;var A;if(a.line!=c.line)A=(a.line-c.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var H=Wt(m,a.ch,a.sticky),G=H-b||(a.ch-c.ch)*(x.level==1?-1:1);H==T-1||H==T?A=G<0:A=G>0}var se=m[T+(A?-1:0)],ne=A==(se.level==1),pe=ne?se.from:se.to,we=ne?"after":"before";return c.ch==pe&&c.sticky==we?s:new mt(new fe(c.line,pe,we),a)}function uy(r,s,c,a){var d,m;if(s.touches)d=s.touches[0].clientX,m=s.touches[0].clientY;else try{d=s.clientX,m=s.clientY}catch{return!1}if(d>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;a&&pn(s);var b=r.display,x=b.lineDiv.getBoundingClientRect();if(m>x.bottom||!Kn(r,c))return An(s);m-=x.top-b.viewOffset;for(var T=0;T<r.display.gutterSpecs.length;++T){var A=b.gutters.childNodes[T];if(A&&A.getBoundingClientRect().right>=d){var H=V(r.doc,m),G=r.display.gutterSpecs[T];return It(r,c,r,H,G.className,s),An(s)}}}function lh(r,s){return uy(r,s,"gutterClick",!0)}function fy(r,s){xi(r.display,s)||zC(r,s)||Dt(r,s,"contextmenu")||U||r.display.input.onContextMenu(s)}function zC(r,s){return Kn(r,"gutterContextMenu")?uy(r,s,"gutterContextMenu",!1):!1}function dy(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Jl(r)}var Ks={toString:function(){return"CodeMirror.Init"}},hy={},cu={};function HC(r){var s=r.optionHandlers;function c(a,d,m,b){r.defaults[a]=d,m&&(s[a]=b?function(x,T,A){A!=Ks&&m(x,T,A)}:m)}r.defineOption=c,r.Init=Ks,c("value","",function(a,d){return a.setValue(d)},!0),c("mode",null,function(a,d){a.doc.modeOption=d,Jd(a)},!0),c("indentUnit",2,Jd,!0),c("indentWithTabs",!1),c("smartIndent",!0),c("tabSize",4,function(a){oa(a),Jl(a),Nn(a)},!0),c("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var m=[],b=a.doc.first;a.doc.iter(function(T){for(var A=0;;){var H=T.text.indexOf(d,A);if(H==-1)break;A=H+d.length,m.push(fe(b,H))}b++});for(var x=m.length-1;x>=0;x--)qs(a.doc,d,m[x],fe(m[x].line,m[x].ch+d.length))}}),c("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(a,d,m){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),m!=Ks&&a.refresh()}),c("specialCharPlaceholder",gT,function(a){return a.refresh()},!0),c("electricChars",!0),c("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),c("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),c("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),c("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),c("rtlMoveVisually",!X),c("wholeLineUpdateBefore",!0),c("theme","default",function(a){dy(a),ia(a)},!0),c("keyMap","default",function(a,d,m){var b=lu(d),x=m!=Ks&&lu(m);x&&x.detach&&x.detach(a,b),b.attach&&b.attach(a,x||null)}),c("extraKeys",null),c("configureMouse",null),c("lineWrapping",!1,jC,!0),c("gutters",[],function(a,d){a.display.gutterSpecs=Yd(d,a.options.lineNumbers),ia(a)},!0),c("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?Dd(a.display)+"px":"0",a.refresh()},!0),c("coverGutterNextToScrollbar",!1,function(a){return Hs(a)},!0),c("scrollbarStyle","native",function(a){gv(a),Hs(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),c("lineNumbers",!1,function(a,d){a.display.gutterSpecs=Yd(a.options.gutters,d),ia(a)},!0),c("firstLineNumber",1,ia,!0),c("lineNumberFormatter",function(a){return a},ia,!0),c("showCursorWhenSelecting",!1,Zl,!0),c("resetSelectionOnContextMenu",!0),c("lineWiseCopyCut",!0),c("pasteLinesPerSelection",!0),c("selectionsMayTouch",!1),c("readOnly",!1,function(a,d){d=="nocursor"&&(Fs(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),c("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),c("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),c("dragDrop",!0,BC),c("allowDropFileTypes",null),c("cursorBlinkRate",530),c("cursorScrollMargin",0),c("cursorHeight",1,Zl,!0),c("singleCursorHeightPerLine",!0,Zl,!0),c("workTime",100),c("workDelay",100),c("flattenSpans",!0,oa,!0),c("addModeClass",!1,oa,!0),c("pollInterval",100),c("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),c("historyEventDelay",1250),c("viewportMargin",10,function(a){return a.refresh()},!0),c("maxHighlightLength",1e4,oa,!0),c("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),c("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),c("autofocus",null),c("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),c("phrases",null)}function BC(r,s,c){var a=c&&c!=Ks;if(!s!=!a){var d=r.display.dragFunctions,m=s?Xe:hn;m(r.display.scroller,"dragstart",d.start),m(r.display.scroller,"dragenter",d.enter),m(r.display.scroller,"dragover",d.over),m(r.display.scroller,"dragleave",d.leave),m(r.display.scroller,"drop",d.drop)}}function jC(r){r.options.lineWrapping?(_e(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(P(r.display.wrapper,"CodeMirror-wrap"),Ed(r)),Fd(r),Nn(r),Jl(r),setTimeout(function(){return Hs(r)},100)}function Nt(r,s){var c=this;if(!(this instanceof Nt))return new Nt(r,s);this.options=s=s?Z(s):{},Z(hy,s,!1);var a=s.value;typeof a=="string"?a=new Mn(a,s.mode,null,s.lineSeparator,s.direction):s.mode&&(a.modeOption=s.mode),this.doc=a;var d=new Nt.inputStyles[s.inputStyle](this),m=this.display=new tC(r,a,d,s);m.wrapper.CodeMirror=this,dy(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gv(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 le,keySeq:null,specialChars:null},s.autofocus&&!N&&m.input.focus(),h&&p<11&&setTimeout(function(){return c.display.input.reset(!0)},20),WC(this),wC(),Yo(this),this.curOp.forceUpdate=!0,Tv(this,a),s.autofocus&&!N||this.hasFocus()?setTimeout(function(){c.hasFocus()&&!c.state.focused&&jd(c)},20):Fs(this);for(var b in cu)cu.hasOwnProperty(b)&&cu[b](this,s[b],Ks);yv(this),s.finishInit&&s.finishInit(this);for(var x=0;x<ah.length;++x)ah[x](this);Xo(this),g&&s.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Nt.defaults=hy,Nt.optionHandlers=cu;function WC(r){var s=r.display;Xe(s.scroller,"mousedown",rn(r,ay)),h&&p<11?Xe(s.scroller,"dblclick",rn(r,function(T){if(!Dt(r,T)){var A=Uo(r,T);if(!(!A||lh(r,T)||xi(r.display,T))){pn(T);var H=r.findWordAt(A);nu(r.doc,H.anchor,H.head)}}})):Xe(s.scroller,"dblclick",function(T){return Dt(r,T)||pn(T)}),Xe(s.scroller,"contextmenu",function(T){return fy(r,T)}),Xe(s.input.getField(),"contextmenu",function(T){s.scroller.contains(T.target)||fy(r,T)});var c,a={end:0};function d(){s.activeTouch&&(c=setTimeout(function(){return s.activeTouch=null},1e3),a=s.activeTouch,a.end=+new Date)}function m(T){if(T.touches.length!=1)return!1;var A=T.touches[0];return A.radiusX<=1&&A.radiusY<=1}function b(T,A){if(A.left==null)return!0;var H=A.left-T.left,G=A.top-T.top;return H*H+G*G>400}Xe(s.scroller,"touchstart",function(T){if(!Dt(r,T)&&!m(T)&&!lh(r,T)){s.input.ensurePolled(),clearTimeout(c);var A=+new Date;s.activeTouch={start:A,moved:!1,prev:A-a.end<=300?a:null},T.touches.length==1&&(s.activeTouch.left=T.touches[0].pageX,s.activeTouch.top=T.touches[0].pageY)}}),Xe(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Xe(s.scroller,"touchend",function(T){var A=s.activeTouch;if(A&&!xi(s,T)&&A.left!=null&&!A.moved&&new Date-A.start<300){var H=r.coordsChar(s.activeTouch,"page"),G;!A.prev||b(A,A.prev)?G=new mt(H,H):!A.prev.prev||b(A,A.prev.prev)?G=r.findWordAt(H):G=new mt(fe(H.line,0),it(r.doc,fe(H.line+1,0))),r.setSelection(G.anchor,G.head),r.focus(),pn(T)}d()}),Xe(s.scroller,"touchcancel",d),Xe(s.scroller,"scroll",function(){s.scroller.clientHeight&&(ea(r,s.scroller.scrollTop),Go(r,s.scroller.scrollLeft,!0),It(r,"scroll",r))}),Xe(s.scroller,"mousewheel",function(T){return xv(r,T)}),Xe(s.scroller,"DOMMouseScroll",function(T){return xv(r,T)}),Xe(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(T){Dt(r,T)||Ji(T)},over:function(T){Dt(r,T)||(bC(r,T),Ji(T))},start:function(T){return yC(r,T)},drop:rn(r,vC),leave:function(T){Dt(r,T)||Yv(r)}};var x=s.input.getField();Xe(x,"keyup",function(T){return sy.call(r,T)}),Xe(x,"keydown",rn(r,oy)),Xe(x,"keypress",rn(r,ly)),Xe(x,"focus",function(T){return jd(r,T)}),Xe(x,"blur",function(T){return Fs(r,T)})}var ah=[];Nt.defineInitHook=function(r){return ah.push(r)};function ya(r,s,c,a){var d=r.doc,m;c==null&&(c="add"),c=="smart"&&(d.mode.indent?m=Vl(r,s).state:c="prev");var b=r.options.tabSize,x=qe(d,s),T=re(x.text,null,b);x.stateAfter&&(x.stateAfter=null);var A=x.text.match(/^\s*/)[0],H;if(!a&&!/\S/.test(x.text))H=0,c="not";else if(c=="smart"&&(H=d.mode.indent(m,x.text.slice(A.length),x.text),H==j||H>150)){if(!a)return;c="prev"}c=="prev"?s>d.first?H=re(qe(d,s-1).text,null,b):H=0:c=="add"?H=T+r.options.indentUnit:c=="subtract"?H=T-r.options.indentUnit:typeof c=="number"&&(H=T+c),H=Math.max(0,H);var G="",se=0;if(r.options.indentWithTabs)for(var ne=Math.floor(H/b);ne;--ne)se+=b,G+=" ";if(se<H&&(G+=Ae(H-se)),G!=A)return qs(d,G,fe(s,0),fe(s,A.length),"+input"),x.stateAfter=null,!0;for(var pe=0;pe<d.sel.ranges.length;pe++){var we=d.sel.ranges[pe];if(we.head.line==s&&we.head.ch<A.length){var Te=fe(s,A.length);th(d,pe,new mt(Te,Te));break}}}var Pr=null;function uu(r){Pr=r}function ch(r,s,c,a,d){var m=r.doc;r.display.shift=!1,a||(a=m.sel);var b=+new Date-200,x=d=="paste"||r.state.pasteIncoming>b,T=br(s),A=null;if(x&&a.ranges.length>1)if(Pr&&Pr.text.join(`
64
+ `)==s){if(a.ranges.length%Pr.text.length==0){A=[];for(var H=0;H<Pr.text.length;H++)A.push(m.splitLines(Pr.text[H]))}}else T.length==a.ranges.length&&r.options.pasteLinesPerSelection&&(A=be(T,function(Le){return[Le]}));for(var G=r.curOp.updateInput,se=a.ranges.length-1;se>=0;se--){var ne=a.ranges[se],pe=ne.from(),we=ne.to();ne.empty()&&(c&&c>0?pe=fe(pe.line,pe.ch-c):r.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(T).length)):x&&Pr&&Pr.lineWise&&Pr.text.join(`
65
+ `)==T.join(`
66
+ `)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:A?A[se%A.length]:T,origin:d||(x?"paste":r.state.cutIncoming>b?"cut":"+input")};Ws(r.doc,Te),nn(r,"inputRead",r,Te)}s&&!x&&gy(r,s),zs(r),r.curOp.updateInput<2&&(r.curOp.updateInput=G),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function py(r,s){var c=r.clipboardData&&r.clipboardData.getData("Text");if(c)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Yn(s,function(){return ch(s,c,0,null,"paste")}),!0}function gy(r,s){if(!(!r.options.electricChars||!r.options.smartIndent))for(var c=r.doc.sel,a=c.ranges.length-1;a>=0;a--){var d=c.ranges[a];if(!(d.head.ch>100||a&&c.ranges[a-1].head.line==d.head.line)){var m=r.getModeAt(d.head),b=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(s.indexOf(m.electricChars.charAt(x))>-1){b=ya(r,d.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(r.doc,d.head.line).text.slice(0,d.head.ch))&&(b=ya(r,d.head.line,"smart"));b&&nn(r,"electricInput",r,d.head.line)}}}function my(r){for(var s=[],c=[],a=0;a<r.doc.sel.ranges.length;a++){var d=r.doc.sel.ranges[a].head.line,m={anchor:fe(d,0),head:fe(d+1,0)};c.push(m),s.push(r.getRange(m.anchor,m.head))}return{text:s,ranges:c}}function uh(r,s,c,a){r.setAttribute("autocorrect",c?"on":"off"),r.setAttribute("autocapitalize",a?"on":"off"),r.setAttribute("spellcheck",!!s)}function vy(){var r=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=S("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?r.style.width="1000px":r.setAttribute("wrap","off"),L&&(r.style.border="1px solid black"),s}function qC(r){var s=r.optionHandlers,c=r.helpers={};r.prototype={constructor:r,focus:function(){Re(this).focus(),this.display.input.focus()},setOption:function(a,d){var m=this.options,b=m[a];m[a]==d&&a!="mode"||(m[a]=d,s.hasOwnProperty(a)&&rn(this,s[a])(this,d,b),It(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](lu(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,m=0;m<d.length;++m)if(d[m]==a||d[m].name==a)return d.splice(m,1),!0},addOverlay:Sn(function(a,d){var m=a.token?a:r.getMode(this.options,a);if(m.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:m,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(b){return b.priority}),this.state.modeGen++,Nn(this)}),removeOverlay:Sn(function(a){for(var d=this.state.overlays,m=0;m<d.length;++m){var b=d[m].modeSpec;if(b==a||typeof a=="string"&&b.name==a){d.splice(m,1),this.state.modeGen++,Nn(this);return}}}),indentLine:Sn(function(a,d,m){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),ye(this.doc,a)&&ya(this,a,d,m)}),indentSelection:Sn(function(a){for(var d=this.doc.sel.ranges,m=-1,b=0;b<d.length;b++){var x=d[b];if(x.empty())x.head.line>m&&(ya(this,x.head.line,a,!0),m=x.head.line,b==this.doc.sel.primIndex&&zs(this));else{var T=x.from(),A=x.to(),H=Math.max(m,T.line);m=Math.min(this.lastLine(),A.line-(A.ch?0:1))+1;for(var G=H;G<m;++G)ya(this,G,a);var se=this.doc.sel.ranges;T.ch==0&&d.length==se.length&&se[b].from().ch>0&&th(this.doc,b,new mt(T,se[b].to()),ee)}}}),getTokenAt:function(a,d){return Em(this,a,d)},getLineTokens:function(a,d){return Em(this,fe(a),d,!0)},getTokenTypeAt:function(a){a=it(this.doc,a);var d=km(this,qe(this.doc,a.line)),m=0,b=(d.length-1)/2,x=a.ch,T;if(x==0)T=d[2];else for(;;){var A=m+b>>1;if((A?d[A*2-1]:0)>=x)b=A;else if(d[A*2+1]<x)m=A+1;else{T=d[A*2+2];break}}var H=T?T.indexOf("overlay "):-1;return H<0?T:H==0?null:T.slice(0,H-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?r.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var m=[];if(!c.hasOwnProperty(d))return m;var b=c[d],x=this.getModeAt(a);if(typeof x[d]=="string")b[x[d]]&&m.push(b[x[d]]);else if(x[d])for(var T=0;T<x[d].length;T++){var A=b[x[d][T]];A&&m.push(A)}else x.helperType&&b[x.helperType]?m.push(b[x.helperType]):b[x.name]&&m.push(b[x.name]);for(var H=0;H<b._global.length;H++){var G=b._global[H];G.pred(x,this)&&ce(m,G.val)==-1&&m.push(G.val)}return m},getStateAfter:function(a,d){var m=this.doc;return a=xm(m,a??m.first+m.size-1),Vl(this,a+1,d).state},cursorCoords:function(a,d){var m,b=this.doc.sel.primary();return a==null?m=b.head:typeof a=="object"?m=it(this.doc,a):m=a?b.from():b.to(),Or(this,m,d||"page")},charCoords:function(a,d){return Vc(this,it(this.doc,a),d||"page")},coordsChar:function(a,d){return a=nv(this,a,d||"page"),Rd(this,a.left,a.top)},lineAtHeight:function(a,d){return a=nv(this,{top:a,left:0},d||"page").top,V(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,m){var b=!1,x;if(typeof a=="number"){var T=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>T&&(a=T,b=!0),x=qe(this.doc,a)}else x=a;return Uc(this,x,{top:0,left:0},d||"page",m||b).top+(b?this.doc.height-wi(x):0)},defaultTextHeight:function(){return Is(this.display)},defaultCharWidth:function(){return Ds(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,m,b,x){var T=this.display;a=Or(this,it(this.doc,a));var A=a.bottom,H=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),T.sizer.appendChild(d),b=="over")A=a.top;else if(b=="above"||b=="near"){var G=Math.max(T.wrapper.clientHeight,this.doc.height),se=Math.max(T.sizer.clientWidth,T.lineSpace.clientWidth);(b=="above"||a.bottom+d.offsetHeight>G)&&a.top>d.offsetHeight?A=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=G&&(A=a.bottom),H+d.offsetWidth>se&&(H=se-d.offsetWidth)}d.style.top=A+"px",d.style.left=d.style.right="",x=="right"?(H=T.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(T.sizer.clientWidth-d.offsetWidth)/2),d.style.left=H+"px"),m&&BT(this,{left:H,top:A,right:H+d.offsetWidth,bottom:A+d.offsetHeight})},triggerOnKeyDown:Sn(oy),triggerOnKeyPress:Sn(ly),triggerOnKeyUp:sy,triggerOnMouseDown:Sn(ay),execCommand:function(a){if(pa.hasOwnProperty(a))return pa[a].call(null,this)},triggerElectric:Sn(function(a){gy(this,a)}),findPosH:function(a,d,m,b){var x=1;d<0&&(x=-1,d=-d);for(var T=it(this.doc,a),A=0;A<d&&(T=fh(this.doc,T,x,m,b),!T.hitSide);++A);return T},moveH:Sn(function(a,d){var m=this;this.extendSelectionsBy(function(b){return m.display.shift||m.doc.extend||b.empty()?fh(m.doc,b.head,a,d,m.options.rtlMoveVisually):a<0?b.from():b.to()},he)}),deleteH:Sn(function(a,d){var m=this.doc.sel,b=this.doc;m.somethingSelected()?b.replaceSelection("",null,"+delete"):Gs(this,function(x){var T=fh(b,x.head,a,d,!1);return a<0?{from:T,to:x.head}:{from:x.head,to:T}})}),findPosV:function(a,d,m,b){var x=1,T=b;d<0&&(x=-1,d=-d);for(var A=it(this.doc,a),H=0;H<d;++H){var G=Or(this,A,"div");if(T==null?T=G.left:G.left=T,A=yy(this,G,x,m),A.hitSide)break}return A},moveV:Sn(function(a,d){var m=this,b=this.doc,x=[],T=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(H){if(T)return a<0?H.from():H.to();var G=Or(m,H.head,"div");H.goalColumn!=null&&(G.left=H.goalColumn),x.push(G.left);var se=yy(m,G,a,d);return d=="page"&&H==b.sel.primary()&&qd(m,Vc(m,se,"div").top-G.top),se},he),x.length)for(var A=0;A<b.sel.ranges.length;A++)b.sel.ranges[A].goalColumn=x[A]}),findWordAt:function(a){var d=this.doc,m=qe(d,a.line).text,b=a.ch,x=a.ch;if(m){var T=this.getHelper(a,"wordChars");(a.sticky=="before"||x==m.length)&&b?--b:++x;for(var A=m.charAt(b),H=ct(A,T)?function(G){return ct(G,T)}:/\s/.test(A)?function(G){return/\s/.test(G)}:function(G){return!/\s/.test(G)&&!ct(G)};b>0&&H(m.charAt(b-1));)--b;for(;x<m.length&&H(m.charAt(x));)++x}return new mt(fe(a.line,b),fe(a.line,x))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),It(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Ue(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Sn(function(a,d){Ql(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-ei(this)-this.display.barHeight,width:a.scrollWidth-ei(this)-this.display.barWidth,clientHeight:Nd(this),clientWidth:Wo(this)}},scrollIntoView:Sn(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:fe(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?jT(this,a):fv(this,a.from,a.to,a.margin)}),setSize:Sn(function(a,d){var m=this,b=function(T){return typeof T=="number"||/^\d+$/.test(String(T))?T+"px":T};a!=null&&(this.display.wrapper.style.width=b(a)),d!=null&&(this.display.wrapper.style.height=b(d)),this.options.lineWrapping&&Qm(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(T){if(T.widgets){for(var A=0;A<T.widgets.length;A++)if(T.widgets[A].noHScroll){no(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,It(this,"refresh",this)}),operation:function(a){return Yn(this,a)},startOperation:function(){return Yo(this)},endOperation:function(){return Xo(this)},refresh:Sn(function(){var a=this.display.cachedTextHeight;Nn(this),this.curOp.forceUpdate=!0,Jl(this),Ql(this,this.doc.scrollLeft,this.doc.scrollTop),Gd(this.display),(a==null||Math.abs(a-Is(this.display))>.5||this.options.lineWrapping)&&Fd(this),It(this,"refresh",this)}),swapDoc:Sn(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Tv(this,a),Jl(this),this.display.input.reset(),Ql(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,nn(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[a]:a},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}},Er(r),r.registerHelper=function(a,d,m){c.hasOwnProperty(a)||(c[a]=r[a]={_global:[]}),c[a][d]=m},r.registerGlobalHelper=function(a,d,m,b){r.registerHelper(a,d,b),c[a]._global.push({pred:m,val:b})}}function fh(r,s,c,a,d){var m=s,b=c,x=qe(r,s.line),T=d&&r.direction=="rtl"?-c:c;function A(){var De=s.line+T;return De<r.first||De>=r.first+r.size?!1:(s=new fe(De,s.ch,s.sticky),x=qe(r,De))}function H(De){var Oe;if(a=="codepoint"){var ze=x.text.charCodeAt(s.ch+(c>0?0:-1));if(isNaN(ze))Oe=null;else{var Je=c>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Oe=new fe(s.line,Math.max(0,Math.min(x.text.length,s.ch+c*(Je?2:1))),-c)}}else d?Oe=TC(r.cm,x,s,c):Oe=rh(x,s,c);if(Oe==null)if(!De&&A())s=ih(d,r.cm,x,s.line,T);else return!1;else s=Oe;return!0}if(a=="char"||a=="codepoint")H();else if(a=="column")H(!0);else if(a=="word"||a=="group")for(var G=null,se=a=="group",ne=r.cm&&r.cm.getHelper(s,"wordChars"),pe=!0;!(c<0&&!H(!pe));pe=!1){var we=x.text.charAt(s.ch)||`
67
+ `,Te=ct(we,ne)?"w":se&&we==`
68
+ `?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),G&&G!=Te){c<0&&(c=1,H(),s.sticky="after");break}if(Te&&(G=Te),c>0&&!H(!pe))break}var Le=iu(r,s,m,b,!0);return gt(m,Le)&&(Le.hitSide=!0),Le}function yy(r,s,c,a){var d=r.doc,m=s.left,b;if(a=="page"){var x=Math.min(r.display.wrapper.clientHeight,Re(r).innerHeight||d(r).documentElement.clientHeight),T=Math.max(x-.5*Is(r.display),3);b=(c>0?s.bottom:s.top)+c*T}else a=="line"&&(b=c>0?s.bottom+3:s.top-3);for(var A;A=Rd(r,m,b),!!A.outside;){if(c<0?b<=0:b>=d.height){A.hitSide=!0;break}b+=c*5}return A}var xt=function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};xt.prototype.init=function(r){var s=this,c=this,a=c.cm,d=c.div=r.lineDiv;d.contentEditable=!0,uh(d,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function m(x){for(var T=x.target;T;T=T.parentNode){if(T==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(T.className))break}return!1}Xe(d,"paste",function(x){!m(x)||Dt(a,x)||py(x,a)||p<=11&&setTimeout(rn(a,function(){return s.updateFromDOM()}),20)}),Xe(d,"compositionstart",function(x){s.composing={data:x.data,done:!1}}),Xe(d,"compositionupdate",function(x){s.composing||(s.composing={data:x.data,done:!1})}),Xe(d,"compositionend",function(x){s.composing&&(x.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),Xe(d,"touchstart",function(){return c.forceCompositionEnd()}),Xe(d,"input",function(){s.composing||s.readFromDOMSoon()});function b(x){if(!(!m(x)||Dt(a,x))){if(a.somethingSelected())uu({lineWise:!1,text:a.getSelections()}),x.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var T=my(a);uu({lineWise:!0,text:T.text}),x.type=="cut"&&a.operation(function(){a.setSelections(T.ranges,0,ee),a.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var A=Pr.text.join(`
69
+ `);if(x.clipboardData.setData("Text",A),x.clipboardData.getData("Text")==A){x.preventDefault();return}}var H=vy(),G=H.firstChild;uh(G),a.display.lineSpace.insertBefore(H,a.display.lineSpace.firstChild),G.value=Pr.text.join(`
70
+ `);var se=ve(He(d));Ee(G),setTimeout(function(){a.display.lineSpace.removeChild(H),se.focus(),se==d&&c.showPrimarySelection()},50)}}Xe(d,"copy",b),Xe(d,"cut",b)},xt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},xt.prototype.prepareSelection=function(){var r=av(this.cm,!1);return r.focus=ve(He(this.div))==this.div,r},xt.prototype.showSelection=function(r,s){!r||!this.cm.display.view.length||((r.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(r))},xt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xt.prototype.showPrimarySelection=function(){var r=this.getSelection(),s=this.cm,c=s.doc.sel.primary(),a=c.from(),d=c.to();if(s.display.viewTo==s.display.viewFrom||a.line>=s.display.viewTo||d.line<s.display.viewFrom){r.removeAllRanges();return}var m=fu(s,r.anchorNode,r.anchorOffset),b=fu(s,r.focusNode,r.focusOffset);if(!(m&&!m.bad&&b&&!b.bad&&Ie(Ls(m,b),a)==0&&Ie($n(m,b),d)==0)){var x=s.display.view,T=a.line>=s.display.viewFrom&&by(s,a)||{node:x[0].measure.map[2],offset:0},A=d.line<s.display.viewTo&&by(s,d);if(!A){var H=x[x.length-1].measure,G=H.maps?H.maps[H.maps.length-1]:H.map;A={node:G[G.length-1],offset:G[G.length-2]-G[G.length-3]}}if(!T||!A){r.removeAllRanges();return}var se=r.rangeCount&&r.getRangeAt(0),ne;try{ne=B(T.node,T.offset,A.offset,A.node)}catch{}ne&&(!o&&s.state.focused?(r.collapse(T.node,T.offset),ne.collapsed||(r.removeAllRanges(),r.addRange(ne))):(r.removeAllRanges(),r.addRange(ne)),se&&r.anchorNode==null?r.addRange(se):o&&this.startGracePeriod()),this.rememberSelection()}},xt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},xt.prototype.showMultipleSelections=function(r){k(this.cm.display.cursorDiv,r.cursors),k(this.cm.display.selectionDiv,r.selection)},xt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},xt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var s=r.getRangeAt(0).commonAncestorContainer;return ae(this.div,s)},xt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(He(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},xt.prototype.blur=function(){this.div.blur()},xt.prototype.getField=function(){return this.div},xt.prototype.supportsTouch=function(){return!0},xt.prototype.receivedFocus=function(){var r=this,s=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):Yn(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function c(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},xt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},xt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),s=this.cm;if(D&&y&&this.cm.display.gutterSpecs.length&&UC(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var c=fu(s,r.anchorNode,r.anchorOffset),a=fu(s,r.focusNode,r.focusOffset);c&&a&&Yn(s,function(){gn(s.doc,io(c,a),ee),(c.bad||a.bad)&&(s.curOp.selectionChanged=!0)})}}},xt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,s=r.display,c=r.doc.sel.primary(),a=c.from(),d=c.to();if(a.ch==0&&a.line>r.firstLine()&&(a=fe(a.line-1,qe(r.doc,a.line-1).length)),d.ch==qe(r.doc,d.line).text.length&&d.line<r.lastLine()&&(d=fe(d.line+1,0)),a.line<s.viewFrom||d.line>s.viewTo-1)return!1;var m,b,x;a.line==s.viewFrom||(m=Vo(r,a.line))==0?(b=M(s.view[0].line),x=s.view[0].node):(b=M(s.view[m].line),x=s.view[m-1].node.nextSibling);var T=Vo(r,d.line),A,H;if(T==s.view.length-1?(A=s.viewTo-1,H=s.lineDiv.lastChild):(A=M(s.view[T+1].line)-1,H=s.view[T+1].node.previousSibling),!x)return!1;for(var G=r.doc.splitLines(VC(r,x,H,b,A)),se=yi(r.doc,fe(b,0),fe(A,qe(r.doc,A).text.length));G.length>1&&se.length>1;)if(xe(G)==xe(se))G.pop(),se.pop(),A--;else if(G[0]==se[0])G.shift(),se.shift(),b++;else break;for(var ne=0,pe=0,we=G[0],Te=se[0],Le=Math.min(we.length,Te.length);ne<Le&&we.charCodeAt(ne)==Te.charCodeAt(ne);)++ne;for(var De=xe(G),Oe=xe(se),ze=Math.min(De.length-(G.length==1?ne:0),Oe.length-(se.length==1?ne:0));pe<ze&&De.charCodeAt(De.length-pe-1)==Oe.charCodeAt(Oe.length-pe-1);)++pe;if(G.length==1&&se.length==1&&b==a.line)for(;ne&&ne>a.ch&&De.charCodeAt(De.length-pe-1)==Oe.charCodeAt(Oe.length-pe-1);)ne--,pe++;G[G.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),G[0]=G[0].slice(ne).replace(/\u200b+$/,"");var Je=fe(b,ne),Ve=fe(A,se.length?xe(se).length-pe:0);if(G.length>1||G[0]||Ie(Je,Ve))return qs(r.doc,G,Je,Ve,"+input"),!0},xt.prototype.ensurePolled=function(){this.forceCompositionEnd()},xt.prototype.reset=function(){this.forceCompositionEnd()},xt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},xt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&Yn(this.cm,function(){return Nn(r.cm)})},xt.prototype.setUneditable=function(r){r.contentEditable="false"},xt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||rn(this.cm,ch)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},xt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},xt.prototype.onContextMenu=function(){},xt.prototype.resetPosition=function(){},xt.prototype.needsContentAttribute=!0;function by(r,s){var c=Md(r,s.line);if(!c||c.hidden)return null;var a=qe(r.doc,s.line),d=Km(c,a,s.line),m=at(a,r.doc.direction),b="left";if(m){var x=Wt(m,s.ch);b=x%2?"right":"left"}var T=Jm(d.map,s.ch,b);return T.offset=T.collapse=="right"?T.end:T.start,T}function UC(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function Ys(r,s){return s&&(r.bad=!0),r}function VC(r,s,c,a,d){var m="",b=!1,x=r.doc.lineSeparator(),T=!1;function A(ne){return function(pe){return pe.id==ne}}function H(){b&&(m+=x,T&&(m+=x),b=T=!1)}function G(ne){ne&&(H(),m+=ne)}function se(ne){if(ne.nodeType==1){var pe=ne.getAttribute("cm-text");if(pe){G(pe);return}var we=ne.getAttribute("cm-marker"),Te;if(we){var Le=r.findMarks(fe(a,0),fe(d+1,0),A(+we));Le.length&&(Te=Le[0].find(0))&&G(yi(r.doc,Te.from,Te.to).join(x));return}if(ne.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(ne.nodeName);if(!/^br$/i.test(ne.nodeName)&&ne.textContent.length==0)return;De&&H();for(var Oe=0;Oe<ne.childNodes.length;Oe++)se(ne.childNodes[Oe]);/^(pre|p)$/i.test(ne.nodeName)&&(T=!0),De&&(b=!0)}else ne.nodeType==3&&G(ne.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(s),s!=c;)s=s.nextSibling,T=!1;return m}function fu(r,s,c){var a;if(s==r.display.lineDiv){if(a=r.display.lineDiv.childNodes[c],!a)return Ys(r.clipPos(fe(r.display.viewTo-1)),!0);s=null,c=0}else for(a=s;;a=a.parentNode){if(!a||a==r.display.lineDiv)return null;if(a.parentNode&&a.parentNode==r.display.lineDiv)break}for(var d=0;d<r.display.view.length;d++){var m=r.display.view[d];if(m.node==a)return GC(m,s,c)}}function GC(r,s,c){var a=r.text.firstChild,d=!1;if(!s||!ae(a,s))return Ys(fe(M(r.line),0),!0);if(s==a&&(d=!0,s=a.childNodes[c],c=0,!s)){var m=r.rest?xe(r.rest):r.line;return Ys(fe(M(m),m.text.length),d)}var b=s.nodeType==3?s:null,x=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,c&&(c=b.nodeValue.length));x.parentNode!=a;)x=x.parentNode;var T=r.measure,A=T.maps;function H(Te,Le,De){for(var Oe=-1;Oe<(A?A.length:0);Oe++)for(var ze=Oe<0?T.map:A[Oe],Je=0;Je<ze.length;Je+=3){var Ve=ze[Je+2];if(Ve==Te||Ve==Le){var lt=M(Oe<0?r.line:r.rest[Oe]),Ct=ze[Je]+De;return(De<0||Ve!=Te)&&(Ct=ze[Je+(De?1:0)]),fe(lt,Ct)}}}var G=H(b,x,c);if(G)return Ys(G,d);for(var se=x.nextSibling,ne=b?b.nodeValue.length-c:0;se;se=se.nextSibling){if(G=H(se,se.firstChild,0),G)return Ys(fe(G.line,G.ch-ne),d);ne+=se.textContent.length}for(var pe=x.previousSibling,we=c;pe;pe=pe.previousSibling){if(G=H(pe,pe.firstChild,-1),G)return Ys(fe(G.line,G.ch+we),d);we+=pe.textContent.length}}var qt=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};qt.prototype.init=function(r){var s=this,c=this,a=this.cm;this.createField(r);var d=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),L&&(d.style.width="0px"),Xe(d,"input",function(){h&&p>=9&&s.hasSelection&&(s.hasSelection=null),c.poll()}),Xe(d,"paste",function(b){Dt(a,b)||py(b,a)||(a.state.pasteIncoming=+new Date,c.fastPoll())});function m(b){if(!Dt(a,b)){if(a.somethingSelected())uu({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var x=my(a);uu({lineWise:!0,text:x.text}),b.type=="cut"?a.setSelections(x.ranges,null,ee):(c.prevInput="",d.value=x.text.join(`
71
+ `),Ee(d))}else return;b.type=="cut"&&(a.state.cutIncoming=+new Date)}}Xe(d,"cut",m),Xe(d,"copy",m),Xe(r.scroller,"paste",function(b){if(!(xi(r,b)||Dt(a,b))){if(!d.dispatchEvent){a.state.pasteIncoming=+new Date,c.focus();return}var x=new Event("paste");x.clipboardData=b.clipboardData,d.dispatchEvent(x)}}),Xe(r.lineSpace,"selectstart",function(b){xi(r,b)||pn(b)}),Xe(d,"compositionstart",function(){var b=a.getCursor("from");c.composing&&c.composing.range.clear(),c.composing={start:b,range:a.markText(b,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(d,"compositionend",function(){c.composing&&(c.poll(),c.composing.range.clear(),c.composing=null)})},qt.prototype.createField=function(r){this.wrapper=vy(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;uh(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},qt.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},qt.prototype.prepareSelection=function(){var r=this.cm,s=r.display,c=r.doc,a=av(r);if(r.options.moveInputWithCursor){var d=Or(r,c.sel.primary().head,"div"),m=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,d.top+b.top-m.top)),a.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,d.left+b.left-m.left))}return a},qt.prototype.showSelection=function(r){var s=this.cm,c=s.display;k(c.cursorDiv,r.cursors),k(c.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},qt.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var c=s.getSelection();this.textarea.value=c,s.state.focused&&Ee(this.textarea),h&&p>=9&&(this.hasSelection=c)}else r||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},qt.prototype.getField=function(){return this.textarea},qt.prototype.supportsTouch=function(){return!1},qt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||ve(He(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},qt.prototype.blur=function(){this.textarea.blur()},qt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qt.prototype.receivedFocus=function(){this.slowPoll()},qt.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},qt.prototype.fastPoll=function(){var r=!1,s=this;s.pollingFast=!0;function c(){var a=s.poll();!a&&!r?(r=!0,s.polling.set(60,c)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,c)},qt.prototype.poll=function(){var r=this,s=this.cm,c=this.textarea,a=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Qi(c)&&!a&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var d=c.value;if(d==a&&!s.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===d||I&&/[\uf700-\uf7ff]/.test(d))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var m=d.charCodeAt(0);if(m==8203&&!a&&(a="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,x=Math.min(a.length,d.length);b<x&&a.charCodeAt(b)==d.charCodeAt(b);)++b;return Yn(s,function(){ch(s,d.slice(b),a.length-b,null,r.composing?"*compose":null),d.length>1e3||d.indexOf(`
72
+ `)>-1?c.value=r.prevInput="":r.prevInput=d,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},qt.prototype.onContextMenu=function(r){var s=this,c=s.cm,a=c.display,d=s.textarea;s.contextMenuPending&&s.contextMenuPending();var m=Uo(c,r),b=a.scroller.scrollTop;if(!m||$)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(m)==-1&&rn(c,gn)(c.doc,io(m),ee);var T=d.style.cssText,A=s.wrapper.style.cssText,H=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
73
+ top: `+(r.clientY-H.top-5)+"px; left: "+(r.clientX-H.left-5)+`px;
74
+ z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
75
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;g&&(G=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,G),a.input.reset(),c.somethingSelected()||(d.value=s.prevInput=" "),s.contextMenuPending=ne,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function se(){if(d.selectionStart!=null){var we=c.somethingSelected(),Te="​"+(we?d.value:"");d.value="⇚",d.value=Te,s.prevInput=we?"":"​",d.selectionStart=1,d.selectionEnd=Te.length,a.selForContextMenu=c.doc.sel}}function ne(){if(s.contextMenuPending==ne&&(s.contextMenuPending=!1,s.wrapper.style.cssText=A,d.style.cssText=T,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&s.prevInput=="​"?rn(c,Fv)(c):we++<10?a.detectingSelectAll=setTimeout(Te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),U){Ji(r);var pe=function(){hn(window,"mouseup",pe),setTimeout(ne,20)};Xe(window,"mouseup",pe)}else setTimeout(ne,50)},qt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},qt.prototype.setUneditable=function(){},qt.prototype.needsContentAttribute=!1;function KC(r,s){if(s=s?Z(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var c=ve(He(r));s.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Xe(r.form,"submit",a),!s.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}s.finishInit=function(T){T.save=a,T.getTextArea=function(){return r},T.toTextArea=function(){T.toTextArea=isNaN,a(),r.parentNode.removeChild(T.getWrapperElement()),r.style.display="",r.form&&(hn(r.form,"submit",a),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Nt(function(T){return r.parentNode.insertBefore(T,r.nextSibling)},s);return x}function YC(r){r.off=hn,r.on=Xe,r.wheelEventPixels=nC,r.Doc=Mn,r.splitLines=br,r.countColumn=re,r.findColumn=me,r.isWordChar=et,r.Pass=j,r.signal=It,r.Line=Os,r.changeEnd=oo,r.scrollbarModel=pv,r.Pos=fe,r.cmpPos=Ie,r.modes=Es,r.mimeModes=Nr,r.resolveMode=As,r.getMode=$s,r.modeExtensions=eo,r.extendMode=Ns,r.copyState=Zr,r.startState=Ms,r.innerMode=ql,r.commands=pa,r.keyMap=_i,r.keyName=ey,r.isModifierKey=Zv,r.lookupKey=Vs,r.normalizeKeyMap=kC,r.StringStream=Ft,r.SharedTextMarker=fa,r.TextMarker=lo,r.LineWidget=ua,r.e_preventDefault=pn,r.e_stopPropagation=Ts,r.e_stop=Ji,r.addClass=_e,r.contains=ae,r.rmClass=P,r.keyNames=ao}HC(Nt),qC(Nt);var XC="iter insert remove copy getEditor constructor".split(" ");for(var du in Mn.prototype)Mn.prototype.hasOwnProperty(du)&&ce(XC,du)<0&&(Nt.prototype[du]=(function(r){return function(){return r.apply(this.doc,arguments)}})(Mn.prototype[du]));return Er(Mn),Nt.inputStyles={textarea:qt,contenteditable:xt},Nt.defineMode=function(r){!Nt.defaults.mode&&r!="null"&&(Nt.defaults.mode=r),Mr.apply(this,arguments)},Nt.defineMIME=jo,Nt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(r,s){Nt.prototype[r]=s},Nt.defineDocExtension=function(r,s){Mn.prototype[r]=s},Nt.fromTextArea=KC,YC(Nt),Nt.version="5.65.18",Nt}))})(Vu)),Vu.exports}var KP=Ho();const YP=Jg(KP);var Hh={},Ir={};const XP="Á",JP="á",ZP="Ă",QP="ă",eI="∾",tI="∿",nI="∾̳",rI="Â",iI="â",oI="´",sI="А",lI="а",aI="Æ",cI="æ",uI="⁡",fI="𝔄",dI="𝔞",hI="À",pI="à",gI="ℵ",mI="ℵ",vI="Α",yI="α",bI="Ā",wI="ā",xI="⨿",SI="&",_I="&",kI="⩕",TI="⩓",CI="∧",EI="⩜",AI="⩘",$I="⩚",NI="∠",MI="⦤",LI="∠",OI="⦨",RI="⦩",PI="⦪",II="⦫",DI="⦬",FI="⦭",zI="⦮",HI="⦯",BI="∡",jI="∟",WI="⊾",qI="⦝",UI="∢",VI="Å",GI="⍼",KI="Ą",YI="ą",XI="𝔸",JI="𝕒",ZI="⩯",QI="≈",e2="⩰",t2="≊",n2="≋",r2="'",i2="⁡",o2="≈",s2="≊",l2="Å",a2="å",c2="𝒜",u2="𝒶",f2="≔",d2="*",h2="≈",p2="≍",g2="Ã",m2="ã",v2="Ä",y2="ä",b2="∳",w2="⨑",x2="≌",S2="϶",_2="‵",k2="∽",T2="⋍",C2="∖",E2="⫧",A2="⊽",$2="⌅",N2="⌆",M2="⌅",L2="⎵",O2="⎶",R2="≌",P2="Б",I2="б",D2="„",F2="∵",z2="∵",H2="∵",B2="⦰",j2="϶",W2="ℬ",q2="ℬ",U2="Β",V2="β",G2="ℶ",K2="≬",Y2="𝔅",X2="𝔟",J2="⋂",Z2="◯",Q2="⋃",eD="⨀",tD="⨁",nD="⨂",rD="⨆",iD="★",oD="▽",sD="△",lD="⨄",aD="⋁",cD="⋀",uD="⤍",fD="⧫",dD="▪",hD="▴",pD="▾",gD="◂",mD="▸",vD="␣",yD="▒",bD="░",wD="▓",xD="█",SD="=⃥",_D="≡⃥",kD="⫭",TD="⌐",CD="𝔹",ED="𝕓",AD="⊥",$D="⊥",ND="⋈",MD="⧉",LD="┐",OD="╕",RD="╖",PD="╗",ID="┌",DD="╒",FD="╓",zD="╔",HD="─",BD="═",jD="┬",WD="╤",qD="╥",UD="╦",VD="┴",GD="╧",KD="╨",YD="╩",XD="⊟",JD="⊞",ZD="⊠",QD="┘",eF="╛",tF="╜",nF="╝",rF="└",iF="╘",oF="╙",sF="╚",lF="│",aF="║",cF="┼",uF="╪",fF="╫",dF="╬",hF="┤",pF="╡",gF="╢",mF="╣",vF="├",yF="╞",bF="╟",wF="╠",xF="‵",SF="˘",_F="˘",kF="¦",TF="𝒷",CF="ℬ",EF="⁏",AF="∽",$F="⋍",NF="⧅",MF="\\",LF="⟈",OF="•",RF="•",PF="≎",IF="⪮",DF="≏",FF="≎",zF="≏",HF="Ć",BF="ć",jF="⩄",WF="⩉",qF="⩋",UF="∩",VF="⋒",GF="⩇",KF="⩀",YF="ⅅ",XF="∩︀",JF="⁁",ZF="ˇ",QF="ℭ",ez="⩍",tz="Č",nz="č",rz="Ç",iz="ç",oz="Ĉ",sz="ĉ",lz="∰",az="⩌",cz="⩐",uz="Ċ",fz="ċ",dz="¸",hz="¸",pz="⦲",gz="¢",mz="·",vz="·",yz="𝔠",bz="ℭ",wz="Ч",xz="ч",Sz="✓",_z="✓",kz="Χ",Tz="χ",Cz="ˆ",Ez="≗",Az="↺",$z="↻",Nz="⊛",Mz="⊚",Lz="⊝",Oz="⊙",Rz="®",Pz="Ⓢ",Iz="⊖",Dz="⊕",Fz="⊗",zz="○",Hz="⧃",Bz="≗",jz="⨐",Wz="⫯",qz="⧂",Uz="∲",Vz="”",Gz="’",Kz="♣",Yz="♣",Xz=":",Jz="∷",Zz="⩴",Qz="≔",e3="≔",t3=",",n3="@",r3="∁",i3="∘",o3="∁",s3="ℂ",l3="≅",a3="⩭",c3="≡",u3="∮",f3="∯",d3="∮",h3="𝕔",p3="ℂ",g3="∐",m3="∐",v3="©",y3="©",b3="℗",w3="∳",x3="↵",S3="✗",_3="⨯",k3="𝒞",T3="𝒸",C3="⫏",E3="⫑",A3="⫐",$3="⫒",N3="⋯",M3="⤸",L3="⤵",O3="⋞",R3="⋟",P3="↶",I3="⤽",D3="⩈",F3="⩆",z3="≍",H3="∪",B3="⋓",j3="⩊",W3="⊍",q3="⩅",U3="∪︀",V3="↷",G3="⤼",K3="⋞",Y3="⋟",X3="⋎",J3="⋏",Z3="¤",Q3="↶",eH="↷",tH="⋎",nH="⋏",rH="∲",iH="∱",oH="⌭",sH="†",lH="‡",aH="ℸ",cH="↓",uH="↡",fH="⇓",dH="‐",hH="⫤",pH="⊣",gH="⤏",mH="˝",vH="Ď",yH="ď",bH="Д",wH="д",xH="‡",SH="⇊",_H="ⅅ",kH="ⅆ",TH="⤑",CH="⩷",EH="°",AH="∇",$H="Δ",NH="δ",MH="⦱",LH="⥿",OH="𝔇",RH="𝔡",PH="⥥",IH="⇃",DH="⇂",FH="´",zH="˙",HH="˝",BH="`",jH="˜",WH="⋄",qH="⋄",UH="⋄",VH="♦",GH="♦",KH="¨",YH="ⅆ",XH="ϝ",JH="⋲",ZH="÷",QH="÷",eB="⋇",tB="⋇",nB="Ђ",rB="ђ",iB="⌞",oB="⌍",sB="$",lB="𝔻",aB="𝕕",cB="¨",uB="˙",fB="⃜",dB="≐",hB="≑",pB="≐",gB="∸",mB="∔",vB="⊡",yB="⌆",bB="∯",wB="¨",xB="⇓",SB="⇐",_B="⇔",kB="⫤",TB="⟸",CB="⟺",EB="⟹",AB="⇒",$B="⊨",NB="⇑",MB="⇕",LB="∥",OB="⤓",RB="↓",PB="↓",IB="⇓",DB="⇵",FB="̑",zB="⇊",HB="⇃",BB="⇂",jB="⥐",WB="⥞",qB="⥖",UB="↽",VB="⥟",GB="⥗",KB="⇁",YB="↧",XB="⊤",JB="⤐",ZB="⌟",QB="⌌",ej="𝒟",tj="𝒹",nj="Ѕ",rj="ѕ",ij="⧶",oj="Đ",sj="đ",lj="⋱",aj="▿",cj="▾",uj="⇵",fj="⥯",dj="⦦",hj="Џ",pj="џ",gj="⟿",mj="É",vj="é",yj="⩮",bj="Ě",wj="ě",xj="Ê",Sj="ê",_j="≖",kj="≕",Tj="Э",Cj="э",Ej="⩷",Aj="Ė",$j="ė",Nj="≑",Mj="ⅇ",Lj="≒",Oj="𝔈",Rj="𝔢",Pj="⪚",Ij="È",Dj="è",Fj="⪖",zj="⪘",Hj="⪙",Bj="∈",jj="⏧",Wj="ℓ",qj="⪕",Uj="⪗",Vj="Ē",Gj="ē",Kj="∅",Yj="∅",Xj="◻",Jj="∅",Zj="▫",Qj=" ",e5=" ",t5=" ",n5="Ŋ",r5="ŋ",i5=" ",o5="Ę",s5="ę",l5="𝔼",a5="𝕖",c5="⋕",u5="⧣",f5="⩱",d5="ε",h5="Ε",p5="ε",g5="ϵ",m5="≖",v5="≕",y5="≂",b5="⪖",w5="⪕",x5="⩵",S5="=",_5="≂",k5="≟",T5="⇌",C5="≡",E5="⩸",A5="⧥",$5="⥱",N5="≓",M5="ℯ",L5="ℰ",O5="≐",R5="⩳",P5="≂",I5="Η",D5="η",F5="Ð",z5="ð",H5="Ë",B5="ë",j5="€",W5="!",q5="∃",U5="∃",V5="ℰ",G5="ⅇ",K5="ⅇ",Y5="≒",X5="Ф",J5="ф",Z5="♀",Q5="ffi",e8="ff",t8="ffl",n8="𝔉",r8="𝔣",i8="fi",o8="◼",s8="▪",l8="fj",a8="♭",c8="fl",u8="▱",f8="ƒ",d8="𝔽",h8="𝕗",p8="∀",g8="∀",m8="⋔",v8="⫙",y8="ℱ",b8="⨍",w8="½",x8="⅓",S8="¼",_8="⅕",k8="⅙",T8="⅛",C8="⅔",E8="⅖",A8="¾",$8="⅗",N8="⅜",M8="⅘",L8="⅚",O8="⅝",R8="⅞",P8="⁄",I8="⌢",D8="𝒻",F8="ℱ",z8="ǵ",H8="Γ",B8="γ",j8="Ϝ",W8="ϝ",q8="⪆",U8="Ğ",V8="ğ",G8="Ģ",K8="Ĝ",Y8="ĝ",X8="Г",J8="г",Z8="Ġ",Q8="ġ",e4="≥",t4="≧",n4="⪌",r4="⋛",i4="≥",o4="≧",s4="⩾",l4="⪩",a4="⩾",c4="⪀",u4="⪂",f4="⪄",d4="⋛︀",h4="⪔",p4="𝔊",g4="𝔤",m4="≫",v4="⋙",y4="⋙",b4="ℷ",w4="Ѓ",x4="ѓ",S4="⪥",_4="≷",k4="⪒",T4="⪤",C4="⪊",E4="⪊",A4="⪈",$4="≩",N4="⪈",M4="≩",L4="⋧",O4="𝔾",R4="𝕘",P4="`",I4="≥",D4="⋛",F4="≧",z4="⪢",H4="≷",B4="⩾",j4="≳",W4="𝒢",q4="ℊ",U4="≳",V4="⪎",G4="⪐",K4="⪧",Y4="⩺",X4=">",J4=">",Z4="≫",Q4="⋗",eW="⦕",tW="⩼",nW="⪆",rW="⥸",iW="⋗",oW="⋛",sW="⪌",lW="≷",aW="≳",cW="≩︀",uW="≩︀",fW="ˇ",dW=" ",hW="½",pW="ℋ",gW="Ъ",mW="ъ",vW="⥈",yW="↔",bW="⇔",wW="↭",xW="^",SW="ℏ",_W="Ĥ",kW="ĥ",TW="♥",CW="♥",EW="…",AW="⊹",$W="𝔥",NW="ℌ",MW="ℋ",LW="⤥",OW="⤦",RW="⇿",PW="∻",IW="↩",DW="↪",FW="𝕙",zW="ℍ",HW="―",BW="─",jW="𝒽",WW="ℋ",qW="ℏ",UW="Ħ",VW="ħ",GW="≎",KW="≏",YW="⁃",XW="‐",JW="Í",ZW="í",QW="⁣",eq="Î",tq="î",nq="И",rq="и",iq="İ",oq="Е",sq="е",lq="¡",aq="⇔",cq="𝔦",uq="ℑ",fq="Ì",dq="ì",hq="ⅈ",pq="⨌",gq="∭",mq="⧜",vq="℩",yq="IJ",bq="ij",wq="Ī",xq="ī",Sq="ℑ",_q="ⅈ",kq="ℐ",Tq="ℑ",Cq="ı",Eq="ℑ",Aq="⊷",$q="Ƶ",Nq="⇒",Mq="℅",Lq="∞",Oq="⧝",Rq="ı",Pq="⊺",Iq="∫",Dq="∬",Fq="ℤ",zq="∫",Hq="⊺",Bq="⋂",jq="⨗",Wq="⨼",qq="⁣",Uq="⁢",Vq="Ё",Gq="ё",Kq="Į",Yq="į",Xq="𝕀",Jq="𝕚",Zq="Ι",Qq="ι",eU="⨼",tU="¿",nU="𝒾",rU="ℐ",iU="∈",oU="⋵",sU="⋹",lU="⋴",aU="⋳",cU="∈",uU="⁢",fU="Ĩ",dU="ĩ",hU="І",pU="і",gU="Ï",mU="ï",vU="Ĵ",yU="ĵ",bU="Й",wU="й",xU="𝔍",SU="𝔧",_U="ȷ",kU="𝕁",TU="𝕛",CU="𝒥",EU="𝒿",AU="Ј",$U="ј",NU="Є",MU="є",LU="Κ",OU="κ",RU="ϰ",PU="Ķ",IU="ķ",DU="К",FU="к",zU="𝔎",HU="𝔨",BU="ĸ",jU="Х",WU="х",qU="Ќ",UU="ќ",VU="𝕂",GU="𝕜",KU="𝒦",YU="𝓀",XU="⇚",JU="Ĺ",ZU="ĺ",QU="⦴",e6="ℒ",t6="Λ",n6="λ",r6="⟨",i6="⟪",o6="⦑",s6="⟨",l6="⪅",a6="ℒ",c6="«",u6="⇤",f6="⤟",d6="←",h6="↞",p6="⇐",g6="⤝",m6="↩",v6="↫",y6="⤹",b6="⥳",w6="↢",x6="⤙",S6="⤛",_6="⪫",k6="⪭",T6="⪭︀",C6="⤌",E6="⤎",A6="❲",$6="{",N6="[",M6="⦋",L6="⦏",O6="⦍",R6="Ľ",P6="ľ",I6="Ļ",D6="ļ",F6="⌈",z6="{",H6="Л",B6="л",j6="⤶",W6="“",q6="„",U6="⥧",V6="⥋",G6="↲",K6="≤",Y6="≦",X6="⟨",J6="⇤",Z6="←",Q6="←",eV="⇐",tV="⇆",nV="↢",rV="⌈",iV="⟦",oV="⥡",sV="⥙",lV="⇃",aV="⌊",cV="↽",uV="↼",fV="⇇",dV="↔",hV="↔",pV="⇔",gV="⇆",mV="⇋",vV="↭",yV="⥎",bV="↤",wV="⊣",xV="⥚",SV="⋋",_V="⧏",kV="⊲",TV="⊴",CV="⥑",EV="⥠",AV="⥘",$V="↿",NV="⥒",MV="↼",LV="⪋",OV="⋚",RV="≤",PV="≦",IV="⩽",DV="⪨",FV="⩽",zV="⩿",HV="⪁",BV="⪃",jV="⋚︀",WV="⪓",qV="⪅",UV="⋖",VV="⋚",GV="⪋",KV="⋚",YV="≦",XV="≶",JV="≶",ZV="⪡",QV="≲",e9="⩽",t9="≲",n9="⥼",r9="⌊",i9="𝔏",o9="𝔩",s9="≶",l9="⪑",a9="⥢",c9="↽",u9="↼",f9="⥪",d9="▄",h9="Љ",p9="љ",g9="⇇",m9="≪",v9="⋘",y9="⌞",b9="⇚",w9="⥫",x9="◺",S9="Ŀ",_9="ŀ",k9="⎰",T9="⎰",C9="⪉",E9="⪉",A9="⪇",$9="≨",N9="⪇",M9="≨",L9="⋦",O9="⟬",R9="⇽",P9="⟦",I9="⟵",D9="⟵",F9="⟸",z9="⟷",H9="⟷",B9="⟺",j9="⟼",W9="⟶",q9="⟶",U9="⟹",V9="↫",G9="↬",K9="⦅",Y9="𝕃",X9="𝕝",J9="⨭",Z9="⨴",Q9="∗",eG="_",tG="↙",nG="↘",rG="◊",iG="◊",oG="⧫",sG="(",lG="⦓",aG="⇆",cG="⌟",uG="⇋",fG="⥭",dG="‎",hG="⊿",pG="‹",gG="𝓁",mG="ℒ",vG="↰",yG="↰",bG="≲",wG="⪍",xG="⪏",SG="[",_G="‘",kG="‚",TG="Ł",CG="ł",EG="⪦",AG="⩹",$G="<",NG="<",MG="≪",LG="⋖",OG="⋋",RG="⋉",PG="⥶",IG="⩻",DG="◃",FG="⊴",zG="◂",HG="⦖",BG="⥊",jG="⥦",WG="≨︀",qG="≨︀",UG="¯",VG="♂",GG="✠",KG="✠",YG="↦",XG="↦",JG="↧",ZG="↤",QG="↥",eK="▮",tK="⨩",nK="М",rK="м",iK="—",oK="∺",sK="∡",lK=" ",aK="ℳ",cK="𝔐",uK="𝔪",fK="℧",dK="µ",hK="*",pK="⫰",gK="∣",mK="·",vK="⊟",yK="−",bK="∸",wK="⨪",xK="∓",SK="⫛",_K="…",kK="∓",TK="⊧",CK="𝕄",EK="𝕞",AK="∓",$K="𝓂",NK="ℳ",MK="∾",LK="Μ",OK="μ",RK="⊸",PK="⊸",IK="∇",DK="Ń",FK="ń",zK="∠⃒",HK="≉",BK="⩰̸",jK="≋̸",WK="ʼn",qK="≉",UK="♮",VK="ℕ",GK="♮",KK=" ",YK="≎̸",XK="≏̸",JK="⩃",ZK="Ň",QK="ň",e7="Ņ",t7="ņ",n7="≇",r7="⩭̸",i7="⩂",o7="Н",s7="н",l7="–",a7="⤤",c7="↗",u7="⇗",f7="↗",d7="≠",h7="≐̸",p7="​",g7="​",m7="​",v7="​",y7="≢",b7="⤨",w7="≂̸",x7="≫",S7="≪",_7=`
76
+ `,k7="∄",T7="∄",C7="𝔑",E7="𝔫",A7="≧̸",$7="≱",N7="≱",M7="≧̸",L7="⩾̸",O7="⩾̸",R7="⋙̸",P7="≵",I7="≫⃒",D7="≯",F7="≯",z7="≫̸",H7="↮",B7="⇎",j7="⫲",W7="∋",q7="⋼",U7="⋺",V7="∋",G7="Њ",K7="њ",Y7="↚",X7="⇍",J7="‥",Z7="≦̸",Q7="≰",eY="↚",tY="⇍",nY="↮",rY="⇎",iY="≰",oY="≦̸",sY="⩽̸",lY="⩽̸",aY="≮",cY="⋘̸",uY="≴",fY="≪⃒",dY="≮",hY="⋪",pY="⋬",gY="≪̸",mY="∤",vY="⁠",yY=" ",bY="𝕟",wY="ℕ",xY="⫬",SY="¬",_Y="≢",kY="≭",TY="∦",CY="∉",EY="≠",AY="≂̸",$Y="∄",NY="≯",MY="≱",LY="≧̸",OY="≫̸",RY="≹",PY="⩾̸",IY="≵",DY="≎̸",FY="≏̸",zY="∉",HY="⋵̸",BY="⋹̸",jY="∉",WY="⋷",qY="⋶",UY="⧏̸",VY="⋪",GY="⋬",KY="≮",YY="≰",XY="≸",JY="≪̸",ZY="⩽̸",QY="≴",eX="⪢̸",tX="⪡̸",nX="∌",rX="∌",iX="⋾",oX="⋽",sX="⊀",lX="⪯̸",aX="⋠",cX="∌",uX="⧐̸",fX="⋫",dX="⋭",hX="⊏̸",pX="⋢",gX="⊐̸",mX="⋣",vX="⊂⃒",yX="⊈",bX="⊁",wX="⪰̸",xX="⋡",SX="≿̸",_X="⊃⃒",kX="⊉",TX="≁",CX="≄",EX="≇",AX="≉",$X="∤",NX="∦",MX="∦",LX="⫽⃥",OX="∂̸",RX="⨔",PX="⊀",IX="⋠",DX="⊀",FX="⪯̸",zX="⪯̸",HX="⤳̸",BX="↛",jX="⇏",WX="↝̸",qX="↛",UX="⇏",VX="⋫",GX="⋭",KX="⊁",YX="⋡",XX="⪰̸",JX="𝒩",ZX="𝓃",QX="∤",eJ="∦",tJ="≁",nJ="≄",rJ="≄",iJ="∤",oJ="∦",sJ="⋢",lJ="⋣",aJ="⊄",cJ="⫅̸",uJ="⊈",fJ="⊂⃒",dJ="⊈",hJ="⫅̸",pJ="⊁",gJ="⪰̸",mJ="⊅",vJ="⫆̸",yJ="⊉",bJ="⊃⃒",wJ="⊉",xJ="⫆̸",SJ="≹",_J="Ñ",kJ="ñ",TJ="≸",CJ="⋪",EJ="⋬",AJ="⋫",$J="⋭",NJ="Ν",MJ="ν",LJ="#",OJ="№",RJ=" ",PJ="≍⃒",IJ="⊬",DJ="⊭",FJ="⊮",zJ="⊯",HJ="≥⃒",BJ=">⃒",jJ="⤄",WJ="⧞",qJ="⤂",UJ="≤⃒",VJ="<⃒",GJ="⊴⃒",KJ="⤃",YJ="⊵⃒",XJ="∼⃒",JJ="⤣",ZJ="↖",QJ="⇖",eZ="↖",tZ="⤧",nZ="Ó",rZ="ó",iZ="⊛",oZ="Ô",sZ="ô",lZ="⊚",aZ="О",cZ="о",uZ="⊝",fZ="Ő",dZ="ő",hZ="⨸",pZ="⊙",gZ="⦼",mZ="Œ",vZ="œ",yZ="⦿",bZ="𝔒",wZ="𝔬",xZ="˛",SZ="Ò",_Z="ò",kZ="⧁",TZ="⦵",CZ="Ω",EZ="∮",AZ="↺",$Z="⦾",NZ="⦻",MZ="‾",LZ="⧀",OZ="Ō",RZ="ō",PZ="Ω",IZ="ω",DZ="Ο",FZ="ο",zZ="⦶",HZ="⊖",BZ="𝕆",jZ="𝕠",WZ="⦷",qZ="“",UZ="‘",VZ="⦹",GZ="⊕",KZ="↻",YZ="⩔",XZ="∨",JZ="⩝",ZZ="ℴ",QZ="ℴ",eQ="ª",tQ="º",nQ="⊶",rQ="⩖",iQ="⩗",oQ="⩛",sQ="Ⓢ",lQ="𝒪",aQ="ℴ",cQ="Ø",uQ="ø",fQ="⊘",dQ="Õ",hQ="õ",pQ="⨶",gQ="⨷",mQ="⊗",vQ="Ö",yQ="ö",bQ="⌽",wQ="‾",xQ="⏞",SQ="⎴",_Q="⏜",kQ="¶",TQ="∥",CQ="∥",EQ="⫳",AQ="⫽",$Q="∂",NQ="∂",MQ="П",LQ="п",OQ="%",RQ=".",PQ="‰",IQ="⊥",DQ="‱",FQ="𝔓",zQ="𝔭",HQ="Φ",BQ="φ",jQ="ϕ",WQ="ℳ",qQ="☎",UQ="Π",VQ="π",GQ="⋔",KQ="ϖ",YQ="ℏ",XQ="ℎ",JQ="ℏ",ZQ="⨣",QQ="⊞",eee="⨢",tee="+",nee="∔",ree="⨥",iee="⩲",oee="±",see="±",lee="⨦",aee="⨧",cee="±",uee="ℌ",fee="⨕",dee="𝕡",hee="ℙ",pee="£",gee="⪷",mee="⪻",vee="≺",yee="≼",bee="⪷",wee="≺",xee="≼",See="≺",_ee="⪯",kee="≼",Tee="≾",Cee="⪯",Eee="⪹",Aee="⪵",$ee="⋨",Nee="⪯",Mee="⪳",Lee="≾",Oee="′",Ree="″",Pee="ℙ",Iee="⪹",Dee="⪵",Fee="⋨",zee="∏",Hee="∏",Bee="⌮",jee="⌒",Wee="⌓",qee="∝",Uee="∝",Vee="∷",Gee="∝",Kee="≾",Yee="⊰",Xee="𝒫",Jee="𝓅",Zee="Ψ",Qee="ψ",ete=" ",tte="𝔔",nte="𝔮",rte="⨌",ite="𝕢",ote="ℚ",ste="⁗",lte="𝒬",ate="𝓆",cte="ℍ",ute="⨖",fte="?",dte="≟",hte='"',pte='"',gte="⇛",mte="∽̱",vte="Ŕ",yte="ŕ",bte="√",wte="⦳",xte="⟩",Ste="⟫",_te="⦒",kte="⦥",Tte="⟩",Cte="»",Ete="⥵",Ate="⇥",$te="⤠",Nte="⤳",Mte="→",Lte="↠",Ote="⇒",Rte="⤞",Pte="↪",Ite="↬",Dte="⥅",Fte="⥴",zte="⤖",Hte="↣",Bte="↝",jte="⤚",Wte="⤜",qte="∶",Ute="ℚ",Vte="⤍",Gte="⤏",Kte="⤐",Yte="❳",Xte="}",Jte="]",Zte="⦌",Qte="⦎",ene="⦐",tne="Ř",nne="ř",rne="Ŗ",ine="ŗ",one="⌉",sne="}",lne="Р",ane="р",cne="⤷",une="⥩",fne="”",dne="”",hne="↳",pne="ℜ",gne="ℛ",mne="ℜ",vne="ℝ",yne="ℜ",bne="▭",wne="®",xne="®",Sne="∋",_ne="⇋",kne="⥯",Tne="⥽",Cne="⌋",Ene="𝔯",Ane="ℜ",$ne="⥤",Nne="⇁",Mne="⇀",Lne="⥬",One="Ρ",Rne="ρ",Pne="ϱ",Ine="⟩",Dne="⇥",Fne="→",zne="→",Hne="⇒",Bne="⇄",jne="↣",Wne="⌉",qne="⟧",Une="⥝",Vne="⥕",Gne="⇂",Kne="⌋",Yne="⇁",Xne="⇀",Jne="⇄",Zne="⇌",Qne="⇉",ere="↝",tre="↦",nre="⊢",rre="⥛",ire="⋌",ore="⧐",sre="⊳",lre="⊵",are="⥏",cre="⥜",ure="⥔",fre="↾",dre="⥓",hre="⇀",pre="˚",gre="≓",mre="⇄",vre="⇌",yre="‏",bre="⎱",wre="⎱",xre="⫮",Sre="⟭",_re="⇾",kre="⟧",Tre="⦆",Cre="𝕣",Ere="ℝ",Are="⨮",$re="⨵",Nre="⥰",Mre=")",Lre="⦔",Ore="⨒",Rre="⇉",Pre="⇛",Ire="›",Dre="𝓇",Fre="ℛ",zre="↱",Hre="↱",Bre="]",jre="’",Wre="’",qre="⋌",Ure="⋊",Vre="▹",Gre="⊵",Kre="▸",Yre="⧎",Xre="⧴",Jre="⥨",Zre="℞",Qre="Ś",eie="ś",tie="‚",nie="⪸",rie="Š",iie="š",oie="⪼",sie="≻",lie="≽",aie="⪰",cie="⪴",uie="Ş",fie="ş",die="Ŝ",hie="ŝ",pie="⪺",gie="⪶",mie="⋩",vie="⨓",yie="≿",bie="С",wie="с",xie="⊡",Sie="⋅",_ie="⩦",kie="⤥",Tie="↘",Cie="⇘",Eie="↘",Aie="§",$ie=";",Nie="⤩",Mie="∖",Lie="∖",Oie="✶",Rie="𝔖",Pie="𝔰",Iie="⌢",Die="♯",Fie="Щ",zie="щ",Hie="Ш",Bie="ш",jie="↓",Wie="←",qie="∣",Uie="∥",Vie="→",Gie="↑",Kie="­",Yie="Σ",Xie="σ",Jie="ς",Zie="ς",Qie="∼",eoe="⩪",toe="≃",noe="≃",roe="⪞",ioe="⪠",ooe="⪝",soe="⪟",loe="≆",aoe="⨤",coe="⥲",uoe="←",foe="∘",doe="∖",hoe="⨳",poe="⧤",goe="∣",moe="⌣",voe="⪪",yoe="⪬",boe="⪬︀",woe="Ь",xoe="ь",Soe="⌿",_oe="⧄",koe="/",Toe="𝕊",Coe="𝕤",Eoe="♠",Aoe="♠",$oe="∥",Noe="⊓",Moe="⊓︀",Loe="⊔",Ooe="⊔︀",Roe="√",Poe="⊏",Ioe="⊑",Doe="⊏",Foe="⊑",zoe="⊐",Hoe="⊒",Boe="⊐",joe="⊒",Woe="□",qoe="□",Uoe="⊓",Voe="⊏",Goe="⊑",Koe="⊐",Yoe="⊒",Xoe="⊔",Joe="▪",Zoe="□",Qoe="▪",ese="→",tse="𝒮",nse="𝓈",rse="∖",ise="⌣",ose="⋆",sse="⋆",lse="☆",ase="★",cse="ϵ",use="ϕ",fse="¯",dse="⊂",hse="⋐",pse="⪽",gse="⫅",mse="⊆",vse="⫃",yse="⫁",bse="⫋",wse="⊊",xse="⪿",Sse="⥹",_se="⊂",kse="⋐",Tse="⊆",Cse="⫅",Ese="⊆",Ase="⊊",$se="⫋",Nse="⫇",Mse="⫕",Lse="⫓",Ose="⪸",Rse="≻",Pse="≽",Ise="≻",Dse="⪰",Fse="≽",zse="≿",Hse="⪰",Bse="⪺",jse="⪶",Wse="⋩",qse="≿",Use="∋",Vse="∑",Gse="∑",Kse="♪",Yse="¹",Xse="²",Jse="³",Zse="⊃",Qse="⋑",ele="⪾",tle="⫘",nle="⫆",rle="⊇",ile="⫄",ole="⊃",sle="⊇",lle="⟉",ale="⫗",cle="⥻",ule="⫂",fle="⫌",dle="⊋",hle="⫀",ple="⊃",gle="⋑",mle="⊇",vle="⫆",yle="⊋",ble="⫌",wle="⫈",xle="⫔",Sle="⫖",_le="⤦",kle="↙",Tle="⇙",Cle="↙",Ele="⤪",Ale="ß",$le=" ",Nle="⌖",Mle="Τ",Lle="τ",Ole="⎴",Rle="Ť",Ple="ť",Ile="Ţ",Dle="ţ",Fle="Т",zle="т",Hle="⃛",Ble="⌕",jle="𝔗",Wle="𝔱",qle="∴",Ule="∴",Vle="∴",Gle="Θ",Kle="θ",Yle="ϑ",Xle="ϑ",Jle="≈",Zle="∼",Qle="  ",eae=" ",tae=" ",nae="≈",rae="∼",iae="Þ",oae="þ",sae="˜",lae="∼",aae="≃",cae="≅",uae="≈",fae="⨱",dae="⊠",hae="×",pae="⨰",gae="∭",mae="⤨",vae="⌶",yae="⫱",bae="⊤",wae="𝕋",xae="𝕥",Sae="⫚",_ae="⤩",kae="‴",Tae="™",Cae="™",Eae="▵",Aae="▿",$ae="◃",Nae="⊴",Mae="≜",Lae="▹",Oae="⊵",Rae="◬",Pae="≜",Iae="⨺",Dae="⃛",Fae="⨹",zae="⧍",Hae="⨻",Bae="⏢",jae="𝒯",Wae="𝓉",qae="Ц",Uae="ц",Vae="Ћ",Gae="ћ",Kae="Ŧ",Yae="ŧ",Xae="≬",Jae="↞",Zae="↠",Qae="Ú",ece="ú",tce="↑",nce="↟",rce="⇑",ice="⥉",oce="Ў",sce="ў",lce="Ŭ",ace="ŭ",cce="Û",uce="û",fce="У",dce="у",hce="⇅",pce="Ű",gce="ű",mce="⥮",vce="⥾",yce="𝔘",bce="𝔲",wce="Ù",xce="ù",Sce="⥣",_ce="↿",kce="↾",Tce="▀",Cce="⌜",Ece="⌜",Ace="⌏",$ce="◸",Nce="Ū",Mce="ū",Lce="¨",Oce="_",Rce="⏟",Pce="⎵",Ice="⏝",Dce="⋃",Fce="⊎",zce="Ų",Hce="ų",Bce="𝕌",jce="𝕦",Wce="⤒",qce="↑",Uce="↑",Vce="⇑",Gce="⇅",Kce="↕",Yce="↕",Xce="⇕",Jce="⥮",Zce="↿",Qce="↾",eue="⊎",tue="↖",nue="↗",rue="υ",iue="ϒ",oue="ϒ",sue="Υ",lue="υ",aue="↥",cue="⊥",uue="⇈",fue="⌝",due="⌝",hue="⌎",pue="Ů",gue="ů",mue="◹",vue="𝒰",yue="𝓊",bue="⋰",wue="Ũ",xue="ũ",Sue="▵",_ue="▴",kue="⇈",Tue="Ü",Cue="ü",Eue="⦧",Aue="⦜",$ue="ϵ",Nue="ϰ",Mue="∅",Lue="ϕ",Oue="ϖ",Rue="∝",Pue="↕",Iue="⇕",Due="ϱ",Fue="ς",zue="⊊︀",Hue="⫋︀",Bue="⊋︀",jue="⫌︀",Wue="ϑ",que="⊲",Uue="⊳",Vue="⫨",Gue="⫫",Kue="⫩",Yue="В",Xue="в",Jue="⊢",Zue="⊨",Que="⊩",efe="⊫",tfe="⫦",nfe="⊻",rfe="∨",ife="⋁",ofe="≚",sfe="⋮",lfe="|",afe="‖",cfe="|",ufe="‖",ffe="∣",dfe="|",hfe="❘",pfe="≀",gfe=" ",mfe="𝔙",vfe="𝔳",yfe="⊲",bfe="⊂⃒",wfe="⊃⃒",xfe="𝕍",Sfe="𝕧",_fe="∝",kfe="⊳",Tfe="𝒱",Cfe="𝓋",Efe="⫋︀",Afe="⊊︀",$fe="⫌︀",Nfe="⊋︀",Mfe="⊪",Lfe="⦚",Ofe="Ŵ",Rfe="ŵ",Pfe="⩟",Ife="∧",Dfe="⋀",Ffe="≙",zfe="℘",Hfe="𝔚",Bfe="𝔴",jfe="𝕎",Wfe="𝕨",qfe="℘",Ufe="≀",Vfe="≀",Gfe="𝒲",Kfe="𝓌",Yfe="⋂",Xfe="◯",Jfe="⋃",Zfe="▽",Qfe="𝔛",ede="𝔵",tde="⟷",nde="⟺",rde="Ξ",ide="ξ",ode="⟵",sde="⟸",lde="⟼",ade="⋻",cde="⨀",ude="𝕏",fde="𝕩",dde="⨁",hde="⨂",pde="⟶",gde="⟹",mde="𝒳",vde="𝓍",yde="⨆",bde="⨄",wde="△",xde="⋁",Sde="⋀",_de="Ý",kde="ý",Tde="Я",Cde="я",Ede="Ŷ",Ade="ŷ",$de="Ы",Nde="ы",Mde="¥",Lde="𝔜",Ode="𝔶",Rde="Ї",Pde="ї",Ide="𝕐",Dde="𝕪",Fde="𝒴",zde="𝓎",Hde="Ю",Bde="ю",jde="ÿ",Wde="Ÿ",qde="Ź",Ude="ź",Vde="Ž",Gde="ž",Kde="З",Yde="з",Xde="Ż",Jde="ż",Zde="ℨ",Qde="​",ehe="Ζ",the="ζ",nhe="𝔷",rhe="ℨ",ihe="Ж",ohe="ж",she="⇝",lhe="𝕫",ahe="ℤ",che="𝒵",uhe="𝓏",fhe="‍",dhe="‌",C_={Aacute:XP,aacute:JP,Abreve:ZP,abreve:QP,ac:eI,acd:tI,acE:nI,Acirc:rI,acirc:iI,acute:oI,Acy:sI,acy:lI,AElig:aI,aelig:cI,af:uI,Afr:fI,afr:dI,Agrave:hI,agrave:pI,alefsym:gI,aleph:mI,Alpha:vI,alpha:yI,Amacr:bI,amacr:wI,amalg:xI,amp:SI,AMP:_I,andand:kI,And:TI,and:CI,andd:EI,andslope:AI,andv:$I,ang:NI,ange:MI,angle:LI,angmsdaa:OI,angmsdab:RI,angmsdac:PI,angmsdad:II,angmsdae:DI,angmsdaf:FI,angmsdag:zI,angmsdah:HI,angmsd:BI,angrt:jI,angrtvb:WI,angrtvbd:qI,angsph:UI,angst:VI,angzarr:GI,Aogon:KI,aogon:YI,Aopf:XI,aopf:JI,apacir:ZI,ap:QI,apE:e2,ape:t2,apid:n2,apos:r2,ApplyFunction:i2,approx:o2,approxeq:s2,Aring:l2,aring:a2,Ascr:c2,ascr:u2,Assign:f2,ast:d2,asymp:h2,asympeq:p2,Atilde:g2,atilde:m2,Auml:v2,auml:y2,awconint:b2,awint:w2,backcong:x2,backepsilon:S2,backprime:_2,backsim:k2,backsimeq:T2,Backslash:C2,Barv:E2,barvee:A2,barwed:$2,Barwed:N2,barwedge:M2,bbrk:L2,bbrktbrk:O2,bcong:R2,Bcy:P2,bcy:I2,bdquo:D2,becaus:F2,because:z2,Because:H2,bemptyv:B2,bepsi:j2,bernou:W2,Bernoullis:q2,Beta:U2,beta:V2,beth:G2,between:K2,Bfr:Y2,bfr:X2,bigcap:J2,bigcirc:Z2,bigcup:Q2,bigodot:eD,bigoplus:tD,bigotimes:nD,bigsqcup:rD,bigstar:iD,bigtriangledown:oD,bigtriangleup:sD,biguplus:lD,bigvee:aD,bigwedge:cD,bkarow:uD,blacklozenge:fD,blacksquare:dD,blacktriangle:hD,blacktriangledown:pD,blacktriangleleft:gD,blacktriangleright:mD,blank:vD,blk12:yD,blk14:bD,blk34:wD,block:xD,bne:SD,bnequiv:_D,bNot:kD,bnot:TD,Bopf:CD,bopf:ED,bot:AD,bottom:$D,bowtie:ND,boxbox:MD,boxdl:LD,boxdL:OD,boxDl:RD,boxDL:PD,boxdr:ID,boxdR:DD,boxDr:FD,boxDR:zD,boxh:HD,boxH:BD,boxhd:jD,boxHd:WD,boxhD:qD,boxHD:UD,boxhu:VD,boxHu:GD,boxhU:KD,boxHU:YD,boxminus:XD,boxplus:JD,boxtimes:ZD,boxul:QD,boxuL:eF,boxUl:tF,boxUL:nF,boxur:rF,boxuR:iF,boxUr:oF,boxUR:sF,boxv:lF,boxV:aF,boxvh:cF,boxvH:uF,boxVh:fF,boxVH:dF,boxvl:hF,boxvL:pF,boxVl:gF,boxVL:mF,boxvr:vF,boxvR:yF,boxVr:bF,boxVR:wF,bprime:xF,breve:SF,Breve:_F,brvbar:kF,bscr:TF,Bscr:CF,bsemi:EF,bsim:AF,bsime:$F,bsolb:NF,bsol:MF,bsolhsub:LF,bull:OF,bullet:RF,bump:PF,bumpE:IF,bumpe:DF,Bumpeq:FF,bumpeq:zF,Cacute:HF,cacute:BF,capand:jF,capbrcup:WF,capcap:qF,cap:UF,Cap:VF,capcup:GF,capdot:KF,CapitalDifferentialD:YF,caps:XF,caret:JF,caron:ZF,Cayleys:QF,ccaps:ez,Ccaron:tz,ccaron:nz,Ccedil:rz,ccedil:iz,Ccirc:oz,ccirc:sz,Cconint:lz,ccups:az,ccupssm:cz,Cdot:uz,cdot:fz,cedil:dz,Cedilla:hz,cemptyv:pz,cent:gz,centerdot:mz,CenterDot:vz,cfr:yz,Cfr:bz,CHcy:wz,chcy:xz,check:Sz,checkmark:_z,Chi:kz,chi:Tz,circ:Cz,circeq:Ez,circlearrowleft:Az,circlearrowright:$z,circledast:Nz,circledcirc:Mz,circleddash:Lz,CircleDot:Oz,circledR:Rz,circledS:Pz,CircleMinus:Iz,CirclePlus:Dz,CircleTimes:Fz,cir:zz,cirE:Hz,cire:Bz,cirfnint:jz,cirmid:Wz,cirscir:qz,ClockwiseContourIntegral:Uz,CloseCurlyDoubleQuote:Vz,CloseCurlyQuote:Gz,clubs:Kz,clubsuit:Yz,colon:Xz,Colon:Jz,Colone:Zz,colone:Qz,coloneq:e3,comma:t3,commat:n3,comp:r3,compfn:i3,complement:o3,complexes:s3,cong:l3,congdot:a3,Congruent:c3,conint:u3,Conint:f3,ContourIntegral:d3,copf:h3,Copf:p3,coprod:g3,Coproduct:m3,copy:v3,COPY:y3,copysr:b3,CounterClockwiseContourIntegral:w3,crarr:x3,cross:S3,Cross:_3,Cscr:k3,cscr:T3,csub:C3,csube:E3,csup:A3,csupe:$3,ctdot:N3,cudarrl:M3,cudarrr:L3,cuepr:O3,cuesc:R3,cularr:P3,cularrp:I3,cupbrcap:D3,cupcap:F3,CupCap:z3,cup:H3,Cup:B3,cupcup:j3,cupdot:W3,cupor:q3,cups:U3,curarr:V3,curarrm:G3,curlyeqprec:K3,curlyeqsucc:Y3,curlyvee:X3,curlywedge:J3,curren:Z3,curvearrowleft:Q3,curvearrowright:eH,cuvee:tH,cuwed:nH,cwconint:rH,cwint:iH,cylcty:oH,dagger:sH,Dagger:lH,daleth:aH,darr:cH,Darr:uH,dArr:fH,dash:dH,Dashv:hH,dashv:pH,dbkarow:gH,dblac:mH,Dcaron:vH,dcaron:yH,Dcy:bH,dcy:wH,ddagger:xH,ddarr:SH,DD:_H,dd:kH,DDotrahd:TH,ddotseq:CH,deg:EH,Del:AH,Delta:$H,delta:NH,demptyv:MH,dfisht:LH,Dfr:OH,dfr:RH,dHar:PH,dharl:IH,dharr:DH,DiacriticalAcute:FH,DiacriticalDot:zH,DiacriticalDoubleAcute:HH,DiacriticalGrave:BH,DiacriticalTilde:jH,diam:WH,diamond:qH,Diamond:UH,diamondsuit:VH,diams:GH,die:KH,DifferentialD:YH,digamma:XH,disin:JH,div:ZH,divide:QH,divideontimes:eB,divonx:tB,DJcy:nB,djcy:rB,dlcorn:iB,dlcrop:oB,dollar:sB,Dopf:lB,dopf:aB,Dot:cB,dot:uB,DotDot:fB,doteq:dB,doteqdot:hB,DotEqual:pB,dotminus:gB,dotplus:mB,dotsquare:vB,doublebarwedge:yB,DoubleContourIntegral:bB,DoubleDot:wB,DoubleDownArrow:xB,DoubleLeftArrow:SB,DoubleLeftRightArrow:_B,DoubleLeftTee:kB,DoubleLongLeftArrow:TB,DoubleLongLeftRightArrow:CB,DoubleLongRightArrow:EB,DoubleRightArrow:AB,DoubleRightTee:$B,DoubleUpArrow:NB,DoubleUpDownArrow:MB,DoubleVerticalBar:LB,DownArrowBar:OB,downarrow:RB,DownArrow:PB,Downarrow:IB,DownArrowUpArrow:DB,DownBreve:FB,downdownarrows:zB,downharpoonleft:HB,downharpoonright:BB,DownLeftRightVector:jB,DownLeftTeeVector:WB,DownLeftVectorBar:qB,DownLeftVector:UB,DownRightTeeVector:VB,DownRightVectorBar:GB,DownRightVector:KB,DownTeeArrow:YB,DownTee:XB,drbkarow:JB,drcorn:ZB,drcrop:QB,Dscr:ej,dscr:tj,DScy:nj,dscy:rj,dsol:ij,Dstrok:oj,dstrok:sj,dtdot:lj,dtri:aj,dtrif:cj,duarr:uj,duhar:fj,dwangle:dj,DZcy:hj,dzcy:pj,dzigrarr:gj,Eacute:mj,eacute:vj,easter:yj,Ecaron:bj,ecaron:wj,Ecirc:xj,ecirc:Sj,ecir:_j,ecolon:kj,Ecy:Tj,ecy:Cj,eDDot:Ej,Edot:Aj,edot:$j,eDot:Nj,ee:Mj,efDot:Lj,Efr:Oj,efr:Rj,eg:Pj,Egrave:Ij,egrave:Dj,egs:Fj,egsdot:zj,el:Hj,Element:Bj,elinters:jj,ell:Wj,els:qj,elsdot:Uj,Emacr:Vj,emacr:Gj,empty:Kj,emptyset:Yj,EmptySmallSquare:Xj,emptyv:Jj,EmptyVerySmallSquare:Zj,emsp13:Qj,emsp14:e5,emsp:t5,ENG:n5,eng:r5,ensp:i5,Eogon:o5,eogon:s5,Eopf:l5,eopf:a5,epar:c5,eparsl:u5,eplus:f5,epsi:d5,Epsilon:h5,epsilon:p5,epsiv:g5,eqcirc:m5,eqcolon:v5,eqsim:y5,eqslantgtr:b5,eqslantless:w5,Equal:x5,equals:S5,EqualTilde:_5,equest:k5,Equilibrium:T5,equiv:C5,equivDD:E5,eqvparsl:A5,erarr:$5,erDot:N5,escr:M5,Escr:L5,esdot:O5,Esim:R5,esim:P5,Eta:I5,eta:D5,ETH:F5,eth:z5,Euml:H5,euml:B5,euro:j5,excl:W5,exist:q5,Exists:U5,expectation:V5,exponentiale:G5,ExponentialE:K5,fallingdotseq:Y5,Fcy:X5,fcy:J5,female:Z5,ffilig:Q5,fflig:e8,ffllig:t8,Ffr:n8,ffr:r8,filig:i8,FilledSmallSquare:o8,FilledVerySmallSquare:s8,fjlig:l8,flat:a8,fllig:c8,fltns:u8,fnof:f8,Fopf:d8,fopf:h8,forall:p8,ForAll:g8,fork:m8,forkv:v8,Fouriertrf:y8,fpartint:b8,frac12:w8,frac13:x8,frac14:S8,frac15:_8,frac16:k8,frac18:T8,frac23:C8,frac25:E8,frac34:A8,frac35:$8,frac38:N8,frac45:M8,frac56:L8,frac58:O8,frac78:R8,frasl:P8,frown:I8,fscr:D8,Fscr:F8,gacute:z8,Gamma:H8,gamma:B8,Gammad:j8,gammad:W8,gap:q8,Gbreve:U8,gbreve:V8,Gcedil:G8,Gcirc:K8,gcirc:Y8,Gcy:X8,gcy:J8,Gdot:Z8,gdot:Q8,ge:e4,gE:t4,gEl:n4,gel:r4,geq:i4,geqq:o4,geqslant:s4,gescc:l4,ges:a4,gesdot:c4,gesdoto:u4,gesdotol:f4,gesl:d4,gesles:h4,Gfr:p4,gfr:g4,gg:m4,Gg:v4,ggg:y4,gimel:b4,GJcy:w4,gjcy:x4,gla:S4,gl:_4,glE:k4,glj:T4,gnap:C4,gnapprox:E4,gne:A4,gnE:$4,gneq:N4,gneqq:M4,gnsim:L4,Gopf:O4,gopf:R4,grave:P4,GreaterEqual:I4,GreaterEqualLess:D4,GreaterFullEqual:F4,GreaterGreater:z4,GreaterLess:H4,GreaterSlantEqual:B4,GreaterTilde:j4,Gscr:W4,gscr:q4,gsim:U4,gsime:V4,gsiml:G4,gtcc:K4,gtcir:Y4,gt:X4,GT:J4,Gt:Z4,gtdot:Q4,gtlPar:eW,gtquest:tW,gtrapprox:nW,gtrarr:rW,gtrdot:iW,gtreqless:oW,gtreqqless:sW,gtrless:lW,gtrsim:aW,gvertneqq:cW,gvnE:uW,Hacek:fW,hairsp:dW,half:hW,hamilt:pW,HARDcy:gW,hardcy:mW,harrcir:vW,harr:yW,hArr:bW,harrw:wW,Hat:xW,hbar:SW,Hcirc:_W,hcirc:kW,hearts:TW,heartsuit:CW,hellip:EW,hercon:AW,hfr:$W,Hfr:NW,HilbertSpace:MW,hksearow:LW,hkswarow:OW,hoarr:RW,homtht:PW,hookleftarrow:IW,hookrightarrow:DW,hopf:FW,Hopf:zW,horbar:HW,HorizontalLine:BW,hscr:jW,Hscr:WW,hslash:qW,Hstrok:UW,hstrok:VW,HumpDownHump:GW,HumpEqual:KW,hybull:YW,hyphen:XW,Iacute:JW,iacute:ZW,ic:QW,Icirc:eq,icirc:tq,Icy:nq,icy:rq,Idot:iq,IEcy:oq,iecy:sq,iexcl:lq,iff:aq,ifr:cq,Ifr:uq,Igrave:fq,igrave:dq,ii:hq,iiiint:pq,iiint:gq,iinfin:mq,iiota:vq,IJlig:yq,ijlig:bq,Imacr:wq,imacr:xq,image:Sq,ImaginaryI:_q,imagline:kq,imagpart:Tq,imath:Cq,Im:Eq,imof:Aq,imped:$q,Implies:Nq,incare:Mq,in:"∈",infin:Lq,infintie:Oq,inodot:Rq,intcal:Pq,int:Iq,Int:Dq,integers:Fq,Integral:zq,intercal:Hq,Intersection:Bq,intlarhk:jq,intprod:Wq,InvisibleComma:qq,InvisibleTimes:Uq,IOcy:Vq,iocy:Gq,Iogon:Kq,iogon:Yq,Iopf:Xq,iopf:Jq,Iota:Zq,iota:Qq,iprod:eU,iquest:tU,iscr:nU,Iscr:rU,isin:iU,isindot:oU,isinE:sU,isins:lU,isinsv:aU,isinv:cU,it:uU,Itilde:fU,itilde:dU,Iukcy:hU,iukcy:pU,Iuml:gU,iuml:mU,Jcirc:vU,jcirc:yU,Jcy:bU,jcy:wU,Jfr:xU,jfr:SU,jmath:_U,Jopf:kU,jopf:TU,Jscr:CU,jscr:EU,Jsercy:AU,jsercy:$U,Jukcy:NU,jukcy:MU,Kappa:LU,kappa:OU,kappav:RU,Kcedil:PU,kcedil:IU,Kcy:DU,kcy:FU,Kfr:zU,kfr:HU,kgreen:BU,KHcy:jU,khcy:WU,KJcy:qU,kjcy:UU,Kopf:VU,kopf:GU,Kscr:KU,kscr:YU,lAarr:XU,Lacute:JU,lacute:ZU,laemptyv:QU,lagran:e6,Lambda:t6,lambda:n6,lang:r6,Lang:i6,langd:o6,langle:s6,lap:l6,Laplacetrf:a6,laquo:c6,larrb:u6,larrbfs:f6,larr:d6,Larr:h6,lArr:p6,larrfs:g6,larrhk:m6,larrlp:v6,larrpl:y6,larrsim:b6,larrtl:w6,latail:x6,lAtail:S6,lat:_6,late:k6,lates:T6,lbarr:C6,lBarr:E6,lbbrk:A6,lbrace:$6,lbrack:N6,lbrke:M6,lbrksld:L6,lbrkslu:O6,Lcaron:R6,lcaron:P6,Lcedil:I6,lcedil:D6,lceil:F6,lcub:z6,Lcy:H6,lcy:B6,ldca:j6,ldquo:W6,ldquor:q6,ldrdhar:U6,ldrushar:V6,ldsh:G6,le:K6,lE:Y6,LeftAngleBracket:X6,LeftArrowBar:J6,leftarrow:Z6,LeftArrow:Q6,Leftarrow:eV,LeftArrowRightArrow:tV,leftarrowtail:nV,LeftCeiling:rV,LeftDoubleBracket:iV,LeftDownTeeVector:oV,LeftDownVectorBar:sV,LeftDownVector:lV,LeftFloor:aV,leftharpoondown:cV,leftharpoonup:uV,leftleftarrows:fV,leftrightarrow:dV,LeftRightArrow:hV,Leftrightarrow:pV,leftrightarrows:gV,leftrightharpoons:mV,leftrightsquigarrow:vV,LeftRightVector:yV,LeftTeeArrow:bV,LeftTee:wV,LeftTeeVector:xV,leftthreetimes:SV,LeftTriangleBar:_V,LeftTriangle:kV,LeftTriangleEqual:TV,LeftUpDownVector:CV,LeftUpTeeVector:EV,LeftUpVectorBar:AV,LeftUpVector:$V,LeftVectorBar:NV,LeftVector:MV,lEg:LV,leg:OV,leq:RV,leqq:PV,leqslant:IV,lescc:DV,les:FV,lesdot:zV,lesdoto:HV,lesdotor:BV,lesg:jV,lesges:WV,lessapprox:qV,lessdot:UV,lesseqgtr:VV,lesseqqgtr:GV,LessEqualGreater:KV,LessFullEqual:YV,LessGreater:XV,lessgtr:JV,LessLess:ZV,lesssim:QV,LessSlantEqual:e9,LessTilde:t9,lfisht:n9,lfloor:r9,Lfr:i9,lfr:o9,lg:s9,lgE:l9,lHar:a9,lhard:c9,lharu:u9,lharul:f9,lhblk:d9,LJcy:h9,ljcy:p9,llarr:g9,ll:m9,Ll:v9,llcorner:y9,Lleftarrow:b9,llhard:w9,lltri:x9,Lmidot:S9,lmidot:_9,lmoustache:k9,lmoust:T9,lnap:C9,lnapprox:E9,lne:A9,lnE:$9,lneq:N9,lneqq:M9,lnsim:L9,loang:O9,loarr:R9,lobrk:P9,longleftarrow:I9,LongLeftArrow:D9,Longleftarrow:F9,longleftrightarrow:z9,LongLeftRightArrow:H9,Longleftrightarrow:B9,longmapsto:j9,longrightarrow:W9,LongRightArrow:q9,Longrightarrow:U9,looparrowleft:V9,looparrowright:G9,lopar:K9,Lopf:Y9,lopf:X9,loplus:J9,lotimes:Z9,lowast:Q9,lowbar:eG,LowerLeftArrow:tG,LowerRightArrow:nG,loz:rG,lozenge:iG,lozf:oG,lpar:sG,lparlt:lG,lrarr:aG,lrcorner:cG,lrhar:uG,lrhard:fG,lrm:dG,lrtri:hG,lsaquo:pG,lscr:gG,Lscr:mG,lsh:vG,Lsh:yG,lsim:bG,lsime:wG,lsimg:xG,lsqb:SG,lsquo:_G,lsquor:kG,Lstrok:TG,lstrok:CG,ltcc:EG,ltcir:AG,lt:$G,LT:NG,Lt:MG,ltdot:LG,lthree:OG,ltimes:RG,ltlarr:PG,ltquest:IG,ltri:DG,ltrie:FG,ltrif:zG,ltrPar:HG,lurdshar:BG,luruhar:jG,lvertneqq:WG,lvnE:qG,macr:UG,male:VG,malt:GG,maltese:KG,Map:"⤅",map:YG,mapsto:XG,mapstodown:JG,mapstoleft:ZG,mapstoup:QG,marker:eK,mcomma:tK,Mcy:nK,mcy:rK,mdash:iK,mDDot:oK,measuredangle:sK,MediumSpace:lK,Mellintrf:aK,Mfr:cK,mfr:uK,mho:fK,micro:dK,midast:hK,midcir:pK,mid:gK,middot:mK,minusb:vK,minus:yK,minusd:bK,minusdu:wK,MinusPlus:xK,mlcp:SK,mldr:_K,mnplus:kK,models:TK,Mopf:CK,mopf:EK,mp:AK,mscr:$K,Mscr:NK,mstpos:MK,Mu:LK,mu:OK,multimap:RK,mumap:PK,nabla:IK,Nacute:DK,nacute:FK,nang:zK,nap:HK,napE:BK,napid:jK,napos:WK,napprox:qK,natural:UK,naturals:VK,natur:GK,nbsp:KK,nbump:YK,nbumpe:XK,ncap:JK,Ncaron:ZK,ncaron:QK,Ncedil:e7,ncedil:t7,ncong:n7,ncongdot:r7,ncup:i7,Ncy:o7,ncy:s7,ndash:l7,nearhk:a7,nearr:c7,neArr:u7,nearrow:f7,ne:d7,nedot:h7,NegativeMediumSpace:p7,NegativeThickSpace:g7,NegativeThinSpace:m7,NegativeVeryThinSpace:v7,nequiv:y7,nesear:b7,nesim:w7,NestedGreaterGreater:x7,NestedLessLess:S7,NewLine:_7,nexist:k7,nexists:T7,Nfr:C7,nfr:E7,ngE:A7,nge:$7,ngeq:N7,ngeqq:M7,ngeqslant:L7,nges:O7,nGg:R7,ngsim:P7,nGt:I7,ngt:D7,ngtr:F7,nGtv:z7,nharr:H7,nhArr:B7,nhpar:j7,ni:W7,nis:q7,nisd:U7,niv:V7,NJcy:G7,njcy:K7,nlarr:Y7,nlArr:X7,nldr:J7,nlE:Z7,nle:Q7,nleftarrow:eY,nLeftarrow:tY,nleftrightarrow:nY,nLeftrightarrow:rY,nleq:iY,nleqq:oY,nleqslant:sY,nles:lY,nless:aY,nLl:cY,nlsim:uY,nLt:fY,nlt:dY,nltri:hY,nltrie:pY,nLtv:gY,nmid:mY,NoBreak:vY,NonBreakingSpace:yY,nopf:bY,Nopf:wY,Not:xY,not:SY,NotCongruent:_Y,NotCupCap:kY,NotDoubleVerticalBar:TY,NotElement:CY,NotEqual:EY,NotEqualTilde:AY,NotExists:$Y,NotGreater:NY,NotGreaterEqual:MY,NotGreaterFullEqual:LY,NotGreaterGreater:OY,NotGreaterLess:RY,NotGreaterSlantEqual:PY,NotGreaterTilde:IY,NotHumpDownHump:DY,NotHumpEqual:FY,notin:zY,notindot:HY,notinE:BY,notinva:jY,notinvb:WY,notinvc:qY,NotLeftTriangleBar:UY,NotLeftTriangle:VY,NotLeftTriangleEqual:GY,NotLess:KY,NotLessEqual:YY,NotLessGreater:XY,NotLessLess:JY,NotLessSlantEqual:ZY,NotLessTilde:QY,NotNestedGreaterGreater:eX,NotNestedLessLess:tX,notni:nX,notniva:rX,notnivb:iX,notnivc:oX,NotPrecedes:sX,NotPrecedesEqual:lX,NotPrecedesSlantEqual:aX,NotReverseElement:cX,NotRightTriangleBar:uX,NotRightTriangle:fX,NotRightTriangleEqual:dX,NotSquareSubset:hX,NotSquareSubsetEqual:pX,NotSquareSuperset:gX,NotSquareSupersetEqual:mX,NotSubset:vX,NotSubsetEqual:yX,NotSucceeds:bX,NotSucceedsEqual:wX,NotSucceedsSlantEqual:xX,NotSucceedsTilde:SX,NotSuperset:_X,NotSupersetEqual:kX,NotTilde:TX,NotTildeEqual:CX,NotTildeFullEqual:EX,NotTildeTilde:AX,NotVerticalBar:$X,nparallel:NX,npar:MX,nparsl:LX,npart:OX,npolint:RX,npr:PX,nprcue:IX,nprec:DX,npreceq:FX,npre:zX,nrarrc:HX,nrarr:BX,nrArr:jX,nrarrw:WX,nrightarrow:qX,nRightarrow:UX,nrtri:VX,nrtrie:GX,nsc:KX,nsccue:YX,nsce:XX,Nscr:JX,nscr:ZX,nshortmid:QX,nshortparallel:eJ,nsim:tJ,nsime:nJ,nsimeq:rJ,nsmid:iJ,nspar:oJ,nsqsube:sJ,nsqsupe:lJ,nsub:aJ,nsubE:cJ,nsube:uJ,nsubset:fJ,nsubseteq:dJ,nsubseteqq:hJ,nsucc:pJ,nsucceq:gJ,nsup:mJ,nsupE:vJ,nsupe:yJ,nsupset:bJ,nsupseteq:wJ,nsupseteqq:xJ,ntgl:SJ,Ntilde:_J,ntilde:kJ,ntlg:TJ,ntriangleleft:CJ,ntrianglelefteq:EJ,ntriangleright:AJ,ntrianglerighteq:$J,Nu:NJ,nu:MJ,num:LJ,numero:OJ,numsp:RJ,nvap:PJ,nvdash:IJ,nvDash:DJ,nVdash:FJ,nVDash:zJ,nvge:HJ,nvgt:BJ,nvHarr:jJ,nvinfin:WJ,nvlArr:qJ,nvle:UJ,nvlt:VJ,nvltrie:GJ,nvrArr:KJ,nvrtrie:YJ,nvsim:XJ,nwarhk:JJ,nwarr:ZJ,nwArr:QJ,nwarrow:eZ,nwnear:tZ,Oacute:nZ,oacute:rZ,oast:iZ,Ocirc:oZ,ocirc:sZ,ocir:lZ,Ocy:aZ,ocy:cZ,odash:uZ,Odblac:fZ,odblac:dZ,odiv:hZ,odot:pZ,odsold:gZ,OElig:mZ,oelig:vZ,ofcir:yZ,Ofr:bZ,ofr:wZ,ogon:xZ,Ograve:SZ,ograve:_Z,ogt:kZ,ohbar:TZ,ohm:CZ,oint:EZ,olarr:AZ,olcir:$Z,olcross:NZ,oline:MZ,olt:LZ,Omacr:OZ,omacr:RZ,Omega:PZ,omega:IZ,Omicron:DZ,omicron:FZ,omid:zZ,ominus:HZ,Oopf:BZ,oopf:jZ,opar:WZ,OpenCurlyDoubleQuote:qZ,OpenCurlyQuote:UZ,operp:VZ,oplus:GZ,orarr:KZ,Or:YZ,or:XZ,ord:JZ,order:ZZ,orderof:QZ,ordf:eQ,ordm:tQ,origof:nQ,oror:rQ,orslope:iQ,orv:oQ,oS:sQ,Oscr:lQ,oscr:aQ,Oslash:cQ,oslash:uQ,osol:fQ,Otilde:dQ,otilde:hQ,otimesas:pQ,Otimes:gQ,otimes:mQ,Ouml:vQ,ouml:yQ,ovbar:bQ,OverBar:wQ,OverBrace:xQ,OverBracket:SQ,OverParenthesis:_Q,para:kQ,parallel:TQ,par:CQ,parsim:EQ,parsl:AQ,part:$Q,PartialD:NQ,Pcy:MQ,pcy:LQ,percnt:OQ,period:RQ,permil:PQ,perp:IQ,pertenk:DQ,Pfr:FQ,pfr:zQ,Phi:HQ,phi:BQ,phiv:jQ,phmmat:WQ,phone:qQ,Pi:UQ,pi:VQ,pitchfork:GQ,piv:KQ,planck:YQ,planckh:XQ,plankv:JQ,plusacir:ZQ,plusb:QQ,pluscir:eee,plus:tee,plusdo:nee,plusdu:ree,pluse:iee,PlusMinus:oee,plusmn:see,plussim:lee,plustwo:aee,pm:cee,Poincareplane:uee,pointint:fee,popf:dee,Popf:hee,pound:pee,prap:gee,Pr:mee,pr:vee,prcue:yee,precapprox:bee,prec:wee,preccurlyeq:xee,Precedes:See,PrecedesEqual:_ee,PrecedesSlantEqual:kee,PrecedesTilde:Tee,preceq:Cee,precnapprox:Eee,precneqq:Aee,precnsim:$ee,pre:Nee,prE:Mee,precsim:Lee,prime:Oee,Prime:Ree,primes:Pee,prnap:Iee,prnE:Dee,prnsim:Fee,prod:zee,Product:Hee,profalar:Bee,profline:jee,profsurf:Wee,prop:qee,Proportional:Uee,Proportion:Vee,propto:Gee,prsim:Kee,prurel:Yee,Pscr:Xee,pscr:Jee,Psi:Zee,psi:Qee,puncsp:ete,Qfr:tte,qfr:nte,qint:rte,qopf:ite,Qopf:ote,qprime:ste,Qscr:lte,qscr:ate,quaternions:cte,quatint:ute,quest:fte,questeq:dte,quot:hte,QUOT:pte,rAarr:gte,race:mte,Racute:vte,racute:yte,radic:bte,raemptyv:wte,rang:xte,Rang:Ste,rangd:_te,range:kte,rangle:Tte,raquo:Cte,rarrap:Ete,rarrb:Ate,rarrbfs:$te,rarrc:Nte,rarr:Mte,Rarr:Lte,rArr:Ote,rarrfs:Rte,rarrhk:Pte,rarrlp:Ite,rarrpl:Dte,rarrsim:Fte,Rarrtl:zte,rarrtl:Hte,rarrw:Bte,ratail:jte,rAtail:Wte,ratio:qte,rationals:Ute,rbarr:Vte,rBarr:Gte,RBarr:Kte,rbbrk:Yte,rbrace:Xte,rbrack:Jte,rbrke:Zte,rbrksld:Qte,rbrkslu:ene,Rcaron:tne,rcaron:nne,Rcedil:rne,rcedil:ine,rceil:one,rcub:sne,Rcy:lne,rcy:ane,rdca:cne,rdldhar:une,rdquo:fne,rdquor:dne,rdsh:hne,real:pne,realine:gne,realpart:mne,reals:vne,Re:yne,rect:bne,reg:wne,REG:xne,ReverseElement:Sne,ReverseEquilibrium:_ne,ReverseUpEquilibrium:kne,rfisht:Tne,rfloor:Cne,rfr:Ene,Rfr:Ane,rHar:$ne,rhard:Nne,rharu:Mne,rharul:Lne,Rho:One,rho:Rne,rhov:Pne,RightAngleBracket:Ine,RightArrowBar:Dne,rightarrow:Fne,RightArrow:zne,Rightarrow:Hne,RightArrowLeftArrow:Bne,rightarrowtail:jne,RightCeiling:Wne,RightDoubleBracket:qne,RightDownTeeVector:Une,RightDownVectorBar:Vne,RightDownVector:Gne,RightFloor:Kne,rightharpoondown:Yne,rightharpoonup:Xne,rightleftarrows:Jne,rightleftharpoons:Zne,rightrightarrows:Qne,rightsquigarrow:ere,RightTeeArrow:tre,RightTee:nre,RightTeeVector:rre,rightthreetimes:ire,RightTriangleBar:ore,RightTriangle:sre,RightTriangleEqual:lre,RightUpDownVector:are,RightUpTeeVector:cre,RightUpVectorBar:ure,RightUpVector:fre,RightVectorBar:dre,RightVector:hre,ring:pre,risingdotseq:gre,rlarr:mre,rlhar:vre,rlm:yre,rmoustache:bre,rmoust:wre,rnmid:xre,roang:Sre,roarr:_re,robrk:kre,ropar:Tre,ropf:Cre,Ropf:Ere,roplus:Are,rotimes:$re,RoundImplies:Nre,rpar:Mre,rpargt:Lre,rppolint:Ore,rrarr:Rre,Rrightarrow:Pre,rsaquo:Ire,rscr:Dre,Rscr:Fre,rsh:zre,Rsh:Hre,rsqb:Bre,rsquo:jre,rsquor:Wre,rthree:qre,rtimes:Ure,rtri:Vre,rtrie:Gre,rtrif:Kre,rtriltri:Yre,RuleDelayed:Xre,ruluhar:Jre,rx:Zre,Sacute:Qre,sacute:eie,sbquo:tie,scap:nie,Scaron:rie,scaron:iie,Sc:oie,sc:sie,sccue:lie,sce:aie,scE:cie,Scedil:uie,scedil:fie,Scirc:die,scirc:hie,scnap:pie,scnE:gie,scnsim:mie,scpolint:vie,scsim:yie,Scy:bie,scy:wie,sdotb:xie,sdot:Sie,sdote:_ie,searhk:kie,searr:Tie,seArr:Cie,searrow:Eie,sect:Aie,semi:$ie,seswar:Nie,setminus:Mie,setmn:Lie,sext:Oie,Sfr:Rie,sfr:Pie,sfrown:Iie,sharp:Die,SHCHcy:Fie,shchcy:zie,SHcy:Hie,shcy:Bie,ShortDownArrow:jie,ShortLeftArrow:Wie,shortmid:qie,shortparallel:Uie,ShortRightArrow:Vie,ShortUpArrow:Gie,shy:Kie,Sigma:Yie,sigma:Xie,sigmaf:Jie,sigmav:Zie,sim:Qie,simdot:eoe,sime:toe,simeq:noe,simg:roe,simgE:ioe,siml:ooe,simlE:soe,simne:loe,simplus:aoe,simrarr:coe,slarr:uoe,SmallCircle:foe,smallsetminus:doe,smashp:hoe,smeparsl:poe,smid:goe,smile:moe,smt:voe,smte:yoe,smtes:boe,SOFTcy:woe,softcy:xoe,solbar:Soe,solb:_oe,sol:koe,Sopf:Toe,sopf:Coe,spades:Eoe,spadesuit:Aoe,spar:$oe,sqcap:Noe,sqcaps:Moe,sqcup:Loe,sqcups:Ooe,Sqrt:Roe,sqsub:Poe,sqsube:Ioe,sqsubset:Doe,sqsubseteq:Foe,sqsup:zoe,sqsupe:Hoe,sqsupset:Boe,sqsupseteq:joe,square:Woe,Square:qoe,SquareIntersection:Uoe,SquareSubset:Voe,SquareSubsetEqual:Goe,SquareSuperset:Koe,SquareSupersetEqual:Yoe,SquareUnion:Xoe,squarf:Joe,squ:Zoe,squf:Qoe,srarr:ese,Sscr:tse,sscr:nse,ssetmn:rse,ssmile:ise,sstarf:ose,Star:sse,star:lse,starf:ase,straightepsilon:cse,straightphi:use,strns:fse,sub:dse,Sub:hse,subdot:pse,subE:gse,sube:mse,subedot:vse,submult:yse,subnE:bse,subne:wse,subplus:xse,subrarr:Sse,subset:_se,Subset:kse,subseteq:Tse,subseteqq:Cse,SubsetEqual:Ese,subsetneq:Ase,subsetneqq:$se,subsim:Nse,subsub:Mse,subsup:Lse,succapprox:Ose,succ:Rse,succcurlyeq:Pse,Succeeds:Ise,SucceedsEqual:Dse,SucceedsSlantEqual:Fse,SucceedsTilde:zse,succeq:Hse,succnapprox:Bse,succneqq:jse,succnsim:Wse,succsim:qse,SuchThat:Use,sum:Vse,Sum:Gse,sung:Kse,sup1:Yse,sup2:Xse,sup3:Jse,sup:Zse,Sup:Qse,supdot:ele,supdsub:tle,supE:nle,supe:rle,supedot:ile,Superset:ole,SupersetEqual:sle,suphsol:lle,suphsub:ale,suplarr:cle,supmult:ule,supnE:fle,supne:dle,supplus:hle,supset:ple,Supset:gle,supseteq:mle,supseteqq:vle,supsetneq:yle,supsetneqq:ble,supsim:wle,supsub:xle,supsup:Sle,swarhk:_le,swarr:kle,swArr:Tle,swarrow:Cle,swnwar:Ele,szlig:Ale,Tab:$le,target:Nle,Tau:Mle,tau:Lle,tbrk:Ole,Tcaron:Rle,tcaron:Ple,Tcedil:Ile,tcedil:Dle,Tcy:Fle,tcy:zle,tdot:Hle,telrec:Ble,Tfr:jle,tfr:Wle,there4:qle,therefore:Ule,Therefore:Vle,Theta:Gle,theta:Kle,thetasym:Yle,thetav:Xle,thickapprox:Jle,thicksim:Zle,ThickSpace:Qle,ThinSpace:eae,thinsp:tae,thkap:nae,thksim:rae,THORN:iae,thorn:oae,tilde:sae,Tilde:lae,TildeEqual:aae,TildeFullEqual:cae,TildeTilde:uae,timesbar:fae,timesb:dae,times:hae,timesd:pae,tint:gae,toea:mae,topbot:vae,topcir:yae,top:bae,Topf:wae,topf:xae,topfork:Sae,tosa:_ae,tprime:kae,trade:Tae,TRADE:Cae,triangle:Eae,triangledown:Aae,triangleleft:$ae,trianglelefteq:Nae,triangleq:Mae,triangleright:Lae,trianglerighteq:Oae,tridot:Rae,trie:Pae,triminus:Iae,TripleDot:Dae,triplus:Fae,trisb:zae,tritime:Hae,trpezium:Bae,Tscr:jae,tscr:Wae,TScy:qae,tscy:Uae,TSHcy:Vae,tshcy:Gae,Tstrok:Kae,tstrok:Yae,twixt:Xae,twoheadleftarrow:Jae,twoheadrightarrow:Zae,Uacute:Qae,uacute:ece,uarr:tce,Uarr:nce,uArr:rce,Uarrocir:ice,Ubrcy:oce,ubrcy:sce,Ubreve:lce,ubreve:ace,Ucirc:cce,ucirc:uce,Ucy:fce,ucy:dce,udarr:hce,Udblac:pce,udblac:gce,udhar:mce,ufisht:vce,Ufr:yce,ufr:bce,Ugrave:wce,ugrave:xce,uHar:Sce,uharl:_ce,uharr:kce,uhblk:Tce,ulcorn:Cce,ulcorner:Ece,ulcrop:Ace,ultri:$ce,Umacr:Nce,umacr:Mce,uml:Lce,UnderBar:Oce,UnderBrace:Rce,UnderBracket:Pce,UnderParenthesis:Ice,Union:Dce,UnionPlus:Fce,Uogon:zce,uogon:Hce,Uopf:Bce,uopf:jce,UpArrowBar:Wce,uparrow:qce,UpArrow:Uce,Uparrow:Vce,UpArrowDownArrow:Gce,updownarrow:Kce,UpDownArrow:Yce,Updownarrow:Xce,UpEquilibrium:Jce,upharpoonleft:Zce,upharpoonright:Qce,uplus:eue,UpperLeftArrow:tue,UpperRightArrow:nue,upsi:rue,Upsi:iue,upsih:oue,Upsilon:sue,upsilon:lue,UpTeeArrow:aue,UpTee:cue,upuparrows:uue,urcorn:fue,urcorner:due,urcrop:hue,Uring:pue,uring:gue,urtri:mue,Uscr:vue,uscr:yue,utdot:bue,Utilde:wue,utilde:xue,utri:Sue,utrif:_ue,uuarr:kue,Uuml:Tue,uuml:Cue,uwangle:Eue,vangrt:Aue,varepsilon:$ue,varkappa:Nue,varnothing:Mue,varphi:Lue,varpi:Oue,varpropto:Rue,varr:Pue,vArr:Iue,varrho:Due,varsigma:Fue,varsubsetneq:zue,varsubsetneqq:Hue,varsupsetneq:Bue,varsupsetneqq:jue,vartheta:Wue,vartriangleleft:que,vartriangleright:Uue,vBar:Vue,Vbar:Gue,vBarv:Kue,Vcy:Yue,vcy:Xue,vdash:Jue,vDash:Zue,Vdash:Que,VDash:efe,Vdashl:tfe,veebar:nfe,vee:rfe,Vee:ife,veeeq:ofe,vellip:sfe,verbar:lfe,Verbar:afe,vert:cfe,Vert:ufe,VerticalBar:ffe,VerticalLine:dfe,VerticalSeparator:hfe,VerticalTilde:pfe,VeryThinSpace:gfe,Vfr:mfe,vfr:vfe,vltri:yfe,vnsub:bfe,vnsup:wfe,Vopf:xfe,vopf:Sfe,vprop:_fe,vrtri:kfe,Vscr:Tfe,vscr:Cfe,vsubnE:Efe,vsubne:Afe,vsupnE:$fe,vsupne:Nfe,Vvdash:Mfe,vzigzag:Lfe,Wcirc:Ofe,wcirc:Rfe,wedbar:Pfe,wedge:Ife,Wedge:Dfe,wedgeq:Ffe,weierp:zfe,Wfr:Hfe,wfr:Bfe,Wopf:jfe,wopf:Wfe,wp:qfe,wr:Ufe,wreath:Vfe,Wscr:Gfe,wscr:Kfe,xcap:Yfe,xcirc:Xfe,xcup:Jfe,xdtri:Zfe,Xfr:Qfe,xfr:ede,xharr:tde,xhArr:nde,Xi:rde,xi:ide,xlarr:ode,xlArr:sde,xmap:lde,xnis:ade,xodot:cde,Xopf:ude,xopf:fde,xoplus:dde,xotime:hde,xrarr:pde,xrArr:gde,Xscr:mde,xscr:vde,xsqcup:yde,xuplus:bde,xutri:wde,xvee:xde,xwedge:Sde,Yacute:_de,yacute:kde,YAcy:Tde,yacy:Cde,Ycirc:Ede,ycirc:Ade,Ycy:$de,ycy:Nde,yen:Mde,Yfr:Lde,yfr:Ode,YIcy:Rde,yicy:Pde,Yopf:Ide,yopf:Dde,Yscr:Fde,yscr:zde,YUcy:Hde,yucy:Bde,yuml:jde,Yuml:Wde,Zacute:qde,zacute:Ude,Zcaron:Vde,zcaron:Gde,Zcy:Kde,zcy:Yde,Zdot:Xde,zdot:Jde,zeetrf:Zde,ZeroWidthSpace:Qde,Zeta:ehe,zeta:the,zfr:nhe,Zfr:rhe,ZHcy:ihe,zhcy:ohe,zigrarr:she,zopf:lhe,Zopf:ahe,Zscr:che,zscr:uhe,zwj:fhe,zwnj:dhe},hhe="Á",phe="á",ghe="Â",mhe="â",vhe="´",yhe="Æ",bhe="æ",whe="À",xhe="à",She="&",_he="&",khe="Å",The="å",Che="Ã",Ehe="ã",Ahe="Ä",$he="ä",Nhe="¦",Mhe="Ç",Lhe="ç",Ohe="¸",Rhe="¢",Phe="©",Ihe="©",Dhe="¤",Fhe="°",zhe="÷",Hhe="É",Bhe="é",jhe="Ê",Whe="ê",qhe="È",Uhe="è",Vhe="Ð",Ghe="ð",Khe="Ë",Yhe="ë",Xhe="½",Jhe="¼",Zhe="¾",Qhe=">",epe=">",tpe="Í",npe="í",rpe="Î",ipe="î",ope="¡",spe="Ì",lpe="ì",ape="¿",cpe="Ï",upe="ï",fpe="«",dpe="<",hpe="<",ppe="¯",gpe="µ",mpe="·",vpe=" ",ype="¬",bpe="Ñ",wpe="ñ",xpe="Ó",Spe="ó",_pe="Ô",kpe="ô",Tpe="Ò",Cpe="ò",Epe="ª",Ape="º",$pe="Ø",Npe="ø",Mpe="Õ",Lpe="õ",Ope="Ö",Rpe="ö",Ppe="¶",Ipe="±",Dpe="£",Fpe='"',zpe='"',Hpe="»",Bpe="®",jpe="®",Wpe="§",qpe="­",Upe="¹",Vpe="²",Gpe="³",Kpe="ß",Ype="Þ",Xpe="þ",Jpe="×",Zpe="Ú",Qpe="ú",ege="Û",tge="û",nge="Ù",rge="ù",ige="¨",oge="Ü",sge="ü",lge="Ý",age="ý",cge="¥",uge="ÿ",fge={Aacute:hhe,aacute:phe,Acirc:ghe,acirc:mhe,acute:vhe,AElig:yhe,aelig:bhe,Agrave:whe,agrave:xhe,amp:She,AMP:_he,Aring:khe,aring:The,Atilde:Che,atilde:Ehe,Auml:Ahe,auml:$he,brvbar:Nhe,Ccedil:Mhe,ccedil:Lhe,cedil:Ohe,cent:Rhe,copy:Phe,COPY:Ihe,curren:Dhe,deg:Fhe,divide:zhe,Eacute:Hhe,eacute:Bhe,Ecirc:jhe,ecirc:Whe,Egrave:qhe,egrave:Uhe,ETH:Vhe,eth:Ghe,Euml:Khe,euml:Yhe,frac12:Xhe,frac14:Jhe,frac34:Zhe,gt:Qhe,GT:epe,Iacute:tpe,iacute:npe,Icirc:rpe,icirc:ipe,iexcl:ope,Igrave:spe,igrave:lpe,iquest:ape,Iuml:cpe,iuml:upe,laquo:fpe,lt:dpe,LT:hpe,macr:ppe,micro:gpe,middot:mpe,nbsp:vpe,not:ype,Ntilde:bpe,ntilde:wpe,Oacute:xpe,oacute:Spe,Ocirc:_pe,ocirc:kpe,Ograve:Tpe,ograve:Cpe,ordf:Epe,ordm:Ape,Oslash:$pe,oslash:Npe,Otilde:Mpe,otilde:Lpe,Ouml:Ope,ouml:Rpe,para:Ppe,plusmn:Ipe,pound:Dpe,quot:Fpe,QUOT:zpe,raquo:Hpe,reg:Bpe,REG:jpe,sect:Wpe,shy:qpe,sup1:Upe,sup2:Vpe,sup3:Gpe,szlig:Kpe,THORN:Ype,thorn:Xpe,times:Jpe,Uacute:Zpe,uacute:Qpe,Ucirc:ege,ucirc:tge,Ugrave:nge,ugrave:rge,uml:ige,Uuml:oge,uuml:sge,Yacute:lge,yacute:age,yen:cge,yuml:uge},dge="&",hge="'",pge=">",gge="<",mge='"',E_={amp:dge,apos:hge,gt:pge,lt:gge,quot:mge};var Qs={};const vge={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Lb;function yge(){if(Lb)return Qs;Lb=1;var e=Qs&&Qs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Qs,"__esModule",{value:!0});var t=e(vge),n=String.fromCodePoint||function(o){var l="";return o>65535&&(o-=65536,l+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),l+=String.fromCharCode(o),l};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return Qs.default=i,Qs}var Ob;function Rb(){if(Ob)return Ir;Ob=1;var e=Ir&&Ir.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.decodeHTML=Ir.decodeHTMLStrict=Ir.decodeXML=void 0;var t=e(C_),n=e(fge),i=e(E_),o=e(yge()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ir.decodeXML=u(i.default),Ir.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Ir.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),$=h(t.default);function _(C){return C.substr(-1)!==";"&&(C+=";"),$(C)}return function(C){return String(C).replace(w,_)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?o.default(parseInt(v.substr(3),16)):o.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Ir}var Pn={},Pb;function Ib(){if(Pb)return Pn;Pb=1;var e=Pn&&Pn.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.escapeUTF8=Pn.escape=Pn.encodeNonAsciiHTML=Pn.encodeHTML=Pn.encodeXML=void 0;var t=e(E_),n=f(t.default),i=h(n);Pn.encodeXML=C(n);var o=e(C_),l=f(o.default),u=h(l);Pn.encodeHTML=y(l,u),Pn.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(L,D){return L[E[D]]="&"+D+";",L},{})}function h(E){for(var L=[],D=[],N=0,I=Object.keys(E);N<I.length;N++){var q=I[N];q.length===1?L.push("\\"+q):D.push(q)}L.sort();for(var X=0;X<L.length-1;X++){for(var ie=X;ie<L.length-1&&L[ie].charCodeAt(1)+1===L[ie+1].charCodeAt(1);)ie+=1;var J=1+ie-X;J<3||L.splice(X,J,L[X]+"-"+L[ie])}return D.unshift("["+L.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,L){return function(D){return D.replace(L,function(N){return E[N]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function $(E){return E.replace(w,v)}Pn.escape=$;function _(E){return E.replace(i,v)}Pn.escapeUTF8=_;function C(E){return function(L){return L.replace(w,function(D){return E[D]||v(D)})}}return Pn}var Db;function bge(){return Db||(Db=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Rb(),n=Ib();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=o;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=Ib();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=Rb();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})})(Hh)),Hh}var Bh,Fb;function wge(){if(Fb)return Bh;Fb=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var k=0;k<O.length;k++){var S=O[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function n(P,O,k){return O&&t(P.prototype,O),P}function i(P,O){var k=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!k){if(Array.isArray(P)||(k=o(P))||O){k&&(P=k);var S=0,R=function(){};return{s:R,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Be){throw Be},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,ve;return{s:function(){k=k.call(P)},n:function(){var Be=k.next();return B=Be.done,Be},e:function(Be){ae=!0,ve=Be},f:function(){try{!B&&k.return!=null&&k.return()}finally{if(ae)throw ve}}}}function o(P,O){if(P){if(typeof P=="string")return l(P,O);var k=Object.prototype.toString.call(P).slice(8,-1);if(k==="Object"&&P.constructor&&(k=P.constructor.name),k==="Map"||k==="Set")return Array.from(P);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return l(P,O)}}function l(P,O){(O==null||O>P.length)&&(O=P.length);for(var k=0,S=new Array(O);k<O;k++)S[k]=P[k];return S}var u=bge(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return C(0,5).forEach(function(O){C(0,5).forEach(function(k){C(0,5).forEach(function(S){return p(O,k,S,P)})})}),C(0,23).forEach(function(O){var k=O+232,S=g(O*10+8);P[k]="#"+S+S+S}),P}function p(P,O,k,S){var R=16+P*36+O*6+k,B=P>0?P*40+55:0,ae=O>0?O*40+55:0,ve=k>0?k*40+55:0;S[R]=v([B,ae,ve])}function g(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function v(P){var O=[],k=i(P),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;O.push(g(R))}}catch(B){k.e(B)}finally{k.f()}return"#"+O.join("")}function y(P,O,k,S){var R;return O==="text"?R=D(k,S):O==="display"?R=$(P,k,S):O==="xterm256Foreground"?R=q(P,S.colors[k]):O==="xterm256Background"?R=X(P,S.colors[k]):O==="rgb"&&(R=w(P,k)),R}function w(P,O){O=O.substring(2).slice(0,-1);var k=+O.substr(0,2),S=O.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(P,(k===38?"color:#":"background-color:#")+R)}function $(P,O,k){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&_(P)},1:function(){return N(P,"b")},3:function(){return N(P,"i")},4:function(){return N(P,"u")},8:function(){return I(P,"display:none")},9:function(){return N(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ie(P,"i")},24:function(){return ie(P,"u")},39:function(){return q(P,k.fg)},49:function(){return X(P,k.bg)},53:function(){return I(P,"text-decoration:overline")}},R;return S[O]?R=S[O]():4<O&&O<7?R=N(P,"blink"):29<O&&O<38?R=q(P,k.colors[O-30]):39<O&&O<48?R=X(P,k.colors[O-40]):89<O&&O<98?R=q(P,k.colors[8+(O-90)]):99<O&&O<108&&(R=X(P,k.colors[8+(O-100)])),R}function _(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(k){return"</"+k+">"}).join("")}function C(P,O){for(var k=[],S=P;S<=O;S++)k.push(S);return k}function E(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function L(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function D(P,O){return O.escapeXML?u.encodeXML(P):P}function N(P,O,k){return k||(k=""),P.push(O),"<".concat(O).concat(k?' style="'.concat(k,'"'):"",">")}function I(P,O){return N(P,"span",O)}function q(P,O){return N(P,"span","color:"+O)}function X(P,O){return N(P,"span","background-color:"+O)}function ie(P,O){var k;if(P.slice(-1)[0]===O&&(k=P.pop()),k)return"</"+O+">"}function J(P,O,k){var S=!1,R=3;function B(){return""}function ae(j,ee){return k("xterm256Foreground",ee),""}function ve(j,ee){return k("xterm256Background",ee),""}function _e(j){return O.newline?k("display",-1):k("text",j),""}function Be(j,ee){S=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var de=i(ee),he;try{for(de.s();!(he=de.n()).done;){var me=he.value;k("display",me)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ee(j){return k("text",j),""}function Ge(j){return k("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ge},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function He(j,ee){ee>R&&S||(S=!1,P=P.replace(j.pattern,j.sub))}var Re=[],z=P,Z=z.length;e:for(;Z>0;){for(var re=0,le=0,ce=Ue.length;le<ce;re=++le){var F=Ue[re];if(He(F,re),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;Re.push(0),Z=P.length}return Re}function U(P,O,k){return O!=="text"&&(P=P.filter(E(L(k))),P.push({token:O,data:k,category:L(k)})),P}var K=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},f.colors,O.colors)),this.options=Object.assign({},f,O),this.stack=[],this.stickyStack=[]}return n(P,[{key:"toHtml",value:function(k){var S=this;k=typeof k=="string"?[k]:k;var R=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=y(R,ve.token,ve.data,B);_e&&ae.push(_e)}),J(k.join(""),B,function(ve,_e){var Be=y(R,ve,_e,B);Be&&ae.push(Be),B.stream&&(S.stickyStack=U(S.stickyStack,ve,_e))}),R.length&&ae.push(_(R)),ae.join("")}}]),P})();return Bh=K,Bh}var xge=wge();const Sge=Jg(xge);function Wa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _ge(e,t){return t&&e.endsWith(t)}async function Zg(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Qg(e){return new Sge({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function kge(e){return e===null||typeof e!="function"&&typeof e!="object"}function A_(e){let t=e;if(kge(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:"",stacks:[]}}return t.stacks=qO(t.stack||"",{ignoreStackEntries:[]}),t}function Tge(e,t){let n="";return t.message?.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(Wa(t.message))}`),t.stack?.includes("\x1B")&&(n.length>0?n+=e.toHtml(Wa(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(Wa(t.stack))}`),n.length>0?n:null}function $_(e,t){const n=Qg(e);return t.map(i=>{const o=i.result;if(!o||o.htmlError)return i;const l=o.errors?.map(u=>Tge(n,u)).filter(u=>u!=null).join("<br><br>");return l?.length&&(o.htmlError=l),i})}const Nc=dM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),Io=ks(Nc,"file"),yn=ks(Nc,"view"),N_=ks(Nc,"line"),M_=ks(Nc,"column"),Fi=ks(Nc,"test");var zb={exports:{}},Hb;function em(){return Hb||(Hb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("javascript",function(i,o){var l=i.indentUnit,u=o.statementIndent,f=o.jsonld,h=o.json||f,p=o.trackScope!==!1,g=o.typescript,v=o.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function M(tn){return{type:tn,style:"keyword"}}var V=M("keyword a"),ye=M("keyword b"),ke=M("keyword c"),fe=M("keyword d"),Ie=M("operator"),gt={type:"atom",style:"atom"};return{if:M("if"),while:V,with:V,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:M("new"),delete:ke,void:ke,throw:ke,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Ie,typeof:Ie,instanceof:Ie,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:M("this"),class:M("class"),super:M("atom"),yield:ke,export:M("export"),import:M("import"),extends:ke,await:ke}})(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(M){for(var V=!1,ye,ke=!1;(ye=M.next())!=null;){if(!V){if(ye=="/"&&!ke)return;ye=="["?ke=!0:ke&&ye=="]"&&(ke=!1)}V=!V&&ye=="\\"}}var C,E;function L(M,V,ye){return C=M,E=ye,V}function D(M,V){var ye=M.next();if(ye=='"'||ye=="'")return V.tokenize=N(ye),V.tokenize(M,V);if(ye=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(ye=="."&&M.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return L(ye);if(ye=="="&&M.eat(">"))return L("=>","operator");if(ye=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(ye))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(ye=="/")return M.eat("*")?(V.tokenize=I,I(M,V)):M.eat("/")?(M.skipToEnd(),L("comment","comment")):or(M,V,1)?(_(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(M.eat("="),L("operator","operator",M.current()));if(ye=="`")return V.tokenize=q,q(M,V);if(ye=="#"&&M.peek()=="!")return M.skipToEnd(),L("meta","meta");if(ye=="#"&&M.eatWhile(v))return L("variable","property");if(ye=="<"&&M.match("!--")||ye=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),L("comment","comment");if(w.test(ye))return(ye!=">"||!V.lexical||V.lexical.type!=">")&&(M.eat("=")?(ye=="!"||ye=="=")&&M.eat("="):/[<>*+\-|&?]/.test(ye)&&(M.eat(ye),ye==">"&&M.eat(ye))),ye=="?"&&M.eat(".")?L("."):L("operator","operator",M.current());if(v.test(ye)){M.eatWhile(v);var ke=M.current();if(V.lastType!="."){if(y.propertyIsEnumerable(ke)){var fe=y[ke];return L(fe.type,fe.style,ke)}if(ke=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ke)}return L("variable","variable",ke)}}function N(M){return function(V,ye){var ke=!1,fe;if(f&&V.peek()=="@"&&V.match($))return ye.tokenize=D,L("jsonld-keyword","meta");for(;(fe=V.next())!=null&&!(fe==M&&!ke);)ke=!ke&&fe=="\\";return ke||(ye.tokenize=D),L("string","string")}}function I(M,V){for(var ye=!1,ke;ke=M.next();){if(ke=="/"&&ye){V.tokenize=D;break}ye=ke=="*"}return L("comment","comment")}function q(M,V){for(var ye=!1,ke;(ke=M.next())!=null;){if(!ye&&(ke=="`"||ke=="$"&&M.eat("{"))){V.tokenize=D;break}ye=!ye&&ke=="\\"}return L("quasi","string-2",M.current())}var X="([{}])";function ie(M,V){V.fatArrowAt&&(V.fatArrowAt=null);var ye=M.string.indexOf("=>",M.start);if(!(ye<0)){if(g){var ke=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,ye));ke&&(ye=ke.index)}for(var fe=0,Ie=!1,gt=ye-1;gt>=0;--gt){var tn=M.string.charAt(gt),$n=X.indexOf(tn);if($n>=0&&$n<3){if(!fe){++gt;break}if(--fe==0){tn=="("&&(Ie=!0);break}}else if($n>=3&&$n<6)++fe;else if(v.test(tn))Ie=!0;else if(/["'\/`]/.test(tn))for(;;--gt){if(gt==0)return;var Ls=M.string.charAt(gt-1);if(Ls==tn&&M.string.charAt(gt-2)!="\\"){gt--;break}}else if(Ie&&!fe){++gt;break}}Ie&&!fe&&(V.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function U(M,V,ye,ke,fe,Ie){this.indented=M,this.column=V,this.type=ye,this.prev=fe,this.info=Ie,ke!=null&&(this.align=ke)}function K(M,V){if(!p)return!1;for(var ye=M.localVars;ye;ye=ye.next)if(ye.name==V)return!0;for(var ke=M.context;ke;ke=ke.prev)for(var ye=ke.vars;ye;ye=ye.next)if(ye.name==V)return!0}function P(M,V,ye,ke,fe){var Ie=M.cc;for(O.state=M,O.stream=fe,O.marked=null,O.cc=Ie,O.style=V,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var gt=Ie.length?Ie.pop():h?ce:re;if(gt(ye,ke)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:ye=="variable"&&K(M,ke)?"variable-2":V}}}var O={state:null,marked:null,cc:null};function k(){for(var M=arguments.length-1;M>=0;M--)O.cc.push(arguments[M])}function S(){return k.apply(null,arguments),!0}function R(M,V){for(var ye=V;ye;ye=ye.next)if(ye.name==M)return!0;return!1}function B(M){var V=O.state;if(O.marked="def",!!p){if(V.context){if(V.lexical.info=="var"&&V.context&&V.context.block){var ye=ae(M,V.context);if(ye!=null){V.context=ye;return}}else if(!R(M,V.localVars)){V.localVars=new Be(M,V.localVars);return}}o.globalVars&&!R(M,V.globalVars)&&(V.globalVars=new Be(M,V.globalVars))}}function ae(M,V){if(V)if(V.block){var ye=ae(M,V.prev);return ye?ye==V.prev?V:new _e(ye,V.vars,!0):null}else return R(M,V.vars)?V:new _e(V.prev,new Be(M,V.vars),!1);else return null}function ve(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function _e(M,V,ye){this.prev=M,this.vars=V,this.block=ye}function Be(M,V){this.name=M,this.next=V}var Ee=new Be("this",new Be("arguments",null));function Ge(){O.state.context=new _e(O.state.context,O.state.localVars,!1),O.state.localVars=Ee}function Ue(){O.state.context=new _e(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ge.lex=Ue.lex=!0;function He(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}He.lex=!0;function Re(M,V){var ye=function(){var ke=O.state,fe=ke.indented;if(ke.lexical.type=="stat")fe=ke.lexical.indented;else for(var Ie=ke.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;ke.lexical=new U(fe,O.stream.column(),M,null,ke.lexical,V)};return ye.lex=!0,ye}function z(){var M=O.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}z.lex=!0;function Z(M){function V(ye){return ye==M?S():M==";"||ye=="}"||ye==")"||ye=="]"?k():S(V)}return V}function re(M,V){return M=="var"?S(Re("vardef",V),Ts,Z(";"),z):M=="keyword a"?S(Re("form"),j,re,z):M=="keyword b"?S(Re("form"),re,z):M=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(Re("stat"),de,Z(";"),z):M=="debugger"?S(Z(";")):M=="{"?S(Re("}"),Ue,Gt,z,He):M==";"?S():M=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==z&&O.state.cc.pop()(),S(Re("form"),j,re,z,Cs)):M=="function"?S(br):M=="for"?S(Re("form"),Ue,Pc,re,He,z):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form",M=="class"?M:V),Es,z)):M=="variable"?g&&V=="declare"?(O.marked="keyword",S(re)):g&&(V=="module"||V=="enum"||V=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",V=="enum"?S(qe):V=="type"?S(Ic,Z("operator"),at,Z(";")):S(Re("form"),An,Z("{"),Re("}"),Gt,z,z)):g&&V=="namespace"?(O.marked="keyword",S(Re("form"),ce,re,z)):g&&V=="abstract"?(O.marked="keyword",S(re)):S(Re("stat"),Pe):M=="switch"?S(Re("form"),j,Z("{"),Re("}","switch"),Ue,Gt,z,z,He):M=="case"?S(ce,Z(":")):M=="default"?S(Z(":")):M=="catch"?S(Re("form"),Ge,le,re,z,He):M=="export"?S(Re("stat"),As,z):M=="import"?S(Re("stat"),eo,z):M=="async"?S(re):V=="@"?S(ce,re):k(Re("stat"),ce,Z(";"),z)}function le(M){if(M=="(")return S($r,Z(")"))}function ce(M,V){return ee(M,V,!1)}function F(M,V){return ee(M,V,!0)}function j(M){return M!="("?k():S(Re(")"),de,Z(")"),z)}function ee(M,V,ye){if(O.state.fatArrowAt==O.stream.start){var ke=ye?be:xe;if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Z("=>"),ke,He);if(M=="variable")return k(Ge,An,Z("=>"),ke,He)}var fe=ye?me:he;return J.hasOwnProperty(M)?S(fe):M=="function"?S(br,fe):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form"),wd,z)):M=="keyword c"||M=="async"?S(ye?F:ce):M=="("?S(Re(")"),de,Z(")"),z,fe):M=="operator"||M=="spread"?S(ye?F:ce):M=="["?S(Re("]"),Ft,z,fe):M=="{"?en(ct,"}",null,fe):M=="quasi"?k(Ce,fe):M=="new"?S(Q(ye)):S()}function de(M){return M.match(/[;\}\)\],]/)?k():k(ce)}function he(M,V){return M==","?S(de):me(M,V,!1)}function me(M,V,ye){var ke=ye==!1?he:me,fe=ye==!1?ce:F;if(M=="=>")return S(Ge,ye?be:xe,He);if(M=="operator")return/\+\+|--/.test(V)||g&&V=="!"?S(ke):g&&V=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Re(">"),ut(at,">"),z,ke):V=="?"?S(ce,Z(":"),fe):S(fe);if(M=="quasi")return k(Ce,ke);if(M!=";"){if(M=="(")return en(F,")","call",ke);if(M==".")return S(et,ke);if(M=="[")return S(Re("]"),de,Z("]"),z,ke);if(g&&V=="as")return O.marked="keyword",S(at,ke);if(M=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(fe)}}function Ce(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(Ce):S(de,Ae)}function Ae(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(Ce)}function xe(M){return ie(O.stream,O.state),k(M=="{"?re:ce)}function be(M){return ie(O.stream,O.state),k(M=="{"?re:F)}function Q(M){return function(V){return V=="."?S(M?oe:ue):V=="variable"&&g?S(Kn,M?me:he):k(M?F:ce)}}function ue(M,V){if(V=="target")return O.marked="keyword",S(he)}function oe(M,V){if(V=="target")return O.marked="keyword",S(me)}function Pe(M){return M==":"?S(z,re):k(he,Z(";"),z)}function et(M){if(M=="variable")return O.marked="property",S()}function ct(M,V){if(M=="async")return O.marked="property",S(ct);if(M=="variable"||O.style=="keyword"){if(O.marked="property",V=="get"||V=="set")return S(dt);var ye;return g&&O.state.fatArrowAt==O.stream.start&&(ye=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+ye[0].length),S(Ot)}else{if(M=="number"||M=="string")return O.marked=f?"property":O.style+" property",S(Ot);if(M=="jsonld-keyword")return S(Ot);if(g&&ve(V))return O.marked="keyword",S(ct);if(M=="[")return S(ce,Vn,Z("]"),Ot);if(M=="spread")return S(F,Ot);if(V=="*")return O.marked="keyword",S(ct);if(M==":")return k(Ot)}}function dt(M){return M!="variable"?k(Ot):(O.marked="property",S(br))}function Ot(M){if(M==":")return S(F);if(M=="(")return k(br)}function ut(M,V,ye){function ke(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var gt=O.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(tn,$n){return tn==V||$n==V?k():k(M)},ke)}return fe==V||Ie==V?S():ye&&ye.indexOf(";")>-1?k(M):S(Z(V))}return function(fe,Ie){return fe==V||Ie==V?S():k(M,ke)}}function en(M,V,ye){for(var ke=3;ke<arguments.length;ke++)O.cc.push(arguments[ke]);return S(Re(V,ye),ut(M,V),z)}function Gt(M){return M=="}"?S():k(re,Gt)}function Vn(M,V){if(g){if(M==":")return S(at);if(V=="?")return S(Vn)}}function Jr(M,V){if(g&&(M==":"||V=="in"))return S(at)}function Wt(M){if(g&&M==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(ce,Gn,at):S(at)}function Gn(M,V){if(V=="is")return O.marked="keyword",S()}function at(M,V){if(V=="keyof"||V=="typeof"||V=="infer"||V=="readonly")return O.marked="keyword",S(V=="typeof"?F:at);if(M=="variable"||V=="void")return O.marked="type",S(yr);if(V=="|"||V=="&")return S(at);if(M=="string"||M=="number"||M=="atom")return S(yr);if(M=="[")return S(Re("]"),ut(at,"]",","),z,yr);if(M=="{")return S(Re("}"),Xe,z,yr);if(M=="(")return S(ut(Dt,")"),Bo,yr);if(M=="<")return S(ut(at,">"),at);if(M=="quasi")return k(hn,yr)}function Bo(M){if(M=="=>")return S(at)}function Xe(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Xe):k(vi,Xe)}function vi(M,V){if(M=="variable"||O.style=="keyword")return O.marked="property",S(vi);if(V=="?"||M=="number"||M=="string")return S(vi);if(M==":")return S(at);if(M=="[")return S(Z("variable"),Jr,Z("]"),vi);if(M=="(")return k(Qi,vi);if(!M.match(/[;\}\)\],]/))return S()}function hn(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(hn):S(at,It)}function It(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(hn)}function Dt(M,V){return M=="variable"&&O.stream.match(/^\s*[?:]/,!1)||V=="?"?S(Dt):M==":"?S(at):M=="spread"?S(Dt):k(at)}function yr(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr);if(V=="|"||M=="."||V=="&")return S(at);if(M=="[")return S(at,Z("]"),yr);if(V=="extends"||V=="implements")return O.marked="keyword",S(at);if(V=="?")return S(at,Z(":"),at)}function Kn(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr)}function Er(){return k(at,pn)}function pn(M,V){if(V=="=")return S(at)}function Ts(M,V){return V=="enum"?(O.marked="keyword",S(qe)):k(An,Vn,Ar,bd)}function An(M,V){if(g&&ve(V))return O.marked="keyword",S(An);if(M=="variable")return B(V),S();if(M=="spread")return S(An);if(M=="[")return en(jl,"]");if(M=="{")return en(Ji,"}")}function Ji(M,V){return M=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(V),S(Ar)):(M=="variable"&&(O.marked="property"),M=="spread"?S(An):M=="}"?k():M=="["?S(ce,Z("]"),Z(":"),Ji):S(Z(":"),An,Ar))}function jl(){return k(An,Ar)}function Ar(M,V){if(V=="=")return S(F)}function bd(M){if(M==",")return S(Ts)}function Cs(M,V){if(M=="keyword b"&&V=="else")return S(Re("form","else"),re,z)}function Pc(M,V){if(V=="await")return S(Pc);if(M=="(")return S(Re(")"),Wl,z)}function Wl(M){return M=="var"?S(Ts,Zi):M=="variable"?S(Zi):k(Zi)}function Zi(M,V){return M==")"?S():M==";"?S(Zi):V=="in"||V=="of"?(O.marked="keyword",S(ce,Zi)):k(ce,Zi)}function br(M,V){if(V=="*")return O.marked="keyword",S(br);if(M=="variable")return B(V),S(br);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,re,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,br)}function Qi(M,V){if(V=="*")return O.marked="keyword",S(Qi);if(M=="variable")return B(V),S(Qi);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,Qi)}function Ic(M,V){if(M=="keyword"||M=="variable")return O.marked="type",S(Ic);if(V=="<")return S(Re(">"),ut(Er,">"),z)}function $r(M,V){return V=="@"&&S(ce,$r),M=="spread"?S($r):g&&ve(V)?(O.marked="keyword",S($r)):g&&M=="this"?S(Vn,Ar):k(An,Vn,Ar)}function wd(M,V){return M=="variable"?Es(M,V):Nr(M,V)}function Es(M,V){if(M=="variable")return B(V),S(Nr)}function Nr(M,V){if(V=="<")return S(Re(">"),ut(Er,">"),z,Nr);if(V=="extends"||V=="implements"||g&&M==",")return V=="implements"&&(O.marked="keyword"),S(g?at:ce,Nr);if(M=="{")return S(Re("}"),Mr,z)}function Mr(M,V){if(M=="async"||M=="variable"&&(V=="static"||V=="get"||V=="set"||g&&ve(V))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(Mr);if(M=="variable"||O.style=="keyword")return O.marked="property",S(jo,Mr);if(M=="number"||M=="string")return S(jo,Mr);if(M=="[")return S(ce,Vn,Z("]"),jo,Mr);if(V=="*")return O.marked="keyword",S(Mr);if(g&&M=="(")return k(Qi,Mr);if(M==";"||M==",")return S(Mr);if(M=="}")return S();if(V=="@")return S(ce,Mr)}function jo(M,V){if(V=="!"||V=="?")return S(jo);if(M==":")return S(at,Ar);if(V=="=")return S(F);var ye=O.state.lexical.prev,ke=ye&&ye.info=="interface";return k(ke?Qi:br)}function As(M,V){return V=="*"?(O.marked="keyword",S(Ms,Z(";"))):V=="default"?(O.marked="keyword",S(ce,Z(";"))):M=="{"?S(ut($s,"}"),Ms,Z(";")):k(re)}function $s(M,V){if(V=="as")return O.marked="keyword",S(Z("variable"));if(M=="variable")return k(F,$s)}function eo(M){return M=="string"?S():M=="("?k(ce):M=="."?k(he):k(Ns,Zr,Ms)}function Ns(M,V){return M=="{"?en(Ns,"}"):(M=="variable"&&B(V),V=="*"&&(O.marked="keyword"),S(ql))}function Zr(M){if(M==",")return S(Ns,Zr)}function ql(M,V){if(V=="as")return O.marked="keyword",S(Ns)}function Ms(M,V){if(V=="from")return O.marked="keyword",S(ce)}function Ft(M){return M=="]"?S():k(ut(F,"]"))}function qe(){return k(Re("form"),An,Z("{"),Re("}"),ut(yi,"}"),z,z)}function yi(){return k(An,Ar)}function Ul(M,V){return M.lastType=="operator"||M.lastType==","||w.test(V.charAt(0))||/[,.]/.test(V.charAt(0))}function or(M,V,ye){return V.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(V.lastType)||V.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(ye||0)))}return{startState:function(M){var V={tokenize:D,lastType:"sof",cc:[],lexical:new U((M||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new _e(null,null,!1),indented:M||0};return o.globalVars&&typeof o.globalVars=="object"&&(V.globalVars=o.globalVars),V},token:function(M,V){if(M.sol()&&(V.lexical.hasOwnProperty("align")||(V.lexical.align=!1),V.indented=M.indentation(),ie(M,V)),V.tokenize!=I&&M.eatSpace())return null;var ye=V.tokenize(M,V);return C=="comment"?ye:(V.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,P(V,ye,C,E,M))},indent:function(M,V){if(M.tokenize==I||M.tokenize==q)return n.Pass;if(M.tokenize!=D)return 0;var ye=V&&V.charAt(0),ke=M.lexical,fe;if(!/^\s*else\b/.test(V))for(var Ie=M.cc.length-1;Ie>=0;--Ie){var gt=M.cc[Ie];if(gt==z)ke=ke.prev;else if(gt!=Cs&&gt!=He)break}for(;(ke.type=="stat"||ke.type=="form")&&(ye=="}"||(fe=M.cc[M.cc.length-1])&&(fe==he||fe==me)&&!/^[,\.=+\-*:?[\(]/.test(V));)ke=ke.prev;u&&ke.type==")"&&ke.prev.type=="stat"&&(ke=ke.prev);var tn=ke.type,$n=ye==tn;return tn=="vardef"?ke.indented+(M.lastType=="operator"||M.lastType==","?ke.info.length+1:0):tn=="form"&&ye=="{"?ke.indented:tn=="form"?ke.indented+l:tn=="stat"?ke.indented+(Ul(M,V)?u||l:0):ke.info=="switch"&&!$n&&o.doubleIndentSwitch!=!1?ke.indented+(/^(?:case|default)\b/.test(V)?l:2*l):ke.align?ke.column+($n?0:1):ke.indented+($n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:or,skipExpression:function(M){P(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),zb.exports}em();var Bb={exports:{}},jb;function tm(){return jb||(jb=1,(function(e,t){(function(n){n(Ho())})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:o;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(_e){return R.tokenize=_e,_e(S,R)}var ae=S.next();if(ae=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(ae=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function $(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=q,R.tagName=R.tagStart=null;var ae=R.tokenize(S,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=_(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _(S){var R=function(B,ae){for(;!B.eol();)if(B.next()==S){ae.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ae){for(;!B.eol();){if(B.match(R)){ae.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ae;(ae=R.next())!=null;){if(ae=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ae==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function L(S){return S&&S.toLowerCase()}function D(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function N(S){S.context&&(S.context=S.context.prev)}function I(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(L(B))||!h.contextGrabbers[L(B)].hasOwnProperty(L(R))))return;N(S)}}function q(S,R,B){return S=="openTag"?(B.tagStart=R.column(),X):S=="closeTag"?ie:q}function X(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",K):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",K(S,R,B)):(y="error",X)}function ie(S,R,B){if(S=="word"){var ae=R.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(L(B.context.tagName))&&N(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(y="tag",J):(y="tag error",U)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",J(S,R,B)):(y="error",U)}function J(S,R,B){return S!="endTag"?(y="error",J):(N(B),q)}function U(S,R,B){return y="error",J(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ae=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ae))?I(B,ae):(I(B,ae),B.context=new D(B,ae,ve==B.indented)),q}return y="error",K}function P(S,R,B){return S=="equals"?O:(h.allowMissing||(y="error"),K(S,R,B))}function O(S,R,B){return S=="string"?k:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function k(S,R,B){return S=="string"?k:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:q,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ae=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ae&&ae.noIndent)return n.Pass;if(S.tokenize!=$&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=h.contextGrabbers[L(ae.tagName)];if(_e&&_e.hasOwnProperty(L(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Bb.exports}tm();var Wb={exports:{}},qb={exports:{}},Ub;function Cge(){return Ub||(Ub=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("css",function(U,K){var P=K.inline;K.propertyKeywords||(K=n.resolveMode("text/css"));var O=U.indentUnit,k=K.tokenHooks,S=K.documentTypes||{},R=K.mediaTypes||{},B=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ve=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},Be=K.fontProperties||{},Ee=K.counterDescriptors||{},Ge=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,Re=K.lineComment,z=K.supportsAtComponent===!0,Z=U.highlightNonStandardPropertyKeywords!==!1,re,le;function ce(Q,ue){return re=ue,Q}function F(Q,ue){var oe=Q.next();if(k[oe]){var Pe=k[oe](Q,ue);if(Pe!==!1)return Pe}if(oe=="@")return Q.eatWhile(/[\w\\\-]/),ce("def",Q.current());if(oe=="="||(oe=="~"||oe=="|")&&Q.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=j(oe),ue.tokenize(Q,ue);if(oe=="#")return Q.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return Q.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(Q.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(ue.tokenize=ee),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(Q.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(Q){return function(ue,oe){for(var Pe=!1,et;(et=ue.next())!=null;){if(et==Q&&!Pe){Q==")"&&ue.backUp(1);break}Pe=!Pe&&et=="\\"}return(et==Q||!Pe&&Q!=")")&&(oe.tokenize=null),ce("string","string")}}function ee(Q,ue){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(Q,ue,oe){this.type=Q,this.indent=ue,this.prev=oe}function he(Q,ue,oe,Pe){return Q.context=new de(oe,ue.indentation()+(Pe===!1?0:O),Q.context),oe}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,ue,oe){return be[oe.context.type](Q,ue,oe)}function Ae(Q,ue,oe,Pe){for(var et=Pe||1;et>0;et--)oe.context=oe.context.prev;return Ce(Q,ue,oe)}function xe(Q){var ue=Q.current().toLowerCase();Ue.hasOwnProperty(ue)?le="atom":Ge.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(Q,ue,oe){if(Q=="{")return he(oe,ue,"block");if(Q=="}"&&oe.context.prev)return me(oe);if(z&&/@component/i.test(Q))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return oe.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return he(oe,ue,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(Q,ue,oe){if(Q=="word"){var Pe=ue.current().toLowerCase();return ve.hasOwnProperty(Pe)?(le="property","maybeprop"):_e.hasOwnProperty(Pe)?(le=Z?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,ue,oe)},be.maybeprop=function(Q,ue,oe){return Q==":"?he(oe,ue,"prop"):Ce(Q,ue,oe)},be.prop=function(Q,ue,oe){if(Q==";")return me(oe);if(Q=="{"&&He)return he(oe,ue,"propBlock");if(Q=="}"||Q=="{")return Ae(Q,ue,oe);if(Q=="(")return he(oe,ue,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(Q=="word")xe(ue);else if(Q=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(Q,ue,oe){return Q=="}"?me(oe):Q=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(Q,ue,oe){return Q=="{"||Q=="}"?Ae(Q,ue,oe):Q==")"?me(oe):Q=="("?he(oe,ue,"parens"):Q=="interpolation"?he(oe,ue,"interpolation"):(Q=="word"&&xe(ue),"parens")},be.pseudo=function(Q,ue,oe){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",oe.context.type):Ce(Q,ue,oe)},be.documentTypes=function(Q,ue,oe){return Q=="word"&&S.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(Q,ue,oe)},be.atBlock=function(Q,ue,oe){if(Q=="(")return he(oe,ue,"atBlock_parens");if(Q=="}"||Q==";")return Ae(Q,ue,oe);if(Q=="{")return me(oe)&&he(oe,ue,He?"block":"top");if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q=="word"){var Pe=ue.current().toLowerCase();Pe=="only"||Pe=="not"||Pe=="and"||Pe=="or"?le="keyword":R.hasOwnProperty(Pe)?le="attribute":B.hasOwnProperty(Pe)?le="property":ae.hasOwnProperty(Pe)?le="keyword":ve.hasOwnProperty(Pe)?le="property":_e.hasOwnProperty(Pe)?le=Z?"string-2":"property":Ue.hasOwnProperty(Pe)?le="atom":Ge.hasOwnProperty(Pe)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(Q,ue,oe){return Q=="}"?Ae(Q,ue,oe):Q=="{"?me(oe)&&he(oe,ue,He?"block":"top",!1):(Q=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(Q,ue,oe){return Q==")"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe,2):be.atBlock(Q,ue,oe)},be.restricted_atBlock_before=function(Q,ue,oe){return Q=="{"?he(oe,ue,"restricted_atBlock"):Q=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,ue,oe)},be.restricted_atBlock=function(Q,ue,oe){return Q=="}"?(oe.stateArg=null,me(oe)):Q=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ee.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,ue,oe){return Q=="word"?(le="variable","keyframes"):Q=="{"?he(oe,ue,"top"):Ce(Q,ue,oe)},be.at=function(Q,ue,oe){return Q==";"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,ue,oe){return Q=="}"?me(oe):Q=="{"||Q==";"?Ae(Q,ue,oe):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new de(P?"block":"top",Q||0,null)}},token:function(Q,ue){if(!ue.tokenize&&Q.eatSpace())return null;var oe=(ue.tokenize||F)(Q,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=be[ue.state](re,Q,ue)),le},indent:function(Q,ue){var oe=Q.context,Pe=ue&&ue.charAt(0),et=oe.indent;return oe.type=="prop"&&(Pe=="}"||Pe==")")&&(oe=oe.prev),oe.prev&&(Pe=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,et=oe.indent):(Pe==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Pe=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(et=Math.max(0,oe.indent-O))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function i(U){for(var K={},P=0;P<U.length;++P)K[U[P].toLowerCase()]=!0;return K}var o=["domain","regexp","url","url-prefix"],l=i(o),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=i(u),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=i(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=i(g),y=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=i(y),$=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=i($),C=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=i(C),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=i(L),N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=i(N),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],X=i(q),ie=o.concat(u).concat(h).concat(g).concat(y).concat($).concat(N).concat(q);n.registerHelper("hintWords","css",ie);function J(U,K){for(var P=!1,O;(O=U.next())!=null;){if(P&&O=="/"){K.tokenize=null;break}P=O=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:l,mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},":":function(U){return U.match(/^\s*\{/,!1)?[null,null]:!1},$:function(U){return U.match(/^[\w-]+/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(U){return U.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},"@":function(U){return U.eat("{")?[null,"interpolation"]:U.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:f,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,supportsAtComponent:!0,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css",helperType:"gss"})})})()),qb.exports}var Vb;function Ege(){return Vb||(Vb=1,(function(e,t){(function(n){n(Ho(),tm(),em(),Cge())})(function(n){var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function o(v,y,w){var $=v.current(),_=$.search(y);return _>-1?v.backUp($.length-_):$.match(/<\/?$/)&&(v.backUp($.length),v.match(y,!1)||v.match($)),w}var l={};function u(v){var y=l[v];return y||(l[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function f(v,y){var w=v.match(u(y));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,y){return new RegExp((y?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,y){for(var w in v)for(var $=y[w]||(y[w]=[]),_=v[w],C=_.length-1;C>=0;C--)$.unshift(_[C])}function g(v,y){for(var w=0;w<v.length;w++){var $=v[w];if(!$[0]||$[1].test(f(y,$[0])))return $[2]}}n.defineMode("htmlmixed",function(v,y){var w=n.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),$={},_=y&&y.tags,C=y&&y.scriptTypes;if(p(i,$),_&&p(_,$),C)for(var E=C.length-1;E>=0;E--)$.script.unshift(["type",C[E].matches,C[E].mode]);function L(D,N){var I=w.token(D,N.htmlState),q=/\btag\b/.test(I),X;if(q&&!/[<>\s\/]/.test(D.current())&&(X=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&$.hasOwnProperty(X))N.inTag=X+" ";else if(N.inTag&&q&&/>$/.test(D.current())){var ie=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var J=D.current()==">"&&g($[ie[1]],ie[2]),U=n.getMode(v,J),K=h(ie[1],!0),P=h(ie[1],!1);N.token=function(O,k){return O.match(K,!1)?(k.token=L,k.localState=k.localMode=null,null):o(O,P,k.localMode.token(O,k.localState))},N.localMode=U,N.localState=n.startState(U,w.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=D.current(),D.eol()&&(N.inTag+=" "));return I}return{startState:function(){var D=n.startState(w);return{token:L,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var N;return D.localState&&(N=n.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:N,htmlState:n.copyState(w,D.htmlState)}},token:function(D,N){return N.token(D,N)},indent:function(D,N,I){return!D.localMode||/^\s*<\//.test(N)?w.indent(D.htmlState,N,I):D.localMode.indent?D.localMode.indent(D.localState,N,I):n.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||w}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})()),Wb.exports}Ege();var Gb={exports:{}},Kb;function Age(){return Kb||(Kb=1,(function(e,t){(function(n){n(Ho(),tm(),em())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function o(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&o(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var _=f.indent(w,"","");return w.tagName=$,_}function g(w,$){return $.context.mode==f?v(w,$,$.context):y(w,$,$.context)}function v(w,$,_){if(_.depth==2)return w.match(/^.*?\*\//)?_.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute(_.state);var C=p(_.state),E=_.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:_.prev.state.lexical&&(C=_.prev.state.lexical.indented)}else _.depth==1&&(C+=l.indentUnit);return $.context=new i(n.startState(h,C),h,0,$.context),null}if(_.depth==1){if(w.peek()=="<")return f.skipAttribute(_.state),$.context=new i(n.startState(f,p(_.state)),f,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return _.depth=2,g(w,$)}var L=f.token(w,_.state),D=w.current(),N;return/\btag\b/.test(L)?/>$/.test(D)?_.state.context?_.depth=0:$.context=$.context.prev:/^</.test(D)&&(_.depth=1):!L&&(N=D.indexOf("{"))>-1&&w.backUp(D.length-N),L}function y(w,$,_){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,_.state))return $.context=new i(n.startState(f,h.indent(_.state,"","")),f,0,$.context),h.skipExpression(_.state),null;var C=h.token(w,_.state);if(!C&&_.depth!=null){var E=w.current();E=="{"?_.depth++:E=="}"&&--_.depth==0&&($.context=$.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,_){return w.context.mode.indent(w.context.state,$,_)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Gb.exports}Age();var Yb={exports:{}},Xb;function $ge(){return Xb||(Xb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?o(p):i(p)},20)}function u(p){h(p)&&o(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?o(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Yb.exports}$ge();var Jb={exports:{}},Zb;function Nge(){return Zb||(Zb=1,(function(e,t){(function(n){n(Ho())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],$=p.pos;function _(){n.off(document,"mousemove",C),n.off(document,"mouseup",_)}function C(E){if(E.which!=1)return _();p.moveTo($+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",_)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var o=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<o&&(this.size-=o-g,g=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})})()),Jb.exports}Nge();const Fn=Vt();function Mge(e,t,n={}){const i=YP.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),yt(t,l=>{if(l!==i.getValue()){o=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),_c(()=>{Fn.value=void 0}),Vf(i)}async function L_(e){dc({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Lge(e,t){dc({file:e,column:t.column-1,line:t.line,view:"editor",test:Fi.value})}function Oge(e,t){if(!t)return;const{line:n,column:i,file:o}=t;if(e.file.filepath!==o)return Zg(o,n,i);dc({file:e.file.id,column:i-1,line:n,view:"editor",test:Fi.value})}const Tr=Ke(),vl=Ke(!0),Do=Ke(!1),Ef=Ke(!0),O_=Se(()=>pt.value?.coverage),Pp=Se(()=>O_.value?.enabled),$a=Se(()=>Pp.value&&!!O_.value?.htmlDir),yl=Cc("vitest-ui_splitpanes-mainSizes",[33,67]),ms=Cc("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?lr.value[0]/window.outerWidth*100:33,67]),Bi=Cc("vitest-ui_details-panel-visible",!0),Tn=Ke("right");At(()=>{yt(pt,()=>{pt.value?.browser?.detailsPanelPosition&&(Tn.value=pt.value.browser.detailsPanelPosition)})});function Rge(){setTimeout(()=>{Bi.value=!1},0)}function Pge(){Bi.value=!0}const fn=dr({navigation:yl.value[0],details:{size:yl.value[1],browser:ms.value[0],main:ms.value[1]}});yt(dd,e=>{Ef.value=e==="running"},{immediate:!0});function Ige(){const e=Io.value;if(e&&e.length>0){const t=Cr(e);t?(Tr.value=t,vl.value=!1,Do.value=!1):qN(()=>ft.state.getFiles(),()=>{Tr.value=Cr(e),vl.value=!1,Do.value=!1})}return vl}function Af(e){vl.value=e,Do.value=!1,e&&(Tr.value=void 0,Io.value="")}function dc({file:e,line:t,view:n,test:i,column:o}){Io.value=e,N_.value=t,M_.value=o,yn.value=n,Fi.value=i,Tr.value=Cr(e),Af(!1)}function Dge(e){e.type==="test"?yn.value==="editor"?L_(e):dc({file:e.file.id,line:null,column:null,view:yn.value,test:e.id}):dc({file:e.file.id,test:null,line:null,view:yn.value,column:null})}function Fge(){Do.value=!0,vl.value=!1,Tr.value=void 0,Io.value=""}function zge(){if(gr?.provider==="webdriverio"){const e=window.outerWidth*(fn.details.size/100);return(lr.value[0]+20)/e*100}return 33}function Hge(){fn.navigation=33,fn.details.size=67,yl.value=[33,67]}function R_(){fn.details.main!==0&&(fn.details.browser=zge(),fn.details.main=100-fn.details.browser,ms.value=[fn.details.browser,fn.details.main])}function Bge(){Tn.value=Tn.value==="right"?"bottom":"right";const e=Tn.value==="bottom"?33:50;ms.value=[e,100-e],fn.details.browser=e,fn.details.main=100-e}const jge={setCurrentFileId(e){Io.value=e,Tr.value=Cr(e),Af(!1)},async setIframeViewport(e,t){lr.value=[e,t],gr?.provider==="webdriverio"&&R_(),await new Promise(n=>requestAnimationFrame(n))}},Wge=location.port,qge=[location.hostname,Wge].filter(Boolean).join(":"),Uge=`${location.protocol==="https:"?"wss:":"ws:"}//${qge}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var ur=Uint8Array,sl=Uint16Array,Vge=Int32Array,P_=new ur([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I_=new ur([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gge=new ur([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D_=function(e,t){for(var n=new sl(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new Vge(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)o[l]=l-n[i]<<5|i;return{b:n,r:o}},F_=D_(P_,2),z_=F_.b,Kge=F_.r;z_[28]=258,Kge[258]=28;var Yge=D_(I_,0),Xge=Yge.b,Ip=new sl(32768);for(var Mt=0;Mt<32768;++Mt){var fo=(Mt&43690)>>1|(Mt&21845)<<1;fo=(fo&52428)>>2|(fo&13107)<<2,fo=(fo&61680)>>4|(fo&3855)<<4,Ip[Mt]=((fo&65280)>>8|(fo&255)<<8)>>1}var qa=(function(e,t,n){for(var i=e.length,o=0,l=new sl(t);o<i;++o)e[o]&&++l[e[o]-1];var u=new sl(t);for(o=1;o<t;++o)u[o]=u[o-1]+l[o-1]<<1;var f;if(n){f=new sl(1<<t);var h=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],v=u[e[o]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Ip[v]>>h]=p}else for(f=new sl(i),o=0;o<i;++o)e[o]&&(f[o]=Ip[u[e[o]-1]++]>>15-e[o]);return f}),Mc=new ur(288);for(var Mt=0;Mt<144;++Mt)Mc[Mt]=8;for(var Mt=144;Mt<256;++Mt)Mc[Mt]=9;for(var Mt=256;Mt<280;++Mt)Mc[Mt]=7;for(var Mt=280;Mt<288;++Mt)Mc[Mt]=8;var H_=new ur(32);for(var Mt=0;Mt<32;++Mt)H_[Mt]=5;var Jge=qa(Mc,9,1),Zge=qa(H_,5,1),jh=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Dr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Wh=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Qge=function(e){return(e+7)/8|0},B_=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new ur(e.subarray(t,n))},eme=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Zn=function(e,t,n){var i=new Error(t||eme[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Zn),!n)throw i;return i},nm=function(e,t,n,i){var o=e.length,l=0;if(!o||t.f&&!t.l)return n||new ur(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new ur(o*3));var p=function(ce){var F=n.length;if(ce>F){var j=new ur(Math.max(F*2,ce));j.set(n),n=j}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,$=t.d,_=t.m,C=t.n,E=o*8;do{if(!w){g=Dr(e,v,1);var L=Dr(e,v+1,3);if(v+=3,L)if(L==1)w=Jge,$=Zge,_=9,C=5;else if(L==2){var q=Dr(e,v,31)+257,X=Dr(e,v+10,15)+4,ie=q+Dr(e,v+5,31)+1;v+=14;for(var J=new ur(ie),U=new ur(19),K=0;K<X;++K)U[Gge[K]]=Dr(e,v+K*3,7);v+=X*3;for(var P=jh(U),O=(1<<P)-1,k=qa(U,P,1),K=0;K<ie;){var S=k[Dr(e,v,O)];v+=S&15;var D=S>>4;if(D<16)J[K++]=D;else{var R=0,B=0;for(D==16?(B=3+Dr(e,v,3),v+=2,R=J[K-1]):D==17?(B=3+Dr(e,v,7),v+=3):D==18&&(B=11+Dr(e,v,127),v+=7);B--;)J[K++]=R}}var ae=J.subarray(0,q),ve=J.subarray(q);_=jh(ae),C=jh(ve),w=qa(ae,_,1),$=qa(ve,C,1)}else Zn(1);else{var D=Qge(v)+4,N=e[D-4]|e[D-3]<<8,I=D+N;if(I>o){h&&Zn(0);break}f&&p(y+N),n.set(e.subarray(D,I),y),t.b=y+=N,t.p=v=I*8,t.f=g;continue}if(v>E){h&&Zn(0);break}}f&&p(y+131072);for(var _e=(1<<_)-1,Be=(1<<C)-1,Ee=v;;Ee=v){var R=w[Wh(e,v)&_e],Ge=R>>4;if(v+=R&15,v>E){h&&Zn(0);break}if(R||Zn(2),Ge<256)n[y++]=Ge;else if(Ge==256){Ee=v,w=null;break}else{var Ue=Ge-254;if(Ge>264){var K=Ge-257,He=P_[K];Ue=Dr(e,v,(1<<He)-1)+z_[K],v+=He}var Re=$[Wh(e,v)&Be],z=Re>>4;Re||Zn(3),v+=Re&15;var ve=Xge[z];if(z>3){var He=I_[z];ve+=Wh(e,v)&(1<<He)-1,v+=He}if(v>E){h&&Zn(0);break}f&&p(y+131072);var Z=y+Ue;if(y<ve){var re=l-ve,le=Math.min(ve,Z);for(re+y<0&&Zn(3);y<le;++y)n[y]=i[re+y]}for(;y<Z;++y)n[y]=n[y-ve]}}t.l=w,t.p=Ee,t.b=y,t.f=g,w&&(g=1,t.m=_,t.d=$,t.n=C)}while(!g);return y!=n.length&&u?B_(n,0,y):n.subarray(0,y)},tme=new ur(0),nme=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Zn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},rme=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},ime=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Zn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Zn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function ome(e,t){return nm(e,{i:2},t,t)}function sme(e,t){var n=nme(e);return n+8>e.length&&Zn(6,"invalid gzip data"),nm(e.subarray(n,-8),{i:2},new ur(rme(e)),t)}function lme(e,t){return nm(e.subarray(ime(e),-4),{i:2},t,t)}function ame(e,t){return e[0]==31&&e[1]==139&&e[2]==8?sme(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?ome(e,t):lme(e,t)}var Dp=typeof TextDecoder<"u"&&new TextDecoder,cme=0;try{Dp.decode(tme,{stream:!0}),cme=1}catch{}var ume=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return{s:t,r:B_(e,n-1)};o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Qb(e,t){var n;if(Dp)return Dp.decode(e);var i=ume(e),o=i.s,n=i.r;return n.length&&Zn(8),o}const ew=()=>{},vn=()=>Promise.resolve();function fme(){const e=dr({state:new p_,waitForConnection:u,reconnect:o,ws:new EventTarget});e.state.filesMap=dr(e.state.filesMap),e.state.idMap=dr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>t.moduleGraph[f]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:vn,getTransformResult:vn,onDone:ew,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async f=>t.sources[f],removeSnapshotFile:vn,onUnhandledError:ew,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=n;const i=Promise.resolve();function o(){l()}async function l(){const f=await fetch(window.METADATA_PATH),h=new Uint8Array(await f.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Qb(ame(h));t=Ap(g)}else t=Ap(Qb(h));const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ft=(function(){return pr?fme():cP(Uge,{reactive:(t,n)=>n==="state"?dr(t):Vt(t),handlers:{onTestAnnotate(t,n){$e.recordTestArtifact(t,{type:"internal:annotation",annotation:n,location:n.location})},onTestArtifactRecord(t,n){$e.recordTestArtifact(t,n)},onTaskUpdate(t,n){$e.resumeRun(t,n),dd.value="running"},onSpecsCollected(t,n){$e.startTime=n||performance.now()},onFinished(t,n,i,o){$e.endRun(o),So.value=(n||[]).map(A_)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),pt=Vt({}),ll=Ke("CONNECTING"),rm=Vt([]),Xt=Se(()=>{const e=Io.value;return e?Cr(e):void 0}),j_=Se(()=>Wg(Xt.value).map(e=>e?.logs||[]).flat()||[]);function Cr(e){const t=ft.state.idMap.get(e);return t||void 0}const dme=Se(()=>ll.value==="OPEN"),qh=Se(()=>ll.value==="CONNECTING");function hme(){return im(ft.state.getFiles())}function W_(e){delete e.result;const t=$e.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ac(e)))for(const n of e.tasks)W_(n)}function pme(e){const t=$e.nodes;e.forEach(n=>{delete n.result,Wg(n).forEach(o=>{if(delete o.result,t.has(o.id)){const l=t.get(o.id);l&&(l.state=void 0,l.mode="run",l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.mode="run",i.duration=void 0,Wn(i)&&(i.collectDuration=void 0))})}function im(e){return pme(e),$e.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function gme(e){return W_(e),$e.startRun(),ft.rpc.rerunTask(e.id)}const gr=window.__vitest_browser_runner__;window.__vitest_ui_api__=jge;yt(()=>ft.ws,e=>{ll.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{ll.value="OPEN",ft.state.filesMap.clear();let[t,n,i,o]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=e_(h,f,u);return p.mode="skip",p})),rm.value=o.map(l=>l.name),$e.loadFiles(t,o),ft.state.collectFiles(t),$e.startRun(),So.value=(i||[]).map(A_),pt.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{ll.value==="CONNECTING"&&(ll.value="CLOSED")},1e3)})},{immediate:!0});const mme=["aria-label","opacity","disabled","hover"],Tt=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(te(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Bt(t.$slots,"default",{},()=>[Y("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,mme))}}),vme={h:"full",flex:"~ col"},yme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},bme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},wme={class:"pointer-events-none","text-sm":""},xme={key:0},Sme={id:"tester-container",relative:""},_me=["data-scale"],tw=20,kme=100,Tme=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return lr.value[0]===g[0]&&lr.value[1]===g[1]}const{width:i,height:o}=rS();async function l(p){lr.value=t[p],gr?.provider==="webdriverio"&&R_()}const u=Se(()=>{if(gr?.provider==="webdriverio"){const[w,$]=lr.value;return{width:w,height:$}}const v=i.value*(fn.details.size/100)*(fn.details.browser/100)-tw,y=o.value-kme;return{width:v,height:y}}),f=Se(()=>{if(gr?.provider==="webdriverio")return 1;const[p,g]=lr.value,{width:v,height:y}=u.value,w=v>p?1:v/p,$=y>g?1:y/g;return Math.min(1,w,$)}),h=Se(()=>{const p=u.value.width,g=lr.value[0];return`${Math.trunc((p+tw-g)/2)}px`});return(p,g)=>{const v=ir("tooltip");return te(),ge("div",vme,[Y("div",yme,[st(Ne(Tt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=y=>W(Hge)())},null,512),[[Co,W(fn).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ne(Tt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=y=>Bi.value=!0)},null,512),[[Co,W(Tn)==="right"&&!W(Bi)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),Y("div",bme,[st(Ne(Tt,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[2]||(g[2]=y=>l("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[3]||(g[3]=y=>l("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[4]||(g[4]=y=>l("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),Y("span",wme,[Qe(Me(W(lr)[0])+"x"+Me(W(lr)[1])+"px ",1),f.value<1?(te(),ge("span",xme,"("+Me((f.value*100).toFixed(0))+"%)",1)):Fe("",!0)])]),Y("div",Sme,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":f.value,style:Pt({"--viewport-width":`${W(lr)[0]}px`,"--viewport-height":`${W(lr)[1]}px`,"--tester-transform":`scale(${f.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,_me)])])}}}),Cme=Xi(Tme,[["__scopeId","data-v-f70ca3ae"]]),hd=tt({__name:"DetailsHeaderButtons",setup(e){function t(n){return Tn.value==="right"?n==="hide"?"rotate-180":"":n==="hide"?"-rotate-90":"rotate-90"}return(n,i)=>{const o=ir("tooltip");return te(),ge(nt,null,[st(Ne(Tt,{title:`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:ot({"rotate-90":W(Tn)==="right"}),onClick:W(Bge)},null,8,["title","class","onClick"]),[[o,`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Bi)?st((te(),We(Tt,{key:0,title:W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("hide")),onClick:W(Rge)},null,8,["title","class","onClick"])),[[o,W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):Fe("",!0),st(Ne(Tt,{title:W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("show")),onClick:W(Pge)},null,8,["title","class","onClick"]),[[Co,!W(Bi)],[o,W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Eme={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ame=tt({__name:"ClosedDetailsHeader",setup(e){return(t,n)=>(te(),ge("div",Eme,[n[0]||(n[0]=Y("div",{"flex-1":""},null,-1)),Ne(hd)]))}}),$me={"text-2xl":""},Nme={"text-lg":"",op50:""},Mme=tt({__name:"ConnectionOverlay",setup(e){return(t,n)=>W(dme)?Fe("",!0):(te(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>W(ft).reconnect&&W(ft).reconnect(...i))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(W(qh)?"animate-pulse":"")},[Y("div",{text:"5xl",class:ot(W(qh)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",$me,Me(W(qh)?"Connecting...":"Disconnected"),1),Y("div",Nme," Check your terminal or start a new server with `"+Me(W(gr)?`vitest --browser=${W(gr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lme={h:"full",flex:"~ col"},Ome={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nw=tt({__name:"Coverage",setup(e){return(t,n)=>(te(),ge("div",Lme,[Y("div",Ome,[n[0]||(n[0]=Y("div",{class:"i-carbon:folder-details-reference"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),n[2]||(n[2]=Y("div",{"flex-auto":"","py-1":"","bg-white":""},[Y("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),Rme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Pme={"font-bold":""},Ime={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Dme=["font-bold"],Fme={text:"red500/70"},zme={key:1,text:"sm","mb-2":""},Hme={"font-bold":""},Bme={key:2,text:"sm","mb-2":""},jme={"font-bold":""},Wme=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>(te(),ge(nt,null,[Y("h4",Rme,[Y("span",Pme,[Qe(Me(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ge(nt,{key:0},[Qe(":")],64)):Fe("",!0)]),Qe(" "+Me(e.error.message),1)]),e.error.stacks?.length?(te(),ge("p",Ime,[(te(!0),ge(nt,null,xn(e.error.stacks,(i,o)=>(te(),ge("span",{key:o,"whitespace-pre":"","font-bold":o===0?"":null},[Qe("❯ "+Me(i.method)+" "+Me(i.file)+":",1),Y("span",Fme,Me(i.line)+":"+Me(i.column),1),n[0]||(n[0]=Y("br",null,null,-1))],8,Dme))),128))])):Fe("",!0),e.error.VITEST_TEST_PATH?(te(),ge("p",zme,[n[1]||(n[1]=Qe(" This error originated in ",-1)),Y("span",Hme,Me(e.error.VITEST_TEST_PATH),1),n[2]||(n[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Fe("",!0),e.error.VITEST_TEST_NAME?(te(),ge("div",Bme,[n[3]||(n[3]=Qe(" The latest test that might've caused the error is ",-1)),Y("span",jme,Me(e.error.VITEST_TEST_NAME),1),n[4]||(n[4]=Qe(". It might mean one of the following:",-1)),n[5]||(n[5]=Y("br",null,null,-1)),n[6]||(n[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Fe("",!0)],64))}}),qme={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Ume={class:"number","data-testid":"num-files"},Vme={class:"number"},Gme={class:"number","text-purple-700":"","dark:text-purple-400":""},Kme={class:"number","text-red-700":"","dark:text-red-500":""},Yme={class:"number","text-red-700":"","dark:text-red-500":""},Xme={class:"number","text-red-700":"","dark:text-red-500":""},Jme={class:"number","data-testid":"run-time"},Zme={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Qme={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},eve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},tve=tt({__name:"TestFilesEntry",setup(e){return(t,n)=>(te(),ge(nt,null,[Y("div",qme,[n[10]||(n[10]=Y("div",{"i-carbon-document":""},null,-1)),n[11]||(n[11]=Y("div",null,"Files",-1)),Y("div",Ume,Me(W($e).summary.files),1),W($e).summary.filesSuccess?(te(),ge(nt,{key:0},[n[0]||(n[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=Y("div",null,"Pass",-1)),Y("div",Vme,Me(W($e).summary.filesSuccess),1)],64)):Fe("",!0),W($e).summary.filesSkipped?(te(),ge(nt,{key:1},[n[2]||(n[2]=Y("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),n[3]||(n[3]=Y("div",null," Skip ",-1)),Y("div",Gme,Me(W($e).summary.filesSkipped),1)],64)):Fe("",!0),W($e).summary.filesFailed?(te(),ge(nt,{key:2},[n[4]||(n[4]=Y("div",{"i-carbon-close":""},null,-1)),n[5]||(n[5]=Y("div",null," Fail ",-1)),Y("div",Kme,Me(W($e).summary.filesFailed),1)],64)):Fe("",!0),W($e).summary.filesSnapshotFailed?(te(),ge(nt,{key:3},[n[6]||(n[6]=Y("div",{"i-carbon-compare":""},null,-1)),n[7]||(n[7]=Y("div",null," Snapshot Fail ",-1)),Y("div",Yme,Me(W($e).summary.filesSnapshotFailed),1)],64)):Fe("",!0),W(So).length?(te(),ge(nt,{key:4},[n[8]||(n[8]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[9]||(n[9]=Y("div",null," Errors ",-1)),Y("div",Xme,Me(W(So).length),1)],64)):Fe("",!0),n[12]||(n[12]=Y("div",{"i-carbon-timer":""},null,-1)),n[13]||(n[13]=Y("div",null,"Time",-1)),Y("div",Jme,Me(W($e).summary.time),1)]),W(So).length?(te(),ge("div",Zme,[n[17]||(n[17]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",Qme,[Qe(" Vitest caught "+Me(W(So).length)+" error"+Me(W(So).length>1?"s":"")+" during the test run.",1),n[14]||(n[14]=Y("br",null,null,-1)),n[15]||(n[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Y("details",eve,[n[16]||(n[16]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ge(nt,null,xn(W(So),(i,o)=>(te(),We(Wme,{key:o,error:i},null,8,["error"]))),128))])])):Fe("",!0)],64))}}),nve=Xi(tve,[["__scopeId","data-v-cfae3633"]]),rve={"p-2":"","text-center":"",flex:""},ive={"text-4xl":"","min-w-2em":""},ove={"text-md":""},is=tt({__name:"DashboardEntry",setup(e){return(t,n)=>(te(),ge("div",rve,[Y("div",null,[Y("div",ive,[Bt(t.$slots,"body")]),Y("div",ove,[Bt(t.$slots,"header")])])]))}}),sve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},lve=tt({__name:"TestsEntry",setup(e){function t(n){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,Ze.slow=!1,n!=="total"&&(Ze[n]=!0)}return(n,i)=>(te(),ge("div",sve,[Ne(is,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:i[0]||(i[0]=o=>t("success"))},{header:je(()=>[...i[5]||(i[5]=[Qe(" Pass ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSuccess),1)]),_:1}),Ne(is,{class:ot({"text-red-700 dark:text-red-500":W($e).summary.testsFailed,op50:!W($e).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:i[1]||(i[1]=o=>t("failed"))},{header:je(()=>[...i[6]||(i[6]=[Qe(" Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsFailed),1)]),_:1},8,["class"]),W($e).summary.testsExpectedFail?(te(),We(is,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:je(()=>[...i[7]||(i[7]=[Qe(" Expected Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsExpectedFail),1)]),_:1})):Fe("",!0),W($e).summary.testsSkipped?(te(),We(is,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:i[2]||(i[2]=o=>t("skipped"))},{header:je(()=>[...i[8]||(i[8]=[Qe(" Skip ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSkipped),1)]),_:1})):Fe("",!0),W($e).summary.testsTodo?(te(),We(is,{key:2,op50:"","data-testid":"todo-entry"},{header:je(()=>[...i[9]||(i[9]=[Qe(" Todo ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsTodo),1)]),_:1})):Fe("",!0),Ne(is,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:i[3]||(i[3]=o=>t("total"))},{header:je(()=>[...i[10]||(i[10]=[Qe(" Total ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.totalTests),1)]),_:1}),W($e).summary.testsSlow?(te(),We(is,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:i[4]||(i[4]=o=>t("slow"))},{header:je(()=>[...i[11]||(i[11]=[Qe(" Slow ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSlow),1)]),_:1})):Fe("",!0)]))}}),ave={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},cve={key:0,class:"text-gray-5"},uve={"aria-labelledby":"tests",m:"y-4 x-2"},fve=tt({__name:"TestsFilesContainer",setup(e){return(t,n)=>(te(),ge("div",ave,[W($e).summary.files===0&&W(ol)?(te(),ge("div",cve," No tests found ")):Fe("",!0),Y("section",uve,[Ne(lve)]),Ne(nve)]))}}),dve={h:"full",flex:"~ col"},hve={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},pve={class:"scrolls","flex-auto":"","py-1":""},rw=tt({__name:"Dashboard",setup(e){return(t,n)=>(te(),ge("div",dve,[Y("div",hve,[n[0]||(n[0]=Y("div",{class:"i-carbon-dashboard"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),Y("div",pve,[Ne(fve)])]))}});var Uh,iw;function gve(){if(iw)return Uh;iw=1;var e=function(L){return t(L)&&!n(L)};function t(E){return!!E&&typeof E=="object"}function n(E){var L=Object.prototype.toString.call(E);return L==="[object RegExp]"||L==="[object Date]"||l(E)}var i=typeof Symbol=="function"&&Symbol.for,o=i?Symbol.for("react.element"):60103;function l(E){return E.$$typeof===o}function u(E){return Array.isArray(E)?[]:{}}function f(E,L){return L.clone!==!1&&L.isMergeableObject(E)?_(u(E),E,L):E}function h(E,L,D){return E.concat(L).map(function(N){return f(N,D)})}function p(E,L){if(!L.customMerge)return _;var D=L.customMerge(E);return typeof D=="function"?D:_}function g(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(L){return Object.propertyIsEnumerable.call(E,L)}):[]}function v(E){return Object.keys(E).concat(g(E))}function y(E,L){try{return L in E}catch{return!1}}function w(E,L){return y(E,L)&&!(Object.hasOwnProperty.call(E,L)&&Object.propertyIsEnumerable.call(E,L))}function $(E,L,D){var N={};return D.isMergeableObject(E)&&v(E).forEach(function(I){N[I]=f(E[I],D)}),v(L).forEach(function(I){w(E,I)||(y(E,I)&&D.isMergeableObject(L[I])?N[I]=p(I,D)(E[I],L[I],D):N[I]=f(L[I],D))}),N}function _(E,L,D){D=D||{},D.arrayMerge=D.arrayMerge||h,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=f;var N=Array.isArray(L),I=Array.isArray(E),q=N===I;return q?N?D.arrayMerge(E,L,D):$(E,L,D):f(L,D)}_.all=function(L,D){if(!Array.isArray(L))throw new Error("first argument should be an array");return L.reduce(function(N,I){return _(N,I,D)},{})};var C=_;return Uh=C,Uh}var mve=gve();const vve=Jg(mve);function yve(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Fp="http://www.w3.org/1999/xhtml";const ow={svg:"http://www.w3.org/2000/svg",xhtml:Fp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ow.hasOwnProperty(t)?{space:ow[t],local:e}:e}function bve(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fp&&t.documentElement.namespaceURI===Fp?t.createElement(e):t.createElementNS(n,e)}}function wve(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function q_(e){var t=pd(e);return(t.local?wve:bve)(t)}function xve(){}function om(e){return e==null?xve:function(){return this.querySelector(e)}}function Sve(e){typeof e!="function"&&(e=om(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new vr(i,this._parents)}function _ve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kve(){return[]}function U_(e){return e==null?kve:function(){return this.querySelectorAll(e)}}function Tve(e){return function(){return _ve(e.apply(this,arguments))}}function Cve(e){typeof e=="function"?e=Tve(e):e=U_(e);for(var t=this._groups,n=t.length,i=[],o=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),o.push(h));return new vr(i,o)}function V_(e){return function(){return this.matches(e)}}function G_(e){return function(t){return t.matches(e)}}var Eve=Array.prototype.find;function Ave(e){return function(){return Eve.call(this.children,e)}}function $ve(){return this.firstElementChild}function Nve(e){return this.select(e==null?$ve:Ave(typeof e=="function"?e:G_(e)))}var Mve=Array.prototype.filter;function Lve(){return Array.from(this.children)}function Ove(e){return function(){return Mve.call(this.children,e)}}function Rve(e){return this.selectAll(e==null?Lve:Ove(typeof e=="function"?e:G_(e)))}function Pve(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new vr(i,this._parents)}function K_(e){return new Array(e.length)}function Ive(){return new vr(this._enter||this._groups.map(K_),this._parents)}function $f(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$f.prototype={constructor:$f,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Dve(e){return function(){return e}}function Fve(e,t,n,i,o,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new $f(e,l[u]);for(;u<h;++u)(f=t[u])&&(o[u]=f)}function zve(e,t,n,i,o,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?o[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new $f(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(o[f]=h)}function Hve(e){return e.__data__}function Bve(e,t){if(!arguments.length)return Array.from(this,Hve);var n=t?zve:Fve,i=this._parents,o=this._groups;typeof e!="function"&&(e=Dve(e));for(var l=o.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=o[p],y=v.length,w=jve(e.call(g,g&&g.__data__,p,i)),$=w.length,_=f[p]=new Array($),C=u[p]=new Array($),E=h[p]=new Array(y);n(g,v,_,C,E,w,t);for(var L=0,D=0,N,I;L<$;++L)if(N=_[L]){for(L>=D&&(D=L+1);!(I=C[D])&&++D<$;);N._next=I||null}}return u=new vr(u,i),u._enter=f,u._exit=h,u}function jve(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Wve(){return new vr(this._exit||this._groups.map(K_),this._parents)}function qve(e,t,n){var i=this.enter(),o=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?l.remove():n(l),i&&o?i.merge(o).order():o}function Uve(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,l=i.length,u=Math.min(o,l),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,$=0;$<v;++$)(w=p[$]||g[$])&&(y[$]=w);for(;h<o;++h)f[h]=n[h];return new vr(f,this._parents)}function Vve(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,l=i[o],u;--o>=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Gve(e){e||(e=Kve);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,o=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=o[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new vr(o,this._parents).order()}function Kve(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Yve(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Xve(){return Array.from(this)}function Jve(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length;o<l;++o){var u=i[o];if(u)return u}return null}function Zve(){let e=0;for(const t of this)++e;return e}function Qve(){return!this.node()}function eye(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],l=0,u=o.length,f;l<u;++l)(f=o[l])&&e.call(f,f.__data__,l,o);return this}function tye(e){return function(){this.removeAttribute(e)}}function nye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rye(e,t){return function(){this.setAttribute(e,t)}}function iye(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function oye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function sye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function lye(e,t){var n=pd(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?nye:tye:typeof t=="function"?n.local?sye:oye:n.local?iye:rye)(n,t))}function Y_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function aye(e){return function(){this.style.removeProperty(e)}}function cye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function uye(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function fye(e,t,n){return arguments.length>1?this.each((t==null?aye:typeof t=="function"?uye:cye)(e,t,n??"")):Ll(this.node(),e)}function Ll(e,t){return e.style.getPropertyValue(t)||Y_(e).getComputedStyle(e,null).getPropertyValue(t)}function dye(e){return function(){delete this[e]}}function hye(e,t){return function(){this[e]=t}}function pye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function gye(e,t){return arguments.length>1?this.each((t==null?dye:typeof t=="function"?pye:hye)(e,t)):this.node()[e]}function X_(e){return e.trim().split(/^|\s+/)}function sm(e){return e.classList||new J_(e)}function J_(e){this._node=e,this._names=X_(e.getAttribute("class")||"")}J_.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Z_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Q_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function mye(e){return function(){Z_(this,e)}}function vye(e){return function(){Q_(this,e)}}function yye(e,t){return function(){(t.apply(this,arguments)?Z_:Q_)(this,e)}}function bye(e,t){var n=X_(e+"");if(arguments.length<2){for(var i=sm(this.node()),o=-1,l=n.length;++o<l;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?yye:t?mye:vye)(n,t))}function wye(){this.textContent=""}function xye(e){return function(){this.textContent=e}}function Sye(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _ye(e){return arguments.length?this.each(e==null?wye:(typeof e=="function"?Sye:xye)(e)):this.node().textContent}function kye(){this.innerHTML=""}function Tye(e){return function(){this.innerHTML=e}}function Cye(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Eye(e){return arguments.length?this.each(e==null?kye:(typeof e=="function"?Cye:Tye)(e)):this.node().innerHTML}function Aye(){this.nextSibling&&this.parentNode.appendChild(this)}function $ye(){return this.each(Aye)}function Nye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mye(){return this.each(Nye)}function Lye(e){var t=typeof e=="function"?e:q_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Oye(){return null}function Rye(e,t){var n=typeof e=="function"?e:q_(e),i=t==null?Oye:typeof t=="function"?t:om(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Pye(){var e=this.parentNode;e&&e.removeChild(this)}function Iye(){return this.each(Pye)}function Dye(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Fye(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zye(e){return this.select(e?Fye:Dye)}function Hye(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Bye(e){return function(t){e.call(this,t,this.__data__)}}function jye(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function Wye(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,l;n<o;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function qye(e,t,n){return function(){var i=this.__on,o,l=Bye(t);if(i){for(var u=0,f=i.length;u<f;++u)if((o=i[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=l,o.options=n),o.value=t;return}}this.addEventListener(e.type,l,n),o={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(o):this.__on=[o]}}function Uye(e,t,n){var i=jye(e+""),o,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(o=0,g=f[h];o<l;++o)if((u=i[o]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?qye:Wye,o=0;o<l;++o)this.each(f(i[o],t,n));return this}function ek(e,t,n){var i=Y_(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Vye(e,t){return function(){return ek(this,e,t)}}function Gye(e,t){return function(){return ek(this,e,t.apply(this,arguments))}}function Kye(e,t){return this.each((typeof t=="function"?Gye:Vye)(e,t))}function*Yye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length,u;o<l;++o)(u=i[o])&&(yield u)}var tk=[null];function vr(e,t){this._groups=e,this._parents=t}function Lc(){return new vr([[document.documentElement]],tk)}function Xye(){return this}vr.prototype=Lc.prototype={constructor:vr,select:Sve,selectAll:Cve,selectChild:Nve,selectChildren:Rve,filter:Pve,data:Bve,enter:Ive,exit:Wve,join:qve,merge:Uve,selection:Xye,order:Vve,sort:Gve,call:Yve,nodes:Xve,node:Jve,size:Zve,empty:Qve,each:eye,attr:lye,style:fye,property:gye,classed:bye,text:_ye,html:Eye,raise:$ye,lower:Mye,append:Lye,insert:Rye,remove:Iye,clone:zye,datum:Hye,on:Uye,dispatch:Kye,[Symbol.iterator]:Yye};function er(e){return typeof e=="string"?new vr([[document.querySelector(e)]],[document.documentElement]):new vr([[e]],tk)}function Jye(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Li(e,t){if(e=Jye(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ol=class Ni{x;y;static of([t,n]){return new Ni(t,n)}constructor(t,n){this.x=t,this.y=n}add(t){return new Ni(this.x+t.x,this.y+t.y)}subtract(t){return new Ni(this.x-t.x,this.y-t.y)}multiply(t){return new Ni(this.x*t,this.y*t)}divide(t){return new Ni(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Ni(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Ni(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Ni(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Zye={value:()=>{}};function Oc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Gu(n)}function Gu(e){this._=e}function Qye(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Gu.prototype=Oc.prototype={constructor:Gu,on:function(e,t){var n=this._,i=Qye(e+"",n),o,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((o=(e=i[l]).type)&&(o=e0e(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(o=(e=i[l]).type)n[o]=sw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=sw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Gu(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,l;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,o=l.length;i<o;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,l=i.length;o<l;++o)i[o].value.apply(t,n)}};function e0e(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function sw(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=Zye,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const t0e={passive:!1},hc={capture:!0,passive:!1};function Vh(e){e.stopImmediatePropagation()}function bl(e){e.preventDefault(),e.stopImmediatePropagation()}function nk(e){var t=e.document.documentElement,n=er(e).on("dragstart.drag",bl,hc);"onselectstart"in t?n.on("selectstart.drag",bl,hc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rk(e,t){var n=e.document.documentElement,i=er(e).on("dragstart.drag",null);t&&(i.on("click.drag",bl,hc),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Au=e=>()=>e;function zp(e,{sourceEvent:t,subject:n,target:i,identifier:o,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function n0e(e){return!e.ctrlKey&&!e.button}function r0e(){return this.parentNode}function i0e(e,t){return t??{x:e.x,y:e.y}}function o0e(){return navigator.maxTouchPoints||"ontouchstart"in this}function s0e(){var e=n0e,t=r0e,n=i0e,i=o0e,o={},l=Oc("start","drag","end"),u=0,f,h,p,g,v=0;function y(N){N.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,t0e).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(N,I){if(!(g||!e.call(this,N,I))){var q=D(this,t.call(this,N,I),N,I,"mouse");q&&(er(N.view).on("mousemove.drag",$,hc).on("mouseup.drag",_,hc),nk(N.view),Vh(N),p=!1,f=N.clientX,h=N.clientY,q("start",N))}}function $(N){if(bl(N),!p){var I=N.clientX-f,q=N.clientY-h;p=I*I+q*q>v}o.mouse("drag",N)}function _(N){er(N.view).on("mousemove.drag mouseup.drag",null),rk(N.view,p),bl(N),o.mouse("end",N)}function C(N,I){if(e.call(this,N,I)){var q=N.changedTouches,X=t.call(this,N,I),ie=q.length,J,U;for(J=0;J<ie;++J)(U=D(this,X,N,I,q[J].identifier,q[J]))&&(Vh(N),U("start",N,q[J]))}}function E(N){var I=N.changedTouches,q=I.length,X,ie;for(X=0;X<q;++X)(ie=o[I[X].identifier])&&(bl(N),ie("drag",N,I[X]))}function L(N){var I=N.changedTouches,q=I.length,X,ie;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),X=0;X<q;++X)(ie=o[I[X].identifier])&&(Vh(N),ie("end",N,I[X]))}function D(N,I,q,X,ie,J){var U=l.copy(),K=Li(J||q,I),P,O,k;if((k=n.call(N,new zp("beforestart",{sourceEvent:q,target:y,identifier:ie,active:u,x:K[0],y:K[1],dx:0,dy:0,dispatch:U}),X))!=null)return P=k.x-K[0]||0,O=k.y-K[1]||0,function S(R,B,ae){var ve=K,_e;switch(R){case"start":o[ie]=S,_e=u++;break;case"end":delete o[ie],--u;case"drag":K=Li(ae||B,I),_e=u;break}U.call(R,N,new zp(R,{sourceEvent:B,subject:k,target:y,identifier:ie,active:_e,x:K[0]+P,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:U}),X)}}return y.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Au(!!N),y):e},y.container=function(N){return arguments.length?(t=typeof N=="function"?N:Au(N),y):t},y.subject=function(N){return arguments.length?(n=typeof N=="function"?N:Au(N),y):n},y.touchable=function(N){return arguments.length?(i=typeof N=="function"?N:Au(!!N),y):i},y.on=function(){var N=l.on.apply(l,arguments);return N===l?y:N},y.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,y):Math.sqrt(v)},y}function lm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ik(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Rc(){}var pc=.7,Nf=1/pc,wl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l0e=/^#([0-9a-f]{3,8})$/,a0e=new RegExp(`^rgb\\(${wl},${wl},${wl}\\)$`),c0e=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),u0e=new RegExp(`^rgba\\(${wl},${wl},${wl},${gc}\\)$`),f0e=new RegExp(`^rgba\\(${di},${di},${di},${gc}\\)$`),d0e=new RegExp(`^hsl\\(${gc},${di},${di}\\)$`),h0e=new RegExp(`^hsla\\(${gc},${di},${di},${gc}\\)$`),lw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lm(Rc,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aw,formatHex:aw,formatHex8:p0e,formatHsl:g0e,formatRgb:cw,toString:cw});function aw(){return this.rgb().formatHex()}function p0e(){return this.rgb().formatHex8()}function g0e(){return ok(this).formatHsl()}function cw(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l0e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uw(t):n===3?new nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$u(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$u(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=a0e.exec(e))?new nr(t[1],t[2],t[3],1):(t=c0e.exec(e))?new nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=u0e.exec(e))?$u(t[1],t[2],t[3],t[4]):(t=f0e.exec(e))?$u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=d0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,1):(t=h0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,t[4]):lw.hasOwnProperty(e)?uw(lw[e]):e==="transparent"?new nr(NaN,NaN,NaN,0):null}function uw(e){return new nr(e>>16&255,e>>8&255,e&255,1)}function $u(e,t,n,i){return i<=0&&(e=t=n=NaN),new nr(e,t,n,i)}function m0e(e){return e instanceof Rc||(e=mc(e)),e?(e=e.rgb(),new nr(e.r,e.g,e.b,e.opacity)):new nr}function Hp(e,t,n,i){return arguments.length===1?m0e(e):new nr(e,t,n,i??1)}function nr(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}lm(nr,Hp,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nr(vs(this.r),vs(this.g),vs(this.b),Mf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fw,formatHex:fw,formatHex8:v0e,formatRgb:dw,toString:dw}));function fw(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}`}function v0e(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}${fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function dw(){const e=Mf(this.opacity);return`${e===1?"rgb(":"rgba("}${vs(this.r)}, ${vs(this.g)}, ${vs(this.b)}${e===1?")":`, ${e})`}`}function Mf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fs(e){return e=vs(e),(e<16?"0":"")+e.toString(16)}function hw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Br(e,t,n,i)}function ok(e){if(e instanceof Br)return new Br(e.h,e.s,e.l,e.opacity);if(e instanceof Rc||(e=mc(e)),!e)return new Br;if(e instanceof Br)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-o,h=(l+o)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+o:2-l-o,u*=60):f=h>0&&h<1?0:u,new Br(u,f,h,e.opacity)}function y0e(e,t,n,i){return arguments.length===1?ok(e):new Br(e,t,n,i??1)}function Br(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}lm(Br,y0e,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new Br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new Br(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new nr(Gh(e>=240?e-240:e+120,o,i),Gh(e,o,i),Gh(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Br(pw(this.h),Nu(this.s),Nu(this.l),Mf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mf(this.opacity);return`${e===1?"hsl(":"hsla("}${pw(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pw(e){return e=(e||0)%360,e<0?e+360:e}function Nu(e){return Math.max(0,Math.min(1,e||0))}function Gh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const sk=e=>()=>e;function b0e(e,t){return function(n){return e+n*t}}function w0e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function x0e(e){return(e=+e)==1?lk:function(t,n){return n-t?w0e(t,n,e):sk(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?b0e(e,n):sk(isNaN(e)?t:e)}const gw=(function e(t){var n=x0e(t);function i(o,l){var u=n((o=Hp(o)).r,(l=Hp(l)).r),f=n(o.g,l.g),h=n(o.b,l.b),p=lk(o.opacity,l.opacity);return function(g){return o.r=u(g),o.g=f(g),o.b=h(g),o.opacity=p(g),o+""}}return i.gamma=e,i})(1);function _o(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Bp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kh=new RegExp(Bp.source,"g");function S0e(e){return function(){return e}}function _0e(e){return function(t){return e(t)+""}}function k0e(e,t){var n=Bp.lastIndex=Kh.lastIndex=0,i,o,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Bp.exec(e))&&(o=Kh.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,h.push({i:u,x:_o(i,o)})),n=Kh.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?_0e(h[0].x):S0e(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var mw=180/Math.PI,jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ak(e,t,n,i,o,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:o,translateY:l,rotate:Math.atan2(t,e)*mw,skewX:Math.atan(h)*mw,scaleX:u,scaleY:f}}var Mu;function T0e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jp:ak(t.a,t.b,t.c,t.d,t.e,t.f)}function C0e(e){return e==null||(Mu||(Mu=document.createElementNS("http://www.w3.org/2000/svg","g")),Mu.setAttribute("transform",e),!(e=Mu.transform.baseVal.consolidate()))?jp:(e=e.matrix,ak(e.a,e.b,e.c,e.d,e.e,e.f))}function ck(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push("translate(",null,t,null,n);$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(o(v)+"rotate(",null,i)-2,x:_o(p,g)})):g&&v.push(o(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(o(v)+"skewX(",null,i)-2,x:_o(p,g)}):g&&v.push(o(v)+"skewX("+g+i)}function h(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push(o(w)+"scale(",null,",",null,")");$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v!==1||y!==1)&&w.push(o(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var $=-1,_=y.length,C;++$<_;)v[(C=y[$]).i]=C.x(w);return v.join("")}}}var E0e=ck(T0e,"px, ","px)","deg)"),A0e=ck(C0e,", ",")",")"),$0e=1e-12;function vw(e){return((e=Math.exp(e))+1/e)/2}function N0e(e){return((e=Math.exp(e))-1/e)/2}function M0e(e){return((e=Math.exp(2*e))-1)/(e+1)}const L0e=(function e(t,n,i){function o(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,$=v-h,_=w*w+$*$,C,E;if(_<$0e)E=Math.log(y/p)/t,C=function(X){return[f+X*w,h+X*$,p*Math.exp(t*X*E)]};else{var L=Math.sqrt(_),D=(y*y-p*p+i*_)/(2*p*n*L),N=(y*y-p*p-i*_)/(2*y*n*L),I=Math.log(Math.sqrt(D*D+1)-D),q=Math.log(Math.sqrt(N*N+1)-N);E=(q-I)/t,C=function(X){var ie=X*E,J=vw(I),U=p/(n*L)*(J*M0e(t*ie+I)-N0e(I));return[f+U*w,h+U*$,p*J/vw(t*ie+I)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return o.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},o})(Math.SQRT2,2,4);var Rl=0,Na=0,ka=0,uk=1e3,Lf,Ma,Of=0,Ss=0,gd=0,vc=typeof performance=="object"&&performance.now?performance:Date,fk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function am(){return Ss||(fk(O0e),Ss=vc.now()+gd)}function O0e(){Ss=0}function Rf(){this._call=this._time=this._next=null}Rf.prototype=cm.prototype={constructor:Rf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?am():+n)+(t==null?0:+t),!this._next&&Ma!==this&&(Ma?Ma._next=this:Lf=this,Ma=this),this._call=e,this._time=n,Wp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wp())}};function cm(e,t,n){var i=new Rf;return i.restart(e,t,n),i}function R0e(){am(),++Rl;for(var e=Lf,t;e;)(t=Ss-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rl}function yw(){Ss=(Of=vc.now())+gd,Rl=Na=0;try{R0e()}finally{Rl=0,I0e(),Ss=0}}function P0e(){var e=vc.now(),t=e-Of;t>uk&&(gd-=t,Of=e)}function I0e(){for(var e,t=Lf,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lf=n);Ma=e,Wp(i)}function Wp(e){if(!Rl){Na&&(Na=clearTimeout(Na));var t=e-Ss;t>24?(e<1/0&&(Na=setTimeout(yw,e-vc.now()-gd)),ka&&(ka=clearInterval(ka))):(ka||(Of=vc.now(),ka=setInterval(P0e,uk)),Rl=1,fk(yw))}}function bw(e,t,n){var i=new Rf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var D0e=Oc("start","end","cancel","interrupt"),F0e=[],dk=0,ww=1,qp=2,Ku=3,xw=4,Up=5,Yu=6;function md(e,t,n,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;z0e(e,n,{name:t,index:i,group:o,on:D0e,tween:F0e,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:dk})}function um(e,t){var n=Xr(e,t);if(n.state>dk)throw new Error("too late; already scheduled");return n}function mi(e,t){var n=Xr(e,t);if(n.state>Ku)throw new Error("too late; already running");return n}function Xr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function z0e(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=cm(l,0,n.time);function l(p){n.state=ww,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ww)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===Ku)return bw(u);w.state===xw?(w.state=Yu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=Yu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(bw(function(){n.state===Ku&&(n.state=xw,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=qp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===qp){for(n.state=Ku,o=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++v]=w);o.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Up,1),v=-1,y=o.length;++v<y;)o[v].call(e,g);n.state===Up&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Yu,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function Xu(e,t){var n=e.__transition,i,o,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}o=i.state>qp&&i.state<Up,i.state=Yu,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function H0e(e){return this.each(function(){Xu(this,e)})}function B0e(e,t){var n,i;return function(){var o=mi(this,e),l=o.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}o.tween=i}}function j0e(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var l=mi(this,e),u=l.tween;if(u!==i){o=(i=u).slice();for(var f={name:t,value:n},h=0,p=o.length;h<p;++h)if(o[h].name===t){o[h]=f;break}h===p&&o.push(f)}l.tween=o}}function W0e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Xr(this.node(),n).tween,o=0,l=i.length,u;o<l;++o)if((u=i[o]).name===e)return u.value;return null}return this.each((t==null?B0e:j0e)(n,e,t))}function fm(e,t,n){var i=e._id;return e.each(function(){var o=mi(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Xr(o,i).value[t]}}function hk(e,t){var n;return(typeof t=="number"?_o:t instanceof mc?gw:(n=mc(t))?(t=n,gw):k0e)(e,t)}function q0e(e){return function(){this.removeAttribute(e)}}function U0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttribute(e);return u===o?null:u===i?l:l=t(i=u,n)}}function G0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===i?l:l=t(i=u,n)}}function K0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function Y0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function X0e(e,t){var n=pd(e),i=n==="transform"?A0e:hk;return this.attrTween(e,typeof t=="function"?(n.local?Y0e:K0e)(n,i,fm(this,"attr."+e,t)):t==null?(n.local?U0e:q0e)(n):(n.local?G0e:V0e)(n,i,t))}function J0e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Z0e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Q0e(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Z0e(e,l)),n}return o._value=t,o}function ebe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&J0e(e,l)),n}return o._value=t,o}function tbe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pd(e);return this.tween(n,(i.local?Q0e:ebe)(i,t))}function nbe(e,t){return function(){um(this,e).delay=+t.apply(this,arguments)}}function rbe(e,t){return t=+t,function(){um(this,e).delay=t}}function ibe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?nbe:rbe)(t,e)):Xr(this.node(),t).delay}function obe(e,t){return function(){mi(this,e).duration=+t.apply(this,arguments)}}function sbe(e,t){return t=+t,function(){mi(this,e).duration=t}}function lbe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?obe:sbe)(t,e)):Xr(this.node(),t).duration}function abe(e,t){if(typeof t!="function")throw new Error;return function(){mi(this,e).ease=t}}function cbe(e){var t=this._id;return arguments.length?this.each(abe(t,e)):Xr(this.node(),t).ease}function ube(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mi(this,e).ease=n}}function fbe(e){if(typeof e!="function")throw new Error;return this.each(ube(this._id,e))}function dbe(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Vi(i,this._parents,this._name,this._id)}function hbe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,l=Math.min(i,o),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Vi(u,this._parents,this._name,this._id)}function pbe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function gbe(e,t,n){var i,o,l=pbe(t)?um:mi;return function(){var u=l(this,e),f=u.on;f!==i&&(o=(i=f).copy()).on(t,n),u.on=o}}function mbe(e,t){var n=this._id;return arguments.length<2?Xr(this.node(),n).on.on(e):this.each(gbe(n,e,t))}function vbe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ybe(){return this.on("end.remove",vbe(this._id))}function bbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=om(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u<o;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,md(p[y],t,n,y,p,Xr(g,n)));return new Vi(l,this._parents,t,n)}function wbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=U_(e));for(var i=this._groups,o=i.length,l=[],u=[],f=0;f<o;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,$=Xr(g,n),_=0,C=y.length;_<C;++_)(w=y[_])&&md(w,t,n,_,y,$);l.push(y),u.push(g)}return new Vi(l,u,t,n)}var xbe=Lc.prototype.constructor;function Sbe(){return new xbe(this._groups,this._parents)}function _be(e,t){var n,i,o;return function(){var l=Ll(this,e),u=(this.style.removeProperty(e),Ll(this,e));return l===u?null:l===n&&u===i?o:o=t(n=l,i=u)}}function pk(e){return function(){this.style.removeProperty(e)}}function kbe(e,t,n){var i,o=n+"",l;return function(){var u=Ll(this,e);return u===o?null:u===i?l:l=t(i=u,n)}}function Tbe(e,t,n){var i,o,l;return function(){var u=Ll(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),Ll(this,e))),u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f))}}function Cbe(e,t){var n,i,o,l="style."+t,u="end."+l,f;return function(){var h=mi(this,e),p=h.on,g=h.value[l]==null?f||(f=pk(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(u,o=g),h.on=i}}function Ebe(e,t,n){var i=(e+="")=="transform"?E0e:hk;return t==null?this.styleTween(e,_be(e,i)).on("end.style."+e,pk(e)):typeof t=="function"?this.styleTween(e,Tbe(e,i,fm(this,"style."+e,t))).each(Cbe(this._id,e)):this.styleTween(e,kbe(e,i,t),n).on("end.style."+e,null)}function Abe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function $be(e,t,n){var i,o;function l(){var u=t.apply(this,arguments);return u!==o&&(i=(o=u)&&Abe(e,u,n)),i}return l._value=t,l}function Nbe(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,$be(e,t,n??""))}function Mbe(e){return function(){this.textContent=e}}function Lbe(e){return function(){var t=e(this);this.textContent=t??""}}function Obe(e){return this.tween("text",typeof e=="function"?Lbe(fm(this,"text",e)):Mbe(e==null?"":e+""))}function Rbe(e){return function(t){this.textContent=e.call(this,t)}}function Pbe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Rbe(o)),t}return i._value=e,i}function Ibe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Pbe(e))}function Dbe(){for(var e=this._name,t=this._id,n=gk(),i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Xr(h,t);md(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Vi(i,this._parents,e,n)}function Fbe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--o===0&&l()}};n.each(function(){var p=mi(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),o===0&&l()})}var zbe=0;function Vi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function gk(){return++zbe}var Ai=Lc.prototype;Vi.prototype={constructor:Vi,select:bbe,selectAll:wbe,selectChild:Ai.selectChild,selectChildren:Ai.selectChildren,filter:dbe,merge:hbe,selection:Sbe,transition:Dbe,call:Ai.call,nodes:Ai.nodes,node:Ai.node,size:Ai.size,empty:Ai.empty,each:Ai.each,on:mbe,attr:X0e,attrTween:tbe,style:Ebe,styleTween:Nbe,text:Obe,textTween:Ibe,remove:ybe,tween:W0e,delay:ibe,duration:lbe,ease:cbe,easeVarying:fbe,end:Fbe,[Symbol.iterator]:Ai[Symbol.iterator]};function Hbe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Bbe={time:null,delay:0,duration:250,ease:Hbe};function jbe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Wbe(e){var t,n;e instanceof Vi?(t=e._id,e=e._name):(t=gk(),(n=Bbe).time=am(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&md(h,e,t,p,u,n||jbe(h,t));return new Vi(i,this._parents,e,t)}Lc.prototype.interrupt=H0e;Lc.prototype.transition=Wbe;const Lu=e=>()=>e;function qbe(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zi(e,t,n){this.k=e,this.x=t,this.y=n}zi.prototype={constructor:zi,scale:function(e){return e===1?this:new zi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dm=new zi(1,0,0);zi.prototype;function Yh(e){e.stopImmediatePropagation()}function Ta(e){e.preventDefault(),e.stopImmediatePropagation()}function Ube(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Vbe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sw(){return this.__zoom||dm}function Gbe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Kbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ybe(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function Xbe(){var e=Ube,t=Vbe,n=Ybe,i=Gbe,o=Kbe,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=L0e,p=Oc("start","zoom","end"),g,v,y,w=500,$=150,_=0,C=10;function E(k){k.property("__zoom",Sw).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",U).filter(o).on("touchstart.zoom",K).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(k,S,R,B){var ae=k.selection?k.selection():k;ae.property("__zoom",Sw),k!==ae?I(k,S,R,B):ae.interrupt().each(function(){q(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(k,S,R,B){E.scaleTo(k,function(){var ae=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return ae*ve},R,B)},E.scaleTo=function(k,S,R,B){E.transform(k,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?N(ae):typeof R=="function"?R.apply(this,arguments):R,Be=ve.invert(_e),Ee=typeof S=="function"?S.apply(this,arguments):S;return n(D(L(ve,Ee),_e,Be),ae,u)},R,B)},E.translateBy=function(k,S,R,B){E.transform(k,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(k,S,R,B,ae){E.transform(k,function(){var ve=t.apply(this,arguments),_e=this.__zoom,Be=B==null?N(ve):typeof B=="function"?B.apply(this,arguments):B;return n(dm.translate(Be[0],Be[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ve,u)},B,ae)};function L(k,S){return S=Math.max(l[0],Math.min(l[1],S)),S===k.k?k:new zi(S,k.x,k.y)}function D(k,S,R){var B=S[0]-R[0]*k.k,ae=S[1]-R[1]*k.k;return B===k.x&&ae===k.y?k:new zi(k.k,B,ae)}function N(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function I(k,S,R,B){k.on("start.zoom",function(){q(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=q(ae,ve).event(B),Be=t.apply(ae,ve),Ee=R==null?N(Be):typeof R=="function"?R.apply(ae,ve):R,Ge=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),Ue=ae.__zoom,He=typeof S=="function"?S.apply(ae,ve):S,Re=h(Ue.invert(Ee).concat(Ge/Ue.k),He.invert(Ee).concat(Ge/He.k));return function(z){if(z===1)z=He;else{var Z=Re(z),re=Ge/Z[2];z=new zi(re,Ee[0]-Z[0]*re,Ee[1]-Z[1]*re)}_e.zoom(null,z)}})}function q(k,S,R){return!R&&k.__zooming||new X(k,S)}function X(k,S){this.that=k,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,S),this.taps=0}X.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,S){return this.mouse&&k!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var S=er(this.that).datum();p.call(k,this.that,new qbe(k,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function ie(k,...S){if(!e.apply(this,arguments))return;var R=q(this,S).event(k),B=this.__zoom,ae=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ve=Li(k);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(B.k===ae)return;R.mouse=[ve,B.invert(ve)],Xu(this),R.start()}Ta(k),R.wheel=setTimeout(_e,$),R.zoom("mouse",n(D(L(B,ae),R.mouse[0],R.mouse[1]),R.extent,u));function _e(){R.wheel=null,R.end()}}function J(k,...S){if(y||!e.apply(this,arguments))return;var R=k.currentTarget,B=q(this,S,!0).event(k),ae=er(k.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ge,!0),ve=Li(k,R),_e=k.clientX,Be=k.clientY;nk(k.view),Yh(k),B.mouse=[ve,this.__zoom.invert(ve)],Xu(this),B.start();function Ee(Ue){if(Ta(Ue),!B.moved){var He=Ue.clientX-_e,Re=Ue.clientY-Be;B.moved=He*He+Re*Re>_}B.event(Ue).zoom("mouse",n(D(B.that.__zoom,B.mouse[0]=Li(Ue,R),B.mouse[1]),B.extent,u))}function Ge(Ue){ae.on("mousemove.zoom mouseup.zoom",null),rk(Ue.view,B.moved),Ta(Ue),B.event(Ue).end()}}function U(k,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=Li(k.changedTouches?k.changedTouches[0]:k,this),ae=R.invert(B),ve=R.k*(k.shiftKey?.5:2),_e=n(D(L(R,ve),B,ae),t.apply(this,S),u);Ta(k),f>0?er(this).transition().duration(f).call(I,_e,B,k):er(this).call(E.transform,_e,B,k)}}function K(k,...S){if(e.apply(this,arguments)){var R=k.touches,B=R.length,ae=q(this,S,k.changedTouches.length===B).event(k),ve,_e,Be,Ee;for(Yh(k),_e=0;_e<B;++_e)Be=R[_e],Ee=Li(Be,this),Ee=[Ee,this.__zoom.invert(Ee),Be.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ee[2]&&(ae.touch1=Ee,ae.taps=0):(ae.touch0=Ee,ve=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ve&&(ae.taps<2&&(v=Ee[0],g=setTimeout(function(){g=null},w)),Xu(this),ae.start())}}function P(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e,Be,Ee;for(Ta(k),ve=0;ve<ae;++ve)_e=B[ve],Be=Li(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=Be:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=Be);if(_e=R.that.__zoom,R.touch1){var Ge=R.touch0[0],Ue=R.touch0[1],He=R.touch1[0],Re=R.touch1[1],z=(z=He[0]-Ge[0])*z+(z=He[1]-Ge[1])*z,Z=(Z=Re[0]-Ue[0])*Z+(Z=Re[1]-Ue[1])*Z;_e=L(_e,Math.sqrt(z/Z)),Be=[(Ge[0]+He[0])/2,(Ge[1]+He[1])/2],Ee=[(Ue[0]+Re[0])/2,(Ue[1]+Re[1])/2]}else if(R.touch0)Be=R.touch0[0],Ee=R.touch0[1];else return;R.zoom("touch",n(D(_e,Be,Ee),R.extent,u))}}function O(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e;for(Yh(k),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ve=0;ve<ae;++ve)_e=B[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=Li(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<C)){var Be=er(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return E.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Lu(+k),E):i},E.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Lu(!!k),E):e},E.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Lu(!!k),E):o},E.extent=function(k){return arguments.length?(t=typeof k=="function"?k:Lu([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),E):t},E.scaleExtent=function(k){return arguments.length?(l[0]=+k[0],l[1]=+k[1],E):[l[0],l[1]]},E.translateExtent=function(k){return arguments.length?(u[0][0]=+k[0][0],u[1][0]=+k[1][0],u[0][1]=+k[0][1],u[1][1]=+k[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(k){return arguments.length?(n=k,E):n},E.duration=function(k){return arguments.length?(f=+k,E):f},E.interpolate=function(k){return arguments.length?(h=k,E):h},E.on=function(){var k=p.on.apply(p,arguments);return k===p?E:k},E.clickDistance=function(k){return arguments.length?(_=(k=+k)*k,E):Math.sqrt(_)},E.tapDistance=function(k){return arguments.length?(C=+k,E):C},E}function Jbe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return mk(this.cover(t,n),t,n,e)}function mk(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var o,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,$,_,C,E,L;if(!l)return e._root=u,e;for(;l.length;)if((_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,o=l,!(l=l[E=C<<1|_]))return o[E]=u,e;if(w=+e._x.call(null,l.data),$=+e._y.call(null,l.data),t===w&&n===$)return u.next=l,o?o[E]=u:e._root=u,e;do o=o?o[E]=new Array(4):e._root=new Array(4),(_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|_)===(L=($>=y)<<1|w>=v));return o[L]=l,o[E]=u,e}function Zbe(e){var t,n,i=e.length,o,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=o,f[n]=l,o<h&&(h=o),o>g&&(g=o),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)mk(this,u[n],f[n],e[n]);return this}function Qbe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,l=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=o-n||1,f=this._root,h,p;n>e||e>=o||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:o=n+u,l=i+u;break;case 1:n=o-u,l=i+u;break;case 2:o=n+u,i=l-u;break;case 3:n=o-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=o,this._y1=l,this}function ewe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function twe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function jn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function nwe(e,t,n){var i,o=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,$,_;for(w&&y.push(new jn(w,o,l,g,v)),n==null?n=1/0:(o=e-n,l=t-n,g=e+n,v=t+n,n*=n);$=y.pop();)if(!(!(w=$.node)||(u=$.x0)>g||(f=$.y0)>v||(h=$.x1)<o||(p=$.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new jn(w[3],C,E,h,p),new jn(w[2],u,E,C,p),new jn(w[1],C,f,h,E),new jn(w[0],u,f,C,E)),(_=(t>=E)<<1|e>=C)&&($=y[y.length-1],y[y.length-1]=y[y.length-1-_],y[y.length-1-_]=$)}else{var L=e-+this._x.call(null,w.data),D=t-+this._y.call(null,w.data),N=L*L+D*D;if(N<n){var I=Math.sqrt(n=N);o=e-I,l=t-I,g=e+I,v=t+I,i=w.data}}return i}function rwe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,o,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,$,_,C,E;if(!n)return this;if(n.length)for(;;){if(($=g>=(y=(u+h)/2))?u=y:h=y,(_=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=_<<1|$]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,o?(l?o.next=l:delete o.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function iwe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function owe(){return this._root}function swe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function lwe(e){var t=[],n,i=this._root,o,l,u,f,h;for(i&&t.push(new jn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(o=i[3])&&t.push(new jn(o,p,g,f,h)),(o=i[2])&&t.push(new jn(o,l,g,p,h)),(o=i[1])&&t.push(new jn(o,p,u,f,g)),(o=i[0])&&t.push(new jn(o,l,u,p,g))}return this}function awe(e){var t=[],n=[],i;for(this._root&&t.push(new jn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var o=i.node;if(o.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=o[0])&&t.push(new jn(l,u,f,g,v)),(l=o[1])&&t.push(new jn(l,g,f,h,v)),(l=o[2])&&t.push(new jn(l,u,v,g,p)),(l=o[3])&&t.push(new jn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function cwe(e){return e[0]}function uwe(e){return arguments.length?(this._x=e,this):this._x}function fwe(e){return e[1]}function dwe(e){return arguments.length?(this._y=e,this):this._y}function hm(e,t,n){var i=new pm(t??cwe,n??fwe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function pm(e,t,n,i,o,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=l,this._root=void 0}function _w(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Un=hm.prototype=pm.prototype;Un.copy=function(){var e=new pm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=_w(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?n.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=_w(i));return e};Un.add=Jbe;Un.addAll=Zbe;Un.cover=Qbe;Un.data=ewe;Un.extent=twe;Un.find=nwe;Un.remove=rwe;Un.removeAll=iwe;Un.root=owe;Un.size=swe;Un.visit=lwe;Un.visitAfter=awe;Un.x=uwe;Un.y=dwe;function qn(e){return function(){return e}}function Eo(e){return(e()-.5)*1e-6}function hwe(e){return e.x+e.vx}function pwe(e){return e.y+e.vy}function gwe(e){var t,n,i,o=1,l=1;typeof e!="function"&&(e=qn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,$,_,C,E=0;E<l;++E)for(v=hm(t,hwe,pwe).visitAfter(f),p=0;p<g;++p)y=t[p],_=n[y.index],C=_*_,w=y.x+y.vx,$=y.y+y.vy,v.visit(L);function L(D,N,I,q,X){var ie=D.data,J=D.r,U=_+J;if(ie){if(ie.index>y.index){var K=w-ie.x-ie.vx,P=$-ie.y-ie.vy,O=K*K+P*P;O<U*U&&(K===0&&(K=Eo(i),O+=K*K),P===0&&(P=Eo(i),O+=P*P),O=(U-(O=Math.sqrt(O)))/O*o,y.vx+=(K*=O)*(U=(J*=J)/(C+J)),y.vy+=(P*=O)*U,ie.vx-=K*(U=1-U),ie.vy-=P*U)}return}return N>w+U||q<w-U||I>$+U||X<$-U}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(o=+p,u):o},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:qn(+p),h(),u):e},u}function mwe(e){return e.index}function kw(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function vwe(e){var t=mwe,n=v,i,o=qn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,L=e.length;E<g;++E)for(var D=0,N,I,q,X,ie,J,U;D<L;++D)N=e[D],I=N.source,q=N.target,X=q.x+q.vx-I.x-I.vx||Eo(p),ie=q.y+q.vy-I.y-I.vy||Eo(p),J=Math.sqrt(X*X+ie*ie),J=(J-l[D])/J*C*i[D],X*=J,ie*=J,q.vx-=X*(U=h[D]),q.vy-=ie*U,I.vx+=X*(U=1-U),I.vy+=ie*U}function w(){if(u){var C,E=u.length,L=e.length,D=new Map(u.map((I,q)=>[t(I,q,u),I])),N;for(C=0,f=new Array(E);C<L;++C)N=e[C],N.index=C,typeof N.source!="object"&&(N.source=kw(D,N.source)),typeof N.target!="object"&&(N.target=kw(D,N.target)),f[N.source.index]=(f[N.source.index]||0)+1,f[N.target.index]=(f[N.target.index]||0)+1;for(C=0,h=new Array(L);C<L;++C)N=e[C],h[C]=f[N.source.index]/(f[N.source.index]+f[N.target.index]);i=new Array(L),$(),l=new Array(L),_()}}function $(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function _(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+o(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:qn(+C),$(),y):n},y.distance=function(C){return arguments.length?(o=typeof C=="function"?C:qn(+C),_(),y):o},y}const ywe=1664525,bwe=1013904223,Tw=4294967296;function wwe(){let e=1;return()=>(e=(ywe*e+bwe)%Tw)/Tw}function xwe(e){return e.x}function Swe(e){return e.y}var _we=10,kwe=Math.PI*(3-Math.sqrt(5));function Twe(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=cm(v),p=Oc("tick","end"),g=wwe();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y(_){var C,E=e.length,L;_===void 0&&(_=1);for(var D=0;D<_;++D)for(n+=(l-n)*o,f.forEach(function(N){N(n)}),C=0;C<E;++C)L=e[C],L.fx==null?L.x+=L.vx*=u:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=u:(L.y=L.fy,L.vy=0);return t}function w(){for(var _=0,C=e.length,E;_<C;++_){if(E=e[_],E.index=_,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var L=_we*Math.sqrt(.5+_),D=_*kwe;E.x=L*Math.cos(D),E.y=L*Math.sin(D)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function $(_){return _.initialize&&_.initialize(e,g),_}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(_){return arguments.length?(e=_,w(),f.forEach($),t):e},alpha:function(_){return arguments.length?(n=+_,t):n},alphaMin:function(_){return arguments.length?(i=+_,t):i},alphaDecay:function(_){return arguments.length?(o=+_,t):+o},alphaTarget:function(_){return arguments.length?(l=+_,t):l},velocityDecay:function(_){return arguments.length?(u=1-_,t):1-u},randomSource:function(_){return arguments.length?(g=_,f.forEach($),t):g},force:function(_,C){return arguments.length>1?(C==null?f.delete(_):f.set(_,$(C)),t):f.get(_)},find:function(_,C,E){var L=0,D=e.length,N,I,q,X,ie;for(E==null?E=1/0:E*=E,L=0;L<D;++L)X=e[L],N=_-X.x,I=C-X.y,q=N*N+I*I,q<E&&(ie=X,E=q);return ie},on:function(_,C){return arguments.length>1?(p.on(_,C),t):p.on(_)}}}function Cwe(){var e,t,n,i,o=qn(-30),l,u=1,f=1/0,h=.81;function p(w){var $,_=e.length,C=hm(e,xwe,Swe).visitAfter(v);for(i=w,$=0;$<_;++$)t=e[$],C.visit(y)}function g(){if(e){var w,$=e.length,_;for(l=new Array($),w=0;w<$;++w)_=e[w],l[_.index]=+o(_,w,e)}}function v(w){var $=0,_,C,E=0,L,D,N;if(w.length){for(L=D=N=0;N<4;++N)(_=w[N])&&(C=Math.abs(_.value))&&($+=_.value,E+=C,L+=C*_.x,D+=C*_.y);w.x=L/E,w.y=D/E}else{_=w,_.x=_.data.x,_.y=_.data.y;do $+=l[_.data.index];while(_=_.next)}w.value=$}function y(w,$,_,C){if(!w.value)return!0;var E=w.x-t.x,L=w.y-t.y,D=C-$,N=E*E+L*L;if(D*D/h<N)return N<f&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)),t.vx+=E*w.value*i/N,t.vy+=L*w.value*i/N),!0;if(w.length||N>=f)return;(w.data!==t||w.next)&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)));do w.data!==t&&(D=l[w.data.index]*i/N,t.vx+=E*D,t.vy+=L*D);while(w=w.next)}return p.initialize=function(w,$){e=w,n=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:qn(+w),g(),p):o},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Ewe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(o[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function Awe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(o[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function $we(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function Nwe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Mwe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function vk(e){e.preventDefault(),e.stopPropagation()}function yk(e){return typeof e=="number"}function Fo(e,t){return yk(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Lwe(e){return`${e.source.id}-${e.target.id}`}function bk(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Owe(e){return`url(#${bk(e.color)})`}function Rwe(e){return{size:e,padding:(t,n)=>Fo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const wk={Arrow:e=>Rwe(e)},Pwe=(e,t,n)=>[t/2,n/2],Iwe=(e,t,n)=>[Cw(0,t),Cw(0,n)];function Cw(e,t){return Math.random()*(t-e)+e}const Vp={Centered:Pwe,Randomized:Iwe};function Dwe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Mwe(),nodeRadius:16,marker:wk.Arrow(4),modifiers:{},positionInitializer:Vp.Centered,simulation:{alphas:$we(),forces:Nwe()},zoom:{initial:1,min:.1,max:2}}}function Fwe(e={}){return vve(Dwe(),e,{arrayMerge:(t,n)=>n})}function zwe({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:o,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>vk(g)).on("dblclick",g=>n?.(g)).on("dblclick.zoom",null).on("pointermove",g=>i?.(g)).on("pointerup",g=>o?.(g)).style("cursor","grab");return e&&p.call(h.transform,dm.translate(l,u).scale(f)),p.append("g")}function Hwe({canvas:e,scale:t,xOffset:n,yOffset:i}){e?.attr("transform",`translate(${n},${i})scale(${t})`)}function Bwe({config:e,onDragStart:t,onDragEnd:n}){const i=s0e().filter(o=>o.type==="mousedown"?o.button===0:o.type==="touchstart"?o.touches.length===1:!1).on("start",(o,l)=>{o.active===0&&t(o,l),er(o.sourceEvent.target).classed("grabbed",!0),l.fx=l.x,l.fy=l.y}).on("drag",(o,l)=>{l.fx=o.x,l.fy=o.y}).on("end",(o,l)=>{o.active===0&&n(o,l),er(o.sourceEvent.target).classed("grabbed",!1),l.fx=void 0,l.fy=void 0});return e.modifiers.drag?.(i),i}function jwe({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:o}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&o(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:Wwe({links:l},n)}function Wwe(e,t){const n=[...qwe(e,t),...Uwe(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function qwe(e,t){return xk(e,t,(n,i)=>n.target.id===i.id)}function Uwe(e,t){return xk(e,t,(n,i)=>n.source.id===i.id)}function xk(e,t,n){const i=new Set(e.links),o=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...o].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{o.add(f.source),o.add(f.target),l.push(f),i.delete(f)})}return l}function Gp(e){return e.x??0}function Kp(e){return e.y??0}function gm({source:e,target:t}){const n=new Ol(Gp(e),Kp(e)),i=new Ol(Gp(t),Kp(t)),o=i.subtract(n),l=o.length(),u=o.normalize();return{s:n,t:i,dist:l,norm:u,endNorm:u.multiply(-1)}}function Sk({center:e,node:t}){const n=new Ol(Gp(t),Kp(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Ol(0,1))),{n,c:i}}function _k({config:e,source:t,target:n}){const{s:i,t:o,norm:l}=gm({source:t,target:n});return{start:i.add(l.multiply(Fo(e,t)-1)),end:o.subtract(l.multiply(e.marker.padding(n,e)))}}function Vwe(e){const{start:t,end:n}=_k(e);return`M${t.x},${t.y}
78
+ L${n.x},${n.y}`}function Gwe(e){const{start:t,end:n}=_k(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function Kwe({config:e,source:t,target:n}){const{s:i,t:o,dist:l,norm:u,endNorm:f}=gm({source:t,target:n}),h=10,p=u.rotateByDegrees(-h).multiply(Fo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(Fo(e,n)).add(o).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
79
+ A${v},${v},0,0,1,${g.x},${g.y}`}function Ywe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=Fo(t,n),u=i.subtract(o),f=u.multiply(1/u.length()),h=40,p=f.rotateByDegrees(h).multiply(l-1).add(i),g=f.rotateByDegrees(-h).multiply(l).add(i).add(f.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
80
+ A${l},${l},0,1,0,${g.x},${g.y}`}function Xwe({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:l}=gm({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*o).add(i);return`translate(${u.x},${u.y})`}function Jwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=i.subtract(o),u=l.multiply(1/l.length()).multiply(3*Fo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const xl={line:{labelTransform:Gwe,path:Vwe},arc:{labelTransform:Xwe,path:Kwe},reflexive:{labelTransform:Jwe,path:Ywe}};function Zwe(e){return e.append("g").classed("links",!0).selectAll("path")}function Qwe({config:e,graph:t,selection:n,showLabels:i}){const o=n?.data(t.links,l=>Lwe(l)).join(l=>{const u=l.append("g"),f=u.append("path").classed("link",!0).style("marker-end",p=>Owe(p)).style("stroke",p=>p.color);e.modifiers.link?.(f);const h=u.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),u});return o?.select(".link__label").attr("opacity",l=>l.label&&i?1:0),o}function exe(e){txe(e),nxe(e)}function txe({center:e,config:t,graph:n,selection:i}){i?.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?xl.reflexive.path({config:t,node:o.source,center:e}):kk(n,o.source,o.target)?xl.arc.path({config:t,source:o.source,target:o.target}):xl.line.path({config:t,source:o.source,target:o.target}))}function nxe({config:e,center:t,graph:n,selection:i}){i?.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?xl.reflexive.labelTransform({config:e,node:o.source,center:t}):kk(n,o.source,o.target)?xl.arc.labelTransform({config:e,source:o.source,target:o.target}):xl.line.labelTransform({config:e,source:o.source,target:o.target}))}function kk(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function rxe(e){return e.append("defs").selectAll("marker")}function ixe({config:e,graph:t,selection:n}){return n?.data(oxe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",l=>bk(l)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",l=>l);return o.append("path").attr("d",sxe(e.marker.path)),o})}function oxe(e){return[...new Set(e.links.map(t=>t.color))]}function sxe(e){const[t,...n]=e;if(!t)return"M0,0";const[i,o]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${o}`)}function lxe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function axe({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:o,selection:l,showLabels:u}){const f=l?.data(n.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",y=>Fo(e,y)).on("contextmenu",(y,w)=>{vk(y),i(w)}).on("pointerdown",(y,w)=>uxe(y,w,o??i)).style("fill",y=>y.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",y=>y.label?y.label.color:null).style("font-size",y=>y.label?y.label.fontSize:null).style("stroke","none").text(y=>y.label?y.label.text:null);return e.modifiers.nodeLabel?.(v),p});return f?.select(".node").classed("focused",h=>h.isFocused),f?.select(".node__label").attr("opacity",u?1:0),f}const cxe=500;function uxe(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,o=Date.now();if(i===void 0||o-i>cxe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function fxe(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function dxe({center:e,config:t,graph:n,onTick:i}){const o=Twe(n.nodes),l=t.simulation.forces.centering;if(l&&l.enabled){const p=l.strength;o.force("x",Ewe(()=>e().x).strength(p)).force("y",Awe(()=>e().y).strength(p))}const u=t.simulation.forces.charge;u&&u.enabled&&o.force("charge",Cwe().strength(u.strength));const f=t.simulation.forces.collision;f&&f.enabled&&o.force("collision",gwe().radius(p=>f.radiusMultiplier*Fo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&o.force("link",vwe(n.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),o.on("tick",()=>i()),t.modifiers.simulation?.(o),o}function hxe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){const l=Xbe().scaleExtent([n,i]).filter(u=>u.button===0||u.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",u=>o(u)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(l),l}var pxe=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(i=>{const[o,l]=n.positionInitializer(i,this.effectiveWidth,this.effectiveHeight);i.x=i.x??o,i.y=i.y??l}),this.nodeTypes=[...new Set(t.nodes.map(i=>i.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){const{includeUnlinked:i,nodeTypeFilter:o,linkFilter:l,showLinkLabels:u,showNodeLabels:f}=n.initial;this._includeUnlinked=i??this._includeUnlinked,this._showLinkLabels=u??this._showLinkLabels,this._showNodeLabels=f??this._showNodeLabels,this._nodeTypeFilter=o??this._nodeTypeFilter,this._linkFilter=l??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(yve(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,i=e?t:n;this.restart(i)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,i=e?n:t;this.restart(i)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.links,i=e?n:t;this.restart(i)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Ol.of([this.width,this.height]).divide(2).subtract(Ol.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,i=this.container.getBoundingClientRect().height,o=e.toFixed()!==n.toFixed(),l=t.toFixed()!==i.toFixed();if(!o&&!l)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const u=this.config.simulation.alphas.resize;this.restart(yk(u)?u:u({oldWidth:e,oldHeight:t,newWidth:n,newHeight:i}))}restart(e){this.markerSelection=ixe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Qwe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=axe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=dxe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(n=>n!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=hxe({config:this.config,canvasContainer:()=>er(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=zwe({applyZoom:this.scale!==1,container:er(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Zwe(this.canvas),this.nodeSelection=lxe(this.canvas),this.markerSelection=rxe(this.canvas),this.drag=Bwe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){fxe(this.nodeSelection),exe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),er(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Hwe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=jwe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ew({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function gxe(e){return{...e}}function mm(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Aw(e){const t=e.map(i=>g_(i)),n=dP(t);return t.map(({raw:i,id:o,splitted:l})=>mm({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:o.includes("node_modules")?n.get(i)??i:l[l.length-1]},isFocused:!1,id:o,type:"external"}))}function mxe(e,t){return mm({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function vxe(e,t){if(!e)return Ew({});const n=pt.value.experimental?.viteModuleRunner?Aw(e.externalized):Aw([...e.inlined,...e.externalized]),i=pt.value.experimental?.viteModuleRunner?e.inlined.map(f=>mxe(f,f===t))??[]:[],o=[...n,...i],l=Object.fromEntries(o.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return gxe({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ew({nodes:o,links:u})}const yxe={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},bxe={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},wxe={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},xxe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Sxe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},_xe={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Tk=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=ir("tooltip");return e.state==="pass"?(te(),ge("div",yxe)):e.failedSnapshot?st((te(),ge("div",bxe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ge("div",wxe)):e.mode==="todo"?st((te(),ge("div",xxe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((te(),ge("div",Sxe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(te(),ge("div",_xe))}}}),kxe={border:"b base","p-4":""},Txe=["innerHTML"],Cxe=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(te(),ge("div",kxe,[Y("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Me(t(e.time))+" | "+Me(e.taskName)+" | "+Me(e.type),3),Y("pre",{"data-type":"html",innerHTML:e.content},null,8,Txe)]))}}),Exe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Axe={key:1,p6:""},$xe=tt({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const i=j_.value;if(i){const o=Qg(Po.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:o.toHtml(Wa(h))}))}});function n(i){const o=i&&ft.state.idMap.get(i);return o&&"filepath"in o?o.name:(o?MR(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>t.value?.length?(te(),ge("div",Exe,[(te(!0),ge(nt,null,xn(t.value,({taskId:l,type:u,time:f,content:h})=>(te(),ge("div",{key:l,"font-mono":""},[Ne(Cxe,{"task-name":n(l),type:u,time:f,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ge("div",Axe,[...o[0]||(o[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),Y("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),Ck={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Ck);var xr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},rl,La,as;class Nxe{constructor(...t){rl.set(this,new Map),La.set(this,new Map),as.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,o]of Object.entries(t)){i=i.toLowerCase(),o=o.map(f=>f.toLowerCase()),xr(this,as,"f").has(i)||xr(this,as,"f").set(i,new Set);const l=xr(this,as,"f").get(i);let u=!0;for(let f of o){const h=f.startsWith("*");if(f=h?f.slice(1):f,l?.add(f),u&&xr(this,La,"f").set(i,f),u=!1,h)continue;const p=xr(this,rl,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);xr(this,rl,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),o=n.length<t.length;return!(i.length<n.length-1)&&o?null:xr(this,rl,"f").get(i)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&xr(this,La,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:xr(this,as,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of xr(this,as,"f").values())Object.freeze(t);return this}_getTestState(){return{types:xr(this,rl,"f"),extensions:xr(this,La,"f")}}}rl=new WeakMap,La=new WeakMap,as=new WeakMap;const Mxe=new Nxe(Ck)._freeze();function Pl(e){const t=e.contentType??"application/octet-stream";return e.path?pr?`./data/${rR(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Ek(e,t){const n=t?Mxe.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function Ak(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Yp(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Pl(e)}const Ju=tt({__name:"CodeMirrorContainer",props:Xa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Xa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=Jf(e,"modelValue"),o=fA(),l={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},u=Ke();return Yi(async()=>{const f=Mge(u,i,{...o,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.on("refresh",()=>{n("codemirror",f)}),f.on("change",()=>{n("codemirror",f)}),f.setSize("100%","100%"),f.clearHistory(),Fn.value=f,setTimeout(()=>Fn.value?.refresh(),100)}),(f,h)=>(te(),ge("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[Y("textarea",{ref_key:"el",ref:u},null,512)],2))}}),Lxe=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,o=Ke(""),l=Vt(void 0),u=Ke(!1),f=Ke(!0),h=Ke(!1),p=Ke();yt(()=>n.file,async()=>{if(!h.value){f.value=!0;try{if(!n.file||!n.file?.filepath){o.value="",l.value=o.value,u.value=!1,f.value=!1;return}o.value=await ft.rpc.readTestFile(n.file.filepath)||"",l.value=o.value,u.value=!1}catch(J){console.error("cannot fetch file",J)}await At(),f.value=!1}},{immediate:!0}),yt(()=>[f.value,h.value,n.file,N_.value,M_.value],([J,U,K,P,O])=>{!J&&!U&&(P!=null?At(()=>{const k=p.value,S=k??{line:(P??1)-1,ch:O??0};k?p.value=void 0:(Fn.value?.scrollIntoView(S,100),At(()=>{Fn.value?.focus(),Fn.value?.setCursor(S)}))}):At(()=>{Fn.value?.focus()}))},{flush:"post"});const g=Se(()=>n.file?.filepath?.split(/\./g).pop()||"js"),v=Ke(),y=Se(()=>{const J=[];function U(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),w=Se(()=>{const J=[];function U(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),$=[],_=[],C=[],E=Ke(!1);function L(){C.forEach(([J,U,K])=>{J.removeEventListener("click",U),K()}),C.length=0}fM(v,()=>{Fn.value?.refresh()});function D(){u.value=l.value!==Fn.value.getValue()}yt(u,J=>{i("draft",J)},{immediate:!0});function N(J){const K=(J?.stacks||[]).filter(R=>R.file&&R.file===n.file?.filepath)?.[0];if(!K)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-700 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,P.appendChild(O);const k=document.createElement("span");k.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",k.tabIndex=0,k.ariaLabel="Open in Editor",B1(k,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Zg(K.file,K.line,K.column)};k.addEventListener("click",S),P.appendChild(k),C.push([k,S,()=>Eg(k)]),_.push(Fn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),$.push(Fn.value.addLineWidget(K.line-1,P))}function I(J){if(!J.location)return;const{line:U,file:K}=J.location;if(K!==n.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const k=document.createElement("span");k.textContent=`${J.type}: `,k.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
81
+ `),O.append(k,S),P.append(O);const R=J.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Pl(R)),B.target="_blank",B.href=ae.src,B.append(ae),P.append(B)}else{const B=document.createElement("a");B.href=Pl(R),B.download=Ek(J.message,R.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(ae,ve),P.append(B)}$.push(Fn.value.addLineWidget(U-1,P))}const{pause:q,resume:X}=yt([Fn,y,w,ol],([J,U,K,P])=>{if(!J){$.length=0,_.length=0,L();return}P&&(J.off("changes",D),L(),$.forEach(O=>O.clear()),_.forEach(O=>J?.removeLineClass(O,"wrap")),$.length=0,_.length=0,setTimeout(()=>{U.forEach(N),K.forEach(I),E.value||J.clearHistory(),J.on("changes",D)},100))},{flush:"post"});K1(()=>[ol.value,h.value,p.value],([J,U],K)=>{J&&!U&&K&&K[2]&&Fn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function ie(J){if(h.value)return;q(),h.value=!0,await At();const U=Fn.value;U&&(U.setOption("readOnly",!0),await At(),U.refresh()),p.value=U?.getCursor(),U?.off("changes",D),L(),$.forEach(K=>K.clear()),_.forEach(K=>U?.removeLineClass(K,"wrap")),$.length=0,_.length=0;try{E.value=!0,await ft.rpc.saveTestFile(n.file.filepath,J),l.value=J,u.value=!1}catch(K){console.error("error saving file",K)}E.value||U?.clearHistory();try{await $0(ol).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await $0(ol).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(N),w.value.forEach(I),U?.on("changes",D),h.value=!1,await At(),U&&(U.setOption("readOnly",!1),await At(),U.refresh()),X()}return Sc(L),(J,U)=>(te(),We(Ju,ci({ref_key:"editor",ref:v,modelValue:o.value,"onUpdate:modelValue":U[0]||(U[0]=K=>o.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(pr)||!W(pt).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ie}),null,16,["modelValue","mode"]))}}),$k=tt({__name:"Modal",props:Xa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue"),n=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),i=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),o=()=>t.value=!1;return(l,u)=>(te(),ge("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:o},null,2),Y("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[n.value]]),style:Pt(t.value?{}:{transform:i.value})},[Bt(l.$slots,"default")],6)],2))}}),Oxe={class:"overflow-auto max-h-120"},Rxe={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},Pxe=["onClick"],Ixe=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const n=t,i=Se(()=>{const u=Tr.value?.importDurations,f=pt.value.root;if(!u||!f)return[];const h=[];for(const p in u){const g=u[p],v=g.external?hP(p):ud(f,p);h.push({importedFile:p,relativeFile:o(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:us(g.selfTime),formattedTotalTime:us(g.totalTime),selfTimeClass:kf(g.selfTime),totalTimeClass:kf(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function o(l){return l.length<=45?l:`...${l.slice(-45)}`}return(l,u)=>(te(),ge("div",Oxe,[u[1]||(u[1]=Y("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),Y("span",{"op-70":""},"(ordered by Total Time)")],-1)),Y("table",Rxe,[u[0]||(u[0]=Y("thead",null,[Y("tr",null,[Y("th",null," Module "),Y("th",null," Self "),Y("th",null," Total "),Y("th",null," % ")])],-1)),Y("tbody",null,[(te(!0),ge(nt,null,xn(i.value,f=>(te(),ge("tr",{key:f.importedFile},[Y("td",{class:"cursor-pointer pr-2",style:Pt({color:f.external?"var(--color-node-external)":void 0}),onClick:h=>n("select",f.importedFile,f.external?"external":"inline")},Me(f.relativeFile),13,Pxe),Y("td",{"pr-2":"",class:ot(f.selfTimeClass)},Me(f.formattedSelfTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(f.formattedTotalTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(Math.round(f.totalTime/i.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),el=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,n)=>(te(),ge("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Bt(t.$slots,"default")],2))}}),Dxe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Fxe={"p-4":"",relative:""},zxe={flex:"","justify-between":""},Hxe={"mr-8":"",flex:"","gap-2":"","items-center":""},Bxe={op50:"","font-mono":"","text-sm":""},jxe={key:0,"p-5":""},Wxe={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},qxe={key:0},Uxe={p:"x3 y-1","bg-overlay":"",border:"base b t"},Vxe=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const n=e,i=t,o=VN(()=>{if(Tr.value?.id){if(n.type==="inline")return ft.rpc.getTransformResult(n.projectName,n.id,Tr.value.id,!!gr);if(n.type==="external")return ft.rpc.getExternalResult(n.id,Tr.value.id)}}),l=Se(()=>{const D=Tr.value?.importDurations||{};return D[n.id]||D[tR("/@fs/",n.id)]||{}}),u=Se(()=>n.id?.split(/\./g).pop()||"js"),f=Se(()=>o.value?.source?.trim()||""),h=Se(()=>!o.value||!("code"in o.value)||!pt.value.experimental?.fsModuleCache?void 0:o.value.code.lastIndexOf("vitestCache=")!==-1),p=Se(()=>!o.value||!("code"in o.value)?null:o.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=Se(()=>!o.value||!("map"in o.value)?{mappings:""}:{mappings:o.value?.map?.mappings??"",version:o.value?.map?.version}),v=[],y=[],w=[];function $(D,N){const I=D.coordsChar({left:N.clientX,top:N.clientY}),q=D.findMarksAt(I);if(q.length!==1)return;const X=q[0].title;if(X){const ie=q[0].attributes?.["data-external"]==="true"?"external":"inline";i("select",X,ie)}}function _(D){const N=document.createElement("div");N.classList.add("mb-5");const I=pt.value.root;if(I)return D.forEach(({resolvedId:q,totalTime:X,external:ie})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const U=document.createElement("span"),K=ud(I,q);U.textContent=`"/${K}"`,U.className="hover:underline decoration-gray cursor-pointer select-none",J.append(U),U.addEventListener("click",()=>{i("select",q,ie?"external":"inline")});const P=document.createElement("span");P.textContent=` ${us(X)}`;const O=kf(X);O&&P.classList.add(O),J.append(P),N.append(J)}),N}function C(D){const N=document.createElement("div");N.className="flex ml-2",N.textContent=us(D);const I=kf(D);return I&&N.classList.add(I),N}function E(D){if(w.forEach(N=>N.clear()),w.length=0,v.forEach(N=>N.remove()),v.length=0,y.forEach(N=>N.clear()),y.length=0,o.value&&"modules"in o.value){D.off("mousedown",$),D.on("mousedown",$);const N=o.value.untrackedModules;if(N?.length){const I=_(N);if(!I)return;v.push(I),w.push(D.addLineWidget(0,I,{above:!0}))}o.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},X={line:I.end.line-1,ch:I.end.column},ie=D.markText(q,X,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});y.push(ie);const J=C(I.totalTime+(I.transformTime||0));N?.length||J.classList.add("-mt-5"),v.push(J),D.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function L(){i("back")}return J1("Escape",()=>{i("close")}),(D,N)=>{const I=ir("tooltip");return te(),ge("div",Dxe,[Y("div",Fxe,[Y("div",zxe,[Y("p",null,[e.canUndo?st((te(),We(Tt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:N[0]||(N[0]=q=>L())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):Fe("",!0),N[7]||(N[7]=Qe(" Module Info ",-1)),Ne(W(wo),{class:"inline","cursor-help":""},{popper:je(()=>[Qe(" This is module is "+Me(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ge(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ge(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:je(()=>[Ne(el,{type:"custom","ml-1":"",style:Pt({backgroundColor:`var(--color-node-${e.type})`})},{default:je(()=>[Qe(Me(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[...N[4]||(N[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:je(()=>[Ne(el,{type:"tip","ml-2":""},{default:je(()=>[...N[3]||(N[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Fe("",!0),h.value===!1?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[...N[6]||(N[6]=[Y("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),Y("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:je(()=>[Ne(el,{type:"warning","ml-2":""},{default:je(()=>[...N[5]||(N[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Fe("",!0)]),Y("div",Hxe,[l.value.selfTime!=null&&l.value.external!==!0?(te(),We(W(wo),{key:0,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.selfTime)},{default:je(()=>[Qe(" self: "+Me(W(us)(l.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),l.value.totalTime!=null?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.totalTime)},{default:je(()=>[Qe(" total: "+Me(W(us)(l.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),W(o)&&"transformTime"in W(o)&&W(o).transformTime?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(W(o).transformTime))+" to transform this module by Vite plugins. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(W(o).transformTime)},{default:je(()=>[Qe(" transform: "+Me(W(us)(W(o).transformTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0)])]),Y("p",Bxe,Me(e.id),1),Ne(Tt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:N[1]||(N[1]=q=>i("close"))})]),W(o)?(te(),ge(nt,{key:1},[Y("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[N[8]||(N[8]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ge("div",Wxe," Transformed ")):Fe("",!0),(te(),We(Ju,ci({key:e.id,"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:u.value,onCodemirror:N[2]||(N[2]=q=>E(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(Ju,ci({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Fe("",!0)],2),g.value.mappings!==""?(te(),ge("div",qxe,[Y("div",Uxe," Source map (v"+Me(g.value.version)+") ",1),Ne(Ju,ci({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Fe("",!0)],64)):(te(),ge("div",jxe," No transform result found for this module. "))])}}}),Gxe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Kxe={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Yxe={flex:"~ gap-1","items-center":"","select-none":""},Xxe={class:"pr-2"},Jxe=["id","checked","onChange"],Zxe=["for"],Qxe={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},e1e=tt({__name:"ViewModuleGraph",props:Xa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Jf(e,"modelValue"),{graph:i}=OE(t),o=Ke(),l=Ke(!1),u=Ke(),f=uM(u),h=Ke(),p=Ke(null),g=Vt(i.value),v=Se(()=>{let K="";const P=Tr.value?.importDurations,O=pt.value.experimental?.importDurations.thresholds;if(!P||!O)return K;for(const k in P){const{totalTime:S}=P[k];if(S>=O.danger){K="text-red";break}else S>=O.warn&&(K="text-orange")}return K}),y=Ke(v.value==="text-red");Yi(()=>{g.value=_(i.value,null,2),X()}),_c(()=>{h.value?.shutdown()}),yt(i,()=>{g.value=_(i.value,p.value,2),X()});function w(){g.value=i.value,X()}function $(){y.value=!y.value}function _(K,P,O=2){if(!K.nodes.length||K.nodes.length<=50)return K;const k=new Map;K.nodes.forEach(Ee=>k.set(Ee.id,new Set)),K.links.forEach(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);k.get(Ge)?.add(Ue),k.get(Ue)?.add(Ge)});let S;if(P)S=[P];else{const Ee=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ge=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ee.has(Ue.id));S=Ge.length>0?[Ge[0].id]:[K.nodes[0].id]}const R=new Set,B=S.map(Ee=>({id:Ee,level:0}));for(;B.length>0;){const{id:Ee,level:Ge}=B.shift();R.has(Ee)||Ge>O||(R.add(Ee),Ge<O&&(k.get(Ee)||new Set).forEach(He=>{R.has(He)||B.push({id:He,level:Ge+1})}))}const ae=new Map(K.nodes.map(Ee=>[Ee.id,Ee])),ve=Array.from(R).map(Ee=>ae.get(Ee)).filter(Ee=>Ee!==void 0),_e=new Map(ve.map(Ee=>[Ee.id,Ee])),Be=K.links.map(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);if(R.has(Ge)&&R.has(Ue)){const He=_e.get(Ge),Re=_e.get(Ue);if(He&&Re)return{...Ee,source:He,target:Re}}return null}).filter(Ee=>Ee!==null);return{nodes:ve,links:Be}}function C(K,P){h.value?.filterNodesByType(P,K)}function E(K,P){u.value={id:K,type:P},l.value=!0}function L(){f.undo()}function D(){l.value=!1,f.clear()}function N(K){p.value=K,g.value=_(i.value,K,2),q(),X()}function I(){p.value=null,g.value=_(i.value,null,2),q(),X()}function q(){const K=g.value.nodes.map(k=>{let S,R;return k.id===p.value?(S="var(--color-node-focused)",R="var(--color-node-focused)"):k.type==="inline"?(S=k.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=S):(S="var(--color-node-external)",R="var(--color-node-external)"),mm({...k,color:S,label:k.label?{...k.label,color:R}:k.label})}),P=new Map(K.map(k=>[k.id,k])),O=g.value.links.map(k=>{const S=typeof k.source=="object"?k.source.id:String(k.source),R=typeof k.target=="object"?k.target.id:String(k.target);return{...k,source:P.get(S),target:P.get(R)}});g.value={nodes:K,links:O}}function X(K=!1){if(h.value?.shutdown(),K&&!n.value){n.value=!0;return}if(!g.value||!o.value)return;const P=g.value.nodes.length;let O=1,k=.5;P>300?(O=.3,k=.2):P>200?(O=.4,k=.3):P>100?(O=.5,k=.3):P>50&&(O=.7,O=.4),h.value=new pxe(o.value,g.value,Fwe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:S,newWidth:R})=>S===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:wk.Arrow(2),modifiers:{node:U},positionInitializer:i.value.nodes.length===1?Vp.Centered:Vp.Randomized,zoom:{initial:O,min:k,max:1.5}}))}const ie=K=>K.button===0,J=K=>K.button===2;function U(K){if(pr)return;let P=0,O=0,k=0,S=!1;K.on("pointerdown",(R,B)=>{!B.x||!B.y||(S=J(R),!(!ie(R)&&!S)&&(P=B.x,O=B.y,k=Date.now()))}).on("pointerup",(R,B)=>{if(!B.x||!B.y)return;const ae=J(R);if(!ie(R)&&!ae||Date.now()-k>500)return;const ve=B.x-P,_e=B.y-O;ve**2+_e**2<100&&(!ae&&!R.shiftKey?E(B.id,B.type):(ae||R.shiftKey)&&(R.preventDefault(),B.type==="inline"&&N(B.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(K,P)=>{const O=ir("tooltip");return te(),ge("div",Gxe,[Y("div",null,[Y("div",Kxe,[Y("div",Yxe,[Y("div",Xxe,Me(g.value.nodes.length)+"/"+Me(W(i).nodes.length)+" "+Me(g.value.nodes.length===1?"module":"modules"),1),st(Y("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=k=>n.value=k),type:"checkbox"},null,512),[[b1,n.value]]),P[9]||(P[9]=Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(te(!0),ge(nt,null,xn(h.value?.nodeTypes.sort(),k=>(te(),ge("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${k}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(k),onChange:S=>C(k,S.target.checked)},null,40,Jxe),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:Pt({"border-color":`var(--color-node-${k})`})},Me(k)+" Modules",13,Zxe)]))),128)),P[10]||(P[10]=Y("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=Y("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[Y("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-notebook",class:ot(v.value),onClick:P[1]||(P[1]=k=>$())},null,8,["class"]),[[O,`${y.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=k=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=k=>I())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),y.value?(te(),ge("div",Qxe,[Ne(Ixe,{onSelect:P[4]||(P[4]=(k,S)=>E(k,S))})])):Fe("",!0),Y("div",{ref_key:"el",ref:o},null,512),Ne($k,{modelValue:l.value,"onUpdate:modelValue":P[8]||(P[8]=k=>l.value=k),direction:"right"},{default:je(()=>[u.value?(te(),We(IA,{key:0},{default:je(()=>[Ne(Vxe,{id:u.value.id,"project-name":e.projectName,type:u.value.type,"can-undo":W(f).undoStack.value.length>1,onClose:P[5]||(P[5]=k=>D()),onSelect:P[6]||(P[6]=(k,S)=>E(k,S)),onBack:P[7]||(P[7]=k=>L())},null,8,["id","project-name","type","can-undo"])]),_:1})):Fe("",!0)]),_:1},8,["modelValue"])])}}}),t1e={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},n1e={"p-4":"",relative:"",border:"base b"},r1e={op50:"","font-mono":"","text-sm":""},i1e={op50:"","font-mono":"","text-sm":""},o1e={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},s1e=["src","alt"],l1e={key:1},a1e=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return J1("Escape",()=>{n("close")}),(i,o)=>(te(),ge("div",t1e,[Y("div",n1e,[o[1]||(o[1]=Y("p",null,"Screenshot error",-1)),Y("p",r1e,Me(e.file),1),Y("p",i1e,Me(e.name),1),Ne(Tt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:o[0]||(o[0]=l=>n("close"))})]),Y("div",o1e,[e.url?(te(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,s1e)):(te(),ge("div",l1e," Something was wrong, the image cannot be resolved. "))])]))}}),c1e=Xi(a1e,[["__scopeId","data-v-08ce44b7"]]),u1e={flex:"~ gap-2 items-center"},Nk=tt({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ke(!1),n=Se(()=>{if(e.task.type==="test"){const l=e.task.artifacts.find(u=>u.type==="internal:failureScreenshot");if(l!==void 0)return l}return null}),i=Se(()=>n.value&&n.value.attachments.length&&Pl(n.value.attachments[0]));function o(){if(n.value===null||n.value.attachments.length===0)return;const l=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(l)}`)}return(l,u)=>{const f=ir("tooltip");return i.value?(te(),ge(nt,{key:0},[Y("div",u1e,[st(Ne(Tt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:u[0]||(u[0]=h=>t.value=!0)},null,512),[[f,"View screenshot error",void 0,{bottom:!0}]]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:o},null,512)),[[f,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(te(),We($k,{key:i.value,modelValue:t.value,"onUpdate:modelValue":u[2]||(u[2]=h=>t.value=h),direction:"right"},{default:je(()=>[Ne(c1e,{file:e.task.file.filepath,name:e.task.name,url:i.value,onClose:u[1]||(u[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):Fe("",!0)}}}),f1e={class:"scrolls scrolls-rounded task-error"},d1e=["onClickPassive"],h1e=["innerHTML"],p1e=tt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=Se(()=>Qg(Po.value)),o=Se(()=>!!t.error?.diff),l=Se(()=>t.error.diff?i.value.toHtml(Wa(t.error.diff)):void 0);function u(f){return _ge(f.file,t.filename)?Lge(t.fileId,f):Zg(f.file,f.line,f.column)}return(f,h)=>{const p=ir("tooltip");return te(),ge("div",f1e,[Y("pre",null,[Y("b",null,Me(e.error.name),1),Qe(": "+Me(e.error.message),1)]),(te(!0),ge(nt,null,xn(e.error.stacks,(g,v)=>(te(),ge("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Me(n(g.file))+":"+Me(g.line)+":"+Me(g.column),1),st(Y("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>u(g)},null,40,d1e),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),o.value?(te(),ge("pre",{key:0,"data-testid":"diff",innerHTML:l.value},null,8,h1e)):Fe("",!0)])}}}),Mk=Xi(p1e,[["__scopeId","data-v-bd36ee9a"]]),g1e={"h-full":"",class:"scrolls"},m1e=["id"],v1e={flex:"~ gap-2 items-center"},y1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},b1e=["innerHTML"],w1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},x1e=tt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(o,l){return o.result?.state!=="fail"?[]:o.type==="test"?[{...o,level:l}]:[{...o,level:l},...o.tasks.flatMap(u=>n(u,l+1))]}const i=Se(()=>{const o=t.file,l=o.tasks?.flatMap(h=>n(h,0))??[],u=o.result;if(u?.errors?.[0]){const h={id:o.id,file:o,name:o.name,fullName:o.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:u};l.unshift(h)}return l.length>0?$_(Po.value,l):l});return(o,l)=>(te(),ge("div",g1e,[i.value.length?(te(!0),ge(nt,{key:0},xn(i.value,u=>(te(),ge("div",{id:u.id,key:u.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Pt({"margin-left":`${u.result?.htmlError?.5:2*u.level+.5}rem`})},[Y("div",v1e,[Y("span",null,Me(u.name),1),Ne(Nk,{task:u},null,8,["task"])]),u.result?.htmlError?(te(),ge("div",y1e,[Y("pre",{innerHTML:u.result.htmlError},null,8,b1e)])):u.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(u.result.errors,(f,h)=>(te(),We(Mk,{key:h,error:f,filename:e.file.name,root:W(pt).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Fe("",!0)],4)],8,m1e))),128)):(te(),ge("div",w1e," All tests passed in this file "))]))}}),S1e=Xi(x1e,[["__scopeId","data-v-13572615"]]);function Lk(e,t){return Oge(e,t)}function Pf(e){const t=pt.value.root;return`${t?ud(t,e.file):e.file}:${e.line}:${e.column}`}const _1e=["href","referrerPolicy"],k1e=["src"],T1e=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=Se(()=>{const i=t.annotation.attachment,o=i.path||i.body;return typeof o=="string"&&(o.startsWith("http://")||o.startsWith("https://"))?o:Pl(i)});return(i,o)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:n.value,referrerPolicy:W(Ak)(e.annotation.attachment)?"no-referrer":void 0},[Y("img",{src:n.value},null,8,k1e)],8,_1e)):Fe("",!0)}}),C1e={class:"flex flex-col gap-4"},E1e={key:0},A1e=tt({__name:"ArtifactTemplate",setup(e){const t=Bx();return(n,i)=>(te(),ge("article",C1e,[Y("h1",null,[Bt(n.$slots,"title")]),W(t).message?(te(),ge("p",E1e,[Bt(n.$slots,"message")])):Fe("",!0),Bt(n.$slots,"default")]))}}),Ok=Symbol("tabContext"),If={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},$1e={class:"flex flex-col items-center gap-6"},N1e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},M1e=["id","aria-selected","aria-controls","onClick"],L1e=tt({__name:"SmallTabs",setup(e){const t=Ke(null),n=Ke([]),i=mg();return _r(Ok,{id:i,activeTab:t,registerTab:o=>{n.value.some(({id:l})=>l===o.id)||n.value.push(o),n.value.length===1&&(t.value=o.id)},unregisterTab:o=>{const l=n.value.findIndex(({id:u})=>u===o.id);l>-1&&n.value.splice(l,1),t.value===o.id&&(t.value=n.value[0]?.id??null)}}),(o,l)=>(te(),ge("div",$1e,[Y("div",N1e,[(te(!0),ge(nt,null,xn(n.value,u=>(te(),ge("button",{id:W(If).tab(u.id,W(i)),key:u.id,role:"tab","aria-selected":t.value===u.id,"aria-controls":W(If).tabpanel(u.id,W(i)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:f=>t.value=u.id},Me(u.title),9,M1e))),128))]),Bt(o.$slots,"default")]))}}),O1e=["id","aria-labelledby","hidden"],Ou=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,n=bn(Ok);if(!n)throw new Error("TabPane must be used within Tabs");const i=mg(),o=Se(()=>n.activeTab.value===i);return Yi(()=>{n.registerTab({...t,id:i})}),_c(()=>{n.unregisterTab({...t,id:i})}),(l,u)=>(te(),ge("div",{id:W(If).tabpanel(W(i),W(n).id),role:"tabpanel","aria-labelledby":W(If).tab(W(i),W(n).id),hidden:!o.value,class:"max-w-full"},[Bt(l.$slots,"default")],8,O1e))}}),Rk=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(n,i)=>(te(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Pt({backgroundImage:t})},[Bt(n.$slots,"default")],4))}}),R1e=["href","referrerPolicy"],P1e=["src"],Xh=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=Se(()=>Yp(e.attachment));return(n,i)=>(te(),We(Rk,null,{default:je(()=>[Y("a",{target:"_blank",href:t.value,referrerPolicy:W(Ak)(e.attachment)?"no-referrer":void 0},[Y("img",{src:t.value},null,8,P1e)],8,R1e)]),_:1}))}}),I1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},D1e=["src"],F1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},z1e=["src"],H1e=["id"],B1e=["for"],j1e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=Se(()=>Yp(e.reference)),n=Se(()=>Yp(e.actual)),i=Se(()=>Math.max(e.reference.width,e.actual.width)),o=Se(()=>Math.max(e.reference.height,e.actual.height)),l=Ke(50),u=mg();return(f,h)=>(te(),We(Rk,null,{default:je(()=>[Y("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Pt({"--split":`${l.value}%`,aspectRatio:`${i.value} / ${o.value}`,width:`${i.value}px`})},[Y("div",I1e,[Y("img",{src:t.value},null,8,D1e)]),Y("div",F1e,[Y("img",{src:n.value},null,8,z1e)]),h[1]||(h[1]=Y("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(Y("input",{id:W(u),"onUpdate:modelValue":h[0]||(h[0]=p=>l.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,H1e),[[y1,l.value]]),Y("output",{for:W(u),class:"sr-only"}," Showing "+Me(l.value)+"% reference, "+Me(100-l.value)+"% actual ",9,B1e)],4)]),_:1}))}}),W1e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=Se(()=>({diff:e.regression.attachments.find(n=>n.name==="diff"),reference:e.regression.attachments.find(n=>n.name==="reference"),actual:e.regression.attachments.find(n=>n.name==="actual")}));return(n,i)=>(te(),We(A1e,null,{title:je(()=>[...i[0]||(i[0]=[Qe(" Visual Regression ",-1)])]),message:je(()=>[Qe(Me(e.regression.message),1)]),default:je(()=>[Ne(L1e,null,{default:je(()=>[t.value.diff?(te(),We(Ou,{key:t.value.diff.path,title:"Diff"},{default:je(()=>[Ne(Xh,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference?(te(),We(Ou,{key:t.value.reference.path,title:"Reference"},{default:je(()=>[Ne(Xh,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.actual?(te(),We(Ou,{key:t.value.actual.path,title:"Actual"},{default:je(()=>[Ne(Xh,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference&&t.value.actual?(te(),We(Ou,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:je(()=>[Ne(j1e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Fe("",!0)]),_:1})]),_:1}))}}),q1e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},U1e=["onClick"],V1e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},G1e=tt({__name:"Artifacts",props:{test:{}},setup(e){const t=Se(()=>{const n=[];for(const i of e.test.artifacts)switch(i.type){case"internal:toMatchScreenshot":{i.kind==="visual-regression"&&n.push({artifact:i,component:W1e,props:{regression:i}});continue}}return n});return(n,i)=>{const o=ir("tooltip");return t.value.length?(te(),ge(nt,{key:0},[i[0]||(i[0]=Y("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ge(nt,null,xn(t.value,({artifact:l,component:u,props:f},h)=>(te(),ge("div",{key:l.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",q1e,[Y("div",null,[l.location&&l.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,l.location)},[Qe(Me(W(Pf)(l.location)),1)],8,U1e)),[[o,"Open in Editor",void 0,{bottom:!0}]]):l.location&&l.location.file!==e.test.file.filepath?(te(),ge("span",V1e,Me(W(Pf)(l.location)),1)):Fe("",!0)])]),(te(),We(sf(u),ci({ref_for:!0},f),null,16))]))),128))],64)):Fe("",!0)}}}),K1e={"h-full":"",class:"scrolls"},Y1e={key:0},X1e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},J1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Z1e=["innerHTML"],Q1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},eSe={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},tSe={class:"flex gap-2","overflow-hidden":""},nSe={class:"font-bold","ws-nowrap":"",truncate:""},rSe=["href","download"],iSe=["onClick"],oSe={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},sSe={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lSe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},aSe={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},cSe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},uSe=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=Se(()=>!t.test.result||!t.test.result.errors?.length?null:$_(Po.value,[t.test])[0]),i=new Set(["benchmark","typecheck"]),o=Se(()=>Object.entries(t.test.meta).filter(([l])=>!i.has(l)));return(l,u)=>{const f=ir("tooltip");return te(),ge("div",K1e,[n.value?(te(),ge("div",Y1e,[Y("div",X1e,[Ne(Nk,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(te(),ge("div",J1e,[Y("pre",{innerHTML:e.test.result.htmlError},null,8,Z1e)])):e.test.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(e.test.result.errors,(h,p)=>(te(),We(Mk,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:W(pt).root},null,8,["file-id","error","filename","root"]))),128)):Fe("",!0)])])):(te(),ge("div",Q1e," The test has passed without any errors ")),e.test.annotations.length?(te(),ge(nt,{key:2},[u[1]||(u[1]=Y("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ge(nt,null,xn(e.test.annotations,h=>(te(),ge("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",eSe,[Y("div",tSe,[Y("span",nSe,Me(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(Pl)(h.attachment),download:W(Ek)(h.message,h.attachment.contentType)},[...u[0]||(u[0]=[Y("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,rSe)):Fe("",!0)]),Y("div",null,[h.location&&h.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,h.location)},[Qe(Me(W(Pf)(h.location)),1)],8,iSe)),[[f,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(te(),ge("span",oSe,Me(W(Pf)(h.location)),1)):Fe("",!0)])]),Y("div",sSe,Me(h.message),1),Ne(T1e,{annotation:h},null,8,["annotation"])]))),128))],64)):Fe("",!0),Ne(G1e,{test:e.test},null,8,["test"]),o.value.length?(te(),ge(nt,{key:3},[u[2]||(u[2]=Y("h1",{"m-2":""}," Test Meta ",-1)),Y("div",lSe,[(te(!0),ge(nt,null,xn(o.value,([h,p])=>(te(),ge(nt,{key:h},[Y("div",aSe,Me(h),1),Y("pre",cSe,Me(p),1)],64))),128))])],64)):Fe("",!0)])}}}),fSe=Xi(uSe,[["__scopeId","data-v-da767a0b"]]),dSe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},hSe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},pSe={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},gSe={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},mSe={"op-50":"",truncate:""},vSe=["title"],ySe={class:"flex text-lg"},bSe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},wSe={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},xSe={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},SSe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},_Se=["flex-1"],$w=tt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),n=Ke(!1),i=Ke(!1),o=Ke(!1),l=Ke(void 0),u=Ke(!0),f=Se(()=>Fi.value?ft.state.idMap.get(Fi.value):void 0),h=Se(()=>{const I=Xt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=Se(()=>Xt.value&&Xg(Xt.value)),g=Se(()=>!!Xt.value?.meta?.typecheck);function v(){const I=Xt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function y(I){I==="graph"&&(i.value=!0),yn.value=I}const w=Se(()=>j_.value?.reduce((I,{size:q})=>I+q,0)??0);function $(I){n.value=I}const _=/[/\\]node_modules[/\\]/;async function C(I=!1){if(!(o.value||h.value?.filepath===l.value&&!I)){o.value=!0,await At();try{const q=h.value;if(!q){o.value=!1;return}if(I||!l.value||q.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let X=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!gr);u.value&&(pr&&(X=typeof window.structuredClone<"u"?window.structuredClone(X):aP(X)),X.inlined=X.inlined.filter(ie=>!_.test(ie)),X.externalized=X.externalized.filter(ie=>!_.test(ie))),t.value=vxe(X,q.filepath),l.value=q.filepath}y("graph")}finally{await new Promise(q=>setTimeout(q,100)),o.value=!1}}}Y1(()=>[h.value,yn.value,u.value],([,I,q],X)=>{I==="graph"&&C(X&&q!==X[2])},{debounce:100,immediate:!0});const E=Se(()=>{const I=Xt.value?.file.projectName||"";return $e.colors.get(I)||Uu(Xt.value?.file.projectName)}),L=Se(()=>m_(E.value)),D=Se(()=>{const I=Fi.value;if(!I)return Xt.value?.name;const q=[];let X=ft.state.idMap.get(I);for(;X;)q.push(X.name),X=X.suite;return q.reverse().join(" > ")}),N=Se(()=>{const I=Fi.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(X=>({name:X,description:CP.value[X]?.description,bg:Uu(X,!0),border:Uu(X),text:"white"})):[]});return(I,q)=>{const X=ir("tooltip");return W(Xt)?(te(),ge("div",dSe,[Y("div",null,[Y("div",hSe,[Ne(Tk,{state:W(Xt).result?.state,mode:W(Xt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?st((te(),ge("div",pSe,null,512)),[[X,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),W(Xt)?.file.projectName?(te(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Pt({backgroundColor:E.value,color:L.value}),"cursor-default":""},Me(W(Xt).file.projectName),5)):Fe("",!0),Y("div",gSe,[Y("span",mSe,Me(D.value),1),(te(!0),ge(nt,null,xn(N.value,ie=>st((te(),ge("span",{key:ie.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Pt({backgroundColor:ie.bg,color:ie.text,border:`1px solid ${ie.border}`}),title:ie.description,"cursor-default":"",flex:"","items-center":""},[Qe(Me(ie.name),1)],12,vSe)),[[X,ie.description,void 0,{bottom:!0}]])),128))]),Y("div",ySe,[W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Xt)?.filepath,onClick:v},null,8,["disabled"])),[[X,"Open in editor",void 0,{bottom:!0}]]),W(gr)?(te(),We(hd,{key:1})):Fe("",!0)])]),Y("div",bSe,[Y("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=ie=>y(null))},[...q[5]||(q[5]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="graph"}]),onClick:q[1]||(q[1]=ie=>y("graph"))},[o.value?(te(),ge("span",wSe)):(te(),ge("span",xSe)),q[6]||(q[6]=Qe(" Module Graph ",-1))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="editor"}]),onClick:q[2]||(q[2]=ie=>y("editor"))},[q[7]||(q[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Me(n.value?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="console",op20:W(yn)!=="console"&&w.value===0}]),onClick:q[3]||(q[3]=ie=>y("console"))},[q[8]||(q[8]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Me(w.value)+") ",1)],2)])]),Y("div",SSe,[i.value?(te(),ge("div",{key:0,"flex-1":W(yn)==="graph"&&""},[st(Ne(e1e,{modelValue:u.value,"onUpdate:modelValue":q[4]||(q[4]=ie=>u.value=ie),graph:t.value,"data-testid":"graph","project-name":W(Xt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Co,W(yn)==="graph"&&!o.value]])],8,_Se)):Fe("",!0),W(yn)==="editor"?(te(),We(Lxe,{key:W(Xt).id,file:W(Xt),"data-testid":"editor",onDraft:$},null,8,["file"])):W(yn)==="console"?(te(),We($xe,{key:2,file:W(Xt),"data-testid":"console"},null,8,["file"])):!W(yn)&&!f.value&&W(Xt)?(te(),We(S1e,{key:3,file:W(Xt),"data-testid":"report"},null,8,["file"])):!W(yn)&&f.value?(te(),We(fSe,{key:4,test:f.value,"data-testid":"report"},null,8,["test"])):Fe("",!0)])])):Fe("",!0)}}}),kSe=""+new URL("../favicon.svg",import.meta.url).href;function TSe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Zu;function Xp(){Xp.init||(Xp.init=!0,Zu=TSe()!==-1)}var vd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Xp(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Zu&&this.$el.appendChild(e),e.data="about:blank",Zu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const CSe=Ex();Tx("data-v-b329ee4c");const ESe={class:"resize-observer",tabindex:"-1"};Cx();const ASe=CSe((e,t,n,i,o,l)=>(te(),We("div",ESe)));vd.render=ASe;vd.__scopeId="data-v-b329ee4c";vd.__file="src/components/ResizeObserver.vue";function Qu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qu=function(t){return typeof t}:Qu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function $Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function MSe(e,t,n){return t&&NSe(e.prototype,t),e}function Nw(e){return LSe(e)||OSe(e)||RSe(e)||PSe()}function LSe(e){if(Array.isArray(e))return Jp(e)}function OSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function RSe(e,t){if(e){if(typeof e=="string")return Jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jp(e,t)}}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function PSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ISe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function DSe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===o)){var y=n.leading;typeof y=="function"&&(y=y(h,o)),(!i||h!==o)&&y&&e.apply(void 0,[h].concat(Nw(l))),o=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Nw(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function Pk(e,t){if(e===t)return!0;if(Qu(e)==="object"){for(var n in e)if(!Pk(e[n],t[n]))return!1;return!0}return!1}var FSe=(function(){function e(t,n,i){$Se(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return MSe(e,[{key:"createObserver",value:function(n,i){var o=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=ISe(n),this.callback=function(f,h){o.options.callback(f,h),f&&o.options.once&&(o.frozen=!0,o.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=DSe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(o.callback){var g=h.isIntersecting&&h.intersectionRatio>=o.threshold;if(g===o.oldResult)return;o.oldResult=g,o.callback(g,h)}},this.options.intersection),At(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ik(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new FSe(e,i,n);e._vue_visibilityState=o}}function zSe(e,t,n){var i=t.value,o=t.oldValue;if(!Pk(i,o)){var l=e._vue_visibilityState;if(!i){Dk(e);return}l?l.createObserver(i,n):Ik(e,{value:i},n)}}function Dk(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var HSe={beforeMount:Ik,updated:zSe,unmounted:Dk},BSe={itemsLimit:1e3},jSe=/(auto|scroll)/;function Fk(e,t){return e.parentNode===null?t:Fk(e.parentNode,t.concat([e]))}var Jh=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},WSe=function(t){return Jh(t,"overflow")+Jh(t,"overflow-y")+Jh(t,"overflow-x")},qSe=function(t){return jSe.test(WSe(t))};function Mw(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fk(e.parentNode,[]),n=0;n<t.length;n+=1)if(qSe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}var USe={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function VSe(){return this.items.length&&Zp(this.items[0])!=="object"}var Qp=!1;if(typeof window<"u"){Qp=!1;try{var GSe=Object.defineProperty({},"passive",{get:function(){Qp=!0}});window.addEventListener("test",null,GSe)}catch{}}let KSe=0;var vm={name:"RecycleScroller",components:{ResizeObserver:vd},directives:{ObserveVisibility:HSe},props:{...USe,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,i=this.minItemSize;let o=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<o&&(o=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=o,e}return[]},simpleArray:VSe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,o=t.length;i<o;i++)n[t[i][e]]=i;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const l=Vf({id:KSe++,index:t,used:!0,key:i,type:o}),u=hg({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,$=this.itemIndexByKey;let _,C,E,L,D;if(!p)_=C=L=D=E=0;else if(this.$_prerender)_=L=0,C=D=Math.min(this.prerender,h.length),E=null;else{const U=this.getScroll();if(t){let O=U.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<l||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const K=this.buffer;U.start-=K,U.end+=K;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,U.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;U.end+=O}if(n===null){let O,k=0,S=p-1,R=~~(p/2),B;do B=R,O=g[R].accumulator,O<U.start?k=R:R<p-1&&g[R+1].accumulator>U.start&&(S=R),R=~~((k+S)/2);while(R!==B);for(R<0&&(R=0),_=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<U.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),L=_;L<p&&P+g[L].accumulator<U.start;L++);for(D=L;D<p&&P+g[D].accumulator<U.end;D++);}else{_=~~(U.start/n*i);const O=_%i;_-=O,C=Math.ceil(U.end/n*i),L=Math.max(0,Math.floor((U.start-P)/n*i)),D=Math.floor((U.end-P)/n*i),_<0&&(_=0),C>p&&(C=p),L<0&&(L=0),D>p&&(D=p),E=Math.ceil(p/i)*n}}C-_>BSe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let N;const I=_<=this.$_endIndex&&C>=this.$_startIndex;if(I)for(let U=0,K=w.length;U<K;U++)N=w[U],N.nr.used&&(e&&(N.nr.index=$[N.item[f]]),(N.nr.index==null||N.nr.index<_||N.nr.index>=C)&&this.unuseView(N));const q=I?null:new Map;let X,ie,J;for(let U=_;U<C;U++){X=h[U];const K=f?X[f]:X;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${f}')`);if(N=v.get(K),!n&&!g[U].size){N&&this.unuseView(N);continue}ie=X[u];let P=y.get(ie),O=!1;if(!N)I?P&&P.length?N=P.pop():N=this.addView(w,U,X,K,ie):(J=q.get(ie)||0,(!P||J>=P.length)&&(N=this.addView(w,U,X,K,ie),this.unuseView(N,!0),P=y.get(ie)),N=P[J],q.set(ie,J+1)),v.delete(N.nr.key),N.nr.used=!0,N.nr.index=U,N.nr.key=K,N.nr.type=ie,v.set(K,N),O=!0;else if(!N.nr.used&&(N.nr.used=!0,O=!0,P)){const k=P.indexOf(N);k!==-1&&P.splice(k,1)}N.item=X,O&&(U===h.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),n===null?(N.position=g[U-1].accumulator,N.offset=0):(N.position=Math.floor(U/i)*n,N.offset=U%i*o)}return this.$_startIndex=_,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",_,C,L,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Mw(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),l=n?o.height:o.width;let u=-(n?o.top:o.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Qp?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const l=Mw(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,o=e+u+p}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const YSe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},XSe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function JSe(e,t,n,i,o,l){const u=ys("ResizeObserver"),f=ir("observe-visibility");return st((te(),ge("div",{class:ot(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(te(),ge("div",YSe,[Bt(e.$slots,"before")],512)):Fe("v-if",!0),(te(),We(sf(n.listTag),{ref:"wrapper",style:Pt({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:je(()=>[(te(!0),ge(nt,null,xn(o.pool,h=>(te(),We(sf(n.itemTag),ci({key:h.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===h.nr.key}]]},cA(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=h.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:je(()=>[Bt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Bt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ge("div",XSe,[Bt(e.$slots,"after")],512)):Fe("v-if",!0),Ne(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}vm.render=JSe;vm.__file="src/components/RecycleScroller.vue";function ZSe(e,t,n){const i=Se(()=>Mp.value?!1:!Ze.onlyTests),o=Se(()=>Hr.value===""),l=Ke(Hr.value),u=Se(()=>Fr.value==="default");yt(()=>Np.value,w=>{!w&&(Fr.value==="asc"||Fr.value==="desc")&&(Fr.value="default")}),Y1(()=>Hr.value,w=>{l.value=w?.trim()??""},{debounce:256});function f(w){Hr.value="",w&&e.value?.focus()}function h(w){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.slow=!1,Ze.onlyTests=!1,w&&e.value?.focus()}function p(w){ml.value=Bl,w&&t.value?.focus()}function g(w){Fr.value="default",w&&n.value?.focus()}function v(){h(!1),f(!0),p(!1),g(!1)}function y(w,$,_,C,E,L,D,N){Ml.value&&(Ht.value.search=w?.trim()??"",Ht.value.failed=$,Ht.value.success=_,Ht.value.skipped=C,Ht.value.slow=E,Ht.value.onlyTests=L,Ht.value.project=D,Ht.value.projectSort=N==="default"?void 0:N)}return yt(()=>[l.value,Ze.failed,Ze.success,Ze.skipped,Ze.slow,Ze.onlyTests,ml.value,Fr.value],([w,$,_,C,E,L,D,N])=>{y(w,$,_,C,E,L,D,N),$e.filterNodes()},{flush:"post"}),yt(()=>Kr.value.length,w=>{w&&(Ht.value.expandAll=void 0)},{flush:"post"}),{initialized:Ml,filter:Ze,search:Hr,disableFilter:i,isFiltered:y_,isFilteredByStatus:Mp,disableClearSearch:o,clearAll:v,clearSearch:f,clearFilter:h,filteredFiles:fd,testsTotal:yP,uiEntries:rr,searchMatcher:vo,enableProjects:Np,disableClearProjects:pP,currentProject:ml,currentProjectName:Gg,clearProject:p,projectSort:Fr,clearProjectSort:g,disableClearProjectSort:u}}const QSe=["disabled"],e_e={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},Ca=tt({__name:"FilterStatus",props:Xa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue");function n(){e.disabled||(t.value=!t.value)}return(i,o)=>(te(),ge("label",ci({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},i.$attrs,{onClick:Fu(n,["prevent"])}),[Y("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,QSe),[[b1,t.value]]),Y("span",e_e,Me(e.label),1)],16))}}),t_e=["open"],n_e=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(n,i)=>(te(),ge("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Bt(n.$slots,"summary",{open:t.value}),i[2]||(i[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Bt(n.$slots,"default")],40,t_e))}}),r_e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},i_e=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,n)=>(te(),ge("button",r_e,[Y("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),o_e=["aria-label","data-current"],s_e={key:1,"w-4":""},l_e={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},a_e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},c_e={"text-sm":"",truncate:"","font-light":""},u_e=["innerHTML"],f_e={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},d_e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},h_e={key:1},p_e=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>ft.state.idMap.get(e.taskId)),n=Se(()=>{if(pr)return!1;const C=t.value;return C&&Xg(C)});function i(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?$e.collapseNode(e.taskId):$e.expandNode(e.taskId)}async function o(C){e.onItemClick?.(C),$a.value&&(Ef.value=!0,await At()),e.type==="file"?await im([C.file]):await gme(C)}function l(C){return ft.rpc.updateSnapshot(C.file)}const u=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=Se(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Se(()=>pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>v_(e.name)),g=Se(()=>{const C=vP.value,E=p.value;return C?E.replace(C,L=>`<span class="highlight">${L}</span>`):E}),v=Se(()=>e.type!=="file"&&e.disableTaskLocation),y=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>v.value?"color-red5 dark:color-#f43f5e":null);function $(){const C=t.value;e.type==="file"?e.onItemClick?.(C):L_(C)}const _=Se(()=>m_(e.projectNameColor));return(C,E)=>{const L=ir("tooltip");return t.value?(te(),ge("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Pt(f.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:E[2]||(E[2]=D=>i())},[e.indent>0?(te(!0),ge(nt,{key:0},xn(u.value,D=>(te(),ge("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Fe("",!0),e.type==="file"||e.type==="suite"?(te(),ge("div",s_e,[Y("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Fe("",!0),Ne(Tk,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",l_e,[e.type==="file"&&e.typecheck?st((te(),ge("div",a_e,null,512)),[[L,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),Y("span",c_e,[e.type==="file"&&e.projectName?(te(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Pt({backgroundColor:e.projectNameColor,color:_.value})},Me(e.projectName),5)):Fe("",!0),Y("span",{class:ot(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:g.value},null,10,u_e)]),typeof e.duration=="number"?(te(),ge("span",{key:1,text:"xs",class:ot(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Me(e.duration>0?e.duration:"< 1")+"ms ",3)):Fe("",!0)]),Y("div",f_e,[!W(pr)&&n.value&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(i_e,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Fu(D=>l(t.value),["prevent","stop"]))},null,512)),[[L,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),Ne(W(wo),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:je(()=>[v.value?(te(),ge("div",d_e,[E[5]||(E[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[Qe(Me(y.value)+": this feature is not available, you have disabled ",1),E[3]||(E[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=Qe(" in your configuration file.",-1))]),E[6]||(E[6]=Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(te(),ge("div",h_e,Me(y.value),1))]),default:je(()=>[Ne(Tt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fu($,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:W(pt).api?.allowExec===!1,onClick:E[1]||(E[1]=Fu(D=>o(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[L,h.value,void 0,{bottom:!0}]])])],12,o_e)):Fe("",!0)}}}),g_e=Xi(p_e,[["__scopeId","data-v-7f38aded"]]),m_e={h:"full",flex:"~ col"},v_e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},y_e={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},b_e={class:"relative flex-1"},w_e=["value"],x_e=["value"],S_e={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},__e={class:"relative flex-1"},k_e={key:0,value:"asc",class:"text-base bg-base"},T_e={key:1,value:"desc",class:"text-base bg-base"},C_e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},E_e=["op"],A_e={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},$_e={"min-w-full":"",flex:"~ gap-2 items-center"},N_e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},M_e={"text-red-700":"","dark:text-red-500":""},L_e={"text-yellow-700":"","dark:text-yellow-500":""},O_e={"text-green-700":"","dark:text-green-500":""},R_e={class:"text-purple-700 dark:text-purple-400"},P_e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},I_e={key:0,"text-red":"","text-center":""},D_e={key:1,op30:""},F_e=["disabled"],z_e=["disabled"],H_e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},B_e=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=Se(()=>pt.value.includeTaskLocation),o=Se(()=>{const O=pt.value.slowTestThreshold;return typeof O=="number"?` (>${O}ms)`:""}),l=Ke(),u=Ke(),f=Ke(),{initialized:h,filter:p,search:g,disableFilter:v,isFiltered:y,isFilteredByStatus:w,disableClearSearch:$,clearAll:_,clearSearch:C,clearFilter:E,filteredFiles:L,testsTotal:D,uiEntries:N,enableProjects:I,disableClearProjects:q,currentProject:X,currentProjectName:ie,clearProject:J,clearProjectSort:U,disableClearProjectSort:K,searchMatcher:P}=ZSe(l,u,f);return(O,k)=>{const S=ir("tooltip");return te(),ge("div",m_e,[Y("div",null,[Y("div",v_e,[Bt(O.$slots,"header",{filteredFiles:W(y)||W(w)?W(L):void 0})]),W(I)?(te(),ge("div",y_e,[k[19]||(k[19]=Y("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),k[20]||(k[20]=Y("label",{for:"project-select","text-sm":""}," Projects ",-1)),Y("div",b_e,[st(Y("select",{id:"project-select",ref_key:"selectProjectRef",ref:u,"onUpdate:modelValue":k[0]||(k[0]=R=>Lt(X)?X.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[Y("option",{value:W(Bl),class:"text-base bg-base"}," All Projects ",8,w_e),(te(!0),ge(nt,null,xn(W(rm),R=>(te(),ge("option",{key:R,value:R,class:"text-base bg-base"},Me(R),9,x_e))),128))],512),[[r0,W(X)]]),k[18]||(k[18]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(q),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:k[1]||(k[1]=R=>W(J)(!0))},null,8,["disabled"]),[[S,"Clear project filter",void 0,{bottom:!0}]])])):Fe("",!0),Y("div",S_e,[k[25]||(k[25]=Y("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),k[26]||(k[26]=Y("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),Y("div",__e,[st(Y("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":k[2]||(k[2]=R=>Lt(Fr)?Fr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[k[21]||(k[21]=Y("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),k[22]||(k[22]=Y("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),k[23]||(k[23]=Y("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),W(I)?(te(),ge("option",k_e," Project A-Z ")):Fe("",!0),W(I)?(te(),ge("option",T_e," Project Z-A ")):Fe("",!0)],512),[[r0,W(Fr)]]),k[24]||(k[24]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:k[3]||(k[3]=R=>W(U)(!0))},null,8,["disabled"]),[[S,"Reset sort",void 0,{bottom:!0}]])]),Y("div",C_e,[k[27]||(k[27]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(Y("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":k[4]||(k[4]=R=>Lt(g)?g.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(g).length?"100":"50",onKeydown:[k[5]||(k[5]=gp(R=>W(C)(!1),["esc"])),k[6]||(k[6]=gp(R=>n("run",W(y)||W(w)?W(L):void 0),["enter"]))]},null,40,E_e),[[y1,W(g)]]),st(Ne(Tt,{disabled:W($),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:k[7]||(k[7]=R=>W(C)(!0))},null,8,["disabled"]),[[S,"Clear search",void 0,{bottom:!0}]])]),Y("div",A_e,[Y("div",$_e,[k[28]||(k[28]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),k[29]||(k[29]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ne(Tt,{disabled:W(v),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:k[8]||(k[8]=R=>W(E)(!1))},null,8,["disabled"]),[[S,"Clear Filter",void 0,{bottom:!0}]])]),Ne(Ca,{modelValue:W(p).failed,"onUpdate:modelValue":k[9]||(k[9]=R=>W(p).failed=R),label:"Fail"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).success,"onUpdate:modelValue":k[10]||(k[10]=R=>W(p).success=R),label:"Pass"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).skipped,"onUpdate:modelValue":k[11]||(k[11]=R=>W(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).onlyTests,"onUpdate:modelValue":k[12]||(k[12]=R=>W(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).slow,"onUpdate:modelValue":k[13]||(k[13]=R=>W(p).slow=R),label:`Slow${o.value}`},null,8,["modelValue","label"])])]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:k[17]||(k[17]=(...R)=>W(T0)&&W(T0)(...R))},[Ne(n_e,null,aA({default:je(()=>[(W(y)||W(w)||W(ie))&&W(N).length===0?(te(),ge(nt,{key:0},[W(h)?(te(),ge("div",P_e,[W(P).error?(te(),ge("div",I_e,Me(W(P).error),1)):(te(),ge("div",D_e," No matched test ")),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W($)?null:"hover:op100"),disabled:W($),onClickPassive:k[14]||(k[14]=R=>W(C)(!0))}," Clear Search ",42,F_e),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(v)?null:"hover:op100"),disabled:W(v),onClickPassive:k[15]||(k[15]=R=>W(E)(!0))}," Clear Filter ",42,z_e),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:k[16]||(k[16]=(...R)=>W(_)&&W(_)(...R))}," Clear All ",32)])):(te(),ge("div",H_e,[...k[32]||(k[32]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(vm),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(N),buffer:100},{default:je(({item:R})=>[Ne(g_e,{class:ot(["h-28px m-0 p-0",W(Fi)===R.id||!W(Fi)&&W(Io)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:W(Io)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!i.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(h)?{name:"summary",fn:je(()=>[Y("div",N_e,[Y("span",M_e," FAIL ("+Me(W(D).failed)+") ",1),k[30]||(k[30]=Y("span",null,"/",-1)),Y("span",L_e," RUNNING ("+Me(W(D).running)+") ",1),Y("span",O_e," PASS ("+Me(W(D).success)+") ",1),k[31]||(k[31]=Y("span",null,"/",-1)),Y("span",R_e," SKIP ("+Me(W(p).onlyTests?W(D).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),j_e={class:"flex text-lg"},W_e=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const n=Se(()=>Po.value?"light":"dark");async function i(f){pt.value.api?.allowExec!==!1&&($a.value&&(Ef.value=!0,await At(),Do.value&&(Af(!0),await At())),f?.length?await im(f):await hme())}function o(){$e.collapseAllNodes()}function l(){$e.expandAllNodes()}function u(f){return pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":f?f.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(f,h)=>{const p=ir("tooltip");return te(),We(B_e,{border:"r base","on-item-click":W(Dge),nested:!0,onRun:i},{header:je(({filteredFiles:g})=>[h[8]||(h[8]=Y("img",{"w-6":"","h-6":"",src:kSe,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",j_e,[st(Ne(Tt,{title:"Collapse tests",disabled:!W(Ml),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>o())},null,8,["disabled"]),[[Co,!W(Eb)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Ne(Tt,{disabled:!W(Ml),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>l())},null,8,["disabled"]),[[Co,W(Eb)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(Af)(!0))},null,512),[[Co,W(Pp)&&!W($a)||!W(vl)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Pp)&&!W($a)?(te(),We(W(wo),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:je(()=>[...h[6]||(h[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:je(()=>[h[7]||(h[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Fe("",!0),W($a)?st((te(),We(Tt,{key:1,disabled:W(Ef),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(Fge)())},null,8,["disabled"])),[[Co,!W(Do)],[p,"Coverage",void 0,{bottom:!0}]]):Fe("",!0),W($e).summary.failedSnapshot&&!W(pr)&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(Tt,{key:2,icon:"i-carbon:result-old",disabled:!W($e).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W($e).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),W(pr)?Fe("",!0):st((te(),We(Tt,{key:3,disabled:g?.length===0||!W(pt).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>i(g)},null,8,["disabled","onClick"])),[[p,u(g),void 0,{bottom:!0}]]),st(Ne(Tt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W(uP)())},null,512),[[p,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),q_e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},U_e=tt({__name:"ProgressBar",setup(e){const{width:t}=rS(),n=Se(()=>[$e.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ol.value&&"in-progress"].filter(Boolean).join(" ")),i=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesSuccess/f:0}),o=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesFailed/f:0}),l=Se(()=>$e.summary.files-$e.summary.filesFailed-$e.summary.filesSuccess),u=Se(()=>{const f=$e.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(te(),ge("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(n.value)},[Y("div",q_e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:ot(n.value),style:Pt(`width: ${o.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${o.value}px; width: ${i.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${i.value+o.value}px; width: ${u.value}px;`)},"   ",6)])],2))}}),V_e=Xi(U_e,[["__scopeId","data-v-d5dc96ee"]]),G_e={"h-screen":"","w-screen":"",overflow:"hidden"},K_e={key:1,flex:"~ col","h-full":""},Y_e={"h-full":"","overflow-hidden":""},X_e=tt({__name:"index",setup(e){const t=Ige(),n=yu(({panes:g})=>{h(),f(g)},0),i=yu(({panes:g})=>{g.forEach((v,y)=>{yl.value[y]=v.size}),u(g),p()},0),o=yu(({panes:g})=>{g.forEach((v,y)=>{ms.value[y]=v.size}),f(g),p()},0),l=yu(({panes:g})=>{u(g),h()},0);function u(g){fn.navigation=g[0].size,g[1]&&(fn.details.size=g[1].size)}function f(g){fn.details.browser=g[0].size,g[1]&&(fn.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ge(nt,null,[Ne(V_e),Y("div",G_e,[Ne(W(M0),{class:"pt-4px",onResized:W(i),onResize:W(l)},{default:je(()=>[Ne(W(xu),{size:W(yl)[0]},{default:je(()=>[Ne(W_e)]),_:1},8,["size"]),Ne(W(xu),{size:W(yl)[1]},{default:je(()=>[W(gr)?(te(),ge("div",K_e,[Ne(W(M0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(Tn)==="bottom",class:ot(W(Tn)==="bottom"&&!W(Bi)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(n),onResized:W(o)},{default:je(()=>[Ne(W(xu),{size:W(ms)[0],"min-size":"10"},{default:je(()=>[v[0]||(Tl(-1,!0),(v[0]=Ne(Cme)).cacheIndex=0,Tl(1),v[0])]),_:1},8,["size"]),W(Bi)?(te(),We(W(xu),{key:0,size:W(ms)[1],"min-size":"10"},{default:je(()=>[Y("div",Y_e,[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))])]),_:1},8,["size"])):Fe("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(Tn)==="bottom"&&!W(Bi)?(te(),We(Ame,{key:0})):Fe("",!0)])):(te(),We(i$,{key:"ui-detail"},{default:je(()=>[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Mme)],64))}}),J_e=[{name:"index",path:"/",component:X_e,props:!0}];/*!
83
+ * vue-router v5.0.3
84
+ * (c) 2026 Eduardo San Martin Morote
85
+ * @license MIT
86
+ */const il=typeof document<"u";function zk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Z_e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zk(e.default)}const _t=Object.assign;function Zh(e,t){const n={};for(const i in t){const o=t[i];n[i]=Yr(o)?o.map(e):e(o)}return n}const Ua=()=>{},Yr=Array.isArray;function Lw(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}let Ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Hk=Symbol("");Ut.MATCHER_NOT_FOUND+"",Ut.NAVIGATION_GUARD_REDIRECT+"",Ut.NAVIGATION_ABORTED+"",Ut.NAVIGATION_CANCELLED+"",Ut.NAVIGATION_DUPLICATED+"";function Il(e,t){return _t(new Error,{type:e,[Hk]:!0},t)}function $i(e,t){return e instanceof Error&&Hk in e&&(t==null||!!(e.type&t))}const Q_e=["params","query","hash"];function eke(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Q_e)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const tke=Symbol(""),Ow=Symbol(""),ym=Symbol(""),Bk=Symbol(""),eg=Symbol("");/*!
87
+ * vue-router v5.0.3
88
+ * (c) 2026 Eduardo San Martin Morote
89
+ * @license MIT
90
+ */const jk=/#/g,nke=/&/g,rke=/\//g,ike=/=/g,oke=/\?/g,Wk=/\+/g,ske=/%5B/g,lke=/%5D/g,qk=/%5E/g,ake=/%60/g,Uk=/%7B/g,cke=/%7C/g,Vk=/%7D/g,uke=/%20/g;function bm(e){return e==null?"":encodeURI(""+e).replace(cke,"|").replace(ske,"[").replace(lke,"]")}function fke(e){return bm(e).replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function tg(e){return bm(e).replace(Wk,"%2B").replace(uke,"+").replace(jk,"%23").replace(nke,"%26").replace(ake,"`").replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function dke(e){return tg(e).replace(ike,"%3D")}function hke(e){return bm(e).replace(jk,"%23").replace(oke,"%3F")}function pke(e){return hke(e).replace(rke,"%2F")}function yc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const gke=/\/$/,mke=e=>e.replace(gke,"");function Qh(e,t,n="/"){let i,o={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return h=f>=0&&h>f?-1:h,h>=0&&(i=t.slice(0,h),l=t.slice(h,f>0?f:t.length),o=e(l.slice(1))),f>=0&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=wke(i??t,n),{fullPath:i+l+u,path:i,query:o,hash:yc(u)}}function vke(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rw(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yke(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Dl(t.matched[i],n.matched[o])&&Gk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bke(e[n],t[n]))return!1;return!0}function bke(e,t){return Yr(e)?Pw(e,t):Yr(t)?Pw(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Pw(e,t){return Yr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function wke(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ng=(function(e){return e.pop="pop",e.push="push",e})({}),ep=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function xke(e){if(!e)if(il){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mke(e)}const Ske=/^[^#]+#/;function _ke(e,t){return e.replace(Ske,"#")+t}function kke(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yd=()=>({left:window.scrollX,top:window.scrollY});function Tke(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=kke(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Iw(e,t){return(history.state?history.state.position-t:-1)+e}const rg=new Map;function Cke(e,t){rg.set(e,t)}function Eke(e){const t=rg.get(e);return rg.delete(e),t}function Ake(e){return typeof e=="string"||e&&typeof e=="object"}function Kk(e){return typeof e=="string"||typeof e=="symbol"}function $ke(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace(Wk," "),l=o.indexOf("="),u=yc(l<0?o:o.slice(0,l)),f=l<0?null:yc(o.slice(l+1));if(u in t){let h=t[u];Yr(h)||(h=t[u]=[h]),h.push(f)}else t[u]=f}return t}function Dw(e){let t="";for(let n in e){const i=e[n];if(n=dke(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Yr(i)?i.map(o=>o&&tg(o)):[i&&tg(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nke(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}function Ea(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ko(e,t,n,i,o,l=u=>u()){const u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Il(Ut.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?h(y):Ake(y)?h(Il(Ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[o]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[o],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function tp(e,t,n,i,o=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(zk(h)){const p=(h.__vccOpts||h)[t];p&&l.push(ko(p,n,i,u,f,o))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=Z_e(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const y=(v.__vccOpts||v)[t];return y&&ko(y,n,i,u,f,o)()}))}}return l}function Mke(e,t){const n=[],i=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>Dl(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>Dl(p,h))||o.push(h))}return[n,i,o]}/*!
91
+ * vue-router v5.0.3
92
+ * (c) 2026 Eduardo San Martin Morote
93
+ * @license MIT
94
+ */let Lke=()=>location.protocol+"//"+location.host;function Yk(e,t){const{pathname:n,search:i,hash:o}=t,l=e.indexOf("#");if(l>-1){let u=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(u);return f[0]!=="/"&&(f="/"+f),Rw(f,"")}return Rw(n,e)+i+o}function Oke(e,t,n,i){let o=[],l=[],u=null;const f=({state:y})=>{const w=Yk(e,location),$=n.value,_=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===$){u=null;return}C=_?y.position-_.position:0}else i(w);o.forEach(E=>{E(n.value,$,{delta:C,type:ng.pop,direction:C?C>0?ep.forward:ep.back:ep.unknown})})};function h(){u=n.value}function p(y){o.push(y);const w=()=>{const $=o.indexOf(y);$>-1&&o.splice($,1)};return l.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(_t({},y.state,{scroll:yd()}),"")}}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",f),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function Fw(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?yd():null}}function Rke(e){const{history:t,location:n}=window,i={value:Yk(e,n)},o={value:t.state};o.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Lke()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),o.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){l(h,_t({},t.state,Fw(o.value.back,h,o.value.forward,!0),p,{position:o.value.position}),!0),i.value=h}function f(h,p){const g=_t({},o.value,t.state,{forward:h,scroll:yd()});l(g.current,g,!0),l(h,_t({},Fw(i.value,h,null),{position:g.position+1},p),!1),i.value=h}return{location:i,state:o,push:f,replace:u}}function Pke(e){e=xke(e);const t=Rke(e),n=Oke(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const o=_t({location:"",base:e,go:i,createHref:_ke.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Ike(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Pke(e)}let ds=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var an=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(an||{});const Dke={type:ds.Static,value:""},Fke=/[a-zA-Z0-9_]/;function zke(e){if(!e)return[[]];if(e==="/")return[[Dke]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=an.Static,i=n;const o=[];let l;function u(){l&&o.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===an.Static?l.push({type:ds.Static,value:p}):n===an.Param||n===an.ParamRegExp||n===an.ParamRegExpEnd?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:ds.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==an.ParamRegExp){i=n,n=an.EscapeNext;continue}switch(n){case an.Static:h==="/"?(p&&v(),u()):h===":"?(v(),n=an.Param):y();break;case an.EscapeNext:y(),n=i;break;case an.Param:h==="("?n=an.ParamRegExp:Fke.test(h)?y():(v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case an.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=an.ParamRegExpEnd:g+=h;break;case an.ParamRegExpEnd:v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===an.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),o}const zw="[^/]+?",Hke={sensitive:!1,strict:!1,start:!0,end:!0};var zn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(zn||{});const Bke=/[.+*?^${}()[\]/\\]/g;function jke(e,t){const n=_t({},Hke,t),i=[];let o=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[zn.Root];n.strict&&!p.length&&(o+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=zn.Segment+(n.sensitive?zn.BonusCaseSensitive:0);if(y.type===ds.Static)v||(o+="/"),o+=y.value.replace(Bke,"\\$&"),w+=zn.Static;else if(y.type===ds.Param){const{value:$,repeatable:_,optional:C,regexp:E}=y;l.push({name:$,repeatable:_,optional:C});const L=E||zw;if(L!==zw){w+=zn.BonusCustomRegExp;try{new RegExp(`(${L})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${$}" (${L}): `+N.message)}}let D=_?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;v||(D=C&&p.length<2?`(?:/${D})`:"/"+D),C&&(D+="?"),o+=D,w+=zn.Dynamic,C&&(w+=zn.BonusOptional),_&&(w+=zn.BonusRepeatable),L===".*"&&(w+=zn.BonusWildcard)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=zn.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const u=new RegExp(o,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",$=l[y-1];v[$.name]=w&&$.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===ds.Static)g+=w.value;else if(w.type===ds.Param){const{value:$,repeatable:_,optional:C}=w,E=$ in p?p[$]:"";if(Yr(E)&&!_)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const L=Yr(E)?E.join("/"):E;if(!L)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${$}"`);g+=L}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function Wke(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===zn.Static+zn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===zn.Static+zn.Segment?1:-1:0}function Xk(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const l=Wke(i[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-i.length)===1){if(Hw(i))return 1;if(Hw(o))return-1}return o.length-i.length}function Hw(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qke={strict:!1,end:!0,sensitive:!1};function Uke(e,t,n){const i=jke(zke(e.path),n),o=_t(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Vke(e,t){const n=[],i=new Map;t=Lw(qke,t);function o(v){return i.get(v)}function l(v,y,w){const $=!w,_=jw(v);_.aliasOf=w&&w.record;const C=Lw(t,v),E=[_];if("alias"in v){const N=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of N)E.push(jw(_t({},_,{components:w?w.record.components:_.components,path:I,aliasOf:w?w.record:_})))}let L,D;for(const N of E){const{path:I}=N;if(y&&I[0]!=="/"){const q=y.record.path,X=q[q.length-1]==="/"?"":"/";N.path=y.record.path+(I&&X+I)}if(L=Uke(N,y,C),w?w.alias.push(L):(D=D||L,D!==L&&D.alias.push(L),$&&v.name&&!Ww(L)&&u(v.name)),Jk(L)&&h(L),_.children){const q=_.children;for(let X=0;X<q.length;X++)l(q[X],L,w&&w.children[X])}w=w||L}return D?()=>{u(D)}:Ua}function u(v){if(Kk(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Yke(v,n);n.splice(y,0,v),v.record.name&&!Ww(v)&&i.set(v.record.name,v)}function p(v,y){let w,$={},_,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v});C=w.record.name,$=_t(Bw(y.params,w.keys.filter(D=>!D.optional).concat(w.parent?w.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Bw(v.params,w.keys.map(D=>D.name))),_=w.stringify($)}else if(v.path!=null)_=v.path,w=n.find(D=>D.re.test(_)),w&&($=w.parse(_),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(D=>D.re.test(y.path)),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v,currentLocation:y});C=w.record.name,$=_t({},y.params,v.params),_=w.stringify($)}const E=[];let L=w;for(;L;)E.unshift(L.record),L=L.parent;return{name:C,path:_,params:$,matched:E,meta:Kke(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:o}}function Bw(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function jw(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gke(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Gke(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ww(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kke(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function Yke(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;Xk(e,t[l])<0?i=l:n=l+1}const o=Xke(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function Xke(e){let t=e;for(;t=t.parent;)if(Jk(t)&&Xk(e,t)===0)return t}function Jk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qw(e){const t=bn(ym),n=bn(Bk),i=Se(()=>{const h=W(e.to);return t.resolve(h)}),o=Se(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(Dl.bind(null,g));if(y>-1)return y;const w=Uw(h[p-2]);return p>1&&Uw(g)===w&&v[v.length-1].path!==w?v.findIndex(Dl.bind(null,h[p-2])):y}),l=Se(()=>o.value>-1&&tTe(n.params,i.value.params)),u=Se(()=>o.value>-1&&o.value===n.matched.length-1&&Gk(n.params,i.value.params));function f(h={}){if(eTe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Ua);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:Se(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function Jke(e){return e.length===1?e[0]:e}const Zke=tt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qw,setup(e,{slots:t}){const n=dr(qw(e)),{options:i}=bn(ym),o=Se(()=>({[Vw(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Vw(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Jke(t.default(n));return e.custom?l:Tc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),Qke=Zke;function eTe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function tTe(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Yr(o)||o.length!==i.length||i.some((l,u)=>l.valueOf()!==o[u].valueOf()))return!1}return!0}function Uw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vw=(e,t,n)=>e??t??n,nTe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=bn(eg),o=Se(()=>e.route||i.value),l=bn(Ow,0),u=Se(()=>{let p=W(l);const{matched:g}=o.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=Se(()=>o.value.matched[u.value]);_r(Ow,Se(()=>u.value+1)),_r(tke,f),_r(eg,o);const h=Ke();return yt(()=>[h.value,f.value,e.name],([p,g,v],[y,w,$])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!Dl(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Gw(n.default,{Component:y,route:p});const w=v.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=Tc(y,_t({},$,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Gw(n.default,{Component:C,route:p})||C}}});function Gw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const rTe=nTe;function iTe(e){const t=Vke(e.routes,e),n=e.parseQuery||$ke,i=e.stringifyQuery||Dw,o=e.history,l=Ea(),u=Ea(),f=Ea(),h=Vt(ho);let p=ho;il&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zh.bind(null,z=>""+z),v=Zh.bind(null,pke),y=Zh.bind(null,yc);function w(z,Z){let re,le;return Kk(z)?(re=t.getRecordMatcher(z),le=Z):le=z,t.addRoute(le,re)}function $(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function _(){return t.getRoutes().map(z=>z.record)}function C(z){return!!t.getRecordMatcher(z)}function E(z,Z){if(Z=_t({},Z||h.value),typeof z=="string"){const ee=Qh(n,z,Z.path),de=t.resolve({path:ee.path},Z),he=o.createHref(ee.fullPath);return _t(ee,de,{params:y(de.params),hash:yc(ee.hash),redirectedFrom:void 0,href:he})}let re;if(z.path!=null)re=_t({},z,{path:Qh(n,z.path,Z.path).path});else{const ee=_t({},z.params);for(const de in ee)ee[de]==null&&delete ee[de];re=_t({},z,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ce=z.hash||"";le.params=g(y(le.params));const F=vke(i,_t({},z,{hash:fke(ce),path:le.path})),j=o.createHref(F);return _t({fullPath:F,hash:ce,query:i===Dw?Nke(z.query):z.query||{}},le,{redirectedFrom:void 0,href:j})}function L(z){return typeof z=="string"?Qh(n,z,h.value.path):_t({},z)}function D(z,Z){if(p!==z)return Il(Ut.NAVIGATION_CANCELLED,{from:Z,to:z})}function N(z){return X(z)}function I(z){return N(_t(L(z),{replace:!0}))}function q(z,Z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ce=typeof le=="function"?le(z,Z):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=L(ce):{path:ce},ce.params={}),_t({query:z.query,hash:z.hash,params:ce.path!=null?{}:z.params},ce)}}function X(z,Z){const re=p=E(z),le=h.value,ce=z.state,F=z.force,j=z.replace===!0,ee=q(re,le);if(ee)return X(_t(L(ee),{state:typeof ee=="object"?_t({},ce,ee.state):ce,force:F,replace:j}),Z||re);const de=re;de.redirectedFrom=Z;let he;return!F&&yke(i,le,re)&&(he=Il(Ut.NAVIGATION_DUPLICATED,{to:de,from:le}),Be(le,le,!0,!1)),(he?Promise.resolve(he):U(de,le)).catch(me=>$i(me)?$i(me,Ut.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,de,le)).then(me=>{if(me){if($i(me,Ut.NAVIGATION_GUARD_REDIRECT))return X(_t({replace:j},L(me.to),{state:typeof me.to=="object"?_t({},ce,me.to.state):ce,force:F}),Z||de)}else me=P(de,le,!0,j,ce);return K(de,le,me),me})}function ie(z,Z){const re=D(z,Z);return re?Promise.reject(re):Promise.resolve()}function J(z){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function U(z,Z){let re;const[le,ce,F]=Mke(z,Z);re=tp(le.reverse(),"beforeRouteLeave",z,Z);for(const ee of le)ee.leaveGuards.forEach(de=>{re.push(ko(de,z,Z))});const j=ie.bind(null,z,Z);return re.push(j),Re(re).then(()=>{re=[];for(const ee of l.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).then(()=>{re=tp(ce,"beforeRouteUpdate",z,Z);for(const ee of ce)ee.updateGuards.forEach(de=>{re.push(ko(de,z,Z))});return re.push(j),Re(re)}).then(()=>{re=[];for(const ee of F)if(ee.beforeEnter)if(Yr(ee.beforeEnter))for(const de of ee.beforeEnter)re.push(ko(de,z,Z));else re.push(ko(ee.beforeEnter,z,Z));return re.push(j),Re(re)}).then(()=>(z.matched.forEach(ee=>ee.enterCallbacks={}),re=tp(F,"beforeRouteEnter",z,Z,J),re.push(j),Re(re))).then(()=>{re=[];for(const ee of u.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).catch(ee=>$i(ee,Ut.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(z,Z,re){f.list().forEach(le=>J(()=>le(z,Z,re)))}function P(z,Z,re,le,ce){const F=D(z,Z);if(F)return F;const j=Z===ho,ee=il?history.state:{};re&&(le||j?o.replace(z.fullPath,_t({scroll:j&&ee&&ee.scroll},ce)):o.push(z.fullPath,ce)),h.value=z,Be(z,Z,re,j),_e()}let O;function k(){O||(O=o.listen((z,Z,re)=>{if(!He.listening)return;const le=E(z),ce=q(le,He.currentRoute.value);if(ce){X(_t(ce,{replace:!0,force:!0}),le).catch(Ua);return}p=le;const F=h.value;il&&Cke(Iw(F.fullPath,re.delta),yd()),U(le,F).catch(j=>$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_CANCELLED)?j:$i(j,Ut.NAVIGATION_GUARD_REDIRECT)?(X(_t(L(j.to),{force:!0}),le).then(ee=>{$i(ee,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===ng.pop&&o.go(-1,!1)}).catch(Ua),Promise.reject()):(re.delta&&o.go(-re.delta,!1),ae(j,le,F))).then(j=>{j=j||P(le,F,!1),j&&(re.delta&&!$i(j,Ut.NAVIGATION_CANCELLED)?o.go(-re.delta,!1):re.type===ng.pop&&$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),K(le,F,j)}).catch(Ua)}))}let S=Ea(),R=Ea(),B;function ae(z,Z,re){_e(z);const le=R.list();return le.length?le.forEach(ce=>ce(z,Z,re)):console.error(z),Promise.reject(z)}function ve(){return B&&h.value!==ho?Promise.resolve():new Promise((z,Z)=>{S.add([z,Z])})}function _e(z){return B||(B=!z,k(),S.list().forEach(([Z,re])=>z?re(z):Z()),S.reset()),z}function Be(z,Z,re,le){const{scrollBehavior:ce}=e;if(!il||!ce)return Promise.resolve();const F=!re&&Eke(Iw(z.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return At().then(()=>ce(z,Z,F)).then(j=>j&&Tke(j)).catch(j=>ae(j,z,Z))}const Ee=z=>o.go(z);let Ge;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:_,resolve:E,options:e,push:N,replace:I,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ve,install(z){z.component("RouterLink",Qke),z.component("RouterView",rTe),z.config.globalProperties.$router=He,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),il&&!Ge&&h.value===ho&&(Ge=!0,N(o.location).catch(le=>{}));const Z={};for(const le in ho)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});z.provide(ym,He),z.provide(Bk,hg(Z)),z.provide(eg,h);const re=z.unmount;Ue.add(z),z.unmount=function(){Ue.delete(z),Ue.size<1&&(p=ho,O&&O(),O=null,h.value=ho,Ge=!1,B=!1),re()}}};function Re(z){return z.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const oTe={tooltip:RN};j1.options.instantMove=!0;j1.options.distance=10;function sTe(){return iTe({history:Ike(),routes:J_e})}const lTe=[sTe],wm=x1(O$);lTe.forEach(e=>{wm.use(e())});Object.entries(oTe).forEach(([e,t])=>{wm.directive(e,t)});wm.mount("#app");