@vitest/browser 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ var Sx=Object.defineProperty;var kx=(t,n,r)=>n in t?Sx(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var ai=(t,n,r)=>(kx(t,typeof n!="symbol"?n+"":n,r),r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function Qf(t,n){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return n?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const be={},Uo=[],yr=()=>{},Cx=()=>!1,Tx=/^on[^a-z]/,gc=t=>Tx.test(t),th=t=>t.startsWith("onUpdate:"),$e=Object.assign,eh=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},Ex=Object.prototype.hasOwnProperty,se=(t,n)=>Ex.call(t,n),Ft=Array.isArray,jo=t=>mc(t)==="[object Map]",lm=t=>mc(t)==="[object Set]",Ut=t=>typeof t=="function",Re=t=>typeof t=="string",vc=t=>typeof t=="symbol",me=t=>t!==null&&typeof t=="object",am=t=>(me(t)||Ut(t))&&Ut(t.then)&&Ut(t.catch),cm=Object.prototype.toString,mc=t=>cm.call(t),Lx=t=>mc(t).slice(8,-1),um=t=>mc(t)==="[object Object]",nh=t=>Re(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Pa=Qf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yc=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},Ax=/-(\w)/g,wr=yc(t=>t.replace(Ax,(n,r)=>r?r.toUpperCase():"")),Mx=/\B([A-Z])/g,so=yc(t=>t.replace(Mx,"-$1").toLowerCase()),bc=yc(t=>t.charAt(0).toUpperCase()+t.slice(1)),Fu=yc(t=>t?`on${bc(t)}`:""),to=(t,n)=>!Object.is(t,n),Oa=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},ja=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},lf=t=>{const n=parseFloat(t);return isNaN(n)?t:n},fm=t=>{const n=Re(t)?Number(t):NaN;return isNaN(n)?t:n};let eg;const af=()=>eg||(eg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function En(t){if(Ft(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=Re(o)?Dx(o):En(o);if(a)for(const u in a)n[u]=a[u]}return n}else if(Re(t)||me(t))return t}const Nx=/;(?![^(]*\))/g,Px=/:([^]+)/,Ox=/\/\*[^]*?\*\//g;function Dx(t){const n={};return t.replace(Ox,"").split(Nx).forEach(r=>{if(r){const o=r.split(Px);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ve(t){let n="";if(Re(t))n=t;else if(Ft(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(n+=o+" ")}else if(me(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const $x="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rx=Qf($x);function hm(t){return!!t||t===""}const ne=t=>Re(t)?t:t==null?"":Ft(t)||me(t)&&(t.toString===cm||!Ut(t.toString))?JSON.stringify(t,dm,2):String(t),dm=(t,n)=>n&&n.__v_isRef?dm(t,n.value):jo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:lm(n)?{[`Set(${n.size})`]:[...n.values()]}:me(n)&&!Ft(n)&&!um(n)?String(n):n;let On;class zx{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!n&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const r=On;try{return On=this,n()}finally{On=r}}}on(){On=this}off(){On=this.parent}stop(n){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&&!n){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function Fx(t,n=On){n&&n.active&&n.effects.push(t)}function pm(){return On}function Ix(t){On&&On.cleanups.push(t)}const rh=t=>{const n=new Set(t);return n.w=0,n.n=0,n},gm=t=>(t.w&ki)>0,vm=t=>(t.n&ki)>0,qx=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=ki},Hx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];gm(a)&&!vm(a)?a.delete(t):n[r++]=a,a.w&=~ki,a.n&=~ki}n.length=r}},Ga=new WeakMap;let Qs=0,ki=1;const cf=30;let er;const Yi=Symbol(""),uf=Symbol("");class ih{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Fx(this,o)}run(){if(!this.active)return this.fn();let n=er,r=xi;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=er,er=this,xi=!0,ki=1<<++Qs,Qs<=cf?qx(this):ng(this),this.fn()}finally{Qs<=cf&&Hx(this),ki=1<<--Qs,er=this.parent,xi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){er===this?this.deferStop=!0:this.active&&(ng(this),this.onStop&&this.onStop(),this.active=!1)}}function ng(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let xi=!0;const mm=[];function fs(){mm.push(xi),xi=!1}function hs(){const t=mm.pop();xi=t===void 0?!0:t}function An(t,n,r){if(xi&&er){let o=Ga.get(t);o||Ga.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=rh()),ym(a)}}function ym(t,n){let r=!1;Qs<=cf?vm(t)||(t.n|=ki,r=!gm(t)):r=!t.has(er),r&&(t.add(er),er.deps.push(t))}function Fr(t,n,r,o,a,u){const f=Ga.get(t);if(!f)return;let h=[];if(n==="clear")h=[...f.values()];else if(r==="length"&&Ft(t)){const p=Number(o);f.forEach((g,v)=>{(v==="length"||!vc(v)&&v>=p)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),n){case"add":Ft(t)?nh(r)&&h.push(f.get("length")):(h.push(f.get(Yi)),jo(t)&&h.push(f.get(uf)));break;case"delete":Ft(t)||(h.push(f.get(Yi)),jo(t)&&h.push(f.get(uf)));break;case"set":jo(t)&&h.push(f.get(Yi));break}if(h.length===1)h[0]&&ff(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);ff(rh(p))}}function ff(t,n){const r=Ft(t)?t:[...t];for(const o of r)o.computed&&rg(o);for(const o of r)o.computed||rg(o)}function rg(t,n){(t!==er||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Bx(t,n){var r;return(r=Ga.get(t))==null?void 0:r.get(n)}const Wx=Qf("__proto__,__v_isRef,__isVue"),bm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(vc)),ig=Ux();function Ux(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=le(this);for(let u=0,f=this.length;u<f;u++)An(o,"get",u+"");const a=o[n](...r);return a===-1||a===!1?o[n](...r.map(le)):a}}),["push","pop","shift","unshift","splice"].forEach(n=>{t[n]=function(...r){fs();const o=le(this)[n].apply(this,r);return hs(),o}}),t}function jx(t){const n=le(this);return An(n,"has",t),n.hasOwnProperty(t)}class wm{constructor(n=!1,r=!1){this._isReadonly=n,this._shallow=r}get(n,r,o){const a=this._isReadonly,u=this._shallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return u;if(r==="__v_raw"&&o===(a?u?i1:km:u?Sm:_m).get(n))return n;const f=Ft(n);if(!a){if(f&&se(ig,r))return Reflect.get(ig,r,o);if(r==="hasOwnProperty")return jx}const h=Reflect.get(n,r,o);return(vc(r)?bm.has(r):Wx(r))||(a||An(n,"get",r),u)?h:Ee(h)?f&&nh(r)?h:h.value:me(h)?a?xc(h):Hn(h):h}}class xm extends wm{constructor(n=!1){super(!1,n)}set(n,r,o,a){let u=n[r];if(ts(u)&&Ee(u)&&!Ee(o))return!1;if(!this._shallow&&(!Va(o)&&!ts(o)&&(u=le(u),o=le(o)),!Ft(n)&&Ee(u)&&!Ee(o)))return u.value=o,!0;const f=Ft(n)&&nh(r)?Number(r)<n.length:se(n,r),h=Reflect.set(n,r,o,a);return n===le(a)&&(f?to(o,u)&&Fr(n,"set",r,o):Fr(n,"add",r,o)),h}deleteProperty(n,r){const o=se(n,r);n[r];const a=Reflect.deleteProperty(n,r);return a&&o&&Fr(n,"delete",r,void 0),a}has(n,r){const o=Reflect.has(n,r);return(!vc(r)||!bm.has(r))&&An(n,"has",r),o}ownKeys(n){return An(n,"iterate",Ft(n)?"length":Yi),Reflect.ownKeys(n)}}class Gx extends wm{constructor(n=!1){super(!0,n)}set(n,r){return!0}deleteProperty(n,r){return!0}}const Vx=new xm,Kx=new Gx,Xx=new xm(!0),oh=t=>t,wc=t=>Reflect.getPrototypeOf(t);function va(t,n,r=!1,o=!1){t=t.__v_raw;const a=le(t),u=le(n);r||(to(n,u)&&An(a,"get",n),An(a,"get",u));const{has:f}=wc(a),h=o?oh:r?ch:ul;if(f.call(a,n))return h(t.get(n));if(f.call(a,u))return h(t.get(u));t!==a&&t.get(n)}function ma(t,n=!1){const r=this.__v_raw,o=le(r),a=le(t);return n||(to(t,a)&&An(o,"has",t),An(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ya(t,n=!1){return t=t.__v_raw,!n&&An(le(t),"iterate",Yi),Reflect.get(t,"size",t)}function og(t){t=le(t);const n=le(this);return wc(n).has.call(n,t)||(n.add(t),Fr(n,"add",t,t)),this}function sg(t,n){n=le(n);const r=le(this),{has:o,get:a}=wc(r);let u=o.call(r,t);u||(t=le(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,n),u?to(n,f)&&Fr(r,"set",t,n):Fr(r,"add",t,n),this}function lg(t){const n=le(this),{has:r,get:o}=wc(n);let a=r.call(n,t);a||(t=le(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&Fr(n,"delete",t,void 0),u}function ag(){const t=le(this),n=t.size!==0,r=t.clear();return n&&Fr(t,"clear",void 0,void 0),r}function ba(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?oh:t?ch:ul;return!t&&An(h,"iterate",Yi),f.forEach((g,v)=>o.call(a,p(g),p(v),u))}}function wa(t,n,r){return function(...o){const a=this.__v_raw,u=le(a),f=jo(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),v=r?oh:n?ch:ul;return!n&&An(u,"iterate",p?uf:Yi),{next(){const{value:b,done:x}=g.next();return x?{value:b,done:x}:{value:h?[v(b[0]),v(b[1])]:v(b),done:x}},[Symbol.iterator](){return this}}}}function ci(t){return function(...n){return t==="delete"?!1:this}}function Yx(){const t={get(u){return va(this,u)},get size(){return ya(this)},has:ma,add:og,set:sg,delete:lg,clear:ag,forEach:ba(!1,!1)},n={get(u){return va(this,u,!1,!0)},get size(){return ya(this)},has:ma,add:og,set:sg,delete:lg,clear:ag,forEach:ba(!1,!0)},r={get(u){return va(this,u,!0)},get size(){return ya(this,!0)},has(u){return ma.call(this,u,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:ba(!0,!1)},o={get(u){return va(this,u,!0,!0)},get size(){return ya(this,!0)},has(u){return ma.call(this,u,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:ba(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=wa(u,!1,!1),r[u]=wa(u,!0,!1),n[u]=wa(u,!1,!0),o[u]=wa(u,!0,!0)}),[t,r,n,o]}const[Zx,Jx,Qx,t1]=Yx();function sh(t,n){const r=n?t?t1:Qx:t?Jx:Zx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(se(r,a)&&a in o?r:o,a,u)}const e1={get:sh(!1,!1)},n1={get:sh(!1,!0)},r1={get:sh(!0,!1)},_m=new WeakMap,Sm=new WeakMap,km=new WeakMap,i1=new WeakMap;function o1(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function s1(t){return t.__v_skip||!Object.isExtensible(t)?0:o1(Lx(t))}function Hn(t){return ts(t)?t:lh(t,!1,Vx,e1,_m)}function Cm(t){return lh(t,!1,Xx,n1,Sm)}function xc(t){return lh(t,!0,Kx,r1,km)}function lh(t,n,r,o,a){if(!me(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=s1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Go(t){return ts(t)?Go(t.__v_raw):!!(t&&t.__v_isReactive)}function ts(t){return!!(t&&t.__v_isReadonly)}function Va(t){return!!(t&&t.__v_isShallow)}function Tm(t){return Go(t)||ts(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function ah(t){return ja(t,"__v_skip",!0),t}const ul=t=>me(t)?Hn(t):t,ch=t=>me(t)?xc(t):t;function uh(t){xi&&er&&(t=le(t),ym(t.dep||(t.dep=rh())))}function fh(t,n){t=le(t);const r=t.dep;r&&ff(r)}function Ee(t){return!!(t&&t.__v_isRef===!0)}function Yt(t){return Em(t,!1)}function ds(t){return Em(t,!0)}function Em(t,n){return Ee(t)?t:new l1(t,n)}class l1{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:le(n),this._value=r?n:ul(n)}get value(){return uh(this),this._value}set value(n){const r=this.__v_isShallow||Va(n)||ts(n);n=r?n:le(n),to(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:ul(n),fh(this))}}function U(t){return Ee(t)?t.value:t}const a1={get:(t,n,r)=>U(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Ee(a)&&!Ee(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function Lm(t){return Go(t)?t:new Proxy(t,a1)}class c1{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=n(()=>uh(this),()=>fh(this));this._get=r,this._set=o}get value(){return this._get()}set value(n){this._set(n)}}function u1(t){return new c1(t)}function f1(t){const n=Ft(t)?new Array(t.length):{};for(const r in t)n[r]=Am(t,r);return n}class h1{constructor(n,r,o){this._object=n,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return Bx(le(this._object),this._key)}}class d1{constructor(n){this._getter=n,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function hh(t,n,r){return Ee(t)?t:Ut(t)?new d1(t):me(t)&&arguments.length>1?Am(t,n,r):Yt(t)}function Am(t,n,r){const o=t[n];return Ee(o)?o:new h1(t,n,r)}class p1{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ih(n,()=>{this._dirty||(this._dirty=!0,fh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return uh(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function g1(t,n,r=!1){let o,a;const u=Ut(t);return u?(o=t,a=yr):(o=t.get,a=t.set),new p1(o,a,u||!a,r)}function _i(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){El(u,n,r)}return a}function Bn(t,n,r,o){if(Ut(t)){const u=_i(t,n,r,o);return u&&am(u)&&u.catch(f=>{El(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(Bn(t[u],n,r,o));return a}function El(t,n,r,o=!0){const a=n?n.vnode:null;if(n){let u=n.parent;const f=n.proxy,h=r;for(;u;){const g=u.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](t,f,h)===!1)return}u=u.parent}const p=n.appContext.config.errorHandler;if(p){_i(p,null,10,[t,f,h]);return}}v1(t,r,a,o)}function v1(t,n,r,o=!0){console.error(t)}let fl=!1,hf=!1;const Qe=[];let pr=0;const Vo=[];let Dr=null,ji=0;const Mm=Promise.resolve();let dh=null;function Hr(t){const n=dh||Mm;return t?n.then(this?t.bind(this):t):n}function m1(t){let n=pr+1,r=Qe.length;for(;n<r;){const o=n+r>>>1,a=Qe[o],u=hl(a);u<t||u===t&&a.pre?n=o+1:r=o}return n}function ph(t){(!Qe.length||!Qe.includes(t,fl&&t.allowRecurse?pr+1:pr))&&(t.id==null?Qe.push(t):Qe.splice(m1(t.id),0,t),Nm())}function Nm(){!fl&&!hf&&(hf=!0,dh=Mm.then(Om))}function y1(t){const n=Qe.indexOf(t);n>pr&&Qe.splice(n,1)}function df(t){Ft(t)?Vo.push(...t):(!Dr||!Dr.includes(t,t.allowRecurse?ji+1:ji))&&Vo.push(t),Nm()}function cg(t,n=fl?pr+1:0){for(;n<Qe.length;n++){const r=Qe[n];r&&r.pre&&(Qe.splice(n,1),n--,r())}}function Pm(t){if(Vo.length){const n=[...new Set(Vo)];if(Vo.length=0,Dr){Dr.push(...n);return}for(Dr=n,Dr.sort((r,o)=>hl(r)-hl(o)),ji=0;ji<Dr.length;ji++)Dr[ji]();Dr=null,ji=0}}const hl=t=>t.id==null?1/0:t.id,b1=(t,n)=>{const r=hl(t)-hl(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function Om(t){hf=!1,fl=!0,Qe.sort(b1);try{for(pr=0;pr<Qe.length;pr++){const n=Qe[pr];n&&n.active!==!1&&_i(n,null,14)}}finally{pr=0,Qe.length=0,Pm(),fl=!1,dh=null,(Qe.length||Vo.length)&&Om()}}function w1(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||be;let a=r;const u=n.startsWith("update:"),f=u&&n.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:x}=o[v]||be;x&&(a=r.map(S=>Re(S)?S.trim():S)),b&&(a=r.map(lf))}let h,p=o[h=Fu(n)]||o[h=Fu(wr(n))];!p&&u&&(p=o[h=Fu(so(n))]),p&&Bn(p,t,6,a);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,Bn(g,t,6,a)}}function Dm(t,n,r=!1){const o=n.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let f={},h=!1;if(!Ut(t)){const p=g=>{const v=Dm(g,n,!0);v&&(h=!0,$e(f,v))};!r&&n.mixins.length&&n.mixins.forEach(p),t.extends&&p(t.extends),t.mixins&&t.mixins.forEach(p)}return!u&&!h?(me(t)&&o.set(t,null),null):(Ft(u)?u.forEach(p=>f[p]=null):$e(f,u),me(t)&&o.set(t,f),f)}function _c(t,n){return!t||!gc(n)?!1:(n=n.slice(2).replace(/Once$/,""),se(t,n[0].toLowerCase()+n.slice(1))||se(t,so(n))||se(t,n))}let Ye=null,Sc=null;function Ka(t){const n=Ye;return Ye=t,Sc=t&&t.type.__scopeId||null,n}function $m(t){Sc=t}function Rm(){Sc=null}const x1=t=>Jt;function Jt(t,n=Ye,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&xg(-1);const u=Ka(n);let f;try{f=t(...a)}finally{Ka(u),o._d&&xg(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Iu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:p,emit:g,render:v,renderCache:b,data:x,setupState:S,ctx:P,inheritAttrs:A}=t;let L,T;const M=Ka(t);try{if(r.shapeFlag&4){const E=a||o;L=tr(v.call(E,E,b,u,S,x,P)),T=p}else{const E=n;L=tr(E.length>1?E(u,{attrs:p,slots:h,emit:g}):E(u,null)),T=n.props?p:S1(p)}}catch(E){ol.length=0,El(E,t,1),L=It(Ln)}let R=L;if(T&&A!==!1){const E=Object.keys(T),{shapeFlag:B}=R;E.length&&B&7&&(f&&E.some(th)&&(T=k1(T,f)),R=Ci(R,T))}return r.dirs&&(R=Ci(R),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&(R.transition=r.transition),L=R,Ka(M),L}function _1(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(pl(o)){if(o.type!==Ln||o.children==="v-if"){if(n)return;n=o}}else return}return n}const S1=t=>{let n;for(const r in t)(r==="class"||r==="style"||gc(r))&&((n||(n={}))[r]=t[r]);return n},k1=(t,n)=>{const r={};for(const o in t)(!th(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function C1(t,n,r){const{props:o,children:a,component:u}=t,{props:f,children:h,patchFlag:p}=n,g=u.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&p>=0){if(p&1024)return!0;if(p&16)return o?ug(o,f,g):!!f;if(p&8){const v=n.dynamicProps;for(let b=0;b<v.length;b++){const x=v[b];if(f[x]!==o[x]&&!_c(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?ug(o,f,g):!0:!!f;return!1}function ug(t,n,r){const o=Object.keys(n);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(n[u]!==t[u]&&!_c(r,u))return!0}return!1}function gh({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const zm="components",T1="directives";function eo(t,n){return Fm(zm,t,!0,n)||t}const E1=Symbol.for("v-ndc");function lo(t){return Fm(T1,t)}function Fm(t,n,r=!0,o=!1){const a=Ye||Ue;if(a){const u=a.type;if(t===zm){const h=C_(u,!1);if(h&&(h===n||h===wr(n)||h===bc(wr(n))))return u}const f=fg(a[t]||u[t],n)||fg(a.appContext[t],n);return!f&&o?u:f}}function fg(t,n){return t&&(t[n]||t[wr(n)]||t[bc(wr(n))])}const L1=t=>t.__isSuspense,A1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?N1(n,r,o,a,u,f,h,p,g):P1(t,n,r,o,a,f,h,p,g)},hydrate:O1,create:vh,normalize:D1},M1=A1;function dl(t,n){const r=t.props&&t.props[n];Ut(r)&&r()}function N1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:v}}=p,b=v("div"),x=t.suspense=vh(t,a,o,n,b,r,u,f,h,p);g(null,x.pendingBranch=t.ssContent,b,null,o,x,u,f),x.deps>0?(dl(t,"onPending"),dl(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),Ko(x,t.ssFallback)):x.resolve(!1,!0)}function P1(t,n,r,o,a,u,f,h,{p,um:g,o:{createElement:v}}){const b=n.suspense=t.suspense;b.vnode=n,n.el=t.el;const x=n.ssContent,S=n.ssFallback,{activeBranch:P,pendingBranch:A,isInFallback:L,isHydrating:T}=b;if(A)b.pendingBranch=x,gr(x,A)?(p(A,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():L&&(p(P,S,r,o,a,null,u,f,h),Ko(b,S))):(b.pendingId++,T?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),L?(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(p(P,S,r,o,a,null,u,f,h),Ko(b,S))):P&&gr(x,P)?(p(P,x,r,o,a,b,u,f,h),b.resolve(!0)):(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(P&&gr(x,P))p(P,x,r,o,a,b,u,f,h),Ko(b,x);else if(dl(n,"onPending"),b.pendingBranch=x,b.pendingId++,p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:M,pendingId:R}=b;M>0?setTimeout(()=>{b.pendingId===R&&b.fallback(S)},M):M===0&&b.fallback(S)}}function vh(t,n,r,o,a,u,f,h,p,g,v=!1){const{p:b,m:x,um:S,n:P,o:{parentNode:A,remove:L}}=g;let T;const M=R1(t);M&&n!=null&&n.pendingBranch&&(T=n.pendingId,n.deps++);const R=t.props?fm(t.props.timeout):void 0,E={vnode:t,parent:n,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(B=!1,K=!1){const{vnode:ht,activeBranch:Y,pendingBranch:et,pendingId:st,effects:pt,parentComponent:gt,container:V}=E;let z=!1;if(E.isHydrating)E.isHydrating=!1;else if(!B){z=Y&&et.transition&&et.transition.mode==="out-in",z&&(Y.transition.afterLeave=()=>{st===E.pendingId&&(x(et,V,H,0),df(pt))});let{anchor:H}=E;Y&&(H=P(Y),S(Y,gt,E,!0)),z||x(et,V,H,0)}Ko(E,et),E.pendingBranch=null,E.isInFallback=!1;let k=E.parent,I=!1;for(;k;){if(k.pendingBranch){k.effects.push(...pt),I=!0;break}k=k.parent}!I&&!z&&df(pt),E.effects=[],M&&n&&n.pendingBranch&&T===n.pendingId&&(n.deps--,n.deps===0&&!K&&n.resolve()),dl(ht,"onResolve")},fallback(B){if(!E.pendingBranch)return;const{vnode:K,activeBranch:ht,parentComponent:Y,container:et,isSVG:st}=E;dl(K,"onFallback");const pt=P(ht),gt=()=>{E.isInFallback&&(b(null,B,et,pt,Y,null,st,h,p),Ko(E,B))},V=B.transition&&B.transition.mode==="out-in";V&&(ht.transition.afterLeave=gt),E.isInFallback=!0,S(ht,Y,null,!0),V||gt()},move(B,K,ht){E.activeBranch&&x(E.activeBranch,B,K,ht),E.container=B},next(){return E.activeBranch&&P(E.activeBranch)},registerDep(B,K){const ht=!!E.pendingBranch;ht&&E.deps++;const Y=B.vnode.el;B.asyncDep.catch(et=>{El(et,B,0)}).then(et=>{if(B.isUnmounted||E.isUnmounted||E.pendingId!==B.suspenseId)return;B.asyncResolved=!0;const{vnode:st}=B;_f(B,et,!1),Y&&(st.el=Y);const pt=!Y&&B.subTree.el;K(B,st,A(Y||B.subTree.el),Y?null:P(B.subTree),E,f,p),pt&&L(pt),gh(B,st.el),ht&&--E.deps===0&&E.resolve()})},unmount(B,K){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,B,K),E.pendingBranch&&S(E.pendingBranch,r,B,K)}};return E}function O1(t,n,r,o,a,u,f,h,p){const g=n.suspense=vh(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),v=p(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(!1,!0),v}function D1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=hg(o?r.default:r),t.ssFallback=o?hg(r.fallback):It(Ln)}function hg(t){let n;if(Ut(t)){const r=es&&t._c;r&&(t._d=!1,ut()),t=t(),r&&(t._d=!0,n=qn,e0())}return Ft(t)&&(t=_1(t)),t=tr(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function $1(t,n){n&&n.pendingBranch?Ft(t)?n.effects.push(...t):n.effects.push(t):df(t)}function Ko(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,gh(o,a))}function R1(t){var n;return((n=t.props)==null?void 0:n.suspensible)!=null&&t.props.suspensible!==!1}function mh(t,n){return yh(t,null,n)}const xa={};function De(t,n,r){return yh(t,n,r)}function yh(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=be){var h;const p=pm()===((h=Ue)==null?void 0:h.scope)?Ue:null;let g,v=!1,b=!1;if(Ee(t)?(g=()=>t.value,v=Va(t)):Go(t)?(g=()=>t,o=!0):Ft(t)?(b=!0,v=t.some(E=>Go(E)||Va(E)),g=()=>t.map(E=>{if(Ee(E))return E.value;if(Go(E))return Vi(E);if(Ut(E))return _i(E,p,2)})):Ut(t)?n?g=()=>_i(t,p,2):g=()=>{if(!(p&&p.isUnmounted))return x&&x(),Bn(t,p,3,[S])}:g=yr,n&&o){const E=g;g=()=>Vi(E())}let x,S=E=>{x=M.onStop=()=>{_i(E,p,4)}},P;if(gl)if(S=yr,n?r&&Bn(n,p,3,[g(),b?[]:void 0,S]):g(),a==="sync"){const E=L_();P=E.__watcherHandles||(E.__watcherHandles=[])}else return yr;let A=b?new Array(t.length).fill(xa):xa;const L=()=>{if(M.active)if(n){const E=M.run();(o||v||(b?E.some((B,K)=>to(B,A[K])):to(E,A)))&&(x&&x(),Bn(n,p,3,[E,A===xa?void 0:b&&A[0]===xa?[]:A,S]),A=E)}else M.run()};L.allowRecurse=!!n;let T;a==="sync"?T=L:a==="post"?T=()=>Sn(L,p&&p.suspense):(L.pre=!0,p&&(L.id=p.uid),T=()=>ph(L));const M=new ih(g,T);n?r?L():A=M.run():a==="post"?Sn(M.run.bind(M),p&&p.suspense):M.run();const R=()=>{M.stop(),p&&p.scope&&eh(p.scope.effects,M)};return P&&P.push(R),R}function z1(t,n,r){const o=this.proxy,a=Re(t)?t.includes(".")?Im(o,t):()=>o[t]:t.bind(o,o);let u;Ut(n)?u=n:(u=n.handler,r=n);const f=Ue;ns(this);const h=yh(a,u.bind(o),r);return f?ns(f):Zi(),h}function Im(t,n){const r=n.split(".");return()=>{let o=t;for(let a=0;a<r.length&&o;a++)o=o[r[a]];return o}}function Vi(t,n){if(!me(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ee(t))Vi(t.value,n);else if(Ft(t))for(let r=0;r<t.length;r++)Vi(t[r],n);else if(lm(t)||jo(t))t.forEach(r=>{Vi(r,n)});else if(um(t))for(const r in t)Vi(t[r],n);return t}function tn(t,n){const r=Ye;if(r===null)return t;const o=Lc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,p,g=be]=n[u];f&&(Ut(f)&&(f={mounted:f,updated:f}),f.deep&&Vi(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:p,modifiers:g}))}return t}function qi(t,n,r,o){const a=t.dirs,u=n&&n.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let p=h.dir[o];p&&(fs(),Bn(p,r,8,[t.el,h,t,n]),hs())}}const pi=Symbol("_leaveCb"),_a=Symbol("_enterCb");function F1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ps(()=>{t.isMounted=!0}),Um(()=>{t.isUnmounting=!0}),t}const In=[Function,Array],qm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:In,onEnter:In,onAfterEnter:In,onEnterCancelled:In,onBeforeLeave:In,onLeave:In,onAfterLeave:In,onLeaveCancelled:In,onBeforeAppear:In,onAppear:In,onAfterAppear:In,onAppearCancelled:In},I1={name:"BaseTransition",props:qm,setup(t,{slots:n}){const r=Ll(),o=F1();let a;return()=>{const u=n.default&&Bm(n.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Ln){f=A;break}}const h=le(t),{mode:p}=h;if(o.isLeaving)return qu(f);const g=dg(f);if(!g)return qu(f);const v=pf(g,h,o,r);gf(g,v);const b=r.subTree,x=b&&dg(b);let S=!1;const{getTransitionKey:P}=g.type;if(P){const A=P();a===void 0?a=A:A!==a&&(a=A,S=!0)}if(x&&x.type!==Ln&&(!gr(g,x)||S)){const A=pf(x,h,o,r);if(gf(x,A),p==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},qu(f);p==="in-out"&&g.type!==Ln&&(A.delayLeave=(L,T,M)=>{const R=Hm(o,x);R[String(x.key)]=x,L[pi]=()=>{T(),L[pi]=void 0,delete v.delayedLeave},v.delayedLeave=M})}return f}}},q1=I1;function Hm(t,n){const{leavingVNodes:r}=t;let o=r.get(n.type);return o||(o=Object.create(null),r.set(n.type,o)),o}function pf(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:P,onBeforeAppear:A,onAppear:L,onAfterAppear:T,onAppearCancelled:M}=n,R=String(t.key),E=Hm(r,t),B=(Y,et)=>{Y&&Bn(Y,o,9,et)},K=(Y,et)=>{const st=et[1];B(Y,et),Ft(Y)?Y.every(pt=>pt.length<=1)&&st():Y.length<=1&&st()},ht={mode:u,persisted:f,beforeEnter(Y){let et=h;if(!r.isMounted)if(a)et=A||h;else return;Y[pi]&&Y[pi](!0);const st=E[R];st&&gr(t,st)&&st.el[pi]&&st.el[pi](),B(et,[Y])},enter(Y){let et=p,st=g,pt=v;if(!r.isMounted)if(a)et=L||p,st=T||g,pt=M||v;else return;let gt=!1;const V=Y[_a]=z=>{gt||(gt=!0,z?B(pt,[Y]):B(st,[Y]),ht.delayedLeave&&ht.delayedLeave(),Y[_a]=void 0)};et?K(et,[Y,V]):V()},leave(Y,et){const st=String(t.key);if(Y[_a]&&Y[_a](!0),r.isUnmounting)return et();B(b,[Y]);let pt=!1;const gt=Y[pi]=V=>{pt||(pt=!0,et(),V?B(P,[Y]):B(S,[Y]),Y[pi]=void 0,E[st]===t&&delete E[st])};E[st]=t,x?K(x,[Y,gt]):gt()},clone(Y){return pf(Y,n,r,o)}};return ht}function qu(t){if(kc(t))return t=Ci(t),t.children=null,t}function dg(t){return kc(t)?t.children?t.children[0]:void 0:t}function gf(t,n){t.shapeFlag&6&&t.component?gf(t.component.subTree,n):t.shapeFlag&128?(t.ssContent.transition=n.clone(t.ssContent),t.ssFallback.transition=n.clone(t.ssFallback)):t.transition=n}function Bm(t,n=!1,r){let o=[],a=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===ue?(f.patchFlag&128&&a++,o=o.concat(Bm(f.children,n,h))):(n||f.type!==Ln)&&o.push(h!=null?Ci(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function re(t,n){return Ut(t)?(()=>$e({name:t.name},n,{setup:t}))():t}const rl=t=>!!t.type.__asyncLoader,kc=t=>t.type.__isKeepAlive;function H1(t,n){Wm(t,"a",n)}function B1(t,n){Wm(t,"da",n)}function Wm(t,n,r=Ue){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(Cc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)kc(a.parent.vnode)&&W1(o,n,r,a),a=a.parent}}function W1(t,n,r,o){const a=Cc(n,t,o,!0);bh(()=>{eh(o[n],a)},r)}function Cc(t,n,r=Ue,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;fs(),ns(r);const h=Bn(n,r,t,f);return Zi(),hs(),h});return o?a.unshift(u):a.push(u),u}}const Vr=t=>(n,r=Ue)=>(!gl||t==="sp")&&Cc(t,(...o)=>n(...o),r),U1=Vr("bm"),ps=Vr("m"),j1=Vr("bu"),G1=Vr("u"),Um=Vr("bum"),bh=Vr("um"),V1=Vr("sp"),K1=Vr("rtg"),X1=Vr("rtc");function Y1(t,n=Ue){Cc("ec",t,n)}function nr(t,n,r,o){let a;const u=r&&r[o];if(Ft(t)||Re(t)){a=new Array(t.length);for(let f=0,h=t.length;f<h;f++)a[f]=n(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){a=new Array(t);for(let f=0;f<t;f++)a[f]=n(f+1,f,void 0,u&&u[f])}else if(me(t))if(t[Symbol.iterator])a=Array.from(t,(f,h)=>n(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);a=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];a[h]=n(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function ir(t,n,r={},o,a){if(Ye.isCE||Ye.parent&&rl(Ye.parent)&&Ye.parent.isCE)return n!=="default"&&(r.name=n),It("slot",r,o&&o());let u=t[n];u&&u._c&&(u._d=!1),ut();const f=u&&jm(u(r)),h=Qt(ue,{key:r.key||f&&f.key||`_${n}`},f||(o?o():[]),f&&t._===1?64:-2);return!a&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function jm(t){return t.some(n=>pl(n)?!(n.type===Ln||n.type===ue&&!jm(n.children)):!0)?t:null}const vf=t=>t?i0(t)?Lc(t)||t.proxy:vf(t.parent):null,il=$e(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>vf(t.parent),$root:t=>vf(t.root),$emit:t=>t.emit,$options:t=>wh(t),$forceUpdate:t=>t.f||(t.f=()=>ph(t.update)),$nextTick:t=>t.n||(t.n=Hr.bind(t.proxy)),$watch:t=>z1.bind(t)}),Hu=(t,n)=>t!==be&&!t.__isScriptSetup&&se(t,n),Z1={get({_:t},n){const{ctx:r,setupState:o,data:a,props:u,accessCache:f,type:h,appContext:p}=t;let g;if(n[0]!=="$"){const S=f[n];if(S!==void 0)switch(S){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return u[n]}else{if(Hu(o,n))return f[n]=1,o[n];if(a!==be&&se(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&se(g,n))return f[n]=3,u[n];if(r!==be&&se(r,n))return f[n]=4,r[n];yf&&(f[n]=0)}}const v=il[n];let b,x;if(v)return n==="$attrs"&&An(t,"get",n),v(t);if((b=h.__cssModules)&&(b=b[n]))return b;if(r!==be&&se(r,n))return f[n]=4,r[n];if(x=p.config.globalProperties,se(x,n))return x[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return Hu(a,n)?(a[n]=r,!0):o!==be&&se(o,n)?(o[n]=r,!0):se(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(u[n]=r,!0)},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:a,propsOptions:u}},f){let h;return!!r[f]||t!==be&&se(t,f)||Hu(n,f)||(h=u[0])&&se(h,f)||se(o,f)||se(il,f)||se(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:se(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};function J1(){return Q1().attrs}function Gm(t,n,r){const o=Ll();if(r&&r.local){const a=Yt(t[n]);return De(()=>t[n],u=>a.value=u),De(a,u=>{u!==t[n]&&o.emit(`update:${n}`,u)}),a}else return{__v_isRef:!0,get value(){return t[n]},set value(a){o.emit(`update:${n}`,a)}}}function Q1(){const t=Ll();return t.setupContext||(t.setupContext=s0(t))}function Xa(t){return Ft(t)?t.reduce((n,r)=>(n[r]=null,n),{}):t}function mf(t,n){return!t||!n?t||n:Ft(t)&&Ft(n)?t.concat(n):$e({},Xa(t),Xa(n))}let yf=!0;function t_(t){const n=wh(t),r=t.proxy,o=t.ctx;yf=!1,n.beforeCreate&&pg(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:p,inject:g,created:v,beforeMount:b,mounted:x,beforeUpdate:S,updated:P,activated:A,deactivated:L,beforeDestroy:T,beforeUnmount:M,destroyed:R,unmounted:E,render:B,renderTracked:K,renderTriggered:ht,errorCaptured:Y,serverPrefetch:et,expose:st,inheritAttrs:pt,components:gt,directives:V,filters:z}=n;if(g&&e_(g,o,null),f)for(const H in f){const J=f[H];Ut(J)&&(o[H]=J.bind(r))}if(a){const H=a.call(r,r);me(H)&&(t.data=Hn(H))}if(yf=!0,u)for(const H in u){const J=u[H],yt=Ut(J)?J.bind(r,r):Ut(J.get)?J.get.bind(r,r):yr,Lt=!Ut(J)&&Ut(J.set)?J.set.bind(r):yr,qt=xt({get:yt,set:Lt});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Ht=>qt.value=Ht})}if(h)for(const H in h)Vm(h[H],o,r,H);if(p){const H=Ut(p)?p.call(r):p;Reflect.ownKeys(H).forEach(J=>{Da(J,H[J])})}v&&pg(v,t,"c");function I(H,J){Ft(J)?J.forEach(yt=>H(yt.bind(r))):J&&H(J.bind(r))}if(I(U1,b),I(ps,x),I(j1,S),I(G1,P),I(H1,A),I(B1,L),I(Y1,Y),I(X1,K),I(K1,ht),I(Um,M),I(bh,E),I(V1,et),Ft(st))if(st.length){const H=t.exposed||(t.exposed={});st.forEach(J=>{Object.defineProperty(H,J,{get:()=>r[J],set:yt=>r[J]=yt})})}else t.exposed||(t.exposed={});B&&t.render===yr&&(t.render=B),pt!=null&&(t.inheritAttrs=pt),gt&&(t.components=gt),V&&(t.directives=V)}function e_(t,n,r=yr){Ft(t)&&(t=bf(t));for(const o in t){const a=t[o];let u;me(a)?"default"in a?u=Ir(a.from||o,a.default,!0):u=Ir(a.from||o):u=Ir(a),Ee(u)?Object.defineProperty(n,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):n[o]=u}}function pg(t,n,r){Bn(Ft(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function Vm(t,n,r,o){const a=o.includes(".")?Im(r,o):()=>r[o];if(Re(t)){const u=n[t];Ut(u)&&De(a,u)}else if(Ut(t))De(a,t.bind(r));else if(me(t))if(Ft(t))t.forEach(u=>Vm(u,n,r,o));else{const u=Ut(t.handler)?t.handler.bind(r):n[t.handler];Ut(u)&&De(a,u,t)}}function wh(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(n);let p;return h?p=h:!a.length&&!r&&!o?p=n:(p={},a.length&&a.forEach(g=>Ya(p,g,f,!0)),Ya(p,n,f)),me(n)&&u.set(n,p),p}function Ya(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Ya(t,u,r,!0),a&&a.forEach(f=>Ya(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=n_[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const n_={data:gg,props:vg,emits:vg,methods:tl,computed:tl,beforeCreate:un,created:un,beforeMount:un,mounted:un,beforeUpdate:un,updated:un,beforeDestroy:un,beforeUnmount:un,destroyed:un,unmounted:un,activated:un,deactivated:un,errorCaptured:un,serverPrefetch:un,components:tl,directives:tl,watch:i_,provide:gg,inject:r_};function gg(t,n){return n?t?function(){return $e(Ut(t)?t.call(this,this):t,Ut(n)?n.call(this,this):n)}:n:t}function r_(t,n){return tl(bf(t),bf(n))}function bf(t){if(Ft(t)){const n={};for(let r=0;r<t.length;r++)n[t[r]]=t[r];return n}return t}function un(t,n){return t?[...new Set([].concat(t,n))]:n}function tl(t,n){return t?$e(Object.create(null),t,n):n}function vg(t,n){return t?Ft(t)&&Ft(n)?[...new Set([...t,...n])]:$e(Object.create(null),Xa(t),Xa(n??{})):n}function i_(t,n){if(!t)return n;if(!n)return t;const r=$e(Object.create(null),t);for(const o in n)r[o]=un(t[o],n[o]);return r}function Km(){return{app:null,config:{isNativeTag:Cx,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 o_=0;function s_(t,n){return function(o,a=null){Ut(o)||(o=$e({},o)),a!=null&&!me(a)&&(a=null);const u=Km(),f=new WeakSet;let h=!1;const p=u.app={_uid:o_++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:A_,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&Ut(g.install)?(f.add(g),g.install(p,...v)):Ut(g)&&(f.add(g),g(p,...v))),p},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),p},component(g,v){return v?(u.components[g]=v,p):u.components[g]},directive(g,v){return v?(u.directives[g]=v,p):u.directives[g]},mount(g,v,b){if(!h){const x=It(o,a);return x.appContext=u,v&&n?n(x,g):t(x,g,b),h=!0,p._container=g,g.__vue_app__=p,Lc(x.component)||x.component.proxy}},unmount(){h&&(t(null,p._container),delete p._container.__vue_app__)},provide(g,v){return u.provides[g]=v,p},runWithContext(g){Za=p;try{return g()}finally{Za=null}}};return p}}let Za=null;function Da(t,n){if(Ue){let r=Ue.provides;const o=Ue.parent&&Ue.parent.provides;o===r&&(r=Ue.provides=Object.create(o)),r[t]=n}}function Ir(t,n,r=!1){const o=Ue||Ye;if(o||Za){const a=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Za._context.provides;if(a&&t in a)return a[t];if(arguments.length>1)return r&&Ut(n)?n.call(o&&o.proxy):n}}function l_(t,n,r,o=!1){const a={},u={};ja(u,Ec,1),t.propsDefaults=Object.create(null),Xm(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:Cm(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function a_(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=le(a),[p]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let b=0;b<v.length;b++){let x=v[b];if(_c(t.emitsOptions,x))continue;const S=n[x];if(p)if(se(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const P=wr(x);a[P]=wf(p,h,P,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{Xm(t,n,a,u)&&(g=!0);let v;for(const b in h)(!n||!se(n,b)&&((v=so(b))===b||!se(n,v)))&&(p?r&&(r[b]!==void 0||r[v]!==void 0)&&(a[b]=wf(p,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!n||!se(n,b))&&(delete u[b],g=!0)}g&&Fr(t,"set","$attrs")}function Xm(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(Pa(p))continue;const g=n[p];let v;a&&se(a,v=wr(p))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:_c(t.emitsOptions,p)||(!(p in o)||g!==o[p])&&(o[p]=g,f=!0)}if(u){const p=le(r),g=h||be;for(let v=0;v<u.length;v++){const b=u[v];r[b]=wf(a,p,b,g[b],t,!se(g,b))}}return f}function wf(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=se(f,"default");if(h&&o===void 0){const p=f.default;if(f.type!==Function&&!f.skipFactory&&Ut(p)){const{propsDefaults:g}=a;r in g?o=g[r]:(ns(a),o=g[r]=p.call(null,n),Zi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===so(r))&&(o=!0))}return o}function Ym(t,n,r=!1){const o=n.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let p=!1;if(!Ut(t)){const v=b=>{p=!0;const[x,S]=Ym(b,n,!0);$e(f,x),S&&h.push(...S)};!r&&n.mixins.length&&n.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!p)return me(t)&&o.set(t,Uo),Uo;if(Ft(u))for(let v=0;v<u.length;v++){const b=wr(u[v]);mg(b)&&(f[b]=be)}else if(u)for(const v in u){const b=wr(v);if(mg(b)){const x=u[v],S=f[b]=Ft(x)||Ut(x)?{type:x}:$e({},x);if(S){const P=wg(Boolean,S.type),A=wg(String,S.type);S[0]=P>-1,S[1]=A<0||P<A,(P>-1||se(S,"default"))&&h.push(b)}}}const g=[f,h];return me(t)&&o.set(t,g),g}function mg(t){return t[0]!=="$"}function yg(t){const n=t&&t.toString().match(/^\s*(function|class) (\w+)/);return n?n[2]:t===null?"null":""}function bg(t,n){return yg(t)===yg(n)}function wg(t,n){return Ft(n)?n.findIndex(r=>bg(r,t)):Ut(n)&&bg(n,t)?0:-1}const Zm=t=>t[0]==="_"||t==="$stable",xh=t=>Ft(t)?t.map(tr):[tr(t)],c_=(t,n,r)=>{if(n._n)return n;const o=Jt((...a)=>xh(n(...a)),r);return o._c=!1,o},Jm=(t,n,r)=>{const o=t._ctx;for(const a in t){if(Zm(a))continue;const u=t[a];if(Ut(u))n[a]=c_(a,u,o);else if(u!=null){const f=xh(u);n[a]=()=>f}}},Qm=(t,n)=>{const r=xh(n);t.slots.default=()=>r},u_=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),ja(n,"_",r)):Jm(n,t.slots={})}else t.slots={},n&&Qm(t,n);ja(t.slots,Ec,1)},f_=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=be;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:($e(a,n),!r&&h===1&&delete a._):(u=!n.$stable,Jm(n,a)),f=n}else n&&(Qm(t,n),f={default:1});if(u)for(const h in a)!Zm(h)&&f[h]==null&&delete a[h]};function xf(t,n,r,o,a=!1){if(Ft(t)){t.forEach((x,S)=>xf(x,n&&(Ft(n)?n[S]:n),r,o,a));return}if(rl(o)&&!a)return;const u=o.shapeFlag&4?Lc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:p}=t,g=n&&n.r,v=h.refs===be?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==p&&(Re(g)?(v[g]=null,se(b,g)&&(b[g]=null)):Ee(g)&&(g.value=null)),Ut(p))_i(p,h,12,[f,v]);else{const x=Re(p),S=Ee(p);if(x||S){const P=()=>{if(t.f){const A=x?se(b,p)?b[p]:v[p]:p.value;a?Ft(A)&&eh(A,u):Ft(A)?A.includes(u)||A.push(u):x?(v[p]=[u],se(b,p)&&(b[p]=v[p])):(p.value=[u],t.k&&(v[t.k]=p.value))}else x?(v[p]=f,se(b,p)&&(b[p]=f)):S&&(p.value=f,t.k&&(v[t.k]=f))};f?(P.id=-1,Sn(P,r)):P()}}}const Sn=$1;function h_(t){return d_(t)}function d_(t,n){const r=af();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:p,setText:g,setElementText:v,parentNode:b,nextSibling:x,setScopeId:S=yr,insertStaticContent:P}=t,A=($,F,G,Q=null,it=null,at=null,St=!1,mt=null,lt=!!F.dynamicChildren)=>{if($===F)return;$&&!gr($,F)&&(Q=j($),Ht($,it,at,!0),$=null),F.patchFlag===-2&&(lt=!1,F.dynamicChildren=null);const{type:ft,ref:$t,shapeFlag:Nt}=F;switch(ft){case Tc:L($,F,G,Q);break;case Ln:T($,F,G,Q);break;case Bu:$==null&&M(F,G,Q,St);break;case ue:gt($,F,G,Q,it,at,St,mt,lt);break;default:Nt&1?B($,F,G,Q,it,at,St,mt,lt):Nt&6?V($,F,G,Q,it,at,St,mt,lt):(Nt&64||Nt&128)&&ft.process($,F,G,Q,it,at,St,mt,lt,ot)}$t!=null&&it&&xf($t,$&&$.ref,at,F||$,!F)},L=($,F,G,Q)=>{if($==null)o(F.el=h(F.children),G,Q);else{const it=F.el=$.el;F.children!==$.children&&g(it,F.children)}},T=($,F,G,Q)=>{$==null?o(F.el=p(F.children||""),G,Q):F.el=$.el},M=($,F,G,Q)=>{[$.el,$.anchor]=P($.children,F,G,Q,$.el,$.anchor)},R=({el:$,anchor:F},G,Q)=>{let it;for(;$&&$!==F;)it=x($),o($,G,Q),$=it;o(F,G,Q)},E=({el:$,anchor:F})=>{let G;for(;$&&$!==F;)G=x($),a($),$=G;a(F)},B=($,F,G,Q,it,at,St,mt,lt)=>{St=St||F.type==="svg",$==null?K(F,G,Q,it,at,St,mt,lt):et($,F,it,at,St,mt,lt)},K=($,F,G,Q,it,at,St,mt)=>{let lt,ft;const{type:$t,props:Nt,shapeFlag:Dt,transition:Bt,dirs:Gt}=$;if(lt=$.el=f($.type,at,Nt&&Nt.is,Nt),Dt&8?v(lt,$.children):Dt&16&&Y($.children,lt,null,Q,it,at&&$t!=="foreignObject",St,mt),Gt&&qi($,null,Q,"created"),ht(lt,$,$.scopeId,St,Q),Nt){for(const ie in Nt)ie!=="value"&&!Pa(ie)&&u(lt,ie,null,Nt[ie],at,$.children,Q,it,Ct);"value"in Nt&&u(lt,"value",null,Nt.value),(ft=Nt.onVnodeBeforeMount)&&dr(ft,Q,$)}Gt&&qi($,null,Q,"beforeMount");const te=p_(it,Bt);te&&Bt.beforeEnter(lt),o(lt,F,G),((ft=Nt&&Nt.onVnodeMounted)||te||Gt)&&Sn(()=>{ft&&dr(ft,Q,$),te&&Bt.enter(lt),Gt&&qi($,null,Q,"mounted")},it)},ht=($,F,G,Q,it)=>{if(G&&S($,G),Q)for(let at=0;at<Q.length;at++)S($,Q[at]);if(it){let at=it.subTree;if(F===at){const St=it.vnode;ht($,St,St.scopeId,St.slotScopeIds,it.parent)}}},Y=($,F,G,Q,it,at,St,mt,lt=0)=>{for(let ft=lt;ft<$.length;ft++){const $t=$[ft]=mt?gi($[ft]):tr($[ft]);A(null,$t,F,G,Q,it,at,St,mt)}},et=($,F,G,Q,it,at,St)=>{const mt=F.el=$.el;let{patchFlag:lt,dynamicChildren:ft,dirs:$t}=F;lt|=$.patchFlag&16;const Nt=$.props||be,Dt=F.props||be;let Bt;G&&Hi(G,!1),(Bt=Dt.onVnodeBeforeUpdate)&&dr(Bt,G,F,$),$t&&qi(F,$,G,"beforeUpdate"),G&&Hi(G,!0);const Gt=it&&F.type!=="foreignObject";if(ft?st($.dynamicChildren,ft,mt,G,Q,Gt,at):St||J($,F,mt,null,G,Q,Gt,at,!1),lt>0){if(lt&16)pt(mt,F,Nt,Dt,G,Q,it);else if(lt&2&&Nt.class!==Dt.class&&u(mt,"class",null,Dt.class,it),lt&4&&u(mt,"style",Nt.style,Dt.style,it),lt&8){const te=F.dynamicProps;for(let ie=0;ie<te.length;ie++){const fe=te[ie],oe=Nt[fe],en=Dt[fe];(en!==oe||fe==="value")&&u(mt,fe,oe,en,it,$.children,G,Q,Ct)}}lt&1&&$.children!==F.children&&v(mt,F.children)}else!St&&ft==null&&pt(mt,F,Nt,Dt,G,Q,it);((Bt=Dt.onVnodeUpdated)||$t)&&Sn(()=>{Bt&&dr(Bt,G,F,$),$t&&qi(F,$,G,"updated")},Q)},st=($,F,G,Q,it,at,St)=>{for(let mt=0;mt<F.length;mt++){const lt=$[mt],ft=F[mt],$t=lt.el&&(lt.type===ue||!gr(lt,ft)||lt.shapeFlag&70)?b(lt.el):G;A(lt,ft,$t,null,Q,it,at,St,!0)}},pt=($,F,G,Q,it,at,St)=>{if(G!==Q){if(G!==be)for(const mt in G)!Pa(mt)&&!(mt in Q)&&u($,mt,G[mt],null,St,F.children,it,at,Ct);for(const mt in Q){if(Pa(mt))continue;const lt=Q[mt],ft=G[mt];lt!==ft&&mt!=="value"&&u($,mt,ft,lt,St,F.children,it,at,Ct)}"value"in Q&&u($,"value",G.value,Q.value)}},gt=($,F,G,Q,it,at,St,mt,lt)=>{const ft=F.el=$?$.el:h(""),$t=F.anchor=$?$.anchor:h("");let{patchFlag:Nt,dynamicChildren:Dt,slotScopeIds:Bt}=F;Bt&&(mt=mt?mt.concat(Bt):Bt),$==null?(o(ft,G,Q),o($t,G,Q),Y(F.children,G,$t,it,at,St,mt,lt)):Nt>0&&Nt&64&&Dt&&$.dynamicChildren?(st($.dynamicChildren,Dt,G,it,at,St,mt),(F.key!=null||it&&F===it.subTree)&&t0($,F,!0)):J($,F,G,$t,it,at,St,mt,lt)},V=($,F,G,Q,it,at,St,mt,lt)=>{F.slotScopeIds=mt,$==null?F.shapeFlag&512?it.ctx.activate(F,G,Q,St,lt):z(F,G,Q,it,at,St,lt):k($,F,lt)},z=($,F,G,Q,it,at,St)=>{const mt=$.component=x_($,Q,it);if(kc($)&&(mt.ctx.renderer=ot),__(mt),mt.asyncDep){if(it&&it.registerDep(mt,I),!$.el){const lt=mt.subTree=It(Ln);T(null,lt,F,G)}return}I(mt,$,F,G,it,at,St)},k=($,F,G)=>{const Q=F.component=$.component;if(C1($,F,G))if(Q.asyncDep&&!Q.asyncResolved){H(Q,F,G);return}else Q.next=F,y1(Q.update),Q.update();else F.el=$.el,Q.vnode=F},I=($,F,G,Q,it,at,St)=>{const mt=()=>{if($.isMounted){let{next:$t,bu:Nt,u:Dt,parent:Bt,vnode:Gt}=$,te=$t,ie;Hi($,!1),$t?($t.el=Gt.el,H($,$t,St)):$t=Gt,Nt&&Oa(Nt),(ie=$t.props&&$t.props.onVnodeBeforeUpdate)&&dr(ie,Bt,$t,Gt),Hi($,!0);const fe=Iu($),oe=$.subTree;$.subTree=fe,A(oe,fe,b(oe.el),j(oe),$,it,at),$t.el=fe.el,te===null&&gh($,fe.el),Dt&&Sn(Dt,it),(ie=$t.props&&$t.props.onVnodeUpdated)&&Sn(()=>dr(ie,Bt,$t,Gt),it)}else{let $t;const{el:Nt,props:Dt}=F,{bm:Bt,m:Gt,parent:te}=$,ie=rl(F);if(Hi($,!1),Bt&&Oa(Bt),!ie&&($t=Dt&&Dt.onVnodeBeforeMount)&&dr($t,te,F),Hi($,!0),Nt&&Tt){const fe=()=>{$.subTree=Iu($),Tt(Nt,$.subTree,$,it,null)};ie?F.type.__asyncLoader().then(()=>!$.isUnmounted&&fe()):fe()}else{const fe=$.subTree=Iu($);A(null,fe,G,Q,$,it,at),F.el=fe.el}if(Gt&&Sn(Gt,it),!ie&&($t=Dt&&Dt.onVnodeMounted)){const fe=F;Sn(()=>dr($t,te,fe),it)}(F.shapeFlag&256||te&&rl(te.vnode)&&te.vnode.shapeFlag&256)&&$.a&&Sn($.a,it),$.isMounted=!0,F=G=Q=null}},lt=$.effect=new ih(mt,()=>ph(ft),$.scope),ft=$.update=()=>lt.run();ft.id=$.uid,Hi($,!0),ft()},H=($,F,G)=>{F.component=$;const Q=$.vnode.props;$.vnode=F,$.next=null,a_($,F.props,Q,G),f_($,F.children,G),fs(),cg(),hs()},J=($,F,G,Q,it,at,St,mt,lt=!1)=>{const ft=$&&$.children,$t=$?$.shapeFlag:0,Nt=F.children,{patchFlag:Dt,shapeFlag:Bt}=F;if(Dt>0){if(Dt&128){Lt(ft,Nt,G,Q,it,at,St,mt,lt);return}else if(Dt&256){yt(ft,Nt,G,Q,it,at,St,mt,lt);return}}Bt&8?($t&16&&Ct(ft,it,at),Nt!==ft&&v(G,Nt)):$t&16?Bt&16?Lt(ft,Nt,G,Q,it,at,St,mt,lt):Ct(ft,it,at,!0):($t&8&&v(G,""),Bt&16&&Y(Nt,G,Q,it,at,St,mt,lt))},yt=($,F,G,Q,it,at,St,mt,lt)=>{$=$||Uo,F=F||Uo;const ft=$.length,$t=F.length,Nt=Math.min(ft,$t);let Dt;for(Dt=0;Dt<Nt;Dt++){const Bt=F[Dt]=lt?gi(F[Dt]):tr(F[Dt]);A($[Dt],Bt,G,null,it,at,St,mt,lt)}ft>$t?Ct($,it,at,!0,!1,Nt):Y(F,G,Q,it,at,St,mt,lt,Nt)},Lt=($,F,G,Q,it,at,St,mt,lt)=>{let ft=0;const $t=F.length;let Nt=$.length-1,Dt=$t-1;for(;ft<=Nt&&ft<=Dt;){const Bt=$[ft],Gt=F[ft]=lt?gi(F[ft]):tr(F[ft]);if(gr(Bt,Gt))A(Bt,Gt,G,null,it,at,St,mt,lt);else break;ft++}for(;ft<=Nt&&ft<=Dt;){const Bt=$[Nt],Gt=F[Dt]=lt?gi(F[Dt]):tr(F[Dt]);if(gr(Bt,Gt))A(Bt,Gt,G,null,it,at,St,mt,lt);else break;Nt--,Dt--}if(ft>Nt){if(ft<=Dt){const Bt=Dt+1,Gt=Bt<$t?F[Bt].el:Q;for(;ft<=Dt;)A(null,F[ft]=lt?gi(F[ft]):tr(F[ft]),G,Gt,it,at,St,mt,lt),ft++}}else if(ft>Dt)for(;ft<=Nt;)Ht($[ft],it,at,!0),ft++;else{const Bt=ft,Gt=ft,te=new Map;for(ft=Gt;ft<=Dt;ft++){const Le=F[ft]=lt?gi(F[ft]):tr(F[ft]);Le.key!=null&&te.set(Le.key,ft)}let ie,fe=0;const oe=Dt-Gt+1;let en=!1,Mn=0;const mn=new Array(oe);for(ft=0;ft<oe;ft++)mn[ft]=0;for(ft=Bt;ft<=Nt;ft++){const Le=$[ft];if(fe>=oe){Ht(Le,it,at,!0);continue}let yn;if(Le.key!=null)yn=te.get(Le.key);else for(ie=Gt;ie<=Dt;ie++)if(mn[ie-Gt]===0&&gr(Le,F[ie])){yn=ie;break}yn===void 0?Ht(Le,it,at,!0):(mn[yn-Gt]=ft+1,yn>=Mn?Mn=yn:en=!0,A(Le,F[yn],G,null,it,at,St,mt,lt),fe++)}const lr=en?g_(mn):Uo;for(ie=lr.length-1,ft=oe-1;ft>=0;ft--){const Le=Gt+ft,yn=F[Le],Kt=Le+1<$t?F[Le+1].el:Q;mn[ft]===0?A(null,yn,G,Kt,it,at,St,mt,lt):en&&(ie<0||ft!==lr[ie]?qt(yn,G,Kt,2):ie--)}}},qt=($,F,G,Q,it=null)=>{const{el:at,type:St,transition:mt,children:lt,shapeFlag:ft}=$;if(ft&6){qt($.component.subTree,F,G,Q);return}if(ft&128){$.suspense.move(F,G,Q);return}if(ft&64){St.move($,F,G,ot);return}if(St===ue){o(at,F,G);for(let Nt=0;Nt<lt.length;Nt++)qt(lt[Nt],F,G,Q);o($.anchor,F,G);return}if(St===Bu){R($,F,G);return}if(Q!==2&&ft&1&&mt)if(Q===0)mt.beforeEnter(at),o(at,F,G),Sn(()=>mt.enter(at),it);else{const{leave:Nt,delayLeave:Dt,afterLeave:Bt}=mt,Gt=()=>o(at,F,G),te=()=>{Nt(at,()=>{Gt(),Bt&&Bt()})};Dt?Dt(at,Gt,te):te()}else o(at,F,G)},Ht=($,F,G,Q=!1,it=!1)=>{const{type:at,props:St,ref:mt,children:lt,dynamicChildren:ft,shapeFlag:$t,patchFlag:Nt,dirs:Dt}=$;if(mt!=null&&xf(mt,null,G,$,!0),$t&256){F.ctx.deactivate($);return}const Bt=$t&1&&Dt,Gt=!rl($);let te;if(Gt&&(te=St&&St.onVnodeBeforeUnmount)&&dr(te,F,$),$t&6)jt($.component,G,Q);else{if($t&128){$.suspense.unmount(G,Q);return}Bt&&qi($,null,F,"beforeUnmount"),$t&64?$.type.remove($,F,G,it,ot,Q):ft&&(at!==ue||Nt>0&&Nt&64)?Ct(ft,F,G,!1,!0):(at===ue&&Nt&384||!it&&$t&16)&&Ct(lt,F,G),Q&&Zt($)}(Gt&&(te=St&&St.onVnodeUnmounted)||Bt)&&Sn(()=>{te&&dr(te,F,$),Bt&&qi($,null,F,"unmounted")},G)},Zt=$=>{const{type:F,el:G,anchor:Q,transition:it}=$;if(F===ue){Xt(G,Q);return}if(F===Bu){E($);return}const at=()=>{a(G),it&&!it.persisted&&it.afterLeave&&it.afterLeave()};if($.shapeFlag&1&&it&&!it.persisted){const{leave:St,delayLeave:mt}=it,lt=()=>St(G,at);mt?mt($.el,at,lt):lt()}else at()},Xt=($,F)=>{let G;for(;$!==F;)G=x($),a($),$=G;a(F)},jt=($,F,G)=>{const{bum:Q,scope:it,update:at,subTree:St,um:mt}=$;Q&&Oa(Q),it.stop(),at&&(at.active=!1,Ht(St,$,F,G)),mt&&Sn(mt,F),Sn(()=>{$.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Ct=($,F,G,Q=!1,it=!1,at=0)=>{for(let St=at;St<$.length;St++)Ht($[St],F,G,Q,it)},j=$=>$.shapeFlag&6?j($.component.subTree):$.shapeFlag&128?$.suspense.next():x($.anchor||$.el),nt=($,F,G)=>{$==null?F._vnode&&Ht(F._vnode,null,null,!0):A(F._vnode||null,$,F,null,null,null,G),cg(),Pm(),F._vnode=$},ot={p:A,um:Ht,m:qt,r:Zt,mt:z,mc:Y,pc:J,pbc:st,n:j,o:t};let Mt,Tt;return n&&([Mt,Tt]=n(ot)),{render:nt,hydrate:Mt,createApp:s_(nt,Mt)}}function Hi({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function p_(t,n){return(!t||t&&!t.pendingBranch)&&n&&!n.persisted}function t0(t,n,r=!1){const o=t.children,a=n.children;if(Ft(o)&&Ft(a))for(let u=0;u<o.length;u++){const f=o[u];let h=a[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=a[u]=gi(a[u]),h.el=f.el),r||t0(f,h)),h.type===Tc&&(h.el=f.el)}}function g_(t){const n=t.slice(),r=[0];let o,a,u,f,h;const p=t.length;for(o=0;o<p;o++){const g=t[o];if(g!==0){if(a=r[r.length-1],t[a]<g){n[o]=a,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(n[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=n[f];return r}const v_=t=>t.__isTeleport,ue=Symbol.for("v-fgt"),Tc=Symbol.for("v-txt"),Ln=Symbol.for("v-cmt"),Bu=Symbol.for("v-stc"),ol=[];let qn=null;function ut(t=!1){ol.push(qn=t?null:[])}function e0(){ol.pop(),qn=ol[ol.length-1]||null}let es=1;function xg(t){es+=t}function n0(t){return t.dynamicChildren=es>0?qn||Uo:null,e0(),es>0&&qn&&qn.push(t),t}function At(t,n,r,o,a,u){return n0(ct(t,n,r,o,a,u,!0))}function Qt(t,n,r,o,a){return n0(It(t,n,r,o,a,!0))}function pl(t){return t?t.__v_isVNode===!0:!1}function gr(t,n){return t.type===n.type&&t.key===n.key}const Ec="__vInternal",r0=({key:t})=>t??null,$a=({ref:t,ref_key:n,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Re(t)||Ee(t)||Ut(t)?{i:Ye,r:t,k:n,f:!!r}:t:null);function ct(t,n=null,r=null,o=0,a=null,u=t===ue?0:1,f=!1,h=!1){const p={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&r0(n),ref:n&&$a(n),scopeId:Sc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Ye};return h?(_h(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Re(r)?8:16),es>0&&!f&&qn&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&qn.push(p),p}const It=m_;function m_(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===E1)&&(t=Ln),pl(t)){const h=Ci(t,n,!0);return r&&_h(h,r),es>0&&!u&&qn&&(h.shapeFlag&6?qn[qn.indexOf(t)]=h:qn.push(h)),h.patchFlag|=-2,h}if(T_(t)&&(t=t.__vccOpts),n){n=y_(n);let{class:h,style:p}=n;h&&!Re(h)&&(n.class=ve(h)),me(p)&&(Tm(p)&&!Ft(p)&&(p=$e({},p)),n.style=En(p))}const f=Re(t)?1:L1(t)?128:v_(t)?64:me(t)?4:Ut(t)?2:0;return ct(t,n,r,o,a,f,u,!0)}function y_(t){return t?Tm(t)||Ec in t?$e({},t):t:null}function Ci(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?Si(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&r0(h),ref:n&&n.ref?r&&a?Ft(a)?a.concat($a(n)):[a,$a(n)]:$a(n):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==ue?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ci(t.ssContent),ssFallback:t.ssFallback&&Ci(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function fn(t=" ",n=0){return It(Tc,null,t,n)}function ee(t="",n=!1){return n?(ut(),Qt(Ln,null,t)):It(Ln,null,t)}function tr(t){return t==null||typeof t=="boolean"?It(Ln):Ft(t)?It(ue,null,t.slice()):typeof t=="object"?gi(t):It(Tc,null,String(t))}function gi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ci(t)}function _h(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Ft(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),_h(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(Ec in n)?n._ctx=Ye:a===3&&Ye&&(Ye.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Ut(n)?(n={default:n,_ctx:Ye},r=32):(n=String(n),o&64?(r=16,n=[fn(n)]):r=8);t.children=n,t.shapeFlag|=r}function Si(...t){const n={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")n.class!==o.class&&(n.class=ve([n.class,o.class]));else if(a==="style")n.style=En([n.style,o.style]);else if(gc(a)){const u=n[a],f=o[a];f&&u!==f&&!(Ft(u)&&u.includes(f))&&(n[a]=u?[].concat(u,f):f)}else a!==""&&(n[a]=o[a])}return n}function dr(t,n,r,o=null){Bn(t,n,7,[r,o])}const b_=Km();let w_=0;function x_(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||b_,u={uid:w_++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new zx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ym(o,a),emitsOptions:Dm(o,a),emit:null,emitted:null,propsDefaults:be,inheritAttrs:o.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=n?n.root:u,u.emit=w1.bind(null,u),t.ce&&t.ce(u),u}let Ue=null;const Ll=()=>Ue||Ye;let Sh,zo,_g="__VUE_INSTANCE_SETTERS__";(zo=af()[_g])||(zo=af()[_g]=[]),zo.push(t=>Ue=t),Sh=t=>{zo.length>1?zo.forEach(n=>n(t)):zo[0](t)};const ns=t=>{Sh(t),t.scope.on()},Zi=()=>{Ue&&Ue.scope.off(),Sh(null)};function i0(t){return t.vnode.shapeFlag&4}let gl=!1;function __(t,n=!1){gl=n;const{props:r,children:o}=t.vnode,a=i0(t);l_(t,r,a,n),u_(t,o);const u=a?S_(t,n):void 0;return gl=!1,u}function S_(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=ah(new Proxy(t.ctx,Z1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?s0(t):null;ns(t),fs();const u=_i(o,t,0,[t.props,a]);if(hs(),Zi(),am(u)){if(u.then(Zi,Zi),n)return u.then(f=>{_f(t,f,n)}).catch(f=>{El(f,t,0)});t.asyncDep=u}else _f(t,u,n)}else o0(t,n)}function _f(t,n,r){Ut(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:me(n)&&(t.setupState=Lm(n)),o0(t,r)}let Sg;function o0(t,n,r){const o=t.type;if(!t.render){if(!n&&Sg&&!o.render){const a=o.template||wh(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:p}=o,g=$e($e({isCustomElement:u,delimiters:h},f),p);o.render=Sg(a,g)}}t.render=o.render||yr}{ns(t),fs();try{t_(t)}finally{hs(),Zi()}}}function k_(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(n,r){return An(t,"get","$attrs"),n[r]}}))}function s0(t){const n=r=>{t.exposed=r||{}};return{get attrs(){return k_(t)},slots:t.slots,emit:t.emit,expose:n}}function Lc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Lm(ah(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in il)return il[r](t)},has(n,r){return r in n||r in il}}))}function C_(t,n=!0){return Ut(t)?t.displayName||t.name:t.name||n&&t.__name}function T_(t){return Ut(t)&&"__vccOpts"in t}const xt=(t,n)=>g1(t,n,gl);function Al(t,n,r){const o=arguments.length;return o===2?me(n)&&!Ft(n)?pl(n)?It(t,null,[n]):It(t,n):It(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&pl(r)&&(r=[r]),It(t,n,r))}const E_=Symbol.for("v-scx"),L_=()=>Ir(E_),A_="3.3.8",M_="http://www.w3.org/2000/svg",Gi=typeof document<"u"?document:null,kg=Gi&&Gi.createElement("template"),N_={insert:(t,n,r)=>{n.insertBefore(t,r||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,r,o)=>{const a=n?Gi.createElementNS(M_,t):Gi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>Gi.createTextNode(t),createComment:t=>Gi.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Gi.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,r,o,a,u){const f=r?r.previousSibling:n.lastChild;if(a&&(a===u||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{kg.innerHTML=o?`<svg>${t}</svg>`:t;const h=kg.content;if(o){const p=h.firstChild;for(;p.firstChild;)h.appendChild(p.firstChild);h.removeChild(p)}n.insertBefore(h,r)}return[f?f.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}},ui="transition",Ks="animation",vl=Symbol("_vtc"),kh=(t,{slots:n})=>Al(q1,P_(t),n);kh.displayName="Transition";const l0={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};kh.props=$e({},qm,l0);const Bi=(t,n=[])=>{Ft(t)?t.forEach(r=>r(...n)):t&&t(...n)},Cg=t=>t?Ft(t)?t.some(n=>n.length>1):t.length>1:!1;function P_(t){const n={};for(const gt in t)gt in l0||(n[gt]=t[gt]);if(t.css===!1)return n;const{name:r="v",type:o,duration:a,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:p=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:x=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,P=O_(a),A=P&&P[0],L=P&&P[1],{onBeforeEnter:T,onEnter:M,onEnterCancelled:R,onLeave:E,onLeaveCancelled:B,onBeforeAppear:K=T,onAppear:ht=M,onAppearCancelled:Y=R}=n,et=(gt,V,z)=>{Wi(gt,V?v:h),Wi(gt,V?g:f),z&&z()},st=(gt,V)=>{gt._isLeaving=!1,Wi(gt,b),Wi(gt,S),Wi(gt,x),V&&V()},pt=gt=>(V,z)=>{const k=gt?ht:M,I=()=>et(V,gt,z);Bi(k,[V,I]),Tg(()=>{Wi(V,gt?p:u),fi(V,gt?v:h),Cg(k)||Eg(V,o,A,I)})};return $e(n,{onBeforeEnter(gt){Bi(T,[gt]),fi(gt,u),fi(gt,f)},onBeforeAppear(gt){Bi(K,[gt]),fi(gt,p),fi(gt,g)},onEnter:pt(!1),onAppear:pt(!0),onLeave(gt,V){gt._isLeaving=!0;const z=()=>st(gt,V);fi(gt,b),R_(),fi(gt,x),Tg(()=>{gt._isLeaving&&(Wi(gt,b),fi(gt,S),Cg(E)||Eg(gt,o,L,z))}),Bi(E,[gt,z])},onEnterCancelled(gt){et(gt,!1),Bi(R,[gt])},onAppearCancelled(gt){et(gt,!0),Bi(Y,[gt])},onLeaveCancelled(gt){st(gt),Bi(B,[gt])}})}function O_(t){if(t==null)return null;if(me(t))return[Wu(t.enter),Wu(t.leave)];{const n=Wu(t);return[n,n]}}function Wu(t){return fm(t)}function fi(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[vl]||(t[vl]=new Set)).add(n)}function Wi(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[vl];r&&(r.delete(n),r.size||(t[vl]=void 0))}function Tg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let D_=0;function Eg(t,n,r,o){const a=t._endId=++D_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=$_(t,n);if(!f)return o();const g=f+"end";let v=0;const b=()=>{t.removeEventListener(g,x),u()},x=S=>{S.target===t&&++v>=p&&b()};setTimeout(()=>{v<p&&b()},h+1),t.addEventListener(g,x)}function $_(t,n){const r=window.getComputedStyle(t),o=P=>(r[P]||"").split(", "),a=o(`${ui}Delay`),u=o(`${ui}Duration`),f=Lg(a,u),h=o(`${Ks}Delay`),p=o(`${Ks}Duration`),g=Lg(h,p);let v=null,b=0,x=0;n===ui?f>0&&(v=ui,b=f,x=u.length):n===Ks?g>0&&(v=Ks,b=g,x=p.length):(b=Math.max(f,g),v=b>0?f>g?ui:Ks:null,x=v?v===ui?u.length:p.length:0);const S=v===ui&&/\b(transform|all)(,|$)/.test(o(`${ui}Property`).toString());return{type:v,timeout:b,propCount:x,hasTransform:S}}function Lg(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Ag(r)+Ag(t[o])))}function Ag(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function R_(){return document.body.offsetHeight}function z_(t,n,r){const o=t[vl];o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}const Ch=Symbol("_vod"),Sf={beforeMount(t,{value:n},{transition:r}){t[Ch]=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Xs(t,n)},mounted(t,{value:n},{transition:r}){r&&n&&r.enter(t)},updated(t,{value:n,oldValue:r},{transition:o}){!n!=!r&&(o?n?(o.beforeEnter(t),Xs(t,!0),o.enter(t)):o.leave(t,()=>{Xs(t,!1)}):Xs(t,n))},beforeUnmount(t,{value:n}){Xs(t,n)}};function Xs(t,n){t.style.display=n?t[Ch]:"none"}function F_(t,n,r){const o=t.style,a=Re(r);if(r&&!a){if(n&&!Re(n))for(const u in n)r[u]==null&&kf(o,u,"");for(const u in r)kf(o,u,r[u])}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),Ch in t&&(o.display=u)}}const Mg=/\s*!important$/;function kf(t,n,r){if(Ft(r))r.forEach(o=>kf(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=I_(t,n);Mg.test(r)?t.setProperty(so(o),r.replace(Mg,""),"important"):t[o]=r}}const Ng=["Webkit","Moz","ms"],Uu={};function I_(t,n){const r=Uu[n];if(r)return r;let o=wr(n);if(o!=="filter"&&o in t)return Uu[n]=o;o=bc(o);for(let a=0;a<Ng.length;a++){const u=Ng[a]+o;if(u in t)return Uu[n]=u}return n}const Pg="http://www.w3.org/1999/xlink";function q_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Pg,n.slice(6,n.length)):t.setAttributeNS(Pg,n,r);else{const u=Rx(n);r==null||u&&!hm(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function H_(t,n,r,o,a,u,f){if(n==="innerHTML"||n==="textContent"){o&&f(o,a,u),t[n]=r??"";return}const h=t.tagName;if(n==="value"&&h!=="PROGRESS"&&!h.includes("-")){t._value=r;const g=h==="OPTION"?t.getAttribute("value"):t.value,v=r??"";g!==v&&(t.value=v),r==null&&t.removeAttribute(n);return}let p=!1;if(r===""||r==null){const g=typeof t[n];g==="boolean"?r=hm(r):r==null&&g==="string"?(r="",p=!0):g==="number"&&(r=0,p=!0)}try{t[n]=r}catch{}p&&t.removeAttribute(n)}function Io(t,n,r,o){t.addEventListener(n,r,o)}function B_(t,n,r,o){t.removeEventListener(n,r,o)}const Og=Symbol("_vei");function W_(t,n,r,o,a=null){const u=t[Og]||(t[Og]={}),f=u[n];if(o&&f)f.value=o;else{const[h,p]=U_(n);if(o){const g=u[n]=V_(o,a);Io(t,h,g,p)}else f&&(B_(t,h,f,p),u[n]=void 0)}}const Dg=/(?:Once|Passive|Capture)$/;function U_(t){let n;if(Dg.test(t)){n={};let o;for(;o=t.match(Dg);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):so(t.slice(2)),n]}let ju=0;const j_=Promise.resolve(),G_=()=>ju||(j_.then(()=>ju=0),ju=Date.now());function V_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Bn(K_(o,r.value),n,5,[o])};return r.value=t,r.attached=G_(),r}function K_(t,n){if(Ft(n)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},n.map(o=>a=>!a._stopped&&o&&o(a))}else return n}const $g=/^on[a-z]/,X_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?z_(t,o,a):n==="style"?F_(t,r,o):gc(n)?th(n)||W_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):Y_(t,n,o,a))?H_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),q_(t,n,o,a))};function Y_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&$g.test(n)&&Ut(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||$g.test(n)&&Re(r)?!1:n in t}const Rg=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ft(n)?r=>Oa(n,r):n};function Z_(t){t.target.composing=!0}function zg(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const Gu=Symbol("_assign"),J_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t[Gu]=Rg(a);const u=o||a.props&&a.props.type==="number";Io(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=lf(h)),t[Gu](h)}),r&&Io(t,"change",()=>{t.value=t.value.trim()}),n||(Io(t,"compositionstart",Z_),Io(t,"compositionend",zg),Io(t,"change",zg))},mounted(t,{value:n}){t.value=n??""},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t[Gu]=Rg(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&lf(t.value)===n))return;const f=n??"";t.value!==f&&(t.value=f)}},Q_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Cf=(t,n)=>r=>{if(!("key"in r))return;const o=so(r.key);if(n.some(a=>a===o||Q_[a]===o))return t(r)},tS=$e({patchProp:X_},N_);let Fg;function eS(){return Fg||(Fg=h_(tS))}const a0=(...t)=>{const n=eS().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=nS(o);if(!a)return;const u=n._component;!Ut(u)&&!u.render&&!u.template&&(u.template=a.innerHTML),a.innerHTML="";const f=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),f},n};function nS(t){return Re(t)?document.querySelector(t):t}const ao=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},rS={};function iS(t,n){const r=eo("RouterView");return ut(),Qt(r)}const oS=ao(rS,[["render",iS]]);/*!
2
+ * vue-router v4.2.5
3
+ * (c) 2023 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const qo=typeof window<"u";function sS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function Vu(t,n){const r={};for(const o in n){const a=n[o];r[o]=or(a)?a.map(t):t(a)}return r}const sl=()=>{},or=Array.isArray,lS=/\/$/,aS=t=>t.replace(lS,"");function Ku(t,n,r="/"){let o,a={},u="",f="";const h=n.indexOf("#");let p=n.indexOf("?");return h<p&&h>=0&&(p=-1),p>-1&&(o=n.slice(0,p),u=n.slice(p+1,h>-1?h:n.length),a=t(u)),h>-1&&(o=o||n.slice(0,h),f=n.slice(h,n.length)),o=hS(o??n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function cS(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function Ig(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function uS(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&rs(n.matched[o],r.matched[a])&&c0(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function rs(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function c0(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!fS(t[r],n[r]))return!1;return!0}function fS(t,n){return or(t)?qg(t,n):or(n)?qg(n,t):t===n}function qg(t,n){return or(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function hS(t,n){if(t.startsWith("/"))return t;if(!t)return n;const r=n.split("/"),o=t.split("/"),a=o[o.length-1];(a===".."||a===".")&&o.push("");let u=r.length-1,f,h;for(f=0;f<o.length;f++)if(h=o[f],h!==".")if(h==="..")u>1&&u--;else break;return r.slice(0,u).join("/")+"/"+o.slice(f-(f===o.length?1:0)).join("/")}var ml;(function(t){t.pop="pop",t.push="push"})(ml||(ml={}));var ll;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ll||(ll={}));function dS(t){if(!t)if(qo){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),aS(t)}const pS=/^[^#]+#/;function gS(t,n){return t.replace(pS,"#")+n}function vS(t,n){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:n.behavior,left:o.left-r.left-(n.left||0),top:o.top-r.top-(n.top||0)}}const Ac=()=>({left:window.pageXOffset,top:window.pageYOffset});function mS(t){let n;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;n=vS(a,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function Hg(t,n){return(history.state?history.state.position-n:-1)+t}const Tf=new Map;function yS(t,n){Tf.set(t,n)}function bS(t){const n=Tf.get(t);return Tf.delete(t),n}let wS=()=>location.protocol+"//"+location.host;function u0(t,n){const{pathname:r,search:o,hash:a}=n,u=t.indexOf("#");if(u>-1){let h=a.includes(t.slice(u))?t.slice(u).length:1,p=a.slice(h);return p[0]!=="/"&&(p="/"+p),Ig(p,"")}return Ig(r,t)+o+a}function xS(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=u0(t,location),P=r.value,A=n.value;let L=0;if(x){if(r.value=S,n.value=x,f&&f===P){f=null;return}L=A?x.position-A.position:0}else o(S);a.forEach(T=>{T(r.value,P,{delta:L,type:ml.pop,direction:L?L>0?ll.forward:ll.back:ll.unknown})})};function p(){f=r.value}function g(x){a.push(x);const S=()=>{const P=a.indexOf(x);P>-1&&a.splice(P,1)};return u.push(S),S}function v(){const{history:x}=window;x.state&&x.replaceState(pe({},x.state,{scroll:Ac()}),"")}function b(){for(const x of u)x();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:p,listen:g,destroy:b}}function Bg(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?Ac():null}}function _S(t){const{history:n,location:r}=window,o={value:u0(t,r)},a={value:n.state};a.value||u(o.value,{back:null,current:o.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function u(p,g,v){const b=t.indexOf("#"),x=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+p:wS()+t+p;try{n[v?"replaceState":"pushState"](g,"",x),a.value=g}catch(S){console.error(S),r[v?"replace":"assign"](x)}}function f(p,g){const v=pe({},n.state,Bg(a.value.back,p,a.value.forward,!0),g,{position:a.value.position});u(p,v,!0),o.value=p}function h(p,g){const v=pe({},a.value,n.state,{forward:p,scroll:Ac()});u(v.current,v,!0);const b=pe({},Bg(o.value,p,null),{position:v.position+1},g);u(p,b,!1),o.value=p}return{location:o,state:a,push:h,replace:f}}function SS(t){t=dS(t);const n=_S(t),r=xS(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=pe({location:"",base:t,go:o,createHref:gS.bind(null,t)},n,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n.state.value}),a}function kS(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),SS(t)}function CS(t){return typeof t=="string"||t&&typeof t=="object"}function f0(t){return typeof t=="string"||typeof t=="symbol"}const hi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},h0=Symbol("");var Wg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Wg||(Wg={}));function is(t,n){return pe(new Error,{type:t,[h0]:!0},n)}function Pr(t,n){return t instanceof Error&&h0 in t&&(n==null||!!(t.type&n))}const Ug="[^/]+?",TS={sensitive:!1,strict:!1,start:!0,end:!0},ES=/[.+*?^${}()[\]/\\]/g;function LS(t,n){const r=pe({},TS,n),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(a+="/");for(let b=0;b<g.length;b++){const x=g[b];let S=40+(r.sensitive?.25:0);if(x.type===0)b||(a+="/"),a+=x.value.replace(ES,"\\$&"),S+=40;else if(x.type===1){const{value:P,repeatable:A,optional:L,regexp:T}=x;u.push({name:P,repeatable:A,optional:L});const M=T||Ug;if(M!==Ug){S+=10;try{new RegExp(`(${M})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${P}" (${M}): `+E.message)}}let R=A?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;b||(R=L&&g.length<2?`(?:/${R})`:"/"+R),L&&(R+="?"),a+=R,S+=20,L&&(S+=-8),A&&(S+=-20),M===".*"&&(S+=-50)}v.push(S)}o.push(v)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const f=new RegExp(a,r.sensitive?"":"i");function h(g){const v=g.match(f),b={};if(!v)return null;for(let x=1;x<v.length;x++){const S=v[x]||"",P=u[x-1];b[P.name]=S&&P.repeatable?S.split("/"):S}return b}function p(g){let v="",b=!1;for(const x of t){(!b||!v.endsWith("/"))&&(v+="/"),b=!1;for(const S of x)if(S.type===0)v+=S.value;else if(S.type===1){const{value:P,repeatable:A,optional:L}=S,T=P in g?g[P]:"";if(or(T)&&!A)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const M=or(T)?T.join("/"):T;if(!M)if(L)x.length<2&&(v.endsWith("/")?v=v.slice(0,-1):b=!0);else throw new Error(`Missing required param "${P}"`);v+=M}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:p}}function AS(t,n){let r=0;for(;r<t.length&&r<n.length;){const o=n[r]-t[r];if(o)return o;r++}return t.length<n.length?t.length===1&&t[0]===40+40?-1:1:t.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function MS(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=AS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(jg(o))return 1;if(jg(a))return-1}return a.length-o.length}function jg(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const NS={type:0,value:""},PS=/[a-zA-Z0-9_]/;function OS(t){if(!t)return[[]];if(t==="/")return[[NS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,p,g="",v="";function b(){g&&(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(p==="*"||p==="+")&&n(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:v,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):n("Invalid state to consume buffer"),g="")}function x(){g+=p}for(;h<t.length;){if(p=t[h++],p==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:p==="/"?(g&&b(),f()):p===":"?(b(),r=1):x();break;case 4:x(),r=o;break;case 1:p==="("?r=2:PS.test(p)?x():(b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--);break;case 2:p===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+p:r=3:v+=p;break;case 3:b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--,v="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function DS(t,n,r){const o=LS(OS(t.path),r),a=pe(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function $S(t,n){const r=[],o=new Map;n=Kg({strict:!1,end:!0,sensitive:!1},n);function a(v){return o.get(v)}function u(v,b,x){const S=!x,P=RS(v);P.aliasOf=x&&x.record;const A=Kg(n,v),L=[P];if("alias"in v){const R=typeof v.alias=="string"?[v.alias]:v.alias;for(const E of R)L.push(pe({},P,{components:x?x.record.components:P.components,path:E,aliasOf:x?x.record:P}))}let T,M;for(const R of L){const{path:E}=R;if(b&&E[0]!=="/"){const B=b.record.path,K=B[B.length-1]==="/"?"":"/";R.path=b.record.path+(E&&K+E)}if(T=DS(R,b,A),x?x.alias.push(T):(M=M||T,M!==T&&M.alias.push(T),S&&v.name&&!Vg(T)&&f(v.name)),P.children){const B=P.children;for(let K=0;K<B.length;K++)u(B[K],T,x&&x.children[K])}x=x||T,(T.record.components&&Object.keys(T.record.components).length||T.record.name||T.record.redirect)&&p(T)}return M?()=>{f(M)}:sl}function f(v){if(f0(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function p(v){let b=0;for(;b<r.length&&MS(v,r[b])>=0&&(v.record.path!==r[b].record.path||!d0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!Vg(v)&&o.set(v.record.name,v)}function g(v,b){let x,S={},P,A;if("name"in v&&v.name){if(x=o.get(v.name),!x)throw is(1,{location:v});A=x.record.name,S=pe(Gg(b.params,x.keys.filter(M=>!M.optional).map(M=>M.name)),v.params&&Gg(v.params,x.keys.map(M=>M.name))),P=x.stringify(S)}else if("path"in v)P=v.path,x=r.find(M=>M.re.test(P)),x&&(S=x.parse(P),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(M=>M.re.test(b.path)),!x)throw is(1,{location:v,currentLocation:b});A=x.record.name,S=pe({},b.params,v.params),P=x.stringify(S)}const L=[];let T=x;for(;T;)L.unshift(T.record),T=T.parent;return{name:A,path:P,params:S,matched:L,meta:FS(L)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function Gg(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function RS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:zS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function zS(t){const n={},r=t.props||!1;if("component"in t)n.default=r;else for(const o in t.components)n[o]=typeof r=="object"?r[o]:r;return n}function Vg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function FS(t){return t.reduce((n,r)=>pe(n,r.meta),{})}function Kg(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function d0(t,n){return n.children.some(r=>r===t||d0(t,r))}const p0=/#/g,IS=/&/g,qS=/\//g,HS=/=/g,BS=/\?/g,g0=/\+/g,WS=/%5B/g,US=/%5D/g,v0=/%5E/g,jS=/%60/g,m0=/%7B/g,GS=/%7C/g,y0=/%7D/g,VS=/%20/g;function Th(t){return encodeURI(""+t).replace(GS,"|").replace(WS,"[").replace(US,"]")}function KS(t){return Th(t).replace(m0,"{").replace(y0,"}").replace(v0,"^")}function Ef(t){return Th(t).replace(g0,"%2B").replace(VS,"+").replace(p0,"%23").replace(IS,"%26").replace(jS,"`").replace(m0,"{").replace(y0,"}").replace(v0,"^")}function XS(t){return Ef(t).replace(HS,"%3D")}function YS(t){return Th(t).replace(p0,"%23").replace(BS,"%3F")}function ZS(t){return t==null?"":YS(t).replace(qS,"%2F")}function Ja(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function JS(t){const n={};if(t===""||t==="?")return n;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<o.length;++a){const u=o[a].replace(g0," "),f=u.indexOf("="),h=Ja(f<0?u:u.slice(0,f)),p=f<0?null:Ja(u.slice(f+1));if(h in n){let g=n[h];or(g)||(g=n[h]=[g]),g.push(p)}else n[h]=p}return n}function Xg(t){let n="";for(let r in t){const o=t[r];if(r=XS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(or(o)?o.map(u=>u&&Ef(u)):[o&&Ef(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function QS(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=or(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const tk=Symbol(""),Yg=Symbol(""),Eh=Symbol(""),b0=Symbol(""),Lf=Symbol("");function Ys(){let t=[];function n(o){return t.push(o),()=>{const a=t.indexOf(o);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:n,list:()=>t.slice(),reset:r}}function vi(t,n,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=b=>{b===!1?h(is(4,{from:r,to:n})):b instanceof Error?h(b):CS(b)?h(is(2,{from:n,to:b})):(u&&o.enterCallbacks[a]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[a],n,r,p);let v=Promise.resolve(g);t.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function Xu(t,n,r,o){const a=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(n!=="beforeRouteEnter"&&!u.instances[f]))if(ek(h)){const g=(h.__vccOpts||h)[n];g&&a.push(vi(g,r,o,u,f))}else{let p=h();a.push(()=>p.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=sS(g)?g.default:g;u.components[f]=v;const x=(v.__vccOpts||v)[n];return x&&vi(x,r,o,u,f)()}))}}return a}function ek(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Zg(t){const n=Ir(Eh),r=Ir(b0),o=xt(()=>n.resolve(U(t.to))),a=xt(()=>{const{matched:p}=o.value,{length:g}=p,v=p[g-1],b=r.matched;if(!v||!b.length)return-1;const x=b.findIndex(rs.bind(null,v));if(x>-1)return x;const S=Jg(p[g-2]);return g>1&&Jg(v)===S&&b[b.length-1].path!==S?b.findIndex(rs.bind(null,p[g-2])):x}),u=xt(()=>a.value>-1&&ok(r.params,o.value.params)),f=xt(()=>a.value>-1&&a.value===r.matched.length-1&&c0(r.params,o.value.params));function h(p={}){return ik(p)?n[U(t.replace)?"replace":"push"](U(t.to)).catch(sl):Promise.resolve()}return{route:o,href:xt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const nk=re({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:Zg,setup(t,{slots:n}){const r=Hn(Zg(t)),{options:o}=Ir(Eh),a=xt(()=>({[Qg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Qg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:Al("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),rk=nk;function ik(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function ok(t,n){for(const r in n){const o=n[r],a=t[r];if(typeof o=="string"){if(o!==a)return!1}else if(!or(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function Jg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Qg=(t,n,r)=>t??n??r,sk=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=Ir(Lf),a=xt(()=>t.route||o.value),u=Ir(Yg,0),f=xt(()=>{let g=U(u);const{matched:v}=a.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=xt(()=>a.value.matched[f.value]);Da(Yg,xt(()=>f.value+1)),Da(tk,h),Da(Lf,a);const p=Yt();return De(()=>[p.value,h.value,t.name],([g,v,b],[x,S,P])=>{v&&(v.instances[b]=g,S&&S!==v&&g&&g===x&&(v.leaveGuards.size||(v.leaveGuards=S.leaveGuards),v.updateGuards.size||(v.updateGuards=S.updateGuards))),g&&v&&(!S||!rs(v,S)||!x)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,v=t.name,b=h.value,x=b&&b.components[v];if(!x)return tv(r.default,{Component:x,route:g});const S=b.props[v],P=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=Al(x,pe({},P,n,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(b.instances[v]=null)},ref:p}));return tv(r.default,{Component:L,route:g})||L}}});function tv(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const lk=sk;function ak(t){const n=$S(t.routes,t),r=t.parseQuery||JS,o=t.stringifyQuery||Xg,a=t.history,u=Ys(),f=Ys(),h=Ys(),p=ds(hi);let g=hi;qo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Vu.bind(null,j=>""+j),b=Vu.bind(null,ZS),x=Vu.bind(null,Ja);function S(j,nt){let ot,Mt;return f0(j)?(ot=n.getRecordMatcher(j),Mt=nt):Mt=j,n.addRoute(Mt,ot)}function P(j){const nt=n.getRecordMatcher(j);nt&&n.removeRoute(nt)}function A(){return n.getRoutes().map(j=>j.record)}function L(j){return!!n.getRecordMatcher(j)}function T(j,nt){if(nt=pe({},nt||p.value),typeof j=="string"){const G=Ku(r,j,nt.path),Q=n.resolve({path:G.path},nt),it=a.createHref(G.fullPath);return pe(G,Q,{params:x(Q.params),hash:Ja(G.hash),redirectedFrom:void 0,href:it})}let ot;if("path"in j)ot=pe({},j,{path:Ku(r,j.path,nt.path).path});else{const G=pe({},j.params);for(const Q in G)G[Q]==null&&delete G[Q];ot=pe({},j,{params:b(G)}),nt.params=b(nt.params)}const Mt=n.resolve(ot,nt),Tt=j.hash||"";Mt.params=v(x(Mt.params));const $=cS(o,pe({},j,{hash:KS(Tt),path:Mt.path})),F=a.createHref($);return pe({fullPath:$,hash:Tt,query:o===Xg?QS(j.query):j.query||{}},Mt,{redirectedFrom:void 0,href:F})}function M(j){return typeof j=="string"?Ku(r,j,p.value.path):pe({},j)}function R(j,nt){if(g!==j)return is(8,{from:nt,to:j})}function E(j){return ht(j)}function B(j){return E(pe(M(j),{replace:!0}))}function K(j){const nt=j.matched[j.matched.length-1];if(nt&&nt.redirect){const{redirect:ot}=nt;let Mt=typeof ot=="function"?ot(j):ot;return typeof Mt=="string"&&(Mt=Mt.includes("?")||Mt.includes("#")?Mt=M(Mt):{path:Mt},Mt.params={}),pe({query:j.query,hash:j.hash,params:"path"in Mt?{}:j.params},Mt)}}function ht(j,nt){const ot=g=T(j),Mt=p.value,Tt=j.state,$=j.force,F=j.replace===!0,G=K(ot);if(G)return ht(pe(M(G),{state:typeof G=="object"?pe({},Tt,G.state):Tt,force:$,replace:F}),nt||ot);const Q=ot;Q.redirectedFrom=nt;let it;return!$&&uS(o,Mt,ot)&&(it=is(16,{to:Q,from:Mt}),qt(Mt,Mt,!0,!1)),(it?Promise.resolve(it):st(Q,Mt)).catch(at=>Pr(at)?Pr(at,2)?at:Lt(at):J(at,Q,Mt)).then(at=>{if(at){if(Pr(at,2))return ht(pe({replace:F},M(at.to),{state:typeof at.to=="object"?pe({},Tt,at.to.state):Tt,force:$}),nt||Q)}else at=gt(Q,Mt,!0,F,Tt);return pt(Q,Mt,at),at})}function Y(j,nt){const ot=R(j,nt);return ot?Promise.reject(ot):Promise.resolve()}function et(j){const nt=Xt.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(j):j()}function st(j,nt){let ot;const[Mt,Tt,$]=ck(j,nt);ot=Xu(Mt.reverse(),"beforeRouteLeave",j,nt);for(const G of Mt)G.leaveGuards.forEach(Q=>{ot.push(vi(Q,j,nt))});const F=Y.bind(null,j,nt);return ot.push(F),Ct(ot).then(()=>{ot=[];for(const G of u.list())ot.push(vi(G,j,nt));return ot.push(F),Ct(ot)}).then(()=>{ot=Xu(Tt,"beforeRouteUpdate",j,nt);for(const G of Tt)G.updateGuards.forEach(Q=>{ot.push(vi(Q,j,nt))});return ot.push(F),Ct(ot)}).then(()=>{ot=[];for(const G of $)if(G.beforeEnter)if(or(G.beforeEnter))for(const Q of G.beforeEnter)ot.push(vi(Q,j,nt));else ot.push(vi(G.beforeEnter,j,nt));return ot.push(F),Ct(ot)}).then(()=>(j.matched.forEach(G=>G.enterCallbacks={}),ot=Xu($,"beforeRouteEnter",j,nt),ot.push(F),Ct(ot))).then(()=>{ot=[];for(const G of f.list())ot.push(vi(G,j,nt));return ot.push(F),Ct(ot)}).catch(G=>Pr(G,8)?G:Promise.reject(G))}function pt(j,nt,ot){h.list().forEach(Mt=>et(()=>Mt(j,nt,ot)))}function gt(j,nt,ot,Mt,Tt){const $=R(j,nt);if($)return $;const F=nt===hi,G=qo?history.state:{};ot&&(Mt||F?a.replace(j.fullPath,pe({scroll:F&&G&&G.scroll},Tt)):a.push(j.fullPath,Tt)),p.value=j,qt(j,nt,ot,F),Lt()}let V;function z(){V||(V=a.listen((j,nt,ot)=>{if(!jt.listening)return;const Mt=T(j),Tt=K(Mt);if(Tt){ht(pe(Tt,{replace:!0}),Mt).catch(sl);return}g=Mt;const $=p.value;qo&&yS(Hg($.fullPath,ot.delta),Ac()),st(Mt,$).catch(F=>Pr(F,12)?F:Pr(F,2)?(ht(F.to,Mt).then(G=>{Pr(G,20)&&!ot.delta&&ot.type===ml.pop&&a.go(-1,!1)}).catch(sl),Promise.reject()):(ot.delta&&a.go(-ot.delta,!1),J(F,Mt,$))).then(F=>{F=F||gt(Mt,$,!1),F&&(ot.delta&&!Pr(F,8)?a.go(-ot.delta,!1):ot.type===ml.pop&&Pr(F,20)&&a.go(-1,!1)),pt(Mt,$,F)}).catch(sl)}))}let k=Ys(),I=Ys(),H;function J(j,nt,ot){Lt(j);const Mt=I.list();return Mt.length?Mt.forEach(Tt=>Tt(j,nt,ot)):console.error(j),Promise.reject(j)}function yt(){return H&&p.value!==hi?Promise.resolve():new Promise((j,nt)=>{k.add([j,nt])})}function Lt(j){return H||(H=!j,z(),k.list().forEach(([nt,ot])=>j?ot(j):nt()),k.reset()),j}function qt(j,nt,ot,Mt){const{scrollBehavior:Tt}=t;if(!qo||!Tt)return Promise.resolve();const $=!ot&&bS(Hg(j.fullPath,0))||(Mt||!ot)&&history.state&&history.state.scroll||null;return Hr().then(()=>Tt(j,nt,$)).then(F=>F&&mS(F)).catch(F=>J(F,j,nt))}const Ht=j=>a.go(j);let Zt;const Xt=new Set,jt={currentRoute:p,listening:!0,addRoute:S,removeRoute:P,hasRoute:L,getRoutes:A,resolve:T,options:t,push:E,replace:B,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:I.add,isReady:yt,install(j){const nt=this;j.component("RouterLink",rk),j.component("RouterView",lk),j.config.globalProperties.$router=nt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>U(p)}),qo&&!Zt&&p.value===hi&&(Zt=!0,E(a.location).catch(Tt=>{}));const ot={};for(const Tt in hi)Object.defineProperty(ot,Tt,{get:()=>p.value[Tt],enumerable:!0});j.provide(Eh,nt),j.provide(b0,Cm(ot)),j.provide(Lf,p);const Mt=j.unmount;Xt.add(j),j.unmount=function(){Xt.delete(j),Xt.size<1&&(g=hi,V&&V(),V=null,p.value=hi,Zt=!1,H=!1),Mt()}}};function Ct(j){return j.reduce((nt,ot)=>nt.then(()=>et(ot)),Promise.resolve())}return jt}function ck(t,n){const r=[],o=[],a=[],u=Math.max(n.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=n.matched[f];h&&(t.matched.find(g=>rs(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>rs(g,p))||a.push(p))}return[r,o,a]}function Kr(t){return t.split("-")[0]}function Xo(t){return t.split("-")[1]}function Ml(t){return["top","bottom"].includes(Kr(t))?"x":"y"}function Lh(t){return t==="y"?"height":"width"}function ev(t){let{reference:n,floating:r,placement:o}=t;const a=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;let f;switch(Kr(o)){case"top":f={x:a,y:n.y-r.height};break;case"bottom":f={x:a,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-r.width,y:u};break;default:f={x:n.x,y:n.y}}const h=Ml(o),p=Lh(h);switch(Xo(o)){case"start":f[h]=f[h]-(n[p]/2-r[p]/2);break;case"end":f[h]=f[h]+(n[p]/2-r[p]/2);break}return f}const uk=async(t,n,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:g}=ev({...h,placement:o}),v=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:P}=u[x],{x:A,y:L,data:T,reset:M}=await P({x:p,y:g,initialPlacement:o,placement:v,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:n}});if(p=A??p,g=L??g,b={...b,[S]:T??{}},M){typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(h=M.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:a}):M.rects),{x:p,y:g}=ev({...h,placement:v})),x=-1;continue}}return{x:p,y:g,placement:v,strategy:a,middlewareData:b}};function fk(t){return{top:0,right:0,bottom:0,left:0,...t}}function w0(t){return typeof t!="number"?fk(t):{top:t,right:t,bottom:t,left:t}}function Af(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Mc(t,n){n===void 0&&(n={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:p="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:x=0}=n,S=w0(x),A=f[b?v==="floating"?"reference":"floating":v],L=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:p,rootBoundary:g}),T=Af(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:L.top-T.top+S.top,bottom:T.bottom-L.bottom+S.bottom,left:L.left-T.left+S.left,right:T.right-L.right+S.right}}const hk=Math.min,Ui=Math.max;function Mf(t,n,r){return Ui(t,hk(n,r))}const dk=t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:o=0}=t??{},{x:a,y:u,placement:f,rects:h,platform:p}=n;if(r==null)return{};const g=w0(o),v={x:a,y:u},b=Kr(f),x=Ml(b),S=Lh(x),P=await p.getDimensions({element:r}),A=x==="y"?"top":"left",L=x==="y"?"bottom":"right",T=h.reference[S]+h.reference[x]-v[x]-h.floating[S],M=v[x]-h.reference[x],R=await p.getOffsetParent({element:r}),E=R?x==="y"?R.clientHeight||0:R.clientWidth||0:0,B=T/2-M/2,K=g[A],ht=E-P[S]-g[L],Y=E/2-P[S]/2+B,et=Mf(K,Y,ht);return{data:{[x]:et,centerOffset:Y-et}}}}),pk={left:"right",right:"left",bottom:"top",top:"bottom"};function Qa(t){return t.replace(/left|right|bottom|top/g,n=>pk[n])}function x0(t,n){const r=Xo(t)==="start",o=Ml(t),a=Lh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Qa(u)),{main:u,cross:Qa(u)}}const gk={start:"end",end:"start"};function Nf(t){return t.replace(/start|end/g,n=>gk[n])}const vk=["top","right","bottom","left"],mk=vk.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function yk(t,n,r){return(t?[...r.filter(a=>Xo(a)===t),...r.filter(a=>Xo(a)!==t)]:r.filter(a=>Kr(a)===a)).filter(a=>t?Xo(a)===t||(n?Nf(a)!==a:!1):!0)}const bk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var r,o,a,u,f,h;const{x:p,y:g,rects:v,middlewareData:b,placement:x}=n,{alignment:S=null,allowedPlacements:P=mk,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const T=yk(S,A,P),M=await Mc(n,L),R=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,E=T[R],{main:B,cross:K}=x0(E,v);if(x!==E)return{x:p,y:g,reset:{placement:T[0]}};const ht=[M[Kr(E)],M[B],M[K]],Y=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:E,overflows:ht}],et=T[R+1];if(et)return{data:{index:R+1,overflows:Y},reset:{placement:et}};const st=Y.slice().sort((gt,V)=>gt.overflows[0]-V.overflows[0]),pt=(h=st.find(gt=>{let{overflows:V}=gt;return V.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:pt??st[0].placement}}}}};function wk(t){const n=Qa(t);return[Nf(t),n,Nf(n)]}const xk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:a,middlewareData:u,rects:f,initialPlacement:h}=n;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",flipAlignment:x=!0,...S}=t,P=Kr(a),L=v||(P===h||!x?[Qa(h)]:wk(h)),T=[h,...L],M=await Mc(n,S),R=[];let E=((o=u.flip)==null?void 0:o.overflows)||[];if(p&&R.push(M[P]),g){const{main:Y,cross:et}=x0(a,f);R.push(M[Y],M[et])}if(E=[...E,{placement:a,overflows:R}],!R.every(Y=>Y<=0)){var B,K;const Y=((B=(K=u.flip)==null?void 0:K.index)!=null?B:0)+1,et=T[Y];if(et)return{data:{index:Y,overflows:E},reset:{placement:et}};let st="bottom";switch(b){case"bestFit":{var ht;const pt=(ht=E.slice().sort((gt,V)=>gt.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0)-V.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0))[0])==null?void 0:ht.placement;pt&&(st=pt);break}case"initialPlacement":st=h;break}return{data:{skip:!0},reset:{placement:st}}}return{}}}};function _k(t){let{placement:n,rects:r,value:o}=t;const a=Kr(n),u=["left","top"].includes(a)?-1:1,f=typeof o=="function"?o({...r,placement:n}):o,{mainAxis:h,crossAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return Ml(a)==="x"?{x:p,y:h*u}:{x:h*u,y:p}}const Sk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){const{x:r,y:o,placement:a,rects:u}=n,f=_k({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function kk(t){return t==="x"?"y":"x"}const Ck=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:a}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:T,y:M}=L;return{x:T,y:M}}},...p}=t,g={x:r,y:o},v=await Mc(n,p),b=Ml(Kr(a)),x=kk(b);let S=g[b],P=g[x];if(u){const L=b==="y"?"top":"left",T=b==="y"?"bottom":"right",M=S+v[L],R=S-v[T];S=Mf(M,S,R)}if(f){const L=x==="y"?"top":"left",T=x==="y"?"bottom":"right",M=P+v[L],R=P-v[T];P=Mf(M,P,R)}const A=h.fn({...n,[b]:S,[x]:P});return{...A,data:{x:A.x-r,y:A.y-o}}}}},Tk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r;const{placement:o,rects:a,middlewareData:u}=n,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const p=await Mc(n,h),g=Kr(o),v=Xo(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=v?"left":"right"):(x=g,b=v?"top":"bottom");const S=Ui(p.left,0),P=Ui(p.right,0),A=Ui(p.top,0),L=Ui(p.bottom,0),T={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Ui(p.top,p.bottom)):p[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||P!==0?S+P:Ui(p.left,p.right)):p[x])};return f==null||f({...T,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Ah(t){return(t==null?void 0:t.toString())==="[object Window]"}function Ei(t){if(t==null)return window;if(!Ah(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function Nc(t){return Ei(t).getComputedStyle(t)}function Br(t){return Ah(t)?"":t?(t.nodeName||"").toLowerCase():""}function Wr(t){return t instanceof Ei(t).HTMLElement}function tc(t){return t instanceof Ei(t).Element}function Ek(t){return t instanceof Ei(t).Node}function _0(t){const n=Ei(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function Pc(t){const{overflow:n,overflowX:r,overflowY:o}=Nc(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function Lk(t){return["table","td","th"].includes(Br(t))}function S0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=Nc(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||n&&r.willChange==="filter"||n&&(r.filter?r.filter!=="none":!1)}const nv=Math.min,al=Math.max,ec=Math.round;function os(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Wr(t)&&(o=t.offsetWidth>0&&ec(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&ec(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/a,top:r.top/a,right:r.right/o,bottom:r.bottom/a,left:r.left/o,x:r.left/o,y:r.top/a}}function Li(t){return((Ek(t)?t.ownerDocument:t.document)||window.document).documentElement}function Oc(t){return Ah(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function k0(t){return os(Li(t)).left+Oc(t).scrollLeft}function Ak(t){const n=os(t);return ec(n.width)!==t.offsetWidth||ec(n.height)!==t.offsetHeight}function Mk(t,n,r){const o=Wr(n),a=Li(n),u=os(t,o&&Ak(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Br(n)!=="body"||Pc(a))&&(f=Oc(n)),Wr(n)){const p=os(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=k0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function Dc(t){return Br(t)==="html"?t:t.assignedSlot||t.parentNode||(_0(t)?t.host:null)||Li(t)}function rv(t){return!Wr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function Nk(t){let n=Dc(t);for(;Wr(n)&&!["html","body"].includes(Br(n));){if(S0(n))return n;n=n.parentNode}return null}function Pf(t){const n=Ei(t);let r=rv(t);for(;r&&Lk(r)&&getComputedStyle(r).position==="static";)r=rv(r);return r&&(Br(r)==="html"||Br(r)==="body"&&getComputedStyle(r).position==="static"&&!S0(r))?n:r||Nk(t)||n}function iv(t){return{width:t.offsetWidth,height:t.offsetHeight}}function Pk(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Wr(r),u=Li(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Br(r)!=="body"||Pc(u))&&(f=Oc(r)),Wr(r))){const p=os(r,!0);h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{...n,x:n.x-f.scrollLeft+h.x,y:n.y-f.scrollTop+h.y}}function Ok(t){const n=Ei(t),r=Li(t),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(a=o.width,u=o.height,Math.abs(n.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:a,height:u,x:f,y:h}}function Dk(t){var n;const r=Li(t),o=Oc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=al(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=al(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+k0(t);const p=-o.scrollTop;return Nc(a||r).direction==="rtl"&&(h+=al(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function C0(t){return["html","body","#document"].includes(Br(t))?t.ownerDocument.body:Wr(t)&&Pc(t)?t:C0(Dc(t))}function nc(t,n){var r;n===void 0&&(n=[]);const o=C0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=Ei(o),f=a?[u].concat(u.visualViewport||[],Pc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(nc(Dc(f)))}function $k(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&_0(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Rk(t){const n=os(t),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function ov(t,n){return n==="viewport"?Af(Ok(t)):tc(n)?Rk(n):Af(Dk(Li(t)))}function zk(t){const n=nc(Dc(t)),o=["absolute","fixed"].includes(Nc(t).position)&&Wr(t)?Pf(t):t;return tc(o)?n.filter(a=>tc(a)&&$k(a,o)&&Br(a)!=="body"):[]}function Fk(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?zk(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const v=ov(n,g);return p.top=al(v.top,p.top),p.right=nv(v.right,p.right),p.bottom=nv(v.bottom,p.bottom),p.left=al(v.left,p.left),p},ov(n,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const Ik={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:Mk(n,Pf(r),o),floating:{...iv(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>Pk(t),getOffsetParent:t=>{let{element:n}=t;return Pf(n)},isElement:t=>tc(t),getDocumentElement:t=>{let{element:n}=t;return Li(n)},getClippingClientRect:t=>Fk(t),getDimensions:t=>{let{element:n}=t;return iv(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},qk=(t,n,r)=>uk(t,n,{platform:Ik,...r});var Hk=Object.defineProperty,Bk=Object.defineProperties,Wk=Object.getOwnPropertyDescriptors,sv=Object.getOwnPropertySymbols,Uk=Object.prototype.hasOwnProperty,jk=Object.prototype.propertyIsEnumerable,lv=(t,n,r)=>n in t?Hk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Rr=(t,n)=>{for(var r in n||(n={}))Uk.call(n,r)&&lv(t,r,n[r]);if(sv)for(var r of sv(n))jk.call(n,r)&&lv(t,r,n[r]);return t},Nl=(t,n)=>Bk(t,Wk(n));function T0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?T0(t[r],n[r]):t[r]=n[r])}const Ji={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"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","focus"],delay:{show:0,hide:400}}}};function ss(t,n){let r=Ji.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Ji.themes[r.$extend]||{}:(r=null,o=Ji[n]):r=null;while(r);return o}function Gk(t){const n=[t];let r=Ji.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Ji.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let ls=!1;if(typeof window<"u"){ls=!1;try{const t=Object.defineProperty({},"passive",{get(){ls=!0}});window.addEventListener("test",null,t)}catch{}}let E0=!1;typeof window<"u"&&typeof navigator<"u"&&(E0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const L0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),av={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},cv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Vk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function Yu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const mr=[];let Fo=null,Of=function(){};typeof window<"u"&&(Of=window.Element);function de(t){return function(n){return ss(n.theme,t)}}var A0=()=>re({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:de("disabled")},placement:{type:String,default:de("placement"),validator:t=>L0.includes(t)},delay:{type:[String,Number,Object],default:de("delay")},distance:{type:[Number,String],default:de("distance")},skidding:{type:[Number,String],default:de("skidding")},triggers:{type:Array,default:de("triggers")},showTriggers:{type:[Array,Function],default:de("showTriggers")},hideTriggers:{type:[Array,Function],default:de("hideTriggers")},popperTriggers:{type:Array,default:de("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:de("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:de("popperHideTriggers")},container:{type:[String,Object,Of,Boolean],default:de("container")},boundary:{type:[String,Of],default:de("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:de("strategy")},autoHide:{type:Boolean,default:de("autoHide")},handleResize:{type:Boolean,default:de("handleResize")},instantMove:{type:Boolean,default:de("instantMove")},eagerMount:{type:Boolean,default:de("eagerMount")},popperClass:{type:[String,Array,Object],default:de("popperClass")},computeTransformOrigin:{type:Boolean,default:de("computeTransformOrigin")},autoMinSize:{type:Boolean,default:de("autoMinSize")},autoMaxSize:{type:Boolean,default:de("autoMaxSize")},preventOverflow:{type:Boolean,default:de("preventOverflow")},overflowPadding:{type:[Number,String],default:de("overflowPadding")},arrowPadding:{type:[Number,String],default:de("arrowPadding")},arrowOverflow:{type:Boolean,default:de("arrowOverflow")},flip:{type:Boolean,default:de("flip")},shift:{type:Boolean,default:de("shift")},shiftCrossAxis:{type:Boolean,default:de("shiftCrossAxis")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],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}}},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:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:Nl(Rr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Rr({shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())}},["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,n)=>(t[n]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:n=!1,force:r=!1}={}){(r||!this.disabled)&&(this.$_scheduleShow(t,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0)},hide({event:t=null,skipDelay:n=!1}={}){this.$_scheduleHide(t,n),this.$emit("hide"),this.$emit("update:shown",!1)},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),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.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(Sk({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(bk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(Ck({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(xk({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(dk({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:p}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(p)>u.reference.width/2:h=Math.abs(p)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&n.middleware.push({name:"autoMinSize",fn:({rects:a,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let p,g;return u.startsWith("top")||u.startsWith("bottom")?p=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=p!=null?`${p}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&n.middleware.push(Tk({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:u})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await qk(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Rr(Rr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Fo&&this.instantMove&&Fo.instantMove){Fo.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,n=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Fo=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const n=this.delay;return parseInt(n&&n[t]||n||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Yu(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=n.x+n.width/2-(o.left+r.offsetLeft),u=n.y+n.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let n;for(let r=0;r<mr.length;r++)n=mr[r],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}mr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Yu(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Vk(mr,this),Fo===this&&(Fo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=ss(this.theme,"disposeTimeout");n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Yu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=(a,u,f)=>{this.$_events.push({targetNodes:a,eventType:u,handler:f}),a.forEach(h=>h.addEventListener(u,f,ls?{passive:!0}:void 0))},n=(a,u,f,h,p)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(v=>{const b=u[v];b&&t(a,b,p)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,av,this.triggers,this.showTriggers,r),n([this.$_popperNode],av,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,cv,this.triggers,this.hideTriggers,o),n([this.$_popperNode],cv,this.popperTriggers,this.popperHideTriggers,o),t([...nc(this.$_referenceNode),...nc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:n,handler:r})=>{t.forEach(o=>o.removeEventListener(n,r))}),this.$_events=[]},$_handleGlobalClose(t,n=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,n){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(n,o))}},$_applyAttrsToTarget(t){for(const n of this.$_targetNodes)for(const r in t){const o=t[r];o==null?n.removeAttribute(r):n.setAttribute(r,o)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(E0?(document.addEventListener("touchstart",uv,ls?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Xk,ls?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",uv,!0),window.addEventListener("click",Kk,!0)),window.addEventListener("resize",Yk));function uv(t){for(let n=0;n<mr.length;n++){const r=mr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function Kk(t){M0(t)}function Xk(t){M0(t,!0)}function M0(t,n=!1){for(let r=0;r<mr.length;r++){const o=mr[r],a=o.popperNode(),u=o.$_mouseDownContains||a.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,n)})}}function Yk(t){for(let n=0;n<mr.length;n++)mr[n].$_computePosition(t)}function Zk(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var a=t.indexOf("Edge/");return a>0?parseInt(t.substring(a+5,t.indexOf(".",a)),10):-1}let Ra;function Df(){Df.init||(Df.init=!0,Ra=Zk()!==-1)}var $c={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Df(),Hr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Ra&&this.$el.appendChild(t),t.data="about:blank",Ra||this.$el.appendChild(t)},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&&(!Ra&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Jk=x1();$m("data-v-b329ee4c");const Qk={class:"resize-observer",tabindex:"-1"};Rm();const tC=Jk((t,n,r,o,a,u)=>(ut(),Qt("div",Qk)));$c.render=tC;$c.__scopeId="data-v-b329ee4c";$c.__file="src/components/ResizeObserver.vue";var N0={computed:{themeClass(){return Gk(this.theme)}}},Mh=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const eC=re({name:"VPopperContent",components:{ResizeObserver:$c},mixins:[N0],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),nC=["id","aria-hidden","tabindex","data-popper-placement"],rC={ref:"inner",class:"v-popper__inner"},iC=ct("div",{class:"v-popper__arrow-outer"},null,-1),oC=ct("div",{class:"v-popper__arrow-inner"},null,-1),sC=[iC,oC];function lC(t,n,r,o,a,u){const f=eo("ResizeObserver");return ut(),At("div",{id:t.popperId,ref:"popover",class:ve(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result.arrow.overflow}]]),style:En({position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result.placement,onKeyup:n[1]||(n[1]=Cf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ct("div",{class:"v-popper__wrapper",style:En({transformOrigin:t.result.transformOrigin})},[ct("div",rC,[t.mounted?(ut(),At(ue,{key:0},[ct("div",null,[ir(t.$slots,"default")]),t.handleResize?(ut(),Qt(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):ee("",!0)],64)):ee("",!0)],512),ct("div",{ref:"arrow",class:"v-popper__arrow-container",style:En({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},sC,4)],4)],46,nC)}var P0=Mh(eC,[["render",lC]]),O0={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};const aC=re({name:"VPopperWrapper",components:{Popper:A0(),PopperContent:P0},mixins:[O0,N0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Rr({},this.$attrs);return delete t.class,delete t.style,t}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function cC(t,n,r,o,a,u){const f=eo("PopperContent"),h=eo("Popper");return ut(),Qt(h,Si({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:Jt(({popperId:p,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,show:S,hide:P,handleResize:A,onResize:L,classes:T,result:M})=>[ct("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:En(t.$attrs.style)},[ir(t.$slots,"default",{shown:g,show:S,hide:P}),It(f,{ref:"popperContent","popper-id":p,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:T,result:M,onHide:P,onResize:L},{default:Jt(()=>[ir(t.$slots,"popper",{shown:g,hide:P})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])],6)]),_:3},16,["theme","target-nodes","reference-node","popper-node"])}var Nh=Mh(aC,[["render",cC]]);const fv=re(Nl(Rr({},Nh),{name:"VDropdown",vPopperTheme:"dropdown"})),hv=re(Nl(Rr({},Nh),{name:"VMenu",vPopperTheme:"menu"})),$f=re(Nl(Rr({},Nh),{name:"VTooltip",vPopperTheme:"tooltip"})),uC=re({name:"VTooltipDirective",components:{Popper:A0(),PopperContent:P0},mixins:[O0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>ss(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>ss(t.theme,"loadingContent")}},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(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(n,o)):this.onResult(n,r)}},onResult(t,n){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),fC=["innerHTML"],hC=["textContent"];function dC(t,n,r,o,a,u){const f=eo("PopperContent"),h=eo("Popper");return ut(),Qt(h,Si({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Jt(({popperId:p,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,hide:S,handleResize:P,onResize:A,classes:L,result:T})=>[It(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":p,theme:t.theme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":P,classes:L,result:T,onHide:S,onResize:A},{default:Jt(()=>[t.html?(ut(),At("div",{key:0,innerHTML:t.finalContent},null,8,fC)):(ut(),At("div",{key:1,textContent:ne(t.finalContent)},null,8,hC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var pC=Mh(uC,[["render",dC]]);const D0="v-popper--has-tooltip";function gC(t,n){let r=t.placement;if(!r&&n)for(const o of L0)n[o]&&(r=o);return r||(r=ss(t.theme||"tooltip","placement")),r}function $0(t,n,r){let o;const a=typeof n;return a==="string"?o={content:n}:n&&a==="object"?o=n:o={content:!1},o.placement=gC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Zu,yl,vC=0;function mC(){if(Zu)return;yl=Yt([]),Zu=a0({name:"VTooltipDirectiveApp",setup(){return{directives:yl}},render(){return this.directives.map(n=>Al(pC,Nl(Rr({},n.options),{shown:n.shown.value||n.options.shown,key:n.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Zu.mount(t)}function R0(t,n,r){mC();const o=Yt($0(t,n,r)),a=Yt(!1),u={id:vC++,options:o,shown:a};return yl.value.push(u),t.classList&&t.classList.add(D0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Ph(t){if(t.$_popper){const n=yl.value.indexOf(t.$_popper.item);n!==-1&&yl.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(D0)}function dv(t,{value:n,oldValue:r,modifiers:o}){const a=$0(t,n,o);if(!a.content||ss(a.theme||"tooltip","disabled"))Ph(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=R0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var z0={beforeMount:dv,updated:dv,beforeUnmount(t){Ph(t)}};function pv(t){t.addEventListener("click",F0),t.addEventListener("touchstart",I0,ls?{passive:!0}:!1)}function gv(t){t.removeEventListener("click",F0),t.removeEventListener("touchstart",I0),t.removeEventListener("touchend",q0),t.removeEventListener("touchcancel",H0)}function F0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function I0(t){if(t.changedTouches.length===1){const n=t.currentTarget;n.$_vclosepopover_touch=!0;const r=t.changedTouches[0];n.$_vclosepopover_touchPoint=r,n.addEventListener("touchend",q0),n.addEventListener("touchcancel",H0)}}function q0(t){const n=t.currentTarget;if(n.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=n.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function H0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var yC={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&pv(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?pv(t):gv(t))},beforeUnmount(t){gv(t)}};const bC=z0,wC=$f;function xC(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,T0(Ji,n),t.directive("tooltip",z0),t.directive("close-popper",yC),t.component("v-tooltip",$f),t.component("VTooltip",$f),t.component("v-dropdown",fv),t.component("VDropdown",fv),t.component("v-menu",hv),t.component("VMenu",hv))}const B0={version:"2.0.0-y.0",install:xC,options:Ji},_C=6e4;function W0(t){return t}const SC=W0,{clearTimeout:kC,setTimeout:CC}=globalThis,TC=Math.random.bind(Math);function EC(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=W0,deserialize:f=SC,resolver:h,timeout:p=_C}=n,g=new Map;let v;const b=new Proxy({},{get(x,S){if(S==="$functions")return t;const P=(...L)=>{r(u({m:S,a:L,t:"q"}))};if(a.includes(S))return P.asEvent=P,P;const A=async(...L)=>(await v,new Promise((T,M)=>{var B,K;const R=AC();let E;p>=0&&(E=(K=(B=CC(()=>{M(new Error(`[birpc] timeout on calling "${S}"`)),g.delete(R)},p)).unref)==null?void 0:K.call(B)),g.set(R,{resolve:T,reject:M,timeoutId:E}),r(u({m:S,a:L,i:R,t:"q"}))}));return A.asEvent=P,A}});return v=o(async(x,...S)=>{const P=f(x);if(P.t==="q"){const{m:A,a:L}=P;let T,M;const R=h?h(A,t[A]):t[A];if(!R)M=new Error(`[birpc] function "${A}" not found`);else try{T=await R.apply(b,L)}catch(E){M=E}P.i&&(M&&n.onError&&n.onError(M,A,L),r(u({t:"s",i:P.i,r:T,e:M}),...S))}else{const{i:A,r:L,e:T}=P,M=g.get(A);M&&(kC(M.timeoutId),T?M.reject(T):M.resolve(L)),g.delete(A)}}),b}const LC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function AC(t=21){let n="",r=t;for(;r--;)n+=LC[TC()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:MC,stringify:NC}=JSON,{keys:PC}=Object,bl=String,U0="string",vv={},rc="object",j0=(t,n)=>n,OC=t=>t instanceof bl?bl(t):t,DC=(t,n)=>typeof n===U0?new bl(n):n,G0=(t,n,r,o)=>{const a=[];for(let u=PC(r),{length:f}=u,h=0;h<f;h++){const p=u[h],g=r[p];if(g instanceof bl){const v=t[g];typeof v===rc&&!n.has(v)?(n.add(v),r[p]=vv,a.push({k:p,a:[t,n,v,o]})):r[p]=o.call(r,p,v)}else r[p]!==vv&&(r[p]=o.call(r,p,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:p}=a[f];r[h]=o.call(r,h,G0.apply(null,p))}return r},mv=(t,n,r)=>{const o=bl(n.push(r)-1);return t.set(r,o),o},Rf=(t,n)=>{const r=MC(t,DC).map(OC),o=r[0],a=n||j0,u=typeof o===rc&&o?G0(r,new Set,o,a):o;return a.call({"":u},"",u)},$C=(t,n,r)=>{const o=n&&typeof n===rc?(v,b)=>v===""||-1<n.indexOf(v)?b:void 0:n||j0,a=new Map,u=[],f=[];let h=+mv(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=NC(u[h++],g,r);return"["+f.join(",")+"]";function g(v,b){if(p)return p=!p,b;const x=o.call(this,v,b);switch(typeof x){case rc:if(x===null)return x;case U0:return a.get(x)||mv(a,u,x)}return x}};function RC(t=""){return!t||!t.includes("\\")?t:t.replace(/\\/g,"/")}const zC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function FC(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const yv=function(...t){t=t.map(o=>RC(o));let n="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const a=o>=0?t[o]:FC();!a||a.length===0||(n=`${a}/${n}`,r=bv(a))}return n=IC(n,!r),r&&!bv(n)?`/${n}`:n.length>0?n:"."};function IC(t,n){let r="",o=0,a=-1,u=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(a===h-1||u===1))if(u===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const p=r.lastIndexOf("/");p===-1?(r="",o=0):(r=r.slice(0,p),o=r.length-1-r.lastIndexOf("/")),a=h,u=0;continue}else if(r.length>0){r="",o=0,a=h,u=0;continue}}n&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(a+1,h)}`:r=t.slice(a+1,h),o=h-a-1;a=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const bv=function(t){return zC.test(t)},qC=function(t,n){const r=yv(t).split("/"),o=yv(n).split("/"),a=[...r];for(const u of a){if(o[0]!==u)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function HC(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class V0{constructor(){ai(this,"filesMap",new Map);ai(this,"pathsSet",new Set);ai(this,"browserTestPromises",new Map);ai(this,"idMap",new Map);ai(this,"taskFileMap",new WeakMap);ai(this,"errorsSet",new Set);ai(this,"processTimeoutCauses",new Set)}catchError(n,r){if(HC(n))return n.errors.forEach(a=>this.catchError(a,r));n===Object(n)?n.type=r:n={type:r,message:n};const o=n;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const a=this.idMap.get(o.taskId);a&&(a.mode="skip",a.result??(a.result={state:"skip"}),a.result.state="skip");return}this.errorsSet.add(n)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(n){this.processTimeoutCauses.add(n)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(n){return n?n.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(n=>{var r;return((r=n.result)==null?void 0:r.state)==="fail"}).map(n=>n.filepath)}collectPaths(n=[]){n.forEach(r=>{this.pathsSet.add(r)})}collectFiles(n=[]){n.forEach(r=>{const a=(this.filesMap.get(r.filepath)||[]).filter(u=>u.projectName!==r.projectName);a.push(r),this.filesMap.set(r.filepath,a),this.updateId(r)})}clearFiles(n,r=[]){const o=n;r.forEach(a=>{const u=this.filesMap.get(a);if(!u)return;const f=u.filter(h=>h.projectName!==o.config.name);f.length?this.filesMap.set(a,f):this.filesMap.delete(a)})}updateId(n){this.idMap.get(n.id)!==n&&(this.idMap.set(n.id,n),n.type==="suite"&&n.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(n){for(const[r,o,a]of n){const u=this.idMap.get(r);u&&(u.result=o,u.meta=a,(o==null?void 0:o.state)==="skip"&&(u.mode="skip"))}}updateUserLog(n){const r=n.taskId&&this.idMap.get(n.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(n))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(n=>{var r;return((r=n.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(n,r,o){this.collectFiles(n.map(a=>({filepath:a,name:qC(r,a),id:a,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:o})))}}var no=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function X0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function zf(t){return t.type==="test"||t.type==="custom"}function Y0(t){const n=[],r=X0(t);for(const o of r)if(zf(o))n.push(o);else for(const a of o.tasks)zf(a)?n.push(a):n.push(...Y0(a));return n}function Oh(t=[]){return X0(t).flatMap(n=>zf(n)?[n]:[n,...Oh(n.tasks)])}function BC(t){const n=[t.name];let r=t;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&n.unshift(r.name);return n}function Rc(t){return Y0(t).some(n=>{var r,o;return(o=(r=n.result)==null?void 0:r.errors)==null?void 0:o.some(a=>typeof(a==null?void 0:a.message)=="string"&&a.message.match(/Snapshot .* mismatched/))})}function WC(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=n;let p=u;const g=f({ws:new h(t),state:new V0,waitForConnection:L,reconnect:P});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(T){var M;g.state.collectPaths(T),(M=r.onPathsCollected)==null||M.call(r,T)},onCollected(T){var M;g.state.collectFiles(T),(M=r.onCollected)==null||M.call(r,T)},onTaskUpdate(T){var M;g.state.updateTasks(T),(M=r.onTaskUpdate)==null||M.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T){var M;(M=r.onFinished)==null||M.call(r,T)},onCancel(T){var M;(M=r.onCancel)==null||M.call(r,T)}},x={post:T=>g.ws.send(T),on:T=>v=T,serialize:$C,deserialize:Rf};g.rpc=EC(b,x);let S;function P(T=!1){T&&(p=u),g.ws=new h(t),A()}function A(){S=new Promise(T=>{g.ws.addEventListener("open",()=>{p=u,T()})}),g.ws.addEventListener("message",T=>{v(T.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(P,a)})}A();function L(){return S}return g}const UC=location.port,jC=[location.hostname,UC].filter(Boolean).join(":"),GC=`${location.protocol==="https:"?"wss:":"ws:"}//${jC}/__vitest_api__`,Ur=!!window.METADATA_PATH;function Dh(t){return pm()?(Ix(t),!0):!1}function xr(t){return typeof t=="function"?t():U(t)}const VC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const KC=Object.prototype.toString,XC=t=>KC.call(t)==="[object Object]",ro=()=>{};function $h(t,n){function r(...o){return new Promise((a,u)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(a).catch(u)})}return r}const Z0=t=>t();function J0(t,n={}){let r,o,a=ro;const u=h=>{clearTimeout(h),a(),a=ro};return h=>{const p=xr(t),g=xr(n.maxWait);return r&&u(r),p<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{a=n.rejectOnCancel?b:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},p)})}}function YC(t,n=!0,r=!0,o=!1){let a=0,u,f=!0,h=ro,p;const g=()=>{u&&(clearTimeout(u),u=void 0,h(),h=ro)};return b=>{const x=xr(t),S=Date.now()-a,P=()=>p=b();return g(),x<=0?(a=Date.now(),P()):(S>x&&(r||!f)?(a=Date.now(),P()):n&&(p=new Promise((A,L)=>{h=o?L:A,u=setTimeout(()=>{a=Date.now(),f=!0,A(P()),g()},Math.max(0,x-S))})),!r&&!u&&(u=setTimeout(()=>f=!0,x)),f=!1,p)}}function ZC(t=Z0){const n=Yt(!0);function r(){n.value=!1}function o(){n.value=!0}const a=(...u)=>{n.value&&t(...u)};return{isActive:xc(n),pause:r,resume:o,eventFilter:a}}function JC(...t){if(t.length!==1)return hh(...t);const n=t[0];return typeof n=="function"?xc(u1(()=>({get:n,set:ro}))):Yt(n)}function wv(t,n=200,r={}){return $h(J0(n,r),t)}function QC(t,n=200,r=!1,o=!0,a=!1){return $h(YC(n,r,o,a),t)}function tT(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Yt(t.value),u=QC(()=>{a.value=t.value},n,r,o);return De(t,()=>u()),a}function Q0(t,n,r={}){const{eventFilter:o=Z0,...a}=r;return De(t,$h(o,n),a)}function ty(t,n,r={}){const{eventFilter:o,...a}=r,{eventFilter:u,pause:f,resume:h,isActive:p}=ZC(o);return{stop:Q0(t,n,{...a,eventFilter:u}),pause:f,resume:h,isActive:p}}function Rh(t,n=!0){Ll()?ps(t):n?t():Hr(t)}function eT(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=Ee(t),u=Yt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const p=xr(r);return u.value=u.value===p?xr(o):p,u.value}}return a?f:[u,f]}function nT(t,n,r={}){const{debounce:o=0,maxWait:a=void 0,...u}=r;return Q0(t,n,{...u,eventFilter:J0(o,{maxWait:a})})}function rT(t,n,r){const o=De(t,(...a)=>(Hr(()=>o()),n(...a)),r);return o}function iT(t,n,r){let o;Ee(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,shallow:f=!0,onError:h=ro}=o,p=Yt(!a),g=f?ds(n):Yt(n);let v=0;return mh(async b=>{if(!p.value)return;v++;const x=v;let S=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const P=await t(A=>{b(()=>{u&&(u.value=!1),S||A()})});x===v&&(g.value=P)}catch(P){h(P)}finally{u&&x===v&&(u.value=!1),S=!0}}),a?xt(()=>(p.value=!0,g.value)):g}function ic(t){var n;const r=xr(t);return(n=r==null?void 0:r.$el)!=null?n:r}const jr=VC?window:void 0;function as(...t){let n,r,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,a]=t,n=jr):[n,r,o,a]=t,!n)return ro;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,b,x,S)=>(v.addEventListener(b,x,S),()=>v.removeEventListener(b,x,S)),p=De(()=>[ic(n),xr(a)],([v,b])=>{if(f(),!v)return;const x=XC(b)?{...b}:b;u.push(...r.flatMap(S=>o.map(P=>h(v,S,P,x))))},{immediate:!0,flush:"post"}),g=()=>{p(),f()};return Dh(g),g}function oT(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function sT(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:a=jr,eventName:u="keydown",passive:f=!1,dedupe:h=!1}=o,p=oT(n);return as(a,u,v=>{v.repeat&&xr(h)||p(v)&&r(v)},f)}function lT(){const t=Yt(!1);return Ll()&&ps(()=>{t.value=!0}),t}function ey(t){const n=lT();return xt(()=>(n.value,!!t()))}function ny(t,n={}){const{window:r=jr}=n,o=ey(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const u=Yt(!1),f=g=>{u.value=g.matches},h=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",f):a.removeListener(f))},p=mh(()=>{o.value&&(h(),a=r.matchMedia(xr(t)),"addEventListener"in a?a.addEventListener("change",f):a.addListener(f),u.value=a.matches)});return Dh(()=>{p(),h(),a=void 0}),u}const Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ka="__vueuse_ssr_handlers__",aT=cT();function cT(){return ka in Sa||(Sa[ka]=Sa[ka]||{}),Sa[ka]}function ry(t,n){return aT[t]||n}function uT(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const fT={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},xv="vueuse-storage";function hT(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:p=!0,mergeDefaults:g=!1,shallow:v,window:b=jr,eventFilter:x,onError:S=et=>{console.error(et)},initOnMounted:P}=o,A=(v?ds:Yt)(typeof n=="function"?n():n);if(!r)try{r=ry("getDefaultStorage",()=>{var et;return(et=jr)==null?void 0:et.localStorage})()}catch(et){S(et)}if(!r)return A;const L=xr(n),T=uT(L),M=(a=o.serializer)!=null?a:fT[T],{pause:R,resume:E}=ty(A,()=>B(A.value),{flush:u,deep:f,eventFilter:x});return b&&h&&Rh(()=>{as(b,"storage",Y),as(b,xv,ht),P&&Y()}),P||Y(),A;function B(et){try{if(et==null)r.removeItem(t);else{const st=M.write(et),pt=r.getItem(t);pt!==st&&(r.setItem(t,st),b&&b.dispatchEvent(new CustomEvent(xv,{detail:{key:t,oldValue:pt,newValue:st,storageArea:r}})))}}catch(st){S(st)}}function K(et){const st=et?et.newValue:r.getItem(t);if(st==null)return p&&L!==null&&r.setItem(t,M.write(L)),L;if(!et&&g){const pt=M.read(st);return typeof g=="function"?g(pt,L):T==="object"&&!Array.isArray(pt)?{...L,...pt}:pt}else return typeof st!="string"?st:M.read(st)}function ht(et){Y(et.detail)}function Y(et){if(!(et&&et.storageArea!==r)){if(et&&et.key==null){A.value=L;return}if(!(et&&et.key!==t)){R();try{(et==null?void 0:et.newValue)!==M.write(A.value)&&(A.value=K(et))}catch(st){S(st)}finally{et?Hr(E):E()}}}}}function dT(t){return ny("(prefers-color-scheme: dark)",t)}function pT(t={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:a=jr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:p,emitAuto:g,disableTransition:v=!0}=t,b={auto:"",light:"light",dark:"dark",...t.modes||{}},x=dT({window:a}),S=xt(()=>x.value?"dark":"light"),P=p||(f==null?JC(o):hT(f,o,u,{window:a,listenToStorageChanges:h})),A=xt(()=>P.value==="auto"?S.value:P.value),L=ry("updateHTMLAttrs",(E,B,K)=>{const ht=typeof E=="string"?a==null?void 0:a.document.querySelector(E):ic(E);if(!ht)return;let Y;if(v){Y=a.document.createElement("style");const et="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Y.appendChild(document.createTextNode(et)),a.document.head.appendChild(Y)}if(B==="class"){const et=K.split(/\s/g);Object.values(b).flatMap(st=>(st||"").split(/\s/g)).filter(Boolean).forEach(st=>{et.includes(st)?ht.classList.add(st):ht.classList.remove(st)})}else ht.setAttribute(B,K);v&&(a.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function T(E){var B;L(n,r,(B=b[E])!=null?B:E)}function M(E){t.onChanged?t.onChanged(E,T):T(E)}De(A,M,{flush:"post",immediate:!0}),Rh(()=>M(A.value));const R=xt({get(){return g?P.value:A.value},set(E){P.value=E}});try{return Object.assign(R,{store:P,system:S,state:A})}catch{return R}}function gT(t={}){const{valueDark:n="dark",valueLight:r=""}=t,o=pT({...t,onChanged:(u,f)=>{var h;t.onChanged?(h=t.onChanged)==null||h.call(t,u==="dark",f,u):f(u)},modes:{dark:n,light:r}});return xt({get(){return o.value==="dark"},set(u){const f=u?"dark":"light";o.system.value===f?o.value="auto":o.value=f}})}function vT(t,n,r={}){const{window:o=jr,...a}=r;let u;const f=ey(()=>o&&"ResizeObserver"in o),h=()=>{u&&(u.disconnect(),u=void 0)},p=xt(()=>Array.isArray(t)?t.map(b=>ic(b)):[ic(t)]),g=De(p,b=>{if(h(),f.value&&o){u=new ResizeObserver(n);for(const x of b)x&&u.observe(x,a)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{h(),g()};return Dh(v),{isSupported:f,stop:v}}function mT(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=jr}=n;if(!f)return Hn(r);const h=Hn({});function p(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",M=T.indexOf("?");return M>0?T.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const M=T.toString();if(t==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const R=f.location.hash||"#",E=R.indexOf("?");return E>0?`${R.slice(0,E)}${M?`?${M}`:""}`:`${R}${M?`?${M}`:""}`}function v(){return new URLSearchParams(p())}function b(T){const M=new Set(Object.keys(h));for(const R of T.keys()){const E=T.getAll(R);h[R]=E.length>1?E:T.get(R)||"",M.delete(R)}Array.from(M).forEach(R=>delete h[R])}const{pause:x,resume:S}=ty(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(M=>{const R=h[M];Array.isArray(R)?R.forEach(E=>T.append(M,E)):o&&R==null||a&&!R?T.delete(M):T.set(M,R)}),P(T)},{deep:!0});function P(T,M){x(),M&&b(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),S()}function A(){u&&P(v(),!0)}as(f,"popstate",A,!1),t!=="history"&&as(f,"hashchange",A,!1);const L=v();return L.keys().next().value?b(L):Object.assign(h,r),h}function yT(t={}){const{window:n=jr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:u=!0}=t,f=Yt(r),h=Yt(o),p=()=>{n&&(u?(f.value=n.innerWidth,h.value=n.innerHeight):(f.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};if(p(),Rh(p),as("resize",p,{passive:!0}),a){const g=ny("(orientation: portrait)");De(g,()=>p())}return{width:f,height:h}}const iy=mT("hash",{initialValue:{file:"",view:null}}),vr=hh(iy,"file"),Jn=hh(iy,"view");var Dn=Uint8Array,Ho=Uint16Array,bT=Int32Array,oy=new Dn([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]),sy=new Dn([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]),wT=new Dn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ly=function(t,n){for(var r=new Ho(31),o=0;o<31;++o)r[o]=n+=1<<t[o-1];for(var a=new bT(r[30]),o=1;o<30;++o)for(var u=r[o];u<r[o+1];++u)a[u]=u-r[o]<<5|o;return{b:r,r:a}},ay=ly(oy,2),cy=ay.b,xT=ay.r;cy[28]=258,xT[258]=28;var _T=ly(sy,0),ST=_T.b,Ff=new Ho(32768);for(var we=0;we<32768;++we){var di=(we&43690)>>1|(we&21845)<<1;di=(di&52428)>>2|(di&13107)<<2,di=(di&61680)>>4|(di&3855)<<4,Ff[we]=((di&65280)>>8|(di&255)<<8)>>1}var cl=function(t,n,r){for(var o=t.length,a=0,u=new Ho(n);a<o;++a)t[a]&&++u[t[a]-1];var f=new Ho(n);for(a=1;a<n;++a)f[a]=f[a-1]+u[a-1]<<1;var h;if(r){h=new Ho(1<<n);var p=15-n;for(a=0;a<o;++a)if(t[a])for(var g=a<<4|t[a],v=n-t[a],b=f[t[a]-1]++<<v,x=b|(1<<v)-1;b<=x;++b)h[Ff[b]>>p]=g}else for(h=new Ho(o),a=0;a<o;++a)t[a]&&(h[a]=Ff[f[t[a]-1]++]>>15-t[a]);return h},Pl=new Dn(288);for(var we=0;we<144;++we)Pl[we]=8;for(var we=144;we<256;++we)Pl[we]=9;for(var we=256;we<280;++we)Pl[we]=7;for(var we=280;we<288;++we)Pl[we]=8;var uy=new Dn(32);for(var we=0;we<32;++we)uy[we]=5;var kT=cl(Pl,9,1),CT=cl(uy,5,1),Ju=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},Qn=function(t,n,r){var o=n/8|0;return(t[o]|t[o+1]<<8)>>(n&7)&r},Qu=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(n&7)},TT=function(t){return(t+7)/8|0},fy=function(t,n,r){return(n==null||n<0)&&(n=0),(r==null||r>t.length)&&(r=t.length),new Dn(t.subarray(n,r))},ET=["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"],kn=function(t,n,r){var o=new Error(n||ET[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,kn),!r)throw o;return o},zh=function(t,n,r,o){var a=t.length,u=o?o.length:0;if(!a||n.f&&!n.l)return r||new Dn(0);var f=!r,h=f||n.i!=2,p=n.i;f&&(r=new Dn(a*3));var g=function(Tt){var $=r.length;if(Tt>$){var F=new Dn(Math.max($*2,Tt));F.set(r),r=F}},v=n.f||0,b=n.p||0,x=n.b||0,S=n.l,P=n.d,A=n.m,L=n.n,T=a*8;do{if(!S){v=Qn(t,b,1);var M=Qn(t,b+1,3);if(b+=3,M)if(M==1)S=kT,P=CT,A=9,L=5;else if(M==2){var K=Qn(t,b,31)+257,ht=Qn(t,b+10,15)+4,Y=K+Qn(t,b+5,31)+1;b+=14;for(var et=new Dn(Y),st=new Dn(19),pt=0;pt<ht;++pt)st[wT[pt]]=Qn(t,b+pt*3,7);b+=ht*3;for(var gt=Ju(st),V=(1<<gt)-1,z=cl(st,gt,1),pt=0;pt<Y;){var k=z[Qn(t,b,V)];b+=k&15;var R=k>>4;if(R<16)et[pt++]=R;else{var I=0,H=0;for(R==16?(H=3+Qn(t,b,3),b+=2,I=et[pt-1]):R==17?(H=3+Qn(t,b,7),b+=3):R==18&&(H=11+Qn(t,b,127),b+=7);H--;)et[pt++]=I}}var J=et.subarray(0,K),yt=et.subarray(K);A=Ju(J),L=Ju(yt),S=cl(J,A,1),P=cl(yt,L,1)}else kn(1);else{var R=TT(b)+4,E=t[R-4]|t[R-3]<<8,B=R+E;if(B>a){p&&kn(0);break}h&&g(x+E),r.set(t.subarray(R,B),x),n.b=x+=E,n.p=b=B*8,n.f=v;continue}if(b>T){p&&kn(0);break}}h&&g(x+131072);for(var Lt=(1<<A)-1,qt=(1<<L)-1,Ht=b;;Ht=b){var I=S[Qu(t,b)&Lt],Zt=I>>4;if(b+=I&15,b>T){p&&kn(0);break}if(I||kn(2),Zt<256)r[x++]=Zt;else if(Zt==256){Ht=b,S=null;break}else{var Xt=Zt-254;if(Zt>264){var pt=Zt-257,jt=oy[pt];Xt=Qn(t,b,(1<<jt)-1)+cy[pt],b+=jt}var Ct=P[Qu(t,b)&qt],j=Ct>>4;Ct||kn(3),b+=Ct&15;var yt=ST[j];if(j>3){var jt=sy[j];yt+=Qu(t,b)&(1<<jt)-1,b+=jt}if(b>T){p&&kn(0);break}h&&g(x+131072);var nt=x+Xt;if(x<yt){var ot=u-yt,Mt=Math.min(yt,nt);for(ot+x<0&&kn(3);x<Mt;++x)r[x]=o[ot+x]}for(;x<nt;++x)r[x]=r[x-yt]}}n.l=S,n.p=Ht,n.b=x,n.f=v,S&&(v=1,n.m=A,n.d=P,n.n=L)}while(!v);return x!=r.length&&f?fy(r,0,x):r.subarray(0,x)},LT=new Dn(0),AT=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&kn(6,"invalid gzip data");var n=t[3],r=10;n&4&&(r+=(t[10]|t[11]<<8)+2);for(var o=(n>>3&1)+(n>>4&1);o>0;o-=!t[r++]);return r+(n&2)},MT=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},NT=function(t,n){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&kn(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&kn(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function PT(t,n){return zh(t,{i:2},n&&n.out,n&&n.dictionary)}function OT(t,n){var r=AT(t);return r+8>t.length&&kn(6,"invalid gzip data"),zh(t.subarray(r,-8),{i:2},n&&n.out||new Dn(MT(t)),n&&n.dictionary)}function DT(t,n){return zh(t.subarray(NT(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}function $T(t,n){return t[0]==31&&t[1]==139&&t[2]==8?OT(t,n):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?PT(t,n):DT(t,n)}var If=typeof TextDecoder<"u"&&new TextDecoder,RT=0;try{If.decode(LT,{stream:!0}),RT=1}catch{}var zT=function(t){for(var n="",r=0;;){var o=t[r++],a=(o>127)+(o>223)+(o>239);if(r+a>t.length)return{s:n,r:fy(t,r-1)};a?a==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,n+=String.fromCharCode(55296|o>>10,56320|o&1023)):a&1?n+=String.fromCharCode((o&31)<<6|t[r++]&63):n+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):n+=String.fromCharCode(o)}};function FT(t,n){if(n){for(var r="",o=0;o<t.length;o+=16384)r+=String.fromCharCode.apply(null,t.subarray(o,o+16384));return r}else{if(If)return If.decode(t);var a=zT(t),u=a.s,r=a.r;return r.length&&kn(8),u}}const _v=()=>{},_n=()=>Promise.resolve();function IT(){const t=Hn({state:new V0,waitForConnection:f,reconnect:a,ws:new EventTarget});t.state.filesMap=Hn(t.state.filesMap),t.state.idMap=Hn(t.state.idMap);let n;const r={getFiles:()=>n.files,getPaths:()=>n.paths,getConfig:()=>n.config,getModuleGraph:async h=>n.moduleGraph[h],getTransformResult:async h=>({code:h,source:"",map:null}),onDone:_v,onCollected:_n,onTaskUpdate:_v,writeFile:_n,rerun:_n,updateSnapshot:_n,resolveSnapshotPath:_n,snapshotSaved:_n,onAfterSuiteRun:_n,onCancel:_n,getCountOfFailedTests:()=>0,sendLog:_n,resolveSnapshotRawPath:_n,readSnapshotFile:_n,saveSnapshotFile:_n,readTestFile:_n,removeSnapshotFile:_n};t.rpc=r;let o;function a(){u()}async function u(){var v;const h=await fetch(window.METADATA_PATH),p=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(p.includes("application/gzip")||p.includes("application/x-gzip")){const b=new Uint8Array(await h.arrayBuffer()),x=FT($T(b));n=Rf(x)}else n=Rf(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}u();function f(){return o}return t}const wl=Yt("idle"),je=function(){return Ur?IT():WC(GC,{reactive:Hn,handlers:{onTaskUpdate(){wl.value="running"},onFinished(){wl.value="idle"}}})}(),Fh=ds({}),Ki=Yt("CONNECTING"),gn=xt(()=>je.state.getFiles()),_e=xt(()=>gn.value.find(t=>t.id===vr.value)),hy=xt(()=>Oh(_e.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function oc(t){return gn.value.find(n=>n.id===t)}const qT=xt(()=>Ki.value==="OPEN"),tf=xt(()=>Ki.value==="CONNECTING");xt(()=>Ki.value==="CLOSED");function HT(t=je.state.getFiles()){return dy(t)}function dy(t){return t.forEach(n=>{delete n.result,Oh(n).forEach(r=>delete r.result)}),je.rpc.rerun(t.map(n=>n.filepath))}function BT(){if(_e.value)return dy([_e.value])}De(()=>je.ws,t=>{Ki.value=Ur?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{Ki.value="OPEN",je.state.filesMap.clear();const[n,r]=await Promise.all([je.rpc.getFiles(),je.rpc.getConfig()]);je.state.collectFiles(n),Fh.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Ki.value==="CONNECTING"&&(Ki.value="CLOSED")},1e3)})},{immediate:!0});const WT={"text-2xl":""},UT=ct("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),jT=re({__name:"ConnectionOverlay",setup(t){return(n,r)=>U(qT)?ee("",!0):(ut(),At("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)=>U(je).reconnect&&U(je).reconnect(...o))},[ct("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(U(tf)?"animate-pulse":"")},[ct("div",{text:"5xl",class:ve(U(tf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ct("div",WT,ne(U(tf)?"Connecting...":"Disconnected"),1),UT],2)]))}});var py={},qr={};const GT="Á",VT="á",KT="Ă",XT="ă",YT="∾",ZT="∿",JT="∾̳",QT="Â",tE="â",eE="´",nE="А",rE="а",iE="Æ",oE="æ",sE="⁡",lE="𝔄",aE="𝔞",cE="À",uE="à",fE="ℵ",hE="ℵ",dE="Α",pE="α",gE="Ā",vE="ā",mE="⨿",yE="&",bE="&",wE="⩕",xE="⩓",_E="∧",SE="⩜",kE="⩘",CE="⩚",TE="∠",EE="⦤",LE="∠",AE="⦨",ME="⦩",NE="⦪",PE="⦫",OE="⦬",DE="⦭",$E="⦮",RE="⦯",zE="∡",FE="∟",IE="⊾",qE="⦝",HE="∢",BE="Å",WE="⍼",UE="Ą",jE="ą",GE="𝔸",VE="𝕒",KE="⩯",XE="≈",YE="⩰",ZE="≊",JE="≋",QE="'",tL="⁡",eL="≈",nL="≊",rL="Å",iL="å",oL="𝒜",sL="𝒶",lL="≔",aL="*",cL="≈",uL="≍",fL="Ã",hL="ã",dL="Ä",pL="ä",gL="∳",vL="⨑",mL="≌",yL="϶",bL="‵",wL="∽",xL="⋍",_L="∖",SL="⫧",kL="⊽",CL="⌅",TL="⌆",EL="⌅",LL="⎵",AL="⎶",ML="≌",NL="Б",PL="б",OL="„",DL="∵",$L="∵",RL="∵",zL="⦰",FL="϶",IL="ℬ",qL="ℬ",HL="Β",BL="β",WL="ℶ",UL="≬",jL="𝔅",GL="𝔟",VL="⋂",KL="◯",XL="⋃",YL="⨀",ZL="⨁",JL="⨂",QL="⨆",tA="★",eA="▽",nA="△",rA="⨄",iA="⋁",oA="⋀",sA="⤍",lA="⧫",aA="▪",cA="▴",uA="▾",fA="◂",hA="▸",dA="␣",pA="▒",gA="░",vA="▓",mA="█",yA="=⃥",bA="≡⃥",wA="⫭",xA="⌐",_A="𝔹",SA="𝕓",kA="⊥",CA="⊥",TA="⋈",EA="⧉",LA="┐",AA="╕",MA="╖",NA="╗",PA="┌",OA="╒",DA="╓",$A="╔",RA="─",zA="═",FA="┬",IA="╤",qA="╥",HA="╦",BA="┴",WA="╧",UA="╨",jA="╩",GA="⊟",VA="⊞",KA="⊠",XA="┘",YA="╛",ZA="╜",JA="╝",QA="└",tM="╘",eM="╙",nM="╚",rM="│",iM="║",oM="┼",sM="╪",lM="╫",aM="╬",cM="┤",uM="╡",fM="╢",hM="╣",dM="├",pM="╞",gM="╟",vM="╠",mM="‵",yM="˘",bM="˘",wM="¦",xM="𝒷",_M="ℬ",SM="⁏",kM="∽",CM="⋍",TM="⧅",EM="\\",LM="⟈",AM="•",MM="•",NM="≎",PM="⪮",OM="≏",DM="≎",$M="≏",RM="Ć",zM="ć",FM="⩄",IM="⩉",qM="⩋",HM="∩",BM="⋒",WM="⩇",UM="⩀",jM="ⅅ",GM="∩︀",VM="⁁",KM="ˇ",XM="ℭ",YM="⩍",ZM="Č",JM="č",QM="Ç",tN="ç",eN="Ĉ",nN="ĉ",rN="∰",iN="⩌",oN="⩐",sN="Ċ",lN="ċ",aN="¸",cN="¸",uN="⦲",fN="¢",hN="·",dN="·",pN="𝔠",gN="ℭ",vN="Ч",mN="ч",yN="✓",bN="✓",wN="Χ",xN="χ",_N="ˆ",SN="≗",kN="↺",CN="↻",TN="⊛",EN="⊚",LN="⊝",AN="⊙",MN="®",NN="Ⓢ",PN="⊖",ON="⊕",DN="⊗",$N="○",RN="⧃",zN="≗",FN="⨐",IN="⫯",qN="⧂",HN="∲",BN="”",WN="’",UN="♣",jN="♣",GN=":",VN="∷",KN="⩴",XN="≔",YN="≔",ZN=",",JN="@",QN="∁",tP="∘",eP="∁",nP="ℂ",rP="≅",iP="⩭",oP="≡",sP="∮",lP="∯",aP="∮",cP="𝕔",uP="ℂ",fP="∐",hP="∐",dP="©",pP="©",gP="℗",vP="∳",mP="↵",yP="✗",bP="⨯",wP="𝒞",xP="𝒸",_P="⫏",SP="⫑",kP="⫐",CP="⫒",TP="⋯",EP="⤸",LP="⤵",AP="⋞",MP="⋟",NP="↶",PP="⤽",OP="⩈",DP="⩆",$P="≍",RP="∪",zP="⋓",FP="⩊",IP="⊍",qP="⩅",HP="∪︀",BP="↷",WP="⤼",UP="⋞",jP="⋟",GP="⋎",VP="⋏",KP="¤",XP="↶",YP="↷",ZP="⋎",JP="⋏",QP="∲",tO="∱",eO="⌭",nO="†",rO="‡",iO="ℸ",oO="↓",sO="↡",lO="⇓",aO="‐",cO="⫤",uO="⊣",fO="⤏",hO="˝",dO="Ď",pO="ď",gO="Д",vO="д",mO="‡",yO="⇊",bO="ⅅ",wO="ⅆ",xO="⤑",_O="⩷",SO="°",kO="∇",CO="Δ",TO="δ",EO="⦱",LO="⥿",AO="𝔇",MO="𝔡",NO="⥥",PO="⇃",OO="⇂",DO="´",$O="˙",RO="˝",zO="`",FO="˜",IO="⋄",qO="⋄",HO="⋄",BO="♦",WO="♦",UO="¨",jO="ⅆ",GO="ϝ",VO="⋲",KO="÷",XO="÷",YO="⋇",ZO="⋇",JO="Ђ",QO="ђ",tD="⌞",eD="⌍",nD="$",rD="𝔻",iD="𝕕",oD="¨",sD="˙",lD="⃜",aD="≐",cD="≑",uD="≐",fD="∸",hD="∔",dD="⊡",pD="⌆",gD="∯",vD="¨",mD="⇓",yD="⇐",bD="⇔",wD="⫤",xD="⟸",_D="⟺",SD="⟹",kD="⇒",CD="⊨",TD="⇑",ED="⇕",LD="∥",AD="⤓",MD="↓",ND="↓",PD="⇓",OD="⇵",DD="̑",$D="⇊",RD="⇃",zD="⇂",FD="⥐",ID="⥞",qD="⥖",HD="↽",BD="⥟",WD="⥗",UD="⇁",jD="↧",GD="⊤",VD="⤐",KD="⌟",XD="⌌",YD="𝒟",ZD="𝒹",JD="Ѕ",QD="ѕ",t$="⧶",e$="Đ",n$="đ",r$="⋱",i$="▿",o$="▾",s$="⇵",l$="⥯",a$="⦦",c$="Џ",u$="џ",f$="⟿",h$="É",d$="é",p$="⩮",g$="Ě",v$="ě",m$="Ê",y$="ê",b$="≖",w$="≕",x$="Э",_$="э",S$="⩷",k$="Ė",C$="ė",T$="≑",E$="ⅇ",L$="≒",A$="𝔈",M$="𝔢",N$="⪚",P$="È",O$="è",D$="⪖",$$="⪘",R$="⪙",z$="∈",F$="⏧",I$="ℓ",q$="⪕",H$="⪗",B$="Ē",W$="ē",U$="∅",j$="∅",G$="◻",V$="∅",K$="▫",X$=" ",Y$=" ",Z$=" ",J$="Ŋ",Q$="ŋ",tR=" ",eR="Ę",nR="ę",rR="𝔼",iR="𝕖",oR="⋕",sR="⧣",lR="⩱",aR="ε",cR="Ε",uR="ε",fR="ϵ",hR="≖",dR="≕",pR="≂",gR="⪖",vR="⪕",mR="⩵",yR="=",bR="≂",wR="≟",xR="⇌",_R="≡",SR="⩸",kR="⧥",CR="⥱",TR="≓",ER="ℯ",LR="ℰ",AR="≐",MR="⩳",NR="≂",PR="Η",OR="η",DR="Ð",$R="ð",RR="Ë",zR="ë",FR="€",IR="!",qR="∃",HR="∃",BR="ℰ",WR="ⅇ",UR="ⅇ",jR="≒",GR="Ф",VR="ф",KR="♀",XR="ffi",YR="ff",ZR="ffl",JR="𝔉",QR="𝔣",t2="fi",e2="◼",n2="▪",r2="fj",i2="♭",o2="fl",s2="▱",l2="ƒ",a2="𝔽",c2="𝕗",u2="∀",f2="∀",h2="⋔",d2="⫙",p2="ℱ",g2="⨍",v2="½",m2="⅓",y2="¼",b2="⅕",w2="⅙",x2="⅛",_2="⅔",S2="⅖",k2="¾",C2="⅗",T2="⅜",E2="⅘",L2="⅚",A2="⅝",M2="⅞",N2="⁄",P2="⌢",O2="𝒻",D2="ℱ",$2="ǵ",R2="Γ",z2="γ",F2="Ϝ",I2="ϝ",q2="⪆",H2="Ğ",B2="ğ",W2="Ģ",U2="Ĝ",j2="ĝ",G2="Г",V2="г",K2="Ġ",X2="ġ",Y2="≥",Z2="≧",J2="⪌",Q2="⋛",tz="≥",ez="≧",nz="⩾",rz="⪩",iz="⩾",oz="⪀",sz="⪂",lz="⪄",az="⋛︀",cz="⪔",uz="𝔊",fz="𝔤",hz="≫",dz="⋙",pz="⋙",gz="ℷ",vz="Ѓ",mz="ѓ",yz="⪥",bz="≷",wz="⪒",xz="⪤",_z="⪊",Sz="⪊",kz="⪈",Cz="≩",Tz="⪈",Ez="≩",Lz="⋧",Az="𝔾",Mz="𝕘",Nz="`",Pz="≥",Oz="⋛",Dz="≧",$z="⪢",Rz="≷",zz="⩾",Fz="≳",Iz="𝒢",qz="ℊ",Hz="≳",Bz="⪎",Wz="⪐",Uz="⪧",jz="⩺",Gz=">",Vz=">",Kz="≫",Xz="⋗",Yz="⦕",Zz="⩼",Jz="⪆",Qz="⥸",tF="⋗",eF="⋛",nF="⪌",rF="≷",iF="≳",oF="≩︀",sF="≩︀",lF="ˇ",aF=" ",cF="½",uF="ℋ",fF="Ъ",hF="ъ",dF="⥈",pF="↔",gF="⇔",vF="↭",mF="^",yF="ℏ",bF="Ĥ",wF="ĥ",xF="♥",_F="♥",SF="…",kF="⊹",CF="𝔥",TF="ℌ",EF="ℋ",LF="⤥",AF="⤦",MF="⇿",NF="∻",PF="↩",OF="↪",DF="𝕙",$F="ℍ",RF="―",zF="─",FF="𝒽",IF="ℋ",qF="ℏ",HF="Ħ",BF="ħ",WF="≎",UF="≏",jF="⁃",GF="‐",VF="Í",KF="í",XF="⁣",YF="Î",ZF="î",JF="И",QF="и",tI="İ",eI="Е",nI="е",rI="¡",iI="⇔",oI="𝔦",sI="ℑ",lI="Ì",aI="ì",cI="ⅈ",uI="⨌",fI="∭",hI="⧜",dI="℩",pI="IJ",gI="ij",vI="Ī",mI="ī",yI="ℑ",bI="ⅈ",wI="ℐ",xI="ℑ",_I="ı",SI="ℑ",kI="⊷",CI="Ƶ",TI="⇒",EI="℅",LI="∞",AI="⧝",MI="ı",NI="⊺",PI="∫",OI="∬",DI="ℤ",$I="∫",RI="⊺",zI="⋂",FI="⨗",II="⨼",qI="⁣",HI="⁢",BI="Ё",WI="ё",UI="Į",jI="į",GI="𝕀",VI="𝕚",KI="Ι",XI="ι",YI="⨼",ZI="¿",JI="𝒾",QI="ℐ",tq="∈",eq="⋵",nq="⋹",rq="⋴",iq="⋳",oq="∈",sq="⁢",lq="Ĩ",aq="ĩ",cq="І",uq="і",fq="Ï",hq="ï",dq="Ĵ",pq="ĵ",gq="Й",vq="й",mq="𝔍",yq="𝔧",bq="ȷ",wq="𝕁",xq="𝕛",_q="𝒥",Sq="𝒿",kq="Ј",Cq="ј",Tq="Є",Eq="є",Lq="Κ",Aq="κ",Mq="ϰ",Nq="Ķ",Pq="ķ",Oq="К",Dq="к",$q="𝔎",Rq="𝔨",zq="ĸ",Fq="Х",Iq="х",qq="Ќ",Hq="ќ",Bq="𝕂",Wq="𝕜",Uq="𝒦",jq="𝓀",Gq="⇚",Vq="Ĺ",Kq="ĺ",Xq="⦴",Yq="ℒ",Zq="Λ",Jq="λ",Qq="⟨",tH="⟪",eH="⦑",nH="⟨",rH="⪅",iH="ℒ",oH="«",sH="⇤",lH="⤟",aH="←",cH="↞",uH="⇐",fH="⤝",hH="↩",dH="↫",pH="⤹",gH="⥳",vH="↢",mH="⤙",yH="⤛",bH="⪫",wH="⪭",xH="⪭︀",_H="⤌",SH="⤎",kH="❲",CH="{",TH="[",EH="⦋",LH="⦏",AH="⦍",MH="Ľ",NH="ľ",PH="Ļ",OH="ļ",DH="⌈",$H="{",RH="Л",zH="л",FH="⤶",IH="“",qH="„",HH="⥧",BH="⥋",WH="↲",UH="≤",jH="≦",GH="⟨",VH="⇤",KH="←",XH="←",YH="⇐",ZH="⇆",JH="↢",QH="⌈",tB="⟦",eB="⥡",nB="⥙",rB="⇃",iB="⌊",oB="↽",sB="↼",lB="⇇",aB="↔",cB="↔",uB="⇔",fB="⇆",hB="⇋",dB="↭",pB="⥎",gB="↤",vB="⊣",mB="⥚",yB="⋋",bB="⧏",wB="⊲",xB="⊴",_B="⥑",SB="⥠",kB="⥘",CB="↿",TB="⥒",EB="↼",LB="⪋",AB="⋚",MB="≤",NB="≦",PB="⩽",OB="⪨",DB="⩽",$B="⩿",RB="⪁",zB="⪃",FB="⋚︀",IB="⪓",qB="⪅",HB="⋖",BB="⋚",WB="⪋",UB="⋚",jB="≦",GB="≶",VB="≶",KB="⪡",XB="≲",YB="⩽",ZB="≲",JB="⥼",QB="⌊",t3="𝔏",e3="𝔩",n3="≶",r3="⪑",i3="⥢",o3="↽",s3="↼",l3="⥪",a3="▄",c3="Љ",u3="љ",f3="⇇",h3="≪",d3="⋘",p3="⌞",g3="⇚",v3="⥫",m3="◺",y3="Ŀ",b3="ŀ",w3="⎰",x3="⎰",_3="⪉",S3="⪉",k3="⪇",C3="≨",T3="⪇",E3="≨",L3="⋦",A3="⟬",M3="⇽",N3="⟦",P3="⟵",O3="⟵",D3="⟸",$3="⟷",R3="⟷",z3="⟺",F3="⟼",I3="⟶",q3="⟶",H3="⟹",B3="↫",W3="↬",U3="⦅",j3="𝕃",G3="𝕝",V3="⨭",K3="⨴",X3="∗",Y3="_",Z3="↙",J3="↘",Q3="◊",t5="◊",e5="⧫",n5="(",r5="⦓",i5="⇆",o5="⌟",s5="⇋",l5="⥭",a5="‎",c5="⊿",u5="‹",f5="𝓁",h5="ℒ",d5="↰",p5="↰",g5="≲",v5="⪍",m5="⪏",y5="[",b5="‘",w5="‚",x5="Ł",_5="ł",S5="⪦",k5="⩹",C5="<",T5="<",E5="≪",L5="⋖",A5="⋋",M5="⋉",N5="⥶",P5="⩻",O5="◃",D5="⊴",$5="◂",R5="⦖",z5="⥊",F5="⥦",I5="≨︀",q5="≨︀",H5="¯",B5="♂",W5="✠",U5="✠",j5="↦",G5="↦",V5="↧",K5="↤",X5="↥",Y5="▮",Z5="⨩",J5="М",Q5="м",t8="—",e8="∺",n8="∡",r8=" ",i8="ℳ",o8="𝔐",s8="𝔪",l8="℧",a8="µ",c8="*",u8="⫰",f8="∣",h8="·",d8="⊟",p8="−",g8="∸",v8="⨪",m8="∓",y8="⫛",b8="…",w8="∓",x8="⊧",_8="𝕄",S8="𝕞",k8="∓",C8="𝓂",T8="ℳ",E8="∾",L8="Μ",A8="μ",M8="⊸",N8="⊸",P8="∇",O8="Ń",D8="ń",$8="∠⃒",R8="≉",z8="⩰̸",F8="≋̸",I8="ʼn",q8="≉",H8="♮",B8="ℕ",W8="♮",U8=" ",j8="≎̸",G8="≏̸",V8="⩃",K8="Ň",X8="ň",Y8="Ņ",Z8="ņ",J8="≇",Q8="⩭̸",tW="⩂",eW="Н",nW="н",rW="–",iW="⤤",oW="↗",sW="⇗",lW="↗",aW="≠",cW="≐̸",uW="​",fW="​",hW="​",dW="​",pW="≢",gW="⤨",vW="≂̸",mW="≫",yW="≪",bW=`
6
+ `,wW="∄",xW="∄",_W="𝔑",SW="𝔫",kW="≧̸",CW="≱",TW="≱",EW="≧̸",LW="⩾̸",AW="⩾̸",MW="⋙̸",NW="≵",PW="≫⃒",OW="≯",DW="≯",$W="≫̸",RW="↮",zW="⇎",FW="⫲",IW="∋",qW="⋼",HW="⋺",BW="∋",WW="Њ",UW="њ",jW="↚",GW="⇍",VW="‥",KW="≦̸",XW="≰",YW="↚",ZW="⇍",JW="↮",QW="⇎",tU="≰",eU="≦̸",nU="⩽̸",rU="⩽̸",iU="≮",oU="⋘̸",sU="≴",lU="≪⃒",aU="≮",cU="⋪",uU="⋬",fU="≪̸",hU="∤",dU="⁠",pU=" ",gU="𝕟",vU="ℕ",mU="⫬",yU="¬",bU="≢",wU="≭",xU="∦",_U="∉",SU="≠",kU="≂̸",CU="∄",TU="≯",EU="≱",LU="≧̸",AU="≫̸",MU="≹",NU="⩾̸",PU="≵",OU="≎̸",DU="≏̸",$U="∉",RU="⋵̸",zU="⋹̸",FU="∉",IU="⋷",qU="⋶",HU="⧏̸",BU="⋪",WU="⋬",UU="≮",jU="≰",GU="≸",VU="≪̸",KU="⩽̸",XU="≴",YU="⪢̸",ZU="⪡̸",JU="∌",QU="∌",t4="⋾",e4="⋽",n4="⊀",r4="⪯̸",i4="⋠",o4="∌",s4="⧐̸",l4="⋫",a4="⋭",c4="⊏̸",u4="⋢",f4="⊐̸",h4="⋣",d4="⊂⃒",p4="⊈",g4="⊁",v4="⪰̸",m4="⋡",y4="≿̸",b4="⊃⃒",w4="⊉",x4="≁",_4="≄",S4="≇",k4="≉",C4="∤",T4="∦",E4="∦",L4="⫽⃥",A4="∂̸",M4="⨔",N4="⊀",P4="⋠",O4="⊀",D4="⪯̸",$4="⪯̸",R4="⤳̸",z4="↛",F4="⇏",I4="↝̸",q4="↛",H4="⇏",B4="⋫",W4="⋭",U4="⊁",j4="⋡",G4="⪰̸",V4="𝒩",K4="𝓃",X4="∤",Y4="∦",Z4="≁",J4="≄",Q4="≄",t6="∤",e6="∦",n6="⋢",r6="⋣",i6="⊄",o6="⫅̸",s6="⊈",l6="⊂⃒",a6="⊈",c6="⫅̸",u6="⊁",f6="⪰̸",h6="⊅",d6="⫆̸",p6="⊉",g6="⊃⃒",v6="⊉",m6="⫆̸",y6="≹",b6="Ñ",w6="ñ",x6="≸",_6="⋪",S6="⋬",k6="⋫",C6="⋭",T6="Ν",E6="ν",L6="#",A6="№",M6=" ",N6="≍⃒",P6="⊬",O6="⊭",D6="⊮",$6="⊯",R6="≥⃒",z6=">⃒",F6="⤄",I6="⧞",q6="⤂",H6="≤⃒",B6="<⃒",W6="⊴⃒",U6="⤃",j6="⊵⃒",G6="∼⃒",V6="⤣",K6="↖",X6="⇖",Y6="↖",Z6="⤧",J6="Ó",Q6="ó",tj="⊛",ej="Ô",nj="ô",rj="⊚",ij="О",oj="о",sj="⊝",lj="Ő",aj="ő",cj="⨸",uj="⊙",fj="⦼",hj="Œ",dj="œ",pj="⦿",gj="𝔒",vj="𝔬",mj="˛",yj="Ò",bj="ò",wj="⧁",xj="⦵",_j="Ω",Sj="∮",kj="↺",Cj="⦾",Tj="⦻",Ej="‾",Lj="⧀",Aj="Ō",Mj="ō",Nj="Ω",Pj="ω",Oj="Ο",Dj="ο",$j="⦶",Rj="⊖",zj="𝕆",Fj="𝕠",Ij="⦷",qj="“",Hj="‘",Bj="⦹",Wj="⊕",Uj="↻",jj="⩔",Gj="∨",Vj="⩝",Kj="ℴ",Xj="ℴ",Yj="ª",Zj="º",Jj="⊶",Qj="⩖",t9="⩗",e9="⩛",n9="Ⓢ",r9="𝒪",i9="ℴ",o9="Ø",s9="ø",l9="⊘",a9="Õ",c9="õ",u9="⨶",f9="⨷",h9="⊗",d9="Ö",p9="ö",g9="⌽",v9="‾",m9="⏞",y9="⎴",b9="⏜",w9="¶",x9="∥",_9="∥",S9="⫳",k9="⫽",C9="∂",T9="∂",E9="П",L9="п",A9="%",M9=".",N9="‰",P9="⊥",O9="‱",D9="𝔓",$9="𝔭",R9="Φ",z9="φ",F9="ϕ",I9="ℳ",q9="☎",H9="Π",B9="π",W9="⋔",U9="ϖ",j9="ℏ",G9="ℎ",V9="ℏ",K9="⨣",X9="⊞",Y9="⨢",Z9="+",J9="∔",Q9="⨥",tG="⩲",eG="±",nG="±",rG="⨦",iG="⨧",oG="±",sG="ℌ",lG="⨕",aG="𝕡",cG="ℙ",uG="£",fG="⪷",hG="⪻",dG="≺",pG="≼",gG="⪷",vG="≺",mG="≼",yG="≺",bG="⪯",wG="≼",xG="≾",_G="⪯",SG="⪹",kG="⪵",CG="⋨",TG="⪯",EG="⪳",LG="≾",AG="′",MG="″",NG="ℙ",PG="⪹",OG="⪵",DG="⋨",$G="∏",RG="∏",zG="⌮",FG="⌒",IG="⌓",qG="∝",HG="∝",BG="∷",WG="∝",UG="≾",jG="⊰",GG="𝒫",VG="𝓅",KG="Ψ",XG="ψ",YG=" ",ZG="𝔔",JG="𝔮",QG="⨌",tV="𝕢",eV="ℚ",nV="⁗",rV="𝒬",iV="𝓆",oV="ℍ",sV="⨖",lV="?",aV="≟",cV='"',uV='"',fV="⇛",hV="∽̱",dV="Ŕ",pV="ŕ",gV="√",vV="⦳",mV="⟩",yV="⟫",bV="⦒",wV="⦥",xV="⟩",_V="»",SV="⥵",kV="⇥",CV="⤠",TV="⤳",EV="→",LV="↠",AV="⇒",MV="⤞",NV="↪",PV="↬",OV="⥅",DV="⥴",$V="⤖",RV="↣",zV="↝",FV="⤚",IV="⤜",qV="∶",HV="ℚ",BV="⤍",WV="⤏",UV="⤐",jV="❳",GV="}",VV="]",KV="⦌",XV="⦎",YV="⦐",ZV="Ř",JV="ř",QV="Ŗ",t7="ŗ",e7="⌉",n7="}",r7="Р",i7="р",o7="⤷",s7="⥩",l7="”",a7="”",c7="↳",u7="ℜ",f7="ℛ",h7="ℜ",d7="ℝ",p7="ℜ",g7="▭",v7="®",m7="®",y7="∋",b7="⇋",w7="⥯",x7="⥽",_7="⌋",S7="𝔯",k7="ℜ",C7="⥤",T7="⇁",E7="⇀",L7="⥬",A7="Ρ",M7="ρ",N7="ϱ",P7="⟩",O7="⇥",D7="→",$7="→",R7="⇒",z7="⇄",F7="↣",I7="⌉",q7="⟧",H7="⥝",B7="⥕",W7="⇂",U7="⌋",j7="⇁",G7="⇀",V7="⇄",K7="⇌",X7="⇉",Y7="↝",Z7="↦",J7="⊢",Q7="⥛",tK="⋌",eK="⧐",nK="⊳",rK="⊵",iK="⥏",oK="⥜",sK="⥔",lK="↾",aK="⥓",cK="⇀",uK="˚",fK="≓",hK="⇄",dK="⇌",pK="‏",gK="⎱",vK="⎱",mK="⫮",yK="⟭",bK="⇾",wK="⟧",xK="⦆",_K="𝕣",SK="ℝ",kK="⨮",CK="⨵",TK="⥰",EK=")",LK="⦔",AK="⨒",MK="⇉",NK="⇛",PK="›",OK="𝓇",DK="ℛ",$K="↱",RK="↱",zK="]",FK="’",IK="’",qK="⋌",HK="⋊",BK="▹",WK="⊵",UK="▸",jK="⧎",GK="⧴",VK="⥨",KK="℞",XK="Ś",YK="ś",ZK="‚",JK="⪸",QK="Š",tX="š",eX="⪼",nX="≻",rX="≽",iX="⪰",oX="⪴",sX="Ş",lX="ş",aX="Ŝ",cX="ŝ",uX="⪺",fX="⪶",hX="⋩",dX="⨓",pX="≿",gX="С",vX="с",mX="⊡",yX="⋅",bX="⩦",wX="⤥",xX="↘",_X="⇘",SX="↘",kX="§",CX=";",TX="⤩",EX="∖",LX="∖",AX="✶",MX="𝔖",NX="𝔰",PX="⌢",OX="♯",DX="Щ",$X="щ",RX="Ш",zX="ш",FX="↓",IX="←",qX="∣",HX="∥",BX="→",WX="↑",UX="­",jX="Σ",GX="σ",VX="ς",KX="ς",XX="∼",YX="⩪",ZX="≃",JX="≃",QX="⪞",tY="⪠",eY="⪝",nY="⪟",rY="≆",iY="⨤",oY="⥲",sY="←",lY="∘",aY="∖",cY="⨳",uY="⧤",fY="∣",hY="⌣",dY="⪪",pY="⪬",gY="⪬︀",vY="Ь",mY="ь",yY="⌿",bY="⧄",wY="/",xY="𝕊",_Y="𝕤",SY="♠",kY="♠",CY="∥",TY="⊓",EY="⊓︀",LY="⊔",AY="⊔︀",MY="√",NY="⊏",PY="⊑",OY="⊏",DY="⊑",$Y="⊐",RY="⊒",zY="⊐",FY="⊒",IY="□",qY="□",HY="⊓",BY="⊏",WY="⊑",UY="⊐",jY="⊒",GY="⊔",VY="▪",KY="□",XY="▪",YY="→",ZY="𝒮",JY="𝓈",QY="∖",tZ="⌣",eZ="⋆",nZ="⋆",rZ="☆",iZ="★",oZ="ϵ",sZ="ϕ",lZ="¯",aZ="⊂",cZ="⋐",uZ="⪽",fZ="⫅",hZ="⊆",dZ="⫃",pZ="⫁",gZ="⫋",vZ="⊊",mZ="⪿",yZ="⥹",bZ="⊂",wZ="⋐",xZ="⊆",_Z="⫅",SZ="⊆",kZ="⊊",CZ="⫋",TZ="⫇",EZ="⫕",LZ="⫓",AZ="⪸",MZ="≻",NZ="≽",PZ="≻",OZ="⪰",DZ="≽",$Z="≿",RZ="⪰",zZ="⪺",FZ="⪶",IZ="⋩",qZ="≿",HZ="∋",BZ="∑",WZ="∑",UZ="♪",jZ="¹",GZ="²",VZ="³",KZ="⊃",XZ="⋑",YZ="⪾",ZZ="⫘",JZ="⫆",QZ="⊇",tJ="⫄",eJ="⊃",nJ="⊇",rJ="⟉",iJ="⫗",oJ="⥻",sJ="⫂",lJ="⫌",aJ="⊋",cJ="⫀",uJ="⊃",fJ="⋑",hJ="⊇",dJ="⫆",pJ="⊋",gJ="⫌",vJ="⫈",mJ="⫔",yJ="⫖",bJ="⤦",wJ="↙",xJ="⇙",_J="↙",SJ="⤪",kJ="ß",CJ=" ",TJ="⌖",EJ="Τ",LJ="τ",AJ="⎴",MJ="Ť",NJ="ť",PJ="Ţ",OJ="ţ",DJ="Т",$J="т",RJ="⃛",zJ="⌕",FJ="𝔗",IJ="𝔱",qJ="∴",HJ="∴",BJ="∴",WJ="Θ",UJ="θ",jJ="ϑ",GJ="ϑ",VJ="≈",KJ="∼",XJ="  ",YJ=" ",ZJ=" ",JJ="≈",QJ="∼",tQ="Þ",eQ="þ",nQ="˜",rQ="∼",iQ="≃",oQ="≅",sQ="≈",lQ="⨱",aQ="⊠",cQ="×",uQ="⨰",fQ="∭",hQ="⤨",dQ="⌶",pQ="⫱",gQ="⊤",vQ="𝕋",mQ="𝕥",yQ="⫚",bQ="⤩",wQ="‴",xQ="™",_Q="™",SQ="▵",kQ="▿",CQ="◃",TQ="⊴",EQ="≜",LQ="▹",AQ="⊵",MQ="◬",NQ="≜",PQ="⨺",OQ="⃛",DQ="⨹",$Q="⧍",RQ="⨻",zQ="⏢",FQ="𝒯",IQ="𝓉",qQ="Ц",HQ="ц",BQ="Ћ",WQ="ћ",UQ="Ŧ",jQ="ŧ",GQ="≬",VQ="↞",KQ="↠",XQ="Ú",YQ="ú",ZQ="↑",JQ="↟",QQ="⇑",ttt="⥉",ett="Ў",ntt="ў",rtt="Ŭ",itt="ŭ",ott="Û",stt="û",ltt="У",att="у",ctt="⇅",utt="Ű",ftt="ű",htt="⥮",dtt="⥾",ptt="𝔘",gtt="𝔲",vtt="Ù",mtt="ù",ytt="⥣",btt="↿",wtt="↾",xtt="▀",_tt="⌜",Stt="⌜",ktt="⌏",Ctt="◸",Ttt="Ū",Ett="ū",Ltt="¨",Att="_",Mtt="⏟",Ntt="⎵",Ptt="⏝",Ott="⋃",Dtt="⊎",$tt="Ų",Rtt="ų",ztt="𝕌",Ftt="𝕦",Itt="⤒",qtt="↑",Htt="↑",Btt="⇑",Wtt="⇅",Utt="↕",jtt="↕",Gtt="⇕",Vtt="⥮",Ktt="↿",Xtt="↾",Ytt="⊎",Ztt="↖",Jtt="↗",Qtt="υ",tet="ϒ",eet="ϒ",net="Υ",ret="υ",iet="↥",oet="⊥",set="⇈",aet="⌝",cet="⌝",uet="⌎",fet="Ů",het="ů",det="◹",pet="𝒰",get="𝓊",vet="⋰",met="Ũ",yet="ũ",bet="▵",wet="▴",xet="⇈",_et="Ü",ket="ü",Cet="⦧",Tet="⦜",Eet="ϵ",Let="ϰ",Aet="∅",Met="ϕ",Net="ϖ",Pet="∝",Oet="↕",Det="⇕",$et="ϱ",Ret="ς",zet="⊊︀",Fet="⫋︀",Iet="⊋︀",qet="⫌︀",Het="ϑ",Bet="⊲",Wet="⊳",Uet="⫨",jet="⫫",Get="⫩",Vet="В",Ket="в",Xet="⊢",Yet="⊨",Zet="⊩",Jet="⊫",Qet="⫦",tnt="⊻",ent="∨",nnt="⋁",rnt="≚",int="⋮",ont="|",snt="‖",lnt="|",ant="‖",cnt="∣",unt="|",fnt="❘",hnt="≀",dnt=" ",pnt="𝔙",gnt="𝔳",vnt="⊲",mnt="⊂⃒",ynt="⊃⃒",bnt="𝕍",wnt="𝕧",xnt="∝",_nt="⊳",Snt="𝒱",knt="𝓋",Cnt="⫋︀",Tnt="⊊︀",Ent="⫌︀",Lnt="⊋︀",Ant="⊪",Mnt="⦚",Nnt="Ŵ",Pnt="ŵ",Ont="⩟",Dnt="∧",$nt="⋀",Rnt="≙",znt="℘",Fnt="𝔚",Int="𝔴",qnt="𝕎",Hnt="𝕨",Bnt="℘",Wnt="≀",Unt="≀",jnt="𝒲",Gnt="𝓌",Vnt="⋂",Knt="◯",Xnt="⋃",Ynt="▽",Znt="𝔛",Jnt="𝔵",Qnt="⟷",trt="⟺",ert="Ξ",nrt="ξ",rrt="⟵",irt="⟸",ort="⟼",srt="⋻",lrt="⨀",art="𝕏",crt="𝕩",urt="⨁",frt="⨂",hrt="⟶",drt="⟹",prt="𝒳",grt="𝓍",vrt="⨆",mrt="⨄",yrt="△",brt="⋁",wrt="⋀",xrt="Ý",_rt="ý",Srt="Я",krt="я",Crt="Ŷ",Trt="ŷ",Ert="Ы",Lrt="ы",Art="¥",Mrt="𝔜",Nrt="𝔶",Prt="Ї",Ort="ї",Drt="𝕐",$rt="𝕪",Rrt="𝒴",zrt="𝓎",Frt="Ю",Irt="ю",qrt="ÿ",Hrt="Ÿ",Brt="Ź",Wrt="ź",Urt="Ž",jrt="ž",Grt="З",Vrt="з",Krt="Ż",Xrt="ż",Yrt="ℨ",Zrt="​",Jrt="Ζ",Qrt="ζ",tit="𝔷",eit="ℨ",nit="Ж",rit="ж",iit="⇝",oit="𝕫",sit="ℤ",lit="𝒵",ait="𝓏",cit="‍",uit="‌",gy={Aacute:GT,aacute:VT,Abreve:KT,abreve:XT,ac:YT,acd:ZT,acE:JT,Acirc:QT,acirc:tE,acute:eE,Acy:nE,acy:rE,AElig:iE,aelig:oE,af:sE,Afr:lE,afr:aE,Agrave:cE,agrave:uE,alefsym:fE,aleph:hE,Alpha:dE,alpha:pE,Amacr:gE,amacr:vE,amalg:mE,amp:yE,AMP:bE,andand:wE,And:xE,and:_E,andd:SE,andslope:kE,andv:CE,ang:TE,ange:EE,angle:LE,angmsdaa:AE,angmsdab:ME,angmsdac:NE,angmsdad:PE,angmsdae:OE,angmsdaf:DE,angmsdag:$E,angmsdah:RE,angmsd:zE,angrt:FE,angrtvb:IE,angrtvbd:qE,angsph:HE,angst:BE,angzarr:WE,Aogon:UE,aogon:jE,Aopf:GE,aopf:VE,apacir:KE,ap:XE,apE:YE,ape:ZE,apid:JE,apos:QE,ApplyFunction:tL,approx:eL,approxeq:nL,Aring:rL,aring:iL,Ascr:oL,ascr:sL,Assign:lL,ast:aL,asymp:cL,asympeq:uL,Atilde:fL,atilde:hL,Auml:dL,auml:pL,awconint:gL,awint:vL,backcong:mL,backepsilon:yL,backprime:bL,backsim:wL,backsimeq:xL,Backslash:_L,Barv:SL,barvee:kL,barwed:CL,Barwed:TL,barwedge:EL,bbrk:LL,bbrktbrk:AL,bcong:ML,Bcy:NL,bcy:PL,bdquo:OL,becaus:DL,because:$L,Because:RL,bemptyv:zL,bepsi:FL,bernou:IL,Bernoullis:qL,Beta:HL,beta:BL,beth:WL,between:UL,Bfr:jL,bfr:GL,bigcap:VL,bigcirc:KL,bigcup:XL,bigodot:YL,bigoplus:ZL,bigotimes:JL,bigsqcup:QL,bigstar:tA,bigtriangledown:eA,bigtriangleup:nA,biguplus:rA,bigvee:iA,bigwedge:oA,bkarow:sA,blacklozenge:lA,blacksquare:aA,blacktriangle:cA,blacktriangledown:uA,blacktriangleleft:fA,blacktriangleright:hA,blank:dA,blk12:pA,blk14:gA,blk34:vA,block:mA,bne:yA,bnequiv:bA,bNot:wA,bnot:xA,Bopf:_A,bopf:SA,bot:kA,bottom:CA,bowtie:TA,boxbox:EA,boxdl:LA,boxdL:AA,boxDl:MA,boxDL:NA,boxdr:PA,boxdR:OA,boxDr:DA,boxDR:$A,boxh:RA,boxH:zA,boxhd:FA,boxHd:IA,boxhD:qA,boxHD:HA,boxhu:BA,boxHu:WA,boxhU:UA,boxHU:jA,boxminus:GA,boxplus:VA,boxtimes:KA,boxul:XA,boxuL:YA,boxUl:ZA,boxUL:JA,boxur:QA,boxuR:tM,boxUr:eM,boxUR:nM,boxv:rM,boxV:iM,boxvh:oM,boxvH:sM,boxVh:lM,boxVH:aM,boxvl:cM,boxvL:uM,boxVl:fM,boxVL:hM,boxvr:dM,boxvR:pM,boxVr:gM,boxVR:vM,bprime:mM,breve:yM,Breve:bM,brvbar:wM,bscr:xM,Bscr:_M,bsemi:SM,bsim:kM,bsime:CM,bsolb:TM,bsol:EM,bsolhsub:LM,bull:AM,bullet:MM,bump:NM,bumpE:PM,bumpe:OM,Bumpeq:DM,bumpeq:$M,Cacute:RM,cacute:zM,capand:FM,capbrcup:IM,capcap:qM,cap:HM,Cap:BM,capcup:WM,capdot:UM,CapitalDifferentialD:jM,caps:GM,caret:VM,caron:KM,Cayleys:XM,ccaps:YM,Ccaron:ZM,ccaron:JM,Ccedil:QM,ccedil:tN,Ccirc:eN,ccirc:nN,Cconint:rN,ccups:iN,ccupssm:oN,Cdot:sN,cdot:lN,cedil:aN,Cedilla:cN,cemptyv:uN,cent:fN,centerdot:hN,CenterDot:dN,cfr:pN,Cfr:gN,CHcy:vN,chcy:mN,check:yN,checkmark:bN,Chi:wN,chi:xN,circ:_N,circeq:SN,circlearrowleft:kN,circlearrowright:CN,circledast:TN,circledcirc:EN,circleddash:LN,CircleDot:AN,circledR:MN,circledS:NN,CircleMinus:PN,CirclePlus:ON,CircleTimes:DN,cir:$N,cirE:RN,cire:zN,cirfnint:FN,cirmid:IN,cirscir:qN,ClockwiseContourIntegral:HN,CloseCurlyDoubleQuote:BN,CloseCurlyQuote:WN,clubs:UN,clubsuit:jN,colon:GN,Colon:VN,Colone:KN,colone:XN,coloneq:YN,comma:ZN,commat:JN,comp:QN,compfn:tP,complement:eP,complexes:nP,cong:rP,congdot:iP,Congruent:oP,conint:sP,Conint:lP,ContourIntegral:aP,copf:cP,Copf:uP,coprod:fP,Coproduct:hP,copy:dP,COPY:pP,copysr:gP,CounterClockwiseContourIntegral:vP,crarr:mP,cross:yP,Cross:bP,Cscr:wP,cscr:xP,csub:_P,csube:SP,csup:kP,csupe:CP,ctdot:TP,cudarrl:EP,cudarrr:LP,cuepr:AP,cuesc:MP,cularr:NP,cularrp:PP,cupbrcap:OP,cupcap:DP,CupCap:$P,cup:RP,Cup:zP,cupcup:FP,cupdot:IP,cupor:qP,cups:HP,curarr:BP,curarrm:WP,curlyeqprec:UP,curlyeqsucc:jP,curlyvee:GP,curlywedge:VP,curren:KP,curvearrowleft:XP,curvearrowright:YP,cuvee:ZP,cuwed:JP,cwconint:QP,cwint:tO,cylcty:eO,dagger:nO,Dagger:rO,daleth:iO,darr:oO,Darr:sO,dArr:lO,dash:aO,Dashv:cO,dashv:uO,dbkarow:fO,dblac:hO,Dcaron:dO,dcaron:pO,Dcy:gO,dcy:vO,ddagger:mO,ddarr:yO,DD:bO,dd:wO,DDotrahd:xO,ddotseq:_O,deg:SO,Del:kO,Delta:CO,delta:TO,demptyv:EO,dfisht:LO,Dfr:AO,dfr:MO,dHar:NO,dharl:PO,dharr:OO,DiacriticalAcute:DO,DiacriticalDot:$O,DiacriticalDoubleAcute:RO,DiacriticalGrave:zO,DiacriticalTilde:FO,diam:IO,diamond:qO,Diamond:HO,diamondsuit:BO,diams:WO,die:UO,DifferentialD:jO,digamma:GO,disin:VO,div:KO,divide:XO,divideontimes:YO,divonx:ZO,DJcy:JO,djcy:QO,dlcorn:tD,dlcrop:eD,dollar:nD,Dopf:rD,dopf:iD,Dot:oD,dot:sD,DotDot:lD,doteq:aD,doteqdot:cD,DotEqual:uD,dotminus:fD,dotplus:hD,dotsquare:dD,doublebarwedge:pD,DoubleContourIntegral:gD,DoubleDot:vD,DoubleDownArrow:mD,DoubleLeftArrow:yD,DoubleLeftRightArrow:bD,DoubleLeftTee:wD,DoubleLongLeftArrow:xD,DoubleLongLeftRightArrow:_D,DoubleLongRightArrow:SD,DoubleRightArrow:kD,DoubleRightTee:CD,DoubleUpArrow:TD,DoubleUpDownArrow:ED,DoubleVerticalBar:LD,DownArrowBar:AD,downarrow:MD,DownArrow:ND,Downarrow:PD,DownArrowUpArrow:OD,DownBreve:DD,downdownarrows:$D,downharpoonleft:RD,downharpoonright:zD,DownLeftRightVector:FD,DownLeftTeeVector:ID,DownLeftVectorBar:qD,DownLeftVector:HD,DownRightTeeVector:BD,DownRightVectorBar:WD,DownRightVector:UD,DownTeeArrow:jD,DownTee:GD,drbkarow:VD,drcorn:KD,drcrop:XD,Dscr:YD,dscr:ZD,DScy:JD,dscy:QD,dsol:t$,Dstrok:e$,dstrok:n$,dtdot:r$,dtri:i$,dtrif:o$,duarr:s$,duhar:l$,dwangle:a$,DZcy:c$,dzcy:u$,dzigrarr:f$,Eacute:h$,eacute:d$,easter:p$,Ecaron:g$,ecaron:v$,Ecirc:m$,ecirc:y$,ecir:b$,ecolon:w$,Ecy:x$,ecy:_$,eDDot:S$,Edot:k$,edot:C$,eDot:T$,ee:E$,efDot:L$,Efr:A$,efr:M$,eg:N$,Egrave:P$,egrave:O$,egs:D$,egsdot:$$,el:R$,Element:z$,elinters:F$,ell:I$,els:q$,elsdot:H$,Emacr:B$,emacr:W$,empty:U$,emptyset:j$,EmptySmallSquare:G$,emptyv:V$,EmptyVerySmallSquare:K$,emsp13:X$,emsp14:Y$,emsp:Z$,ENG:J$,eng:Q$,ensp:tR,Eogon:eR,eogon:nR,Eopf:rR,eopf:iR,epar:oR,eparsl:sR,eplus:lR,epsi:aR,Epsilon:cR,epsilon:uR,epsiv:fR,eqcirc:hR,eqcolon:dR,eqsim:pR,eqslantgtr:gR,eqslantless:vR,Equal:mR,equals:yR,EqualTilde:bR,equest:wR,Equilibrium:xR,equiv:_R,equivDD:SR,eqvparsl:kR,erarr:CR,erDot:TR,escr:ER,Escr:LR,esdot:AR,Esim:MR,esim:NR,Eta:PR,eta:OR,ETH:DR,eth:$R,Euml:RR,euml:zR,euro:FR,excl:IR,exist:qR,Exists:HR,expectation:BR,exponentiale:WR,ExponentialE:UR,fallingdotseq:jR,Fcy:GR,fcy:VR,female:KR,ffilig:XR,fflig:YR,ffllig:ZR,Ffr:JR,ffr:QR,filig:t2,FilledSmallSquare:e2,FilledVerySmallSquare:n2,fjlig:r2,flat:i2,fllig:o2,fltns:s2,fnof:l2,Fopf:a2,fopf:c2,forall:u2,ForAll:f2,fork:h2,forkv:d2,Fouriertrf:p2,fpartint:g2,frac12:v2,frac13:m2,frac14:y2,frac15:b2,frac16:w2,frac18:x2,frac23:_2,frac25:S2,frac34:k2,frac35:C2,frac38:T2,frac45:E2,frac56:L2,frac58:A2,frac78:M2,frasl:N2,frown:P2,fscr:O2,Fscr:D2,gacute:$2,Gamma:R2,gamma:z2,Gammad:F2,gammad:I2,gap:q2,Gbreve:H2,gbreve:B2,Gcedil:W2,Gcirc:U2,gcirc:j2,Gcy:G2,gcy:V2,Gdot:K2,gdot:X2,ge:Y2,gE:Z2,gEl:J2,gel:Q2,geq:tz,geqq:ez,geqslant:nz,gescc:rz,ges:iz,gesdot:oz,gesdoto:sz,gesdotol:lz,gesl:az,gesles:cz,Gfr:uz,gfr:fz,gg:hz,Gg:dz,ggg:pz,gimel:gz,GJcy:vz,gjcy:mz,gla:yz,gl:bz,glE:wz,glj:xz,gnap:_z,gnapprox:Sz,gne:kz,gnE:Cz,gneq:Tz,gneqq:Ez,gnsim:Lz,Gopf:Az,gopf:Mz,grave:Nz,GreaterEqual:Pz,GreaterEqualLess:Oz,GreaterFullEqual:Dz,GreaterGreater:$z,GreaterLess:Rz,GreaterSlantEqual:zz,GreaterTilde:Fz,Gscr:Iz,gscr:qz,gsim:Hz,gsime:Bz,gsiml:Wz,gtcc:Uz,gtcir:jz,gt:Gz,GT:Vz,Gt:Kz,gtdot:Xz,gtlPar:Yz,gtquest:Zz,gtrapprox:Jz,gtrarr:Qz,gtrdot:tF,gtreqless:eF,gtreqqless:nF,gtrless:rF,gtrsim:iF,gvertneqq:oF,gvnE:sF,Hacek:lF,hairsp:aF,half:cF,hamilt:uF,HARDcy:fF,hardcy:hF,harrcir:dF,harr:pF,hArr:gF,harrw:vF,Hat:mF,hbar:yF,Hcirc:bF,hcirc:wF,hearts:xF,heartsuit:_F,hellip:SF,hercon:kF,hfr:CF,Hfr:TF,HilbertSpace:EF,hksearow:LF,hkswarow:AF,hoarr:MF,homtht:NF,hookleftarrow:PF,hookrightarrow:OF,hopf:DF,Hopf:$F,horbar:RF,HorizontalLine:zF,hscr:FF,Hscr:IF,hslash:qF,Hstrok:HF,hstrok:BF,HumpDownHump:WF,HumpEqual:UF,hybull:jF,hyphen:GF,Iacute:VF,iacute:KF,ic:XF,Icirc:YF,icirc:ZF,Icy:JF,icy:QF,Idot:tI,IEcy:eI,iecy:nI,iexcl:rI,iff:iI,ifr:oI,Ifr:sI,Igrave:lI,igrave:aI,ii:cI,iiiint:uI,iiint:fI,iinfin:hI,iiota:dI,IJlig:pI,ijlig:gI,Imacr:vI,imacr:mI,image:yI,ImaginaryI:bI,imagline:wI,imagpart:xI,imath:_I,Im:SI,imof:kI,imped:CI,Implies:TI,incare:EI,in:"∈",infin:LI,infintie:AI,inodot:MI,intcal:NI,int:PI,Int:OI,integers:DI,Integral:$I,intercal:RI,Intersection:zI,intlarhk:FI,intprod:II,InvisibleComma:qI,InvisibleTimes:HI,IOcy:BI,iocy:WI,Iogon:UI,iogon:jI,Iopf:GI,iopf:VI,Iota:KI,iota:XI,iprod:YI,iquest:ZI,iscr:JI,Iscr:QI,isin:tq,isindot:eq,isinE:nq,isins:rq,isinsv:iq,isinv:oq,it:sq,Itilde:lq,itilde:aq,Iukcy:cq,iukcy:uq,Iuml:fq,iuml:hq,Jcirc:dq,jcirc:pq,Jcy:gq,jcy:vq,Jfr:mq,jfr:yq,jmath:bq,Jopf:wq,jopf:xq,Jscr:_q,jscr:Sq,Jsercy:kq,jsercy:Cq,Jukcy:Tq,jukcy:Eq,Kappa:Lq,kappa:Aq,kappav:Mq,Kcedil:Nq,kcedil:Pq,Kcy:Oq,kcy:Dq,Kfr:$q,kfr:Rq,kgreen:zq,KHcy:Fq,khcy:Iq,KJcy:qq,kjcy:Hq,Kopf:Bq,kopf:Wq,Kscr:Uq,kscr:jq,lAarr:Gq,Lacute:Vq,lacute:Kq,laemptyv:Xq,lagran:Yq,Lambda:Zq,lambda:Jq,lang:Qq,Lang:tH,langd:eH,langle:nH,lap:rH,Laplacetrf:iH,laquo:oH,larrb:sH,larrbfs:lH,larr:aH,Larr:cH,lArr:uH,larrfs:fH,larrhk:hH,larrlp:dH,larrpl:pH,larrsim:gH,larrtl:vH,latail:mH,lAtail:yH,lat:bH,late:wH,lates:xH,lbarr:_H,lBarr:SH,lbbrk:kH,lbrace:CH,lbrack:TH,lbrke:EH,lbrksld:LH,lbrkslu:AH,Lcaron:MH,lcaron:NH,Lcedil:PH,lcedil:OH,lceil:DH,lcub:$H,Lcy:RH,lcy:zH,ldca:FH,ldquo:IH,ldquor:qH,ldrdhar:HH,ldrushar:BH,ldsh:WH,le:UH,lE:jH,LeftAngleBracket:GH,LeftArrowBar:VH,leftarrow:KH,LeftArrow:XH,Leftarrow:YH,LeftArrowRightArrow:ZH,leftarrowtail:JH,LeftCeiling:QH,LeftDoubleBracket:tB,LeftDownTeeVector:eB,LeftDownVectorBar:nB,LeftDownVector:rB,LeftFloor:iB,leftharpoondown:oB,leftharpoonup:sB,leftleftarrows:lB,leftrightarrow:aB,LeftRightArrow:cB,Leftrightarrow:uB,leftrightarrows:fB,leftrightharpoons:hB,leftrightsquigarrow:dB,LeftRightVector:pB,LeftTeeArrow:gB,LeftTee:vB,LeftTeeVector:mB,leftthreetimes:yB,LeftTriangleBar:bB,LeftTriangle:wB,LeftTriangleEqual:xB,LeftUpDownVector:_B,LeftUpTeeVector:SB,LeftUpVectorBar:kB,LeftUpVector:CB,LeftVectorBar:TB,LeftVector:EB,lEg:LB,leg:AB,leq:MB,leqq:NB,leqslant:PB,lescc:OB,les:DB,lesdot:$B,lesdoto:RB,lesdotor:zB,lesg:FB,lesges:IB,lessapprox:qB,lessdot:HB,lesseqgtr:BB,lesseqqgtr:WB,LessEqualGreater:UB,LessFullEqual:jB,LessGreater:GB,lessgtr:VB,LessLess:KB,lesssim:XB,LessSlantEqual:YB,LessTilde:ZB,lfisht:JB,lfloor:QB,Lfr:t3,lfr:e3,lg:n3,lgE:r3,lHar:i3,lhard:o3,lharu:s3,lharul:l3,lhblk:a3,LJcy:c3,ljcy:u3,llarr:f3,ll:h3,Ll:d3,llcorner:p3,Lleftarrow:g3,llhard:v3,lltri:m3,Lmidot:y3,lmidot:b3,lmoustache:w3,lmoust:x3,lnap:_3,lnapprox:S3,lne:k3,lnE:C3,lneq:T3,lneqq:E3,lnsim:L3,loang:A3,loarr:M3,lobrk:N3,longleftarrow:P3,LongLeftArrow:O3,Longleftarrow:D3,longleftrightarrow:$3,LongLeftRightArrow:R3,Longleftrightarrow:z3,longmapsto:F3,longrightarrow:I3,LongRightArrow:q3,Longrightarrow:H3,looparrowleft:B3,looparrowright:W3,lopar:U3,Lopf:j3,lopf:G3,loplus:V3,lotimes:K3,lowast:X3,lowbar:Y3,LowerLeftArrow:Z3,LowerRightArrow:J3,loz:Q3,lozenge:t5,lozf:e5,lpar:n5,lparlt:r5,lrarr:i5,lrcorner:o5,lrhar:s5,lrhard:l5,lrm:a5,lrtri:c5,lsaquo:u5,lscr:f5,Lscr:h5,lsh:d5,Lsh:p5,lsim:g5,lsime:v5,lsimg:m5,lsqb:y5,lsquo:b5,lsquor:w5,Lstrok:x5,lstrok:_5,ltcc:S5,ltcir:k5,lt:C5,LT:T5,Lt:E5,ltdot:L5,lthree:A5,ltimes:M5,ltlarr:N5,ltquest:P5,ltri:O5,ltrie:D5,ltrif:$5,ltrPar:R5,lurdshar:z5,luruhar:F5,lvertneqq:I5,lvnE:q5,macr:H5,male:B5,malt:W5,maltese:U5,Map:"⤅",map:j5,mapsto:G5,mapstodown:V5,mapstoleft:K5,mapstoup:X5,marker:Y5,mcomma:Z5,Mcy:J5,mcy:Q5,mdash:t8,mDDot:e8,measuredangle:n8,MediumSpace:r8,Mellintrf:i8,Mfr:o8,mfr:s8,mho:l8,micro:a8,midast:c8,midcir:u8,mid:f8,middot:h8,minusb:d8,minus:p8,minusd:g8,minusdu:v8,MinusPlus:m8,mlcp:y8,mldr:b8,mnplus:w8,models:x8,Mopf:_8,mopf:S8,mp:k8,mscr:C8,Mscr:T8,mstpos:E8,Mu:L8,mu:A8,multimap:M8,mumap:N8,nabla:P8,Nacute:O8,nacute:D8,nang:$8,nap:R8,napE:z8,napid:F8,napos:I8,napprox:q8,natural:H8,naturals:B8,natur:W8,nbsp:U8,nbump:j8,nbumpe:G8,ncap:V8,Ncaron:K8,ncaron:X8,Ncedil:Y8,ncedil:Z8,ncong:J8,ncongdot:Q8,ncup:tW,Ncy:eW,ncy:nW,ndash:rW,nearhk:iW,nearr:oW,neArr:sW,nearrow:lW,ne:aW,nedot:cW,NegativeMediumSpace:uW,NegativeThickSpace:fW,NegativeThinSpace:hW,NegativeVeryThinSpace:dW,nequiv:pW,nesear:gW,nesim:vW,NestedGreaterGreater:mW,NestedLessLess:yW,NewLine:bW,nexist:wW,nexists:xW,Nfr:_W,nfr:SW,ngE:kW,nge:CW,ngeq:TW,ngeqq:EW,ngeqslant:LW,nges:AW,nGg:MW,ngsim:NW,nGt:PW,ngt:OW,ngtr:DW,nGtv:$W,nharr:RW,nhArr:zW,nhpar:FW,ni:IW,nis:qW,nisd:HW,niv:BW,NJcy:WW,njcy:UW,nlarr:jW,nlArr:GW,nldr:VW,nlE:KW,nle:XW,nleftarrow:YW,nLeftarrow:ZW,nleftrightarrow:JW,nLeftrightarrow:QW,nleq:tU,nleqq:eU,nleqslant:nU,nles:rU,nless:iU,nLl:oU,nlsim:sU,nLt:lU,nlt:aU,nltri:cU,nltrie:uU,nLtv:fU,nmid:hU,NoBreak:dU,NonBreakingSpace:pU,nopf:gU,Nopf:vU,Not:mU,not:yU,NotCongruent:bU,NotCupCap:wU,NotDoubleVerticalBar:xU,NotElement:_U,NotEqual:SU,NotEqualTilde:kU,NotExists:CU,NotGreater:TU,NotGreaterEqual:EU,NotGreaterFullEqual:LU,NotGreaterGreater:AU,NotGreaterLess:MU,NotGreaterSlantEqual:NU,NotGreaterTilde:PU,NotHumpDownHump:OU,NotHumpEqual:DU,notin:$U,notindot:RU,notinE:zU,notinva:FU,notinvb:IU,notinvc:qU,NotLeftTriangleBar:HU,NotLeftTriangle:BU,NotLeftTriangleEqual:WU,NotLess:UU,NotLessEqual:jU,NotLessGreater:GU,NotLessLess:VU,NotLessSlantEqual:KU,NotLessTilde:XU,NotNestedGreaterGreater:YU,NotNestedLessLess:ZU,notni:JU,notniva:QU,notnivb:t4,notnivc:e4,NotPrecedes:n4,NotPrecedesEqual:r4,NotPrecedesSlantEqual:i4,NotReverseElement:o4,NotRightTriangleBar:s4,NotRightTriangle:l4,NotRightTriangleEqual:a4,NotSquareSubset:c4,NotSquareSubsetEqual:u4,NotSquareSuperset:f4,NotSquareSupersetEqual:h4,NotSubset:d4,NotSubsetEqual:p4,NotSucceeds:g4,NotSucceedsEqual:v4,NotSucceedsSlantEqual:m4,NotSucceedsTilde:y4,NotSuperset:b4,NotSupersetEqual:w4,NotTilde:x4,NotTildeEqual:_4,NotTildeFullEqual:S4,NotTildeTilde:k4,NotVerticalBar:C4,nparallel:T4,npar:E4,nparsl:L4,npart:A4,npolint:M4,npr:N4,nprcue:P4,nprec:O4,npreceq:D4,npre:$4,nrarrc:R4,nrarr:z4,nrArr:F4,nrarrw:I4,nrightarrow:q4,nRightarrow:H4,nrtri:B4,nrtrie:W4,nsc:U4,nsccue:j4,nsce:G4,Nscr:V4,nscr:K4,nshortmid:X4,nshortparallel:Y4,nsim:Z4,nsime:J4,nsimeq:Q4,nsmid:t6,nspar:e6,nsqsube:n6,nsqsupe:r6,nsub:i6,nsubE:o6,nsube:s6,nsubset:l6,nsubseteq:a6,nsubseteqq:c6,nsucc:u6,nsucceq:f6,nsup:h6,nsupE:d6,nsupe:p6,nsupset:g6,nsupseteq:v6,nsupseteqq:m6,ntgl:y6,Ntilde:b6,ntilde:w6,ntlg:x6,ntriangleleft:_6,ntrianglelefteq:S6,ntriangleright:k6,ntrianglerighteq:C6,Nu:T6,nu:E6,num:L6,numero:A6,numsp:M6,nvap:N6,nvdash:P6,nvDash:O6,nVdash:D6,nVDash:$6,nvge:R6,nvgt:z6,nvHarr:F6,nvinfin:I6,nvlArr:q6,nvle:H6,nvlt:B6,nvltrie:W6,nvrArr:U6,nvrtrie:j6,nvsim:G6,nwarhk:V6,nwarr:K6,nwArr:X6,nwarrow:Y6,nwnear:Z6,Oacute:J6,oacute:Q6,oast:tj,Ocirc:ej,ocirc:nj,ocir:rj,Ocy:ij,ocy:oj,odash:sj,Odblac:lj,odblac:aj,odiv:cj,odot:uj,odsold:fj,OElig:hj,oelig:dj,ofcir:pj,Ofr:gj,ofr:vj,ogon:mj,Ograve:yj,ograve:bj,ogt:wj,ohbar:xj,ohm:_j,oint:Sj,olarr:kj,olcir:Cj,olcross:Tj,oline:Ej,olt:Lj,Omacr:Aj,omacr:Mj,Omega:Nj,omega:Pj,Omicron:Oj,omicron:Dj,omid:$j,ominus:Rj,Oopf:zj,oopf:Fj,opar:Ij,OpenCurlyDoubleQuote:qj,OpenCurlyQuote:Hj,operp:Bj,oplus:Wj,orarr:Uj,Or:jj,or:Gj,ord:Vj,order:Kj,orderof:Xj,ordf:Yj,ordm:Zj,origof:Jj,oror:Qj,orslope:t9,orv:e9,oS:n9,Oscr:r9,oscr:i9,Oslash:o9,oslash:s9,osol:l9,Otilde:a9,otilde:c9,otimesas:u9,Otimes:f9,otimes:h9,Ouml:d9,ouml:p9,ovbar:g9,OverBar:v9,OverBrace:m9,OverBracket:y9,OverParenthesis:b9,para:w9,parallel:x9,par:_9,parsim:S9,parsl:k9,part:C9,PartialD:T9,Pcy:E9,pcy:L9,percnt:A9,period:M9,permil:N9,perp:P9,pertenk:O9,Pfr:D9,pfr:$9,Phi:R9,phi:z9,phiv:F9,phmmat:I9,phone:q9,Pi:H9,pi:B9,pitchfork:W9,piv:U9,planck:j9,planckh:G9,plankv:V9,plusacir:K9,plusb:X9,pluscir:Y9,plus:Z9,plusdo:J9,plusdu:Q9,pluse:tG,PlusMinus:eG,plusmn:nG,plussim:rG,plustwo:iG,pm:oG,Poincareplane:sG,pointint:lG,popf:aG,Popf:cG,pound:uG,prap:fG,Pr:hG,pr:dG,prcue:pG,precapprox:gG,prec:vG,preccurlyeq:mG,Precedes:yG,PrecedesEqual:bG,PrecedesSlantEqual:wG,PrecedesTilde:xG,preceq:_G,precnapprox:SG,precneqq:kG,precnsim:CG,pre:TG,prE:EG,precsim:LG,prime:AG,Prime:MG,primes:NG,prnap:PG,prnE:OG,prnsim:DG,prod:$G,Product:RG,profalar:zG,profline:FG,profsurf:IG,prop:qG,Proportional:HG,Proportion:BG,propto:WG,prsim:UG,prurel:jG,Pscr:GG,pscr:VG,Psi:KG,psi:XG,puncsp:YG,Qfr:ZG,qfr:JG,qint:QG,qopf:tV,Qopf:eV,qprime:nV,Qscr:rV,qscr:iV,quaternions:oV,quatint:sV,quest:lV,questeq:aV,quot:cV,QUOT:uV,rAarr:fV,race:hV,Racute:dV,racute:pV,radic:gV,raemptyv:vV,rang:mV,Rang:yV,rangd:bV,range:wV,rangle:xV,raquo:_V,rarrap:SV,rarrb:kV,rarrbfs:CV,rarrc:TV,rarr:EV,Rarr:LV,rArr:AV,rarrfs:MV,rarrhk:NV,rarrlp:PV,rarrpl:OV,rarrsim:DV,Rarrtl:$V,rarrtl:RV,rarrw:zV,ratail:FV,rAtail:IV,ratio:qV,rationals:HV,rbarr:BV,rBarr:WV,RBarr:UV,rbbrk:jV,rbrace:GV,rbrack:VV,rbrke:KV,rbrksld:XV,rbrkslu:YV,Rcaron:ZV,rcaron:JV,Rcedil:QV,rcedil:t7,rceil:e7,rcub:n7,Rcy:r7,rcy:i7,rdca:o7,rdldhar:s7,rdquo:l7,rdquor:a7,rdsh:c7,real:u7,realine:f7,realpart:h7,reals:d7,Re:p7,rect:g7,reg:v7,REG:m7,ReverseElement:y7,ReverseEquilibrium:b7,ReverseUpEquilibrium:w7,rfisht:x7,rfloor:_7,rfr:S7,Rfr:k7,rHar:C7,rhard:T7,rharu:E7,rharul:L7,Rho:A7,rho:M7,rhov:N7,RightAngleBracket:P7,RightArrowBar:O7,rightarrow:D7,RightArrow:$7,Rightarrow:R7,RightArrowLeftArrow:z7,rightarrowtail:F7,RightCeiling:I7,RightDoubleBracket:q7,RightDownTeeVector:H7,RightDownVectorBar:B7,RightDownVector:W7,RightFloor:U7,rightharpoondown:j7,rightharpoonup:G7,rightleftarrows:V7,rightleftharpoons:K7,rightrightarrows:X7,rightsquigarrow:Y7,RightTeeArrow:Z7,RightTee:J7,RightTeeVector:Q7,rightthreetimes:tK,RightTriangleBar:eK,RightTriangle:nK,RightTriangleEqual:rK,RightUpDownVector:iK,RightUpTeeVector:oK,RightUpVectorBar:sK,RightUpVector:lK,RightVectorBar:aK,RightVector:cK,ring:uK,risingdotseq:fK,rlarr:hK,rlhar:dK,rlm:pK,rmoustache:gK,rmoust:vK,rnmid:mK,roang:yK,roarr:bK,robrk:wK,ropar:xK,ropf:_K,Ropf:SK,roplus:kK,rotimes:CK,RoundImplies:TK,rpar:EK,rpargt:LK,rppolint:AK,rrarr:MK,Rrightarrow:NK,rsaquo:PK,rscr:OK,Rscr:DK,rsh:$K,Rsh:RK,rsqb:zK,rsquo:FK,rsquor:IK,rthree:qK,rtimes:HK,rtri:BK,rtrie:WK,rtrif:UK,rtriltri:jK,RuleDelayed:GK,ruluhar:VK,rx:KK,Sacute:XK,sacute:YK,sbquo:ZK,scap:JK,Scaron:QK,scaron:tX,Sc:eX,sc:nX,sccue:rX,sce:iX,scE:oX,Scedil:sX,scedil:lX,Scirc:aX,scirc:cX,scnap:uX,scnE:fX,scnsim:hX,scpolint:dX,scsim:pX,Scy:gX,scy:vX,sdotb:mX,sdot:yX,sdote:bX,searhk:wX,searr:xX,seArr:_X,searrow:SX,sect:kX,semi:CX,seswar:TX,setminus:EX,setmn:LX,sext:AX,Sfr:MX,sfr:NX,sfrown:PX,sharp:OX,SHCHcy:DX,shchcy:$X,SHcy:RX,shcy:zX,ShortDownArrow:FX,ShortLeftArrow:IX,shortmid:qX,shortparallel:HX,ShortRightArrow:BX,ShortUpArrow:WX,shy:UX,Sigma:jX,sigma:GX,sigmaf:VX,sigmav:KX,sim:XX,simdot:YX,sime:ZX,simeq:JX,simg:QX,simgE:tY,siml:eY,simlE:nY,simne:rY,simplus:iY,simrarr:oY,slarr:sY,SmallCircle:lY,smallsetminus:aY,smashp:cY,smeparsl:uY,smid:fY,smile:hY,smt:dY,smte:pY,smtes:gY,SOFTcy:vY,softcy:mY,solbar:yY,solb:bY,sol:wY,Sopf:xY,sopf:_Y,spades:SY,spadesuit:kY,spar:CY,sqcap:TY,sqcaps:EY,sqcup:LY,sqcups:AY,Sqrt:MY,sqsub:NY,sqsube:PY,sqsubset:OY,sqsubseteq:DY,sqsup:$Y,sqsupe:RY,sqsupset:zY,sqsupseteq:FY,square:IY,Square:qY,SquareIntersection:HY,SquareSubset:BY,SquareSubsetEqual:WY,SquareSuperset:UY,SquareSupersetEqual:jY,SquareUnion:GY,squarf:VY,squ:KY,squf:XY,srarr:YY,Sscr:ZY,sscr:JY,ssetmn:QY,ssmile:tZ,sstarf:eZ,Star:nZ,star:rZ,starf:iZ,straightepsilon:oZ,straightphi:sZ,strns:lZ,sub:aZ,Sub:cZ,subdot:uZ,subE:fZ,sube:hZ,subedot:dZ,submult:pZ,subnE:gZ,subne:vZ,subplus:mZ,subrarr:yZ,subset:bZ,Subset:wZ,subseteq:xZ,subseteqq:_Z,SubsetEqual:SZ,subsetneq:kZ,subsetneqq:CZ,subsim:TZ,subsub:EZ,subsup:LZ,succapprox:AZ,succ:MZ,succcurlyeq:NZ,Succeeds:PZ,SucceedsEqual:OZ,SucceedsSlantEqual:DZ,SucceedsTilde:$Z,succeq:RZ,succnapprox:zZ,succneqq:FZ,succnsim:IZ,succsim:qZ,SuchThat:HZ,sum:BZ,Sum:WZ,sung:UZ,sup1:jZ,sup2:GZ,sup3:VZ,sup:KZ,Sup:XZ,supdot:YZ,supdsub:ZZ,supE:JZ,supe:QZ,supedot:tJ,Superset:eJ,SupersetEqual:nJ,suphsol:rJ,suphsub:iJ,suplarr:oJ,supmult:sJ,supnE:lJ,supne:aJ,supplus:cJ,supset:uJ,Supset:fJ,supseteq:hJ,supseteqq:dJ,supsetneq:pJ,supsetneqq:gJ,supsim:vJ,supsub:mJ,supsup:yJ,swarhk:bJ,swarr:wJ,swArr:xJ,swarrow:_J,swnwar:SJ,szlig:kJ,Tab:CJ,target:TJ,Tau:EJ,tau:LJ,tbrk:AJ,Tcaron:MJ,tcaron:NJ,Tcedil:PJ,tcedil:OJ,Tcy:DJ,tcy:$J,tdot:RJ,telrec:zJ,Tfr:FJ,tfr:IJ,there4:qJ,therefore:HJ,Therefore:BJ,Theta:WJ,theta:UJ,thetasym:jJ,thetav:GJ,thickapprox:VJ,thicksim:KJ,ThickSpace:XJ,ThinSpace:YJ,thinsp:ZJ,thkap:JJ,thksim:QJ,THORN:tQ,thorn:eQ,tilde:nQ,Tilde:rQ,TildeEqual:iQ,TildeFullEqual:oQ,TildeTilde:sQ,timesbar:lQ,timesb:aQ,times:cQ,timesd:uQ,tint:fQ,toea:hQ,topbot:dQ,topcir:pQ,top:gQ,Topf:vQ,topf:mQ,topfork:yQ,tosa:bQ,tprime:wQ,trade:xQ,TRADE:_Q,triangle:SQ,triangledown:kQ,triangleleft:CQ,trianglelefteq:TQ,triangleq:EQ,triangleright:LQ,trianglerighteq:AQ,tridot:MQ,trie:NQ,triminus:PQ,TripleDot:OQ,triplus:DQ,trisb:$Q,tritime:RQ,trpezium:zQ,Tscr:FQ,tscr:IQ,TScy:qQ,tscy:HQ,TSHcy:BQ,tshcy:WQ,Tstrok:UQ,tstrok:jQ,twixt:GQ,twoheadleftarrow:VQ,twoheadrightarrow:KQ,Uacute:XQ,uacute:YQ,uarr:ZQ,Uarr:JQ,uArr:QQ,Uarrocir:ttt,Ubrcy:ett,ubrcy:ntt,Ubreve:rtt,ubreve:itt,Ucirc:ott,ucirc:stt,Ucy:ltt,ucy:att,udarr:ctt,Udblac:utt,udblac:ftt,udhar:htt,ufisht:dtt,Ufr:ptt,ufr:gtt,Ugrave:vtt,ugrave:mtt,uHar:ytt,uharl:btt,uharr:wtt,uhblk:xtt,ulcorn:_tt,ulcorner:Stt,ulcrop:ktt,ultri:Ctt,Umacr:Ttt,umacr:Ett,uml:Ltt,UnderBar:Att,UnderBrace:Mtt,UnderBracket:Ntt,UnderParenthesis:Ptt,Union:Ott,UnionPlus:Dtt,Uogon:$tt,uogon:Rtt,Uopf:ztt,uopf:Ftt,UpArrowBar:Itt,uparrow:qtt,UpArrow:Htt,Uparrow:Btt,UpArrowDownArrow:Wtt,updownarrow:Utt,UpDownArrow:jtt,Updownarrow:Gtt,UpEquilibrium:Vtt,upharpoonleft:Ktt,upharpoonright:Xtt,uplus:Ytt,UpperLeftArrow:Ztt,UpperRightArrow:Jtt,upsi:Qtt,Upsi:tet,upsih:eet,Upsilon:net,upsilon:ret,UpTeeArrow:iet,UpTee:oet,upuparrows:set,urcorn:aet,urcorner:cet,urcrop:uet,Uring:fet,uring:het,urtri:det,Uscr:pet,uscr:get,utdot:vet,Utilde:met,utilde:yet,utri:bet,utrif:wet,uuarr:xet,Uuml:_et,uuml:ket,uwangle:Cet,vangrt:Tet,varepsilon:Eet,varkappa:Let,varnothing:Aet,varphi:Met,varpi:Net,varpropto:Pet,varr:Oet,vArr:Det,varrho:$et,varsigma:Ret,varsubsetneq:zet,varsubsetneqq:Fet,varsupsetneq:Iet,varsupsetneqq:qet,vartheta:Het,vartriangleleft:Bet,vartriangleright:Wet,vBar:Uet,Vbar:jet,vBarv:Get,Vcy:Vet,vcy:Ket,vdash:Xet,vDash:Yet,Vdash:Zet,VDash:Jet,Vdashl:Qet,veebar:tnt,vee:ent,Vee:nnt,veeeq:rnt,vellip:int,verbar:ont,Verbar:snt,vert:lnt,Vert:ant,VerticalBar:cnt,VerticalLine:unt,VerticalSeparator:fnt,VerticalTilde:hnt,VeryThinSpace:dnt,Vfr:pnt,vfr:gnt,vltri:vnt,vnsub:mnt,vnsup:ynt,Vopf:bnt,vopf:wnt,vprop:xnt,vrtri:_nt,Vscr:Snt,vscr:knt,vsubnE:Cnt,vsubne:Tnt,vsupnE:Ent,vsupne:Lnt,Vvdash:Ant,vzigzag:Mnt,Wcirc:Nnt,wcirc:Pnt,wedbar:Ont,wedge:Dnt,Wedge:$nt,wedgeq:Rnt,weierp:znt,Wfr:Fnt,wfr:Int,Wopf:qnt,wopf:Hnt,wp:Bnt,wr:Wnt,wreath:Unt,Wscr:jnt,wscr:Gnt,xcap:Vnt,xcirc:Knt,xcup:Xnt,xdtri:Ynt,Xfr:Znt,xfr:Jnt,xharr:Qnt,xhArr:trt,Xi:ert,xi:nrt,xlarr:rrt,xlArr:irt,xmap:ort,xnis:srt,xodot:lrt,Xopf:art,xopf:crt,xoplus:urt,xotime:frt,xrarr:hrt,xrArr:drt,Xscr:prt,xscr:grt,xsqcup:vrt,xuplus:mrt,xutri:yrt,xvee:brt,xwedge:wrt,Yacute:xrt,yacute:_rt,YAcy:Srt,yacy:krt,Ycirc:Crt,ycirc:Trt,Ycy:Ert,ycy:Lrt,yen:Art,Yfr:Mrt,yfr:Nrt,YIcy:Prt,yicy:Ort,Yopf:Drt,yopf:$rt,Yscr:Rrt,yscr:zrt,YUcy:Frt,yucy:Irt,yuml:qrt,Yuml:Hrt,Zacute:Brt,zacute:Wrt,Zcaron:Urt,zcaron:jrt,Zcy:Grt,zcy:Vrt,Zdot:Krt,zdot:Xrt,zeetrf:Yrt,ZeroWidthSpace:Zrt,Zeta:Jrt,zeta:Qrt,zfr:tit,Zfr:eit,ZHcy:nit,zhcy:rit,zigrarr:iit,zopf:oit,Zopf:sit,Zscr:lit,zscr:ait,zwj:cit,zwnj:uit},fit="Á",hit="á",dit="Â",pit="â",git="´",vit="Æ",mit="æ",yit="À",bit="à",wit="&",xit="&",_it="Å",Sit="å",kit="Ã",Cit="ã",Tit="Ä",Eit="ä",Lit="¦",Ait="Ç",Mit="ç",Nit="¸",Pit="¢",Oit="©",Dit="©",$it="¤",Rit="°",zit="÷",Fit="É",Iit="é",qit="Ê",Hit="ê",Bit="È",Wit="è",Uit="Ð",jit="ð",Git="Ë",Vit="ë",Kit="½",Xit="¼",Yit="¾",Zit=">",Jit=">",Qit="Í",tot="í",eot="Î",not="î",rot="¡",iot="Ì",oot="ì",sot="¿",lot="Ï",aot="ï",cot="«",uot="<",fot="<",hot="¯",dot="µ",pot="·",got=" ",vot="¬",mot="Ñ",yot="ñ",bot="Ó",wot="ó",xot="Ô",_ot="ô",Sot="Ò",kot="ò",Cot="ª",Tot="º",Eot="Ø",Lot="ø",Aot="Õ",Mot="õ",Not="Ö",Pot="ö",Oot="¶",Dot="±",$ot="£",Rot='"',zot='"',Fot="»",Iot="®",qot="®",Hot="§",Bot="­",Wot="¹",Uot="²",jot="³",Got="ß",Vot="Þ",Kot="þ",Xot="×",Yot="Ú",Zot="ú",Jot="Û",Qot="û",tst="Ù",est="ù",nst="¨",rst="Ü",ist="ü",ost="Ý",sst="ý",lst="¥",ast="ÿ",cst={Aacute:fit,aacute:hit,Acirc:dit,acirc:pit,acute:git,AElig:vit,aelig:mit,Agrave:yit,agrave:bit,amp:wit,AMP:xit,Aring:_it,aring:Sit,Atilde:kit,atilde:Cit,Auml:Tit,auml:Eit,brvbar:Lit,Ccedil:Ait,ccedil:Mit,cedil:Nit,cent:Pit,copy:Oit,COPY:Dit,curren:$it,deg:Rit,divide:zit,Eacute:Fit,eacute:Iit,Ecirc:qit,ecirc:Hit,Egrave:Bit,egrave:Wit,ETH:Uit,eth:jit,Euml:Git,euml:Vit,frac12:Kit,frac14:Xit,frac34:Yit,gt:Zit,GT:Jit,Iacute:Qit,iacute:tot,Icirc:eot,icirc:not,iexcl:rot,Igrave:iot,igrave:oot,iquest:sot,Iuml:lot,iuml:aot,laquo:cot,lt:uot,LT:fot,macr:hot,micro:dot,middot:pot,nbsp:got,not:vot,Ntilde:mot,ntilde:yot,Oacute:bot,oacute:wot,Ocirc:xot,ocirc:_ot,Ograve:Sot,ograve:kot,ordf:Cot,ordm:Tot,Oslash:Eot,oslash:Lot,Otilde:Aot,otilde:Mot,Ouml:Not,ouml:Pot,para:Oot,plusmn:Dot,pound:$ot,quot:Rot,QUOT:zot,raquo:Fot,reg:Iot,REG:qot,sect:Hot,shy:Bot,sup1:Wot,sup2:Uot,sup3:jot,szlig:Got,THORN:Vot,thorn:Kot,times:Xot,Uacute:Yot,uacute:Zot,Ucirc:Jot,ucirc:Qot,Ugrave:tst,ugrave:est,uml:nst,Uuml:rst,uuml:ist,Yacute:ost,yacute:sst,yen:lst,yuml:ast},ust="&",fst="'",hst=">",dst="<",pst='"',vy={amp:ust,apos:fst,gt:hst,lt:dst,quot:pst};var Ih={};const gst={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 vst=no&&no.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ih,"__esModule",{value:!0});var Sv=vst(gst),mst=String.fromCodePoint||function(t){var n="";return t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),n+=String.fromCharCode(t),n};function yst(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Sv.default&&(t=Sv.default[t]),mst(t))}Ih.default=yst;var zc=no&&no.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qr,"__esModule",{value:!0});qr.decodeHTML=qr.decodeHTMLStrict=qr.decodeXML=void 0;var qf=zc(gy),bst=zc(cst),wst=zc(vy),kv=zc(Ih),xst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;qr.decodeXML=my(wst.default);qr.decodeHTMLStrict=my(qf.default);function my(t){var n=yy(t);return function(r){return String(r).replace(xst,n)}}var Cv=function(t,n){return t<n?1:-1};qr.decodeHTML=function(){for(var t=Object.keys(bst.default).sort(Cv),n=Object.keys(qf.default).sort(Cv),r=0,o=0;r<n.length;r++)t[o]===n[r]?(n[r]+=";?",o++):n[r]+=";";var a=new RegExp("&(?:"+n.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=yy(qf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function yy(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?kv.default(parseInt(r.substr(3),16)):kv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var $n={},by=no&&no.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($n,"__esModule",{value:!0});$n.escapeUTF8=$n.escape=$n.encodeNonAsciiHTML=$n.encodeHTML=$n.encodeXML=void 0;var _st=by(vy),wy=_y(_st.default),xy=Sy(wy);$n.encodeXML=Ty(wy);var Sst=by(gy),qh=_y(Sst.default),kst=Sy(qh);$n.encodeHTML=Tst(qh,kst);$n.encodeNonAsciiHTML=Ty(qh);function _y(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function Sy(t){for(var n=[],r=[],o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];u.length===1?n.push("\\"+u):r.push(u)}n.sort();for(var f=0;f<n.length-1;f++){for(var h=f;h<n.length-1&&n[h].charCodeAt(1)+1===n[h+1].charCodeAt(1);)h+=1;var p=1+h-f;p<3||n.splice(f,p,n[f]+"-"+n[h])}return r.unshift("["+n.join("")+"]"),new RegExp(r.join("|"),"g")}var ky=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Cst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function Fc(t){return"&#x"+(t.length>1?Cst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Tst(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(ky,Fc)}}var Cy=new RegExp(xy.source+"|"+ky.source,"g");function Est(t){return t.replace(Cy,Fc)}$n.escape=Est;function Lst(t){return t.replace(xy,Fc)}$n.escapeUTF8=Lst;function Ty(t){return function(n){return n.replace(Cy,function(r){return t[r]||Fc(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=qr,r=$n;function o(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTML)(p)}t.decode=o;function a(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTMLStrict)(p)}t.decodeStrict=a;function u(p,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(p)}t.encode=u;var f=$n;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=qr;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(py);function Ast(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Tv(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Mst(t,n,r){return n&&Tv(t.prototype,n),r&&Tv(t,r),t}function Ey(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Nst(t))||n&&t&&typeof t.length=="number"){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function Nst(t,n){if(t){if(typeof t=="string")return Ev(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ev(t,n)}}function Ev(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=t[r];return o}var Pst=py,Lv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Ost()};function Ost(){var t={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 Ca(0,5).forEach(function(n){Ca(0,5).forEach(function(r){Ca(0,5).forEach(function(o){return Dst(n,r,o,t)})})}),Ca(0,23).forEach(function(n){var r=n+232,o=Ly(n*10+8);t[r]="#"+o+o+o}),t}function Dst(t,n,r,o){var a=16+t*36+n*6+r,u=t>0?t*40+55:0,f=n>0?n*40+55:0,h=r>0?r*40+55:0;o[a]=$st([u,f,h])}function Ly(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function $st(t){var n=[],r=Ey(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(Ly(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function Av(t,n,r,o){var a;return n==="text"?a=Ist(r,o):n==="display"?a=zst(t,r,o):n==="xterm256Foreground"?a=Fa(t,o.colors[r]):n==="xterm256Background"?a=Ia(t,o.colors[r]):n==="rgb"&&(a=Rst(t,r)),a}function Rst(t,n){n=n.substring(2).slice(0,-1);var r=+n.substr(0,2),o=n.substring(5).split(";"),a=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return za(t,(r===38?"color:#":"background-color:#")+a)}function zst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&Ay(t)},1:function(){return yi(t,"b")},3:function(){return yi(t,"i")},4:function(){return yi(t,"u")},8:function(){return za(t,"display:none")},9:function(){return yi(t,"strike")},22:function(){return za(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Nv(t,"i")},24:function(){return Nv(t,"u")},39:function(){return Fa(t,r.fg)},49:function(){return Ia(t,r.bg)},53:function(){return za(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=yi(t,"blink"):29<n&&n<38?a=Fa(t,r.colors[n-30]):39<n&&n<48?a=Ia(t,r.colors[n-40]):89<n&&n<98?a=Fa(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=Ia(t,r.colors[8+(n-100)])),a}function Ay(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function Ca(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function Fst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function Mv(t){t=parseInt(t,10);var n=null;return t===0?n="all":t===1?n="bold":2<t&&t<5?n="underline":4<t&&t<7?n="blink":t===8?n="hide":t===9?n="strike":29<t&&t<38||t===39||89<t&&t<98?n="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(n="background-color"),n}function Ist(t,n){return n.escapeXML?Pst.encodeXML(t):t}function yi(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function za(t,n){return yi(t,"span",n)}function Fa(t,n){return yi(t,"span","color:"+n)}function Ia(t,n){return yi(t,"span","background-color:"+n)}function Nv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function qst(t,n,r){var o=!1,a=3;function u(){return""}function f(B,K){return r("xterm256Foreground",K),""}function h(B,K){return r("xterm256Background",K),""}function p(B){return n.newline?r("display",-1):r("text",B),""}function g(B,K){o=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var ht=Ey(K),Y;try{for(ht.s();!(Y=ht.n()).done;){var et=Y.value;r("display",et)}}catch(st){ht.e(st)}finally{ht.f()}return""}function v(B){return r("text",B),""}function b(B){return r("rgb",B),""}var x=[{pattern:/^\x08+/,sub:u},{pattern:/^\x1b\[[012]?K/,sub:u},{pattern:/^\x1b\[\(B/,sub:u},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:b},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:p},{pattern:/^\r+\n/,sub:p},{pattern:/^\r/,sub:p},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function S(B,K){K>a&&o||(o=!1,t=t.replace(B.pattern,B.sub))}var P=[],A=t,L=A.length;t:for(;L>0;){for(var T=0,M=0,R=x.length;M<R;T=++M){var E=x[T];if(S(E,T),t.length!==L){L=t.length;continue t}}if(t.length===L)break;P.push(0),L=t.length}return P}function Hst(t,n,r){return n!=="text"&&(t=t.filter(Fst(Mv(r))),t.push({token:n,data:r,category:Mv(r)})),t}var Bst=function(){function t(n){Ast(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},Lv.colors,n.colors)),this.options=Object.assign({},Lv,n),this.stack=[],this.stickyStack=[]}return Mst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var a=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var p=Av(a,h.token,h.data,u);p&&f.push(p)}),qst(r.join(""),u,function(h,p){var g=Av(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=Hst(o.stickyStack,h,p))}),a.length&&f.push(Ay(a)),f.join("")}}]),t}(),Wst=Bst;const Ust=K0(Wst);function jst(t,n){return n&&t.endsWith(n)}async function My(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Hh(t){return new Ust({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const Ol=gT(),Gst=eT(Ol),Vst={class:"scrolls scrolls-rounded task-error"},Kst=["onClickPassive"],Xst=["innerHTML"],Yst=re({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const n=t;function r(f){return f.startsWith(n.root)?f.slice(n.root.length):f}const o=xt(()=>Hh(Ol.value)),a=xt(()=>{var f;return!!((f=n.error)!=null&&f.diff)}),u=xt(()=>n.error.diff?o.value.toHtml(n.error.diff):void 0);return(f,h)=>{const p=lo("tooltip");return ut(),At("div",Vst,[ct("pre",null,[ct("b",null,ne(f.error.name||f.error.nameStr),1),fn(": "+ne(f.error.message),1)]),(ut(!0),At(ue,null,nr(f.error.stacks,(g,v)=>(ut(),At("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ct("pre",null," - "+ne(r(g.file))+":"+ne(g.line)+":"+ne(g.column),1),U(jst)(g.file,f.filename)?tn((ut(),At("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:b=>U(My)(g.file,g.line,g.column)},null,40,Kst)),[[p,"Open in Editor",void 0,{bottom:!0}]]):ee("",!0)]))),128)),U(a)?(ut(),At("pre",{key:0,"data-testid":"diff",innerHTML:U(u)},null,8,Xst)):ee("",!0)])}}}),Zst=ao(Yst,[["__scopeId","data-v-93ed29fc"]]);function qa(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const Jst={"h-full":"",class:"scrolls"},Qst={key:0,class:"scrolls scrolls-rounded task-error"},tlt=["innerHTML"],elt={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},nlt=re({__name:"ViewReport",props:{file:{}},setup(t){const n=t;function r(f,h){var p;return((p=f.result)==null?void 0:p.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:h}]:[{...f,level:h},...f.tasks.flatMap(g=>r(g,h+1))]}function o(f,h){var v,b,x;let p="";(v=h.message)!=null&&v.includes("\x1B")&&(p=`<b>${h.nameStr||h.name}</b>: ${f.toHtml(qa(h.message))}`);const g=(b=h.stackStr)==null?void 0:b.includes("\x1B");return(g||(x=h.stack)!=null&&x.includes("\x1B"))&&(p.length>0?p+=f.toHtml(qa(g?h.stackStr:h.stack)):p=`<b>${h.nameStr||h.name}</b>: ${h.message}${f.toHtml(qa(g?h.stackStr:h.stack))}`),p.length>0?p:null}function a(f,h){const p=Hh(f);return h.map(g=>{var x;const v=g.result;if(!v)return g;const b=(x=v.errors)==null?void 0:x.map(S=>o(p,S)).filter(S=>S!=null).join("<br><br>");return b!=null&&b.length&&(v.htmlError=b),g})}const u=xt(()=>{var v,b;const f=n.file,h=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(x=>r(x,0)))??[],p=f==null?void 0:f.result;if((b=p==null?void 0:p.errors)==null?void 0:b[0]){const x={id:f.id,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:p};h.unshift(x)}return h.length>0?a(Ol.value,h):h});return(f,h)=>(ut(),At("div",Jst,[U(u).length?(ut(!0),At(ue,{key:0},nr(U(u),p=>{var g,v,b;return ut(),At("div",{key:p.id},[ct("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:En({"margin-left":`${(g=p.result)!=null&&g.htmlError?.5:2*p.level+.5}rem`})},[fn(ne(p.name)+" ",1),(v=p.result)!=null&&v.htmlError?(ut(),At("div",Qst,[ct("pre",{innerHTML:p.result.htmlError},null,8,tlt)])):(b=p.result)!=null&&b.errors?(ut(!0),At(ue,{key:1},nr(p.result.errors,(x,S)=>{var P;return ut(),Qt(Zst,{key:S,error:x,filename:(P=f.file)==null?void 0:P.name,root:U(Fh).root},null,8,["error","filename","root"])}),128)):ee("",!0)],4)])}),128)):(ut(),At("div",elt," All tests passed in this file "))]))}}),rlt=ao(nlt,[["__scopeId","data-v-5e7bb715"]]),ilt={border:"b base","p-4":""},olt=["innerHTML"],slt=re({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function n(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ut(),At("div",ilt,[ct("div",{"text-xs":"","mb-1":"",class:ve(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ne(n(r.time))+" | "+ne(r.taskName)+" | "+ne(r.type),3),ct("pre",{"data-type":"html",innerHTML:r.content},null,8,olt)]))}}),sc=xt(()=>gn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),lc=xt(()=>gn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Bh=xt(()=>gn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));xt(()=>gn.value.filter(t=>!sc.value.includes(t)&&!lc.value.includes(t)&&!Bh.value.includes(t)));xt(()=>Bh.value.filter(t=>t.mode==="skip"));const Pv=xt(()=>gn.value.filter(Rc));xt(()=>Bh.value.filter(t=>t.mode==="todo"));const llt=xt(()=>wl.value==="idle"),Ic=xt(()=>Dy(gn.value)),Ny=xt(()=>Ic.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Py=xt(()=>Ic.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Oy=xt(()=>Ic.value.filter(t=>t.mode==="skip"||t.mode==="todo")),alt=xt(()=>Oy.value.filter(t=>t.mode==="skip")),clt=xt(()=>Oy.value.filter(t=>t.mode==="todo"));xt(()=>Ny.value.length+Py.value.length);const ult=xt(()=>{const t=gn.value.reduce((n,r)=>{var o;return n+=Math.max(0,r.collectDuration||0),n+=Math.max(0,r.setupDuration||0),n+=Math.max(0,((o=r.result)==null?void 0:o.duration)||0),n},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function flt(t){return t=t||[],Array.isArray(t)?t:[t]}function Ov(t){return t.type==="test"||t.type==="custom"}function Dy(t){const n=[],r=flt(t);for(const o of r)if(Ov(o))n.push(o);else for(const a of o.tasks)Ov(a)?n.push(a):n.push(...Dy(a));return n}const hlt={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},dlt={key:1,p6:""},plt=ct("pre",{inline:""},"console.log(foo)",-1),glt=re({__name:"ViewConsoleOutput",setup(t){const n=xt(()=>{const o=hy.value;if(o){const a=Hh(Ol.value);return o.map(({taskId:u,type:f,time:h,content:p})=>({taskId:u,type:f,time:h,content:a.toHtml(qa(p))}))}});function r(o){const a=o&&je.state.idMap.get(o);return(a?BC(a).slice(1).join(" > "):"-")||"-"}return(o,a)=>{var f;const u=slt;return(f=U(n))!=null&&f.length?(ut(),At("div",hlt,[(ut(!0),At(ue,null,nr(U(n),({taskId:h,type:p,time:g,content:v})=>(ut(),At("div",{key:h,"font-mono":""},[It(u,{"task-name":r(h),type:p,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ut(),At("p",dlt,[fn(" Log something in your test and it would print here. (e.g. "),plt,fn(") ")]))}}});var $y={exports:{}};(function(t,n){(function(r,o){t.exports=o()})(no,function(){var r=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),p=u||f||h,g=p&&(u?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),b=v&&/Qt\/\d+\.\d+/.test(r),x=!h&&/Chrome\/(\d+)/.exec(r),S=x&&+x[1],P=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),M=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),E=M||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=M||/Mac/.test(o),K=/\bCrOS\b/.test(r),ht=/win/i.test(o),Y=P&&r.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(P=!1,v=!0);var et=B&&(b||P&&(Y==null||Y<12.11)),st=a||p&&g>=9;function pt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var gt=function(e,i){var l=e.className,s=pt(i).exec(l);if(s){var c=l.slice(s.index+s[0].length);e.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function V(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function z(e,i){return V(e).appendChild(i)}function k(e,i,l,s){var c=document.createElement(e);if(l&&(c.className=l),s&&(c.style.cssText=s),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var d=0;d<i.length;++d)c.appendChild(i[d]);return c}function I(e,i,l,s){var c=k(e,i,l,s);return c.setAttribute("role","presentation"),c}var H;document.createRange?H=function(e,i,l,s){var c=document.createRange();return c.setEnd(s||e,l),c.setStart(e,i),c}:H=function(e,i,l){var s=document.body.createTextRange();try{s.moveToElementText(e.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",i),s};function J(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function yt(e){var i=e.ownerDocument||e,l;try{l=e.activeElement}catch{l=i.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function Lt(e,i){var l=e.className;pt(i).test(l)||(e.className+=(l?" ":"")+i)}function qt(e,i){for(var l=e.split(" "),s=0;s<l.length;s++)l[s]&&!pt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Ht=function(e){e.select()};M?Ht=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Ht=function(e){try{e.select()}catch{}});function Zt(e){return e.display.wrapper.ownerDocument}function Xt(e){return jt(e.display.wrapper)}function jt(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ct(e){return Zt(e).defaultView}function j(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function nt(e,i,l){i||(i={});for(var s in e)e.hasOwnProperty(s)&&(l!==!1||!i.hasOwnProperty(s))&&(i[s]=e[s]);return i}function ot(e,i,l,s,c){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var d=s||0,m=c||0;;){var y=e.indexOf(" ",d);if(y<0||y>=i)return m+(i-d);m+=y-d,m+=l-m%l,d=y+1}}var Mt=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};Mt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Mt.prototype.set=function(e,i){this.f=i;var l=+new Date+e;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=l)};function Tt(e,i){for(var l=0;l<e.length;++l)if(e[l]==i)return l;return-1}var $=50,F={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},Q={origin:"*mouse"},it={origin:"+move"};function at(e,i,l){for(var s=0,c=0;;){var d=e.indexOf(" ",s);d==-1&&(d=e.length);var m=d-s;if(d==e.length||c+m>=i)return s+Math.min(m,i-c);if(c+=d-s,c+=l-c%l,s=d+1,c>=i)return s}}var St=[""];function mt(e){for(;St.length<=e;)St.push(lt(St)+" ");return St[e]}function lt(e){return e[e.length-1]}function ft(e,i){for(var l=[],s=0;s<e.length;s++)l[s]=i(e[s],s);return l}function $t(e,i,l){for(var s=0,c=l(i);s<e.length&&l(e[s])<=c;)s++;e.splice(s,0,i)}function Nt(){}function Dt(e,i){var l;return Object.create?l=Object.create(e):(Nt.prototype=e,l=new Nt),i&&nt(i,l),l}var Bt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Gt(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Bt.test(e))}function te(e,i){return i?i.source.indexOf("\\w")>-1&&Gt(e)?!0:i.test(e):Gt(e)}function ie(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var fe=/[\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 oe(e){return e.charCodeAt(0)>=768&&fe.test(e)}function en(e,i,l){for(;(l<0?i>0:i<e.length)&&oe(e.charAt(i));)i+=l;return i}function Mn(e,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,d=s<0?Math.ceil(c):Math.floor(c);if(d==i)return e(d)?i:l;e(d)?l=d:i=d+s}}function mn(e,i,l,s){if(!e)return s(i,l,"ltr",0);for(var c=!1,d=0;d<e.length;++d){var m=e[d];(m.from<l&&m.to>i||i==l&&m.to==i)&&(s(Math.max(m.from,i),Math.min(m.to,l),m.level==1?"rtl":"ltr",d),c=!0)}c||s(i,l,"ltr")}var lr=null;function Le(e,i,l){var s;lr=null;for(var c=0;c<e.length;++c){var d=e[c];if(d.from<i&&d.to>i)return c;d.to==i&&(d.from!=d.to&&l=="before"?s=c:lr=c),d.from==i&&(d.from!=d.to&&l!="before"?s=c:lr=c)}return s??lr}var yn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?e.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,d=/[LRr]/,m=/[Lb1n]/,y=/[1n]/;function w(_,N,D){this.level=_,this.from=N,this.to=D}return function(_,N){var D=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!s.test(_))return!1;for(var W=_.length,q=[],Z=0;Z<W;++Z)q.push(l(_.charCodeAt(Z)));for(var rt=0,vt=D;rt<W;++rt){var bt=q[rt];bt=="m"?q[rt]=vt:vt=bt}for(var kt=0,wt=D;kt<W;++kt){var Et=q[kt];Et=="1"&&wt=="r"?q[kt]="n":d.test(Et)&&(wt=Et,Et=="r"&&(q[kt]="R"))}for(var zt=1,Ot=q[0];zt<W-1;++zt){var Vt=q[zt];Vt=="+"&&Ot=="1"&&q[zt+1]=="1"?q[zt]="1":Vt==","&&Ot==q[zt+1]&&(Ot=="1"||Ot=="n")&&(q[zt]=Ot),Ot=Vt}for(var ge=0;ge<W;++ge){var He=q[ge];if(He==",")q[ge]="N";else if(He=="%"){var xe=void 0;for(xe=ge+1;xe<W&&q[xe]=="%";++xe);for(var xn=ge&&q[ge-1]=="!"||xe<W&&q[xe]=="1"?"1":"N",ln=ge;ln<xe;++ln)q[ln]=xn;ge=xe-1}}for(var Me=0,an=D;Me<W;++Me){var We=q[Me];an=="L"&&We=="1"?q[Me]="L":d.test(We)&&(an=We)}for(var Oe=0;Oe<W;++Oe)if(c.test(q[Oe])){var Ne=void 0;for(Ne=Oe+1;Ne<W&&c.test(q[Ne]);++Ne);for(var Te=(Oe?q[Oe-1]:D)=="L",cn=(Ne<W?q[Ne]:D)=="L",$o=Te==cn?Te?"L":"R":D,li=Oe;li<Ne;++li)q[li]=$o;Oe=Ne-1}for(var Xe=[],hr,Be=0;Be<W;)if(m.test(q[Be])){var Ru=Be;for(++Be;Be<W&&m.test(q[Be]);++Be);Xe.push(new w(0,Ru,Be))}else{var Nr=Be,Fi=Xe.length,Ii=N=="rtl"?1:0;for(++Be;Be<W&&q[Be]!="L";++Be);for(var Je=Nr;Je<Be;)if(y.test(q[Je])){Nr<Je&&(Xe.splice(Fi,0,new w(1,Nr,Je)),Fi+=Ii);var Ro=Je;for(++Je;Je<Be&&y.test(q[Je]);++Je);Xe.splice(Fi,0,new w(2,Ro,Je)),Fi+=Ii,Nr=Je}else++Je;Nr<Be&&Xe.splice(Fi,0,new w(1,Nr,Be))}return N=="ltr"&&(Xe[0].level==1&&(hr=_.match(/^\s+/))&&(Xe[0].from=hr[0].length,Xe.unshift(new w(0,0,hr[0].length))),lt(Xe).level==1&&(hr=_.match(/\s+$/))&&(lt(Xe).to-=hr[0].length,Xe.push(new w(0,W-hr[0].length,W)))),N=="rtl"?Xe.reverse():Xe}}();function Kt(e,i){var l=e.order;return l==null&&(l=e.order=yn(e.text,i)),l}var zl=[],Rt=function(e,i,l){if(e.addEventListener)e.addEventListener(i,l,!1);else if(e.attachEvent)e.attachEvent("on"+i,l);else{var s=e._handlers||(e._handlers={});s[i]=(s[i]||zl).concat(l)}};function kr(e,i){return e._handlers&&e._handlers[i]||zl}function Ge(e,i,l){if(e.removeEventListener)e.removeEventListener(i,l,!1);else if(e.detachEvent)e.detachEvent("on"+i,l);else{var s=e._handlers,c=s&&s[i];if(c){var d=Tt(c,l);d>-1&&(s[i]=c.slice(0,d).concat(c.slice(d+1)))}}}function Se(e,i){var l=kr(e,i);if(l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function ke(e,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Se(e,l||i.type,e,i),nn(i)||i.codemirrorIgnore}function zn(e){var i=e._handlers&&e._handlers.cursorActivity;if(i)for(var l=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)Tt(l,i[s])==-1&&l.push(i[s])}function bn(e,i){return kr(e,i).length>0}function Wn(e){e.prototype.on=function(i,l){Rt(this,i,l)},e.prototype.off=function(i,l){Ge(this,i,l)}}function Ve(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function co(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function nn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Xr(e){Ve(e),co(e)}function ms(e){return e.target||e.srcElement}function Un(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),B&&e.ctrlKey&&i==1&&(i=3),i}var Wc=function(){if(p&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),uo;function Fl(e){if(uo==null){var i=k("span","​");z(e,k("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(uo=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&g<8))}var l=uo?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var ys;function Yr(e){if(ys!=null)return ys;var i=z(e,document.createTextNode("AخA")),l=H(i,0,1).getBoundingClientRect(),s=H(i,1,2).getBoundingClientRect();return V(e),!l||l.left==l.right?!1:ys=s.right-l.right<3}var Fn=`
8
+
9
+ b`.split(/\n/).length!=3?function(e){for(var i=0,l=[],s=e.length;i<=s;){var c=e.indexOf(`
10
+ `,i);c==-1&&(c=e.length);var d=e.slice(i,e.charAt(c-1)=="\r"?c-1:c),m=d.indexOf("\r");m!=-1?(l.push(d.slice(0,m)),i+=m+1):(l.push(d),i=c+1)}return l}:function(e){return e.split(/\r\n?|\n/)},Zr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Il=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),jn=null;function Uc(e){if(jn!=null)return jn;var i=z(e,k("span","x")),l=i.getBoundingClientRect(),s=H(i,0,1).getBoundingClientRect();return jn=Math.abs(l.left-s.left)>1}var fo={},Gn={};function Vn(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),fo[e]=i}function Ai(e,i){Gn[e]=i}function ho(e){if(typeof e=="string"&&Gn.hasOwnProperty(e))e=Gn[e];else if(e&&typeof e.name=="string"&&Gn.hasOwnProperty(e.name)){var i=Gn[e.name];typeof i=="string"&&(i={name:i}),e=Dt(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ho("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ho("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function po(e,i){i=ho(i);var l=fo[i.name];if(!l)return po(e,"text/plain");var s=l(e,i);if(Jr.hasOwnProperty(i.name)){var c=Jr[i.name];for(var d in c)c.hasOwnProperty(d)&&(s.hasOwnProperty(d)&&(s["_"+d]=s[d]),s[d]=c[d])}if(s.name=i.name,i.helperType&&(s.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)s[m]=i.modeProps[m];return s}var Jr={};function go(e,i){var l=Jr.hasOwnProperty(e)?Jr[e]:Jr[e]={};nt(i,l)}function ar(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var l={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function bs(e,i){for(var l;e.innerMode&&(l=e.innerMode(i),!(!l||l.mode==e));)i=l.state,e=l.mode;return l||{mode:e,state:i}}function vo(e,i,l){return e.startState?e.startState(i,l):!0}var Ce=function(e,i,l){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};Ce.prototype.eol=function(){return this.pos>=this.string.length},Ce.prototype.sol=function(){return this.pos==this.lineStart},Ce.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ce.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ce.prototype.eat=function(e){var i=this.string.charAt(this.pos),l;if(typeof e=="string"?l=i==e:l=i&&(e.test?e.test(i):e(i)),l)return++this.pos,i},Ce.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},Ce.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ce.prototype.skipToEnd=function(){this.pos=this.string.length},Ce.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},Ce.prototype.backUp=function(e){this.pos-=e},Ce.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ot(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ot(this.string,this.lineStart,this.tabSize):0)},Ce.prototype.indentation=function(){return ot(this.string,null,this.tabSize)-(this.lineStart?ot(this.string,this.lineStart,this.tabSize):0)},Ce.prototype.match=function(e,i,l){if(typeof e=="string"){var s=function(m){return l?m.toLowerCase():m},c=this.string.substr(this.pos,e.length);if(s(c)==s(e))return i!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&i!==!1&&(this.pos+=d[0].length),d)}},Ce.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ce.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},Ce.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},Ce.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Pt(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var l=e;!l.lines;)for(var s=0;;++s){var c=l.children[s],d=c.chunkSize();if(i<d){l=c;break}i-=d}return l.lines[i]}function Cr(e,i,l){var s=[],c=i.line;return e.iter(i.line,l.line+1,function(d){var m=d.text;c==l.line&&(m=m.slice(0,l.ch)),c==i.line&&(m=m.slice(i.ch)),s.push(m),++c}),s}function ws(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Nn(e,i){var l=i-e.height;if(l)for(var s=e;s;s=s.parent)s.height+=l}function C(e){if(e.parent==null)return null;for(var i=e.parent,l=Tt(i.lines,e),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)l+=s.children[c].chunkSize();return l+i.first}function O(e,i){var l=e.first;t:do{for(var s=0;s<e.children.length;++s){var c=e.children[s],d=c.height;if(i<d){e=c;continue t}i-=d,l+=c.chunkSize()}return l}while(!e.lines);for(var m=0;m<e.lines.length;++m){var y=e.lines[m],w=y.height;if(i<w)break;i-=w}return l+m}function tt(e,i){return i>=e.first&&i<e.first+e.size}function dt(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function X(e,i,l){if(l===void 0&&(l=null),!(this instanceof X))return new X(e,i,l);this.line=e,this.ch=i,this.sticky=l}function _t(e,i){return e.line-i.line||e.ch-i.ch}function ae(e,i){return e.sticky==i.sticky&&_t(e,i)==0}function ze(e){return X(e.line,e.ch)}function rn(e,i){return _t(e,i)<0?i:e}function mo(e,i){return _t(e,i)<0?e:i}function nd(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function Wt(e,i){if(i.line<e.first)return X(e.first,0);var l=e.first+e.size-1;return i.line>l?X(l,Pt(e,l).text.length):kb(i,Pt(e,i.line).text.length)}function kb(e,i){var l=e.ch;return l==null||l>i?X(e.line,i):l<0?X(e.line,0):e}function rd(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Wt(e,i[s]);return l}var ql=function(e,i){this.state=e,this.lookAhead=i},cr=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};cr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},cr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cr.fromSaved=function(e,i,l){return i instanceof ql?new cr(e,ar(e.mode,i.state),l,i.lookAhead):new cr(e,ar(e.mode,i),l)},cr.prototype.save=function(e){var i=e!==!1?ar(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ql(i,this.maxLookAhead):i};function id(e,i,l,s){var c=[e.state.modeGen],d={};ud(e,i.text,e.doc.mode,l,function(_,N){return c.push(_,N)},d,s);for(var m=l.state,y=function(_){l.baseTokens=c;var N=e.state.overlays[_],D=1,W=0;l.state=!0,ud(e,i.text,N.mode,l,function(q,Z){for(var rt=D;W<q;){var vt=c[D];vt>q&&c.splice(D,1,q,c[D+1],vt),D+=2,W=Math.min(q,vt)}if(Z)if(N.opaque)c.splice(rt,D-rt,q,"overlay "+Z),D=rt+2;else for(;rt<D;rt+=2){var bt=c[rt+1];c[rt+1]=(bt?bt+" ":"")+"overlay "+Z}},d),l.state=m,l.baseTokens=null,l.baseTokenPos=1},w=0;w<e.state.overlays.length;++w)y(w);return{styles:c,classes:d.bgClass||d.textClass?d:null}}function od(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=xs(e,C(i)),c=i.text.length>e.options.maxHighlightLength&&ar(e.doc.mode,s.state),d=id(e,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=d.styles,d.classes?i.styleClasses=d.classes:i.styleClasses&&(i.styleClasses=null),l===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function xs(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new cr(s,!0,i);var d=Cb(e,i,l),m=d>s.first&&Pt(s,d-1).stateAfter,y=m?cr.fromSaved(s,m,d):new cr(s,vo(s.mode),d);return s.iter(d,i,function(w){jc(e,w.text,y);var _=y.line;w.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function jc(e,i,l,s){var c=e.doc.mode,d=new Ce(i,e.options.tabSize,l);for(d.start=d.pos=s||0,i==""&&sd(c,l.state);!d.eol();)Gc(c,d,l.state),d.start=d.pos}function sd(e,i){if(e.blankLine)return e.blankLine(i);if(e.innerMode){var l=bs(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Gc(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=bs(e,l).mode);var d=e.token(i,l);if(i.pos>i.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var ld=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function ad(e,i,l,s){var c=e.doc,d=c.mode,m;i=Wt(c,i);var y=Pt(c,i.line),w=xs(e,i.line,l),_=new Ce(y.text,e.options.tabSize,w),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Gc(d,_,w.state),s&&N.push(new ld(_,m,ar(c.mode,w.state)));return s?N:new ld(_,m,w.state)}function cd(e,i){if(e)for(;;){var l=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;e=e.slice(0,l.index)+e.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";i[s]==null?i[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+l[2])}return e}function ud(e,i,l,s,c,d,m){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var w=0,_=null,N=new Ce(i,e.options.tabSize,s),D,W=e.options.addModeClass&&[null];for(i==""&&cd(sd(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,m&&jc(e,i,s,N.pos),N.pos=i.length,D=null):D=cd(Gc(l,N,s.state,W),d),W){var q=W[0].name;q&&(D="m-"+(D?q+" "+D:q))}if(!y||_!=D){for(;w<N.start;)w=Math.min(N.start,w+5e3),c(w,_);_=D}N.start=N.pos}for(;w<N.pos;){var Z=Math.min(N.pos,w+5e3);c(Z,_),w=Z}}function Cb(e,i,l){for(var s,c,d=e.doc,m=l?-1:i-(e.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=d.first)return d.first;var w=Pt(d,y-1),_=w.stateAfter;if(_&&(!l||y+(_ instanceof ql?_.lookAhead:0)<=d.modeFrontier))return y;var N=ot(w.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function Tb(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var l=e.first,s=i-1;s>l;s--){var c=Pt(e,s).stateAfter;if(c&&(!(c instanceof ql)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var fd=!1,Tr=!1;function Eb(){fd=!0}function Lb(){Tr=!0}function Hl(e,i,l){this.marker=e,this.from=i,this.to=l}function _s(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function Ab(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function Mb(e,i,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&e.markedSpans&&s.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],s&&s.add(e.markedSpans)),i.marker.attachLine(e)}function Nb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],m=d.marker,y=d.from==null||(m.inclusiveLeft?d.from<=i:d.from<i);if(y||d.from==i&&m.type=="bookmark"&&(!l||!d.marker.insertLeft)){var w=d.to==null||(m.inclusiveRight?d.to>=i:d.to>i);(s||(s=[])).push(new Hl(m,d.from,w?null:d.to))}}return s}function Pb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],m=d.marker,y=d.to==null||(m.inclusiveRight?d.to>=i:d.to>i);if(y||d.from==i&&m.type=="bookmark"&&(!l||d.marker.insertLeft)){var w=d.from==null||(m.inclusiveLeft?d.from<=i:d.from<i);(s||(s=[])).push(new Hl(m,w?null:d.from-i,d.to==null?null:d.to-i))}}return s}function Vc(e,i){if(i.full)return null;var l=tt(e,i.from.line)&&Pt(e,i.from.line).markedSpans,s=tt(e,i.to.line)&&Pt(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,d=i.to.ch,m=_t(i.from,i.to)==0,y=Nb(l,c,m),w=Pb(s,d,m),_=i.text.length==1,N=lt(i.text).length+(_?c:0);if(y)for(var D=0;D<y.length;++D){var W=y[D];if(W.to==null){var q=_s(w,W.marker);q?_&&(W.to=q.to==null?null:q.to+N):W.to=c}}if(w)for(var Z=0;Z<w.length;++Z){var rt=w[Z];if(rt.to!=null&&(rt.to+=N),rt.from==null){var vt=_s(y,rt.marker);vt||(rt.from=N,_&&(y||(y=[])).push(rt))}else rt.from+=N,_&&(y||(y=[])).push(rt)}y&&(y=hd(y)),w&&w!=y&&(w=hd(w));var bt=[y];if(!_){var kt=i.text.length-2,wt;if(kt>0&&y)for(var Et=0;Et<y.length;++Et)y[Et].to==null&&(wt||(wt=[])).push(new Hl(y[Et].marker,null,null));for(var zt=0;zt<kt;++zt)bt.push(wt);bt.push(w)}return bt}function hd(e){for(var i=0;i<e.length;++i){var l=e[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function Ob(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var Z=0;Z<q.markedSpans.length;++Z){var rt=q.markedSpans[Z].marker;rt.readOnly&&(!s||Tt(s,rt)==-1)&&(s||(s=[])).push(rt)}}),!s)return null;for(var c=[{from:i,to:l}],d=0;d<s.length;++d)for(var m=s[d],y=m.find(0),w=0;w<c.length;++w){var _=c[w];if(!(_t(_.to,y.from)<0||_t(_.from,y.to)>0)){var N=[w,1],D=_t(_.from,y.from),W=_t(_.to,y.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:_.from,to:y.from}),(W>0||!m.inclusiveRight&&!W)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),w+=N.length-3}}return c}function dd(e){var i=e.markedSpans;if(i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function pd(e,i){if(i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function Bl(e){return e.inclusiveLeft?-1:0}function Wl(e){return e.inclusiveRight?1:0}function Kc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),d=_t(s.from,c.from)||Bl(e)-Bl(i);if(d)return-d;var m=_t(s.to,c.to)||Wl(e)-Wl(i);return m||i.id-e.id}function gd(e,i){var l=Tr&&e.markedSpans,s;if(l)for(var c=void 0,d=0;d<l.length;++d)c=l[d],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Kc(s,c.marker)<0)&&(s=c.marker);return s}function vd(e){return gd(e,!0)}function Ul(e){return gd(e,!1)}function Db(e,i){var l=Tr&&e.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var d=l[c];d.marker.collapsed&&(d.from==null||d.from<i)&&(d.to==null||d.to>i)&&(!s||Kc(s,d.marker)<0)&&(s=d.marker)}return s}function md(e,i,l,s,c){var d=Pt(e,i),m=Tr&&d.markedSpans;if(m)for(var y=0;y<m.length;++y){var w=m[y];if(w.marker.collapsed){var _=w.marker.find(0),N=_t(_.from,l)||Bl(w.marker)-Bl(c),D=_t(_.to,s)||Wl(w.marker)-Wl(c);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?_t(_.to,l)>=0:_t(_.to,l)>0)||N>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?_t(_.from,s)<=0:_t(_.from,s)<0)))return!0}}}function Kn(e){for(var i;i=vd(e);)e=i.find(-1,!0).line;return e}function $b(e){for(var i;i=Ul(e);)e=i.find(1,!0).line;return e}function Rb(e){for(var i,l;i=Ul(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Xc(e,i){var l=Pt(e,i),s=Kn(l);return l==s?i:C(s)}function yd(e,i){if(i>e.lastLine())return i;var l=Pt(e,i),s;if(!Qr(e,l))return i;for(;s=Ul(l);)l=s.find(1,!0).line;return C(l)+1}function Qr(e,i){var l=Tr&&i.markedSpans;if(l){for(var s=void 0,c=0;c<l.length;++c)if(s=l[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Yc(e,i,s))return!0}}}function Yc(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Yc(e,s.line,_s(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var c=void 0,d=0;d<i.markedSpans.length;++d)if(c=i.markedSpans[d],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Yc(e,i,c))return!0}function Er(e){e=Kn(e);for(var i=0,l=e.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==e)break;i+=c.height}for(var d=l.parent;d;l=d,d=l.parent)for(var m=0;m<d.children.length;++m){var y=d.children[m];if(y==l)break;i+=y.height}return i}function jl(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=vd(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=Ul(s);){var d=l.find(0,!0);i-=s.text.length-d.from.ch,s=d.to.line,i+=s.text.length-d.to.ch}return i}function Zc(e){var i=e.display,l=e.doc;i.maxLine=Pt(l,l.first),i.maxLineLength=jl(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=jl(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var yo=function(e,i,l){this.text=e,pd(this,i),this.height=l?l(this):1};yo.prototype.lineNo=function(){return C(this)},Wn(yo);function zb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),dd(e),pd(e,l);var c=s?s(e):1;c!=e.height&&Nn(e,c)}function Fb(e){e.parent=null,dd(e)}var Ib={},qb={};function bd(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?qb:Ib;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function wd(e,i){var l=I("span",null,null,v?"padding-right: .1px":null),s={pre:I("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var d=c?i.rest[c-1]:i.line,m=void 0;s.pos=0,s.addToken=Bb,Yr(e.display.measure)&&(m=Kt(d,e.doc.direction))&&(s.addToken=Ub(s.addToken,m)),s.map=[];var y=i!=e.display.externalMeasured&&C(d);jb(d,s,od(e,d,y)),d.styleClasses&&(d.styleClasses.bgClass&&(s.bgClass=qt(d.styleClasses.bgClass,s.bgClass||"")),d.styleClasses.textClass&&(s.textClass=qt(d.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Fl(e.display.measure))),c==0?(i.measure.map=s.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(s.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var w=s.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Se(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function Hb(e){var i=k("span","•","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Bb(e,i,l,s,c,d,m){if(i){var y=e.splitSpaces?Wb(i,e.trailingSpace):i,w=e.cm.state.specialChars,_=!1,N;if(!w.test(i))e.col+=i.length,N=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,N),p&&g<9&&(_=!0),e.pos+=i.length;else{N=document.createDocumentFragment();for(var D=0;;){w.lastIndex=D;var W=w.exec(i),q=W?W.index-D:i.length-D;if(q){var Z=document.createTextNode(y.slice(D,D+q));p&&g<9?N.appendChild(k("span",[Z])):N.appendChild(Z),e.map.push(e.pos,e.pos+q,Z),e.col+=q,e.pos+=q}if(!W)break;D+=q+1;var rt=void 0;if(W[0]==" "){var vt=e.cm.options.tabSize,bt=vt-e.col%vt;rt=N.appendChild(k("span",mt(bt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=bt}else W[0]=="\r"||W[0]==`
11
+ `?(rt=N.appendChild(k("span",W[0]=="\r"?"␍":"␤","cm-invalidchar")),rt.setAttribute("cm-text",W[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(W[0]),rt.setAttribute("cm-text",W[0]),p&&g<9?N.appendChild(k("span",[rt])):N.appendChild(rt),e.col+=1);e.map.push(e.pos,e.pos+1,rt),e.pos++}}if(e.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||d||m){var kt=l||"";s&&(kt+=s),c&&(kt+=c);var wt=k("span",[N],kt,d);if(m)for(var Et in m)m.hasOwnProperty(Et)&&Et!="style"&&Et!="class"&&wt.setAttribute(Et,m[Et]);return e.content.appendChild(wt)}e.content.appendChild(N)}}function Wb(e,i){if(e.length>1&&!/ /.test(e))return e;for(var l=i,s="",c=0;c<e.length;c++){var d=e.charAt(c);d==" "&&l&&(c==e.length-1||e.charCodeAt(c+1)==32)&&(d=" "),s+=d,l=d==" "}return s}function Ub(e,i){return function(l,s,c,d,m,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var D=void 0,W=0;W<i.length&&(D=i[W],!(D.to>_&&D.from<=_));W++);if(D.to>=N)return e(l,s,c,d,m,y,w);e(l,s.slice(0,D.to-_),c,d,null,y,w),d=null,s=s.slice(D.to-_),_=D.to}}}function xd(e,i,l,s){var c=!s&&l.widgetNode;c&&e.map.push(e.pos,e.pos+i,c),!s&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",l.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=i,e.trailingSpace=!1}function jb(e,i,l){var s=e.markedSpans,c=e.text,d=0;if(!s){for(var m=1;m<l.length;m+=2)i.addToken(i,c.slice(d,d=l[m]),bd(l[m+1],i.cm.options));return}for(var y=c.length,w=0,_=1,N="",D,W,q=0,Z,rt,vt,bt,kt;;){if(q==w){Z=rt=vt=W="",kt=null,bt=null,q=1/0;for(var wt=[],Et=void 0,zt=0;zt<s.length;++zt){var Ot=s[zt],Vt=Ot.marker;if(Vt.type=="bookmark"&&Ot.from==w&&Vt.widgetNode)wt.push(Vt);else if(Ot.from<=w&&(Ot.to==null||Ot.to>w||Vt.collapsed&&Ot.to==w&&Ot.from==w)){if(Ot.to!=null&&Ot.to!=w&&q>Ot.to&&(q=Ot.to,rt=""),Vt.className&&(Z+=" "+Vt.className),Vt.css&&(W=(W?W+";":"")+Vt.css),Vt.startStyle&&Ot.from==w&&(vt+=" "+Vt.startStyle),Vt.endStyle&&Ot.to==q&&(Et||(Et=[])).push(Vt.endStyle,Ot.to),Vt.title&&((kt||(kt={})).title=Vt.title),Vt.attributes)for(var ge in Vt.attributes)(kt||(kt={}))[ge]=Vt.attributes[ge];Vt.collapsed&&(!bt||Kc(bt.marker,Vt)<0)&&(bt=Ot)}else Ot.from>w&&q>Ot.from&&(q=Ot.from)}if(Et)for(var He=0;He<Et.length;He+=2)Et[He+1]==q&&(rt+=" "+Et[He]);if(!bt||bt.from==w)for(var xe=0;xe<wt.length;++xe)xd(i,0,wt[xe]);if(bt&&(bt.from||0)==w){if(xd(i,(bt.to==null?y+1:bt.to)-w,bt.marker,bt.from==null),bt.to==null)return;bt.to==w&&(bt=!1)}}if(w>=y)break;for(var xn=Math.min(y,q);;){if(N){var ln=w+N.length;if(!bt){var Me=ln>xn?N.slice(0,xn-w):N;i.addToken(i,Me,D?D+Z:Z,vt,w+Me.length==q?rt:"",W,kt)}if(ln>=xn){N=N.slice(xn-w),w=xn;break}w=ln,vt=""}N=c.slice(d,d=l[_++]),D=bd(l[_++],i.cm.options)}}}function _d(e,i,l){this.line=i,this.rest=Rb(i),this.size=this.rest?C(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Qr(e,i)}function Gl(e,i,l){for(var s=[],c,d=i;d<l;d=c){var m=new _d(e.doc,Pt(e.doc,d),d);c=d+m.size,s.push(m)}return s}var bo=null;function Gb(e){bo?bo.ops.push(e):e.ownsGroup=bo={ops:[e],delayedCallbacks:[]}}function Vb(e){var i=e.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].call(null);for(var s=0;s<e.ops.length;s++){var c=e.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(l<i.length)}function Kb(e,i){var l=e.ownsGroup;if(l)try{Vb(l)}finally{bo=null,i(l)}}var Ss=null;function Fe(e,i){var l=kr(e,i);if(l.length){var s=Array.prototype.slice.call(arguments,2),c;bo?c=bo.delayedCallbacks:Ss?c=Ss:(c=Ss=[],setTimeout(Xb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},m=0;m<l.length;++m)d(m)}}function Xb(){var e=Ss;Ss=null;for(var i=0;i<e.length;++i)e[i]()}function Sd(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?Zb(e,i):d=="gutter"?Cd(e,i,l,s):d=="class"?Jc(e,i):d=="widget"&&Jb(e,i,s)}i.changes=null}function ks(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&g<8&&(e.node.style.zIndex=2)),e.node}function Yb(e,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var s=ks(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function kd(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):wd(e,i)}function Zb(e,i){var l=i.text.className,s=kd(e,i);i.text==i.node&&(i.node=s.pre),i.text.parentNode.replaceChild(s.pre,i.text),i.text=s.pre,s.bgClass!=i.bgClass||s.textClass!=i.textClass?(i.bgClass=s.bgClass,i.textClass=s.textClass,Jc(e,i)):l&&(i.text.className=l)}function Jc(e,i){Yb(e,i),i.line.wrapClass?ks(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var l=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=l||""}function Cd(e,i,l,s){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 c=ks(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var d=i.line.gutterMarkers;if(e.options.lineNumbers||d){var m=ks(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),e.display.input.setUneditable(y),m.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",dt(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var w=0;w<e.display.gutterSpecs.length;++w){var _=e.display.gutterSpecs[w].className,N=d.hasOwnProperty(_)&&d[_];N&&y.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function Jb(e,i,l){i.alignable&&(i.alignable=null);for(var s=pt("CodeMirror-linewidget"),c=i.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Td(e,i,l)}function Qb(e,i,l,s){var c=kd(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Jc(e,i),Cd(e,i,l,s),Td(e,i,s),i.node}function Td(e,i,l){if(Ed(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Ed(e,i.rest[s],i,l,!1)}function Ed(e,i,l,s,c){if(i.widgets)for(var d=ks(l),m=0,y=i.widgets;m<y.length;++m){var w=y[m],_=k("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),tw(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Fe(w,"redraw")}}function tw(e,i,l,s){if(e.noHScroll){(l.alignable||(l.alignable=[])).push(i);var c=s.wrapperWidth;i.style.left=s.fixedPos+"px",e.coverGutter||(c-=s.gutterTotalWidth,i.style.paddingLeft=s.gutterTotalWidth+"px"),i.style.width=c+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-s.gutterTotalWidth+"px"))}function Cs(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!J(document.body,e.node)){var l="position: relative;";e.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),z(i.display.measure,k("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function Lr(e,i){for(var l=ms(i);l!=e.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==e.sizer&&l!=e.mover)return!0}function Vl(e){return e.lineSpace.offsetTop}function Qc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ld(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=z(e.measure,k("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function ur(e){return $-e.display.nativeBarWidth}function Mi(e){return e.display.scroller.clientWidth-ur(e)-e.display.barWidth}function tu(e){return e.display.scroller.clientHeight-ur(e)-e.display.barHeight}function ew(e,i,l){var s=e.options.lineWrapping,c=s&&Mi(e);if(!i.measure.heights||s&&i.measure.width!=c){var d=i.measure.heights=[];if(s){i.measure.width=c;for(var m=i.text.firstChild.getClientRects(),y=0;y<m.length-1;y++){var w=m[y],_=m[y+1];Math.abs(w.bottom-_.bottom)>2&&d.push((w.bottom+_.top)/2-l.top)}}d.push(l.bottom-l.top)}}function Ad(e,i,l){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var s=0;s<e.rest.length;s++)if(e.rest[s]==i)return{map:e.measure.maps[s],cache:e.measure.caches[s]};for(var c=0;c<e.rest.length;c++)if(C(e.rest[c])>l)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}}function nw(e,i){i=Kn(i);var l=C(i),s=e.display.externalMeasured=new _d(e.doc,i,l);s.lineN=l;var c=s.built=wd(e,s);return s.text=c.pre,z(e.display.lineMeasure,c.pre),s}function Md(e,i,l,s){return fr(e,wo(e,i),l,s)}function eu(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[Oi(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function wo(e,i){var l=C(i),s=eu(e,l);s&&!s.text?s=null:s&&s.changes&&(Sd(e,s,l,su(e)),e.curOp.forceUpdate=!0),s||(s=nw(e,i));var c=Ad(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function fr(e,i,l,s,c){i.before&&(l=-1);var d=l+(s||""),m;return i.cache.hasOwnProperty(d)?m=i.cache[d]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(ew(e,i.view,i.rect),i.hasHeights=!0),m=iw(e,i,l,s),m.bogus||(i.cache[d]=m)),{left:m.left,right:m.right,top:c?m.rtop:m.top,bottom:c?m.rbottom:m.bottom}}var Nd={left:0,right:0,top:0,bottom:0};function Pd(e,i,l){for(var s,c,d,m,y,w,_=0;_<e.length;_+=3)if(y=e[_],w=e[_+1],i<y?(c=0,d=1,m="left"):i<w?(c=i-y,d=c+1):(_==e.length-3||i==w&&e[_+3]>i)&&(d=w-y,c=d-1,i>=w&&(m="right")),c!=null){if(s=e[_+2],y==w&&l==(s.insertLeft?"left":"right")&&(m=l),l=="left"&&c==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)s=e[(_-=3)+2],m="left";if(l=="right"&&c==w-y)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)s=e[(_+=3)+2],m="right";break}return{node:s,start:c,end:d,collapse:m,coverStart:y,coverEnd:w}}function rw(e,i){var l=Nd;if(i=="left")for(var s=0;s<e.length&&(l=e[s]).left==l.right;s++);else for(var c=e.length-1;c>=0&&(l=e[c]).left==l.right;c--);return l}function iw(e,i,l,s){var c=Pd(i.map,l,s),d=c.node,m=c.start,y=c.end,w=c.collapse,_;if(d.nodeType==3){for(var N=0;N<4;N++){for(;m&&oe(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&oe(i.line.text.charAt(c.coverStart+y));)++y;if(p&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=d.parentNode.getBoundingClientRect():_=rw(H(d,m,y).getClientRects(),s),_.left||_.right||m==0)break;y=m,m=m-1,w="right"}p&&g<11&&(_=ow(e.display.measure,_))}else{m>0&&(w=s="right");var D;e.options.lineWrapping&&(D=d.getClientRects()).length>1?_=D[s=="right"?D.length-1:0]:_=d.getBoundingClientRect()}if(p&&g<9&&!m&&(!_||!_.left&&!_.right)){var W=d.parentNode.getClientRects()[0];W?_={left:W.left,right:W.left+_o(e.display),top:W.top,bottom:W.bottom}:_=Nd}for(var q=_.top-i.rect.top,Z=_.bottom-i.rect.top,rt=(q+Z)/2,vt=i.view.measure.heights,bt=0;bt<vt.length-1&&!(rt<vt[bt]);bt++);var kt=bt?vt[bt-1]:0,wt=vt[bt],Et={left:(w=="right"?_.right:_.left)-i.rect.left,right:(w=="left"?_.left:_.right)-i.rect.left,top:kt,bottom:wt};return!_.left&&!_.right&&(Et.bogus=!0),e.options.singleCursorHeightPerLine||(Et.rtop=q,Et.rbottom=Z),Et}function ow(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Uc(e))return i;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*s,bottom:i.bottom*s}}function Od(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function Dd(e){e.display.externalMeasure=null,V(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Od(e.display.view[i])}function Ts(e){Dd(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function $d(e){return x&&R?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Rd(e){return x&&R?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function nu(e){var i=Kn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=Cs(l[c]));return s}function Kl(e,i,l,s,c){if(!c){var d=nu(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var m=Er(i);if(s=="local"?m+=Vl(e.display):m-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();m+=y.top+(s=="window"?0:Rd(Zt(e)));var w=y.left+(s=="window"?0:$d(Zt(e)));l.left+=w,l.right+=w}return l.top+=m,l.bottom+=m,l}function zd(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=$d(Zt(e)),c-=Rd(Zt(e));else if(l=="local"||!l){var d=e.display.sizer.getBoundingClientRect();s+=d.left,c+=d.top}var m=e.display.lineSpace.getBoundingClientRect();return{left:s-m.left,top:c-m.top}}function Xl(e,i,l,s,c){return s||(s=Pt(e.doc,i.line)),Kl(e,s,Md(e,s,i.ch,c),l)}function Xn(e,i,l,s,c,d){s=s||Pt(e.doc,i.line),c||(c=wo(e,s));function m(Z,rt){var vt=fr(e,c,Z,rt?"right":"left",d);return rt?vt.left=vt.right:vt.right=vt.left,Kl(e,s,vt,l)}var y=Kt(s,e.doc.direction),w=i.ch,_=i.sticky;if(w>=s.text.length?(w=s.text.length,_="before"):w<=0&&(w=0,_="after"),!y)return m(_=="before"?w-1:w,_=="before");function N(Z,rt,vt){var bt=y[rt],kt=bt.level==1;return m(vt?Z-1:Z,kt!=vt)}var D=Le(y,w,_),W=lr,q=N(w,D,_=="before");return W!=null&&(q.other=N(w,W,_!="before")),q}function Fd(e,i){var l=0;i=Wt(e.doc,i),e.options.lineWrapping||(l=_o(e.display)*i.ch);var s=Pt(e.doc,i.line),c=Er(s)+Vl(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function ru(e,i,l,s,c){var d=X(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function iu(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return ru(s.first,0,null,-1,-1);var c=O(s,l),d=s.first+s.size-1;if(c>d)return ru(s.first+s.size-1,Pt(s,d).text.length,null,1,1);i<0&&(i=0);for(var m=Pt(s,c);;){var y=sw(e,m,c,i,l),w=Db(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;m=Pt(s,c=_.line)}}function Id(e,i,l,s){s-=nu(i);var c=i.text.length,d=Mn(function(m){return fr(e,l,m-1).bottom<=s},c,0);return c=Mn(function(m){return fr(e,l,m).top>s},d,c),{begin:d,end:c}}function qd(e,i,l,s){l||(l=wo(e,i));var c=Kl(e,i,fr(e,l,s),"line").top;return Id(e,i,l,c)}function ou(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function sw(e,i,l,s,c){c-=Er(i);var d=wo(e,i),m=nu(i),y=0,w=i.text.length,_=!0,N=Kt(i,e.doc.direction);if(N){var D=(e.options.lineWrapping?aw:lw)(e,i,l,d,N,s,c);_=D.level!=1,y=_?D.from:D.to-1,w=_?D.to:D.from-1}var W=null,q=null,Z=Mn(function(zt){var Ot=fr(e,d,zt);return Ot.top+=m,Ot.bottom+=m,ou(Ot,s,c,!1)?(Ot.top<=c&&Ot.left<=s&&(W=zt,q=Ot),!0):!1},y,w),rt,vt,bt=!1;if(q){var kt=s-q.left<q.right-s,wt=kt==_;Z=W+(wt?0:1),vt=wt?"after":"before",rt=kt?q.left:q.right}else{!_&&(Z==w||Z==y)&&Z++,vt=Z==0?"after":Z==i.text.length?"before":fr(e,d,Z-(_?1:0)).bottom+m<=c==_?"after":"before";var Et=Xn(e,X(l,Z,vt),"line",i,d);rt=Et.left,bt=c<Et.top?-1:c>=Et.bottom?1:0}return Z=en(i.text,Z,1),ru(l,Z,vt,bt,s-rt)}function lw(e,i,l,s,c,d,m){var y=Mn(function(D){var W=c[D],q=W.level!=1;return ou(Xn(e,X(l,q?W.to:W.from,q?"before":"after"),"line",i,s),d,m,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,N=Xn(e,X(l,_?w.from:w.to,_?"after":"before"),"line",i,s);ou(N,d,m,!0)&&N.top>m&&(w=c[y-1])}return w}function aw(e,i,l,s,c,d,m){var y=Id(e,i,s,m),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,D=null,W=0;W<c.length;W++){var q=c[W];if(!(q.from>=_||q.to<=w)){var Z=q.level!=1,rt=fr(e,s,Z?Math.min(_,q.to)-1:Math.max(w,q.from)).right,vt=rt<d?d-rt+1e9:rt-d;(!N||D>vt)&&(N=q,D=vt)}}return N||(N=c[c.length-1]),N.from<w&&(N={from:w,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var Ni;function xo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ni==null){Ni=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ni.appendChild(document.createTextNode("x")),Ni.appendChild(k("br"));Ni.appendChild(document.createTextNode("x"))}z(e.measure,Ni);var l=Ni.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),V(e.measure),l||1}function _o(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");z(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function su(e){for(var i=e.display,l={},s={},c=i.gutters.clientLeft,d=i.gutters.firstChild,m=0;d;d=d.nextSibling,++m){var y=e.display.gutterSpecs[m].className;l[y]=d.offsetLeft+d.clientLeft+c,s[y]=d.clientWidth}return{fixedPos:lu(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function lu(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Hd(e){var i=xo(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/_o(e.display)-3);return function(c){if(Qr(e.doc,c))return 0;var d=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(d+=c.widgets[m].height);return l?d+(Math.ceil(c.text.length/s)||1)*i:d+i}}function au(e){var i=e.doc,l=Hd(e);i.iter(function(s){var c=l(s);c!=s.height&&Nn(s,c)})}function Pi(e,i,l,s){var c=e.display;if(!l&&ms(i).getAttribute("cm-not-content")=="true")return null;var d,m,y=c.lineSpace.getBoundingClientRect();try{d=i.clientX-y.left,m=i.clientY-y.top}catch{return null}var w=iu(e,d,m),_;if(s&&w.xRel>0&&(_=Pt(e.doc,w.line).text).length==w.ch){var N=ot(_,_.length,e.options.tabSize)-_.length;w=X(w.line,Math.max(0,Math.round((d-Ld(e.display).left)/_o(e.display))-N))}return w}function Oi(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var l=e.display.view,s=0;s<l.length;s++)if(i-=l[s].size,i<0)return s}function on(e,i,l,s){i==null&&(i=e.doc.first),l==null&&(l=e.doc.first+e.doc.size),s||(s=0);var c=e.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=c.viewTo)Tr&&Xc(e.doc,i)<c.viewTo&&ei(e);else if(l<=c.viewFrom)Tr&&yd(e.doc,l+s)>c.viewFrom?ei(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)ei(e);else if(i<=c.viewFrom){var d=Yl(e,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):ei(e)}else if(l>=c.viewTo){var m=Yl(e,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):ei(e)}else{var y=Yl(e,i,i,-1),w=Yl(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Gl(e,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):ei(e)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function ti(e,i,l){e.curOp.viewChanged=!0;var s=e.display,c=e.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(s.externalMeasured=null),!(i<s.viewFrom||i>=s.viewTo)){var d=s.view[Oi(e,i)];if(d.node!=null){var m=d.changes||(d.changes=[]);Tt(m,l)==-1&&m.push(l)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Yl(e,i,l,s){var c=Oi(e,i),d,m=e.display.view;if(!Tr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,w=0;w<c;w++)y+=m[w].size;if(y!=i){if(s>0){if(c==m.length-1)return null;d=y+m[c].size-i,c++}else d=y-i;i+=d,l+=d}for(;Xc(e.doc,l)!=l;){if(c==(s<0?0:m.length-1))return null;l+=s*m[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function cw(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Gl(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Gl(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(Oi(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Gl(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,Oi(e,l)))),s.viewTo=l}function Bd(e){for(var i=e.display.view,l=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function Es(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Wd(e,i){i===void 0&&(i=!0);var l=e.doc,s={},c=s.cursors=document.createDocumentFragment(),d=s.selection=document.createDocumentFragment(),m=e.options.$customCursor;m&&(i=!0);for(var y=0;y<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var w=l.sel.ranges[y];if(!(w.from().line>=e.display.viewTo||w.to().line<e.display.viewFrom)){var _=w.empty();if(m){var N=m(e,w);N&&cu(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&cu(e,w.head,c);_||uw(e,w,d)}}return s}function cu(e,i,l){var s=Xn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(k("div"," ","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=Xl(e,i,"div",null,null),m=d.right-d.left;c.style.width=(m>0?m:e.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=s.other.left+"px",y.style.top=s.other.top+"px",y.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function Zl(e,i){return e.top-i.top||e.left-i.left}function uw(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),m=Ld(e.display),y=m.left,w=Math.max(s.sizerWidth,Mi(e)-s.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function N(wt,Et,zt,Ot){Et<0&&(Et=0),Et=Math.round(Et),Ot=Math.round(Ot),d.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px;
12
+ top: `+Et+"px; width: "+(zt??w-wt)+`px;
13
+ height: `+(Ot-Et)+"px"))}function D(wt,Et,zt){var Ot=Pt(c,wt),Vt=Ot.text.length,ge,He;function xe(Me,an){return Xl(e,X(wt,Me),"div",Ot,an)}function xn(Me,an,We){var Oe=qd(e,Ot,null,Me),Ne=an=="ltr"==(We=="after")?"left":"right",Te=We=="after"?Oe.begin:Oe.end-(/\s/.test(Ot.text.charAt(Oe.end-1))?2:1);return xe(Te,Ne)[Ne]}var ln=Kt(Ot,c.direction);return mn(ln,Et||0,zt??Vt,function(Me,an,We,Oe){var Ne=We=="ltr",Te=xe(Me,Ne?"left":"right"),cn=xe(an-1,Ne?"right":"left"),$o=Et==null&&Me==0,li=zt==null&&an==Vt,Xe=Oe==0,hr=!ln||Oe==ln.length-1;if(cn.top-Te.top<=3){var Be=(_?$o:li)&&Xe,Ru=(_?li:$o)&&hr,Nr=Be?y:(Ne?Te:cn).left,Fi=Ru?w:(Ne?cn:Te).right;N(Nr,Te.top,Fi-Nr,Te.bottom)}else{var Ii,Je,Ro,zu;Ne?(Ii=_&&$o&&Xe?y:Te.left,Je=_?w:xn(Me,We,"before"),Ro=_?y:xn(an,We,"after"),zu=_&&li&&hr?w:cn.right):(Ii=_?xn(Me,We,"before"):y,Je=!_&&$o&&Xe?w:Te.right,Ro=!_&&li&&hr?y:cn.left,zu=_?xn(an,We,"after"):w),N(Ii,Te.top,Je-Ii,Te.bottom),Te.bottom<cn.top&&N(y,Te.bottom,null,cn.top),N(Ro,cn.top,zu-Ro,cn.bottom)}(!ge||Zl(Te,ge)<0)&&(ge=Te),Zl(cn,ge)<0&&(ge=cn),(!He||Zl(Te,He)<0)&&(He=Te),Zl(cn,He)<0&&(He=cn)}),{start:ge,end:He}}var W=i.from(),q=i.to();if(W.line==q.line)D(W.line,W.ch,q.ch);else{var Z=Pt(c,W.line),rt=Pt(c,q.line),vt=Kn(Z)==Kn(rt),bt=D(W.line,W.ch,vt?Z.text.length+1:null).end,kt=D(q.line,vt?0:null,q.ch).start;vt&&(bt.top<kt.top-2?(N(bt.right,bt.top,null,bt.bottom),N(y,kt.top,kt.left,kt.bottom)):N(bt.right,bt.top,kt.left-bt.right,bt.bottom)),bt.bottom<kt.top&&N(y,bt.bottom,null,kt.top)}l.appendChild(d)}function uu(e){if(e.state.focused){var i=e.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||So(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Ud(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||hu(e))}function fu(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&So(e))},100)}function hu(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Se(e,"focus",e,i),e.state.focused=!0,Lt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),v&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),uu(e))}function So(e,i){e.state.delayingBlurEvent||(e.state.focused&&(Se(e,"blur",e,i),e.state.focused=!1,gt(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jl(e){for(var i=e.display,l=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,d=0,m=0;m<i.view.length;m++){var y=i.view[m],w=e.options.lineWrapping,_=void 0,N=0;if(!y.hidden){if(c+=y.line.height,p&&g<8){var D=y.node.offsetTop+y.node.offsetHeight;_=D-l,l=D}else{var W=y.node.getBoundingClientRect();_=W.bottom-W.top,!w&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-W.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(d-=q),Nn(y.line,_),jd(y.line),y.rest))for(var Z=0;Z<y.rest.length;Z++)jd(y.rest[Z]);if(N>e.display.sizerWidth){var rt=Math.ceil(N/_o(e.display));rt>e.display.maxLineLength&&(e.display.maxLineLength=rt,e.display.maxLine=y.line,e.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(i.scroller.scrollTop+=d)}function jd(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var l=e.widgets[i],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function Ql(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Vl(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=O(i,s),m=O(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<d?(d=y,m=O(i,Er(Pt(i,y))+e.wrapper.clientHeight)):Math.min(w,i.lastLine())>=m&&(d=O(i,Er(Pt(i,w))-e.wrapper.clientHeight),m=w)}return{from:d,to:Math.max(m,d+1)}}function fw(e,i){if(!ke(e,"scrollCursorIntoView")){var l=e.display,s=l.sizer.getBoundingClientRect(),c=null,d=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(d.defaultView.innerHeight||d.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","​",null,`position: absolute;
14
+ top: `+(i.top-l.viewOffset-Vl(e.display))+`px;
15
+ height: `+(i.bottom-i.top+ur(e)+l.barHeight)+`px;
16
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(c),e.display.lineSpace.removeChild(m)}}}function hw(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?X(i.line,i.ch+1,"before"):i,i=i.ch?X(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var d=0;d<5;d++){var m=!1,y=Xn(e,i),w=!l||l==i?y:Xn(e,l);c={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-s,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+s};var _=du(e,c),N=e.doc.scrollTop,D=e.doc.scrollLeft;if(_.scrollTop!=null&&(As(e,_.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(m=!0)),_.scrollLeft!=null&&(Di(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function dw(e,i){var l=du(e,i);l.scrollTop!=null&&As(e,l.scrollTop),l.scrollLeft!=null&&Di(e,l.scrollLeft)}function du(e,i){var l=e.display,s=xo(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,d=tu(e),m={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Qc(l),w=i.top<s,_=i.bottom>y-s;if(i.top<c)m.scrollTop=w?0:i.top;else if(i.bottom>c+d){var N=Math.min(i.top,(_?y:i.bottom)-d);N!=c&&(m.scrollTop=N)}var D=e.options.fixedGutter?0:l.gutters.offsetWidth,W=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-D,q=Mi(e)-l.gutters.offsetWidth,Z=i.right-i.left>q;return Z&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<W?m.scrollLeft=Math.max(0,i.left+D-(Z?0:10)):i.right>q+W-3&&(m.scrollLeft=i.right+(Z?0:10)-q),m}function pu(e,i){i!=null&&(ta(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function ko(e){ta(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function Ls(e,i,l){(i!=null||l!=null)&&ta(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function pw(e,i){ta(e),e.curOp.scrollToPos=i}function ta(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=Fd(e,i.from),s=Fd(e,i.to);Gd(e,l,s,i.margin)}}function Gd(e,i,l,s){var c=du(e,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-s,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+s});Ls(e,c.scrollLeft,c.scrollTop)}function As(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||vu(e,{top:i}),Vd(e,i,!0),a&&vu(e),Ps(e,100))}function Vd(e,i,l){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!l)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Di(e,i,l,s){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((l?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!s)&&(e.doc.scrollLeft=i,Jd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function Ms(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Qc(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+ur(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var $i=function(e,i,l){this.cm=l;var s=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,e(s),e(c),Rt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),Rt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$i.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,l=e.scrollHeight>e.clientHeight+1,s=e.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=i?s+"px":"0";var c=e.viewHeight-(i?s:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"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=l?s+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:i?s:0}},$i.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$i.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$i.prototype.zeroWidthHack=function(){var e=B&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Mt,this.disableVert=new Mt},$i.prototype.enableZeroWidthBar=function(e,i,l){e.style.visibility="";function s(){var c=e.getBoundingClientRect(),d=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);d!=e?e.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},$i.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ns=function(){};Ns.prototype.update=function(){return{bottom:0,right:0}},Ns.prototype.setScrollLeft=function(){},Ns.prototype.setScrollTop=function(){},Ns.prototype.clear=function(){};function Co(e,i){i||(i=Ms(e));var l=e.display.barWidth,s=e.display.barHeight;Kd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Jl(e),Kd(e,Ms(e)),l=e.display.barWidth,s=e.display.barHeight}function Kd(e,i){var l=e.display,s=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var Xd={native:$i,null:Ns};function Yd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&gt(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Xd[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),Rt(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?Di(e,i):As(e,i)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var gw=0;function Ri(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++gw,markArrays:null},Gb(e.curOp)}function zi(e){var i=e.curOp;i&&Kb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;vw(l)})}function vw(e){for(var i=e.ops,l=0;l<i.length;l++)mw(i[l]);for(var s=0;s<i.length;s++)yw(i[s]);for(var c=0;c<i.length;c++)bw(i[c]);for(var d=0;d<i.length;d++)ww(i[d]);for(var m=0;m<i.length;m++)xw(i[m])}function mw(e){var i=e.cm,l=i.display;Sw(i),e.updateMaxLine&&Zc(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<l.viewFrom||e.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new ea(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function yw(e){e.updatedDisplay=e.mustUpdate&&gu(e.cm,e.update)}function bw(e){var i=e.cm,l=i.display;e.updatedDisplay&&Jl(i),e.barMeasure=Ms(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Md(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+e.adjustWidthTo+ur(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-Mi(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function ww(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Di(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=e.focus&&e.focus==yt(Xt(i));e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=i.doc.height)&&Co(i,e.barMeasure),e.updatedDisplay&&yu(i,e.barMeasure),e.selectionChanged&&uu(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&Ud(e.cm)}function xw(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&Zd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&Vd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Di(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=hw(i,Wt(s,e.scrollToPos.from),Wt(s,e.scrollToPos.to),e.scrollToPos.margin);fw(i,c)}var d=e.maybeHiddenMarkers,m=e.maybeUnhiddenMarkers;if(d)for(var y=0;y<d.length;++y)d[y].lines.length||Se(d[y],"hide");if(m)for(var w=0;w<m.length;++w)m[w].lines.length&&Se(m[w],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&Se(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function wn(e,i){if(e.curOp)return i();Ri(e);try{return i()}finally{zi(e)}}function Ie(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ri(e);try{return i.apply(e,arguments)}finally{zi(e)}}}function Ze(e){return function(){if(this.curOp)return e.apply(this,arguments);Ri(this);try{return e.apply(this,arguments)}finally{zi(this)}}}function qe(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ri(i);try{return e.apply(this,arguments)}finally{zi(i)}}}function Ps(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,j(_w,e))}function _w(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=xs(e,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,e.display.viewTo+500),function(d){if(s.line>=e.display.viewFrom){var m=d.styles,y=d.text.length>e.options.maxHighlightLength?ar(i.mode,s.state):null,w=id(e,d,s,!0);y&&(s.state=y),d.styles=w.styles;var _=d.styleClasses,N=w.classes;N?d.styleClasses=N:_&&(d.styleClasses=null);for(var D=!m||m.length!=d.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),W=0;!D&&W<m.length;++W)D=m[W]!=d.styles[W];D&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=e.options.maxHighlightLength&&jc(e,d.text,s),d.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return Ps(e,e.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&wn(e,function(){for(var d=0;d<c.length;d++)ti(e,c[d],"text")})}}var ea=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Ql(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Mi(e),this.force=l,this.dims=su(e),this.events=[]};ea.prototype.signal=function(e,i){bn(e,i)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Se.apply(null,this.events[e])};function Sw(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ur(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ur(e)+"px",i.scrollbarsClipped=!0)}function kw(e){if(e.hasFocus())return null;var i=yt(Xt(e));if(!i||!J(e.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=Ct(e).getSelection();s.anchorNode&&s.extend&&J(e.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function Cw(e){if(!(!e||!e.activeElt||e.activeElt==yt(jt(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&J(document.body,e.anchorNode)&&J(document.body,e.focusNode))){var i=e.activeElt.ownerDocument,l=i.defaultView.getSelection(),s=i.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(e.focusNode,e.focusOffset)}}function gu(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return ei(e),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&Bd(e)==0)return!1;Qd(e)&&(ei(e),i.dims=su(e));var c=s.first+s.size,d=Math.max(i.visible.from-e.options.viewportMargin,s.first),m=Math.min(c,i.visible.to+e.options.viewportMargin);l.viewFrom<d&&d-l.viewFrom<20&&(d=Math.max(s.first,l.viewFrom)),l.viewTo>m&&l.viewTo-m<20&&(m=Math.min(c,l.viewTo)),Tr&&(d=Xc(e.doc,d),m=yd(e.doc,m));var y=d!=l.viewFrom||m!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;cw(e,d,m),l.viewOffset=Er(Pt(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=Bd(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=kw(e);return w>4&&(l.lineDiv.style.display="none"),Tw(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Cw(_),V(l.cursorDiv),V(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,Ps(e,400)),l.updateLineNumbers=null,!0}function Zd(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==Mi(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Qc(e.display)-tu(e),l.top)}),i.visible=Ql(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Ql(e.display,e.doc,l));if(!gu(e,i))break;Jl(e);var c=Ms(e);Es(e),Co(e,c),yu(e,c),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function vu(e,i){var l=new ea(e,i);if(gu(e,l)){Jl(e),Zd(e,l);var s=Ms(e);Es(e),Co(e,s),yu(e,s),l.finish()}}function Tw(e,i,l){var s=e.display,c=e.options.lineNumbers,d=s.lineDiv,m=d.firstChild;function y(Z){var rt=Z.nextSibling;return v&&B&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),rt}for(var w=s.view,_=s.viewFrom,N=0;N<w.length;N++){var D=w[N];if(!D.hidden)if(!D.node||D.node.parentNode!=d){var W=Qb(e,D,_,l);d.insertBefore(W,m)}else{for(;m!=D.node;)m=y(m);var q=c&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Tt(D.changes,"gutter")>-1&&(q=!1),Sd(e,D,_,l)),q&&(V(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(dt(e.options,_)))),m=D.node.nextSibling}_+=D.size}for(;m;)m=y(m)}function mu(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Fe(e,"gutterChanged",e)}function yu(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+ur(e)+"px"}function Jd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=lu(i)-i.scroller.scrollLeft+e.doc.scrollLeft,c=i.gutters.offsetWidth,d=s+"px",m=0;m<l.length;m++)if(!l[m].hidden){e.options.fixedGutter&&(l[m].gutter&&(l[m].gutter.style.left=d),l[m].gutterBackground&&(l[m].gutterBackground.style.left=d));var y=l[m].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=d}e.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function Qd(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=dt(e.options,i.first+i.size-1),s=e.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(k("div",[k("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=c.firstChild.offsetWidth,m=c.offsetWidth-d;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(d,s.lineGutter.offsetWidth-m)+1,s.lineNumWidth=s.lineNumInnerWidth+m,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",mu(e.display),!0}return!1}function bu(e,i){for(var l=[],s=!1,c=0;c<e.length;c++){var d=e[c],m=null;if(typeof d!="string"&&(m=d.style,d=d.className),d=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:d,style:m})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function tp(e){var i=e.gutters,l=e.gutterSpecs;V(i),e.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],d=c.className,m=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+d));m&&(y.style.cssText=m),d=="CodeMirror-linenumbers"&&(e.lineGutter=y,y.style.width=(e.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",mu(e)}function Os(e){tp(e.display),on(e),Jd(e)}function Ew(e,i,l,s){var c=this;this.input=l,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=I("div",null,"CodeMirror-code"),c.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=k("div",null,"CodeMirror-cursors"),c.measure=k("div",null,"CodeMirror-measure"),c.lineMeasure=k("div",null,"CodeMirror-measure"),c.lineSpace=I("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=I("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[d],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),c.gutters=k("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=k("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=k("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),x&&S>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),p&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(a&&E)&&(c.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(c.wrapper):e(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=bu(s.gutters,s.lineNumbers),tp(c),l.init(c)}var na=0,Ar=null;p?Ar=-.53:a?Ar=15:x?Ar=-.7:A&&(Ar=-1/3);function ep(e){var i=e.wheelDeltaX,l=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),l==null&&e.detail&&e.axis==e.VERTICAL_AXIS?l=e.detail:l==null&&(l=e.wheelDelta),{x:i,y:l}}function Lw(e){var i=ep(e);return i.x*=Ar,i.y*=Ar,i}function np(e,i){x&&S==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var l=ep(i),s=l.x,c=l.y,d=Ar;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,d=1);var m=e.display,y=m.scroller,w=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(s&&w||c&&_){if(c&&B&&v){t:for(var N=i.target,D=m.view;N!=y;N=N.parentNode)for(var W=0;W<D.length;W++)if(D[W].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!P&&d!=null){c&&_&&As(e,Math.max(0,y.scrollTop+c*d)),Di(e,Math.max(0,y.scrollLeft+s*d)),(!c||c&&_)&&Ve(i),m.wheelStartX=null;return}if(c&&d!=null){var q=c*d,Z=e.doc.scrollTop,rt=Z+m.wrapper.clientHeight;q<0?Z=Math.max(0,Z+q-50):rt=Math.min(e.doc.height,rt+q+50),vu(e,{top:Z,bottom:rt})}na<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=y.scrollLeft,m.wheelStartY=y.scrollTop,m.wheelDX=s,m.wheelDY=c,setTimeout(function(){if(m.wheelStartX!=null){var vt=y.scrollLeft-m.wheelStartX,bt=y.scrollTop-m.wheelStartY,kt=bt&&m.wheelDY&&bt/m.wheelDY||vt&&m.wheelDX&&vt/m.wheelDX;m.wheelStartX=m.wheelStartY=null,kt&&(Ar=(Ar*na+kt)/(na+1),++na)}},200)):(m.wheelDX+=s,m.wheelDY+=c))}}var Pn=function(e,i){this.ranges=e,this.primIndex=i};Pn.prototype.primary=function(){return this.ranges[this.primIndex]},Pn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var l=this.ranges[i],s=e.ranges[i];if(!ae(l.anchor,s.anchor)||!ae(l.head,s.head))return!1}return!0},Pn.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new ce(ze(this.ranges[i].anchor),ze(this.ranges[i].head));return new Pn(e,this.primIndex)},Pn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Pn.prototype.contains=function(e,i){i||(i=e);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(_t(i,s.from())>=0&&_t(e,s.to())<=0)return l}return-1};var ce=function(e,i){this.anchor=e,this.head=i};ce.prototype.from=function(){return mo(this.anchor,this.head)},ce.prototype.to=function(){return rn(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yn(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(W,q){return _t(W.from(),q.from())}),l=Tt(i,c);for(var d=1;d<i.length;d++){var m=i[d],y=i[d-1],w=_t(y.to(),m.from());if(s&&!m.empty()?w>0:w>=0){var _=mo(y.from(),m.from()),N=rn(y.to(),m.to()),D=y.empty()?m.from()==m.head:y.from()==y.head;d<=l&&--l,i.splice(--d,2,new ce(D?N:_,D?_:N))}}return new Pn(i,l)}function ni(e,i){return new Pn([new ce(e,i||e)],0)}function ri(e){return e.text?X(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function rp(e,i){if(_t(e,i.from)<0)return e;if(_t(e,i.to)<=0)return ri(i);var l=e.line+i.text.length-(i.to.line-i.from.line)-1,s=e.ch;return e.line==i.to.line&&(s+=ri(i).ch-i.to.ch),X(l,s)}function wu(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ce(rp(c.anchor,i),rp(c.head,i)))}return Yn(e.cm,l,e.sel.primIndex)}function ip(e,i,l){return e.line==i.line?X(l.line,e.ch-i.ch+l.ch):X(l.line+(e.line-i.line),e.ch)}function Aw(e,i,l){for(var s=[],c=X(e.first,0),d=c,m=0;m<i.length;m++){var y=i[m],w=ip(y.from,c,d),_=ip(ri(y),c,d);if(c=y.to,d=_,l=="around"){var N=e.sel.ranges[m],D=_t(N.head,N.anchor)<0;s[m]=new ce(D?_:w,D?w:_)}else s[m]=new ce(w,w)}return new Pn(s,e.sel.primIndex)}function xu(e){e.doc.mode=po(e.options,e.doc.modeOption),Ds(e)}function Ds(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ps(e,100),e.state.modeGen++,e.curOp&&on(e)}function op(e,i){return i.from.ch==0&&i.to.ch==0&&lt(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _u(e,i,l,s){function c(kt){return l?l[kt]:null}function d(kt,wt,Et){zb(kt,wt,Et,s),Fe(kt,"change",kt,i)}function m(kt,wt){for(var Et=[],zt=kt;zt<wt;++zt)Et.push(new yo(_[zt],c(zt),s));return Et}var y=i.from,w=i.to,_=i.text,N=Pt(e,y.line),D=Pt(e,w.line),W=lt(_),q=c(_.length-1),Z=w.line-y.line;if(i.full)e.insert(0,m(0,_.length)),e.remove(_.length,e.size-_.length);else if(op(e,i)){var rt=m(0,_.length-1);d(D,D.text,q),Z&&e.remove(y.line,Z),rt.length&&e.insert(y.line,rt)}else if(N==D)if(_.length==1)d(N,N.text.slice(0,y.ch)+W+N.text.slice(w.ch),q);else{var vt=m(1,_.length-1);vt.push(new yo(W+N.text.slice(w.ch),q,s)),d(N,N.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,vt)}else if(_.length==1)d(N,N.text.slice(0,y.ch)+_[0]+D.text.slice(w.ch),c(0)),e.remove(y.line+1,Z);else{d(N,N.text.slice(0,y.ch)+_[0],c(0)),d(D,W+D.text.slice(w.ch),q);var bt=m(1,_.length-1);Z>1&&e.remove(y.line+1,Z-1),e.insert(y.line+1,bt)}Fe(e,"change",e,i)}function ii(e,i,l){function s(c,d,m){if(c.linked)for(var y=0;y<c.linked.length;++y){var w=c.linked[y];if(w.doc!=d){var _=m&&w.sharedHist;l&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(e,null,!0)}function sp(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,au(e),xu(e),lp(e),e.options.direction=i.direction,e.options.lineWrapping||Zc(e),e.options.mode=i.modeOption,on(e)}function lp(e){(e.doc.direction=="rtl"?Lt:gt)(e.display.lineDiv,"CodeMirror-rtl")}function Mw(e){wn(e,function(){lp(e),on(e)})}function ra(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Su(e,i){var l={from:ze(i.from),to:ri(i),text:Cr(e,i.from,i.to)};return up(e,l,i.from.line,i.to.line+1),ii(e,function(s){return up(s,l,i.from.line,i.to.line+1)},!0),l}function ap(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function Nw(e,i){if(i)return ap(e.done),lt(e.done);if(e.done.length&&!lt(e.done).ranges)return lt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),lt(e.done)}function cp(e,i,l,s){var c=e.history;c.undone.length=0;var d=+new Date,m,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=Nw(c,c.lastOp==s)))y=lt(m.changes),_t(i.from,i.to)==0&&_t(i.from,y.to)==0?y.to=ri(i):m.changes.push(Su(e,i));else{var w=lt(c.done);for((!w||!w.ranges)&&ia(e.sel,c.done),m={changes:[Su(e,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=d,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||Se(e,"historyAdded")}function Pw(e,i,l,s){var c=i.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ow(e,i,l,s){var c=e.history,d=s&&s.origin;l==c.lastSelOp||d&&c.lastSelOrigin==d&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==d||Pw(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:ia(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&ap(c.undone)}function ia(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function up(e,i,l,s){var c=i["spans_"+e.id],d=0;e.iter(Math.max(e.first,l),Math.min(e.first+e.size,s),function(m){m.markedSpans&&((c||(c=i["spans_"+e.id]={}))[d]=m.markedSpans),++d})}function Dw(e){if(!e)return null;for(var i,l=0;l<e.length;++l)e[l].marker.explicitlyCleared?i||(i=e.slice(0,l)):i&&i.push(e[l]);return i?i.length?i:null:e}function $w(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(Dw(l[c]));return s}function fp(e,i){var l=$w(e,i),s=Vc(e,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var d=l[c],m=s[c];if(d&&m)t:for(var y=0;y<m.length;++y){for(var w=m[y],_=0;_<d.length;++_)if(d[_].marker==w.marker)continue t;d.push(w)}else m&&(l[c]=m)}return l}function To(e,i,l){for(var s=[],c=0;c<e.length;++c){var d=e[c];if(d.ranges){s.push(l?Pn.prototype.deepCopy.call(d):d);continue}var m=d.changes,y=[];s.push({changes:y});for(var w=0;w<m.length;++w){var _=m[w],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var D in _)(N=D.match(/^spans_(\d+)$/))&&Tt(i,Number(N[1]))>-1&&(lt(y)[D]=_[D],delete _[D])}}return s}function ku(e,i,l,s){if(s){var c=e.anchor;if(l){var d=_t(i,c)<0;d!=_t(l,c)<0?(c=i,i=l):d!=_t(i,l)<0&&(i=l)}return new ce(c,i)}else return new ce(l||i,i)}function oa(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ke(e,new Pn([ku(e.sel.primary(),i,l,c)],0),s)}function hp(e,i,l){for(var s=[],c=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)s[d]=ku(e.sel.ranges[d],i[d],null,c);var m=Yn(e.cm,s,e.sel.primIndex);Ke(e,m,l)}function Cu(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ke(e,Yn(e.cm,c,e.sel.primIndex),s)}function dp(e,i,l,s){Ke(e,ni(i,l),s)}function Rw(e,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var d=0;d<c.length;d++)this.ranges[d]=new ce(Wt(e,c[d].anchor),Wt(e,c[d].head))},origin:l&&l.origin};return Se(e,"beforeSelectionChange",e,s),e.cm&&Se(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Yn(e.cm,s.ranges,s.ranges.length-1):i}function pp(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,sa(e,i,l)):Ke(e,i,l)}function Ke(e,i,l){sa(e,i,l),Ow(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function sa(e,i,l){(bn(e,"beforeSelectionChange")||e.cm&&bn(e.cm,"beforeSelectionChange"))&&(i=Rw(e,i,l));var s=l&&l.bias||(_t(i.primary().head,e.sel.primary().head)<0?-1:1);gp(e,mp(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ko(e.cm)}function gp(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,zn(e.cm)),Fe(e,"cursorActivity",e))}function vp(e){gp(e,mp(e,e.sel,null,!1))}function mp(e,i,l,s){for(var c,d=0;d<i.ranges.length;d++){var m=i.ranges[d],y=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],w=la(e,m.anchor,y&&y.anchor,l,s),_=m.head==m.anchor?w:la(e,m.head,y&&y.head,l,s);(c||w!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,d)),c[d]=new ce(w,_))}return c?Yn(e.cm,c,i.primIndex):i}function Eo(e,i,l,s,c){var d=Pt(e,i.line);if(d.markedSpans)for(var m=0;m<d.markedSpans.length;++m){var y=d.markedSpans[m],w=y.marker,_="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,N="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(N?y.to>=i.ch:y.to>i.ch))){if(c&&(Se(w,"beforeCursorEnter"),w.explicitlyCleared))if(d.markedSpans){--m;continue}else break;if(!w.atomic)continue;if(l){var D=w.find(s<0?1:-1),W=void 0;if((s<0?N:_)&&(D=yp(e,D,-s,D&&D.line==i.line?d:null)),D&&D.line==i.line&&(W=_t(D,l))&&(s<0?W<0:W>0))return Eo(e,D,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:N)&&(q=yp(e,q,s,q.line==i.line?d:null)),q?Eo(e,q,i,s,c):null}}return i}function la(e,i,l,s,c){var d=s||1,m=Eo(e,i,l,d,c)||!c&&Eo(e,i,l,d,!0)||Eo(e,i,l,-d,c)||!c&&Eo(e,i,l,-d,!0);return m||(e.cantEdit=!0,X(e.first,0))}function yp(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?Wt(e,X(i.line-1)):null:l>0&&i.ch==(s||Pt(e,i.line)).text.length?i.line<e.first+e.size-1?X(i.line+1,0):null:new X(i.line,i.ch+l)}function bp(e){e.setSelection(X(e.firstLine(),0),X(e.lastLine()),G)}function wp(e,i,l){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,d,m,y){c&&(s.from=Wt(e,c)),d&&(s.to=Wt(e,d)),m&&(s.text=m),y!==void 0&&(s.origin=y)}),Se(e,"beforeChange",e,s),e.cm&&Se(e.cm,"beforeChange",e.cm,s),s.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function Lo(e,i,l){if(e.cm){if(!e.cm.curOp)return Ie(e.cm,Lo)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((bn(e,"beforeChange")||e.cm&&bn(e.cm,"beforeChange"))&&(i=wp(e,i,!0),!i))){var s=fd&&!l&&Ob(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)xp(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else xp(e,i)}}function xp(e,i){if(!(i.text.length==1&&i.text[0]==""&&_t(i.from,i.to)==0)){var l=wu(e,i);cp(e,i,l,e.cm?e.cm.curOp.id:NaN),$s(e,i,l,Vc(e,i));var s=[];ii(e,function(c,d){!d&&Tt(s,c.history)==-1&&(Cp(c.history,i),s.push(c.history)),$s(c,i,null,Vc(c,i))})}}function aa(e,i,l){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!l)){for(var c=e.history,d,m=e.sel,y=i=="undo"?c.done:c.undone,w=i=="undo"?c.undone:c.done,_=0;_<y.length&&(d=y[_],!(l?d.ranges&&!d.equals(e.sel):!d.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(d=y.pop(),d.ranges){if(ia(d,w),l&&!d.equals(e.sel)){Ke(e,d,{clearRedo:!1});return}m=d}else if(s){y.push(d);return}else break;var N=[];ia(m,w),w.push({changes:N,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var D=bn(e,"beforeChange")||e.cm&&bn(e.cm,"beforeChange"),W=function(rt){var vt=d.changes[rt];if(vt.origin=i,D&&!wp(e,vt,!1))return y.length=0,{};N.push(Su(e,vt));var bt=rt?wu(e,vt):lt(y);$s(e,vt,bt,fp(e,vt)),!rt&&e.cm&&e.cm.scrollIntoView({from:vt.from,to:ri(vt)});var kt=[];ii(e,function(wt,Et){!Et&&Tt(kt,wt.history)==-1&&(Cp(wt.history,vt),kt.push(wt.history)),$s(wt,vt,null,fp(wt,vt))})},q=d.changes.length-1;q>=0;--q){var Z=W(q);if(Z)return Z.v}}}}function _p(e,i){if(i!=0&&(e.first+=i,e.sel=new Pn(ft(e.sel.ranges,function(c){return new ce(X(c.anchor.line+i,c.anchor.ch),X(c.head.line+i,c.head.ch))}),e.sel.primIndex),e.cm)){on(e.cm,e.first,e.first-i,i);for(var l=e.cm.display,s=l.viewFrom;s<l.viewTo;s++)ti(e.cm,s,"gutter")}}function $s(e,i,l,s){if(e.cm&&!e.cm.curOp)return Ie(e.cm,$s)(e,i,l,s);if(i.to.line<e.first){_p(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var c=i.text.length-1-(e.first-i.from.line);_p(e,c),i={from:X(e.first,0),to:X(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var d=e.lastLine();i.to.line>d&&(i={from:i.from,to:X(d,Pt(e,d).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Cr(e,i.from,i.to),l||(l=wu(e,i)),e.cm?zw(e.cm,i,s):_u(e,i,s),sa(e,l,G),e.cantEdit&&la(e,X(e.firstLine(),0))&&(e.cantEdit=!1)}}function zw(e,i,l){var s=e.doc,c=e.display,d=i.from,m=i.to,y=!1,w=d.line;e.options.lineWrapping||(w=C(Kn(Pt(s,d.line))),s.iter(w,m.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&zn(e),_u(s,i,l,Hd(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var Z=jl(q);Z>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=Z,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),Tb(s,d.line),Ps(e,400);var _=i.text.length-(m.line-d.line)-1;i.full?on(e):d.line==m.line&&i.text.length==1&&!op(e.doc,i)?ti(e,d.line,"text"):on(e,d.line,m.line+1,_);var N=bn(e,"changes"),D=bn(e,"change");if(D||N){var W={from:d,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&Fe(e,"change",e,W),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(W)}e.display.selForContextMenu=null}function Ao(e,i,l,s,c){var d;s||(s=l),_t(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof i=="string"&&(i=e.splitLines(i)),Lo(e,{from:l,to:s,text:i,origin:c})}function Sp(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function kp(e,i,l,s){for(var c=0;c<e.length;++c){var d=e[c],m=!0;if(d.ranges){d.copied||(d=e[c]=d.deepCopy(),d.copied=!0);for(var y=0;y<d.ranges.length;y++)Sp(d.ranges[y].anchor,i,l,s),Sp(d.ranges[y].head,i,l,s);continue}for(var w=0;w<d.changes.length;++w){var _=d.changes[w];if(l<_.from.line)_.from=X(_.from.line+s,_.from.ch),_.to=X(_.to.line+s,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(e.splice(0,c+1),c=0)}}function Cp(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;kp(e.done,l,s,c),kp(e.undone,l,s,c)}function Rs(e,i,l,s){var c=i,d=i;return typeof i=="number"?d=Pt(e,nd(e,i)):c=C(i),c==null?null:(s(d,c)&&e.cm&&ti(e.cm,c,l),d)}function zs(e){this.lines=e,this.parent=null;for(var i=0,l=0;l<e.length;++l)e[l].parent=this,i+=e[l].height;this.height=i}zs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var l=e,s=e+i;l<s;++l){var c=this.lines[l];this.height-=c.height,Fb(c),Fe(c,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,l){this.height+=l,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var s=0;s<i.length;++s)i[s].parent=this},iterN:function(e,i,l){for(var s=e+i;e<s;++e)if(l(this.lines[e]))return!0}};function Fs(e){this.children=e;for(var i=0,l=0,s=0;s<e.length;++s){var c=e[s];i+=c.chunkSize(),l+=c.height,c.parent=this}this.size=i,this.height=l,this.parent=null}Fs.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var l=0;l<this.children.length;++l){var s=this.children[l],c=s.chunkSize();if(e<c){var d=Math.min(i,c-e),m=s.height;if(s.removeInner(e,d),this.height-=m-s.height,c==d&&(this.children.splice(l--,1),s.parent=null),(i-=d)==0)break;e=0}else e-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof zs))){var y=[];this.collapse(y),this.children=[new zs(y)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,l){this.size+=i.length,this.height+=l;for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<=d){if(c.insertInner(e,i,l),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var w=new zs(c.lines.slice(y,y+=25));c.height-=w.height,this.children.splice(++s,0,w),w.parent=this}c.lines=c.lines.slice(0,m),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),l=new Fs(i);if(e.parent){e.size-=l.size,e.height-=l.height;var c=Tt(e.parent.children,e);e.parent.children.splice(c+1,0,l)}else{var s=new Fs(e.children);s.parent=e,e.children=[s,l],e=s}l.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,l){for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<d){var m=Math.min(i,d-e);if(c.iterN(e,m,l))return!0;if((i-=m)==0)break;e=0}else e-=d}}};var Is=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};Is.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,l=this.line,s=C(l);if(!(s==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(l.widgets=null);var d=Cs(this);Nn(l,Math.max(0,l.height-d)),e&&(wn(e,function(){Tp(e,l,-d),ti(e,s,"widget")}),Fe(e,"lineWidgetCleared",e,this,s))}},Is.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=Cs(this)-i;c&&(Qr(this.doc,s)||Nn(s,s.height+c),l&&wn(l,function(){l.curOp.forceUpdate=!0,Tp(l,s,c),Fe(l,"lineWidgetChanged",l,e,C(s))}))},Wn(Is);function Tp(e,i,l){Er(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&pu(e,l)}function Fw(e,i,l,s){var c=new Is(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),Rs(e,i,"widget",function(m){var y=m.widgets||(m.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=m,d&&!Qr(e,m)){var w=Er(m)<e.scrollTop;Nn(m,m.height+Cs(c)),w&&pu(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Fe(d,"lineWidgetAdded",d,c,typeof i=="number"?i:C(i)),c}var Ep=0,oi=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Ep};oi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ri(e),bn(this,"clear")){var l=this.find();l&&Fe(this,"clear",l.from,l.to)}for(var s=null,c=null,d=0;d<this.lines.length;++d){var m=this.lines[d],y=_s(m.markedSpans,this);e&&!this.collapsed?ti(e,C(m),"text"):e&&(y.to!=null&&(c=C(m)),y.from!=null&&(s=C(m))),m.markedSpans=Ab(m.markedSpans,y),y.from==null&&this.collapsed&&!Qr(this.doc,m)&&e&&Nn(m,xo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=Kn(this.lines[w]),N=jl(_);N>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&on(e,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&vp(e.doc)),e&&Fe(e,"markerCleared",e,this,s,c),i&&zi(e),this.parent&&this.parent.clear()}},oi.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var l,s,c=0;c<this.lines.length;++c){var d=this.lines[c],m=_s(d.markedSpans,this);if(m.from!=null&&(l=X(i?d:C(d),m.from),e==-1))return l;if(m.to!=null&&(s=X(i?d:C(d),m.to),e==1))return s}return l&&{from:l,to:s}},oi.prototype.changed=function(){var e=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||wn(s,function(){var c=i.line,d=C(i.line),m=eu(s,d);if(m&&(Od(m),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Qr(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var w=Cs(l)-y;w&&Nn(c,c.height+w)}Fe(s,"markerChanged",s,e)})},oi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Tt(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},oi.prototype.detachLine=function(e){if(this.lines.splice(Tt(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Wn(oi);function Mo(e,i,l,s,c){if(s&&s.shared)return Iw(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return Ie(e.cm,Mo)(e,i,l,s,c);var d=new oi(e,c),m=_t(i,l);if(s&&nt(s,d,!1),m>0||m==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=I("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(md(e,i.line,i,l,d)||i.line!=l.line&&md(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lb()}d.addToHistory&&cp(e,{from:i,to:l,origin:"markText"},e.sel,NaN);var y=i.line,w=e.cm,_;if(e.iter(y,l.line+1,function(D){w&&d.collapsed&&!w.options.lineWrapping&&Kn(D)==w.display.maxLine&&(_=!0),d.collapsed&&y!=i.line&&Nn(D,0),Mb(D,new Hl(d,y==i.line?i.ch:null,y==l.line?l.ch:null),e.cm&&e.cm.curOp),++y}),d.collapsed&&e.iter(i.line,l.line+1,function(D){Qr(e,D)&&Nn(D,0)}),d.clearOnEnter&&Rt(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(Eb(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++Ep,d.atomic=!0),w){if(_&&(w.curOp.updateMaxLine=!0),d.collapsed)on(w,i.line,l.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var N=i.line;N<=l.line;N++)ti(w,N,"text");d.atomic&&vp(w.doc),Fe(w,"markerAdded",w,d)}return d}var qs=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};qs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Fe(this,"clear")}},qs.prototype.find=function(e,i){return this.primary.find(e,i)},Wn(qs);function Iw(e,i,l,s,c){s=nt(s),s.shared=!1;var d=[Mo(e,i,l,s,c)],m=d[0],y=s.widgetNode;return ii(e,function(w){y&&(s.widgetNode=y.cloneNode(!0)),d.push(Mo(w,Wt(w,i),Wt(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;m=lt(d)}),new qs(d,m)}function Lp(e){return e.findMarks(X(e.first,0),e.clipPos(X(e.lastLine())),function(i){return i.parent})}function qw(e,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),d=e.clipPos(c.from),m=e.clipPos(c.to);if(_t(d,m)){var y=Mo(e,d,m,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function Hw(e){for(var i=function(s){var c=e[s],d=[c.primary.doc];ii(c.primary.doc,function(w){return d.push(w)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];Tt(d,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},l=0;l<e.length;l++)i(l)}var Bw=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),Fs.call(this,[new zs([new yo("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=X(l,0);this.sel=ni(d),this.history=new ra(null),this.id=++Bw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_u(this,{from:d,to:d,text:e}),Ke(this,ni(d),G)};sn.prototype=Dt(Fs.prototype,{constructor:sn,iter:function(e,i,l){l?this.iterN(e-this.first,i-e,l):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var l=0,s=0;s<i.length;++s)l+=i[s].height;this.insertInner(e-this.first,i,l)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=ws(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:qe(function(e){var i=X(this.first,0),l=this.first+this.size-1;Lo(this,{from:i,to:X(l,Pt(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ls(this.cm,0,0),Ke(this,ni(i),G)}),replaceRange:function(e,i,l,s){i=Wt(this,i),l=l?Wt(this,l):i,Ao(this,e,i,l,s)},getRange:function(e,i,l){var s=Cr(this,Wt(this,e),Wt(this,i));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(tt(this,e))return Pt(this,e)},getLineNumber:function(e){return C(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Pt(this,e)),Kn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Wt(this,e)},getCursor:function(e){var i=this.sel.primary(),l;return e==null||e=="head"?l=i.head:e=="anchor"?l=i.anchor:e=="end"||e=="to"||e===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qe(function(e,i,l){dp(this,Wt(this,typeof e=="number"?X(e,i||0):e),null,l)}),setSelection:qe(function(e,i,l){dp(this,Wt(this,e),Wt(this,i||e),l)}),extendSelection:qe(function(e,i,l){oa(this,Wt(this,e),i&&Wt(this,i),l)}),extendSelections:qe(function(e,i){hp(this,rd(this,e),i)}),extendSelectionsBy:qe(function(e,i){var l=ft(this.sel.ranges,e);hp(this,rd(this,l),i)}),setSelections:qe(function(e,i,l){if(e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new ce(Wt(this,e[c].anchor),Wt(this,e[c].head||e[c].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ke(this,Yn(this.cm,s,i),l)}}),addSelection:qe(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new ce(Wt(this,e),Wt(this,i||e))),Ke(this,Yn(this.cm,s,s.length-1),l)}),getSelection:function(e){for(var i=this.sel.ranges,l,s=0;s<i.length;s++){var c=Cr(this,i[s].from(),i[s].to());l=l?l.concat(c):c}return e===!1?l:l.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=Cr(this,l[s].from(),l[s].to());e!==!1&&(c=c.join(e||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(e,i,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=e;this.replaceSelections(s,i,l||"+input")},replaceSelections:qe(function(e,i,l){for(var s=[],c=this.sel,d=0;d<c.ranges.length;d++){var m=c.ranges[d];s[d]={from:m.from(),to:m.to(),text:this.splitLines(e[d]),origin:l}}for(var y=i&&i!="end"&&Aw(this,s,i),w=s.length-1;w>=0;w--)Lo(this,s[w]);y?pp(this,y):this.cm&&ko(this.cm)}),undo:qe(function(){aa(this,"undo")}),redo:qe(function(){aa(this,"redo")}),undoSelection:qe(function(){aa(this,"undo",!0)}),redoSelection:qe(function(){aa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,l=0,s=0;s<e.done.length;s++)e.done[s].ranges||++i;for(var c=0;c<e.undone.length;c++)e.undone[c].ranges||++l;return{undo:i,redo:l}},clearHistory:function(){var e=this;this.history=new ra(this.history),ii(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:To(this.history.done),undone:To(this.history.undone)}},setHistory:function(e){var i=this.history=new ra(this.history);i.done=To(e.done.slice(0),null,!0),i.undone=To(e.undone.slice(0),null,!0)},setGutterMarker:qe(function(e,i,l){return Rs(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&ie(c)&&(s.gutterMarkers=null),!0})}),clearGutter:qe(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&Rs(i,l,"gutter",function(){return l.gutterMarkers[e]=null,ie(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!tt(this,e)||(i=e,e=Pt(this,e),!e))return null}else if(i=C(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:qe(function(e,i,l){return Rs(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=l;else{if(pt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:qe(function(e,i,l){return Rs(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",d=s[c];if(d)if(l==null)s[c]=null;else{var m=d.match(pt(l));if(!m)return!1;var y=m.index+m[0].length;s[c]=d.slice(0,m.index)+(!m.index||y==d.length?"":" ")+d.slice(y)||null}else return!1;return!0})}),addLineWidget:qe(function(e,i,l){return Fw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return Mo(this,Wt(this,e),Wt(this,i),l,l&&l.type||"range")},setBookmark:function(e,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=Wt(this,e),Mo(this,e,e,l,"bookmark")},findMarksAt:function(e){e=Wt(this,e);var i=[],l=Pt(this,e.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[s];(c.from==null||c.from<=e.ch)&&(c.to==null||c.to>=e.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(e,i,l){e=Wt(this,e),i=Wt(this,i);var s=[],c=e.line;return this.iter(e.line,i.line+1,function(d){var m=d.markedSpans;if(m)for(var y=0;y<m.length;y++){var w=m[y];!(w.to!=null&&c==e.line&&e.ch>=w.to||w.from==null&&c!=e.line||w.from!=null&&c==i.line&&w.from>=i.ch)&&(!l||l(w.marker))&&s.push(w.marker.parent||w.marker)}++c}),s},getAllMarks:function(){var e=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&e.push(l[s].marker)}),e},posFromIndex:function(e){var i,l=this.first,s=this.lineSeparator().length;return this.iter(function(c){var d=c.text.length+s;if(d>e)return i=e,!0;e-=d,++l}),Wt(this,X(l,i))},indexFromPos:function(e){e=Wt(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,e.line,function(s){i+=s.text.length+l}),i},copy:function(e){var i=new sn(ws(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,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,l=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<l&&(l=e.to);var s=new sn(ws(this,i,l),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:e.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],qw(s,Lp(this)),s},unlinkDoc:function(e){if(e instanceof ye&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),Hw(Lp(this));break}}if(e.history==this.history){var s=[e.id];ii(e,function(c){return s.push(c.id)},!0),e.history=new ra(null),e.history.done=To(this.history.done,s),e.history.undone=To(this.history.undone,s)}},iterLinkedDocs:function(e){ii(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Fn(e)},lineSeparator:function(){return this.lineSep||`
17
+ `},setDirection:qe(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&Mw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var Ap=0;function Ww(e){var i=this;if(Mp(i),!(ke(i,e)||Lr(i.display,e))){Ve(e),p&&(Ap=+new Date);var l=Pi(i,e,!0),s=e.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,d=Array(c),m=0,y=function(){++m==c&&Ie(i,function(){l=Wt(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(d.filter(function(Z){return Z!=null}).join(i.doc.lineSeparator())),origin:"paste"};Lo(i.doc,q),pp(i.doc,ni(Wt(i.doc,l),Wt(i.doc,ri(q))))})()},w=function(q,Z){if(i.options.allowDropFileTypes&&Tt(i.options.allowDropFileTypes,q.type)==-1){y();return}var rt=new FileReader;rt.onerror=function(){return y()},rt.onload=function(){var vt=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(vt)){y();return}d[Z]=vt,y()},rt.readAsText(q)},_=0;_<s.length;_++)w(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),sa(i.doc,ni(l,l)),D)for(var W=0;W<D.length;++W)Ao(i.doc,"",D[W].anchor,D[W].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function Uw(e,i){if(p&&(!e.state.draggingText||+new Date-Ap<100)){Xr(i);return}if(!(ke(e,i)||Lr(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var l=k("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",P&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),P&&l.parentNode.removeChild(l)}}function jw(e,i){var l=Pi(e,i);if(l){var s=document.createDocumentFragment();cu(e,l,s),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),z(e.display.dragCursor,s)}}function Mp(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Np(e){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var d=0;d<l.length;d++)e(l[d])})}}var Pp=!1;function Gw(){Pp||(Vw(),Pp=!0)}function Vw(){var e;Rt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Np(Kw)},100))}),Rt(window,"blur",function(){return Np(So)})}function Kw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var si={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Hs=0;Hs<10;Hs++)si[Hs+48]=si[Hs+96]=String(Hs);for(var ca=65;ca<=90;ca++)si[ca]=String.fromCharCode(ca);for(var Bs=1;Bs<=12;Bs++)si[Bs+111]=si[Bs+63235]="F"+Bs;var Mr={};Mr.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"},Mr.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"},Mr.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"},Mr.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"]},Mr.default=B?Mr.macDefault:Mr.pcDefault;function Xw(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var l,s,c,d,m=0;m<i.length-1;m++){var y=i[m];if(/^(cmd|meta|m)$/i.test(y))d=!0;else if(/^a(lt)?$/i.test(y))l=!0;else if(/^(c|ctrl|control)$/i.test(y))s=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return l&&(e="Alt-"+e),s&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),c&&(e="Shift-"+e),e}function Yw(e){var i={};for(var l in e)if(e.hasOwnProperty(l)){var s=e[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete e[l];continue}for(var c=ft(l.split(" "),Xw),d=0;d<c.length;d++){var m=void 0,y=void 0;d==c.length-1?(y=c.join(" "),m=s):(y=c.slice(0,d+1).join(" "),m="...");var w=i[y];if(!w)i[y]=m;else if(w!=m)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var _ in i)e[_]=i[_];return e}function No(e,i,l,s){i=ua(i);var c=i.call?i.call(e,s):i[e];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return No(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var m=No(e,i.fallthrough[d],l,s);if(m)return m}}}function Op(e){var i=typeof e=="string"?e:si[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Dp(e,i,l){var s=e;return i.altKey&&s!="Alt"&&(e="Alt-"+e),(et?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(et?i.ctrlKey:i.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!l&&i.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function $p(e,i){if(P&&e.keyCode==34&&e.char)return!1;var l=si[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),Dp(l,e,i))}function ua(e){return typeof e=="string"?Mr[e]:e}function Po(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=i(l[c]);s.length&&_t(d.from,lt(s).to)<=0;){var m=s.pop();if(_t(m.from,d.from)<0){d.from=m.from;break}}s.push(d)}wn(e,function(){for(var y=s.length-1;y>=0;y--)Ao(e.doc,"",s[y].from,s[y].to,"+delete");ko(e)})}function Tu(e,i,l){var s=en(e.text,i+l,l);return s<0||s>e.text.length?null:s}function Eu(e,i,l){var s=Tu(e,i.ch,l);return s==null?null:new X(i.line,s,l<0?"after":"before")}function Lu(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var d=Kt(l,i.doc.direction);if(d){var m=c<0?lt(d):d[0],y=c<0==(m.level==1),w=y?"after":"before",_;if(m.level>0||i.doc.direction=="rtl"){var N=wo(i,l);_=c<0?l.text.length-1:0;var D=fr(i,N,_).top;_=Mn(function(W){return fr(i,N,W).top==D},c<0==(m.level==1)?m.from:m.to-1,_),w=="before"&&(_=Tu(l,_,1))}else _=c<0?m.to:m.from;return new X(s,_,w)}}return new X(s,c<0?l.text.length:0,c<0?"before":"after")}function Zw(e,i,l,s){var c=Kt(i,e.doc.direction);if(!c)return Eu(i,l,s);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var d=Le(c,l.ch,l.sticky),m=c[d];if(e.doc.direction=="ltr"&&m.level%2==0&&(s>0?m.to>l.ch:m.from<l.ch))return Eu(i,l,s);var y=function(bt,kt){return Tu(i,bt instanceof X?bt.ch:bt,kt)},w,_=function(bt){return e.options.lineWrapping?(w=w||wo(e,i),qd(e,i,w,bt)):{begin:0,end:i.text.length}},N=_(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||m.level==1){var D=m.level==1==s<0,W=y(l,D?1:-1);if(W!=null&&(D?W<=m.to&&W<=N.end:W>=m.from&&W>=N.begin)){var q=D?"before":"after";return new X(l.line,W,q)}}var Z=function(bt,kt,wt){for(var Et=function(ge,He){return He?new X(l.line,y(ge,1),"before"):new X(l.line,ge,"after")};bt>=0&&bt<c.length;bt+=kt){var zt=c[bt],Ot=kt>0==(zt.level!=1),Vt=Ot?wt.begin:y(wt.end,-1);if(zt.from<=Vt&&Vt<zt.to||(Vt=Ot?zt.from:y(zt.to,-1),wt.begin<=Vt&&Vt<wt.end))return Et(Vt,Ot)}},rt=Z(d+s,s,N);if(rt)return rt;var vt=s>0?N.end:y(N.begin,-1);return vt!=null&&!(s>0&&vt==i.text.length)&&(rt=Z(s>0?0:c.length-1,s,_(vt)),rt)?rt:null}var Ws={selectAll:bp,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Po(e,function(i){if(i.empty()){var l=Pt(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:X(i.head.line+1,0)}:{from:i.head,to:X(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return Po(e,function(i){return{from:X(i.from().line,0),to:Wt(e.doc,X(i.to().line+1,0))}})},delLineLeft:function(e){return Po(e,function(i){return{from:X(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return Po(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(e){return Po(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div");return{from:i.from(),to:s}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(X(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(X(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return Rp(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return zp(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return Jw(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div")},it)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:l},"div")},it)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return s.ch<e.getLine(s.line).search(/\S/)?zp(e,i.head):s},it)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],l=e.listSelections(),s=e.options.tabSize,c=0;c<l.length;c++){var d=l[c].from(),m=ot(e.getLine(d.line),d.ch,s);i.push(mt(s-m%s))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return wn(e,function(){for(var i=e.listSelections(),l=[],s=0;s<i.length;s++)if(i[s].empty()){var c=i[s].head,d=Pt(e.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new X(c.line,c.ch-1)),c.ch>0)c=new X(c.line,c.ch+1),e.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),X(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var m=Pt(e.doc,c.line-1).text;m&&(c=new X(c.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+m.charAt(m.length-1),X(c.line-1,m.length-1),c,"+transpose"))}}l.push(new ce(c,c))}e.setSelections(l)})},newlineAndIndent:function(e){return wn(e,function(){for(var i=e.listSelections(),l=i.length-1;l>=0;l--)e.replaceRange(e.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=e.listSelections();for(var s=0;s<i.length;s++)e.indentLine(i[s].from().line,null,!0);ko(e)})},openLine:function(e){return e.replaceSelection(`
18
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Rp(e,i){var l=Pt(e.doc,i),s=Kn(l);return s!=l&&(i=C(s)),Lu(!0,e,s,i,1)}function Jw(e,i){var l=Pt(e.doc,i),s=$b(l);return s!=l&&(i=C(s)),Lu(!0,e,l,i,-1)}function zp(e,i){var l=Rp(e,i.line),s=Pt(e.doc,l.line),c=Kt(s,e.doc.direction);if(!c||c[0].level==0){var d=Math.max(l.ch,s.text.search(/\S/)),m=i.line==l.line&&i.ch<=d&&i.ch;return X(l.line,m?0:d,l.sticky)}return l}function fa(e,i,l){if(typeof i=="string"&&(i=Ws[i],!i))return!1;e.display.input.ensurePolled();var s=e.display.shift,c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l&&(e.display.shift=!1),c=i(e)!=F}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function Qw(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=No(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&No(i,e.options.extraKeys,l,e)||No(i,e.options.keyMap,l,e)}var tx=new Mt;function Us(e,i,l,s){var c=e.state.keySeq;if(c){if(Op(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:tx.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),Fp(e,c+" "+i,l,s))return!0}return Fp(e,i,l,s)}function Fp(e,i,l,s){var c=Qw(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Fe(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ve(l),uu(e)),!!c}function Ip(e,i){var l=$p(i,!0);return l?i.shiftKey&&!e.state.keySeq?Us(e,"Shift-"+l,i,function(s){return fa(e,s,!0)})||Us(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return fa(e,s)}):Us(e,l,i,function(s){return fa(e,s)}):!1}function ex(e,i,l){return Us(e,"'"+l+"'",i,function(s){return fa(e,s,!0)})}var Au=null;function qp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=yt(Xt(i)),!ke(i,e))){p&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=Ip(i,e);P&&(Au=s?l:null,!s&&l==88&&!Il&&(B?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!B&&!s&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&nx(i)}}function nx(e){var i=e.display.lineDiv;Lt(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(gt(i,"CodeMirror-crosshair"),Ge(document,"keyup",l),Ge(document,"mouseover",l))}Rt(document,"keyup",l),Rt(document,"mouseover",l)}function Hp(e){e.keyCode==16&&(this.doc.sel.shift=!1),ke(this,e)}function Bp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(Lr(i.display,e)||ke(i,e)||e.ctrlKey&&!e.altKey||B&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(P&&l==Au){Au=null,Ve(e);return}if(!(P&&(!e.which||e.which<10)&&Ip(i,e))){var c=String.fromCharCode(s??l);c!="\b"&&(ex(i,e,c)||i.display.input.onKeyPress(e))}}}var rx=400,Mu=function(e,i,l){this.time=e,this.pos=i,this.button=l};Mu.prototype.compare=function(e,i,l){return this.time+rx>e&&_t(i,this.pos)==0&&l==this.button};var js,Gs;function ix(e,i){var l=+new Date;return Gs&&Gs.compare(l,e,i)?(js=Gs=null,"triple"):js&&js.compare(l,e,i)?(Gs=new Mu(l,e,i),js=null,"double"):(js=new Mu(l,e,i),Gs=null,"single")}function Wp(e){var i=this,l=i.display;if(!(ke(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,Lr(l,e)){v||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!Nu(i,e)){var s=Pi(i,e),c=Un(e),d=s?ix(s,c):"single";Ct(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&ox(i,c,s,d,e))&&(c==1?s?lx(i,s,d,e):ms(e)==l.scroller&&Ve(e):c==2?(s&&oa(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(st?i.display.input.onContextMenu(e):fu(i)))}}}function ox(e,i,l,s,c){var d="Click";return s=="double"?d="Double"+d:s=="triple"&&(d="Triple"+d),d=(i==1?"Left":i==2?"Middle":"Right")+d,Us(e,Dp(d,c),c,function(m){if(typeof m=="string"&&(m=Ws[m]),!m)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=m(e,l)!=F}finally{e.state.suppressEdits=!1}return y})}function sx(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var d=K?l.shiftKey&&l.metaKey:l.altKey;c.unit=d?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=B?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?l.altKey:l.ctrlKey)),c}function lx(e,i,l,s){p?setTimeout(j(Ud,e),0):e.curOp.focus=yt(Xt(e));var c=sx(e,l,s),d=e.doc.sel,m;e.options.dragDrop&&Wc&&!e.isReadOnly()&&l=="single"&&(m=d.contains(i))>-1&&(_t((m=d.ranges[m]).from(),i)<0||i.xRel>0)&&(_t(m.to(),i)>0||i.xRel<0)?ax(e,s,i,c):cx(e,s,i,c)}function ax(e,i,l,s){var c=e.display,d=!1,m=Ie(e,function(_){v&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:fu(e)),Ge(c.wrapper.ownerDocument,"mouseup",m),Ge(c.wrapper.ownerDocument,"mousemove",y),Ge(c.scroller,"dragstart",w),Ge(c.scroller,"drop",m),d||(Ve(_),s.addNew||oa(e.doc,l,null,null,s.extend),v&&!A||p&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){d=d||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},w=function(){return d=!0};v&&(c.scroller.draggable=!0),e.state.draggingText=m,m.copy=!s.moveOnDrag,Rt(c.wrapper.ownerDocument,"mouseup",m),Rt(c.wrapper.ownerDocument,"mousemove",y),Rt(c.scroller,"dragstart",w),Rt(c.scroller,"drop",m),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Up(e,i,l){if(l=="char")return new ce(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new ce(X(i.line,0),Wt(e.doc,X(i.line+1,0)));var s=l(e,i);return new ce(s.from,s.to)}function cx(e,i,l,s){p&&fu(e);var c=e.display,d=e.doc;Ve(i);var m,y,w=d.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=d.sel.contains(l),y>-1?m=_[y]:m=new ce(l,l)):(m=d.sel.primary(),y=d.sel.primIndex),s.unit=="rectangle")s.addNew||(m=new ce(l,l)),l=Pi(e,i,!0,!0),y=-1;else{var N=Up(e,l,s.unit);s.extend?m=ku(m,N.anchor,N.head,s.extend):m=N}s.addNew?y==-1?(y=_.length,Ke(d,Yn(e,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ke(d,Yn(e,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=d.sel):Cu(d,y,m,Q):(y=0,Ke(d,new Pn([m],0),Q),w=d.sel);var D=l;function W(wt){if(_t(D,wt)!=0)if(D=wt,s.unit=="rectangle"){for(var Et=[],zt=e.options.tabSize,Ot=ot(Pt(d,l.line).text,l.ch,zt),Vt=ot(Pt(d,wt.line).text,wt.ch,zt),ge=Math.min(Ot,Vt),He=Math.max(Ot,Vt),xe=Math.min(l.line,wt.line),xn=Math.min(e.lastLine(),Math.max(l.line,wt.line));xe<=xn;xe++){var ln=Pt(d,xe).text,Me=at(ln,ge,zt);ge==He?Et.push(new ce(X(xe,Me),X(xe,Me))):ln.length>Me&&Et.push(new ce(X(xe,Me),X(xe,at(ln,He,zt))))}Et.length||Et.push(new ce(l,l)),Ke(d,Yn(e,w.ranges.slice(0,y).concat(Et),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(wt)}else{var an=m,We=Up(e,wt,s.unit),Oe=an.anchor,Ne;_t(We.anchor,Oe)>0?(Ne=We.head,Oe=mo(an.from(),We.anchor)):(Ne=We.anchor,Oe=rn(an.to(),We.head));var Te=w.ranges.slice(0);Te[y]=ux(e,new ce(Wt(d,Oe),Ne)),Ke(d,Yn(e,Te,y),Q)}}var q=c.wrapper.getBoundingClientRect(),Z=0;function rt(wt){var Et=++Z,zt=Pi(e,wt,!0,s.unit=="rectangle");if(zt)if(_t(zt,D)!=0){e.curOp.focus=yt(Xt(e)),W(zt);var Ot=Ql(c,d);(zt.line>=Ot.to||zt.line<Ot.from)&&setTimeout(Ie(e,function(){Z==Et&&rt(wt)}),150)}else{var Vt=wt.clientY<q.top?-20:wt.clientY>q.bottom?20:0;Vt&&setTimeout(Ie(e,function(){Z==Et&&(c.scroller.scrollTop+=Vt,rt(wt))}),50)}}function vt(wt){e.state.selectingText=!1,Z=1/0,wt&&(Ve(wt),c.input.focus()),Ge(c.wrapper.ownerDocument,"mousemove",bt),Ge(c.wrapper.ownerDocument,"mouseup",kt),d.history.lastSelOrigin=null}var bt=Ie(e,function(wt){wt.buttons===0||!Un(wt)?vt(wt):rt(wt)}),kt=Ie(e,vt);e.state.selectingText=kt,Rt(c.wrapper.ownerDocument,"mousemove",bt),Rt(c.wrapper.ownerDocument,"mouseup",kt)}function ux(e,i){var l=i.anchor,s=i.head,c=Pt(e.doc,l.line);if(_t(l,s)==0&&l.sticky==s.sticky)return i;var d=Kt(c);if(!d)return i;var m=Le(d,l.ch,l.sticky),y=d[m];if(y.from!=l.ch&&y.to!=l.ch)return i;var w=m+(y.from==l.ch==(y.level!=1)?0:1);if(w==0||w==d.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=Le(d,s.ch,s.sticky),D=N-m||(s.ch-l.ch)*(y.level==1?-1:1);N==w-1||N==w?_=D<0:_=D>0}var W=d[w+(_?-1:0)],q=_==(W.level==1),Z=q?W.from:W.to,rt=q?"after":"before";return l.ch==Z&&l.sticky==rt?i:new ce(new X(l.line,Z,rt),s)}function jp(e,i,l,s){var c,d;if(i.touches)c=i.touches[0].clientX,d=i.touches[0].clientY;else try{c=i.clientX,d=i.clientY}catch{return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;s&&Ve(i);var m=e.display,y=m.lineDiv.getBoundingClientRect();if(d>y.bottom||!bn(e,l))return nn(i);d-=y.top-m.viewOffset;for(var w=0;w<e.display.gutterSpecs.length;++w){var _=m.gutters.childNodes[w];if(_&&_.getBoundingClientRect().right>=c){var N=O(e.doc,d),D=e.display.gutterSpecs[w];return Se(e,l,e,N,D.className,i),nn(i)}}}function Nu(e,i){return jp(e,i,"gutterClick",!0)}function Gp(e,i){Lr(e.display,i)||fx(e,i)||ke(e,i,"contextmenu")||st||e.display.input.onContextMenu(i)}function fx(e,i){return bn(e,"gutterContextMenu")?jp(e,i,"gutterContextMenu",!1):!1}function Vp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ts(e)}var Oo={toString:function(){return"CodeMirror.Init"}},Kp={},ha={};function hx(e){var i=e.optionHandlers;function l(s,c,d,m){e.defaults[s]=c,d&&(i[s]=m?function(y,w,_){_!=Oo&&d(y,w,_)}:d)}e.defineOption=l,e.Init=Oo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,xu(s)},!0),l("indentUnit",2,xu,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){Ds(s),Ts(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],m=s.doc.first;s.doc.iter(function(w){for(var _=0;;){var N=w.text.indexOf(c,_);if(N==-1)break;_=N+c.length,d.push(X(m,N))}m++});for(var y=d.length-1;y>=0;y--)Ao(s.doc,c,d[y],X(d[y].line,d[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,d){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),d!=Oo&&s.refresh()}),l("specialCharPlaceholder",Hb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),l("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),l("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),l("rtlMoveVisually",!ht),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){Vp(s),Os(s)},!0),l("keyMap","default",function(s,c,d){var m=ua(c),y=d!=Oo&&ua(d);y&&y.detach&&y.detach(s,m),m.attach&&m.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,px,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=bu(c,s.options.lineNumbers),Os(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?lu(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return Co(s)},!0),l("scrollbarStyle","native",function(s){Yd(s),Co(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,c){s.display.gutterSpecs=bu(s.options.gutters,c),Os(s)},!0),l("firstLineNumber",1,Os,!0),l("lineNumberFormatter",function(s){return s},Os,!0),l("showCursorWhenSelecting",!1,Es,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(So(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),l("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),l("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),l("dragDrop",!0,dx),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Es,!0),l("singleCursorHeightPerLine",!0,Es,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,Ds,!0),l("addModeClass",!1,Ds,!0),l("pollInterval",100),l("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),l("historyEventDelay",1250),l("viewportMargin",10,function(s){return s.refresh()},!0),l("maxHighlightLength",1e4,Ds,!0),l("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),l("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),l("autofocus",null),l("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),l("phrases",null)}function dx(e,i,l){var s=l&&l!=Oo;if(!i!=!s){var c=e.display.dragFunctions,d=i?Rt:Ge;d(e.display.scroller,"dragstart",c.start),d(e.display.scroller,"dragenter",c.enter),d(e.display.scroller,"dragover",c.over),d(e.display.scroller,"dragleave",c.leave),d(e.display.scroller,"drop",c.drop)}}function px(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(gt(e.display.wrapper,"CodeMirror-wrap"),Zc(e)),au(e),on(e),Ts(e),setTimeout(function(){return Co(e)},100)}function ye(e,i){var l=this;if(!(this instanceof ye))return new ye(e,i);this.options=i=i?nt(i):{},nt(Kp,i,!1);var s=i.value;typeof s=="string"?s=new sn(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new ye.inputStyles[i.inputStyle](this),d=this.display=new Ew(e,s,c,i);d.wrapper.CodeMirror=this,Vp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yd(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 Mt,keySeq:null,specialChars:null},i.autofocus&&!E&&d.input.focus(),p&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),gx(this),Gw(),Ri(this),this.curOp.forceUpdate=!0,sp(this,s),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&hu(l)},20):So(this);for(var m in ha)ha.hasOwnProperty(m)&&ha[m](this,i[m],Oo);Qd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<Pu.length;++y)Pu[y](this);zi(this),v&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}ye.defaults=Kp,ye.optionHandlers=ha;function gx(e){var i=e.display;Rt(i.scroller,"mousedown",Ie(e,Wp)),p&&g<11?Rt(i.scroller,"dblclick",Ie(e,function(w){if(!ke(e,w)){var _=Pi(e,w);if(!(!_||Nu(e,w)||Lr(e.display,w))){Ve(w);var N=e.findWordAt(_);oa(e.doc,N.anchor,N.head)}}})):Rt(i.scroller,"dblclick",function(w){return ke(e,w)||Ve(w)}),Rt(i.scroller,"contextmenu",function(w){return Gp(e,w)}),Rt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||Gp(e,w)});var l,s={end:0};function c(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function d(w){if(w.touches.length!=1)return!1;var _=w.touches[0];return _.radiusX<=1&&_.radiusY<=1}function m(w,_){if(_.left==null)return!0;var N=_.left-w.left,D=_.top-w.top;return N*N+D*D>20*20}Rt(i.scroller,"touchstart",function(w){if(!ke(e,w)&&!d(w)&&!Nu(e,w)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},w.touches.length==1&&(i.activeTouch.left=w.touches[0].pageX,i.activeTouch.top=w.touches[0].pageY)}}),Rt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Rt(i.scroller,"touchend",function(w){var _=i.activeTouch;if(_&&!Lr(i,w)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=e.coordsChar(i.activeTouch,"page"),D;!_.prev||m(_,_.prev)?D=new ce(N,N):!_.prev.prev||m(_,_.prev.prev)?D=e.findWordAt(N):D=new ce(X(N.line,0),Wt(e.doc,X(N.line+1,0))),e.setSelection(D.anchor,D.head),e.focus(),Ve(w)}c()}),Rt(i.scroller,"touchcancel",c),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(As(e,i.scroller.scrollTop),Di(e,i.scroller.scrollLeft,!0),Se(e,"scroll",e))}),Rt(i.scroller,"mousewheel",function(w){return np(e,w)}),Rt(i.scroller,"DOMMouseScroll",function(w){return np(e,w)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){ke(e,w)||Xr(w)},over:function(w){ke(e,w)||(jw(e,w),Xr(w))},start:function(w){return Uw(e,w)},drop:Ie(e,Ww),leave:function(w){ke(e,w)||Mp(e)}};var y=i.input.getField();Rt(y,"keyup",function(w){return Hp.call(e,w)}),Rt(y,"keydown",Ie(e,qp)),Rt(y,"keypress",Ie(e,Bp)),Rt(y,"focus",function(w){return hu(e,w)}),Rt(y,"blur",function(w){return So(e,w)})}var Pu=[];ye.defineInitHook=function(e){return Pu.push(e)};function Vs(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=xs(e,i).state:l="prev");var m=e.options.tabSize,y=Pt(c,i),w=ot(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!s&&!/\S/.test(y.text))N=0,l="not";else if(l=="smart"&&(N=c.mode.indent(d,y.text.slice(_.length),y.text),N==F||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=ot(Pt(c,i-1).text,null,m):N=0:l=="add"?N=w+e.options.indentUnit:l=="subtract"?N=w-e.options.indentUnit:typeof l=="number"&&(N=w+l),N=Math.max(0,N);var D="",W=0;if(e.options.indentWithTabs)for(var q=Math.floor(N/m);q;--q)W+=m,D+=" ";if(W<N&&(D+=mt(N-W)),D!=_)return Ao(c,D,X(i,0),X(i,_.length),"+input"),y.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var rt=c.sel.ranges[Z];if(rt.head.line==i&&rt.head.ch<_.length){var vt=X(i,_.length);Cu(c,Z,new ce(vt,vt));break}}}var Zn=null;function da(e){Zn=e}function Ou(e,i,l,s,c){var d=e.doc;e.display.shift=!1,s||(s=d.sel);var m=+new Date-200,y=c=="paste"||e.state.pasteIncoming>m,w=Fn(i),_=null;if(y&&s.ranges.length>1)if(Zn&&Zn.text.join(`
19
+ `)==i){if(s.ranges.length%Zn.text.length==0){_=[];for(var N=0;N<Zn.text.length;N++)_.push(d.splitLines(Zn.text[N]))}}else w.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(_=ft(w,function(bt){return[bt]}));for(var D=e.curOp.updateInput,W=s.ranges.length-1;W>=0;W--){var q=s.ranges[W],Z=q.from(),rt=q.to();q.empty()&&(l&&l>0?Z=X(Z.line,Z.ch-l):e.state.overwrite&&!y?rt=X(rt.line,Math.min(Pt(d,rt.line).text.length,rt.ch+lt(w).length)):y&&Zn&&Zn.lineWise&&Zn.text.join(`
20
+ `)==w.join(`
21
+ `)&&(Z=rt=X(Z.line,0)));var vt={from:Z,to:rt,text:_?_[W%_.length]:w,origin:c||(y?"paste":e.state.cutIncoming>m?"cut":"+input")};Lo(e.doc,vt),Fe(e,"inputRead",e,vt)}i&&!y&&Yp(e,i),ko(e),e.curOp.updateInput<2&&(e.curOp.updateInput=D),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xp(e,i){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&wn(i,function(){return Ou(i,l,0,null,"paste")}),!0}function Yp(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var l=e.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var d=e.getModeAt(c.head),m=!1;if(d.electricChars){for(var y=0;y<d.electricChars.length;y++)if(i.indexOf(d.electricChars.charAt(y))>-1){m=Vs(e,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Pt(e.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Vs(e,c.head.line,"smart"));m&&Fe(e,"electricInput",e,c.head.line)}}}function Zp(e){for(var i=[],l=[],s=0;s<e.doc.sel.ranges.length;s++){var c=e.doc.sel.ranges[s].head.line,d={anchor:X(c,0),head:X(c+1,0)};l.push(d),i.push(e.getRange(d.anchor,d.head))}return{text:i,ranges:l}}function Du(e,i,l,s){e.setAttribute("autocorrect",l?"on":"off"),e.setAttribute("autocapitalize",s?"on":"off"),e.setAttribute("spellcheck",!!i)}function Jp(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),i}function vx(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){Ct(this).focus(),this.display.input.focus()},setOption:function(s,c){var d=this.options,m=d[s];d[s]==c&&s!="mode"||(d[s]=c,i.hasOwnProperty(s)&&Ie(this,i[s])(this,c,m),Se(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](ua(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,d=0;d<c.length;++d)if(c[d]==s||c[d].name==s)return c.splice(d,1),!0},addOverlay:Ze(function(s,c){var d=s.token?s:e.getMode(this.options,s);if(d.startState)throw new Error("Overlays may not be stateful.");$t(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,on(this)}),removeOverlay:Ze(function(s){for(var c=this.state.overlays,d=0;d<c.length;++d){var m=c[d].modeSpec;if(m==s||typeof s=="string"&&m.name==s){c.splice(d,1),this.state.modeGen++,on(this);return}}}),indentLine:Ze(function(s,c,d){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),tt(this.doc,s)&&Vs(this,s,c,d)}),indentSelection:Ze(function(s){for(var c=this.doc.sel.ranges,d=-1,m=0;m<c.length;m++){var y=c[m];if(y.empty())y.head.line>d&&(Vs(this,y.head.line,s,!0),d=y.head.line,m==this.doc.sel.primIndex&&ko(this));else{var w=y.from(),_=y.to(),N=Math.max(d,w.line);d=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=N;D<d;++D)Vs(this,D,s);var W=this.doc.sel.ranges;w.ch==0&&c.length==W.length&&W[m].from().ch>0&&Cu(this.doc,m,new ce(w,W[m].to()),G)}}}),getTokenAt:function(s,c){return ad(this,s,c)},getLineTokens:function(s,c){return ad(this,X(s),c,!0)},getTokenTypeAt:function(s){s=Wt(this.doc,s);var c=od(this,Pt(this.doc,s.line)),d=0,m=(c.length-1)/2,y=s.ch,w;if(y==0)w=c[2];else for(;;){var _=d+m>>1;if((_?c[_*2-1]:0)>=y)m=_;else if(c[_*2+1]<y)d=_+1;else{w=c[_*2+2];break}}var N=w?w.indexOf("overlay "):-1;return N<0?w:N==0?null:w.slice(0,N-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?e.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var d=[];if(!l.hasOwnProperty(c))return d;var m=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")m[y[c]]&&d.push(m[y[c]]);else if(y[c])for(var w=0;w<y[c].length;w++){var _=m[y[c][w]];_&&d.push(_)}else y.helperType&&m[y.helperType]?d.push(m[y.helperType]):m[y.name]&&d.push(m[y.name]);for(var N=0;N<m._global.length;N++){var D=m._global[N];D.pred(y,this)&&Tt(d,D.val)==-1&&d.push(D.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=nd(d,s??d.first+d.size-1),xs(this,s+1,c).state},cursorCoords:function(s,c){var d,m=this.doc.sel.primary();return s==null?d=m.head:typeof s=="object"?d=Wt(this.doc,s):d=s?m.from():m.to(),Xn(this,d,c||"page")},charCoords:function(s,c){return Xl(this,Wt(this.doc,s),c||"page")},coordsChar:function(s,c){return s=zd(this,s,c||"page"),iu(this,s.left,s.top)},lineAtHeight:function(s,c){return s=zd(this,{top:s,left:0},c||"page").top,O(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var m=!1,y;if(typeof s=="number"){var w=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>w&&(s=w,m=!0),y=Pt(this.doc,s)}else y=s;return Kl(this,y,{top:0,left:0},c||"page",d||m).top+(m?this.doc.height-Er(y):0)},defaultTextHeight:function(){return xo(this.display)},defaultCharWidth:function(){return _o(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,m,y){var w=this.display;s=Xn(this,Wt(this.doc,s));var _=s.bottom,N=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),w.sizer.appendChild(c),m=="over")_=s.top;else if(m=="above"||m=="near"){var D=Math.max(w.wrapper.clientHeight,this.doc.height),W=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(m=="above"||s.bottom+c.offsetHeight>D)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=D&&(_=s.bottom),N+c.offsetWidth>W&&(N=W-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),d&&dw(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Ze(qp),triggerOnKeyPress:Ze(Bp),triggerOnKeyUp:Hp,triggerOnMouseDown:Ze(Wp),execCommand:function(s){if(Ws.hasOwnProperty(s))return Ws[s].call(null,this)},triggerElectric:Ze(function(s){Yp(this,s)}),findPosH:function(s,c,d,m){var y=1;c<0&&(y=-1,c=-c);for(var w=Wt(this.doc,s),_=0;_<c&&(w=$u(this.doc,w,y,d,m),!w.hitSide);++_);return w},moveH:Ze(function(s,c){var d=this;this.extendSelectionsBy(function(m){return d.display.shift||d.doc.extend||m.empty()?$u(d.doc,m.head,s,c,d.options.rtlMoveVisually):s<0?m.from():m.to()},it)}),deleteH:Ze(function(s,c){var d=this.doc.sel,m=this.doc;d.somethingSelected()?m.replaceSelection("",null,"+delete"):Po(this,function(y){var w=$u(m,y.head,s,c,!1);return s<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(s,c,d,m){var y=1,w=m;c<0&&(y=-1,c=-c);for(var _=Wt(this.doc,s),N=0;N<c;++N){var D=Xn(this,_,"div");if(w==null?w=D.left:D.left=w,_=Qp(this,D,y,d),_.hitSide)break}return _},moveV:Ze(function(s,c){var d=this,m=this.doc,y=[],w=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(N){if(w)return s<0?N.from():N.to();var D=Xn(d,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),y.push(D.left);var W=Qp(d,D,s,c);return c=="page"&&N==m.sel.primary()&&pu(d,Xl(d,W,"div").top-D.top),W},it),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,d=Pt(c,s.line).text,m=s.ch,y=s.ch;if(d){var w=this.getHelper(s,"wordChars");(s.sticky=="before"||y==d.length)&&m?--m:++y;for(var _=d.charAt(m),N=te(_,w)?function(D){return te(D,w)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!te(D)};m>0&&N(d.charAt(m-1));)--m;for(;y<d.length&&N(d.charAt(y));)++y}return new ce(X(s.line,m),X(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Lt(this.display.cursorDiv,"CodeMirror-overwrite"):gt(this.display.cursorDiv,"CodeMirror-overwrite"),Se(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==yt(Xt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ze(function(s,c){Ls(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-ur(this)-this.display.barHeight,width:s.scrollWidth-ur(this)-this.display.barWidth,clientHeight:tu(this),clientWidth:Mi(this)}},scrollIntoView:Ze(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:X(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?pw(this,s):Gd(this,s.from,s.to,s.margin)}),setSize:Ze(function(s,c){var d=this,m=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};s!=null&&(this.display.wrapper.style.width=m(s)),c!=null&&(this.display.wrapper.style.height=m(c)),this.options.lineWrapping&&Dd(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var _=0;_<w.widgets.length;_++)if(w.widgets[_].noHScroll){ti(d,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,Se(this,"refresh",this)}),operation:function(s){return wn(this,s)},startOperation:function(){return Ri(this)},endOperation:function(){return zi(this)},refresh:Ze(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,Ts(this),Ls(this,this.doc.scrollLeft,this.doc.scrollTop),mu(this.display),(s==null||Math.abs(s-xo(this.display))>.5||this.options.lineWrapping)&&au(this),Se(this,"refresh",this)}),swapDoc:Ze(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),sp(this,s),Ts(this),this.display.input.reset(),Ls(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Fe(this,"swapDoc",this,c),c}),phrase:function(s){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,s)?c[s]:s},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}},Wn(e),e.registerHelper=function(s,c,d){l.hasOwnProperty(s)||(l[s]=e[s]={_global:[]}),l[s][c]=d},e.registerGlobalHelper=function(s,c,d,m){e.registerHelper(s,c,m),l[s]._global.push({pred:d,val:m})}}function $u(e,i,l,s,c){var d=i,m=l,y=Pt(e,i.line),w=c&&e.direction=="rtl"?-l:l;function _(){var kt=i.line+w;return kt<e.first||kt>=e.first+e.size?!1:(i=new X(kt,i.ch,i.sticky),y=Pt(e,kt))}function N(kt){var wt;if(s=="codepoint"){var Et=y.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(Et))wt=null;else{var zt=l>0?Et>=55296&&Et<56320:Et>=56320&&Et<57343;wt=new X(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(zt?2:1))),-l)}}else c?wt=Zw(e.cm,y,i,l):wt=Eu(y,i,l);if(wt==null)if(!kt&&_())i=Lu(c,e.cm,y,i.line,w);else return!1;else i=wt;return!0}if(s=="char"||s=="codepoint")N();else if(s=="column")N(!0);else if(s=="word"||s=="group")for(var D=null,W=s=="group",q=e.cm&&e.cm.getHelper(i,"wordChars"),Z=!0;!(l<0&&!N(!Z));Z=!1){var rt=y.text.charAt(i.ch)||`
22
+ `,vt=te(rt,q)?"w":W&&rt==`
23
+ `?"n":!W||/\s/.test(rt)?null:"p";if(W&&!Z&&!vt&&(vt="s"),D&&D!=vt){l<0&&(l=1,N(),i.sticky="after");break}if(vt&&(D=vt),l>0&&!N(!Z))break}var bt=la(e,i,d,m,!0);return ae(d,bt)&&(bt.hitSide=!0),bt}function Qp(e,i,l,s){var c=e.doc,d=i.left,m;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,Ct(e).innerHeight||c(e).documentElement.clientHeight),w=Math.max(y-.5*xo(e.display),3);m=(l>0?i.bottom:i.top)+l*w}else s=="line"&&(m=l>0?i.bottom+3:i.top-3);for(var _;_=iu(e,d,m),!!_.outside;){if(l<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=l*5}return _}var he=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Mt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};he.prototype.init=function(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,Du(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function d(y){for(var w=y.target;w;w=w.parentNode){if(w==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Rt(c,"paste",function(y){!d(y)||ke(s,y)||Xp(y,s)||g<=11&&setTimeout(Ie(s,function(){return i.updateFromDOM()}),20)}),Rt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),Rt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),Rt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(c,"touchstart",function(){return l.forceCompositionEnd()}),Rt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!d(y)||ke(s,y))){if(s.somethingSelected())da({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=Zp(s);da({lineWise:!0,text:w.text}),y.type=="cut"&&s.operation(function(){s.setSelections(w.ranges,0,G),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Zn.text.join(`
24
+ `);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=Jp(),D=N.firstChild;Du(D),s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),D.value=Zn.text.join(`
25
+ `);var W=yt(jt(c));Ht(D),setTimeout(function(){s.display.lineSpace.removeChild(N),W.focus(),W==c&&l.showPrimarySelection()},50)}}Rt(c,"copy",m),Rt(c,"cut",m)},he.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},he.prototype.prepareSelection=function(){var e=Wd(this.cm,!1);return e.focus=yt(jt(this.div))==this.div,e},he.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},he.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},he.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){e.removeAllRanges();return}var d=pa(i,e.anchorNode,e.anchorOffset),m=pa(i,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&m&&!m.bad&&_t(mo(d,m),s)==0&&_t(rn(d,m),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&tg(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&tg(i,c);if(!_){var N=y[y.length-1].measure,D=N.maps?N.maps[N.maps.length-1]:N.map;_={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!w||!_){e.removeAllRanges();return}var W=e.rangeCount&&e.getRangeAt(0),q;try{q=H(w.node,w.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(e.collapse(w.node,w.offset),q.collapsed||(e.removeAllRanges(),e.addRange(q))):(e.removeAllRanges(),e.addRange(q)),W&&e.anchorNode==null?e.addRange(W):a&&this.startGracePeriod()),this.rememberSelection()}},he.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},he.prototype.showMultipleSelections=function(e){z(this.cm.display.cursorDiv,e.cursors),z(this.cm.display.selectionDiv,e.selection)},he.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},he.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return J(this.div,i)},he.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||yt(jt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},he.prototype.blur=function(){this.div.blur()},he.prototype.getField=function(){return this.div},he.prototype.supportsTouch=function(){return!0},he.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function l(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},he.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},he.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(R&&x&&this.cm.display.gutterSpecs.length&&mx(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=pa(i,e.anchorNode,e.anchorOffset),s=pa(i,e.focusNode,e.focusOffset);l&&s&&wn(i,function(){Ke(i.doc,ni(l,s),G),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},he.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,l=e.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>e.firstLine()&&(s=X(s.line-1,Pt(e.doc,s.line-1).length)),c.ch==Pt(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=X(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var d,m,y;s.line==i.viewFrom||(d=Oi(e,s.line))==0?(m=C(i.view[0].line),y=i.view[0].node):(m=C(i.view[d].line),y=i.view[d-1].node.nextSibling);var w=Oi(e,c.line),_,N;if(w==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=C(i.view[w+1].line)-1,N=i.view[w+1].node.previousSibling),!y)return!1;for(var D=e.doc.splitLines(yx(e,y,N,m,_)),W=Cr(e.doc,X(m,0),X(_,Pt(e.doc,_).text.length));D.length>1&&W.length>1;)if(lt(D)==lt(W))D.pop(),W.pop(),_--;else if(D[0]==W[0])D.shift(),W.shift(),m++;else break;for(var q=0,Z=0,rt=D[0],vt=W[0],bt=Math.min(rt.length,vt.length);q<bt&&rt.charCodeAt(q)==vt.charCodeAt(q);)++q;for(var kt=lt(D),wt=lt(W),Et=Math.min(kt.length-(D.length==1?q:0),wt.length-(W.length==1?q:0));Z<Et&&kt.charCodeAt(kt.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)++Z;if(D.length==1&&W.length==1&&m==s.line)for(;q&&q>s.ch&&kt.charCodeAt(kt.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)q--,Z++;D[D.length-1]=kt.slice(0,kt.length-Z).replace(/^\u200b+/,""),D[0]=D[0].slice(q).replace(/\u200b+$/,"");var zt=X(m,q),Ot=X(_,W.length?lt(W).length-Z:0);if(D.length>1||D[0]||_t(zt,Ot))return Ao(e.doc,D,zt,Ot,"+input"),!0},he.prototype.ensurePolled=function(){this.forceCompositionEnd()},he.prototype.reset=function(){this.forceCompositionEnd()},he.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},he.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},he.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&wn(this.cm,function(){return on(e.cm)})},he.prototype.setUneditable=function(e){e.contentEditable="false"},he.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ie(this.cm,Ou)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},he.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},he.prototype.onContextMenu=function(){},he.prototype.resetPosition=function(){},he.prototype.needsContentAttribute=!0;function tg(e,i){var l=eu(e,i.line);if(!l||l.hidden)return null;var s=Pt(e.doc,i.line),c=Ad(l,s,i.line),d=Kt(s,e.doc.direction),m="left";if(d){var y=Le(d,i.ch);m=y%2?"right":"left"}var w=Pd(c.map,i.ch,m);return w.offset=w.collapse=="right"?w.end:w.start,w}function mx(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Do(e,i){return i&&(e.bad=!0),e}function yx(e,i,l,s,c){var d="",m=!1,y=e.doc.lineSeparator(),w=!1;function _(q){return function(Z){return Z.id==q}}function N(){m&&(d+=y,w&&(d+=y),m=w=!1)}function D(q){q&&(N(),d+=q)}function W(q){if(q.nodeType==1){var Z=q.getAttribute("cm-text");if(Z){D(Z);return}var rt=q.getAttribute("cm-marker"),vt;if(rt){var bt=e.findMarks(X(s,0),X(c+1,0),_(+rt));bt.length&&(vt=bt[0].find(0))&&D(Cr(e.doc,vt.from,vt.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var kt=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;kt&&N();for(var wt=0;wt<q.childNodes.length;wt++)W(q.childNodes[wt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),kt&&(m=!0)}else q.nodeType==3&&D(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(i),i!=l;)i=i.nextSibling,w=!1;return d}function pa(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return Do(e.clipPos(X(e.display.viewTo-1)),!0);i=null,l=0}else for(s=i;;s=s.parentNode){if(!s||s==e.display.lineDiv)return null;if(s.parentNode&&s.parentNode==e.display.lineDiv)break}for(var c=0;c<e.display.view.length;c++){var d=e.display.view[c];if(d.node==s)return bx(d,i,l)}}function bx(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!J(s,i))return Do(X(C(e.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var d=e.rest?lt(e.rest):e.line;return Do(X(C(d),d.text.length),c)}var m=i.nodeType==3?i:null,y=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,l&&(l=m.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=e.measure,_=w.maps;function N(vt,bt,kt){for(var wt=-1;wt<(_?_.length:0);wt++)for(var Et=wt<0?w.map:_[wt],zt=0;zt<Et.length;zt+=3){var Ot=Et[zt+2];if(Ot==vt||Ot==bt){var Vt=C(wt<0?e.line:e.rest[wt]),ge=Et[zt]+kt;return(kt<0||Ot!=vt)&&(ge=Et[zt+(kt?1:0)]),X(Vt,ge)}}}var D=N(m,y,l);if(D)return Do(D,c);for(var W=y.nextSibling,q=m?m.nodeValue.length-l:0;W;W=W.nextSibling){if(D=N(W,W.firstChild,0),D)return Do(X(D.line,D.ch-q),c);q+=W.textContent.length}for(var Z=y.previousSibling,rt=l;Z;Z=Z.previousSibling){if(D=N(Z,Z.firstChild,-1),D)return Do(X(D.line,D.ch+rt),c);rt+=Z.textContent.length}}var Ae=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Mt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ae.prototype.init=function(e){var i=this,l=this,s=this.cm;this.createField(e);var c=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(c.style.width="0px"),Rt(c,"input",function(){p&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),Rt(c,"paste",function(m){ke(s,m)||Xp(m,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(m){if(!ke(s,m)){if(s.somethingSelected())da({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=Zp(s);da({lineWise:!0,text:y.text}),m.type=="cut"?s.setSelections(y.ranges,null,G):(l.prevInput="",c.value=y.text.join(`
26
+ `),Ht(c))}else return;m.type=="cut"&&(s.state.cutIncoming=+new Date)}}Rt(c,"cut",d),Rt(c,"copy",d),Rt(e.scroller,"paste",function(m){if(!(Lr(e,m)||ke(s,m))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),Rt(e.lineSpace,"selectstart",function(m){Lr(e,m)||Ve(m)}),Rt(c,"compositionstart",function(){var m=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:m,range:s.markText(m,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Ae.prototype.createField=function(e){this.wrapper=Jp(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Du(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ae.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ae.prototype.prepareSelection=function(){var e=this.cm,i=e.display,l=e.doc,s=Wd(e);if(e.options.moveInputWithCursor){var c=Xn(e,l.sel.primary().head,"div"),d=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-d.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-d.left))}return s},Ae.prototype.showSelection=function(e){var i=this.cm,l=i.display;z(l.cursorDiv,e.cursors),z(l.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ae.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Ht(this.textarea),p&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Ae.prototype.getField=function(){return this.textarea},Ae.prototype.supportsTouch=function(){return!1},Ae.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||yt(jt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ae.prototype.blur=function(){this.textarea.blur()},Ae.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ae.prototype.receivedFocus=function(){this.slowPoll()},Ae.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ae.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function l(){var s=i.poll();!s&&!e?(e=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},Ae.prototype.poll=function(){var e=this,i=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Zr(l)&&!s&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=l.value;if(c==s&&!i.somethingSelected())return!1;if(p&&g>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var d=c.charCodeAt(0);if(d==8203&&!s&&(s="​"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,y=Math.min(s.length,c.length);m<y&&s.charCodeAt(m)==c.charCodeAt(m);)++m;return wn(i,function(){Ou(i,c.slice(m),s.length-m,null,e.composing?"*compose":null),c.length>1e3||c.indexOf(`
27
+ `)>-1?l.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ae.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ae.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Ae.prototype.onContextMenu=function(e){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var d=Pi(l,e),m=s.scroller.scrollTop;if(!d||P)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(d)==-1&&Ie(l,Ke)(l.doc,ni(d),G);var w=c.style.cssText,_=i.wrapper.style.cssText,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
28
+ top: `+(e.clientY-N.top-5)+"px; left: "+(e.clientX-N.left-5)+`px;
29
+ z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
30
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=c.ownerDocument.defaultView.scrollY),s.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function W(){if(c.selectionStart!=null){var rt=l.somethingSelected(),vt="​"+(rt?c.value:"");c.value="⇚",c.value=vt,i.prevInput=rt?"":"​",c.selectionStart=1,c.selectionEnd=vt.length,s.selForContextMenu=l.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=w,p&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=m),c.selectionStart!=null)){(!p||p&&g<9)&&W();var rt=0,vt=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="​"?Ie(l,bp)(l):rt++<10?s.detectingSelectAll=setTimeout(vt,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(vt,200)}}if(p&&g>=9&&W(),st){Xr(e);var Z=function(){Ge(window,"mouseup",Z),setTimeout(q,20)};Rt(window,"mouseup",Z)}else setTimeout(q,50)},Ae.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ae.prototype.setUneditable=function(){},Ae.prototype.needsContentAttribute=!1;function wx(e,i){if(i=i?nt(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var l=yt(jt(e));i.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function s(){e.value=y.getValue()}var c;if(e.form&&(Rt(e.form,"submit",s),!i.leaveSubmitMethodAlone)){var d=e.form;c=d.submit;try{var m=d.submit=function(){s(),d.submit=c,d.submit(),d.submit=m}}catch{}}i.finishInit=function(w){w.save=s,w.getTextArea=function(){return e},w.toTextArea=function(){w.toTextArea=isNaN,s(),e.parentNode.removeChild(w.getWrapperElement()),e.style.display="",e.form&&(Ge(e.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var y=ye(function(w){return e.parentNode.insertBefore(w,e.nextSibling)},i);return y}function xx(e){e.off=Ge,e.on=Rt,e.wheelEventPixels=Lw,e.Doc=sn,e.splitLines=Fn,e.countColumn=ot,e.findColumn=at,e.isWordChar=Gt,e.Pass=F,e.signal=Se,e.Line=yo,e.changeEnd=ri,e.scrollbarModel=Xd,e.Pos=X,e.cmpPos=_t,e.modes=fo,e.mimeModes=Gn,e.resolveMode=ho,e.getMode=po,e.modeExtensions=Jr,e.extendMode=go,e.copyState=ar,e.startState=vo,e.innerMode=bs,e.commands=Ws,e.keyMap=Mr,e.keyName=$p,e.isModifierKey=Op,e.lookupKey=No,e.normalizeKeyMap=Yw,e.StringStream=Ce,e.SharedTextMarker=qs,e.TextMarker=oi,e.LineWidget=Is,e.e_preventDefault=Ve,e.e_stopPropagation=co,e.e_stop=Xr,e.addClass=Lt,e.contains=J,e.rmClass=gt,e.keyNames=si}hx(ye),vx(ye);var _x="iter insert remove copy getEditor constructor".split(" ");for(var ga in sn.prototype)sn.prototype.hasOwnProperty(ga)&&Tt(_x,ga)<0&&(ye.prototype[ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[ga]));return Wn(sn),ye.inputStyles={textarea:Ae,contenteditable:he},ye.defineMode=function(e){!ye.defaults.mode&&e!="null"&&(ye.defaults.mode=e),Vn.apply(this,arguments)},ye.defineMIME=Ai,ye.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ye.defineMIME("text/plain","null"),ye.defineExtension=function(e,i){ye.prototype[e]=i},ye.defineDocExtension=function(e,i){sn.prototype[e]=i},ye.fromTextArea=wx,xx(ye),ye.version="5.65.16",ye})})($y);var gs=$y.exports;const vlt=K0(gs);var mlt={exports:{}};(function(t,n){(function(r){r(gs)})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,p=a.json||h,g=a.trackScope!==!1,v=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function C(ze){return{type:ze,style:"keyword"}}var O=C("keyword a"),tt=C("keyword b"),dt=C("keyword c"),X=C("keyword d"),_t=C("operator"),ae={type:"atom",style:"atom"};return{if:C("if"),while:O,with:O,else:tt,do:tt,try:tt,finally:tt,return:X,break:X,continue:X,new:C("new"),delete:dt,void:dt,throw:dt,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:_t,typeof:_t,instanceof:_t,true:ae,false:ae,null:ae,undefined:ae,NaN:ae,Infinity:ae,this:C("this"),class:C("class"),super:C("atom"),yield:dt,export:C("export"),import:C("import"),extends:dt,await:dt}}(),S=/[+\-*&%=<>!?|~^@]/,P=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var O=!1,tt,dt=!1;(tt=C.next())!=null;){if(!O){if(tt=="/"&&!dt)return;tt=="["?dt=!0:dt&&tt=="]"&&(dt=!1)}O=!O&&tt=="\\"}}var L,T;function M(C,O,tt){return L=C,T=tt,O}function R(C,O){var tt=C.next();if(tt=='"'||tt=="'")return O.tokenize=E(tt),O.tokenize(C,O);if(tt=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(tt=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(tt))return M(tt);if(tt=="="&&C.eat(">"))return M("=>","operator");if(tt=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(tt))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(tt=="/")return C.eat("*")?(O.tokenize=B,B(C,O)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):Nn(C,O,1)?(A(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(tt=="`")return O.tokenize=K,K(C,O);if(tt=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(tt=="#"&&C.eatWhile(b))return M("variable","property");if(tt=="<"&&C.match("!--")||tt=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(S.test(tt))return(tt!=">"||!O.lexical||O.lexical.type!=">")&&(C.eat("=")?(tt=="!"||tt=="=")&&C.eat("="):/[<>*+\-|&?]/.test(tt)&&(C.eat(tt),tt==">"&&C.eat(tt))),tt=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(b.test(tt)){C.eatWhile(b);var dt=C.current();if(O.lastType!="."){if(x.propertyIsEnumerable(dt)){var X=x[dt];return M(X.type,X.style,dt)}if(dt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",dt)}return M("variable","variable",dt)}}function E(C){return function(O,tt){var dt=!1,X;if(h&&O.peek()=="@"&&O.match(P))return tt.tokenize=R,M("jsonld-keyword","meta");for(;(X=O.next())!=null&&!(X==C&&!dt);)dt=!dt&&X=="\\";return dt||(tt.tokenize=R),M("string","string")}}function B(C,O){for(var tt=!1,dt;dt=C.next();){if(dt=="/"&&tt){O.tokenize=R;break}tt=dt=="*"}return M("comment","comment")}function K(C,O){for(var tt=!1,dt;(dt=C.next())!=null;){if(!tt&&(dt=="`"||dt=="$"&&C.eat("{"))){O.tokenize=R;break}tt=!tt&&dt=="\\"}return M("quasi","string-2",C.current())}var ht="([{}])";function Y(C,O){O.fatArrowAt&&(O.fatArrowAt=null);var tt=C.string.indexOf("=>",C.start);if(!(tt<0)){if(v){var dt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,tt));dt&&(tt=dt.index)}for(var X=0,_t=!1,ae=tt-1;ae>=0;--ae){var ze=C.string.charAt(ae),rn=ht.indexOf(ze);if(rn>=0&&rn<3){if(!X){++ae;break}if(--X==0){ze=="("&&(_t=!0);break}}else if(rn>=3&&rn<6)++X;else if(b.test(ze))_t=!0;else if(/["'\/`]/.test(ze))for(;;--ae){if(ae==0)return;var mo=C.string.charAt(ae-1);if(mo==ze&&C.string.charAt(ae-2)!="\\"){ae--;break}}else if(_t&&!X){++ae;break}}_t&&!X&&(O.fatArrowAt=ae)}}var et={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function st(C,O,tt,dt,X,_t){this.indented=C,this.column=O,this.type=tt,this.prev=X,this.info=_t,dt!=null&&(this.align=dt)}function pt(C,O){if(!g)return!1;for(var tt=C.localVars;tt;tt=tt.next)if(tt.name==O)return!0;for(var dt=C.context;dt;dt=dt.prev)for(var tt=dt.vars;tt;tt=tt.next)if(tt.name==O)return!0}function gt(C,O,tt,dt,X){var _t=C.cc;for(V.state=C,V.stream=X,V.marked=null,V.cc=_t,V.style=O,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ae=_t.length?_t.pop():p?Tt:ot;if(ae(tt,dt)){for(;_t.length&&_t[_t.length-1].lex;)_t.pop()();return V.marked?V.marked:tt=="variable"&&pt(C,dt)?"variable-2":O}}}var V={state:null,column:null,marked:null,cc:null};function z(){for(var C=arguments.length-1;C>=0;C--)V.cc.push(arguments[C])}function k(){return z.apply(null,arguments),!0}function I(C,O){for(var tt=O;tt;tt=tt.next)if(tt.name==C)return!0;return!1}function H(C){var O=V.state;if(V.marked="def",!!g){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var tt=J(C,O.context);if(tt!=null){O.context=tt;return}}else if(!I(C,O.localVars)){O.localVars=new qt(C,O.localVars);return}}a.globalVars&&!I(C,O.globalVars)&&(O.globalVars=new qt(C,O.globalVars))}}function J(C,O){if(O)if(O.block){var tt=J(C,O.prev);return tt?tt==O.prev?O:new Lt(tt,O.vars,!0):null}else return I(C,O.vars)?O:new Lt(O.prev,new qt(C,O.vars),!1);else return null}function yt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Lt(C,O,tt){this.prev=C,this.vars=O,this.block=tt}function qt(C,O){this.name=C,this.next=O}var Ht=new qt("this",new qt("arguments",null));function Zt(){V.state.context=new Lt(V.state.context,V.state.localVars,!1),V.state.localVars=Ht}function Xt(){V.state.context=new Lt(V.state.context,V.state.localVars,!0),V.state.localVars=null}Zt.lex=Xt.lex=!0;function jt(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}jt.lex=!0;function Ct(C,O){var tt=function(){var dt=V.state,X=dt.indented;if(dt.lexical.type=="stat")X=dt.lexical.indented;else for(var _t=dt.lexical;_t&&_t.type==")"&&_t.align;_t=_t.prev)X=_t.indented;dt.lexical=new st(X,V.stream.column(),C,null,dt.lexical,O)};return tt.lex=!0,tt}function j(){var C=V.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}j.lex=!0;function nt(C){function O(tt){return tt==C?k():C==";"||tt=="}"||tt==")"||tt=="]"?z():k(O)}return O}function ot(C,O){return C=="var"?k(Ct("vardef",O),co,nt(";"),j):C=="keyword a"?k(Ct("form"),F,ot,j):C=="keyword b"?k(Ct("form"),ot,j):C=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Ct("stat"),Q,nt(";"),j):C=="debugger"?k(nt(";")):C=="{"?k(Ct("}"),Xt,Mn,j,jt):C==";"?k():C=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==j&&V.state.cc.pop()(),k(Ct("form"),F,ot,j,uo)):C=="function"?k(Fn):C=="for"?k(Ct("form"),Xt,Fl,ot,jt,j):C=="class"||v&&O=="interface"?(V.marked="keyword",k(Ct("form",C=="class"?C:O),fo,j)):C=="variable"?v&&O=="declare"?(V.marked="keyword",k(ot)):v&&(O=="module"||O=="enum"||O=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",O=="enum"?k(Pt):O=="type"?k(Il,nt("operator"),Kt,nt(";")):k(Ct("form"),nn,nt("{"),Ct("}"),Mn,j,j)):v&&O=="namespace"?(V.marked="keyword",k(Ct("form"),Tt,ot,j)):v&&O=="abstract"?(V.marked="keyword",k(ot)):k(Ct("stat"),Bt):C=="switch"?k(Ct("form"),F,nt("{"),Ct("}","switch"),Xt,Mn,j,j,jt):C=="case"?k(Tt,nt(":")):C=="default"?k(nt(":")):C=="catch"?k(Ct("form"),Zt,Mt,ot,j,jt):C=="export"?k(Ct("stat"),ho,j):C=="import"?k(Ct("stat"),Jr,j):C=="async"?k(ot):O=="@"?k(Tt,ot):z(Ct("stat"),Tt,nt(";"),j)}function Mt(C){if(C=="(")return k(jn,nt(")"))}function Tt(C,O){return G(C,O,!1)}function $(C,O){return G(C,O,!0)}function F(C){return C!="("?z():k(Ct(")"),Q,nt(")"),j)}function G(C,O,tt){if(V.state.fatArrowAt==V.stream.start){var dt=tt?ft:lt;if(C=="(")return k(Zt,Ct(")"),oe(jn,")"),j,nt("=>"),dt,jt);if(C=="variable")return z(Zt,nn,nt("=>"),dt,jt)}var X=tt?at:it;return et.hasOwnProperty(C)?k(X):C=="function"?k(Fn,X):C=="class"||v&&O=="interface"?(V.marked="keyword",k(Ct("form"),Uc,j)):C=="keyword c"||C=="async"?k(tt?$:Tt):C=="("?k(Ct(")"),Q,nt(")"),j,X):C=="operator"||C=="spread"?k(tt?$:Tt):C=="["?k(Ct("]"),Ce,j,X):C=="{"?en(te,"}",null,X):C=="quasi"?z(St,X):C=="new"?k($t(tt)):k()}function Q(C){return C.match(/[;\}\)\],]/)?z():z(Tt)}function it(C,O){return C==","?k(Q):at(C,O,!1)}function at(C,O,tt){var dt=tt==!1?it:at,X=tt==!1?Tt:$;if(C=="=>")return k(Zt,tt?ft:lt,jt);if(C=="operator")return/\+\+|--/.test(O)||v&&O=="!"?k(dt):v&&O=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Ct(">"),oe(Kt,">"),j,dt):O=="?"?k(Tt,nt(":"),X):k(X);if(C=="quasi")return z(St,dt);if(C!=";"){if(C=="(")return en($,")","call",dt);if(C==".")return k(Gt,dt);if(C=="[")return k(Ct("]"),Q,nt("]"),j,dt);if(v&&O=="as")return V.marked="keyword",k(Kt,dt);if(C=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(X)}}function St(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(St):k(Q,mt)}function mt(C){if(C=="}")return V.marked="string-2",V.state.tokenize=K,k(St)}function lt(C){return Y(V.stream,V.state),z(C=="{"?ot:Tt)}function ft(C){return Y(V.stream,V.state),z(C=="{"?ot:$)}function $t(C){return function(O){return O=="."?k(C?Dt:Nt):O=="variable"&&v?k(bn,C?at:it):z(C?$:Tt)}}function Nt(C,O){if(O=="target")return V.marked="keyword",k(it)}function Dt(C,O){if(O=="target")return V.marked="keyword",k(at)}function Bt(C){return C==":"?k(j,ot):z(it,nt(";"),j)}function Gt(C){if(C=="variable")return V.marked="property",k()}function te(C,O){if(C=="async")return V.marked="property",k(te);if(C=="variable"||V.style=="keyword"){if(V.marked="property",O=="get"||O=="set")return k(ie);var tt;return v&&V.state.fatArrowAt==V.stream.start&&(tt=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+tt[0].length),k(fe)}else{if(C=="number"||C=="string")return V.marked=h?"property":V.style+" property",k(fe);if(C=="jsonld-keyword")return k(fe);if(v&&yt(O))return V.marked="keyword",k(te);if(C=="[")return k(Tt,mn,nt("]"),fe);if(C=="spread")return k($,fe);if(O=="*")return V.marked="keyword",k(te);if(C==":")return z(fe)}}function ie(C){return C!="variable"?z(fe):(V.marked="property",k(Fn))}function fe(C){if(C==":")return k($);if(C=="(")return z(Fn)}function oe(C,O,tt){function dt(X,_t){if(tt?tt.indexOf(X)>-1:X==","){var ae=V.state.lexical;return ae.info=="call"&&(ae.pos=(ae.pos||0)+1),k(function(ze,rn){return ze==O||rn==O?z():z(C)},dt)}return X==O||_t==O?k():tt&&tt.indexOf(";")>-1?z(C):k(nt(O))}return function(X,_t){return X==O||_t==O?k():z(C,dt)}}function en(C,O,tt){for(var dt=3;dt<arguments.length;dt++)V.cc.push(arguments[dt]);return k(Ct(O,tt),oe(C,O),j)}function Mn(C){return C=="}"?k():z(ot,Mn)}function mn(C,O){if(v){if(C==":")return k(Kt);if(O=="?")return k(mn)}}function lr(C,O){if(v&&(C==":"||O=="in"))return k(Kt)}function Le(C){if(v&&C==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Tt,yn,Kt):k(Kt)}function yn(C,O){if(O=="is")return V.marked="keyword",k()}function Kt(C,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return V.marked="keyword",k(O=="typeof"?$:Kt);if(C=="variable"||O=="void")return V.marked="type",k(zn);if(O=="|"||O=="&")return k(Kt);if(C=="string"||C=="number"||C=="atom")return k(zn);if(C=="[")return k(Ct("]"),oe(Kt,"]",","),j,zn);if(C=="{")return k(Ct("}"),Rt,j,zn);if(C=="(")return k(oe(ke,")"),zl,zn);if(C=="<")return k(oe(Kt,">"),Kt);if(C=="quasi")return z(Ge,zn)}function zl(C){if(C=="=>")return k(Kt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):z(kr,Rt)}function kr(C,O){if(C=="variable"||V.style=="keyword")return V.marked="property",k(kr);if(O=="?"||C=="number"||C=="string")return k(kr);if(C==":")return k(Kt);if(C=="[")return k(nt("variable"),lr,nt("]"),kr);if(C=="(")return z(Zr,kr);if(!C.match(/[;\}\)\],]/))return k()}function Ge(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(Ge):k(Kt,Se)}function Se(C){if(C=="}")return V.marked="string-2",V.state.tokenize=K,k(Ge)}function ke(C,O){return C=="variable"&&V.stream.match(/^\s*[?:]/,!1)||O=="?"?k(ke):C==":"?k(Kt):C=="spread"?k(ke):z(Kt)}function zn(C,O){if(O=="<")return k(Ct(">"),oe(Kt,">"),j,zn);if(O=="|"||C=="."||O=="&")return k(Kt);if(C=="[")return k(Kt,nt("]"),zn);if(O=="extends"||O=="implements")return V.marked="keyword",k(Kt);if(O=="?")return k(Kt,nt(":"),Kt)}function bn(C,O){if(O=="<")return k(Ct(">"),oe(Kt,">"),j,zn)}function Wn(){return z(Kt,Ve)}function Ve(C,O){if(O=="=")return k(Kt)}function co(C,O){return O=="enum"?(V.marked="keyword",k(Pt)):z(nn,mn,Un,Wc)}function nn(C,O){if(v&&yt(O))return V.marked="keyword",k(nn);if(C=="variable")return H(O),k();if(C=="spread")return k(nn);if(C=="[")return en(ms,"]");if(C=="{")return en(Xr,"}")}function Xr(C,O){return C=="variable"&&!V.stream.match(/^\s*:/,!1)?(H(O),k(Un)):(C=="variable"&&(V.marked="property"),C=="spread"?k(nn):C=="}"?z():C=="["?k(Tt,nt("]"),nt(":"),Xr):k(nt(":"),nn,Un))}function ms(){return z(nn,Un)}function Un(C,O){if(O=="=")return k($)}function Wc(C){if(C==",")return k(co)}function uo(C,O){if(C=="keyword b"&&O=="else")return k(Ct("form","else"),ot,j)}function Fl(C,O){if(O=="await")return k(Fl);if(C=="(")return k(Ct(")"),ys,j)}function ys(C){return C=="var"?k(co,Yr):C=="variable"?k(Yr):z(Yr)}function Yr(C,O){return C==")"?k():C==";"?k(Yr):O=="in"||O=="of"?(V.marked="keyword",k(Tt,Yr)):z(Tt,Yr)}function Fn(C,O){if(O=="*")return V.marked="keyword",k(Fn);if(C=="variable")return H(O),k(Fn);if(C=="(")return k(Zt,Ct(")"),oe(jn,")"),j,Le,ot,jt);if(v&&O=="<")return k(Ct(">"),oe(Wn,">"),j,Fn)}function Zr(C,O){if(O=="*")return V.marked="keyword",k(Zr);if(C=="variable")return H(O),k(Zr);if(C=="(")return k(Zt,Ct(")"),oe(jn,")"),j,Le,jt);if(v&&O=="<")return k(Ct(">"),oe(Wn,">"),j,Zr)}function Il(C,O){if(C=="keyword"||C=="variable")return V.marked="type",k(Il);if(O=="<")return k(Ct(">"),oe(Wn,">"),j)}function jn(C,O){return O=="@"&&k(Tt,jn),C=="spread"?k(jn):v&&yt(O)?(V.marked="keyword",k(jn)):v&&C=="this"?k(mn,Un):z(nn,mn,Un)}function Uc(C,O){return C=="variable"?fo(C,O):Gn(C,O)}function fo(C,O){if(C=="variable")return H(O),k(Gn)}function Gn(C,O){if(O=="<")return k(Ct(">"),oe(Wn,">"),j,Gn);if(O=="extends"||O=="implements"||v&&C==",")return O=="implements"&&(V.marked="keyword"),k(v?Kt:Tt,Gn);if(C=="{")return k(Ct("}"),Vn,j)}function Vn(C,O){if(C=="async"||C=="variable"&&(O=="static"||O=="get"||O=="set"||v&&yt(O))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(Vn);if(C=="variable"||V.style=="keyword")return V.marked="property",k(Ai,Vn);if(C=="number"||C=="string")return k(Ai,Vn);if(C=="[")return k(Tt,mn,nt("]"),Ai,Vn);if(O=="*")return V.marked="keyword",k(Vn);if(v&&C=="(")return z(Zr,Vn);if(C==";"||C==",")return k(Vn);if(C=="}")return k();if(O=="@")return k(Tt,Vn)}function Ai(C,O){if(O=="!"||O=="?")return k(Ai);if(C==":")return k(Kt,Un);if(O=="=")return k($);var tt=V.state.lexical.prev,dt=tt&&tt.info=="interface";return z(dt?Zr:Fn)}function ho(C,O){return O=="*"?(V.marked="keyword",k(vo,nt(";"))):O=="default"?(V.marked="keyword",k(Tt,nt(";"))):C=="{"?k(oe(po,"}"),vo,nt(";")):z(ot)}function po(C,O){if(O=="as")return V.marked="keyword",k(nt("variable"));if(C=="variable")return z($,po)}function Jr(C){return C=="string"?k():C=="("?z(Tt):C=="."?z(it):z(go,ar,vo)}function go(C,O){return C=="{"?en(go,"}"):(C=="variable"&&H(O),O=="*"&&(V.marked="keyword"),k(bs))}function ar(C){if(C==",")return k(go,ar)}function bs(C,O){if(O=="as")return V.marked="keyword",k(go)}function vo(C,O){if(O=="from")return V.marked="keyword",k(Tt)}function Ce(C){return C=="]"?k():z(oe($,"]"))}function Pt(){return z(Ct("form"),nn,nt("{"),Ct("}"),oe(Cr,"}"),j,j)}function Cr(){return z(nn,Un)}function ws(C,O){return C.lastType=="operator"||C.lastType==","||S.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function Nn(C,O,tt){return O.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(tt||0)))}return{startState:function(C){var O={tokenize:R,lastType:"sof",cc:[],lexical:new st((C||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Lt(null,null,!1),indented:C||0};return a.globalVars&&typeof a.globalVars=="object"&&(O.globalVars=a.globalVars),O},token:function(C,O){if(C.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=C.indentation(),Y(C,O)),O.tokenize!=B&&C.eatSpace())return null;var tt=O.tokenize(C,O);return L=="comment"?tt:(O.lastType=L=="operator"&&(T=="++"||T=="--")?"incdec":L,gt(O,tt,L,T,C))},indent:function(C,O){if(C.tokenize==B||C.tokenize==K)return r.Pass;if(C.tokenize!=R)return 0;var tt=O&&O.charAt(0),dt=C.lexical,X;if(!/^\s*else\b/.test(O))for(var _t=C.cc.length-1;_t>=0;--_t){var ae=C.cc[_t];if(ae==j)dt=dt.prev;else if(ae!=uo&&ae!=jt)break}for(;(dt.type=="stat"||dt.type=="form")&&(tt=="}"||(X=C.cc[C.cc.length-1])&&(X==it||X==at)&&!/^[,\.=+\-*:?[\(]/.test(O));)dt=dt.prev;f&&dt.type==")"&&dt.prev.type=="stat"&&(dt=dt.prev);var ze=dt.type,rn=tt==ze;return ze=="vardef"?dt.indented+(C.lastType=="operator"||C.lastType==","?dt.info.length+1:0):ze=="form"&&tt=="{"?dt.indented:ze=="form"?dt.indented+u:ze=="stat"?dt.indented+(ws(C,O)?f||u:0):dt.info=="switch"&&!rn&&a.doubleIndentSwitch!=!1?dt.indented+(/^(?:case|default)\b/.test(O)?u:2*u):dt.align?dt.column+(rn?0:1):dt.indented+(rn?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:h,jsonMode:p,expressionAllowed:Nn,skipExpression:function(C){gt(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 ylt=mlt.exports,Dv={exports:{}},$v;function Ry(){return $v||($v=1,function(t,n){(function(r){r(gs)})(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},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,p={},g=f.htmlMode?o:a;for(var v in g)p[v]=g[v];for(var v in f)p[v]=f[v];var b,x;function S(k,I){function H(Lt){return I.tokenize=Lt,Lt(k,I)}var J=k.next();if(J=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?H(L("atom","]]>")):null:k.match("--")?H(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),H(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),I.tokenize=L("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",I.tokenize=P,"tag bracket");if(J=="&"){var yt;return k.eat("#")?k.eat("x")?yt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):yt=k.eatWhile(/[\d]/)&&k.eat(";"):yt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),yt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function P(k,I){var H=k.next();if(H==">"||H=="/"&&k.eat(">"))return I.tokenize=S,b=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return b="equals",null;if(H=="<"){I.tokenize=S,I.state=K,I.tagName=I.tagStart=null;var J=I.tokenize(k,I);return J?J+" tag error":"tag error"}else return/[\'\"]/.test(H)?(I.tokenize=A(H),I.stringStartCol=k.column(),I.tokenize(k,I)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var I=function(H,J){for(;!H.eol();)if(H.next()==k){J.tokenize=P;break}return"string"};return I.isInAttribute=!0,I}function L(k,I){return function(H,J){for(;!H.eol();){if(H.match(I)){J.tokenize=S;break}H.next()}return k}}function T(k){return function(I,H){for(var J;(J=I.next())!=null;){if(J=="<")return H.tokenize=T(k+1),H.tokenize(I,H);if(J==">")if(k==1){H.tokenize=S;break}else return H.tokenize=T(k-1),H.tokenize(I,H)}return"meta"}}function M(k){return k&&k.toLowerCase()}function R(k,I,H){this.prev=k.context,this.tagName=I||"",this.indent=k.indented,this.startOfLine=H,(p.doNotIndent.hasOwnProperty(I)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function B(k,I){for(var H;;){if(!k.context||(H=k.context.tagName,!p.contextGrabbers.hasOwnProperty(M(H))||!p.contextGrabbers[M(H)].hasOwnProperty(M(I))))return;E(k)}}function K(k,I,H){return k=="openTag"?(H.tagStart=I.column(),ht):k=="closeTag"?Y:K}function ht(k,I,H){return k=="word"?(H.tagName=I.current(),x="tag",pt):p.allowMissingTagName&&k=="endTag"?(x="tag bracket",pt(k,I,H)):(x="error",ht)}function Y(k,I,H){if(k=="word"){var J=I.current();return H.context&&H.context.tagName!=J&&p.implicitlyClosed.hasOwnProperty(M(H.context.tagName))&&E(H),H.context&&H.context.tagName==J||p.matchClosing===!1?(x="tag",et):(x="tag error",st)}else return p.allowMissingTagName&&k=="endTag"?(x="tag bracket",et(k,I,H)):(x="error",st)}function et(k,I,H){return k!="endTag"?(x="error",et):(E(H),K)}function st(k,I,H){return x="error",et(k,I,H)}function pt(k,I,H){if(k=="word")return x="attribute",gt;if(k=="endTag"||k=="selfcloseTag"){var J=H.tagName,yt=H.tagStart;return H.tagName=H.tagStart=null,k=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(M(J))?B(H,J):(B(H,J),H.context=new R(H,J,yt==H.indented)),K}return x="error",pt}function gt(k,I,H){return k=="equals"?V:(p.allowMissing||(x="error"),pt(k,I,H))}function V(k,I,H){return k=="string"?z:k=="word"&&p.allowUnquoted?(x="string",pt):(x="error",pt(k,I,H))}function z(k,I,H){return k=="string"?z:pt(k,I,H)}return{startState:function(k){var I={tokenize:S,state:K,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(I.baseIndent=k),I},token:function(k,I){if(!I.tagName&&k.sol()&&(I.indented=k.indentation()),k.eatSpace())return null;b=null;var H=I.tokenize(k,I);return(H||b)&&H!="comment"&&(x=null,I.state=I.state(b||H,k,I),x&&(H=x=="error"?H+" error":x)),H},indent:function(k,I,H){var J=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(J&&J.noIndent)return r.Pass;if(k.tokenize!=P&&k.tokenize!=S)return H?H.match(/^(\s*)/)[0].length:0;if(k.tagName)return p.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(I))return 0;var yt=I&&/^<(\/)?([\w_:\.-]*)/.exec(I);if(yt&&yt[1])for(;J;)if(J.tagName==yt[2]){J=J.prev;break}else if(p.implicitlyClosed.hasOwnProperty(M(J.tagName)))J=J.prev;else break;else if(yt)for(;J;){var Lt=p.contextGrabbers[M(J.tagName)];if(Lt&&Lt.hasOwnProperty(M(yt[2])))J=J.prev;else break}for(;J&&J.prev&&!J.startOfLine;)J=J.prev;return J?J.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(k){k.state==V&&(k.state=pt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var I=[],H=k.context;H;H=H.prev)I.push(H.tagName);return I.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Dv.exports}Ry();(function(t,n){(function(r){r(gs,Ry(),ylt)})(function(r){function o(u,f,h,p){this.state=u,this.mode=f,this.depth=h,this.prev=p}function a(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&a(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),p=r.getMode(u,f&&f.base||"javascript");function g(S){var P=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=P,A}function v(S,P){return P.context.mode==h?b(S,P,P.context):x(S,P,P.context)}function b(S,P,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var L=g(A.state),T=A.state.context;if(T&&S.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return P.context=new o(r.startState(p,L),p,0,P.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),P.context=new o(r.startState(h,g(A.state)),h,0,P.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,v(S,P)}var M=h.token(S,A.state),R=S.current(),E;return/\btag\b/.test(M)?/>$/.test(R)?A.state.context?A.depth=0:P.context=P.context.prev:/^</.test(R)&&(A.depth=1):!M&&(E=R.indexOf("{"))>-1&&S.backUp(R.length-E),M}function x(S,P,A){if(S.peek()=="<"&&!S.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&p.expressionAllowed(S,A.state))return P.context=new o(r.startState(h,p.indent(A.state,"","")),h,0,P.context),p.skipExpression(A.state),null;var L=p.token(S,A.state);if(!L&&A.depth!=null){var T=S.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(P.context=P.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(p),p)}},copyState:function(S){return{context:a(S.context)}},token:v,indent:function(S,P,A){return S.context.mode.indent(S.context.state,P,A)},innerMode:function(S){return S.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,n){(function(r){r(gs)})(function(r){r.defineOption("placeholder","",function(g,v,b){var x=b&&b!=r.Init;if(v&&!x)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!v&&x){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var S=g.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function a(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),v.appendChild(b),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var b=g.getInputField();v=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}v?a(g):o(g)},20)}function f(g){p(g)&&a(g)}function h(g){var v=g.getWrapperElement(),b=p(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function p(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,n){(function(r){r(gs)})(function(r){function o(f,h,p){this.orientation=h,this.scroll=p,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(b){if(b.which!=1)return;r.e_preventDefault(b);var x=g.orientation=="horizontal"?"pageX":"pageY",S=b[x],P=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(T){if(T.which!=1)return A();g.moveTo(P+(T[x]-S)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var x=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientX<x.left?-1:b.clientX>x.right?1:0:S=b.clientY<x.top?-1:b.clientY>x.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function v(b){var x=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+x),g.pos!=S&&r.e_preventDefault(b)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&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 a=10;o.prototype.update=function(f,h,p){var g=this.screen!=h||this.total!=f||this.size!=p;g&&(this.screen=h,this.total=f,this.size=p);var v=this.screen*(this.size/this.total);v<a&&(this.size-=a-v,v=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,p){this.addClass=f,this.horiz=new o(f,"horizontal",p),h(this.horiz.node),this.vert=new o(f,"vertical",p),h(this.vert.node),this.width=null}u.prototype.update=function(f){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var p=this.width||0,g=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=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?p:0)),this.vert.node.style.bottom=g?p+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?p:0)-f.barLeft),this.horiz.node.style.right=v?p+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?p:0,bottom:g?p:0}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function blt(t,n,r={}){const o=vlt.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),De(n,u=>{if(u!==o.getValue()){a=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),ah(o)}const wlt={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},zy=re({__name:"CodeMirror",props:mf({mode:{},readOnly:{type:Boolean}},{modelValue:{}}),emits:mf(["save"],["update:modelValue"]),setup(t,{expose:n,emit:r}){const o=r,a=Gm(t,"modelValue"),u=J1(),f={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},h=Yt(),p=ds();return n({cm:p}),ps(async()=>{p.value=blt(h,a,{...u,mode:f[t.mode||""]||t.mode,readOnly:t.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){o("save",g.getValue())},"Ctrl-S":function(g){o("save",g.getValue())}}}),p.value.setSize("100%","100%"),p.value.clearHistory(),setTimeout(()=>p.value.refresh(),100)}),(g,v)=>(ut(),At("div",wlt,[ct("textarea",{ref_key:"el",ref:h},null,512)]))}}),xlt=re({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:n}){const r=t,o=n,a=Yt(""),u=ds(void 0),f=Yt(!1);De(()=>r.file,async()=>{var R;if(!r.file||!((R=r.file)!=null&&R.filepath)){a.value="",u.value=a.value,f.value=!1;return}a.value=await je.rpc.readTestFile(r.file.filepath)||"",u.value=a.value,f.value=!1},{immediate:!0});const h=xt(()=>{var R,E;return((E=(R=r.file)==null?void 0:R.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),p=Yt(),g=xt(()=>{var R;return(R=p.value)==null?void 0:R.cm}),v=xt(()=>{var R;return((R=r.file)==null?void 0:R.tasks.filter(E=>{var B;return((B=E.result)==null?void 0:B.state)==="fail"}))||[]}),b=[],x=[],S=[],P=Yt(!1);function A(){S.forEach(([R,E,B])=>{R.removeEventListener("click",E),B()}),S.length=0}vT(p,()=>{var R;(R=g.value)==null||R.refresh()});function L(){f.value=u.value!==g.value.getValue()}De(f,R=>{o("draft",R)},{immediate:!0});function T(R){const E=((R==null?void 0:R.stacks)||[]).filter(st=>{var pt;return st.file&&st.file===((pt=r.file)==null?void 0:pt.filepath)}),B=E==null?void 0:E[0];if(!B)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const ht=document.createElement("pre");ht.className="c-red-600 dark:c-red-400",ht.textContent=`${" ".repeat(B.column)}^ ${(R==null?void 0:R.nameStr)||R.name}: ${(R==null?void 0:R.message)||""}`,K.appendChild(ht);const Y=document.createElement("span");Y.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Y.tabIndex=0,Y.ariaLabel="Open in Editor",R0(Y,{content:"Open in Editor",placement:"bottom"},!1);const et=async()=>{await My(B.file,B.line,B.column)};K.appendChild(Y),S.push([Y,et,()=>Ph(Y)]),x.push(g.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),b.push(g.value.addLineWidget(B.line-1,K))}De([g,v],([R])=>{if(!R){A();return}setTimeout(()=>{A(),b.forEach(E=>E.clear()),x.forEach(E=>{var B;return(B=g.value)==null?void 0:B.removeLineClass(E,"wrap")}),b.length=0,x.length=0,R.on("changes",L),v.value.forEach(E=>{var B,K;(K=(B=E.result)==null?void 0:B.errors)==null||K.forEach(T)}),P.value||R.clearHistory()},100)},{flush:"post"});async function M(R){P.value=!0,await je.rpc.saveTestFile(r.file.filepath,R),u.value=R,f.value=!1}return(R,E)=>{const B=zy;return ut(),Qt(B,Si({ref_key:"editor",ref:p,modelValue:U(a),"onUpdate:modelValue":E[0]||(E[0]=K=>Ee(a)?a.value=K:null),"h-full":""},{lineNumbers:!0},{mode:U(h),"data-testid":"code-mirror",onSave:M}),null,16,["modelValue","mode"])}}}),_lt=re({__name:"Modal",props:mf({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup(t){const n=Gm(t,"modelValue"),r=xt(()=>{switch(t.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=xt(()=>{switch(t.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),a=()=>n.value=!1;return(u,f)=>(ut(),At("div",{class:ve(["fixed inset-0 z-40",n.value?"":"pointer-events-none"])},[ct("div",{class:ve(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",n.value?"opacity-50":"opacity-0"]),onClick:a},null,2),ct("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:En(n.value?{}:{transform:U(o)})},[ir(u.$slots,"default")],6)],2))}}),Slt=["aria-label","opacity","disabled","hover"],vs=re({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(n,r)=>(ut(),At("button",{"aria-label":n.title,role:"button",opacity:n.disabled?10:70,rounded:"",disabled:n.disabled,hover:n.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[ir(n.$slots,"default",{},()=>[ct("div",{class:ve(n.icon),ma:""},null,2)])],8,Slt))}}),klt={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Clt={"p-4":"",relative:""},Tlt=ct("p",null,"Module Info",-1),Elt={op50:"","font-mono":"","text-sm":""},Llt={key:0,"p-5":""},Alt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Mlt=ct("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Nlt=ct("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Plt={key:0},Olt={p:"x3 y-1","bg-overlay":"",border:"base b t"},Dlt=re({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:n}){const r=t,o=n,a=iT(()=>je.rpc.getTransformResult(r.id)),u=xt(()=>{var g;return((g=r.id)==null?void 0:g.split(/\./g).pop())||"js"}),f=xt(()=>{var g,v;return((v=(g=a.value)==null?void 0:g.source)==null?void 0:v.trim())||""}),h=xt(()=>{var g,v;return((v=(g=a.value)==null?void 0:g.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),p=xt(()=>{var g,v,b,x;return{mappings:((v=(g=a.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(x=(b=a.value)==null?void 0:b.map)==null?void 0:x.version}});return sT("Escape",()=>{o("close")}),(g,v)=>{const b=vs,x=zy;return ut(),At("div",klt,[ct("div",Clt,[Tlt,ct("p",Elt,ne(g.id),1),It(b,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=S=>o("close"))})]),U(a)?(ut(),At(ue,{key:1},[ct("div",Alt,[Mlt,Nlt,It(x,Si({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"]),It(x,Si({"h-full":"","model-value":U(h),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])]),U(p).mappings!==""?(ut(),At("div",Plt,[ct("div",Olt," Source map (v"+ne(U(p).version)+") ",1),It(x,Si({"model-value":U(p).mappings,"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])])):ee("",!0)],64)):(ut(),At("div",Llt," No transform result found for this module. "))])}}});function $lt(t,n){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),n)}}var Hf="http://www.w3.org/1999/xhtml";const Rv={svg:"http://www.w3.org/2000/svg",xhtml:Hf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Rv.hasOwnProperty(n)?{space:Rv[n],local:t}:t}function Rlt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Hf&&n.documentElement.namespaceURI===Hf?n.createElement(t):n.createElementNS(r,t)}}function zlt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Fy(t){var n=qc(t);return(n.local?zlt:Rlt)(n)}function Flt(){}function Wh(t){return t==null?Flt:function(){return this.querySelector(t)}}function Ilt(t){typeof t!="function"&&(t=Wh(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=new Array(f),p,g,v=0;v<f;++v)(p=u[v])&&(g=t.call(p,p.__data__,v,u))&&("__data__"in p&&(g.__data__=p.__data__),h[v]=g);return new Rn(o,this._parents)}function qlt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Hlt(){return[]}function Iy(t){return t==null?Hlt:function(){return this.querySelectorAll(t)}}function Blt(t){return function(){return qlt(t.apply(this,arguments))}}function Wlt(t){typeof t=="function"?t=Blt(t):t=Iy(t);for(var n=this._groups,r=n.length,o=[],a=[],u=0;u<r;++u)for(var f=n[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&(o.push(t.call(p,p.__data__,g,f)),a.push(p));return new Rn(o,a)}function qy(t){return function(){return this.matches(t)}}function Hy(t){return function(n){return n.matches(t)}}var Ult=Array.prototype.find;function jlt(t){return function(){return Ult.call(this.children,t)}}function Glt(){return this.firstElementChild}function Vlt(t){return this.select(t==null?Glt:jlt(typeof t=="function"?t:Hy(t)))}var Klt=Array.prototype.filter;function Xlt(){return Array.from(this.children)}function Ylt(t){return function(){return Klt.call(this.children,t)}}function Zlt(t){return this.selectAll(t==null?Xlt:Ylt(typeof t=="function"?t:Hy(t)))}function Jlt(t){typeof t!="function"&&(t=qy(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new Rn(o,this._parents)}function By(t){return new Array(t.length)}function Qlt(){return new Rn(this._enter||this._groups.map(By),this._parents)}function ac(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ac.prototype={constructor:ac,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function tat(t){return function(){return t}}function eat(t,n,r,o,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],o[f]=h):r[f]=new ac(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function nat(t,n,r,o,a,u,f){var h,p,g=new Map,v=n.length,b=u.length,x=new Array(v),S;for(h=0;h<v;++h)(p=n[h])&&(x[h]=S=f.call(p,p.__data__,h,n)+"",g.has(S)?a[h]=p:g.set(S,p));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(p=g.get(S))?(o[h]=p,p.__data__=u[h],g.delete(S)):r[h]=new ac(t,u[h]);for(h=0;h<v;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function rat(t){return t.__data__}function iat(t,n){if(!arguments.length)return Array.from(this,rat);var r=n?nat:eat,o=this._parents,a=this._groups;typeof t!="function"&&(t=tat(t));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var v=o[g],b=a[g],x=b.length,S=oat(t.call(v,v&&v.__data__,g,o)),P=S.length,A=h[g]=new Array(P),L=f[g]=new Array(P),T=p[g]=new Array(x);r(v,b,A,L,T,S,n);for(var M=0,R=0,E,B;M<P;++M)if(E=A[M]){for(M>=R&&(R=M+1);!(B=L[R])&&++R<P;);E._next=B||null}}return f=new Rn(f,o),f._enter=h,f._exit=p,f}function oat(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function sat(){return new Rn(this._exit||this._groups.map(By),this._parents)}function lat(t,n,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),n!=null&&(a=n(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function aat(t){for(var n=t.selection?t.selection():t,r=this._groups,o=n._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var g=r[p],v=o[p],b=g.length,x=h[p]=new Array(b),S,P=0;P<b;++P)(S=g[P]||v[P])&&(x[P]=S);for(;p<a;++p)h[p]=r[p];return new Rn(h,this._parents)}function cat(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var o=t[n],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function uat(t){t||(t=fat);function n(b,x){return b&&x?t(b.__data__,x.__data__):!b-!x}for(var r=this._groups,o=r.length,a=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,p=a[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(p[v]=g);p.sort(n)}return new Rn(a,this._parents).order()}function fat(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function hat(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function dat(){return Array.from(this)}function pat(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function gat(){let t=0;for(const n of this)++t;return t}function vat(){return!this.node()}function mat(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var a=n[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function yat(t){return function(){this.removeAttribute(t)}}function bat(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wat(t,n){return function(){this.setAttribute(t,n)}}function xat(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function _at(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Sat(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function kat(t,n){var r=qc(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((n==null?r.local?bat:yat:typeof n=="function"?r.local?Sat:_at:r.local?xat:wat)(r,n))}function Wy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Cat(t){return function(){this.style.removeProperty(t)}}function Tat(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Eat(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Lat(t,n,r){return arguments.length>1?this.each((n==null?Cat:typeof n=="function"?Eat:Tat)(t,n,r??"")):cs(this.node(),t)}function cs(t,n){return t.style.getPropertyValue(n)||Wy(t).getComputedStyle(t,null).getPropertyValue(n)}function Aat(t){return function(){delete this[t]}}function Mat(t,n){return function(){this[t]=n}}function Nat(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Pat(t,n){return arguments.length>1?this.each((n==null?Aat:typeof n=="function"?Nat:Mat)(t,n)):this.node()[t]}function Uy(t){return t.trim().split(/^|\s+/)}function Uh(t){return t.classList||new jy(t)}function jy(t){this._node=t,this._names=Uy(t.getAttribute("class")||"")}jy.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Gy(t,n){for(var r=Uh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function Vy(t,n){for(var r=Uh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function Oat(t){return function(){Gy(this,t)}}function Dat(t){return function(){Vy(this,t)}}function $at(t,n){return function(){(n.apply(this,arguments)?Gy:Vy)(this,t)}}function Rat(t,n){var r=Uy(t+"");if(arguments.length<2){for(var o=Uh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?$at:n?Oat:Dat)(r,n))}function zat(){this.textContent=""}function Fat(t){return function(){this.textContent=t}}function Iat(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function qat(t){return arguments.length?this.each(t==null?zat:(typeof t=="function"?Iat:Fat)(t)):this.node().textContent}function Hat(){this.innerHTML=""}function Bat(t){return function(){this.innerHTML=t}}function Wat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Uat(t){return arguments.length?this.each(t==null?Hat:(typeof t=="function"?Wat:Bat)(t)):this.node().innerHTML}function jat(){this.nextSibling&&this.parentNode.appendChild(this)}function Gat(){return this.each(jat)}function Vat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Kat(){return this.each(Vat)}function Xat(t){var n=typeof t=="function"?t:Fy(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Yat(){return null}function Zat(t,n){var r=typeof t=="function"?t:Fy(t),o=n==null?Yat:typeof n=="function"?n:Wh(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Jat(){var t=this.parentNode;t&&t.removeChild(this)}function Qat(){return this.each(Jat)}function tct(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ect(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function nct(t){return this.select(t?ect:tct)}function rct(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ict(t){return function(n){t.call(this,n,this.__data__)}}function oct(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}function sct(t){return function(){var n=this.__on;if(n){for(var r=0,o=-1,a=n.length,u;r<a;++r)u=n[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):n[++o]=u;++o?n.length=o:delete this.__on}}}function lct(t,n,r){return function(){var o=this.__on,a,u=ict(n);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=n;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:n,listener:u,options:r},o?o.push(a):this.__on=[a]}}function act(t,n,r){var o=oct(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,v;p<g;++p)for(a=0,v=h[p];a<u;++a)if((f=o[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?lct:sct,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function Ky(t,n,r){var o=Wy(t),a=o.CustomEvent;typeof a=="function"?a=new a(n,r):(a=o.document.createEvent("Event"),r?(a.initEvent(n,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function cct(t,n){return function(){return Ky(this,t,n)}}function uct(t,n){return function(){return Ky(this,t,n.apply(this,arguments))}}function fct(t,n){return this.each((typeof n=="function"?uct:cct)(t,n))}function*hct(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var Xy=[null];function Rn(t,n){this._groups=t,this._parents=n}function Dl(){return new Rn([[document.documentElement]],Xy)}function dct(){return this}Rn.prototype=Dl.prototype={constructor:Rn,select:Ilt,selectAll:Wlt,selectChild:Vlt,selectChildren:Zlt,filter:Jlt,data:iat,enter:Qlt,exit:sat,join:lat,merge:aat,selection:dct,order:cat,sort:uat,call:hat,nodes:dat,node:pat,size:gat,empty:vat,each:mat,attr:kat,style:Lat,property:Pat,classed:Rat,text:qat,html:Uat,raise:Gat,lower:Kat,append:Xat,insert:Zat,remove:Qat,clone:nct,datum:rct,on:act,dispatch:fct,[Symbol.iterator]:hct};function Cn(t){return typeof t=="string"?new Rn([[document.querySelector(t)]],[document.documentElement]):new Rn([[t]],Xy)}function pct(t){let n;for(;n=t.sourceEvent;)t=n;return t}function $r(t,n){if(t=pct(t),n===void 0&&(n=t.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(n.getScreenCTM().inverse()),[o.x,o.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}class hn{constructor(n,r){this.x=n,this.y=r}static of([n,r]){return new hn(n,r)}add(n){return new hn(this.x+n.x,this.y+n.y)}subtract(n){return new hn(this.x-n.x,this.y-n.y)}multiply(n){return new hn(this.x*n,this.y*n)}divide(n){return new hn(this.x/n,this.y/n)}dot(n){return this.x*n.x+this.y*n.y}cross(n){return this.x*n.y-n.x*this.y}hadamard(n){return new hn(this.x*n.x,this.y*n.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const n=this.length();return new hn(this.x/n,this.y/n)}rotateByRadians(n){const r=Math.cos(n),o=Math.sin(n);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(n){return this.rotateByRadians(n*Math.PI/180)}}var gct={value:()=>{}};function $l(){for(var t=0,n=arguments.length,r={},o;t<n;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Ha(r)}function Ha(t){this._=t}function vct(t,n){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Ha.prototype=$l.prototype={constructor:Ha,on:function(t,n){var r=this._,o=vct(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=mct(r[a],t.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(t=o[u]).type)r[a]=zv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=zv(r[a],t.name,null);return this},copy:function(){var t={},n=this._;for(var r in n)t[r]=n[r].slice();return new Ha(t)},call:function(t,n){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(n,r)},apply:function(t,n,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(n,r)}};function mct(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function zv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=gct,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const yct={passive:!1},xl={capture:!0,passive:!1};function ef(t){t.stopImmediatePropagation()}function Yo(t){t.preventDefault(),t.stopImmediatePropagation()}function Yy(t){var n=t.document.documentElement,r=Cn(t).on("dragstart.drag",Yo,xl);"onselectstart"in n?r.on("selectstart.drag",Yo,xl):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Zy(t,n){var r=t.document.documentElement,o=Cn(t).on("dragstart.drag",null);n&&(o.on("click.drag",Yo,xl),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 Ta=t=>()=>t;function Bf(t,{sourceEvent:n,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:p,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}Bf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function bct(t){return!t.ctrlKey&&!t.button}function wct(){return this.parentNode}function xct(t,n){return n??{x:t.x,y:t.y}}function _ct(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sct(){var t=bct,n=wct,r=xct,o=_ct,a={},u=$l("start","drag","end"),f=0,h,p,g,v,b=0;function x(E){E.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",T,yct).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(E,B){if(!(v||!t.call(this,E,B))){var K=R(this,n.call(this,E,B),E,B,"mouse");K&&(Cn(E.view).on("mousemove.drag",P,xl).on("mouseup.drag",A,xl),Yy(E.view),ef(E),g=!1,h=E.clientX,p=E.clientY,K("start",E))}}function P(E){if(Yo(E),!g){var B=E.clientX-h,K=E.clientY-p;g=B*B+K*K>b}a.mouse("drag",E)}function A(E){Cn(E.view).on("mousemove.drag mouseup.drag",null),Zy(E.view,g),Yo(E),a.mouse("end",E)}function L(E,B){if(t.call(this,E,B)){var K=E.changedTouches,ht=n.call(this,E,B),Y=K.length,et,st;for(et=0;et<Y;++et)(st=R(this,ht,E,B,K[et].identifier,K[et]))&&(ef(E),st("start",E,K[et]))}}function T(E){var B=E.changedTouches,K=B.length,ht,Y;for(ht=0;ht<K;++ht)(Y=a[B[ht].identifier])&&(Yo(E),Y("drag",E,B[ht]))}function M(E){var B=E.changedTouches,K=B.length,ht,Y;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ht=0;ht<K;++ht)(Y=a[B[ht].identifier])&&(ef(E),Y("end",E,B[ht]))}function R(E,B,K,ht,Y,et){var st=u.copy(),pt=$r(et||K,B),gt,V,z;if((z=r.call(E,new Bf("beforestart",{sourceEvent:K,target:x,identifier:Y,active:f,x:pt[0],y:pt[1],dx:0,dy:0,dispatch:st}),ht))!=null)return gt=z.x-pt[0]||0,V=z.y-pt[1]||0,function k(I,H,J){var yt=pt,Lt;switch(I){case"start":a[Y]=k,Lt=f++;break;case"end":delete a[Y],--f;case"drag":pt=$r(J||H,B),Lt=f;break}st.call(I,E,new Bf(I,{sourceEvent:H,subject:z,target:x,identifier:Y,active:Lt,x:pt[0]+gt,y:pt[1]+V,dx:pt[0]-yt[0],dy:pt[1]-yt[1],dispatch:st}),ht)}}return x.filter=function(E){return arguments.length?(t=typeof E=="function"?E:Ta(!!E),x):t},x.container=function(E){return arguments.length?(n=typeof E=="function"?E:Ta(E),x):n},x.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Ta(E),x):r},x.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Ta(!!E),x):o},x.on=function(){var E=u.on.apply(u,arguments);return E===u?x:E},x.clickDistance=function(E){return arguments.length?(b=(E=+E)*E,x):Math.sqrt(b)},x}function jh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function Jy(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function Rl(){}var _l=.7,cc=1/_l,Zo="\\s*([+-]?\\d+)\\s*",Sl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kct=/^#([0-9a-f]{3,8})$/,Cct=new RegExp(`^rgb\\(${Zo},${Zo},${Zo}\\)$`),Tct=new RegExp(`^rgb\\(${br},${br},${br}\\)$`),Ect=new RegExp(`^rgba\\(${Zo},${Zo},${Zo},${Sl}\\)$`),Lct=new RegExp(`^rgba\\(${br},${br},${br},${Sl}\\)$`),Act=new RegExp(`^hsl\\(${Sl},${br},${br}\\)$`),Mct=new RegExp(`^hsla\\(${Sl},${br},${br},${Sl}\\)$`),Fv={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(Rl,kl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Iv,formatHex:Iv,formatHex8:Nct,formatHsl:Pct,formatRgb:qv,toString:qv});function Iv(){return this.rgb().formatHex()}function Nct(){return this.rgb().formatHex8()}function Pct(){return Qy(this).formatHsl()}function qv(){return this.rgb().formatRgb()}function kl(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=kct.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?Hv(n):r===3?new Tn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?Ea(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?Ea(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Cct.exec(t))?new Tn(n[1],n[2],n[3],1):(n=Tct.exec(t))?new Tn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Ect.exec(t))?Ea(n[1],n[2],n[3],n[4]):(n=Lct.exec(t))?Ea(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Act.exec(t))?Uv(n[1],n[2]/100,n[3]/100,1):(n=Mct.exec(t))?Uv(n[1],n[2]/100,n[3]/100,n[4]):Fv.hasOwnProperty(t)?Hv(Fv[t]):t==="transparent"?new Tn(NaN,NaN,NaN,0):null}function Hv(t){return new Tn(t>>16&255,t>>8&255,t&255,1)}function Ea(t,n,r,o){return o<=0&&(t=n=r=NaN),new Tn(t,n,r,o)}function Oct(t){return t instanceof Rl||(t=kl(t)),t?(t=t.rgb(),new Tn(t.r,t.g,t.b,t.opacity)):new Tn}function Wf(t,n,r,o){return arguments.length===1?Oct(t):new Tn(t,n,r,o??1)}function Tn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}jh(Tn,Wf,Jy(Rl,{brighter(t){return t=t==null?cc:Math.pow(cc,t),new Tn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?_l:Math.pow(_l,t),new Tn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tn(Qi(this.r),Qi(this.g),Qi(this.b),uc(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:Bv,formatHex:Bv,formatHex8:Dct,formatRgb:Wv,toString:Wv}));function Bv(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}`}function Dct(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}${Xi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Wv(){const t=uc(this.opacity);return`${t===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${t===1?")":`, ${t})`}`}function uc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xi(t){return t=Qi(t),(t<16?"0":"")+t.toString(16)}function Uv(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new rr(t,n,r,o)}function Qy(t){if(t instanceof rr)return new rr(t.h,t.s,t.l,t.opacity);if(t instanceof Rl||(t=kl(t)),!t)return new rr;if(t instanceof rr)return t;t=t.rgb();var n=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(n,r,o),u=Math.max(n,r,o),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-n)/h+2:f=(n-r)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new rr(f,h,p,t.opacity)}function $ct(t,n,r,o){return arguments.length===1?Qy(t):new rr(t,n,r,o??1)}function rr(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}jh(rr,$ct,Jy(Rl,{brighter(t){return t=t==null?cc:Math.pow(cc,t),new rr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_l:Math.pow(_l,t),new rr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,a=2*r-o;return new Tn(nf(t>=240?t-240:t+120,a,o),nf(t,a,o),nf(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new rr(jv(this.h),La(this.s),La(this.l),uc(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 t=uc(this.opacity);return`${t===1?"hsl(":"hsla("}${jv(this.h)}, ${La(this.s)*100}%, ${La(this.l)*100}%${t===1?")":`, ${t})`}`}}));function jv(t){return t=(t||0)%360,t<0?t+360:t}function La(t){return Math.max(0,Math.min(1,t||0))}function nf(t,n,r){return(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)*255}const tb=t=>()=>t;function Rct(t,n){return function(r){return t+r*n}}function zct(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}function Fct(t){return(t=+t)==1?eb:function(n,r){return r-n?zct(n,r,t):tb(isNaN(n)?r:n)}}function eb(t,n){var r=n-t;return r?Rct(t,r):tb(isNaN(t)?n:t)}const Gv=function t(n){var r=Fct(n);function o(a,u){var f=r((a=Wf(a)).r,(u=Wf(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=eb(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=g(v),a+""}}return o.gamma=t,o}(1);function mi(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var Uf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rf=new RegExp(Uf.source,"g");function Ict(t){return function(){return t}}function qct(t){return function(n){return t(n)+""}}function Hct(t,n){var r=Uf.lastIndex=rf.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=Uf.exec(t))&&(a=rf.exec(n));)(u=a.index)>r&&(u=n.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:mi(o,a)})),r=rf.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?qct(p[0].x):Ict(n):(n=p.length,function(g){for(var v=0,b;v<n;++v)h[(b=p[v]).i]=b.x(g);return h.join("")})}var Vv=180/Math.PI,jf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nb(t,n,r,o,a,u){var f,h,p;return(f=Math.sqrt(t*t+n*n))&&(t/=f,n/=f),(p=t*r+n*o)&&(r-=t*p,o-=n*p),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,p/=h),t*o<n*r&&(t=-t,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,t)*Vv,skewX:Math.atan(p)*Vv,scaleX:f,scaleY:h}}var Aa;function Bct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?jf:nb(n.a,n.b,n.c,n.d,n.e,n.f)}function Wct(t){return t==null||(Aa||(Aa=document.createElementNS("http://www.w3.org/2000/svg","g")),Aa.setAttribute("transform",t),!(t=Aa.transform.baseVal.consolidate()))?jf:(t=t.matrix,nb(t.a,t.b,t.c,t.d,t.e,t.f))}function rb(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,v,b,x,S,P){if(g!==b||v!==x){var A=S.push("translate(",null,n,null,r);P.push({i:A-4,x:mi(g,b)},{i:A-2,x:mi(v,x)})}else(b||x)&&S.push("translate("+b+n+x+r)}function f(g,v,b,x){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),x.push({i:b.push(a(b)+"rotate(",null,o)-2,x:mi(g,v)})):v&&b.push(a(b)+"rotate("+v+o)}function h(g,v,b,x){g!==v?x.push({i:b.push(a(b)+"skewX(",null,o)-2,x:mi(g,v)}):v&&b.push(a(b)+"skewX("+v+o)}function p(g,v,b,x,S,P){if(g!==b||v!==x){var A=S.push(a(S)+"scale(",null,",",null,")");P.push({i:A-4,x:mi(g,b)},{i:A-2,x:mi(v,x)})}else(b!==1||x!==1)&&S.push(a(S)+"scale("+b+","+x+")")}return function(g,v){var b=[],x=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,b,x),f(g.rotate,v.rotate,b,x),h(g.skewX,v.skewX,b,x),p(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,x),g=v=null,function(S){for(var P=-1,A=x.length,L;++P<A;)b[(L=x[P]).i]=L.x(S);return b.join("")}}}var Uct=rb(Bct,"px, ","px)","deg)"),jct=rb(Wct,", ",")",")"),Gct=1e-12;function Kv(t){return((t=Math.exp(t))+1/t)/2}function Vct(t){return((t=Math.exp(t))-1/t)/2}function Kct(t){return((t=Math.exp(2*t))-1)/(t+1)}const Xct=function t(n,r,o){function a(u,f){var h=u[0],p=u[1],g=u[2],v=f[0],b=f[1],x=f[2],S=v-h,P=b-p,A=S*S+P*P,L,T;if(A<Gct)T=Math.log(x/g)/n,L=function(ht){return[h+ht*S,p+ht*P,g*Math.exp(n*ht*T)]};else{var M=Math.sqrt(A),R=(x*x-g*g+o*A)/(2*g*r*M),E=(x*x-g*g-o*A)/(2*x*r*M),B=Math.log(Math.sqrt(R*R+1)-R),K=Math.log(Math.sqrt(E*E+1)-E);T=(K-B)/n,L=function(ht){var Y=ht*T,et=Kv(B),st=g/(r*M)*(et*Kct(n*Y+B)-Vct(B));return[h+st*S,p+st*P,g*et/Kv(n*Y+B)]}}return L.duration=T*1e3*n/Math.SQRT2,L}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return t(f,h,p)},a}(Math.SQRT2,2,4);var us=0,el=0,Zs=0,ib=1e3,fc,nl,hc=0,io=0,Hc=0,Cl=typeof performance=="object"&&performance.now?performance:Date,ob=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Gh(){return io||(ob(Yct),io=Cl.now()+Hc)}function Yct(){io=0}function dc(){this._call=this._time=this._next=null}dc.prototype=Vh.prototype={constructor:dc,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Gh():+r)+(n==null?0:+n),!this._next&&nl!==this&&(nl?nl._next=this:fc=this,nl=this),this._call=t,this._time=r,Gf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gf())}};function Vh(t,n,r){var o=new dc;return o.restart(t,n,r),o}function Zct(){Gh(),++us;for(var t=fc,n;t;)(n=io-t._time)>=0&&t._call.call(void 0,n),t=t._next;--us}function Xv(){io=(hc=Cl.now())+Hc,us=el=0;try{Zct()}finally{us=0,Qct(),io=0}}function Jct(){var t=Cl.now(),n=t-hc;n>ib&&(Hc-=n,hc=t)}function Qct(){for(var t,n=fc,r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(r=n._next,n._next=null,n=t?t._next=r:fc=r);nl=t,Gf(o)}function Gf(t){if(!us){el&&(el=clearTimeout(el));var n=t-io;n>24?(t<1/0&&(el=setTimeout(Xv,t-Cl.now()-Hc)),Zs&&(Zs=clearInterval(Zs))):(Zs||(hc=Cl.now(),Zs=setInterval(Jct,ib)),us=1,ob(Xv))}}function Yv(t,n,r){var o=new dc;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var tut=$l("start","end","cancel","interrupt"),eut=[],sb=0,Zv=1,Vf=2,Ba=3,Jv=4,Kf=5,Wa=6;function Bc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;nut(t,r,{name:n,index:o,group:a,on:tut,tween:eut,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:sb})}function Kh(t,n){var r=sr(t,n);if(r.state>sb)throw new Error("too late; already scheduled");return r}function _r(t,n){var r=sr(t,n);if(r.state>Ba)throw new Error("too late; already running");return r}function sr(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function nut(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=Vh(u,0,r.time);function u(g){r.state=Zv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,b,x,S;if(r.state!==Zv)return p();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ba)return Yv(f);S.state===Jv?(S.state=Wa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<n&&(S.state=Wa,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if(Yv(function(){r.state===Ba&&(r.state=Jv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=Vf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Vf){for(r.state=Ba,a=new Array(x=r.tween.length),v=0,b=-1;v<x;++v)(S=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(p),r.state=Kf,1),b=-1,x=a.length;++b<x;)a[b].call(t,v);r.state===Kf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=Wa,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function Ua(t,n){var r=t.__transition,o,a,u=!0,f;if(r){n=n==null?null:n+"";for(f in r){if((o=r[f]).name!==n){u=!1;continue}a=o.state>Vf&&o.state<Kf,o.state=Wa,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function rut(t){return this.each(function(){Ua(this,t)})}function iut(t,n){var r,o;return function(){var a=_r(this,t),u=a.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===n){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function out(t,n,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=_r(this,t),f=u.tween;if(f!==o){a=(o=f).slice();for(var h={name:n,value:r},p=0,g=a.length;p<g;++p)if(a[p].name===n){a[p]=h;break}p===g&&a.push(h)}u.tween=a}}function sut(t,n){var r=this._id;if(t+="",arguments.length<2){for(var o=sr(this.node(),r).tween,a=0,u=o.length,f;a<u;++a)if((f=o[a]).name===t)return f.value;return null}return this.each((n==null?iut:out)(r,t,n))}function Xh(t,n,r){var o=t._id;return t.each(function(){var a=_r(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return sr(a,o).value[n]}}function lb(t,n){var r;return(typeof n=="number"?mi:n instanceof kl?Gv:(r=kl(n))?(n=r,Gv):Hct)(t,n)}function lut(t){return function(){this.removeAttribute(t)}}function aut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cut(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=n(o=f,r)}}function uut(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=n(o=f,r)}}function fut(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function hut(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function dut(t,n){var r=qc(t),o=r==="transform"?jct:lb;return this.attrTween(t,typeof n=="function"?(r.local?hut:fut)(r,o,Xh(this,"attr."+t,n)):n==null?(r.local?aut:lut)(r):(r.local?uut:cut)(r,o,n))}function put(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function gut(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function vut(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&gut(t,u)),r}return a._value=n,a}function mut(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&put(t,u)),r}return a._value=n,a}function yut(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var o=qc(t);return this.tween(r,(o.local?vut:mut)(o,n))}function but(t,n){return function(){Kh(this,t).delay=+n.apply(this,arguments)}}function wut(t,n){return n=+n,function(){Kh(this,t).delay=n}}function xut(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?but:wut)(n,t)):sr(this.node(),n).delay}function _ut(t,n){return function(){_r(this,t).duration=+n.apply(this,arguments)}}function Sut(t,n){return n=+n,function(){_r(this,t).duration=n}}function kut(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?_ut:Sut)(n,t)):sr(this.node(),n).duration}function Cut(t,n){if(typeof n!="function")throw new Error;return function(){_r(this,t).ease=n}}function Tut(t){var n=this._id;return arguments.length?this.each(Cut(n,t)):sr(this.node(),n).ease}function Eut(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;_r(this,t).ease=r}}function Lut(t){if(typeof t!="function")throw new Error;return this.each(Eut(this._id,t))}function Aut(t){typeof t!="function"&&(t=qy(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new Gr(o,this._parents,this._name,this._id)}function Mut(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,a=r.length,u=Math.min(o,a),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=r[h],v=p.length,b=f[h]=new Array(v),x,S=0;S<v;++S)(x=p[S]||g[S])&&(b[S]=x);for(;h<o;++h)f[h]=n[h];return new Gr(f,this._parents,this._name,this._id)}function Nut(t){return(t+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function Put(t,n,r){var o,a,u=Nut(n)?Kh:_r;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function Out(t,n){var r=this._id;return arguments.length<2?sr(this.node(),r).on.on(t):this.each(Put(r,t,n))}function Dut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function $ut(){return this.on("end.remove",Dut(this._id))}function Rut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=Wh(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++f)for(var h=o[f],p=h.length,g=u[f]=new Array(p),v,b,x=0;x<p;++x)(v=h[x])&&(b=t.call(v,v.__data__,x,h))&&("__data__"in v&&(b.__data__=v.__data__),g[x]=b,Bc(g[x],n,r,x,g,sr(v,r)));return new Gr(u,this._parents,n,r)}function zut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=Iy(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var p=o[h],g=p.length,v,b=0;b<g;++b)if(v=p[b]){for(var x=t.call(v,v.__data__,b,p),S,P=sr(v,r),A=0,L=x.length;A<L;++A)(S=x[A])&&Bc(S,n,r,A,x,P);u.push(x),f.push(v)}return new Gr(u,f,n,r)}var Fut=Dl.prototype.constructor;function Iut(){return new Fut(this._groups,this._parents)}function qut(t,n){var r,o,a;return function(){var u=cs(this,t),f=(this.style.removeProperty(t),cs(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function ab(t){return function(){this.style.removeProperty(t)}}function Hut(t,n,r){var o,a=r+"",u;return function(){var f=cs(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function But(t,n,r){var o,a,u;return function(){var f=cs(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),cs(this,t))),f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h))}}function Wut(t,n){var r,o,a,u="style."+n,f="end."+u,h;return function(){var p=_r(this,t),g=p.on,v=p.value[u]==null?h||(h=ab(n)):void 0;(g!==r||a!==v)&&(o=(r=g).copy()).on(f,a=v),p.on=o}}function Uut(t,n,r){var o=(t+="")=="transform"?Uct:lb;return n==null?this.styleTween(t,qut(t,o)).on("end.style."+t,ab(t)):typeof n=="function"?this.styleTween(t,But(t,o,Xh(this,"style."+t,n))).each(Wut(this._id,t)):this.styleTween(t,Hut(t,o,n),r).on("end.style."+t,null)}function jut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function Gut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&jut(t,f,r)),o}return u._value=n,u}function Vut(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(n==null)return this.tween(o,null);if(typeof n!="function")throw new Error;return this.tween(o,Gut(t,n,r??""))}function Kut(t){return function(){this.textContent=t}}function Xut(t){return function(){var n=t(this);this.textContent=n??""}}function Yut(t){return this.tween("text",typeof t=="function"?Xut(Xh(this,"text",t)):Kut(t==null?"":t+""))}function Zut(t){return function(n){this.textContent=t.call(this,n)}}function Jut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Zut(a)),n}return o._value=t,o}function Qut(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Jut(t))}function tft(){for(var t=this._name,n=this._id,r=cb(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)if(p=f[g]){var v=sr(p,n);Bc(p,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Gr(o,this._parents,t,r)}function eft(){var t,n,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};r.each(function(){var g=_r(this,o),v=g.on;v!==t&&(n=(t=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var nft=0;function Gr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function cb(){return++nft}var Or=Dl.prototype;Gr.prototype={constructor:Gr,select:Rut,selectAll:zut,selectChild:Or.selectChild,selectChildren:Or.selectChildren,filter:Aut,merge:Mut,selection:Iut,transition:tft,call:Or.call,nodes:Or.nodes,node:Or.node,size:Or.size,empty:Or.empty,each:Or.each,on:Out,attr:dut,attrTween:yut,style:Uut,styleTween:Vut,text:Yut,textTween:Qut,remove:$ut,tween:sut,delay:xut,duration:kut,ease:Tut,easeVarying:Lut,end:eft,[Symbol.iterator]:Or[Symbol.iterator]};function rft(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ift={time:null,delay:0,duration:250,ease:rft};function oft(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return r}function sft(t){var n,r;t instanceof Gr?(n=t._id,t=t._name):(n=cb(),(r=ift).time=Gh(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&Bc(p,t,n,g,f,r||oft(p,n));return new Gr(o,this._parents,t,n)}Dl.prototype.interrupt=rut;Dl.prototype.transition=sft;const Ma=t=>()=>t;function lft(t,{sourceEvent:n,target:r,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function zr(t,n,r){this.k=t,this.x=n,this.y=r}zr.prototype={constructor:zr,scale:function(t){return t===1?this:new zr(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new zr(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Yh=new zr(1,0,0);zr.prototype;function of(t){t.stopImmediatePropagation()}function Js(t){t.preventDefault(),t.stopImmediatePropagation()}function aft(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function cft(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Qv(){return this.__zoom||Yh}function uft(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function fft(){return navigator.maxTouchPoints||"ontouchstart"in this}function hft(t,n,r){var o=t.invertX(n[0][0])-r[0][0],a=t.invertX(n[1][0])-r[1][0],u=t.invertY(n[0][1])-r[0][1],f=t.invertY(n[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function dft(){var t=aft,n=cft,r=hft,o=uft,a=fft,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=Xct,g=$l("start","zoom","end"),v,b,x,S=500,P=150,A=0,L=10;function T(z){z.property("__zoom",Qv).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",et).on("dblclick.zoom",st).filter(a).on("touchstart.zoom",pt).on("touchmove.zoom",gt).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,I,H){var J=z.selection?z.selection():z;J.property("__zoom",Qv),z!==J?B(z,k,I,H):J.interrupt().each(function(){K(this,arguments).event(H).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,I,H){T.scaleTo(z,function(){var J=this.__zoom.k,yt=typeof k=="function"?k.apply(this,arguments):k;return J*yt},I,H)},T.scaleTo=function(z,k,I,H){T.transform(z,function(){var J=n.apply(this,arguments),yt=this.__zoom,Lt=I==null?E(J):typeof I=="function"?I.apply(this,arguments):I,qt=yt.invert(Lt),Ht=typeof k=="function"?k.apply(this,arguments):k;return r(R(M(yt,Ht),Lt,qt),J,f)},I,H)},T.translateBy=function(z,k,I,H){T.transform(z,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof I=="function"?I.apply(this,arguments):I),n.apply(this,arguments),f)},null,H)},T.translateTo=function(z,k,I,H,J){T.transform(z,function(){var yt=n.apply(this,arguments),Lt=this.__zoom,qt=H==null?E(yt):typeof H=="function"?H.apply(this,arguments):H;return r(Yh.translate(qt[0],qt[1]).scale(Lt.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof I=="function"?-I.apply(this,arguments):-I),yt,f)},H,J)};function M(z,k){return k=Math.max(u[0],Math.min(u[1],k)),k===z.k?z:new zr(k,z.x,z.y)}function R(z,k,I){var H=k[0]-I[0]*z.k,J=k[1]-I[1]*z.k;return H===z.x&&J===z.y?z:new zr(z.k,H,J)}function E(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function B(z,k,I,H){z.on("start.zoom",function(){K(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(H).end()}).tween("zoom",function(){var J=this,yt=arguments,Lt=K(J,yt).event(H),qt=n.apply(J,yt),Ht=I==null?E(qt):typeof I=="function"?I.apply(J,yt):I,Zt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),Xt=J.__zoom,jt=typeof k=="function"?k.apply(J,yt):k,Ct=p(Xt.invert(Ht).concat(Zt/Xt.k),jt.invert(Ht).concat(Zt/jt.k));return function(j){if(j===1)j=jt;else{var nt=Ct(j),ot=Zt/nt[2];j=new zr(ot,Ht[0]-nt[0]*ot,Ht[1]-nt[1]*ot)}Lt.zoom(null,j)}})}function K(z,k,I){return!I&&z.__zooming||new ht(z,k)}function ht(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=n.apply(z,k),this.taps=0}ht.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,k){return this.mouse&&z!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&z!=="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(z){var k=Cn(this.that).datum();g.call(z,this.that,new lft(z,{sourceEvent:this.sourceEvent,target:T,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function Y(z,...k){if(!t.apply(this,arguments))return;var I=K(this,k).event(z),H=this.__zoom,J=Math.max(u[0],Math.min(u[1],H.k*Math.pow(2,o.apply(this,arguments)))),yt=$r(z);if(I.wheel)(I.mouse[0][0]!==yt[0]||I.mouse[0][1]!==yt[1])&&(I.mouse[1]=H.invert(I.mouse[0]=yt)),clearTimeout(I.wheel);else{if(H.k===J)return;I.mouse=[yt,H.invert(yt)],Ua(this),I.start()}Js(z),I.wheel=setTimeout(Lt,P),I.zoom("mouse",r(R(M(H,J),I.mouse[0],I.mouse[1]),I.extent,f));function Lt(){I.wheel=null,I.end()}}function et(z,...k){if(x||!t.apply(this,arguments))return;var I=z.currentTarget,H=K(this,k,!0).event(z),J=Cn(z.view).on("mousemove.zoom",Ht,!0).on("mouseup.zoom",Zt,!0),yt=$r(z,I),Lt=z.clientX,qt=z.clientY;Yy(z.view),of(z),H.mouse=[yt,this.__zoom.invert(yt)],Ua(this),H.start();function Ht(Xt){if(Js(Xt),!H.moved){var jt=Xt.clientX-Lt,Ct=Xt.clientY-qt;H.moved=jt*jt+Ct*Ct>A}H.event(Xt).zoom("mouse",r(R(H.that.__zoom,H.mouse[0]=$r(Xt,I),H.mouse[1]),H.extent,f))}function Zt(Xt){J.on("mousemove.zoom mouseup.zoom",null),Zy(Xt.view,H.moved),Js(Xt),H.event(Xt).end()}}function st(z,...k){if(t.apply(this,arguments)){var I=this.__zoom,H=$r(z.changedTouches?z.changedTouches[0]:z,this),J=I.invert(H),yt=I.k*(z.shiftKey?.5:2),Lt=r(R(M(I,yt),H,J),n.apply(this,k),f);Js(z),h>0?Cn(this).transition().duration(h).call(B,Lt,H,z):Cn(this).call(T.transform,Lt,H,z)}}function pt(z,...k){if(t.apply(this,arguments)){var I=z.touches,H=I.length,J=K(this,k,z.changedTouches.length===H).event(z),yt,Lt,qt,Ht;for(of(z),Lt=0;Lt<H;++Lt)qt=I[Lt],Ht=$r(qt,this),Ht=[Ht,this.__zoom.invert(Ht),qt.identifier],J.touch0?!J.touch1&&J.touch0[2]!==Ht[2]&&(J.touch1=Ht,J.taps=0):(J.touch0=Ht,yt=!0,J.taps=1+!!v);v&&(v=clearTimeout(v)),yt&&(J.taps<2&&(b=Ht[0],v=setTimeout(function(){v=null},S)),Ua(this),J.start())}}function gt(z,...k){if(this.__zooming){var I=K(this,k).event(z),H=z.changedTouches,J=H.length,yt,Lt,qt,Ht;for(Js(z),yt=0;yt<J;++yt)Lt=H[yt],qt=$r(Lt,this),I.touch0&&I.touch0[2]===Lt.identifier?I.touch0[0]=qt:I.touch1&&I.touch1[2]===Lt.identifier&&(I.touch1[0]=qt);if(Lt=I.that.__zoom,I.touch1){var Zt=I.touch0[0],Xt=I.touch0[1],jt=I.touch1[0],Ct=I.touch1[1],j=(j=jt[0]-Zt[0])*j+(j=jt[1]-Zt[1])*j,nt=(nt=Ct[0]-Xt[0])*nt+(nt=Ct[1]-Xt[1])*nt;Lt=M(Lt,Math.sqrt(j/nt)),qt=[(Zt[0]+jt[0])/2,(Zt[1]+jt[1])/2],Ht=[(Xt[0]+Ct[0])/2,(Xt[1]+Ct[1])/2]}else if(I.touch0)qt=I.touch0[0],Ht=I.touch0[1];else return;I.zoom("touch",r(R(Lt,qt,Ht),I.extent,f))}}function V(z,...k){if(this.__zooming){var I=K(this,k).event(z),H=z.changedTouches,J=H.length,yt,Lt;for(of(z),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),yt=0;yt<J;++yt)Lt=H[yt],I.touch0&&I.touch0[2]===Lt.identifier?delete I.touch0:I.touch1&&I.touch1[2]===Lt.identifier&&delete I.touch1;if(I.touch1&&!I.touch0&&(I.touch0=I.touch1,delete I.touch1),I.touch0)I.touch0[1]=this.__zoom.invert(I.touch0[0]);else if(I.end(),I.taps===2&&(Lt=$r(Lt,this),Math.hypot(b[0]-Lt[0],b[1]-Lt[1])<L)){var qt=Cn(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return T.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:Ma(+z),T):o},T.filter=function(z){return arguments.length?(t=typeof z=="function"?z:Ma(!!z),T):t},T.touchable=function(z){return arguments.length?(a=typeof z=="function"?z:Ma(!!z),T):a},T.extent=function(z){return arguments.length?(n=typeof z=="function"?z:Ma([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),T):n},T.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],T):[u[0],u[1]]},T.translateExtent=function(z){return arguments.length?(f[0][0]=+z[0][0],f[1][0]=+z[1][0],f[0][1]=+z[0][1],f[1][1]=+z[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(z){return arguments.length?(r=z,T):r},T.duration=function(z){return arguments.length?(h=+z,T):h},T.interpolate=function(z){return arguments.length?(p=z,T):p},T.on=function(){var z=g.on.apply(g,arguments);return z===g?T:z},T.clickDistance=function(z){return arguments.length?(A=(z=+z)*z,T):Math.sqrt(A)},T.tapDistance=function(z){return arguments.length?(L=+z,T):L},T}function pft(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return ub(this.cover(n,r),n,r,t)}function ub(t,n,r,o){if(isNaN(n)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,p=t._y0,g=t._x1,v=t._y1,b,x,S,P,A,L,T,M;if(!u)return t._root=f,t;for(;u.length;)if((A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+v)/2))?p=x:v=x,a=u,!(u=u[T=L<<1|A]))return a[T]=f,t;if(S=+t._x.call(null,u.data),P=+t._y.call(null,u.data),n===S&&r===P)return f.next=u,a?a[T]=f:t._root=f,t;do a=a?a[T]=new Array(4):t._root=new Array(4),(A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+v)/2))?p=x:v=x;while((T=L<<1|A)===(M=(P>=x)<<1|S>=b));return a[M]=u,a[T]=f,t}function gft(t){var n,r,o=t.length,a,u,f=new Array(o),h=new Array(o),p=1/0,g=1/0,v=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,n=t[r]))||isNaN(u=+this._y.call(null,n))||(f[r]=a,h[r]=u,a<p&&(p=a),a>v&&(v=a),u<g&&(g=u),u>b&&(b=u));if(p>v||g>b)return this;for(this.cover(p,g).cover(v,b),r=0;r<o;++r)ub(this,f[r],h[r],t[r]);return this}function vft(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var f=a-r||1,h=this._root,p,g;r>t||t>=a||o>n||n>=u;)switch(g=(n<o)<<1|t<r,p=new Array(4),p[g]=h,h=p,f*=2,g){case 0:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function mft(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function yft(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,n,r,o,a){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=a}function bft(t,n,r){var o,a=this._x0,u=this._y0,f,h,p,g,v=this._x1,b=this._y1,x=[],S=this._root,P,A;for(S&&x.push(new dn(S,a,u,v,b)),r==null?r=1/0:(a=t-r,u=n-r,v=t+r,b=n+r,r*=r);P=x.pop();)if(!(!(S=P.node)||(f=P.x0)>v||(h=P.y0)>b||(p=P.x1)<a||(g=P.y1)<u))if(S.length){var L=(f+p)/2,T=(h+g)/2;x.push(new dn(S[3],L,T,p,g),new dn(S[2],f,T,L,g),new dn(S[1],L,h,p,T),new dn(S[0],f,h,L,T)),(A=(n>=T)<<1|t>=L)&&(P=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=P)}else{var M=t-+this._x.call(null,S.data),R=n-+this._y.call(null,S.data),E=M*M+R*R;if(E<r){var B=Math.sqrt(r=E);a=t-B,u=n-B,v=t+B,b=n+B,o=S.data}}return o}function wft(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,r=this._root,o,a,u,f=this._x0,h=this._y0,p=this._x1,g=this._y1,v,b,x,S,P,A,L,T;if(!r)return this;if(r.length)for(;;){if((P=v>=(x=(f+p)/2))?f=x:p=x,(A=b>=(S=(h+g)/2))?h=S:g=S,n=r,!(r=r[L=A<<1|P]))return this;if(!r.length)break;(n[L+1&3]||n[L+2&3]||n[L+3&3])&&(o=n,T=L)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,a?(u?a.next=u:delete a.next,this):n?(u?n[L]=u:delete n[L],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=u,this)}function xft(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function _ft(){return this._root}function Sft(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function kft(t){var n=[],r,o=this._root,a,u,f,h,p;for(o&&n.push(new dn(o,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,p=r.y1)&&o.length){var g=(u+h)/2,v=(f+p)/2;(a=o[3])&&n.push(new dn(a,g,v,h,p)),(a=o[2])&&n.push(new dn(a,u,v,g,p)),(a=o[1])&&n.push(new dn(a,g,f,h,v)),(a=o[0])&&n.push(new dn(a,u,f,g,v))}return this}function Cft(t){var n=[],r=[],o;for(this._root&&n.push(new dn(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var a=o.node;if(a.length){var u,f=o.x0,h=o.y0,p=o.x1,g=o.y1,v=(f+p)/2,b=(h+g)/2;(u=a[0])&&n.push(new dn(u,f,h,v,b)),(u=a[1])&&n.push(new dn(u,v,h,p,b)),(u=a[2])&&n.push(new dn(u,f,b,v,g)),(u=a[3])&&n.push(new dn(u,v,b,p,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Tft(t){return t[0]}function Eft(t){return arguments.length?(this._x=t,this):this._x}function Lft(t){return t[1]}function Aft(t){return arguments.length?(this._y=t,this):this._y}function Zh(t,n,r){var o=new Jh(n??Tft,r??Lft,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function Jh(t,n,r,o,a,u){this._x=t,this._y=n,this._x0=r,this._y0=o,this._x1=a,this._y1=u,this._root=void 0}function tm(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=Zh.prototype=Jh.prototype;vn.copy=function(){var t=new Jh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,o;if(!n)return t;if(!n.length)return t._root=tm(n),t;for(r=[{source:n,target:t._root=new Array(4)}];n=r.pop();)for(var a=0;a<4;++a)(o=n.source[a])&&(o.length?r.push({source:o,target:n.target[a]=new Array(4)}):n.target[a]=tm(o));return t};vn.add=pft;vn.addAll=gft;vn.cover=vft;vn.data=mft;vn.extent=yft;vn.find=bft;vn.remove=wft;vn.removeAll=xft;vn.root=_ft;vn.size=Sft;vn.visit=kft;vn.visitAfter=Cft;vn.x=Eft;vn.y=Aft;function pn(t){return function(){return t}}function bi(t){return(t()-.5)*1e-6}function Mft(t){return t.x+t.vx}function Nft(t){return t.y+t.vy}function Pft(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=pn(t==null?1:+t));function f(){for(var g,v=n.length,b,x,S,P,A,L,T=0;T<u;++T)for(b=Zh(n,Mft,Nft).visitAfter(h),g=0;g<v;++g)x=n[g],A=r[x.index],L=A*A,S=x.x+x.vx,P=x.y+x.vy,b.visit(M);function M(R,E,B,K,ht){var Y=R.data,et=R.r,st=A+et;if(Y){if(Y.index>x.index){var pt=S-Y.x-Y.vx,gt=P-Y.y-Y.vy,V=pt*pt+gt*gt;V<st*st&&(pt===0&&(pt=bi(o),V+=pt*pt),gt===0&&(gt=bi(o),V+=gt*gt),V=(st-(V=Math.sqrt(V)))/V*a,x.vx+=(pt*=V)*(st=(et*=et)/(L+et)),x.vy+=(gt*=V)*st,Y.vx-=pt*(st=1-st),Y.vy-=gt*st)}return}return E>S+st||K<S-st||B>P+st||ht<P-st}}function h(g){if(g.data)return g.r=r[g.data.index];for(var v=g.r=0;v<4;++v)g[v]&&g[v].r>g.r&&(g.r=g[v].r)}function p(){if(n){var g,v=n.length,b;for(r=new Array(v),g=0;g<v;++g)b=n[g],r[b.index]=+t(b,g,n)}}return f.initialize=function(g,v){n=g,o=v,p()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(a=+g,f):a},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:pn(+g),p(),f):t},f}function Oft(t){return t.index}function em(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function Dft(t){var n=Oft,r=b,o,a=pn(30),u,f,h,p,g,v=1;t==null&&(t=[]);function b(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function x(L){for(var T=0,M=t.length;T<v;++T)for(var R=0,E,B,K,ht,Y,et,st;R<M;++R)E=t[R],B=E.source,K=E.target,ht=K.x+K.vx-B.x-B.vx||bi(g),Y=K.y+K.vy-B.y-B.vy||bi(g),et=Math.sqrt(ht*ht+Y*Y),et=(et-u[R])/et*L*o[R],ht*=et,Y*=et,K.vx-=ht*(st=p[R]),K.vy-=Y*st,B.vx+=ht*(st=1-st),B.vy+=Y*st}function S(){if(f){var L,T=f.length,M=t.length,R=new Map(f.map((B,K)=>[n(B,K,f),B])),E;for(L=0,h=new Array(T);L<M;++L)E=t[L],E.index=L,typeof E.source!="object"&&(E.source=em(R,E.source)),typeof E.target!="object"&&(E.target=em(R,E.target)),h[E.source.index]=(h[E.source.index]||0)+1,h[E.target.index]=(h[E.target.index]||0)+1;for(L=0,p=new Array(M);L<M;++L)E=t[L],p[L]=h[E.source.index]/(h[E.source.index]+h[E.target.index]);o=new Array(M),P(),u=new Array(M),A()}}function P(){if(f)for(var L=0,T=t.length;L<T;++L)o[L]=+r(t[L],L,t)}function A(){if(f)for(var L=0,T=t.length;L<T;++L)u[L]=+a(t[L],L,t)}return x.initialize=function(L,T){f=L,g=T,S()},x.links=function(L){return arguments.length?(t=L,S(),x):t},x.id=function(L){return arguments.length?(n=L,x):n},x.iterations=function(L){return arguments.length?(v=+L,x):v},x.strength=function(L){return arguments.length?(r=typeof L=="function"?L:pn(+L),P(),x):r},x.distance=function(L){return arguments.length?(a=typeof L=="function"?L:pn(+L),A(),x):a},x}const $ft=1664525,Rft=1013904223,nm=4294967296;function zft(){let t=1;return()=>(t=($ft*t+Rft)%nm)/nm}function Fft(t){return t.x}function Ift(t){return t.y}var qft=10,Hft=Math.PI*(3-Math.sqrt(5));function Bft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=Vh(b),g=$l("tick","end"),v=zft();t==null&&(t=[]);function b(){x(),g.call("tick",n),r<o&&(p.stop(),g.call("end",n))}function x(A){var L,T=t.length,M;A===void 0&&(A=1);for(var R=0;R<A;++R)for(r+=(u-r)*a,h.forEach(function(E){E(r)}),L=0;L<T;++L)M=t[L],M.fx==null?M.x+=M.vx*=f:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=f:(M.y=M.fy,M.vy=0);return n}function S(){for(var A=0,L=t.length,T;A<L;++A){if(T=t[A],T.index=A,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var M=qft*Math.sqrt(.5+A),R=A*Hft;T.x=M*Math.cos(R),T.y=M*Math.sin(R)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function P(A){return A.initialize&&A.initialize(t,v),A}return S(),n={tick:x,restart:function(){return p.restart(b),n},stop:function(){return p.stop(),n},nodes:function(A){return arguments.length?(t=A,S(),h.forEach(P),n):t},alpha:function(A){return arguments.length?(r=+A,n):r},alphaMin:function(A){return arguments.length?(o=+A,n):o},alphaDecay:function(A){return arguments.length?(a=+A,n):+a},alphaTarget:function(A){return arguments.length?(u=+A,n):u},velocityDecay:function(A){return arguments.length?(f=1-A,n):1-f},randomSource:function(A){return arguments.length?(v=A,h.forEach(P),n):v},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,P(L)),n):h.get(A)},find:function(A,L,T){var M=0,R=t.length,E,B,K,ht,Y;for(T==null?T=1/0:T*=T,M=0;M<R;++M)ht=t[M],E=A-ht.x,B=L-ht.y,K=E*E+B*B,K<T&&(Y=ht,T=K);return Y},on:function(A,L){return arguments.length>1?(g.on(A,L),n):g.on(A)}}}function Wft(){var t,n,r,o,a=pn(-30),u,f=1,h=1/0,p=.81;function g(S){var P,A=t.length,L=Zh(t,Fft,Ift).visitAfter(b);for(o=S,P=0;P<A;++P)n=t[P],L.visit(x)}function v(){if(t){var S,P=t.length,A;for(u=new Array(P),S=0;S<P;++S)A=t[S],u[A.index]=+a(A,S,t)}}function b(S){var P=0,A,L,T=0,M,R,E;if(S.length){for(M=R=E=0;E<4;++E)(A=S[E])&&(L=Math.abs(A.value))&&(P+=A.value,T+=L,M+=L*A.x,R+=L*A.y);S.x=M/T,S.y=R/T}else{A=S,A.x=A.data.x,A.y=A.data.y;do P+=u[A.data.index];while(A=A.next)}S.value=P}function x(S,P,A,L){if(!S.value)return!0;var T=S.x-n.x,M=S.y-n.y,R=L-P,E=T*T+M*M;if(R*R/p<E)return E<h&&(T===0&&(T=bi(r),E+=T*T),M===0&&(M=bi(r),E+=M*M),E<f&&(E=Math.sqrt(f*E)),n.vx+=T*S.value*o/E,n.vy+=M*S.value*o/E),!0;if(S.length||E>=h)return;(S.data!==n||S.next)&&(T===0&&(T=bi(r),E+=T*T),M===0&&(M=bi(r),E+=M*M),E<f&&(E=Math.sqrt(f*E)));do S.data!==n&&(R=u[S.data.index]*o/E,n.vx+=T*R,n.vy+=M*R);while(S=S.next)}return g.initialize=function(S,P){t=S,r=P,v()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:pn(+S),v(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(p=S*S,g):Math.sqrt(p)},g}function Uft(t){var n=pn(.1),r,o,a;typeof t!="function"&&(t=pn(t==null?0:+t));function u(h){for(var p=0,g=r.length,v;p<g;++p)v=r[p],v.vx+=(a[p]-v.x)*o[p]*h}function f(){if(r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:pn(+h),f(),u):n},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:pn(+h),f(),u):t},u}function jft(t){var n=pn(.1),r,o,a;typeof t!="function"&&(t=pn(t==null?0:+t));function u(h){for(var p=0,g=r.length,v;p<g;++p)v=r[p],v.vy+=(a[p]-v.y)*o[p]*h}function f(){if(r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:pn(+h),f(),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:pn(+h),f(),u):t},u}var Gft=Object.defineProperty,Vft=(t,n,r)=>n in t?Gft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Pe=(t,n,r)=>(Vft(t,typeof n!="symbol"?n+"":n,r),r);function Kft(){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 rm(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}function wi(...t){return t.reduce((n,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(n[o])&&Array.isArray(r[o])?n[o]=wi.options.mergeArrays?Array.from(new Set(n[o].concat(r[o]))):r[o]:rm(n[o])&&rm(r[o])?n[o]=wi(n[o],r[o]):n[o]=r[o])}),n},{})}const fb={mergeArrays:!0};wi.options=fb;wi.withOptions=(t,...n)=>{wi.options={mergeArrays:!0,...t};const r=wi(...n);return wi.options=fb,r};function Xft(){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 Yft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function hb(t){t.preventDefault(),t.stopPropagation()}function db(t){return typeof t=="number"}function Ti(t,n){return db(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function Zft(t){return`${t.source.id}-${t.target.id}`}function pb(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function Jft(t){return`url(#${pb(t.color)})`}function Qft(t){return{size:t,padding:(n,r)=>Ti(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const gb={Arrow:t=>Qft(t)},tht=(t,n,r)=>[n/2,r/2],vb=(t,n,r)=>[im(0,n),im(0,r)];function im(t,n){return Math.random()*(n-t)+t}function eht(t){const n=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,a)=>{const[u,f]=n[r.id]??[];return!u||!f?vb(r,o,a):[u,f]}}const Xf={Centered:tht,Randomized:vb,Stable:eht};function nht(){return{autoResize:!1,callbacks:{},hooks:{},initial:Yft(),nodeRadius:16,marker:gb.Arrow(4),modifiers:{},positionInitializer:Xf.Centered,simulation:{alphas:Kft(),forces:Xft()},zoom:{initial:1,min:.1,max:2}}}function rht(t={}){return wi.withOptions({mergeArrays:!1},nht(),t)}function iht({applyZoom:t,container:n,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,offset:[u,f],scale:h,zoom:p}){const g=n.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(p).on("contextmenu",v=>hb(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=>a==null?void 0:a(v)).style("cursor","grab");return t&&g.call(p.transform,Yh.translate(u,f).scale(h)),g.append("g")}function oht({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function sht({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Sct().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&n(f,h),Cn(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),Cn(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(a=(o=t.modifiers).drag)==null||a.call(o,u),u}function lht({graph:t,filter:n,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(p=>n.includes(p.source.type)&&n.includes(p.target.type)&&a(p)),f=p=>u.find(g=>g.source.id===p.id||g.target.id===p.id)!==void 0,h=t.nodes.filter(p=>n.includes(p.type)&&(o||f(p)));return r===void 0||!n.includes(r.type)?{nodes:h,links:u}:aht({nodes:h,links:u},r)}function aht(t,n){const r=[...cht(t,n),...uht(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function cht(t,n){return mb(t,n,(r,o)=>r.target.id===o.id)}function uht(t,n){return mb(t,n,(r,o)=>r.source.id===o.id)}function mb(t,n,r){const o=new Set(t.links),a=new Set([n]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(p=>r(h,p)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function Yf(t){return t.x??0}function Zf(t){return t.y??0}function Qh({source:t,target:n}){const r=new hn(Yf(t),Zf(t)),o=new hn(Yf(n),Zf(n)),a=o.subtract(r),u=a.length(),f=a.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function yb({center:t,node:n}){const r=new hn(Yf(n),Zf(n));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new hn(0,1))),{n:r,c:o}}function bb({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=Qh({config:t,source:n,target:r}),f=o.add(u.multiply(Ti(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function fht(t){const{start:n,end:r}=bb(t);return`M${n.x},${n.y}
31
+ L${r.x},${r.y}`}function hht(t){const{start:n,end:r}=bb(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function dht({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=Qh({config:t,source:n,target:r}),p=10,g=f.rotateByDegrees(-p).multiply(Ti(t,n)-1).add(o),v=h.rotateByDegrees(p).multiply(Ti(t,r)).add(a).add(h.rotateByDegrees(p).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
32
+ A${b},${b},0,0,1,${v.x},${v.y}`}function pht({center:t,config:n,node:r}){const{n:o,c:a}=yb({center:t,config:n,node:r}),u=Ti(n,r),f=o.subtract(a),h=f.multiply(1/f.length()),p=40,g=h.rotateByDegrees(p).multiply(u-1).add(o),v=h.rotateByDegrees(-p).multiply(u).add(o).add(h.rotateByDegrees(-p).multiply(2*n.marker.size));return`M${g.x},${g.y}
33
+ A${u},${u},0,1,0,${v.x},${v.y}`}function ght({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=Qh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function vht({center:t,config:n,node:r}){const{n:o,c:a}=yb({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*Ti(n,r)+8).add(o);return`translate(${f.x},${f.y})`}const Jo={line:{labelTransform:hht,path:fht},arc:{labelTransform:ght,path:dht},reflexive:{labelTransform:vht,path:pht}};function mht(t){return t.append("g").classed("links",!0).selectAll("path")}function yht({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>Zft(u)).join(u=>{var f,h,p,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>Jft(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const x=v.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(p=t.modifiers).linkLabel)==null||g.call(p,x),v});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function bht(t){wht(t),xht(t)}function wht({center:t,config:n,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"":a.source.id===a.target.id?Jo.reflexive.path({config:n,node:a.source,center:t}):wb(r,a.source,a.target)?Jo.arc.path({config:n,source:a.source,target:a.target}):Jo.line.path({config:n,source:a.source,target:a.target}))}function xht({config:t,center:n,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"translate(0, 0)":a.source.id===a.target.id?Jo.reflexive.labelTransform({config:t,node:a.source,center:n}):wb(r,a.source,a.target)?Jo.arc.labelTransform({config:t,source:a.source,target:a.target}):Jo.line.labelTransform({config:t,source:a.source,target:a.target}))}function wb(t,n,r){return n.id!==r.id&&t.links.some(o=>o.target.id===n.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===n.id)}function _ht(t){return t.append("defs").selectAll("marker")}function Sht({config:t,graph:n,selection:r}){return r==null?void 0:r.data(kht(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>pb(u)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",u=>u);return a.append("path").attr("d",Cht(t.marker.path)),a})}function kht(t){return[...new Set(t.links.map(n=>n.color))]}function Cht(t){const[n,...r]=t;if(!n)return"M0,0";const[o,a]=n;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${a}`)}function Tht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Eht({config:t,drag:n,graph:r,onNodeContext:o,onNodeSelected:a,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,p=>p.id).join(p=>{var g,v,b,x;const S=p.append("g");n!==void 0&&S.call(n);const P=S.append("circle").classed("node",!0).attr("r",L=>Ti(t,L)).on("contextmenu",(L,T)=>{hb(L),o(T)}).on("pointerdown",(L,T)=>Aht(L,T,a??o)).style("fill",L=>L.color);(v=(g=t.modifiers).node)==null||v.call(g,P);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(x=(b=t.modifiers).nodeLabel)==null||x.call(b,A),S});return h==null||h.select(".node").classed("focused",p=>p.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Lht=500;function Aht(t,n,r){if(t.button!==void 0&&t.button!==0)return;const o=n.lastInteractionTimestamp,a=Date.now();if(o===void 0||a-o>Lht){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function Mht(t){t==null||t.attr("transform",n=>`translate(${n.x??0},${n.y??0})`)}function Nht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=Bft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",Uft(()=>t().x).strength(b)).force("y",jft(()=>t().y).strength(b))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",Wft().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",Pft().radius(b=>g.radiusMultiplier*Ti(n,b)));const v=n.simulation.forces.link;return v&&v.enabled&&f.force("link",Dft(r.links).id(b=>b.id).distance(n.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(a=n.modifiers).simulation)==null||u.call(a,f),f}function Pht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=dft().scaleExtent([r,o]).filter(p=>{var g;return p.button===0||((g=p.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",p=>a(p)).on("end",()=>t().classed("grabbed",!1));return(f=(u=n.modifiers).zoom)==null||f.call(u,h),h}class Oht{constructor(n,r,o){if(Pe(this,"nodeTypes"),Pe(this,"_nodeTypeFilter"),Pe(this,"_includeUnlinked",!0),Pe(this,"_linkFilter",()=>!0),Pe(this,"_showLinkLabels",!0),Pe(this,"_showNodeLabels",!0),Pe(this,"filteredGraph"),Pe(this,"width",0),Pe(this,"height",0),Pe(this,"simulation"),Pe(this,"canvas"),Pe(this,"linkSelection"),Pe(this,"nodeSelection"),Pe(this,"markerSelection"),Pe(this,"zoom"),Pe(this,"drag"),Pe(this,"xOffset",0),Pe(this,"yOffset",0),Pe(this,"scale"),Pe(this,"focusedNode"),Pe(this,"resizeObserver"),this.container=n,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{const[u,f]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=a.x??u,a.y=a.y??f}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:p}=o.initial;this._includeUnlinked=a??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=p??this._showNodeLabels,this._nodeTypeFilter=u??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($lt(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(n){this._includeUnlinked=n,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,a=n?r:o;this.restart(a)}set linkFilter(n){this._linkFilter=n,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(n){this._showNodeLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,a=n?o:r;this.restart(a)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(n){this._showLinkLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,a=n?o:r;this.restart(a)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return hn.of([this.width,this.height]).divide(2).subtract(hn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const n=this.width,r=this.height,o=this.container.getBoundingClientRect().width,a=this.container.getBoundingClientRect().height,u=n.toFixed()!==o.toFixed(),f=r.toFixed()!==a.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(db(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Sht({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=yht({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Eht({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=Nht({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(n).restart()}filterNodesByType(n,r){n?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 n,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(n=this.resizeObserver)==null||n.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Pht({config:this.config,canvasContainer:()=>Cn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:n=>this.onZoom(n)}),this.canvas=iht({applyZoom:this.scale!==1,container:Cn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=mht(this.canvas),this.nodeSelection=Tht(this.canvas),this.markerSelection=_ht(this.canvas),this.drag=sht({config:this.config,onDragStart:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Mht(this.nodeSelection),bht({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var n;(n=this.simulation)==null||n.stop(),Cn(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(n){var r,o,a;this.xOffset=n.transform.x,this.yOffset=n.transform.y,this.scale=n.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(a=this.simulation)==null||a.restart()}applyZoom(){oht({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(n){n.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(n))):this.focusNode(n)}focusNode(n){this.filterGraph(n),this.restart(this.config.simulation.alphas.focus.acquire(n))}filterGraph(n){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),n!==void 0&&this._nodeTypeFilter.includes(n.type)&&(n.isFocused=!0,this.focusedNode=n),this.filteredGraph=lht({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function om({nodes:t,links:n}){return{nodes:t??[],links:n??[]}}function Dht(t){return{...t}}function xb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const $ht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Rht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},zht=["id","checked","onChange"],Fht=["for"],Iht=ct("div",{"flex-auto":""},null,-1),qht=re({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const n=t,{graph:r}=f1(n),o=Yt(),a=Yt(!1),u=Yt(),f=Yt();mh(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ps(()=>{g()}),bh(()=>{var b;(b=f.value)==null||b.shutdown()}),De(r,g);function h(b,x){var S;(S=f.value)==null||S.filterNodesByType(x,b)}function p(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Oht(o.value,r.value,rht({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:S})=>x===0&&S===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:gb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Xf.Randomized:Xf.Centered,zoom:{min:.5,max:2}})))}function v(b){if(Ur)return;const x=L=>L.button===0;let S=0,P=0,A=0;b.on("pointerdown",(L,T)=>{T.type!=="external"&&(!T.x||!T.y||!x(L)||(S=T.x,P=T.y,A=Date.now()))}).on("pointerup",(L,T)=>{if(T.type==="external"||!T.x||!T.y||!x(L)||Date.now()-A>500)return;const M=T.x-S,R=T.y-P;M**2+R**2<100&&p(T.id)})}return(b,x)=>{var T;const S=vs,P=Dlt,A=_lt,L=lo("tooltip");return ut(),At("div",$ht,[ct("div",null,[ct("div",Rht,[(ut(!0),At(ue,null,nr((T=U(f))==null?void 0:T.nodeTypes.sort(),M=>{var R;return ut(),At("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ct("input",{id:`type-${M}`,type:"checkbox",checked:(R=U(f))==null?void 0:R.nodeTypeFilter.includes(M),onChange:E=>h(M,E.target.checked)},null,40,zht),ct("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${M}`,"border-b-2":"",style:En({"border-color":`var(--color-node-${M})`})},ne(M)+" Modules",13,Fht)])}),128)),Iht,ct("div",null,[tn(It(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ct("div",{ref_key:"el",ref:o},null,512),It(A,{modelValue:U(a),"onUpdate:modelValue":x[1]||(x[1]=M=>Ee(a)?a.value=M:null),direction:"right"},{default:Jt(()=>[U(u)?(ut(),Qt(M1,{key:0},{default:Jt(()=>[It(P,{id:U(u),onClose:x[0]||(x[0]=M=>a.value=!1)},null,8,["id"])]),_:1})):ee("",!0)]),_:1},8,["modelValue"])])}}}),Hht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Bht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Wht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Uht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},jht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Ght={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},td=re({__name:"StatusIcon",props:{task:{}},setup(t){return(n,r)=>{var a,u,f;const o=lo("tooltip");return((a=n.task.result)==null?void 0:a.state)==="pass"?(ut(),At("div",Hht)):U(Rc)(n.task)?tn((ut(),At("div",Bht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=n.task.result)==null?void 0:u.state)==="fail"?(ut(),At("div",Wht)):n.task.mode==="todo"?tn((ut(),At("div",Uht,null,512)),[[o,"Todo",void 0,{right:!0}]]):n.task.mode==="skip"||((f=n.task.result)==null?void 0:f.state)==="skip"?tn((ut(),At("div",jht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ut(),At("div",Ght))}}});function Vht(t){const n=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:p}=u;if(p){a++;const{raw:b,candidate:x}=u;n.set(b,x);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,a===t.length)break}return n}function Kht(t){let n=t;n.includes("/node_modules/")&&(n=t.split(/\/node_modules\//g).pop());const r=n.split(/\//g);return{raw:n,splits:r,candidate:"",finished:!1,id:t}}function Xht(t){const n=t.map(o=>Kht(o)),r=Vht(n);return n.map(({raw:o,id:a})=>xb({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:a,type:"external"}))}function Yht(t,n){return xb({color:n?"var(--color-node-root)":"var(--color-node-inline)",label:{color:n?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function Zht(t,n){if(!t)return om({});const r=Xht(t.externalized),o=t.inlined.map(h=>Yht(h,h===n))??[],a=[...r,...o],u=Object.fromEntries(a.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,p])=>p.map(g=>{const v=u[h],b=u[g];if(!(v===void 0||b===void 0))return Dht({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return om({nodes:a,links:f})}const Jht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Qht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},tdt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},edt={class:"flex text-lg"},ndt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},rdt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},idt=["flex-1"],odt=re({__name:"FileDetails",setup(t){const n=Yt({externalized:[],graph:{},inlined:[]}),r=Yt({nodes:[],links:[]}),o=Yt(!1),a=Yt(!1);nT(_e,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(n.value=await je.rpc.getModuleGraph(g.filepath),r.value=Zht(n.value,g.filepath))},{debounce:100,immediate:!0});function u(){var v;const g=(v=_e.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)}function f(g){g==="graph"&&(a.value=!0),Jn.value=g}const h=xt(()=>{var g;return((g=hy.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function p(g){o.value=g}return(g,v)=>{var M,R;const b=td,x=vs,S=qht,P=xlt,A=glt,L=rlt,T=lo("tooltip");return U(_e)?(ut(),At("div",Jht,[ct("div",null,[ct("div",Qht,[It(b,{task:U(_e)},null,8,["task"]),ct("div",tdt,ne((M=U(_e))==null?void 0:M.filepath),1),ct("div",edt,[U(Ur)?ee("",!0):tn((ut(),Qt(x,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=U(_e))!=null&&R.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),ct("div",ndt,[ct("button",{"tab-button":"",class:ve({"tab-button-active":U(Jn)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=E=>f(null))}," Report ",2),ct("button",{"tab-button":"","data-testid":"btn-graph",class:ve({"tab-button-active":U(Jn)==="graph"}),onClick:v[1]||(v[1]=E=>f("graph"))}," Module Graph ",2),U(Ur)?ee("",!0):(ut(),At("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ve({"tab-button-active":U(Jn)==="editor"}),onClick:v[2]||(v[2]=E=>f("editor"))},ne(U(o)?"* ":"")+"Code ",3)),ct("button",{"tab-button":"","data-testid":"btn-console",class:ve({"tab-button-active":U(Jn)==="console",op20:U(Jn)!=="console"&&U(h)===0}),onClick:v[3]||(v[3]=E=>f("console"))}," Console ("+ne(U(h))+") ",3)])]),ct("div",rdt,[U(a)?(ut(),At("div",{key:0,"flex-1":U(Jn)==="graph"&&""},[tn(It(S,{graph:U(r),"data-testid":"graph"},null,8,["graph"]),[[Sf,U(Jn)==="graph"]])],8,idt)):ee("",!0),U(Jn)==="editor"?(ut(),Qt(P,{key:U(_e).filepath,file:U(_e),"data-testid":"editor",onDraft:p},null,8,["file"])):U(Jn)==="console"?(ut(),Qt(A,{key:2,file:U(_e),"data-testid":"console"},null,8,["file"])):U(Jn)?ee("",!0):(ut(),Qt(L,{key:3,file:U(_e),"data-testid":"report"},null,8,["file"]))])])):ee("",!0)}}}),sdt=["open"],ldt=ct("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),adt=ct("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),cdt=re({__name:"DetailsPanel",props:{color:{}},setup(t){const n=Yt(!0);return(r,o)=>(ut(),At("div",{open:U(n),class:"details-panel",onToggle:o[0]||(o[0]=a=>n.value=a.target.open)},[ct("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ve(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[ldt,ir(r.$slots,"summary",{open:U(n)}),adt],2),ir(r.$slots,"default")],40,sdt))}}),udt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},fdt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},hdt=["text"],ddt={"text-sm":"",truncate:"","font-light":""},pdt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},gdt=re({__name:"TaskItem",props:{task:{}},setup(t){const n=t,r=xt(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=td;return o.task?(ut(),At("div",udt,[It(u,{task:o.task,"mr-2":""},null,8,["task"]),o.task.type==="suite"&&o.task.meta.typecheck?(ut(),At("div",fdt)):ee("",!0),ct("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=o.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ct("span",ddt,ne(o.task.name),1),typeof U(r)=="number"?(ut(),At("span",pdt,ne(U(r)>0?U(r):"< 1")+"ms ",1)):ee("",!0)],8,hdt)])):ee("",!0)}}});function vdt(t){return Object.hasOwnProperty.call(t,"tasks")}function _b(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const mdt={key:1},ydt=re({inheritAttrs:!1,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{type:Function}},setup(t){return(n,r)=>{const o=gdt,a=eo("TaskTree",!0);return ut(),At(ue,null,[!n.nested||!n.search||U(_b)(n.task.name,n.search)?(ut(),Qt(o,Si({key:0},n.$attrs,{task:n.task,style:{paddingLeft:`${n.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>n.onItemClick&&n.onItemClick(n.task))}),null,16,["task","style"])):ee("",!0),n.nested&&n.task.type==="suite"&&n.task.tasks.length?(ut(),At("div",mdt,[(ut(!0),At(ue,null,nr(n.task.tasks,u=>(ut(),Qt(a,{key:u.id,task:u,nested:n.nested,indent:n.indent+1,search:n.search,"on-item-click":n.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):ee("",!0)],64)}}}),bdt={h:"full",flex:"~ col"},wdt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},xdt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},_dt=ct("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Sdt=["op"],kdt={class:"scrolls","flex-auto":"","py-1":""},Cdt={"text-red5":""},Tdt={"text-yellow5":""},Edt={"text-green5":""},Ldt={class:"text-purple5:50"},Adt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Mdt=ct("div",{op30:""}," No matched test ",-1),Sb=re({inheritAttrs:!1,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{type:Function}},emits:["run"],setup(t,{emit:n}){const r=n,o=Yt(""),a=Yt(),u=xt(()=>o.value.trim()!==""),f=xt(()=>o.value.trim()?t.tasks.filter(L=>A([L],o.value)):t.tasks),h=xt(()=>u.value?f.value.map(L=>oc(L.id)).filter(Boolean):[]),p=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="fail"})),g=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="pass"})),v=xt(()=>f.value.filter(L=>L.mode==="skip"||L.mode==="todo")),b=xt(()=>f.value.filter(L=>!p.value.includes(L)&&!g.value.includes(L)&&!v.value.includes(L))),x=xt(()=>o.value===""),S=tT(b,250);function P(L){var T;o.value="",L&&((T=a.value)==null||T.focus())}function A(L,T){let M=!1;for(let R=0;R<L.length;R++){const E=L[R];if(_b(E.name,T)){M=!0;break}if(vdt(E)&&E.tasks&&(M=A(E.tasks,T),M))break}return M}return(L,T)=>{const M=vs,R=ydt,E=cdt,B=lo("tooltip");return ut(),At("div",bdt,[ct("div",null,[ct("div",wdt,[ir(L.$slots,"header",{filteredTests:U(u)?U(h):void 0})]),ct("div",xdt,[_dt,tn(ct("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":T[0]||(T[0]=K=>Ee(o)?o.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(o).length?"100":"50",onKeydown:[T[1]||(T[1]=Cf(K=>P(!1),["esc"])),T[2]||(T[2]=Cf(K=>r("run",U(u)?U(h):void 0),["enter"]))]},null,40,Sdt),[[J_,U(o)]]),tn(It(M,{disabled:U(x),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=K=>P(!0))},null,8,["disabled"]),[[B,"Clear search",void 0,{bottom:!0}]])])]),ct("div",kdt,[L.groupByType?(ut(),At(ue,{key:0},[U(p).length?(ut(),Qt(E,{key:0},{summary:Jt(()=>[ct("div",Cdt," FAIL ("+ne(U(p).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(p),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0),U(b).length||U(wl)==="running"?(ut(),Qt(E,{key:1},{summary:Jt(()=>[ct("div",Tdt," RUNNING ("+ne(U(S).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(S),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0),U(g).length?(ut(),Qt(E,{key:2},{summary:Jt(()=>[ct("div",Edt," PASS ("+ne(U(g).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(g),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0),U(v).length?(ut(),Qt(E,{key:3},{summary:Jt(()=>[ct("div",Ldt," SKIP ("+ne(U(v).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(v),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0)],64)):(ut(!0),At(ue,{key:1},nr(U(f),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),U(u)&&U(f).length===0?(ut(),At("div",Adt,[Mdt,ct("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=K=>P(!0))}," Clear ",32)])):ee("",!0)])])}}}),Tl=Yt(),Qo=Yt(!0),oo=Yt(!1),pc=Yt(!0),Bo=xt(()=>{var t;return(t=Fh.value)==null?void 0:t.coverage}),Jf=xt(()=>{var t;return(t=Bo.value)==null?void 0:t.enabled}),Wo=xt(()=>Jf.value&&Bo.value.reporter.map(([t])=>t).includes("html")),Ndt=xt(()=>{if(Wo.value){const t=Bo.value.reportsDirectory.lastIndexOf("/"),n=Bo.value.reporter.find(r=>{if(r[0]==="html")return r});return n&&"subdir"in n[1]?`/${Bo.value.reportsDirectory.slice(t+1)}/${n[1].subdir}/index.html`:`/${Bo.value.reportsDirectory.slice(t+1)}/index.html`}});De(wl,t=>{pc.value=t==="running"},{immediate:!0});function Pdt(){const t=vr.value;if(t&&t.length>0){const n=oc(t);n?(Tl.value=n,Qo.value=!1,oo.value=!1):rT(()=>je.state.getFiles(),()=>{Tl.value=oc(t),Qo.value=!1,oo.value=!1})}return Qo}function sf(t){Qo.value=t,oo.value=!1,t&&(Tl.value=void 0,vr.value="")}function Odt(){oo.value=!0,Qo.value=!1,Tl.value=void 0,vr.value=""}const Ddt={key:0,"h-full":""},$dt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-1":""},Rdt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},zdt={class:"flex text-lg"},Fdt=re({__name:"Suites",setup(t){const n=xt(()=>{var u;return(u=_e.value)==null?void 0:u.name.split(/\//g).pop()}),r=xt(()=>{var u,f;return((u=_e.value)==null?void 0:u.tasks)&&Rc((f=_e.value)==null?void 0:f.tasks)});function o(){return _e.value&&je.rpc.updateSnapshot(_e.value)}async function a(){Wo.value&&(pc.value=!0,await Hr()),await BT()}return(u,f)=>{const h=td,p=vs,g=Sb,v=lo("tooltip");return U(_e)?(ut(),At("div",Ddt,[It(g,{tasks:U(_e).tasks,nested:!0},{header:Jt(()=>[It(h,{"mx-1":"",task:U(_e)},null,8,["task"]),U(_e).type==="suite"&&U(_e).meta.typecheck?(ut(),At("div",$dt)):ee("",!0),ct("span",Rdt,ne(U(n)),1),ct("div",zdt,[U(r)&&!U(Ur)?tn((ut(),Qt(p,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=b=>o())},null,512)),[[v,`Update failed snapshot(s) of ${U(_e).name}`,void 0,{bottom:!0}]]):ee("",!0),U(Ur)?ee("",!0):tn((ut(),Qt(p,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=b=>a())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ee("",!0)}}}),Idt={h:"full",flex:"~ col"},qdt=ct("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ct("div",{class:"i-carbon:folder-details-reference"}),ct("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),Hdt={"flex-auto":"","py-1":"","bg-white":""},Bdt=["src"],Wdt=re({__name:"Coverage",props:{src:{}},setup(t){return(n,r)=>(ut(),At("div",Idt,[qdt,ct("div",Hdt,[ct("iframe",{id:"vitest-ui-coverage",src:n.src},null,8,Bdt)])]))}}),Sr=t=>($m("data-v-6679a536"),t=t(),Rm(),t),Udt={"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:""},jdt=Sr(()=>ct("div",{"i-carbon-document":""},null,-1)),Gdt=Sr(()=>ct("div",null,"Files",-1)),Vdt={class:"number","data-testid":"num-files"},Kdt=Sr(()=>ct("div",{"i-carbon-checkmark":""},null,-1)),Xdt=Sr(()=>ct("div",null,"Pass",-1)),Ydt={class:"number"},Zdt=Sr(()=>ct("div",{"i-carbon-close":""},null,-1)),Jdt=Sr(()=>ct("div",null," Fail ",-1)),Qdt={class:"number","text-red5":""},tpt=Sr(()=>ct("div",{"i-carbon-compare":""},null,-1)),ept=Sr(()=>ct("div",null," Snapshot Fail ",-1)),npt={class:"number","text-red5":""},rpt=Sr(()=>ct("div",{"i-carbon-timer":""},null,-1)),ipt=Sr(()=>ct("div",null,"Time",-1)),opt={class:"number","data-testid":"run-time"},spt=re({__name:"TestFilesEntry",setup(t){return(n,r)=>(ut(),At("div",Udt,[jdt,Gdt,ct("div",Vdt,ne(U(gn).length),1),U(lc).length?(ut(),At(ue,{key:0},[Kdt,Xdt,ct("div",Ydt,ne(U(lc).length),1)],64)):ee("",!0),U(sc).length?(ut(),At(ue,{key:1},[Zdt,Jdt,ct("div",Qdt,ne(U(sc).length),1)],64)):ee("",!0),U(Pv).length?(ut(),At(ue,{key:2},[tpt,ept,ct("div",npt,ne(U(Pv).length),1)],64)):ee("",!0),rpt,ipt,ct("div",opt,ne(U(ult)),1)]))}}),lpt=ao(spt,[["__scopeId","data-v-6679a536"]]),apt={"p-2":"","text-center":"",flex:""},cpt={"text-4xl":"","min-w-2em":""},upt={"text-md":""},fpt=re({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ut(),At("div",apt,[ct("div",null,[ct("div",cpt,[ir(n.$slots,"body")]),ct("div",upt,[ir(n.$slots,"header")])])]))}}),hpt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},dpt=re({__name:"TestsEntry",setup(t){const n=xt(()=>Ic.value.length),r=xt(()=>Py.value.length),o=xt(()=>Ny.value.length),a=xt(()=>alt.value.length),u=xt(()=>clt.value.length);return(f,h)=>{const p=fpt;return ut(),At("div",hpt,[It(p,{"text-green5":"","data-testid":"pass-entry"},{header:Jt(()=>[fn(" Pass ")]),body:Jt(()=>[fn(ne(U(r)),1)]),_:1}),It(p,{class:ve({"text-red5":U(o),op50:!U(o)}),"data-testid":"fail-entry"},{header:Jt(()=>[fn(" Fail ")]),body:Jt(()=>[fn(ne(U(o)),1)]),_:1},8,["class"]),U(a)?(ut(),Qt(p,{key:0,op50:"","data-testid":"skipped-entry"},{header:Jt(()=>[fn(" Skip ")]),body:Jt(()=>[fn(ne(U(a)),1)]),_:1})):ee("",!0),U(u)?(ut(),Qt(p,{key:1,op50:"","data-testid":"todo-entry"},{header:Jt(()=>[fn(" Todo ")]),body:Jt(()=>[fn(ne(U(u)),1)]),_:1})):ee("",!0),It(p,{tail:!0,"data-testid":"total-entry"},{header:Jt(()=>[fn(" Total ")]),body:Jt(()=>[fn(ne(U(n)),1)]),_:1})])}}}),ppt={},gpt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},vpt={"aria-labelledby":"tests",m:"y-4 x-2"};function mpt(t,n){const r=dpt,o=lpt;return ut(),At("div",gpt,[ct("section",vpt,[It(r)]),It(o)])}const ypt=ao(ppt,[["render",mpt]]),bpt={},wpt={h:"full",flex:"~ col"},xpt=ct("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ct("div",{class:"i-carbon-dashboard"}),ct("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),_pt={class:"scrolls","flex-auto":"","py-1":""};function Spt(t,n){const r=ypt;return ut(),At("div",wpt,[xpt,ct("div",_pt,[It(r)])])}const kpt=ao(bpt,[["render",Spt]]),Cpt=""+new URL("../favicon.svg",import.meta.url).href,Tpt=ct("img",{"w-6":"","h-6":"",src:Cpt,alt:"Vitest logo"},null,-1),Ept=ct("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Lpt={class:"flex text-lg"},Apt=ct("div",{class:"i-carbon:folder-off ma"},null,-1),Mpt=ct("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ct("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ct("div",null,"Coverage enabled but missing html reporter."),ct("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Npt=re({__name:"Navigation",setup(t){const n=xt(()=>gn.value&&Rc(gn.value));function r(){return je.rpc.updateSnapshot()}const o=xt(()=>Ol.value?"light":"dark");function a(f){vr.value=f.id,Tl.value=oc(f.id),sf(!1)}async function u(f){Wo.value&&(pc.value=!0,await Hr(),oo.value&&(sf(!0),await Hr())),await HT(f)}return(f,h)=>{const p=vs,g=Sb,v=lo("tooltip");return ut(),Qt(g,{border:"r base",tasks:U(gn),"on-item-click":a,"group-by-type":!0,onRun:u},{header:Jt(({filteredTests:b})=>[Tpt,Ept,ct("div",Lpt,[tn(It(p,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=x=>U(sf)(!0))},null,512),[[Sf,U(Jf)&&!U(Wo)||!U(Qo)],[v,"Dashboard",void 0,{bottom:!0}]]),U(Jf)&&!U(Wo)?(ut(),Qt(U(wC),{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:Jt(()=>[Mpt]),default:Jt(()=>[Apt]),_:1})):ee("",!0),U(Wo)?tn((ut(),Qt(p,{key:1,disabled:U(pc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=x=>U(Odt)())},null,8,["disabled"])),[[Sf,!U(oo)],[v,"Coverage",void 0,{bottom:!0}]]):ee("",!0),U(n)&&!U(Ur)?tn((ut(),Qt(p,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=x=>r())},null,512)),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ee("",!0),U(Ur)?ee("",!0):tn((ut(),Qt(p,{key:3,disabled:(b==null?void 0:b.length)===0,icon:"i-carbon:play",onClick:x=>u(b)},null,8,["disabled","onClick"])),[[v,b?b.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),tn(It(p,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=x=>U(Gst)())},null,512),[[v,`Toggle to ${U(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),Ppt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Opt=re({__name:"ProgressBar",setup(t){const{width:n}=yT(),r=xt(()=>gn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":llt.value?null:"in-progress"),o=xt(()=>gn.value.length),a=xt(()=>lc.value.length),u=xt(()=>sc.value.length),f=xt(()=>{const v=U(o);return v>0?n.value*a.value/v:0}),h=xt(()=>{const v=U(o);return v>0?n.value*u.value/v:0}),p=xt(()=>U(o)-u.value-a.value),g=xt(()=>{const v=U(o);return v>0?n.value*p.value/v:0});return(v,b)=>(ut(),At("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:ve(U(r))},[ct("div",Ppt,[ct("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(U(r)),style:En(`width: ${U(h)}px;`)},"   ",6),ct("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(U(r)),style:En(`left: ${U(h)}px; width: ${U(f)}px;`)},"   ",6),ct("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(U(r)),style:En(`left: ${U(f)+U(h)}px; width: ${U(g)}px;`)},"   ",6)])],2))}}),Dpt=ao(Opt,[["__scopeId","data-v-f967c1fe"]]),sm={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((t,n)=>(t[n.id]=n)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.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(t,n){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=n},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,n){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===n?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,n),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=n,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[n])},onSplitterDblClick(t,n){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===n?o.max:o.min,a!==n&&(r+=o.min),o)),this.panes[n].size-=r,this.$emit("pane-maximize",this.panes[n]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,n){this.$emit("pane-click",this.indexedPanes[n])},getCurrentMouseDrag(t){const n=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-n.left,y:o-n.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const n=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=n-t),t*100/n},calculatePanesSize(t){const n=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(n),nextPanesSize:this.sumNextPanesSize(n),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[n,n+1],h=this.panes[f[0]]||null,p=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,v=p.max<100&&u<=100-(p.max+this.sumNextPanesSize(n+1));if(g||v){g?(h.size=h.max,p.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-p.max-r.prevPanesSize-this.sumNextPanesSize(n+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(r,u);if(!b)return;({sums:r,panesToResize:f}=b),h=this.panes[f[0]]||null,p=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),p!==null&&(p.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(t,n){const r=this.touch.activeSplitter,o=[r,r+1];return n<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):n>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(n=>n.index<t&&n.size>n.min)||{}},findNextExpandedPane(t){return this.panes.find(n=>n.index>t+1&&n.size>n.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const n=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!n&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,n,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),n.parentNode.insertBefore(a,n)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let n=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!n&&this.firstSplitter?this.addSplitter(n,r,!0):n&&this.addSplitter(n,r),n++)})},requestUpdate({target:t,...n}){const r=this.indexedPanes[t._.uid];Object.entries(n).forEach(([o,a])=>r[o]=a)},onPaneAdd(t){let n=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&n++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(n,0,{id:t._.uid,index:n,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[n]}),this.$emit("pane-add",{index:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const n=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(n,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:n}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(n=>n.givenSize!==null||n.min||n.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},equalize(){const t=100/this.panesCount;let n=0;const r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),n-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,r,o)},initialPanesSizing(){let t=100;const n=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&n.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,n,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:n}={}){let r=100/this.panesCount,o=0;const a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,n,r){let o;t>0?o=t/(this.panesCount-n.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!n.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.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(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((n,r)=>{n.ondblclick=t?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 Al("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},$pt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},Rpt={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(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function zpt(t,n,r,o,a,u){return ut(),At("div",{class:"splitpanes__pane",onClick:n[0]||(n[0]=f=>u.onPaneClick(f,t._.uid)),style:En(t.style)},[ir(t.$slots,"default")],4)}const Na=$pt(Rpt,[["render",zpt]]),Fpt={"h-screen":"","w-screen":"",overflow:"hidden"},Ipt=re({__name:"index",setup(t){const n=Pdt(),r=Hn([33,67]),o=Hn([33,67]),a=wv(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=wv(h=>{h.forEach((p,g)=>{o[g]=p.size})},0);function f(){const h=window.innerWidth,p=Math.min(h/3,300);r[0]=100*p/h,r[1]=100-r[0],o[0]=100*p/(h-p),o[1]=100-o[0]}return(h,p)=>{const g=Dpt,v=Npt,b=kpt,x=Wdt,S=Fdt,P=odt,A=jT;return ut(),At(ue,null,[It(g),ct("div",Fpt,[It(U(sm),{class:"pt-4px",onResized:U(a),onReady:f},{default:Jt(()=>[It(U(Na),{size:U(r)[0]},{default:Jt(()=>[It(v)]),_:1},8,["size"]),It(U(Na),{size:U(r)[1]},{default:Jt(()=>[It(kh,null,{default:Jt(()=>[U(n)?(ut(),Qt(b,{key:"summary"})):U(oo)?(ut(),Qt(x,{key:"coverage",src:U(Ndt)},null,8,["src"])):(ut(),Qt(U(sm),{key:"detail",onResized:U(u)},{default:Jt(()=>[It(U(Na),{size:U(o)[0]},{default:Jt(()=>[It(S)]),_:1},8,["size"]),It(U(Na),{size:U(o)[1]},{default:Jt(()=>[It(P)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),It(A)],64)}}}),qpt=[{name:"index",path:"/",component:Ipt,props:!0}],Hpt={tooltip:bC};B0.options.instantMove=!0;B0.options.distance=10;function Bpt(){return ak({history:kS(),routes:qpt})}const Wpt=[Bpt],ed=a0(oS);Wpt.forEach(t=>{ed.use(t())});Object.entries(Hpt).forEach(([t,n])=>{ed.directive(t,n)});ed.mount("#app");