@vitest/browser 0.32.2 → 0.32.3

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,35 @@
1
+ var $x=Object.defineProperty;var Dx=(t,e,r)=>e in t?$x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Nr=(t,e,r)=>(Dx(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const u of l)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(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();function Gf(t,e){const r=Object.create(null),o=t.split(",");for(let l=0;l<o.length;l++)r[o[l]]=!0;return e?l=>!!r[l.toLowerCase()]:l=>!!r[l]}const xe={},zo=[],Qn=()=>{},Rx=()=>!1,zx=/^on[^a-z]/,hc=t=>zx.test(t),Kf=t=>t.startsWith("onUpdate:"),Re=Object.assign,Xf=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Ix=Object.prototype.hasOwnProperty,se=(t,e)=>Ix.call(t,e),Ft=Array.isArray,Io=t=>dc(t)==="[object Map]",dm=t=>dc(t)==="[object Set]",Wt=t=>typeof t=="function",ze=t=>typeof t=="string",Yf=t=>typeof t=="symbol",be=t=>t!==null&&typeof t=="object",pm=t=>be(t)&&Wt(t.then)&&Wt(t.catch),gm=Object.prototype.toString,dc=t=>gm.call(t),Fx=t=>dc(t).slice(8,-1),vm=t=>dc(t)==="[object Object]",Zf=t=>ze(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ll=Gf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},qx=/-(\w)/g,mr=pc(t=>t.replace(qx,(e,r)=>r?r.toUpperCase():"")),Hx=/\B([A-Z])/g,io=pc(t=>t.replace(Hx,"-$1").toLowerCase()),gc=pc(t=>t.charAt(0).toUpperCase()+t.slice(1)),$u=pc(t=>t?`on${gc(t)}`:""),ia=(t,e)=>!Object.is(t,e),Al=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},ql=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},nf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},mm=t=>{const e=ze(t)?Number(t):NaN;return isNaN(e)?t:e};let Gp;const rf=()=>Gp||(Gp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tn(t){if(Ft(t)){const e={};for(let r=0;r<t.length;r++){const o=t[r],l=ze(o)?jx(o):Tn(o);if(l)for(const u in l)e[u]=l[u]}return e}else{if(ze(t))return t;if(be(t))return t}}const Bx=/;(?![^(]*\))/g,Wx=/:([^]+)/,Ux=/\/\*[^]*?\*\//g;function jx(t){const e={};return t.replace(Ux,"").split(Bx).forEach(r=>{if(r){const o=r.split(Wx);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ve(t){let e="";if(ze(t))e=t;else if(Ft(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(e+=o+" ")}else if(be(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const Vx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gx=Gf(Vx);function ym(t){return!!t||t===""}const Qt=t=>ze(t)?t:t==null?"":Ft(t)||be(t)&&(t.toString===gm||!Wt(t.toString))?JSON.stringify(t,bm,2):String(t),bm=(t,e)=>e&&e.__v_isRef?bm(t,e.value):Io(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,l])=>(r[`${o} =>`]=l,r),{})}:dm(e)?{[`Set(${e.size})`]:[...e.values()]}:be(e)&&!Ft(e)&&!vm(e)?String(e):e;let On;class Kx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!e&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=On;try{return On=this,e()}finally{On=r}}}on(){On=this}off(){On=this.parent}stop(e){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&&!e){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function Xx(t,e=On){e&&e.active&&e.effects.push(t)}function wm(){return On}function Yx(t){On&&On.cleanups.push(t)}const Jf=t=>{const e=new Set(t);return e.w=0,e.n=0,e},xm=t=>(t.w&Si)>0,_m=t=>(t.n&Si)>0,Zx=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=Si},Jx=t=>{const{deps:e}=t;if(e.length){let r=0;for(let o=0;o<e.length;o++){const l=e[o];xm(l)&&!_m(l)?l.delete(t):e[r++]=l,l.w&=~Si,l.n&=~Si}e.length=r}},Hl=new WeakMap;let Gs=0,Si=1;const of=30;let Yn;const Xi=Symbol(""),sf=Symbol("");class Qf{constructor(e,r=null,o){this.fn=e,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Xx(this,o)}run(){if(!this.active)return this.fn();let e=Yn,r=wi;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Yn,Yn=this,wi=!0,Si=1<<++Gs,Gs<=of?Zx(this):Kp(this),this.fn()}finally{Gs<=of&&Jx(this),Si=1<<--Gs,Yn=this.parent,wi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Yn===this?this.deferStop=!0:this.active&&(Kp(this),this.onStop&&this.onStop(),this.active=!1)}}function Kp(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}let wi=!0;const Sm=[];function is(){Sm.push(wi),wi=!1}function os(){const t=Sm.pop();wi=t===void 0?!0:t}function An(t,e,r){if(wi&&Yn){let o=Hl.get(t);o||Hl.set(t,o=new Map);let l=o.get(r);l||o.set(r,l=Jf()),km(l)}}function km(t,e){let r=!1;Gs<=of?_m(t)||(t.n|=Si,r=!xm(t)):r=!t.has(Yn),r&&(t.add(Yn),Yn.deps.push(t))}function qr(t,e,r,o,l,u){const f=Hl.get(t);if(!f)return;let h=[];if(e==="clear")h=[...f.values()];else if(r==="length"&&Ft(t)){const d=Number(o);f.forEach((g,v)=>{(v==="length"||v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":Ft(t)?Zf(r)&&h.push(f.get("length")):(h.push(f.get(Xi)),Io(t)&&h.push(f.get(sf)));break;case"delete":Ft(t)||(h.push(f.get(Xi)),Io(t)&&h.push(f.get(sf)));break;case"set":Io(t)&&h.push(f.get(Xi));break}if(h.length===1)h[0]&&af(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);af(Jf(d))}}function af(t,e){const r=Ft(t)?t:[...t];for(const o of r)o.computed&&Xp(o);for(const o of r)o.computed||Xp(o)}function Xp(t,e){(t!==Yn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Qx(t,e){var r;return(r=Hl.get(t))==null?void 0:r.get(e)}const t1=Gf("__proto__,__v_isRef,__isVue"),Cm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Yf)),e1=th(),n1=th(!1,!0),r1=th(!0),Yp=i1();function i1(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=ae(this);for(let u=0,f=this.length;u<f;u++)An(o,"get",u+"");const l=o[e](...r);return l===-1||l===!1?o[e](...r.map(ae)):l}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){is();const o=ae(this)[e].apply(this,r);return os(),o}}),t}function o1(t){const e=ae(this);return An(e,"has",t),e.hasOwnProperty(t)}function th(t=!1,e=!1){return function(o,l,u){if(l==="__v_isReactive")return!t;if(l==="__v_isReadonly")return t;if(l==="__v_isShallow")return e;if(l==="__v_raw"&&u===(t?e?x1:Mm:e?Am:Lm).get(o))return o;const f=Ft(o);if(!t){if(f&&se(Yp,l))return Reflect.get(Yp,l,u);if(l==="hasOwnProperty")return o1}const h=Reflect.get(o,l,u);return(Yf(l)?Cm.has(l):t1(l))||(t||An(o,"get",l),e)?h:Ee(h)?f&&Zf(l)?h:h.value:be(h)?t?mc(h):Rn(h):h}}const s1=Tm(),a1=Tm(!0);function Tm(t=!1){return function(r,o,l,u){let f=r[o];if(Go(f)&&Ee(f)&&!Ee(l))return!1;if(!t&&(!Bl(l)&&!Go(l)&&(f=ae(f),l=ae(l)),!Ft(r)&&Ee(f)&&!Ee(l)))return f.value=l,!0;const h=Ft(r)&&Zf(o)?Number(o)<r.length:se(r,o),d=Reflect.set(r,o,l,u);return r===ae(u)&&(h?ia(l,f)&&qr(r,"set",o,l):qr(r,"add",o,l)),d}}function l1(t,e){const r=se(t,e);t[e];const o=Reflect.deleteProperty(t,e);return o&&r&&qr(t,"delete",e,void 0),o}function c1(t,e){const r=Reflect.has(t,e);return(!Yf(e)||!Cm.has(e))&&An(t,"has",e),r}function u1(t){return An(t,"iterate",Ft(t)?"length":Xi),Reflect.ownKeys(t)}const Em={get:e1,set:s1,deleteProperty:l1,has:c1,ownKeys:u1},f1={get:r1,set(t,e){return!0},deleteProperty(t,e){return!0}},h1=Re({},Em,{get:n1,set:a1}),eh=t=>t,vc=t=>Reflect.getPrototypeOf(t);function dl(t,e,r=!1,o=!1){t=t.__v_raw;const l=ae(t),u=ae(e);r||(e!==u&&An(l,"get",e),An(l,"get",u));const{has:f}=vc(l),h=o?eh:r?oh:oa;if(f.call(l,e))return h(t.get(e));if(f.call(l,u))return h(t.get(u));t!==l&&t.get(e)}function pl(t,e=!1){const r=this.__v_raw,o=ae(r),l=ae(t);return e||(t!==l&&An(o,"has",t),An(o,"has",l)),t===l?r.has(t):r.has(t)||r.has(l)}function gl(t,e=!1){return t=t.__v_raw,!e&&An(ae(t),"iterate",Xi),Reflect.get(t,"size",t)}function Zp(t){t=ae(t);const e=ae(this);return vc(e).has.call(e,t)||(e.add(t),qr(e,"add",t,t)),this}function Jp(t,e){e=ae(e);const r=ae(this),{has:o,get:l}=vc(r);let u=o.call(r,t);u||(t=ae(t),u=o.call(r,t));const f=l.call(r,t);return r.set(t,e),u?ia(e,f)&&qr(r,"set",t,e):qr(r,"add",t,e),this}function Qp(t){const e=ae(this),{has:r,get:o}=vc(e);let l=r.call(e,t);l||(t=ae(t),l=r.call(e,t)),o&&o.call(e,t);const u=e.delete(t);return l&&qr(e,"delete",t,void 0),u}function tg(){const t=ae(this),e=t.size!==0,r=t.clear();return e&&qr(t,"clear",void 0,void 0),r}function vl(t,e){return function(o,l){const u=this,f=u.__v_raw,h=ae(f),d=e?eh:t?oh:oa;return!t&&An(h,"iterate",Xi),f.forEach((g,v)=>o.call(l,d(g),d(v),u))}}function ml(t,e,r){return function(...o){const l=this.__v_raw,u=ae(l),f=Io(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=l[t](...o),v=r?eh:e?oh:oa;return!e&&An(u,"iterate",d?sf:Xi),{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 li(t){return function(...e){return t==="delete"?!1:this}}function d1(){const t={get(u){return dl(this,u)},get size(){return gl(this)},has:pl,add:Zp,set:Jp,delete:Qp,clear:tg,forEach:vl(!1,!1)},e={get(u){return dl(this,u,!1,!0)},get size(){return gl(this)},has:pl,add:Zp,set:Jp,delete:Qp,clear:tg,forEach:vl(!1,!0)},r={get(u){return dl(this,u,!0)},get size(){return gl(this,!0)},has(u){return pl.call(this,u,!0)},add:li("add"),set:li("set"),delete:li("delete"),clear:li("clear"),forEach:vl(!0,!1)},o={get(u){return dl(this,u,!0,!0)},get size(){return gl(this,!0)},has(u){return pl.call(this,u,!0)},add:li("add"),set:li("set"),delete:li("delete"),clear:li("clear"),forEach:vl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ml(u,!1,!1),r[u]=ml(u,!0,!1),e[u]=ml(u,!1,!0),o[u]=ml(u,!0,!0)}),[t,r,e,o]}const[p1,g1,v1,m1]=d1();function nh(t,e){const r=e?t?m1:v1:t?g1:p1;return(o,l,u)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?o:Reflect.get(se(r,l)&&l in o?r:o,l,u)}const y1={get:nh(!1,!1)},b1={get:nh(!1,!0)},w1={get:nh(!0,!1)},Lm=new WeakMap,Am=new WeakMap,Mm=new WeakMap,x1=new WeakMap;function _1(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:_1(Fx(t))}function Rn(t){return Go(t)?t:rh(t,!1,Em,y1,Lm)}function k1(t){return rh(t,!1,h1,b1,Am)}function mc(t){return rh(t,!0,f1,w1,Mm)}function rh(t,e,r,o,l){if(!be(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=l.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 l.set(t,h),h}function Fo(t){return Go(t)?Fo(t.__v_raw):!!(t&&t.__v_isReactive)}function Go(t){return!!(t&&t.__v_isReadonly)}function Bl(t){return!!(t&&t.__v_isShallow)}function Nm(t){return Fo(t)||Go(t)}function ae(t){const e=t&&t.__v_raw;return e?ae(e):t}function ih(t){return ql(t,"__v_skip",!0),t}const oa=t=>be(t)?Rn(t):t,oh=t=>be(t)?mc(t):t;function sh(t){wi&&Yn&&(t=ae(t),km(t.dep||(t.dep=Jf())))}function ah(t,e){t=ae(t);const r=t.dep;r&&af(r)}function Ee(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return Pm(t,!1)}function ss(t){return Pm(t,!0)}function Pm(t,e){return Ee(t)?t:new C1(t,e)}class C1{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:ae(e),this._value=r?e:oa(e)}get value(){return sh(this),this._value}set value(e){const r=this.__v_isShallow||Bl(e)||Go(e);e=r?e:ae(e),ia(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:oa(e),ah(this))}}function V(t){return Ee(t)?t.value:t}const T1={get:(t,e,r)=>V(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const l=t[e];return Ee(l)&&!Ee(r)?(l.value=r,!0):Reflect.set(t,e,r,o)}};function Om(t){return Fo(t)?t:new Proxy(t,T1)}class E1{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=e(()=>sh(this),()=>ah(this));this._get=r,this._set=o}get value(){return this._get()}set value(e){this._set(e)}}function L1(t){return new E1(t)}function A1(t){const e=Ft(t)?new Array(t.length):{};for(const r in t)e[r]=$m(t,r);return e}class M1{constructor(e,r,o){this._object=e,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Qx(ae(this._object),this._key)}}class N1{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function lh(t,e,r){return Ee(t)?t:Wt(t)?new N1(t):be(t)&&arguments.length>1?$m(t,e,r):Kt(t)}function $m(t,e,r){const o=t[e];return Ee(o)?o:new M1(t,e,r)}class P1{constructor(e,r,o,l){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Qf(e,()=>{this._dirty||(this._dirty=!0,ah(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=o}get value(){const e=ae(this);return sh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function O1(t,e,r=!1){let o,l;const u=Wt(t);return u?(o=t,l=Qn):(o=t.get,l=t.set),new P1(o,l,u||!l,r)}function xi(t,e,r,o){let l;try{l=o?t(...o):t()}catch(u){xa(u,e,r)}return l}function Bn(t,e,r,o){if(Wt(t)){const u=xi(t,e,r,o);return u&&pm(u)&&u.catch(f=>{xa(f,e,r)}),u}const l=[];for(let u=0;u<t.length;u++)l.push(Bn(t[u],e,r,o));return l}function xa(t,e,r,o=!0){const l=e?e.vnode:null;if(e){let u=e.parent;const f=e.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 d=e.appContext.config.errorHandler;if(d){xi(d,null,10,[t,f,h]);return}}$1(t,r,l,o)}function $1(t,e,r,o=!0){console.error(t)}let sa=!1,lf=!1;const nn=[];let hr=0;const qo=[];let $r=null,Ui=0;const Dm=Promise.resolve();let ch=null;function Hr(t){const e=ch||Dm;return t?e.then(this?t.bind(this):t):e}function D1(t){let e=hr+1,r=nn.length;for(;e<r;){const o=e+r>>>1;aa(nn[o])<t?e=o+1:r=o}return e}function uh(t){(!nn.length||!nn.includes(t,sa&&t.allowRecurse?hr+1:hr))&&(t.id==null?nn.push(t):nn.splice(D1(t.id),0,t),Rm())}function Rm(){!sa&&!lf&&(lf=!0,ch=Dm.then(Fm))}function R1(t){const e=nn.indexOf(t);e>hr&&nn.splice(e,1)}function zm(t){Ft(t)?qo.push(...t):(!$r||!$r.includes(t,t.allowRecurse?Ui+1:Ui))&&qo.push(t),Rm()}function eg(t,e=sa?hr+1:0){for(;e<nn.length;e++){const r=nn[e];r&&r.pre&&(nn.splice(e,1),e--,r())}}function Im(t){if(qo.length){const e=[...new Set(qo)];if(qo.length=0,$r){$r.push(...e);return}for($r=e,$r.sort((r,o)=>aa(r)-aa(o)),Ui=0;Ui<$r.length;Ui++)$r[Ui]();$r=null,Ui=0}}const aa=t=>t.id==null?1/0:t.id,z1=(t,e)=>{const r=aa(t)-aa(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Fm(t){lf=!1,sa=!0,nn.sort(z1);const e=Qn;try{for(hr=0;hr<nn.length;hr++){const r=nn[hr];r&&r.active!==!1&&xi(r,null,14)}}finally{hr=0,nn.length=0,Im(),sa=!1,ch=null,(nn.length||qo.length)&&Fm()}}function I1(t,e,...r){if(t.isUnmounted)return;const o=t.vnode.props||xe;let l=r;const u=e.startsWith("update:"),f=u&&e.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:x}=o[v]||xe;x&&(l=r.map(S=>ze(S)?S.trim():S)),b&&(l=r.map(nf))}let h,d=o[h=$u(e)]||o[h=$u(mr(e))];!d&&u&&(d=o[h=$u(io(e))]),d&&Bn(d,t,6,l);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,l)}}function qm(t,e,r=!1){const o=e.emitsCache,l=o.get(t);if(l!==void 0)return l;const u=t.emits;let f={},h=!1;if(!Wt(t)){const d=g=>{const v=qm(g,e,!0);v&&(h=!0,Re(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(be(t)&&o.set(t,null),null):(Ft(u)?u.forEach(d=>f[d]=null):Re(f,u),be(t)&&o.set(t,f),f)}function yc(t,e){return!t||!hc(e)?!1:(e=e.slice(2).replace(/Once$/,""),se(t,e[0].toLowerCase()+e.slice(1))||se(t,io(e))||se(t,e))}let Ze=null,bc=null;function Wl(t){const e=Ze;return Ze=t,bc=t&&t.type.__scopeId||null,e}function Hm(t){bc=t}function Bm(){bc=null}const F1=t=>Yt;function Yt(t,e=Ze,r){if(!e||t._n)return t;const o=(...l)=>{o._d&&pg(-1);const u=Wl(e);let f;try{f=t(...l)}finally{Wl(u),o._d&&pg(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Du(t){const{type:e,vnode:r,proxy:o,withProxy:l,props:u,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:b,data:x,setupState:S,ctx:N,inheritAttrs:A}=t;let M,T;const E=Wl(t);try{if(r.shapeFlag&4){const L=l||o;M=Xn(v.call(L,L,b,u,S,x,N)),T=d}else{const L=e;M=Xn(L.length>1?L(u,{attrs:d,slots:h,emit:g}):L(u,null)),T=e.props?d:H1(d)}}catch(L){Qs.length=0,xa(L,t,1),M=qt(En)}let F=M;if(T&&A!==!1){const L=Object.keys(T),{shapeFlag:j}=F;L.length&&j&7&&(f&&L.some(Kf)&&(T=B1(T,f)),F=ki(F,T))}return r.dirs&&(F=ki(F),F.dirs=F.dirs?F.dirs.concat(r.dirs):r.dirs),r.transition&&(F.transition=r.transition),M=F,Wl(E),M}function q1(t){let e;for(let r=0;r<t.length;r++){const o=t[r];if(ca(o)){if(o.type!==En||o.children==="v-if"){if(e)return;e=o}}else return}return e}const H1=t=>{let e;for(const r in t)(r==="class"||r==="style"||hc(r))&&((e||(e={}))[r]=t[r]);return e},B1=(t,e)=>{const r={};for(const o in t)(!Kf(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function W1(t,e,r){const{props:o,children:l,component:u}=t,{props:f,children:h,patchFlag:d}=e,g=u.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?ng(o,f,g):!!f;if(d&8){const v=e.dynamicProps;for(let b=0;b<v.length;b++){const x=v[b];if(f[x]!==o[x]&&!yc(g,x))return!0}}}else return(l||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?ng(o,f,g):!0:!!f;return!1}function ng(t,e,r){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let l=0;l<o.length;l++){const u=o[l];if(e[u]!==t[u]&&!yc(r,u))return!0}return!1}function fh({vnode:t,parent:e},r){for(;e&&e.subTree===t;)(t=e.vnode).el=r,e=e.parent}const U1=t=>t.__isSuspense,j1={name:"Suspense",__isSuspense:!0,process(t,e,r,o,l,u,f,h,d,g){t==null?G1(e,r,o,l,u,f,h,d,g):K1(t,e,r,o,l,f,h,d,g)},hydrate:X1,create:hh,normalize:Y1},V1=j1;function la(t,e){const r=t.props&&t.props[e];Wt(r)&&r()}function G1(t,e,r,o,l,u,f,h,d){const{p:g,o:{createElement:v}}=d,b=v("div"),x=t.suspense=hh(t,l,o,e,b,r,u,f,h,d);g(null,x.pendingBranch=t.ssContent,b,null,o,x,u,f),x.deps>0?(la(t,"onPending"),la(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,u,f),Ho(x,t.ssFallback)):x.resolve(!1,!0)}function K1(t,e,r,o,l,u,f,h,{p:d,um:g,o:{createElement:v}}){const b=e.suspense=t.suspense;b.vnode=e,e.el=t.el;const x=e.ssContent,S=e.ssFallback,{activeBranch:N,pendingBranch:A,isInFallback:M,isHydrating:T}=b;if(A)b.pendingBranch=x,dr(x,A)?(d(A,x,b.hiddenContainer,null,l,b,u,f,h),b.deps<=0?b.resolve():M&&(d(N,S,r,o,l,null,u,f,h),Ho(b,S))):(b.pendingId++,T?(b.isHydrating=!1,b.activeBranch=A):g(A,l,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),M?(d(null,x,b.hiddenContainer,null,l,b,u,f,h),b.deps<=0?b.resolve():(d(N,S,r,o,l,null,u,f,h),Ho(b,S))):N&&dr(x,N)?(d(N,x,r,o,l,b,u,f,h),b.resolve(!0)):(d(null,x,b.hiddenContainer,null,l,b,u,f,h),b.deps<=0&&b.resolve()));else if(N&&dr(x,N))d(N,x,r,o,l,b,u,f,h),Ho(b,x);else if(la(e,"onPending"),b.pendingBranch=x,b.pendingId++,d(null,x,b.hiddenContainer,null,l,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:E,pendingId:F}=b;E>0?setTimeout(()=>{b.pendingId===F&&b.fallback(S)},E):E===0&&b.fallback(S)}}function hh(t,e,r,o,l,u,f,h,d,g,v=!1){const{p:b,m:x,um:S,n:N,o:{parentNode:A,remove:M}}=g;let T;const E=J1(t);E&&e!=null&&e.pendingBranch&&(T=e.pendingId,e.deps++);const F=t.props?mm(t.props.timeout):void 0,L={vnode:t,parent:e,parentComponent:r,isSVG:f,container:o,hiddenContainer:l,anchor:u,deps:0,pendingId:0,timeout:typeof F=="number"?F:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(j=!1,Y=!1){const{vnode:ft,activeBranch:X,pendingBranch:st,pendingId:ot,effects:kt,parentComponent:pt,container:G}=L;if(L.isHydrating)L.isHydrating=!1;else if(!j){const H=X&&st.transition&&st.transition.mode==="out-in";H&&(X.transition.afterLeave=()=>{ot===L.pendingId&&x(st,G,B,0)});let{anchor:B}=L;X&&(B=N(X),S(X,pt,L,!0)),H||x(st,G,B,0)}Ho(L,st),L.pendingBranch=null,L.isInFallback=!1;let R=L.parent,k=!1;for(;R;){if(R.pendingBranch){R.effects.push(...kt),k=!0;break}R=R.parent}k||zm(kt),L.effects=[],E&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!Y&&e.resolve()),la(ft,"onResolve")},fallback(j){if(!L.pendingBranch)return;const{vnode:Y,activeBranch:ft,parentComponent:X,container:st,isSVG:ot}=L;la(Y,"onFallback");const kt=N(ft),pt=()=>{L.isInFallback&&(b(null,j,st,kt,X,null,ot,h,d),Ho(L,j))},G=j.transition&&j.transition.mode==="out-in";G&&(ft.transition.afterLeave=pt),L.isInFallback=!0,S(ft,X,null,!0),G||pt()},move(j,Y,ft){L.activeBranch&&x(L.activeBranch,j,Y,ft),L.container=j},next(){return L.activeBranch&&N(L.activeBranch)},registerDep(j,Y){const ft=!!L.pendingBranch;ft&&L.deps++;const X=j.vnode.el;j.asyncDep.catch(st=>{xa(st,j,0)}).then(st=>{if(j.isUnmounted||L.isUnmounted||L.pendingId!==j.suspenseId)return;j.asyncResolved=!0;const{vnode:ot}=j;vf(j,st,!1),X&&(ot.el=X);const kt=!X&&j.subTree.el;Y(j,ot,A(X||j.subTree.el),X?null:N(j.subTree),L,f,d),kt&&M(kt),fh(j,ot.el),ft&&--L.deps===0&&L.resolve()})},unmount(j,Y){L.isUnmounted=!0,L.activeBranch&&S(L.activeBranch,r,j,Y),L.pendingBranch&&S(L.pendingBranch,r,j,Y)}};return L}function X1(t,e,r,o,l,u,f,h,d){const g=e.suspense=hh(e,o,r,t.parentNode,document.createElement("div"),null,l,u,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,u,f);return g.deps===0&&g.resolve(!1,!0),v}function Y1(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=rg(o?r.default:r),t.ssFallback=o?rg(r.fallback):qt(En)}function rg(t){let e;if(Wt(t)){const r=Ko&&t._c;r&&(t._d=!1,ct()),t=t(),r&&(t._d=!0,e=Hn,s0())}return Ft(t)&&(t=q1(t)),t=Xn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function Z1(t,e){e&&e.pendingBranch?Ft(t)?e.effects.push(...t):e.effects.push(t):zm(t)}function Ho(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t,l=r.el=e.el;o&&o.subTree===r&&(o.vnode.el=l,fh(o,l))}function J1(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function dh(t,e){return ph(t,null,e)}const yl={};function De(t,e,r){return ph(t,e,r)}function ph(t,e,{immediate:r,deep:o,flush:l,onTrack:u,onTrigger:f}=xe){var h;const d=wm()===((h=je)==null?void 0:h.scope)?je:null;let g,v=!1,b=!1;if(Ee(t)?(g=()=>t.value,v=Bl(t)):Fo(t)?(g=()=>t,o=!0):Ft(t)?(b=!0,v=t.some(L=>Fo(L)||Bl(L)),g=()=>t.map(L=>{if(Ee(L))return L.value;if(Fo(L))return Vi(L);if(Wt(L))return xi(L,d,2)})):Wt(t)?e?g=()=>xi(t,d,2):g=()=>{if(!(d&&d.isUnmounted))return x&&x(),Bn(t,d,3,[S])}:g=Qn,e&&o){const L=g;g=()=>Vi(L())}let x,S=L=>{x=E.onStop=()=>{xi(L,d,4)}},N;if(ua)if(S=Qn,e?r&&Bn(e,d,3,[g(),b?[]:void 0,S]):g(),l==="sync"){const L=j_();N=L.__watcherHandles||(L.__watcherHandles=[])}else return Qn;let A=b?new Array(t.length).fill(yl):yl;const M=()=>{if(E.active)if(e){const L=E.run();(o||v||(b?L.some((j,Y)=>ia(j,A[Y])):ia(L,A)))&&(x&&x(),Bn(e,d,3,[L,A===yl?void 0:b&&A[0]===yl?[]:A,S]),A=L)}else E.run()};M.allowRecurse=!!e;let T;l==="sync"?T=M:l==="post"?T=()=>_n(M,d&&d.suspense):(M.pre=!0,d&&(M.id=d.uid),T=()=>uh(M));const E=new Qf(g,T);e?r?M():A=E.run():l==="post"?_n(E.run.bind(E),d&&d.suspense):E.run();const F=()=>{E.stop(),d&&d.scope&&Xf(d.scope.effects,E)};return N&&N.push(F),F}function Q1(t,e,r){const o=this.proxy,l=ze(t)?t.includes(".")?Wm(o,t):()=>o[t]:t.bind(o,o);let u;Wt(e)?u=e:(u=e.handler,r=e);const f=je;Xo(this);const h=ph(l,u.bind(o),r);return f?Xo(f):Yi(),h}function Wm(t,e){const r=e.split(".");return()=>{let o=t;for(let l=0;l<r.length&&o;l++)o=o[r[l]];return o}}function Vi(t,e){if(!be(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Ee(t))Vi(t.value,e);else if(Ft(t))for(let r=0;r<t.length;r++)Vi(t[r],e);else if(dm(t)||Io(t))t.forEach(r=>{Vi(r,e)});else if(vm(t))for(const r in t)Vi(t[r],e);return t}function rn(t,e){const r=Ze;if(r===null)return t;const o=kc(r)||r.proxy,l=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[f,h,d,g=xe]=e[u];f&&(Wt(f)&&(f={mounted:f,updated:f}),f.deep&&Vi(h),l.push({dir:f,instance:o,value:h,oldValue:void 0,arg:d,modifiers:g}))}return t}function Fi(t,e,r,o){const l=t.dirs,u=e&&e.dirs;for(let f=0;f<l.length;f++){const h=l[f];u&&(h.oldValue=u[f].value);let d=h.dir[o];d&&(is(),Bn(d,r,8,[t.el,h,t,e]),os())}}function t_(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return as(()=>{t.isMounted=!0}),Km(()=>{t.isUnmounting=!0}),t}const qn=[Function,Array],Um={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},e_={name:"BaseTransition",props:Um,setup(t,{slots:e}){const r=_a(),o=t_();let l;return()=>{const u=e.default&&Vm(e.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==En){f=A;break}}const h=ae(t),{mode:d}=h;if(o.isLeaving)return Ru(f);const g=ig(f);if(!g)return Ru(f);const v=cf(g,h,o,r);uf(g,v);const b=r.subTree,x=b&&ig(b);let S=!1;const{getTransitionKey:N}=g.type;if(N){const A=N();l===void 0?l=A:A!==l&&(l=A,S=!0)}if(x&&x.type!==En&&(!dr(g,x)||S)){const A=cf(x,h,o,r);if(uf(x,A),d==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},Ru(f);d==="in-out"&&g.type!==En&&(A.delayLeave=(M,T,E)=>{const F=jm(o,x);F[String(x.key)]=x,M._leaveCb=()=>{T(),M._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=E})}return f}}},n_=e_;function jm(t,e){const{leavingVNodes:r}=t;let o=r.get(e.type);return o||(o=Object.create(null),r.set(e.type,o)),o}function cf(t,e,r,o){const{appear:l,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:N,onBeforeAppear:A,onAppear:M,onAfterAppear:T,onAppearCancelled:E}=e,F=String(t.key),L=jm(r,t),j=(X,st)=>{X&&Bn(X,o,9,st)},Y=(X,st)=>{const ot=st[1];j(X,st),Ft(X)?X.every(kt=>kt.length<=1)&&ot():X.length<=1&&ot()},ft={mode:u,persisted:f,beforeEnter(X){let st=h;if(!r.isMounted)if(l)st=A||h;else return;X._leaveCb&&X._leaveCb(!0);const ot=L[F];ot&&dr(t,ot)&&ot.el._leaveCb&&ot.el._leaveCb(),j(st,[X])},enter(X){let st=d,ot=g,kt=v;if(!r.isMounted)if(l)st=M||d,ot=T||g,kt=E||v;else return;let pt=!1;const G=X._enterCb=R=>{pt||(pt=!0,R?j(kt,[X]):j(ot,[X]),ft.delayedLeave&&ft.delayedLeave(),X._enterCb=void 0)};st?Y(st,[X,G]):G()},leave(X,st){const ot=String(t.key);if(X._enterCb&&X._enterCb(!0),r.isUnmounting)return st();j(b,[X]);let kt=!1;const pt=X._leaveCb=G=>{kt||(kt=!0,st(),G?j(N,[X]):j(S,[X]),X._leaveCb=void 0,L[ot]===t&&delete L[ot])};L[ot]=t,x?Y(x,[X,pt]):pt()},clone(X){return cf(X,e,r,o)}};return ft}function Ru(t){if(wc(t))return t=ki(t),t.children=null,t}function ig(t){return wc(t)?t.children?t.children[0]:void 0:t}function uf(t,e){t.shapeFlag&6&&t.component?uf(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Vm(t,e=!1,r){let o=[],l=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===fe?(f.patchFlag&128&&l++,o=o.concat(Vm(f.children,e,h))):(e||f.type!==En)&&o.push(h!=null?ki(f,{key:h}):f)}if(l>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function re(t,e){return Wt(t)?(()=>Re({name:t.name},e,{setup:t}))():t}const Zs=t=>!!t.type.__asyncLoader,wc=t=>t.type.__isKeepAlive;function r_(t,e){Gm(t,"a",e)}function i_(t,e){Gm(t,"da",e)}function Gm(t,e,r=je){const o=t.__wdc||(t.__wdc=()=>{let l=r;for(;l;){if(l.isDeactivated)return;l=l.parent}return t()});if(xc(e,o,r),r){let l=r.parent;for(;l&&l.parent;)wc(l.parent.vnode)&&o_(o,e,r,l),l=l.parent}}function o_(t,e,r,o){const l=xc(e,t,o,!0);gh(()=>{Xf(o[e],l)},r)}function xc(t,e,r=je,o=!1){if(r){const l=r[t]||(r[t]=[]),u=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;is(),Xo(r);const h=Bn(e,r,t,f);return Yi(),os(),h});return o?l.unshift(u):l.push(u),u}}const Gr=t=>(e,r=je)=>(!ua||t==="sp")&&xc(t,(...o)=>e(...o),r),s_=Gr("bm"),as=Gr("m"),a_=Gr("bu"),l_=Gr("u"),Km=Gr("bum"),gh=Gr("um"),c_=Gr("sp"),u_=Gr("rtg"),f_=Gr("rtc");function h_(t,e=je){xc("ec",t,e)}const Xm="components",d_="directives";function Qi(t,e){return Ym(Xm,t,!0,e)||t}const p_=Symbol.for("v-ndc");function oo(t){return Ym(d_,t)}function Ym(t,e,r=!0,o=!1){const l=Ze||je;if(l){const u=l.type;if(t===Xm){const h=B_(u,!1);if(h&&(h===e||h===mr(e)||h===gc(mr(e))))return u}const f=og(l[t]||u[t],e)||og(l.appContext[t],e);return!f&&o?u:f}}function og(t,e){return t&&(t[e]||t[mr(e)]||t[gc(mr(e))])}function Zn(t,e,r,o){let l;const u=r&&r[o];if(Ft(t)||ze(t)){l=new Array(t.length);for(let f=0,h=t.length;f<h;f++)l[f]=e(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){l=new Array(t);for(let f=0;f<t;f++)l[f]=e(f+1,f,void 0,u&&u[f])}else if(be(t))if(t[Symbol.iterator])l=Array.from(t,(f,h)=>e(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);l=new Array(f.length);for(let h=0,d=f.length;h<d;h++){const g=f[h];l[h]=e(t[g],g,h,u&&u[h])}}else l=[];return r&&(r[o]=l),l}function tr(t,e,r={},o,l){if(Ze.isCE||Ze.parent&&Zs(Ze.parent)&&Ze.parent.isCE)return e!=="default"&&(r.name=e),qt("slot",r,o&&o());let u=t[e];u&&u._c&&(u._d=!1),ct();const f=u&&Zm(u(r)),h=Zt(fe,{key:r.key||f&&f.key||`_${e}`},f||(o?o():[]),f&&t._===1?64:-2);return!l&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function Zm(t){return t.some(e=>ca(e)?!(e.type===En||e.type===fe&&!Zm(e.children)):!0)?t:null}const ff=t=>t?c0(t)?kc(t)||t.proxy:ff(t.parent):null,Js=Re(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=>ff(t.parent),$root:t=>ff(t.root),$emit:t=>t.emit,$options:t=>vh(t),$forceUpdate:t=>t.f||(t.f=()=>uh(t.update)),$nextTick:t=>t.n||(t.n=Hr.bind(t.proxy)),$watch:t=>Q1.bind(t)}),zu=(t,e)=>t!==xe&&!t.__isScriptSetup&&se(t,e),g_={get({_:t},e){const{ctx:r,setupState:o,data:l,props:u,accessCache:f,type:h,appContext:d}=t;let g;if(e[0]!=="$"){const S=f[e];if(S!==void 0)switch(S){case 1:return o[e];case 2:return l[e];case 4:return r[e];case 3:return u[e]}else{if(zu(o,e))return f[e]=1,o[e];if(l!==xe&&se(l,e))return f[e]=2,l[e];if((g=t.propsOptions[0])&&se(g,e))return f[e]=3,u[e];if(r!==xe&&se(r,e))return f[e]=4,r[e];hf&&(f[e]=0)}}const v=Js[e];let b,x;if(v)return e==="$attrs"&&An(t,"get",e),v(t);if((b=h.__cssModules)&&(b=b[e]))return b;if(r!==xe&&se(r,e))return f[e]=4,r[e];if(x=d.config.globalProperties,se(x,e))return x[e]},set({_:t},e,r){const{data:o,setupState:l,ctx:u}=t;return zu(l,e)?(l[e]=r,!0):o!==xe&&se(o,e)?(o[e]=r,!0):se(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(u[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:l,propsOptions:u}},f){let h;return!!r[f]||t!==xe&&se(t,f)||zu(e,f)||(h=u[0])&&se(h,f)||se(o,f)||se(Js,f)||se(l.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:se(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function v_(){return m_().attrs}function m_(){const t=_a();return t.setupContext||(t.setupContext=f0(t))}function sg(t){return Ft(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let hf=!0;function y_(t){const e=vh(t),r=t.proxy,o=t.ctx;hf=!1,e.beforeCreate&&ag(e.beforeCreate,t,"bc");const{data:l,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:b,mounted:x,beforeUpdate:S,updated:N,activated:A,deactivated:M,beforeDestroy:T,beforeUnmount:E,destroyed:F,unmounted:L,render:j,renderTracked:Y,renderTriggered:ft,errorCaptured:X,serverPrefetch:st,expose:ot,inheritAttrs:kt,components:pt,directives:G,filters:R}=e;if(g&&b_(g,o,null),f)for(const B in f){const Q=f[B];Wt(Q)&&(o[B]=Q.bind(r))}if(l){const B=l.call(r,r);be(B)&&(t.data=Rn(B))}if(hf=!0,u)for(const B in u){const Q=u[B],wt=Wt(Q)?Q.bind(r,r):Wt(Q.get)?Q.get.bind(r,r):Qn,Tt=!Wt(Q)&&Wt(Q.set)?Q.set.bind(r):Qn,Rt=bt({get:wt,set:Tt});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Rt.value,set:zt=>Rt.value=zt})}if(h)for(const B in h)Jm(h[B],o,r,B);if(d){const B=Wt(d)?d.call(r):d;Reflect.ownKeys(B).forEach(Q=>{Ml(Q,B[Q])})}v&&ag(v,t,"c");function H(B,Q){Ft(Q)?Q.forEach(wt=>B(wt.bind(r))):Q&&B(Q.bind(r))}if(H(s_,b),H(as,x),H(a_,S),H(l_,N),H(r_,A),H(i_,M),H(h_,X),H(f_,Y),H(u_,ft),H(Km,E),H(gh,L),H(c_,st),Ft(ot))if(ot.length){const B=t.exposed||(t.exposed={});ot.forEach(Q=>{Object.defineProperty(B,Q,{get:()=>r[Q],set:wt=>r[Q]=wt})})}else t.exposed||(t.exposed={});j&&t.render===Qn&&(t.render=j),kt!=null&&(t.inheritAttrs=kt),pt&&(t.components=pt),G&&(t.directives=G)}function b_(t,e,r=Qn){Ft(t)&&(t=df(t));for(const o in t){const l=t[o];let u;be(l)?"default"in l?u=Ir(l.from||o,l.default,!0):u=Ir(l.from||o):u=Ir(l),Ee(u)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):e[o]=u}}function ag(t,e,r){Bn(Ft(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function Jm(t,e,r,o){const l=o.includes(".")?Wm(r,o):()=>r[o];if(ze(t)){const u=e[t];Wt(u)&&De(l,u)}else if(Wt(t))De(l,t.bind(r));else if(be(t))if(Ft(t))t.forEach(u=>Jm(u,e,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):e[t.handler];Wt(u)&&De(l,u,t)}}function vh(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:l,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(e);let d;return h?d=h:!l.length&&!r&&!o?d=e:(d={},l.length&&l.forEach(g=>Ul(d,g,f,!0)),Ul(d,e,f)),be(e)&&u.set(e,d),d}function Ul(t,e,r,o=!1){const{mixins:l,extends:u}=e;u&&Ul(t,u,r,!0),l&&l.forEach(f=>Ul(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=w_[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const w_={data:lg,props:cg,emits:cg,methods:Ks,computed:Ks,beforeCreate:hn,created:hn,beforeMount:hn,mounted:hn,beforeUpdate:hn,updated:hn,beforeDestroy:hn,beforeUnmount:hn,destroyed:hn,unmounted:hn,activated:hn,deactivated:hn,errorCaptured:hn,serverPrefetch:hn,components:Ks,directives:Ks,watch:__,provide:lg,inject:x_};function lg(t,e){return e?t?function(){return Re(Wt(t)?t.call(this,this):t,Wt(e)?e.call(this,this):e)}:e:t}function x_(t,e){return Ks(df(t),df(e))}function df(t){if(Ft(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function hn(t,e){return t?[...new Set([].concat(t,e))]:e}function Ks(t,e){return t?Re(Object.create(null),t,e):e}function cg(t,e){return t?Ft(t)&&Ft(e)?[...new Set([...t,...e])]:Re(Object.create(null),sg(t),sg(e??{})):e}function __(t,e){if(!t)return e;if(!e)return t;const r=Re(Object.create(null),t);for(const o in e)r[o]=hn(t[o],e[o]);return r}function Qm(){return{app:null,config:{isNativeTag:Rx,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 S_=0;function k_(t,e){return function(o,l=null){Wt(o)||(o=Re({},o)),l!=null&&!be(l)&&(l=null);const u=Qm(),f=new Set;let h=!1;const d=u.app={_uid:S_++,_component:o,_props:l,_container:null,_context:u,_instance:null,version:V_,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&Wt(g.install)?(f.add(g),g.install(d,...v)):Wt(g)&&(f.add(g),g(d,...v))),d},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),d},component(g,v){return v?(u.components[g]=v,d):u.components[g]},directive(g,v){return v?(u.directives[g]=v,d):u.directives[g]},mount(g,v,b){if(!h){const x=qt(o,l);return x.appContext=u,v&&e?e(x,g):t(x,g,b),h=!0,d._container=g,g.__vue_app__=d,kc(x.component)||x.component.proxy}},unmount(){h&&(t(null,d._container),delete d._container.__vue_app__)},provide(g,v){return u.provides[g]=v,d},runWithContext(g){jl=d;try{return g()}finally{jl=null}}};return d}}let jl=null;function Ml(t,e){if(je){let r=je.provides;const o=je.parent&&je.parent.provides;o===r&&(r=je.provides=Object.create(o)),r[t]=e}}function Ir(t,e,r=!1){const o=je||Ze;if(o||jl){const l=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:jl._context.provides;if(l&&t in l)return l[t];if(arguments.length>1)return r&&Wt(e)?e.call(o&&o.proxy):e}}function C_(t,e,r,o=!1){const l={},u={};ql(u,Sc,1),t.propsDefaults=Object.create(null),t0(t,e,l,u);for(const f in t.propsOptions[0])f in l||(l[f]=void 0);r?t.props=o?l:k1(l):t.type.props?t.props=l:t.props=u,t.attrs=u}function T_(t,e,r,o){const{props:l,attrs:u,vnode:{patchFlag:f}}=t,h=ae(l),[d]=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(yc(t.emitsOptions,x))continue;const S=e[x];if(d)if(se(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const N=mr(x);l[N]=pf(d,h,N,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{t0(t,e,l,u)&&(g=!0);let v;for(const b in h)(!e||!se(e,b)&&((v=io(b))===b||!se(e,v)))&&(d?r&&(r[b]!==void 0||r[v]!==void 0)&&(l[b]=pf(d,h,b,void 0,t,!0)):delete l[b]);if(u!==h)for(const b in u)(!e||!se(e,b))&&(delete u[b],g=!0)}g&&qr(t,"set","$attrs")}function t0(t,e,r,o){const[l,u]=t.propsOptions;let f=!1,h;if(e)for(let d in e){if(Ll(d))continue;const g=e[d];let v;l&&se(l,v=mr(d))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:yc(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(u){const d=ae(r),g=h||xe;for(let v=0;v<u.length;v++){const b=u[v];r[b]=pf(l,d,b,g[b],t,!se(g,b))}}return f}function pf(t,e,r,o,l,u){const f=t[r];if(f!=null){const h=se(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&!f.skipFactory&&Wt(d)){const{propsDefaults:g}=l;r in g?o=g[r]:(Xo(l),o=g[r]=d.call(null,e),Yi())}else o=d}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===io(r))&&(o=!0))}return o}function e0(t,e,r=!1){const o=e.propsCache,l=o.get(t);if(l)return l;const u=t.props,f={},h=[];let d=!1;if(!Wt(t)){const v=b=>{d=!0;const[x,S]=e0(b,e,!0);Re(f,x),S&&h.push(...S)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!d)return be(t)&&o.set(t,zo),zo;if(Ft(u))for(let v=0;v<u.length;v++){const b=mr(u[v]);ug(b)&&(f[b]=xe)}else if(u)for(const v in u){const b=mr(v);if(ug(b)){const x=u[v],S=f[b]=Ft(x)||Wt(x)?{type:x}:Re({},x);if(S){const N=dg(Boolean,S.type),A=dg(String,S.type);S[0]=N>-1,S[1]=A<0||N<A,(N>-1||se(S,"default"))&&h.push(b)}}}const g=[f,h];return be(t)&&o.set(t,g),g}function ug(t){return t[0]!=="$"}function fg(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function hg(t,e){return fg(t)===fg(e)}function dg(t,e){return Ft(e)?e.findIndex(r=>hg(r,t)):Wt(e)&&hg(e,t)?0:-1}const n0=t=>t[0]==="_"||t==="$stable",mh=t=>Ft(t)?t.map(Xn):[Xn(t)],E_=(t,e,r)=>{if(e._n)return e;const o=Yt((...l)=>mh(e(...l)),r);return o._c=!1,o},r0=(t,e,r)=>{const o=t._ctx;for(const l in t){if(n0(l))continue;const u=t[l];if(Wt(u))e[l]=E_(l,u,o);else if(u!=null){const f=mh(u);e[l]=()=>f}}},i0=(t,e)=>{const r=mh(e);t.slots.default=()=>r},L_=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=ae(e),ql(e,"_",r)):r0(e,t.slots={})}else t.slots={},e&&i0(t,e);ql(t.slots,Sc,1)},A_=(t,e,r)=>{const{vnode:o,slots:l}=t;let u=!0,f=xe;if(o.shapeFlag&32){const h=e._;h?r&&h===1?u=!1:(Re(l,e),!r&&h===1&&delete l._):(u=!e.$stable,r0(e,l)),f=e}else e&&(i0(t,e),f={default:1});if(u)for(const h in l)!n0(h)&&!(h in f)&&delete l[h]};function gf(t,e,r,o,l=!1){if(Ft(t)){t.forEach((x,S)=>gf(x,e&&(Ft(e)?e[S]:e),r,o,l));return}if(Zs(o)&&!l)return;const u=o.shapeFlag&4?kc(o.component)||o.component.proxy:o.el,f=l?null:u,{i:h,r:d}=t,g=e&&e.r,v=h.refs===xe?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==d&&(ze(g)?(v[g]=null,se(b,g)&&(b[g]=null)):Ee(g)&&(g.value=null)),Wt(d))xi(d,h,12,[f,v]);else{const x=ze(d),S=Ee(d);if(x||S){const N=()=>{if(t.f){const A=x?se(b,d)?b[d]:v[d]:d.value;l?Ft(A)&&Xf(A,u):Ft(A)?A.includes(u)||A.push(u):x?(v[d]=[u],se(b,d)&&(b[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else x?(v[d]=f,se(b,d)&&(b[d]=f)):S&&(d.value=f,t.k&&(v[t.k]=f))};f?(N.id=-1,_n(N,r)):N()}}}const _n=Z1;function M_(t){return N_(t)}function N_(t,e){const r=rf();r.__VUE__=!0;const{insert:o,remove:l,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:b,nextSibling:x,setScopeId:S=Qn,insertStaticContent:N}=t,A=(O,I,K,tt=null,nt=null,at=null,lt=!1,gt=null,xt=!!I.dynamicChildren)=>{if(O===I)return;O&&!dr(O,I)&&(tt=W(O),zt(O,nt,at,!0),O=null),I.patchFlag===-2&&(xt=!1,I.dynamicChildren=null);const{type:ht,ref:$t,shapeFlag:At}=I;switch(ht){case _c:M(O,I,K,tt);break;case En:T(O,I,K,tt);break;case Iu:O==null&&E(I,K,tt,lt);break;case fe:pt(O,I,K,tt,nt,at,lt,gt,xt);break;default:At&1?j(O,I,K,tt,nt,at,lt,gt,xt):At&6?G(O,I,K,tt,nt,at,lt,gt,xt):(At&64||At&128)&&ht.process(O,I,K,tt,nt,at,lt,gt,xt,it)}$t!=null&&nt&&gf($t,O&&O.ref,at,I||O,!I)},M=(O,I,K,tt)=>{if(O==null)o(I.el=h(I.children),K,tt);else{const nt=I.el=O.el;I.children!==O.children&&g(nt,I.children)}},T=(O,I,K,tt)=>{O==null?o(I.el=d(I.children||""),K,tt):I.el=O.el},E=(O,I,K,tt)=>{[O.el,O.anchor]=N(O.children,I,K,tt,O.el,O.anchor)},F=({el:O,anchor:I},K,tt)=>{let nt;for(;O&&O!==I;)nt=x(O),o(O,K,tt),O=nt;o(I,K,tt)},L=({el:O,anchor:I})=>{let K;for(;O&&O!==I;)K=x(O),l(O),O=K;l(I)},j=(O,I,K,tt,nt,at,lt,gt,xt)=>{lt=lt||I.type==="svg",O==null?Y(I,K,tt,nt,at,lt,gt,xt):st(O,I,nt,at,lt,gt,xt)},Y=(O,I,K,tt,nt,at,lt,gt)=>{let xt,ht;const{type:$t,props:At,shapeFlag:Ot,transition:It,dirs:jt}=O;if(xt=O.el=f(O.type,at,At&&At.is,At),Ot&8?v(xt,O.children):Ot&16&&X(O.children,xt,null,tt,nt,at&&$t!=="foreignObject",lt,gt),jt&&Fi(O,null,tt,"created"),ft(xt,O,O.scopeId,lt,tt),At){for(const ee in At)ee!=="value"&&!Ll(ee)&&u(xt,ee,null,At[ee],at,O.children,tt,nt,_t);"value"in At&&u(xt,"value",null,At.value),(ht=At.onVnodeBeforeMount)&&ur(ht,tt,O)}jt&&Fi(O,null,tt,"beforeMount");const ie=(!nt||nt&&!nt.pendingBranch)&&It&&!It.persisted;ie&&It.beforeEnter(xt),o(xt,I,K),((ht=At&&At.onVnodeMounted)||ie||jt)&&_n(()=>{ht&&ur(ht,tt,O),ie&&It.enter(xt),jt&&Fi(O,null,tt,"mounted")},nt)},ft=(O,I,K,tt,nt)=>{if(K&&S(O,K),tt)for(let at=0;at<tt.length;at++)S(O,tt[at]);if(nt){let at=nt.subTree;if(I===at){const lt=nt.vnode;ft(O,lt,lt.scopeId,lt.slotScopeIds,nt.parent)}}},X=(O,I,K,tt,nt,at,lt,gt,xt=0)=>{for(let ht=xt;ht<O.length;ht++){const $t=O[ht]=gt?pi(O[ht]):Xn(O[ht]);A(null,$t,I,K,tt,nt,at,lt,gt)}},st=(O,I,K,tt,nt,at,lt)=>{const gt=I.el=O.el;let{patchFlag:xt,dynamicChildren:ht,dirs:$t}=I;xt|=O.patchFlag&16;const At=O.props||xe,Ot=I.props||xe;let It;K&&qi(K,!1),(It=Ot.onVnodeBeforeUpdate)&&ur(It,K,I,O),$t&&Fi(I,O,K,"beforeUpdate"),K&&qi(K,!0);const jt=nt&&I.type!=="foreignObject";if(ht?ot(O.dynamicChildren,ht,gt,K,tt,jt,at):lt||Q(O,I,gt,null,K,tt,jt,at,!1),xt>0){if(xt&16)kt(gt,I,At,Ot,K,tt,nt);else if(xt&2&&At.class!==Ot.class&&u(gt,"class",null,Ot.class,nt),xt&4&&u(gt,"style",At.style,Ot.style,nt),xt&8){const ie=I.dynamicProps;for(let ee=0;ee<ie.length;ee++){const ue=ie[ee],te=At[ue],yn=Ot[ue];(yn!==te||ue==="value")&&u(gt,ue,te,yn,nt,O.children,K,tt,_t)}}xt&1&&O.children!==I.children&&v(gt,I.children)}else!lt&&ht==null&&kt(gt,I,At,Ot,K,tt,nt);((It=Ot.onVnodeUpdated)||$t)&&_n(()=>{It&&ur(It,K,I,O),$t&&Fi(I,O,K,"updated")},tt)},ot=(O,I,K,tt,nt,at,lt)=>{for(let gt=0;gt<I.length;gt++){const xt=O[gt],ht=I[gt],$t=xt.el&&(xt.type===fe||!dr(xt,ht)||xt.shapeFlag&70)?b(xt.el):K;A(xt,ht,$t,null,tt,nt,at,lt,!0)}},kt=(O,I,K,tt,nt,at,lt)=>{if(K!==tt){if(K!==xe)for(const gt in K)!Ll(gt)&&!(gt in tt)&&u(O,gt,K[gt],null,lt,I.children,nt,at,_t);for(const gt in tt){if(Ll(gt))continue;const xt=tt[gt],ht=K[gt];xt!==ht&&gt!=="value"&&u(O,gt,ht,xt,lt,I.children,nt,at,_t)}"value"in tt&&u(O,"value",K.value,tt.value)}},pt=(O,I,K,tt,nt,at,lt,gt,xt)=>{const ht=I.el=O?O.el:h(""),$t=I.anchor=O?O.anchor:h("");let{patchFlag:At,dynamicChildren:Ot,slotScopeIds:It}=I;It&&(gt=gt?gt.concat(It):It),O==null?(o(ht,K,tt),o($t,K,tt),X(I.children,K,$t,nt,at,lt,gt,xt)):At>0&&At&64&&Ot&&O.dynamicChildren?(ot(O.dynamicChildren,Ot,K,nt,at,lt,gt),(I.key!=null||nt&&I===nt.subTree)&&o0(O,I,!0)):Q(O,I,K,$t,nt,at,lt,gt,xt)},G=(O,I,K,tt,nt,at,lt,gt,xt)=>{I.slotScopeIds=gt,O==null?I.shapeFlag&512?nt.ctx.activate(I,K,tt,lt,xt):R(I,K,tt,nt,at,lt,xt):k(O,I,xt)},R=(O,I,K,tt,nt,at,lt)=>{const gt=O.component=I_(O,tt,nt);if(wc(O)&&(gt.ctx.renderer=it),F_(gt),gt.asyncDep){if(nt&&nt.registerDep(gt,H),!O.el){const xt=gt.subTree=qt(En);T(null,xt,I,K)}return}H(gt,O,I,K,nt,at,lt)},k=(O,I,K)=>{const tt=I.component=O.component;if(W1(O,I,K))if(tt.asyncDep&&!tt.asyncResolved){B(tt,I,K);return}else tt.next=I,R1(tt.update),tt.update();else I.el=O.el,tt.vnode=I},H=(O,I,K,tt,nt,at,lt)=>{const gt=()=>{if(O.isMounted){let{next:$t,bu:At,u:Ot,parent:It,vnode:jt}=O,ie=$t,ee;qi(O,!1),$t?($t.el=jt.el,B(O,$t,lt)):$t=jt,At&&Al(At),(ee=$t.props&&$t.props.onVnodeBeforeUpdate)&&ur(ee,It,$t,jt),qi(O,!0);const ue=Du(O),te=O.subTree;O.subTree=ue,A(te,ue,b(te.el),W(te),O,nt,at),$t.el=ue.el,ie===null&&fh(O,ue.el),Ot&&_n(Ot,nt),(ee=$t.props&&$t.props.onVnodeUpdated)&&_n(()=>ur(ee,It,$t,jt),nt)}else{let $t;const{el:At,props:Ot}=I,{bm:It,m:jt,parent:ie}=O,ee=Zs(I);if(qi(O,!1),It&&Al(It),!ee&&($t=Ot&&Ot.onVnodeBeforeMount)&&ur($t,ie,I),qi(O,!0),At&&Nt){const ue=()=>{O.subTree=Du(O),Nt(At,O.subTree,O,nt,null)};ee?I.type.__asyncLoader().then(()=>!O.isUnmounted&&ue()):ue()}else{const ue=O.subTree=Du(O);A(null,ue,K,tt,O,nt,at),I.el=ue.el}if(jt&&_n(jt,nt),!ee&&($t=Ot&&Ot.onVnodeMounted)){const ue=I;_n(()=>ur($t,ie,ue),nt)}(I.shapeFlag&256||ie&&Zs(ie.vnode)&&ie.vnode.shapeFlag&256)&&O.a&&_n(O.a,nt),O.isMounted=!0,I=K=tt=null}},xt=O.effect=new Qf(gt,()=>uh(ht),O.scope),ht=O.update=()=>xt.run();ht.id=O.uid,qi(O,!0),ht()},B=(O,I,K)=>{I.component=O;const tt=O.vnode.props;O.vnode=I,O.next=null,T_(O,I.props,tt,K),A_(O,I.children,K),is(),eg(),os()},Q=(O,I,K,tt,nt,at,lt,gt,xt=!1)=>{const ht=O&&O.children,$t=O?O.shapeFlag:0,At=I.children,{patchFlag:Ot,shapeFlag:It}=I;if(Ot>0){if(Ot&128){Tt(ht,At,K,tt,nt,at,lt,gt,xt);return}else if(Ot&256){wt(ht,At,K,tt,nt,at,lt,gt,xt);return}}It&8?($t&16&&_t(ht,nt,at),At!==ht&&v(K,At)):$t&16?It&16?Tt(ht,At,K,tt,nt,at,lt,gt,xt):_t(ht,nt,at,!0):($t&8&&v(K,""),It&16&&X(At,K,tt,nt,at,lt,gt,xt))},wt=(O,I,K,tt,nt,at,lt,gt,xt)=>{O=O||zo,I=I||zo;const ht=O.length,$t=I.length,At=Math.min(ht,$t);let Ot;for(Ot=0;Ot<At;Ot++){const It=I[Ot]=xt?pi(I[Ot]):Xn(I[Ot]);A(O[Ot],It,K,null,nt,at,lt,gt,xt)}ht>$t?_t(O,nt,at,!0,!1,At):X(I,K,tt,nt,at,lt,gt,xt,At)},Tt=(O,I,K,tt,nt,at,lt,gt,xt)=>{let ht=0;const $t=I.length;let At=O.length-1,Ot=$t-1;for(;ht<=At&&ht<=Ot;){const It=O[ht],jt=I[ht]=xt?pi(I[ht]):Xn(I[ht]);if(dr(It,jt))A(It,jt,K,null,nt,at,lt,gt,xt);else break;ht++}for(;ht<=At&&ht<=Ot;){const It=O[At],jt=I[Ot]=xt?pi(I[Ot]):Xn(I[Ot]);if(dr(It,jt))A(It,jt,K,null,nt,at,lt,gt,xt);else break;At--,Ot--}if(ht>At){if(ht<=Ot){const It=Ot+1,jt=It<$t?I[It].el:tt;for(;ht<=Ot;)A(null,I[ht]=xt?pi(I[ht]):Xn(I[ht]),K,jt,nt,at,lt,gt,xt),ht++}}else if(ht>Ot)for(;ht<=At;)zt(O[ht],nt,at,!0),ht++;else{const It=ht,jt=ht,ie=new Map;for(ht=jt;ht<=Ot;ht++){const ye=I[ht]=xt?pi(I[ht]):Xn(I[ht]);ye.key!=null&&ie.set(ye.key,ht)}let ee,ue=0;const te=Ot-jt+1;let yn=!1,Mn=0;const We=new Array(te);for(ht=0;ht<te;ht++)We[ht]=0;for(ht=It;ht<=At;ht++){const ye=O[ht];if(ue>=te){zt(ye,nt,at,!0);continue}let on;if(ye.key!=null)on=ie.get(ye.key);else for(ee=jt;ee<=Ot;ee++)if(We[ee-jt]===0&&dr(ye,I[ee])){on=ee;break}on===void 0?zt(ye,nt,at,!0):(We[on-jt]=ht+1,on>=Mn?Mn=on:yn=!0,A(ye,I[on],K,null,nt,at,lt,gt,xt),ue++)}const ao=yn?P_(We):zo;for(ee=ao.length-1,ht=te-1;ht>=0;ht--){const ye=jt+ht,on=I[ye],yt=ye+1<$t?I[ye+1].el:tt;We[ht]===0?A(null,on,K,yt,nt,at,lt,gt,xt):yn&&(ee<0||ht!==ao[ee]?Rt(on,K,yt,2):ee--)}}},Rt=(O,I,K,tt,nt=null)=>{const{el:at,type:lt,transition:gt,children:xt,shapeFlag:ht}=O;if(ht&6){Rt(O.component.subTree,I,K,tt);return}if(ht&128){O.suspense.move(I,K,tt);return}if(ht&64){lt.move(O,I,K,it);return}if(lt===fe){o(at,I,K);for(let At=0;At<xt.length;At++)Rt(xt[At],I,K,tt);o(O.anchor,I,K);return}if(lt===Iu){F(O,I,K);return}if(tt!==2&&ht&1&&gt)if(tt===0)gt.beforeEnter(at),o(at,I,K),_n(()=>gt.enter(at),nt);else{const{leave:At,delayLeave:Ot,afterLeave:It}=gt,jt=()=>o(at,I,K),ie=()=>{At(at,()=>{jt(),It&&It()})};Ot?Ot(at,jt,ie):ie()}else o(at,I,K)},zt=(O,I,K,tt=!1,nt=!1)=>{const{type:at,props:lt,ref:gt,children:xt,dynamicChildren:ht,shapeFlag:$t,patchFlag:At,dirs:Ot}=O;if(gt!=null&&gf(gt,null,K,O,!0),$t&256){I.ctx.deactivate(O);return}const It=$t&1&&Ot,jt=!Zs(O);let ie;if(jt&&(ie=lt&&lt.onVnodeBeforeUnmount)&&ur(ie,I,O),$t&6)Jt(O.component,K,tt);else{if($t&128){O.suspense.unmount(K,tt);return}It&&Fi(O,null,I,"beforeUnmount"),$t&64?O.type.remove(O,I,K,nt,it,tt):ht&&(at!==fe||At>0&&At&64)?_t(ht,I,K,!1,!0):(at===fe&&At&384||!nt&&$t&16)&&_t(xt,I,K),tt&&Vt(O)}(jt&&(ie=lt&&lt.onVnodeUnmounted)||It)&&_n(()=>{ie&&ur(ie,I,O),It&&Fi(O,null,I,"unmounted")},K)},Vt=O=>{const{type:I,el:K,anchor:tt,transition:nt}=O;if(I===fe){Gt(K,tt);return}if(I===Iu){L(O);return}const at=()=>{l(K),nt&&!nt.persisted&&nt.afterLeave&&nt.afterLeave()};if(O.shapeFlag&1&&nt&&!nt.persisted){const{leave:lt,delayLeave:gt}=nt,xt=()=>lt(K,at);gt?gt(O.el,at,xt):xt()}else at()},Gt=(O,I)=>{let K;for(;O!==I;)K=x(O),l(O),O=K;l(I)},Jt=(O,I,K)=>{const{bum:tt,scope:nt,update:at,subTree:lt,um:gt}=O;tt&&Al(tt),nt.stop(),at&&(at.active=!1,zt(lt,O,I,K)),gt&&_n(gt,I),_n(()=>{O.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},_t=(O,I,K,tt=!1,nt=!1,at=0)=>{for(let lt=at;lt<O.length;lt++)zt(O[lt],I,K,tt,nt)},W=O=>O.shapeFlag&6?W(O.component.subTree):O.shapeFlag&128?O.suspense.next():x(O.anchor||O.el),et=(O,I,K)=>{O==null?I._vnode&&zt(I._vnode,null,null,!0):A(I._vnode||null,O,I,null,null,null,K),eg(),Im(),I._vnode=O},it={p:A,um:zt,m:Rt,r:Vt,mt:R,mc:X,pc:Q,pbc:ot,n:W,o:t};let Mt,Nt;return e&&([Mt,Nt]=e(it)),{render:et,hydrate:Mt,createApp:k_(et,Mt)}}function qi({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function o0(t,e,r=!1){const o=t.children,l=e.children;if(Ft(o)&&Ft(l))for(let u=0;u<o.length;u++){const f=o[u];let h=l[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=l[u]=pi(l[u]),h.el=f.el),r||o0(f,h)),h.type===_c&&(h.el=f.el)}}function P_(t){const e=t.slice(),r=[0];let o,l,u,f,h;const d=t.length;for(o=0;o<d;o++){const g=t[o];if(g!==0){if(l=r[r.length-1],t[l]<g){e[o]=l,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&&(e[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=e[f];return r}const O_=t=>t.__isTeleport,fe=Symbol.for("v-fgt"),_c=Symbol.for("v-txt"),En=Symbol.for("v-cmt"),Iu=Symbol.for("v-stc"),Qs=[];let Hn=null;function ct(t=!1){Qs.push(Hn=t?null:[])}function s0(){Qs.pop(),Hn=Qs[Qs.length-1]||null}let Ko=1;function pg(t){Ko+=t}function a0(t){return t.dynamicChildren=Ko>0?Hn||zo:null,s0(),Ko>0&&Hn&&Hn.push(t),t}function Et(t,e,r,o,l,u){return a0(ut(t,e,r,o,l,u,!0))}function Zt(t,e,r,o,l){return a0(qt(t,e,r,o,l,!0))}function ca(t){return t?t.__v_isVNode===!0:!1}function dr(t,e){return t.type===e.type&&t.key===e.key}const Sc="__vInternal",l0=({key:t})=>t??null,Nl=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ze(t)||Ee(t)||Wt(t)?{i:Ze,r:t,k:e,f:!!r}:t:null);function ut(t,e=null,r=null,o=0,l=null,u=t===fe?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&l0(e),ref:e&&Nl(e),scopeId:bc,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:l,dynamicChildren:null,appContext:null,ctx:Ze};return h?(yh(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=ze(r)?8:16),Ko>0&&!f&&Hn&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&Hn.push(d),d}const qt=$_;function $_(t,e=null,r=null,o=0,l=null,u=!1){if((!t||t===p_)&&(t=En),ca(t)){const h=ki(t,e,!0);return r&&yh(h,r),Ko>0&&!u&&Hn&&(h.shapeFlag&6?Hn[Hn.indexOf(t)]=h:Hn.push(h)),h.patchFlag|=-2,h}if(W_(t)&&(t=t.__vccOpts),e){e=D_(e);let{class:h,style:d}=e;h&&!ze(h)&&(e.class=ve(h)),be(d)&&(Nm(d)&&!Ft(d)&&(d=Re({},d)),e.style=Tn(d))}const f=ze(t)?1:U1(t)?128:O_(t)?64:be(t)?4:Wt(t)?2:0;return ut(t,e,r,o,l,f,u,!0)}function D_(t){return t?Nm(t)||Sc in t?Re({},t):t:null}function ki(t,e,r=!1){const{props:o,ref:l,patchFlag:u,children:f}=t,h=e?_i(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&l0(h),ref:e&&e.ref?r&&l?Ft(l)?l.concat(Nl(e)):[l,Nl(e)]:Nl(e):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==fe?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&&ki(t.ssContent),ssFallback:t.ssFallback&&ki(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function dn(t=" ",e=0){return qt(_c,null,t,e)}function ne(t="",e=!1){return e?(ct(),Zt(En,null,t)):qt(En,null,t)}function Xn(t){return t==null||typeof t=="boolean"?qt(En):Ft(t)?qt(fe,null,t.slice()):typeof t=="object"?pi(t):qt(_c,null,String(t))}function pi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ki(t)}function yh(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(Ft(e))r=16;else if(typeof e=="object")if(o&65){const l=e.default;l&&(l._c&&(l._d=!1),yh(t,l()),l._c&&(l._d=!0));return}else{r=32;const l=e._;!l&&!(Sc in e)?e._ctx=Ze:l===3&&Ze&&(Ze.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Wt(e)?(e={default:e,_ctx:Ze},r=32):(e=String(e),o&64?(r=16,e=[dn(e)]):r=8);t.children=e,t.shapeFlag|=r}function _i(...t){const e={};for(let r=0;r<t.length;r++){const o=t[r];for(const l in o)if(l==="class")e.class!==o.class&&(e.class=ve([e.class,o.class]));else if(l==="style")e.style=Tn([e.style,o.style]);else if(hc(l)){const u=e[l],f=o[l];f&&u!==f&&!(Ft(u)&&u.includes(f))&&(e[l]=u?[].concat(u,f):f)}else l!==""&&(e[l]=o[l])}return e}function ur(t,e,r,o=null){Bn(t,e,7,[r,o])}const R_=Qm();let z_=0;function I_(t,e,r){const o=t.type,l=(e?e.appContext:t.appContext)||R_,u={uid:z_++,vnode:t,type:o,parent:e,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Kx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:e0(o,l),emitsOptions:qm(o,l),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:o.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,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=e?e.root:u,u.emit=I1.bind(null,u),t.ce&&t.ce(u),u}let je=null;const _a=()=>je||Ze;let bh,No,gg="__VUE_INSTANCE_SETTERS__";(No=rf()[gg])||(No=rf()[gg]=[]),No.push(t=>je=t),bh=t=>{No.length>1?No.forEach(e=>e(t)):No[0](t)};const Xo=t=>{bh(t),t.scope.on()},Yi=()=>{je&&je.scope.off(),bh(null)};function c0(t){return t.vnode.shapeFlag&4}let ua=!1;function F_(t,e=!1){ua=e;const{props:r,children:o}=t.vnode,l=c0(t);C_(t,r,l,e),L_(t,o);const u=l?q_(t,e):void 0;return ua=!1,u}function q_(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=ih(new Proxy(t.ctx,g_));const{setup:o}=r;if(o){const l=t.setupContext=o.length>1?f0(t):null;Xo(t),is();const u=xi(o,t,0,[t.props,l]);if(os(),Yi(),pm(u)){if(u.then(Yi,Yi),e)return u.then(f=>{vf(t,f,e)}).catch(f=>{xa(f,t,0)});t.asyncDep=u}else vf(t,u,e)}else u0(t,e)}function vf(t,e,r){Wt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:be(e)&&(t.setupState=Om(e)),u0(t,r)}let vg;function u0(t,e,r){const o=t.type;if(!t.render){if(!e&&vg&&!o.render){const l=o.template||vh(t).template;if(l){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Re(Re({isCustomElement:u,delimiters:h},f),d);o.render=vg(l,g)}}t.render=o.render||Qn}Xo(t),is(),y_(t),os(),Yi()}function H_(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return An(t,"get","$attrs"),e[r]}}))}function f0(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return H_(t)},slots:t.slots,emit:t.emit,expose:e}}function kc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Om(ih(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Js)return Js[r](t)},has(e,r){return r in e||r in Js}}))}function B_(t,e=!0){return Wt(t)?t.displayName||t.name:t.name||e&&t.__name}function W_(t){return Wt(t)&&"__vccOpts"in t}const bt=(t,e)=>O1(t,e,ua);function Sa(t,e,r){const o=arguments.length;return o===2?be(e)&&!Ft(e)?ca(e)?qt(t,null,[e]):qt(t,e):qt(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&ca(r)&&(r=[r]),qt(t,e,r))}const U_=Symbol.for("v-scx"),j_=()=>Ir(U_),V_="3.3.4",G_="http://www.w3.org/2000/svg",ji=typeof document<"u"?document:null,mg=ji&&ji.createElement("template"),K_={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,o)=>{const l=e?ji.createElementNS(G_,t):ji.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&l.setAttribute("multiple",o.multiple),l},createText:t=>ji.createTextNode(t),createComment:t=>ji.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ji.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,l,u){const f=r?r.previousSibling:e.lastChild;if(l&&(l===u||l.nextSibling))for(;e.insertBefore(l.cloneNode(!0),r),!(l===u||!(l=l.nextSibling)););else{mg.innerHTML=o?`<svg>${t}</svg>`:t;const h=mg.content;if(o){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}e.insertBefore(h,r)}return[f?f.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function X_(t,e,r){const o=t._vtc;o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function Y_(t,e,r){const o=t.style,l=ze(r);if(r&&!l){if(e&&!ze(e))for(const u in e)r[u]==null&&mf(o,u,"");for(const u in r)mf(o,u,r[u])}else{const u=o.display;l?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const yg=/\s*!important$/;function mf(t,e,r){if(Ft(r))r.forEach(o=>mf(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=Z_(t,e);yg.test(r)?t.setProperty(io(o),r.replace(yg,""),"important"):t[o]=r}}const bg=["Webkit","Moz","ms"],Fu={};function Z_(t,e){const r=Fu[e];if(r)return r;let o=mr(e);if(o!=="filter"&&o in t)return Fu[e]=o;o=gc(o);for(let l=0;l<bg.length;l++){const u=bg[l]+o;if(u in t)return Fu[e]=u}return e}const wg="http://www.w3.org/1999/xlink";function J_(t,e,r,o,l){if(o&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(wg,e.slice(6,e.length)):t.setAttributeNS(wg,e,r);else{const u=Gx(e);r==null||u&&!ym(r)?t.removeAttribute(e):t.setAttribute(e,u?"":r)}}function Q_(t,e,r,o,l,u,f){if(e==="innerHTML"||e==="textContent"){o&&f(o,l,u),t[e]=r??"";return}const h=t.tagName;if(e==="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(e);return}let d=!1;if(r===""||r==null){const g=typeof t[e];g==="boolean"?r=ym(r):r==null&&g==="string"?(r="",d=!0):g==="number"&&(r=0,d=!0)}try{t[e]=r}catch{}d&&t.removeAttribute(e)}function Oo(t,e,r,o){t.addEventListener(e,r,o)}function tS(t,e,r,o){t.removeEventListener(e,r,o)}function eS(t,e,r,o,l=null){const u=t._vei||(t._vei={}),f=u[e];if(o&&f)f.value=o;else{const[h,d]=nS(e);if(o){const g=u[e]=oS(o,l);Oo(t,h,g,d)}else f&&(tS(t,h,f,d),u[e]=void 0)}}const xg=/(?:Once|Passive|Capture)$/;function nS(t){let e;if(xg.test(t)){e={};let o;for(;o=t.match(xg);)t=t.slice(0,t.length-o[0].length),e[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):io(t.slice(2)),e]}let qu=0;const rS=Promise.resolve(),iS=()=>qu||(rS.then(()=>qu=0),qu=Date.now());function oS(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Bn(sS(o,r.value),e,5,[o])};return r.value=t,r.attached=iS(),r}function sS(t,e){if(Ft(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>l=>!l._stopped&&o&&o(l))}else return e}const _g=/^on[a-z]/,aS=(t,e,r,o,l=!1,u,f,h,d)=>{e==="class"?X_(t,o,l):e==="style"?Y_(t,r,o):hc(e)?Kf(e)||eS(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):lS(t,e,o,l))?Q_(t,e,o,u,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),J_(t,e,o,l))};function lS(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&_g.test(e)&&Wt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||_g.test(e)&&ze(r)?!1:e in t}const ci="transition",Bs="animation",wh=(t,{slots:e})=>Sa(n_,cS(t),e);wh.displayName="Transition";const h0={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};wh.props=Re({},Um,h0);const Hi=(t,e=[])=>{Ft(t)?t.forEach(r=>r(...e)):t&&t(...e)},Sg=t=>t?Ft(t)?t.some(e=>e.length>1):t.length>1:!1;function cS(t){const e={};for(const pt in t)pt in h0||(e[pt]=t[pt]);if(t.css===!1)return e;const{name:r="v",type:o,duration:l,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:x=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,N=uS(l),A=N&&N[0],M=N&&N[1],{onBeforeEnter:T,onEnter:E,onEnterCancelled:F,onLeave:L,onLeaveCancelled:j,onBeforeAppear:Y=T,onAppear:ft=E,onAppearCancelled:X=F}=e,st=(pt,G,R)=>{Bi(pt,G?v:h),Bi(pt,G?g:f),R&&R()},ot=(pt,G)=>{pt._isLeaving=!1,Bi(pt,b),Bi(pt,S),Bi(pt,x),G&&G()},kt=pt=>(G,R)=>{const k=pt?ft:E,H=()=>st(G,pt,R);Hi(k,[G,H]),kg(()=>{Bi(G,pt?d:u),ui(G,pt?v:h),Sg(k)||Cg(G,o,A,H)})};return Re(e,{onBeforeEnter(pt){Hi(T,[pt]),ui(pt,u),ui(pt,f)},onBeforeAppear(pt){Hi(Y,[pt]),ui(pt,d),ui(pt,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(pt,G){pt._isLeaving=!0;const R=()=>ot(pt,G);ui(pt,b),dS(),ui(pt,x),kg(()=>{pt._isLeaving&&(Bi(pt,b),ui(pt,S),Sg(L)||Cg(pt,o,M,R))}),Hi(L,[pt,R])},onEnterCancelled(pt){st(pt,!1),Hi(F,[pt])},onAppearCancelled(pt){st(pt,!0),Hi(X,[pt])},onLeaveCancelled(pt){ot(pt),Hi(j,[pt])}})}function uS(t){if(t==null)return null;if(be(t))return[Hu(t.enter),Hu(t.leave)];{const e=Hu(t);return[e,e]}}function Hu(t){return mm(t)}function ui(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function Bi(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function kg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let fS=0;function Cg(t,e,r,o){const l=t._endId=++fS,u=()=>{l===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=hS(t,e);if(!f)return o();const g=f+"end";let v=0;const b=()=>{t.removeEventListener(g,x),u()},x=S=>{S.target===t&&++v>=d&&b()};setTimeout(()=>{v<d&&b()},h+1),t.addEventListener(g,x)}function hS(t,e){const r=window.getComputedStyle(t),o=N=>(r[N]||"").split(", "),l=o(`${ci}Delay`),u=o(`${ci}Duration`),f=Tg(l,u),h=o(`${Bs}Delay`),d=o(`${Bs}Duration`),g=Tg(h,d);let v=null,b=0,x=0;e===ci?f>0&&(v=ci,b=f,x=u.length):e===Bs?g>0&&(v=Bs,b=g,x=d.length):(b=Math.max(f,g),v=b>0?f>g?ci:Bs:null,x=v?v===ci?u.length:d.length:0);const S=v===ci&&/\b(transform|all)(,|$)/.test(o(`${ci}Property`).toString());return{type:v,timeout:b,propCount:x,hasTransform:S}}function Tg(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,o)=>Eg(r)+Eg(t[o])))}function Eg(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function dS(){return document.body.offsetHeight}const Lg=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ft(e)?r=>Al(e,r):e};function pS(t){t.target.composing=!0}function Ag(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const gS={created(t,{modifiers:{lazy:e,trim:r,number:o}},l){t._assign=Lg(l);const u=o||l.props&&l.props.type==="number";Oo(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=nf(h)),t._assign(h)}),r&&Oo(t,"change",()=>{t.value=t.value.trim()}),e||(Oo(t,"compositionstart",pS),Oo(t,"compositionend",Ag),Oo(t,"change",Ag))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:l}},u){if(t._assign=Lg(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===e||(l||t.type==="number")&&nf(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},vS={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},yf=(t,e)=>r=>{if(!("key"in r))return;const o=io(r.key);if(e.some(l=>l===o||vS[l]===o))return t(r)},bf={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Ws(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:o}){!e!=!r&&(o?e?(o.beforeEnter(t),Ws(t,!0),o.enter(t)):o.leave(t,()=>{Ws(t,!1)}):Ws(t,e))},beforeUnmount(t,{value:e}){Ws(t,e)}};function Ws(t,e){t.style.display=e?t._vod:"none"}const mS=Re({patchProp:aS},K_);let Mg;function yS(){return Mg||(Mg=M_(mS))}const d0=(...t)=>{const e=yS().createApp(...t),{mount:r}=e;return e.mount=o=>{const l=bS(o);if(!l)return;const u=e._component;!Wt(u)&&!u.render&&!u.template&&(u.template=l.innerHTML),l.innerHTML="";const f=r(l,!1,l instanceof SVGElement);return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),f},e};function bS(t){return ze(t)?document.querySelector(t):t}const so=(t,e)=>{const r=t.__vccOpts||t;for(const[o,l]of e)r[o]=l;return r},wS={};function xS(t,e){const r=Qi("RouterView");return ct(),Zt(r)}const _S=so(wS,[["render",xS]]);/*!
2
+ * vue-router v4.2.2
3
+ * (c) 2023 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const $o=typeof window<"u";function SS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function Bu(t,e){const r={};for(const o in e){const l=e[o];r[o]=er(l)?l.map(t):t(l)}return r}const ta=()=>{},er=Array.isArray,kS=/\/$/,CS=t=>t.replace(kS,"");function Wu(t,e,r="/"){let o,l={},u="",f="";const h=e.indexOf("#");let d=e.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(o=e.slice(0,d),u=e.slice(d+1,h>-1?h:e.length),l=t(u)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=AS(o??e,r),{fullPath:o+(u&&"?")+u+f,path:o,query:l,hash:f}}function TS(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Ng(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function ES(t,e,r){const o=e.matched.length-1,l=r.matched.length-1;return o>-1&&o===l&&Yo(e.matched[o],r.matched[l])&&p0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Yo(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function p0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!LS(t[r],e[r]))return!1;return!0}function LS(t,e){return er(t)?Pg(t,e):er(e)?Pg(e,t):t===e}function Pg(t,e){return er(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function AS(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/"),l=o[o.length-1];(l===".."||l===".")&&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 fa;(function(t){t.pop="pop",t.push="push"})(fa||(fa={}));var ea;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ea||(ea={}));function MS(t){if(!t)if($o){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),CS(t)}const NS=/^[^#]+#/;function PS(t,e){return t.replace(NS,"#")+e}function OS(t,e){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-r.left-(e.left||0),top:o.top-r.top-(e.top||0)}}const Cc=()=>({left:window.pageXOffset,top:window.pageYOffset});function $S(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),l=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!l)return;e=OS(l,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Og(t,e){return(history.state?history.state.position-e:-1)+t}const wf=new Map;function DS(t,e){wf.set(t,e)}function RS(t){const e=wf.get(t);return wf.delete(t),e}let zS=()=>location.protocol+"//"+location.host;function g0(t,e){const{pathname:r,search:o,hash:l}=e,u=t.indexOf("#");if(u>-1){let h=l.includes(t.slice(u))?t.slice(u).length:1,d=l.slice(h);return d[0]!=="/"&&(d="/"+d),Ng(d,"")}return Ng(r,t)+o+l}function IS(t,e,r,o){let l=[],u=[],f=null;const h=({state:x})=>{const S=g0(t,location),N=r.value,A=e.value;let M=0;if(x){if(r.value=S,e.value=x,f&&f===N){f=null;return}M=A?x.position-A.position:0}else o(S);l.forEach(T=>{T(r.value,N,{delta:M,type:fa.pop,direction:M?M>0?ea.forward:ea.back:ea.unknown})})};function d(){f=r.value}function g(x){l.push(x);const S=()=>{const N=l.indexOf(x);N>-1&&l.splice(N,1)};return u.push(S),S}function v(){const{history:x}=window;x.state&&x.replaceState(pe({},x.state,{scroll:Cc()}),"")}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:d,listen:g,destroy:b}}function $g(t,e,r,o=!1,l=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:l?Cc():null}}function FS(t){const{history:e,location:r}=window,o={value:g0(t,r)},l={value:e.state};l.value||u(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function u(d,g,v){const b=t.indexOf("#"),x=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+d:zS()+t+d;try{e[v?"replaceState":"pushState"](g,"",x),l.value=g}catch(S){console.error(S),r[v?"replace":"assign"](x)}}function f(d,g){const v=pe({},e.state,$g(l.value.back,d,l.value.forward,!0),g,{position:l.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=pe({},l.value,e.state,{forward:d,scroll:Cc()});u(v.current,v,!0);const b=pe({},$g(o.value,d,null),{position:v.position+1},g);u(d,b,!1),o.value=d}return{location:o,state:l,push:h,replace:f}}function qS(t){t=MS(t);const e=FS(t),r=IS(t,e.state,e.location,e.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const l=pe({location:"",base:t,go:o,createHref:PS.bind(null,t)},e,r);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>e.state.value}),l}function HS(t){return typeof t=="string"||t&&typeof t=="object"}function v0(t){return typeof t=="string"||typeof t=="symbol"}const fi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},m0=Symbol("");var Dg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Dg||(Dg={}));function Zo(t,e){return pe(new Error,{type:t,[m0]:!0},e)}function Pr(t,e){return t instanceof Error&&m0 in t&&(e==null||!!(t.type&e))}const Rg="[^/]+?",BS={sensitive:!1,strict:!1,start:!0,end:!0},WS=/[.+*?^${}()[\]/\\]/g;function US(t,e){const r=pe({},BS,e),o=[];let l=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(l+="/");for(let b=0;b<g.length;b++){const x=g[b];let S=40+(r.sensitive?.25:0);if(x.type===0)b||(l+="/"),l+=x.value.replace(WS,"\\$&"),S+=40;else if(x.type===1){const{value:N,repeatable:A,optional:M,regexp:T}=x;u.push({name:N,repeatable:A,optional:M});const E=T||Rg;if(E!==Rg){S+=10;try{new RegExp(`(${E})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${N}" (${E}): `+L.message)}}let F=A?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;b||(F=M&&g.length<2?`(?:/${F})`:"/"+F),M&&(F+="?"),l+=F,S+=20,M&&(S+=-8),A&&(S+=-20),E===".*"&&(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||(l+="/?"),r.end?l+="$":r.strict&&(l+="(?:/|$)");const f=new RegExp(l,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]||"",N=u[x-1];b[N.name]=S&&N.repeatable?S.split("/"):S}return b}function d(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:N,repeatable:A,optional:M}=S,T=N in g?g[N]:"";if(er(T)&&!A)throw new Error(`Provided param "${N}" is an array but it is not repeatable (* or + modifiers)`);const E=er(T)?T.join("/"):T;if(!E)if(M)x.length<2&&(v.endsWith("/")?v=v.slice(0,-1):b=!0);else throw new Error(`Missing required param "${N}"`);v+=E}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:d}}function jS(t,e){let r=0;for(;r<t.length&&r<e.length;){const o=e[r]-t[r];if(o)return o;r++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function VS(t,e){let r=0;const o=t.score,l=e.score;for(;r<o.length&&r<l.length;){const u=jS(o[r],l[r]);if(u)return u;r++}if(Math.abs(l.length-o.length)===1){if(zg(o))return 1;if(zg(l))return-1}return l.length-o.length}function zg(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const GS={type:0,value:""},KS=/[a-zA-Z0-9_]/;function XS(t){if(!t)return[[]];if(t==="/")return[[GS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const l=[];let u;function f(){u&&l.push(u),u=[]}let h=0,d,g="",v="";function b(){g&&(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:v,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),g="")}function x(){g+=d}for(;h<t.length;){if(d=t[h++],d==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:d==="/"?(g&&b(),f()):d===":"?(b(),r=1):x();break;case 4:x(),r=o;break;case 1:d==="("?r=2:KS.test(d)?x():(b(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+d:r=3:v+=d;break;case 3:b(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,v="";break;default:e("Unknown state");break}}return r===2&&e(`Unfinished custom RegExp for param "${g}"`),b(),f(),l}function YS(t,e,r){const o=US(XS(t.path),r),l=pe(o,{record:t,parent:e,children:[],alias:[]});return e&&!l.record.aliasOf==!e.record.aliasOf&&e.children.push(l),l}function ZS(t,e){const r=[],o=new Map;e=qg({strict:!1,end:!0,sensitive:!1},e);function l(v){return o.get(v)}function u(v,b,x){const S=!x,N=JS(v);N.aliasOf=x&&x.record;const A=qg(e,v),M=[N];if("alias"in v){const F=typeof v.alias=="string"?[v.alias]:v.alias;for(const L of F)M.push(pe({},N,{components:x?x.record.components:N.components,path:L,aliasOf:x?x.record:N}))}let T,E;for(const F of M){const{path:L}=F;if(b&&L[0]!=="/"){const j=b.record.path,Y=j[j.length-1]==="/"?"":"/";F.path=b.record.path+(L&&Y+L)}if(T=YS(F,b,A),x?x.alias.push(T):(E=E||T,E!==T&&E.alias.push(T),S&&v.name&&!Fg(T)&&f(v.name)),N.children){const j=N.children;for(let Y=0;Y<j.length;Y++)u(j[Y],T,x&&x.children[Y])}x=x||T,(T.record.components&&Object.keys(T.record.components).length||T.record.name||T.record.redirect)&&d(T)}return E?()=>{f(E)}:ta}function f(v){if(v0(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 d(v){let b=0;for(;b<r.length&&VS(v,r[b])>=0&&(v.record.path!==r[b].record.path||!y0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!Fg(v)&&o.set(v.record.name,v)}function g(v,b){let x,S={},N,A;if("name"in v&&v.name){if(x=o.get(v.name),!x)throw Zo(1,{location:v});A=x.record.name,S=pe(Ig(b.params,x.keys.filter(E=>!E.optional).map(E=>E.name)),v.params&&Ig(v.params,x.keys.map(E=>E.name))),N=x.stringify(S)}else if("path"in v)N=v.path,x=r.find(E=>E.re.test(N)),x&&(S=x.parse(N),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(E=>E.re.test(b.path)),!x)throw Zo(1,{location:v,currentLocation:b});A=x.record.name,S=pe({},b.params,v.params),N=x.stringify(S)}const M=[];let T=x;for(;T;)M.unshift(T.record),T=T.parent;return{name:A,path:N,params:S,matched:M,meta:tk(M)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:l}}function Ig(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function JS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:QS(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 QS(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const o in t.components)e[o]=typeof r=="boolean"?r:r[o];return e}function Fg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function tk(t){return t.reduce((e,r)=>pe(e,r.meta),{})}function qg(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function y0(t,e){return e.children.some(r=>r===t||y0(t,r))}const b0=/#/g,ek=/&/g,nk=/\//g,rk=/=/g,ik=/\?/g,w0=/\+/g,ok=/%5B/g,sk=/%5D/g,x0=/%5E/g,ak=/%60/g,_0=/%7B/g,lk=/%7C/g,S0=/%7D/g,ck=/%20/g;function xh(t){return encodeURI(""+t).replace(lk,"|").replace(ok,"[").replace(sk,"]")}function uk(t){return xh(t).replace(_0,"{").replace(S0,"}").replace(x0,"^")}function xf(t){return xh(t).replace(w0,"%2B").replace(ck,"+").replace(b0,"%23").replace(ek,"%26").replace(ak,"`").replace(_0,"{").replace(S0,"}").replace(x0,"^")}function fk(t){return xf(t).replace(rk,"%3D")}function hk(t){return xh(t).replace(b0,"%23").replace(ik,"%3F")}function dk(t){return t==null?"":hk(t).replace(nk,"%2F")}function Vl(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function pk(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let l=0;l<o.length;++l){const u=o[l].replace(w0," "),f=u.indexOf("="),h=Vl(f<0?u:u.slice(0,f)),d=f<0?null:Vl(u.slice(f+1));if(h in e){let g=e[h];er(g)||(g=e[h]=[g]),g.push(d)}else e[h]=d}return e}function Hg(t){let e="";for(let r in t){const o=t[r];if(r=fk(r),o==null){o!==void 0&&(e+=(e.length?"&":"")+r);continue}(er(o)?o.map(u=>u&&xf(u)):[o&&xf(o)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function gk(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=er(o)?o.map(l=>l==null?null:""+l):o==null?o:""+o)}return e}const vk=Symbol(""),Bg=Symbol(""),_h=Symbol(""),k0=Symbol(""),_f=Symbol("");function Us(){let t=[];function e(o){return t.push(o),()=>{const l=t.indexOf(o);l>-1&&t.splice(l,1)}}function r(){t=[]}return{add:e,list:()=>t,reset:r}}function gi(t,e,r,o,l){const u=o&&(o.enterCallbacks[l]=o.enterCallbacks[l]||[]);return()=>new Promise((f,h)=>{const d=b=>{b===!1?h(Zo(4,{from:r,to:e})):b instanceof Error?h(b):HS(b)?h(Zo(2,{from:e,to:b})):(u&&o.enterCallbacks[l]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[l],e,r,d);let v=Promise.resolve(g);t.length<3&&(v=v.then(d)),v.catch(b=>h(b))})}function Uu(t,e,r,o){const l=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(e!=="beforeRouteEnter"&&!u.instances[f]))if(mk(h)){const g=(h.__vccOpts||h)[e];g&&l.push(gi(g,r,o,u,f))}else{let d=h();l.push(()=>d.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)[e];return x&&gi(x,r,o,u,f)()}))}}return l}function mk(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Wg(t){const e=Ir(_h),r=Ir(k0),o=bt(()=>e.resolve(V(t.to))),l=bt(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],b=r.matched;if(!v||!b.length)return-1;const x=b.findIndex(Yo.bind(null,v));if(x>-1)return x;const S=Ug(d[g-2]);return g>1&&Ug(v)===S&&b[b.length-1].path!==S?b.findIndex(Yo.bind(null,d[g-2])):x}),u=bt(()=>l.value>-1&&xk(r.params,o.value.params)),f=bt(()=>l.value>-1&&l.value===r.matched.length-1&&p0(r.params,o.value.params));function h(d={}){return wk(d)?e[V(t.replace)?"replace":"push"](V(t.to)).catch(ta):Promise.resolve()}return{route:o,href:bt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const yk=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:Wg,setup(t,{slots:e}){const r=Rn(Wg(t)),{options:o}=Ir(_h),l=bt(()=>({[jg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[jg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=e.default&&e.default(r);return t.custom?u:Sa("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:l.value},u)}}}),bk=yk;function wk(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 e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function xk(t,e){for(const r in e){const o=e[r],l=t[r];if(typeof o=="string"){if(o!==l)return!1}else if(!er(l)||l.length!==o.length||o.some((u,f)=>u!==l[f]))return!1}return!0}function Ug(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const jg=(t,e,r)=>t??e??r,_k=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=Ir(_f),l=bt(()=>t.route||o.value),u=Ir(Bg,0),f=bt(()=>{let g=V(u);const{matched:v}=l.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=bt(()=>l.value.matched[f.value]);Ml(Bg,bt(()=>f.value+1)),Ml(vk,h),Ml(_f,l);const d=Kt();return De(()=>[d.value,h.value,t.name],([g,v,b],[x,S,N])=>{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||!Yo(v,S)||!x)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=l.value,v=t.name,b=h.value,x=b&&b.components[v];if(!x)return Vg(r.default,{Component:x,route:g});const S=b.props[v],N=S?S===!0?g.params:typeof S=="function"?S(g):S:null,M=Sa(x,pe({},N,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(b.instances[v]=null)},ref:d}));return Vg(r.default,{Component:M,route:g})||M}}});function Vg(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const Sk=_k;function kk(t){const e=ZS(t.routes,t),r=t.parseQuery||pk,o=t.stringifyQuery||Hg,l=t.history,u=Us(),f=Us(),h=Us(),d=ss(fi);let g=fi;$o&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Bu.bind(null,W=>""+W),b=Bu.bind(null,dk),x=Bu.bind(null,Vl);function S(W,et){let it,Mt;return v0(W)?(it=e.getRecordMatcher(W),Mt=et):Mt=W,e.addRoute(Mt,it)}function N(W){const et=e.getRecordMatcher(W);et&&e.removeRoute(et)}function A(){return e.getRoutes().map(W=>W.record)}function M(W){return!!e.getRecordMatcher(W)}function T(W,et){if(et=pe({},et||d.value),typeof W=="string"){const K=Wu(r,W,et.path),tt=e.resolve({path:K.path},et),nt=l.createHref(K.fullPath);return pe(K,tt,{params:x(tt.params),hash:Vl(K.hash),redirectedFrom:void 0,href:nt})}let it;if("path"in W)it=pe({},W,{path:Wu(r,W.path,et.path).path});else{const K=pe({},W.params);for(const tt in K)K[tt]==null&&delete K[tt];it=pe({},W,{params:b(K)}),et.params=b(et.params)}const Mt=e.resolve(it,et),Nt=W.hash||"";Mt.params=v(x(Mt.params));const O=TS(o,pe({},W,{hash:uk(Nt),path:Mt.path})),I=l.createHref(O);return pe({fullPath:O,hash:Nt,query:o===Hg?gk(W.query):W.query||{}},Mt,{redirectedFrom:void 0,href:I})}function E(W){return typeof W=="string"?Wu(r,W,d.value.path):pe({},W)}function F(W,et){if(g!==W)return Zo(8,{from:et,to:W})}function L(W){return ft(W)}function j(W){return L(pe(E(W),{replace:!0}))}function Y(W){const et=W.matched[W.matched.length-1];if(et&&et.redirect){const{redirect:it}=et;let Mt=typeof it=="function"?it(W):it;return typeof Mt=="string"&&(Mt=Mt.includes("?")||Mt.includes("#")?Mt=E(Mt):{path:Mt},Mt.params={}),pe({query:W.query,hash:W.hash,params:"path"in Mt?{}:W.params},Mt)}}function ft(W,et){const it=g=T(W),Mt=d.value,Nt=W.state,O=W.force,I=W.replace===!0,K=Y(it);if(K)return ft(pe(E(K),{state:typeof K=="object"?pe({},Nt,K.state):Nt,force:O,replace:I}),et||it);const tt=it;tt.redirectedFrom=et;let nt;return!O&&ES(o,Mt,it)&&(nt=Zo(16,{to:tt,from:Mt}),Rt(Mt,Mt,!0,!1)),(nt?Promise.resolve(nt):ot(tt,Mt)).catch(at=>Pr(at)?Pr(at,2)?at:Tt(at):Q(at,tt,Mt)).then(at=>{if(at){if(Pr(at,2))return ft(pe({replace:I},E(at.to),{state:typeof at.to=="object"?pe({},Nt,at.to.state):Nt,force:O}),et||tt)}else at=pt(tt,Mt,!0,I,Nt);return kt(tt,Mt,at),at})}function X(W,et){const it=F(W,et);return it?Promise.reject(it):Promise.resolve()}function st(W){const et=Gt.values().next().value;return et&&typeof et.runWithContext=="function"?et.runWithContext(W):W()}function ot(W,et){let it;const[Mt,Nt,O]=Ck(W,et);it=Uu(Mt.reverse(),"beforeRouteLeave",W,et);for(const K of Mt)K.leaveGuards.forEach(tt=>{it.push(gi(tt,W,et))});const I=X.bind(null,W,et);return it.push(I),_t(it).then(()=>{it=[];for(const K of u.list())it.push(gi(K,W,et));return it.push(I),_t(it)}).then(()=>{it=Uu(Nt,"beforeRouteUpdate",W,et);for(const K of Nt)K.updateGuards.forEach(tt=>{it.push(gi(tt,W,et))});return it.push(I),_t(it)}).then(()=>{it=[];for(const K of W.matched)if(K.beforeEnter&&!et.matched.includes(K))if(er(K.beforeEnter))for(const tt of K.beforeEnter)it.push(gi(tt,W,et));else it.push(gi(K.beforeEnter,W,et));return it.push(I),_t(it)}).then(()=>(W.matched.forEach(K=>K.enterCallbacks={}),it=Uu(O,"beforeRouteEnter",W,et),it.push(I),_t(it))).then(()=>{it=[];for(const K of f.list())it.push(gi(K,W,et));return it.push(I),_t(it)}).catch(K=>Pr(K,8)?K:Promise.reject(K))}function kt(W,et,it){for(const Mt of h.list())st(()=>Mt(W,et,it))}function pt(W,et,it,Mt,Nt){const O=F(W,et);if(O)return O;const I=et===fi,K=$o?history.state:{};it&&(Mt||I?l.replace(W.fullPath,pe({scroll:I&&K&&K.scroll},Nt)):l.push(W.fullPath,Nt)),d.value=W,Rt(W,et,it,I),Tt()}let G;function R(){G||(G=l.listen((W,et,it)=>{if(!Jt.listening)return;const Mt=T(W),Nt=Y(Mt);if(Nt){ft(pe(Nt,{replace:!0}),Mt).catch(ta);return}g=Mt;const O=d.value;$o&&DS(Og(O.fullPath,it.delta),Cc()),ot(Mt,O).catch(I=>Pr(I,12)?I:Pr(I,2)?(ft(I.to,Mt).then(K=>{Pr(K,20)&&!it.delta&&it.type===fa.pop&&l.go(-1,!1)}).catch(ta),Promise.reject()):(it.delta&&l.go(-it.delta,!1),Q(I,Mt,O))).then(I=>{I=I||pt(Mt,O,!1),I&&(it.delta&&!Pr(I,8)?l.go(-it.delta,!1):it.type===fa.pop&&Pr(I,20)&&l.go(-1,!1)),kt(Mt,O,I)}).catch(ta)}))}let k=Us(),H=Us(),B;function Q(W,et,it){Tt(W);const Mt=H.list();return Mt.length?Mt.forEach(Nt=>Nt(W,et,it)):console.error(W),Promise.reject(W)}function wt(){return B&&d.value!==fi?Promise.resolve():new Promise((W,et)=>{k.add([W,et])})}function Tt(W){return B||(B=!W,R(),k.list().forEach(([et,it])=>W?it(W):et()),k.reset()),W}function Rt(W,et,it,Mt){const{scrollBehavior:Nt}=t;if(!$o||!Nt)return Promise.resolve();const O=!it&&RS(Og(W.fullPath,0))||(Mt||!it)&&history.state&&history.state.scroll||null;return Hr().then(()=>Nt(W,et,O)).then(I=>I&&$S(I)).catch(I=>Q(I,W,et))}const zt=W=>l.go(W);let Vt;const Gt=new Set,Jt={currentRoute:d,listening:!0,addRoute:S,removeRoute:N,hasRoute:M,getRoutes:A,resolve:T,options:t,push:L,replace:j,go:zt,back:()=>zt(-1),forward:()=>zt(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:H.add,isReady:wt,install(W){const et=this;W.component("RouterLink",bk),W.component("RouterView",Sk),W.config.globalProperties.$router=et,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>V(d)}),$o&&!Vt&&d.value===fi&&(Vt=!0,L(l.location).catch(Nt=>{}));const it={};for(const Nt in fi)it[Nt]=bt(()=>d.value[Nt]);W.provide(_h,et),W.provide(k0,Rn(it)),W.provide(_f,d);const Mt=W.unmount;Gt.add(W),W.unmount=function(){Gt.delete(W),Gt.size<1&&(g=fi,G&&G(),G=null,d.value=fi,Vt=!1,B=!1),Mt()}}};function _t(W){return W.reduce((et,it)=>et.then(()=>st(it)),Promise.resolve())}return Jt}function Ck(t,e){const r=[],o=[],l=[],u=Math.max(e.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=e.matched[f];h&&(t.matched.find(g=>Yo(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>Yo(g,d))||l.push(d))}return[r,o,l]}function Kr(t){return t.split("-")[0]}function Bo(t){return t.split("-")[1]}function ka(t){return["top","bottom"].includes(Kr(t))?"x":"y"}function Sh(t){return t==="y"?"height":"width"}function Gg(t){let{reference:e,floating:r,placement:o}=t;const l=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2;let f;switch(Kr(o)){case"top":f={x:l,y:e.y-r.height};break;case"bottom":f={x:l,y:e.y+e.height};break;case"right":f={x:e.x+e.width,y:u};break;case"left":f={x:e.x-r.width,y:u};break;default:f={x:e.x,y:e.y}}const h=ka(o),d=Sh(h);switch(Bo(o)){case"start":f[h]=f[h]-(e[d]/2-r[d]/2);break;case"end":f[h]=f[h]+(e[d]/2-r[d]/2);break}return f}const Tk=async(t,e,r)=>{const{placement:o="bottom",strategy:l="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:e,strategy:l}),{x:d,y:g}=Gg({...h,placement:o}),v=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:N}=u[x],{x:A,y:M,data:T,reset:E}=await N({x:d,y:g,initialPlacement:o,placement:v,strategy:l,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:e}});if(d=A??d,g=M??g,b={...b,[S]:T??{}},E){typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(h=E.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:l}):E.rects),{x:d,y:g}=Gg({...h,placement:v})),x=-1;continue}}return{x:d,y:g,placement:v,strategy:l,middlewareData:b}};function Ek(t){return{top:0,right:0,bottom:0,left:0,...t}}function C0(t){return typeof t!="number"?Ek(t):{top:t,right:t,bottom:t,left:t}}function Sf(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Tc(t,e){e===void 0&&(e={});const{x:r,y:o,platform:l,rects:u,elements:f,strategy:h}=t,{boundary:d="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:x=0}=e,S=C0(x),A=f[b?v==="floating"?"reference":"floating":v],M=await l.getClippingClientRect({element:await l.isElement(A)?A:A.contextElement||await l.getDocumentElement({element:f.floating}),boundary:d,rootBoundary:g}),T=Sf(await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await l.getOffsetParent({element:f.floating}),strategy:h}));return{top:M.top-T.top+S.top,bottom:T.bottom-M.bottom+S.bottom,left:M.left-T.left+S.left,right:T.right-M.right+S.right}}const Lk=Math.min,Wi=Math.max;function kf(t,e,r){return Wi(t,Lk(e,r))}const Ak=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t??{},{x:l,y:u,placement:f,rects:h,platform:d}=e;if(r==null)return{};const g=C0(o),v={x:l,y:u},b=Kr(f),x=ka(b),S=Sh(x),N=await d.getDimensions({element:r}),A=x==="y"?"top":"left",M=x==="y"?"bottom":"right",T=h.reference[S]+h.reference[x]-v[x]-h.floating[S],E=v[x]-h.reference[x],F=await d.getOffsetParent({element:r}),L=F?x==="y"?F.clientHeight||0:F.clientWidth||0:0,j=T/2-E/2,Y=g[A],ft=L-N[S]-g[M],X=L/2-N[S]/2+j,st=kf(Y,X,ft);return{data:{[x]:st,centerOffset:X-st}}}}),Mk={left:"right",right:"left",bottom:"top",top:"bottom"};function Gl(t){return t.replace(/left|right|bottom|top/g,e=>Mk[e])}function T0(t,e){const r=Bo(t)==="start",o=ka(t),l=Sh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return e.reference[l]>e.floating[l]&&(u=Gl(u)),{main:u,cross:Gl(u)}}const Nk={start:"end",end:"start"};function Cf(t){return t.replace(/start|end/g,e=>Nk[e])}const Pk=["top","right","bottom","left"],Ok=Pk.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function $k(t,e,r){return(t?[...r.filter(l=>Bo(l)===t),...r.filter(l=>Bo(l)!==t)]:r.filter(l=>Kr(l)===l)).filter(l=>t?Bo(l)===t||(e?Cf(l)!==l:!1):!0)}const Dk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,l,u,f,h;const{x:d,y:g,rects:v,middlewareData:b,placement:x}=e,{alignment:S=null,allowedPlacements:N=Ok,autoAlignment:A=!0,...M}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const T=$k(S,A,N),E=await Tc(e,M),F=(o=(l=b.autoPlacement)==null?void 0:l.index)!=null?o:0,L=T[F],{main:j,cross:Y}=T0(L,v);if(x!==L)return{x:d,y:g,reset:{placement:T[0]}};const ft=[E[Kr(L)],E[j],E[Y]],X=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:L,overflows:ft}],st=T[F+1];if(st)return{data:{index:F+1,overflows:X},reset:{placement:st}};const ot=X.slice().sort((pt,G)=>pt.overflows[0]-G.overflows[0]),kt=(h=ot.find(pt=>{let{overflows:G}=pt;return G.every(R=>R<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt??ot[0].placement}}}}};function Rk(t){const e=Gl(t);return[Cf(t),e,Cf(e)]}const zk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:l,middlewareData:u,rects:f,initialPlacement:h}=e;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",flipAlignment:x=!0,...S}=t,N=Kr(l),M=v||(N===h||!x?[Gl(h)]:Rk(h)),T=[h,...M],E=await Tc(e,S),F=[];let L=((o=u.flip)==null?void 0:o.overflows)||[];if(d&&F.push(E[N]),g){const{main:X,cross:st}=T0(l,f);F.push(E[X],E[st])}if(L=[...L,{placement:l,overflows:F}],!F.every(X=>X<=0)){var j,Y;const X=((j=(Y=u.flip)==null?void 0:Y.index)!=null?j:0)+1,st=T[X];if(st)return{data:{index:X,overflows:L},reset:{placement:st}};let ot="bottom";switch(b){case"bestFit":{var ft;const kt=(ft=L.slice().sort((pt,G)=>pt.overflows.filter(R=>R>0).reduce((R,k)=>R+k,0)-G.overflows.filter(R=>R>0).reduce((R,k)=>R+k,0))[0])==null?void 0:ft.placement;kt&&(ot=kt);break}case"initialPlacement":ot=h;break}return{data:{skip:!0},reset:{placement:ot}}}return{}}}};function Ik(t){let{placement:e,rects:r,value:o}=t;const l=Kr(e),u=["left","top"].includes(l)?-1:1,f=typeof o=="function"?o({...r,placement:e}):o,{mainAxis:h,crossAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return ka(l)==="x"?{x:d,y:h*u}:{x:h*u,y:d}}const Fk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:r,y:o,placement:l,rects:u}=e,f=Ik({placement:l,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function qk(t){return t==="x"?"y":"x"}const Hk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:l}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:M=>{let{x:T,y:E}=M;return{x:T,y:E}}},...d}=t,g={x:r,y:o},v=await Tc(e,d),b=ka(Kr(l)),x=qk(b);let S=g[b],N=g[x];if(u){const M=b==="y"?"top":"left",T=b==="y"?"bottom":"right",E=S+v[M],F=S-v[T];S=kf(E,S,F)}if(f){const M=x==="y"?"top":"left",T=x==="y"?"bottom":"right",E=N+v[M],F=N-v[T];N=kf(E,N,F)}const A=h.fn({...e,[b]:S,[x]:N});return{...A,data:{x:A.x-r,y:A.y-o}}}}},Bk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r;const{placement:o,rects:l,middlewareData:u}=e,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const d=await Tc(e,h),g=Kr(o),v=Bo(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=v?"left":"right"):(x=g,b=v?"top":"bottom");const S=Wi(d.left,0),N=Wi(d.right,0),A=Wi(d.top,0),M=Wi(d.bottom,0),T={height:l.floating.height-(["left","right"].includes(o)?2*(A!==0||M!==0?A+M:Wi(d.top,d.bottom)):d[b]),width:l.floating.width-(["top","bottom"].includes(o)?2*(S!==0||N!==0?S+N:Wi(d.left,d.right)):d[x])};return f==null||f({...T,...l}),{data:{skip:!0},reset:{rects:!0}}}}};function kh(t){return(t==null?void 0:t.toString())==="[object Window]"}function Ti(t){if(t==null)return window;if(!kh(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ec(t){return Ti(t).getComputedStyle(t)}function Br(t){return kh(t)?"":t?(t.nodeName||"").toLowerCase():""}function Wr(t){return t instanceof Ti(t).HTMLElement}function Kl(t){return t instanceof Ti(t).Element}function Wk(t){return t instanceof Ti(t).Node}function E0(t){const e=Ti(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Lc(t){const{overflow:e,overflowX:r,overflowY:o}=Ec(t);return/auto|scroll|overlay|hidden/.test(e+o+r)}function Uk(t){return["table","td","th"].includes(Br(t))}function L0(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),r=Ec(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":!1)}const Kg=Math.min,na=Math.max,Xl=Math.round;function Jo(t,e){e===void 0&&(e=!1);const r=t.getBoundingClientRect();let o=1,l=1;return e&&Wr(t)&&(o=t.offsetWidth>0&&Xl(r.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Xl(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/l,top:r.top/l,right:r.right/o,bottom:r.bottom/l,left:r.left/o,x:r.left/o,y:r.top/l}}function Ei(t){return((Wk(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ac(t){return kh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function A0(t){return Jo(Ei(t)).left+Ac(t).scrollLeft}function jk(t){const e=Jo(t);return Xl(e.width)!==t.offsetWidth||Xl(e.height)!==t.offsetHeight}function Vk(t,e,r){const o=Wr(e),l=Ei(e),u=Jo(t,o&&jk(e));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Br(e)!=="body"||Lc(l))&&(f=Ac(e)),Wr(e)){const d=Jo(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else l&&(h.x=A0(l));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function Mc(t){return Br(t)==="html"?t:t.assignedSlot||t.parentNode||(E0(t)?t.host:null)||Ei(t)}function Xg(t){return!Wr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function Gk(t){let e=Mc(t);for(;Wr(e)&&!["html","body"].includes(Br(e));){if(L0(e))return e;e=e.parentNode}return null}function Tf(t){const e=Ti(t);let r=Xg(t);for(;r&&Uk(r)&&getComputedStyle(r).position==="static";)r=Xg(r);return r&&(Br(r)==="html"||Br(r)==="body"&&getComputedStyle(r).position==="static"&&!L0(r))?e:r||Gk(t)||e}function Yg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function Kk(t){let{rect:e,offsetParent:r,strategy:o}=t;const l=Wr(r),u=Ei(r);if(r===u)return e;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((l||!l&&o!=="fixed")&&((Br(r)!=="body"||Lc(u))&&(f=Ac(r)),Wr(r))){const d=Jo(r,!0);h.x=d.x+r.clientLeft,h.y=d.y+r.clientTop}return{...e,x:e.x-f.scrollLeft+h.x,y:e.y-f.scrollTop+h.y}}function Xk(t){const e=Ti(t),r=Ei(t),o=e.visualViewport;let l=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(l=o.width,u=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:l,height:u,x:f,y:h}}function Yk(t){var e;const r=Ei(t),o=Ac(t),l=(e=t.ownerDocument)==null?void 0:e.body,u=na(r.scrollWidth,r.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=na(r.scrollHeight,r.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0);let h=-o.scrollLeft+A0(t);const d=-o.scrollTop;return Ec(l||r).direction==="rtl"&&(h+=na(r.clientWidth,l?l.clientWidth:0)-u),{width:u,height:f,x:h,y:d}}function M0(t){return["html","body","#document"].includes(Br(t))?t.ownerDocument.body:Wr(t)&&Lc(t)?t:M0(Mc(t))}function Yl(t,e){var r;e===void 0&&(e=[]);const o=M0(t),l=o===((r=t.ownerDocument)==null?void 0:r.body),u=Ti(o),f=l?[u].concat(u.visualViewport||[],Lc(o)?o:[]):o,h=e.concat(f);return l?h:h.concat(Yl(Mc(f)))}function Zk(t,e){const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&E0(r)){let o=e;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Jk(t){const e=Jo(t),r=e.top+t.clientTop,o=e.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 Zg(t,e){return e==="viewport"?Sf(Xk(t)):Kl(e)?Jk(e):Sf(Yk(Ei(t)))}function Qk(t){const e=Yl(Mc(t)),o=["absolute","fixed"].includes(Ec(t).position)&&Wr(t)?Tf(t):t;return Kl(o)?e.filter(l=>Kl(l)&&Zk(l,o)&&Br(l)!=="body"):[]}function tC(t){let{element:e,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?Qk(e):[].concat(r),o],f=u[0],h=u.reduce((d,g)=>{const v=Zg(e,g);return d.top=na(v.top,d.top),d.right=Kg(v.right,d.right),d.bottom=Kg(v.bottom,d.bottom),d.left=na(v.left,d.left),d},Zg(e,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const eC={getElementRects:t=>{let{reference:e,floating:r,strategy:o}=t;return{reference:Vk(e,Tf(r),o),floating:{...Yg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>Kk(t),getOffsetParent:t=>{let{element:e}=t;return Tf(e)},isElement:t=>Kl(t),getDocumentElement:t=>{let{element:e}=t;return Ei(e)},getClippingClientRect:t=>tC(t),getDimensions:t=>{let{element:e}=t;return Yg(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},nC=(t,e,r)=>Tk(t,e,{platform:eC,...r});var rC=Object.defineProperty,iC=Object.defineProperties,oC=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,sC=Object.prototype.hasOwnProperty,aC=Object.prototype.propertyIsEnumerable,Qg=(t,e,r)=>e in t?rC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Rr=(t,e)=>{for(var r in e||(e={}))sC.call(e,r)&&Qg(t,r,e[r]);if(Jg)for(var r of Jg(e))aC.call(e,r)&&Qg(t,r,e[r]);return t},Ca=(t,e)=>iC(t,oC(e));function N0(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?N0(t[r],e[r]):t[r]=e[r])}const Zi={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 Qo(t,e){let r=Zi.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=Zi.themes[r.$extend]||{}:(r=null,o=Zi[e]):r=null;while(r);return o}function lC(t){const e=[t];let r=Zi.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=Zi.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}let ts=!1;if(typeof window<"u"){ts=!1;try{const t=Object.defineProperty({},"passive",{get(){ts=!0}});window.addEventListener("test",null,t)}catch{}}let P0=!1;typeof window<"u"&&typeof navigator<"u"&&(P0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const O0=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),tv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},ev={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function cC(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function ju(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const gr=[];let Po=null,Ef=function(){};typeof window<"u"&&(Ef=window.Element);function de(t){return function(e){return Qo(e.theme,t)}}var $0=()=>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=>O0.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,Ef,Boolean],default:de("container")},boundary:{type:[String,Ef],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:Ca(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,e)=>(t[e]="$_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:e=!1,force:r=!1}={}){(r||!this.disabled)&&(this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0)},hide({event:t=null,skipDelay:e=!1}={}){this.$_scheduleHide(t,e),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 e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Fk({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?e.middleware.push(Dk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Hk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&e.middleware.push(zk({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Ak({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:l,rects:u,middlewareData:f})=>{let h;const{centerOffset:d}=f.arrow;return l.startsWith("top")||l.startsWith("bottom")?h=Math.abs(d)>u.reference.width/2:h=Math.abs(d)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&e.middleware.push({name:"autoMinSize",fn:({rects:l,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let d,g;return u.startsWith("top")||u.startsWith("bottom")?d=l.reference.width:g=l.reference.height,this.$_innerNode.style.minWidth=d!=null?`${d}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&e.middleware.push(Bk({boundary:this.boundary,padding:this.overflowPadding,apply:({width:l,height:u})=>{this.$_innerNode.style.maxWidth=l!=null?`${l}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await nC(this.$_referenceNode,this.$_popperNode,e);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,e=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Po&&this.instantMove&&Po.instantMove){Po.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,e=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Po=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await ju(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),l=e.x+e.width/2-(o.left+r.offsetLeft),u=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${l}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let r=0;r<gr.length;r++)e=gr[r],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}gr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await ju(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,cC(gr,this),Po===this&&(Po=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=Qo(this.theme,"disposeTimeout");e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ju(),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=(l,u,f)=>{this.$_events.push({targetNodes:l,eventType:u,handler:f}),l.forEach(h=>h.addEventListener(u,f,ts?{passive:!0}:void 0))},e=(l,u,f,h,d)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(v=>{const b=u[v];b&&t(l,b,d)})},r=l=>{this.isShown&&!this.$_hideInProgress||(l.usedByTooltip=!0,!this.$_preventShow&&this.show({event:l}))};e(this.$_targetNodes,tv,this.triggers,this.showTriggers,r),e([this.$_popperNode],tv,this.popperTriggers,this.popperShowTriggers,r);const o=l=>{l.usedByTooltip||this.hide({event:l})};e(this.$_targetNodes,ev,this.triggers,this.hideTriggers,o),e([this.$_popperNode],ev,this.popperTriggers,this.popperHideTriggers,o),t([...Yl(this.$_referenceNode),...Yl(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:e,handler:r})=>{t.forEach(o=>o.removeEventListener(e,r))}),this.$_events=[]},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(e,o))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const r in t){const o=t[r];o==null?e.removeAttribute(r):e.setAttribute(r,o)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(P0?(document.addEventListener("touchstart",nv,ts?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",fC,ts?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",nv,!0),window.addEventListener("click",uC,!0)),window.addEventListener("resize",hC));function nv(t){for(let e=0;e<gr.length;e++){const r=gr[e],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function uC(t){D0(t)}function fC(t){D0(t,!0)}function D0(t,e=!1){for(let r=0;r<gr.length;r++){const o=gr[r],l=o.popperNode(),u=o.$_mouseDownContains||l.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,e)})}}function hC(t){for(let e=0;e<gr.length;e++)gr[e].$_computePosition(t)}function dC(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),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 l=t.indexOf("Edge/");return l>0?parseInt(t.substring(l+5,t.indexOf(".",l)),10):-1}let Pl;function Lf(){Lf.init||(Lf.init=!0,Pl=dC()!==-1)}var Nc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Lf(),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",Pl&&this.$el.appendChild(t),t.data="about:blank",Pl||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&&(!Pl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const pC=F1();Hm("data-v-b329ee4c");const gC={class:"resize-observer",tabindex:"-1"};Bm();const vC=pC((t,e,r,o,l,u)=>(ct(),Zt("div",gC)));Nc.render=vC;Nc.__scopeId="data-v-b329ee4c";Nc.__file="src/components/ResizeObserver.vue";var R0={computed:{themeClass(){return lC(this.theme)}}},Ch=(t,e)=>{const r=t.__vccOpts||t;for(const[o,l]of e)r[o]=l;return r};const mC=re({name:"VPopperContent",components:{ResizeObserver:Nc},mixins:[R0],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}}}),yC=["id","aria-hidden","tabindex","data-popper-placement"],bC={ref:"inner",class:"v-popper__inner"},wC=ut("div",{class:"v-popper__arrow-outer"},null,-1),xC=ut("div",{class:"v-popper__arrow-inner"},null,-1),_C=[wC,xC];function SC(t,e,r,o,l,u){const f=Qi("ResizeObserver");return ct(),Et("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:Tn({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:e[1]||(e[1]=yf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:Tn({transformOrigin:t.result.transformOrigin})},[ut("div",bC,[t.mounted?(ct(),Et(fe,{key:0},[ut("div",null,[tr(t.$slots,"default")]),t.handleResize?(ct(),Zt(f,{key:0,onNotify:e[0]||(e[0]=h=>t.$emit("resize",h))})):ne("",!0)],64)):ne("",!0)],512),ut("div",{ref:"arrow",class:"v-popper__arrow-container",style:Tn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},_C,4)],4)],46,yC)}var z0=Ch(mC,[["render",SC]]),I0={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 kC=re({name:"VPopperWrapper",components:{Popper:$0(),PopperContent:z0},mixins:[I0,R0],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,e,r,o,l,u){const f=Qi("PopperContent"),h=Qi("Popper");return ct(),Zt(h,_i({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:Yt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,show:S,hide:N,handleResize:A,onResize:M,classes:T,result:E})=>[ut("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:Tn(t.$attrs.style)},[tr(t.$slots,"default",{shown:g,show:S,hide:N}),qt(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:T,result:E,onHide:N,onResize:M},{default:Yt(()=>[tr(t.$slots,"popper",{shown:g,hide:N})]),_: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 Th=Ch(kC,[["render",CC]]);const rv=re(Ca(Rr({},Th),{name:"VDropdown",vPopperTheme:"dropdown"})),iv=re(Ca(Rr({},Th),{name:"VMenu",vPopperTheme:"menu"})),Af=re(Ca(Rr({},Th),{name:"VTooltip",vPopperTheme:"tooltip"})),TC=re({name:"VTooltipDirective",components:{Popper:$0(),PopperContent:z0},mixins:[I0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Qo(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Qo(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 e=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(e,o)):this.onResult(e,r)}},onResult(t,e){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),EC=["innerHTML"],LC=["textContent"];function AC(t,e,r,o,l,u){const f=Qi("PopperContent"),h=Qi("Popper");return ct(),Zt(h,_i({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Yt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,hide:S,handleResize:N,onResize:A,classes:M,result:T})=>[qt(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":N,classes:M,result:T,onHide:S,onResize:A},{default:Yt(()=>[t.html?(ct(),Et("div",{key:0,innerHTML:t.finalContent},null,8,EC)):(ct(),Et("div",{key:1,textContent:Qt(t.finalContent)},null,8,LC))]),_: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 MC=Ch(TC,[["render",AC]]);const F0="v-popper--has-tooltip";function NC(t,e){let r=t.placement;if(!r&&e)for(const o of O0)e[o]&&(r=o);return r||(r=Qo(t.theme||"tooltip","placement")),r}function q0(t,e,r){let o;const l=typeof e;return l==="string"?o={content:e}:e&&l==="object"?o=e:o={content:!1},o.placement=NC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Vu,ha,PC=0;function OC(){if(Vu)return;ha=Kt([]),Vu=d0({name:"VTooltipDirectiveApp",setup(){return{directives:ha}},render(){return this.directives.map(e=>Sa(MC,Ca(Rr({},e.options),{shown:e.shown.value||e.options.shown,key:e.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Vu.mount(t)}function H0(t,e,r){OC();const o=Kt(q0(t,e,r)),l=Kt(!1),u={id:PC++,options:o,shown:l};return ha.value.push(u),t.classList&&t.classList.add(F0),t.$_popper={options:o,item:u,show(){l.value=!0},hide(){l.value=!1}}}function Eh(t){if(t.$_popper){const e=ha.value.indexOf(t.$_popper.item);e!==-1&&ha.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(F0)}function ov(t,{value:e,oldValue:r,modifiers:o}){const l=q0(t,e,o);if(!l.content||Qo(l.theme||"tooltip","disabled"))Eh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=l):u=H0(t,e,o),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?u.show():u.hide())}}var B0={beforeMount:ov,updated:ov,beforeUnmount(t){Eh(t)}};function sv(t){t.addEventListener("click",W0),t.addEventListener("touchstart",U0,ts?{passive:!0}:!1)}function av(t){t.removeEventListener("click",W0),t.removeEventListener("touchstart",U0),t.removeEventListener("touchend",j0),t.removeEventListener("touchcancel",V0)}function W0(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function U0(t){if(t.changedTouches.length===1){const e=t.currentTarget;e.$_vclosepopover_touch=!0;const r=t.changedTouches[0];e.$_vclosepopover_touchPoint=r,e.addEventListener("touchend",j0),e.addEventListener("touchcancel",V0)}}function j0(t){const e=t.currentTarget;if(e.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function V0(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}var $C={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&sv(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?sv(t):av(t))},beforeUnmount(t){av(t)}};const DC=B0,RC=Af;function zC(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,N0(Zi,e),t.directive("tooltip",B0),t.directive("close-popper",$C),t.component("v-tooltip",Af),t.component("VTooltip",Af),t.component("v-dropdown",rv),t.component("VDropdown",rv),t.component("v-menu",iv),t.component("VMenu",iv))}const G0={version:"2.0.0-y.0",install:zC,options:Zi},IC=6e4;function K0(t){return t}const FC=K0,{setTimeout:qC}=globalThis,HC=Math.random.bind(Math);function BC(t,e){const{post:r,on:o,eventNames:l=[],serialize:u=K0,deserialize:f=FC,resolver:h,timeout:d=IC}=e,g=new Map;let v;const b=new Proxy({},{get(x,S){if(S==="$functions")return t;const N=(...M)=>{r(u({m:S,a:M,t:"q"}))};if(l.includes(S))return N.asEvent=N,N;const A=async(...M)=>(await v,new Promise((T,E)=>{const F=UC();g.set(F,{resolve:T,reject:E}),r(u({m:S,a:M,i:F,t:"q"})),d>=0&&qC(()=>{E(new Error(`[birpc] timeout on calling "${S}"`)),g.delete(F)},d)}));return A.asEvent=N,A}});return v=o(async(x,...S)=>{const N=f(x);if(N.t==="q"){const{m:A,a:M}=N;let T,E;const F=h?h(A,t[A]):t[A];if(!F)E=new Error(`[birpc] function "${A}" not found`);else try{T=await F.apply(b,M)}catch(L){E=L}N.i&&(E&&e.onError&&e.onError(E,A,M),r(u({t:"s",i:N.i,r:T,e:E}),...S))}else{const{i:A,r:M,e:T}=N,E=g.get(A);E&&(T?E.reject(T):E.resolve(M)),g.delete(A)}}),b}const WC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function UC(t=21){let e="",r=t;for(;r--;)e+=WC[HC()*64|0];return e}/*! (c) 2020 Andrea Giammarchi */const{parse:jC,stringify:VC}=JSON,{keys:GC}=Object,da=String,X0="string",lv={},Zl="object",Y0=(t,e)=>e,KC=t=>t instanceof da?da(t):t,XC=(t,e)=>typeof e===X0?new da(e):e,Z0=(t,e,r,o)=>{const l=[];for(let u=GC(r),{length:f}=u,h=0;h<f;h++){const d=u[h],g=r[d];if(g instanceof da){const v=t[g];typeof v===Zl&&!e.has(v)?(e.add(v),r[d]=lv,l.push({k:d,a:[t,e,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==lv&&(r[d]=o.call(r,d,g))}for(let{length:u}=l,f=0;f<u;f++){const{k:h,a:d}=l[f];r[h]=o.call(r,h,Z0.apply(null,d))}return r},cv=(t,e,r)=>{const o=da(e.push(r)-1);return t.set(r,o),o},Mf=(t,e)=>{const r=jC(t,XC).map(KC),o=r[0],l=e||Y0,u=typeof o===Zl&&o?Z0(r,new Set,o,l):o;return l.call({"":u},"",u)},YC=(t,e,r)=>{const o=e&&typeof e===Zl?(v,b)=>v===""||-1<e.indexOf(v)?b:void 0:e||Y0,l=new Map,u=[],f=[];let h=+cv(l,u,o.call({"":t},"",t)),d=!h;for(;h<u.length;)d=!0,f[h]=VC(u[h++],g,r);return"["+f.join(",")+"]";function g(v,b){if(d)return d=!d,b;const x=o.call(this,v,b);switch(typeof x){case Zl:if(x===null)return x;case X0:return l.get(x)||cv(l,u,x)}return x}};function ZC(t=""){return!t||!t.includes("\\")?t:t.replace(/\\/g,"/")}const JC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function QC(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const uv=function(...t){t=t.map(o=>ZC(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const l=o>=0?t[o]:QC();!l||l.length===0||(e=`${l}/${e}`,r=fv(l))}return e=tT(e,!r),r&&!fv(e)?`/${e}`:e.length>0?e:"."};function tT(t,e){let r="",o=0,l=-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(!(l===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 d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),l=h,u=0;continue}else if(r.length>0){r="",o=0,l=h,u=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(l+1,h)}`:r=t.slice(l+1,h),o=h-l-1;l=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const fv=function(t){return JC.test(t)},eT=function(t,e){const r=uv(t).split("/"),o=uv(e).split("/"),l=[...r];for(const u of l){if(o[0]!==u)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function nT(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class J0{constructor(){Nr(this,"filesMap",new Map);Nr(this,"pathsSet",new Set);Nr(this,"collectingPromise");Nr(this,"browserTestPromises",new Map);Nr(this,"idMap",new Map);Nr(this,"taskFileMap",new WeakMap);Nr(this,"errorsSet",new Set);Nr(this,"processTimeoutCauses",new Set)}catchError(e,r){if(nT(e))return e.errors.forEach(o=>this.catchError(o,r));e===Object(e)?e.type=r:e={type:r,message:e},this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(e){this.processTimeoutCauses.add(e)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(e){return e?e.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(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).map(e=>e.filepath)}collectPaths(e=[]){e.forEach(r=>{this.pathsSet.add(r)})}collectFiles(e=[]){e.forEach(r=>{const l=(this.filesMap.get(r.filepath)||[]).filter(u=>u.projectName!==r.projectName);l.push(r),this.filesMap.set(r.filepath,l),this.updateId(r)})}clearFiles(e,r=[]){r.forEach(o=>{const l=this.filesMap.get(o);if(!l)return;const u=l.filter(f=>f.projectName!==e.config.name);u.length?this.filesMap.set(o,u):this.filesMap.delete(o)})}updateId(e){this.idMap.get(e.id)!==e&&(this.idMap.set(e.id,e),e.type==="suite"&&e.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(e){for(const[r,o,l]of e){const u=this.idMap.get(r);u&&(u.result=o,u.meta=l)}}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(e,r){this.collectFiles(e.map(o=>({filepath:o,name:eT(r,o),id:o,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[]})))}}var to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ty(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function Nf(t){return t.type==="test"||t.type==="custom"}function ey(t){return ty(t).flatMap(e=>Nf(e)?[e]:e.tasks.flatMap(r=>Nf(r)?[r]:ey(r)))}function Lh(t=[]){return ty(t).flatMap(e=>Nf(e)?[e]:[e,...Lh(e.tasks)])}function rT(t){const e=[t.name];let r=t;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&e.unshift(r.name);return e}function Pc(t){return ey(t).some(e=>{var r,o;return(o=(r=e.result)==null?void 0:r.errors)==null?void 0:o.some(l=>typeof(l==null?void 0:l.message)=="string"&&l.message.match(/Snapshot .* mismatched/))})}function iT(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:l=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=e;let d=u;const g=f({ws:new h(t),state:new J0,waitForConnection:M,reconnect:N});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(T){var E;g.state.collectPaths(T),(E=r.onPathsCollected)==null||E.call(r,T)},onCollected(T){var E;g.state.collectFiles(T),(E=r.onCollected)==null||E.call(r,T)},onTaskUpdate(T){var E;g.state.updateTasks(T),(E=r.onTaskUpdate)==null||E.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T){var E;(E=r.onFinished)==null||E.call(r,T)},onCancel(T){var E;(E=r.onCancel)==null||E.call(r,T)}},x={post:T=>g.ws.send(T),on:T=>v=T,serialize:YC,deserialize:Mf};g.rpc=BC(b,x);let S;function N(T=!1){T&&(d=u),g.ws=new h(t),A()}function A(){S=new Promise(T=>{g.ws.addEventListener("open",()=>{d=u,T()})}),g.ws.addEventListener("message",T=>{v(T.data)}),g.ws.addEventListener("close",()=>{d-=1,o&&d>0&&setTimeout(N,l)})}A();function M(){return S}return g}const oT=location.port,sT=[location.hostname,oT].filter(Boolean).join(":"),aT=`${location.protocol==="https:"?"wss:":"ws:"}//${sT}/__vitest_api__`,yr=!!window.METADATA_PATH,lT=yr?"./":"/__vitest__/";function Ah(t){return wm()?(Yx(t),!0):!1}function Ur(t){return typeof t=="function"?t():V(t)}const cT=typeof window<"u",uT=t=>typeof t<"u",eo=()=>{};function Mh(t,e){function r(...o){return new Promise((l,u)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(l).catch(u)})}return r}const ny=t=>t();function ry(t,e={}){let r,o,l=eo;const u=h=>{clearTimeout(h),l(),l=eo};return h=>{const d=Ur(t),g=Ur(e.maxWait);return r&&u(r),d<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{l=e.rejectOnCancel?b:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},d)})}}function fT(t,e=!0,r=!0,o=!1){let l=0,u,f=!0,h=eo,d;const g=()=>{u&&(clearTimeout(u),u=void 0,h(),h=eo)};return b=>{const x=Ur(t),S=Date.now()-l,N=()=>d=b();return g(),x<=0?(l=Date.now(),N()):(S>x&&(r||!f)?(l=Date.now(),N()):e&&(d=new Promise((A,M)=>{h=o?M:A,u=setTimeout(()=>{l=Date.now(),f=!0,A(N()),g()},Math.max(0,x-S))})),!r&&!u&&(u=setTimeout(()=>f=!0,x)),f=!1,d)}}function hT(t=ny){const e=Kt(!0);function r(){e.value=!1}function o(){e.value=!0}const l=(...u)=>{e.value&&t(...u)};return{isActive:mc(e),pause:r,resume:o,eventFilter:l}}function iy(...t){if(t.length!==1)return lh(...t);const e=t[0];return typeof e=="function"?mc(L1(()=>({get:e,set:eo}))):Kt(e)}function hv(t,e=200,r={}){return Mh(ry(e,r),t)}function dT(t,e=200,r=!1,o=!0,l=!1){return Mh(fT(e,r,o,l),t)}function pT(t,e=200,r=!0,o=!0){if(e<=0)return t;const l=Kt(t.value),u=dT(()=>{l.value=t.value},e,r,o);return De(t,()=>u()),l}function oy(t,e=!0){_a()?as(t):e?t():Hr(t)}function gT(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,l=Ee(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Ur(r);return u.value=u.value===d?Ur(o):d,u.value}}return l?f:[u,f]}var dv=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty,mT=Object.prototype.propertyIsEnumerable,yT=(t,e)=>{var r={};for(var o in t)vT.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&dv)for(var o of dv(t))e.indexOf(o)<0&&mT.call(t,o)&&(r[o]=t[o]);return r};function sy(t,e,r={}){const o=r,{eventFilter:l=ny}=o,u=yT(o,["eventFilter"]);return De(t,Mh(l,e),u)}var bT=Object.defineProperty,wT=Object.defineProperties,xT=Object.getOwnPropertyDescriptors,Jl=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,pv=(t,e,r)=>e in t?bT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_T=(t,e)=>{for(var r in e||(e={}))ay.call(e,r)&&pv(t,r,e[r]);if(Jl)for(var r of Jl(e))ly.call(e,r)&&pv(t,r,e[r]);return t},ST=(t,e)=>wT(t,xT(e)),kT=(t,e)=>{var r={};for(var o in t)ay.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Jl)for(var o of Jl(t))e.indexOf(o)<0&&ly.call(t,o)&&(r[o]=t[o]);return r};function CT(t,e,r={}){const o=r,{debounce:l=0,maxWait:u=void 0}=o,f=kT(o,["debounce","maxWait"]);return sy(t,e,ST(_T({},f),{eventFilter:ry(l,{maxWait:u})}))}function TT(t,e,r){const o=De(t,(...l)=>(Hr(()=>o()),e(...l)),r)}var ET=Object.defineProperty,LT=Object.defineProperties,AT=Object.getOwnPropertyDescriptors,Ql=Object.getOwnPropertySymbols,cy=Object.prototype.hasOwnProperty,uy=Object.prototype.propertyIsEnumerable,gv=(t,e,r)=>e in t?ET(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,MT=(t,e)=>{for(var r in e||(e={}))cy.call(e,r)&&gv(t,r,e[r]);if(Ql)for(var r of Ql(e))uy.call(e,r)&&gv(t,r,e[r]);return t},NT=(t,e)=>LT(t,AT(e)),PT=(t,e)=>{var r={};for(var o in t)cy.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ql)for(var o of Ql(t))e.indexOf(o)<0&&uy.call(t,o)&&(r[o]=t[o]);return r};function fy(t,e,r={}){const o=r,{eventFilter:l}=o,u=PT(o,["eventFilter"]),{eventFilter:f,pause:h,resume:d,isActive:g}=hT(l);return{stop:sy(t,e,NT(MT({},u),{eventFilter:f})),pause:h,resume:d,isActive:g}}function OT(t,e,r){let o;Ee(r)?o={evaluating:r}:o=r||{};const{lazy:l=!1,evaluating:u=void 0,shallow:f=!0,onError:h=eo}=o,d=Kt(!l),g=f?ss(e):Kt(e);let v=0;return dh(async b=>{if(!d.value)return;v++;const x=v;let S=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const N=await t(A=>{b(()=>{u&&(u.value=!1),S||A()})});x===v&&(g.value=N)}catch(N){h(N)}finally{u&&x===v&&(u.value=!1),S=!0}}),l?bt(()=>(d.value=!0,g.value)):g}function tc(t){var e;const r=Ur(t);return(e=r==null?void 0:r.$el)!=null?e:r}const jr=cT?window:void 0;function es(...t){let e,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,e=jr):[e,r,o,l]=t,!e)return eo;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)),d=De(()=>[tc(e),Ur(l)],([v,b])=>{f(),v&&u.push(...r.flatMap(x=>o.map(S=>h(v,x,S,b))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return Ah(g),g}function $T(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function DT(...t){let e,r,o={};t.length===3?(e=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],o=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:l=jr,eventName:u="keydown",passive:f=!1,dedupe:h=!1}=o,d=$T(e);return es(l,u,v=>{v.repeat&&Ur(h)||d(v)&&r(v)},f)}function RT(){const t=Kt(!1);return _a()&&as(()=>{t.value=!0}),t}function hy(t){const e=RT();return bt(()=>(e.value,!!t()))}function dy(t,e={}){const{window:r=jr}=e,o=hy(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let l;const u=Kt(!1),f=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",h):l.removeListener(h))},h=()=>{o.value&&(f(),l=r.matchMedia(iy(t).value),u.value=!!(l!=null&&l.matches),l&&("addEventListener"in l?l.addEventListener("change",h):l.addListener(h)))};return dh(h),Ah(()=>f()),u}function zT(t){return JSON.parse(JSON.stringify(t))}const bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wl="__vueuse_ssr_handlers__",IT=FT();function FT(){return wl in bl||(bl[wl]=bl[wl]||{}),bl[wl]}function py(t,e){return IT[t]||e}function qT(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"}var HT=Object.defineProperty,vv=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,WT=Object.prototype.propertyIsEnumerable,mv=(t,e,r)=>e in t?HT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yv=(t,e)=>{for(var r in e||(e={}))BT.call(e,r)&&mv(t,r,e[r]);if(vv)for(var r of vv(e))WT.call(e,r)&&mv(t,r,e[r]);return t};const UT={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()}},bv="vueuse-storage";function jT(t,e,r,o={}){var l;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:b=jr,eventFilter:x,onError:S=X=>{console.error(X)}}=o,N=(v?ss:Kt)(e);if(!r)try{r=py("getDefaultStorage",()=>{var X;return(X=jr)==null?void 0:X.localStorage})()}catch(X){S(X)}if(!r)return N;const A=Ur(e),M=qT(A),T=(l=o.serializer)!=null?l:UT[M],{pause:E,resume:F}=fy(N,()=>L(N.value),{flush:u,deep:f,eventFilter:x});return b&&h&&(es(b,"storage",ft),es(b,bv,Y)),ft(),N;function L(X){try{if(X==null)r.removeItem(t);else{const st=T.write(X),ot=r.getItem(t);ot!==st&&(r.setItem(t,st),b&&b.dispatchEvent(new CustomEvent(bv,{detail:{key:t,oldValue:ot,newValue:st,storageArea:r}})))}}catch(st){S(st)}}function j(X){const st=X?X.newValue:r.getItem(t);if(st==null)return d&&A!==null&&r.setItem(t,T.write(A)),A;if(!X&&g){const ot=T.read(st);return typeof g=="function"?g(ot,A):M==="object"&&!Array.isArray(ot)?yv(yv({},A),ot):ot}else return typeof st!="string"?st:T.read(st)}function Y(X){ft(X.detail)}function ft(X){if(!(X&&X.storageArea!==r)){if(X&&X.key==null){N.value=A;return}if(!(X&&X.key!==t)){E();try{N.value=j(X)}catch(st){S(st)}finally{X?Hr(F):F()}}}}}function VT(t){return dy("(prefers-color-scheme: dark)",t)}var GT=Object.defineProperty,wv=Object.getOwnPropertySymbols,KT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,xv=(t,e,r)=>e in t?GT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,YT=(t,e)=>{for(var r in e||(e={}))KT.call(e,r)&&xv(t,r,e[r]);if(wv)for(var r of wv(e))XT.call(e,r)&&xv(t,r,e[r]);return t};function ZT(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:l=jr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g,disableTransition:v=!0}=t,b=YT({auto:"",light:"light",dark:"dark"},t.modes||{}),x=VT({window:l}),S=bt(()=>x.value?"dark":"light"),N=d||(f==null?iy(o):jT(f,o,u,{window:l,listenToStorageChanges:h})),A=bt(()=>N.value==="auto"?S.value:N.value),M=py("updateHTMLAttrs",(L,j,Y)=>{const ft=typeof L=="string"?l==null?void 0:l.document.querySelector(L):tc(L);if(!ft)return;let X;if(v){X=l.document.createElement("style");const st="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";X.appendChild(document.createTextNode(st)),l.document.head.appendChild(X)}if(j==="class"){const st=Y.split(/\s/g);Object.values(b).flatMap(ot=>(ot||"").split(/\s/g)).filter(Boolean).forEach(ot=>{st.includes(ot)?ft.classList.add(ot):ft.classList.remove(ot)})}else ft.setAttribute(j,Y);v&&(l.getComputedStyle(X).opacity,document.head.removeChild(X))});function T(L){var j;M(e,r,(j=b[L])!=null?j:L)}function E(L){t.onChanged?t.onChanged(L,T):T(L)}De(A,E,{flush:"post",immediate:!0}),oy(()=>E(A.value));const F=bt({get(){return g?N.value:A.value},set(L){N.value=L}});try{return Object.assign(F,{store:N,system:S,state:A})}catch{return F}}var JT=Object.defineProperty,QT=Object.defineProperties,tE=Object.getOwnPropertyDescriptors,_v=Object.getOwnPropertySymbols,eE=Object.prototype.hasOwnProperty,nE=Object.prototype.propertyIsEnumerable,Sv=(t,e,r)=>e in t?JT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,rE=(t,e)=>{for(var r in e||(e={}))eE.call(e,r)&&Sv(t,r,e[r]);if(_v)for(var r of _v(e))nE.call(e,r)&&Sv(t,r,e[r]);return t},iE=(t,e)=>QT(t,tE(e));function oE(t={}){const{valueDark:e="dark",valueLight:r=""}=t,o=ZT(iE(rE({},t),{onChanged:(u,f)=>{var h;t.onChanged?(h=t.onChanged)==null||h.call(t,u==="dark",f,u):f(u)},modes:{dark:e,light:r}}));return bt({get(){return o.value==="dark"},set(u){const f=u?"dark":"light";o.system.value===f?o.value="auto":o.value=f}})}var kv=Object.getOwnPropertySymbols,sE=Object.prototype.hasOwnProperty,aE=Object.prototype.propertyIsEnumerable,lE=(t,e)=>{var r={};for(var o in t)sE.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&kv)for(var o of kv(t))e.indexOf(o)<0&&aE.call(t,o)&&(r[o]=t[o]);return r};function cE(t,e,r={}){const o=r,{window:l=jr}=o,u=lE(o,["window"]);let f;const h=hy(()=>l&&"ResizeObserver"in l),d=()=>{f&&(f.disconnect(),f=void 0)},g=bt(()=>Array.isArray(t)?t.map(x=>tc(x)):[tc(t)]),v=De(g,x=>{if(d(),h.value&&l){f=new ResizeObserver(e);for(const S of x)S&&f.observe(S,u)}},{immediate:!0,flush:"post",deep:!0}),b=()=>{d(),v()};return Ah(b),{isSupported:h,stop:b}}function uE(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:l=!1,write:u=!0,window:f=jr}=e;if(!f)return Rn(r);const h=Rn({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",E=T.indexOf("?");return E>0?T.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const E=T.toString();if(t==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const F=f.location.hash||"#",L=F.indexOf("?");return L>0?`${F.slice(0,L)}${E?`?${E}`:""}`:`${F}${E?`?${E}`:""}`}function v(){return new URLSearchParams(d())}function b(T){const E=new Set(Object.keys(h));for(const F of T.keys()){const L=T.getAll(F);h[F]=L.length>1?L:T.get(F)||"",E.delete(F)}Array.from(E).forEach(F=>delete h[F])}const{pause:x,resume:S}=fy(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(E=>{const F=h[E];Array.isArray(F)?F.forEach(L=>T.append(E,L)):o&&F==null||l&&!F?T.delete(E):T.set(E,F)}),N(T)},{deep:!0});function N(T,E){x(),E&&b(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),S()}function A(){u&&N(v(),!0)}es(f,"popstate",A,!1),t!=="history"&&es(f,"hashchange",A,!1);const M=v();return M.keys().next().value?b(M):Object.assign(h,r),h}function fE(t,e,r,o={}){var l,u,f;const{clone:h=!1,passive:d=!1,eventName:g,deep:v=!1,defaultValue:b,shouldEmit:x}=o,S=_a(),N=r||(S==null?void 0:S.emit)||((l=S==null?void 0:S.$emit)==null?void 0:l.bind(S))||((f=(u=S==null?void 0:S.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(S==null?void 0:S.proxy));let A=g;e||(e="modelValue"),A=A||`update:${e.toString()}`;const M=F=>h?typeof h=="function"?h(F):zT(F):F,T=()=>uT(t[e])?M(t[e]):b,E=F=>{x?x(F)&&N(A,F):N(A,F)};if(d){const F=T(),L=Kt(F);return De(()=>t[e],j=>L.value=M(j)),De(L,j=>{(j!==t[e]||v)&&E(j)},{deep:v}),L}else return bt({get(){return T()},set(F){E(F)}})}function hE(t={}){const{window:e=jr,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:l=!0,includeScrollbar:u=!0}=t,f=Kt(r),h=Kt(o),d=()=>{e&&(u?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(d(),oy(d),es("resize",d,{passive:!0}),l){const g=dy("(orientation: portrait)");De(g,()=>d())}return{width:f,height:h}}const gy=uE("hash-params",{initialValue:{file:"",view:null}}),pr=lh(gy,"file"),fr=lh(gy,"view");var $n=Uint8Array,Do=Uint16Array,dE=Int32Array,vy=new $n([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]),my=new $n([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]),pE=new $n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yy=function(t,e){for(var r=new Do(31),o=0;o<31;++o)r[o]=e+=1<<t[o-1];for(var l=new dE(r[30]),o=1;o<30;++o)for(var u=r[o];u<r[o+1];++u)l[u]=u-r[o]<<5|o;return{b:r,r:l}},by=yy(vy,2),wy=by.b,gE=by.r;wy[28]=258,gE[258]=28;var vE=yy(my,0),mE=vE.b,Pf=new Do(32768);for(var _e=0;_e<32768;++_e){var hi=(_e&43690)>>1|(_e&21845)<<1;hi=(hi&52428)>>2|(hi&13107)<<2,hi=(hi&61680)>>4|(hi&3855)<<4,Pf[_e]=((hi&65280)>>8|(hi&255)<<8)>>1}var ra=function(t,e,r){for(var o=t.length,l=0,u=new Do(e);l<o;++l)t[l]&&++u[t[l]-1];var f=new Do(e);for(l=1;l<e;++l)f[l]=f[l-1]+u[l-1]<<1;var h;if(r){h=new Do(1<<e);var d=15-e;for(l=0;l<o;++l)if(t[l])for(var g=l<<4|t[l],v=e-t[l],b=f[t[l]-1]++<<v,x=b|(1<<v)-1;b<=x;++b)h[Pf[b]>>d]=g}else for(h=new Do(o),l=0;l<o;++l)t[l]&&(h[l]=Pf[f[t[l]-1]++]>>15-t[l]);return h},Ta=new $n(288);for(var _e=0;_e<144;++_e)Ta[_e]=8;for(var _e=144;_e<256;++_e)Ta[_e]=9;for(var _e=256;_e<280;++_e)Ta[_e]=7;for(var _e=280;_e<288;++_e)Ta[_e]=8;var xy=new $n(32);for(var _e=0;_e<32;++_e)xy[_e]=5;var yE=ra(Ta,9,1),bE=ra(xy,5,1),Gu=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},Kn=function(t,e,r){var o=e/8|0;return(t[o]|t[o+1]<<8)>>(e&7)&r},Ku=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},wE=function(t){return(t+7)/8|0},_y=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var o=new $n(r-e);return o.set(t.subarray(e,r)),o},xE=["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"],Sn=function(t,e,r){var o=new Error(e||xE[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,Sn),!r)throw o;return o},Nh=function(t,e,r,o){var l=t.length,u=o?o.length:0;if(!l||e.f&&!e.l)return r||new $n(0);var f=!r||e.i!=2,h=e.i;r||(r=new $n(l*3));var d=function(Mt){var Nt=r.length;if(Mt>Nt){var O=new $n(Math.max(Nt*2,Mt));O.set(r),r=O}},g=e.f||0,v=e.p||0,b=e.b||0,x=e.l,S=e.d,N=e.m,A=e.n,M=l*8;do{if(!x){g=Kn(t,v,1);var T=Kn(t,v+1,3);if(v+=3,T)if(T==1)x=yE,S=bE,N=9,A=5;else if(T==2){var j=Kn(t,v,31)+257,Y=Kn(t,v+10,15)+4,ft=j+Kn(t,v+5,31)+1;v+=14;for(var X=new $n(ft),st=new $n(19),ot=0;ot<Y;++ot)st[pE[ot]]=Kn(t,v+ot*3,7);v+=Y*3;for(var kt=Gu(st),pt=(1<<kt)-1,G=ra(st,kt,1),ot=0;ot<ft;){var R=G[Kn(t,v,pt)];v+=R&15;var E=R>>4;if(E<16)X[ot++]=E;else{var k=0,H=0;for(E==16?(H=3+Kn(t,v,3),v+=2,k=X[ot-1]):E==17?(H=3+Kn(t,v,7),v+=3):E==18&&(H=11+Kn(t,v,127),v+=7);H--;)X[ot++]=k}}var B=X.subarray(0,j),Q=X.subarray(j);N=Gu(B),A=Gu(Q),x=ra(B,N,1),S=ra(Q,A,1)}else Sn(1);else{var E=wE(v)+4,F=t[E-4]|t[E-3]<<8,L=E+F;if(L>l){h&&Sn(0);break}f&&d(b+F),r.set(t.subarray(E,L),b),e.b=b+=F,e.p=v=L*8,e.f=g;continue}if(v>M){h&&Sn(0);break}}f&&d(b+131072);for(var wt=(1<<N)-1,Tt=(1<<A)-1,Rt=v;;Rt=v){var k=x[Ku(t,v)&wt],zt=k>>4;if(v+=k&15,v>M){h&&Sn(0);break}if(k||Sn(2),zt<256)r[b++]=zt;else if(zt==256){Rt=v,x=null;break}else{var Vt=zt-254;if(zt>264){var ot=zt-257,Gt=vy[ot];Vt=Kn(t,v,(1<<Gt)-1)+wy[ot],v+=Gt}var Jt=S[Ku(t,v)&Tt],_t=Jt>>4;Jt||Sn(3),v+=Jt&15;var Q=mE[_t];if(_t>3){var Gt=my[_t];Q+=Ku(t,v)&(1<<Gt)-1,v+=Gt}if(v>M){h&&Sn(0);break}f&&d(b+131072);var W=b+Vt;if(b<Q){var et=u-Q,it=Math.min(Q,W);for(et+b<0&&Sn(3);b<it;++b)r[b]=o[et+b]}for(;b<W;b+=4)r[b]=r[b-Q],r[b+1]=r[b+1-Q],r[b+2]=r[b+2-Q],r[b+3]=r[b+3-Q];b=W}}e.l=x,e.p=Rt,e.b=b,e.f=g,x&&(g=1,e.m=N,e.d=S,e.n=A)}while(!g);return b==r.length?r:_y(r,0,b)},_E=new $n(0),SE=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&Sn(6,"invalid gzip data");var e=t[3],r=10;e&4&&(r+=(t[10]|t[11]<<8)+2);for(var o=(e>>3&1)+(e>>4&1);o>0;o-=!t[r++]);return r+(e&2)},kE=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},CE=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Sn(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Sn(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function TE(t,e){return Nh(t,{i:2},e&&e.out,e&&e.dictionary)}function EE(t,e){var r=SE(t);return r+8>t.length&&Sn(6,"invalid gzip data"),Nh(t.subarray(r,-8),{i:2},e&&e.out||new $n(kE(t)),e&&e.dictionary)}function LE(t,e){return Nh(t.subarray(CE(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function AE(t,e){return t[0]==31&&t[1]==139&&t[2]==8?EE(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?TE(t,e):LE(t,e)}var Of=typeof TextDecoder<"u"&&new TextDecoder,ME=0;try{Of.decode(_E,{stream:!0}),ME=1}catch{}var NE=function(t){for(var e="",r=0;;){var o=t[r++],l=(o>127)+(o>223)+(o>239);if(r+l>t.length)return{s:e,r:_y(t,r-1)};l?l==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,e+=String.fromCharCode(55296|o>>10,56320|o&1023)):l&1?e+=String.fromCharCode((o&31)<<6|t[r++]&63):e+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):e+=String.fromCharCode(o)}};function PE(t,e){if(e){for(var r="",o=0;o<t.length;o+=16384)r+=String.fromCharCode.apply(null,t.subarray(o,o+16384));return r}else{if(Of)return Of.decode(t);var l=NE(t),u=l.s,r=l.r;return r.length&&Sn(8),u}}const Cv=()=>{},di=()=>Promise.resolve();function OE(){const t=Rn({state:new J0,waitForConnection:f,reconnect:l,ws:new EventTarget});t.state.filesMap=Rn(t.state.filesMap),t.state.idMap=Rn(t.state.idMap);let e;const r={getFiles:()=>e.files,getPaths:()=>e.paths,getConfig:()=>e.config,getModuleGraph:async h=>e.moduleGraph[h],getTransformResult:async h=>({code:h,source:""}),readFile:async h=>Promise.resolve(h),onDone:Cv,onCollected:di,onTaskUpdate:Cv,writeFile:di,rerun:di,updateSnapshot:di,removeFile:di,createDirectory:di,resolveSnapshotPath:di,snapshotSaved:di};t.rpc=r;let o;function l(){u()}async function u(){var v;const h=await fetch(window.METADATA_PATH),d=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const b=new Uint8Array(await h.arrayBuffer()),x=PE(AE(b));e=Mf(x)}else e=Mf(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}u();function f(){return o}return t}const pa=Kt("idle"),Ve=function(){return yr?OE():iT(aT,{reactive:Rn,handlers:{onTaskUpdate(){pa.value="running"},onFinished(){pa.value="idle"}}})}(),Ea=ss({}),Gi=Kt("CONNECTING"),Ln=bt(()=>Ve.state.getFiles()),Ae=bt(()=>Ln.value.find(t=>t.id===pr.value)),Sy=bt(()=>Lh(Ae.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function ec(t){return Ln.value.find(e=>e.id===t)}const $E=bt(()=>Gi.value==="OPEN"),Xu=bt(()=>Gi.value==="CONNECTING");bt(()=>Gi.value==="CLOSED");function DE(t=Ve.state.getFiles()){return ky(t)}function ky(t){return t.forEach(e=>{delete e.result,Lh(e).forEach(r=>delete r.result)}),Ve.rpc.rerun(t.map(e=>e.filepath))}function RE(){if(Ae.value)return ky([Ae.value])}De(()=>Ve.ws,t=>{Gi.value=yr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{Gi.value="OPEN",Ve.state.filesMap.clear();const[e,r]=await Promise.all([Ve.rpc.getFiles(),Ve.rpc.getConfig()]);Ve.state.collectFiles(e),Ea.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Gi.value==="CONNECTING"&&(Gi.value="CLOSED")},1e3)})},{immediate:!0});const zE={"text-2xl":""},IE=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),FE=re({__name:"ConnectionOverlay",setup(t){return(e,r)=>V($E)?ne("",!0):(ct(),Et("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)=>V(Ve).reconnect&&V(Ve).reconnect(...o))},[ut("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(V(Xu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ve(V(Xu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",zE,Qt(V(Xu)?"Connecting...":"Disconnected"),1),IE],2)]))}});var Cy={},Fr={};const qE="Á",HE="á",BE="Ă",WE="ă",UE="∾",jE="∿",VE="∾̳",GE="Â",KE="â",XE="´",YE="А",ZE="а",JE="Æ",QE="æ",tL="⁡",eL="𝔄",nL="𝔞",rL="À",iL="à",oL="ℵ",sL="ℵ",aL="Α",lL="α",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="⊾",$L="⦝",DL="∢",RL="Å",zL="⍼",IL="Ą",FL="ą",qL="𝔸",HL="𝕒",BL="⩯",WL="≈",UL="⩰",jL="≊",VL="≋",GL="'",KL="⁡",XL="≈",YL="≊",ZL="Å",JL="å",QL="𝒜",tA="𝒶",eA="≔",nA="*",rA="≈",iA="≍",oA="Ã",sA="ã",aA="Ä",lA="ä",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="ℬ",$A="ℬ",DA="Β",RA="β",zA="ℶ",IA="≬",FA="𝔅",qA="𝔟",HA="⋂",BA="◯",WA="⋃",UA="⨀",jA="⨁",VA="⨂",GA="⨆",KA="★",XA="▽",YA="△",ZA="⨄",JA="⋁",QA="⋀",tM="⤍",eM="⧫",nM="▪",rM="▴",iM="▾",oM="◂",sM="▸",aM="␣",lM="▒",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="╤",$M="╥",DM="╦",RM="┴",zM="╧",IM="╨",FM="╩",qM="⊟",HM="⊞",BM="⊠",WM="┘",UM="╛",jM="╜",VM="╝",GM="└",KM="╘",XM="╙",YM="╚",ZM="│",JM="║",QM="┼",tN="╪",eN="╫",nN="╬",rN="┤",iN="╡",oN="╢",sN="╣",aN="├",lN="╞",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="⩉",$N="⩋",DN="∩",RN="⋒",zN="⩇",IN="⩀",FN="ⅅ",qN="∩︀",HN="⁁",BN="ˇ",WN="ℭ",UN="⩍",jN="Č",VN="č",GN="Ç",KN="ç",XN="Ĉ",YN="ĉ",ZN="∰",JN="⩌",QN="⩐",tP="Ċ",eP="ċ",nP="¸",rP="¸",iP="⦲",oP="¢",sP="·",aP="·",lP="𝔠",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="⫯",$P="⧂",DP="∲",RP="”",zP="’",IP="♣",FP="♣",qP=":",HP="∷",BP="⩴",WP="≔",UP="≔",jP=",",VP="@",GP="∁",KP="∘",XP="∁",YP="ℂ",ZP="≅",JP="⩭",QP="≡",tO="∮",eO="∯",nO="∮",rO="𝕔",iO="ℂ",oO="∐",sO="∐",aO="©",lO="©",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="⊍",$O="⩅",DO="∪︀",RO="↷",zO="⤼",IO="⋞",FO="⋟",qO="⋎",HO="⋏",BO="¤",WO="↶",UO="↷",jO="⋎",VO="⋏",GO="∲",KO="∱",XO="⌭",YO="†",ZO="‡",JO="ℸ",QO="↓",t$="↡",e$="⇓",n$="‐",r$="⫤",i$="⊣",o$="⤏",s$="˝",a$="Ď",l$="ď",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$="♦",I$="¨",F$="ⅆ",q$="ϝ",H$="⋲",B$="÷",W$="÷",U$="⋇",j$="⋇",V$="Ђ",G$="ђ",K$="⌞",X$="⌍",Y$="$",Z$="𝔻",J$="𝕕",Q$="¨",tD="˙",eD="⃜",nD="≐",rD="≑",iD="≐",oD="∸",sD="∔",aD="⊡",lD="⌆",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="⥞",$D="⥖",DD="↽",RD="⥟",zD="⥗",ID="⇁",FD="↧",qD="⊤",HD="⤐",BD="⌟",WD="⌌",UD="𝒟",jD="𝒹",VD="Ѕ",GD="ѕ",KD="⧶",XD="Đ",YD="đ",ZD="⋱",JD="▿",QD="▾",t2="⇵",e2="⥯",n2="⦦",r2="Џ",i2="џ",o2="⟿",s2="É",a2="é",l2="⩮",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="ℓ",$2="⪕",D2="⪗",R2="Ē",z2="ē",I2="∅",F2="∅",q2="◻",H2="∅",B2="▫",W2=" ",U2=" ",j2=" ",V2="Ŋ",G2="ŋ",K2=" ",X2="Ę",Y2="ę",Z2="𝔼",J2="𝕖",Q2="⋕",tR="⧣",eR="⩱",nR="ε",rR="Ε",iR="ε",oR="ϵ",sR="≖",aR="≕",lR="≂",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="!",$R="∃",DR="∃",RR="ℰ",zR="ⅇ",IR="ⅇ",FR="≒",qR="Ф",HR="ф",BR="♀",WR="ffi",UR="ff",jR="ffl",VR="𝔉",GR="𝔣",KR="fi",XR="◼",YR="▪",ZR="fj",JR="♭",QR="fl",tz="▱",ez="ƒ",nz="𝔽",rz="𝕗",iz="∀",oz="∀",sz="⋔",az="⫙",lz="ℱ",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="ϝ",$z="⪆",Dz="Ğ",Rz="ğ",zz="Ģ",Iz="Ĝ",Fz="ĝ",qz="Г",Hz="г",Bz="Ġ",Wz="ġ",Uz="≥",jz="≧",Vz="⪌",Gz="⋛",Kz="≥",Xz="≧",Yz="⩾",Zz="⪩",Jz="⩾",Qz="⪀",tI="⪂",eI="⪄",nI="⋛︀",rI="⪔",iI="𝔊",oI="𝔤",sI="≫",aI="⋙",lI="⋙",cI="ℷ",uI="Ѓ",fI="ѓ",hI="⪥",dI="≷",pI="⪒",gI="⪤",vI="⪊",mI="⪊",yI="⪈",bI="≩",wI="⪈",xI="≩",_I="⋧",SI="𝔾",kI="𝕘",CI="`",TI="≥",EI="⋛",LI="≧",AI="⪢",MI="≷",NI="⩾",PI="≳",OI="𝒢",$I="ℊ",DI="≳",RI="⪎",zI="⪐",II="⪧",FI="⩺",qI=">",HI=">",BI="≫",WI="⋗",UI="⦕",jI="⩼",VI="⪆",GI="⥸",KI="⋗",XI="⋛",YI="⪌",ZI="≷",JI="≳",QI="≩︀",tF="≩︀",eF="ˇ",nF=" ",rF="½",iF="ℋ",oF="Ъ",sF="ъ",aF="⥈",lF="↔",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="ℋ",$F="ℏ",DF="Ħ",RF="ħ",zF="≎",IF="≏",FF="⁃",qF="‐",HF="Í",BF="í",WF="⁣",UF="Î",jF="î",VF="И",GF="и",KF="İ",XF="Е",YF="е",ZF="¡",JF="⇔",QF="𝔦",tq="ℑ",eq="Ì",nq="ì",rq="ⅈ",iq="⨌",oq="∭",sq="⧜",aq="℩",lq="IJ",cq="ij",uq="Ī",fq="ī",hq="ℑ",dq="ⅈ",pq="ℐ",gq="ℑ",vq="ı",mq="ℑ",yq="⊷",bq="Ƶ",wq="⇒",xq="℅",_q="∞",Sq="⧝",kq="ı",Cq="⊺",Tq="∫",Eq="∬",Lq="ℤ",Aq="∫",Mq="⊺",Nq="⋂",Pq="⨗",Oq="⨼",$q="⁣",Dq="⁢",Rq="Ё",zq="ё",Iq="Į",Fq="į",qq="𝕀",Hq="𝕚",Bq="Ι",Wq="ι",Uq="⨼",jq="¿",Vq="𝒾",Gq="ℐ",Kq="∈",Xq="⋵",Yq="⋹",Zq="⋴",Jq="⋳",Qq="∈",tH="⁢",eH="Ĩ",nH="ĩ",rH="І",iH="і",oH="Ï",sH="ï",aH="Ĵ",lH="ĵ",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="х",$H="Ќ",DH="ќ",RH="𝕂",zH="𝕜",IH="𝒦",FH="𝓀",qH="⇚",HH="Ĺ",BH="ĺ",WH="⦴",UH="ℒ",jH="Λ",VH="λ",GH="⟨",KH="⟪",XH="⦑",YH="⟨",ZH="⪅",JH="ℒ",QH="«",tB="⇤",eB="⤟",nB="←",rB="↞",iB="⇐",oB="⤝",sB="↩",aB="↫",lB="⤹",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="“",$B="„",DB="⥧",RB="⥋",zB="↲",IB="≤",FB="≦",qB="⟨",HB="⇤",BB="←",WB="←",UB="⇐",jB="⇆",VB="↢",GB="⌈",KB="⟦",XB="⥡",YB="⥙",ZB="⇃",JB="⌊",QB="↽",t3="↼",e3="⇇",n3="↔",r3="↔",i3="⇔",o3="⇆",s3="⇋",a3="↭",l3="⥎",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="⪓",$3="⪅",D3="⋖",R3="⋚",z3="⪋",I3="⋚",F3="≦",q3="≶",H3="≶",B3="⪡",W3="≲",U3="⩽",j3="≲",V3="⥼",G3="⌊",K3="𝔏",X3="𝔩",Y3="≶",Z3="⪑",J3="⥢",Q3="↽",t5="↼",e5="⥪",n5="▄",r5="Љ",i5="љ",o5="⇇",s5="≪",a5="⋘",l5="⌞",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="⟶",$5="⟶",D5="⟹",R5="↫",z5="↬",I5="⦅",F5="𝕃",q5="𝕝",H5="⨭",B5="⨴",W5="∗",U5="_",j5="↙",V5="↘",G5="◊",K5="◊",X5="⧫",Y5="(",Z5="⦓",J5="⇆",Q5="⌟",t8="⇋",e8="⥭",n8="‎",r8="⊿",i8="‹",o8="𝓁",s8="ℒ",a8="↰",l8="↰",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="≨︀",$8="≨︀",D8="¯",R8="♂",z8="✠",I8="✠",F8="↦",q8="↦",H8="↧",B8="↤",W8="↥",U8="▮",j8="⨩",V8="М",G8="м",K8="—",X8="∺",Y8="∡",Z8=" ",J8="ℳ",Q8="𝔐",tW="𝔪",eW="℧",nW="µ",rW="*",iW="⫰",oW="∣",sW="·",aW="⊟",lW="−",cW="∸",uW="⨪",fW="∓",hW="⫛",dW="…",pW="∓",gW="⊧",vW="𝕄",mW="𝕞",yW="∓",bW="𝓂",wW="ℳ",xW="∾",_W="Μ",SW="μ",kW="⊸",CW="⊸",TW="∇",EW="Ń",LW="ń",AW="∠⃒",MW="≉",NW="⩰̸",PW="≋̸",OW="ʼn",$W="≉",DW="♮",RW="ℕ",zW="♮",IW=" ",FW="≎̸",qW="≏̸",HW="⩃",BW="Ň",WW="ň",UW="Ņ",jW="ņ",VW="≇",GW="⩭̸",KW="⩂",XW="Н",YW="н",ZW="–",JW="⤤",QW="↗",tU="⇗",eU="↗",nU="≠",rU="≐̸",iU="​",oU="​",sU="​",aU="​",lU="≢",cU="⤨",uU="≂̸",fU="≫",hU="≪",dU=`
6
+ `,pU="∄",gU="∄",vU="𝔑",mU="𝔫",yU="≧̸",bU="≱",wU="≱",xU="≧̸",_U="⩾̸",SU="⩾̸",kU="⋙̸",CU="≵",TU="≫⃒",EU="≯",LU="≯",AU="≫̸",MU="↮",NU="⇎",PU="⫲",OU="∋",$U="⋼",DU="⋺",RU="∋",zU="Њ",IU="њ",FU="↚",qU="⇍",HU="‥",BU="≦̸",WU="≰",UU="↚",jU="⇍",VU="↮",GU="⇎",KU="≰",XU="≦̸",YU="⩽̸",ZU="⩽̸",JU="≮",QU="⋘̸",t4="≴",e4="≪⃒",n4="≮",r4="⋪",i4="⋬",o4="≪̸",s4="∤",a4="⁠",l4=" ",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="⋷",$4="⋶",D4="⧏̸",R4="⋪",z4="⋬",I4="≮",F4="≰",q4="≸",H4="≪̸",B4="⩽̸",W4="≴",U4="⪢̸",j4="⪡̸",V4="∌",G4="∌",K4="⋾",X4="⋽",Y4="⊀",Z4="⪯̸",J4="⋠",Q4="∌",t6="⧐̸",e6="⋫",n6="⋭",r6="⊏̸",i6="⋢",o6="⊐̸",s6="⋣",a6="⊂⃒",l6="⊈",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="↝̸",$6="↛",D6="⇏",R6="⋫",z6="⋭",I6="⊁",F6="⋡",q6="⪰̸",H6="𝒩",B6="𝓃",W6="∤",U6="∦",j6="≁",V6="≄",G6="≄",K6="∤",X6="∦",Y6="⋢",Z6="⋣",J6="⊄",Q6="⫅̸",tj="⊈",ej="⊂⃒",nj="⊈",rj="⫅̸",ij="⊁",oj="⪰̸",sj="⊅",aj="⫆̸",lj="⊉",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="⧞",$j="⤂",Dj="≤⃒",Rj="<⃒",zj="⊴⃒",Ij="⤃",Fj="⊵⃒",qj="∼⃒",Hj="⤣",Bj="↖",Wj="⇖",Uj="↖",jj="⤧",Vj="Ó",Gj="ó",Kj="⊛",Xj="Ô",Yj="ô",Zj="⊚",Jj="О",Qj="о",t9="⊝",e9="Ő",n9="ő",r9="⨸",i9="⊙",o9="⦼",s9="Œ",a9="œ",l9="⦿",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="⦷",$9="“",D9="‘",R9="⦹",z9="⊕",I9="↻",F9="⩔",q9="∨",H9="⩝",B9="ℴ",W9="ℴ",U9="ª",j9="º",V9="⊶",G9="⩖",K9="⩗",X9="⩛",Y9="Ⓢ",Z9="𝒪",J9="ℴ",Q9="Ø",tV="ø",eV="⊘",nV="Õ",rV="õ",iV="⨶",oV="⨷",sV="⊗",aV="Ö",lV="ö",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="ℳ",$V="☎",DV="Π",RV="π",zV="⋔",IV="ϖ",FV="ℏ",qV="ℎ",HV="ℏ",BV="⨣",WV="⊞",UV="⨢",jV="+",VV="∔",GV="⨥",KV="⩲",XV="±",YV="±",ZV="⨦",JV="⨧",QV="±",tG="ℌ",eG="⨕",nG="𝕡",rG="ℙ",iG="£",oG="⪷",sG="⪻",aG="≺",lG="≼",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="⌓",$G="∝",DG="∝",RG="∷",zG="∝",IG="≾",FG="⊰",qG="𝒫",HG="𝓅",BG="Ψ",WG="ψ",UG=" ",jG="𝔔",VG="𝔮",GG="⨌",KG="𝕢",XG="ℚ",YG="⁗",ZG="𝒬",JG="𝓆",QG="ℍ",t7="⨖",e7="?",n7="≟",r7='"',i7='"',o7="⇛",s7="∽̱",a7="Ŕ",l7="ŕ",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="⤜",$7="∶",D7="ℚ",R7="⤍",z7="⤏",I7="⤐",F7="❳",q7="}",H7="]",B7="⦌",W7="⦎",U7="⦐",j7="Ř",V7="ř",G7="Ŗ",K7="ŗ",X7="⌉",Y7="}",Z7="Р",J7="р",Q7="⤷",tK="⥩",eK="”",nK="”",rK="↳",iK="ℜ",oK="ℛ",sK="ℜ",aK="ℝ",lK="ℜ",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="⌉",$K="⟧",DK="⥝",RK="⥕",zK="⇂",IK="⌋",FK="⇁",qK="⇀",HK="⇄",BK="⇌",WK="⇉",UK="↝",jK="↦",VK="⊢",GK="⥛",KK="⋌",XK="⧐",YK="⊳",ZK="⊵",JK="⥏",QK="⥜",tX="⥔",eX="↾",nX="⥓",rX="⇀",iX="˚",oX="≓",sX="⇄",aX="⇌",lX="‏",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="’",$X="⋌",DX="⋊",RX="▹",zX="⊵",IX="▸",FX="⧎",qX="⧴",HX="⥨",BX="℞",WX="Ś",UX="ś",jX="‚",VX="⪸",GX="Š",KX="š",XX="⪼",YX="≻",ZX="≽",JX="⪰",QX="⪴",tY="Ş",eY="ş",nY="Ŝ",rY="ŝ",iY="⪺",oY="⪶",sY="⋩",aY="⨓",lY="≿",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="←",$Y="∣",DY="∥",RY="→",zY="↑",IY="­",FY="Σ",qY="σ",HY="ς",BY="ς",WY="∼",UY="⩪",jY="≃",VY="≃",GY="⪞",KY="⪠",XY="⪝",YY="⪟",ZY="≆",JY="⨤",QY="⥲",tZ="←",eZ="∘",nZ="∖",rZ="⨳",iZ="⧤",oZ="∣",sZ="⌣",aZ="⪪",lZ="⪬",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="□",$Z="□",DZ="⊓",RZ="⊏",zZ="⊑",IZ="⊐",FZ="⊒",qZ="⊔",HZ="▪",BZ="□",WZ="▪",UZ="→",jZ="𝒮",VZ="𝓈",GZ="∖",KZ="⌣",XZ="⋆",YZ="⋆",ZZ="☆",JZ="★",QZ="ϵ",tJ="ϕ",eJ="¯",nJ="⊂",rJ="⋐",iJ="⪽",oJ="⫅",sJ="⊆",aJ="⫃",lJ="⫁",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="⋩",$J="≿",DJ="∋",RJ="∑",zJ="∑",IJ="♪",FJ="¹",qJ="²",HJ="³",BJ="⊃",WJ="⋑",UJ="⪾",jJ="⫘",VJ="⫆",GJ="⊇",KJ="⫄",XJ="⊃",YJ="⊇",ZJ="⟉",JJ="⫗",QJ="⥻",tQ="⫂",eQ="⫌",nQ="⊋",rQ="⫀",iQ="⊃",oQ="⋑",sQ="⊇",aQ="⫆",lQ="⊋",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="𝔱",$Q="∴",DQ="∴",RQ="∴",zQ="Θ",IQ="θ",FQ="ϑ",qQ="ϑ",HQ="≈",BQ="∼",WQ="  ",UQ=" ",jQ=" ",VQ="≈",GQ="∼",KQ="Þ",XQ="þ",YQ="˜",ZQ="∼",JQ="≃",QQ="≅",ttt="≈",ett="⨱",ntt="⊠",rtt="×",itt="⨰",ott="∭",stt="⤨",att="⌶",ltt="⫱",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="𝓉",$tt="Ц",Dtt="ц",Rtt="Ћ",ztt="ћ",Itt="Ŧ",Ftt="ŧ",qtt="≬",Htt="↞",Btt="↠",Wtt="Ú",Utt="ú",jtt="↑",Vtt="↟",Gtt="⇑",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="𝕌",$et="𝕦",Det="⤒",Ret="↑",zet="↑",Iet="⇑",Fet="⇅",qet="↕",Het="↕",Bet="⇕",Wet="⥮",Uet="↿",jet="↾",Vet="⊎",Get="↖",Ket="↗",Xet="υ",Yet="ϒ",Zet="ϒ",Jet="Υ",Qet="υ",tnt="↥",ent="⊥",nnt="⇈",rnt="⌝",int="⌝",ont="⌎",snt="Ů",ant="ů",lnt="◹",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="⊋︀",$nt="⫌︀",Dnt="ϑ",Rnt="⊲",znt="⊳",Int="⫨",Fnt="⫫",qnt="⫩",Hnt="В",Bnt="в",Wnt="⊢",Unt="⊨",jnt="⊩",Vnt="⊫",Gnt="⫦",Knt="⊻",Xnt="∨",Ynt="⋁",Znt="≚",Jnt="⋮",Qnt="|",trt="‖",ert="|",nrt="‖",rrt="∣",irt="|",ort="❘",srt="≀",art=" ",lrt="𝔙",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="𝔴",$rt="𝕎",Drt="𝕨",Rrt="℘",zrt="≀",Irt="≀",Frt="𝒲",qrt="𝓌",Hrt="⋂",Brt="◯",Wrt="⋃",Urt="▽",jrt="𝔛",Vrt="𝔵",Grt="⟷",Krt="⟺",Xrt="Ξ",Yrt="ξ",Zrt="⟵",Jrt="⟸",Qrt="⟼",tit="⋻",eit="⨀",nit="𝕏",rit="𝕩",iit="⨁",oit="⨂",sit="⟶",ait="⟹",lit="𝒳",cit="𝓍",uit="⨆",fit="⨄",hit="△",dit="⋁",pit="⋀",git="Ý",vit="ý",mit="Я",yit="я",bit="Ŷ",wit="ŷ",xit="Ы",_it="ы",Sit="¥",kit="𝔜",Cit="𝔶",Tit="Ї",Eit="ї",Lit="𝕐",Ait="𝕪",Mit="𝒴",Nit="𝓎",Pit="Ю",Oit="ю",$it="ÿ",Dit="Ÿ",Rit="Ź",zit="ź",Iit="Ž",Fit="ž",qit="З",Hit="з",Bit="Ż",Wit="ż",Uit="ℨ",jit="​",Vit="Ζ",Git="ζ",Kit="𝔷",Xit="ℨ",Yit="Ж",Zit="ж",Jit="⇝",Qit="𝕫",tot="ℤ",eot="𝒵",not="𝓏",rot="‍",iot="‌",Ty={Aacute:qE,aacute:HE,Abreve:BE,abreve:WE,ac:UE,acd:jE,acE:VE,Acirc:GE,acirc:KE,acute:XE,Acy:YE,acy:ZE,AElig:JE,aelig:QE,af:tL,Afr:eL,afr:nL,Agrave:rL,agrave:iL,alefsym:oL,aleph:sL,Alpha:aL,alpha:lL,Amacr:cL,amacr:uL,amalg:fL,amp:hL,AMP:dL,andand:pL,And:gL,and:vL,andd:mL,andslope:yL,andv:bL,ang:wL,ange:xL,angle:_L,angmsdaa:SL,angmsdab:kL,angmsdac:CL,angmsdad:TL,angmsdae:EL,angmsdaf:LL,angmsdag:AL,angmsdah:ML,angmsd:NL,angrt:PL,angrtvb:OL,angrtvbd:$L,angsph:DL,angst:RL,angzarr:zL,Aogon:IL,aogon:FL,Aopf:qL,aopf:HL,apacir:BL,ap:WL,apE:UL,ape:jL,apid:VL,apos:GL,ApplyFunction:KL,approx:XL,approxeq:YL,Aring:ZL,aring:JL,Ascr:QL,ascr:tA,Assign:eA,ast:nA,asymp:rA,asympeq:iA,Atilde:oA,atilde:sA,Auml:aA,auml:lA,awconint:cA,awint:uA,backcong:fA,backepsilon:hA,backprime:dA,backsim:pA,backsimeq:gA,Backslash:vA,Barv:mA,barvee:yA,barwed:bA,Barwed:wA,barwedge:xA,bbrk:_A,bbrktbrk:SA,bcong:kA,Bcy:CA,bcy:TA,bdquo:EA,becaus:LA,because:AA,Because:MA,bemptyv:NA,bepsi:PA,bernou:OA,Bernoullis:$A,Beta:DA,beta:RA,beth:zA,between:IA,Bfr:FA,bfr:qA,bigcap:HA,bigcirc:BA,bigcup:WA,bigodot:UA,bigoplus:jA,bigotimes:VA,bigsqcup:GA,bigstar:KA,bigtriangledown:XA,bigtriangleup:YA,biguplus:ZA,bigvee:JA,bigwedge:QA,bkarow:tM,blacklozenge:eM,blacksquare:nM,blacktriangle:rM,blacktriangledown:iM,blacktriangleleft:oM,blacktriangleright:sM,blank:aM,blk12:lM,blk14:cM,blk34:uM,block:fM,bne:hM,bnequiv:dM,bNot:pM,bnot:gM,Bopf:vM,bopf:mM,bot:yM,bottom:bM,bowtie:wM,boxbox:xM,boxdl:_M,boxdL:SM,boxDl:kM,boxDL:CM,boxdr:TM,boxdR:EM,boxDr:LM,boxDR:AM,boxh:MM,boxH:NM,boxhd:PM,boxHd:OM,boxhD:$M,boxHD:DM,boxhu:RM,boxHu:zM,boxhU:IM,boxHU:FM,boxminus:qM,boxplus:HM,boxtimes:BM,boxul:WM,boxuL:UM,boxUl:jM,boxUL:VM,boxur:GM,boxuR:KM,boxUr:XM,boxUR:YM,boxv:ZM,boxV:JM,boxvh:QM,boxvH:tN,boxVh:eN,boxVH:nN,boxvl:rN,boxvL:iN,boxVl:oN,boxVL:sN,boxvr:aN,boxvR:lN,boxVr:cN,boxVR:uN,bprime:fN,breve:hN,Breve:dN,brvbar:pN,bscr:gN,Bscr:vN,bsemi:mN,bsim:yN,bsime:bN,bsolb:wN,bsol:xN,bsolhsub:_N,bull:SN,bullet:kN,bump:CN,bumpE:TN,bumpe:EN,Bumpeq:LN,bumpeq:AN,Cacute:MN,cacute:NN,capand:PN,capbrcup:ON,capcap:$N,cap:DN,Cap:RN,capcup:zN,capdot:IN,CapitalDifferentialD:FN,caps:qN,caret:HN,caron:BN,Cayleys:WN,ccaps:UN,Ccaron:jN,ccaron:VN,Ccedil:GN,ccedil:KN,Ccirc:XN,ccirc:YN,Cconint:ZN,ccups:JN,ccupssm:QN,Cdot:tP,cdot:eP,cedil:nP,Cedilla:rP,cemptyv:iP,cent:oP,centerdot:sP,CenterDot:aP,cfr:lP,Cfr:cP,CHcy:uP,chcy:fP,check:hP,checkmark:dP,Chi:pP,chi:gP,circ:vP,circeq:mP,circlearrowleft:yP,circlearrowright:bP,circledast:wP,circledcirc:xP,circleddash:_P,CircleDot:SP,circledR:kP,circledS:CP,CircleMinus:TP,CirclePlus:EP,CircleTimes:LP,cir:AP,cirE:MP,cire:NP,cirfnint:PP,cirmid:OP,cirscir:$P,ClockwiseContourIntegral:DP,CloseCurlyDoubleQuote:RP,CloseCurlyQuote:zP,clubs:IP,clubsuit:FP,colon:qP,Colon:HP,Colone:BP,colone:WP,coloneq:UP,comma:jP,commat:VP,comp:GP,compfn:KP,complement:XP,complexes:YP,cong:ZP,congdot:JP,Congruent:QP,conint:tO,Conint:eO,ContourIntegral:nO,copf:rO,Copf:iO,coprod:oO,Coproduct:sO,copy:aO,COPY:lO,copysr:cO,CounterClockwiseContourIntegral:uO,crarr:fO,cross:hO,Cross:dO,Cscr:pO,cscr:gO,csub:vO,csube:mO,csup:yO,csupe:bO,ctdot:wO,cudarrl:xO,cudarrr:_O,cuepr:SO,cuesc:kO,cularr:CO,cularrp:TO,cupbrcap:EO,cupcap:LO,CupCap:AO,cup:MO,Cup:NO,cupcup:PO,cupdot:OO,cupor:$O,cups:DO,curarr:RO,curarrm:zO,curlyeqprec:IO,curlyeqsucc:FO,curlyvee:qO,curlywedge:HO,curren:BO,curvearrowleft:WO,curvearrowright:UO,cuvee:jO,cuwed:VO,cwconint:GO,cwint:KO,cylcty:XO,dagger:YO,Dagger:ZO,daleth:JO,darr:QO,Darr:t$,dArr:e$,dash:n$,Dashv:r$,dashv:i$,dbkarow:o$,dblac:s$,Dcaron:a$,dcaron:l$,Dcy:c$,dcy:u$,ddagger:f$,ddarr:h$,DD:d$,dd:p$,DDotrahd:g$,ddotseq:v$,deg:m$,Del:y$,Delta:b$,delta:w$,demptyv:x$,dfisht:_$,Dfr:S$,dfr:k$,dHar:C$,dharl:T$,dharr:E$,DiacriticalAcute:L$,DiacriticalDot:A$,DiacriticalDoubleAcute:M$,DiacriticalGrave:N$,DiacriticalTilde:P$,diam:O$,diamond:$$,Diamond:D$,diamondsuit:R$,diams:z$,die:I$,DifferentialD:F$,digamma:q$,disin:H$,div:B$,divide:W$,divideontimes:U$,divonx:j$,DJcy:V$,djcy:G$,dlcorn:K$,dlcrop:X$,dollar:Y$,Dopf:Z$,dopf:J$,Dot:Q$,dot:tD,DotDot:eD,doteq:nD,doteqdot:rD,DotEqual:iD,dotminus:oD,dotplus:sD,dotsquare:aD,doublebarwedge:lD,DoubleContourIntegral:cD,DoubleDot:uD,DoubleDownArrow:fD,DoubleLeftArrow:hD,DoubleLeftRightArrow:dD,DoubleLeftTee:pD,DoubleLongLeftArrow:gD,DoubleLongLeftRightArrow:vD,DoubleLongRightArrow:mD,DoubleRightArrow:yD,DoubleRightTee:bD,DoubleUpArrow:wD,DoubleUpDownArrow:xD,DoubleVerticalBar:_D,DownArrowBar:SD,downarrow:kD,DownArrow:CD,Downarrow:TD,DownArrowUpArrow:ED,DownBreve:LD,downdownarrows:AD,downharpoonleft:MD,downharpoonright:ND,DownLeftRightVector:PD,DownLeftTeeVector:OD,DownLeftVectorBar:$D,DownLeftVector:DD,DownRightTeeVector:RD,DownRightVectorBar:zD,DownRightVector:ID,DownTeeArrow:FD,DownTee:qD,drbkarow:HD,drcorn:BD,drcrop:WD,Dscr:UD,dscr:jD,DScy:VD,dscy:GD,dsol:KD,Dstrok:XD,dstrok:YD,dtdot:ZD,dtri:JD,dtrif:QD,duarr:t2,duhar:e2,dwangle:n2,DZcy:r2,dzcy:i2,dzigrarr:o2,Eacute:s2,eacute:a2,easter:l2,Ecaron:c2,ecaron:u2,Ecirc:f2,ecirc:h2,ecir:d2,ecolon:p2,Ecy:g2,ecy:v2,eDDot:m2,Edot:y2,edot:b2,eDot:w2,ee:x2,efDot:_2,Efr:S2,efr:k2,eg:C2,Egrave:T2,egrave:E2,egs:L2,egsdot:A2,el:M2,Element:N2,elinters:P2,ell:O2,els:$2,elsdot:D2,Emacr:R2,emacr:z2,empty:I2,emptyset:F2,EmptySmallSquare:q2,emptyv:H2,EmptyVerySmallSquare:B2,emsp13:W2,emsp14:U2,emsp:j2,ENG:V2,eng:G2,ensp:K2,Eogon:X2,eogon:Y2,Eopf:Z2,eopf:J2,epar:Q2,eparsl:tR,eplus:eR,epsi:nR,Epsilon:rR,epsilon:iR,epsiv:oR,eqcirc:sR,eqcolon:aR,eqsim:lR,eqslantgtr:cR,eqslantless:uR,Equal:fR,equals:hR,EqualTilde:dR,equest:pR,Equilibrium:gR,equiv:vR,equivDD:mR,eqvparsl:yR,erarr:bR,erDot:wR,escr:xR,Escr:_R,esdot:SR,Esim:kR,esim:CR,Eta:TR,eta:ER,ETH:LR,eth:AR,Euml:MR,euml:NR,euro:PR,excl:OR,exist:$R,Exists:DR,expectation:RR,exponentiale:zR,ExponentialE:IR,fallingdotseq:FR,Fcy:qR,fcy:HR,female:BR,ffilig:WR,fflig:UR,ffllig:jR,Ffr:VR,ffr:GR,filig:KR,FilledSmallSquare:XR,FilledVerySmallSquare:YR,fjlig:ZR,flat:JR,fllig:QR,fltns:tz,fnof:ez,Fopf:nz,fopf:rz,forall:iz,ForAll:oz,fork:sz,forkv:az,Fouriertrf:lz,fpartint:cz,frac12:uz,frac13:fz,frac14:hz,frac15:dz,frac16:pz,frac18:gz,frac23:vz,frac25:mz,frac34:yz,frac35:bz,frac38:wz,frac45:xz,frac56:_z,frac58:Sz,frac78:kz,frasl:Cz,frown:Tz,fscr:Ez,Fscr:Lz,gacute:Az,Gamma:Mz,gamma:Nz,Gammad:Pz,gammad:Oz,gap:$z,Gbreve:Dz,gbreve:Rz,Gcedil:zz,Gcirc:Iz,gcirc:Fz,Gcy:qz,gcy:Hz,Gdot:Bz,gdot:Wz,ge:Uz,gE:jz,gEl:Vz,gel:Gz,geq:Kz,geqq:Xz,geqslant:Yz,gescc:Zz,ges:Jz,gesdot:Qz,gesdoto:tI,gesdotol:eI,gesl:nI,gesles:rI,Gfr:iI,gfr:oI,gg:sI,Gg:aI,ggg:lI,gimel:cI,GJcy:uI,gjcy:fI,gla:hI,gl:dI,glE:pI,glj:gI,gnap:vI,gnapprox:mI,gne:yI,gnE:bI,gneq:wI,gneqq:xI,gnsim:_I,Gopf:SI,gopf:kI,grave:CI,GreaterEqual:TI,GreaterEqualLess:EI,GreaterFullEqual:LI,GreaterGreater:AI,GreaterLess:MI,GreaterSlantEqual:NI,GreaterTilde:PI,Gscr:OI,gscr:$I,gsim:DI,gsime:RI,gsiml:zI,gtcc:II,gtcir:FI,gt:qI,GT:HI,Gt:BI,gtdot:WI,gtlPar:UI,gtquest:jI,gtrapprox:VI,gtrarr:GI,gtrdot:KI,gtreqless:XI,gtreqqless:YI,gtrless:ZI,gtrsim:JI,gvertneqq:QI,gvnE:tF,Hacek:eF,hairsp:nF,half:rF,hamilt:iF,HARDcy:oF,hardcy:sF,harrcir:aF,harr:lF,hArr:cF,harrw:uF,Hat:fF,hbar:hF,Hcirc:dF,hcirc:pF,hearts:gF,heartsuit:vF,hellip:mF,hercon:yF,hfr:bF,Hfr:wF,HilbertSpace:xF,hksearow:_F,hkswarow:SF,hoarr:kF,homtht:CF,hookleftarrow:TF,hookrightarrow:EF,hopf:LF,Hopf:AF,horbar:MF,HorizontalLine:NF,hscr:PF,Hscr:OF,hslash:$F,Hstrok:DF,hstrok:RF,HumpDownHump:zF,HumpEqual:IF,hybull:FF,hyphen:qF,Iacute:HF,iacute:BF,ic:WF,Icirc:UF,icirc:jF,Icy:VF,icy:GF,Idot:KF,IEcy:XF,iecy:YF,iexcl:ZF,iff:JF,ifr:QF,Ifr:tq,Igrave:eq,igrave:nq,ii:rq,iiiint:iq,iiint:oq,iinfin:sq,iiota:aq,IJlig:lq,ijlig:cq,Imacr:uq,imacr:fq,image:hq,ImaginaryI:dq,imagline:pq,imagpart:gq,imath:vq,Im:mq,imof:yq,imped:bq,Implies:wq,incare:xq,in:"∈",infin:_q,infintie:Sq,inodot:kq,intcal:Cq,int:Tq,Int:Eq,integers:Lq,Integral:Aq,intercal:Mq,Intersection:Nq,intlarhk:Pq,intprod:Oq,InvisibleComma:$q,InvisibleTimes:Dq,IOcy:Rq,iocy:zq,Iogon:Iq,iogon:Fq,Iopf:qq,iopf:Hq,Iota:Bq,iota:Wq,iprod:Uq,iquest:jq,iscr:Vq,Iscr:Gq,isin:Kq,isindot:Xq,isinE:Yq,isins:Zq,isinsv:Jq,isinv:Qq,it:tH,Itilde:eH,itilde:nH,Iukcy:rH,iukcy:iH,Iuml:oH,iuml:sH,Jcirc:aH,jcirc:lH,Jcy:cH,jcy:uH,Jfr:fH,jfr:hH,jmath:dH,Jopf:pH,jopf:gH,Jscr:vH,jscr:mH,Jsercy:yH,jsercy:bH,Jukcy:wH,jukcy:xH,Kappa:_H,kappa:SH,kappav:kH,Kcedil:CH,kcedil:TH,Kcy:EH,kcy:LH,Kfr:AH,kfr:MH,kgreen:NH,KHcy:PH,khcy:OH,KJcy:$H,kjcy:DH,Kopf:RH,kopf:zH,Kscr:IH,kscr:FH,lAarr:qH,Lacute:HH,lacute:BH,laemptyv:WH,lagran:UH,Lambda:jH,lambda:VH,lang:GH,Lang:KH,langd:XH,langle:YH,lap:ZH,Laplacetrf:JH,laquo:QH,larrb:tB,larrbfs:eB,larr:nB,Larr:rB,lArr:iB,larrfs:oB,larrhk:sB,larrlp:aB,larrpl:lB,larrsim:cB,larrtl:uB,latail:fB,lAtail:hB,lat:dB,late:pB,lates:gB,lbarr:vB,lBarr:mB,lbbrk:yB,lbrace:bB,lbrack:wB,lbrke:xB,lbrksld:_B,lbrkslu:SB,Lcaron:kB,lcaron:CB,Lcedil:TB,lcedil:EB,lceil:LB,lcub:AB,Lcy:MB,lcy:NB,ldca:PB,ldquo:OB,ldquor:$B,ldrdhar:DB,ldrushar:RB,ldsh:zB,le:IB,lE:FB,LeftAngleBracket:qB,LeftArrowBar:HB,leftarrow:BB,LeftArrow:WB,Leftarrow:UB,LeftArrowRightArrow:jB,leftarrowtail:VB,LeftCeiling:GB,LeftDoubleBracket:KB,LeftDownTeeVector:XB,LeftDownVectorBar:YB,LeftDownVector:ZB,LeftFloor:JB,leftharpoondown:QB,leftharpoonup:t3,leftleftarrows:e3,leftrightarrow:n3,LeftRightArrow:r3,Leftrightarrow:i3,leftrightarrows:o3,leftrightharpoons:s3,leftrightsquigarrow:a3,LeftRightVector:l3,LeftTeeArrow:c3,LeftTee:u3,LeftTeeVector:f3,leftthreetimes:h3,LeftTriangleBar:d3,LeftTriangle:p3,LeftTriangleEqual:g3,LeftUpDownVector:v3,LeftUpTeeVector:m3,LeftUpVectorBar:y3,LeftUpVector:b3,LeftVectorBar:w3,LeftVector:x3,lEg:_3,leg:S3,leq:k3,leqq:C3,leqslant:T3,lescc:E3,les:L3,lesdot:A3,lesdoto:M3,lesdotor:N3,lesg:P3,lesges:O3,lessapprox:$3,lessdot:D3,lesseqgtr:R3,lesseqqgtr:z3,LessEqualGreater:I3,LessFullEqual:F3,LessGreater:q3,lessgtr:H3,LessLess:B3,lesssim:W3,LessSlantEqual:U3,LessTilde:j3,lfisht:V3,lfloor:G3,Lfr:K3,lfr:X3,lg:Y3,lgE:Z3,lHar:J3,lhard:Q3,lharu:t5,lharul:e5,lhblk:n5,LJcy:r5,ljcy:i5,llarr:o5,ll:s5,Ll:a5,llcorner:l5,Lleftarrow:c5,llhard:u5,lltri:f5,Lmidot:h5,lmidot:d5,lmoustache:p5,lmoust:g5,lnap:v5,lnapprox:m5,lne:y5,lnE:b5,lneq:w5,lneqq:x5,lnsim:_5,loang:S5,loarr:k5,lobrk:C5,longleftarrow:T5,LongLeftArrow:E5,Longleftarrow:L5,longleftrightarrow:A5,LongLeftRightArrow:M5,Longleftrightarrow:N5,longmapsto:P5,longrightarrow:O5,LongRightArrow:$5,Longrightarrow:D5,looparrowleft:R5,looparrowright:z5,lopar:I5,Lopf:F5,lopf:q5,loplus:H5,lotimes:B5,lowast:W5,lowbar:U5,LowerLeftArrow:j5,LowerRightArrow:V5,loz:G5,lozenge:K5,lozf:X5,lpar:Y5,lparlt:Z5,lrarr:J5,lrcorner:Q5,lrhar:t8,lrhard:e8,lrm:n8,lrtri:r8,lsaquo:i8,lscr:o8,Lscr:s8,lsh:a8,Lsh:l8,lsim:c8,lsime:u8,lsimg:f8,lsqb:h8,lsquo:d8,lsquor:p8,Lstrok:g8,lstrok:v8,ltcc:m8,ltcir:y8,lt:b8,LT:w8,Lt:x8,ltdot:_8,lthree:S8,ltimes:k8,ltlarr:C8,ltquest:T8,ltri:E8,ltrie:L8,ltrif:A8,ltrPar:M8,lurdshar:N8,luruhar:P8,lvertneqq:O8,lvnE:$8,macr:D8,male:R8,malt:z8,maltese:I8,Map:"⤅",map:F8,mapsto:q8,mapstodown:H8,mapstoleft:B8,mapstoup:W8,marker:U8,mcomma:j8,Mcy:V8,mcy:G8,mdash:K8,mDDot:X8,measuredangle:Y8,MediumSpace:Z8,Mellintrf:J8,Mfr:Q8,mfr:tW,mho:eW,micro:nW,midast:rW,midcir:iW,mid:oW,middot:sW,minusb:aW,minus:lW,minusd:cW,minusdu:uW,MinusPlus:fW,mlcp:hW,mldr:dW,mnplus:pW,models:gW,Mopf:vW,mopf:mW,mp:yW,mscr:bW,Mscr:wW,mstpos:xW,Mu:_W,mu:SW,multimap:kW,mumap:CW,nabla:TW,Nacute:EW,nacute:LW,nang:AW,nap:MW,napE:NW,napid:PW,napos:OW,napprox:$W,natural:DW,naturals:RW,natur:zW,nbsp:IW,nbump:FW,nbumpe:qW,ncap:HW,Ncaron:BW,ncaron:WW,Ncedil:UW,ncedil:jW,ncong:VW,ncongdot:GW,ncup:KW,Ncy:XW,ncy:YW,ndash:ZW,nearhk:JW,nearr:QW,neArr:tU,nearrow:eU,ne:nU,nedot:rU,NegativeMediumSpace:iU,NegativeThickSpace:oU,NegativeThinSpace:sU,NegativeVeryThinSpace:aU,nequiv:lU,nesear:cU,nesim:uU,NestedGreaterGreater:fU,NestedLessLess:hU,NewLine:dU,nexist:pU,nexists:gU,Nfr:vU,nfr:mU,ngE:yU,nge:bU,ngeq:wU,ngeqq:xU,ngeqslant:_U,nges:SU,nGg:kU,ngsim:CU,nGt:TU,ngt:EU,ngtr:LU,nGtv:AU,nharr:MU,nhArr:NU,nhpar:PU,ni:OU,nis:$U,nisd:DU,niv:RU,NJcy:zU,njcy:IU,nlarr:FU,nlArr:qU,nldr:HU,nlE:BU,nle:WU,nleftarrow:UU,nLeftarrow:jU,nleftrightarrow:VU,nLeftrightarrow:GU,nleq:KU,nleqq:XU,nleqslant:YU,nles:ZU,nless:JU,nLl:QU,nlsim:t4,nLt:e4,nlt:n4,nltri:r4,nltrie:i4,nLtv:o4,nmid:s4,NoBreak:a4,NonBreakingSpace:l4,nopf:c4,Nopf:u4,Not:f4,not:h4,NotCongruent:d4,NotCupCap:p4,NotDoubleVerticalBar:g4,NotElement:v4,NotEqual:m4,NotEqualTilde:y4,NotExists:b4,NotGreater:w4,NotGreaterEqual:x4,NotGreaterFullEqual:_4,NotGreaterGreater:S4,NotGreaterLess:k4,NotGreaterSlantEqual:C4,NotGreaterTilde:T4,NotHumpDownHump:E4,NotHumpEqual:L4,notin:A4,notindot:M4,notinE:N4,notinva:P4,notinvb:O4,notinvc:$4,NotLeftTriangleBar:D4,NotLeftTriangle:R4,NotLeftTriangleEqual:z4,NotLess:I4,NotLessEqual:F4,NotLessGreater:q4,NotLessLess:H4,NotLessSlantEqual:B4,NotLessTilde:W4,NotNestedGreaterGreater:U4,NotNestedLessLess:j4,notni:V4,notniva:G4,notnivb:K4,notnivc:X4,NotPrecedes:Y4,NotPrecedesEqual:Z4,NotPrecedesSlantEqual:J4,NotReverseElement:Q4,NotRightTriangleBar:t6,NotRightTriangle:e6,NotRightTriangleEqual:n6,NotSquareSubset:r6,NotSquareSubsetEqual:i6,NotSquareSuperset:o6,NotSquareSupersetEqual:s6,NotSubset:a6,NotSubsetEqual:l6,NotSucceeds:c6,NotSucceedsEqual:u6,NotSucceedsSlantEqual:f6,NotSucceedsTilde:h6,NotSuperset:d6,NotSupersetEqual:p6,NotTilde:g6,NotTildeEqual:v6,NotTildeFullEqual:m6,NotTildeTilde:y6,NotVerticalBar:b6,nparallel:w6,npar:x6,nparsl:_6,npart:S6,npolint:k6,npr:C6,nprcue:T6,nprec:E6,npreceq:L6,npre:A6,nrarrc:M6,nrarr:N6,nrArr:P6,nrarrw:O6,nrightarrow:$6,nRightarrow:D6,nrtri:R6,nrtrie:z6,nsc:I6,nsccue:F6,nsce:q6,Nscr:H6,nscr:B6,nshortmid:W6,nshortparallel:U6,nsim:j6,nsime:V6,nsimeq:G6,nsmid:K6,nspar:X6,nsqsube:Y6,nsqsupe:Z6,nsub:J6,nsubE:Q6,nsube:tj,nsubset:ej,nsubseteq:nj,nsubseteqq:rj,nsucc:ij,nsucceq:oj,nsup:sj,nsupE:aj,nsupe:lj,nsupset:cj,nsupseteq:uj,nsupseteqq:fj,ntgl:hj,Ntilde:dj,ntilde:pj,ntlg:gj,ntriangleleft:vj,ntrianglelefteq:mj,ntriangleright:yj,ntrianglerighteq:bj,Nu:wj,nu:xj,num:_j,numero:Sj,numsp:kj,nvap:Cj,nvdash:Tj,nvDash:Ej,nVdash:Lj,nVDash:Aj,nvge:Mj,nvgt:Nj,nvHarr:Pj,nvinfin:Oj,nvlArr:$j,nvle:Dj,nvlt:Rj,nvltrie:zj,nvrArr:Ij,nvrtrie:Fj,nvsim:qj,nwarhk:Hj,nwarr:Bj,nwArr:Wj,nwarrow:Uj,nwnear:jj,Oacute:Vj,oacute:Gj,oast:Kj,Ocirc:Xj,ocirc:Yj,ocir:Zj,Ocy:Jj,ocy:Qj,odash:t9,Odblac:e9,odblac:n9,odiv:r9,odot:i9,odsold:o9,OElig:s9,oelig:a9,ofcir:l9,Ofr:c9,ofr:u9,ogon:f9,Ograve:h9,ograve:d9,ogt:p9,ohbar:g9,ohm:v9,oint:m9,olarr:y9,olcir:b9,olcross:w9,oline:x9,olt:_9,Omacr:S9,omacr:k9,Omega:C9,omega:T9,Omicron:E9,omicron:L9,omid:A9,ominus:M9,Oopf:N9,oopf:P9,opar:O9,OpenCurlyDoubleQuote:$9,OpenCurlyQuote:D9,operp:R9,oplus:z9,orarr:I9,Or:F9,or:q9,ord:H9,order:B9,orderof:W9,ordf:U9,ordm:j9,origof:V9,oror:G9,orslope:K9,orv:X9,oS:Y9,Oscr:Z9,oscr:J9,Oslash:Q9,oslash:tV,osol:eV,Otilde:nV,otilde:rV,otimesas:iV,Otimes:oV,otimes:sV,Ouml:aV,ouml:lV,ovbar:cV,OverBar:uV,OverBrace:fV,OverBracket:hV,OverParenthesis:dV,para:pV,parallel:gV,par:vV,parsim:mV,parsl:yV,part:bV,PartialD:wV,Pcy:xV,pcy:_V,percnt:SV,period:kV,permil:CV,perp:TV,pertenk:EV,Pfr:LV,pfr:AV,Phi:MV,phi:NV,phiv:PV,phmmat:OV,phone:$V,Pi:DV,pi:RV,pitchfork:zV,piv:IV,planck:FV,planckh:qV,plankv:HV,plusacir:BV,plusb:WV,pluscir:UV,plus:jV,plusdo:VV,plusdu:GV,pluse:KV,PlusMinus:XV,plusmn:YV,plussim:ZV,plustwo:JV,pm:QV,Poincareplane:tG,pointint:eG,popf:nG,Popf:rG,pound:iG,prap:oG,Pr:sG,pr:aG,prcue:lG,precapprox:cG,prec:uG,preccurlyeq:fG,Precedes:hG,PrecedesEqual:dG,PrecedesSlantEqual:pG,PrecedesTilde:gG,preceq:vG,precnapprox:mG,precneqq:yG,precnsim:bG,pre:wG,prE:xG,precsim:_G,prime:SG,Prime:kG,primes:CG,prnap:TG,prnE:EG,prnsim:LG,prod:AG,Product:MG,profalar:NG,profline:PG,profsurf:OG,prop:$G,Proportional:DG,Proportion:RG,propto:zG,prsim:IG,prurel:FG,Pscr:qG,pscr:HG,Psi:BG,psi:WG,puncsp:UG,Qfr:jG,qfr:VG,qint:GG,qopf:KG,Qopf:XG,qprime:YG,Qscr:ZG,qscr:JG,quaternions:QG,quatint:t7,quest:e7,questeq:n7,quot:r7,QUOT:i7,rAarr:o7,race:s7,Racute:a7,racute:l7,radic:c7,raemptyv:u7,rang:f7,Rang:h7,rangd:d7,range:p7,rangle:g7,raquo:v7,rarrap:m7,rarrb:y7,rarrbfs:b7,rarrc:w7,rarr:x7,Rarr:_7,rArr:S7,rarrfs:k7,rarrhk:C7,rarrlp:T7,rarrpl:E7,rarrsim:L7,Rarrtl:A7,rarrtl:M7,rarrw:N7,ratail:P7,rAtail:O7,ratio:$7,rationals:D7,rbarr:R7,rBarr:z7,RBarr:I7,rbbrk:F7,rbrace:q7,rbrack:H7,rbrke:B7,rbrksld:W7,rbrkslu:U7,Rcaron:j7,rcaron:V7,Rcedil:G7,rcedil:K7,rceil:X7,rcub:Y7,Rcy:Z7,rcy:J7,rdca:Q7,rdldhar:tK,rdquo:eK,rdquor:nK,rdsh:rK,real:iK,realine:oK,realpart:sK,reals:aK,Re:lK,rect:cK,reg:uK,REG:fK,ReverseElement:hK,ReverseEquilibrium:dK,ReverseUpEquilibrium:pK,rfisht:gK,rfloor:vK,rfr:mK,Rfr:yK,rHar:bK,rhard:wK,rharu:xK,rharul:_K,Rho:SK,rho:kK,rhov:CK,RightAngleBracket:TK,RightArrowBar:EK,rightarrow:LK,RightArrow:AK,Rightarrow:MK,RightArrowLeftArrow:NK,rightarrowtail:PK,RightCeiling:OK,RightDoubleBracket:$K,RightDownTeeVector:DK,RightDownVectorBar:RK,RightDownVector:zK,RightFloor:IK,rightharpoondown:FK,rightharpoonup:qK,rightleftarrows:HK,rightleftharpoons:BK,rightrightarrows:WK,rightsquigarrow:UK,RightTeeArrow:jK,RightTee:VK,RightTeeVector:GK,rightthreetimes:KK,RightTriangleBar:XK,RightTriangle:YK,RightTriangleEqual:ZK,RightUpDownVector:JK,RightUpTeeVector:QK,RightUpVectorBar:tX,RightUpVector:eX,RightVectorBar:nX,RightVector:rX,ring:iX,risingdotseq:oX,rlarr:sX,rlhar:aX,rlm:lX,rmoustache:cX,rmoust:uX,rnmid:fX,roang:hX,roarr:dX,robrk:pX,ropar:gX,ropf:vX,Ropf:mX,roplus:yX,rotimes:bX,RoundImplies:wX,rpar:xX,rpargt:_X,rppolint:SX,rrarr:kX,Rrightarrow:CX,rsaquo:TX,rscr:EX,Rscr:LX,rsh:AX,Rsh:MX,rsqb:NX,rsquo:PX,rsquor:OX,rthree:$X,rtimes:DX,rtri:RX,rtrie:zX,rtrif:IX,rtriltri:FX,RuleDelayed:qX,ruluhar:HX,rx:BX,Sacute:WX,sacute:UX,sbquo:jX,scap:VX,Scaron:GX,scaron:KX,Sc:XX,sc:YX,sccue:ZX,sce:JX,scE:QX,Scedil:tY,scedil:eY,Scirc:nY,scirc:rY,scnap:iY,scnE:oY,scnsim:sY,scpolint:aY,scsim:lY,Scy:cY,scy:uY,sdotb:fY,sdot:hY,sdote:dY,searhk:pY,searr:gY,seArr:vY,searrow:mY,sect:yY,semi:bY,seswar:wY,setminus:xY,setmn:_Y,sext:SY,Sfr:kY,sfr:CY,sfrown:TY,sharp:EY,SHCHcy:LY,shchcy:AY,SHcy:MY,shcy:NY,ShortDownArrow:PY,ShortLeftArrow:OY,shortmid:$Y,shortparallel:DY,ShortRightArrow:RY,ShortUpArrow:zY,shy:IY,Sigma:FY,sigma:qY,sigmaf:HY,sigmav:BY,sim:WY,simdot:UY,sime:jY,simeq:VY,simg:GY,simgE:KY,siml:XY,simlE:YY,simne:ZY,simplus:JY,simrarr:QY,slarr:tZ,SmallCircle:eZ,smallsetminus:nZ,smashp:rZ,smeparsl:iZ,smid:oZ,smile:sZ,smt:aZ,smte:lZ,smtes:cZ,SOFTcy:uZ,softcy:fZ,solbar:hZ,solb:dZ,sol:pZ,Sopf:gZ,sopf:vZ,spades:mZ,spadesuit:yZ,spar:bZ,sqcap:wZ,sqcaps:xZ,sqcup:_Z,sqcups:SZ,Sqrt:kZ,sqsub:CZ,sqsube:TZ,sqsubset:EZ,sqsubseteq:LZ,sqsup:AZ,sqsupe:MZ,sqsupset:NZ,sqsupseteq:PZ,square:OZ,Square:$Z,SquareIntersection:DZ,SquareSubset:RZ,SquareSubsetEqual:zZ,SquareSuperset:IZ,SquareSupersetEqual:FZ,SquareUnion:qZ,squarf:HZ,squ:BZ,squf:WZ,srarr:UZ,Sscr:jZ,sscr:VZ,ssetmn:GZ,ssmile:KZ,sstarf:XZ,Star:YZ,star:ZZ,starf:JZ,straightepsilon:QZ,straightphi:tJ,strns:eJ,sub:nJ,Sub:rJ,subdot:iJ,subE:oJ,sube:sJ,subedot:aJ,submult:lJ,subnE:cJ,subne:uJ,subplus:fJ,subrarr:hJ,subset:dJ,Subset:pJ,subseteq:gJ,subseteqq:vJ,SubsetEqual:mJ,subsetneq:yJ,subsetneqq:bJ,subsim:wJ,subsub:xJ,subsup:_J,succapprox:SJ,succ:kJ,succcurlyeq:CJ,Succeeds:TJ,SucceedsEqual:EJ,SucceedsSlantEqual:LJ,SucceedsTilde:AJ,succeq:MJ,succnapprox:NJ,succneqq:PJ,succnsim:OJ,succsim:$J,SuchThat:DJ,sum:RJ,Sum:zJ,sung:IJ,sup1:FJ,sup2:qJ,sup3:HJ,sup:BJ,Sup:WJ,supdot:UJ,supdsub:jJ,supE:VJ,supe:GJ,supedot:KJ,Superset:XJ,SupersetEqual:YJ,suphsol:ZJ,suphsub:JJ,suplarr:QJ,supmult:tQ,supnE:eQ,supne:nQ,supplus:rQ,supset:iQ,Supset:oQ,supseteq:sQ,supseteqq:aQ,supsetneq:lQ,supsetneqq:cQ,supsim:uQ,supsub:fQ,supsup:hQ,swarhk:dQ,swarr:pQ,swArr:gQ,swarrow:vQ,swnwar:mQ,szlig:yQ,Tab:bQ,target:wQ,Tau:xQ,tau:_Q,tbrk:SQ,Tcaron:kQ,tcaron:CQ,Tcedil:TQ,tcedil:EQ,Tcy:LQ,tcy:AQ,tdot:MQ,telrec:NQ,Tfr:PQ,tfr:OQ,there4:$Q,therefore:DQ,Therefore:RQ,Theta:zQ,theta:IQ,thetasym:FQ,thetav:qQ,thickapprox:HQ,thicksim:BQ,ThickSpace:WQ,ThinSpace:UQ,thinsp:jQ,thkap:VQ,thksim:GQ,THORN:KQ,thorn:XQ,tilde:YQ,Tilde:ZQ,TildeEqual:JQ,TildeFullEqual:QQ,TildeTilde:ttt,timesbar:ett,timesb:ntt,times:rtt,timesd:itt,tint:ott,toea:stt,topbot:att,topcir:ltt,top:ctt,Topf:utt,topf:ftt,topfork:htt,tosa:dtt,tprime:ptt,trade:gtt,TRADE:vtt,triangle:mtt,triangledown:ytt,triangleleft:btt,trianglelefteq:wtt,triangleq:xtt,triangleright:_tt,trianglerighteq:Stt,tridot:ktt,trie:Ctt,triminus:Ttt,TripleDot:Ett,triplus:Ltt,trisb:Att,tritime:Mtt,trpezium:Ntt,Tscr:Ptt,tscr:Ott,TScy:$tt,tscy:Dtt,TSHcy:Rtt,tshcy:ztt,Tstrok:Itt,tstrok:Ftt,twixt:qtt,twoheadleftarrow:Htt,twoheadrightarrow:Btt,Uacute:Wtt,uacute:Utt,uarr:jtt,Uarr:Vtt,uArr:Gtt,Uarrocir:Ktt,Ubrcy:Xtt,ubrcy:Ytt,Ubreve:Ztt,ubreve:Jtt,Ucirc:Qtt,ucirc:tet,Ucy:eet,ucy:net,udarr:ret,Udblac:iet,udblac:oet,udhar:set,ufisht:aet,Ufr:cet,ufr:uet,Ugrave:fet,ugrave:het,uHar:det,uharl:pet,uharr:get,uhblk:vet,ulcorn:met,ulcorner:yet,ulcrop:bet,ultri:wet,Umacr:xet,umacr:_et,uml:ket,UnderBar:Cet,UnderBrace:Tet,UnderBracket:Eet,UnderParenthesis:Let,Union:Aet,UnionPlus:Met,Uogon:Net,uogon:Pet,Uopf:Oet,uopf:$et,UpArrowBar:Det,uparrow:Ret,UpArrow:zet,Uparrow:Iet,UpArrowDownArrow:Fet,updownarrow:qet,UpDownArrow:Het,Updownarrow:Bet,UpEquilibrium:Wet,upharpoonleft:Uet,upharpoonright:jet,uplus:Vet,UpperLeftArrow:Get,UpperRightArrow:Ket,upsi:Xet,Upsi:Yet,upsih:Zet,Upsilon:Jet,upsilon:Qet,UpTeeArrow:tnt,UpTee:ent,upuparrows:nnt,urcorn:rnt,urcorner:int,urcrop:ont,Uring:snt,uring:ant,urtri:lnt,Uscr:cnt,uscr:unt,utdot:fnt,Utilde:hnt,utilde:dnt,utri:pnt,utrif:gnt,uuarr:vnt,Uuml:mnt,uuml:ynt,uwangle:bnt,vangrt:wnt,varepsilon:xnt,varkappa:_nt,varnothing:Snt,varphi:knt,varpi:Cnt,varpropto:Tnt,varr:Ent,vArr:Lnt,varrho:Ant,varsigma:Mnt,varsubsetneq:Nnt,varsubsetneqq:Pnt,varsupsetneq:Ont,varsupsetneqq:$nt,vartheta:Dnt,vartriangleleft:Rnt,vartriangleright:znt,vBar:Int,Vbar:Fnt,vBarv:qnt,Vcy:Hnt,vcy:Bnt,vdash:Wnt,vDash:Unt,Vdash:jnt,VDash:Vnt,Vdashl:Gnt,veebar:Knt,vee:Xnt,Vee:Ynt,veeeq:Znt,vellip:Jnt,verbar:Qnt,Verbar:trt,vert:ert,Vert:nrt,VerticalBar:rrt,VerticalLine:irt,VerticalSeparator:ort,VerticalTilde:srt,VeryThinSpace:art,Vfr:lrt,vfr:crt,vltri:urt,vnsub:frt,vnsup:hrt,Vopf:drt,vopf:prt,vprop:grt,vrtri:vrt,Vscr:mrt,vscr:yrt,vsubnE:brt,vsubne:wrt,vsupnE:xrt,vsupne:_rt,Vvdash:Srt,vzigzag:krt,Wcirc:Crt,wcirc:Trt,wedbar:Ert,wedge:Lrt,Wedge:Art,wedgeq:Mrt,weierp:Nrt,Wfr:Prt,wfr:Ort,Wopf:$rt,wopf:Drt,wp:Rrt,wr:zrt,wreath:Irt,Wscr:Frt,wscr:qrt,xcap:Hrt,xcirc:Brt,xcup:Wrt,xdtri:Urt,Xfr:jrt,xfr:Vrt,xharr:Grt,xhArr:Krt,Xi:Xrt,xi:Yrt,xlarr:Zrt,xlArr:Jrt,xmap:Qrt,xnis:tit,xodot:eit,Xopf:nit,xopf:rit,xoplus:iit,xotime:oit,xrarr:sit,xrArr:ait,Xscr:lit,xscr:cit,xsqcup:uit,xuplus:fit,xutri:hit,xvee:dit,xwedge:pit,Yacute:git,yacute:vit,YAcy:mit,yacy:yit,Ycirc:bit,ycirc:wit,Ycy:xit,ycy:_it,yen:Sit,Yfr:kit,yfr:Cit,YIcy:Tit,yicy:Eit,Yopf:Lit,yopf:Ait,Yscr:Mit,yscr:Nit,YUcy:Pit,yucy:Oit,yuml:$it,Yuml:Dit,Zacute:Rit,zacute:zit,Zcaron:Iit,zcaron:Fit,Zcy:qit,zcy:Hit,Zdot:Bit,zdot:Wit,zeetrf:Uit,ZeroWidthSpace:jit,Zeta:Vit,zeta:Git,zfr:Kit,Zfr:Xit,ZHcy:Yit,zhcy:Zit,zigrarr:Jit,zopf:Qit,Zopf:tot,Zscr:eot,zscr:not,zwj:rot,zwnj:iot},oot="Á",sot="á",aot="Â",lot="â",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="é",$ot="Ê",Dot="ê",Rot="È",zot="è",Iot="Ð",Fot="ð",qot="Ë",Hot="ë",Bot="½",Wot="¼",Uot="¾",jot=">",Vot=">",Got="Í",Kot="í",Xot="Î",Yot="î",Zot="¡",Jot="Ì",Qot="ì",tst="¿",est="Ï",nst="ï",rst="«",ist="<",ost="<",sst="¯",ast="µ",lst="·",cst=" ",ust="¬",fst="Ñ",hst="ñ",dst="Ó",pst="ó",gst="Ô",vst="ô",mst="Ò",yst="ò",bst="ª",wst="º",xst="Ø",_st="ø",Sst="Õ",kst="õ",Cst="Ö",Tst="ö",Est="¶",Lst="±",Ast="£",Mst='"',Nst='"',Pst="»",Ost="®",$st="®",Dst="§",Rst="­",zst="¹",Ist="²",Fst="³",qst="ß",Hst="Þ",Bst="þ",Wst="×",Ust="Ú",jst="ú",Vst="Û",Gst="û",Kst="Ù",Xst="ù",Yst="¨",Zst="Ü",Jst="ü",Qst="Ý",tat="ý",eat="¥",nat="ÿ",rat={Aacute:oot,aacute:sot,Acirc:aot,acirc:lot,acute:cot,AElig:uot,aelig:fot,Agrave:hot,agrave:dot,amp:pot,AMP:got,Aring:vot,aring:mot,Atilde:yot,atilde:bot,Auml:wot,auml:xot,brvbar:_ot,Ccedil:Sot,ccedil:kot,cedil:Cot,cent:Tot,copy:Eot,COPY:Lot,curren:Aot,deg:Mot,divide:Not,Eacute:Pot,eacute:Oot,Ecirc:$ot,ecirc:Dot,Egrave:Rot,egrave:zot,ETH:Iot,eth:Fot,Euml:qot,euml:Hot,frac12:Bot,frac14:Wot,frac34:Uot,gt:jot,GT:Vot,Iacute:Got,iacute:Kot,Icirc:Xot,icirc:Yot,iexcl:Zot,Igrave:Jot,igrave:Qot,iquest:tst,Iuml:est,iuml:nst,laquo:rst,lt:ist,LT:ost,macr:sst,micro:ast,middot:lst,nbsp:cst,not:ust,Ntilde:fst,ntilde:hst,Oacute:dst,oacute:pst,Ocirc:gst,ocirc:vst,Ograve:mst,ograve:yst,ordf:bst,ordm:wst,Oslash:xst,oslash:_st,Otilde:Sst,otilde:kst,Ouml:Cst,ouml:Tst,para:Est,plusmn:Lst,pound:Ast,quot:Mst,QUOT:Nst,raquo:Pst,reg:Ost,REG:$st,sect:Dst,shy:Rst,sup1:zst,sup2:Ist,sup3:Fst,szlig:qst,THORN:Hst,thorn:Bst,times:Wst,Uacute:Ust,uacute:jst,Ucirc:Vst,ucirc:Gst,Ugrave:Kst,ugrave:Xst,uml:Yst,Uuml:Zst,uuml:Jst,Yacute:Qst,yacute:tat,yen:eat,yuml:nat},iat="&",oat="'",sat=">",aat="<",lat='"',Ey={amp:iat,apos:oat,gt:sat,lt:aat,quot:lat};var Ph={};const cat={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 uat=to&&to.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ph,"__esModule",{value:!0});var Tv=uat(cat),fat=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function hat(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Tv.default&&(t=Tv.default[t]),fat(t))}Ph.default=hat;var Oc=to&&to.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.decodeHTML=Fr.decodeHTMLStrict=Fr.decodeXML=void 0;var $f=Oc(Ty),dat=Oc(rat),pat=Oc(Ey),Ev=Oc(Ph),gat=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Fr.decodeXML=Ly(pat.default);Fr.decodeHTMLStrict=Ly($f.default);function Ly(t){var e=Ay(t);return function(r){return String(r).replace(gat,e)}}var Lv=function(t,e){return t<e?1:-1};Fr.decodeHTML=function(){for(var t=Object.keys(dat.default).sort(Lv),e=Object.keys($f.default).sort(Lv),r=0,o=0;r<e.length;r++)t[o]===e[r]?(e[r]+=";?",o++):e[r]+=";";var l=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=Ay($f.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(l,f)}}();function Ay(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Ev.default(parseInt(r.substr(3),16)):Ev.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Dn={},My=to&&to.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.escapeUTF8=Dn.escape=Dn.encodeNonAsciiHTML=Dn.encodeHTML=Dn.encodeXML=void 0;var vat=My(Ey),Ny=Oy(vat.default),Py=$y(Ny);Dn.encodeXML=zy(Ny);var mat=My(Ty),Oh=Oy(mat.default),yat=$y(Oh);Dn.encodeHTML=wat(Oh,yat);Dn.encodeNonAsciiHTML=zy(Oh);function Oy(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function $y(t){for(var e=[],r=[],o=0,l=Object.keys(t);o<l.length;o++){var u=l[o];u.length===1?e.push("\\"+u):r.push(u)}e.sort();for(var f=0;f<e.length-1;f++){for(var h=f;h<e.length-1&&e[h].charCodeAt(1)+1===e[h+1].charCodeAt(1);)h+=1;var d=1+h-f;d<3||e.splice(f,d,e[f]+"-"+e[h])}return r.unshift("["+e.join("")+"]"),new RegExp(r.join("|"),"g")}var Dy=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,bat=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function $c(t){return"&#x"+(t.length>1?bat(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function wat(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(Dy,$c)}}var Ry=new RegExp(Py.source+"|"+Dy.source,"g");function xat(t){return t.replace(Ry,$c)}Dn.escape=xat;function _at(t){return t.replace(Py,$c)}Dn.escapeUTF8=_at;function zy(t){return function(e){return e.replace(Ry,function(r){return t[r]||$c(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 e=Fr,r=Dn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function l(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=l;function u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=u;var f=Dn;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=Fr;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}})})(Cy);function Sat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Av(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function kat(t,e,r){return e&&Av(t.prototype,e),r&&Av(t,r),t}function Iy(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Cat(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var o=0,l=function(){};return{s:l,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:l}}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 Cat(t,e){if(t){if(typeof t=="string")return Mv(t,e);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 Mv(t,e)}}function Mv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var Tat=Cy,Nv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Eat()};function Eat(){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 xl(0,5).forEach(function(e){xl(0,5).forEach(function(r){xl(0,5).forEach(function(o){return Lat(e,r,o,t)})})}),xl(0,23).forEach(function(e){var r=e+232,o=Fy(e*10+8);t[r]="#"+o+o+o}),t}function Lat(t,e,r,o){var l=16+t*36+e*6+r,u=t>0?t*40+55:0,f=e>0?e*40+55:0,h=r>0?r*40+55:0;o[l]=Aat([u,f,h])}function Fy(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function Aat(t){var e=[],r=Iy(t),o;try{for(r.s();!(o=r.n()).done;){var l=o.value;e.push(Fy(l))}}catch(u){r.e(u)}finally{r.f()}return"#"+e.join("")}function Pv(t,e,r,o){var l;return e==="text"?l=Oat(r,o):e==="display"?l=Nat(t,r,o):e==="xterm256Foreground"?l=$l(t,o.colors[r]):e==="xterm256Background"?l=Dl(t,o.colors[r]):e==="rgb"&&(l=Mat(t,r)),l}function Mat(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),l=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return Ol(t,(r===38?"color:#":"background-color:#")+l)}function Nat(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&qy(t)},1:function(){return mi(t,"b")},3:function(){return mi(t,"i")},4:function(){return mi(t,"u")},8:function(){return Ol(t,"display:none")},9:function(){return mi(t,"strike")},22:function(){return Ol(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return $v(t,"i")},24:function(){return $v(t,"u")},39:function(){return $l(t,r.fg)},49:function(){return Dl(t,r.bg)},53:function(){return Ol(t,"text-decoration:overline")}},l;return o[e]?l=o[e]():4<e&&e<7?l=mi(t,"blink"):29<e&&e<38?l=$l(t,r.colors[e-30]):39<e&&e<48?l=Dl(t,r.colors[e-40]):89<e&&e<98?l=$l(t,r.colors[8+(e-90)]):99<e&&e<108&&(l=Dl(t,r.colors[8+(e-100)])),l}function qy(t){var e=t.slice(0);return t.length=0,e.reverse().map(function(r){return"</"+r+">"}).join("")}function xl(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function Pat(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function Ov(t){t=parseInt(t,10);var e=null;return t===0?e="all":t===1?e="bold":2<t&&t<5?e="underline":4<t&&t<7?e="blink":t===8?e="hide":t===9?e="strike":29<t&&t<38||t===39||89<t&&t<98?e="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(e="background-color"),e}function Oat(t,e){return e.escapeXML?Tat.encodeXML(t):t}function mi(t,e,r){return r||(r=""),t.push(e),"<".concat(e).concat(r?' style="'.concat(r,'"'):"",">")}function Ol(t,e){return mi(t,"span",e)}function $l(t,e){return mi(t,"span","color:"+e)}function Dl(t,e){return mi(t,"span","background-color:"+e)}function $v(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return"</"+e+">"}function $at(t,e,r){var o=!1,l=3;function u(){return""}function f(j,Y){return r("xterm256Foreground",Y),""}function h(j,Y){return r("xterm256Background",Y),""}function d(j){return e.newline?r("display",-1):r("text",j),""}function g(j,Y){o=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var ft=Iy(Y),X;try{for(ft.s();!(X=ft.n()).done;){var st=X.value;r("display",st)}}catch(ot){ft.e(ot)}finally{ft.f()}return""}function v(j){return r("text",j),""}function b(j){return r("rgb",j),""}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:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{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(j,Y){Y>l&&o||(o=!1,t=t.replace(j.pattern,j.sub))}var N=[],A=t,M=A.length;t:for(;M>0;){for(var T=0,E=0,F=x.length;E<F;T=++E){var L=x[T];if(S(L,T),t.length!==M){M=t.length;continue t}}if(t.length===M)break;N.push(0),M=t.length}return N}function Dat(t,e,r){return e!=="text"&&(t=t.filter(Pat(Ov(r))),t.push({token:e,data:r,category:Ov(r)})),t}var Rat=function(){function t(e){Sat(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},Nv.colors,e.colors)),this.options=Object.assign({},Nv,e),this.stack=[],this.stickyStack=[]}return kat(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var l=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var d=Pv(l,h.token,h.data,u);d&&f.push(d)}),$at(r.join(""),u,function(h,d){var g=Pv(l,h,d,u);g&&f.push(g),u.stream&&(o.stickyStack=Dat(o.stickyStack,h,d))}),l.length&&f.push(qy(l)),f.join("")}}]),t}(),zat=Rat;const Iat=Q0(zat);function Fat(t,e){return e&&t.endsWith(e)}async function Hy(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function By(t){return new Iat({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const qat={class:"scrolls scrolls-rounded task-error"},Hat=["onClickPassive"],Bat={key:0},Wat=re({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const e=t;function r(u){return u.startsWith(e.root)?u.slice(e.root.length):u}const o=bt(()=>{var u,f;return((u=e.error)==null?void 0:u.expected)&&((f=e.error)==null?void 0:f.actual)});function l(){return e.error.diff}return(u,f)=>{const h=oo("tooltip");return ct(),Et("div",qat,[ut("pre",null,[ut("b",null,Qt(u.error.name||u.error.nameStr),1),dn(": "+Qt(u.error.message),1)]),(ct(!0),Et(fe,null,Zn(u.error.stacks,(d,g)=>(ct(),Et("div",{key:g,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ut("pre",null," - "+Qt(r(d.file))+":"+Qt(d.line)+":"+Qt(d.column),1),V(Fat)(d.file,u.filename)?rn((ct(),Et("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:v=>V(Hy)(d.file,d.line,d.column)},null,40,Hat)),[[h,"Open in Editor",void 0,{bottom:!0}]]):ne("",!0)]))),128)),V(o)?(ct(),Et("pre",Bat," "+Qt(`
8
+ ${l()}`)+`
9
+ `,1)):ne("",!0)])}}});const Uat=so(Wat,[["__scopeId","data-v-a58dc572"]]),Dc=oE(),jat=gT(Dc),Vat={"h-full":"",class:"scrolls"},Gat={key:0,class:"scrolls scrolls-rounded task-error"},Kat=["innerHTML"],Xat={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Yat=re({__name:"ViewReport",props:{file:{}},setup(t){const e=t;function r(h,d){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"||h.type==="custom"?[{...h,level:d}]:[{...h,level:d},...h.tasks.flatMap(v=>r(v,d+1))]}function o(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function l(h,d){var b,x;let g="";d.message.includes("\x1B")&&(g=`<b>${d.nameStr||d.name}</b>: ${h.toHtml(o(d.message))}`);const v=(b=d.stackStr)==null?void 0:b.includes("\x1B");return(v||(x=d.stack)!=null&&x.includes("\x1B"))&&(g.length>0?g+=h.toHtml(o(v?d.stackStr:d.stack)):g=`<b>${d.nameStr||d.name}</b>: ${d.message}${h.toHtml(o(v?d.stackStr:d.stack))}`),g.length>0?g:null}function u(h,d){const g=By(h);return d.map(v=>{var S;const b=v.result;if(!b)return v;const x=(S=b.errors)==null?void 0:S.map(N=>l(g,N)).filter(N=>N!=null).join("<br><br>");return x!=null&&x.length&&(b.htmlError=x),v})}const f=bt(()=>{var b,x;const h=e.file,d=((b=h==null?void 0:h.tasks)==null?void 0:b.flatMap(S=>r(S,0)))??[],g=h==null?void 0:h.result;if((x=g==null?void 0:g.errors)==null?void 0:x[0]){const S={id:h.id,name:h.name,level:0,type:"suite",mode:"run",tasks:[],result:g};d.unshift(S)}return d.length>0?u(Dc.value,d):d});return(h,d)=>(ct(),Et("div",Vat,[V(f).length?(ct(!0),Et(fe,{key:0},Zn(V(f),g=>{var v,b,x;return ct(),Et("div",{key:g.id},[ut("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Tn({"margin-left":`${(v=g.result)!=null&&v.htmlError?.5:2*g.level+.5}rem`})},[dn(Qt(g.name)+" ",1),(b=g.result)!=null&&b.htmlError?(ct(),Et("div",Gat,[ut("pre",{innerHTML:g.result.htmlError},null,8,Kat)])):(x=g.result)!=null&&x.errors?(ct(!0),Et(fe,{key:1},Zn(g.result.errors,(S,N)=>{var A;return ct(),Zt(Uat,{key:N,error:S,filename:(A=h.file)==null?void 0:A.name,root:V(Ea).root},null,8,["error","filename","root"])}),128)):ne("",!0)],4)])}),128)):(ct(),Et("div",Xat," All tests passed in this file "))]))}});const Zat=so(Yat,[["__scopeId","data-v-1988b97e"]]),Jat={border:"b base","p-4":""},Qat=["innerHTML"],tlt=["textContent"],elt=re({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{},html:{type:Boolean}},setup(t){const e=t;function r(o){return new Date(o).toLocaleTimeString()}return(o,l)=>(ct(),Et("div",Jat,[ut("div",{"text-xs":"","mb-1":"",class:ve(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Qt(r(e.time))+" | "+Qt(e.taskName)+" | "+Qt(e.type),3),e.html?(ct(),Et("pre",{key:0,"data-type":"html",innerHTML:e.content},null,8,Qat)):(ct(),Et("pre",{key:1,"data-type":"text",textContent:Qt(e.content)},null,8,tlt))]))}}),nlt={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},rlt={key:1,p6:""},ilt=ut("pre",{inline:""},"console.log(foo)",-1),olt=re({__name:"ViewConsoleOutput",setup(t){const e=bt(()=>{const o=Sy.value;if(o){const l=By(Dc.value);return o.map(({taskId:u,type:f,time:h,content:d})=>{const g=d.trim(),v=l.toHtml(g);return v!==g?{taskId:u,type:f,time:h,html:!0,content:v}:{taskId:u,type:f,time:h,html:!1,content:d}})}});function r(o){const l=o&&Ve.state.idMap.get(o);return(l?rT(l).slice(1).join(" > "):"-")||"-"}return(o,l)=>{var f;const u=elt;return(f=V(e))!=null&&f.length?(ct(),Et("div",nlt,[(ct(!0),Et(fe,null,Zn(V(e),({taskId:h,type:d,time:g,html:v,content:b})=>(ct(),Et("div",{key:h,"font-mono":""},[qt(u,{"task-name":r(h),type:d,time:g,content:b,html:v},null,8,["task-name","type","time","content","html"])]))),128))])):(ct(),Et("p",rlt,[dn(" Log something in your test and it would print here. (e.g. "),ilt,dn(") ")]))}}});var Yu={exports:{}},Dv;function ls(){return Dv||(Dv=1,function(t,e){(function(r,o){t.exports=o()})(to,function(){var r=navigator.userAgent,o=navigator.platform,l=/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),d=u||f||h,g=d&&(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],N=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),E=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),F=/Android/.test(r),L=E||F||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),j=E||/Mac/.test(o),Y=/\bCrOS\b/.test(r),ft=/win/i.test(o),X=N&&r.match(/Version\/(\d*\.\d*)/);X&&(X=Number(X[1])),X&&X>=15&&(N=!1,v=!0);var st=j&&(b||N&&(X==null||X<12.11)),ot=l||d&&g>=9;function kt(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var pt=function(n,i){var a=n.className,s=kt(i).exec(a);if(s){var c=a.slice(s.index+s[0].length);n.className=a.slice(0,s.index)+(c?s[1]+c:"")}};function G(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function R(n,i){return G(n).appendChild(i)}function k(n,i,a,s){var c=document.createElement(n);if(a&&(c.className=a),s&&(c.style.cssText=s),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var p=0;p<i.length;++p)c.appendChild(i[p]);return c}function H(n,i,a,s){var c=k(n,i,a,s);return c.setAttribute("role","presentation"),c}var B;document.createRange?B=function(n,i,a,s){var c=document.createRange();return c.setEnd(s||n,a),c.setStart(n,i),c}:B=function(n,i,a){var s=document.body.createTextRange();try{s.moveToElementText(n.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",a),s.moveStart("character",i),s};function Q(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function wt(n){var i;try{i=n.activeElement}catch{i=n.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Tt(n,i){var a=n.className;kt(i).test(a)||(n.className+=(a?" ":"")+i)}function Rt(n,i){for(var a=n.split(" "),s=0;s<a.length;s++)a[s]&&!kt(a[s]).test(i)&&(i+=" "+a[s]);return i}var zt=function(n){n.select()};E?zt=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(zt=function(n){try{n.select()}catch{}});function Vt(n){return n.display.wrapper.ownerDocument}function Gt(n){return Vt(n).defaultView}function Jt(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function _t(n,i,a){i||(i={});for(var s in n)n.hasOwnProperty(s)&&(a!==!1||!i.hasOwnProperty(s))&&(i[s]=n[s]);return i}function W(n,i,a,s,c){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var p=s||0,m=c||0;;){var y=n.indexOf(" ",p);if(y<0||y>=i)return m+(i-p);m+=y-p,m+=a-m%a,p=y+1}}var et=function(){this.id=null,this.f=null,this.time=0,this.handler=Jt(this.onTimeout,this)};et.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},et.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function it(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Mt=50,Nt={toString:function(){return"CodeMirror.Pass"}},O={scroll:!1},I={origin:"*mouse"},K={origin:"+move"};function tt(n,i,a){for(var s=0,c=0;;){var p=n.indexOf(" ",s);p==-1&&(p=n.length);var m=p-s;if(p==n.length||c+m>=i)return s+Math.min(m,i-c);if(c+=p-s,c+=a-c%a,s=p+1,c>=i)return s}}var nt=[""];function at(n){for(;nt.length<=n;)nt.push(lt(nt)+" ");return nt[n]}function lt(n){return n[n.length-1]}function gt(n,i){for(var a=[],s=0;s<n.length;s++)a[s]=i(n[s],s);return a}function xt(n,i,a){for(var s=0,c=a(i);s<n.length&&a(n[s])<=c;)s++;n.splice(s,0,i)}function ht(){}function $t(n,i){var a;return Object.create?a=Object.create(n):(ht.prototype=n,a=new ht),i&&_t(i,a),a}var At=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ot(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||At.test(n))}function It(n,i){return i?i.source.indexOf("\\w")>-1&&Ot(n)?!0:i.test(n):Ot(n)}function jt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var ie=/[\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 ee(n){return n.charCodeAt(0)>=768&&ie.test(n)}function ue(n,i,a){for(;(a<0?i>0:i<n.length)&&ee(n.charAt(i));)i+=a;return i}function te(n,i,a){for(var s=i>a?-1:1;;){if(i==a)return i;var c=(i+a)/2,p=s<0?Math.ceil(c):Math.floor(c);if(p==i)return n(p)?i:a;n(p)?a=p:i=p+s}}function yn(n,i,a,s){if(!n)return s(i,a,"ltr",0);for(var c=!1,p=0;p<n.length;++p){var m=n[p];(m.from<a&&m.to>i||i==a&&m.to==i)&&(s(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",p),c=!0)}c||s(i,a,"ltr")}var Mn=null;function We(n,i,a){var s;Mn=null;for(var c=0;c<n.length;++c){var p=n[c];if(p.from<i&&p.to>i)return c;p.to==i&&(p.from!=p.to&&a=="before"?s=c:Mn=c),p.from==i&&(p.from!=p.to&&a!="before"?s=c:Mn=c)}return s??Mn}var ao=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(_){return _<=247?n.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]/,p=/[LRr]/,m=/[Lb1n]/,y=/[1n]/;function w(_,P,$){this.level=_,this.from=P,this.to=$}return function(_,P){var $=P=="ltr"?"L":"R";if(_.length==0||P=="ltr"&&!s.test(_))return!1;for(var U=_.length,q=[],J=0;J<U;++J)q.push(a(_.charCodeAt(J)));for(var rt=0,dt=$;rt<U;++rt){var vt=q[rt];vt=="m"?q[rt]=dt:dt=vt}for(var St=0,mt=$;St<U;++St){var Ct=q[St];Ct=="1"&&mt=="r"?q[St]="n":p.test(Ct)&&(mt=Ct,Ct=="r"&&(q[St]="R"))}for(var Dt=1,Pt=q[0];Dt<U-1;++Dt){var Ut=q[Dt];Ut=="+"&&Pt=="1"&&q[Dt+1]=="1"?q[Dt]="1":Ut==","&&Pt==q[Dt+1]&&(Pt=="1"||Pt=="n")&&(q[Dt]=Pt),Pt=Ut}for(var ge=0;ge<U;++ge){var He=q[ge];if(He==",")q[ge]="N";else if(He=="%"){var Se=void 0;for(Se=ge+1;Se<U&&q[Se]=="%";++Se);for(var xn=ge&&q[ge-1]=="!"||Se<U&&q[Se]=="1"?"1":"N",cn=ge;cn<Se;++cn)q[cn]=xn;ge=Se-1}}for(var Me=0,un=$;Me<U;++Me){var Ue=q[Me];un=="L"&&Ue=="1"?q[Me]="L":p.test(Ue)&&(un=Ue)}for(var $e=0;$e<U;++$e)if(c.test(q[$e])){var Ne=void 0;for(Ne=$e+1;Ne<U&&c.test(q[Ne]);++Ne);for(var Te=($e?q[$e-1]:$)=="L",fn=(Ne<U?q[Ne]:$)=="L",Ao=Te==fn?Te?"L":"R":$,ai=$e;ai<Ne;++ai)q[ai]=Ao;$e=Ne-1}for(var Ye=[],cr,Be=0;Be<U;)if(m.test(q[Be])){var Pu=Be;for(++Be;Be<U&&m.test(q[Be]);++Be);Ye.push(new w(0,Pu,Be))}else{var Mr=Be,zi=Ye.length,Ii=P=="rtl"?1:0;for(++Be;Be<U&&q[Be]!="L";++Be);for(var en=Mr;en<Be;)if(y.test(q[en])){Mr<en&&(Ye.splice(zi,0,new w(1,Mr,en)),zi+=Ii);var Mo=en;for(++en;en<Be&&y.test(q[en]);++en);Ye.splice(zi,0,new w(2,Mo,en)),zi+=Ii,Mr=en}else++en;Mr<Be&&Ye.splice(zi,0,new w(1,Mr,Be))}return P=="ltr"&&(Ye[0].level==1&&(cr=_.match(/^\s+/))&&(Ye[0].from=cr[0].length,Ye.unshift(new w(0,0,cr[0].length))),lt(Ye).level==1&&(cr=_.match(/\s+$/))&&(lt(Ye).to-=cr[0].length,Ye.push(new w(0,U-cr[0].length,U)))),P=="rtl"?Ye.reverse():Ye}}();function ye(n,i){var a=n.order;return a==null&&(a=n.order=ao(n.text,i)),a}var on=[],yt=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var s=n._handlers||(n._handlers={});s[i]=(s[i]||on).concat(a)}};function us(n,i){return n._handlers&&n._handlers[i]||on}function Ge(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var s=n._handlers,c=s&&s[i];if(c){var p=it(c,a);p>-1&&(s[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function me(n,i){var a=us(n,i);if(a.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<a.length;++c)a[c].apply(null,s)}function ke(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),me(n,a||i.type,n,i),fs(i)||i.codemirrorIgnore}function Pa(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)it(a,i[s])==-1&&a.push(i[s])}function Je(n,i){return us(n,i).length>0}function Qe(n){n.prototype.on=function(i,a){yt(this,i,a)},n.prototype.off=function(i,a){Ge(this,i,a)}}function Ke(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Li(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function fs(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function xr(n){Ke(n),Li(n)}function sn(n){return n.target||n.srcElement}function hs(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),j&&n.ctrlKey&&i==1&&(i=3),i}var Fc=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),In;function qc(n){if(In==null){var i=k("span","​");R(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(In=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var a=In?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var lo;function Oa(n){if(lo!=null)return lo;var i=R(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),s=B(i,1,2).getBoundingClientRect();return G(n),!a||a.left==a.right?!1:lo=s.right-a.right<3}var ds=`
10
+
11
+ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],s=n.length;i<=s;){var c=n.indexOf(`
12
+ `,i);c==-1&&(c=n.length);var p=n.slice(i,n.charAt(c-1)=="\r"?c-1:c),m=p.indexOf("\r");m!=-1?(a.push(p.slice(0,m)),i+=m+1):(a.push(p),i=c+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Xr=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},rr=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),ir=null;function $a(n){if(ir!=null)return ir;var i=R(n,k("span","x")),a=i.getBoundingClientRect(),s=B(i,0,1).getBoundingClientRect();return ir=Math.abs(a.left-s.left)>1}var Wn={},Yr={};function Da(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Wn[n]=i}function co(n,i){Yr[n]=i}function bn(n){if(typeof n=="string"&&Yr.hasOwnProperty(n))n=Yr[n];else if(n&&typeof n.name=="string"&&Yr.hasOwnProperty(n.name)){var i=Yr[n.name];typeof i=="string"&&(i={name:i}),n=$t(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return bn("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return bn("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function _r(n,i){i=bn(i);var a=Wn[i.name];if(!a)return _r(n,"text/plain");var s=a(n,i);if(Zr.hasOwnProperty(i.name)){var c=Zr[i.name];for(var p in c)c.hasOwnProperty(p)&&(s.hasOwnProperty(p)&&(s["_"+p]=s[p]),s[p]=c[p])}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 Zr={};function Ra(n,i){var a=Zr.hasOwnProperty(n)?Zr[n]:Zr[n]={};_t(i,a)}function Sr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),a[s]=c}return a}function Jr(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function ps(n,i,a){return n.startState?n.startState(i,a):!0}var Ce=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};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(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},Ce.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Ce.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Ce.prototype.skipToEnd=function(){this.pos=this.string.length},Ce.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Ce.prototype.backUp=function(n){this.pos-=n},Ce.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ce.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ce.prototype.match=function(n,i,a){if(typeof n=="string"){var s=function(m){return a?m.toLowerCase():m},c=this.string.substr(this.pos,n.length);if(s(c)==s(n))return i!==!1&&(this.pos+=n.length),!0}else{var p=this.string.slice(this.pos).match(n);return p&&p.index>0?null:(p&&i!==!1&&(this.pos+=p[0].length),p)}},Ce.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ce.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Ce.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Ce.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Lt(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var s=0;;++s){var c=a.children[s],p=c.chunkSize();if(i<p){a=c;break}i-=p}return a.lines[i]}function kr(n,i,a){var s=[],c=i.line;return n.iter(i.line,a.line+1,function(p){var m=p.text;c==a.line&&(m=m.slice(0,a.ch)),c==i.line&&(m=m.slice(i.ch)),s.push(m),++c}),s}function uo(n,i,a){var s=[];return n.iter(i,a,function(c){s.push(c.text)}),s}function Fn(n,i){var a=i-n.height;if(a)for(var s=n;s;s=s.parent)s.height+=a}function le(n){if(n.parent==null)return null;for(var i=n.parent,a=it(i.lines,n),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)a+=s.children[c].chunkSize();return a+i.first}function or(n,i){var a=n.first;t:do{for(var s=0;s<n.children.length;++s){var c=n.children[s],p=c.height;if(i<p){n=c;continue t}i-=p,a+=c.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var y=n.lines[m],w=y.height;if(i<w)break;i-=w}return a+m}function C(n,i){return i>=n.first&&i<n.first+n.size}function D(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function z(n,i,a){if(a===void 0&&(a=null),!(this instanceof z))return new z(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Z(n,i){return n.line-i.line||n.ch-i.ch}function Ht(n,i){return n.sticky==i.sticky&&Z(n,i)==0}function Xt(n){return z(n.line,n.ch)}function oe(n,i){return Z(n,i)<0?i:n}function Oe(n,i){return Z(n,i)<0?n:i}function Nn(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Bt(n,i){if(i.line<n.first)return z(n.first,0);var a=n.first+n.size-1;return i.line>a?z(a,Lt(n,a).text.length):Db(i,Lt(n,i.line).text.length)}function Db(n,i){var a=n.ch;return a==null||a>i?z(n.line,i):a<0?z(n.line,0):n}function Xh(n,i){for(var a=[],s=0;s<i.length;s++)a[s]=Bt(n,i[s]);return a}var za=function(n,i){this.state=n,this.lookAhead=i},sr=function(n,i,a,s){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};sr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},sr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},sr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sr.fromSaved=function(n,i,a){return i instanceof za?new sr(n,Sr(n.mode,i.state),a,i.lookAhead):new sr(n,Sr(n.mode,i),a)},sr.prototype.save=function(n){var i=n!==!1?Sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new za(i,this.maxLookAhead):i};function Yh(n,i,a,s){var c=[n.state.modeGen],p={};nd(n,i.text,n.doc.mode,a,function(_,P){return c.push(_,P)},p,s);for(var m=a.state,y=function(_){a.baseTokens=c;var P=n.state.overlays[_],$=1,U=0;a.state=!0,nd(n,i.text,P.mode,a,function(q,J){for(var rt=$;U<q;){var dt=c[$];dt>q&&c.splice($,1,q,c[$+1],dt),$+=2,U=Math.min(q,dt)}if(J)if(P.opaque)c.splice(rt,$-rt,q,"overlay "+J),$=rt+2;else for(;rt<$;rt+=2){var vt=c[rt+1];c[rt+1]=(vt?vt+" ":"")+"overlay "+J}},p),a.state=m,a.baseTokens=null,a.baseTokenPos=1},w=0;w<n.state.overlays.length;++w)y(w);return{styles:c,classes:p.bgClass||p.textClass?p:null}}function Zh(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var s=gs(n,le(i)),c=i.text.length>n.options.maxHighlightLength&&Sr(n.doc.mode,s.state),p=Yh(n,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=p.styles,p.classes?i.styleClasses=p.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function gs(n,i,a){var s=n.doc,c=n.display;if(!s.mode.startState)return new sr(s,!0,i);var p=Rb(n,i,a),m=p>s.first&&Lt(s,p-1).stateAfter,y=m?sr.fromSaved(s,m,p):new sr(s,ps(s.mode),p);return s.iter(p,i,function(w){Hc(n,w.text,y);var _=y.line;w.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),a&&(s.modeFrontier=y.line),y}function Hc(n,i,a,s){var c=n.doc.mode,p=new Ce(i,n.options.tabSize,a);for(p.start=p.pos=s||0,i==""&&Jh(c,a.state);!p.eol();)Bc(c,p,a.state),p.start=p.pos}function Jh(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Jr(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Bc(n,i,a,s){for(var c=0;c<10;c++){s&&(s[0]=Jr(n,a).mode);var p=n.token(i,a);if(i.pos>i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var Qh=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function td(n,i,a,s){var c=n.doc,p=c.mode,m;i=Bt(c,i);var y=Lt(c,i.line),w=gs(n,i.line,a),_=new Ce(y.text,n.options.tabSize,w),P;for(s&&(P=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Bc(p,_,w.state),s&&P.push(new Qh(_,m,Sr(c.mode,w.state)));return s?P:new Qh(_,m,w.state)}function ed(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var s=a[1]?"bgClass":"textClass";i[s]==null?i[s]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+a[2])}return n}function nd(n,i,a,s,c,p,m){var y=a.flattenSpans;y==null&&(y=n.options.flattenSpans);var w=0,_=null,P=new Ce(i,n.options.tabSize,s),$,U=n.options.addModeClass&&[null];for(i==""&&ed(Jh(a,s.state),p);!P.eol();){if(P.pos>n.options.maxHighlightLength?(y=!1,m&&Hc(n,i,s,P.pos),P.pos=i.length,$=null):$=ed(Bc(a,P,s.state,U),p),U){var q=U[0].name;q&&($="m-"+($?q+" "+$:q))}if(!y||_!=$){for(;w<P.start;)w=Math.min(P.start,w+5e3),c(w,_);_=$}P.start=P.pos}for(;w<P.pos;){var J=Math.min(P.pos,w+5e3);c(J,_),w=J}}function Rb(n,i,a){for(var s,c,p=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=p.first)return p.first;var w=Lt(p,y-1),_=w.stateAfter;if(_&&(!a||y+(_ instanceof za?_.lookAhead:0)<=p.modeFrontier))return y;var P=W(w.text,null,n.options.tabSize);(c==null||s>P)&&(c=y-1,s=P)}return c}function zb(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,s=i-1;s>a;s--){var c=Lt(n,s).stateAfter;if(c&&(!(c instanceof za)||s+c.lookAhead<i)){a=s+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var rd=!1,Cr=!1;function Ib(){rd=!0}function Fb(){Cr=!0}function Ia(n,i,a){this.marker=n,this.from=i,this.to=a}function vs(n,i){if(n)for(var a=0;a<n.length;++a){var s=n[a];if(s.marker==i)return s}}function qb(n,i){for(var a,s=0;s<n.length;++s)n[s]!=i&&(a||(a=[])).push(n[s]);return a}function Hb(n,i,a){var s=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));s&&n.markedSpans&&s.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],s&&s.add(n.markedSpans)),i.marker.attachLine(n)}function Bb(n,i,a){var s;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,y=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);if(y||p.from==i&&m.type=="bookmark"&&(!a||!p.marker.insertLeft)){var w=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(s||(s=[])).push(new Ia(m,p.from,w?null:p.to))}}return s}function Wb(n,i,a){var s;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,y=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);if(y||p.from==i&&m.type=="bookmark"&&(!a||p.marker.insertLeft)){var w=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(s||(s=[])).push(new Ia(m,w?null:p.from-i,p.to==null?null:p.to-i))}}return s}function Wc(n,i){if(i.full)return null;var a=C(n,i.from.line)&&Lt(n,i.from.line).markedSpans,s=C(n,i.to.line)&&Lt(n,i.to.line).markedSpans;if(!a&&!s)return null;var c=i.from.ch,p=i.to.ch,m=Z(i.from,i.to)==0,y=Bb(a,c,m),w=Wb(s,p,m),_=i.text.length==1,P=lt(i.text).length+(_?c:0);if(y)for(var $=0;$<y.length;++$){var U=y[$];if(U.to==null){var q=vs(w,U.marker);q?_&&(U.to=q.to==null?null:q.to+P):U.to=c}}if(w)for(var J=0;J<w.length;++J){var rt=w[J];if(rt.to!=null&&(rt.to+=P),rt.from==null){var dt=vs(y,rt.marker);dt||(rt.from=P,_&&(y||(y=[])).push(rt))}else rt.from+=P,_&&(y||(y=[])).push(rt)}y&&(y=id(y)),w&&w!=y&&(w=id(w));var vt=[y];if(!_){var St=i.text.length-2,mt;if(St>0&&y)for(var Ct=0;Ct<y.length;++Ct)y[Ct].to==null&&(mt||(mt=[])).push(new Ia(y[Ct].marker,null,null));for(var Dt=0;Dt<St;++Dt)vt.push(mt);vt.push(w)}return vt}function id(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function Ub(n,i,a){var s=null;if(n.iter(i.line,a.line+1,function(q){if(q.markedSpans)for(var J=0;J<q.markedSpans.length;++J){var rt=q.markedSpans[J].marker;rt.readOnly&&(!s||it(s,rt)==-1)&&(s||(s=[])).push(rt)}}),!s)return null;for(var c=[{from:i,to:a}],p=0;p<s.length;++p)for(var m=s[p],y=m.find(0),w=0;w<c.length;++w){var _=c[w];if(!(Z(_.to,y.from)<0||Z(_.from,y.to)>0)){var P=[w,1],$=Z(_.from,y.from),U=Z(_.to,y.to);($<0||!m.inclusiveLeft&&!$)&&P.push({from:_.from,to:y.from}),(U>0||!m.inclusiveRight&&!U)&&P.push({from:y.to,to:_.to}),c.splice.apply(c,P),w+=P.length-3}}return c}function od(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function sd(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Fa(n){return n.inclusiveLeft?-1:0}function qa(n){return n.inclusiveRight?1:0}function Uc(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var s=n.find(),c=i.find(),p=Z(s.from,c.from)||Fa(n)-Fa(i);if(p)return-p;var m=Z(s.to,c.to)||qa(n)-qa(i);return m||i.id-n.id}function ad(n,i){var a=Cr&&n.markedSpans,s;if(a)for(var c=void 0,p=0;p<a.length;++p)c=a[p],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Uc(s,c.marker)<0)&&(s=c.marker);return s}function ld(n){return ad(n,!0)}function Ha(n){return ad(n,!1)}function jb(n,i){var a=Cr&&n.markedSpans,s;if(a)for(var c=0;c<a.length;++c){var p=a[c];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!s||Uc(s,p.marker)<0)&&(s=p.marker)}return s}function cd(n,i,a,s,c){var p=Lt(n,i),m=Cr&&p.markedSpans;if(m)for(var y=0;y<m.length;++y){var w=m[y];if(w.marker.collapsed){var _=w.marker.find(0),P=Z(_.from,a)||Fa(w.marker)-Fa(c),$=Z(_.to,s)||qa(w.marker)-qa(c);if(!(P>=0&&$<=0||P<=0&&$>=0)&&(P<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?Z(_.to,a)>=0:Z(_.to,a)>0)||P>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?Z(_.from,s)<=0:Z(_.from,s)<0)))return!0}}}function Un(n){for(var i;i=ld(n);)n=i.find(-1,!0).line;return n}function Vb(n){for(var i;i=Ha(n);)n=i.find(1,!0).line;return n}function Gb(n){for(var i,a;i=Ha(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function jc(n,i){var a=Lt(n,i),s=Un(a);return a==s?i:le(s)}function ud(n,i){if(i>n.lastLine())return i;var a=Lt(n,i),s;if(!Qr(n,a))return i;for(;s=Ha(a);)a=s.find(1,!0).line;return le(a)+1}function Qr(n,i){var a=Cr&&i.markedSpans;if(a){for(var s=void 0,c=0;c<a.length;++c)if(s=a[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Vc(n,i,s))return!0}}}function Vc(n,i,a){if(a.to==null){var s=a.marker.find(1,!0);return Vc(n,s.line,vs(s.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var c=void 0,p=0;p<i.markedSpans.length;++p)if(c=i.markedSpans[p],c.marker.collapsed&&!c.marker.widgetNode&&c.from==a.to&&(c.to==null||c.to!=a.from)&&(c.marker.inclusiveLeft||a.marker.inclusiveRight)&&Vc(n,i,c))return!0}function Tr(n){n=Un(n);for(var i=0,a=n.parent,s=0;s<a.lines.length;++s){var c=a.lines[s];if(c==n)break;i+=c.height}for(var p=a.parent;p;a=p,p=a.parent)for(var m=0;m<p.children.length;++m){var y=p.children[m];if(y==a)break;i+=y.height}return i}function Ba(n){if(n.height==0)return 0;for(var i=n.text.length,a,s=n;a=ld(s);){var c=a.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=n;a=Ha(s);){var p=a.find(0,!0);i-=s.text.length-p.from.ch,s=p.to.line,i+=s.text.length-p.to.ch}return i}function Gc(n){var i=n.display,a=n.doc;i.maxLine=Lt(a,a.first),i.maxLineLength=Ba(i.maxLine),i.maxLineChanged=!0,a.iter(function(s){var c=Ba(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var fo=function(n,i,a){this.text=n,sd(this,i),this.height=a?a(this):1};fo.prototype.lineNo=function(){return le(this)},Qe(fo);function Kb(n,i,a,s){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),od(n),sd(n,a);var c=s?s(n):1;c!=n.height&&Fn(n,c)}function Xb(n){n.parent=null,od(n)}var Yb={},Zb={};function fd(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?Zb:Yb;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function hd(n,i){var a=H("span",null,null,v?"padding-right: .1px":null),s={pre:H("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var p=c?i.rest[c-1]:i.line,m=void 0;s.pos=0,s.addToken=Qb,Oa(n.display.measure)&&(m=ye(p,n.doc.direction))&&(s.addToken=ew(s.addToken,m)),s.map=[];var y=i!=n.display.externalMeasured&&le(p);nw(p,s,Zh(n,p,y)),p.styleClasses&&(p.styleClasses.bgClass&&(s.bgClass=Rt(p.styleClasses.bgClass,s.bgClass||"")),p.styleClasses.textClass&&(s.textClass=Rt(p.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(qc(n.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 me(n,"renderLine",n,i.line,s.pre),s.pre.className&&(s.textClass=Rt(s.pre.className,s.textClass||"")),s}function Jb(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Qb(n,i,a,s,c,p,m){if(i){var y=n.splitSpaces?tw(i,n.trailingSpace):i,w=n.cm.state.specialChars,_=!1,P;if(!w.test(i))n.col+=i.length,P=document.createTextNode(y),n.map.push(n.pos,n.pos+i.length,P),d&&g<9&&(_=!0),n.pos+=i.length;else{P=document.createDocumentFragment();for(var $=0;;){w.lastIndex=$;var U=w.exec(i),q=U?U.index-$:i.length-$;if(q){var J=document.createTextNode(y.slice($,$+q));d&&g<9?P.appendChild(k("span",[J])):P.appendChild(J),n.map.push(n.pos,n.pos+q,J),n.col+=q,n.pos+=q}if(!U)break;$+=q+1;var rt=void 0;if(U[0]==" "){var dt=n.cm.options.tabSize,vt=dt-n.col%dt;rt=P.appendChild(k("span",at(vt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),n.col+=vt}else U[0]=="\r"||U[0]==`
13
+ `?(rt=P.appendChild(k("span",U[0]=="\r"?"␍":"␤","cm-invalidchar")),rt.setAttribute("cm-text",U[0]),n.col+=1):(rt=n.cm.options.specialCharPlaceholder(U[0]),rt.setAttribute("cm-text",U[0]),d&&g<9?P.appendChild(k("span",[rt])):P.appendChild(rt),n.col+=1);n.map.push(n.pos,n.pos+1,rt),n.pos++}}if(n.trailingSpace=y.charCodeAt(i.length-1)==32,a||s||c||_||p||m){var St=a||"";s&&(St+=s),c&&(St+=c);var mt=k("span",[P],St,p);if(m)for(var Ct in m)m.hasOwnProperty(Ct)&&Ct!="style"&&Ct!="class"&&mt.setAttribute(Ct,m[Ct]);return n.content.appendChild(mt)}n.content.appendChild(P)}}function tw(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,s="",c=0;c<n.length;c++){var p=n.charAt(c);p==" "&&a&&(c==n.length-1||n.charCodeAt(c+1)==32)&&(p=" "),s+=p,a=p==" "}return s}function ew(n,i){return function(a,s,c,p,m,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=a.pos,P=_+s.length;;){for(var $=void 0,U=0;U<i.length&&($=i[U],!($.to>_&&$.from<=_));U++);if($.to>=P)return n(a,s,c,p,m,y,w);n(a,s.slice(0,$.to-_),c,p,null,y,w),p=null,s=s.slice($.to-_),_=$.to}}}function dd(n,i,a,s){var c=!s&&a.widgetNode;c&&n.map.push(n.pos,n.pos+i,c),!s&&n.cm.display.input.needsContentAttribute&&(c||(c=n.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",a.id)),c&&(n.cm.display.input.setUneditable(c),n.content.appendChild(c)),n.pos+=i,n.trailingSpace=!1}function nw(n,i,a){var s=n.markedSpans,c=n.text,p=0;if(!s){for(var m=1;m<a.length;m+=2)i.addToken(i,c.slice(p,p=a[m]),fd(a[m+1],i.cm.options));return}for(var y=c.length,w=0,_=1,P="",$,U,q=0,J,rt,dt,vt,St;;){if(q==w){J=rt=dt=U="",St=null,vt=null,q=1/0;for(var mt=[],Ct=void 0,Dt=0;Dt<s.length;++Dt){var Pt=s[Dt],Ut=Pt.marker;if(Ut.type=="bookmark"&&Pt.from==w&&Ut.widgetNode)mt.push(Ut);else if(Pt.from<=w&&(Pt.to==null||Pt.to>w||Ut.collapsed&&Pt.to==w&&Pt.from==w)){if(Pt.to!=null&&Pt.to!=w&&q>Pt.to&&(q=Pt.to,rt=""),Ut.className&&(J+=" "+Ut.className),Ut.css&&(U=(U?U+";":"")+Ut.css),Ut.startStyle&&Pt.from==w&&(dt+=" "+Ut.startStyle),Ut.endStyle&&Pt.to==q&&(Ct||(Ct=[])).push(Ut.endStyle,Pt.to),Ut.title&&((St||(St={})).title=Ut.title),Ut.attributes)for(var ge in Ut.attributes)(St||(St={}))[ge]=Ut.attributes[ge];Ut.collapsed&&(!vt||Uc(vt.marker,Ut)<0)&&(vt=Pt)}else Pt.from>w&&q>Pt.from&&(q=Pt.from)}if(Ct)for(var He=0;He<Ct.length;He+=2)Ct[He+1]==q&&(rt+=" "+Ct[He]);if(!vt||vt.from==w)for(var Se=0;Se<mt.length;++Se)dd(i,0,mt[Se]);if(vt&&(vt.from||0)==w){if(dd(i,(vt.to==null?y+1:vt.to)-w,vt.marker,vt.from==null),vt.to==null)return;vt.to==w&&(vt=!1)}}if(w>=y)break;for(var xn=Math.min(y,q);;){if(P){var cn=w+P.length;if(!vt){var Me=cn>xn?P.slice(0,xn-w):P;i.addToken(i,Me,$?$+J:J,dt,w+Me.length==q?rt:"",U,St)}if(cn>=xn){P=P.slice(xn-w),w=xn;break}w=cn,dt=""}P=c.slice(p,p=a[_++]),$=fd(a[_++],i.cm.options)}}}function pd(n,i,a){this.line=i,this.rest=Gb(i),this.size=this.rest?le(lt(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Qr(n,i)}function Wa(n,i,a){for(var s=[],c,p=i;p<a;p=c){var m=new pd(n.doc,Lt(n.doc,p),p);c=p+m.size,s.push(m)}return s}var ho=null;function rw(n){ho?ho.ops.push(n):n.ownsGroup=ho={ops:[n],delayedCallbacks:[]}}function iw(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var s=0;s<n.ops.length;s++){var c=n.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(a<i.length)}function ow(n,i){var a=n.ownsGroup;if(a)try{iw(a)}finally{ho=null,i(a)}}var ms=null;function Ie(n,i){var a=us(n,i);if(a.length){var s=Array.prototype.slice.call(arguments,2),c;ho?c=ho.delayedCallbacks:ms?c=ms:(c=ms=[],setTimeout(sw,0));for(var p=function(y){c.push(function(){return a[y].apply(null,s)})},m=0;m<a.length;++m)p(m)}}function sw(){var n=ms;ms=null;for(var i=0;i<n.length;++i)n[i]()}function gd(n,i,a,s){for(var c=0;c<i.changes.length;c++){var p=i.changes[c];p=="text"?lw(n,i):p=="gutter"?md(n,i,a,s):p=="class"?Kc(n,i):p=="widget"&&cw(n,i,s)}i.changes=null}function ys(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),d&&g<8&&(n.node.style.zIndex=2)),n.node}function aw(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var s=ys(i);i.background=s.insertBefore(k("div",null,a),s.firstChild),n.display.input.setUneditable(i.background)}}function vd(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):hd(n,i)}function lw(n,i){var a=i.text.className,s=vd(n,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,Kc(n,i)):a&&(i.text.className=a)}function Kc(n,i){aw(n,i),i.line.wrapClass?ys(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function md(n,i,a,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=ys(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var p=i.line.gutterMarkers;if(n.options.lineNumbers||p){var m=ys(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),n.display.input.setUneditable(y),m.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",D(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),p)for(var w=0;w<n.display.gutterSpecs.length;++w){var _=n.display.gutterSpecs[w].className,P=p.hasOwnProperty(_)&&p[_];P&&y.appendChild(k("div",[P],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function cw(n,i,a){i.alignable&&(i.alignable=null);for(var s=kt("CodeMirror-linewidget"),c=i.node.firstChild,p=void 0;c;c=p)p=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);yd(n,i,a)}function uw(n,i,a,s){var c=vd(n,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Kc(n,i),md(n,i,a,s),yd(n,i,s),i.node}function yd(n,i,a){if(bd(n,i.line,i,a,!0),i.rest)for(var s=0;s<i.rest.length;s++)bd(n,i.rest[s],i,a,!1)}function bd(n,i,a,s,c){if(i.widgets)for(var p=ys(a),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"),fw(w,_,a,s),n.display.input.setUneditable(_),c&&w.above?p.insertBefore(_,a.gutter||a.text):p.appendChild(_),Ie(w,"redraw")}}function fw(n,i,a,s){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var c=s.wrapperWidth;i.style.left=s.fixedPos+"px",n.coverGutter||(c-=s.gutterTotalWidth,i.style.paddingLeft=s.gutterTotalWidth+"px"),i.style.width=c+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-s.gutterTotalWidth+"px"))}function bs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!Q(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),R(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Er(n,i){for(var a=sn(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Ua(n){return n.lineSpace.offsetTop}function Xc(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function wd(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=R(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(n.cachedPaddingH=s),s}function ar(n){return Mt-n.display.nativeBarWidth}function Ai(n){return n.display.scroller.clientWidth-ar(n)-n.display.barWidth}function Yc(n){return n.display.scroller.clientHeight-ar(n)-n.display.barHeight}function hw(n,i,a){var s=n.options.lineWrapping,c=s&&Ai(n);if(!i.measure.heights||s&&i.measure.width!=c){var p=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&&p.push((w.bottom+_.top)/2-a.top)}}p.push(a.bottom-a.top)}}function xd(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var s=0;s<n.rest.length;s++)if(n.rest[s]==i)return{map:n.measure.maps[s],cache:n.measure.caches[s]};for(var c=0;c<n.rest.length;c++)if(le(n.rest[c])>a)return{map:n.measure.maps[c],cache:n.measure.caches[c],before:!0}}}function dw(n,i){i=Un(i);var a=le(i),s=n.display.externalMeasured=new pd(n.doc,i,a);s.lineN=a;var c=s.built=hd(n,s);return s.text=c.pre,R(n.display.lineMeasure,c.pre),s}function _d(n,i,a,s){return lr(n,po(n,i),a,s)}function Zc(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Pi(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function po(n,i){var a=le(i),s=Zc(n,a);s&&!s.text?s=null:s&&s.changes&&(gd(n,s,a,nu(n)),n.curOp.forceUpdate=!0),s||(s=dw(n,i));var c=xd(s,i,a);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function lr(n,i,a,s,c){i.before&&(a=-1);var p=a+(s||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(hw(n,i.view,i.rect),i.hasHeights=!0),m=gw(n,i,a,s),m.bogus||(i.cache[p]=m)),{left:m.left,right:m.right,top:c?m.rtop:m.top,bottom:c?m.rbottom:m.bottom}}var Sd={left:0,right:0,top:0,bottom:0};function kd(n,i,a){for(var s,c,p,m,y,w,_=0;_<n.length;_+=3)if(y=n[_],w=n[_+1],i<y?(c=0,p=1,m="left"):i<w?(c=i-y,p=c+1):(_==n.length-3||i==w&&n[_+3]>i)&&(p=w-y,c=p-1,i>=w&&(m="right")),c!=null){if(s=n[_+2],y==w&&a==(s.insertLeft?"left":"right")&&(m=a),a=="left"&&c==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)s=n[(_-=3)+2],m="left";if(a=="right"&&c==w-y)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)s=n[(_+=3)+2],m="right";break}return{node:s,start:c,end:p,collapse:m,coverStart:y,coverEnd:w}}function pw(n,i){var a=Sd;if(i=="left")for(var s=0;s<n.length&&(a=n[s]).left==a.right;s++);else for(var c=n.length-1;c>=0&&(a=n[c]).left==a.right;c--);return a}function gw(n,i,a,s){var c=kd(i.map,a,s),p=c.node,m=c.start,y=c.end,w=c.collapse,_;if(p.nodeType==3){for(var P=0;P<4;P++){for(;m&&ee(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&ee(i.line.text.charAt(c.coverStart+y));)++y;if(d&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=p.parentNode.getBoundingClientRect():_=pw(B(p,m,y).getClientRects(),s),_.left||_.right||m==0)break;y=m,m=m-1,w="right"}d&&g<11&&(_=vw(n.display.measure,_))}else{m>0&&(w=s="right");var $;n.options.lineWrapping&&($=p.getClientRects()).length>1?_=$[s=="right"?$.length-1:0]:_=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!_||!_.left&&!_.right)){var U=p.parentNode.getClientRects()[0];U?_={left:U.left,right:U.left+vo(n.display),top:U.top,bottom:U.bottom}:_=Sd}for(var q=_.top-i.rect.top,J=_.bottom-i.rect.top,rt=(q+J)/2,dt=i.view.measure.heights,vt=0;vt<dt.length-1&&!(rt<dt[vt]);vt++);var St=vt?dt[vt-1]:0,mt=dt[vt],Ct={left:(w=="right"?_.right:_.left)-i.rect.left,right:(w=="left"?_.left:_.right)-i.rect.left,top:St,bottom:mt};return!_.left&&!_.right&&(Ct.bogus=!0),n.options.singleCursorHeightPerLine||(Ct.rtop=q,Ct.rbottom=J),Ct}function vw(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!$a(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*s,bottom:i.bottom*s}}function Cd(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Td(n){n.display.externalMeasure=null,G(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Cd(n.display.view[i])}function ws(n){Td(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Ed(n){return x&&F?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Ld(n){return x&&F?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Jc(n){var i=Un(n),a=i.widgets,s=0;if(a)for(var c=0;c<a.length;++c)a[c].above&&(s+=bs(a[c]));return s}function ja(n,i,a,s,c){if(!c){var p=Jc(i);a.top+=p,a.bottom+=p}if(s=="line")return a;s||(s="local");var m=Tr(i);if(s=="local"?m+=Ua(n.display):m-=n.display.viewOffset,s=="page"||s=="window"){var y=n.display.lineSpace.getBoundingClientRect();m+=y.top+(s=="window"?0:Ld(Vt(n)));var w=y.left+(s=="window"?0:Ed(Vt(n)));a.left+=w,a.right+=w}return a.top+=m,a.bottom+=m,a}function Ad(n,i,a){if(a=="div")return i;var s=i.left,c=i.top;if(a=="page")s-=Ed(Vt(n)),c-=Ld(Vt(n));else if(a=="local"||!a){var p=n.display.sizer.getBoundingClientRect();s+=p.left,c+=p.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:s-m.left,top:c-m.top}}function Va(n,i,a,s,c){return s||(s=Lt(n.doc,i.line)),ja(n,s,_d(n,s,i.ch,c),a)}function jn(n,i,a,s,c,p){s=s||Lt(n.doc,i.line),c||(c=po(n,s));function m(J,rt){var dt=lr(n,c,J,rt?"right":"left",p);return rt?dt.left=dt.right:dt.right=dt.left,ja(n,s,dt,a)}var y=ye(s,n.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 P(J,rt,dt){var vt=y[rt],St=vt.level==1;return m(dt?J-1:J,St!=dt)}var $=We(y,w,_),U=Mn,q=P(w,$,_=="before");return U!=null&&(q.other=P(w,U,_!="before")),q}function Md(n,i){var a=0;i=Bt(n.doc,i),n.options.lineWrapping||(a=vo(n.display)*i.ch);var s=Lt(n.doc,i.line),c=Tr(s)+Ua(n.display);return{left:a,right:a,top:c,bottom:c+s.height}}function Qc(n,i,a,s,c){var p=z(n,i,a);return p.xRel=c,s&&(p.outside=s),p}function tu(n,i,a){var s=n.doc;if(a+=n.display.viewOffset,a<0)return Qc(s.first,0,null,-1,-1);var c=or(s,a),p=s.first+s.size-1;if(c>p)return Qc(s.first+s.size-1,Lt(s,p).text.length,null,1,1);i<0&&(i=0);for(var m=Lt(s,c);;){var y=mw(n,m,c,i,a),w=jb(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;m=Lt(s,c=_.line)}}function Nd(n,i,a,s){s-=Jc(i);var c=i.text.length,p=te(function(m){return lr(n,a,m-1).bottom<=s},c,0);return c=te(function(m){return lr(n,a,m).top>s},p,c),{begin:p,end:c}}function Pd(n,i,a,s){a||(a=po(n,i));var c=ja(n,i,lr(n,a,s),"line").top;return Nd(n,i,a,c)}function eu(n,i,a,s){return n.bottom<=a?!1:n.top>a?!0:(s?n.left:n.right)>i}function mw(n,i,a,s,c){c-=Tr(i);var p=po(n,i),m=Jc(i),y=0,w=i.text.length,_=!0,P=ye(i,n.doc.direction);if(P){var $=(n.options.lineWrapping?bw:yw)(n,i,a,p,P,s,c);_=$.level!=1,y=_?$.from:$.to-1,w=_?$.to:$.from-1}var U=null,q=null,J=te(function(Dt){var Pt=lr(n,p,Dt);return Pt.top+=m,Pt.bottom+=m,eu(Pt,s,c,!1)?(Pt.top<=c&&Pt.left<=s&&(U=Dt,q=Pt),!0):!1},y,w),rt,dt,vt=!1;if(q){var St=s-q.left<q.right-s,mt=St==_;J=U+(mt?0:1),dt=mt?"after":"before",rt=St?q.left:q.right}else{!_&&(J==w||J==y)&&J++,dt=J==0?"after":J==i.text.length?"before":lr(n,p,J-(_?1:0)).bottom+m<=c==_?"after":"before";var Ct=jn(n,z(a,J,dt),"line",i,p);rt=Ct.left,vt=c<Ct.top?-1:c>=Ct.bottom?1:0}return J=ue(i.text,J,1),Qc(a,J,dt,vt,s-rt)}function yw(n,i,a,s,c,p,m){var y=te(function($){var U=c[$],q=U.level!=1;return eu(jn(n,z(a,q?U.to:U.from,q?"before":"after"),"line",i,s),p,m,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,P=jn(n,z(a,_?w.from:w.to,_?"after":"before"),"line",i,s);eu(P,p,m,!0)&&P.top>m&&(w=c[y-1])}return w}function bw(n,i,a,s,c,p,m){var y=Nd(n,i,s,m),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var P=null,$=null,U=0;U<c.length;U++){var q=c[U];if(!(q.from>=_||q.to<=w)){var J=q.level!=1,rt=lr(n,s,J?Math.min(_,q.to)-1:Math.max(w,q.from)).right,dt=rt<p?p-rt+1e9:rt-p;(!P||$>dt)&&(P=q,$=dt)}}return P||(P=c[c.length-1]),P.from<w&&(P={from:w,to:P.to,level:P.level}),P.to>_&&(P={from:P.from,to:_,level:P.level}),P}var Mi;function go(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Mi==null){Mi=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Mi.appendChild(document.createTextNode("x")),Mi.appendChild(k("br"));Mi.appendChild(document.createTextNode("x"))}R(n.measure,Mi);var a=Mi.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),G(n.measure),a||1}function vo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");R(n.measure,a);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(n.cachedCharWidth=c),c||10}function nu(n){for(var i=n.display,a={},s={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var y=n.display.gutterSpecs[m].className;a[y]=p.offsetLeft+p.clientLeft+c,s[y]=p.clientWidth}return{fixedPos:ru(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function ru(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Od(n){var i=go(n.display),a=n.options.lineWrapping,s=a&&Math.max(5,n.display.scroller.clientWidth/vo(n.display)-3);return function(c){if(Qr(n.doc,c))return 0;var p=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(p+=c.widgets[m].height);return a?p+(Math.ceil(c.text.length/s)||1)*i:p+i}}function iu(n){var i=n.doc,a=Od(n);i.iter(function(s){var c=a(s);c!=s.height&&Fn(s,c)})}function Ni(n,i,a,s){var c=n.display;if(!a&&sn(i).getAttribute("cm-not-content")=="true")return null;var p,m,y=c.lineSpace.getBoundingClientRect();try{p=i.clientX-y.left,m=i.clientY-y.top}catch{return null}var w=tu(n,p,m),_;if(s&&w.xRel>0&&(_=Lt(n.doc,w.line).text).length==w.ch){var P=W(_,_.length,n.options.tabSize)-_.length;w=z(w.line,Math.max(0,Math.round((p-wd(n.display).left)/vo(n.display))-P))}return w}function Pi(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,s=0;s<a.length;s++)if(i-=a[s].size,i<0)return s}function an(n,i,a,s){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),s||(s=0);var c=n.display;if(s&&a<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=c.viewTo)Cr&&jc(n.doc,i)<c.viewTo&&ei(n);else if(a<=c.viewFrom)Cr&&ud(n.doc,a+s)>c.viewFrom?ei(n):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&a>=c.viewTo)ei(n);else if(i<=c.viewFrom){var p=Ga(n,a,a+s,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=s):ei(n)}else if(a>=c.viewTo){var m=Ga(n,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):ei(n)}else{var y=Ga(n,i,i,-1),w=Ga(n,a,a+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Wa(n,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):ei(n)}var _=c.externalMeasured;_&&(a<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function ti(n,i,a){n.curOp.viewChanged=!0;var s=n.display,c=n.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(s.externalMeasured=null),!(i<s.viewFrom||i>=s.viewTo)){var p=s.view[Pi(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);it(m,a)==-1&&m.push(a)}}}function ei(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ga(n,i,a,s){var c=Pi(n,i),p,m=n.display.view;if(!Cr||a==n.doc.first+n.doc.size)return{index:c,lineN:a};for(var y=n.display.viewFrom,w=0;w<c;w++)y+=m[w].size;if(y!=i){if(s>0){if(c==m.length-1)return null;p=y+m[c].size-i,c++}else p=y-i;i+=p,a+=p}for(;jc(n.doc,a)!=a;){if(c==(s<0?0:m.length-1))return null;a+=s*m[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:a}}function ww(n,i,a){var s=n.display,c=s.view;c.length==0||i>=s.viewTo||a<=s.viewFrom?(s.view=Wa(n,i,a),s.viewFrom=i):(s.viewFrom>i?s.view=Wa(n,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(Pi(n,i))),s.viewFrom=i,s.viewTo<a?s.view=s.view.concat(Wa(n,s.viewTo,a)):s.viewTo>a&&(s.view=s.view.slice(0,Pi(n,a)))),s.viewTo=a}function $d(n){for(var i=n.display.view,a=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++a}return a}function xs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Dd(n,i){i===void 0&&(i=!0);var a=n.doc,s={},c=s.cursors=document.createDocumentFragment(),p=s.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var y=0;y<a.sel.ranges.length;y++)if(!(!i&&y==a.sel.primIndex)){var w=a.sel.ranges[y];if(!(w.from().line>=n.display.viewTo||w.to().line<n.display.viewFrom)){var _=w.empty();if(m){var P=m(n,w);P&&ou(n,P,c)}else(_||n.options.showCursorWhenSelecting)&&ou(n,w.head,c);_||xw(n,w,p)}}return s}function ou(n,i,a){var s=jn(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),c=a.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)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var p=Va(n,i,"div",null,null),m=p.right-p.left;c.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(s.other){var y=a.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 Ka(n,i){return n.top-i.top||n.left-i.left}function xw(n,i,a){var s=n.display,c=n.doc,p=document.createDocumentFragment(),m=wd(n.display),y=m.left,w=Math.max(s.sizerWidth,Ai(n)-s.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function P(mt,Ct,Dt,Pt){Ct<0&&(Ct=0),Ct=Math.round(Ct),Pt=Math.round(Pt),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+mt+`px;
14
+ top: `+Ct+"px; width: "+(Dt??w-mt)+`px;
15
+ height: `+(Pt-Ct)+"px"))}function $(mt,Ct,Dt){var Pt=Lt(c,mt),Ut=Pt.text.length,ge,He;function Se(Me,un){return Va(n,z(mt,Me),"div",Pt,un)}function xn(Me,un,Ue){var $e=Pd(n,Pt,null,Me),Ne=un=="ltr"==(Ue=="after")?"left":"right",Te=Ue=="after"?$e.begin:$e.end-(/\s/.test(Pt.text.charAt($e.end-1))?2:1);return Se(Te,Ne)[Ne]}var cn=ye(Pt,c.direction);return yn(cn,Ct||0,Dt??Ut,function(Me,un,Ue,$e){var Ne=Ue=="ltr",Te=Se(Me,Ne?"left":"right"),fn=Se(un-1,Ne?"right":"left"),Ao=Ct==null&&Me==0,ai=Dt==null&&un==Ut,Ye=$e==0,cr=!cn||$e==cn.length-1;if(fn.top-Te.top<=3){var Be=(_?Ao:ai)&&Ye,Pu=(_?ai:Ao)&&cr,Mr=Be?y:(Ne?Te:fn).left,zi=Pu?w:(Ne?fn:Te).right;P(Mr,Te.top,zi-Mr,Te.bottom)}else{var Ii,en,Mo,Ou;Ne?(Ii=_&&Ao&&Ye?y:Te.left,en=_?w:xn(Me,Ue,"before"),Mo=_?y:xn(un,Ue,"after"),Ou=_&&ai&&cr?w:fn.right):(Ii=_?xn(Me,Ue,"before"):y,en=!_&&Ao&&Ye?w:Te.right,Mo=!_&&ai&&cr?y:fn.left,Ou=_?xn(un,Ue,"after"):w),P(Ii,Te.top,en-Ii,Te.bottom),Te.bottom<fn.top&&P(y,Te.bottom,null,fn.top),P(Mo,fn.top,Ou-Mo,fn.bottom)}(!ge||Ka(Te,ge)<0)&&(ge=Te),Ka(fn,ge)<0&&(ge=fn),(!He||Ka(Te,He)<0)&&(He=Te),Ka(fn,He)<0&&(He=fn)}),{start:ge,end:He}}var U=i.from(),q=i.to();if(U.line==q.line)$(U.line,U.ch,q.ch);else{var J=Lt(c,U.line),rt=Lt(c,q.line),dt=Un(J)==Un(rt),vt=$(U.line,U.ch,dt?J.text.length+1:null).end,St=$(q.line,dt?0:null,q.ch).start;dt&&(vt.top<St.top-2?(P(vt.right,vt.top,null,vt.bottom),P(y,St.top,St.left,St.bottom)):P(vt.right,vt.top,St.left-vt.right,vt.bottom)),vt.bottom<St.top&&P(y,vt.bottom,null,St.top)}a.appendChild(p)}function su(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||mo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Rd(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||lu(n))}function au(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&mo(n))},100)}function lu(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(me(n,"focus",n,i),n.state.focused=!0,Tt(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),su(n))}function mo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(me(n,"blur",n,i),n.state.focused=!1,pt(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Xa(n){for(var i=n.display,a=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m<i.view.length;m++){var y=i.view[m],w=n.options.lineWrapping,_=void 0,P=0;if(!y.hidden){if(c+=y.line.height,d&&g<8){var $=y.node.offsetTop+y.node.offsetHeight;_=$-a,a=$}else{var U=y.node.getBoundingClientRect();_=U.bottom-U.top,!w&&y.text.firstChild&&(P=y.text.firstChild.getBoundingClientRect().right-U.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(p-=q),Fn(y.line,_),zd(y.line),y.rest))for(var J=0;J<y.rest.length;J++)zd(y.rest[J]);if(P>n.display.sizerWidth){var rt=Math.ceil(P/vo(n.display));rt>n.display.maxLineLength&&(n.display.maxLineLength=rt,n.display.maxLine=y.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function zd(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],s=a.node.parentNode;s&&(a.height=s.offsetHeight)}}function Ya(n,i,a){var s=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;s=Math.floor(s-Ua(n));var c=a&&a.bottom!=null?a.bottom:s+n.wrapper.clientHeight,p=or(i,s),m=or(i,c);if(a&&a.ensure){var y=a.ensure.from.line,w=a.ensure.to.line;y<p?(p=y,m=or(i,Tr(Lt(i,y))+n.wrapper.clientHeight)):Math.min(w,i.lastLine())>=m&&(p=or(i,Tr(Lt(i,w))-n.wrapper.clientHeight),m=w)}return{from:p,to:Math.max(m,p+1)}}function _w(n,i){if(!ke(n,"scrollCursorIntoView")){var a=n.display,s=a.sizer.getBoundingClientRect(),c=null,p=a.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","​",null,`position: absolute;
16
+ top: `+(i.top-a.viewOffset-Ua(n.display))+`px;
17
+ height: `+(i.bottom-i.top+ar(n)+a.barHeight)+`px;
18
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(c),n.display.lineSpace.removeChild(m)}}}function Sw(n,i,a,s){s==null&&(s=0);var c;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?z(i.line,i.ch+1,"before"):i,i=i.ch?z(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,y=jn(n,i),w=!a||a==i?y:jn(n,a);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 _=cu(n,c),P=n.doc.scrollTop,$=n.doc.scrollLeft;if(_.scrollTop!=null&&(Ss(n,_.scrollTop),Math.abs(n.doc.scrollTop-P)>1&&(m=!0)),_.scrollLeft!=null&&(Oi(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-$)>1&&(m=!0)),!m)break}return c}function kw(n,i){var a=cu(n,i);a.scrollTop!=null&&Ss(n,a.scrollTop),a.scrollLeft!=null&&Oi(n,a.scrollLeft)}function cu(n,i){var a=n.display,s=go(n.display);i.top<0&&(i.top=0);var c=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,p=Yc(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var y=n.doc.height+Xc(a),w=i.top<s,_=i.bottom>y-s;if(i.top<c)m.scrollTop=w?0:i.top;else if(i.bottom>c+p){var P=Math.min(i.top,(_?y:i.bottom)-p);P!=c&&(m.scrollTop=P)}var $=n.options.fixedGutter?0:a.gutters.offsetWidth,U=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-$,q=Ai(n)-a.gutters.offsetWidth,J=i.right-i.left>q;return J&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<U?m.scrollLeft=Math.max(0,i.left+$-(J?0:10)):i.right>q+U-3&&(m.scrollLeft=i.right+(J?0:10)-q),m}function uu(n,i){i!=null&&(Za(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function yo(n){Za(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function _s(n,i,a){(i!=null||a!=null)&&Za(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Cw(n,i){Za(n),n.curOp.scrollToPos=i}function Za(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Md(n,i.from),s=Md(n,i.to);Id(n,a,s,i.margin)}}function Id(n,i,a,s){var c=cu(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-s,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+s});_s(n,c.scrollLeft,c.scrollTop)}function Ss(n,i){Math.abs(n.doc.scrollTop-i)<2||(l||hu(n,{top:i}),Fd(n,i,!0),l&&hu(n),Ts(n,100))}function Fd(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function Oi(n,i,a,s){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!s)&&(n.doc.scrollLeft=i,Ud(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function ks(n){var i=n.display,a=i.gutters.offsetWidth,s=Math.round(n.doc.height+Xc(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:s,scrollHeight:s+ar(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var $i=function(n,i,a){this.cm=a;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,n(s),n(c),yt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),yt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$i.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,s=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?s+"px":"0";var c=n.viewHeight-(i?s:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.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=a?s+"px":"0",this.horiz.style.left=n.barLeft+"px";var p=n.viewWidth-n.barLeft-(a?s:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?s:0,bottom:i?s:0}},$i.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$i.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$i.prototype.zeroWidthHack=function(){var n=j&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new et,this.disableVert=new et},$i.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function s(){var c=n.getBoundingClientRect(),p=a=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},$i.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function bo(n,i){i||(i=ks(n));var a=n.display.barWidth,s=n.display.barHeight;qd(n,i);for(var c=0;c<4&&a!=n.display.barWidth||s!=n.display.barHeight;c++)a!=n.display.barWidth&&n.options.lineWrapping&&Xa(n),qd(n,ks(n)),a=n.display.barWidth,s=n.display.barHeight}function qd(n,i){var a=n.display,s=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=s.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=s.bottom)+"px",a.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=s.bottom+"px",a.scrollbarFiller.style.width=s.right+"px"):a.scrollbarFiller.style.display="",s.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=s.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var Hd={native:$i,null:Cs};function Bd(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&pt(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Hd[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),yt(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?Oi(n,i):Ss(n,i)},n),n.display.scrollbars.addClass&&Tt(n.display.wrapper,n.display.scrollbars.addClass)}var Tw=0;function Di(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Tw,markArrays:null},rw(n.curOp)}function Ri(n){var i=n.curOp;i&&ow(i,function(a){for(var s=0;s<a.ops.length;s++)a.ops[s].cm.curOp=null;Ew(a)})}function Ew(n){for(var i=n.ops,a=0;a<i.length;a++)Lw(i[a]);for(var s=0;s<i.length;s++)Aw(i[s]);for(var c=0;c<i.length;c++)Mw(i[c]);for(var p=0;p<i.length;p++)Nw(i[p]);for(var m=0;m<i.length;m++)Pw(i[m])}function Lw(n){var i=n.cm,a=i.display;$w(i),n.updateMaxLine&&Gc(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Ja(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Aw(n){n.updatedDisplay=n.mustUpdate&&fu(n.cm,n.update)}function Mw(n){var i=n.cm,a=i.display;n.updatedDisplay&&Xa(i),n.barMeasure=ks(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=_d(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+ar(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Ai(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Nw(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&Oi(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==wt(Vt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&bo(i,n.barMeasure),n.updatedDisplay&&pu(i,n.barMeasure),n.selectionChanged&&su(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Rd(n.cm)}function Pw(n){var i=n.cm,a=i.display,s=i.doc;if(n.updatedDisplay&&Wd(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Fd(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&Oi(i,n.scrollLeft,!0,!0),n.scrollToPos){var c=Sw(i,Bt(s,n.scrollToPos.from),Bt(s,n.scrollToPos.to),n.scrollToPos.margin);_w(i,c)}var p=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(p)for(var y=0;y<p.length;++y)p[y].lines.length||me(p[y],"hide");if(m)for(var w=0;w<m.length;++w)m[w].lines.length&&me(m[w],"unhide");a.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&me(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function wn(n,i){if(n.curOp)return i();Di(n);try{return i()}finally{Ri(n)}}function Fe(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Di(n);try{return i.apply(n,arguments)}finally{Ri(n)}}}function tn(n){return function(){if(this.curOp)return n.apply(this,arguments);Di(this);try{return n.apply(this,arguments)}finally{Ri(this)}}}function qe(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Di(i);try{return n.apply(this,arguments)}finally{Ri(i)}}}function Ts(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Jt(Ow,n))}function Ow(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,s=gs(n,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,n.display.viewTo+500),function(p){if(s.line>=n.display.viewFrom){var m=p.styles,y=p.text.length>n.options.maxHighlightLength?Sr(i.mode,s.state):null,w=Yh(n,p,s,!0);y&&(s.state=y),p.styles=w.styles;var _=p.styleClasses,P=w.classes;P?p.styleClasses=P:_&&(p.styleClasses=null);for(var $=!m||m.length!=p.styles.length||_!=P&&(!_||!P||_.bgClass!=P.bgClass||_.textClass!=P.textClass),U=0;!$&&U<m.length;++U)$=m[U]!=p.styles[U];$&&c.push(s.line),p.stateAfter=s.save(),s.nextLine()}else p.text.length<=n.options.maxHighlightLength&&Hc(n,p.text,s),p.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>a)return Ts(n,n.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&wn(n,function(){for(var p=0;p<c.length;p++)ti(n,c[p],"text")})}}var Ja=function(n,i,a){var s=n.display;this.viewport=i,this.visible=Ya(s,n.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Ai(n),this.force=a,this.dims=nu(n),this.events=[]};Ja.prototype.signal=function(n,i){Je(n,i)&&this.events.push(arguments)},Ja.prototype.finish=function(){for(var n=0;n<this.events.length;n++)me.apply(null,this.events[n])};function $w(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ar(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ar(n)+"px",i.scrollbarsClipped=!0)}function Dw(n){if(n.hasFocus())return null;var i=wt(Vt(n));if(!i||!Q(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var s=Gt(n).getSelection();s.anchorNode&&s.extend&&Q(n.display.lineDiv,s.anchorNode)&&(a.anchorNode=s.anchorNode,a.anchorOffset=s.anchorOffset,a.focusNode=s.focusNode,a.focusOffset=s.focusOffset)}return a}function Rw(n){if(!(!n||!n.activeElt||n.activeElt==wt(n.activeElt.ownerDocument))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&Q(document.body,n.anchorNode)&&Q(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),s=i.createRange();s.setEnd(n.anchorNode,n.anchorOffset),s.collapse(!1),a.removeAllRanges(),a.addRange(s),a.extend(n.focusNode,n.focusOffset)}}function fu(n,i){var a=n.display,s=n.doc;if(i.editorIsHidden)return ei(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&$d(n)==0)return!1;jd(n)&&(ei(n),i.dims=nu(n));var c=s.first+s.size,p=Math.max(i.visible.from-n.options.viewportMargin,s.first),m=Math.min(c,i.visible.to+n.options.viewportMargin);a.viewFrom<p&&p-a.viewFrom<20&&(p=Math.max(s.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(c,a.viewTo)),Cr&&(p=jc(n.doc,p),m=ud(n.doc,m));var y=p!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;ww(n,p,m),a.viewOffset=Tr(Lt(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var w=$d(n);if(!y&&w==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=Dw(n);return w>4&&(a.lineDiv.style.display="none"),zw(n,a.updateLineNumbers,i.dims),w>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Rw(_),G(a.cursorDiv),G(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,y&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Ts(n,400)),a.updateLineNumbers=null,!0}function Wd(n,i){for(var a=i.viewport,s=!0;;s=!1){if(!s||!n.options.lineWrapping||i.oldDisplayWidth==Ai(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Xc(n.display)-Yc(n),a.top)}),i.visible=Ya(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else s&&(i.visible=Ya(n.display,n.doc,a));if(!fu(n,i))break;Xa(n);var c=ks(n);xs(n),bo(n,c),pu(n,c),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function hu(n,i){var a=new Ja(n,i);if(fu(n,a)){Xa(n),Wd(n,a);var s=ks(n);xs(n),bo(n,s),pu(n,s),a.finish()}}function zw(n,i,a){var s=n.display,c=n.options.lineNumbers,p=s.lineDiv,m=p.firstChild;function y(J){var rt=J.nextSibling;return v&&j&&n.display.currentWheelTarget==J?J.style.display="none":J.parentNode.removeChild(J),rt}for(var w=s.view,_=s.viewFrom,P=0;P<w.length;P++){var $=w[P];if(!$.hidden)if(!$.node||$.node.parentNode!=p){var U=uw(n,$,_,a);p.insertBefore(U,m)}else{for(;m!=$.node;)m=y(m);var q=c&&i!=null&&i<=_&&$.lineNumber;$.changes&&(it($.changes,"gutter")>-1&&(q=!1),gd(n,$,_,a)),q&&(G($.lineNumber),$.lineNumber.appendChild(document.createTextNode(D(n.options,_)))),m=$.node.nextSibling}_+=$.size}for(;m;)m=y(m)}function du(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Ie(n,"gutterChanged",n)}function pu(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+ar(n)+"px"}function Ud(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var s=ru(i)-i.scroller.scrollLeft+n.doc.scrollLeft,c=i.gutters.offsetWidth,p=s+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=p),a[m].gutterBackground&&(a[m].gutterBackground.style.left=p));var y=a[m].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=p}n.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function jd(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=D(n.options,i.first+i.size-1),s=n.display;if(a.length!=s.lineNumChars){var c=s.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=c.firstChild.offsetWidth,m=c.offsetWidth-p;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(p,s.lineGutter.offsetWidth-m)+1,s.lineNumWidth=s.lineNumInnerWidth+m,s.lineNumChars=s.lineNumInnerWidth?a.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",du(n.display),!0}return!1}function gu(n,i){for(var a=[],s=!1,c=0;c<n.length;c++){var p=n[c],m=null;if(typeof p!="string"&&(m=p.style,p=p.className),p=="CodeMirror-linenumbers")if(i)s=!0;else continue;a.push({className:p,style:m})}return i&&!s&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Vd(n){var i=n.gutters,a=n.gutterSpecs;G(i),n.lineGutter=null;for(var s=0;s<a.length;++s){var c=a[s],p=c.className,m=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+p));m&&(y.style.cssText=m),p=="CodeMirror-linenumbers"&&(n.lineGutter=y,y.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",du(n)}function Es(n){Vd(n.display),an(n),Ud(n)}function Iw(n,i,a,s){var c=this;this.input=a,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=H("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=H("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var p=H("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[p],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+Mt+"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"),d&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(l&&L)&&(c.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(c.wrapper):n(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=gu(s.gutters,s.lineNumbers),Vd(c),a.init(c)}var Qa=0,Lr=null;d?Lr=-.53:l?Lr=15:x?Lr=-.7:A&&(Lr=-1/3);function Gd(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Fw(n){var i=Gd(n);return i.x*=Lr,i.y*=Lr,i}function Kd(n,i){x&&S==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=Gd(i),s=a.x,c=a.y,p=Lr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,p=1);var m=n.display,y=m.scroller,w=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(s&&w||c&&_){if(c&&j&&v){t:for(var P=i.target,$=m.view;P!=y;P=P.parentNode)for(var U=0;U<$.length;U++)if($[U].node==P){n.display.currentWheelTarget=P;break t}}if(s&&!l&&!N&&p!=null){c&&_&&Ss(n,Math.max(0,y.scrollTop+c*p)),Oi(n,Math.max(0,y.scrollLeft+s*p)),(!c||c&&_)&&Ke(i),m.wheelStartX=null;return}if(c&&p!=null){var q=c*p,J=n.doc.scrollTop,rt=J+m.wrapper.clientHeight;q<0?J=Math.max(0,J+q-50):rt=Math.min(n.doc.height,rt+q+50),hu(n,{top:J,bottom:rt})}Qa<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 dt=y.scrollLeft-m.wheelStartX,vt=y.scrollTop-m.wheelStartY,St=vt&&m.wheelDY&&vt/m.wheelDY||dt&&m.wheelDX&&dt/m.wheelDX;m.wheelStartX=m.wheelStartY=null,St&&(Lr=(Lr*Qa+St)/(Qa+1),++Qa)}},200)):(m.wheelDX+=s,m.wheelDY+=c))}}var Pn=function(n,i){this.ranges=n,this.primIndex=i};Pn.prototype.primary=function(){return this.ranges[this.primIndex]},Pn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],s=n.ranges[i];if(!Ht(a.anchor,s.anchor)||!Ht(a.head,s.head))return!1}return!0},Pn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ce(Xt(this.ranges[i].anchor),Xt(this.ranges[i].head));return new Pn(n,this.primIndex)},Pn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Pn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var s=this.ranges[a];if(Z(i,s.from())>=0&&Z(n,s.to())<=0)return a}return-1};var ce=function(n,i){this.anchor=n,this.head=i};ce.prototype.from=function(){return Oe(this.anchor,this.head)},ce.prototype.to=function(){return oe(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vn(n,i,a){var s=n&&n.options.selectionsMayTouch,c=i[a];i.sort(function(U,q){return Z(U.from(),q.from())}),a=it(i,c);for(var p=1;p<i.length;p++){var m=i[p],y=i[p-1],w=Z(y.to(),m.from());if(s&&!m.empty()?w>0:w>=0){var _=Oe(y.from(),m.from()),P=oe(y.to(),m.to()),$=y.empty()?m.from()==m.head:y.from()==y.head;p<=a&&--a,i.splice(--p,2,new ce($?P:_,$?_:P))}}return new Pn(i,a)}function ni(n,i){return new Pn([new ce(n,i||n)],0)}function ri(n){return n.text?z(n.from.line+n.text.length-1,lt(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Xd(n,i){if(Z(n,i.from)<0)return n;if(Z(n,i.to)<=0)return ri(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,s=n.ch;return n.line==i.to.line&&(s+=ri(i).ch-i.to.ch),z(a,s)}function vu(n,i){for(var a=[],s=0;s<n.sel.ranges.length;s++){var c=n.sel.ranges[s];a.push(new ce(Xd(c.anchor,i),Xd(c.head,i)))}return Vn(n.cm,a,n.sel.primIndex)}function Yd(n,i,a){return n.line==i.line?z(a.line,n.ch-i.ch+a.ch):z(a.line+(n.line-i.line),n.ch)}function qw(n,i,a){for(var s=[],c=z(n.first,0),p=c,m=0;m<i.length;m++){var y=i[m],w=Yd(y.from,c,p),_=Yd(ri(y),c,p);if(c=y.to,p=_,a=="around"){var P=n.sel.ranges[m],$=Z(P.head,P.anchor)<0;s[m]=new ce($?_:w,$?w:_)}else s[m]=new ce(w,w)}return new Pn(s,n.sel.primIndex)}function mu(n){n.doc.mode=_r(n.options,n.doc.modeOption),Ls(n)}function Ls(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,Ts(n,100),n.state.modeGen++,n.curOp&&an(n)}function Zd(n,i){return i.from.ch==0&&i.to.ch==0&&lt(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function yu(n,i,a,s){function c(St){return a?a[St]:null}function p(St,mt,Ct){Kb(St,mt,Ct,s),Ie(St,"change",St,i)}function m(St,mt){for(var Ct=[],Dt=St;Dt<mt;++Dt)Ct.push(new fo(_[Dt],c(Dt),s));return Ct}var y=i.from,w=i.to,_=i.text,P=Lt(n,y.line),$=Lt(n,w.line),U=lt(_),q=c(_.length-1),J=w.line-y.line;if(i.full)n.insert(0,m(0,_.length)),n.remove(_.length,n.size-_.length);else if(Zd(n,i)){var rt=m(0,_.length-1);p($,$.text,q),J&&n.remove(y.line,J),rt.length&&n.insert(y.line,rt)}else if(P==$)if(_.length==1)p(P,P.text.slice(0,y.ch)+U+P.text.slice(w.ch),q);else{var dt=m(1,_.length-1);dt.push(new fo(U+P.text.slice(w.ch),q,s)),p(P,P.text.slice(0,y.ch)+_[0],c(0)),n.insert(y.line+1,dt)}else if(_.length==1)p(P,P.text.slice(0,y.ch)+_[0]+$.text.slice(w.ch),c(0)),n.remove(y.line+1,J);else{p(P,P.text.slice(0,y.ch)+_[0],c(0)),p($,U+$.text.slice(w.ch),q);var vt=m(1,_.length-1);J>1&&n.remove(y.line+1,J-1),n.insert(y.line+1,vt)}Ie(n,"change",n,i)}function ii(n,i,a){function s(c,p,m){if(c.linked)for(var y=0;y<c.linked.length;++y){var w=c.linked[y];if(w.doc!=p){var _=m&&w.sharedHist;a&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(n,null,!0)}function Jd(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,iu(n),mu(n),Qd(n),n.options.direction=i.direction,n.options.lineWrapping||Gc(n),n.options.mode=i.modeOption,an(n)}function Qd(n){(n.doc.direction=="rtl"?Tt:pt)(n.display.lineDiv,"CodeMirror-rtl")}function Hw(n){wn(n,function(){Qd(n),an(n)})}function tl(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function bu(n,i){var a={from:Xt(i.from),to:ri(i),text:kr(n,i.from,i.to)};return np(n,a,i.from.line,i.to.line+1),ii(n,function(s){return np(s,a,i.from.line,i.to.line+1)},!0),a}function tp(n){for(;n.length;){var i=lt(n);if(i.ranges)n.pop();else break}}function Bw(n,i){if(i)return tp(n.done),lt(n.done);if(n.done.length&&!lt(n.done).ranges)return lt(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),lt(n.done)}function ep(n,i,a,s){var c=n.history;c.undone.length=0;var p=+new Date,m,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>p-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=Bw(c,c.lastOp==s)))y=lt(m.changes),Z(i.from,i.to)==0&&Z(i.from,y.to)==0?y.to=ri(i):m.changes.push(bu(n,i));else{var w=lt(c.done);for((!w||!w.ranges)&&el(n.sel,c.done),m={changes:[bu(n,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(a),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=p,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||me(n,"historyAdded")}function Ww(n,i,a,s){var c=i.charAt(0);return c=="*"||c=="+"&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Uw(n,i,a,s){var c=n.history,p=s&&s.origin;a==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||Ww(n,p,lt(c.done),i))?c.done[c.done.length-1]=i:el(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=a,s&&s.clearRedo!==!1&&tp(c.undone)}function el(n,i){var a=lt(i);a&&a.ranges&&a.equals(n)||i.push(n)}function np(n,i,a,s){var c=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,s),function(m){m.markedSpans&&((c||(c=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function jw(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function Vw(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(jw(a[c]));return s}function rp(n,i){var a=Vw(n,i),s=Wc(n,i);if(!a)return s;if(!s)return a;for(var c=0;c<a.length;++c){var p=a[c],m=s[c];if(p&&m)t:for(var y=0;y<m.length;++y){for(var w=m[y],_=0;_<p.length;++_)if(p[_].marker==w.marker)continue t;p.push(w)}else m&&(a[c]=m)}return a}function wo(n,i,a){for(var s=[],c=0;c<n.length;++c){var p=n[c];if(p.ranges){s.push(a?Pn.prototype.deepCopy.call(p):p);continue}var m=p.changes,y=[];s.push({changes:y});for(var w=0;w<m.length;++w){var _=m[w],P=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var $ in _)(P=$.match(/^spans_(\d+)$/))&&it(i,Number(P[1]))>-1&&(lt(y)[$]=_[$],delete _[$])}}return s}function wu(n,i,a,s){if(s){var c=n.anchor;if(a){var p=Z(i,c)<0;p!=Z(a,c)<0?(c=i,i=a):p!=Z(i,a)<0&&(i=a)}return new ce(c,i)}else return new ce(a||i,i)}function nl(n,i,a,s,c){c==null&&(c=n.cm&&(n.cm.display.shift||n.extend)),Xe(n,new Pn([wu(n.sel.primary(),i,a,c)],0),s)}function ip(n,i,a){for(var s=[],c=n.cm&&(n.cm.display.shift||n.extend),p=0;p<n.sel.ranges.length;p++)s[p]=wu(n.sel.ranges[p],i[p],null,c);var m=Vn(n.cm,s,n.sel.primIndex);Xe(n,m,a)}function xu(n,i,a,s){var c=n.sel.ranges.slice(0);c[i]=a,Xe(n,Vn(n.cm,c,n.sel.primIndex),s)}function op(n,i,a,s){Xe(n,ni(i,a),s)}function Gw(n,i,a){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var p=0;p<c.length;p++)this.ranges[p]=new ce(Bt(n,c[p].anchor),Bt(n,c[p].head))},origin:a&&a.origin};return me(n,"beforeSelectionChange",n,s),n.cm&&me(n.cm,"beforeSelectionChange",n.cm,s),s.ranges!=i.ranges?Vn(n.cm,s.ranges,s.ranges.length-1):i}function sp(n,i,a){var s=n.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,rl(n,i,a)):Xe(n,i,a)}function Xe(n,i,a){rl(n,i,a),Uw(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function rl(n,i,a){(Je(n,"beforeSelectionChange")||n.cm&&Je(n.cm,"beforeSelectionChange"))&&(i=Gw(n,i,a));var s=a&&a.bias||(Z(i.primary().head,n.sel.primary().head)<0?-1:1);ap(n,cp(n,i,s,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&yo(n.cm)}function ap(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Pa(n.cm)),Ie(n,"cursorActivity",n))}function lp(n){ap(n,cp(n,n.sel,null,!1))}function cp(n,i,a,s){for(var c,p=0;p<i.ranges.length;p++){var m=i.ranges[p],y=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[p],w=il(n,m.anchor,y&&y.anchor,a,s),_=m.head==m.anchor?w:il(n,m.head,y&&y.head,a,s);(c||w!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,p)),c[p]=new ce(w,_))}return c?Vn(n.cm,c,i.primIndex):i}function xo(n,i,a,s,c){var p=Lt(n,i.line);if(p.markedSpans)for(var m=0;m<p.markedSpans.length;++m){var y=p.markedSpans[m],w=y.marker,_="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,P="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(P?y.to>=i.ch:y.to>i.ch))){if(c&&(me(w,"beforeCursorEnter"),w.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!w.atomic)continue;if(a){var $=w.find(s<0?1:-1),U=void 0;if((s<0?P:_)&&($=up(n,$,-s,$&&$.line==i.line?p:null)),$&&$.line==i.line&&(U=Z($,a))&&(s<0?U<0:U>0))return xo(n,$,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:P)&&(q=up(n,q,s,q.line==i.line?p:null)),q?xo(n,q,i,s,c):null}}return i}function il(n,i,a,s,c){var p=s||1,m=xo(n,i,a,p,c)||!c&&xo(n,i,a,p,!0)||xo(n,i,a,-p,c)||!c&&xo(n,i,a,-p,!0);return m||(n.cantEdit=!0,z(n.first,0))}function up(n,i,a,s){return a<0&&i.ch==0?i.line>n.first?Bt(n,z(i.line-1)):null:a>0&&i.ch==(s||Lt(n,i.line)).text.length?i.line<n.first+n.size-1?z(i.line+1,0):null:new z(i.line,i.ch+a)}function fp(n){n.setSelection(z(n.firstLine(),0),z(n.lastLine()),O)}function hp(n,i,a){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return a&&(s.update=function(c,p,m,y){c&&(s.from=Bt(n,c)),p&&(s.to=Bt(n,p)),m&&(s.text=m),y!==void 0&&(s.origin=y)}),me(n,"beforeChange",n,s),n.cm&&me(n.cm,"beforeChange",n.cm,s),s.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function _o(n,i,a){if(n.cm){if(!n.cm.curOp)return Fe(n.cm,_o)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Je(n,"beforeChange")||n.cm&&Je(n.cm,"beforeChange"))&&(i=hp(n,i,!0),!i))){var s=rd&&!a&&Ub(n,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)dp(n,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else dp(n,i)}}function dp(n,i){if(!(i.text.length==1&&i.text[0]==""&&Z(i.from,i.to)==0)){var a=vu(n,i);ep(n,i,a,n.cm?n.cm.curOp.id:NaN),As(n,i,a,Wc(n,i));var s=[];ii(n,function(c,p){!p&&it(s,c.history)==-1&&(mp(c.history,i),s.push(c.history)),As(c,i,null,Wc(c,i))})}}function ol(n,i,a){var s=n.cm&&n.cm.state.suppressEdits;if(!(s&&!a)){for(var c=n.history,p,m=n.sel,y=i=="undo"?c.done:c.undone,w=i=="undo"?c.undone:c.done,_=0;_<y.length&&(p=y[_],!(a?p.ranges&&!p.equals(n.sel):!p.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(p=y.pop(),p.ranges){if(el(p,w),a&&!p.equals(n.sel)){Xe(n,p,{clearRedo:!1});return}m=p}else if(s){y.push(p);return}else break;var P=[];el(m,w),w.push({changes:P,generation:c.generation}),c.generation=p.generation||++c.maxGeneration;for(var $=Je(n,"beforeChange")||n.cm&&Je(n.cm,"beforeChange"),U=function(rt){var dt=p.changes[rt];if(dt.origin=i,$&&!hp(n,dt,!1))return y.length=0,{};P.push(bu(n,dt));var vt=rt?vu(n,dt):lt(y);As(n,dt,vt,rp(n,dt)),!rt&&n.cm&&n.cm.scrollIntoView({from:dt.from,to:ri(dt)});var St=[];ii(n,function(mt,Ct){!Ct&&it(St,mt.history)==-1&&(mp(mt.history,dt),St.push(mt.history)),As(mt,dt,null,rp(mt,dt))})},q=p.changes.length-1;q>=0;--q){var J=U(q);if(J)return J.v}}}}function pp(n,i){if(i!=0&&(n.first+=i,n.sel=new Pn(gt(n.sel.ranges,function(c){return new ce(z(c.anchor.line+i,c.anchor.ch),z(c.head.line+i,c.head.ch))}),n.sel.primIndex),n.cm)){an(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,s=a.viewFrom;s<a.viewTo;s++)ti(n.cm,s,"gutter")}}function As(n,i,a,s){if(n.cm&&!n.cm.curOp)return Fe(n.cm,As)(n,i,a,s);if(i.to.line<n.first){pp(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var c=i.text.length-1-(n.first-i.from.line);pp(n,c),i={from:z(n.first,0),to:z(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var p=n.lastLine();i.to.line>p&&(i={from:i.from,to:z(p,Lt(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=kr(n,i.from,i.to),a||(a=vu(n,i)),n.cm?Kw(n.cm,i,s):yu(n,i,s),rl(n,a,O),n.cantEdit&&il(n,z(n.firstLine(),0))&&(n.cantEdit=!1)}}function Kw(n,i,a){var s=n.doc,c=n.display,p=i.from,m=i.to,y=!1,w=p.line;n.options.lineWrapping||(w=le(Un(Lt(s,p.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&&Pa(n),yu(s,i,a,Od(n)),n.options.lineWrapping||(s.iter(w,p.line+i.text.length,function(q){var J=Ba(q);J>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=J,c.maxLineChanged=!0,y=!1)}),y&&(n.curOp.updateMaxLine=!0)),zb(s,p.line),Ts(n,400);var _=i.text.length-(m.line-p.line)-1;i.full?an(n):p.line==m.line&&i.text.length==1&&!Zd(n.doc,i)?ti(n,p.line,"text"):an(n,p.line,m.line+1,_);var P=Je(n,"changes"),$=Je(n,"change");if($||P){var U={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};$&&Ie(n,"change",n,U),P&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(U)}n.display.selForContextMenu=null}function So(n,i,a,s,c){var p;s||(s=a),Z(s,a)<0&&(p=[s,a],a=p[0],s=p[1]),typeof i=="string"&&(i=n.splitLines(i)),_o(n,{from:a,to:s,text:i,origin:c})}function gp(n,i,a,s){a<n.line?n.line+=s:i<n.line&&(n.line=i,n.ch=0)}function vp(n,i,a,s){for(var c=0;c<n.length;++c){var p=n[c],m=!0;if(p.ranges){p.copied||(p=n[c]=p.deepCopy(),p.copied=!0);for(var y=0;y<p.ranges.length;y++)gp(p.ranges[y].anchor,i,a,s),gp(p.ranges[y].head,i,a,s);continue}for(var w=0;w<p.changes.length;++w){var _=p.changes[w];if(a<_.from.line)_.from=z(_.from.line+s,_.from.ch),_.to=z(_.to.line+s,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(n.splice(0,c+1),c=0)}}function mp(n,i){var a=i.from.line,s=i.to.line,c=i.text.length-(s-a)-1;vp(n.done,a,s,c),vp(n.undone,a,s,c)}function Ms(n,i,a,s){var c=i,p=i;return typeof i=="number"?p=Lt(n,Nn(n,i)):c=le(i),c==null?null:(s(p,c)&&n.cm&&ti(n.cm,c,a),p)}function Ns(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Ns.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,s=n+i;a<s;++a){var c=this.lines[a];this.height-=c.height,Xb(c),Ie(c,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var s=0;s<i.length;++s)i[s].parent=this},iterN:function(n,i,a){for(var s=n+i;n<s;++n)if(a(this.lines[n]))return!0}};function Ps(n){this.children=n;for(var i=0,a=0,s=0;s<n.length;++s){var c=n[s];i+=c.chunkSize(),a+=c.height,c.parent=this}this.size=i,this.height=a,this.parent=null}Ps.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var s=this.children[a],c=s.chunkSize();if(n<c){var p=Math.min(i,c-n),m=s.height;if(s.removeInner(n,p),this.height-=m-s.height,c==p&&(this.children.splice(a--,1),s.parent=null),(i-=p)==0)break;n=0}else n-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Ns))){var y=[];this.collapse(y),this.children=[new Ns(y)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var s=0;s<this.children.length;++s){var c=this.children[s],p=c.chunkSize();if(n<=p){if(c.insertInner(n,i,a),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var w=new Ns(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}n-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Ps(i);if(n.parent){n.size-=a.size,n.height-=a.height;var c=it(n.parent.children,n);n.parent.children.splice(c+1,0,a)}else{var s=new Ps(n.children);s.parent=n,n.children=[s,a],n=s}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var s=0;s<this.children.length;++s){var c=this.children[s],p=c.chunkSize();if(n<p){var m=Math.min(i,p-n);if(c.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=p}}};var Os=function(n,i,a){if(a)for(var s in a)a.hasOwnProperty(s)&&(this[s]=a[s]);this.doc=n,this.node=i};Os.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,s=le(a);if(!(s==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(a.widgets=null);var p=bs(this);Fn(a,Math.max(0,a.height-p)),n&&(wn(n,function(){yp(n,a,-p),ti(n,s,"widget")}),Ie(n,"lineWidgetCleared",n,this,s))}},Os.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,s=this.line;this.height=null;var c=bs(this)-i;c&&(Qr(this.doc,s)||Fn(s,s.height+c),a&&wn(a,function(){a.curOp.forceUpdate=!0,yp(a,s,c),Ie(a,"lineWidgetChanged",a,n,le(s))}))},Qe(Os);function yp(n,i,a){Tr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&uu(n,a)}function Xw(n,i,a,s){var c=new Os(n,a,s),p=n.cm;return p&&c.noHScroll&&(p.display.alignWidgets=!0),Ms(n,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,p&&!Qr(n,m)){var w=Tr(m)<n.scrollTop;Fn(m,m.height+bs(c)),w&&uu(p,c.height),p.curOp.forceUpdate=!0}return!0}),p&&Ie(p,"lineWidgetAdded",p,c,typeof i=="number"?i:le(i)),c}var bp=0,oi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++bp};oi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Di(n),Je(this,"clear")){var a=this.find();a&&Ie(this,"clear",a.from,a.to)}for(var s=null,c=null,p=0;p<this.lines.length;++p){var m=this.lines[p],y=vs(m.markedSpans,this);n&&!this.collapsed?ti(n,le(m),"text"):n&&(y.to!=null&&(c=le(m)),y.from!=null&&(s=le(m))),m.markedSpans=qb(m.markedSpans,y),y.from==null&&this.collapsed&&!Qr(this.doc,m)&&n&&Fn(m,go(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=Un(this.lines[w]),P=Ba(_);P>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=P,n.display.maxLineChanged=!0)}s!=null&&n&&this.collapsed&&an(n,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&lp(n.doc)),n&&Ie(n,"markerCleared",n,this,s,c),i&&Ri(n),this.parent&&this.parent.clear()}},oi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,s,c=0;c<this.lines.length;++c){var p=this.lines[c],m=vs(p.markedSpans,this);if(m.from!=null&&(a=z(i?p:le(p),m.from),n==-1))return a;if(m.to!=null&&(s=z(i?p:le(p),m.to),n==1))return s}return a&&{from:a,to:s}},oi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,s=this.doc.cm;!i||!s||wn(s,function(){var c=i.line,p=le(i.line),m=Zc(s,p);if(m&&(Cd(m),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Qr(a.doc,c)&&a.height!=null){var y=a.height;a.height=null;var w=bs(a)-y;w&&Fn(c,c.height+w)}Ie(s,"markerChanged",s,n)})},oi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||it(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},oi.prototype.detachLine=function(n){if(this.lines.splice(it(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Qe(oi);function ko(n,i,a,s,c){if(s&&s.shared)return Yw(n,i,a,s,c);if(n.cm&&!n.cm.curOp)return Fe(n.cm,ko)(n,i,a,s,c);var p=new oi(n,c),m=Z(i,a);if(s&&_t(s,p,!1),m>0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=H("span",[p.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(cd(n,i.line,i,a,p)||i.line!=a.line&&cd(n,a.line,i,a,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fb()}p.addToHistory&&ep(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var y=i.line,w=n.cm,_;if(n.iter(y,a.line+1,function($){w&&p.collapsed&&!w.options.lineWrapping&&Un($)==w.display.maxLine&&(_=!0),p.collapsed&&y!=i.line&&Fn($,0),Hb($,new Ia(p,y==i.line?i.ch:null,y==a.line?a.ch:null),n.cm&&n.cm.curOp),++y}),p.collapsed&&n.iter(i.line,a.line+1,function($){Qr(n,$)&&Fn($,0)}),p.clearOnEnter&&yt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(Ib(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++bp,p.atomic=!0),w){if(_&&(w.curOp.updateMaxLine=!0),p.collapsed)an(w,i.line,a.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var P=i.line;P<=a.line;P++)ti(w,P,"text");p.atomic&&lp(w.doc),Ie(w,"markerAdded",w,p)}return p}var $s=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};$s.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Ie(this,"clear")}},$s.prototype.find=function(n,i){return this.primary.find(n,i)},Qe($s);function Yw(n,i,a,s,c){s=_t(s),s.shared=!1;var p=[ko(n,i,a,s,c)],m=p[0],y=s.widgetNode;return ii(n,function(w){y&&(s.widgetNode=y.cloneNode(!0)),p.push(ko(w,Bt(w,i),Bt(w,a),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;m=lt(p)}),new $s(p,m)}function wp(n){return n.findMarks(z(n.first,0),n.clipPos(z(n.lastLine())),function(i){return i.parent})}function Zw(n,i){for(var a=0;a<i.length;a++){var s=i[a],c=s.find(),p=n.clipPos(c.from),m=n.clipPos(c.to);if(Z(p,m)){var y=ko(n,p,m,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function Jw(n){for(var i=function(s){var c=n[s],p=[c.primary.doc];ii(c.primary.doc,function(w){return p.push(w)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];it(p,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var Qw=0,ln=function(n,i,a,s,c){if(!(this instanceof ln))return new ln(n,i,a,s,c);a==null&&(a=0),Ps.call(this,[new Ns([new fo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var p=z(a,0);this.sel=ni(p),this.history=new tl(null),this.id=++Qw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),yu(this,{from:p,to:p,text:n}),Xe(this,ni(p),O)};ln.prototype=$t(Ps.prototype,{constructor:ln,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,s=0;s<i.length;++s)a+=i[s].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=uo(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:qe(function(n){var i=z(this.first,0),a=this.first+this.size-1;_o(this,{from:i,to:z(a,Lt(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&_s(this.cm,0,0),Xe(this,ni(i),O)}),replaceRange:function(n,i,a,s){i=Bt(this,i),a=a?Bt(this,a):i,So(this,n,i,a,s)},getRange:function(n,i,a){var s=kr(this,Bt(this,n),Bt(this,i));return a===!1?s:a===""?s.join(""):s.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(C(this,n))return Lt(this,n)},getLineNumber:function(n){return le(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Lt(this,n)),Un(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Bt(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qe(function(n,i,a){op(this,Bt(this,typeof n=="number"?z(n,i||0):n),null,a)}),setSelection:qe(function(n,i,a){op(this,Bt(this,n),Bt(this,i||n),a)}),extendSelection:qe(function(n,i,a){nl(this,Bt(this,n),i&&Bt(this,i),a)}),extendSelections:qe(function(n,i){ip(this,Xh(this,n),i)}),extendSelectionsBy:qe(function(n,i){var a=gt(this.sel.ranges,n);ip(this,Xh(this,a),i)}),setSelections:qe(function(n,i,a){if(n.length){for(var s=[],c=0;c<n.length;c++)s[c]=new ce(Bt(this,n[c].anchor),Bt(this,n[c].head||n[c].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),Xe(this,Vn(this.cm,s,i),a)}}),addSelection:qe(function(n,i,a){var s=this.sel.ranges.slice(0);s.push(new ce(Bt(this,n),Bt(this,i||n))),Xe(this,Vn(this.cm,s,s.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,s=0;s<i.length;s++){var c=kr(this,i[s].from(),i[s].to());a=a?a.concat(c):c}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,s=0;s<a.length;s++){var c=kr(this,a[s].from(),a[s].to());n!==!1&&(c=c.join(n||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(n,i,a){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=n;this.replaceSelections(s,i,a||"+input")},replaceSelections:qe(function(n,i,a){for(var s=[],c=this.sel,p=0;p<c.ranges.length;p++){var m=c.ranges[p];s[p]={from:m.from(),to:m.to(),text:this.splitLines(n[p]),origin:a}}for(var y=i&&i!="end"&&qw(this,s,i),w=s.length-1;w>=0;w--)_o(this,s[w]);y?sp(this,y):this.cm&&yo(this.cm)}),undo:qe(function(){ol(this,"undo")}),redo:qe(function(){ol(this,"redo")}),undoSelection:qe(function(){ol(this,"undo",!0)}),redoSelection:qe(function(){ol(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,s=0;s<n.done.length;s++)n.done[s].ranges||++i;for(var c=0;c<n.undone.length;c++)n.undone[c].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new tl(this.history),ii(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:wo(this.history.done),undone:wo(this.history.undone)}},setHistory:function(n){var i=this.history=new tl(this.history);i.done=wo(n.done.slice(0),null,!0),i.undone=wo(n.undone.slice(0),null,!0)},setGutterMarker:qe(function(n,i,a){return Ms(this,n,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=a,!a&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:qe(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Ms(i,a,"gutter",function(){return a.gutterMarkers[n]=null,jt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!C(this,n)||(i=n,n=Lt(this,n),!n))return null}else if(i=le(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:qe(function(n,i,a){return Ms(this,n,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=a;else{if(kt(a).test(s[c]))return!1;s[c]+=" "+a}return!0})}),removeLineClass:qe(function(n,i,a){return Ms(this,n,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",p=s[c];if(p)if(a==null)s[c]=null;else{var m=p.match(kt(a));if(!m)return!1;var y=m.index+m[0].length;s[c]=p.slice(0,m.index)+(!m.index||y==p.length?"":" ")+p.slice(y)||null}else return!1;return!0})}),addLineWidget:qe(function(n,i,a){return Xw(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return ko(this,Bt(this,n),Bt(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Bt(this,n),ko(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Bt(this,n);var i=[],a=Lt(this,n.line).markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];(c.from==null||c.from<=n.ch)&&(c.to==null||c.to>=n.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(n,i,a){n=Bt(this,n),i=Bt(this,i);var s=[],c=n.line;return this.iter(n.line,i.line+1,function(p){var m=p.markedSpans;if(m)for(var y=0;y<m.length;y++){var w=m[y];!(w.to!=null&&c==n.line&&n.ch>=w.to||w.from==null&&c!=n.line||w.from!=null&&c==i.line&&w.from>=i.ch)&&(!a||a(w.marker))&&s.push(w.marker.parent||w.marker)}++c}),s},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;++s)a[s].from!=null&&n.push(a[s].marker)}),n},posFromIndex:function(n){var i,a=this.first,s=this.lineSeparator().length;return this.iter(function(c){var p=c.text.length+s;if(p>n)return i=n,!0;n-=p,++a}),Bt(this,z(a,i))},indexFromPos:function(n){n=Bt(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(s){i+=s.text.length+a}),i},copy:function(n){var i=new ln(uo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var s=new ln(uo(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:n.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],Zw(s,wp(this)),s},unlinkDoc:function(n){if(n instanceof we&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),Jw(wp(this));break}}if(n.history==this.history){var s=[n.id];ii(n,function(c){return s.push(c.id)},!0),n.history=new tl(null),n.history.done=wo(this.history.done,s),n.history.undone=wo(this.history.undone,s)}},iterLinkedDocs:function(n){ii(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ds(n)},lineSeparator:function(){return this.lineSep||`
19
+ `},setDirection:qe(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Hw(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var xp=0;function tx(n){var i=this;if(_p(i),!(ke(i,n)||Er(i.display,n))){Ke(n),d&&(xp=+new Date);var a=Ni(i,n,!0),s=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,p=Array(c),m=0,y=function(){++m==c&&Fe(i,function(){a=Bt(i.doc,a);var q={from:a,to:a,text:i.doc.splitLines(p.filter(function(J){return J!=null}).join(i.doc.lineSeparator())),origin:"paste"};_o(i.doc,q),sp(i.doc,ni(Bt(i.doc,a),Bt(i.doc,ri(q))))})()},w=function(q,J){if(i.options.allowDropFileTypes&&it(i.options.allowDropFileTypes,q.type)==-1){y();return}var rt=new FileReader;rt.onerror=function(){return y()},rt.onload=function(){var dt=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(dt)){y();return}p[J]=dt,y()},rt.readAsText(q)},_=0;_<s.length;_++)w(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var P=n.dataTransfer.getData("Text");if(P){var $;if(i.state.draggingText&&!i.state.draggingText.copy&&($=i.listSelections()),rl(i.doc,ni(a,a)),$)for(var U=0;U<$.length;++U)So(i.doc,"",$[U].anchor,$[U].head,"drag");i.replaceSelection(P,"around","paste"),i.display.input.focus()}}catch{}}}}function ex(n,i){if(d&&(!n.state.draggingText||+new Date-xp<100)){xr(i);return}if(!(ke(n,i)||Er(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",N&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),N&&a.parentNode.removeChild(a)}}function nx(n,i){var a=Ni(n,i);if(a){var s=document.createDocumentFragment();ou(n,a,s),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),R(n.display.dragCursor,s)}}function _p(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Sp(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&a.push(c)}a.length&&a[0].operation(function(){for(var p=0;p<a.length;p++)n(a[p])})}}var kp=!1;function rx(){kp||(ix(),kp=!0)}function ix(){var n;yt(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Sp(ox)},100))}),yt(window,"blur",function(){return Sp(mo)})}function ox(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var si={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ds=0;Ds<10;Ds++)si[Ds+48]=si[Ds+96]=String(Ds);for(var sl=65;sl<=90;sl++)si[sl]=String.fromCharCode(sl);for(var Rs=1;Rs<=12;Rs++)si[Rs+111]=si[Rs+63235]="F"+Rs;var Ar={};Ar.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"},Ar.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"},Ar.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"},Ar.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"]},Ar.default=j?Ar.macDefault:Ar.pcDefault;function sx(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,s,c,p,m=0;m<i.length-1;m++){var y=i[m];if(/^(cmd|meta|m)$/i.test(y))p=!0;else if(/^a(lt)?$/i.test(y))a=!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 a&&(n="Alt-"+n),s&&(n="Ctrl-"+n),p&&(n="Cmd-"+n),c&&(n="Shift-"+n),n}function ax(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(s=="..."){delete n[a];continue}for(var c=gt(a.split(" "),sx),p=0;p<c.length;p++){var m=void 0,y=void 0;p==c.length-1?(y=c.join(" "),m=s):(y=c.slice(0,p+1).join(" "),m="...");var w=i[y];if(!w)i[y]=m;else if(w!=m)throw new Error("Inconsistent bindings for "+y)}delete n[a]}for(var _ in i)n[_]=i[_];return n}function Co(n,i,a,s){i=al(i);var c=i.call?i.call(n,s):i[n];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&a(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Co(n,i.fallthrough,a,s);for(var p=0;p<i.fallthrough.length;p++){var m=Co(n,i.fallthrough[p],a,s);if(m)return m}}}function Cp(n){var i=typeof n=="string"?n:si[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Tp(n,i,a){var s=n;return i.altKey&&s!="Alt"&&(n="Alt-"+n),(st?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(n="Ctrl-"+n),(st?i.ctrlKey:i.metaKey)&&s!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&s!="Shift"&&(n="Shift-"+n),n}function Ep(n,i){if(N&&n.keyCode==34&&n.char)return!1;var a=si[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Tp(a,n,i))}function al(n){return typeof n=="string"?Ar[n]:n}function To(n,i){for(var a=n.doc.sel.ranges,s=[],c=0;c<a.length;c++){for(var p=i(a[c]);s.length&&Z(p.from,lt(s).to)<=0;){var m=s.pop();if(Z(m.from,p.from)<0){p.from=m.from;break}}s.push(p)}wn(n,function(){for(var y=s.length-1;y>=0;y--)So(n.doc,"",s[y].from,s[y].to,"+delete");yo(n)})}function _u(n,i,a){var s=ue(n.text,i+a,a);return s<0||s>n.text.length?null:s}function Su(n,i,a){var s=_u(n,i.ch,a);return s==null?null:new z(i.line,s,a<0?"after":"before")}function ku(n,i,a,s,c){if(n){i.doc.direction=="rtl"&&(c=-c);var p=ye(a,i.doc.direction);if(p){var m=c<0?lt(p):p[0],y=c<0==(m.level==1),w=y?"after":"before",_;if(m.level>0||i.doc.direction=="rtl"){var P=po(i,a);_=c<0?a.text.length-1:0;var $=lr(i,P,_).top;_=te(function(U){return lr(i,P,U).top==$},c<0==(m.level==1)?m.from:m.to-1,_),w=="before"&&(_=_u(a,_,1))}else _=c<0?m.to:m.from;return new z(s,_,w)}}return new z(s,c<0?a.text.length:0,c<0?"before":"after")}function lx(n,i,a,s){var c=ye(i,n.doc.direction);if(!c)return Su(i,a,s);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var p=We(c,a.ch,a.sticky),m=c[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(s>0?m.to>a.ch:m.from<a.ch))return Su(i,a,s);var y=function(vt,St){return _u(i,vt instanceof z?vt.ch:vt,St)},w,_=function(vt){return n.options.lineWrapping?(w=w||po(n,i),Pd(n,i,w,vt)):{begin:0,end:i.text.length}},P=_(a.sticky=="before"?y(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var $=m.level==1==s<0,U=y(a,$?1:-1);if(U!=null&&($?U<=m.to&&U<=P.end:U>=m.from&&U>=P.begin)){var q=$?"before":"after";return new z(a.line,U,q)}}var J=function(vt,St,mt){for(var Ct=function(ge,He){return He?new z(a.line,y(ge,1),"before"):new z(a.line,ge,"after")};vt>=0&&vt<c.length;vt+=St){var Dt=c[vt],Pt=St>0==(Dt.level!=1),Ut=Pt?mt.begin:y(mt.end,-1);if(Dt.from<=Ut&&Ut<Dt.to||(Ut=Pt?Dt.from:y(Dt.to,-1),mt.begin<=Ut&&Ut<mt.end))return Ct(Ut,Pt)}},rt=J(p+s,s,P);if(rt)return rt;var dt=s>0?P.end:y(P.begin,-1);return dt!=null&&!(s>0&&dt==i.text.length)&&(rt=J(s>0?0:c.length-1,s,_(dt)),rt)?rt:null}var zs={selectAll:fp,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),O)},killLine:function(n){return To(n,function(i){if(i.empty()){var a=Lt(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:z(i.head.line+1,0)}:{from:i.head,to:z(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return To(n,function(i){return{from:z(i.from().line,0),to:Bt(n.doc,z(i.to().line+1,0))}})},delLineLeft:function(n){return To(n,function(i){return{from:z(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return To(n,function(i){var a=n.charCoords(i.head,"div").top+5,s=n.coordsChar({left:0,top:a},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(n){return To(n,function(i){var a=n.charCoords(i.head,"div").top+5,s=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:s}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(z(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(z(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Lp(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Ap(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return cx(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},K)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},K)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,s=n.coordsChar({left:0,top:a},"div");return s.ch<n.getLine(s.line).search(/\S/)?Ap(n,i.head):s},K)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),s=n.options.tabSize,c=0;c<a.length;c++){var p=a[c].from(),m=W(n.getLine(p.line),p.ch,s);i.push(at(s-m%s))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return wn(n,function(){for(var i=n.listSelections(),a=[],s=0;s<i.length;s++)if(i[s].empty()){var c=i[s].head,p=Lt(n.doc,c.line).text;if(p){if(c.ch==p.length&&(c=new z(c.line,c.ch-1)),c.ch>0)c=new z(c.line,c.ch+1),n.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),z(c.line,c.ch-2),c,"+transpose");else if(c.line>n.doc.first){var m=Lt(n.doc,c.line-1).text;m&&(c=new z(c.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),z(c.line-1,m.length-1),c,"+transpose"))}}a.push(new ce(c,c))}n.setSelections(a)})},newlineAndIndent:function(n){return wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var s=0;s<i.length;s++)n.indentLine(i[s].from().line,null,!0);yo(n)})},openLine:function(n){return n.replaceSelection(`
20
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Lp(n,i){var a=Lt(n.doc,i),s=Un(a);return s!=a&&(i=le(s)),ku(!0,n,s,i,1)}function cx(n,i){var a=Lt(n.doc,i),s=Vb(a);return s!=a&&(i=le(s)),ku(!0,n,a,i,-1)}function Ap(n,i){var a=Lp(n,i.line),s=Lt(n.doc,a.line),c=ye(s,n.doc.direction);if(!c||c[0].level==0){var p=Math.max(a.ch,s.text.search(/\S/)),m=i.line==a.line&&i.ch<=p&&i.ch;return z(a.line,m?0:p,a.sticky)}return a}function ll(n,i,a){if(typeof i=="string"&&(i=zs[i],!i))return!1;n.display.input.ensurePolled();var s=n.display.shift,c=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),c=i(n)!=Nt}finally{n.display.shift=s,n.state.suppressEdits=!1}return c}function ux(n,i,a){for(var s=0;s<n.state.keyMaps.length;s++){var c=Co(i,n.state.keyMaps[s],a,n);if(c)return c}return n.options.extraKeys&&Co(i,n.options.extraKeys,a,n)||Co(i,n.options.keyMap,a,n)}var fx=new et;function Is(n,i,a,s){var c=n.state.keySeq;if(c){if(Cp(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:fx.set(50,function(){n.state.keySeq==c&&(n.state.keySeq=null,n.display.input.reset())}),Mp(n,c+" "+i,a,s))return!0}return Mp(n,i,a,s)}function Mp(n,i,a,s){var c=ux(n,i,s);return c=="multi"&&(n.state.keySeq=i),c=="handled"&&Ie(n,"keyHandled",n,i,a),(c=="handled"||c=="multi")&&(Ke(a),su(n)),!!c}function Np(n,i){var a=Ep(i,!0);return a?i.shiftKey&&!n.state.keySeq?Is(n,"Shift-"+a,i,function(s){return ll(n,s,!0)})||Is(n,a,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return ll(n,s)}):Is(n,a,i,function(s){return ll(n,s)}):!1}function hx(n,i,a){return Is(n,"'"+a+"'",i,function(s){return ll(n,s,!0)})}var Cu=null;function Pp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=wt(Vt(i)),!ke(i,n))){d&&g<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var s=Np(i,n);N&&(Cu=s?a:null,!s&&a==88&&!rr&&(j?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),l&&!j&&!s&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&dx(i)}}function dx(n){var i=n.display.lineDiv;Tt(i,"CodeMirror-crosshair");function a(s){(s.keyCode==18||!s.altKey)&&(pt(i,"CodeMirror-crosshair"),Ge(document,"keyup",a),Ge(document,"mouseover",a))}yt(document,"keyup",a),yt(document,"mouseover",a)}function Op(n){n.keyCode==16&&(this.doc.sel.shift=!1),ke(this,n)}function $p(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Er(i.display,n)||ke(i,n)||n.ctrlKey&&!n.altKey||j&&n.metaKey)){var a=n.keyCode,s=n.charCode;if(N&&a==Cu){Cu=null,Ke(n);return}if(!(N&&(!n.which||n.which<10)&&Np(i,n))){var c=String.fromCharCode(s??a);c!="\b"&&(hx(i,n,c)||i.display.input.onKeyPress(n))}}}var px=400,Tu=function(n,i,a){this.time=n,this.pos=i,this.button=a};Tu.prototype.compare=function(n,i,a){return this.time+px>n&&Z(i,this.pos)==0&&a==this.button};var Fs,qs;function gx(n,i){var a=+new Date;return qs&&qs.compare(a,n,i)?(Fs=qs=null,"triple"):Fs&&Fs.compare(a,n,i)?(qs=new Tu(a,n,i),Fs=null,"double"):(Fs=new Tu(a,n,i),qs=null,"single")}function Dp(n){var i=this,a=i.display;if(!(ke(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Er(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Eu(i,n)){var s=Ni(i,n),c=hs(n),p=s?gx(s,c):"single";Gt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(n),!(s&&vx(i,c,s,p,n))&&(c==1?s?yx(i,s,p,n):sn(n)==a.scroller&&Ke(n):c==2?(s&&nl(i.doc,s),setTimeout(function(){return a.input.focus()},20)):c==3&&(ot?i.display.input.onContextMenu(n):au(i)))}}}function vx(n,i,a,s,c){var p="Click";return s=="double"?p="Double"+p:s=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Is(n,Tp(p,c),c,function(m){if(typeof m=="string"&&(m=zs[m]),!m)return!1;var y=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),y=m(n,a)!=Nt}finally{n.state.suppressEdits=!1}return y})}function mx(n,i,a){var s=n.getOption("configureMouse"),c=s?s(n,i,a):{};if(c.unit==null){var p=Y?a.shiftKey&&a.metaKey:a.altKey;c.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||n.doc.extend)&&(c.extend=n.doc.extend||a.shiftKey),c.addNew==null&&(c.addNew=j?a.metaKey:a.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(j?a.altKey:a.ctrlKey)),c}function yx(n,i,a,s){d?setTimeout(Jt(Rd,n),0):n.curOp.focus=wt(Vt(n));var c=mx(n,a,s),p=n.doc.sel,m;n.options.dragDrop&&Fc&&!n.isReadOnly()&&a=="single"&&(m=p.contains(i))>-1&&(Z((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(Z(m.to(),i)>0||i.xRel<0)?bx(n,s,i,c):wx(n,s,i,c)}function bx(n,i,a,s){var c=n.display,p=!1,m=Fe(n,function(_){v&&(c.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:au(n)),Ge(c.wrapper.ownerDocument,"mouseup",m),Ge(c.wrapper.ownerDocument,"mousemove",y),Ge(c.scroller,"dragstart",w),Ge(c.scroller,"drop",m),p||(Ke(_),s.addNew||nl(n.doc,a,null,null,s.extend),v&&!A||d&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){p=p||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},w=function(){return p=!0};v&&(c.scroller.draggable=!0),n.state.draggingText=m,m.copy=!s.moveOnDrag,yt(c.wrapper.ownerDocument,"mouseup",m),yt(c.wrapper.ownerDocument,"mousemove",y),yt(c.scroller,"dragstart",w),yt(c.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Rp(n,i,a){if(a=="char")return new ce(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ce(z(i.line,0),Bt(n.doc,z(i.line+1,0)));var s=a(n,i);return new ce(s.from,s.to)}function wx(n,i,a,s){d&&au(n);var c=n.display,p=n.doc;Ke(i);var m,y,w=p.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=p.sel.contains(a),y>-1?m=_[y]:m=new ce(a,a)):(m=p.sel.primary(),y=p.sel.primIndex),s.unit=="rectangle")s.addNew||(m=new ce(a,a)),a=Ni(n,i,!0,!0),y=-1;else{var P=Rp(n,a,s.unit);s.extend?m=wu(m,P.anchor,P.head,s.extend):m=P}s.addNew?y==-1?(y=_.length,Xe(p,Vn(n,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Xe(p,Vn(n,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=p.sel):xu(p,y,m,I):(y=0,Xe(p,new Pn([m],0),I),w=p.sel);var $=a;function U(mt){if(Z($,mt)!=0)if($=mt,s.unit=="rectangle"){for(var Ct=[],Dt=n.options.tabSize,Pt=W(Lt(p,a.line).text,a.ch,Dt),Ut=W(Lt(p,mt.line).text,mt.ch,Dt),ge=Math.min(Pt,Ut),He=Math.max(Pt,Ut),Se=Math.min(a.line,mt.line),xn=Math.min(n.lastLine(),Math.max(a.line,mt.line));Se<=xn;Se++){var cn=Lt(p,Se).text,Me=tt(cn,ge,Dt);ge==He?Ct.push(new ce(z(Se,Me),z(Se,Me))):cn.length>Me&&Ct.push(new ce(z(Se,Me),z(Se,tt(cn,He,Dt))))}Ct.length||Ct.push(new ce(a,a)),Xe(p,Vn(n,w.ranges.slice(0,y).concat(Ct),y),{origin:"*mouse",scroll:!1}),n.scrollIntoView(mt)}else{var un=m,Ue=Rp(n,mt,s.unit),$e=un.anchor,Ne;Z(Ue.anchor,$e)>0?(Ne=Ue.head,$e=Oe(un.from(),Ue.anchor)):(Ne=Ue.anchor,$e=oe(un.to(),Ue.head));var Te=w.ranges.slice(0);Te[y]=xx(n,new ce(Bt(p,$e),Ne)),Xe(p,Vn(n,Te,y),I)}}var q=c.wrapper.getBoundingClientRect(),J=0;function rt(mt){var Ct=++J,Dt=Ni(n,mt,!0,s.unit=="rectangle");if(Dt)if(Z(Dt,$)!=0){n.curOp.focus=wt(Vt(n)),U(Dt);var Pt=Ya(c,p);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout(Fe(n,function(){J==Ct&&rt(mt)}),150)}else{var Ut=mt.clientY<q.top?-20:mt.clientY>q.bottom?20:0;Ut&&setTimeout(Fe(n,function(){J==Ct&&(c.scroller.scrollTop+=Ut,rt(mt))}),50)}}function dt(mt){n.state.selectingText=!1,J=1/0,mt&&(Ke(mt),c.input.focus()),Ge(c.wrapper.ownerDocument,"mousemove",vt),Ge(c.wrapper.ownerDocument,"mouseup",St),p.history.lastSelOrigin=null}var vt=Fe(n,function(mt){mt.buttons===0||!hs(mt)?dt(mt):rt(mt)}),St=Fe(n,dt);n.state.selectingText=St,yt(c.wrapper.ownerDocument,"mousemove",vt),yt(c.wrapper.ownerDocument,"mouseup",St)}function xx(n,i){var a=i.anchor,s=i.head,c=Lt(n.doc,a.line);if(Z(a,s)==0&&a.sticky==s.sticky)return i;var p=ye(c);if(!p)return i;var m=We(p,a.ch,a.sticky),y=p[m];if(y.from!=a.ch&&y.to!=a.ch)return i;var w=m+(y.from==a.ch==(y.level!=1)?0:1);if(w==0||w==p.length)return i;var _;if(s.line!=a.line)_=(s.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var P=We(p,s.ch,s.sticky),$=P-m||(s.ch-a.ch)*(y.level==1?-1:1);P==w-1||P==w?_=$<0:_=$>0}var U=p[w+(_?-1:0)],q=_==(U.level==1),J=q?U.from:U.to,rt=q?"after":"before";return a.ch==J&&a.sticky==rt?i:new ce(new z(a.line,J,rt),s)}function zp(n,i,a,s){var c,p;if(i.touches)c=i.touches[0].clientX,p=i.touches[0].clientY;else try{c=i.clientX,p=i.clientY}catch{return!1}if(c>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;s&&Ke(i);var m=n.display,y=m.lineDiv.getBoundingClientRect();if(p>y.bottom||!Je(n,a))return fs(i);p-=y.top-m.viewOffset;for(var w=0;w<n.display.gutterSpecs.length;++w){var _=m.gutters.childNodes[w];if(_&&_.getBoundingClientRect().right>=c){var P=or(n.doc,p),$=n.display.gutterSpecs[w];return me(n,a,n,P,$.className,i),fs(i)}}}function Eu(n,i){return zp(n,i,"gutterClick",!0)}function Ip(n,i){Er(n.display,i)||_x(n,i)||ke(n,i,"contextmenu")||ot||n.display.input.onContextMenu(i)}function _x(n,i){return Je(n,"gutterContextMenu")?zp(n,i,"gutterContextMenu",!1):!1}function Fp(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ws(n)}var Eo={toString:function(){return"CodeMirror.Init"}},qp={},cl={};function Sx(n){var i=n.optionHandlers;function a(s,c,p,m){n.defaults[s]=c,p&&(i[s]=m?function(y,w,_){_!=Eo&&p(y,w,_)}:p)}n.defineOption=a,n.Init=Eo,a("value","",function(s,c){return s.setValue(c)},!0),a("mode",null,function(s,c){s.doc.modeOption=c,mu(s)},!0),a("indentUnit",2,mu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(s){Ls(s),ws(s),an(s)},!0),a("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var p=[],m=s.doc.first;s.doc.iter(function(w){for(var _=0;;){var P=w.text.indexOf(c,_);if(P==-1)break;_=P+c.length,p.push(z(m,P))}m++});for(var y=p.length-1;y>=0;y--)So(s.doc,c,p[y],z(p[y].line,p[y].ch+c.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,p){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=Eo&&s.refresh()}),a("specialCharPlaceholder",Jb,function(s){return s.refresh()},!0),a("electricChars",!0),a("inputStyle",L?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),a("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),a("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),a("rtlMoveVisually",!ft),a("wholeLineUpdateBefore",!0),a("theme","default",function(s){Fp(s),Es(s)},!0),a("keyMap","default",function(s,c,p){var m=al(c),y=p!=Eo&&al(p);y&&y.detach&&y.detach(s,m),m.attach&&m.attach(s,y||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Cx,!0),a("gutters",[],function(s,c){s.display.gutterSpecs=gu(c,s.options.lineNumbers),Es(s)},!0),a("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?ru(s.display)+"px":"0",s.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(s){return bo(s)},!0),a("scrollbarStyle","native",function(s){Bd(s),bo(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),a("lineNumbers",!1,function(s,c){s.display.gutterSpecs=gu(s.options.gutters,c),Es(s)},!0),a("firstLineNumber",1,Es,!0),a("lineNumberFormatter",function(s){return s},Es,!0),a("showCursorWhenSelecting",!1,xs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(s,c){c=="nocursor"&&(mo(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),a("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),a("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),a("dragDrop",!0,kx),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,xs,!0),a("singleCursorHeightPerLine",!0,xs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ls,!0),a("addModeClass",!1,Ls,!0),a("pollInterval",100),a("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),a("historyEventDelay",1250),a("viewportMargin",10,function(s){return s.refresh()},!0),a("maxHighlightLength",1e4,Ls,!0),a("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),a("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),a("autofocus",null),a("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),a("phrases",null)}function kx(n,i,a){var s=a&&a!=Eo;if(!i!=!s){var c=n.display.dragFunctions,p=i?yt:Ge;p(n.display.scroller,"dragstart",c.start),p(n.display.scroller,"dragenter",c.enter),p(n.display.scroller,"dragover",c.over),p(n.display.scroller,"dragleave",c.leave),p(n.display.scroller,"drop",c.drop)}}function Cx(n){n.options.lineWrapping?(Tt(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(pt(n.display.wrapper,"CodeMirror-wrap"),Gc(n)),iu(n),an(n),ws(n),setTimeout(function(){return bo(n)},100)}function we(n,i){var a=this;if(!(this instanceof we))return new we(n,i);this.options=i=i?_t(i):{},_t(qp,i,!1);var s=i.value;typeof s=="string"?s=new ln(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new we.inputStyles[i.inputStyle](this),p=this.display=new Iw(n,s,c,i);p.wrapper.CodeMirror=this,Fp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bd(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 et,keySeq:null,specialChars:null},i.autofocus&&!L&&p.input.focus(),d&&g<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Tx(this),rx(),Di(this),this.curOp.forceUpdate=!0,Jd(this,s),i.autofocus&&!L||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&lu(a)},20):mo(this);for(var m in cl)cl.hasOwnProperty(m)&&cl[m](this,i[m],Eo);jd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<Lu.length;++y)Lu[y](this);Ri(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}we.defaults=qp,we.optionHandlers=cl;function Tx(n){var i=n.display;yt(i.scroller,"mousedown",Fe(n,Dp)),d&&g<11?yt(i.scroller,"dblclick",Fe(n,function(w){if(!ke(n,w)){var _=Ni(n,w);if(!(!_||Eu(n,w)||Er(n.display,w))){Ke(w);var P=n.findWordAt(_);nl(n.doc,P.anchor,P.head)}}})):yt(i.scroller,"dblclick",function(w){return ke(n,w)||Ke(w)}),yt(i.scroller,"contextmenu",function(w){return Ip(n,w)}),yt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||Ip(n,w)});var a,s={end:0};function c(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function p(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 P=_.left-w.left,$=_.top-w.top;return P*P+$*$>20*20}yt(i.scroller,"touchstart",function(w){if(!ke(n,w)&&!p(w)&&!Eu(n,w)){i.input.ensurePolled(),clearTimeout(a);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)}}),yt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),yt(i.scroller,"touchend",function(w){var _=i.activeTouch;if(_&&!Er(i,w)&&_.left!=null&&!_.moved&&new Date-_.start<300){var P=n.coordsChar(i.activeTouch,"page"),$;!_.prev||m(_,_.prev)?$=new ce(P,P):!_.prev.prev||m(_,_.prev.prev)?$=n.findWordAt(P):$=new ce(z(P.line,0),Bt(n.doc,z(P.line+1,0))),n.setSelection($.anchor,$.head),n.focus(),Ke(w)}c()}),yt(i.scroller,"touchcancel",c),yt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ss(n,i.scroller.scrollTop),Oi(n,i.scroller.scrollLeft,!0),me(n,"scroll",n))}),yt(i.scroller,"mousewheel",function(w){return Kd(n,w)}),yt(i.scroller,"DOMMouseScroll",function(w){return Kd(n,w)}),yt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){ke(n,w)||xr(w)},over:function(w){ke(n,w)||(nx(n,w),xr(w))},start:function(w){return ex(n,w)},drop:Fe(n,tx),leave:function(w){ke(n,w)||_p(n)}};var y=i.input.getField();yt(y,"keyup",function(w){return Op.call(n,w)}),yt(y,"keydown",Fe(n,Pp)),yt(y,"keypress",Fe(n,$p)),yt(y,"focus",function(w){return lu(n,w)}),yt(y,"blur",function(w){return mo(n,w)})}var Lu=[];we.defineInitHook=function(n){return Lu.push(n)};function Hs(n,i,a,s){var c=n.doc,p;a==null&&(a="add"),a=="smart"&&(c.mode.indent?p=gs(n,i).state:a="prev");var m=n.options.tabSize,y=Lt(c,i),w=W(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],P;if(!s&&!/\S/.test(y.text))P=0,a="not";else if(a=="smart"&&(P=c.mode.indent(p,y.text.slice(_.length),y.text),P==Nt||P>150)){if(!s)return;a="prev"}a=="prev"?i>c.first?P=W(Lt(c,i-1).text,null,m):P=0:a=="add"?P=w+n.options.indentUnit:a=="subtract"?P=w-n.options.indentUnit:typeof a=="number"&&(P=w+a),P=Math.max(0,P);var $="",U=0;if(n.options.indentWithTabs)for(var q=Math.floor(P/m);q;--q)U+=m,$+=" ";if(U<P&&($+=at(P-U)),$!=_)return So(c,$,z(i,0),z(i,_.length),"+input"),y.stateAfter=null,!0;for(var J=0;J<c.sel.ranges.length;J++){var rt=c.sel.ranges[J];if(rt.head.line==i&&rt.head.ch<_.length){var dt=z(i,_.length);xu(c,J,new ce(dt,dt));break}}}var Gn=null;function ul(n){Gn=n}function Au(n,i,a,s,c){var p=n.doc;n.display.shift=!1,s||(s=p.sel);var m=+new Date-200,y=c=="paste"||n.state.pasteIncoming>m,w=ds(i),_=null;if(y&&s.ranges.length>1)if(Gn&&Gn.text.join(`
21
+ `)==i){if(s.ranges.length%Gn.text.length==0){_=[];for(var P=0;P<Gn.text.length;P++)_.push(p.splitLines(Gn.text[P]))}}else w.length==s.ranges.length&&n.options.pasteLinesPerSelection&&(_=gt(w,function(vt){return[vt]}));for(var $=n.curOp.updateInput,U=s.ranges.length-1;U>=0;U--){var q=s.ranges[U],J=q.from(),rt=q.to();q.empty()&&(a&&a>0?J=z(J.line,J.ch-a):n.state.overwrite&&!y?rt=z(rt.line,Math.min(Lt(p,rt.line).text.length,rt.ch+lt(w).length)):y&&Gn&&Gn.lineWise&&Gn.text.join(`
22
+ `)==w.join(`
23
+ `)&&(J=rt=z(J.line,0)));var dt={from:J,to:rt,text:_?_[U%_.length]:w,origin:c||(y?"paste":n.state.cutIncoming>m?"cut":"+input")};_o(n.doc,dt),Ie(n,"inputRead",n,dt)}i&&!y&&Bp(n,i),yo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=$),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Hp(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&wn(i,function(){return Au(i,a,0,null,"paste")}),!0}function Bp(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,s=a.ranges.length-1;s>=0;s--){var c=a.ranges[s];if(!(c.head.ch>100||s&&a.ranges[s-1].head.line==c.head.line)){var p=n.getModeAt(c.head),m=!1;if(p.electricChars){for(var y=0;y<p.electricChars.length;y++)if(i.indexOf(p.electricChars.charAt(y))>-1){m=Hs(n,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Lt(n.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Hs(n,c.head.line,"smart"));m&&Ie(n,"electricInput",n,c.head.line)}}}function Wp(n){for(var i=[],a=[],s=0;s<n.doc.sel.ranges.length;s++){var c=n.doc.sel.ranges[s].head.line,p={anchor:z(c,0),head:z(c+1,0)};a.push(p),i.push(n.getRange(p.anchor,p.head))}return{text:i,ranges:a}}function Mu(n,i,a,s){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",s?"on":"off"),n.setAttribute("spellcheck",!!i)}function Up(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),E&&(n.style.border="1px solid black"),i}function Ex(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Gt(this).focus(),this.display.input.focus()},setOption:function(s,c){var p=this.options,m=p[s];p[s]==c&&s!="mode"||(p[s]=c,i.hasOwnProperty(s)&&Fe(this,i[s])(this,c,m),me(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"](al(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,p=0;p<c.length;++p)if(c[p]==s||c[p].name==s)return c.splice(p,1),!0},addOverlay:tn(function(s,c){var p=s.token?s:n.getMode(this.options,s);if(p.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:p,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,an(this)}),removeOverlay:tn(function(s){for(var c=this.state.overlays,p=0;p<c.length;++p){var m=c[p].modeSpec;if(m==s||typeof s=="string"&&m.name==s){c.splice(p,1),this.state.modeGen++,an(this);return}}}),indentLine:tn(function(s,c,p){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),C(this.doc,s)&&Hs(this,s,c,p)}),indentSelection:tn(function(s){for(var c=this.doc.sel.ranges,p=-1,m=0;m<c.length;m++){var y=c[m];if(y.empty())y.head.line>p&&(Hs(this,y.head.line,s,!0),p=y.head.line,m==this.doc.sel.primIndex&&yo(this));else{var w=y.from(),_=y.to(),P=Math.max(p,w.line);p=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var $=P;$<p;++$)Hs(this,$,s);var U=this.doc.sel.ranges;w.ch==0&&c.length==U.length&&U[m].from().ch>0&&xu(this.doc,m,new ce(w,U[m].to()),O)}}}),getTokenAt:function(s,c){return td(this,s,c)},getLineTokens:function(s,c){return td(this,z(s),c,!0)},getTokenTypeAt:function(s){s=Bt(this.doc,s);var c=Zh(this,Lt(this.doc,s.line)),p=0,m=(c.length-1)/2,y=s.ch,w;if(y==0)w=c[2];else for(;;){var _=p+m>>1;if((_?c[_*2-1]:0)>=y)m=_;else if(c[_*2+1]<y)p=_+1;else{w=c[_*2+2];break}}var P=w?w.indexOf("overlay "):-1;return P<0?w:P==0?null:w.slice(0,P-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?n.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var p=[];if(!a.hasOwnProperty(c))return p;var m=a[c],y=this.getModeAt(s);if(typeof y[c]=="string")m[y[c]]&&p.push(m[y[c]]);else if(y[c])for(var w=0;w<y[c].length;w++){var _=m[y[c][w]];_&&p.push(_)}else y.helperType&&m[y.helperType]?p.push(m[y.helperType]):m[y.name]&&p.push(m[y.name]);for(var P=0;P<m._global.length;P++){var $=m._global[P];$.pred(y,this)&&it(p,$.val)==-1&&p.push($.val)}return p},getStateAfter:function(s,c){var p=this.doc;return s=Nn(p,s??p.first+p.size-1),gs(this,s+1,c).state},cursorCoords:function(s,c){var p,m=this.doc.sel.primary();return s==null?p=m.head:typeof s=="object"?p=Bt(this.doc,s):p=s?m.from():m.to(),jn(this,p,c||"page")},charCoords:function(s,c){return Va(this,Bt(this.doc,s),c||"page")},coordsChar:function(s,c){return s=Ad(this,s,c||"page"),tu(this,s.left,s.top)},lineAtHeight:function(s,c){return s=Ad(this,{top:s,left:0},c||"page").top,or(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,p){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=Lt(this.doc,s)}else y=s;return ja(this,y,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-Tr(y):0)},defaultTextHeight:function(){return go(this.display)},defaultCharWidth:function(){return vo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,p,m,y){var w=this.display;s=jn(this,Bt(this.doc,s));var _=s.bottom,P=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 $=Math.max(w.wrapper.clientHeight,this.doc.height),U=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(m=="above"||s.bottom+c.offsetHeight>$)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=$&&(_=s.bottom),P+c.offsetWidth>U&&(P=U-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(P=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?P=0:y=="middle"&&(P=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=P+"px"),p&&kw(this,{left:P,top:_,right:P+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:tn(Pp),triggerOnKeyPress:tn($p),triggerOnKeyUp:Op,triggerOnMouseDown:tn(Dp),execCommand:function(s){if(zs.hasOwnProperty(s))return zs[s].call(null,this)},triggerElectric:tn(function(s){Bp(this,s)}),findPosH:function(s,c,p,m){var y=1;c<0&&(y=-1,c=-c);for(var w=Bt(this.doc,s),_=0;_<c&&(w=Nu(this.doc,w,y,p,m),!w.hitSide);++_);return w},moveH:tn(function(s,c){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?Nu(p.doc,m.head,s,c,p.options.rtlMoveVisually):s<0?m.from():m.to()},K)}),deleteH:tn(function(s,c){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):To(this,function(y){var w=Nu(m,y.head,s,c,!1);return s<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(s,c,p,m){var y=1,w=m;c<0&&(y=-1,c=-c);for(var _=Bt(this.doc,s),P=0;P<c;++P){var $=jn(this,_,"div");if(w==null?w=$.left:$.left=w,_=jp(this,$,y,p),_.hitSide)break}return _},moveV:tn(function(s,c){var p=this,m=this.doc,y=[],w=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(P){if(w)return s<0?P.from():P.to();var $=jn(p,P.head,"div");P.goalColumn!=null&&($.left=P.goalColumn),y.push($.left);var U=jp(p,$,s,c);return c=="page"&&P==m.sel.primary()&&uu(p,Va(p,U,"div").top-$.top),U},K),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,p=Lt(c,s.line).text,m=s.ch,y=s.ch;if(p){var w=this.getHelper(s,"wordChars");(s.sticky=="before"||y==p.length)&&m?--m:++y;for(var _=p.charAt(m),P=It(_,w)?function($){return It($,w)}:/\s/.test(_)?function($){return/\s/.test($)}:function($){return!/\s/.test($)&&!It($)};m>0&&P(p.charAt(m-1));)--m;for(;y<p.length&&P(p.charAt(y));)++y}return new ce(z(s.line,m),z(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Tt(this.display.cursorDiv,"CodeMirror-overwrite"):pt(this.display.cursorDiv,"CodeMirror-overwrite"),me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt(Vt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:tn(function(s,c){_s(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-ar(this)-this.display.barHeight,width:s.scrollWidth-ar(this)-this.display.barWidth,clientHeight:Yc(this),clientWidth:Ai(this)}},scrollIntoView:tn(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:z(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?Cw(this,s):Id(this,s.from,s.to,s.margin)}),setSize:tn(function(s,c){var p=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&&Td(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(p,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,me(this,"refresh",this)}),operation:function(s){return wn(this,s)},startOperation:function(){return Di(this)},endOperation:function(){return Ri(this)},refresh:tn(function(){var s=this.display.cachedTextHeight;an(this),this.curOp.forceUpdate=!0,ws(this),_s(this,this.doc.scrollLeft,this.doc.scrollTop),du(this.display),(s==null||Math.abs(s-go(this.display))>.5||this.options.lineWrapping)&&iu(this),me(this,"refresh",this)}),swapDoc:tn(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Jd(this,s),ws(this),this.display.input.reset(),_s(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Ie(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}},Qe(n),n.registerHelper=function(s,c,p){a.hasOwnProperty(s)||(a[s]=n[s]={_global:[]}),a[s][c]=p},n.registerGlobalHelper=function(s,c,p,m){n.registerHelper(s,c,m),a[s]._global.push({pred:p,val:m})}}function Nu(n,i,a,s,c){var p=i,m=a,y=Lt(n,i.line),w=c&&n.direction=="rtl"?-a:a;function _(){var St=i.line+w;return St<n.first||St>=n.first+n.size?!1:(i=new z(St,i.ch,i.sticky),y=Lt(n,St))}function P(St){var mt;if(s=="codepoint"){var Ct=y.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ct))mt=null;else{var Dt=a>0?Ct>=55296&&Ct<56320:Ct>=56320&&Ct<57343;mt=new z(i.line,Math.max(0,Math.min(y.text.length,i.ch+a*(Dt?2:1))),-a)}}else c?mt=lx(n.cm,y,i,a):mt=Su(y,i,a);if(mt==null)if(!St&&_())i=ku(c,n.cm,y,i.line,w);else return!1;else i=mt;return!0}if(s=="char"||s=="codepoint")P();else if(s=="column")P(!0);else if(s=="word"||s=="group")for(var $=null,U=s=="group",q=n.cm&&n.cm.getHelper(i,"wordChars"),J=!0;!(a<0&&!P(!J));J=!1){var rt=y.text.charAt(i.ch)||`
24
+ `,dt=It(rt,q)?"w":U&&rt==`
25
+ `?"n":!U||/\s/.test(rt)?null:"p";if(U&&!J&&!dt&&(dt="s"),$&&$!=dt){a<0&&(a=1,P(),i.sticky="after");break}if(dt&&($=dt),a>0&&!P(!J))break}var vt=il(n,i,p,m,!0);return Ht(p,vt)&&(vt.hitSide=!0),vt}function jp(n,i,a,s){var c=n.doc,p=i.left,m;if(s=="page"){var y=Math.min(n.display.wrapper.clientHeight,Gt(n).innerHeight||c(n).documentElement.clientHeight),w=Math.max(y-.5*go(n.display),3);m=(a>0?i.bottom:i.top)+a*w}else s=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var _;_=tu(n,p,m),!!_.outside;){if(a<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=a*5}return _}var he=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new et,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};he.prototype.init=function(n){var i=this,a=this,s=a.cm,c=a.div=n.lineDiv;c.contentEditable=!0,Mu(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function p(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}yt(c,"paste",function(y){!p(y)||ke(s,y)||Hp(y,s)||g<=11&&setTimeout(Fe(s,function(){return i.updateFromDOM()}),20)}),yt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),yt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),yt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),yt(c,"touchstart",function(){return a.forceCompositionEnd()}),yt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!p(y)||ke(s,y))){if(s.somethingSelected())ul({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=Wp(s);ul({lineWise:!0,text:w.text}),y.type=="cut"&&s.operation(function(){s.setSelections(w.ranges,0,O),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Gn.text.join(`
26
+ `);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var P=Up(),$=P.firstChild;Mu($),s.display.lineSpace.insertBefore(P,s.display.lineSpace.firstChild),$.value=Gn.text.join(`
27
+ `);var U=wt(c.ownerDocument);zt($),setTimeout(function(){s.display.lineSpace.removeChild(P),U.focus(),U==c&&a.showPrimarySelection()},50)}}yt(c,"copy",m),yt(c,"cut",m)},he.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},he.prototype.prepareSelection=function(){var n=Dd(this.cm,!1);return n.focus=wt(this.div.ownerDocument)==this.div,n},he.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},he.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},he.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),s=a.from(),c=a.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){n.removeAllRanges();return}var p=fl(i,n.anchorNode,n.anchorOffset),m=fl(i,n.focusNode,n.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&Z(Oe(p,m),s)==0&&Z(oe(p,m),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&Vp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&Vp(i,c);if(!_){var P=y[y.length-1].measure,$=P.maps?P.maps[P.maps.length-1]:P.map;_={node:$[$.length-1],offset:$[$.length-2]-$[$.length-3]}}if(!w||!_){n.removeAllRanges();return}var U=n.rangeCount&&n.getRangeAt(0),q;try{q=B(w.node,w.offset,_.offset,_.node)}catch{}q&&(!l&&i.state.focused?(n.collapse(w.node,w.offset),q.collapsed||(n.removeAllRanges(),n.addRange(q))):(n.removeAllRanges(),n.addRange(q)),U&&n.anchorNode==null?n.addRange(U):l&&this.startGracePeriod()),this.rememberSelection()}},he.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},he.prototype.showMultipleSelections=function(n){R(this.cm.display.cursorDiv,n.cursors),R(this.cm.display.selectionDiv,n.selection)},he.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},he.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return Q(this.div,i)},he.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||wt(this.div.ownerDocument)!=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 n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},he.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},he.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(F&&x&&this.cm.display.gutterSpecs.length&&Lx(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=fl(i,n.anchorNode,n.anchorOffset),s=fl(i,n.focusNode,n.focusOffset);a&&s&&wn(i,function(){Xe(i.doc,ni(a,s),O),(a.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},he.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),s=a.from(),c=a.to();if(s.ch==0&&s.line>n.firstLine()&&(s=z(s.line-1,Lt(n.doc,s.line-1).length)),c.ch==Lt(n.doc,c.line).text.length&&c.line<n.lastLine()&&(c=z(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var p,m,y;s.line==i.viewFrom||(p=Pi(n,s.line))==0?(m=le(i.view[0].line),y=i.view[0].node):(m=le(i.view[p].line),y=i.view[p-1].node.nextSibling);var w=Pi(n,c.line),_,P;if(w==i.view.length-1?(_=i.viewTo-1,P=i.lineDiv.lastChild):(_=le(i.view[w+1].line)-1,P=i.view[w+1].node.previousSibling),!y)return!1;for(var $=n.doc.splitLines(Ax(n,y,P,m,_)),U=kr(n.doc,z(m,0),z(_,Lt(n.doc,_).text.length));$.length>1&&U.length>1;)if(lt($)==lt(U))$.pop(),U.pop(),_--;else if($[0]==U[0])$.shift(),U.shift(),m++;else break;for(var q=0,J=0,rt=$[0],dt=U[0],vt=Math.min(rt.length,dt.length);q<vt&&rt.charCodeAt(q)==dt.charCodeAt(q);)++q;for(var St=lt($),mt=lt(U),Ct=Math.min(St.length-($.length==1?q:0),mt.length-(U.length==1?q:0));J<Ct&&St.charCodeAt(St.length-J-1)==mt.charCodeAt(mt.length-J-1);)++J;if($.length==1&&U.length==1&&m==s.line)for(;q&&q>s.ch&&St.charCodeAt(St.length-J-1)==mt.charCodeAt(mt.length-J-1);)q--,J++;$[$.length-1]=St.slice(0,St.length-J).replace(/^\u200b+/,""),$[0]=$[0].slice(q).replace(/\u200b+$/,"");var Dt=z(m,q),Pt=z(_,U.length?lt(U).length-J:0);if($.length>1||$[0]||Z(Dt,Pt))return So(n.doc,$,Dt,Pt,"+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 n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},he.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&wn(this.cm,function(){return an(n.cm)})},he.prototype.setUneditable=function(n){n.contentEditable="false"},he.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Fe(this.cm,Au)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},he.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},he.prototype.onContextMenu=function(){},he.prototype.resetPosition=function(){},he.prototype.needsContentAttribute=!0;function Vp(n,i){var a=Zc(n,i.line);if(!a||a.hidden)return null;var s=Lt(n.doc,i.line),c=xd(a,s,i.line),p=ye(s,n.doc.direction),m="left";if(p){var y=We(p,i.ch);m=y%2?"right":"left"}var w=kd(c.map,i.ch,m);return w.offset=w.collapse=="right"?w.end:w.start,w}function Lx(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Lo(n,i){return i&&(n.bad=!0),n}function Ax(n,i,a,s,c){var p="",m=!1,y=n.doc.lineSeparator(),w=!1;function _(q){return function(J){return J.id==q}}function P(){m&&(p+=y,w&&(p+=y),m=w=!1)}function $(q){q&&(P(),p+=q)}function U(q){if(q.nodeType==1){var J=q.getAttribute("cm-text");if(J){$(J);return}var rt=q.getAttribute("cm-marker"),dt;if(rt){var vt=n.findMarks(z(s,0),z(c+1,0),_(+rt));vt.length&&(dt=vt[0].find(0))&&$(kr(n.doc,dt.from,dt.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var St=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;St&&P();for(var mt=0;mt<q.childNodes.length;mt++)U(q.childNodes[mt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),St&&(m=!0)}else q.nodeType==3&&$(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;U(i),i!=a;)i=i.nextSibling,w=!1;return p}function fl(n,i,a){var s;if(i==n.display.lineDiv){if(s=n.display.lineDiv.childNodes[a],!s)return Lo(n.clipPos(z(n.display.viewTo-1)),!0);i=null,a=0}else for(s=i;;s=s.parentNode){if(!s||s==n.display.lineDiv)return null;if(s.parentNode&&s.parentNode==n.display.lineDiv)break}for(var c=0;c<n.display.view.length;c++){var p=n.display.view[c];if(p.node==s)return Mx(p,i,a)}}function Mx(n,i,a){var s=n.text.firstChild,c=!1;if(!i||!Q(s,i))return Lo(z(le(n.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[a],a=0,!i)){var p=n.rest?lt(n.rest):n.line;return Lo(z(le(p),p.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,a&&(a=m.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=n.measure,_=w.maps;function P(dt,vt,St){for(var mt=-1;mt<(_?_.length:0);mt++)for(var Ct=mt<0?w.map:_[mt],Dt=0;Dt<Ct.length;Dt+=3){var Pt=Ct[Dt+2];if(Pt==dt||Pt==vt){var Ut=le(mt<0?n.line:n.rest[mt]),ge=Ct[Dt]+St;return(St<0||Pt!=dt)&&(ge=Ct[Dt+(St?1:0)]),z(Ut,ge)}}}var $=P(m,y,a);if($)return Lo($,c);for(var U=y.nextSibling,q=m?m.nodeValue.length-a:0;U;U=U.nextSibling){if($=P(U,U.firstChild,0),$)return Lo(z($.line,$.ch-q),c);q+=U.textContent.length}for(var J=y.previousSibling,rt=a;J;J=J.previousSibling){if($=P(J,J.firstChild,-1),$)return Lo(z($.line,$.ch+rt),c);rt+=J.textContent.length}}var Le=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new et,this.hasSelection=!1,this.composing=null,this.resetting=!1};Le.prototype.init=function(n){var i=this,a=this,s=this.cm;this.createField(n);var c=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),E&&(c.style.width="0px"),yt(c,"input",function(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),yt(c,"paste",function(m){ke(s,m)||Hp(m,s)||(s.state.pasteIncoming=+new Date,a.fastPoll())});function p(m){if(!ke(s,m)){if(s.somethingSelected())ul({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=Wp(s);ul({lineWise:!0,text:y.text}),m.type=="cut"?s.setSelections(y.ranges,null,O):(a.prevInput="",c.value=y.text.join(`
28
+ `),zt(c))}else return;m.type=="cut"&&(s.state.cutIncoming=+new Date)}}yt(c,"cut",p),yt(c,"copy",p),yt(n.scroller,"paste",function(m){if(!(Er(n,m)||ke(s,m))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,a.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),yt(n.lineSpace,"selectstart",function(m){Er(n,m)||Ke(m)}),yt(c,"compositionstart",function(){var m=s.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:m,range:s.markText(m,s.getCursor("to"),{className:"CodeMirror-composing"})}}),yt(c,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Le.prototype.createField=function(n){this.wrapper=Up(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Mu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Le.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Le.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,s=Dd(n);if(n.options.moveInputWithCursor){var c=jn(n,a.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-p.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-p.left))}return s},Le.prototype.showSelection=function(n){var i=this.cm,a=i.display;R(a.cursorDiv,n.cursors),R(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Le.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&zt(this.textarea),d&&g>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Le.prototype.getField=function(){return this.textarea},Le.prototype.supportsTouch=function(){return!1},Le.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||wt(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Le.prototype.blur=function(){this.textarea.blur()},Le.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Le.prototype.receivedFocus=function(){this.slowPoll()},Le.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Le.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var s=i.poll();!s&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Le.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Xr(a)&&!s&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=a.value;if(c==s&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===c||j&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=c.charCodeAt(0);if(p==8203&&!s&&(s="​"),p==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(){Au(i,c.slice(m),s.length-m,null,n.composing?"*compose":null),c.length>1e3||c.indexOf(`
29
+ `)>-1?a.value=n.prevInput="":n.prevInput=c,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Le.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Le.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Le.prototype.onContextMenu=function(n){var i=this,a=i.cm,s=a.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=Ni(a,n),m=s.scroller.scrollTop;if(!p||N)return;var y=a.options.resetSelectionOnContextMenu;y&&a.doc.sel.contains(p)==-1&&Fe(a,Xe)(a.doc,ni(p),O);var w=c.style.cssText,_=i.wrapper.style.cssText,P=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
30
+ top: `+(n.clientY-P.top-5)+"px; left: "+(n.clientX-P.left-5)+`px;
31
+ z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
32
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var $;v&&($=c.ownerDocument.defaultView.scrollY),s.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,$),s.input.reset(),a.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=a.doc.sel,clearTimeout(s.detectingSelectAll);function U(){if(c.selectionStart!=null){var rt=a.somethingSelected(),dt="​"+(rt?c.value:"");c.value="⇚",c.value=dt,i.prevInput=rt?"":"​",c.selectionStart=1,c.selectionEnd=dt.length,s.selForContextMenu=a.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=w,d&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=m),c.selectionStart!=null)){(!d||d&&g<9)&&U();var rt=0,dt=function(){s.selForContextMenu==a.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="​"?Fe(a,fp)(a):rt++<10?s.detectingSelectAll=setTimeout(dt,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(dt,200)}}if(d&&g>=9&&U(),ot){xr(n);var J=function(){Ge(window,"mouseup",J),setTimeout(q,20)};yt(window,"mouseup",J)}else setTimeout(q,50)},Le.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Le.prototype.setUneditable=function(){},Le.prototype.needsContentAttribute=!1;function Nx(n,i){if(i=i?_t(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=wt(n.ownerDocument);i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function s(){n.value=y.getValue()}var c;if(n.form&&(yt(n.form,"submit",s),!i.leaveSubmitMethodAlone)){var p=n.form;c=p.submit;try{var m=p.submit=function(){s(),p.submit=c,p.submit(),p.submit=m}}catch{}}i.finishInit=function(w){w.save=s,w.getTextArea=function(){return n},w.toTextArea=function(){w.toTextArea=isNaN,s(),n.parentNode.removeChild(w.getWrapperElement()),n.style.display="",n.form&&(Ge(n.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=c))}},n.style.display="none";var y=we(function(w){return n.parentNode.insertBefore(w,n.nextSibling)},i);return y}function Px(n){n.off=Ge,n.on=yt,n.wheelEventPixels=Fw,n.Doc=ln,n.splitLines=ds,n.countColumn=W,n.findColumn=tt,n.isWordChar=Ot,n.Pass=Nt,n.signal=me,n.Line=fo,n.changeEnd=ri,n.scrollbarModel=Hd,n.Pos=z,n.cmpPos=Z,n.modes=Wn,n.mimeModes=Yr,n.resolveMode=bn,n.getMode=_r,n.modeExtensions=Zr,n.extendMode=Ra,n.copyState=Sr,n.startState=ps,n.innerMode=Jr,n.commands=zs,n.keyMap=Ar,n.keyName=Ep,n.isModifierKey=Cp,n.lookupKey=Co,n.normalizeKeyMap=ax,n.StringStream=Ce,n.SharedTextMarker=$s,n.TextMarker=oi,n.LineWidget=Os,n.e_preventDefault=Ke,n.e_stopPropagation=Li,n.e_stop=xr,n.addClass=Tt,n.contains=Q,n.rmClass=pt,n.keyNames=si}Sx(we),Ex(we);var Ox="iter insert remove copy getEditor constructor".split(" ");for(var hl in ln.prototype)ln.prototype.hasOwnProperty(hl)&&it(Ox,hl)<0&&(we.prototype[hl]=function(n){return function(){return n.apply(this.doc,arguments)}}(ln.prototype[hl]));return Qe(ln),we.inputStyles={textarea:Le,contenteditable:he},we.defineMode=function(n){!we.defaults.mode&&n!="null"&&(we.defaults.mode=n),Da.apply(this,arguments)},we.defineMIME=co,we.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),we.defineMIME("text/plain","null"),we.defineExtension=function(n,i){we.prototype[n]=i},we.defineDocExtension=function(n,i){ln.prototype[n]=i},we.fromTextArea=Nx,Px(we),we.version="5.65.13",we})}(Yu)),Yu.exports}var slt=ls();const alt=Q0(slt);var Rv={exports:{}},zv;function Wy(){return zv||(zv=1,function(t,e){(function(r){r(ls())})(function(r){r.defineMode("javascript",function(o,l){var u=o.indentUnit,f=l.statementIndent,h=l.jsonld,d=l.json||h,g=l.trackScope!==!1,v=l.typescript,b=l.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function C(Oe){return{type:Oe,style:"keyword"}}var D=C("keyword a"),z=C("keyword b"),Z=C("keyword c"),Ht=C("keyword d"),Xt=C("operator"),oe={type:"atom",style:"atom"};return{if:C("if"),while:D,with:D,else:z,do:z,try:z,finally:z,return:Ht,break:Ht,continue:Ht,new:C("new"),delete:Z,void:Z,throw:Z,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:Xt,typeof:Xt,instanceof:Xt,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:C("this"),class:C("class"),super:C("atom"),yield:Z,export:C("export"),import:C("import"),extends:Z,await:Z}}(),S=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var D=!1,z,Z=!1;(z=C.next())!=null;){if(!D){if(z=="/"&&!Z)return;z=="["?Z=!0:Z&&z=="]"&&(Z=!1)}D=!D&&z=="\\"}}var M,T;function E(C,D,z){return M=C,T=z,D}function F(C,D){var z=C.next();if(z=='"'||z=="'")return D.tokenize=L(z),D.tokenize(C,D);if(z=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(z=="."&&C.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(z))return E(z);if(z=="="&&C.eat(">"))return E("=>","operator");if(z=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(z))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(z=="/")return C.eat("*")?(D.tokenize=j,j(C,D)):C.eat("/")?(C.skipToEnd(),E("comment","comment")):or(C,D,1)?(A(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(C.eat("="),E("operator","operator",C.current()));if(z=="`")return D.tokenize=Y,Y(C,D);if(z=="#"&&C.peek()=="!")return C.skipToEnd(),E("meta","meta");if(z=="#"&&C.eatWhile(b))return E("variable","property");if(z=="<"&&C.match("!--")||z=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),E("comment","comment");if(S.test(z))return(z!=">"||!D.lexical||D.lexical.type!=">")&&(C.eat("=")?(z=="!"||z=="=")&&C.eat("="):/[<>*+\-|&?]/.test(z)&&(C.eat(z),z==">"&&C.eat(z))),z=="?"&&C.eat(".")?E("."):E("operator","operator",C.current());if(b.test(z)){C.eatWhile(b);var Z=C.current();if(D.lastType!="."){if(x.propertyIsEnumerable(Z)){var Ht=x[Z];return E(Ht.type,Ht.style,Z)}if(Z=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",Z)}return E("variable","variable",Z)}}function L(C){return function(D,z){var Z=!1,Ht;if(h&&D.peek()=="@"&&D.match(N))return z.tokenize=F,E("jsonld-keyword","meta");for(;(Ht=D.next())!=null&&!(Ht==C&&!Z);)Z=!Z&&Ht=="\\";return Z||(z.tokenize=F),E("string","string")}}function j(C,D){for(var z=!1,Z;Z=C.next();){if(Z=="/"&&z){D.tokenize=F;break}z=Z=="*"}return E("comment","comment")}function Y(C,D){for(var z=!1,Z;(Z=C.next())!=null;){if(!z&&(Z=="`"||Z=="$"&&C.eat("{"))){D.tokenize=F;break}z=!z&&Z=="\\"}return E("quasi","string-2",C.current())}var ft="([{}])";function X(C,D){D.fatArrowAt&&(D.fatArrowAt=null);var z=C.string.indexOf("=>",C.start);if(!(z<0)){if(v){var Z=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,z));Z&&(z=Z.index)}for(var Ht=0,Xt=!1,oe=z-1;oe>=0;--oe){var Oe=C.string.charAt(oe),Nn=ft.indexOf(Oe);if(Nn>=0&&Nn<3){if(!Ht){++oe;break}if(--Ht==0){Oe=="("&&(Xt=!0);break}}else if(Nn>=3&&Nn<6)++Ht;else if(b.test(Oe))Xt=!0;else if(/["'\/`]/.test(Oe))for(;;--oe){if(oe==0)return;var Bt=C.string.charAt(oe-1);if(Bt==Oe&&C.string.charAt(oe-2)!="\\"){oe--;break}}else if(Xt&&!Ht){++oe;break}}Xt&&!Ht&&(D.fatArrowAt=oe)}}var st={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ot(C,D,z,Z,Ht,Xt){this.indented=C,this.column=D,this.type=z,this.prev=Ht,this.info=Xt,Z!=null&&(this.align=Z)}function kt(C,D){if(!g)return!1;for(var z=C.localVars;z;z=z.next)if(z.name==D)return!0;for(var Z=C.context;Z;Z=Z.prev)for(var z=Z.vars;z;z=z.next)if(z.name==D)return!0}function pt(C,D,z,Z,Ht){var Xt=C.cc;for(G.state=C,G.stream=Ht,G.marked=null,G.cc=Xt,G.style=D,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var oe=Xt.length?Xt.pop():d?Nt:it;if(oe(z,Z)){for(;Xt.length&&Xt[Xt.length-1].lex;)Xt.pop()();return G.marked?G.marked:z=="variable"&&kt(C,Z)?"variable-2":D}}}var G={state:null,column:null,marked:null,cc:null};function R(){for(var C=arguments.length-1;C>=0;C--)G.cc.push(arguments[C])}function k(){return R.apply(null,arguments),!0}function H(C,D){for(var z=D;z;z=z.next)if(z.name==C)return!0;return!1}function B(C){var D=G.state;if(G.marked="def",!!g){if(D.context){if(D.lexical.info=="var"&&D.context&&D.context.block){var z=Q(C,D.context);if(z!=null){D.context=z;return}}else if(!H(C,D.localVars)){D.localVars=new Rt(C,D.localVars);return}}l.globalVars&&!H(C,D.globalVars)&&(D.globalVars=new Rt(C,D.globalVars))}}function Q(C,D){if(D)if(D.block){var z=Q(C,D.prev);return z?z==D.prev?D:new Tt(z,D.vars,!0):null}else return H(C,D.vars)?D:new Tt(D.prev,new Rt(C,D.vars),!1);else return null}function wt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Tt(C,D,z){this.prev=C,this.vars=D,this.block=z}function Rt(C,D){this.name=C,this.next=D}var zt=new Rt("this",new Rt("arguments",null));function Vt(){G.state.context=new Tt(G.state.context,G.state.localVars,!1),G.state.localVars=zt}function Gt(){G.state.context=new Tt(G.state.context,G.state.localVars,!0),G.state.localVars=null}Vt.lex=Gt.lex=!0;function Jt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}Jt.lex=!0;function _t(C,D){var z=function(){var Z=G.state,Ht=Z.indented;if(Z.lexical.type=="stat")Ht=Z.lexical.indented;else for(var Xt=Z.lexical;Xt&&Xt.type==")"&&Xt.align;Xt=Xt.prev)Ht=Xt.indented;Z.lexical=new ot(Ht,G.stream.column(),C,null,Z.lexical,D)};return z.lex=!0,z}function W(){var C=G.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}W.lex=!0;function et(C){function D(z){return z==C?k():C==";"||z=="}"||z==")"||z=="]"?R():k(D)}return D}function it(C,D){return C=="var"?k(_t("vardef",D),xr,et(";"),W):C=="keyword a"?k(_t("form"),I,it,W):C=="keyword b"?k(_t("form"),it,W):C=="keyword d"?G.stream.match(/^\s*$/,!1)?k():k(_t("stat"),tt,et(";"),W):C=="debugger"?k(et(";")):C=="{"?k(_t("}"),Gt,Mn,W,Jt):C==";"?k():C=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==W&&G.state.cc.pop()(),k(_t("form"),I,it,W,lo)):C=="function"?k(rr):C=="for"?k(_t("form"),Gt,Oa,it,Jt,W):C=="class"||v&&D=="interface"?(G.marked="keyword",k(_t("form",C=="class"?C:D),Da,W)):C=="variable"?v&&D=="declare"?(G.marked="keyword",k(it)):v&&(D=="module"||D=="enum"||D=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",D=="enum"?k(uo):D=="type"?k($a,et("operator"),yt,et(";")):k(_t("form"),sn,et("{"),_t("}"),Mn,W,W)):v&&D=="namespace"?(G.marked="keyword",k(_t("form"),Nt,it,W)):v&&D=="abstract"?(G.marked="keyword",k(it)):k(_t("stat"),It):C=="switch"?k(_t("form"),I,et("{"),_t("}","switch"),Gt,Mn,W,W,Jt):C=="case"?k(Nt,et(":")):C=="default"?k(et(":")):C=="catch"?k(_t("form"),Vt,Mt,it,W,Jt):C=="export"?k(_t("stat"),Zr,W):C=="import"?k(_t("stat"),Sr,W):C=="async"?k(it):D=="@"?k(Nt,it):R(_t("stat"),Nt,et(";"),W)}function Mt(C){if(C=="(")return k(Wn,et(")"))}function Nt(C,D){return K(C,D,!1)}function O(C,D){return K(C,D,!0)}function I(C){return C!="("?R():k(_t(")"),tt,et(")"),W)}function K(C,D,z){if(G.state.fatArrowAt==G.stream.start){var Z=z?ht:xt;if(C=="(")return k(Vt,_t(")"),te(Wn,")"),W,et("=>"),Z,Jt);if(C=="variable")return R(Vt,sn,et("=>"),Z,Jt)}var Ht=z?at:nt;return st.hasOwnProperty(C)?k(Ht):C=="function"?k(rr,Ht):C=="class"||v&&D=="interface"?(G.marked="keyword",k(_t("form"),Yr,W)):C=="keyword c"||C=="async"?k(z?O:Nt):C=="("?k(_t(")"),tt,et(")"),W,Ht):C=="operator"||C=="spread"?k(z?O:Nt):C=="["?k(_t("]"),kr,W,Ht):C=="{"?yn(ie,"}",null,Ht):C=="quasi"?R(lt,Ht):C=="new"?k($t(z)):k()}function tt(C){return C.match(/[;\}\)\],]/)?R():R(Nt)}function nt(C,D){return C==","?k(tt):at(C,D,!1)}function at(C,D,z){var Z=z==!1?nt:at,Ht=z==!1?Nt:O;if(C=="=>")return k(Vt,z?ht:xt,Jt);if(C=="operator")return/\+\+|--/.test(D)||v&&D=="!"?k(Z):v&&D=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(_t(">"),te(yt,">"),W,Z):D=="?"?k(Nt,et(":"),Ht):k(Ht);if(C=="quasi")return R(lt,Z);if(C!=";"){if(C=="(")return yn(O,")","call",Z);if(C==".")return k(jt,Z);if(C=="[")return k(_t("]"),tt,et("]"),W,Z);if(v&&D=="as")return G.marked="keyword",k(yt,Z);if(C=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),k(Ht)}}function lt(C,D){return C!="quasi"?R():D.slice(D.length-2)!="${"?k(lt):k(tt,gt)}function gt(C){if(C=="}")return G.marked="string-2",G.state.tokenize=Y,k(lt)}function xt(C){return X(G.stream,G.state),R(C=="{"?it:Nt)}function ht(C){return X(G.stream,G.state),R(C=="{"?it:O)}function $t(C){return function(D){return D=="."?k(C?Ot:At):D=="variable"&&v?k(Ke,C?at:nt):R(C?O:Nt)}}function At(C,D){if(D=="target")return G.marked="keyword",k(nt)}function Ot(C,D){if(D=="target")return G.marked="keyword",k(at)}function It(C){return C==":"?k(W,it):R(nt,et(";"),W)}function jt(C){if(C=="variable")return G.marked="property",k()}function ie(C,D){if(C=="async")return G.marked="property",k(ie);if(C=="variable"||G.style=="keyword"){if(G.marked="property",D=="get"||D=="set")return k(ee);var z;return v&&G.state.fatArrowAt==G.stream.start&&(z=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+z[0].length),k(ue)}else{if(C=="number"||C=="string")return G.marked=h?"property":G.style+" property",k(ue);if(C=="jsonld-keyword")return k(ue);if(v&&wt(D))return G.marked="keyword",k(ie);if(C=="[")return k(Nt,We,et("]"),ue);if(C=="spread")return k(O,ue);if(D=="*")return G.marked="keyword",k(ie);if(C==":")return R(ue)}}function ee(C){return C!="variable"?R(ue):(G.marked="property",k(rr))}function ue(C){if(C==":")return k(O);if(C=="(")return R(rr)}function te(C,D,z){function Z(Ht,Xt){if(z?z.indexOf(Ht)>-1:Ht==","){var oe=G.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),k(function(Oe,Nn){return Oe==D||Nn==D?R():R(C)},Z)}return Ht==D||Xt==D?k():z&&z.indexOf(";")>-1?R(C):k(et(D))}return function(Ht,Xt){return Ht==D||Xt==D?k():R(C,Z)}}function yn(C,D,z){for(var Z=3;Z<arguments.length;Z++)G.cc.push(arguments[Z]);return k(_t(D,z),te(C,D),W)}function Mn(C){return C=="}"?k():R(it,Mn)}function We(C,D){if(v){if(C==":")return k(yt);if(D=="?")return k(We)}}function ao(C,D){if(v&&(C==":"||D=="in"))return k(yt)}function ye(C){if(v&&C==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?k(Nt,on,yt):k(yt)}function on(C,D){if(D=="is")return G.marked="keyword",k()}function yt(C,D){if(D=="keyof"||D=="typeof"||D=="infer"||D=="readonly")return G.marked="keyword",k(D=="typeof"?O:yt);if(C=="variable"||D=="void")return G.marked="type",k(Qe);if(D=="|"||D=="&")return k(yt);if(C=="string"||C=="number"||C=="atom")return k(Qe);if(C=="[")return k(_t("]"),te(yt,"]",","),W,Qe);if(C=="{")return k(_t("}"),Ge,W,Qe);if(C=="(")return k(te(Je,")"),us,Qe);if(C=="<")return k(te(yt,">"),yt);if(C=="quasi")return R(ke,Qe)}function us(C){if(C=="=>")return k(yt)}function Ge(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Ge):R(me,Ge)}function me(C,D){if(C=="variable"||G.style=="keyword")return G.marked="property",k(me);if(D=="?"||C=="number"||C=="string")return k(me);if(C==":")return k(yt);if(C=="[")return k(et("variable"),ao,et("]"),me);if(C=="(")return R(ir,me);if(!C.match(/[;\}\)\],]/))return k()}function ke(C,D){return C!="quasi"?R():D.slice(D.length-2)!="${"?k(ke):k(yt,Pa)}function Pa(C){if(C=="}")return G.marked="string-2",G.state.tokenize=Y,k(ke)}function Je(C,D){return C=="variable"&&G.stream.match(/^\s*[?:]/,!1)||D=="?"?k(Je):C==":"?k(yt):C=="spread"?k(Je):R(yt)}function Qe(C,D){if(D=="<")return k(_t(">"),te(yt,">"),W,Qe);if(D=="|"||C=="."||D=="&")return k(yt);if(C=="[")return k(yt,et("]"),Qe);if(D=="extends"||D=="implements")return G.marked="keyword",k(yt);if(D=="?")return k(yt,et(":"),yt)}function Ke(C,D){if(D=="<")return k(_t(">"),te(yt,">"),W,Qe)}function Li(){return R(yt,fs)}function fs(C,D){if(D=="=")return k(yt)}function xr(C,D){return D=="enum"?(G.marked="keyword",k(uo)):R(sn,We,In,qc)}function sn(C,D){if(v&&wt(D))return G.marked="keyword",k(sn);if(C=="variable")return B(D),k();if(C=="spread")return k(sn);if(C=="[")return yn(Fc,"]");if(C=="{")return yn(hs,"}")}function hs(C,D){return C=="variable"&&!G.stream.match(/^\s*:/,!1)?(B(D),k(In)):(C=="variable"&&(G.marked="property"),C=="spread"?k(sn):C=="}"?R():C=="["?k(Nt,et("]"),et(":"),hs):k(et(":"),sn,In))}function Fc(){return R(sn,In)}function In(C,D){if(D=="=")return k(O)}function qc(C){if(C==",")return k(xr)}function lo(C,D){if(C=="keyword b"&&D=="else")return k(_t("form","else"),it,W)}function Oa(C,D){if(D=="await")return k(Oa);if(C=="(")return k(_t(")"),ds,W)}function ds(C){return C=="var"?k(xr,Xr):C=="variable"?k(Xr):R(Xr)}function Xr(C,D){return C==")"?k():C==";"?k(Xr):D=="in"||D=="of"?(G.marked="keyword",k(Nt,Xr)):R(Nt,Xr)}function rr(C,D){if(D=="*")return G.marked="keyword",k(rr);if(C=="variable")return B(D),k(rr);if(C=="(")return k(Vt,_t(")"),te(Wn,")"),W,ye,it,Jt);if(v&&D=="<")return k(_t(">"),te(Li,">"),W,rr)}function ir(C,D){if(D=="*")return G.marked="keyword",k(ir);if(C=="variable")return B(D),k(ir);if(C=="(")return k(Vt,_t(")"),te(Wn,")"),W,ye,Jt);if(v&&D=="<")return k(_t(">"),te(Li,">"),W,ir)}function $a(C,D){if(C=="keyword"||C=="variable")return G.marked="type",k($a);if(D=="<")return k(_t(">"),te(Li,">"),W)}function Wn(C,D){return D=="@"&&k(Nt,Wn),C=="spread"?k(Wn):v&&wt(D)?(G.marked="keyword",k(Wn)):v&&C=="this"?k(We,In):R(sn,We,In)}function Yr(C,D){return C=="variable"?Da(C,D):co(C,D)}function Da(C,D){if(C=="variable")return B(D),k(co)}function co(C,D){if(D=="<")return k(_t(">"),te(Li,">"),W,co);if(D=="extends"||D=="implements"||v&&C==",")return D=="implements"&&(G.marked="keyword"),k(v?yt:Nt,co);if(C=="{")return k(_t("}"),bn,W)}function bn(C,D){if(C=="async"||C=="variable"&&(D=="static"||D=="get"||D=="set"||v&&wt(D))&&G.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return G.marked="keyword",k(bn);if(C=="variable"||G.style=="keyword")return G.marked="property",k(_r,bn);if(C=="number"||C=="string")return k(_r,bn);if(C=="[")return k(Nt,We,et("]"),_r,bn);if(D=="*")return G.marked="keyword",k(bn);if(v&&C=="(")return R(ir,bn);if(C==";"||C==",")return k(bn);if(C=="}")return k();if(D=="@")return k(Nt,bn)}function _r(C,D){if(D=="!"||D=="?")return k(_r);if(C==":")return k(yt,In);if(D=="=")return k(O);var z=G.state.lexical.prev,Z=z&&z.info=="interface";return R(Z?ir:rr)}function Zr(C,D){return D=="*"?(G.marked="keyword",k(Lt,et(";"))):D=="default"?(G.marked="keyword",k(Nt,et(";"))):C=="{"?k(te(Ra,"}"),Lt,et(";")):R(it)}function Ra(C,D){if(D=="as")return G.marked="keyword",k(et("variable"));if(C=="variable")return R(O,Ra)}function Sr(C){return C=="string"?k():C=="("?R(Nt):C=="."?R(nt):R(Jr,ps,Lt)}function Jr(C,D){return C=="{"?yn(Jr,"}"):(C=="variable"&&B(D),D=="*"&&(G.marked="keyword"),k(Ce))}function ps(C){if(C==",")return k(Jr,ps)}function Ce(C,D){if(D=="as")return G.marked="keyword",k(Jr)}function Lt(C,D){if(D=="from")return G.marked="keyword",k(Nt)}function kr(C){return C=="]"?k():R(te(O,"]"))}function uo(){return R(_t("form"),sn,et("{"),_t("}"),te(Fn,"}"),W,W)}function Fn(){return R(sn,In)}function le(C,D){return C.lastType=="operator"||C.lastType==","||S.test(D.charAt(0))||/[,.]/.test(D.charAt(0))}function or(C,D,z){return D.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(D.lastType)||D.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(z||0)))}return{startState:function(C){var D={tokenize:F,lastType:"sof",cc:[],lexical:new ot((C||0)-u,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Tt(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(D.globalVars=l.globalVars),D},token:function(C,D){if(C.sol()&&(D.lexical.hasOwnProperty("align")||(D.lexical.align=!1),D.indented=C.indentation(),X(C,D)),D.tokenize!=j&&C.eatSpace())return null;var z=D.tokenize(C,D);return M=="comment"?z:(D.lastType=M=="operator"&&(T=="++"||T=="--")?"incdec":M,pt(D,z,M,T,C))},indent:function(C,D){if(C.tokenize==j||C.tokenize==Y)return r.Pass;if(C.tokenize!=F)return 0;var z=D&&D.charAt(0),Z=C.lexical,Ht;if(!/^\s*else\b/.test(D))for(var Xt=C.cc.length-1;Xt>=0;--Xt){var oe=C.cc[Xt];if(oe==W)Z=Z.prev;else if(oe!=lo&&oe!=Jt)break}for(;(Z.type=="stat"||Z.type=="form")&&(z=="}"||(Ht=C.cc[C.cc.length-1])&&(Ht==nt||Ht==at)&&!/^[,\.=+\-*:?[\(]/.test(D));)Z=Z.prev;f&&Z.type==")"&&Z.prev.type=="stat"&&(Z=Z.prev);var Oe=Z.type,Nn=z==Oe;return Oe=="vardef"?Z.indented+(C.lastType=="operator"||C.lastType==","?Z.info.length+1:0):Oe=="form"&&z=="{"?Z.indented:Oe=="form"?Z.indented+u:Oe=="stat"?Z.indented+(le(C,D)?f||u:0):Z.info=="switch"&&!Nn&&l.doubleIndentSwitch!=!1?Z.indented+(/^(?:case|default)\b/.test(D)?u:2*u):Z.align?Z.column+(Nn?0:1):Z.indented+(Nn?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:or,skipExpression:function(C){pt(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})})}()),Rv.exports}Wy();var Iv={exports:{}},Fv;function Uy(){return Fv||(Fv=1,function(t,e){(function(r){r(ls())})(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},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,d={},g=f.htmlMode?o:l;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var b,x;function S(k,H){function B(Tt){return H.tokenize=Tt,Tt(k,H)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(M("atom","]]>")):null:k.match("--")?B(M("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=M("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",H.tokenize=N,"tag bracket");if(Q=="&"){var wt;return k.eat("#")?k.eat("x")?wt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):wt=k.eatWhile(/[\d]/)&&k.eat(";"):wt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),wt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function N(k,H){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return H.tokenize=S,b=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return b="equals",null;if(B=="<"){H.tokenize=S,H.state=Y,H.tagName=H.tagStart=null;var Q=H.tokenize(k,H);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(B)?(H.tokenize=A(B),H.stringStartCol=k.column(),H.tokenize(k,H)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var H=function(B,Q){for(;!B.eol();)if(B.next()==k){Q.tokenize=N;break}return"string"};return H.isInAttribute=!0,H}function M(k,H){return function(B,Q){for(;!B.eol();){if(B.match(H)){Q.tokenize=S;break}B.next()}return k}}function T(k){return function(H,B){for(var Q;(Q=H.next())!=null;){if(Q=="<")return B.tokenize=T(k+1),B.tokenize(H,B);if(Q==">")if(k==1){B.tokenize=S;break}else return B.tokenize=T(k-1),B.tokenize(H,B)}return"meta"}}function E(k){return k&&k.toLowerCase()}function F(k,H,B){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=B,(d.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function L(k){k.context&&(k.context=k.context.prev)}function j(k,H){for(var B;;){if(!k.context||(B=k.context.tagName,!d.contextGrabbers.hasOwnProperty(E(B))||!d.contextGrabbers[E(B)].hasOwnProperty(E(H))))return;L(k)}}function Y(k,H,B){return k=="openTag"?(B.tagStart=H.column(),ft):k=="closeTag"?X:Y}function ft(k,H,B){return k=="word"?(B.tagName=H.current(),x="tag",kt):d.allowMissingTagName&&k=="endTag"?(x="tag bracket",kt(k,H,B)):(x="error",ft)}function X(k,H,B){if(k=="word"){var Q=H.current();return B.context&&B.context.tagName!=Q&&d.implicitlyClosed.hasOwnProperty(E(B.context.tagName))&&L(B),B.context&&B.context.tagName==Q||d.matchClosing===!1?(x="tag",st):(x="tag error",ot)}else return d.allowMissingTagName&&k=="endTag"?(x="tag bracket",st(k,H,B)):(x="error",ot)}function st(k,H,B){return k!="endTag"?(x="error",st):(L(B),Y)}function ot(k,H,B){return x="error",st(k,H,B)}function kt(k,H,B){if(k=="word")return x="attribute",pt;if(k=="endTag"||k=="selfcloseTag"){var Q=B.tagName,wt=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(E(Q))?j(B,Q):(j(B,Q),B.context=new F(B,Q,wt==B.indented)),Y}return x="error",kt}function pt(k,H,B){return k=="equals"?G:(d.allowMissing||(x="error"),kt(k,H,B))}function G(k,H,B){return k=="string"?R:k=="word"&&d.allowUnquoted?(x="string",kt):(x="error",kt(k,H,B))}function R(k,H,B){return k=="string"?R:kt(k,H,B)}return{startState:function(k){var H={tokenize:S,state:Y,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(H.baseIndent=k),H},token:function(k,H){if(!H.tagName&&k.sol()&&(H.indented=k.indentation()),k.eatSpace())return null;b=null;var B=H.tokenize(k,H);return(B||b)&&B!="comment"&&(x=null,H.state=H.state(b||B,k,H),x&&(B=x=="error"?B+" error":x)),B},indent:function(k,H,B){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return r.Pass;if(k.tokenize!=N&&k.tokenize!=S)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var wt=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(wt&&wt[1])for(;Q;)if(Q.tagName==wt[2]){Q=Q.prev;break}else if(d.implicitlyClosed.hasOwnProperty(E(Q.tagName)))Q=Q.prev;else break;else if(wt)for(;Q;){var Tt=d.contextGrabbers[E(Q.tagName)];if(Tt&&Tt.hasOwnProperty(E(wt[2])))Q=Q.prev;else break}for(;Q&&Q.prev&&!Q.startOfLine;)Q=Q.prev;return Q?Q.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==G&&(k.state=kt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],B=k.context;B;B=B.prev)H.push(B.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Iv.exports}Uy();(function(t,e){(function(r){r(ls(),Uy(),Wy())})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}function l(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&l(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(u,f&&f.base||"javascript");function g(S){var N=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=N,A}function v(S,N){return N.context.mode==h?b(S,N,N.context):x(S,N,N.context)}function b(S,N,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var M=g(A.state),T=A.state.context;if(T&&S.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?M-=u.indentUnit:A.prev.state.lexical&&(M=A.prev.state.lexical.indented)}else A.depth==1&&(M+=u.indentUnit);return N.context=new o(r.startState(d,M),d,0,N.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),N.context=new o(r.startState(h,g(A.state)),h,0,N.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,v(S,N)}var E=h.token(S,A.state),F=S.current(),L;return/\btag\b/.test(E)?/>$/.test(F)?A.state.context?A.depth=0:N.context=N.context.prev:/^</.test(F)&&(A.depth=1):!E&&(L=F.indexOf("{"))>-1&&S.backUp(F.length-L),E}function x(S,N,A){if(S.peek()=="<"&&d.expressionAllowed(S,A.state))return N.context=new o(r.startState(h,d.indent(A.state,"","")),h,0,N.context),d.skipExpression(A.state),null;var M=d.token(S,A.state);if(!M&&A.depth!=null){var T=S.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(N.context=N.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(S){return{context:l(S.context)}},token:v,indent:function(S,N,A){return S.context.mode.indent(S.context.state,N,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,e){(function(r){r(ls())})(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 l(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?l(g):o(g)},20)}function f(g){d(g)&&l(g)}function h(g){var v=g.getWrapperElement(),b=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?l(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(ls())})(function(r){function o(f,h,d){this.orientation=h,this.scroll=d,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],N=g.pos;function A(){r.off(document,"mousemove",M),r.off(document,"mouseup",A)}function M(T){if(T.which!=1)return A();g.moveTo(N+(T[x]-S)*(g.total/g.size))}r.on(document,"mousemove",M),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 l=10;o.prototype.update=function(f,h,d){var g=this.screen!=h||this.total!=f||this.size!=d;g&&(this.screen=h,this.total=f,this.size=d);var v=this.screen*(this.size/this.total);v<l&&(this.size-=l-v,v=l),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,d){this.addClass=f,this.horiz=new o(f,"horizontal",d),h(this.horiz.node),this.vert=new o(f,"vertical",d),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 d=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?d:0)),this.vert.node.style.bottom=g?d+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?d:0)-f.barLeft),this.horiz.node.style.right=v?d+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?d:0,bottom:g?d: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 llt(t,e,r={}){const o=alt.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let l=!1;return o.on("change",()=>{if(l){l=!1;return}e.value=o.getValue()}),De(e,u=>{if(u!==o.getValue()){l=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),ih(o)}const clt={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},jy=re({__name:"CodeMirror",props:{modelValue:{},mode:{},readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:e,emit:r}){const o=t,l=v_(),u={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Kt(),h=fE(o,"modelValue",r,{passive:!0}),d=ss();return e({cm:d}),as(async()=>{d.value=llt(f,h,{...o,...l,mode:u[o.mode||""]||o.mode,readOnly:o.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){r("save",g.getValue())},"Ctrl-S":function(g){r("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(ct(),Et("div",clt,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),ult=re({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:e}){const r=t,o=Kt(""),l=ss(void 0),u=Kt(!1);De(()=>r.file,async()=>{var E;if(!r.file||!((E=r.file)!=null&&E.filepath)){o.value="",l.value=o.value,u.value=!1;return}o.value=await Ve.rpc.readFile(r.file.filepath)||"",l.value=o.value,u.value=!1},{immediate:!0});const f=bt(()=>{var E,F;return((F=(E=r.file)==null?void 0:E.filepath)==null?void 0:F.split(/\./g).pop())||"js"}),h=Kt(),d=bt(()=>{var E;return(E=h.value)==null?void 0:E.cm}),g=bt(()=>{var E;return((E=r.file)==null?void 0:E.tasks.filter(F=>{var L;return((L=F.result)==null?void 0:L.state)==="fail"}))||[]}),v=[],b=[],x=[],S=Kt(!1);function N(){x.forEach(([E,F,L])=>{E.removeEventListener("click",F),L()}),x.length=0}cE(h,()=>{var E;(E=d.value)==null||E.refresh()});function A(){u.value=l.value!==d.value.getValue()}De(u,E=>{e("draft",E)},{immediate:!0});function M(E){const F=((E==null?void 0:E.stacks)||[]).filter(st=>{var ot;return st.file&&st.file===((ot=r.file)==null?void 0:ot.filepath)}),L=F==null?void 0:F[0];if(!L)return;const j=document.createElement("div");j.className="op80 flex gap-x-2 items-center";const Y=document.createElement("pre");Y.className="c-red-600 dark:c-red-400",Y.textContent=`${" ".repeat(L.column)}^ ${E==null?void 0:E.nameStr}: ${E==null?void 0:E.message}`,j.appendChild(Y);const ft=document.createElement("span");ft.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ft.tabIndex=0,ft.ariaLabel="Open in Editor",H0(ft,{content:"Open in Editor",placement:"bottom"},!1);const X=async()=>{await Hy(L.file,L.line,L.column)};j.appendChild(ft),x.push([ft,X,()=>Eh(ft)]),b.push(d.value.addLineClass(L.line-1,"wrap","bg-red-500/10")),v.push(d.value.addLineWidget(L.line-1,j))}De([d,g],([E])=>{if(!E){N();return}setTimeout(()=>{N(),v.forEach(F=>F.clear()),b.forEach(F=>{var L;return(L=d.value)==null?void 0:L.removeLineClass(F,"wrap")}),v.length=0,b.length=0,E.on("changes",A),g.value.forEach(F=>{var L,j;(j=(L=F.result)==null?void 0:L.errors)==null||j.forEach(M)}),S.value||E.clearHistory()},100)},{flush:"post"});async function T(E){S.value=!0,await Ve.rpc.writeFile(r.file.filepath,E),l.value=E,u.value=!1}return(E,F)=>{const L=jy;return ct(),Zt(L,_i({ref_key:"editor",ref:h,modelValue:V(o),"onUpdate:modelValue":F[0]||(F[0]=j=>Ee(o)?o.value=j:null),"h-full":""},{lineNumbers:!0},{mode:V(f),"data-testid":"code-mirror",onSave:T}),null,16,["modelValue","mode"])}}}),flt=re({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const e=t,r=bt(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=bt(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}});return(l,u)=>(ct(),Et("div",{class:ve(["fixed inset-0 z-40",l.modelValue?"":"pointer-events-none"])},[ut("div",{class:ve(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",l.modelValue?"opacity-50":"opacity-0"]),onClick:u[0]||(u[0]=f=>l.$emit("update:modelValue",!1))},null,2),ut("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[V(r)]]),style:Tn(l.modelValue?{}:{transform:V(o)})},[tr(l.$slots,"default")],6)],2))}}),hlt=["aria-label","opacity","disabled","hover"],cs=re({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(e,r)=>(ct(),Et("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[tr(e.$slots,"default",{},()=>[ut("div",{class:ve(e.icon),ma:""},null,2)])],8,hlt))}}),dlt={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},plt={"p-4":"",relative:""},glt=ut("p",null,"Module Info",-1),vlt={op50:"","font-mono":"","text-sm":""},mlt={key:0,"p-5":""},ylt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},blt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),wlt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),xlt={key:0},_lt={p:"x3 y-1","bg-overlay":"",border:"base b t"},Slt=re({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:e}){const r=t,o=OT(()=>Ve.rpc.getTransformResult(r.id)),l=bt(()=>{var d;return((d=r.id)==null?void 0:d.split(/\./g).pop())||"js"}),u=bt(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.source)==null?void 0:g.trim())||""}),f=bt(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=bt(()=>{var d,g,v,b;return{mappings:((g=(d=o.value)==null?void 0:d.map)==null?void 0:g.mappings)??"",version:(b=(v=o.value)==null?void 0:v.map)==null?void 0:b.version}});return DT("Escape",()=>{e("close")}),(d,g)=>{const v=cs,b=jy;return ct(),Et("div",dlt,[ut("div",plt,[glt,ut("p",vlt,Qt(d.id),1),qt(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=x=>e("close"))})]),V(o)?(ct(),Et(fe,{key:1},[ut("div",ylt,[blt,wlt,qt(b,_i({"h-full":"","model-value":V(u),"read-only":""},{lineNumbers:!0},{mode:V(l)}),null,16,["model-value","mode"]),qt(b,_i({"h-full":"","model-value":V(f),"read-only":""},{lineNumbers:!0},{mode:V(l)}),null,16,["model-value","mode"])]),V(h).mappings!==""?(ct(),Et("div",xlt,[ut("div",_lt," Source map (v"+Qt(V(h).version)+") ",1),qt(b,_i({"model-value":V(h).mappings,"read-only":""},{lineNumbers:!0},{mode:V(l)}),null,16,["model-value","mode"])])):ne("",!0)],64)):(ct(),Et("div",mlt," No transform result found for this module. "))])}}});var Df="http://www.w3.org/1999/xhtml";const qv={svg:"http://www.w3.org/2000/svg",xhtml:Df,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Rc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),qv.hasOwnProperty(e)?{space:qv[e],local:t}:t}function klt(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Df&&e.documentElement.namespaceURI===Df?e.createElement(t):e.createElementNS(r,t)}}function Clt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Vy(t){var e=Rc(t);return(e.local?Clt:klt)(e)}function Tlt(){}function $h(t){return t==null?Tlt:function(){return this.querySelector(t)}}function Elt(t){typeof t!="function"&&(t=$h(t));for(var e=this._groups,r=e.length,o=new Array(r),l=0;l<r;++l)for(var u=e[l],f=u.length,h=o[l]=new Array(f),d,g,v=0;v<f;++v)(d=u[v])&&(g=t.call(d,d.__data__,v,u))&&("__data__"in d&&(g.__data__=d.__data__),h[v]=g);return new zn(o,this._parents)}function Llt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Alt(){return[]}function Gy(t){return t==null?Alt:function(){return this.querySelectorAll(t)}}function Mlt(t){return function(){return Llt(t.apply(this,arguments))}}function Nlt(t){typeof t=="function"?t=Mlt(t):t=Gy(t);for(var e=this._groups,r=e.length,o=[],l=[],u=0;u<r;++u)for(var f=e[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&(o.push(t.call(d,d.__data__,g,f)),l.push(d));return new zn(o,l)}function Ky(t){return function(){return this.matches(t)}}function Xy(t){return function(e){return e.matches(t)}}var Plt=Array.prototype.find;function Olt(t){return function(){return Plt.call(this.children,t)}}function $lt(){return this.firstElementChild}function Dlt(t){return this.select(t==null?$lt:Olt(typeof t=="function"?t:Xy(t)))}var Rlt=Array.prototype.filter;function zlt(){return Array.from(this.children)}function Ilt(t){return function(){return Rlt.call(this.children,t)}}function Flt(t){return this.selectAll(t==null?zlt:Ilt(typeof t=="function"?t:Xy(t)))}function qlt(t){typeof t!="function"&&(t=Ky(t));for(var e=this._groups,r=e.length,o=new Array(r),l=0;l<r;++l)for(var u=e[l],f=u.length,h=o[l]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new zn(o,this._parents)}function Yy(t){return new Array(t.length)}function Hlt(){return new zn(this._enter||this._groups.map(Yy),this._parents)}function nc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}nc.prototype={constructor:nc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Blt(t){return function(){return t}}function Wlt(t,e,r,o,l,u){for(var f=0,h,d=e.length,g=u.length;f<g;++f)(h=e[f])?(h.__data__=u[f],o[f]=h):r[f]=new nc(t,u[f]);for(;f<d;++f)(h=e[f])&&(l[f]=h)}function Ult(t,e,r,o,l,u,f){var h,d,g=new Map,v=e.length,b=u.length,x=new Array(v),S;for(h=0;h<v;++h)(d=e[h])&&(x[h]=S=f.call(d,d.__data__,h,e)+"",g.has(S)?l[h]=d:g.set(S,d));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(d=g.get(S))?(o[h]=d,d.__data__=u[h],g.delete(S)):r[h]=new nc(t,u[h]);for(h=0;h<v;++h)(d=e[h])&&g.get(x[h])===d&&(l[h]=d)}function jlt(t){return t.__data__}function Vlt(t,e){if(!arguments.length)return Array.from(this,jlt);var r=e?Ult:Wlt,o=this._parents,l=this._groups;typeof t!="function"&&(t=Blt(t));for(var u=l.length,f=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var v=o[g],b=l[g],x=b.length,S=Glt(t.call(v,v&&v.__data__,g,o)),N=S.length,A=h[g]=new Array(N),M=f[g]=new Array(N),T=d[g]=new Array(x);r(v,b,A,M,T,S,e);for(var E=0,F=0,L,j;E<N;++E)if(L=A[E]){for(E>=F&&(F=E+1);!(j=M[F])&&++F<N;);L._next=j||null}}return f=new zn(f,o),f._enter=h,f._exit=d,f}function Glt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Klt(){return new zn(this._exit||this._groups.map(Yy),this._parents)}function Xlt(t,e,r){var o=this.enter(),l=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),e!=null&&(l=e(l),l&&(l=l.selection())),r==null?u.remove():r(u),o&&l?o.merge(l).order():l}function Ylt(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,l=r.length,u=o.length,f=Math.min(l,u),h=new Array(l),d=0;d<f;++d)for(var g=r[d],v=o[d],b=g.length,x=h[d]=new Array(b),S,N=0;N<b;++N)(S=g[N]||v[N])&&(x[N]=S);for(;d<l;++d)h[d]=r[d];return new zn(h,this._parents)}function Zlt(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o=t[e],l=o.length-1,u=o[l],f;--l>=0;)(f=o[l])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function Jlt(t){t||(t=Qlt);function e(b,x){return b&&x?t(b.__data__,x.__data__):!b-!x}for(var r=this._groups,o=r.length,l=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,d=l[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(e)}return new zn(l,this._parents).order()}function Qlt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function tct(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ect(){return Array.from(this)}function nct(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],l=0,u=o.length;l<u;++l){var f=o[l];if(f)return f}return null}function rct(){let t=0;for(const e of this)++t;return t}function ict(){return!this.node()}function oct(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var l=e[r],u=0,f=l.length,h;u<f;++u)(h=l[u])&&t.call(h,h.__data__,u,l);return this}function sct(t){return function(){this.removeAttribute(t)}}function act(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lct(t,e){return function(){this.setAttribute(t,e)}}function cct(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function uct(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function fct(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function hct(t,e){var r=Rc(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?act:sct:typeof e=="function"?r.local?fct:uct:r.local?cct:lct)(r,e))}function Zy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dct(t){return function(){this.style.removeProperty(t)}}function pct(t,e,r){return function(){this.style.setProperty(t,e,r)}}function gct(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function vct(t,e,r){return arguments.length>1?this.each((e==null?dct:typeof e=="function"?gct:pct)(t,e,r??"")):ns(this.node(),t)}function ns(t,e){return t.style.getPropertyValue(e)||Zy(t).getComputedStyle(t,null).getPropertyValue(e)}function mct(t){return function(){delete this[t]}}function yct(t,e){return function(){this[t]=e}}function bct(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function wct(t,e){return arguments.length>1?this.each((e==null?mct:typeof e=="function"?bct:yct)(t,e)):this.node()[t]}function Jy(t){return t.trim().split(/^|\s+/)}function Dh(t){return t.classList||new Qy(t)}function Qy(t){this._node=t,this._names=Jy(t.getAttribute("class")||"")}Qy.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function tb(t,e){for(var r=Dh(t),o=-1,l=e.length;++o<l;)r.add(e[o])}function eb(t,e){for(var r=Dh(t),o=-1,l=e.length;++o<l;)r.remove(e[o])}function xct(t){return function(){tb(this,t)}}function _ct(t){return function(){eb(this,t)}}function Sct(t,e){return function(){(e.apply(this,arguments)?tb:eb)(this,t)}}function kct(t,e){var r=Jy(t+"");if(arguments.length<2){for(var o=Dh(this.node()),l=-1,u=r.length;++l<u;)if(!o.contains(r[l]))return!1;return!0}return this.each((typeof e=="function"?Sct:e?xct:_ct)(r,e))}function Cct(){this.textContent=""}function Tct(t){return function(){this.textContent=t}}function Ect(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Lct(t){return arguments.length?this.each(t==null?Cct:(typeof t=="function"?Ect:Tct)(t)):this.node().textContent}function Act(){this.innerHTML=""}function Mct(t){return function(){this.innerHTML=t}}function Nct(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Pct(t){return arguments.length?this.each(t==null?Act:(typeof t=="function"?Nct:Mct)(t)):this.node().innerHTML}function Oct(){this.nextSibling&&this.parentNode.appendChild(this)}function $ct(){return this.each(Oct)}function Dct(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rct(){return this.each(Dct)}function zct(t){var e=typeof t=="function"?t:Vy(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ict(){return null}function Fct(t,e){var r=typeof t=="function"?t:Vy(t),o=e==null?Ict:typeof e=="function"?e:$h(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function qct(){var t=this.parentNode;t&&t.removeChild(this)}function Hct(){return this.each(qct)}function Bct(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wct(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Uct(t){return this.select(t?Wct:Bct)}function jct(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Vct(t){return function(e){t.call(this,e,this.__data__)}}function Gct(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function Kct(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,l=e.length,u;r<l;++r)u=e[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):e[++o]=u;++o?e.length=o:delete this.__on}}}function Xct(t,e,r){return function(){var o=this.__on,l,u=Vct(e);if(o){for(var f=0,h=o.length;f<h;++f)if((l=o[f]).type===t.type&&l.name===t.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=u,l.options=r),l.value=e;return}}this.addEventListener(t.type,u,r),l={type:t.type,name:t.name,value:e,listener:u,options:r},o?o.push(l):this.__on=[l]}}function Yct(t,e,r){var o=Gct(t+""),l,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,g=h.length,v;d<g;++d)for(l=0,v=h[d];l<u;++l)if((f=o[l]).type===v.type&&f.name===v.name)return v.value}return}for(h=e?Xct:Kct,l=0;l<u;++l)this.each(h(o[l],e,r));return this}function nb(t,e,r){var o=Zy(t),l=o.CustomEvent;typeof l=="function"?l=new l(e,r):(l=o.document.createEvent("Event"),r?(l.initEvent(e,r.bubbles,r.cancelable),l.detail=r.detail):l.initEvent(e,!1,!1)),t.dispatchEvent(l)}function Zct(t,e){return function(){return nb(this,t,e)}}function Jct(t,e){return function(){return nb(this,t,e.apply(this,arguments))}}function Qct(t,e){return this.each((typeof e=="function"?Jct:Zct)(t,e))}function*tut(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],l=0,u=o.length,f;l<u;++l)(f=o[l])&&(yield f)}var rb=[null];function zn(t,e){this._groups=t,this._parents=e}function La(){return new zn([[document.documentElement]],rb)}function eut(){return this}zn.prototype=La.prototype={constructor:zn,select:Elt,selectAll:Nlt,selectChild:Dlt,selectChildren:Flt,filter:qlt,data:Vlt,enter:Hlt,exit:Klt,join:Xlt,merge:Ylt,selection:eut,order:Zlt,sort:Jlt,call:tct,nodes:ect,node:nct,size:rct,empty:ict,each:oct,attr:hct,style:vct,property:wct,classed:kct,text:Lct,html:Pct,raise:$ct,lower:Rct,append:zct,insert:Fct,remove:Hct,clone:Uct,datum:jct,on:Yct,dispatch:Qct,[Symbol.iterator]:tut};function kn(t){return typeof t=="string"?new zn([[document.querySelector(t)]],[document.documentElement]):new zn([[t]],rb)}function nut(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Dr(t,e){if(t=nut(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}if(e.getBoundingClientRect){var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}}return[t.pageX,t.pageY]}class pn{constructor(e,r){this.x=e,this.y=r}static of([e,r]){return new pn(e,r)}add(e){return new pn(this.x+e.x,this.y+e.y)}subtract(e){return new pn(this.x-e.x,this.y-e.y)}multiply(e){return new pn(this.x*e,this.y*e)}divide(e){return new pn(this.x/e,this.y/e)}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-e.x*this.y}hadamard(e){return new pn(this.x*e.x,this.y*e.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const e=this.length();return new pn(this.x/e,this.y/e)}rotateByRadians(e){const r=Math.cos(e),o=Math.sin(e);return new pn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}}var rut={value:()=>{}};function Aa(){for(var t=0,e=arguments.length,r={},o;t<e;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Rl(r)}function Rl(t){this._=t}function iut(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",l=r.indexOf(".");if(l>=0&&(o=r.slice(l+1),r=r.slice(0,l)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Rl.prototype=Aa.prototype={constructor:Rl,on:function(t,e){var r=this._,o=iut(t+"",r),l,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((l=(t=o[u]).type)&&(l=out(r[l],t.name)))return l;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(l=(t=o[u]).type)r[l]=Hv(r[l],t.name,e);else if(e==null)for(l in r)r[l]=Hv(r[l],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Rl(t)},call:function(t,e){if((l=arguments.length-2)>0)for(var r=new Array(l),o=0,l,u;o<l;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,l=u.length;o<l;++o)u[o].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],l=0,u=o.length;l<u;++l)o[l].value.apply(e,r)}};function out(t,e){for(var r=0,o=t.length,l;r<o;++r)if((l=t[r]).name===e)return l.value}function Hv(t,e,r){for(var o=0,l=t.length;o<l;++o)if(t[o].name===e){t[o]=rut,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}const sut={passive:!1},ga={capture:!0,passive:!1};function Zu(t){t.stopImmediatePropagation()}function Wo(t){t.preventDefault(),t.stopImmediatePropagation()}function ib(t){var e=t.document.documentElement,r=kn(t).on("dragstart.drag",Wo,ga);"onselectstart"in e?r.on("selectstart.drag",Wo,ga):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ob(t,e){var r=t.document.documentElement,o=kn(t).on("dragstart.drag",null);e&&(o.on("click.drag",Wo,ga),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 _l=t=>()=>t;function Rf(t,{sourceEvent:e,subject:r,target:o,identifier:l,active:u,x:f,y:h,dx:d,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:l,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:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}Rf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function aut(t){return!t.ctrlKey&&!t.button}function lut(){return this.parentNode}function cut(t,e){return e??{x:t.x,y:t.y}}function uut(){return navigator.maxTouchPoints||"ontouchstart"in this}function fut(){var t=aut,e=lut,r=cut,o=uut,l={},u=Aa("start","drag","end"),f=0,h,d,g,v,b=0;function x(L){L.on("mousedown.drag",S).filter(o).on("touchstart.drag",M).on("touchmove.drag",T,sut).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(L,j){if(!(v||!t.call(this,L,j))){var Y=F(this,e.call(this,L,j),L,j,"mouse");Y&&(kn(L.view).on("mousemove.drag",N,ga).on("mouseup.drag",A,ga),ib(L.view),Zu(L),g=!1,h=L.clientX,d=L.clientY,Y("start",L))}}function N(L){if(Wo(L),!g){var j=L.clientX-h,Y=L.clientY-d;g=j*j+Y*Y>b}l.mouse("drag",L)}function A(L){kn(L.view).on("mousemove.drag mouseup.drag",null),ob(L.view,g),Wo(L),l.mouse("end",L)}function M(L,j){if(t.call(this,L,j)){var Y=L.changedTouches,ft=e.call(this,L,j),X=Y.length,st,ot;for(st=0;st<X;++st)(ot=F(this,ft,L,j,Y[st].identifier,Y[st]))&&(Zu(L),ot("start",L,Y[st]))}}function T(L){var j=L.changedTouches,Y=j.length,ft,X;for(ft=0;ft<Y;++ft)(X=l[j[ft].identifier])&&(Wo(L),X("drag",L,j[ft]))}function E(L){var j=L.changedTouches,Y=j.length,ft,X;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ft=0;ft<Y;++ft)(X=l[j[ft].identifier])&&(Zu(L),X("end",L,j[ft]))}function F(L,j,Y,ft,X,st){var ot=u.copy(),kt=Dr(st||Y,j),pt,G,R;if((R=r.call(L,new Rf("beforestart",{sourceEvent:Y,target:x,identifier:X,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:ot}),ft))!=null)return pt=R.x-kt[0]||0,G=R.y-kt[1]||0,function k(H,B,Q){var wt=kt,Tt;switch(H){case"start":l[X]=k,Tt=f++;break;case"end":delete l[X],--f;case"drag":kt=Dr(Q||B,j),Tt=f;break}ot.call(H,L,new Rf(H,{sourceEvent:B,subject:R,target:x,identifier:X,active:Tt,x:kt[0]+pt,y:kt[1]+G,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:ot}),ft)}}return x.filter=function(L){return arguments.length?(t=typeof L=="function"?L:_l(!!L),x):t},x.container=function(L){return arguments.length?(e=typeof L=="function"?L:_l(L),x):e},x.subject=function(L){return arguments.length?(r=typeof L=="function"?L:_l(L),x):r},x.touchable=function(L){return arguments.length?(o=typeof L=="function"?L:_l(!!L),x):o},x.on=function(){var L=u.on.apply(u,arguments);return L===u?x:L},x.clickDistance=function(L){return arguments.length?(b=(L=+L)*L,x):Math.sqrt(b)},x}function Rh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function sb(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function Ma(){}var va=.7,rc=1/va,Uo="\\s*([+-]?\\d+)\\s*",ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hut=/^#([0-9a-f]{3,8})$/,dut=new RegExp(`^rgb\\(${Uo},${Uo},${Uo}\\)$`),put=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),gut=new RegExp(`^rgba\\(${Uo},${Uo},${Uo},${ma}\\)$`),vut=new RegExp(`^rgba\\(${vr},${vr},${vr},${ma}\\)$`),mut=new RegExp(`^hsl\\(${ma},${vr},${vr}\\)$`),yut=new RegExp(`^hsla\\(${ma},${vr},${vr},${ma}\\)$`),Bv={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};Rh(Ma,ya,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Wv,formatHex:Wv,formatHex8:but,formatHsl:wut,formatRgb:Uv,toString:Uv});function Wv(){return this.rgb().formatHex()}function but(){return this.rgb().formatHex8()}function wut(){return ab(this).formatHsl()}function Uv(){return this.rgb().formatRgb()}function ya(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=hut.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?jv(e):r===3?new Cn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Sl(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Sl(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=dut.exec(t))?new Cn(e[1],e[2],e[3],1):(e=put.exec(t))?new Cn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=gut.exec(t))?Sl(e[1],e[2],e[3],e[4]):(e=vut.exec(t))?Sl(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=mut.exec(t))?Kv(e[1],e[2]/100,e[3]/100,1):(e=yut.exec(t))?Kv(e[1],e[2]/100,e[3]/100,e[4]):Bv.hasOwnProperty(t)?jv(Bv[t]):t==="transparent"?new Cn(NaN,NaN,NaN,0):null}function jv(t){return new Cn(t>>16&255,t>>8&255,t&255,1)}function Sl(t,e,r,o){return o<=0&&(t=e=r=NaN),new Cn(t,e,r,o)}function xut(t){return t instanceof Ma||(t=ya(t)),t?(t=t.rgb(),new Cn(t.r,t.g,t.b,t.opacity)):new Cn}function zf(t,e,r,o){return arguments.length===1?xut(t):new Cn(t,e,r,o??1)}function Cn(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}Rh(Cn,zf,sb(Ma,{brighter(t){return t=t==null?rc:Math.pow(rc,t),new Cn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?va:Math.pow(va,t),new Cn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Cn(Ji(this.r),Ji(this.g),Ji(this.b),ic(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:Vv,formatHex:Vv,formatHex8:_ut,formatRgb:Gv,toString:Gv}));function Vv(){return`#${Ki(this.r)}${Ki(this.g)}${Ki(this.b)}`}function _ut(){return`#${Ki(this.r)}${Ki(this.g)}${Ki(this.b)}${Ki((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gv(){const t=ic(this.opacity);return`${t===1?"rgb(":"rgba("}${Ji(this.r)}, ${Ji(this.g)}, ${Ji(this.b)}${t===1?")":`, ${t})`}`}function ic(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ji(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ki(t){return t=Ji(t),(t<16?"0":"")+t.toString(16)}function Kv(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Jn(t,e,r,o)}function ab(t){if(t instanceof Jn)return new Jn(t.h,t.s,t.l,t.opacity);if(t instanceof Ma||(t=ya(t)),!t)return new Jn;if(t instanceof Jn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,l=Math.min(e,r,o),u=Math.max(e,r,o),f=NaN,h=u-l,d=(u+l)/2;return h?(e===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-e)/h+2:f=(e-r)/h+4,h/=d<.5?u+l:2-u-l,f*=60):h=d>0&&d<1?0:f,new Jn(f,h,d,t.opacity)}function Sut(t,e,r,o){return arguments.length===1?ab(t):new Jn(t,e,r,o??1)}function Jn(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}Rh(Jn,Sut,sb(Ma,{brighter(t){return t=t==null?rc:Math.pow(rc,t),new Jn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?va:Math.pow(va,t),new Jn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,l=2*r-o;return new Cn(Ju(t>=240?t-240:t+120,l,o),Ju(t,l,o),Ju(t<120?t+240:t-120,l,o),this.opacity)},clamp(){return new Jn(Xv(this.h),kl(this.s),kl(this.l),ic(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=ic(this.opacity);return`${t===1?"hsl(":"hsla("}${Xv(this.h)}, ${kl(this.s)*100}%, ${kl(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Xv(t){return t=(t||0)%360,t<0?t+360:t}function kl(t){return Math.max(0,Math.min(1,t||0))}function Ju(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const lb=t=>()=>t;function kut(t,e){return function(r){return t+r*e}}function Cut(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}function Tut(t){return(t=+t)==1?cb:function(e,r){return r-e?Cut(e,r,t):lb(isNaN(e)?r:e)}}function cb(t,e){var r=e-t;return r?kut(t,r):lb(isNaN(t)?e:t)}const Yv=function t(e){var r=Tut(e);function o(l,u){var f=r((l=zf(l)).r,(u=zf(u)).r),h=r(l.g,u.g),d=r(l.b,u.b),g=cb(l.opacity,u.opacity);return function(v){return l.r=f(v),l.g=h(v),l.b=d(v),l.opacity=g(v),l+""}}return o.gamma=t,o}(1);function vi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var If=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qu=new RegExp(If.source,"g");function Eut(t){return function(){return t}}function Lut(t){return function(e){return t(e)+""}}function Aut(t,e){var r=If.lastIndex=Qu.lastIndex=0,o,l,u,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=If.exec(t))&&(l=Qu.exec(e));)(u=l.index)>r&&(u=e.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(l=l[0])?h[f]?h[f]+=l:h[++f]=l:(h[++f]=null,d.push({i:f,x:vi(o,l)})),r=Qu.lastIndex;return r<e.length&&(u=e.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?d[0]?Lut(d[0].x):Eut(e):(e=d.length,function(g){for(var v=0,b;v<e;++v)h[(b=d[v]).i]=b.x(g);return h.join("")})}var Zv=180/Math.PI,Ff={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ub(t,e,r,o,l,u){var f,h,d;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(d=t*r+e*o)&&(r-=t*d,o-=e*d),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,d/=h),t*o<e*r&&(t=-t,e=-e,d=-d,f=-f),{translateX:l,translateY:u,rotate:Math.atan2(e,t)*Zv,skewX:Math.atan(d)*Zv,scaleX:f,scaleY:h}}var Cl;function Mut(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ff:ub(e.a,e.b,e.c,e.d,e.e,e.f)}function Nut(t){return t==null||(Cl||(Cl=document.createElementNS("http://www.w3.org/2000/svg","g")),Cl.setAttribute("transform",t),!(t=Cl.transform.baseVal.consolidate()))?Ff:(t=t.matrix,ub(t.a,t.b,t.c,t.d,t.e,t.f))}function fb(t,e,r,o){function l(g){return g.length?g.pop()+" ":""}function u(g,v,b,x,S,N){if(g!==b||v!==x){var A=S.push("translate(",null,e,null,r);N.push({i:A-4,x:vi(g,b)},{i:A-2,x:vi(v,x)})}else(b||x)&&S.push("translate("+b+e+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(l(b)+"rotate(",null,o)-2,x:vi(g,v)})):v&&b.push(l(b)+"rotate("+v+o)}function h(g,v,b,x){g!==v?x.push({i:b.push(l(b)+"skewX(",null,o)-2,x:vi(g,v)}):v&&b.push(l(b)+"skewX("+v+o)}function d(g,v,b,x,S,N){if(g!==b||v!==x){var A=S.push(l(S)+"scale(",null,",",null,")");N.push({i:A-4,x:vi(g,b)},{i:A-2,x:vi(v,x)})}else(b!==1||x!==1)&&S.push(l(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),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,x),g=v=null,function(S){for(var N=-1,A=x.length,M;++N<A;)b[(M=x[N]).i]=M.x(S);return b.join("")}}}var Put=fb(Mut,"px, ","px)","deg)"),Out=fb(Nut,", ",")",")"),$ut=1e-12;function Jv(t){return((t=Math.exp(t))+1/t)/2}function Dut(t){return((t=Math.exp(t))-1/t)/2}function Rut(t){return((t=Math.exp(2*t))-1)/(t+1)}const zut=function t(e,r,o){function l(u,f){var h=u[0],d=u[1],g=u[2],v=f[0],b=f[1],x=f[2],S=v-h,N=b-d,A=S*S+N*N,M,T;if(A<$ut)T=Math.log(x/g)/e,M=function(ft){return[h+ft*S,d+ft*N,g*Math.exp(e*ft*T)]};else{var E=Math.sqrt(A),F=(x*x-g*g+o*A)/(2*g*r*E),L=(x*x-g*g-o*A)/(2*x*r*E),j=Math.log(Math.sqrt(F*F+1)-F),Y=Math.log(Math.sqrt(L*L+1)-L);T=(Y-j)/e,M=function(ft){var X=ft*T,st=Jv(j),ot=g/(r*E)*(st*Rut(e*X+j)-Dut(j));return[h+ot*S,d+ot*N,g*st/Jv(e*X+j)]}}return M.duration=T*1e3*e/Math.SQRT2,M}return l.rho=function(u){var f=Math.max(.001,+u),h=f*f,d=h*h;return t(f,h,d)},l}(Math.SQRT2,2,4);var rs=0,Xs=0,js=0,hb=1e3,oc,Ys,sc=0,no=0,zc=0,ba=typeof performance=="object"&&performance.now?performance:Date,db=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function zh(){return no||(db(Iut),no=ba.now()+zc)}function Iut(){no=0}function ac(){this._call=this._time=this._next=null}ac.prototype=Ih.prototype={constructor:ac,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?zh():+r)+(e==null?0:+e),!this._next&&Ys!==this&&(Ys?Ys._next=this:oc=this,Ys=this),this._call=t,this._time=r,qf()},stop:function(){this._call&&(this._call=null,this._time=1/0,qf())}};function Ih(t,e,r){var o=new ac;return o.restart(t,e,r),o}function Fut(){zh(),++rs;for(var t=oc,e;t;)(e=no-t._time)>=0&&t._call.call(void 0,e),t=t._next;--rs}function Qv(){no=(sc=ba.now())+zc,rs=Xs=0;try{Fut()}finally{rs=0,Hut(),no=0}}function qut(){var t=ba.now(),e=t-sc;e>hb&&(zc-=e,sc=t)}function Hut(){for(var t,e=oc,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:oc=r);Ys=t,qf(o)}function qf(t){if(!rs){Xs&&(Xs=clearTimeout(Xs));var e=t-no;e>24?(t<1/0&&(Xs=setTimeout(Qv,t-ba.now()-zc)),js&&(js=clearInterval(js))):(js||(sc=ba.now(),js=setInterval(qut,hb)),rs=1,db(Qv))}}function tm(t,e,r){var o=new ac;return e=e==null?0:+e,o.restart(l=>{o.stop(),t(l+e)},e,r),o}var But=Aa("start","end","cancel","interrupt"),Wut=[],pb=0,em=1,Hf=2,zl=3,nm=4,Bf=5,Il=6;function Ic(t,e,r,o,l,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;Uut(t,r,{name:e,index:o,group:l,on:But,tween:Wut,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:pb})}function Fh(t,e){var r=nr(t,e);if(r.state>pb)throw new Error("too late; already scheduled");return r}function br(t,e){var r=nr(t,e);if(r.state>zl)throw new Error("too late; already running");return r}function nr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Uut(t,e,r){var o=t.__transition,l;o[e]=r,r.timer=Ih(u,0,r.time);function u(g){r.state=em,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!==em)return d();for(v in o)if(S=o[v],S.name===r.name){if(S.state===zl)return tm(f);S.state===nm?(S.state=Il,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<e&&(S.state=Il,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if(tm(function(){r.state===zl&&(r.state=nm,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=Hf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Hf){for(r.state=zl,l=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))&&(l[++b]=S);l.length=b+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=Bf,1),b=-1,x=l.length;++b<x;)l[b].call(t,v);r.state===Bf&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=Il,r.timer.stop(),delete o[e];for(var g in o)return;delete t.__transition}}function Fl(t,e){var r=t.__transition,o,l,u=!0,f;if(r){e=e==null?null:e+"";for(f in r){if((o=r[f]).name!==e){u=!1;continue}l=o.state>Hf&&o.state<Bf,o.state=Il,o.timer.stop(),o.on.call(l?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function jut(t){return this.each(function(){Fl(this,t)})}function Vut(t,e){var r,o;return function(){var l=br(this,t),u=l.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===e){o=o.slice(),o.splice(f,1);break}}l.tween=o}}function Gut(t,e,r){var o,l;if(typeof r!="function")throw new Error;return function(){var u=br(this,t),f=u.tween;if(f!==o){l=(o=f).slice();for(var h={name:e,value:r},d=0,g=l.length;d<g;++d)if(l[d].name===e){l[d]=h;break}d===g&&l.push(h)}u.tween=l}}function Kut(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o=nr(this.node(),r).tween,l=0,u=o.length,f;l<u;++l)if((f=o[l]).name===t)return f.value;return null}return this.each((e==null?Vut:Gut)(r,t,e))}function qh(t,e,r){var o=t._id;return t.each(function(){var l=br(this,o);(l.value||(l.value={}))[e]=r.apply(this,arguments)}),function(l){return nr(l,o).value[e]}}function gb(t,e){var r;return(typeof e=="number"?vi:e instanceof ya?Yv:(r=ya(e))?(e=r,Yv):Aut)(t,e)}function Xut(t){return function(){this.removeAttribute(t)}}function Yut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zut(t,e,r){var o,l=r+"",u;return function(){var f=this.getAttribute(t);return f===l?null:f===o?u:u=e(o=f,r)}}function Jut(t,e,r){var o,l=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===l?null:f===o?u:u=e(o=f,r)}}function Qut(t,e,r){var o,l,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),d=h+"",f===d?null:f===o&&d===l?u:(l=d,u=e(o=f,h)))}}function tft(t,e,r){var o,l,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),d=h+"",f===d?null:f===o&&d===l?u:(l=d,u=e(o=f,h)))}}function eft(t,e){var r=Rc(t),o=r==="transform"?Out:gb;return this.attrTween(t,typeof e=="function"?(r.local?tft:Qut)(r,o,qh(this,"attr."+t,e)):e==null?(r.local?Yut:Xut)(r):(r.local?Jut:Zut)(r,o,e))}function nft(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function rft(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function ift(t,e){var r,o;function l(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&rft(t,u)),r}return l._value=e,l}function oft(t,e){var r,o;function l(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&nft(t,u)),r}return l._value=e,l}function sft(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var o=Rc(t);return this.tween(r,(o.local?ift:oft)(o,e))}function aft(t,e){return function(){Fh(this,t).delay=+e.apply(this,arguments)}}function lft(t,e){return e=+e,function(){Fh(this,t).delay=e}}function cft(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?aft:lft)(e,t)):nr(this.node(),e).delay}function uft(t,e){return function(){br(this,t).duration=+e.apply(this,arguments)}}function fft(t,e){return e=+e,function(){br(this,t).duration=e}}function hft(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?uft:fft)(e,t)):nr(this.node(),e).duration}function dft(t,e){if(typeof e!="function")throw new Error;return function(){br(this,t).ease=e}}function pft(t){var e=this._id;return arguments.length?this.each(dft(e,t)):nr(this.node(),e).ease}function gft(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;br(this,t).ease=r}}function vft(t){if(typeof t!="function")throw new Error;return this.each(gft(this._id,t))}function mft(t){typeof t!="function"&&(t=Ky(t));for(var e=this._groups,r=e.length,o=new Array(r),l=0;l<r;++l)for(var u=e[l],f=u.length,h=o[l]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Vr(o,this._parents,this._name,this._id)}function yft(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,l=r.length,u=Math.min(o,l),f=new Array(o),h=0;h<u;++h)for(var d=e[h],g=r[h],v=d.length,b=f[h]=new Array(v),x,S=0;S<v;++S)(x=d[S]||g[S])&&(b[S]=x);for(;h<o;++h)f[h]=e[h];return new Vr(f,this._parents,this._name,this._id)}function bft(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function wft(t,e,r){var o,l,u=bft(e)?Fh:br;return function(){var f=u(this,t),h=f.on;h!==o&&(l=(o=h).copy()).on(e,r),f.on=l}}function xft(t,e){var r=this._id;return arguments.length<2?nr(this.node(),r).on.on(t):this.each(wft(r,t,e))}function _ft(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Sft(){return this.on("end.remove",_ft(this._id))}function kft(t){var e=this._name,r=this._id;typeof t!="function"&&(t=$h(t));for(var o=this._groups,l=o.length,u=new Array(l),f=0;f<l;++f)for(var h=o[f],d=h.length,g=u[f]=new Array(d),v,b,x=0;x<d;++x)(v=h[x])&&(b=t.call(v,v.__data__,x,h))&&("__data__"in v&&(b.__data__=v.__data__),g[x]=b,Ic(g[x],e,r,x,g,nr(v,r)));return new Vr(u,this._parents,e,r)}function Cft(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Gy(t));for(var o=this._groups,l=o.length,u=[],f=[],h=0;h<l;++h)for(var d=o[h],g=d.length,v,b=0;b<g;++b)if(v=d[b]){for(var x=t.call(v,v.__data__,b,d),S,N=nr(v,r),A=0,M=x.length;A<M;++A)(S=x[A])&&Ic(S,e,r,A,x,N);u.push(x),f.push(v)}return new Vr(u,f,e,r)}var Tft=La.prototype.constructor;function Eft(){return new Tft(this._groups,this._parents)}function Lft(t,e){var r,o,l;return function(){var u=ns(this,t),f=(this.style.removeProperty(t),ns(this,t));return u===f?null:u===r&&f===o?l:l=e(r=u,o=f)}}function vb(t){return function(){this.style.removeProperty(t)}}function Aft(t,e,r){var o,l=r+"",u;return function(){var f=ns(this,t);return f===l?null:f===o?u:u=e(o=f,r)}}function Mft(t,e,r){var o,l,u;return function(){var f=ns(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),ns(this,t))),f===d?null:f===o&&d===l?u:(l=d,u=e(o=f,h))}}function Nft(t,e){var r,o,l,u="style."+e,f="end."+u,h;return function(){var d=br(this,t),g=d.on,v=d.value[u]==null?h||(h=vb(e)):void 0;(g!==r||l!==v)&&(o=(r=g).copy()).on(f,l=v),d.on=o}}function Pft(t,e,r){var o=(t+="")=="transform"?Put:gb;return e==null?this.styleTween(t,Lft(t,o)).on("end.style."+t,vb(t)):typeof e=="function"?this.styleTween(t,Mft(t,o,qh(this,"style."+t,e))).each(Nft(this._id,t)):this.styleTween(t,Aft(t,o,e),r).on("end.style."+t,null)}function Oft(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function $ft(t,e,r){var o,l;function u(){var f=e.apply(this,arguments);return f!==l&&(o=(l=f)&&Oft(t,f,r)),o}return u._value=e,u}function Dft(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,$ft(t,e,r??""))}function Rft(t){return function(){this.textContent=t}}function zft(t){return function(){var e=t(this);this.textContent=e??""}}function Ift(t){return this.tween("text",typeof t=="function"?zft(qh(this,"text",t)):Rft(t==null?"":t+""))}function Fft(t){return function(e){this.textContent=t.call(this,e)}}function qft(t){var e,r;function o(){var l=t.apply(this,arguments);return l!==r&&(e=(r=l)&&Fft(l)),e}return o._value=t,o}function Hft(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,qft(t))}function Bft(){for(var t=this._name,e=this._id,r=mb(),o=this._groups,l=o.length,u=0;u<l;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=nr(d,e);Ic(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Vr(o,this._parents,t,r)}function Wft(){var t,e,r=this,o=r._id,l=r.size();return new Promise(function(u,f){var h={value:f},d={value:function(){--l===0&&u()}};r.each(function(){var g=br(this,o),v=g.on;v!==t&&(e=(t=v).copy(),e._.cancel.push(h),e._.interrupt.push(h),e._.end.push(d)),g.on=e}),l===0&&u()})}var Uft=0;function Vr(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function mb(){return++Uft}var Or=La.prototype;Vr.prototype={constructor:Vr,select:kft,selectAll:Cft,selectChild:Or.selectChild,selectChildren:Or.selectChildren,filter:mft,merge:yft,selection:Eft,transition:Bft,call:Or.call,nodes:Or.nodes,node:Or.node,size:Or.size,empty:Or.empty,each:Or.each,on:xft,attr:eft,attrTween:sft,style:Pft,styleTween:Dft,text:Ift,textTween:Hft,remove:Sft,tween:Kut,delay:cft,duration:hft,ease:pft,easeVarying:vft,end:Wft,[Symbol.iterator]:Or[Symbol.iterator]};function jft(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Vft={time:null,delay:0,duration:250,ease:jft};function Gft(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Kft(t){var e,r;t instanceof Vr?(e=t._id,t=t._name):(e=mb(),(r=Vft).time=zh(),t=t==null?null:t+"");for(var o=this._groups,l=o.length,u=0;u<l;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&Ic(d,t,e,g,f,r||Gft(d,e));return new Vr(o,this._parents,t,e)}La.prototype.interrupt=jut;La.prototype.transition=Kft;const Tl=t=>()=>t;function Xft(t,{sourceEvent:e,target:r,transform:o,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:l}})}function zr(t,e,r){this.k=t,this.x=e,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,e){return t===0&e===0?this:new zr(this.k,this.x+this.k*t,this.y+this.k*e)},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 Hh=new zr(1,0,0);zr.prototype;function tf(t){t.stopImmediatePropagation()}function Vs(t){t.preventDefault(),t.stopImmediatePropagation()}function Yft(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Zft(){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 rm(){return this.__zoom||Hh}function Jft(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Qft(){return navigator.maxTouchPoints||"ontouchstart"in this}function tht(t,e,r){var o=t.invertX(e[0][0])-r[0][0],l=t.invertX(e[1][0])-r[1][0],u=t.invertY(e[0][1])-r[0][1],f=t.invertY(e[1][1])-r[1][1];return t.translate(l>o?(o+l)/2:Math.min(0,o)||Math.max(0,l),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function eht(){var t=Yft,e=Zft,r=tht,o=Jft,l=Qft,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=zut,g=Aa("start","zoom","end"),v,b,x,S=500,N=150,A=0,M=10;function T(R){R.property("__zoom",rm).on("wheel.zoom",X,{passive:!1}).on("mousedown.zoom",st).on("dblclick.zoom",ot).filter(l).on("touchstart.zoom",kt).on("touchmove.zoom",pt).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(R,k,H,B){var Q=R.selection?R.selection():R;Q.property("__zoom",rm),R!==Q?j(R,k,H,B):Q.interrupt().each(function(){Y(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(R,k,H,B){T.scaleTo(R,function(){var Q=this.__zoom.k,wt=typeof k=="function"?k.apply(this,arguments):k;return Q*wt},H,B)},T.scaleTo=function(R,k,H,B){T.transform(R,function(){var Q=e.apply(this,arguments),wt=this.__zoom,Tt=H==null?L(Q):typeof H=="function"?H.apply(this,arguments):H,Rt=wt.invert(Tt),zt=typeof k=="function"?k.apply(this,arguments):k;return r(F(E(wt,zt),Tt,Rt),Q,f)},H,B)},T.translateBy=function(R,k,H,B){T.transform(R,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof H=="function"?H.apply(this,arguments):H),e.apply(this,arguments),f)},null,B)},T.translateTo=function(R,k,H,B,Q){T.transform(R,function(){var wt=e.apply(this,arguments),Tt=this.__zoom,Rt=B==null?L(wt):typeof B=="function"?B.apply(this,arguments):B;return r(Hh.translate(Rt[0],Rt[1]).scale(Tt.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof H=="function"?-H.apply(this,arguments):-H),wt,f)},B,Q)};function E(R,k){return k=Math.max(u[0],Math.min(u[1],k)),k===R.k?R:new zr(k,R.x,R.y)}function F(R,k,H){var B=k[0]-H[0]*R.k,Q=k[1]-H[1]*R.k;return B===R.x&&Q===R.y?R:new zr(R.k,B,Q)}function L(R){return[(+R[0][0]+ +R[1][0])/2,(+R[0][1]+ +R[1][1])/2]}function j(R,k,H,B){R.on("start.zoom",function(){Y(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){Y(this,arguments).event(B).end()}).tween("zoom",function(){var Q=this,wt=arguments,Tt=Y(Q,wt).event(B),Rt=e.apply(Q,wt),zt=H==null?L(Rt):typeof H=="function"?H.apply(Q,wt):H,Vt=Math.max(Rt[1][0]-Rt[0][0],Rt[1][1]-Rt[0][1]),Gt=Q.__zoom,Jt=typeof k=="function"?k.apply(Q,wt):k,_t=d(Gt.invert(zt).concat(Vt/Gt.k),Jt.invert(zt).concat(Vt/Jt.k));return function(W){if(W===1)W=Jt;else{var et=_t(W),it=Vt/et[2];W=new zr(it,zt[0]-et[0]*it,zt[1]-et[1]*it)}Tt.zoom(null,W)}})}function Y(R,k,H){return!H&&R.__zooming||new ft(R,k)}function ft(R,k){this.that=R,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(R,k),this.taps=0}ft.prototype={event:function(R){return R&&(this.sourceEvent=R),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(R,k){return this.mouse&&R!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&R!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&R!=="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(R){var k=kn(this.that).datum();g.call(R,this.that,new Xft(R,{sourceEvent:this.sourceEvent,target:T,type:R,transform:this.that.__zoom,dispatch:g}),k)}};function X(R,...k){if(!t.apply(this,arguments))return;var H=Y(this,k).event(R),B=this.__zoom,Q=Math.max(u[0],Math.min(u[1],B.k*Math.pow(2,o.apply(this,arguments)))),wt=Dr(R);if(H.wheel)(H.mouse[0][0]!==wt[0]||H.mouse[0][1]!==wt[1])&&(H.mouse[1]=B.invert(H.mouse[0]=wt)),clearTimeout(H.wheel);else{if(B.k===Q)return;H.mouse=[wt,B.invert(wt)],Fl(this),H.start()}Vs(R),H.wheel=setTimeout(Tt,N),H.zoom("mouse",r(F(E(B,Q),H.mouse[0],H.mouse[1]),H.extent,f));function Tt(){H.wheel=null,H.end()}}function st(R,...k){if(x||!t.apply(this,arguments))return;var H=R.currentTarget,B=Y(this,k,!0).event(R),Q=kn(R.view).on("mousemove.zoom",zt,!0).on("mouseup.zoom",Vt,!0),wt=Dr(R,H),Tt=R.clientX,Rt=R.clientY;ib(R.view),tf(R),B.mouse=[wt,this.__zoom.invert(wt)],Fl(this),B.start();function zt(Gt){if(Vs(Gt),!B.moved){var Jt=Gt.clientX-Tt,_t=Gt.clientY-Rt;B.moved=Jt*Jt+_t*_t>A}B.event(Gt).zoom("mouse",r(F(B.that.__zoom,B.mouse[0]=Dr(Gt,H),B.mouse[1]),B.extent,f))}function Vt(Gt){Q.on("mousemove.zoom mouseup.zoom",null),ob(Gt.view,B.moved),Vs(Gt),B.event(Gt).end()}}function ot(R,...k){if(t.apply(this,arguments)){var H=this.__zoom,B=Dr(R.changedTouches?R.changedTouches[0]:R,this),Q=H.invert(B),wt=H.k*(R.shiftKey?.5:2),Tt=r(F(E(H,wt),B,Q),e.apply(this,k),f);Vs(R),h>0?kn(this).transition().duration(h).call(j,Tt,B,R):kn(this).call(T.transform,Tt,B,R)}}function kt(R,...k){if(t.apply(this,arguments)){var H=R.touches,B=H.length,Q=Y(this,k,R.changedTouches.length===B).event(R),wt,Tt,Rt,zt;for(tf(R),Tt=0;Tt<B;++Tt)Rt=H[Tt],zt=Dr(Rt,this),zt=[zt,this.__zoom.invert(zt),Rt.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==zt[2]&&(Q.touch1=zt,Q.taps=0):(Q.touch0=zt,wt=!0,Q.taps=1+!!v);v&&(v=clearTimeout(v)),wt&&(Q.taps<2&&(b=zt[0],v=setTimeout(function(){v=null},S)),Fl(this),Q.start())}}function pt(R,...k){if(this.__zooming){var H=Y(this,k).event(R),B=R.changedTouches,Q=B.length,wt,Tt,Rt,zt;for(Vs(R),wt=0;wt<Q;++wt)Tt=B[wt],Rt=Dr(Tt,this),H.touch0&&H.touch0[2]===Tt.identifier?H.touch0[0]=Rt:H.touch1&&H.touch1[2]===Tt.identifier&&(H.touch1[0]=Rt);if(Tt=H.that.__zoom,H.touch1){var Vt=H.touch0[0],Gt=H.touch0[1],Jt=H.touch1[0],_t=H.touch1[1],W=(W=Jt[0]-Vt[0])*W+(W=Jt[1]-Vt[1])*W,et=(et=_t[0]-Gt[0])*et+(et=_t[1]-Gt[1])*et;Tt=E(Tt,Math.sqrt(W/et)),Rt=[(Vt[0]+Jt[0])/2,(Vt[1]+Jt[1])/2],zt=[(Gt[0]+_t[0])/2,(Gt[1]+_t[1])/2]}else if(H.touch0)Rt=H.touch0[0],zt=H.touch0[1];else return;H.zoom("touch",r(F(Tt,Rt,zt),H.extent,f))}}function G(R,...k){if(this.__zooming){var H=Y(this,k).event(R),B=R.changedTouches,Q=B.length,wt,Tt;for(tf(R),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),wt=0;wt<Q;++wt)Tt=B[wt],H.touch0&&H.touch0[2]===Tt.identifier?delete H.touch0:H.touch1&&H.touch1[2]===Tt.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(Tt=Dr(Tt,this),Math.hypot(b[0]-Tt[0],b[1]-Tt[1])<M)){var Rt=kn(this).on("dblclick.zoom");Rt&&Rt.apply(this,arguments)}}}return T.wheelDelta=function(R){return arguments.length?(o=typeof R=="function"?R:Tl(+R),T):o},T.filter=function(R){return arguments.length?(t=typeof R=="function"?R:Tl(!!R),T):t},T.touchable=function(R){return arguments.length?(l=typeof R=="function"?R:Tl(!!R),T):l},T.extent=function(R){return arguments.length?(e=typeof R=="function"?R:Tl([[+R[0][0],+R[0][1]],[+R[1][0],+R[1][1]]]),T):e},T.scaleExtent=function(R){return arguments.length?(u[0]=+R[0],u[1]=+R[1],T):[u[0],u[1]]},T.translateExtent=function(R){return arguments.length?(f[0][0]=+R[0][0],f[1][0]=+R[1][0],f[0][1]=+R[0][1],f[1][1]=+R[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(R){return arguments.length?(r=R,T):r},T.duration=function(R){return arguments.length?(h=+R,T):h},T.interpolate=function(R){return arguments.length?(d=R,T):d},T.on=function(){var R=g.on.apply(g,arguments);return R===g?T:R},T.clickDistance=function(R){return arguments.length?(A=(R=+R)*R,T):Math.sqrt(A)},T.tapDistance=function(R){return arguments.length?(M=+R,T):M},T}function nht(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return yb(this.cover(e,r),e,r,t)}function yb(t,e,r,o){if(isNaN(e)||isNaN(r))return t;var l,u=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,b,x,S,N,A,M,T,E;if(!u)return t._root=f,t;for(;u.length;)if((A=e>=(b=(h+g)/2))?h=b:g=b,(M=r>=(x=(d+v)/2))?d=x:v=x,l=u,!(u=u[T=M<<1|A]))return l[T]=f,t;if(S=+t._x.call(null,u.data),N=+t._y.call(null,u.data),e===S&&r===N)return f.next=u,l?l[T]=f:t._root=f,t;do l=l?l[T]=new Array(4):t._root=new Array(4),(A=e>=(b=(h+g)/2))?h=b:g=b,(M=r>=(x=(d+v)/2))?d=x:v=x;while((T=M<<1|A)===(E=(N>=x)<<1|S>=b));return l[E]=u,l[T]=f,t}function rht(t){var e,r,o=t.length,l,u,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(l=+this._x.call(null,e=t[r]))||isNaN(u=+this._y.call(null,e))||(f[r]=l,h[r]=u,l<d&&(d=l),l>v&&(v=l),u<g&&(g=u),u>b&&(b=u));if(d>v||g>b)return this;for(this.cover(d,g).cover(v,b),r=0;r<o;++r)yb(this,f[r],h[r],t[r]);return this}function iht(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,o=this._y0,l=this._x1,u=this._y1;if(isNaN(r))l=(r=Math.floor(t))+1,u=(o=Math.floor(e))+1;else{for(var f=l-r||1,h=this._root,d,g;r>t||t>=l||o>e||e>=u;)switch(g=(e<o)<<1|t<r,d=new Array(4),d[g]=h,h=d,f*=2,g){case 0:l=r+f,u=o+f;break;case 1:r=l-f,u=o+f;break;case 2:l=r+f,o=u-f;break;case 3:r=l-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=l,this._y1=u,this}function oht(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function sht(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 gn(t,e,r,o,l){this.node=t,this.x0=e,this.y0=r,this.x1=o,this.y1=l}function aht(t,e,r){var o,l=this._x0,u=this._y0,f,h,d,g,v=this._x1,b=this._y1,x=[],S=this._root,N,A;for(S&&x.push(new gn(S,l,u,v,b)),r==null?r=1/0:(l=t-r,u=e-r,v=t+r,b=e+r,r*=r);N=x.pop();)if(!(!(S=N.node)||(f=N.x0)>v||(h=N.y0)>b||(d=N.x1)<l||(g=N.y1)<u))if(S.length){var M=(f+d)/2,T=(h+g)/2;x.push(new gn(S[3],M,T,d,g),new gn(S[2],f,T,M,g),new gn(S[1],M,h,d,T),new gn(S[0],f,h,M,T)),(A=(e>=T)<<1|t>=M)&&(N=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=N)}else{var E=t-+this._x.call(null,S.data),F=e-+this._y.call(null,S.data),L=E*E+F*F;if(L<r){var j=Math.sqrt(r=L);l=t-j,u=e-j,v=t+j,b=e+j,o=S.data}}return o}function lht(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var e,r=this._root,o,l,u,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,b,x,S,N,A,M,T;if(!r)return this;if(r.length)for(;;){if((N=v>=(x=(f+d)/2))?f=x:d=x,(A=b>=(S=(h+g)/2))?h=S:g=S,e=r,!(r=r[M=A<<1|N]))return this;if(!r.length)break;(e[M+1&3]||e[M+2&3]||e[M+3&3])&&(o=e,T=M)}for(;r.data!==t;)if(l=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,l?(u?l.next=u:delete l.next,this):e?(u?e[M]=u:delete e[M],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=u,this)}function cht(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function uht(){return this._root}function fht(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function hht(t){var e=[],r,o=this._root,l,u,f,h,d;for(o&&e.push(new gn(o,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,d=r.y1)&&o.length){var g=(u+h)/2,v=(f+d)/2;(l=o[3])&&e.push(new gn(l,g,v,h,d)),(l=o[2])&&e.push(new gn(l,u,v,g,d)),(l=o[1])&&e.push(new gn(l,g,f,h,v)),(l=o[0])&&e.push(new gn(l,u,f,g,v))}return this}function dht(t){var e=[],r=[],o;for(this._root&&e.push(new gn(this._root,this._x0,this._y0,this._x1,this._y1));o=e.pop();){var l=o.node;if(l.length){var u,f=o.x0,h=o.y0,d=o.x1,g=o.y1,v=(f+d)/2,b=(h+g)/2;(u=l[0])&&e.push(new gn(u,f,h,v,b)),(u=l[1])&&e.push(new gn(u,v,h,d,b)),(u=l[2])&&e.push(new gn(u,f,b,v,g)),(u=l[3])&&e.push(new gn(u,v,b,d,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function pht(t){return t[0]}function ght(t){return arguments.length?(this._x=t,this):this._x}function vht(t){return t[1]}function mht(t){return arguments.length?(this._y=t,this):this._y}function Bh(t,e,r){var o=new Wh(e??pht,r??vht,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function Wh(t,e,r,o,l,u){this._x=t,this._y=e,this._x0=r,this._y0=o,this._x1=l,this._y1=u,this._root=void 0}function im(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var mn=Bh.prototype=Wh.prototype;mn.copy=function(){var t=new Wh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,o;if(!e)return t;if(!e.length)return t._root=im(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var l=0;l<4;++l)(o=e.source[l])&&(o.length?r.push({source:o,target:e.target[l]=new Array(4)}):e.target[l]=im(o));return t};mn.add=nht;mn.addAll=rht;mn.cover=iht;mn.data=oht;mn.extent=sht;mn.find=aht;mn.remove=lht;mn.removeAll=cht;mn.root=uht;mn.size=fht;mn.visit=hht;mn.visitAfter=dht;mn.x=ght;mn.y=mht;function vn(t){return function(){return t}}function yi(t){return(t()-.5)*1e-6}function yht(t){return t.x+t.vx}function bht(t){return t.y+t.vy}function wht(t){var e,r,o,l=1,u=1;typeof t!="function"&&(t=vn(t==null?1:+t));function f(){for(var g,v=e.length,b,x,S,N,A,M,T=0;T<u;++T)for(b=Bh(e,yht,bht).visitAfter(h),g=0;g<v;++g)x=e[g],A=r[x.index],M=A*A,S=x.x+x.vx,N=x.y+x.vy,b.visit(E);function E(F,L,j,Y,ft){var X=F.data,st=F.r,ot=A+st;if(X){if(X.index>x.index){var kt=S-X.x-X.vx,pt=N-X.y-X.vy,G=kt*kt+pt*pt;G<ot*ot&&(kt===0&&(kt=yi(o),G+=kt*kt),pt===0&&(pt=yi(o),G+=pt*pt),G=(ot-(G=Math.sqrt(G)))/G*l,x.vx+=(kt*=G)*(ot=(st*=st)/(M+st)),x.vy+=(pt*=G)*ot,X.vx-=kt*(ot=1-ot),X.vy-=pt*ot)}return}return L>S+ot||Y<S-ot||j>N+ot||ft<N-ot}}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 d(){if(e){var g,v=e.length,b;for(r=new Array(v),g=0;g<v;++g)b=e[g],r[b.index]=+t(b,g,e)}}return f.initialize=function(g,v){e=g,o=v,d()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(l=+g,f):l},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:vn(+g),d(),f):t},f}function xht(t){return t.index}function om(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function _ht(t){var e=xht,r=b,o,l=vn(30),u,f,h,d,g,v=1;t==null&&(t=[]);function b(M){return 1/Math.min(h[M.source.index],h[M.target.index])}function x(M){for(var T=0,E=t.length;T<v;++T)for(var F=0,L,j,Y,ft,X,st,ot;F<E;++F)L=t[F],j=L.source,Y=L.target,ft=Y.x+Y.vx-j.x-j.vx||yi(g),X=Y.y+Y.vy-j.y-j.vy||yi(g),st=Math.sqrt(ft*ft+X*X),st=(st-u[F])/st*M*o[F],ft*=st,X*=st,Y.vx-=ft*(ot=d[F]),Y.vy-=X*ot,j.vx+=ft*(ot=1-ot),j.vy+=X*ot}function S(){if(f){var M,T=f.length,E=t.length,F=new Map(f.map((j,Y)=>[e(j,Y,f),j])),L;for(M=0,h=new Array(T);M<E;++M)L=t[M],L.index=M,typeof L.source!="object"&&(L.source=om(F,L.source)),typeof L.target!="object"&&(L.target=om(F,L.target)),h[L.source.index]=(h[L.source.index]||0)+1,h[L.target.index]=(h[L.target.index]||0)+1;for(M=0,d=new Array(E);M<E;++M)L=t[M],d[M]=h[L.source.index]/(h[L.source.index]+h[L.target.index]);o=new Array(E),N(),u=new Array(E),A()}}function N(){if(f)for(var M=0,T=t.length;M<T;++M)o[M]=+r(t[M],M,t)}function A(){if(f)for(var M=0,T=t.length;M<T;++M)u[M]=+l(t[M],M,t)}return x.initialize=function(M,T){f=M,g=T,S()},x.links=function(M){return arguments.length?(t=M,S(),x):t},x.id=function(M){return arguments.length?(e=M,x):e},x.iterations=function(M){return arguments.length?(v=+M,x):v},x.strength=function(M){return arguments.length?(r=typeof M=="function"?M:vn(+M),N(),x):r},x.distance=function(M){return arguments.length?(l=typeof M=="function"?M:vn(+M),A(),x):l},x}const Sht=1664525,kht=1013904223,sm=4294967296;function Cht(){let t=1;return()=>(t=(Sht*t+kht)%sm)/sm}function Tht(t){return t.x}function Eht(t){return t.y}var Lht=10,Aht=Math.PI*(3-Math.sqrt(5));function Mht(t){var e,r=1,o=.001,l=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=Ih(b),g=Aa("tick","end"),v=Cht();t==null&&(t=[]);function b(){x(),g.call("tick",e),r<o&&(d.stop(),g.call("end",e))}function x(A){var M,T=t.length,E;A===void 0&&(A=1);for(var F=0;F<A;++F)for(r+=(u-r)*l,h.forEach(function(L){L(r)}),M=0;M<T;++M)E=t[M],E.fx==null?E.x+=E.vx*=f:(E.x=E.fx,E.vx=0),E.fy==null?E.y+=E.vy*=f:(E.y=E.fy,E.vy=0);return e}function S(){for(var A=0,M=t.length,T;A<M;++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 E=Lht*Math.sqrt(.5+A),F=A*Aht;T.x=E*Math.cos(F),T.y=E*Math.sin(F)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function N(A){return A.initialize&&A.initialize(t,v),A}return S(),e={tick:x,restart:function(){return d.restart(b),e},stop:function(){return d.stop(),e},nodes:function(A){return arguments.length?(t=A,S(),h.forEach(N),e):t},alpha:function(A){return arguments.length?(r=+A,e):r},alphaMin:function(A){return arguments.length?(o=+A,e):o},alphaDecay:function(A){return arguments.length?(l=+A,e):+l},alphaTarget:function(A){return arguments.length?(u=+A,e):u},velocityDecay:function(A){return arguments.length?(f=1-A,e):1-f},randomSource:function(A){return arguments.length?(v=A,h.forEach(N),e):v},force:function(A,M){return arguments.length>1?(M==null?h.delete(A):h.set(A,N(M)),e):h.get(A)},find:function(A,M,T){var E=0,F=t.length,L,j,Y,ft,X;for(T==null?T=1/0:T*=T,E=0;E<F;++E)ft=t[E],L=A-ft.x,j=M-ft.y,Y=L*L+j*j,Y<T&&(X=ft,T=Y);return X},on:function(A,M){return arguments.length>1?(g.on(A,M),e):g.on(A)}}}function Nht(){var t,e,r,o,l=vn(-30),u,f=1,h=1/0,d=.81;function g(S){var N,A=t.length,M=Bh(t,Tht,Eht).visitAfter(b);for(o=S,N=0;N<A;++N)e=t[N],M.visit(x)}function v(){if(t){var S,N=t.length,A;for(u=new Array(N),S=0;S<N;++S)A=t[S],u[A.index]=+l(A,S,t)}}function b(S){var N=0,A,M,T=0,E,F,L;if(S.length){for(E=F=L=0;L<4;++L)(A=S[L])&&(M=Math.abs(A.value))&&(N+=A.value,T+=M,E+=M*A.x,F+=M*A.y);S.x=E/T,S.y=F/T}else{A=S,A.x=A.data.x,A.y=A.data.y;do N+=u[A.data.index];while(A=A.next)}S.value=N}function x(S,N,A,M){if(!S.value)return!0;var T=S.x-e.x,E=S.y-e.y,F=M-N,L=T*T+E*E;if(F*F/d<L)return L<h&&(T===0&&(T=yi(r),L+=T*T),E===0&&(E=yi(r),L+=E*E),L<f&&(L=Math.sqrt(f*L)),e.vx+=T*S.value*o/L,e.vy+=E*S.value*o/L),!0;if(S.length||L>=h)return;(S.data!==e||S.next)&&(T===0&&(T=yi(r),L+=T*T),E===0&&(E=yi(r),L+=E*E),L<f&&(L=Math.sqrt(f*L)));do S.data!==e&&(F=u[S.data.index]*o/L,e.vx+=T*F,e.vy+=E*F);while(S=S.next)}return g.initialize=function(S,N){t=S,r=N,v()},g.strength=function(S){return arguments.length?(l=typeof S=="function"?S:vn(+S),v(),g):l},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?(d=S*S,g):Math.sqrt(d)},g}function Pht(t){var e=vn(.1),r,o,l;typeof t!="function"&&(t=vn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(l[d]-v.x)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),l=new Array(d),h=0;h<d;++h)o[h]=isNaN(l[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:vn(+h),f(),u):e},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:vn(+h),f(),u):t},u}function Oht(t){var e=vn(.1),r,o,l;typeof t!="function"&&(t=vn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(l[d]-v.y)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),l=new Array(d),h=0;h<d;++h)o[h]=isNaN(l[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:vn(+h),f(),u):e},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:vn(+h),f(),u):t},u}var $ht=Object.defineProperty,Dht=(t,e,r)=>e in t?$ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pe=(t,e,r)=>(Dht(t,typeof e!="symbol"?e+"":e,r),r);function Rht(){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}}const am=t=>{if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},bi=(...t)=>t.reduce((e,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(e[o])&&Array.isArray(r[o])?e[o]=bi.options.mergeArrays?Array.from(new Set(e[o].concat(r[o]))):r[o]:am(e[o])&&am(r[o])?e[o]=bi(e[o],r[o]):e[o]=r[o])}),e},{}),bb={mergeArrays:!0};bi.options=bb;bi.withOptions=(t,...e)=>{bi.options={mergeArrays:!0,...t};const r=bi(...e);return bi.options=bb,r};function zht(){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 Iht(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function wb(t){t.preventDefault(),t.stopPropagation()}function xb(t){return typeof t=="number"}function Ci(t,e){return xb(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function Fht(t){return`${t.source.id}-${t.target.id}`}function _b(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function qht(t){return`url(#${_b(t.color)})`}function Hht(t){return{size:t,padding:(e,r)=>Ci(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const Sb={Arrow:t=>Hht(t)},Bht=(t,e,r)=>[e/2,r/2],kb=(t,e,r)=>[lm(0,e),lm(0,r)];function lm(t,e){return Math.random()*(e-t)+t}function Wht(t){const e=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,l)=>{const[u,f]=e[r.id]??[];return!u||!f?kb(r,o,l):[u,f]}}const Wf={Centered:Bht,Randomized:kb,Stable:Wht};function Uht(){return{autoResize:!1,callbacks:{},hooks:{},initial:Iht(),nodeRadius:16,marker:Sb.Arrow(4),modifiers:{},positionInitializer:Wf.Centered,simulation:{alphas:Rht(),forces:zht()},zoom:{initial:1,min:.1,max:2}}}function jht(t={}){return bi.withOptions({mergeArrays:!1},Uht(),t)}function Vht(t,e){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),e)}}function Ght({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:l,offset:[u,f],scale:h,zoom:d}){const g=e.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>wb(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=>l==null?void 0:l(v)).style("cursor","grab");return t&&g.call(d.transform,Hh.translate(u,f).scale(h)),g.append("g")}function Kht({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function Xht({config:t,onDragStart:e,onDragEnd:r}){var o,l;const u=fut().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&e(f,h),kn(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),kn(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(l=(o=t.modifiers).drag)==null||l.call(o,u),u}function Yht({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:l}){const u=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&l(d)),f=d=>u.find(g=>g.source.id===d.id||g.target.id===d.id)!==void 0,h=t.nodes.filter(d=>e.includes(d.type)&&(o||f(d)));return r===void 0||!e.includes(r.type)?{nodes:h,links:u}:Zht({nodes:h,links:u},r)}function Zht(t,e){const r=[...Jht(t,e),...Qht(t,e)],o=r.flatMap(l=>[l.source,l.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function Jht(t,e){return Cb(t,e,(r,o)=>r.target.id===o.id)}function Qht(t,e){return Cb(t,e,(r,o)=>r.source.id===o.id)}function Cb(t,e,r){const o=new Set(t.links),l=new Set([e]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...l].some(d=>r(h,d)));if(f.length===0)return u;f.forEach(h=>{l.add(h.source),l.add(h.target),u.push(h),o.delete(h)})}return u}function Uf(t){return t.x??0}function jf(t){return t.y??0}function Uh({source:t,target:e}){const r=new pn(Uf(t),jf(t)),o=new pn(Uf(e),jf(e)),l=o.subtract(r),u=l.length(),f=l.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function Tb({center:t,node:e}){const r=new pn(Uf(e),jf(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new pn(0,1))),{n:r,c:o}}function Eb({config:t,source:e,target:r}){const{s:o,t:l,norm:u}=Uh({config:t,source:e,target:r}),f=o.add(u.multiply(Ci(t,e)-1)),h=l.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function tdt(t){const{start:e,end:r}=Eb(t);return`M${e.x},${e.y}
33
+ L${r.x},${r.y}`}function edt(t){const{start:e,end:r}=Eb(t),o=r.subtract(e).multiply(.5),l=e.add(o);return`translate(${l.x-8},${l.y-4})`}function ndt({config:t,source:e,target:r}){const{s:o,t:l,dist:u,norm:f,endNorm:h}=Uh({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(Ci(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(Ci(t,r)).add(l).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
34
+ A${b},${b},0,0,1,${v.x},${v.y}`}function rdt({center:t,config:e,node:r}){const{n:o,c:l}=Tb({center:t,config:e,node:r}),u=Ci(e,r),f=o.subtract(l),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(u-1).add(o),v=h.rotateByDegrees(-d).multiply(u).add(o).add(h.rotateByDegrees(-d).multiply(2*e.marker.size));return`M${g.x},${g.y}
35
+ A${u},${u},0,1,0,${v.x},${v.y}`}function idt({config:t,source:e,target:r}){const{t:o,dist:l,endNorm:u}=Uh({config:t,source:e,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*l).add(o);return`translate(${h.x},${h.y})`}function odt({center:t,config:e,node:r}){const{n:o,c:l}=Tb({center:t,config:e,node:r}),u=o.subtract(l),f=u.multiply(1/u.length()).multiply(3*Ci(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const jo={line:{labelTransform:edt,path:tdt},arc:{labelTransform:idt,path:ndt},reflexive:{labelTransform:odt,path:rdt}};function sdt(t){return t.append("g").classed("links",!0).selectAll("path")}function adt({config:t,graph:e,selection:r,showLabels:o}){const l=r==null?void 0:r.data(e.links,u=>Fht(u)).join(u=>{var f,h,d,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>qht(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=(d=t.modifiers).linkLabel)==null||g.call(d,x),v});return l==null||l.select(".link__label").attr("opacity",u=>u.label&&o?1:0),l}function ldt(t){cdt(t),udt(t)}function cdt({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",l=>l.source.x===void 0||l.source.y===void 0||l.target.x===void 0||l.target.y===void 0?"":l.source.id===l.target.id?jo.reflexive.path({config:e,node:l.source,center:t}):Lb(r,l.source,l.target)?jo.arc.path({config:e,source:l.source,target:l.target}):jo.line.path({config:e,source:l.source,target:l.target}))}function udt({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",l=>l.source.x===void 0||l.source.y===void 0||l.target.x===void 0||l.target.y===void 0?"translate(0, 0)":l.source.id===l.target.id?jo.reflexive.labelTransform({config:t,node:l.source,center:e}):Lb(r,l.source,l.target)?jo.arc.labelTransform({config:t,source:l.source,target:l.target}):jo.line.labelTransform({config:t,source:l.source,target:l.target}))}function Lb(t,e,r){return e.id!==r.id&&t.links.some(o=>o.target.id===e.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===e.id)}function fdt(t){return t.append("defs").selectAll("marker")}function hdt({config:t,graph:e,selection:r}){return r==null?void 0:r.data(ddt(e),o=>o).join(o=>{const l=o.append("marker").attr("id",u=>_b(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 l.append("path").attr("d",pdt(t.marker.path)),l})}function ddt(t){return[...new Set(t.links.map(e=>e.color))]}function pdt(t){const[e,...r]=t;if(!e)return"M0,0";const[o,l]=e;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${l}`)}function gdt(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function vdt({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:l,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,d=>d.id).join(d=>{var g,v,b,x;const S=d.append("g");e!==void 0&&S.call(e);const N=S.append("circle").classed("node",!0).attr("r",M=>Ci(t,M)).on("contextmenu",(M,T)=>{wb(M),o(T)}).on("pointerdown",(M,T)=>ydt(M,T,l??o)).style("fill",M=>M.color);(v=(g=t.modifiers).node)==null||v.call(g,N);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",M=>M.label?M.label.color:null).style("font-size",M=>M.label?M.label.fontSize:null).style("stroke","none").text(M=>M.label?M.label.text:null);return(x=(b=t.modifiers).nodeLabel)==null||x.call(b,A),S});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const mdt=500;function ydt(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,l=Date.now();if(o===void 0||l-o>mdt){e.lastInteractionTimestamp=l;return}e.lastInteractionTimestamp=void 0,r(e)}function bdt(t){t==null||t.attr("transform",e=>`translate(${e.x??0},${e.y??0})`)}function wdt({center:t,config:e,graph:r,onTick:o}){var l,u;const f=Mht(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",Pht(()=>t().x).strength(b)).force("y",Oht(()=>t().y).strength(b))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",Nht().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",wht().radius(b=>g.radiusMultiplier*Ci(e,b)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",_ht(r.links).id(b=>b.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(l=e.modifiers).simulation)==null||u.call(l,f),f}function xdt({canvasContainer:t,config:e,min:r,max:o,onZoom:l}){var u,f;const h=eht().scaleExtent([r,o]).filter(d=>{var g;return d.button===0||((g=d.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",d=>l(d)).on("end",()=>t().classed("grabbed",!1));return(f=(u=e.modifiers).zoom)==null||f.call(u,h),h}class _dt{constructor(e,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=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(l=>{const[u,f]=o.positionInitializer(l,this.effectiveWidth,this.effectiveHeight);l.x=l.x??u,l.y=l.y??f}),this.nodeTypes=[...new Set(r.nodes.map(l=>l.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:l,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=l??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??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(Vht(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,l=e?r:o;this.restart(l)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,l=e?o:r;this.restart(l)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,l=e?o:r;this.restart(l)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return pn.of([this.width,this.height]).divide(2).subtract(pn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,l=this.container.getBoundingClientRect().height,u=e.toFixed()!==o.toFixed(),f=r.toFixed()!==l.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(xb(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:l}))}restart(e){var r;this.markerSelection=hdt({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=adt({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=vdt({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=wdt({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,r){e?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 e,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(e=this.resizeObserver)==null||e.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=xdt({config:this.config,canvasContainer:()=>kn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Ght({applyZoom:this.scale!==1,container:kn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=sdt(this.canvas),this.nodeSelection=gdt(this.canvas),this.markerSelection=fdt(this.canvas),this.drag=Xht({config:this.config,onDragStart:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){bdt(this.nodeSelection),ldt({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),kn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){var r,o,l;this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(l=this.simulation)==null||l.restart()}applyZoom(){Kht({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Yht({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function cm({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function Sdt(t){return{...t}}function Ab(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const kdt={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Cdt={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Tdt=["id","checked","onChange"],Edt=["for"],Ldt=ut("div",{"flex-auto":""},null,-1),Adt=re({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const e=t,{graph:r}=A1(e),o=Kt(),l=Kt(!1),u=Kt(),f=Kt();dh(()=>{l.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),as(()=>{g()}),gh(()=>{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 d(b){u.value=b,l.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new _dt(o.value,r.value,jht({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:Sb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Wf.Randomized:Wf.Centered,zoom:{min:.5,max:2}})))}function v(b){if(yr)return;const x=M=>M.button===0;let S=0,N=0,A=0;b.on("pointerdown",(M,T)=>{T.type!=="external"&&(!T.x||!T.y||!x(M)||(S=T.x,N=T.y,A=Date.now()))}).on("pointerup",(M,T)=>{if(T.type==="external"||!T.x||!T.y||!x(M)||Date.now()-A>500)return;const E=T.x-S,F=T.y-N;E**2+F**2<100&&d(T.id)})}return(b,x)=>{var T;const S=cs,N=Slt,A=flt,M=oo("tooltip");return ct(),Et("div",kdt,[ut("div",null,[ut("div",Cdt,[(ct(!0),Et(fe,null,Zn((T=V(f))==null?void 0:T.nodeTypes.sort(),E=>{var F;return ct(),Et("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[ut("input",{id:`type-${E}`,type:"checkbox",checked:(F=V(f))==null?void 0:F.nodeTypeFilter.includes(E),onChange:L=>h(E,L.target.checked)},null,40,Tdt),ut("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:Tn({"border-color":`var(--color-node-${E})`})},Qt(E)+" Modules",13,Edt)])}),128)),Ldt,ut("div",null,[rn(qt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[M,"Reset",void 0,{bottom:!0}]])])])]),ut("div",{ref_key:"el",ref:o},null,512),qt(A,{modelValue:V(l),"onUpdate:modelValue":x[1]||(x[1]=E=>Ee(l)?l.value=E:null),direction:"right"},{default:Yt(()=>[V(u)?(ct(),Zt(V1,{key:0},{default:Yt(()=>[qt(N,{id:V(u),onClose:x[0]||(x[0]=E=>l.value=!1)},null,8,["id"])]),_:1})):ne("",!0)]),_:1},8,["modelValue"])])}}});const Mdt={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Ndt={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Pdt={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Odt={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},$dt={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Ddt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},jh=re({__name:"StatusIcon",props:{task:{}},setup(t){return(e,r)=>{var l,u,f;const o=oo("tooltip");return((l=e.task.result)==null?void 0:l.state)==="pass"?(ct(),Et("div",Mdt)):V(Pc)(e.task)?rn((ct(),Et("div",Ndt,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=e.task.result)==null?void 0:u.state)==="fail"?(ct(),Et("div",Pdt)):e.task.mode==="todo"?rn((ct(),Et("div",Odt,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((f=e.task.result)==null?void 0:f.state)==="skip"?rn((ct(),Et("div",$dt,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ct(),Et("div",Ddt))}}});function Rdt(t){const e=new Map,r=new Map,o=[];for(;;){let l=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){l++;const{raw:b,candidate:x}=u;e.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,l===t.length)break}return e}function zdt(t){let e=t;e.includes("/node_modules/")&&(e=t.split(/\/node_modules\//g).pop());const r=e.split(/\//g);return{raw:e,splits:r,candidate:"",finished:!1,id:t}}function Idt(t){const e=t.map(o=>zdt(o)),r=Rdt(e);return e.map(({raw:o,id:l})=>Ab({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:l,type:"external"}))}function Fdt(t,e){return Ab({color:e?"var(--color-node-root)":"var(--color-node-inline)",label:{color:e?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function qdt(t,e){if(!t)return cm({});const r=Idt(t.externalized),o=t.inlined.map(h=>Fdt(h,h===e))??[],l=[...r,...o],u=Object.fromEntries(l.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=u[h],b=u[g];if(!(v===void 0||b===void 0))return Sdt({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return cm({nodes:l,links:f})}const Hdt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Bdt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Wdt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Udt={class:"flex text-lg"},jdt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Vdt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Gdt={key:0,"flex-1":""},Kdt=re({__name:"FileDetails",setup(t){const e=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),l=Kt(!1);CT(Ae,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await Ve.rpc.getModuleGraph(g.filepath),r.value=qdt(e.value,g.filepath))},{debounce:100,immediate:!0});function u(){var v;const g=(v=Ae.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)}function f(g){g==="graph"&&(l.value=!0),fr.value=g}const h=bt(()=>{var g;return((g=Sy.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function d(g){o.value=g}return(g,v)=>{var E,F;const b=jh,x=cs,S=Adt,N=ult,A=olt,M=Zat,T=oo("tooltip");return V(Ae)?(ct(),Et("div",Hdt,[ut("div",null,[ut("div",Bdt,[qt(b,{task:V(Ae)},null,8,["task"]),ut("div",Wdt,Qt((E=V(Ae))==null?void 0:E.filepath),1),ut("div",Udt,[V(yr)?ne("",!0):rn((ct(),Zt(x,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((F=V(Ae))!=null&&F.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),ut("div",jdt,[ut("button",{"tab-button":"",class:ve({"tab-button-active":V(fr)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=L=>f(null))}," Report ",2),ut("button",{"tab-button":"","data-testid":"btn-graph",class:ve({"tab-button-active":V(fr)==="graph"}),onClick:v[1]||(v[1]=L=>f("graph"))}," Module Graph ",2),V(yr)?ne("",!0):(ct(),Et("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ve({"tab-button-active":V(fr)==="editor"}),onClick:v[2]||(v[2]=L=>f("editor"))},Qt(V(o)?"* ":"")+"Code ",3)),ut("button",{"tab-button":"","data-testid":"btn-console",class:ve({"tab-button-active":V(fr)==="console",op20:V(fr)!=="console"&&V(h)===0}),onClick:v[3]||(v[3]=L=>f("console"))}," Console ("+Qt(V(h))+") ",3)])]),ut("div",Vdt,[V(l)?(ct(),Et("div",Gdt,[rn(qt(S,{graph:V(r),"data-testid":"graph"},null,8,["graph"]),[[bf,V(fr)==="graph"]])])):ne("",!0),V(fr)==="editor"?(ct(),Zt(N,{key:V(Ae).filepath,file:V(Ae),"data-testid":"editor",onDraft:d},null,8,["file"])):V(fr)==="console"?(ct(),Zt(A,{key:2,file:V(Ae),"data-testid":"console"},null,8,["file"])):V(fr)?ne("",!0):(ct(),Zt(M,{key:3,file:V(Ae),"data-testid":"report"},null,8,["file"]))])])):ne("",!0)}}}),Xdt=["open"],Ydt=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Zdt=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Jdt=re({__name:"DetailsPanel",props:{color:{}},setup(t){const e=Kt(!0);return(r,o)=>(ct(),Et("div",{open:V(e),class:"details-panel",onToggle:o[0]||(o[0]=l=>e.value=l.target.open)},[ut("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"},[Ydt,tr(r.$slots,"summary",{open:V(e)}),Zdt],2),tr(r.$slots,"default")],40,Xdt))}});const Qdt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},tpt=["text"],ept={"text-sm":"",truncate:"","font-light":""},npt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},rpt=re({__name:"TaskItem",props:{task:{}},setup(t){const e=t,r=bt(()=>{const{result:o}=e.task;return o&&Math.round(o.duration||0)});return(o,l)=>{var f,h;const u=jh;return o.task?(ct(),Et("div",Qdt,[qt(u,{task:o.task,"mr-2":""},null,8,["task"]),ut("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=o.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ut("span",ept,Qt(o.task.name),1),typeof V(r)=="number"?(ct(),Et("span",npt,Qt(V(r)>0?V(r):"< 1")+"ms ",1)):ne("",!0)],8,tpt)])):ne("",!0)}}});function ipt(t){return Object.hasOwnProperty.call(t,"tasks")}function Mb(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}const opt={key:1},spt={inheritAttrs:!1},apt=re({...spt,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{}},setup(t){return(e,r)=>{const o=rpt,l=Qi("TaskTree",!0);return ct(),Et(fe,null,[!e.search||V(Mb)(e.task.name,e.search)?(ct(),Zt(o,_i({key:0},e.$attrs,{task:e.task,style:{paddingLeft:`${e.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>e.onItemClick&&e.onItemClick(e.task))}),null,16,["task","style"])):ne("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(ct(),Et("div",opt,[(ct(!0),Et(fe,null,Zn(e.task.tasks,u=>(ct(),Zt(l,{key:u.id,task:u,nested:e.nested,indent:e.indent+1,search:e.search,"on-item-click":e.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):ne("",!0)],64)}}}),lpt={h:"full",flex:"~ col"},cpt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},upt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},fpt=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),hpt=["op"],dpt={class:"scrolls","flex-auto":"","py-1":""},ppt={"text-red5":""},gpt={"text-yellow5":""},vpt={"text-green5":""},mpt={class:"text-purple5:50"},ypt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},bpt=ut("div",{op30:""}," No matched test ",-1),wpt={inheritAttrs:!1},Nb=re({...wpt,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{}},emits:["run"],setup(t,{emit:e}){const r=t,o=Kt(""),l=Kt(),u=bt(()=>o.value.trim()!=="");function f(M,T){let E=!1;for(let F=0;F<M.length;F++){const L=M[F];if(Mb(L.name,T)){E=!0;break}if(ipt(L)&&L.tasks&&(E=f(L.tasks,T),E))break}return E}const h=bt(()=>o.value.trim()?r.tasks.filter(M=>f([M],o.value)):r.tasks),d=bt(()=>u.value?h.value.map(M=>ec(M.id)).filter(Boolean):[]),g=bt(()=>h.value.filter(M=>{var T;return((T=M.result)==null?void 0:T.state)==="fail"})),v=bt(()=>h.value.filter(M=>{var T;return((T=M.result)==null?void 0:T.state)==="pass"})),b=bt(()=>h.value.filter(M=>M.mode==="skip"||M.mode==="todo")),x=bt(()=>h.value.filter(M=>!g.value.includes(M)&&!v.value.includes(M)&&!b.value.includes(M))),S=pT(x,250);function N(M){var T;o.value="",M&&((T=l.value)==null||T.focus())}const A=bt(()=>o.value==="");return(M,T)=>{const E=cs,F=apt,L=Jdt,j=oo("tooltip");return ct(),Et("div",lpt,[ut("div",null,[ut("div",cpt,[tr(M.$slots,"header",{filteredTests:V(u)?V(d):void 0})]),ut("div",upt,[fpt,rn(ut("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":T[0]||(T[0]=Y=>Ee(o)?o.value=Y:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:V(o).length?"100":"50",onKeydown:[T[1]||(T[1]=yf(Y=>N(!1),["esc"])),T[2]||(T[2]=yf(Y=>e("run",V(u)?V(d):void 0),["enter"]))]},null,40,hpt),[[gS,V(o)]]),rn(qt(E,{disabled:V(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=Y=>N(!0))},null,8,["disabled"]),[[j,"Clear search",void 0,{bottom:!0}]])])]),ut("div",dpt,[M.groupByType?(ct(),Et(fe,{key:0},[V(g).length?(ct(),Zt(L,{key:0},{summary:Yt(()=>[ut("div",ppt," FAIL ("+Qt(V(g).length)+") ",1)]),default:Yt(()=>[(ct(!0),Et(fe,null,Zn(V(g),Y=>(ct(),Zt(F,{key:Y.id,task:Y,nested:M.nested,search:V(o),class:ve(V(pr)===Y.id?"bg-active":""),"on-item-click":M.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ne("",!0),V(x).length||V(pa)==="running"?(ct(),Zt(L,{key:1},{summary:Yt(()=>[ut("div",gpt," RUNNING ("+Qt(V(S).length)+") ",1)]),default:Yt(()=>[(ct(!0),Et(fe,null,Zn(V(S),Y=>(ct(),Zt(F,{key:Y.id,task:Y,nested:M.nested,search:V(o),class:ve(V(pr)===Y.id?"bg-active":""),"on-item-click":M.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ne("",!0),V(v).length?(ct(),Zt(L,{key:2},{summary:Yt(()=>[ut("div",vpt," PASS ("+Qt(V(v).length)+") ",1)]),default:Yt(()=>[(ct(!0),Et(fe,null,Zn(V(v),Y=>(ct(),Zt(F,{key:Y.id,task:Y,nested:M.nested,search:V(o),class:ve(V(pr)===Y.id?"bg-active":""),"on-item-click":M.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ne("",!0),V(b).length?(ct(),Zt(L,{key:3},{summary:Yt(()=>[ut("div",mpt," SKIP ("+Qt(V(b).length)+") ",1)]),default:Yt(()=>[(ct(!0),Et(fe,null,Zn(V(b),Y=>(ct(),Zt(F,{key:Y.id,task:Y,nested:M.nested,search:V(o),class:ve(V(pr)===Y.id?"bg-active":""),"on-item-click":M.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ne("",!0)],64)):(ct(!0),Et(fe,{key:1},Zn(V(h),Y=>(ct(),Zt(F,{key:Y.id,task:Y,nested:M.nested,search:V(o),class:ve(V(pr)===Y.id?"bg-active":""),"on-item-click":M.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),V(u)&&V(h).length===0?(ct(),Et("div",ypt,[bpt,ut("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]=Y=>N(!0))}," Clear ",32)])):ne("",!0)])])}}}),wa=Kt(),Vo=Kt(!0),ro=Kt(!1),lc=Kt(!0),cc=bt(()=>{var t;return(t=Ea.value)==null?void 0:t.coverage}),Vf=bt(()=>{var t,e,r;return(e=(t=Ea.value)==null?void 0:t.api)!=null&&e.port?(r=cc.value)==null?void 0:r.enabled:!1}),Ro=bt(()=>Vf.value&&cc.value.reporter.map(([t])=>t).includes("html")),xpt=bt(()=>{if(Ro.value){const t=`${window.location.protocol}//${window.location.hostname}:${Ea.value.api.port}`,e=cc.value.reportsDirectory.lastIndexOf("/");return`${t}/${cc.value.reportsDirectory.slice(e+1)}/index.html`}});De(pa,t=>{lc.value=t==="running"},{immediate:!0});function _pt(){const t=pr.value;if(t&&t.length>0){const e=ec(t);e?(wa.value=e,Vo.value=!1,ro.value=!1):TT(()=>Ve.state.getFiles(),()=>{wa.value=ec(t),Vo.value=!1,ro.value=!1})}return Vo}function ef(t){Vo.value=t,ro.value=!1,t&&(wa.value=void 0,pr.value="")}function Spt(){ro.value=!0,Vo.value=!1,wa.value=void 0,pr.value=""}const kpt={key:0,"h-full":""},Cpt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},Tpt={class:"flex text-lg"},Ept=re({__name:"Suites",setup(t){const e=bt(()=>{var u;return(u=Ae.value)==null?void 0:u.name.split(/\//g).pop()}),r=bt(()=>{var u,f;return((u=Ae.value)==null?void 0:u.tasks)&&Pc((f=Ae.value)==null?void 0:f.tasks)});function o(){return Ae.value&&Ve.rpc.updateSnapshot(Ae.value)}async function l(){Ro.value&&(lc.value=!0,await Hr()),await RE()}return(u,f)=>{const h=jh,d=cs,g=Nb,v=oo("tooltip");return V(Ae)?(ct(),Et("div",kpt,[qt(g,{tasks:V(Ae).tasks,nested:!0},{header:Yt(()=>[qt(h,{"mx-1":"",task:V(Ae)},null,8,["task"]),ut("span",Cpt,Qt(V(e)),1),ut("div",Tpt,[V(r)&&!V(yr)?rn((ct(),Zt(d,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=b=>o())},null,512)),[[v,`Update failed snapshot(s) of ${V(Ae).name}`,void 0,{bottom:!0}]]):ne("",!0),V(yr)?ne("",!0):rn((ct(),Zt(d,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=b=>l())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ne("",!0)}}}),Lpt={h:"full",flex:"~ col"},Apt=ut("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ut("div",{class:"i-carbon:folder-details-reference"}),ut("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),Mpt={"flex-auto":"","py-1":"","bg-white":""},Npt=["src"],Ppt=re({__name:"Coverage",props:{src:{}},setup(t){return(e,r)=>(ct(),Et("div",Lpt,[Apt,ut("div",Mpt,[ut("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Npt)])]))}});const uc=bt(()=>Ln.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),fc=bt(()=>Ln.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Vh=bt(()=>Ln.value.filter(t=>t.mode==="skip"||t.mode==="todo"));bt(()=>Ln.value.filter(t=>!uc.value.includes(t)&&!fc.value.includes(t)&&!Vh.value.includes(t)));bt(()=>Vh.value.filter(t=>t.mode==="skip"));const um=bt(()=>Ln.value.filter(Pc));bt(()=>Vh.value.filter(t=>t.mode==="todo"));const Opt=bt(()=>pa.value==="idle"),Na=bt(()=>Gh(Ln.value)),Pb=bt(()=>Na.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Ob=bt(()=>Na.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),$b=bt(()=>Na.value.filter(t=>t.mode==="skip"||t.mode==="todo")),$pt=bt(()=>$b.value.filter(t=>t.mode==="skip")),Dpt=bt(()=>$b.value.filter(t=>t.mode==="todo"));bt(()=>Pb.value.length+Ob.value.length);const Rpt=bt(()=>{const t=Gh(Na.value).reduce((e,r)=>{var o;return(o=r.result)!=null&&o.duration&&(e+=r.result.duration),e},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function zpt(t){return t=t||[],Array.isArray(t)?t:[t]}function fm(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function Gh(t){return zpt(t).flatMap(e=>fm(e)?[e]:e.tasks.flatMap(r=>fm(r)?[r]:Gh(r)))}const wr=t=>(Hm("data-v-6679a536"),t=t(),Bm(),t),Ipt={"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:""},Fpt=wr(()=>ut("div",{"i-carbon-document":""},null,-1)),qpt=wr(()=>ut("div",null,"Files",-1)),Hpt={class:"number","data-testid":"num-files"},Bpt=wr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),Wpt=wr(()=>ut("div",null,"Pass",-1)),Upt={class:"number"},jpt=wr(()=>ut("div",{"i-carbon-close":""},null,-1)),Vpt=wr(()=>ut("div",null," Fail ",-1)),Gpt={class:"number","text-red5":""},Kpt=wr(()=>ut("div",{"i-carbon-compare":""},null,-1)),Xpt=wr(()=>ut("div",null," Snapshot Fail ",-1)),Ypt={class:"number","text-red5":""},Zpt=wr(()=>ut("div",{"i-carbon-timer":""},null,-1)),Jpt=wr(()=>ut("div",null,"Time",-1)),Qpt={class:"number","data-testid":"run-time"},tgt=re({__name:"TestFilesEntry",setup(t){return(e,r)=>(ct(),Et("div",Ipt,[Fpt,qpt,ut("div",Hpt,Qt(V(Ln).length),1),V(fc).length?(ct(),Et(fe,{key:0},[Bpt,Wpt,ut("div",Upt,Qt(V(fc).length),1)],64)):ne("",!0),V(uc).length?(ct(),Et(fe,{key:1},[jpt,Vpt,ut("div",Gpt,Qt(V(uc).length),1)],64)):ne("",!0),V(um).length?(ct(),Et(fe,{key:2},[Kpt,Xpt,ut("div",Ypt,Qt(V(um).length),1)],64)):ne("",!0),Zpt,Jpt,ut("div",Qpt,Qt(V(Rpt)),1)]))}});const egt=so(tgt,[["__scopeId","data-v-6679a536"]]),ngt={"p-2":"","text-center":"",flex:""},rgt={"text-4xl":"","min-w-2em":""},igt={"text-md":""},ogt=re({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(ct(),Et("div",ngt,[ut("div",null,[ut("div",rgt,[tr(e.$slots,"body")]),ut("div",igt,[tr(e.$slots,"header")])])]))}}),sgt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},agt=re({__name:"TestsEntry",setup(t){const e=bt(()=>Na.value.length),r=bt(()=>Ob.value.length),o=bt(()=>Pb.value.length),l=bt(()=>$pt.value.length),u=bt(()=>Dpt.value.length);return(f,h)=>{const d=ogt;return ct(),Et("div",sgt,[qt(d,{"text-green5":"","data-testid":"pass-entry"},{header:Yt(()=>[dn(" Pass ")]),body:Yt(()=>[dn(Qt(V(r)),1)]),_:1}),qt(d,{class:ve({"text-red5":V(o),op50:!V(o)}),"data-testid":"fail-entry"},{header:Yt(()=>[dn(" Fail ")]),body:Yt(()=>[dn(Qt(V(o)),1)]),_:1},8,["class"]),V(l)?(ct(),Zt(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Yt(()=>[dn(" Skip ")]),body:Yt(()=>[dn(Qt(V(l)),1)]),_:1})):ne("",!0),V(u)?(ct(),Zt(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Yt(()=>[dn(" Todo ")]),body:Yt(()=>[dn(Qt(V(u)),1)]),_:1})):ne("",!0),qt(d,{tail:!0,"data-testid":"total-entry"},{header:Yt(()=>[dn(" Total ")]),body:Yt(()=>[dn(Qt(V(e)),1)]),_:1})])}}}),lgt={},cgt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},ugt={"aria-labelledby":"tests",m:"y-4 x-2"};function fgt(t,e){const r=agt,o=egt;return ct(),Et("div",cgt,[ut("section",ugt,[qt(r)]),qt(o)])}const hgt=so(lgt,[["render",fgt]]),dgt={},pgt={h:"full",flex:"~ col"},ggt=ut("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ut("div",{class:"i-carbon-dashboard"}),ut("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),vgt={class:"scrolls","flex-auto":"","py-1":""};function mgt(t,e){const r=hgt;return ct(),Et("div",pgt,[ggt,ut("div",vgt,[qt(r)])])}const ygt=so(dgt,[["render",mgt]]),bgt=""+new URL("../favicon.svg",import.meta.url).href,wgt=ut("img",{"w-6":"","h-6":"",src:bgt,alt:"Vitest logo"},null,-1),xgt=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),_gt={class:"flex text-lg"},Sgt=ut("div",{class:"i-carbon:folder-off ma"},null,-1),kgt=ut("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ut("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ut("div",null,"Coverage enabled but missing html reporter."),ut("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Cgt=re({__name:"Navigation",setup(t){const e=bt(()=>Ln.value&&Pc(Ln.value));function r(){return Ve.rpc.updateSnapshot()}function o(f){pr.value=f.id,wa.value=ec(f.id),ef(!1)}const l=bt(()=>Dc.value?"light":"dark");async function u(f){Ro.value&&(lc.value=!0,await Hr(),ro.value&&(ef(!0),await Hr())),await DE(f)}return(f,h)=>{const d=cs,g=Nb,v=oo("tooltip");return ct(),Zt(g,{border:"r base",tasks:V(Ln),"on-item-click":o,"group-by-type":!0,onRun:u},{header:Yt(({filteredTests:b})=>[wgt,xgt,ut("div",_gt,[rn(qt(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=x=>V(ef)(!0))},null,512),[[bf,V(Vf)&&!V(Ro)||!V(Vo)],[v,"Dashboard",void 0,{bottom:!0}]]),V(Vf)&&!V(Ro)?(ct(),Zt(V(RC),{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:Yt(()=>[kgt]),default:Yt(()=>[Sgt]),_:1})):ne("",!0),V(Ro)?rn((ct(),Zt(d,{key:1,disabled:V(lc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=x=>V(Spt)())},null,8,["disabled"])),[[bf,!V(ro)],[v,"Coverage",void 0,{bottom:!0}]]):ne("",!0),V(e)&&!V(yr)?rn((ct(),Zt(d,{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}]]):ne("",!0),V(yr)?ne("",!0):rn((ct(),Zt(d,{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}]]),rn(qt(d,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=x=>V(jat)())},null,512),[[v,`Toggle to ${V(l)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),Tgt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Egt=re({__name:"ProgressBar",setup(t){const{width:e}=hE(),r=bt(()=>Ln.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Opt.value?null:"in-progress"),o=bt(()=>Ln.value.length),l=bt(()=>fc.value.length),u=bt(()=>uc.value.length),f=bt(()=>{const v=V(o);return v>0?e.value*l.value/v:0}),h=bt(()=>{const v=V(o);return v>0?e.value*u.value/v:0}),d=bt(()=>V(o)-u.value-l.value),g=bt(()=>{const v=V(o);return v>0?e.value*d.value/v:0});return(v,b)=>(ct(),Et("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(V(r))},[ut("div",Tgt,[ut("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(V(r)),style:Tn(`width: ${V(h)}px;`)},"   ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(V(r)),style:Tn(`left: ${V(h)}px; width: ${V(f)}px;`)},"   ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(V(r)),style:Tn(`left: ${V(f)+V(h)}px; width: ${V(g)}px;`)},"   ",6)])],2))}});const Lgt=so(Egt,[["__scopeId","data-v-f967c1fe"]]),hm={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,e)=>(t[e.id]=e)&&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,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.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,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((o,l)=>(o.size=l===e?o.max:o.min,l!==e&&(r+=o.min),o)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:o-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),l=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),l),o);let f=[e,e+1],h=this.panes[f[0]]||null,d=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,v=d.max<100&&u<=100-(d.max+this.sumNextPanesSize(e+1));if(g||v){g?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),d.size=d.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,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,o=[r,r+1];return e<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((l,u)=>{u>o[0]&&u<=r&&(l.size=l.min,t.prevReachedMinPanes+=l.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((l,u)=>{u>0&&u<=r&&(l.size=l.min,t.prevReachedMinPanes+=l.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((l,u)=>{u>r&&u<o[1]&&(l.size=l.min,t.nextReachedMinPanes+=l.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((l,u)=>{u<this.panesCount-1&&u>=r+1&&(l.size=l.min,t.nextReachedMinPanes+=l.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((e,r,o)=>e+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.index<t&&e.size>e.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!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,e,r=!1){const o=t-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),r||(l.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=u=>this.onMouseDown(u,o)),l.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(l.ondblclick=u=>this.onSplitterDblClick(u,o+1)),e.parentNode.insertBefore(l,e)},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 e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([o,l])=>r[o]=l)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&e++,l===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,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((l,u)=>l.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,l)=>o.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),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(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],o=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(t,l.max),l.min),e-=l.size,l.size>=l.max&&r.push(l.id),l.size<=l.min&&o.push(l.id)}),e>.1&&this.readjustSizes(e,r,o)},initialPanesSizing(){let t=100;const e=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&e.push(u.id),u.size<=u.min&&r.push(u.id)});let l=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),l-=u.size}),l>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const l=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&l.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&&l.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,l,u))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((l,u)=>{if(t>0&&!e.includes(l.id)){const f=Math.max(Math.min(l.size+o,l.max),l.min),h=f-l.size;t-=h,l.size=f}else if(!r.includes(l.id)){const f=Math.max(Math.min(l.size+o,l.max),l.min),h=f-l.size;t-=h,l.size=f}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.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((e,r)=>{e.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 Sa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Agt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,l]of e)r[o]=l;return r},Mgt={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 Ngt(t,e,r,o,l,u){return ct(),Et("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>u.onPaneClick(f,t._.uid)),style:Tn(t.style)},[tr(t.$slots,"default")],4)}const El=Agt(Mgt,[["render",Ngt]]),Pgt={"h-screen":"","w-screen":"",overflow:"hidden"},Ogt=re({__name:"index",setup(t){const e=_pt(),r=Rn([33,67]),o=Rn([33,67]),l=hv(h=>{h.forEach((d,g)=>{r[g]=d.size})},0),u=hv(h=>{h.forEach((d,g)=>{o[g]=d.size})},0);function f(){const h=window.innerWidth,d=Math.min(h/3,300);r[0]=100*d/h,r[1]=100-r[0],o[0]=100*d/(h-d),o[1]=100-o[0]}return(h,d)=>{const g=Lgt,v=Cgt,b=ygt,x=Ppt,S=Ept,N=Kdt,A=FE;return ct(),Et(fe,null,[qt(g),ut("div",Pgt,[qt(V(hm),{class:"pt-4px",onResized:V(l),onReady:f},{default:Yt(()=>[qt(V(El),{size:V(r)[0]},{default:Yt(()=>[qt(v)]),_:1},8,["size"]),qt(V(El),{size:V(r)[1]},{default:Yt(()=>[qt(wh,null,{default:Yt(()=>[V(e)?(ct(),Zt(b,{key:"summary"})):V(ro)?(ct(),Zt(x,{key:"coverage",src:V(xpt)},null,8,["src"])):(ct(),Zt(V(hm),{key:"detail",onResized:V(u)},{default:Yt(()=>[qt(V(El),{size:V(o)[0]},{default:Yt(()=>[qt(S)]),_:1},8,["size"]),qt(V(El),{size:V(o)[1]},{default:Yt(()=>[qt(N)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),qt(A)],64)}}}),$gt=[{name:"index",path:"/",component:Ogt,props:!0}];const Dgt={tooltip:DC};G0.options.instantMove=!0;G0.options.distance=10;function Rgt(){return kk({history:qS(lT),routes:$gt})}const zgt=[Rgt],Kh=d0(_S);zgt.forEach(t=>{Kh.use(t())});Object.entries(Dgt).forEach(([t,e])=>{Kh.directive(t,e)});Kh.mount("#app");