@vitest/browser 2.0.0-beta.11 → 2.0.0-beta.12
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.
- package/context.d.ts +5 -0
- package/dist/client/.vite/manifest.json +7 -7
- package/dist/client/__vitest__/assets/index-BcWipdNi.js +52 -0
- package/dist/client/__vitest__/assets/index-goqgbqVs.css +1 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{rpc-D6HtJ5Rb.js → client-Dz5Ebwug.js} +28 -65
- package/dist/client/__vitest_browser__/{orchestrator-DQ4hbmZ_.js → orchestrator-DJ6H4qlM.js} +192 -159
- package/dist/client/__vitest_browser__/tester-DHXll_4H.js +12164 -0
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/context.js +4 -1
- package/dist/index.d.ts +22 -3
- package/dist/index.js +210 -45
- package/dist/providers.js +1 -1
- package/dist/state.js +1 -1
- package/dist/{webdriver-BRud6NtS.js → webdriver-CJA71Bgl.js} +49 -2
- package/jest-dom.d.ts +816 -0
- package/matchers.d.ts +22 -0
- package/package.json +11 -7
- package/providers/playwright.d.ts +25 -1
- package/providers/webdriverio.d.ts +1 -0
- package/dist/client/__vitest__/assets/index-BfnqOMHY.js +0 -51
- package/dist/client/__vitest__/assets/index-qZYZB8Y3.css +0 -1
- package/dist/client/__vitest_browser__/tester-IF8AbWCS.js +0 -837
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var E_=Object.defineProperty;var L_=(e,t,r)=>t in e?E_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jr=(e,t,r)=>(L_(e,typeof t!="symbol"?t+"":t,r),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.29
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Yd(e,t){const r=new Set(e.split(","));return o=>r.has(o)}const _t={},as=[],Kn=()=>{},A_=()=>!1,ou=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zd=e=>e.startsWith("onUpdate:"),zt=Object.assign,Jd=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},M_=Object.prototype.hasOwnProperty,at=(e,t)=>M_.call(e,t),ze=Array.isArray,cs=e=>ta(e)==="[object Map]",su=e=>ta(e)==="[object Set]",ov=e=>ta(e)==="[object Date]",Xe=e=>typeof e=="function",$t=e=>typeof e=="string",ri=e=>typeof e=="symbol",xt=e=>e!==null&&typeof e=="object",A0=e=>(xt(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),M0=Object.prototype.toString,ta=e=>M0.call(e),N_=e=>ta(e).slice(8,-1),N0=e=>ta(e)==="[object Object]",Qd=e=>$t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yl=Yd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},$_=/-(\w)/g,yr=lu(e=>e.replace($_,(t,r)=>r?r.toUpperCase():"")),O_=/\B([A-Z])/g,Yi=lu(e=>e.replace(O_,"-$1").toLowerCase()),au=lu(e=>e.charAt(0).toUpperCase()+e.slice(1)),dc=lu(e=>e?`on${au(e)}`:""),Pr=(e,t)=>!Object.is(e,t),hc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},$0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},nd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},O0=e=>{const t=$t(e)?Number(e):NaN;return isNaN(t)?e:t};let sv;const P0=()=>sv||(sv=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)?z_(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 P_=/;(?![^(]*\))/g,R_=/:([^]+)/,D_=/\/\*[^]*?\*\//g;function z_(e){const t={};return e.replace(D_,"").split(P_).forEach(r=>{if(r){const o=r.split(R_);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 I_(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 F_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",H_=Yd(F_);function R0(e){return!!e||e===""}function q_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=cu(e[o],t[o]);return r}function cu(e,t){if(e===t)return!0;let r=ov(e),o=ov(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=ri(e),o=ri(t),r||o)return e===t;if(r=ze(e),o=ze(t),r||o)return r&&o?q_(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||!cu(e[f],t[f]))return!1}}return String(e)===String(t)}function D0(e,t){return e.findIndex(r=>cu(r,t))}const Ge=e=>$t(e)?e:e==null?"":ze(e)||xt(e)&&(e.toString===M0||!Xe(e.toString))?JSON.stringify(e,z0,2):String(e),z0=(e,t)=>t&&t.__v_isRef?z0(e,t.value):cs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Nf(o,c)+" =>"]=s,r),{})}:su(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Nf(r))}:ri(t)?Nf(t):xt(t)&&!ze(t)&&!N0(t)?String(t):t,Nf=(e,t="")=>{var r;return ri(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.4.29
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Fn;class B_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fn,!t&&Fn&&(this.index=(Fn.scopes||(Fn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Fn;try{return Fn=this,t()}finally{Fn=r}}}on(){Fn=this}off(){Fn=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 W_(e,t=Fn){t&&t.active&&t.effects.push(e)}function I0(){return Fn}function U_(e){Fn&&Fn.cleanups.push(e)}let ko;class eh{constructor(t,r,o,s){this.fn=t,this.trigger=r,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=5,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,W_(this,s)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,Zi();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed){if(r.computed.effect._dirtyLevel===2)return!0;if(V_(r.computed),this._dirtyLevel>=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Ji()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Hi,r=ko;try{return Hi=!0,ko=this,this._runnings++,lv(this),this.fn()}finally{av(this),this._runnings--,ko=r,Hi=t}}stop(){this.active&&(lv(this),av(this),this.onStop&&this.onStop(),this.active=!1)}}function V_(e){return e.value}function lv(e){e._trackId++,e._depsLength=0}function av(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)F0(e.deps[t],e);e.deps.length=e._depsLength}}function F0(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Hi=!0,rd=0;const H0=[];function Zi(){H0.push(Hi),Hi=!1}function Ji(){const e=H0.pop();Hi=e===void 0?!0:e}function th(){rd++}function nh(){for(rd--;!rd&&id.length;)id.shift()()}function q0(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&F0(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const id=[];function B0(e,t,r){th();for(const o of e.keys()){if(!e.computed&&o.computed&&e.get(o)===o._trackId&&o._runnings>0){o._dirtyLevel=2;continue}let s;o._dirtyLevel<t&&(s??(s=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o.computed&&o._dirtyLevel===2&&(o._shouldSchedule=!0),o._dirtyLevel=t),o._shouldSchedule&&(s??(s=e.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==3&&(o._shouldSchedule=!1,o.scheduler&&id.push(o.scheduler)))}nh()}const W0=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},Mc=new WeakMap,To=Symbol(""),od=Symbol("");function Pn(e,t,r){if(Hi&&ko){let o=Mc.get(e);o||Mc.set(e,o=new Map);let s=o.get(r);s||o.set(r,s=W0(()=>o.delete(r))),q0(ko,s)}}function Qr(e,t,r,o,s,c){const f=Mc.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"||!ri(v)&&v>=h)&&d.push(p)})}else switch(r!==void 0&&d.push(f.get(r)),t){case"add":ze(e)?Qd(r)&&d.push(f.get("length")):(d.push(f.get(To)),cs(e)&&d.push(f.get(od)));break;case"delete":ze(e)||(d.push(f.get(To)),cs(e)&&d.push(f.get(od)));break;case"set":cs(e)&&d.push(f.get(To));break}th();for(const h of d)h&&B0(h,5);nh()}function j_(e,t){const r=Mc.get(e);return r&&r.get(t)}const G_=Yd("__proto__,__v_isRef,__isVue"),U0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ri)),cv=K_();function K_(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=ht(this);for(let c=0,f=this.length;c<f;c++)Pn(o,"get",c+"");const s=o[t](...r);return s===-1||s===!1?o[t](...r.map(ht)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Zi(),th();const o=ht(this)[t].apply(this,r);return nh(),Ji(),o}}),e}function X_(e){ri(e)||(e=String(e));const t=ht(this);return Pn(t,"has",e),t.hasOwnProperty(e)}class V0{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?aS:X0:c?K0:G0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=ze(t);if(!s){if(f&&at(cv,r))return Reflect.get(cv,r,o);if(r==="hasOwnProperty")return X_}const d=Reflect.get(t,r,o);return(ri(r)?U0.has(r):G_(r))||(s||Pn(t,"get",r),c)?d:It(d)?f&&Qd(r)?d:d.value:xt(d)?s?na(d):Zn(d):d}}class j0 extends V0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=Ol(c);if(!Nc(o)&&!Ol(o)&&(c=ht(c),o=ht(o)),!ze(t)&&It(c)&&!It(o))return h?!1:(c.value=o,!0)}const f=ze(t)&&Qd(r)?Number(r)<t.length:at(t,r),d=Reflect.set(t,r,o,s);return t===ht(s)&&(f?Pr(o,c)&&Qr(t,"set",r,o):Qr(t,"add",r,o)),d}deleteProperty(t,r){const o=at(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&Qr(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!ri(r)||!U0.has(r))&&Pn(t,"has",r),o}ownKeys(t){return Pn(t,"iterate",ze(t)?"length":To),Reflect.ownKeys(t)}}class Y_ extends V0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Z_=new j0,J_=new Y_,Q_=new j0(!0);const rh=e=>e,uu=e=>Reflect.getPrototypeOf(e);function ja(e,t,r=!1,o=!1){e=e.__v_raw;const s=ht(e),c=ht(t);r||(Pr(t,c)&&Pn(s,"get",t),Pn(s,"get",c));const{has:f}=uu(s),d=o?rh:r?ah:Pl;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 Ga(e,t=!1){const r=this.__v_raw,o=ht(r),s=ht(e);return t||(Pr(e,s)&&Pn(o,"has",e),Pn(o,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function Ka(e,t=!1){return e=e.__v_raw,!t&&Pn(ht(e),"iterate",To),Reflect.get(e,"size",e)}function uv(e){e=ht(e);const t=ht(this);return uu(t).has.call(t,e)||(t.add(e),Qr(t,"add",e,e)),this}function fv(e,t){t=ht(t);const r=ht(this),{has:o,get:s}=uu(r);let c=o.call(r,e);c||(e=ht(e),c=o.call(r,e));const f=s.call(r,e);return r.set(e,t),c?Pr(t,f)&&Qr(r,"set",e,t):Qr(r,"add",e,t),this}function dv(e){const t=ht(this),{has:r,get:o}=uu(t);let s=r.call(t,e);s||(e=ht(e),s=r.call(t,e)),o&&o.call(t,e);const c=t.delete(e);return s&&Qr(t,"delete",e,void 0),c}function hv(){const e=ht(this),t=e.size!==0,r=e.clear();return t&&Qr(e,"clear",void 0,void 0),r}function Xa(e,t){return function(o,s){const c=this,f=c.__v_raw,d=ht(f),h=t?rh:e?ah:Pl;return!e&&Pn(d,"iterate",To),f.forEach((p,v)=>o.call(s,h(p),h(v),c))}}function Ya(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=cs(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?rh:t?ah:Pl;return!t&&Pn(c,"iterate",h?od:To),{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 Si(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eS(){const e={get(c){return ja(this,c)},get size(){return Ka(this)},has:Ga,add:uv,set:fv,delete:dv,clear:hv,forEach:Xa(!1,!1)},t={get(c){return ja(this,c,!1,!0)},get size(){return Ka(this)},has:Ga,add:uv,set:fv,delete:dv,clear:hv,forEach:Xa(!1,!0)},r={get(c){return ja(this,c,!0)},get size(){return Ka(this,!0)},has(c){return Ga.call(this,c,!0)},add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear"),forEach:Xa(!0,!1)},o={get(c){return ja(this,c,!0,!0)},get size(){return Ka(this,!0)},has(c){return Ga.call(this,c,!0)},add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear"),forEach:Xa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{e[c]=Ya(c,!1,!1),r[c]=Ya(c,!0,!1),t[c]=Ya(c,!1,!0),o[c]=Ya(c,!0,!0)}),[e,r,t,o]}const[tS,nS,rS,iS]=eS();function ih(e,t){const r=t?e?iS:rS:e?nS:tS;return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(at(r,s)&&s in o?r:o,s,c)}const oS={get:ih(!1,!1)},sS={get:ih(!1,!0)},lS={get:ih(!0,!1)};const G0=new WeakMap,K0=new WeakMap,X0=new WeakMap,aS=new WeakMap;function cS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uS(e){return e.__v_skip||!Object.isExtensible(e)?0:cS(N_(e))}function Zn(e){return Ol(e)?e:sh(e,!1,Z_,oS,G0)}function oh(e){return sh(e,!1,Q_,sS,K0)}function na(e){return sh(e,!0,J_,lS,X0)}function sh(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=uS(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function bl(e){return Ol(e)?bl(e.__v_raw):!!(e&&e.__v_isReactive)}function Ol(e){return!!(e&&e.__v_isReadonly)}function Nc(e){return!!(e&&e.__v_isShallow)}function Y0(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function lh(e){return Object.isExtensible(e)&&$0(e,"__v_skip",!0),e}const Pl=e=>xt(e)?Zn(e):e,ah=e=>xt(e)?na(e):e;class Z0{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 eh(()=>t(this._value),()=>wl(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=ht(this);return(!t._cacheable||t.effect.dirty)&&Pr(t._value,t._value=t.effect.run())&&wl(t,5),ch(t),t.effect._dirtyLevel>=2&&wl(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function fS(e,t,r=!1){let o,s;const c=Xe(e);return c?(o=e,s=Kn):(o=e.get,s=e.set),new Z0(o,s,c||!s,r)}function ch(e){var t;Hi&&ko&&(e=ht(e),q0(ko,(t=e.dep)!=null?t:e.dep=W0(()=>e.dep=void 0,e instanceof Z0?e:void 0)))}function wl(e,t=5,r,o){e=ht(e);const s=e.dep;s&&B0(s,t)}function It(e){return!!(e&&e.__v_isRef===!0)}function Ke(e){return J0(e,!1)}function Dr(e){return J0(e,!0)}function J0(e,t){return It(e)?e:new dS(e,t)}class dS{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ht(t),this._value=r?t:Pl(t)}get value(){return ch(this),this._value}set value(t){const r=this.__v_isShallow||Nc(t)||Ol(t);t=r?t:ht(t),Pr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=r?t:Pl(t),wl(this,5))}}function q(e){return It(e)?e.value:e}const hS={get:(e,t,r)=>q(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 Q0(e){return bl(e)?e:new Proxy(e,hS)}class pS{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=t(()=>ch(this),()=>wl(this));this._get=r,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ey(e){return new pS(e)}function gS(e){const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=ty(e,r);return t}class vS{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 j_(ht(this._object),this._key)}}class mS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function uh(e,t,r){return It(e)?e:Xe(e)?new mS(e):xt(e)&&arguments.length>1?ty(e,t,r):Ke(e)}function ty(e,t,r){const o=e[t];return It(o)?o:new vS(e,t,r)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.29
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function qi(e,t,r,o){try{return o?e(...o):e()}catch(s){ra(s,t,r)}}function Jn(e,t,r,o){if(Xe(e)){const s=qi(e,t,r,o);return s&&A0(s)&&s.catch(c=>{ra(c,t,r)}),s}if(ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Jn(e[c],t,r,o));return s}}function ra(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){Zi(),qi(h,null,10,[e,f,d]),Ji();return}}yS(e,r,s,o)}function yS(e,t,r,o=!0){console.error(e)}let Rl=!1,sd=!1;const un=[];let Ar=0;const us=[];let Mi=null,wo=0;const ny=Promise.resolve();let fh=null;function er(e){const t=fh||ny;return e?t.then(this?e.bind(this):e):t}function bS(e){let t=Ar+1,r=un.length;for(;t<r;){const o=t+r>>>1,s=un[o],c=Dl(s);c<e||c===e&&s.pre?t=o+1:r=o}return t}function dh(e){(!un.length||!un.includes(e,Rl&&e.allowRecurse?Ar+1:Ar))&&(e.id==null?un.push(e):un.splice(bS(e.id),0,e),ry())}function ry(){!Rl&&!sd&&(sd=!0,fh=ny.then(oy))}function wS(e){const t=un.indexOf(e);t>Ar&&un.splice(t,1)}function ld(e){ze(e)?us.push(...e):(!Mi||!Mi.includes(e,e.allowRecurse?wo+1:wo))&&us.push(e),ry()}function pv(e,t,r=Rl?Ar+1:0){for(;r<un.length;r++){const o=un[r];if(o&&o.pre){if(e&&o.id!==e.uid)continue;un.splice(r,1),r--,o()}}}function iy(e){if(us.length){const t=[...new Set(us)].sort((r,o)=>Dl(r)-Dl(o));if(us.length=0,Mi){Mi.push(...t);return}for(Mi=t,wo=0;wo<Mi.length;wo++){const r=Mi[wo];r.active!==!1&&r()}Mi=null,wo=0}}const Dl=e=>e.id==null?1/0:e.id,xS=(e,t)=>{const r=Dl(e)-Dl(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function oy(e){sd=!1,Rl=!0,un.sort(xS);try{for(Ar=0;Ar<un.length;Ar++){const t=un[Ar];t&&t.active!==!1&&qi(t,null,14)}}finally{Ar=0,un.length=0,iy(),Rl=!1,fh=null,(un.length||us.length)&&oy()}}function _S(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(_=>$t(_)?_.trim():_)),y&&(s=r.map(nd))}let d,h=o[d=dc(t)]||o[d=dc(yr(t))];!h&&c&&(h=o[d=dc(Yi(t))]),h&&Jn(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,Jn(p,e,6,s)}}function sy(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=sy(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 fu(e,t){return!e||!ou(t)?!1:(t=t.slice(2).replace(/Once$/,""),at(e,t[0].toLowerCase()+t.slice(1))||at(e,Yi(t))||at(e,t))}let Yt=null,du=null;function $c(e){const t=Yt;return Yt=e,du=e&&e.type.__scopeId||null,t}function hh(e){du=e}function ph(){du=null}const ly=e=>ct;function ct(e,t=Yt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&zc(-1);const c=$c(t);let f;try{f=e(...s)}finally{$c(c),o._d&&zc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function $f(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:_,ctx:L,inheritAttrs:C}=e,N=$c(e);let A,E;try{if(r.shapeFlag&4){const M=s||o,z=M;A=pr(p.call(z,M,v,y,_,b,L)),E=d}else{const M=t;A=pr(M.length>1?M(y,{attrs:d,slots:f,emit:h}):M(y,null)),E=t.props?d:kS(d)}}catch(M){kl.length=0,ra(M,e,1),A=Pe(fn)}let O=A;if(E&&C!==!1){const M=Object.keys(E),{shapeFlag:z}=O;M.length&&z&7&&(c&&M.some(Zd)&&(E=TS(E,c)),O=Ui(O,E,!1,!0))}return r.dirs&&(O=Ui(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(r.dirs):r.dirs),r.transition&&(O.transition=r.transition),A=O,$c(N),A}function SS(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Il(s)){if(s.type!==fn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const kS=e=>{let t;for(const r in e)(r==="class"||r==="style"||ou(r))&&((t||(t={}))[r]=e[r]);return t},TS=(e,t)=>{const r={};for(const o in e)(!Zd(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function CS(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?gv(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]&&!fu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?gv(o,f,p):!0:!!f;return!1}function gv(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]&&!fu(r,c))return!0}return!1}function gh({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 vh="components",ES="directives";function Eo(e,t){return mh(vh,e,!0,t)||e}const ay=Symbol.for("v-ndc");function vv(e){return $t(e)?mh(vh,e,!1)||e:e||ay}function ai(e){return mh(ES,e)}function mh(e,t,r=!0,o=!1){const s=Yt||sn;if(s){const c=s.type;if(e===vh){const d=Ak(c,!1);if(d&&(d===t||d===yr(t)||d===au(yr(t))))return c}const f=mv(s[e]||c[e],t)||mv(s.appContext[e],t);return!f&&o?c:f}}function mv(e,t){return e&&(e[t]||e[yr(t)]||e[au(yr(t))])}const LS=e=>e.__isSuspense;let ad=0;const AS={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)NS(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}$S(e,t,r,o,s,f,d,h,p)}},hydrate:OS,create:yh,normalize:PS},MS=AS;function zl(e,t){const r=e.props&&e.props[t];Xe(r)&&r()}function NS(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,y=v("div"),b=e.suspense=yh(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?(zl(e,"onPending"),zl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),fs(b,e.ssFallback)):b.resolve(!1,!0)}function $S(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,_=t.ssFallback,{activeBranch:L,pendingBranch:C,isInFallback:N,isHydrating:A}=y;if(C)y.pendingBranch=b,Mr(b,C)?(h(C,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():N&&(A||(h(L,_,r,o,s,null,c,f,d),fs(y,_)))):(y.pendingId=ad++,A?(y.isHydrating=!1,y.activeBranch=C):p(C,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),N?(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():(h(L,_,r,o,s,null,c,f,d),fs(y,_))):L&&Mr(b,L)?(h(L,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(L&&Mr(b,L))h(L,b,r,o,s,y,c,f,d),fs(y,b);else if(zl(t,"onPending"),y.pendingBranch=b,b.shapeFlag&512?y.pendingId=b.component.suspenseId:y.pendingId=ad++,h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0)y.resolve();else{const{timeout:E,pendingId:O}=y;E>0?setTimeout(()=>{y.pendingId===O&&y.fallback(_)},E):E===0&&y.fallback(_)}}function yh(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:y,m:b,um:_,n:L,o:{parentNode:C,remove:N}}=p;let A;const E=DS(e);E&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const O=e.props?O0(e.props.timeout):void 0,M=c,z={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:ad++,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(B=!1,ne=!1){const{vnode:re,activeBranch:oe,pendingBranch:G,pendingId:X,effects:Q,parentComponent:V,container:I}=z;let k=!1;z.isHydrating?z.isHydrating=!1:B||(k=oe&&G.transition&&G.transition.mode==="out-in",k&&(oe.transition.afterLeave=()=>{X===z.pendingId&&(b(G,I,c===M?L(oe):c,0),ld(Q))}),oe&&(C(oe.el)!==z.hiddenContainer&&(c=L(oe)),_(oe,V,z,!0)),k||b(G,I,c,0)),fs(z,G),z.pendingBranch=null,z.isInFallback=!1;let H=z.parent,W=!1;for(;H;){if(H.pendingBranch){H.effects.push(...Q),W=!0;break}H=H.parent}!W&&!k&&ld(Q),z.effects=[],E&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!ne&&t.resolve()),zl(re,"onResolve")},fallback(B){if(!z.pendingBranch)return;const{vnode:ne,activeBranch:re,parentComponent:oe,container:G,namespace:X}=z;zl(ne,"onFallback");const Q=L(re),V=()=>{z.isInFallback&&(y(null,B,G,Q,oe,null,X,d,h),fs(z,B))},I=B.transition&&B.transition.mode==="out-in";I&&(re.transition.afterLeave=V),z.isInFallback=!0,_(re,oe,null,!0),I||V()},move(B,ne,re){z.activeBranch&&b(z.activeBranch,B,ne,re),z.container=B},next(){return z.activeBranch&&L(z.activeBranch)},registerDep(B,ne,re){const oe=!!z.pendingBranch;oe&&z.deps++;const G=B.vnode.el;B.asyncDep.catch(X=>{ra(X,B,0)}).then(X=>{if(B.isUnmounted||z.isUnmounted||z.pendingId!==B.suspenseId)return;B.asyncResolved=!0;const{vnode:Q}=B;vd(B,X,!1),G&&(Q.el=G);const V=!G&&B.subTree.el;ne(B,Q,C(G||B.subTree.el),G?null:L(B.subTree),z,f,re),V&&N(V),gh(B,Q.el),oe&&--z.deps===0&&z.resolve()})},unmount(B,ne){z.isUnmounted=!0,z.activeBranch&&_(z.activeBranch,r,B,ne),z.pendingBranch&&_(z.pendingBranch,r,B,ne)}};return z}function OS(e,t,r,o,s,c,f,d,h){const p=t.suspense=yh(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 PS(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=yv(o?r.default:r),e.ssFallback=o?yv(r.fallback):Pe(fn)}function yv(e){let t;if(Xe(e)){const r=ys&&e._c;r&&(e._d=!1,le()),e=e(),r&&(e._d=!0,t=Xn,Ay())}return ze(e)&&(e=SS(e)),e=pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function RS(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):ld(e)}function fs(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,gh(o,s))}function DS(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function hu(e,t,r=sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Zi();const d=oa(r),h=Jn(t,r,e,f);return d(),Ji(),h});return o?s.unshift(c):s.push(c),c}}const ci=e=>(t,r=sn)=>{(!mu||e==="sp")&&hu(e,(...o)=>t(...o),r)},zS=ci("bm"),Ls=ci("m"),IS=ci("bu"),FS=ci("u"),cy=ci("bum"),bh=ci("um"),HS=ci("sp"),qS=ci("rtg"),BS=ci("rtc");function WS(e,t=sn){hu("ec",e,t)}function St(e,t){if(Yt===null)return e;const r=yu(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&&Di(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function po(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&&(Zi(),Jn(h,r,8,[e.el,d,e,t]),Ji())}}function ii(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 US(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 pt(e,t){return Xe(e)?zt({name:e.name},t,{setup:e}):e}const xl=e=>!!e.type.__asyncLoader;function dn(e,t,r={},o,s){if(Yt.isCE||Yt.parent&&xl(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&&uy(c(r)),d=ot(dt,{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 uy(e){return e.some(t=>Il(t)?!(t.type===fn||t.type===dt&&!uy(t.children)):!0)?e:null}function VS(e,t){const r={};for(const o in e)r[dc(o)]=e[o];return r}const cd=e=>e?Oy(e)?yu(e):cd(e.parent):null,_l=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=>cd(e.parent),$root:e=>cd(e.root),$emit:e=>e.emit,$options:e=>wh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,dh(e.update)}),$nextTick:e=>e.n||(e.n=er.bind(e.proxy)),$watch:e=>pk.bind(e)}),Of=(e,t)=>e!==_t&&!e.__isScriptSetup&&at(e,t),jS={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 _=f[t];if(_!==void 0)switch(_){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Of(o,t))return f[t]=1,o[t];if(s!==_t&&at(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&at(p,t))return f[t]=3,c[t];if(r!==_t&&at(r,t))return f[t]=4,r[t];ud&&(f[t]=0)}}const v=_l[t];let y,b;if(v)return t==="$attrs"&&Pn(e.attrs,"get",""),v(e);if((y=d.__cssModules)&&(y=y[t]))return y;if(r!==_t&&at(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,at(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Of(s,t)?(s[t]=r,!0):o!==_t&&at(o,t)?(o[t]=r,!0):at(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&&at(e,f)||Of(t,f)||(d=c[0])&&at(d,f)||at(o,f)||at(_l,f)||at(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:at(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function GS(){return KS().attrs}function KS(){const e=ia();return e.setupContext||(e.setupContext=Ry(e))}function Oc(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Pc(e,t){return!e||!t?e||t:ze(e)&&ze(t)?e.concat(t):zt({},Oc(e),Oc(t))}let ud=!0;function XS(e){const t=wh(e),r=e.proxy,o=e.ctx;ud=!1,t.beforeCreate&&bv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:y,mounted:b,beforeUpdate:_,updated:L,activated:C,deactivated:N,beforeDestroy:A,beforeUnmount:E,destroyed:O,unmounted:M,render:z,renderTracked:B,renderTriggered:ne,errorCaptured:re,serverPrefetch:oe,expose:G,inheritAttrs:X,components:Q,directives:V,filters:I}=t;if(p&&YS(p,o,null),f)for(const W in f){const te=f[W];Xe(te)&&(o[W]=te.bind(r))}if(s){const W=s.call(r,r);xt(W)&&(e.data=Zn(W))}if(ud=!0,c)for(const W in c){const te=c[W],me=Xe(te)?te.bind(r,r):Xe(te.get)?te.get.bind(r,r):Kn,Me=!Xe(te)&&Xe(te.set)?te.set.bind(r):Kn,qe=$e({get:me,set:Me});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Ue=>qe.value=Ue})}if(d)for(const W in d)fy(d[W],o,r,W);if(h){const W=Xe(h)?h.call(r):h;Reflect.ownKeys(W).forEach(te=>{pc(te,W[te])})}v&&bv(v,e,"c");function H(W,te){ze(te)?te.forEach(me=>W(me.bind(r))):te&&W(te.bind(r))}if(H(zS,y),H(Ls,b),H(IS,_),H(FS,L),H(gk,C),H(vk,N),H(WS,re),H(BS,B),H(qS,ne),H(cy,E),H(bh,M),H(HS,oe),ze(G))if(G.length){const W=e.exposed||(e.exposed={});G.forEach(te=>{Object.defineProperty(W,te,{get:()=>r[te],set:me=>r[te]=me})})}else e.exposed||(e.exposed={});z&&e.render===Kn&&(e.render=z),X!=null&&(e.inheritAttrs=X),Q&&(e.components=Q),V&&(e.directives=V)}function YS(e,t,r=Kn){ze(e)&&(e=fd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=ei(s.from||o,s.default,!0):c=ei(s.from||o):c=ei(s),It(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function bv(e,t,r){Jn(ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function fy(e,t,r,o){const s=o.includes(".")?Sy(r,o):()=>r[o];if($t(e)){const c=t[e];Xe(c)&&Gt(s,c)}else if(Xe(e))Gt(s,e.bind(r));else if(xt(e))if(ze(e))e.forEach(c=>fy(c,t,r,o));else{const c=Xe(e.handler)?e.handler.bind(r):t[e.handler];Xe(c)&&Gt(s,c,e)}}function wh(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=>Rc(h,p,f,!0)),Rc(h,t,f)),xt(t)&&c.set(t,h),h}function Rc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Rc(e,c,r,!0),s&&s.forEach(f=>Rc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=ZS[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const ZS={data:wv,props:xv,emits:xv,methods:pl,computed:pl,beforeCreate:wn,created:wn,beforeMount:wn,mounted:wn,beforeUpdate:wn,updated:wn,beforeDestroy:wn,beforeUnmount:wn,destroyed:wn,unmounted:wn,activated:wn,deactivated:wn,errorCaptured:wn,serverPrefetch:wn,components:pl,directives:pl,watch:QS,provide:wv,inject:JS};function wv(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 JS(e,t){return pl(fd(e),fd(t))}function fd(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function wn(e,t){return e?[...new Set([].concat(e,t))]:t}function pl(e,t){return e?zt(Object.create(null),e,t):t}function xv(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:zt(Object.create(null),Oc(e),Oc(t??{})):t}function QS(e,t){if(!e)return t;if(!t)return e;const r=zt(Object.create(null),e);for(const o in t)r[o]=wn(e[o],t[o]);return r}function dy(){return{app:null,config:{isNativeTag:A_,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 ek=0;function tk(e,t){return function(o,s=null){Xe(o)||(o=zt({},o)),s!=null&&!xt(s)&&(s=null);const c=dy(),f=new WeakSet;let d=!1;const h=c.app={_uid:ek++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Nk,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,yu(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=Sl;Sl=h;try{return p()}finally{Sl=v}}};return h}}let Sl=null;function pc(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 ei(e,t,r=!1){const o=sn||Yt;if(o||Sl){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sl._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 hy={},py=()=>Object.create(hy),gy=e=>Object.getPrototypeOf(e)===hy;function nk(e,t,r,o=!1){const s={},c=py();e.propsDefaults=Object.create(null),vy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:oh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function rk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(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(fu(e.emitsOptions,b))continue;const _=t[b];if(h)if(at(c,b))_!==c[b]&&(c[b]=_,p=!0);else{const L=yr(b);s[L]=dd(h,d,L,_,e,!1)}else _!==c[b]&&(c[b]=_,p=!0)}}}else{vy(e,t,s,c)&&(p=!0);let v;for(const y in d)(!t||!at(t,y)&&((v=Yi(y))===y||!at(t,v)))&&(h?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=dd(h,d,y,void 0,e,!0)):delete s[y]);if(c!==d)for(const y in c)(!t||!at(t,y))&&(delete c[y],p=!0)}p&&Qr(e.attrs,"set","")}function vy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(yl(h))continue;const p=t[h];let v;s&&at(s,v=yr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:fu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||_t;for(let v=0;v<c.length;v++){const y=c[v];r[y]=dd(s,h,y,p[y],e,!at(p,y))}}return f}function dd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=at(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=oa(s);o=p[r]=h.call(null,t),v()}}else o=h}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Yi(r))&&(o=!0))}return o}function my(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,_]=my(y,t,!0);zt(f,b),_&&d.push(..._)};!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,as),as;if(ze(c))for(let v=0;v<c.length;v++){const y=yr(c[v]);_v(y)&&(f[y]=_t)}else if(c)for(const v in c){const y=yr(v);if(_v(y)){const b=c[v],_=f[y]=ze(b)||Xe(b)?{type:b}:zt({},b);if(_){const L=Tv(Boolean,_.type),C=Tv(String,_.type);_[0]=L>-1,_[1]=C<0||L<C,(L>-1||at(_,"default"))&&d.push(y)}}}const p=[f,d];return xt(e)&&o.set(e,p),p}function _v(e){return e[0]!=="$"&&!yl(e)}function Sv(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function kv(e,t){return Sv(e)===Sv(t)}function Tv(e,t){return ze(t)?t.findIndex(r=>kv(r,e)):Xe(t)&&kv(t,e)?0:-1}const yy=e=>e[0]==="_"||e==="$stable",xh=e=>ze(e)?e.map(pr):[pr(e)],ik=(e,t,r)=>{if(t._n)return t;const o=ct((...s)=>xh(t(...s)),r);return o._c=!1,o},by=(e,t,r)=>{const o=e._ctx;for(const s in e){if(yy(s))continue;const c=e[s];if(Xe(c))t[s]=ik(s,c,o);else if(c!=null){const f=xh(c);t[s]=()=>f}}},wy=(e,t)=>{const r=xh(t);e.slots.default=()=>r},ok=(e,t)=>{const r=e.slots=py();if(e.vnode.shapeFlag&32){const o=t._;o?(zt(r,t),$0(r,"_",o,!0)):by(t,r)}else t&&wy(e,t)},sk=(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,by(t,s)),f=t}else t&&(wy(e,t),f={default:1});if(c)for(const d in s)!yy(d)&&f[d]==null&&delete s[d]};function hd(e,t,r,o,s=!1){if(ze(e)){e.forEach((b,_)=>hd(b,t&&(ze(t)?t[_]:t),r,o,s));return}if(xl(o)&&!s)return;const c=o.shapeFlag&4?yu(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,at(y,p)&&(y[p]=null)):It(p)&&(p.value=null)),Xe(h))qi(h,d,12,[f,v]);else{const b=$t(h),_=It(h);if(b||_){const L=()=>{if(e.f){const C=b?at(y,h)?y[h]:v[h]:h.value;s?ze(C)&&Jd(C,c):ze(C)?C.includes(c)||C.push(c):b?(v[h]=[c],at(y,h)&&(y[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else b?(v[h]=f,at(y,h)&&(y[h]=f)):_&&(h.value=f,e.k&&(v[e.k]=f))};f?(L.id=-1,An(L,r)):L()}}}const An=RS;function lk(e){return ak(e)}function ak(e,t){const r=P0();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:_=Kn,insertStaticContent:L}=e,C=(P,F,Z,ce=null,se=null,ve=null,Se=void 0,ue=null,ye=!!F.dynamicChildren)=>{if(P===F)return;P&&!Mr(P,F)&&(ce=K(P),Ue(P,se,ve,!0),P=null),F.patchFlag===-2&&(ye=!1,F.dynamicChildren=null);const{type:he,ref:Ae,shapeFlag:He}=F;switch(he){case vu:N(P,F,Z,ce);break;case fn:A(P,F,Z,ce);break;case Df:P==null&&E(F,Z,ce,Se);break;case dt:Q(P,F,Z,ce,se,ve,Se,ue,ye);break;default:He&1?z(P,F,Z,ce,se,ve,Se,ue,ye):He&6?V(P,F,Z,ce,se,ve,Se,ue,ye):(He&64||He&128)&&he.process(P,F,Z,ce,se,ve,Se,ue,ye,Ne)}Ae!=null&&se&&hd(Ae,P&&P.ref,ve,F||P,!F)},N=(P,F,Z,ce)=>{if(P==null)o(F.el=d(F.children),Z,ce);else{const se=F.el=P.el;F.children!==P.children&&p(se,F.children)}},A=(P,F,Z,ce)=>{P==null?o(F.el=h(F.children||""),Z,ce):F.el=P.el},E=(P,F,Z,ce)=>{[P.el,P.anchor]=L(P.children,F,Z,ce,P.el,P.anchor)},O=({el:P,anchor:F},Z,ce)=>{let se;for(;P&&P!==F;)se=b(P),o(P,Z,ce),P=se;o(F,Z,ce)},M=({el:P,anchor:F})=>{let Z;for(;P&&P!==F;)Z=b(P),s(P),P=Z;s(F)},z=(P,F,Z,ce,se,ve,Se,ue,ye)=>{F.type==="svg"?Se="svg":F.type==="math"&&(Se="mathml"),P==null?B(F,Z,ce,se,ve,Se,ue,ye):oe(P,F,se,ve,Se,ue,ye)},B=(P,F,Z,ce,se,ve,Se,ue)=>{let ye,he;const{props:Ae,shapeFlag:He,transition:De,dirs:Be}=P;if(ye=P.el=f(P.type,ve,Ae&&Ae.is,Ae),He&8?v(ye,P.children):He&16&&re(P.children,ye,null,ce,se,Pf(P,ve),Se,ue),Be&&po(P,null,ce,"created"),ne(ye,P,P.scopeId,Se,ce),Ae){for(const gt in Ae)gt!=="value"&&!yl(gt)&&c(ye,gt,null,Ae[gt],ve,P.children,ce,se,Te);"value"in Ae&&c(ye,"value",null,Ae.value,ve),(he=Ae.onVnodeBeforeMount)&&Lr(he,ce,P)}Be&&po(P,null,ce,"beforeMount");const Ve=ck(se,De);Ve&&De.beforeEnter(ye),o(ye,F,Z),((he=Ae&&Ae.onVnodeMounted)||Ve||Be)&&An(()=>{he&&Lr(he,ce,P),Ve&&De.enter(ye),Be&&po(P,null,ce,"mounted")},se)},ne=(P,F,Z,ce,se)=>{if(Z&&_(P,Z),ce)for(let ve=0;ve<ce.length;ve++)_(P,ce[ve]);if(se){let ve=se.subTree;if(F===ve){const Se=se.vnode;ne(P,Se,Se.scopeId,Se.slotScopeIds,se.parent)}}},re=(P,F,Z,ce,se,ve,Se,ue,ye=0)=>{for(let he=ye;he<P.length;he++){const Ae=P[he]=ue?$i(P[he]):pr(P[he]);C(null,Ae,F,Z,ce,se,ve,Se,ue)}},oe=(P,F,Z,ce,se,ve,Se)=>{const ue=F.el=P.el;let{patchFlag:ye,dynamicChildren:he,dirs:Ae}=F;ye|=P.patchFlag&16;const He=P.props||_t,De=F.props||_t;let Be;if(Z&&go(Z,!1),(Be=De.onVnodeBeforeUpdate)&&Lr(Be,Z,F,P),Ae&&po(F,P,Z,"beforeUpdate"),Z&&go(Z,!0),he?G(P.dynamicChildren,he,ue,Z,ce,Pf(F,se),ve):Se||te(P,F,ue,null,Z,ce,Pf(F,se),ve,!1),ye>0){if(ye&16)X(ue,F,He,De,Z,ce,se);else if(ye&2&&He.class!==De.class&&c(ue,"class",null,De.class,se),ye&4&&c(ue,"style",He.style,De.style,se),ye&8){const Ve=F.dynamicProps;for(let gt=0;gt<Ve.length;gt++){const tt=Ve[gt],nt=He[tt],Ft=De[tt];(Ft!==nt||tt==="value")&&c(ue,tt,nt,Ft,se,P.children,Z,ce,Te)}}ye&1&&P.children!==F.children&&v(ue,F.children)}else!Se&&he==null&&X(ue,F,He,De,Z,ce,se);((Be=De.onVnodeUpdated)||Ae)&&An(()=>{Be&&Lr(Be,Z,F,P),Ae&&po(F,P,Z,"updated")},ce)},G=(P,F,Z,ce,se,ve,Se)=>{for(let ue=0;ue<F.length;ue++){const ye=P[ue],he=F[ue],Ae=ye.el&&(ye.type===dt||!Mr(ye,he)||ye.shapeFlag&70)?y(ye.el):Z;C(ye,he,Ae,null,ce,se,ve,Se,!0)}},X=(P,F,Z,ce,se,ve,Se)=>{if(Z!==ce){if(Z!==_t)for(const ue in Z)!yl(ue)&&!(ue in ce)&&c(P,ue,Z[ue],null,Se,F.children,se,ve,Te);for(const ue in ce){if(yl(ue))continue;const ye=ce[ue],he=Z[ue];ye!==he&&ue!=="value"&&c(P,ue,he,ye,Se,F.children,se,ve,Te)}"value"in ce&&c(P,"value",Z.value,ce.value,Se)}},Q=(P,F,Z,ce,se,ve,Se,ue,ye)=>{const he=F.el=P?P.el:d(""),Ae=F.anchor=P?P.anchor:d("");let{patchFlag:He,dynamicChildren:De,slotScopeIds:Be}=F;Be&&(ue=ue?ue.concat(Be):Be),P==null?(o(he,Z,ce),o(Ae,Z,ce),re(F.children||[],Z,Ae,se,ve,Se,ue,ye)):He>0&&He&64&&De&&P.dynamicChildren?(G(P.dynamicChildren,De,Z,se,ve,Se,ue),(F.key!=null||se&&F===se.subTree)&&xy(P,F,!0)):te(P,F,Z,Ae,se,ve,Se,ue,ye)},V=(P,F,Z,ce,se,ve,Se,ue,ye)=>{F.slotScopeIds=ue,P==null?F.shapeFlag&512?se.ctx.activate(F,Z,ce,Se,ye):I(F,Z,ce,se,ve,Se,ye):k(P,F,ye)},I=(P,F,Z,ce,se,ve,Se)=>{const ue=P.component=Tk(P,ce,se);if(gu(P)&&(ue.ctx.renderer=Ne),Ck(ue),ue.asyncDep){if(se&&se.registerDep(ue,H,Se),!P.el){const ye=ue.subTree=Pe(fn);A(null,ye,F,Z)}}else H(ue,P,F,Z,se,ve,Se)},k=(P,F,Z)=>{const ce=F.component=P.component;if(CS(P,F,Z))if(ce.asyncDep&&!ce.asyncResolved){W(ce,F,Z);return}else ce.next=F,wS(ce.update),ce.effect.dirty=!0,ce.update();else F.el=P.el,ce.vnode=F},H=(P,F,Z,ce,se,ve,Se)=>{const ue=()=>{if(P.isMounted){let{next:Ae,bu:He,u:De,parent:Be,vnode:Ve}=P;{const Jt=_y(P);if(Jt){Ae&&(Ae.el=Ve.el,W(P,Ae,Se)),Jt.asyncDep.then(()=>{P.isUnmounted||ue()});return}}let gt=Ae,tt;go(P,!1),Ae?(Ae.el=Ve.el,W(P,Ae,Se)):Ae=Ve,He&&hc(He),(tt=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Lr(tt,Be,Ae,Ve),go(P,!0);const nt=$f(P),Ft=P.subTree;P.subTree=nt,C(Ft,nt,y(Ft.el),K(Ft),P,se,ve),Ae.el=nt.el,gt===null&&gh(P,nt.el),De&&An(De,se),(tt=Ae.props&&Ae.props.onVnodeUpdated)&&An(()=>Lr(tt,Be,Ae,Ve),se)}else{let Ae;const{el:He,props:De}=F,{bm:Be,m:Ve,parent:gt}=P,tt=xl(F);if(go(P,!1),Be&&hc(Be),!tt&&(Ae=De&&De.onVnodeBeforeMount)&&Lr(Ae,gt,F),go(P,!0),He&&Ye){const nt=()=>{P.subTree=$f(P),Ye(He,P.subTree,P,se,null)};tt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&nt()):nt()}else{const nt=P.subTree=$f(P);C(null,nt,Z,ce,P,se,ve),F.el=nt.el}if(Ve&&An(Ve,se),!tt&&(Ae=De&&De.onVnodeMounted)){const nt=F;An(()=>Lr(Ae,gt,nt),se)}(F.shapeFlag&256||gt&&xl(gt.vnode)&>.vnode.shapeFlag&256)&&P.a&&An(P.a,se),P.isMounted=!0,F=Z=ce=null}},ye=P.effect=new eh(ue,Kn,()=>dh(he),P.scope),he=P.update=()=>{ye.dirty&&ye.run()};he.id=P.uid,go(P,!0),he()},W=(P,F,Z)=>{F.component=P;const ce=P.vnode.props;P.vnode=F,P.next=null,rk(P,F.props,ce,Z),sk(P,F.children,Z),Zi(),pv(P),Ji()},te=(P,F,Z,ce,se,ve,Se,ue,ye=!1)=>{const he=P&&P.children,Ae=P?P.shapeFlag:0,He=F.children,{patchFlag:De,shapeFlag:Be}=F;if(De>0){if(De&128){Me(he,He,Z,ce,se,ve,Se,ue,ye);return}else if(De&256){me(he,He,Z,ce,se,ve,Se,ue,ye);return}}Be&8?(Ae&16&&Te(he,se,ve),He!==he&&v(Z,He)):Ae&16?Be&16?Me(he,He,Z,ce,se,ve,Se,ue,ye):Te(he,se,ve,!0):(Ae&8&&v(Z,""),Be&16&&re(He,Z,ce,se,ve,Se,ue,ye))},me=(P,F,Z,ce,se,ve,Se,ue,ye)=>{P=P||as,F=F||as;const he=P.length,Ae=F.length,He=Math.min(he,Ae);let De;for(De=0;De<He;De++){const Be=F[De]=ye?$i(F[De]):pr(F[De]);C(P[De],Be,Z,null,se,ve,Se,ue,ye)}he>Ae?Te(P,se,ve,!0,!1,He):re(F,Z,ce,se,ve,Se,ue,ye,He)},Me=(P,F,Z,ce,se,ve,Se,ue,ye)=>{let he=0;const Ae=F.length;let He=P.length-1,De=Ae-1;for(;he<=He&&he<=De;){const Be=P[he],Ve=F[he]=ye?$i(F[he]):pr(F[he]);if(Mr(Be,Ve))C(Be,Ve,Z,null,se,ve,Se,ue,ye);else break;he++}for(;he<=He&&he<=De;){const Be=P[He],Ve=F[De]=ye?$i(F[De]):pr(F[De]);if(Mr(Be,Ve))C(Be,Ve,Z,null,se,ve,Se,ue,ye);else break;He--,De--}if(he>He){if(he<=De){const Be=De+1,Ve=Be<Ae?F[Be].el:ce;for(;he<=De;)C(null,F[he]=ye?$i(F[he]):pr(F[he]),Z,Ve,se,ve,Se,ue,ye),he++}}else if(he>De)for(;he<=He;)Ue(P[he],se,ve,!0),he++;else{const Be=he,Ve=he,gt=new Map;for(he=Ve;he<=De;he++){const Qt=F[he]=ye?$i(F[he]):pr(F[he]);Qt.key!=null&>.set(Qt.key,he)}let tt,nt=0;const Ft=De-Ve+1;let Jt=!1,nr=0;const Dn=new Array(Ft);for(he=0;he<Ft;he++)Dn[he]=0;for(he=Be;he<=He;he++){const Qt=P[he];if(nt>=Ft){Ue(Qt,se,ve,!0);continue}let We;if(Qt.key!=null)We=gt.get(Qt.key);else for(tt=Ve;tt<=De;tt++)if(Dn[tt-Ve]===0&&Mr(Qt,F[tt])){We=tt;break}We===void 0?Ue(Qt,se,ve,!0):(Dn[We-Ve]=he+1,We>=nr?nr=We:Jt=!0,C(Qt,F[We],Z,null,se,ve,Se,ue,ye),nt++)}const rr=Jt?uk(Dn):as;for(tt=rr.length-1,he=Ft-1;he>=0;he--){const Qt=Ve+he,We=F[Qt],to=Qt+1<Ae?F[Qt+1].el:ce;Dn[he]===0?C(null,We,Z,to,se,ve,Se,ue,ye):Jt&&(tt<0||he!==rr[tt]?qe(We,Z,to,2):tt--)}}},qe=(P,F,Z,ce,se=null)=>{const{el:ve,type:Se,transition:ue,children:ye,shapeFlag:he}=P;if(he&6){qe(P.component.subTree,F,Z,ce);return}if(he&128){P.suspense.move(F,Z,ce);return}if(he&64){Se.move(P,F,Z,Ne);return}if(Se===dt){o(ve,F,Z);for(let He=0;He<ye.length;He++)qe(ye[He],F,Z,ce);o(P.anchor,F,Z);return}if(Se===Df){O(P,F,Z);return}if(ce!==2&&he&1&&ue)if(ce===0)ue.beforeEnter(ve),o(ve,F,Z),An(()=>ue.enter(ve),se);else{const{leave:He,delayLeave:De,afterLeave:Be}=ue,Ve=()=>o(ve,F,Z),gt=()=>{He(ve,()=>{Ve(),Be&&Be()})};De?De(ve,Ve,gt):gt()}else o(ve,F,Z)},Ue=(P,F,Z,ce=!1,se=!1)=>{const{type:ve,props:Se,ref:ue,children:ye,dynamicChildren:he,shapeFlag:Ae,patchFlag:He,dirs:De,memoIndex:Be}=P;if(ue!=null&&hd(ue,null,Z,P,!0),Be!=null&&(F.renderCache[Be]=void 0),Ae&256){F.ctx.deactivate(P);return}const Ve=Ae&1&&De,gt=!xl(P);let tt;if(gt&&(tt=Se&&Se.onVnodeBeforeUnmount)&&Lr(tt,F,P),Ae&6)Ze(P.component,Z,ce);else{if(Ae&128){P.suspense.unmount(Z,ce);return}Ve&&po(P,null,F,"beforeUnmount"),Ae&64?P.type.remove(P,F,Z,se,Ne,ce):he&&(ve!==dt||He>0&&He&64)?Te(he,F,Z,!1,!0):(ve===dt&&He&384||!se&&Ae&16)&&Te(ye,F,Z),ce&&it(P)}(gt&&(tt=Se&&Se.onVnodeUnmounted)||Ve)&&An(()=>{tt&&Lr(tt,F,P),Ve&&po(P,null,F,"unmounted")},Z)},it=P=>{const{type:F,el:Z,anchor:ce,transition:se}=P;if(F===dt){rt(Z,ce);return}if(F===Df){M(P);return}const ve=()=>{s(Z),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(P.shapeFlag&1&&se&&!se.persisted){const{leave:Se,delayLeave:ue}=se,ye=()=>Se(Z,ve);ue?ue(P.el,ve,ye):ye()}else ve()},rt=(P,F)=>{let Z;for(;P!==F;)Z=b(P),s(P),P=Z;s(F)},Ze=(P,F,Z)=>{const{bum:ce,scope:se,update:ve,subTree:Se,um:ue,m:ye,a:he}=P;Cv(ye),Cv(he),ce&&hc(ce),se.stop(),ve&&(ve.active=!1,Ue(Se,P,F,Z)),ue&&An(ue,F),An(()=>{P.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Te=(P,F,Z,ce=!1,se=!1,ve=0)=>{for(let Se=ve;Se<P.length;Se++)Ue(P[Se],F,Z,ce,se)},K=P=>P.shapeFlag&6?K(P.component.subTree):P.shapeFlag&128?P.suspense.next():b(P.anchor||P.el);let ae=!1;const de=(P,F,Z)=>{P==null?F._vnode&&Ue(F._vnode,null,null,!0):C(F._vnode||null,P,F,null,null,null,Z),ae||(ae=!0,pv(),iy(),ae=!1),F._vnode=P},Ne={p:C,um:Ue,m:qe,r:it,mt:I,mc:re,pc:te,pbc:G,n:K,o:e};let Ce,Ye;return{render:de,hydrate:Ce,createApp:tk(de,Ce)}}function Pf({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 go({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function ck(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xy(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]=$i(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&xy(f,d)),d.type===vu&&(d.el=f.el)}}function uk(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 _y(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_y(t)}function Cv(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const fk=Symbol.for("v-scx"),dk=()=>ei(fk);function _h(e,t){return pu(e,null,t)}function hk(e,t){return pu(e,null,{flush:"sync"})}const Za={};function Gt(e,t,r){return pu(e,t,r)}function pu(e,t,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:d}=_t){if(t&&c){const B=t;t=(...ne)=>{B(...ne),z()}}const h=sn,p=B=>o===!0?B:Di(B,o===!1?1:void 0);let v,y=!1,b=!1;if(It(e)?(v=()=>e.value,y=Nc(e)):bl(e)?(v=()=>p(e),y=!0):ze(e)?(b=!0,y=e.some(B=>bl(B)||Nc(B)),v=()=>e.map(B=>{if(It(B))return B.value;if(bl(B))return p(B);if(Xe(B))return qi(B,h,2)})):Xe(e)?t?v=()=>qi(e,h,2):v=()=>(_&&_(),Jn(e,h,3,[L])):v=Kn,t&&o){const B=v;v=()=>Di(B())}let _,L=B=>{_=O.onStop=()=>{qi(B,h,4),_=O.onStop=void 0}},C;if(mu)if(L=Kn,t?r&&Jn(t,h,3,[v(),b?[]:void 0,L]):v(),s==="sync"){const B=dk();C=B.__watcherHandles||(B.__watcherHandles=[])}else return Kn;let N=b?new Array(e.length).fill(Za):Za;const A=()=>{if(!(!O.active||!O.dirty))if(t){const B=O.run();(o||y||(b?B.some((ne,re)=>Pr(ne,N[re])):Pr(B,N)))&&(_&&_(),Jn(t,h,3,[B,N===Za?void 0:b&&N[0]===Za?[]:N,L]),N=B)}else O.run()};A.allowRecurse=!!t;let E;s==="sync"?E=A:s==="post"?E=()=>An(A,h&&h.suspense):(A.pre=!0,h&&(A.id=h.uid),E=()=>dh(A));const O=new eh(v,Kn,E),M=I0(),z=()=>{O.stop(),M&&Jd(M.effects,O)};return t?r?A():N=O.run():s==="post"?An(O.run.bind(O),h&&h.suspense):O.run(),C&&C.push(z),z}function pk(e,t,r){const o=this.proxy,s=$t(e)?e.includes(".")?Sy(o,e):()=>o[e]:e.bind(o,o);let c;Xe(t)?c=t:(c=t.handler,r=t);const f=oa(this),d=pu(s,c.bind(o),r);return f(),d}function Sy(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 Di(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))Di(e.value,t,r);else if(ze(e))for(let o=0;o<e.length;o++)Di(e[o],t,r);else if(su(e)||cs(e))e.forEach(o=>{Di(o,t,r)});else if(N0(e)){for(const o in e)Di(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Di(e[o],t,r)}return e}const gu=e=>e.type.__isKeepAlive;function gk(e,t){ky(e,"a",t)}function vk(e,t){ky(e,"da",t)}function ky(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(hu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)gu(s.parent.vnode)&&mk(o,t,r,s),s=s.parent}}function mk(e,t,r,o){const s=hu(t,e,o,!0);bh(()=>{Jd(o[t],s)},r)}const Ni=Symbol("_leaveCb"),Ja=Symbol("_enterCb");function yk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ls(()=>{e.isMounted=!0}),cy(()=>{e.isUnmounting=!0}),e}const jn=[Function,Array],Ty={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jn,onEnter:jn,onAfterEnter:jn,onEnterCancelled:jn,onBeforeLeave:jn,onLeave:jn,onAfterLeave:jn,onLeaveCancelled:jn,onBeforeAppear:jn,onAppear:jn,onAfterAppear:jn,onAppearCancelled:jn},Cy=e=>{const t=e.subTree;return t.component?Cy(t.component):t},bk={name:"BaseTransition",props:Ty,setup(e,{slots:t}){const r=ia(),o=yk();return()=>{const s=t.default&&Ly(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const b of s)if(b.type!==fn){c=b;break}}const f=ht(e),{mode:d}=f;if(o.isLeaving)return Rf(c);const h=Ev(c);if(!h)return Rf(c);let p=pd(h,f,o,r,b=>p=b);Dc(h,p);const v=r.subTree,y=v&&Ev(v);if(y&&y.type!==fn&&!Mr(h,y)&&Cy(r).type!==fn){const b=pd(y,f,o,r);if(Dc(y,b),d==="out-in"&&h.type!==fn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Rf(c);d==="in-out"&&h.type!==fn&&(b.delayLeave=(_,L,C)=>{const N=Ey(o,y);N[String(y.key)]=y,_[Ni]=()=>{L(),_[Ni]=void 0,delete p.delayedLeave},p.delayedLeave=C})}return c}}},wk=bk;function Ey(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 pd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:b,onLeave:_,onAfterLeave:L,onLeaveCancelled:C,onBeforeAppear:N,onAppear:A,onAfterAppear:E,onAppearCancelled:O}=t,M=String(e.key),z=Ey(r,e),B=(oe,G)=>{oe&&Jn(oe,o,9,G)},ne=(oe,G)=>{const X=G[1];B(oe,G),ze(oe)?oe.every(Q=>Q.length<=1)&&X():oe.length<=1&&X()},re={mode:f,persisted:d,beforeEnter(oe){let G=h;if(!r.isMounted)if(c)G=N||h;else return;oe[Ni]&&oe[Ni](!0);const X=z[M];X&&Mr(e,X)&&X.el[Ni]&&X.el[Ni](),B(G,[oe])},enter(oe){let G=p,X=v,Q=y;if(!r.isMounted)if(c)G=A||p,X=E||v,Q=O||y;else return;let V=!1;const I=oe[Ja]=k=>{V||(V=!0,k?B(Q,[oe]):B(X,[oe]),re.delayedLeave&&re.delayedLeave(),oe[Ja]=void 0)};G?ne(G,[oe,I]):I()},leave(oe,G){const X=String(e.key);if(oe[Ja]&&oe[Ja](!0),r.isUnmounting)return G();B(b,[oe]);let Q=!1;const V=oe[Ni]=I=>{Q||(Q=!0,G(),I?B(C,[oe]):B(L,[oe]),oe[Ni]=void 0,z[X]===e&&delete z[X])};z[X]=e,_?ne(_,[oe,V]):V()},clone(oe){const G=pd(oe,t,r,o,s);return s&&s(G),G}};return re}function Rf(e){if(gu(e))return e=Ui(e),e.children=null,e}function Ev(e){if(!gu(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 Dc(e,t){e.shapeFlag&6&&e.component?Dc(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 Ly(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===dt?(f.patchFlag&128&&s++,o=o.concat(Ly(f.children,t,d))):(t||f.type!==fn)&&o.push(d!=null?Ui(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}const xk=e=>e.__isTeleport,dt=Symbol.for("v-fgt"),vu=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),Df=Symbol.for("v-stc"),kl=[];let Xn=null;function le(e=!1){kl.push(Xn=e?null:[])}function Ay(){kl.pop(),Xn=kl[kl.length-1]||null}let ys=1;function zc(e){ys+=e}function My(e){return e.dynamicChildren=ys>0?Xn||as:null,Ay(),ys>0&&Xn&&Xn.push(e),e}function be(e,t,r,o,s,c){return My(Y(e,t,r,o,s,c,!0))}function ot(e,t,r,o,s){return My(Pe(e,t,r,o,s,!0))}function Il(e){return e?e.__v_isVNode===!0:!1}function Mr(e,t){return e.type===t.type&&e.key===t.key}const Ny=({key:e})=>e??null,gc=({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===dt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ny(t),ref:t&&gc(t),scopeId:du,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?(Sh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=$t(r)?8:16),ys>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Pe=_k;function _k(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===ay)&&(e=fn),Il(e)){const d=Ui(e,t,!0);return r&&Sh(d,r),ys>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(Mk(e)&&(e=e.__vccOpts),t){t=$y(t);let{class:d,style:h}=t;d&&!$t(d)&&(t.class=st(d)),xt(h)&&(Y0(h)&&!ze(h)&&(h=zt({},h)),t.style=Zt(h))}const f=$t(e)?1:LS(e)?128:xk(e)?64:xt(e)?4:Xe(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function $y(e){return e?Y0(e)||gy(e)?zt({},e):e:null}function Ui(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ti(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Ny(p),ref:t&&t.ref?r&&c?ze(c)?c.concat(gc(t)):[c,gc(t)]:gc(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!==dt?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&&Ui(e.ssContent),ssFallback:e.ssFallback&&Ui(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Dc(v,h.clone(v)),v}function mt(e=" ",t=0){return Pe(vu,null,e,t)}function et(e="",t=!1){return t?(le(),ot(fn,null,e)):Pe(fn,null,e)}function pr(e){return e==null||typeof e=="boolean"?Pe(fn):ze(e)?Pe(dt,null,e.slice()):typeof e=="object"?$i(e):Pe(vu,null,String(e))}function $i(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ui(e)}function Sh(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),Sh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!gy(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=[mt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ti(...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(ou(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 Lr(e,t,r,o=null){Jn(e,t,7,[r,o])}const Sk=dy();let kk=0;function Tk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Sk,c={uid:kk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new B_(!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:my(o,s),emitsOptions:sy(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=_S.bind(null,c),e.ce&&e.ce(c),c}let sn=null;const ia=()=>sn||Yt;let Ic,gd;{const e=P0(),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)}};Ic=t("__VUE_INSTANCE_SETTERS__",r=>sn=r),gd=t("__VUE_SSR_SETTERS__",r=>mu=r)}const oa=e=>{const t=sn;return Ic(e),e.scope.on(),()=>{e.scope.off(),Ic(t)}},Lv=()=>{sn&&sn.scope.off(),Ic(null)};function Oy(e){return e.vnode.shapeFlag&4}let mu=!1;function Ck(e,t=!1){t&&gd(t);const{props:r,children:o}=e.vnode,s=Oy(e);nk(e,r,s,t),ok(e,o);const c=s?Ek(e,t):void 0;return t&&gd(!1),c}function Ek(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jS);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Ry(e):null,c=oa(e);Zi();const f=qi(o,e,0,[e.props,s]);if(Ji(),c(),A0(f)){if(f.then(Lv,Lv),t)return f.then(d=>{vd(e,d,t)}).catch(d=>{ra(d,e,0)});e.asyncDep=f}else vd(e,f,t)}else Py(e,t)}function vd(e,t,r){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=Q0(t)),Py(e,r)}let Av;function Py(e,t,r){const o=e.type;if(!e.render){if(!t&&Av&&!o.render){const s=o.template||wh(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=Av(s,p)}}e.render=o.render||Kn}{const s=oa(e);Zi();try{XS(e)}finally{Ji(),s()}}}const Lk={get(e,t){return Pn(e,"get",""),e[t]}};function Ry(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Lk),slots:e.slots,emit:e.emit,expose:t}}function yu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Q0(lh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in _l)return _l[r](e)},has(t,r){return r in t||r in _l}})):e.proxy}function Ak(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Mk(e){return Xe(e)&&"__vccOpts"in e}const $e=(e,t)=>fS(e,t,mu);function kh(e,t,r=_t){const o=ia(),s=yr(t),c=Yi(t),f=ey((h,p)=>{let v;return hk(()=>{const y=e[t];Pr(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))&&Pr(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 sa(e,t,r){const o=arguments.length;return o===2?xt(t)&&!ze(t)?Il(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Il(r)&&(r=[r]),Pe(e,t,r))}const Nk="3.4.29";/**
|
|
14
|
+
* @vue/runtime-dom v3.4.29
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const $k="http://www.w3.org/2000/svg",Ok="http://www.w3.org/1998/Math/MathML",Yr=typeof document<"u"?document:null,Mv=Yr&&Yr.createElement("template"),Pk={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"?Yr.createElementNS($k,e):t==="mathml"?Yr.createElementNS(Ok,e):r?Yr.createElement(e,{is:r}):Yr.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>Yr.createTextNode(e),createComment:e=>Yr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yr.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{Mv.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const d=Mv.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]}},ki="transition",al="animation",Fl=Symbol("_vtc"),Th=(e,{slots:t})=>sa(wk,Rk(e),t);Th.displayName="Transition";const Dy={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};Th.props=zt({},Ty,Dy);const vo=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Nv=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function Rk(e){const t={};for(const Q in e)Q in Dy||(t[Q]=e[Q]);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:_=`${r}-leave-to`}=e,L=Dk(s),C=L&&L[0],N=L&&L[1],{onBeforeEnter:A,onEnter:E,onEnterCancelled:O,onLeave:M,onLeaveCancelled:z,onBeforeAppear:B=A,onAppear:ne=E,onAppearCancelled:re=O}=t,oe=(Q,V,I)=>{mo(Q,V?v:d),mo(Q,V?p:f),I&&I()},G=(Q,V)=>{Q._isLeaving=!1,mo(Q,y),mo(Q,_),mo(Q,b),V&&V()},X=Q=>(V,I)=>{const k=Q?ne:E,H=()=>oe(V,Q,I);vo(k,[V,H]),$v(()=>{mo(V,Q?h:c),Ti(V,Q?v:d),Nv(k)||Ov(V,o,C,H)})};return zt(t,{onBeforeEnter(Q){vo(A,[Q]),Ti(Q,c),Ti(Q,f)},onBeforeAppear(Q){vo(B,[Q]),Ti(Q,h),Ti(Q,p)},onEnter:X(!1),onAppear:X(!0),onLeave(Q,V){Q._isLeaving=!0;const I=()=>G(Q,V);Ti(Q,y),Ti(Q,b),Fk(),$v(()=>{Q._isLeaving&&(mo(Q,y),Ti(Q,_),Nv(M)||Ov(Q,o,N,I))}),vo(M,[Q,I])},onEnterCancelled(Q){oe(Q,!1),vo(O,[Q])},onAppearCancelled(Q){oe(Q,!0),vo(re,[Q])},onLeaveCancelled(Q){G(Q),vo(z,[Q])}})}function Dk(e){if(e==null)return null;if(xt(e))return[zf(e.enter),zf(e.leave)];{const t=zf(e);return[t,t]}}function zf(e){return O0(e)}function Ti(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Fl]||(e[Fl]=new Set)).add(t)}function mo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Fl];r&&(r.delete(t),r.size||(e[Fl]=void 0))}function $v(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zk=0;function Ov(e,t,r,o){const s=e._endId=++zk,c=()=>{s===e._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Ik(e,t);if(!f)return o();const p=f+"end";let v=0;const y=()=>{e.removeEventListener(p,b),c()},b=_=>{_.target===e&&++v>=h&&y()};setTimeout(()=>{v<h&&y()},d+1),e.addEventListener(p,b)}function Ik(e,t){const r=window.getComputedStyle(e),o=L=>(r[L]||"").split(", "),s=o(`${ki}Delay`),c=o(`${ki}Duration`),f=Pv(s,c),d=o(`${al}Delay`),h=o(`${al}Duration`),p=Pv(d,h);let v=null,y=0,b=0;t===ki?f>0&&(v=ki,y=f,b=c.length):t===al?p>0&&(v=al,y=p,b=h.length):(y=Math.max(f,p),v=y>0?f>p?ki:al:null,b=v?v===ki?c.length:h.length:0);const _=v===ki&&/\b(transform|all)(,|$)/.test(o(`${ki}Property`).toString());return{type:v,timeout:y,propCount:b,hasTransform:_}}function Pv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Rv(r)+Rv(e[o])))}function Rv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fk(){return document.body.offsetHeight}function Hk(e,t,r){const o=e[Fl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Fc=Symbol("_vod"),zy=Symbol("_vsh"),gl={beforeMount(e,{value:t},{transition:r}){e[Fc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):cl(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),cl(e,!0),o.enter(e)):o.leave(e,()=>{cl(e,!1)}):cl(e,t))},beforeUnmount(e,{value:t}){cl(e,t)}};function cl(e,t){e.style.display=t?e[Fc]:"none",e[zy]=!t}const qk=Symbol(""),Bk=/(^|;)\s*display\s*:/;function Wk(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&&vc(o,d,"")}else for(const f in t)r[f]==null&&vc(o,f,"");for(const f in r)f==="display"&&(c=!0),vc(o,f,r[f])}else if(s){if(t!==r){const f=o[qk];f&&(r+=";"+f),o.cssText=r,c=Bk.test(r)}}else t&&e.removeAttribute("style");Fc in e&&(e[Fc]=c?o.display:"",e[zy]&&(o.display="none"))}const Dv=/\s*!important$/;function vc(e,t,r){if(ze(r))r.forEach(o=>vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=Uk(e,t);Dv.test(r)?e.setProperty(Yi(o),r.replace(Dv,""),"important"):e[o]=r}}const zv=["Webkit","Moz","ms"],If={};function Uk(e,t){const r=If[t];if(r)return r;let o=yr(t);if(o!=="filter"&&o in e)return If[t]=o;o=au(o);for(let s=0;s<zv.length;s++){const c=zv[s]+o;if(c in e)return If[t]=c}return t}const Iv="http://www.w3.org/1999/xlink";function Fv(e,t,r,o,s,c=H_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Iv,t.slice(6,t.length)):e.setAttributeNS(Iv,t,r):r==null||c&&!R0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":String(r))}function Vk(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=R0(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{e[t]=r}catch{}h&&e.removeAttribute(t)}function xo(e,t,r,o){e.addEventListener(t,r,o)}function jk(e,t,r,o){e.removeEventListener(t,r,o)}const Hv=Symbol("_vei");function Gk(e,t,r,o,s=null){const c=e[Hv]||(e[Hv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=Kk(t);if(o){const p=c[t]=Zk(o,s);xo(e,d,p,h)}else f&&(jk(e,d,f,h),c[t]=void 0)}}const qv=/(?:Once|Passive|Capture)$/;function Kk(e){let t;if(qv.test(e)){t={};let o;for(;o=e.match(qv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Yi(e.slice(2)),t]}let Ff=0;const Xk=Promise.resolve(),Yk=()=>Ff||(Xk.then(()=>Ff=0),Ff=Date.now());function Zk(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Jn(Jk(o,r.value),t,5,[o])};return r.value=e,r.attached=Yk(),r}function Jk(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 Bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qk=(e,t,r,o,s,c,f,d,h)=>{const p=s==="svg";t==="class"?Hk(e,o,p):t==="style"?Wk(e,r,o):ou(t)?Zd(t)||Gk(e,t,r,o,f):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):eT(e,t,o,p))?(Vk(e,t,o,c,f,d,h),(t==="value"||t==="checked"||t==="selected")&&Fv(e,t,o,p,f,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Fv(e,t,o,p))};function eT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bv(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 Bv(t)&&$t(r)?!1:t in e}const Hc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>hc(t,r):t};function tT(e){e.target.composing=!0}function Wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ds=Symbol("_assign"),nT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[ds]=Hc(s);const c=o||s.props&&s.props.type==="number";xo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=nd(d)),e[ds](d)}),r&&xo(e,"change",()=>{e.value=e.value.trim()}),t||(xo(e,"compositionstart",tT),xo(e,"compositionend",Wv),xo(e,"change",Wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[ds]=Hc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?nd(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))}},rT={deep:!0,created(e,t,r){e[ds]=Hc(r),xo(e,"change",()=>{const o=e._modelValue,s=iT(e),c=e.checked,f=e[ds];if(ze(o)){const d=D0(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(su(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Iy(e,c))})},mounted:Uv,beforeUpdate(e,t,r){e[ds]=Hc(r),Uv(e,t,r)}};function Uv(e,{value:t,oldValue:r},o){e._modelValue=t,ze(t)?e.checked=D0(t,o.props.value)>-1:su(t)?e.checked=t.has(o.props.value):t!==r&&(e.checked=cu(t,Iy(e,!0)))}function iT(e){return"_value"in e?e._value:e.value}function Iy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const oT=["ctrl","shift","alt","meta"],sT={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)=>oT.some(r=>e[`${r}Key`]&&!t.includes(r))},mc=(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=sT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},lT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},md=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=Yi(s.key);if(t.some(f=>f===c||lT[f]===c))return e(s)})},aT=zt({patchProp:Qk},Pk);let Vv;function cT(){return Vv||(Vv=lk(aT))}const Fy=(...e)=>{const t=cT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=fT(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,uT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function uT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fT(e){return $t(e)?document.querySelector(e):e}const Qi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},dT={};function hT(e,t){const r=Eo("RouterView");return le(),ot(r)}const pT=Qi(dT,[["render",hT]]);/*!
|
|
18
|
+
* vue-router v4.3.3
|
|
19
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/const is=typeof document<"u";function gT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const yt=Object.assign;function Hf(e,t){const r={};for(const o in t){const s=t[o];r[o]=br(s)?s.map(e):e(s)}return r}const Tl=()=>{},br=Array.isArray,Hy=/#/g,vT=/&/g,mT=/\//g,yT=/=/g,bT=/\?/g,qy=/\+/g,wT=/%5B/g,xT=/%5D/g,By=/%5E/g,_T=/%60/g,Wy=/%7B/g,ST=/%7C/g,Uy=/%7D/g,kT=/%20/g;function Ch(e){return encodeURI(""+e).replace(ST,"|").replace(wT,"[").replace(xT,"]")}function TT(e){return Ch(e).replace(Wy,"{").replace(Uy,"}").replace(By,"^")}function yd(e){return Ch(e).replace(qy,"%2B").replace(kT,"+").replace(Hy,"%23").replace(vT,"%26").replace(_T,"`").replace(Wy,"{").replace(Uy,"}").replace(By,"^")}function CT(e){return yd(e).replace(yT,"%3D")}function ET(e){return Ch(e).replace(Hy,"%23").replace(bT,"%3F")}function LT(e){return e==null?"":ET(e).replace(mT,"%2F")}function Hl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const AT=/\/$/,MT=e=>e.replace(AT,"");function qf(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=PT(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Hl(f)}}function NT(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function jv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $T(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&bs(t.matched[o],r.matched[s])&&Vy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function bs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Vy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!OT(e[r],t[r]))return!1;return!0}function OT(e,t){return br(e)?Gv(e,t):br(t)?Gv(t,e):e===t}function Gv(e,t){return br(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function PT(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("/")}var ql;(function(e){e.pop="pop",e.push="push"})(ql||(ql={}));var Cl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cl||(Cl={}));function RT(e){if(!e)if(is){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),MT(e)}const DT=/^[^#]+#/;function zT(e,t){return e.replace(DT,"#")+t}function IT(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 bu=()=>({left:window.scrollX,top:window.scrollY});function FT(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=IT(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 Kv(e,t){return(history.state?history.state.position-t:-1)+e}const bd=new Map;function HT(e,t){bd.set(e,t)}function qT(e){const t=bd.get(e);return bd.delete(e),t}let BT=()=>location.protocol+"//"+location.host;function jy(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),jv(h,"")}return jv(r,e)+o+s}function WT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const _=jy(e,location),L=r.value,C=t.value;let N=0;if(b){if(r.value=_,t.value=b,f&&f===L){f=null;return}N=C?b.position-C.position:0}else o(_);s.forEach(A=>{A(r.value,L,{delta:N,type:ql.pop,direction:N?N>0?Cl.forward:Cl.back:Cl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const _=()=>{const L=s.indexOf(b);L>-1&&s.splice(L,1)};return c.push(_),_}function v(){const{history:b}=window;b.state&&b.replaceState(yt({},b.state,{scroll:bu()}),"")}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 Xv(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?bu():null}}function UT(e){const{history:t,location:r}=window,o={value:jy(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:BT()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(_){console.error(_),r[v?"replace":"assign"](b)}}function f(h,p){const v=yt({},t.state,Xv(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=yt({},s.value,t.state,{forward:h,scroll:bu()});c(v.current,v,!0);const y=yt({},Xv(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 VT(e){e=RT(e);const t=UT(e),r=WT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=yt({location:"",base:e,go:o,createHref:zT.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 jT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),VT(e)}function GT(e){return typeof e=="string"||e&&typeof e=="object"}function Gy(e){return typeof e=="string"||typeof e=="symbol"}const Ci={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ky=Symbol("");var Yv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Yv||(Yv={}));function ws(e,t){return yt(new Error,{type:e,[Ky]:!0},t)}function Gr(e,t){return e instanceof Error&&Ky in e&&(t==null||!!(e.type&t))}const Zv="[^/]+?",KT={sensitive:!1,strict:!1,start:!0,end:!0},XT=/[.+*?^${}()[\]/\\]/g;function YT(e,t){const r=yt({},KT,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 _=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(XT,"\\$&"),_+=40;else if(b.type===1){const{value:L,repeatable:C,optional:N,regexp:A}=b;c.push({name:L,repeatable:C,optional:N});const E=A||Zv;if(E!==Zv){_+=10;try{new RegExp(`(${E})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${L}" (${E}): `+M.message)}}let O=C?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;y||(O=N&&p.length<2?`(?:/${O})`:"/"+O),N&&(O+="?"),s+=O,_+=20,N&&(_+=-8),C&&(_+=-20),E===".*"&&(_+=-50)}v.push(_)}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 _=v[b]||"",L=c[b-1];y[L.name]=_&&L.repeatable?_.split("/"):_}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const _ of b)if(_.type===0)v+=_.value;else if(_.type===1){const{value:L,repeatable:C,optional:N}=_,A=L in p?p[L]:"";if(br(A)&&!C)throw new Error(`Provided param "${L}" is an array but it is not repeatable (* or + modifiers)`);const E=br(A)?A.join("/"):A;if(!E)if(N)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${L}"`);v+=E}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function ZT(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 Xy(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=ZT(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Jv(o))return 1;if(Jv(s))return-1}return s.length-o.length}function Jv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const JT={type:0,value:""},QT=/[a-zA-Z0-9_]/;function eC(e){if(!e)return[[]];if(e==="/")return[[JT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${r})/"${p}": ${_}`)}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:QT.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 tC(e,t,r){const o=YT(eC(e.path),r),s=yt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function nC(e,t){const r=[],o=new Map;t=tm({strict:!1,end:!0,sensitive:!1},t);function s(v){return o.get(v)}function c(v,y,b){const _=!b,L=rC(v);L.aliasOf=b&&b.record;const C=tm(t,v),N=[L];if("alias"in v){const O=typeof v.alias=="string"?[v.alias]:v.alias;for(const M of O)N.push(yt({},L,{components:b?b.record.components:L.components,path:M,aliasOf:b?b.record:L}))}let A,E;for(const O of N){const{path:M}=O;if(y&&M[0]!=="/"){const z=y.record.path,B=z[z.length-1]==="/"?"":"/";O.path=y.record.path+(M&&B+M)}if(A=tC(O,y,C),b?b.alias.push(A):(E=E||A,E!==A&&E.alias.push(A),_&&v.name&&!em(A)&&f(v.name)),Yy(A)&&h(A),L.children){const z=L.children;for(let B=0;B<z.length;B++)c(z[B],A,b&&b.children[B])}b=b||A}return E?()=>{f(E)}:Tl}function f(v){if(Gy(v)){const y=o.get(v);y&&(o.delete(v),r.splice(r.indexOf(y),1),y.children.forEach(f),y.alias.forEach(f))}else{const y=r.indexOf(v);y>-1&&(r.splice(y,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const y=sC(v,r);r.splice(y,0,v),v.record.name&&!em(v)&&o.set(v.record.name,v)}function p(v,y){let b,_={},L,C;if("name"in v&&v.name){if(b=o.get(v.name),!b)throw ws(1,{location:v});C=b.record.name,_=yt(Qv(y.params,b.keys.filter(E=>!E.optional).concat(b.parent?b.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),v.params&&Qv(v.params,b.keys.map(E=>E.name))),L=b.stringify(_)}else if(v.path!=null)L=v.path,b=r.find(E=>E.re.test(L)),b&&(_=b.parse(L),C=b.record.name);else{if(b=y.name?o.get(y.name):r.find(E=>E.re.test(y.path)),!b)throw ws(1,{location:v,currentLocation:y});C=b.record.name,_=yt({},y.params,v.params),L=b.stringify(_)}const N=[];let A=b;for(;A;)N.unshift(A.record),A=A.parent;return{name:C,path:L,params:_,matched:N,meta:oC(N)}}return e.forEach(v=>c(v)),{addRoute:c,resolve:p,removeRoute:f,getRoutes:d,getRecordMatcher:s}}function Qv(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function rC(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:iC(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 iC(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 em(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function oC(e){return e.reduce((t,r)=>yt(t,r.meta),{})}function tm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function sC(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;Xy(e,t[c])<0?o=c:r=c+1}const s=lC(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function lC(e){let t=e;for(;t=t.parent;)if(Yy(t)&&Xy(e,t)===0)return t}function Yy({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function aC(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(qy," "),f=c.indexOf("="),d=Hl(f<0?c:c.slice(0,f)),h=f<0?null:Hl(c.slice(f+1));if(d in t){let p=t[d];br(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function nm(e){let t="";for(let r in e){const o=e[r];if(r=CT(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(br(o)?o.map(c=>c&&yd(c)):[o&&yd(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function cC(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=br(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const uC=Symbol(""),rm=Symbol(""),Eh=Symbol(""),Zy=Symbol(""),wd=Symbol("");function ul(){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 Oi(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(ws(4,{from:r,to:t})):b instanceof Error?h(b):GT(b)?h(ws(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 Bf(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(fC(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Oi(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=gT(v)?v.default:v;f.components[d]=y;const _=(y.__vccOpts||y)[t];return _&&Oi(_,r,o,f,d,s)()}))}}return c}function fC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function im(e){const t=ei(Eh),r=ei(Zy),o=$e(()=>{const h=q(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(bs.bind(null,v));if(b>-1)return b;const _=om(h[p-2]);return p>1&&om(v)===_&&y[y.length-1].path!==_?y.findIndex(bs.bind(null,h[p-2])):b}),c=$e(()=>s.value>-1&&gC(r.params,o.value.params)),f=$e(()=>s.value>-1&&s.value===r.matched.length-1&&Vy(r.params,o.value.params));function d(h={}){return pC(h)?t[q(e.replace)?"replace":"push"](q(e.to)).catch(Tl):Promise.resolve()}return{route:o,href:$e(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const dC=pt({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:im,setup(e,{slots:t}){const r=Zn(im(e)),{options:o}=ei(Eh),s=$e(()=>({[sm(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[sm(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:sa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),hC=dC;function pC(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 gC(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(!br(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function om(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sm=(e,t,r)=>e??t??r,vC=pt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=ei(wd),s=$e(()=>e.route||o.value),c=ei(rm,0),f=$e(()=>{let p=q(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=$e(()=>s.value.matched[f.value]);pc(rm,$e(()=>f.value+1)),pc(uC,d),pc(wd,s);const h=Ke();return Gt(()=>[h.value,d.value,e.name],([p,v,y],[b,_,L])=>{v&&(v.instances[y]=p,_&&_!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=_.leaveGuards),v.updateGuards.size||(v.updateGuards=_.updateGuards))),p&&v&&(!_||!bs(v,_)||!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 lm(r.default,{Component:b,route:p});const _=y.props[v],L=_?_===!0?p.params:typeof _=="function"?_(p):_:null,N=sa(b,yt({},L,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return lm(r.default,{Component:N,route:p})||N}}});function lm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const mC=vC;function yC(e){const t=nC(e.routes,e),r=e.parseQuery||aC,o=e.stringifyQuery||nm,s=e.history,c=ul(),f=ul(),d=ul(),h=Dr(Ci);let p=Ci;is&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Hf.bind(null,K=>""+K),y=Hf.bind(null,LT),b=Hf.bind(null,Hl);function _(K,ae){let de,Ne;return Gy(K)?(de=t.getRecordMatcher(K),Ne=ae):Ne=K,t.addRoute(Ne,de)}function L(K){const ae=t.getRecordMatcher(K);ae&&t.removeRoute(ae)}function C(){return t.getRoutes().map(K=>K.record)}function N(K){return!!t.getRecordMatcher(K)}function A(K,ae){if(ae=yt({},ae||h.value),typeof K=="string"){const F=qf(r,K,ae.path),Z=t.resolve({path:F.path},ae),ce=s.createHref(F.fullPath);return yt(F,Z,{params:b(Z.params),hash:Hl(F.hash),redirectedFrom:void 0,href:ce})}let de;if(K.path!=null)de=yt({},K,{path:qf(r,K.path,ae.path).path});else{const F=yt({},K.params);for(const Z in F)F[Z]==null&&delete F[Z];de=yt({},K,{params:y(F)}),ae.params=y(ae.params)}const Ne=t.resolve(de,ae),Ce=K.hash||"";Ne.params=v(b(Ne.params));const Ye=NT(o,yt({},K,{hash:TT(Ce),path:Ne.path})),P=s.createHref(Ye);return yt({fullPath:Ye,hash:Ce,query:o===nm?cC(K.query):K.query||{}},Ne,{redirectedFrom:void 0,href:P})}function E(K){return typeof K=="string"?qf(r,K,h.value.path):yt({},K)}function O(K,ae){if(p!==K)return ws(8,{from:ae,to:K})}function M(K){return ne(K)}function z(K){return M(yt(E(K),{replace:!0}))}function B(K){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let Ne=typeof de=="function"?de(K):de;return typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=E(Ne):{path:Ne},Ne.params={}),yt({query:K.query,hash:K.hash,params:Ne.path!=null?{}:K.params},Ne)}}function ne(K,ae){const de=p=A(K),Ne=h.value,Ce=K.state,Ye=K.force,P=K.replace===!0,F=B(de);if(F)return ne(yt(E(F),{state:typeof F=="object"?yt({},Ce,F.state):Ce,force:Ye,replace:P}),ae||de);const Z=de;Z.redirectedFrom=ae;let ce;return!Ye&&$T(o,Ne,de)&&(ce=ws(16,{to:Z,from:Ne}),qe(Ne,Ne,!0,!1)),(ce?Promise.resolve(ce):G(Z,Ne)).catch(se=>Gr(se)?Gr(se,2)?se:Me(se):te(se,Z,Ne)).then(se=>{if(se){if(Gr(se,2))return ne(yt({replace:P},E(se.to),{state:typeof se.to=="object"?yt({},Ce,se.to.state):Ce,force:Ye}),ae||Z)}else se=Q(Z,Ne,!0,P,Ce);return X(Z,Ne,se),se})}function re(K,ae){const de=O(K,ae);return de?Promise.reject(de):Promise.resolve()}function oe(K){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(K):K()}function G(K,ae){let de;const[Ne,Ce,Ye]=bC(K,ae);de=Bf(Ne.reverse(),"beforeRouteLeave",K,ae);for(const F of Ne)F.leaveGuards.forEach(Z=>{de.push(Oi(Z,K,ae))});const P=re.bind(null,K,ae);return de.push(P),Te(de).then(()=>{de=[];for(const F of c.list())de.push(Oi(F,K,ae));return de.push(P),Te(de)}).then(()=>{de=Bf(Ce,"beforeRouteUpdate",K,ae);for(const F of Ce)F.updateGuards.forEach(Z=>{de.push(Oi(Z,K,ae))});return de.push(P),Te(de)}).then(()=>{de=[];for(const F of Ye)if(F.beforeEnter)if(br(F.beforeEnter))for(const Z of F.beforeEnter)de.push(Oi(Z,K,ae));else de.push(Oi(F.beforeEnter,K,ae));return de.push(P),Te(de)}).then(()=>(K.matched.forEach(F=>F.enterCallbacks={}),de=Bf(Ye,"beforeRouteEnter",K,ae,oe),de.push(P),Te(de))).then(()=>{de=[];for(const F of f.list())de.push(Oi(F,K,ae));return de.push(P),Te(de)}).catch(F=>Gr(F,8)?F:Promise.reject(F))}function X(K,ae,de){d.list().forEach(Ne=>oe(()=>Ne(K,ae,de)))}function Q(K,ae,de,Ne,Ce){const Ye=O(K,ae);if(Ye)return Ye;const P=ae===Ci,F=is?history.state:{};de&&(Ne||P?s.replace(K.fullPath,yt({scroll:P&&F&&F.scroll},Ce)):s.push(K.fullPath,Ce)),h.value=K,qe(K,ae,de,P),Me()}let V;function I(){V||(V=s.listen((K,ae,de)=>{if(!Ze.listening)return;const Ne=A(K),Ce=B(Ne);if(Ce){ne(yt(Ce,{replace:!0}),Ne).catch(Tl);return}p=Ne;const Ye=h.value;is&&HT(Kv(Ye.fullPath,de.delta),bu()),G(Ne,Ye).catch(P=>Gr(P,12)?P:Gr(P,2)?(ne(P.to,Ne).then(F=>{Gr(F,20)&&!de.delta&&de.type===ql.pop&&s.go(-1,!1)}).catch(Tl),Promise.reject()):(de.delta&&s.go(-de.delta,!1),te(P,Ne,Ye))).then(P=>{P=P||Q(Ne,Ye,!1),P&&(de.delta&&!Gr(P,8)?s.go(-de.delta,!1):de.type===ql.pop&&Gr(P,20)&&s.go(-1,!1)),X(Ne,Ye,P)}).catch(Tl)}))}let k=ul(),H=ul(),W;function te(K,ae,de){Me(K);const Ne=H.list();return Ne.length?Ne.forEach(Ce=>Ce(K,ae,de)):console.error(K),Promise.reject(K)}function me(){return W&&h.value!==Ci?Promise.resolve():new Promise((K,ae)=>{k.add([K,ae])})}function Me(K){return W||(W=!K,I(),k.list().forEach(([ae,de])=>K?de(K):ae()),k.reset()),K}function qe(K,ae,de,Ne){const{scrollBehavior:Ce}=e;if(!is||!Ce)return Promise.resolve();const Ye=!de&&qT(Kv(K.fullPath,0))||(Ne||!de)&&history.state&&history.state.scroll||null;return er().then(()=>Ce(K,ae,Ye)).then(P=>P&&FT(P)).catch(P=>te(P,K,ae))}const Ue=K=>s.go(K);let it;const rt=new Set,Ze={currentRoute:h,listening:!0,addRoute:_,removeRoute:L,hasRoute:N,getRoutes:C,resolve:A,options:e,push:M,replace:z,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:H.add,isReady:me,install(K){const ae=this;K.component("RouterLink",hC),K.component("RouterView",mC),K.config.globalProperties.$router=ae,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>q(h)}),is&&!it&&h.value===Ci&&(it=!0,M(s.location).catch(Ce=>{}));const de={};for(const Ce in Ci)Object.defineProperty(de,Ce,{get:()=>h.value[Ce],enumerable:!0});K.provide(Eh,ae),K.provide(Zy,oh(de)),K.provide(wd,h);const Ne=K.unmount;rt.add(K),K.unmount=function(){rt.delete(K),rt.size<1&&(p=Ci,V&&V(),V=null,h.value=Ci,it=!1,W=!1),Ne()}}};function Te(K){return K.reduce((ae,de)=>ae.then(()=>oe(de)),Promise.resolve())}return Ze}function bC(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=>bs(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>bs(p,h))||s.push(h))}return[r,o,s]}const wC=["top","right","bottom","left"],am=["start","end"],cm=wC.reduce((e,t)=>e.concat(t,t+"-"+am[0],t+"-"+am[1]),[]),Bl=Math.min,bo=Math.max,xC={left:"right",right:"left",bottom:"top",top:"bottom"},_C={start:"end",end:"start"};function xd(e,t,r){return bo(e,Bl(t,r))}function Mo(e,t){return typeof e=="function"?e(t):e}function Rr(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Jy(e){return e==="x"?"y":"x"}function Lh(e){return e==="y"?"height":"width"}function la(e){return["top","bottom"].includes(Rr(e))?"y":"x"}function Ah(e){return Jy(la(e))}function Qy(e,t,r){r===void 0&&(r=!1);const o=vr(e),s=Ah(e),c=Lh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Bc(f)),[f,Bc(f)]}function SC(e){const t=Bc(e);return[qc(e),t,qc(t)]}function qc(e){return e.replace(/start|end/g,t=>_C[t])}function kC(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 TC(e,t,r,o){const s=vr(e);let c=kC(Rr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(qc)))),c}function Bc(e){return e.replace(/left|right|bottom|top/g,t=>xC[t])}function CC(e){return{top:0,right:0,bottom:0,left:0,...e}}function eb(e){return typeof e!="number"?CC(e):{top:e,right:e,bottom:e,left:e}}function El(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function um(e,t,r){let{reference:o,floating:s}=e;const c=la(t),f=Ah(t),d=Lh(f),h=Rr(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 _;switch(h){case"top":_={x:v,y:o.y-s.height};break;case"bottom":_={x:v,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y};break;case"left":_={x:o.x-s.width,y};break;default:_={x:o.x,y:o.y}}switch(vr(t)){case"start":_[f]-=b*(r&&p?-1:1);break;case"end":_[f]+=b*(r&&p?-1:1);break}return _}const EC=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}=um(p,o,h),b=o,_={},L=0;for(let C=0;C<d.length;C++){const{name:N,fn:A}=d[C],{x:E,y:O,data:M,reset:z}=await A({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:_,rects:p,platform:f,elements:{reference:e,floating:t}});v=E??v,y=O??y,_={..._,[N]:{..._[N],...M}},z&&L<=50&&(L++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:v,y}=um(p,b,h)),C=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:_}};async function wu(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:_=0}=Mo(t,e),L=eb(_),N=d[b?y==="floating"?"reference":"floating":y],A=El(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(N)))==null||r?N:N.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),E=y==="floating"?{...f.floating,x:o,y:s}:f.reference,O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),M=await(c.isElement==null?void 0:c.isElement(O))?await(c.getScale==null?void 0:c.getScale(O))||{x:1,y:1}:{x:1,y:1},z=El(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:E,offsetParent:O,strategy:h}):E);return{top:(A.top-z.top+L.top)/M.y,bottom:(z.bottom-A.bottom+L.bottom)/M.y,left:(A.left-z.left+L.left)/M.x,right:(z.right-A.right+L.right)/M.x}}const LC=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}=Mo(e,t)||{};if(p==null)return{};const y=eb(v),b={x:r,y:o},_=Ah(s),L=Lh(_),C=await f.getDimensions(p),N=_==="y",A=N?"top":"left",E=N?"bottom":"right",O=N?"clientHeight":"clientWidth",M=c.reference[L]+c.reference[_]-b[_]-c.floating[L],z=b[_]-c.reference[_],B=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ne=B?B[O]:0;(!ne||!await(f.isElement==null?void 0:f.isElement(B)))&&(ne=d.floating[O]||c.floating[L]);const re=M/2-z/2,oe=ne/2-C[L]/2-1,G=Bl(y[A],oe),X=Bl(y[E],oe),Q=G,V=ne-C[L]-X,I=ne/2-C[L]/2+re,k=xd(Q,I,V),H=!h.arrow&&vr(s)!=null&&I!==k&&c.reference[L]/2-(I<Q?G:X)-C[L]/2<0,W=H?I<Q?I-Q:I-V:0;return{[_]:b[_]+W,data:{[_]:k,centerOffset:I-k-W,...H&&{alignmentOffset:W}},reset:H}}});function AC(e,t,r){return(e?[...r.filter(s=>vr(s)===e),...r.filter(s=>vr(s)!==e)]:r.filter(s=>Rr(s)===s)).filter(s=>e?vr(s)===e||(t?qc(s)!==s:!1):!0)}const MC=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=cm,autoAlignment:_=!0,...L}=Mo(e,t),C=y!==void 0||b===cm?AC(y||null,_,b):b,N=await wu(t,L),A=((r=f.autoPlacement)==null?void 0:r.index)||0,E=C[A];if(E==null)return{};const O=Qy(E,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==E)return{reset:{placement:C[0]}};const M=[N[Rr(E)],N[O[0]],N[O[1]]],z=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:E,overflows:M}],B=C[A+1];if(B)return{data:{index:A+1,overflows:z},reset:{placement:B}};const ne=z.map(G=>{const X=vr(G.placement);return[G.placement,X&&v?G.overflows.slice(0,2).reduce((Q,V)=>Q+V,0):G.overflows[0],G.overflows]}).sort((G,X)=>G[1]-X[1]),oe=((s=ne.filter(G=>G[2].slice(0,vr(G[0])?2:3).every(X=>X<=0))[0])==null?void 0:s[0])||ne[0][0];return oe!==d?{data:{index:A+1,overflows:z},reset:{placement:oe}}:{}}}},NC=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:_="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:C=!0,...N}=Mo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const A=Rr(s),E=Rr(d)===d,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),M=b||(E||!C?[Bc(d)]:SC(d));!b&&L!=="none"&&M.push(...TC(d,C,L,O));const z=[d,...M],B=await wu(t,N),ne=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ne.push(B[A]),y){const Q=Qy(s,f,O);ne.push(B[Q[0]],B[Q[1]])}if(re=[...re,{placement:s,overflows:ne}],!ne.every(Q=>Q<=0)){var oe,G;const Q=(((oe=c.flip)==null?void 0:oe.index)||0)+1,V=z[Q];if(V)return{data:{index:Q,overflows:re},reset:{placement:V}};let I=(G=re.filter(k=>k.overflows[0]<=0).sort((k,H)=>k.overflows[1]-H.overflows[1])[0])==null?void 0:G.placement;if(!I)switch(_){case"bestFit":{var X;const k=(X=re.map(H=>[H.placement,H.overflows.filter(W=>W>0).reduce((W,te)=>W+te,0)]).sort((H,W)=>H[1]-W[1])[0])==null?void 0:X[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function $C(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Rr(r),d=vr(r),h=la(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=Mo(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:L}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof L=="number"&&(_=d==="end"?L*-1:L),h?{x:_*v,y:b*p}:{x:b*p,y:_*v}}const OC=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 $C(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}}}}},PC=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:N=>{let{x:A,y:E}=N;return{x:A,y:E}}},...h}=Mo(e,t),p={x:r,y:o},v=await wu(t,h),y=la(Rr(s)),b=Jy(y);let _=p[b],L=p[y];if(c){const N=b==="y"?"top":"left",A=b==="y"?"bottom":"right",E=_+v[N],O=_-v[A];_=xd(E,_,O)}if(f){const N=y==="y"?"top":"left",A=y==="y"?"bottom":"right",E=L+v[N],O=L-v[A];L=xd(E,L,O)}const C=d.fn({...t,[b]:_,[y]:L});return{...C,data:{x:C.x-r,y:C.y-o}}}}},RC=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}=Mo(e,t),h=await wu(t,d),p=Rr(r),v=vr(r),y=la(r)==="y",{width:b,height:_}=o.floating;let L,C;p==="top"||p==="bottom"?(L=p,C=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(C=p,L=v==="end"?"top":"bottom");const N=_-h[L],A=b-h[C],E=!t.middlewareData.shift;let O=N,M=A;if(y){const B=b-h.left-h.right;M=v||E?Bl(A,B):B}else{const B=_-h.top-h.bottom;O=v||E?Bl(N,B):B}if(E&&!v){const B=bo(h.left,0),ne=bo(h.right,0),re=bo(h.top,0),oe=bo(h.bottom,0);y?M=b-2*(B!==0||ne!==0?B+ne:bo(h.left,h.right)):O=_-2*(re!==0||oe!==0?re+oe:bo(h.top,h.bottom))}await f({...t,availableWidth:M,availableHeight:O});const z=await s.getDimensions(c.floating);return b!==z.width||_!==z.height?{reset:{rects:!0}}:{}}}};function Yn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Nr(e){return Yn(e).getComputedStyle(e)}const fm=Math.min,Ll=Math.max,Wc=Math.round;function tb(e){const t=Nr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Wc(r)!==s||Wc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Vi(e){return rb(e)?(e.nodeName||"").toLowerCase():""}let Qa;function nb(){if(Qa)return Qa;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Qa=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Qa):navigator.userAgent}function $r(e){return e instanceof Yn(e).HTMLElement}function Bi(e){return e instanceof Yn(e).Element}function rb(e){return e instanceof Yn(e).Node}function dm(e){return typeof ShadowRoot>"u"?!1:e instanceof Yn(e).ShadowRoot||e instanceof ShadowRoot}function xu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function DC(e){return["table","td","th"].includes(Vi(e))}function _d(e){const t=/firefox/i.test(nb()),r=Nr(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 ib(){return!/^((?!chrome|android).)*safari/i.test(nb())}function Mh(e){return["html","body","#document"].includes(Vi(e))}function ob(e){return Bi(e)?e:e.contextElement}const sb={x:1,y:1};function hs(e){const t=ob(e);if(!$r(t))return sb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=tb(t);let f=(c?Wc(r.width):r.width)/o,d=(c?Wc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Wl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=ob(e);let h=sb;t&&(o?Bi(o)&&(h=hs(o)):h=hs(e));const p=d?Yn(d):window,v=!ib()&&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,_=f.width/h.x,L=f.height/h.y;if(d){const C=Yn(d),N=o&&Bi(o)?Yn(o):o;let A=C.frameElement;for(;A&&o&&N!==C;){const E=hs(A),O=A.getBoundingClientRect(),M=getComputedStyle(A);O.x+=(A.clientLeft+parseFloat(M.paddingLeft))*E.x,O.y+=(A.clientTop+parseFloat(M.paddingTop))*E.y,y*=E.x,b*=E.y,_*=E.x,L*=E.y,y+=O.x,b+=O.y,A=Yn(A).frameElement}}return{width:_,height:L,top:b,right:y+_,bottom:b+L,left:y,x:y,y:b}}function Wi(e){return((rb(e)?e.ownerDocument:e.document)||window.document).documentElement}function _u(e){return Bi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lb(e){return Wl(Wi(e)).left+_u(e).scrollLeft}function Ul(e){if(Vi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dm(e)&&e.host||Wi(e);return dm(t)?t.host:t}function ab(e){const t=Ul(e);return Mh(t)?t.ownerDocument.body:$r(t)&&xu(t)?t:ab(t)}function Uc(e,t){var r;t===void 0&&(t=[]);const o=ab(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=Yn(o);return s?t.concat(c,c.visualViewport||[],xu(o)?o:[]):t.concat(o,Uc(o))}function hm(e,t,r){return t==="viewport"?El(function(o,s){const c=Yn(o),f=Wi(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=ib();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):Bi(t)?El(function(o,s){const c=Wl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=$r(o)?hs(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)):El(function(o){const s=Wi(o),c=_u(o),f=o.ownerDocument.body,d=Ll(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Ll(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+lb(o);const v=-c.scrollTop;return Nr(f).direction==="rtl"&&(p+=Ll(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Wi(e)))}function pm(e){return $r(e)&&Nr(e).position!=="fixed"?e.offsetParent:null}function gm(e){const t=Yn(e);let r=pm(e);for(;r&&DC(r)&&Nr(r).position==="static";)r=pm(r);return r&&(Vi(r)==="html"||Vi(r)==="body"&&Nr(r).position==="static"&&!_d(r))?t:r||function(o){let s=Ul(o);for(;$r(s)&&!Mh(s);){if(_d(s))return s;s=Ul(s)}return null}(e)||t}function zC(e,t,r){const o=$r(t),s=Wi(t),c=Wl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Vi(t)!=="body"||xu(s))&&(f=_u(t)),$r(t)){const h=Wl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=lb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const IC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Uc(p).filter(N=>Bi(N)&&Vi(N)!=="body"),_=null;const L=Nr(p).position==="fixed";let C=L?Ul(p):p;for(;Bi(C)&&!Mh(C);){const N=Nr(C),A=_d(C);(L?A||_:A||N.position!=="static"||!_||!["absolute","fixed"].includes(_.position))?_=N:b=b.filter(E=>E!==C),C=Ul(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=hm(t,v,s);return p.top=Ll(y.top,p.top),p.right=fm(y.right,p.right),p.bottom=fm(y.bottom,p.bottom),p.left=Ll(y.left,p.left),p},hm(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=$r(r),c=Wi(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")&&((Vi(r)!=="body"||xu(c))&&(f=_u(r)),$r(r))){const p=Wl(r);d=hs(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:Bi,getDimensions:function(e){return $r(e)?tb(e):e.getBoundingClientRect()},getOffsetParent:gm,getDocumentElement:Wi,getScale:hs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||gm,c=this.getDimensions;return{reference:zC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Nr(e).direction==="rtl"},FC=(e,t,r)=>{const o=new Map,s={platform:IC,...r},c={...s.platform,_c:o};return EC(e,t,{...s,platform:c})};function cb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?cb(e[r],t[r]):e[r]=t[r])}const mr={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 Vl(e,t){let r=mr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=mr.themes[r.$extend]||{}:(r=null,o=mr[t]):r=null;while(r);return o}function HC(e){const t=[e];let r=mr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=mr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function vm(e){const t=[e];let r=mr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=mr.themes[r.$extend]||{}):r=null;while(r);return t}let xs=!1;if(typeof window<"u"){xs=!1;try{const e=Object.defineProperty({},"passive",{get(){xs=!0}});window.addEventListener("test",null,e)}catch{}}let ub=!1;typeof window<"u"&&typeof navigator<"u"&&(ub=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const fb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),mm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ym={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function bm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Wf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Hn=[];let yo=null;const wm={};function xm(e){let t=wm[e];return t||(t=wm[e]=[]),t}let Sd=function(){};typeof window<"u"&&(Sd=window.Element);function lt(e){return function(t){return Vl(t.theme,e)}}const Uf="__floating-vue__popper",db=()=>pt({name:"VPopper",provide(){return{[Uf]:{parentPopper:this}}},inject:{[Uf]:{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:lt("disabled")},positioningDisabled:{type:Boolean,default:lt("positioningDisabled")},placement:{type:String,default:lt("placement"),validator:e=>fb.includes(e)},delay:{type:[String,Number,Object],default:lt("delay")},distance:{type:[Number,String],default:lt("distance")},skidding:{type:[Number,String],default:lt("skidding")},triggers:{type:Array,default:lt("triggers")},showTriggers:{type:[Array,Function],default:lt("showTriggers")},hideTriggers:{type:[Array,Function],default:lt("hideTriggers")},popperTriggers:{type:Array,default:lt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:lt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:lt("popperHideTriggers")},container:{type:[String,Object,Sd,Boolean],default:lt("container")},boundary:{type:[String,Sd],default:lt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:lt("strategy")},autoHide:{type:[Boolean,Function],default:lt("autoHide")},handleResize:{type:Boolean,default:lt("handleResize")},instantMove:{type:Boolean,default:lt("instantMove")},eagerMount:{type:Boolean,default:lt("eagerMount")},popperClass:{type:[String,Array,Object],default:lt("popperClass")},computeTransformOrigin:{type:Boolean,default:lt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:lt("autoMinSize")},autoSize:{type:[Boolean,String],default:lt("autoSize")},autoMaxSize:{type:Boolean,default:lt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:lt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:lt("preventOverflow")},overflowPadding:{type:[Number,String],default:lt("overflowPadding")},arrowPadding:{type:[Number,String],default:lt("arrowPadding")},arrowOverflow:{type:Boolean,default:lt("arrowOverflow")},flip:{type:Boolean,default:lt("flip")},shift:{type:Boolean,default:lt("shift")},shiftCrossAxis:{type:Boolean,default:lt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:lt("noAutoFocus")},disposeTimeout:{type:Number,default:lt("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[Uf])==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(OC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(MC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(PC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(NC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(LC({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(RC({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 FC(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),yo&&this.instantMove&&yo.instantMove&&yo!==this.parentPopper){yo.$_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&&(yo=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 Wf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Uc(this.$_referenceNode),...Uc(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<Hn.length;r++)t=Hn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Hn.push(this),document.body.classList.add("v-popper--some-open");for(const t of vm(this.theme))xm(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 Wf(),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,bm(Hn,this),Hn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of vm(this.theme)){const o=xm(r);bm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}yo===this&&(yo=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 Wf(),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,mm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],mm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,ym,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ym,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,xs?{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(Al>=e.left&&Al<=e.right&&Ml>=e.top&&Ml<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Al-Li,o=Ml-Ai,s=t.left+t.width/2-Li+(t.top+t.height/2)-Ai+t.width+t.height,c=Li+r*s,f=Ai+o*s;return ec(Li,Ai,c,f,t.left,t.top,t.left,t.bottom)||ec(Li,Ai,c,f,t.left,t.top,t.right,t.top)||ec(Li,Ai,c,f,t.right,t.top,t.right,t.bottom)||ec(Li,Ai,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(ub){const e=xs?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>_m(t,!0),e),document.addEventListener("touchend",t=>Sm(t,!0),e)}else window.addEventListener("mousedown",e=>_m(e,!1),!0),window.addEventListener("click",e=>Sm(e,!1),!0);window.addEventListener("resize",BC)}function _m(e,t){if(mr.autoHideOnMousedown)hb(e,t);else for(let r=0;r<Hn.length;r++){const o=Hn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Sm(e,t){mr.autoHideOnMousedown||hb(e,t)}function hb(e,t){const r={};for(let o=Hn.length-1;o>=0;o--){const s=Hn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&km(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&&km(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function km(e,t,r){return r.closeAllPopover||r.closePopover&&t||qC(e,r)&&!t}function qC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function BC(){for(let e=0;e<Hn.length;e++)Hn[e].$_computePosition()}function Tm(){for(let e=0;e<Hn.length;e++)Hn[e].hide()}let Li=0,Ai=0,Al=0,Ml=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Li=Al,Ai=Ml,Al=e.clientX,Ml=e.clientY},xs?{passive:!0}:void 0);function ec(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 WC={extends:db()},Su=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function UC(e,t,r,o,s,c){return le(),be("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[dn(e.$slots,"default",I_($y(e.slotData)))],2)}const VC=Su(WC,[["render",UC]]);function jC(){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 yc;function kd(){kd.init||(kd.init=!0,yc=jC()!==-1)}var ku={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){kd(),er(()=>{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",yc&&this.$el.appendChild(e),e.data="about:blank",yc||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&&(!yc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const GC=ly();hh("data-v-b329ee4c");const KC={class:"resize-observer",tabindex:"-1"};ph();const XC=GC((e,t,r,o,s,c)=>(le(),ot("div",KC)));ku.render=XC;ku.__scopeId="data-v-b329ee4c";ku.__file="src/components/ResizeObserver.vue";const pb=(e="theme")=>({computed:{themeClass(){return HC(this[e])}}}),YC=pt({name:"VPopperContent",components:{ResizeObserver:ku},mixins:[pb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),ZC=["id","aria-hidden","tabindex","data-popper-placement"],JC={ref:"inner",class:"v-popper__inner"},QC=Y("div",{class:"v-popper__arrow-outer"},null,-1),eE=Y("div",{class:"v-popper__arrow-inner"},null,-1),tE=[QC,eE];function nE(e,t,r,o,s,c){const f=Eo("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]=md(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",JC,[e.mounted?(le(),be(dt,{key:0},[Y("div",null,[dn(e.$slots,"default")]),e.handleResize?(le(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):et("",!0)],64)):et("",!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)},tE,4)],4)],46,ZC)}const gb=Su(YC,[["render",nE]]),vb={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 Td=function(){};typeof window<"u"&&(Td=window.Element);const rE=pt({name:"VPopperWrapper",components:{Popper:VC,PopperContent:gb},mixins:[vb,pb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Td,Boolean],default:void 0},boundary:{type:[String,Td],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 iE(e,t,r,o,s,c){const f=Eo("PopperContent"),d=Eo("Popper");return le(),ot(d,ti({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:ct(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:_,hide:L,handleResize:C,onResize:N,classes:A,result:E})=>[dn(e.$slots,"default",{shown:p,show:_,hide:L}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":C,classes:A,result:E,onHide:L,onResize:N},{default:ct(()=>[dn(e.$slots,"popper",{shown:p,hide:L})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Nh=Su(rE,[["render",iE]]),oE={...Nh,name:"VDropdown",vPopperTheme:"dropdown"},sE={...Nh,name:"VMenu",vPopperTheme:"menu"},mb={...Nh,name:"VTooltip",vPopperTheme:"tooltip"},lE=pt({name:"VTooltipDirective",components:{Popper:db(),PopperContent:gb},mixins:[vb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Vl(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Vl(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}}}),aE=["innerHTML"],cE=["textContent"];function uE(e,t,r,o,s,c){const f=Eo("PopperContent"),d=Eo("Popper");return le(),ot(d,ti({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ct(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:_,handleResize:L,onResize:C,classes:N,result:A})=>[Pe(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":L,classes:N,result:A,onHide:_,onResize:C},{default:ct(()=>[e.html?(le(),be("div",{key:0,innerHTML:e.finalContent},null,8,aE)):(le(),be("div",{key:1,textContent:Ge(e.finalContent)},null,8,cE))]),_: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 fE=Su(lE,[["render",uE]]),yb="v-popper--has-tooltip";function dE(e,t){let r=e.placement;if(!r&&t)for(const o of fb)t[o]&&(r=o);return r||(r=Vl(e.theme||"tooltip","placement")),r}function bb(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=dE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Vf,jl,hE=0;function pE(){if(Vf)return;jl=Ke([]),Vf=Fy({name:"VTooltipDirectiveApp",setup(){return{directives:jl}},render(){return this.directives.map(t=>sa(fE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Vf.mount(e)}function wb(e,t,r){pE();const o=Ke(bb(e,t,r)),s=Ke(!1),c={id:hE++,options:o,shown:s};return jl.value.push(c),e.classList&&e.classList.add(yb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function $h(e){if(e.$_popper){const t=jl.value.indexOf(e.$_popper.item);t!==-1&&jl.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(yb)}function Cm(e,{value:t,modifiers:r}){const o=bb(e,t,r);if(!o.content||Vl(o.theme||"tooltip","disabled"))$h(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=wb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const xb={beforeMount:Cm,updated:Cm,beforeUnmount(e){$h(e)}};function Em(e){e.addEventListener("mousedown",Vc),e.addEventListener("click",Vc),e.addEventListener("touchstart",_b,xs?{passive:!0}:!1)}function Lm(e){e.removeEventListener("mousedown",Vc),e.removeEventListener("click",Vc),e.removeEventListener("touchstart",_b),e.removeEventListener("touchend",Sb),e.removeEventListener("touchcancel",kb)}function Vc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function _b(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",Sb),t.addEventListener("touchcancel",kb)}}function Sb(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 kb(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const gE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Em(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Em(e):Lm(e))},beforeUnmount(e){Lm(e)}},vE=xb,mE=mb;function yE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,cb(mr,t),e.directive("tooltip",xb),e.directive("close-popper",gE),e.component("VTooltip",mb),e.component("VDropdown",oE),e.component("VMenu",sE))}const Tb={version:"5.2.2",install:yE,options:mr},bE=6e4;function Cb(e){return e}const wE=Cb,{clearTimeout:xE,setTimeout:_E}=globalThis,SE=Math.random.bind(Math);function kE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Cb,deserialize:f=wE,resolver:d,timeout:h=bE}=t,p=new Map;let v;const y=new Proxy({},{get(b,_){if(_==="$functions")return e;if(_==="then"&&!s.includes("then")&&!("then"in e))return;const L=(...N)=>{r(c({m:_,a:N,t:"q"}))};if(s.includes(_))return L.asEvent=L,L;const C=async(...N)=>(await v,new Promise((A,E)=>{var z;const O=CE();let M;h>=0&&(M=_E(()=>{var B;try{throw(B=t.onTimeoutError)==null||B.call(t,_,N),new Error(`[birpc] timeout on calling "${_}"`)}catch(ne){E(ne)}p.delete(O)},h),typeof M=="object"&&(M=(z=M.unref)==null?void 0:z.call(M))),p.set(O,{resolve:A,reject:E,timeoutId:M}),r(c({m:_,a:N,i:O,t:"q"}))}));return C.asEvent=L,C}});return v=o(async(b,..._)=>{const L=f(b);if(L.t==="q"){const{m:C,a:N}=L;let A,E;const O=d?d(C,e[C]):e[C];if(!O)E=new Error(`[birpc] function "${C}" not found`);else try{A=await O.apply(y,N)}catch(M){E=M}L.i&&(E&&t.onError&&t.onError(E,C,N),r(c({t:"s",i:L.i,r:A,e:E}),..._))}else{const{i:C,r:N,e:A}=L,E=p.get(C);E&&(xE(E.timeoutId),A?E.reject(A):E.resolve(N)),p.delete(C)}}),y}const TE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function CE(e=21){let t="",r=e;for(;r--;)t+=TE[SE()*64|0];return t}const{parse:EE,stringify:LE}=JSON,{keys:AE}=Object,Gl=String,Eb="string",Am={},jc="object",Lb=(e,t)=>t,ME=e=>e instanceof Gl?Gl(e):e,NE=(e,t)=>typeof t===Eb?new Gl(t):t,Ab=(e,t,r,o)=>{const s=[];for(let c=AE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Gl){const v=e[p];typeof v===jc&&!t.has(v)?(t.add(v),r[h]=Am,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Am&&(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,Ab.apply(null,h))}return r},Mm=(e,t,r)=>{const o=Gl(t.push(r)-1);return e.set(r,o),o},Cd=(e,t)=>{const r=EE(e,NE).map(ME),o=r[0],s=t||Lb,c=typeof o===jc&&o?Ab(r,new Set,o,s):o;return s.call({"":c},"",c)},$E=(e,t,r)=>{const o=t&&typeof t===jc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||Lb,s=new Map,c=[],f=[];let d=+Mm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=LE(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 jc:if(b===null)return b;case Eb:return s.get(b)||Mm(s,c,b)}return b}};var Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nb(e){return e!=null}function Oh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const OE=/^[A-Za-z]:\//;function PE(e=""){return e&&e.replace(/\\/g,"/").replace(OE,t=>t.toUpperCase())}const RE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Nm=/^\/([A-Za-z]:)?$/;function DE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $m=function(...e){e=e.map(o=>PE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:DE();!s||s.length===0||(t=`${s}/${t}`,r=Om(s))}return t=zE(t,!r),r&&!Om(t)?`/${t}`:t.length>0?t:"."};function zE(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 Om=function(e){return RE.test(e)},IE=function(e,t){const r=$m(e).replace(Nm,"$1").split("/"),o=$m(t).replace(Nm,"$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 FE(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 Ed(e,t,r){const o=IE(t,e),s={id:FE(`${o}${r||""}`),name:o,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0};return s.file=s,s}function _s(e){return e.type==="test"||e.type==="custom"}function $b(e){const t=[],r=Oh(e);for(const o of r)if(_s(o))t.push(o);else for(const s of o.tasks)if(_s(s))t.push(s);else{const c=$b(s);for(const f of c)t.push(f)}return t}function Ph(e=[]){return Oh(e).flatMap(t=>_s(t)?[t]:[t,...Ph(t.tasks)])}function HE(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 qE(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class Ob{constructor(){jr(this,"filesMap",new Map);jr(this,"pathsSet",new Set);jr(this,"idMap",new Map);jr(this,"taskFileMap",new WeakMap);jr(this,"errorsSet",new Set);jr(this,"processTimeoutCauses",new Set)}catchError(t,r){if(qE(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)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}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=Ed(s,o.config.root,o.config.name);if(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=>Ed(s,r,o)))}}function Rh(e){return $b(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 BE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=E=>E,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Ob,waitForConnection:A,reconnect:C},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(E){var O;E==null||E.forEach(([M,z])=>{v.state.clearFiles({config:M},[z])}),(O=r.onSpecsCollected)==null||O.call(r,E)},onPathsCollected(E){var O;v.state.collectPaths(E),(O=r.onPathsCollected)==null||O.call(r,E)},onCollected(E){var O;v.state.collectFiles(E),(O=r.onCollected)==null||O.call(r,E)},onTaskUpdate(E){var O;v.state.updateTasks(E),(O=r.onTaskUpdate)==null||O.call(r,E)},onUserConsoleLog(E){var O;v.state.updateUserLog(E),(O=r.onUserConsoleLog)==null||O.call(r,E)},onFinished(E,O){var M;(M=r.onFinished)==null||M.call(r,E,O)},onFinishedReportCoverage(){var E;(E=r.onFinishedReportCoverage)==null||E.call(r)}},_={post:E=>v.ws.send(E),on:E=>y=E,serialize:E=>$E(E,(O,M)=>M instanceof Error?{name:M.name,message:M.message,stack:M.stack}:M),deserialize:Cd,onTimeoutError(E){throw new Error(`[vitest-ws-client]: Timeout calling "${E}"`)}};v.rpc=kE(b,_);let L;function C(E=!1){E&&(p=c),v.ws=new h(e),N()}function N(){L=new Promise((E,O)=>{var z,B;const M=(B=(z=setTimeout(()=>{O(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:z.unref)==null?void 0:B.call(z);v.ws.OPEN===v.ws.readyState&&E(),v.ws.addEventListener("open",()=>{p=c,E(),clearTimeout(M)})}),v.ws.addEventListener("message",E=>{y(E.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(C,s)})}N();function A(){return L}return v}const WE=location.port,UE=[location.hostname,WE].filter(Boolean).join(":"),VE=`${location.protocol==="https:"?"wss:":"ws:"}//${UE}/__vitest_api__`,oi=!!window.METADATA_PATH;var Pb={},ni={};const jE="Á",GE="á",KE="Ă",XE="ă",YE="∾",ZE="∿",JE="∾̳",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="ffi",Y2="ff",Z2="ffl",J2="𝔉",Q2="𝔣",ez="fi",tz="◼",nz="▪",rz="fj",iz="♭",oz="fl",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="⋛",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="IJ",gH="ij",vH="Ī",mH="ī",yH="ℑ",bH="ⅈ",wH="ℐ",xH="ℑ",_H="ı",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="ʼn",HW="≉",qW="♮",BW="ℕ",WW="♮",UW=" ",VW="≎̸",jW="≏̸",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=`
|
|
22
|
+
`,wU="∄",xU="∄",_U="𝔑",SU="𝔫",kU="≧̸",TU="≱",CU="≱",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="⨌",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="Ŗ",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="⥛",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="",Rb={Aacute:jE,aacute:GE,Abreve:KE,abreve:XE,ac:YE,acd:ZE,acE:JE,Acirc:QE,acirc:eL,acute:tL,Acy:nL,acy:rL,AElig:iL,aelig:oL,af:sL,Afr:lL,afr:aL,Agrave:cL,agrave:uL,alefsym:fL,aleph:dL,Alpha:hL,alpha:pL,Amacr:gL,amacr:vL,amalg:mL,amp:yL,AMP:bL,andand:wL,And:xL,and:_L,andd:SL,andslope:kL,andv:TL,ang:CL,ange:EL,angle:LL,angmsdaa:AL,angmsdab:ML,angmsdac:NL,angmsdad:$L,angmsdae:OL,angmsdaf:PL,angmsdag:RL,angmsdah:DL,angmsd:zL,angrt:IL,angrtvb:FL,angrtvbd:HL,angsph:qL,angst:BL,angzarr:WL,Aogon:UL,aogon:VL,Aopf:jL,aopf:GL,apacir:KL,ap:XL,apE:YL,ape:ZL,apid:JL,apos:QL,ApplyFunction:eA,approx:tA,approxeq:nA,Aring:rA,aring:iA,Ascr:oA,ascr:sA,Assign:lA,ast:aA,asymp:cA,asympeq:uA,Atilde:fA,atilde:dA,Auml:hA,auml:pA,awconint:gA,awint:vA,backcong:mA,backepsilon:yA,backprime:bA,backsim:wA,backsimeq:xA,Backslash:_A,Barv:SA,barvee:kA,barwed:TA,Barwed:CA,barwedge:EA,bbrk:LA,bbrktbrk:AA,bcong:MA,Bcy:NA,bcy:$A,bdquo:OA,becaus:PA,because:RA,Because:DA,bemptyv:zA,bepsi:IA,bernou:FA,Bernoullis:HA,Beta:qA,beta:BA,beth:WA,between:UA,Bfr:VA,bfr:jA,bigcap:GA,bigcirc:KA,bigcup:XA,bigodot:YA,bigoplus:ZA,bigotimes:JA,bigsqcup:QA,bigstar:eM,bigtriangledown:tM,bigtriangleup:nM,biguplus:rM,bigvee:iM,bigwedge:oM,bkarow:sM,blacklozenge:lM,blacksquare:aM,blacktriangle:cM,blacktriangledown:uM,blacktriangleleft:fM,blacktriangleright:dM,blank:hM,blk12:pM,blk14:gM,blk34:vM,block:mM,bne:yM,bnequiv:bM,bNot:wM,bnot:xM,Bopf:_M,bopf:SM,bot:kM,bottom:TM,bowtie:CM,boxbox:EM,boxdl:LM,boxdL:AM,boxDl:MM,boxDL:NM,boxdr:$M,boxdR:OM,boxDr:PM,boxDR:RM,boxh:DM,boxH:zM,boxhd:IM,boxHd:FM,boxhD:HM,boxHD:qM,boxhu:BM,boxHu:WM,boxhU:UM,boxHU:VM,boxminus:jM,boxplus:GM,boxtimes:KM,boxul:XM,boxuL:YM,boxUl:ZM,boxUL:JM,boxur:QM,boxuR:eN,boxUr:tN,boxUR:nN,boxv:rN,boxV:iN,boxvh:oN,boxvH:sN,boxVh:lN,boxVH:aN,boxvl:cN,boxvL:uN,boxVl:fN,boxVL:dN,boxvr:hN,boxvR:pN,boxVr:gN,boxVR:vN,bprime:mN,breve:yN,Breve:bN,brvbar:wN,bscr:xN,Bscr:_N,bsemi:SN,bsim:kN,bsime:TN,bsolb:CN,bsol:EN,bsolhsub:LN,bull:AN,bullet:MN,bump:NN,bumpE:$N,bumpe:ON,Bumpeq:PN,bumpeq:RN,Cacute:DN,cacute:zN,capand:IN,capbrcup:FN,capcap:HN,cap:qN,Cap:BN,capcup:WN,capdot:UN,CapitalDifferentialD:VN,caps:jN,caret:GN,caron:KN,Cayleys:XN,ccaps:YN,Ccaron:ZN,ccaron:JN,Ccedil:QN,ccedil:e$,Ccirc:t$,ccirc:n$,Cconint:r$,ccups:i$,ccupssm:o$,Cdot:s$,cdot:l$,cedil:a$,Cedilla:c$,cemptyv:u$,cent:f$,centerdot:d$,CenterDot:h$,cfr:p$,Cfr:g$,CHcy:v$,chcy:m$,check:y$,checkmark:b$,Chi:w$,chi:x$,circ:_$,circeq:S$,circlearrowleft:k$,circlearrowright:T$,circledast:C$,circledcirc:E$,circleddash:L$,CircleDot:A$,circledR:M$,circledS:N$,CircleMinus:$$,CirclePlus:O$,CircleTimes:P$,cir:R$,cirE:D$,cire:z$,cirfnint:I$,cirmid:F$,cirscir:H$,ClockwiseContourIntegral:q$,CloseCurlyDoubleQuote:B$,CloseCurlyQuote:W$,clubs:U$,clubsuit:V$,colon:j$,Colon:G$,Colone:K$,colone:X$,coloneq:Y$,comma:Z$,commat:J$,comp:Q$,compfn:eO,complement:tO,complexes:nO,cong:rO,congdot:iO,Congruent:oO,conint:sO,Conint:lO,ContourIntegral:aO,copf:cO,Copf:uO,coprod:fO,Coproduct:dO,copy:hO,COPY:pO,copysr:gO,CounterClockwiseContourIntegral:vO,crarr:mO,cross:yO,Cross:bO,Cscr:wO,cscr:xO,csub:_O,csube:SO,csup:kO,csupe:TO,ctdot:CO,cudarrl:EO,cudarrr:LO,cuepr:AO,cuesc:MO,cularr:NO,cularrp:$O,cupbrcap:OO,cupcap:PO,CupCap:RO,cup:DO,Cup:zO,cupcup:IO,cupdot:FO,cupor:HO,cups:qO,curarr:BO,curarrm:WO,curlyeqprec:UO,curlyeqsucc:VO,curlyvee:jO,curlywedge:GO,curren:KO,curvearrowleft:XO,curvearrowright:YO,cuvee:ZO,cuwed:JO,cwconint:QO,cwint:eP,cylcty:tP,dagger:nP,Dagger:rP,daleth:iP,darr:oP,Darr:sP,dArr:lP,dash:aP,Dashv:cP,dashv:uP,dbkarow:fP,dblac:dP,Dcaron:hP,dcaron:pP,Dcy:gP,dcy:vP,ddagger:mP,ddarr:yP,DD:bP,dd:wP,DDotrahd:xP,ddotseq:_P,deg:SP,Del:kP,Delta:TP,delta:CP,demptyv:EP,dfisht:LP,Dfr:AP,dfr:MP,dHar:NP,dharl:$P,dharr:OP,DiacriticalAcute:PP,DiacriticalDot:RP,DiacriticalDoubleAcute:DP,DiacriticalGrave:zP,DiacriticalTilde:IP,diam:FP,diamond:HP,Diamond:qP,diamondsuit:BP,diams:WP,die:UP,DifferentialD:VP,digamma:jP,disin:GP,div:KP,divide:XP,divideontimes:YP,divonx:ZP,DJcy:JP,djcy:QP,dlcorn:eR,dlcrop:tR,dollar:nR,Dopf:rR,dopf:iR,Dot:oR,dot:sR,DotDot:lR,doteq:aR,doteqdot:cR,DotEqual:uR,dotminus:fR,dotplus:dR,dotsquare:hR,doublebarwedge:pR,DoubleContourIntegral:gR,DoubleDot:vR,DoubleDownArrow:mR,DoubleLeftArrow:yR,DoubleLeftRightArrow:bR,DoubleLeftTee:wR,DoubleLongLeftArrow:xR,DoubleLongLeftRightArrow:_R,DoubleLongRightArrow:SR,DoubleRightArrow:kR,DoubleRightTee:TR,DoubleUpArrow:CR,DoubleUpDownArrow:ER,DoubleVerticalBar:LR,DownArrowBar:AR,downarrow:MR,DownArrow:NR,Downarrow:$R,DownArrowUpArrow:OR,DownBreve:PR,downdownarrows:RR,downharpoonleft:DR,downharpoonright:zR,DownLeftRightVector:IR,DownLeftTeeVector:FR,DownLeftVectorBar:HR,DownLeftVector:qR,DownRightTeeVector:BR,DownRightVectorBar:WR,DownRightVector:UR,DownTeeArrow:VR,DownTee:jR,drbkarow:GR,drcorn:KR,drcrop:XR,Dscr:YR,dscr:ZR,DScy:JR,dscy:QR,dsol:eD,Dstrok:tD,dstrok:nD,dtdot:rD,dtri:iD,dtrif:oD,duarr:sD,duhar:lD,dwangle:aD,DZcy:cD,dzcy:uD,dzigrarr:fD,Eacute:dD,eacute:hD,easter:pD,Ecaron:gD,ecaron:vD,Ecirc:mD,ecirc:yD,ecir:bD,ecolon:wD,Ecy:xD,ecy:_D,eDDot:SD,Edot:kD,edot:TD,eDot:CD,ee:ED,efDot:LD,Efr:AD,efr:MD,eg:ND,Egrave:$D,egrave:OD,egs:PD,egsdot:RD,el:DD,Element:zD,elinters:ID,ell:FD,els:HD,elsdot:qD,Emacr:BD,emacr:WD,empty:UD,emptyset:VD,EmptySmallSquare:jD,emptyv:GD,EmptyVerySmallSquare:KD,emsp13:XD,emsp14:YD,emsp:ZD,ENG:JD,eng:QD,ensp:e2,Eogon:t2,eogon:n2,Eopf:r2,eopf:i2,epar:o2,eparsl:s2,eplus:l2,epsi:a2,Epsilon:c2,epsilon:u2,epsiv:f2,eqcirc:d2,eqcolon:h2,eqsim:p2,eqslantgtr:g2,eqslantless:v2,Equal:m2,equals:y2,EqualTilde:b2,equest:w2,Equilibrium:x2,equiv:_2,equivDD:S2,eqvparsl:k2,erarr:T2,erDot:C2,escr:E2,Escr:L2,esdot:A2,Esim:M2,esim:N2,Eta:$2,eta:O2,ETH:P2,eth:R2,Euml:D2,euml:z2,euro:I2,excl:F2,exist:H2,Exists:q2,expectation:B2,exponentiale:W2,ExponentialE:U2,fallingdotseq:V2,Fcy:j2,fcy:G2,female:K2,ffilig:X2,fflig:Y2,ffllig:Z2,Ffr:J2,ffr:Q2,filig:ez,FilledSmallSquare:tz,FilledVerySmallSquare:nz,fjlig:rz,flat:iz,fllig:oz,fltns:sz,fnof:lz,Fopf:az,fopf:cz,forall:uz,ForAll:fz,fork:dz,forkv:hz,Fouriertrf:pz,fpartint:gz,frac12:vz,frac13:mz,frac14:yz,frac15:bz,frac16:wz,frac18:xz,frac23:_z,frac25:Sz,frac34:kz,frac35:Tz,frac38:Cz,frac45:Ez,frac56:Lz,frac58:Az,frac78:Mz,frasl:Nz,frown:$z,fscr:Oz,Fscr:Pz,gacute:Rz,Gamma:Dz,gamma:zz,Gammad:Iz,gammad:Fz,gap:Hz,Gbreve:qz,gbreve:Bz,Gcedil:Wz,Gcirc:Uz,gcirc:Vz,Gcy:jz,gcy:Gz,Gdot:Kz,gdot:Xz,ge:Yz,gE:Zz,gEl:Jz,gel:Qz,geq:eI,geqq:tI,geqslant:nI,gescc:rI,ges:iI,gesdot:oI,gesdoto:sI,gesdotol:lI,gesl:aI,gesles:cI,Gfr:uI,gfr:fI,gg:dI,Gg:hI,ggg:pI,gimel:gI,GJcy:vI,gjcy:mI,gla:yI,gl:bI,glE:wI,glj:xI,gnap:_I,gnapprox:SI,gne:kI,gnE:TI,gneq:CI,gneqq:EI,gnsim:LI,Gopf:AI,gopf:MI,grave:NI,GreaterEqual:$I,GreaterEqualLess:OI,GreaterFullEqual:PI,GreaterGreater:RI,GreaterLess:DI,GreaterSlantEqual:zI,GreaterTilde:II,Gscr:FI,gscr:HI,gsim:qI,gsime:BI,gsiml:WI,gtcc:UI,gtcir:VI,gt:jI,GT:GI,Gt:KI,gtdot:XI,gtlPar:YI,gtquest:ZI,gtrapprox:JI,gtrarr:QI,gtrdot:eF,gtreqless:tF,gtreqqless:nF,gtrless:rF,gtrsim:iF,gvertneqq:oF,gvnE:sF,Hacek:lF,hairsp:aF,half:cF,hamilt:uF,HARDcy:fF,hardcy:dF,harrcir:hF,harr:pF,hArr:gF,harrw:vF,Hat:mF,hbar:yF,Hcirc:bF,hcirc:wF,hearts:xF,heartsuit:_F,hellip:SF,hercon:kF,hfr:TF,Hfr:CF,HilbertSpace:EF,hksearow:LF,hkswarow:AF,hoarr:MF,homtht:NF,hookleftarrow:$F,hookrightarrow:OF,hopf:PF,Hopf:RF,horbar:DF,HorizontalLine:zF,hscr:IF,Hscr:FF,hslash:HF,Hstrok:qF,hstrok:BF,HumpDownHump:WF,HumpEqual:UF,hybull:VF,hyphen:jF,Iacute:GF,iacute:KF,ic:XF,Icirc:YF,icirc:ZF,Icy:JF,icy:QF,Idot:eH,IEcy:tH,iecy:nH,iexcl:rH,iff:iH,ifr:oH,Ifr:sH,Igrave:lH,igrave:aH,ii:cH,iiiint:uH,iiint:fH,iinfin:dH,iiota:hH,IJlig:pH,ijlig:gH,Imacr:vH,imacr:mH,image:yH,ImaginaryI:bH,imagline:wH,imagpart:xH,imath:_H,Im:SH,imof:kH,imped:TH,Implies:CH,incare:EH,in:"∈",infin:LH,infintie:AH,inodot:MH,intcal:NH,int:$H,Int:OH,integers:PH,Integral:RH,intercal:DH,Intersection:zH,intlarhk:IH,intprod:FH,InvisibleComma:HH,InvisibleTimes:qH,IOcy:BH,iocy:WH,Iogon:UH,iogon:VH,Iopf:jH,iopf:GH,Iota:KH,iota:XH,iprod:YH,iquest:ZH,iscr:JH,Iscr:QH,isin:eq,isindot:tq,isinE:nq,isins:rq,isinsv:iq,isinv:oq,it:sq,Itilde:lq,itilde:aq,Iukcy:cq,iukcy:uq,Iuml:fq,iuml:dq,Jcirc:hq,jcirc:pq,Jcy:gq,jcy:vq,Jfr:mq,jfr:yq,jmath:bq,Jopf:wq,jopf:xq,Jscr:_q,jscr:Sq,Jsercy:kq,jsercy:Tq,Jukcy:Cq,jukcy:Eq,Kappa:Lq,kappa:Aq,kappav:Mq,Kcedil:Nq,kcedil:$q,Kcy:Oq,kcy:Pq,Kfr:Rq,kfr:Dq,kgreen:zq,KHcy:Iq,khcy:Fq,KJcy:Hq,kjcy:qq,Kopf:Bq,kopf:Wq,Kscr:Uq,kscr:Vq,lAarr:jq,Lacute:Gq,lacute:Kq,laemptyv:Xq,lagran:Yq,Lambda:Zq,lambda:Jq,lang:Qq,Lang:eB,langd:tB,langle:nB,lap:rB,Laplacetrf:iB,laquo:oB,larrb:sB,larrbfs:lB,larr:aB,Larr:cB,lArr:uB,larrfs:fB,larrhk:dB,larrlp:hB,larrpl:pB,larrsim:gB,larrtl:vB,latail:mB,lAtail:yB,lat:bB,late:wB,lates:xB,lbarr:_B,lBarr:SB,lbbrk:kB,lbrace:TB,lbrack:CB,lbrke:EB,lbrksld:LB,lbrkslu:AB,Lcaron:MB,lcaron:NB,Lcedil:$B,lcedil:OB,lceil:PB,lcub:RB,Lcy:DB,lcy:zB,ldca:IB,ldquo:FB,ldquor:HB,ldrdhar:qB,ldrushar:BB,ldsh:WB,le:UB,lE:VB,LeftAngleBracket:jB,LeftArrowBar:GB,leftarrow:KB,LeftArrow:XB,Leftarrow:YB,LeftArrowRightArrow:ZB,leftarrowtail:JB,LeftCeiling:QB,LeftDoubleBracket:e3,LeftDownTeeVector:t3,LeftDownVectorBar:n3,LeftDownVector:r3,LeftFloor:i3,leftharpoondown:o3,leftharpoonup:s3,leftleftarrows:l3,leftrightarrow:a3,LeftRightArrow:c3,Leftrightarrow:u3,leftrightarrows:f3,leftrightharpoons:d3,leftrightsquigarrow:h3,LeftRightVector:p3,LeftTeeArrow:g3,LeftTee:v3,LeftTeeVector:m3,leftthreetimes:y3,LeftTriangleBar:b3,LeftTriangle:w3,LeftTriangleEqual:x3,LeftUpDownVector:_3,LeftUpTeeVector:S3,LeftUpVectorBar:k3,LeftUpVector:T3,LeftVectorBar:C3,LeftVector:E3,lEg:L3,leg:A3,leq:M3,leqq:N3,leqslant:$3,lescc:O3,les:P3,lesdot:R3,lesdoto:D3,lesdotor:z3,lesg:I3,lesges:F3,lessapprox:H3,lessdot:q3,lesseqgtr:B3,lesseqqgtr:W3,LessEqualGreater:U3,LessFullEqual:V3,LessGreater:j3,lessgtr:G3,LessLess:K3,lesssim:X3,LessSlantEqual:Y3,LessTilde:Z3,lfisht:J3,lfloor:Q3,Lfr:e5,lfr:t5,lg:n5,lgE:r5,lHar:i5,lhard:o5,lharu:s5,lharul:l5,lhblk:a5,LJcy:c5,ljcy:u5,llarr:f5,ll:d5,Ll:h5,llcorner:p5,Lleftarrow:g5,llhard:v5,lltri:m5,Lmidot:y5,lmidot:b5,lmoustache:w5,lmoust:x5,lnap:_5,lnapprox:S5,lne:k5,lnE:T5,lneq:C5,lneqq:E5,lnsim:L5,loang:A5,loarr:M5,lobrk:N5,longleftarrow:$5,LongLeftArrow:O5,Longleftarrow:P5,longleftrightarrow:R5,LongLeftRightArrow:D5,Longleftrightarrow:z5,longmapsto:I5,longrightarrow:F5,LongRightArrow:H5,Longrightarrow:q5,looparrowleft:B5,looparrowright:W5,lopar:U5,Lopf:V5,lopf:j5,loplus:G5,lotimes:K5,lowast:X5,lowbar:Y5,LowerLeftArrow:Z5,LowerRightArrow:J5,loz:Q5,lozenge:e8,lozf:t8,lpar:n8,lparlt:r8,lrarr:i8,lrcorner:o8,lrhar:s8,lrhard:l8,lrm:a8,lrtri:c8,lsaquo:u8,lscr:f8,Lscr:d8,lsh:h8,Lsh:p8,lsim:g8,lsime:v8,lsimg:m8,lsqb:y8,lsquo:b8,lsquor:w8,Lstrok:x8,lstrok:_8,ltcc:S8,ltcir:k8,lt:T8,LT:C8,Lt:E8,ltdot:L8,lthree:A8,ltimes:M8,ltlarr:N8,ltquest:$8,ltri:O8,ltrie:P8,ltrif:R8,ltrPar:D8,lurdshar:z8,luruhar:I8,lvertneqq:F8,lvnE:H8,macr:q8,male:B8,malt:W8,maltese:U8,Map:"⤅",map:V8,mapsto:j8,mapstodown:G8,mapstoleft:K8,mapstoup:X8,marker:Y8,mcomma:Z8,Mcy:J8,mcy:Q8,mdash:eW,mDDot:tW,measuredangle:nW,MediumSpace:rW,Mellintrf:iW,Mfr:oW,mfr:sW,mho:lW,micro:aW,midast:cW,midcir:uW,mid:fW,middot:dW,minusb:hW,minus:pW,minusd:gW,minusdu:vW,MinusPlus:mW,mlcp:yW,mldr:bW,mnplus:wW,models:xW,Mopf:_W,mopf:SW,mp:kW,mscr:TW,Mscr:CW,mstpos:EW,Mu:LW,mu:AW,multimap:MW,mumap:NW,nabla:$W,Nacute:OW,nacute:PW,nang:RW,nap:DW,napE:zW,napid:IW,napos:FW,napprox:HW,natural:qW,naturals:BW,natur:WW,nbsp:UW,nbump:VW,nbumpe:jW,ncap:GW,Ncaron:KW,ncaron:XW,Ncedil:YW,ncedil:ZW,ncong:JW,ncongdot:QW,ncup:eU,Ncy:tU,ncy:nU,ndash:rU,nearhk:iU,nearr:oU,neArr:sU,nearrow:lU,ne:aU,nedot:cU,NegativeMediumSpace:uU,NegativeThickSpace:fU,NegativeThinSpace:dU,NegativeVeryThinSpace:hU,nequiv:pU,nesear:gU,nesim:vU,NestedGreaterGreater:mU,NestedLessLess:yU,NewLine:bU,nexist:wU,nexists:xU,Nfr:_U,nfr:SU,ngE:kU,nge:TU,ngeq:CU,ngeqq:EU,ngeqslant:LU,nges:AU,nGg:MU,ngsim:NU,nGt:$U,ngt:OU,ngtr:PU,nGtv:RU,nharr:DU,nhArr:zU,nhpar:IU,ni:FU,nis:HU,nisd:qU,niv:BU,NJcy:WU,njcy:UU,nlarr:VU,nlArr:jU,nldr:GU,nlE:KU,nle:XU,nleftarrow:YU,nLeftarrow:ZU,nleftrightarrow:JU,nLeftrightarrow:QU,nleq:e4,nleqq:t4,nleqslant:n4,nles:r4,nless:i4,nLl:o4,nlsim:s4,nLt:l4,nlt:a4,nltri:c4,nltrie:u4,nLtv:f4,nmid:d4,NoBreak:h4,NonBreakingSpace:p4,nopf:g4,Nopf:v4,Not:m4,not:y4,NotCongruent:b4,NotCupCap:w4,NotDoubleVerticalBar:x4,NotElement:_4,NotEqual:S4,NotEqualTilde:k4,NotExists:T4,NotGreater:C4,NotGreaterEqual:E4,NotGreaterFullEqual:L4,NotGreaterGreater:A4,NotGreaterLess:M4,NotGreaterSlantEqual:N4,NotGreaterTilde:$4,NotHumpDownHump:O4,NotHumpEqual:P4,notin:R4,notindot:D4,notinE:z4,notinva:I4,notinvb:F4,notinvc:H4,NotLeftTriangleBar:q4,NotLeftTriangle:B4,NotLeftTriangleEqual:W4,NotLess:U4,NotLessEqual:V4,NotLessGreater:j4,NotLessLess:G4,NotLessSlantEqual:K4,NotLessTilde:X4,NotNestedGreaterGreater:Y4,NotNestedLessLess:Z4,notni:J4,notniva:Q4,notnivb:e6,notnivc:t6,NotPrecedes:n6,NotPrecedesEqual:r6,NotPrecedesSlantEqual:i6,NotReverseElement:o6,NotRightTriangleBar:s6,NotRightTriangle:l6,NotRightTriangleEqual:a6,NotSquareSubset:c6,NotSquareSubsetEqual:u6,NotSquareSuperset:f6,NotSquareSupersetEqual:d6,NotSubset:h6,NotSubsetEqual:p6,NotSucceeds:g6,NotSucceedsEqual:v6,NotSucceedsSlantEqual:m6,NotSucceedsTilde:y6,NotSuperset:b6,NotSupersetEqual:w6,NotTilde:x6,NotTildeEqual:_6,NotTildeFullEqual:S6,NotTildeTilde:k6,NotVerticalBar:T6,nparallel:C6,npar:E6,nparsl:L6,npart:A6,npolint:M6,npr:N6,nprcue:$6,nprec:O6,npreceq:P6,npre:R6,nrarrc:D6,nrarr:z6,nrArr:I6,nrarrw:F6,nrightarrow:H6,nRightarrow:q6,nrtri:B6,nrtrie:W6,nsc:U6,nsccue:V6,nsce:j6,Nscr:G6,nscr:K6,nshortmid:X6,nshortparallel:Y6,nsim:Z6,nsime:J6,nsimeq:Q6,nsmid:eV,nspar:tV,nsqsube:nV,nsqsupe:rV,nsub:iV,nsubE:oV,nsube:sV,nsubset:lV,nsubseteq:aV,nsubseteqq:cV,nsucc:uV,nsucceq:fV,nsup:dV,nsupE:hV,nsupe:pV,nsupset:gV,nsupseteq:vV,nsupseteqq:mV,ntgl:yV,Ntilde:bV,ntilde:wV,ntlg:xV,ntriangleleft:_V,ntrianglelefteq:SV,ntriangleright:kV,ntrianglerighteq:TV,Nu:CV,nu:EV,num:LV,numero:AV,numsp:MV,nvap:NV,nvdash:$V,nvDash:OV,nVdash:PV,nVDash:RV,nvge:DV,nvgt:zV,nvHarr:IV,nvinfin:FV,nvlArr:HV,nvle:qV,nvlt:BV,nvltrie:WV,nvrArr:UV,nvrtrie:VV,nvsim:jV,nwarhk:GV,nwarr:KV,nwArr:XV,nwarrow:YV,nwnear:ZV,Oacute:JV,oacute:QV,oast:ej,Ocirc:tj,ocirc:nj,ocir:rj,Ocy:ij,ocy:oj,odash:sj,Odblac:lj,odblac:aj,odiv:cj,odot:uj,odsold:fj,OElig:dj,oelig:hj,ofcir:pj,Ofr:gj,ofr:vj,ogon:mj,Ograve:yj,ograve:bj,ogt:wj,ohbar:xj,ohm:_j,oint:Sj,olarr:kj,olcir:Tj,olcross:Cj,oline:Ej,olt:Lj,Omacr:Aj,omacr:Mj,Omega:Nj,omega:$j,Omicron:Oj,omicron:Pj,omid:Rj,ominus:Dj,Oopf:zj,oopf:Ij,opar:Fj,OpenCurlyDoubleQuote:Hj,OpenCurlyQuote:qj,operp:Bj,oplus:Wj,orarr:Uj,Or:Vj,or:jj,ord:Gj,order:Kj,orderof:Xj,ordf:Yj,ordm:Zj,origof:Jj,oror:Qj,orslope:eG,orv:tG,oS:nG,Oscr:rG,oscr:iG,Oslash:oG,oslash:sG,osol:lG,Otilde:aG,otilde:cG,otimesas:uG,Otimes:fG,otimes:dG,Ouml:hG,ouml:pG,ovbar:gG,OverBar:vG,OverBrace:mG,OverBracket:yG,OverParenthesis:bG,para:wG,parallel:xG,par:_G,parsim:SG,parsl:kG,part:TG,PartialD:CG,Pcy:EG,pcy:LG,percnt:AG,period:MG,permil:NG,perp:$G,pertenk:OG,Pfr:PG,pfr:RG,Phi:DG,phi:zG,phiv:IG,phmmat:FG,phone:HG,Pi:qG,pi:BG,pitchfork:WG,piv:UG,planck:VG,planckh:jG,plankv:GG,plusacir:KG,plusb:XG,pluscir:YG,plus:ZG,plusdo:JG,plusdu:QG,pluse:e9,PlusMinus:t9,plusmn:n9,plussim:r9,plustwo:i9,pm:o9,Poincareplane:s9,pointint:l9,popf:a9,Popf:c9,pound:u9,prap:f9,Pr:d9,pr:h9,prcue:p9,precapprox:g9,prec:v9,preccurlyeq:m9,Precedes:y9,PrecedesEqual:b9,PrecedesSlantEqual:w9,PrecedesTilde:x9,preceq:_9,precnapprox:S9,precneqq:k9,precnsim:T9,pre:C9,prE:E9,precsim:L9,prime:A9,Prime:M9,primes:N9,prnap:$9,prnE:O9,prnsim:P9,prod:R9,Product:D9,profalar:z9,profline:I9,profsurf:F9,prop:H9,Proportional:q9,Proportion:B9,propto:W9,prsim:U9,prurel:V9,Pscr:j9,pscr:G9,Psi:K9,psi:X9,puncsp:Y9,Qfr:Z9,qfr:J9,qint:Q9,qopf:eK,Qopf:tK,qprime:nK,Qscr:rK,qscr:iK,quaternions:oK,quatint:sK,quest:lK,questeq:aK,quot:cK,QUOT:uK,rAarr:fK,race:dK,Racute:hK,racute:pK,radic:gK,raemptyv:vK,rang:mK,Rang:yK,rangd:bK,range:wK,rangle:xK,raquo:_K,rarrap:SK,rarrb:kK,rarrbfs:TK,rarrc:CK,rarr:EK,Rarr:LK,rArr:AK,rarrfs:MK,rarrhk:NK,rarrlp:$K,rarrpl:OK,rarrsim:PK,Rarrtl:RK,rarrtl:DK,rarrw:zK,ratail:IK,rAtail:FK,ratio:HK,rationals:qK,rbarr:BK,rBarr:WK,RBarr:UK,rbbrk:VK,rbrace:jK,rbrack:GK,rbrke:KK,rbrksld:XK,rbrkslu:YK,Rcaron:ZK,rcaron:JK,Rcedil:QK,rcedil:e7,rceil:t7,rcub:n7,Rcy:r7,rcy:i7,rdca:o7,rdldhar:s7,rdquo:l7,rdquor:a7,rdsh:c7,real:u7,realine:f7,realpart:d7,reals:h7,Re:p7,rect:g7,reg:v7,REG:m7,ReverseElement:y7,ReverseEquilibrium:b7,ReverseUpEquilibrium:w7,rfisht:x7,rfloor:_7,rfr:S7,Rfr:k7,rHar:T7,rhard:C7,rharu:E7,rharul:L7,Rho:A7,rho:M7,rhov:N7,RightAngleBracket:$7,RightArrowBar:O7,rightarrow:P7,RightArrow:R7,Rightarrow:D7,RightArrowLeftArrow:z7,rightarrowtail:I7,RightCeiling:F7,RightDoubleBracket:H7,RightDownTeeVector:q7,RightDownVectorBar:B7,RightDownVector:W7,RightFloor:U7,rightharpoondown:V7,rightharpoonup:j7,rightleftarrows:G7,rightleftharpoons:K7,rightrightarrows:X7,rightsquigarrow:Y7,RightTeeArrow:Z7,RightTee:J7,RightTeeVector:Q7,rightthreetimes:eX,RightTriangleBar:tX,RightTriangle:nX,RightTriangleEqual:rX,RightUpDownVector:iX,RightUpTeeVector:oX,RightUpVectorBar:sX,RightUpVector:lX,RightVectorBar:aX,RightVector:cX,ring:uX,risingdotseq:fX,rlarr:dX,rlhar:hX,rlm:pX,rmoustache:gX,rmoust:vX,rnmid:mX,roang:yX,roarr:bX,robrk:wX,ropar:xX,ropf:_X,Ropf:SX,roplus:kX,rotimes:TX,RoundImplies:CX,rpar:EX,rpargt:LX,rppolint:AX,rrarr:MX,Rrightarrow:NX,rsaquo:$X,rscr:OX,Rscr:PX,rsh:RX,Rsh:DX,rsqb:zX,rsquo:IX,rsquor:FX,rthree:HX,rtimes:qX,rtri:BX,rtrie:WX,rtrif:UX,rtriltri:VX,RuleDelayed:jX,ruluhar:GX,rx:KX,Sacute:XX,sacute:YX,sbquo:ZX,scap:JX,Scaron:QX,scaron:eY,Sc:tY,sc:nY,sccue:rY,sce:iY,scE:oY,Scedil:sY,scedil:lY,Scirc:aY,scirc:cY,scnap:uY,scnE:fY,scnsim:dY,scpolint:hY,scsim:pY,Scy:gY,scy:vY,sdotb:mY,sdot:yY,sdote:bY,searhk:wY,searr:xY,seArr:_Y,searrow:SY,sect:kY,semi:TY,seswar:CY,setminus:EY,setmn:LY,sext:AY,Sfr:MY,sfr:NY,sfrown:$Y,sharp:OY,SHCHcy:PY,shchcy:RY,SHcy:DY,shcy:zY,ShortDownArrow:IY,ShortLeftArrow:FY,shortmid:HY,shortparallel:qY,ShortRightArrow:BY,ShortUpArrow:WY,shy:UY,Sigma:VY,sigma:jY,sigmaf:GY,sigmav:KY,sim:XY,simdot:YY,sime:ZY,simeq:JY,simg:QY,simgE:eZ,siml:tZ,simlE:nZ,simne:rZ,simplus:iZ,simrarr:oZ,slarr:sZ,SmallCircle:lZ,smallsetminus:aZ,smashp:cZ,smeparsl:uZ,smid:fZ,smile:dZ,smt:hZ,smte:pZ,smtes:gZ,SOFTcy:vZ,softcy:mZ,solbar:yZ,solb:bZ,sol:wZ,Sopf:xZ,sopf:_Z,spades:SZ,spadesuit:kZ,spar:TZ,sqcap:CZ,sqcaps:EZ,sqcup:LZ,sqcups:AZ,Sqrt:MZ,sqsub:NZ,sqsube:$Z,sqsubset:OZ,sqsubseteq:PZ,sqsup:RZ,sqsupe:DZ,sqsupset:zZ,sqsupseteq:IZ,square:FZ,Square:HZ,SquareIntersection:qZ,SquareSubset:BZ,SquareSubsetEqual:WZ,SquareSuperset:UZ,SquareSupersetEqual:VZ,SquareUnion:jZ,squarf:GZ,squ:KZ,squf:XZ,srarr:YZ,Sscr:ZZ,sscr:JZ,ssetmn:QZ,ssmile:eJ,sstarf:tJ,Star:nJ,star:rJ,starf:iJ,straightepsilon:oJ,straightphi:sJ,strns:lJ,sub:aJ,Sub:cJ,subdot:uJ,subE:fJ,sube:dJ,subedot:hJ,submult:pJ,subnE:gJ,subne:vJ,subplus:mJ,subrarr:yJ,subset:bJ,Subset:wJ,subseteq:xJ,subseteqq:_J,SubsetEqual:SJ,subsetneq:kJ,subsetneqq:TJ,subsim:CJ,subsub:EJ,subsup:LJ,succapprox:AJ,succ:MJ,succcurlyeq:NJ,Succeeds:$J,SucceedsEqual:OJ,SucceedsSlantEqual:PJ,SucceedsTilde:RJ,succeq:DJ,succnapprox:zJ,succneqq:IJ,succnsim:FJ,succsim:HJ,SuchThat:qJ,sum:BJ,Sum:WJ,sung:UJ,sup1:VJ,sup2:jJ,sup3:GJ,sup:KJ,Sup:XJ,supdot:YJ,supdsub:ZJ,supE:JJ,supe:QJ,supedot:eQ,Superset:tQ,SupersetEqual:nQ,suphsol:rQ,suphsub:iQ,suplarr:oQ,supmult:sQ,supnE:lQ,supne:aQ,supplus:cQ,supset:uQ,Supset:fQ,supseteq:dQ,supseteqq:hQ,supsetneq:pQ,supsetneqq:gQ,supsim:vQ,supsub:mQ,supsup:yQ,swarhk:bQ,swarr:wQ,swArr:xQ,swarrow:_Q,swnwar:SQ,szlig:kQ,Tab:TQ,target:CQ,Tau:EQ,tau:LQ,tbrk:AQ,Tcaron:MQ,tcaron:NQ,Tcedil:$Q,tcedil:OQ,Tcy:PQ,tcy:RQ,tdot:DQ,telrec:zQ,Tfr:IQ,tfr:FQ,there4:HQ,therefore:qQ,Therefore:BQ,Theta:WQ,theta:UQ,thetasym:VQ,thetav:jQ,thickapprox:GQ,thicksim:KQ,ThickSpace:XQ,ThinSpace:YQ,thinsp:ZQ,thkap:JQ,thksim:QQ,THORN:eee,thorn:tee,tilde:nee,Tilde:ree,TildeEqual:iee,TildeFullEqual:oee,TildeTilde:see,timesbar:lee,timesb:aee,times:cee,timesd:uee,tint:fee,toea:dee,topbot:hee,topcir:pee,top:gee,Topf:vee,topf:mee,topfork:yee,tosa:bee,tprime:wee,trade:xee,TRADE:_ee,triangle:See,triangledown:kee,triangleleft:Tee,trianglelefteq:Cee,triangleq:Eee,triangleright:Lee,trianglerighteq:Aee,tridot:Mee,trie:Nee,triminus:$ee,TripleDot:Oee,triplus:Pee,trisb:Ree,tritime:Dee,trpezium:zee,Tscr:Iee,tscr:Fee,TScy:Hee,tscy:qee,TSHcy:Bee,tshcy:Wee,Tstrok:Uee,tstrok:Vee,twixt:jee,twoheadleftarrow:Gee,twoheadrightarrow:Kee,Uacute:Xee,uacute:Yee,uarr:Zee,Uarr:Jee,uArr:Qee,Uarrocir:ete,Ubrcy:tte,ubrcy:nte,Ubreve:rte,ubreve:ite,Ucirc:ote,ucirc:ste,Ucy:lte,ucy:ate,udarr:cte,Udblac:ute,udblac:fte,udhar:dte,ufisht:hte,Ufr:pte,ufr:gte,Ugrave:vte,ugrave:mte,uHar:yte,uharl:bte,uharr:wte,uhblk:xte,ulcorn:_te,ulcorner:Ste,ulcrop:kte,ultri:Tte,Umacr:Cte,umacr:Ete,uml:Lte,UnderBar:Ate,UnderBrace:Mte,UnderBracket:Nte,UnderParenthesis:$te,Union:Ote,UnionPlus:Pte,Uogon:Rte,uogon:Dte,Uopf:zte,uopf:Ite,UpArrowBar:Fte,uparrow:Hte,UpArrow:qte,Uparrow:Bte,UpArrowDownArrow:Wte,updownarrow:Ute,UpDownArrow:Vte,Updownarrow:jte,UpEquilibrium:Gte,upharpoonleft:Kte,upharpoonright:Xte,uplus:Yte,UpperLeftArrow:Zte,UpperRightArrow:Jte,upsi:Qte,Upsi:ene,upsih:tne,Upsilon:nne,upsilon:rne,UpTeeArrow:ine,UpTee:one,upuparrows:sne,urcorn:lne,urcorner:ane,urcrop:cne,Uring:une,uring:fne,urtri:dne,Uscr:hne,uscr:pne,utdot:gne,Utilde:vne,utilde:mne,utri:yne,utrif:bne,uuarr:wne,Uuml:xne,uuml:_ne,uwangle:Sne,vangrt:kne,varepsilon:Tne,varkappa:Cne,varnothing:Ene,varphi:Lne,varpi:Ane,varpropto:Mne,varr:Nne,vArr:$ne,varrho:One,varsigma:Pne,varsubsetneq:Rne,varsubsetneqq:Dne,varsupsetneq:zne,varsupsetneqq:Ine,vartheta:Fne,vartriangleleft:Hne,vartriangleright:qne,vBar:Bne,Vbar:Wne,vBarv:Une,Vcy:Vne,vcy:jne,vdash:Gne,vDash:Kne,Vdash:Xne,VDash:Yne,Vdashl:Zne,veebar:Jne,vee:Qne,Vee:ere,veeeq:tre,vellip:nre,verbar:rre,Verbar:ire,vert:ore,Vert:sre,VerticalBar:lre,VerticalLine:are,VerticalSeparator:cre,VerticalTilde:ure,VeryThinSpace:fre,Vfr:dre,vfr:hre,vltri:pre,vnsub:gre,vnsup:vre,Vopf:mre,vopf:yre,vprop:bre,vrtri:wre,Vscr:xre,vscr:_re,vsubnE:Sre,vsubne:kre,vsupnE:Tre,vsupne:Cre,Vvdash:Ere,vzigzag:Lre,Wcirc:Are,wcirc:Mre,wedbar:Nre,wedge:$re,Wedge:Ore,wedgeq:Pre,weierp:Rre,Wfr:Dre,wfr:zre,Wopf:Ire,wopf:Fre,wp:Hre,wr:qre,wreath:Bre,Wscr:Wre,wscr:Ure,xcap:Vre,xcirc:jre,xcup:Gre,xdtri:Kre,Xfr:Xre,xfr:Yre,xharr:Zre,xhArr:Jre,Xi:Qre,xi:eie,xlarr:tie,xlArr:nie,xmap:rie,xnis:iie,xodot:oie,Xopf:sie,xopf:lie,xoplus:aie,xotime:cie,xrarr:uie,xrArr:fie,Xscr:die,xscr:hie,xsqcup:pie,xuplus:gie,xutri:vie,xvee:mie,xwedge:yie,Yacute:bie,yacute:wie,YAcy:xie,yacy:_ie,Ycirc:Sie,ycirc:kie,Ycy:Tie,ycy:Cie,yen:Eie,Yfr:Lie,yfr:Aie,YIcy:Mie,yicy:Nie,Yopf:$ie,yopf:Oie,Yscr:Pie,yscr:Rie,YUcy:Die,yucy:zie,yuml:Iie,Yuml:Fie,Zacute:Hie,zacute:qie,Zcaron:Bie,zcaron:Wie,Zcy:Uie,zcy:Vie,Zdot:jie,zdot:Gie,zeetrf:Kie,ZeroWidthSpace:Xie,Zeta:Yie,zeta:Zie,zfr:Jie,Zfr:Qie,ZHcy:eoe,zhcy:toe,zigrarr:noe,zopf:roe,Zopf:ioe,Zscr:ooe,zscr:soe,zwj:loe,zwnj:aoe},coe="Á",uoe="á",foe="Â",doe="â",hoe="´",poe="Æ",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={Aacute:coe,aacute:uoe,Acirc:foe,acirc:doe,acute:hoe,AElig:poe,aelig:goe,Agrave:voe,agrave:moe,amp:yoe,AMP:boe,Aring:woe,aring:xoe,Atilde:_oe,atilde:Soe,Auml:koe,auml:Toe,brvbar:Coe,Ccedil:Eoe,ccedil:Loe,cedil:Aoe,cent:Moe,copy:Noe,COPY:$oe,curren:Ooe,deg:Poe,divide:Roe,Eacute:Doe,eacute:zoe,Ecirc:Ioe,ecirc:Foe,Egrave:Hoe,egrave:qoe,ETH:Boe,eth:Woe,Euml:Uoe,euml:Voe,frac12:joe,frac14:Goe,frac34:Koe,gt:Xoe,GT:Yoe,Iacute:Zoe,iacute:Joe,Icirc:Qoe,icirc:ese,iexcl:tse,Igrave:nse,igrave:rse,iquest:ise,Iuml:ose,iuml:sse,laquo:lse,lt:ase,LT:cse,macr:use,micro:fse,middot:dse,nbsp:hse,not:pse,Ntilde:gse,ntilde:vse,Oacute:mse,oacute:yse,Ocirc:bse,ocirc:wse,Ograve:xse,ograve:_se,ordf:Sse,ordm:kse,Oslash:Tse,oslash:Cse,Otilde:Ese,otilde:Lse,Ouml:Ase,ouml:Mse,para:Nse,plusmn:$se,pound:Ose,quot:Pse,QUOT:Rse,raquo:Dse,reg:zse,REG:Ise,sect:Fse,shy:Hse,sup1:qse,sup2:Bse,sup3:Wse,szlig:Use,THORN:Vse,thorn:jse,times:Gse,Uacute:Kse,uacute:Xse,Ucirc:Yse,ucirc:Zse,Ugrave:Jse,ugrave:Qse,uml:ele,Uuml:tle,uuml:nle,Yacute:rle,yacute:ile,yen:ole,yuml:sle},ale="&",cle="'",ule=">",fle="<",dle='"',Db={amp:ale,apos:cle,gt:ule,lt:fle,quot:dle};var Dh={};const hle={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 ple=Lo&&Lo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dh,"__esModule",{value:!0});var Pm=ple(hle),gle=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 vle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Pm.default&&(e=Pm.default[e]),gle(e))}Dh.default=vle;var Tu=Lo&&Lo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ni,"__esModule",{value:!0});ni.decodeHTML=ni.decodeHTMLStrict=ni.decodeXML=void 0;var Ld=Tu(Rb),mle=Tu(lle),yle=Tu(Db),Rm=Tu(Dh),ble=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ni.decodeXML=zb(yle.default);ni.decodeHTMLStrict=zb(Ld.default);function zb(e){var t=Ib(e);return function(r){return String(r).replace(ble,t)}}var Dm=function(e,t){return e<t?1:-1};ni.decodeHTML=function(){for(var e=Object.keys(mle.default).sort(Dm),t=Object.keys(Ld.default).sort(Dm),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=Ib(Ld.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Ib(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Rm.default(parseInt(r.substr(3),16)):Rm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var qn={},Fb=Lo&&Lo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qn,"__esModule",{value:!0});qn.escapeUTF8=qn.escape=qn.encodeNonAsciiHTML=qn.encodeHTML=qn.encodeXML=void 0;var wle=Fb(Db),Hb=Bb(wle.default),qb=Wb(Hb);qn.encodeXML=jb(Hb);var xle=Fb(Rb),zh=Bb(xle.default),_le=Wb(zh);qn.encodeHTML=kle(zh,_le);qn.encodeNonAsciiHTML=jb(zh);function Bb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Wb(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 Ub=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Sle=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Cu(e){return"&#x"+(e.length>1?Sle(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function kle(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(Ub,Cu)}}var Vb=new RegExp(qb.source+"|"+Ub.source,"g");function Tle(e){return e.replace(Vb,Cu)}qn.escape=Tle;function Cle(e){return e.replace(qb,Cu)}qn.escapeUTF8=Cle;function jb(e){return function(t){return t.replace(Vb,function(r){return e[r]||Cu(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=ni,r=qn;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=qn;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=ni;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}})})(Pb);function Ele(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lle(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 Ale(e,t,r){return t&&Lle(e.prototype,t),e}function Gb(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Mle(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 Mle(e,t){if(e){if(typeof e=="string")return zm(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 zm(e,t)}}function zm(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 Nle=Pb,Im={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:$le()};function $le(){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 tc(0,5).forEach(function(t){tc(0,5).forEach(function(r){tc(0,5).forEach(function(o){return Ole(t,r,o,e)})})}),tc(0,23).forEach(function(t){var r=t+232,o=Kb(t*10+8);e[r]="#"+o+o+o}),e}function Ole(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]=Ple([c,f,d])}function Kb(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Ple(e){var t=[],r=Gb(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(Kb(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Fm(e,t,r,o){var s;return t==="text"?s=Ile(r,o):t==="display"?s=Dle(e,r,o):t==="xterm256Foreground"?s=wc(e,o.colors[r]):t==="xterm256Background"?s=xc(e,o.colors[r]):t==="rgb"&&(s=Rle(e,r)),s}function Rle(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 bc(e,(r===38?"color:#":"background-color:#")+s)}function Dle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&Xb(e)},1:function(){return zi(e,"b")},3:function(){return zi(e,"i")},4:function(){return zi(e,"u")},8:function(){return bc(e,"display:none")},9:function(){return zi(e,"strike")},22:function(){return bc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return qm(e,"i")},24:function(){return qm(e,"u")},39:function(){return wc(e,r.fg)},49:function(){return xc(e,r.bg)},53:function(){return bc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=zi(e,"blink"):29<t&&t<38?s=wc(e,r.colors[t-30]):39<t&&t<48?s=xc(e,r.colors[t-40]):89<t&&t<98?s=wc(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=xc(e,r.colors[8+(t-100)])),s}function Xb(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function tc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function zle(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Hm(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 Ile(e,t){return t.escapeXML?Nle.encodeXML(e):e}function zi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function bc(e,t){return zi(e,"span",t)}function wc(e,t){return zi(e,"span","color:"+t)}function xc(e,t){return zi(e,"span","background-color:"+t)}function qm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Fle(e,t,r){var o=!1,s=3;function c(){return""}function f(z,B){return r("xterm256Foreground",B),""}function d(z,B){return r("xterm256Background",B),""}function h(z){return t.newline?r("display",-1):r("text",z),""}function p(z,B){o=!0,B.trim().length===0&&(B="0"),B=B.trimRight(";").split(";");var ne=Gb(B),re;try{for(ne.s();!(re=ne.n()).done;){var oe=re.value;r("display",oe)}}catch(G){ne.e(G)}finally{ne.f()}return""}function v(z){return r("text",z),""}function y(z){return r("rgb",z),""}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 _(z,B){B>s&&o||(o=!1,e=e.replace(z.pattern,z.sub))}var L=[],C=e,N=C.length;e:for(;N>0;){for(var A=0,E=0,O=b.length;E<O;A=++E){var M=b[A];if(_(M,A),e.length!==N){N=e.length;continue e}}if(e.length===N)break;L.push(0),N=e.length}return L}function Hle(e,t,r){return t!=="text"&&(e=e.filter(zle(Hm(r))),e.push({token:t,data:r,category:Hm(r)})),e}var qle=function(){function e(t){Ele(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Im.colors,t.colors)),this.options=Object.assign({},Im,t),this.stack=[],this.stickyStack=[]}return Ale(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=Fm(s,d.token,d.data,c);h&&f.push(h)}),Fle(r.join(""),c,function(d,h){var p=Fm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Hle(o.stickyStack,d,h))}),s.length&&f.push(Xb(s)),f.join("")}}]),e}(),Ble=qle;const Wle=Mb(Ble),Ule=/^[A-Za-z]:\//;function Vle(e=""){return e&&e.replace(/\\/g,"/").replace(Ule,t=>t.toUpperCase())}const jle=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Gle(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Kle=function(...e){e=e.map(o=>Vle(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:Gle();!s||s.length===0||(t=`${s}/${t}`,r=Bm(s))}return t=Xle(t,!r),r&&!Bm(t)?`/${t}`:t.length>0?t:"."};function Xle(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 Bm=function(e){return jle.test(e)},Yle=44,Wm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zle=new Uint8Array(64),Yb=new Uint8Array(128);for(let e=0;e<Wm.length;e++){const t=Wm.charCodeAt(e);Zle[e]=t,Yb[t]=e}function Jle(e){const t=new Int32Array(5),r=[];let o=0;do{const s=Qle(e,o),c=[];let f=!0,d=0;t[0]=0;for(let h=o;h<s;h++){let p;h=fl(e,h,t,0);const v=t[0];v<d&&(f=!1),d=v,Um(e,h,s)?(h=fl(e,h,t,1),h=fl(e,h,t,2),h=fl(e,h,t,3),Um(e,h,s)?(h=fl(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||eae(c),r.push(c),o=s+1}while(o<=e.length);return r}function Qle(e,t){const r=e.indexOf(";",t);return r===-1?e.length:r}function fl(e,t,r,o){let s=0,c=0,f=0;do{const h=e.charCodeAt(t++);f=Yb[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 Um(e,t,r){return t>=r?!1:e.charCodeAt(t)!==Yle}function eae(e){e.sort(tae)}function tae(e,t){return e[0]-t[0]}const nae=/^[\w+.-]+:\/\//,rae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,iae=/^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 oae(e){return nae.test(e)}function sae(e){return e.startsWith("//")}function Zb(e){return e.startsWith("/")}function lae(e){return e.startsWith("file:")}function Vm(e){return/^[.?#]/.test(e)}function nc(e){const t=rae.exec(e);return Jb(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function aae(e){const t=iae.exec(e),r=t[2];return Jb("file:","",t[1]||"","",Zb(r)?r:"/"+r,t[3]||"",t[4]||"")}function Jb(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 jm(e){if(sae(e)){const r=nc("http:"+e);return r.scheme="",r.type=Dt.SchemeRelative,r}if(Zb(e)){const r=nc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Dt.AbsolutePath,r}if(lae(e))return aae(e);if(oae(e))return nc(e);const t=nc("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 cae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function uae(e,t){Qb(t,t.type),e.path==="/"?e.path=t.path:e.path=cae(t.path)+e.path}function Qb(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 fae(e,t){if(!e&&!t)return"";const r=jm(e);let o=r.type;if(t&&o!==Dt.Absolute){const c=jm(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:uae(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)}Qb(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?Vm(t||e)&&!Vm(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 Gm(e,t){return t&&!t.endsWith("/")&&(t+="/"),fae(e,t)}function dae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const ji=0,hae=1,pae=2,gae=3,vae=4;function mae(e,t){const r=Km(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Km(e,o+1))e[o]=bae(e[o],t);return e}function Km(e,t){for(let r=t;r<e.length;r++)if(!yae(e[r]))return r;return e.length}function yae(e){for(let t=1;t<e.length;t++)if(e[t][ji]<e[t-1][ji])return!1;return!0}function bae(e,t){return t||(e=e.slice()),e.sort(wae)}function wae(e,t){return e[ji]-t[ji]}let Gc=!1;function xae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][ji]-t;if(c===0)return Gc=!0,s;c<0?r=s+1:o=s-1}return Gc=!1,r-1}function _ae(e,t,r){for(let o=r+1;o<e.length&&e[o][ji]===t;r=o++);return r}function Sae(e,t,r){for(let o=r-1;o>=0&&e[o][ji]===t;r=o--);return r}function kae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Tae(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 Gc=f!==-1&&e[f][ji]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=xae(e,t,d,h)}const Cae="`line` must be greater than 0 (lines start at line 1)",Eae="`column` must be greater than or equal to 0 (columns start at column 0)",Xm=-1,Lae=1;class Aae{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=Gm(h||"",dae(r));this.resolvedSources=p.map(_=>Gm(_||"",y));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=mae(b,o)),this._decodedMemo=kae(),this._bySources=void 0,this._bySourceMemos=void 0}}function Mae(e){var t;return(t=e)._decoded||(t._decoded=Jle(e._encoded))}function Nae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Cae);if(o<0)throw new Error(Eae);const c=Mae(e);if(r>=c.length)return rc(null,null,null,null);const f=c[r],d=$ae(f,e._decodedMemo,r,o,s||Lae);if(d===-1)return rc(null,null,null,null);const h=f[d];if(h.length===1)return rc(null,null,null,null);const{names:p,resolvedSources:v}=e;return rc(v[h[hae]],h[pae]+1,h[gae],h.length===5?p[h[vae]]:null)}function rc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function $ae(e,t,r,o,s){let c=Tae(e,o,t,r);return Gc?c=(s===Xm?_ae:Sae)(e,o,c):s===Xm&&c++,c===-1||c===e.length?-1:c}const ew=/^\s*at .*(?:\S:\d+|\(native\))/m,Oae=/^(?:eval@)?(?:\[native code\])?$/,Pae=["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 tw(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 Rae(e){let t=e.trim();if(Oae.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]=tw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function Dae(e){let t=e.trim();if(!ew.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]=tw(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=Kle(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function zae(e,t={}){const{ignoreStackEntries:r=Pae}=t;let o=ew.test(e)?Fae(e):Iae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;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 Aae(f),{line:h,column:p}=Nae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Iae(e){return e.split(`
|
|
24
|
+
`).map(t=>Rae(t)).filter(Nb)}function Fae(e){return e.split(`
|
|
25
|
+
`).map(t=>Dae(t)).filter(Nb)}function Hae(e,t){return t&&e.endsWith(t)}async function nw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Ih(e){return new Wle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function qae(e){return e===null||typeof e!="function"&&typeof e!="object"}function rw(e){let t=e;if(qae(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=zae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Eu(e){return I0()?(U_(e),!0):!1}function si(e){return typeof e=="function"?e():q(e)}const Bae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wae=Object.prototype.toString,Uae=e=>Wae.call(e)==="[object Object]",Kl=()=>{};function iw(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 ow=e=>e();function sw(e,t={}){let r,o,s=Kl;const c=d=>{clearTimeout(d),s(),s=Kl};return d=>{const h=si(e),p=si(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 Vae(e=ow){const t=Ke(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:na(t),pause:r,resume:o,eventFilter:s}}function jae(e){return ia()}function Gae(...e){if(e.length!==1)return uh(...e);const t=e[0];return typeof t=="function"?na(ey(()=>({get:t,set:Kl}))):Ke(t)}function Ym(e,t=200,r={}){return iw(sw(t,r),e)}function lw(e,t,r={}){const{eventFilter:o=ow,...s}=r;return Gt(e,iw(o,t),s)}function aw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=Vae(o);return{stop:lw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Fh(e,t=!0,r){jae()?Ls(e,r):t?e():er(e)}function Kae(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=It(e),c=Ke(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=si(r);return c.value=c.value===h?si(o):h,c.value}}return s?f:[c,f]}function cw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return lw(e,t,{...c,eventFilter:sw(o,{maxWait:s})})}function Xae(e,t,r){const o=Gt(e,(...s)=>(er(()=>o()),t(...s)),r);return o}function Yae(e,t,r){let o;It(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Kl}=o,h=Ke(!s),p=f?Dr(t):Ke(t);let v=0;return _h(async y=>{if(!h.value)return;v++;const b=v;let _=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const L=await e(C=>{y(()=>{c&&(c.value=!1),_||C()})});b===v&&(p.value=L)}catch(L){d(L)}finally{c&&b===v&&(c.value=!1),_=!0}}),s?$e(()=>(h.value=!0,p.value)):p}function Kc(e){var t;const r=si(e);return(t=r==null?void 0:r.$el)!=null?t:r}const tr=Bae?window:void 0;function Ss(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=tr):[t,r,o,s]=e,!t)return Kl;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,_)=>(v.addEventListener(y,b,_),()=>v.removeEventListener(y,b,_)),h=Gt(()=>[Kc(t),si(s)],([v,y])=>{if(f(),!v)return;const b=Uae(y)?{...y}:y;c.push(...r.flatMap(_=>o.map(L=>d(v,_,L,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Eu(p),p}function Zae(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Jae(...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=tr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=Zae(t);return Ss(s,c,v=>{v.repeat&&si(d)||h(v)&&r(v)},f)}function Qae(){const e=Ke(!1),t=ia();return t&&Ls(()=>{e.value=!0},t),e}function uw(e){const t=Qae();return $e(()=>(t.value,!!e()))}function ece(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=tr}=t,c=Ke(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const _=b-d;if(f&&_<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:_,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(),Eu(y),{isActive:na(c),pause:y,resume:v}}function fw(e,t={}){const{window:r=tr}=t,o=uw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Ke(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=_h(()=>{o.value&&(d(),s=r.matchMedia(si(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Eu(()=>{h(),d(),s=void 0}),c}const ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oc="__vueuse_ssr_handlers__",tce=nce();function nce(){return oc in ic||(ic[oc]=ic[oc]||{}),ic[oc]}function dw(e,t){return tce[e]||t}function rce(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 ice={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()}},Zm="vueuse-storage";function hw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=tr,eventFilter:b,onError:_=G=>{console.error(G)},initOnMounted:L}=o,C=(v?Dr:Ke)(typeof t=="function"?t():t);if(!r)try{r=dw("getDefaultStorage",()=>{var G;return(G=tr)==null?void 0:G.localStorage})()}catch(G){_(G)}if(!r)return C;const N=si(t),A=rce(N),E=(s=o.serializer)!=null?s:ice[A],{pause:O,resume:M}=aw(C,()=>B(C.value),{flush:c,deep:f,eventFilter:b});y&&d&&Fh(()=>{Ss(y,"storage",re),Ss(y,Zm,oe),L&&re()}),L||re();function z(G,X){y&&y.dispatchEvent(new CustomEvent(Zm,{detail:{key:e,oldValue:G,newValue:X,storageArea:r}}))}function B(G){try{const X=r.getItem(e);if(G==null)z(X,null),r.removeItem(e);else{const Q=E.write(G);X!==Q&&(r.setItem(e,Q),z(X,Q))}}catch(X){_(X)}}function ne(G){const X=G?G.newValue:r.getItem(e);if(X==null)return h&&N!=null&&r.setItem(e,E.write(N)),N;if(!G&&p){const Q=E.read(X);return typeof p=="function"?p(Q,N):A==="object"&&!Array.isArray(Q)?{...N,...Q}:Q}else return typeof X!="string"?X:E.read(X)}function re(G){if(!(G&&G.storageArea!==r)){if(G&&G.key==null){C.value=N;return}if(!(G&&G.key!==e)){O();try{(G==null?void 0:G.newValue)!==E.write(C.value)&&(C.value=ne(G))}catch(X){_(X)}finally{G?er(M):M()}}}}function oe(G){re(G.detail)}return C}function pw(e){return fw("(prefers-color-scheme: dark)",e)}function oce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=tr,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=pw({window:s}),_=$e(()=>b.value?"dark":"light"),L=h||(f==null?Gae(o):hw(f,o,c,{window:s,listenToStorageChanges:d})),C=$e(()=>L.value==="auto"?_.value:L.value),N=dw("updateHTMLAttrs",(M,z,B)=>{const ne=typeof M=="string"?s==null?void 0:s.document.querySelector(M):Kc(M);if(!ne)return;let re;if(v&&(re=s.document.createElement("style"),re.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(re)),z==="class"){const oe=B.split(/\s/g);Object.values(y).flatMap(G=>(G||"").split(/\s/g)).filter(Boolean).forEach(G=>{oe.includes(G)?ne.classList.add(G):ne.classList.remove(G)})}else ne.setAttribute(z,B);v&&(s.getComputedStyle(re).opacity,document.head.removeChild(re))});function A(M){var z;N(t,r,(z=y[M])!=null?z:M)}function E(M){e.onChanged?e.onChanged(M,A):A(M)}Gt(C,E,{flush:"post",immediate:!0}),Fh(()=>E(C.value));const O=$e({get(){return p?L.value:C.value},set(M){L.value=M}});try{return Object.assign(O,{store:L,system:_,state:C})}catch{return O}}function sce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=tr}=e,s=oce({...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:pw({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 gw(e,t,r={}){const{window:o=tr,...s}=r;let c;const f=uw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=$e(()=>Array.isArray(e)?e.map(y=>Kc(y)):[Kc(e)]),p=Gt(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 Eu(v),{isSupported:f,stop:v}}function Lu(e,t,r={}){const{window:o=tr}=r;return hw(e,t,o==null?void 0:o.localStorage,r)}function lce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=tr}=t;if(!f)return Zn(r);const d=Zn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const A=f.location.hash||"",E=A.indexOf("?");return E>0?A.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function p(A){const E=A.toString();if(e==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const O=f.location.hash||"#",M=O.indexOf("?");return M>0?`${O.slice(0,M)}${E?`?${E}`:""}`:`${O}${E?`?${E}`:""}`}function v(){return new URLSearchParams(h())}function y(A){const E=new Set(Object.keys(d));for(const O of A.keys()){const M=A.getAll(O);d[O]=M.length>1?M:A.get(O)||"",E.delete(O)}Array.from(E).forEach(O=>delete d[O])}const{pause:b,resume:_}=aw(d,()=>{const A=new URLSearchParams("");Object.keys(d).forEach(E=>{const O=d[E];Array.isArray(O)?O.forEach(M=>A.append(E,M)):o&&O==null||s&&!O?A.delete(E):A.set(E,O)}),L(A)},{deep:!0});function L(A,E){b(),E&&y(A),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(A)),_()}function C(){c&&L(v(),!0)}Ss(f,"popstate",C,!1),e!=="history"&&Ss(f,"hashchange",C,!1);const N=v();return N.keys().next().value?y(N):Object.assign(d,r),d}function ace(e={}){const{window:t=tr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0}=e,f=Ke(r),d=Ke(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(),Fh(h),Ss("resize",h,{passive:!0}),s){const p=fw("(orientation: portrait)");Gt(p,()=>h())}return{width:f,height:d}}const vw=lce("hash",{initialValue:{file:"",view:null}}),Gi=uh(vw,"file"),Gn=uh(vw,"view");var Bn=Uint8Array,os=Uint16Array,cce=Int32Array,mw=new Bn([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]),yw=new Bn([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]),uce=new Bn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bw=function(e,t){for(var r=new os(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new cce(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}},ww=bw(mw,2),xw=ww.b,fce=ww.r;xw[28]=258,fce[258]=28;var dce=bw(yw,0),hce=dce.b,Ad=new os(32768);for(var Tt=0;Tt<32768;++Tt){var Ei=(Tt&43690)>>1|(Tt&21845)<<1;Ei=(Ei&52428)>>2|(Ei&13107)<<2,Ei=(Ei&61680)>>4|(Ei&3855)<<4,Ad[Tt]=((Ei&65280)>>8|(Ei&255)<<8)>>1}var Nl=function(e,t,r){for(var o=e.length,s=0,c=new os(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new os(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new os(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[Ad[y]>>h]=p}else for(d=new os(o),s=0;s<o;++s)e[s]&&(d[s]=Ad[f[e[s]-1]++]>>15-e[s]);return d},aa=new Bn(288);for(var Tt=0;Tt<144;++Tt)aa[Tt]=8;for(var Tt=144;Tt<256;++Tt)aa[Tt]=9;for(var Tt=256;Tt<280;++Tt)aa[Tt]=7;for(var Tt=280;Tt<288;++Tt)aa[Tt]=8;var _w=new Bn(32);for(var Tt=0;Tt<32;++Tt)_w[Tt]=5;var pce=Nl(aa,9,1),gce=Nl(_w,5,1),jf=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},hr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Gf=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},vce=function(e){return(e+7)/8|0},Sw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Bn(e.subarray(t,r))},mce=["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"],Mn=function(e,t,r){var o=new Error(t||mce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Mn),!r)throw o;return o},Hh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Bn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Bn(s*3));var p=function(Ce){var Ye=r.length;if(Ce>Ye){var P=new Bn(Math.max(Ye*2,Ce));P.set(r),r=P}},v=t.f||0,y=t.p||0,b=t.b||0,_=t.l,L=t.d,C=t.m,N=t.n,A=s*8;do{if(!_){v=hr(e,y,1);var E=hr(e,y+1,3);if(y+=3,E)if(E==1)_=pce,L=gce,C=9,N=5;else if(E==2){var B=hr(e,y,31)+257,ne=hr(e,y+10,15)+4,re=B+hr(e,y+5,31)+1;y+=14;for(var oe=new Bn(re),G=new Bn(19),X=0;X<ne;++X)G[uce[X]]=hr(e,y+X*3,7);y+=ne*3;for(var Q=jf(G),V=(1<<Q)-1,I=Nl(G,Q,1),X=0;X<re;){var k=I[hr(e,y,V)];y+=k&15;var O=k>>4;if(O<16)oe[X++]=O;else{var H=0,W=0;for(O==16?(W=3+hr(e,y,3),y+=2,H=oe[X-1]):O==17?(W=3+hr(e,y,7),y+=3):O==18&&(W=11+hr(e,y,127),y+=7);W--;)oe[X++]=H}}var te=oe.subarray(0,B),me=oe.subarray(B);C=jf(te),N=jf(me),_=Nl(te,C,1),L=Nl(me,N,1)}else Mn(1);else{var O=vce(y)+4,M=e[O-4]|e[O-3]<<8,z=O+M;if(z>s){h&&Mn(0);break}d&&p(b+M),r.set(e.subarray(O,z),b),t.b=b+=M,t.p=y=z*8,t.f=v;continue}if(y>A){h&&Mn(0);break}}d&&p(b+131072);for(var Me=(1<<C)-1,qe=(1<<N)-1,Ue=y;;Ue=y){var H=_[Gf(e,y)&Me],it=H>>4;if(y+=H&15,y>A){h&&Mn(0);break}if(H||Mn(2),it<256)r[b++]=it;else if(it==256){Ue=y,_=null;break}else{var rt=it-254;if(it>264){var X=it-257,Ze=mw[X];rt=hr(e,y,(1<<Ze)-1)+xw[X],y+=Ze}var Te=L[Gf(e,y)&qe],K=Te>>4;Te||Mn(3),y+=Te&15;var me=hce[K];if(K>3){var Ze=yw[K];me+=Gf(e,y)&(1<<Ze)-1,y+=Ze}if(y>A){h&&Mn(0);break}d&&p(b+131072);var ae=b+rt;if(b<me){var de=c-me,Ne=Math.min(me,ae);for(de+b<0&&Mn(3);b<Ne;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-me]}}t.l=_,t.p=Ue,t.b=b,t.f=v,_&&(v=1,t.m=C,t.d=L,t.n=N)}while(!v);return b!=r.length&&f?Sw(r,0,b):r.subarray(0,b)},yce=new Bn(0),bce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Mn(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)},wce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},xce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Mn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Mn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function _ce(e,t){return Hh(e,{i:2},t,t)}function Sce(e,t){var r=bce(e);return r+8>e.length&&Mn(6,"invalid gzip data"),Hh(e.subarray(r,-8),{i:2},new Bn(wce(e)),t)}function kce(e,t){return Hh(e.subarray(xce(e,t),-4),{i:2},t,t)}function Tce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Sce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?_ce(e,t):kce(e,t)}var Md=typeof TextDecoder<"u"&&new TextDecoder,Cce=0;try{Md.decode(yce,{stream:!0}),Cce=1}catch{}var Ece=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:Sw(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 Lce(e,t){var r;if(Md)return Md.decode(e);var o=Ece(e),s=o.s,r=o.r;return r.length&&Mn(8),s}const Kf=()=>{},cn=()=>Promise.resolve();function Ace(){const e=Zn({state:new Ob,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Zn(e.state.filesMap),e.state.idMap=Zn(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:async d=>({code:d,source:"",map:null}),onDone:Kf,onCollected:cn,onTaskUpdate:Kf,writeFile:cn,rerun:cn,updateSnapshot:cn,resolveSnapshotPath:cn,snapshotSaved:cn,onAfterSuiteRun:cn,onCancel:cn,getCountOfFailedTests:()=>0,sendLog:cn,resolveSnapshotRawPath:cn,readSnapshotFile:cn,saveSnapshotFile:cn,readTestFile:cn,removeSnapshotFile:cn,onUnhandledError:Kf,saveTestFile:cn,getProvidedContext:()=>({}),getTestFiles:cn};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=Lce(Tce(y));t=Cd(b)}else t=Cd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const Xc=Ke("idle"),Mce=$e(()=>Xc.value==="idle"),Pi=Ke([]);function Au(e){return Object.hasOwnProperty.call(e,"tasks")}function Nce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function kw(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 $ce(e){return e.type==="test"||e.type==="custom"}function Oce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Qn(e){return e.type==="file"}function Pce(e){return e.type==="suite"}function eo(e){return e.type==="file"||e.type==="suite"}function qh(e,t=!1){var o,s,c,f;let r=Le.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:kw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(f=e.result)==null?void 0:f.state},Le.nodes.set(e.id,r),Le.root.tasks.push(r)),t)for(let d=0;d<e.tasks.length;d++)ca(e.id,e.tasks[d],!0)}function Tw(e,t){const r=Le.nodes.get(e);if(!r||!eo(r))return;const o=bt.state.idMap.get(e);if(!(!o||!Au(o)))return ca(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Rce(e){const t=Le.nodes.get(e);if(!t)return;const r=bt.state.idMap.get(e);!r||!_s(r)||ca(t.parentId,r,!1)}function ca(e,t,r){var c,f,d,h,p,v;const o=Le.nodes.get(e);let s;if(o&&(s=Le.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,Pce(s)&&(s.typecheck=!!t.meta&&"typecheck"in t.meta)):(_s(t)?s={id:t.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,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},Le.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Au(t)))for(let y=0;y<t.tasks.length;y++)ca(s.id,t.tasks[y],r)}function Dce(e,t,r){return e?Lw(e,t,r):!1}function Bh(e,t){const r=[...Cw(e,t)];Rn.value=r,Mu.value=r.filter(Qn).map(o=>xr(o.id))}function*Cw(e,t){for(const r of Le.root.tasks)yield*Ew(r,e,t)}function*Ew(e,t,r){const o=new Set,s=[];for(const p of Aw(e,o,v=>Hce(v,t,r)))s.push(p);const c=new Set,f=[...Ice(s,r.onlyTests,o,c)].reverse(),d=Le.nodes,h=new Set(f.filter(p=>{var v;return Qn(p)||eo(p)&&((v=d.get(p.parentId))==null?void 0:v.expanded)}).map(p=>p.id));yield*f.filter(p=>{var v;return Qn(p)||h.has(p.parentId)&&((v=d.get(p.parentId))==null?void 0:v.expanded)})}function zce(e,t,r,o,s){if(o){if(Qn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&Qn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&Qn(c)&&s.add(c.id),t}}function*Ice(e,t,r,o){for(let s=e.length-1;s>=0;s--){const[c,f]=e[s];if(eo(f)){const d=zce(c,f,r,t,o);d&&(yield d)}else if(c){const d=Le.nodes.get(f.parentId);d&&Qn(d)&&o.add(d.id),yield f}}}function Fce(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 Lw(e,t,r){if(t.length===0||Nce(e.name,t))if(r.success||r.failed||r.skipped){if(Fce(e,r))return!0}else return!0;return!1}function*Aw(e,t,r){const o=r(e);if(o)if($ce(e)){let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}else if(Qn(e))t.add(e.id);else{t.add(e.id);let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}if(yield[o,e],eo(e))for(let s=0;s<e.tasks.length;s++)yield*Aw(e.tasks[s],t,r)}function Hce(e,t,r){const o=bt.state.idMap.get(e.id);return o?Lw(o,t,r):!1}function qce(e,t,r){const o=Tw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ca(s.id,p,!1);s.expanded=!0;const f=new Set(wr.value);f.add(s.id);const d=new Set(Ew(s,t,r)),h=[...Uce(s,d)];wr.value=Array.from(f),Rn.value=h}function Bce(e,t){Wh(Le.root.tasks,!1);const r=[...Cw(e,t)];on.value.expandAll=!1,wr.value=[],Rn.value=r,Mu.value=r.filter(Qn).map(o=>xr(o.id))}function Wce(e,t){if(e.size)for(const r of Rn.value)e.has(r.id)&&(r.expanded=!0);else t&&Wh(Rn.value.filter(Qn),!0)}function Wh(e,t){for(const r of e)eo(r)&&(r.expanded=!0,Wh(r.tasks,!1));t&&(on.value.expandAll=!1,wr.value=[])}function*Uce(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Rn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Vce(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>qh(s,t)),Yc.value=[...Le.root.tasks],Bh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function jce(e){queueMicrotask(()=>{const t=Le.pendingTasks,r=bt.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 Jm(e,t,r,o,s){e&&Jce(r);const c=!e;queueMicrotask(()=>{t?Xce(c):Yce(c)}),queueMicrotask(()=>{Qce(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Yc.value&&Rh(Yc.value.map(f=>xr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{Zce(o,s,t)})}function*Gce(){yield*Rn.value.filter(Oce)}function Kce(){const e=bt.state.idMap;let t;for(const r of Gce())t=e.get(r.parentId),t&&Au(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function Xce(e){const t=Le.root.tasks;for(let r=0;r<t.length;r++){const o=t[r],s=xr(o.id);if(!s)continue;qh(s,e);const c=s.tasks;c!=null&&c.length&&Mw(s.tasks)}}function Yce(e){const t=Le.root.tasks,r=new Map(Le.pendingTasks.entries());Le.pendingTasks.clear();const o=bt.state.idMap;for(let s=0;s<t.length;s++){const c=t[s],f=xr(c.id);if(!f)continue;const d=r.get(f.id);d&&(qh(f,e),Mw(Array.from(d).map(h=>o.get(h)).filter(Boolean)))}}function Zce(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(wr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Qm(e,t,r)}),ks.value||queueMicrotask(()=>{(Rn.value.length||r)&&(ks.value=!0)}),f&&(queueMicrotask(()=>{Wce(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{Qm(e,t,r)}))}function Qm(e,t,r){Bh(e,t),r&&Kce()}function Mw(e){let t;for(let r=0;r<e.length;r++)t=e[r],Au(t)?Tw(t.id,!0):Rce(t.id)}function Jce(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 Qce(e){var f,d,h,p,v;const t=bt.state.idMap,r=new Map(Le.root.tasks.filter(y=>t.has(y.id)).map(y=>[y.id,y])),o=Array.from(r.values()).map(y=>[y.id,xr(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 _=r.get(y);_&&(_.mode=b.mode,_.setupDuration=b.setupDuration,_.prepareDuration=b.prepareDuration,_.environmentLoad=b.environmentLoad,_.collectDuration=b.collectDuration,_.duration=(f=b.result)==null?void 0:f.duration,_.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:L,success:C,skipped:N,total:A,ignored:E,todo:O}=Nw(b);s.totalTests+=A,s.testsFailed+=L,s.testsSuccess+=C,s.testsSkipped+=N,s.testsTodo+=O,s.testsIgnore+=E}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 Nw(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 $w(e))(!r||Dce(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 eue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>Nw(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*$w(e){const t=Oh(e);let r;for(let o=0;o<t.length;o++)r=t[o],_s(r)?yield r:yield*$w(r.tasks)}function tue(e){const t=Le.nodes.get(e);if(!t||!eo(t))return;const r=new Set(wr.value);r.delete(t.id);const o=[...rue(t)];wr.value=Array.from(r),Rn.value=o}function nue(){Nd(Le.root.tasks);const e=[...Rn.value.filter(Qn)];Nd(e),wr.value=[],on.value.expandAll=!0,Rn.value=e}function Nd(e){for(const t of e)eo(t)&&(t.expanded=!1,Nd(t.tasks))}function*Ow(e,t){if(t&&(yield e.id),eo(e))for(let r=0;r<e.tasks.length;r++)yield*Ow(e.tasks[r],!0)}function*rue(e){const t=e.id,r=new Set(Ow(e,!1));for(let o=0;o<Rn.value.length;o++){const s=Rn.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 iue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Zn({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})){jr(this,"rafCollector");jr(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=ece(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){Vce(t,!0,Nn.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){jce(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(()=>{Jm(t,r,this.summary,Nn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):Jm(t,r,this.summary,Nn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return eue(t,r,o,s,Nn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{tue(t)})}expandNode(t){queueMicrotask(()=>{qce(t,Nn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{nue()})}expandAllNodes(){queueMicrotask(()=>{Bce(Nn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{Bh(Nn.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Le=new iue,Yc=Dr([]),Rn=Dr([]),wr=Lu("vitest-ui_task-tree-opened",[],{shallow:!0}),Zc=$e(()=>new Set(wr.value)),on=Lu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Nn=Ke(on.value.search),Pw=$e(()=>Nn.value.trim()!==""),Qe=Zn({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),$d=$e(()=>!!(Qe.failed||Qe.success||Qe.skipped)),Mu=Dr([]),ks=Ke(!1),e0=$e(()=>{const e=on.value.expandAll;return wr.value.length>0?e!==!0:e!==!1}),oue=$e(()=>{const e=Pw.value,t=$d.value,r=Qe.onlyTests,o=Le.summary.filesFailed,s=Le.summary.filesSuccess,c=Le.summary.filesSkipped,f=Le.summary.filesRunning,d=Mu.value;return Le.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})}),bt=function(){return oi?Ace():BE(VE,{reactive:(t,r)=>r==="state"?Zn(t):Dr(t),handlers:{onTaskUpdate(t){Le.resumeRun(t),Xc.value="running"},onFinished(t,r){Le.endRun(),Xc.value="idle",Pi.value=(r||[]).map(rw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Uh=Dr({}),_o=Ke("CONNECTING"),Xt=$e(()=>{const e=Gi.value,t=Yc.value.find(r=>r.id===e);return t?xr(t.id):void 0}),Rw=$e(()=>Ph(Xt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function xr(e){const t=bt.state.idMap.get(e);return t||void 0}const sue=$e(()=>_o.value==="OPEN"),Xf=$e(()=>_o.value==="CONNECTING");$e(()=>_o.value==="CLOSED");function lue(){return Vh(bt.state.getFiles())}function aue(e){const t=Le.nodes;e.forEach(r=>{delete r.result,Ph(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,Qn(o)&&(o.collectDuration=void 0))})}function Vh(e){return aue(e),Le.startRun(),bt.rpc.rerun(e.map(t=>t.filepath))}const Xl=window.__vitest_browser_runner__;Gt(()=>bt.ws,e=>{_o.value=oi?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{_o.value="OPEN",bt.state.filesMap.clear();const[t,r,o]=await Promise.all([bt.rpc.getFiles(),bt.rpc.getConfig(),bt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await bt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Ed(h,d,f));bt.state.collectFiles(c)}else Le.loadFiles(t),bt.state.collectFiles(t),Le.startRun();Pi.value=(o||[]).map(rw),Uh.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{_o.value==="CONNECTING"&&(_o.value="CLOSED")},1e3)})},{immediate:!0});const cue={"text-2xl":""},uue={"text-lg":"",op50:""},fue=pt({__name:"ConnectionOverlay",setup(e){return(t,r)=>q(sue)?et("",!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)=>q(bt).reconnect&&q(bt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(q(Xf)?"animate-pulse":"")},[Y("div",{text:"5xl",class:st(q(Xf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",cue,Ge(q(Xf)?"Connecting...":"Disconnected"),1),Y("div",uue," Check your terminal or start a new server with `"+Ge(q(Xl)?`vitest --browser=${q(Xl).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),due=["aria-label","opacity","disabled","hover"],As=pt({__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}]])},[dn(t.$slots,"default",{},()=>[Y("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,due))}}),Xr=Ke("full"),Od=Ke();function Yf(e){const t=document.querySelector("#tester-ui");t&&(t.style.pointerEvents=e?"none":"")}const Ts=Ke(),ps=Ke(!0),Ki=Ke(!1),Jc=Ke(!0),ss=$e(()=>{var e;return(e=Uh.value)==null?void 0:e.coverage}),Pd=$e(()=>{var e;return(e=ss.value)==null?void 0:e.enabled}),ls=$e(()=>Pd.value&&ss.value.reporter.map(([e])=>e).includes("html")),_c=Lu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),t0=$e(()=>{if(ls.value){const e=ss.value.reportsDirectory.lastIndexOf("/"),t=ss.value.reporter.find(r=>{if(r[0]==="html")return r});return t&&"subdir"in t[1]?`/${ss.value.reportsDirectory.slice(e+1)}/${t[1].subdir}/index.html`:`/${ss.value.reportsDirectory.slice(e+1)}/index.html`}});Gt(Xc,e=>{Jc.value=e==="running"},{immediate:!0});function hue(){const e=Gi.value;if(e&&e.length>0){const t=xr(e);t?(Ts.value=t,ps.value=!1,Ki.value=!1):Xae(()=>bt.state.getFiles(),()=>{Ts.value=xr(e),ps.value=!1,Ki.value=!1})}return ps}function Sc(e){ps.value=e,Ki.value=!1,e&&(Ts.value=void 0,Gi.value="")}function pue(){Ki.value=!0,ps.value=!1,Ts.value=void 0,Gi.value=""}const gue={setCurrentFileId(e){Gi.value=e,Ts.value=xr(e),Sc(!1)},async setIframeViewport(e,t){Xr.value="custom",Od.value=[e,t],await Dw(e,t)}};window.__vitest_ui_api__=gue;function vue(){const e=jh(),r=document.querySelector("#details-splitpanes").clientWidth,o=e.clientWidth,s=Math.min(o/r*100,95),c=100-s;_c.value=[s,c]}function jh(){return document.querySelector("#tester-ui iframe[data-vitest]")}async function Dw(e,t){const r=jh();r.style.width=typeof e=="string"?e:`${e}px`,r.style.height=typeof t=="string"?t:`${t}px`,await new Promise(o=>requestAnimationFrame(o)),vue()}const mue={h:"full",flex:"~ col"},yue=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),bue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},wue=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),xue=pt({__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(Xr.value===o?Xr.value=Od.value?"custom":"full":Xr.value=o,!jh()){console.warn("Iframe not found");return}const[c,f]=t[Xr.value]||Od.value||t.full;await Dw(c,f)}return(o,s)=>{const c=As,f=ai("tooltip");return le(),be("div",mue,[yue,Y("div",bue,[St(Pe(c,{title:"Flexible",icon:"i-carbon:fit-to-screen",active:q(Xr)==="full",onClick:s[0]||(s[0]=d=>r("full"))},null,8,["active"]),[[f,"Flexible",void 0,{bottom:!0}]]),St(Pe(c,{title:"Small mobile",icon:"i-carbon:mobile",active:q(Xr)==="small-mobile",onClick:s[1]||(s[1]=d=>r("small-mobile"))},null,8,["active"]),[[f,"Small mobile",void 0,{bottom:!0}]]),St(Pe(c,{title:"Large mobile",icon:"i-carbon:mobile-add",active:q(Xr)==="large-mobile",onClick:s[2]||(s[2]=d=>r("large-mobile"))},null,8,["active"]),[[f,"Large mobile",void 0,{bottom:!0}]]),St(Pe(c,{title:"Tablet",icon:"i-carbon:tablet",active:q(Xr)==="tablet",onClick:s[3]||(s[3]=d=>r("tablet"))},null,8,["active"]),[[f,"Tablet",void 0,{bottom:!0}]])]),wue])}}});function $l(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ua=sce(),_ue=Kae(ua),Sue={class:"scrolls scrolls-rounded task-error"},kue=["onClickPassive"],Tue=["innerHTML"],Cue=pt({__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(()=>Ih(ua.value)),s=$e(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=$e(()=>t.error.diff?o.value.toHtml($l(t.error.diff)):void 0);return(f,d)=>{const h=ai("tooltip");return le(),be("div",Sue,[Y("pre",null,[Y("b",null,Ge(f.error.name||f.error.nameStr),1),mt(": "+Ge(f.error.message),1)]),(le(!0),be(dt,null,ii(f.error.stacks,(p,v)=>(le(),be("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Ge(r(p.file))+":"+Ge(p.line)+":"+Ge(p.column),1),q(Hae)(p.file,f.filename)?St((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=>q(nw)(p.file,p.line,p.column)},null,40,kue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):et("",!0)]))),128)),q(s)?(le(),be("pre",{key:0,"data-testid":"diff",innerHTML:q(c)},null,8,Tue)):et("",!0)])}}}),Eue=Qi(Cue,[["__scopeId","data-v-9dd6eaea"]]),Lue={"h-full":"",class:"scrolls"},Aue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Mue=["innerHTML"],Nue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},$ue=pt({__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($l(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($l(p?d.stackStr:d.stack)):h=`<b>${d.nameStr||d.name}</b>: ${d.message}${f.toHtml($l(p?d.stackStr:d.stack))}`),h.length>0?h:null}function s(f,d){const h=Ih(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(_=>o(h,_)).filter(_=>_!=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(ua.value,d):d});return(f,d)=>{const h=Eue;return le(),be("div",Lue,[q(c).length?(le(!0),be(dt,{key:0},ii(q(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`})},[mt(Ge(p.name)+" ",1),(y=p.result)!=null&&y.htmlError?(le(),be("div",Aue,[Y("pre",{innerHTML:p.result.htmlError},null,8,Mue)])):(b=p.result)!=null&&b.errors?(le(!0),be(dt,{key:1},ii(p.result.errors,(_,L)=>{var C;return le(),ot(h,{key:L,error:_,filename:(C=f.file)==null?void 0:C.name,root:q(Uh).root},null,8,["error","filename","root"])}),128)):et("",!0)],4)])}),128)):(le(),be("div",Nue," All tests passed in this file "))])}}}),Oue=Qi($ue,[["__scopeId","data-v-5503cb37"]]),Pue={border:"b base","p-4":""},Rue=["innerHTML"],Due=pt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(le(),be("div",Pue,[Y("div",{"text-xs":"","mb-1":"",class:st(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ge(t(r.time))+" | "+Ge(r.taskName)+" | "+Ge(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,Rue)]))}}),zue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Iue={key:1,p6:""},Fue=Y("pre",{inline:""},"console.log(foo)",-1),Hue=pt({__name:"ViewConsoleOutput",setup(e){const t=$e(()=>{const o=Rw.value;if(o){const s=Ih(ua.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml($l(h))}))}});function r(o){const s=o&&bt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?HE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Due;return(f=q(t))!=null&&f.length?(le(),be("div",zue,[(le(!0),be(dt,null,ii(q(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",Iue,[mt(" Log something in your test and it would print here. (e.g. "),Fue,mt(") ")]))}}});var zw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Lo,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),_=b&&+b[1],L=/Opera\//.test(r),C=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),A=/PhantomJS/.test(r),E=C&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),O=/Android/.test(r),M=E||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),z=E||/Mac/.test(o),B=/\bCrOS\b/.test(r),ne=/win/i.test(o),re=L&&r.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(L=!1,v=!0);var oe=z&&(y||L&&(re==null||re<12.11)),G=s||h&&p>=9;function X(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Q=function(n,i){var a=n.className,l=X(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 H(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 te(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;X(i).test(a)||(n.className+=(a?" ":"")+i)}function qe(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!X(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ue=function(n){n.select()};E?Ue=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ue=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Ze(n.display.wrapper)}function Ze(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Te(n){return it(n).defaultView}function K(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=K(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 Ce(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ye=50,P={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 He(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 Be(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||De.test(n))}function Ve(n,i){return i?i.source.indexOf("\\w")>-1&&Be(n)?!0:i.test(n):Be(n)}function gt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var tt=/[\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 nt(n){return n.charCodeAt(0)>=768&&tt.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&nt(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 nr(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 Dn=null;function rr(n,i,a){var l;Dn=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:Dn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Dn=u)}return l??Dn}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 x(S,$,D){this.level=S,this.from=$,this.to=D}return function(S,$){var D=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var j=S.length,U=[],ee=0;ee<j;++ee)U.push(a(S.charCodeAt(ee)));for(var fe=0,ge=D;fe<j;++fe){var we=U[fe];we=="m"?U[fe]=ge:ge=we}for(var ke=0,xe=D;ke<j;++ke){var Ee=U[ke];Ee=="1"&&xe=="r"?U[ke]="n":g.test(Ee)&&(xe=Ee,Ee=="r"&&(U[ke]="R"))}for(var Fe=1,Re=U[0];Fe<j-1;++Fe){var Je=U[Fe];Je=="+"&&Re=="1"&&U[Fe+1]=="1"?U[Fe]="1":Je==","&&Re==U[Fe+1]&&(Re=="1"||Re=="n")&&(U[Fe]=Re),Re=Je}for(var wt=0;wt<j;++wt){var Vt=U[wt];if(Vt==",")U[wt]="N";else if(Vt=="%"){var Ct=void 0;for(Ct=wt+1;Ct<j&&U[Ct]=="%";++Ct);for(var Ln=wt&&U[wt-1]=="!"||Ct<j&&U[Ct]=="1"?"1":"N",mn=wt;mn<Ct;++mn)U[mn]=Ln;wt=Ct-1}}for(var Ot=0,yn=D;Ot<j;++Ot){var Kt=U[Ot];yn=="L"&&Kt=="1"?U[Ot]="L":g.test(Kt)&&(yn=Kt)}for(var Ht=0;Ht<j;++Ht)if(u.test(U[Ht])){var Pt=void 0;for(Pt=Ht+1;Pt<j&&u.test(U[Pt]);++Pt);for(var Mt=(Ht?U[Ht-1]:D)=="L",bn=(Pt<j?U[Pt]:D)=="L",ns=Mt==bn?Mt?"L":"R":D,_i=Ht;_i<Pt;++_i)U[_i]=ns;Ht=Pt-1}for(var rn=[],Er,jt=0;jt<j;)if(m.test(U[jt])){var Af=jt;for(++jt;jt<j&&m.test(U[jt]);++jt);rn.push(new x(0,Af,jt))}else{var Vr=jt,fo=rn.length,ho=$=="rtl"?1:0;for(++jt;jt<j&&U[jt]!="L";++jt);for(var an=Vr;an<jt;)if(w.test(U[an])){Vr<an&&(rn.splice(fo,0,new x(1,Vr,an)),fo+=ho);var rs=an;for(++an;an<jt&&w.test(U[an]);++an);rn.splice(fo,0,new x(2,rs,an)),fo+=ho,Vr=an}else++an;Vr<jt&&rn.splice(fo,0,new x(1,Vr,jt))}return $=="ltr"&&(rn[0].level==1&&(Er=S.match(/^\s+/))&&(rn[0].from=Er[0].length,rn.unshift(new x(0,0,Er[0].length))),ue(rn).level==1&&(Er=S.match(/\s+$/))&&(ue(rn).to-=Er[0].length,rn.push(new x(0,j-Er[0].length,j)))),$=="rtl"?rn.reverse():rn}}();function We(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var to=[],Ie=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]||to).concat(a)}};function Ir(n,i){return n._handlers&&n._handlers[i]||to}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=Ce(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=Ir(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),hn(i)||i.codemirrorIgnore}function Un(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)Ce(a,i[l])==-1&&a.push(i[l])}function Cn(n,i){return Ir(n,i).length>0}function ir(n){n.prototype.on=function(i,a){Ie(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function No(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function hn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function ui(n){tn(n),No(n)}function Ns(n){return n.target||n.srcElement}function or(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),z&&n.ctrlKey&&i==1&&(i=3),i}var Ru=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),$o;function pa(n){if($o==null){var i=k("span","");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&($o=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=$o?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var $s;function fi(n){if($s!=null)return $s;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:$s=l.right-a.right<3}var Vn=`
|
|
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/)},di=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},ga=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),sr=null;function Du(n){if(sr!=null)return sr;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=W(i,0,1).getBoundingClientRect();return sr=Math.abs(a.left-l.left)>1}var Oo={},lr={};function ar(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Oo[n]=i}function no(n,i){lr[n]=i}function Po(n){if(typeof n=="string"&&lr.hasOwnProperty(n))n=lr[n];else if(n&&typeof n.name=="string"&&lr.hasOwnProperty(n.name)){var i=lr[n.name];typeof i=="string"&&(i={name:i}),n=He(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Po("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Po("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Ro(n,i){i=Po(i);var a=Oo[i.name];if(!a)return Ro(n,"text/plain");var l=a(n,i);if(hi.hasOwnProperty(i.name)){var u=hi[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 hi={};function Do(n,i){var a=hi.hasOwnProperty(n)?hi[n]:hi[n]={};ae(i,a)}function Sr(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 Os(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 zo(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 Fr(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 Ps(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function zn(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=Ce(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 R(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],x=w.height;if(i<x)break;i-=x}return a+m}function ie(n,i){return i>=n.first&&i<n.first+n.size}function pe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function J(n,i,a){if(a===void 0&&(a=null),!(this instanceof J))return new J(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 qt(n){return J(n.line,n.ch)}function pn(n,i){return _e(n,i)<0?i:n}function Io(n,i){return _e(n,i)<0?n:i}function sp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function je(n,i){if(i.line<n.first)return J(n.first,0);var a=n.first+n.size-1;return i.line>a?J(a,Oe(n,a).text.length):L1(i,Oe(n,i.line).text.length)}function L1(n,i){var a=n.ch;return a==null||a>i?J(n.line,i):a<0?J(n.line,0):n}function lp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=je(n,i[l]);return a}var va=function(n,i){this.state=n,this.lookAhead=i},kr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};kr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},kr.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}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(n,i,a){return i instanceof va?new kr(n,Sr(n.mode,i.state),a,i.lookAhead):new kr(n,Sr(n.mode,i),a)},kr.prototype.save=function(n){var i=n!==!1?Sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new va(i,this.maxLookAhead):i};function ap(n,i,a,l){var u=[n.state.modeGen],g={};pp(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],D=1,j=0;a.state=!0,pp(n,i.text,$.mode,a,function(U,ee){for(var fe=D;j<U;){var ge=u[D];ge>U&&u.splice(D,1,U,u[D+1],ge),D+=2,j=Math.min(U,ge)}if(ee)if($.opaque)u.splice(fe,D-fe,U,"overlay "+ee),D=fe+2;else for(;fe<D;fe+=2){var we=u[fe+1];u[fe+1]=(we?we+" ":"")+"overlay "+ee}},g),a.state=m,a.baseTokens=null,a.baseTokenPos=1},x=0;x<n.state.overlays.length;++x)w(x);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function cp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Rs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Sr(n.doc.mode,l.state),g=ap(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 Rs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new kr(l,!0,i);var g=A1(n,i,a),m=g>l.first&&Oe(l,g-1).stateAfter,w=m?kr.fromSaved(l,m,g):new kr(l,zo(l.mode),g);return l.iter(g,i,function(x){zu(n,x.text,w);var S=w.line;x.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 zu(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==""&&up(u,a.state);!g.eol();)Iu(u,g,a.state),g.start=g.pos}function up(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Os(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Iu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Os(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 fp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function dp(n,i,a,l){var u=n.doc,g=u.mode,m;i=je(u,i);var w=Oe(u,i.line),x=Rs(n,i.line,a),S=new At(w.text,n.options.tabSize,x),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=Iu(g,S,x.state),l&&$.push(new fp(S,m,Sr(u.mode,x.state)));return l?$:new fp(S,m,x.state)}function hp(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 pp(n,i,a,l,u,g,m){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var x=0,S=null,$=new At(i,n.options.tabSize,l),D,j=n.options.addModeClass&&[null];for(i==""&&hp(up(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,m&&zu(n,i,l,$.pos),$.pos=i.length,D=null):D=hp(Iu(a,$,l.state,j),g),j){var U=j[0].name;U&&(D="m-"+(D?U+" "+D:U))}if(!w||S!=D){for(;x<$.start;)x=Math.min($.start,x+5e3),u(x,S);S=D}$.start=$.pos}for(;x<$.pos;){var ee=Math.min($.pos,x+5e3);u(ee,S),x=ee}}function A1(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 x=Oe(g,w-1),S=x.stateAfter;if(S&&(!a||w+(S instanceof va?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(x.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function M1(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 va)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var gp=!1,Hr=!1;function N1(){gp=!0}function $1(){Hr=!0}function ma(n,i,a){this.marker=n,this.from=i,this.to=a}function Ds(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function O1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function P1(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 R1(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 x=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new ma(m,g.from,x?null:g.to))}}return l}function D1(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 x=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new ma(m,x?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Fu(n,i){if(i.full)return null;var a=ie(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=ie(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=R1(a,u,m),x=D1(l,g,m),S=i.text.length==1,$=ue(i.text).length+(S?u:0);if(w)for(var D=0;D<w.length;++D){var j=w[D];if(j.to==null){var U=Ds(x,j.marker);U?S&&(j.to=U.to==null?null:U.to+$):j.to=u}}if(x)for(var ee=0;ee<x.length;++ee){var fe=x[ee];if(fe.to!=null&&(fe.to+=$),fe.from==null){var ge=Ds(w,fe.marker);ge||(fe.from=$,S&&(w||(w=[])).push(fe))}else fe.from+=$,S&&(w||(w=[])).push(fe)}w&&(w=vp(w)),x&&x!=w&&(x=vp(x));var we=[w];if(!S){var ke=i.text.length-2,xe;if(ke>0&&w)for(var Ee=0;Ee<w.length;++Ee)w[Ee].to==null&&(xe||(xe=[])).push(new ma(w[Ee].marker,null,null));for(var Fe=0;Fe<ke;++Fe)we.push(xe);we.push(x)}return we}function vp(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 z1(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||Ce(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),x=0;x<u.length;++x){var S=u[x];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[x,1],D=_e(S.from,w.from),j=_e(S.to,w.to);(D<0||!m.inclusiveLeft&&!D)&&$.push({from:S.from,to:w.from}),(j>0||!m.inclusiveRight&&!j)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),x+=$.length-3}}return u}function mp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function yp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function ya(n){return n.inclusiveLeft?-1:0}function ba(n){return n.inclusiveRight?1:0}function Hu(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)||ya(n)-ya(i);if(g)return-g;var m=_e(l.to,u.to)||ba(n)-ba(i);return m||i.id-n.id}function bp(n,i){var a=Hr&&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||Hu(l,u.marker)<0)&&(l=u.marker);return l}function wp(n){return bp(n,!0)}function wa(n){return bp(n,!1)}function I1(n,i){var a=Hr&&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||Hu(l,g.marker)<0)&&(l=g.marker)}return l}function xp(n,i,a,l,u){var g=Oe(n,i),m=Hr&&g.markedSpans;if(m)for(var w=0;w<m.length;++w){var x=m[w];if(x.marker.collapsed){var S=x.marker.find(0),$=_e(S.from,a)||ya(x.marker)-ya(u),D=_e(S.to,l)||ba(x.marker)-ba(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(x.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(x.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function cr(n){for(var i;i=wp(n);)n=i.find(-1,!0).line;return n}function F1(n){for(var i;i=wa(n);)n=i.find(1,!0).line;return n}function H1(n){for(var i,a;i=wa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function qu(n,i){var a=Oe(n,i),l=cr(a);return a==l?i:T(l)}function _p(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!pi(n,a))return i;for(;l=wa(a);)a=l.find(1,!0).line;return T(a)+1}function pi(n,i){var a=Hr&&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&&Bu(n,i,l))return!0}}}function Bu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Bu(n,l.line,Ds(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)&&Bu(n,i,u))return!0}function qr(n){n=cr(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 xa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=wp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=wa(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Wu(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=xa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=xa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Fo=function(n,i,a){this.text=n,yp(this,i),this.height=a?a(this):1};Fo.prototype.lineNo=function(){return T(this)},ir(Fo);function q1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),mp(n),yp(n,a);var u=l?l(n):1;u!=n.height&&zn(n,u)}function B1(n){n.parent=null,mp(n)}var W1={},U1={};function Sp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?U1:W1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function kp(n,i){var a=H("span",null,null,v?"padding-right: .1px":null),l={pre:H("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=j1,fi(n.display.measure)&&(m=We(g,n.doc.direction))&&(l.addToken=K1(l.addToken,m)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);X1(g,l,cp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=qe(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=qe(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(pa(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=l.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=qe(l.pre.className,l.textClass||"")),l}function V1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function j1(n,i,a,l,u,g,m){if(i){var w=n.splitSpaces?G1(i,n.trailingSpace):i,x=n.cm.state.specialChars,S=!1,$;if(!x.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 D=0;;){x.lastIndex=D;var j=x.exec(i),U=j?j.index-D:i.length-D;if(U){var ee=document.createTextNode(w.slice(D,D+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(!j)break;D+=U+1;var fe=void 0;if(j[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 j[0]=="\r"||j[0]==`
|
|
29
|
+
`?(fe=$.appendChild(k("span",j[0]=="\r"?"␍":"","cm-invalidchar")),fe.setAttribute("cm-text",j[0]),n.col+=1):(fe=n.cm.options.specialCharPlaceholder(j[0]),fe.setAttribute("cm-text",j[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 Ee in m)m.hasOwnProperty(Ee)&&Ee!="style"&&Ee!="class"&&xe.setAttribute(Ee,m[Ee]);return n.content.appendChild(xe)}n.content.appendChild($)}}function G1(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 K1(n,i){return function(a,l,u,g,m,w,x){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,$=S+l.length;;){for(var D=void 0,j=0;j<i.length&&(D=i[j],!(D.to>S&&D.from<=S));j++);if(D.to>=$)return n(a,l,u,g,m,w,x);n(a,l.slice(0,D.to-S),u,g,null,w,x),g=null,l=l.slice(D.to-S),S=D.to}}}function Tp(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 X1(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]),Sp(a[m+1],i.cm.options));return}for(var w=u.length,x=0,S=1,$="",D,j,U=0,ee,fe,ge,we,ke;;){if(U==x){ee=fe=ge=j="",ke=null,we=null,U=1/0;for(var xe=[],Ee=void 0,Fe=0;Fe<l.length;++Fe){var Re=l[Fe],Je=Re.marker;if(Je.type=="bookmark"&&Re.from==x&&Je.widgetNode)xe.push(Je);else if(Re.from<=x&&(Re.to==null||Re.to>x||Je.collapsed&&Re.to==x&&Re.from==x)){if(Re.to!=null&&Re.to!=x&&U>Re.to&&(U=Re.to,fe=""),Je.className&&(ee+=" "+Je.className),Je.css&&(j=(j?j+";":"")+Je.css),Je.startStyle&&Re.from==x&&(ge+=" "+Je.startStyle),Je.endStyle&&Re.to==U&&(Ee||(Ee=[])).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||Hu(we.marker,Je)<0)&&(we=Re)}else Re.from>x&&U>Re.from&&(U=Re.from)}if(Ee)for(var Vt=0;Vt<Ee.length;Vt+=2)Ee[Vt+1]==U&&(fe+=" "+Ee[Vt]);if(!we||we.from==x)for(var Ct=0;Ct<xe.length;++Ct)Tp(i,0,xe[Ct]);if(we&&(we.from||0)==x){if(Tp(i,(we.to==null?w+1:we.to)-x,we.marker,we.from==null),we.to==null)return;we.to==x&&(we=!1)}}if(x>=w)break;for(var Ln=Math.min(w,U);;){if($){var mn=x+$.length;if(!we){var Ot=mn>Ln?$.slice(0,Ln-x):$;i.addToken(i,Ot,D?D+ee:ee,ge,x+Ot.length==U?fe:"",j,ke)}if(mn>=Ln){$=$.slice(Ln-x),x=Ln;break}x=mn,ge=""}$=u.slice(g,g=a[S++]),D=Sp(a[S++],i.cm.options)}}}function Cp(n,i,a){this.line=i,this.rest=H1(i),this.size=this.rest?T(ue(this.rest))-a+1:1,this.node=this.text=null,this.hidden=pi(n,i)}function _a(n,i,a){for(var l=[],u,g=i;g<a;g=u){var m=new Cp(n.doc,Oe(n.doc,g),g);u=g+m.size,l.push(m)}return l}var Ho=null;function Y1(n){Ho?Ho.ops.push(n):n.ownsGroup=Ho={ops:[n],delayedCallbacks:[]}}function Z1(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 J1(n,i){var a=n.ownsGroup;if(a)try{Z1(a)}finally{Ho=null,i(a)}}var zs=null;function Bt(n,i){var a=Ir(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Ho?u=Ho.delayedCallbacks:zs?u=zs:(u=zs=[],setTimeout(Q1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},m=0;m<a.length;++m)g(m)}}function Q1(){var n=zs;zs=null;for(var i=0;i<n.length;++i)n[i]()}function Ep(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?tx(n,i):g=="gutter"?Ap(n,i,a,l):g=="class"?Uu(n,i):g=="widget"&&nx(n,i,l)}i.changes=null}function Is(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 ex(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=Is(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Lp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):kp(n,i)}function tx(n,i){var a=i.text.className,l=Lp(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,Uu(n,i)):a&&(i.text.className=a)}function Uu(n,i){ex(n,i),i.line.wrapClass?Is(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 Ap(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=Is(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=Is(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 x=0;x<n.display.gutterSpecs.length;++x){var S=n.display.gutterSpecs[x].className,$=g.hasOwnProperty(S)&&g[S];$&&w.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function nx(n,i,a){i.alignable&&(i.alignable=null);for(var l=X("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Mp(n,i,a)}function rx(n,i,a,l){var u=Lp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Uu(n,i),Ap(n,i,a,l),Mp(n,i,l),i.node}function Mp(n,i,a){if(Np(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Np(n,i.rest[l],i,a,!1)}function Np(n,i,a,l,u){if(i.widgets)for(var g=Is(a),m=0,w=i.widgets;m<w.length;++m){var x=w[m],S=k("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),ix(x,S,a,l),n.display.input.setUneditable(S),u&&x.above?g.insertBefore(S,a.gutter||a.text):g.appendChild(S),Bt(x,"redraw")}}function ix(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 Fs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!te(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 Br(n,i){for(var a=Ns(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 Sa(n){return n.lineSpace.offsetTop}function Vu(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function $p(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 Tr(n){return Ye-n.display.nativeBarWidth}function ro(n){return n.display.scroller.clientWidth-Tr(n)-n.display.barWidth}function ju(n){return n.display.scroller.clientHeight-Tr(n)-n.display.barHeight}function ox(n,i,a){var l=n.options.lineWrapping,u=l&&ro(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 x=m[w],S=m[w+1];Math.abs(x.bottom-S.bottom)>2&&g.push((x.bottom+S.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Op(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 sx(n,i){i=cr(i);var a=T(i),l=n.display.externalMeasured=new Cp(n.doc,i,a);l.lineN=a;var u=l.built=kp(n,l);return l.text=u.pre,I(n.display.lineMeasure,u.pre),l}function Pp(n,i,a,l){return Cr(n,qo(n,i),a,l)}function Gu(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[so(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function qo(n,i){var a=T(i),l=Gu(n,a);l&&!l.text?l=null:l&&l.changes&&(Ep(n,l,a,Ju(n)),n.curOp.forceUpdate=!0),l||(l=sx(n,i));var u=Op(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Cr(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||(ox(n,i.view,i.rect),i.hasHeights=!0),m=ax(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 Rp={left:0,right:0,top:0,bottom:0};function Dp(n,i,a){for(var l,u,g,m,w,x,S=0;S<n.length;S+=3)if(w=n[S],x=n[S+1],i<w?(u=0,g=1,m="left"):i<x?(u=i-w,g=u+1):(S==n.length-3||i==x&&n[S+3]>i)&&(g=x-w,u=g-1,i>=x&&(m="right")),u!=null){if(l=n[S+2],w==x&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&u==x-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:x}}function lx(n,i){var a=Rp;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 ax(n,i,a,l){var u=Dp(i.map,a,l),g=u.node,m=u.start,w=u.end,x=u.collapse,S;if(g.nodeType==3){for(var $=0;$<4;$++){for(;m&&nt(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+w<u.coverEnd&&nt(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&m==0&&w==u.coverEnd-u.coverStart?S=g.parentNode.getBoundingClientRect():S=lx(W(g,m,w).getClientRects(),l),S.left||S.right||m==0)break;w=m,m=m-1,x="right"}h&&p<11&&(S=cx(n.display.measure,S))}else{m>0&&(x=l="right");var D;n.options.lineWrapping&&(D=g.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=g.getBoundingClientRect()}if(h&&p<9&&!m&&(!S||!S.left&&!S.right)){var j=g.parentNode.getClientRects()[0];j?S={left:j.left,right:j.left+Wo(n.display),top:j.top,bottom:j.bottom}:S=Rp}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],Ee={left:(x=="right"?S.right:S.left)-i.rect.left,right:(x=="left"?S.left:S.right)-i.rect.left,top:ke,bottom:xe};return!S.left&&!S.right&&(Ee.bogus=!0),n.options.singleCursorHeightPerLine||(Ee.rtop=U,Ee.rbottom=ee),Ee}function cx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Du(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 zp(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 Ip(n){n.display.externalMeasure=null,V(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)zp(n.display.view[i])}function Hs(n){Ip(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Fp(n){return b&&O?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Hp(n){return b&&O?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Ku(n){var i=cr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Fs(a[u]));return l}function ka(n,i,a,l,u){if(!u){var g=Ku(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var m=qr(i);if(l=="local"?m+=Sa(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();m+=w.top+(l=="window"?0:Hp(it(n)));var x=w.left+(l=="window"?0:Fp(it(n)));a.left+=x,a.right+=x}return a.top+=m,a.bottom+=m,a}function qp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Fp(it(n)),u-=Hp(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 Ta(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),ka(n,l,Pp(n,l,i.ch,u),a)}function ur(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=qo(n,l));function m(ee,fe){var ge=Cr(n,u,ee,fe?"right":"left",g);return fe?ge.left=ge.right:ge.right=ge.left,ka(n,l,ge,a)}var w=We(l,n.doc.direction),x=i.ch,S=i.sticky;if(x>=l.text.length?(x=l.text.length,S="before"):x<=0&&(x=0,S="after"),!w)return m(S=="before"?x-1:x,S=="before");function $(ee,fe,ge){var we=w[fe],ke=we.level==1;return m(ge?ee-1:ee,ke!=ge)}var D=rr(w,x,S),j=Dn,U=$(x,D,S=="before");return j!=null&&(U.other=$(x,j,S!="before")),U}function Bp(n,i){var a=0;i=je(n.doc,i),n.options.lineWrapping||(a=Wo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=qr(l)+Sa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Xu(n,i,a,l,u){var g=J(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function Yu(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Xu(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return Xu(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=ux(n,m,u,i,a),x=I1(m,w.ch+(w.xRel>0||w.outside>0?1:0));if(!x)return w;var S=x.find(1);if(S.line==u)return S;m=Oe(l,u=S.line)}}function Wp(n,i,a,l){l-=Ku(i);var u=i.text.length,g=Jt(function(m){return Cr(n,a,m-1).bottom<=l},u,0);return u=Jt(function(m){return Cr(n,a,m).top>l},g,u),{begin:g,end:u}}function Up(n,i,a,l){a||(a=qo(n,i));var u=ka(n,i,Cr(n,a,l),"line").top;return Wp(n,i,a,u)}function Zu(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function ux(n,i,a,l,u){u-=qr(i);var g=qo(n,i),m=Ku(i),w=0,x=i.text.length,S=!0,$=We(i,n.doc.direction);if($){var D=(n.options.lineWrapping?dx:fx)(n,i,a,g,$,l,u);S=D.level!=1,w=S?D.from:D.to-1,x=S?D.to:D.from-1}var j=null,U=null,ee=Jt(function(Fe){var Re=Cr(n,g,Fe);return Re.top+=m,Re.bottom+=m,Zu(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(j=Fe,U=Re),!0):!1},w,x),fe,ge,we=!1;if(U){var ke=l-U.left<U.right-l,xe=ke==S;ee=j+(xe?0:1),ge=xe?"after":"before",fe=ke?U.left:U.right}else{!S&&(ee==x||ee==w)&&ee++,ge=ee==0?"after":ee==i.text.length?"before":Cr(n,g,ee-(S?1:0)).bottom+m<=u==S?"after":"before";var Ee=ur(n,J(a,ee,ge),"line",i,g);fe=Ee.left,we=u<Ee.top?-1:u>=Ee.bottom?1:0}return ee=Ft(i.text,ee,1),Xu(a,ee,ge,we,l-fe)}function fx(n,i,a,l,u,g,m){var w=Jt(function(D){var j=u[D],U=j.level!=1;return Zu(ur(n,J(a,U?j.to:j.from,U?"before":"after"),"line",i,l),g,m,!0)},0,u.length-1),x=u[w];if(w>0){var S=x.level!=1,$=ur(n,J(a,S?x.from:x.to,S?"after":"before"),"line",i,l);Zu($,g,m,!0)&&$.top>m&&(x=u[w-1])}return x}function dx(n,i,a,l,u,g,m){var w=Wp(n,i,l,m),x=w.begin,S=w.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var $=null,D=null,j=0;j<u.length;j++){var U=u[j];if(!(U.from>=S||U.to<=x)){var ee=U.level!=1,fe=Cr(n,l,ee?Math.min(S,U.to)-1:Math.max(x,U.from)).right,ge=fe<g?g-fe+1e9:fe-g;(!$||D>ge)&&($=U,D=ge)}}return $||($=u[u.length-1]),$.from<x&&($={from:x,to:$.to,level:$.level}),$.to>S&&($={from:$.from,to:S,level:$.level}),$}var io;function Bo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(io==null){io=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)io.appendChild(document.createTextNode("x")),io.appendChild(k("br"));io.appendChild(document.createTextNode("x"))}I(n.measure,io);var a=io.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),V(n.measure),a||1}function Wo(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 Ju(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:Qu(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Qu(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Vp(n){var i=Bo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Wo(n.display)-3);return function(u){if(pi(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 ef(n){var i=n.doc,a=Vp(n);i.iter(function(l){var u=a(l);u!=l.height&&zn(l,u)})}function oo(n,i,a,l){var u=n.display;if(!a&&Ns(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 x=Yu(n,g,m),S;if(l&&x.xRel>0&&(S=Oe(n.doc,x.line).text).length==x.ch){var $=de(S,S.length,n.options.tabSize)-S.length;x=J(x.line,Math.max(0,Math.round((g-$p(n.display).left)/Wo(n.display))-$))}return x}function so(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 gn(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)Hr&&qu(n.doc,i)<u.viewTo&&vi(n);else if(a<=u.viewFrom)Hr&&_p(n.doc,a+l)>u.viewFrom?vi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)vi(n);else if(i<=u.viewFrom){var g=Ca(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):vi(n)}else if(a>=u.viewTo){var m=Ca(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):vi(n)}else{var w=Ca(n,i,i,-1),x=Ca(n,a,a+l,1);w&&x?(u.view=u.view.slice(0,w.index).concat(_a(n,w.lineN,x.lineN)).concat(u.view.slice(x.index)),u.viewTo+=l):vi(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function gi(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[so(n,i)];if(g.node!=null){var m=g.changes||(g.changes=[]);Ce(m,a)==-1&&m.push(a)}}}function vi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ca(n,i,a,l){var u=so(n,i),g,m=n.display.view;if(!Hr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,x=0;x<u;x++)w+=m[x].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(;qu(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 hx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=_a(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=_a(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(so(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(_a(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,so(n,a)))),l.viewTo=a}function jp(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 qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Gp(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 x=a.sel.ranges[w];if(!(x.from().line>=n.display.viewTo||x.to().line<n.display.viewFrom)){var S=x.empty();if(m){var $=m(n,x);$&&tf(n,$,u)}else(S||n.options.showCursorWhenSelecting)&&tf(n,x.head,u);S||px(n,x,g)}}return l}function tf(n,i,a){var l=ur(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=Ta(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 Ea(n,i){return n.top-i.top||n.left-i.left}function px(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),m=$p(n.display),w=m.left,x=Math.max(l.sizerWidth,ro(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function $(xe,Ee,Fe,Re){Ee<0&&(Ee=0),Ee=Math.round(Ee),Re=Math.round(Re),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
|
|
30
|
+
top: `+Ee+"px; width: "+(Fe??x-xe)+`px;
|
|
31
|
+
height: `+(Re-Ee)+"px"))}function D(xe,Ee,Fe){var Re=Oe(u,xe),Je=Re.text.length,wt,Vt;function Ct(Ot,yn){return Ta(n,J(xe,Ot),"div",Re,yn)}function Ln(Ot,yn,Kt){var Ht=Up(n,Re,null,Ot),Pt=yn=="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 mn=We(Re,u.direction);return nr(mn,Ee||0,Fe??Je,function(Ot,yn,Kt,Ht){var Pt=Kt=="ltr",Mt=Ct(Ot,Pt?"left":"right"),bn=Ct(yn-1,Pt?"right":"left"),ns=Ee==null&&Ot==0,_i=Fe==null&&yn==Je,rn=Ht==0,Er=!mn||Ht==mn.length-1;if(bn.top-Mt.top<=3){var jt=(S?ns:_i)&&rn,Af=(S?_i:ns)&&Er,Vr=jt?w:(Pt?Mt:bn).left,fo=Af?x:(Pt?bn:Mt).right;$(Vr,Mt.top,fo-Vr,Mt.bottom)}else{var ho,an,rs,Mf;Pt?(ho=S&&ns&&rn?w:Mt.left,an=S?x:Ln(Ot,Kt,"before"),rs=S?w:Ln(yn,Kt,"after"),Mf=S&&_i&&Er?x:bn.right):(ho=S?Ln(Ot,Kt,"before"):w,an=!S&&ns&&rn?x:Mt.right,rs=!S&&_i&&Er?w:bn.left,Mf=S?Ln(yn,Kt,"after"):x),$(ho,Mt.top,an-ho,Mt.bottom),Mt.bottom<bn.top&&$(w,Mt.bottom,null,bn.top),$(rs,bn.top,Mf-rs,bn.bottom)}(!wt||Ea(Mt,wt)<0)&&(wt=Mt),Ea(bn,wt)<0&&(wt=bn),(!Vt||Ea(Mt,Vt)<0)&&(Vt=Mt),Ea(bn,Vt)<0&&(Vt=bn)}),{start:wt,end:Vt}}var j=i.from(),U=i.to();if(j.line==U.line)D(j.line,j.ch,U.ch);else{var ee=Oe(u,j.line),fe=Oe(u,U.line),ge=cr(ee)==cr(fe),we=D(j.line,j.ch,ge?ee.text.length+1:null).end,ke=D(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 nf(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()||Uo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Kp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||of(n))}function rf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Uo(n))},100)}function of(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()),nf(n))}function Uo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Et(n,"blur",n,i),n.state.focused=!1,Q(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function La(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],x=n.options.lineWrapping,S=void 0,$=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var D=w.node.offsetTop+w.node.offsetHeight;S=D-a,a=D}else{var j=w.node.getBoundingClientRect();S=j.bottom-j.top,!x&&w.text.firstChild&&($=w.text.firstChild.getBoundingClientRect().right-j.left-1)}var U=w.line.height-S;if((U>.005||U<-.005)&&(u<l&&(g-=U),zn(w.line,S),Xp(w.line),w.rest))for(var ee=0;ee<w.rest.length;ee++)Xp(w.rest[ee]);if($>n.display.sizerWidth){var fe=Math.ceil($/Wo(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 Xp(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 Aa(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Sa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=R(i,l),m=R(i,u);if(a&&a.ensure){var w=a.ensure.from.line,x=a.ensure.to.line;w<g?(g=w,m=R(i,qr(Oe(i,w))+n.wrapper.clientHeight)):Math.min(x,i.lastLine())>=m&&(g=R(i,qr(Oe(i,x))-n.wrapper.clientHeight),m=x)}return{from:g,to:Math.max(m,g+1)}}function gx(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&&!A){var m=k("div","",null,`position: absolute;
|
|
32
|
+
top: `+(i.top-a.viewOffset-Sa(n.display))+`px;
|
|
33
|
+
height: `+(i.bottom-i.top+Tr(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 vx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?J(i.line,i.ch+1,"before"):i,i=i.ch?J(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var m=!1,w=ur(n,i),x=!a||a==i?w:ur(n,a);u={left:Math.min(w.left,x.left),top:Math.min(w.top,x.top)-l,right:Math.max(w.left,x.left),bottom:Math.max(w.bottom,x.bottom)+l};var S=sf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(Ws(n,S.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(m=!0)),S.scrollLeft!=null&&(lo(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return u}function mx(n,i){var a=sf(n,i);a.scrollTop!=null&&Ws(n,a.scrollTop),a.scrollLeft!=null&&lo(n,a.scrollLeft)}function sf(n,i){var a=n.display,l=Bo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=ju(n),m={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+Vu(a),x=i.top<l,S=i.bottom>w-l;if(i.top<u)m.scrollTop=x?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(S?w:i.bottom)-g);$!=u&&(m.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,j=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,U=ro(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<j?m.scrollLeft=Math.max(0,i.left+D-(ee?0:10)):i.right>U+j-3&&(m.scrollLeft=i.right+(ee?0:10)-U),m}function lf(n,i){i!=null&&(Ma(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Vo(n){Ma(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Bs(n,i,a){(i!=null||a!=null)&&Ma(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function yx(n,i){Ma(n),n.curOp.scrollToPos=i}function Ma(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Bp(n,i.from),l=Bp(n,i.to);Yp(n,a,l,i.margin)}}function Yp(n,i,a,l){var u=sf(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});Bs(n,u.scrollLeft,u.scrollTop)}function Ws(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||cf(n,{top:i}),Zp(n,i,!0),s&&cf(n),js(n,100))}function Zp(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 lo(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,ng(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Us(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Vu(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+Tr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ao=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),Ie(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ie(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ao.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}},ao.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ao.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ao.prototype.zeroWidthHack=function(){var n=z&&!N?"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},ao.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)},ao.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Vs=function(){};Vs.prototype.update=function(){return{bottom:0,right:0}},Vs.prototype.setScrollLeft=function(){},Vs.prototype.setScrollTop=function(){},Vs.prototype.clear=function(){};function jo(n,i){i||(i=Us(n));var a=n.display.barWidth,l=n.display.barHeight;Jp(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&La(n),Jp(n,Us(n)),a=n.display.barWidth,l=n.display.barHeight}function Jp(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 Qp={native:ao,null:Vs};function eg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Q(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Qp[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Ie(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"?lo(n,i):Ws(n,i)},n),n.display.scrollbars.addClass&&Me(n.display.wrapper,n.display.scrollbars.addClass)}var bx=0;function co(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:++bx,markArrays:null},Y1(n.curOp)}function uo(n){var i=n.curOp;i&&J1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;wx(a)})}function wx(n){for(var i=n.ops,a=0;a<i.length;a++)xx(i[a]);for(var l=0;l<i.length;l++)_x(i[l]);for(var u=0;u<i.length;u++)Sx(i[u]);for(var g=0;g<i.length;g++)kx(i[g]);for(var m=0;m<i.length;m++)Tx(i[m])}function xx(n){var i=n.cm,a=i.display;Ex(i),n.updateMaxLine&&Wu(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 Na(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function _x(n){n.updatedDisplay=n.mustUpdate&&af(n.cm,n.update)}function Sx(n){var i=n.cm,a=i.display;n.updatedDisplay&&La(i),n.barMeasure=Us(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Pp(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+Tr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-ro(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function kx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&lo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(rt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&jo(i,n.barMeasure),n.updatedDisplay&&ff(i,n.barMeasure),n.selectionChanged&&nf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Kp(n.cm)}function Tx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&tg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Zp(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&lo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=vx(i,je(l,n.scrollToPos.from),je(l,n.scrollToPos.to),n.scrollToPos.margin);gx(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 x=0;x<m.length;++x)m[x].lines.length&&Et(m[x],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Et(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function En(n,i){if(n.curOp)return i();co(n);try{return i()}finally{uo(n)}}function Wt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);co(n);try{return i.apply(n,arguments)}finally{uo(n)}}}function ln(n){return function(){if(this.curOp)return n.apply(this,arguments);co(this);try{return n.apply(this,arguments)}finally{uo(this)}}}function Ut(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);co(i);try{return n.apply(this,arguments)}finally{uo(i)}}}function js(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,K(Cx,n))}function Cx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Rs(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?Sr(i.mode,l.state):null,x=ap(n,g,l,!0);w&&(l.state=w),g.styles=x.styles;var S=g.styleClasses,$=x.classes;$?g.styleClasses=$:S&&(g.styleClasses=null);for(var D=!m||m.length!=g.styles.length||S!=$&&(!S||!$||S.bgClass!=$.bgClass||S.textClass!=$.textClass),j=0;!D&&j<m.length;++j)D=m[j]!=g.styles[j];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&zu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return js(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&En(n,function(){for(var g=0;g<u.length;g++)gi(n,u[g],"text")})}}var Na=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Aa(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=ro(n),this.force=a,this.dims=Ju(n),this.events=[]};Na.prototype.signal=function(n,i){Cn(n,i)&&this.events.push(arguments)},Na.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Et.apply(null,this.events[n])};function Ex(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Tr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Tr(n)+"px",i.scrollbarsClipped=!0)}function Lx(n){if(n.hasFocus())return null;var i=me(rt(n));if(!i||!te(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Te(n).getSelection();l.anchorNode&&l.extend&&te(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Ax(n){if(!(!n||!n.activeElt||n.activeElt==me(Ze(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&te(document.body,n.anchorNode)&&te(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 af(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return vi(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&&jp(n)==0)return!1;rg(n)&&(vi(n),i.dims=Ju(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)),Hr&&(g=qu(n.doc,g),m=_p(n.doc,m));var w=g!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;hx(n,g,m),a.viewOffset=qr(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var x=jp(n);if(!w&&x==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=Lx(n);return x>4&&(a.lineDiv.style.display="none"),Mx(n,a.updateLineNumbers,i.dims),x>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Ax(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,js(n,400)),a.updateLineNumbers=null,!0}function tg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==ro(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Vu(n.display)-ju(n),a.top)}),i.visible=Aa(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Aa(n.display,n.doc,a));if(!af(n,i))break;La(n);var u=Us(n);qs(n),jo(n,u),ff(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 cf(n,i){var a=new Na(n,i);if(af(n,a)){La(n),tg(n,a);var l=Us(n);qs(n),jo(n,l),ff(n,l),a.finish()}}function Mx(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&&z&&n.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),fe}for(var x=l.view,S=l.viewFrom,$=0;$<x.length;$++){var D=x[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var j=rx(n,D,S,a);g.insertBefore(j,m)}else{for(;m!=D.node;)m=w(m);var U=u&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Ce(D.changes,"gutter")>-1&&(U=!1),Ep(n,D,S,a)),U&&(V(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(pe(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=w(m)}function uf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Bt(n,"gutterChanged",n)}function ff(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+Tr(n)+"px"}function ng(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Qu(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 x=0;x<w.length;x++)w[x].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function rg(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",uf(n.display),!0}return!1}function df(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 ig(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",uf(n)}function Gs(n){ig(n.display),gn(n),ng(n)}function Nx(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=H("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=H("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=H("div",[u.lineSpace],"CodeMirror-lines");u.mover=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&&_>=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&&M)&&(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=df(l.gutters,l.lineNumbers),ig(u),a.init(u)}var $a=0,Wr=null;h?Wr=-.53:s?Wr=15:b?Wr=-.7:C&&(Wr=-1/3);function og(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 $x(n){var i=og(n);return i.x*=Wr,i.y*=Wr,i}function sg(n,i){b&&_==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=og(i),l=a.x,u=a.y,g=Wr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var m=n.display,w=m.scroller,x=w.scrollWidth>w.clientWidth,S=w.scrollHeight>w.clientHeight;if(l&&x||u&&S){if(u&&z&&v){e:for(var $=i.target,D=m.view;$!=w;$=$.parentNode)for(var j=0;j<D.length;j++)if(D[j].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!L&&g!=null){u&&S&&Ws(n,Math.max(0,w.scrollTop+u*g)),lo(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),cf(n,{top:ee,bottom:fe})}$a<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&&(Wr=(Wr*$a+ke)/($a+1),++$a)}},200)):(m.wheelDX+=l,m.wheelDY+=u))}}var In=function(n,i){this.ranges=n,this.primIndex=i};In.prototype.primary=function(){return this.ranges[this.primIndex]},In.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},In.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ft(qt(this.ranges[i].anchor),qt(this.ranges[i].head));return new In(n,this.primIndex)},In.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},In.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 Io(this.anchor,this.head)},ft.prototype.to=function(){return pn(this.anchor,this.head)},ft.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function fr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(j,U){return _e(j.from(),U.from())}),a=Ce(i,u);for(var g=1;g<i.length;g++){var m=i[g],w=i[g-1],x=_e(w.to(),m.from());if(l&&!m.empty()?x>0:x>=0){var S=Io(w.from(),m.from()),$=pn(w.to(),m.to()),D=w.empty()?m.from()==m.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new ft(D?$:S,D?S:$))}}return new In(i,a)}function mi(n,i){return new In([new ft(n,i||n)],0)}function yi(n){return n.text?J(n.from.line+n.text.length-1,ue(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function lg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return yi(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+=yi(i).ch-i.to.ch),J(a,l)}function hf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ft(lg(u.anchor,i),lg(u.head,i)))}return fr(n.cm,a,n.sel.primIndex)}function ag(n,i,a){return n.line==i.line?J(a.line,n.ch-i.ch+a.ch):J(a.line+(n.line-i.line),n.ch)}function Ox(n,i,a){for(var l=[],u=J(n.first,0),g=u,m=0;m<i.length;m++){var w=i[m],x=ag(w.from,u,g),S=ag(yi(w),u,g);if(u=w.to,g=S,a=="around"){var $=n.sel.ranges[m],D=_e($.head,$.anchor)<0;l[m]=new ft(D?S:x,D?x:S)}else l[m]=new ft(x,x)}return new In(l,n.sel.primIndex)}function pf(n){n.doc.mode=Ro(n.options,n.doc.modeOption),Ks(n)}function Ks(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,js(n,100),n.state.modeGen++,n.curOp&&gn(n)}function cg(n,i){return i.from.ch==0&&i.to.ch==0&&ue(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function gf(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,xe,Ee){q1(ke,xe,Ee,l),Bt(ke,"change",ke,i)}function m(ke,xe){for(var Ee=[],Fe=ke;Fe<xe;++Fe)Ee.push(new Fo(S[Fe],u(Fe),l));return Ee}var w=i.from,x=i.to,S=i.text,$=Oe(n,w.line),D=Oe(n,x.line),j=ue(S),U=u(S.length-1),ee=x.line-w.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(cg(n,i)){var fe=m(0,S.length-1);g(D,D.text,U),ee&&n.remove(w.line,ee),fe.length&&n.insert(w.line,fe)}else if($==D)if(S.length==1)g($,$.text.slice(0,w.ch)+j+$.text.slice(x.ch),U);else{var ge=m(1,S.length-1);ge.push(new Fo(j+$.text.slice(x.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]+D.text.slice(x.ch),u(0)),n.remove(w.line+1,ee);else{g($,$.text.slice(0,w.ch)+S[0],u(0)),g(D,j+D.text.slice(x.ch),U);var we=m(1,S.length-1);ee>1&&n.remove(w.line+1,ee-1),n.insert(w.line+1,we)}Bt(n,"change",n,i)}function bi(n,i,a){function l(u,g,m){if(u.linked)for(var w=0;w<u.linked.length;++w){var x=u.linked[w];if(x.doc!=g){var S=m&&x.sharedHist;a&&!S||(i(x.doc,S),l(x.doc,u,S))}}}l(n,null,!0)}function ug(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,ef(n),pf(n),fg(n),n.options.direction=i.direction,n.options.lineWrapping||Wu(n),n.options.mode=i.modeOption,gn(n)}function fg(n){(n.doc.direction=="rtl"?Me:Q)(n.display.lineDiv,"CodeMirror-rtl")}function Px(n){En(n,function(){fg(n),gn(n)})}function Oa(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 vf(n,i){var a={from:qt(i.from),to:yi(i),text:Fr(n,i.from,i.to)};return pg(n,a,i.from.line,i.to.line+1),bi(n,function(l){return pg(l,a,i.from.line,i.to.line+1)},!0),a}function dg(n){for(;n.length;){var i=ue(n);if(i.ranges)n.pop();else break}}function Rx(n,i){if(i)return dg(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 hg(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=Rx(u,u.lastOp==l)))w=ue(m.changes),_e(i.from,i.to)==0&&_e(i.from,w.to)==0?w.to=yi(i):m.changes.push(vf(n,i));else{var x=ue(u.done);for((!x||!x.ranges)&&Pa(n.sel,u.done),m={changes:[vf(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 Dx(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 zx(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||Dx(n,g,ue(u.done),i))?u.done[u.done.length-1]=i:Pa(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&dg(u.undone)}function Pa(n,i){var a=ue(i);a&&a.ranges&&a.equals(n)||i.push(n)}function pg(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 Ix(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 Fx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Ix(a[u]));return l}function gg(n,i){var a=Fx(n,i),l=Fu(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 x=m[w],S=0;S<g.length;++S)if(g[S].marker==x.marker)continue e;g.push(x)}else m&&(a[u]=m)}return a}function Go(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?In.prototype.deepCopy.call(g):g);continue}var m=g.changes,w=[];l.push({changes:w});for(var x=0;x<m.length;++x){var S=m[x],$=void 0;if(w.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)($=D.match(/^spans_(\d+)$/))&&Ce(i,Number($[1]))>-1&&(ue(w)[D]=S[D],delete S[D])}}return l}function mf(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 Ra(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),nn(n,new In([mf(n.sel.primary(),i,a,u)],0),l)}function vg(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]=mf(n.sel.ranges[g],i[g],null,u);var m=fr(n.cm,l,n.sel.primIndex);nn(n,m,a)}function yf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,nn(n,fr(n.cm,u,n.sel.primIndex),l)}function mg(n,i,a,l){nn(n,mi(i,a),l)}function Hx(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(je(n,u[g].anchor),je(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?fr(n.cm,l.ranges,l.ranges.length-1):i}function yg(n,i,a){var l=n.history.done,u=ue(l);u&&u.ranges?(l[l.length-1]=i,Da(n,i,a)):nn(n,i,a)}function nn(n,i,a){Da(n,i,a),zx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Da(n,i,a){(Cn(n,"beforeSelectionChange")||n.cm&&Cn(n.cm,"beforeSelectionChange"))&&(i=Hx(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);bg(n,xg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Vo(n.cm)}function bg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Un(n.cm)),Bt(n,"cursorActivity",n))}function wg(n){bg(n,xg(n,n.sel,null,!1))}function xg(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],x=za(n,m.anchor,w&&w.anchor,a,l),S=m.head==m.anchor?x:za(n,m.head,w&&w.head,a,l);(u||x!=m.anchor||S!=m.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new ft(x,S))}return u?fr(n.cm,u,i.primIndex):i}function Ko(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],x=w.marker,S="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,$="selectRight"in x?!x.selectRight:x.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(x,"beforeCursorEnter"),x.explicitlyCleared))if(g.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(a){var D=x.find(l<0?1:-1),j=void 0;if((l<0?$:S)&&(D=_g(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(j=_e(D,a))&&(l<0?j<0:j>0))return Ko(n,D,i,l,u)}var U=x.find(l<0?-1:1);return(l<0?S:$)&&(U=_g(n,U,l,U.line==i.line?g:null)),U?Ko(n,U,i,l,u):null}}return i}function za(n,i,a,l,u){var g=l||1,m=Ko(n,i,a,g,u)||!u&&Ko(n,i,a,g,!0)||Ko(n,i,a,-g,u)||!u&&Ko(n,i,a,-g,!0);return m||(n.cantEdit=!0,J(n.first,0))}function _g(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?je(n,J(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?J(i.line+1,0):null:new J(i.line,i.ch+a)}function Sg(n){n.setSelection(J(n.firstLine(),0),J(n.lastLine()),F)}function kg(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=je(n,u)),g&&(l.to=je(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 Xo(n,i,a){if(n.cm){if(!n.cm.curOp)return Wt(n.cm,Xo)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Cn(n,"beforeChange")||n.cm&&Cn(n.cm,"beforeChange"))&&(i=kg(n,i,!0),!i))){var l=gp&&!a&&z1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Tg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Tg(n,i)}}function Tg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=hf(n,i);hg(n,i,a,n.cm?n.cm.curOp.id:NaN),Xs(n,i,a,Fu(n,i));var l=[];bi(n,function(u,g){!g&&Ce(l,u.history)==-1&&(Ag(u.history,i),l.push(u.history)),Xs(u,i,null,Fu(u,i))})}}function Ia(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,x=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(Pa(g,x),a&&!g.equals(n.sel)){nn(n,g,{clearRedo:!1});return}m=g}else if(l){w.push(g);return}else break;var $=[];Pa(m,x),x.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=Cn(n,"beforeChange")||n.cm&&Cn(n.cm,"beforeChange"),j=function(fe){var ge=g.changes[fe];if(ge.origin=i,D&&!kg(n,ge,!1))return w.length=0,{};$.push(vf(n,ge));var we=fe?hf(n,ge):ue(w);Xs(n,ge,we,gg(n,ge)),!fe&&n.cm&&n.cm.scrollIntoView({from:ge.from,to:yi(ge)});var ke=[];bi(n,function(xe,Ee){!Ee&&Ce(ke,xe.history)==-1&&(Ag(xe.history,ge),ke.push(xe.history)),Xs(xe,ge,null,gg(xe,ge))})},U=g.changes.length-1;U>=0;--U){var ee=j(U);if(ee)return ee.v}}}}function Cg(n,i){if(i!=0&&(n.first+=i,n.sel=new In(ye(n.sel.ranges,function(u){return new ft(J(u.anchor.line+i,u.anchor.ch),J(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){gn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)gi(n.cm,l,"gutter")}}function Xs(n,i,a,l){if(n.cm&&!n.cm.curOp)return Wt(n.cm,Xs)(n,i,a,l);if(i.to.line<n.first){Cg(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);Cg(n,u),i={from:J(n.first,0),to:J(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:J(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Fr(n,i.from,i.to),a||(a=hf(n,i)),n.cm?qx(n.cm,i,l):gf(n,i,l),Da(n,a,F),n.cantEdit&&za(n,J(n.firstLine(),0))&&(n.cantEdit=!1)}}function qx(n,i,a){var l=n.doc,u=n.display,g=i.from,m=i.to,w=!1,x=g.line;n.options.lineWrapping||(x=T(cr(Oe(l,g.line))),l.iter(x,m.line+1,function(U){if(U==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Un(n),gf(l,i,a,Vp(n)),n.options.lineWrapping||(l.iter(x,g.line+i.text.length,function(U){var ee=xa(U);ee>u.maxLineLength&&(u.maxLine=U,u.maxLineLength=ee,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),M1(l,g.line),js(n,400);var S=i.text.length-(m.line-g.line)-1;i.full?gn(n):g.line==m.line&&i.text.length==1&&!cg(n.doc,i)?gi(n,g.line,"text"):gn(n,g.line,m.line+1,S);var $=Cn(n,"changes"),D=Cn(n,"change");if(D||$){var j={from:g,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&Bt(n,"change",n,j),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(j)}n.display.selForContextMenu=null}function Yo(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)),Xo(n,{from:a,to:l,text:i,origin:u})}function Eg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Lg(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++)Eg(g.ranges[w].anchor,i,a,l),Eg(g.ranges[w].head,i,a,l);continue}for(var x=0;x<g.changes.length;++x){var S=g.changes[x];if(a<S.from.line)S.from=J(S.from.line+l,S.from.ch),S.to=J(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 Ag(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Lg(n.done,a,l,u),Lg(n.undone,a,l,u)}function Ys(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,sp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&gi(n.cm,u,a),g)}function Zs(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}Zs.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,B1(u),Bt(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 Js(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}Js.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 Zs))){var w=[];this.collapse(w),this.children=[new Zs(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 x=new Zs(u.lines.slice(w,w+=25));u.height-=x.height,this.children.splice(++l,0,x),x.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 Js(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ce(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Js(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 Qs=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Qs.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=Fs(this);zn(a,Math.max(0,a.height-g)),n&&(En(n,function(){Mg(n,a,-g),gi(n,l,"widget")}),Bt(n,"lineWidgetCleared",n,this,l))}},Qs.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Fs(this)-i;u&&(pi(this.doc,l)||zn(l,l.height+u),a&&En(a,function(){a.curOp.forceUpdate=!0,Mg(a,l,u),Bt(a,"lineWidgetChanged",a,n,T(l))}))},ir(Qs);function Mg(n,i,a){qr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&lf(n,a)}function Bx(n,i,a,l){var u=new Qs(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),Ys(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&&!pi(n,m)){var x=qr(m)<n.scrollTop;zn(m,m.height+Fs(u)),x&&lf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Bt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Ng=0,wi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Ng};wi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&co(n),Cn(this,"clear")){var a=this.find();a&&Bt(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=Ds(m.markedSpans,this);n&&!this.collapsed?gi(n,T(m),"text"):n&&(w.to!=null&&(u=T(m)),w.from!=null&&(l=T(m))),m.markedSpans=O1(m.markedSpans,w),w.from==null&&this.collapsed&&!pi(this.doc,m)&&n&&zn(m,Bo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var S=cr(this.lines[x]),$=xa(S);$>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&gn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&wg(n.doc)),n&&Bt(n,"markerCleared",n,this,l,u),i&&uo(n),this.parent&&this.parent.clear()}},wi.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=Ds(g.markedSpans,this);if(m.from!=null&&(a=J(i?g:T(g),m.from),n==-1))return a;if(m.to!=null&&(l=J(i?g:T(g),m.to),n==1))return l}return a&&{from:a,to:l}},wi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||En(l,function(){var u=i.line,g=T(i.line),m=Gu(l,g);if(m&&(zp(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!pi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var x=Fs(a)-w;x&&zn(u,u.height+x)}Bt(l,"markerChanged",l,n)})},wi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},wi.prototype.detachLine=function(n){if(this.lines.splice(Ce(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},ir(wi);function Zo(n,i,a,l,u){if(l&&l.shared)return Wx(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Wt(n.cm,Zo)(n,i,a,l,u);var g=new wi(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=H("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(xp(n,i.line,i,a,g)||i.line!=a.line&&xp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");$1()}g.addToHistory&&hg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,x=n.cm,S;if(n.iter(w,a.line+1,function(D){x&&g.collapsed&&!x.options.lineWrapping&&cr(D)==x.display.maxLine&&(S=!0),g.collapsed&&w!=i.line&&zn(D,0),P1(D,new ma(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(D){pi(n,D)&&zn(D,0)}),g.clearOnEnter&&Ie(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(N1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Ng,g.atomic=!0),x){if(S&&(x.curOp.updateMaxLine=!0),g.collapsed)gn(x,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;$++)gi(x,$,"text");g.atomic&&wg(x.doc),Bt(x,"markerAdded",x,g)}return g}var el=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};el.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Bt(this,"clear")}},el.prototype.find=function(n,i){return this.primary.find(n,i)},ir(el);function Wx(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[Zo(n,i,a,l,u)],m=g[0],w=l.widgetNode;return bi(n,function(x){w&&(l.widgetNode=w.cloneNode(!0)),g.push(Zo(x,je(x,i),je(x,a),l,u));for(var S=0;S<x.linked.length;++S)if(x.linked[S].isParent)return;m=ue(g)}),new el(g,m)}function $g(n){return n.findMarks(J(n.first,0),n.clipPos(J(n.lastLine())),function(i){return i.parent})}function Ux(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=Zo(n,g,m,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function Vx(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];bi(u.primary.doc,function(x){return g.push(x)});for(var m=0;m<u.markers.length;m++){var w=u.markers[m];Ce(g,w.doc)==-1&&(w.parent=null,u.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var jx=0,vn=function(n,i,a,l,u){if(!(this instanceof vn))return new vn(n,i,a,l,u);a==null&&(a=0),Js.call(this,[new Zs([new Fo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=J(a,0);this.sel=mi(g),this.history=new Oa(null),this.id=++jx,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),gf(this,{from:g,to:g,text:n}),nn(this,mi(g),F)};vn.prototype=He(Js.prototype,{constructor:vn,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=Ps(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Ut(function(n){var i=J(this.first,0),a=this.first+this.size-1;Xo(this,{from:i,to:J(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Bs(this.cm,0,0),nn(this,mi(i),F)}),replaceRange:function(n,i,a,l){i=je(this,i),a=a?je(this,a):i,Yo(this,n,i,a,l)},getRange:function(n,i,a){var l=Fr(this,je(this,n),je(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(ie(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),cr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return je(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:Ut(function(n,i,a){mg(this,je(this,typeof n=="number"?J(n,i||0):n),null,a)}),setSelection:Ut(function(n,i,a){mg(this,je(this,n),je(this,i||n),a)}),extendSelection:Ut(function(n,i,a){Ra(this,je(this,n),i&&je(this,i),a)}),extendSelections:Ut(function(n,i){vg(this,lp(this,n),i)}),extendSelectionsBy:Ut(function(n,i){var a=ye(this.sel.ranges,n);vg(this,lp(this,a),i)}),setSelections:Ut(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ft(je(this,n[u].anchor),je(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),nn(this,fr(this.cm,l,i),a)}}),addSelection:Ut(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ft(je(this,n),je(this,i||n))),nn(this,fr(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=Fr(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=Fr(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:Ut(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"&&Ox(this,l,i),x=l.length-1;x>=0;x--)Xo(this,l[x]);w?yg(this,w):this.cm&&Vo(this.cm)}),undo:Ut(function(){Ia(this,"undo")}),redo:Ut(function(){Ia(this,"redo")}),undoSelection:Ut(function(){Ia(this,"undo",!0)}),redoSelection:Ut(function(){Ia(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 Oa(this.history),bi(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:Go(this.history.done),undone:Go(this.history.undone)}},setHistory:function(n){var i=this.history=new Oa(this.history);i.done=Go(n.done.slice(0),null,!0),i.undone=Go(n.undone.slice(0),null,!0)},setGutterMarker:Ut(function(n,i,a){return Ys(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&>(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Ut(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Ys(i,a,"gutter",function(){return a.gutterMarkers[n]=null,gt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!ie(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:Ut(function(n,i,a){return Ys(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(X(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Ut(function(n,i,a){return Ys(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(X(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:Ut(function(n,i,a){return Bx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Zo(this,je(this,n),je(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=je(this,n),Zo(this,n,n,a,"bookmark")},findMarksAt:function(n){n=je(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=je(this,n),i=je(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 x=m[w];!(x.to!=null&&u==n.line&&n.ch>=x.to||x.from==null&&u!=n.line||x.from!=null&&u==i.line&&x.from>=i.ch)&&(!a||a(x.marker))&&l.push(x.marker.parent||x.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;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}),je(this,J(a,i))},indexFromPos:function(n){n=je(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 vn(Ps(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 vn(Ps(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}],Ux(l,$g(this)),l},unlinkDoc:function(n){if(n instanceof kt&&(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),Vx($g(this));break}}if(n.history==this.history){var l=[n.id];bi(n,function(u){return l.push(u.id)},!0),n.history=new Oa(null),n.history.done=Go(this.history.done,l),n.history.undone=Go(this.history.undone,l)}},iterLinkedDocs:function(n){bi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Vn(n)},lineSeparator:function(){return this.lineSep||`
|
|
35
|
+
`},setDirection:Ut(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Px(this.cm))})}),vn.prototype.eachLine=vn.prototype.iter;var Og=0;function Gx(n){var i=this;if(Pg(i),!(Lt(i,n)||Br(i.display,n))){tn(n),h&&(Og=+new Date);var a=oo(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&&Wt(i,function(){a=je(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"};Xo(i.doc,U),yg(i.doc,mi(je(i.doc,a),je(i.doc,yi(U))))})()},x=function(U,ee){if(i.options.allowDropFileTypes&&Ce(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++)x(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 D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Da(i.doc,mi(a,a)),D)for(var j=0;j<D.length;++j)Yo(i.doc,"",D[j].anchor,D[j].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function Kx(n,i){if(h&&(!n.state.draggingText||+new Date-Og<100)){ui(i);return}if(!(Lt(n,i)||Br(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==",L&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),L&&a.parentNode.removeChild(a)}}function Xx(n,i){var a=oo(n,i);if(a){var l=document.createDocumentFragment();tf(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 Pg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Rg(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 Dg=!1;function Yx(){Dg||(Zx(),Dg=!0)}function Zx(){var n;Ie(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Rg(Jx)},100))}),Ie(window,"blur",function(){return Rg(Uo)})}function Jx(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var xi={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"},tl=0;tl<10;tl++)xi[tl+48]=xi[tl+96]=String(tl);for(var Fa=65;Fa<=90;Fa++)xi[Fa]=String.fromCharCode(Fa);for(var nl=1;nl<=12;nl++)xi[nl+111]=xi[nl+63235]="F"+nl;var Ur={};Ur.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"},Ur.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"},Ur.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"},Ur.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"]},Ur.default=z?Ur.macDefault:Ur.pcDefault;function Qx(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 e_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),Qx),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 x=i[w];if(!x)i[w]=m;else if(x!=m)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var S in i)n[S]=i[S];return n}function Jo(n,i,a,l){i=Ha(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 Jo(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var m=Jo(n,i.fallthrough[g],a,l);if(m)return m}}}function zg(n){var i=typeof n=="string"?n:xi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Ig(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(oe?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(oe?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Fg(n,i){if(L&&n.keyCode==34&&n.char)return!1;var a=xi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Ig(a,n,i))}function Ha(n){return typeof n=="string"?Ur[n]:n}function Qo(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)}En(n,function(){for(var w=l.length-1;w>=0;w--)Yo(n.doc,"",l[w].from,l[w].to,"+delete");Vo(n)})}function bf(n,i,a){var l=Ft(n.text,i+a,a);return l<0||l>n.text.length?null:l}function wf(n,i,a){var l=bf(n,i.ch,a);return l==null?null:new J(i.line,l,a<0?"after":"before")}function xf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=We(a,i.doc.direction);if(g){var m=u<0?ue(g):g[0],w=u<0==(m.level==1),x=w?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var $=qo(i,a);S=u<0?a.text.length-1:0;var D=Cr(i,$,S).top;S=Jt(function(j){return Cr(i,$,j).top==D},u<0==(m.level==1)?m.from:m.to-1,S),x=="before"&&(S=bf(a,S,1))}else S=u<0?m.to:m.from;return new J(l,S,x)}}return new J(l,u<0?a.text.length:0,u<0?"before":"after")}function t_(n,i,a,l){var u=We(i,n.doc.direction);if(!u)return wf(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=rr(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 wf(i,a,l);var w=function(we,ke){return bf(i,we instanceof J?we.ch:we,ke)},x,S=function(we){return n.options.lineWrapping?(x=x||qo(n,i),Up(n,i,x,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 D=m.level==1==l<0,j=w(a,D?1:-1);if(j!=null&&(D?j<=m.to&&j<=$.end:j>=m.from&&j>=$.begin)){var U=D?"before":"after";return new J(a.line,j,U)}}var ee=function(we,ke,xe){for(var Ee=function(wt,Vt){return Vt?new J(a.line,w(wt,1),"before"):new J(a.line,wt,"after")};we>=0&&we<u.length;we+=ke){var Fe=u[we],Re=ke>0==(Fe.level!=1),Je=Re?xe.begin:w(xe.end,-1);if(Fe.from<=Je&&Je<Fe.to||(Je=Re?Fe.from:w(Fe.to,-1),xe.begin<=Je&&Je<xe.end))return Ee(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 rl={selectAll:Sg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),F)},killLine:function(n){return Qo(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:J(i.head.line+1,0)}:{from:i.head,to:J(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return Qo(n,function(i){return{from:J(i.from().line,0),to:je(n.doc,J(i.to().line+1,0))}})},delLineLeft:function(n){return Qo(n,function(i){return{from:J(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return Qo(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 Qo(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(J(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(J(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Hg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return qg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return n_(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/)?qg(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 En(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 J(u.line,u.ch-1)),u.ch>0)u=new J(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),J(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 J(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),J(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ft(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return En(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);Vo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
36
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Hg(n,i){var a=Oe(n.doc,i),l=cr(a);return l!=a&&(i=T(l)),xf(!0,n,l,i,1)}function n_(n,i){var a=Oe(n.doc,i),l=F1(a);return l!=a&&(i=T(l)),xf(!0,n,a,i,-1)}function qg(n,i){var a=Hg(n,i.line),l=Oe(n.doc,a.line),u=We(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 J(a.line,m?0:g,a.sticky)}return a}function qa(n,i,a){if(typeof i=="string"&&(i=rl[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)!=P}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function r_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=Jo(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&Jo(i,n.options.extraKeys,a,n)||Jo(i,n.options.keyMap,a,n)}var i_=new Ne;function il(n,i,a,l){var u=n.state.keySeq;if(u){if(zg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:i_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Bg(n,u+" "+i,a,l))return!0}return Bg(n,i,a,l)}function Bg(n,i,a,l){var u=r_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Bt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(tn(a),nf(n)),!!u}function Wg(n,i){var a=Fg(i,!0);return a?i.shiftKey&&!n.state.keySeq?il(n,"Shift-"+a,i,function(l){return qa(n,l,!0)})||il(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return qa(n,l)}):il(n,a,i,function(l){return qa(n,l)}):!1}function o_(n,i,a){return il(n,"'"+a+"'",i,function(l){return qa(n,l,!0)})}var _f=null;function Ug(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(rt(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=Wg(i,n);L&&(_f=l?a:null,!l&&a==88&&!ga&&(z?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!z&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&s_(i)}}function s_(n){var i=n.display.lineDiv;Me(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(Q(i,"CodeMirror-crosshair"),en(document,"keyup",a),en(document,"mouseover",a))}Ie(document,"keyup",a),Ie(document,"mouseover",a)}function Vg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,n)}function jg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Br(i.display,n)||Lt(i,n)||n.ctrlKey&&!n.altKey||z&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(L&&a==_f){_f=null,tn(n);return}if(!(L&&(!n.which||n.which<10)&&Wg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(o_(i,n,u)||i.display.input.onKeyPress(n))}}}var l_=400,Sf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Sf.prototype.compare=function(n,i,a){return this.time+l_>n&&_e(i,this.pos)==0&&a==this.button};var ol,sl;function a_(n,i){var a=+new Date;return sl&&sl.compare(a,n,i)?(ol=sl=null,"triple"):ol&&ol.compare(a,n,i)?(sl=new Sf(a,n,i),ol=null,"double"):(ol=new Sf(a,n,i),sl=null,"single")}function Gg(n){var i=this,a=i.display;if(!(Lt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Br(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!kf(i,n)){var l=oo(i,n),u=or(n),g=l?a_(l,u):"single";Te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&c_(i,u,l,g,n))&&(u==1?l?f_(i,l,g,n):Ns(n)==a.scroller&&tn(n):u==2?(l&&Ra(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):rf(i)))}}}function c_(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,il(n,Ig(g,u),u,function(m){if(typeof m=="string"&&(m=rl[m]),!m)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=m(n,a)!=P}finally{n.state.suppressEdits=!1}return w})}function u_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=B?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=z?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(z?a.altKey:a.ctrlKey)),u}function f_(n,i,a,l){h?setTimeout(K(Kp,n),0):n.curOp.focus=me(rt(n));var u=u_(n,a,l),g=n.doc.sel,m;n.options.dragDrop&&Ru&&!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)?d_(n,l,i,u):h_(n,l,i,u)}function d_(n,i,a,l){var u=n.display,g=!1,m=Wt(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:rf(n)),en(u.wrapper.ownerDocument,"mouseup",m),en(u.wrapper.ownerDocument,"mousemove",w),en(u.scroller,"dragstart",x),en(u.scroller,"drop",m),g||(tn(S),l.addNew||Ra(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},x=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Ie(u.wrapper.ownerDocument,"mouseup",m),Ie(u.wrapper.ownerDocument,"mousemove",w),Ie(u.scroller,"dragstart",x),Ie(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Kg(n,i,a){if(a=="char")return new ft(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ft(J(i.line,0),je(n.doc,J(i.line+1,0)));var l=a(n,i);return new ft(l.from,l.to)}function h_(n,i,a,l){h&&rf(n);var u=n.display,g=n.doc;tn(i);var m,w,x=g.sel,S=x.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=oo(n,i,!0,!0),w=-1;else{var $=Kg(n,a,l.unit);l.extend?m=mf(m,$.anchor,$.head,l.extend):m=$}l.addNew?w==-1?(w=S.length,nn(g,fr(n,S.concat([m]),w),{scroll:!1,origin:"*mouse"})):S.length>1&&S[w].empty()&&l.unit=="char"&&!l.extend?(nn(g,fr(n,S.slice(0,w).concat(S.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),x=g.sel):yf(g,w,m,Z):(w=0,nn(g,new In([m],0),Z),x=g.sel);var D=a;function j(xe){if(_e(D,xe)!=0)if(D=xe,l.unit=="rectangle"){for(var Ee=[],Fe=n.options.tabSize,Re=de(Oe(g,a.line).text,a.ch,Fe),Je=de(Oe(g,xe.line).text,xe.ch,Fe),wt=Math.min(Re,Je),Vt=Math.max(Re,Je),Ct=Math.min(a.line,xe.line),Ln=Math.min(n.lastLine(),Math.max(a.line,xe.line));Ct<=Ln;Ct++){var mn=Oe(g,Ct).text,Ot=se(mn,wt,Fe);wt==Vt?Ee.push(new ft(J(Ct,Ot),J(Ct,Ot))):mn.length>Ot&&Ee.push(new ft(J(Ct,Ot),J(Ct,se(mn,Vt,Fe))))}Ee.length||Ee.push(new ft(a,a)),nn(g,fr(n,x.ranges.slice(0,w).concat(Ee),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var yn=m,Kt=Kg(n,xe,l.unit),Ht=yn.anchor,Pt;_e(Kt.anchor,Ht)>0?(Pt=Kt.head,Ht=Io(yn.from(),Kt.anchor)):(Pt=Kt.anchor,Ht=pn(yn.to(),Kt.head));var Mt=x.ranges.slice(0);Mt[w]=p_(n,new ft(je(g,Ht),Pt)),nn(g,fr(n,Mt,w),Z)}}var U=u.wrapper.getBoundingClientRect(),ee=0;function fe(xe){var Ee=++ee,Fe=oo(n,xe,!0,l.unit=="rectangle");if(Fe)if(_e(Fe,D)!=0){n.curOp.focus=me(rt(n)),j(Fe);var Re=Aa(u,g);(Fe.line>=Re.to||Fe.line<Re.from)&&setTimeout(Wt(n,function(){ee==Ee&&fe(xe)}),150)}else{var Je=xe.clientY<U.top?-20:xe.clientY>U.bottom?20:0;Je&&setTimeout(Wt(n,function(){ee==Ee&&(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=Wt(n,function(xe){xe.buttons===0||!or(xe)?ge(xe):fe(xe)}),ke=Wt(n,ge);n.state.selectingText=ke,Ie(u.wrapper.ownerDocument,"mousemove",we),Ie(u.wrapper.ownerDocument,"mouseup",ke)}function p_(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=We(u);if(!g)return i;var m=rr(g,a.ch,a.sticky),w=g[m];if(w.from!=a.ch&&w.to!=a.ch)return i;var x=m+(w.from==a.ch==(w.level!=1)?0:1);if(x==0||x==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 $=rr(g,l.ch,l.sticky),D=$-m||(l.ch-a.ch)*(w.level==1?-1:1);$==x-1||$==x?S=D<0:S=D>0}var j=g[x+(S?-1:0)],U=S==(j.level==1),ee=U?j.from:j.to,fe=U?"after":"before";return a.ch==ee&&a.sticky==fe?i:new ft(new J(a.line,ee,fe),l)}function Xg(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||!Cn(n,a))return hn(i);g-=w.top-m.viewOffset;for(var x=0;x<n.display.gutterSpecs.length;++x){var S=m.gutters.childNodes[x];if(S&&S.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[x];return Et(n,a,n,$,D.className,i),hn(i)}}}function kf(n,i){return Xg(n,i,"gutterClick",!0)}function Yg(n,i){Br(n.display,i)||g_(n,i)||Lt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function g_(n,i){return Cn(n,"gutterContextMenu")?Xg(n,i,"gutterContextMenu",!1):!1}function Zg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hs(n)}var es={toString:function(){return"CodeMirror.Init"}},Jg={},Ba={};function v_(n){var i=n.optionHandlers;function a(l,u,g,m){n.defaults[l]=u,g&&(i[l]=m?function(w,x,S){S!=es&&g(w,x,S)}:g)}n.defineOption=a,n.Init=es,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,pf(l)},!0),a("indentUnit",2,pf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Ks(l),Hs(l),gn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],m=l.doc.first;l.doc.iter(function(x){for(var S=0;;){var $=x.text.indexOf(u,S);if($==-1)break;S=$+u.length,g.push(J(m,$))}m++});for(var w=g.length-1;w>=0;w--)Yo(l.doc,u,g[w],J(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!=es&&l.refresh()}),a("specialCharPlaceholder",V1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",M?"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",!ne),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Zg(l),Gs(l)},!0),a("keyMap","default",function(l,u,g){var m=Ha(u),w=g!=es&&Ha(g);w&&w.detach&&w.detach(l,m),m.attach&&m.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,y_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=df(u,l.options.lineNumbers),Gs(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Qu(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return jo(l)},!0),a("scrollbarStyle","native",function(l){eg(l),jo(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=df(l.options.gutters,u),Gs(l)},!0),a("firstLineNumber",1,Gs,!0),a("lineNumberFormatter",function(l){return l},Gs,!0),a("showCursorWhenSelecting",!1,qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Uo(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,m_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,qs,!0),a("singleCursorHeightPerLine",!0,qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ks,!0),a("addModeClass",!1,Ks,!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,Ks,!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 m_(n,i,a){var l=a&&a!=es;if(!i!=!l){var u=n.display.dragFunctions,g=i?Ie: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 y_(n){n.options.lineWrapping?(Me(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(Q(n.display.wrapper,"CodeMirror-wrap"),Wu(n)),ef(n),gn(n),Hs(n),setTimeout(function(){return jo(n)},100)}function kt(n,i){var a=this;if(!(this instanceof kt))return new kt(n,i);this.options=i=i?ae(i):{},ae(Jg,i,!1);var l=i.value;typeof l=="string"?l=new vn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new kt.inputStyles[i.inputStyle](this),g=this.display=new Nx(n,l,u,i);g.wrapper.CodeMirror=this,Zg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),eg(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&&!M&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),b_(this),Yx(),co(this),this.curOp.forceUpdate=!0,ug(this,l),i.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&of(a)},20):Uo(this);for(var m in Ba)Ba.hasOwnProperty(m)&&Ba[m](this,i[m],es);rg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Tf.length;++w)Tf[w](this);uo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}kt.defaults=Jg,kt.optionHandlers=Ba;function b_(n){var i=n.display;Ie(i.scroller,"mousedown",Wt(n,Gg)),h&&p<11?Ie(i.scroller,"dblclick",Wt(n,function(x){if(!Lt(n,x)){var S=oo(n,x);if(!(!S||kf(n,x)||Br(n.display,x))){tn(x);var $=n.findWordAt(S);Ra(n.doc,$.anchor,$.head)}}})):Ie(i.scroller,"dblclick",function(x){return Lt(n,x)||tn(x)}),Ie(i.scroller,"contextmenu",function(x){return Yg(n,x)}),Ie(i.input.getField(),"contextmenu",function(x){i.scroller.contains(x.target)||Yg(n,x)});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(x){if(x.touches.length!=1)return!1;var S=x.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(x,S){if(S.left==null)return!0;var $=S.left-x.left,D=S.top-x.top;return $*$+D*D>20*20}Ie(i.scroller,"touchstart",function(x){if(!Lt(n,x)&&!g(x)&&!kf(n,x)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),Ie(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ie(i.scroller,"touchend",function(x){var S=i.activeTouch;if(S&&!Br(i,x)&&S.left!=null&&!S.moved&&new Date-S.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ft($,$):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt($):D=new ft(J($.line,0),je(n.doc,J($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),tn(x)}u()}),Ie(i.scroller,"touchcancel",u),Ie(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ws(n,i.scroller.scrollTop),lo(n,i.scroller.scrollLeft,!0),Et(n,"scroll",n))}),Ie(i.scroller,"mousewheel",function(x){return sg(n,x)}),Ie(i.scroller,"DOMMouseScroll",function(x){return sg(n,x)}),Ie(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Lt(n,x)||ui(x)},over:function(x){Lt(n,x)||(Xx(n,x),ui(x))},start:function(x){return Kx(n,x)},drop:Wt(n,Gx),leave:function(x){Lt(n,x)||Pg(n)}};var w=i.input.getField();Ie(w,"keyup",function(x){return Vg.call(n,x)}),Ie(w,"keydown",Wt(n,Ug)),Ie(w,"keypress",Wt(n,jg)),Ie(w,"focus",function(x){return of(n,x)}),Ie(w,"blur",function(x){return Uo(n,x)})}var Tf=[];kt.defineInitHook=function(n){return Tf.push(n)};function ll(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Rs(n,i).state:a="prev");var m=n.options.tabSize,w=Oe(u,i),x=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),$==P||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,m):$=0:a=="add"?$=x+n.options.indentUnit:a=="subtract"?$=x-n.options.indentUnit:typeof a=="number"&&($=x+a),$=Math.max(0,$);var D="",j=0;if(n.options.indentWithTabs)for(var U=Math.floor($/m);U;--U)j+=m,D+=" ";if(j<$&&(D+=Se($-j)),D!=S)return Yo(u,D,J(i,0),J(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=J(i,S.length);yf(u,ee,new ft(ge,ge));break}}}var dr=null;function Wa(n){dr=n}function Cf(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,x=Vn(i),S=null;if(w&&l.ranges.length>1)if(dr&&dr.text.join(`
|
|
37
|
+
`)==i){if(l.ranges.length%dr.text.length==0){S=[];for(var $=0;$<dr.text.length;$++)S.push(g.splitLines(dr.text[$]))}}else x.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=ye(x,function(we){return[we]}));for(var D=n.curOp.updateInput,j=l.ranges.length-1;j>=0;j--){var U=l.ranges[j],ee=U.from(),fe=U.to();U.empty()&&(a&&a>0?ee=J(ee.line,ee.ch-a):n.state.overwrite&&!w?fe=J(fe.line,Math.min(Oe(g,fe.line).text.length,fe.ch+ue(x).length)):w&&dr&&dr.lineWise&&dr.text.join(`
|
|
38
|
+
`)==x.join(`
|
|
39
|
+
`)&&(ee=fe=J(ee.line,0)));var ge={from:ee,to:fe,text:S?S[j%S.length]:x,origin:u||(w?"paste":n.state.cutIncoming>m?"cut":"+input")};Xo(n.doc,ge),Bt(n,"inputRead",n,ge)}i&&!w&&ev(n,i),Vo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Qg(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&En(i,function(){return Cf(i,a,0,null,"paste")}),!0}function ev(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=ll(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=ll(n,u.head.line,"smart"));m&&Bt(n,"electricInput",n,u.head.line)}}}function tv(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:J(u,0),head:J(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Ef(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function nv(){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"),E&&(n.style.border="1px solid black"),i}function w_(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)&&Wt(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"](Ha(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:ln(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++,gn(this)}),removeOverlay:ln(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++,gn(this);return}}}),indentLine:ln(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),ie(this.doc,l)&&ll(this,l,u,g)}),indentSelection:ln(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&&(ll(this,w.head.line,l,!0),g=w.head.line,m==this.doc.sel.primIndex&&Vo(this));else{var x=w.from(),S=w.to(),$=Math.max(g,x.line);g=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=$;D<g;++D)ll(this,D,l);var j=this.doc.sel.ranges;x.ch==0&&u.length==j.length&&j[m].from().ch>0&&yf(this.doc,m,new ft(x,j[m].to()),F)}}}),getTokenAt:function(l,u){return dp(this,l,u)},getLineTokens:function(l,u){return dp(this,J(l),u,!0)},getTokenTypeAt:function(l){l=je(this.doc,l);var u=cp(this,Oe(this.doc,l.line)),g=0,m=(u.length-1)/2,w=l.ch,x;if(w==0)x=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{x=u[S*2+2];break}}var $=x?x.indexOf("overlay "):-1;return $<0?x:$==0?null:x.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 x=0;x<w[u].length;x++){var S=m[w[u][x]];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 D=m._global[$];D.pred(w,this)&&Ce(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=sp(g,l??g.first+g.size-1),Rs(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=je(this.doc,l):g=l?m.from():m.to(),ur(this,g,u||"page")},charCoords:function(l,u){return Ta(this,je(this.doc,l),u||"page")},coordsChar:function(l,u){return l=qp(this,l,u||"page"),Yu(this,l.left,l.top)},lineAtHeight:function(l,u){return l=qp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var m=!1,w;if(typeof l=="number"){var x=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>x&&(l=x,m=!0),w=Oe(this.doc,l)}else w=l;return ka(this,w,{top:0,left:0},u||"page",g||m).top+(m?this.doc.height-qr(w):0)},defaultTextHeight:function(){return Bo(this.display)},defaultCharWidth:function(){return Wo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,m,w){var x=this.display;l=ur(this,je(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),x.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),j=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?S=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(S=l.bottom),$+u.offsetWidth>j&&($=j-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",w=="right"?($=x.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?$=0:w=="middle"&&($=(x.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&mx(this,{left:$,top:S,right:$+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:ln(Ug),triggerOnKeyPress:ln(jg),triggerOnKeyUp:Vg,triggerOnMouseDown:ln(Gg),execCommand:function(l){if(rl.hasOwnProperty(l))return rl[l].call(null,this)},triggerElectric:ln(function(l){ev(this,l)}),findPosH:function(l,u,g,m){var w=1;u<0&&(w=-1,u=-u);for(var x=je(this.doc,l),S=0;S<u&&(x=Lf(this.doc,x,w,g,m),!x.hitSide);++S);return x},moveH:ln(function(l,u){var g=this;this.extendSelectionsBy(function(m){return g.display.shift||g.doc.extend||m.empty()?Lf(g.doc,m.head,l,u,g.options.rtlMoveVisually):l<0?m.from():m.to()},ce)}),deleteH:ln(function(l,u){var g=this.doc.sel,m=this.doc;g.somethingSelected()?m.replaceSelection("",null,"+delete"):Qo(this,function(w){var x=Lf(m,w.head,l,u,!1);return l<0?{from:x,to:w.head}:{from:w.head,to:x}})}),findPosV:function(l,u,g,m){var w=1,x=m;u<0&&(w=-1,u=-u);for(var S=je(this.doc,l),$=0;$<u;++$){var D=ur(this,S,"div");if(x==null?x=D.left:D.left=x,S=rv(this,D,w,g),S.hitSide)break}return S},moveV:ln(function(l,u){var g=this,m=this.doc,w=[],x=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function($){if(x)return l<0?$.from():$.to();var D=ur(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),w.push(D.left);var j=rv(g,D,l,u);return u=="page"&&$==m.sel.primary()&&lf(g,Ta(g,j,"div").top-D.top),j},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 x=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&m?--m:++w;for(var S=g.charAt(m),$=Ve(S,x)?function(D){return Ve(D,x)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Ve(D)};m>0&&$(g.charAt(m-1));)--m;for(;w<g.length&&$(g.charAt(w));)++w}return new ft(J(l.line,m),J(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Me(this.display.cursorDiv,"CodeMirror-overwrite"):Q(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(rt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ln(function(l,u){Bs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Tr(this)-this.display.barHeight,width:l.scrollWidth-Tr(this)-this.display.barWidth,clientHeight:ju(this),clientWidth:ro(this)}},scrollIntoView:ln(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:J(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?yx(this,l):Yp(this,l.from,l.to,l.margin)}),setSize:ln(function(l,u){var g=this,m=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};l!=null&&(this.display.wrapper.style.width=m(l)),u!=null&&(this.display.wrapper.style.height=m(u)),this.options.lineWrapping&&Ip(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(x){if(x.widgets){for(var S=0;S<x.widgets.length;S++)if(x.widgets[S].noHScroll){gi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(l){return En(this,l)},startOperation:function(){return co(this)},endOperation:function(){return uo(this)},refresh:ln(function(){var l=this.display.cachedTextHeight;gn(this),this.curOp.forceUpdate=!0,Hs(this),Bs(this,this.doc.scrollLeft,this.doc.scrollTop),uf(this.display),(l==null||Math.abs(l-Bo(this.display))>.5||this.options.lineWrapping)&&ef(this),Et(this,"refresh",this)}),swapDoc:ln(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),ug(this,l),Hs(this),this.display.input.reset(),Bs(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Bt(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}},ir(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 Lf(n,i,a,l,u){var g=i,m=a,w=Oe(n,i.line),x=u&&n.direction=="rtl"?-a:a;function S(){var ke=i.line+x;return ke<n.first||ke>=n.first+n.size?!1:(i=new J(ke,i.ch,i.sticky),w=Oe(n,ke))}function $(ke){var xe;if(l=="codepoint"){var Ee=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ee))xe=null;else{var Fe=a>0?Ee>=55296&&Ee<56320:Ee>=56320&&Ee<57343;xe=new J(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(Fe?2:1))),-a)}}else u?xe=t_(n.cm,w,i,a):xe=wf(w,i,a);if(xe==null)if(!ke&&S())i=xf(u,n.cm,w,i.line,x);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 D=null,j=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=Ve(fe,U)?"w":j&&fe==`
|
|
41
|
+
`?"n":!j||/\s/.test(fe)?null:"p";if(j&&!ee&&!ge&&(ge="s"),D&&D!=ge){a<0&&(a=1,$(),i.sticky="after");break}if(ge&&(D=ge),a>0&&!$(!ee))break}var we=za(n,i,g,m,!0);return ut(g,we)&&(we.hitSide=!0),we}function rv(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),x=Math.max(w-.5*Bo(n.display),3);m=(a>0?i.bottom:i.top)+a*x}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=Yu(n,g,m),!!S.outside;){if(a<0?m<=0:m>=u.height){S.hitSide=!0;break}m+=a*5}return S}var vt=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};vt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Ef(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var x=w.target;x;x=x.parentNode){if(x==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Ie(u,"paste",function(w){!g(w)||Lt(l,w)||Qg(w,l)||p<=11&&setTimeout(Wt(l,function(){return i.updateFromDOM()}),20)}),Ie(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Ie(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Ie(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ie(u,"touchstart",function(){return a.forceCompositionEnd()}),Ie(u,"input",function(){i.composing||i.readFromDOMSoon()});function m(w){if(!(!g(w)||Lt(l,w))){if(l.somethingSelected())Wa({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var x=tv(l);Wa({lineWise:!0,text:x.text}),w.type=="cut"&&l.operation(function(){l.setSelections(x.ranges,0,F),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var S=dr.text.join(`
|
|
42
|
+
`);if(w.clipboardData.setData("Text",S),w.clipboardData.getData("Text")==S){w.preventDefault();return}}var $=nv(),D=$.firstChild;Ef(D),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),D.value=dr.text.join(`
|
|
43
|
+
`);var j=me(Ze(u));Ue(D),setTimeout(function(){l.display.lineSpace.removeChild($),j.focus(),j==u&&a.showPrimarySelection()},50)}}Ie(u,"copy",m),Ie(u,"cut",m)},vt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},vt.prototype.prepareSelection=function(){var n=Gp(this.cm,!1);return n.focus=me(Ze(this.div))==this.div,n},vt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},vt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},vt.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=Ua(i,n.anchorNode,n.anchorOffset),m=Ua(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&m&&!m.bad&&_e(Io(g,m),l)==0&&_e(pn(g,m),u)==0)){var w=i.display.view,x=l.line>=i.display.viewFrom&&iv(i,l)||{node:w[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&iv(i,u);if(!S){var $=w[w.length-1].measure,D=$.maps?$.maps[$.maps.length-1]:$.map;S={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!x||!S){n.removeAllRanges();return}var j=n.rangeCount&&n.getRangeAt(0),U;try{U=W(x.node,x.offset,S.offset,S.node)}catch{}U&&(!s&&i.state.focused?(n.collapse(x.node,x.offset),U.collapsed||(n.removeAllRanges(),n.addRange(U))):(n.removeAllRanges(),n.addRange(U)),j&&n.anchorNode==null?n.addRange(j):s&&this.startGracePeriod()),this.rememberSelection()}},vt.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)},vt.prototype.showMultipleSelections=function(n){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},vt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},vt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return te(this.div,i)},vt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},vt.prototype.blur=function(){this.div.blur()},vt.prototype.getField=function(){return this.div},vt.prototype.supportsTouch=function(){return!0},vt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):En(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)},vt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},vt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(O&&b&&this.cm.display.gutterSpecs.length&&x_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Ua(i,n.anchorNode,n.anchorOffset),l=Ua(i,n.focusNode,n.focusOffset);a&&l&&En(i,function(){nn(i.doc,mi(a,l),F),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},vt.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=J(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=J(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,m,w;l.line==i.viewFrom||(g=so(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 x=so(n,u.line),S,$;if(x==i.view.length-1?(S=i.viewTo-1,$=i.lineDiv.lastChild):(S=T(i.view[x+1].line)-1,$=i.view[x+1].node.previousSibling),!w)return!1;for(var D=n.doc.splitLines(__(n,w,$,m,S)),j=Fr(n.doc,J(m,0),J(S,Oe(n.doc,S).text.length));D.length>1&&j.length>1;)if(ue(D)==ue(j))D.pop(),j.pop(),S--;else if(D[0]==j[0])D.shift(),j.shift(),m++;else break;for(var U=0,ee=0,fe=D[0],ge=j[0],we=Math.min(fe.length,ge.length);U<we&&fe.charCodeAt(U)==ge.charCodeAt(U);)++U;for(var ke=ue(D),xe=ue(j),Ee=Math.min(ke.length-(D.length==1?U:0),xe.length-(j.length==1?U:0));ee<Ee&&ke.charCodeAt(ke.length-ee-1)==xe.charCodeAt(xe.length-ee-1);)++ee;if(D.length==1&&j.length==1&&m==l.line)for(;U&&U>l.ch&&ke.charCodeAt(ke.length-ee-1)==xe.charCodeAt(xe.length-ee-1);)U--,ee++;D[D.length-1]=ke.slice(0,ke.length-ee).replace(/^\u200b+/,""),D[0]=D[0].slice(U).replace(/\u200b+$/,"");var Fe=J(m,U),Re=J(S,j.length?ue(j).length-ee:0);if(D.length>1||D[0]||_e(Fe,Re))return Yo(n.doc,D,Fe,Re,"+input"),!0},vt.prototype.ensurePolled=function(){this.forceCompositionEnd()},vt.prototype.reset=function(){this.forceCompositionEnd()},vt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},vt.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))},vt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&En(this.cm,function(){return gn(n.cm)})},vt.prototype.setUneditable=function(n){n.contentEditable="false"},vt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Wt(this.cm,Cf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},vt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},vt.prototype.onContextMenu=function(){},vt.prototype.resetPosition=function(){},vt.prototype.needsContentAttribute=!0;function iv(n,i){var a=Gu(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Op(a,l,i.line),g=We(l,n.doc.direction),m="left";if(g){var w=rr(g,i.ch);m=w%2?"right":"left"}var x=Dp(u.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function x_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ts(n,i){return i&&(n.bad=!0),n}function __(n,i,a,l,u){var g="",m=!1,w=n.doc.lineSeparator(),x=!1;function S(U){return function(ee){return ee.id==U}}function $(){m&&(g+=w,x&&(g+=w),m=x=!1)}function D(U){U&&($(),g+=U)}function j(U){if(U.nodeType==1){var ee=U.getAttribute("cm-text");if(ee){D(ee);return}var fe=U.getAttribute("cm-marker"),ge;if(fe){var we=n.findMarks(J(l,0),J(u+1,0),S(+fe));we.length&&(ge=we[0].find(0))&&D(Fr(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++)j(U.childNodes[xe]);/^(pre|p)$/i.test(U.nodeName)&&(x=!0),ke&&(m=!0)}else U.nodeType==3&&D(U.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;j(i),i!=a;)i=i.nextSibling,x=!1;return g}function Ua(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return ts(n.clipPos(J(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 S_(g,i,a)}}function S_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!te(l,i))return ts(J(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 ts(J(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 x=n.measure,S=x.maps;function $(ge,we,ke){for(var xe=-1;xe<(S?S.length:0);xe++)for(var Ee=xe<0?x.map:S[xe],Fe=0;Fe<Ee.length;Fe+=3){var Re=Ee[Fe+2];if(Re==ge||Re==we){var Je=T(xe<0?n.line:n.rest[xe]),wt=Ee[Fe]+ke;return(ke<0||Re!=ge)&&(wt=Ee[Fe+(ke?1:0)]),J(Je,wt)}}}var D=$(m,w,a);if(D)return ts(D,u);for(var j=w.nextSibling,U=m?m.nodeValue.length-a:0;j;j=j.nextSibling){if(D=$(j,j.firstChild,0),D)return ts(J(D.line,D.ch-U),u);U+=j.textContent.length}for(var ee=w.previousSibling,fe=a;ee;ee=ee.previousSibling){if(D=$(ee,ee.firstChild,-1),D)return ts(J(D.line,D.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),E&&(u.style.width="0px"),Ie(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ie(u,"paste",function(m){Lt(l,m)||Qg(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(m){if(!Lt(l,m)){if(l.somethingSelected())Wa({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=tv(l);Wa({lineWise:!0,text:w.text}),m.type=="cut"?l.setSelections(w.ranges,null,F):(a.prevInput="",u.value=w.text.join(`
|
|
44
|
+
`),Ue(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ie(u,"cut",g),Ie(u,"copy",g),Ie(n.scroller,"paste",function(m){if(!(Br(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)}}),Ie(n.lineSpace,"selectstart",function(m){Br(n,m)||tn(m)}),Ie(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"})}}),Ie(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Nt.prototype.createField=function(n){this.wrapper=nv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Ef(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=Gp(n);if(n.options.moveInputWithCursor){var u=ur(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&&Ue(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"&&(!M||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||di(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||z&&/[\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 En(i,function(){Cf(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=oo(a,n),m=l.scroller.scrollTop;if(!g||L)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Wt(a,nn)(a.doc,mi(g),F);var x=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 D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=U,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function j(){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=x,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&j();var fe=0,ge=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Wt(a,Sg)(a):fe++<10?l.detectingSelectAll=setTimeout(ge,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ge,200)}}if(h&&p>=9&&j(),G){ui(n);var ee=function(){en(window,"mouseup",ee),setTimeout(U,20)};Ie(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 k_(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&&(Ie(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(x){x.save=l,x.getTextArea=function(){return n},x.toTextArea=function(){x.toTextArea=isNaN,l(),n.parentNode.removeChild(x.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(x){return n.parentNode.insertBefore(x,n.nextSibling)},i);return w}function T_(n){n.off=en,n.on=Ie,n.wheelEventPixels=$x,n.Doc=vn,n.splitLines=Vn,n.countColumn=de,n.findColumn=se,n.isWordChar=Be,n.Pass=P,n.signal=Et,n.Line=Fo,n.changeEnd=yi,n.scrollbarModel=Qp,n.Pos=J,n.cmpPos=_e,n.modes=Oo,n.mimeModes=lr,n.resolveMode=Po,n.getMode=Ro,n.modeExtensions=hi,n.extendMode=Do,n.copyState=Sr,n.startState=zo,n.innerMode=Os,n.commands=rl,n.keyMap=Ur,n.keyName=Fg,n.isModifierKey=zg,n.lookupKey=Jo,n.normalizeKeyMap=e_,n.StringStream=At,n.SharedTextMarker=el,n.TextMarker=wi,n.LineWidget=Qs,n.e_preventDefault=tn,n.e_stopPropagation=No,n.e_stop=ui,n.addClass=Me,n.contains=te,n.rmClass=Q,n.keyNames=xi}v_(kt),w_(kt);var C_="iter insert remove copy getEditor constructor".split(" ");for(var Va in vn.prototype)vn.prototype.hasOwnProperty(Va)&&Ce(C_,Va)<0&&(kt.prototype[Va]=function(n){return function(){return n.apply(this.doc,arguments)}}(vn.prototype[Va]));return ir(vn),kt.inputStyles={textarea:Nt,contenteditable:vt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),ar.apply(this,arguments)},kt.defineMIME=no,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){vn.prototype[n]=i},kt.fromTextArea=k_,T_(kt),kt.version="5.65.16",kt})})(zw);var Ms=zw.exports;const que=Mb(Ms);var Bue={exports:{}};(function(e,t){(function(r){r(Ms)})(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(qt){return{type:qt,style:"keyword"}}var R=T("keyword a"),ie=T("keyword b"),pe=T("keyword c"),J=T("keyword d"),_e=T("operator"),ut={type:"atom",style:"atom"};return{if:T("if"),while:R,with:R,else:ie,do:ie,try:ie,finally:ie,return:J,break:J,continue:J,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}}(),_=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function C(T){for(var R=!1,ie,pe=!1;(ie=T.next())!=null;){if(!R){if(ie=="/"&&!pe)return;ie=="["?pe=!0:pe&&ie=="]"&&(pe=!1)}R=!R&&ie=="\\"}}var N,A;function E(T,R,ie){return N=T,A=ie,R}function O(T,R){var ie=T.next();if(ie=='"'||ie=="'")return R.tokenize=M(ie),R.tokenize(T,R);if(ie=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(ie=="."&&T.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ie))return E(ie);if(ie=="="&&T.eat(">"))return E("=>","operator");if(ie=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(ie))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(ie=="/")return T.eat("*")?(R.tokenize=z,z(T,R)):T.eat("/")?(T.skipToEnd(),E("comment","comment")):zn(T,R,1)?(C(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(T.eat("="),E("operator","operator",T.current()));if(ie=="`")return R.tokenize=B,B(T,R);if(ie=="#"&&T.peek()=="!")return T.skipToEnd(),E("meta","meta");if(ie=="#"&&T.eatWhile(y))return E("variable","property");if(ie=="<"&&T.match("!--")||ie=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),E("comment","comment");if(_.test(ie))return(ie!=">"||!R.lexical||R.lexical.type!=">")&&(T.eat("=")?(ie=="!"||ie=="=")&&T.eat("="):/[<>*+\-|&?]/.test(ie)&&(T.eat(ie),ie==">"&&T.eat(ie))),ie=="?"&&T.eat(".")?E("."):E("operator","operator",T.current());if(y.test(ie)){T.eatWhile(y);var pe=T.current();if(R.lastType!="."){if(b.propertyIsEnumerable(pe)){var J=b[pe];return E(J.type,J.style,pe)}if(pe=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",pe)}return E("variable","variable",pe)}}function M(T){return function(R,ie){var pe=!1,J;if(d&&R.peek()=="@"&&R.match(L))return ie.tokenize=O,E("jsonld-keyword","meta");for(;(J=R.next())!=null&&!(J==T&&!pe);)pe=!pe&&J=="\\";return pe||(ie.tokenize=O),E("string","string")}}function z(T,R){for(var ie=!1,pe;pe=T.next();){if(pe=="/"&&ie){R.tokenize=O;break}ie=pe=="*"}return E("comment","comment")}function B(T,R){for(var ie=!1,pe;(pe=T.next())!=null;){if(!ie&&(pe=="`"||pe=="$"&&T.eat("{"))){R.tokenize=O;break}ie=!ie&&pe=="\\"}return E("quasi","string-2",T.current())}var ne="([{}])";function re(T,R){R.fatArrowAt&&(R.fatArrowAt=null);var ie=T.string.indexOf("=>",T.start);if(!(ie<0)){if(v){var pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,ie));pe&&(ie=pe.index)}for(var J=0,_e=!1,ut=ie-1;ut>=0;--ut){var qt=T.string.charAt(ut),pn=ne.indexOf(qt);if(pn>=0&&pn<3){if(!J){++ut;break}if(--J==0){qt=="("&&(_e=!0);break}}else if(pn>=3&&pn<6)++J;else if(y.test(qt))_e=!0;else if(/["'\/`]/.test(qt))for(;;--ut){if(ut==0)return;var Io=T.string.charAt(ut-1);if(Io==qt&&T.string.charAt(ut-2)!="\\"){ut--;break}}else if(_e&&!J){++ut;break}}_e&&!J&&(R.fatArrowAt=ut)}}var oe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(T,R,ie,pe,J,_e){this.indented=T,this.column=R,this.type=ie,this.prev=J,this.info=_e,pe!=null&&(this.align=pe)}function X(T,R){if(!p)return!1;for(var ie=T.localVars;ie;ie=ie.next)if(ie.name==R)return!0;for(var pe=T.context;pe;pe=pe.prev)for(var ie=pe.vars;ie;ie=ie.next)if(ie.name==R)return!0}function Q(T,R,ie,pe,J){var _e=T.cc;for(V.state=T,V.stream=J,V.marked=null,V.cc=_e,V.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ut=_e.length?_e.pop():h?Ce:de;if(ut(ie,pe)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return V.marked?V.marked:ie=="variable"&&X(T,pe)?"variable-2":R}}}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 H(T,R){for(var ie=R;ie;ie=ie.next)if(ie.name==T)return!0;return!1}function W(T){var R=V.state;if(V.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var ie=te(T,R.context);if(ie!=null){R.context=ie;return}}else if(!H(T,R.localVars)){R.localVars=new qe(T,R.localVars);return}}s.globalVars&&!H(T,R.globalVars)&&(R.globalVars=new qe(T,R.globalVars))}}function te(T,R){if(R)if(R.block){var ie=te(T,R.prev);return ie?ie==R.prev?R:new Me(ie,R.vars,!0):null}else return H(T,R.vars)?R:new Me(R.prev,new qe(T,R.vars),!1);else return null}function me(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Me(T,R,ie){this.prev=T,this.vars=R,this.block=ie}function qe(T,R){this.name=T,this.next=R}var Ue=new qe("this",new qe("arguments",null));function it(){V.state.context=new Me(V.state.context,V.state.localVars,!1),V.state.localVars=Ue}function rt(){V.state.context=new Me(V.state.context,V.state.localVars,!0),V.state.localVars=null}it.lex=rt.lex=!0;function Ze(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}Ze.lex=!0;function Te(T,R){var ie=function(){var pe=V.state,J=pe.indented;if(pe.lexical.type=="stat")J=pe.lexical.indented;else for(var _e=pe.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)J=_e.indented;pe.lexical=new G(J,V.stream.column(),T,null,pe.lexical,R)};return ie.lex=!0,ie}function K(){var T=V.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}K.lex=!0;function ae(T){function R(ie){return ie==T?k():T==";"||ie=="}"||ie==")"||ie=="]"?I():k(R)}return R}function de(T,R){return T=="var"?k(Te("vardef",R),No,ae(";"),K):T=="keyword a"?k(Te("form"),P,de,K):T=="keyword b"?k(Te("form"),de,K):T=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Te("stat"),Z,ae(";"),K):T=="debugger"?k(ae(";")):T=="{"?k(Te("}"),rt,Jt,K,Ze):T==";"?k():T=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==K&&V.state.cc.pop()(),k(Te("form"),P,de,K,$o)):T=="function"?k(Vn):T=="for"?k(Te("form"),rt,pa,de,Ze,K):T=="class"||v&&R=="interface"?(V.marked="keyword",k(Te("form",T=="class"?T:R),Oo,K)):T=="variable"?v&&R=="declare"?(V.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",R=="enum"?k(Oe):R=="type"?k(ga,ae("operator"),We,ae(";")):k(Te("form"),hn,ae("{"),Te("}"),Jt,K,K)):v&&R=="namespace"?(V.marked="keyword",k(Te("form"),Ce,de,K)):v&&R=="abstract"?(V.marked="keyword",k(de)):k(Te("stat"),De):T=="switch"?k(Te("form"),P,ae("{"),Te("}","switch"),rt,Jt,K,K,Ze):T=="case"?k(Ce,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Te("form"),it,Ne,de,K,Ze):T=="export"?k(Te("stat"),Po,K):T=="import"?k(Te("stat"),hi,K):T=="async"?k(de):R=="@"?k(Ce,de):I(Te("stat"),Ce,ae(";"),K)}function Ne(T){if(T=="(")return k(sr,ae(")"))}function Ce(T,R){return F(T,R,!1)}function Ye(T,R){return F(T,R,!0)}function P(T){return T!="("?I():k(Te(")"),Z,ae(")"),K)}function F(T,R,ie){if(V.state.fatArrowAt==V.stream.start){var pe=ie?ye:ue;if(T=="(")return k(it,Te(")"),nt(sr,")"),K,ae("=>"),pe,Ze);if(T=="variable")return I(it,hn,ae("=>"),pe,Ze)}var J=ie?se:ce;return oe.hasOwnProperty(T)?k(J):T=="function"?k(Vn,J):T=="class"||v&&R=="interface"?(V.marked="keyword",k(Te("form"),Du,K)):T=="keyword c"||T=="async"?k(ie?Ye:Ce):T=="("?k(Te(")"),Z,ae(")"),K,J):T=="operator"||T=="spread"?k(ie?Ye:Ce):T=="["?k(Te("]"),At,K,J):T=="{"?Ft(Ve,"}",null,J):T=="quasi"?I(ve,J):T=="new"?k(he(ie)):k()}function Z(T){return T.match(/[;\}\)\],]/)?I():I(Ce)}function ce(T,R){return T==","?k(Z):se(T,R,!1)}function se(T,R,ie){var pe=ie==!1?ce:se,J=ie==!1?Ce:Ye;if(T=="=>")return k(it,ie?ye:ue,Ze);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(pe):v&&R=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Te(">"),nt(We,">"),K,pe):R=="?"?k(Ce,ae(":"),J):k(J);if(T=="quasi")return I(ve,pe);if(T!=";"){if(T=="(")return Ft(Ye,")","call",pe);if(T==".")return k(Be,pe);if(T=="[")return k(Te("]"),Z,ae("]"),K,pe);if(v&&R=="as")return V.marked="keyword",k(We,pe);if(T=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(J)}}function ve(T,R){return T!="quasi"?I():R.slice(R.length-2)!="${"?k(ve):k(Z,Se)}function Se(T){if(T=="}")return V.marked="string-2",V.state.tokenize=B,k(ve)}function ue(T){return re(V.stream,V.state),I(T=="{"?de:Ce)}function ye(T){return re(V.stream,V.state),I(T=="{"?de:Ye)}function he(T){return function(R){return R=="."?k(T?He:Ae):R=="variable"&&v?k(Cn,T?se:ce):I(T?Ye:Ce)}}function Ae(T,R){if(R=="target")return V.marked="keyword",k(ce)}function He(T,R){if(R=="target")return V.marked="keyword",k(se)}function De(T){return T==":"?k(K,de):I(ce,ae(";"),K)}function Be(T){if(T=="variable")return V.marked="property",k()}function Ve(T,R){if(T=="async")return V.marked="property",k(Ve);if(T=="variable"||V.style=="keyword"){if(V.marked="property",R=="get"||R=="set")return k(gt);var ie;return v&&V.state.fatArrowAt==V.stream.start&&(ie=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+ie[0].length),k(tt)}else{if(T=="number"||T=="string")return V.marked=d?"property":V.style+" property",k(tt);if(T=="jsonld-keyword")return k(tt);if(v&&me(R))return V.marked="keyword",k(Ve);if(T=="[")return k(Ce,nr,ae("]"),tt);if(T=="spread")return k(Ye,tt);if(R=="*")return V.marked="keyword",k(Ve);if(T==":")return I(tt)}}function gt(T){return T!="variable"?I(tt):(V.marked="property",k(Vn))}function tt(T){if(T==":")return k(Ye);if(T=="(")return I(Vn)}function nt(T,R,ie){function pe(J,_e){if(ie?ie.indexOf(J)>-1:J==","){var ut=V.state.lexical;return ut.info=="call"&&(ut.pos=(ut.pos||0)+1),k(function(qt,pn){return qt==R||pn==R?I():I(T)},pe)}return J==R||_e==R?k():ie&&ie.indexOf(";")>-1?I(T):k(ae(R))}return function(J,_e){return J==R||_e==R?k():I(T,pe)}}function Ft(T,R,ie){for(var pe=3;pe<arguments.length;pe++)V.cc.push(arguments[pe]);return k(Te(R,ie),nt(T,R),K)}function Jt(T){return T=="}"?k():I(de,Jt)}function nr(T,R){if(v){if(T==":")return k(We);if(R=="?")return k(nr)}}function Dn(T,R){if(v&&(T==":"||R=="in"))return k(We)}function rr(T){if(v&&T==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ce,Qt,We):k(We)}function Qt(T,R){if(R=="is")return V.marked="keyword",k()}function We(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return V.marked="keyword",k(R=="typeof"?Ye:We);if(T=="variable"||R=="void")return V.marked="type",k(Un);if(R=="|"||R=="&")return k(We);if(T=="string"||T=="number"||T=="atom")return k(Un);if(T=="[")return k(Te("]"),nt(We,"]",","),K,Un);if(T=="{")return k(Te("}"),Ie,K,Un);if(T=="(")return k(nt(Lt,")"),to,Un);if(T=="<")return k(nt(We,">"),We);if(T=="quasi")return I(en,Un)}function to(T){if(T=="=>")return k(We)}function Ie(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(Ie):I(Ir,Ie)}function Ir(T,R){if(T=="variable"||V.style=="keyword")return V.marked="property",k(Ir);if(R=="?"||T=="number"||T=="string")return k(Ir);if(T==":")return k(We);if(T=="[")return k(ae("variable"),Dn,ae("]"),Ir);if(T=="(")return I(di,Ir);if(!T.match(/[;\}\)\],]/))return k()}function en(T,R){return T!="quasi"?I():R.slice(R.length-2)!="${"?k(en):k(We,Et)}function Et(T){if(T=="}")return V.marked="string-2",V.state.tokenize=B,k(en)}function Lt(T,R){return T=="variable"&&V.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):T==":"?k(We):T=="spread"?k(Lt):I(We)}function Un(T,R){if(R=="<")return k(Te(">"),nt(We,">"),K,Un);if(R=="|"||T=="."||R=="&")return k(We);if(T=="[")return k(We,ae("]"),Un);if(R=="extends"||R=="implements")return V.marked="keyword",k(We);if(R=="?")return k(We,ae(":"),We)}function Cn(T,R){if(R=="<")return k(Te(">"),nt(We,">"),K,Un)}function ir(){return I(We,tn)}function tn(T,R){if(R=="=")return k(We)}function No(T,R){return R=="enum"?(V.marked="keyword",k(Oe)):I(hn,nr,or,Ru)}function hn(T,R){if(v&&me(R))return V.marked="keyword",k(hn);if(T=="variable")return W(R),k();if(T=="spread")return k(hn);if(T=="[")return Ft(Ns,"]");if(T=="{")return Ft(ui,"}")}function ui(T,R){return T=="variable"&&!V.stream.match(/^\s*:/,!1)?(W(R),k(or)):(T=="variable"&&(V.marked="property"),T=="spread"?k(hn):T=="}"?I():T=="["?k(Ce,ae("]"),ae(":"),ui):k(ae(":"),hn,or))}function Ns(){return I(hn,or)}function or(T,R){if(R=="=")return k(Ye)}function Ru(T){if(T==",")return k(No)}function $o(T,R){if(T=="keyword b"&&R=="else")return k(Te("form","else"),de,K)}function pa(T,R){if(R=="await")return k(pa);if(T=="(")return k(Te(")"),$s,K)}function $s(T){return T=="var"?k(No,fi):T=="variable"?k(fi):I(fi)}function fi(T,R){return T==")"?k():T==";"?k(fi):R=="in"||R=="of"?(V.marked="keyword",k(Ce,fi)):I(Ce,fi)}function Vn(T,R){if(R=="*")return V.marked="keyword",k(Vn);if(T=="variable")return W(R),k(Vn);if(T=="(")return k(it,Te(")"),nt(sr,")"),K,rr,de,Ze);if(v&&R=="<")return k(Te(">"),nt(ir,">"),K,Vn)}function di(T,R){if(R=="*")return V.marked="keyword",k(di);if(T=="variable")return W(R),k(di);if(T=="(")return k(it,Te(")"),nt(sr,")"),K,rr,Ze);if(v&&R=="<")return k(Te(">"),nt(ir,">"),K,di)}function ga(T,R){if(T=="keyword"||T=="variable")return V.marked="type",k(ga);if(R=="<")return k(Te(">"),nt(ir,">"),K)}function sr(T,R){return R=="@"&&k(Ce,sr),T=="spread"?k(sr):v&&me(R)?(V.marked="keyword",k(sr)):v&&T=="this"?k(nr,or):I(hn,nr,or)}function Du(T,R){return T=="variable"?Oo(T,R):lr(T,R)}function Oo(T,R){if(T=="variable")return W(R),k(lr)}function lr(T,R){if(R=="<")return k(Te(">"),nt(ir,">"),K,lr);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(V.marked="keyword"),k(v?We:Ce,lr);if(T=="{")return k(Te("}"),ar,K)}function ar(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&me(R))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(ar);if(T=="variable"||V.style=="keyword")return V.marked="property",k(no,ar);if(T=="number"||T=="string")return k(no,ar);if(T=="[")return k(Ce,nr,ae("]"),no,ar);if(R=="*")return V.marked="keyword",k(ar);if(v&&T=="(")return I(di,ar);if(T==";"||T==",")return k(ar);if(T=="}")return k();if(R=="@")return k(Ce,ar)}function no(T,R){if(R=="!"||R=="?")return k(no);if(T==":")return k(We,or);if(R=="=")return k(Ye);var ie=V.state.lexical.prev,pe=ie&&ie.info=="interface";return I(pe?di:Vn)}function Po(T,R){return R=="*"?(V.marked="keyword",k(zo,ae(";"))):R=="default"?(V.marked="keyword",k(Ce,ae(";"))):T=="{"?k(nt(Ro,"}"),zo,ae(";")):I(de)}function Ro(T,R){if(R=="as")return V.marked="keyword",k(ae("variable"));if(T=="variable")return I(Ye,Ro)}function hi(T){return T=="string"?k():T=="("?I(Ce):T=="."?I(ce):I(Do,Sr,zo)}function Do(T,R){return T=="{"?Ft(Do,"}"):(T=="variable"&&W(R),R=="*"&&(V.marked="keyword"),k(Os))}function Sr(T){if(T==",")return k(Do,Sr)}function Os(T,R){if(R=="as")return V.marked="keyword",k(Do)}function zo(T,R){if(R=="from")return V.marked="keyword",k(Ce)}function At(T){return T=="]"?k():I(nt(Ye,"]"))}function Oe(){return I(Te("form"),hn,ae("{"),Te("}"),nt(Fr,"}"),K,K)}function Fr(){return I(hn,or)}function Ps(T,R){return T.lastType=="operator"||T.lastType==","||_.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function zn(T,R,ie){return R.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(ie||0)))}return{startState:function(T){var R={tokenize:O,lastType:"sof",cc:[],lexical:new G((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"&&(R.globalVars=s.globalVars),R},token:function(T,R){if(T.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=T.indentation(),re(T,R)),R.tokenize!=z&&T.eatSpace())return null;var ie=R.tokenize(T,R);return N=="comment"?ie:(R.lastType=N=="operator"&&(A=="++"||A=="--")?"incdec":N,Q(R,ie,N,A,T))},indent:function(T,R){if(T.tokenize==z||T.tokenize==B)return r.Pass;if(T.tokenize!=O)return 0;var ie=R&&R.charAt(0),pe=T.lexical,J;if(!/^\s*else\b/.test(R))for(var _e=T.cc.length-1;_e>=0;--_e){var ut=T.cc[_e];if(ut==K)pe=pe.prev;else if(ut!=$o&&ut!=Ze)break}for(;(pe.type=="stat"||pe.type=="form")&&(ie=="}"||(J=T.cc[T.cc.length-1])&&(J==ce||J==se)&&!/^[,\.=+\-*:?[\(]/.test(R));)pe=pe.prev;f&&pe.type==")"&&pe.prev.type=="stat"&&(pe=pe.prev);var qt=pe.type,pn=ie==qt;return qt=="vardef"?pe.indented+(T.lastType=="operator"||T.lastType==","?pe.info.length+1:0):qt=="form"&&ie=="{"?pe.indented:qt=="form"?pe.indented+c:qt=="stat"?pe.indented+(Ps(T,R)?f||c:0):pe.info=="switch"&&!pn&&s.doubleIndentSwitch!=!1?pe.indented+(/^(?:case|default)\b/.test(R)?c:2*c):pe.align?pe.column+(pn?0:1):pe.indented+(pn?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:zn,skipExpression:function(T){Q(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 Wue=Bue.exports,Uue={exports:{}};(function(e,t){(function(r){r(Ms)})(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 _(k,H){function W(Me){return H.tokenize=Me,Me(k,H)}var te=k.next();if(te=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(N("atom","]]>")):null:k.match("--")?W(N("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(A(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=N("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",H.tokenize=L,"tag bracket");if(te=="&"){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}_.isInText=!0;function L(k,H){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return H.tokenize=_,y=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return y="equals",null;if(W=="<"){H.tokenize=_,H.state=B,H.tagName=H.tagStart=null;var te=H.tokenize(k,H);return te?te+" tag error":"tag error"}else return/[\'\"]/.test(W)?(H.tokenize=C(W),H.stringStartCol=k.column(),H.tokenize(k,H)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function C(k){var H=function(W,te){for(;!W.eol();)if(W.next()==k){te.tokenize=L;break}return"string"};return H.isInAttribute=!0,H}function N(k,H){return function(W,te){for(;!W.eol();){if(W.match(H)){te.tokenize=_;break}W.next()}return k}}function A(k){return function(H,W){for(var te;(te=H.next())!=null;){if(te=="<")return W.tokenize=A(k+1),W.tokenize(H,W);if(te==">")if(k==1){W.tokenize=_;break}else return W.tokenize=A(k-1),W.tokenize(H,W)}return"meta"}}function E(k){return k&&k.toLowerCase()}function O(k,H,W){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=W,(h.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function M(k){k.context&&(k.context=k.context.prev)}function z(k,H){for(var W;;){if(!k.context||(W=k.context.tagName,!h.contextGrabbers.hasOwnProperty(E(W))||!h.contextGrabbers[E(W)].hasOwnProperty(E(H))))return;M(k)}}function B(k,H,W){return k=="openTag"?(W.tagStart=H.column(),ne):k=="closeTag"?re:B}function ne(k,H,W){return k=="word"?(W.tagName=H.current(),b="tag",X):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",X(k,H,W)):(b="error",ne)}function re(k,H,W){if(k=="word"){var te=H.current();return W.context&&W.context.tagName!=te&&h.implicitlyClosed.hasOwnProperty(E(W.context.tagName))&&M(W),W.context&&W.context.tagName==te||h.matchClosing===!1?(b="tag",oe):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",oe(k,H,W)):(b="error",G)}function oe(k,H,W){return k!="endTag"?(b="error",oe):(M(W),B)}function G(k,H,W){return b="error",oe(k,H,W)}function X(k,H,W){if(k=="word")return b="attribute",Q;if(k=="endTag"||k=="selfcloseTag"){var te=W.tagName,me=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(E(te))?z(W,te):(z(W,te),W.context=new O(W,te,me==W.indented)),B}return b="error",X}function Q(k,H,W){return k=="equals"?V:(h.allowMissing||(b="error"),X(k,H,W))}function V(k,H,W){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",X):(b="error",X(k,H,W))}function I(k,H,W){return k=="string"?I:X(k,H,W)}return{startState:function(k){var H={tokenize:_,state:B,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(H.baseIndent=k),H},token:function(k,H){if(!H.tagName&&k.sol()&&(H.indented=k.indentation()),k.eatSpace())return null;y=null;var W=H.tokenize(k,H);return(W||y)&&W!="comment"&&(b=null,H.state=H.state(y||W,k,H),b&&(W=b=="error"?W+" error":b)),W},indent:function(k,H,W){var te=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(te&&te.noIndent)return r.Pass;if(k.tokenize!=L&&k.tokenize!=_)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(H))return 0;var me=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(me&&me[1])for(;te;)if(te.tagName==me[2]){te=te.prev;break}else if(h.implicitlyClosed.hasOwnProperty(E(te.tagName)))te=te.prev;else break;else if(me)for(;te;){var Me=h.contextGrabbers[E(te.tagName)];if(Me&&Me.hasOwnProperty(E(me[2])))te=te.prev;else break}for(;te&&te.prev&&!te.startOfLine;)te=te.prev;return te?te.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=X)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],W=k.context;W;W=W.prev)H.push(W.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Vue=Uue.exports;(function(e,t){(function(r){r(Ms,Vue,Wue)})(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(_){var L=_.tagName;_.tagName=null;var C=d.indent(_,"","");return _.tagName=L,C}function v(_,L){return L.context.mode==d?y(_,L,L.context):b(_,L,L.context)}function y(_,L,C){if(C.depth==2)return _.match(/^.*?\*\//)?C.depth=1:_.skipToEnd(),"comment";if(_.peek()=="{"){d.skipAttribute(C.state);var N=p(C.state),A=C.state.context;if(A&&_.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?N-=c.indentUnit:C.prev.state.lexical&&(N=C.prev.state.lexical.indented)}else C.depth==1&&(N+=c.indentUnit);return L.context=new o(r.startState(h,N),h,0,L.context),null}if(C.depth==1){if(_.peek()=="<")return d.skipAttribute(C.state),L.context=new o(r.startState(d,p(C.state)),d,0,L.context),null;if(_.match("//"))return _.skipToEnd(),"comment";if(_.match("/*"))return C.depth=2,v(_,L)}var E=d.token(_,C.state),O=_.current(),M;return/\btag\b/.test(E)?/>$/.test(O)?C.state.context?C.depth=0:L.context=L.context.prev:/^</.test(O)&&(C.depth=1):!E&&(M=O.indexOf("{"))>-1&&_.backUp(O.length-M),E}function b(_,L,C){if(_.peek()=="<"&&!_.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(_,C.state))return L.context=new o(r.startState(d,h.indent(C.state,"","")),d,0,L.context),h.skipExpression(C.state),null;var N=h.token(_,C.state);if(!N&&C.depth!=null){var A=_.current();A=="{"?C.depth++:A=="}"&&--C.depth==0&&(L.context=L.context.prev)}return N}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(_){return{context:s(_.context)}},token:v,indent:function(_,L,C){return _.context.mode.indent(_.context.state,L,C)},innerMode:function(_){return _.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(Ms)})(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 _=p.getWrapperElement();_.className=_.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(Ms)})(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",_=y[b],L=p.pos;function C(){r.off(document,"mousemove",N),r.off(document,"mouseup",C)}function N(A){if(A.which!=1)return C();p.moveTo(L+(A[b]-_)*(p.total/p.size))}r.on(document,"mousemove",N),r.on(document,"mouseup",C)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),_;p.orientation=="horizontal"?_=y.clientX<b.left?-1:y.clientX>b.right?1:0:_=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+_*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],_=p.pos;p.moveTo(p.pos+b),p.pos!=_&&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)}})})();function jue(e,t,r={}){const o=que.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Gt(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}),lh(o)}const Gue={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Iw=pt({__name:"CodeMirror",props:Pc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Pc(["save"],["update:modelValue"]),setup(e,{expose:t,emit:r}){const o=r,s=kh(e,"modelValue"),c=GS(),f={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},d=Ke(),h=Dr();return t({cm:h}),Ls(async()=>{h.value=jue(d,s,{...c,mode:f[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(p){o("save",p.getValue())},"Ctrl-S":function(p){o("save",p.getValue())}}}),h.value.setSize("100%","100%"),h.value.clearHistory(),setTimeout(()=>h.value.refresh(),100)}),(p,v)=>(le(),be("div",Gue,[Y("textarea",{ref_key:"el",ref:d},null,512)]))}}),Kue=pt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ke(""),c=Dr(void 0),f=Ke(!1);Gt(()=>r.file,async()=>{var O;if(!r.file||!((O=r.file)!=null&&O.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await bt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1},{immediate:!0});const d=$e(()=>{var O,M;return((M=(O=r.file)==null?void 0:O.filepath)==null?void 0:M.split(/\./g).pop())||"js"}),h=Ke(),p=$e(()=>{var O;return(O=h.value)==null?void 0:O.cm}),v=$e(()=>{var O;return((O=r.file)==null?void 0:O.tasks.filter(M=>{var z;return((z=M.result)==null?void 0:z.state)==="fail"}))||[]}),y=[],b=[],_=[],L=Ke(!1);function C(){_.forEach(([O,M,z])=>{O.removeEventListener("click",M),z()}),_.length=0}gw(h,()=>{var O;(O=p.value)==null||O.refresh()});function N(){f.value=c.value!==p.value.getValue()}Gt(f,O=>{o("draft",O)},{immediate:!0});function A(O){const M=((O==null?void 0:O.stacks)||[]).filter(G=>{var X;return G.file&&G.file===((X=r.file)==null?void 0:X.filepath)}),z=M==null?void 0:M[0];if(!z)return;const B=document.createElement("div");B.className="op80 flex gap-x-2 items-center";const ne=document.createElement("pre");ne.className="c-red-600 dark:c-red-400",ne.textContent=`${" ".repeat(z.column)}^ ${(O==null?void 0:O.nameStr)||O.name}: ${(O==null?void 0:O.message)||""}`,B.appendChild(ne);const re=document.createElement("span");re.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",re.tabIndex=0,re.ariaLabel="Open in Editor",wb(re,{content:"Open in Editor",placement:"bottom"},!1);const oe=async()=>{await nw(z.file,z.line,z.column)};B.appendChild(re),_.push([re,oe,()=>$h(re)]),b.push(p.value.addLineClass(z.line-1,"wrap","bg-red-500/10")),y.push(p.value.addLineWidget(z.line-1,B))}Gt([p,v],([O])=>{if(!O){C();return}setTimeout(()=>{C(),y.forEach(M=>M.clear()),b.forEach(M=>{var z;return(z=p.value)==null?void 0:z.removeLineClass(M,"wrap")}),y.length=0,b.length=0,O.on("changes",N),v.value.forEach(M=>{var z,B;(B=(z=M.result)==null?void 0:z.errors)==null||B.forEach(A)}),L.value||O.clearHistory()},100)},{flush:"post"});async function E(O){L.value=!0,await bt.rpc.saveTestFile(r.file.filepath,O),c.value=O,f.value=!1}return(O,M)=>{const z=Iw;return le(),ot(z,ti({ref_key:"editor",ref:h,modelValue:q(s),"onUpdate:modelValue":M[0]||(M[0]=B=>It(s)?s.value=B:null),"h-full":""},{lineNumbers:!0},{mode:q(d),"data-testid":"code-mirror",onSave:E}),null,16,["modelValue","mode"])}}}),Xue=pt({__name:"Modal",props:Pc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=kh(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",[q(r)]]),style:Zt(t.value?{}:{transform:q(o)})},[dn(c.$slots,"default")],6)],2))}}),Yue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Zue={"p-4":"",relative:""},Jue=Y("p",null,"Module Info",-1),Que={op50:"","font-mono":"","text-sm":""},efe={key:0,"p-5":""},tfe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},nfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),rfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),ife={key:0},ofe={p:"x3 y-1","bg-overlay":"",border:"base b t"},sfe=pt({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=Yae(()=>bt.rpc.getTransformResult(r.projectName,r.id,!!Xl)),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 Jae("Escape",()=>{o("close")}),(p,v)=>{const y=As,b=Iw;return le(),be("div",Yue,[Y("div",Zue,[Jue,Y("p",Que,Ge(p.id),1),Pe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=_=>o("close"))})]),q(s)?(le(),be(dt,{key:1},[Y("div",tfe,[nfe,rfe,Pe(b,ti({"h-full":"","model-value":q(f),"read-only":""},{lineNumbers:!0},{mode:q(c)}),null,16,["model-value","mode"]),Pe(b,ti({"h-full":"","model-value":q(d),"read-only":""},{lineNumbers:!0},{mode:q(c)}),null,16,["model-value","mode"])]),q(h).mappings!==""?(le(),be("div",ife,[Y("div",ofe," Source map (v"+Ge(q(h).version)+") ",1),Pe(b,ti({"model-value":q(h).mappings,"read-only":""},{lineNumbers:!0},{mode:q(c)}),null,16,["model-value","mode"])])):et("",!0)],64)):(le(),be("div",efe," No transform result found for this module. "))])}}});function lfe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Rd="http://www.w3.org/1999/xhtml";const n0={svg:"http://www.w3.org/2000/svg",xhtml:Rd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),n0.hasOwnProperty(t)?{space:n0[t],local:e}:e}function afe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Rd&&t.documentElement.namespaceURI===Rd?t.createElement(e):t.createElementNS(r,e)}}function cfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fw(e){var t=Nu(e);return(t.local?cfe:afe)(t)}function ufe(){}function Gh(e){return e==null?ufe:function(){return this.querySelector(e)}}function ffe(e){typeof e!="function"&&(e=Gh(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 Wn(o,this._parents)}function dfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function hfe(){return[]}function Hw(e){return e==null?hfe:function(){return this.querySelectorAll(e)}}function pfe(e){return function(){return dfe(e.apply(this,arguments))}}function gfe(e){typeof e=="function"?e=pfe(e):e=Hw(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 Wn(o,s)}function qw(e){return function(){return this.matches(e)}}function Bw(e){return function(t){return t.matches(e)}}var vfe=Array.prototype.find;function mfe(e){return function(){return vfe.call(this.children,e)}}function yfe(){return this.firstElementChild}function bfe(e){return this.select(e==null?yfe:mfe(typeof e=="function"?e:Bw(e)))}var wfe=Array.prototype.filter;function xfe(){return Array.from(this.children)}function _fe(e){return function(){return wfe.call(this.children,e)}}function Sfe(e){return this.selectAll(e==null?xfe:_fe(typeof e=="function"?e:Bw(e)))}function kfe(e){typeof e!="function"&&(e=qw(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 Wn(o,this._parents)}function Ww(e){return new Array(e.length)}function Tfe(){return new Wn(this._enter||this._groups.map(Ww),this._parents)}function Qc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Qc.prototype={constructor:Qc,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 Cfe(e){return function(){return e}}function Efe(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 Qc(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Lfe(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),_;for(d=0;d<v;++d)(h=t[d])&&(b[d]=_=f.call(h,h.__data__,d,t)+"",p.has(_)?s[d]=h:p.set(_,h));for(d=0;d<y;++d)_=f.call(e,c[d],d,c)+"",(h=p.get(_))?(o[d]=h,h.__data__=c[d],p.delete(_)):r[d]=new Qc(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Afe(e){return e.__data__}function Mfe(e,t){if(!arguments.length)return Array.from(this,Afe);var r=t?Lfe:Efe,o=this._parents,s=this._groups;typeof e!="function"&&(e=Cfe(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,_=Nfe(e.call(v,v&&v.__data__,p,o)),L=_.length,C=d[p]=new Array(L),N=f[p]=new Array(L),A=h[p]=new Array(b);r(v,y,C,N,A,_,t);for(var E=0,O=0,M,z;E<L;++E)if(M=C[E]){for(E>=O&&(O=E+1);!(z=N[O])&&++O<L;);M._next=z||null}}return f=new Wn(f,o),f._enter=d,f._exit=h,f}function Nfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $fe(){return new Wn(this._exit||this._groups.map(Ww),this._parents)}function Ofe(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 Pfe(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),_,L=0;L<y;++L)(_=p[L]||v[L])&&(b[L]=_);for(;h<s;++h)d[h]=r[h];return new Wn(d,this._parents)}function Rfe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Dfe(e){e||(e=zfe);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 Wn(s,this._parents).order()}function zfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ife(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ffe(){return Array.from(this)}function Hfe(){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 qfe(){let e=0;for(const t of this)++e;return e}function Bfe(){return!this.node()}function Wfe(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 Ufe(e){return function(){this.removeAttribute(e)}}function Vfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function jfe(e,t){return function(){this.setAttribute(e,t)}}function Gfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Xfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Yfe(e,t){var r=Nu(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?Vfe:Ufe:typeof t=="function"?r.local?Xfe:Kfe:r.local?Gfe:jfe)(r,t))}function Uw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zfe(e){return function(){this.style.removeProperty(e)}}function Jfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Qfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function ede(e,t,r){return arguments.length>1?this.each((t==null?Zfe:typeof t=="function"?Qfe:Jfe)(e,t,r??"")):Cs(this.node(),e)}function Cs(e,t){return e.style.getPropertyValue(t)||Uw(e).getComputedStyle(e,null).getPropertyValue(t)}function tde(e){return function(){delete this[e]}}function nde(e,t){return function(){this[e]=t}}function rde(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function ide(e,t){return arguments.length>1?this.each((t==null?tde:typeof t=="function"?rde:nde)(e,t)):this.node()[e]}function Vw(e){return e.trim().split(/^|\s+/)}function Kh(e){return e.classList||new jw(e)}function jw(e){this._node=e,this._names=Vw(e.getAttribute("class")||"")}jw.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 Gw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Kw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function ode(e){return function(){Gw(this,e)}}function sde(e){return function(){Kw(this,e)}}function lde(e,t){return function(){(t.apply(this,arguments)?Gw:Kw)(this,e)}}function ade(e,t){var r=Vw(e+"");if(arguments.length<2){for(var o=Kh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?lde:t?ode:sde)(r,t))}function cde(){this.textContent=""}function ude(e){return function(){this.textContent=e}}function fde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function dde(e){return arguments.length?this.each(e==null?cde:(typeof e=="function"?fde:ude)(e)):this.node().textContent}function hde(){this.innerHTML=""}function pde(e){return function(){this.innerHTML=e}}function gde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function vde(e){return arguments.length?this.each(e==null?hde:(typeof e=="function"?gde:pde)(e)):this.node().innerHTML}function mde(){this.nextSibling&&this.parentNode.appendChild(this)}function yde(){return this.each(mde)}function bde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wde(){return this.each(bde)}function xde(e){var t=typeof e=="function"?e:Fw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _de(){return null}function Sde(e,t){var r=typeof e=="function"?e:Fw(e),o=t==null?_de:typeof t=="function"?t:Gh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function kde(){var e=this.parentNode;e&&e.removeChild(this)}function Tde(){return this.each(kde)}function Cde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ede(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lde(e){return this.select(e?Ede:Cde)}function Ade(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Mde(e){return function(t){e.call(this,t,this.__data__)}}function Nde(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 $de(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 Ode(e,t,r){return function(){var o=this.__on,s,c=Mde(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 Pde(e,t,r){var o=Nde(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?Ode:$de,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Xw(e,t,r){var o=Uw(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Rde(e,t){return function(){return Xw(this,e,t)}}function Dde(e,t){return function(){return Xw(this,e,t.apply(this,arguments))}}function zde(e,t){return this.each((typeof t=="function"?Dde:Rde)(e,t))}function*Ide(){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 Yw=[null];function Wn(e,t){this._groups=e,this._parents=t}function fa(){return new Wn([[document.documentElement]],Yw)}function Fde(){return this}Wn.prototype=fa.prototype={constructor:Wn,select:ffe,selectAll:gfe,selectChild:bfe,selectChildren:Sfe,filter:kfe,data:Mfe,enter:Tfe,exit:$fe,join:Ofe,merge:Pfe,selection:Fde,order:Rfe,sort:Dfe,call:Ife,nodes:Ffe,node:Hfe,size:qfe,empty:Bfe,each:Wfe,attr:Yfe,style:ede,property:ide,classed:ade,text:dde,html:vde,raise:yde,lower:wde,append:xde,insert:Sde,remove:Tde,clone:Lde,datum:Ade,on:Pde,dispatch:zde,[Symbol.iterator]:Ide};function $n(e){return typeof e=="string"?new Wn([[document.querySelector(e)]],[document.documentElement]):new Wn([[e]],Yw)}function Hde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Zr(e,t){if(e=Hde(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 xn{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new xn(t,r)}add(t){return new xn(this.x+t.x,this.y+t.y)}subtract(t){return new xn(this.x-t.x,this.y-t.y)}multiply(t){return new xn(this.x*t,this.y*t)}divide(t){return new xn(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 xn(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 xn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new xn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var qde={value:()=>{}};function da(){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 kc(r)}function kc(e){this._=e}function Bde(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}})}kc.prototype=da.prototype={constructor:kc,on:function(e,t){var r=this._,o=Bde(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Wde(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]=r0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=r0(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 kc(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 Wde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function r0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=qde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ude={passive:!1},Yl={capture:!0,passive:!1};function Zf(e){e.stopImmediatePropagation()}function gs(e){e.preventDefault(),e.stopImmediatePropagation()}function Zw(e){var t=e.document.documentElement,r=$n(e).on("dragstart.drag",gs,Yl);"onselectstart"in t?r.on("selectstart.drag",gs,Yl):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Jw(e,t){var r=e.document.documentElement,o=$n(e).on("dragstart.drag",null);t&&(o.on("click.drag",gs,Yl),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 sc=e=>()=>e;function Dd(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}})}Dd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Vde(e){return!e.ctrlKey&&!e.button}function jde(){return this.parentNode}function Gde(e,t){return t??{x:e.x,y:e.y}}function Kde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xde(){var e=Vde,t=jde,r=Gde,o=Kde,s={},c=da("start","drag","end"),f=0,d,h,p,v,y=0;function b(M){M.on("mousedown.drag",_).filter(o).on("touchstart.drag",N).on("touchmove.drag",A,Ude).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(M,z){if(!(v||!e.call(this,M,z))){var B=O(this,t.call(this,M,z),M,z,"mouse");B&&($n(M.view).on("mousemove.drag",L,Yl).on("mouseup.drag",C,Yl),Zw(M.view),Zf(M),p=!1,d=M.clientX,h=M.clientY,B("start",M))}}function L(M){if(gs(M),!p){var z=M.clientX-d,B=M.clientY-h;p=z*z+B*B>y}s.mouse("drag",M)}function C(M){$n(M.view).on("mousemove.drag mouseup.drag",null),Jw(M.view,p),gs(M),s.mouse("end",M)}function N(M,z){if(e.call(this,M,z)){var B=M.changedTouches,ne=t.call(this,M,z),re=B.length,oe,G;for(oe=0;oe<re;++oe)(G=O(this,ne,M,z,B[oe].identifier,B[oe]))&&(Zf(M),G("start",M,B[oe]))}}function A(M){var z=M.changedTouches,B=z.length,ne,re;for(ne=0;ne<B;++ne)(re=s[z[ne].identifier])&&(gs(M),re("drag",M,z[ne]))}function E(M){var z=M.changedTouches,B=z.length,ne,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ne=0;ne<B;++ne)(re=s[z[ne].identifier])&&(Zf(M),re("end",M,z[ne]))}function O(M,z,B,ne,re,oe){var G=c.copy(),X=Zr(oe||B,z),Q,V,I;if((I=r.call(M,new Dd("beforestart",{sourceEvent:B,target:b,identifier:re,active:f,x:X[0],y:X[1],dx:0,dy:0,dispatch:G}),ne))!=null)return Q=I.x-X[0]||0,V=I.y-X[1]||0,function k(H,W,te){var me=X,Me;switch(H){case"start":s[re]=k,Me=f++;break;case"end":delete s[re],--f;case"drag":X=Zr(te||W,z),Me=f;break}G.call(H,M,new Dd(H,{sourceEvent:W,subject:I,target:b,identifier:re,active:Me,x:X[0]+Q,y:X[1]+V,dx:X[0]-me[0],dy:X[1]-me[1],dispatch:G}),ne)}}return b.filter=function(M){return arguments.length?(e=typeof M=="function"?M:sc(!!M),b):e},b.container=function(M){return arguments.length?(t=typeof M=="function"?M:sc(M),b):t},b.subject=function(M){return arguments.length?(r=typeof M=="function"?M:sc(M),b):r},b.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:sc(!!M),b):o},b.on=function(){var M=c.on.apply(c,arguments);return M===c?b:M},b.clickDistance=function(M){return arguments.length?(y=(M=+M)*M,b):Math.sqrt(y)},b}function Xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Qw(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function ha(){}var Zl=.7,eu=1/Zl,vs="\\s*([+-]?\\d+)\\s*",Jl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yde=/^#([0-9a-f]{3,8})$/,Zde=new RegExp(`^rgb\\(${vs},${vs},${vs}\\)$`),Jde=new RegExp(`^rgb\\(${Or},${Or},${Or}\\)$`),Qde=new RegExp(`^rgba\\(${vs},${vs},${vs},${Jl}\\)$`),ehe=new RegExp(`^rgba\\(${Or},${Or},${Or},${Jl}\\)$`),the=new RegExp(`^hsl\\(${Jl},${Or},${Or}\\)$`),nhe=new RegExp(`^hsla\\(${Jl},${Or},${Or},${Jl}\\)$`),i0={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};Xh(ha,Ql,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:o0,formatHex:o0,formatHex8:rhe,formatHsl:ihe,formatRgb:s0,toString:s0});function o0(){return this.rgb().formatHex()}function rhe(){return this.rgb().formatHex8()}function ihe(){return e1(this).formatHsl()}function s0(){return this.rgb().formatRgb()}function Ql(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Yde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?l0(t):r===3?new On(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?lc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?lc(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=Zde.exec(e))?new On(t[1],t[2],t[3],1):(t=Jde.exec(e))?new On(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qde.exec(e))?lc(t[1],t[2],t[3],t[4]):(t=ehe.exec(e))?lc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=the.exec(e))?u0(t[1],t[2]/100,t[3]/100,1):(t=nhe.exec(e))?u0(t[1],t[2]/100,t[3]/100,t[4]):i0.hasOwnProperty(e)?l0(i0[e]):e==="transparent"?new On(NaN,NaN,NaN,0):null}function l0(e){return new On(e>>16&255,e>>8&255,e&255,1)}function lc(e,t,r,o){return o<=0&&(e=t=r=NaN),new On(e,t,r,o)}function ohe(e){return e instanceof ha||(e=Ql(e)),e?(e=e.rgb(),new On(e.r,e.g,e.b,e.opacity)):new On}function zd(e,t,r,o){return arguments.length===1?ohe(e):new On(e,t,r,o??1)}function On(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Xh(On,zd,Qw(ha,{brighter(e){return e=e==null?eu:Math.pow(eu,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zl:Math.pow(Zl,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new On(Co(this.r),Co(this.g),Co(this.b),tu(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:a0,formatHex:a0,formatHex8:she,formatRgb:c0,toString:c0}));function a0(){return`#${So(this.r)}${So(this.g)}${So(this.b)}`}function she(){return`#${So(this.r)}${So(this.g)}${So(this.b)}${So((isNaN(this.opacity)?1:this.opacity)*255)}`}function c0(){const e=tu(this.opacity);return`${e===1?"rgb(":"rgba("}${Co(this.r)}, ${Co(this.g)}, ${Co(this.b)}${e===1?")":`, ${e})`}`}function tu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Co(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function So(e){return e=Co(e),(e<16?"0":"")+e.toString(16)}function u0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new gr(e,t,r,o)}function e1(e){if(e instanceof gr)return new gr(e.h,e.s,e.l,e.opacity);if(e instanceof ha||(e=Ql(e)),!e)return new gr;if(e instanceof gr)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 gr(f,d,h,e.opacity)}function lhe(e,t,r,o){return arguments.length===1?e1(e):new gr(e,t,r,o??1)}function gr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Xh(gr,lhe,Qw(ha,{brighter(e){return e=e==null?eu:Math.pow(eu,e),new gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zl:Math.pow(Zl,e),new gr(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 On(Jf(e>=240?e-240:e+120,s,o),Jf(e,s,o),Jf(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new gr(f0(this.h),ac(this.s),ac(this.l),tu(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=tu(this.opacity);return`${e===1?"hsl(":"hsla("}${f0(this.h)}, ${ac(this.s)*100}%, ${ac(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f0(e){return e=(e||0)%360,e<0?e+360:e}function ac(e){return Math.max(0,Math.min(1,e||0))}function Jf(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 t1=e=>()=>e;function ahe(e,t){return function(r){return e+r*t}}function che(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 uhe(e){return(e=+e)==1?n1:function(t,r){return r-t?che(t,r,e):t1(isNaN(t)?r:t)}}function n1(e,t){var r=t-e;return r?ahe(e,r):t1(isNaN(e)?t:e)}const d0=function e(t){var r=uhe(t);function o(s,c){var f=r((s=zd(s)).r,(c=zd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=n1(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 Ri(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Id=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qf=new RegExp(Id.source,"g");function fhe(e){return function(){return e}}function dhe(e){return function(t){return e(t)+""}}function hhe(e,t){var r=Id.lastIndex=Qf.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Id.exec(e))&&(s=Qf.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:Ri(o,s)})),r=Qf.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?dhe(h[0].x):fhe(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 h0=180/Math.PI,Fd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function r1(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)*h0,skewX:Math.atan(h)*h0,scaleX:f,scaleY:d}}var cc;function phe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Fd:r1(t.a,t.b,t.c,t.d,t.e,t.f)}function ghe(e){return e==null||(cc||(cc=document.createElementNS("http://www.w3.org/2000/svg","g")),cc.setAttribute("transform",e),!(e=cc.transform.baseVal.consolidate()))?Fd:(e=e.matrix,r1(e.a,e.b,e.c,e.d,e.e,e.f))}function i1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,_,L){if(p!==y||v!==b){var C=_.push("translate(",null,t,null,r);L.push({i:C-4,x:Ri(p,y)},{i:C-2,x:Ri(v,b)})}else(y||b)&&_.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:Ri(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:Ri(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,_,L){if(p!==y||v!==b){var C=_.push(s(_)+"scale(",null,",",null,")");L.push({i:C-4,x:Ri(p,y)},{i:C-2,x:Ri(v,b)})}else(y!==1||b!==1)&&_.push(s(_)+"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(_){for(var L=-1,C=b.length,N;++L<C;)y[(N=b[L]).i]=N.x(_);return y.join("")}}}var vhe=i1(phe,"px, ","px)","deg)"),mhe=i1(ghe,", ",")",")"),yhe=1e-12;function p0(e){return((e=Math.exp(e))+1/e)/2}function bhe(e){return((e=Math.exp(e))-1/e)/2}function whe(e){return((e=Math.exp(2*e))-1)/(e+1)}const xhe=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],_=v-d,L=y-h,C=_*_+L*L,N,A;if(C<yhe)A=Math.log(b/p)/t,N=function(ne){return[d+ne*_,h+ne*L,p*Math.exp(t*ne*A)]};else{var E=Math.sqrt(C),O=(b*b-p*p+o*C)/(2*p*r*E),M=(b*b-p*p-o*C)/(2*b*r*E),z=Math.log(Math.sqrt(O*O+1)-O),B=Math.log(Math.sqrt(M*M+1)-M);A=(B-z)/t,N=function(ne){var re=ne*A,oe=p0(z),G=p/(r*E)*(oe*whe(t*re+z)-bhe(z));return[d+G*_,h+G*L,p*oe/p0(t*re+z)]}}return N.duration=A*1e3*t/Math.SQRT2,N}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 Es=0,vl=0,dl=0,o1=1e3,nu,ml,ru=0,Ao=0,$u=0,ea=typeof performance=="object"&&performance.now?performance:Date,s1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return Ao||(s1(_he),Ao=ea.now()+$u)}function _he(){Ao=0}function iu(){this._call=this._time=this._next=null}iu.prototype=Zh.prototype={constructor:iu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Yh():+r)+(t==null?0:+t),!this._next&&ml!==this&&(ml?ml._next=this:nu=this,ml=this),this._call=e,this._time=r,Hd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hd())}};function Zh(e,t,r){var o=new iu;return o.restart(e,t,r),o}function She(){Yh(),++Es;for(var e=nu,t;e;)(t=Ao-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Es}function g0(){Ao=(ru=ea.now())+$u,Es=vl=0;try{She()}finally{Es=0,The(),Ao=0}}function khe(){var e=ea.now(),t=e-ru;t>o1&&($u-=t,ru=e)}function The(){for(var e,t=nu,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:nu=r);ml=e,Hd(o)}function Hd(e){if(!Es){vl&&(vl=clearTimeout(vl));var t=e-Ao;t>24?(e<1/0&&(vl=setTimeout(g0,e-ea.now()-$u)),dl&&(dl=clearInterval(dl))):(dl||(ru=ea.now(),dl=setInterval(khe,o1)),Es=1,s1(g0))}}function v0(e,t,r){var o=new iu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Che=da("start","end","cancel","interrupt"),Ehe=[],l1=0,m0=1,qd=2,Tc=3,y0=4,Bd=5,Cc=6;function Ou(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Lhe(e,r,{name:t,index:o,group:s,on:Che,tween:Ehe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:l1})}function Jh(e,t){var r=_r(e,t);if(r.state>l1)throw new Error("too late; already scheduled");return r}function zr(e,t){var r=_r(e,t);if(r.state>Tc)throw new Error("too late; already running");return r}function _r(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Lhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Zh(c,0,r.time);function c(p){r.state=m0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,_;if(r.state!==m0)return h();for(v in o)if(_=o[v],_.name===r.name){if(_.state===Tc)return v0(f);_.state===y0?(_.state=Cc,_.timer.stop(),_.on.call("interrupt",e,e.__data__,_.index,_.group),delete o[v]):+v<t&&(_.state=Cc,_.timer.stop(),_.on.call("cancel",e,e.__data__,_.index,_.group),delete o[v])}if(v0(function(){r.state===Tc&&(r.state=y0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=qd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===qd){for(r.state=Tc,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(_=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=_);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=Bd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Bd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Cc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Ec(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>qd&&o.state<Bd,o.state=Cc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Ahe(e){return this.each(function(){Ec(this,e)})}function Mhe(e,t){var r,o;return function(){var s=zr(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 Nhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=zr(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 $he(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=_r(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?Mhe:Nhe)(r,e,t))}function Qh(e,t,r){var o=e._id;return e.each(function(){var s=zr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return _r(s,o).value[t]}}function a1(e,t){var r;return(typeof t=="number"?Ri:t instanceof Ql?d0:(r=Ql(t))?(t=r,d0):hhe)(e,t)}function Ohe(e){return function(){this.removeAttribute(e)}}function Phe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rhe(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 Dhe(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 zhe(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 Ihe(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 Fhe(e,t){var r=Nu(e),o=r==="transform"?mhe:a1;return this.attrTween(e,typeof t=="function"?(r.local?Ihe:zhe)(r,o,Qh(this,"attr."+e,t)):t==null?(r.local?Phe:Ohe)(r):(r.local?Dhe:Rhe)(r,o,t))}function Hhe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function qhe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Bhe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&qhe(e,c)),r}return s._value=t,s}function Whe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Hhe(e,c)),r}return s._value=t,s}function Uhe(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=Nu(e);return this.tween(r,(o.local?Bhe:Whe)(o,t))}function Vhe(e,t){return function(){Jh(this,e).delay=+t.apply(this,arguments)}}function jhe(e,t){return t=+t,function(){Jh(this,e).delay=t}}function Ghe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Vhe:jhe)(t,e)):_r(this.node(),t).delay}function Khe(e,t){return function(){zr(this,e).duration=+t.apply(this,arguments)}}function Xhe(e,t){return t=+t,function(){zr(this,e).duration=t}}function Yhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Khe:Xhe)(t,e)):_r(this.node(),t).duration}function Zhe(e,t){if(typeof t!="function")throw new Error;return function(){zr(this,e).ease=t}}function Jhe(e){var t=this._id;return arguments.length?this.each(Zhe(t,e)):_r(this.node(),t).ease}function Qhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;zr(this,e).ease=r}}function epe(e){if(typeof e!="function")throw new Error;return this.each(Qhe(this._id,e))}function tpe(e){typeof e!="function"&&(e=qw(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 li(o,this._parents,this._name,this._id)}function npe(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,_=0;_<v;++_)(b=h[_]||p[_])&&(y[_]=b);for(;d<o;++d)f[d]=t[d];return new li(f,this._parents,this._name,this._id)}function rpe(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 ipe(e,t,r){var o,s,c=rpe(t)?Jh:zr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function ope(e,t){var r=this._id;return arguments.length<2?_r(this.node(),r).on.on(e):this.each(ipe(r,e,t))}function spe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function lpe(){return this.on("end.remove",spe(this._id))}function ape(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Gh(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,Ou(p[b],t,r,b,p,_r(v,r)));return new li(c,this._parents,t,r)}function cpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Hw(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),_,L=_r(v,r),C=0,N=b.length;C<N;++C)(_=b[C])&&Ou(_,t,r,C,b,L);c.push(b),f.push(v)}return new li(c,f,t,r)}var upe=fa.prototype.constructor;function fpe(){return new upe(this._groups,this._parents)}function dpe(e,t){var r,o,s;return function(){var c=Cs(this,e),f=(this.style.removeProperty(e),Cs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function c1(e){return function(){this.style.removeProperty(e)}}function hpe(e,t,r){var o,s=r+"",c;return function(){var f=Cs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function ppe(e,t,r){var o,s,c;return function(){var f=Cs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Cs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function gpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=zr(this,e),p=h.on,v=h.value[c]==null?d||(d=c1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function vpe(e,t,r){var o=(e+="")=="transform"?vhe:a1;return t==null?this.styleTween(e,dpe(e,o)).on("end.style."+e,c1(e)):typeof t=="function"?this.styleTween(e,ppe(e,o,Qh(this,"style."+e,t))).each(gpe(this._id,e)):this.styleTween(e,hpe(e,o,t),r).on("end.style."+e,null)}function mpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function ype(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&mpe(e,f,r)),o}return c._value=t,c}function bpe(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,ype(e,t,r??""))}function wpe(e){return function(){this.textContent=e}}function xpe(e){return function(){var t=e(this);this.textContent=t??""}}function _pe(e){return this.tween("text",typeof e=="function"?xpe(Qh(this,"text",e)):wpe(e==null?"":e+""))}function Spe(e){return function(t){this.textContent=e.call(this,t)}}function kpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Spe(s)),t}return o._value=e,o}function Tpe(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,kpe(e))}function Cpe(){for(var e=this._name,t=this._id,r=u1(),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=_r(h,t);Ou(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new li(o,this._parents,e,r)}function Epe(){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=zr(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 Lpe=0;function li(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function u1(){return++Lpe}var Kr=fa.prototype;li.prototype={constructor:li,select:ape,selectAll:cpe,selectChild:Kr.selectChild,selectChildren:Kr.selectChildren,filter:tpe,merge:npe,selection:fpe,transition:Cpe,call:Kr.call,nodes:Kr.nodes,node:Kr.node,size:Kr.size,empty:Kr.empty,each:Kr.each,on:ope,attr:Fhe,attrTween:Uhe,style:vpe,styleTween:bpe,text:_pe,textTween:Tpe,remove:lpe,tween:$he,delay:Ghe,duration:Yhe,ease:Jhe,easeVarying:epe,end:Epe,[Symbol.iterator]:Kr[Symbol.iterator]};function Ape(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mpe={time:null,delay:0,duration:250,ease:Ape};function Npe(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 $pe(e){var t,r;e instanceof li?(t=e._id,e=e._name):(t=u1(),(r=Mpe).time=Yh(),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])&&Ou(h,e,t,p,f,r||Npe(h,t));return new li(o,this._parents,e,t)}fa.prototype.interrupt=Ahe;fa.prototype.transition=$pe;const uc=e=>()=>e;function Ope(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 Jr(e,t,r){this.k=e,this.x=t,this.y=r}Jr.prototype={constructor:Jr,scale:function(e){return e===1?this:new Jr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Jr(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 ep=new Jr(1,0,0);Jr.prototype;function ed(e){e.stopImmediatePropagation()}function hl(e){e.preventDefault(),e.stopImmediatePropagation()}function Ppe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Rpe(){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 b0(){return this.__zoom||ep}function Dpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function zpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ipe(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 Fpe(){var e=Ppe,t=Rpe,r=Ipe,o=Dpe,s=zpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=xhe,p=da("start","zoom","end"),v,y,b,_=500,L=150,C=0,N=10;function A(I){I.property("__zoom",b0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",oe).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",X).on("touchmove.zoom",Q).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(I,k,H,W){var te=I.selection?I.selection():I;te.property("__zoom",b0),I!==te?z(I,k,H,W):te.interrupt().each(function(){B(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},A.scaleBy=function(I,k,H,W){A.scaleTo(I,function(){var te=this.__zoom.k,me=typeof k=="function"?k.apply(this,arguments):k;return te*me},H,W)},A.scaleTo=function(I,k,H,W){A.transform(I,function(){var te=t.apply(this,arguments),me=this.__zoom,Me=H==null?M(te):typeof H=="function"?H.apply(this,arguments):H,qe=me.invert(Me),Ue=typeof k=="function"?k.apply(this,arguments):k;return r(O(E(me,Ue),Me,qe),te,f)},H,W)},A.translateBy=function(I,k,H,W){A.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof H=="function"?H.apply(this,arguments):H),t.apply(this,arguments),f)},null,W)},A.translateTo=function(I,k,H,W,te){A.transform(I,function(){var me=t.apply(this,arguments),Me=this.__zoom,qe=W==null?M(me):typeof W=="function"?W.apply(this,arguments):W;return r(ep.translate(qe[0],qe[1]).scale(Me.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof H=="function"?-H.apply(this,arguments):-H),me,f)},W,te)};function E(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new Jr(k,I.x,I.y)}function O(I,k,H){var W=k[0]-H[0]*I.k,te=k[1]-H[1]*I.k;return W===I.x&&te===I.y?I:new Jr(I.k,W,te)}function M(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function z(I,k,H,W){I.on("start.zoom",function(){B(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){B(this,arguments).event(W).end()}).tween("zoom",function(){var te=this,me=arguments,Me=B(te,me).event(W),qe=t.apply(te,me),Ue=H==null?M(qe):typeof H=="function"?H.apply(te,me):H,it=Math.max(qe[1][0]-qe[0][0],qe[1][1]-qe[0][1]),rt=te.__zoom,Ze=typeof k=="function"?k.apply(te,me):k,Te=h(rt.invert(Ue).concat(it/rt.k),Ze.invert(Ue).concat(it/Ze.k));return function(K){if(K===1)K=Ze;else{var ae=Te(K),de=it/ae[2];K=new Jr(de,Ue[0]-ae[0]*de,Ue[1]-ae[1]*de)}Me.zoom(null,K)}})}function B(I,k,H){return!H&&I.__zooming||new ne(I,k)}function ne(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}ne.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=$n(this.that).datum();p.call(I,this.that,new Ope(I,{sourceEvent:this.sourceEvent,target:A,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function re(I,...k){if(!e.apply(this,arguments))return;var H=B(this,k).event(I),W=this.__zoom,te=Math.max(c[0],Math.min(c[1],W.k*Math.pow(2,o.apply(this,arguments)))),me=Zr(I);if(H.wheel)(H.mouse[0][0]!==me[0]||H.mouse[0][1]!==me[1])&&(H.mouse[1]=W.invert(H.mouse[0]=me)),clearTimeout(H.wheel);else{if(W.k===te)return;H.mouse=[me,W.invert(me)],Ec(this),H.start()}hl(I),H.wheel=setTimeout(Me,L),H.zoom("mouse",r(O(E(W,te),H.mouse[0],H.mouse[1]),H.extent,f));function Me(){H.wheel=null,H.end()}}function oe(I,...k){if(b||!e.apply(this,arguments))return;var H=I.currentTarget,W=B(this,k,!0).event(I),te=$n(I.view).on("mousemove.zoom",Ue,!0).on("mouseup.zoom",it,!0),me=Zr(I,H),Me=I.clientX,qe=I.clientY;Zw(I.view),ed(I),W.mouse=[me,this.__zoom.invert(me)],Ec(this),W.start();function Ue(rt){if(hl(rt),!W.moved){var Ze=rt.clientX-Me,Te=rt.clientY-qe;W.moved=Ze*Ze+Te*Te>C}W.event(rt).zoom("mouse",r(O(W.that.__zoom,W.mouse[0]=Zr(rt,H),W.mouse[1]),W.extent,f))}function it(rt){te.on("mousemove.zoom mouseup.zoom",null),Jw(rt.view,W.moved),hl(rt),W.event(rt).end()}}function G(I,...k){if(e.apply(this,arguments)){var H=this.__zoom,W=Zr(I.changedTouches?I.changedTouches[0]:I,this),te=H.invert(W),me=H.k*(I.shiftKey?.5:2),Me=r(O(E(H,me),W,te),t.apply(this,k),f);hl(I),d>0?$n(this).transition().duration(d).call(z,Me,W,I):$n(this).call(A.transform,Me,W,I)}}function X(I,...k){if(e.apply(this,arguments)){var H=I.touches,W=H.length,te=B(this,k,I.changedTouches.length===W).event(I),me,Me,qe,Ue;for(ed(I),Me=0;Me<W;++Me)qe=H[Me],Ue=Zr(qe,this),Ue=[Ue,this.__zoom.invert(Ue),qe.identifier],te.touch0?!te.touch1&&te.touch0[2]!==Ue[2]&&(te.touch1=Ue,te.taps=0):(te.touch0=Ue,me=!0,te.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(te.taps<2&&(y=Ue[0],v=setTimeout(function(){v=null},_)),Ec(this),te.start())}}function Q(I,...k){if(this.__zooming){var H=B(this,k).event(I),W=I.changedTouches,te=W.length,me,Me,qe,Ue;for(hl(I),me=0;me<te;++me)Me=W[me],qe=Zr(Me,this),H.touch0&&H.touch0[2]===Me.identifier?H.touch0[0]=qe:H.touch1&&H.touch1[2]===Me.identifier&&(H.touch1[0]=qe);if(Me=H.that.__zoom,H.touch1){var it=H.touch0[0],rt=H.touch0[1],Ze=H.touch1[0],Te=H.touch1[1],K=(K=Ze[0]-it[0])*K+(K=Ze[1]-it[1])*K,ae=(ae=Te[0]-rt[0])*ae+(ae=Te[1]-rt[1])*ae;Me=E(Me,Math.sqrt(K/ae)),qe=[(it[0]+Ze[0])/2,(it[1]+Ze[1])/2],Ue=[(rt[0]+Te[0])/2,(rt[1]+Te[1])/2]}else if(H.touch0)qe=H.touch0[0],Ue=H.touch0[1];else return;H.zoom("touch",r(O(Me,qe,Ue),H.extent,f))}}function V(I,...k){if(this.__zooming){var H=B(this,k).event(I),W=I.changedTouches,te=W.length,me,Me;for(ed(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},_),me=0;me<te;++me)Me=W[me],H.touch0&&H.touch0[2]===Me.identifier?delete H.touch0:H.touch1&&H.touch1[2]===Me.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(Me=Zr(Me,this),Math.hypot(y[0]-Me[0],y[1]-Me[1])<N)){var qe=$n(this).on("dblclick.zoom");qe&&qe.apply(this,arguments)}}}return A.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:uc(+I),A):o},A.filter=function(I){return arguments.length?(e=typeof I=="function"?I:uc(!!I),A):e},A.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:uc(!!I),A):s},A.extent=function(I){return arguments.length?(t=typeof I=="function"?I:uc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),A):t},A.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],A):[c[0],c[1]]},A.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],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(I){return arguments.length?(r=I,A):r},A.duration=function(I){return arguments.length?(d=+I,A):d},A.interpolate=function(I){return arguments.length?(h=I,A):h},A.on=function(){var I=p.on.apply(p,arguments);return I===p?A:I},A.clickDistance=function(I){return arguments.length?(C=(I=+I)*I,A):Math.sqrt(C)},A.tapDistance=function(I){return arguments.length?(N=+I,A):N},A}function Hpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return f1(this.cover(t,r),t,r,e)}function f1(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,_,L,C,N,A,E;if(!c)return e._root=f,e;for(;c.length;)if((C=t>=(y=(d+p)/2))?d=y:p=y,(N=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[A=N<<1|C]))return s[A]=f,e;if(_=+e._x.call(null,c.data),L=+e._y.call(null,c.data),t===_&&r===L)return f.next=c,s?s[A]=f:e._root=f,e;do s=s?s[A]=new Array(4):e._root=new Array(4),(C=t>=(y=(d+p)/2))?d=y:p=y,(N=r>=(b=(h+v)/2))?h=b:v=b;while((A=N<<1|C)===(E=(L>=b)<<1|_>=y));return s[E]=c,s[A]=f,e}function qpe(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)f1(this,f[r],d[r],e[r]);return this}function Bpe(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 Wpe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Upe(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 _n(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Vpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],_=this._root,L,C;for(_&&b.push(new _n(_,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);L=b.pop();)if(!(!(_=L.node)||(f=L.x0)>v||(d=L.y0)>y||(h=L.x1)<s||(p=L.y1)<c))if(_.length){var N=(f+h)/2,A=(d+p)/2;b.push(new _n(_[3],N,A,h,p),new _n(_[2],f,A,N,p),new _n(_[1],N,d,h,A),new _n(_[0],f,d,N,A)),(C=(t>=A)<<1|e>=N)&&(L=b[b.length-1],b[b.length-1]=b[b.length-1-C],b[b.length-1-C]=L)}else{var E=e-+this._x.call(null,_.data),O=t-+this._y.call(null,_.data),M=E*E+O*O;if(M<r){var z=Math.sqrt(r=M);s=e-z,c=t-z,v=e+z,y=t+z,o=_.data}}return o}function jpe(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,_,L,C,N,A;if(!r)return this;if(r.length)for(;;){if((L=v>=(b=(f+h)/2))?f=b:h=b,(C=y>=(_=(d+p)/2))?d=_:p=_,t=r,!(r=r[N=C<<1|L]))return this;if(!r.length)break;(t[N+1&3]||t[N+2&3]||t[N+3&3])&&(o=t,A=N)}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[N]=c:delete t[N],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[A]=r:this._root=r),this):(this._root=c,this)}function Gpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Kpe(){return this._root}function Xpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ype(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new _n(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 _n(s,p,v,d,h)),(s=o[2])&&t.push(new _n(s,c,v,p,h)),(s=o[1])&&t.push(new _n(s,p,f,d,v)),(s=o[0])&&t.push(new _n(s,c,f,p,v))}return this}function Zpe(e){var t=[],r=[],o;for(this._root&&t.push(new _n(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 _n(c,f,d,v,y)),(c=s[1])&&t.push(new _n(c,v,d,h,y)),(c=s[2])&&t.push(new _n(c,f,y,v,p)),(c=s[3])&&t.push(new _n(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 Jpe(e){return e[0]}function Qpe(e){return arguments.length?(this._x=e,this):this._x}function ege(e){return e[1]}function tge(e){return arguments.length?(this._y=e,this):this._y}function tp(e,t,r){var o=new np(t??Jpe,r??ege,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function np(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 w0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var kn=tp.prototype=np.prototype;kn.copy=function(){var e=new np(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=w0(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]=w0(o));return e};kn.add=Hpe;kn.addAll=qpe;kn.cover=Bpe;kn.data=Wpe;kn.extent=Upe;kn.find=Vpe;kn.remove=jpe;kn.removeAll=Gpe;kn.root=Kpe;kn.size=Xpe;kn.visit=Ype;kn.visitAfter=Zpe;kn.x=Qpe;kn.y=tge;function Sn(e){return function(){return e}}function Ii(e){return(e()-.5)*1e-6}function nge(e){return e.x+e.vx}function rge(e){return e.y+e.vy}function ige(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Sn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,_,L,C,N,A=0;A<c;++A)for(y=tp(t,nge,rge).visitAfter(d),p=0;p<v;++p)b=t[p],C=r[b.index],N=C*C,_=b.x+b.vx,L=b.y+b.vy,y.visit(E);function E(O,M,z,B,ne){var re=O.data,oe=O.r,G=C+oe;if(re){if(re.index>b.index){var X=_-re.x-re.vx,Q=L-re.y-re.vy,V=X*X+Q*Q;V<G*G&&(X===0&&(X=Ii(o),V+=X*X),Q===0&&(Q=Ii(o),V+=Q*Q),V=(G-(V=Math.sqrt(V)))/V*s,b.vx+=(X*=V)*(G=(oe*=oe)/(N+oe)),b.vy+=(Q*=V)*G,re.vx-=X*(G=1-G),re.vy-=Q*G)}return}return M>_+G||B<_-G||z>L+G||ne<L-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,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:Sn(+p),h(),f):e},f}function oge(e){return e.index}function x0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function sge(e){var t=oge,r=y,o,s=Sn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(N){return 1/Math.min(d[N.source.index],d[N.target.index])}function b(N){for(var A=0,E=e.length;A<v;++A)for(var O=0,M,z,B,ne,re,oe,G;O<E;++O)M=e[O],z=M.source,B=M.target,ne=B.x+B.vx-z.x-z.vx||Ii(p),re=B.y+B.vy-z.y-z.vy||Ii(p),oe=Math.sqrt(ne*ne+re*re),oe=(oe-c[O])/oe*N*o[O],ne*=oe,re*=oe,B.vx-=ne*(G=h[O]),B.vy-=re*G,z.vx+=ne*(G=1-G),z.vy+=re*G}function _(){if(f){var N,A=f.length,E=e.length,O=new Map(f.map((z,B)=>[t(z,B,f),z])),M;for(N=0,d=new Array(A);N<E;++N)M=e[N],M.index=N,typeof M.source!="object"&&(M.source=x0(O,M.source)),typeof M.target!="object"&&(M.target=x0(O,M.target)),d[M.source.index]=(d[M.source.index]||0)+1,d[M.target.index]=(d[M.target.index]||0)+1;for(N=0,h=new Array(E);N<E;++N)M=e[N],h[N]=d[M.source.index]/(d[M.source.index]+d[M.target.index]);o=new Array(E),L(),c=new Array(E),C()}}function L(){if(f)for(var N=0,A=e.length;N<A;++N)o[N]=+r(e[N],N,e)}function C(){if(f)for(var N=0,A=e.length;N<A;++N)c[N]=+s(e[N],N,e)}return b.initialize=function(N,A){f=N,p=A,_()},b.links=function(N){return arguments.length?(e=N,_(),b):e},b.id=function(N){return arguments.length?(t=N,b):t},b.iterations=function(N){return arguments.length?(v=+N,b):v},b.strength=function(N){return arguments.length?(r=typeof N=="function"?N:Sn(+N),L(),b):r},b.distance=function(N){return arguments.length?(s=typeof N=="function"?N:Sn(+N),C(),b):s},b}const lge=1664525,age=1013904223,_0=4294967296;function cge(){let e=1;return()=>(e=(lge*e+age)%_0)/_0}function uge(e){return e.x}function fge(e){return e.y}var dge=10,hge=Math.PI*(3-Math.sqrt(5));function pge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Zh(y),p=da("tick","end"),v=cge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(C){var N,A=e.length,E;C===void 0&&(C=1);for(var O=0;O<C;++O)for(r+=(c-r)*s,d.forEach(function(M){M(r)}),N=0;N<A;++N)E=e[N],E.fx==null?E.x+=E.vx*=f:(E.x=E.fx,E.vx=0),E.fy==null?E.y+=E.vy*=f:(E.y=E.fy,E.vy=0);return t}function _(){for(var C=0,N=e.length,A;C<N;++C){if(A=e[C],A.index=C,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var E=dge*Math.sqrt(.5+C),O=C*hge;A.x=E*Math.cos(O),A.y=E*Math.sin(O)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function L(C){return C.initialize&&C.initialize(e,v),C}return _(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(C){return arguments.length?(e=C,_(),d.forEach(L),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(L),t):v},force:function(C,N){return arguments.length>1?(N==null?d.delete(C):d.set(C,L(N)),t):d.get(C)},find:function(C,N,A){var E=0,O=e.length,M,z,B,ne,re;for(A==null?A=1/0:A*=A,E=0;E<O;++E)ne=e[E],M=C-ne.x,z=N-ne.y,B=M*M+z*z,B<A&&(re=ne,A=B);return re},on:function(C,N){return arguments.length>1?(p.on(C,N),t):p.on(C)}}}function gge(){var e,t,r,o,s=Sn(-30),c,f=1,d=1/0,h=.81;function p(_){var L,C=e.length,N=tp(e,uge,fge).visitAfter(y);for(o=_,L=0;L<C;++L)t=e[L],N.visit(b)}function v(){if(e){var _,L=e.length,C;for(c=new Array(L),_=0;_<L;++_)C=e[_],c[C.index]=+s(C,_,e)}}function y(_){var L=0,C,N,A=0,E,O,M;if(_.length){for(E=O=M=0;M<4;++M)(C=_[M])&&(N=Math.abs(C.value))&&(L+=C.value,A+=N,E+=N*C.x,O+=N*C.y);_.x=E/A,_.y=O/A}else{C=_,C.x=C.data.x,C.y=C.data.y;do L+=c[C.data.index];while(C=C.next)}_.value=L}function b(_,L,C,N){if(!_.value)return!0;var A=_.x-t.x,E=_.y-t.y,O=N-L,M=A*A+E*E;if(O*O/h<M)return M<d&&(A===0&&(A=Ii(r),M+=A*A),E===0&&(E=Ii(r),M+=E*E),M<f&&(M=Math.sqrt(f*M)),t.vx+=A*_.value*o/M,t.vy+=E*_.value*o/M),!0;if(_.length||M>=d)return;(_.data!==t||_.next)&&(A===0&&(A=Ii(r),M+=A*A),E===0&&(E=Ii(r),M+=E*E),M<f&&(M=Math.sqrt(f*M)));do _.data!==t&&(O=c[_.data.index]*o/M,t.vx+=A*O,t.vy+=E*O);while(_=_.next)}return p.initialize=function(_,L){e=_,r=L,v()},p.strength=function(_){return arguments.length?(s=typeof _=="function"?_:Sn(+_),v(),p):s},p.distanceMin=function(_){return arguments.length?(f=_*_,p):Math.sqrt(f)},p.distanceMax=function(_){return arguments.length?(d=_*_,p):Math.sqrt(d)},p.theta=function(_){return arguments.length?(h=_*_,p):Math.sqrt(h)},p}function vge(e){var t=Sn(.1),r,o,s;typeof e!="function"&&(e=Sn(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:Sn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Sn(+d),f(),c):e},c}function mge(e){var t=Sn(.1),r,o,s;typeof e!="function"&&(e=Sn(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:Sn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Sn(+d),f(),c):e},c}var yge=Object.defineProperty,bge=(e,t,r)=>t in e?yge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>(bge(e,typeof t!="symbol"?t+"":t,r),r);function wge(){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 S0(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 Fi(...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]=Fi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:S0(t[o])&&S0(r[o])?t[o]=Fi(t[o],r[o]):t[o]=r[o])}),t},{})}const d1={mergeArrays:!0};Fi.options=d1;Fi.withOptions=(e,...t)=>{Fi.options={mergeArrays:!0,...e};const r=Fi(...t);return Fi.options=d1,r};function xge(){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 h1(e){e.preventDefault(),e.stopPropagation()}function p1(e){return typeof e=="number"}function Xi(e,t){return p1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Sge(e){return`${e.source.id}-${e.target.id}`}function g1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function kge(e){return`url(#${g1(e.color)})`}function Tge(e){return{size:e,padding:(t,r)=>Xi(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const v1={Arrow:e=>Tge(e)},Cge=(e,t,r)=>[t/2,r/2],m1=(e,t,r)=>[k0(0,t),k0(0,r)];function k0(e,t){return Math.random()*(t-e)+e}function Ege(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?m1(r,o,s):[c,f]}}const Wd={Centered:Cge,Randomized:m1,Stable:Ege};function Lge(){return{autoResize:!1,callbacks:{},hooks:{},initial:_ge(),nodeRadius:16,marker:v1.Arrow(4),modifiers:{},positionInitializer:Wd.Centered,simulation:{alphas:wge(),forces:xge()},zoom:{initial:1,min:.1,max:2}}}function Age(e={}){return Fi.withOptions({mergeArrays:!1},Lge(),e)}function Mge({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=>h1(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,ep.translate(c,f).scale(d)),p.append("g")}function Nge({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function $ge({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Xde().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),$n(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),$n(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 Oge({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}:Pge({nodes:d,links:c},r)}function Pge(e,t){const r=[...Rge(e,t),...Dge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Rge(e,t){return y1(e,t,(r,o)=>r.target.id===o.id)}function Dge(e,t){return y1(e,t,(r,o)=>r.source.id===o.id)}function y1(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 Ud(e){return e.x??0}function Vd(e){return e.y??0}function rp({source:e,target:t}){const r=new xn(Ud(e),Vd(e)),o=new xn(Ud(t),Vd(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 b1({center:e,node:t}){const r=new xn(Ud(t),Vd(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new xn(0,1))),{n:r,c:o}}function w1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=rp({config:e,source:t,target:r}),f=o.add(c.multiply(Xi(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function zge(e){const{start:t,end:r}=w1(e);return`M${t.x},${t.y}
|
|
49
|
+
L${r.x},${r.y}`}function Ige(e){const{start:t,end:r}=w1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Fge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=rp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(Xi(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(Xi(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 Hge({center:e,config:t,node:r}){const{n:o,c:s}=b1({center:e,config:t,node:r}),c=Xi(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 qge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=rp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Bge({center:e,config:t,node:r}){const{n:o,c:s}=b1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*Xi(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const ms={line:{labelTransform:Ige,path:zge},arc:{labelTransform:qge,path:Fge},reflexive:{labelTransform:Bge,path:Hge}};function Wge(e){return e.append("g").classed("links",!0).selectAll("path")}function Uge({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Sge(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",_=>kge(_)).style("stroke",_=>_.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",_=>_.label?_.label.color:null).style("font-size",_=>_.label?_.label.fontSize:null).text(_=>_.label?_.label.text:null);return(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 Vge(e){jge(e),Gge(e)}function jge({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?ms.reflexive.path({config:t,node:s.source,center:e}):x1(r,s.source,s.target)?ms.arc.path({config:t,source:s.source,target:s.target}):ms.line.path({config:t,source:s.source,target:s.target}))}function Gge({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?ms.reflexive.labelTransform({config:e,node:s.source,center:t}):x1(r,s.source,s.target)?ms.arc.labelTransform({config:e,source:s.source,target:s.target}):ms.line.labelTransform({config:e,source:s.source,target:s.target}))}function x1(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 Kge(e){return e.append("defs").selectAll("marker")}function Xge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Yge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>g1(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",Zge(e.marker.path)),s})}function Yge(e){return[...new Set(e.links.map(t=>t.color))]}function Zge(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 Jge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Qge({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 _=h.append("g");t!==void 0&&_.call(t);const L=_.append("circle").classed("node",!0).attr("r",N=>Xi(e,N)).on("contextmenu",(N,A)=>{h1(N),o(A)}).on("pointerdown",(N,A)=>tve(N,A,s??o)).style("fill",N=>N.color);(v=(p=e.modifiers).node)==null||v.call(p,L);const C=_.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",N=>N.label?N.label.color:null).style("font-size",N=>N.label?N.label.fontSize:null).style("stroke","none").text(N=>N.label?N.label.text:null);return(b=(y=e.modifiers).nodeLabel)==null||b.call(y,C),_});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const eve=500;function tve(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>eve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function nve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function rve({center:e,config:t,graph:r,onTick:o}){var s,c;const f=pge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",vge(()=>e().x).strength(y)).force("y",mge(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",gge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",ige().radius(y=>p.radiusMultiplier*Xi(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",sge(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 ive({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Fpe().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 ove{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(lfe(()=>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 xn.of([this.width,this.height]).divide(2).subtract(xn.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(p1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Xge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Uge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Qge({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=rve({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=ive({config:this.config,canvasContainer:()=>$n(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Mge({applyZoom:this.scale!==1,container:$n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Wge(this.canvas),this.nodeSelection=Jge(this.canvas),this.markerSelection=Kge(this.canvas),this.drag=$ge({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(){nve(this.nodeSelection),Vge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),$n(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(){Nge({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=Oge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function T0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function sve(e){return{...e}}function _1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const lve={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},ave={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},cve=["id","checked","onChange"],uve=["for"],fve=Y("div",{"flex-auto":""},null,-1),dve=pt({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=gS(t),o=Ke(),s=Ke(!1),c=Ke(),f=Ke();_h(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Ls(()=>{p()}),bh(()=>{var y;(y=f.value)==null||y.shutdown()}),Gt(r,p);function d(y,b){var _;(_=f.value)==null||_.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 ove(o.value,r.value,Age({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:b,newWidth:_})=>b===0&&_===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:v1.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Wd.Randomized:Wd.Centered,zoom:{min:.5,max:2}})))}function v(y){if(oi)return;const b=N=>N.button===0;let _=0,L=0,C=0;y.on("pointerdown",(N,A)=>{A.type!=="external"&&(!A.x||!A.y||!b(N)||(_=A.x,L=A.y,C=Date.now()))}).on("pointerup",(N,A)=>{if(A.type==="external"||!A.x||!A.y||!b(N)||Date.now()-C>500)return;const E=A.x-_,O=A.y-L;E**2+O**2<100&&h(A.id)})}return(y,b)=>{var A;const _=As,L=sfe,C=Xue,N=ai("tooltip");return le(),be("div",lve,[Y("div",null,[Y("div",ave,[(le(!0),be(dt,null,ii((A=q(f))==null?void 0:A.nodeTypes.sort(),E=>{var O;return le(),be("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${E}`,type:"checkbox",checked:(O=q(f))==null?void 0:O.nodeTypeFilter.includes(E),onChange:M=>d(E,M.target.checked)},null,40,cve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:Zt({"border-color":`var(--color-node-${E})`})},Ge(E)+" Modules",13,uve)])}),128)),fve,Y("div",null,[St(Pe(_,{icon:"i-carbon-reset",onClick:p},null,512),[[N,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(C,{modelValue:q(s),"onUpdate:modelValue":b[1]||(b[1]=E=>It(s)?s.value=E:null),direction:"right"},{default:ct(()=>[q(c)?(le(),ot(MS,{key:0},{default:ct(()=>[Pe(L,{id:q(c),"project-name":y.projectName,onClose:b[0]||(b[0]=E=>s.value=!1)},null,8,["id","project-name"])]),_:1})):et("",!0)]),_:1},8,["modelValue"])])}}}),hve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},pve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},gve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},vve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},mve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},yve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},S1=pt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=ai("tooltip");return t.state==="pass"?(le(),be("div",hve)):t.failedSnapshot?St((le(),be("div",pve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(le(),be("div",gve)):t.mode==="todo"?St((le(),be("div",vve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?St((le(),be("div",mve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(le(),be("div",yve))}}});function bve(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 wve(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 xve(e){const t=e.map(o=>wve(o)),r=bve(t);return t.map(({raw:o,id:s})=>_1({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 _1({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 Sve(e,t){if(!e)return T0({});const r=xve(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 sve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return T0({nodes:s,links:f})}const kve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Tve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Cve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Eve={class:"flex text-lg"},Lve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Ave=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Mve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Nve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},$ve=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),Ove=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),Pve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Rve=["flex-1"],Dve=pt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),r=Ke(!1),o=Ke(!1),s=Ke(!1),c=Ke(void 0),f=$e(()=>{const _=Xt.value;if(!(!_||!_.filepath))return{filepath:_.filepath,projectName:_.file.projectName||""}}),d=$e(()=>Xt.value&&Rh(Xt.value));function h(){var L;const _=(L=Xt.value)==null?void 0:L.filepath;_&&fetch(`/__open-in-editor?file=${encodeURIComponent(_)}`)}function p(_){_==="graph"&&(o.value=!0),Gn.value=_}const v=$e(()=>{var _;return((_=Rw.value)==null?void 0:_.reduce((L,{size:C})=>L+C,0))??0});function y(_){r.value=_}async function b(){var _;if(!(s.value||((_=f.value)==null?void 0:_.filepath)===c.value)){s.value=!0,await er();try{const L=f.value;if(!L)return;(!c.value||L.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=Sve(await bt.rpc.getModuleGraph(L.projectName,L.filepath,!!Xl),L.filepath),c.value=L.filepath),p("graph")}finally{await new Promise(L=>setTimeout(L,100)),s.value=!1}}}return cw(()=>[f.value,Gn.value],([,_])=>{_==="graph"&&b()},{debounce:100,immediate:!0}),(_,L)=>{var B,ne,re,oe,G,X;const C=S1,N=As,A=dve,E=Kue,O=Hue,M=Oue,z=ai("tooltip");return q(Xt)?(le(),be("div",kve,[Y("div",null,[Y("div",Tve,[Pe(C,{state:(B=q(Xt).result)==null?void 0:B.state,mode:q(Xt).mode,"failed-snapshot":q(d)},null,8,["state","mode","failed-snapshot"]),(ne=q(Xt))!=null&&ne.file.projectName?(le(),be("div",{key:0,"font-light":"","op-50":"","text-sm":"",style:Zt({color:q(kw)((re=q(Xt))==null?void 0:re.file.projectName)})}," ["+Ge(((oe=q(Xt))==null?void 0:oe.file.projectName)||"")+"] ",5)):et("",!0),Y("div",Cve,Ge((G=q(Xt))==null?void 0:G.name),1),Y("div",Eve,[q(oi)?et("",!0):St((le(),ot(N,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((X=q(Xt))!=null&&X.filepath),onClick:h},null,8,["disabled"])),[[z,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",Lve,[Y("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":q(Gn)==null}]),"data-testid":"btn-report",onClick:L[0]||(L[0]=Q=>p(null))},[Ave,mt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":q(Gn)==="graph"}]),onClick:L[1]||(L[1]=Q=>p("graph"))},[q(s)?(le(),be("span",Mve)):(le(),be("span",Nve)),mt(" Module Graph ")],2),q(oi)?et("",!0):(le(),be("button",{key:0,"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":q(Gn)==="editor"}]),onClick:L[2]||(L[2]=Q=>p("editor"))},[$ve,mt(" "+Ge(q(r)?"* ":"")+"Code ",1)],2)),Y("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":q(Gn)==="console",op20:q(Gn)!=="console"&&q(v)===0}]),onClick:L[3]||(L[3]=Q=>p("console"))},[Ove,mt(" Console ("+Ge(q(v))+") ",1)],2)])]),Y("div",Pve,[q(o)?(le(),be("div",{key:0,"flex-1":q(Gn)==="graph"&&""},[St(Pe(A,{graph:q(t),"data-testid":"graph","project-name":q(Xt).file.projectName||""},null,8,["graph","project-name"]),[[gl,q(Gn)==="graph"&&!q(s)]])],8,Rve)):et("",!0),q(Gn)==="editor"?(le(),ot(E,{key:q(Xt).filepath,file:q(Xt),"data-testid":"editor",onDraft:y},null,8,["file"])):q(Gn)==="console"?(le(),ot(O,{key:2,file:q(Xt),"data-testid":"console"},null,8,["file"])):q(Gn)?et("",!0):(le(),ot(M,{key:3,file:q(Xt),"data-testid":"report"},null,8,["file"]))])])):et("",!0)}}}),zve={h:"full",flex:"~ col"},Ive=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),Fve={"flex-auto":"","py-1":"","bg-white":""},Hve=["src"],qve=pt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(le(),be("div",zve,[Ive,Y("div",Fve,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Hve)])]))}}),Bve={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Wve={"font-bold":""},Uve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Vve=["font-bold"],jve={text:"red500/70"},Gve=Y("br",null,null,-1),Kve={key:1,text:"sm","mb-2":""},Xve={"font-bold":""},Yve={key:2,text:"sm","mb-2":""},Zve={"font-bold":""},Jve=Y("br",null,null,-1),Qve=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),eme={key:3,text:"sm","font-thin":""},tme=Y("br",null,null,-1),nme=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),rme=pt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return le(),be(dt,null,[Y("h4",Bve,[Y("span",Wve,[mt(Ge(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(le(),be(dt,{key:0},[mt(":")],64)):et("",!0)]),mt(" "+Ge(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(le(),be("p",Uve,[(le(!0),be(dt,null,ii(t.error.stacks,(s,c)=>(le(),be("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[mt("❯ "+Ge(s.method)+" "+Ge(s.file)+":",1),Y("span",jve,Ge(s.line)+":"+Ge(s.column),1),Gve],8,Vve))),128))])):et("",!0),t.error.VITEST_TEST_PATH?(le(),be("p",Kve,[mt(" This error originated in "),Y("span",Xve,Ge(t.error.VITEST_TEST_PATH),1),mt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):et("",!0),t.error.VITEST_TEST_NAME?(le(),be("p",Yve,[mt(" The latest test that might've caused the error is "),Y("span",Zve,Ge(t.error.VITEST_TEST_NAME),1),mt(". It might mean one of the following:"),Jve,Qve])):et("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(le(),be("p",eme,[mt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),tme,nme])):et("",!0)],64)}}}),Tn=e=>(hh("data-v-0178ddee"),e=e(),ph(),e),ime={"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:""},ome=Tn(()=>Y("div",{"i-carbon-document":""},null,-1)),sme=Tn(()=>Y("div",null,"Files",-1)),lme={class:"number","data-testid":"num-files"},ame=Tn(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),cme=Tn(()=>Y("div",null,"Pass",-1)),ume={class:"number"},fme=Tn(()=>Y("div",{"i-carbon-close":""},null,-1)),dme=Tn(()=>Y("div",null," Fail ",-1)),hme={class:"number","text-red5":""},pme=Tn(()=>Y("div",{"i-carbon-compare":""},null,-1)),gme=Tn(()=>Y("div",null," Snapshot Fail ",-1)),vme={class:"number","text-red5":""},mme=Tn(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),yme=Tn(()=>Y("div",null," Errors ",-1)),bme={class:"number","text-red5":""},wme=Tn(()=>Y("div",{"i-carbon-timer":""},null,-1)),xme=Tn(()=>Y("div",null,"Time",-1)),_me={class:"number","data-testid":"run-time"},Sme={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},kme=Tn(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Tme={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Cme=Tn(()=>Y("br",null,null,-1)),Eme={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Lme=Tn(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),Ame=pt({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=rme;return le(),be(dt,null,[Y("div",ime,[ome,sme,Y("div",lme,Ge(q(Le).summary.files),1),q(Le).summary.filesSuccess?(le(),be(dt,{key:0},[ame,cme,Y("div",ume,Ge(q(Le).summary.filesSuccess),1)],64)):et("",!0),q(Le).summary.filesFailed?(le(),be(dt,{key:1},[fme,dme,Y("div",hme,Ge(q(Le).summary.filesFailed),1)],64)):et("",!0),q(Le).summary.filesSnapshotFailed?(le(),be(dt,{key:2},[pme,gme,Y("div",vme,Ge(q(Le).summary.filesSnapshotFailed),1)],64)):et("",!0),q(Pi).length?(le(),be(dt,{key:3},[mme,yme,Y("div",bme,Ge(q(Pi).length),1)],64)):et("",!0),wme,xme,Y("div",_me,Ge(q(Le).summary.time),1)]),q(Pi).length?(le(),be("div",Sme,[kme,Y("p",Tme,[mt(" Vitest caught "+Ge(q(Pi).length)+" error"+Ge(q(Pi).length>1?"s":"")+" during the test run.",1),Cme,mt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",Eme,[Lme,(le(!0),be(dt,null,ii(q(Pi),(s,c)=>(le(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):et("",!0)],64)}}}),Mme=Qi(Ame,[["__scopeId","data-v-0178ddee"]]),Nme={"p-2":"","text-center":"",flex:""},$me={"text-4xl":"","min-w-2em":""},Ome={"text-md":""},Pme=pt({__name:"DashboardEntry",setup(e){return(t,r)=>(le(),be("div",Nme,[Y("div",null,[Y("div",$me,[dn(t.$slots,"body")]),Y("div",Ome,[dn(t.$slots,"header")])])]))}}),Rme={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Dme=pt({__name:"TestsEntry",setup(e){return(t,r)=>{const o=Pme;return le(),be("div",Rme,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:ct(()=>[mt(" Pass ")]),body:ct(()=>[mt(Ge(q(Le).summary.testsSuccess),1)]),_:1}),Pe(o,{class:st({"text-red5":q(Le).summary.testsFailed,op50:!q(Le).summary.testsFailed}),"data-testid":"fail-entry"},{header:ct(()=>[mt(" Fail ")]),body:ct(()=>[mt(Ge(q(Le).summary.testsFailed),1)]),_:1},8,["class"]),q(Le).summary.testsSkipped?(le(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:ct(()=>[mt(" Skip ")]),body:ct(()=>[mt(Ge(q(Le).summary.testsSkipped),1)]),_:1})):et("",!0),q(Le).summary.testsTodo?(le(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:ct(()=>[mt(" Todo ")]),body:ct(()=>[mt(Ge(q(Le).summary.testsTodo),1)]),_:1})):et("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:ct(()=>[mt(" Total ")]),body:ct(()=>[mt(Ge(q(Le).summary.totalTests),1)]),_:1})])}}}),zme={},Ime={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Fme={"aria-labelledby":"tests",m:"y-4 x-2"};function Hme(e,t){const r=Dme,o=Mme;return le(),be("div",Ime,[Y("section",Fme,[Pe(r)]),Pe(o)])}const qme=Qi(zme,[["render",Hme]]),Bme={},Wme={h:"full",flex:"~ col"},Ume=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),Vme={class:"scrolls","flex-auto":"","py-1":""};function jme(e,t){const r=qme;return le(),be("div",Wme,[Ume,Y("div",Vme,[Pe(r)])])}const Gme=Qi(Bme,[["render",jme]]),Kme=["open"],Xme=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Yme=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Zme=pt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(r,o)=>(le(),be("div",{open:q(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"},[Xme,dn(r.$slots,"summary",{open:q(t)}),Yme],2),dn(r.$slots,"default")],40,Kme))}}),Jme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Qme={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(le(),be("button",Jme,[Y("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},e0e=["aria-label","data-current"],t0e={key:1,"w-4":""},n0e={key:2,class:"i-logos:typescript-icon","flex-shrink-0":"","mr-2":""},r0e=["text"],i0e={"text-sm":"",truncate:"","font-light":""},o0e=["innerHTML"],s0e={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},l0e={key:3,"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},a0e=pt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},onItemClick:{type:Function}},setup(e){const t=$e(()=>bt.state.idMap.get(e.taskId)),r=$e(()=>t.value&&Rh(t.value));function o(){e.expandable&&(e.opened?Le.collapseNode(e.taskId):Le.expandNode(e.taskId))}async function s(v){var y;(y=e.onItemClick)==null||y.call(e,v),ls.value&&(Jc.value=!0,await er()),await Vh([v.file])}function c(v){return bt.rpc.updateSnapshot(v.file)}const f=$e(()=>e.indent<=0?[]:Array.from({length:e.indent},(v,y)=>`${e.taskId}-${y}`)),d=$e(()=>{const v=f.value,y=[];return(e.type==="file"||e.type==="suite")&&y.push("min-content"),y.push("min-content"),e.type==="suite"&&e.typecheck&&y.push("min-content"),y.push("minmax(0, 1fr)"),e.type==="file"&&y.push("min-content"),`grid-template-columns: ${v.map(()=>"1rem").join(" ")} ${y.join(" ")};`}),h=$e(()=>{const v=Nn.value.toLowerCase();return v.length?new RegExp(`(${v})`,"gi"):null}),p=$e(()=>{const v=h.value;return v?e.name.replace(v,y=>`<span class="highlight">${y}</span>`):e.name});return(v,y)=>{const b=S1,_=Qme,L=ai("tooltip");return q(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(q(d)),"aria-label":v.name,"data-current":v.current,onClick:y[3]||(y[3]=C=>o())},[v.indent>0?(le(!0),be(dt,{key:0},ii(q(f),C=>(le(),be("div",{key:C,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):et("",!0),v.type==="file"||v.type==="suite"?(le(),be("div",t0e,[Y("div",{class:st(v.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):et("",!0),Pe(b,{state:v.state,mode:q(t).mode,"failed-snapshot":q(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),v.type==="suite"&&v.typecheck?(le(),be("div",n0e)):et("",!0),Y("div",{flex:"","items-end":"","gap-2":"",text:v.state==="fail"?"red-500":"","overflow-hidden":""},[Y("span",i0e,[v.type==="file"&&v.projectName?(le(),be("span",{key:0,style:Zt({color:v.projectNameColor})}," ["+Ge(v.projectName)+"] ",5)):et("",!0),Y("span",{innerHTML:q(p)},null,8,o0e)]),typeof v.duration=="number"?(le(),be("span",s0e,Ge(v.duration>0?v.duration:"< 1")+"ms ",1)):et("",!0)],8,r0e),v.type==="file"?(le(),be("div",l0e,[!q(oi)&&q(r)?St((le(),ot(_,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon-result-old",onClick:y[0]||(y[0]=mc(C=>c(q(t)),["prevent","stop"]))},null,512)),[[L,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):et("",!0),St(Pe(_,{"data-testid":"btn-open-details",title:"Open test details",icon:"i-carbon-intrusion-prevention",onClick:y[1]||(y[1]=mc(C=>{var N;return(N=v.onItemClick)==null?void 0:N.call(v,q(t))},["prevent","stop"]))},null,512),[[L,"Open test details",void 0,{bottom:!0}]]),q(oi)?et("",!0):St((le(),ot(_,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",onClick:y[2]||(y[2]=mc(C=>s(q(t)),["prevent","stop"]))},null,512)),[[L,"Run current test",void 0,{bottom:!0}]])])):et("",!0)],12,e0e)):et("",!0)}}}),c0e=Qi(a0e,[["__scopeId","data-v-2e969c66"]]),u0e={"flex-1":"","ms-2":"","select-none":""},f0e=pt({__name:"FilterStatus",props:Pc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=kh(e,"modelValue");return(r,o)=>(le(),be("label",ti({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]=mc(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),St(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[rT,t.value]]),Y("span",u0e,Ge(r.label),1)],16))}});function d0e(){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 Lc;function jd(){jd.init||(jd.init=!0,Lc=d0e()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){jd(),er(()=>{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",Lc&&this.$el.appendChild(e),e.data="about:blank",Lc||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&&(!Lc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const h0e=ly();hh("data-v-b329ee4c");const p0e={class:"resize-observer",tabindex:"-1"};ph();const g0e=h0e((e,t,r,o,s,c)=>(le(),ot("div",p0e)));Pu.render=g0e;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";function Ac(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ac=function(t){return typeof t}:Ac=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function v0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m0e(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 y0e(e,t,r){return t&&m0e(e.prototype,t),e}function C0(e){return b0e(e)||w0e(e)||x0e(e)||_0e()}function b0e(e){if(Array.isArray(e))return Gd(e)}function w0e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function x0e(e,t){if(e){if(typeof e=="string")return Gd(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 Gd(e,t)}}function Gd(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 _0e(){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 S0e(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function k0e(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(C0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(C0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function k1(e,t){if(e===t)return!0;if(Ac(e)==="object"){for(var r in e)if(!k1(e[r],t[r]))return!1;return!0}return!1}var T0e=function(){function e(t,r,o){v0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return y0e(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=S0e(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=k0e(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),er(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 T1(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 T0e(e,o,r);e._vue_visibilityState=s}}function C0e(e,t,r){var o=t.value,s=t.oldValue;if(!k1(o,s)){var c=e._vue_visibilityState;if(!o){C1(e);return}c?c.createObserver(o,r):T1(e,{value:o},r)}}function C1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var E0e={beforeMount:T1,updated:C0e,unmounted:C1},L0e={itemsLimit:1e3},A0e=/(auto|scroll)/;function E1(e,t){return e.parentNode===null?t:E1(e.parentNode,t.concat([e]))}var td=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},M0e=function(t){return td(t,"overflow")+td(t,"overflow-y")+td(t,"overflow-x")},N0e=function(t){return A0e.test(M0e(t))};function E0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=E1(e.parentNode,[]),r=0;r<t.length;r+=1)if(N0e(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Kd(e){"@babel/helpers - typeof";return Kd=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},Kd(e)}var $0e={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 O0e(){return this.items.length&&Kd(this.items[0])!=="object"}var Xd=!1;if(typeof window<"u"){Xd=!1;try{var P0e=Object.defineProperty({},"passive",{get:function(){Xd=!0}});window.addEventListener("test",null,P0e)}catch{}}let R0e=0;var ip={name:"RecycleScroller",components:{ResizeObserver:Pu},directives:{ObserveVisibility:E0e},props:{...$0e,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:O0e,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=lh({id:R0e++,index:t,used:!0,key:o,type:s}),f=oh({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,_=this.pool,L=this.itemIndexByKey;let C,N,A,E,O;if(!p)C=N=E=O=A=0;else if(this.$_prerender)C=E=0,N=O=Math.min(this.prerender,h.length),A=null;else{const G=this.getScroll();if(t){let V=G.start-this.$_lastUpdateScrollPosition;if(V<0&&(V=-V),r===null&&V<c||V<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const X=this.buffer;G.start-=X,G.end+=X;let Q=0;if(this.$refs.before&&(Q=this.$refs.before.scrollHeight,G.start-=Q),this.$refs.after){const V=this.$refs.after.scrollHeight;G.end+=V}if(r===null){let V,I=0,k=p-1,H=~~(p/2),W;do W=H,V=v[H].accumulator,V<G.start?I=H:H<p-1&&v[H+1].accumulator>G.start&&(k=H),H=~~((I+k)/2);while(H!==W);for(H<0&&(H=0),C=H,A=v[p-1].accumulator,N=H;N<p&&v[N].accumulator<G.end;N++);for(N===-1?N=h.length-1:(N++,N>p&&(N=p)),E=C;E<p&&Q+v[E].accumulator<G.start;E++);for(O=E;O<p&&Q+v[O].accumulator<G.end;O++);}else{C=~~(G.start/r*o);const V=C%o;C-=V,N=Math.ceil(G.end/r*o),E=Math.max(0,Math.floor((G.start-Q)/r*o)),O=Math.floor((G.end-Q)/r*o),C<0&&(C=0),N>p&&(N=p),E<0&&(E=0),O>p&&(O=p),A=Math.ceil(p/o)*r}}N-C>L0e.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let M;const z=C<=this.$_endIndex&&N>=this.$_startIndex;if(z)for(let G=0,X=_.length;G<X;G++)M=_[G],M.nr.used&&(e&&(M.nr.index=L[M.item[d]]),(M.nr.index==null||M.nr.index<C||M.nr.index>=N)&&this.unuseView(M));const B=z?null:new Map;let ne,re,oe;for(let G=C;G<N;G++){ne=h[G];const X=d?ne[d]:ne;if(X==null)throw new Error(`Key is ${X} on item (keyField is '${d}')`);if(M=y.get(X),!r&&!v[G].size){M&&this.unuseView(M);continue}re=ne[f];let Q=b.get(re),V=!1;if(!M)z?Q&&Q.length?M=Q.pop():M=this.addView(_,G,ne,X,re):(oe=B.get(re)||0,(!Q||oe>=Q.length)&&(M=this.addView(_,G,ne,X,re),this.unuseView(M,!0),Q=b.get(re)),M=Q[oe],B.set(re,oe+1)),y.delete(M.nr.key),M.nr.used=!0,M.nr.index=G,M.nr.key=X,M.nr.type=re,y.set(X,M),V=!0;else if(!M.nr.used&&(M.nr.used=!0,V=!0,Q)){const I=Q.indexOf(M);I!==-1&&Q.splice(I,1)}M.item=ne,V&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(M.position=v[G-1].accumulator,M.offset=0):(M.position=Math.floor(G/o)*r,M.offset=G%o*s)}return this.$_startIndex=C,this.$_endIndex=N,this.emitUpdate&&this.$emit("update",C,N,E,O),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=E0(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,Xd?{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=E0(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 D0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},z0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function I0e(e,t,r,o,s,c){const f=Eo("ResizeObserver"),d=ai("observe-visibility");return St((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",D0e,[dn(e.$slots,"before")],512)):et("v-if",!0),(le(),ot(vv(r.listTag),{ref:"wrapper",style:Zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:ct(()=>[(le(!0),be(dt,null,ii(s.pool,h=>(le(),ot(vv(r.itemTag),ti({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}]]},VS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:ct(()=>[dn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),dn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(le(),be("div",z0e,[dn(e.$slots,"after")],512)):et("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ip.render=I0e;ip.__file="src/components/RecycleScroller.vue";function F0e(e){const t=$e(()=>$d.value?!1:!Qe.onlyTests),r=$e(()=>Nn.value===""),o=Ke(Nn.value);cw(Nn,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Nn.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){ks.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 Gt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Le.filterNodes()},{flush:"post"}),Gt(()=>wr.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:ks,filter:Qe,search:Nn,disableFilter:t,isFiltered:Pw,isFilteredByStatus:$d,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Mu,testsTotal:oue,uiEntries:Rn}}const H0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},q0e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},B0e=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),W0e=["op"],U0e=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),V0e=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),j0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},G0e={"text-red5":""},K0e=Y("span",null,"/",-1),X0e={"text-yellow5":""},Y0e={"text-green5":""},Z0e=Y("span",null,"/",-1),J0e={class:"text-purple5:50"},Q0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},eye=Y("div",{op30:""}," No matched test ",-1),tye=["disabled"],nye=["disabled"],rye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},iye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),oye=Y("div",{op30:""}," Loading... ",-1),sye=[iye,oye],lye=pt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Ke(),{initialized:s,filter:c,search:f,disableFilter:d,isFiltered:h,isFilteredByStatus:p,disableClearSearch:v,clearAll:y,clearSearch:b,clearFilter:_,filteredFiles:L,testsTotal:C,uiEntries:N}=F0e(o),A=Ke("grid-cols-2"),E=Ke("grid-col-span-2"),O=Ke();return gw(O,M=>{const{width:z}=M[0].contentRect;z<420?(A.value="grid-cols-2",E.value="grid-col-span-2"):(A.value="grid-cols-4",E.value="grid-col-span-4")}),(M,z)=>{const B=As,ne=f0e,re=c0e,oe=Zme,G=ai("tooltip");return le(),be("div",{ref_key:"testExplorerRef",ref:O,h:"full",flex:"~ col"},[Y("div",null,[Y("div",H0e,[dn(M.$slots,"header",{filteredFiles:q(h)||q(p)?q(L):void 0})]),Y("div",q0e,[B0e,St(Y("input",{ref_key:"searchBox",ref:o,"onUpdate:modelValue":z[0]||(z[0]=X=>It(f)?f.value=X:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:q(f).length?"100":"50",onKeydown:[z[1]||(z[1]=md(X=>q(b)(!1),["esc"])),z[2]||(z[2]=md(X=>r("run",q(h)||q(p)?q(L):void 0),["enter"]))]},null,40,W0e),[[nT,q(f)]]),St(Pe(B,{disabled:q(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[3]||(z[3]=X=>q(b)(!0))},null,8,["disabled"]),[[G,"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(q(A))},[Y("div",{class:st(q(E)),flex:"~ gap-2 items-center"},[U0e,V0e,St(Pe(B,{disabled:q(d),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[4]||(z[4]=X=>q(_)(!1))},null,8,["disabled"]),[[G,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ne,{modelValue:q(c).failed,"onUpdate:modelValue":z[5]||(z[5]=X=>q(c).failed=X),label:"Fail"},null,8,["modelValue"]),Pe(ne,{modelValue:q(c).success,"onUpdate:modelValue":z[6]||(z[6]=X=>q(c).success=X),label:"Pass"},null,8,["modelValue"]),Pe(ne,{modelValue:q(c).skipped,"onUpdate:modelValue":z[7]||(z[7]=X=>q(c).skipped=X),label:"Skip"},null,8,["modelValue"]),Pe(ne,{modelValue:q(c).onlyTests,"onUpdate:modelValue":z[8]||(z[8]=X=>q(c).onlyTests=X),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:z[12]||(z[12]=(...X)=>q(Tm)&&q(Tm)(...X))},[Pe(oe,null,US({default:ct(()=>[(q(h)||q(p))&&q(N).length===0?(le(),be(dt,{key:0},[q(s)?(le(),be("div",Q0e,[eye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(q(v)?null:"hover:op100"),disabled:q(v),onClickPassive:z[9]||(z[9]=X=>q(b)(!0))}," Clear Search ",42,tye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(q(d)?null:"hover:op100"),disabled:q(d),onClickPassive:z[10]||(z[10]=X=>q(_)(!0))}," Clear Filter ",42,nye),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]=(...X)=>q(y)&&q(y)(...X))}," Clear All ",32)])):(le(),be("div",rye,sye))],64)):(le(),ot(q(ip),{key:1,"page-mode":"","key-field":"id","item-size":28,items:q(N),buffer:100},{default:ct(({item:X})=>[Pe(re,{"task-id":X.id,expandable:X.expandable,type:X.type,current:q(Gi)===X.id,indent:X.indent,name:X.name,typecheck:X.typecheck===!0,"project-name":X.projectName??"","project-name-color":X.projectNameColor??"",state:X.state,duration:X.duration,opened:X.expanded,class:st(["h-28px m-0 p-0",q(Gi)===X.id?"bg-active":""]),"on-item-click":M.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[q(s)?{name:"summary",fn:ct(()=>[Y("div",j0e,[Y("span",G0e," FAIL ("+Ge(q(C).failed)+") ",1),K0e,Y("span",X0e," RUNNING ("+Ge(q(C).running)+") ",1),Y("span",Y0e," PASS ("+Ge(q(C).success)+") ",1),Z0e,Y("span",J0e," SKIP ("+Ge(q(c).onlyTests?q(C).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),aye=""+new URL("../favicon.svg",import.meta.url).href,cye=Y("img",{"w-6":"","h-6":"",src:aye,alt:"Vitest logo"},null,-1),uye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),fye={class:"flex text-lg"},dye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),hye=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),pye=pt({__name:"Navigation",setup(e){function t(){return bt.rpc.updateSnapshot()}const r=$e(()=>ua.value?"light":"dark");function o(d){Gi.value=d.file.id,Ts.value=xr(d.file.id),Sc(!1)}async function s(d){ls.value&&(Jc.value=!0,await er(),Ki.value&&(Sc(!0),await er())),d!=null&&d.length?await Vh(d):await lue()}function c(){Le.collapseAllNodes()}function f(){Le.expandAllNodes()}return(d,h)=>{const p=As,v=lye,y=ai("tooltip");return le(),ot(v,{border:"r base","on-item-click":o,nested:!0,onRun:s},{header:ct(({filteredFiles:b})=>[cye,uye,Y("div",fye,[St(Pe(p,{title:"Collapse tests",disabled:!q(ks),icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=_=>c())},null,8,["disabled"]),[[gl,!q(e0)],[y,"Collapse tests",void 0,{bottom:!0}]]),St(Pe(p,{disabled:!q(ks),title:"Expand tests",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=_=>f())},null,8,["disabled"]),[[gl,q(e0)],[y,"Expand tests",void 0,{bottom:!0}]]),St(Pe(p,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=_=>q(Sc)(!0))},null,512),[[gl,q(Pd)&&!q(ls)||!q(ps)],[y,"Dashboard",void 0,{bottom:!0}]]),q(Pd)&&!q(ls)?(le(),ot(q(mE),{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:ct(()=>[hye]),default:ct(()=>[dye]),_:1})):et("",!0),q(ls)?St((le(),ot(p,{key:1,disabled:q(Jc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=_=>q(pue)())},null,8,["disabled"])),[[gl,!q(Ki)],[y,"Coverage",void 0,{bottom:!0}]]):et("",!0),q(Le).summary.failedSnapshot&&!q(oi)?St((le(),ot(p,{key:2,icon:"i-carbon:result-old",disabled:!q(Le).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=_=>q(Le).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[y,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):et("",!0),q(oi)?et("",!0):St((le(),ot(p,{key:3,disabled:(b==null?void 0:b.length)===0,icon:"i-carbon:play",onClick:_=>s(b)},null,8,["disabled","onClick"])),[[y,b?b.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),St(Pe(p,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=_=>q(_ue)())},null,512),[[y,`Toggle to ${q(r)} mode`,void 0,{bottom:!0}]])])]),_:1})}}}),gye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},vye=pt({__name:"ProgressBar",setup(e){const{width:t}=ace(),r=$e(()=>Le.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Mce.value?null:"in-progress"),o=$e(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesSuccess/d:0}),s=$e(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesFailed/d:0}),c=$e(()=>Le.summary.files-Le.summary.filesFailed-Le.summary.filesSuccess),f=$e(()=>{const d=Le.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(q(r))},[Y("div",gye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(q(r)),style:Zt(`width: ${q(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(q(r)),style:Zt(`left: ${q(s)}px; width: ${q(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(q(r)),style:Zt(`left: ${q(o)+q(s)}px; width: ${q(f)}px;`)}," ",6)])],2))}}),mye=Qi(vye,[["__scopeId","data-v-38451300"]]),L0={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 sa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},yye=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},bye={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 wye(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)},[dn(e.$slots,"default")],4)}const fc=yye(bye,[["render",wye]]),xye={"h-screen":"","w-screen":"",overflow:"hidden"},_ye=pt({__name:"index",setup(e){const t=hue(),r=Lu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),o=Ym(f=>{f.forEach((d,h)=>{r.value[h]=d.size})},0),s=Ym(f=>{f.forEach((d,h)=>{_c.value[h]=d.size}),Yf(!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=mye,p=pye,v=Gme,y=qve,b=Dve,_=xue,L=fue;return le(),be(dt,null,[Pe(h),Y("div",xye,[Pe(q(L0),{class:"pt-4px",onResized:q(o),onResize:d[2]||(d[2]=C=>q(Yf)(!0)),onReady:c},{default:ct(()=>[Pe(q(fc),{size:q(r)[0]},{default:ct(()=>[Pe(p)]),_:1},8,["size"]),Pe(q(fc),{size:q(r)[1]},{default:ct(()=>[q(Xl)?(le(),ot(q(L0),{id:"details-splitpanes",key:"browser-detail",onResize:d[1]||(d[1]=C=>q(Yf)(!0)),onResized:q(s)},{default:ct(()=>[Pe(q(fc),{size:q(_c)[0],"min-size":"10"},{default:ct(()=>[d[0]||(zc(-1),d[0]=Pe(_),zc(1),d[0])]),_:1},8,["size"]),Pe(q(fc),{size:q(_c)[1],"min-size":"5"},{default:ct(()=>[q(t)?(le(),ot(v,{key:"summary"})):q(Ki)?(le(),ot(y,{key:"coverage",src:q(t0)},null,8,["src"])):(le(),ot(b,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResized"])):(le(),ot(Th,{key:"ui-detail"},{default:ct(()=>[q(t)?(le(),ot(v,{key:"summary"})):q(Ki)?(le(),ot(y,{key:"coverage",src:q(t0)},null,8,["src"])):(le(),ot(b,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized"])]),Pe(L)],64)}}}),Sye=[{name:"index",path:"/",component:_ye,props:!0}],kye={tooltip:vE};Tb.options.instantMove=!0;Tb.options.distance=10;function Tye(){return yC({history:jT(),routes:Sye})}const Cye=[Tye],op=Fy(pT);Cye.forEach(e=>{op.use(e())});Object.entries(kye).forEach(([e,t])=>{op.directive(e,t)});op.mount("#app");
|