@vitest/browser 2.1.0-beta.5 → 2.1.0-beta.7
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 +11 -0
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/{index-JTfsnJeu.css → index-BevOiAy-.css} +1 -1
- package/dist/client/__vitest__/assets/index-CEU6kzsk.js +52 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-CnT07ZeZ.js → orchestrator-qtq9EW1J.js} +243 -91
- package/dist/client/__vitest_browser__/preload-helper-D-WYp1PK.js +317 -0
- package/dist/client/__vitest_browser__/{tester-BG73i7yi.js → tester-Bm6k0JOu.js} +588 -379
- package/dist/client/esm-client-injector.js +1 -0
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/context.js +3 -0
- package/dist/{index-DcU_z8HM.js → index-Cgg35wOd.js} +19 -0
- package/dist/index.d.ts +7 -13
- package/dist/index.js +289 -267
- package/dist/locators/index.d.ts +1 -0
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +1 -1
- package/dist/locators/preview.js +4 -1
- package/dist/locators/webdriverio.js +1 -1
- package/dist/providers.js +1 -1
- package/dist/state.js +1 -1
- package/dist/{webdriver-BdVqnfdE.js → webdriver-Cv9wga63.js} +10 -1
- package/package.json +13 -10
- package/dist/client/__vitest__/assets/index-BzrnDBXn.js +0 -52
- package/dist/client/__vitest_browser__/preload-helper-BrGs795G.js +0 -301
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var I_=Object.defineProperty;var F_=(e,t,r)=>t in e?I_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fs=(e,t,r)=>F_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
-
* @vue/shared v3.4.37
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function sh(e,t){const r=new Set(e.split(","));return o=>r.has(o)}const _t={},vs=[],tr=()=>{},H_=()=>!1,du=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),lh=e=>e.startsWith("onUpdate:"),Kt=Object.assign,ah=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},q_=Object.prototype.hasOwnProperty,ct=(e,t)=>q_.call(e,t),Ie=Array.isArray,ms=e=>ca(e)==="[object Map]",hu=e=>ca(e)==="[object Set]",cv=e=>ca(e)==="[object Date]",Xe=e=>typeof e=="function",$t=e=>typeof e=="string",Hr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",N0=e=>(St(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),$0=Object.prototype.toString,ca=e=>$0.call(e),B_=e=>ca(e).slice(8,-1),P0=e=>ca(e)==="[object Object]",ch=e=>$t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ll=sh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},W_=/-(\w)/g,ir=pu(e=>e.replace(W_,(t,r)=>r?r.toUpperCase():"")),U_=/\B([A-Z])/g,hi=pu(e=>e.replace(U_,"-$1").toLowerCase()),gu=pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),xc=pu(e=>e?`on${gu(e)}`:""),Rn=(e,t)=>!Object.is(e,t),_c=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},O0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},fd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},R0=e=>{const t=$t(e)?Number(e):NaN;return isNaN(t)?e:t};let uv;const D0=()=>uv||(uv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gt(e){if(Ie(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=$t(o)?K_(o):Gt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if($t(e)||St(e))return e}const V_=/;(?![^(]*\))/g,j_=/:([^]+)/,G_=/\/\*[^]*?\*\//g;function K_(e){const t={};return e.replace(G_,"").split(V_).forEach(r=>{if(r){const o=r.split(j_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function lt(e){let t="";if($t(e))t=e;else if(Ie(e))for(let r=0;r<e.length;r++){const o=lt(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function X_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!$t(t)&&(e.class=lt(t)),r&&(e.style=Gt(r)),e}const Y_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z_=sh(Y_);function z0(e){return!!e||e===""}function J_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=vu(e[o],t[o]);return r}function vu(e,t){if(e===t)return!0;let r=cv(e),o=cv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Hr(e),o=Hr(t),r||o)return e===t;if(r=Ie(e),o=Ie(t),r||o)return r&&o?J_(e,t):!1;if(r=St(e),o=St(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||!vu(e[f],t[f]))return!1}}return String(e)===String(t)}function I0(e,t){return e.findIndex(r=>vu(r,t))}const F0=e=>!!(e&&e.__v_isRef===!0),qe=e=>$t(e)?e:e==null?"":Ie(e)||St(e)&&(e.toString===$0||!Xe(e.toString))?F0(e)?qe(e.value):JSON.stringify(e,H0,2):String(e),H0=(e,t)=>F0(t)?H0(e,t.value):ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[qf(o,c)+" =>"]=s,r),{})}:hu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>qf(r))}:Hr(t)?qf(t):St(t)&&!Ie(t)&&!P0(t)?String(t):t,qf=(e,t="")=>{var r;return Hr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.4.37
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Vn;class Q_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Vn,!t&&Vn&&(this.index=(Vn.scopes||(Vn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Vn;try{return Vn=this,t()}finally{Vn=r}}}on(){Vn=this}off(){Vn=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 eS(e,t=Vn){t&&t.active&&t.effects.push(e)}function q0(){return Vn}function tS(e){Vn&&Vn.cleanups.push(e)}let Lo;class uh{constructor(t,r,o,s){this.fn=t,this.trigger=r,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,eS(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ro();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(nS(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),io()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Gi,r=Lo;try{return Gi=!0,Lo=this,this._runnings++,fv(this),this.fn()}finally{dv(this),this._runnings--,Lo=r,Gi=t}}stop(){this.active&&(fv(this),dv(this),this.onStop&&this.onStop(),this.active=!1)}}function nS(e){return e.value}function fv(e){e._trackId++,e._depsLength=0}function dv(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)B0(e.deps[t],e);e.deps.length=e._depsLength}}function B0(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Gi=!0,dd=0;const W0=[];function ro(){W0.push(Gi),Gi=!1}function io(){const e=W0.pop();Gi=e===void 0?!0:e}function fh(){dd++}function dh(){for(dd--;!dd&&hd.length;)hd.shift()()}function U0(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&B0(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const hd=[];function V0(e,t,r){fh();for(const o of e.keys()){let s;o._dirtyLevel<t&&(s??(s=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(s??(s=e.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&hd.push(o.scheduler)))}dh()}const j0=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},zc=new WeakMap,Ao=Symbol(""),pd=Symbol("");function Fn(e,t,r){if(Gi&&Lo){let o=zc.get(e);o||zc.set(e,o=new Map);let s=o.get(r);s||o.set(r,s=j0(()=>o.delete(r))),U0(Lo,s)}}function oi(e,t,r,o,s,c){const f=zc.get(e);if(!f)return;let d=[];if(t==="clear")d=[...f.values()];else if(r==="length"&&Ie(e)){const h=Number(o);f.forEach((p,v)=>{(v==="length"||!Hr(v)&&v>=h)&&d.push(p)})}else switch(r!==void 0&&d.push(f.get(r)),t){case"add":Ie(e)?ch(r)&&d.push(f.get("length")):(d.push(f.get(Ao)),ms(e)&&d.push(f.get(pd)));break;case"delete":Ie(e)||(d.push(f.get(Ao)),ms(e)&&d.push(f.get(pd)));break;case"set":ms(e)&&d.push(f.get(Ao));break}fh();for(const h of d)h&&V0(h,4);dh()}function rS(e,t){const r=zc.get(e);return r&&r.get(t)}const iS=sh("__proto__,__v_isRef,__isVue"),G0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hr)),hv=oS();function oS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=gt(this);for(let c=0,f=this.length;c<f;c++)Fn(o,"get",c+"");const s=o[t](...r);return s===-1||s===!1?o[t](...r.map(gt)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){ro(),fh();const o=gt(this)[t].apply(this,r);return dh(),io(),o}}),e}function sS(e){Hr(e)||(e=String(e));const t=gt(this);return Fn(t,"has",e),t.hasOwnProperty(e)}class K0{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?bS:J0:c?Z0:Y0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Ie(t);if(!s){if(f&&ct(hv,r))return Reflect.get(hv,r,o);if(r==="hasOwnProperty")return sS}const d=Reflect.get(t,r,o);return(Hr(r)?G0.has(r):iS(r))||(s||Fn(t,"get",r),c)?d:Pt(d)?f&&ch(r)?d:d.value:St(d)?s?ua(d):Xn(d):d}}class X0 extends K0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=$o(c);if(!Es(o)&&!$o(o)&&(c=gt(c),o=gt(o)),!Ie(t)&&Pt(c)&&!Pt(o))return h?!1:(c.value=o,!0)}const f=Ie(t)&&ch(r)?Number(r)<t.length:ct(t,r),d=Reflect.set(t,r,o,s);return t===gt(s)&&(f?Rn(o,c)&&oi(t,"set",r,o):oi(t,"add",r,o)),d}deleteProperty(t,r){const o=ct(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&oi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Hr(r)||!G0.has(r))&&Fn(t,"has",r),o}ownKeys(t){return Fn(t,"iterate",Ie(t)?"length":Ao),Reflect.ownKeys(t)}}class lS extends K0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const aS=new X0,cS=new lS,uS=new X0(!0);const hh=e=>e,mu=e=>Reflect.getPrototypeOf(e);function ec(e,t,r=!1,o=!1){e=e.__v_raw;const s=gt(e),c=gt(t);r||(Rn(t,c)&&Fn(s,"get",t),Fn(s,"get",c));const{has:f}=mu(s),d=o?hh:r?yh:Bl;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 tc(e,t=!1){const r=this.__v_raw,o=gt(r),s=gt(e);return t||(Rn(e,s)&&Fn(o,"has",e),Fn(o,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function nc(e,t=!1){return e=e.__v_raw,!t&&Fn(gt(e),"iterate",Ao),Reflect.get(e,"size",e)}function pv(e,t=!1){!t&&!Es(e)&&!$o(e)&&(e=gt(e));const r=gt(this);return mu(r).has.call(r,e)||(r.add(e),oi(r,"add",e,e)),this}function gv(e,t,r=!1){!r&&!Es(t)&&!$o(t)&&(t=gt(t));const o=gt(this),{has:s,get:c}=mu(o);let f=s.call(o,e);f||(e=gt(e),f=s.call(o,e));const d=c.call(o,e);return o.set(e,t),f?Rn(t,d)&&oi(o,"set",e,t):oi(o,"add",e,t),this}function vv(e){const t=gt(this),{has:r,get:o}=mu(t);let s=r.call(t,e);s||(e=gt(e),s=r.call(t,e)),o&&o.call(t,e);const c=t.delete(e);return s&&oi(t,"delete",e,void 0),c}function mv(){const e=gt(this),t=e.size!==0,r=e.clear();return t&&oi(e,"clear",void 0,void 0),r}function rc(e,t){return function(o,s){const c=this,f=c.__v_raw,d=gt(f),h=t?hh:e?yh:Bl;return!e&&Fn(d,"iterate",Ao),f.forEach((p,v)=>o.call(s,h(p),h(v),c))}}function ic(e,t,r){return function(...o){const s=this.__v_raw,c=gt(s),f=ms(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?hh:t?yh:Bl;return!t&&Fn(c,"iterate",h?pd:Ao),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function Ai(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fS(){const e={get(c){return ec(this,c)},get size(){return nc(this)},has:tc,add:pv,set:gv,delete:vv,clear:mv,forEach:rc(!1,!1)},t={get(c){return ec(this,c,!1,!0)},get size(){return nc(this)},has:tc,add(c){return pv.call(this,c,!0)},set(c,f){return gv.call(this,c,f,!0)},delete:vv,clear:mv,forEach:rc(!1,!0)},r={get(c){return ec(this,c,!0)},get size(){return nc(this,!0)},has(c){return tc.call(this,c,!0)},add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear"),forEach:rc(!0,!1)},o={get(c){return ec(this,c,!0,!0)},get size(){return nc(this,!0)},has(c){return tc.call(this,c,!0)},add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear"),forEach:rc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{e[c]=ic(c,!1,!1),r[c]=ic(c,!0,!1),t[c]=ic(c,!1,!0),o[c]=ic(c,!0,!0)}),[e,r,t,o]}const[dS,hS,pS,gS]=fS();function ph(e,t){const r=t?e?gS:pS:e?hS:dS;return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ct(r,s)&&s in o?r:o,s,c)}const vS={get:ph(!1,!1)},mS={get:ph(!1,!0)},yS={get:ph(!0,!1)};const Y0=new WeakMap,Z0=new WeakMap,J0=new WeakMap,bS=new WeakMap;function wS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xS(e){return e.__v_skip||!Object.isExtensible(e)?0:wS(B_(e))}function Xn(e){return $o(e)?e:vh(e,!1,aS,vS,Y0)}function gh(e){return vh(e,!1,uS,mS,Z0)}function ua(e){return vh(e,!0,cS,yS,J0)}function vh(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=xS(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function Al(e){return $o(e)?Al(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function Es(e){return!!(e&&e.__v_isShallow)}function Q0(e){return e?!!e.__v_raw:!1}function gt(e){const t=e&&e.__v_raw;return t?gt(t):e}function mh(e){return Object.isExtensible(e)&&O0(e,"__v_skip",!0),e}const Bl=e=>St(e)?Xn(e):e,yh=e=>St(e)?ua(e):e;class ey{constructor(t,r,o,s){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new uh(()=>t(this._value),()=>Ml(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=gt(this);return(!t._cacheable||t.effect.dirty)&&Rn(t._value,t._value=t.effect.run())&&Ml(t,4),bh(t),t.effect._dirtyLevel>=2&&Ml(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _S(e,t,r=!1){let o,s;const c=Xe(e);return c?(o=e,s=tr):(o=e.get,s=e.set),new ey(o,s,c||!s,r)}function bh(e){var t;Gi&&Lo&&(e=gt(e),U0(Lo,(t=e.dep)!=null?t:e.dep=j0(()=>e.dep=void 0,e instanceof ey?e:void 0)))}function Ml(e,t=4,r,o){e=gt(e);const s=e.dep;s&&V0(s,t)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function Be(e){return ty(e,!1)}function Br(e){return ty(e,!0)}function ty(e,t){return Pt(e)?e:new SS(e,t)}class SS{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:gt(t),this._value=r?t:Bl(t)}get value(){return bh(this),this._value}set value(t){const r=this.__v_isShallow||Es(t)||$o(t);t=r?t:gt(t),Rn(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=r?t:Bl(t),Ml(this,4))}}function I(e){return Pt(e)?e.value:e}const kS={get:(e,t,r)=>I(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Pt(s)&&!Pt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function ny(e){return Al(e)?e:new Proxy(e,kS)}class CS{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=t(()=>bh(this),()=>Ml(this));this._get=r,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ry(e){return new CS(e)}function TS(e){const t=Ie(e)?new Array(e.length):{};for(const r in e)t[r]=iy(e,r);return t}class ES{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 rS(gt(this._object),this._key)}}class LS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function yu(e,t,r){return Pt(e)?e:Xe(e)?new LS(e):St(e)&&arguments.length>1?iy(e,t,r):Be(e)}function iy(e,t,r){const o=e[t];return Pt(o)?o:new ES(e,t,r)}/**
|
|
10
|
-
* @vue/runtime-core v3.4.37
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Ki(e,t,r,o){try{return o?e(...o):e()}catch(s){fa(s,t,r)}}function rr(e,t,r,o){if(Xe(e)){const s=Ki(e,t,r,o);return s&&N0(s)&&s.catch(c=>{fa(c,t,r)}),s}if(Ie(e)){const s=[];for(let c=0;c<e.length;c++)s.push(rr(e[c],t,r,o));return s}}function fa(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){ro(),Ki(h,null,10,[e,f,d]),io();return}}AS(e,r,s,o)}function AS(e,t,r,o=!0){console.error(e)}let Wl=!1,gd=!1;const un=[];let Or=0;const ys=[];let Di=null,ko=0;const oy=Promise.resolve();let wh=null;function ln(e){const t=wh||oy;return e?t.then(this?e.bind(this):e):t}function MS(e){let t=Or+1,r=un.length;for(;t<r;){const o=t+r>>>1,s=un[o],c=Ul(s);c<e||c===e&&s.pre?t=o+1:r=o}return t}function xh(e){(!un.length||!un.includes(e,Wl&&e.allowRecurse?Or+1:Or))&&(e.id==null?un.push(e):un.splice(MS(e.id),0,e),sy())}function sy(){!Wl&&!gd&&(gd=!0,wh=oy.then(ay))}function NS(e){const t=un.indexOf(e);t>Or&&un.splice(t,1)}function vd(e){Ie(e)?ys.push(...e):(!Di||!Di.includes(e,e.allowRecurse?ko+1:ko))&&ys.push(e),sy()}function yv(e,t,r=Wl?Or+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 ly(e){if(ys.length){const t=[...new Set(ys)].sort((r,o)=>Ul(r)-Ul(o));if(ys.length=0,Di){Di.push(...t);return}for(Di=t,ko=0;ko<Di.length;ko++){const r=Di[ko];r.active!==!1&&r()}Di=null,ko=0}}const Ul=e=>e.id==null?1/0:e.id,$S=(e,t)=>{const r=Ul(e)-Ul(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function ay(e){gd=!1,Wl=!0,un.sort($S);try{for(Or=0;Or<un.length;Or++){const t=un[Or];t&&t.active!==!1&&Ki(t,t.i,t.i?15:14)}}finally{Or=0,un.length=0,ly(),Wl=!1,wh=null,(un.length||ys.length)&&ay()}}let Zt=null,bu=null;function Ic(e){const t=Zt;return Zt=e,bu=e&&e.type.__scopeId||null,t}function Is(e){bu=e}function Fs(){bu=null}const cy=e=>st;function st(e,t=Zt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Wc(-1);const c=Ic(t);let f;try{f=e(...s)}finally{Ic(c),o._d&&Wc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function wt(e,t){if(Zt===null)return e;const r=Eu(Zt),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&&Bi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function yo(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&&(ro(),rr(h,r,8,[e.el,d,e,t]),io())}}const zi=Symbol("_leaveCb"),oc=Symbol("_enterCb");function PS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hs(()=>{e.isMounted=!0}),gy(()=>{e.isUnmounting=!0}),e}const Qn=[Function,Array],uy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qn,onEnter:Qn,onAfterEnter:Qn,onEnterCancelled:Qn,onBeforeLeave:Qn,onLeave:Qn,onAfterLeave:Qn,onLeaveCancelled:Qn,onBeforeAppear:Qn,onAppear:Qn,onAfterAppear:Qn,onAppearCancelled:Qn},fy=e=>{const t=e.subTree;return t.component?fy(t.component):t},OS={name:"BaseTransition",props:uy,setup(e,{slots:t}){const r=da(),o=PS();return()=>{const s=t.default&&hy(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=gt(e),{mode:d}=f;if(o.isLeaving)return Bf(c);const h=bv(c);if(!h)return Bf(c);let p=md(h,f,o,r,b=>p=b);Fc(h,p);const v=r.subTree,m=v&&bv(v);if(m&&m.type!==fn&&!Rr(h,m)&&fy(r).type!==fn){const b=md(m,f,o,r);if(Fc(m,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())},Bf(c);d==="in-out"&&h.type!==fn&&(b.delayLeave=(x,E,T)=>{const A=dy(o,m);A[String(m.key)]=m,x[zi]=()=>{E(),x[zi]=void 0,delete p.delayedLeave},p.delayedLeave=T})}return c}}},RS=OS;function dy(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 md(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:E,onLeaveCancelled:T,onBeforeAppear:A,onAppear:N,onAfterAppear:L,onAppearCancelled:P}=t,M=String(e.key),q=dy(r,e),z=(te,j)=>{te&&rr(te,o,9,j)},J=(te,j)=>{const ne=j[1];z(te,j),Ie(te)?te.every(K=>K.length<=1)&&ne():te.length<=1&&ne()},re={mode:f,persisted:d,beforeEnter(te){let j=h;if(!r.isMounted)if(c)j=A||h;else return;te[zi]&&te[zi](!0);const ne=q[M];ne&&Rr(e,ne)&&ne.el[zi]&&ne.el[zi](),z(j,[te])},enter(te){let j=p,ne=v,K=m;if(!r.isMounted)if(c)j=N||p,ne=L||v,K=P||m;else return;let V=!1;const F=te[oc]=k=>{V||(V=!0,k?z(K,[te]):z(ne,[te]),re.delayedLeave&&re.delayedLeave(),te[oc]=void 0)};j?J(j,[te,F]):F()},leave(te,j){const ne=String(e.key);if(te[oc]&&te[oc](!0),r.isUnmounting)return j();z(b,[te]);let K=!1;const V=te[zi]=F=>{K||(K=!0,j(),F?z(T,[te]):z(E,[te]),te[zi]=void 0,q[ne]===e&&delete q[ne])};q[ne]=e,x?J(x,[te,V]):V()},clone(te){const j=md(te,t,r,o,s);return s&&s(j),j}};return re}function Bf(e){if(wu(e))return e=Zi(e),e.children=null,e}function bv(e){if(!wu(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 Fc(e,t){e.shapeFlag&6&&e.component?Fc(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 hy(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===ut?(f.patchFlag&128&&s++,o=o.concat(hy(f.children,t,d))):(t||f.type!==fn)&&o.push(d!=null?Zi(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ft(e,t){return Xe(e)?Kt({name:e.name},t,{setup:e}):e}const Nl=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function DS(e,t){py(e,"a",t)}function zS(e,t){py(e,"da",t)}function py(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(xu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)wu(s.parent.vnode)&&IS(o,t,r,s),s=s.parent}}function IS(e,t,r,o){const s=xu(t,e,o,!0);_u(()=>{ah(o[t],s)},r)}function xu(e,t,r=sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{ro();const d=ha(r),h=rr(t,r,e,f);return d(),io(),h});return o?s.unshift(c):s.push(c),c}}const pi=e=>(t,r=sn)=>{(!Tu||e==="sp")&&xu(e,(...o)=>t(...o),r)},FS=pi("bm"),Hs=pi("m"),HS=pi("bu"),qS=pi("u"),gy=pi("bum"),_u=pi("um"),BS=pi("sp"),WS=pi("rtg"),US=pi("rtc");function VS(e,t=sn){xu("ec",e,t)}const _h="components",jS="directives";function Po(e,t){return Sh(_h,e,!0,t)||e}const vy=Symbol.for("v-ndc");function wv(e){return $t(e)?Sh(_h,e,!1)||e:e||vy}function Wr(e){return Sh(jS,e)}function Sh(e,t,r=!0,o=!1){const s=Zt||sn;if(s){const c=s.type;if(e===_h){const d=qk(c,!1);if(d&&(d===t||d===ir(t)||d===gu(ir(t))))return c}const f=xv(s[e]||c[e],t)||xv(s.appContext[e],t);return!f&&o?c:f}}function xv(e,t){return e&&(e[t]||e[ir(t)]||e[gu(ir(t))])}function ci(e,t,r,o){let s;const c=r;if(Ie(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(St(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 GS(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Ie(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function dn(e,t,r={},o,s){if(Zt.isCE||Zt.parent&&Nl(Zt.parent)&&Zt.parent.isCE)return t!=="default"&&(r.name=t),Pe("slot",r,o&&o());let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&my(c(r)),d=ot(ut,{key:(r.key||f&&f.key||`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),c&&c._c&&(c._d=!0),d}function my(e){return e.some(t=>jl(t)?!(t.type===fn||t.type===ut&&!my(t.children)):!0)?e:null}function KS(e,t){const r={};for(const o in e)r[xc(o)]=e[o];return r}const yd=e=>e?Hy(e)?Eu(e):yd(e.parent):null,$l=Kt(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=>yd(e.parent),$root:e=>yd(e.root),$emit:e=>e.emit,$options:e=>kh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xh(e.update)}),$nextTick:e=>e.n||(e.n=ln.bind(e.proxy)),$watch:e=>wk.bind(e)}),Wf=(e,t)=>e!==_t&&!e.__isScriptSetup&&ct(e,t),XS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Wf(o,t))return f[t]=1,o[t];if(s!==_t&&ct(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&ct(p,t))return f[t]=3,c[t];if(r!==_t&&ct(r,t))return f[t]=4,r[t];bd&&(f[t]=0)}}const v=$l[t];let m,b;if(v)return t==="$attrs"&&Fn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==_t&&ct(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,ct(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Wf(s,t)?(s[t]=r,!0):o!==_t&&ct(o,t)?(o[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==_t&&ct(e,f)||Wf(t,f)||(d=c[0])&&ct(d,f)||ct(o,f)||ct($l,f)||ct(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function YS(){return ZS().attrs}function ZS(){const e=da();return e.setupContext||(e.setupContext=By(e))}function Hc(e){return Ie(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function qc(e,t){return!e||!t?e||t:Ie(e)&&Ie(t)?e.concat(t):Kt({},Hc(e),Hc(t))}let bd=!0;function JS(e){const t=kh(e),r=e.proxy,o=e.ctx;bd=!1,t.beforeCreate&&_v(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:E,activated:T,deactivated:A,beforeDestroy:N,beforeUnmount:L,destroyed:P,unmounted:M,render:q,renderTracked:z,renderTriggered:J,errorCaptured:re,serverPrefetch:te,expose:j,inheritAttrs:ne,components:K,directives:V,filters:F}=t;if(p&&QS(p,o,null),f)for(const W in f){const ie=f[W];Xe(ie)&&(o[W]=ie.bind(r))}if(s){const W=s.call(r,r);St(W)&&(e.data=Xn(W))}if(bd=!0,c)for(const W in c){const ie=c[W],ye=Xe(ie)?ie.bind(r,r):Xe(ie.get)?ie.get.bind(r,r):tr,Ne=!Xe(ie)&&Xe(ie.set)?ie.set.bind(r):tr,We=Ee({get:ye,set:Ne});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>We.value,set:je=>We.value=je})}if(d)for(const W in d)yy(d[W],o,r,W);if(h){const W=Xe(h)?h.call(r):h;Reflect.ownKeys(W).forEach(ie=>{Sc(ie,W[ie])})}v&&_v(v,e,"c");function B(W,ie){Ie(ie)?ie.forEach(ye=>W(ye.bind(r))):ie&&W(ie.bind(r))}if(B(FS,m),B(Hs,b),B(HS,x),B(qS,E),B(DS,T),B(zS,A),B(VS,re),B(US,z),B(WS,J),B(gy,L),B(_u,M),B(BS,te),Ie(j))if(j.length){const W=e.exposed||(e.exposed={});j.forEach(ie=>{Object.defineProperty(W,ie,{get:()=>r[ie],set:ye=>r[ie]=ye})})}else e.exposed||(e.exposed={});q&&e.render===tr&&(e.render=q),ne!=null&&(e.inheritAttrs=ne),K&&(e.components=K),V&&(e.directives=V)}function QS(e,t,r=tr){Ie(e)&&(e=wd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=si(s.from||o,s.default,!0):c=si(s.from||o):c=si(s),Pt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function _v(e,t,r){rr(Ie(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function yy(e,t,r,o){const s=o.includes(".")?Ny(r,o):()=>r[o];if($t(e)){const c=t[e];Xe(c)&&Ht(s,c)}else if(Xe(e))Ht(s,e.bind(r));else if(St(e))if(Ie(e))e.forEach(c=>yy(c,t,r,o));else{const c=Xe(e.handler)?e.handler.bind(r):t[e.handler];Xe(c)&&Ht(s,c,e)}}function kh(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=>Bc(h,p,f,!0)),Bc(h,t,f)),St(t)&&c.set(t,h),h}function Bc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Bc(e,c,r,!0),s&&s.forEach(f=>Bc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=ek[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const ek={data:Sv,props:kv,emits:kv,methods:Cl,computed:Cl,beforeCreate:xn,created:xn,beforeMount:xn,mounted:xn,beforeUpdate:xn,updated:xn,beforeDestroy:xn,beforeUnmount:xn,destroyed:xn,unmounted:xn,activated:xn,deactivated:xn,errorCaptured:xn,serverPrefetch:xn,components:Cl,directives:Cl,watch:nk,provide:Sv,inject:tk};function Sv(e,t){return t?e?function(){return Kt(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function tk(e,t){return Cl(wd(e),wd(t))}function wd(e){if(Ie(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function xn(e,t){return e?[...new Set([].concat(e,t))]:t}function Cl(e,t){return e?Kt(Object.create(null),e,t):t}function kv(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:Kt(Object.create(null),Hc(e),Hc(t??{})):t}function nk(e,t){if(!e)return t;if(!t)return e;const r=Kt(Object.create(null),e);for(const o in t)r[o]=xn(e[o],t[o]);return r}function by(){return{app:null,config:{isNativeTag:H_,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 rk=0;function ik(e,t){return function(o,s=null){Xe(o)||(o=Kt({},o)),s!=null&&!St(s)&&(s=null);const c=by(),f=new WeakSet;let d=!1;const h=c.app={_uid:rk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Wk,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,m){if(!d){const b=Pe(o,s);return b.appContext=c,m===!0?m="svg":m===!1&&(m=void 0),v&&t?t(b,p):e(b,p,m),d=!0,h._container=p,p.__vue_app__=h,Eu(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=bs;bs=h;try{return p()}finally{bs=v}}};return h}}let bs=null;function Sc(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 si(e,t,r=!1){const o=sn||Zt;if(o||bs){const s=bs?bs._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Xe(t)?t.call(o&&o.proxy):t}}const wy={},xy=()=>Object.create(wy),_y=e=>Object.getPrototypeOf(e)===wy;function ok(e,t,r,o=!1){const s={},c=xy();e.propsDefaults=Object.create(null),Sy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function sk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=gt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(ku(e.emitsOptions,b))continue;const x=t[b];if(h)if(ct(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const E=ir(b);s[E]=xd(h,d,E,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{Sy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!ct(t,m)&&((v=hi(m))===m||!ct(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=xd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!ct(t,m))&&(delete c[m],p=!0)}p&&oi(e.attrs,"set","")}function Sy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ll(h))continue;const p=t[h];let v;s&&ct(s,v=ir(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:ku(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=gt(r),p=d||_t;for(let v=0;v<c.length;v++){const m=c[v];r[m]=xd(s,h,m,p[m],e,!ct(p,m))}}return f}function xd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=ct(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Xe(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ha(s);o=p[r]=h.call(null,t),v()}}else o=h}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===hi(r))&&(o=!0))}return o}const lk=new WeakMap;function ky(e,t,r=!1){const o=r?lk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Xe(e)){const v=m=>{h=!0;const[b,x]=ky(m,t,!0);Kt(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,vs),vs;if(Ie(c))for(let v=0;v<c.length;v++){const m=ir(c[v]);Cv(m)&&(f[m]=_t)}else if(c)for(const v in c){const m=ir(v);if(Cv(m)){const b=c[v],x=f[m]=Ie(b)||Xe(b)?{type:b}:Kt({},b),E=x.type;let T=!1,A=!0;if(Ie(E))for(let N=0;N<E.length;++N){const L=E[N],P=Xe(L)&&L.name;if(P==="Boolean"){T=!0;break}else P==="String"&&(A=!1)}else T=Xe(E)&&E.name==="Boolean";x[0]=T,x[1]=A,(T||ct(x,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function Cv(e){return e[0]!=="$"&&!Ll(e)}const Cy=e=>e[0]==="_"||e==="$stable",Ch=e=>Ie(e)?e.map(wr):[wr(e)],ak=(e,t,r)=>{if(t._n)return t;const o=st((...s)=>Ch(t(...s)),r);return o._c=!1,o},Ty=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Cy(s))continue;const c=e[s];if(Xe(c))t[s]=ak(s,c,o);else if(c!=null){const f=Ch(c);t[s]=()=>f}}},Ey=(e,t)=>{const r=Ch(t);e.slots.default=()=>r},Ly=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},ck=(e,t,r)=>{const o=e.slots=xy();if(e.vnode.shapeFlag&32){const s=t._;s?(Ly(o,t,r),r&&O0(o,"_",s,!0)):Ty(t,o)}else t&&Ey(e,t)},uk=(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:Ly(s,t,r):(c=!t.$stable,Ty(t,s)),f=t}else t&&(Ey(e,t),f={default:1});if(c)for(const d in s)!Cy(d)&&f[d]==null&&delete s[d]};function _d(e,t,r,o,s=!1){if(Ie(e)){e.forEach((b,x)=>_d(b,t&&(Ie(t)?t[x]:t),r,o,s));return}if(Nl(o)&&!s)return;const c=o.shapeFlag&4?Eu(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,m=d.setupState;if(p!=null&&p!==h&&($t(p)?(v[p]=null,ct(m,p)&&(m[p]=null)):Pt(p)&&(p.value=null)),Xe(h))Ki(h,d,12,[f,v]);else{const b=$t(h),x=Pt(h);if(b||x){const E=()=>{if(e.f){const T=b?ct(m,h)?m[h]:v[h]:h.value;s?Ie(T)&&ah(T,c):Ie(T)?T.includes(c)||T.push(c):b?(v[h]=[c],ct(m,h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else b?(v[h]=f,ct(m,h)&&(m[h]=f)):x&&(h.value=f,e.k&&(v[e.k]=f))};f?(E.id=-1,$n(E,r)):E()}}}const fk=Symbol("_vte"),dk=e=>e.__isTeleport,$n=$k;function hk(e){return pk(e)}function pk(e,t){const r=D0();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:x=tr,insertStaticContent:E}=e,T=(O,H,Z,ue=null,le=null,he=null,Se=void 0,fe=null,xe=!!H.dynamicChildren)=>{if(O===H)return;O&&!Rr(O,H)&&(ue=X(O),je(O,le,he,!0),O=null),H.patchFlag===-2&&(xe=!1,H.dynamicChildren=null);const{type:pe,ref:Me,shapeFlag:ze}=H;switch(pe){case Cu:A(O,H,Z,ue);break;case fn:N(O,H,Z,ue);break;case jf:O==null&&L(H,Z,ue,Se);break;case ut:K(O,H,Z,ue,le,he,Se,fe,xe);break;default:ze&1?q(O,H,Z,ue,le,he,Se,fe,xe):ze&6?V(O,H,Z,ue,le,he,Se,fe,xe):(ze&64||ze&128)&&pe.process(O,H,Z,ue,le,he,Se,fe,xe,$e)}Me!=null&&le&&_d(Me,O&&O.ref,he,H||O,!H)},A=(O,H,Z,ue)=>{if(O==null)o(H.el=d(H.children),Z,ue);else{const le=H.el=O.el;H.children!==O.children&&p(le,H.children)}},N=(O,H,Z,ue)=>{O==null?o(H.el=h(H.children||""),Z,ue):H.el=O.el},L=(O,H,Z,ue)=>{[O.el,O.anchor]=E(O.children,H,Z,ue,O.el,O.anchor)},P=({el:O,anchor:H},Z,ue)=>{let le;for(;O&&O!==H;)le=b(O),o(O,Z,ue),O=le;o(H,Z,ue)},M=({el:O,anchor:H})=>{let Z;for(;O&&O!==H;)Z=b(O),s(O),O=Z;s(H)},q=(O,H,Z,ue,le,he,Se,fe,xe)=>{H.type==="svg"?Se="svg":H.type==="math"&&(Se="mathml"),O==null?z(H,Z,ue,le,he,Se,fe,xe):te(O,H,le,he,Se,fe,xe)},z=(O,H,Z,ue,le,he,Se,fe)=>{let xe,pe;const{props:Me,shapeFlag:ze,transition:Re,dirs:Ue}=O;if(xe=O.el=f(O.type,he,Me&&Me.is,Me),ze&8?v(xe,O.children):ze&16&&re(O.children,xe,null,ue,le,Uf(O,he),Se,fe),Ue&&yo(O,null,ue,"created"),J(xe,O,O.scopeId,Se,ue),Me){for(const vt in Me)vt!=="value"&&!Ll(vt)&&c(xe,vt,null,Me[vt],he,ue);"value"in Me&&c(xe,"value",null,Me.value,he),(pe=Me.onVnodeBeforeMount)&&$r(pe,ue,O)}Ue&&yo(O,null,ue,"beforeMount");const Ge=gk(le,Re);Ge&&Re.beforeEnter(xe),o(xe,H,Z),((pe=Me&&Me.onVnodeMounted)||Ge||Ue)&&$n(()=>{pe&&$r(pe,ue,O),Ge&&Re.enter(xe),Ue&&yo(O,null,ue,"mounted")},le)},J=(O,H,Z,ue,le)=>{if(Z&&x(O,Z),ue)for(let he=0;he<ue.length;he++)x(O,ue[he]);if(le){let he=le.subTree;if(H===he){const Se=le.vnode;J(O,Se,Se.scopeId,Se.slotScopeIds,le.parent)}}},re=(O,H,Z,ue,le,he,Se,fe,xe=0)=>{for(let pe=xe;pe<O.length;pe++){const Me=O[pe]=fe?Ii(O[pe]):wr(O[pe]);T(null,Me,H,Z,ue,le,he,Se,fe)}},te=(O,H,Z,ue,le,he,Se)=>{const fe=H.el=O.el;let{patchFlag:xe,dynamicChildren:pe,dirs:Me}=H;xe|=O.patchFlag&16;const ze=O.props||_t,Re=H.props||_t;let Ue;if(Z&&bo(Z,!1),(Ue=Re.onVnodeBeforeUpdate)&&$r(Ue,Z,H,O),Me&&yo(H,O,Z,"beforeUpdate"),Z&&bo(Z,!0),(ze.innerHTML&&Re.innerHTML==null||ze.textContent&&Re.textContent==null)&&v(fe,""),pe?j(O.dynamicChildren,pe,fe,Z,ue,Uf(H,le),he):Se||ie(O,H,fe,null,Z,ue,Uf(H,le),he,!1),xe>0){if(xe&16)ne(fe,ze,Re,Z,le);else if(xe&2&&ze.class!==Re.class&&c(fe,"class",null,Re.class,le),xe&4&&c(fe,"style",ze.style,Re.style,le),xe&8){const Ge=H.dynamicProps;for(let vt=0;vt<Ge.length;vt++){const tt=Ge[vt],nt=ze[tt],It=Re[tt];(It!==nt||tt==="value")&&c(fe,tt,nt,It,le,Z)}}xe&1&&O.children!==H.children&&v(fe,H.children)}else!Se&&pe==null&&ne(fe,ze,Re,Z,le);((Ue=Re.onVnodeUpdated)||Me)&&$n(()=>{Ue&&$r(Ue,Z,H,O),Me&&yo(H,O,Z,"updated")},ue)},j=(O,H,Z,ue,le,he,Se)=>{for(let fe=0;fe<H.length;fe++){const xe=O[fe],pe=H[fe],Me=xe.el&&(xe.type===ut||!Rr(xe,pe)||xe.shapeFlag&70)?m(xe.el):Z;T(xe,pe,Me,null,ue,le,he,Se,!0)}},ne=(O,H,Z,ue,le)=>{if(H!==Z){if(H!==_t)for(const he in H)!Ll(he)&&!(he in Z)&&c(O,he,H[he],null,le,ue);for(const he in Z){if(Ll(he))continue;const Se=Z[he],fe=H[he];Se!==fe&&he!=="value"&&c(O,he,fe,Se,le,ue)}"value"in Z&&c(O,"value",H.value,Z.value,le)}},K=(O,H,Z,ue,le,he,Se,fe,xe)=>{const pe=H.el=O?O.el:d(""),Me=H.anchor=O?O.anchor:d("");let{patchFlag:ze,dynamicChildren:Re,slotScopeIds:Ue}=H;Ue&&(fe=fe?fe.concat(Ue):Ue),O==null?(o(pe,Z,ue),o(Me,Z,ue),re(H.children||[],Z,Me,le,he,Se,fe,xe)):ze>0&&ze&64&&Re&&O.dynamicChildren?(j(O.dynamicChildren,Re,Z,le,he,Se,fe),(H.key!=null||le&&H===le.subTree)&&Ay(O,H,!0)):ie(O,H,Z,Me,le,he,Se,fe,xe)},V=(O,H,Z,ue,le,he,Se,fe,xe)=>{H.slotScopeIds=fe,O==null?H.shapeFlag&512?le.ctx.activate(H,Z,ue,Se,xe):F(H,Z,ue,le,he,Se,xe):k(O,H,xe)},F=(O,H,Z,ue,le,he,Se)=>{const fe=O.component=zk(O,ue,le);if(wu(O)&&(fe.ctx.renderer=$e),Ik(fe,!1,Se),fe.asyncDep){if(le&&le.registerDep(fe,B,Se),!O.el){const xe=fe.subTree=Pe(fn);N(null,xe,H,Z)}}else B(fe,O,H,Z,le,he,Se)},k=(O,H,Z)=>{const ue=H.component=O.component;if(Ck(O,H,Z))if(ue.asyncDep&&!ue.asyncResolved){W(ue,H,Z);return}else ue.next=H,NS(ue.update),ue.effect.dirty=!0,ue.update();else H.el=O.el,ue.vnode=H},B=(O,H,Z,ue,le,he,Se)=>{const fe=()=>{if(O.isMounted){let{next:Me,bu:ze,u:Re,parent:Ue,vnode:Ge}=O;{const Jt=My(O);if(Jt){Me&&(Me.el=Ge.el,W(O,Me,Se)),Jt.asyncDep.then(()=>{O.isUnmounted||fe()});return}}let vt=Me,tt;bo(O,!1),Me?(Me.el=Ge.el,W(O,Me,Se)):Me=Ge,ze&&_c(ze),(tt=Me.props&&Me.props.onVnodeBeforeUpdate)&&$r(tt,Ue,Me,Ge),bo(O,!0);const nt=Vf(O),It=O.subTree;O.subTree=nt,T(It,nt,m(It.el),X(It),O,le,he),Me.el=nt.el,vt===null&&Lh(O,nt.el),Re&&$n(Re,le),(tt=Me.props&&Me.props.onVnodeUpdated)&&$n(()=>$r(tt,Ue,Me,Ge),le)}else{let Me;const{el:ze,props:Re}=H,{bm:Ue,m:Ge,parent:vt}=O,tt=Nl(H);if(bo(O,!1),Ue&&_c(Ue),!tt&&(Me=Re&&Re.onVnodeBeforeMount)&&$r(Me,vt,H),bo(O,!0),ze&&Ye){const nt=()=>{O.subTree=Vf(O),Ye(ze,O.subTree,O,le,null)};tt?H.type.__asyncLoader().then(()=>!O.isUnmounted&&nt()):nt()}else{const nt=O.subTree=Vf(O);T(null,nt,Z,ue,O,le,he),H.el=nt.el}if(Ge&&$n(Ge,le),!tt&&(Me=Re&&Re.onVnodeMounted)){const nt=H;$n(()=>$r(Me,vt,nt),le)}(H.shapeFlag&256||vt&&Nl(vt.vnode)&&vt.vnode.shapeFlag&256)&&O.a&&$n(O.a,le),O.isMounted=!0,H=Z=ue=null}},xe=O.effect=new uh(fe,tr,()=>xh(pe),O.scope),pe=O.update=()=>{xe.dirty&&xe.run()};pe.i=O,pe.id=O.uid,bo(O,!0),pe()},W=(O,H,Z)=>{H.component=O;const ue=O.vnode.props;O.vnode=H,O.next=null,sk(O,H.props,ue,Z),uk(O,H.children,Z),ro(),yv(O),io()},ie=(O,H,Z,ue,le,he,Se,fe,xe=!1)=>{const pe=O&&O.children,Me=O?O.shapeFlag:0,ze=H.children,{patchFlag:Re,shapeFlag:Ue}=H;if(Re>0){if(Re&128){Ne(pe,ze,Z,ue,le,he,Se,fe,xe);return}else if(Re&256){ye(pe,ze,Z,ue,le,he,Se,fe,xe);return}}Ue&8?(Me&16&&Le(pe,le,he),ze!==pe&&v(Z,ze)):Me&16?Ue&16?Ne(pe,ze,Z,ue,le,he,Se,fe,xe):Le(pe,le,he,!0):(Me&8&&v(Z,""),Ue&16&&re(ze,Z,ue,le,he,Se,fe,xe))},ye=(O,H,Z,ue,le,he,Se,fe,xe)=>{O=O||vs,H=H||vs;const pe=O.length,Me=H.length,ze=Math.min(pe,Me);let Re;for(Re=0;Re<ze;Re++){const Ue=H[Re]=xe?Ii(H[Re]):wr(H[Re]);T(O[Re],Ue,Z,null,le,he,Se,fe,xe)}pe>Me?Le(O,le,he,!0,!1,ze):re(H,Z,ue,le,he,Se,fe,xe,ze)},Ne=(O,H,Z,ue,le,he,Se,fe,xe)=>{let pe=0;const Me=H.length;let ze=O.length-1,Re=Me-1;for(;pe<=ze&&pe<=Re;){const Ue=O[pe],Ge=H[pe]=xe?Ii(H[pe]):wr(H[pe]);if(Rr(Ue,Ge))T(Ue,Ge,Z,null,le,he,Se,fe,xe);else break;pe++}for(;pe<=ze&&pe<=Re;){const Ue=O[ze],Ge=H[Re]=xe?Ii(H[Re]):wr(H[Re]);if(Rr(Ue,Ge))T(Ue,Ge,Z,null,le,he,Se,fe,xe);else break;ze--,Re--}if(pe>ze){if(pe<=Re){const Ue=Re+1,Ge=Ue<Me?H[Ue].el:ue;for(;pe<=Re;)T(null,H[pe]=xe?Ii(H[pe]):wr(H[pe]),Z,Ge,le,he,Se,fe,xe),pe++}}else if(pe>Re)for(;pe<=ze;)je(O[pe],le,he,!0),pe++;else{const Ue=pe,Ge=pe,vt=new Map;for(pe=Ge;pe<=Re;pe++){const Qt=H[pe]=xe?Ii(H[pe]):wr(H[pe]);Qt.key!=null&&vt.set(Qt.key,pe)}let tt,nt=0;const It=Re-Ge+1;let Jt=!1,lr=0;const qn=new Array(It);for(pe=0;pe<It;pe++)qn[pe]=0;for(pe=Ue;pe<=ze;pe++){const Qt=O[pe];if(nt>=It){je(Qt,le,he,!0);continue}let Ve;if(Qt.key!=null)Ve=vt.get(Qt.key);else for(tt=Ge;tt<=Re;tt++)if(qn[tt-Ge]===0&&Rr(Qt,H[tt])){Ve=tt;break}Ve===void 0?je(Qt,le,he,!0):(qn[Ve-Ge]=pe+1,Ve>=lr?lr=Ve:Jt=!0,T(Qt,H[Ve],Z,null,le,he,Se,fe,xe),nt++)}const ar=Jt?vk(qn):vs;for(tt=ar.length-1,pe=It-1;pe>=0;pe--){const Qt=Ge+pe,Ve=H[Qt],oo=Qt+1<Me?H[Qt+1].el:ue;qn[pe]===0?T(null,Ve,Z,oo,le,he,Se,fe,xe):Jt&&(tt<0||pe!==ar[tt]?We(Ve,Z,oo,2):tt--)}}},We=(O,H,Z,ue,le=null)=>{const{el:he,type:Se,transition:fe,children:xe,shapeFlag:pe}=O;if(pe&6){We(O.component.subTree,H,Z,ue);return}if(pe&128){O.suspense.move(H,Z,ue);return}if(pe&64){Se.move(O,H,Z,$e);return}if(Se===ut){o(he,H,Z);for(let ze=0;ze<xe.length;ze++)We(xe[ze],H,Z,ue);o(O.anchor,H,Z);return}if(Se===jf){P(O,H,Z);return}if(ue!==2&&pe&1&&fe)if(ue===0)fe.beforeEnter(he),o(he,H,Z),$n(()=>fe.enter(he),le);else{const{leave:ze,delayLeave:Re,afterLeave:Ue}=fe,Ge=()=>o(he,H,Z),vt=()=>{ze(he,()=>{Ge(),Ue&&Ue()})};Re?Re(he,Ge,vt):vt()}else o(he,H,Z)},je=(O,H,Z,ue=!1,le=!1)=>{const{type:he,props:Se,ref:fe,children:xe,dynamicChildren:pe,shapeFlag:Me,patchFlag:ze,dirs:Re,cacheIndex:Ue}=O;if(ze===-2&&(le=!1),fe!=null&&_d(fe,null,Z,O,!0),Ue!=null&&(H.renderCache[Ue]=void 0),Me&256){H.ctx.deactivate(O);return}const Ge=Me&1&&Re,vt=!Nl(O);let tt;if(vt&&(tt=Se&&Se.onVnodeBeforeUnmount)&&$r(tt,H,O),Me&6)Je(O.component,Z,ue);else{if(Me&128){O.suspense.unmount(Z,ue);return}Ge&&yo(O,null,H,"beforeUnmount"),Me&64?O.type.remove(O,H,Z,$e,ue):pe&&!pe.hasOnce&&(he!==ut||ze>0&&ze&64)?Le(pe,H,Z,!1,!0):(he===ut&&ze&384||!le&&Me&16)&&Le(xe,H,Z),ue&&it(O)}(vt&&(tt=Se&&Se.onVnodeUnmounted)||Ge)&&$n(()=>{tt&&$r(tt,H,O),Ge&&yo(O,null,H,"unmounted")},Z)},it=O=>{const{type:H,el:Z,anchor:ue,transition:le}=O;if(H===ut){rt(Z,ue);return}if(H===jf){M(O);return}const he=()=>{s(Z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(O.shapeFlag&1&&le&&!le.persisted){const{leave:Se,delayLeave:fe}=le,xe=()=>Se(Z,he);fe?fe(O.el,he,xe):xe()}else he()},rt=(O,H)=>{let Z;for(;O!==H;)Z=b(O),s(O),O=Z;s(H)},Je=(O,H,Z)=>{const{bum:ue,scope:le,update:he,subTree:Se,um:fe,m:xe,a:pe}=O;Tv(xe),Tv(pe),ue&&_c(ue),le.stop(),he&&(he.active=!1,je(Se,O,H,Z)),fe&&$n(fe,H),$n(()=>{O.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},Le=(O,H,Z,ue=!1,le=!1,he=0)=>{for(let Se=he;Se<O.length;Se++)je(O[Se],H,Z,ue,le)},X=O=>{if(O.shapeFlag&6)return X(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const H=b(O.anchor||O.el),Z=H&&H[fk];return Z?b(Z):H};let ae=!1;const de=(O,H,Z)=>{O==null?H._vnode&&je(H._vnode,null,null,!0):T(H._vnode||null,O,H,null,null,null,Z),H._vnode=O,ae||(ae=!0,yv(),ly(),ae=!1)},$e={p:T,um:je,m:We,r:it,mt:F,mc:re,pc:ie,pbc:j,n:X,o:e};let Te,Ye;return{render:de,hydrate:Te,createApp:ik(de,Te)}}function Uf({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 bo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function gk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ay(e,t,r=!1){const o=e.children,s=t.children;if(Ie(o)&&Ie(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]=Ii(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Ay(f,d)),d.type===Cu&&(d.el=f.el)}}function vk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function My(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:My(t)}function Tv(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const mk=Symbol.for("v-scx"),yk=()=>si(mk);function Th(e,t){return Su(e,null,t)}function bk(e,t){return Su(e,null,{flush:"sync"})}const sc={};function Ht(e,t,r){return Su(e,t,r)}function Su(e,t,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:d}=_t){if(t&&c){const z=t;t=(...J)=>{z(...J),q()}}const h=sn,p=z=>o===!0?z:Bi(z,o===!1?1:void 0);let v,m=!1,b=!1;if(Pt(e)?(v=()=>e.value,m=Es(e)):Al(e)?(v=()=>p(e),m=!0):Ie(e)?(b=!0,m=e.some(z=>Al(z)||Es(z)),v=()=>e.map(z=>{if(Pt(z))return z.value;if(Al(z))return p(z);if(Xe(z))return Ki(z,h,2)})):Xe(e)?t?v=()=>Ki(e,h,2):v=()=>(x&&x(),rr(e,h,3,[E])):v=tr,t&&o){const z=v;v=()=>Bi(z())}let x,E=z=>{x=P.onStop=()=>{Ki(z,h,4),x=P.onStop=void 0}},T;if(Tu)if(E=tr,t?r&&rr(t,h,3,[v(),b?[]:void 0,E]):v(),s==="sync"){const z=yk();T=z.__watcherHandles||(z.__watcherHandles=[])}else return tr;let A=b?new Array(e.length).fill(sc):sc;const N=()=>{if(!(!P.active||!P.dirty))if(t){const z=P.run();(o||m||(b?z.some((J,re)=>Rn(J,A[re])):Rn(z,A)))&&(x&&x(),rr(t,h,3,[z,A===sc?void 0:b&&A[0]===sc?[]:A,E]),A=z)}else P.run()};N.allowRecurse=!!t;let L;s==="sync"?L=N:s==="post"?L=()=>$n(N,h&&h.suspense):(N.pre=!0,h&&(N.id=h.uid),L=()=>xh(N));const P=new uh(v,tr,L),M=q0(),q=()=>{P.stop(),M&&ah(M.effects,P)};return t?r?N():A=P.run():s==="post"?$n(P.run.bind(P),h&&h.suspense):P.run(),T&&T.push(q),q}function wk(e,t,r){const o=this.proxy,s=$t(e)?e.includes(".")?Ny(o,e):()=>o[e]:e.bind(o,o);let c;Xe(t)?c=t:(c=t.handler,r=t);const f=ha(this),d=Su(s,c.bind(o),r);return f(),d}function Ny(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Bi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Pt(e))Bi(e.value,t,r);else if(Ie(e))for(let o=0;o<e.length;o++)Bi(e[o],t,r);else if(hu(e)||ms(e))e.forEach(o=>{Bi(o,t,r)});else if(P0(e)){for(const o in e)Bi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Bi(e[o],t,r)}return e}function Eh(e,t,r=_t){const o=da(),s=ir(t),c=hi(t),f=$y(e,t),d=ry((h,p)=>{let v,m=_t,b;return bk(()=>{const x=e[t];Rn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const E=r.set?r.set(x):x;if(!Rn(E,v)&&!(m!==_t&&Rn(x,m)))return;const T=o.vnode.props;T&&(t in T||s in T||c in T)&&(`onUpdate:${t}`in T||`onUpdate:${s}`in T||`onUpdate:${c}`in T)||(v=x,p()),o.emit(`update:${t}`,E),Rn(x,E)&&Rn(x,m)&&!Rn(E,b)&&p(),m=x,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||_t:d,done:!1}:{done:!0}}}},d}const $y=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${hi(t)}Modifiers`];function xk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||_t;let s=r;const c=t.startsWith("update:"),f=c&&$y(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>$t(v)?v.trim():v)),f.number&&(s=r.map(fd)));let d,h=o[d=xc(t)]||o[d=xc(ir(t))];!h&&c&&(h=o[d=xc(hi(t))]),h&&rr(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,rr(p,e,6,s)}}function Py(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=Py(p,t,!0);v&&(d=!0,Kt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Ie(c)?c.forEach(h=>f[h]=null):Kt(f,c),St(e)&&o.set(e,f),f)}function ku(e,t){return!e||!du(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,hi(t))||ct(e,t))}function Vf(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:x,ctx:E,inheritAttrs:T}=e,A=Ic(e);let N,L;try{if(r.shapeFlag&4){const M=s||o,q=M;N=wr(p.call(q,M,v,m,x,b,E)),L=d}else{const M=t;N=wr(M.length>1?M(m,{attrs:d,slots:f,emit:h}):M(m,null)),L=t.props?d:Sk(d)}}catch(M){Pl.length=0,fa(M,e,1),N=Pe(fn)}let P=N;if(L&&T!==!1){const M=Object.keys(L),{shapeFlag:q}=P;M.length&&q&7&&(c&&M.some(lh)&&(L=kk(L,c)),P=Zi(P,L,!1,!0))}return r.dirs&&(P=Zi(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&(P.transition=r.transition),N=P,Ic(A),N}function _k(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(jl(s)){if(s.type!==fn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Sk=e=>{let t;for(const r in e)(r==="class"||r==="style"||du(r))&&((t||(t={}))[r]=e[r]);return t},kk=(e,t)=>{const r={};for(const o in e)(!lh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Ck(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?Ev(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!ku(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Ev(o,f,p):!0:!!f;return!1}function Ev(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]&&!ku(r,c))return!0}return!1}function Lh({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 Tk=e=>e.__isSuspense;let Sd=0;const Ek={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Lk(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}Ak(e,t,r,o,s,f,d,h,p)}},hydrate:Mk,normalize:Nk},Oy=Ek;function Vl(e,t){const r=e.props&&e.props[t];Xe(r)&&r()}function Lk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Ry(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Vl(e,"onPending"),Vl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ws(b,e.ssFallback)):b.resolve(!1,!0)}function Ak(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:E,pendingBranch:T,isInFallback:A,isHydrating:N}=m;if(T)m.pendingBranch=b,Rr(b,T)?(h(T,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():A&&(N||(h(E,x,r,o,s,null,c,f,d),ws(m,x)))):(m.pendingId=Sd++,N?(m.isHydrating=!1,m.activeBranch=T):p(T,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),A?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(E,x,r,o,s,null,c,f,d),ws(m,x))):E&&Rr(b,E)?(h(E,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(E&&Rr(b,E))h(E,b,r,o,s,m,c,f,d),ws(m,b);else if(Vl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Sd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:L,pendingId:P}=m;L>0?setTimeout(()=>{m.pendingId===P&&m.fallback(x)},L):L===0&&m.fallback(x)}}function Ry(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:E,o:{parentNode:T,remove:A}}=p;let N;const L=Pk(e);L&&t&&t.pendingBranch&&(N=t.pendingId,t.deps++);const P=e.props?R0(e.props.timeout):void 0,M=c,q={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Sd++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(z=!1,J=!1){const{vnode:re,activeBranch:te,pendingBranch:j,pendingId:ne,effects:K,parentComponent:V,container:F}=q;let k=!1;q.isHydrating?q.isHydrating=!1:z||(k=te&&j.transition&&j.transition.mode==="out-in",k&&(te.transition.afterLeave=()=>{ne===q.pendingId&&(b(j,F,c===M?E(te):c,0),vd(K))}),te&&(T(te.el)!==q.hiddenContainer&&(c=E(te)),x(te,V,q,!0)),k||b(j,F,c,0)),ws(q,j),q.pendingBranch=null,q.isInFallback=!1;let B=q.parent,W=!1;for(;B;){if(B.pendingBranch){B.effects.push(...K),W=!0;break}B=B.parent}!W&&!k&&vd(K),q.effects=[],L&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!J&&t.resolve()),Vl(re,"onResolve")},fallback(z){if(!q.pendingBranch)return;const{vnode:J,activeBranch:re,parentComponent:te,container:j,namespace:ne}=q;Vl(J,"onFallback");const K=E(re),V=()=>{q.isInFallback&&(m(null,z,j,K,te,null,ne,d,h),ws(q,z))},F=z.transition&&z.transition.mode==="out-in";F&&(re.transition.afterLeave=V),q.isInFallback=!0,x(re,te,null,!0),F||V()},move(z,J,re){q.activeBranch&&b(q.activeBranch,z,J,re),q.container=z},next(){return q.activeBranch&&E(q.activeBranch)},registerDep(z,J,re){const te=!!q.pendingBranch;te&&q.deps++;const j=z.vnode.el;z.asyncDep.catch(ne=>{fa(ne,z,0)}).then(ne=>{if(z.isUnmounted||q.isUnmounted||q.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:K}=z;Cd(z,ne,!1),j&&(K.el=j);const V=!j&&z.subTree.el;J(z,K,T(j||z.subTree.el),j?null:E(z.subTree),q,f,re),V&&A(V),Lh(z,K.el),te&&--q.deps===0&&q.resolve()})},unmount(z,J){q.isUnmounted=!0,q.activeBranch&&x(q.activeBranch,r,z,J),q.pendingBranch&&x(q.pendingBranch,r,z,J)}};return q}function Mk(e,t,r,o,s,c,f,d,h){const p=t.suspense=Ry(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 Nk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Lv(o?r.default:r),e.ssFallback=o?Lv(r.fallback):Pe(fn)}function Lv(e){let t;if(Xe(e)){const r=Ls&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=zn,Dy())}return Ie(e)&&(e=_k(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function $k(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):vd(e)}function ws(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,Lh(o,s))}function Pk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ut=Symbol.for("v-fgt"),Cu=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),jf=Symbol.for("v-stc"),Pl=[];let zn=null;function oe(e=!1){Pl.push(zn=e?null:[])}function Dy(){Pl.pop(),zn=Pl[Pl.length-1]||null}let Ls=1;function Wc(e){Ls+=e,e<0&&zn&&(zn.hasOnce=!0)}function zy(e){return e.dynamicChildren=Ls>0?zn||vs:null,Dy(),Ls>0&&zn&&zn.push(e),e}function me(e,t,r,o,s,c){return zy(Y(e,t,r,o,s,c,!0))}function ot(e,t,r,o,s){return zy(Pe(e,t,r,o,s,!0))}function jl(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Iy=({key:e})=>e??null,kc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?$t(e)||Pt(e)||Xe(e)?{i:Zt,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ut?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Iy(t),ref:t&&kc(t),scopeId:bu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Zt};return d?(Ah(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=$t(r)?8:16),Ls>0&&!f&&zn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&zn.push(h),h}const Pe=Ok;function Ok(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===vy)&&(e=fn),jl(e)){const d=Zi(e,t,!0);return r&&Ah(d,r),Ls>0&&!c&&zn&&(d.shapeFlag&6?zn[zn.indexOf(e)]=d:zn.push(d)),d.patchFlag=-2,d}if(Bk(e)&&(e=e.__vccOpts),t){t=Fy(t);let{class:d,style:h}=t;d&&!$t(d)&&(t.class=lt(d)),St(h)&&(Q0(h)&&!Ie(h)&&(h=Kt({},h)),t.style=Gt(h))}const f=$t(e)?1:Tk(e)?128:dk(e)?64:St(e)?4:Xe(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function Fy(e){return e?Q0(e)||_y(e)?Kt({},e):e:null}function Zi(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?li(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Iy(p),ref:t&&t.ref?r&&c?Ie(c)?c.concat(kc(t)):[c,kc(t)]:kc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ut?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&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Fc(v,h.clone(v)),v}function pt(e=" ",t=0){return Pe(Cu,null,e,t)}function Ze(e="",t=!1){return t?(oe(),ot(fn,null,e)):Pe(fn,null,e)}function wr(e){return e==null||typeof e=="boolean"?Pe(fn):Ie(e)?Pe(ut,null,e.slice()):typeof e=="object"?Ii(e):Pe(Cu,null,String(e))}function Ii(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Ah(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ie(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ah(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!_y(t)?t._ctx=Zt:s===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Zt},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function li(...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=lt([t.class,o.class]));else if(s==="style")t.style=Gt([t.style,o.style]);else if(du(s)){const c=t[s],f=o[s];f&&c!==f&&!(Ie(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function $r(e,t,r,o=null){rr(e,t,7,[r,o])}const Rk=by();let Dk=0;function zk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Rk,c={uid:Dk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Q_(!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:ky(o,s),emitsOptions:Py(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,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=xk.bind(null,c),e.ce&&e.ce(c),c}let sn=null;const da=()=>sn||Zt;let Uc,kd;{const e=D0(),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)}};Uc=t("__VUE_INSTANCE_SETTERS__",r=>sn=r),kd=t("__VUE_SSR_SETTERS__",r=>Tu=r)}const ha=e=>{const t=sn;return Uc(e),e.scope.on(),()=>{e.scope.off(),Uc(t)}},Av=()=>{sn&&sn.scope.off(),Uc(null)};function Hy(e){return e.vnode.shapeFlag&4}let Tu=!1;function Ik(e,t=!1,r=!1){t&&kd(t);const{props:o,children:s}=e.vnode,c=Hy(e);ok(e,o,c,t),ck(e,s,r);const f=c?Fk(e,t):void 0;return t&&kd(!1),f}function Fk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,XS);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?By(e):null,c=ha(e);ro();const f=Ki(o,e,0,[e.props,s]);if(io(),c(),N0(f)){if(f.then(Av,Av),t)return f.then(d=>{Cd(e,d,t)}).catch(d=>{fa(d,e,0)});e.asyncDep=f}else Cd(e,f,t)}else qy(e,t)}function Cd(e,t,r){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=ny(t)),qy(e,r)}let Mv;function qy(e,t,r){const o=e.type;if(!e.render){if(!t&&Mv&&!o.render){const s=o.template||kh(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=Kt(Kt({isCustomElement:c,delimiters:d},f),h);o.render=Mv(s,p)}}e.render=o.render||tr}{const s=ha(e);ro();try{JS(e)}finally{io(),s()}}}const Hk={get(e,t){return Fn(e,"get",""),e[t]}};function By(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Hk),slots:e.slots,emit:e.emit,expose:t}}function Eu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ny(mh(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 qk(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Bk(e){return Xe(e)&&"__vccOpts"in e}const Ee=(e,t)=>_S(e,t,Tu);function pa(e,t,r){const o=arguments.length;return o===2?St(t)&&!Ie(t)?jl(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&jl(r)&&(r=[r]),Pe(e,t,r))}const Wk="3.4.37";/**
|
|
14
|
-
* @vue/runtime-dom v3.4.37
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/const Uk="http://www.w3.org/2000/svg",Vk="http://www.w3.org/1998/Math/MathML",ni=typeof document<"u"?document:null,Nv=ni&&ni.createElement("template"),jk={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"?ni.createElementNS(Uk,e):t==="mathml"?ni.createElementNS(Vk,e):r?ni.createElement(e,{is:r}):ni.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ni.createTextNode(e),createComment:e=>ni.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ni.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{Nv.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const d=Nv.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]}},Mi="transition",bl="animation",Gl=Symbol("_vtc"),Mh=(e,{slots:t})=>pa(RS,Gk(e),t);Mh.displayName="Transition";const Wy={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Mh.props=Kt({},uy,Wy);const wo=(e,t=[])=>{Ie(e)?e.forEach(r=>r(...t)):e&&e(...t)},$v=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function Gk(e){const t={};for(const K in e)K in Wy||(t[K]=e[K]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,E=Kk(s),T=E&&E[0],A=E&&E[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:P,onLeave:M,onLeaveCancelled:q,onBeforeAppear:z=N,onAppear:J=L,onAppearCancelled:re=P}=t,te=(K,V,F)=>{xo(K,V?v:d),xo(K,V?p:f),F&&F()},j=(K,V)=>{K._isLeaving=!1,xo(K,m),xo(K,x),xo(K,b),V&&V()},ne=K=>(V,F)=>{const k=K?J:L,B=()=>te(V,K,F);wo(k,[V,B]),Pv(()=>{xo(V,K?h:c),Ni(V,K?v:d),$v(k)||Ov(V,o,T,B)})};return Kt(t,{onBeforeEnter(K){wo(N,[K]),Ni(K,c),Ni(K,f)},onBeforeAppear(K){wo(z,[K]),Ni(K,h),Ni(K,p)},onEnter:ne(!1),onAppear:ne(!0),onLeave(K,V){K._isLeaving=!0;const F=()=>j(K,V);Ni(K,m),Ni(K,b),Zk(),Pv(()=>{K._isLeaving&&(xo(K,m),Ni(K,x),$v(M)||Ov(K,o,A,F))}),wo(M,[K,F])},onEnterCancelled(K){te(K,!1),wo(P,[K])},onAppearCancelled(K){te(K,!0),wo(re,[K])},onLeaveCancelled(K){j(K),wo(q,[K])}})}function Kk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return R0(e)}function Ni(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Gl]||(e[Gl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Gl];r&&(r.delete(t),r.size||(e[Gl]=void 0))}function Pv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xk=0;function Ov(e,t,r,o){const s=e._endId=++Xk,c=()=>{s===e._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Yk(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function Yk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Mi}Delay`),c=o(`${Mi}Duration`),f=Rv(s,c),d=o(`${bl}Delay`),h=o(`${bl}Duration`),p=Rv(d,h);let v=null,m=0,b=0;t===Mi?f>0&&(v=Mi,m=f,b=c.length):t===bl?p>0&&(v=bl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Mi:bl:null,b=v?v===Mi?c.length:h.length:0);const x=v===Mi&&/\b(transform|all)(,|$)/.test(o(`${Mi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Rv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Dv(r)+Dv(e[o])))}function Dv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Zk(){return document.body.offsetHeight}function Jk(e,t,r){const o=e[Gl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Vc=Symbol("_vod"),Uy=Symbol("_vsh"),Ui={beforeMount(e,{value:t},{transition:r}){e[Vc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):wl(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),wl(e,!0),o.enter(e)):o.leave(e,()=>{wl(e,!1)}):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[Vc]:"none",e[Uy]=!t}const Qk=Symbol(""),eC=/(^|;)\s*display\s*:/;function tC(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&&Cc(o,d,"")}else for(const f in t)r[f]==null&&Cc(o,f,"");for(const f in r)f==="display"&&(c=!0),Cc(o,f,r[f])}else if(s){if(t!==r){const f=o[Qk];f&&(r+=";"+f),o.cssText=r,c=eC.test(r)}}else t&&e.removeAttribute("style");Vc in e&&(e[Vc]=c?o.display:"",e[Uy]&&(o.display="none"))}const zv=/\s*!important$/;function Cc(e,t,r){if(Ie(r))r.forEach(o=>Cc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=nC(e,t);zv.test(r)?e.setProperty(hi(o),r.replace(zv,""),"important"):e[o]=r}}const Iv=["Webkit","Moz","ms"],Kf={};function nC(e,t){const r=Kf[t];if(r)return r;let o=ir(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=gu(o);for(let s=0;s<Iv.length;s++){const c=Iv[s]+o;if(c in e)return Kf[t]=c}return t}const Fv="http://www.w3.org/1999/xlink";function Hv(e,t,r,o,s,c=Z_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Fv,t.slice(6,t.length)):e.setAttributeNS(Fv,t,r):r==null||c&&!z0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Hr(r)?String(r):r)}function rC(e,t,r,o){if(t==="innerHTML"||t==="textContent"){if(r==null)return;e[t]=r;return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const f=s==="OPTION"?e.getAttribute("value")||"":e.value,d=r==null?"":String(r);(f!==d||!("_value"in e))&&(e.value=d),r==null&&e.removeAttribute(t),e._value=r;return}let c=!1;if(r===""||r==null){const f=typeof e[t];f==="boolean"?r=z0(r):r==null&&f==="string"?(r="",c=!0):f==="number"&&(r=0,c=!0)}try{e[t]=r}catch{}c&&e.removeAttribute(t)}function Co(e,t,r,o){e.addEventListener(t,r,o)}function iC(e,t,r,o){e.removeEventListener(t,r,o)}const qv=Symbol("_vei");function oC(e,t,r,o,s=null){const c=e[qv]||(e[qv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=sC(t);if(o){const p=c[t]=cC(o,s);Co(e,d,p,h)}else f&&(iC(e,d,f,h),c[t]=void 0)}}const Bv=/(?:Once|Passive|Capture)$/;function sC(e){let t;if(Bv.test(e)){t={};let o;for(;o=e.match(Bv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hi(e.slice(2)),t]}let Xf=0;const lC=Promise.resolve(),aC=()=>Xf||(lC.then(()=>Xf=0),Xf=Date.now());function cC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;rr(uC(o,r.value),t,5,[o])};return r.value=e,r.attached=aC(),r}function uC(e,t){if(Ie(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 Wv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Jk(e,o,f):t==="style"?tC(e,r,o):du(t)?lh(t)||oC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dC(e,t,o,f))?(rC(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hv(e,t,o,f,c,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Hv(e,t,o,f))};function dC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wv(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 Wv(t)&&$t(r)?!1:t in e}const jc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?r=>_c(t,r):t};function hC(e){e.target.composing=!0}function Uv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs=Symbol("_assign"),pC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[xs]=jc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=fd(d)),e[xs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",hC),Co(e,"compositionend",Uv),Co(e,"change",Uv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[xs]=jc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?fd(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))}},gC={deep:!0,created(e,t,r){e[xs]=jc(r),Co(e,"change",()=>{const o=e._modelValue,s=vC(e),c=e.checked,f=e[xs];if(Ie(o)){const d=I0(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(hu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Vy(e,c))})},mounted:Vv,beforeUpdate(e,t,r){e[xs]=jc(r),Vv(e,t,r)}};function Vv(e,{value:t,oldValue:r},o){e._modelValue=t,Ie(t)?e.checked=I0(t,o.props.value)>-1:hu(t)?e.checked=t.has(o.props.value):t!==r&&(e.checked=vu(t,Vy(e,!0)))}function vC(e){return"_value"in e?e._value:e.value}function Vy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const mC=["ctrl","shift","alt","meta"],yC={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)=>mC.some(r=>e[`${r}Key`]&&!t.includes(r))},Tc=(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=yC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},bC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Td=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=hi(s.key);if(t.some(f=>f===c||bC[f]===c))return e(s)})},wC=Kt({patchProp:fC},jk);let jv;function xC(){return jv||(jv=hk(wC))}const jy=(...e)=>{const t=xC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=SC(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,_C(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function _C(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function SC(e){return $t(e)?document.querySelector(e):e}const Ur=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},kC={};function CC(e,t){const r=Po("RouterView");return oe(),ot(r)}const TC=Ur(kC,[["render",CC]]);/*!
|
|
18
|
-
* vue-router v4.4.2
|
|
19
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
20
|
-
* @license MIT
|
|
21
|
-
*/const ds=typeof document<"u";function EC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const bt=Object.assign;function Yf(e,t){const r={};for(const o in t){const s=t[o];r[o]=kr(s)?s.map(e):e(s)}return r}const Ol=()=>{},kr=Array.isArray,Gy=/#/g,LC=/&/g,AC=/\//g,MC=/=/g,NC=/\?/g,Ky=/\+/g,$C=/%5B/g,PC=/%5D/g,Xy=/%5E/g,OC=/%60/g,Yy=/%7B/g,RC=/%7C/g,Zy=/%7D/g,DC=/%20/g;function Nh(e){return encodeURI(""+e).replace(RC,"|").replace($C,"[").replace(PC,"]")}function zC(e){return Nh(e).replace(Yy,"{").replace(Zy,"}").replace(Xy,"^")}function Ed(e){return Nh(e).replace(Ky,"%2B").replace(DC,"+").replace(Gy,"%23").replace(LC,"%26").replace(OC,"`").replace(Yy,"{").replace(Zy,"}").replace(Xy,"^")}function IC(e){return Ed(e).replace(MC,"%3D")}function FC(e){return Nh(e).replace(Gy,"%23").replace(NC,"%3F")}function HC(e){return e==null?"":FC(e).replace(AC,"%2F")}function Kl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const qC=/\/$/,BC=e=>e.replace(qC,"");function Zf(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=jC(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Kl(f)}}function WC(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Gv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function UC(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&As(t.matched[o],r.matched[s])&&Jy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Jy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!VC(e[r],t[r]))return!1;return!0}function VC(e,t){return kr(e)?Kv(e,t):kr(t)?Kv(t,e):e===t}function Kv(e,t){return kr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function jC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const $i={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xl;(function(e){e.pop="pop",e.push="push"})(Xl||(Xl={}));var Rl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rl||(Rl={}));function GC(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),BC(e)}const KC=/^[^#]+#/;function XC(e,t){return e.replace(KC,"#")+t}function YC(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 Lu=()=>({left:window.scrollX,top:window.scrollY});function ZC(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=YC(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 Xv(e,t){return(history.state?history.state.position-t:-1)+e}const Ld=new Map;function JC(e,t){Ld.set(e,t)}function QC(e){const t=Ld.get(e);return Ld.delete(e),t}let eT=()=>location.protocol+"//"+location.host;function Qy(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),Gv(h,"")}return Gv(r,e)+o+s}function tT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=Qy(e,location),E=r.value,T=t.value;let A=0;if(b){if(r.value=x,t.value=b,f&&f===E){f=null;return}A=T?b.position-T.position:0}else o(x);s.forEach(N=>{N(r.value,E,{delta:A,type:Xl.pop,direction:A?A>0?Rl.forward:Rl.back:Rl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Lu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function Yv(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Lu():null}}function nT(e){const{history:t,location:r}=window,o={value:Qy(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:eT()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,Yv(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Lu()});c(v.current,v,!0);const m=bt({},Yv(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function rT(e){e=GC(e);const t=nT(e),r=tT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:XC.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 iT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),rT(e)}function oT(e){return typeof e=="string"||e&&typeof e=="object"}function eb(e){return typeof e=="string"||typeof e=="symbol"}const tb=Symbol("");var Zv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zv||(Zv={}));function Ms(e,t){return bt(new Error,{type:e,[tb]:!0},t)}function ei(e,t){return e instanceof Error&&tb in e&&(t==null||!!(e.type&t))}const Jv="[^/]+?",sT={sensitive:!1,strict:!1,start:!0,end:!0},lT=/[.+*?^${}()[\]/\\]/g;function aT(e,t){const r=bt({},sT,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let x=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(lT,"\\$&"),x+=40;else if(b.type===1){const{value:E,repeatable:T,optional:A,regexp:N}=b;c.push({name:E,repeatable:T,optional:A});const L=N||Jv;if(L!==Jv){x+=10;try{new RegExp(`(${L})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${E}" (${L}): `+M.message)}}let P=T?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;m||(P=A&&p.length<2?`(?:/${P})`:"/"+P),A&&(P+="?"),s+=P,x+=20,A&&(x+=-8),T&&(x+=-20),L===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",E=c[b-1];m[E.name]=x&&E.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:E,repeatable:T,optional:A}=x,N=E in p?p[E]:"";if(kr(N)&&!T)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const L=kr(N)?N.join("/"):N;if(!L)if(A)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${E}"`);v+=L}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function cT(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 nb(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=cT(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(Qv(o))return 1;if(Qv(s))return-1}return s.length-o.length}function Qv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uT={type:0,value:""},fT=/[a-zA-Z0-9_]/;function dT(e){if(!e)return[[]];if(e==="/")return[[uT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:fT.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function hT(e,t,r){const o=aT(dT(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function pT(e,t){const r=[],o=new Map;t=nm({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,x){const E=!x,T=gT(m);T.aliasOf=x&&x.record;const A=nm(t,m),N=[T];if("alias"in m){const M=typeof m.alias=="string"?[m.alias]:m.alias;for(const q of M)N.push(bt({},T,{components:x?x.record.components:T.components,path:q,aliasOf:x?x.record:T}))}let L,P;for(const M of N){const{path:q}=M;if(b&&q[0]!=="/"){const z=b.record.path,J=z[z.length-1]==="/"?"":"/";M.path=b.record.path+(q&&J+q)}if(L=hT(M,b,A),x?x.alias.push(L):(P=P||L,P!==L&&P.alias.push(L),E&&m.name&&!tm(L)&&f(m.name)),rb(L)&&h(L),T.children){const z=T.children;for(let J=0;J<z.length;J++)c(z[J],L,x&&x.children[J])}x=x||L}return P?()=>{f(P)}:Ol}function f(m){if(eb(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=yT(m,r);r.splice(b,0,m),m.record.name&&!tm(m)&&o.set(m.record.name,m)}function p(m,b){let x,E={},T,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Ms(1,{location:m});A=x.record.name,E=bt(em(b.params,x.keys.filter(P=>!P.optional).concat(x.parent?x.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),m.params&&em(m.params,x.keys.map(P=>P.name))),T=x.stringify(E)}else if(m.path!=null)T=m.path,x=r.find(P=>P.re.test(T)),x&&(E=x.parse(T),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!x)throw Ms(1,{location:m,currentLocation:b});A=x.record.name,E=bt({},b.params,m.params),T=x.stringify(E)}const N=[];let L=x;for(;L;)N.unshift(L.record),L=L.parent;return{name:A,path:T,params:E,matched:N,meta:mT(N)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function em(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function gT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:vT(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 vT(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 tm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mT(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function nm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function yT(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;nb(e,t[c])<0?o=c:r=c+1}const s=bT(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function bT(e){let t=e;for(;t=t.parent;)if(rb(t)&&nb(e,t)===0)return t}function rb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wT(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(Ky," "),f=c.indexOf("="),d=Kl(f<0?c:c.slice(0,f)),h=f<0?null:Kl(c.slice(f+1));if(d in t){let p=t[d];kr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function rm(e){let t="";for(let r in e){const o=e[r];if(r=IC(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(kr(o)?o.map(c=>c&&Ed(c)):[o&&Ed(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function xT(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=kr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const _T=Symbol(""),im=Symbol(""),$h=Symbol(""),ib=Symbol(""),Ad=Symbol("");function xl(){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 Fi(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(Ms(4,{from:r,to:t})):b instanceof Error?h(b):oT(b)?h(Ms(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function Jf(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(ST(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Fi(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 m=EC(v)?v.default:v;f.components[d]=m;const x=(m.__vccOpts||m)[t];return x&&Fi(x,r,o,f,d,s)()}))}}return c}function ST(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function om(e){const t=si($h),r=si(ib),o=Ee(()=>{const h=I(e.to);return t.resolve(h)}),s=Ee(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(As.bind(null,v));if(b>-1)return b;const x=sm(h[p-2]);return p>1&&sm(v)===x&&m[m.length-1].path!==x?m.findIndex(As.bind(null,h[p-2])):b}),c=Ee(()=>s.value>-1&&ET(r.params,o.value.params)),f=Ee(()=>s.value>-1&&s.value===r.matched.length-1&&Jy(r.params,o.value.params));function d(h={}){return TT(h)?t[I(e.replace)?"replace":"push"](I(e.to)).catch(Ol):Promise.resolve()}return{route:o,href:Ee(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const kT=ft({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:om,setup(e,{slots:t}){const r=Xn(om(e)),{options:o}=si($h),s=Ee(()=>({[lm(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[lm(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:pa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),CT=kT;function TT(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 ET(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(!kr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function sm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lm=(e,t,r)=>e??t??r,LT=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=si(Ad),s=Ee(()=>e.route||o.value),c=si(im,0),f=Ee(()=>{let p=I(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=Ee(()=>s.value.matched[f.value]);Sc(im,Ee(()=>f.value+1)),Sc(_T,d),Sc(Ad,s);const h=Be();return Ht(()=>[h.value,d.value,e.name],([p,v,m],[b,x,E])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!As(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(T=>T(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return am(r.default,{Component:b,route:p});const x=m.props[v],E=x?x===!0?p.params:typeof x=="function"?x(p):x:null,A=pa(b,bt({},E,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return am(r.default,{Component:A,route:p})||A}}});function am(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const AT=LT;function MT(e){const t=pT(e.routes,e),r=e.parseQuery||wT,o=e.stringifyQuery||rm,s=e.history,c=xl(),f=xl(),d=xl(),h=Br($i);let p=$i;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Yf.bind(null,X=>""+X),m=Yf.bind(null,HC),b=Yf.bind(null,Kl);function x(X,ae){let de,$e;return eb(X)?(de=t.getRecordMatcher(X),$e=ae):$e=X,t.addRoute($e,de)}function E(X){const ae=t.getRecordMatcher(X);ae&&t.removeRoute(ae)}function T(){return t.getRoutes().map(X=>X.record)}function A(X){return!!t.getRecordMatcher(X)}function N(X,ae){if(ae=bt({},ae||h.value),typeof X=="string"){const H=Zf(r,X,ae.path),Z=t.resolve({path:H.path},ae),ue=s.createHref(H.fullPath);return bt(H,Z,{params:b(Z.params),hash:Kl(H.hash),redirectedFrom:void 0,href:ue})}let de;if(X.path!=null)de=bt({},X,{path:Zf(r,X.path,ae.path).path});else{const H=bt({},X.params);for(const Z in H)H[Z]==null&&delete H[Z];de=bt({},X,{params:m(H)}),ae.params=m(ae.params)}const $e=t.resolve(de,ae),Te=X.hash||"";$e.params=v(b($e.params));const Ye=WC(o,bt({},X,{hash:zC(Te),path:$e.path})),O=s.createHref(Ye);return bt({fullPath:Ye,hash:Te,query:o===rm?xT(X.query):X.query||{}},$e,{redirectedFrom:void 0,href:O})}function L(X){return typeof X=="string"?Zf(r,X,h.value.path):bt({},X)}function P(X,ae){if(p!==X)return Ms(8,{from:ae,to:X})}function M(X){return J(X)}function q(X){return M(bt(L(X),{replace:!0}))}function z(X){const ae=X.matched[X.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(X):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=L($e):{path:$e},$e.params={}),bt({query:X.query,hash:X.hash,params:$e.path!=null?{}:X.params},$e)}}function J(X,ae){const de=p=N(X),$e=h.value,Te=X.state,Ye=X.force,O=X.replace===!0,H=z(de);if(H)return J(bt(L(H),{state:typeof H=="object"?bt({},Te,H.state):Te,force:Ye,replace:O}),ae||de);const Z=de;Z.redirectedFrom=ae;let ue;return!Ye&&UC(o,$e,de)&&(ue=Ms(16,{to:Z,from:$e}),We($e,$e,!0,!1)),(ue?Promise.resolve(ue):j(Z,$e)).catch(le=>ei(le)?ei(le,2)?le:Ne(le):ie(le,Z,$e)).then(le=>{if(le){if(ei(le,2))return J(bt({replace:O},L(le.to),{state:typeof le.to=="object"?bt({},Te,le.to.state):Te,force:Ye}),ae||Z)}else le=K(Z,$e,!0,O,Te);return ne(Z,$e,le),le})}function re(X,ae){const de=P(X,ae);return de?Promise.reject(de):Promise.resolve()}function te(X){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(X):X()}function j(X,ae){let de;const[$e,Te,Ye]=NT(X,ae);de=Jf($e.reverse(),"beforeRouteLeave",X,ae);for(const H of $e)H.leaveGuards.forEach(Z=>{de.push(Fi(Z,X,ae))});const O=re.bind(null,X,ae);return de.push(O),Le(de).then(()=>{de=[];for(const H of c.list())de.push(Fi(H,X,ae));return de.push(O),Le(de)}).then(()=>{de=Jf(Te,"beforeRouteUpdate",X,ae);for(const H of Te)H.updateGuards.forEach(Z=>{de.push(Fi(Z,X,ae))});return de.push(O),Le(de)}).then(()=>{de=[];for(const H of Ye)if(H.beforeEnter)if(kr(H.beforeEnter))for(const Z of H.beforeEnter)de.push(Fi(Z,X,ae));else de.push(Fi(H.beforeEnter,X,ae));return de.push(O),Le(de)}).then(()=>(X.matched.forEach(H=>H.enterCallbacks={}),de=Jf(Ye,"beforeRouteEnter",X,ae,te),de.push(O),Le(de))).then(()=>{de=[];for(const H of f.list())de.push(Fi(H,X,ae));return de.push(O),Le(de)}).catch(H=>ei(H,8)?H:Promise.reject(H))}function ne(X,ae,de){d.list().forEach($e=>te(()=>$e(X,ae,de)))}function K(X,ae,de,$e,Te){const Ye=P(X,ae);if(Ye)return Ye;const O=ae===$i,H=ds?history.state:{};de&&($e||O?s.replace(X.fullPath,bt({scroll:O&&H&&H.scroll},Te)):s.push(X.fullPath,Te)),h.value=X,We(X,ae,de,O),Ne()}let V;function F(){V||(V=s.listen((X,ae,de)=>{if(!Je.listening)return;const $e=N(X),Te=z($e);if(Te){J(bt(Te,{replace:!0}),$e).catch(Ol);return}p=$e;const Ye=h.value;ds&&JC(Xv(Ye.fullPath,de.delta),Lu()),j($e,Ye).catch(O=>ei(O,12)?O:ei(O,2)?(J(O.to,$e).then(H=>{ei(H,20)&&!de.delta&&de.type===Xl.pop&&s.go(-1,!1)}).catch(Ol),Promise.reject()):(de.delta&&s.go(-de.delta,!1),ie(O,$e,Ye))).then(O=>{O=O||K($e,Ye,!1),O&&(de.delta&&!ei(O,8)?s.go(-de.delta,!1):de.type===Xl.pop&&ei(O,20)&&s.go(-1,!1)),ne($e,Ye,O)}).catch(Ol)}))}let k=xl(),B=xl(),W;function ie(X,ae,de){Ne(X);const $e=B.list();return $e.length?$e.forEach(Te=>Te(X,ae,de)):console.error(X),Promise.reject(X)}function ye(){return W&&h.value!==$i?Promise.resolve():new Promise((X,ae)=>{k.add([X,ae])})}function Ne(X){return W||(W=!X,F(),k.list().forEach(([ae,de])=>X?de(X):ae()),k.reset()),X}function We(X,ae,de,$e){const{scrollBehavior:Te}=e;if(!ds||!Te)return Promise.resolve();const Ye=!de&&QC(Xv(X.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Te(X,ae,Ye)).then(O=>O&&ZC(O)).catch(O=>ie(O,X,ae))}const je=X=>s.go(X);let it;const rt=new Set,Je={currentRoute:h,listening:!0,addRoute:x,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:T,resolve:N,options:e,push:M,replace:q,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(X){const ae=this;X.component("RouterLink",CT),X.component("RouterView",AT),X.config.globalProperties.$router=ae,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>I(h)}),ds&&!it&&h.value===$i&&(it=!0,M(s.location).catch(Te=>{}));const de={};for(const Te in $i)Object.defineProperty(de,Te,{get:()=>h.value[Te],enumerable:!0});X.provide($h,ae),X.provide(ib,gh(de)),X.provide(Ad,h);const $e=X.unmount;rt.add(X),X.unmount=function(){rt.delete(X),rt.size<1&&(p=$i,V&&V(),V=null,h.value=$i,it=!1,W=!1),$e()}}};function Le(X){return X.reduce((ae,de)=>ae.then(()=>te(de)),Promise.resolve())}return Je}function NT(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=>As(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>As(p,h))||s.push(h))}return[r,o,s]}const $T=["top","right","bottom","left"],cm=["start","end"],um=$T.reduce((e,t)=>e.concat(t,t+"-"+cm[0],t+"-"+cm[1]),[]),Yl=Math.min,So=Math.max,PT={left:"right",right:"left",bottom:"top",top:"bottom"},OT={start:"end",end:"start"};function Md(e,t,r){return So(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function _r(e){return e.split("-")[1]}function ob(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ga(e){return["top","bottom"].includes(qr(e))?"y":"x"}function Oh(e){return ob(ga(e))}function sb(e,t,r){r===void 0&&(r=!1);const o=_r(e),s=Oh(e),c=Ph(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function RT(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>OT[t])}function DT(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 zT(e,t,r,o){const s=_r(e);let c=DT(qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>PT[t])}function IT(e){return{top:0,right:0,bottom:0,left:0,...e}}function lb(e){return typeof e!="number"?IT(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function fm(e,t,r){let{reference:o,floating:s}=e;const c=ga(t),f=Oh(t),d=Ph(f),h=qr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(_r(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const FT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=fm(p,o,h),b=o,x={},E=0;for(let T=0;T<d.length;T++){const{name:A,fn:N}=d[T],{x:L,y:P,data:M,reset:q}=await N({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=L??v,m=P??m,x={...x,[A]:{...x[A],...M}},q&&E<=50&&(E++,typeof q=="object"&&(q.placement&&(b=q.placement),q.rects&&(p=q.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):q.rects),{x:v,y:m}=fm(p,b,h)),T=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=zo(t,e),E=lb(x),A=d[b?m==="floating"?"reference":"floating":m],N=Dl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(A)))==null||r?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),L=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),M=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Dl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:L,offsetParent:P,strategy:h}):L);return{top:(N.top-q.top+E.top)/M.y,bottom:(q.bottom-N.bottom+E.bottom)/M.y,left:(N.left-q.left+E.left)/M.x,right:(q.right-N.right+E.right)/M.x}}const HT=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}=zo(e,t)||{};if(p==null)return{};const m=lb(v),b={x:r,y:o},x=Oh(s),E=Ph(x),T=await f.getDimensions(p),A=x==="y",N=A?"top":"left",L=A?"bottom":"right",P=A?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[x]-b[x]-c.floating[E],q=b[x]-c.reference[x],z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let J=z?z[P]:0;(!J||!await(f.isElement==null?void 0:f.isElement(z)))&&(J=d.floating[P]||c.floating[E]);const re=M/2-q/2,te=J/2-T[E]/2-1,j=Yl(m[N],te),ne=Yl(m[L],te),K=j,V=J-T[E]-ne,F=J/2-T[E]/2+re,k=Md(K,F,V),B=!h.arrow&&_r(s)!=null&&F!==k&&c.reference[E]/2-(F<K?j:ne)-T[E]/2<0,W=B?F<K?F-K:F-V:0;return{[x]:b[x]+W,data:{[x]:k,centerOffset:F-k-W,...B&&{alignmentOffset:W}},reset:B}}});function qT(e,t,r){return(e?[...r.filter(s=>_r(s)===e),...r.filter(s=>_r(s)!==e)]:r.filter(s=>qr(s)===s)).filter(s=>e?_r(s)===e||(t?Gc(s)!==s:!1):!0)}const BT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=um,autoAlignment:x=!0,...E}=zo(e,t),T=m!==void 0||b===um?qT(m||null,x,b):b,A=await Au(t,E),N=((r=f.autoPlacement)==null?void 0:r.index)||0,L=T[N];if(L==null)return{};const P=sb(L,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==L)return{reset:{placement:T[0]}};const M=[A[qr(L)],A[P[0]],A[P[1]]],q=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:L,overflows:M}],z=T[N+1];if(z)return{data:{index:N+1,overflows:q},reset:{placement:z}};const J=q.map(j=>{const ne=_r(j.placement);return[j.placement,ne&&v?j.overflows.slice(0,2).reduce((K,V)=>K+V,0):j.overflows[0],j.overflows]}).sort((j,ne)=>j[1]-ne[1]),te=((s=J.filter(j=>j[2].slice(0,_r(j[0])?2:3).every(ne=>ne<=0))[0])==null?void 0:s[0])||J[0][0];return te!==d?{data:{index:N+1,overflows:q},reset:{placement:te}}:{}}}},WT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...A}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const N=qr(s),L=qr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),M=b||(L||!T?[Kc(d)]:RT(d));!b&&E!=="none"&&M.push(...zT(d,T,E,P));const q=[d,...M],z=await Au(t,A),J=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&J.push(z[N]),m){const K=sb(s,f,P);J.push(z[K[0]],z[K[1]])}if(re=[...re,{placement:s,overflows:J}],!J.every(K=>K<=0)){var te,j;const K=(((te=c.flip)==null?void 0:te.index)||0)+1,V=q[K];if(V)return{data:{index:K,overflows:re},reset:{placement:V}};let F=(j=re.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!F)switch(x){case"bestFit":{var ne;const k=(ne=re.map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,ie)=>W+ie,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:ne[0];k&&(F=k);break}case"initialPlacement":F=d;break}if(s!==F)return{reset:{placement:F}}}return{}}}};async function UT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=qr(r),d=_r(r),h=ga(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const VT=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 UT(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}}}}},jT=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:A=>{let{x:N,y:L}=A;return{x:N,y:L}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),m=ga(qr(s)),b=ob(m);let x=p[b],E=p[m];if(c){const A=b==="y"?"top":"left",N=b==="y"?"bottom":"right",L=x+v[A],P=x-v[N];x=Md(L,x,P)}if(f){const A=m==="y"?"top":"left",N=m==="y"?"bottom":"right",L=E+v[A],P=E-v[N];E=Md(L,E,P)}const T=d.fn({...t,[b]:x,[m]:E});return{...T,data:{x:T.x-r,y:T.y-o}}}}},GT=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}=zo(e,t),h=await Au(t,d),p=qr(r),v=_r(r),m=ga(r)==="y",{width:b,height:x}=o.floating;let E,T;p==="top"||p==="bottom"?(E=p,T=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=p,E=v==="end"?"top":"bottom");const A=x-h[E],N=b-h[T],L=!t.middlewareData.shift;let P=A,M=N;if(m){const z=b-h.left-h.right;M=v||L?Yl(N,z):z}else{const z=x-h.top-h.bottom;P=v||L?Yl(A,z):z}if(L&&!v){const z=So(h.left,0),J=So(h.right,0),re=So(h.top,0),te=So(h.bottom,0);m?M=b-2*(z!==0||J!==0?z+J:So(h.left,h.right)):P=x-2*(re!==0||te!==0?re+te:So(h.top,h.bottom))}await f({...t,availableWidth:M,availableHeight:P});const q=await s.getDimensions(c.floating);return b!==q.width||x!==q.height?{reset:{rects:!0}}:{}}}};function nr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dr(e){return nr(e).getComputedStyle(e)}const dm=Math.min,zl=Math.max,Xc=Math.round;function ab(e){const t=Dr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return ub(e)?(e.nodeName||"").toLowerCase():""}let lc;function cb(){if(lc)return lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),lc):navigator.userAgent}function zr(e){return e instanceof nr(e).HTMLElement}function Xi(e){return e instanceof nr(e).Element}function ub(e){return e instanceof nr(e).Node}function hm(e){return typeof ShadowRoot>"u"?!1:e instanceof nr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function KT(e){return["table","td","th"].includes(Ji(e))}function Nd(e){const t=/firefox/i.test(cb()),r=Dr(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 fb(){return!/^((?!chrome|android).)*safari/i.test(cb())}function Rh(e){return["html","body","#document"].includes(Ji(e))}function db(e){return Xi(e)?e:e.contextElement}const hb={x:1,y:1};function _s(e){const t=db(e);if(!zr(t))return hb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=ab(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=db(e);let h=hb;t&&(o?Xi(o)&&(h=_s(o)):h=_s(e));const p=d?nr(d):window,v=!fb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,E=f.height/h.y;if(d){const T=nr(d),A=o&&Xi(o)?nr(o):o;let N=T.frameElement;for(;N&&o&&A!==T;){const L=_s(N),P=N.getBoundingClientRect(),M=getComputedStyle(N);P.x+=(N.clientLeft+parseFloat(M.paddingLeft))*L.x,P.y+=(N.clientTop+parseFloat(M.paddingTop))*L.y,m*=L.x,b*=L.y,x*=L.x,E*=L.y,m+=P.x,b+=P.y,N=nr(N).frameElement}}return{width:x,height:E,top:b,right:m+x,bottom:b+E,left:m,x:m,y:b}}function Yi(e){return((ub(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pb(e){return Zl(Yi(e)).left+Nu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hm(e)&&e.host||Yi(e);return hm(t)?t.host:t}function gb(e){const t=Jl(e);return Rh(t)?t.ownerDocument.body:zr(t)&&Mu(t)?t:gb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=gb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=nr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function pm(e,t,r){return t==="viewport"?Dl(function(o,s){const c=nr(o),f=Yi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=fb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Xi(t)?Dl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=zr(o)?_s(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)):Dl(function(o){const s=Yi(o),c=Nu(o),f=o.ownerDocument.body,d=zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+pb(o);const v=-c.scrollTop;return Dr(f).direction==="rtl"&&(p+=zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Yi(e)))}function gm(e){return zr(e)&&Dr(e).position!=="fixed"?e.offsetParent:null}function vm(e){const t=nr(e);let r=gm(e);for(;r&&KT(r)&&Dr(r).position==="static";)r=gm(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Dr(r).position==="static"&&!Nd(r))?t:r||function(o){let s=Jl(o);for(;zr(s)&&!Rh(s);){if(Nd(s))return s;s=Jl(s)}return null}(e)||t}function XT(e,t,r){const o=zr(t),s=Yi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Nu(t)),zr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=pb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const YT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Yc(p).filter(A=>Xi(A)&&Ji(A)!=="body"),x=null;const E=Dr(p).position==="fixed";let T=E?Jl(p):p;for(;Xi(T)&&!Rh(T);){const A=Dr(T),N=Nd(T);(E?N||x:N||A.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=A:b=b.filter(L=>L!==T),T=Jl(T)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=pm(t,v,s);return p.top=zl(m.top,p.top),p.right=dm(m.right,p.right),p.bottom=dm(m.bottom,p.bottom),p.left=zl(m.left,p.left),p},pm(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=zr(r),c=Yi(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")&&((Ji(r)!=="body"||Mu(c))&&(f=Nu(r)),zr(r))){const p=Zl(r);d=_s(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:Xi,getDimensions:function(e){return zr(e)?ab(e):e.getBoundingClientRect()},getOffsetParent:vm,getDocumentElement:Yi,getScale:_s,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||vm,c=this.getDimensions;return{reference:XT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Dr(e).direction==="rtl"},ZT=(e,t,r)=>{const o=new Map,s={platform:YT,...r},c={...s.platform,_c:o};return FT(e,t,{...s,platform:c})};function vb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?vb(e[r],t[r]):e[r]=t[r])}const Sr={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 Ql(e,t){let r=Sr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Sr.themes[r.$extend]||{}:(r=null,o=Sr[t]):r=null;while(r);return o}function JT(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function mm(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t}let Ns=!1;if(typeof window<"u"){Ns=!1;try{const e=Object.defineProperty({},"passive",{get(){Ns=!0}});window.addEventListener("test",null,e)}catch{}}let mb=!1;typeof window<"u"&&typeof navigator<"u"&&(mb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const yb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ym={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},bm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function wm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Qf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const jn=[];let _o=null;const xm={};function _m(e){let t=xm[e];return t||(t=xm[e]=[]),t}let $d=function(){};typeof window<"u"&&($d=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const ed="__floating-vue__popper",bb=()=>ft({name:"VPopper",provide(){return{[ed]:{parentPopper:this}}},inject:{[ed]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>yb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,$d,Boolean],default:at("container")},boundary:{type:[String,$d],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ed])==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(VT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(BT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(jT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(WT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(HT({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(GT({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 ZT(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),_o&&this.instantMove&&_o.instantMove&&_o!==this.parentPopper){_o.$_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&&(_o=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 Qf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(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<jn.length;r++)t=jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of mm(this.theme))_m(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 Qf(),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,wm(jn,this),jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of mm(this.theme)){const o=_m(r);wm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}_o===this&&(_o=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 Qf(),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,ym,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ym,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,bm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],bm,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,Ns?{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(Il>=e.left&&Il<=e.right&&Fl>=e.top&&Fl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Il-Oi,o=Fl-Ri,s=t.left+t.width/2-Oi+(t.top+t.height/2)-Ri+t.width+t.height,c=Oi+r*s,f=Ri+o*s;return ac(Oi,Ri,c,f,t.left,t.top,t.left,t.bottom)||ac(Oi,Ri,c,f,t.left,t.top,t.right,t.top)||ac(Oi,Ri,c,f,t.right,t.top,t.right,t.bottom)||ac(Oi,Ri,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(mb){const e=Ns?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Sm(t,!0),e),document.addEventListener("touchend",t=>km(t,!0),e)}else window.addEventListener("mousedown",e=>Sm(e,!1),!0),window.addEventListener("click",e=>km(e,!1),!0);window.addEventListener("resize",eE)}function Sm(e,t){if(Sr.autoHideOnMousedown)wb(e,t);else for(let r=0;r<jn.length;r++){const o=jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function km(e,t){Sr.autoHideOnMousedown||wb(e,t)}function wb(e,t){const r={};for(let o=jn.length-1;o>=0;o--){const s=jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Cm(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&&Cm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Cm(e,t,r){return r.closeAllPopover||r.closePopover&&t||QT(e,r)&&!t}function QT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function eE(){for(let e=0;e<jn.length;e++)jn[e].$_computePosition()}function Tm(){for(let e=0;e<jn.length;e++)jn[e].hide()}let Oi=0,Ri=0,Il=0,Fl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Oi=Il,Ri=Fl,Il=e.clientX,Fl=e.clientY},Ns?{passive:!0}:void 0);function ac(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 tE={extends:bb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function nE(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[dn(e.$slots,"default",X_(Fy(e.slotData)))],2)}const rE=$u(tE,[["render",nE]]);function iE(){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 Ec;function Pd(){Pd.init||(Pd.init=!0,Ec=iE()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Pd(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ec&&this.$el.appendChild(e),e.data="about:blank",Ec||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&&(!Ec&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const oE=cy();Is("data-v-b329ee4c");const sE={class:"resize-observer",tabindex:"-1"};Fs();const lE=oE((e,t,r,o,s,c)=>(oe(),ot("div",sE)));Pu.render=lE;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";const xb=(e="theme")=>({computed:{themeClass(){return JT(this[e])}}}),aE=ft({name:"VPopperContent",components:{ResizeObserver:Pu},mixins:[xb()],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}}}),cE=["id","aria-hidden","tabindex","data-popper-placement"],uE={ref:"inner",class:"v-popper__inner"},fE=Y("div",{class:"v-popper__arrow-outer"},null,-1),dE=Y("div",{class:"v-popper__arrow-inner"},null,-1),hE=[fE,dE];function pE(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:lt(["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:Gt(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]=Td(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:Gt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",uE,[e.mounted?(oe(),me(ut,{key:0},[Y("div",null,[dn(e.$slots,"default")]),e.handleResize?(oe(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ze("",!0)],64)):Ze("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Gt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},hE,4)],4)],46,cE)}const _b=$u(aE,[["render",pE]]),Sb={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 Od=function(){};typeof window<"u"&&(Od=window.Element);const gE=ft({name:"VPopperWrapper",components:{Popper:rE,PopperContent:_b},mixins:[Sb,xb("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,Od,Boolean],default:void 0},boundary:{type:[String,Od],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 vE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,li({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:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:E,handleResize:T,onResize:A,classes:N,result:L})=>[dn(e.$slots,"default",{shown:p,show:x,hide:E}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":T,classes:N,result:L,onHide:E,onResize:A},{default:st(()=>[dn(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Dh=$u(gE,[["render",vE]]),mE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},yE={...Dh,name:"VMenu",vPopperTheme:"menu"},kb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},bE=ft({name:"VTooltipDirective",components:{Popper:bb(),PopperContent:_b},mixins:[Sb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(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}}}),wE=["innerHTML"],xE=["textContent"];function _E(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,li({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:E,onResize:T,classes:A,result:N})=>[Pe(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:A,result:N,onHide:x,onResize:T},{default:st(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,wE)):(oe(),me("div",{key:1,textContent:qe(e.finalContent)},null,8,xE))]),_: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 SE=$u(bE,[["render",_E]]),Cb="v-popper--has-tooltip";function kE(e,t){let r=e.placement;if(!r&&t)for(const o of yb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Tb(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=kE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let td,ea,CE=0;function TE(){if(td)return;ea=Be([]),td=jy({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>pa(SE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),td.mount(e)}function Eb(e,t,r){TE();const o=Be(Tb(e,t,r)),s=Be(!1),c={id:CE++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(Cb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Cb)}function Em(e,{value:t,modifiers:r}){const o=Tb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Eb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Lb={beforeMount:Em,updated:Em,beforeUnmount(e){zh(e)}};function Lm(e){e.addEventListener("mousedown",Zc),e.addEventListener("click",Zc),e.addEventListener("touchstart",Ab,Ns?{passive:!0}:!1)}function Am(e){e.removeEventListener("mousedown",Zc),e.removeEventListener("click",Zc),e.removeEventListener("touchstart",Ab),e.removeEventListener("touchend",Mb),e.removeEventListener("touchcancel",Nb)}function Zc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Ab(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",Mb),t.addEventListener("touchcancel",Nb)}}function Mb(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 Nb(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const EE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Lm(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Lm(e):Am(e))},beforeUnmount(e){Am(e)}},LE=Lb,$b=kb;function AE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,vb(Sr,t),e.directive("tooltip",Lb),e.directive("close-popper",EE),e.component("VTooltip",kb),e.component("VDropdown",mE),e.component("VMenu",yE))}const Pb={version:"5.2.2",install:AE,options:Sr},ME=6e4;function Ob(e){return e}const NE=Ob,{clearTimeout:$E,setTimeout:PE}=globalThis,OE=Math.random.bind(Math);function RE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Ob,deserialize:f=NE,resolver:d,timeout:h=ME}=t,p=new Map;let v;const m=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const E=(...A)=>{r(c({m:x,a:A,t:"q"}))};if(s.includes(x))return E.asEvent=E,E;const T=async(...A)=>(await v,new Promise((N,L)=>{var q;const P=zE();let M;h>=0&&(M=PE(()=>{var z;try{throw(z=t.onTimeoutError)==null||z.call(t,x,A),new Error(`[birpc] timeout on calling "${x}"`)}catch(J){L(J)}p.delete(P)},h),typeof M=="object"&&(M=(q=M.unref)==null?void 0:q.call(M))),p.set(P,{resolve:N,reject:L,timeoutId:M}),r(c({m:x,a:A,i:P,t:"q"}))}));return T.asEvent=E,T}});return v=o(async(b,...x)=>{const E=f(b);if(E.t==="q"){const{m:T,a:A}=E;let N,L;const P=d?d(T,e[T]):e[T];if(!P)L=new Error(`[birpc] function "${T}" not found`);else try{N=await P.apply(m,A)}catch(M){L=M}E.i&&(L&&t.onError&&t.onError(L,T,A),r(c({t:"s",i:E.i,r:N,e:L}),...x))}else{const{i:T,r:A,e:N}=E,L=p.get(T);L&&($E(L.timeoutId),N?L.reject(N):L.resolve(A)),p.delete(T)}}),m}const DE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function zE(e=21){let t="",r=e;for(;r--;)t+=DE[OE()*64|0];return t}const{parse:IE,stringify:FE}=JSON,{keys:HE}=Object,ta=String,Rb="string",Mm={},Jc="object",Db=(e,t)=>t,qE=e=>e instanceof ta?ta(e):e,BE=(e,t)=>typeof t===Rb?new ta(t):t,zb=(e,t,r,o)=>{const s=[];for(let c=HE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ta){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=Mm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Mm&&(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,zb.apply(null,h))}return r},Nm=(e,t,r)=>{const o=ta(t.push(r)-1);return e.set(r,o),o},Rd=(e,t)=>{const r=IE(e,BE).map(qE),o=r[0],s=t||Db,c=typeof o===Jc&&o?zb(r,new Set,o,s):o;return s.call({"":c},"",c)},WE=(e,t,r)=>{const o=t&&typeof t===Jc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Db,s=new Map,c=[],f=[];let d=+Nm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=FE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case Jc:if(b===null)return b;case Rb:return s.get(b)||Nm(s,c,b)}return b}};function Ib(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const UE=/^[A-Za-z]:\//;function VE(e=""){return e&&e.replace(/\\/g,"/").replace(UE,t=>t.toUpperCase())}const jE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,$m=/^\/([A-Za-z]:)?$/;function GE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Pm=function(...e){e=e.map(o=>VE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:GE();!s||s.length===0||(t=`${s}/${t}`,r=Om(s))}return t=KE(t,!r),r&&!Om(t)?`/${t}`:t.length>0?t:"."};function KE(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 jE.test(e)},XE=function(e,t){const r=Pm(e).replace($m,"$1").split("/"),o=Pm(t).replace($m,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function YE(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 Fb(e,t,r,o){const s=XE(t,e),c={id:YE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function $s(e){return e.type==="test"||e.type==="custom"}function Hb(e){const t=[],r=Ih(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=Hb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>$s(t)?[t]:[t,...Fh(t.tasks)])}function ZE(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}class qb{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName),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=Fb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Hh(e){return Hb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function JE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new qb,waitForConnection:N,reconnect:T},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(L){var P;L==null||L.forEach(([M,q])=>{v.state.clearFiles({config:M},[q])}),(P=r.onSpecsCollected)==null||P.call(r,L)},onPathsCollected(L){var P;v.state.collectPaths(L),(P=r.onPathsCollected)==null||P.call(r,L)},onCollected(L){var P;v.state.collectFiles(L),(P=r.onCollected)==null||P.call(r,L)},onTaskUpdate(L){var P;v.state.updateTasks(L),(P=r.onTaskUpdate)==null||P.call(r,L)},onUserConsoleLog(L){var P;v.state.updateUserLog(L),(P=r.onUserConsoleLog)==null||P.call(r,L)},onFinished(L,P){var M;(M=r.onFinished)==null||M.call(r,L,P)},onFinishedReportCoverage(){var L;(L=r.onFinishedReportCoverage)==null||L.call(r)}},x={post:L=>v.ws.send(L),on:L=>m=L,serialize:L=>WE(L,(P,M)=>M instanceof Error?{name:M.name,message:M.message,stack:M.stack}:M),deserialize:Rd,onTimeoutError(L){throw new Error(`[vitest-ws-client]: Timeout calling "${L}"`)}};v.rpc=RE(b,x);let E;function T(L=!1){L&&(p=c),v.ws=new h(e),A()}function A(){E=new Promise((L,P)=>{var q,z;const M=(z=(q=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:q.unref)==null?void 0:z.call(q);v.ws.OPEN===v.ws.readyState&&L(),v.ws.addEventListener("open",()=>{p=c,L(),clearTimeout(M)})}),v.ws.addEventListener("message",L=>{m(L.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(T,s)})}A();function N(){return E}return v}const QE=location.port,eL=[location.hostname,QE].filter(Boolean).join(":"),tL=`${location.protocol==="https:"?"wss:":"ws:"}//${eL}/__vitest_api__`,Ir=!!window.METADATA_PATH;var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wb={},ai={};const nL="Á",rL="á",iL="Ă",oL="ă",sL="∾",lL="∿",aL="∾̳",cL="Â",uL="â",fL="´",dL="А",hL="а",pL="Æ",gL="æ",vL="",mL="𝔄",yL="𝔞",bL="À",wL="à",xL="ℵ",_L="ℵ",SL="Α",kL="α",CL="Ā",TL="ā",EL="⨿",LL="&",AL="&",ML="⩕",NL="⩓",$L="∧",PL="⩜",OL="⩘",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="ä",CA="∳",TA="⨑",EA="≌",LA="϶",AA="‵",MA="∽",NA="⋍",$A="∖",PA="⫧",OA="⊽",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="▒",CM="░",TM="▓",EM="█",LM="=⃥",AM="≡⃥",MM="⫭",NM="⌐",$M="𝔹",PM="𝕓",OM="⊥",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="╞",CN="╟",TN="╠",EN="‵",LN="˘",AN="˘",MN="¦",NN="𝒷",$N="ℬ",PN="⁏",ON="∽",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$="𝔠",C$="ℭ",T$="Ч",E$="ч",L$="✓",A$="✓",M$="Χ",N$="χ",$$="ˆ",P$="≗",O$="↺",R$="↻",D$="⊛",z$="⊚",I$="⊝",F$="⊙",H$="®",q$="Ⓢ",B$="⊖",W$="⊕",U$="⊗",V$="○",j$="⧃",G$="≗",K$="⨐",X$="⫯",Y$="⧂",Z$="∲",J$="”",Q$="’",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="©",CP="℗",TP="∳",EP="↵",LP="✗",AP="⨯",MP="𝒞",NP="𝒸",$P="⫏",PP="⫑",OP="⫐",RP="⫒",DP="⋯",zP="⤸",IP="⤵",FP="⋞",HP="⋟",qP="↶",BP="⤽",WP="⩈",UP="⩆",VP="≍",jP="∪",GP="⋓",KP="⩊",XP="⊍",YP="⩅",ZP="∪︀",JP="↷",QP="⤼",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="ď",CO="Д",TO="д",EO="‡",LO="⇊",AO="ⅅ",MO="ⅆ",NO="⤑",$O="⩷",PO="°",OO="∇",RO="Δ",DO="δ",zO="⦱",IO="⥿",FO="𝔇",HO="𝔡",qO="⥥",BO="⇃",WO="⇂",UO="´",VO="˙",jO="˝",GO="`",KO="˜",XO="⋄",YO="⋄",ZO="⋄",JO="♦",QO="♦",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="⌆",CR="∯",TR="¨",ER="⇓",LR="⇐",AR="⇔",MR="⫤",NR="⟸",$R="⟺",PR="⟹",OR="⇒",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="⩮",CD="Ě",TD="ě",ED="Ê",LD="ê",AD="≖",MD="≕",ND="Э",$D="э",PD="⩷",OD="Ė",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="≂",C2="⪖",T2="⪕",E2="⩵",L2="=",A2="≂",M2="≟",N2="⇌",$2="≡",P2="⩸",O2="⧥",R2="⥱",D2="≓",z2="ℯ",I2="ℰ",F2="≐",H2="⩳",q2="≂",B2="Η",W2="η",U2="Ð",V2="ð",j2="Ë",G2="ë",K2="€",X2="!",Y2="∃",Z2="∃",J2="ℰ",Q2="ⅇ",ez="ⅇ",tz="≒",nz="Ф",rz="ф",iz="♀",oz="ffi",sz="ff",lz="ffl",az="𝔉",cz="𝔣",uz="fi",fz="◼",dz="▪",hz="fj",pz="♭",gz="fl",vz="▱",mz="ƒ",yz="𝔽",bz="𝕗",wz="∀",xz="∀",_z="⋔",Sz="⫙",kz="ℱ",Cz="⨍",Tz="½",Ez="⅓",Lz="¼",Az="⅕",Mz="⅙",Nz="⅛",$z="⅔",Pz="⅖",Oz="¾",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="⋙",CI="ℷ",TI="Ѓ",EI="ѓ",LI="⪥",AI="≷",MI="⪒",NI="⪤",$I="⪊",PI="⪊",OI="⪈",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="↔",CF="⇔",TF="↭",EF="^",LF="ℏ",AF="Ĥ",MF="ĥ",NF="♥",$F="♥",PF="…",OF="⊹",RF="𝔥",DF="ℌ",zF="ℋ",IF="⤥",FF="⤦",HF="⇿",qF="∻",BF="↩",WF="↪",UF="𝕙",VF="ℍ",jF="―",GF="─",KF="𝒽",XF="ℋ",YF="ℏ",ZF="Ħ",JF="ħ",QF="≎",eH="≏",tH="⁃",nH="‐",rH="Í",iH="í",oH="",sH="Î",lH="î",aH="И",cH="и",uH="İ",fH="Е",dH="е",hH="¡",pH="⇔",gH="𝔦",vH="ℑ",mH="Ì",yH="ì",bH="ⅈ",wH="⨌",xH="∭",_H="⧜",SH="℩",kH="IJ",CH="ij",TH="Ī",EH="ī",LH="ℑ",AH="ⅈ",MH="ℐ",NH="ℑ",$H="ı",PH="ℑ",OH="⊷",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="ĵ",Cq="Й",Tq="й",Eq="𝔍",Lq="𝔧",Aq="ȷ",Mq="𝕁",Nq="𝕛",$q="𝒥",Pq="𝒿",Oq="Ј",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="⤹",CB="⥳",TB="↢",EB="⤙",LB="⤛",AB="⪫",MB="⪭",NB="⪭︀",$B="⤌",PB="⤎",OB="❲",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="⥎",C3="↤",T3="⊣",E3="⥚",L3="⋋",A3="⧏",M3="⊲",N3="⊴",$3="⥑",P3="⥠",O3="⥘",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="⌞",C5="⇚",T5="⥫",E5="◺",L5="Ŀ",A5="ŀ",M5="⎰",N5="⎰",$5="⪉",P5="⪉",O5="⪇",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="↰",C8="≲",T8="⪍",E8="⪏",L8="[",A8="‘",M8="‚",N8="Ł",$8="ł",P8="⪦",O8="⩹",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="−",CW="∸",TW="⨪",EW="∓",LW="⫛",AW="…",MW="∓",NW="⊧",$W="𝕄",PW="𝕞",OW="∓",RW="𝓂",DW="ℳ",zW="∾",IW="Μ",FW="μ",HW="⊸",qW="⊸",BW="∇",WW="Ń",UW="ń",VW="∠⃒",jW="≉",GW="⩰̸",KW="≋̸",XW="ʼn",YW="≉",ZW="♮",JW="ℕ",QW="♮",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="≢",C4="⤨",T4="≂̸",E4="≫",L4="≪",A4=`
|
|
22
|
-
`,M4="∄",N4="∄",$4="𝔑",P4="𝔫",O4="≧̸",R4="≱",D4="≱",z4="≧̸",I4="⩾̸",F4="⩾̸",H4="⋙̸",q4="≵",B4="≫⃒",W4="≯",U4="≯",V4="≫̸",j4="↮",G4="⇎",K4="⫲",X4="∋",Y4="⋼",Z4="⋺",J4="∋",Q4="Њ",eU="њ",tU="↚",nU="⇍",rU="‥",iU="≦̸",oU="≰",sU="↚",lU="⇍",aU="↮",cU="⇎",uU="≰",fU="≦̸",dU="⩽̸",hU="⩽̸",pU="≮",gU="⋘̸",vU="≴",mU="≪⃒",yU="≮",bU="⋪",wU="⋬",xU="≪̸",_U="∤",SU="",kU=" ",CU="𝕟",TU="ℕ",EU="⫬",LU="¬",AU="≢",MU="≭",NU="∦",$U="∉",PU="≠",OU="≂̸",RU="∄",DU="≯",zU="≱",IU="≧̸",FU="≫̸",HU="≹",qU="⩾̸",BU="≵",WU="≎̸",UU="≏̸",VU="∉",jU="⋵̸",GU="⋹̸",KU="∉",XU="⋷",YU="⋶",ZU="⧏̸",JU="⋪",QU="⋬",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="⊈",C6="⊁",T6="⪰̸",E6="⋡",L6="≿̸",A6="⊃⃒",M6="⊉",N6="≁",$6="≄",P6="≇",O6="≉",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="⊉",CV="⊃⃒",TV="⊉",EV="⫆̸",LV="≹",AV="Ñ",MV="ñ",NV="≸",$V="⋪",PV="⋬",OV="⋫",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="⦿",Cj="𝔒",Tj="𝔬",Ej="˛",Lj="Ò",Aj="ò",Mj="⧁",Nj="⦵",$j="Ω",Pj="∮",Oj="↺",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="ö",CG="⌽",TG="‾",EG="⏞",LG="⎴",AG="⏜",MG="¶",NG="∥",$G="∥",PG="⫳",OG="⫽",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="≼",C9="⪷",T9="≺",E9="≼",L9="≺",A9="⪯",M9="≼",N9="≾",$9="⪯",P9="⪹",O9="⪵",R9="⋨",D9="⪯",z9="⪳",I9="≾",F9="′",H9="″",q9="ℙ",B9="⪹",W9="⪵",U9="⋨",V9="∏",j9="∏",G9="⌮",K9="⌒",X9="⌓",Y9="∝",Z9="∝",J9="∷",Q9="∝",e7="≾",t7="⊰",n7="𝒫",r7="𝓅",i7="Ψ",o7="ψ",s7=" ",l7="𝔔",a7="𝔮",c7="⨌",u7="𝕢",f7="ℚ",d7="⁗",h7="𝒬",p7="𝓆",g7="ℍ",v7="⨖",m7="?",y7="≟",b7='"',w7='"',x7="⇛",_7="∽̱",S7="Ŕ",k7="ŕ",C7="√",T7="⦳",E7="⟩",L7="⟫",A7="⦒",M7="⦥",N7="⟩",$7="»",P7="⥵",O7="⇥",R7="⤠",D7="⤳",z7="→",I7="↠",F7="⇒",H7="⤞",q7="↪",B7="↬",W7="⥅",U7="⥴",V7="⤖",j7="↣",G7="↝",K7="⤚",X7="⤜",Y7="∶",Z7="ℚ",J7="⤍",Q7="⤏",eK="⤐",tK="❳",nK="}",rK="]",iK="⦌",oK="⦎",sK="⦐",lK="Ř",aK="ř",cK="Ŗ",uK="ŗ",fK="⌉",dK="}",hK="Р",pK="р",gK="⤷",vK="⥩",mK="”",yK="”",bK="↳",wK="ℜ",xK="ℛ",_K="ℜ",SK="ℝ",kK="ℜ",CK="▭",TK="®",EK="®",LK="∋",AK="⇋",MK="⥯",NK="⥽",$K="⌋",PK="𝔯",OK="ℜ",RK="⥤",DK="⇁",zK="⇀",IK="⥬",FK="Ρ",HK="ρ",qK="ϱ",BK="⟩",WK="⇥",UK="→",VK="→",jK="⇒",GK="⇄",KK="↣",XK="⌉",YK="⟧",ZK="⥝",JK="⥕",QK="⇂",eX="⌋",tX="⇁",nX="⇀",rX="⇄",iX="⇌",oX="⇉",sX="↝",lX="↦",aX="⊢",cX="⥛",uX="⋌",fX="⧐",dX="⊳",hX="⊵",pX="⥏",gX="⥜",vX="⥔",mX="↾",yX="⥓",bX="⇀",wX="˚",xX="≓",_X="⇄",SX="⇌",kX="",CX="⎱",TX="⎱",EX="⫮",LX="⟭",AX="⇾",MX="⟧",NX="⦆",$X="𝕣",PX="ℝ",OX="⨮",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="≿",CY="С",TY="с",EY="⊡",LY="⋅",AY="⩦",MY="⤥",NY="↘",$Y="⇘",PY="↘",OY="§",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="⪬",CZ="⪬︀",TZ="Ь",EZ="ь",LZ="⌿",AZ="⧄",MZ="/",NZ="𝕊",$Z="𝕤",PZ="♠",OZ="♠",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="⫁",CJ="⫋",TJ="⊊",EJ="⪿",LJ="⥹",AJ="⊂",MJ="⋐",NJ="⊆",$J="⫅",PJ="⊆",OJ="⊊",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="⊋",CQ="⫌",TQ="⫈",EQ="⫔",LQ="⫖",AQ="⤦",MQ="↙",NQ="⇙",$Q="↙",PQ="⤪",OQ="ß",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="⫱",Cee="⊤",Tee="𝕋",Eee="𝕥",Lee="⫚",Aee="⤩",Mee="‴",Nee="™",$ee="™",Pee="▵",Oee="▿",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="𝔘",Cte="𝔲",Tte="Ù",Ete="ù",Lte="⥣",Ate="↿",Mte="↾",Nte="▀",$te="⌜",Pte="⌜",Ote="⌏",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="𝓊",Cne="⋰",Tne="Ũ",Ene="ũ",Lne="▵",Ane="▴",Mne="⇈",Nne="Ü",$ne="ü",Pne="⦧",One="⦜",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="⊲",Cre="⊂⃒",Tre="⊃⃒",Ere="𝕍",Lre="𝕧",Are="∝",Mre="⊳",Nre="𝒱",$re="𝓋",Pre="⫋︀",Ore="⊊︀",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="⨆",Cie="⨄",Tie="△",Eie="⋁",Lie="⋀",Aie="Ý",Mie="ý",Nie="Я",$ie="я",Pie="Ŷ",Oie="ŷ",Rie="Ы",Die="ы",zie="¥",Iie="𝔜",Fie="𝔶",Hie="Ї",qie="ї",Bie="𝕐",Wie="𝕪",Uie="𝒴",Vie="𝓎",jie="Ю",Gie="ю",Kie="ÿ",Xie="Ÿ",Yie="Ź",Zie="ź",Jie="Ž",Qie="ž",eoe="З",toe="з",noe="Ż",roe="ż",ioe="ℨ",ooe="",soe="Ζ",loe="ζ",aoe="𝔷",coe="ℨ",uoe="Ж",foe="ж",doe="⇝",hoe="𝕫",poe="ℤ",goe="𝒵",voe="𝓏",moe="",yoe="",Ub={Aacute:nL,aacute:rL,Abreve:iL,abreve:oL,ac:sL,acd:lL,acE:aL,Acirc:cL,acirc:uL,acute:fL,Acy:dL,acy:hL,AElig:pL,aelig:gL,af:vL,Afr:mL,afr:yL,Agrave:bL,agrave:wL,alefsym:xL,aleph:_L,Alpha:SL,alpha:kL,Amacr:CL,amacr:TL,amalg:EL,amp:LL,AMP:AL,andand:ML,And:NL,and:$L,andd:PL,andslope:OL,andv:RL,ang:DL,ange:zL,angle:IL,angmsdaa:FL,angmsdab:HL,angmsdac:qL,angmsdad:BL,angmsdae:WL,angmsdaf:UL,angmsdag:VL,angmsdah:jL,angmsd:GL,angrt:KL,angrtvb:XL,angrtvbd:YL,angsph:ZL,angst:JL,angzarr:QL,Aogon:eA,aogon:tA,Aopf:nA,aopf:rA,apacir:iA,ap:oA,apE:sA,ape:lA,apid:aA,apos:cA,ApplyFunction:uA,approx:fA,approxeq:dA,Aring:hA,aring:pA,Ascr:gA,ascr:vA,Assign:mA,ast:yA,asymp:bA,asympeq:wA,Atilde:xA,atilde:_A,Auml:SA,auml:kA,awconint:CA,awint:TA,backcong:EA,backepsilon:LA,backprime:AA,backsim:MA,backsimeq:NA,Backslash:$A,Barv:PA,barvee:OA,barwed:RA,Barwed:DA,barwedge:zA,bbrk:IA,bbrktbrk:FA,bcong:HA,Bcy:qA,bcy:BA,bdquo:WA,becaus:UA,because:VA,Because:jA,bemptyv:GA,bepsi:KA,bernou:XA,Bernoullis:YA,Beta:ZA,beta:JA,beth:QA,between:eM,Bfr:tM,bfr:nM,bigcap:rM,bigcirc:iM,bigcup:oM,bigodot:sM,bigoplus:lM,bigotimes:aM,bigsqcup:cM,bigstar:uM,bigtriangledown:fM,bigtriangleup:dM,biguplus:hM,bigvee:pM,bigwedge:gM,bkarow:vM,blacklozenge:mM,blacksquare:yM,blacktriangle:bM,blacktriangledown:wM,blacktriangleleft:xM,blacktriangleright:_M,blank:SM,blk12:kM,blk14:CM,blk34:TM,block:EM,bne:LM,bnequiv:AM,bNot:MM,bnot:NM,Bopf:$M,bopf:PM,bot:OM,bottom:RM,bowtie:DM,boxbox:zM,boxdl:IM,boxdL:FM,boxDl:HM,boxDL:qM,boxdr:BM,boxdR:WM,boxDr:UM,boxDR:VM,boxh:jM,boxH:GM,boxhd:KM,boxHd:XM,boxhD:YM,boxHD:ZM,boxhu:JM,boxHu:QM,boxhU:eN,boxHU:tN,boxminus:nN,boxplus:rN,boxtimes:iN,boxul:oN,boxuL:sN,boxUl:lN,boxUL:aN,boxur:cN,boxuR:uN,boxUr:fN,boxUR:dN,boxv:hN,boxV:pN,boxvh:gN,boxvH:vN,boxVh:mN,boxVH:yN,boxvl:bN,boxvL:wN,boxVl:xN,boxVL:_N,boxvr:SN,boxvR:kN,boxVr:CN,boxVR:TN,bprime:EN,breve:LN,Breve:AN,brvbar:MN,bscr:NN,Bscr:$N,bsemi:PN,bsim:ON,bsime:RN,bsolb:DN,bsol:zN,bsolhsub:IN,bull:FN,bullet:HN,bump:qN,bumpE:BN,bumpe:WN,Bumpeq:UN,bumpeq:VN,Cacute:jN,cacute:GN,capand:KN,capbrcup:XN,capcap:YN,cap:ZN,Cap:JN,capcup:QN,capdot:e$,CapitalDifferentialD:t$,caps:n$,caret:r$,caron:i$,Cayleys:o$,ccaps:s$,Ccaron:l$,ccaron:a$,Ccedil:c$,ccedil:u$,Ccirc:f$,ccirc:d$,Cconint:h$,ccups:p$,ccupssm:g$,Cdot:v$,cdot:m$,cedil:y$,Cedilla:b$,cemptyv:w$,cent:x$,centerdot:_$,CenterDot:S$,cfr:k$,Cfr:C$,CHcy:T$,chcy:E$,check:L$,checkmark:A$,Chi:M$,chi:N$,circ:$$,circeq:P$,circlearrowleft:O$,circlearrowright:R$,circledast:D$,circledcirc:z$,circleddash:I$,CircleDot:F$,circledR:H$,circledS:q$,CircleMinus:B$,CirclePlus:W$,CircleTimes:U$,cir:V$,cirE:j$,cire:G$,cirfnint:K$,cirmid:X$,cirscir:Y$,ClockwiseContourIntegral:Z$,CloseCurlyDoubleQuote:J$,CloseCurlyQuote:Q$,clubs:eP,clubsuit:tP,colon:nP,Colon:rP,Colone:iP,colone:oP,coloneq:sP,comma:lP,commat:aP,comp:cP,compfn:uP,complement:fP,complexes:dP,cong:hP,congdot:pP,Congruent:gP,conint:vP,Conint:mP,ContourIntegral:yP,copf:bP,Copf:wP,coprod:xP,Coproduct:_P,copy:SP,COPY:kP,copysr:CP,CounterClockwiseContourIntegral:TP,crarr:EP,cross:LP,Cross:AP,Cscr:MP,cscr:NP,csub:$P,csube:PP,csup:OP,csupe:RP,ctdot:DP,cudarrl:zP,cudarrr:IP,cuepr:FP,cuesc:HP,cularr:qP,cularrp:BP,cupbrcap:WP,cupcap:UP,CupCap:VP,cup:jP,Cup:GP,cupcup:KP,cupdot:XP,cupor:YP,cups:ZP,curarr:JP,curarrm:QP,curlyeqprec:eO,curlyeqsucc:tO,curlyvee:nO,curlywedge:rO,curren:iO,curvearrowleft:oO,curvearrowright:sO,cuvee:lO,cuwed:aO,cwconint:cO,cwint:uO,cylcty:fO,dagger:dO,Dagger:hO,daleth:pO,darr:gO,Darr:vO,dArr:mO,dash:yO,Dashv:bO,dashv:wO,dbkarow:xO,dblac:_O,Dcaron:SO,dcaron:kO,Dcy:CO,dcy:TO,ddagger:EO,ddarr:LO,DD:AO,dd:MO,DDotrahd:NO,ddotseq:$O,deg:PO,Del:OO,Delta:RO,delta:DO,demptyv:zO,dfisht:IO,Dfr:FO,dfr:HO,dHar:qO,dharl:BO,dharr:WO,DiacriticalAcute:UO,DiacriticalDot:VO,DiacriticalDoubleAcute:jO,DiacriticalGrave:GO,DiacriticalTilde:KO,diam:XO,diamond:YO,Diamond:ZO,diamondsuit:JO,diams:QO,die:eR,DifferentialD:tR,digamma:nR,disin:rR,div:iR,divide:oR,divideontimes:sR,divonx:lR,DJcy:aR,djcy:cR,dlcorn:uR,dlcrop:fR,dollar:dR,Dopf:hR,dopf:pR,Dot:gR,dot:vR,DotDot:mR,doteq:yR,doteqdot:bR,DotEqual:wR,dotminus:xR,dotplus:_R,dotsquare:SR,doublebarwedge:kR,DoubleContourIntegral:CR,DoubleDot:TR,DoubleDownArrow:ER,DoubleLeftArrow:LR,DoubleLeftRightArrow:AR,DoubleLeftTee:MR,DoubleLongLeftArrow:NR,DoubleLongLeftRightArrow:$R,DoubleLongRightArrow:PR,DoubleRightArrow:OR,DoubleRightTee:RR,DoubleUpArrow:DR,DoubleUpDownArrow:zR,DoubleVerticalBar:IR,DownArrowBar:FR,downarrow:HR,DownArrow:qR,Downarrow:BR,DownArrowUpArrow:WR,DownBreve:UR,downdownarrows:VR,downharpoonleft:jR,downharpoonright:GR,DownLeftRightVector:KR,DownLeftTeeVector:XR,DownLeftVectorBar:YR,DownLeftVector:ZR,DownRightTeeVector:JR,DownRightVectorBar:QR,DownRightVector:eD,DownTeeArrow:tD,DownTee:nD,drbkarow:rD,drcorn:iD,drcrop:oD,Dscr:sD,dscr:lD,DScy:aD,dscy:cD,dsol:uD,Dstrok:fD,dstrok:dD,dtdot:hD,dtri:pD,dtrif:gD,duarr:vD,duhar:mD,dwangle:yD,DZcy:bD,dzcy:wD,dzigrarr:xD,Eacute:_D,eacute:SD,easter:kD,Ecaron:CD,ecaron:TD,Ecirc:ED,ecirc:LD,ecir:AD,ecolon:MD,Ecy:ND,ecy:$D,eDDot:PD,Edot:OD,edot:RD,eDot:DD,ee:zD,efDot:ID,Efr:FD,efr:HD,eg:qD,Egrave:BD,egrave:WD,egs:UD,egsdot:VD,el:jD,Element:GD,elinters:KD,ell:XD,els:YD,elsdot:ZD,Emacr:JD,emacr:QD,empty:e2,emptyset:t2,EmptySmallSquare:n2,emptyv:r2,EmptyVerySmallSquare:i2,emsp13:o2,emsp14:s2,emsp:l2,ENG:a2,eng:c2,ensp:u2,Eogon:f2,eogon:d2,Eopf:h2,eopf:p2,epar:g2,eparsl:v2,eplus:m2,epsi:y2,Epsilon:b2,epsilon:w2,epsiv:x2,eqcirc:_2,eqcolon:S2,eqsim:k2,eqslantgtr:C2,eqslantless:T2,Equal:E2,equals:L2,EqualTilde:A2,equest:M2,Equilibrium:N2,equiv:$2,equivDD:P2,eqvparsl:O2,erarr:R2,erDot:D2,escr:z2,Escr:I2,esdot:F2,Esim:H2,esim:q2,Eta:B2,eta:W2,ETH:U2,eth:V2,Euml:j2,euml:G2,euro:K2,excl:X2,exist:Y2,Exists:Z2,expectation:J2,exponentiale:Q2,ExponentialE:ez,fallingdotseq:tz,Fcy:nz,fcy:rz,female:iz,ffilig:oz,fflig:sz,ffllig:lz,Ffr:az,ffr:cz,filig:uz,FilledSmallSquare:fz,FilledVerySmallSquare:dz,fjlig:hz,flat:pz,fllig:gz,fltns:vz,fnof:mz,Fopf:yz,fopf:bz,forall:wz,ForAll:xz,fork:_z,forkv:Sz,Fouriertrf:kz,fpartint:Cz,frac12:Tz,frac13:Ez,frac14:Lz,frac15:Az,frac16:Mz,frac18:Nz,frac23:$z,frac25:Pz,frac34:Oz,frac35:Rz,frac38:Dz,frac45:zz,frac56:Iz,frac58:Fz,frac78:Hz,frasl:qz,frown:Bz,fscr:Wz,Fscr:Uz,gacute:Vz,Gamma:jz,gamma:Gz,Gammad:Kz,gammad:Xz,gap:Yz,Gbreve:Zz,gbreve:Jz,Gcedil:Qz,Gcirc:eI,gcirc:tI,Gcy:nI,gcy:rI,Gdot:iI,gdot:oI,ge:sI,gE:lI,gEl:aI,gel:cI,geq:uI,geqq:fI,geqslant:dI,gescc:hI,ges:pI,gesdot:gI,gesdoto:vI,gesdotol:mI,gesl:yI,gesles:bI,Gfr:wI,gfr:xI,gg:_I,Gg:SI,ggg:kI,gimel:CI,GJcy:TI,gjcy:EI,gla:LI,gl:AI,glE:MI,glj:NI,gnap:$I,gnapprox:PI,gne:OI,gnE:RI,gneq:DI,gneqq:zI,gnsim:II,Gopf:FI,gopf:HI,grave:qI,GreaterEqual:BI,GreaterEqualLess:WI,GreaterFullEqual:UI,GreaterGreater:VI,GreaterLess:jI,GreaterSlantEqual:GI,GreaterTilde:KI,Gscr:XI,gscr:YI,gsim:ZI,gsime:JI,gsiml:QI,gtcc:eF,gtcir:tF,gt:nF,GT:rF,Gt:iF,gtdot:oF,gtlPar:sF,gtquest:lF,gtrapprox:aF,gtrarr:cF,gtrdot:uF,gtreqless:fF,gtreqqless:dF,gtrless:hF,gtrsim:pF,gvertneqq:gF,gvnE:vF,Hacek:mF,hairsp:yF,half:bF,hamilt:wF,HARDcy:xF,hardcy:_F,harrcir:SF,harr:kF,hArr:CF,harrw:TF,Hat:EF,hbar:LF,Hcirc:AF,hcirc:MF,hearts:NF,heartsuit:$F,hellip:PF,hercon:OF,hfr:RF,Hfr:DF,HilbertSpace:zF,hksearow:IF,hkswarow:FF,hoarr:HF,homtht:qF,hookleftarrow:BF,hookrightarrow:WF,hopf:UF,Hopf:VF,horbar:jF,HorizontalLine:GF,hscr:KF,Hscr:XF,hslash:YF,Hstrok:ZF,hstrok:JF,HumpDownHump:QF,HumpEqual:eH,hybull:tH,hyphen:nH,Iacute:rH,iacute:iH,ic:oH,Icirc:sH,icirc:lH,Icy:aH,icy:cH,Idot:uH,IEcy:fH,iecy:dH,iexcl:hH,iff:pH,ifr:gH,Ifr:vH,Igrave:mH,igrave:yH,ii:bH,iiiint:wH,iiint:xH,iinfin:_H,iiota:SH,IJlig:kH,ijlig:CH,Imacr:TH,imacr:EH,image:LH,ImaginaryI:AH,imagline:MH,imagpart:NH,imath:$H,Im:PH,imof:OH,imped:RH,Implies:DH,incare:zH,in:"∈",infin:IH,infintie:FH,inodot:HH,intcal:qH,int:BH,Int:WH,integers:UH,Integral:VH,intercal:jH,Intersection:GH,intlarhk:KH,intprod:XH,InvisibleComma:YH,InvisibleTimes:ZH,IOcy:JH,iocy:QH,Iogon:eq,iogon:tq,Iopf:nq,iopf:rq,Iota:iq,iota:oq,iprod:sq,iquest:lq,iscr:aq,Iscr:cq,isin:uq,isindot:fq,isinE:dq,isins:hq,isinsv:pq,isinv:gq,it:vq,Itilde:mq,itilde:yq,Iukcy:bq,iukcy:wq,Iuml:xq,iuml:_q,Jcirc:Sq,jcirc:kq,Jcy:Cq,jcy:Tq,Jfr:Eq,jfr:Lq,jmath:Aq,Jopf:Mq,jopf:Nq,Jscr:$q,jscr:Pq,Jsercy:Oq,jsercy:Rq,Jukcy:Dq,jukcy:zq,Kappa:Iq,kappa:Fq,kappav:Hq,Kcedil:qq,kcedil:Bq,Kcy:Wq,kcy:Uq,Kfr:Vq,kfr:jq,kgreen:Gq,KHcy:Kq,khcy:Xq,KJcy:Yq,kjcy:Zq,Kopf:Jq,kopf:Qq,Kscr:eB,kscr:tB,lAarr:nB,Lacute:rB,lacute:iB,laemptyv:oB,lagran:sB,Lambda:lB,lambda:aB,lang:cB,Lang:uB,langd:fB,langle:dB,lap:hB,Laplacetrf:pB,laquo:gB,larrb:vB,larrbfs:mB,larr:yB,Larr:bB,lArr:wB,larrfs:xB,larrhk:_B,larrlp:SB,larrpl:kB,larrsim:CB,larrtl:TB,latail:EB,lAtail:LB,lat:AB,late:MB,lates:NB,lbarr:$B,lBarr:PB,lbbrk:OB,lbrace:RB,lbrack:DB,lbrke:zB,lbrksld:IB,lbrkslu:FB,Lcaron:HB,lcaron:qB,Lcedil:BB,lcedil:WB,lceil:UB,lcub:VB,Lcy:jB,lcy:GB,ldca:KB,ldquo:XB,ldquor:YB,ldrdhar:ZB,ldrushar:JB,ldsh:QB,le:e3,lE:t3,LeftAngleBracket:n3,LeftArrowBar:r3,leftarrow:i3,LeftArrow:o3,Leftarrow:s3,LeftArrowRightArrow:l3,leftarrowtail:a3,LeftCeiling:c3,LeftDoubleBracket:u3,LeftDownTeeVector:f3,LeftDownVectorBar:d3,LeftDownVector:h3,LeftFloor:p3,leftharpoondown:g3,leftharpoonup:v3,leftleftarrows:m3,leftrightarrow:y3,LeftRightArrow:b3,Leftrightarrow:w3,leftrightarrows:x3,leftrightharpoons:_3,leftrightsquigarrow:S3,LeftRightVector:k3,LeftTeeArrow:C3,LeftTee:T3,LeftTeeVector:E3,leftthreetimes:L3,LeftTriangleBar:A3,LeftTriangle:M3,LeftTriangleEqual:N3,LeftUpDownVector:$3,LeftUpTeeVector:P3,LeftUpVectorBar:O3,LeftUpVector:R3,LeftVectorBar:D3,LeftVector:z3,lEg:I3,leg:F3,leq:H3,leqq:q3,leqslant:B3,lescc:W3,les:U3,lesdot:V3,lesdoto:j3,lesdotor:G3,lesg:K3,lesges:X3,lessapprox:Y3,lessdot:Z3,lesseqgtr:J3,lesseqqgtr:Q3,LessEqualGreater:e5,LessFullEqual:t5,LessGreater:n5,lessgtr:r5,LessLess:i5,lesssim:o5,LessSlantEqual:s5,LessTilde:l5,lfisht:a5,lfloor:c5,Lfr:u5,lfr:f5,lg:d5,lgE:h5,lHar:p5,lhard:g5,lharu:v5,lharul:m5,lhblk:y5,LJcy:b5,ljcy:w5,llarr:x5,ll:_5,Ll:S5,llcorner:k5,Lleftarrow:C5,llhard:T5,lltri:E5,Lmidot:L5,lmidot:A5,lmoustache:M5,lmoust:N5,lnap:$5,lnapprox:P5,lne:O5,lnE:R5,lneq:D5,lneqq:z5,lnsim:I5,loang:F5,loarr:H5,lobrk:q5,longleftarrow:B5,LongLeftArrow:W5,Longleftarrow:U5,longleftrightarrow:V5,LongLeftRightArrow:j5,Longleftrightarrow:G5,longmapsto:K5,longrightarrow:X5,LongRightArrow:Y5,Longrightarrow:Z5,looparrowleft:J5,looparrowright:Q5,lopar:e8,Lopf:t8,lopf:n8,loplus:r8,lotimes:i8,lowast:o8,lowbar:s8,LowerLeftArrow:l8,LowerRightArrow:a8,loz:c8,lozenge:u8,lozf:f8,lpar:d8,lparlt:h8,lrarr:p8,lrcorner:g8,lrhar:v8,lrhard:m8,lrm:y8,lrtri:b8,lsaquo:w8,lscr:x8,Lscr:_8,lsh:S8,Lsh:k8,lsim:C8,lsime:T8,lsimg:E8,lsqb:L8,lsquo:A8,lsquor:M8,Lstrok:N8,lstrok:$8,ltcc:P8,ltcir:O8,lt:R8,LT:D8,Lt:z8,ltdot:I8,lthree:F8,ltimes:H8,ltlarr:q8,ltquest:B8,ltri:W8,ltrie:U8,ltrif:V8,ltrPar:j8,lurdshar:G8,luruhar:K8,lvertneqq:X8,lvnE:Y8,macr:Z8,male:J8,malt:Q8,maltese:eW,Map:"⤅",map:tW,mapsto:nW,mapstodown:rW,mapstoleft:iW,mapstoup:oW,marker:sW,mcomma:lW,Mcy:aW,mcy:cW,mdash:uW,mDDot:fW,measuredangle:dW,MediumSpace:hW,Mellintrf:pW,Mfr:gW,mfr:vW,mho:mW,micro:yW,midast:bW,midcir:wW,mid:xW,middot:_W,minusb:SW,minus:kW,minusd:CW,minusdu:TW,MinusPlus:EW,mlcp:LW,mldr:AW,mnplus:MW,models:NW,Mopf:$W,mopf:PW,mp:OW,mscr:RW,Mscr:DW,mstpos:zW,Mu:IW,mu:FW,multimap:HW,mumap:qW,nabla:BW,Nacute:WW,nacute:UW,nang:VW,nap:jW,napE:GW,napid:KW,napos:XW,napprox:YW,natural:ZW,naturals:JW,natur:QW,nbsp:e4,nbump:t4,nbumpe:n4,ncap:r4,Ncaron:i4,ncaron:o4,Ncedil:s4,ncedil:l4,ncong:a4,ncongdot:c4,ncup:u4,Ncy:f4,ncy:d4,ndash:h4,nearhk:p4,nearr:g4,neArr:v4,nearrow:m4,ne:y4,nedot:b4,NegativeMediumSpace:w4,NegativeThickSpace:x4,NegativeThinSpace:_4,NegativeVeryThinSpace:S4,nequiv:k4,nesear:C4,nesim:T4,NestedGreaterGreater:E4,NestedLessLess:L4,NewLine:A4,nexist:M4,nexists:N4,Nfr:$4,nfr:P4,ngE:O4,nge:R4,ngeq:D4,ngeqq:z4,ngeqslant:I4,nges:F4,nGg:H4,ngsim:q4,nGt:B4,ngt:W4,ngtr:U4,nGtv:V4,nharr:j4,nhArr:G4,nhpar:K4,ni:X4,nis:Y4,nisd:Z4,niv:J4,NJcy:Q4,njcy:eU,nlarr:tU,nlArr:nU,nldr:rU,nlE:iU,nle:oU,nleftarrow:sU,nLeftarrow:lU,nleftrightarrow:aU,nLeftrightarrow:cU,nleq:uU,nleqq:fU,nleqslant:dU,nles:hU,nless:pU,nLl:gU,nlsim:vU,nLt:mU,nlt:yU,nltri:bU,nltrie:wU,nLtv:xU,nmid:_U,NoBreak:SU,NonBreakingSpace:kU,nopf:CU,Nopf:TU,Not:EU,not:LU,NotCongruent:AU,NotCupCap:MU,NotDoubleVerticalBar:NU,NotElement:$U,NotEqual:PU,NotEqualTilde:OU,NotExists:RU,NotGreater:DU,NotGreaterEqual:zU,NotGreaterFullEqual:IU,NotGreaterGreater:FU,NotGreaterLess:HU,NotGreaterSlantEqual:qU,NotGreaterTilde:BU,NotHumpDownHump:WU,NotHumpEqual:UU,notin:VU,notindot:jU,notinE:GU,notinva:KU,notinvb:XU,notinvc:YU,NotLeftTriangleBar:ZU,NotLeftTriangle:JU,NotLeftTriangleEqual:QU,NotLess:e6,NotLessEqual:t6,NotLessGreater:n6,NotLessLess:r6,NotLessSlantEqual:i6,NotLessTilde:o6,NotNestedGreaterGreater:s6,NotNestedLessLess:l6,notni:a6,notniva:c6,notnivb:u6,notnivc:f6,NotPrecedes:d6,NotPrecedesEqual:h6,NotPrecedesSlantEqual:p6,NotReverseElement:g6,NotRightTriangleBar:v6,NotRightTriangle:m6,NotRightTriangleEqual:y6,NotSquareSubset:b6,NotSquareSubsetEqual:w6,NotSquareSuperset:x6,NotSquareSupersetEqual:_6,NotSubset:S6,NotSubsetEqual:k6,NotSucceeds:C6,NotSucceedsEqual:T6,NotSucceedsSlantEqual:E6,NotSucceedsTilde:L6,NotSuperset:A6,NotSupersetEqual:M6,NotTilde:N6,NotTildeEqual:$6,NotTildeFullEqual:P6,NotTildeTilde:O6,NotVerticalBar:R6,nparallel:D6,npar:z6,nparsl:I6,npart:F6,npolint:H6,npr:q6,nprcue:B6,nprec:W6,npreceq:U6,npre:V6,nrarrc:j6,nrarr:G6,nrArr:K6,nrarrw:X6,nrightarrow:Y6,nRightarrow:Z6,nrtri:J6,nrtrie:Q6,nsc:eV,nsccue:tV,nsce:nV,Nscr:rV,nscr:iV,nshortmid:oV,nshortparallel:sV,nsim:lV,nsime:aV,nsimeq:cV,nsmid:uV,nspar:fV,nsqsube:dV,nsqsupe:hV,nsub:pV,nsubE:gV,nsube:vV,nsubset:mV,nsubseteq:yV,nsubseteqq:bV,nsucc:wV,nsucceq:xV,nsup:_V,nsupE:SV,nsupe:kV,nsupset:CV,nsupseteq:TV,nsupseteqq:EV,ntgl:LV,Ntilde:AV,ntilde:MV,ntlg:NV,ntriangleleft:$V,ntrianglelefteq:PV,ntriangleright:OV,ntrianglerighteq:RV,Nu:DV,nu:zV,num:IV,numero:FV,numsp:HV,nvap:qV,nvdash:BV,nvDash:WV,nVdash:UV,nVDash:VV,nvge:jV,nvgt:GV,nvHarr:KV,nvinfin:XV,nvlArr:YV,nvle:ZV,nvlt:JV,nvltrie:QV,nvrArr:ej,nvrtrie:tj,nvsim:nj,nwarhk:rj,nwarr:ij,nwArr:oj,nwarrow:sj,nwnear:lj,Oacute:aj,oacute:cj,oast:uj,Ocirc:fj,ocirc:dj,ocir:hj,Ocy:pj,ocy:gj,odash:vj,Odblac:mj,odblac:yj,odiv:bj,odot:wj,odsold:xj,OElig:_j,oelig:Sj,ofcir:kj,Ofr:Cj,ofr:Tj,ogon:Ej,Ograve:Lj,ograve:Aj,ogt:Mj,ohbar:Nj,ohm:$j,oint:Pj,olarr:Oj,olcir:Rj,olcross:Dj,oline:zj,olt:Ij,Omacr:Fj,omacr:Hj,Omega:qj,omega:Bj,Omicron:Wj,omicron:Uj,omid:Vj,ominus:jj,Oopf:Gj,oopf:Kj,opar:Xj,OpenCurlyDoubleQuote:Yj,OpenCurlyQuote:Zj,operp:Jj,oplus:Qj,orarr:eG,Or:tG,or:nG,ord:rG,order:iG,orderof:oG,ordf:sG,ordm:lG,origof:aG,oror:cG,orslope:uG,orv:fG,oS:dG,Oscr:hG,oscr:pG,Oslash:gG,oslash:vG,osol:mG,Otilde:yG,otilde:bG,otimesas:wG,Otimes:xG,otimes:_G,Ouml:SG,ouml:kG,ovbar:CG,OverBar:TG,OverBrace:EG,OverBracket:LG,OverParenthesis:AG,para:MG,parallel:NG,par:$G,parsim:PG,parsl:OG,part:RG,PartialD:DG,Pcy:zG,pcy:IG,percnt:FG,period:HG,permil:qG,perp:BG,pertenk:WG,Pfr:UG,pfr:VG,Phi:jG,phi:GG,phiv:KG,phmmat:XG,phone:YG,Pi:ZG,pi:JG,pitchfork:QG,piv:e9,planck:t9,planckh:n9,plankv:r9,plusacir:i9,plusb:o9,pluscir:s9,plus:l9,plusdo:a9,plusdu:c9,pluse:u9,PlusMinus:f9,plusmn:d9,plussim:h9,plustwo:p9,pm:g9,Poincareplane:v9,pointint:m9,popf:y9,Popf:b9,pound:w9,prap:x9,Pr:_9,pr:S9,prcue:k9,precapprox:C9,prec:T9,preccurlyeq:E9,Precedes:L9,PrecedesEqual:A9,PrecedesSlantEqual:M9,PrecedesTilde:N9,preceq:$9,precnapprox:P9,precneqq:O9,precnsim:R9,pre:D9,prE:z9,precsim:I9,prime:F9,Prime:H9,primes:q9,prnap:B9,prnE:W9,prnsim:U9,prod:V9,Product:j9,profalar:G9,profline:K9,profsurf:X9,prop:Y9,Proportional:Z9,Proportion:J9,propto:Q9,prsim:e7,prurel:t7,Pscr:n7,pscr:r7,Psi:i7,psi:o7,puncsp:s7,Qfr:l7,qfr:a7,qint:c7,qopf:u7,Qopf:f7,qprime:d7,Qscr:h7,qscr:p7,quaternions:g7,quatint:v7,quest:m7,questeq:y7,quot:b7,QUOT:w7,rAarr:x7,race:_7,Racute:S7,racute:k7,radic:C7,raemptyv:T7,rang:E7,Rang:L7,rangd:A7,range:M7,rangle:N7,raquo:$7,rarrap:P7,rarrb:O7,rarrbfs:R7,rarrc:D7,rarr:z7,Rarr:I7,rArr:F7,rarrfs:H7,rarrhk:q7,rarrlp:B7,rarrpl:W7,rarrsim:U7,Rarrtl:V7,rarrtl:j7,rarrw:G7,ratail:K7,rAtail:X7,ratio:Y7,rationals:Z7,rbarr:J7,rBarr:Q7,RBarr:eK,rbbrk:tK,rbrace:nK,rbrack:rK,rbrke:iK,rbrksld:oK,rbrkslu:sK,Rcaron:lK,rcaron:aK,Rcedil:cK,rcedil:uK,rceil:fK,rcub:dK,Rcy:hK,rcy:pK,rdca:gK,rdldhar:vK,rdquo:mK,rdquor:yK,rdsh:bK,real:wK,realine:xK,realpart:_K,reals:SK,Re:kK,rect:CK,reg:TK,REG:EK,ReverseElement:LK,ReverseEquilibrium:AK,ReverseUpEquilibrium:MK,rfisht:NK,rfloor:$K,rfr:PK,Rfr:OK,rHar:RK,rhard:DK,rharu:zK,rharul:IK,Rho:FK,rho:HK,rhov:qK,RightAngleBracket:BK,RightArrowBar:WK,rightarrow:UK,RightArrow:VK,Rightarrow:jK,RightArrowLeftArrow:GK,rightarrowtail:KK,RightCeiling:XK,RightDoubleBracket:YK,RightDownTeeVector:ZK,RightDownVectorBar:JK,RightDownVector:QK,RightFloor:eX,rightharpoondown:tX,rightharpoonup:nX,rightleftarrows:rX,rightleftharpoons:iX,rightrightarrows:oX,rightsquigarrow:sX,RightTeeArrow:lX,RightTee:aX,RightTeeVector:cX,rightthreetimes:uX,RightTriangleBar:fX,RightTriangle:dX,RightTriangleEqual:hX,RightUpDownVector:pX,RightUpTeeVector:gX,RightUpVectorBar:vX,RightUpVector:mX,RightVectorBar:yX,RightVector:bX,ring:wX,risingdotseq:xX,rlarr:_X,rlhar:SX,rlm:kX,rmoustache:CX,rmoust:TX,rnmid:EX,roang:LX,roarr:AX,robrk:MX,ropar:NX,ropf:$X,Ropf:PX,roplus:OX,rotimes:RX,RoundImplies:DX,rpar:zX,rpargt:IX,rppolint:FX,rrarr:HX,Rrightarrow:qX,rsaquo:BX,rscr:WX,Rscr:UX,rsh:VX,Rsh:jX,rsqb:GX,rsquo:KX,rsquor:XX,rthree:YX,rtimes:ZX,rtri:JX,rtrie:QX,rtrif:eY,rtriltri:tY,RuleDelayed:nY,ruluhar:rY,rx:iY,Sacute:oY,sacute:sY,sbquo:lY,scap:aY,Scaron:cY,scaron:uY,Sc:fY,sc:dY,sccue:hY,sce:pY,scE:gY,Scedil:vY,scedil:mY,Scirc:yY,scirc:bY,scnap:wY,scnE:xY,scnsim:_Y,scpolint:SY,scsim:kY,Scy:CY,scy:TY,sdotb:EY,sdot:LY,sdote:AY,searhk:MY,searr:NY,seArr:$Y,searrow:PY,sect:OY,semi:RY,seswar:DY,setminus:zY,setmn:IY,sext:FY,Sfr:HY,sfr:qY,sfrown:BY,sharp:WY,SHCHcy:UY,shchcy:VY,SHcy:jY,shcy:GY,ShortDownArrow:KY,ShortLeftArrow:XY,shortmid:YY,shortparallel:ZY,ShortRightArrow:JY,ShortUpArrow:QY,shy:eZ,Sigma:tZ,sigma:nZ,sigmaf:rZ,sigmav:iZ,sim:oZ,simdot:sZ,sime:lZ,simeq:aZ,simg:cZ,simgE:uZ,siml:fZ,simlE:dZ,simne:hZ,simplus:pZ,simrarr:gZ,slarr:vZ,SmallCircle:mZ,smallsetminus:yZ,smashp:bZ,smeparsl:wZ,smid:xZ,smile:_Z,smt:SZ,smte:kZ,smtes:CZ,SOFTcy:TZ,softcy:EZ,solbar:LZ,solb:AZ,sol:MZ,Sopf:NZ,sopf:$Z,spades:PZ,spadesuit:OZ,spar:RZ,sqcap:DZ,sqcaps:zZ,sqcup:IZ,sqcups:FZ,Sqrt:HZ,sqsub:qZ,sqsube:BZ,sqsubset:WZ,sqsubseteq:UZ,sqsup:VZ,sqsupe:jZ,sqsupset:GZ,sqsupseteq:KZ,square:XZ,Square:YZ,SquareIntersection:ZZ,SquareSubset:JZ,SquareSubsetEqual:QZ,SquareSuperset:eJ,SquareSupersetEqual:tJ,SquareUnion:nJ,squarf:rJ,squ:iJ,squf:oJ,srarr:sJ,Sscr:lJ,sscr:aJ,ssetmn:cJ,ssmile:uJ,sstarf:fJ,Star:dJ,star:hJ,starf:pJ,straightepsilon:gJ,straightphi:vJ,strns:mJ,sub:yJ,Sub:bJ,subdot:wJ,subE:xJ,sube:_J,subedot:SJ,submult:kJ,subnE:CJ,subne:TJ,subplus:EJ,subrarr:LJ,subset:AJ,Subset:MJ,subseteq:NJ,subseteqq:$J,SubsetEqual:PJ,subsetneq:OJ,subsetneqq:RJ,subsim:DJ,subsub:zJ,subsup:IJ,succapprox:FJ,succ:HJ,succcurlyeq:qJ,Succeeds:BJ,SucceedsEqual:WJ,SucceedsSlantEqual:UJ,SucceedsTilde:VJ,succeq:jJ,succnapprox:GJ,succneqq:KJ,succnsim:XJ,succsim:YJ,SuchThat:ZJ,sum:JJ,Sum:QJ,sung:eQ,sup1:tQ,sup2:nQ,sup3:rQ,sup:iQ,Sup:oQ,supdot:sQ,supdsub:lQ,supE:aQ,supe:cQ,supedot:uQ,Superset:fQ,SupersetEqual:dQ,suphsol:hQ,suphsub:pQ,suplarr:gQ,supmult:vQ,supnE:mQ,supne:yQ,supplus:bQ,supset:wQ,Supset:xQ,supseteq:_Q,supseteqq:SQ,supsetneq:kQ,supsetneqq:CQ,supsim:TQ,supsub:EQ,supsup:LQ,swarhk:AQ,swarr:MQ,swArr:NQ,swarrow:$Q,swnwar:PQ,szlig:OQ,Tab:RQ,target:DQ,Tau:zQ,tau:IQ,tbrk:FQ,Tcaron:HQ,tcaron:qQ,Tcedil:BQ,tcedil:WQ,Tcy:UQ,tcy:VQ,tdot:jQ,telrec:GQ,Tfr:KQ,tfr:XQ,there4:YQ,therefore:ZQ,Therefore:JQ,Theta:QQ,theta:eee,thetasym:tee,thetav:nee,thickapprox:ree,thicksim:iee,ThickSpace:oee,ThinSpace:see,thinsp:lee,thkap:aee,thksim:cee,THORN:uee,thorn:fee,tilde:dee,Tilde:hee,TildeEqual:pee,TildeFullEqual:gee,TildeTilde:vee,timesbar:mee,timesb:yee,times:bee,timesd:wee,tint:xee,toea:_ee,topbot:See,topcir:kee,top:Cee,Topf:Tee,topf:Eee,topfork:Lee,tosa:Aee,tprime:Mee,trade:Nee,TRADE:$ee,triangle:Pee,triangledown:Oee,triangleleft:Ree,trianglelefteq:Dee,triangleq:zee,triangleright:Iee,trianglerighteq:Fee,tridot:Hee,trie:qee,triminus:Bee,TripleDot:Wee,triplus:Uee,trisb:Vee,tritime:jee,trpezium:Gee,Tscr:Kee,tscr:Xee,TScy:Yee,tscy:Zee,TSHcy:Jee,tshcy:Qee,Tstrok:ete,tstrok:tte,twixt:nte,twoheadleftarrow:rte,twoheadrightarrow:ite,Uacute:ote,uacute:ste,uarr:lte,Uarr:ate,uArr:cte,Uarrocir:ute,Ubrcy:fte,ubrcy:dte,Ubreve:hte,ubreve:pte,Ucirc:gte,ucirc:vte,Ucy:mte,ucy:yte,udarr:bte,Udblac:wte,udblac:xte,udhar:_te,ufisht:Ste,Ufr:kte,ufr:Cte,Ugrave:Tte,ugrave:Ete,uHar:Lte,uharl:Ate,uharr:Mte,uhblk:Nte,ulcorn:$te,ulcorner:Pte,ulcrop:Ote,ultri:Rte,Umacr:Dte,umacr:zte,uml:Ite,UnderBar:Fte,UnderBrace:Hte,UnderBracket:qte,UnderParenthesis:Bte,Union:Wte,UnionPlus:Ute,Uogon:Vte,uogon:jte,Uopf:Gte,uopf:Kte,UpArrowBar:Xte,uparrow:Yte,UpArrow:Zte,Uparrow:Jte,UpArrowDownArrow:Qte,updownarrow:ene,UpDownArrow:tne,Updownarrow:nne,UpEquilibrium:rne,upharpoonleft:ine,upharpoonright:one,uplus:sne,UpperLeftArrow:lne,UpperRightArrow:ane,upsi:cne,Upsi:une,upsih:fne,Upsilon:dne,upsilon:hne,UpTeeArrow:pne,UpTee:gne,upuparrows:vne,urcorn:mne,urcorner:yne,urcrop:bne,Uring:wne,uring:xne,urtri:_ne,Uscr:Sne,uscr:kne,utdot:Cne,Utilde:Tne,utilde:Ene,utri:Lne,utrif:Ane,uuarr:Mne,Uuml:Nne,uuml:$ne,uwangle:Pne,vangrt:One,varepsilon:Rne,varkappa:Dne,varnothing:zne,varphi:Ine,varpi:Fne,varpropto:Hne,varr:qne,vArr:Bne,varrho:Wne,varsigma:Une,varsubsetneq:Vne,varsubsetneqq:jne,varsupsetneq:Gne,varsupsetneqq:Kne,vartheta:Xne,vartriangleleft:Yne,vartriangleright:Zne,vBar:Jne,Vbar:Qne,vBarv:ere,Vcy:tre,vcy:nre,vdash:rre,vDash:ire,Vdash:ore,VDash:sre,Vdashl:lre,veebar:are,vee:cre,Vee:ure,veeeq:fre,vellip:dre,verbar:hre,Verbar:pre,vert:gre,Vert:vre,VerticalBar:mre,VerticalLine:yre,VerticalSeparator:bre,VerticalTilde:wre,VeryThinSpace:xre,Vfr:_re,vfr:Sre,vltri:kre,vnsub:Cre,vnsup:Tre,Vopf:Ere,vopf:Lre,vprop:Are,vrtri:Mre,Vscr:Nre,vscr:$re,vsubnE:Pre,vsubne:Ore,vsupnE:Rre,vsupne:Dre,Vvdash:zre,vzigzag:Ire,Wcirc:Fre,wcirc:Hre,wedbar:qre,wedge:Bre,Wedge:Wre,wedgeq:Ure,weierp:Vre,Wfr:jre,wfr:Gre,Wopf:Kre,wopf:Xre,wp:Yre,wr:Zre,wreath:Jre,Wscr:Qre,wscr:eie,xcap:tie,xcirc:nie,xcup:rie,xdtri:iie,Xfr:oie,xfr:sie,xharr:lie,xhArr:aie,Xi:cie,xi:uie,xlarr:fie,xlArr:die,xmap:hie,xnis:pie,xodot:gie,Xopf:vie,xopf:mie,xoplus:yie,xotime:bie,xrarr:wie,xrArr:xie,Xscr:_ie,xscr:Sie,xsqcup:kie,xuplus:Cie,xutri:Tie,xvee:Eie,xwedge:Lie,Yacute:Aie,yacute:Mie,YAcy:Nie,yacy:$ie,Ycirc:Pie,ycirc:Oie,Ycy:Rie,ycy:Die,yen:zie,Yfr:Iie,yfr:Fie,YIcy:Hie,yicy:qie,Yopf:Bie,yopf:Wie,Yscr:Uie,yscr:Vie,YUcy:jie,yucy:Gie,yuml:Kie,Yuml:Xie,Zacute:Yie,zacute:Zie,Zcaron:Jie,zcaron:Qie,Zcy:eoe,zcy:toe,Zdot:noe,zdot:roe,zeetrf:ioe,ZeroWidthSpace:ooe,Zeta:soe,zeta:loe,zfr:aoe,Zfr:coe,ZHcy:uoe,zhcy:foe,zigrarr:doe,zopf:hoe,Zopf:poe,Zscr:goe,zscr:voe,zwj:moe,zwnj:yoe},boe="Á",woe="á",xoe="Â",_oe="â",Soe="´",koe="Æ",Coe="æ",Toe="À",Eoe="à",Loe="&",Aoe="&",Moe="Å",Noe="å",$oe="Ã",Poe="ã",Ooe="Ä",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="¬",Cse="Ñ",Tse="ñ",Ese="Ó",Lse="ó",Ase="Ô",Mse="ô",Nse="Ò",$se="ò",Pse="ª",Ose="º",Rse="Ø",Dse="ø",zse="Õ",Ise="õ",Fse="Ö",Hse="ö",qse="¶",Bse="±",Wse="£",Use='"',Vse='"',jse="»",Gse="®",Kse="®",Xse="§",Yse="",Zse="¹",Jse="²",Qse="³",ele="ß",tle="Þ",nle="þ",rle="×",ile="Ú",ole="ú",sle="Û",lle="û",ale="Ù",cle="ù",ule="¨",fle="Ü",dle="ü",hle="Ý",ple="ý",gle="¥",vle="ÿ",mle={Aacute:boe,aacute:woe,Acirc:xoe,acirc:_oe,acute:Soe,AElig:koe,aelig:Coe,Agrave:Toe,agrave:Eoe,amp:Loe,AMP:Aoe,Aring:Moe,aring:Noe,Atilde:$oe,atilde:Poe,Auml:Ooe,auml:Roe,brvbar:Doe,Ccedil:zoe,ccedil:Ioe,cedil:Foe,cent:Hoe,copy:qoe,COPY:Boe,curren:Woe,deg:Uoe,divide:Voe,Eacute:joe,eacute:Goe,Ecirc:Koe,ecirc:Xoe,Egrave:Yoe,egrave:Zoe,ETH:Joe,eth:Qoe,Euml:ese,euml:tse,frac12:nse,frac14:rse,frac34:ise,gt:ose,GT:sse,Iacute:lse,iacute:ase,Icirc:cse,icirc:use,iexcl:fse,Igrave:dse,igrave:hse,iquest:pse,Iuml:gse,iuml:vse,laquo:mse,lt:yse,LT:bse,macr:wse,micro:xse,middot:_se,nbsp:Sse,not:kse,Ntilde:Cse,ntilde:Tse,Oacute:Ese,oacute:Lse,Ocirc:Ase,ocirc:Mse,Ograve:Nse,ograve:$se,ordf:Pse,ordm:Ose,Oslash:Rse,oslash:Dse,Otilde:zse,otilde:Ise,Ouml:Fse,ouml:Hse,para:qse,plusmn:Bse,pound:Wse,quot:Use,QUOT:Vse,raquo:jse,reg:Gse,REG:Kse,sect:Xse,shy:Yse,sup1:Zse,sup2:Jse,sup3:Qse,szlig:ele,THORN:tle,thorn:nle,times:rle,Uacute:ile,uacute:ole,Ucirc:sle,ucirc:lle,Ugrave:ale,ugrave:cle,uml:ule,Uuml:fle,uuml:dle,Yacute:hle,yacute:ple,yen:gle,yuml:vle},yle="&",ble="'",wle=">",xle="<",_le='"',Vb={amp:yle,apos:ble,gt:wle,lt:xle,quot:_le};var qh={};const Sle={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 kle=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qh,"__esModule",{value:!0});var Rm=kle(Sle),Cle=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 Tle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Rm.default&&(e=Rm.default[e]),Cle(e))}qh.default=Tle;var Ou=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ai,"__esModule",{value:!0});ai.decodeHTML=ai.decodeHTMLStrict=ai.decodeXML=void 0;var Dd=Ou(Ub),Ele=Ou(mle),Lle=Ou(Vb),Dm=Ou(qh),Ale=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ai.decodeXML=jb(Lle.default);ai.decodeHTMLStrict=jb(Dd.default);function jb(e){var t=Gb(e);return function(r){return String(r).replace(Ale,t)}}var zm=function(e,t){return e<t?1:-1};ai.decodeHTML=function(){for(var e=Object.keys(Ele.default).sort(zm),t=Object.keys(Dd.default).sort(zm),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=Gb(Dd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Gb(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Dm.default(parseInt(r.substr(3),16)):Dm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Gn={},Kb=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.escapeUTF8=Gn.escape=Gn.encodeNonAsciiHTML=Gn.encodeHTML=Gn.encodeXML=void 0;var Mle=Kb(Vb),Xb=Zb(Mle.default),Yb=Jb(Xb);Gn.encodeXML=tw(Xb);var Nle=Kb(Ub),Bh=Zb(Nle.default),$le=Jb(Bh);Gn.encodeHTML=Ole(Bh,$le);Gn.encodeNonAsciiHTML=tw(Bh);function Zb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Jb(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var Qb=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Ple=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ru(e){return"&#x"+(e.length>1?Ple(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Ole(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(Qb,Ru)}}var ew=new RegExp(Yb.source+"|"+Qb.source,"g");function Rle(e){return e.replace(ew,Ru)}Gn.escape=Rle;function Dle(e){return e.replace(Yb,Ru)}Gn.escapeUTF8=Dle;function tw(e){return function(t){return t.replace(ew,function(r){return e[r]||Ru(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=ai,r=Gn;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=Gn;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=ai;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Wb);function zle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ile(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 Fle(e,t,r){return t&&Ile(e.prototype,t),e}function nw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Hle(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 Hle(e,t){if(e){if(typeof e=="string")return Im(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 Im(e,t)}}function Im(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 qle=Wb,Fm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Ble()};function Ble(){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 cc(0,5).forEach(function(t){cc(0,5).forEach(function(r){cc(0,5).forEach(function(o){return Wle(t,r,o,e)})})}),cc(0,23).forEach(function(t){var r=t+232,o=rw(t*10+8);e[r]="#"+o+o+o}),e}function Wle(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]=Ule([c,f,d])}function rw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Ule(e){var t=[],r=nw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(rw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Hm(e,t,r,o){var s;return t==="text"?s=Kle(r,o):t==="display"?s=jle(e,r,o):t==="xterm256Foreground"?s=Ac(e,o.colors[r]):t==="xterm256Background"?s=Mc(e,o.colors[r]):t==="rgb"&&(s=Vle(e,r)),s}function Vle(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 Lc(e,(r===38?"color:#":"background-color:#")+s)}function jle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&iw(e)},1:function(){return Wi(e,"b")},3:function(){return Wi(e,"i")},4:function(){return Wi(e,"u")},8:function(){return Lc(e,"display:none")},9:function(){return Wi(e,"strike")},22:function(){return Lc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Bm(e,"i")},24:function(){return Bm(e,"u")},39:function(){return Ac(e,r.fg)},49:function(){return Mc(e,r.bg)},53:function(){return Lc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=Wi(e,"blink"):29<t&&t<38?s=Ac(e,r.colors[t-30]):39<t&&t<48?s=Mc(e,r.colors[t-40]):89<t&&t<98?s=Ac(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Mc(e,r.colors[8+(t-100)])),s}function iw(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function cc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function Gle(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function qm(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 Kle(e,t){return t.escapeXML?qle.encodeXML(e):e}function Wi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Lc(e,t){return Wi(e,"span",t)}function Ac(e,t){return Wi(e,"span","color:"+t)}function Mc(e,t){return Wi(e,"span","background-color:"+t)}function Bm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Xle(e,t,r){var o=!1,s=3;function c(){return""}function f(q,z){return r("xterm256Foreground",z),""}function d(q,z){return r("xterm256Background",z),""}function h(q){return t.newline?r("display",-1):r("text",q),""}function p(q,z){o=!0,z.trim().length===0&&(z="0"),z=z.trimRight(";").split(";");var J=nw(z),re;try{for(J.s();!(re=J.n()).done;){var te=re.value;r("display",te)}}catch(j){J.e(j)}finally{J.f()}return""}function v(q){return r("text",q),""}function m(q){return r("rgb",q),""}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:m},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function x(q,z){z>s&&o||(o=!1,e=e.replace(q.pattern,q.sub))}var E=[],T=e,A=T.length;e:for(;A>0;){for(var N=0,L=0,P=b.length;L<P;N=++L){var M=b[N];if(x(M,N),e.length!==A){A=e.length;continue e}}if(e.length===A)break;E.push(0),A=e.length}return E}function Yle(e,t,r){return t!=="text"&&(e=e.filter(Gle(qm(r))),e.push({token:t,data:r,category:qm(r)})),e}var Zle=function(){function e(t){zle(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Fm.colors,t.colors)),this.options=Object.assign({},Fm,t),this.stack=[],this.stickyStack=[]}return Fle(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=Hm(s,d.token,d.data,c);h&&f.push(h)}),Xle(r.join(""),c,function(d,h){var p=Hm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Yle(o.stickyStack,d,h))}),s.length&&f.push(iw(s)),f.join("")}}]),e}(),Jle=Zle;const Qle=Bb(Jle),eae=/^[A-Za-z]:\//;function tae(e=""){return e&&e.replace(/\\/g,"/").replace(eae,t=>t.toUpperCase())}const nae=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function rae(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const iae=function(...e){e=e.map(o=>tae(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:rae();!s||s.length===0||(t=`${s}/${t}`,r=Wm(s))}return t=oae(t,!r),r&&!Wm(t)?`/${t}`:t.length>0?t:"."};function oae(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 Wm=function(e){return nae.test(e)},sae=44,Um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lae=new Uint8Array(64),ow=new Uint8Array(128);for(let e=0;e<Um.length;e++){const t=Um.charCodeAt(e);lae[e]=t,ow[t]=e}function aae(e){const t=new Int32Array(5),r=[];let o=0;do{const s=cae(e,o),c=[];let f=!0,d=0;t[0]=0;for(let h=o;h<s;h++){let p;h=_l(e,h,t,0);const v=t[0];v<d&&(f=!1),d=v,Vm(e,h,s)?(h=_l(e,h,t,1),h=_l(e,h,t,2),h=_l(e,h,t,3),Vm(e,h,s)?(h=_l(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||uae(c),r.push(c),o=s+1}while(o<=e.length);return r}function cae(e,t){const r=e.indexOf(";",t);return r===-1?e.length:r}function _l(e,t,r,o){let s=0,c=0,f=0;do{const h=e.charCodeAt(t++);f=ow[h],s|=(f&31)<<c,c+=5}while(f&32);const d=s&1;return s>>>=1,d&&(s=-2147483648|-s),r[o]+=s,t}function Vm(e,t,r){return t>=r?!1:e.charCodeAt(t)!==sae}function uae(e){e.sort(fae)}function fae(e,t){return e[0]-t[0]}const dae=/^[\w+.-]+:\/\//,hae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,pae=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var zt;(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"})(zt||(zt={}));function gae(e){return dae.test(e)}function vae(e){return e.startsWith("//")}function sw(e){return e.startsWith("/")}function mae(e){return e.startsWith("file:")}function jm(e){return/^[.?#]/.test(e)}function uc(e){const t=hae.exec(e);return lw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function yae(e){const t=pae.exec(e),r=t[2];return lw("file:","",t[1]||"","",sw(r)?r:"/"+r,t[3]||"",t[4]||"")}function lw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:zt.Absolute}}function Gm(e){if(vae(e)){const r=uc("http:"+e);return r.scheme="",r.type=zt.SchemeRelative,r}if(sw(e)){const r=uc("http://foo.com"+e);return r.scheme="",r.host="",r.type=zt.AbsolutePath,r}if(mae(e))return yae(e);if(gae(e))return uc(e);const t=uc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?zt.Query:e.startsWith("#")?zt.Hash:zt.RelativePath:zt.Empty,t}function bae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function wae(e,t){aw(t,t.type),e.path==="/"?e.path=t.path:e.path=bae(t.path)+e.path}function aw(e,t){const r=t<=zt.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 xae(e,t){if(!e&&!t)return"";const r=Gm(e);let o=r.type;if(t&&o!==zt.Absolute){const c=Gm(t),f=c.type;switch(o){case zt.Empty:r.hash=c.hash;case zt.Hash:r.query=c.query;case zt.Query:case zt.RelativePath:wae(r,c);case zt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case zt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}aw(r,o);const s=r.query+r.hash;switch(o){case zt.Hash:case zt.Query:return s;case zt.RelativePath:{const c=r.path.slice(1);return c?jm(t||e)&&!jm(c)?"./"+c+s:c+s:s||"."}case zt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Km(e,t){return t&&!t.endsWith("/")&&(t+="/"),xae(e,t)}function _ae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Qi=0,Sae=1,kae=2,Cae=3,Tae=4;function Eae(e,t){const r=Xm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Xm(e,o+1))e[o]=Aae(e[o],t);return e}function Xm(e,t){for(let r=t;r<e.length;r++)if(!Lae(e[r]))return r;return e.length}function Lae(e){for(let t=1;t<e.length;t++)if(e[t][Qi]<e[t-1][Qi])return!1;return!0}function Aae(e,t){return t||(e=e.slice()),e.sort(Mae)}function Mae(e,t){return e[Qi]-t[Qi]}let Qc=!1;function Nae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Qi]-t;if(c===0)return Qc=!0,s;c<0?r=s+1:o=s-1}return Qc=!1,r-1}function $ae(e,t,r){for(let o=r+1;o<e.length&&e[o][Qi]===t;r=o++);return r}function Pae(e,t,r){for(let o=r-1;o>=0&&e[o][Qi]===t;r=o--);return r}function Oae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Rae(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 Qc=f!==-1&&e[f][Qi]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=Nae(e,t,d,h)}const Dae="`line` must be greater than 0 (lines start at line 1)",zae="`column` must be greater than or equal to 0 (columns start at column 0)",Ym=-1,Iae=1;class Fae{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 m=Km(h||"",_ae(r));this.resolvedSources=p.map(x=>Km(x||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=Eae(b,o)),this._decodedMemo=Oae(),this._bySources=void 0,this._bySourceMemos=void 0}}function Hae(e){var t;return(t=e)._decoded||(t._decoded=aae(e._encoded))}function qae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Dae);if(o<0)throw new Error(zae);const c=Hae(e);if(r>=c.length)return fc(null,null,null,null);const f=c[r],d=Bae(f,e._decodedMemo,r,o,s||Iae);if(d===-1)return fc(null,null,null,null);const h=f[d];if(h.length===1)return fc(null,null,null,null);const{names:p,resolvedSources:v}=e;return fc(v[h[Sae]],h[kae]+1,h[Cae],h.length===5?p[h[Tae]]:null)}function fc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function Bae(e,t,r,o,s){let c=Rae(e,o,t,r);return Qc?c=(s===Ym?$ae:Pae)(e,o,c):s===Ym&&c++,c===-1||c===e.length?-1:c}const cw=/^\s*at .*(?:\S:\d+|\(native\))/m,Wae=/^(?:eval@)?(?:\[native code\])?$/,Uae=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function uw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Vae(e){let t=e.trim();if(Wae.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=uw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function jae(e){let t=e.trim();if(!cw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=uw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=iae(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function Gae(e,t={}){const{ignoreStackEntries:r=Uae}=t;let o=cw.test(e)?Xae(e):Kae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new Fae(f),{line:h,column:p}=qae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Kae(e){return e.split(`
|
|
24
|
-
`).map(t=>Vae(t)).filter(Ib)}function Xae(e){return e.split(`
|
|
25
|
-
`).map(t=>jae(t)).filter(Ib)}function Yae(e,t){return t&&e.endsWith(t)}async function fw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Qle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Zae(e){return e===null||typeof e!="function"&&typeof e!="object"}function dw(e){let t=e;if(Zae(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=Gae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Du(e){return q0()?(tS(e),!0):!1}function ui(e){return typeof e=="function"?e():I(e)}const Jae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Qae=Object.prototype.toString,ece=e=>Qae.call(e)==="[object Object]",na=()=>{};function hw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const pw=e=>e();function gw(e,t={}){let r,o,s=na;const c=d=>{clearTimeout(d),s(),s=na};return d=>{const h=ui(e),p=ui(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,m)=>{s=t.rejectOnCancel?m:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function tce(e=pw){const t=Be(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ua(t),pause:r,resume:o,eventFilter:s}}function nce(e){return da()}function rce(...e){if(e.length!==1)return yu(...e);const t=e[0];return typeof t=="function"?ua(ry(()=>({get:t,set:na}))):Be(t)}function dc(e,t=200,r={}){return hw(gw(t,r),e)}function vw(e,t,r={}){const{eventFilter:o=pw,...s}=r;return Ht(e,hw(o,t),s)}function mw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=tce(o);return{stop:vw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){nce()?Hs(e,r):t?e():ln(e)}function ice(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Pt(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=ui(r);return c.value=c.value===h?ui(o):h,c.value}}return s?f:[c,f]}function yw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return vw(e,t,{...c,eventFilter:gw(o,{maxWait:s})})}function oce(e,t,r){const o=Ht(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function sce(e,t,r){let o;Pt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=na}=o,h=Be(!s),p=f?Br(t):Be(t);let v=0;return Th(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(T=>{m(()=>{c&&(c.value=!1),x||T()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Ee(()=>(h.value=!0,p.value)):p}function eu(e){var t;const r=ui(e);return(t=r==null?void 0:r.$el)!=null?t:r}const or=Jae?window:void 0;function Ps(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=or):[t,r,o,s]=e,!t)return na;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,m,b,x)=>(v.addEventListener(m,b,x),()=>v.removeEventListener(m,b,x)),h=Ht(()=>[eu(t),ui(s)],([v,m])=>{if(f(),!v)return;const b=ece(m)?{...m}:m;c.push(...r.flatMap(x=>o.map(E=>d(v,x,E,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Du(p),p}function lce(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function bw(...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=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=lce(t);return Ps(s,c,v=>{v.repeat&&ui(d)||h(v)&&r(v)},f)}function ace(){const e=Be(!1),t=da();return t&&Hs(()=>{e.value=!0},t),e}function ww(e){const t=ace();return Ee(()=>(t.value,!!e()))}function cce(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or}=t,c=Be(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function m(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Du(m),{isActive:ua(c),pause:m,resume:v}}function xw(e,t={}){const{window:r=or}=t,o=ww(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Be(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Th(()=>{o.value&&(d(),s=r.matchMedia(ui(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Du(()=>{h(),d(),s=void 0}),c}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",uce=fce();function fce(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function _w(e,t){return uce[e]||t}function dce(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 hce={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 Sw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=or,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:E}=o,T=(v?Br:Be)(typeof t=="function"?t():t);if(!r)try{r=_w("getDefaultStorage",()=>{var j;return(j=or)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return T;const A=ui(t),N=dce(A),L=(s=o.serializer)!=null?s:hce[N],{pause:P,resume:M}=mw(T,()=>z(T.value),{flush:c,deep:f,eventFilter:b});m&&d&&Uh(()=>{Ps(m,"storage",re),Ps(m,Zm,te),E&&re()}),E||re();function q(j,ne){m&&m.dispatchEvent(new CustomEvent(Zm,{detail:{key:e,oldValue:j,newValue:ne,storageArea:r}}))}function z(j){try{const ne=r.getItem(e);if(j==null)q(ne,null),r.removeItem(e);else{const K=L.write(j);ne!==K&&(r.setItem(e,K),q(ne,K))}}catch(ne){x(ne)}}function J(j){const ne=j?j.newValue:r.getItem(e);if(ne==null)return h&&A!=null&&r.setItem(e,L.write(A)),A;if(!j&&p){const K=L.read(ne);return typeof p=="function"?p(K,A):N==="object"&&!Array.isArray(K)?{...A,...K}:K}else return typeof ne!="string"?ne:L.read(ne)}function re(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){T.value=A;return}if(!(j&&j.key!==e)){P();try{(j==null?void 0:j.newValue)!==L.write(T.value)&&(T.value=J(j))}catch(ne){x(ne)}finally{j?ln(M):M()}}}}function te(j){re(j.detail)}return T}function kw(e){return xw("(prefers-color-scheme: dark)",e)}function pce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=kw({window:s}),x=Ee(()=>b.value?"dark":"light"),E=h||(f==null?rce(o):Sw(f,o,c,{window:s,listenToStorageChanges:d})),T=Ee(()=>E.value==="auto"?x.value:E.value),A=_w("updateHTMLAttrs",(M,q,z)=>{const J=typeof M=="string"?s==null?void 0:s.document.querySelector(M):eu(M);if(!J)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)),q==="class"){const te=z.split(/\s/g);Object.values(m).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{te.includes(j)?J.classList.add(j):J.classList.remove(j)})}else J.setAttribute(q,z);v&&(s.getComputedStyle(re).opacity,document.head.removeChild(re))});function N(M){var q;A(t,r,(q=m[M])!=null?q:M)}function L(M){e.onChanged?e.onChanged(M,N):N(M)}Ht(T,L,{flush:"post",immediate:!0}),Uh(()=>L(T.value));const P=Ee({get(){return p?E.value:T.value},set(M){E.value=M}});try{return Object.assign(P,{store:E,system:x,state:T})}catch{return P}}function gce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=or}=e,s=pce({...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=Ee(()=>s.system?s.system.value:kw({window:o}).value?"dark":"light");return Ee({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function Cw(e,t,r={}){const{window:o=or,...s}=r;let c;const f=ww(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Ee(()=>Array.isArray(e)?e.map(m=>eu(m)):[eu(e)]),p=Ht(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Du(v),{isSupported:f,stop:v}}function zu(e,t,r={}){const{window:o=or}=r;return Sw(e,t,o==null?void 0:o.localStorage,r)}function vce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=or}=t;if(!f)return Xn(r);const d=Xn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",L=N.indexOf("?");return L>0?N.slice(L):""}else return(f.location.hash||"").replace(/^#/,"")}function p(N){const L=N.toString();if(e==="history")return`${L?`?${L}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${L?`#${L}`:""}`;const P=f.location.hash||"#",M=P.indexOf("?");return M>0?`${P.slice(0,M)}${L?`?${L}`:""}`:`${P}${L?`?${L}`:""}`}function v(){return new URLSearchParams(h())}function m(N){const L=new Set(Object.keys(d));for(const P of N.keys()){const M=N.getAll(P);d[P]=M.length>1?M:N.get(P)||"",L.delete(P)}Array.from(L).forEach(P=>delete d[P])}const{pause:b,resume:x}=mw(d,()=>{const N=new URLSearchParams("");Object.keys(d).forEach(L=>{const P=d[L];Array.isArray(P)?P.forEach(M=>N.append(L,M)):o&&P==null||s&&!P?N.delete(L):N.set(L,P)}),E(N)},{deep:!0});function E(N,L){b(),L&&m(N),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(N)),x()}function T(){c&&E(v(),!0)}Ps(f,"popstate",T,!1),e!=="history"&&Ps(f,"hashchange",T,!1);const A=v();return A.keys().next().value?m(A):Object.assign(d,r),d}function Tw(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0}=e,f=Be(r),d=Be(o),h=()=>{t&&(c?(f.value=t.innerWidth,d.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight))};if(h(),Uh(h),Ps("resize",h,{passive:!0}),s){const p=xw("(orientation: portrait)");Ht(p,()=>h())}return{width:f,height:d}}const Vh=vce("hash",{initialValue:{file:"",view:null,line:null}}),eo=yu(Vh,"file"),Un=yu(Vh,"view"),zd=yu(Vh,"line"),Pr=Be([414,896]),tu=Be("idle"),mce=Ee(()=>tu.value==="idle"),Hi=Be([]),Os=Be(),Ss=Be(!0),to=Be(!1),nu=Be(!0),hs=Ee(()=>{var e;return(e=Hu.value)==null?void 0:e.coverage}),Id=Ee(()=>{var e;return(e=hs.value)==null?void 0:e.enabled}),ps=Ee(()=>Id.value&&!!hs.value.htmlReporter),br=zu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=zu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),Sn=Xn({navigation:br.value[0],details:{size:br.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Jm=Ee(()=>{var e;if(ps.value){const t=hs.value.reportsDirectory.lastIndexOf("/"),r=(e=hs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${hs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${hs.value.reportsDirectory.slice(t+1)}/index.html`}});Ht(tu,e=>{nu.value=e==="running"},{immediate:!0});function yce(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Os.value=t,Ss.value=!1,to.value=!1):oce(()=>yt.state.getFiles(),()=>{Os.value=sr(e),Ss.value=!1,to.value=!1})}return Ss}function ru(e){Ss.value=e,to.value=!1,e&&(Os.value=void 0,eo.value="")}function Ew(e,t=null){eo.value=e.file.id,zd.value=null,t!=null&&(ln(()=>{zd.value=t}),Un.value="editor"),Os.value=sr(e.file.id),ru(!1)}function bce(){to.value=!0,Ss.value=!1,Os.value=void 0,eo.value=""}function wce(){Sn.details.browser=100,Sn.details.main=0,Mo.value=[100,0]}function xce(){Sn.details.browser=33,Sn.details.main=67,Mo.value=[33,67]}function _ce(){Sn.navigation=33,Sn.details.size=67,br.value=[33,67]}const Sce={setCurrentFileId(e){eo.value=e,Os.value=sr(e),ru(!1)},async setIframeViewport(e,t){Pr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}};var Kn=Uint8Array,gs=Uint16Array,kce=Int32Array,Lw=new Kn([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]),Aw=new Kn([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]),Cce=new Kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mw=function(e,t){for(var r=new gs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new kce(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}},Nw=Mw(Lw,2),$w=Nw.b,Tce=Nw.r;$w[28]=258,Tce[258]=28;var Ece=Mw(Aw,0),Lce=Ece.b,Fd=new gs(32768);for(var Ct=0;Ct<32768;++Ct){var Pi=(Ct&43690)>>1|(Ct&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Fd[Ct]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var Hl=function(e,t,r){for(var o=e.length,s=0,c=new gs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new gs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new gs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Fd[m]>>h]=p}else for(d=new gs(o),s=0;s<o;++s)e[s]&&(d[s]=Fd[f[e[s]-1]++]>>15-e[s]);return d},va=new Kn(288);for(var Ct=0;Ct<144;++Ct)va[Ct]=8;for(var Ct=144;Ct<256;++Ct)va[Ct]=9;for(var Ct=256;Ct<280;++Ct)va[Ct]=7;for(var Ct=280;Ct<288;++Ct)va[Ct]=8;var Pw=new Kn(32);for(var Ct=0;Ct<32;++Ct)Pw[Ct]=5;var Ace=Hl(va,9,1),Mce=Hl(Pw,5,1),nd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},yr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},rd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Nce=function(e){return(e+7)/8|0},Ow=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Kn(e.subarray(t,r))},$ce=["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"],Pn=function(e,t,r){var o=new Error(t||$ce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Pn),!r)throw o;return o},jh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Kn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Kn(s*3));var p=function(Te){var Ye=r.length;if(Te>Ye){var O=new Kn(Math.max(Ye*2,Te));O.set(r),r=O}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,E=t.d,T=t.m,A=t.n,N=s*8;do{if(!x){v=yr(e,m,1);var L=yr(e,m+1,3);if(m+=3,L)if(L==1)x=Ace,E=Mce,T=9,A=5;else if(L==2){var z=yr(e,m,31)+257,J=yr(e,m+10,15)+4,re=z+yr(e,m+5,31)+1;m+=14;for(var te=new Kn(re),j=new Kn(19),ne=0;ne<J;++ne)j[Cce[ne]]=yr(e,m+ne*3,7);m+=J*3;for(var K=nd(j),V=(1<<K)-1,F=Hl(j,K,1),ne=0;ne<re;){var k=F[yr(e,m,V)];m+=k&15;var P=k>>4;if(P<16)te[ne++]=P;else{var B=0,W=0;for(P==16?(W=3+yr(e,m,3),m+=2,B=te[ne-1]):P==17?(W=3+yr(e,m,7),m+=3):P==18&&(W=11+yr(e,m,127),m+=7);W--;)te[ne++]=B}}var ie=te.subarray(0,z),ye=te.subarray(z);T=nd(ie),A=nd(ye),x=Hl(ie,T,1),E=Hl(ye,A,1)}else Pn(1);else{var P=Nce(m)+4,M=e[P-4]|e[P-3]<<8,q=P+M;if(q>s){h&&Pn(0);break}d&&p(b+M),r.set(e.subarray(P,q),b),t.b=b+=M,t.p=m=q*8,t.f=v;continue}if(m>N){h&&Pn(0);break}}d&&p(b+131072);for(var Ne=(1<<T)-1,We=(1<<A)-1,je=m;;je=m){var B=x[rd(e,m)&Ne],it=B>>4;if(m+=B&15,m>N){h&&Pn(0);break}if(B||Pn(2),it<256)r[b++]=it;else if(it==256){je=m,x=null;break}else{var rt=it-254;if(it>264){var ne=it-257,Je=Lw[ne];rt=yr(e,m,(1<<Je)-1)+$w[ne],m+=Je}var Le=E[rd(e,m)&We],X=Le>>4;Le||Pn(3),m+=Le&15;var ye=Lce[X];if(X>3){var Je=Aw[X];ye+=rd(e,m)&(1<<Je)-1,m+=Je}if(m>N){h&&Pn(0);break}d&&p(b+131072);var ae=b+rt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Pn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=T,t.d=E,t.n=A)}while(!v);return b!=r.length&&f?Ow(r,0,b):r.subarray(0,b)},Pce=new Kn(0),Oce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Pn(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)},Rce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Dce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Pn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Pn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function zce(e,t){return jh(e,{i:2},t,t)}function Ice(e,t){var r=Oce(e);return r+8>e.length&&Pn(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Kn(Rce(e)),t)}function Fce(e,t){return jh(e.subarray(Dce(e,t),-4),{i:2},t,t)}function Hce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Ice(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?zce(e,t):Fce(e,t)}var Hd=typeof TextDecoder<"u"&&new TextDecoder,qce=0;try{Hd.decode(Pce,{stream:!0}),qce=1}catch{}var Bce=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:Ow(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 Wce(e,t){var r;if(Hd)return Hd.decode(e);var o=Bce(e),s=o.s,r=o.r;return r.length&&Pn(8),s}const id=()=>{},wn=()=>Promise.resolve();function Uce(){const e=Xn({state:new qb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Xn(e.state.filesMap),e.state.idMap=Xn(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:wn,onDone:id,onTaskUpdate:id,writeFile:wn,rerun:wn,updateSnapshot:wn,resolveSnapshotPath:wn,snapshotSaved:wn,onAfterSuiteRun:wn,onCancel:wn,getCountOfFailedTests:()=>0,sendLog:wn,resolveSnapshotRawPath:wn,readSnapshotFile:wn,saveSnapshotFile:wn,readTestFile:async d=>t.sources[d],removeSnapshotFile:wn,onUnhandledError:id,saveTestFile:wn,getProvidedContext:()=>({}),getTestFiles:wn};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 m=new Uint8Array(await d.arrayBuffer()),b=Wce(Hce(m));t=Rd(b)}else t=Rd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const qd=Br([]),Hn=Br([]),Cr=zu("vitest-ui_task-tree-opened",[],{shallow:!0}),iu=Ee(()=>new Set(Cr.value)),on=zu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=Be(on.value.search),Vce={"&":"&","<":"<",">":">",'"':""","'":"'"};function Rw(e){return e.replace(/[&<>"']/g,t=>Vce[t])}const jce=Ee(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${Rw(e)})`,"gi"):null}),Dw=Ee(()=>On.value.trim()!==""),et=Xn({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Bd=Ee(()=>!!(et.failed||et.success||et.skipped)),Iu=Br([]),Rs=Be(!1),Qm=Ee(()=>{const e=on.value.expandAll;return Cr.value.length>0?e!==!0:e!==!1}),Gce=Ee(()=>{const e=Dw.value,t=Bd.value,r=et.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Iu.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Fu(e){return Object.hasOwnProperty.call(e,"tasks")}function Kce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function zw(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 Xce(e){return e.type==="test"||e.type==="custom"}function Yce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Cn(e){return e.type==="file"}function Zce(e){return e.type==="suite"}function fi(e){return e.type==="file"||e.type==="suite"}function Jce(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ra(e,t=!1){var o,s,c,f;let r=Ce.nodes.get(e.id);if(r?(r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:iu.value.size>0&&iu.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:zw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(f=e.result)==null?void 0:f.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let d=0;d<e.tasks.length;d++)ma(e.id,e.tasks[d],!0)}function Iw(e,t){const r=Ce.nodes.get(e);if(!r||!fi(r))return;const o=yt.state.idMap.get(e);if(!(!o||!Fu(o)))return ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Qce(e){const t=Ce.nodes.get(e);if(!t)return;const r=yt.state.idMap.get(e);!r||!$s(r)||ma(t.parentId,r,!1)}function ma(e,t,r){var c,f,d,h,p,v;const o=Ce.nodes.get(e);let s;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=(c=t.result)==null?void 0:c.duration,s.state=(f=t.result)==null?void 0:f.state,Zce(s)&&(s.typecheck=!!t.meta&&"typecheck"in t.meta)):($s(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:(d=t.result)==null?void 0:d.duration,state:(h=t.result)==null?void 0:h.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,typecheck:!!t.meta&&"typecheck"in t.meta,type:"suite",expandable:!0,expanded:iu.value.size>0&&iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:(p=t.result)==null?void 0:p.duration,state:(v=t.result)==null?void 0:v.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Fu(t)))for(let m=0;m<t.tasks.length;m++)ma(s.id,t.tasks[m],r)}function eue(e,t,r){return e?qw(e,t,r):!1}function Gh(e,t){const r=[...Fw(e,t)];Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function*Fw(e,t){for(const r of Jce())yield*Hw(r,e,t)}function*Hw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,x=>e0(x,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,x=>e0(x,t,r)))fi(b)?(s.set(b.id,m),Cn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Cn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...nue(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>{var b;return Cn(m)||fi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Cn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function tue(e,t,r,o,s){if(o){if(Cn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}function*nue(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=fi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),Cn(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=tue(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&Cn(p)&&o.add(p.id),yield d}}}function rue(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 qw(e,t,r){if(t.length===0||Kce(e.name,t))if(r.success||r.failed||r.skipped){if(rue(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(Xce(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(Cn(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],fi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function e0(e,t,r){const o=yt.state.idMap.get(e.id);return o?qw(o,t,r):!1}function iue(e,t,r){const o=Iw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ma(s.id,p,!1);s.expanded=!0;const f=new Set(Cr.value);f.add(s.id);const d=new Set(Hw(s,t,r)),h=[...lue(s,d)];Cr.value=Array.from(f),Hn.value=h}function oue(e,t){Kh(Ce.root.tasks,!1);const r=[...Fw(e,t)];on.value.expandAll=!1,Cr.value=[],Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function sue(e,t){if(e.size)for(const r of Hn.value)e.has(r.id)&&(r.expanded=!0);else t&&Kh(Hn.value.filter(Cn),!0)}function Kh(e,t){for(const r of e)fi(r)&&(r.expanded=!0,Kh(r.tasks,!1));t&&(on.value.expandAll=!1,Cr.value=[])}function*lue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Hn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function aue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ra(s,t)),qd.value=[...Ce.root.tasks],Gh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function cue(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=yt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function t0(e,t,r,o,s){e&&gue(r);const c=!e;queueMicrotask(()=>{t?due(c):hue(c)}),queueMicrotask(()=>{vue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=qd.value&&Hh(qd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{pue(o,s,t)})}function*uue(){yield*Hn.value.filter(Yce)}function fue(){const e=yt.state.idMap;let t;for(const r of uue())t=e.get(r.parentId),t&&Fu(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function due(e){const t=yt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ra(o[c],e),ou(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=sr(f.id);if(!d)continue;ra(d,e);const h=d.tasks;h!=null&&h.length&&ou(d.tasks)}}function hue(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>sr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ra(s,!1),ou(s.tasks),t.delete(s.id);const c=yt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ra(p,e),ou(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function pue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(Cr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{n0(e,t,r)}),Rs.value||queueMicrotask(()=>{(Hn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{sue(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{n0(e,t,r)}))}function n0(e,t,r){Gh(e,t),r&&fue()}function ou(e){let t;for(let r=0;r<e.length;r++)t=e[r],Fu(t)?Iw(t.id,!0):Qce(t.id)}function gue(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 vue(e){var f,d,h,p,v;const t=yt.state.idMap,r=new Map(Ce.root.tasks.filter(m=>t.has(m.id)).map(m=>[m.id,m])),o=Array.from(r.values()).map(m=>[m.id,sr(m.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[m,b]of o){if(!b)continue;const x=r.get(m);x&&(x.mode=b.mode,x.setupDuration=b.setupDuration,x.prepareDuration=b.prepareDuration,x.environmentLoad=b.environmentLoad,x.collectDuration=b.collectDuration,x.duration=(f=b.result)==null?void 0:f.duration,x.state=(d=b.result)==null?void 0:d.state),c+=Math.max(0,b.collectDuration||0),c+=Math.max(0,b.setupDuration||0),c+=Math.max(0,((h=b.result)==null?void 0:h.duration)||0),c+=Math.max(0,b.environmentLoad||0),c+=Math.max(0,b.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((p=b.result)==null?void 0:p.state)==="fail"?s.filesFailed++:((v=b.result)==null?void 0:v.state)==="pass"?s.filesSuccess++:b.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):b.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:E,success:T,skipped:A,total:N,ignored:L,todo:P}=Bw(b);s.totalTests+=N,s.testsFailed+=E,s.testsSuccess+=T,s.testsSkipped+=A,s.testsTodo+=P,s.testsIgnore+=L}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Bw(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 Ww(e))(!r||eue(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 mue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>Bw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Ww(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],$s(r)?yield r:yield*Ww(r.tasks)}function yue(e){const t=Ce.nodes.get(e);if(!t||!fi(t))return;const r=new Set(Cr.value);r.delete(t.id);const o=[...wue(t)];Cr.value=Array.from(r),Hn.value=o}function bue(){Ud(Ce.root.tasks);const e=[...Hn.value.filter(Cn)];Ud(e),Cr.value=[],on.value.expandAll=!0,Hn.value=e}function Ud(e){for(const t of e)fi(t)&&(t.expanded=!1,Ud(t.tasks))}function*Uw(e,t){if(t&&(yield e.id),fi(e))for(let r=0;r<e.tasks.length;r++)yield*Uw(e.tasks[r],!0)}function*wue(e){const t=e.id,r=new Set(Uw(e,!1));for(let o=0;o<Hn.value.length;o++){const s=Hn.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 xue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Xn({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})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=cce(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){aue(t,!0,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){cue(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(()=>{t0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):t0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return mue(t,r,o,s,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{yue(t)})}expandNode(t){queueMicrotask(()=>{iue(t,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{bue()})}expandAllNodes(){queueMicrotask(()=>{oue(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Gh(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Ce=new xue,yt=function(){return Ir?Uce():JE(tL,{reactive:(t,r)=>r==="state"?Xn(t):Br(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),tu.value="running"},onFinished(t,r){Ce.endRun(),tu.value="idle",Hi.value=(r||[]).map(dw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Hu=Br({}),To=Be("CONNECTING"),Yt=Ee(()=>{const e=eo.value;return e?sr(e):void 0}),Vw=Ee(()=>Fh(Yt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=yt.state.idMap.get(e);return t||void 0}const _ue=Ee(()=>To.value==="OPEN"),od=Ee(()=>To.value==="CONNECTING");Ee(()=>To.value==="CLOSED");function Sue(){return Xh(yt.state.getFiles())}function kue(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Cn(o)&&(o.collectDuration=void 0))})}function Xh(e){return kue(e),Ce.startRun(),yt.rpc.rerun(e.map(t=>t.filepath))}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=Sce;Ht(()=>yt.ws,e=>{To.value=Ir?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",yt.state.filesMap.clear();const[t,r,o]=await Promise.all([yt.rpc.getFiles(),yt.rpc.getConfig(),yt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await yt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Fb(h,d,f));yt.state.collectFiles(c)}else Ce.loadFiles(t),yt.state.collectFiles(t),Ce.startRun();Hi.value=(o||[]).map(dw),Hu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Cue={"text-2xl":""},Tue={"text-lg":"",op50:""},Eue=ft({__name:"ConnectionOverlay",setup(e){return(t,r)=>I(_ue)?Ze("",!0):(oe(),me("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)=>I(yt).reconnect&&I(yt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(I(od)?"animate-pulse":"")},[Y("div",{text:"5xl",class:lt(I(od)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Cue,qe(I(od)?"Connecting...":"Disconnected"),1),Y("div",Tue," Check your terminal or start a new server with `"+qe(I(Ro)?`vitest --browser=${I(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lue=["aria-label","opacity","disabled","hover"],gi=ft({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("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:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[dn(t.$slots,"default",{},()=>[Y("span",{class:lt(t.icon),ma:"",block:""},null,2)])],10,Lue))}}),jw=e=>(Is("data-v-28536a8a"),e=e(),Fs(),e),Aue={h:"full",flex:"~ col"},Mue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nue=jw(()=>Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),$ue=jw(()=>Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),Pue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Oue={class:"pointer-events-none","text-sm":""},Rue={key:0},Due={id:"tester-container",relative:""},zue=["data-scale"],r0=20,Iue=100,Fue=ft({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Pr.value[0]===v[0]&&Pr.value[1]===v[1]}async function o(p){Pr.value=t[p]}const{width:s,height:c}=Tw(),f=Ee(()=>{const m=s.value*(Sn.details.size/100)*(Sn.details.browser/100)-r0,b=c.value-Iue;return{width:m,height:b}}),d=Ee(()=>{const[p,v]=Pr.value,{width:m,height:b}=f.value,x=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,x,E)}),h=Ee(()=>{const p=f.value.width,v=Pr.value[0];return`${Math.trunc((p+r0-v)/2)}px`});return(p,v)=>{const m=gi,b=Wr("tooltip");return oe(),me("div",Aue,[Y("div",Mue,[wt(Pe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=x=>I(_ce)())},null,512),[[Ui,I(Sn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),Nue,$ue,wt(Pe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=x=>I(wce)())},null,512),[[Ui,I(Sn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),wt(Pe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=x=>I(xce)())},null,512),[[Ui,I(Sn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Pue,[wt(Pe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=x=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),wt(Pe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=x=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),wt(Pe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=x=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Oue,[pt(qe(I(Pr)[0])+"x"+qe(I(Pr)[1])+"px ",1),I(d)<1?(oe(),me("span",Rue,"("+qe((I(d)*100).toFixed(0))+"%)",1)):Ze("",!0)])]),Y("div",Due,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":I(d),style:Gt({"--viewport-width":`${I(Pr)[0]}px`,"--viewport-height":`${I(Pr)[1]}px`,"--tester-transform":`scale(${I(d)})`,"--tester-margin-left":I(h)})}," Select a test to run ",12,zue)])])}}}),Hue=Ur(Fue,[["__scopeId","data-v-28536a8a"]]),Gw=ft({__name:"Modal",props:qc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue"),r=Ee(()=>{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=Ee(()=>{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)=>(oe(),me("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[I(r)]]),style:Gt(t.value?{}:{transform:I(o)})},[dn(c.$slots,"default")],6)],2))}}),que=e=>(Is("data-v-93900314"),e=e(),Fs(),e),Bue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wue={"p-4":"",relative:"",border:"base b"},Uue=que(()=>Y("p",null,"Screenshot error",-1)),Vue={op50:"","font-mono":"","text-sm":""},jue={op50:"","font-mono":"","text-sm":""},Gue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kue=["src","alt"],Xue={key:1},Yue=ft({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return bw("Escape",()=>{r("close")}),(o,s)=>{const c=gi;return oe(),me("div",Bue,[Y("div",Wue,[Uue,Y("p",Vue,qe(o.file),1),Y("p",jue,qe(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gue,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kue)):(oe(),me("div",Xue," Something was wrong, the image cannot be resolved. "))])])}}}),Zue=Ur(Yue,[["__scopeId","data-v-93900314"]]);function ql(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ya=gce(),Jue=ice(ya),Que={class:"scrolls scrolls-rounded task-error"},efe=["onClickPassive"],tfe=["innerHTML"],nfe=ft({__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=Ee(()=>Wh(ya.value)),s=Ee(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Ee(()=>t.error.diff?o.value.toHtml(ql(t.error.diff)):void 0);return(f,d)=>{const h=Wr("tooltip");return oe(),me("div",Que,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),pt(": "+qe(f.error.message),1)]),(oe(!0),me(ut,null,ci(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),I(Yae)(p.file,f.filename)?wt((oe(),me("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:m=>I(fw)(p.file,p.line,p.column)},null,40,efe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ze("",!0)]))),128)),I(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:I(c)},null,8,tfe)):Ze("",!0)])}}}),rfe=Ur(nfe,[["__scopeId","data-v-9dd6eaea"]]),ife={"h-full":"",class:"scrolls"},ofe={flex:"~ gap-2 items-center"},sfe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lfe=["innerHTML"],afe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cfe=ft({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,x){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(T=>r(T,x+1))]}function o(b,x){var A,N,L;let E="";(A=x.message)!=null&&A.includes("\x1B")&&(E=`<b>${x.nameStr||x.name}</b>: ${b.toHtml(ql(x.message))}`);const T=(N=x.stackStr)==null?void 0:N.includes("\x1B");return(T||(L=x.stack)!=null&&L.includes("\x1B"))&&(E.length>0?E+=b.toHtml(ql(T?x.stackStr:x.stack)):E=`<b>${x.nameStr||x.name}</b>: ${x.message}${b.toHtml(ql(T?x.stackStr:x.stack))}`),E.length>0?E:null}function s(b,x){const E=Wh(b);return x.map(T=>{var L;const A=T.result;if(!A)return T;const N=(L=A.errors)==null?void 0:L.map(P=>o(E,P)).filter(P=>P!=null).join("<br><br>");return N!=null&&N.length&&(A.htmlError=N),T})}const c=Ee(()=>{var A,N;const b=t.file,x=((A=b==null?void 0:b.tasks)==null?void 0:A.flatMap(L=>r(L,0)))??[],E=b==null?void 0:b.result;if((N=E==null?void 0:E.errors)==null?void 0:N[0]){const L={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};x.unshift(L)}return x.length>0?s(ya.value,x):x});function f(b){var E;const x=(E=b.meta)==null?void 0:E.failScreenshotPath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}const d=Be(!1),h=Be(Date.now()),p=Be(),v=Ee(()=>{var E;const b=(E=p.value)==null?void 0:E.meta.failScreenshotPath,x=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${x}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,x)=>{const E=gi,T=rfe,A=Zue,N=Gw,L=Wr("tooltip");return oe(),me("div",ife,[I(c).length?(oe(!0),me(ut,{key:0},ci(I(c),P=>{var M,q,z,J;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Gt({"margin-left":`${(M=P.result)!=null&&M.htmlError?.5:2*P.level+.5}rem`})},[Y("div",ofe,[Y("span",null,qe(P.name),1),I(Ro)&&((q=P.meta)!=null&&q.failScreenshotPath)?(oe(),me(ut,{key:0},[wt(Pe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:re=>m(P)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),wt(Pe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:re=>f(P)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ze("",!0)]),(z=P.result)!=null&&z.htmlError?(oe(),me("div",sfe,[Y("pre",{innerHTML:P.result.htmlError},null,8,lfe)])):(J=P.result)!=null&&J.errors?(oe(!0),me(ut,{key:1},ci(P.result.errors,(re,te)=>{var j;return oe(),ot(T,{key:te,error:re,filename:(j=b.file)==null?void 0:j.name,root:I(Hu).root},null,8,["error","filename","root"])}),128)):Ze("",!0)],4)])}),128)):(oe(),me("div",afe," All tests passed in this file ")),I(Ro)?(oe(),ot(N,{key:2,modelValue:I(d),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(d)?d.value=P:null),direction:"right"},{default:st(()=>[I(p)?(oe(),ot(Oy,{key:0},{default:st(()=>[Pe(A,{file:I(p).file.filepath,name:I(p).name,url:I(v),onClose:x[0]||(x[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ze("",!0)]),_:1},8,["modelValue"])):Ze("",!0)])}}}),ufe=Ur(cfe,[["__scopeId","data-v-8f3dbcaa"]]),ffe={border:"b base","p-4":""},dfe=["innerHTML"],hfe=ft({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",ffe,[Y("div",{"text-xs":"","mb-1":"",class:lt(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,dfe)]))}}),pfe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gfe={key:1,p6:""},vfe=Y("pre",{inline:""},"console.log(foo)",-1),mfe=ft({__name:"ViewConsoleOutput",setup(e){const t=Ee(()=>{const o=Vw.value;if(o){const s=Wh(ya.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ql(h))}))}});function r(o){const s=o&&yt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?ZE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hfe;return(f=I(t))!=null&&f.length?(oe(),me("div",pfe,[(oe(!0),me(ut,null,ci(I(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("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))])):(oe(),me("p",gfe,[pt(" Log something in your test and it would print here. (e.g. "),vfe,pt(") ")]))}}});var Kw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],E=/Opera\//.test(r),T=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),N=/PhantomJS/.test(r),L=T&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),M=L||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),q=L||/Mac/.test(o),z=/\bCrOS\b/.test(r),J=/win/i.test(o),re=E&&r.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(E=!1,v=!0);var te=q&&(m||E&&(re==null||re<12.11)),j=s||h&&p>=9;function ne(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var K=function(n,i){var a=n.className,l=ne(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 F(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 B(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 ie(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 ye(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 Ne(n,i){var a=n.className;ne(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ne(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};L?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return it(n).defaultView}function X(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=X(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.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 Te(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ye=50,O={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},Z={origin:"*mouse"},ue={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function Se(n){for(;he.length<=n;)he.push(fe(he)+" ");return he[n]}function fe(n){return n[n.length-1]}function xe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function pe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Me(){}function ze(n,i){var a;return Object.create?a=Object.create(n):(Me.prototype=n,a=new Me),i&&ae(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&Ue(n)?!0:i.test(n):Ue(n)}function vt(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 It(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 lr(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var qn=null;function ar(n,i,a){var l;qn=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:qn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:qn=u)}return l??qn}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]/,y=/[Lb1n]/,w=/[1n]/;function _(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 G=S.length,U=[],ee=0;ee<G;++ee)U.push(a(S.charCodeAt(ee)));for(var ce=0,ve=D;ce<G;++ce){var be=U[ce];be=="m"?U[ce]=ve:ve=be}for(var ke=0,we=D;ke<G;++ke){var Ae=U[ke];Ae=="1"&&we=="r"?U[ke]="n":g.test(Ae)&&(we=Ae,Ae=="r"&&(U[ke]="R"))}for(var He=1,De=U[0];He<G-1;++He){var Qe=U[He];Qe=="+"&&De=="1"&&U[He+1]=="1"?U[He]="1":Qe==","&&De==U[He+1]&&(De=="1"||De=="n")&&(U[He]=De),De=Qe}for(var xt=0;xt<G;++xt){var Vt=U[xt];if(Vt==",")U[xt]="N";else if(Vt=="%"){var Tt=void 0;for(Tt=xt+1;Tt<G&&U[Tt]=="%";++Tt);for(var Nn=xt&&U[xt-1]=="!"||Tt<G&&U[Tt]=="1"?"1":"N",mn=xt;mn<Tt;++mn)U[mn]=Nn;xt=Tt-1}}for(var Ot=0,yn=D;Ot<G;++Ot){var Xt=U[Ot];yn=="L"&&Xt=="1"?U[Ot]="L":g.test(Xt)&&(yn=Xt)}for(var Ft=0;Ft<G;++Ft)if(u.test(U[Ft])){var Rt=void 0;for(Rt=Ft+1;Rt<G&&u.test(U[Rt]);++Rt);for(var Mt=(Ft?U[Ft-1]:D)=="L",bn=(Rt<G?U[Rt]:D)=="L",cs=Mt==bn?Mt?"L":"R":D,Li=Ft;Li<Rt;++Li)U[Li]=cs;Ft=Rt-1}for(var rn=[],Nr,jt=0;jt<G;)if(y.test(U[jt])){var Ff=jt;for(++jt;jt<G&&y.test(U[jt]);++jt);rn.push(new _(0,Ff,jt))}else{var Qr=jt,vo=rn.length,mo=$=="rtl"?1:0;for(++jt;jt<G&&U[jt]!="L";++jt);for(var cn=Qr;cn<jt;)if(w.test(U[cn])){Qr<cn&&(rn.splice(vo,0,new _(1,Qr,cn)),vo+=mo);var us=cn;for(++cn;cn<jt&&w.test(U[cn]);++cn);rn.splice(vo,0,new _(2,us,cn)),vo+=mo,Qr=cn}else++cn;Qr<jt&&rn.splice(vo,0,new _(1,Qr,jt))}return $=="ltr"&&(rn[0].level==1&&(Nr=S.match(/^\s+/))&&(rn[0].from=Nr[0].length,rn.unshift(new _(0,0,Nr[0].length))),fe(rn).level==1&&(Nr=S.match(/\s+$/))&&(fe(rn).to-=Nr[0].length,rn.push(new _(0,G-Nr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var oo=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||oo).concat(a)}};function jr(n,i){return n._handlers&&n._handlers[i]||oo}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=Te(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=jr(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 Zn(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)Te(a,i[l])==-1&&a.push(i[l])}function An(n,i){return jr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function hn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vi(n){tn(n),Io(n)}function Bs(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),q&&n.ctrlKey&&i==1&&(i=3),i}var Vu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function _a(n){if(Fo==null){var i=k("span","");F(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ws;function mi(n){if(Ws!=null)return Ws;var i=F(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:Ws=l.right-a.right<3}var Jn=`
|
|
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),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},yi=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},Sa=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function ju(n){if(fr!=null)return fr;var i=F(n,k("span","x")),a=i.getBoundingClientRect(),l=W(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Ho={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ho[n]=i}function so(n,i){dr[n]=i}function qo(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[n.name];typeof i=="string"&&(i={name:i}),n=ze(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=qo(i);var a=Ho[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(bi.hasOwnProperty(i.name)){var u=bi[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var bi={};function Wo(n,i){var a=bi.hasOwnProperty(n)?bi[n]:bi[n]={};ae(i,a)}function Er(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 Us(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 Uo(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(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},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 Gr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Bn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=Te(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 y=0;y<n.lines.length;++y){var w=n.lines[y],_=w.height;if(i<_)break;i-=_}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function ge(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Q(n,i,a){if(a===void 0&&(a=null),!(this instanceof Q))return new Q(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function dt(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function qt(n){return Q(n.line,n.ch)}function pn(n,i){return _e(n,i)<0?i:n}function Vo(n,i){return _e(n,i)<0?n:i}function up(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return Q(n.first,0);var a=n.first+n.size-1;return i.line>a?Q(a,Oe(n,a).text.length):F1(i,Oe(n,i.line).text.length)}function F1(n,i){var a=n.ch;return a==null||a>i?Q(n.line,i):a<0?Q(n.line,0):n}function fp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var ka=function(n,i){this.state=n,this.lookAhead=i},Lr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Lr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Lr.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}},Lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lr.fromSaved=function(n,i,a){return i instanceof ka?new Lr(n,Er(n.mode,i.state),a,i.lookAhead):new Lr(n,Er(n.mode,i),a)},Lr.prototype.save=function(n){var i=n!==!1?Er(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ka(i,this.maxLookAhead):i};function dp(n,i,a,l){var u=[n.state.modeGen],g={};yp(n,i.text,n.doc.mode,a,function(S,$){return u.push(S,$)},g,l);for(var y=a.state,w=function(S){a.baseTokens=u;var $=n.state.overlays[S],D=1,G=0;a.state=!0,yp(n,i.text,$.mode,a,function(U,ee){for(var ce=D;G<U;){var ve=u[D];ve>U&&u.splice(D,1,U,u[D+1],ve),D+=2,G=Math.min(U,ve)}if(ee)if($.opaque)u.splice(ce,D-ce,U,"overlay "+ee),D=ce+2;else for(;ce<D;ce+=2){var be=u[ce+1];u[ce+1]=(be?be+" ":"")+"overlay "+ee}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function hp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=js(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Er(n.doc.mode,l.state),g=dp(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 js(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Lr(l,!0,i);var g=H1(n,i,a),y=g>l.first&&Oe(l,g-1).stateAfter,w=y?Lr.fromSaved(l,y,g):new Lr(l,Uo(l.mode),g);return l.iter(g,i,function(_){Gu(n,_.text,w);var S=w.line;_.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Gu(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==""&&pp(u,a.state);!g.eol();)Ku(u,g,a.state),g.start=g.pos}function pp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Ku(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(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 gp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function vp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ke(u,i);var w=Oe(u,i.line),_=js(n,i.line,a),S=new At(w.text,n.options.tabSize,_),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,y=Ku(g,S,_.state),l&&$.push(new gp(S,y,Er(u.mode,_.state)));return l?$:new gp(S,y,_.state)}function mp(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 yp(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,S=null,$=new At(i,n.options.tabSize,l),D,G=n.options.addModeClass&&[null];for(i==""&&mp(pp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,y&&Gu(n,i,l,$.pos),$.pos=i.length,D=null):D=mp(Ku(a,$,l.state,G),g),G){var U=G[0].name;U&&(D="m-"+(D?U+" "+D:U))}if(!w||S!=D){for(;_<$.start;)_=Math.min($.start,_+5e3),u(_,S);S=D}$.start=$.pos}for(;_<$.pos;){var ee=Math.min($.pos,_+5e3);u(ee,S),_=ee}}function H1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var _=Oe(g,w-1),S=_.stateAfter;if(S&&(!a||w+(S instanceof ka?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(_.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function q1(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 ka)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var bp=!1,Kr=!1;function B1(){bp=!0}function W1(){Kr=!0}function Ca(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function U1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function V1(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 j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ca(y,g.from,_?null:g.to))}}return l}function G1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ca(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Xu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=_e(i.from,i.to)==0,w=j1(a,u,y),_=G1(l,g,y),S=i.text.length==1,$=fe(i.text).length+(S?u:0);if(w)for(var D=0;D<w.length;++D){var G=w[D];if(G.to==null){var U=Gs(_,G.marker);U?S&&(G.to=U.to==null?null:U.to+$):G.to=u}}if(_)for(var ee=0;ee<_.length;++ee){var ce=_[ee];if(ce.to!=null&&(ce.to+=$),ce.from==null){var ve=Gs(w,ce.marker);ve||(ce.from=$,S&&(w||(w=[])).push(ce))}else ce.from+=$,S&&(w||(w=[])).push(ce)}w&&(w=wp(w)),_&&_!=w&&(_=wp(_));var be=[w];if(!S){var ke=i.text.length-2,we;if(ke>0&&w)for(var Ae=0;Ae<w.length;++Ae)w[Ae].to==null&&(we||(we=[])).push(new Ca(w[Ae].marker,null,null));for(var He=0;He<ke;++He)be.push(we);be.push(_)}return be}function wp(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 K1(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 ce=U.markedSpans[ee].marker;ce.readOnly&&(!l||Te(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),_=0;_<u.length;++_){var S=u[_];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[_,1],D=_e(S.from,w.from),G=_e(S.to,w.to);(D<0||!y.inclusiveLeft&&!D)&&$.push({from:S.from,to:w.from}),(G>0||!y.inclusiveRight&&!G)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),_+=$.length-3}}return u}function xp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function _p(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ta(n){return n.inclusiveLeft?-1:0}function Ea(n){return n.inclusiveRight?1:0}function Yu(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)||Ta(n)-Ta(i);if(g)return-g;var y=_e(l.to,u.to)||Ea(n)-Ea(i);return y||i.id-n.id}function Sp(n,i){var a=Kr&&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||Yu(l,u.marker)<0)&&(l=u.marker);return l}function kp(n){return Sp(n,!0)}function La(n){return Sp(n,!1)}function X1(n,i){var a=Kr&&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||Yu(l,g.marker)<0)&&(l=g.marker)}return l}function Cp(n,i,a,l,u){var g=Oe(n,i),y=Kr&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var _=y[w];if(_.marker.collapsed){var S=_.marker.find(0),$=_e(S.from,a)||Ta(_.marker)-Ta(u),D=_e(S.to,l)||Ea(_.marker)-Ea(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function pr(n){for(var i;i=kp(n);)n=i.find(-1,!0).line;return n}function Y1(n){for(var i;i=La(n);)n=i.find(1,!0).line;return n}function Z1(n){for(var i,a;i=La(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Zu(n,i){var a=Oe(n,i),l=pr(a);return a==l?i:C(l)}function Tp(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!wi(n,a))return i;for(;l=La(a);)a=l.find(1,!0).line;return C(a)+1}function wi(n,i){var a=Kr&&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&&Ju(n,i,l))return!0}}}function Ju(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Ju(n,l.line,Gs(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)&&Ju(n,i,u))return!0}function Xr(n){n=pr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var w=g.children[y];if(w==a)break;i+=w.height}return i}function Aa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=kp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=La(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 Qu(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Aa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Aa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,_p(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return C(this)},cr(jo);function J1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),xp(n),_p(n,a);var u=l?l(n):1;u!=n.height&&Bn(n,u)}function Q1(n){n.parent=null,xp(n)}var ex={},tx={};function Ep(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?tx:ex;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Lp(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=rx,mi(n.display.measure)&&(y=Ve(g,n.doc.direction))&&(l.addToken=ox(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&C(g);sx(g,l,hp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(_a(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function nx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function rx(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?ix(i,n.trailingSpace):i,_=n.cm.state.specialChars,S=!1,$;if(!_.test(i))n.col+=i.length,$=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(S=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){_.lastIndex=D;var G=_.exec(i),U=G?G.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(!G)break;D+=U+1;var ce=void 0;if(G[0]==" "){var ve=n.cm.options.tabSize,be=ve-n.col%ve;ce=$.appendChild(k("span",Se(be),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),n.col+=be}else G[0]=="\r"||G[0]==`
|
|
29
|
-
`?(ce=$.appendChild(k("span",G[0]=="\r"?"␍":"","cm-invalidchar")),ce.setAttribute("cm-text",G[0]),n.col+=1):(ce=n.cm.options.specialCharPlaceholder(G[0]),ce.setAttribute("cm-text",G[0]),h&&p<9?$.appendChild(k("span",[ce])):$.appendChild(ce),n.col+=1);n.map.push(n.pos,n.pos+1,ce),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||S||g||y){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var we=k("span",[$],ke,g);if(y)for(var Ae in y)y.hasOwnProperty(Ae)&&Ae!="style"&&Ae!="class"&&we.setAttribute(Ae,y[Ae]);return n.content.appendChild(we)}n.content.appendChild($)}}function ix(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 ox(n,i){return function(a,l,u,g,y,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,$=S+l.length;;){for(var D=void 0,G=0;G<i.length&&(D=i[G],!(D.to>S&&D.from<=S));G++);if(D.to>=$)return n(a,l,u,g,y,w,_);n(a,l.slice(0,D.to-S),u,g,null,w,_),g=null,l=l.slice(D.to-S),S=D.to}}}function Ap(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 sx(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Ep(a[y+1],i.cm.options));return}for(var w=u.length,_=0,S=1,$="",D,G,U=0,ee,ce,ve,be,ke;;){if(U==_){ee=ce=ve=G="",ke=null,be=null,U=1/0;for(var we=[],Ae=void 0,He=0;He<l.length;++He){var De=l[He],Qe=De.marker;if(Qe.type=="bookmark"&&De.from==_&&Qe.widgetNode)we.push(Qe);else if(De.from<=_&&(De.to==null||De.to>_||Qe.collapsed&&De.to==_&&De.from==_)){if(De.to!=null&&De.to!=_&&U>De.to&&(U=De.to,ce=""),Qe.className&&(ee+=" "+Qe.className),Qe.css&&(G=(G?G+";":"")+Qe.css),Qe.startStyle&&De.from==_&&(ve+=" "+Qe.startStyle),Qe.endStyle&&De.to==U&&(Ae||(Ae=[])).push(Qe.endStyle,De.to),Qe.title&&((ke||(ke={})).title=Qe.title),Qe.attributes)for(var xt in Qe.attributes)(ke||(ke={}))[xt]=Qe.attributes[xt];Qe.collapsed&&(!be||Yu(be.marker,Qe)<0)&&(be=De)}else De.from>_&&U>De.from&&(U=De.from)}if(Ae)for(var Vt=0;Vt<Ae.length;Vt+=2)Ae[Vt+1]==U&&(ce+=" "+Ae[Vt]);if(!be||be.from==_)for(var Tt=0;Tt<we.length;++Tt)Ap(i,0,we[Tt]);if(be&&(be.from||0)==_){if(Ap(i,(be.to==null?w+1:be.to)-_,be.marker,be.from==null),be.to==null)return;be.to==_&&(be=!1)}}if(_>=w)break;for(var Nn=Math.min(w,U);;){if($){var mn=_+$.length;if(!be){var Ot=mn>Nn?$.slice(0,Nn-_):$;i.addToken(i,Ot,D?D+ee:ee,ve,_+Ot.length==U?ce:"",G,ke)}if(mn>=Nn){$=$.slice(Nn-_),_=Nn;break}_=mn,ve=""}$=u.slice(g,g=a[S++]),D=Ep(a[S++],i.cm.options)}}}function Mp(n,i,a){this.line=i,this.rest=Z1(i),this.size=this.rest?C(fe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=wi(n,i)}function Ma(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Mp(n.doc,Oe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Go=null;function lx(n){Go?Go.ops.push(n):n.ownsGroup=Go={ops:[n],delayedCallbacks:[]}}function ax(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 cx(n,i){var a=n.ownsGroup;if(a)try{ax(a)}finally{Go=null,i(a)}}var Ks=null;function Bt(n,i){var a=jr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Go?u=Go.delayedCallbacks:Ks?u=Ks:(u=Ks=[],setTimeout(ux,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function ux(){var n=Ks;Ks=null;for(var i=0;i<n.length;++i)n[i]()}function Np(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?dx(n,i):g=="gutter"?Pp(n,i,a,l):g=="class"?ef(n,i):g=="widget"&&hx(n,i,l)}i.changes=null}function Xs(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 fx(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=Xs(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function $p(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Lp(n,i)}function dx(n,i){var a=i.text.className,l=$p(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,ef(n,i)):a&&(i.text.className=a)}function ef(n,i){fx(n,i),i.line.wrapClass?Xs(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Pp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Xs(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 y=Xs(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),y.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",ge(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var S=n.display.gutterSpecs[_].className,$=g.hasOwnProperty(S)&&g[S];$&&w.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function hx(n,i,a){i.alignable&&(i.alignable=null);for(var l=ne("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Op(n,i,a)}function px(n,i,a,l){var u=$p(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),ef(n,i),Pp(n,i,a,l),Op(n,i,l),i.node}function Op(n,i,a){if(Rp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Rp(n,i.rest[l],i,a,!1)}function Rp(n,i,a,l,u){if(i.widgets)for(var g=Xs(a),y=0,w=i.widgets;y<w.length;++y){var _=w[y],S=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),gx(_,S,a,l),n.display.input.setUneditable(S),u&&_.above?g.insertBefore(S,a.gutter||a.text):g.appendChild(S),Bt(_,"redraw")}}function gx(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 Ys(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(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;"),F(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Yr(n,i){for(var a=Bs(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 Na(n){return n.lineSpace.offsetTop}function tf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Dp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=F(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 Ar(n){return Ye-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Ar(n)-n.display.barWidth}function nf(n){return n.display.scroller.clientHeight-Ar(n)-n.display.barHeight}function vx(n,i,a){var l=n.options.lineWrapping,u=l&&lo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var _=y[w],S=y[w+1];Math.abs(_.bottom-S.bottom)>2&&g.push((_.bottom+S.top)/2-a.top)}}g.push(a.bottom-a.top)}}function zp(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function mx(n,i){i=pr(i);var a=C(i),l=n.display.externalMeasured=new Mp(n.doc,i,a);l.lineN=a;var u=l.built=Lp(n,l);return l.text=u.pre,F(n.display.lineMeasure,u.pre),l}function Ip(n,i,a,l){return Mr(n,Ko(n,i),a,l)}function rf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Ko(n,i){var a=C(i),l=rf(n,a);l&&!l.text?l=null:l&&l.changes&&(Np(n,l,a,cf(n)),n.curOp.forceUpdate=!0),l||(l=mx(n,i));var u=zp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Mr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(vx(n,i.view,i.rect),i.hasHeights=!0),y=bx(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Fp={left:0,right:0,top:0,bottom:0};function Hp(n,i,a){for(var l,u,g,y,w,_,S=0;S<n.length;S+=3)if(w=n[S],_=n[S+1],i<w?(u=0,g=1,y="left"):i<_?(u=i-w,g=u+1):(S==n.length-3||i==_&&n[S+3]>i)&&(g=_-w,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[S+2],w==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],y="left";if(a=="right"&&u==_-w)for(;S<n.length-3&&n[S+3]==n[S+4]&&!n[S+5].insertLeft;)l=n[(S+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:w,coverEnd:_}}function yx(n,i){var a=Fp;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 bx(n,i,a,l){var u=Hp(i.map,a,l),g=u.node,y=u.start,w=u.end,_=u.collapse,S;if(g.nodeType==3){for(var $=0;$<4;$++){for(;y&&nt(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&nt(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?S=g.parentNode.getBoundingClientRect():S=yx(W(g,y,w).getClientRects(),l),S.left||S.right||y==0)break;w=y,y=y-1,_="right"}h&&p<11&&(S=wx(n.display.measure,S))}else{y>0&&(_=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&&!y&&(!S||!S.left&&!S.right)){var G=g.parentNode.getClientRects()[0];G?S={left:G.left,right:G.left+Yo(n.display),top:G.top,bottom:G.bottom}:S=Fp}for(var U=S.top-i.rect.top,ee=S.bottom-i.rect.top,ce=(U+ee)/2,ve=i.view.measure.heights,be=0;be<ve.length-1&&!(ce<ve[be]);be++);var ke=be?ve[be-1]:0,we=ve[be],Ae={left:(_=="right"?S.right:S.left)-i.rect.left,right:(_=="left"?S.left:S.right)-i.rect.left,top:ke,bottom:we};return!S.left&&!S.right&&(Ae.bogus=!0),n.options.singleCursorHeightPerLine||(Ae.rtop=U,Ae.rbottom=ee),Ae}function wx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ju(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function qp(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 Bp(n){n.display.externalMeasure=null,V(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)qp(n.display.view[i])}function Zs(n){Bp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Wp(n){return b&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Up(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function of(n){var i=pr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Ys(a[u]));return l}function $a(n,i,a,l,u){if(!u){var g=of(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=Xr(i);if(l=="local"?y+=Na(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:Up(it(n)));var _=w.left+(l=="window"?0:Wp(it(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function Vp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Wp(it(n)),u-=Up(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Pa(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),$a(n,l,Ip(n,l,i.ch,u),a)}function gr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Ko(n,l));function y(ee,ce){var ve=Mr(n,u,ee,ce?"right":"left",g);return ce?ve.left=ve.right:ve.right=ve.left,$a(n,l,ve,a)}var w=Ve(l,n.doc.direction),_=i.ch,S=i.sticky;if(_>=l.text.length?(_=l.text.length,S="before"):_<=0&&(_=0,S="after"),!w)return y(S=="before"?_-1:_,S=="before");function $(ee,ce,ve){var be=w[ce],ke=be.level==1;return y(ve?ee-1:ee,ke!=ve)}var D=ar(w,_,S),G=qn,U=$(_,D,S=="before");return G!=null&&(U.other=$(_,G,S!="before")),U}function jp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Yo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=Xr(l)+Na(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function sf(n,i,a,l,u){var g=Q(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function lf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return sf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return sf(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Oe(l,u);;){var w=xx(n,y,u,i,a),_=X1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var S=_.find(1);if(S.line==u)return S;y=Oe(l,u=S.line)}}function Gp(n,i,a,l){l-=of(i);var u=i.text.length,g=Jt(function(y){return Mr(n,a,y-1).bottom<=l},u,0);return u=Jt(function(y){return Mr(n,a,y).top>l},g,u),{begin:g,end:u}}function Kp(n,i,a,l){a||(a=Ko(n,i));var u=$a(n,i,Mr(n,a,l),"line").top;return Gp(n,i,a,u)}function af(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function xx(n,i,a,l,u){u-=Xr(i);var g=Ko(n,i),y=of(i),w=0,_=i.text.length,S=!0,$=Ve(i,n.doc.direction);if($){var D=(n.options.lineWrapping?Sx:_x)(n,i,a,g,$,l,u);S=D.level!=1,w=S?D.from:D.to-1,_=S?D.to:D.from-1}var G=null,U=null,ee=Jt(function(He){var De=Mr(n,g,He);return De.top+=y,De.bottom+=y,af(De,l,u,!1)?(De.top<=u&&De.left<=l&&(G=He,U=De),!0):!1},w,_),ce,ve,be=!1;if(U){var ke=l-U.left<U.right-l,we=ke==S;ee=G+(we?0:1),ve=we?"after":"before",ce=ke?U.left:U.right}else{!S&&(ee==_||ee==w)&&ee++,ve=ee==0?"after":ee==i.text.length?"before":Mr(n,g,ee-(S?1:0)).bottom+y<=u==S?"after":"before";var Ae=gr(n,Q(a,ee,ve),"line",i,g);ce=Ae.left,be=u<Ae.top?-1:u>=Ae.bottom?1:0}return ee=It(i.text,ee,1),sf(a,ee,ve,be,l-ce)}function _x(n,i,a,l,u,g,y){var w=Jt(function(D){var G=u[D],U=G.level!=1;return af(gr(n,Q(a,U?G.to:G.from,U?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[w];if(w>0){var S=_.level!=1,$=gr(n,Q(a,S?_.from:_.to,S?"after":"before"),"line",i,l);af($,g,y,!0)&&$.top>y&&(_=u[w-1])}return _}function Sx(n,i,a,l,u,g,y){var w=Gp(n,i,l,y),_=w.begin,S=w.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var $=null,D=null,G=0;G<u.length;G++){var U=u[G];if(!(U.from>=S||U.to<=_)){var ee=U.level!=1,ce=Mr(n,l,ee?Math.min(S,U.to)-1:Math.max(_,U.from)).right,ve=ce<g?g-ce+1e9:ce-g;(!$||D>ve)&&($=U,D=ve)}}return $||($=u[u.length-1]),$.from<_&&($={from:_,to:$.to,level:$.level}),$.to>S&&($={from:$.from,to:S,level:$.level}),$}var ao;function Xo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(k("br"));ao.appendChild(document.createTextNode("x"))}F(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),V(n.measure),a||1}function Yo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");F(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function cf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:uf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function uf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Xp(n){var i=Xo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Yo(n.display)-3);return function(u){if(wi(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function ff(n){var i=n.doc,a=Xp(n);i.iter(function(l){var u=a(l);u!=l.height&&Bn(l,u)})}function co(n,i,a,l){var u=n.display;if(!a&&Bs(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var _=lf(n,g,y),S;if(l&&_.xRel>0&&(S=Oe(n.doc,_.line).text).length==_.ch){var $=de(S,S.length,n.options.tabSize)-S.length;_=Q(_.line,Math.max(0,Math.round((g-Dp(n.display).left)/Yo(n.display))-$))}return _}function uo(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)Kr&&Zu(n.doc,i)<u.viewTo&&_i(n);else if(a<=u.viewFrom)Kr&&Tp(n.doc,a+l)>u.viewFrom?_i(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)_i(n);else if(i<=u.viewFrom){var g=Oa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):_i(n)}else if(a>=u.viewTo){var y=Oa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):_i(n)}else{var w=Oa(n,i,i,-1),_=Oa(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(Ma(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):_i(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function xi(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[uo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Te(y,a)==-1&&y.push(a)}}}function _i(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Oa(n,i,a,l){var u=uo(n,i),g,y=n.display.view;if(!Kr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=y[_].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;Zu(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function kx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ma(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ma(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(uo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ma(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,uo(n,a)))),l.viewTo=a}function Yp(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 Js(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Zp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var S=_.empty();if(y){var $=y(n,_);$&&df(n,$,u)}else(S||n.options.showCursorWhenSelecting)&&df(n,_.head,u);S||Cx(n,_,g)}}return l}function df(n,i,a){var l=gr(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=Pa(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y: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 Ra(n,i){return n.top-i.top||n.left-i.left}function Cx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Dp(n.display),w=y.left,_=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-y.right,S=u.direction=="ltr";function $(we,Ae,He,De){Ae<0&&(Ae=0),Ae=Math.round(Ae),De=Math.round(De),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+we+`px;
|
|
30
|
-
top: `+Ae+"px; width: "+(He??_-we)+`px;
|
|
31
|
-
height: `+(De-Ae)+"px"))}function D(we,Ae,He){var De=Oe(u,we),Qe=De.text.length,xt,Vt;function Tt(Ot,yn){return Pa(n,Q(we,Ot),"div",De,yn)}function Nn(Ot,yn,Xt){var Ft=Kp(n,De,null,Ot),Rt=yn=="ltr"==(Xt=="after")?"left":"right",Mt=Xt=="after"?Ft.begin:Ft.end-(/\s/.test(De.text.charAt(Ft.end-1))?2:1);return Tt(Mt,Rt)[Rt]}var mn=Ve(De,u.direction);return lr(mn,Ae||0,He??Qe,function(Ot,yn,Xt,Ft){var Rt=Xt=="ltr",Mt=Tt(Ot,Rt?"left":"right"),bn=Tt(yn-1,Rt?"right":"left"),cs=Ae==null&&Ot==0,Li=He==null&&yn==Qe,rn=Ft==0,Nr=!mn||Ft==mn.length-1;if(bn.top-Mt.top<=3){var jt=(S?cs:Li)&&rn,Ff=(S?Li:cs)&&Nr,Qr=jt?w:(Rt?Mt:bn).left,vo=Ff?_:(Rt?bn:Mt).right;$(Qr,Mt.top,vo-Qr,Mt.bottom)}else{var mo,cn,us,Hf;Rt?(mo=S&&cs&&rn?w:Mt.left,cn=S?_:Nn(Ot,Xt,"before"),us=S?w:Nn(yn,Xt,"after"),Hf=S&&Li&&Nr?_:bn.right):(mo=S?Nn(Ot,Xt,"before"):w,cn=!S&&cs&&rn?_:Mt.right,us=!S&&Li&&Nr?w:bn.left,Hf=S?Nn(yn,Xt,"after"):_),$(mo,Mt.top,cn-mo,Mt.bottom),Mt.bottom<bn.top&&$(w,Mt.bottom,null,bn.top),$(us,bn.top,Hf-us,bn.bottom)}(!xt||Ra(Mt,xt)<0)&&(xt=Mt),Ra(bn,xt)<0&&(xt=bn),(!Vt||Ra(Mt,Vt)<0)&&(Vt=Mt),Ra(bn,Vt)<0&&(Vt=bn)}),{start:xt,end:Vt}}var G=i.from(),U=i.to();if(G.line==U.line)D(G.line,G.ch,U.ch);else{var ee=Oe(u,G.line),ce=Oe(u,U.line),ve=pr(ee)==pr(ce),be=D(G.line,G.ch,ve?ee.text.length+1:null).end,ke=D(U.line,ve?0:null,U.ch).start;ve&&(be.top<ke.top-2?($(be.right,be.top,null,be.bottom),$(w,ke.top,ke.left,ke.bottom)):$(be.right,be.top,ke.left-be.right,be.bottom)),be.bottom<ke.top&&$(w,be.bottom,null,ke.top)}a.appendChild(g)}function hf(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()||Zo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Jp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||gf(n))}function pf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Zo(n))},100)}function gf(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,Ne(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()),hf(n))}function Zo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Et(n,"blur",n,i),n.state.focused=!1,K(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Da(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var w=i.view[y],_=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 G=w.node.getBoundingClientRect();S=G.bottom-G.top,!_&&w.text.firstChild&&($=w.text.firstChild.getBoundingClientRect().right-G.left-1)}var U=w.line.height-S;if((U>.005||U<-.005)&&(u<l&&(g-=U),Bn(w.line,S),Qp(w.line),w.rest))for(var ee=0;ee<w.rest.length;ee++)Qp(w.rest[ee]);if($>n.display.sizerWidth){var ce=Math.ceil($/Yo(n.display));ce>n.display.maxLineLength&&(n.display.maxLineLength=ce,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function Qp(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function za(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Na(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=R(i,l),y=R(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,y=R(i,Xr(Oe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=R(i,Xr(Oe(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function Tx(n,i){if(!Lt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!N){var y=k("div","",null,`position: absolute;
|
|
32
|
-
top: `+(i.top-a.viewOffset-Na(n.display))+`px;
|
|
33
|
-
height: `+(i.bottom-i.top+Ar(n)+a.barHeight)+`px;
|
|
34
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Ex(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?Q(i.line,i.ch+1,"before"):i,i=i.ch?Q(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=gr(n,i),_=!a||a==i?w:gr(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var S=vf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(el(n,S.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(y=!0)),S.scrollLeft!=null&&(fo(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(y=!0)),!y)break}return u}function Lx(n,i){var a=vf(n,i);a.scrollTop!=null&&el(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function vf(n,i){var a=n.display,l=Xo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=nf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+tf(a),_=i.top<l,S=i.bottom>w-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(S?w:i.bottom)-g);$!=u&&(y.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,G=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,U=lo(n)-a.gutters.offsetWidth,ee=i.right-i.left>U;return ee&&(i.right=i.left+U),i.left<10?y.scrollLeft=0:i.left<G?y.scrollLeft=Math.max(0,i.left+D-(ee?0:10)):i.right>U+G-3&&(y.scrollLeft=i.right+(ee?0:10)-U),y}function mf(n,i){i!=null&&(Ia(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Jo(n){Ia(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Qs(n,i,a){(i!=null||a!=null)&&Ia(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ax(n,i){Ia(n),n.curOp.scrollToPos=i}function Ia(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=jp(n,i.from),l=jp(n,i.to);eg(n,a,l,i.margin)}}function eg(n,i,a,l){var u=vf(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});Qs(n,u.scrollLeft,u.scrollTop)}function el(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||bf(n,{top:i}),tg(n,i,!0),s&&bf(n),rl(n,100))}function tg(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 fo(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,sg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function tl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+tf(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+Ar(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ho.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}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=q&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},ho.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)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function Qo(n,i){i||(i=tl(n));var a=n.display.barWidth,l=n.display.barHeight;ng(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Da(n),ng(n,tl(n)),a=n.display.barWidth,l=n.display.barHeight}function ng(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 rg={native:ho,null:nl};function ig(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&K(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new rg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?fo(n,i):el(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var Mx=0;function po(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:++Mx,markArrays:null},lx(n.curOp)}function go(n){var i=n.curOp;i&&cx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Nx(a)})}function Nx(n){for(var i=n.ops,a=0;a<i.length;a++)$x(i[a]);for(var l=0;l<i.length;l++)Px(i[l]);for(var u=0;u<i.length;u++)Ox(i[u]);for(var g=0;g<i.length;g++)Rx(i[g]);for(var y=0;y<i.length;y++)Dx(i[y])}function $x(n){var i=n.cm,a=i.display;Ix(i),n.updateMaxLine&&Qu(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 Fa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Px(n){n.updatedDisplay=n.mustUpdate&&yf(n.cm,n.update)}function Ox(n){var i=n.cm,a=i.display;n.updatedDisplay&&Da(i),n.barMeasure=tl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Ip(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+Ar(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Rx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(rt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Qo(i,n.barMeasure),n.updatedDisplay&&xf(i,n.barMeasure),n.selectionChanged&&hf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Jp(n.cm)}function Dx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&og(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&tg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Ex(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);Tx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Et(g[w],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Et(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Et(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Mn(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function Wt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function an(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Ut(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function rl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,X(zx,n))}function zx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=js(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,w=g.text.length>n.options.maxHighlightLength?Er(i.mode,l.state):null,_=dp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var S=g.styleClasses,$=_.classes;$?g.styleClasses=$:S&&(g.styleClasses=null);for(var D=!y||y.length!=g.styles.length||S!=$&&(!S||!$||S.bgClass!=$.bgClass||S.textClass!=$.textClass),G=0;!D&&G<y.length;++G)D=y[G]!=g.styles[G];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Gu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return rl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Mn(n,function(){for(var g=0;g<u.length;g++)xi(n,u[g],"text")})}}var Fa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=za(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=cf(n),this.events=[]};Fa.prototype.signal=function(n,i){An(n,i)&&this.events.push(arguments)},Fa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Et.apply(null,this.events[n])};function Ix(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Ar(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Ar(n)+"px",i.scrollbarsClipped=!0)}function Fx(n){if(n.hasFocus())return null;var i=ye(rt(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Le(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Hx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Je(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(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 yf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return _i(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&&Yp(n)==0)return!1;lg(n)&&(_i(n),i.dims=cf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Kr&&(g=Zu(n.doc,g),y=Tp(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;kx(n,g,y),a.viewOffset=Xr(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Yp(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=Fx(n);return _>4&&(a.lineDiv.style.display="none"),qx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Hx(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,rl(n,400)),a.updateLineNumbers=null,!0}function og(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+tf(n.display)-nf(n),a.top)}),i.visible=za(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=za(n.display,n.doc,a));if(!yf(n,i))break;Da(n);var u=tl(n);Js(n),Qo(n,u),xf(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 bf(n,i){var a=new Fa(n,i);if(yf(n,a)){Da(n),og(n,a);var l=tl(n);Js(n),Qo(n,l),xf(n,l),a.finish()}}function qx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ee){var ce=ee.nextSibling;return v&&q&&n.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),ce}for(var _=l.view,S=l.viewFrom,$=0;$<_.length;$++){var D=_[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var G=px(n,D,S,a);g.insertBefore(G,y)}else{for(;y!=D.node;)y=w(y);var U=u&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Te(D.changes,"gutter")>-1&&(U=!1),Np(n,D,S,a)),U&&(V(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(ge(n.options,S)))),y=D.node.nextSibling}S+=D.size}for(;y;)y=w(y)}function wf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Bt(n,"gutterChanged",n)}function xf(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+Ar(n)+"px"}function sg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=uf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var w=a[y].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function lg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=ge(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,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",wf(n.display),!0}return!1}function _f(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function ag(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,y=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",wf(n)}function il(n){ag(n.display),gn(n),sg(n)}function Bx(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=B("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=B("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=B("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ye+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&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=_f(l.gutters,l.lineNumbers),ag(u),a.init(u)}var Ha=0,Zr=null;h?Zr=-.53:s?Zr=15:b?Zr=-.7:T&&(Zr=-1/3);function cg(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 Wx(n){var i=cg(n);return i.x*=Zr,i.y*=Zr,i}function ug(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=cg(i),l=a.x,u=a.y,g=Zr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,_=w.scrollWidth>w.clientWidth,S=w.scrollHeight>w.clientHeight;if(l&&_||u&&S){if(u&&q&&v){e:for(var $=i.target,D=y.view;$!=w;$=$.parentNode)for(var G=0;G<D.length;G++)if(D[G].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!E&&g!=null){u&&S&&el(n,Math.max(0,w.scrollTop+u*g)),fo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&S)&&tn(i),y.wheelStartX=null;return}if(u&&g!=null){var U=u*g,ee=n.doc.scrollTop,ce=ee+y.wrapper.clientHeight;U<0?ee=Math.max(0,ee+U-50):ce=Math.min(n.doc.height,ce+U+50),bf(n,{top:ee,bottom:ce})}Ha<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var ve=w.scrollLeft-y.wheelStartX,be=w.scrollTop-y.wheelStartY,ke=be&&y.wheelDY&&be/y.wheelDY||ve&&y.wheelDX&&ve/y.wheelDX;y.wheelStartX=y.wheelStartY=null,ke&&(Zr=(Zr*Ha+ke)/(Ha+1),++Ha)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Wn=function(n,i){this.ranges=n,this.primIndex=i};Wn.prototype.primary=function(){return this.ranges[this.primIndex]},Wn.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(!dt(a.anchor,l.anchor)||!dt(a.head,l.head))return!1}return!0},Wn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ht(qt(this.ranges[i].anchor),qt(this.ranges[i].head));return new Wn(n,this.primIndex)},Wn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Wn.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 ht=function(n,i){this.anchor=n,this.head=i};ht.prototype.from=function(){return Vo(this.anchor,this.head)},ht.prototype.to=function(){return pn(this.anchor,this.head)},ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(G,U){return _e(G.from(),U.from())}),a=Te(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],_=_e(w.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var S=Vo(w.from(),y.from()),$=pn(w.to(),y.to()),D=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new ht(D?$:S,D?S:$))}}return new Wn(i,a)}function Si(n,i){return new Wn([new ht(n,i||n)],0)}function ki(n){return n.text?Q(n.from.line+n.text.length-1,fe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function fg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return ki(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+=ki(i).ch-i.to.ch),Q(a,l)}function Sf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ht(fg(u.anchor,i),fg(u.head,i)))}return vr(n.cm,a,n.sel.primIndex)}function dg(n,i,a){return n.line==i.line?Q(a.line,n.ch-i.ch+a.ch):Q(a.line+(n.line-i.line),n.ch)}function Ux(n,i,a){for(var l=[],u=Q(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],_=dg(w.from,u,g),S=dg(ki(w),u,g);if(u=w.to,g=S,a=="around"){var $=n.sel.ranges[y],D=_e($.head,$.anchor)<0;l[y]=new ht(D?S:_,D?_:S)}else l[y]=new ht(_,_)}return new Wn(l,n.sel.primIndex)}function kf(n){n.doc.mode=Bo(n.options,n.doc.modeOption),ol(n)}function ol(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,rl(n,100),n.state.modeGen++,n.curOp&&gn(n)}function hg(n,i){return i.from.ch==0&&i.to.ch==0&&fe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Cf(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,we,Ae){J1(ke,we,Ae,l),Bt(ke,"change",ke,i)}function y(ke,we){for(var Ae=[],He=ke;He<we;++He)Ae.push(new jo(S[He],u(He),l));return Ae}var w=i.from,_=i.to,S=i.text,$=Oe(n,w.line),D=Oe(n,_.line),G=fe(S),U=u(S.length-1),ee=_.line-w.line;if(i.full)n.insert(0,y(0,S.length)),n.remove(S.length,n.size-S.length);else if(hg(n,i)){var ce=y(0,S.length-1);g(D,D.text,U),ee&&n.remove(w.line,ee),ce.length&&n.insert(w.line,ce)}else if($==D)if(S.length==1)g($,$.text.slice(0,w.ch)+G+$.text.slice(_.ch),U);else{var ve=y(1,S.length-1);ve.push(new jo(G+$.text.slice(_.ch),U,l)),g($,$.text.slice(0,w.ch)+S[0],u(0)),n.insert(w.line+1,ve)}else if(S.length==1)g($,$.text.slice(0,w.ch)+S[0]+D.text.slice(_.ch),u(0)),n.remove(w.line+1,ee);else{g($,$.text.slice(0,w.ch)+S[0],u(0)),g(D,G+D.text.slice(_.ch),U);var be=y(1,S.length-1);ee>1&&n.remove(w.line+1,ee-1),n.insert(w.line+1,be)}Bt(n,"change",n,i)}function Ci(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var S=y&&_.sharedHist;a&&!S||(i(_.doc,S),l(_.doc,u,S))}}}l(n,null,!0)}function pg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,ff(n),kf(n),gg(n),n.options.direction=i.direction,n.options.lineWrapping||Qu(n),n.options.mode=i.modeOption,gn(n)}function gg(n){(n.doc.direction=="rtl"?Ne:K)(n.display.lineDiv,"CodeMirror-rtl")}function Vx(n){Mn(n,function(){gg(n),gn(n)})}function qa(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 Tf(n,i){var a={from:qt(i.from),to:ki(i),text:Gr(n,i.from,i.to)};return yg(n,a,i.from.line,i.to.line+1),Ci(n,function(l){return yg(l,a,i.from.line,i.to.line+1)},!0),a}function vg(n){for(;n.length;){var i=fe(n);if(i.ranges)n.pop();else break}}function jx(n,i){if(i)return vg(n.done),fe(n.done);if(n.done.length&&!fe(n.done).ranges)return fe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),fe(n.done)}function mg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,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)=="*"))&&(y=jx(u,u.lastOp==l)))w=fe(y.changes),_e(i.from,i.to)==0&&_e(i.from,w.to)==0?w.to=ki(i):y.changes.push(Tf(n,i));else{var _=fe(u.done);for((!_||!_.ranges)&&Ba(n.sel,u.done),y={changes:[Tf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Et(n,"historyAdded")}function Gx(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 Kx(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||Gx(n,g,fe(u.done),i))?u.done[u.done.length-1]=i:Ba(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&vg(u.undone)}function Ba(n,i){var a=fe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function yg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function Xx(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 Yx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Xx(a[u]));return l}function bg(n,i){var a=Yx(n,i),l=Xu(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var w=0;w<y.length;++w){for(var _=y[w],S=0;S<g.length;++S)if(g[S].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function es(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Wn.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var _=0;_<y.length;++_){var S=y[_],$=void 0;if(w.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)($=D.match(/^spans_(\d+)$/))&&Te(i,Number($[1]))>-1&&(fe(w)[D]=S[D],delete S[D])}}return l}function Ef(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 ht(u,i)}else return new ht(a||i,i)}function Wa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),nn(n,new Wn([Ef(n.sel.primary(),i,a,u)],0),l)}function wg(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]=Ef(n.sel.ranges[g],i[g],null,u);var y=vr(n.cm,l,n.sel.primIndex);nn(n,y,a)}function Lf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,nn(n,vr(n.cm,u,n.sel.primIndex),l)}function xg(n,i,a,l){nn(n,Si(i,a),l)}function Zx(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 ht(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Et(n,"beforeSelectionChange",n,l),n.cm&&Et(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?vr(n.cm,l.ranges,l.ranges.length-1):i}function _g(n,i,a){var l=n.history.done,u=fe(l);u&&u.ranges?(l[l.length-1]=i,Ua(n,i,a)):nn(n,i,a)}function nn(n,i,a){Ua(n,i,a),Kx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ua(n,i,a){(An(n,"beforeSelectionChange")||n.cm&&An(n.cm,"beforeSelectionChange"))&&(i=Zx(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);Sg(n,Cg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Jo(n.cm)}function Sg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Zn(n.cm)),Bt(n,"cursorActivity",n))}function kg(n){Sg(n,Cg(n,n.sel,null,!1))}function Cg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Va(n,y.anchor,w&&w.anchor,a,l),S=y.head==y.anchor?_:Va(n,y.head,w&&w.head,a,l);(u||_!=y.anchor||S!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new ht(_,S))}return u?vr(n.cm,u,i.primIndex):i}function ts(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],_=w.marker,S="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,$="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(S?w.from<=i.ch:w.from<i.ch))&&(w.to==null||($?w.to>=i.ch:w.to>i.ch))){if(u&&(Et(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var D=_.find(l<0?1:-1),G=void 0;if((l<0?$:S)&&(D=Tg(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(G=_e(D,a))&&(l<0?G<0:G>0))return ts(n,D,i,l,u)}var U=_.find(l<0?-1:1);return(l<0?S:$)&&(U=Tg(n,U,l,U.line==i.line?g:null)),U?ts(n,U,i,l,u):null}}return i}function Va(n,i,a,l,u){var g=l||1,y=ts(n,i,a,g,u)||!u&&ts(n,i,a,g,!0)||ts(n,i,a,-g,u)||!u&&ts(n,i,a,-g,!0);return y||(n.cantEdit=!0,Q(n.first,0))}function Tg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,Q(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?Q(i.line+1,0):null:new Q(i.line,i.ch+a)}function Eg(n){n.setSelection(Q(n.firstLine(),0),Q(n.lastLine()),H)}function Lg(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),y&&(l.text=y),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 ns(n,i,a){if(n.cm){if(!n.cm.curOp)return Wt(n.cm,ns)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((An(n,"beforeChange")||n.cm&&An(n.cm,"beforeChange"))&&(i=Lg(n,i,!0),!i))){var l=bp&&!a&&K1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Ag(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Ag(n,i)}}function Ag(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=Sf(n,i);mg(n,i,a,n.cm?n.cm.curOp.id:NaN),sl(n,i,a,Xu(n,i));var l=[];Ci(n,function(u,g){!g&&Te(l,u.history)==-1&&(Pg(u.history,i),l.push(u.history)),sl(u,i,null,Xu(u,i))})}}function ja(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,S=0;S<w.length&&(g=w[S],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));S++);if(S!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(Ba(g,_),a&&!g.equals(n.sel)){nn(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var $=[];Ba(y,_),_.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=An(n,"beforeChange")||n.cm&&An(n.cm,"beforeChange"),G=function(ce){var ve=g.changes[ce];if(ve.origin=i,D&&!Lg(n,ve,!1))return w.length=0,{};$.push(Tf(n,ve));var be=ce?Sf(n,ve):fe(w);sl(n,ve,be,bg(n,ve)),!ce&&n.cm&&n.cm.scrollIntoView({from:ve.from,to:ki(ve)});var ke=[];Ci(n,function(we,Ae){!Ae&&Te(ke,we.history)==-1&&(Pg(we.history,ve),ke.push(we.history)),sl(we,ve,null,bg(we,ve))})},U=g.changes.length-1;U>=0;--U){var ee=G(U);if(ee)return ee.v}}}}function Mg(n,i){if(i!=0&&(n.first+=i,n.sel=new Wn(xe(n.sel.ranges,function(u){return new ht(Q(u.anchor.line+i,u.anchor.ch),Q(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++)xi(n.cm,l,"gutter")}}function sl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Wt(n.cm,sl)(n,i,a,l);if(i.to.line<n.first){Mg(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);Mg(n,u),i={from:Q(n.first,0),to:Q(i.to.line+u,i.to.ch),text:[fe(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:Q(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Gr(n,i.from,i.to),a||(a=Sf(n,i)),n.cm?Jx(n.cm,i,l):Cf(n,i,l),Ua(n,a,H),n.cantEdit&&Va(n,Q(n.firstLine(),0))&&(n.cantEdit=!1)}}function Jx(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=C(pr(Oe(l,g.line))),l.iter(_,y.line+1,function(U){if(U==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Zn(n),Cf(l,i,a,Xp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(U){var ee=Aa(U);ee>u.maxLineLength&&(u.maxLine=U,u.maxLineLength=ee,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),q1(l,g.line),rl(n,400);var S=i.text.length-(y.line-g.line)-1;i.full?gn(n):g.line==y.line&&i.text.length==1&&!hg(n.doc,i)?xi(n,g.line,"text"):gn(n,g.line,y.line+1,S);var $=An(n,"changes"),D=An(n,"change");if(D||$){var G={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};D&&Bt(n,"change",n,G),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(G)}n.display.selForContextMenu=null}function rs(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)),ns(n,{from:a,to:l,text:i,origin:u})}function Ng(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function $g(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)Ng(g.ranges[w].anchor,i,a,l),Ng(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var S=g.changes[_];if(a<S.from.line)S.from=Q(S.from.line+l,S.from.ch),S.to=Q(S.to.line+l,S.to.ch);else if(i<=S.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Pg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;$g(n.done,a,l,u),$g(n.undone,a,l,u)}function ll(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,up(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&xi(n.cm,u,a),g)}function al(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}al.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,Q1(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 cl(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}cl.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof al))){var w=[];this.collapse(w),this.children=[new al(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 y=u.lines.length%25+25,w=y;w<u.lines.length;){var _=new al(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new cl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Te(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new cl(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var ul=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ul.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Ys(this);Bn(a,Math.max(0,a.height-g)),n&&(Mn(n,function(){Og(n,a,-g),xi(n,l,"widget")}),Bt(n,"lineWidgetCleared",n,this,l))}},ul.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Ys(this)-i;u&&(wi(this.doc,l)||Bn(l,l.height+u),a&&Mn(a,function(){a.curOp.forceUpdate=!0,Og(a,l,u),Bt(a,"lineWidgetChanged",a,n,C(l))}))},cr(ul);function Og(n,i,a){Xr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&mf(n,a)}function Qx(n,i,a,l){var u=new ul(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),ll(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!wi(n,y)){var _=Xr(y)<n.scrollTop;Bn(y,y.height+Ys(u)),_&&mf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Bt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var Rg=0,Ti=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Rg};Ti.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),An(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 y=this.lines[g],w=Gs(y.markedSpans,this);n&&!this.collapsed?xi(n,C(y),"text"):n&&(w.to!=null&&(u=C(y)),w.from!=null&&(l=C(y))),y.markedSpans=U1(y.markedSpans,w),w.from==null&&this.collapsed&&!wi(this.doc,y)&&n&&Bn(y,Xo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var S=pr(this.lines[_]),$=Aa(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&&kg(n.doc)),n&&Bt(n,"markerCleared",n,this,l,u),i&&go(n),this.parent&&this.parent.clear()}},Ti.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Gs(g.markedSpans,this);if(y.from!=null&&(a=Q(i?g:C(g),y.from),n==-1))return a;if(y.to!=null&&(l=Q(i?g:C(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ti.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Mn(l,function(){var u=i.line,g=C(i.line),y=rf(l,g);if(y&&(qp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!wi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=Ys(a)-w;_&&Bn(u,u.height+_)}Bt(l,"markerChanged",l,n)})},Ti.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Te(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ti.prototype.detachLine=function(n){if(this.lines.splice(Te(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},cr(Ti);function is(n,i,a,l,u){if(l&&l.shared)return e_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Wt(n.cm,is)(n,i,a,l,u);var g=new Ti(n,u),y=_e(i,a);if(l&&ae(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=B("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Cp(n,i.line,i,a,g)||i.line!=a.line&&Cp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");W1()}g.addToHistory&&mg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,S;if(n.iter(w,a.line+1,function(D){_&&g.collapsed&&!_.options.lineWrapping&&pr(D)==_.display.maxLine&&(S=!0),g.collapsed&&w!=i.line&&Bn(D,0),V1(D,new Ca(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){wi(n,D)&&Bn(D,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(B1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Rg,g.atomic=!0),_){if(S&&(_.curOp.updateMaxLine=!0),g.collapsed)gn(_,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;$++)xi(_,$,"text");g.atomic&&kg(_.doc),Bt(_,"markerAdded",_,g)}return g}var fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};fl.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")}},fl.prototype.find=function(n,i){return this.primary.find(n,i)},cr(fl);function e_(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[is(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Ci(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(is(_,Ke(_,i),Ke(_,a),l,u));for(var S=0;S<_.linked.length;++S)if(_.linked[S].isParent)return;y=fe(g)}),new fl(g,y)}function Dg(n){return n.findMarks(Q(n.first,0),n.clipPos(Q(n.lastLine())),function(i){return i.parent})}function t_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(_e(g,y)){var w=is(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function n_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Ci(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];Te(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var r_=0,vn=function(n,i,a,l,u){if(!(this instanceof vn))return new vn(n,i,a,l,u);a==null&&(a=0),cl.call(this,[new al([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=Q(a,0);this.sel=Si(g),this.history=new qa(null),this.id=++r_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Cf(this,{from:g,to:g,text:n}),nn(this,Si(g),H)};vn.prototype=ze(cl.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=Vs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Ut(function(n){var i=Q(this.first,0),a=this.first+this.size-1;ns(this,{from:i,to:Q(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Qs(this.cm,0,0),nn(this,Si(i),H)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,rs(this,n,i,a,l)},getRange:function(n,i,a){var l=Gr(this,Ke(this,n),Ke(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(se(this,n))return Oe(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),pr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ut(function(n,i,a){xg(this,Ke(this,typeof n=="number"?Q(n,i||0):n),null,a)}),setSelection:Ut(function(n,i,a){xg(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Ut(function(n,i,a){Wa(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Ut(function(n,i){wg(this,fp(this,n),i)}),extendSelectionsBy:Ut(function(n,i){var a=xe(this.sel.ranges,n);wg(this,fp(this,a),i)}),setSelections:Ut(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ht(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),nn(this,vr(this.cm,l,i),a)}}),addSelection:Ut(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ht(Ke(this,n),Ke(this,i||n))),nn(this,vr(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=Gr(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=Gr(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 y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&Ux(this,l,i),_=l.length-1;_>=0;_--)ns(this,l[_]);w?_g(this,w):this.cm&&Jo(this.cm)}),undo:Ut(function(){ja(this,"undo")}),redo:Ut(function(){ja(this,"redo")}),undoSelection:Ut(function(){ja(this,"undo",!0)}),redoSelection:Ut(function(){ja(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 qa(this.history),Ci(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:es(this.history.done),undone:es(this.history.undone)}},setHistory:function(n){var i=this.history=new qa(this.history);i.done=es(n.done.slice(0),null,!0),i.undone=es(n.undone.slice(0),null,!0)},setGutterMarker:Ut(function(n,i,a){return ll(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&vt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Ut(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&ll(i,a,"gutter",function(){return a.gutterMarkers[n]=null,vt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Oe(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Ut(function(n,i,a){return ll(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(ne(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Ut(function(n,i,a){return ll(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(ne(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Ut(function(n,i,a){return Qx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return is(this,Ke(this,n),Ke(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ke(this,n),is(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var w=0;w<y.length;w++){var _=y[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,Q(a,i))},indexFromPos:function(n){n=Ke(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new vn(Vs(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(Vs(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}],t_(l,Dg(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),n_(Dg(this));break}}if(n.history==this.history){var l=[n.id];Ci(n,function(u){return l.push(u.id)},!0),n.history=new qa(null),n.history.done=es(this.history.done,l),n.history.undone=es(this.history.undone,l)}},iterLinkedDocs:function(n){Ci(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Jn(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&&Vx(this.cm))})}),vn.prototype.eachLine=vn.prototype.iter;var zg=0;function i_(n){var i=this;if(Ig(i),!(Lt(i,n)||Yr(i.display,n))){tn(n),h&&(zg=+new Date);var a=co(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,w=function(){++y==u&&Wt(i,function(){a=Ke(i.doc,a);var U={from:a,to:a,text:i.doc.splitLines(g.filter(function(ee){return ee!=null}).join(i.doc.lineSeparator())),origin:"paste"};ns(i.doc,U),_g(i.doc,Si(Ke(i.doc,a),Ke(i.doc,ki(U))))})()},_=function(U,ee){if(i.options.allowDropFileTypes&&Te(i.options.allowDropFileTypes,U.type)==-1){w();return}var ce=new FileReader;ce.onerror=function(){return w()},ce.onload=function(){var ve=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ve)){w();return}g[ee]=ve,w()},ce.readAsText(U)},S=0;S<l.length;S++)_(l[S],S);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var $=n.dataTransfer.getData("Text");if($){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Ua(i.doc,Si(a,a)),D)for(var G=0;G<D.length;++G)rs(i.doc,"",D[G].anchor,D[G].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function o_(n,i){if(h&&(!n.state.draggingText||+new Date-zg<100)){vi(i);return}if(!(Lt(n,i)||Yr(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!T)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function s_(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();df(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)),F(n.display.dragCursor,l)}}function Ig(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Fg(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 Hg=!1;function l_(){Hg||(a_(),Hg=!0)}function a_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Fg(c_)},100))}),Fe(window,"blur",function(){return Fg(Zo)})}function c_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ei={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"},dl=0;dl<10;dl++)Ei[dl+48]=Ei[dl+96]=String(dl);for(var Ga=65;Ga<=90;Ga++)Ei[Ga]=String.fromCharCode(Ga);for(var hl=1;hl<=12;hl++)Ei[hl+111]=Ei[hl+63235]="F"+hl;var Jr={};Jr.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"},Jr.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"},Jr.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"},Jr.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"]},Jr.default=q?Jr.macDefault:Jr.pcDefault;function u_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];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 f_(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=xe(a.split(" "),u_),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var _=i[w];if(!_)i[w]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var S in i)n[S]=i[S];return n}function os(n,i,a,l){i=Ka(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 os(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=os(n,i.fallthrough[g],a,l);if(y)return y}}}function qg(n){var i=typeof n=="string"?n:Ei[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Bg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(te?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(te?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Wg(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=Ei[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Bg(a,n,i))}function Ka(n){return typeof n=="string"?Jr[n]:n}function ss(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,fe(l).to)<=0;){var y=l.pop();if(_e(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Mn(n,function(){for(var w=l.length-1;w>=0;w--)rs(n.doc,"",l[w].from,l[w].to,"+delete");Jo(n)})}function Af(n,i,a){var l=It(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Mf(n,i,a){var l=Af(n,i.ch,a);return l==null?null:new Q(i.line,l,a<0?"after":"before")}function Nf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ve(a,i.doc.direction);if(g){var y=u<0?fe(g):g[0],w=u<0==(y.level==1),_=w?"after":"before",S;if(y.level>0||i.doc.direction=="rtl"){var $=Ko(i,a);S=u<0?a.text.length-1:0;var D=Mr(i,$,S).top;S=Jt(function(G){return Mr(i,$,G).top==D},u<0==(y.level==1)?y.from:y.to-1,S),_=="before"&&(S=Af(a,S,1))}else S=u<0?y.to:y.from;return new Q(l,S,_)}}return new Q(l,u<0?a.text.length:0,u<0?"before":"after")}function d_(n,i,a,l){var u=Ve(i,n.doc.direction);if(!u)return Mf(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=ar(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Mf(i,a,l);var w=function(be,ke){return Af(i,be instanceof Q?be.ch:be,ke)},_,S=function(be){return n.options.lineWrapping?(_=_||Ko(n,i),Kp(n,i,_,be)):{begin:0,end:i.text.length}},$=S(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var D=y.level==1==l<0,G=w(a,D?1:-1);if(G!=null&&(D?G<=y.to&&G<=$.end:G>=y.from&&G>=$.begin)){var U=D?"before":"after";return new Q(a.line,G,U)}}var ee=function(be,ke,we){for(var Ae=function(xt,Vt){return Vt?new Q(a.line,w(xt,1),"before"):new Q(a.line,xt,"after")};be>=0&&be<u.length;be+=ke){var He=u[be],De=ke>0==(He.level!=1),Qe=De?we.begin:w(we.end,-1);if(He.from<=Qe&&Qe<He.to||(Qe=De?He.from:w(He.to,-1),we.begin<=Qe&&Qe<we.end))return Ae(Qe,De)}},ce=ee(g+l,l,$);if(ce)return ce;var ve=l>0?$.end:w($.begin,-1);return ve!=null&&!(l>0&&ve==i.text.length)&&(ce=ee(l>0?0:u.length-1,l,S(ve)),ce)?ce:null}var pl={selectAll:Eg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),H)},killLine:function(n){return ss(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:Q(i.head.line+1,0)}:{from:i.head,to:Q(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ss(n,function(i){return{from:Q(i.from().line,0),to:Ke(n.doc,Q(i.to().line+1,0))}})},delLineLeft:function(n){return ss(n,function(i){return{from:Q(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ss(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 ss(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(Q(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(Q(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Ug(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Vg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return h_(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")},ue)},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")},ue)},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/)?Vg(n,i.head):l},ue)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=de(n.getLine(g.line),g.ch,l);i.push(Se(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Mn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new Q(u.line,u.ch-1)),u.ch>0)u=new Q(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),Q(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Oe(n.doc,u.line-1).text;y&&(u=new Q(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),Q(u.line-1,y.length-1),u,"+transpose"))}}a.push(new ht(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Mn(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);Jo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
36
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Ug(n,i){var a=Oe(n.doc,i),l=pr(a);return l!=a&&(i=C(l)),Nf(!0,n,l,i,1)}function h_(n,i){var a=Oe(n.doc,i),l=Y1(a);return l!=a&&(i=C(l)),Nf(!0,n,a,i,-1)}function Vg(n,i){var a=Ug(n,i.line),l=Oe(n.doc,a.line),u=Ve(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return Q(a.line,y?0:g,a.sticky)}return a}function Xa(n,i,a){if(typeof i=="string"&&(i=pl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function p_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=os(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&os(i,n.options.extraKeys,a,n)||os(i,n.options.keyMap,a,n)}var g_=new $e;function gl(n,i,a,l){var u=n.state.keySeq;if(u){if(qg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:g_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),jg(n,u+" "+i,a,l))return!0}return jg(n,i,a,l)}function jg(n,i,a,l){var u=p_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Bt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(tn(a),hf(n)),!!u}function Gg(n,i){var a=Wg(i,!0);return a?i.shiftKey&&!n.state.keySeq?gl(n,"Shift-"+a,i,function(l){return Xa(n,l,!0)})||gl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Xa(n,l)}):gl(n,a,i,function(l){return Xa(n,l)}):!1}function v_(n,i,a){return gl(n,"'"+a+"'",i,function(l){return Xa(n,l,!0)})}var $f=null;function Kg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(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=Gg(i,n);E&&($f=l?a:null,!l&&a==88&&!Sa&&(q?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!q&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&m_(i)}}function m_(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(K(i,"CodeMirror-crosshair"),en(document,"keyup",a),en(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function Xg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,n)}function Yg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Yr(i.display,n)||Lt(i,n)||n.ctrlKey&&!n.altKey||q&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==$f){$f=null,tn(n);return}if(!(E&&(!n.which||n.which<10)&&Gg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(v_(i,n,u)||i.display.input.onKeyPress(n))}}}var y_=400,Pf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Pf.prototype.compare=function(n,i,a){return this.time+y_>n&&_e(i,this.pos)==0&&a==this.button};var vl,ml;function b_(n,i){var a=+new Date;return ml&&ml.compare(a,n,i)?(vl=ml=null,"triple"):vl&&vl.compare(a,n,i)?(ml=new Pf(a,n,i),vl=null,"double"):(vl=new Pf(a,n,i),ml=null,"single")}function Zg(n){var i=this,a=i.display;if(!(Lt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Yr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Of(i,n)){var l=co(i,n),u=ur(n),g=l?b_(l,u):"single";Le(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&w_(i,u,l,g,n))&&(u==1?l?__(i,l,g,n):Bs(n)==a.scroller&&tn(n):u==2?(l&&Wa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(j?i.display.input.onContextMenu(n):pf(i)))}}}function w_(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,gl(n,Bg(g,u),u,function(y){if(typeof y=="string"&&(y=pl[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=O}finally{n.state.suppressEdits=!1}return w})}function x_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=z?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=q?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(q?a.altKey:a.ctrlKey)),u}function __(n,i,a,l){h?setTimeout(X(Jp,n),0):n.curOp.focus=ye(rt(n));var u=x_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Vu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(_e((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(_e(y.to(),i)>0||i.xRel<0)?S_(n,l,i,u):k_(n,l,i,u)}function S_(n,i,a,l){var u=n.display,g=!1,y=Wt(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:pf(n)),en(u.wrapper.ownerDocument,"mouseup",y),en(u.wrapper.ownerDocument,"mousemove",w),en(u.scroller,"dragstart",_),en(u.scroller,"drop",y),g||(tn(S),l.addNew||Wa(n.doc,a,null,null,l.extend),v&&!T||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(S){g=g||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",y),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Jg(n,i,a){if(a=="char")return new ht(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ht(Q(i.line,0),Ke(n.doc,Q(i.line+1,0)));var l=a(n,i);return new ht(l.from,l.to)}function k_(n,i,a,l){h&&pf(n);var u=n.display,g=n.doc;tn(i);var y,w,_=g.sel,S=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=S[w]:y=new ht(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new ht(a,a)),a=co(n,i,!0,!0),w=-1;else{var $=Jg(n,a,l.unit);l.extend?y=Ef(y,$.anchor,$.head,l.extend):y=$}l.addNew?w==-1?(w=S.length,nn(g,vr(n,S.concat([y]),w),{scroll:!1,origin:"*mouse"})):S.length>1&&S[w].empty()&&l.unit=="char"&&!l.extend?(nn(g,vr(n,S.slice(0,w).concat(S.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Lf(g,w,y,Z):(w=0,nn(g,new Wn([y],0),Z),_=g.sel);var D=a;function G(we){if(_e(D,we)!=0)if(D=we,l.unit=="rectangle"){for(var Ae=[],He=n.options.tabSize,De=de(Oe(g,a.line).text,a.ch,He),Qe=de(Oe(g,we.line).text,we.ch,He),xt=Math.min(De,Qe),Vt=Math.max(De,Qe),Tt=Math.min(a.line,we.line),Nn=Math.min(n.lastLine(),Math.max(a.line,we.line));Tt<=Nn;Tt++){var mn=Oe(g,Tt).text,Ot=le(mn,xt,He);xt==Vt?Ae.push(new ht(Q(Tt,Ot),Q(Tt,Ot))):mn.length>Ot&&Ae.push(new ht(Q(Tt,Ot),Q(Tt,le(mn,Vt,He))))}Ae.length||Ae.push(new ht(a,a)),nn(g,vr(n,_.ranges.slice(0,w).concat(Ae),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(we)}else{var yn=y,Xt=Jg(n,we,l.unit),Ft=yn.anchor,Rt;_e(Xt.anchor,Ft)>0?(Rt=Xt.head,Ft=Vo(yn.from(),Xt.anchor)):(Rt=Xt.anchor,Ft=pn(yn.to(),Xt.head));var Mt=_.ranges.slice(0);Mt[w]=C_(n,new ht(Ke(g,Ft),Rt)),nn(g,vr(n,Mt,w),Z)}}var U=u.wrapper.getBoundingClientRect(),ee=0;function ce(we){var Ae=++ee,He=co(n,we,!0,l.unit=="rectangle");if(He)if(_e(He,D)!=0){n.curOp.focus=ye(rt(n)),G(He);var De=za(u,g);(He.line>=De.to||He.line<De.from)&&setTimeout(Wt(n,function(){ee==Ae&&ce(we)}),150)}else{var Qe=we.clientY<U.top?-20:we.clientY>U.bottom?20:0;Qe&&setTimeout(Wt(n,function(){ee==Ae&&(u.scroller.scrollTop+=Qe,ce(we))}),50)}}function ve(we){n.state.selectingText=!1,ee=1/0,we&&(tn(we),u.input.focus()),en(u.wrapper.ownerDocument,"mousemove",be),en(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var be=Wt(n,function(we){we.buttons===0||!ur(we)?ve(we):ce(we)}),ke=Wt(n,ve);n.state.selectingText=ke,Fe(u.wrapper.ownerDocument,"mousemove",be),Fe(u.wrapper.ownerDocument,"mouseup",ke)}function C_(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=Ve(u);if(!g)return i;var y=ar(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=y+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=ar(g,l.ch,l.sticky),D=$-y||(l.ch-a.ch)*(w.level==1?-1:1);$==_-1||$==_?S=D<0:S=D>0}var G=g[_+(S?-1:0)],U=S==(G.level==1),ee=U?G.from:G.to,ce=U?"after":"before";return a.ch==ee&&a.sticky==ce?i:new ht(new Q(a.line,ee,ce),l)}function Qg(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 y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!An(n,a))return hn(i);g-=w.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var S=y.gutters.childNodes[_];if(S&&S.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[_];return Et(n,a,n,$,D.className,i),hn(i)}}}function Of(n,i){return Qg(n,i,"gutterClick",!0)}function ev(n,i){Yr(n.display,i)||T_(n,i)||Lt(n,i,"contextmenu")||j||n.display.input.onContextMenu(i)}function T_(n,i){return An(n,"gutterContextMenu")?Qg(n,i,"gutterContextMenu",!1):!1}function tv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zs(n)}var ls={toString:function(){return"CodeMirror.Init"}},nv={},Ya={};function E_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,_,S){S!=ls&&g(w,_,S)}:g)}n.defineOption=a,n.Init=ls,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,kf(l)},!0),a("indentUnit",2,kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){ol(l),Zs(l),gn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var S=0;;){var $=_.text.indexOf(u,S);if($==-1)break;S=$+u.length,g.push(Q(y,$))}y++});for(var w=g.length-1;w>=0;w--)rs(l.doc,u,g[w],Q(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=ls&&l.refresh()}),a("specialCharPlaceholder",nx,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",!J),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){tv(l),il(l)},!0),a("keyMap","default",function(l,u,g){var y=Ka(u),w=g!=ls&&Ka(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,A_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=_f(u,l.options.lineNumbers),il(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?uf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Qo(l)},!0),a("scrollbarStyle","native",function(l){ig(l),Qo(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=_f(l.options.gutters,u),il(l)},!0),a("firstLineNumber",1,il,!0),a("lineNumberFormatter",function(l){return l},il,!0),a("showCursorWhenSelecting",!1,Js,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Zo(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,L_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Js,!0),a("singleCursorHeightPerLine",!0,Js,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,ol,!0),a("addModeClass",!1,ol,!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,ol,!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 L_(n,i,a){var l=a&&a!=ls;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:en;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function A_(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(K(n.display.wrapper,"CodeMirror-wrap"),Qu(n)),ff(n),gn(n),Zs(n),setTimeout(function(){return Qo(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(nv,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 Bx(n,l,u,i);g.wrapper.CodeMirror=this,tv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ig(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 $e,keySeq:null,specialChars:null},i.autofocus&&!M&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),M_(this),l_(),po(this),this.curOp.forceUpdate=!0,pg(this,l),i.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&gf(a)},20):Zo(this);for(var y in Ya)Ya.hasOwnProperty(y)&&Ya[y](this,i[y],ls);lg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Rf.length;++w)Rf[w](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}kt.defaults=nv,kt.optionHandlers=Ya;function M_(n){var i=n.display;Fe(i.scroller,"mousedown",Wt(n,Zg)),h&&p<11?Fe(i.scroller,"dblclick",Wt(n,function(_){if(!Lt(n,_)){var S=co(n,_);if(!(!S||Of(n,_)||Yr(n.display,_))){tn(_);var $=n.findWordAt(S);Wa(n.doc,$.anchor,$.head)}}})):Fe(i.scroller,"dblclick",function(_){return Lt(n,_)||tn(_)}),Fe(i.scroller,"contextmenu",function(_){return ev(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||ev(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var S=_.touches[0];return S.radiusX<=1&&S.radiusY<=1}function y(_,S){if(S.left==null)return!0;var $=S.left-_.left,D=S.top-_.top;return $*$+D*D>20*20}Fe(i.scroller,"touchstart",function(_){if(!Lt(n,_)&&!g(_)&&!Of(n,_)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var S=i.activeTouch;if(S&&!Yr(i,_)&&S.left!=null&&!S.moved&&new Date-S.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!S.prev||y(S,S.prev)?D=new ht($,$):!S.prev.prev||y(S,S.prev.prev)?D=n.findWordAt($):D=new ht(Q($.line,0),Ke(n.doc,Q($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),tn(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(el(n,i.scroller.scrollTop),fo(n,i.scroller.scrollLeft,!0),Et(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return ug(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return ug(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Lt(n,_)||vi(_)},over:function(_){Lt(n,_)||(s_(n,_),vi(_))},start:function(_){return o_(n,_)},drop:Wt(n,i_),leave:function(_){Lt(n,_)||Ig(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return Xg.call(n,_)}),Fe(w,"keydown",Wt(n,Kg)),Fe(w,"keypress",Wt(n,Yg)),Fe(w,"focus",function(_){return gf(n,_)}),Fe(w,"blur",function(_){return Zo(n,_)})}var Rf=[];kt.defineInitHook=function(n){return Rf.push(n)};function yl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=js(n,i).state:a="prev");var y=n.options.tabSize,w=Oe(u,i),_=de(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var S=w.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(w.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,w.text.slice(S.length),w.text),$==O||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,y):$=0:a=="add"?$=_+n.options.indentUnit:a=="subtract"?$=_-n.options.indentUnit:typeof a=="number"&&($=_+a),$=Math.max(0,$);var D="",G=0;if(n.options.indentWithTabs)for(var U=Math.floor($/y);U;--U)G+=y,D+=" ";if(G<$&&(D+=Se($-G)),D!=S)return rs(u,D,Q(i,0),Q(i,S.length),"+input"),w.stateAfter=null,!0;for(var ee=0;ee<u.sel.ranges.length;ee++){var ce=u.sel.ranges[ee];if(ce.head.line==i&&ce.head.ch<S.length){var ve=Q(i,S.length);Lf(u,ee,new ht(ve,ve));break}}}var mr=null;function Za(n){mr=n}function Df(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,_=Jn(i),S=null;if(w&&l.ranges.length>1)if(mr&&mr.text.join(`
|
|
37
|
-
`)==i){if(l.ranges.length%mr.text.length==0){S=[];for(var $=0;$<mr.text.length;$++)S.push(g.splitLines(mr.text[$]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=xe(_,function(be){return[be]}));for(var D=n.curOp.updateInput,G=l.ranges.length-1;G>=0;G--){var U=l.ranges[G],ee=U.from(),ce=U.to();U.empty()&&(a&&a>0?ee=Q(ee.line,ee.ch-a):n.state.overwrite&&!w?ce=Q(ce.line,Math.min(Oe(g,ce.line).text.length,ce.ch+fe(_).length)):w&&mr&&mr.lineWise&&mr.text.join(`
|
|
38
|
-
`)==_.join(`
|
|
39
|
-
`)&&(ee=ce=Q(ee.line,0)));var ve={from:ee,to:ce,text:S?S[G%S.length]:_,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};ns(n.doc,ve),Bt(n,"inputRead",n,ve)}i&&!w&&iv(n,i),Jo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function rv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Mn(i,function(){return Df(i,a,0,null,"paste")}),!0}function iv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){y=yl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=yl(n,u.head.line,"smart"));y&&Bt(n,"electricInput",n,u.head.line)}}}function ov(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:Q(u,0),head:Q(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function zf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function sv(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),L&&(n.style.border="1px solid black"),i}function N_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Le(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Wt(this,i[l])(this,u,y),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"](Ka(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:an(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");pe(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,gn(this)}),removeOverlay:an(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,gn(this);return}}}),indentLine:an(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&yl(this,l,u,g)}),indentSelection:an(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>g&&(yl(this,w.head.line,l,!0),g=w.head.line,y==this.doc.sel.primIndex&&Jo(this));else{var _=w.from(),S=w.to(),$=Math.max(g,_.line);g=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=$;D<g;++D)yl(this,D,l);var G=this.doc.sel.ranges;_.ch==0&&u.length==G.length&&G[y].from().ch>0&&Lf(this.doc,y,new ht(_,G[y].to()),H)}}}),getTokenAt:function(l,u){return vp(this,l,u)},getLineTokens:function(l,u){return vp(this,Q(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=hp(this,Oe(this.doc,l.line)),g=0,y=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var S=g+y>>1;if((S?u[S*2-1]:0)>=w)y=S;else if(u[S*2+1]<w)g=S+1;else{_=u[S*2+2];break}}var $=_?_.indexOf("overlay "):-1;return $<0?_:$==0?null:_.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&g.push(y[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var S=y[w[u][_]];S&&g.push(S)}else w.helperType&&y[w.helperType]?g.push(y[w.helperType]):y[w.name]&&g.push(y[w.name]);for(var $=0;$<y._global.length;$++){var D=y._global[$];D.pred(w,this)&&Te(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=up(g,l??g.first+g.size-1),js(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ke(this.doc,l):g=l?y.from():y.to(),gr(this,g,u||"page")},charCoords:function(l,u){return Pa(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Vp(this,l,u||"page"),lf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Vp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),w=Oe(this.doc,l)}else w=l;return $a(this,w,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-Xr(w):0)},defaultTextHeight:function(){return Xo(this.display)},defaultCharWidth:function(){return Yo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,w){var _=this.display;l=gr(this,Ke(this.doc,l));var S=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")S=l.top;else if(y=="above"||y=="near"){var D=Math.max(_.wrapper.clientHeight,this.doc.height),G=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="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>G&&($=G-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",w=="right"?($=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?$=0:w=="middle"&&($=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Lx(this,{left:$,top:S,right:$+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:an(Kg),triggerOnKeyPress:an(Yg),triggerOnKeyUp:Xg,triggerOnMouseDown:an(Zg),execCommand:function(l){if(pl.hasOwnProperty(l))return pl[l].call(null,this)},triggerElectric:an(function(l){iv(this,l)}),findPosH:function(l,u,g,y){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),S=0;S<u&&(_=If(this.doc,_,w,g,y),!_.hitSide);++S);return _},moveH:an(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?If(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},ue)}),deleteH:an(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ss(this,function(w){var _=If(y,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,y){var w=1,_=y;u<0&&(w=-1,u=-u);for(var S=Ke(this.doc,l),$=0;$<u;++$){var D=gr(this,S,"div");if(_==null?_=D.left:D.left=_,S=lv(this,D,w,g),S.hitSide)break}return S},moveV:an(function(l,u){var g=this,y=this.doc,w=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function($){if(_)return l<0?$.from():$.to();var D=gr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),w.push(D.left);var G=lv(g,D,l,u);return u=="page"&&$==y.sel.primary()&&mf(g,Pa(g,G,"div").top-D.top),G},ue),w.length)for(var S=0;S<y.sel.ranges.length;S++)y.sel.ranges[S].goalColumn=w[S]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,y=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&y?--y:++w;for(var S=g.charAt(y),$=Ge(S,_)?function(D){return Ge(D,_)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Ge(D)};y>0&&$(g.charAt(y-1));)--y;for(;w<g.length&&$(g.charAt(w));)++w}return new ht(Q(l.line,y),Q(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):K(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(rt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:an(function(l,u){Qs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Ar(this)-this.display.barHeight,width:l.scrollWidth-Ar(this)-this.display.barWidth,clientHeight:nf(this),clientWidth:lo(this)}},scrollIntoView:an(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:Q(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Ax(this,l):eg(this,l.from,l.to,l.margin)}),setSize:an(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Bp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var S=0;S<_.widgets.length;S++)if(_.widgets[S].noHScroll){xi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(l){return Mn(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:an(function(){var l=this.display.cachedTextHeight;gn(this),this.curOp.forceUpdate=!0,Zs(this),Qs(this,this.doc.scrollLeft,this.doc.scrollTop),wf(this.display),(l==null||Math.abs(l-Xo(this.display))>.5||this.options.lineWrapping)&&ff(this),Et(this,"refresh",this)}),swapDoc:an(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),pg(this,l),Zs(this),this.display.input.reset(),Qs(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}},cr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function If(n,i,a,l,u){var g=i,y=a,w=Oe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function S(){var ke=i.line+_;return ke<n.first||ke>=n.first+n.size?!1:(i=new Q(ke,i.ch,i.sticky),w=Oe(n,ke))}function $(ke){var we;if(l=="codepoint"){var Ae=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ae))we=null;else{var He=a>0?Ae>=55296&&Ae<56320:Ae>=56320&&Ae<57343;we=new Q(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?we=d_(n.cm,w,i,a):we=Mf(w,i,a);if(we==null)if(!ke&&S())i=Nf(u,n.cm,w,i.line,_);else return!1;else i=we;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var D=null,G=l=="group",U=n.cm&&n.cm.getHelper(i,"wordChars"),ee=!0;!(a<0&&!$(!ee));ee=!1){var ce=w.text.charAt(i.ch)||`
|
|
40
|
-
`,ve=Ge(ce,U)?"w":G&&ce==`
|
|
41
|
-
`?"n":!G||/\s/.test(ce)?null:"p";if(G&&!ee&&!ve&&(ve="s"),D&&D!=ve){a<0&&(a=1,$(),i.sticky="after");break}if(ve&&(D=ve),a>0&&!$(!ee))break}var be=Va(n,i,g,y,!0);return dt(g,be)&&(be.hitSide=!0),be}function lv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Le(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*Xo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var S;S=lf(n,g,y),!!S.outside;){if(a<0?y<=0:y>=u.height){S.hitSide=!0;break}y+=a*5}return S}var mt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};mt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,zf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(w){!g(w)||Lt(l,w)||rv(w,l)||p<=11&&setTimeout(Wt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Fe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Fe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!g(w)||Lt(l,w))){if(l.somethingSelected())Za({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=ov(l);Za({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,H),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var S=mr.text.join(`
|
|
42
|
-
`);if(w.clipboardData.setData("Text",S),w.clipboardData.getData("Text")==S){w.preventDefault();return}}var $=sv(),D=$.firstChild;zf(D),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),D.value=mr.text.join(`
|
|
43
|
-
`);var G=ye(Je(u));je(D),setTimeout(function(){l.display.lineSpace.removeChild($),G.focus(),G==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",y),Fe(u,"cut",y)},mt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var n=Zp(this.cm,!1);return n.focus=ye(Je(this.div))==this.div,n},mt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},mt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=Ja(i,n.anchorNode,n.anchorOffset),y=Ja(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&_e(Vo(g,y),l)==0&&_e(pn(g,y),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&av(i,l)||{node:w[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&av(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(!_||!S){n.removeAllRanges();return}var G=n.rangeCount&&n.getRangeAt(0),U;try{U=W(_.node,_.offset,S.offset,S.node)}catch{}U&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),U.collapsed||(n.removeAllRanges(),n.addRange(U))):(n.removeAllRanges(),n.addRange(U)),G&&n.anchorNode==null?n.addRange(G):s&&this.startGracePeriod()),this.rememberSelection()}},mt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},mt.prototype.showMultipleSelections=function(n){F(this.cm.display.cursorDiv,n.cursors),F(this.cm.display.selectionDiv,n.selection)},mt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},mt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Je(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},mt.prototype.blur=function(){this.div.blur()},mt.prototype.getField=function(){return this.div},mt.prototype.supportsTouch=function(){return!0},mt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Mn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},mt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},mt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(P&&b&&this.cm.display.gutterSpecs.length&&$_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Ja(i,n.anchorNode,n.anchorOffset),l=Ja(i,n.focusNode,n.focusOffset);a&&l&&Mn(i,function(){nn(i.doc,Si(a,l),H),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},mt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=Q(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=Q(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=uo(n,l.line))==0?(y=C(i.view[0].line),w=i.view[0].node):(y=C(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=uo(n,u.line),S,$;if(_==i.view.length-1?(S=i.viewTo-1,$=i.lineDiv.lastChild):(S=C(i.view[_+1].line)-1,$=i.view[_+1].node.previousSibling),!w)return!1;for(var D=n.doc.splitLines(P_(n,w,$,y,S)),G=Gr(n.doc,Q(y,0),Q(S,Oe(n.doc,S).text.length));D.length>1&&G.length>1;)if(fe(D)==fe(G))D.pop(),G.pop(),S--;else if(D[0]==G[0])D.shift(),G.shift(),y++;else break;for(var U=0,ee=0,ce=D[0],ve=G[0],be=Math.min(ce.length,ve.length);U<be&&ce.charCodeAt(U)==ve.charCodeAt(U);)++U;for(var ke=fe(D),we=fe(G),Ae=Math.min(ke.length-(D.length==1?U:0),we.length-(G.length==1?U:0));ee<Ae&&ke.charCodeAt(ke.length-ee-1)==we.charCodeAt(we.length-ee-1);)++ee;if(D.length==1&&G.length==1&&y==l.line)for(;U&&U>l.ch&&ke.charCodeAt(ke.length-ee-1)==we.charCodeAt(we.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 He=Q(y,U),De=Q(S,G.length?fe(G).length-ee:0);if(D.length>1||D[0]||_e(He,De))return rs(n.doc,D,He,De,"+input"),!0},mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},mt.prototype.reset=function(){this.forceCompositionEnd()},mt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},mt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},mt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Mn(this.cm,function(){return gn(n.cm)})},mt.prototype.setUneditable=function(n){n.contentEditable="false"},mt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Wt(this.cm,Df)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},mt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},mt.prototype.onContextMenu=function(){},mt.prototype.resetPosition=function(){},mt.prototype.needsContentAttribute=!0;function av(n,i){var a=rf(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=zp(a,l,i.line),g=Ve(l,n.doc.direction),y="left";if(g){var w=ar(g,i.ch);y=w%2?"right":"left"}var _=Hp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function $_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function as(n,i){return i&&(n.bad=!0),n}function P_(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),_=!1;function S(U){return function(ee){return ee.id==U}}function $(){y&&(g+=w,_&&(g+=w),y=_=!1)}function D(U){U&&($(),g+=U)}function G(U){if(U.nodeType==1){var ee=U.getAttribute("cm-text");if(ee){D(ee);return}var ce=U.getAttribute("cm-marker"),ve;if(ce){var be=n.findMarks(Q(l,0),Q(u+1,0),S(+ce));be.length&&(ve=be[0].find(0))&&D(Gr(n.doc,ve.from,ve.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 we=0;we<U.childNodes.length;we++)G(U.childNodes[we]);/^(pre|p)$/i.test(U.nodeName)&&(_=!0),ke&&(y=!0)}else U.nodeType==3&&D(U.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;G(i),i!=a;)i=i.nextSibling,_=!1;return g}function Ja(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return as(n.clipPos(Q(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return O_(g,i,a)}}function O_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return as(Q(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?fe(n.rest):n.line;return as(Q(C(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,S=_.maps;function $(ve,be,ke){for(var we=-1;we<(S?S.length:0);we++)for(var Ae=we<0?_.map:S[we],He=0;He<Ae.length;He+=3){var De=Ae[He+2];if(De==ve||De==be){var Qe=C(we<0?n.line:n.rest[we]),xt=Ae[He]+ke;return(ke<0||De!=ve)&&(xt=Ae[He+(ke?1:0)]),Q(Qe,xt)}}}var D=$(y,w,a);if(D)return as(D,u);for(var G=w.nextSibling,U=y?y.nodeValue.length-a:0;G;G=G.nextSibling){if(D=$(G,G.firstChild,0),D)return as(Q(D.line,D.ch-U),u);U+=G.textContent.length}for(var ee=w.previousSibling,ce=a;ee;ee=ee.previousSibling){if(D=$(ee,ee.firstChild,-1),D)return as(Q(D.line,D.ch+ce),u);ce+=ee.textContent.length}}var Nt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};Nt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),L&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(y){Lt(l,y)||rv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Lt(l,y)){if(l.somethingSelected())Za({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=ov(l);Za({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,H):(a.prevInput="",u.value=w.text.join(`
|
|
44
|
-
`),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(y){if(!(Yr(n,y)||Lt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(y){Yr(n,y)||tn(y)}),Fe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Nt.prototype.createField=function(n){this.wrapper=sv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;zf(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=Zp(n);if(n.options.moveInputWithCursor){var u=gr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Nt.prototype.showSelection=function(n){var i=this.cm,a=i.display;F(a.cursorDiv,n.cursors),F(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&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Nt.prototype.getField=function(){return this.textarea},Nt.prototype.supportsTouch=function(){return!1},Nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||ye(Je(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||yi(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||q&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Mn(i,function(){Df(i,u.slice(y),l.length-y,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=co(a,n),y=l.scroller.scrollTop;if(!g||E)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Wt(a,nn)(a.doc,Si(g),H);var _=u.style.cssText,S=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
46
|
-
top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
|
|
47
|
-
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
48
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var 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 G(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ve=""+(ce?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ce?"":"",u.selectionStart=1,u.selectionEnd=ve.length,l.selForContextMenu=a.doc.sel}}function U(){if(i.contextMenuPending==U&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&G();var ce=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Wt(a,Eg)(a):ce++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,200)}}if(h&&p>=9&&G(),j){vi(n);var ee=function(){en(window,"mouseup",ee),setTimeout(U,20)};Fe(window,"mouseup",ee)}else setTimeout(U,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function R_(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=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function D_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Wx,n.Doc=vn,n.splitLines=Jn,n.countColumn=de,n.findColumn=le,n.isWordChar=Ue,n.Pass=O,n.signal=Et,n.Line=jo,n.changeEnd=ki,n.scrollbarModel=rg,n.Pos=Q,n.cmpPos=_e,n.modes=Ho,n.mimeModes=dr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=bi,n.extendMode=Wo,n.copyState=Er,n.startState=Uo,n.innerMode=Us,n.commands=pl,n.keyMap=Jr,n.keyName=Wg,n.isModifierKey=qg,n.lookupKey=os,n.normalizeKeyMap=f_,n.StringStream=At,n.SharedTextMarker=fl,n.TextMarker=Ti,n.LineWidget=ul,n.e_preventDefault=tn,n.e_stopPropagation=Io,n.e_stop=vi,n.addClass=Ne,n.contains=ie,n.rmClass=K,n.keyNames=Ei}E_(kt),N_(kt);var z_="iter insert remove copy getEditor constructor".split(" ");for(var Qa in vn.prototype)vn.prototype.hasOwnProperty(Qa)&&Te(z_,Qa)<0&&(kt.prototype[Qa]=function(n){return function(){return n.apply(this.doc,arguments)}}(vn.prototype[Qa]));return cr(vn),kt.inputStyles={textarea:Nt,contenteditable:mt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),hr.apply(this,arguments)},kt.defineMIME=so,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=R_,D_(kt),kt.version="5.65.17",kt})})(Kw);var qs=Kw.exports;const yfe=Bb(qs);var bfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(qt){return{type:qt,style:"keyword"}}var R=C("keyword a"),se=C("keyword b"),ge=C("keyword c"),Q=C("keyword d"),_e=C("operator"),dt={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:Q,break:Q,continue:Q,new:C("new"),delete:ge,void:ge,throw:ge,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_e,typeof:_e,instanceof:_e,true:dt,false:dt,null:dt,undefined:dt,NaN:dt,Infinity:dt,this:C("this"),class:C("class"),super:C("atom"),yield:ge,export:C("export"),import:C("import"),extends:ge,await:ge}}(),x=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(C){for(var R=!1,se,ge=!1;(se=C.next())!=null;){if(!R){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}R=!R&&se=="\\"}}var A,N;function L(C,R,se){return A=C,N=se,R}function P(C,R){var se=C.next();if(se=='"'||se=="'")return R.tokenize=M(se),R.tokenize(C,R);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(se=="."&&C.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return L(se);if(se=="="&&C.eat(">"))return L("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(se=="/")return C.eat("*")?(R.tokenize=q,q(C,R)):C.eat("/")?(C.skipToEnd(),L("comment","comment")):Bn(C,R,1)?(T(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(C.eat("="),L("operator","operator",C.current()));if(se=="`")return R.tokenize=z,z(C,R);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),L("meta","meta");if(se=="#"&&C.eatWhile(m))return L("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),L("comment","comment");if(x.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?L("."):L("operator","operator",C.current());if(m.test(se)){C.eatWhile(m);var ge=C.current();if(R.lastType!="."){if(b.propertyIsEnumerable(ge)){var Q=b[ge];return L(Q.type,Q.style,ge)}if(ge=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ge)}return L("variable","variable",ge)}}function M(C){return function(R,se){var ge=!1,Q;if(d&&R.peek()=="@"&&R.match(E))return se.tokenize=P,L("jsonld-keyword","meta");for(;(Q=R.next())!=null&&!(Q==C&&!ge);)ge=!ge&&Q=="\\";return ge||(se.tokenize=P),L("string","string")}}function q(C,R){for(var se=!1,ge;ge=C.next();){if(ge=="/"&&se){R.tokenize=P;break}se=ge=="*"}return L("comment","comment")}function z(C,R){for(var se=!1,ge;(ge=C.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&C.eat("{"))){R.tokenize=P;break}se=!se&&ge=="\\"}return L("quasi","string-2",C.current())}var J="([{}])";function re(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ge&&(se=ge.index)}for(var Q=0,_e=!1,dt=se-1;dt>=0;--dt){var qt=C.string.charAt(dt),pn=J.indexOf(qt);if(pn>=0&&pn<3){if(!Q){++dt;break}if(--Q==0){qt=="("&&(_e=!0);break}}else if(pn>=3&&pn<6)++Q;else if(m.test(qt))_e=!0;else if(/["'\/`]/.test(qt))for(;;--dt){if(dt==0)return;var Vo=C.string.charAt(dt-1);if(Vo==qt&&C.string.charAt(dt-2)!="\\"){dt--;break}}else if(_e&&!Q){++dt;break}}_e&&!Q&&(R.fatArrowAt=dt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(C,R,se,ge,Q,_e){this.indented=C,this.column=R,this.type=se,this.prev=Q,this.info=_e,ge!=null&&(this.align=ge)}function ne(C,R){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==R)return!0;for(var ge=C.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==R)return!0}function K(C,R,se,ge,Q){var _e=C.cc;for(V.state=C,V.stream=Q,V.marked=null,V.cc=_e,V.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var dt=_e.length?_e.pop():h?Te:de;if(dt(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return V.marked?V.marked:se=="variable"&&ne(C,ge)?"variable-2":R}}}var V={state:null,column:null,marked:null,cc:null};function F(){for(var C=arguments.length-1;C>=0;C--)V.cc.push(arguments[C])}function k(){return F.apply(null,arguments),!0}function B(C,R){for(var se=R;se;se=se.next)if(se.name==C)return!0;return!1}function W(C){var R=V.state;if(V.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=ie(C,R.context);if(se!=null){R.context=se;return}}else if(!B(C,R.localVars)){R.localVars=new We(C,R.localVars);return}}s.globalVars&&!B(C,R.globalVars)&&(R.globalVars=new We(C,R.globalVars))}}function ie(C,R){if(R)if(R.block){var se=ie(C,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(C,R.vars)?R:new Ne(R.prev,new We(C,R.vars),!1);else return null}function ye(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Ne(C,R,se){this.prev=C,this.vars=R,this.block=se}function We(C,R){this.name=C,this.next=R}var je=new We("this",new We("arguments",null));function it(){V.state.context=new Ne(V.state.context,V.state.localVars,!1),V.state.localVars=je}function rt(){V.state.context=new Ne(V.state.context,V.state.localVars,!0),V.state.localVars=null}it.lex=rt.lex=!0;function Je(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}Je.lex=!0;function Le(C,R){var se=function(){var ge=V.state,Q=ge.indented;if(ge.lexical.type=="stat")Q=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;ge.lexical=new j(Q,V.stream.column(),C,null,ge.lexical,R)};return se.lex=!0,se}function X(){var C=V.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}X.lex=!0;function ae(C){function R(se){return se==C?k():C==";"||se=="}"||se==")"||se=="]"?F():k(R)}return R}function de(C,R){return C=="var"?k(Le("vardef",R),Io,ae(";"),X):C=="keyword a"?k(Le("form"),O,de,X):C=="keyword b"?k(Le("form"),de,X):C=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Le("stat"),Z,ae(";"),X):C=="debugger"?k(ae(";")):C=="{"?k(Le("}"),rt,Jt,X,Je):C==";"?k():C=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==X&&V.state.cc.pop()(),k(Le("form"),O,de,X,Fo)):C=="function"?k(Jn):C=="for"?k(Le("form"),rt,_a,de,Je,X):C=="class"||v&&R=="interface"?(V.marked="keyword",k(Le("form",C=="class"?C:R),Ho,X)):C=="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(Sa,ae("operator"),Ve,ae(";")):k(Le("form"),hn,ae("{"),Le("}"),Jt,X,X)):v&&R=="namespace"?(V.marked="keyword",k(Le("form"),Te,de,X)):v&&R=="abstract"?(V.marked="keyword",k(de)):k(Le("stat"),Re):C=="switch"?k(Le("form"),O,ae("{"),Le("}","switch"),rt,Jt,X,X,Je):C=="case"?k(Te,ae(":")):C=="default"?k(ae(":")):C=="catch"?k(Le("form"),it,$e,de,X,Je):C=="export"?k(Le("stat"),qo,X):C=="import"?k(Le("stat"),bi,X):C=="async"?k(de):R=="@"?k(Te,de):F(Le("stat"),Te,ae(";"),X)}function $e(C){if(C=="(")return k(fr,ae(")"))}function Te(C,R){return H(C,R,!1)}function Ye(C,R){return H(C,R,!0)}function O(C){return C!="("?F():k(Le(")"),Z,ae(")"),X)}function H(C,R,se){if(V.state.fatArrowAt==V.stream.start){var ge=se?xe:fe;if(C=="(")return k(it,Le(")"),nt(fr,")"),X,ae("=>"),ge,Je);if(C=="variable")return F(it,hn,ae("=>"),ge,Je)}var Q=se?le:ue;return te.hasOwnProperty(C)?k(Q):C=="function"?k(Jn,Q):C=="class"||v&&R=="interface"?(V.marked="keyword",k(Le("form"),ju,X)):C=="keyword c"||C=="async"?k(se?Ye:Te):C=="("?k(Le(")"),Z,ae(")"),X,Q):C=="operator"||C=="spread"?k(se?Ye:Te):C=="["?k(Le("]"),At,X,Q):C=="{"?It(Ge,"}",null,Q):C=="quasi"?F(he,Q):C=="new"?k(pe(se)):k()}function Z(C){return C.match(/[;\}\)\],]/)?F():F(Te)}function ue(C,R){return C==","?k(Z):le(C,R,!1)}function le(C,R,se){var ge=se==!1?ue:le,Q=se==!1?Te:Ye;if(C=="=>")return k(it,se?xe:fe,Je);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(ge):v&&R=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),nt(Ve,">"),X,ge):R=="?"?k(Te,ae(":"),Q):k(Q);if(C=="quasi")return F(he,ge);if(C!=";"){if(C=="(")return It(Ye,")","call",ge);if(C==".")return k(Ue,ge);if(C=="[")return k(Le("]"),Z,ae("]"),X,ge);if(v&&R=="as")return V.marked="keyword",k(Ve,ge);if(C=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(Q)}}function he(C,R){return C!="quasi"?F():R.slice(R.length-2)!="${"?k(he):k(Z,Se)}function Se(C){if(C=="}")return V.marked="string-2",V.state.tokenize=z,k(he)}function fe(C){return re(V.stream,V.state),F(C=="{"?de:Te)}function xe(C){return re(V.stream,V.state),F(C=="{"?de:Ye)}function pe(C){return function(R){return R=="."?k(C?ze:Me):R=="variable"&&v?k(An,C?le:ue):F(C?Ye:Te)}}function Me(C,R){if(R=="target")return V.marked="keyword",k(ue)}function ze(C,R){if(R=="target")return V.marked="keyword",k(le)}function Re(C){return C==":"?k(X,de):F(ue,ae(";"),X)}function Ue(C){if(C=="variable")return V.marked="property",k()}function Ge(C,R){if(C=="async")return V.marked="property",k(Ge);if(C=="variable"||V.style=="keyword"){if(V.marked="property",R=="get"||R=="set")return k(vt);var se;return v&&V.state.fatArrowAt==V.stream.start&&(se=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+se[0].length),k(tt)}else{if(C=="number"||C=="string")return V.marked=d?"property":V.style+" property",k(tt);if(C=="jsonld-keyword")return k(tt);if(v&&ye(R))return V.marked="keyword",k(Ge);if(C=="[")return k(Te,lr,ae("]"),tt);if(C=="spread")return k(Ye,tt);if(R=="*")return V.marked="keyword",k(Ge);if(C==":")return F(tt)}}function vt(C){return C!="variable"?F(tt):(V.marked="property",k(Jn))}function tt(C){if(C==":")return k(Ye);if(C=="(")return F(Jn)}function nt(C,R,se){function ge(Q,_e){if(se?se.indexOf(Q)>-1:Q==","){var dt=V.state.lexical;return dt.info=="call"&&(dt.pos=(dt.pos||0)+1),k(function(qt,pn){return qt==R||pn==R?F():F(C)},ge)}return Q==R||_e==R?k():se&&se.indexOf(";")>-1?F(C):k(ae(R))}return function(Q,_e){return Q==R||_e==R?k():F(C,ge)}}function It(C,R,se){for(var ge=3;ge<arguments.length;ge++)V.cc.push(arguments[ge]);return k(Le(R,se),nt(C,R),X)}function Jt(C){return C=="}"?k():F(de,Jt)}function lr(C,R){if(v){if(C==":")return k(Ve);if(R=="?")return k(lr)}}function qn(C,R){if(v&&(C==":"||R=="in"))return k(Ve)}function ar(C){if(v&&C==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Te,Qt,Ve):k(Ve)}function Qt(C,R){if(R=="is")return V.marked="keyword",k()}function Ve(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return V.marked="keyword",k(R=="typeof"?Ye:Ve);if(C=="variable"||R=="void")return V.marked="type",k(Zn);if(R=="|"||R=="&")return k(Ve);if(C=="string"||C=="number"||C=="atom")return k(Zn);if(C=="[")return k(Le("]"),nt(Ve,"]",","),X,Zn);if(C=="{")return k(Le("}"),Fe,X,Zn);if(C=="(")return k(nt(Lt,")"),oo,Zn);if(C=="<")return k(nt(Ve,">"),Ve);if(C=="quasi")return F(en,Zn)}function oo(C){if(C=="=>")return k(Ve)}function Fe(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Fe):F(jr,Fe)}function jr(C,R){if(C=="variable"||V.style=="keyword")return V.marked="property",k(jr);if(R=="?"||C=="number"||C=="string")return k(jr);if(C==":")return k(Ve);if(C=="[")return k(ae("variable"),qn,ae("]"),jr);if(C=="(")return F(yi,jr);if(!C.match(/[;\}\)\],]/))return k()}function en(C,R){return C!="quasi"?F():R.slice(R.length-2)!="${"?k(en):k(Ve,Et)}function Et(C){if(C=="}")return V.marked="string-2",V.state.tokenize=z,k(en)}function Lt(C,R){return C=="variable"&&V.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):C==":"?k(Ve):C=="spread"?k(Lt):F(Ve)}function Zn(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),X,Zn);if(R=="|"||C=="."||R=="&")return k(Ve);if(C=="[")return k(Ve,ae("]"),Zn);if(R=="extends"||R=="implements")return V.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function An(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),X,Zn)}function cr(){return F(Ve,tn)}function tn(C,R){if(R=="=")return k(Ve)}function Io(C,R){return R=="enum"?(V.marked="keyword",k(Oe)):F(hn,lr,ur,Vu)}function hn(C,R){if(v&&ye(R))return V.marked="keyword",k(hn);if(C=="variable")return W(R),k();if(C=="spread")return k(hn);if(C=="[")return It(Bs,"]");if(C=="{")return It(vi,"}")}function vi(C,R){return C=="variable"&&!V.stream.match(/^\s*:/,!1)?(W(R),k(ur)):(C=="variable"&&(V.marked="property"),C=="spread"?k(hn):C=="}"?F():C=="["?k(Te,ae("]"),ae(":"),vi):k(ae(":"),hn,ur))}function Bs(){return F(hn,ur)}function ur(C,R){if(R=="=")return k(Ye)}function Vu(C){if(C==",")return k(Io)}function Fo(C,R){if(C=="keyword b"&&R=="else")return k(Le("form","else"),de,X)}function _a(C,R){if(R=="await")return k(_a);if(C=="(")return k(Le(")"),Ws,X)}function Ws(C){return C=="var"?k(Io,mi):C=="variable"?k(mi):F(mi)}function mi(C,R){return C==")"?k():C==";"?k(mi):R=="in"||R=="of"?(V.marked="keyword",k(Te,mi)):F(Te,mi)}function Jn(C,R){if(R=="*")return V.marked="keyword",k(Jn);if(C=="variable")return W(R),k(Jn);if(C=="(")return k(it,Le(")"),nt(fr,")"),X,ar,de,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),X,Jn)}function yi(C,R){if(R=="*")return V.marked="keyword",k(yi);if(C=="variable")return W(R),k(yi);if(C=="(")return k(it,Le(")"),nt(fr,")"),X,ar,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),X,yi)}function Sa(C,R){if(C=="keyword"||C=="variable")return V.marked="type",k(Sa);if(R=="<")return k(Le(">"),nt(cr,">"),X)}function fr(C,R){return R=="@"&&k(Te,fr),C=="spread"?k(fr):v&&ye(R)?(V.marked="keyword",k(fr)):v&&C=="this"?k(lr,ur):F(hn,lr,ur)}function ju(C,R){return C=="variable"?Ho(C,R):dr(C,R)}function Ho(C,R){if(C=="variable")return W(R),k(dr)}function dr(C,R){if(R=="<")return k(Le(">"),nt(cr,">"),X,dr);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(V.marked="keyword"),k(v?Ve:Te,dr);if(C=="{")return k(Le("}"),hr,X)}function hr(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(hr);if(C=="variable"||V.style=="keyword")return V.marked="property",k(so,hr);if(C=="number"||C=="string")return k(so,hr);if(C=="[")return k(Te,lr,ae("]"),so,hr);if(R=="*")return V.marked="keyword",k(hr);if(v&&C=="(")return F(yi,hr);if(C==";"||C==",")return k(hr);if(C=="}")return k();if(R=="@")return k(Te,hr)}function so(C,R){if(R=="!"||R=="?")return k(so);if(C==":")return k(Ve,ur);if(R=="=")return k(Ye);var se=V.state.lexical.prev,ge=se&&se.info=="interface";return F(ge?yi:Jn)}function qo(C,R){return R=="*"?(V.marked="keyword",k(Uo,ae(";"))):R=="default"?(V.marked="keyword",k(Te,ae(";"))):C=="{"?k(nt(Bo,"}"),Uo,ae(";")):F(de)}function Bo(C,R){if(R=="as")return V.marked="keyword",k(ae("variable"));if(C=="variable")return F(Ye,Bo)}function bi(C){return C=="string"?k():C=="("?F(Te):C=="."?F(ue):F(Wo,Er,Uo)}function Wo(C,R){return C=="{"?It(Wo,"}"):(C=="variable"&&W(R),R=="*"&&(V.marked="keyword"),k(Us))}function Er(C){if(C==",")return k(Wo,Er)}function Us(C,R){if(R=="as")return V.marked="keyword",k(Wo)}function Uo(C,R){if(R=="from")return V.marked="keyword",k(Te)}function At(C){return C=="]"?k():F(nt(Ye,"]"))}function Oe(){return F(Le("form"),hn,ae("{"),Le("}"),nt(Gr,"}"),X,X)}function Gr(){return F(hn,ur)}function Vs(C,R){return C.lastType=="operator"||C.lastType==","||x.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Bn(C,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var R={tokenize:P,lastType:"sof",cc:[],lexical:new j((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),re(C,R)),R.tokenize!=q&&C.eatSpace())return null;var se=R.tokenize(C,R);return A=="comment"?se:(R.lastType=A=="operator"&&(N=="++"||N=="--")?"incdec":A,K(R,se,A,N,C))},indent:function(C,R){if(C.tokenize==q||C.tokenize==z)return r.Pass;if(C.tokenize!=P)return 0;var se=R&&R.charAt(0),ge=C.lexical,Q;if(!/^\s*else\b/.test(R))for(var _e=C.cc.length-1;_e>=0;--_e){var dt=C.cc[_e];if(dt==X)ge=ge.prev;else if(dt!=Fo&&dt!=Je)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(Q=C.cc[C.cc.length-1])&&(Q==ue||Q==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var qt=ge.type,pn=se==qt;return qt=="vardef"?ge.indented+(C.lastType=="operator"||C.lastType==","?ge.info.length+1:0):qt=="form"&&se=="{"?ge.indented:qt=="form"?ge.indented+c:qt=="stat"?ge.indented+(Vs(C,R)?f||c:0):ge.info=="switch"&&!pn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(R)?c:2*c):ge.align?ge.column+(pn?0:1):ge.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:Bn,skipExpression:function(C){K(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var wfe=bfe.exports,xfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function x(k,B){function W(Ne){return B.tokenize=Ne,Ne(k,B)}var ie=k.next();if(ie=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(A("atom","]]>")):null:k.match("--")?W(A("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(N(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=A("meta","?>"),"meta"):(m=k.eat("/")?"closeTag":"openTag",B.tokenize=E,"tag bracket");if(ie=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function E(k,B){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return B.tokenize=x,m=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return m="equals",null;if(W=="<"){B.tokenize=x,B.state=z,B.tagName=B.tagStart=null;var ie=B.tokenize(k,B);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(W)?(B.tokenize=T(W),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function T(k){var B=function(W,ie){for(;!W.eol();)if(W.next()==k){ie.tokenize=E;break}return"string"};return B.isInAttribute=!0,B}function A(k,B){return function(W,ie){for(;!W.eol();){if(W.match(B)){ie.tokenize=x;break}W.next()}return k}}function N(k){return function(B,W){for(var ie;(ie=B.next())!=null;){if(ie=="<")return W.tokenize=N(k+1),W.tokenize(B,W);if(ie==">")if(k==1){W.tokenize=x;break}else return W.tokenize=N(k-1),W.tokenize(B,W)}return"meta"}}function L(k){return k&&k.toLowerCase()}function P(k,B,W){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=W,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function M(k){k.context&&(k.context=k.context.prev)}function q(k,B){for(var W;;){if(!k.context||(W=k.context.tagName,!h.contextGrabbers.hasOwnProperty(L(W))||!h.contextGrabbers[L(W)].hasOwnProperty(L(B))))return;M(k)}}function z(k,B,W){return k=="openTag"?(W.tagStart=B.column(),J):k=="closeTag"?re:z}function J(k,B,W){return k=="word"?(W.tagName=B.current(),b="tag",ne):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ne(k,B,W)):(b="error",J)}function re(k,B,W){if(k=="word"){var ie=B.current();return W.context&&W.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(L(W.context.tagName))&&M(W),W.context&&W.context.tagName==ie||h.matchClosing===!1?(b="tag",te):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,W)):(b="error",j)}function te(k,B,W){return k!="endTag"?(b="error",te):(M(W),z)}function j(k,B,W){return b="error",te(k,B,W)}function ne(k,B,W){if(k=="word")return b="attribute",K;if(k=="endTag"||k=="selfcloseTag"){var ie=W.tagName,ye=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ie))?q(W,ie):(q(W,ie),W.context=new P(W,ie,ye==W.indented)),z}return b="error",ne}function K(k,B,W){return k=="equals"?V:(h.allowMissing||(b="error"),ne(k,B,W))}function V(k,B,W){return k=="string"?F:k=="word"&&h.allowUnquoted?(b="string",ne):(b="error",ne(k,B,W))}function F(k,B,W){return k=="string"?F:ne(k,B,W)}return{startState:function(k){var B={tokenize:x,state:z,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;m=null;var W=B.tokenize(k,B);return(W||m)&&W!="comment"&&(b=null,B.state=B.state(m||W,k,B),b&&(W=b=="error"?W+" error":b)),W},indent:function(k,B,W){var ie=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ie&&ie.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=x)return W?W.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;ie;)if(ie.tagName==ye[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ie.tagName)))ie=ie.prev;else break;else if(ye)for(;ie;){var Ne=h.contextGrabbers[L(ie.tagName)];if(Ne&&Ne.hasOwnProperty(L(ye[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.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=ne)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],W=k.context;W;W=W.prev)B.push(W.tagName);return B.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 _fe=xfe.exports;(function(e,t){(function(r){r(qs,_fe,wfe)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var E=x.tagName;x.tagName=null;var T=d.indent(x,"","");return x.tagName=E,T}function v(x,E){return E.context.mode==d?m(x,E,E.context):b(x,E,E.context)}function m(x,E,T){if(T.depth==2)return x.match(/^.*?\*\//)?T.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(T.state);var A=p(T.state),N=T.state.context;if(N&&x.match(/^[^>]*>\s*$/,!1)){for(;N.prev&&!N.startOfLine;)N=N.prev;N.startOfLine?A-=c.indentUnit:T.prev.state.lexical&&(A=T.prev.state.lexical.indented)}else T.depth==1&&(A+=c.indentUnit);return E.context=new o(r.startState(h,A),h,0,E.context),null}if(T.depth==1){if(x.peek()=="<")return d.skipAttribute(T.state),E.context=new o(r.startState(d,p(T.state)),d,0,E.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return T.depth=2,v(x,E)}var L=d.token(x,T.state),P=x.current(),M;return/\btag\b/.test(L)?/>$/.test(P)?T.state.context?T.depth=0:E.context=E.context.prev:/^</.test(P)&&(T.depth=1):!L&&(M=P.indexOf("{"))>-1&&x.backUp(P.length-M),L}function b(x,E,T){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,T.state))return E.context=new o(r.startState(d,h.indent(T.state,"","")),d,0,E.context),h.skipExpression(T.state),null;var A=h.token(x,T.state);if(!A&&T.depth!=null){var N=x.current();N=="{"?T.depth++:N=="}"&&--T.depth==0&&(E.context=E.context.prev)}return A}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,E,T){return x.context.mode.indent(x.context.state,E,T)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(qs)})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(qs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",x=m[b],E=p.pos;function T(){r.off(document,"mousemove",A),r.off(document,"mouseup",T)}function A(N){if(N.which!=1)return T();p.moveTo(E+(N[b]-x)*(p.total/p.size))}r.on(document,"mousemove",A),r.on(document,"mouseup",T)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const er=Br();function Sfe(e,t,r={}){const o=yfe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Ht(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}),_u(()=>{er.value=void 0}),mh(o)}async function kfe(e){var t;Ew(e,((t=e.location)==null?void 0:t.line)??0)}const Cfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Xw=ft({__name:"CodeMirrorContainer",props:qc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:qc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Eh(e,"modelValue"),s=YS(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Be();return Hs(async()=>{const d=Sfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),er.value=d,setTimeout(()=>er.value.refresh(),100)}),(d,h)=>(oe(),me("div",Cfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tfe=ft({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Br(void 0),f=Be(!1),d=Be(!0);Ht(()=>r.file,async()=>{var M;d.value=!0;try{if(!r.file||!((M=r.file)!=null&&M.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await yt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),Ht(()=>[d.value,r.file,zd.value],([M,q,z])=>{M||(z!=null?ln(()=>{var re;const J={line:z??0,ch:0};(re=er.value)==null||re.scrollIntoView(J,100),ln(()=>{var te,j;(te=er.value)==null||te.focus(),(j=er.value)==null||j.setCursor(J)})}):ln(()=>{var J;(J=er.value)==null||J.focus()}))},{flush:"post"});const h=Ee(()=>{var M,q;return((q=(M=r.file)==null?void 0:M.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),p=Be(),v=Ee(()=>{var M;return(M=p.value)==null?void 0:M.cm}),m=Ee(()=>{var M;return((M=r.file)==null?void 0:M.tasks.filter(q=>{var z;return((z=q.result)==null?void 0:z.state)==="fail"}))||[]}),b=[],x=[],E=[],T=Be(!1);function A(){E.forEach(([M,q,z])=>{M.removeEventListener("click",q),z()}),E.length=0}Cw(p,()=>{var M;(M=er.value)==null||M.refresh()});function N(){f.value=c.value!==er.value.getValue()}Ht(f,M=>{o("draft",M)},{immediate:!0});function L(M){const q=((M==null?void 0:M.stacks)||[]).filter(ne=>{var K;return ne.file&&ne.file===((K=r.file)==null?void 0:K.filepath)}),z=q==null?void 0:q[0];if(!z)return;const J=document.createElement("div");J.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(z.column)}^ ${(M==null?void 0:M.nameStr)||M.name}: ${(M==null?void 0:M.message)||""}`,J.appendChild(re);const te=document.createElement("span");te.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",te.tabIndex=0,te.ariaLabel="Open in Editor",Eb(te,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await fw(z.file,z.line,z.column)};J.appendChild(te),E.push([te,j,()=>zh(te)]),x.push(er.value.addLineClass(z.line-1,"wrap","bg-red-500/10")),b.push(er.value.addLineWidget(z.line-1,J))}Ht([v,m],([M])=>{if(!M){A();return}setTimeout(()=>{A(),b.forEach(q=>q.clear()),x.forEach(q=>{var z;return(z=er.value)==null?void 0:z.removeLineClass(q,"wrap")}),b.length=0,x.length=0,M.on("changes",N),m.value.forEach(q=>{var z,J;(J=(z=q.result)==null?void 0:z.errors)==null||J.forEach(L)}),T.value||M.clearHistory()},100)},{flush:"post"});async function P(M){T.value=!0,await yt.rpc.saveTestFile(r.file.filepath,M),c.value=M,f.value=!1}return(M,q)=>{const z=Xw;return oe(),ot(z,li({ref_key:"editor",ref:p,modelValue:I(s),"onUpdate:modelValue":q[0]||(q[0]=J=>Pt(s)?s.value=J:null),"h-full":""},{lineNumbers:!0,readOnly:I(Ir)},{mode:I(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Efe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Lfe={"p-4":"",relative:""},Afe=Y("p",null,"Module Info",-1),Mfe={op50:"","font-mono":"","text-sm":""},Nfe={key:0,"p-5":""},$fe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Pfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Ofe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Rfe={key:0},Dfe={p:"x3 y-1","bg-overlay":"",border:"base b t"},zfe=ft({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=sce(()=>yt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Ee(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Ee(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Ee(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ee(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return bw("Escape",()=>{o("close")}),(p,v)=>{const m=gi,b=Xw;return oe(),me("div",Efe,[Y("div",Lfe,[Afe,Y("p",Mfe,qe(p.id),1),Pe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),I(s)?(oe(),me(ut,{key:1},[Y("div",$fe,[Pfe,Ofe,Pe(b,li({"h-full":"","model-value":I(f),"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"]),Pe(b,li({"h-full":"","model-value":I(d),"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"])]),I(h).mappings!==""?(oe(),me("div",Rfe,[Y("div",Dfe," Source map (v"+qe(I(h).version)+") ",1),Pe(b,li({"model-value":I(h).mappings,"read-only":""},{lineNumbers:!0},{mode:I(c)}),null,16,["model-value","mode"])])):Ze("",!0)],64)):(oe(),me("div",Nfe," No transform result found for this module. "))])}}});function Ife(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const i0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),i0.hasOwnProperty(t)?{space:i0[t],local:e}:e}function Ffe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function Hfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yw(e){var t=qu(e);return(t.local?Hfe:Ffe)(t)}function qfe(){}function Yh(e){return e==null?qfe:function(){return this.querySelector(e)}}function Bfe(e){typeof e!="function"&&(e=Yh(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 Yn(o,this._parents)}function Wfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ufe(){return[]}function Zw(e){return e==null?Ufe:function(){return this.querySelectorAll(e)}}function Vfe(e){return function(){return Wfe(e.apply(this,arguments))}}function jfe(e){typeof e=="function"?e=Vfe(e):e=Zw(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 Yn(o,s)}function Jw(e){return function(){return this.matches(e)}}function Qw(e){return function(t){return t.matches(e)}}var Gfe=Array.prototype.find;function Kfe(e){return function(){return Gfe.call(this.children,e)}}function Xfe(){return this.firstElementChild}function Yfe(e){return this.select(e==null?Xfe:Kfe(typeof e=="function"?e:Qw(e)))}var Zfe=Array.prototype.filter;function Jfe(){return Array.from(this.children)}function Qfe(e){return function(){return Zfe.call(this.children,e)}}function ede(e){return this.selectAll(e==null?Jfe:Qfe(typeof e=="function"?e:Qw(e)))}function tde(e){typeof e!="function"&&(e=Jw(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 Yn(o,this._parents)}function e1(e){return new Array(e.length)}function nde(){return new Yn(this._enter||this._groups.map(e1),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,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 rde(e){return function(){return e}}function ide(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 su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function ode(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function sde(e){return e.__data__}function lde(e,t){if(!arguments.length)return Array.from(this,sde);var r=t?ode:ide,o=this._parents,s=this._groups;typeof e!="function"&&(e=rde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,x=ade(e.call(v,v&&v.__data__,p,o)),E=x.length,T=d[p]=new Array(E),A=f[p]=new Array(E),N=h[p]=new Array(b);r(v,m,T,A,N,x,t);for(var L=0,P=0,M,q;L<E;++L)if(M=T[L]){for(L>=P&&(P=L+1);!(q=A[P])&&++P<E;);M._next=q||null}}return f=new Yn(f,o),f._enter=d,f._exit=h,f}function ade(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cde(){return new Yn(this._exit||this._groups.map(e1),this._parents)}function ude(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 fde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),x,E=0;E<m;++E)(x=p[E]||v[E])&&(b[E]=x);for(;h<s;++h)d[h]=r[h];return new Yn(d,this._parents)}function dde(){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 hde(e){e||(e=pde);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Yn(s,this._parents).order()}function pde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vde(){return Array.from(this)}function mde(){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 yde(){let e=0;for(const t of this)++e;return e}function bde(){return!this.node()}function wde(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 xde(e){return function(){this.removeAttribute(e)}}function _de(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sde(e,t){return function(){this.setAttribute(e,t)}}function kde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Tde(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 Ede(e,t){var r=qu(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?_de:xde:typeof t=="function"?r.local?Tde:Cde:r.local?kde:Sde)(r,t))}function t1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Lde(e){return function(){this.style.removeProperty(e)}}function Ade(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Mde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Nde(e,t,r){return arguments.length>1?this.each((t==null?Lde:typeof t=="function"?Mde:Ade)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||t1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Pde(e,t){return function(){this[e]=t}}function Ode(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Rde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Ode:Pde)(e,t)):this.node()[e]}function n1(e){return e.trim().split(/^|\s+/)}function Zh(e){return e.classList||new r1(e)}function r1(e){this._node=e,this._names=n1(e.getAttribute("class")||"")}r1.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 i1(e,t){for(var r=Zh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function o1(e,t){for(var r=Zh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Dde(e){return function(){i1(this,e)}}function zde(e){return function(){o1(this,e)}}function Ide(e,t){return function(){(t.apply(this,arguments)?i1:o1)(this,e)}}function Fde(e,t){var r=n1(e+"");if(arguments.length<2){for(var o=Zh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ide:t?Dde:zde)(r,t))}function Hde(){this.textContent=""}function qde(e){return function(){this.textContent=e}}function Bde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wde(e){return arguments.length?this.each(e==null?Hde:(typeof e=="function"?Bde:qde)(e)):this.node().textContent}function Ude(){this.innerHTML=""}function Vde(e){return function(){this.innerHTML=e}}function jde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gde(e){return arguments.length?this.each(e==null?Ude:(typeof e=="function"?jde:Vde)(e)):this.node().innerHTML}function Kde(){this.nextSibling&&this.parentNode.appendChild(this)}function Xde(){return this.each(Kde)}function Yde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zde(){return this.each(Yde)}function Jde(e){var t=typeof e=="function"?e:Yw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qde(){return null}function ehe(e,t){var r=typeof e=="function"?e:Yw(e),o=t==null?Qde:typeof t=="function"?t:Yh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function the(){var e=this.parentNode;e&&e.removeChild(this)}function nhe(){return this.each(the)}function rhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ihe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ohe(e){return this.select(e?ihe:rhe)}function she(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lhe(e){return function(t){e.call(this,t,this.__data__)}}function ahe(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 che(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 uhe(e,t,r){return function(){var o=this.__on,s,c=lhe(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 fhe(e,t,r){var o=ahe(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?uhe:che,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function s1(e,t,r){var o=t1(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 dhe(e,t){return function(){return s1(this,e,t)}}function hhe(e,t){return function(){return s1(this,e,t.apply(this,arguments))}}function phe(e,t){return this.each((typeof t=="function"?hhe:dhe)(e,t))}function*ghe(){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 l1=[null];function Yn(e,t){this._groups=e,this._parents=t}function ba(){return new Yn([[document.documentElement]],l1)}function vhe(){return this}Yn.prototype=ba.prototype={constructor:Yn,select:Bfe,selectAll:jfe,selectChild:Yfe,selectChildren:ede,filter:tde,data:lde,enter:nde,exit:cde,join:ude,merge:fde,selection:vhe,order:dde,sort:hde,call:gde,nodes:vde,node:mde,size:yde,empty:bde,each:wde,attr:Ede,style:Nde,property:Rde,classed:Fde,text:Wde,html:Gde,raise:Xde,lower:Zde,append:Jde,insert:ehe,remove:nhe,clone:ohe,datum:she,on:fhe,dispatch:phe,[Symbol.iterator]:ghe};function Dn(e){return typeof e=="string"?new Yn([[document.querySelector(e)]],[document.documentElement]):new Yn([[e]],l1)}function mhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ri(e,t){if(e=mhe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class _n{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new _n(t,r)}add(t){return new _n(this.x+t.x,this.y+t.y)}subtract(t){return new _n(this.x-t.x,this.y-t.y)}multiply(t){return new _n(this.x*t,this.y*t)}divide(t){return new _n(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new _n(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new _n(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new _n(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var yhe={value:()=>{}};function wa(){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 Nc(r)}function Nc(e){this._=e}function bhe(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}})}Nc.prototype=wa.prototype={constructor:Nc,on:function(e,t){var r=this._,o=bhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=whe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=o0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=o0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(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 whe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function o0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=yhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const xhe={passive:!1},ia={capture:!0,passive:!1};function sd(e){e.stopImmediatePropagation()}function ks(e){e.preventDefault(),e.stopImmediatePropagation()}function a1(e){var t=e.document.documentElement,r=Dn(e).on("dragstart.drag",ks,ia);"onselectstart"in t?r.on("selectstart.drag",ks,ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function c1(e,t){var r=e.document.documentElement,o=Dn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ks,ia),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 gc=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _he(e){return!e.ctrlKey&&!e.button}function She(){return this.parentNode}function khe(e,t){return t??{x:e.x,y:e.y}}function Che(){return navigator.maxTouchPoints||"ontouchstart"in this}function The(){var e=_he,t=She,r=khe,o=Che,s={},c=wa("start","drag","end"),f=0,d,h,p,v,m=0;function b(M){M.on("mousedown.drag",x).filter(o).on("touchstart.drag",A).on("touchmove.drag",N,xhe).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(M,q){if(!(v||!e.call(this,M,q))){var z=P(this,t.call(this,M,q),M,q,"mouse");z&&(Dn(M.view).on("mousemove.drag",E,ia).on("mouseup.drag",T,ia),a1(M.view),sd(M),p=!1,d=M.clientX,h=M.clientY,z("start",M))}}function E(M){if(ks(M),!p){var q=M.clientX-d,z=M.clientY-h;p=q*q+z*z>m}s.mouse("drag",M)}function T(M){Dn(M.view).on("mousemove.drag mouseup.drag",null),c1(M.view,p),ks(M),s.mouse("end",M)}function A(M,q){if(e.call(this,M,q)){var z=M.changedTouches,J=t.call(this,M,q),re=z.length,te,j;for(te=0;te<re;++te)(j=P(this,J,M,q,z[te].identifier,z[te]))&&(sd(M),j("start",M,z[te]))}}function N(M){var q=M.changedTouches,z=q.length,J,re;for(J=0;J<z;++J)(re=s[q[J].identifier])&&(ks(M),re("drag",M,q[J]))}function L(M){var q=M.changedTouches,z=q.length,J,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),J=0;J<z;++J)(re=s[q[J].identifier])&&(sd(M),re("end",M,q[J]))}function P(M,q,z,J,re,te){var j=c.copy(),ne=ri(te||z,q),K,V,F;if((F=r.call(M,new jd("beforestart",{sourceEvent:z,target:b,identifier:re,active:f,x:ne[0],y:ne[1],dx:0,dy:0,dispatch:j}),J))!=null)return K=F.x-ne[0]||0,V=F.y-ne[1]||0,function k(B,W,ie){var ye=ne,Ne;switch(B){case"start":s[re]=k,Ne=f++;break;case"end":delete s[re],--f;case"drag":ne=ri(ie||W,q),Ne=f;break}j.call(B,M,new jd(B,{sourceEvent:W,subject:F,target:b,identifier:re,active:Ne,x:ne[0]+K,y:ne[1]+V,dx:ne[0]-ye[0],dy:ne[1]-ye[1],dispatch:j}),J)}}return b.filter=function(M){return arguments.length?(e=typeof M=="function"?M:gc(!!M),b):e},b.container=function(M){return arguments.length?(t=typeof M=="function"?M:gc(M),b):t},b.subject=function(M){return arguments.length?(r=typeof M=="function"?M:gc(M),b):r},b.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:gc(!!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?(m=(M=+M)*M,b):Math.sqrt(m)},b}function Jh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function u1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function xa(){}var oa=.7,lu=1/oa,Cs="\\s*([+-]?\\d+)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ehe=/^#([0-9a-f]{3,8})$/,Lhe=new RegExp(`^rgb\\(${Cs},${Cs},${Cs}\\)$`),Ahe=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),Mhe=new RegExp(`^rgba\\(${Cs},${Cs},${Cs},${sa}\\)$`),Nhe=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${sa}\\)$`),$he=new RegExp(`^hsl\\(${sa},${Fr},${Fr}\\)$`),Phe=new RegExp(`^hsla\\(${sa},${Fr},${Fr},${sa}\\)$`),s0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Jh(xa,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:l0,formatHex:l0,formatHex8:Ohe,formatHsl:Rhe,formatRgb:a0,toString:a0});function l0(){return this.rgb().formatHex()}function Ohe(){return this.rgb().formatHex8()}function Rhe(){return f1(this).formatHsl()}function a0(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ehe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?c0(t):r===3?new In(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?vc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Lhe.exec(e))?new In(t[1],t[2],t[3],1):(t=Ahe.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mhe.exec(e))?vc(t[1],t[2],t[3],t[4]):(t=Nhe.exec(e))?vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?d0(t[1],t[2]/100,t[3]/100,1):(t=Phe.exec(e))?d0(t[1],t[2]/100,t[3]/100,t[4]):s0.hasOwnProperty(e)?c0(s0[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function c0(e){return new In(e>>16&255,e>>8&255,e&255,1)}function vc(e,t,r,o){return o<=0&&(e=t=r=NaN),new In(e,t,r,o)}function Dhe(e){return e instanceof xa||(e=la(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function Gd(e,t,r,o){return arguments.length===1?Dhe(e):new In(e,t,r,o??1)}function In(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Jh(In,Gd,u1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(No(this.r),No(this.g),No(this.b),au(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:u0,formatHex:u0,formatHex8:zhe,formatRgb:f0,toString:f0}));function u0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function zhe(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function d0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,r,o)}function f1(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=la(e)),!e)return new xr;if(e instanceof xr)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 xr(f,d,h,e.opacity)}function Ihe(e,t,r,o){return arguments.length===1?f1(e):new xr(e,t,r,o??1)}function xr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Jh(xr,Ihe,u1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new xr(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 In(ld(e>=240?e-240:e+120,s,o),ld(e,s,o),ld(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new xr(h0(this.h),mc(this.s),mc(this.l),au(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=au(this.opacity);return`${e===1?"hsl(":"hsla("}${h0(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h0(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function ld(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 d1=e=>()=>e;function Fhe(e,t){return function(r){return e+r*t}}function Hhe(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 qhe(e){return(e=+e)==1?h1:function(t,r){return r-t?Hhe(t,r,e):d1(isNaN(t)?r:t)}}function h1(e,t){var r=t-e;return r?Fhe(e,r):d1(isNaN(e)?t:e)}const p0=function e(t){var r=qhe(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=h1(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 qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ad=new RegExp(Kd.source,"g");function Bhe(e){return function(){return e}}function Whe(e){return function(t){return e(t)+""}}function Uhe(e,t){var r=Kd.lastIndex=ad.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=ad.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:qi(o,s)})),r=ad.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Whe(h[0].x):Bhe(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var g0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function p1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*g0,skewX:Math.atan(h)*g0,scaleX:f,scaleY:d}}var yc;function Vhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:p1(t.a,t.b,t.c,t.d,t.e,t.f)}function jhe(e){return e==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",e),!(e=yc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,p1(e.a,e.b,e.c,e.d,e.e,e.f))}function g1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,E){if(p!==m||v!==b){var T=x.push("translate(",null,t,null,r);E.push({i:T-4,x:qi(p,m)},{i:T-2,x:qi(v,b)})}else(m||b)&&x.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:qi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:qi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,E){if(p!==m||v!==b){var T=x.push(s(x)+"scale(",null,",",null,")");E.push({i:T-4,x:qi(p,m)},{i:T-2,x:qi(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var E=-1,T=b.length,A;++E<T;)m[(A=b[E]).i]=A.x(x);return m.join("")}}}var Ghe=g1(Vhe,"px, ","px)","deg)"),Khe=g1(jhe,", ",")",")"),Xhe=1e-12;function v0(e){return((e=Math.exp(e))+1/e)/2}function Yhe(e){return((e=Math.exp(e))-1/e)/2}function Zhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Jhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],x=v-d,E=m-h,T=x*x+E*E,A,N;if(T<Xhe)N=Math.log(b/p)/t,A=function(J){return[d+J*x,h+J*E,p*Math.exp(t*J*N)]};else{var L=Math.sqrt(T),P=(b*b-p*p+o*T)/(2*p*r*L),M=(b*b-p*p-o*T)/(2*b*r*L),q=Math.log(Math.sqrt(P*P+1)-P),z=Math.log(Math.sqrt(M*M+1)-M);N=(z-q)/t,A=function(J){var re=J*N,te=v0(q),j=p/(r*L)*(te*Zhe(t*re+q)-Yhe(q));return[d+j*x,h+j*E,p*te/v0(t*re+q)]}}return A.duration=N*1e3*t/Math.SQRT2,A}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 zs=0,Tl=0,Sl=0,v1=1e3,cu,El,uu=0,Do=0,Bu=0,aa=typeof performance=="object"&&performance.now?performance:Date,m1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Qh(){return Do||(m1(Qhe),Do=aa.now()+Bu)}function Qhe(){Do=0}function fu(){this._call=this._time=this._next=null}fu.prototype=ep.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Qh():+r)+(t==null?0:+t),!this._next&&El!==this&&(El?El._next=this:cu=this,El=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function ep(e,t,r){var o=new fu;return o.restart(e,t,r),o}function epe(){Qh(),++zs;for(var e=cu,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function m0(){Do=(uu=aa.now())+Bu,zs=Tl=0;try{epe()}finally{zs=0,npe(),Do=0}}function tpe(){var e=aa.now(),t=e-uu;t>v1&&(Bu-=t,uu=e)}function npe(){for(var e,t=cu,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:cu=r);El=e,Yd(o)}function Yd(e){if(!zs){Tl&&(Tl=clearTimeout(Tl));var t=e-Do;t>24?(e<1/0&&(Tl=setTimeout(m0,e-aa.now()-Bu)),Sl&&(Sl=clearInterval(Sl))):(Sl||(uu=aa.now(),Sl=setInterval(tpe,v1)),zs=1,m1(m0))}}function y0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var rpe=wa("start","end","cancel","interrupt"),ipe=[],y1=0,b0=1,Zd=2,$c=3,w0=4,Jd=5,Pc=6;function Wu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;ope(e,r,{name:t,index:o,group:s,on:rpe,tween:ipe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:y1})}function tp(e,t){var r=Tr(e,t);if(r.state>y1)throw new Error("too late; already scheduled");return r}function Vr(e,t){var r=Tr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Tr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ope(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=ep(c,0,r.time);function c(p){r.state=b0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==b0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===$c)return y0(f);x.state===w0?(x.state=Pc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Pc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(y0(function(){r.state===$c&&(r.state=w0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Pc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Oc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Pc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function spe(e){return this.each(function(){Oc(this,e)})}function lpe(e,t){var r,o;return function(){var s=Vr(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 ape(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Vr(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 cpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Tr(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?lpe:ape)(r,e,t))}function np(e,t,r){var o=e._id;return e.each(function(){var s=Vr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Tr(s,o).value[t]}}function b1(e,t){var r;return(typeof t=="number"?qi:t instanceof la?p0:(r=la(t))?(t=r,p0):Uhe)(e,t)}function upe(e){return function(){this.removeAttribute(e)}}function fpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dpe(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 hpe(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 ppe(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 gpe(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 vpe(e,t){var r=qu(e),o=r==="transform"?Khe:b1;return this.attrTween(e,typeof t=="function"?(r.local?gpe:ppe)(r,o,np(this,"attr."+e,t)):t==null?(r.local?fpe:upe)(r):(r.local?hpe:dpe)(r,o,t))}function mpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ype(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function bpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ype(e,c)),r}return s._value=t,s}function wpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&mpe(e,c)),r}return s._value=t,s}function xpe(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=qu(e);return this.tween(r,(o.local?bpe:wpe)(o,t))}function _pe(e,t){return function(){tp(this,e).delay=+t.apply(this,arguments)}}function Spe(e,t){return t=+t,function(){tp(this,e).delay=t}}function kpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_pe:Spe)(t,e)):Tr(this.node(),t).delay}function Cpe(e,t){return function(){Vr(this,e).duration=+t.apply(this,arguments)}}function Tpe(e,t){return t=+t,function(){Vr(this,e).duration=t}}function Epe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Cpe:Tpe)(t,e)):Tr(this.node(),t).duration}function Lpe(e,t){if(typeof t!="function")throw new Error;return function(){Vr(this,e).ease=t}}function Ape(e){var t=this._id;return arguments.length?this.each(Lpe(t,e)):Tr(this.node(),t).ease}function Mpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Vr(this,e).ease=r}}function Npe(e){if(typeof e!="function")throw new Error;return this.each(Mpe(this._id,e))}function $pe(e){typeof e!="function"&&(e=Jw(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 di(o,this._parents,this._name,this._id)}function Ppe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new di(f,this._parents,this._name,this._id)}function Ope(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 Rpe(e,t,r){var o,s,c=Ope(t)?tp:Vr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Dpe(e,t){var r=this._id;return arguments.length<2?Tr(this.node(),r).on.on(e):this.each(Rpe(r,e,t))}function zpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ipe(){return this.on("end.remove",zpe(this._id))}function Fpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Wu(p[b],t,r,b,p,Tr(v,r)));return new di(c,this._parents,t,r)}function Hpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),x,E=Tr(v,r),T=0,A=b.length;T<A;++T)(x=b[T])&&Wu(x,t,r,T,b,E);c.push(b),f.push(v)}return new di(c,f,t,r)}var qpe=ba.prototype.constructor;function Bpe(){return new qpe(this._groups,this._parents)}function Wpe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function w1(e){return function(){this.style.removeProperty(e)}}function Upe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Vpe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function jpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Vr(this,e),p=h.on,v=h.value[c]==null?d||(d=w1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Gpe(e,t,r){var o=(e+="")=="transform"?Ghe:b1;return t==null?this.styleTween(e,Wpe(e,o)).on("end.style."+e,w1(e)):typeof t=="function"?this.styleTween(e,Vpe(e,o,np(this,"style."+e,t))).each(jpe(this._id,e)):this.styleTween(e,Upe(e,o,t),r).on("end.style."+e,null)}function Kpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Xpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Kpe(e,f,r)),o}return c._value=t,c}function Ype(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,Xpe(e,t,r??""))}function Zpe(e){return function(){this.textContent=e}}function Jpe(e){return function(){var t=e(this);this.textContent=t??""}}function Qpe(e){return this.tween("text",typeof e=="function"?Jpe(np(this,"text",e)):Zpe(e==null?"":e+""))}function ege(e){return function(t){this.textContent=e.call(this,t)}}function tge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ege(s)),t}return o._value=e,o}function nge(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,tge(e))}function rge(){for(var e=this._name,t=this._id,r=x1(),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=Tr(h,t);Wu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new di(o,this._parents,e,r)}function ige(){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=Vr(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 oge=0;function di(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function x1(){return++oge}var ti=ba.prototype;di.prototype={constructor:di,select:Fpe,selectAll:Hpe,selectChild:ti.selectChild,selectChildren:ti.selectChildren,filter:$pe,merge:Ppe,selection:Bpe,transition:rge,call:ti.call,nodes:ti.nodes,node:ti.node,size:ti.size,empty:ti.empty,each:ti.each,on:Dpe,attr:vpe,attrTween:xpe,style:Gpe,styleTween:Ype,text:Qpe,textTween:nge,remove:Ipe,tween:cpe,delay:kpe,duration:Epe,ease:Ape,easeVarying:Npe,end:ige,[Symbol.iterator]:ti[Symbol.iterator]};function sge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lge={time:null,delay:0,duration:250,ease:sge};function age(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 cge(e){var t,r;e instanceof di?(t=e._id,e=e._name):(t=x1(),(r=lge).time=Qh(),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])&&Wu(h,e,t,p,f,r||age(h,t));return new di(o,this._parents,e,t)}ba.prototype.interrupt=spe;ba.prototype.transition=cge;const bc=e=>()=>e;function uge(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 ii(e,t,r){this.k=e,this.x=t,this.y=r}ii.prototype={constructor:ii,scale:function(e){return e===1?this:new ii(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ii(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 rp=new ii(1,0,0);ii.prototype;function cd(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function fge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function dge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function x0(){return this.__zoom||rp}function hge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pge(){return navigator.maxTouchPoints||"ontouchstart"in this}function gge(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 vge(){var e=fge,t=dge,r=gge,o=hge,s=pge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Jhe,p=wa("start","zoom","end"),v,m,b,x=500,E=150,T=0,A=10;function N(F){F.property("__zoom",x0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",te).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",ne).on("touchmove.zoom",K).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(F,k,B,W){var ie=F.selection?F.selection():F;ie.property("__zoom",x0),F!==ie?q(F,k,B,W):ie.interrupt().each(function(){z(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},N.scaleBy=function(F,k,B,W){N.scaleTo(F,function(){var ie=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return ie*ye},B,W)},N.scaleTo=function(F,k,B,W){N.transform(F,function(){var ie=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?M(ie):typeof B=="function"?B.apply(this,arguments):B,We=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(L(ye,je),Ne,We),ie,f)},B,W)},N.translateBy=function(F,k,B,W){N.transform(F,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,W)},N.translateTo=function(F,k,B,W,ie){N.transform(F,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=W==null?M(ye):typeof W=="function"?W.apply(this,arguments):W;return r(rp.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},W,ie)};function L(F,k){return k=Math.max(c[0],Math.min(c[1],k)),k===F.k?F:new ii(k,F.x,F.y)}function P(F,k,B){var W=k[0]-B[0]*F.k,ie=k[1]-B[1]*F.k;return W===F.x&&ie===F.y?F:new ii(F.k,W,ie)}function M(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function q(F,k,B,W){F.on("start.zoom",function(){z(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(W).end()}).tween("zoom",function(){var ie=this,ye=arguments,Ne=z(ie,ye).event(W),We=t.apply(ie,ye),je=B==null?M(We):typeof B=="function"?B.apply(ie,ye):B,it=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),rt=ie.__zoom,Je=typeof k=="function"?k.apply(ie,ye):k,Le=h(rt.invert(je).concat(it/rt.k),Je.invert(je).concat(it/Je.k));return function(X){if(X===1)X=Je;else{var ae=Le(X),de=it/ae[2];X=new ii(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,X)}})}function z(F,k,B){return!B&&F.__zooming||new J(F,k)}function J(F,k){this.that=F,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(F,k),this.taps=0}J.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,k){return this.mouse&&F!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&F!=="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(F){var k=Dn(this.that).datum();p.call(F,this.that,new uge(F,{sourceEvent:this.sourceEvent,target:N,type:F,transform:this.that.__zoom,dispatch:p}),k)}};function re(F,...k){if(!e.apply(this,arguments))return;var B=z(this,k).event(F),W=this.__zoom,ie=Math.max(c[0],Math.min(c[1],W.k*Math.pow(2,o.apply(this,arguments)))),ye=ri(F);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=W.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(W.k===ie)return;B.mouse=[ye,W.invert(ye)],Oc(this),B.start()}kl(F),B.wheel=setTimeout(Ne,E),B.zoom("mouse",r(P(L(W,ie),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function te(F,...k){if(b||!e.apply(this,arguments))return;var B=F.currentTarget,W=z(this,k,!0).event(F),ie=Dn(F.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ri(F,B),Ne=F.clientX,We=F.clientY;a1(F.view),cd(F),W.mouse=[ye,this.__zoom.invert(ye)],Oc(this),W.start();function je(rt){if(kl(rt),!W.moved){var Je=rt.clientX-Ne,Le=rt.clientY-We;W.moved=Je*Je+Le*Le>T}W.event(rt).zoom("mouse",r(P(W.that.__zoom,W.mouse[0]=ri(rt,B),W.mouse[1]),W.extent,f))}function it(rt){ie.on("mousemove.zoom mouseup.zoom",null),c1(rt.view,W.moved),kl(rt),W.event(rt).end()}}function j(F,...k){if(e.apply(this,arguments)){var B=this.__zoom,W=ri(F.changedTouches?F.changedTouches[0]:F,this),ie=B.invert(W),ye=B.k*(F.shiftKey?.5:2),Ne=r(P(L(B,ye),W,ie),t.apply(this,k),f);kl(F),d>0?Dn(this).transition().duration(d).call(q,Ne,W,F):Dn(this).call(N.transform,Ne,W,F)}}function ne(F,...k){if(e.apply(this,arguments)){var B=F.touches,W=B.length,ie=z(this,k,F.changedTouches.length===W).event(F),ye,Ne,We,je;for(cd(F),Ne=0;Ne<W;++Ne)We=B[Ne],je=ri(We,this),je=[je,this.__zoom.invert(je),We.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==je[2]&&(ie.touch1=je,ie.taps=0):(ie.touch0=je,ye=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(ie.taps<2&&(m=je[0],v=setTimeout(function(){v=null},x)),Oc(this),ie.start())}}function K(F,...k){if(this.__zooming){var B=z(this,k).event(F),W=F.changedTouches,ie=W.length,ye,Ne,We,je;for(kl(F),ye=0;ye<ie;++ye)Ne=W[ye],We=ri(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],rt=B.touch0[1],Je=B.touch1[0],Le=B.touch1[1],X=(X=Je[0]-it[0])*X+(X=Je[1]-it[1])*X,ae=(ae=Le[0]-rt[0])*ae+(ae=Le[1]-rt[1])*ae;Ne=L(Ne,Math.sqrt(X/ae)),We=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(rt[0]+Le[0])/2,(rt[1]+Le[1])/2]}else if(B.touch0)We=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,We,je),B.extent,f))}}function V(F,...k){if(this.__zooming){var B=z(this,k).event(F),W=F.changedTouches,ie=W.length,ye,Ne;for(cd(F),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ye=0;ye<ie;++ye)Ne=W[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ri(Ne,this),Math.hypot(m[0]-Ne[0],m[1]-Ne[1])<A)){var We=Dn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return N.wheelDelta=function(F){return arguments.length?(o=typeof F=="function"?F:bc(+F),N):o},N.filter=function(F){return arguments.length?(e=typeof F=="function"?F:bc(!!F),N):e},N.touchable=function(F){return arguments.length?(s=typeof F=="function"?F:bc(!!F),N):s},N.extent=function(F){return arguments.length?(t=typeof F=="function"?F:bc([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),N):t},N.scaleExtent=function(F){return arguments.length?(c[0]=+F[0],c[1]=+F[1],N):[c[0],c[1]]},N.translateExtent=function(F){return arguments.length?(f[0][0]=+F[0][0],f[1][0]=+F[1][0],f[0][1]=+F[0][1],f[1][1]=+F[1][1],N):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},N.constrain=function(F){return arguments.length?(r=F,N):r},N.duration=function(F){return arguments.length?(d=+F,N):d},N.interpolate=function(F){return arguments.length?(h=F,N):h},N.on=function(){var F=p.on.apply(p,arguments);return F===p?N:F},N.clickDistance=function(F){return arguments.length?(T=(F=+F)*F,N):Math.sqrt(T)},N.tapDistance=function(F){return arguments.length?(A=+F,N):A},N}function mge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return _1(this.cover(t,r),t,r,e)}function _1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,x,E,T,A,N,L;if(!c)return e._root=f,e;for(;c.length;)if((T=t>=(m=(d+p)/2))?d=m:p=m,(A=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[N=A<<1|T]))return s[N]=f,e;if(x=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===x&&r===E)return f.next=c,s?s[N]=f:e._root=f,e;do s=s?s[N]=new Array(4):e._root=new Array(4),(T=t>=(m=(d+p)/2))?d=m:p=m,(A=r>=(b=(h+v)/2))?h=b:v=b;while((N=A<<1|T)===(L=(E>=b)<<1|x>=m));return s[L]=c,s[N]=f,e}function yge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)_1(this,f[r],d[r],e[r]);return this}function bge(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 wge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xge(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 kn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function _ge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,E,T;for(x&&b.push(new kn(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(x=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(x.length){var A=(f+h)/2,N=(d+p)/2;b.push(new kn(x[3],A,N,h,p),new kn(x[2],f,N,A,p),new kn(x[1],A,d,h,N),new kn(x[0],f,d,A,N)),(T=(t>=N)<<1|e>=A)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-T],b[b.length-1-T]=E)}else{var L=e-+this._x.call(null,x.data),P=t-+this._y.call(null,x.data),M=L*L+P*P;if(M<r){var q=Math.sqrt(r=M);s=e-q,c=t-q,v=e+q,m=t+q,o=x.data}}return o}function Sge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,x,E,T,A,N;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(T=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[A=T<<1|E]))return this;if(!r.length)break;(t[A+1&3]||t[A+2&3]||t[A+3&3])&&(o=t,N=A)}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[A]=c:delete t[A],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=c,this)}function kge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Cge(){return this._root}function Tge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ege(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new kn(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 kn(s,p,v,d,h)),(s=o[2])&&t.push(new kn(s,c,v,p,h)),(s=o[1])&&t.push(new kn(s,p,f,d,v)),(s=o[0])&&t.push(new kn(s,c,f,p,v))}return this}function Lge(e){var t=[],r=[],o;for(this._root&&t.push(new kn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new kn(c,f,d,v,m)),(c=s[1])&&t.push(new kn(c,v,d,h,m)),(c=s[2])&&t.push(new kn(c,f,m,v,p)),(c=s[3])&&t.push(new kn(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Age(e){return e[0]}function Mge(e){return arguments.length?(this._x=e,this):this._x}function Nge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function ip(e,t,r){var o=new op(t??Age,r??Nge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function op(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function _0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var En=ip.prototype=op.prototype;En.copy=function(){var e=new op(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=_0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=_0(o));return e};En.add=mge;En.addAll=yge;En.cover=bge;En.data=wge;En.extent=xge;En.find=_ge;En.remove=Sge;En.removeAll=kge;En.root=Cge;En.size=Tge;En.visit=Ege;En.visitAfter=Lge;En.x=Mge;En.y=$ge;function Tn(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Pge(e){return e.x+e.vx}function Oge(e){return e.y+e.vy}function Rge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,E,T,A,N=0;N<c;++N)for(m=ip(t,Pge,Oge).visitAfter(d),p=0;p<v;++p)b=t[p],T=r[b.index],A=T*T,x=b.x+b.vx,E=b.y+b.vy,m.visit(L);function L(P,M,q,z,J){var re=P.data,te=P.r,j=T+te;if(re){if(re.index>b.index){var ne=x-re.x-re.vx,K=E-re.y-re.vy,V=ne*ne+K*K;V<j*j&&(ne===0&&(ne=Vi(o),V+=ne*ne),K===0&&(K=Vi(o),V+=K*K),V=(j-(V=Math.sqrt(V)))/V*s,b.vx+=(ne*=V)*(j=(te*=te)/(A+te)),b.vy+=(K*=V)*j,re.vx-=ne*(j=1-j),re.vy-=K*j)}return}return M>x+j||z<x-j||q>E+j||J<E-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function Dge(e){return e.index}function S0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function zge(e){var t=Dge,r=m,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(A){return 1/Math.min(d[A.source.index],d[A.target.index])}function b(A){for(var N=0,L=e.length;N<v;++N)for(var P=0,M,q,z,J,re,te,j;P<L;++P)M=e[P],q=M.source,z=M.target,J=z.x+z.vx-q.x-q.vx||Vi(p),re=z.y+z.vy-q.y-q.vy||Vi(p),te=Math.sqrt(J*J+re*re),te=(te-c[P])/te*A*o[P],J*=te,re*=te,z.vx-=J*(j=h[P]),z.vy-=re*j,q.vx+=J*(j=1-j),q.vy+=re*j}function x(){if(f){var A,N=f.length,L=e.length,P=new Map(f.map((q,z)=>[t(q,z,f),q])),M;for(A=0,d=new Array(N);A<L;++A)M=e[A],M.index=A,typeof M.source!="object"&&(M.source=S0(P,M.source)),typeof M.target!="object"&&(M.target=S0(P,M.target)),d[M.source.index]=(d[M.source.index]||0)+1,d[M.target.index]=(d[M.target.index]||0)+1;for(A=0,h=new Array(L);A<L;++A)M=e[A],h[A]=d[M.source.index]/(d[M.source.index]+d[M.target.index]);o=new Array(L),E(),c=new Array(L),T()}}function E(){if(f)for(var A=0,N=e.length;A<N;++A)o[A]=+r(e[A],A,e)}function T(){if(f)for(var A=0,N=e.length;A<N;++A)c[A]=+s(e[A],A,e)}return b.initialize=function(A,N){f=A,p=N,x()},b.links=function(A){return arguments.length?(e=A,x(),b):e},b.id=function(A){return arguments.length?(t=A,b):t},b.iterations=function(A){return arguments.length?(v=+A,b):v},b.strength=function(A){return arguments.length?(r=typeof A=="function"?A:Tn(+A),E(),b):r},b.distance=function(A){return arguments.length?(s=typeof A=="function"?A:Tn(+A),T(),b):s},b}const Ige=1664525,Fge=1013904223,k0=4294967296;function Hge(){let e=1;return()=>(e=(Ige*e+Fge)%k0)/k0}function qge(e){return e.x}function Bge(e){return e.y}var Wge=10,Uge=Math.PI*(3-Math.sqrt(5));function Vge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=ep(m),p=wa("tick","end"),v=Hge();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(T){var A,N=e.length,L;T===void 0&&(T=1);for(var P=0;P<T;++P)for(r+=(c-r)*s,d.forEach(function(M){M(r)}),A=0;A<N;++A)L=e[A],L.fx==null?L.x+=L.vx*=f:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=f:(L.y=L.fy,L.vy=0);return t}function x(){for(var T=0,A=e.length,N;T<A;++T){if(N=e[T],N.index=T,N.fx!=null&&(N.x=N.fx),N.fy!=null&&(N.y=N.fy),isNaN(N.x)||isNaN(N.y)){var L=Wge*Math.sqrt(.5+T),P=T*Uge;N.x=L*Math.cos(P),N.y=L*Math.sin(P)}(isNaN(N.vx)||isNaN(N.vy))&&(N.vx=N.vy=0)}}function E(T){return T.initialize&&T.initialize(e,v),T}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(T){return arguments.length?(e=T,x(),d.forEach(E),t):e},alpha:function(T){return arguments.length?(r=+T,t):r},alphaMin:function(T){return arguments.length?(o=+T,t):o},alphaDecay:function(T){return arguments.length?(s=+T,t):+s},alphaTarget:function(T){return arguments.length?(c=+T,t):c},velocityDecay:function(T){return arguments.length?(f=1-T,t):1-f},randomSource:function(T){return arguments.length?(v=T,d.forEach(E),t):v},force:function(T,A){return arguments.length>1?(A==null?d.delete(T):d.set(T,E(A)),t):d.get(T)},find:function(T,A,N){var L=0,P=e.length,M,q,z,J,re;for(N==null?N=1/0:N*=N,L=0;L<P;++L)J=e[L],M=T-J.x,q=A-J.y,z=M*M+q*q,z<N&&(re=J,N=z);return re},on:function(T,A){return arguments.length>1?(p.on(T,A),t):p.on(T)}}}function jge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var E,T=e.length,A=ip(e,qge,Bge).visitAfter(m);for(o=x,E=0;E<T;++E)t=e[E],A.visit(b)}function v(){if(e){var x,E=e.length,T;for(c=new Array(E),x=0;x<E;++x)T=e[x],c[T.index]=+s(T,x,e)}}function m(x){var E=0,T,A,N=0,L,P,M;if(x.length){for(L=P=M=0;M<4;++M)(T=x[M])&&(A=Math.abs(T.value))&&(E+=T.value,N+=A,L+=A*T.x,P+=A*T.y);x.x=L/N,x.y=P/N}else{T=x,T.x=T.data.x,T.y=T.data.y;do E+=c[T.data.index];while(T=T.next)}x.value=E}function b(x,E,T,A){if(!x.value)return!0;var N=x.x-t.x,L=x.y-t.y,P=A-E,M=N*N+L*L;if(P*P/h<M)return M<d&&(N===0&&(N=Vi(r),M+=N*N),L===0&&(L=Vi(r),M+=L*L),M<f&&(M=Math.sqrt(f*M)),t.vx+=N*x.value*o/M,t.vy+=L*x.value*o/M),!0;if(x.length||M>=d)return;(x.data!==t||x.next)&&(N===0&&(N=Vi(r),M+=N*N),L===0&&(L=Vi(r),M+=L*L),M<f&&(M=Math.sqrt(f*M)));do x.data!==t&&(P=c[x.data.index]*o/M,t.vx+=N*P,t.vy+=L*P);while(x=x.next)}return p.initialize=function(x,E){e=x,r=E,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Gge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Kge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Xge=Object.defineProperty,Yge=(e,t,r)=>t in e?Xge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t,r)=>Yge(e,typeof t!="symbol"?t+"":t,r);function Zge(){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 C0(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 ji(...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]=ji.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:C0(t[o])&&C0(r[o])?t[o]=ji(t[o],r[o]):t[o]=r[o])}),t},{})}const S1={mergeArrays:!0};ji.options=S1;ji.withOptions=(e,...t)=>{ji.options={mergeArrays:!0,...e};const r=ji(...t);return ji.options=S1,r};function Jge(){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 Qge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function k1(e){e.preventDefault(),e.stopPropagation()}function C1(e){return typeof e=="number"}function no(e,t){return C1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function eve(e){return`${e.source.id}-${e.target.id}`}function T1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function tve(e){return`url(#${T1(e.color)})`}function nve(e){return{size:e,padding:(t,r)=>no(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const E1={Arrow:e=>nve(e)},rve=(e,t,r)=>[t/2,r/2],L1=(e,t,r)=>[T0(0,t),T0(0,r)];function T0(e,t){return Math.random()*(t-e)+e}function ive(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?L1(r,o,s):[c,f]}}const Qd={Centered:rve,Randomized:L1,Stable:ive};function ove(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qge(),nodeRadius:16,marker:E1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Zge(),forces:Jge()},zoom:{initial:1,min:.1,max:2}}}function sve(e={}){return ji.withOptions({mergeArrays:!1},ove(),e)}function lve({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=>k1(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,rp.translate(c,f).scale(d)),p.append("g")}function ave({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function cve({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=The().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),Dn(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),Dn(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 uve({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}:fve({nodes:d,links:c},r)}function fve(e,t){const r=[...dve(e,t),...hve(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function dve(e,t){return A1(e,t,(r,o)=>r.target.id===o.id)}function hve(e,t){return A1(e,t,(r,o)=>r.source.id===o.id)}function A1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function sp({source:e,target:t}){const r=new _n(eh(e),th(e)),o=new _n(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function M1({center:e,node:t}){const r=new _n(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new _n(0,1))),{n:r,c:o}}function N1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=sp({config:e,source:t,target:r}),f=o.add(c.multiply(no(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function pve(e){const{start:t,end:r}=N1(e);return`M${t.x},${t.y}
|
|
49
|
-
L${r.x},${r.y}`}function gve(e){const{start:t,end:r}=N1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function vve({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=sp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(no(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(no(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
50
|
-
A${m},${m},0,0,1,${v.x},${v.y}`}function mve({center:e,config:t,node:r}){const{n:o,c:s}=M1({center:e,config:t,node:r}),c=no(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 yve({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=sp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function bve({center:e,config:t,node:r}){const{n:o,c:s}=M1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*no(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ts={line:{labelTransform:gve,path:pve},arc:{labelTransform:yve,path:vve},reflexive:{labelTransform:bve,path:mve}};function wve(e){return e.append("g").classed("links",!0).selectAll("path")}function xve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>eve(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",x=>tve(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function _ve(e){Sve(e),kve(e)}function Sve({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?Ts.reflexive.path({config:t,node:s.source,center:e}):$1(r,s.source,s.target)?Ts.arc.path({config:t,source:s.source,target:s.target}):Ts.line.path({config:t,source:s.source,target:s.target}))}function kve({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?Ts.reflexive.labelTransform({config:e,node:s.source,center:t}):$1(r,s.source,s.target)?Ts.arc.labelTransform({config:e,source:s.source,target:s.target}):Ts.line.labelTransform({config:e,source:s.source,target:s.target}))}function $1(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 Cve(e){return e.append("defs").selectAll("marker")}function Tve({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Eve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>T1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Lve(e.marker.path)),s})}function Eve(e){return[...new Set(e.links.map(t=>t.color))]}function Lve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ave(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Mve({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,m,b;const x=h.append("g");t!==void 0&&x.call(t);const E=x.append("circle").classed("node",!0).attr("r",A=>no(e,A)).on("contextmenu",(A,N)=>{k1(A),o(N)}).on("pointerdown",(A,N)=>$ve(A,N,s??o)).style("fill",A=>A.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const T=x.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",A=>A.label?A.label.color:null).style("font-size",A=>A.label?A.label.fontSize:null).style("stroke","none").text(A=>A.label?A.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,T),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Nve=500;function $ve(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>Nve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Pve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Ove({center:e,config:t,graph:r,onTick:o}){var s,c;const f=Vge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",Gge(()=>e().x).strength(m)).force("y",Kge(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",jge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Rge().radius(m=>p.radiusMultiplier*no(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",zge(r.links).id(m=>m.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 Rve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=vge().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 Dve{constructor(t,r,o){if(Dt(this,"nodeTypes"),Dt(this,"_nodeTypeFilter"),Dt(this,"_includeUnlinked",!0),Dt(this,"_linkFilter",()=>!0),Dt(this,"_showLinkLabels",!0),Dt(this,"_showNodeLabels",!0),Dt(this,"filteredGraph"),Dt(this,"width",0),Dt(this,"height",0),Dt(this,"simulation"),Dt(this,"canvas"),Dt(this,"linkSelection"),Dt(this,"nodeSelection"),Dt(this,"markerSelection"),Dt(this,"zoom"),Dt(this,"drag"),Dt(this,"xOffset",0),Dt(this,"yOffset",0),Dt(this,"scale"),Dt(this,"focusedNode"),Dt(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(Ife(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return _n.of([this.width,this.height]).divide(2).subtract(_n.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(C1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Tve({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=xve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Mve({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=Ove({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=Rve({config:this.config,canvasContainer:()=>Dn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=lve({applyZoom:this.scale!==1,container:Dn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=wve(this.canvas),this.nodeSelection=Ave(this.canvas),this.markerSelection=Cve(this.canvas),this.drag=cve({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(){Pve(this.nodeSelection),_ve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Dn(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(){ave({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=uve({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function E0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function zve(e){return{...e}}function P1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Ive={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Fve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Hve=["id","checked","onChange"],qve=["for"],Bve=Y("div",{"flex-auto":""},null,-1),Wve=ft({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=TS(t),o=Be(),s=Be(!1),c=Be(),f=Be();Th(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Hs(()=>{p()}),_u(()=>{var m;(m=f.value)==null||m.shutdown()}),Ht(r,p);function d(m,b){var x;(x=f.value)==null||x.filterNodesByType(b,m)}function h(m){c.value=m,s.value=!0}function p(){var m;(m=f.value)==null||m.shutdown(),!(!r.value||!o.value)&&(f.value=new Dve(o.value,r.value,sve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:b,newWidth:x})=>b===0&&x===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:E1.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}function v(m){if(Ir)return;const b=A=>A.button===0;let x=0,E=0,T=0;m.on("pointerdown",(A,N)=>{N.type!=="external"&&(!N.x||!N.y||!b(A)||(x=N.x,E=N.y,T=Date.now()))}).on("pointerup",(A,N)=>{if(N.type==="external"||!N.x||!N.y||!b(A)||Date.now()-T>500)return;const L=N.x-x,P=N.y-E;L**2+P**2<100&&h(N.id)})}return(m,b)=>{var N;const x=gi,E=zfe,T=Gw,A=Wr("tooltip");return oe(),me("div",Ive,[Y("div",null,[Y("div",Fve,[(oe(!0),me(ut,null,ci((N=I(f))==null?void 0:N.nodeTypes.sort(),L=>{var P;return oe(),me("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${L}`,type:"checkbox",checked:(P=I(f))==null?void 0:P.nodeTypeFilter.includes(L),onChange:M=>d(L,M.target.checked)},null,40,Hve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${L}`,"border-b-2":"",style:Gt({"border-color":`var(--color-node-${L})`})},qe(L)+" Modules",13,qve)])}),128)),Bve,Y("div",null,[wt(Pe(x,{icon:"i-carbon-reset",onClick:p},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(T,{modelValue:I(s),"onUpdate:modelValue":b[1]||(b[1]=L=>Pt(s)?s.value=L:null),direction:"right"},{default:st(()=>[I(c)?(oe(),ot(Oy,{key:0},{default:st(()=>[Pe(E,{id:I(c),"project-name":m.projectName,onClose:b[0]||(b[0]=L=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ze("",!0)]),_:1},8,["modelValue"])])}}}),Uve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Vve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},jve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Gve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},O1=ft({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Wr("tooltip");return t.state==="pass"?(oe(),me("div",Uve)):t.failedSnapshot?wt((oe(),me("div",Vve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",jve)):t.mode==="todo"?wt((oe(),me("div",Gve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?wt((oe(),me("div",Kve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Xve))}}});function Yve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Zve(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 Jve(e){const t=e.map(o=>Zve(o)),r=Yve(t);return t.map(({raw:o,id:s})=>P1({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 Qve(e,t){return P1({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 eme(e,t){if(!e)return E0({});const r=Jve(e.externalized),o=e.inlined.map(d=>Qve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return zve({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return E0({nodes:s,links:f})}const tme={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},nme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rme={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ime={class:"flex text-lg"},ome={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},sme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),lme={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},ame={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},cme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),ume=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),fme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},dme=["flex-1"],hme=ft({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=Ee(()=>{const x=Yt.value;if(!(!x||!x.filepath))return{filepath:x.filepath,projectName:x.file.projectName||""}}),d=Ee(()=>Yt.value&&Hh(Yt.value));function h(){var E;const x=(E=Yt.value)==null?void 0:E.filepath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}function p(x){x==="graph"&&(o.value=!0),Un.value=x}const v=Ee(()=>{var x;return((x=Vw.value)==null?void 0:x.reduce((E,{size:T})=>E+T,0))??0});function m(x){r.value=x}async function b(){var x;if(!(s.value||((x=f.value)==null?void 0:x.filepath)===c.value)){s.value=!0,await ln();try{const E=f.value;if(!E)return;(!c.value||E.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=eme(await yt.rpc.getModuleGraph(E.projectName,E.filepath,!!Ro),E.filepath),c.value=E.filepath),p("graph")}finally{await new Promise(E=>setTimeout(E,100)),s.value=!1}}}return yw(()=>[f.value,Un.value],([,x])=>{x==="graph"&&b()},{debounce:100,immediate:!0}),(x,E)=>{var z,J,re,te,j,ne;const T=O1,A=gi,N=Wve,L=Tfe,P=mfe,M=ufe,q=Wr("tooltip");return I(Yt)?(oe(),me("div",tme,[Y("div",null,[Y("div",nme,[Pe(T,{state:(z=I(Yt).result)==null?void 0:z.state,mode:I(Yt).mode,"failed-snapshot":I(d)},null,8,["state","mode","failed-snapshot"]),(J=I(Yt))!=null&&J.file.projectName?(oe(),me("div",{key:0,"font-light":"","op-50":"","text-sm":"",style:Gt({color:I(zw)((re=I(Yt))==null?void 0:re.file.projectName)})}," ["+qe(((te=I(Yt))==null?void 0:te.file.projectName)||"")+"] ",5)):Ze("",!0),Y("div",rme,qe((j=I(Yt))==null?void 0:j.name),1),Y("div",ime,[I(Ir)?Ze("",!0):wt((oe(),ot(A,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((ne=I(Yt))!=null&&ne.filepath),onClick:h},null,8,["disabled"])),[[q,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",ome,[Y("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":I(Un)==null}]),"data-testid":"btn-report",onClick:E[0]||(E[0]=K=>p(null))},[sme,pt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":I(Un)==="graph"}]),onClick:E[1]||(E[1]=K=>p("graph"))},[I(s)?(oe(),me("span",lme)):(oe(),me("span",ame)),pt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":I(Un)==="editor"}]),onClick:E[2]||(E[2]=K=>p("editor"))},[cme,pt(" "+qe(I(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":I(Un)==="console",op20:I(Un)!=="console"&&I(v)===0}]),onClick:E[3]||(E[3]=K=>p("console"))},[ume,pt(" Console ("+qe(I(v))+") ",1)],2)])]),Y("div",fme,[I(o)?(oe(),me("div",{key:0,"flex-1":I(Un)==="graph"&&""},[wt(Pe(N,{graph:I(t),"data-testid":"graph","project-name":I(Yt).file.projectName||""},null,8,["graph","project-name"]),[[Ui,I(Un)==="graph"&&!I(s)]])],8,dme)):Ze("",!0),I(Un)==="editor"?(oe(),ot(L,{key:I(Yt).filepath,file:I(Yt),"data-testid":"editor",onDraft:m},null,8,["file"])):I(Un)==="console"?(oe(),ot(P,{key:2,file:I(Yt),"data-testid":"console"},null,8,["file"])):I(Un)?Ze("",!0):(oe(),ot(M,{key:3,file:I(Yt),"data-testid":"report"},null,8,["file"]))])])):Ze("",!0)}}}),pme={h:"full",flex:"~ col"},gme=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),vme={"flex-auto":"","py-1":"","bg-white":""},mme=["src"],yme=ft({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",pme,[gme,Y("div",vme,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,mme)])]))}}),bme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},wme={"font-bold":""},xme={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},_me=["font-bold"],Sme={text:"red500/70"},kme=Y("br",null,null,-1),Cme={key:1,text:"sm","mb-2":""},Tme={"font-bold":""},Eme={key:2,text:"sm","mb-2":""},Lme={"font-bold":""},Ame=Y("br",null,null,-1),Mme=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),Nme={key:3,text:"sm","font-thin":""},$me=Y("br",null,null,-1),Pme=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),Ome=ft({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ut,null,[Y("h4",bme,[Y("span",wme,[pt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ut,{key:0},[pt(":")],64)):Ze("",!0)]),pt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",xme,[(oe(!0),me(ut,null,ci(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",Sme,qe(s.line)+":"+qe(s.column),1),kme],8,_me))),128))])):Ze("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Cme,[pt(" This error originated in "),Y("span",Tme,qe(t.error.VITEST_TEST_PATH),1),pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Ze("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Eme,[pt(" The latest test that might've caused the error is "),Y("span",Lme,qe(t.error.VITEST_TEST_NAME),1),pt(". It might mean one of the following:"),Ame,Mme])):Ze("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",Nme,[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),$me,Pme])):Ze("",!0)],64)}}}),Ln=e=>(Is("data-v-0178ddee"),e=e(),Fs(),e),Rme={"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:""},Dme=Ln(()=>Y("div",{"i-carbon-document":""},null,-1)),zme=Ln(()=>Y("div",null,"Files",-1)),Ime={class:"number","data-testid":"num-files"},Fme=Ln(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),Hme=Ln(()=>Y("div",null,"Pass",-1)),qme={class:"number"},Bme=Ln(()=>Y("div",{"i-carbon-close":""},null,-1)),Wme=Ln(()=>Y("div",null," Fail ",-1)),Ume={class:"number","text-red5":""},Vme=Ln(()=>Y("div",{"i-carbon-compare":""},null,-1)),jme=Ln(()=>Y("div",null," Snapshot Fail ",-1)),Gme={class:"number","text-red5":""},Kme=Ln(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Xme=Ln(()=>Y("div",null," Errors ",-1)),Yme={class:"number","text-red5":""},Zme=Ln(()=>Y("div",{"i-carbon-timer":""},null,-1)),Jme=Ln(()=>Y("div",null,"Time",-1)),Qme={class:"number","data-testid":"run-time"},e0e={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},t0e=Ln(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),n0e={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},r0e=Ln(()=>Y("br",null,null,-1)),i0e={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},o0e=Ln(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),s0e=ft({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Ome;return oe(),me(ut,null,[Y("div",Rme,[Dme,zme,Y("div",Ime,qe(I(Ce).summary.files),1),I(Ce).summary.filesSuccess?(oe(),me(ut,{key:0},[Fme,Hme,Y("div",qme,qe(I(Ce).summary.filesSuccess),1)],64)):Ze("",!0),I(Ce).summary.filesFailed?(oe(),me(ut,{key:1},[Bme,Wme,Y("div",Ume,qe(I(Ce).summary.filesFailed),1)],64)):Ze("",!0),I(Ce).summary.filesSnapshotFailed?(oe(),me(ut,{key:2},[Vme,jme,Y("div",Gme,qe(I(Ce).summary.filesSnapshotFailed),1)],64)):Ze("",!0),I(Hi).length?(oe(),me(ut,{key:3},[Kme,Xme,Y("div",Yme,qe(I(Hi).length),1)],64)):Ze("",!0),Zme,Jme,Y("div",Qme,qe(I(Ce).summary.time),1)]),I(Hi).length?(oe(),me("div",e0e,[t0e,Y("p",n0e,[pt(" Vitest caught "+qe(I(Hi).length)+" error"+qe(I(Hi).length>1?"s":"")+" during the test run.",1),r0e,pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",i0e,[o0e,(oe(!0),me(ut,null,ci(I(Hi),(s,c)=>(oe(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):Ze("",!0)],64)}}}),l0e=Ur(s0e,[["__scopeId","data-v-0178ddee"]]),a0e={"p-2":"","text-center":"",flex:""},c0e={"text-4xl":"","min-w-2em":""},u0e={"text-md":""},f0e=ft({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",a0e,[Y("div",null,[Y("div",c0e,[dn(t.$slots,"body")]),Y("div",u0e,[dn(t.$slots,"header")])])]))}}),d0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},h0e=ft({__name:"TestsEntry",setup(e){return(t,r)=>{const o=f0e;return oe(),me("div",d0e,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:st(()=>[pt(" Pass ")]),body:st(()=>[pt(qe(I(Ce).summary.testsSuccess),1)]),_:1}),Pe(o,{class:lt({"text-red5":I(Ce).summary.testsFailed,op50:!I(Ce).summary.testsFailed}),"data-testid":"fail-entry"},{header:st(()=>[pt(" Fail ")]),body:st(()=>[pt(qe(I(Ce).summary.testsFailed),1)]),_:1},8,["class"]),I(Ce).summary.testsSkipped?(oe(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:st(()=>[pt(" Skip ")]),body:st(()=>[pt(qe(I(Ce).summary.testsSkipped),1)]),_:1})):Ze("",!0),I(Ce).summary.testsTodo?(oe(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:st(()=>[pt(" Todo ")]),body:st(()=>[pt(qe(I(Ce).summary.testsTodo),1)]),_:1})):Ze("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:st(()=>[pt(" Total ")]),body:st(()=>[pt(qe(I(Ce).summary.totalTests),1)]),_:1})])}}}),p0e={},g0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},v0e={"aria-labelledby":"tests",m:"y-4 x-2"};function m0e(e,t){const r=h0e,o=l0e;return oe(),me("div",g0e,[Y("section",v0e,[Pe(r)]),Pe(o)])}const y0e=Ur(p0e,[["render",m0e]]),b0e={},w0e={h:"full",flex:"~ col"},x0e=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),_0e={class:"scrolls","flex-auto":"","py-1":""};function S0e(e,t){const r=y0e;return oe(),me("div",w0e,[x0e,Y("div",_0e,[Pe(r)])])}const k0e=Ur(b0e,[["render",S0e]]),C0e=["open"],T0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),E0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),L0e=ft({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!0);return(r,o)=>(oe(),me("div",{open:I(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:lt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[T0e,dn(r.$slots,"summary",{open:I(t)}),E0e],2),dn(r.$slots,"default")],40,C0e))}}),A0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},M0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",A0e,[Y("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},lp=e=>(Is("data-v-fcb77f65"),e=e(),Fs(),e),N0e=["aria-label","data-current"],$0e={key:1,"w-4":""},P0e={key:2,class:"i-logos:typescript-icon","flex-shrink-0":"","mr-2":""},O0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},R0e={"text-sm":"",truncate:"","font-light":""},D0e=["text","innerHTML"],z0e={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},I0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},F0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},H0e=lp(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),q0e=lp(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),B0e=lp(()=>Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1)),W0e={key:1},U0e=ft({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Ee(()=>yt.state.idMap.get(e.taskId)),r=Ee(()=>{if(Ir)return!1;const T=t.value;return T&&Hh(T)});function o(){e.expandable&&(e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId))}async function s(T){var A;(A=e.onItemClick)==null||A.call(e,T),ps.value&&(nu.value=!0,await ln()),await Xh([T.file])}function c(T){return yt.rpc.updateSnapshot(T.file)}const f=Ee(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,A)=>`${e.taskId}-${A}`)),d=Ee(()=>{const T=f.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),h=Ee(()=>Rw(e.name)),p=Ee(()=>{const T=jce.value,A=h.value;return T?A.replace(T,N=>`<span class="highlight">${N}</span>`):A}),v=Ee(()=>e.type!=="file"&&e.disableTaskLocation),m=Ee(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=Ee(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var A;const T=t.value;e.type==="file"?(A=e.onItemClick)==null||A.call(e,T):kfe(T)}const E=Ee(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,A)=>{const N=O1,L=M0e,P=gi,M=Wr("tooltip");return I(t)?(oe(),me("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:Gt(I(d)),"aria-label":T.name,"data-current":T.current,onClick:A[2]||(A[2]=q=>o())},[T.indent>0?(oe(!0),me(ut,{key:0},ci(I(f),q=>(oe(),me("div",{key:q,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ze("",!0),T.type==="file"||T.type==="suite"?(oe(),me("div",$0e,[Y("div",{class:lt(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ze("",!0),Pe(N,{state:T.state,mode:I(t).mode,"failed-snapshot":I(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),T.type==="suite"&&T.typecheck?(oe(),me("div",P0e)):Ze("",!0),Y("div",O0e,[Y("span",R0e,[T.type==="file"&&T.projectName?(oe(),me("span",{key:0,class:"rounded-full p-1 mr-1 text-xs",style:Gt({backgroundColor:T.projectNameColor,color:I(E)})},qe(T.projectName),5)):Ze("",!0),Y("span",{text:T.state==="fail"?"red-500":"",innerHTML:I(p)},null,8,D0e)]),typeof T.duration=="number"?(oe(),me("span",z0e,qe(T.duration>0?T.duration:"< 1")+"ms ",1)):Ze("",!0)]),Y("div",I0e,[!I(Ir)&&I(r)?wt((oe(),ot(L,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=Tc(q=>c(I(t)),["prevent","stop"]))},null,512)),[[M,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ze("",!0),Pe(I($b),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",I(b)])},{popper:st(()=>[I(v)?(oe(),me("div",F0e,[H0e,Y("div",null,[pt(qe(I(m))+": this feature is not available, you have disabled ",1),q0e,pt(" in your configuration file.")]),B0e])):(oe(),me("div",W0e,qe(I(m)),1))]),default:st(()=>[Pe(P,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Tc(x,["prevent","stop"])})]),_:1},8,["class"]),I(Ir)?Ze("",!0):wt((oe(),ot(P,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:T.type!=="file",onClick:A[1]||(A[1]=Tc(q=>s(I(t)),["prevent","stop"]))},null,8,["disabled"])),[[M,"Run current test",void 0,{bottom:!0}]])])],12,N0e)):Ze("",!0)}}}),V0e=Ur(U0e,[["__scopeId","data-v-fcb77f65"]]),j0e={"flex-1":"","ms-2":"","select-none":""},G0e=ft({__name:"FilterStatus",props:qc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue");return(r,o)=>(oe(),me("label",li({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]=Tc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),wt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[gC,t.value]]),Y("span",j0e,qe(r.label),1)],16))}});function K0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function nh(){nh.init||(nh.init=!0,Rc=K0e()!==-1)}var Uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const X0e=cy();Is("data-v-b329ee4c");const Y0e={class:"resize-observer",tabindex:"-1"};Fs();const Z0e=X0e((e,t,r,o,s,c)=>(oe(),ot("div",Y0e)));Uu.render=Z0e;Uu.__scopeId="data-v-b329ee4c";Uu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function J0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q0e(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 eye(e,t,r){return t&&Q0e(e.prototype,t),e}function L0(e){return tye(e)||nye(e)||rye(e)||iye()}function tye(e){if(Array.isArray(e))return rh(e)}function nye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rye(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function iye(){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 oye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function sye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(L0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(L0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function R1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!R1(e[r],t[r]))return!1;return!0}return!1}var lye=function(){function e(t,r,o){J0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return eye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=oye(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=sye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function D1(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 lye(e,o,r);e._vue_visibilityState=s}}function aye(e,t,r){var o=t.value,s=t.oldValue;if(!R1(o,s)){var c=e._vue_visibilityState;if(!o){z1(e);return}c?c.createObserver(o,r):D1(e,{value:o},r)}}function z1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var cye={beforeMount:D1,updated:aye,unmounted:z1},uye={itemsLimit:1e3},fye=/(auto|scroll)/;function I1(e,t){return e.parentNode===null?t:I1(e.parentNode,t.concat([e]))}var ud=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},dye=function(t){return ud(t,"overflow")+ud(t,"overflow-y")+ud(t,"overflow-x")},hye=function(t){return fye.test(dye(t))};function A0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=I1(e.parentNode,[]),r=0;r<t.length;r+=1)if(hye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var pye={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 gye(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var vye=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,vye)}catch{}}let mye=0;var ap={name:"RecycleScroller",components:{ResizeObserver:Uu},directives:{ObserveVisibility:cye},props:{...pye,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:gye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:mye++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,x=this.pool,E=this.itemIndexByKey;let T,A,N,L,P;if(!p)T=A=L=P=N=0;else if(this.$_prerender)T=L=0,A=P=Math.min(this.prerender,h.length),N=null;else{const j=this.getScroll();if(t){let V=j.start-this.$_lastUpdateScrollPosition;if(V<0&&(V=-V),r===null&&V<c||V<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const ne=this.buffer;j.start-=ne,j.end+=ne;let K=0;if(this.$refs.before&&(K=this.$refs.before.scrollHeight,j.start-=K),this.$refs.after){const V=this.$refs.after.scrollHeight;j.end+=V}if(r===null){let V,F=0,k=p-1,B=~~(p/2),W;do W=B,V=v[B].accumulator,V<j.start?F=B:B<p-1&&v[B+1].accumulator>j.start&&(k=B),B=~~((F+k)/2);while(B!==W);for(B<0&&(B=0),T=B,N=v[p-1].accumulator,A=B;A<p&&v[A].accumulator<j.end;A++);for(A===-1?A=h.length-1:(A++,A>p&&(A=p)),L=T;L<p&&K+v[L].accumulator<j.start;L++);for(P=L;P<p&&K+v[P].accumulator<j.end;P++);}else{T=~~(j.start/r*o);const V=T%o;T-=V,A=Math.ceil(j.end/r*o),L=Math.max(0,Math.floor((j.start-K)/r*o)),P=Math.floor((j.end-K)/r*o),T<0&&(T=0),A>p&&(A=p),L<0&&(L=0),P>p&&(P=p),N=Math.ceil(p/o)*r}}A-T>uye.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let M;const q=T<=this.$_endIndex&&A>=this.$_startIndex;if(q)for(let j=0,ne=x.length;j<ne;j++)M=x[j],M.nr.used&&(e&&(M.nr.index=E[M.item[d]]),(M.nr.index==null||M.nr.index<T||M.nr.index>=A)&&this.unuseView(M));const z=q?null:new Map;let J,re,te;for(let j=T;j<A;j++){J=h[j];const ne=d?J[d]:J;if(ne==null)throw new Error(`Key is ${ne} on item (keyField is '${d}')`);if(M=m.get(ne),!r&&!v[j].size){M&&this.unuseView(M);continue}re=J[f];let K=b.get(re),V=!1;if(!M)q?K&&K.length?M=K.pop():M=this.addView(x,j,J,ne,re):(te=z.get(re)||0,(!K||te>=K.length)&&(M=this.addView(x,j,J,ne,re),this.unuseView(M,!0),K=b.get(re)),M=K[te],z.set(re,te+1)),m.delete(M.nr.key),M.nr.used=!0,M.nr.index=j,M.nr.key=ne,M.nr.type=re,m.set(ne,M),V=!0;else if(!M.nr.used&&(M.nr.used=!0,V=!0,K)){const F=K.indexOf(M);F!==-1&&K.splice(F,1)}M.item=J,V&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(M.position=v[j-1].accumulator,M.offset=0):(M.position=Math.floor(j/o)*r,M.offset=j%o*s)}return this.$_startIndex=T,this.$_endIndex=A,this.emitUpdate&&this.$emit("update",T,A,L,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:q}},getListenerTarget(){let e=A0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=A0(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 yye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},bye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function wye(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Wr("observe-visibility");return wt((oe(),me("div",{class:lt(["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?(oe(),me("div",yye,[dn(e.$slots,"before")],512)):Ze("v-if",!0),(oe(),ot(wv(r.listTag),{ref:"wrapper",style:Gt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:st(()=>[(oe(!0),me(ut,null,ci(s.pool,h=>(oe(),ot(wv(r.itemTag),li({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}]]},KS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:st(()=>[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?(oe(),me("div",bye,[dn(e.$slots,"after")],512)):Ze("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ap.render=wye;ap.__file="src/components/RecycleScroller.vue";function xye(e){const t=Ee(()=>Bd.value?!1:!et.onlyTests),r=Ee(()=>On.value===""),o=Be(On.value);yw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Rs.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=m,on.value.onlyTests=b)}return Ht(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ce.filterNodes()},{flush:"post"}),Ht(()=>Cr.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:On,disableFilter:t,isFiltered:Dw,isFilteredByStatus:Bd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Iu,testsTotal:Gce,uiEntries:Hn}}const _ye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Sye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},kye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Cye=["op"],Tye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),Eye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),Lye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Aye={"text-red5":""},Mye=Y("span",null,"/",-1),Nye={"text-yellow5":""},$ye={"text-green5":""},Pye=Y("span",null,"/",-1),Oye={class:"text-purple5:50"},Rye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Dye=Y("div",{op30:""}," No matched test ",-1),zye=["disabled"],Iye=["disabled"],Fye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Hye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),qye=Y("div",{op30:""}," Loading... ",-1),Bye=[Hye,qye],Wye=ft({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Ee(()=>Hu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:E,filteredFiles:T,testsTotal:A,uiEntries:N}=xye(s),L=Be("grid-cols-2"),P=Be("grid-col-span-2"),M=Be();return Cw(M,q=>{const{width:z}=q[0].contentRect;z<420?(L.value="grid-cols-2",P.value="grid-col-span-2"):(L.value="grid-cols-4",P.value="grid-col-span-4")}),(q,z)=>{const J=gi,re=G0e,te=V0e,j=L0e,ne=Wr("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:M,h:"full",flex:"~ col"},[Y("div",null,[Y("div",_ye,[dn(q.$slots,"header",{filteredFiles:I(p)||I(v)?I(T):void 0})]),Y("div",Sye,[kye,wt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":z[0]||(z[0]=K=>Pt(d)?d.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:I(d).length?"100":"50",onKeydown:[z[1]||(z[1]=Td(K=>I(x)(!1),["esc"])),z[2]||(z[2]=Td(K=>r("run",I(p)||I(v)?I(T):void 0),["enter"]))]},null,40,Cye),[[pC,I(d)]]),wt(Pe(J,{disabled:I(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[3]||(z[3]=K=>I(x)(!0))},null,8,["disabled"]),[[ne,"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:lt(I(L))},[Y("div",{class:lt(I(P)),flex:"~ gap-2 items-center"},[Tye,Eye,wt(Pe(J,{disabled:I(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[4]||(z[4]=K=>I(E)(!1))},null,8,["disabled"]),[[ne,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(re,{modelValue:I(f).failed,"onUpdate:modelValue":z[5]||(z[5]=K=>I(f).failed=K),label:"Fail"},null,8,["modelValue"]),Pe(re,{modelValue:I(f).success,"onUpdate:modelValue":z[6]||(z[6]=K=>I(f).success=K),label:"Pass"},null,8,["modelValue"]),Pe(re,{modelValue:I(f).skipped,"onUpdate:modelValue":z[7]||(z[7]=K=>I(f).skipped=K),label:"Skip"},null,8,["modelValue"]),Pe(re,{modelValue:I(f).onlyTests,"onUpdate:modelValue":z[8]||(z[8]=K=>I(f).onlyTests=K),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:z[12]||(z[12]=(...K)=>I(Tm)&&I(Tm)(...K))},[Pe(j,null,GS({default:st(()=>[(I(p)||I(v))&&I(N).length===0?(oe(),me(ut,{key:0},[I(c)?(oe(),me("div",Rye,[Dye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(I(m)?null:"hover:op100"),disabled:I(m),onClickPassive:z[9]||(z[9]=K=>I(x)(!0))}," Clear Search ",42,zye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(I(h)?null:"hover:op100"),disabled:I(h),onClickPassive:z[10]||(z[10]=K=>I(E)(!0))}," Clear Filter ",42,Iye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:z[11]||(z[11]=(...K)=>I(b)&&I(b)(...K))}," Clear All ",32)])):(oe(),me("div",Fye,Bye))],64)):(oe(),ot(I(ap),{key:1,"page-mode":"","key-field":"id","item-size":28,items:I(N),buffer:100},{default:st(({item:K})=>[Pe(te,{class:lt(["h-28px m-0 p-0",I(eo)===K.id?"bg-active":""]),"task-id":K.id,expandable:K.expandable,type:K.type,current:I(eo)===K.id,indent:K.indent,name:K.name,typecheck:K.typecheck===!0,"project-name":K.projectName??"","project-name-color":K.projectNameColor??"",state:K.state,duration:K.duration,opened:K.expanded,"disable-task-location":!I(o),"on-item-click":q.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[I(c)?{name:"summary",fn:st(()=>[Y("div",Lye,[Y("span",Aye," FAIL ("+qe(I(A).failed)+") ",1),Mye,Y("span",Nye," RUNNING ("+qe(I(A).running)+") ",1),Y("span",$ye," PASS ("+qe(I(A).success)+") ",1),Pye,Y("span",Oye," SKIP ("+qe(I(f).onlyTests?I(A).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Uye=""+new URL("../favicon.svg",import.meta.url).href,Vye=Y("img",{"w-6":"","h-6":"",src:Uye,alt:"Vitest logo"},null,-1),jye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Gye={class:"flex text-lg"},Kye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Xye=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),Yye=ft({__name:"Navigation",setup(e){function t(){return yt.rpc.updateSnapshot()}const r=Ee(()=>ya.value?"light":"dark");async function o(f){ps.value&&(nu.value=!0,await ln(),to.value&&(ru(!0),await ln())),f!=null&&f.length?await Xh(f):await Sue()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=gi,p=Wye,v=Wr("tooltip");return oe(),ot(p,{border:"r base","on-item-click":I(Ew),nested:!0,onRun:o},{header:st(({filteredFiles:m})=>[Vye,jye,Y("div",Gye,[wt(Pe(h,{title:"Collapse tests",disabled:!I(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ui,!I(Qm)],[v,"Collapse tests",void 0,{bottom:!0}]]),wt(Pe(h,{disabled:!I(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ui,I(Qm)],[v,"Expand tests",void 0,{bottom:!0}]]),wt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>I(ru)(!0))},null,512),[[Ui,I(Id)&&!I(ps)||!I(Ss)],[v,"Dashboard",void 0,{bottom:!0}]]),I(Id)&&!I(ps)?(oe(),ot(I($b),{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:st(()=>[Xye]),default:st(()=>[Kye]),_:1})):Ze("",!0),I(ps)?wt((oe(),ot(h,{key:1,disabled:I(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>I(bce)())},null,8,["disabled"])),[[Ui,!I(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ze("",!0),I(Ce).summary.failedSnapshot&&!I(Ir)?wt((oe(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!I(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>I(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ze("",!0),I(Ir)?Ze("",!0):wt((oe(),ot(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),wt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>I(Jue)())},null,512),[[v,`Toggle to ${I(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Zye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Jye=ft({__name:"ProgressBar",setup(e){const{width:t}=Tw(),r=Ee(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":mce.value?null:"in-progress"),o=Ee(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=Ee(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=Ee(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=Ee(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("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:lt(I(r))},[Y("div",Zye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(I(r)),style:Gt(`width: ${I(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(I(r)),style:Gt(`left: ${I(s)}px; width: ${I(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(I(r)),style:Gt(`left: ${I(o)+I(s)}px; width: ${I(f)}px;`)}," ",6)])],2))}}),Qye=Ur(Jye,[["__scopeId","data-v-38451300"]]),M0={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 m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),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 pa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},ebe=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},tbe={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 nbe(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Gt(e.style)},[dn(e.$slots,"default")],4)}const wc=ebe(tbe,[["render",nbe]]),rbe={"h-screen":"","w-screen":"",overflow:"hidden"},ibe=ft({__name:"index",setup(e){const t=yce(),r=dc(m=>{p(),h(m)},0),o=dc(m=>{m.forEach((b,x)=>{br.value[x]=b.size}),d(m)},0),s=dc(m=>{m.forEach((b,x)=>{Mo.value[x]=b.size}),h(m),v()},0),c=dc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);br.value[0]=100*b/m,br.value[1]=100-br.value[0],d([{size:br.value[0]},{size:br.value[1]}])}function d(m){Sn.navigation=m[0].size,Sn.details.size=m[1].size}function h(m){Sn.details.browser=m[0].size,Sn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const x=Qye,E=Yye,T=k0e,A=yme,N=hme,L=Hue,P=Eue;return oe(),me(ut,null,[Pe(x),Y("div",rbe,[Pe(I(M0),{class:"pt-4px",onResized:I(o),onResize:I(c),onReady:f},{default:st(()=>[Pe(I(wc),{size:I(br)[0]},{default:st(()=>[Pe(E)]),_:1},8,["size"]),Pe(I(wc),{size:I(br)[1]},{default:st(()=>[I(Ro)?(oe(),ot(I(M0),{id:"details-splitpanes",key:"browser-detail",onResize:I(r),onResized:I(s)},{default:st(()=>[Pe(I(wc),{size:I(Mo)[0],"min-size":"10"},{default:st(()=>[b[0]||(Wc(-1),(b[0]=Pe(L)).cacheIndex=0,Wc(1),b[0])]),_:1},8,["size"]),Pe(I(wc),{size:I(Mo)[1]},{default:st(()=>[I(t)?(oe(),ot(T,{key:"summary"})):I(to)?(oe(),ot(A,{key:"coverage",src:I(Jm)},null,8,["src"])):(oe(),ot(N,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),ot(Mh,{key:"ui-detail"},{default:st(()=>[I(t)?(oe(),ot(T,{key:"summary"})):I(to)?(oe(),ot(A,{key:"coverage",src:I(Jm)},null,8,["src"])):(oe(),ot(N,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),obe=[{name:"index",path:"/",component:ibe,props:!0}],sbe={tooltip:LE};Pb.options.instantMove=!0;Pb.options.distance=10;function lbe(){return MT({history:iT(),routes:obe})}const abe=[lbe],cp=jy(TC);abe.forEach(e=>{cp.use(e())});Object.entries(sbe).forEach(([e,t])=>{cp.directive(e,t)});cp.mount("#app");
|