@vitest/browser 2.0.3 → 2.0.5

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.
@@ -1,52 +0,0 @@
1
- var R_=Object.defineProperty;var D_=(e,t,r)=>t in e?R_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xr=(e,t,r)=>D_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
2
- * @vue/shared v3.4.31
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function sh(e,t){const r=new Set(e.split(","));return o=>r.has(o)}const _t={},us=[],Zn=()=>{},z_=()=>!1,lu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),lh=e=>e.startsWith("onUpdate:"),zt=Object.assign,ah=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},I_=Object.prototype.hasOwnProperty,ct=(e,t)=>I_.call(e,t),ze=Array.isArray,fs=e=>ra(e)==="[object Map]",au=e=>ra(e)==="[object Set]",uv=e=>ra(e)==="[object Date]",Xe=e=>typeof e=="function",$t=e=>typeof e=="string",Dr=e=>typeof e=="symbol",xt=e=>e!==null&&typeof e=="object",R0=e=>(xt(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),D0=Object.prototype.toString,ra=e=>D0.call(e),F_=e=>ra(e).slice(8,-1),z0=e=>ra(e)==="[object Object]",ch=e=>$t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bl=sh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},H_=/-(\w)/g,wr=cu(e=>e.replace(H_,(t,r)=>r?r.toUpperCase():"")),q_=/\B([A-Z])/g,Ji=cu(e=>e.replace(q_,"-$1").toLowerCase()),uu=cu(e=>e.charAt(0).toUpperCase()+e.slice(1)),pc=cu(e=>e?`on${uu(e)}`:""),zr=(e,t)=>!Object.is(e,t),gc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},I0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},cd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F0=e=>{const t=$t(e)?Number(e):NaN;return isNaN(t)?e:t};let fv;const H0=()=>fv||(fv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=$t(o)?V_(o):Zt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if($t(e)||xt(e))return e}const B_=/;(?![^(]*\))/g,W_=/:([^]+)/,U_=/\/\*[^]*?\*\//g;function V_(e){const t={};return e.replace(U_,"").split(B_).forEach(r=>{if(r){const o=r.split(W_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if($t(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const o=st(e[r]);o&&(t+=o+" ")}else if(xt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function j_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!$t(t)&&(e.class=st(t)),r&&(e.style=Zt(r)),e}const G_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",K_=sh(G_);function q0(e){return!!e||e===""}function X_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=fu(e[o],t[o]);return r}function fu(e,t){if(e===t)return!0;let r=uv(e),o=uv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Dr(e),o=Dr(t),r||o)return e===t;if(r=ze(e),o=ze(t),r||o)return r&&o?X_(e,t):!1;if(r=xt(e),o=xt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!fu(e[f],t[f]))return!1}}return String(e)===String(t)}function B0(e,t){return e.findIndex(r=>fu(r,t))}const W0=e=>!!(e&&e.__v_isRef===!0),qe=e=>$t(e)?e:e==null?"":ze(e)||xt(e)&&(e.toString===D0||!Xe(e.toString))?W0(e)?qe(e.value):JSON.stringify(e,U0,2):String(e),U0=(e,t)=>W0(t)?U0(e,t.value):fs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[If(o,c)+" =>"]=s,r),{})}:au(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>If(r))}:Dr(t)?If(t):xt(t)&&!ze(t)&&!z0(t)?String(t):t,If=(e,t="")=>{var r;return Dr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
- * @vue/reactivity v3.4.31
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let Bn;class Y_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Bn,!t&&Bn&&(this.index=(Bn.scopes||(Bn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Bn;try{return Bn=this,t()}finally{Bn=r}}}on(){Bn=this}off(){Bn=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Z_(e,t=Bn){t&&t.active&&t.effects.push(e)}function V0(){return Bn}function J_(e){Bn&&Bn.cleanups.push(e)}let To;class uh{constructor(t,r,o,s){this.fn=t,this.trigger=r,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Z_(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Qi();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(Q_(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),eo()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Bi,r=To;try{return Bi=!0,To=this,this._runnings++,dv(this),this.fn()}finally{hv(this),this._runnings--,To=r,Bi=t}}stop(){this.active&&(dv(this),hv(this),this.onStop&&this.onStop(),this.active=!1)}}function Q_(e){return e.value}function dv(e){e._trackId++,e._depsLength=0}function hv(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)j0(e.deps[t],e);e.deps.length=e._depsLength}}function j0(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Bi=!0,ud=0;const G0=[];function Qi(){G0.push(Bi),Bi=!1}function eo(){const e=G0.pop();Bi=e===void 0?!0:e}function fh(){ud++}function dh(){for(ud--;!ud&&fd.length;)fd.shift()()}function K0(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&j0(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fd=[];function X0(e,t,r){fh();for(const o of e.keys()){let s;o._dirtyLevel<t&&(s??(s=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(s??(s=e.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&fd.push(o.scheduler)))}dh()}const Y0=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},Nc=new WeakMap,Co=Symbol(""),dd=Symbol("");function Dn(e,t,r){if(Bi&&To){let o=Nc.get(e);o||Nc.set(e,o=new Map);let s=o.get(r);s||o.set(r,s=Y0(()=>o.delete(r))),K0(To,s)}}function ni(e,t,r,o,s,c){const f=Nc.get(e);if(!f)return;let d=[];if(t==="clear")d=[...f.values()];else if(r==="length"&&ze(e)){const h=Number(o);f.forEach((p,v)=>{(v==="length"||!Dr(v)&&v>=h)&&d.push(p)})}else switch(r!==void 0&&d.push(f.get(r)),t){case"add":ze(e)?ch(r)&&d.push(f.get("length")):(d.push(f.get(Co)),fs(e)&&d.push(f.get(dd)));break;case"delete":ze(e)||(d.push(f.get(Co)),fs(e)&&d.push(f.get(dd)));break;case"set":fs(e)&&d.push(f.get(Co));break}fh();for(const h of d)h&&X0(h,4);dh()}function eS(e,t){const r=Nc.get(e);return r&&r.get(t)}const tS=sh("__proto__,__v_isRef,__isVue"),Z0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr)),pv=nS();function nS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=pt(this);for(let c=0,f=this.length;c<f;c++)Dn(o,"get",c+"");const s=o[t](...r);return s===-1||s===!1?o[t](...r.map(pt)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Qi(),fh();const o=pt(this)[t].apply(this,r);return dh(),eo(),o}}),e}function rS(e){Dr(e)||(e=String(e));const t=pt(this);return Dn(t,"has",e),t.hasOwnProperty(e)}class J0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?vS:ny:c?ty:ey).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=ze(t);if(!s){if(f&&ct(pv,r))return Reflect.get(pv,r,o);if(r==="hasOwnProperty")return rS}const d=Reflect.get(t,r,o);return(Dr(r)?Z0.has(r):tS(r))||(s||Dn(t,"get",r),c)?d:It(d)?f&&ch(r)?d:d.value:xt(d)?s?ia(d):er(d):d}}class Q0 extends J0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=Pl(c);if(!$c(o)&&!Pl(o)&&(c=pt(c),o=pt(o)),!ze(t)&&It(c)&&!It(o))return h?!1:(c.value=o,!0)}const f=ze(t)&&ch(r)?Number(r)<t.length:ct(t,r),d=Reflect.set(t,r,o,s);return t===pt(s)&&(f?zr(o,c)&&ni(t,"set",r,o):ni(t,"add",r,o)),d}deleteProperty(t,r){const o=ct(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ni(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Dr(r)||!Z0.has(r))&&Dn(t,"has",r),o}ownKeys(t){return Dn(t,"iterate",ze(t)?"length":Co),Reflect.ownKeys(t)}}class iS extends J0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const oS=new Q0,sS=new iS,lS=new Q0(!0);const hh=e=>e,du=e=>Reflect.getPrototypeOf(e);function Ka(e,t,r=!1,o=!1){e=e.__v_raw;const s=pt(e),c=pt(t);r||(zr(t,c)&&Dn(s,"get",t),Dn(s,"get",c));const{has:f}=du(s),d=o?hh:r?yh:Rl;if(f.call(s,t))return d(e.get(t));if(f.call(s,c))return d(e.get(c));e!==s&&e.get(t)}function Xa(e,t=!1){const r=this.__v_raw,o=pt(r),s=pt(e);return t||(zr(e,s)&&Dn(o,"has",e),Dn(o,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function Ya(e,t=!1){return e=e.__v_raw,!t&&Dn(pt(e),"iterate",Co),Reflect.get(e,"size",e)}function gv(e){e=pt(e);const t=pt(this);return du(t).has.call(t,e)||(t.add(e),ni(t,"add",e,e)),this}function vv(e,t){t=pt(t);const r=pt(this),{has:o,get:s}=du(r);let c=o.call(r,e);c||(e=pt(e),c=o.call(r,e));const f=s.call(r,e);return r.set(e,t),c?zr(t,f)&&ni(r,"set",e,t):ni(r,"add",e,t),this}function mv(e){const t=pt(this),{has:r,get:o}=du(t);let s=r.call(t,e);s||(e=pt(e),s=r.call(t,e)),o&&o.call(t,e);const c=t.delete(e);return s&&ni(t,"delete",e,void 0),c}function yv(){const e=pt(this),t=e.size!==0,r=e.clear();return t&&ni(e,"clear",void 0,void 0),r}function Za(e,t){return function(o,s){const c=this,f=c.__v_raw,d=pt(f),h=t?hh:e?yh:Rl;return!e&&Dn(d,"iterate",Co),f.forEach((p,v)=>o.call(s,h(p),h(v),c))}}function Ja(e,t,r){return function(...o){const s=this.__v_raw,c=pt(s),f=fs(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?hh:t?yh:Rl;return!t&&Dn(c,"iterate",h?dd:Co),{next(){const{value:y,done:b}=p.next();return b?{value:y,done:b}:{value:d?[v(y[0]),v(y[1])]:v(y),done:b}},[Symbol.iterator](){return this}}}}function Ti(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aS(){const e={get(c){return Ka(this,c)},get size(){return Ya(this)},has:Xa,add:gv,set:vv,delete:mv,clear:yv,forEach:Za(!1,!1)},t={get(c){return Ka(this,c,!1,!0)},get size(){return Ya(this)},has:Xa,add:gv,set:vv,delete:mv,clear:yv,forEach:Za(!1,!0)},r={get(c){return Ka(this,c,!0)},get size(){return Ya(this,!0)},has(c){return Xa.call(this,c,!0)},add:Ti("add"),set:Ti("set"),delete:Ti("delete"),clear:Ti("clear"),forEach:Za(!0,!1)},o={get(c){return Ka(this,c,!0,!0)},get size(){return Ya(this,!0)},has(c){return Xa.call(this,c,!0)},add:Ti("add"),set:Ti("set"),delete:Ti("delete"),clear:Ti("clear"),forEach:Za(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{e[c]=Ja(c,!1,!1),r[c]=Ja(c,!0,!1),t[c]=Ja(c,!1,!0),o[c]=Ja(c,!0,!0)}),[e,r,t,o]}const[cS,uS,fS,dS]=aS();function ph(e,t){const r=t?e?dS:fS:e?uS:cS;return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ct(r,s)&&s in o?r:o,s,c)}const hS={get:ph(!1,!1)},pS={get:ph(!1,!0)},gS={get:ph(!0,!1)};const ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,vS=new WeakMap;function mS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yS(e){return e.__v_skip||!Object.isExtensible(e)?0:mS(F_(e))}function er(e){return Pl(e)?e:vh(e,!1,oS,hS,ey)}function gh(e){return vh(e,!1,lS,pS,ty)}function ia(e){return vh(e,!0,sS,gS,ny)}function vh(e,t,r,o,s){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=yS(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function wl(e){return Pl(e)?wl(e.__v_raw):!!(e&&e.__v_isReactive)}function Pl(e){return!!(e&&e.__v_isReadonly)}function $c(e){return!!(e&&e.__v_isShallow)}function ry(e){return e?!!e.__v_raw:!1}function pt(e){const t=e&&e.__v_raw;return t?pt(t):e}function mh(e){return Object.isExtensible(e)&&I0(e,"__v_skip",!0),e}const Rl=e=>xt(e)?er(e):e,yh=e=>xt(e)?ia(e):e;class iy{constructor(t,r,o,s){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new uh(()=>t(this._value),()=>xl(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=pt(this);return(!t._cacheable||t.effect.dirty)&&zr(t._value,t._value=t.effect.run())&&xl(t,4),bh(t),t.effect._dirtyLevel>=2&&xl(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function bS(e,t,r=!1){let o,s;const c=Xe(e);return c?(o=e,s=Zn):(o=e.get,s=e.set),new iy(o,s,c||!s,r)}function bh(e){var t;Bi&&To&&(e=pt(e),K0(To,(t=e.dep)!=null?t:e.dep=Y0(()=>e.dep=void 0,e instanceof iy?e:void 0)))}function xl(e,t=4,r,o){e=pt(e);const s=e.dep;s&&X0(s,t)}function It(e){return!!(e&&e.__v_isRef===!0)}function je(e){return oy(e,!1)}function Fr(e){return oy(e,!0)}function oy(e,t){return It(e)?e:new wS(e,t)}class wS{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:pt(t),this._value=r?t:Rl(t)}get value(){return bh(this),this._value}set value(t){const r=this.__v_isShallow||$c(t)||Pl(t);t=r?t:pt(t),zr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=r?t:Rl(t),xl(this,4))}}function B(e){return It(e)?e.value:e}const xS={get:(e,t,r)=>B(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return It(s)&&!It(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function sy(e){return wl(e)?e:new Proxy(e,xS)}class _S{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=t(()=>bh(this),()=>xl(this));this._get=r,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ly(e){return new _S(e)}function SS(e){const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=ay(e,r);return t}class kS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return eS(pt(this._object),this._key)}}class TS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function hu(e,t,r){return It(e)?e:Xe(e)?new TS(e):xt(e)&&arguments.length>1?ay(e,t,r):je(e)}function ay(e,t,r){const o=e[t];return It(o)?o:new kS(e,t,r)}/**
10
- * @vue/runtime-core v3.4.31
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function Wi(e,t,r,o){try{return o?e(...o):e()}catch(s){oa(s,t,r)}}function tr(e,t,r,o){if(Xe(e)){const s=Wi(e,t,r,o);return s&&R0(s)&&s.catch(c=>{oa(c,t,r)}),s}if(ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push(tr(e[c],t,r,o));return s}}function oa(e,t,r,o=!0){const s=t?t.vnode:null;if(t){let c=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${r}`;for(;c;){const p=c.ec;if(p){for(let v=0;v<p.length;v++)if(p[v](e,f,d)===!1)return}c=c.parent}const h=t.appContext.config.errorHandler;if(h){Qi(),Wi(h,null,10,[e,f,d]),eo();return}}CS(e,r,s,o)}function CS(e,t,r,o=!0){console.error(e)}let Dl=!1,hd=!1;const fn=[];let Mr=0;const ds=[];let $i=null,xo=0;const cy=Promise.resolve();let wh=null;function ln(e){const t=wh||cy;return e?t.then(this?e.bind(this):e):t}function ES(e){let t=Mr+1,r=fn.length;for(;t<r;){const o=t+r>>>1,s=fn[o],c=zl(s);c<e||c===e&&s.pre?t=o+1:r=o}return t}function xh(e){(!fn.length||!fn.includes(e,Dl&&e.allowRecurse?Mr+1:Mr))&&(e.id==null?fn.push(e):fn.splice(ES(e.id),0,e),uy())}function uy(){!Dl&&!hd&&(hd=!0,wh=cy.then(dy))}function LS(e){const t=fn.indexOf(e);t>Mr&&fn.splice(t,1)}function pd(e){ze(e)?ds.push(...e):(!$i||!$i.includes(e,e.allowRecurse?xo+1:xo))&&ds.push(e),uy()}function bv(e,t,r=Dl?Mr+1:0){for(;r<fn.length;r++){const o=fn[r];if(o&&o.pre){if(e&&o.id!==e.uid)continue;fn.splice(r,1),r--,o()}}}function fy(e){if(ds.length){const t=[...new Set(ds)].sort((r,o)=>zl(r)-zl(o));if(ds.length=0,$i){$i.push(...t);return}for($i=t,xo=0;xo<$i.length;xo++){const r=$i[xo];r.active!==!1&&r()}$i=null,xo=0}}const zl=e=>e.id==null?1/0:e.id,AS=(e,t)=>{const r=zl(e)-zl(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function dy(e){hd=!1,Dl=!0,fn.sort(AS);try{for(Mr=0;Mr<fn.length;Mr++){const t=fn[Mr];t&&t.active!==!1&&Wi(t,null,14)}}finally{Mr=0,fn.length=0,fy(),Dl=!1,wh=null,(fn.length||ds.length)&&dy()}}function MS(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||_t;let s=r;const c=t.startsWith("update:"),f=c&&t.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:y,trim:b}=o[v]||_t;b&&(s=r.map(x=>$t(x)?x.trim():x)),y&&(s=r.map(cd))}let d,h=o[d=pc(t)]||o[d=pc(wr(t))];!h&&c&&(h=o[d=pc(Ji(t))]),h&&tr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tr(p,e,6,s)}}function hy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Xe(e)){const h=p=>{const v=hy(p,t,!0);v&&(d=!0,zt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(xt(e)&&o.set(e,null),null):(ze(c)?c.forEach(h=>f[h]=null):zt(f,c),xt(e)&&o.set(e,f),f)}function pu(e,t){return!e||!lu(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,Ji(t))||ct(e,t))}let Yt=null,gu=null;function Oc(e){const t=Yt;return Yt=e,gu=e&&e.type.__scopeId||null,t}function vu(e){gu=e}function mu(){gu=null}const py=e=>lt;function lt(e,t=Yt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ic(-1);const c=Oc(t);let f;try{f=e(...s)}finally{Oc(c),o._d&&Ic(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Ff(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:y,data:b,setupState:x,ctx:E,inheritAttrs:C}=e,M=Oc(e);let N,L;try{if(r.shapeFlag&4){const A=s||o,H=A;N=vr(p.call(H,A,v,y,x,b,E)),L=d}else{const A=t;N=vr(A.length>1?A(y,{attrs:d,slots:f,emit:h}):A(y,null)),L=t.props?d:$S(d)}}catch(A){Tl.length=0,oa(A,e,1),N=Pe(dn)}let D=N;if(L&&C!==!1){const A=Object.keys(L),{shapeFlag:H}=D;A.length&&H&7&&(c&&A.some(lh)&&(L=OS(L,c)),D=ji(D,L,!1,!0))}return r.dirs&&(D=ji(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(r.dirs):r.dirs),r.transition&&(D.transition=r.transition),N=D,Oc(M),N}function NS(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Fl(s)){if(s.type!==dn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const $S=e=>{let t;for(const r in e)(r==="class"||r==="style"||lu(r))&&((t||(t={}))[r]=e[r]);return t},OS=(e,t)=>{const r={};for(const o in e)(!lh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function PS(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?wv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let y=0;y<v.length;y++){const b=v[y];if(f[b]!==o[b]&&!pu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?wv(o,f,p):!0:!!f;return!1}function wv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!pu(r,c))return!0}return!1}function _h({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Sh="components",RS="directives";function Lo(e,t){return kh(Sh,e,!0,t)||e}const gy=Symbol.for("v-ndc");function xv(e){return $t(e)?kh(Sh,e,!1)||e:e||gy}function ui(e){return kh(RS,e)}function kh(e,t,r=!0,o=!1){const s=Yt||sn;if(s){const c=s.type;if(e===Sh){const d=zk(c,!1);if(d&&(d===t||d===wr(t)||d===uu(wr(t))))return c}const f=_v(s[e]||c[e],t)||_v(s.appContext[e],t);return!f&&o?c:f}}function _v(e,t){return e&&(e[t]||e[wr(t)]||e[uu(wr(t))])}const DS=e=>e.__isSuspense;let gd=0;const zS={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)FS(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}HS(e,t,r,o,s,f,d,h,p)}},hydrate:qS,normalize:BS},IS=zS;function Il(e,t){const r=e.props&&e.props[t];Xe(r)&&r()}function FS(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,y=v("div"),b=e.suspense=vy(e,s,o,t,y,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,y,null,o,b,c,f),b.deps>0?(Il(e,"onPending"),Il(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),hs(b,e.ssFallback)):b.resolve(!1,!0)}function HS(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const y=t.suspense=e.suspense;y.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:E,pendingBranch:C,isInFallback:M,isHydrating:N}=y;if(C)y.pendingBranch=b,Nr(b,C)?(h(C,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():M&&(N||(h(E,x,r,o,s,null,c,f,d),hs(y,x)))):(y.pendingId=gd++,N?(y.isHydrating=!1,y.activeBranch=C):p(C,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),M?(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():(h(E,x,r,o,s,null,c,f,d),hs(y,x))):E&&Nr(b,E)?(h(E,b,r,o,s,y,c,f,d),y.resolve(!0)):(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0&&y.resolve()));else if(E&&Nr(b,E))h(E,b,r,o,s,y,c,f,d),hs(y,b);else if(Il(t,"onPending"),y.pendingBranch=b,b.shapeFlag&512?y.pendingId=b.component.suspenseId:y.pendingId=gd++,h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0)y.resolve();else{const{timeout:L,pendingId:D}=y;L>0?setTimeout(()=>{y.pendingId===D&&y.fallback(x)},L):L===0&&y.fallback(x)}}function vy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:y,m:b,um:x,n:E,o:{parentNode:C,remove:M}}=p;let N;const L=US(e);L&&t&&t.pendingBranch&&(N=t.pendingId,t.deps++);const D=e.props?F0(e.props.timeout):void 0,A=c,H={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:gd++,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(z=!1,J=!1){const{vnode:ie,activeBranch:ne,pendingBranch:j,pendingId:te,effects:K,parentComponent:V,container:I}=H;let k=!1;H.isHydrating?H.isHydrating=!1:z||(k=ne&&j.transition&&j.transition.mode==="out-in",k&&(ne.transition.afterLeave=()=>{te===H.pendingId&&(b(j,I,c===A?E(ne):c,0),pd(K))}),ne&&(C(ne.el)!==H.hiddenContainer&&(c=E(ne)),x(ne,V,H,!0)),k||b(j,I,c,0)),hs(H,j),H.pendingBranch=null,H.isInFallback=!1;let q=H.parent,W=!1;for(;q;){if(q.pendingBranch){q.effects.push(...K),W=!0;break}q=q.parent}!W&&!k&&pd(K),H.effects=[],L&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!J&&t.resolve()),Il(ie,"onResolve")},fallback(z){if(!H.pendingBranch)return;const{vnode:J,activeBranch:ie,parentComponent:ne,container:j,namespace:te}=H;Il(J,"onFallback");const K=E(ie),V=()=>{H.isInFallback&&(y(null,z,j,K,ne,null,te,d,h),hs(H,z))},I=z.transition&&z.transition.mode==="out-in";I&&(ie.transition.afterLeave=V),H.isInFallback=!0,x(ie,ne,null,!0),I||V()},move(z,J,ie){H.activeBranch&&b(H.activeBranch,z,J,ie),H.container=z},next(){return H.activeBranch&&E(H.activeBranch)},registerDep(z,J,ie){const ne=!!H.pendingBranch;ne&&H.deps++;const j=z.vnode.el;z.asyncDep.catch(te=>{oa(te,z,0)}).then(te=>{if(z.isUnmounted||H.isUnmounted||H.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:K}=z;Sd(z,te,!1),j&&(K.el=j);const V=!j&&z.subTree.el;J(z,K,C(j||z.subTree.el),j?null:E(z.subTree),H,f,ie),V&&M(V),_h(z,K.el),ne&&--H.deps===0&&H.resolve()})},unmount(z,J){H.isUnmounted=!0,H.activeBranch&&x(H.activeBranch,r,z,J),H.pendingBranch&&x(H.pendingBranch,r,z,J)}};return H}function qS(e,t,r,o,s,c,f,d,h){const p=t.suspense=vy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function BS(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Sv(o?r.default:r),e.ssFallback=o?Sv(r.fallback):Pe(dn)}function Sv(e){let t;if(Xe(e)){const r=ws&&e._c;r&&(e._d=!1,le()),e=e(),r&&(e._d=!0,t=Jn,zy())}return ze(e)&&(e=NS(e)),e=vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function WS(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):pd(e)}function hs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,_h(o,s))}function US(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function yu(e,t,r=sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Qi();const d=la(r),h=tr(t,r,e,f);return d(),eo(),h});return o?s.unshift(c):s.push(c),c}}const fi=e=>(t,r=sn)=>{(!Su||e==="sp")&&yu(e,(...o)=>t(...o),r)},VS=fi("bm"),Ms=fi("m"),jS=fi("bu"),GS=fi("u"),my=fi("bum"),bu=fi("um"),KS=fi("sp"),XS=fi("rtg"),YS=fi("rtc");function ZS(e,t=sn){yu("ec",e,t)}function kt(e,t){if(Yt===null)return e;const r=ku(Yt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=_t]=t[s];c&&(Xe(c)&&(c={mounted:c,updated:c}),c.deep&&Ii(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function go(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(Qi(),tr(h,r,8,[e.el,d,e,t]),eo())}}function si(e,t,r,o){let s;const c=r;if(ze(e)||$t(e)){s=new Array(e.length);for(let f=0,d=e.length;f<d;f++)s[f]=t(e[f],f,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,c)}else if(xt(e))if(e[Symbol.iterator])s=Array.from(e,(f,d)=>t(f,d,void 0,c));else{const f=Object.keys(e);s=new Array(f.length);for(let d=0,h=f.length;d<h;d++){const p=f[d];s[d]=t(e[p],p,d,c)}}else s=[];return s}function JS(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(ze(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function gt(e,t){return Xe(e)?zt({name:e.name},t,{setup:e}):e}const _l=e=>!!e.type.__asyncLoader;function hn(e,t,r={},o,s){if(Yt.isCE||Yt.parent&&_l(Yt.parent)&&Yt.parent.isCE)return t!=="default"&&(r.name=t),Pe("slot",r,o&&o());let c=e[t];c&&c._c&&(c._d=!1),le();const f=c&&yy(c(r)),d=ot(ht,{key:r.key||f&&f.key||`_${t}`},f||(o?o():[]),f&&e._===1?64:-2);return d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),c&&c._c&&(c._d=!0),d}function yy(e){return e.some(t=>Fl(t)?!(t.type===dn||t.type===ht&&!yy(t.children)):!0)?e:null}function QS(e,t){const r={};for(const o in e)r[pc(o)]=e[o];return r}const vd=e=>e?qy(e)?ku(e):vd(e.parent):null,Sl=zt(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=>vd(e.parent),$root:e=>vd(e.root),$emit:e=>e.emit,$options:e=>Th(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xh(e.update)}),$nextTick:e=>e.n||(e.n=ln.bind(e.proxy)),$watch:e=>_k.bind(e)}),Hf=(e,t)=>e!==_t&&!e.__isScriptSetup&&ct(e,t),ek={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Hf(o,t))return f[t]=1,o[t];if(s!==_t&&ct(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&ct(p,t))return f[t]=3,c[t];if(r!==_t&&ct(r,t))return f[t]=4,r[t];md&&(f[t]=0)}}const v=Sl[t];let y,b;if(v)return t==="$attrs"&&Dn(e.attrs,"get",""),v(e);if((y=d.__cssModules)&&(y=y[t]))return y;if(r!==_t&&ct(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,ct(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Hf(s,t)?(s[t]=r,!0):o!==_t&&ct(o,t)?(o[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==_t&&ct(e,f)||Hf(t,f)||(d=c[0])&&ct(d,f)||ct(o,f)||ct(Sl,f)||ct(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function tk(){return nk().attrs}function nk(){const e=sa();return e.setupContext||(e.setupContext=Wy(e))}function Pc(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Rc(e,t){return!e||!t?e||t:ze(e)&&ze(t)?e.concat(t):zt({},Pc(e),Pc(t))}let md=!0;function rk(e){const t=Th(e),r=e.proxy,o=e.ctx;md=!1,t.beforeCreate&&kv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:y,mounted:b,beforeUpdate:x,updated:E,activated:C,deactivated:M,beforeDestroy:N,beforeUnmount:L,destroyed:D,unmounted:A,render:H,renderTracked:z,renderTriggered:J,errorCaptured:ie,serverPrefetch:ne,expose:j,inheritAttrs:te,components:K,directives:V,filters:I}=t;if(p&&ik(p,o,null),f)for(const W in f){const re=f[W];Xe(re)&&(o[W]=re.bind(r))}if(s){const W=s.call(r,r);xt(W)&&(e.data=er(W))}if(md=!0,c)for(const W in c){const re=c[W],me=Xe(re)?re.bind(r,r):Xe(re.get)?re.get.bind(r,r):Zn,Me=!Xe(re)&&Xe(re.set)?re.set.bind(r):Zn,Be=$e({get:me,set:Me});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ve=>Be.value=Ve})}if(d)for(const W in d)by(d[W],o,r,W);if(h){const W=Xe(h)?h.call(r):h;Reflect.ownKeys(W).forEach(re=>{vc(re,W[re])})}v&&kv(v,e,"c");function q(W,re){ze(re)?re.forEach(me=>W(me.bind(r))):re&&W(re.bind(r))}if(q(VS,y),q(Ms,b),q(jS,x),q(GS,E),q(Sk,C),q(kk,M),q(ZS,ie),q(YS,z),q(XS,J),q(my,L),q(bu,A),q(KS,ne),ze(j))if(j.length){const W=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(W,re,{get:()=>r[re],set:me=>r[re]=me})})}else e.exposed||(e.exposed={});H&&e.render===Zn&&(e.render=H),te!=null&&(e.inheritAttrs=te),K&&(e.components=K),V&&(e.directives=V)}function ik(e,t,r=Zn){ze(e)&&(e=yd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=ri(s.from||o,s.default,!0):c=ri(s.from||o):c=ri(s),It(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function kv(e,t,r){tr(ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function by(e,t,r,o){const s=o.includes(".")?Ny(r,o):()=>r[o];if($t(e)){const c=t[e];Xe(c)&&qt(s,c)}else if(Xe(e))qt(s,e.bind(r));else if(xt(e))if(ze(e))e.forEach(c=>by(c,t,r,o));else{const c=Xe(e.handler)?e.handler.bind(r):t[e.handler];Xe(c)&&qt(s,c,e)}}function Th(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Dc(h,p,f,!0)),Dc(h,t,f)),xt(t)&&c.set(t,h),h}function Dc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Dc(e,c,r,!0),s&&s.forEach(f=>Dc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=ok[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const ok={data:Tv,props:Cv,emits:Cv,methods:gl,computed:gl,beforeCreate:xn,created:xn,beforeMount:xn,mounted:xn,beforeUpdate:xn,updated:xn,beforeDestroy:xn,beforeUnmount:xn,destroyed:xn,unmounted:xn,activated:xn,deactivated:xn,errorCaptured:xn,serverPrefetch:xn,components:gl,directives:gl,watch:lk,provide:Tv,inject:sk};function Tv(e,t){return t?e?function(){return zt(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function sk(e,t){return gl(yd(e),yd(t))}function yd(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function xn(e,t){return e?[...new Set([].concat(e,t))]:t}function gl(e,t){return e?zt(Object.create(null),e,t):t}function Cv(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:zt(Object.create(null),Pc(e),Pc(t??{})):t}function lk(e,t){if(!e)return t;if(!t)return e;const r=zt(Object.create(null),e);for(const o in t)r[o]=xn(e[o],t[o]);return r}function wy(){return{app:null,config:{isNativeTag:z_,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 ak=0;function ck(e,t){return function(o,s=null){Xe(o)||(o=zt({},o)),s!=null&&!xt(s)&&(s=null);const c=wy(),f=new WeakSet;let d=!1;const h=c.app={_uid:ak++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Fk,get config(){return c.config},set config(p){},use(p,...v){return f.has(p)||(p&&Xe(p.install)?(f.add(p),p.install(h,...v)):Xe(p)&&(f.add(p),p(h,...v))),h},mixin(p){return c.mixins.includes(p)||c.mixins.push(p),h},component(p,v){return v?(c.components[p]=v,h):c.components[p]},directive(p,v){return v?(c.directives[p]=v,h):c.directives[p]},mount(p,v,y){if(!d){const b=Pe(o,s);return b.appContext=c,y===!0?y="svg":y===!1&&(y=void 0),v&&t?t(b,p):e(b,p,y),d=!0,h._container=p,p.__vue_app__=h,ku(b.component)}},unmount(){d&&(e(null,h._container),delete h._container.__vue_app__)},provide(p,v){return c.provides[p]=v,h},runWithContext(p){const v=kl;kl=h;try{return p()}finally{kl=v}}};return h}}let kl=null;function vc(e,t){if(sn){let r=sn.provides;const o=sn.parent&&sn.parent.provides;o===r&&(r=sn.provides=Object.create(o)),r[e]=t}}function ri(e,t,r=!1){const o=sn||Yt;if(o||kl){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:kl._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Xe(t)?t.call(o&&o.proxy):t}}const xy={},_y=()=>Object.create(xy),Sy=e=>Object.getPrototypeOf(e)===xy;function uk(e,t,r,o=!1){const s={},c=_y();e.propsDefaults=Object.create(null),ky(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function fk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=pt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let y=0;y<v.length;y++){let b=v[y];if(pu(e.emitsOptions,b))continue;const x=t[b];if(h)if(ct(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const E=wr(b);s[E]=bd(h,d,E,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{ky(e,t,s,c)&&(p=!0);let v;for(const y in d)(!t||!ct(t,y)&&((v=Ji(y))===y||!ct(t,v)))&&(h?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=bd(h,d,y,void 0,e,!0)):delete s[y]);if(c!==d)for(const y in c)(!t||!ct(t,y))&&(delete c[y],p=!0)}p&&ni(e.attrs,"set","")}function ky(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(bl(h))continue;const p=t[h];let v;s&&ct(s,v=wr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:pu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=pt(r),p=d||_t;for(let v=0;v<c.length;v++){const y=c[v];r[y]=bd(s,h,y,p[y],e,!ct(p,y))}}return f}function bd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=ct(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Xe(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=la(s);o=p[r]=h.call(null,t),v()}}else o=h}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Ji(r))&&(o=!0))}return o}function Ty(e,t,r=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Xe(e)){const v=y=>{h=!0;const[b,x]=Ty(y,t,!0);zt(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return xt(e)&&o.set(e,us),us;if(ze(c))for(let v=0;v<c.length;v++){const y=wr(c[v]);Ev(y)&&(f[y]=_t)}else if(c)for(const v in c){const y=wr(v);if(Ev(y)){const b=c[v],x=f[y]=ze(b)||Xe(b)?{type:b}:zt({},b);if(x){const E=Mv(Boolean,x.type),C=Mv(String,x.type);x[0]=E>-1,x[1]=C<0||E<C,(E>-1||ct(x,"default"))&&d.push(y)}}}const p=[f,d];return xt(e)&&o.set(e,p),p}function Ev(e){return e[0]!=="$"&&!bl(e)}function Lv(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Av(e,t){return Lv(e)===Lv(t)}function Mv(e,t){return ze(t)?t.findIndex(r=>Av(r,e)):Xe(t)&&Av(t,e)?0:-1}const Cy=e=>e[0]==="_"||e==="$stable",Ch=e=>ze(e)?e.map(vr):[vr(e)],dk=(e,t,r)=>{if(t._n)return t;const o=lt((...s)=>Ch(t(...s)),r);return o._c=!1,o},Ey=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Cy(s))continue;const c=e[s];if(Xe(c))t[s]=dk(s,c,o);else if(c!=null){const f=Ch(c);t[s]=()=>f}}},Ly=(e,t)=>{const r=Ch(t);e.slots.default=()=>r},hk=(e,t)=>{const r=e.slots=_y();if(e.vnode.shapeFlag&32){const o=t._;o?(zt(r,t),I0(r,"_",o,!0)):Ey(t,r)}else t&&Ly(e,t)},pk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=_t;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:(zt(s,t),!r&&d===1&&delete s._):(c=!t.$stable,Ey(t,s)),f=t}else t&&(Ly(e,t),f={default:1});if(c)for(const d in s)!Cy(d)&&f[d]==null&&delete s[d]};function wd(e,t,r,o,s=!1){if(ze(e)){e.forEach((b,x)=>wd(b,t&&(ze(t)?t[x]:t),r,o,s));return}if(_l(o)&&!s)return;const c=o.shapeFlag&4?ku(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===_t?d.refs={}:d.refs,y=d.setupState;if(p!=null&&p!==h&&($t(p)?(v[p]=null,ct(y,p)&&(y[p]=null)):It(p)&&(p.value=null)),Xe(h))Wi(h,d,12,[f,v]);else{const b=$t(h),x=It(h);if(b||x){const E=()=>{if(e.f){const C=b?ct(y,h)?y[h]:v[h]:h.value;s?ze(C)&&ah(C,c):ze(C)?C.includes(c)||C.push(c):b?(v[h]=[c],ct(y,h)&&(y[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else b?(v[h]=f,ct(y,h)&&(y[h]=f)):x&&(h.value=f,e.k&&(v[e.k]=f))};f?(E.id=-1,Nn(E,r)):E()}}}const Nn=WS;function gk(e){return vk(e)}function vk(e,t){const r=H0();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:y,nextSibling:b,setScopeId:x=Zn,insertStaticContent:E}=e,C=(O,F,Z,ce=null,se=null,ve=null,Se=void 0,ue=null,ye=!!F.dynamicChildren)=>{if(O===F)return;O&&!Nr(O,F)&&(ce=X(O),Ve(O,se,ve,!0),O=null),F.patchFlag===-2&&(ye=!1,F.dynamicChildren=null);const{type:he,ref:Ae,shapeFlag:Ie}=F;switch(he){case _u:M(O,F,Z,ce);break;case dn:N(O,F,Z,ce);break;case Wf:O==null&&L(F,Z,ce,Se);break;case ht:K(O,F,Z,ce,se,ve,Se,ue,ye);break;default:Ie&1?H(O,F,Z,ce,se,ve,Se,ue,ye):Ie&6?V(O,F,Z,ce,se,ve,Se,ue,ye):(Ie&64||Ie&128)&&he.process(O,F,Z,ce,se,ve,Se,ue,ye,Ne)}Ae!=null&&se&&wd(Ae,O&&O.ref,ve,F||O,!F)},M=(O,F,Z,ce)=>{if(O==null)o(F.el=d(F.children),Z,ce);else{const se=F.el=O.el;F.children!==O.children&&p(se,F.children)}},N=(O,F,Z,ce)=>{O==null?o(F.el=h(F.children||""),Z,ce):F.el=O.el},L=(O,F,Z,ce)=>{[O.el,O.anchor]=E(O.children,F,Z,ce,O.el,O.anchor)},D=({el:O,anchor:F},Z,ce)=>{let se;for(;O&&O!==F;)se=b(O),o(O,Z,ce),O=se;o(F,Z,ce)},A=({el:O,anchor:F})=>{let Z;for(;O&&O!==F;)Z=b(O),s(O),O=Z;s(F)},H=(O,F,Z,ce,se,ve,Se,ue,ye)=>{F.type==="svg"?Se="svg":F.type==="math"&&(Se="mathml"),O==null?z(F,Z,ce,se,ve,Se,ue,ye):ne(O,F,se,ve,Se,ue,ye)},z=(O,F,Z,ce,se,ve,Se,ue)=>{let ye,he;const{props:Ae,shapeFlag:Ie,transition:De,dirs:We}=O;if(ye=O.el=f(O.type,ve,Ae&&Ae.is,Ae),Ie&8?v(ye,O.children):Ie&16&&ie(O.children,ye,null,ce,se,qf(O,ve),Se,ue),We&&go(O,null,ce,"created"),J(ye,O,O.scopeId,Se,ce),Ae){for(const vt in Ae)vt!=="value"&&!bl(vt)&&c(ye,vt,null,Ae[vt],ve,O.children,ce,se,Te);"value"in Ae&&c(ye,"value",null,Ae.value,ve),(he=Ae.onVnodeBeforeMount)&&Ar(he,ce,O)}We&&go(O,null,ce,"beforeMount");const Ge=mk(se,De);Ge&&De.beforeEnter(ye),o(ye,F,Z),((he=Ae&&Ae.onVnodeMounted)||Ge||We)&&Nn(()=>{he&&Ar(he,ce,O),Ge&&De.enter(ye),We&&go(O,null,ce,"mounted")},se)},J=(O,F,Z,ce,se)=>{if(Z&&x(O,Z),ce)for(let ve=0;ve<ce.length;ve++)x(O,ce[ve]);if(se){let ve=se.subTree;if(F===ve){const Se=se.vnode;J(O,Se,Se.scopeId,Se.slotScopeIds,se.parent)}}},ie=(O,F,Z,ce,se,ve,Se,ue,ye=0)=>{for(let he=ye;he<O.length;he++){const Ae=O[he]=ue?Pi(O[he]):vr(O[he]);C(null,Ae,F,Z,ce,se,ve,Se,ue)}},ne=(O,F,Z,ce,se,ve,Se)=>{const ue=F.el=O.el;let{patchFlag:ye,dynamicChildren:he,dirs:Ae}=F;ye|=O.patchFlag&16;const Ie=O.props||_t,De=F.props||_t;let We;if(Z&&vo(Z,!1),(We=De.onVnodeBeforeUpdate)&&Ar(We,Z,F,O),Ae&&go(F,O,Z,"beforeUpdate"),Z&&vo(Z,!0),he?j(O.dynamicChildren,he,ue,Z,ce,qf(F,se),ve):Se||re(O,F,ue,null,Z,ce,qf(F,se),ve,!1),ye>0){if(ye&16)te(ue,F,Ie,De,Z,ce,se);else if(ye&2&&Ie.class!==De.class&&c(ue,"class",null,De.class,se),ye&4&&c(ue,"style",Ie.style,De.style,se),ye&8){const Ge=F.dynamicProps;for(let vt=0;vt<Ge.length;vt++){const et=Ge[vt],tt=Ie[et],Ft=De[et];(Ft!==tt||et==="value")&&c(ue,et,tt,Ft,se,O.children,Z,ce,Te)}}ye&1&&O.children!==F.children&&v(ue,F.children)}else!Se&&he==null&&te(ue,F,Ie,De,Z,ce,se);((We=De.onVnodeUpdated)||Ae)&&Nn(()=>{We&&Ar(We,Z,F,O),Ae&&go(F,O,Z,"updated")},ce)},j=(O,F,Z,ce,se,ve,Se)=>{for(let ue=0;ue<F.length;ue++){const ye=O[ue],he=F[ue],Ae=ye.el&&(ye.type===ht||!Nr(ye,he)||ye.shapeFlag&70)?y(ye.el):Z;C(ye,he,Ae,null,ce,se,ve,Se,!0)}},te=(O,F,Z,ce,se,ve,Se)=>{if(Z!==ce){if(Z!==_t)for(const ue in Z)!bl(ue)&&!(ue in ce)&&c(O,ue,Z[ue],null,Se,F.children,se,ve,Te);for(const ue in ce){if(bl(ue))continue;const ye=ce[ue],he=Z[ue];ye!==he&&ue!=="value"&&c(O,ue,he,ye,Se,F.children,se,ve,Te)}"value"in ce&&c(O,"value",Z.value,ce.value,Se)}},K=(O,F,Z,ce,se,ve,Se,ue,ye)=>{const he=F.el=O?O.el:d(""),Ae=F.anchor=O?O.anchor:d("");let{patchFlag:Ie,dynamicChildren:De,slotScopeIds:We}=F;We&&(ue=ue?ue.concat(We):We),O==null?(o(he,Z,ce),o(Ae,Z,ce),ie(F.children||[],Z,Ae,se,ve,Se,ue,ye)):Ie>0&&Ie&64&&De&&O.dynamicChildren?(j(O.dynamicChildren,De,Z,se,ve,Se,ue),(F.key!=null||se&&F===se.subTree)&&Ay(O,F,!0)):re(O,F,Z,Ae,se,ve,Se,ue,ye)},V=(O,F,Z,ce,se,ve,Se,ue,ye)=>{F.slotScopeIds=ue,O==null?F.shapeFlag&512?se.ctx.activate(F,Z,ce,Se,ye):I(F,Z,ce,se,ve,Se,ye):k(O,F,ye)},I=(O,F,Z,ce,se,ve,Se)=>{const ue=O.component=Ok(O,ce,se);if(xu(O)&&(ue.ctx.renderer=Ne),Pk(ue),ue.asyncDep){if(se&&se.registerDep(ue,q,Se),!O.el){const ye=ue.subTree=Pe(dn);N(null,ye,F,Z)}}else q(ue,O,F,Z,se,ve,Se)},k=(O,F,Z)=>{const ce=F.component=O.component;if(PS(O,F,Z))if(ce.asyncDep&&!ce.asyncResolved){W(ce,F,Z);return}else ce.next=F,LS(ce.update),ce.effect.dirty=!0,ce.update();else F.el=O.el,ce.vnode=F},q=(O,F,Z,ce,se,ve,Se)=>{const ue=()=>{if(O.isMounted){let{next:Ae,bu:Ie,u:De,parent:We,vnode:Ge}=O;{const Jt=My(O);if(Jt){Ae&&(Ae.el=Ge.el,W(O,Ae,Se)),Jt.asyncDep.then(()=>{O.isUnmounted||ue()});return}}let vt=Ae,et;vo(O,!1),Ae?(Ae.el=Ge.el,W(O,Ae,Se)):Ae=Ge,Ie&&gc(Ie),(et=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Ar(et,We,Ae,Ge),vo(O,!0);const tt=Ff(O),Ft=O.subTree;O.subTree=tt,C(Ft,tt,y(Ft.el),X(Ft),O,se,ve),Ae.el=tt.el,vt===null&&_h(O,tt.el),De&&Nn(De,se),(et=Ae.props&&Ae.props.onVnodeUpdated)&&Nn(()=>Ar(et,We,Ae,Ge),se)}else{let Ae;const{el:Ie,props:De}=F,{bm:We,m:Ge,parent:vt}=O,et=_l(F);if(vo(O,!1),We&&gc(We),!et&&(Ae=De&&De.onVnodeBeforeMount)&&Ar(Ae,vt,F),vo(O,!0),Ie&&Ye){const tt=()=>{O.subTree=Ff(O),Ye(Ie,O.subTree,O,se,null)};et?F.type.__asyncLoader().then(()=>!O.isUnmounted&&tt()):tt()}else{const tt=O.subTree=Ff(O);C(null,tt,Z,ce,O,se,ve),F.el=tt.el}if(Ge&&Nn(Ge,se),!et&&(Ae=De&&De.onVnodeMounted)){const tt=F;Nn(()=>Ar(Ae,vt,tt),se)}(F.shapeFlag&256||vt&&_l(vt.vnode)&&vt.vnode.shapeFlag&256)&&O.a&&Nn(O.a,se),O.isMounted=!0,F=Z=ce=null}},ye=O.effect=new uh(ue,Zn,()=>xh(he),O.scope),he=O.update=()=>{ye.dirty&&ye.run()};he.id=O.uid,vo(O,!0),he()},W=(O,F,Z)=>{F.component=O;const ce=O.vnode.props;O.vnode=F,O.next=null,fk(O,F.props,ce,Z),pk(O,F.children,Z),Qi(),bv(O),eo()},re=(O,F,Z,ce,se,ve,Se,ue,ye=!1)=>{const he=O&&O.children,Ae=O?O.shapeFlag:0,Ie=F.children,{patchFlag:De,shapeFlag:We}=F;if(De>0){if(De&128){Me(he,Ie,Z,ce,se,ve,Se,ue,ye);return}else if(De&256){me(he,Ie,Z,ce,se,ve,Se,ue,ye);return}}We&8?(Ae&16&&Te(he,se,ve),Ie!==he&&v(Z,Ie)):Ae&16?We&16?Me(he,Ie,Z,ce,se,ve,Se,ue,ye):Te(he,se,ve,!0):(Ae&8&&v(Z,""),We&16&&ie(Ie,Z,ce,se,ve,Se,ue,ye))},me=(O,F,Z,ce,se,ve,Se,ue,ye)=>{O=O||us,F=F||us;const he=O.length,Ae=F.length,Ie=Math.min(he,Ae);let De;for(De=0;De<Ie;De++){const We=F[De]=ye?Pi(F[De]):vr(F[De]);C(O[De],We,Z,null,se,ve,Se,ue,ye)}he>Ae?Te(O,se,ve,!0,!1,Ie):ie(F,Z,ce,se,ve,Se,ue,ye,Ie)},Me=(O,F,Z,ce,se,ve,Se,ue,ye)=>{let he=0;const Ae=F.length;let Ie=O.length-1,De=Ae-1;for(;he<=Ie&&he<=De;){const We=O[he],Ge=F[he]=ye?Pi(F[he]):vr(F[he]);if(Nr(We,Ge))C(We,Ge,Z,null,se,ve,Se,ue,ye);else break;he++}for(;he<=Ie&&he<=De;){const We=O[Ie],Ge=F[De]=ye?Pi(F[De]):vr(F[De]);if(Nr(We,Ge))C(We,Ge,Z,null,se,ve,Se,ue,ye);else break;Ie--,De--}if(he>Ie){if(he<=De){const We=De+1,Ge=We<Ae?F[We].el:ce;for(;he<=De;)C(null,F[he]=ye?Pi(F[he]):vr(F[he]),Z,Ge,se,ve,Se,ue,ye),he++}}else if(he>De)for(;he<=Ie;)Ve(O[he],se,ve,!0),he++;else{const We=he,Ge=he,vt=new Map;for(he=Ge;he<=De;he++){const Qt=F[he]=ye?Pi(F[he]):vr(F[he]);Qt.key!=null&&vt.set(Qt.key,he)}let et,tt=0;const Ft=De-Ge+1;let Jt=!1,ir=0;const In=new Array(Ft);for(he=0;he<Ft;he++)In[he]=0;for(he=We;he<=Ie;he++){const Qt=O[he];if(tt>=Ft){Ve(Qt,se,ve,!0);continue}let Ue;if(Qt.key!=null)Ue=vt.get(Qt.key);else for(et=Ge;et<=De;et++)if(In[et-Ge]===0&&Nr(Qt,F[et])){Ue=et;break}Ue===void 0?Ve(Qt,se,ve,!0):(In[Ue-Ge]=he+1,Ue>=ir?ir=Ue:Jt=!0,C(Qt,F[Ue],Z,null,se,ve,Se,ue,ye),tt++)}const or=Jt?yk(In):us;for(et=or.length-1,he=Ft-1;he>=0;he--){const Qt=Ge+he,Ue=F[Qt],no=Qt+1<Ae?F[Qt+1].el:ce;In[he]===0?C(null,Ue,Z,no,se,ve,Se,ue,ye):Jt&&(et<0||he!==or[et]?Be(Ue,Z,no,2):et--)}}},Be=(O,F,Z,ce,se=null)=>{const{el:ve,type:Se,transition:ue,children:ye,shapeFlag:he}=O;if(he&6){Be(O.component.subTree,F,Z,ce);return}if(he&128){O.suspense.move(F,Z,ce);return}if(he&64){Se.move(O,F,Z,Ne);return}if(Se===ht){o(ve,F,Z);for(let Ie=0;Ie<ye.length;Ie++)Be(ye[Ie],F,Z,ce);o(O.anchor,F,Z);return}if(Se===Wf){D(O,F,Z);return}if(ce!==2&&he&1&&ue)if(ce===0)ue.beforeEnter(ve),o(ve,F,Z),Nn(()=>ue.enter(ve),se);else{const{leave:Ie,delayLeave:De,afterLeave:We}=ue,Ge=()=>o(ve,F,Z),vt=()=>{Ie(ve,()=>{Ge(),We&&We()})};De?De(ve,Ge,vt):vt()}else o(ve,F,Z)},Ve=(O,F,Z,ce=!1,se=!1)=>{const{type:ve,props:Se,ref:ue,children:ye,dynamicChildren:he,shapeFlag:Ae,patchFlag:Ie,dirs:De,memoIndex:We}=O;if(Ie===-2&&(se=!1),ue!=null&&wd(ue,null,Z,O,!0),We!=null&&(F.renderCache[We]=void 0),Ae&256){F.ctx.deactivate(O);return}const Ge=Ae&1&&De,vt=!_l(O);let et;if(vt&&(et=Se&&Se.onVnodeBeforeUnmount)&&Ar(et,F,O),Ae&6)Ze(O.component,Z,ce);else{if(Ae&128){O.suspense.unmount(Z,ce);return}Ge&&go(O,null,F,"beforeUnmount"),Ae&64?O.type.remove(O,F,Z,Ne,ce):he&&(ve!==ht||Ie>0&&Ie&64)?Te(he,F,Z,!1,!0):(ve===ht&&Ie&384||!se&&Ae&16)&&Te(ye,F,Z),ce&&it(O)}(vt&&(et=Se&&Se.onVnodeUnmounted)||Ge)&&Nn(()=>{et&&Ar(et,F,O),Ge&&go(O,null,F,"unmounted")},Z)},it=O=>{const{type:F,el:Z,anchor:ce,transition:se}=O;if(F===ht){nt(Z,ce);return}if(F===Wf){A(O);return}const ve=()=>{s(Z),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(O.shapeFlag&1&&se&&!se.persisted){const{leave:Se,delayLeave:ue}=se,ye=()=>Se(Z,ve);ue?ue(O.el,ve,ye):ye()}else ve()},nt=(O,F)=>{let Z;for(;O!==F;)Z=b(O),s(O),O=Z;s(F)},Ze=(O,F,Z)=>{const{bum:ce,scope:se,update:ve,subTree:Se,um:ue,m:ye,a:he}=O;Nv(ye),Nv(he),ce&&gc(ce),se.stop(),ve&&(ve.active=!1,Ve(Se,O,F,Z)),ue&&Nn(ue,F),Nn(()=>{O.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Te=(O,F,Z,ce=!1,se=!1,ve=0)=>{for(let Se=ve;Se<O.length;Se++)Ve(O[Se],F,Z,ce,se)},X=O=>O.shapeFlag&6?X(O.component.subTree):O.shapeFlag&128?O.suspense.next():b(O.anchor||O.el);let ae=!1;const de=(O,F,Z)=>{O==null?F._vnode&&Ve(F._vnode,null,null,!0):C(F._vnode||null,O,F,null,null,null,Z),ae||(ae=!0,bv(),fy(),ae=!1),F._vnode=O},Ne={p:C,um:Ve,m:Be,r:it,mt:I,mc:ie,pc:re,pbc:j,n:X,o:e};let Ee,Ye;return{render:de,hydrate:Ee,createApp:ck(de,Ee)}}function qf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function vo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function mk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ay(e,t,r=!1){const o=e.children,s=t.children;if(ze(o)&&ze(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Pi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Ay(f,d)),d.type===_u&&(d.el=f.el)}}function yk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function My(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:My(t)}function Nv(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const bk=Symbol.for("v-scx"),wk=()=>ri(bk);function Eh(e,t){return wu(e,null,t)}function xk(e,t){return wu(e,null,{flush:"sync"})}const Qa={};function qt(e,t,r){return wu(e,t,r)}function wu(e,t,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:d}=_t){if(t&&c){const z=t;t=(...J)=>{z(...J),H()}}const h=sn,p=z=>o===!0?z:Ii(z,o===!1?1:void 0);let v,y=!1,b=!1;if(It(e)?(v=()=>e.value,y=$c(e)):wl(e)?(v=()=>p(e),y=!0):ze(e)?(b=!0,y=e.some(z=>wl(z)||$c(z)),v=()=>e.map(z=>{if(It(z))return z.value;if(wl(z))return p(z);if(Xe(z))return Wi(z,h,2)})):Xe(e)?t?v=()=>Wi(e,h,2):v=()=>(x&&x(),tr(e,h,3,[E])):v=Zn,t&&o){const z=v;v=()=>Ii(z())}let x,E=z=>{x=D.onStop=()=>{Wi(z,h,4),x=D.onStop=void 0}},C;if(Su)if(E=Zn,t?r&&tr(t,h,3,[v(),b?[]:void 0,E]):v(),s==="sync"){const z=wk();C=z.__watcherHandles||(z.__watcherHandles=[])}else return Zn;let M=b?new Array(e.length).fill(Qa):Qa;const N=()=>{if(!(!D.active||!D.dirty))if(t){const z=D.run();(o||y||(b?z.some((J,ie)=>zr(J,M[ie])):zr(z,M)))&&(x&&x(),tr(t,h,3,[z,M===Qa?void 0:b&&M[0]===Qa?[]:M,E]),M=z)}else D.run()};N.allowRecurse=!!t;let L;s==="sync"?L=N:s==="post"?L=()=>Nn(N,h&&h.suspense):(N.pre=!0,h&&(N.id=h.uid),L=()=>xh(N));const D=new uh(v,Zn,L),A=V0(),H=()=>{D.stop(),A&&ah(A.effects,D)};return t?r?N():M=D.run():s==="post"?Nn(D.run.bind(D),h&&h.suspense):D.run(),C&&C.push(H),H}function _k(e,t,r){const o=this.proxy,s=$t(e)?e.includes(".")?Ny(o,e):()=>o[e]:e.bind(o,o);let c;Xe(t)?c=t:(c=t.handler,r=t);const f=la(this),d=wu(s,c.bind(o),r);return f(),d}function Ny(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Ii(e,t=1/0,r){if(t<=0||!xt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,It(e))Ii(e.value,t,r);else if(ze(e))for(let o=0;o<e.length;o++)Ii(e[o],t,r);else if(au(e)||fs(e))e.forEach(o=>{Ii(o,t,r)});else if(z0(e)){for(const o in e)Ii(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ii(e[o],t,r)}return e}const xu=e=>e.type.__isKeepAlive;function Sk(e,t){$y(e,"a",t)}function kk(e,t){$y(e,"da",t)}function $y(e,t,r=sn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(yu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)xu(s.parent.vnode)&&Tk(o,t,r,s),s=s.parent}}function Tk(e,t,r,o){const s=yu(t,e,o,!0);bu(()=>{ah(o[t],s)},r)}const Oi=Symbol("_leaveCb"),ec=Symbol("_enterCb");function Ck(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ms(()=>{e.isMounted=!0}),my(()=>{e.isUnmounting=!0}),e}const Xn=[Function,Array],Oy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xn,onEnter:Xn,onAfterEnter:Xn,onEnterCancelled:Xn,onBeforeLeave:Xn,onLeave:Xn,onAfterLeave:Xn,onLeaveCancelled:Xn,onBeforeAppear:Xn,onAppear:Xn,onAfterAppear:Xn,onAppearCancelled:Xn},Py=e=>{const t=e.subTree;return t.component?Py(t.component):t},Ek={name:"BaseTransition",props:Oy,setup(e,{slots:t}){const r=sa(),o=Ck();return()=>{const s=t.default&&Dy(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const b of s)if(b.type!==dn){c=b;break}}const f=pt(e),{mode:d}=f;if(o.isLeaving)return Bf(c);const h=$v(c);if(!h)return Bf(c);let p=xd(h,f,o,r,b=>p=b);zc(h,p);const v=r.subTree,y=v&&$v(v);if(y&&y.type!==dn&&!Nr(h,y)&&Py(r).type!==dn){const b=xd(y,f,o,r);if(zc(y,b),d==="out-in"&&h.type!==dn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Bf(c);d==="in-out"&&h.type!==dn&&(b.delayLeave=(x,E,C)=>{const M=Ry(o,y);M[String(y.key)]=y,x[Oi]=()=>{E(),x[Oi]=void 0,delete p.delayedLeave},p.delayedLeave=C})}return c}}},Lk=Ek;function Ry(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function xd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:b,onLeave:x,onAfterLeave:E,onLeaveCancelled:C,onBeforeAppear:M,onAppear:N,onAfterAppear:L,onAppearCancelled:D}=t,A=String(e.key),H=Ry(r,e),z=(ne,j)=>{ne&&tr(ne,o,9,j)},J=(ne,j)=>{const te=j[1];z(ne,j),ze(ne)?ne.every(K=>K.length<=1)&&te():ne.length<=1&&te()},ie={mode:f,persisted:d,beforeEnter(ne){let j=h;if(!r.isMounted)if(c)j=M||h;else return;ne[Oi]&&ne[Oi](!0);const te=H[A];te&&Nr(e,te)&&te.el[Oi]&&te.el[Oi](),z(j,[ne])},enter(ne){let j=p,te=v,K=y;if(!r.isMounted)if(c)j=N||p,te=L||v,K=D||y;else return;let V=!1;const I=ne[ec]=k=>{V||(V=!0,k?z(K,[ne]):z(te,[ne]),ie.delayedLeave&&ie.delayedLeave(),ne[ec]=void 0)};j?J(j,[ne,I]):I()},leave(ne,j){const te=String(e.key);if(ne[ec]&&ne[ec](!0),r.isUnmounting)return j();z(b,[ne]);let K=!1;const V=ne[Oi]=I=>{K||(K=!0,j(),I?z(C,[ne]):z(E,[ne]),ne[Oi]=void 0,H[te]===e&&delete H[te])};H[te]=e,x?J(x,[ne,V]):V()},clone(ne){const j=xd(ne,t,r,o,s);return s&&s(j),j}};return ie}function Bf(e){if(xu(e))return e=ji(e),e.children=null,e}function $v(e){if(!xu(e))return e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Xe(r.default))return r.default()}}function zc(e,t){e.shapeFlag&6&&e.component?zc(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 Dy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ht?(f.patchFlag&128&&s++,o=o.concat(Dy(f.children,t,d))):(t||f.type!==dn)&&o.push(d!=null?ji(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}const Ak=e=>e.__isTeleport,ht=Symbol.for("v-fgt"),_u=Symbol.for("v-txt"),dn=Symbol.for("v-cmt"),Wf=Symbol.for("v-stc"),Tl=[];let Jn=null;function le(e=!1){Tl.push(Jn=e?null:[])}function zy(){Tl.pop(),Jn=Tl[Tl.length-1]||null}let ws=1;function Ic(e){ws+=e}function Iy(e){return e.dynamicChildren=ws>0?Jn||us:null,zy(),ws>0&&Jn&&Jn.push(e),e}function be(e,t,r,o,s,c){return Iy(Y(e,t,r,o,s,c,!0))}function ot(e,t,r,o,s){return Iy(Pe(e,t,r,o,s,!0))}function Fl(e){return e?e.__v_isVNode===!0:!1}function Nr(e,t){return e.type===t.type&&e.key===t.key}const Fy=({key:e})=>e??null,mc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?$t(e)||It(e)||Xe(e)?{i:Yt,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ht?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fy(t),ref:t&&mc(t),scopeId:gu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Yt};return d?(Lh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=$t(r)?8:16),ws>0&&!f&&Jn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Jn.push(h),h}const Pe=Mk;function Mk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===gy)&&(e=dn),Fl(e)){const d=ji(e,t,!0);return r&&Lh(d,r),ws>0&&!c&&Jn&&(d.shapeFlag&6?Jn[Jn.indexOf(e)]=d:Jn.push(d)),d.patchFlag=-2,d}if(Ik(e)&&(e=e.__vccOpts),t){t=Hy(t);let{class:d,style:h}=t;d&&!$t(d)&&(t.class=st(d)),xt(h)&&(ry(h)&&!ze(h)&&(h=zt({},h)),t.style=Zt(h))}const f=$t(e)?1:DS(e)?128:Ak(e)?64:xt(e)?4:Xe(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function Hy(e){return e?ry(e)||Sy(e)?zt({},e):e:null}function ji(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ii(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Fy(p),ref:t&&t.ref?r&&c?ze(c)?c.concat(mc(t)):[c,mc(t)]:mc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ht?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ji(e.ssContent),ssFallback:e.ssFallback&&ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&zc(v,h.clone(v)),v}function dt(e=" ",t=0){return Pe(_u,null,e,t)}function rt(e="",t=!1){return t?(le(),ot(dn,null,e)):Pe(dn,null,e)}function vr(e){return e==null||typeof e=="boolean"?Pe(dn):ze(e)?Pe(ht,null,e.slice()):typeof e=="object"?Pi(e):Pe(_u,null,String(e))}function Pi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ji(e)}function Lh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Lh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Sy(t)?t._ctx=Yt:s===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Yt},r=32):(t=String(t),o&64?(r=16,t=[dt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ii(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=st([t.class,o.class]));else if(s==="style")t.style=Zt([t.style,o.style]);else if(lu(s)){const c=t[s],f=o[s];f&&c!==f&&!(ze(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Ar(e,t,r,o=null){tr(e,t,7,[r,o])}const Nk=wy();let $k=0;function Ok(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Nk,c={uid:$k++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Y_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ty(o,s),emitsOptions:hy(o,s),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:o.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=MS.bind(null,c),e.ce&&e.ce(c),c}let sn=null;const sa=()=>sn||Yt;let Fc,_d;{const e=H0(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Fc=t("__VUE_INSTANCE_SETTERS__",r=>sn=r),_d=t("__VUE_SSR_SETTERS__",r=>Su=r)}const la=e=>{const t=sn;return Fc(e),e.scope.on(),()=>{e.scope.off(),Fc(t)}},Ov=()=>{sn&&sn.scope.off(),Fc(null)};function qy(e){return e.vnode.shapeFlag&4}let Su=!1;function Pk(e,t=!1){t&&_d(t);const{props:r,children:o}=e.vnode,s=qy(e);uk(e,r,s,t),hk(e,o);const c=s?Rk(e,t):void 0;return t&&_d(!1),c}function Rk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ek);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Wy(e):null,c=la(e);Qi();const f=Wi(o,e,0,[e.props,s]);if(eo(),c(),R0(f)){if(f.then(Ov,Ov),t)return f.then(d=>{Sd(e,d,t)}).catch(d=>{oa(d,e,0)});e.asyncDep=f}else Sd(e,f,t)}else By(e,t)}function Sd(e,t,r){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=sy(t)),By(e,r)}let Pv;function By(e,t,r){const o=e.type;if(!e.render){if(!t&&Pv&&!o.render){const s=o.template||Th(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=zt(zt({isCustomElement:c,delimiters:d},f),h);o.render=Pv(s,p)}}e.render=o.render||Zn}{const s=la(e);Qi();try{rk(e)}finally{eo(),s()}}}const Dk={get(e,t){return Dn(e,"get",""),e[t]}};function Wy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Dk),slots:e.slots,emit:e.emit,expose:t}}function ku(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(sy(mh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Sl)return Sl[r](e)},has(t,r){return r in t||r in Sl}})):e.proxy}function zk(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ik(e){return Xe(e)&&"__vccOpts"in e}const $e=(e,t)=>bS(e,t,Su);function Ah(e,t,r=_t){const o=sa(),s=wr(t),c=Ji(t),f=ly((h,p)=>{let v;return xk(()=>{const y=e[t];zr(v,y)&&(v=y,p())}),{get(){return h(),r.get?r.get(v):v},set(y){const b=o.vnode.props;!(b&&(t in b||s in b||c in b)&&(`onUpdate:${t}`in b||`onUpdate:${s}`in b||`onUpdate:${c}`in b))&&zr(y,v)&&(v=y,p()),o.emit(`update:${t}`,r.set?r.set(y):y)}}}),d="modelModifiers";return f[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?e[d]||{}:f,done:!1}:{done:!0}}}},f}function aa(e,t,r){const o=arguments.length;return o===2?xt(t)&&!ze(t)?Fl(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Fl(r)&&(r=[r]),Pe(e,t,r))}const Fk="3.4.31";/**
14
- * @vue/runtime-dom v3.4.31
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/const Hk="http://www.w3.org/2000/svg",qk="http://www.w3.org/1998/Math/MathML",Qr=typeof document<"u"?document:null,Rv=Qr&&Qr.createElement("template"),Bk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?Qr.createElementNS(Hk,e):t==="mathml"?Qr.createElementNS(qk,e):r?Qr.createElement(e,{is:r}):Qr.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>Qr.createTextNode(e),createComment:e=>Qr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Rv.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const d=Rv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ci="transition",cl="animation",Hl=Symbol("_vtc"),Mh=(e,{slots:t})=>aa(Lk,Wk(e),t);Mh.displayName="Transition";const Uy={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};Mh.props=zt({},Oy,Uy);const mo=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Dv=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function Wk(e){const t={};for(const K in e)K in Uy||(t[K]=e[K]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,E=Uk(s),C=E&&E[0],M=E&&E[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:D,onLeave:A,onLeaveCancelled:H,onBeforeAppear:z=N,onAppear:J=L,onAppearCancelled:ie=D}=t,ne=(K,V,I)=>{yo(K,V?v:d),yo(K,V?p:f),I&&I()},j=(K,V)=>{K._isLeaving=!1,yo(K,y),yo(K,x),yo(K,b),V&&V()},te=K=>(V,I)=>{const k=K?J:L,q=()=>ne(V,K,I);mo(k,[V,q]),zv(()=>{yo(V,K?h:c),Ei(V,K?v:d),Dv(k)||Iv(V,o,C,q)})};return zt(t,{onBeforeEnter(K){mo(N,[K]),Ei(K,c),Ei(K,f)},onBeforeAppear(K){mo(z,[K]),Ei(K,h),Ei(K,p)},onEnter:te(!1),onAppear:te(!0),onLeave(K,V){K._isLeaving=!0;const I=()=>j(K,V);Ei(K,y),Ei(K,b),Gk(),zv(()=>{K._isLeaving&&(yo(K,y),Ei(K,x),Dv(A)||Iv(K,o,M,I))}),mo(A,[K,I])},onEnterCancelled(K){ne(K,!1),mo(D,[K])},onAppearCancelled(K){ne(K,!0),mo(ie,[K])},onLeaveCancelled(K){j(K),mo(H,[K])}})}function Uk(e){if(e==null)return null;if(xt(e))return[Uf(e.enter),Uf(e.leave)];{const t=Uf(e);return[t,t]}}function Uf(e){return F0(e)}function Ei(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Hl]||(e[Hl]=new Set)).add(t)}function yo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Hl];r&&(r.delete(t),r.size||(e[Hl]=void 0))}function zv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Vk=0;function Iv(e,t,r,o){const s=e._endId=++Vk,c=()=>{s===e._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=jk(e,t);if(!f)return o();const p=f+"end";let v=0;const y=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&y()};setTimeout(()=>{v<h&&y()},d+1),e.addEventListener(p,b)}function jk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Ci}Delay`),c=o(`${Ci}Duration`),f=Fv(s,c),d=o(`${cl}Delay`),h=o(`${cl}Duration`),p=Fv(d,h);let v=null,y=0,b=0;t===Ci?f>0&&(v=Ci,y=f,b=c.length):t===cl?p>0&&(v=cl,y=p,b=h.length):(y=Math.max(f,p),v=y>0?f>p?Ci:cl:null,b=v?v===Ci?c.length:h.length:0);const x=v===Ci&&/\b(transform|all)(,|$)/.test(o(`${Ci}Property`).toString());return{type:v,timeout:y,propCount:b,hasTransform:x}}function Fv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Hv(r)+Hv(e[o])))}function Hv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Gk(){return document.body.offsetHeight}function Kk(e,t,r){const o=e[Hl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Hc=Symbol("_vod"),Vy=Symbol("_vsh"),vl={beforeMount(e,{value:t},{transition:r}){e[Hc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ul(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),ul(e,!0),o.enter(e)):o.leave(e,()=>{ul(e,!1)}):ul(e,t))},beforeUnmount(e,{value:t}){ul(e,t)}};function ul(e,t){e.style.display=t?e[Hc]:"none",e[Vy]=!t}const Xk=Symbol(""),Yk=/(^|;)\s*display\s*:/;function Zk(e,t,r){const o=e.style,s=$t(r);let c=!1;if(r&&!s){if(t)if($t(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&yc(o,d,"")}else for(const f in t)r[f]==null&&yc(o,f,"");for(const f in r)f==="display"&&(c=!0),yc(o,f,r[f])}else if(s){if(t!==r){const f=o[Xk];f&&(r+=";"+f),o.cssText=r,c=Yk.test(r)}}else t&&e.removeAttribute("style");Hc in e&&(e[Hc]=c?o.display:"",e[Vy]&&(o.display="none"))}const qv=/\s*!important$/;function yc(e,t,r){if(ze(r))r.forEach(o=>yc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=Jk(e,t);qv.test(r)?e.setProperty(Ji(o),r.replace(qv,""),"important"):e[o]=r}}const Bv=["Webkit","Moz","ms"],Vf={};function Jk(e,t){const r=Vf[t];if(r)return r;let o=wr(t);if(o!=="filter"&&o in e)return Vf[t]=o;o=uu(o);for(let s=0;s<Bv.length;s++){const c=Bv[s]+o;if(c in e)return Vf[t]=c}return t}const Wv="http://www.w3.org/1999/xlink";function Uv(e,t,r,o,s,c=K_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Wv,t.slice(6,t.length)):e.setAttributeNS(Wv,t,r):r==null||c&&!q0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Dr(r)?String(r):r)}function Qk(e,t,r,o,s,c,f){if(t==="innerHTML"||t==="textContent"){o&&f(o,s,c),e[t]=r??"";return}const d=e.tagName;if(t==="value"&&d!=="PROGRESS"&&!d.includes("-")){const p=d==="OPTION"?e.getAttribute("value")||"":e.value,v=r==null?"":String(r);(p!==v||!("_value"in e))&&(e.value=v),r==null&&e.removeAttribute(t),e._value=r;return}let h=!1;if(r===""||r==null){const p=typeof e[t];p==="boolean"?r=q0(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{e[t]=r}catch{}h&&e.removeAttribute(t)}function _o(e,t,r,o){e.addEventListener(t,r,o)}function eT(e,t,r,o){e.removeEventListener(t,r,o)}const Vv=Symbol("_vei");function tT(e,t,r,o,s=null){const c=e[Vv]||(e[Vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=nT(t);if(o){const p=c[t]=oT(o,s);_o(e,d,p,h)}else f&&(eT(e,d,f,h),c[t]=void 0)}}const jv=/(?:Once|Passive|Capture)$/;function nT(e){let t;if(jv.test(e)){t={};let o;for(;o=e.match(jv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ji(e.slice(2)),t]}let jf=0;const rT=Promise.resolve(),iT=()=>jf||(rT.then(()=>jf=0),jf=Date.now());function oT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;tr(sT(o,r.value),t,5,[o])};return r.value=e,r.attached=iT(),r}function sT(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Gv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lT=(e,t,r,o,s,c,f,d,h)=>{const p=s==="svg";t==="class"?Kk(e,o,p):t==="style"?Zk(e,r,o):lu(t)?lh(t)||tT(e,t,r,o,f):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):aT(e,t,o,p))?(Qk(e,t,o,c,f,d,h),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Uv(e,t,o,p,f,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Uv(e,t,o,p))};function aT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gv(t)&&Xe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gv(t)&&$t(r)?!1:t in e}const qc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>gc(t,r):t};function cT(e){e.target.composing=!0}function Kv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ps=Symbol("_assign"),uT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[ps]=qc(s);const c=o||s.props&&s.props.type==="number";_o(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=cd(d)),e[ps](d)}),r&&_o(e,"change",()=>{e.value=e.value.trim()}),t||(_o(e,"compositionstart",cT),_o(e,"compositionend",Kv),_o(e,"change",Kv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[ps]=qc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?cd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},fT={deep:!0,created(e,t,r){e[ps]=qc(r),_o(e,"change",()=>{const o=e._modelValue,s=dT(e),c=e.checked,f=e[ps];if(ze(o)){const d=B0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(au(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(jy(e,c))})},mounted:Xv,beforeUpdate(e,t,r){e[ps]=qc(r),Xv(e,t,r)}};function Xv(e,{value:t,oldValue:r},o){e._modelValue=t,ze(t)?e.checked=B0(t,o.props.value)>-1:au(t)?e.checked=t.has(o.props.value):t!==r&&(e.checked=fu(t,jy(e,!0)))}function dT(e){return"_value"in e?e._value:e.value}function jy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const hT=["ctrl","shift","alt","meta"],pT={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)=>hT.some(r=>e[`${r}Key`]&&!t.includes(r))},bc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=pT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},gT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=Ji(s.key);if(t.some(f=>f===c||gT[f]===c))return e(s)})},vT=zt({patchProp:lT},Bk);let Yv;function mT(){return Yv||(Yv=gk(vT))}const Gy=(...e)=>{const t=mT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=bT(o);if(!s)return;const c=t._component;!Xe(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,yT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function yT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bT(e){return $t(e)?document.querySelector(e):e}const to=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},wT={};function xT(e,t){const r=Lo("RouterView");return le(),ot(r)}const _T=to(wT,[["render",xT]]);/*!
18
- * vue-router v4.4.0
19
- * (c) 2024 Eduardo San Martin Morote
20
- * @license MIT
21
- */const ss=typeof document<"u";function ST(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const bt=Object.assign;function Gf(e,t){const r={};for(const o in t){const s=t[o];r[o]=xr(s)?s.map(e):e(s)}return r}const Cl=()=>{},xr=Array.isArray,Ky=/#/g,kT=/&/g,TT=/\//g,CT=/=/g,ET=/\?/g,Xy=/\+/g,LT=/%5B/g,AT=/%5D/g,Yy=/%5E/g,MT=/%60/g,Zy=/%7B/g,NT=/%7C/g,Jy=/%7D/g,$T=/%20/g;function Nh(e){return encodeURI(""+e).replace(NT,"|").replace(LT,"[").replace(AT,"]")}function OT(e){return Nh(e).replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function Td(e){return Nh(e).replace(Xy,"%2B").replace($T,"+").replace(Ky,"%23").replace(kT,"%26").replace(MT,"`").replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function PT(e){return Td(e).replace(CT,"%3D")}function RT(e){return Nh(e).replace(Ky,"%23").replace(ET,"%3F")}function DT(e){return e==null?"":RT(e).replace(TT,"%2F")}function ql(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const zT=/\/$/,IT=e=>e.replace(zT,"");function Kf(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=BT(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:ql(f)}}function FT(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Zv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function HT(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&xs(t.matched[o],r.matched[s])&&Qy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function xs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!qT(e[r],t[r]))return!1;return!0}function qT(e,t){return xr(e)?Jv(e,t):xr(t)?Jv(t,e):e===t}function Jv(e,t){return xr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function BT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Li={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bl;(function(e){e.pop="pop",e.push="push"})(Bl||(Bl={}));var El;(function(e){e.back="back",e.forward="forward",e.unknown=""})(El||(El={}));function WT(e){if(!e)if(ss){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),IT(e)}const UT=/^[^#]+#/;function VT(e,t){return e.replace(UT,"#")+t}function jT(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Tu=()=>({left:window.scrollX,top:window.scrollY});function GT(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=jT(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qv(e,t){return(history.state?history.state.position-t:-1)+e}const Cd=new Map;function KT(e,t){Cd.set(e,t)}function XT(e){const t=Cd.get(e);return Cd.delete(e),t}let YT=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),Zv(h,"")}return Zv(r,e)+o+s}function ZT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=eb(e,location),E=r.value,C=t.value;let M=0;if(b){if(r.value=x,t.value=b,f&&f===E){f=null;return}M=C?b.position-C.position:0}else o(x);s.forEach(N=>{N(r.value,E,{delta:M,type:Bl.pop,direction:M?M>0?El.forward:El.back:El.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Tu()}),"")}function y(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:y}}function em(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Tu():null}}function JT(e){const{history:t,location:r}=window,o={value:eb(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const y=e.indexOf("#"),b=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+h:YT()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,em(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Tu()});c(v.current,v,!0);const y=bt({},em(o.value,h,null),{position:v.position+1},p);c(h,y,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function QT(e){e=WT(e);const t=JT(e),r=ZT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:VT.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function eC(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),QT(e)}function tC(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var tm;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(tm||(tm={}));function _s(e,t){return bt(new Error,{type:e,[nb]:!0},t)}function Yr(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const nm="[^/]+?",nC={sensitive:!1,strict:!1,start:!0,end:!0},rC=/[.+*?^${}()[\]/\\]/g;function iC(e,t){const r=bt({},nC,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let y=0;y<p.length;y++){const b=p[y];let x=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(rC,"\\$&"),x+=40;else if(b.type===1){const{value:E,repeatable:C,optional:M,regexp:N}=b;c.push({name:E,repeatable:C,optional:M});const L=N||nm;if(L!==nm){x+=10;try{new RegExp(`(${L})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${E}" (${L}): `+A.message)}}let D=C?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;y||(D=M&&p.length<2?`(?:/${D})`:"/"+D),M&&(D+="?"),s+=D,x+=20,M&&(x+=-8),C&&(x+=-20),L===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),y={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",E=c[b-1];y[E.name]=x&&E.repeatable?x.split("/"):x}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:E,repeatable:C,optional:M}=x,N=E in p?p[E]:"";if(xr(N)&&!C)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const L=xr(N)?N.join("/"):N;if(!L)if(M)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${E}"`);v+=L}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function oC(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function rb(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=oC(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(rm(o))return 1;if(rm(s))return-1}return s.length-o.length}function rm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const sC={type:0,value:""},lC=/[a-zA-Z0-9_]/;function aC(e){if(!e)return[[]];if(e==="/")return[[sC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function y(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&y(),f()):h===":"?(y(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:lC.test(h)?b():(y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),f(),s}function cC(e,t,r){const o=iC(aC(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function uC(e,t){const r=[],o=new Map;t=sm({strict:!1,end:!0,sensitive:!1},t);function s(y){return o.get(y)}function c(y,b,x){const E=!x,C=fC(y);C.aliasOf=x&&x.record;const M=sm(t,y),N=[C];if("alias"in y){const A=typeof y.alias=="string"?[y.alias]:y.alias;for(const H of A)N.push(bt({},C,{components:x?x.record.components:C.components,path:H,aliasOf:x?x.record:C}))}let L,D;for(const A of N){const{path:H}=A;if(b&&H[0]!=="/"){const z=b.record.path,J=z[z.length-1]==="/"?"":"/";A.path=b.record.path+(H&&J+H)}if(L=cC(A,b,M),x?x.alias.push(L):(D=D||L,D!==L&&D.alias.push(L),E&&y.name&&!om(L)&&f(y.name)),ib(L)&&h(L),C.children){const z=C.children;for(let J=0;J<z.length;J++)c(z[J],L,x&&x.children[J])}x=x||L}return D?()=>{f(D)}:Cl}function f(y){if(tb(y)){const b=o.get(y);b&&(o.delete(y),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(y);b>-1&&(r.splice(b,1),y.record.name&&o.delete(y.record.name),y.children.forEach(f),y.alias.forEach(f))}}function d(){return r}function h(y){const b=pC(y,r);r.splice(b,0,y),y.record.name&&!om(y)&&o.set(y.record.name,y)}function p(y,b){let x,E={},C,M;if("name"in y&&y.name){if(x=o.get(y.name),!x)throw _s(1,{location:y});M=x.record.name,E=bt(im(b.params,x.keys.filter(D=>!D.optional).concat(x.parent?x.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),y.params&&im(y.params,x.keys.map(D=>D.name))),C=x.stringify(E)}else if(y.path!=null)C=y.path,x=r.find(D=>D.re.test(C)),x&&(E=x.parse(C),M=x.record.name);else{if(x=b.name?o.get(b.name):r.find(D=>D.re.test(b.path)),!x)throw _s(1,{location:y,currentLocation:b});M=x.record.name,E=bt({},b.params,y.params),C=x.stringify(E)}const N=[];let L=x;for(;L;)N.unshift(L.record),L=L.parent;return{name:M,path:C,params:E,matched:N,meta:hC(N)}}e.forEach(y=>c(y));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function im(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function fC(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:dC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function dC(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function om(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hC(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function sm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function pC(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rb(e,t[c])<0?o=c:r=c+1}const s=gC(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function gC(e){let t=e;for(;t=t.parent;)if(ib(t)&&rb(e,t)===0)return t}function ib({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function vC(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Xy," "),f=c.indexOf("="),d=ql(f<0?c:c.slice(0,f)),h=f<0?null:ql(c.slice(f+1));if(d in t){let p=t[d];xr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function lm(e){let t="";for(let r in e){const o=e[r];if(r=PT(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(xr(o)?o.map(c=>c&&Td(c)):[o&&Td(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function mC(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=xr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const yC=Symbol(""),am=Symbol(""),$h=Symbol(""),ob=Symbol(""),Ed=Symbol("");function fl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Ri(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(_s(4,{from:r,to:t})):b instanceof Error?h(b):tC(b)?h(_s(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let y=Promise.resolve(v);e.length<3&&(y=y.then(p)),y.catch(b=>h(b))})}function Xf(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(bC(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Ri(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const y=ST(v)?v.default:v;f.components[d]=y;const x=(y.__vccOpts||y)[t];return x&&Ri(x,r,o,f,d,s)()}))}}return c}function bC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cm(e){const t=ri($h),r=ri(ob),o=$e(()=>{const h=B(e.to);return t.resolve(h)}),s=$e(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],y=r.matched;if(!v||!y.length)return-1;const b=y.findIndex(xs.bind(null,v));if(b>-1)return b;const x=um(h[p-2]);return p>1&&um(v)===x&&y[y.length-1].path!==x?y.findIndex(xs.bind(null,h[p-2])):b}),c=$e(()=>s.value>-1&&SC(r.params,o.value.params)),f=$e(()=>s.value>-1&&s.value===r.matched.length-1&&Qy(r.params,o.value.params));function d(h={}){return _C(h)?t[B(e.replace)?"replace":"push"](B(e.to)).catch(Cl):Promise.resolve()}return{route:o,href:$e(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const wC=gt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:cm,setup(e,{slots:t}){const r=er(cm(e)),{options:o}=ri($h),s=$e(()=>({[fm(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[fm(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:aa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),xC=wC;function _C(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 SC(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!xr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function um(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fm=(e,t,r)=>e??t??r,kC=gt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=ri(Ed),s=$e(()=>e.route||o.value),c=ri(am,0),f=$e(()=>{let p=B(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=$e(()=>s.value.matched[f.value]);vc(am,$e(()=>f.value+1)),vc(yC,d),vc(Ed,s);const h=je();return qt(()=>[h.value,d.value,e.name],([p,v,y],[b,x,E])=>{v&&(v.instances[y]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!xs(v,x)||!b)&&(v.enterCallbacks[y]||[]).forEach(C=>C(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,y=d.value,b=y&&y.components[v];if(!b)return dm(r.default,{Component:b,route:p});const x=y.props[v],E=x?x===!0?p.params:typeof x=="function"?x(p):x:null,M=aa(b,bt({},E,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return dm(r.default,{Component:M,route:p})||M}}});function dm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const TC=kC;function CC(e){const t=uC(e.routes,e),r=e.parseQuery||vC,o=e.stringifyQuery||lm,s=e.history,c=fl(),f=fl(),d=fl(),h=Fr(Li);let p=Li;ss&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Gf.bind(null,X=>""+X),y=Gf.bind(null,DT),b=Gf.bind(null,ql);function x(X,ae){let de,Ne;return tb(X)?(de=t.getRecordMatcher(X),Ne=ae):Ne=X,t.addRoute(Ne,de)}function E(X){const ae=t.getRecordMatcher(X);ae&&t.removeRoute(ae)}function C(){return t.getRoutes().map(X=>X.record)}function M(X){return!!t.getRecordMatcher(X)}function N(X,ae){if(ae=bt({},ae||h.value),typeof X=="string"){const F=Kf(r,X,ae.path),Z=t.resolve({path:F.path},ae),ce=s.createHref(F.fullPath);return bt(F,Z,{params:b(Z.params),hash:ql(F.hash),redirectedFrom:void 0,href:ce})}let de;if(X.path!=null)de=bt({},X,{path:Kf(r,X.path,ae.path).path});else{const F=bt({},X.params);for(const Z in F)F[Z]==null&&delete F[Z];de=bt({},X,{params:y(F)}),ae.params=y(ae.params)}const Ne=t.resolve(de,ae),Ee=X.hash||"";Ne.params=v(b(Ne.params));const Ye=FT(o,bt({},X,{hash:OT(Ee),path:Ne.path})),O=s.createHref(Ye);return bt({fullPath:Ye,hash:Ee,query:o===lm?mC(X.query):X.query||{}},Ne,{redirectedFrom:void 0,href:O})}function L(X){return typeof X=="string"?Kf(r,X,h.value.path):bt({},X)}function D(X,ae){if(p!==X)return _s(8,{from:ae,to:X})}function A(X){return J(X)}function H(X){return A(bt(L(X),{replace:!0}))}function z(X){const ae=X.matched[X.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let Ne=typeof de=="function"?de(X):de;return typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=L(Ne):{path:Ne},Ne.params={}),bt({query:X.query,hash:X.hash,params:Ne.path!=null?{}:X.params},Ne)}}function J(X,ae){const de=p=N(X),Ne=h.value,Ee=X.state,Ye=X.force,O=X.replace===!0,F=z(de);if(F)return J(bt(L(F),{state:typeof F=="object"?bt({},Ee,F.state):Ee,force:Ye,replace:O}),ae||de);const Z=de;Z.redirectedFrom=ae;let ce;return!Ye&&HT(o,Ne,de)&&(ce=_s(16,{to:Z,from:Ne}),Be(Ne,Ne,!0,!1)),(ce?Promise.resolve(ce):j(Z,Ne)).catch(se=>Yr(se)?Yr(se,2)?se:Me(se):re(se,Z,Ne)).then(se=>{if(se){if(Yr(se,2))return J(bt({replace:O},L(se.to),{state:typeof se.to=="object"?bt({},Ee,se.to.state):Ee,force:Ye}),ae||Z)}else se=K(Z,Ne,!0,O,Ee);return te(Z,Ne,se),se})}function ie(X,ae){const de=D(X,ae);return de?Promise.reject(de):Promise.resolve()}function ne(X){const ae=nt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(X):X()}function j(X,ae){let de;const[Ne,Ee,Ye]=EC(X,ae);de=Xf(Ne.reverse(),"beforeRouteLeave",X,ae);for(const F of Ne)F.leaveGuards.forEach(Z=>{de.push(Ri(Z,X,ae))});const O=ie.bind(null,X,ae);return de.push(O),Te(de).then(()=>{de=[];for(const F of c.list())de.push(Ri(F,X,ae));return de.push(O),Te(de)}).then(()=>{de=Xf(Ee,"beforeRouteUpdate",X,ae);for(const F of Ee)F.updateGuards.forEach(Z=>{de.push(Ri(Z,X,ae))});return de.push(O),Te(de)}).then(()=>{de=[];for(const F of Ye)if(F.beforeEnter)if(xr(F.beforeEnter))for(const Z of F.beforeEnter)de.push(Ri(Z,X,ae));else de.push(Ri(F.beforeEnter,X,ae));return de.push(O),Te(de)}).then(()=>(X.matched.forEach(F=>F.enterCallbacks={}),de=Xf(Ye,"beforeRouteEnter",X,ae,ne),de.push(O),Te(de))).then(()=>{de=[];for(const F of f.list())de.push(Ri(F,X,ae));return de.push(O),Te(de)}).catch(F=>Yr(F,8)?F:Promise.reject(F))}function te(X,ae,de){d.list().forEach(Ne=>ne(()=>Ne(X,ae,de)))}function K(X,ae,de,Ne,Ee){const Ye=D(X,ae);if(Ye)return Ye;const O=ae===Li,F=ss?history.state:{};de&&(Ne||O?s.replace(X.fullPath,bt({scroll:O&&F&&F.scroll},Ee)):s.push(X.fullPath,Ee)),h.value=X,Be(X,ae,de,O),Me()}let V;function I(){V||(V=s.listen((X,ae,de)=>{if(!Ze.listening)return;const Ne=N(X),Ee=z(Ne);if(Ee){J(bt(Ee,{replace:!0}),Ne).catch(Cl);return}p=Ne;const Ye=h.value;ss&&KT(Qv(Ye.fullPath,de.delta),Tu()),j(Ne,Ye).catch(O=>Yr(O,12)?O:Yr(O,2)?(J(O.to,Ne).then(F=>{Yr(F,20)&&!de.delta&&de.type===Bl.pop&&s.go(-1,!1)}).catch(Cl),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(O,Ne,Ye))).then(O=>{O=O||K(Ne,Ye,!1),O&&(de.delta&&!Yr(O,8)?s.go(-de.delta,!1):de.type===Bl.pop&&Yr(O,20)&&s.go(-1,!1)),te(Ne,Ye,O)}).catch(Cl)}))}let k=fl(),q=fl(),W;function re(X,ae,de){Me(X);const Ne=q.list();return Ne.length?Ne.forEach(Ee=>Ee(X,ae,de)):console.error(X),Promise.reject(X)}function me(){return W&&h.value!==Li?Promise.resolve():new Promise((X,ae)=>{k.add([X,ae])})}function Me(X){return W||(W=!X,I(),k.list().forEach(([ae,de])=>X?de(X):ae()),k.reset()),X}function Be(X,ae,de,Ne){const{scrollBehavior:Ee}=e;if(!ss||!Ee)return Promise.resolve();const Ye=!de&&XT(Qv(X.fullPath,0))||(Ne||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Ee(X,ae,Ye)).then(O=>O&&GT(O)).catch(O=>re(O,X,ae))}const Ve=X=>s.go(X);let it;const nt=new Set,Ze={currentRoute:h,listening:!0,addRoute:x,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:C,resolve:N,options:e,push:A,replace:H,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:q.add,isReady:me,install(X){const ae=this;X.component("RouterLink",xC),X.component("RouterView",TC),X.config.globalProperties.$router=ae,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>B(h)}),ss&&!it&&h.value===Li&&(it=!0,A(s.location).catch(Ee=>{}));const de={};for(const Ee in Li)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});X.provide($h,ae),X.provide(ob,gh(de)),X.provide(Ed,h);const Ne=X.unmount;nt.add(X),X.unmount=function(){nt.delete(X),nt.size<1&&(p=Li,V&&V(),V=null,h.value=Li,it=!1,W=!1),Ne()}}};function Te(X){return X.reduce((ae,de)=>ae.then(()=>ne(de)),Promise.resolve())}return Ze}function EC(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>xs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>xs(p,h))||s.push(h))}return[r,o,s]}const LC=["top","right","bottom","left"],hm=["start","end"],pm=LC.reduce((e,t)=>e.concat(t,t+"-"+hm[0],t+"-"+hm[1]),[]),Wl=Math.min,wo=Math.max,AC={left:"right",right:"left",bottom:"top",top:"bottom"},MC={start:"end",end:"start"};function Ld(e,t,r){return wo(e,Wl(t,r))}function No(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function yr(e){return e.split("-")[1]}function sb(e){return e==="x"?"y":"x"}function Oh(e){return e==="y"?"height":"width"}function ca(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ph(e){return sb(ca(e))}function lb(e,t,r){r===void 0&&(r=!1);const o=yr(e),s=Ph(e),c=Oh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Wc(f)),[f,Wc(f)]}function NC(e){const t=Wc(e);return[Bc(e),t,Bc(t)]}function Bc(e){return e.replace(/start|end/g,t=>MC[t])}function $C(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function OC(e,t,r,o){const s=yr(e);let c=$C(Ir(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Bc)))),c}function Wc(e){return e.replace(/left|right|bottom|top/g,t=>AC[t])}function PC(e){return{top:0,right:0,bottom:0,left:0,...e}}function ab(e){return typeof e!="number"?PC(e):{top:e,right:e,bottom:e,left:e}}function Ll(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function gm(e,t,r){let{reference:o,floating:s}=e;const c=ca(t),f=Ph(t),d=Oh(f),h=Ir(t),p=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-s.width,y};break;default:x={x:o.x,y:o.y}}switch(yr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const RC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y}=gm(p,o,h),b=o,x={},E=0;for(let C=0;C<d.length;C++){const{name:M,fn:N}=d[C],{x:L,y:D,data:A,reset:H}=await N({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=L??v,y=D??y,x={...x,[M]:{...x[M],...A}},H&&E<=50&&(E++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(p=H.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):H.rects),{x:v,y}=gm(p,b,h)),C=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:x}};async function Cu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=No(t,e),E=ab(x),M=d[b?y==="floating"?"reference":"floating":y],N=Ll(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(M)))==null||r?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),L=y==="floating"?{...f.floating,x:o,y:s}:f.reference,D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement(D))?await(c.getScale==null?void 0:c.getScale(D))||{x:1,y:1}:{x:1,y:1},H=Ll(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:L,offsetParent:D,strategy:h}):L);return{top:(N.top-H.top+E.top)/A.y,bottom:(H.bottom-N.bottom+E.bottom)/A.y,left:(N.left-H.left+E.left)/A.x,right:(H.right-N.right+E.right)/A.x}}const DC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=No(e,t)||{};if(p==null)return{};const y=ab(v),b={x:r,y:o},x=Ph(s),E=Oh(x),C=await f.getDimensions(p),M=x==="y",N=M?"top":"left",L=M?"bottom":"right",D=M?"clientHeight":"clientWidth",A=c.reference[E]+c.reference[x]-b[x]-c.floating[E],H=b[x]-c.reference[x],z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let J=z?z[D]:0;(!J||!await(f.isElement==null?void 0:f.isElement(z)))&&(J=d.floating[D]||c.floating[E]);const ie=A/2-H/2,ne=J/2-C[E]/2-1,j=Wl(y[N],ne),te=Wl(y[L],ne),K=j,V=J-C[E]-te,I=J/2-C[E]/2+ie,k=Ld(K,I,V),q=!h.arrow&&yr(s)!=null&&I!==k&&c.reference[E]/2-(I<K?j:te)-C[E]/2<0,W=q?I<K?I-K:I-V:0;return{[x]:b[x]+W,data:{[x]:k,centerOffset:I-k-W,...q&&{alignmentOffset:W}},reset:q}}});function zC(e,t,r){return(e?[...r.filter(s=>yr(s)===e),...r.filter(s=>yr(s)!==e)]:r.filter(s=>Ir(s)===s)).filter(s=>e?yr(s)===e||(t?Bc(s)!==s:!1):!0)}const IC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:b=pm,autoAlignment:x=!0,...E}=No(e,t),C=y!==void 0||b===pm?zC(y||null,x,b):b,M=await Cu(t,E),N=((r=f.autoPlacement)==null?void 0:r.index)||0,L=C[N];if(L==null)return{};const D=lb(L,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==L)return{reset:{placement:C[0]}};const A=[M[Ir(L)],M[D[0]],M[D[1]]],H=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:L,overflows:A}],z=C[N+1];if(z)return{data:{index:N+1,overflows:H},reset:{placement:z}};const J=H.map(j=>{const te=yr(j.placement);return[j.placement,te&&v?j.overflows.slice(0,2).reduce((K,V)=>K+V,0):j.overflows[0],j.overflows]}).sort((j,te)=>j[1]-te[1]),ne=((s=J.filter(j=>j[2].slice(0,yr(j[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||J[0][0];return ne!==d?{data:{index:N+1,overflows:H},reset:{placement:ne}}:{}}}},FC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...M}=No(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const N=Ir(s),L=Ir(d)===d,D=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(L||!C?[Wc(d)]:NC(d));!b&&E!=="none"&&A.push(...OC(d,C,E,D));const H=[d,...A],z=await Cu(t,M),J=[];let ie=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&J.push(z[N]),y){const K=lb(s,f,D);J.push(z[K[0]],z[K[1]])}if(ie=[...ie,{placement:s,overflows:J}],!J.every(K=>K<=0)){var ne,j;const K=(((ne=c.flip)==null?void 0:ne.index)||0)+1,V=H[K];if(V)return{data:{index:K,overflows:ie},reset:{placement:V}};let I=(j=ie.filter(k=>k.overflows[0]<=0).sort((k,q)=>k.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(x){case"bestFit":{var te;const k=(te=ie.map(q=>[q.placement,q.overflows.filter(W=>W>0).reduce((W,re)=>W+re,0)]).sort((q,W)=>q[1]-W[1])[0])==null?void 0:te[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function HC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Ir(r),d=yr(r),h=ca(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=No(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const qC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await HC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},BC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:M=>{let{x:N,y:L}=M;return{x:N,y:L}}},...h}=No(e,t),p={x:r,y:o},v=await Cu(t,h),y=ca(Ir(s)),b=sb(y);let x=p[b],E=p[y];if(c){const M=b==="y"?"top":"left",N=b==="y"?"bottom":"right",L=x+v[M],D=x-v[N];x=Ld(L,x,D)}if(f){const M=y==="y"?"top":"left",N=y==="y"?"bottom":"right",L=E+v[M],D=E-v[N];E=Ld(L,E,D)}const C=d.fn({...t,[b]:x,[y]:E});return{...C,data:{x:C.x-r,y:C.y-o}}}}},WC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=No(e,t),h=await Cu(t,d),p=Ir(r),v=yr(r),y=ca(r)==="y",{width:b,height:x}=o.floating;let E,C;p==="top"||p==="bottom"?(E=p,C=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(C=p,E=v==="end"?"top":"bottom");const M=x-h[E],N=b-h[C],L=!t.middlewareData.shift;let D=M,A=N;if(y){const z=b-h.left-h.right;A=v||L?Wl(N,z):z}else{const z=x-h.top-h.bottom;D=v||L?Wl(M,z):z}if(L&&!v){const z=wo(h.left,0),J=wo(h.right,0),ie=wo(h.top,0),ne=wo(h.bottom,0);y?A=b-2*(z!==0||J!==0?z+J:wo(h.left,h.right)):D=x-2*(ie!==0||ne!==0?ie+ne:wo(h.top,h.bottom))}await f({...t,availableWidth:A,availableHeight:D});const H=await s.getDimensions(c.floating);return b!==H.width||x!==H.height?{reset:{rects:!0}}:{}}}};function Qn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $r(e){return Qn(e).getComputedStyle(e)}const vm=Math.min,Al=Math.max,Uc=Math.round;function cb(e){const t=$r(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Uc(r)!==s||Uc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Gi(e){return fb(e)?(e.nodeName||"").toLowerCase():""}let tc;function ub(){if(tc)return tc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(tc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),tc):navigator.userAgent}function Or(e){return e instanceof Qn(e).HTMLElement}function Ui(e){return e instanceof Qn(e).Element}function fb(e){return e instanceof Qn(e).Node}function mm(e){return typeof ShadowRoot>"u"?!1:e instanceof Qn(e).ShadowRoot||e instanceof ShadowRoot}function Eu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function UC(e){return["table","td","th"].includes(Gi(e))}function Ad(e){const t=/firefox/i.test(ub()),r=$r(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function Rh(e){return["html","body","#document"].includes(Gi(e))}function hb(e){return Ui(e)?e:e.contextElement}const pb={x:1,y:1};function gs(e){const t=hb(e);if(!Or(t))return pb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=cb(t);let f=(c?Uc(r.width):r.width)/o,d=(c?Uc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Ul(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=hb(e);let h=pb;t&&(o?Ui(o)&&(h=gs(o)):h=gs(e));const p=d?Qn(d):window,v=!db()&&r;let y=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,E=f.height/h.y;if(d){const C=Qn(d),M=o&&Ui(o)?Qn(o):o;let N=C.frameElement;for(;N&&o&&M!==C;){const L=gs(N),D=N.getBoundingClientRect(),A=getComputedStyle(N);D.x+=(N.clientLeft+parseFloat(A.paddingLeft))*L.x,D.y+=(N.clientTop+parseFloat(A.paddingTop))*L.y,y*=L.x,b*=L.y,x*=L.x,E*=L.y,y+=D.x,b+=D.y,N=Qn(N).frameElement}}return{width:x,height:E,top:b,right:y+x,bottom:b+E,left:y,x:y,y:b}}function Vi(e){return((fb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return Ui(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gb(e){return Ul(Vi(e)).left+Lu(e).scrollLeft}function Vl(e){if(Gi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mm(e)&&e.host||Vi(e);return mm(t)?t.host:t}function vb(e){const t=Vl(e);return Rh(t)?t.ownerDocument.body:Or(t)&&Eu(t)?t:vb(t)}function Vc(e,t){var r;t===void 0&&(t=[]);const o=vb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=Qn(o);return s?t.concat(c,c.visualViewport||[],Eu(o)?o:[]):t.concat(o,Vc(o))}function ym(e,t,r){return t==="viewport"?Ll(function(o,s){const c=Qn(o),f=Vi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,y=0;if(d){h=d.width,p=d.height;const b=db();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):Ui(t)?Ll(function(o,s){const c=Ul(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Or(o)?gs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Ll(function(o){const s=Vi(o),c=Lu(o),f=o.ownerDocument.body,d=Al(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Al(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+gb(o);const v=-c.scrollTop;return $r(f).direction==="rtl"&&(p+=Al(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Vi(e)))}function bm(e){return Or(e)&&$r(e).position!=="fixed"?e.offsetParent:null}function wm(e){const t=Qn(e);let r=bm(e);for(;r&&UC(r)&&$r(r).position==="static";)r=bm(r);return r&&(Gi(r)==="html"||Gi(r)==="body"&&$r(r).position==="static"&&!Ad(r))?t:r||function(o){let s=Vl(o);for(;Or(s)&&!Rh(s);){if(Ad(s))return s;s=Vl(s)}return null}(e)||t}function VC(e,t,r){const o=Or(t),s=Vi(t),c=Ul(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Gi(t)!=="body"||Eu(s))&&(f=Lu(t)),Or(t)){const h=Ul(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=gb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const jC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Vc(p).filter(M=>Ui(M)&&Gi(M)!=="body"),x=null;const E=$r(p).position==="fixed";let C=E?Vl(p):p;for(;Ui(C)&&!Rh(C);){const M=$r(C),N=Ad(C);(E?N||x:N||M.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=M:b=b.filter(L=>L!==C),C=Vl(C)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const y=ym(t,v,s);return p.top=Al(y.top,p.top),p.right=vm(y.right,p.right),p.bottom=vm(y.bottom,p.bottom),p.left=Al(y.left,p.left),p},ym(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Or(r),c=Vi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Gi(r)!=="body"||Eu(c))&&(f=Lu(r)),Or(r))){const p=Ul(r);d=gs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Ui,getDimensions:function(e){return Or(e)?cb(e):e.getBoundingClientRect()},getOffsetParent:wm,getDocumentElement:Vi,getScale:gs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||wm,c=this.getDimensions;return{reference:VC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>$r(e).direction==="rtl"},GC=(e,t,r)=>{const o=new Map,s={platform:jC,...r},c={...s.platform,_c:o};return RC(e,t,{...s,platform:c})};function mb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?mb(e[r],t[r]):e[r]=t[r])}const br={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 jl(e,t){let r=br.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=br.themes[r.$extend]||{}:(r=null,o=br[t]):r=null;while(r);return o}function KC(e){const t=[e];let r=br.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=br.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function xm(e){const t=[e];let r=br.themes[e]||{};do r.$extend?(t.push(r.$extend),r=br.themes[r.$extend]||{}):r=null;while(r);return t}let Ss=!1;if(typeof window<"u"){Ss=!1;try{const e=Object.defineProperty({},"passive",{get(){Ss=!0}});window.addEventListener("test",null,e)}catch{}}let yb=!1;typeof window<"u"&&typeof navigator<"u"&&(yb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),_m={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Sm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function km(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Yf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Wn=[];let bo=null;const Tm={};function Cm(e){let t=Tm[e];return t||(t=Tm[e]=[]),t}let Md=function(){};typeof window<"u"&&(Md=window.Element);function at(e){return function(t){return jl(t.theme,e)}}const Zf="__floating-vue__popper",wb=()=>gt({name:"VPopper",provide(){return{[Zf]:{parentPopper:this}}},inject:{[Zf]:{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:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>bb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Md,Boolean],default:at("container")},boundary:{type:[String,Md],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("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[Zf])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(qC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(IC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(BC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(FC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(DC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(WC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await GC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),bo&&this.instantMove&&bo.instantMove&&bo!==this.parentPopper){bo.$_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&&(bo=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 Yf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Vc(this.$_referenceNode),...Vc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Wn.length;r++)t=Wn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Wn.push(this),document.body.classList.add("v-popper--some-open");for(const t of xm(this.theme))Cm(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 Yf(),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,km(Wn,this),Wn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of xm(this.theme)){const o=Cm(r);km(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}bo===this&&(bo=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 Yf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,_m,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],_m,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Sm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Sm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ss?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ml>=e.left&&Ml<=e.right&&Nl>=e.top&&Nl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Ml-Mi,o=Nl-Ni,s=t.left+t.width/2-Mi+(t.top+t.height/2)-Ni+t.width+t.height,c=Mi+r*s,f=Ni+o*s;return nc(Mi,Ni,c,f,t.left,t.top,t.left,t.bottom)||nc(Mi,Ni,c,f,t.left,t.top,t.right,t.top)||nc(Mi,Ni,c,f,t.right,t.top,t.right,t.bottom)||nc(Mi,Ni,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(yb){const e=Ss?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Em(t,!0),e),document.addEventListener("touchend",t=>Lm(t,!0),e)}else window.addEventListener("mousedown",e=>Em(e,!1),!0),window.addEventListener("click",e=>Lm(e,!1),!0);window.addEventListener("resize",YC)}function Em(e,t){if(br.autoHideOnMousedown)xb(e,t);else for(let r=0;r<Wn.length;r++){const o=Wn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Lm(e,t){br.autoHideOnMousedown||xb(e,t)}function xb(e,t){const r={};for(let o=Wn.length-1;o>=0;o--){const s=Wn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Am(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Am(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Am(e,t,r){return r.closeAllPopover||r.closePopover&&t||XC(e,r)&&!t}function XC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function YC(){for(let e=0;e<Wn.length;e++)Wn[e].$_computePosition()}function Mm(){for(let e=0;e<Wn.length;e++)Wn[e].hide()}let Mi=0,Ni=0,Ml=0,Nl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Mi=Ml,Ni=Nl,Ml=e.clientX,Nl=e.clientY},Ss?{passive:!0}:void 0);function nc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const ZC={extends:wb()},Au=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function JC(e,t,r,o,s,c){return le(),be("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[hn(e.$slots,"default",j_(Hy(e.slotData)))],2)}const QC=Au(ZC,[["render",JC]]);function eE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let wc;function Nd(){Nd.init||(Nd.init=!0,wc=eE()!==-1)}var Mu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nd(),ln(()=>{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",wc&&this.$el.appendChild(e),e.data="about:blank",wc||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&&(!wc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tE=py();vu("data-v-b329ee4c");const nE={class:"resize-observer",tabindex:"-1"};mu();const rE=tE((e,t,r,o,s,c)=>(le(),ot("div",nE)));Mu.render=rE;Mu.__scopeId="data-v-b329ee4c";Mu.__file="src/components/ResizeObserver.vue";const _b=(e="theme")=>({computed:{themeClass(){return KC(this[e])}}}),iE=gt({name:"VPopperContent",components:{ResizeObserver:Mu},mixins:[_b()],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}}}),oE=["id","aria-hidden","tabindex","data-popper-placement"],sE={ref:"inner",class:"v-popper__inner"},lE=Y("div",{class:"v-popper__arrow-outer"},null,-1),aE=Y("div",{class:"v-popper__arrow-inner"},null,-1),cE=[lE,aE];function uE(e,t,r,o,s,c){const f=Lo("ResizeObserver");return le(),be("div",{id:e.popperId,ref:"popover",class:st(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Zt(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]=kd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",sE,[e.mounted?(le(),be(ht,{key:0},[Y("div",null,[hn(e.$slots,"default")]),e.handleResize?(le(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):rt("",!0)],64)):rt("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},cE,4)],4)],46,oE)}const Sb=Au(iE,[["render",uE]]),kb={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 $d=function(){};typeof window<"u"&&($d=window.Element);const fE=gt({name:"VPopperWrapper",components:{Popper:QC,PopperContent:Sb},mixins:[kb,_b("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,$d,Boolean],default:void 0},boundary:{type:[String,$d],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 dE(e,t,r,o,s,c){const f=Lo("PopperContent"),d=Lo("Popper");return le(),ot(d,ii({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:lt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:x,hide:E,handleResize:C,onResize:M,classes:N,result:L})=>[hn(e.$slots,"default",{shown:p,show:x,hide:E}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":C,classes:N,result:L,onHide:E,onResize:M},{default:lt(()=>[hn(e.$slots,"popper",{shown:p,hide:E})]),_: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 Dh=Au(fE,[["render",dE]]),hE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},pE={...Dh,name:"VMenu",vPopperTheme:"menu"},Tb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},gE=gt({name:"VTooltipDirective",components:{Popper:wb(),PopperContent:Sb},mixins:[kb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>jl(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>jl(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),vE=["innerHTML"],mE=["textContent"];function yE(e,t,r,o,s,c){const f=Lo("PopperContent"),d=Lo("Popper");return le(),ot(d,ii({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:lt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:x,handleResize:E,onResize:C,classes:M,result:N})=>[Pe(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":E,classes:M,result:N,onHide:x,onResize:C},{default:lt(()=>[e.html?(le(),be("div",{key:0,innerHTML:e.finalContent},null,8,vE)):(le(),be("div",{key:1,textContent:qe(e.finalContent)},null,8,mE))]),_: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 bE=Au(gE,[["render",yE]]),Cb="v-popper--has-tooltip";function wE(e,t){let r=e.placement;if(!r&&t)for(const o of bb)t[o]&&(r=o);return r||(r=jl(e.theme||"tooltip","placement")),r}function Eb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=wE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Jf,Gl,xE=0;function _E(){if(Jf)return;Gl=je([]),Jf=Gy({name:"VTooltipDirectiveApp",setup(){return{directives:Gl}},render(){return this.directives.map(t=>aa(bE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Jf.mount(e)}function Lb(e,t,r){_E();const o=je(Eb(e,t,r)),s=je(!1),c={id:xE++,options:o,shown:s};return Gl.value.push(c),e.classList&&e.classList.add(Cb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=Gl.value.indexOf(e.$_popper.item);t!==-1&&Gl.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Cb)}function Nm(e,{value:t,modifiers:r}){const o=Eb(e,t,r);if(!o.content||jl(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Lb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Ab={beforeMount:Nm,updated:Nm,beforeUnmount(e){zh(e)}};function $m(e){e.addEventListener("mousedown",jc),e.addEventListener("click",jc),e.addEventListener("touchstart",Mb,Ss?{passive:!0}:!1)}function Om(e){e.removeEventListener("mousedown",jc),e.removeEventListener("click",jc),e.removeEventListener("touchstart",Mb),e.removeEventListener("touchend",Nb),e.removeEventListener("touchcancel",$b)}function jc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Mb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Nb),t.addEventListener("touchcancel",$b)}}function Nb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function $b(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const SE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&$m(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?$m(e):Om(e))},beforeUnmount(e){Om(e)}},kE=Ab,Ob=Tb;function TE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,mb(br,t),e.directive("tooltip",Ab),e.directive("close-popper",SE),e.component("VTooltip",Tb),e.component("VDropdown",hE),e.component("VMenu",pE))}const Pb={version:"5.2.2",install:TE,options:br},CE=6e4;function Rb(e){return e}const EE=Rb,{clearTimeout:LE,setTimeout:AE}=globalThis,ME=Math.random.bind(Math);function NE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Rb,deserialize:f=EE,resolver:d,timeout:h=CE}=t,p=new Map;let v;const y=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const E=(...M)=>{r(c({m:x,a:M,t:"q"}))};if(s.includes(x))return E.asEvent=E,E;const C=async(...M)=>(await v,new Promise((N,L)=>{var H;const D=OE();let A;h>=0&&(A=AE(()=>{var z;try{throw(z=t.onTimeoutError)==null||z.call(t,x,M),new Error(`[birpc] timeout on calling "${x}"`)}catch(J){L(J)}p.delete(D)},h),typeof A=="object"&&(A=(H=A.unref)==null?void 0:H.call(A))),p.set(D,{resolve:N,reject:L,timeoutId:A}),r(c({m:x,a:M,i:D,t:"q"}))}));return C.asEvent=E,C}});return v=o(async(b,...x)=>{const E=f(b);if(E.t==="q"){const{m:C,a:M}=E;let N,L;const D=d?d(C,e[C]):e[C];if(!D)L=new Error(`[birpc] function "${C}" not found`);else try{N=await D.apply(y,M)}catch(A){L=A}E.i&&(L&&t.onError&&t.onError(L,C,M),r(c({t:"s",i:E.i,r:N,e:L}),...x))}else{const{i:C,r:M,e:N}=E,L=p.get(C);L&&(LE(L.timeoutId),N?L.reject(N):L.resolve(M)),p.delete(C)}}),y}const $E="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function OE(e=21){let t="",r=e;for(;r--;)t+=$E[ME()*64|0];return t}const{parse:PE,stringify:RE}=JSON,{keys:DE}=Object,Kl=String,Db="string",Pm={},Gc="object",zb=(e,t)=>t,zE=e=>e instanceof Kl?Kl(e):e,IE=(e,t)=>typeof t===Db?new Kl(t):t,Ib=(e,t,r,o)=>{const s=[];for(let c=DE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Kl){const v=e[p];typeof v===Gc&&!t.has(v)?(t.add(v),r[h]=Pm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Pm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Ib.apply(null,h))}return r},Rm=(e,t,r)=>{const o=Kl(t.push(r)-1);return e.set(r,o),o},Od=(e,t)=>{const r=PE(e,IE).map(zE),o=r[0],s=t||zb,c=typeof o===Gc&&o?Ib(r,new Set,o,s):o;return s.call({"":c},"",c)},FE=(e,t,r)=>{const o=t&&typeof t===Gc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||zb,s=new Map,c=[],f=[];let d=+Rm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=RE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,y){if(h)return h=!h,y;const b=o.call(this,v,y);switch(typeof b){case Gc:if(b===null)return b;case Db:return s.get(b)||Rm(s,c,b)}return b}};function Fb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const HE=/^[A-Za-z]:\//;function qE(e=""){return e&&e.replace(/\\/g,"/").replace(HE,t=>t.toUpperCase())}const BE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Dm=/^\/([A-Za-z]:)?$/;function WE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const zm=function(...e){e=e.map(o=>qE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:WE();!s||s.length===0||(t=`${s}/${t}`,r=Im(s))}return t=UE(t,!r),r&&!Im(t)?`/${t}`:t.length>0?t:"."};function UE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Im=function(e){return BE.test(e)},VE=function(e,t){const r=zm(e).replace(Dm,"$1").split("/"),o=zm(t).replace(Dm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function jE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Pd(e,t,r,o){const s=VE(t,e),c={id:jE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function ks(e){return e.type==="test"||e.type==="custom"}function Hb(e){const t=[],r=Ih(e);for(const o of r)if(ks(o))t.push(o);else for(const s of o.tasks)if(ks(s))t.push(s);else{const c=Hb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>ks(t)?[t]:[t,...Fh(t.tasks)])}function GE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}function KE(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class qb{constructor(){Xr(this,"filesMap",new Map);Xr(this,"pathsSet",new Set);Xr(this,"idMap",new Map);Xr(this,"taskFileMap",new WeakMap);Xr(this,"errorsSet",new Set);Xr(this,"processTimeoutCauses",new Set)}catchError(t,r){if(KE(t))return t.errors.forEach(s=>this.catchError(s,r));t===Object(t)?t.type=r:t={type:r,message:t};const o=t;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const s=this.idMap.get(o.taskId);s&&(s.mode="skip",s.result??(s.result={state:"skip"}),s.result.state="skip");return}this.errorsSet.add(t)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(t){this.processTimeoutCauses.add(t)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Pd(s,o.config.root,o.config.name);if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(t,r,o){this.collectFiles(t.map(s=>Pd(s,r,o)))}}function Hh(e){return Hb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function XE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new qb,waitForConnection:N,reconnect:C},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(L){var D;L==null||L.forEach(([A,H])=>{v.state.clearFiles({config:A},[H])}),(D=r.onSpecsCollected)==null||D.call(r,L)},onPathsCollected(L){var D;v.state.collectPaths(L),(D=r.onPathsCollected)==null||D.call(r,L)},onCollected(L){var D;v.state.collectFiles(L),(D=r.onCollected)==null||D.call(r,L)},onTaskUpdate(L){var D;v.state.updateTasks(L),(D=r.onTaskUpdate)==null||D.call(r,L)},onUserConsoleLog(L){var D;v.state.updateUserLog(L),(D=r.onUserConsoleLog)==null||D.call(r,L)},onFinished(L,D){var A;(A=r.onFinished)==null||A.call(r,L,D)},onFinishedReportCoverage(){var L;(L=r.onFinishedReportCoverage)==null||L.call(r)}},x={post:L=>v.ws.send(L),on:L=>y=L,serialize:L=>FE(L,(D,A)=>A instanceof Error?{name:A.name,message:A.message,stack:A.stack}:A),deserialize:Od,onTimeoutError(L){throw new Error(`[vitest-ws-client]: Timeout calling "${L}"`)}};v.rpc=NE(b,x);let E;function C(L=!1){L&&(p=c),v.ws=new h(e),M()}function M(){E=new Promise((L,D)=>{var H,z;const A=(z=(H=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:H.unref)==null?void 0:z.call(H);v.ws.OPEN===v.ws.readyState&&L(),v.ws.addEventListener("open",()=>{p=c,L(),clearTimeout(A)})}),v.ws.addEventListener("message",L=>{y(L.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(C,s)})}M();function N(){return E}return v}const YE=location.port,ZE=[location.hostname,YE].filter(Boolean).join(":"),JE=`${location.protocol==="https:"?"wss:":"ws:"}//${ZE}/__vitest_api__`,Pr=!!window.METADATA_PATH;var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wb={},oi={};const QE="Á",eL="á",tL="Ă",nL="ă",rL="∾",iL="∿",oL="∾̳",sL="Â",lL="â",aL="´",cL="А",uL="а",fL="Æ",dL="æ",hL="⁡",pL="𝔄",gL="𝔞",vL="À",mL="à",yL="ℵ",bL="ℵ",wL="Α",xL="α",_L="Ā",SL="ā",kL="⨿",TL="&",CL="&",EL="⩕",LL="⩓",AL="∧",ML="⩜",NL="⩘",$L="⩚",OL="∠",PL="⦤",RL="∠",DL="⦨",zL="⦩",IL="⦪",FL="⦫",HL="⦬",qL="⦭",BL="⦮",WL="⦯",UL="∡",VL="∟",jL="⊾",GL="⦝",KL="∢",XL="Å",YL="⍼",ZL="Ą",JL="ą",QL="𝔸",eA="𝕒",tA="⩯",nA="≈",rA="⩰",iA="≊",oA="≋",sA="'",lA="⁡",aA="≈",cA="≊",uA="Å",fA="å",dA="𝒜",hA="𝒶",pA="≔",gA="*",vA="≈",mA="≍",yA="Ã",bA="ã",wA="Ä",xA="ä",_A="∳",SA="⨑",kA="≌",TA="϶",CA="‵",EA="∽",LA="⋍",AA="∖",MA="⫧",NA="⊽",$A="⌅",OA="⌆",PA="⌅",RA="⎵",DA="⎶",zA="≌",IA="Б",FA="б",HA="„",qA="∵",BA="∵",WA="∵",UA="⦰",VA="϶",jA="ℬ",GA="ℬ",KA="Β",XA="β",YA="ℶ",ZA="≬",JA="𝔅",QA="𝔟",eM="⋂",tM="◯",nM="⋃",rM="⨀",iM="⨁",oM="⨂",sM="⨆",lM="★",aM="▽",cM="△",uM="⨄",fM="⋁",dM="⋀",hM="⤍",pM="⧫",gM="▪",vM="▴",mM="▾",yM="◂",bM="▸",wM="␣",xM="▒",_M="░",SM="▓",kM="█",TM="=⃥",CM="≡⃥",EM="⫭",LM="⌐",AM="𝔹",MM="𝕓",NM="⊥",$M="⊥",OM="⋈",PM="⧉",RM="┐",DM="╕",zM="╖",IM="╗",FM="┌",HM="╒",qM="╓",BM="╔",WM="─",UM="═",VM="┬",jM="╤",GM="╥",KM="╦",XM="┴",YM="╧",ZM="╨",JM="╩",QM="⊟",eN="⊞",tN="⊠",nN="┘",rN="╛",iN="╜",oN="╝",sN="└",lN="╘",aN="╙",cN="╚",uN="│",fN="║",dN="┼",hN="╪",pN="╫",gN="╬",vN="┤",mN="╡",yN="╢",bN="╣",wN="├",xN="╞",_N="╟",SN="╠",kN="‵",TN="˘",CN="˘",EN="¦",LN="𝒷",AN="ℬ",MN="⁏",NN="∽",$N="⋍",ON="⧅",PN="\\",RN="⟈",DN="•",zN="•",IN="≎",FN="⪮",HN="≏",qN="≎",BN="≏",WN="Ć",UN="ć",VN="⩄",jN="⩉",GN="⩋",KN="∩",XN="⋒",YN="⩇",ZN="⩀",JN="ⅅ",QN="∩︀",e$="⁁",t$="ˇ",n$="ℭ",r$="⩍",i$="Č",o$="č",s$="Ç",l$="ç",a$="Ĉ",c$="ĉ",u$="∰",f$="⩌",d$="⩐",h$="Ċ",p$="ċ",g$="¸",v$="¸",m$="⦲",y$="¢",b$="·",w$="·",x$="𝔠",_$="ℭ",S$="Ч",k$="ч",T$="✓",C$="✓",E$="Χ",L$="χ",A$="ˆ",M$="≗",N$="↺",$$="↻",O$="⊛",P$="⊚",R$="⊝",D$="⊙",z$="®",I$="Ⓢ",F$="⊖",H$="⊕",q$="⊗",B$="○",W$="⧃",U$="≗",V$="⨐",j$="⫯",G$="⧂",K$="∲",X$="”",Y$="’",Z$="♣",J$="♣",Q$=":",eO="∷",tO="⩴",nO="≔",rO="≔",iO=",",oO="@",sO="∁",lO="∘",aO="∁",cO="ℂ",uO="≅",fO="⩭",dO="≡",hO="∮",pO="∯",gO="∮",vO="𝕔",mO="ℂ",yO="∐",bO="∐",wO="©",xO="©",_O="℗",SO="∳",kO="↵",TO="✗",CO="⨯",EO="𝒞",LO="𝒸",AO="⫏",MO="⫑",NO="⫐",$O="⫒",OO="⋯",PO="⤸",RO="⤵",DO="⋞",zO="⋟",IO="↶",FO="⤽",HO="⩈",qO="⩆",BO="≍",WO="∪",UO="⋓",VO="⩊",jO="⊍",GO="⩅",KO="∪︀",XO="↷",YO="⤼",ZO="⋞",JO="⋟",QO="⋎",eP="⋏",tP="¤",nP="↶",rP="↷",iP="⋎",oP="⋏",sP="∲",lP="∱",aP="⌭",cP="†",uP="‡",fP="ℸ",dP="↓",hP="↡",pP="⇓",gP="‐",vP="⫤",mP="⊣",yP="⤏",bP="˝",wP="Ď",xP="ď",_P="Д",SP="д",kP="‡",TP="⇊",CP="ⅅ",EP="ⅆ",LP="⤑",AP="⩷",MP="°",NP="∇",$P="Δ",OP="δ",PP="⦱",RP="⥿",DP="𝔇",zP="𝔡",IP="⥥",FP="⇃",HP="⇂",qP="´",BP="˙",WP="˝",UP="`",VP="˜",jP="⋄",GP="⋄",KP="⋄",XP="♦",YP="♦",ZP="¨",JP="ⅆ",QP="ϝ",eR="⋲",tR="÷",nR="÷",rR="⋇",iR="⋇",oR="Ђ",sR="ђ",lR="⌞",aR="⌍",cR="$",uR="𝔻",fR="𝕕",dR="¨",hR="˙",pR="⃜",gR="≐",vR="≑",mR="≐",yR="∸",bR="∔",wR="⊡",xR="⌆",_R="∯",SR="¨",kR="⇓",TR="⇐",CR="⇔",ER="⫤",LR="⟸",AR="⟺",MR="⟹",NR="⇒",$R="⊨",OR="⇑",PR="⇕",RR="∥",DR="⤓",zR="↓",IR="↓",FR="⇓",HR="⇵",qR="̑",BR="⇊",WR="⇃",UR="⇂",VR="⥐",jR="⥞",GR="⥖",KR="↽",XR="⥟",YR="⥗",ZR="⇁",JR="↧",QR="⊤",eD="⤐",tD="⌟",nD="⌌",rD="𝒟",iD="𝒹",oD="Ѕ",sD="ѕ",lD="⧶",aD="Đ",cD="đ",uD="⋱",fD="▿",dD="▾",hD="⇵",pD="⥯",gD="⦦",vD="Џ",mD="џ",yD="⟿",bD="É",wD="é",xD="⩮",_D="Ě",SD="ě",kD="Ê",TD="ê",CD="≖",ED="≕",LD="Э",AD="э",MD="⩷",ND="Ė",$D="ė",OD="≑",PD="ⅇ",RD="≒",DD="𝔈",zD="𝔢",ID="⪚",FD="È",HD="è",qD="⪖",BD="⪘",WD="⪙",UD="∈",VD="⏧",jD="ℓ",GD="⪕",KD="⪗",XD="Ē",YD="ē",ZD="∅",JD="∅",QD="◻",e2="∅",t2="▫",n2=" ",r2=" ",i2=" ",o2="Ŋ",s2="ŋ",l2=" ",a2="Ę",c2="ę",u2="𝔼",f2="𝕖",d2="⋕",h2="⧣",p2="⩱",g2="ε",v2="Ε",m2="ε",y2="ϵ",b2="≖",w2="≕",x2="≂",_2="⪖",S2="⪕",k2="⩵",T2="=",C2="≂",E2="≟",L2="⇌",A2="≡",M2="⩸",N2="⧥",$2="⥱",O2="≓",P2="ℯ",R2="ℰ",D2="≐",z2="⩳",I2="≂",F2="Η",H2="η",q2="Ð",B2="ð",W2="Ë",U2="ë",V2="€",j2="!",G2="∃",K2="∃",X2="ℰ",Y2="ⅇ",Z2="ⅇ",J2="≒",Q2="Ф",ez="ф",tz="♀",nz="ffi",rz="ff",iz="ffl",oz="𝔉",sz="𝔣",lz="fi",az="◼",cz="▪",uz="fj",fz="♭",dz="fl",hz="▱",pz="ƒ",gz="𝔽",vz="𝕗",mz="∀",yz="∀",bz="⋔",wz="⫙",xz="ℱ",_z="⨍",Sz="½",kz="⅓",Tz="¼",Cz="⅕",Ez="⅙",Lz="⅛",Az="⅔",Mz="⅖",Nz="¾",$z="⅗",Oz="⅜",Pz="⅘",Rz="⅚",Dz="⅝",zz="⅞",Iz="⁄",Fz="⌢",Hz="𝒻",qz="ℱ",Bz="ǵ",Wz="Γ",Uz="γ",Vz="Ϝ",jz="ϝ",Gz="⪆",Kz="Ğ",Xz="ğ",Yz="Ģ",Zz="Ĝ",Jz="ĝ",Qz="Г",eI="г",tI="Ġ",nI="ġ",rI="≥",iI="≧",oI="⪌",sI="⋛",lI="≥",aI="≧",cI="⩾",uI="⪩",fI="⩾",dI="⪀",hI="⪂",pI="⪄",gI="⋛︀",vI="⪔",mI="𝔊",yI="𝔤",bI="≫",wI="⋙",xI="⋙",_I="ℷ",SI="Ѓ",kI="ѓ",TI="⪥",CI="≷",EI="⪒",LI="⪤",AI="⪊",MI="⪊",NI="⪈",$I="≩",OI="⪈",PI="≩",RI="⋧",DI="𝔾",zI="𝕘",II="`",FI="≥",HI="⋛",qI="≧",BI="⪢",WI="≷",UI="⩾",VI="≳",jI="𝒢",GI="ℊ",KI="≳",XI="⪎",YI="⪐",ZI="⪧",JI="⩺",QI=">",eF=">",tF="≫",nF="⋗",rF="⦕",iF="⩼",oF="⪆",sF="⥸",lF="⋗",aF="⋛",cF="⪌",uF="≷",fF="≳",dF="≩︀",hF="≩︀",pF="ˇ",gF=" ",vF="½",mF="ℋ",yF="Ъ",bF="ъ",wF="⥈",xF="↔",_F="⇔",SF="↭",kF="^",TF="ℏ",CF="Ĥ",EF="ĥ",LF="♥",AF="♥",MF="…",NF="⊹",$F="𝔥",OF="ℌ",PF="ℋ",RF="⤥",DF="⤦",zF="⇿",IF="∻",FF="↩",HF="↪",qF="𝕙",BF="ℍ",WF="―",UF="─",VF="𝒽",jF="ℋ",GF="ℏ",KF="Ħ",XF="ħ",YF="≎",ZF="≏",JF="⁃",QF="‐",eH="Í",tH="í",nH="⁣",rH="Î",iH="î",oH="И",sH="и",lH="İ",aH="Е",cH="е",uH="¡",fH="⇔",dH="𝔦",hH="ℑ",pH="Ì",gH="ì",vH="ⅈ",mH="⨌",yH="∭",bH="⧜",wH="℩",xH="IJ",_H="ij",SH="Ī",kH="ī",TH="ℑ",CH="ⅈ",EH="ℐ",LH="ℑ",AH="ı",MH="ℑ",NH="⊷",$H="Ƶ",OH="⇒",PH="℅",RH="∞",DH="⧝",zH="ı",IH="⊺",FH="∫",HH="∬",qH="ℤ",BH="∫",WH="⊺",UH="⋂",VH="⨗",jH="⨼",GH="⁣",KH="⁢",XH="Ё",YH="ё",ZH="Į",JH="į",QH="𝕀",eq="𝕚",tq="Ι",nq="ι",rq="⨼",iq="¿",oq="𝒾",sq="ℐ",lq="∈",aq="⋵",cq="⋹",uq="⋴",fq="⋳",dq="∈",hq="⁢",pq="Ĩ",gq="ĩ",vq="І",mq="і",yq="Ï",bq="ï",wq="Ĵ",xq="ĵ",_q="Й",Sq="й",kq="𝔍",Tq="𝔧",Cq="ȷ",Eq="𝕁",Lq="𝕛",Aq="𝒥",Mq="𝒿",Nq="Ј",$q="ј",Oq="Є",Pq="є",Rq="Κ",Dq="κ",zq="ϰ",Iq="Ķ",Fq="ķ",Hq="К",qq="к",Bq="𝔎",Wq="𝔨",Uq="ĸ",Vq="Х",jq="х",Gq="Ќ",Kq="ќ",Xq="𝕂",Yq="𝕜",Zq="𝒦",Jq="𝓀",Qq="⇚",eB="Ĺ",tB="ĺ",nB="⦴",rB="ℒ",iB="Λ",oB="λ",sB="⟨",lB="⟪",aB="⦑",cB="⟨",uB="⪅",fB="ℒ",dB="«",hB="⇤",pB="⤟",gB="←",vB="↞",mB="⇐",yB="⤝",bB="↩",wB="↫",xB="⤹",_B="⥳",SB="↢",kB="⤙",TB="⤛",CB="⪫",EB="⪭",LB="⪭︀",AB="⤌",MB="⤎",NB="❲",$B="{",OB="[",PB="⦋",RB="⦏",DB="⦍",zB="Ľ",IB="ľ",FB="Ļ",HB="ļ",qB="⌈",BB="{",WB="Л",UB="л",VB="⤶",jB="“",GB="„",KB="⥧",XB="⥋",YB="↲",ZB="≤",JB="≦",QB="⟨",e3="⇤",t3="←",n3="←",r3="⇐",i3="⇆",o3="↢",s3="⌈",l3="⟦",a3="⥡",c3="⥙",u3="⇃",f3="⌊",d3="↽",h3="↼",p3="⇇",g3="↔",v3="↔",m3="⇔",y3="⇆",b3="⇋",w3="↭",x3="⥎",_3="↤",S3="⊣",k3="⥚",T3="⋋",C3="⧏",E3="⊲",L3="⊴",A3="⥑",M3="⥠",N3="⥘",$3="↿",O3="⥒",P3="↼",R3="⪋",D3="⋚",z3="≤",I3="≦",F3="⩽",H3="⪨",q3="⩽",B3="⩿",W3="⪁",U3="⪃",V3="⋚︀",j3="⪓",G3="⪅",K3="⋖",X3="⋚",Y3="⪋",Z3="⋚",J3="≦",Q3="≶",e5="≶",t5="⪡",n5="≲",r5="⩽",i5="≲",o5="⥼",s5="⌊",l5="𝔏",a5="𝔩",c5="≶",u5="⪑",f5="⥢",d5="↽",h5="↼",p5="⥪",g5="▄",v5="Љ",m5="љ",y5="⇇",b5="≪",w5="⋘",x5="⌞",_5="⇚",S5="⥫",k5="◺",T5="Ŀ",C5="ŀ",E5="⎰",L5="⎰",A5="⪉",M5="⪉",N5="⪇",$5="≨",O5="⪇",P5="≨",R5="⋦",D5="⟬",z5="⇽",I5="⟦",F5="⟵",H5="⟵",q5="⟸",B5="⟷",W5="⟷",U5="⟺",V5="⟼",j5="⟶",G5="⟶",K5="⟹",X5="↫",Y5="↬",Z5="⦅",J5="𝕃",Q5="𝕝",e8="⨭",t8="⨴",n8="∗",r8="_",i8="↙",o8="↘",s8="◊",l8="◊",a8="⧫",c8="(",u8="⦓",f8="⇆",d8="⌟",h8="⇋",p8="⥭",g8="‎",v8="⊿",m8="‹",y8="𝓁",b8="ℒ",w8="↰",x8="↰",_8="≲",S8="⪍",k8="⪏",T8="[",C8="‘",E8="‚",L8="Ł",A8="ł",M8="⪦",N8="⩹",$8="<",O8="<",P8="≪",R8="⋖",D8="⋋",z8="⋉",I8="⥶",F8="⩻",H8="◃",q8="⊴",B8="◂",W8="⦖",U8="⥊",V8="⥦",j8="≨︀",G8="≨︀",K8="¯",X8="♂",Y8="✠",Z8="✠",J8="↦",Q8="↦",eW="↧",tW="↤",nW="↥",rW="▮",iW="⨩",oW="М",sW="м",lW="—",aW="∺",cW="∡",uW=" ",fW="ℳ",dW="𝔐",hW="𝔪",pW="℧",gW="µ",vW="*",mW="⫰",yW="∣",bW="·",wW="⊟",xW="−",_W="∸",SW="⨪",kW="∓",TW="⫛",CW="…",EW="∓",LW="⊧",AW="𝕄",MW="𝕞",NW="∓",$W="𝓂",OW="ℳ",PW="∾",RW="Μ",DW="μ",zW="⊸",IW="⊸",FW="∇",HW="Ń",qW="ń",BW="∠⃒",WW="≉",UW="⩰̸",VW="≋̸",jW="ʼn",GW="≉",KW="♮",XW="ℕ",YW="♮",ZW=" ",JW="≎̸",QW="≏̸",eU="⩃",tU="Ň",nU="ň",rU="Ņ",iU="ņ",oU="≇",sU="⩭̸",lU="⩂",aU="Н",cU="н",uU="–",fU="⤤",dU="↗",hU="⇗",pU="↗",gU="≠",vU="≐̸",mU="​",yU="​",bU="​",wU="​",xU="≢",_U="⤨",SU="≂̸",kU="≫",TU="≪",CU=`
22
- `,EU="∄",LU="∄",AU="𝔑",MU="𝔫",NU="≧̸",$U="≱",OU="≱",PU="≧̸",RU="⩾̸",DU="⩾̸",zU="⋙̸",IU="≵",FU="≫⃒",HU="≯",qU="≯",BU="≫̸",WU="↮",UU="⇎",VU="⫲",jU="∋",GU="⋼",KU="⋺",XU="∋",YU="Њ",ZU="њ",JU="↚",QU="⇍",e4="‥",t4="≦̸",n4="≰",r4="↚",i4="⇍",o4="↮",s4="⇎",l4="≰",a4="≦̸",c4="⩽̸",u4="⩽̸",f4="≮",d4="⋘̸",h4="≴",p4="≪⃒",g4="≮",v4="⋪",m4="⋬",y4="≪̸",b4="∤",w4="⁠",x4=" ",_4="𝕟",S4="ℕ",k4="⫬",T4="¬",C4="≢",E4="≭",L4="∦",A4="∉",M4="≠",N4="≂̸",$4="∄",O4="≯",P4="≱",R4="≧̸",D4="≫̸",z4="≹",I4="⩾̸",F4="≵",H4="≎̸",q4="≏̸",B4="∉",W4="⋵̸",U4="⋹̸",V4="∉",j4="⋷",G4="⋶",K4="⧏̸",X4="⋪",Y4="⋬",Z4="≮",J4="≰",Q4="≸",e6="≪̸",t6="⩽̸",n6="≴",r6="⪢̸",i6="⪡̸",o6="∌",s6="∌",l6="⋾",a6="⋽",c6="⊀",u6="⪯̸",f6="⋠",d6="∌",h6="⧐̸",p6="⋫",g6="⋭",v6="⊏̸",m6="⋢",y6="⊐̸",b6="⋣",w6="⊂⃒",x6="⊈",_6="⊁",S6="⪰̸",k6="⋡",T6="≿̸",C6="⊃⃒",E6="⊉",L6="≁",A6="≄",M6="≇",N6="≉",$6="∤",O6="∦",P6="∦",R6="⫽⃥",D6="∂̸",z6="⨔",I6="⊀",F6="⋠",H6="⊀",q6="⪯̸",B6="⪯̸",W6="⤳̸",U6="↛",V6="⇏",j6="↝̸",G6="↛",K6="⇏",X6="⋫",Y6="⋭",Z6="⊁",J6="⋡",Q6="⪰̸",eV="𝒩",tV="𝓃",nV="∤",rV="∦",iV="≁",oV="≄",sV="≄",lV="∤",aV="∦",cV="⋢",uV="⋣",fV="⊄",dV="⫅̸",hV="⊈",pV="⊂⃒",gV="⊈",vV="⫅̸",mV="⊁",yV="⪰̸",bV="⊅",wV="⫆̸",xV="⊉",_V="⊃⃒",SV="⊉",kV="⫆̸",TV="≹",CV="Ñ",EV="ñ",LV="≸",AV="⋪",MV="⋬",NV="⋫",$V="⋭",OV="Ν",PV="ν",RV="#",DV="№",zV=" ",IV="≍⃒",FV="⊬",HV="⊭",qV="⊮",BV="⊯",WV="≥⃒",UV=">⃒",VV="⤄",jV="⧞",GV="⤂",KV="≤⃒",XV="<⃒",YV="⊴⃒",ZV="⤃",JV="⊵⃒",QV="∼⃒",ej="⤣",tj="↖",nj="⇖",rj="↖",ij="⤧",oj="Ó",sj="ó",lj="⊛",aj="Ô",cj="ô",uj="⊚",fj="О",dj="о",hj="⊝",pj="Ő",gj="ő",vj="⨸",mj="⊙",yj="⦼",bj="Œ",wj="œ",xj="⦿",_j="𝔒",Sj="𝔬",kj="˛",Tj="Ò",Cj="ò",Ej="⧁",Lj="⦵",Aj="Ω",Mj="∮",Nj="↺",$j="⦾",Oj="⦻",Pj="‾",Rj="⧀",Dj="Ō",zj="ō",Ij="Ω",Fj="ω",Hj="Ο",qj="ο",Bj="⦶",Wj="⊖",Uj="𝕆",Vj="𝕠",jj="⦷",Gj="“",Kj="‘",Xj="⦹",Yj="⊕",Zj="↻",Jj="⩔",Qj="∨",eG="⩝",tG="ℴ",nG="ℴ",rG="ª",iG="º",oG="⊶",sG="⩖",lG="⩗",aG="⩛",cG="Ⓢ",uG="𝒪",fG="ℴ",dG="Ø",hG="ø",pG="⊘",gG="Õ",vG="õ",mG="⨶",yG="⨷",bG="⊗",wG="Ö",xG="ö",_G="⌽",SG="‾",kG="⏞",TG="⎴",CG="⏜",EG="¶",LG="∥",AG="∥",MG="⫳",NG="⫽",$G="∂",OG="∂",PG="П",RG="п",DG="%",zG=".",IG="‰",FG="⊥",HG="‱",qG="𝔓",BG="𝔭",WG="Φ",UG="φ",VG="ϕ",jG="ℳ",GG="☎",KG="Π",XG="π",YG="⋔",ZG="ϖ",JG="ℏ",QG="ℎ",e9="ℏ",t9="⨣",n9="⊞",r9="⨢",i9="+",o9="∔",s9="⨥",l9="⩲",a9="±",c9="±",u9="⨦",f9="⨧",d9="±",h9="ℌ",p9="⨕",g9="𝕡",v9="ℙ",m9="£",y9="⪷",b9="⪻",w9="≺",x9="≼",_9="⪷",S9="≺",k9="≼",T9="≺",C9="⪯",E9="≼",L9="≾",A9="⪯",M9="⪹",N9="⪵",$9="⋨",O9="⪯",P9="⪳",R9="≾",D9="′",z9="″",I9="ℙ",F9="⪹",H9="⪵",q9="⋨",B9="∏",W9="∏",U9="⌮",V9="⌒",j9="⌓",G9="∝",K9="∝",X9="∷",Y9="∝",Z9="≾",J9="⊰",Q9="𝒫",e7="𝓅",t7="Ψ",n7="ψ",r7=" ",i7="𝔔",o7="𝔮",s7="⨌",l7="𝕢",a7="ℚ",c7="⁗",u7="𝒬",f7="𝓆",d7="ℍ",h7="⨖",p7="?",g7="≟",v7='"',m7='"',y7="⇛",b7="∽̱",w7="Ŕ",x7="ŕ",_7="√",S7="⦳",k7="⟩",T7="⟫",C7="⦒",E7="⦥",L7="⟩",A7="»",M7="⥵",N7="⇥",$7="⤠",O7="⤳",P7="→",R7="↠",D7="⇒",z7="⤞",I7="↪",F7="↬",H7="⥅",q7="⥴",B7="⤖",W7="↣",U7="↝",V7="⤚",j7="⤜",G7="∶",K7="ℚ",X7="⤍",Y7="⤏",Z7="⤐",J7="❳",Q7="}",eK="]",tK="⦌",nK="⦎",rK="⦐",iK="Ř",oK="ř",sK="Ŗ",lK="ŗ",aK="⌉",cK="}",uK="Р",fK="р",dK="⤷",hK="⥩",pK="”",gK="”",vK="↳",mK="ℜ",yK="ℛ",bK="ℜ",wK="ℝ",xK="ℜ",_K="▭",SK="®",kK="®",TK="∋",CK="⇋",EK="⥯",LK="⥽",AK="⌋",MK="𝔯",NK="ℜ",$K="⥤",OK="⇁",PK="⇀",RK="⥬",DK="Ρ",zK="ρ",IK="ϱ",FK="⟩",HK="⇥",qK="→",BK="→",WK="⇒",UK="⇄",VK="↣",jK="⌉",GK="⟧",KK="⥝",XK="⥕",YK="⇂",ZK="⌋",JK="⇁",QK="⇀",eX="⇄",tX="⇌",nX="⇉",rX="↝",iX="↦",oX="⊢",sX="⥛",lX="⋌",aX="⧐",cX="⊳",uX="⊵",fX="⥏",dX="⥜",hX="⥔",pX="↾",gX="⥓",vX="⇀",mX="˚",yX="≓",bX="⇄",wX="⇌",xX="‏",_X="⎱",SX="⎱",kX="⫮",TX="⟭",CX="⇾",EX="⟧",LX="⦆",AX="𝕣",MX="ℝ",NX="⨮",$X="⨵",OX="⥰",PX=")",RX="⦔",DX="⨒",zX="⇉",IX="⇛",FX="›",HX="𝓇",qX="ℛ",BX="↱",WX="↱",UX="]",VX="’",jX="’",GX="⋌",KX="⋊",XX="▹",YX="⊵",ZX="▸",JX="⧎",QX="⧴",eY="⥨",tY="℞",nY="Ś",rY="ś",iY="‚",oY="⪸",sY="Š",lY="š",aY="⪼",cY="≻",uY="≽",fY="⪰",dY="⪴",hY="Ş",pY="ş",gY="Ŝ",vY="ŝ",mY="⪺",yY="⪶",bY="⋩",wY="⨓",xY="≿",_Y="С",SY="с",kY="⊡",TY="⋅",CY="⩦",EY="⤥",LY="↘",AY="⇘",MY="↘",NY="§",$Y=";",OY="⤩",PY="∖",RY="∖",DY="✶",zY="𝔖",IY="𝔰",FY="⌢",HY="♯",qY="Щ",BY="щ",WY="Ш",UY="ш",VY="↓",jY="←",GY="∣",KY="∥",XY="→",YY="↑",ZY="­",JY="Σ",QY="σ",eZ="ς",tZ="ς",nZ="∼",rZ="⩪",iZ="≃",oZ="≃",sZ="⪞",lZ="⪠",aZ="⪝",cZ="⪟",uZ="≆",fZ="⨤",dZ="⥲",hZ="←",pZ="∘",gZ="∖",vZ="⨳",mZ="⧤",yZ="∣",bZ="⌣",wZ="⪪",xZ="⪬",_Z="⪬︀",SZ="Ь",kZ="ь",TZ="⌿",CZ="⧄",EZ="/",LZ="𝕊",AZ="𝕤",MZ="♠",NZ="♠",$Z="∥",OZ="⊓",PZ="⊓︀",RZ="⊔",DZ="⊔︀",zZ="√",IZ="⊏",FZ="⊑",HZ="⊏",qZ="⊑",BZ="⊐",WZ="⊒",UZ="⊐",VZ="⊒",jZ="□",GZ="□",KZ="⊓",XZ="⊏",YZ="⊑",ZZ="⊐",JZ="⊒",QZ="⊔",eJ="▪",tJ="□",nJ="▪",rJ="→",iJ="𝒮",oJ="𝓈",sJ="∖",lJ="⌣",aJ="⋆",cJ="⋆",uJ="☆",fJ="★",dJ="ϵ",hJ="ϕ",pJ="¯",gJ="⊂",vJ="⋐",mJ="⪽",yJ="⫅",bJ="⊆",wJ="⫃",xJ="⫁",_J="⫋",SJ="⊊",kJ="⪿",TJ="⥹",CJ="⊂",EJ="⋐",LJ="⊆",AJ="⫅",MJ="⊆",NJ="⊊",$J="⫋",OJ="⫇",PJ="⫕",RJ="⫓",DJ="⪸",zJ="≻",IJ="≽",FJ="≻",HJ="⪰",qJ="≽",BJ="≿",WJ="⪰",UJ="⪺",VJ="⪶",jJ="⋩",GJ="≿",KJ="∋",XJ="∑",YJ="∑",ZJ="♪",JJ="¹",QJ="²",eQ="³",tQ="⊃",nQ="⋑",rQ="⪾",iQ="⫘",oQ="⫆",sQ="⊇",lQ="⫄",aQ="⊃",cQ="⊇",uQ="⟉",fQ="⫗",dQ="⥻",hQ="⫂",pQ="⫌",gQ="⊋",vQ="⫀",mQ="⊃",yQ="⋑",bQ="⊇",wQ="⫆",xQ="⊋",_Q="⫌",SQ="⫈",kQ="⫔",TQ="⫖",CQ="⤦",EQ="↙",LQ="⇙",AQ="↙",MQ="⤪",NQ="ß",$Q=" ",OQ="⌖",PQ="Τ",RQ="τ",DQ="⎴",zQ="Ť",IQ="ť",FQ="Ţ",HQ="ţ",qQ="Т",BQ="т",WQ="⃛",UQ="⌕",VQ="𝔗",jQ="𝔱",GQ="∴",KQ="∴",XQ="∴",YQ="Θ",ZQ="θ",JQ="ϑ",QQ="ϑ",eee="≈",tee="∼",nee="  ",ree=" ",iee=" ",oee="≈",see="∼",lee="Þ",aee="þ",cee="˜",uee="∼",fee="≃",dee="≅",hee="≈",pee="⨱",gee="⊠",vee="×",mee="⨰",yee="∭",bee="⤨",wee="⌶",xee="⫱",_ee="⊤",See="𝕋",kee="𝕥",Tee="⫚",Cee="⤩",Eee="‴",Lee="™",Aee="™",Mee="▵",Nee="▿",$ee="◃",Oee="⊴",Pee="≜",Ree="▹",Dee="⊵",zee="◬",Iee="≜",Fee="⨺",Hee="⃛",qee="⨹",Bee="⧍",Wee="⨻",Uee="⏢",Vee="𝒯",jee="𝓉",Gee="Ц",Kee="ц",Xee="Ћ",Yee="ћ",Zee="Ŧ",Jee="ŧ",Qee="≬",ete="↞",tte="↠",nte="Ú",rte="ú",ite="↑",ote="↟",ste="⇑",lte="⥉",ate="Ў",cte="ў",ute="Ŭ",fte="ŭ",dte="Û",hte="û",pte="У",gte="у",vte="⇅",mte="Ű",yte="ű",bte="⥮",wte="⥾",xte="𝔘",_te="𝔲",Ste="Ù",kte="ù",Tte="⥣",Cte="↿",Ete="↾",Lte="▀",Ate="⌜",Mte="⌜",Nte="⌏",$te="◸",Ote="Ū",Pte="ū",Rte="¨",Dte="_",zte="⏟",Ite="⎵",Fte="⏝",Hte="⋃",qte="⊎",Bte="Ų",Wte="ų",Ute="𝕌",Vte="𝕦",jte="⤒",Gte="↑",Kte="↑",Xte="⇑",Yte="⇅",Zte="↕",Jte="↕",Qte="⇕",ene="⥮",tne="↿",nne="↾",rne="⊎",ine="↖",one="↗",sne="υ",lne="ϒ",ane="ϒ",cne="Υ",une="υ",fne="↥",dne="⊥",hne="⇈",pne="⌝",gne="⌝",vne="⌎",mne="Ů",yne="ů",bne="◹",wne="𝒰",xne="𝓊",_ne="⋰",Sne="Ũ",kne="ũ",Tne="▵",Cne="▴",Ene="⇈",Lne="Ü",Ane="ü",Mne="⦧",Nne="⦜",$ne="ϵ",One="ϰ",Pne="∅",Rne="ϕ",Dne="ϖ",zne="∝",Ine="↕",Fne="⇕",Hne="ϱ",qne="ς",Bne="⊊︀",Wne="⫋︀",Une="⊋︀",Vne="⫌︀",jne="ϑ",Gne="⊲",Kne="⊳",Xne="⫨",Yne="⫫",Zne="⫩",Jne="В",Qne="в",ere="⊢",tre="⊨",nre="⊩",rre="⊫",ire="⫦",ore="⊻",sre="∨",lre="⋁",are="≚",cre="⋮",ure="|",fre="‖",dre="|",hre="‖",pre="∣",gre="|",vre="❘",mre="≀",yre=" ",bre="𝔙",wre="𝔳",xre="⊲",_re="⊂⃒",Sre="⊃⃒",kre="𝕍",Tre="𝕧",Cre="∝",Ere="⊳",Lre="𝒱",Are="𝓋",Mre="⫋︀",Nre="⊊︀",$re="⫌︀",Ore="⊋︀",Pre="⊪",Rre="⦚",Dre="Ŵ",zre="ŵ",Ire="⩟",Fre="∧",Hre="⋀",qre="≙",Bre="℘",Wre="𝔚",Ure="𝔴",Vre="𝕎",jre="𝕨",Gre="℘",Kre="≀",Xre="≀",Yre="𝒲",Zre="𝓌",Jre="⋂",Qre="◯",eie="⋃",tie="▽",nie="𝔛",rie="𝔵",iie="⟷",oie="⟺",sie="Ξ",lie="ξ",aie="⟵",cie="⟸",uie="⟼",fie="⋻",die="⨀",hie="𝕏",pie="𝕩",gie="⨁",vie="⨂",mie="⟶",yie="⟹",bie="𝒳",wie="𝓍",xie="⨆",_ie="⨄",Sie="△",kie="⋁",Tie="⋀",Cie="Ý",Eie="ý",Lie="Я",Aie="я",Mie="Ŷ",Nie="ŷ",$ie="Ы",Oie="ы",Pie="¥",Rie="𝔜",Die="𝔶",zie="Ї",Iie="ї",Fie="𝕐",Hie="𝕪",qie="𝒴",Bie="𝓎",Wie="Ю",Uie="ю",Vie="ÿ",jie="Ÿ",Gie="Ź",Kie="ź",Xie="Ž",Yie="ž",Zie="З",Jie="з",Qie="Ż",eoe="ż",toe="ℨ",noe="​",roe="Ζ",ioe="ζ",ooe="𝔷",soe="ℨ",loe="Ж",aoe="ж",coe="⇝",uoe="𝕫",foe="ℤ",doe="𝒵",hoe="𝓏",poe="‍",goe="‌",Ub={Aacute:QE,aacute:eL,Abreve:tL,abreve:nL,ac:rL,acd:iL,acE:oL,Acirc:sL,acirc:lL,acute:aL,Acy:cL,acy:uL,AElig:fL,aelig:dL,af:hL,Afr:pL,afr:gL,Agrave:vL,agrave:mL,alefsym:yL,aleph:bL,Alpha:wL,alpha:xL,Amacr:_L,amacr:SL,amalg:kL,amp:TL,AMP:CL,andand:EL,And:LL,and:AL,andd:ML,andslope:NL,andv:$L,ang:OL,ange:PL,angle:RL,angmsdaa:DL,angmsdab:zL,angmsdac:IL,angmsdad:FL,angmsdae:HL,angmsdaf:qL,angmsdag:BL,angmsdah:WL,angmsd:UL,angrt:VL,angrtvb:jL,angrtvbd:GL,angsph:KL,angst:XL,angzarr:YL,Aogon:ZL,aogon:JL,Aopf:QL,aopf:eA,apacir:tA,ap:nA,apE:rA,ape:iA,apid:oA,apos:sA,ApplyFunction:lA,approx:aA,approxeq:cA,Aring:uA,aring:fA,Ascr:dA,ascr:hA,Assign:pA,ast:gA,asymp:vA,asympeq:mA,Atilde:yA,atilde:bA,Auml:wA,auml:xA,awconint:_A,awint:SA,backcong:kA,backepsilon:TA,backprime:CA,backsim:EA,backsimeq:LA,Backslash:AA,Barv:MA,barvee:NA,barwed:$A,Barwed:OA,barwedge:PA,bbrk:RA,bbrktbrk:DA,bcong:zA,Bcy:IA,bcy:FA,bdquo:HA,becaus:qA,because:BA,Because:WA,bemptyv:UA,bepsi:VA,bernou:jA,Bernoullis:GA,Beta:KA,beta:XA,beth:YA,between:ZA,Bfr:JA,bfr:QA,bigcap:eM,bigcirc:tM,bigcup:nM,bigodot:rM,bigoplus:iM,bigotimes:oM,bigsqcup:sM,bigstar:lM,bigtriangledown:aM,bigtriangleup:cM,biguplus:uM,bigvee:fM,bigwedge:dM,bkarow:hM,blacklozenge:pM,blacksquare:gM,blacktriangle:vM,blacktriangledown:mM,blacktriangleleft:yM,blacktriangleright:bM,blank:wM,blk12:xM,blk14:_M,blk34:SM,block:kM,bne:TM,bnequiv:CM,bNot:EM,bnot:LM,Bopf:AM,bopf:MM,bot:NM,bottom:$M,bowtie:OM,boxbox:PM,boxdl:RM,boxdL:DM,boxDl:zM,boxDL:IM,boxdr:FM,boxdR:HM,boxDr:qM,boxDR:BM,boxh:WM,boxH:UM,boxhd:VM,boxHd:jM,boxhD:GM,boxHD:KM,boxhu:XM,boxHu:YM,boxhU:ZM,boxHU:JM,boxminus:QM,boxplus:eN,boxtimes:tN,boxul:nN,boxuL:rN,boxUl:iN,boxUL:oN,boxur:sN,boxuR:lN,boxUr:aN,boxUR:cN,boxv:uN,boxV:fN,boxvh:dN,boxvH:hN,boxVh:pN,boxVH:gN,boxvl:vN,boxvL:mN,boxVl:yN,boxVL:bN,boxvr:wN,boxvR:xN,boxVr:_N,boxVR:SN,bprime:kN,breve:TN,Breve:CN,brvbar:EN,bscr:LN,Bscr:AN,bsemi:MN,bsim:NN,bsime:$N,bsolb:ON,bsol:PN,bsolhsub:RN,bull:DN,bullet:zN,bump:IN,bumpE:FN,bumpe:HN,Bumpeq:qN,bumpeq:BN,Cacute:WN,cacute:UN,capand:VN,capbrcup:jN,capcap:GN,cap:KN,Cap:XN,capcup:YN,capdot:ZN,CapitalDifferentialD:JN,caps:QN,caret:e$,caron:t$,Cayleys:n$,ccaps:r$,Ccaron:i$,ccaron:o$,Ccedil:s$,ccedil:l$,Ccirc:a$,ccirc:c$,Cconint:u$,ccups:f$,ccupssm:d$,Cdot:h$,cdot:p$,cedil:g$,Cedilla:v$,cemptyv:m$,cent:y$,centerdot:b$,CenterDot:w$,cfr:x$,Cfr:_$,CHcy:S$,chcy:k$,check:T$,checkmark:C$,Chi:E$,chi:L$,circ:A$,circeq:M$,circlearrowleft:N$,circlearrowright:$$,circledast:O$,circledcirc:P$,circleddash:R$,CircleDot:D$,circledR:z$,circledS:I$,CircleMinus:F$,CirclePlus:H$,CircleTimes:q$,cir:B$,cirE:W$,cire:U$,cirfnint:V$,cirmid:j$,cirscir:G$,ClockwiseContourIntegral:K$,CloseCurlyDoubleQuote:X$,CloseCurlyQuote:Y$,clubs:Z$,clubsuit:J$,colon:Q$,Colon:eO,Colone:tO,colone:nO,coloneq:rO,comma:iO,commat:oO,comp:sO,compfn:lO,complement:aO,complexes:cO,cong:uO,congdot:fO,Congruent:dO,conint:hO,Conint:pO,ContourIntegral:gO,copf:vO,Copf:mO,coprod:yO,Coproduct:bO,copy:wO,COPY:xO,copysr:_O,CounterClockwiseContourIntegral:SO,crarr:kO,cross:TO,Cross:CO,Cscr:EO,cscr:LO,csub:AO,csube:MO,csup:NO,csupe:$O,ctdot:OO,cudarrl:PO,cudarrr:RO,cuepr:DO,cuesc:zO,cularr:IO,cularrp:FO,cupbrcap:HO,cupcap:qO,CupCap:BO,cup:WO,Cup:UO,cupcup:VO,cupdot:jO,cupor:GO,cups:KO,curarr:XO,curarrm:YO,curlyeqprec:ZO,curlyeqsucc:JO,curlyvee:QO,curlywedge:eP,curren:tP,curvearrowleft:nP,curvearrowright:rP,cuvee:iP,cuwed:oP,cwconint:sP,cwint:lP,cylcty:aP,dagger:cP,Dagger:uP,daleth:fP,darr:dP,Darr:hP,dArr:pP,dash:gP,Dashv:vP,dashv:mP,dbkarow:yP,dblac:bP,Dcaron:wP,dcaron:xP,Dcy:_P,dcy:SP,ddagger:kP,ddarr:TP,DD:CP,dd:EP,DDotrahd:LP,ddotseq:AP,deg:MP,Del:NP,Delta:$P,delta:OP,demptyv:PP,dfisht:RP,Dfr:DP,dfr:zP,dHar:IP,dharl:FP,dharr:HP,DiacriticalAcute:qP,DiacriticalDot:BP,DiacriticalDoubleAcute:WP,DiacriticalGrave:UP,DiacriticalTilde:VP,diam:jP,diamond:GP,Diamond:KP,diamondsuit:XP,diams:YP,die:ZP,DifferentialD:JP,digamma:QP,disin:eR,div:tR,divide:nR,divideontimes:rR,divonx:iR,DJcy:oR,djcy:sR,dlcorn:lR,dlcrop:aR,dollar:cR,Dopf:uR,dopf:fR,Dot:dR,dot:hR,DotDot:pR,doteq:gR,doteqdot:vR,DotEqual:mR,dotminus:yR,dotplus:bR,dotsquare:wR,doublebarwedge:xR,DoubleContourIntegral:_R,DoubleDot:SR,DoubleDownArrow:kR,DoubleLeftArrow:TR,DoubleLeftRightArrow:CR,DoubleLeftTee:ER,DoubleLongLeftArrow:LR,DoubleLongLeftRightArrow:AR,DoubleLongRightArrow:MR,DoubleRightArrow:NR,DoubleRightTee:$R,DoubleUpArrow:OR,DoubleUpDownArrow:PR,DoubleVerticalBar:RR,DownArrowBar:DR,downarrow:zR,DownArrow:IR,Downarrow:FR,DownArrowUpArrow:HR,DownBreve:qR,downdownarrows:BR,downharpoonleft:WR,downharpoonright:UR,DownLeftRightVector:VR,DownLeftTeeVector:jR,DownLeftVectorBar:GR,DownLeftVector:KR,DownRightTeeVector:XR,DownRightVectorBar:YR,DownRightVector:ZR,DownTeeArrow:JR,DownTee:QR,drbkarow:eD,drcorn:tD,drcrop:nD,Dscr:rD,dscr:iD,DScy:oD,dscy:sD,dsol:lD,Dstrok:aD,dstrok:cD,dtdot:uD,dtri:fD,dtrif:dD,duarr:hD,duhar:pD,dwangle:gD,DZcy:vD,dzcy:mD,dzigrarr:yD,Eacute:bD,eacute:wD,easter:xD,Ecaron:_D,ecaron:SD,Ecirc:kD,ecirc:TD,ecir:CD,ecolon:ED,Ecy:LD,ecy:AD,eDDot:MD,Edot:ND,edot:$D,eDot:OD,ee:PD,efDot:RD,Efr:DD,efr:zD,eg:ID,Egrave:FD,egrave:HD,egs:qD,egsdot:BD,el:WD,Element:UD,elinters:VD,ell:jD,els:GD,elsdot:KD,Emacr:XD,emacr:YD,empty:ZD,emptyset:JD,EmptySmallSquare:QD,emptyv:e2,EmptyVerySmallSquare:t2,emsp13:n2,emsp14:r2,emsp:i2,ENG:o2,eng:s2,ensp:l2,Eogon:a2,eogon:c2,Eopf:u2,eopf:f2,epar:d2,eparsl:h2,eplus:p2,epsi:g2,Epsilon:v2,epsilon:m2,epsiv:y2,eqcirc:b2,eqcolon:w2,eqsim:x2,eqslantgtr:_2,eqslantless:S2,Equal:k2,equals:T2,EqualTilde:C2,equest:E2,Equilibrium:L2,equiv:A2,equivDD:M2,eqvparsl:N2,erarr:$2,erDot:O2,escr:P2,Escr:R2,esdot:D2,Esim:z2,esim:I2,Eta:F2,eta:H2,ETH:q2,eth:B2,Euml:W2,euml:U2,euro:V2,excl:j2,exist:G2,Exists:K2,expectation:X2,exponentiale:Y2,ExponentialE:Z2,fallingdotseq:J2,Fcy:Q2,fcy:ez,female:tz,ffilig:nz,fflig:rz,ffllig:iz,Ffr:oz,ffr:sz,filig:lz,FilledSmallSquare:az,FilledVerySmallSquare:cz,fjlig:uz,flat:fz,fllig:dz,fltns:hz,fnof:pz,Fopf:gz,fopf:vz,forall:mz,ForAll:yz,fork:bz,forkv:wz,Fouriertrf:xz,fpartint:_z,frac12:Sz,frac13:kz,frac14:Tz,frac15:Cz,frac16:Ez,frac18:Lz,frac23:Az,frac25:Mz,frac34:Nz,frac35:$z,frac38:Oz,frac45:Pz,frac56:Rz,frac58:Dz,frac78:zz,frasl:Iz,frown:Fz,fscr:Hz,Fscr:qz,gacute:Bz,Gamma:Wz,gamma:Uz,Gammad:Vz,gammad:jz,gap:Gz,Gbreve:Kz,gbreve:Xz,Gcedil:Yz,Gcirc:Zz,gcirc:Jz,Gcy:Qz,gcy:eI,Gdot:tI,gdot:nI,ge:rI,gE:iI,gEl:oI,gel:sI,geq:lI,geqq:aI,geqslant:cI,gescc:uI,ges:fI,gesdot:dI,gesdoto:hI,gesdotol:pI,gesl:gI,gesles:vI,Gfr:mI,gfr:yI,gg:bI,Gg:wI,ggg:xI,gimel:_I,GJcy:SI,gjcy:kI,gla:TI,gl:CI,glE:EI,glj:LI,gnap:AI,gnapprox:MI,gne:NI,gnE:$I,gneq:OI,gneqq:PI,gnsim:RI,Gopf:DI,gopf:zI,grave:II,GreaterEqual:FI,GreaterEqualLess:HI,GreaterFullEqual:qI,GreaterGreater:BI,GreaterLess:WI,GreaterSlantEqual:UI,GreaterTilde:VI,Gscr:jI,gscr:GI,gsim:KI,gsime:XI,gsiml:YI,gtcc:ZI,gtcir:JI,gt:QI,GT:eF,Gt:tF,gtdot:nF,gtlPar:rF,gtquest:iF,gtrapprox:oF,gtrarr:sF,gtrdot:lF,gtreqless:aF,gtreqqless:cF,gtrless:uF,gtrsim:fF,gvertneqq:dF,gvnE:hF,Hacek:pF,hairsp:gF,half:vF,hamilt:mF,HARDcy:yF,hardcy:bF,harrcir:wF,harr:xF,hArr:_F,harrw:SF,Hat:kF,hbar:TF,Hcirc:CF,hcirc:EF,hearts:LF,heartsuit:AF,hellip:MF,hercon:NF,hfr:$F,Hfr:OF,HilbertSpace:PF,hksearow:RF,hkswarow:DF,hoarr:zF,homtht:IF,hookleftarrow:FF,hookrightarrow:HF,hopf:qF,Hopf:BF,horbar:WF,HorizontalLine:UF,hscr:VF,Hscr:jF,hslash:GF,Hstrok:KF,hstrok:XF,HumpDownHump:YF,HumpEqual:ZF,hybull:JF,hyphen:QF,Iacute:eH,iacute:tH,ic:nH,Icirc:rH,icirc:iH,Icy:oH,icy:sH,Idot:lH,IEcy:aH,iecy:cH,iexcl:uH,iff:fH,ifr:dH,Ifr:hH,Igrave:pH,igrave:gH,ii:vH,iiiint:mH,iiint:yH,iinfin:bH,iiota:wH,IJlig:xH,ijlig:_H,Imacr:SH,imacr:kH,image:TH,ImaginaryI:CH,imagline:EH,imagpart:LH,imath:AH,Im:MH,imof:NH,imped:$H,Implies:OH,incare:PH,in:"∈",infin:RH,infintie:DH,inodot:zH,intcal:IH,int:FH,Int:HH,integers:qH,Integral:BH,intercal:WH,Intersection:UH,intlarhk:VH,intprod:jH,InvisibleComma:GH,InvisibleTimes:KH,IOcy:XH,iocy:YH,Iogon:ZH,iogon:JH,Iopf:QH,iopf:eq,Iota:tq,iota:nq,iprod:rq,iquest:iq,iscr:oq,Iscr:sq,isin:lq,isindot:aq,isinE:cq,isins:uq,isinsv:fq,isinv:dq,it:hq,Itilde:pq,itilde:gq,Iukcy:vq,iukcy:mq,Iuml:yq,iuml:bq,Jcirc:wq,jcirc:xq,Jcy:_q,jcy:Sq,Jfr:kq,jfr:Tq,jmath:Cq,Jopf:Eq,jopf:Lq,Jscr:Aq,jscr:Mq,Jsercy:Nq,jsercy:$q,Jukcy:Oq,jukcy:Pq,Kappa:Rq,kappa:Dq,kappav:zq,Kcedil:Iq,kcedil:Fq,Kcy:Hq,kcy:qq,Kfr:Bq,kfr:Wq,kgreen:Uq,KHcy:Vq,khcy:jq,KJcy:Gq,kjcy:Kq,Kopf:Xq,kopf:Yq,Kscr:Zq,kscr:Jq,lAarr:Qq,Lacute:eB,lacute:tB,laemptyv:nB,lagran:rB,Lambda:iB,lambda:oB,lang:sB,Lang:lB,langd:aB,langle:cB,lap:uB,Laplacetrf:fB,laquo:dB,larrb:hB,larrbfs:pB,larr:gB,Larr:vB,lArr:mB,larrfs:yB,larrhk:bB,larrlp:wB,larrpl:xB,larrsim:_B,larrtl:SB,latail:kB,lAtail:TB,lat:CB,late:EB,lates:LB,lbarr:AB,lBarr:MB,lbbrk:NB,lbrace:$B,lbrack:OB,lbrke:PB,lbrksld:RB,lbrkslu:DB,Lcaron:zB,lcaron:IB,Lcedil:FB,lcedil:HB,lceil:qB,lcub:BB,Lcy:WB,lcy:UB,ldca:VB,ldquo:jB,ldquor:GB,ldrdhar:KB,ldrushar:XB,ldsh:YB,le:ZB,lE:JB,LeftAngleBracket:QB,LeftArrowBar:e3,leftarrow:t3,LeftArrow:n3,Leftarrow:r3,LeftArrowRightArrow:i3,leftarrowtail:o3,LeftCeiling:s3,LeftDoubleBracket:l3,LeftDownTeeVector:a3,LeftDownVectorBar:c3,LeftDownVector:u3,LeftFloor:f3,leftharpoondown:d3,leftharpoonup:h3,leftleftarrows:p3,leftrightarrow:g3,LeftRightArrow:v3,Leftrightarrow:m3,leftrightarrows:y3,leftrightharpoons:b3,leftrightsquigarrow:w3,LeftRightVector:x3,LeftTeeArrow:_3,LeftTee:S3,LeftTeeVector:k3,leftthreetimes:T3,LeftTriangleBar:C3,LeftTriangle:E3,LeftTriangleEqual:L3,LeftUpDownVector:A3,LeftUpTeeVector:M3,LeftUpVectorBar:N3,LeftUpVector:$3,LeftVectorBar:O3,LeftVector:P3,lEg:R3,leg:D3,leq:z3,leqq:I3,leqslant:F3,lescc:H3,les:q3,lesdot:B3,lesdoto:W3,lesdotor:U3,lesg:V3,lesges:j3,lessapprox:G3,lessdot:K3,lesseqgtr:X3,lesseqqgtr:Y3,LessEqualGreater:Z3,LessFullEqual:J3,LessGreater:Q3,lessgtr:e5,LessLess:t5,lesssim:n5,LessSlantEqual:r5,LessTilde:i5,lfisht:o5,lfloor:s5,Lfr:l5,lfr:a5,lg:c5,lgE:u5,lHar:f5,lhard:d5,lharu:h5,lharul:p5,lhblk:g5,LJcy:v5,ljcy:m5,llarr:y5,ll:b5,Ll:w5,llcorner:x5,Lleftarrow:_5,llhard:S5,lltri:k5,Lmidot:T5,lmidot:C5,lmoustache:E5,lmoust:L5,lnap:A5,lnapprox:M5,lne:N5,lnE:$5,lneq:O5,lneqq:P5,lnsim:R5,loang:D5,loarr:z5,lobrk:I5,longleftarrow:F5,LongLeftArrow:H5,Longleftarrow:q5,longleftrightarrow:B5,LongLeftRightArrow:W5,Longleftrightarrow:U5,longmapsto:V5,longrightarrow:j5,LongRightArrow:G5,Longrightarrow:K5,looparrowleft:X5,looparrowright:Y5,lopar:Z5,Lopf:J5,lopf:Q5,loplus:e8,lotimes:t8,lowast:n8,lowbar:r8,LowerLeftArrow:i8,LowerRightArrow:o8,loz:s8,lozenge:l8,lozf:a8,lpar:c8,lparlt:u8,lrarr:f8,lrcorner:d8,lrhar:h8,lrhard:p8,lrm:g8,lrtri:v8,lsaquo:m8,lscr:y8,Lscr:b8,lsh:w8,Lsh:x8,lsim:_8,lsime:S8,lsimg:k8,lsqb:T8,lsquo:C8,lsquor:E8,Lstrok:L8,lstrok:A8,ltcc:M8,ltcir:N8,lt:$8,LT:O8,Lt:P8,ltdot:R8,lthree:D8,ltimes:z8,ltlarr:I8,ltquest:F8,ltri:H8,ltrie:q8,ltrif:B8,ltrPar:W8,lurdshar:U8,luruhar:V8,lvertneqq:j8,lvnE:G8,macr:K8,male:X8,malt:Y8,maltese:Z8,Map:"⤅",map:J8,mapsto:Q8,mapstodown:eW,mapstoleft:tW,mapstoup:nW,marker:rW,mcomma:iW,Mcy:oW,mcy:sW,mdash:lW,mDDot:aW,measuredangle:cW,MediumSpace:uW,Mellintrf:fW,Mfr:dW,mfr:hW,mho:pW,micro:gW,midast:vW,midcir:mW,mid:yW,middot:bW,minusb:wW,minus:xW,minusd:_W,minusdu:SW,MinusPlus:kW,mlcp:TW,mldr:CW,mnplus:EW,models:LW,Mopf:AW,mopf:MW,mp:NW,mscr:$W,Mscr:OW,mstpos:PW,Mu:RW,mu:DW,multimap:zW,mumap:IW,nabla:FW,Nacute:HW,nacute:qW,nang:BW,nap:WW,napE:UW,napid:VW,napos:jW,napprox:GW,natural:KW,naturals:XW,natur:YW,nbsp:ZW,nbump:JW,nbumpe:QW,ncap:eU,Ncaron:tU,ncaron:nU,Ncedil:rU,ncedil:iU,ncong:oU,ncongdot:sU,ncup:lU,Ncy:aU,ncy:cU,ndash:uU,nearhk:fU,nearr:dU,neArr:hU,nearrow:pU,ne:gU,nedot:vU,NegativeMediumSpace:mU,NegativeThickSpace:yU,NegativeThinSpace:bU,NegativeVeryThinSpace:wU,nequiv:xU,nesear:_U,nesim:SU,NestedGreaterGreater:kU,NestedLessLess:TU,NewLine:CU,nexist:EU,nexists:LU,Nfr:AU,nfr:MU,ngE:NU,nge:$U,ngeq:OU,ngeqq:PU,ngeqslant:RU,nges:DU,nGg:zU,ngsim:IU,nGt:FU,ngt:HU,ngtr:qU,nGtv:BU,nharr:WU,nhArr:UU,nhpar:VU,ni:jU,nis:GU,nisd:KU,niv:XU,NJcy:YU,njcy:ZU,nlarr:JU,nlArr:QU,nldr:e4,nlE:t4,nle:n4,nleftarrow:r4,nLeftarrow:i4,nleftrightarrow:o4,nLeftrightarrow:s4,nleq:l4,nleqq:a4,nleqslant:c4,nles:u4,nless:f4,nLl:d4,nlsim:h4,nLt:p4,nlt:g4,nltri:v4,nltrie:m4,nLtv:y4,nmid:b4,NoBreak:w4,NonBreakingSpace:x4,nopf:_4,Nopf:S4,Not:k4,not:T4,NotCongruent:C4,NotCupCap:E4,NotDoubleVerticalBar:L4,NotElement:A4,NotEqual:M4,NotEqualTilde:N4,NotExists:$4,NotGreater:O4,NotGreaterEqual:P4,NotGreaterFullEqual:R4,NotGreaterGreater:D4,NotGreaterLess:z4,NotGreaterSlantEqual:I4,NotGreaterTilde:F4,NotHumpDownHump:H4,NotHumpEqual:q4,notin:B4,notindot:W4,notinE:U4,notinva:V4,notinvb:j4,notinvc:G4,NotLeftTriangleBar:K4,NotLeftTriangle:X4,NotLeftTriangleEqual:Y4,NotLess:Z4,NotLessEqual:J4,NotLessGreater:Q4,NotLessLess:e6,NotLessSlantEqual:t6,NotLessTilde:n6,NotNestedGreaterGreater:r6,NotNestedLessLess:i6,notni:o6,notniva:s6,notnivb:l6,notnivc:a6,NotPrecedes:c6,NotPrecedesEqual:u6,NotPrecedesSlantEqual:f6,NotReverseElement:d6,NotRightTriangleBar:h6,NotRightTriangle:p6,NotRightTriangleEqual:g6,NotSquareSubset:v6,NotSquareSubsetEqual:m6,NotSquareSuperset:y6,NotSquareSupersetEqual:b6,NotSubset:w6,NotSubsetEqual:x6,NotSucceeds:_6,NotSucceedsEqual:S6,NotSucceedsSlantEqual:k6,NotSucceedsTilde:T6,NotSuperset:C6,NotSupersetEqual:E6,NotTilde:L6,NotTildeEqual:A6,NotTildeFullEqual:M6,NotTildeTilde:N6,NotVerticalBar:$6,nparallel:O6,npar:P6,nparsl:R6,npart:D6,npolint:z6,npr:I6,nprcue:F6,nprec:H6,npreceq:q6,npre:B6,nrarrc:W6,nrarr:U6,nrArr:V6,nrarrw:j6,nrightarrow:G6,nRightarrow:K6,nrtri:X6,nrtrie:Y6,nsc:Z6,nsccue:J6,nsce:Q6,Nscr:eV,nscr:tV,nshortmid:nV,nshortparallel:rV,nsim:iV,nsime:oV,nsimeq:sV,nsmid:lV,nspar:aV,nsqsube:cV,nsqsupe:uV,nsub:fV,nsubE:dV,nsube:hV,nsubset:pV,nsubseteq:gV,nsubseteqq:vV,nsucc:mV,nsucceq:yV,nsup:bV,nsupE:wV,nsupe:xV,nsupset:_V,nsupseteq:SV,nsupseteqq:kV,ntgl:TV,Ntilde:CV,ntilde:EV,ntlg:LV,ntriangleleft:AV,ntrianglelefteq:MV,ntriangleright:NV,ntrianglerighteq:$V,Nu:OV,nu:PV,num:RV,numero:DV,numsp:zV,nvap:IV,nvdash:FV,nvDash:HV,nVdash:qV,nVDash:BV,nvge:WV,nvgt:UV,nvHarr:VV,nvinfin:jV,nvlArr:GV,nvle:KV,nvlt:XV,nvltrie:YV,nvrArr:ZV,nvrtrie:JV,nvsim:QV,nwarhk:ej,nwarr:tj,nwArr:nj,nwarrow:rj,nwnear:ij,Oacute:oj,oacute:sj,oast:lj,Ocirc:aj,ocirc:cj,ocir:uj,Ocy:fj,ocy:dj,odash:hj,Odblac:pj,odblac:gj,odiv:vj,odot:mj,odsold:yj,OElig:bj,oelig:wj,ofcir:xj,Ofr:_j,ofr:Sj,ogon:kj,Ograve:Tj,ograve:Cj,ogt:Ej,ohbar:Lj,ohm:Aj,oint:Mj,olarr:Nj,olcir:$j,olcross:Oj,oline:Pj,olt:Rj,Omacr:Dj,omacr:zj,Omega:Ij,omega:Fj,Omicron:Hj,omicron:qj,omid:Bj,ominus:Wj,Oopf:Uj,oopf:Vj,opar:jj,OpenCurlyDoubleQuote:Gj,OpenCurlyQuote:Kj,operp:Xj,oplus:Yj,orarr:Zj,Or:Jj,or:Qj,ord:eG,order:tG,orderof:nG,ordf:rG,ordm:iG,origof:oG,oror:sG,orslope:lG,orv:aG,oS:cG,Oscr:uG,oscr:fG,Oslash:dG,oslash:hG,osol:pG,Otilde:gG,otilde:vG,otimesas:mG,Otimes:yG,otimes:bG,Ouml:wG,ouml:xG,ovbar:_G,OverBar:SG,OverBrace:kG,OverBracket:TG,OverParenthesis:CG,para:EG,parallel:LG,par:AG,parsim:MG,parsl:NG,part:$G,PartialD:OG,Pcy:PG,pcy:RG,percnt:DG,period:zG,permil:IG,perp:FG,pertenk:HG,Pfr:qG,pfr:BG,Phi:WG,phi:UG,phiv:VG,phmmat:jG,phone:GG,Pi:KG,pi:XG,pitchfork:YG,piv:ZG,planck:JG,planckh:QG,plankv:e9,plusacir:t9,plusb:n9,pluscir:r9,plus:i9,plusdo:o9,plusdu:s9,pluse:l9,PlusMinus:a9,plusmn:c9,plussim:u9,plustwo:f9,pm:d9,Poincareplane:h9,pointint:p9,popf:g9,Popf:v9,pound:m9,prap:y9,Pr:b9,pr:w9,prcue:x9,precapprox:_9,prec:S9,preccurlyeq:k9,Precedes:T9,PrecedesEqual:C9,PrecedesSlantEqual:E9,PrecedesTilde:L9,preceq:A9,precnapprox:M9,precneqq:N9,precnsim:$9,pre:O9,prE:P9,precsim:R9,prime:D9,Prime:z9,primes:I9,prnap:F9,prnE:H9,prnsim:q9,prod:B9,Product:W9,profalar:U9,profline:V9,profsurf:j9,prop:G9,Proportional:K9,Proportion:X9,propto:Y9,prsim:Z9,prurel:J9,Pscr:Q9,pscr:e7,Psi:t7,psi:n7,puncsp:r7,Qfr:i7,qfr:o7,qint:s7,qopf:l7,Qopf:a7,qprime:c7,Qscr:u7,qscr:f7,quaternions:d7,quatint:h7,quest:p7,questeq:g7,quot:v7,QUOT:m7,rAarr:y7,race:b7,Racute:w7,racute:x7,radic:_7,raemptyv:S7,rang:k7,Rang:T7,rangd:C7,range:E7,rangle:L7,raquo:A7,rarrap:M7,rarrb:N7,rarrbfs:$7,rarrc:O7,rarr:P7,Rarr:R7,rArr:D7,rarrfs:z7,rarrhk:I7,rarrlp:F7,rarrpl:H7,rarrsim:q7,Rarrtl:B7,rarrtl:W7,rarrw:U7,ratail:V7,rAtail:j7,ratio:G7,rationals:K7,rbarr:X7,rBarr:Y7,RBarr:Z7,rbbrk:J7,rbrace:Q7,rbrack:eK,rbrke:tK,rbrksld:nK,rbrkslu:rK,Rcaron:iK,rcaron:oK,Rcedil:sK,rcedil:lK,rceil:aK,rcub:cK,Rcy:uK,rcy:fK,rdca:dK,rdldhar:hK,rdquo:pK,rdquor:gK,rdsh:vK,real:mK,realine:yK,realpart:bK,reals:wK,Re:xK,rect:_K,reg:SK,REG:kK,ReverseElement:TK,ReverseEquilibrium:CK,ReverseUpEquilibrium:EK,rfisht:LK,rfloor:AK,rfr:MK,Rfr:NK,rHar:$K,rhard:OK,rharu:PK,rharul:RK,Rho:DK,rho:zK,rhov:IK,RightAngleBracket:FK,RightArrowBar:HK,rightarrow:qK,RightArrow:BK,Rightarrow:WK,RightArrowLeftArrow:UK,rightarrowtail:VK,RightCeiling:jK,RightDoubleBracket:GK,RightDownTeeVector:KK,RightDownVectorBar:XK,RightDownVector:YK,RightFloor:ZK,rightharpoondown:JK,rightharpoonup:QK,rightleftarrows:eX,rightleftharpoons:tX,rightrightarrows:nX,rightsquigarrow:rX,RightTeeArrow:iX,RightTee:oX,RightTeeVector:sX,rightthreetimes:lX,RightTriangleBar:aX,RightTriangle:cX,RightTriangleEqual:uX,RightUpDownVector:fX,RightUpTeeVector:dX,RightUpVectorBar:hX,RightUpVector:pX,RightVectorBar:gX,RightVector:vX,ring:mX,risingdotseq:yX,rlarr:bX,rlhar:wX,rlm:xX,rmoustache:_X,rmoust:SX,rnmid:kX,roang:TX,roarr:CX,robrk:EX,ropar:LX,ropf:AX,Ropf:MX,roplus:NX,rotimes:$X,RoundImplies:OX,rpar:PX,rpargt:RX,rppolint:DX,rrarr:zX,Rrightarrow:IX,rsaquo:FX,rscr:HX,Rscr:qX,rsh:BX,Rsh:WX,rsqb:UX,rsquo:VX,rsquor:jX,rthree:GX,rtimes:KX,rtri:XX,rtrie:YX,rtrif:ZX,rtriltri:JX,RuleDelayed:QX,ruluhar:eY,rx:tY,Sacute:nY,sacute:rY,sbquo:iY,scap:oY,Scaron:sY,scaron:lY,Sc:aY,sc:cY,sccue:uY,sce:fY,scE:dY,Scedil:hY,scedil:pY,Scirc:gY,scirc:vY,scnap:mY,scnE:yY,scnsim:bY,scpolint:wY,scsim:xY,Scy:_Y,scy:SY,sdotb:kY,sdot:TY,sdote:CY,searhk:EY,searr:LY,seArr:AY,searrow:MY,sect:NY,semi:$Y,seswar:OY,setminus:PY,setmn:RY,sext:DY,Sfr:zY,sfr:IY,sfrown:FY,sharp:HY,SHCHcy:qY,shchcy:BY,SHcy:WY,shcy:UY,ShortDownArrow:VY,ShortLeftArrow:jY,shortmid:GY,shortparallel:KY,ShortRightArrow:XY,ShortUpArrow:YY,shy:ZY,Sigma:JY,sigma:QY,sigmaf:eZ,sigmav:tZ,sim:nZ,simdot:rZ,sime:iZ,simeq:oZ,simg:sZ,simgE:lZ,siml:aZ,simlE:cZ,simne:uZ,simplus:fZ,simrarr:dZ,slarr:hZ,SmallCircle:pZ,smallsetminus:gZ,smashp:vZ,smeparsl:mZ,smid:yZ,smile:bZ,smt:wZ,smte:xZ,smtes:_Z,SOFTcy:SZ,softcy:kZ,solbar:TZ,solb:CZ,sol:EZ,Sopf:LZ,sopf:AZ,spades:MZ,spadesuit:NZ,spar:$Z,sqcap:OZ,sqcaps:PZ,sqcup:RZ,sqcups:DZ,Sqrt:zZ,sqsub:IZ,sqsube:FZ,sqsubset:HZ,sqsubseteq:qZ,sqsup:BZ,sqsupe:WZ,sqsupset:UZ,sqsupseteq:VZ,square:jZ,Square:GZ,SquareIntersection:KZ,SquareSubset:XZ,SquareSubsetEqual:YZ,SquareSuperset:ZZ,SquareSupersetEqual:JZ,SquareUnion:QZ,squarf:eJ,squ:tJ,squf:nJ,srarr:rJ,Sscr:iJ,sscr:oJ,ssetmn:sJ,ssmile:lJ,sstarf:aJ,Star:cJ,star:uJ,starf:fJ,straightepsilon:dJ,straightphi:hJ,strns:pJ,sub:gJ,Sub:vJ,subdot:mJ,subE:yJ,sube:bJ,subedot:wJ,submult:xJ,subnE:_J,subne:SJ,subplus:kJ,subrarr:TJ,subset:CJ,Subset:EJ,subseteq:LJ,subseteqq:AJ,SubsetEqual:MJ,subsetneq:NJ,subsetneqq:$J,subsim:OJ,subsub:PJ,subsup:RJ,succapprox:DJ,succ:zJ,succcurlyeq:IJ,Succeeds:FJ,SucceedsEqual:HJ,SucceedsSlantEqual:qJ,SucceedsTilde:BJ,succeq:WJ,succnapprox:UJ,succneqq:VJ,succnsim:jJ,succsim:GJ,SuchThat:KJ,sum:XJ,Sum:YJ,sung:ZJ,sup1:JJ,sup2:QJ,sup3:eQ,sup:tQ,Sup:nQ,supdot:rQ,supdsub:iQ,supE:oQ,supe:sQ,supedot:lQ,Superset:aQ,SupersetEqual:cQ,suphsol:uQ,suphsub:fQ,suplarr:dQ,supmult:hQ,supnE:pQ,supne:gQ,supplus:vQ,supset:mQ,Supset:yQ,supseteq:bQ,supseteqq:wQ,supsetneq:xQ,supsetneqq:_Q,supsim:SQ,supsub:kQ,supsup:TQ,swarhk:CQ,swarr:EQ,swArr:LQ,swarrow:AQ,swnwar:MQ,szlig:NQ,Tab:$Q,target:OQ,Tau:PQ,tau:RQ,tbrk:DQ,Tcaron:zQ,tcaron:IQ,Tcedil:FQ,tcedil:HQ,Tcy:qQ,tcy:BQ,tdot:WQ,telrec:UQ,Tfr:VQ,tfr:jQ,there4:GQ,therefore:KQ,Therefore:XQ,Theta:YQ,theta:ZQ,thetasym:JQ,thetav:QQ,thickapprox:eee,thicksim:tee,ThickSpace:nee,ThinSpace:ree,thinsp:iee,thkap:oee,thksim:see,THORN:lee,thorn:aee,tilde:cee,Tilde:uee,TildeEqual:fee,TildeFullEqual:dee,TildeTilde:hee,timesbar:pee,timesb:gee,times:vee,timesd:mee,tint:yee,toea:bee,topbot:wee,topcir:xee,top:_ee,Topf:See,topf:kee,topfork:Tee,tosa:Cee,tprime:Eee,trade:Lee,TRADE:Aee,triangle:Mee,triangledown:Nee,triangleleft:$ee,trianglelefteq:Oee,triangleq:Pee,triangleright:Ree,trianglerighteq:Dee,tridot:zee,trie:Iee,triminus:Fee,TripleDot:Hee,triplus:qee,trisb:Bee,tritime:Wee,trpezium:Uee,Tscr:Vee,tscr:jee,TScy:Gee,tscy:Kee,TSHcy:Xee,tshcy:Yee,Tstrok:Zee,tstrok:Jee,twixt:Qee,twoheadleftarrow:ete,twoheadrightarrow:tte,Uacute:nte,uacute:rte,uarr:ite,Uarr:ote,uArr:ste,Uarrocir:lte,Ubrcy:ate,ubrcy:cte,Ubreve:ute,ubreve:fte,Ucirc:dte,ucirc:hte,Ucy:pte,ucy:gte,udarr:vte,Udblac:mte,udblac:yte,udhar:bte,ufisht:wte,Ufr:xte,ufr:_te,Ugrave:Ste,ugrave:kte,uHar:Tte,uharl:Cte,uharr:Ete,uhblk:Lte,ulcorn:Ate,ulcorner:Mte,ulcrop:Nte,ultri:$te,Umacr:Ote,umacr:Pte,uml:Rte,UnderBar:Dte,UnderBrace:zte,UnderBracket:Ite,UnderParenthesis:Fte,Union:Hte,UnionPlus:qte,Uogon:Bte,uogon:Wte,Uopf:Ute,uopf:Vte,UpArrowBar:jte,uparrow:Gte,UpArrow:Kte,Uparrow:Xte,UpArrowDownArrow:Yte,updownarrow:Zte,UpDownArrow:Jte,Updownarrow:Qte,UpEquilibrium:ene,upharpoonleft:tne,upharpoonright:nne,uplus:rne,UpperLeftArrow:ine,UpperRightArrow:one,upsi:sne,Upsi:lne,upsih:ane,Upsilon:cne,upsilon:une,UpTeeArrow:fne,UpTee:dne,upuparrows:hne,urcorn:pne,urcorner:gne,urcrop:vne,Uring:mne,uring:yne,urtri:bne,Uscr:wne,uscr:xne,utdot:_ne,Utilde:Sne,utilde:kne,utri:Tne,utrif:Cne,uuarr:Ene,Uuml:Lne,uuml:Ane,uwangle:Mne,vangrt:Nne,varepsilon:$ne,varkappa:One,varnothing:Pne,varphi:Rne,varpi:Dne,varpropto:zne,varr:Ine,vArr:Fne,varrho:Hne,varsigma:qne,varsubsetneq:Bne,varsubsetneqq:Wne,varsupsetneq:Une,varsupsetneqq:Vne,vartheta:jne,vartriangleleft:Gne,vartriangleright:Kne,vBar:Xne,Vbar:Yne,vBarv:Zne,Vcy:Jne,vcy:Qne,vdash:ere,vDash:tre,Vdash:nre,VDash:rre,Vdashl:ire,veebar:ore,vee:sre,Vee:lre,veeeq:are,vellip:cre,verbar:ure,Verbar:fre,vert:dre,Vert:hre,VerticalBar:pre,VerticalLine:gre,VerticalSeparator:vre,VerticalTilde:mre,VeryThinSpace:yre,Vfr:bre,vfr:wre,vltri:xre,vnsub:_re,vnsup:Sre,Vopf:kre,vopf:Tre,vprop:Cre,vrtri:Ere,Vscr:Lre,vscr:Are,vsubnE:Mre,vsubne:Nre,vsupnE:$re,vsupne:Ore,Vvdash:Pre,vzigzag:Rre,Wcirc:Dre,wcirc:zre,wedbar:Ire,wedge:Fre,Wedge:Hre,wedgeq:qre,weierp:Bre,Wfr:Wre,wfr:Ure,Wopf:Vre,wopf:jre,wp:Gre,wr:Kre,wreath:Xre,Wscr:Yre,wscr:Zre,xcap:Jre,xcirc:Qre,xcup:eie,xdtri:tie,Xfr:nie,xfr:rie,xharr:iie,xhArr:oie,Xi:sie,xi:lie,xlarr:aie,xlArr:cie,xmap:uie,xnis:fie,xodot:die,Xopf:hie,xopf:pie,xoplus:gie,xotime:vie,xrarr:mie,xrArr:yie,Xscr:bie,xscr:wie,xsqcup:xie,xuplus:_ie,xutri:Sie,xvee:kie,xwedge:Tie,Yacute:Cie,yacute:Eie,YAcy:Lie,yacy:Aie,Ycirc:Mie,ycirc:Nie,Ycy:$ie,ycy:Oie,yen:Pie,Yfr:Rie,yfr:Die,YIcy:zie,yicy:Iie,Yopf:Fie,yopf:Hie,Yscr:qie,yscr:Bie,YUcy:Wie,yucy:Uie,yuml:Vie,Yuml:jie,Zacute:Gie,zacute:Kie,Zcaron:Xie,zcaron:Yie,Zcy:Zie,zcy:Jie,Zdot:Qie,zdot:eoe,zeetrf:toe,ZeroWidthSpace:noe,Zeta:roe,zeta:ioe,zfr:ooe,Zfr:soe,ZHcy:loe,zhcy:aoe,zigrarr:coe,zopf:uoe,Zopf:foe,Zscr:doe,zscr:hoe,zwj:poe,zwnj:goe},voe="Á",moe="á",yoe="Â",boe="â",woe="´",xoe="Æ",_oe="æ",Soe="À",koe="à",Toe="&",Coe="&",Eoe="Å",Loe="å",Aoe="Ã",Moe="ã",Noe="Ä",$oe="ä",Ooe="¦",Poe="Ç",Roe="ç",Doe="¸",zoe="¢",Ioe="©",Foe="©",Hoe="¤",qoe="°",Boe="÷",Woe="É",Uoe="é",Voe="Ê",joe="ê",Goe="È",Koe="è",Xoe="Ð",Yoe="ð",Zoe="Ë",Joe="ë",Qoe="½",ese="¼",tse="¾",nse=">",rse=">",ise="Í",ose="í",sse="Î",lse="î",ase="¡",cse="Ì",use="ì",fse="¿",dse="Ï",hse="ï",pse="«",gse="<",vse="<",mse="¯",yse="µ",bse="·",wse=" ",xse="¬",_se="Ñ",Sse="ñ",kse="Ó",Tse="ó",Cse="Ô",Ese="ô",Lse="Ò",Ase="ò",Mse="ª",Nse="º",$se="Ø",Ose="ø",Pse="Õ",Rse="õ",Dse="Ö",zse="ö",Ise="¶",Fse="±",Hse="£",qse='"',Bse='"',Wse="»",Use="®",Vse="®",jse="§",Gse="­",Kse="¹",Xse="²",Yse="³",Zse="ß",Jse="Þ",Qse="þ",ele="×",tle="Ú",nle="ú",rle="Û",ile="û",ole="Ù",sle="ù",lle="¨",ale="Ü",cle="ü",ule="Ý",fle="ý",dle="¥",hle="ÿ",ple={Aacute:voe,aacute:moe,Acirc:yoe,acirc:boe,acute:woe,AElig:xoe,aelig:_oe,Agrave:Soe,agrave:koe,amp:Toe,AMP:Coe,Aring:Eoe,aring:Loe,Atilde:Aoe,atilde:Moe,Auml:Noe,auml:$oe,brvbar:Ooe,Ccedil:Poe,ccedil:Roe,cedil:Doe,cent:zoe,copy:Ioe,COPY:Foe,curren:Hoe,deg:qoe,divide:Boe,Eacute:Woe,eacute:Uoe,Ecirc:Voe,ecirc:joe,Egrave:Goe,egrave:Koe,ETH:Xoe,eth:Yoe,Euml:Zoe,euml:Joe,frac12:Qoe,frac14:ese,frac34:tse,gt:nse,GT:rse,Iacute:ise,iacute:ose,Icirc:sse,icirc:lse,iexcl:ase,Igrave:cse,igrave:use,iquest:fse,Iuml:dse,iuml:hse,laquo:pse,lt:gse,LT:vse,macr:mse,micro:yse,middot:bse,nbsp:wse,not:xse,Ntilde:_se,ntilde:Sse,Oacute:kse,oacute:Tse,Ocirc:Cse,ocirc:Ese,Ograve:Lse,ograve:Ase,ordf:Mse,ordm:Nse,Oslash:$se,oslash:Ose,Otilde:Pse,otilde:Rse,Ouml:Dse,ouml:zse,para:Ise,plusmn:Fse,pound:Hse,quot:qse,QUOT:Bse,raquo:Wse,reg:Use,REG:Vse,sect:jse,shy:Gse,sup1:Kse,sup2:Xse,sup3:Yse,szlig:Zse,THORN:Jse,thorn:Qse,times:ele,Uacute:tle,uacute:nle,Ucirc:rle,ucirc:ile,Ugrave:ole,ugrave:sle,uml:lle,Uuml:ale,uuml:cle,Yacute:ule,yacute:fle,yen:dle,yuml:hle},gle="&",vle="'",mle=">",yle="<",ble='"',Vb={amp:gle,apos:vle,gt:mle,lt:yle,quot:ble};var qh={};const wle={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 xle=Ao&&Ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qh,"__esModule",{value:!0});var Fm=xle(wle),_le=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Sle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Fm.default&&(e=Fm.default[e]),_le(e))}qh.default=Sle;var Nu=Ao&&Ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oi,"__esModule",{value:!0});oi.decodeHTML=oi.decodeHTMLStrict=oi.decodeXML=void 0;var Rd=Nu(Ub),kle=Nu(ple),Tle=Nu(Vb),Hm=Nu(qh),Cle=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;oi.decodeXML=jb(Tle.default);oi.decodeHTMLStrict=jb(Rd.default);function jb(e){var t=Gb(e);return function(r){return String(r).replace(Cle,t)}}var qm=function(e,t){return e<t?1:-1};oi.decodeHTML=function(){for(var e=Object.keys(kle.default).sort(qm),t=Object.keys(Rd.default).sort(qm),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=Gb(Rd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Gb(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Hm.default(parseInt(r.substr(3),16)):Hm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Un={},Kb=Ao&&Ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Un,"__esModule",{value:!0});Un.escapeUTF8=Un.escape=Un.encodeNonAsciiHTML=Un.encodeHTML=Un.encodeXML=void 0;var Ele=Kb(Vb),Xb=Zb(Ele.default),Yb=Jb(Xb);Un.encodeXML=tw(Xb);var Lle=Kb(Ub),Bh=Zb(Lle.default),Ale=Jb(Bh);Un.encodeHTML=Nle(Bh,Ale);Un.encodeNonAsciiHTML=tw(Bh);function Zb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Jb(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var Qb=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Mle=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function $u(e){return"&#x"+(e.length>1?Mle(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Nle(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(Qb,$u)}}var ew=new RegExp(Yb.source+"|"+Qb.source,"g");function $le(e){return e.replace(ew,$u)}Un.escape=$le;function Ole(e){return e.replace(Yb,$u)}Un.escapeUTF8=Ole;function tw(e){return function(t){return t.replace(ew,function(r){return e[r]||$u(r)})}}(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=oi,r=Un;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Un;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=oi;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Wb);function Ple(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rle(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Dle(e,t,r){return t&&Rle(e.prototype,t),e}function nw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=zle(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function zle(e,t){if(e){if(typeof e=="string")return Bm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bm(e,t)}}function Bm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Ile=Wb,Wm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Fle()};function Fle(){var e={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 rc(0,5).forEach(function(t){rc(0,5).forEach(function(r){rc(0,5).forEach(function(o){return Hle(t,r,o,e)})})}),rc(0,23).forEach(function(t){var r=t+232,o=rw(t*10+8);e[r]="#"+o+o+o}),e}function Hle(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=qle([c,f,d])}function rw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function qle(e){var t=[],r=nw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(rw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Um(e,t,r,o){var s;return t==="text"?s=Vle(r,o):t==="display"?s=Wle(e,r,o):t==="xterm256Foreground"?s=_c(e,o.colors[r]):t==="xterm256Background"?s=Sc(e,o.colors[r]):t==="rgb"&&(s=Ble(e,r)),s}function Ble(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return xc(e,(r===38?"color:#":"background-color:#")+s)}function Wle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&iw(e)},1:function(){return Fi(e,"b")},3:function(){return Fi(e,"i")},4:function(){return Fi(e,"u")},8:function(){return xc(e,"display:none")},9:function(){return Fi(e,"strike")},22:function(){return xc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return jm(e,"i")},24:function(){return jm(e,"u")},39:function(){return _c(e,r.fg)},49:function(){return Sc(e,r.bg)},53:function(){return xc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=Fi(e,"blink"):29<t&&t<38?s=_c(e,r.colors[t-30]):39<t&&t<48?s=Sc(e,r.colors[t-40]):89<t&&t<98?s=_c(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Sc(e,r.colors[8+(t-100)])),s}function iw(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function rc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function Ule(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Vm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Vle(e,t){return t.escapeXML?Ile.encodeXML(e):e}function Fi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function xc(e,t){return Fi(e,"span",t)}function _c(e,t){return Fi(e,"span","color:"+t)}function Sc(e,t){return Fi(e,"span","background-color:"+t)}function jm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function jle(e,t,r){var o=!1,s=3;function c(){return""}function f(H,z){return r("xterm256Foreground",z),""}function d(H,z){return r("xterm256Background",z),""}function h(H){return t.newline?r("display",-1):r("text",H),""}function p(H,z){o=!0,z.trim().length===0&&(z="0"),z=z.trimRight(";").split(";");var J=nw(z),ie;try{for(J.s();!(ie=J.n()).done;){var ne=ie.value;r("display",ne)}}catch(j){J.e(j)}finally{J.f()}return""}function v(H){return r("text",H),""}function y(H){return r("rgb",H),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function x(H,z){z>s&&o||(o=!1,e=e.replace(H.pattern,H.sub))}var E=[],C=e,M=C.length;e:for(;M>0;){for(var N=0,L=0,D=b.length;L<D;N=++L){var A=b[N];if(x(A,N),e.length!==M){M=e.length;continue e}}if(e.length===M)break;E.push(0),M=e.length}return E}function Gle(e,t,r){return t!=="text"&&(e=e.filter(Ule(Vm(r))),e.push({token:t,data:r,category:Vm(r)})),e}var Kle=function(){function e(t){Ple(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Wm.colors,t.colors)),this.options=Object.assign({},Wm,t),this.stack=[],this.stickyStack=[]}return Dle(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=Um(s,d.token,d.data,c);h&&f.push(h)}),jle(r.join(""),c,function(d,h){var p=Um(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Gle(o.stickyStack,d,h))}),s.length&&f.push(iw(s)),f.join("")}}]),e}(),Xle=Kle;const Yle=Bb(Xle),Zle=/^[A-Za-z]:\//;function Jle(e=""){return e&&e.replace(/\\/g,"/").replace(Zle,t=>t.toUpperCase())}const Qle=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function eae(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const tae=function(...e){e=e.map(o=>Jle(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:eae();!s||s.length===0||(t=`${s}/${t}`,r=Gm(s))}return t=nae(t,!r),r&&!Gm(t)?`/${t}`:t.length>0?t:"."};function nae(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Gm=function(e){return Qle.test(e)},rae=44,Km="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iae=new Uint8Array(64),ow=new Uint8Array(128);for(let e=0;e<Km.length;e++){const t=Km.charCodeAt(e);iae[e]=t,ow[t]=e}function oae(e){const t=new Int32Array(5),r=[];let o=0;do{const s=sae(e,o),c=[];let f=!0,d=0;t[0]=0;for(let h=o;h<s;h++){let p;h=dl(e,h,t,0);const v=t[0];v<d&&(f=!1),d=v,Xm(e,h,s)?(h=dl(e,h,t,1),h=dl(e,h,t,2),h=dl(e,h,t,3),Xm(e,h,s)?(h=dl(e,h,t,4),p=[v,t[1],t[2],t[3],t[4]]):p=[v,t[1],t[2],t[3]]):p=[v],c.push(p)}f||lae(c),r.push(c),o=s+1}while(o<=e.length);return r}function sae(e,t){const r=e.indexOf(";",t);return r===-1?e.length:r}function dl(e,t,r,o){let s=0,c=0,f=0;do{const h=e.charCodeAt(t++);f=ow[h],s|=(f&31)<<c,c+=5}while(f&32);const d=s&1;return s>>>=1,d&&(s=-2147483648|-s),r[o]+=s,t}function Xm(e,t,r){return t>=r?!1:e.charCodeAt(t)!==rae}function lae(e){e.sort(aae)}function aae(e,t){return e[0]-t[0]}const cae=/^[\w+.-]+:\/\//,uae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fae=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Dt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Dt||(Dt={}));function dae(e){return cae.test(e)}function hae(e){return e.startsWith("//")}function sw(e){return e.startsWith("/")}function pae(e){return e.startsWith("file:")}function Ym(e){return/^[.?#]/.test(e)}function ic(e){const t=uae.exec(e);return lw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function gae(e){const t=fae.exec(e),r=t[2];return lw("file:","",t[1]||"","",sw(r)?r:"/"+r,t[3]||"",t[4]||"")}function lw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Dt.Absolute}}function Zm(e){if(hae(e)){const r=ic("http:"+e);return r.scheme="",r.type=Dt.SchemeRelative,r}if(sw(e)){const r=ic("http://foo.com"+e);return r.scheme="",r.host="",r.type=Dt.AbsolutePath,r}if(pae(e))return gae(e);if(dae(e))return ic(e);const t=ic("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Dt.Query:e.startsWith("#")?Dt.Hash:Dt.RelativePath:Dt.Empty,t}function vae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mae(e,t){aw(t,t.type),e.path==="/"?e.path=t.path:e.path=vae(t.path)+e.path}function aw(e,t){const r=t<=Dt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function yae(e,t){if(!e&&!t)return"";const r=Zm(e);let o=r.type;if(t&&o!==Dt.Absolute){const c=Zm(t),f=c.type;switch(o){case Dt.Empty:r.hash=c.hash;case Dt.Hash:r.query=c.query;case Dt.Query:case Dt.RelativePath:mae(r,c);case Dt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Dt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}aw(r,o);const s=r.query+r.hash;switch(o){case Dt.Hash:case Dt.Query:return s;case Dt.RelativePath:{const c=r.path.slice(1);return c?Ym(t||e)&&!Ym(c)?"./"+c+s:c+s:s||"."}case Dt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Jm(e,t){return t&&!t.endsWith("/")&&(t+="/"),yae(e,t)}function bae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Ki=0,wae=1,xae=2,_ae=3,Sae=4;function kae(e,t){const r=Qm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Qm(e,o+1))e[o]=Cae(e[o],t);return e}function Qm(e,t){for(let r=t;r<e.length;r++)if(!Tae(e[r]))return r;return e.length}function Tae(e){for(let t=1;t<e.length;t++)if(e[t][Ki]<e[t-1][Ki])return!1;return!0}function Cae(e,t){return t||(e=e.slice()),e.sort(Eae)}function Eae(e,t){return e[Ki]-t[Ki]}let Kc=!1;function Lae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Ki]-t;if(c===0)return Kc=!0,s;c<0?r=s+1:o=s-1}return Kc=!1,r-1}function Aae(e,t,r){for(let o=r+1;o<e.length&&e[o][Ki]===t;r=o++);return r}function Mae(e,t,r){for(let o=r-1;o>=0&&e[o][Ki]===t;r=o--);return r}function Nae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function $ae(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Kc=f!==-1&&e[f][Ki]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=Lae(e,t,d,h)}const Oae="`line` must be greater than 0 (lines start at line 1)",Pae="`column` must be greater than or equal to 0 (columns start at column 0)",e0=-1,Rae=1;class Dae{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=Jm(h||"",bae(r));this.resolvedSources=p.map(x=>Jm(x||"",y));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=kae(b,o)),this._decodedMemo=Nae(),this._bySources=void 0,this._bySourceMemos=void 0}}function zae(e){var t;return(t=e)._decoded||(t._decoded=oae(e._encoded))}function Iae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Oae);if(o<0)throw new Error(Pae);const c=zae(e);if(r>=c.length)return oc(null,null,null,null);const f=c[r],d=Fae(f,e._decodedMemo,r,o,s||Rae);if(d===-1)return oc(null,null,null,null);const h=f[d];if(h.length===1)return oc(null,null,null,null);const{names:p,resolvedSources:v}=e;return oc(v[h[wae]],h[xae]+1,h[_ae],h.length===5?p[h[Sae]]:null)}function oc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function Fae(e,t,r,o,s){let c=$ae(e,o,t,r);return Kc?c=(s===e0?Aae:Mae)(e,o,c):s===e0&&c++,c===-1||c===e.length?-1:c}const cw=/^\s*at .*(?:\S:\d+|\(native\))/m,Hae=/^(?:eval@)?(?:\[native code\])?$/,qae=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function uw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Bae(e){let t=e.trim();if(Hae.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=uw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function Wae(e){let t=e.trim();if(!cw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=uw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=tae(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function Uae(e,t={}){const{ignoreStackEntries:r=qae}=t;let o=cw.test(e)?jae(e):Vae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new Dae(f),{line:h,column:p}=Iae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Vae(e){return e.split(`
24
- `).map(t=>Bae(t)).filter(Fb)}function jae(e){return e.split(`
25
- `).map(t=>Wae(t)).filter(Fb)}function Gae(e,t){return t&&e.endsWith(t)}async function fw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Yle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Kae(e){return e===null||typeof e!="function"&&typeof e!="object"}function dw(e){let t=e;if(Kae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=Uae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Ou(e){return V0()?(J_(e),!0):!1}function li(e){return typeof e=="function"?e():B(e)}const Xae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yae=Object.prototype.toString,Zae=e=>Yae.call(e)==="[object Object]",Xl=()=>{};function hw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const pw=e=>e();function gw(e,t={}){let r,o,s=Xl;const c=d=>{clearTimeout(d),s(),s=Xl};return d=>{const h=li(e),p=li(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function Jae(e=pw){const t=je(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ia(t),pause:r,resume:o,eventFilter:s}}function Qae(e){return sa()}function ece(...e){if(e.length!==1)return hu(...e);const t=e[0];return typeof t=="function"?ia(ly(()=>({get:t,set:Xl}))):je(t)}function t0(e,t=200,r={}){return hw(gw(t,r),e)}function vw(e,t,r={}){const{eventFilter:o=pw,...s}=r;return qt(e,hw(o,t),s)}function mw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=Jae(o);return{stop:vw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){Qae()?Ms(e,r):t?e():ln(e)}function tce(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=It(e),c=je(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=li(r);return c.value=c.value===h?li(o):h,c.value}}return s?f:[c,f]}function yw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return vw(e,t,{...c,eventFilter:gw(o,{maxWait:s})})}function nce(e,t,r){const o=qt(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function rce(e,t,r){let o;It(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Xl}=o,h=je(!s),p=f?Fr(t):je(t);let v=0;return Eh(async y=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(C=>{y(()=>{c&&(c.value=!1),x||C()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?$e(()=>(h.value=!0,p.value)):p}function Xc(e){var t;const r=li(e);return(t=r==null?void 0:r.$el)!=null?t:r}const nr=Xae?window:void 0;function Ts(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=nr):[t,r,o,s]=e,!t)return Xl;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,x)=>(v.addEventListener(y,b,x),()=>v.removeEventListener(y,b,x)),h=qt(()=>[Xc(t),li(s)],([v,y])=>{if(f(),!v)return;const b=Zae(y)?{...y}:y;c.push(...r.flatMap(x=>o.map(E=>d(v,x,E,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Ou(p),p}function ice(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function oce(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=nr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=ice(t);return Ts(s,c,v=>{v.repeat&&li(d)||h(v)&&r(v)},f)}function sce(){const e=je(!1),t=sa();return t&&Ms(()=>{e.value=!0},t),e}function bw(e){const t=sce();return $e(()=>(t.value,!!e()))}function lce(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=nr}=t,c=je(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function y(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Ou(y),{isActive:ia(c),pause:y,resume:v}}function ww(e,t={}){const{window:r=nr}=t,o=bw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=je(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Eh(()=>{o.value&&(d(),s=r.matchMedia(li(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Ou(()=>{h(),d(),s=void 0}),c}const sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lc="__vueuse_ssr_handlers__",ace=cce();function cce(){return lc in sc||(sc[lc]=sc[lc]||{}),sc[lc]}function xw(e,t){return ace[e]||t}function uce(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 fce={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 _w(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=nr,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:E}=o,C=(v?Fr:je)(typeof t=="function"?t():t);if(!r)try{r=xw("getDefaultStorage",()=>{var j;return(j=nr)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return C;const M=li(t),N=uce(M),L=(s=o.serializer)!=null?s:fce[N],{pause:D,resume:A}=mw(C,()=>z(C.value),{flush:c,deep:f,eventFilter:b});y&&d&&Uh(()=>{Ts(y,"storage",ie),Ts(y,n0,ne),E&&ie()}),E||ie();function H(j,te){y&&y.dispatchEvent(new CustomEvent(n0,{detail:{key:e,oldValue:j,newValue:te,storageArea:r}}))}function z(j){try{const te=r.getItem(e);if(j==null)H(te,null),r.removeItem(e);else{const K=L.write(j);te!==K&&(r.setItem(e,K),H(te,K))}}catch(te){x(te)}}function J(j){const te=j?j.newValue:r.getItem(e);if(te==null)return h&&M!=null&&r.setItem(e,L.write(M)),M;if(!j&&p){const K=L.read(te);return typeof p=="function"?p(K,M):N==="object"&&!Array.isArray(K)?{...M,...K}:K}else return typeof te!="string"?te:L.read(te)}function ie(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){C.value=M;return}if(!(j&&j.key!==e)){D();try{(j==null?void 0:j.newValue)!==L.write(C.value)&&(C.value=J(j))}catch(te){x(te)}finally{j?ln(A):A()}}}}function ne(j){ie(j.detail)}return C}function Sw(e){return ww("(prefers-color-scheme: dark)",e)}function dce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=nr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,y={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Sw({window:s}),x=$e(()=>b.value?"dark":"light"),E=h||(f==null?ece(o):_w(f,o,c,{window:s,listenToStorageChanges:d})),C=$e(()=>E.value==="auto"?x.value:E.value),M=xw("updateHTMLAttrs",(A,H,z)=>{const J=typeof A=="string"?s==null?void 0:s.document.querySelector(A):Xc(A);if(!J)return;let ie;if(v&&(ie=s.document.createElement("style"),ie.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(ie)),H==="class"){const ne=z.split(/\s/g);Object.values(y).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{ne.includes(j)?J.classList.add(j):J.classList.remove(j)})}else J.setAttribute(H,z);v&&(s.getComputedStyle(ie).opacity,document.head.removeChild(ie))});function N(A){var H;M(t,r,(H=y[A])!=null?H:A)}function L(A){e.onChanged?e.onChanged(A,N):N(A)}qt(C,L,{flush:"post",immediate:!0}),Uh(()=>L(C.value));const D=$e({get(){return p?E.value:C.value},set(A){E.value=A}});try{return Object.assign(D,{store:E,system:x,state:C})}catch{return D}}function hce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=nr}=e,s=dce({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=$e(()=>s.system?s.system.value:Sw({window:o}).value?"dark":"light");return $e({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function kw(e,t,r={}){const{window:o=nr,...s}=r;let c;const f=bw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=$e(()=>Array.isArray(e)?e.map(y=>Xc(y)):[Xc(e)]),p=qt(h,y=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of y)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Ou(v),{isSupported:f,stop:v}}function Pu(e,t,r={}){const{window:o=nr}=r;return _w(e,t,o==null?void 0:o.localStorage,r)}function pce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=nr}=t;if(!f)return er(r);const d=er({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",L=N.indexOf("?");return L>0?N.slice(L):""}else return(f.location.hash||"").replace(/^#/,"")}function p(N){const L=N.toString();if(e==="history")return`${L?`?${L}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${L?`#${L}`:""}`;const D=f.location.hash||"#",A=D.indexOf("?");return A>0?`${D.slice(0,A)}${L?`?${L}`:""}`:`${D}${L?`?${L}`:""}`}function v(){return new URLSearchParams(h())}function y(N){const L=new Set(Object.keys(d));for(const D of N.keys()){const A=N.getAll(D);d[D]=A.length>1?A:N.get(D)||"",L.delete(D)}Array.from(L).forEach(D=>delete d[D])}const{pause:b,resume:x}=mw(d,()=>{const N=new URLSearchParams("");Object.keys(d).forEach(L=>{const D=d[L];Array.isArray(D)?D.forEach(A=>N.append(L,A)):o&&D==null||s&&!D?N.delete(L):N.set(L,D)}),E(N)},{deep:!0});function E(N,L){b(),L&&y(N),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(N)),x()}function C(){c&&E(v(),!0)}Ts(f,"popstate",C,!1),e!=="history"&&Ts(f,"hashchange",C,!1);const M=v();return M.keys().next().value?y(M):Object.assign(d,r),d}function gce(e={}){const{window:t=nr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0}=e,f=je(r),d=je(o),h=()=>{t&&(c?(f.value=t.innerWidth,d.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight))};if(h(),Uh(h),Ts("resize",h,{passive:!0}),s){const p=ww("(orientation: portrait)");qt(p,()=>h())}return{width:f,height:d}}const Vh=pce("hash",{initialValue:{file:"",view:null,line:null}}),Xi=hu(Vh,"file"),qn=hu(Vh,"view"),Dd=hu(Vh,"line");var Vn=Uint8Array,ls=Uint16Array,vce=Int32Array,Tw=new Vn([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]),Cw=new Vn([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]),mce=new Vn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ew=function(e,t){for(var r=new ls(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new vce(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Lw=Ew(Tw,2),Aw=Lw.b,yce=Lw.r;Aw[28]=258,yce[258]=28;var bce=Ew(Cw,0),wce=bce.b,zd=new ls(32768);for(var Tt=0;Tt<32768;++Tt){var Ai=(Tt&43690)>>1|(Tt&21845)<<1;Ai=(Ai&52428)>>2|(Ai&13107)<<2,Ai=(Ai&61680)>>4|(Ai&3855)<<4,zd[Tt]=((Ai&65280)>>8|(Ai&255)<<8)>>1}var $l=function(e,t,r){for(var o=e.length,s=0,c=new ls(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ls(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ls(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],y=f[e[s]-1]++<<v,b=y|(1<<v)-1;y<=b;++y)d[zd[y]>>h]=p}else for(d=new ls(o),s=0;s<o;++s)e[s]&&(d[s]=zd[f[e[s]-1]++]>>15-e[s]);return d},ua=new Vn(288);for(var Tt=0;Tt<144;++Tt)ua[Tt]=8;for(var Tt=144;Tt<256;++Tt)ua[Tt]=9;for(var Tt=256;Tt<280;++Tt)ua[Tt]=7;for(var Tt=280;Tt<288;++Tt)ua[Tt]=8;var Mw=new Vn(32);for(var Tt=0;Tt<32;++Tt)Mw[Tt]=5;var xce=$l(ua,9,1),_ce=$l(Mw,5,1),Qf=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},gr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},ed=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Sce=function(e){return(e+7)/8|0},Nw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Vn(e.subarray(t,r))},kce=["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"],$n=function(e,t,r){var o=new Error(t||kce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,$n),!r)throw o;return o},jh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Vn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Vn(s*3));var p=function(Ee){var Ye=r.length;if(Ee>Ye){var O=new Vn(Math.max(Ye*2,Ee));O.set(r),r=O}},v=t.f||0,y=t.p||0,b=t.b||0,x=t.l,E=t.d,C=t.m,M=t.n,N=s*8;do{if(!x){v=gr(e,y,1);var L=gr(e,y+1,3);if(y+=3,L)if(L==1)x=xce,E=_ce,C=9,M=5;else if(L==2){var z=gr(e,y,31)+257,J=gr(e,y+10,15)+4,ie=z+gr(e,y+5,31)+1;y+=14;for(var ne=new Vn(ie),j=new Vn(19),te=0;te<J;++te)j[mce[te]]=gr(e,y+te*3,7);y+=J*3;for(var K=Qf(j),V=(1<<K)-1,I=$l(j,K,1),te=0;te<ie;){var k=I[gr(e,y,V)];y+=k&15;var D=k>>4;if(D<16)ne[te++]=D;else{var q=0,W=0;for(D==16?(W=3+gr(e,y,3),y+=2,q=ne[te-1]):D==17?(W=3+gr(e,y,7),y+=3):D==18&&(W=11+gr(e,y,127),y+=7);W--;)ne[te++]=q}}var re=ne.subarray(0,z),me=ne.subarray(z);C=Qf(re),M=Qf(me),x=$l(re,C,1),E=$l(me,M,1)}else $n(1);else{var D=Sce(y)+4,A=e[D-4]|e[D-3]<<8,H=D+A;if(H>s){h&&$n(0);break}d&&p(b+A),r.set(e.subarray(D,H),b),t.b=b+=A,t.p=y=H*8,t.f=v;continue}if(y>N){h&&$n(0);break}}d&&p(b+131072);for(var Me=(1<<C)-1,Be=(1<<M)-1,Ve=y;;Ve=y){var q=x[ed(e,y)&Me],it=q>>4;if(y+=q&15,y>N){h&&$n(0);break}if(q||$n(2),it<256)r[b++]=it;else if(it==256){Ve=y,x=null;break}else{var nt=it-254;if(it>264){var te=it-257,Ze=Tw[te];nt=gr(e,y,(1<<Ze)-1)+Aw[te],y+=Ze}var Te=E[ed(e,y)&Be],X=Te>>4;Te||$n(3),y+=Te&15;var me=wce[X];if(X>3){var Ze=Cw[X];me+=ed(e,y)&(1<<Ze)-1,y+=Ze}if(y>N){h&&$n(0);break}d&&p(b+131072);var ae=b+nt;if(b<me){var de=c-me,Ne=Math.min(me,ae);for(de+b<0&&$n(3);b<Ne;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-me]}}t.l=x,t.p=Ve,t.b=b,t.f=v,x&&(v=1,t.m=C,t.d=E,t.n=M)}while(!v);return b!=r.length&&f?Nw(r,0,b):r.subarray(0,b)},Tce=new Vn(0),Cce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&$n(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Ece=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Lce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&$n(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&$n(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Ace(e,t){return jh(e,{i:2},t,t)}function Mce(e,t){var r=Cce(e);return r+8>e.length&&$n(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Vn(Ece(e)),t)}function Nce(e,t){return jh(e.subarray(Lce(e,t),-4),{i:2},t,t)}function $ce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Mce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ace(e,t):Nce(e,t)}var Id=typeof TextDecoder<"u"&&new TextDecoder,Oce=0;try{Id.decode(Tce,{stream:!0}),Oce=1}catch{}var Pce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Nw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Rce(e,t){var r;if(Id)return Id.decode(e);var o=Pce(e),s=o.s,r=o.r;return r.length&&$n(8),s}const td=()=>{},un=()=>Promise.resolve();function Dce(){const e=er({state:new qb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=er(e.state.filesMap),e.state.idMap=er(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:un,onDone:td,onCollected:un,onTaskUpdate:td,writeFile:un,rerun:un,updateSnapshot:un,resolveSnapshotPath:un,snapshotSaved:un,onAfterSuiteRun:un,onCancel:un,getCountOfFailedTests:()=>0,sendLog:un,resolveSnapshotRawPath:un,readSnapshotFile:un,saveSnapshotFile:un,readTestFile:async d=>t.sources[d],removeSnapshotFile:un,onUnhandledError:td,saveTestFile:un,getProvidedContext:()=>({}),getTestFiles:un};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const y=new Uint8Array(await d.arrayBuffer()),b=Rce($ce(y));t=Od(b)}else t=Od(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const Yc=je("idle"),zce=$e(()=>Yc.value==="idle"),Di=je([]),Fd=Fr([]),zn=Fr([]),_r=Pu("vitest-ui_task-tree-opened",[],{shallow:!0}),Zc=$e(()=>new Set(_r.value)),on=Pu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=je(on.value.search),Ice={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function $w(e){return e.replace(/[&<>"']/g,t=>Ice[t])}const Fce=$e(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${$w(e)})`,"gi"):null}),Ow=$e(()=>On.value.trim()!==""),Qe=er({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Hd=$e(()=>!!(Qe.failed||Qe.success||Qe.skipped)),Ru=Fr([]),Cs=je(!1),r0=$e(()=>{const e=on.value.expandAll;return _r.value.length>0?e!==!0:e!==!1}),Hce=$e(()=>{const e=Ow.value,t=Hd.value,r=Qe.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Ru.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Du(e){return Object.hasOwnProperty.call(e,"tasks")}function qce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Pw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function Bce(e){return e.type==="test"||e.type==="custom"}function Wce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function kn(e){return e.type==="file"}function Uce(e){return e.type==="suite"}function ai(e){return e.type==="file"||e.type==="suite"}function Vce(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Yl(e,t=!1){var o,s,c,f;let r=Ce.nodes.get(e.id);if(r?(r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Zc.value.size>0&&Zc.value.has(e.id),type:"file",children:new Set,tasks:[],indent:0,duration:(c=e.result)==null?void 0:c.duration,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Pw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(f=e.result)==null?void 0:f.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let d=0;d<e.tasks.length;d++)fa(e.id,e.tasks[d],!0)}function Rw(e,t){const r=Ce.nodes.get(e);if(!r||!ai(r))return;const o=yt.state.idMap.get(e);if(!(!o||!Du(o)))return fa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function jce(e){const t=Ce.nodes.get(e);if(!t)return;const r=yt.state.idMap.get(e);!r||!ks(r)||fa(t.parentId,r,!1)}function fa(e,t,r){var c,f,d,h,p,v;const o=Ce.nodes.get(e);let s;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=(c=t.result)==null?void 0:c.duration,s.state=(f=t.result)==null?void 0:f.state,Uce(s)&&(s.typecheck=!!t.meta&&"typecheck"in t.meta)):(ks(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:(d=t.result)==null?void 0:d.duration,state:(h=t.result)==null?void 0:h.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,typecheck:!!t.meta&&"typecheck"in t.meta,type:"suite",expandable:!0,expanded:Zc.value.size>0&&Zc.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:(p=t.result)==null?void 0:p.duration,state:(v=t.result)==null?void 0:v.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Du(t)))for(let y=0;y<t.tasks.length;y++)fa(s.id,t.tasks[y],r)}function Gce(e,t,r){return e?Iw(e,t,r):!1}function Gh(e,t){const r=[...Dw(e,t)];zn.value=r,Ru.value=r.filter(kn).map(o=>rr(o.id))}function*Dw(e,t){for(const r of Vce())yield*zw(r,e,t)}function*zw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[y,b]of qd(e,o,x=>i0(x,t,r)))c.push([y,b]);else{for(const[y,b]of qd(e,o,x=>i0(x,t,r)))ai(b)?(s.set(b.id,y),kn(b)?(y&&(f=b.id),c.push([y,b])):c.push([y||s.get(b.parentId)===!0,b])):c.push([y||s.get(b.parentId)===!0,b]);!f&&!kn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...Xce(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(y=>{var b;return kn(y)||ai(y)&&((b=p.get(y.parentId))==null?void 0:b.expanded)}).map(y=>y.id));yield*h.filter(y=>{var b;return kn(y)||v.has(y.parentId)&&((b=p.get(y.parentId))==null?void 0:b.expanded)})}function Kce(e,t,r,o,s){if(o){if(kn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&kn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&kn(c)&&s.add(c.id),t}}function*Xce(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=ai(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),kn(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=Kce(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&kn(p)&&o.add(p.id),yield d}}}function Yce(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Iw(e,t,r){if(t.length===0||qce(e.name,t))if(r.success||r.failed||r.skipped){if(Yce(e,r))return!0}else return!0;return!1}function*qd(e,t,r){const o=r(e);if(o)if(Bce(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(kn(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],ai(e))for(let s=0;s<e.tasks.length;s++)yield*qd(e.tasks[s],t,r)}function i0(e,t,r){const o=yt.state.idMap.get(e.id);return o?Iw(o,t,r):!1}function Zce(e,t,r){const o=Rw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)fa(s.id,p,!1);s.expanded=!0;const f=new Set(_r.value);f.add(s.id);const d=new Set(zw(s,t,r)),h=[...eue(s,d)];_r.value=Array.from(f),zn.value=h}function Jce(e,t){Kh(Ce.root.tasks,!1);const r=[...Dw(e,t)];on.value.expandAll=!1,_r.value=[],zn.value=r,Ru.value=r.filter(kn).map(o=>rr(o.id))}function Qce(e,t){if(e.size)for(const r of zn.value)e.has(r.id)&&(r.expanded=!0);else t&&Kh(zn.value.filter(kn),!0)}function Kh(e,t){for(const r of e)ai(r)&&(r.expanded=!0,Kh(r.tasks,!1));t&&(on.value.expandAll=!1,_r.value=[])}function*eue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of zn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function tue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Yl(s,t)),Fd.value=[...Ce.root.tasks],Gh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function nue(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=yt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function o0(e,t,r,o,s){e&&aue(r);const c=!e;queueMicrotask(()=>{t?oue(c):sue(c)}),queueMicrotask(()=>{cue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Fd.value&&Hh(Fd.value.map(f=>rr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{lue(o,s,t)})}function*rue(){yield*zn.value.filter(Wce)}function iue(){const e=yt.state.idMap;let t;for(const r of rue())t=e.get(r.parentId),t&&Du(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function oue(e){const t=yt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Yl(o[c],e),Jc(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=rr(f.id);if(!d)continue;Yl(d,e);const h=d.tasks;h!=null&&h.length&&Jc(d.tasks)}}function sue(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>rr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Yl(s,!1),Jc(s.tasks),t.delete(s.id);const c=yt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=rr(h.id);if(!p)continue;const v=t.get(p.id);v&&(Yl(p,e),Jc(Array.from(v).map(y=>c.get(y)).filter(Boolean)))}}function lue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(_r.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{s0(e,t,r)}),Cs.value||queueMicrotask(()=>{(zn.value.length||r)&&(Cs.value=!0)}),f&&(queueMicrotask(()=>{Qce(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{s0(e,t,r)}))}function s0(e,t,r){Gh(e,t),r&&iue()}function Jc(e){let t;for(let r=0;r<e.length;r++)t=e[r],Du(t)?Rw(t.id,!0):jce(t.id)}function aue(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function cue(e){var f,d,h,p,v;const t=yt.state.idMap,r=new Map(Ce.root.tasks.filter(y=>t.has(y.id)).map(y=>[y.id,y])),o=Array.from(r.values()).map(y=>[y.id,rr(y.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[y,b]of o){if(!b)continue;const x=r.get(y);x&&(x.mode=b.mode,x.setupDuration=b.setupDuration,x.prepareDuration=b.prepareDuration,x.environmentLoad=b.environmentLoad,x.collectDuration=b.collectDuration,x.duration=(f=b.result)==null?void 0:f.duration,x.state=(d=b.result)==null?void 0:d.state),c+=Math.max(0,b.collectDuration||0),c+=Math.max(0,b.setupDuration||0),c+=Math.max(0,((h=b.result)==null?void 0:h.duration)||0),c+=Math.max(0,b.environmentLoad||0),c+=Math.max(0,b.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((p=b.result)==null?void 0:p.state)==="fail"?s.filesFailed++:((v=b.result)==null?void 0:v.state)==="pass"?s.filesSuccess++:b.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):b.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:E,success:C,skipped:M,total:N,ignored:L,todo:D}=Fw(b);s.totalTests+=N,s.testsFailed+=E,s.testsSuccess+=C,s.testsSkipped+=M,s.testsTodo+=D,s.testsIgnore+=L}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Fw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Hw(e))(!r||Gce(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function uue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>Fw(h,s,c)).reduce((h,{failed:p,success:v,ignored:y,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=y,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,y=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=y?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Hw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],ks(r)?yield r:yield*Hw(r.tasks)}function fue(e){const t=Ce.nodes.get(e);if(!t||!ai(t))return;const r=new Set(_r.value);r.delete(t.id);const o=[...hue(t)];_r.value=Array.from(r),zn.value=o}function due(){Bd(Ce.root.tasks);const e=[...zn.value.filter(kn)];Bd(e),_r.value=[],on.value.expandAll=!0,zn.value=e}function Bd(e){for(const t of e)ai(t)&&(t.expanded=!1,Bd(t.tasks))}function*qw(e,t){if(t&&(yield e.id),ai(e))for(let r=0;r<e.tasks.length;r++)yield*qw(e.tasks[r],!0)}function*hue(e){const t=e.id,r=new Set(qw(e,!1));for(let o=0;o<zn.value.length;o++){const s=zn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}class pue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=er({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){Xr(this,"rafCollector");Xr(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=lce(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){tue(t,!0,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){nue(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{o0(t,r,this.summary,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):o0(t,r,this.summary,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return uue(t,r,o,s,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{fue(t)})}expandNode(t){queueMicrotask(()=>{Zce(t,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{due()})}expandAllNodes(){queueMicrotask(()=>{Jce(On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{Gh(On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Ce=new pue,yt=function(){return Pr?Dce():XE(JE,{reactive:(t,r)=>r==="state"?er(t):Fr(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),Yc.value="running"},onFinished(t,r){Ce.endRun(),Yc.value="idle",Di.value=(r||[]).map(dw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),zu=Fr({}),So=je("CONNECTING"),Xt=$e(()=>{const e=Xi.value;return e?rr(e):void 0}),Bw=$e(()=>Fh(Xt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function rr(e){const t=yt.state.idMap.get(e);return t||void 0}const gue=$e(()=>So.value==="OPEN"),nd=$e(()=>So.value==="CONNECTING");$e(()=>So.value==="CLOSED");function vue(){return Xh(yt.state.getFiles())}function mue(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,kn(o)&&(o.collectDuration=void 0))})}function Xh(e){return mue(e),Ce.startRun(),yt.rpc.rerun(e.map(t=>t.filepath))}const Zl=window.__vitest_browser_runner__;qt(()=>yt.ws,e=>{So.value=Pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{So.value="OPEN",yt.state.filesMap.clear();const[t,r,o]=await Promise.all([yt.rpc.getFiles(),yt.rpc.getConfig(),yt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await yt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Pd(h,d,f));yt.state.collectFiles(c)}else Ce.loadFiles(t),yt.state.collectFiles(t),Ce.startRun();Di.value=(o||[]).map(dw),zu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{So.value==="CONNECTING"&&(So.value="CLOSED")},1e3)})},{immediate:!0});const yue={"text-2xl":""},bue={"text-lg":"",op50:""},wue=gt({__name:"ConnectionOverlay",setup(e){return(t,r)=>B(gue)?rt("",!0):(le(),be("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>B(yt).reconnect&&B(yt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(B(nd)?"animate-pulse":"")},[Y("div",{text:"5xl",class:st(B(nd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",yue,qe(B(nd)?"Connecting...":"Disconnected"),1),Y("div",bue," Check your terminal or start a new server with `"+qe(B(Zl)?`vitest --browser=${B(Zl).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),xue=["aria-label","opacity","disabled","hover"],$o=gt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(le(),be("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[hn(t.$slots,"default",{},()=>[Y("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,xue))}}),Jr=je("full"),Wd=je();function rd(e){const t=document.querySelector("#tester-ui");t&&(t.style.pointerEvents=e?"none":"")}const Es=je(),vs=je(!0),Yi=je(!1),Qc=je(!0),as=$e(()=>{var e;return(e=zu.value)==null?void 0:e.coverage}),Ud=$e(()=>{var e;return(e=as.value)==null?void 0:e.enabled}),cs=$e(()=>Ud.value&&as.value.reporter.map(([e])=>e).includes("html")),kc=Pu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),l0=$e(()=>{if(cs.value){const e=as.value.reportsDirectory.lastIndexOf("/"),t=as.value.reporter.find(r=>{if(r[0]==="html")return r});return t&&"subdir"in t[1]?`/${as.value.reportsDirectory.slice(e+1)}/${t[1].subdir}/index.html`:`/${as.value.reportsDirectory.slice(e+1)}/index.html`}});qt(Yc,e=>{Qc.value=e==="running"},{immediate:!0});function _ue(){const e=Xi.value;if(e&&e.length>0){const t=rr(e);t?(Es.value=t,vs.value=!1,Yi.value=!1):nce(()=>yt.state.getFiles(),()=>{Es.value=rr(e),vs.value=!1,Yi.value=!1})}return vs}function eu(e){vs.value=e,Yi.value=!1,e&&(Es.value=void 0,Xi.value="")}function Ww(e,t=null){Xi.value=e.file.id,Dd.value=null,t!=null&&(ln(()=>{Dd.value=t}),qn.value="editor"),Es.value=rr(e.file.id),eu(!1)}function Sue(){Yi.value=!0,vs.value=!1,Es.value=void 0,Xi.value=""}const kue={setCurrentFileId(e){Xi.value=e,Es.value=rr(e),eu(!1)},async setIframeViewport(e,t){Jr.value="custom",Wd.value=[e,t],await Uw(e,t)}};window.__vitest_ui_api__=kue;function Tue(){const e=Yh(),r=document.querySelector("#details-splitpanes").clientWidth,o=e.clientWidth,s=Math.min(o/r*100,95),c=100-s;kc.value=[s,c]}function Yh(){return document.querySelector("#tester-ui iframe[data-vitest]")}async function Uw(e,t){const r=Yh();r.style.width=typeof e=="string"?e:`${e}px`,r.style.height=typeof t=="string"?t:`${t}px`,await new Promise(o=>requestAnimationFrame(o)),Tue()}const Cue={h:"full",flex:"~ col"},Eue=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-content-delivery-network"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI")],-1),Lue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Aue=Y("div",{"flex-auto":"",class:"scrolls"},[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70",style:{overflow:"auto",width:"100%",height:"100%"}}," Select a test to run ")],-1),Mue=gt({__name:"BrowserIframe",setup(e){const t={"small-mobile":["320px","568px"],"large-mobile":["414px","896px"],tablet:["834px","1112px"],full:["100%","100%"],custom:null};async function r(o){if(Jr.value===o?Jr.value=Wd.value?"custom":"full":Jr.value=o,!Yh()){console.warn("Iframe not found");return}const[c,f]=t[Jr.value]||Wd.value||t.full;await Uw(c,f)}return(o,s)=>{const c=$o,f=ui("tooltip");return le(),be("div",Cue,[Eue,Y("div",Lue,[kt(Pe(c,{title:"Flexible",icon:"i-carbon:fit-to-screen",active:B(Jr)==="full",onClick:s[0]||(s[0]=d=>r("full"))},null,8,["active"]),[[f,"Flexible",void 0,{bottom:!0}]]),kt(Pe(c,{title:"Small mobile",icon:"i-carbon:mobile",active:B(Jr)==="small-mobile",onClick:s[1]||(s[1]=d=>r("small-mobile"))},null,8,["active"]),[[f,"Small mobile",void 0,{bottom:!0}]]),kt(Pe(c,{title:"Large mobile",icon:"i-carbon:mobile-add",active:B(Jr)==="large-mobile",onClick:s[2]||(s[2]=d=>r("large-mobile"))},null,8,["active"]),[[f,"Large mobile",void 0,{bottom:!0}]]),kt(Pe(c,{title:"Tablet",icon:"i-carbon:tablet",active:B(Jr)==="tablet",onClick:s[3]||(s[3]=d=>r("tablet"))},null,8,["active"]),[[f,"Tablet",void 0,{bottom:!0}]])]),Aue])}}});function Ol(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const da=hce(),Nue=tce(da),$ue={class:"scrolls scrolls-rounded task-error"},Oue=["onClickPassive"],Pue=["innerHTML"],Rue=gt({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=$e(()=>Wh(da.value)),s=$e(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=$e(()=>t.error.diff?o.value.toHtml(Ol(t.error.diff)):void 0);return(f,d)=>{const h=ui("tooltip");return le(),be("div",$ue,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),dt(": "+qe(f.error.message),1)]),(le(!0),be(ht,null,si(f.error.stacks,(p,v)=>(le(),be("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),B(Gae)(p.file,f.filename)?kt((le(),be("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>B(fw)(p.file,p.line,p.column)},null,40,Oue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):rt("",!0)]))),128)),B(s)?(le(),be("pre",{key:0,"data-testid":"diff",innerHTML:B(c)},null,8,Pue)):rt("",!0)])}}}),Due=to(Rue,[["__scopeId","data-v-9dd6eaea"]]),zue={"h-full":"",class:"scrolls"},Iue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Fue=["innerHTML"],Hue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},que=gt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(f,d){var h;return((h=f.result)==null?void 0:h.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:d}]:[{...f,level:d},...f.tasks.flatMap(p=>r(p,d+1))]}function o(f,d){var v,y,b;let h="";(v=d.message)!=null&&v.includes("\x1B")&&(h=`<b>${d.nameStr||d.name}</b>: ${f.toHtml(Ol(d.message))}`);const p=(y=d.stackStr)==null?void 0:y.includes("\x1B");return(p||(b=d.stack)!=null&&b.includes("\x1B"))&&(h.length>0?h+=f.toHtml(Ol(p?d.stackStr:d.stack)):h=`<b>${d.nameStr||d.name}</b>: ${d.message}${f.toHtml(Ol(p?d.stackStr:d.stack))}`),h.length>0?h:null}function s(f,d){const h=Wh(f);return d.map(p=>{var b;const v=p.result;if(!v)return p;const y=(b=v.errors)==null?void 0:b.map(x=>o(h,x)).filter(x=>x!=null).join("<br><br>");return y!=null&&y.length&&(v.htmlError=y),p})}const c=$e(()=>{var v,y;const f=t.file,d=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(b=>r(b,0)))??[],h=f==null?void 0:f.result;if((y=h==null?void 0:h.errors)==null?void 0:y[0]){const b={id:f.id,file:f,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:h};d.unshift(b)}return d.length>0?s(da.value,d):d});return(f,d)=>{const h=Due;return le(),be("div",zue,[B(c).length?(le(!0),be(ht,{key:0},si(B(c),p=>{var v,y,b;return le(),be("div",{key:p.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Zt({"margin-left":`${(v=p.result)!=null&&v.htmlError?.5:2*p.level+.5}rem`})},[dt(qe(p.name)+" ",1),(y=p.result)!=null&&y.htmlError?(le(),be("div",Iue,[Y("pre",{innerHTML:p.result.htmlError},null,8,Fue)])):(b=p.result)!=null&&b.errors?(le(!0),be(ht,{key:1},si(p.result.errors,(x,E)=>{var C;return le(),ot(h,{key:E,error:x,filename:(C=f.file)==null?void 0:C.name,root:B(zu).root},null,8,["error","filename","root"])}),128)):rt("",!0)],4)])}),128)):(le(),be("div",Hue," All tests passed in this file "))])}}}),Bue=to(que,[["__scopeId","data-v-5503cb37"]]),Wue={border:"b base","p-4":""},Uue=["innerHTML"],Vue=gt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(le(),be("div",Wue,[Y("div",{"text-xs":"","mb-1":"",class:st(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,Uue)]))}}),jue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Gue={key:1,p6:""},Kue=Y("pre",{inline:""},"console.log(foo)",-1),Xue=gt({__name:"ViewConsoleOutput",setup(e){const t=$e(()=>{const o=Bw.value;if(o){const s=Wh(da.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Ol(h))}))}});function r(o){const s=o&&yt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?GE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Vue;return(f=B(t))!=null&&f.length?(le(),be("div",jue,[(le(!0),be(ht,null,si(B(t),({taskId:d,type:h,time:p,content:v})=>(le(),be("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(le(),be("p",Gue,[dt(" Log something in your test and it would print here. (e.g. "),Kue,dt(") ")]))}}});var Vw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Ao,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],E=/Opera\//.test(r),C=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),N=/PhantomJS/.test(r),L=C&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),D=/Android/.test(r),A=L||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),H=L||/Mac/.test(o),z=/\bCrOS\b/.test(r),J=/win/i.test(o),ie=E&&r.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(E=!1,v=!0);var ne=H&&(y||E&&(ie==null||ie<12.11)),j=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var K=function(n,i){var a=n.className,l=te(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function V(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return V(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function q(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var W;document.createRange?W=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:W=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function me(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Me(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function Be(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ve=function(n){n.select()};L?Ve=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ve=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function nt(n){return Ze(n.display.wrapper)}function Ze(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Te(n){return it(n).defaultView}function X(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,m=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return m+(i-g);m+=w-g,m+=a-m%a,g=w+1}}var Ne=function(){this.id=null,this.f=null,this.time=0,this.handler=X(this.onTimeout,this)};Ne.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Ne.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ye=50,O={toString:function(){return"CodeMirror.Pass"}},F={scroll:!1},Z={origin:"*mouse"},ce={origin:"+move"};function se(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var m=g-l;if(g==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var ve=[""];function Se(n){for(;ve.length<=n;)ve.push(ue(ve)+" ");return ve[n]}function ue(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function he(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ae(){}function Ie(n,i){var a;return Object.create?a=Object.create(n):(Ae.prototype=n,a=new Ae),i&&ae(i,a),a}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function We(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||De.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&We(n)?!0:i.test(n):We(n)}function vt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var et=/[\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 tt(n){return n.charCodeAt(0)>=768&&et.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&tt(n.charAt(i));)i+=a;return i}function Jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function ir(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var m=n[g];(m.from<a&&m.to>i||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var In=null;function or(n,i,a){var l;In=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:In=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:In=u)}return l??In}var Qt=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,m=/[Lb1n]/,w=/[1n]/;function _(S,$,R){this.level=S,this.from=$,this.to=R}return function(S,$){var R=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var G=S.length,U=[],ee=0;ee<G;++ee)U.push(a(S.charCodeAt(ee)));for(var fe=0,ge=R;fe<G;++fe){var we=U[fe];we=="m"?U[fe]=ge:ge=we}for(var ke=0,xe=R;ke<G;++ke){var Le=U[ke];Le=="1"&&xe=="r"?U[ke]="n":g.test(Le)&&(xe=Le,Le=="r"&&(U[ke]="R"))}for(var He=1,Re=U[0];He<G-1;++He){var Je=U[He];Je=="+"&&Re=="1"&&U[He+1]=="1"?U[He]="1":Je==","&&Re==U[He+1]&&(Re=="1"||Re=="n")&&(U[He]=Re),Re=Je}for(var wt=0;wt<G;++wt){var jt=U[wt];if(jt==",")U[wt]="N";else if(jt=="%"){var Ct=void 0;for(Ct=wt+1;Ct<G&&U[Ct]=="%";++Ct);for(var Mn=wt&&U[wt-1]=="!"||Ct<G&&U[Ct]=="1"?"1":"N",yn=wt;yn<Ct;++yn)U[yn]=Mn;wt=Ct-1}}for(var Ot=0,bn=R;Ot<G;++Ot){var Kt=U[Ot];bn=="L"&&Kt=="1"?U[Ot]="L":g.test(Kt)&&(bn=Kt)}for(var Ht=0;Ht<G;++Ht)if(u.test(U[Ht])){var Pt=void 0;for(Pt=Ht+1;Pt<G&&u.test(U[Pt]);++Pt);for(var Mt=(Ht?U[Ht-1]:R)=="L",wn=(Pt<G?U[Pt]:R)=="L",is=Mt==wn?Mt?"L":"R":R,ki=Ht;ki<Pt;++ki)U[ki]=is;Ht=Pt-1}for(var rn=[],Lr,Gt=0;Gt<G;)if(m.test(U[Gt])){var Df=Gt;for(++Gt;Gt<G&&m.test(U[Gt]);++Gt);rn.push(new _(0,Df,Gt))}else{var Kr=Gt,ho=rn.length,po=$=="rtl"?1:0;for(++Gt;Gt<G&&U[Gt]!="L";++Gt);for(var cn=Kr;cn<Gt;)if(w.test(U[cn])){Kr<cn&&(rn.splice(ho,0,new _(1,Kr,cn)),ho+=po);var os=cn;for(++cn;cn<Gt&&w.test(U[cn]);++cn);rn.splice(ho,0,new _(2,os,cn)),ho+=po,Kr=cn}else++cn;Kr<Gt&&rn.splice(ho,0,new _(1,Kr,Gt))}return $=="ltr"&&(rn[0].level==1&&(Lr=S.match(/^\s+/))&&(rn[0].from=Lr[0].length,rn.unshift(new _(0,0,Lr[0].length))),ue(rn).level==1&&(Lr=S.match(/\s+$/))&&(ue(rn).to-=Lr[0].length,rn.push(new _(0,G-Lr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ue(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var no=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||no).concat(a)}};function qr(n,i){return n._handlers&&n._handlers[i]||no}function en(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=qr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Lt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Et(n,a||i.type,n,i),pn(i)||i.codemirrorIgnore}function Gn(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ee(a,i[l])==-1&&a.push(i[l])}function Ln(n,i){return qr(n,i).length>0}function sr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Oo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function pn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function di(n){tn(n),Oo(n)}function $s(n){return n.target||n.srcElement}function lr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),H&&n.ctrlKey&&i==1&&(i=3),i}var Bu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Po;function va(n){if(Po==null){var i=k("span","​");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Po=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Po?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Os;function hi(n){if(Os!=null)return Os;var i=I(n,document.createTextNode("AخA")),a=W(i,0,1).getBoundingClientRect(),l=W(i,1,2).getBoundingClientRect();return V(n),!a||a.left==a.right?!1:Os=l.right-a.right<3}var Kn=`
26
-
27
- b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
28
- `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=g.indexOf("\r");m!=-1?(a.push(g.slice(0,m)),i+=m+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},pi=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},ma=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),ar=null;function Wu(n){if(ar!=null)return ar;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=W(i,0,1).getBoundingClientRect();return ar=Math.abs(a.left-l.left)>1}var Ro={},cr={};function ur(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ro[n]=i}function ro(n,i){cr[n]=i}function Do(n){if(typeof n=="string"&&cr.hasOwnProperty(n))n=cr[n];else if(n&&typeof n.name=="string"&&cr.hasOwnProperty(n.name)){var i=cr[n.name];typeof i=="string"&&(i={name:i}),n=Ie(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Do("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Do("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function zo(n,i){i=Do(i);var a=Ro[i.name];if(!a)return zo(n,"text/plain");var l=a(n,i);if(gi.hasOwnProperty(i.name)){var u=gi[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var gi={};function Io(n,i){var a=gi.hasOwnProperty(n)?gi[n]:gi[n]={};ae(i,a)}function kr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Ps(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Fo(n,i,a){return n.startState?n.startState(i,a):!0}var At=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},At.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},At.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},At.prototype.backUp=function(n){this.pos-=n},At.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},At.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},At.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Br(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var m=g.text;u==a.line&&(m=m.slice(0,a.ch)),u==i.line&&(m=m.slice(i.ch)),l.push(m),++u}),l}function Rs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Fn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=Ee(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function P(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var w=n.lines[m],_=w.height;if(i<_)break;i-=_}return a+m}function oe(n,i){return i>=n.first&&i<n.first+n.size}function pe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Q(n,i,a){if(a===void 0&&(a=null),!(this instanceof Q))return new Q(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function ut(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function Bt(n){return Q(n.line,n.ch)}function gn(n,i){return _e(n,i)<0?i:n}function Ho(n,i){return _e(n,i)<0?n:i}function fp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return Q(n.first,0);var a=n.first+n.size-1;return i.line>a?Q(a,Oe(n,a).text.length):D1(i,Oe(n,i.line).text.length)}function D1(n,i){var a=n.ch;return a==null||a>i?Q(n.line,i):a<0?Q(n.line,0):n}function dp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var ya=function(n,i){this.state=n,this.lookAhead=i},Tr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Tr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(n,i,a){return i instanceof ya?new Tr(n,kr(n.mode,i.state),a,i.lookAhead):new Tr(n,kr(n.mode,i),a)},Tr.prototype.save=function(n){var i=n!==!1?kr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ya(i,this.maxLookAhead):i};function hp(n,i,a,l){var u=[n.state.modeGen],g={};bp(n,i.text,n.doc.mode,a,function(S,$){return u.push(S,$)},g,l);for(var m=a.state,w=function(S){a.baseTokens=u;var $=n.state.overlays[S],R=1,G=0;a.state=!0,bp(n,i.text,$.mode,a,function(U,ee){for(var fe=R;G<U;){var ge=u[R];ge>U&&u.splice(R,1,U,u[R+1],ge),R+=2,G=Math.min(U,ge)}if(ee)if($.opaque)u.splice(fe,R-fe,U,"overlay "+ee),R=fe+2;else for(;fe<R;fe+=2){var we=u[fe+1];u[fe+1]=(we?we+" ":"")+"overlay "+ee}},g),a.state=m,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function pp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Ds(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&kr(n.doc.mode,l.state),g=hp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Ds(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Tr(l,!0,i);var g=z1(n,i,a),m=g>l.first&&Oe(l,g-1).stateAfter,w=m?Tr.fromSaved(l,m,g):new Tr(l,Fo(l.mode),g);return l.iter(g,i,function(_){Uu(n,_.text,w);var S=w.line;_.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Uu(n,i,a,l){var u=n.doc.mode,g=new At(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&gp(u,a.state);!g.eol();)Vu(u,g,a.state),g.start=g.pos}function gp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Ps(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Vu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Ps(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var vp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function mp(n,i,a,l){var u=n.doc,g=u.mode,m;i=Ke(u,i);var w=Oe(u,i.line),_=Ds(n,i.line,a),S=new At(w.text,n.options.tabSize,_),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=Vu(g,S,_.state),l&&$.push(new vp(S,m,kr(u.mode,_.state)));return l?$:new vp(S,m,_.state)}function yp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function bp(n,i,a,l,u,g,m){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,S=null,$=new At(i,n.options.tabSize,l),R,G=n.options.addModeClass&&[null];for(i==""&&yp(gp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,m&&Uu(n,i,l,$.pos),$.pos=i.length,R=null):R=yp(Vu(a,$,l.state,G),g),G){var U=G[0].name;U&&(R="m-"+(R?U+" "+R:U))}if(!w||S!=R){for(;_<$.start;)_=Math.min($.start,_+5e3),u(_,S);S=R}$.start=$.pos}for(;_<$.pos;){var ee=Math.min($.pos,_+5e3);u(ee,S),_=ee}}function z1(n,i,a){for(var l,u,g=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>m;--w){if(w<=g.first)return g.first;var _=Oe(g,w-1),S=_.stateAfter;if(S&&(!a||w+(S instanceof ya?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(_.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function I1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Oe(n,l).stateAfter;if(u&&(!(u instanceof ya)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var wp=!1,Wr=!1;function F1(){wp=!0}function H1(){Wr=!0}function ba(n,i,a){this.marker=n,this.from=i,this.to=a}function zs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function q1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function B1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function W1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&m.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new ba(m,g.from,_?null:g.to))}}return l}function U1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&m.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new ba(m,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function ju(n,i){if(i.full)return null;var a=oe(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=oe(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,m=_e(i.from,i.to)==0,w=W1(a,u,m),_=U1(l,g,m),S=i.text.length==1,$=ue(i.text).length+(S?u:0);if(w)for(var R=0;R<w.length;++R){var G=w[R];if(G.to==null){var U=zs(_,G.marker);U?S&&(G.to=U.to==null?null:U.to+$):G.to=u}}if(_)for(var ee=0;ee<_.length;++ee){var fe=_[ee];if(fe.to!=null&&(fe.to+=$),fe.from==null){var ge=zs(w,fe.marker);ge||(fe.from=$,S&&(w||(w=[])).push(fe))}else fe.from+=$,S&&(w||(w=[])).push(fe)}w&&(w=xp(w)),_&&_!=w&&(_=xp(_));var we=[w];if(!S){var ke=i.text.length-2,xe;if(ke>0&&w)for(var Le=0;Le<w.length;++Le)w[Le].to==null&&(xe||(xe=[])).push(new ba(w[Le].marker,null,null));for(var He=0;He<ke;++He)we.push(xe);we.push(_)}return we}function xp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function V1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(U){if(U.markedSpans)for(var ee=0;ee<U.markedSpans.length;++ee){var fe=U.markedSpans[ee].marker;fe.readOnly&&(!l||Ee(l,fe)==-1)&&(l||(l=[])).push(fe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var m=l[g],w=m.find(0),_=0;_<u.length;++_){var S=u[_];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[_,1],R=_e(S.from,w.from),G=_e(S.to,w.to);(R<0||!m.inclusiveLeft&&!R)&&$.push({from:S.from,to:w.from}),(G>0||!m.inclusiveRight&&!G)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),_+=$.length-3}}return u}function _p(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Sp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function wa(n){return n.inclusiveLeft?-1:0}function xa(n){return n.inclusiveRight?1:0}function Gu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||wa(n)-wa(i);if(g)return-g;var m=_e(l.to,u.to)||xa(n)-xa(i);return m||i.id-n.id}function kp(n,i){var a=Wr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Gu(l,u.marker)<0)&&(l=u.marker);return l}function Tp(n){return kp(n,!0)}function _a(n){return kp(n,!1)}function j1(n,i){var a=Wr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Gu(l,g.marker)<0)&&(l=g.marker)}return l}function Cp(n,i,a,l,u){var g=Oe(n,i),m=Wr&&g.markedSpans;if(m)for(var w=0;w<m.length;++w){var _=m[w];if(_.marker.collapsed){var S=_.marker.find(0),$=_e(S.from,a)||wa(_.marker)-wa(u),R=_e(S.to,l)||xa(_.marker)-xa(u);if(!($>=0&&R<=0||$<=0&&R>=0)&&($<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function fr(n){for(var i;i=Tp(n);)n=i.find(-1,!0).line;return n}function G1(n){for(var i;i=_a(n);)n=i.find(1,!0).line;return n}function K1(n){for(var i,a;i=_a(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Ku(n,i){var a=Oe(n,i),l=fr(a);return a==l?i:T(l)}function Ep(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!vi(n,a))return i;for(;l=_a(a);)a=l.find(1,!0).line;return T(a)+1}function vi(n,i){var a=Wr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Xu(n,i,l))return!0}}}function Xu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Xu(n,l.line,zs(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Xu(n,i,u))return!0}function Ur(n){n=fr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var m=0;m<g.children.length;++m){var w=g.children[m];if(w==a)break;i+=w.height}return i}function Sa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Tp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=_a(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Yu(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Sa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Sa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var qo=function(n,i,a){this.text=n,Sp(this,i),this.height=a?a(this):1};qo.prototype.lineNo=function(){return T(this)},sr(qo);function X1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),_p(n),Sp(n,a);var u=l?l(n):1;u!=n.height&&Fn(n,u)}function Y1(n){n.parent=null,_p(n)}var Z1={},J1={};function Lp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?J1:Z1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ap(n,i){var a=q("span",null,null,v?"padding-right: .1px":null),l={pre:q("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=ex,hi(n.display.measure)&&(m=Ue(g,n.doc.direction))&&(l.addToken=nx(l.addToken,m)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);rx(g,l,pp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Be(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Be(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(va(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Be(l.pre.className,l.textClass||"")),l}function Q1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ex(n,i,a,l,u,g,m){if(i){var w=n.splitSpaces?tx(i,n.trailingSpace):i,_=n.cm.state.specialChars,S=!1,$;if(!_.test(i))n.col+=i.length,$=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(S=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var R=0;;){_.lastIndex=R;var G=_.exec(i),U=G?G.index-R:i.length-R;if(U){var ee=document.createTextNode(w.slice(R,R+U));h&&p<9?$.appendChild(k("span",[ee])):$.appendChild(ee),n.map.push(n.pos,n.pos+U,ee),n.col+=U,n.pos+=U}if(!G)break;R+=U+1;var fe=void 0;if(G[0]==" "){var ge=n.cm.options.tabSize,we=ge-n.col%ge;fe=$.appendChild(k("span",Se(we),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),n.col+=we}else G[0]=="\r"||G[0]==`
29
- `?(fe=$.appendChild(k("span",G[0]=="\r"?"␍":"␤","cm-invalidchar")),fe.setAttribute("cm-text",G[0]),n.col+=1):(fe=n.cm.options.specialCharPlaceholder(G[0]),fe.setAttribute("cm-text",G[0]),h&&p<9?$.appendChild(k("span",[fe])):$.appendChild(fe),n.col+=1);n.map.push(n.pos,n.pos+1,fe),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||S||g||m){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var xe=k("span",[$],ke,g);if(m)for(var Le in m)m.hasOwnProperty(Le)&&Le!="style"&&Le!="class"&&xe.setAttribute(Le,m[Le]);return n.content.appendChild(xe)}n.content.appendChild($)}}function tx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function nx(n,i){return function(a,l,u,g,m,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,$=S+l.length;;){for(var R=void 0,G=0;G<i.length&&(R=i[G],!(R.to>S&&R.from<=S));G++);if(R.to>=$)return n(a,l,u,g,m,w,_);n(a,l.slice(0,R.to-S),u,g,null,w,_),g=null,l=l.slice(R.to-S),S=R.to}}}function Mp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function rx(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,u.slice(g,g=a[m]),Lp(a[m+1],i.cm.options));return}for(var w=u.length,_=0,S=1,$="",R,G,U=0,ee,fe,ge,we,ke;;){if(U==_){ee=fe=ge=G="",ke=null,we=null,U=1/0;for(var xe=[],Le=void 0,He=0;He<l.length;++He){var Re=l[He],Je=Re.marker;if(Je.type=="bookmark"&&Re.from==_&&Je.widgetNode)xe.push(Je);else if(Re.from<=_&&(Re.to==null||Re.to>_||Je.collapsed&&Re.to==_&&Re.from==_)){if(Re.to!=null&&Re.to!=_&&U>Re.to&&(U=Re.to,fe=""),Je.className&&(ee+=" "+Je.className),Je.css&&(G=(G?G+";":"")+Je.css),Je.startStyle&&Re.from==_&&(ge+=" "+Je.startStyle),Je.endStyle&&Re.to==U&&(Le||(Le=[])).push(Je.endStyle,Re.to),Je.title&&((ke||(ke={})).title=Je.title),Je.attributes)for(var wt in Je.attributes)(ke||(ke={}))[wt]=Je.attributes[wt];Je.collapsed&&(!we||Gu(we.marker,Je)<0)&&(we=Re)}else Re.from>_&&U>Re.from&&(U=Re.from)}if(Le)for(var jt=0;jt<Le.length;jt+=2)Le[jt+1]==U&&(fe+=" "+Le[jt]);if(!we||we.from==_)for(var Ct=0;Ct<xe.length;++Ct)Mp(i,0,xe[Ct]);if(we&&(we.from||0)==_){if(Mp(i,(we.to==null?w+1:we.to)-_,we.marker,we.from==null),we.to==null)return;we.to==_&&(we=!1)}}if(_>=w)break;for(var Mn=Math.min(w,U);;){if($){var yn=_+$.length;if(!we){var Ot=yn>Mn?$.slice(0,Mn-_):$;i.addToken(i,Ot,R?R+ee:ee,ge,_+Ot.length==U?fe:"",G,ke)}if(yn>=Mn){$=$.slice(Mn-_),_=Mn;break}_=yn,ge=""}$=u.slice(g,g=a[S++]),R=Lp(a[S++],i.cm.options)}}}function Np(n,i,a){this.line=i,this.rest=K1(i),this.size=this.rest?T(ue(this.rest))-a+1:1,this.node=this.text=null,this.hidden=vi(n,i)}function ka(n,i,a){for(var l=[],u,g=i;g<a;g=u){var m=new Np(n.doc,Oe(n.doc,g),g);u=g+m.size,l.push(m)}return l}var Bo=null;function ix(n){Bo?Bo.ops.push(n):n.ownsGroup=Bo={ops:[n],delayedCallbacks:[]}}function ox(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function sx(n,i){var a=n.ownsGroup;if(a)try{ox(a)}finally{Bo=null,i(a)}}var Is=null;function Wt(n,i){var a=qr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Bo?u=Bo.delayedCallbacks:Is?u=Is:(u=Is=[],setTimeout(lx,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},m=0;m<a.length;++m)g(m)}}function lx(){var n=Is;Is=null;for(var i=0;i<n.length;++i)n[i]()}function $p(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?cx(n,i):g=="gutter"?Pp(n,i,a,l):g=="class"?Zu(n,i):g=="widget"&&ux(n,i,l)}i.changes=null}function Fs(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function ax(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Fs(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Op(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ap(n,i)}function cx(n,i){var a=i.text.className,l=Op(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Zu(n,i)):a&&(i.text.className=a)}function Zu(n,i){ax(n,i),i.line.wrapClass?Fs(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Pp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Fs(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var m=Fs(i),w=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),m.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(k("div",pe(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var S=n.display.gutterSpecs[_].className,$=g.hasOwnProperty(S)&&g[S];$&&w.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function ux(n,i,a){i.alignable&&(i.alignable=null);for(var l=te("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Rp(n,i,a)}function fx(n,i,a,l){var u=Op(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Zu(n,i),Pp(n,i,a,l),Rp(n,i,l),i.node}function Rp(n,i,a){if(Dp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Dp(n,i.rest[l],i,a,!1)}function Dp(n,i,a,l,u){if(i.widgets)for(var g=Fs(a),m=0,w=i.widgets;m<w.length;++m){var _=w[m],S=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),dx(_,S,a,l),n.display.input.setUneditable(S),u&&_.above?g.insertBefore(S,a.gutter||a.text):g.appendChild(S),Wt(_,"redraw")}}function dx(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Hs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Vr(n,i){for(var a=$s(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Ta(n){return n.lineSpace.offsetTop}function Ju(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function zp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=I(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Cr(n){return Ye-n.display.nativeBarWidth}function io(n){return n.display.scroller.clientWidth-Cr(n)-n.display.barWidth}function Qu(n){return n.display.scroller.clientHeight-Cr(n)-n.display.barHeight}function hx(n,i,a){var l=n.options.lineWrapping,u=l&&io(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var m=i.text.firstChild.getClientRects(),w=0;w<m.length-1;w++){var _=m[w],S=m[w+1];Math.abs(_.bottom-S.bottom)>2&&g.push((_.bottom+S.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ip(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function px(n,i){i=fr(i);var a=T(i),l=n.display.externalMeasured=new Np(n.doc,i,a);l.lineN=a;var u=l.built=Ap(n,l);return l.text=u.pre,I(n.display.lineMeasure,u.pre),l}function Fp(n,i,a,l){return Er(n,Wo(n,i),a,l)}function ef(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[lo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Wo(n,i){var a=T(i),l=ef(n,a);l&&!l.text?l=null:l&&l.changes&&($p(n,l,a,sf(n)),n.curOp.forceUpdate=!0),l||(l=px(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Er(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),m;return i.cache.hasOwnProperty(g)?m=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(hx(n,i.view,i.rect),i.hasHeights=!0),m=vx(n,i,a,l),m.bogus||(i.cache[g]=m)),{left:m.left,right:m.right,top:u?m.rtop:m.top,bottom:u?m.rbottom:m.bottom}}var Hp={left:0,right:0,top:0,bottom:0};function qp(n,i,a){for(var l,u,g,m,w,_,S=0;S<n.length;S+=3)if(w=n[S],_=n[S+1],i<w?(u=0,g=1,m="left"):i<_?(u=i-w,g=u+1):(S==n.length-3||i==_&&n[S+3]>i)&&(g=_-w,u=g-1,i>=_&&(m="right")),u!=null){if(l=n[S+2],w==_&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&u==_-w)for(;S<n.length-3&&n[S+3]==n[S+4]&&!n[S+5].insertLeft;)l=n[(S+=3)+2],m="right";break}return{node:l,start:u,end:g,collapse:m,coverStart:w,coverEnd:_}}function gx(n,i){var a=Hp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function vx(n,i,a,l){var u=qp(i.map,a,l),g=u.node,m=u.start,w=u.end,_=u.collapse,S;if(g.nodeType==3){for(var $=0;$<4;$++){for(;m&&tt(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+w<u.coverEnd&&tt(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&m==0&&w==u.coverEnd-u.coverStart?S=g.parentNode.getBoundingClientRect():S=gx(W(g,m,w).getClientRects(),l),S.left||S.right||m==0)break;w=m,m=m-1,_="right"}h&&p<11&&(S=mx(n.display.measure,S))}else{m>0&&(_=l="right");var R;n.options.lineWrapping&&(R=g.getClientRects()).length>1?S=R[l=="right"?R.length-1:0]:S=g.getBoundingClientRect()}if(h&&p<9&&!m&&(!S||!S.left&&!S.right)){var G=g.parentNode.getClientRects()[0];G?S={left:G.left,right:G.left+Vo(n.display),top:G.top,bottom:G.bottom}:S=Hp}for(var U=S.top-i.rect.top,ee=S.bottom-i.rect.top,fe=(U+ee)/2,ge=i.view.measure.heights,we=0;we<ge.length-1&&!(fe<ge[we]);we++);var ke=we?ge[we-1]:0,xe=ge[we],Le={left:(_=="right"?S.right:S.left)-i.rect.left,right:(_=="left"?S.left:S.right)-i.rect.left,top:ke,bottom:xe};return!S.left&&!S.right&&(Le.bogus=!0),n.options.singleCursorHeightPerLine||(Le.rtop=U,Le.rbottom=ee),Le}function mx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wu(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Bp(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Wp(n){n.display.externalMeasure=null,V(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Bp(n.display.view[i])}function qs(n){Wp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Up(n){return b&&D?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Vp(n){return b&&D?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function tf(n){var i=fr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Hs(a[u]));return l}function Ca(n,i,a,l,u){if(!u){var g=tf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var m=Ur(i);if(l=="local"?m+=Ta(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();m+=w.top+(l=="window"?0:Vp(it(n)));var _=w.left+(l=="window"?0:Up(it(n)));a.left+=_,a.right+=_}return a.top+=m,a.bottom+=m,a}function jp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Up(it(n)),u-=Vp(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:u-m.top}}function Ea(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),Ca(n,l,Fp(n,l,i.ch,u),a)}function dr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Wo(n,l));function m(ee,fe){var ge=Er(n,u,ee,fe?"right":"left",g);return fe?ge.left=ge.right:ge.right=ge.left,Ca(n,l,ge,a)}var w=Ue(l,n.doc.direction),_=i.ch,S=i.sticky;if(_>=l.text.length?(_=l.text.length,S="before"):_<=0&&(_=0,S="after"),!w)return m(S=="before"?_-1:_,S=="before");function $(ee,fe,ge){var we=w[fe],ke=we.level==1;return m(ge?ee-1:ee,ke!=ge)}var R=or(w,_,S),G=In,U=$(_,R,S=="before");return G!=null&&(U.other=$(_,G,S!="before")),U}function Gp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Vo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=Ur(l)+Ta(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function nf(n,i,a,l,u){var g=Q(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function rf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return nf(l.first,0,null,-1,-1);var u=P(l,a),g=l.first+l.size-1;if(u>g)return nf(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var m=Oe(l,u);;){var w=yx(n,m,u,i,a),_=j1(m,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var S=_.find(1);if(S.line==u)return S;m=Oe(l,u=S.line)}}function Kp(n,i,a,l){l-=tf(i);var u=i.text.length,g=Jt(function(m){return Er(n,a,m-1).bottom<=l},u,0);return u=Jt(function(m){return Er(n,a,m).top>l},g,u),{begin:g,end:u}}function Xp(n,i,a,l){a||(a=Wo(n,i));var u=Ca(n,i,Er(n,a,l),"line").top;return Kp(n,i,a,u)}function of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function yx(n,i,a,l,u){u-=Ur(i);var g=Wo(n,i),m=tf(i),w=0,_=i.text.length,S=!0,$=Ue(i,n.doc.direction);if($){var R=(n.options.lineWrapping?wx:bx)(n,i,a,g,$,l,u);S=R.level!=1,w=S?R.from:R.to-1,_=S?R.to:R.from-1}var G=null,U=null,ee=Jt(function(He){var Re=Er(n,g,He);return Re.top+=m,Re.bottom+=m,of(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(G=He,U=Re),!0):!1},w,_),fe,ge,we=!1;if(U){var ke=l-U.left<U.right-l,xe=ke==S;ee=G+(xe?0:1),ge=xe?"after":"before",fe=ke?U.left:U.right}else{!S&&(ee==_||ee==w)&&ee++,ge=ee==0?"after":ee==i.text.length?"before":Er(n,g,ee-(S?1:0)).bottom+m<=u==S?"after":"before";var Le=dr(n,Q(a,ee,ge),"line",i,g);fe=Le.left,we=u<Le.top?-1:u>=Le.bottom?1:0}return ee=Ft(i.text,ee,1),nf(a,ee,ge,we,l-fe)}function bx(n,i,a,l,u,g,m){var w=Jt(function(R){var G=u[R],U=G.level!=1;return of(dr(n,Q(a,U?G.to:G.from,U?"before":"after"),"line",i,l),g,m,!0)},0,u.length-1),_=u[w];if(w>0){var S=_.level!=1,$=dr(n,Q(a,S?_.from:_.to,S?"after":"before"),"line",i,l);of($,g,m,!0)&&$.top>m&&(_=u[w-1])}return _}function wx(n,i,a,l,u,g,m){var w=Kp(n,i,l,m),_=w.begin,S=w.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var $=null,R=null,G=0;G<u.length;G++){var U=u[G];if(!(U.from>=S||U.to<=_)){var ee=U.level!=1,fe=Er(n,l,ee?Math.min(S,U.to)-1:Math.max(_,U.from)).right,ge=fe<g?g-fe+1e9:fe-g;(!$||R>ge)&&($=U,R=ge)}}return $||($=u[u.length-1]),$.from<_&&($={from:_,to:$.to,level:$.level}),$.to>S&&($={from:$.from,to:S,level:$.level}),$}var oo;function Uo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(oo==null){oo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)oo.appendChild(document.createTextNode("x")),oo.appendChild(k("br"));oo.appendChild(document.createTextNode("x"))}I(n.measure,oo);var a=oo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),V(n.measure),a||1}function Vo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");I(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function sf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,m=0;g;g=g.nextSibling,++m){var w=n.display.gutterSpecs[m].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:lf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function lf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Yp(n){var i=Uo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Vo(n.display)-3);return function(u){if(vi(n.doc,u))return 0;var g=0;if(u.widgets)for(var m=0;m<u.widgets.length;m++)u.widgets[m].height&&(g+=u.widgets[m].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function af(n){var i=n.doc,a=Yp(n);i.iter(function(l){var u=a(l);u!=l.height&&Fn(l,u)})}function so(n,i,a,l){var u=n.display;if(!a&&$s(i).getAttribute("cm-not-content")=="true")return null;var g,m,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,m=i.clientY-w.top}catch{return null}var _=rf(n,g,m),S;if(l&&_.xRel>0&&(S=Oe(n.doc,_.line).text).length==_.ch){var $=de(S,S.length,n.options.tabSize)-S.length;_=Q(_.line,Math.max(0,Math.round((g-zp(n.display).left)/Vo(n.display))-$))}return _}function lo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function vn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Wr&&Ku(n.doc,i)<u.viewTo&&yi(n);else if(a<=u.viewFrom)Wr&&Ep(n.doc,a+l)>u.viewFrom?yi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)yi(n);else if(i<=u.viewFrom){var g=La(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):yi(n)}else if(a>=u.viewTo){var m=La(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):yi(n)}else{var w=La(n,i,i,-1),_=La(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(ka(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):yi(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function mi(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[lo(n,i)];if(g.node!=null){var m=g.changes||(g.changes=[]);Ee(m,a)==-1&&m.push(a)}}}function yi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function La(n,i,a,l){var u=lo(n,i),g,m=n.display.view;if(!Wr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=m[_].size;if(w!=i){if(l>0){if(u==m.length-1)return null;g=w+m[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;Ku(n.doc,a)!=a;){if(u==(l<0?0:m.length-1))return null;a+=l*m[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function xx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=ka(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=ka(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(lo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(ka(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,lo(n,a)))),l.viewTo=a}function Zp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Bs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Jp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var S=_.empty();if(m){var $=m(n,_);$&&cf(n,$,u)}else(S||n.options.showCursorWhenSelecting)&&cf(n,_.head,u);S||_x(n,_,g)}}return l}function cf(n,i,a){var l=dr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ea(n,i,"div",null,null),m=g.right-g.left;u.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Aa(n,i){return n.top-i.top||n.left-i.left}function _x(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),m=zp(n.display),w=m.left,_=Math.max(l.sizerWidth,io(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function $(xe,Le,He,Re){Le<0&&(Le=0),Le=Math.round(Le),Re=Math.round(Re),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
30
- top: `+Le+"px; width: "+(He??_-xe)+`px;
31
- height: `+(Re-Le)+"px"))}function R(xe,Le,He){var Re=Oe(u,xe),Je=Re.text.length,wt,jt;function Ct(Ot,bn){return Ea(n,Q(xe,Ot),"div",Re,bn)}function Mn(Ot,bn,Kt){var Ht=Xp(n,Re,null,Ot),Pt=bn=="ltr"==(Kt=="after")?"left":"right",Mt=Kt=="after"?Ht.begin:Ht.end-(/\s/.test(Re.text.charAt(Ht.end-1))?2:1);return Ct(Mt,Pt)[Pt]}var yn=Ue(Re,u.direction);return ir(yn,Le||0,He??Je,function(Ot,bn,Kt,Ht){var Pt=Kt=="ltr",Mt=Ct(Ot,Pt?"left":"right"),wn=Ct(bn-1,Pt?"right":"left"),is=Le==null&&Ot==0,ki=He==null&&bn==Je,rn=Ht==0,Lr=!yn||Ht==yn.length-1;if(wn.top-Mt.top<=3){var Gt=(S?is:ki)&&rn,Df=(S?ki:is)&&Lr,Kr=Gt?w:(Pt?Mt:wn).left,ho=Df?_:(Pt?wn:Mt).right;$(Kr,Mt.top,ho-Kr,Mt.bottom)}else{var po,cn,os,zf;Pt?(po=S&&is&&rn?w:Mt.left,cn=S?_:Mn(Ot,Kt,"before"),os=S?w:Mn(bn,Kt,"after"),zf=S&&ki&&Lr?_:wn.right):(po=S?Mn(Ot,Kt,"before"):w,cn=!S&&is&&rn?_:Mt.right,os=!S&&ki&&Lr?w:wn.left,zf=S?Mn(bn,Kt,"after"):_),$(po,Mt.top,cn-po,Mt.bottom),Mt.bottom<wn.top&&$(w,Mt.bottom,null,wn.top),$(os,wn.top,zf-os,wn.bottom)}(!wt||Aa(Mt,wt)<0)&&(wt=Mt),Aa(wn,wt)<0&&(wt=wn),(!jt||Aa(Mt,jt)<0)&&(jt=Mt),Aa(wn,jt)<0&&(jt=wn)}),{start:wt,end:jt}}var G=i.from(),U=i.to();if(G.line==U.line)R(G.line,G.ch,U.ch);else{var ee=Oe(u,G.line),fe=Oe(u,U.line),ge=fr(ee)==fr(fe),we=R(G.line,G.ch,ge?ee.text.length+1:null).end,ke=R(U.line,ge?0:null,U.ch).start;ge&&(we.top<ke.top-2?($(we.right,we.top,null,we.bottom),$(w,ke.top,ke.left,ke.bottom)):$(we.right,we.top,ke.left-we.right,we.bottom)),we.bottom<ke.top&&$(w,we.bottom,null,ke.top)}a.appendChild(g)}function uf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||jo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||df(n))}function ff(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&jo(n))},100)}function df(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Et(n,"focus",n,i),n.state.focused=!0,Me(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),uf(n))}function jo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Et(n,"blur",n,i),n.state.focused=!1,K(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ma(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,m=0;m<i.view.length;m++){var w=i.view[m],_=n.options.lineWrapping,S=void 0,$=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var R=w.node.offsetTop+w.node.offsetHeight;S=R-a,a=R}else{var G=w.node.getBoundingClientRect();S=G.bottom-G.top,!_&&w.text.firstChild&&($=w.text.firstChild.getBoundingClientRect().right-G.left-1)}var U=w.line.height-S;if((U>.005||U<-.005)&&(u<l&&(g-=U),Fn(w.line,S),eg(w.line),w.rest))for(var ee=0;ee<w.rest.length;ee++)eg(w.rest[ee]);if($>n.display.sizerWidth){var fe=Math.ceil($/Vo(n.display));fe>n.display.maxLineLength&&(n.display.maxLineLength=fe,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function eg(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function Na(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Ta(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=P(i,l),m=P(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,m=P(i,Ur(Oe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=m&&(g=P(i,Ur(Oe(i,_))-n.wrapper.clientHeight),m=_)}return{from:g,to:Math.max(m,g+1)}}function Sx(n,i){if(!Lt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!N){var m=k("div","​",null,`position: absolute;
32
- top: `+(i.top-a.viewOffset-Ta(n.display))+`px;
33
- height: `+(i.bottom-i.top+Cr(n)+a.barHeight)+`px;
34
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(u),n.display.lineSpace.removeChild(m)}}}function kx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?Q(i.line,i.ch+1,"before"):i,i=i.ch?Q(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var m=!1,w=dr(n,i),_=!a||a==i?w:dr(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var S=hf(n,u),$=n.doc.scrollTop,R=n.doc.scrollLeft;if(S.scrollTop!=null&&(Us(n,S.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(m=!0)),S.scrollLeft!=null&&(ao(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-R)>1&&(m=!0)),!m)break}return u}function Tx(n,i){var a=hf(n,i);a.scrollTop!=null&&Us(n,a.scrollTop),a.scrollLeft!=null&&ao(n,a.scrollLeft)}function hf(n,i){var a=n.display,l=Uo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=Qu(n),m={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+Ju(a),_=i.top<l,S=i.bottom>w-l;if(i.top<u)m.scrollTop=_?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(S?w:i.bottom)-g);$!=u&&(m.scrollTop=$)}var R=n.options.fixedGutter?0:a.gutters.offsetWidth,G=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-R,U=io(n)-a.gutters.offsetWidth,ee=i.right-i.left>U;return ee&&(i.right=i.left+U),i.left<10?m.scrollLeft=0:i.left<G?m.scrollLeft=Math.max(0,i.left+R-(ee?0:10)):i.right>U+G-3&&(m.scrollLeft=i.right+(ee?0:10)-U),m}function pf(n,i){i!=null&&($a(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Go(n){$a(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Ws(n,i,a){(i!=null||a!=null)&&$a(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Cx(n,i){$a(n),n.curOp.scrollToPos=i}function $a(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Gp(n,i.from),l=Gp(n,i.to);tg(n,a,l,i.margin)}}function tg(n,i,a,l){var u=hf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});Ws(n,u.scrollLeft,u.scrollTop)}function Us(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||vf(n,{top:i}),ng(n,i,!0),s&&vf(n),Gs(n,100))}function ng(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function ao(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,lg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Vs(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Ju(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Cr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var co=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};co.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},co.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},co.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},co.prototype.zeroWidthHack=function(){var n=H&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ne,this.disableVert=new Ne},co.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},co.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var js=function(){};js.prototype.update=function(){return{bottom:0,right:0}},js.prototype.setScrollLeft=function(){},js.prototype.setScrollTop=function(){},js.prototype.clear=function(){};function Ko(n,i){i||(i=Vs(n));var a=n.display.barWidth,l=n.display.barHeight;rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ma(n),rg(n,Vs(n)),a=n.display.barWidth,l=n.display.barHeight}function rg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var ig={native:co,null:js};function og(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&K(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ig[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?ao(n,i):Us(n,i)},n),n.display.scrollbars.addClass&&Me(n.display.wrapper,n.display.scrollbars.addClass)}var Ex=0;function uo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ex,markArrays:null},ix(n.curOp)}function fo(n){var i=n.curOp;i&&sx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Lx(a)})}function Lx(n){for(var i=n.ops,a=0;a<i.length;a++)Ax(i[a]);for(var l=0;l<i.length;l++)Mx(i[l]);for(var u=0;u<i.length;u++)Nx(i[u]);for(var g=0;g<i.length;g++)$x(i[g]);for(var m=0;m<i.length;m++)Ox(i[m])}function Ax(n){var i=n.cm,a=i.display;Rx(i),n.updateMaxLine&&Yu(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Oa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Mx(n){n.updatedDisplay=n.mustUpdate&&gf(n.cm,n.update)}function Nx(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ma(i),n.barMeasure=Vs(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Fp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Cr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-io(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function $x(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&ao(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(nt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Ko(i,n.barMeasure),n.updatedDisplay&&yf(i,n.barMeasure),n.selectionChanged&&uf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Qp(n.cm)}function Ox(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&sg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ng(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&ao(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=kx(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);Sx(i,u)}var g=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Et(g[w],"hide");if(m)for(var _=0;_<m.length;++_)m[_].lines.length&&Et(m[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Et(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function An(n,i){if(n.curOp)return i();uo(n);try{return i()}finally{fo(n)}}function Ut(n,i){return function(){if(n.curOp)return i.apply(n,arguments);uo(n);try{return i.apply(n,arguments)}finally{fo(n)}}}function an(n){return function(){if(this.curOp)return n.apply(this,arguments);uo(this);try{return n.apply(this,arguments)}finally{fo(this)}}}function Vt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);uo(i);try{return n.apply(this,arguments)}finally{fo(i)}}}function Gs(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,X(Px,n))}function Px(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Ds(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var m=g.styles,w=g.text.length>n.options.maxHighlightLength?kr(i.mode,l.state):null,_=hp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var S=g.styleClasses,$=_.classes;$?g.styleClasses=$:S&&(g.styleClasses=null);for(var R=!m||m.length!=g.styles.length||S!=$&&(!S||!$||S.bgClass!=$.bgClass||S.textClass!=$.textClass),G=0;!R&&G<m.length;++G)R=m[G]!=g.styles[G];R&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Uu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Gs(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&An(n,function(){for(var g=0;g<u.length;g++)mi(n,u[g],"text")})}}var Oa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Na(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=io(n),this.force=a,this.dims=sf(n),this.events=[]};Oa.prototype.signal=function(n,i){Ln(n,i)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Et.apply(null,this.events[n])};function Rx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Cr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Cr(n)+"px",i.scrollbarsClipped=!0)}function Dx(n){if(n.hasFocus())return null;var i=me(nt(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Te(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function zx(n){if(!(!n||!n.activeElt||n.activeElt==me(Ze(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function gf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return yi(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Zp(n)==0)return!1;ag(n)&&(yi(n),i.dims=sf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(u,a.viewTo)),Wr&&(g=Ku(n.doc,g),m=Ep(n.doc,m));var w=g!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;xx(n,g,m),a.viewOffset=Ur(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Zp(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=Dx(n);return _>4&&(a.lineDiv.style.display="none"),Ix(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,zx(S),V(a.cursorDiv),V(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Gs(n,400)),a.updateLineNumbers=null,!0}function sg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==io(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Ju(n.display)-Qu(n),a.top)}),i.visible=Na(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Na(n.display,n.doc,a));if(!gf(n,i))break;Ma(n);var u=Vs(n);Bs(n),Ko(n,u),yf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function vf(n,i){var a=new Oa(n,i);if(gf(n,a)){Ma(n),sg(n,a);var l=Vs(n);Bs(n),Ko(n,l),yf(n,l),a.finish()}}function Ix(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,m=g.firstChild;function w(ee){var fe=ee.nextSibling;return v&&H&&n.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),fe}for(var _=l.view,S=l.viewFrom,$=0;$<_.length;$++){var R=_[$];if(!R.hidden)if(!R.node||R.node.parentNode!=g){var G=fx(n,R,S,a);g.insertBefore(G,m)}else{for(;m!=R.node;)m=w(m);var U=u&&i!=null&&i<=S&&R.lineNumber;R.changes&&(Ee(R.changes,"gutter")>-1&&(U=!1),$p(n,R,S,a)),U&&(V(R.lineNumber),R.lineNumber.appendChild(document.createTextNode(pe(n.options,S)))),m=R.node.nextSibling}S+=R.size}for(;m;)m=w(m)}function mf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Wt(n,"gutterChanged",n)}function yf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Cr(n)+"px"}function lg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=lf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=g),a[m].gutterBackground&&(a[m].gutterBackground.style.left=g));var w=a[m].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function ag(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=pe(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,m=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",mf(n.display),!0}return!1}function bf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],m=null;if(typeof g!="string"&&(m=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function cg(n){var i=n.gutters,a=n.gutterSpecs;V(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,m=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+g));m&&(w.style.cssText=m),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",mf(n)}function Ks(n){cg(n.display),vn(n),lg(n)}function Fx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=q("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=q("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=q("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ye+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&A)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=bf(l.gutters,l.lineNumbers),cg(u),a.init(u)}var Pa=0,jr=null;h?jr=-.53:s?jr=15:b?jr=-.7:C&&(jr=-1/3);function ug(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Hx(n){var i=ug(n);return i.x*=jr,i.y*=jr,i}function fg(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=ug(i),l=a.x,u=a.y,g=jr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var m=n.display,w=m.scroller,_=w.scrollWidth>w.clientWidth,S=w.scrollHeight>w.clientHeight;if(l&&_||u&&S){if(u&&H&&v){e:for(var $=i.target,R=m.view;$!=w;$=$.parentNode)for(var G=0;G<R.length;G++)if(R[G].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!E&&g!=null){u&&S&&Us(n,Math.max(0,w.scrollTop+u*g)),ao(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&S)&&tn(i),m.wheelStartX=null;return}if(u&&g!=null){var U=u*g,ee=n.doc.scrollTop,fe=ee+m.wrapper.clientHeight;U<0?ee=Math.max(0,ee+U-50):fe=Math.min(n.doc.height,fe+U+50),vf(n,{top:ee,bottom:fe})}Pa<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=w.scrollLeft,m.wheelStartY=w.scrollTop,m.wheelDX=l,m.wheelDY=u,setTimeout(function(){if(m.wheelStartX!=null){var ge=w.scrollLeft-m.wheelStartX,we=w.scrollTop-m.wheelStartY,ke=we&&m.wheelDY&&we/m.wheelDY||ge&&m.wheelDX&&ge/m.wheelDX;m.wheelStartX=m.wheelStartY=null,ke&&(jr=(jr*Pa+ke)/(Pa+1),++Pa)}},200)):(m.wheelDX+=l,m.wheelDY+=u))}}var Hn=function(n,i){this.ranges=n,this.primIndex=i};Hn.prototype.primary=function(){return this.ranges[this.primIndex]},Hn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ut(a.anchor,l.anchor)||!ut(a.head,l.head))return!1}return!0},Hn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ft(Bt(this.ranges[i].anchor),Bt(this.ranges[i].head));return new Hn(n,this.primIndex)},Hn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Hn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_e(i,l.from())>=0&&_e(n,l.to())<=0)return a}return-1};var ft=function(n,i){this.anchor=n,this.head=i};ft.prototype.from=function(){return Ho(this.anchor,this.head)},ft.prototype.to=function(){return gn(this.anchor,this.head)},ft.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function hr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(G,U){return _e(G.from(),U.from())}),a=Ee(i,u);for(var g=1;g<i.length;g++){var m=i[g],w=i[g-1],_=_e(w.to(),m.from());if(l&&!m.empty()?_>0:_>=0){var S=Ho(w.from(),m.from()),$=gn(w.to(),m.to()),R=w.empty()?m.from()==m.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new ft(R?$:S,R?S:$))}}return new Hn(i,a)}function bi(n,i){return new Hn([new ft(n,i||n)],0)}function wi(n){return n.text?Q(n.from.line+n.text.length-1,ue(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function dg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return wi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=wi(i).ch-i.to.ch),Q(a,l)}function wf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ft(dg(u.anchor,i),dg(u.head,i)))}return hr(n.cm,a,n.sel.primIndex)}function hg(n,i,a){return n.line==i.line?Q(a.line,n.ch-i.ch+a.ch):Q(a.line+(n.line-i.line),n.ch)}function qx(n,i,a){for(var l=[],u=Q(n.first,0),g=u,m=0;m<i.length;m++){var w=i[m],_=hg(w.from,u,g),S=hg(wi(w),u,g);if(u=w.to,g=S,a=="around"){var $=n.sel.ranges[m],R=_e($.head,$.anchor)<0;l[m]=new ft(R?S:_,R?_:S)}else l[m]=new ft(_,_)}return new Hn(l,n.sel.primIndex)}function xf(n){n.doc.mode=zo(n.options,n.doc.modeOption),Xs(n)}function Xs(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,Gs(n,100),n.state.modeGen++,n.curOp&&vn(n)}function pg(n,i){return i.from.ch==0&&i.to.ch==0&&ue(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function _f(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,xe,Le){X1(ke,xe,Le,l),Wt(ke,"change",ke,i)}function m(ke,xe){for(var Le=[],He=ke;He<xe;++He)Le.push(new qo(S[He],u(He),l));return Le}var w=i.from,_=i.to,S=i.text,$=Oe(n,w.line),R=Oe(n,_.line),G=ue(S),U=u(S.length-1),ee=_.line-w.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(pg(n,i)){var fe=m(0,S.length-1);g(R,R.text,U),ee&&n.remove(w.line,ee),fe.length&&n.insert(w.line,fe)}else if($==R)if(S.length==1)g($,$.text.slice(0,w.ch)+G+$.text.slice(_.ch),U);else{var ge=m(1,S.length-1);ge.push(new qo(G+$.text.slice(_.ch),U,l)),g($,$.text.slice(0,w.ch)+S[0],u(0)),n.insert(w.line+1,ge)}else if(S.length==1)g($,$.text.slice(0,w.ch)+S[0]+R.text.slice(_.ch),u(0)),n.remove(w.line+1,ee);else{g($,$.text.slice(0,w.ch)+S[0],u(0)),g(R,G+R.text.slice(_.ch),U);var we=m(1,S.length-1);ee>1&&n.remove(w.line+1,ee-1),n.insert(w.line+1,we)}Wt(n,"change",n,i)}function xi(n,i,a){function l(u,g,m){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var S=m&&_.sharedHist;a&&!S||(i(_.doc,S),l(_.doc,u,S))}}}l(n,null,!0)}function gg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,af(n),xf(n),vg(n),n.options.direction=i.direction,n.options.lineWrapping||Yu(n),n.options.mode=i.modeOption,vn(n)}function vg(n){(n.doc.direction=="rtl"?Me:K)(n.display.lineDiv,"CodeMirror-rtl")}function Bx(n){An(n,function(){vg(n),vn(n)})}function Ra(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Sf(n,i){var a={from:Bt(i.from),to:wi(i),text:Br(n,i.from,i.to)};return bg(n,a,i.from.line,i.to.line+1),xi(n,function(l){return bg(l,a,i.from.line,i.to.line+1)},!0),a}function mg(n){for(;n.length;){var i=ue(n);if(i.ranges)n.pop();else break}}function Wx(n,i){if(i)return mg(n.done),ue(n.done);if(n.done.length&&!ue(n.done).ranges)return ue(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ue(n.done)}function yg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,m,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=Wx(u,u.lastOp==l)))w=ue(m.changes),_e(i.from,i.to)==0&&_e(i.from,w.to)==0?w.to=wi(i):m.changes.push(Sf(n,i));else{var _=ue(u.done);for((!_||!_.ranges)&&Da(n.sel,u.done),m={changes:[Sf(n,i)],generation:u.generation},u.done.push(m);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Et(n,"historyAdded")}function Ux(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Vx(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||Ux(n,g,ue(u.done),i))?u.done[u.done.length-1]=i:Da(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&mg(u.undone)}function Da(n,i){var a=ue(i);a&&a.ranges&&a.equals(n)||i.push(n)}function bg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=m.markedSpans),++g})}function jx(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function Gx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(jx(a[u]));return l}function wg(n,i){var a=Gx(n,i),l=ju(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],m=l[u];if(g&&m)e:for(var w=0;w<m.length;++w){for(var _=m[w],S=0;S<g.length;++S)if(g[S].marker==_.marker)continue e;g.push(_)}else m&&(a[u]=m)}return a}function Xo(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Hn.prototype.deepCopy.call(g):g);continue}var m=g.changes,w=[];l.push({changes:w});for(var _=0;_<m.length;++_){var S=m[_],$=void 0;if(w.push({from:S.from,to:S.to,text:S.text}),i)for(var R in S)($=R.match(/^spans_(\d+)$/))&&Ee(i,Number($[1]))>-1&&(ue(w)[R]=S[R],delete S[R])}}return l}function kf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=_e(i,u)<0;g!=_e(a,u)<0?(u=i,i=a):g!=_e(i,a)<0&&(i=a)}return new ft(u,i)}else return new ft(a||i,i)}function za(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),nn(n,new Hn([kf(n.sel.primary(),i,a,u)],0),l)}function xg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=kf(n.sel.ranges[g],i[g],null,u);var m=hr(n.cm,l,n.sel.primIndex);nn(n,m,a)}function Tf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,nn(n,hr(n.cm,u,n.sel.primIndex),l)}function _g(n,i,a,l){nn(n,bi(i,a),l)}function Kx(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new ft(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Et(n,"beforeSelectionChange",n,l),n.cm&&Et(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?hr(n.cm,l.ranges,l.ranges.length-1):i}function Sg(n,i,a){var l=n.history.done,u=ue(l);u&&u.ranges?(l[l.length-1]=i,Ia(n,i,a)):nn(n,i,a)}function nn(n,i,a){Ia(n,i,a),Vx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ia(n,i,a){(Ln(n,"beforeSelectionChange")||n.cm&&Ln(n.cm,"beforeSelectionChange"))&&(i=Kx(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);kg(n,Cg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Go(n.cm)}function kg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Gn(n.cm)),Wt(n,"cursorActivity",n))}function Tg(n){kg(n,Cg(n,n.sel,null,!1))}function Cg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var m=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Fa(n,m.anchor,w&&w.anchor,a,l),S=m.head==m.anchor?_:Fa(n,m.head,w&&w.head,a,l);(u||_!=m.anchor||S!=m.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new ft(_,S))}return u?hr(n.cm,u,i.primIndex):i}function Yo(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var m=0;m<g.markedSpans.length;++m){var w=g.markedSpans[m],_=w.marker,S="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,$="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(S?w.from<=i.ch:w.from<i.ch))&&(w.to==null||($?w.to>=i.ch:w.to>i.ch))){if(u&&(Et(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--m;continue}else break;if(!_.atomic)continue;if(a){var R=_.find(l<0?1:-1),G=void 0;if((l<0?$:S)&&(R=Eg(n,R,-l,R&&R.line==i.line?g:null)),R&&R.line==i.line&&(G=_e(R,a))&&(l<0?G<0:G>0))return Yo(n,R,i,l,u)}var U=_.find(l<0?-1:1);return(l<0?S:$)&&(U=Eg(n,U,l,U.line==i.line?g:null)),U?Yo(n,U,i,l,u):null}}return i}function Fa(n,i,a,l,u){var g=l||1,m=Yo(n,i,a,g,u)||!u&&Yo(n,i,a,g,!0)||Yo(n,i,a,-g,u)||!u&&Yo(n,i,a,-g,!0);return m||(n.cantEdit=!0,Q(n.first,0))}function Eg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,Q(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?Q(i.line+1,0):null:new Q(i.line,i.ch+a)}function Lg(n){n.setSelection(Q(n.firstLine(),0),Q(n.lastLine()),F)}function Ag(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,m,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),m&&(l.text=m),w!==void 0&&(l.origin=w)}),Et(n,"beforeChange",n,l),n.cm&&Et(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Zo(n,i,a){if(n.cm){if(!n.cm.curOp)return Ut(n.cm,Zo)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Ln(n,"beforeChange")||n.cm&&Ln(n.cm,"beforeChange"))&&(i=Ag(n,i,!0),!i))){var l=wp&&!a&&V1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Mg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Mg(n,i)}}function Mg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=wf(n,i);yg(n,i,a,n.cm?n.cm.curOp.id:NaN),Ys(n,i,a,ju(n,i));var l=[];xi(n,function(u,g){!g&&Ee(l,u.history)==-1&&(Pg(u.history,i),l.push(u.history)),Ys(u,i,null,ju(u,i))})}}function Ha(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,m=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,S=0;S<w.length&&(g=w[S],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));S++);if(S!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(Da(g,_),a&&!g.equals(n.sel)){nn(n,g,{clearRedo:!1});return}m=g}else if(l){w.push(g);return}else break;var $=[];Da(m,_),_.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var R=Ln(n,"beforeChange")||n.cm&&Ln(n.cm,"beforeChange"),G=function(fe){var ge=g.changes[fe];if(ge.origin=i,R&&!Ag(n,ge,!1))return w.length=0,{};$.push(Sf(n,ge));var we=fe?wf(n,ge):ue(w);Ys(n,ge,we,wg(n,ge)),!fe&&n.cm&&n.cm.scrollIntoView({from:ge.from,to:wi(ge)});var ke=[];xi(n,function(xe,Le){!Le&&Ee(ke,xe.history)==-1&&(Pg(xe.history,ge),ke.push(xe.history)),Ys(xe,ge,null,wg(xe,ge))})},U=g.changes.length-1;U>=0;--U){var ee=G(U);if(ee)return ee.v}}}}function Ng(n,i){if(i!=0&&(n.first+=i,n.sel=new Hn(ye(n.sel.ranges,function(u){return new ft(Q(u.anchor.line+i,u.anchor.ch),Q(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){vn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)mi(n.cm,l,"gutter")}}function Ys(n,i,a,l){if(n.cm&&!n.cm.curOp)return Ut(n.cm,Ys)(n,i,a,l);if(i.to.line<n.first){Ng(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Ng(n,u),i={from:Q(n.first,0),to:Q(i.to.line+u,i.to.ch),text:[ue(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:Q(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Br(n,i.from,i.to),a||(a=wf(n,i)),n.cm?Xx(n.cm,i,l):_f(n,i,l),Ia(n,a,F),n.cantEdit&&Fa(n,Q(n.firstLine(),0))&&(n.cantEdit=!1)}}function Xx(n,i,a){var l=n.doc,u=n.display,g=i.from,m=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=T(fr(Oe(l,g.line))),l.iter(_,m.line+1,function(U){if(U==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Gn(n),_f(l,i,a,Yp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(U){var ee=Sa(U);ee>u.maxLineLength&&(u.maxLine=U,u.maxLineLength=ee,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),I1(l,g.line),Gs(n,400);var S=i.text.length-(m.line-g.line)-1;i.full?vn(n):g.line==m.line&&i.text.length==1&&!pg(n.doc,i)?mi(n,g.line,"text"):vn(n,g.line,m.line+1,S);var $=Ln(n,"changes"),R=Ln(n,"change");if(R||$){var G={from:g,to:m,text:i.text,removed:i.removed,origin:i.origin};R&&Wt(n,"change",n,G),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(G)}n.display.selForContextMenu=null}function Jo(n,i,a,l,u){var g;l||(l=a),_e(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),Zo(n,{from:a,to:l,text:i,origin:u})}function $g(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Og(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],m=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)$g(g.ranges[w].anchor,i,a,l),$g(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var S=g.changes[_];if(a<S.from.line)S.from=Q(S.from.line+l,S.from.ch),S.to=Q(S.to.line+l,S.to.ch);else if(i<=S.to.line){m=!1;break}}m||(n.splice(0,u+1),u=0)}}function Pg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Og(n.done,a,l,u),Og(n.undone,a,l,u)}function Zs(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,fp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&mi(n.cm,u,a),g)}function Js(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Js.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,Y1(u),Wt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function Qs(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}Qs.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),m=l.height;if(l.removeInner(n,g),this.height-=m-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Js))){var w=[];this.collapse(w),this.children=[new Js(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var m=u.lines.length%25+25,w=m;w<u.lines.length;){var _=new Js(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,m),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Qs(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ee(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Qs(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var m=Math.min(i,g-n);if(u.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=g}}};var el=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};el.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Hs(this);Fn(a,Math.max(0,a.height-g)),n&&(An(n,function(){Rg(n,a,-g),mi(n,l,"widget")}),Wt(n,"lineWidgetCleared",n,this,l))}},el.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Hs(this)-i;u&&(vi(this.doc,l)||Fn(l,l.height+u),a&&An(a,function(){a.curOp.forceUpdate=!0,Rg(a,l,u),Wt(a,"lineWidgetChanged",a,n,T(l))}))},sr(el);function Rg(n,i,a){Ur(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&pf(n,a)}function Yx(n,i,a,l){var u=new el(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),Zs(n,i,"widget",function(m){var w=m.widgets||(m.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=m,g&&!vi(n,m)){var _=Ur(m)<n.scrollTop;Fn(m,m.height+Hs(u)),_&&pf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Wt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Dg=0,_i=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Dg};_i.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&uo(n),Ln(this,"clear")){var a=this.find();a&&Wt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var m=this.lines[g],w=zs(m.markedSpans,this);n&&!this.collapsed?mi(n,T(m),"text"):n&&(w.to!=null&&(u=T(m)),w.from!=null&&(l=T(m))),m.markedSpans=q1(m.markedSpans,w),w.from==null&&this.collapsed&&!vi(this.doc,m)&&n&&Fn(m,Uo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var S=fr(this.lines[_]),$=Sa(S);$>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&vn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Tg(n.doc)),n&&Wt(n,"markerCleared",n,this,l,u),i&&fo(n),this.parent&&this.parent.clear()}},_i.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],m=zs(g.markedSpans,this);if(m.from!=null&&(a=Q(i?g:T(g),m.from),n==-1))return a;if(m.to!=null&&(l=Q(i?g:T(g),m.to),n==1))return l}return a&&{from:a,to:l}},_i.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||An(l,function(){var u=i.line,g=T(i.line),m=ef(l,g);if(m&&(Bp(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!vi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=Hs(a)-w;_&&Fn(u,u.height+_)}Wt(l,"markerChanged",l,n)})},_i.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ee(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},_i.prototype.detachLine=function(n){if(this.lines.splice(Ee(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},sr(_i);function Qo(n,i,a,l,u){if(l&&l.shared)return Zx(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Ut(n.cm,Qo)(n,i,a,l,u);var g=new _i(n,u),m=_e(i,a);if(l&&ae(l,g,!1),m>0||m==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=q("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Cp(n,i.line,i,a,g)||i.line!=a.line&&Cp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");H1()}g.addToHistory&&yg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,S;if(n.iter(w,a.line+1,function(R){_&&g.collapsed&&!_.options.lineWrapping&&fr(R)==_.display.maxLine&&(S=!0),g.collapsed&&w!=i.line&&Fn(R,0),B1(R,new ba(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(R){vi(n,R)&&Fn(R,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(F1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Dg,g.atomic=!0),_){if(S&&(_.curOp.updateMaxLine=!0),g.collapsed)vn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var $=i.line;$<=a.line;$++)mi(_,$,"text");g.atomic&&Tg(_.doc),Wt(_,"markerAdded",_,g)}return g}var tl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};tl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Wt(this,"clear")}},tl.prototype.find=function(n,i){return this.primary.find(n,i)},sr(tl);function Zx(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[Qo(n,i,a,l,u)],m=g[0],w=l.widgetNode;return xi(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(Qo(_,Ke(_,i),Ke(_,a),l,u));for(var S=0;S<_.linked.length;++S)if(_.linked[S].isParent)return;m=ue(g)}),new tl(g,m)}function zg(n){return n.findMarks(Q(n.first,0),n.clipPos(Q(n.lastLine())),function(i){return i.parent})}function Jx(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),m=n.clipPos(u.to);if(_e(g,m)){var w=Qo(n,g,m,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function Qx(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];xi(u.primary.doc,function(_){return g.push(_)});for(var m=0;m<u.markers.length;m++){var w=u.markers[m];Ee(g,w.doc)==-1&&(w.parent=null,u.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var e_=0,mn=function(n,i,a,l,u){if(!(this instanceof mn))return new mn(n,i,a,l,u);a==null&&(a=0),Qs.call(this,[new Js([new qo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=Q(a,0);this.sel=bi(g),this.history=new Ra(null),this.id=++e_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),_f(this,{from:g,to:g,text:n}),nn(this,bi(g),F)};mn.prototype=Ie(Qs.prototype,{constructor:mn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=Rs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Vt(function(n){var i=Q(this.first,0),a=this.first+this.size-1;Zo(this,{from:i,to:Q(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Ws(this.cm,0,0),nn(this,bi(i),F)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,Jo(this,n,i,a,l)},getRange:function(n,i,a){var l=Br(this,Ke(this,n),Ke(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(oe(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),fr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vt(function(n,i,a){_g(this,Ke(this,typeof n=="number"?Q(n,i||0):n),null,a)}),setSelection:Vt(function(n,i,a){_g(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Vt(function(n,i,a){za(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Vt(function(n,i){xg(this,dp(this,n),i)}),extendSelectionsBy:Vt(function(n,i){var a=ye(this.sel.ranges,n);xg(this,dp(this,a),i)}),setSelections:Vt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ft(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),nn(this,hr(this.cm,l,i),a)}}),addSelection:Vt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ft(Ke(this,n),Ke(this,i||n))),nn(this,hr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Br(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=Br(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Vt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var m=u.ranges[g];l[g]={from:m.from(),to:m.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&qx(this,l,i),_=l.length-1;_>=0;_--)Zo(this,l[_]);w?Sg(this,w):this.cm&&Go(this.cm)}),undo:Vt(function(){Ha(this,"undo")}),redo:Vt(function(){Ha(this,"redo")}),undoSelection:Vt(function(){Ha(this,"undo",!0)}),redoSelection:Vt(function(){Ha(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new Ra(this.history),xi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:Xo(this.history.done),undone:Xo(this.history.undone)}},setHistory:function(n){var i=this.history=new Ra(this.history);i.done=Xo(n.done.slice(0),null,!0),i.undone=Xo(n.undone.slice(0),null,!0)},setGutterMarker:Vt(function(n,i,a){return Zs(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&vt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Vt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Zs(i,a,"gutter",function(){return a.gutterMarkers[n]=null,vt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!oe(this,n)||(i=n,n=Oe(this,n),!n))return null}else if(i=T(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Vt(function(n,i,a){return Zs(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(te(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Vt(function(n,i,a){return Zs(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var m=g.match(te(a));if(!m)return!1;var w=m.index+m[0].length;l[u]=g.slice(0,m.index)+(!m.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Vt(function(n,i,a){return Yx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Qo(this,Ke(this,n),Ke(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ke(this,n),Qo(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var m=g.markedSpans;if(m)for(var w=0;w<m.length;w++){var _=m[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,Q(a,i))},indexFromPos:function(n){n=Ke(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new mn(Rs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new mn(Rs(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],Jx(l,zg(this)),l},unlinkDoc:function(n){if(n instanceof St&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),Qx(zg(this));break}}if(n.history==this.history){var l=[n.id];xi(n,function(u){return l.push(u.id)},!0),n.history=new Ra(null),n.history.done=Xo(this.history.done,l),n.history.undone=Xo(this.history.undone,l)}},iterLinkedDocs:function(n){xi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Kn(n)},lineSeparator:function(){return this.lineSep||`
35
- `},setDirection:Vt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Bx(this.cm))})}),mn.prototype.eachLine=mn.prototype.iter;var Ig=0;function t_(n){var i=this;if(Fg(i),!(Lt(i,n)||Vr(i.display,n))){tn(n),h&&(Ig=+new Date);var a=so(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),m=0,w=function(){++m==u&&Ut(i,function(){a=Ke(i.doc,a);var U={from:a,to:a,text:i.doc.splitLines(g.filter(function(ee){return ee!=null}).join(i.doc.lineSeparator())),origin:"paste"};Zo(i.doc,U),Sg(i.doc,bi(Ke(i.doc,a),Ke(i.doc,wi(U))))})()},_=function(U,ee){if(i.options.allowDropFileTypes&&Ee(i.options.allowDropFileTypes,U.type)==-1){w();return}var fe=new FileReader;fe.onerror=function(){return w()},fe.onload=function(){var ge=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){w();return}g[ee]=ge,w()},fe.readAsText(U)},S=0;S<l.length;S++)_(l[S],S);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var $=n.dataTransfer.getData("Text");if($){var R;if(i.state.draggingText&&!i.state.draggingText.copy&&(R=i.listSelections()),Ia(i.doc,bi(a,a)),R)for(var G=0;G<R.length;++G)Jo(i.doc,"",R[G].anchor,R[G].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function n_(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){di(i);return}if(!(Lt(n,i)||Vr(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!C)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function r_(n,i){var a=so(n,i);if(a){var l=document.createDocumentFragment();cf(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),I(n.display.dragCursor,l)}}function Fg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Hg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var qg=!1;function i_(){qg||(o_(),qg=!0)}function o_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Hg(s_)},100))}),Fe(window,"blur",function(){return Hg(jo)})}function s_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Si={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"},nl=0;nl<10;nl++)Si[nl+48]=Si[nl+96]=String(nl);for(var qa=65;qa<=90;qa++)Si[qa]=String.fromCharCode(qa);for(var rl=1;rl<=12;rl++)Si[rl+111]=Si[rl+63235]="F"+rl;var Gr={};Gr.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"},Gr.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"},Gr.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"},Gr.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"]},Gr.default=H?Gr.macDefault:Gr.pcDefault;function l_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,m=0;m<i.length-1;m++){var w=i[m];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function a_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),l_),g=0;g<u.length;g++){var m=void 0,w=void 0;g==u.length-1?(w=u.join(" "),m=l):(w=u.slice(0,g+1).join(" "),m="...");var _=i[w];if(!_)i[w]=m;else if(_!=m)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var S in i)n[S]=i[S];return n}function es(n,i,a,l){i=Ba(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return es(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var m=es(n,i.fallthrough[g],a,l);if(m)return m}}}function Bg(n){var i=typeof n=="string"?n:Si[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Wg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ne?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ne?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Ug(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=Si[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Wg(a,n,i))}function Ba(n){return typeof n=="string"?Gr[n]:n}function ts(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&_e(g.from,ue(l).to)<=0;){var m=l.pop();if(_e(m.from,g.from)<0){g.from=m.from;break}}l.push(g)}An(n,function(){for(var w=l.length-1;w>=0;w--)Jo(n.doc,"",l[w].from,l[w].to,"+delete");Go(n)})}function Cf(n,i,a){var l=Ft(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Ef(n,i,a){var l=Cf(n,i.ch,a);return l==null?null:new Q(i.line,l,a<0?"after":"before")}function Lf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ue(a,i.doc.direction);if(g){var m=u<0?ue(g):g[0],w=u<0==(m.level==1),_=w?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var $=Wo(i,a);S=u<0?a.text.length-1:0;var R=Er(i,$,S).top;S=Jt(function(G){return Er(i,$,G).top==R},u<0==(m.level==1)?m.from:m.to-1,S),_=="before"&&(S=Cf(a,S,1))}else S=u<0?m.to:m.from;return new Q(l,S,_)}}return new Q(l,u<0?a.text.length:0,u<0?"before":"after")}function c_(n,i,a,l){var u=Ue(i,n.doc.direction);if(!u)return Ef(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=or(u,a.ch,a.sticky),m=u[g];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Ef(i,a,l);var w=function(we,ke){return Cf(i,we instanceof Q?we.ch:we,ke)},_,S=function(we){return n.options.lineWrapping?(_=_||Wo(n,i),Xp(n,i,_,we)):{begin:0,end:i.text.length}},$=S(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var R=m.level==1==l<0,G=w(a,R?1:-1);if(G!=null&&(R?G<=m.to&&G<=$.end:G>=m.from&&G>=$.begin)){var U=R?"before":"after";return new Q(a.line,G,U)}}var ee=function(we,ke,xe){for(var Le=function(wt,jt){return jt?new Q(a.line,w(wt,1),"before"):new Q(a.line,wt,"after")};we>=0&&we<u.length;we+=ke){var He=u[we],Re=ke>0==(He.level!=1),Je=Re?xe.begin:w(xe.end,-1);if(He.from<=Je&&Je<He.to||(Je=Re?He.from:w(He.to,-1),xe.begin<=Je&&Je<xe.end))return Le(Je,Re)}},fe=ee(g+l,l,$);if(fe)return fe;var ge=l>0?$.end:w($.begin,-1);return ge!=null&&!(l>0&&ge==i.text.length)&&(fe=ee(l>0?0:u.length-1,l,S(ge)),fe)?fe:null}var il={selectAll:Lg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),F)},killLine:function(n){return ts(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:Q(i.head.line+1,0)}:{from:i.head,to:Q(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ts(n,function(i){return{from:Q(i.from().line,0),to:Ke(n.doc,Q(i.to().line+1,0))}})},delLineLeft:function(n){return ts(n,function(i){return{from:Q(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ts(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ts(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(Q(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(Q(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Vg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return jg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return u_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},ce)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},ce)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?jg(n,i.head):l},ce)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),m=de(n.getLine(g.line),g.ch,l);i.push(Se(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return An(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new Q(u.line,u.ch-1)),u.ch>0)u=new Q(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),Q(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var m=Oe(n.doc,u.line-1).text;m&&(u=new Q(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),Q(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ft(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return An(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Go(n)})},openLine:function(n){return n.replaceSelection(`
36
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Vg(n,i){var a=Oe(n.doc,i),l=fr(a);return l!=a&&(i=T(l)),Lf(!0,n,l,i,1)}function u_(n,i){var a=Oe(n.doc,i),l=G1(a);return l!=a&&(i=T(l)),Lf(!0,n,a,i,-1)}function jg(n,i){var a=Vg(n,i.line),l=Oe(n.doc,a.line),u=Ue(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=g&&i.ch;return Q(a.line,m?0:g,a.sticky)}return a}function Wa(n,i,a){if(typeof i=="string"&&(i=il[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function f_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=es(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&es(i,n.options.extraKeys,a,n)||es(i,n.options.keyMap,a,n)}var d_=new Ne;function ol(n,i,a,l){var u=n.state.keySeq;if(u){if(Bg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:d_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Gg(n,u+" "+i,a,l))return!0}return Gg(n,i,a,l)}function Gg(n,i,a,l){var u=f_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Wt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(tn(a),uf(n)),!!u}function Kg(n,i){var a=Ug(i,!0);return a?i.shiftKey&&!n.state.keySeq?ol(n,"Shift-"+a,i,function(l){return Wa(n,l,!0)})||ol(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Wa(n,l)}):ol(n,a,i,function(l){return Wa(n,l)}):!1}function h_(n,i,a){return ol(n,"'"+a+"'",i,function(l){return Wa(n,l,!0)})}var Af=null;function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(nt(i)),!Lt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Kg(i,n);E&&(Af=l?a:null,!l&&a==88&&!ma&&(H?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!H&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&p_(i)}}function p_(n){var i=n.display.lineDiv;Me(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(K(i,"CodeMirror-crosshair"),en(document,"keyup",a),en(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function Yg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,n)}function Zg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Vr(i.display,n)||Lt(i,n)||n.ctrlKey&&!n.altKey||H&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==Af){Af=null,tn(n);return}if(!(E&&(!n.which||n.which<10)&&Kg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(h_(i,n,u)||i.display.input.onKeyPress(n))}}}var g_=400,Mf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Mf.prototype.compare=function(n,i,a){return this.time+g_>n&&_e(i,this.pos)==0&&a==this.button};var sl,ll;function v_(n,i){var a=+new Date;return ll&&ll.compare(a,n,i)?(sl=ll=null,"triple"):sl&&sl.compare(a,n,i)?(ll=new Mf(a,n,i),sl=null,"double"):(sl=new Mf(a,n,i),ll=null,"single")}function Jg(n){var i=this,a=i.display;if(!(Lt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Vr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Nf(i,n)){var l=so(i,n),u=lr(n),g=l?v_(l,u):"single";Te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&m_(i,u,l,g,n))&&(u==1?l?b_(i,l,g,n):$s(n)==a.scroller&&tn(n):u==2?(l&&za(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(j?i.display.input.onContextMenu(n):ff(i)))}}}function m_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,ol(n,Wg(g,u),u,function(m){if(typeof m=="string"&&(m=il[m]),!m)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=m(n,a)!=O}finally{n.state.suppressEdits=!1}return w})}function y_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=z?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=H?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(H?a.altKey:a.ctrlKey)),u}function b_(n,i,a,l){h?setTimeout(X(Qp,n),0):n.curOp.focus=me(nt(n));var u=y_(n,a,l),g=n.doc.sel,m;n.options.dragDrop&&Bu&&!n.isReadOnly()&&a=="single"&&(m=g.contains(i))>-1&&(_e((m=g.ranges[m]).from(),i)<0||i.xRel>0)&&(_e(m.to(),i)>0||i.xRel<0)?w_(n,l,i,u):x_(n,l,i,u)}function w_(n,i,a,l){var u=n.display,g=!1,m=Ut(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:ff(n)),en(u.wrapper.ownerDocument,"mouseup",m),en(u.wrapper.ownerDocument,"mousemove",w),en(u.scroller,"dragstart",_),en(u.scroller,"drop",m),g||(tn(S),l.addNew||za(n.doc,a,null,null,l.extend),v&&!C||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(S){g=g||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",m),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Qg(n,i,a){if(a=="char")return new ft(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ft(Q(i.line,0),Ke(n.doc,Q(i.line+1,0)));var l=a(n,i);return new ft(l.from,l.to)}function x_(n,i,a,l){h&&ff(n);var u=n.display,g=n.doc;tn(i);var m,w,_=g.sel,S=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?m=S[w]:m=new ft(a,a)):(m=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ft(a,a)),a=so(n,i,!0,!0),w=-1;else{var $=Qg(n,a,l.unit);l.extend?m=kf(m,$.anchor,$.head,l.extend):m=$}l.addNew?w==-1?(w=S.length,nn(g,hr(n,S.concat([m]),w),{scroll:!1,origin:"*mouse"})):S.length>1&&S[w].empty()&&l.unit=="char"&&!l.extend?(nn(g,hr(n,S.slice(0,w).concat(S.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Tf(g,w,m,Z):(w=0,nn(g,new Hn([m],0),Z),_=g.sel);var R=a;function G(xe){if(_e(R,xe)!=0)if(R=xe,l.unit=="rectangle"){for(var Le=[],He=n.options.tabSize,Re=de(Oe(g,a.line).text,a.ch,He),Je=de(Oe(g,xe.line).text,xe.ch,He),wt=Math.min(Re,Je),jt=Math.max(Re,Je),Ct=Math.min(a.line,xe.line),Mn=Math.min(n.lastLine(),Math.max(a.line,xe.line));Ct<=Mn;Ct++){var yn=Oe(g,Ct).text,Ot=se(yn,wt,He);wt==jt?Le.push(new ft(Q(Ct,Ot),Q(Ct,Ot))):yn.length>Ot&&Le.push(new ft(Q(Ct,Ot),Q(Ct,se(yn,jt,He))))}Le.length||Le.push(new ft(a,a)),nn(g,hr(n,_.ranges.slice(0,w).concat(Le),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var bn=m,Kt=Qg(n,xe,l.unit),Ht=bn.anchor,Pt;_e(Kt.anchor,Ht)>0?(Pt=Kt.head,Ht=Ho(bn.from(),Kt.anchor)):(Pt=Kt.anchor,Ht=gn(bn.to(),Kt.head));var Mt=_.ranges.slice(0);Mt[w]=__(n,new ft(Ke(g,Ht),Pt)),nn(g,hr(n,Mt,w),Z)}}var U=u.wrapper.getBoundingClientRect(),ee=0;function fe(xe){var Le=++ee,He=so(n,xe,!0,l.unit=="rectangle");if(He)if(_e(He,R)!=0){n.curOp.focus=me(nt(n)),G(He);var Re=Na(u,g);(He.line>=Re.to||He.line<Re.from)&&setTimeout(Ut(n,function(){ee==Le&&fe(xe)}),150)}else{var Je=xe.clientY<U.top?-20:xe.clientY>U.bottom?20:0;Je&&setTimeout(Ut(n,function(){ee==Le&&(u.scroller.scrollTop+=Je,fe(xe))}),50)}}function ge(xe){n.state.selectingText=!1,ee=1/0,xe&&(tn(xe),u.input.focus()),en(u.wrapper.ownerDocument,"mousemove",we),en(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var we=Ut(n,function(xe){xe.buttons===0||!lr(xe)?ge(xe):fe(xe)}),ke=Ut(n,ge);n.state.selectingText=ke,Fe(u.wrapper.ownerDocument,"mousemove",we),Fe(u.wrapper.ownerDocument,"mouseup",ke)}function __(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(_e(a,l)==0&&a.sticky==l.sticky)return i;var g=Ue(u);if(!g)return i;var m=or(g,a.ch,a.sticky),w=g[m];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=m+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=or(g,l.ch,l.sticky),R=$-m||(l.ch-a.ch)*(w.level==1?-1:1);$==_-1||$==_?S=R<0:S=R>0}var G=g[_+(S?-1:0)],U=S==(G.level==1),ee=U?G.from:G.to,fe=U?"after":"before";return a.ch==ee&&a.sticky==fe?i:new ft(new Q(a.line,ee,fe),l)}function ev(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&tn(i);var m=n.display,w=m.lineDiv.getBoundingClientRect();if(g>w.bottom||!Ln(n,a))return pn(i);g-=w.top-m.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var S=m.gutters.childNodes[_];if(S&&S.getBoundingClientRect().right>=u){var $=P(n.doc,g),R=n.display.gutterSpecs[_];return Et(n,a,n,$,R.className,i),pn(i)}}}function Nf(n,i){return ev(n,i,"gutterClick",!0)}function tv(n,i){Vr(n.display,i)||S_(n,i)||Lt(n,i,"contextmenu")||j||n.display.input.onContextMenu(i)}function S_(n,i){return Ln(n,"gutterContextMenu")?ev(n,i,"gutterContextMenu",!1):!1}function nv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qs(n)}var ns={toString:function(){return"CodeMirror.Init"}},rv={},Ua={};function k_(n){var i=n.optionHandlers;function a(l,u,g,m){n.defaults[l]=u,g&&(i[l]=m?function(w,_,S){S!=ns&&g(w,_,S)}:g)}n.defineOption=a,n.Init=ns,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,xf(l)},!0),a("indentUnit",2,xf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Xs(l),qs(l),vn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],m=l.doc.first;l.doc.iter(function(_){for(var S=0;;){var $=_.text.indexOf(u,S);if($==-1)break;S=$+u.length,g.push(Q(m,$))}m++});for(var w=g.length-1;w>=0;w--)Jo(l.doc,u,g[w],Q(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=ns&&l.refresh()}),a("specialCharPlaceholder",Q1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!J),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){nv(l),Ks(l)},!0),a("keyMap","default",function(l,u,g){var m=Ba(u),w=g!=ns&&Ba(g);w&&w.detach&&w.detach(l,m),m.attach&&m.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,C_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=bf(u,l.options.lineNumbers),Ks(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?lf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Ko(l)},!0),a("scrollbarStyle","native",function(l){og(l),Ko(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=bf(l.options.gutters,u),Ks(l)},!0),a("firstLineNumber",1,Ks,!0),a("lineNumberFormatter",function(l){return l},Ks,!0),a("showCursorWhenSelecting",!1,Bs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(jo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,T_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Bs,!0),a("singleCursorHeightPerLine",!0,Bs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Xs,!0),a("addModeClass",!1,Xs,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Xs,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function T_(n,i,a){var l=a&&a!=ns;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:en;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function C_(n){n.options.lineWrapping?(Me(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(K(n.display.wrapper,"CodeMirror-wrap"),Yu(n)),af(n),vn(n),qs(n),setTimeout(function(){return Ko(n)},100)}function St(n,i){var a=this;if(!(this instanceof St))return new St(n,i);this.options=i=i?ae(i):{},ae(rv,i,!1);var l=i.value;typeof l=="string"?l=new mn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new St.inputStyles[i.inputStyle](this),g=this.display=new Fx(n,l,u,i);g.wrapper.CodeMirror=this,nv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),og(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 Ne,keySeq:null,specialChars:null},i.autofocus&&!A&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),E_(this),i_(),uo(this),this.curOp.forceUpdate=!0,gg(this,l),i.autofocus&&!A||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&df(a)},20):jo(this);for(var m in Ua)Ua.hasOwnProperty(m)&&Ua[m](this,i[m],ns);ag(this),i.finishInit&&i.finishInit(this);for(var w=0;w<$f.length;++w)$f[w](this);fo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}St.defaults=rv,St.optionHandlers=Ua;function E_(n){var i=n.display;Fe(i.scroller,"mousedown",Ut(n,Jg)),h&&p<11?Fe(i.scroller,"dblclick",Ut(n,function(_){if(!Lt(n,_)){var S=so(n,_);if(!(!S||Nf(n,_)||Vr(n.display,_))){tn(_);var $=n.findWordAt(S);za(n.doc,$.anchor,$.head)}}})):Fe(i.scroller,"dblclick",function(_){return Lt(n,_)||tn(_)}),Fe(i.scroller,"contextmenu",function(_){return tv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||tv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var S=_.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(_,S){if(S.left==null)return!0;var $=S.left-_.left,R=S.top-_.top;return $*$+R*R>20*20}Fe(i.scroller,"touchstart",function(_){if(!Lt(n,_)&&!g(_)&&!Nf(n,_)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var S=i.activeTouch;if(S&&!Vr(i,_)&&S.left!=null&&!S.moved&&new Date-S.start<300){var $=n.coordsChar(i.activeTouch,"page"),R;!S.prev||m(S,S.prev)?R=new ft($,$):!S.prev.prev||m(S,S.prev.prev)?R=n.findWordAt($):R=new ft(Q($.line,0),Ke(n.doc,Q($.line+1,0))),n.setSelection(R.anchor,R.head),n.focus(),tn(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Us(n,i.scroller.scrollTop),ao(n,i.scroller.scrollLeft,!0),Et(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return fg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return fg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Lt(n,_)||di(_)},over:function(_){Lt(n,_)||(r_(n,_),di(_))},start:function(_){return n_(n,_)},drop:Ut(n,t_),leave:function(_){Lt(n,_)||Fg(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return Yg.call(n,_)}),Fe(w,"keydown",Ut(n,Xg)),Fe(w,"keypress",Ut(n,Zg)),Fe(w,"focus",function(_){return df(n,_)}),Fe(w,"blur",function(_){return jo(n,_)})}var $f=[];St.defineInitHook=function(n){return $f.push(n)};function al(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Ds(n,i).state:a="prev");var m=n.options.tabSize,w=Oe(u,i),_=de(w.text,null,m);w.stateAfter&&(w.stateAfter=null);var S=w.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(w.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,w.text.slice(S.length),w.text),$==O||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,m):$=0:a=="add"?$=_+n.options.indentUnit:a=="subtract"?$=_-n.options.indentUnit:typeof a=="number"&&($=_+a),$=Math.max(0,$);var R="",G=0;if(n.options.indentWithTabs)for(var U=Math.floor($/m);U;--U)G+=m,R+=" ";if(G<$&&(R+=Se($-G)),R!=S)return Jo(u,R,Q(i,0),Q(i,S.length),"+input"),w.stateAfter=null,!0;for(var ee=0;ee<u.sel.ranges.length;ee++){var fe=u.sel.ranges[ee];if(fe.head.line==i&&fe.head.ch<S.length){var ge=Q(i,S.length);Tf(u,ee,new ft(ge,ge));break}}}var pr=null;function Va(n){pr=n}function Of(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var m=+new Date-200,w=u=="paste"||n.state.pasteIncoming>m,_=Kn(i),S=null;if(w&&l.ranges.length>1)if(pr&&pr.text.join(`
37
- `)==i){if(l.ranges.length%pr.text.length==0){S=[];for(var $=0;$<pr.text.length;$++)S.push(g.splitLines(pr.text[$]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=ye(_,function(we){return[we]}));for(var R=n.curOp.updateInput,G=l.ranges.length-1;G>=0;G--){var U=l.ranges[G],ee=U.from(),fe=U.to();U.empty()&&(a&&a>0?ee=Q(ee.line,ee.ch-a):n.state.overwrite&&!w?fe=Q(fe.line,Math.min(Oe(g,fe.line).text.length,fe.ch+ue(_).length)):w&&pr&&pr.lineWise&&pr.text.join(`
38
- `)==_.join(`
39
- `)&&(ee=fe=Q(ee.line,0)));var ge={from:ee,to:fe,text:S?S[G%S.length]:_,origin:u||(w?"paste":n.state.cutIncoming>m?"cut":"+input")};Zo(n.doc,ge),Wt(n,"inputRead",n,ge)}i&&!w&&ov(n,i),Go(n),n.curOp.updateInput<2&&(n.curOp.updateInput=R),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function iv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&An(i,function(){return Of(i,a,0,null,"paste")}),!0}function ov(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),m=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){m=al(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(m=al(n,u.head.line,"smart"));m&&Wt(n,"electricInput",n,u.head.line)}}}function sv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:Q(u,0),head:Q(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Pf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function lv(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),L&&(n.style.border="1px solid black"),i}function L_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Te(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,m=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Ut(this,i[l])(this,u,m),Et(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](Ba(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:an(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");he(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(m){return m.priority}),this.state.modeGen++,vn(this)}),removeOverlay:an(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var m=u[g].modeSpec;if(m==l||typeof l=="string"&&m.name==l){u.splice(g,1),this.state.modeGen++,vn(this);return}}}),indentLine:an(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),oe(this.doc,l)&&al(this,l,u,g)}),indentSelection:an(function(l){for(var u=this.doc.sel.ranges,g=-1,m=0;m<u.length;m++){var w=u[m];if(w.empty())w.head.line>g&&(al(this,w.head.line,l,!0),g=w.head.line,m==this.doc.sel.primIndex&&Go(this));else{var _=w.from(),S=w.to(),$=Math.max(g,_.line);g=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var R=$;R<g;++R)al(this,R,l);var G=this.doc.sel.ranges;_.ch==0&&u.length==G.length&&G[m].from().ch>0&&Tf(this.doc,m,new ft(_,G[m].to()),F)}}}),getTokenAt:function(l,u){return mp(this,l,u)},getLineTokens:function(l,u){return mp(this,Q(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=pp(this,Oe(this.doc,l.line)),g=0,m=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var S=g+m>>1;if((S?u[S*2-1]:0)>=w)m=S;else if(u[S*2+1]<w)g=S+1;else{_=u[S*2+2];break}}var $=_?_.indexOf("overlay "):-1;return $<0?_:$==0?null:_.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var m=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")m[w[u]]&&g.push(m[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var S=m[w[u][_]];S&&g.push(S)}else w.helperType&&m[w.helperType]?g.push(m[w.helperType]):m[w.name]&&g.push(m[w.name]);for(var $=0;$<m._global.length;$++){var R=m._global[$];R.pred(w,this)&&Ee(g,R.val)==-1&&g.push(R.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=fp(g,l??g.first+g.size-1),Ds(this,l+1,u).state},cursorCoords:function(l,u){var g,m=this.doc.sel.primary();return l==null?g=m.head:typeof l=="object"?g=Ke(this.doc,l):g=l?m.from():m.to(),dr(this,g,u||"page")},charCoords:function(l,u){return Ea(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=jp(this,l,u||"page"),rf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=jp(this,{top:l,left:0},u||"page").top,P(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var m=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,m=!0),w=Oe(this.doc,l)}else w=l;return Ca(this,w,{top:0,left:0},u||"page",g||m).top+(m?this.doc.height-Ur(w):0)},defaultTextHeight:function(){return Uo(this.display)},defaultCharWidth:function(){return Vo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,m,w){var _=this.display;l=dr(this,Ke(this.doc,l));var S=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var R=Math.max(_.wrapper.clientHeight,this.doc.height),G=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(m=="above"||l.bottom+u.offsetHeight>R)&&l.top>u.offsetHeight?S=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=R&&(S=l.bottom),$+u.offsetWidth>G&&($=G-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",w=="right"?($=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?$=0:w=="middle"&&($=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Tx(this,{left:$,top:S,right:$+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:an(Xg),triggerOnKeyPress:an(Zg),triggerOnKeyUp:Yg,triggerOnMouseDown:an(Jg),execCommand:function(l){if(il.hasOwnProperty(l))return il[l].call(null,this)},triggerElectric:an(function(l){ov(this,l)}),findPosH:function(l,u,g,m){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),S=0;S<u&&(_=Rf(this.doc,_,w,g,m),!_.hitSide);++S);return _},moveH:an(function(l,u){var g=this;this.extendSelectionsBy(function(m){return g.display.shift||g.doc.extend||m.empty()?Rf(g.doc,m.head,l,u,g.options.rtlMoveVisually):l<0?m.from():m.to()},ce)}),deleteH:an(function(l,u){var g=this.doc.sel,m=this.doc;g.somethingSelected()?m.replaceSelection("",null,"+delete"):ts(this,function(w){var _=Rf(m,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,m){var w=1,_=m;u<0&&(w=-1,u=-u);for(var S=Ke(this.doc,l),$=0;$<u;++$){var R=dr(this,S,"div");if(_==null?_=R.left:R.left=_,S=av(this,R,w,g),S.hitSide)break}return S},moveV:an(function(l,u){var g=this,m=this.doc,w=[],_=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function($){if(_)return l<0?$.from():$.to();var R=dr(g,$.head,"div");$.goalColumn!=null&&(R.left=$.goalColumn),w.push(R.left);var G=av(g,R,l,u);return u=="page"&&$==m.sel.primary()&&pf(g,Ea(g,G,"div").top-R.top),G},ce),w.length)for(var S=0;S<m.sel.ranges.length;S++)m.sel.ranges[S].goalColumn=w[S]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,m=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&m?--m:++w;for(var S=g.charAt(m),$=Ge(S,_)?function(R){return Ge(R,_)}:/\s/.test(S)?function(R){return/\s/.test(R)}:function(R){return!/\s/.test(R)&&!Ge(R)};m>0&&$(g.charAt(m-1));)--m;for(;w<g.length&&$(g.charAt(w));)++w}return new ft(Q(l.line,m),Q(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Me(this.display.cursorDiv,"CodeMirror-overwrite"):K(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(nt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:an(function(l,u){Ws(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Cr(this)-this.display.barHeight,width:l.scrollWidth-Cr(this)-this.display.barWidth,clientHeight:Qu(this),clientWidth:io(this)}},scrollIntoView:an(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:Q(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Cx(this,l):tg(this,l.from,l.to,l.margin)}),setSize:an(function(l,u){var g=this,m=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=m(l)),u!=null&&(this.display.wrapper.style.height=m(u)),this.options.lineWrapping&&Wp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var S=0;S<_.widgets.length;S++)if(_.widgets[S].noHScroll){mi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(l){return An(this,l)},startOperation:function(){return uo(this)},endOperation:function(){return fo(this)},refresh:an(function(){var l=this.display.cachedTextHeight;vn(this),this.curOp.forceUpdate=!0,qs(this),Ws(this,this.doc.scrollLeft,this.doc.scrollTop),mf(this.display),(l==null||Math.abs(l-Uo(this.display))>.5||this.options.lineWrapping)&&af(this),Et(this,"refresh",this)}),swapDoc:an(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),gg(this,l),qs(this),this.display.input.reset(),Ws(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},sr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,m){n.registerHelper(l,u,m),a[l]._global.push({pred:g,val:m})}}function Rf(n,i,a,l,u){var g=i,m=a,w=Oe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function S(){var ke=i.line+_;return ke<n.first||ke>=n.first+n.size?!1:(i=new Q(ke,i.ch,i.sticky),w=Oe(n,ke))}function $(ke){var xe;if(l=="codepoint"){var Le=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Le))xe=null;else{var He=a>0?Le>=55296&&Le<56320:Le>=56320&&Le<57343;xe=new Q(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?xe=c_(n.cm,w,i,a):xe=Ef(w,i,a);if(xe==null)if(!ke&&S())i=Lf(u,n.cm,w,i.line,_);else return!1;else i=xe;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var R=null,G=l=="group",U=n.cm&&n.cm.getHelper(i,"wordChars"),ee=!0;!(a<0&&!$(!ee));ee=!1){var fe=w.text.charAt(i.ch)||`
40
- `,ge=Ge(fe,U)?"w":G&&fe==`
41
- `?"n":!G||/\s/.test(fe)?null:"p";if(G&&!ee&&!ge&&(ge="s"),R&&R!=ge){a<0&&(a=1,$(),i.sticky="after");break}if(ge&&(R=ge),a>0&&!$(!ee))break}var we=Fa(n,i,g,m,!0);return ut(g,we)&&(we.hitSide=!0),we}function av(n,i,a,l){var u=n.doc,g=i.left,m;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Te(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*Uo(n.display),3);m=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=rf(n,g,m),!!S.outside;){if(a<0?m<=0:m>=u.height){S.hitSide=!0;break}m+=a*5}return S}var mt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};mt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Pf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(w){!g(w)||Lt(l,w)||iv(w,l)||p<=11&&setTimeout(Ut(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Fe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Fe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function m(w){if(!(!g(w)||Lt(l,w))){if(l.somethingSelected())Va({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=sv(l);Va({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,F),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var S=pr.text.join(`
42
- `);if(w.clipboardData.setData("Text",S),w.clipboardData.getData("Text")==S){w.preventDefault();return}}var $=lv(),R=$.firstChild;Pf(R),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),R.value=pr.text.join(`
43
- `);var G=me(Ze(u));Ve(R),setTimeout(function(){l.display.lineSpace.removeChild($),G.focus(),G==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",m),Fe(u,"cut",m)},mt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var n=Jp(this.cm,!1);return n.focus=me(Ze(this.div))==this.div,n},mt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},mt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=ja(i,n.anchorNode,n.anchorOffset),m=ja(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&m&&!m.bad&&_e(Ho(g,m),l)==0&&_e(gn(g,m),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&cv(i,l)||{node:w[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&cv(i,u);if(!S){var $=w[w.length-1].measure,R=$.maps?$.maps[$.maps.length-1]:$.map;S={node:R[R.length-1],offset:R[R.length-2]-R[R.length-3]}}if(!_||!S){n.removeAllRanges();return}var G=n.rangeCount&&n.getRangeAt(0),U;try{U=W(_.node,_.offset,S.offset,S.node)}catch{}U&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),U.collapsed||(n.removeAllRanges(),n.addRange(U))):(n.removeAllRanges(),n.addRange(U)),G&&n.anchorNode==null?n.addRange(G):s&&this.startGracePeriod()),this.rememberSelection()}},mt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},mt.prototype.showMultipleSelections=function(n){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},mt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},mt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return re(this.div,i)},mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},mt.prototype.blur=function(){this.div.blur()},mt.prototype.getField=function(){return this.div},mt.prototype.supportsTouch=function(){return!0},mt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):An(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},mt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},mt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(D&&b&&this.cm.display.gutterSpecs.length&&A_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=ja(i,n.anchorNode,n.anchorOffset),l=ja(i,n.focusNode,n.focusOffset);a&&l&&An(i,function(){nn(i.doc,bi(a,l),F),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},mt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=Q(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=Q(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,m,w;l.line==i.viewFrom||(g=lo(n,l.line))==0?(m=T(i.view[0].line),w=i.view[0].node):(m=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=lo(n,u.line),S,$;if(_==i.view.length-1?(S=i.viewTo-1,$=i.lineDiv.lastChild):(S=T(i.view[_+1].line)-1,$=i.view[_+1].node.previousSibling),!w)return!1;for(var R=n.doc.splitLines(M_(n,w,$,m,S)),G=Br(n.doc,Q(m,0),Q(S,Oe(n.doc,S).text.length));R.length>1&&G.length>1;)if(ue(R)==ue(G))R.pop(),G.pop(),S--;else if(R[0]==G[0])R.shift(),G.shift(),m++;else break;for(var U=0,ee=0,fe=R[0],ge=G[0],we=Math.min(fe.length,ge.length);U<we&&fe.charCodeAt(U)==ge.charCodeAt(U);)++U;for(var ke=ue(R),xe=ue(G),Le=Math.min(ke.length-(R.length==1?U:0),xe.length-(G.length==1?U:0));ee<Le&&ke.charCodeAt(ke.length-ee-1)==xe.charCodeAt(xe.length-ee-1);)++ee;if(R.length==1&&G.length==1&&m==l.line)for(;U&&U>l.ch&&ke.charCodeAt(ke.length-ee-1)==xe.charCodeAt(xe.length-ee-1);)U--,ee++;R[R.length-1]=ke.slice(0,ke.length-ee).replace(/^\u200b+/,""),R[0]=R[0].slice(U).replace(/\u200b+$/,"");var He=Q(m,U),Re=Q(S,G.length?ue(G).length-ee:0);if(R.length>1||R[0]||_e(He,Re))return Jo(n.doc,R,He,Re,"+input"),!0},mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},mt.prototype.reset=function(){this.forceCompositionEnd()},mt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},mt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},mt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&An(this.cm,function(){return vn(n.cm)})},mt.prototype.setUneditable=function(n){n.contentEditable="false"},mt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Ut(this.cm,Of)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},mt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},mt.prototype.onContextMenu=function(){},mt.prototype.resetPosition=function(){},mt.prototype.needsContentAttribute=!0;function cv(n,i){var a=ef(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Ip(a,l,i.line),g=Ue(l,n.doc.direction),m="left";if(g){var w=or(g,i.ch);m=w%2?"right":"left"}var _=qp(u.map,i.ch,m);return _.offset=_.collapse=="right"?_.end:_.start,_}function A_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function rs(n,i){return i&&(n.bad=!0),n}function M_(n,i,a,l,u){var g="",m=!1,w=n.doc.lineSeparator(),_=!1;function S(U){return function(ee){return ee.id==U}}function $(){m&&(g+=w,_&&(g+=w),m=_=!1)}function R(U){U&&($(),g+=U)}function G(U){if(U.nodeType==1){var ee=U.getAttribute("cm-text");if(ee){R(ee);return}var fe=U.getAttribute("cm-marker"),ge;if(fe){var we=n.findMarks(Q(l,0),Q(u+1,0),S(+fe));we.length&&(ge=we[0].find(0))&&R(Br(n.doc,ge.from,ge.to).join(w));return}if(U.getAttribute("contenteditable")=="false")return;var ke=/^(pre|div|p|li|table|br)$/i.test(U.nodeName);if(!/^br$/i.test(U.nodeName)&&U.textContent.length==0)return;ke&&$();for(var xe=0;xe<U.childNodes.length;xe++)G(U.childNodes[xe]);/^(pre|p)$/i.test(U.nodeName)&&(_=!0),ke&&(m=!0)}else U.nodeType==3&&R(U.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;G(i),i!=a;)i=i.nextSibling,_=!1;return g}function ja(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return rs(n.clipPos(Q(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return N_(g,i,a)}}function N_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return rs(Q(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ue(n.rest):n.line;return rs(Q(T(g),g.text.length),u)}var m=i.nodeType==3?i:null,w=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,S=_.maps;function $(ge,we,ke){for(var xe=-1;xe<(S?S.length:0);xe++)for(var Le=xe<0?_.map:S[xe],He=0;He<Le.length;He+=3){var Re=Le[He+2];if(Re==ge||Re==we){var Je=T(xe<0?n.line:n.rest[xe]),wt=Le[He]+ke;return(ke<0||Re!=ge)&&(wt=Le[He+(ke?1:0)]),Q(Je,wt)}}}var R=$(m,w,a);if(R)return rs(R,u);for(var G=w.nextSibling,U=m?m.nodeValue.length-a:0;G;G=G.nextSibling){if(R=$(G,G.firstChild,0),R)return rs(Q(R.line,R.ch-U),u);U+=G.textContent.length}for(var ee=w.previousSibling,fe=a;ee;ee=ee.previousSibling){if(R=$(ee,ee.firstChild,-1),R)return rs(Q(R.line,R.ch+fe),u);fe+=ee.textContent.length}}var Nt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new Ne,this.hasSelection=!1,this.composing=null,this.resetting=!1};Nt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),L&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(m){Lt(l,m)||iv(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(m){if(!Lt(l,m)){if(l.somethingSelected())Va({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=sv(l);Va({lineWise:!0,text:w.text}),m.type=="cut"?l.setSelections(w.ranges,null,F):(a.prevInput="",u.value=w.text.join(`
44
- `),Ve(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(m){if(!(Vr(n,m)||Lt(l,m))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=m.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(m){Vr(n,m)||tn(m)}),Fe(u,"compositionstart",function(){var m=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:m,range:l.markText(m,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Nt.prototype.createField=function(n){this.wrapper=lv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Pf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Nt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Nt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Jp(n);if(n.options.moveInputWithCursor){var u=dr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+m.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+m.left-g.left))}return l},Nt.prototype.showSelection=function(n){var i=this.cm,a=i.display;I(a.cursorDiv,n.cursors),I(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Nt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ve(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Nt.prototype.getField=function(){return this.textarea},Nt.prototype.supportsTouch=function(){return!1},Nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||me(Ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Nt.prototype.blur=function(){this.textarea.blur()},Nt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Nt.prototype.receivedFocus=function(){this.slowPoll()},Nt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Nt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Nt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||pi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||H&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,w=Math.min(l.length,u.length);m<w&&l.charCodeAt(m)==u.charCodeAt(m);)++m;return An(i,function(){Of(i,u.slice(m),l.length-m,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
45
- `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Nt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=so(a,n),m=l.scroller.scrollTop;if(!g||E)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Ut(a,nn)(a.doc,bi(g),F);var _=u.style.cssText,S=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
46
- top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
47
- z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
48
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var R;v&&(R=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,R),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=U,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function G(){if(u.selectionStart!=null){var fe=a.somethingSelected(),ge="​"+(fe?u.value:"");u.value="⇚",u.value=ge,i.prevInput=fe?"":"​",u.selectionStart=1,u.selectionEnd=ge.length,l.selForContextMenu=a.doc.sel}}function U(){if(i.contextMenuPending==U&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&G();var fe=0,ge=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Ut(a,Lg)(a):fe++<10?l.detectingSelectAll=setTimeout(ge,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ge,200)}}if(h&&p>=9&&G(),j){di(n);var ee=function(){en(window,"mouseup",ee),setTimeout(U,20)};Fe(window,"mouseup",ee)}else setTimeout(U,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function $_(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=me(Ze(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var m=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=m}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=St(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function O_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Hx,n.Doc=mn,n.splitLines=Kn,n.countColumn=de,n.findColumn=se,n.isWordChar=We,n.Pass=O,n.signal=Et,n.Line=qo,n.changeEnd=wi,n.scrollbarModel=ig,n.Pos=Q,n.cmpPos=_e,n.modes=Ro,n.mimeModes=cr,n.resolveMode=Do,n.getMode=zo,n.modeExtensions=gi,n.extendMode=Io,n.copyState=kr,n.startState=Fo,n.innerMode=Ps,n.commands=il,n.keyMap=Gr,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=es,n.normalizeKeyMap=a_,n.StringStream=At,n.SharedTextMarker=tl,n.TextMarker=_i,n.LineWidget=el,n.e_preventDefault=tn,n.e_stopPropagation=Oo,n.e_stop=di,n.addClass=Me,n.contains=re,n.rmClass=K,n.keyNames=Si}k_(St),L_(St);var P_="iter insert remove copy getEditor constructor".split(" ");for(var Ga in mn.prototype)mn.prototype.hasOwnProperty(Ga)&&Ee(P_,Ga)<0&&(St.prototype[Ga]=function(n){return function(){return n.apply(this.doc,arguments)}}(mn.prototype[Ga]));return sr(mn),St.inputStyles={textarea:Nt,contenteditable:mt},St.defineMode=function(n){!St.defaults.mode&&n!="null"&&(St.defaults.mode=n),ur.apply(this,arguments)},St.defineMIME=ro,St.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),St.defineMIME("text/plain","null"),St.defineExtension=function(n,i){St.prototype[n]=i},St.defineDocExtension=function(n,i){mn.prototype[n]=i},St.fromTextArea=$_,O_(St),St.version="5.65.16",St})})(Vw);var Ns=Vw.exports;const Yue=Bb(Ns);var Zue={exports:{}};(function(e,t){(function(r){r(Ns)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function T(Bt){return{type:Bt,style:"keyword"}}var P=T("keyword a"),oe=T("keyword b"),pe=T("keyword c"),Q=T("keyword d"),_e=T("operator"),ut={type:"atom",style:"atom"};return{if:T("if"),while:P,with:P,else:oe,do:oe,try:oe,finally:oe,return:Q,break:Q,continue:Q,new:T("new"),delete:pe,void:pe,throw:pe,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:_e,typeof:_e,instanceof:_e,true:ut,false:ut,null:ut,undefined:ut,NaN:ut,Infinity:ut,this:T("this"),class:T("class"),super:T("atom"),yield:pe,export:T("export"),import:T("import"),extends:pe,await:pe}}(),x=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function C(T){for(var P=!1,oe,pe=!1;(oe=T.next())!=null;){if(!P){if(oe=="/"&&!pe)return;oe=="["?pe=!0:pe&&oe=="]"&&(pe=!1)}P=!P&&oe=="\\"}}var M,N;function L(T,P,oe){return M=T,N=oe,P}function D(T,P){var oe=T.next();if(oe=='"'||oe=="'")return P.tokenize=A(oe),P.tokenize(T,P);if(oe=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(oe=="."&&T.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(oe))return L(oe);if(oe=="="&&T.eat(">"))return L("=>","operator");if(oe=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(oe))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(oe=="/")return T.eat("*")?(P.tokenize=H,H(T,P)):T.eat("/")?(T.skipToEnd(),L("comment","comment")):Fn(T,P,1)?(C(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(T.eat("="),L("operator","operator",T.current()));if(oe=="`")return P.tokenize=z,z(T,P);if(oe=="#"&&T.peek()=="!")return T.skipToEnd(),L("meta","meta");if(oe=="#"&&T.eatWhile(y))return L("variable","property");if(oe=="<"&&T.match("!--")||oe=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),L("comment","comment");if(x.test(oe))return(oe!=">"||!P.lexical||P.lexical.type!=">")&&(T.eat("=")?(oe=="!"||oe=="=")&&T.eat("="):/[<>*+\-|&?]/.test(oe)&&(T.eat(oe),oe==">"&&T.eat(oe))),oe=="?"&&T.eat(".")?L("."):L("operator","operator",T.current());if(y.test(oe)){T.eatWhile(y);var pe=T.current();if(P.lastType!="."){if(b.propertyIsEnumerable(pe)){var Q=b[pe];return L(Q.type,Q.style,pe)}if(pe=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",pe)}return L("variable","variable",pe)}}function A(T){return function(P,oe){var pe=!1,Q;if(d&&P.peek()=="@"&&P.match(E))return oe.tokenize=D,L("jsonld-keyword","meta");for(;(Q=P.next())!=null&&!(Q==T&&!pe);)pe=!pe&&Q=="\\";return pe||(oe.tokenize=D),L("string","string")}}function H(T,P){for(var oe=!1,pe;pe=T.next();){if(pe=="/"&&oe){P.tokenize=D;break}oe=pe=="*"}return L("comment","comment")}function z(T,P){for(var oe=!1,pe;(pe=T.next())!=null;){if(!oe&&(pe=="`"||pe=="$"&&T.eat("{"))){P.tokenize=D;break}oe=!oe&&pe=="\\"}return L("quasi","string-2",T.current())}var J="([{}])";function ie(T,P){P.fatArrowAt&&(P.fatArrowAt=null);var oe=T.string.indexOf("=>",T.start);if(!(oe<0)){if(v){var pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,oe));pe&&(oe=pe.index)}for(var Q=0,_e=!1,ut=oe-1;ut>=0;--ut){var Bt=T.string.charAt(ut),gn=J.indexOf(Bt);if(gn>=0&&gn<3){if(!Q){++ut;break}if(--Q==0){Bt=="("&&(_e=!0);break}}else if(gn>=3&&gn<6)++Q;else if(y.test(Bt))_e=!0;else if(/["'\/`]/.test(Bt))for(;;--ut){if(ut==0)return;var Ho=T.string.charAt(ut-1);if(Ho==Bt&&T.string.charAt(ut-2)!="\\"){ut--;break}}else if(_e&&!Q){++ut;break}}_e&&!Q&&(P.fatArrowAt=ut)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(T,P,oe,pe,Q,_e){this.indented=T,this.column=P,this.type=oe,this.prev=Q,this.info=_e,pe!=null&&(this.align=pe)}function te(T,P){if(!p)return!1;for(var oe=T.localVars;oe;oe=oe.next)if(oe.name==P)return!0;for(var pe=T.context;pe;pe=pe.prev)for(var oe=pe.vars;oe;oe=oe.next)if(oe.name==P)return!0}function K(T,P,oe,pe,Q){var _e=T.cc;for(V.state=T,V.stream=Q,V.marked=null,V.cc=_e,V.style=P,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ut=_e.length?_e.pop():h?Ee:de;if(ut(oe,pe)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return V.marked?V.marked:oe=="variable"&&te(T,pe)?"variable-2":P}}}var V={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)V.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function q(T,P){for(var oe=P;oe;oe=oe.next)if(oe.name==T)return!0;return!1}function W(T){var P=V.state;if(V.marked="def",!!p){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var oe=re(T,P.context);if(oe!=null){P.context=oe;return}}else if(!q(T,P.localVars)){P.localVars=new Be(T,P.localVars);return}}s.globalVars&&!q(T,P.globalVars)&&(P.globalVars=new Be(T,P.globalVars))}}function re(T,P){if(P)if(P.block){var oe=re(T,P.prev);return oe?oe==P.prev?P:new Me(oe,P.vars,!0):null}else return q(T,P.vars)?P:new Me(P.prev,new Be(T,P.vars),!1);else return null}function me(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Me(T,P,oe){this.prev=T,this.vars=P,this.block=oe}function Be(T,P){this.name=T,this.next=P}var Ve=new Be("this",new Be("arguments",null));function it(){V.state.context=new Me(V.state.context,V.state.localVars,!1),V.state.localVars=Ve}function nt(){V.state.context=new Me(V.state.context,V.state.localVars,!0),V.state.localVars=null}it.lex=nt.lex=!0;function Ze(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}Ze.lex=!0;function Te(T,P){var oe=function(){var pe=V.state,Q=pe.indented;if(pe.lexical.type=="stat")Q=pe.lexical.indented;else for(var _e=pe.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;pe.lexical=new j(Q,V.stream.column(),T,null,pe.lexical,P)};return oe.lex=!0,oe}function X(){var T=V.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}X.lex=!0;function ae(T){function P(oe){return oe==T?k():T==";"||oe=="}"||oe==")"||oe=="]"?I():k(P)}return P}function de(T,P){return T=="var"?k(Te("vardef",P),Oo,ae(";"),X):T=="keyword a"?k(Te("form"),O,de,X):T=="keyword b"?k(Te("form"),de,X):T=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Te("stat"),Z,ae(";"),X):T=="debugger"?k(ae(";")):T=="{"?k(Te("}"),nt,Jt,X,Ze):T==";"?k():T=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==X&&V.state.cc.pop()(),k(Te("form"),O,de,X,Po)):T=="function"?k(Kn):T=="for"?k(Te("form"),nt,va,de,Ze,X):T=="class"||v&&P=="interface"?(V.marked="keyword",k(Te("form",T=="class"?T:P),Ro,X)):T=="variable"?v&&P=="declare"?(V.marked="keyword",k(de)):v&&(P=="module"||P=="enum"||P=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",P=="enum"?k(Oe):P=="type"?k(ma,ae("operator"),Ue,ae(";")):k(Te("form"),pn,ae("{"),Te("}"),Jt,X,X)):v&&P=="namespace"?(V.marked="keyword",k(Te("form"),Ee,de,X)):v&&P=="abstract"?(V.marked="keyword",k(de)):k(Te("stat"),De):T=="switch"?k(Te("form"),O,ae("{"),Te("}","switch"),nt,Jt,X,X,Ze):T=="case"?k(Ee,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Te("form"),it,Ne,de,X,Ze):T=="export"?k(Te("stat"),Do,X):T=="import"?k(Te("stat"),gi,X):T=="async"?k(de):P=="@"?k(Ee,de):I(Te("stat"),Ee,ae(";"),X)}function Ne(T){if(T=="(")return k(ar,ae(")"))}function Ee(T,P){return F(T,P,!1)}function Ye(T,P){return F(T,P,!0)}function O(T){return T!="("?I():k(Te(")"),Z,ae(")"),X)}function F(T,P,oe){if(V.state.fatArrowAt==V.stream.start){var pe=oe?ye:ue;if(T=="(")return k(it,Te(")"),tt(ar,")"),X,ae("=>"),pe,Ze);if(T=="variable")return I(it,pn,ae("=>"),pe,Ze)}var Q=oe?se:ce;return ne.hasOwnProperty(T)?k(Q):T=="function"?k(Kn,Q):T=="class"||v&&P=="interface"?(V.marked="keyword",k(Te("form"),Wu,X)):T=="keyword c"||T=="async"?k(oe?Ye:Ee):T=="("?k(Te(")"),Z,ae(")"),X,Q):T=="operator"||T=="spread"?k(oe?Ye:Ee):T=="["?k(Te("]"),At,X,Q):T=="{"?Ft(Ge,"}",null,Q):T=="quasi"?I(ve,Q):T=="new"?k(he(oe)):k()}function Z(T){return T.match(/[;\}\)\],]/)?I():I(Ee)}function ce(T,P){return T==","?k(Z):se(T,P,!1)}function se(T,P,oe){var pe=oe==!1?ce:se,Q=oe==!1?Ee:Ye;if(T=="=>")return k(it,oe?ye:ue,Ze);if(T=="operator")return/\+\+|--/.test(P)||v&&P=="!"?k(pe):v&&P=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Te(">"),tt(Ue,">"),X,pe):P=="?"?k(Ee,ae(":"),Q):k(Q);if(T=="quasi")return I(ve,pe);if(T!=";"){if(T=="(")return Ft(Ye,")","call",pe);if(T==".")return k(We,pe);if(T=="[")return k(Te("]"),Z,ae("]"),X,pe);if(v&&P=="as")return V.marked="keyword",k(Ue,pe);if(T=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(Q)}}function ve(T,P){return T!="quasi"?I():P.slice(P.length-2)!="${"?k(ve):k(Z,Se)}function Se(T){if(T=="}")return V.marked="string-2",V.state.tokenize=z,k(ve)}function ue(T){return ie(V.stream,V.state),I(T=="{"?de:Ee)}function ye(T){return ie(V.stream,V.state),I(T=="{"?de:Ye)}function he(T){return function(P){return P=="."?k(T?Ie:Ae):P=="variable"&&v?k(Ln,T?se:ce):I(T?Ye:Ee)}}function Ae(T,P){if(P=="target")return V.marked="keyword",k(ce)}function Ie(T,P){if(P=="target")return V.marked="keyword",k(se)}function De(T){return T==":"?k(X,de):I(ce,ae(";"),X)}function We(T){if(T=="variable")return V.marked="property",k()}function Ge(T,P){if(T=="async")return V.marked="property",k(Ge);if(T=="variable"||V.style=="keyword"){if(V.marked="property",P=="get"||P=="set")return k(vt);var oe;return v&&V.state.fatArrowAt==V.stream.start&&(oe=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+oe[0].length),k(et)}else{if(T=="number"||T=="string")return V.marked=d?"property":V.style+" property",k(et);if(T=="jsonld-keyword")return k(et);if(v&&me(P))return V.marked="keyword",k(Ge);if(T=="[")return k(Ee,ir,ae("]"),et);if(T=="spread")return k(Ye,et);if(P=="*")return V.marked="keyword",k(Ge);if(T==":")return I(et)}}function vt(T){return T!="variable"?I(et):(V.marked="property",k(Kn))}function et(T){if(T==":")return k(Ye);if(T=="(")return I(Kn)}function tt(T,P,oe){function pe(Q,_e){if(oe?oe.indexOf(Q)>-1:Q==","){var ut=V.state.lexical;return ut.info=="call"&&(ut.pos=(ut.pos||0)+1),k(function(Bt,gn){return Bt==P||gn==P?I():I(T)},pe)}return Q==P||_e==P?k():oe&&oe.indexOf(";")>-1?I(T):k(ae(P))}return function(Q,_e){return Q==P||_e==P?k():I(T,pe)}}function Ft(T,P,oe){for(var pe=3;pe<arguments.length;pe++)V.cc.push(arguments[pe]);return k(Te(P,oe),tt(T,P),X)}function Jt(T){return T=="}"?k():I(de,Jt)}function ir(T,P){if(v){if(T==":")return k(Ue);if(P=="?")return k(ir)}}function In(T,P){if(v&&(T==":"||P=="in"))return k(Ue)}function or(T){if(v&&T==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,Qt,Ue):k(Ue)}function Qt(T,P){if(P=="is")return V.marked="keyword",k()}function Ue(T,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return V.marked="keyword",k(P=="typeof"?Ye:Ue);if(T=="variable"||P=="void")return V.marked="type",k(Gn);if(P=="|"||P=="&")return k(Ue);if(T=="string"||T=="number"||T=="atom")return k(Gn);if(T=="[")return k(Te("]"),tt(Ue,"]",","),X,Gn);if(T=="{")return k(Te("}"),Fe,X,Gn);if(T=="(")return k(tt(Lt,")"),no,Gn);if(T=="<")return k(tt(Ue,">"),Ue);if(T=="quasi")return I(en,Gn)}function no(T){if(T=="=>")return k(Ue)}function Fe(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(Fe):I(qr,Fe)}function qr(T,P){if(T=="variable"||V.style=="keyword")return V.marked="property",k(qr);if(P=="?"||T=="number"||T=="string")return k(qr);if(T==":")return k(Ue);if(T=="[")return k(ae("variable"),In,ae("]"),qr);if(T=="(")return I(pi,qr);if(!T.match(/[;\}\)\],]/))return k()}function en(T,P){return T!="quasi"?I():P.slice(P.length-2)!="${"?k(en):k(Ue,Et)}function Et(T){if(T=="}")return V.marked="string-2",V.state.tokenize=z,k(en)}function Lt(T,P){return T=="variable"&&V.stream.match(/^\s*[?:]/,!1)||P=="?"?k(Lt):T==":"?k(Ue):T=="spread"?k(Lt):I(Ue)}function Gn(T,P){if(P=="<")return k(Te(">"),tt(Ue,">"),X,Gn);if(P=="|"||T=="."||P=="&")return k(Ue);if(T=="[")return k(Ue,ae("]"),Gn);if(P=="extends"||P=="implements")return V.marked="keyword",k(Ue);if(P=="?")return k(Ue,ae(":"),Ue)}function Ln(T,P){if(P=="<")return k(Te(">"),tt(Ue,">"),X,Gn)}function sr(){return I(Ue,tn)}function tn(T,P){if(P=="=")return k(Ue)}function Oo(T,P){return P=="enum"?(V.marked="keyword",k(Oe)):I(pn,ir,lr,Bu)}function pn(T,P){if(v&&me(P))return V.marked="keyword",k(pn);if(T=="variable")return W(P),k();if(T=="spread")return k(pn);if(T=="[")return Ft($s,"]");if(T=="{")return Ft(di,"}")}function di(T,P){return T=="variable"&&!V.stream.match(/^\s*:/,!1)?(W(P),k(lr)):(T=="variable"&&(V.marked="property"),T=="spread"?k(pn):T=="}"?I():T=="["?k(Ee,ae("]"),ae(":"),di):k(ae(":"),pn,lr))}function $s(){return I(pn,lr)}function lr(T,P){if(P=="=")return k(Ye)}function Bu(T){if(T==",")return k(Oo)}function Po(T,P){if(T=="keyword b"&&P=="else")return k(Te("form","else"),de,X)}function va(T,P){if(P=="await")return k(va);if(T=="(")return k(Te(")"),Os,X)}function Os(T){return T=="var"?k(Oo,hi):T=="variable"?k(hi):I(hi)}function hi(T,P){return T==")"?k():T==";"?k(hi):P=="in"||P=="of"?(V.marked="keyword",k(Ee,hi)):I(Ee,hi)}function Kn(T,P){if(P=="*")return V.marked="keyword",k(Kn);if(T=="variable")return W(P),k(Kn);if(T=="(")return k(it,Te(")"),tt(ar,")"),X,or,de,Ze);if(v&&P=="<")return k(Te(">"),tt(sr,">"),X,Kn)}function pi(T,P){if(P=="*")return V.marked="keyword",k(pi);if(T=="variable")return W(P),k(pi);if(T=="(")return k(it,Te(")"),tt(ar,")"),X,or,Ze);if(v&&P=="<")return k(Te(">"),tt(sr,">"),X,pi)}function ma(T,P){if(T=="keyword"||T=="variable")return V.marked="type",k(ma);if(P=="<")return k(Te(">"),tt(sr,">"),X)}function ar(T,P){return P=="@"&&k(Ee,ar),T=="spread"?k(ar):v&&me(P)?(V.marked="keyword",k(ar)):v&&T=="this"?k(ir,lr):I(pn,ir,lr)}function Wu(T,P){return T=="variable"?Ro(T,P):cr(T,P)}function Ro(T,P){if(T=="variable")return W(P),k(cr)}function cr(T,P){if(P=="<")return k(Te(">"),tt(sr,">"),X,cr);if(P=="extends"||P=="implements"||v&&T==",")return P=="implements"&&(V.marked="keyword"),k(v?Ue:Ee,cr);if(T=="{")return k(Te("}"),ur,X)}function ur(T,P){if(T=="async"||T=="variable"&&(P=="static"||P=="get"||P=="set"||v&&me(P))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(ur);if(T=="variable"||V.style=="keyword")return V.marked="property",k(ro,ur);if(T=="number"||T=="string")return k(ro,ur);if(T=="[")return k(Ee,ir,ae("]"),ro,ur);if(P=="*")return V.marked="keyword",k(ur);if(v&&T=="(")return I(pi,ur);if(T==";"||T==",")return k(ur);if(T=="}")return k();if(P=="@")return k(Ee,ur)}function ro(T,P){if(P=="!"||P=="?")return k(ro);if(T==":")return k(Ue,lr);if(P=="=")return k(Ye);var oe=V.state.lexical.prev,pe=oe&&oe.info=="interface";return I(pe?pi:Kn)}function Do(T,P){return P=="*"?(V.marked="keyword",k(Fo,ae(";"))):P=="default"?(V.marked="keyword",k(Ee,ae(";"))):T=="{"?k(tt(zo,"}"),Fo,ae(";")):I(de)}function zo(T,P){if(P=="as")return V.marked="keyword",k(ae("variable"));if(T=="variable")return I(Ye,zo)}function gi(T){return T=="string"?k():T=="("?I(Ee):T=="."?I(ce):I(Io,kr,Fo)}function Io(T,P){return T=="{"?Ft(Io,"}"):(T=="variable"&&W(P),P=="*"&&(V.marked="keyword"),k(Ps))}function kr(T){if(T==",")return k(Io,kr)}function Ps(T,P){if(P=="as")return V.marked="keyword",k(Io)}function Fo(T,P){if(P=="from")return V.marked="keyword",k(Ee)}function At(T){return T=="]"?k():I(tt(Ye,"]"))}function Oe(){return I(Te("form"),pn,ae("{"),Te("}"),tt(Br,"}"),X,X)}function Br(){return I(pn,lr)}function Rs(T,P){return T.lastType=="operator"||T.lastType==","||x.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function Fn(T,P,oe){return P.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(P.lastType)||P.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(oe||0)))}return{startState:function(T){var P={tokenize:D,lastType:"sof",cc:[],lexical:new j((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Me(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(P.globalVars=s.globalVars),P},token:function(T,P){if(T.sol()&&(P.lexical.hasOwnProperty("align")||(P.lexical.align=!1),P.indented=T.indentation(),ie(T,P)),P.tokenize!=H&&T.eatSpace())return null;var oe=P.tokenize(T,P);return M=="comment"?oe:(P.lastType=M=="operator"&&(N=="++"||N=="--")?"incdec":M,K(P,oe,M,N,T))},indent:function(T,P){if(T.tokenize==H||T.tokenize==z)return r.Pass;if(T.tokenize!=D)return 0;var oe=P&&P.charAt(0),pe=T.lexical,Q;if(!/^\s*else\b/.test(P))for(var _e=T.cc.length-1;_e>=0;--_e){var ut=T.cc[_e];if(ut==X)pe=pe.prev;else if(ut!=Po&&ut!=Ze)break}for(;(pe.type=="stat"||pe.type=="form")&&(oe=="}"||(Q=T.cc[T.cc.length-1])&&(Q==ce||Q==se)&&!/^[,\.=+\-*:?[\(]/.test(P));)pe=pe.prev;f&&pe.type==")"&&pe.prev.type=="stat"&&(pe=pe.prev);var Bt=pe.type,gn=oe==Bt;return Bt=="vardef"?pe.indented+(T.lastType=="operator"||T.lastType==","?pe.info.length+1:0):Bt=="form"&&oe=="{"?pe.indented:Bt=="form"?pe.indented+c:Bt=="stat"?pe.indented+(Rs(T,P)?f||c:0):pe.info=="switch"&&!gn&&s.doubleIndentSwitch!=!1?pe.indented+(/^(?:case|default)\b/.test(P)?c:2*c):pe.align?pe.column+(gn?0:1):pe.indented+(gn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Fn,skipExpression:function(T){K(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Jue=Zue.exports,Que={exports:{}};(function(e,t){(function(r){r(Ns)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var y,b;function x(k,q){function W(Me){return q.tokenize=Me,Me(k,q)}var re=k.next();if(re=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(M("atom","]]>")):null:k.match("--")?W(M("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(N(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),q.tokenize=M("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",q.tokenize=E,"tag bracket");if(re=="&"){var me;return k.eat("#")?k.eat("x")?me=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):me=k.eatWhile(/[\d]/)&&k.eat(";"):me=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),me?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function E(k,q){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return q.tokenize=x,y=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return y="equals",null;if(W=="<"){q.tokenize=x,q.state=z,q.tagName=q.tagStart=null;var re=q.tokenize(k,q);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(W)?(q.tokenize=C(W),q.stringStartCol=k.column(),q.tokenize(k,q)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function C(k){var q=function(W,re){for(;!W.eol();)if(W.next()==k){re.tokenize=E;break}return"string"};return q.isInAttribute=!0,q}function M(k,q){return function(W,re){for(;!W.eol();){if(W.match(q)){re.tokenize=x;break}W.next()}return k}}function N(k){return function(q,W){for(var re;(re=q.next())!=null;){if(re=="<")return W.tokenize=N(k+1),W.tokenize(q,W);if(re==">")if(k==1){W.tokenize=x;break}else return W.tokenize=N(k-1),W.tokenize(q,W)}return"meta"}}function L(k){return k&&k.toLowerCase()}function D(k,q,W){this.prev=k.context,this.tagName=q||"",this.indent=k.indented,this.startOfLine=W,(h.doNotIndent.hasOwnProperty(q)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function A(k){k.context&&(k.context=k.context.prev)}function H(k,q){for(var W;;){if(!k.context||(W=k.context.tagName,!h.contextGrabbers.hasOwnProperty(L(W))||!h.contextGrabbers[L(W)].hasOwnProperty(L(q))))return;A(k)}}function z(k,q,W){return k=="openTag"?(W.tagStart=q.column(),J):k=="closeTag"?ie:z}function J(k,q,W){return k=="word"?(W.tagName=q.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,q,W)):(b="error",J)}function ie(k,q,W){if(k=="word"){var re=q.current();return W.context&&W.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(L(W.context.tagName))&&A(W),W.context&&W.context.tagName==re||h.matchClosing===!1?(b="tag",ne):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ne(k,q,W)):(b="error",j)}function ne(k,q,W){return k!="endTag"?(b="error",ne):(A(W),z)}function j(k,q,W){return b="error",ne(k,q,W)}function te(k,q,W){if(k=="word")return b="attribute",K;if(k=="endTag"||k=="selfcloseTag"){var re=W.tagName,me=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(re))?H(W,re):(H(W,re),W.context=new D(W,re,me==W.indented)),z}return b="error",te}function K(k,q,W){return k=="equals"?V:(h.allowMissing||(b="error"),te(k,q,W))}function V(k,q,W){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,q,W))}function I(k,q,W){return k=="string"?I:te(k,q,W)}return{startState:function(k){var q={tokenize:x,state:z,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(q.baseIndent=k),q},token:function(k,q){if(!q.tagName&&k.sol()&&(q.indented=k.indentation()),k.eatSpace())return null;y=null;var W=q.tokenize(k,q);return(W||y)&&W!="comment"&&(b=null,q.state=q.state(y||W,k,q),b&&(W=b=="error"?W+" error":b)),W},indent:function(k,q,W){var re=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(re&&re.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=x)return W?W.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(q))return 0;var me=q&&/^<(\/)?([\w_:\.-]*)/.exec(q);if(me&&me[1])for(;re;)if(re.tagName==me[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(re.tagName)))re=re.prev;else break;else if(me)for(;re;){var Me=h.contextGrabbers[L(re.tagName)];if(Me&&Me.hasOwnProperty(L(me[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==V&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var q=[],W=k.context;W;W=W.prev)q.push(W.tagName);return q.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var efe=Que.exports;(function(e,t){(function(r){r(Ns,efe,Jue)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var E=x.tagName;x.tagName=null;var C=d.indent(x,"","");return x.tagName=E,C}function v(x,E){return E.context.mode==d?y(x,E,E.context):b(x,E,E.context)}function y(x,E,C){if(C.depth==2)return x.match(/^.*?\*\//)?C.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(C.state);var M=p(C.state),N=C.state.context;if(N&&x.match(/^[^>]*>\s*$/,!1)){for(;N.prev&&!N.startOfLine;)N=N.prev;N.startOfLine?M-=c.indentUnit:C.prev.state.lexical&&(M=C.prev.state.lexical.indented)}else C.depth==1&&(M+=c.indentUnit);return E.context=new o(r.startState(h,M),h,0,E.context),null}if(C.depth==1){if(x.peek()=="<")return d.skipAttribute(C.state),E.context=new o(r.startState(d,p(C.state)),d,0,E.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return C.depth=2,v(x,E)}var L=d.token(x,C.state),D=x.current(),A;return/\btag\b/.test(L)?/>$/.test(D)?C.state.context?C.depth=0:E.context=E.context.prev:/^</.test(D)&&(C.depth=1):!L&&(A=D.indexOf("{"))>-1&&x.backUp(D.length-A),L}function b(x,E,C){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,C.state))return E.context=new o(r.startState(d,h.indent(C.state,"","")),d,0,E.context),h.skipExpression(C.state),null;var M=h.token(x,C.state);if(!M&&C.depth!=null){var N=x.current();N=="{"?C.depth++:N=="}"&&--C.depth==0&&(E.context=E.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,E,C){return x.context.mode.indent(x.context.state,E,C)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(Ns)})(function(r){r.defineOption("placeholder","",function(p,v,y){var b=y&&y!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var y=p.getInputField();v=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),y=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(Ns)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var b=p.orientation=="horizontal"?"pageX":"pageY",x=y[b],E=p.pos;function C(){r.off(document,"mousemove",M),r.off(document,"mouseup",C)}function M(N){if(N.which!=1)return C();p.moveTo(E+(N[b]-x)*(p.total/p.size))}r.on(document,"mousemove",M),r.on(document,"mouseup",C)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=y.clientX<b.left?-1:y.clientX>b.right?1:0:x=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const Yn=Fr();function tfe(e,t,r={}){const o=Yue.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),qt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),bu(()=>{Yn.value=void 0}),mh(o)}async function nfe(e){var t;Ww(e,((t=e.location)==null?void 0:t.line)??0)}const rfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},jw=gt({__name:"CodeMirrorContainer",props:Rc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Rc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Ah(e,"modelValue"),s=tk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=je();return Ms(async()=>{const d=tfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Yn.value=d,setTimeout(()=>Yn.value.refresh(),100)}),(d,h)=>(le(),be("div",rfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),ife=gt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=je(""),c=Fr(void 0),f=je(!1),d=je(!0);qt(()=>r.file,async()=>{var A;d.value=!0;try{if(!r.file||!((A=r.file)!=null&&A.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await yt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),qt(()=>[d.value,r.file,Dd.value],([A,H,z])=>{A||(z!=null?ln(()=>{var ie;const J={line:z??0,ch:0};(ie=Yn.value)==null||ie.scrollIntoView(J,100),ln(()=>{var ne,j;(ne=Yn.value)==null||ne.focus(),(j=Yn.value)==null||j.setCursor(J)})}):ln(()=>{var J;(J=Yn.value)==null||J.focus()}))},{flush:"post"});const h=$e(()=>{var A,H;return((H=(A=r.file)==null?void 0:A.filepath)==null?void 0:H.split(/\./g).pop())||"js"}),p=je(),v=$e(()=>{var A;return(A=p.value)==null?void 0:A.cm}),y=$e(()=>{var A;return((A=r.file)==null?void 0:A.tasks.filter(H=>{var z;return((z=H.result)==null?void 0:z.state)==="fail"}))||[]}),b=[],x=[],E=[],C=je(!1);function M(){E.forEach(([A,H,z])=>{A.removeEventListener("click",H),z()}),E.length=0}kw(p,()=>{var A;(A=Yn.value)==null||A.refresh()});function N(){f.value=c.value!==Yn.value.getValue()}qt(f,A=>{o("draft",A)},{immediate:!0});function L(A){const H=((A==null?void 0:A.stacks)||[]).filter(te=>{var K;return te.file&&te.file===((K=r.file)==null?void 0:K.filepath)}),z=H==null?void 0:H[0];if(!z)return;const J=document.createElement("div");J.className="op80 flex gap-x-2 items-center";const ie=document.createElement("pre");ie.className="c-red-600 dark:c-red-400",ie.textContent=`${" ".repeat(z.column)}^ ${(A==null?void 0:A.nameStr)||A.name}: ${(A==null?void 0:A.message)||""}`,J.appendChild(ie);const ne=document.createElement("span");ne.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ne.tabIndex=0,ne.ariaLabel="Open in Editor",Lb(ne,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await fw(z.file,z.line,z.column)};J.appendChild(ne),E.push([ne,j,()=>zh(ne)]),x.push(Yn.value.addLineClass(z.line-1,"wrap","bg-red-500/10")),b.push(Yn.value.addLineWidget(z.line-1,J))}qt([v,y],([A])=>{if(!A){M();return}setTimeout(()=>{M(),b.forEach(H=>H.clear()),x.forEach(H=>{var z;return(z=Yn.value)==null?void 0:z.removeLineClass(H,"wrap")}),b.length=0,x.length=0,A.on("changes",N),y.value.forEach(H=>{var z,J;(J=(z=H.result)==null?void 0:z.errors)==null||J.forEach(L)}),C.value||A.clearHistory()},100)},{flush:"post"});async function D(A){C.value=!0,await yt.rpc.saveTestFile(r.file.filepath,A),c.value=A,f.value=!1}return(A,H)=>{const z=jw;return le(),ot(z,ii({ref_key:"editor",ref:p,modelValue:B(s),"onUpdate:modelValue":H[0]||(H[0]=J=>It(s)?s.value=J:null),"h-full":""},{lineNumbers:!0,readOnly:B(Pr)},{mode:B(h),"data-testid":"code-mirror",onSave:D}),null,16,["modelValue","mode"])}}}),ofe=gt({__name:"Modal",props:Rc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ah(e,"modelValue"),r=$e(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=$e(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(le(),be("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[B(r)]]),style:Zt(t.value?{}:{transform:B(o)})},[hn(c.$slots,"default")],6)],2))}}),sfe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},lfe={"p-4":"",relative:""},afe=Y("p",null,"Module Info",-1),cfe={op50:"","font-mono":"","text-sm":""},ufe={key:0,"p-5":""},ffe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},dfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),hfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),pfe={key:0},gfe={p:"x3 y-1","bg-overlay":"",border:"base b t"},vfe=gt({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=rce(()=>yt.rpc.getTransformResult(r.projectName,r.id,!!Zl)),c=$e(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=$e(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=$e(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=$e(()=>{var p,v,y,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(y=s.value)==null?void 0:y.map)==null?void 0:b.version}});return oce("Escape",()=>{o("close")}),(p,v)=>{const y=$o,b=jw;return le(),be("div",sfe,[Y("div",lfe,[afe,Y("p",cfe,qe(p.id),1),Pe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),B(s)?(le(),be(ht,{key:1},[Y("div",ffe,[dfe,hfe,Pe(b,ii({"h-full":"","model-value":B(f),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"]),Pe(b,ii({"h-full":"","model-value":B(d),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])]),B(h).mappings!==""?(le(),be("div",pfe,[Y("div",gfe," Source map (v"+qe(B(h).version)+") ",1),Pe(b,ii({"model-value":B(h).mappings,"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])])):rt("",!0)],64)):(le(),be("div",ufe," No transform result found for this module. "))])}}});function mfe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const a0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Iu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),a0.hasOwnProperty(t)?{space:a0[t],local:e}:e}function yfe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function bfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Gw(e){var t=Iu(e);return(t.local?bfe:yfe)(t)}function wfe(){}function Zh(e){return e==null?wfe:function(){return this.querySelector(e)}}function xfe(e){typeof e!="function"&&(e=Zh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new jn(o,this._parents)}function _fe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Sfe(){return[]}function Kw(e){return e==null?Sfe:function(){return this.querySelectorAll(e)}}function kfe(e){return function(){return _fe(e.apply(this,arguments))}}function Tfe(e){typeof e=="function"?e=kfe(e):e=Kw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new jn(o,s)}function Xw(e){return function(){return this.matches(e)}}function Yw(e){return function(t){return t.matches(e)}}var Cfe=Array.prototype.find;function Efe(e){return function(){return Cfe.call(this.children,e)}}function Lfe(){return this.firstElementChild}function Afe(e){return this.select(e==null?Lfe:Efe(typeof e=="function"?e:Yw(e)))}var Mfe=Array.prototype.filter;function Nfe(){return Array.from(this.children)}function $fe(e){return function(){return Mfe.call(this.children,e)}}function Ofe(e){return this.selectAll(e==null?Nfe:$fe(typeof e=="function"?e:Yw(e)))}function Pfe(e){typeof e!="function"&&(e=Xw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new jn(o,this._parents)}function Zw(e){return new Array(e.length)}function Rfe(){return new jn(this._enter||this._groups.map(Zw),this._parents)}function tu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}tu.prototype={constructor:tu,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 Dfe(e){return function(){return e}}function zfe(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new tu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Ife(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<y;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new tu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Ffe(e){return e.__data__}function Hfe(e,t){if(!arguments.length)return Array.from(this,Ffe);var r=t?Ife:zfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=Dfe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],y=s[p],b=y.length,x=qfe(e.call(v,v&&v.__data__,p,o)),E=x.length,C=d[p]=new Array(E),M=f[p]=new Array(E),N=h[p]=new Array(b);r(v,y,C,M,N,x,t);for(var L=0,D=0,A,H;L<E;++L)if(A=C[L]){for(L>=D&&(D=L+1);!(H=M[D])&&++D<E;);A._next=H||null}}return f=new jn(f,o),f._enter=d,f._exit=h,f}function qfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Bfe(){return new jn(this._exit||this._groups.map(Zw),this._parents)}function Wfe(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Ufe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],y=p.length,b=d[h]=new Array(y),x,E=0;E<y;++E)(x=p[E]||v[E])&&(b[E]=x);for(;h<s;++h)d[h]=r[h];return new jn(d,this._parents)}function Vfe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function jfe(e){e||(e=Gfe);function t(y,b){return y&&b?e(y.__data__,b.__data__):!y-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new jn(s,this._parents).order()}function Gfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Xfe(){return Array.from(this)}function Yfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Zfe(){let e=0;for(const t of this)++e;return e}function Jfe(){return!this.node()}function Qfe(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function ede(e){return function(){this.removeAttribute(e)}}function tde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function nde(e,t){return function(){this.setAttribute(e,t)}}function rde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ide(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function ode(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function sde(e,t){var r=Iu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?tde:ede:typeof t=="function"?r.local?ode:ide:r.local?rde:nde)(r,t))}function Jw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function lde(e){return function(){this.style.removeProperty(e)}}function ade(e,t,r){return function(){this.style.setProperty(e,t,r)}}function cde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function ude(e,t,r){return arguments.length>1?this.each((t==null?lde:typeof t=="function"?cde:ade)(e,t,r??"")):Ls(this.node(),e)}function Ls(e,t){return e.style.getPropertyValue(t)||Jw(e).getComputedStyle(e,null).getPropertyValue(t)}function fde(e){return function(){delete this[e]}}function dde(e,t){return function(){this[e]=t}}function hde(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function pde(e,t){return arguments.length>1?this.each((t==null?fde:typeof t=="function"?hde:dde)(e,t)):this.node()[e]}function Qw(e){return e.trim().split(/^|\s+/)}function Jh(e){return e.classList||new e1(e)}function e1(e){this._node=e,this._names=Qw(e.getAttribute("class")||"")}e1.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 t1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function n1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function gde(e){return function(){t1(this,e)}}function vde(e){return function(){n1(this,e)}}function mde(e,t){return function(){(t.apply(this,arguments)?t1:n1)(this,e)}}function yde(e,t){var r=Qw(e+"");if(arguments.length<2){for(var o=Jh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?mde:t?gde:vde)(r,t))}function bde(){this.textContent=""}function wde(e){return function(){this.textContent=e}}function xde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _de(e){return arguments.length?this.each(e==null?bde:(typeof e=="function"?xde:wde)(e)):this.node().textContent}function Sde(){this.innerHTML=""}function kde(e){return function(){this.innerHTML=e}}function Tde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Cde(e){return arguments.length?this.each(e==null?Sde:(typeof e=="function"?Tde:kde)(e)):this.node().innerHTML}function Ede(){this.nextSibling&&this.parentNode.appendChild(this)}function Lde(){return this.each(Ede)}function Ade(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mde(){return this.each(Ade)}function Nde(e){var t=typeof e=="function"?e:Gw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function $de(){return null}function Ode(e,t){var r=typeof e=="function"?e:Gw(e),o=t==null?$de:typeof t=="function"?t:Zh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Pde(){var e=this.parentNode;e&&e.removeChild(this)}function Rde(){return this.each(Pde)}function Dde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ide(e){return this.select(e?zde:Dde)}function Fde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Hde(e){return function(t){e.call(this,t,this.__data__)}}function qde(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function Bde(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Wde(e,t,r){return function(){var o=this.__on,s,c=Hde(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Ude(e,t,r){var o=qde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Wde:Bde,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function r1(e,t,r){var o=Jw(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Vde(e,t){return function(){return r1(this,e,t)}}function jde(e,t){return function(){return r1(this,e,t.apply(this,arguments))}}function Gde(e,t){return this.each((typeof t=="function"?jde:Vde)(e,t))}function*Kde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var i1=[null];function jn(e,t){this._groups=e,this._parents=t}function ha(){return new jn([[document.documentElement]],i1)}function Xde(){return this}jn.prototype=ha.prototype={constructor:jn,select:xfe,selectAll:Tfe,selectChild:Afe,selectChildren:Ofe,filter:Pfe,data:Hfe,enter:Rfe,exit:Bfe,join:Wfe,merge:Ufe,selection:Xde,order:Vfe,sort:jfe,call:Kfe,nodes:Xfe,node:Yfe,size:Zfe,empty:Jfe,each:Qfe,attr:sde,style:ude,property:pde,classed:yde,text:_de,html:Cde,raise:Lde,lower:Mde,append:Nde,insert:Ode,remove:Rde,clone:Ide,datum:Fde,on:Ude,dispatch:Gde,[Symbol.iterator]:Kde};function Pn(e){return typeof e=="string"?new jn([[document.querySelector(e)]],[document.documentElement]):new jn([[e]],i1)}function Yde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ei(e,t){if(e=Yde(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class _n{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new _n(t,r)}add(t){return new _n(this.x+t.x,this.y+t.y)}subtract(t){return new _n(this.x-t.x,this.y-t.y)}multiply(t){return new _n(this.x*t,this.y*t)}divide(t){return new _n(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new _n(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new _n(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new _n(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Zde={value:()=>{}};function pa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Tc(r)}function Tc(e){this._=e}function Jde(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Tc.prototype=pa.prototype={constructor:Tc,on:function(e,t){var r=this._,o=Jde(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Qde(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=c0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=c0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Tc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Qde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function c0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Zde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const ehe={passive:!1},Jl={capture:!0,passive:!1};function id(e){e.stopImmediatePropagation()}function ms(e){e.preventDefault(),e.stopImmediatePropagation()}function o1(e){var t=e.document.documentElement,r=Pn(e).on("dragstart.drag",ms,Jl);"onselectstart"in t?r.on("selectstart.drag",ms,Jl):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function s1(e,t){var r=e.document.documentElement,o=Pn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ms,Jl),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const ac=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function the(e){return!e.ctrlKey&&!e.button}function nhe(){return this.parentNode}function rhe(e,t){return t??{x:e.x,y:e.y}}function ihe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ohe(){var e=the,t=nhe,r=rhe,o=ihe,s={},c=pa("start","drag","end"),f=0,d,h,p,v,y=0;function b(A){A.on("mousedown.drag",x).filter(o).on("touchstart.drag",M).on("touchmove.drag",N,ehe).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(A,H){if(!(v||!e.call(this,A,H))){var z=D(this,t.call(this,A,H),A,H,"mouse");z&&(Pn(A.view).on("mousemove.drag",E,Jl).on("mouseup.drag",C,Jl),o1(A.view),id(A),p=!1,d=A.clientX,h=A.clientY,z("start",A))}}function E(A){if(ms(A),!p){var H=A.clientX-d,z=A.clientY-h;p=H*H+z*z>y}s.mouse("drag",A)}function C(A){Pn(A.view).on("mousemove.drag mouseup.drag",null),s1(A.view,p),ms(A),s.mouse("end",A)}function M(A,H){if(e.call(this,A,H)){var z=A.changedTouches,J=t.call(this,A,H),ie=z.length,ne,j;for(ne=0;ne<ie;++ne)(j=D(this,J,A,H,z[ne].identifier,z[ne]))&&(id(A),j("start",A,z[ne]))}}function N(A){var H=A.changedTouches,z=H.length,J,ie;for(J=0;J<z;++J)(ie=s[H[J].identifier])&&(ms(A),ie("drag",A,H[J]))}function L(A){var H=A.changedTouches,z=H.length,J,ie;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),J=0;J<z;++J)(ie=s[H[J].identifier])&&(id(A),ie("end",A,H[J]))}function D(A,H,z,J,ie,ne){var j=c.copy(),te=ei(ne||z,H),K,V,I;if((I=r.call(A,new jd("beforestart",{sourceEvent:z,target:b,identifier:ie,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:j}),J))!=null)return K=I.x-te[0]||0,V=I.y-te[1]||0,function k(q,W,re){var me=te,Me;switch(q){case"start":s[ie]=k,Me=f++;break;case"end":delete s[ie],--f;case"drag":te=ei(re||W,H),Me=f;break}j.call(q,A,new jd(q,{sourceEvent:W,subject:I,target:b,identifier:ie,active:Me,x:te[0]+K,y:te[1]+V,dx:te[0]-me[0],dy:te[1]-me[1],dispatch:j}),J)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:ac(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:ac(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:ac(A),b):r},b.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:ac(!!A),b):o},b.on=function(){var A=c.on.apply(c,arguments);return A===c?b:A},b.clickDistance=function(A){return arguments.length?(y=(A=+A)*A,b):Math.sqrt(y)},b}function Qh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function l1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function ga(){}var Ql=.7,nu=1/Ql,ys="\\s*([+-]?\\d+)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",she=/^#([0-9a-f]{3,8})$/,lhe=new RegExp(`^rgb\\(${ys},${ys},${ys}\\)$`),ahe=new RegExp(`^rgb\\(${Rr},${Rr},${Rr}\\)$`),che=new RegExp(`^rgba\\(${ys},${ys},${ys},${ea}\\)$`),uhe=new RegExp(`^rgba\\(${Rr},${Rr},${Rr},${ea}\\)$`),fhe=new RegExp(`^hsl\\(${ea},${Rr},${Rr}\\)$`),dhe=new RegExp(`^hsla\\(${ea},${Rr},${Rr},${ea}\\)$`),u0={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};Qh(ga,ta,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:f0,formatHex:f0,formatHex8:hhe,formatHsl:phe,formatRgb:d0,toString:d0});function f0(){return this.rgb().formatHex()}function hhe(){return this.rgb().formatHex8()}function phe(){return a1(this).formatHsl()}function d0(){return this.rgb().formatRgb()}function ta(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=she.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?h0(t):r===3?new Rn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?cc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?cc(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=lhe.exec(e))?new Rn(t[1],t[2],t[3],1):(t=ahe.exec(e))?new Rn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=che.exec(e))?cc(t[1],t[2],t[3],t[4]):(t=uhe.exec(e))?cc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fhe.exec(e))?v0(t[1],t[2]/100,t[3]/100,1):(t=dhe.exec(e))?v0(t[1],t[2]/100,t[3]/100,t[4]):u0.hasOwnProperty(e)?h0(u0[e]):e==="transparent"?new Rn(NaN,NaN,NaN,0):null}function h0(e){return new Rn(e>>16&255,e>>8&255,e&255,1)}function cc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Rn(e,t,r,o)}function ghe(e){return e instanceof ga||(e=ta(e)),e?(e=e.rgb(),new Rn(e.r,e.g,e.b,e.opacity)):new Rn}function Gd(e,t,r,o){return arguments.length===1?ghe(e):new Rn(e,t,r,o??1)}function Rn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Qh(Rn,Gd,l1(ga,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ql:Math.pow(Ql,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rn(Eo(this.r),Eo(this.g),Eo(this.b),ru(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:p0,formatHex:p0,formatHex8:vhe,formatRgb:g0,toString:g0}));function p0(){return`#${ko(this.r)}${ko(this.g)}${ko(this.b)}`}function vhe(){return`#${ko(this.r)}${ko(this.g)}${ko(this.b)}${ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function g0(){const e=ru(this.opacity);return`${e===1?"rgb(":"rgba("}${Eo(this.r)}, ${Eo(this.g)}, ${Eo(this.b)}${e===1?")":`, ${e})`}`}function ru(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Eo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ko(e){return e=Eo(e),(e<16?"0":"")+e.toString(16)}function v0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,r,o)}function a1(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof ga||(e=ta(e)),!e)return new mr;if(e instanceof mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new mr(f,d,h,e.opacity)}function mhe(e,t,r,o){return arguments.length===1?a1(e):new mr(e,t,r,o??1)}function mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Qh(mr,mhe,l1(ga,{brighter(e){return e=e==null?nu:Math.pow(nu,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ql:Math.pow(Ql,e),new mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Rn(od(e>=240?e-240:e+120,s,o),od(e,s,o),od(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new mr(m0(this.h),uc(this.s),uc(this.l),ru(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=ru(this.opacity);return`${e===1?"hsl(":"hsla("}${m0(this.h)}, ${uc(this.s)*100}%, ${uc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function m0(e){return e=(e||0)%360,e<0?e+360:e}function uc(e){return Math.max(0,Math.min(1,e||0))}function od(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const c1=e=>()=>e;function yhe(e,t){return function(r){return e+r*t}}function bhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function whe(e){return(e=+e)==1?u1:function(t,r){return r-t?bhe(t,r,e):c1(isNaN(t)?r:t)}}function u1(e,t){var r=t-e;return r?yhe(e,r):c1(isNaN(e)?t:e)}const y0=function e(t){var r=whe(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=u1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function zi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sd=new RegExp(Kd.source,"g");function xhe(e){return function(){return e}}function _he(e){return function(t){return e(t)+""}}function She(e,t){var r=Kd.lastIndex=sd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=sd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:zi(o,s)})),r=sd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?_he(h[0].x):xhe(t):(t=h.length,function(p){for(var v=0,y;v<t;++v)d[(y=h[v]).i]=y.x(p);return d.join("")})}var b0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function f1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*b0,skewX:Math.atan(h)*b0,scaleX:f,scaleY:d}}var fc;function khe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:f1(t.a,t.b,t.c,t.d,t.e,t.f)}function The(e){return e==null||(fc||(fc=document.createElementNS("http://www.w3.org/2000/svg","g")),fc.setAttribute("transform",e),!(e=fc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,f1(e.a,e.b,e.c,e.d,e.e,e.f))}function d1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,x,E){if(p!==y||v!==b){var C=x.push("translate(",null,t,null,r);E.push({i:C-4,x:zi(p,y)},{i:C-2,x:zi(v,b)})}else(y||b)&&x.push("translate("+y+t+b+r)}function f(p,v,y,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:y.push(s(y)+"rotate(",null,o)-2,x:zi(p,v)})):v&&y.push(s(y)+"rotate("+v+o)}function d(p,v,y,b){p!==v?b.push({i:y.push(s(y)+"skewX(",null,o)-2,x:zi(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,x,E){if(p!==y||v!==b){var C=x.push(s(x)+"scale(",null,",",null,")");E.push({i:C-4,x:zi(p,y)},{i:C-2,x:zi(v,b)})}else(y!==1||b!==1)&&x.push(s(x)+"scale("+y+","+b+")")}return function(p,v){var y=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,y,b),f(p.rotate,v.rotate,y,b),d(p.skewX,v.skewX,y,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,b),p=v=null,function(x){for(var E=-1,C=b.length,M;++E<C;)y[(M=b[E]).i]=M.x(x);return y.join("")}}}var Che=d1(khe,"px, ","px)","deg)"),Ehe=d1(The,", ",")",")"),Lhe=1e-12;function w0(e){return((e=Math.exp(e))+1/e)/2}function Ahe(e){return((e=Math.exp(e))-1/e)/2}function Mhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Nhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],y=f[1],b=f[2],x=v-d,E=y-h,C=x*x+E*E,M,N;if(C<Lhe)N=Math.log(b/p)/t,M=function(J){return[d+J*x,h+J*E,p*Math.exp(t*J*N)]};else{var L=Math.sqrt(C),D=(b*b-p*p+o*C)/(2*p*r*L),A=(b*b-p*p-o*C)/(2*b*r*L),H=Math.log(Math.sqrt(D*D+1)-D),z=Math.log(Math.sqrt(A*A+1)-A);N=(z-H)/t,M=function(J){var ie=J*N,ne=w0(H),j=p/(r*L)*(ne*Mhe(t*ie+H)-Ahe(H));return[d+j*x,h+j*E,p*ne/w0(t*ie+H)]}}return M.duration=N*1e3*t/Math.SQRT2,M}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var As=0,ml=0,hl=0,h1=1e3,iu,yl,ou=0,Mo=0,Fu=0,na=typeof performance=="object"&&performance.now?performance:Date,p1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ep(){return Mo||(p1($he),Mo=na.now()+Fu)}function $he(){Mo=0}function su(){this._call=this._time=this._next=null}su.prototype=tp.prototype={constructor:su,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ep():+r)+(t==null?0:+t),!this._next&&yl!==this&&(yl?yl._next=this:iu=this,yl=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function tp(e,t,r){var o=new su;return o.restart(e,t,r),o}function Ohe(){ep(),++As;for(var e=iu,t;e;)(t=Mo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--As}function x0(){Mo=(ou=na.now())+Fu,As=ml=0;try{Ohe()}finally{As=0,Rhe(),Mo=0}}function Phe(){var e=na.now(),t=e-ou;t>h1&&(Fu-=t,ou=e)}function Rhe(){for(var e,t=iu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:iu=r);yl=e,Yd(o)}function Yd(e){if(!As){ml&&(ml=clearTimeout(ml));var t=e-Mo;t>24?(e<1/0&&(ml=setTimeout(x0,e-na.now()-Fu)),hl&&(hl=clearInterval(hl))):(hl||(ou=na.now(),hl=setInterval(Phe,h1)),As=1,p1(x0))}}function _0(e,t,r){var o=new su;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Dhe=pa("start","end","cancel","interrupt"),zhe=[],g1=0,S0=1,Zd=2,Cc=3,k0=4,Jd=5,Ec=6;function Hu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Ihe(e,r,{name:t,index:o,group:s,on:Dhe,tween:zhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:g1})}function np(e,t){var r=Sr(e,t);if(r.state>g1)throw new Error("too late; already scheduled");return r}function Hr(e,t){var r=Sr(e,t);if(r.state>Cc)throw new Error("too late; already running");return r}function Sr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Ihe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=tp(c,0,r.time);function c(p){r.state=S0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,x;if(r.state!==S0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===Cc)return _0(f);x.state===k0?(x.state=Ec,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Ec,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(_0(function(){r.state===Cc&&(r.state=k0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=Cc,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Ec,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Lc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Ec,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Fhe(e){return this.each(function(){Lc(this,e)})}function Hhe(e,t){var r,o;return function(){var s=Hr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function qhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Hr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function Bhe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Sr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Hhe:qhe)(r,e,t))}function rp(e,t,r){var o=e._id;return e.each(function(){var s=Hr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Sr(s,o).value[t]}}function v1(e,t){var r;return(typeof t=="number"?zi:t instanceof ta?y0:(r=ta(t))?(t=r,y0):She)(e,t)}function Whe(e){return function(){this.removeAttribute(e)}}function Uhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Vhe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function jhe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Ghe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Khe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Xhe(e,t){var r=Iu(e),o=r==="transform"?Ehe:v1;return this.attrTween(e,typeof t=="function"?(r.local?Khe:Ghe)(r,o,rp(this,"attr."+e,t)):t==null?(r.local?Uhe:Whe)(r):(r.local?jhe:Vhe)(r,o,t))}function Yhe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Zhe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Jhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Zhe(e,c)),r}return s._value=t,s}function Qhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Yhe(e,c)),r}return s._value=t,s}function epe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Iu(e);return this.tween(r,(o.local?Jhe:Qhe)(o,t))}function tpe(e,t){return function(){np(this,e).delay=+t.apply(this,arguments)}}function npe(e,t){return t=+t,function(){np(this,e).delay=t}}function rpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?tpe:npe)(t,e)):Sr(this.node(),t).delay}function ipe(e,t){return function(){Hr(this,e).duration=+t.apply(this,arguments)}}function ope(e,t){return t=+t,function(){Hr(this,e).duration=t}}function spe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ipe:ope)(t,e)):Sr(this.node(),t).duration}function lpe(e,t){if(typeof t!="function")throw new Error;return function(){Hr(this,e).ease=t}}function ape(e){var t=this._id;return arguments.length?this.each(lpe(t,e)):Sr(this.node(),t).ease}function cpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Hr(this,e).ease=r}}function upe(e){if(typeof e!="function")throw new Error;return this.each(cpe(this._id,e))}function fpe(e){typeof e!="function"&&(e=Xw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new ci(o,this._parents,this._name,this._id)}function dpe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,y=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(y[x]=b);for(;d<o;++d)f[d]=t[d];return new ci(f,this._parents,this._name,this._id)}function hpe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function ppe(e,t,r){var o,s,c=hpe(t)?np:Hr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function gpe(e,t){var r=this._id;return arguments.length<2?Sr(this.node(),r).on.on(e):this.each(ppe(r,e,t))}function vpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function mpe(){return this.on("end.remove",vpe(this._id))}function ype(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,y,b=0;b<h;++b)(v=d[b])&&(y=e.call(v,v.__data__,b,d))&&("__data__"in v&&(y.__data__=v.__data__),p[b]=y,Hu(p[b],t,r,b,p,Sr(v,r)));return new ci(c,this._parents,t,r)}function bpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Kw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,y=0;y<p;++y)if(v=h[y]){for(var b=e.call(v,v.__data__,y,h),x,E=Sr(v,r),C=0,M=b.length;C<M;++C)(x=b[C])&&Hu(x,t,r,C,b,E);c.push(b),f.push(v)}return new ci(c,f,t,r)}var wpe=ha.prototype.constructor;function xpe(){return new wpe(this._groups,this._parents)}function _pe(e,t){var r,o,s;return function(){var c=Ls(this,e),f=(this.style.removeProperty(e),Ls(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function m1(e){return function(){this.style.removeProperty(e)}}function Spe(e,t,r){var o,s=r+"",c;return function(){var f=Ls(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function kpe(e,t,r){var o,s,c;return function(){var f=Ls(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ls(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Tpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Hr(this,e),p=h.on,v=h.value[c]==null?d||(d=m1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Cpe(e,t,r){var o=(e+="")=="transform"?Che:v1;return t==null?this.styleTween(e,_pe(e,o)).on("end.style."+e,m1(e)):typeof t=="function"?this.styleTween(e,kpe(e,o,rp(this,"style."+e,t))).each(Tpe(this._id,e)):this.styleTween(e,Spe(e,o,t),r).on("end.style."+e,null)}function Epe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Lpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Epe(e,f,r)),o}return c._value=t,c}function Ape(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Lpe(e,t,r??""))}function Mpe(e){return function(){this.textContent=e}}function Npe(e){return function(){var t=e(this);this.textContent=t??""}}function $pe(e){return this.tween("text",typeof e=="function"?Npe(rp(this,"text",e)):Mpe(e==null?"":e+""))}function Ope(e){return function(t){this.textContent=e.call(this,t)}}function Ppe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Ope(s)),t}return o._value=e,o}function Rpe(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,Ppe(e))}function Dpe(){for(var e=this._name,t=this._id,r=y1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Sr(h,t);Hu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new ci(o,this._parents,e,r)}function zpe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Hr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Ipe=0;function ci(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function y1(){return++Ipe}var Zr=ha.prototype;ci.prototype={constructor:ci,select:ype,selectAll:bpe,selectChild:Zr.selectChild,selectChildren:Zr.selectChildren,filter:fpe,merge:dpe,selection:xpe,transition:Dpe,call:Zr.call,nodes:Zr.nodes,node:Zr.node,size:Zr.size,empty:Zr.empty,each:Zr.each,on:gpe,attr:Xhe,attrTween:epe,style:Cpe,styleTween:Ape,text:$pe,textTween:Rpe,remove:mpe,tween:Bhe,delay:rpe,duration:spe,ease:ape,easeVarying:upe,end:zpe,[Symbol.iterator]:Zr[Symbol.iterator]};function Fpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Hpe={time:null,delay:0,duration:250,ease:Fpe};function qpe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Bpe(e){var t,r;e instanceof ci?(t=e._id,e=e._name):(t=y1(),(r=Hpe).time=ep(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Hu(h,e,t,p,f,r||qpe(h,t));return new ci(o,this._parents,e,t)}ha.prototype.interrupt=Fhe;ha.prototype.transition=Bpe;const dc=e=>()=>e;function Wpe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function ti(e,t,r){this.k=e,this.x=t,this.y=r}ti.prototype={constructor:ti,scale:function(e){return e===1?this:new ti(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ti(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 ip=new ti(1,0,0);ti.prototype;function ld(e){e.stopImmediatePropagation()}function pl(e){e.preventDefault(),e.stopImmediatePropagation()}function Upe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Vpe(){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 T0(){return this.__zoom||ip}function jpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Gpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kpe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Xpe(){var e=Upe,t=Vpe,r=Kpe,o=jpe,s=Gpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Nhe,p=pa("start","zoom","end"),v,y,b,x=500,E=150,C=0,M=10;function N(I){I.property("__zoom",T0).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",K).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(I,k,q,W){var re=I.selection?I.selection():I;re.property("__zoom",T0),I!==re?H(I,k,q,W):re.interrupt().each(function(){z(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},N.scaleBy=function(I,k,q,W){N.scaleTo(I,function(){var re=this.__zoom.k,me=typeof k=="function"?k.apply(this,arguments):k;return re*me},q,W)},N.scaleTo=function(I,k,q,W){N.transform(I,function(){var re=t.apply(this,arguments),me=this.__zoom,Me=q==null?A(re):typeof q=="function"?q.apply(this,arguments):q,Be=me.invert(Me),Ve=typeof k=="function"?k.apply(this,arguments):k;return r(D(L(me,Ve),Me,Be),re,f)},q,W)},N.translateBy=function(I,k,q,W){N.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof q=="function"?q.apply(this,arguments):q),t.apply(this,arguments),f)},null,W)},N.translateTo=function(I,k,q,W,re){N.transform(I,function(){var me=t.apply(this,arguments),Me=this.__zoom,Be=W==null?A(me):typeof W=="function"?W.apply(this,arguments):W;return r(ip.translate(Be[0],Be[1]).scale(Me.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof q=="function"?-q.apply(this,arguments):-q),me,f)},W,re)};function L(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new ti(k,I.x,I.y)}function D(I,k,q){var W=k[0]-q[0]*I.k,re=k[1]-q[1]*I.k;return W===I.x&&re===I.y?I:new ti(I.k,W,re)}function A(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function H(I,k,q,W){I.on("start.zoom",function(){z(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(W).end()}).tween("zoom",function(){var re=this,me=arguments,Me=z(re,me).event(W),Be=t.apply(re,me),Ve=q==null?A(Be):typeof q=="function"?q.apply(re,me):q,it=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),nt=re.__zoom,Ze=typeof k=="function"?k.apply(re,me):k,Te=h(nt.invert(Ve).concat(it/nt.k),Ze.invert(Ve).concat(it/Ze.k));return function(X){if(X===1)X=Ze;else{var ae=Te(X),de=it/ae[2];X=new ti(de,Ve[0]-ae[0]*de,Ve[1]-ae[1]*de)}Me.zoom(null,X)}})}function z(I,k,q){return!q&&I.__zooming||new J(I,k)}function J(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}J.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Pn(this.that).datum();p.call(I,this.that,new Wpe(I,{sourceEvent:this.sourceEvent,target:N,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function ie(I,...k){if(!e.apply(this,arguments))return;var q=z(this,k).event(I),W=this.__zoom,re=Math.max(c[0],Math.min(c[1],W.k*Math.pow(2,o.apply(this,arguments)))),me=ei(I);if(q.wheel)(q.mouse[0][0]!==me[0]||q.mouse[0][1]!==me[1])&&(q.mouse[1]=W.invert(q.mouse[0]=me)),clearTimeout(q.wheel);else{if(W.k===re)return;q.mouse=[me,W.invert(me)],Lc(this),q.start()}pl(I),q.wheel=setTimeout(Me,E),q.zoom("mouse",r(D(L(W,re),q.mouse[0],q.mouse[1]),q.extent,f));function Me(){q.wheel=null,q.end()}}function ne(I,...k){if(b||!e.apply(this,arguments))return;var q=I.currentTarget,W=z(this,k,!0).event(I),re=Pn(I.view).on("mousemove.zoom",Ve,!0).on("mouseup.zoom",it,!0),me=ei(I,q),Me=I.clientX,Be=I.clientY;o1(I.view),ld(I),W.mouse=[me,this.__zoom.invert(me)],Lc(this),W.start();function Ve(nt){if(pl(nt),!W.moved){var Ze=nt.clientX-Me,Te=nt.clientY-Be;W.moved=Ze*Ze+Te*Te>C}W.event(nt).zoom("mouse",r(D(W.that.__zoom,W.mouse[0]=ei(nt,q),W.mouse[1]),W.extent,f))}function it(nt){re.on("mousemove.zoom mouseup.zoom",null),s1(nt.view,W.moved),pl(nt),W.event(nt).end()}}function j(I,...k){if(e.apply(this,arguments)){var q=this.__zoom,W=ei(I.changedTouches?I.changedTouches[0]:I,this),re=q.invert(W),me=q.k*(I.shiftKey?.5:2),Me=r(D(L(q,me),W,re),t.apply(this,k),f);pl(I),d>0?Pn(this).transition().duration(d).call(H,Me,W,I):Pn(this).call(N.transform,Me,W,I)}}function te(I,...k){if(e.apply(this,arguments)){var q=I.touches,W=q.length,re=z(this,k,I.changedTouches.length===W).event(I),me,Me,Be,Ve;for(ld(I),Me=0;Me<W;++Me)Be=q[Me],Ve=ei(Be,this),Ve=[Ve,this.__zoom.invert(Ve),Be.identifier],re.touch0?!re.touch1&&re.touch0[2]!==Ve[2]&&(re.touch1=Ve,re.taps=0):(re.touch0=Ve,me=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(re.taps<2&&(y=Ve[0],v=setTimeout(function(){v=null},x)),Lc(this),re.start())}}function K(I,...k){if(this.__zooming){var q=z(this,k).event(I),W=I.changedTouches,re=W.length,me,Me,Be,Ve;for(pl(I),me=0;me<re;++me)Me=W[me],Be=ei(Me,this),q.touch0&&q.touch0[2]===Me.identifier?q.touch0[0]=Be:q.touch1&&q.touch1[2]===Me.identifier&&(q.touch1[0]=Be);if(Me=q.that.__zoom,q.touch1){var it=q.touch0[0],nt=q.touch0[1],Ze=q.touch1[0],Te=q.touch1[1],X=(X=Ze[0]-it[0])*X+(X=Ze[1]-it[1])*X,ae=(ae=Te[0]-nt[0])*ae+(ae=Te[1]-nt[1])*ae;Me=L(Me,Math.sqrt(X/ae)),Be=[(it[0]+Ze[0])/2,(it[1]+Ze[1])/2],Ve=[(nt[0]+Te[0])/2,(nt[1]+Te[1])/2]}else if(q.touch0)Be=q.touch0[0],Ve=q.touch0[1];else return;q.zoom("touch",r(D(Me,Be,Ve),q.extent,f))}}function V(I,...k){if(this.__zooming){var q=z(this,k).event(I),W=I.changedTouches,re=W.length,me,Me;for(ld(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),me=0;me<re;++me)Me=W[me],q.touch0&&q.touch0[2]===Me.identifier?delete q.touch0:q.touch1&&q.touch1[2]===Me.identifier&&delete q.touch1;if(q.touch1&&!q.touch0&&(q.touch0=q.touch1,delete q.touch1),q.touch0)q.touch0[1]=this.__zoom.invert(q.touch0[0]);else if(q.end(),q.taps===2&&(Me=ei(Me,this),Math.hypot(y[0]-Me[0],y[1]-Me[1])<M)){var Be=Pn(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return N.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:dc(+I),N):o},N.filter=function(I){return arguments.length?(e=typeof I=="function"?I:dc(!!I),N):e},N.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:dc(!!I),N):s},N.extent=function(I){return arguments.length?(t=typeof I=="function"?I:dc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),N):t},N.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],N):[c[0],c[1]]},N.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],N):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},N.constrain=function(I){return arguments.length?(r=I,N):r},N.duration=function(I){return arguments.length?(d=+I,N):d},N.interpolate=function(I){return arguments.length?(h=I,N):h},N.on=function(){var I=p.on.apply(p,arguments);return I===p?N:I},N.clickDistance=function(I){return arguments.length?(C=(I=+I)*I,N):Math.sqrt(C)},N.tapDistance=function(I){return arguments.length?(M=+I,N):M},N}function Ype(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return b1(this.cover(t,r),t,r,e)}function b1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,y,b,x,E,C,M,N,L;if(!c)return e._root=f,e;for(;c.length;)if((C=t>=(y=(d+p)/2))?d=y:p=y,(M=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[N=M<<1|C]))return s[N]=f,e;if(x=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===x&&r===E)return f.next=c,s?s[N]=f:e._root=f,e;do s=s?s[N]=new Array(4):e._root=new Array(4),(C=t>=(y=(d+p)/2))?d=y:p=y,(M=r>=(b=(h+v)/2))?h=b:v=b;while((N=M<<1|C)===(L=(E>=b)<<1|x>=y));return s[L]=c,s[N]=f,e}function Zpe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>y&&(y=c));if(h>v||p>y)return this;for(this.cover(h,p).cover(v,y),r=0;r<o;++r)b1(this,f[r],d[r],e[r]);return this}function Jpe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Qpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function ege(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 Sn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function tge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],x=this._root,E,C;for(x&&b.push(new Sn(x,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);E=b.pop();)if(!(!(x=E.node)||(f=E.x0)>v||(d=E.y0)>y||(h=E.x1)<s||(p=E.y1)<c))if(x.length){var M=(f+h)/2,N=(d+p)/2;b.push(new Sn(x[3],M,N,h,p),new Sn(x[2],f,N,M,p),new Sn(x[1],M,d,h,N),new Sn(x[0],f,d,M,N)),(C=(t>=N)<<1|e>=M)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-C],b[b.length-1-C]=E)}else{var L=e-+this._x.call(null,x.data),D=t-+this._y.call(null,x.data),A=L*L+D*D;if(A<r){var H=Math.sqrt(r=A);s=e-H,c=t-H,v=e+H,y=t+H,o=x.data}}return o}function nge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,y,b,x,E,C,M,N;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(C=y>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[M=C<<1|E]))return this;if(!r.length)break;(t[M+1&3]||t[M+2&3]||t[M+3&3])&&(o=t,N=M)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[M]=c:delete t[M],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=c,this)}function rge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function ige(){return this._root}function oge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function sge(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Sn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new Sn(s,p,v,d,h)),(s=o[2])&&t.push(new Sn(s,c,v,p,h)),(s=o[1])&&t.push(new Sn(s,p,f,d,v)),(s=o[0])&&t.push(new Sn(s,c,f,p,v))}return this}function lge(e){var t=[],r=[],o;for(this._root&&t.push(new Sn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,y=(d+p)/2;(c=s[0])&&t.push(new Sn(c,f,d,v,y)),(c=s[1])&&t.push(new Sn(c,v,d,h,y)),(c=s[2])&&t.push(new Sn(c,f,y,v,p)),(c=s[3])&&t.push(new Sn(c,v,y,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function age(e){return e[0]}function cge(e){return arguments.length?(this._x=e,this):this._x}function uge(e){return e[1]}function fge(e){return arguments.length?(this._y=e,this):this._y}function op(e,t,r){var o=new sp(t??age,r??uge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function C0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Cn=op.prototype=sp.prototype;Cn.copy=function(){var e=new sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=C0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=C0(o));return e};Cn.add=Ype;Cn.addAll=Zpe;Cn.cover=Jpe;Cn.data=Qpe;Cn.extent=ege;Cn.find=tge;Cn.remove=nge;Cn.removeAll=rge;Cn.root=ige;Cn.size=oge;Cn.visit=sge;Cn.visitAfter=lge;Cn.x=cge;Cn.y=fge;function Tn(e){return function(){return e}}function Hi(e){return(e()-.5)*1e-6}function dge(e){return e.x+e.vx}function hge(e){return e.y+e.vy}function pge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,x,E,C,M,N=0;N<c;++N)for(y=op(t,dge,hge).visitAfter(d),p=0;p<v;++p)b=t[p],C=r[b.index],M=C*C,x=b.x+b.vx,E=b.y+b.vy,y.visit(L);function L(D,A,H,z,J){var ie=D.data,ne=D.r,j=C+ne;if(ie){if(ie.index>b.index){var te=x-ie.x-ie.vx,K=E-ie.y-ie.vy,V=te*te+K*K;V<j*j&&(te===0&&(te=Hi(o),V+=te*te),K===0&&(K=Hi(o),V+=K*K),V=(j-(V=Math.sqrt(V)))/V*s,b.vx+=(te*=V)*(j=(ne*=ne)/(M+ne)),b.vy+=(K*=V)*j,ie.vx-=te*(j=1-j),ie.vy-=K*j)}return}return A>x+j||z<x-j||H>E+j||J<E-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,y;for(r=new Array(v),p=0;p<v;++p)y=t[p],r[y.index]=+e(y,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function gge(e){return e.index}function E0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function vge(e){var t=gge,r=y,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(M){return 1/Math.min(d[M.source.index],d[M.target.index])}function b(M){for(var N=0,L=e.length;N<v;++N)for(var D=0,A,H,z,J,ie,ne,j;D<L;++D)A=e[D],H=A.source,z=A.target,J=z.x+z.vx-H.x-H.vx||Hi(p),ie=z.y+z.vy-H.y-H.vy||Hi(p),ne=Math.sqrt(J*J+ie*ie),ne=(ne-c[D])/ne*M*o[D],J*=ne,ie*=ne,z.vx-=J*(j=h[D]),z.vy-=ie*j,H.vx+=J*(j=1-j),H.vy+=ie*j}function x(){if(f){var M,N=f.length,L=e.length,D=new Map(f.map((H,z)=>[t(H,z,f),H])),A;for(M=0,d=new Array(N);M<L;++M)A=e[M],A.index=M,typeof A.source!="object"&&(A.source=E0(D,A.source)),typeof A.target!="object"&&(A.target=E0(D,A.target)),d[A.source.index]=(d[A.source.index]||0)+1,d[A.target.index]=(d[A.target.index]||0)+1;for(M=0,h=new Array(L);M<L;++M)A=e[M],h[M]=d[A.source.index]/(d[A.source.index]+d[A.target.index]);o=new Array(L),E(),c=new Array(L),C()}}function E(){if(f)for(var M=0,N=e.length;M<N;++M)o[M]=+r(e[M],M,e)}function C(){if(f)for(var M=0,N=e.length;M<N;++M)c[M]=+s(e[M],M,e)}return b.initialize=function(M,N){f=M,p=N,x()},b.links=function(M){return arguments.length?(e=M,x(),b):e},b.id=function(M){return arguments.length?(t=M,b):t},b.iterations=function(M){return arguments.length?(v=+M,b):v},b.strength=function(M){return arguments.length?(r=typeof M=="function"?M:Tn(+M),E(),b):r},b.distance=function(M){return arguments.length?(s=typeof M=="function"?M:Tn(+M),C(),b):s},b}const mge=1664525,yge=1013904223,L0=4294967296;function bge(){let e=1;return()=>(e=(mge*e+yge)%L0)/L0}function wge(e){return e.x}function xge(e){return e.y}var _ge=10,Sge=Math.PI*(3-Math.sqrt(5));function kge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=tp(y),p=pa("tick","end"),v=bge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(C){var M,N=e.length,L;C===void 0&&(C=1);for(var D=0;D<C;++D)for(r+=(c-r)*s,d.forEach(function(A){A(r)}),M=0;M<N;++M)L=e[M],L.fx==null?L.x+=L.vx*=f:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=f:(L.y=L.fy,L.vy=0);return t}function x(){for(var C=0,M=e.length,N;C<M;++C){if(N=e[C],N.index=C,N.fx!=null&&(N.x=N.fx),N.fy!=null&&(N.y=N.fy),isNaN(N.x)||isNaN(N.y)){var L=_ge*Math.sqrt(.5+C),D=C*Sge;N.x=L*Math.cos(D),N.y=L*Math.sin(D)}(isNaN(N.vx)||isNaN(N.vy))&&(N.vx=N.vy=0)}}function E(C){return C.initialize&&C.initialize(e,v),C}return x(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(C){return arguments.length?(e=C,x(),d.forEach(E),t):e},alpha:function(C){return arguments.length?(r=+C,t):r},alphaMin:function(C){return arguments.length?(o=+C,t):o},alphaDecay:function(C){return arguments.length?(s=+C,t):+s},alphaTarget:function(C){return arguments.length?(c=+C,t):c},velocityDecay:function(C){return arguments.length?(f=1-C,t):1-f},randomSource:function(C){return arguments.length?(v=C,d.forEach(E),t):v},force:function(C,M){return arguments.length>1?(M==null?d.delete(C):d.set(C,E(M)),t):d.get(C)},find:function(C,M,N){var L=0,D=e.length,A,H,z,J,ie;for(N==null?N=1/0:N*=N,L=0;L<D;++L)J=e[L],A=C-J.x,H=M-J.y,z=A*A+H*H,z<N&&(ie=J,N=z);return ie},on:function(C,M){return arguments.length>1?(p.on(C,M),t):p.on(C)}}}function Tge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var E,C=e.length,M=op(e,wge,xge).visitAfter(y);for(o=x,E=0;E<C;++E)t=e[E],M.visit(b)}function v(){if(e){var x,E=e.length,C;for(c=new Array(E),x=0;x<E;++x)C=e[x],c[C.index]=+s(C,x,e)}}function y(x){var E=0,C,M,N=0,L,D,A;if(x.length){for(L=D=A=0;A<4;++A)(C=x[A])&&(M=Math.abs(C.value))&&(E+=C.value,N+=M,L+=M*C.x,D+=M*C.y);x.x=L/N,x.y=D/N}else{C=x,C.x=C.data.x,C.y=C.data.y;do E+=c[C.data.index];while(C=C.next)}x.value=E}function b(x,E,C,M){if(!x.value)return!0;var N=x.x-t.x,L=x.y-t.y,D=M-E,A=N*N+L*L;if(D*D/h<A)return A<d&&(N===0&&(N=Hi(r),A+=N*N),L===0&&(L=Hi(r),A+=L*L),A<f&&(A=Math.sqrt(f*A)),t.vx+=N*x.value*o/A,t.vy+=L*x.value*o/A),!0;if(x.length||A>=d)return;(x.data!==t||x.next)&&(N===0&&(N=Hi(r),A+=N*N),L===0&&(L=Hi(r),A+=L*L),A<f&&(A=Math.sqrt(f*A)));do x.data!==t&&(D=c[x.data.index]*o/A,t.vx+=N*D,t.vy+=L*D);while(x=x.next)}return p.initialize=function(x,E){e=x,r=E,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Cge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Ege(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Lge=Object.defineProperty,Age=(e,t,r)=>t in e?Lge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>Age(e,typeof t!="symbol"?t+"":t,r);function Mge(){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 A0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function qi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=qi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:A0(t[o])&&A0(r[o])?t[o]=qi(t[o],r[o]):t[o]=r[o])}),t},{})}const w1={mergeArrays:!0};qi.options=w1;qi.withOptions=(e,...t)=>{qi.options={mergeArrays:!0,...e};const r=qi(...t);return qi.options=w1,r};function Nge(){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 $ge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function x1(e){e.preventDefault(),e.stopPropagation()}function _1(e){return typeof e=="number"}function Zi(e,t){return _1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Oge(e){return`${e.source.id}-${e.target.id}`}function S1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Pge(e){return`url(#${S1(e.color)})`}function Rge(e){return{size:e,padding:(t,r)=>Zi(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const k1={Arrow:e=>Rge(e)},Dge=(e,t,r)=>[t/2,r/2],T1=(e,t,r)=>[M0(0,t),M0(0,r)];function M0(e,t){return Math.random()*(t-e)+e}function zge(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?T1(r,o,s):[c,f]}}const Qd={Centered:Dge,Randomized:T1,Stable:zge};function Ige(){return{autoResize:!1,callbacks:{},hooks:{},initial:$ge(),nodeRadius:16,marker:k1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Mge(),forces:Nge()},zoom:{initial:1,min:.1,max:2}}}function Fge(e={}){return qi.withOptions({mergeArrays:!1},Ige(),e)}function Hge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>x1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ip.translate(c,f).scale(d)),p.append("g")}function qge({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Bge({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=ohe().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Pn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Pn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function Wge({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Uge({nodes:d,links:c},r)}function Uge(e,t){const r=[...Vge(e,t),...jge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Vge(e,t){return C1(e,t,(r,o)=>r.target.id===o.id)}function jge(e,t){return C1(e,t,(r,o)=>r.source.id===o.id)}function C1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function lp({source:e,target:t}){const r=new _n(eh(e),th(e)),o=new _n(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function E1({center:e,node:t}){const r=new _n(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new _n(0,1))),{n:r,c:o}}function L1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=lp({config:e,source:t,target:r}),f=o.add(c.multiply(Zi(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Gge(e){const{start:t,end:r}=L1(e);return`M${t.x},${t.y}
49
- L${r.x},${r.y}`}function Kge(e){const{start:t,end:r}=L1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Xge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=lp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(Zi(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(Zi(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),y=1.2*c;return`M${p.x},${p.y}
50
- A${y},${y},0,0,1,${v.x},${v.y}`}function Yge({center:e,config:t,node:r}){const{n:o,c:s}=E1({center:e,config:t,node:r}),c=Zi(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
51
- A${c},${c},0,1,0,${v.x},${v.y}`}function Zge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=lp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Jge({center:e,config:t,node:r}){const{n:o,c:s}=E1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*Zi(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const bs={line:{labelTransform:Kge,path:Gge},arc:{labelTransform:Zge,path:Xge},reflexive:{labelTransform:Jge,path:Yge}};function Qge(e){return e.append("g").classed("links",!0).selectAll("path")}function eve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Oge(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",x=>Pge(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function tve(e){nve(e),rve(e)}function nve({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?bs.reflexive.path({config:t,node:s.source,center:e}):A1(r,s.source,s.target)?bs.arc.path({config:t,source:s.source,target:s.target}):bs.line.path({config:t,source:s.source,target:s.target}))}function rve({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?bs.reflexive.labelTransform({config:e,node:s.source,center:t}):A1(r,s.source,s.target)?bs.arc.labelTransform({config:e,source:s.source,target:s.target}):bs.line.labelTransform({config:e,source:s.source,target:s.target}))}function A1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function ive(e){return e.append("defs").selectAll("marker")}function ove({config:e,graph:t,selection:r}){return r==null?void 0:r.data(sve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>S1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",lve(e.marker.path)),s})}function sve(e){return[...new Set(e.links.map(t=>t.color))]}function lve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function ave(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function cve({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,y,b;const x=h.append("g");t!==void 0&&x.call(t);const E=x.append("circle").classed("node",!0).attr("r",M=>Zi(e,M)).on("contextmenu",(M,N)=>{x1(M),o(N)}).on("pointerdown",(M,N)=>fve(M,N,s??o)).style("fill",M=>M.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const C=x.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",M=>M.label?M.label.color:null).style("font-size",M=>M.label?M.label.fontSize:null).style("stroke","none").text(M=>M.label?M.label.text:null);return(b=(y=e.modifiers).nodeLabel)==null||b.call(y,C),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const uve=500;function fve(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>uve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function dve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function hve({center:e,config:t,graph:r,onTick:o}){var s,c;const f=kge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",Cge(()=>e().x).strength(y)).force("y",Ege(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",Tge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",pge().radius(y=>p.radiusMultiplier*Zi(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",vge(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function pve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Xpe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class gve{constructor(t,r,o){if(Rt(this,"nodeTypes"),Rt(this,"_nodeTypeFilter"),Rt(this,"_includeUnlinked",!0),Rt(this,"_linkFilter",()=>!0),Rt(this,"_showLinkLabels",!0),Rt(this,"_showNodeLabels",!0),Rt(this,"filteredGraph"),Rt(this,"width",0),Rt(this,"height",0),Rt(this,"simulation"),Rt(this,"canvas"),Rt(this,"linkSelection"),Rt(this,"nodeSelection"),Rt(this,"markerSelection"),Rt(this,"zoom"),Rt(this,"drag"),Rt(this,"xOffset",0),Rt(this,"yOffset",0),Rt(this,"scale"),Rt(this,"focusedNode"),Rt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(mfe(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return _n.of([this.width,this.height]).divide(2).subtract(_n.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(_1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=ove({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=eve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=cve({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=hve({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=pve({config:this.config,canvasContainer:()=>Pn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Hge({applyZoom:this.scale!==1,container:Pn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Qge(this.canvas),this.nodeSelection=ave(this.canvas),this.markerSelection=ive(this.canvas),this.drag=Bge({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){dve(this.nodeSelection),tve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Pn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){qge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=Wge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function N0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function vve(e){return{...e}}function M1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const mve={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},yve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},bve=["id","checked","onChange"],wve=["for"],xve=Y("div",{"flex-auto":""},null,-1),_ve=gt({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=SS(t),o=je(),s=je(!1),c=je(),f=je();Eh(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Ms(()=>{p()}),bu(()=>{var y;(y=f.value)==null||y.shutdown()}),qt(r,p);function d(y,b){var x;(x=f.value)==null||x.filterNodesByType(b,y)}function h(y){c.value=y,s.value=!0}function p(){var y;(y=f.value)==null||y.shutdown(),!(!r.value||!o.value)&&(f.value=new gve(o.value,r.value,Fge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:b,newWidth:x})=>b===0&&x===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:k1.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}function v(y){if(Pr)return;const b=M=>M.button===0;let x=0,E=0,C=0;y.on("pointerdown",(M,N)=>{N.type!=="external"&&(!N.x||!N.y||!b(M)||(x=N.x,E=N.y,C=Date.now()))}).on("pointerup",(M,N)=>{if(N.type==="external"||!N.x||!N.y||!b(M)||Date.now()-C>500)return;const L=N.x-x,D=N.y-E;L**2+D**2<100&&h(N.id)})}return(y,b)=>{var N;const x=$o,E=vfe,C=ofe,M=ui("tooltip");return le(),be("div",mve,[Y("div",null,[Y("div",yve,[(le(!0),be(ht,null,si((N=B(f))==null?void 0:N.nodeTypes.sort(),L=>{var D;return le(),be("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${L}`,type:"checkbox",checked:(D=B(f))==null?void 0:D.nodeTypeFilter.includes(L),onChange:A=>d(L,A.target.checked)},null,40,bve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${L}`,"border-b-2":"",style:Zt({"border-color":`var(--color-node-${L})`})},qe(L)+" Modules",13,wve)])}),128)),xve,Y("div",null,[kt(Pe(x,{icon:"i-carbon-reset",onClick:p},null,512),[[M,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(C,{modelValue:B(s),"onUpdate:modelValue":b[1]||(b[1]=L=>It(s)?s.value=L:null),direction:"right"},{default:lt(()=>[B(c)?(le(),ot(IS,{key:0},{default:lt(()=>[Pe(E,{id:B(c),"project-name":y.projectName,onClose:b[0]||(b[0]=L=>s.value=!1)},null,8,["id","project-name"])]),_:1})):rt("",!0)]),_:1},8,["modelValue"])])}}}),Sve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},kve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Tve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Cve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Eve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Lve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},N1=gt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=ui("tooltip");return t.state==="pass"?(le(),be("div",Sve)):t.failedSnapshot?kt((le(),be("div",kve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(le(),be("div",Tve)):t.mode==="todo"?kt((le(),be("div",Cve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?kt((le(),be("div",Eve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(le(),be("div",Lve))}}});function Ave(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:y,candidate:b}=c;t.set(y,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Mve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Nve(e){const t=e.map(o=>Mve(o)),r=Ave(t);return t.map(({raw:o,id:s})=>M1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function $ve(e,t){return M1({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 Ove(e,t){if(!e)return N0({});const r=Nve(e.externalized),o=e.inlined.map(d=>$ve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],y=c[p];if(!(v===void 0||y===void 0))return vve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return N0({nodes:s,links:f})}const Pve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Rve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Dve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},zve={class:"flex text-lg"},Ive={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Fve=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Hve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},qve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Bve=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),Wve=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),Uve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Vve=["flex-1"],jve=gt({__name:"FileDetails",setup(e){const t=je({nodes:[],links:[]}),r=je(!1),o=je(!1),s=je(!1),c=je(void 0),f=$e(()=>{const x=Xt.value;if(!(!x||!x.filepath))return{filepath:x.filepath,projectName:x.file.projectName||""}}),d=$e(()=>Xt.value&&Hh(Xt.value));function h(){var E;const x=(E=Xt.value)==null?void 0:E.filepath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}function p(x){x==="graph"&&(o.value=!0),qn.value=x}const v=$e(()=>{var x;return((x=Bw.value)==null?void 0:x.reduce((E,{size:C})=>E+C,0))??0});function y(x){r.value=x}async function b(){var x;if(!(s.value||((x=f.value)==null?void 0:x.filepath)===c.value)){s.value=!0,await ln();try{const E=f.value;if(!E)return;(!c.value||E.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=Ove(await yt.rpc.getModuleGraph(E.projectName,E.filepath,!!Zl),E.filepath),c.value=E.filepath),p("graph")}finally{await new Promise(E=>setTimeout(E,100)),s.value=!1}}}return yw(()=>[f.value,qn.value],([,x])=>{x==="graph"&&b()},{debounce:100,immediate:!0}),(x,E)=>{var z,J,ie,ne,j,te;const C=N1,M=$o,N=_ve,L=ife,D=Xue,A=Bue,H=ui("tooltip");return B(Xt)?(le(),be("div",Pve,[Y("div",null,[Y("div",Rve,[Pe(C,{state:(z=B(Xt).result)==null?void 0:z.state,mode:B(Xt).mode,"failed-snapshot":B(d)},null,8,["state","mode","failed-snapshot"]),(J=B(Xt))!=null&&J.file.projectName?(le(),be("div",{key:0,"font-light":"","op-50":"","text-sm":"",style:Zt({color:B(Pw)((ie=B(Xt))==null?void 0:ie.file.projectName)})}," ["+qe(((ne=B(Xt))==null?void 0:ne.file.projectName)||"")+"] ",5)):rt("",!0),Y("div",Dve,qe((j=B(Xt))==null?void 0:j.name),1),Y("div",zve,[B(Pr)?rt("",!0):kt((le(),ot(M,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((te=B(Xt))!=null&&te.filepath),onClick:h},null,8,["disabled"])),[[H,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",Ive,[Y("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":B(qn)==null}]),"data-testid":"btn-report",onClick:E[0]||(E[0]=K=>p(null))},[Fve,dt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":B(qn)==="graph"}]),onClick:E[1]||(E[1]=K=>p("graph"))},[B(s)?(le(),be("span",Hve)):(le(),be("span",qve)),dt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":B(qn)==="editor"}]),onClick:E[2]||(E[2]=K=>p("editor"))},[Bve,dt(" "+qe(B(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":B(qn)==="console",op20:B(qn)!=="console"&&B(v)===0}]),onClick:E[3]||(E[3]=K=>p("console"))},[Wve,dt(" Console ("+qe(B(v))+") ",1)],2)])]),Y("div",Uve,[B(o)?(le(),be("div",{key:0,"flex-1":B(qn)==="graph"&&""},[kt(Pe(N,{graph:B(t),"data-testid":"graph","project-name":B(Xt).file.projectName||""},null,8,["graph","project-name"]),[[vl,B(qn)==="graph"&&!B(s)]])],8,Vve)):rt("",!0),B(qn)==="editor"?(le(),ot(L,{key:B(Xt).filepath,file:B(Xt),"data-testid":"editor",onDraft:y},null,8,["file"])):B(qn)==="console"?(le(),ot(D,{key:2,file:B(Xt),"data-testid":"console"},null,8,["file"])):B(qn)?rt("",!0):(le(),ot(A,{key:3,file:B(Xt),"data-testid":"report"},null,8,["file"]))])])):rt("",!0)}}}),Gve={h:"full",flex:"~ col"},Kve=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),Xve={"flex-auto":"","py-1":"","bg-white":""},Yve=["src"],Zve=gt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(le(),be("div",Gve,[Kve,Y("div",Xve,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Yve)])]))}}),Jve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Qve={"font-bold":""},eme={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},tme=["font-bold"],nme={text:"red500/70"},rme=Y("br",null,null,-1),ime={key:1,text:"sm","mb-2":""},ome={"font-bold":""},sme={key:2,text:"sm","mb-2":""},lme={"font-bold":""},ame=Y("br",null,null,-1),cme=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),ume={key:3,text:"sm","font-thin":""},fme=Y("br",null,null,-1),dme=Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1),hme=gt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return le(),be(ht,null,[Y("h4",Jve,[Y("span",Qve,[dt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(le(),be(ht,{key:0},[dt(":")],64)):rt("",!0)]),dt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(le(),be("p",eme,[(le(!0),be(ht,null,si(t.error.stacks,(s,c)=>(le(),be("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[dt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",nme,qe(s.line)+":"+qe(s.column),1),rme],8,tme))),128))])):rt("",!0),t.error.VITEST_TEST_PATH?(le(),be("p",ime,[dt(" This error originated in "),Y("span",ome,qe(t.error.VITEST_TEST_PATH),1),dt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):rt("",!0),t.error.VITEST_TEST_NAME?(le(),be("p",sme,[dt(" The latest test that might've caused the error is "),Y("span",lme,qe(t.error.VITEST_TEST_NAME),1),dt(". It might mean one of the following:"),ame,cme])):rt("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(le(),be("p",ume,[dt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),fme,dme])):rt("",!0)],64)}}}),En=e=>(vu("data-v-0178ddee"),e=e(),mu(),e),pme={"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:""},gme=En(()=>Y("div",{"i-carbon-document":""},null,-1)),vme=En(()=>Y("div",null,"Files",-1)),mme={class:"number","data-testid":"num-files"},yme=En(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),bme=En(()=>Y("div",null,"Pass",-1)),wme={class:"number"},xme=En(()=>Y("div",{"i-carbon-close":""},null,-1)),_me=En(()=>Y("div",null," Fail ",-1)),Sme={class:"number","text-red5":""},kme=En(()=>Y("div",{"i-carbon-compare":""},null,-1)),Tme=En(()=>Y("div",null," Snapshot Fail ",-1)),Cme={class:"number","text-red5":""},Eme=En(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Lme=En(()=>Y("div",null," Errors ",-1)),Ame={class:"number","text-red5":""},Mme=En(()=>Y("div",{"i-carbon-timer":""},null,-1)),Nme=En(()=>Y("div",null,"Time",-1)),$me={class:"number","data-testid":"run-time"},Ome={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Pme=En(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Rme={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Dme=En(()=>Y("br",null,null,-1)),zme={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Ime=En(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),Fme=gt({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=hme;return le(),be(ht,null,[Y("div",pme,[gme,vme,Y("div",mme,qe(B(Ce).summary.files),1),B(Ce).summary.filesSuccess?(le(),be(ht,{key:0},[yme,bme,Y("div",wme,qe(B(Ce).summary.filesSuccess),1)],64)):rt("",!0),B(Ce).summary.filesFailed?(le(),be(ht,{key:1},[xme,_me,Y("div",Sme,qe(B(Ce).summary.filesFailed),1)],64)):rt("",!0),B(Ce).summary.filesSnapshotFailed?(le(),be(ht,{key:2},[kme,Tme,Y("div",Cme,qe(B(Ce).summary.filesSnapshotFailed),1)],64)):rt("",!0),B(Di).length?(le(),be(ht,{key:3},[Eme,Lme,Y("div",Ame,qe(B(Di).length),1)],64)):rt("",!0),Mme,Nme,Y("div",$me,qe(B(Ce).summary.time),1)]),B(Di).length?(le(),be("div",Ome,[Pme,Y("p",Rme,[dt(" Vitest caught "+qe(B(Di).length)+" error"+qe(B(Di).length>1?"s":"")+" during the test run.",1),Dme,dt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",zme,[Ime,(le(!0),be(ht,null,si(B(Di),(s,c)=>(le(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):rt("",!0)],64)}}}),Hme=to(Fme,[["__scopeId","data-v-0178ddee"]]),qme={"p-2":"","text-center":"",flex:""},Bme={"text-4xl":"","min-w-2em":""},Wme={"text-md":""},Ume=gt({__name:"DashboardEntry",setup(e){return(t,r)=>(le(),be("div",qme,[Y("div",null,[Y("div",Bme,[hn(t.$slots,"body")]),Y("div",Wme,[hn(t.$slots,"header")])])]))}}),Vme={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},jme=gt({__name:"TestsEntry",setup(e){return(t,r)=>{const o=Ume;return le(),be("div",Vme,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:lt(()=>[dt(" Pass ")]),body:lt(()=>[dt(qe(B(Ce).summary.testsSuccess),1)]),_:1}),Pe(o,{class:st({"text-red5":B(Ce).summary.testsFailed,op50:!B(Ce).summary.testsFailed}),"data-testid":"fail-entry"},{header:lt(()=>[dt(" Fail ")]),body:lt(()=>[dt(qe(B(Ce).summary.testsFailed),1)]),_:1},8,["class"]),B(Ce).summary.testsSkipped?(le(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:lt(()=>[dt(" Skip ")]),body:lt(()=>[dt(qe(B(Ce).summary.testsSkipped),1)]),_:1})):rt("",!0),B(Ce).summary.testsTodo?(le(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:lt(()=>[dt(" Todo ")]),body:lt(()=>[dt(qe(B(Ce).summary.testsTodo),1)]),_:1})):rt("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:lt(()=>[dt(" Total ")]),body:lt(()=>[dt(qe(B(Ce).summary.totalTests),1)]),_:1})])}}}),Gme={},Kme={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Xme={"aria-labelledby":"tests",m:"y-4 x-2"};function Yme(e,t){const r=jme,o=Hme;return le(),be("div",Kme,[Y("section",Xme,[Pe(r)]),Pe(o)])}const Zme=to(Gme,[["render",Yme]]),Jme={},Qme={h:"full",flex:"~ col"},e0e=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),t0e={class:"scrolls","flex-auto":"","py-1":""};function n0e(e,t){const r=Zme;return le(),be("div",Qme,[e0e,Y("div",t0e,[Pe(r)])])}const r0e=to(Jme,[["render",n0e]]),i0e=["open"],o0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),s0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),l0e=gt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=je(!0);return(r,o)=>(le(),be("div",{open:B(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o0e,hn(r.$slots,"summary",{open:B(t)}),s0e],2),hn(r.$slots,"default")],40,i0e))}}),a0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},c0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(le(),be("button",a0e,[Y("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},ap=e=>(vu("data-v-96b36737"),e=e(),mu(),e),u0e=["aria-label","data-current"],f0e={key:1,"w-4":""},d0e={key:2,class:"i-logos:typescript-icon","flex-shrink-0":"","mr-2":""},h0e=["text"],p0e={"text-sm":"",truncate:"","font-light":""},g0e=["innerHTML"],v0e={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},m0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},y0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},b0e=ap(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),w0e=ap(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),x0e=ap(()=>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)),_0e={key:1},S0e=gt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=$e(()=>yt.state.idMap.get(e.taskId)),r=$e(()=>{if(Pr)return!1;const E=t.value;return E&&Hh(E)});function o(){e.expandable&&(e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId))}async function s(E){var C;(C=e.onItemClick)==null||C.call(e,E),cs.value&&(Qc.value=!0,await ln()),await Xh([E.file])}function c(E){return yt.rpc.updateSnapshot(E.file)}const f=$e(()=>e.indent<=0?[]:Array.from({length:e.indent},(E,C)=>`${e.taskId}-${C}`)),d=$e(()=>{const E=f.value,C=[];return(e.type==="file"||e.type==="suite")&&C.push("min-content"),C.push("min-content"),e.type==="suite"&&e.typecheck&&C.push("min-content"),C.push("minmax(0, 1fr)"),C.push("min-content"),`grid-template-columns: ${E.map(()=>"1rem").join(" ")} ${C.join(" ")};`}),h=$e(()=>$w(e.name)),p=$e(()=>{const E=Fce.value,C=h.value;return E?C.replace(E,M=>`<span class="highlight">${M}</span>`):C}),v=$e(()=>e.type!=="file"&&e.disableTaskLocation),y=$e(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=$e(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var C;const E=t.value;e.type==="file"?(C=e.onItemClick)==null||C.call(e,E):nfe(E)}return(E,C)=>{const M=N1,N=c0e,L=$o,D=ui("tooltip");return B(t)?(le(),be("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:Zt(B(d)),"aria-label":E.name,"data-current":E.current,onClick:C[2]||(C[2]=A=>o())},[E.indent>0?(le(!0),be(ht,{key:0},si(B(f),A=>(le(),be("div",{key:A,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):rt("",!0),E.type==="file"||E.type==="suite"?(le(),be("div",f0e,[Y("div",{class:st(E.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):rt("",!0),Pe(M,{state:E.state,mode:B(t).mode,"failed-snapshot":B(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),E.type==="suite"&&E.typecheck?(le(),be("div",d0e)):rt("",!0),Y("div",{flex:"","items-end":"","gap-2":"",text:E.state==="fail"?"red-500":"","overflow-hidden":""},[Y("span",p0e,[E.type==="file"&&E.projectName?(le(),be("span",{key:0,style:Zt({color:E.projectNameColor})}," ["+qe(E.projectName)+"] ",5)):rt("",!0),Y("span",{innerHTML:B(p)},null,8,g0e)]),typeof E.duration=="number"?(le(),be("span",v0e,qe(E.duration>0?E.duration:"< 1")+"ms ",1)):rt("",!0)],8,h0e),Y("div",m0e,[!B(Pr)&&B(r)?kt((le(),ot(N,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:C[0]||(C[0]=bc(A=>c(B(t)),["prevent","stop"]))},null,512)),[[D,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):rt("",!0),Pe(B(Ob),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",B(b)])},{popper:lt(()=>[B(v)?(le(),be("div",y0e,[b0e,Y("div",null,[dt(qe(B(y))+": this feature is not available, you have disabled ",1),w0e,dt(" in your configuration file.")]),x0e])):(le(),be("div",_0e,qe(B(y)),1))]),default:lt(()=>[Pe(L,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:bc(x,["prevent","stop"])})]),_:1},8,["class"]),B(Pr)?rt("",!0):kt((le(),ot(L,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:E.type!=="file",onClick:C[1]||(C[1]=bc(A=>s(B(t)),["prevent","stop"]))},null,8,["disabled"])),[[D,"Run current test",void 0,{bottom:!0}]])])],12,u0e)):rt("",!0)}}}),k0e=to(S0e,[["__scopeId","data-v-96b36737"]]),T0e={"flex-1":"","ms-2":"","select-none":""},C0e=gt({__name:"FilterStatus",props:Rc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ah(e,"modelValue");return(r,o)=>(le(),be("label",ii({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=bc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),kt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[fT,t.value]]),Y("span",T0e,qe(r.label),1)],16))}});function E0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ac;function nh(){nh.init||(nh.init=!0,Ac=E0e()!==-1)}var qu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{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",Ac&&this.$el.appendChild(e),e.data="about:blank",Ac||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&&(!Ac&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const L0e=py();vu("data-v-b329ee4c");const A0e={class:"resize-observer",tabindex:"-1"};mu();const M0e=L0e((e,t,r,o,s,c)=>(le(),ot("div",A0e)));qu.render=M0e;qu.__scopeId="data-v-b329ee4c";qu.__file="src/components/ResizeObserver.vue";function Mc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mc=function(t){return typeof t}:Mc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function N0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $0e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O0e(e,t,r){return t&&$0e(e.prototype,t),e}function $0(e){return P0e(e)||R0e(e)||D0e(e)||z0e()}function P0e(e){if(Array.isArray(e))return rh(e)}function R0e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function D0e(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function z0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I0e(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function F0e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),y=1;y<p;y++)v[y-1]=arguments[y];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat($0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat($0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function $1(e,t){if(e===t)return!0;if(Mc(e)==="object"){for(var r in e)if(!$1(e[r],t[r]))return!1;return!0}return!1}var H0e=function(){function e(t,r,o){N0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return O0e(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=I0e(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=F0e(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(y){return y.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function O1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new H0e(e,o,r);e._vue_visibilityState=s}}function q0e(e,t,r){var o=t.value,s=t.oldValue;if(!$1(o,s)){var c=e._vue_visibilityState;if(!o){P1(e);return}c?c.createObserver(o,r):O1(e,{value:o},r)}}function P1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var B0e={beforeMount:O1,updated:q0e,unmounted:P1},W0e={itemsLimit:1e3},U0e=/(auto|scroll)/;function R1(e,t){return e.parentNode===null?t:R1(e.parentNode,t.concat([e]))}var ad=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},V0e=function(t){return ad(t,"overflow")+ad(t,"overflow-y")+ad(t,"overflow-x")},j0e=function(t){return U0e.test(V0e(t))};function O0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=R1(e.parentNode,[]),r=0;r<t.length;r+=1)if(j0e(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=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},ih(e)}var G0e={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 K0e(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var X0e=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,X0e)}catch{}}let Y0e=0;var cp={name:"RecycleScroller",components:{ResizeObserver:qu},directives:{ObserveVisibility:B0e},props:{...G0e,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:K0e,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:Y0e++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,y=this.$_views,b=this.$_unusedViews,x=this.pool,E=this.itemIndexByKey;let C,M,N,L,D;if(!p)C=M=L=D=N=0;else if(this.$_prerender)C=L=0,M=D=Math.min(this.prerender,h.length),N=null;else{const j=this.getScroll();if(t){let V=j.start-this.$_lastUpdateScrollPosition;if(V<0&&(V=-V),r===null&&V<c||V<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const te=this.buffer;j.start-=te,j.end+=te;let K=0;if(this.$refs.before&&(K=this.$refs.before.scrollHeight,j.start-=K),this.$refs.after){const V=this.$refs.after.scrollHeight;j.end+=V}if(r===null){let V,I=0,k=p-1,q=~~(p/2),W;do W=q,V=v[q].accumulator,V<j.start?I=q:q<p-1&&v[q+1].accumulator>j.start&&(k=q),q=~~((I+k)/2);while(q!==W);for(q<0&&(q=0),C=q,N=v[p-1].accumulator,M=q;M<p&&v[M].accumulator<j.end;M++);for(M===-1?M=h.length-1:(M++,M>p&&(M=p)),L=C;L<p&&K+v[L].accumulator<j.start;L++);for(D=L;D<p&&K+v[D].accumulator<j.end;D++);}else{C=~~(j.start/r*o);const V=C%o;C-=V,M=Math.ceil(j.end/r*o),L=Math.max(0,Math.floor((j.start-K)/r*o)),D=Math.floor((j.end-K)/r*o),C<0&&(C=0),M>p&&(M=p),L<0&&(L=0),D>p&&(D=p),N=Math.ceil(p/o)*r}}M-C>W0e.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let A;const H=C<=this.$_endIndex&&M>=this.$_startIndex;if(H)for(let j=0,te=x.length;j<te;j++)A=x[j],A.nr.used&&(e&&(A.nr.index=E[A.item[d]]),(A.nr.index==null||A.nr.index<C||A.nr.index>=M)&&this.unuseView(A));const z=H?null:new Map;let J,ie,ne;for(let j=C;j<M;j++){J=h[j];const te=d?J[d]:J;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(A=y.get(te),!r&&!v[j].size){A&&this.unuseView(A);continue}ie=J[f];let K=b.get(ie),V=!1;if(!A)H?K&&K.length?A=K.pop():A=this.addView(x,j,J,te,ie):(ne=z.get(ie)||0,(!K||ne>=K.length)&&(A=this.addView(x,j,J,te,ie),this.unuseView(A,!0),K=b.get(ie)),A=K[ne],z.set(ie,ne+1)),y.delete(A.nr.key),A.nr.used=!0,A.nr.index=j,A.nr.key=te,A.nr.type=ie,y.set(te,A),V=!0;else if(!A.nr.used&&(A.nr.used=!0,V=!0,K)){const I=K.indexOf(A);I!==-1&&K.splice(I,1)}A.item=J,V&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(A.position=v[j-1].accumulator,A.offset=0):(A.position=Math.floor(j/o)*r,A.offset=j%o*s)}return this.$_startIndex=C,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",C,M,L,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:H}},getListenerTarget(){let e=O0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=O0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Z0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},J0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Q0e(e,t,r,o,s,c){const f=Lo("ResizeObserver"),d=ui("observe-visibility");return kt((le(),be("div",{class:st(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(le(),be("div",Z0e,[hn(e.$slots,"before")],512)):rt("v-if",!0),(le(),ot(xv(r.listTag),{ref:"wrapper",style:Zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:lt(()=>[(le(!0),be(ht,null,si(s.pool,h=>(le(),ot(xv(r.itemTag),ii({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},QS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:lt(()=>[hn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),hn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(le(),be("div",J0e,[hn(e.$slots,"after")],512)):rt("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=Q0e;cp.__file="src/components/RecycleScroller.vue";function eye(e){const t=$e(()=>Hd.value?!1:!Qe.onlyTests),r=$e(()=>On.value===""),o=je(On.value);yw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,y,b){Cs.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=y,on.value.onlyTests=b)}return qt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Ce.filterNodes()},{flush:"post"}),qt(()=>_r.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Cs,filter:Qe,search:On,disableFilter:t,isFiltered:Ow,isFilteredByStatus:Hd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Ru,testsTotal:Hce,uiEntries:zn}}const tye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},rye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),iye=["op"],oye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),sye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),lye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},aye={"text-red5":""},cye=Y("span",null,"/",-1),uye={"text-yellow5":""},fye={"text-green5":""},dye=Y("span",null,"/",-1),hye={class:"text-purple5:50"},pye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},gye=Y("div",{op30:""}," No matched test ",-1),vye=["disabled"],mye=["disabled"],yye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},bye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),wye=Y("div",{op30:""}," Loading... ",-1),xye=[bye,wye],_ye=gt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=$e(()=>zu.value.includeTaskLocation),s=je(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:y,clearAll:b,clearSearch:x,clearFilter:E,filteredFiles:C,testsTotal:M,uiEntries:N}=eye(s),L=je("grid-cols-2"),D=je("grid-col-span-2"),A=je();return kw(A,H=>{const{width:z}=H[0].contentRect;z<420?(L.value="grid-cols-2",D.value="grid-col-span-2"):(L.value="grid-cols-4",D.value="grid-col-span-4")}),(H,z)=>{const J=$o,ie=C0e,ne=k0e,j=l0e,te=ui("tooltip");return le(),be("div",{ref_key:"testExplorerRef",ref:A,h:"full",flex:"~ col"},[Y("div",null,[Y("div",tye,[hn(H.$slots,"header",{filteredFiles:B(p)||B(v)?B(C):void 0})]),Y("div",nye,[rye,kt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":z[0]||(z[0]=K=>It(d)?d.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:B(d).length?"100":"50",onKeydown:[z[1]||(z[1]=kd(K=>B(x)(!1),["esc"])),z[2]||(z[2]=kd(K=>r("run",B(p)||B(v)?B(C):void 0),["enter"]))]},null,40,iye),[[uT,B(d)]]),kt(Pe(J,{disabled:B(y),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[3]||(z[3]=K=>B(x)(!0))},null,8,["disabled"]),[[te,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(B(L))},[Y("div",{class:st(B(D)),flex:"~ gap-2 items-center"},[oye,sye,kt(Pe(J,{disabled:B(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[4]||(z[4]=K=>B(E)(!1))},null,8,["disabled"]),[[te,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ie,{modelValue:B(f).failed,"onUpdate:modelValue":z[5]||(z[5]=K=>B(f).failed=K),label:"Fail"},null,8,["modelValue"]),Pe(ie,{modelValue:B(f).success,"onUpdate:modelValue":z[6]||(z[6]=K=>B(f).success=K),label:"Pass"},null,8,["modelValue"]),Pe(ie,{modelValue:B(f).skipped,"onUpdate:modelValue":z[7]||(z[7]=K=>B(f).skipped=K),label:"Skip"},null,8,["modelValue"]),Pe(ie,{modelValue:B(f).onlyTests,"onUpdate:modelValue":z[8]||(z[8]=K=>B(f).onlyTests=K),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:z[12]||(z[12]=(...K)=>B(Mm)&&B(Mm)(...K))},[Pe(j,null,JS({default:lt(()=>[(B(p)||B(v))&&B(N).length===0?(le(),be(ht,{key:0},[B(c)?(le(),be("div",pye,[gye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(B(y)?null:"hover:op100"),disabled:B(y),onClickPassive:z[9]||(z[9]=K=>B(x)(!0))}," Clear Search ",42,vye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(B(h)?null:"hover:op100"),disabled:B(h),onClickPassive:z[10]||(z[10]=K=>B(E)(!0))}," Clear Filter ",42,mye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:z[11]||(z[11]=(...K)=>B(b)&&B(b)(...K))}," Clear All ",32)])):(le(),be("div",yye,xye))],64)):(le(),ot(B(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:B(N),buffer:100},{default:lt(({item:K})=>[Pe(ne,{class:st(["h-28px m-0 p-0",B(Xi)===K.id?"bg-active":""]),"task-id":K.id,expandable:K.expandable,type:K.type,current:B(Xi)===K.id,indent:K.indent,name:K.name,typecheck:K.typecheck===!0,"project-name":K.projectName??"","project-name-color":K.projectNameColor??"",state:K.state,duration:K.duration,opened:K.expanded,"disable-task-location":!B(o),"on-item-click":H.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[B(c)?{name:"summary",fn:lt(()=>[Y("div",lye,[Y("span",aye," FAIL ("+qe(B(M).failed)+") ",1),cye,Y("span",uye," RUNNING ("+qe(B(M).running)+") ",1),Y("span",fye," PASS ("+qe(B(M).success)+") ",1),dye,Y("span",hye," SKIP ("+qe(B(f).onlyTests?B(M).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Sye=""+new URL("../favicon.svg",import.meta.url).href,kye=Y("img",{"w-6":"","h-6":"",src:Sye,alt:"Vitest logo"},null,-1),Tye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Cye={class:"flex text-lg"},Eye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Lye=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),Aye=gt({__name:"Navigation",setup(e){function t(){return yt.rpc.updateSnapshot()}const r=$e(()=>da.value?"light":"dark");async function o(f){cs.value&&(Qc.value=!0,await ln(),Yi.value&&(eu(!0),await ln())),f!=null&&f.length?await Xh(f):await vue()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=$o,p=_ye,v=ui("tooltip");return le(),ot(p,{border:"r base","on-item-click":B(Ww),nested:!0,onRun:o},{header:lt(({filteredFiles:y})=>[kye,Tye,Y("div",Cye,[kt(Pe(h,{title:"Collapse tests",disabled:!B(Cs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[vl,!B(r0)],[v,"Collapse tests",void 0,{bottom:!0}]]),kt(Pe(h,{disabled:!B(Cs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[vl,B(r0)],[v,"Expand tests",void 0,{bottom:!0}]]),kt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>B(eu)(!0))},null,512),[[vl,B(Ud)&&!B(cs)||!B(vs)],[v,"Dashboard",void 0,{bottom:!0}]]),B(Ud)&&!B(cs)?(le(),ot(B(Ob),{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:lt(()=>[Lye]),default:lt(()=>[Eye]),_:1})):rt("",!0),B(cs)?kt((le(),ot(h,{key:1,disabled:B(Qc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>B(Sue)())},null,8,["disabled"])),[[vl,!B(Yi)],[v,"Coverage",void 0,{bottom:!0}]]):rt("",!0),B(Ce).summary.failedSnapshot&&!B(Pr)?kt((le(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!B(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>B(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):rt("",!0),B(Pr)?rt("",!0):kt((le(),ot(h,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:b=>o(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),kt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>B(Nue)())},null,512),[[v,`Toggle to ${B(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Mye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Nye=gt({__name:"ProgressBar",setup(e){const{width:t}=gce(),r=$e(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":zce.value?null:"in-progress"),o=$e(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=$e(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=$e(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=$e(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(le(),be("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:st(B(r))},[Y("div",Mye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(B(r)),style:Zt(`width: ${B(s)}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(B(r)),style:Zt(`left: ${B(s)}px; width: ${B(o)}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(B(r)),style:Zt(`left: ${B(o)+B(s)}px; width: ${B(f)}px;`)},"   ",6)])],2))}}),$ye=to(Nye,[["__scopeId","data-v-38451300"]]),P0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return aa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Oye=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},Pye={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Rye(e,t,r,o,s,c){return le(),be("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Zt(e.style)},[hn(e.$slots,"default")],4)}const hc=Oye(Pye,[["render",Rye]]),Dye={"h-screen":"","w-screen":"",overflow:"hidden"},zye=gt({__name:"index",setup(e){const t=_ue(),r=Pu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),o=t0(f=>{f.forEach((d,h)=>{r.value[h]=d.size})},0),s=t0(f=>{f.forEach((d,h)=>{kc.value[h]=d.size}),rd(!1)},0);function c(){const f=window.innerWidth,d=Math.min(f/3,300);r.value[0]=100*d/f,r.value[1]=100-r.value[0]}return(f,d)=>{const h=$ye,p=Aye,v=r0e,y=Zve,b=jve,x=Mue,E=wue;return le(),be(ht,null,[Pe(h),Y("div",Dye,[Pe(B(P0),{class:"pt-4px",onResized:B(o),onResize:d[2]||(d[2]=C=>B(rd)(!0)),onReady:c},{default:lt(()=>[Pe(B(hc),{size:B(r)[0]},{default:lt(()=>[Pe(p)]),_:1},8,["size"]),Pe(B(hc),{size:B(r)[1]},{default:lt(()=>[B(Zl)?(le(),ot(B(P0),{id:"details-splitpanes",key:"browser-detail",onResize:d[1]||(d[1]=C=>B(rd)(!0)),onResized:B(s)},{default:lt(()=>[Pe(B(hc),{size:B(kc)[0],"min-size":"10"},{default:lt(()=>[d[0]||(Ic(-1),d[0]=Pe(x),Ic(1),d[0])]),_:1},8,["size"]),Pe(B(hc),{size:B(kc)[1],"min-size":"5"},{default:lt(()=>[B(t)?(le(),ot(v,{key:"summary"})):B(Yi)?(le(),ot(y,{key:"coverage",src:B(l0)},null,8,["src"])):(le(),ot(b,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResized"])):(le(),ot(Mh,{key:"ui-detail"},{default:lt(()=>[B(t)?(le(),ot(v,{key:"summary"})):B(Yi)?(le(),ot(y,{key:"coverage",src:B(l0)},null,8,["src"])):(le(),ot(b,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized"])]),Pe(E)],64)}}}),Iye=[{name:"index",path:"/",component:zye,props:!0}],Fye={tooltip:kE};Pb.options.instantMove=!0;Pb.options.distance=10;function Hye(){return CC({history:eC(),routes:Iye})}const qye=[Hye],up=Gy(_T);qye.forEach(e=>{up.use(e())});Object.entries(Fye).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");