@vitest/browser 0.25.5 → 0.25.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/__vitest__/assets/index-46184c7a.js +37 -0
- package/dist/client/__vitest__/assets/{index.ecf039ae.css → index-b2083d34.css} +1 -1
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/assets/{index.5e00c68b.js → index-2a0b4312.js} +0 -1
- package/dist/client/index.html +1 -1
- package/package.json +3 -3
- package/dist/client/__vitest__/assets/index.ab7d25fc.js +0 -41
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var hx=Object.defineProperty;var dx=(t,e,r)=>e in t?hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ni=(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 a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerpolicy&&(u.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?u.credentials="include":a.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function Ef(t,e){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return e?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const px="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gx=Ef(px);function Jv(t){return!!t||t===""}function kn(t){if(Ht(t)){const e={};for(let r=0;r<t.length;r++){const o=t[r],a=Ue(o)?yx(o):kn(o);if(a)for(const u in a)e[u]=a[u]}return e}else{if(Ue(t))return t;if(xe(t))return t}}const vx=/;(?![^(]*\))/g,mx=/:(.+)/;function yx(t){const e={};return t.split(vx).forEach(r=>{if(r){const o=r.split(mx);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ge(t){let e="";if(Ue(t))e=t;else if(Ht(t))for(let r=0;r<t.length;r++){const o=ge(t[r]);o&&(e+=o+" ")}else if(xe(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const Xt=t=>Ue(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===em||!Wt(t.toString))?JSON.stringify(t,Zv,2):String(t),Zv=(t,e)=>e&&e.__v_isRef?Zv(t,e.value):Eo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Qv(e)?{[`Set(${e.size})`]:[...e.values()]}:xe(e)&&!Ht(e)&&!nm(e)?String(e):e,ye={},Lo=[],Vn=()=>{},bx=()=>!1,wx=/^on[^a-z]/,Za=t=>wx.test(t),Af=t=>t.startsWith("onUpdate:"),Xe=Object.assign,Nf=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},xx=Object.prototype.hasOwnProperty,Jt=(t,e)=>xx.call(t,e),Ht=Array.isArray,Eo=t=>Qa(t)==="[object Map]",Qv=t=>Qa(t)==="[object Set]",Wt=t=>typeof t=="function",Ue=t=>typeof t=="string",Mf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",tm=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),em=Object.prototype.toString,Qa=t=>em.call(t),_x=t=>Qa(t).slice(8,-1),nm=t=>Qa(t)==="[object Object]",Of=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pa=Ef(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Sx=/-(\w)/g,fr=tc(t=>t.replace(Sx,(e,r)=>r?r.toUpperCase():"")),kx=/\B([A-Z])/g,Ji=tc(t=>t.replace(kx,"-$1").toLowerCase()),ec=tc(t=>t.charAt(0).toUpperCase()+t.slice(1)),yu=tc(t=>t?`on${ec(t)}`:""),js=(t,e)=>!Object.is(t,e),ga=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},Ea=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Gs=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Ep;const Cx=()=>Ep||(Ep=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Nn;class Tx{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Nn,!e&&Nn&&(this.index=(Nn.scopes||(Nn.scopes=[])).push(this)-1)}run(e){if(this.active){const r=Nn;try{return Nn=this,e()}finally{Nn=r}}}on(){Nn=this}off(){Nn=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 a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this.active=!1}}}function Lx(t,e=Nn){e&&e.active&&e.effects.push(t)}function Ex(){return Nn}function Ax(t){Nn&&Nn.cleanups.push(t)}const Pf=t=>{const e=new Set(t);return e.w=0,e.n=0,e},rm=t=>(t.w&di)>0,im=t=>(t.n&di)>0,Nx=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=di},Mx=t=>{const{deps:e}=t;if(e.length){let r=0;for(let o=0;o<e.length;o++){const a=e[o];rm(a)&&!im(a)?a.delete(t):e[r++]=a,a.w&=~di,a.n&=~di}e.length=r}},zu=new WeakMap;let Rs=0,di=1;const Iu=30;let jn;const Wi=Symbol(""),Fu=Symbol("");class $f{constructor(e,r=null,o){this.fn=e,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Lx(this,o)}run(){if(!this.active)return this.fn();let e=jn,r=ci;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=jn,jn=this,ci=!0,di=1<<++Rs,Rs<=Iu?Nx(this):Ap(this),this.fn()}finally{Rs<=Iu&&Mx(this),di=1<<--Rs,jn=this.parent,ci=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jn===this?this.deferStop=!0:this.active&&(Ap(this),this.onStop&&this.onStop(),this.active=!1)}}function Ap(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}let ci=!0;const om=[];function Ko(){om.push(ci),ci=!1}function Xo(){const t=om.pop();ci=t===void 0?!0:t}function On(t,e,r){if(ci&&jn){let o=zu.get(t);o||zu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Pf()),sm(a)}}function sm(t,e){let r=!1;Rs<=Iu?im(t)||(t.n|=di,r=!rm(t)):r=!t.has(jn),r&&(t.add(jn),jn.deps.push(t))}function $r(t,e,r,o,a,u){const f=zu.get(t);if(!f)return;let h=[];if(e==="clear")h=[...f.values()];else if(r==="length"&&Ht(t))f.forEach((d,g)=>{(g==="length"||g>=o)&&h.push(d)});else switch(r!==void 0&&h.push(f.get(r)),e){case"add":Ht(t)?Of(r)&&h.push(f.get("length")):(h.push(f.get(Wi)),Eo(t)&&h.push(f.get(Fu)));break;case"delete":Ht(t)||(h.push(f.get(Wi)),Eo(t)&&h.push(f.get(Fu)));break;case"set":Eo(t)&&h.push(f.get(Wi));break}if(h.length===1)h[0]&&qu(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);qu(Pf(d))}}function qu(t,e){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&Np(o);for(const o of r)o.computed||Np(o)}function Np(t,e){(t!==jn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Ox=Ef("__proto__,__v_isRef,__isVue"),lm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Mf)),Px=Df(),$x=Df(!1,!0),Dx=Df(!0),Mp=Rx();function Rx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=le(this);for(let u=0,f=this.length;u<f;u++)On(o,"get",u+"");const a=o[e](...r);return a===-1||a===!1?o[e](...r.map(le)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){Ko();const o=le(this)[e].apply(this,r);return Xo(),o}}),t}function Df(t=!1,e=!1){return function(o,a,u){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&u===(t?e?Zx:hm:e?fm:um).get(o))return o;const f=Ht(o);if(!t&&f&&Jt(Mp,a))return Reflect.get(Mp,a,u);const h=Reflect.get(o,a,u);return(Mf(a)?lm.has(a):Ox(a))||(t||On(o,"get",a),e)?h:Ie(h)?f&&Of(a)?h:h.value:xe(h)?t?dm(h):hr(h):h}}const zx=am(),Ix=am(!0);function am(t=!1){return function(r,o,a,u){let f=r[o];if(Ro(f)&&Ie(f)&&!Ie(a))return!1;if(!t&&(!Aa(a)&&!Ro(a)&&(f=le(f),a=le(a)),!Ht(r)&&Ie(f)&&!Ie(a)))return f.value=a,!0;const h=Ht(r)&&Of(o)?Number(o)<r.length:Jt(r,o),d=Reflect.set(r,o,a,u);return r===le(u)&&(h?js(a,f)&&$r(r,"set",o,a):$r(r,"add",o,a)),d}}function Fx(t,e){const r=Jt(t,e);t[e];const o=Reflect.deleteProperty(t,e);return o&&r&&$r(t,"delete",e,void 0),o}function qx(t,e){const r=Reflect.has(t,e);return(!Mf(e)||!lm.has(e))&&On(t,"has",e),r}function Hx(t){return On(t,"iterate",Ht(t)?"length":Wi),Reflect.ownKeys(t)}const cm={get:Px,set:zx,deleteProperty:Fx,has:qx,ownKeys:Hx},Bx={get:Dx,set(t,e){return!0},deleteProperty(t,e){return!0}},Wx=Xe({},cm,{get:$x,set:Ix}),Rf=t=>t,nc=t=>Reflect.getPrototypeOf(t);function ea(t,e,r=!1,o=!1){t=t.__v_raw;const a=le(t),u=le(e);r||(e!==u&&On(a,"get",e),On(a,"get",u));const{has:f}=nc(a),h=o?Rf:r?qf:Vs;if(f.call(a,e))return h(t.get(e));if(f.call(a,u))return h(t.get(u));t!==a&&t.get(e)}function na(t,e=!1){const r=this.__v_raw,o=le(r),a=le(t);return e||(t!==a&&On(o,"has",t),On(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ra(t,e=!1){return t=t.__v_raw,!e&&On(le(t),"iterate",Wi),Reflect.get(t,"size",t)}function Op(t){t=le(t);const e=le(this);return nc(e).has.call(e,t)||(e.add(t),$r(e,"add",t,t)),this}function Pp(t,e){e=le(e);const r=le(this),{has:o,get:a}=nc(r);let u=o.call(r,t);u||(t=le(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,e),u?js(e,f)&&$r(r,"set",t,e):$r(r,"add",t,e),this}function $p(t){const e=le(this),{has:r,get:o}=nc(e);let a=r.call(e,t);a||(t=le(t),a=r.call(e,t)),o&&o.call(e,t);const u=e.delete(t);return a&&$r(e,"delete",t,void 0),u}function Dp(){const t=le(this),e=t.size!==0,r=t.clear();return e&&$r(t,"clear",void 0,void 0),r}function ia(t,e){return function(o,a){const u=this,f=u.__v_raw,h=le(f),d=e?Rf:t?qf:Vs;return!t&&On(h,"iterate",Wi),f.forEach((g,v)=>o.call(a,d(g),d(v),u))}}function oa(t,e,r){return function(...o){const a=this.__v_raw,u=le(a),f=Eo(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=a[t](...o),v=r?Rf:e?qf:Vs;return!e&&On(u,"iterate",d?Fu:Wi),{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 Qr(t){return function(...e){return t==="delete"?!1:this}}function Ux(){const t={get(u){return ea(this,u)},get size(){return ra(this)},has:na,add:Op,set:Pp,delete:$p,clear:Dp,forEach:ia(!1,!1)},e={get(u){return ea(this,u,!1,!0)},get size(){return ra(this)},has:na,add:Op,set:Pp,delete:$p,clear:Dp,forEach:ia(!1,!0)},r={get(u){return ea(this,u,!0)},get size(){return ra(this,!0)},has(u){return na.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:ia(!0,!1)},o={get(u){return ea(this,u,!0,!0)},get size(){return ra(this,!0)},has(u){return na.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:ia(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=oa(u,!1,!1),r[u]=oa(u,!0,!1),e[u]=oa(u,!1,!0),o[u]=oa(u,!0,!0)}),[t,r,e,o]}const[jx,Gx,Vx,Kx]=Ux();function zf(t,e){const r=e?t?Kx:Vx:t?Gx:jx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Jt(r,a)&&a in o?r:o,a,u)}const Xx={get:zf(!1,!1)},Yx={get:zf(!1,!0)},Jx={get:zf(!0,!1)},um=new WeakMap,fm=new WeakMap,hm=new WeakMap,Zx=new WeakMap;function Qx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function t1(t){return t.__v_skip||!Object.isExtensible(t)?0:Qx(_x(t))}function hr(t){return Ro(t)?t:If(t,!1,cm,Xx,um)}function e1(t){return If(t,!1,Wx,Yx,fm)}function dm(t){return If(t,!0,Bx,Jx,hm)}function If(t,e,r,o,a){if(!xe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=t1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Ao(t){return Ro(t)?Ao(t.__v_raw):!!(t&&t.__v_isReactive)}function Ro(t){return!!(t&&t.__v_isReadonly)}function Aa(t){return!!(t&&t.__v_isShallow)}function pm(t){return Ao(t)||Ro(t)}function le(t){const e=t&&t.__v_raw;return e?le(e):t}function Ff(t){return Ea(t,"__v_skip",!0),t}const Vs=t=>xe(t)?hr(t):t,qf=t=>xe(t)?dm(t):t;function gm(t){ci&&jn&&(t=le(t),sm(t.dep||(t.dep=Pf())))}function vm(t,e){t=le(t),t.dep&&qu(t.dep)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return mm(t,!1)}function cl(t){return mm(t,!0)}function mm(t,e){return Ie(t)?t:new n1(t,e)}class n1{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:le(e),this._value=r?e:Vs(e)}get value(){return gm(this),this._value}set value(e){const r=this.__v_isShallow||Aa(e)||Ro(e);e=r?e:le(e),js(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:Vs(e),vm(this))}}function J(t){return Ie(t)?t.value:t}const r1={get:(t,e,r)=>J(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const a=t[e];return Ie(a)&&!Ie(r)?(a.value=r,!0):Reflect.set(t,e,r,o)}};function ym(t){return Ao(t)?t:new Proxy(t,r1)}function i1(t){const e=Ht(t)?new Array(t.length):{};for(const r in t)e[r]=Hf(t,r);return e}class o1{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}}function Hf(t,e,r){const o=t[e];return Ie(o)?o:new o1(t,e,r)}var bm;class s1{constructor(e,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[bm]=!1,this._dirty=!0,this.effect=new $f(e,()=>{this._dirty||(this._dirty=!0,vm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const e=le(this);return gm(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}bm="__v_isReadonly";function l1(t,e,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Vn):(o=t.get,a=t.set),new s1(o,a,u||!a,r)}function ui(t,e,r,o){let a;try{a=o?t(...o):t()}catch(u){ul(u,e,r)}return a}function In(t,e,r,o){if(Wt(t)){const u=ui(t,e,r,o);return u&&tm(u)&&u.catch(f=>{ul(f,e,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(In(t[u],e,r,o));return a}function ul(t,e,r,o=!0){const a=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){ui(d,null,10,[t,f,h]);return}}a1(t,r,a,o)}function a1(t,e,r,o=!0){console.error(t)}let Ks=!1,Hu=!1;const tn=[];let sr=0;const No=[];let Er=null,zi=0;const wm=Promise.resolve();let Bf=null;function fl(t){const e=Bf||wm;return t?e.then(this?t.bind(this):t):e}function c1(t){let e=sr+1,r=tn.length;for(;e<r;){const o=e+r>>>1;Xs(tn[o])<t?e=o+1:r=o}return e}function Wf(t){(!tn.length||!tn.includes(t,Ks&&t.allowRecurse?sr+1:sr))&&(t.id==null?tn.push(t):tn.splice(c1(t.id),0,t),xm())}function xm(){!Ks&&!Hu&&(Hu=!0,Bf=wm.then(km))}function u1(t){const e=tn.indexOf(t);e>sr&&tn.splice(e,1)}function _m(t){Ht(t)?No.push(...t):(!Er||!Er.includes(t,t.allowRecurse?zi+1:zi))&&No.push(t),xm()}function Rp(t,e=Ks?sr+1:0){for(;e<tn.length;e++){const r=tn[e];r&&r.pre&&(tn.splice(e,1),e--,r())}}function Sm(t){if(No.length){const e=[...new Set(No)];if(No.length=0,Er){Er.push(...e);return}for(Er=e,Er.sort((r,o)=>Xs(r)-Xs(o)),zi=0;zi<Er.length;zi++)Er[zi]();Er=null,zi=0}}const Xs=t=>t.id==null?1/0:t.id,f1=(t,e)=>{const r=Xs(t)-Xs(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function km(t){Hu=!1,Ks=!0,tn.sort(f1);const e=Vn;try{for(sr=0;sr<tn.length;sr++){const r=tn[sr];r&&r.active!==!1&&ui(r,null,14)}}finally{sr=0,tn.length=0,Sm(),Ks=!1,Bf=null,(tn.length||No.length)&&km()}}function h1(t,e,...r){if(t.isUnmounted)return;const o=t.vnode.props||ye;let a=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]||ye;x&&(a=r.map(S=>S.trim())),b&&(a=r.map(Gs))}let h,d=o[h=yu(e)]||o[h=yu(fr(e))];!d&&u&&(d=o[h=yu(Ji(e))]),d&&In(d,t,6,a);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,In(g,t,6,a)}}function Cm(t,e,r=!1){const o=e.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let f={},h=!1;if(!Wt(t)){const d=g=>{const v=Cm(g,e,!0);v&&(h=!0,Xe(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(xe(t)&&o.set(t,null),null):(Ht(u)?u.forEach(d=>f[d]=null):Xe(f,u),xe(t)&&o.set(t,f),f)}function rc(t,e){return!t||!Za(e)?!1:(e=e.slice(2).replace(/Once$/,""),Jt(t,e[0].toLowerCase()+e.slice(1))||Jt(t,Ji(e))||Jt(t,e))}let en=null,ic=null;function Na(t){const e=en;return en=t,ic=t&&t.type.__scopeId||null,e}function Tm(t){ic=t}function Lm(){ic=null}const d1=t=>Zt;function Zt(t,e=en,r){if(!e||t._n)return t;const o=(...a)=>{o._d&&Kp(-1);const u=Na(e);let f;try{f=t(...a)}finally{Na(u),o._d&&Kp(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function bu(t){const{type:e,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:b,data:x,setupState:S,ctx:N,inheritAttrs:A}=t;let L,k;const E=Na(t);try{if(r.shapeFlag&4){const P=a||o;L=Un(v.call(P,P,b,u,S,x,N)),k=d}else{const P=e;L=Un(P.length>1?P(u,{attrs:d,slots:h,emit:g}):P(u,null)),k=e.props?d:g1(d)}}catch(P){qs.length=0,ul(P,t,1),L=Rt(Cn)}let R=L;if(k&&A!==!1){const P=Object.keys(k),{shapeFlag:G}=R;P.length&&G&7&&(f&&P.some(Af)&&(k=v1(k,f)),R=pi(R,k))}return r.dirs&&(R=pi(R),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&(R.transition=r.transition),L=R,Na(E),L}function p1(t){let e;for(let r=0;r<t.length;r++){const o=t[r];if(Js(o)){if(o.type!==Cn||o.children==="v-if"){if(e)return;e=o}}else return}return e}const g1=t=>{let e;for(const r in t)(r==="class"||r==="style"||Za(r))&&((e||(e={}))[r]=t[r]);return e},v1=(t,e)=>{const r={};for(const o in t)(!Af(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function m1(t,e,r){const{props:o,children:a,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?zp(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]&&!rc(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?zp(o,f,g):!0:!!f;return!1}function zp(t,e,r){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(e[u]!==t[u]&&!rc(r,u))return!0}return!1}function Uf({vnode:t,parent:e},r){for(;e&&e.subTree===t;)(t=e.vnode).el=r,e=e.parent}const y1=t=>t.__isSuspense,b1={name:"Suspense",__isSuspense:!0,process(t,e,r,o,a,u,f,h,d,g){t==null?x1(e,r,o,a,u,f,h,d,g):_1(t,e,r,o,a,f,h,d,g)},hydrate:S1,create:jf,normalize:k1},w1=b1;function Ys(t,e){const r=t.props&&t.props[e];Wt(r)&&r()}function x1(t,e,r,o,a,u,f,h,d){const{p:g,o:{createElement:v}}=d,b=v("div"),x=t.suspense=jf(t,a,o,e,b,r,u,f,h,d);g(null,x.pendingBranch=t.ssContent,b,null,o,x,u,f),x.deps>0?(Ys(t,"onPending"),Ys(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,u,f),Mo(x,t.ssFallback)):x.resolve()}function _1(t,e,r,o,a,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:L,isHydrating:k}=b;if(A)b.pendingBranch=x,ar(x,A)?(d(A,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():L&&(d(N,S,r,o,a,null,u,f,h),Mo(b,S))):(b.pendingId++,k?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),L?(d(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(d(N,S,r,o,a,null,u,f,h),Mo(b,S))):N&&ar(x,N)?(d(N,x,r,o,a,b,u,f,h),b.resolve(!0)):(d(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(N&&ar(x,N))d(N,x,r,o,a,b,u,f,h),Mo(b,x);else if(Ys(e,"onPending"),b.pendingBranch=x,b.pendingId++,d(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:E,pendingId:R}=b;E>0?setTimeout(()=>{b.pendingId===R&&b.fallback(S)},E):E===0&&b.fallback(S)}}function jf(t,e,r,o,a,u,f,h,d,g,v=!1){const{p:b,m:x,um:S,n:N,o:{parentNode:A,remove:L}}=g,k=Gs(t.props&&t.props.timeout),E={vnode:t,parent:e,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(R=!1){const{vnode:P,activeBranch:G,pendingBranch:j,pendingId:rt,effects:Z,parentComponent:ct,container:vt}=E;if(E.isHydrating)E.isHydrating=!1;else if(!R){const U=G&&j.transition&&j.transition.mode==="out-in";U&&(G.transition.afterLeave=()=>{rt===E.pendingId&&x(j,vt,z,0)});let{anchor:z}=E;G&&(z=N(G),S(G,ct,E,!0)),U||x(j,vt,z,0)}Mo(E,j),E.pendingBranch=null,E.isInFallback=!1;let kt=E.parent,ut=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...Z),ut=!0;break}kt=kt.parent}ut||_m(Z),E.effects=[],Ys(P,"onResolve")},fallback(R){if(!E.pendingBranch)return;const{vnode:P,activeBranch:G,parentComponent:j,container:rt,isSVG:Z}=E;Ys(P,"onFallback");const ct=N(G),vt=()=>{!E.isInFallback||(b(null,R,rt,ct,j,null,Z,h,d),Mo(E,R))},kt=R.transition&&R.transition.mode==="out-in";kt&&(G.transition.afterLeave=vt),E.isInFallback=!0,S(G,j,null,!0),kt||vt()},move(R,P,G){E.activeBranch&&x(E.activeBranch,R,P,G),E.container=R},next(){return E.activeBranch&&N(E.activeBranch)},registerDep(R,P){const G=!!E.pendingBranch;G&&E.deps++;const j=R.vnode.el;R.asyncDep.catch(rt=>{ul(rt,R,0)}).then(rt=>{if(R.isUnmounted||E.isUnmounted||E.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:Z}=R;Xu(R,rt,!1),j&&(Z.el=j);const ct=!j&&R.subTree.el;P(R,Z,A(j||R.subTree.el),j?null:N(R.subTree),E,f,d),ct&&L(ct),Uf(R,Z.el),G&&--E.deps===0&&E.resolve()})},unmount(R,P){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,R,P),E.pendingBranch&&S(E.pendingBranch,r,R,P)}};return E}function S1(t,e,r,o,a,u,f,h,d){const g=e.suspense=jf(e,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),v}function k1(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=Ip(o?r.default:r),t.ssFallback=o?Ip(r.fallback):Rt(Cn)}function Ip(t){let e;if(Wt(t)){const r=zo&&t._c;r&&(t._d=!1,dt()),t=t(),r&&(t._d=!0,e=zn,jm())}return Ht(t)&&(t=p1(t)),t=Un(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function C1(t,e){e&&e.pendingBranch?Ht(t)?e.effects.push(...t):e.effects.push(t):_m(t)}function Mo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t,a=r.el=e.el;o&&o.subTree===r&&(o.vnode.el=a,Uf(o,a))}function va(t,e){if(Be){let r=Be.provides;const o=Be.parent&&Be.parent.provides;o===r&&(r=Be.provides=Object.create(o)),r[t]=e}}function fi(t,e,r=!1){const o=Be||en;if(o){const a=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(a&&t in a)return a[t];if(arguments.length>1)return r&&Wt(e)?e.call(o.proxy):e}}function Gf(t,e){return Vf(t,null,e)}const Fp={};function Fe(t,e,r){return Vf(t,e,r)}function Vf(t,e,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=ye){const h=Be;let d,g=!1,v=!1;if(Ie(t)?(d=()=>t.value,g=Aa(t)):Ao(t)?(d=()=>t,o=!0):Ht(t)?(v=!0,g=t.some(k=>Ao(k)||Aa(k)),d=()=>t.map(k=>{if(Ie(k))return k.value;if(Ao(k))return Fi(k);if(Wt(k))return ui(k,h,2)})):Wt(t)?e?d=()=>ui(t,h,2):d=()=>{if(!(h&&h.isUnmounted))return b&&b(),In(t,h,3,[x])}:d=Vn,e&&o){const k=d;d=()=>Fi(k())}let b,x=k=>{b=L.onStop=()=>{ui(k,h,4)}};if(Zs)return x=Vn,e?r&&In(e,h,3,[d(),v?[]:void 0,x]):d(),Vn;let S=v?[]:Fp;const N=()=>{if(!!L.active)if(e){const k=L.run();(o||g||(v?k.some((E,R)=>js(E,S[R])):js(k,S)))&&(b&&b(),In(e,h,3,[k,S===Fp?void 0:S,x]),S=k)}else L.run()};N.allowRecurse=!!e;let A;a==="sync"?A=N:a==="post"?A=()=>xn(N,h&&h.suspense):(N.pre=!0,h&&(N.id=h.uid),A=()=>Wf(N));const L=new $f(d,A);return e?r?N():S=L.run():a==="post"?xn(L.run.bind(L),h&&h.suspense):L.run(),()=>{L.stop(),h&&h.scope&&Nf(h.scope.effects,L)}}function T1(t,e,r){const o=this.proxy,a=Ue(t)?t.includes(".")?Em(o,t):()=>o[t]:t.bind(o,o);let u;Wt(e)?u=e:(u=e.handler,r=e);const f=Be;Io(this);const h=Vf(a,u.bind(o),r);return f?Io(f):Ui(),h}function Em(t,e){const r=e.split(".");return()=>{let o=t;for(let a=0;a<r.length&&o;a++)o=o[r[a]];return o}}function Fi(t,e){if(!xe(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Ie(t))Fi(t.value,e);else if(Ht(t))for(let r=0;r<t.length;r++)Fi(t[r],e);else if(Qv(t)||Eo(t))t.forEach(r=>{Fi(r,e)});else if(nm(t))for(const r in t)Fi(t[r],e);return t}function L1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return hl(()=>{t.isMounted=!0}),Pm(()=>{t.isUnmounting=!0}),t}const Rn=[Function,Array],E1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rn,onEnter:Rn,onAfterEnter:Rn,onEnterCancelled:Rn,onBeforeLeave:Rn,onLeave:Rn,onAfterLeave:Rn,onLeaveCancelled:Rn,onBeforeAppear:Rn,onAppear:Rn,onAfterAppear:Rn,onAppearCancelled:Rn},setup(t,{slots:e}){const r=ac(),o=L1();let a;return()=>{const u=e.default&&Mm(e.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Cn){f=A;break}}const h=le(t),{mode:d}=h;if(o.isLeaving)return wu(f);const g=qp(f);if(!g)return wu(f);const v=Bu(g,h,o,r);Wu(g,v);const b=r.subTree,x=b&&qp(b);let S=!1;const{getTransitionKey:N}=g.type;if(N){const A=N();a===void 0?a=A:A!==a&&(a=A,S=!0)}if(x&&x.type!==Cn&&(!ar(g,x)||S)){const A=Bu(x,h,o,r);if(Wu(x,A),d==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update()},wu(f);d==="in-out"&&g.type!==Cn&&(A.delayLeave=(L,k,E)=>{const R=Nm(o,x);R[String(x.key)]=x,L._leaveCb=()=>{k(),L._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=E})}return f}}},Am=E1;function Nm(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 Bu(t,e,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:N,onBeforeAppear:A,onAppear:L,onAfterAppear:k,onAppearCancelled:E}=e,R=String(t.key),P=Nm(r,t),G=(Z,ct)=>{Z&&In(Z,o,9,ct)},j=(Z,ct)=>{const vt=ct[1];G(Z,ct),Ht(Z)?Z.every(kt=>kt.length<=1)&&vt():Z.length<=1&&vt()},rt={mode:u,persisted:f,beforeEnter(Z){let ct=h;if(!r.isMounted)if(a)ct=A||h;else return;Z._leaveCb&&Z._leaveCb(!0);const vt=P[R];vt&&ar(t,vt)&&vt.el._leaveCb&&vt.el._leaveCb(),G(ct,[Z])},enter(Z){let ct=d,vt=g,kt=v;if(!r.isMounted)if(a)ct=L||d,vt=k||g,kt=E||v;else return;let ut=!1;const U=Z._enterCb=z=>{ut||(ut=!0,z?G(kt,[Z]):G(vt,[Z]),rt.delayedLeave&&rt.delayedLeave(),Z._enterCb=void 0)};ct?j(ct,[Z,U]):U()},leave(Z,ct){const vt=String(t.key);if(Z._enterCb&&Z._enterCb(!0),r.isUnmounting)return ct();G(b,[Z]);let kt=!1;const ut=Z._leaveCb=U=>{kt||(kt=!0,ct(),U?G(N,[Z]):G(S,[Z]),Z._leaveCb=void 0,P[vt]===t&&delete P[vt])};P[vt]=t,x?j(x,[Z,ut]):ut()},clone(Z){return Bu(Z,e,r,o)}};return rt}function wu(t){if(oc(t))return t=pi(t),t.children=null,t}function qp(t){return oc(t)?t.children?t.children[0]:void 0:t}function Wu(t,e){t.shapeFlag&6&&t.component?Wu(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 Mm(t,e=!1,r){let o=[],a=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===ue?(f.patchFlag&128&&a++,o=o.concat(Mm(f.children,e,h))):(e||f.type!==Cn)&&o.push(h!=null?pi(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function oe(t){return Wt(t)?{setup:t,name:t.name}:t}const Fs=t=>!!t.type.__asyncLoader,oc=t=>t.type.__isKeepAlive;function A1(t,e){Om(t,"a",e)}function N1(t,e){Om(t,"da",e)}function Om(t,e,r=Be){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(sc(e,o,r),r){let a=r.parent;for(;a&&a.parent;)oc(a.parent.vnode)&&M1(o,e,r,a),a=a.parent}}function M1(t,e,r,o){const a=sc(e,t,o,!0);Kf(()=>{Nf(o[e],a)},r)}function sc(t,e,r=Be,o=!1){if(r){const a=r[t]||(r[t]=[]),u=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;Ko(),Io(r);const h=In(e,r,t,f);return Ui(),Xo(),h});return o?a.unshift(u):a.push(u),u}}const Ir=t=>(e,r=Be)=>(!Zs||t==="sp")&&sc(t,(...o)=>e(...o),r),O1=Ir("bm"),hl=Ir("m"),P1=Ir("bu"),$1=Ir("u"),Pm=Ir("bum"),Kf=Ir("um"),D1=Ir("sp"),R1=Ir("rtg"),z1=Ir("rtc");function I1(t,e=Be){sc("ec",t,e)}function pn(t,e){const r=en;if(r===null)return t;const o=cc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[f,h,d,g=ye]=e[u];Wt(f)&&(f={mounted:f,updated:f}),f.deep&&Fi(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:d,modifiers:g})}return t}function Mi(t,e,r,o){const a=t.dirs,u=e&&e.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let d=h.dir[o];d&&(Ko(),In(d,r,8,[t.el,h,t,e]),Xo())}}const $m="components",F1="directives";function Vi(t,e){return Dm($m,t,!0,e)||t}const q1=Symbol();function Zi(t){return Dm(F1,t)}function Dm(t,e,r=!0,o=!1){const a=en||Be;if(a){const u=a.type;if(t===$m){const h=h_(u,!1);if(h&&(h===e||h===fr(e)||h===ec(fr(e))))return u}const f=Hp(a[t]||u[t],e)||Hp(a.appContext[t],e);return!f&&o?u:f}}function Hp(t,e){return t&&(t[e]||t[fr(e)]||t[ec(fr(e))])}function lr(t,e,r,o){let a;const u=r&&r[o];if(Ht(t)||Ue(t)){a=new Array(t.length);for(let f=0,h=t.length;f<h;f++)a[f]=e(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){a=new Array(t);for(let f=0;f<t;f++)a[f]=e(f+1,f,void 0,u&&u[f])}else if(xe(t))if(t[Symbol.iterator])a=Array.from(t,(f,h)=>e(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);a=new Array(f.length);for(let h=0,d=f.length;h<d;h++){const g=f[h];a[h]=e(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function Kn(t,e,r={},o,a){if(en.isCE||en.parent&&Fs(en.parent)&&en.parent.isCE)return Rt("slot",e==="default"?null:{name:e},o&&o());let u=t[e];u&&u._c&&(u._d=!1),dt();const f=u&&Rm(u(r)),h=ce(ue,{key:r.key||f&&f.key||`_${e}`},f||(o?o():[]),f&&t._===1?64:-2);return!a&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function Rm(t){return t.some(e=>Js(e)?!(e.type===Cn||e.type===ue&&!Rm(e.children)):!0)?t:null}const Uu=t=>t?Km(t)?cc(t)||t.proxy:Uu(t.parent):null,Ma=Xe(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=>Uu(t.parent),$root:t=>Uu(t.root),$emit:t=>t.emit,$options:t=>Xf(t),$forceUpdate:t=>t.f||(t.f=()=>Wf(t.update)),$nextTick:t=>t.n||(t.n=fl.bind(t.proxy)),$watch:t=>T1.bind(t)}),H1={get({_:t},e){const{ctx:r,setupState:o,data:a,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 a[e];case 4:return r[e];case 3:return u[e]}else{if(o!==ye&&Jt(o,e))return f[e]=1,o[e];if(a!==ye&&Jt(a,e))return f[e]=2,a[e];if((g=t.propsOptions[0])&&Jt(g,e))return f[e]=3,u[e];if(r!==ye&&Jt(r,e))return f[e]=4,r[e];ju&&(f[e]=0)}}const v=Ma[e];let b,x;if(v)return e==="$attrs"&&On(t,"get",e),v(t);if((b=h.__cssModules)&&(b=b[e]))return b;if(r!==ye&&Jt(r,e))return f[e]=4,r[e];if(x=d.config.globalProperties,Jt(x,e))return x[e]},set({_:t},e,r){const{data:o,setupState:a,ctx:u}=t;return a!==ye&&Jt(a,e)?(a[e]=r,!0):o!==ye&&Jt(o,e)?(o[e]=r,!0):Jt(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:a,propsOptions:u}},f){let h;return!!r[f]||t!==ye&&Jt(t,f)||e!==ye&&Jt(e,f)||(h=u[0])&&Jt(h,f)||Jt(o,f)||Jt(Ma,f)||Jt(a.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Jt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};let ju=!0;function B1(t){const e=Xf(t),r=t.proxy,o=t.ctx;ju=!1,e.beforeCreate&&Bp(e.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:b,mounted:x,beforeUpdate:S,updated:N,activated:A,deactivated:L,beforeDestroy:k,beforeUnmount:E,destroyed:R,unmounted:P,render:G,renderTracked:j,renderTriggered:rt,errorCaptured:Z,serverPrefetch:ct,expose:vt,inheritAttrs:kt,components:ut,directives:U,filters:z}=e;if(g&&W1(g,o,null,t.appContext.config.unwrapInjectedRef),f)for(const W in f){const et=f[W];Wt(et)&&(o[W]=et.bind(r))}if(a){const W=a.call(r,r);xe(W)&&(t.data=hr(W))}if(ju=!0,u)for(const W in u){const et=u[W],wt=Wt(et)?et.bind(r,r):Wt(et.get)?et.get.bind(r,r):Vn,Et=!Wt(et)&&Wt(et.set)?et.set.bind(r):Vn,qt=St({get:wt,set:Et});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Bt=>qt.value=Bt})}if(h)for(const W in h)zm(h[W],o,r,W);if(d){const W=Wt(d)?d.call(r):d;Reflect.ownKeys(W).forEach(et=>{va(et,W[et])})}v&&Bp(v,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(O1,b),H(hl,x),H(P1,S),H($1,N),H(A1,A),H(N1,L),H(I1,Z),H(z1,j),H(R1,rt),H(Pm,E),H(Kf,P),H(D1,ct),Ht(vt))if(vt.length){const W=t.exposed||(t.exposed={});vt.forEach(et=>{Object.defineProperty(W,et,{get:()=>r[et],set:wt=>r[et]=wt})})}else t.exposed||(t.exposed={});G&&t.render===Vn&&(t.render=G),kt!=null&&(t.inheritAttrs=kt),ut&&(t.components=ut),U&&(t.directives=U)}function W1(t,e,r=Vn,o=!1){Ht(t)&&(t=Gu(t));for(const a in t){const u=t[a];let f;xe(u)?"default"in u?f=fi(u.from||a,u.default,!0):f=fi(u.from||a):f=fi(u),Ie(f)&&o?Object.defineProperty(e,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):e[a]=f}}function Bp(t,e,r){In(Ht(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function zm(t,e,r,o){const a=o.includes(".")?Em(r,o):()=>r[o];if(Ue(t)){const u=e[t];Wt(u)&&Fe(a,u)}else if(Wt(t))Fe(a,t.bind(r));else if(xe(t))if(Ht(t))t.forEach(u=>zm(u,e,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):e[t.handler];Wt(u)&&Fe(a,u,t)}}function Xf(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(e);let d;return h?d=h:!a.length&&!r&&!o?d=e:(d={},a.length&&a.forEach(g=>Oa(d,g,f,!0)),Oa(d,e,f)),xe(e)&&u.set(e,d),d}function Oa(t,e,r,o=!1){const{mixins:a,extends:u}=e;u&&Oa(t,u,r,!0),a&&a.forEach(f=>Oa(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=U1[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const U1={data:Wp,props:Di,emits:Di,methods:Di,computed:Di,beforeCreate:un,created:un,beforeMount:un,mounted:un,beforeUpdate:un,updated:un,beforeDestroy:un,beforeUnmount:un,destroyed:un,unmounted:un,activated:un,deactivated:un,errorCaptured:un,serverPrefetch:un,components:Di,directives:Di,watch:G1,provide:Wp,inject:j1};function Wp(t,e){return e?t?function(){return Xe(Wt(t)?t.call(this,this):t,Wt(e)?e.call(this,this):e)}:e:t}function j1(t,e){return Di(Gu(t),Gu(e))}function Gu(t){if(Ht(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function un(t,e){return t?[...new Set([].concat(t,e))]:e}function Di(t,e){return t?Xe(Xe(Object.create(null),t),e):e}function G1(t,e){if(!t)return e;if(!e)return t;const r=Xe(Object.create(null),t);for(const o in e)r[o]=un(t[o],e[o]);return r}function V1(t,e,r,o=!1){const a={},u={};Ea(u,lc,1),t.propsDefaults=Object.create(null),Im(t,e,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:e1(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function K1(t,e,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=le(a),[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(rc(t.emitsOptions,x))continue;const S=e[x];if(d)if(Jt(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const N=fr(x);a[N]=Vu(d,h,N,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{Im(t,e,a,u)&&(g=!0);let v;for(const b in h)(!e||!Jt(e,b)&&((v=Ji(b))===b||!Jt(e,v)))&&(d?r&&(r[b]!==void 0||r[v]!==void 0)&&(a[b]=Vu(d,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!e||!Jt(e,b)&&!0)&&(delete u[b],g=!0)}g&&$r(t,"set","$attrs")}function Im(t,e,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(e)for(let d in e){if(pa(d))continue;const g=e[d];let v;a&&Jt(a,v=fr(d))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:rc(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(u){const d=le(r),g=h||ye;for(let v=0;v<u.length;v++){const b=u[v];r[b]=Vu(a,d,b,g[b],t,!Jt(g,b))}}return f}function Vu(t,e,r,o,a,u){const f=t[r];if(f!=null){const h=Jt(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&Wt(d)){const{propsDefaults:g}=a;r in g?o=g[r]:(Io(a),o=g[r]=d.call(null,e),Ui())}else o=d}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Ji(r))&&(o=!0))}return o}function Fm(t,e,r=!1){const o=e.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let d=!1;if(!Wt(t)){const v=b=>{d=!0;const[x,S]=Fm(b,e,!0);Xe(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 xe(t)&&o.set(t,Lo),Lo;if(Ht(u))for(let v=0;v<u.length;v++){const b=fr(u[v]);Up(b)&&(f[b]=ye)}else if(u)for(const v in u){const b=fr(v);if(Up(b)){const x=u[v],S=f[b]=Ht(x)||Wt(x)?{type:x}:x;if(S){const N=Vp(Boolean,S.type),A=Vp(String,S.type);S[0]=N>-1,S[1]=A<0||N<A,(N>-1||Jt(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function Up(t){return t[0]!=="$"}function jp(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function Gp(t,e){return jp(t)===jp(e)}function Vp(t,e){return Ht(e)?e.findIndex(r=>Gp(r,t)):Wt(e)&&Gp(e,t)?0:-1}const qm=t=>t[0]==="_"||t==="$stable",Yf=t=>Ht(t)?t.map(Un):[Un(t)],X1=(t,e,r)=>{if(e._n)return e;const o=Zt((...a)=>Yf(e(...a)),r);return o._c=!1,o},Hm=(t,e,r)=>{const o=t._ctx;for(const a in t){if(qm(a))continue;const u=t[a];if(Wt(u))e[a]=X1(a,u,o);else if(u!=null){const f=Yf(u);e[a]=()=>f}}},Bm=(t,e)=>{const r=Yf(e);t.slots.default=()=>r},Y1=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=le(e),Ea(e,"_",r)):Hm(e,t.slots={})}else t.slots={},e&&Bm(t,e);Ea(t.slots,lc,1)},J1=(t,e,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=ye;if(o.shapeFlag&32){const h=e._;h?r&&h===1?u=!1:(Xe(a,e),!r&&h===1&&delete a._):(u=!e.$stable,Hm(e,a)),f=e}else e&&(Bm(t,e),f={default:1});if(u)for(const h in a)!qm(h)&&!(h in f)&&delete a[h]};function Wm(){return{app:null,config:{isNativeTag:bx,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 Z1=0;function Q1(t,e){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Wm(),f=new Set;let h=!1;const d=u.app={_uid:Z1++,_component:o,_props:a,_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=Rt(o,a);return x.appContext=u,v&&e?e(x,g):t(x,g,b),h=!0,d._container=g,g.__vue_app__=d,cc(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}};return d}}function Ku(t,e,r,o,a=!1){if(Ht(t)){t.forEach((x,S)=>Ku(x,e&&(Ht(e)?e[S]:e),r,o,a));return}if(Fs(o)&&!a)return;const u=o.shapeFlag&4?cc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:d}=t,g=e&&e.r,v=h.refs===ye?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==d&&(Ue(g)?(v[g]=null,Jt(b,g)&&(b[g]=null)):Ie(g)&&(g.value=null)),Wt(d))ui(d,h,12,[f,v]);else{const x=Ue(d),S=Ie(d);if(x||S){const N=()=>{if(t.f){const A=x?Jt(b,d)?b[d]:v[d]:d.value;a?Ht(A)&&Nf(A,u):Ht(A)?A.includes(u)||A.push(u):x?(v[d]=[u],Jt(b,d)&&(b[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else x?(v[d]=f,Jt(b,d)&&(b[d]=f)):S&&(d.value=f,t.k&&(v[t.k]=f))};f?(N.id=-1,xn(N,r)):N()}}}const xn=C1;function t_(t){return e_(t)}function e_(t,e){const r=Cx();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:b,nextSibling:x,setScopeId:S=Vn,insertStaticContent:N}=t,A=(O,F,Y,nt=null,ot=null,pt=null,lt=!1,gt=null,xt=!!F.dynamicChildren)=>{if(O===F)return;O&&!ar(O,F)&&(nt=V(O),Bt(O,ot,pt,!0),O=null),F.patchFlag===-2&&(xt=!1,F.dynamicChildren=null);const{type:at,ref:$t,shapeFlag:Mt}=F;switch(at){case Jf:L(O,F,Y,nt);break;case Cn:k(O,F,Y,nt);break;case xu:O==null&&E(F,Y,nt,lt);break;case ue:ut(O,F,Y,nt,ot,pt,lt,gt,xt);break;default:Mt&1?G(O,F,Y,nt,ot,pt,lt,gt,xt):Mt&6?U(O,F,Y,nt,ot,pt,lt,gt,xt):(Mt&64||Mt&128)&&at.process(O,F,Y,nt,ot,pt,lt,gt,xt,Ct)}$t!=null&&ot&&Ku($t,O&&O.ref,pt,F||O,!F)},L=(O,F,Y,nt)=>{if(O==null)o(F.el=h(F.children),Y,nt);else{const ot=F.el=O.el;F.children!==O.children&&g(ot,F.children)}},k=(O,F,Y,nt)=>{O==null?o(F.el=d(F.children||""),Y,nt):F.el=O.el},E=(O,F,Y,nt)=>{[O.el,O.anchor]=N(O.children,F,Y,nt,O.el,O.anchor)},R=({el:O,anchor:F},Y,nt)=>{let ot;for(;O&&O!==F;)ot=x(O),o(O,Y,nt),O=ot;o(F,Y,nt)},P=({el:O,anchor:F})=>{let Y;for(;O&&O!==F;)Y=x(O),a(O),O=Y;a(F)},G=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{lt=lt||F.type==="svg",O==null?j(F,Y,nt,ot,pt,lt,gt,xt):ct(O,F,ot,pt,lt,gt,xt)},j=(O,F,Y,nt,ot,pt,lt,gt)=>{let xt,at;const{type:$t,props:Mt,shapeFlag:Pt,transition:zt,dirs:jt}=O;if(xt=O.el=f(O.type,pt,Mt&&Mt.is,Mt),Pt&8?v(xt,O.children):Pt&16&&Z(O.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,gt),jt&&Mi(O,null,nt,"created"),Mt){for(const Qt in Mt)Qt!=="value"&&!pa(Qt)&&u(xt,Qt,null,Mt[Qt],pt,O.children,nt,ot,tt);"value"in Mt&&u(xt,"value",null,Mt.value),(at=Mt.onVnodeBeforeMount)&&ir(at,nt,O)}rt(xt,O,O.scopeId,lt,nt),jt&&Mi(O,null,nt,"beforeMount");const te=(!ot||ot&&!ot.pendingBranch)&&zt&&!zt.persisted;te&&zt.beforeEnter(xt),o(xt,F,Y),((at=Mt&&Mt.onVnodeMounted)||te||jt)&&xn(()=>{at&&ir(at,nt,O),te&&zt.enter(xt),jt&&Mi(O,null,nt,"mounted")},ot)},rt=(O,F,Y,nt,ot)=>{if(Y&&S(O,Y),nt)for(let pt=0;pt<nt.length;pt++)S(O,nt[pt]);if(ot){let pt=ot.subTree;if(F===pt){const lt=ot.vnode;rt(O,lt,lt.scopeId,lt.slotScopeIds,ot.parent)}}},Z=(O,F,Y,nt,ot,pt,lt,gt,xt=0)=>{for(let at=xt;at<O.length;at++){const $t=O[at]=gt?ri(O[at]):Un(O[at]);A(null,$t,F,Y,nt,ot,pt,lt,gt)}},ct=(O,F,Y,nt,ot,pt,lt)=>{const gt=F.el=O.el;let{patchFlag:xt,dynamicChildren:at,dirs:$t}=F;xt|=O.patchFlag&16;const Mt=O.props||ye,Pt=F.props||ye;let zt;Y&&Oi(Y,!1),(zt=Pt.onVnodeBeforeUpdate)&&ir(zt,Y,F,O),$t&&Mi(F,O,Y,"beforeUpdate"),Y&&Oi(Y,!0);const jt=ot&&F.type!=="foreignObject";if(at?vt(O.dynamicChildren,at,gt,Y,nt,jt,pt):lt||et(O,F,gt,null,Y,nt,jt,pt,!1),xt>0){if(xt&16)kt(gt,F,Mt,Pt,Y,nt,ot);else if(xt&2&&Mt.class!==Pt.class&&u(gt,"class",null,Pt.class,ot),xt&4&&u(gt,"style",Mt.style,Pt.style,ot),xt&8){const te=F.dynamicProps;for(let Qt=0;Qt<te.length;Qt++){const se=te[Qt],Yt=Mt[se],mn=Pt[se];(mn!==Yt||se==="value")&&u(gt,se,Yt,mn,ot,O.children,Y,nt,tt)}}xt&1&&O.children!==F.children&&v(gt,F.children)}else!lt&&at==null&&kt(gt,F,Mt,Pt,Y,nt,ot);((zt=Pt.onVnodeUpdated)||$t)&&xn(()=>{zt&&ir(zt,Y,F,O),$t&&Mi(F,O,Y,"updated")},nt)},vt=(O,F,Y,nt,ot,pt,lt)=>{for(let gt=0;gt<F.length;gt++){const xt=O[gt],at=F[gt],$t=xt.el&&(xt.type===ue||!ar(xt,at)||xt.shapeFlag&70)?b(xt.el):Y;A(xt,at,$t,null,nt,ot,pt,lt,!0)}},kt=(O,F,Y,nt,ot,pt,lt)=>{if(Y!==nt){if(Y!==ye)for(const gt in Y)!pa(gt)&&!(gt in nt)&&u(O,gt,Y[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(pa(gt))continue;const xt=nt[gt],at=Y[gt];xt!==at&>!=="value"&&u(O,gt,at,xt,lt,F.children,ot,pt,tt)}"value"in nt&&u(O,"value",Y.value,nt.value)}},ut=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{const at=F.el=O?O.el:h(""),$t=F.anchor=O?O.anchor:h("");let{patchFlag:Mt,dynamicChildren:Pt,slotScopeIds:zt}=F;zt&&(gt=gt?gt.concat(zt):zt),O==null?(o(at,Y,nt),o($t,Y,nt),Z(F.children,Y,$t,ot,pt,lt,gt,xt)):Mt>0&&Mt&64&&Pt&&O.dynamicChildren?(vt(O.dynamicChildren,Pt,Y,ot,pt,lt,gt),(F.key!=null||ot&&F===ot.subTree)&&Um(O,F,!0)):et(O,F,Y,$t,ot,pt,lt,gt,xt)},U=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{F.slotScopeIds=gt,O==null?F.shapeFlag&512?ot.ctx.activate(F,Y,nt,lt,xt):z(F,Y,nt,ot,pt,lt,xt):C(O,F,xt)},z=(O,F,Y,nt,ot,pt,lt)=>{const gt=O.component=a_(O,nt,ot);if(oc(O)&&(gt.ctx.renderer=Ct),c_(gt),gt.asyncDep){if(ot&&ot.registerDep(gt,H),!O.el){const xt=gt.subTree=Rt(Cn);k(null,xt,F,Y)}return}H(gt,O,F,Y,ot,pt,lt)},C=(O,F,Y)=>{const nt=F.component=O.component;if(m1(O,F,Y))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Y);return}else nt.next=F,u1(nt.update),nt.update();else F.el=O.el,nt.vnode=F},H=(O,F,Y,nt,ot,pt,lt)=>{const gt=()=>{if(O.isMounted){let{next:$t,bu:Mt,u:Pt,parent:zt,vnode:jt}=O,te=$t,Qt;Oi(O,!1),$t?($t.el=jt.el,W(O,$t,lt)):$t=jt,Mt&&ga(Mt),(Qt=$t.props&&$t.props.onVnodeBeforeUpdate)&&ir(Qt,zt,$t,jt),Oi(O,!0);const se=bu(O),Yt=O.subTree;O.subTree=se,A(Yt,se,b(Yt.el),V(Yt),O,ot,pt),$t.el=se.el,te===null&&Uf(O,se.el),Pt&&xn(Pt,ot),(Qt=$t.props&&$t.props.onVnodeUpdated)&&xn(()=>ir(Qt,zt,$t,jt),ot)}else{let $t;const{el:Mt,props:Pt}=F,{bm:zt,m:jt,parent:te}=O,Qt=Fs(F);if(Oi(O,!1),zt&&ga(zt),!Qt&&($t=Pt&&Pt.onVnodeBeforeMount)&&ir($t,te,F),Oi(O,!0),Mt&&Lt){const se=()=>{O.subTree=bu(O),Lt(Mt,O.subTree,O,ot,null)};Qt?F.type.__asyncLoader().then(()=>!O.isUnmounted&&se()):se()}else{const se=O.subTree=bu(O);A(null,se,Y,nt,O,ot,pt),F.el=se.el}if(jt&&xn(jt,ot),!Qt&&($t=Pt&&Pt.onVnodeMounted)){const se=F;xn(()=>ir($t,te,se),ot)}(F.shapeFlag&256||te&&Fs(te.vnode)&&te.vnode.shapeFlag&256)&&O.a&&xn(O.a,ot),O.isMounted=!0,F=Y=nt=null}},xt=O.effect=new $f(gt,()=>Wf(at),O.scope),at=O.update=()=>xt.run();at.id=O.uid,Oi(O,!0),at()},W=(O,F,Y)=>{F.component=O;const nt=O.vnode.props;O.vnode=F,O.next=null,K1(O,F.props,nt,Y),J1(O,F.children,Y),Ko(),Rp(),Xo()},et=(O,F,Y,nt,ot,pt,lt,gt,xt=!1)=>{const at=O&&O.children,$t=O?O.shapeFlag:0,Mt=F.children,{patchFlag:Pt,shapeFlag:zt}=F;if(Pt>0){if(Pt&128){Et(at,Mt,Y,nt,ot,pt,lt,gt,xt);return}else if(Pt&256){wt(at,Mt,Y,nt,ot,pt,lt,gt,xt);return}}zt&8?($t&16&&tt(at,ot,pt),Mt!==at&&v(Y,Mt)):$t&16?zt&16?Et(at,Mt,Y,nt,ot,pt,lt,gt,xt):tt(at,ot,pt,!0):($t&8&&v(Y,""),zt&16&&Z(Mt,Y,nt,ot,pt,lt,gt,xt))},wt=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{O=O||Lo,F=F||Lo;const at=O.length,$t=F.length,Mt=Math.min(at,$t);let Pt;for(Pt=0;Pt<Mt;Pt++){const zt=F[Pt]=xt?ri(F[Pt]):Un(F[Pt]);A(O[Pt],zt,Y,null,ot,pt,lt,gt,xt)}at>$t?tt(O,ot,pt,!0,!1,Mt):Z(F,Y,nt,ot,pt,lt,gt,xt,Mt)},Et=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{let at=0;const $t=F.length;let Mt=O.length-1,Pt=$t-1;for(;at<=Mt&&at<=Pt;){const zt=O[at],jt=F[at]=xt?ri(F[at]):Un(F[at]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;at++}for(;at<=Mt&&at<=Pt;){const zt=O[Mt],jt=F[Pt]=xt?ri(F[Pt]):Un(F[Pt]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;Mt--,Pt--}if(at>Mt){if(at<=Pt){const zt=Pt+1,jt=zt<$t?F[zt].el:nt;for(;at<=Pt;)A(null,F[at]=xt?ri(F[at]):Un(F[at]),Y,jt,ot,pt,lt,gt,xt),at++}}else if(at>Pt)for(;at<=Mt;)Bt(O[at],ot,pt,!0),at++;else{const zt=at,jt=at,te=new Map;for(at=jt;at<=Pt;at++){const be=F[at]=xt?ri(F[at]):Un(F[at]);be.key!=null&&te.set(be.key,at)}let Qt,se=0;const Yt=Pt-jt+1;let mn=!1,Ln=0;const qe=new Array(Yt);for(at=0;at<Yt;at++)qe[at]=0;for(at=zt;at<=Mt;at++){const be=O[at];if(se>=Yt){Bt(be,ot,pt,!0);continue}let nn;if(be.key!=null)nn=te.get(be.key);else for(Qt=jt;Qt<=Pt;Qt++)if(qe[Qt-jt]===0&&ar(be,F[Qt])){nn=Qt;break}nn===void 0?Bt(be,ot,pt,!0):(qe[nn-jt]=at+1,nn>=Ln?Ln=nn:mn=!0,A(be,F[nn],Y,null,ot,pt,lt,gt,xt),se++)}const Qi=mn?n_(qe):Lo;for(Qt=Qi.length-1,at=Yt-1;at>=0;at--){const be=jt+at,nn=F[be],bt=be+1<$t?F[be+1].el:nt;qe[at]===0?A(null,nn,Y,bt,ot,pt,lt,gt,xt):mn&&(Qt<0||at!==Qi[Qt]?qt(nn,Y,bt,2):Qt--)}}},qt=(O,F,Y,nt,ot=null)=>{const{el:pt,type:lt,transition:gt,children:xt,shapeFlag:at}=O;if(at&6){qt(O.component.subTree,F,Y,nt);return}if(at&128){O.suspense.move(F,Y,nt);return}if(at&64){lt.move(O,F,Y,Ct);return}if(lt===ue){o(pt,F,Y);for(let Mt=0;Mt<xt.length;Mt++)qt(xt[Mt],F,Y,nt);o(O.anchor,F,Y);return}if(lt===xu){R(O,F,Y);return}if(nt!==2&&at&1&>)if(nt===0)gt.beforeEnter(pt),o(pt,F,Y),xn(()=>gt.enter(pt),ot);else{const{leave:Mt,delayLeave:Pt,afterLeave:zt}=gt,jt=()=>o(pt,F,Y),te=()=>{Mt(pt,()=>{jt(),zt&&zt()})};Pt?Pt(pt,jt,te):te()}else o(pt,F,Y)},Bt=(O,F,Y,nt=!1,ot=!1)=>{const{type:pt,props:lt,ref:gt,children:xt,dynamicChildren:at,shapeFlag:$t,patchFlag:Mt,dirs:Pt}=O;if(gt!=null&&Ku(gt,null,Y,O,!0),$t&256){F.ctx.deactivate(O);return}const zt=$t&1&&Pt,jt=!Fs(O);let te;if(jt&&(te=lt&<.onVnodeBeforeUnmount)&&ir(te,F,O),$t&6)Q(O.component,Y,nt);else{if($t&128){O.suspense.unmount(Y,nt);return}zt&&Mi(O,null,F,"beforeUnmount"),$t&64?O.type.remove(O,F,Y,ot,Ct,nt):at&&(pt!==ue||Mt>0&&Mt&64)?tt(at,F,Y,!1,!0):(pt===ue&&Mt&384||!ot&&$t&16)&&tt(xt,F,Y),nt&&Gt(O)}(jt&&(te=lt&<.onVnodeUnmounted)||zt)&&xn(()=>{te&&ir(te,F,O),zt&&Mi(O,null,F,"unmounted")},Y)},Gt=O=>{const{type:F,el:Y,anchor:nt,transition:ot}=O;if(F===ue){ne(Y,nt);return}if(F===xu){P(O);return}const pt=()=>{a(Y),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if(O.shapeFlag&1&&ot&&!ot.persisted){const{leave:lt,delayLeave:gt}=ot,xt=()=>lt(Y,pt);gt?gt(O.el,pt,xt):xt()}else pt()},ne=(O,F)=>{let Y;for(;O!==F;)Y=x(O),a(O),O=Y;a(F)},Q=(O,F,Y)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:gt}=O;nt&&ga(nt),ot.stop(),pt&&(pt.active=!1,Bt(lt,O,F,Y)),gt&&xn(gt,F),xn(()=>{O.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},tt=(O,F,Y,nt=!1,ot=!1,pt=0)=>{for(let lt=pt;lt<O.length;lt++)Bt(O[lt],F,Y,nt,ot)},V=O=>O.shapeFlag&6?V(O.component.subTree):O.shapeFlag&128?O.suspense.next():x(O.anchor||O.el),st=(O,F,Y)=>{O==null?F._vnode&&Bt(F._vnode,null,null,!0):A(F._vnode||null,O,F,null,null,null,Y),Rp(),Sm(),F._vnode=O},Ct={p:A,um:Bt,m:qt,r:Gt,mt:z,mc:Z,pc:et,pbc:vt,n:V,o:t};let de,Lt;return e&&([de,Lt]=e(Ct)),{render:st,hydrate:de,createApp:Q1(st,de)}}function Oi({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Um(t,e,r=!1){const o=t.children,a=e.children;if(Ht(o)&&Ht(a))for(let u=0;u<o.length;u++){const f=o[u];let h=a[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=a[u]=ri(a[u]),h.el=f.el),r||Um(f,h))}}function n_(t){const e=t.slice(),r=[0];let o,a,u,f,h;const d=t.length;for(o=0;o<d;o++){const g=t[o];if(g!==0){if(a=r[r.length-1],t[a]<g){e[o]=a,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(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 r_=t=>t.__isTeleport,ue=Symbol(void 0),Jf=Symbol(void 0),Cn=Symbol(void 0),xu=Symbol(void 0),qs=[];let zn=null;function dt(t=!1){qs.push(zn=t?null:[])}function jm(){qs.pop(),zn=qs[qs.length-1]||null}let zo=1;function Kp(t){zo+=t}function Gm(t){return t.dynamicChildren=zo>0?zn||Lo:null,jm(),zo>0&&zn&&zn.push(t),t}function At(t,e,r,o,a,u){return Gm(ht(t,e,r,o,a,u,!0))}function ce(t,e,r,o,a){return Gm(Rt(t,e,r,o,a,!0))}function Js(t){return t?t.__v_isVNode===!0:!1}function ar(t,e){return t.type===e.type&&t.key===e.key}const lc="__vInternal",Vm=({key:t})=>t??null,ma=({ref:t,ref_key:e,ref_for:r})=>t!=null?Ue(t)||Ie(t)||Wt(t)?{i:en,r:t,k:e,f:!!r}:t:null;function ht(t,e=null,r=null,o=0,a=null,u=t===ue?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Vm(e),ref:e&&ma(e),scopeId:ic,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null};return h?(Zf(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=Ue(r)?8:16),zo>0&&!f&&zn&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&zn.push(d),d}const Rt=i_;function i_(t,e=null,r=null,o=0,a=null,u=!1){if((!t||t===q1)&&(t=Cn),Js(t)){const h=pi(t,e,!0);return r&&Zf(h,r),zo>0&&!u&&zn&&(h.shapeFlag&6?zn[zn.indexOf(t)]=h:zn.push(h)),h.patchFlag|=-2,h}if(d_(t)&&(t=t.__vccOpts),e){e=o_(e);let{class:h,style:d}=e;h&&!Ue(h)&&(e.class=ge(h)),xe(d)&&(pm(d)&&!Ht(d)&&(d=Xe({},d)),e.style=kn(d))}const f=Ue(t)?1:y1(t)?128:r_(t)?64:xe(t)?4:Wt(t)?2:0;return ht(t,e,r,o,a,f,u,!0)}function o_(t){return t?pm(t)||lc in t?Xe({},t):t:null}function pi(t,e,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=e?hi(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Vm(h),ref:e&&e.ref?r&&a?Ht(a)?a.concat(ma(e)):[a,ma(e)]:ma(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ue?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pi(t.ssContent),ssFallback:t.ssFallback&&pi(t.ssFallback),el:t.el,anchor:t.anchor}}function fn(t=" ",e=0){return Rt(Jf,null,t,e)}function ve(t="",e=!1){return e?(dt(),ce(Cn,null,t)):Rt(Cn,null,t)}function Un(t){return t==null||typeof t=="boolean"?Rt(Cn):Ht(t)?Rt(ue,null,t.slice()):typeof t=="object"?ri(t):Rt(Jf,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function Zf(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(Ht(e))r=16;else if(typeof e=="object")if(o&65){const a=e.default;a&&(a._c&&(a._d=!1),Zf(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=e._;!a&&!(lc in e)?e._ctx=en:a===3&&en&&(en.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Wt(e)?(e={default:e,_ctx:en},r=32):(e=String(e),o&64?(r=16,e=[fn(e)]):r=8);t.children=e,t.shapeFlag|=r}function hi(...t){const e={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")e.class!==o.class&&(e.class=ge([e.class,o.class]));else if(a==="style")e.style=kn([e.style,o.style]);else if(Za(a)){const u=e[a],f=o[a];f&&u!==f&&!(Ht(u)&&u.includes(f))&&(e[a]=u?[].concat(u,f):f)}else a!==""&&(e[a]=o[a])}return e}function ir(t,e,r,o=null){In(t,e,7,[r,o])}const s_=Wm();let l_=0;function a_(t,e,r){const o=t.type,a=(e?e.appContext:t.appContext)||s_,u={uid:l_++,vnode:t,type:o,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Tx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fm(o,a),emitsOptions:Cm(o,a),emit:null,emitted:null,propsDefaults:ye,inheritAttrs:o.inheritAttrs,ctx:ye,data:ye,props:ye,attrs:ye,slots:ye,refs:ye,setupState:ye,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=e?e.root:u,u.emit=h1.bind(null,u),t.ce&&t.ce(u),u}let Be=null;const ac=()=>Be||en,Io=t=>{Be=t,t.scope.on()},Ui=()=>{Be&&Be.scope.off(),Be=null};function Km(t){return t.vnode.shapeFlag&4}let Zs=!1;function c_(t,e=!1){Zs=e;const{props:r,children:o}=t.vnode,a=Km(t);V1(t,r,a,e),Y1(t,o);const u=a?u_(t,e):void 0;return Zs=!1,u}function u_(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Ff(new Proxy(t.ctx,H1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Ym(t):null;Io(t),Ko();const u=ui(o,t,0,[t.props,a]);if(Xo(),Ui(),tm(u)){if(u.then(Ui,Ui),e)return u.then(f=>{Xu(t,f,e)}).catch(f=>{ul(f,t,0)});t.asyncDep=u}else Xu(t,u,e)}else Xm(t,e)}function Xu(t,e,r){Wt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:xe(e)&&(t.setupState=ym(e)),Xm(t,r)}let Xp;function Xm(t,e,r){const o=t.type;if(!t.render){if(!e&&Xp&&!o.render){const a=o.template||Xf(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Xe(Xe({isCustomElement:u,delimiters:h},f),d);o.render=Xp(a,g)}}t.render=o.render||Vn}Io(t),Ko(),B1(t),Xo(),Ui()}function f_(t){return new Proxy(t.attrs,{get(e,r){return On(t,"get","$attrs"),e[r]}})}function Ym(t){const e=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=f_(t))},slots:t.slots,emit:t.emit,expose:e}}function cc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ym(Ff(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Ma)return Ma[r](t)}}))}function h_(t,e=!0){return Wt(t)?t.displayName||t.name:t.name||e&&t.__name}function d_(t){return Wt(t)&&"__vccOpts"in t}const St=(t,e)=>l1(t,e,Zs);function p_(){return g_().attrs}function g_(){const t=ac();return t.setupContext||(t.setupContext=Ym(t))}function dl(t,e,r){const o=arguments.length;return o===2?xe(e)&&!Ht(e)?Js(e)?Rt(t,null,[e]):Rt(t,e):Rt(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Js(r)&&(r=[r]),Rt(t,e,r))}const v_="3.2.41",m_="http://www.w3.org/2000/svg",Ii=typeof document<"u"?document:null,Yp=Ii&&Ii.createElement("template"),y_={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 a=e?Ii.createElementNS(m_,t):Ii.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>Ii.createTextNode(t),createComment:t=>Ii.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ii.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,a,u){const f=r?r.previousSibling:e.lastChild;if(a&&(a===u||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{Yp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Yp.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 b_(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 w_(t,e,r){const o=t.style,a=Ue(r);if(r&&!a){for(const u in r)Yu(o,u,r[u]);if(e&&!Ue(e))for(const u in e)r[u]==null&&Yu(o,u,"")}else{const u=o.display;a?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Jp=/\s*!important$/;function Yu(t,e,r){if(Ht(r))r.forEach(o=>Yu(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=x_(t,e);Jp.test(r)?t.setProperty(Ji(o),r.replace(Jp,""),"important"):t[o]=r}}const Zp=["Webkit","Moz","ms"],_u={};function x_(t,e){const r=_u[e];if(r)return r;let o=fr(e);if(o!=="filter"&&o in t)return _u[e]=o;o=ec(o);for(let a=0;a<Zp.length;a++){const u=Zp[a]+o;if(u in t)return _u[e]=u}return e}const Qp="http://www.w3.org/1999/xlink";function __(t,e,r,o,a){if(o&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(Qp,e.slice(6,e.length)):t.setAttributeNS(Qp,e,r);else{const u=gx(e);r==null||u&&!Jv(r)?t.removeAttribute(e):t.setAttribute(e,u?"":r)}}function S_(t,e,r,o,a,u,f){if(e==="innerHTML"||e==="textContent"){o&&f(o,a,u),t[e]=r??"";return}if(e==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=r;const d=r??"";(t.value!==d||t.tagName==="OPTION")&&(t.value=d),r==null&&t.removeAttribute(e);return}let h=!1;if(r===""||r==null){const d=typeof t[e];d==="boolean"?r=Jv(r):r==null&&d==="string"?(r="",h=!0):d==="number"&&(r=0,h=!0)}try{t[e]=r}catch{}h&&t.removeAttribute(e)}function Co(t,e,r,o){t.addEventListener(e,r,o)}function k_(t,e,r,o){t.removeEventListener(e,r,o)}function C_(t,e,r,o,a=null){const u=t._vei||(t._vei={}),f=u[e];if(o&&f)f.value=o;else{const[h,d]=T_(e);if(o){const g=u[e]=A_(o,a);Co(t,h,g,d)}else f&&(k_(t,h,f,d),u[e]=void 0)}}const tg=/(?:Once|Passive|Capture)$/;function T_(t){let e;if(tg.test(t)){e={};let o;for(;o=t.match(tg);)t=t.slice(0,t.length-o[0].length),e[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ji(t.slice(2)),e]}let Su=0;const L_=Promise.resolve(),E_=()=>Su||(L_.then(()=>Su=0),Su=Date.now());function A_(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;In(N_(o,r.value),e,5,[o])};return r.value=t,r.attached=E_(),r}function N_(t,e){if(Ht(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>a=>!a._stopped&&o&&o(a))}else return e}const eg=/^on[a-z]/,M_=(t,e,r,o,a=!1,u,f,h,d)=>{e==="class"?b_(t,o,a):e==="style"?w_(t,r,o):Za(e)?Af(e)||C_(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):O_(t,e,o,a))?S_(t,e,o,u,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),__(t,e,o,a))};function O_(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&eg.test(e)&&Wt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||eg.test(e)&&Ue(r)?!1:e in t}const ti="transition",Ms="animation",Qf=(t,{slots:e})=>dl(Am,P_(t),e);Qf.displayName="Transition";const Jm={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};Qf.props=Xe({},Am.props,Jm);const Pi=(t,e=[])=>{Ht(t)?t.forEach(r=>r(...e)):t&&t(...e)},ng=t=>t?Ht(t)?t.some(e=>e.length>1):t.length>1:!1;function P_(t){const e={};for(const ut in t)ut in Jm||(e[ut]=t[ut]);if(t.css===!1)return e;const{name:r="v",type:o,duration:a,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=$_(a),A=N&&N[0],L=N&&N[1],{onBeforeEnter:k,onEnter:E,onEnterCancelled:R,onLeave:P,onLeaveCancelled:G,onBeforeAppear:j=k,onAppear:rt=E,onAppearCancelled:Z=R}=e,ct=(ut,U,z)=>{$i(ut,U?v:h),$i(ut,U?g:f),z&&z()},vt=(ut,U)=>{ut._isLeaving=!1,$i(ut,b),$i(ut,S),$i(ut,x),U&&U()},kt=ut=>(U,z)=>{const C=ut?rt:E,H=()=>ct(U,ut,z);Pi(C,[U,H]),rg(()=>{$i(U,ut?d:u),ei(U,ut?v:h),ng(C)||ig(U,o,A,H)})};return Xe(e,{onBeforeEnter(ut){Pi(k,[ut]),ei(ut,u),ei(ut,f)},onBeforeAppear(ut){Pi(j,[ut]),ei(ut,d),ei(ut,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(ut,U){ut._isLeaving=!0;const z=()=>vt(ut,U);ei(ut,b),z_(),ei(ut,x),rg(()=>{!ut._isLeaving||($i(ut,b),ei(ut,S),ng(P)||ig(ut,o,L,z))}),Pi(P,[ut,z])},onEnterCancelled(ut){ct(ut,!1),Pi(R,[ut])},onAppearCancelled(ut){ct(ut,!0),Pi(Z,[ut])},onLeaveCancelled(ut){vt(ut),Pi(G,[ut])}})}function $_(t){if(t==null)return null;if(xe(t))return[ku(t.enter),ku(t.leave)];{const e=ku(t);return[e,e]}}function ku(t){return Gs(t)}function ei(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function $i(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 rg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let D_=0;function ig(t,e,r,o){const a=t._endId=++D_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=R_(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 R_(t,e){const r=window.getComputedStyle(t),o=N=>(r[N]||"").split(", "),a=o(ti+"Delay"),u=o(ti+"Duration"),f=og(a,u),h=o(Ms+"Delay"),d=o(Ms+"Duration"),g=og(h,d);let v=null,b=0,x=0;e===ti?f>0&&(v=ti,b=f,x=u.length):e===Ms?g>0&&(v=Ms,b=g,x=d.length):(b=Math.max(f,g),v=b>0?f>g?ti:Ms:null,x=v?v===ti?u.length:d.length:0);const S=v===ti&&/\b(transform|all)(,|$)/.test(r[ti+"Property"]);return{type:v,timeout:b,propCount:x,hasTransform:S}}function og(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,o)=>sg(r)+sg(t[o])))}function sg(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function z_(){return document.body.offsetHeight}const lg=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ht(e)?r=>ga(e,r):e};function I_(t){t.target.composing=!0}function ag(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const F_={created(t,{modifiers:{lazy:e,trim:r,number:o}},a){t._assign=lg(a);const u=o||a.props&&a.props.type==="number";Co(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=Gs(h)),t._assign(h)}),r&&Co(t,"change",()=>{t.value=t.value.trim()}),e||(Co(t,"compositionstart",I_),Co(t,"compositionend",ag),Co(t,"change",ag))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=lg(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===e||(a||t.type==="number")&&Gs(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},q_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ju=(t,e)=>r=>{if(!("key"in r))return;const o=Ji(r.key);if(e.some(a=>a===o||q_[a]===o))return t(r)},Zm={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Os(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),Os(t,!0),o.enter(t)):o.leave(t,()=>{Os(t,!1)}):Os(t,e))},beforeUnmount(t,{value:e}){Os(t,e)}};function Os(t,e){t.style.display=e?t._vod:"none"}const H_=Xe({patchProp:M_},y_);let cg;function B_(){return cg||(cg=t_(H_))}const Qm=(...t)=>{const e=B_().createApp(...t),{mount:r}=e;return e.mount=o=>{const a=W_(o);if(!a)return;const u=e._component;!Wt(u)&&!u.render&&!u.template&&(u.template=a.innerHTML),a.innerHTML="";const f=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),f},e};function W_(t){return Ue(t)?document.querySelector(t):t}const Yo=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},U_={};function j_(t,e){const r=Vi("RouterView");return dt(),ce(r)}const G_=Yo(U_,[["render",j_]]);const To=typeof window<"u";function V_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const he=Object.assign;function Cu(t,e){const r={};for(const o in e){const a=e[o];r[o]=Xn(a)?a.map(t):t(a)}return r}const Hs=()=>{},Xn=Array.isArray,K_=/\/$/,X_=t=>t.replace(K_,"");function Tu(t,e,r="/"){let o,a={},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),a=t(u)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=Q_(o??e,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function Y_(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function ug(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function J_(t,e,r){const o=e.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&Fo(e.matched[o],r.matched[a])&&t0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Fo(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function t0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!Z_(t[r],e[r]))return!1;return!0}function Z_(t,e){return Xn(t)?fg(t,e):Xn(e)?fg(e,t):t===e}function fg(t,e){return Xn(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function Q_(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/");let a=r.length-1,u,f;for(u=0;u<o.length;u++)if(f=o[u],f!==".")if(f==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+o.slice(u-(u===o.length?1:0)).join("/")}var Qs;(function(t){t.pop="pop",t.push="push"})(Qs||(Qs={}));var Bs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Bs||(Bs={}));function tS(t){if(!t)if(To){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),X_(t)}const eS=/^[^#]+#/;function nS(t,e){return t.replace(eS,"#")+e}function rS(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 uc=()=>({left:window.pageXOffset,top:window.pageYOffset});function iS(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;e=rS(a,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 hg(t,e){return(history.state?history.state.position-e:-1)+t}const Zu=new Map;function oS(t,e){Zu.set(t,e)}function sS(t){const e=Zu.get(t);return Zu.delete(t),e}let lS=()=>location.protocol+"//"+location.host;function e0(t,e){const{pathname:r,search:o,hash:a}=e,u=t.indexOf("#");if(u>-1){let h=a.includes(t.slice(u))?t.slice(u).length:1,d=a.slice(h);return d[0]!=="/"&&(d="/"+d),ug(d,"")}return ug(r,t)+o+a}function aS(t,e,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=e0(t,location),N=r.value,A=e.value;let L=0;if(x){if(r.value=S,e.value=x,f&&f===N){f=null;return}L=A?x.position-A.position:0}else o(S);a.forEach(k=>{k(r.value,N,{delta:L,type:Qs.pop,direction:L?L>0?Bs.forward:Bs.back:Bs.unknown})})};function d(){f=r.value}function g(x){a.push(x);const S=()=>{const N=a.indexOf(x);N>-1&&a.splice(N,1)};return u.push(S),S}function v(){const{history:x}=window;!x.state||x.replaceState(he({},x.state,{scroll:uc()}),"")}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),{pauseListeners:d,listen:g,destroy:b}}function dg(t,e,r,o=!1,a=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:a?uc():null}}function cS(t){const{history:e,location:r}=window,o={value:e0(t,r)},a={value:e.state};a.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:lS()+t+d;try{e[v?"replaceState":"pushState"](g,"",x),a.value=g}catch(S){console.error(S),r[v?"replace":"assign"](x)}}function f(d,g){const v=he({},e.state,dg(a.value.back,d,a.value.forward,!0),g,{position:a.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=he({},a.value,e.state,{forward:d,scroll:uc()});u(v.current,v,!0);const b=he({},dg(o.value,d,null),{position:v.position+1},g);u(d,b,!1),o.value=d}return{location:o,state:a,push:h,replace:f}}function uS(t){t=tS(t);const e=cS(t),r=aS(t,e.state,e.location,e.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=he({location:"",base:t,go:o,createHref:nS.bind(null,t)},e,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function fS(t){return typeof t=="string"||t&&typeof t=="object"}function n0(t){return typeof t=="string"||typeof t=="symbol"}const ni={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},r0=Symbol("");var pg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(pg||(pg={}));function qo(t,e){return he(new Error,{type:t,[r0]:!0},e)}function Tr(t,e){return t instanceof Error&&r0 in t&&(e==null||!!(t.type&e))}const gg="[^/]+?",hS={sensitive:!1,strict:!1,start:!0,end:!0},dS=/[.+*?^${}()[\]/\\]/g;function pS(t,e){const r=he({},hS,e),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(a+="/");for(let b=0;b<g.length;b++){const x=g[b];let S=40+(r.sensitive?.25:0);if(x.type===0)b||(a+="/"),a+=x.value.replace(dS,"\\$&"),S+=40;else if(x.type===1){const{value:N,repeatable:A,optional:L,regexp:k}=x;u.push({name:N,repeatable:A,optional:L});const E=k||gg;if(E!==gg){S+=10;try{new RegExp(`(${E})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${N}" (${E}): `+P.message)}}let R=A?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;b||(R=L&&g.length<2?`(?:/${R})`:"/"+R),L&&(R+="?"),a+=R,S+=20,L&&(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||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const f=new RegExp(a,r.sensitive?"":"i");function h(g){const v=g.match(f),b={};if(!v)return null;for(let x=1;x<v.length;x++){const S=v[x]||"",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:L}=S,k=N in g?g[N]:"";if(Xn(k)&&!A)throw new Error(`Provided param "${N}" is an array but it is not repeatable (* or + modifiers)`);const E=Xn(k)?k.join("/"):k;if(!E)if(L)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 gS(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,a=e.score;for(;r<o.length&&r<a.length;){const u=gS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(vg(o))return 1;if(vg(a))return-1}return a.length-o.length}function vg(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const mS={type:0,value:""},yS=/[a-zA-Z0-9_]/;function bS(t){if(!t)return[[]];if(t==="/")return[[mS]];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 a=[];let u;function f(){u&&a.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:yS.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(),a}function wS(t,e,r){const o=pS(bS(t.path),r),a=he(o,{record:t,parent:e,children:[],alias:[]});return e&&!a.record.aliasOf==!e.record.aliasOf&&e.children.push(a),a}function xS(t,e){const r=[],o=new Map;e=bg({strict:!1,end:!0,sensitive:!1},e);function a(v){return o.get(v)}function u(v,b,x){const S=!x,N=_S(v);N.aliasOf=x&&x.record;const A=bg(e,v),L=[N];if("alias"in v){const R=typeof v.alias=="string"?[v.alias]:v.alias;for(const P of R)L.push(he({},N,{components:x?x.record.components:N.components,path:P,aliasOf:x?x.record:N}))}let k,E;for(const R of L){const{path:P}=R;if(b&&P[0]!=="/"){const G=b.record.path,j=G[G.length-1]==="/"?"":"/";R.path=b.record.path+(P&&j+P)}if(k=wS(R,b,A),x?x.alias.push(k):(E=E||k,E!==k&&E.alias.push(k),S&&v.name&&!yg(k)&&f(v.name)),N.children){const G=N.children;for(let j=0;j<G.length;j++)u(G[j],k,x&&x.children[j])}x=x||k,(k.record.components&&Object.keys(k.record.components).length||k.record.name||k.record.redirect)&&d(k)}return E?()=>{f(E)}:Hs}function f(v){if(n0(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||!i0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!yg(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 qo(1,{location:v});A=x.record.name,S=he(mg(b.params,x.keys.filter(E=>!E.optional).map(E=>E.name)),v.params&&mg(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 qo(1,{location:v,currentLocation:b});A=x.record.name,S=he({},b.params,v.params),N=x.stringify(S)}const L=[];let k=x;for(;k;)L.unshift(k.record),k=k.parent;return{name:A,path:N,params:S,matched:L,meta:kS(L)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function mg(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function _S(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:SS(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 SS(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 yg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function kS(t){return t.reduce((e,r)=>he(e,r.meta),{})}function bg(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function i0(t,e){return e.children.some(r=>r===t||i0(t,r))}const o0=/#/g,CS=/&/g,TS=/\//g,LS=/=/g,ES=/\?/g,s0=/\+/g,AS=/%5B/g,NS=/%5D/g,l0=/%5E/g,MS=/%60/g,a0=/%7B/g,OS=/%7C/g,c0=/%7D/g,PS=/%20/g;function th(t){return encodeURI(""+t).replace(OS,"|").replace(AS,"[").replace(NS,"]")}function $S(t){return th(t).replace(a0,"{").replace(c0,"}").replace(l0,"^")}function Qu(t){return th(t).replace(s0,"%2B").replace(PS,"+").replace(o0,"%23").replace(CS,"%26").replace(MS,"`").replace(a0,"{").replace(c0,"}").replace(l0,"^")}function DS(t){return Qu(t).replace(LS,"%3D")}function RS(t){return th(t).replace(o0,"%23").replace(ES,"%3F")}function zS(t){return t==null?"":RS(t).replace(TS,"%2F")}function Pa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function IS(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<o.length;++a){const u=o[a].replace(s0," "),f=u.indexOf("="),h=Pa(f<0?u:u.slice(0,f)),d=f<0?null:Pa(u.slice(f+1));if(h in e){let g=e[h];Xn(g)||(g=e[h]=[g]),g.push(d)}else e[h]=d}return e}function wg(t){let e="";for(let r in t){const o=t[r];if(r=DS(r),o==null){o!==void 0&&(e+=(e.length?"&":"")+r);continue}(Xn(o)?o.map(u=>u&&Qu(u)):[o&&Qu(o)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function FS(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=Xn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return e}const qS=Symbol(""),xg=Symbol(""),eh=Symbol(""),u0=Symbol(""),tf=Symbol("");function Ps(){let t=[];function e(o){return t.push(o),()=>{const a=t.indexOf(o);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:e,list:()=>t,reset:r}}function ii(t,e,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const d=b=>{b===!1?h(qo(4,{from:r,to:e})):b instanceof Error?h(b):fS(b)?h(qo(2,{from:e,to:b})):(u&&o.enterCallbacks[a]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[a],e,r,d);let v=Promise.resolve(g);t.length<3&&(v=v.then(d)),v.catch(b=>h(b))})}function Lu(t,e,r,o){const a=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(e!=="beforeRouteEnter"&&!u.instances[f]))if(HS(h)){const g=(h.__vccOpts||h)[e];g&&a.push(ii(g,r,o,u,f))}else{let d=h();a.push(()=>d.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=V_(g)?g.default:g;u.components[f]=v;const x=(v.__vccOpts||v)[e];return x&&ii(x,r,o,u,f)()}))}}return a}function HS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function _g(t){const e=fi(eh),r=fi(u0),o=St(()=>e.resolve(J(t.to))),a=St(()=>{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(Fo.bind(null,v));if(x>-1)return x;const S=Sg(d[g-2]);return g>1&&Sg(v)===S&&b[b.length-1].path!==S?b.findIndex(Fo.bind(null,d[g-2])):x}),u=St(()=>a.value>-1&&jS(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&t0(r.params,o.value.params));function h(d={}){return US(d)?e[J(t.replace)?"replace":"push"](J(t.to)).catch(Hs):Promise.resolve()}return{route:o,href:St(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const BS=oe({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:_g,setup(t,{slots:e}){const r=hr(_g(t)),{options:o}=fi(eh),a=St(()=>({[kg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[kg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=e.default&&e.default(r);return t.custom?u:dl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),WS=BS;function US(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 jS(t,e){for(const r in e){const o=e[r],a=t[r];if(typeof o=="string"){if(o!==a)return!1}else if(!Xn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function Sg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const kg=(t,e,r)=>t??e??r,GS=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=fi(tf),a=St(()=>t.route||o.value),u=fi(xg,0),f=St(()=>{let g=J(u);const{matched:v}=a.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=St(()=>a.value.matched[f.value]);va(xg,St(()=>f.value+1)),va(qS,h),va(tf,a);const d=Kt();return Fe(()=>[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||!Fo(v,S)||!x)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,v=t.name,b=h.value,x=b&&b.components[v];if(!x)return Cg(r.default,{Component:x,route:g});const S=b.props[v],N=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=dl(x,he({},N,e,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(b.instances[v]=null)},ref:d}));return Cg(r.default,{Component:L,route:g})||L}}});function Cg(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const VS=GS;function KS(t){const e=xS(t.routes,t),r=t.parseQuery||IS,o=t.stringifyQuery||wg,a=t.history,u=Ps(),f=Ps(),h=Ps(),d=cl(ni);let g=ni;To&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Cu.bind(null,Q=>""+Q),b=Cu.bind(null,zS),x=Cu.bind(null,Pa);function S(Q,tt){let V,st;return n0(Q)?(V=e.getRecordMatcher(Q),st=tt):st=Q,e.addRoute(st,V)}function N(Q){const tt=e.getRecordMatcher(Q);tt&&e.removeRoute(tt)}function A(){return e.getRoutes().map(Q=>Q.record)}function L(Q){return!!e.getRecordMatcher(Q)}function k(Q,tt){if(tt=he({},tt||d.value),typeof Q=="string"){const O=Tu(r,Q,tt.path),F=e.resolve({path:O.path},tt),Y=a.createHref(O.fullPath);return he(O,F,{params:x(F.params),hash:Pa(O.hash),redirectedFrom:void 0,href:Y})}let V;if("path"in Q)V=he({},Q,{path:Tu(r,Q.path,tt.path).path});else{const O=he({},Q.params);for(const F in O)O[F]==null&&delete O[F];V=he({},Q,{params:b(Q.params)}),tt.params=b(tt.params)}const st=e.resolve(V,tt),Ct=Q.hash||"";st.params=v(x(st.params));const de=Y_(o,he({},Q,{hash:$S(Ct),path:st.path})),Lt=a.createHref(de);return he({fullPath:de,hash:Ct,query:o===wg?FS(Q.query):Q.query||{}},st,{redirectedFrom:void 0,href:Lt})}function E(Q){return typeof Q=="string"?Tu(r,Q,d.value.path):he({},Q)}function R(Q,tt){if(g!==Q)return qo(8,{from:tt,to:Q})}function P(Q){return rt(Q)}function G(Q){return P(he(E(Q),{replace:!0}))}function j(Q){const tt=Q.matched[Q.matched.length-1];if(tt&&tt.redirect){const{redirect:V}=tt;let st=typeof V=="function"?V(Q):V;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=E(st):{path:st},st.params={}),he({query:Q.query,hash:Q.hash,params:"path"in st?{}:Q.params},st)}}function rt(Q,tt){const V=g=k(Q),st=d.value,Ct=Q.state,de=Q.force,Lt=Q.replace===!0,O=j(V);if(O)return rt(he(E(O),{state:typeof O=="object"?he({},Ct,O.state):Ct,force:de,replace:Lt}),tt||V);const F=V;F.redirectedFrom=tt;let Y;return!de&&J_(o,st,V)&&(Y=qo(16,{to:F,from:st}),Et(st,st,!0,!1)),(Y?Promise.resolve(Y):ct(F,st)).catch(nt=>Tr(nt)?Tr(nt,2)?nt:wt(nt):W(nt,F,st)).then(nt=>{if(nt){if(Tr(nt,2))return rt(he({replace:Lt},E(nt.to),{state:typeof nt.to=="object"?he({},Ct,nt.to.state):Ct,force:de}),tt||F)}else nt=kt(F,st,!0,Lt,Ct);return vt(F,st,nt),nt})}function Z(Q,tt){const V=R(Q,tt);return V?Promise.reject(V):Promise.resolve()}function ct(Q,tt){let V;const[st,Ct,de]=XS(Q,tt);V=Lu(st.reverse(),"beforeRouteLeave",Q,tt);for(const O of st)O.leaveGuards.forEach(F=>{V.push(ii(F,Q,tt))});const Lt=Z.bind(null,Q,tt);return V.push(Lt),So(V).then(()=>{V=[];for(const O of u.list())V.push(ii(O,Q,tt));return V.push(Lt),So(V)}).then(()=>{V=Lu(Ct,"beforeRouteUpdate",Q,tt);for(const O of Ct)O.updateGuards.forEach(F=>{V.push(ii(F,Q,tt))});return V.push(Lt),So(V)}).then(()=>{V=[];for(const O of Q.matched)if(O.beforeEnter&&!tt.matched.includes(O))if(Xn(O.beforeEnter))for(const F of O.beforeEnter)V.push(ii(F,Q,tt));else V.push(ii(O.beforeEnter,Q,tt));return V.push(Lt),So(V)}).then(()=>(Q.matched.forEach(O=>O.enterCallbacks={}),V=Lu(de,"beforeRouteEnter",Q,tt),V.push(Lt),So(V))).then(()=>{V=[];for(const O of f.list())V.push(ii(O,Q,tt));return V.push(Lt),So(V)}).catch(O=>Tr(O,8)?O:Promise.reject(O))}function vt(Q,tt,V){for(const st of h.list())st(Q,tt,V)}function kt(Q,tt,V,st,Ct){const de=R(Q,tt);if(de)return de;const Lt=tt===ni,O=To?history.state:{};V&&(st||Lt?a.replace(Q.fullPath,he({scroll:Lt&&O&&O.scroll},Ct)):a.push(Q.fullPath,Ct)),d.value=Q,Et(Q,tt,V,Lt),wt()}let ut;function U(){ut||(ut=a.listen((Q,tt,V)=>{if(!ne.listening)return;const st=k(Q),Ct=j(st);if(Ct){rt(he(Ct,{replace:!0}),st).catch(Hs);return}g=st;const de=d.value;To&&oS(hg(de.fullPath,V.delta),uc()),ct(st,de).catch(Lt=>Tr(Lt,12)?Lt:Tr(Lt,2)?(rt(Lt.to,st).then(O=>{Tr(O,20)&&!V.delta&&V.type===Qs.pop&&a.go(-1,!1)}).catch(Hs),Promise.reject()):(V.delta&&a.go(-V.delta,!1),W(Lt,st,de))).then(Lt=>{Lt=Lt||kt(st,de,!1),Lt&&(V.delta&&!Tr(Lt,8)?a.go(-V.delta,!1):V.type===Qs.pop&&Tr(Lt,20)&&a.go(-1,!1)),vt(st,de,Lt)}).catch(Hs)}))}let z=Ps(),C=Ps(),H;function W(Q,tt,V){wt(Q);const st=C.list();return st.length?st.forEach(Ct=>Ct(Q,tt,V)):console.error(Q),Promise.reject(Q)}function et(){return H&&d.value!==ni?Promise.resolve():new Promise((Q,tt)=>{z.add([Q,tt])})}function wt(Q){return H||(H=!Q,U(),z.list().forEach(([tt,V])=>Q?V(Q):tt()),z.reset()),Q}function Et(Q,tt,V,st){const{scrollBehavior:Ct}=t;if(!To||!Ct)return Promise.resolve();const de=!V&&sS(hg(Q.fullPath,0))||(st||!V)&&history.state&&history.state.scroll||null;return fl().then(()=>Ct(Q,tt,de)).then(Lt=>Lt&&iS(Lt)).catch(Lt=>W(Lt,Q,tt))}const qt=Q=>a.go(Q);let Bt;const Gt=new Set,ne={currentRoute:d,listening:!0,addRoute:S,removeRoute:N,hasRoute:L,getRoutes:A,resolve:k,options:t,push:P,replace:G,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:C.add,isReady:et,install(Q){const tt=this;Q.component("RouterLink",WS),Q.component("RouterView",VS),Q.config.globalProperties.$router=tt,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>J(d)}),To&&!Bt&&d.value===ni&&(Bt=!0,P(a.location).catch(Ct=>{}));const V={};for(const Ct in ni)V[Ct]=St(()=>d.value[Ct]);Q.provide(eh,tt),Q.provide(u0,hr(V)),Q.provide(tf,d);const st=Q.unmount;Gt.add(Q),Q.unmount=function(){Gt.delete(Q),Gt.size<1&&(g=ni,ut&&ut(),ut=null,d.value=ni,Bt=!1,H=!1),st()}}};return ne}function So(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function XS(t,e){const r=[],o=[],a=[],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=>Fo(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>Fo(g,d))||a.push(d))}return[r,o,a]}function Fr(t){return t.split("-")[0]}function Oo(t){return t.split("-")[1]}function pl(t){return["top","bottom"].includes(Fr(t))?"x":"y"}function nh(t){return t==="y"?"height":"width"}function Tg(t){let{reference:e,floating:r,placement:o}=t;const a=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2;let f;switch(Fr(o)){case"top":f={x:a,y:e.y-r.height};break;case"bottom":f={x:a,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=pl(o),d=nh(h);switch(Oo(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 YS=async(t,e,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:g}=Tg({...h,placement:o}),v=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:N}=u[x],{x:A,y:L,data:k,reset:E}=await N({x:d,y:g,initialPlacement:o,placement:v,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:e}});if(d=A??d,g=L??g,b={...b,[S]:k??{}},E){typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(h=E.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:a}):E.rects),{x:d,y:g}=Tg({...h,placement:v})),x=-1;continue}}return{x:d,y:g,placement:v,strategy:a,middlewareData:b}};function JS(t){return{top:0,right:0,bottom:0,left:0,...t}}function f0(t){return typeof t!="number"?JS(t):{top:t,right:t,bottom:t,left:t}}function ef(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function fc(t,e){e===void 0&&(e={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:d="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:x=0}=e,S=f0(x),A=f[b?v==="floating"?"reference":"floating":v],L=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:d,rootBoundary:g}),k=ef(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:L.top-k.top+S.top,bottom:k.bottom-L.bottom+S.bottom,left:L.left-k.left+S.left,right:k.right-L.right+S.right}}const ZS=Math.min,Ri=Math.max;function nf(t,e,r){return Ri(t,ZS(e,r))}const QS=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t??{},{x:a,y:u,placement:f,rects:h,platform:d}=e;if(r==null)return{};const g=f0(o),v={x:a,y:u},b=Fr(f),x=pl(b),S=nh(x),N=await d.getDimensions({element:r}),A=x==="y"?"top":"left",L=x==="y"?"bottom":"right",k=h.reference[S]+h.reference[x]-v[x]-h.floating[S],E=v[x]-h.reference[x],R=await d.getOffsetParent({element:r}),P=R?x==="y"?R.clientHeight||0:R.clientWidth||0:0,G=k/2-E/2,j=g[A],rt=P-N[S]-g[L],Z=P/2-N[S]/2+G,ct=nf(j,Z,rt);return{data:{[x]:ct,centerOffset:Z-ct}}}}),tk={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(t){return t.replace(/left|right|bottom|top/g,e=>tk[e])}function h0(t,e){const r=Oo(t)==="start",o=pl(t),a=nh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return e.reference[a]>e.floating[a]&&(u=$a(u)),{main:u,cross:$a(u)}}const ek={start:"end",end:"start"};function rf(t){return t.replace(/start|end/g,e=>ek[e])}const nk=["top","right","bottom","left"],rk=nk.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function ik(t,e,r){return(t?[...r.filter(a=>Oo(a)===t),...r.filter(a=>Oo(a)!==t)]:r.filter(a=>Fr(a)===a)).filter(a=>t?Oo(a)===t||(e?rf(a)!==a:!1):!0)}const ok=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,a,u,f,h;const{x:d,y:g,rects:v,middlewareData:b,placement:x}=e,{alignment:S=null,allowedPlacements:N=rk,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const k=ik(S,A,N),E=await fc(e,L),R=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,P=k[R],{main:G,cross:j}=h0(P,v);if(x!==P)return{x:d,y:g,reset:{placement:k[0]}};const rt=[E[Fr(P)],E[G],E[j]],Z=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:P,overflows:rt}],ct=k[R+1];if(ct)return{data:{index:R+1,overflows:Z},reset:{placement:ct}};const vt=Z.slice().sort((ut,U)=>ut.overflows[0]-U.overflows[0]),kt=(h=vt.find(ut=>{let{overflows:U}=ut;return U.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt??vt[0].placement}}}}};function sk(t){const e=$a(t);return[rf(t),e,rf(e)]}const lk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:a,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=Fr(a),L=v||(N===h||!x?[$a(h)]:sk(h)),k=[h,...L],E=await fc(e,S),R=[];let P=((o=u.flip)==null?void 0:o.overflows)||[];if(d&&R.push(E[N]),g){const{main:Z,cross:ct}=h0(a,f);R.push(E[Z],E[ct])}if(P=[...P,{placement:a,overflows:R}],!R.every(Z=>Z<=0)){var G,j;const Z=((G=(j=u.flip)==null?void 0:j.index)!=null?G:0)+1,ct=k[Z];if(ct)return{data:{index:Z,overflows:P},reset:{placement:ct}};let vt="bottom";switch(b){case"bestFit":{var rt;const kt=(rt=P.slice().sort((ut,U)=>ut.overflows.filter(z=>z>0).reduce((z,C)=>z+C,0)-U.overflows.filter(z=>z>0).reduce((z,C)=>z+C,0))[0])==null?void 0:rt.placement;kt&&(vt=kt);break}case"initialPlacement":vt=h;break}return{data:{skip:!0},reset:{placement:vt}}}return{}}}};function ak(t){let{placement:e,rects:r,value:o}=t;const a=Fr(e),u=["left","top"].includes(a)?-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 pl(a)==="x"?{x:d,y:h*u}:{x:h*u,y:d}}const ck=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:r,y:o,placement:a,rects:u}=e,f=ak({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function uk(t){return t==="x"?"y":"x"}const fk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:a}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:k,y:E}=L;return{x:k,y:E}}},...d}=t,g={x:r,y:o},v=await fc(e,d),b=pl(Fr(a)),x=uk(b);let S=g[b],N=g[x];if(u){const L=b==="y"?"top":"left",k=b==="y"?"bottom":"right",E=S+v[L],R=S-v[k];S=nf(E,S,R)}if(f){const L=x==="y"?"top":"left",k=x==="y"?"bottom":"right",E=N+v[L],R=N-v[k];N=nf(E,N,R)}const A=h.fn({...e,[b]:S,[x]:N});return{...A,data:{x:A.x-r,y:A.y-o}}}}},hk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r;const{placement:o,rects:a,middlewareData:u}=e,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const d=await fc(e,h),g=Fr(o),v=Oo(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=v?"left":"right"):(x=g,b=v?"top":"bottom");const S=Ri(d.left,0),N=Ri(d.right,0),A=Ri(d.top,0),L=Ri(d.bottom,0),k={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Ri(d.top,d.bottom)):d[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||N!==0?S+N:Ri(d.left,d.right)):d[x])};return f==null||f({...k,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function rh(t){return(t==null?void 0:t.toString())==="[object Window]"}function vi(t){if(t==null)return window;if(!rh(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function hc(t){return vi(t).getComputedStyle(t)}function Dr(t){return rh(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rr(t){return t instanceof vi(t).HTMLElement}function Da(t){return t instanceof vi(t).Element}function dk(t){return t instanceof vi(t).Node}function d0(t){const e=vi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function dc(t){const{overflow:e,overflowX:r,overflowY:o}=hc(t);return/auto|scroll|overlay|hidden/.test(e+o+r)}function pk(t){return["table","td","th"].includes(Dr(t))}function p0(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),r=hc(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 Lg=Math.min,Ws=Math.max,Ra=Math.round;function Ho(t,e){e===void 0&&(e=!1);const r=t.getBoundingClientRect();let o=1,a=1;return e&&Rr(t)&&(o=t.offsetWidth>0&&Ra(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ra(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/a,top:r.top/a,right:r.right/o,bottom:r.bottom/a,left:r.left/o,x:r.left/o,y:r.top/a}}function mi(t){return((dk(t)?t.ownerDocument:t.document)||window.document).documentElement}function pc(t){return rh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function g0(t){return Ho(mi(t)).left+pc(t).scrollLeft}function gk(t){const e=Ho(t);return Ra(e.width)!==t.offsetWidth||Ra(e.height)!==t.offsetHeight}function vk(t,e,r){const o=Rr(e),a=mi(e),u=Ho(t,o&&gk(e));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Dr(e)!=="body"||dc(a))&&(f=pc(e)),Rr(e)){const d=Ho(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else a&&(h.x=g0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function gc(t){return Dr(t)==="html"?t:t.assignedSlot||t.parentNode||(d0(t)?t.host:null)||mi(t)}function Eg(t){return!Rr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function mk(t){let e=gc(t);for(;Rr(e)&&!["html","body"].includes(Dr(e));){if(p0(e))return e;e=e.parentNode}return null}function of(t){const e=vi(t);let r=Eg(t);for(;r&&pk(r)&&getComputedStyle(r).position==="static";)r=Eg(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&getComputedStyle(r).position==="static"&&!p0(r))?e:r||mk(t)||e}function Ag(t){return{width:t.offsetWidth,height:t.offsetHeight}}function yk(t){let{rect:e,offsetParent:r,strategy:o}=t;const a=Rr(r),u=mi(r);if(r===u)return e;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Dr(r)!=="body"||dc(u))&&(f=pc(r)),Rr(r))){const d=Ho(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 bk(t){const e=vi(t),r=mi(t),o=e.visualViewport;let a=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(a=o.width,u=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:a,height:u,x:f,y:h}}function wk(t){var e;const r=mi(t),o=pc(t),a=(e=t.ownerDocument)==null?void 0:e.body,u=Ws(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Ws(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+g0(t);const d=-o.scrollTop;return hc(a||r).direction==="rtl"&&(h+=Ws(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:d}}function v0(t){return["html","body","#document"].includes(Dr(t))?t.ownerDocument.body:Rr(t)&&dc(t)?t:v0(gc(t))}function za(t,e){var r;e===void 0&&(e=[]);const o=v0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=vi(o),f=a?[u].concat(u.visualViewport||[],dc(o)?o:[]):o,h=e.concat(f);return a?h:h.concat(za(gc(f)))}function xk(t,e){const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&d0(r)){let o=e;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function _k(t){const e=Ho(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 Ng(t,e){return e==="viewport"?ef(bk(t)):Da(e)?_k(e):ef(wk(mi(t)))}function Sk(t){const e=za(gc(t)),o=["absolute","fixed"].includes(hc(t).position)&&Rr(t)?of(t):t;return Da(o)?e.filter(a=>Da(a)&&xk(a,o)&&Dr(a)!=="body"):[]}function kk(t){let{element:e,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?Sk(e):[].concat(r),o],f=u[0],h=u.reduce((d,g)=>{const v=Ng(e,g);return d.top=Ws(v.top,d.top),d.right=Lg(v.right,d.right),d.bottom=Lg(v.bottom,d.bottom),d.left=Ws(v.left,d.left),d},Ng(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 Ck={getElementRects:t=>{let{reference:e,floating:r,strategy:o}=t;return{reference:vk(e,of(r),o),floating:{...Ag(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>yk(t),getOffsetParent:t=>{let{element:e}=t;return of(e)},isElement:t=>Da(t),getDocumentElement:t=>{let{element:e}=t;return mi(e)},getClippingClientRect:t=>kk(t),getDimensions:t=>{let{element:e}=t;return Ag(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},Tk=(t,e,r)=>YS(t,e,{platform:Ck,...r});var Lk=Object.defineProperty,Ek=Object.defineProperties,Ak=Object.getOwnPropertyDescriptors,Mg=Object.getOwnPropertySymbols,Nk=Object.prototype.hasOwnProperty,Mk=Object.prototype.propertyIsEnumerable,Og=(t,e,r)=>e in t?Lk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mr=(t,e)=>{for(var r in e||(e={}))Nk.call(e,r)&&Og(t,r,e[r]);if(Mg)for(var r of Mg(e))Mk.call(e,r)&&Og(t,r,e[r]);return t},gl=(t,e)=>Ek(t,Ak(e));function m0(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?m0(t[r],e[r]):t[r]=e[r])}const ji={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Bo(t,e){let r=ji.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=ji.themes[r.$extend]||{}:(r=null,o=ji[e]):r=null;while(r);return o}function Ok(t){const e=[t];let r=ji.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=ji.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}let Wo=!1;if(typeof window<"u"){Wo=!1;try{const t=Object.defineProperty({},"passive",{get(){Wo=!0}});window.addEventListener("test",null,t)}catch{}}let y0=!1;typeof window<"u"&&typeof navigator<"u"&&(y0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const b0=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),Pg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},$g={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Pk(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function Eu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const cr=[];let ko=null,sf=function(){};typeof window<"u"&&(sf=window.Element);function fe(t){return function(e){return Bo(e.theme,t)}}var w0=()=>oe({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:fe("disabled")},placement:{type:String,default:fe("placement"),validator:t=>b0.includes(t)},delay:{type:[String,Number,Object],default:fe("delay")},distance:{type:[Number,String],default:fe("distance")},skidding:{type:[Number,String],default:fe("skidding")},triggers:{type:Array,default:fe("triggers")},showTriggers:{type:[Array,Function],default:fe("showTriggers")},hideTriggers:{type:[Array,Function],default:fe("hideTriggers")},popperTriggers:{type:Array,default:fe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:fe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:fe("popperHideTriggers")},container:{type:[String,Object,sf,Boolean],default:fe("container")},boundary:{type:[String,sf],default:fe("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:fe("strategy")},autoHide:{type:Boolean,default:fe("autoHide")},handleResize:{type:Boolean,default:fe("handleResize")},instantMove:{type:Boolean,default:fe("instantMove")},eagerMount:{type:Boolean,default:fe("eagerMount")},popperClass:{type:[String,Array,Object],default:fe("popperClass")},computeTransformOrigin:{type:Boolean,default:fe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:fe("autoMinSize")},autoMaxSize:{type:Boolean,default:fe("autoMaxSize")},preventOverflow:{type:Boolean,default:fe("preventOverflow")},overflowPadding:{type:[Number,String],default:fe("overflowPadding")},arrowPadding:{type:[Number,String],default:fe("arrowPadding")},arrowOverflow:{type:Boolean,default:fe("arrowOverflow")},flip:{type:Boolean,default:fe("flip")},shift:{type:Boolean,default:fe("shift")},shiftCrossAxis:{type:Boolean,default:fe("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:gl(Mr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Mr({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(ck({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?e.middleware.push(ok({alignment:(t=this.placement.split("-")[1])!=null?t:""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&e.middleware.push(lk({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(QS({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:d}=f.arrow;return a.startsWith("top")||a.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:a,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=a.reference.width:g=a.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(hk({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:u})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await Tk(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Mr(Mr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,e=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ko&&this.instantMove&&ko.instantMove){ko.$_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&&(ko=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 Eu(),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(),a=e.x+e.width/2-(o.left+r.offsetLeft),u=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let r=0;r<cr.length;r++)e=cr[r],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}cr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Eu(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Pk(cr,this),ko===this&&(ko=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=Bo(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 Eu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=(a,u,f)=>{this.$_events.push({targetNodes:a,eventType:u,handler:f}),a.forEach(h=>h.addEventListener(u,f,Wo?{passive:!0}:void 0))},e=(a,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(a,b,d)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};e(this.$_targetNodes,Pg,this.triggers,this.showTriggers,r),e([this.$_popperNode],Pg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};e(this.$_targetNodes,$g,this.triggers,this.hideTriggers,o),e([this.$_popperNode],$g,this.popperTriggers,this.popperHideTriggers,o),t([...za(this.$_referenceNode),...za(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"&&(y0?(document.addEventListener("touchstart",Dg,Wo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Dk,Wo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Dg,!0),window.addEventListener("click",$k,!0)),window.addEventListener("resize",Rk));function Dg(t){for(let e=0;e<cr.length;e++){const r=cr[e],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function $k(t){x0(t)}function Dk(t){x0(t,!0)}function x0(t,e=!1){for(let r=0;r<cr.length;r++){const o=cr[r],a=o.popperNode(),u=o.$_mouseDownContains||a.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,e)})}}function Rk(t){for(let e=0;e<cr.length;e++)cr[e].$_computePosition(t)}function zk(){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 a=t.indexOf("Edge/");return a>0?parseInt(t.substring(a+5,t.indexOf(".",a)),10):-1}let ya;function lf(){lf.init||(lf.init=!0,ya=zk()!==-1)}var vc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){lf(),fl(()=>{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",ya&&this.$el.appendChild(t),t.data="about:blank",ya||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&&(!ya&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ik=d1();Tm("data-v-b329ee4c");const Fk={class:"resize-observer",tabindex:"-1"};Lm();const qk=Ik((t,e,r,o,a,u)=>(dt(),ce("div",Fk)));vc.render=qk;vc.__scopeId="data-v-b329ee4c";vc.__file="src/components/ResizeObserver.vue";var _0={computed:{themeClass(){return Ok(this.theme)}}},ih=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r};const Hk=oe({name:"VPopperContent",components:{ResizeObserver:vc},mixins:[_0],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}}}),Bk=["id","aria-hidden","tabindex","data-popper-placement"],Wk={ref:"inner",class:"v-popper__inner"},Uk=ht("div",{class:"v-popper__arrow-outer"},null,-1),jk=ht("div",{class:"v-popper__arrow-inner"},null,-1),Gk=[Uk,jk];function Vk(t,e,r,o,a,u){const f=Vi("ResizeObserver");return dt(),At("div",{id:t.popperId,ref:"popover",class:ge(["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:kn({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]=Ju(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ht("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ht("div",Wk,[t.mounted?(dt(),At(ue,{key:0},[ht("div",null,[Kn(t.$slots,"default")]),t.handleResize?(dt(),ce(f,{key:0,onNotify:e[0]||(e[0]=h=>t.$emit("resize",h))})):ve("",!0)],64)):ve("",!0)],512),ht("div",{ref:"arrow",class:"v-popper__arrow-container",style:kn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},Gk,4)],4)],46,Bk)}var S0=ih(Hk,[["render",Vk]]),k0={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 Kk=oe({name:"VPopperWrapper",components:{Popper:w0(),PopperContent:S0},mixins:[k0,_0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Mr({},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 Xk(t,e,r,o,a,u){const f=Vi("PopperContent"),h=Vi("Popper");return dt(),ce(h,hi({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:Zt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,show:S,hide:N,handleResize:A,onResize:L,classes:k,result:E})=>[ht("div",{ref:"reference",class:ge(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:kn(t.$attrs.style)},[Kn(t.$slots,"default",{shown:g,show:S,hide:N}),Rt(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:k,result:E,onHide:N,onResize:L},{default:Zt(()=>[Kn(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 oh=ih(Kk,[["render",Xk]]);const Rg=oe(gl(Mr({},oh),{name:"VDropdown",vPopperTheme:"dropdown"})),zg=oe(gl(Mr({},oh),{name:"VMenu",vPopperTheme:"menu"})),Ig=oe(gl(Mr({},oh),{name:"VTooltip",vPopperTheme:"tooltip"})),Yk=oe({name:"VTooltipDirective",components:{Popper:w0(),PopperContent:S0},mixins:[k0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Bo(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Bo(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}}}),Jk=["innerHTML"],Zk=["textContent"];function Qk(t,e,r,o,a,u){const f=Vi("PopperContent"),h=Vi("Popper");return dt(),ce(h,hi({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Zt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,hide:S,handleResize:N,onResize:A,classes:L,result:k})=>[Rt(f,{ref:"popperContent",class:ge({"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:L,result:k,onHide:S,onResize:A},{default:Zt(()=>[t.html?(dt(),At("div",{key:0,innerHTML:t.finalContent},null,8,Jk)):(dt(),At("div",{key:1,textContent:Xt(t.finalContent)},null,8,Zk))]),_: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 tC=ih(Yk,[["render",Qk]]);const C0="v-popper--has-tooltip";function eC(t,e){let r=t.placement;if(!r&&e)for(const o of b0)e[o]&&(r=o);return r||(r=Bo(t.theme||"tooltip","placement")),r}function T0(t,e,r){let o;const a=typeof e;return a==="string"?o={content:e}:e&&a==="object"?o=e:o={content:!1},o.placement=eC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Au,tl,nC=0;function rC(){if(Au)return;tl=Kt([]),Au=Qm({name:"VTooltipDirectiveApp",setup(){return{directives:tl}},render(){return this.directives.map(e=>dl(tC,gl(Mr({},e.options),{shown:e.shown.value||e.options.shown,key:e.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Au.mount(t)}function L0(t,e,r){rC();const o=Kt(T0(t,e,r)),a=Kt(!1),u={id:nC++,options:o,shown:a};return tl.value.push(u),t.classList&&t.classList.add(C0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function sh(t){if(t.$_popper){const e=tl.value.indexOf(t.$_popper.item);e!==-1&&tl.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(C0)}function Fg(t,{value:e,oldValue:r,modifiers:o}){const a=T0(t,e,o);if(!a.content||Bo(a.theme||"tooltip","disabled"))sh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=L0(t,e,o),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?u.show():u.hide())}}var E0={beforeMount:Fg,updated:Fg,beforeUnmount(t){sh(t)}};function qg(t){t.addEventListener("click",A0),t.addEventListener("touchstart",N0,Wo?{passive:!0}:!1)}function Hg(t){t.removeEventListener("click",A0),t.removeEventListener("touchstart",N0),t.removeEventListener("touchend",M0),t.removeEventListener("touchcancel",O0)}function A0(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function N0(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",M0),e.addEventListener("touchcancel",O0)}}function M0(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 O0(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}var iC={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&qg(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?qg(t):Hg(t))},beforeUnmount(t){Hg(t)}};const oC=E0;function sC(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,m0(ji,e),t.directive("tooltip",E0),t.directive("close-popper",iC),t.component("v-tooltip",Ig),t.component("VTooltip",Ig),t.component("v-dropdown",Rg),t.component("VDropdown",Rg),t.component("v-menu",zg),t.component("VMenu",zg))}const P0={version:"2.0.0-y.0",install:sC,options:ji};var Bg;const $0=typeof window<"u",lC=t=>typeof t<"u",D0=t=>typeof t=="function",aC=t=>typeof t=="string",ba=()=>{};$0&&((Bg=window==null?void 0:window.navigator)==null?void 0:Bg.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ki(t){return typeof t=="function"?t():J(t)}function lh(t,e){function r(...o){t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})}return r}const R0=t=>t();function z0(t,e={}){let r,o;return u=>{const f=Ki(t),h=Ki(e.maxWait);if(r&&clearTimeout(r),f<=0||h!==void 0&&h<=0)return o&&(clearTimeout(o),o=null),u();h&&!o&&(o=setTimeout(()=>{r&&clearTimeout(r),o=null,u()},h)),r=setTimeout(()=>{o&&clearTimeout(o),o=null,u()},f)}}function cC(t,e=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return d=>{const g=Ki(t),v=Date.now()-o;if(f(),g<=0)return o=Date.now(),d();v>g&&(r||!u)?(o=Date.now(),d()):e&&(a=setTimeout(()=>{o=Date.now(),u=!0,f(),d()},g-v)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function uC(t=R0){const e=Kt(!0);function r(){e.value=!1}function o(){e.value=!0}return{isActive:e,pause:r,resume:o,eventFilter:(...u)=>{e.value&&t(...u)}}}function fC(t){return t}function ah(t){return Ex()?(Ax(t),!0):!1}function Wg(t,e=200,r={}){return lh(z0(e,r),t)}function hC(t,e=200,r=!1,o=!0){return lh(cC(e,r,o),t)}function dC(t,e=200,r=!0,o=!0){if(e<=0)return t;const a=Kt(t.value),u=hC(()=>{a.value=t.value},e,r,o);return Fe(t,()=>u()),a}function pC(t){return typeof t=="function"?St(t):Kt(t)}function ch(t,e=!0){ac()?hl(t):e?t():fl(t)}function gC(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,a=Ie(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Ki(r);return u.value=u.value===d?Ki(o):d,u.value}}return a?f:[u,f]}var Ug=Object.getOwnPropertySymbols,vC=Object.prototype.hasOwnProperty,mC=Object.prototype.propertyIsEnumerable,yC=(t,e)=>{var r={};for(var o in t)vC.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ug)for(var o of Ug(t))e.indexOf(o)<0&&mC.call(t,o)&&(r[o]=t[o]);return r};function I0(t,e,r={}){const o=r,{eventFilter:a=R0}=o,u=yC(o,["eventFilter"]);return Fe(t,lh(a,e),u)}var bC=Object.defineProperty,wC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,F0=Object.prototype.hasOwnProperty,q0=Object.prototype.propertyIsEnumerable,jg=(t,e,r)=>e in t?bC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_C=(t,e)=>{for(var r in e||(e={}))F0.call(e,r)&&jg(t,r,e[r]);if(Ia)for(var r of Ia(e))q0.call(e,r)&&jg(t,r,e[r]);return t},SC=(t,e)=>wC(t,xC(e)),kC=(t,e)=>{var r={};for(var o in t)F0.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ia)for(var o of Ia(t))e.indexOf(o)<0&&q0.call(t,o)&&(r[o]=t[o]);return r};function CC(t,e,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=kC(o,["debounce","maxWait"]);return I0(t,e,SC(_C({},f),{eventFilter:z0(a,{maxWait:u})}))}function TC(t,e,r){const o=Fe(t,(...a)=>(fl(()=>o()),e(...a)),r)}var LC=Object.defineProperty,EC=Object.defineProperties,AC=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,H0=Object.prototype.hasOwnProperty,B0=Object.prototype.propertyIsEnumerable,Gg=(t,e,r)=>e in t?LC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,NC=(t,e)=>{for(var r in e||(e={}))H0.call(e,r)&&Gg(t,r,e[r]);if(Fa)for(var r of Fa(e))B0.call(e,r)&&Gg(t,r,e[r]);return t},MC=(t,e)=>EC(t,AC(e)),OC=(t,e)=>{var r={};for(var o in t)H0.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Fa)for(var o of Fa(t))e.indexOf(o)<0&&B0.call(t,o)&&(r[o]=t[o]);return r};function W0(t,e,r={}){const o=r,{eventFilter:a}=o,u=OC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:d,isActive:g}=uC(a);return{stop:I0(t,e,MC(NC({},u),{eventFilter:f})),pause:h,resume:d,isActive:g}}function PC(t,e,r){let o;Ie(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=ba}=o,h=Kt(!a),d=Kt(e);let g=0;return Gf(async v=>{if(!h.value)return;g++;const b=g;let x=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const S=await t(N=>{v(()=>{u&&(u.value=!1),x||N()})});b===g&&(d.value=S)}catch(S){f(S)}finally{u&&b===g&&(u.value=!1),x=!0}}),a?St(()=>(h.value=!0,d.value)):d}function U0(t){var e;const r=Ki(t);return(e=r==null?void 0:r.$el)!=null?e:r}const dr=$0?window:void 0;function Uo(...t){let e,r,o,a;if(aC(t[0])?([r,o,a]=t,e=dr):[e,r,o,a]=t,!e)return ba;let u=ba;const f=Fe(()=>U0(e),d=>{u(),d&&(d.addEventListener(r,o,a),u=()=>{d.removeEventListener(r,o,a),u=ba})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return ah(h),h}const $C=t=>typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0;function DC(...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:a=dr,eventName:u="keydown",passive:f=!1}=o,h=$C(e);return Uo(a,u,g=>{h(g)&&r(g)},f)}function j0(t,e=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),ch(o,e),r}function RC(t,e={}){const{window:r=dr}=e,o=j0(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const u=Kt(!1),f=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",h):a.removeListener(h))},h=()=>{!o.value||(f(),a=r.matchMedia(pC(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return Gf(h),ah(()=>f()),u}function zC(t){return JSON.parse(JSON.stringify(t))}const af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cf="__vueuse_ssr_handlers__";af[cf]=af[cf]||{};const IC=af[cf];function G0(t,e){return IC[t]||e}function FC(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"||Array.isArray(t)?"object":Number.isNaN(t)?"any":"number"}var qC=Object.defineProperty,Vg=Object.getOwnPropertySymbols,HC=Object.prototype.hasOwnProperty,BC=Object.prototype.propertyIsEnumerable,Kg=(t,e,r)=>e in t?qC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xg=(t,e)=>{for(var r in e||(e={}))HC.call(e,r)&&Kg(t,r,e[r]);if(Vg)for(var r of Vg(e))BC.call(e,r)&&Kg(t,r,e[r]);return t};const WC={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()}};function UC(t,e,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:b=dr,eventFilter:x,onError:S=rt=>{console.error(rt)}}=o,N=(v?cl:Kt)(e);if(!r)try{r=G0("getDefaultStorage",()=>{var rt;return(rt=dr)==null?void 0:rt.localStorage})()}catch(rt){S(rt)}if(!r)return N;const A=Ki(e),L=FC(A),k=(a=o.serializer)!=null?a:WC[L],{pause:E,resume:R}=W0(N,()=>P(N.value),{flush:u,deep:f,eventFilter:x});return b&&h&&Uo(b,"storage",j),j(),N;function P(rt){try{rt==null?r.removeItem(t):r.setItem(t,k.write(rt))}catch(Z){S(Z)}}function G(rt){E();try{const Z=rt?rt.newValue:r.getItem(t);if(Z==null)return d&&A!==null&&r.setItem(t,k.write(A)),A;if(!rt&&g){const ct=k.read(Z);return D0(g)?g(ct,A):L==="object"&&!Array.isArray(ct)?Xg(Xg({},A),ct):ct}else return typeof Z!="string"?Z:k.read(Z)}catch(Z){S(Z)}finally{R()}}function j(rt){if(!(rt&&rt.storageArea!==r)){if(rt&&rt.key===null){N.value=A;return}rt&&rt.key!==t||(N.value=G(rt))}}}function V0(t){return RC("(prefers-color-scheme: dark)",t)}var jC=Object.defineProperty,Yg=Object.getOwnPropertySymbols,GC=Object.prototype.hasOwnProperty,VC=Object.prototype.propertyIsEnumerable,Jg=(t,e,r)=>e in t?jC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,KC=(t,e)=>{for(var r in e||(e={}))GC.call(e,r)&&Jg(t,r,e[r]);if(Yg)for(var r of Yg(e))VC.call(e,r)&&Jg(t,r,e[r]);return t};function XC(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:a=dr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g}=t,v=KC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=V0({window:a}),x=St(()=>b.value?"dark":"light"),S=d||(f==null?Kt(o):UC(f,o,u,{window:a,listenToStorageChanges:h})),N=St({get(){return S.value==="auto"&&!g?x.value:S.value},set(E){S.value=E}}),A=G0("updateHTMLAttrs",(E,R,P)=>{const G=a==null?void 0:a.document.querySelector(E);if(!!G)if(R==="class"){const j=P.split(/\s/g);Object.values(v).flatMap(rt=>(rt||"").split(/\s/g)).filter(Boolean).forEach(rt=>{j.includes(rt)?G.classList.add(rt):G.classList.remove(rt)})}else G.setAttribute(R,P)});function L(E){var R;const P=E==="auto"?x.value:E;A(e,r,(R=v[P])!=null?R:P)}function k(E){t.onChanged?t.onChanged(E,L):L(E)}return Fe(N,k,{flush:"post",immediate:!0}),g&&Fe(x,()=>k(N.value),{flush:"post"}),ch(()=>k(N.value)),N}var YC=Object.defineProperty,JC=Object.defineProperties,ZC=Object.getOwnPropertyDescriptors,Zg=Object.getOwnPropertySymbols,QC=Object.prototype.hasOwnProperty,tT=Object.prototype.propertyIsEnumerable,Qg=(t,e,r)=>e in t?YC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,eT=(t,e)=>{for(var r in e||(e={}))QC.call(e,r)&&Qg(t,r,e[r]);if(Zg)for(var r of Zg(e))tT.call(e,r)&&Qg(t,r,e[r]);return t},nT=(t,e)=>JC(t,ZC(e));function rT(t={}){const{valueDark:e="dark",valueLight:r="",window:o=dr}=t,a=XC(nT(eT({},t),{onChanged:(h,d)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark"):d(h)},modes:{dark:e,light:r}})),u=V0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var tv=Object.getOwnPropertySymbols,iT=Object.prototype.hasOwnProperty,oT=Object.prototype.propertyIsEnumerable,sT=(t,e)=>{var r={};for(var o in t)iT.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&tv)for(var o of tv(t))e.indexOf(o)<0&&oT.call(t,o)&&(r[o]=t[o]);return r};function lT(t,e,r={}){const o=r,{window:a=dr}=o,u=sT(o,["window"]);let f;const h=j0(()=>a&&"ResizeObserver"in a),d=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>U0(t),b=>{d(),h.value&&a&&b&&(f=new ResizeObserver(e),f.observe(b,u))},{immediate:!0,flush:"post"}),v=()=>{d(),g()};return ah(v),{isSupported:h,stop:v}}var ev;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(ev||(ev={}));var aT=Object.defineProperty,nv=Object.getOwnPropertySymbols,cT=Object.prototype.hasOwnProperty,uT=Object.prototype.propertyIsEnumerable,rv=(t,e,r)=>e in t?aT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fT=(t,e)=>{for(var r in e||(e={}))cT.call(e,r)&&rv(t,r,e[r]);if(nv)for(var r of nv(e))uT.call(e,r)&&rv(t,r,e[r]);return t};const hT={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};fT({linear:fC},hT);function dT(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=dr}=e;if(!f)return hr(r);const h=hr({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const k=f.location.hash||"",E=k.indexOf("?");return E>0?k.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function g(k){const E=k.toString();if(t==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const R=f.location.hash||"#",P=R.indexOf("?");return P>0?`${R.slice(0,P)}${E?`?${E}`:""}`:`${R}${E?`?${E}`:""}`}function v(){return new URLSearchParams(d())}function b(k){const E=new Set(Object.keys(h));for(const R of k.keys()){const P=k.getAll(R);h[R]=P.length>1?P:k.get(R)||"",E.delete(R)}Array.from(E).forEach(R=>delete h[R])}const{pause:x,resume:S}=W0(h,()=>{const k=new URLSearchParams("");Object.keys(h).forEach(E=>{const R=h[E];Array.isArray(R)?R.forEach(P=>k.append(E,P)):o&&R==null||a&&!R?k.delete(E):k.set(E,R)}),N(k)},{deep:!0});function N(k,E){x(),E&&b(k),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(k)),S()}function A(){!u||N(v(),!0)}Uo(f,"popstate",A,!1),t!=="history"&&Uo(f,"hashchange",A,!1);const L=v();return L.keys().next().value?b(L):Object.assign(h,r),h}function pT(t,e,r,o={}){var a,u,f;const{clone:h=!1,passive:d=!1,eventName:g,deep:v=!1,defaultValue:b}=o,x=ac(),S=r||(x==null?void 0:x.emit)||((a=x==null?void 0:x.$emit)==null?void 0:a.bind(x))||((f=(u=x==null?void 0:x.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(x==null?void 0:x.proxy));let N=g;e||(e="modelValue"),N=g||N||`update:${e.toString()}`;const A=k=>h?D0(h)?h(k):zC(k):k,L=()=>lC(t[e])?A(t[e]):b;if(d){const k=L(),E=Kt(k);return Fe(()=>t[e],R=>E.value=A(R)),Fe(E,R=>{(R!==t[e]||v)&&S(N,R)},{deep:v}),E}else return St({get(){return L()},set(k){S(N,k)}})}function gT(t={}){const{window:e=dr,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:a=!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))};return d(),ch(d),Uo("resize",d,{passive:!0}),a&&Uo("orientationchange",d,{passive:!0}),{width:f,height:h}}const vT=6e4;function mT(t,e){const{post:r,on:o,eventNames:a=[],serialize:u=v=>v,deserialize:f=v=>v,timeout:h=vT}=e,d=new Map,g=new Proxy({},{get(v,b){const x=(...N)=>{r(u({m:b,a:N,t:"q"}))};if(a.includes(b))return x.asEvent=x,x;const S=(...N)=>new Promise((A,L)=>{const k=bT();d.set(k,{resolve:A,reject:L}),r(u({m:b,a:N,i:k,t:"q"})),h>=0&&setTimeout(()=>{L(new Error(`[birpc] timeout on calling "${b}"`)),d.delete(k)},h)});return S.asEvent=x,S}});return o(async(v,...b)=>{const x=f(v);if(x.t==="q"){const{m:S,a:N}=x;let A,L;try{A=await t[S].apply(g,N)}catch(k){L=k}x.i&&r(u({t:"s",i:x.i,r:A,e:L}),...b)}else{const{i:S,r:N,e:A}=x,L=d.get(S);A?L==null||L.reject(A):L==null||L.resolve(N),d.delete(S)}}),g}const yT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function bT(t=21){let e="",r=t;for(;r--;)e+=yT[Math.random()*64|0];return e}const{parse:wT,stringify:xT}=JSON,{keys:_T}=Object,el=String,K0="string",iv={},qa="object",X0=(t,e)=>e,ST=t=>t instanceof el?el(t):t,kT=(t,e)=>typeof e===K0?new el(e):e,Y0=(t,e,r,o)=>{const a=[];for(let u=_T(r),{length:f}=u,h=0;h<f;h++){const d=u[h],g=r[d];if(g instanceof el){const v=t[g];typeof v===qa&&!e.has(v)?(e.add(v),r[d]=iv,a.push({k:d,a:[t,e,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==iv&&(r[d]=o.call(r,d,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:d}=a[f];r[h]=o.call(r,h,Y0.apply(null,d))}return r},ov=(t,e,r)=>{const o=el(e.push(r)-1);return t.set(r,o),o},CT=(t,e)=>{const r=wT(t,kT).map(ST),o=r[0],a=e||X0,u=typeof o===qa&&o?Y0(r,new Set,o,a):o;return a.call({"":u},"",u)},TT=(t,e,r)=>{const o=e&&typeof e===qa?(v,b)=>v===""||-1<e.indexOf(v)?b:void 0:e||X0,a=new Map,u=[],f=[];let h=+ov(a,u,o.call({"":t},"",t)),d=!h;for(;h<u.length;)d=!0,f[h]=xT(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 qa:if(x===null)return x;case K0:return a.get(x)||ov(a,u,x)}return x}},LT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class ET{constructor(){Ni(this,"filesMap",new Map);Ni(this,"pathsSet",new Set);Ni(this,"collectingPromise");Ni(this,"idMap",new Map);Ni(this,"taskFileMap",new WeakMap);Ni(this,"errorsSet",new Set)}catchError(e,r){if(LT(e))return e.errors.forEach(o=>this.catchError(o,r));e.type=r,this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}startCollectingPaths(){let e;const r=new Promise(o=>{e=o});this.collectingPromise={promise:r,resolve:e}}finishCollectingPaths(){var e;(e=this.collectingPromise)==null||e.resolve(),this.collectingPromise=void 0}async getPaths(){var e;return await((e=this.collectingPromise)==null?void 0:e.promise),Array.from(this.pathsSet)}getFiles(e){return e?e.map(r=>this.filesMap.get(r)).filter(Boolean):Array.from(this.filesMap.values())}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=>{this.filesMap.set(r.filepath,r),this.updateId(r)})}clearFiles(e=[]){e.forEach(r=>{this.filesMap.delete(r)})}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]of e)this.idMap.has(r)&&(this.idMap.get(r).result=o)}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}}const qi=Date;class nl extends qi{constructor(e,r,o,a,u,f,h){super();let d;switch(arguments.length){case 0:d=new qi;break;case 1:d=new qi(e);break;default:o=typeof o>"u"?1:o,a=a||0,u=u||0,f=f||0,h=h||0,d=new qi(e,r,o,a,u,f,h);break}return d}}nl.UTC=qi.UTC;nl.now=function(){return new nl().valueOf()};nl.parse=function(t){return qi.parse(t)};nl.toString=function(){return qi.toString()};function J0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function uf(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function Z0(t){return J0(t).flatMap(e=>uf(e)?[e]:e.tasks.flatMap(r=>uf(r)?[r]:Z0(r)))}function uh(t=[]){return J0(t).flatMap(e=>uf(e)?[e]:[e,...uh(e.tasks)])}function mc(t){return Z0(t).some(e=>{var o,a;const r=(a=(o=e.result)==null?void 0:o.error)==null?void 0:a.message;return r==null?void 0:r.match(/Snapshot .* mismatched/)})}function AT(t){const e=[t.name];let r=t;for(;(r==null?void 0:r.suite)||(r==null?void 0:r.file);)r=r.suite||r.file,r!=null&&r.name&&e.unshift(r.name);return e}function NT(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=k=>k,WebSocketConstructor:h=globalThis.WebSocket}=e;let d=u;const g=f({ws:new h(t),state:new ET,waitForConnection:L,reconnect:N});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(k){var E;g.state.collectPaths(k),(E=r.onPathsCollected)==null||E.call(r,k)},onCollected(k){var E;g.state.collectFiles(k),(E=r.onCollected)==null||E.call(r,k)},onTaskUpdate(k){var E;g.state.updateTasks(k),(E=r.onTaskUpdate)==null||E.call(r,k)},onUserConsoleLog(k){g.state.updateUserLog(k)},onFinished(k){var E;(E=r.onFinished)==null||E.call(r,k)}},x={post:k=>g.ws.send(k),on:k=>v=k,serialize:TT,deserialize:CT};g.rpc=mT(b,x);let S;function N(k=!1){k&&(d=u),g.ws=new h(t),A()}function A(){S=new Promise(k=>{g.ws.addEventListener("open",()=>{d=u,k()})}),g.ws.addEventListener("message",k=>{v(k.data)}),g.ws.addEventListener("close",()=>{d-=1,o&&d>0&&setTimeout(N,a)})}A();function L(){return S}return g}const Q0=dT("hash-params",{initialValue:{file:"",view:null}}),Nr=Hf(Q0,"file"),or=Hf(Q0,"view"),MT=location.port,OT=[location.hostname,MT].filter(Boolean).join(":"),PT=`${location.protocol==="https:"?"wss:":"ws:"}//${OT}/__vitest_api__`,Ha=Kt("idle"),We=NT(PT,{reactive:hr,handlers:{onTaskUpdate(){Ha.value="running"},onFinished(){Ha.value="idle"}}}),ff=cl({}),Hi=Kt("CONNECTING"),Tn=St(()=>We.state.getFiles()),Le=St(()=>Tn.value.find(t=>t.id===Nr.value)),ty=St(()=>uh(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Ba=t=>Tn.value.find(e=>e.id===t),$T=St(()=>Hi.value==="OPEN"),Nu=St(()=>Hi.value==="CONNECTING");St(()=>Hi.value==="CLOSED");function sv(t=We.state.getFiles()){return ey(t)}function ey(t){return t.forEach(e=>{delete e.result,uh(e).forEach(r=>delete r.result)}),We.rpc.rerun(t.map(e=>e.filepath))}function DT(){if(Le.value)return ey([Le.value])}Fe(()=>We.ws,t=>{Hi.value="CONNECTING",t.addEventListener("open",()=>{Hi.value="OPEN",We.state.filesMap.clear(),We.rpc.getFiles().then(e=>We.state.collectFiles(e)),We.rpc.getConfig().then(e=>ff.value=e)}),t.addEventListener("close",()=>{setTimeout(()=>{Hi.value==="CONNECTING"&&(Hi.value="CLOSED")},1e3)})},{immediate:!0});const RT={"text-2xl":""},zT=ht("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),IT=oe({__name:"ConnectionOverlay",setup(t){return(e,r)=>J($T)?ve("",!0):(dt(),At("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>J(We).reconnect&&J(We).reconnect(...o))},[ht("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ge(J(Nu)?"animate-pulse":"")},[ht("div",{text:"5xl",class:ge(J(Nu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ht("div",RT,Xt(J(Nu)?"Connecting...":"Disconnected"),1),zT],2)]))}});function yi(){}yi.prototype={diff:function(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var u=this;function f(A){return a?(setTimeout(function(){a(void 0,A)},0),!0):A}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var h=r.length,d=e.length,g=1,v=h+d;o.maxEditLength&&(v=Math.min(v,o.maxEditLength));var b=[{newPos:-1,components:[]}],x=this.extractCommon(b[0],r,e,0);if(b[0].newPos+1>=h&&x+1>=d)return f([{value:this.join(r),count:r.length}]);function S(){for(var A=-1*g;A<=g;A+=2){var L=void 0,k=b[A-1],E=b[A+1],R=(E?E.newPos:0)-A;k&&(b[A-1]=void 0);var P=k&&k.newPos+1<h,G=E&&0<=R&&R<d;if(!P&&!G){b[A]=void 0;continue}if(!P||G&&k.newPos<E.newPos?(L=qT(E),u.pushComponent(L.components,void 0,!0)):(L=k,L.newPos++,u.pushComponent(L.components,!0,void 0)),R=u.extractCommon(L,r,e,A),L.newPos+1>=h&&R+1>=d)return f(FT(u,L.components,r,e,u.useLongestToken));b[A]=L}g++}if(a)(function A(){setTimeout(function(){if(g>v)return a();S()||A()},0)})();else for(;g<=v;){var N=S();if(N)return N}},pushComponent:function(e,r,o){var a=e[e.length-1];a&&a.added===r&&a.removed===o?e[e.length-1]={count:a.count+1,added:r,removed:o}:e.push({count:1,added:r,removed:o})},extractCommon:function(e,r,o,a){for(var u=r.length,f=o.length,h=e.newPos,d=h-a,g=0;h+1<u&&d+1<f&&this.equals(r[h+1],o[d+1]);)h++,d++,g++;return g&&e.components.push({count:g}),e.newPos=h,d},equals:function(e,r){return this.options.comparator?this.options.comparator(e,r):e===r||this.options.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],o=0;o<e.length;o++)e[o]&&r.push(e[o]);return r},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function FT(t,e,r,o,a){for(var u=0,f=e.length,h=0,d=0;u<f;u++){var g=e[u];if(g.removed){if(g.value=t.join(o.slice(d,d+g.count)),d+=g.count,u&&e[u-1].added){var b=e[u-1];e[u-1]=e[u],e[u]=b}}else{if(!g.added&&a){var v=r.slice(h,h+g.count);v=v.map(function(S,N){var A=o[d+N];return A.length>S.length?A:S}),g.value=t.join(v)}else g.value=t.join(r.slice(h,h+g.count));h+=g.count,g.added||(d+=g.count)}}var x=e[f-1];return f>1&&typeof x.value=="string"&&(x.added||x.removed)&&t.equals("",x.value)&&(e[f-2].value+=x.value,e.pop()),e}function qT(t){return{newPos:t.newPos,components:t.components.slice(0)}}var lv=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,av=/\S/,ny=new yi;ny.equals=function(t,e){return this.options.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e||this.options.ignoreWhitespace&&!av.test(t)&&!av.test(e)};ny.tokenize=function(t){for(var e=t.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<e.length-1;r++)!e[r+1]&&e[r+2]&&lv.test(e[r])&&lv.test(e[r+2])&&(e[r]+=e[r+2],e.splice(r+1,2),r--);return e};var fh=new yi;fh.tokenize=function(t){var e=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var a=r[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),e.push(a))}return e};function HT(t,e,r){return fh.diff(t,e,r)}var BT=new yi;BT.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var WT=new yi;WT.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function wa(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wa=function(e){return typeof e}:wa=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(t)}function Mu(t){return UT(t)||jT(t)||GT(t)||VT()}function UT(t){if(Array.isArray(t))return hf(t)}function jT(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function GT(t,e){if(!!t){if(typeof t=="string")return hf(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 hf(t,e)}}function hf(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}function VT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var KT=Object.prototype.toString,rl=new yi;rl.useLongestToken=!0;rl.tokenize=fh.tokenize;rl.castInput=function(t){var e=this.options,r=e.undefinedReplacement,o=e.stringifyReplacer,a=o===void 0?function(u,f){return typeof f>"u"?r:f}:o;return typeof t=="string"?t:JSON.stringify(df(t,null,null,a),a," ")};rl.equals=function(t,e){return yi.prototype.equals.call(rl,t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function df(t,e,r,o,a){e=e||[],r=r||[],o&&(t=o(a,t));var u;for(u=0;u<e.length;u+=1)if(e[u]===t)return r[u];var f;if(KT.call(t)==="[object Array]"){for(e.push(t),f=new Array(t.length),r.push(f),u=0;u<t.length;u+=1)f[u]=df(t[u],e,r,o,a);return e.pop(),r.pop(),f}if(t&&t.toJSON&&(t=t.toJSON()),wa(t)==="object"&&t!==null){e.push(t),f={},r.push(f);var h=[],d;for(d in t)t.hasOwnProperty(d)&&h.push(d);for(h.sort(),u=0;u<h.length;u+=1)d=h[u],f[d]=df(t[d],e,r,o,d);e.pop(),r.pop()}else f=t;return f}var pf=new yi;pf.tokenize=function(t){return t.slice()};pf.join=pf.removeEmpty=function(t){return t};function XT(t,e,r,o,a,u,f){f||(f={}),typeof f.context>"u"&&(f.context=4);var h=HT(r,o,f);if(!h)return;h.push({value:"",lines:[]});function d(k){return k.map(function(E){return" "+E})}for(var g=[],v=0,b=0,x=[],S=1,N=1,A=function(E){var R=h[E],P=R.lines||R.value.replace(/\n$/,"").split(`
|
|
3
|
+
`);if(R.lines=P,R.added||R.removed){var G;if(!v){var j=h[E-1];v=S,b=N,j&&(x=f.context>0?d(j.lines.slice(-f.context)):[],v-=x.length,b-=x.length)}(G=x).push.apply(G,Mu(P.map(function(z){return(R.added?"+":"-")+z}))),R.added?N+=P.length:S+=P.length}else{if(v)if(P.length<=f.context*2&&E<h.length-2){var rt;(rt=x).push.apply(rt,Mu(d(P)))}else{var Z,ct=Math.min(P.length,f.context);(Z=x).push.apply(Z,Mu(d(P.slice(0,ct))));var vt={oldStart:v,oldLines:S-v+ct,newStart:b,newLines:N-b+ct,lines:x};if(E>=h.length-2&&P.length<=f.context){var kt=/\n$/.test(r),ut=/\n$/.test(o),U=P.length==0&&x.length>vt.oldLines;!kt&&U&&r.length>0&&x.splice(vt.oldLines,0,"\"),(!kt&&!U||!ut)&&x.push("\")}g.push(vt),v=0,b=0,x=[]}S+=P.length,N+=P.length}},L=0;L<h.length;L++)A(L);return{oldFileName:t,newFileName:e,oldHeader:a,newHeader:u,hunks:g}}function YT(t){var e=[];t.oldFileName==t.newFileName&&e.push("Index: "+t.oldFileName),e.push("==================================================================="),e.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),e.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader));for(var r=0;r<t.hunks.length;r++){var o=t.hunks[r];o.oldLines===0&&(o.oldStart-=1),o.newLines===0&&(o.newStart-=1),e.push("@@ -"+o.oldStart+","+o.oldLines+" +"+o.newStart+","+o.newLines+" @@"),e.push.apply(e,o.lines)}return e.join(`
|
|
4
|
+
`)+`
|
|
5
|
+
`}function JT(t,e,r,o,a,u,f){return YT(XT(t,e,r,o,a,u,f))}function ZT(t,e,r,o,a,u){return JT(t,t,e,r,o,a,u)}function sa(t,e){return t.slice(0,e)+(t.length>e?"…":"")}function QT(t,e,r={}){if(t===e)return"";const{outputTruncateLength:o=80,outputDiffLines:a,showLegend:u=!0}=r,f=" ",h=a||15,d={"+":0,"-":0};let g=null,v=0;function b(L){if(!L||L.match(/\\ No newline/))return;const k=L[0];if("-+".includes(k)){if(g!==k&&(g=k,v=0),v++,d[k]++,v===h)return`${k} ...`;if(v>h)return}return L}const S=ZT("string",e,t).split(`
|
|
6
|
+
`).slice(5).map(b).filter(Boolean),N=d["+"]===1&&d["-"]===1&&S.length===2;let A=S.map(L=>(L=L.replace(/\\"/g,'"'),L[0]==="-"?(L=sa(L.slice(1),o),N?L:`- ${sa(L,o)}`):L[0]==="+"?(L=sa(L.slice(1),o),N?L:`+ ${sa(L,o)}`):L.match(/@@/)?"--":` ${L}`));if(u)if(N)A=[`- Expected ${A[0]}`,`+ Received ${A[1]}`];else{A[0].includes('"')&&(A[0]=A[0].replace('"',""));const L=A.length-1;A[L].endsWith('"')&&(A[L]=A[L].slice(0,A[L].length-1)),A.unshift(`- Expected - ${d["-"]}`,`+ Received + ${d["+"]}`,"")}return A.map(L=>f+L).join(`
|
|
7
|
+
`)}var Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ry={},Pr={};const tL="Á",eL="á",nL="Ă",rL="ă",iL="∾",oL="∿",sL="∾̳",lL="Â",aL="â",cL="´",uL="А",fL="а",hL="Æ",dL="æ",pL="",gL="𝔄",vL="𝔞",mL="À",yL="à",bL="ℵ",wL="ℵ",xL="Α",_L="α",SL="Ā",kL="ā",CL="⨿",TL="&",LL="&",EL="⩕",AL="⩓",NL="∧",ML="⩜",OL="⩘",PL="⩚",$L="∠",DL="⦤",RL="∠",zL="⦨",IL="⦩",FL="⦪",qL="⦫",HL="⦬",BL="⦭",WL="⦮",UL="⦯",jL="∡",GL="∟",VL="⊾",KL="⦝",XL="∢",YL="Å",JL="⍼",ZL="Ą",QL="ą",tE="𝔸",eE="𝕒",nE="⩯",rE="≈",iE="⩰",oE="≊",sE="≋",lE="'",aE="",cE="≈",uE="≊",fE="Å",hE="å",dE="𝒜",pE="𝒶",gE="≔",vE="*",mE="≈",yE="≍",bE="Ã",wE="ã",xE="Ä",_E="ä",SE="∳",kE="⨑",CE="≌",TE="϶",LE="‵",EE="∽",AE="⋍",NE="∖",ME="⫧",OE="⊽",PE="⌅",$E="⌆",DE="⌅",RE="⎵",zE="⎶",IE="≌",FE="Б",qE="б",HE="„",BE="∵",WE="∵",UE="∵",jE="⦰",GE="϶",VE="ℬ",KE="ℬ",XE="Β",YE="β",JE="ℶ",ZE="≬",QE="𝔅",tA="𝔟",eA="⋂",nA="◯",rA="⋃",iA="⨀",oA="⨁",sA="⨂",lA="⨆",aA="★",cA="▽",uA="△",fA="⨄",hA="⋁",dA="⋀",pA="⤍",gA="⧫",vA="▪",mA="▴",yA="▾",bA="◂",wA="▸",xA="␣",_A="▒",SA="░",kA="▓",CA="█",TA="=⃥",LA="≡⃥",EA="⫭",AA="⌐",NA="𝔹",MA="𝕓",OA="⊥",PA="⊥",$A="⋈",DA="⧉",RA="┐",zA="╕",IA="╖",FA="╗",qA="┌",HA="╒",BA="╓",WA="╔",UA="─",jA="═",GA="┬",VA="╤",KA="╥",XA="╦",YA="┴",JA="╧",ZA="╨",QA="╩",tN="⊟",eN="⊞",nN="⊠",rN="┘",iN="╛",oN="╜",sN="╝",lN="└",aN="╘",cN="╙",uN="╚",fN="│",hN="║",dN="┼",pN="╪",gN="╫",vN="╬",mN="┤",yN="╡",bN="╢",wN="╣",xN="├",_N="╞",SN="╟",kN="╠",CN="‵",TN="˘",LN="˘",EN="¦",AN="𝒷",NN="ℬ",MN="⁏",ON="∽",PN="⋍",$N="⧅",DN="\\",RN="⟈",zN="•",IN="•",FN="≎",qN="⪮",HN="≏",BN="≎",WN="≏",UN="Ć",jN="ć",GN="⩄",VN="⩉",KN="⩋",XN="∩",YN="⋒",JN="⩇",ZN="⩀",QN="ⅅ",tM="∩︀",eM="⁁",nM="ˇ",rM="ℭ",iM="⩍",oM="Č",sM="č",lM="Ç",aM="ç",cM="Ĉ",uM="ĉ",fM="∰",hM="⩌",dM="⩐",pM="Ċ",gM="ċ",vM="¸",mM="¸",yM="⦲",bM="¢",wM="·",xM="·",_M="𝔠",SM="ℭ",kM="Ч",CM="ч",TM="✓",LM="✓",EM="Χ",AM="χ",NM="ˆ",MM="≗",OM="↺",PM="↻",$M="⊛",DM="⊚",RM="⊝",zM="⊙",IM="®",FM="Ⓢ",qM="⊖",HM="⊕",BM="⊗",WM="○",UM="⧃",jM="≗",GM="⨐",VM="⫯",KM="⧂",XM="∲",YM="”",JM="’",ZM="♣",QM="♣",tO=":",eO="∷",nO="⩴",rO="≔",iO="≔",oO=",",sO="@",lO="∁",aO="∘",cO="∁",uO="ℂ",fO="≅",hO="⩭",dO="≡",pO="∮",gO="∯",vO="∮",mO="𝕔",yO="ℂ",bO="∐",wO="∐",xO="©",_O="©",SO="℗",kO="∳",CO="↵",TO="✗",LO="⨯",EO="𝒞",AO="𝒸",NO="⫏",MO="⫑",OO="⫐",PO="⫒",$O="⋯",DO="⤸",RO="⤵",zO="⋞",IO="⋟",FO="↶",qO="⤽",HO="⩈",BO="⩆",WO="≍",UO="∪",jO="⋓",GO="⩊",VO="⊍",KO="⩅",XO="∪︀",YO="↷",JO="⤼",ZO="⋞",QO="⋟",tP="⋎",eP="⋏",nP="¤",rP="↶",iP="↷",oP="⋎",sP="⋏",lP="∲",aP="∱",cP="⌭",uP="†",fP="‡",hP="ℸ",dP="↓",pP="↡",gP="⇓",vP="‐",mP="⫤",yP="⊣",bP="⤏",wP="˝",xP="Ď",_P="ď",SP="Д",kP="д",CP="‡",TP="⇊",LP="ⅅ",EP="ⅆ",AP="⤑",NP="⩷",MP="°",OP="∇",PP="Δ",$P="δ",DP="⦱",RP="⥿",zP="𝔇",IP="𝔡",FP="⥥",qP="⇃",HP="⇂",BP="´",WP="˙",UP="˝",jP="`",GP="˜",VP="⋄",KP="⋄",XP="⋄",YP="♦",JP="♦",ZP="¨",QP="ⅆ",t$="ϝ",e$="⋲",n$="÷",r$="÷",i$="⋇",o$="⋇",s$="Ђ",l$="ђ",a$="⌞",c$="⌍",u$="$",f$="𝔻",h$="𝕕",d$="¨",p$="˙",g$="⃜",v$="≐",m$="≑",y$="≐",b$="∸",w$="∔",x$="⊡",_$="⌆",S$="∯",k$="¨",C$="⇓",T$="⇐",L$="⇔",E$="⫤",A$="⟸",N$="⟺",M$="⟹",O$="⇒",P$="⊨",$$="⇑",D$="⇕",R$="∥",z$="⤓",I$="↓",F$="↓",q$="⇓",H$="⇵",B$="̑",W$="⇊",U$="⇃",j$="⇂",G$="⥐",V$="⥞",K$="⥖",X$="↽",Y$="⥟",J$="⥗",Z$="⇁",Q$="↧",tD="⊤",eD="⤐",nD="⌟",rD="⌌",iD="𝒟",oD="𝒹",sD="Ѕ",lD="ѕ",aD="⧶",cD="Đ",uD="đ",fD="⋱",hD="▿",dD="▾",pD="⇵",gD="⥯",vD="⦦",mD="Џ",yD="џ",bD="⟿",wD="É",xD="é",_D="⩮",SD="Ě",kD="ě",CD="Ê",TD="ê",LD="≖",ED="≕",AD="Э",ND="э",MD="⩷",OD="Ė",PD="ė",$D="≑",DD="ⅇ",RD="≒",zD="𝔈",ID="𝔢",FD="⪚",qD="È",HD="è",BD="⪖",WD="⪘",UD="⪙",jD="∈",GD="⏧",VD="ℓ",KD="⪕",XD="⪗",YD="Ē",JD="ē",ZD="∅",QD="∅",tR="◻",eR="∅",nR="▫",rR=" ",iR=" ",oR=" ",sR="Ŋ",lR="ŋ",aR=" ",cR="Ę",uR="ę",fR="𝔼",hR="𝕖",dR="⋕",pR="⧣",gR="⩱",vR="ε",mR="Ε",yR="ε",bR="ϵ",wR="≖",xR="≕",_R="≂",SR="⪖",kR="⪕",CR="⩵",TR="=",LR="≂",ER="≟",AR="⇌",NR="≡",MR="⩸",OR="⧥",PR="⥱",$R="≓",DR="ℯ",RR="ℰ",zR="≐",IR="⩳",FR="≂",qR="Η",HR="η",BR="Ð",WR="ð",UR="Ë",jR="ë",GR="€",VR="!",KR="∃",XR="∃",YR="ℰ",JR="ⅇ",ZR="ⅇ",QR="≒",t2="Ф",e2="ф",n2="♀",r2="ffi",i2="ff",o2="ffl",s2="𝔉",l2="𝔣",a2="fi",c2="◼",u2="▪",f2="fj",h2="♭",d2="fl",p2="▱",g2="ƒ",v2="𝔽",m2="𝕗",y2="∀",b2="∀",w2="⋔",x2="⫙",_2="ℱ",S2="⨍",k2="½",C2="⅓",T2="¼",L2="⅕",E2="⅙",A2="⅛",N2="⅔",M2="⅖",O2="¾",P2="⅗",$2="⅜",D2="⅘",R2="⅚",z2="⅝",I2="⅞",F2="⁄",q2="⌢",H2="𝒻",B2="ℱ",W2="ǵ",U2="Γ",j2="γ",G2="Ϝ",V2="ϝ",K2="⪆",X2="Ğ",Y2="ğ",J2="Ģ",Z2="Ĝ",Q2="ĝ",tz="Г",ez="г",nz="Ġ",rz="ġ",iz="≥",oz="≧",sz="⪌",lz="⋛",az="≥",cz="≧",uz="⩾",fz="⪩",hz="⩾",dz="⪀",pz="⪂",gz="⪄",vz="⋛︀",mz="⪔",yz="𝔊",bz="𝔤",wz="≫",xz="⋙",_z="⋙",Sz="ℷ",kz="Ѓ",Cz="ѓ",Tz="⪥",Lz="≷",Ez="⪒",Az="⪤",Nz="⪊",Mz="⪊",Oz="⪈",Pz="≩",$z="⪈",Dz="≩",Rz="⋧",zz="𝔾",Iz="𝕘",Fz="`",qz="≥",Hz="⋛",Bz="≧",Wz="⪢",Uz="≷",jz="⩾",Gz="≳",Vz="𝒢",Kz="ℊ",Xz="≳",Yz="⪎",Jz="⪐",Zz="⪧",Qz="⩺",tI=">",eI=">",nI="≫",rI="⋗",iI="⦕",oI="⩼",sI="⪆",lI="⥸",aI="⋗",cI="⋛",uI="⪌",fI="≷",hI="≳",dI="≩︀",pI="≩︀",gI="ˇ",vI=" ",mI="½",yI="ℋ",bI="Ъ",wI="ъ",xI="⥈",_I="↔",SI="⇔",kI="↭",CI="^",TI="ℏ",LI="Ĥ",EI="ĥ",AI="♥",NI="♥",MI="…",OI="⊹",PI="𝔥",$I="ℌ",DI="ℋ",RI="⤥",zI="⤦",II="⇿",FI="∻",qI="↩",HI="↪",BI="𝕙",WI="ℍ",UI="―",jI="─",GI="𝒽",VI="ℋ",KI="ℏ",XI="Ħ",YI="ħ",JI="≎",ZI="≏",QI="⁃",tF="‐",eF="Í",nF="í",rF="",iF="Î",oF="î",sF="И",lF="и",aF="İ",cF="Е",uF="е",fF="¡",hF="⇔",dF="𝔦",pF="ℑ",gF="Ì",vF="ì",mF="ⅈ",yF="⨌",bF="∭",wF="⧜",xF="℩",_F="IJ",SF="ij",kF="Ī",CF="ī",TF="ℑ",LF="ⅈ",EF="ℐ",AF="ℑ",NF="ı",MF="ℑ",OF="⊷",PF="Ƶ",$F="⇒",DF="℅",RF="∞",zF="⧝",IF="ı",FF="⊺",qF="∫",HF="∬",BF="ℤ",WF="∫",UF="⊺",jF="⋂",GF="⨗",VF="⨼",KF="",XF="",YF="Ё",JF="ё",ZF="Į",QF="į",tq="𝕀",eq="𝕚",nq="Ι",rq="ι",iq="⨼",oq="¿",sq="𝒾",lq="ℐ",aq="∈",cq="⋵",uq="⋹",fq="⋴",hq="⋳",dq="∈",pq="",gq="Ĩ",vq="ĩ",mq="І",yq="і",bq="Ï",wq="ï",xq="Ĵ",_q="ĵ",Sq="Й",kq="й",Cq="𝔍",Tq="𝔧",Lq="ȷ",Eq="𝕁",Aq="𝕛",Nq="𝒥",Mq="𝒿",Oq="Ј",Pq="ј",$q="Є",Dq="є",Rq="Κ",zq="κ",Iq="ϰ",Fq="Ķ",qq="ķ",Hq="К",Bq="к",Wq="𝔎",Uq="𝔨",jq="ĸ",Gq="Х",Vq="х",Kq="Ќ",Xq="ќ",Yq="𝕂",Jq="𝕜",Zq="𝒦",Qq="𝓀",tH="⇚",eH="Ĺ",nH="ĺ",rH="⦴",iH="ℒ",oH="Λ",sH="λ",lH="⟨",aH="⟪",cH="⦑",uH="⟨",fH="⪅",hH="ℒ",dH="«",pH="⇤",gH="⤟",vH="←",mH="↞",yH="⇐",bH="⤝",wH="↩",xH="↫",_H="⤹",SH="⥳",kH="↢",CH="⤙",TH="⤛",LH="⪫",EH="⪭",AH="⪭︀",NH="⤌",MH="⤎",OH="❲",PH="{",$H="[",DH="⦋",RH="⦏",zH="⦍",IH="Ľ",FH="ľ",qH="Ļ",HH="ļ",BH="⌈",WH="{",UH="Л",jH="л",GH="⤶",VH="“",KH="„",XH="⥧",YH="⥋",JH="↲",ZH="≤",QH="≦",tB="⟨",eB="⇤",nB="←",rB="←",iB="⇐",oB="⇆",sB="↢",lB="⌈",aB="⟦",cB="⥡",uB="⥙",fB="⇃",hB="⌊",dB="↽",pB="↼",gB="⇇",vB="↔",mB="↔",yB="⇔",bB="⇆",wB="⇋",xB="↭",_B="⥎",SB="↤",kB="⊣",CB="⥚",TB="⋋",LB="⧏",EB="⊲",AB="⊴",NB="⥑",MB="⥠",OB="⥘",PB="↿",$B="⥒",DB="↼",RB="⪋",zB="⋚",IB="≤",FB="≦",qB="⩽",HB="⪨",BB="⩽",WB="⩿",UB="⪁",jB="⪃",GB="⋚︀",VB="⪓",KB="⪅",XB="⋖",YB="⋚",JB="⪋",ZB="⋚",QB="≦",t3="≶",e3="≶",n3="⪡",r3="≲",i3="⩽",o3="≲",s3="⥼",l3="⌊",a3="𝔏",c3="𝔩",u3="≶",f3="⪑",h3="⥢",d3="↽",p3="↼",g3="⥪",v3="▄",m3="Љ",y3="љ",b3="⇇",w3="≪",x3="⋘",_3="⌞",S3="⇚",k3="⥫",C3="◺",T3="Ŀ",L3="ŀ",E3="⎰",A3="⎰",N3="⪉",M3="⪉",O3="⪇",P3="≨",$3="⪇",D3="≨",R3="⋦",z3="⟬",I3="⇽",F3="⟦",q3="⟵",H3="⟵",B3="⟸",W3="⟷",U3="⟷",j3="⟺",G3="⟼",V3="⟶",K3="⟶",X3="⟹",Y3="↫",J3="↬",Z3="⦅",Q3="𝕃",t5="𝕝",e5="⨭",n5="⨴",r5="∗",i5="_",o5="↙",s5="↘",l5="◊",a5="◊",c5="⧫",u5="(",f5="⦓",h5="⇆",d5="⌟",p5="⇋",g5="⥭",v5="",m5="⊿",y5="‹",b5="𝓁",w5="ℒ",x5="↰",_5="↰",S5="≲",k5="⪍",C5="⪏",T5="[",L5="‘",E5="‚",A5="Ł",N5="ł",M5="⪦",O5="⩹",P5="<",$5="<",D5="≪",R5="⋖",z5="⋋",I5="⋉",F5="⥶",q5="⩻",H5="◃",B5="⊴",W5="◂",U5="⦖",j5="⥊",G5="⥦",V5="≨︀",K5="≨︀",X5="¯",Y5="♂",J5="✠",Z5="✠",Q5="↦",tW="↦",eW="↧",nW="↤",rW="↥",iW="▮",oW="⨩",sW="М",lW="м",aW="—",cW="∺",uW="∡",fW=" ",hW="ℳ",dW="𝔐",pW="𝔪",gW="℧",vW="µ",mW="*",yW="⫰",bW="∣",wW="·",xW="⊟",_W="−",SW="∸",kW="⨪",CW="∓",TW="⫛",LW="…",EW="∓",AW="⊧",NW="𝕄",MW="𝕞",OW="∓",PW="𝓂",$W="ℳ",DW="∾",RW="Μ",zW="μ",IW="⊸",FW="⊸",qW="∇",HW="Ń",BW="ń",WW="∠⃒",UW="≉",jW="⩰̸",GW="≋̸",VW="ʼn",KW="≉",XW="♮",YW="ℕ",JW="♮",ZW=" ",QW="≎̸",tU="≏̸",eU="⩃",nU="Ň",rU="ň",iU="Ņ",oU="ņ",sU="≇",lU="⩭̸",aU="⩂",cU="Н",uU="н",fU="–",hU="⤤",dU="↗",pU="⇗",gU="↗",vU="≠",mU="≐̸",yU="",bU="",wU="",xU="",_U="≢",SU="⤨",kU="≂̸",CU="≫",TU="≪",LU=`
|
|
8
|
+
`,EU="∄",AU="∄",NU="𝔑",MU="𝔫",OU="≧̸",PU="≱",$U="≱",DU="≧̸",RU="⩾̸",zU="⩾̸",IU="⋙̸",FU="≵",qU="≫⃒",HU="≯",BU="≯",WU="≫̸",UU="↮",jU="⇎",GU="⫲",VU="∋",KU="⋼",XU="⋺",YU="∋",JU="Њ",ZU="њ",QU="↚",t8="⇍",e8="‥",n8="≦̸",r8="≰",i8="↚",o8="⇍",s8="↮",l8="⇎",a8="≰",c8="≦̸",u8="⩽̸",f8="⩽̸",h8="≮",d8="⋘̸",p8="≴",g8="≪⃒",v8="≮",m8="⋪",y8="⋬",b8="≪̸",w8="∤",x8="",_8=" ",S8="𝕟",k8="ℕ",C8="⫬",T8="¬",L8="≢",E8="≭",A8="∦",N8="∉",M8="≠",O8="≂̸",P8="∄",$8="≯",D8="≱",R8="≧̸",z8="≫̸",I8="≹",F8="⩾̸",q8="≵",H8="≎̸",B8="≏̸",W8="∉",U8="⋵̸",j8="⋹̸",G8="∉",V8="⋷",K8="⋶",X8="⧏̸",Y8="⋪",J8="⋬",Z8="≮",Q8="≰",t4="≸",e4="≪̸",n4="⩽̸",r4="≴",i4="⪢̸",o4="⪡̸",s4="∌",l4="∌",a4="⋾",c4="⋽",u4="⊀",f4="⪯̸",h4="⋠",d4="∌",p4="⧐̸",g4="⋫",v4="⋭",m4="⊏̸",y4="⋢",b4="⊐̸",w4="⋣",x4="⊂⃒",_4="⊈",S4="⊁",k4="⪰̸",C4="⋡",T4="≿̸",L4="⊃⃒",E4="⊉",A4="≁",N4="≄",M4="≇",O4="≉",P4="∤",$4="∦",D4="∦",R4="⫽⃥",z4="∂̸",I4="⨔",F4="⊀",q4="⋠",H4="⊀",B4="⪯̸",W4="⪯̸",U4="⤳̸",j4="↛",G4="⇏",V4="↝̸",K4="↛",X4="⇏",Y4="⋫",J4="⋭",Z4="⊁",Q4="⋡",t6="⪰̸",e6="𝒩",n6="𝓃",r6="∤",i6="∦",o6="≁",s6="≄",l6="≄",a6="∤",c6="∦",u6="⋢",f6="⋣",h6="⊄",d6="⫅̸",p6="⊈",g6="⊂⃒",v6="⊈",m6="⫅̸",y6="⊁",b6="⪰̸",w6="⊅",x6="⫆̸",_6="⊉",S6="⊃⃒",k6="⊉",C6="⫆̸",T6="≹",L6="Ñ",E6="ñ",A6="≸",N6="⋪",M6="⋬",O6="⋫",P6="⋭",$6="Ν",D6="ν",R6="#",z6="№",I6=" ",F6="≍⃒",q6="⊬",H6="⊭",B6="⊮",W6="⊯",U6="≥⃒",j6=">⃒",G6="⤄",V6="⧞",K6="⤂",X6="≤⃒",Y6="<⃒",J6="⊴⃒",Z6="⤃",Q6="⊵⃒",tj="∼⃒",ej="⤣",nj="↖",rj="⇖",ij="↖",oj="⤧",sj="Ó",lj="ó",aj="⊛",cj="Ô",uj="ô",fj="⊚",hj="О",dj="о",pj="⊝",gj="Ő",vj="ő",mj="⨸",yj="⊙",bj="⦼",wj="Œ",xj="œ",_j="⦿",Sj="𝔒",kj="𝔬",Cj="˛",Tj="Ò",Lj="ò",Ej="⧁",Aj="⦵",Nj="Ω",Mj="∮",Oj="↺",Pj="⦾",$j="⦻",Dj="‾",Rj="⧀",zj="Ō",Ij="ō",Fj="Ω",qj="ω",Hj="Ο",Bj="ο",Wj="⦶",Uj="⊖",jj="𝕆",Gj="𝕠",Vj="⦷",Kj="“",Xj="‘",Yj="⦹",Jj="⊕",Zj="↻",Qj="⩔",t9="∨",e9="⩝",n9="ℴ",r9="ℴ",i9="ª",o9="º",s9="⊶",l9="⩖",a9="⩗",c9="⩛",u9="Ⓢ",f9="𝒪",h9="ℴ",d9="Ø",p9="ø",g9="⊘",v9="Õ",m9="õ",y9="⨶",b9="⨷",w9="⊗",x9="Ö",_9="ö",S9="⌽",k9="‾",C9="⏞",T9="⎴",L9="⏜",E9="¶",A9="∥",N9="∥",M9="⫳",O9="⫽",P9="∂",$9="∂",D9="П",R9="п",z9="%",I9=".",F9="‰",q9="⊥",H9="‱",B9="𝔓",W9="𝔭",U9="Φ",j9="φ",G9="ϕ",V9="ℳ",K9="☎",X9="Π",Y9="π",J9="⋔",Z9="ϖ",Q9="ℏ",tG="ℎ",eG="ℏ",nG="⨣",rG="⊞",iG="⨢",oG="+",sG="∔",lG="⨥",aG="⩲",cG="±",uG="±",fG="⨦",hG="⨧",dG="±",pG="ℌ",gG="⨕",vG="𝕡",mG="ℙ",yG="£",bG="⪷",wG="⪻",xG="≺",_G="≼",SG="⪷",kG="≺",CG="≼",TG="≺",LG="⪯",EG="≼",AG="≾",NG="⪯",MG="⪹",OG="⪵",PG="⋨",$G="⪯",DG="⪳",RG="≾",zG="′",IG="″",FG="ℙ",qG="⪹",HG="⪵",BG="⋨",WG="∏",UG="∏",jG="⌮",GG="⌒",VG="⌓",KG="∝",XG="∝",YG="∷",JG="∝",ZG="≾",QG="⊰",tV="𝒫",eV="𝓅",nV="Ψ",rV="ψ",iV=" ",oV="𝔔",sV="𝔮",lV="⨌",aV="𝕢",cV="ℚ",uV="⁗",fV="𝒬",hV="𝓆",dV="ℍ",pV="⨖",gV="?",vV="≟",mV='"',yV='"',bV="⇛",wV="∽̱",xV="Ŕ",_V="ŕ",SV="√",kV="⦳",CV="⟩",TV="⟫",LV="⦒",EV="⦥",AV="⟩",NV="»",MV="⥵",OV="⇥",PV="⤠",$V="⤳",DV="→",RV="↠",zV="⇒",IV="⤞",FV="↪",qV="↬",HV="⥅",BV="⥴",WV="⤖",UV="↣",jV="↝",GV="⤚",VV="⤜",KV="∶",XV="ℚ",YV="⤍",JV="⤏",ZV="⤐",QV="❳",t7="}",e7="]",n7="⦌",r7="⦎",i7="⦐",o7="Ř",s7="ř",l7="Ŗ",a7="ŗ",c7="⌉",u7="}",f7="Р",h7="р",d7="⤷",p7="⥩",g7="”",v7="”",m7="↳",y7="ℜ",b7="ℛ",w7="ℜ",x7="ℝ",_7="ℜ",S7="▭",k7="®",C7="®",T7="∋",L7="⇋",E7="⥯",A7="⥽",N7="⌋",M7="𝔯",O7="ℜ",P7="⥤",$7="⇁",D7="⇀",R7="⥬",z7="Ρ",I7="ρ",F7="ϱ",q7="⟩",H7="⇥",B7="→",W7="→",U7="⇒",j7="⇄",G7="↣",V7="⌉",K7="⟧",X7="⥝",Y7="⥕",J7="⇂",Z7="⌋",Q7="⇁",tK="⇀",eK="⇄",nK="⇌",rK="⇉",iK="↝",oK="↦",sK="⊢",lK="⥛",aK="⋌",cK="⧐",uK="⊳",fK="⊵",hK="⥏",dK="⥜",pK="⥔",gK="↾",vK="⥓",mK="⇀",yK="˚",bK="≓",wK="⇄",xK="⇌",_K="",SK="⎱",kK="⎱",CK="⫮",TK="⟭",LK="⇾",EK="⟧",AK="⦆",NK="𝕣",MK="ℝ",OK="⨮",PK="⨵",$K="⥰",DK=")",RK="⦔",zK="⨒",IK="⇉",FK="⇛",qK="›",HK="𝓇",BK="ℛ",WK="↱",UK="↱",jK="]",GK="’",VK="’",KK="⋌",XK="⋊",YK="▹",JK="⊵",ZK="▸",QK="⧎",tX="⧴",eX="⥨",nX="℞",rX="Ś",iX="ś",oX="‚",sX="⪸",lX="Š",aX="š",cX="⪼",uX="≻",fX="≽",hX="⪰",dX="⪴",pX="Ş",gX="ş",vX="Ŝ",mX="ŝ",yX="⪺",bX="⪶",wX="⋩",xX="⨓",_X="≿",SX="С",kX="с",CX="⊡",TX="⋅",LX="⩦",EX="⤥",AX="↘",NX="⇘",MX="↘",OX="§",PX=";",$X="⤩",DX="∖",RX="∖",zX="✶",IX="𝔖",FX="𝔰",qX="⌢",HX="♯",BX="Щ",WX="щ",UX="Ш",jX="ш",GX="↓",VX="←",KX="∣",XX="∥",YX="→",JX="↑",ZX="",QX="Σ",tY="σ",eY="ς",nY="ς",rY="∼",iY="⩪",oY="≃",sY="≃",lY="⪞",aY="⪠",cY="⪝",uY="⪟",fY="≆",hY="⨤",dY="⥲",pY="←",gY="∘",vY="∖",mY="⨳",yY="⧤",bY="∣",wY="⌣",xY="⪪",_Y="⪬",SY="⪬︀",kY="Ь",CY="ь",TY="⌿",LY="⧄",EY="/",AY="𝕊",NY="𝕤",MY="♠",OY="♠",PY="∥",$Y="⊓",DY="⊓︀",RY="⊔",zY="⊔︀",IY="√",FY="⊏",qY="⊑",HY="⊏",BY="⊑",WY="⊐",UY="⊒",jY="⊐",GY="⊒",VY="□",KY="□",XY="⊓",YY="⊏",JY="⊑",ZY="⊐",QY="⊒",tJ="⊔",eJ="▪",nJ="□",rJ="▪",iJ="→",oJ="𝒮",sJ="𝓈",lJ="∖",aJ="⌣",cJ="⋆",uJ="⋆",fJ="☆",hJ="★",dJ="ϵ",pJ="ϕ",gJ="¯",vJ="⊂",mJ="⋐",yJ="⪽",bJ="⫅",wJ="⊆",xJ="⫃",_J="⫁",SJ="⫋",kJ="⊊",CJ="⪿",TJ="⥹",LJ="⊂",EJ="⋐",AJ="⊆",NJ="⫅",MJ="⊆",OJ="⊊",PJ="⫋",$J="⫇",DJ="⫕",RJ="⫓",zJ="⪸",IJ="≻",FJ="≽",qJ="≻",HJ="⪰",BJ="≽",WJ="≿",UJ="⪰",jJ="⪺",GJ="⪶",VJ="⋩",KJ="≿",XJ="∋",YJ="∑",JJ="∑",ZJ="♪",QJ="¹",tZ="²",eZ="³",nZ="⊃",rZ="⋑",iZ="⪾",oZ="⫘",sZ="⫆",lZ="⊇",aZ="⫄",cZ="⊃",uZ="⊇",fZ="⟉",hZ="⫗",dZ="⥻",pZ="⫂",gZ="⫌",vZ="⊋",mZ="⫀",yZ="⊃",bZ="⋑",wZ="⊇",xZ="⫆",_Z="⊋",SZ="⫌",kZ="⫈",CZ="⫔",TZ="⫖",LZ="⤦",EZ="↙",AZ="⇙",NZ="↙",MZ="⤪",OZ="ß",PZ=" ",$Z="⌖",DZ="Τ",RZ="τ",zZ="⎴",IZ="Ť",FZ="ť",qZ="Ţ",HZ="ţ",BZ="Т",WZ="т",UZ="⃛",jZ="⌕",GZ="𝔗",VZ="𝔱",KZ="∴",XZ="∴",YZ="∴",JZ="Θ",ZZ="θ",QZ="ϑ",tQ="ϑ",eQ="≈",nQ="∼",rQ=" ",iQ=" ",oQ=" ",sQ="≈",lQ="∼",aQ="Þ",cQ="þ",uQ="˜",fQ="∼",hQ="≃",dQ="≅",pQ="≈",gQ="⨱",vQ="⊠",mQ="×",yQ="⨰",bQ="∭",wQ="⤨",xQ="⌶",_Q="⫱",SQ="⊤",kQ="𝕋",CQ="𝕥",TQ="⫚",LQ="⤩",EQ="‴",AQ="™",NQ="™",MQ="▵",OQ="▿",PQ="◃",$Q="⊴",DQ="≜",RQ="▹",zQ="⊵",IQ="◬",FQ="≜",qQ="⨺",HQ="⃛",BQ="⨹",WQ="⧍",UQ="⨻",jQ="⏢",GQ="𝒯",VQ="𝓉",KQ="Ц",XQ="ц",YQ="Ћ",JQ="ћ",ZQ="Ŧ",QQ="ŧ",ttt="≬",ett="↞",ntt="↠",rtt="Ú",itt="ú",ott="↑",stt="↟",ltt="⇑",att="⥉",ctt="Ў",utt="ў",ftt="Ŭ",htt="ŭ",dtt="Û",ptt="û",gtt="У",vtt="у",mtt="⇅",ytt="Ű",btt="ű",wtt="⥮",xtt="⥾",_tt="𝔘",Stt="𝔲",ktt="Ù",Ctt="ù",Ttt="⥣",Ltt="↿",Ett="↾",Att="▀",Ntt="⌜",Mtt="⌜",Ott="⌏",Ptt="◸",$tt="Ū",Dtt="ū",Rtt="¨",ztt="_",Itt="⏟",Ftt="⎵",qtt="⏝",Htt="⋃",Btt="⊎",Wtt="Ų",Utt="ų",jtt="𝕌",Gtt="𝕦",Vtt="⤒",Ktt="↑",Xtt="↑",Ytt="⇑",Jtt="⇅",Ztt="↕",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="Ũ",Let="ũ",Eet="▵",Aet="▴",Net="⇈",Met="Ü",Oet="ü",Pet="⦧",$et="⦜",Det="ϵ",Ret="ϰ",zet="∅",Iet="ϕ",Fet="ϖ",qet="∝",Het="↕",Bet="⇕",Wet="ϱ",Uet="ς",jet="⊊︀",Get="⫋︀",Vet="⊋︀",Ket="⫌︀",Xet="ϑ",Yet="⊲",Jet="⊳",Zet="⫨",Qet="⫫",tnt="⫩",ent="В",nnt="в",rnt="⊢",int="⊨",ont="⊩",snt="⊫",lnt="⫦",ant="⊻",cnt="∨",unt="⋁",fnt="≚",hnt="⋮",dnt="|",pnt="‖",gnt="|",vnt="‖",mnt="∣",ynt="|",bnt="❘",wnt="≀",xnt=" ",_nt="𝔙",Snt="𝔳",knt="⊲",Cnt="⊂⃒",Tnt="⊃⃒",Lnt="𝕍",Ent="𝕧",Ant="∝",Nnt="⊳",Mnt="𝒱",Ont="𝓋",Pnt="⫋︀",$nt="⊊︀",Dnt="⫌︀",Rnt="⊋︀",znt="⊪",Int="⦚",Fnt="Ŵ",qnt="ŵ",Hnt="⩟",Bnt="∧",Wnt="⋀",Unt="≙",jnt="℘",Gnt="𝔚",Vnt="𝔴",Knt="𝕎",Xnt="𝕨",Ynt="℘",Jnt="≀",Znt="≀",Qnt="𝒲",trt="𝓌",ert="⋂",nrt="◯",rrt="⋃",irt="▽",ort="𝔛",srt="𝔵",lrt="⟷",art="⟺",crt="Ξ",urt="ξ",frt="⟵",hrt="⟸",drt="⟼",prt="⋻",grt="⨀",vrt="𝕏",mrt="𝕩",yrt="⨁",brt="⨂",wrt="⟶",xrt="⟹",_rt="𝒳",Srt="𝓍",krt="⨆",Crt="⨄",Trt="△",Lrt="⋁",Ert="⋀",Art="Ý",Nrt="ý",Mrt="Я",Ort="я",Prt="Ŷ",$rt="ŷ",Drt="Ы",Rrt="ы",zrt="¥",Irt="𝔜",Frt="𝔶",qrt="Ї",Hrt="ї",Brt="𝕐",Wrt="𝕪",Urt="𝒴",jrt="𝓎",Grt="Ю",Vrt="ю",Krt="ÿ",Xrt="Ÿ",Yrt="Ź",Jrt="ź",Zrt="Ž",Qrt="ž",tit="З",eit="з",nit="Ż",rit="ż",iit="ℨ",oit="",sit="Ζ",lit="ζ",ait="𝔷",cit="ℨ",uit="Ж",fit="ж",hit="⇝",dit="𝕫",pit="ℤ",git="𝒵",vit="𝓏",mit="",yit="",iy={Aacute:tL,aacute:eL,Abreve:nL,abreve:rL,ac:iL,acd:oL,acE:sL,Acirc:lL,acirc:aL,acute:cL,Acy:uL,acy:fL,AElig:hL,aelig:dL,af:pL,Afr:gL,afr:vL,Agrave:mL,agrave:yL,alefsym:bL,aleph:wL,Alpha:xL,alpha:_L,Amacr:SL,amacr:kL,amalg:CL,amp:TL,AMP:LL,andand:EL,And:AL,and:NL,andd:ML,andslope:OL,andv:PL,ang:$L,ange:DL,angle:RL,angmsdaa:zL,angmsdab:IL,angmsdac:FL,angmsdad:qL,angmsdae:HL,angmsdaf:BL,angmsdag:WL,angmsdah:UL,angmsd:jL,angrt:GL,angrtvb:VL,angrtvbd:KL,angsph:XL,angst:YL,angzarr:JL,Aogon:ZL,aogon:QL,Aopf:tE,aopf:eE,apacir:nE,ap:rE,apE:iE,ape:oE,apid:sE,apos:lE,ApplyFunction:aE,approx:cE,approxeq:uE,Aring:fE,aring:hE,Ascr:dE,ascr:pE,Assign:gE,ast:vE,asymp:mE,asympeq:yE,Atilde:bE,atilde:wE,Auml:xE,auml:_E,awconint:SE,awint:kE,backcong:CE,backepsilon:TE,backprime:LE,backsim:EE,backsimeq:AE,Backslash:NE,Barv:ME,barvee:OE,barwed:PE,Barwed:$E,barwedge:DE,bbrk:RE,bbrktbrk:zE,bcong:IE,Bcy:FE,bcy:qE,bdquo:HE,becaus:BE,because:WE,Because:UE,bemptyv:jE,bepsi:GE,bernou:VE,Bernoullis:KE,Beta:XE,beta:YE,beth:JE,between:ZE,Bfr:QE,bfr:tA,bigcap:eA,bigcirc:nA,bigcup:rA,bigodot:iA,bigoplus:oA,bigotimes:sA,bigsqcup:lA,bigstar:aA,bigtriangledown:cA,bigtriangleup:uA,biguplus:fA,bigvee:hA,bigwedge:dA,bkarow:pA,blacklozenge:gA,blacksquare:vA,blacktriangle:mA,blacktriangledown:yA,blacktriangleleft:bA,blacktriangleright:wA,blank:xA,blk12:_A,blk14:SA,blk34:kA,block:CA,bne:TA,bnequiv:LA,bNot:EA,bnot:AA,Bopf:NA,bopf:MA,bot:OA,bottom:PA,bowtie:$A,boxbox:DA,boxdl:RA,boxdL:zA,boxDl:IA,boxDL:FA,boxdr:qA,boxdR:HA,boxDr:BA,boxDR:WA,boxh:UA,boxH:jA,boxhd:GA,boxHd:VA,boxhD:KA,boxHD:XA,boxhu:YA,boxHu:JA,boxhU:ZA,boxHU:QA,boxminus:tN,boxplus:eN,boxtimes:nN,boxul:rN,boxuL:iN,boxUl:oN,boxUL:sN,boxur:lN,boxuR:aN,boxUr:cN,boxUR:uN,boxv:fN,boxV:hN,boxvh:dN,boxvH:pN,boxVh:gN,boxVH:vN,boxvl:mN,boxvL:yN,boxVl:bN,boxVL:wN,boxvr:xN,boxvR:_N,boxVr:SN,boxVR:kN,bprime:CN,breve:TN,Breve:LN,brvbar:EN,bscr:AN,Bscr:NN,bsemi:MN,bsim:ON,bsime:PN,bsolb:$N,bsol:DN,bsolhsub:RN,bull:zN,bullet:IN,bump:FN,bumpE:qN,bumpe:HN,Bumpeq:BN,bumpeq:WN,Cacute:UN,cacute:jN,capand:GN,capbrcup:VN,capcap:KN,cap:XN,Cap:YN,capcup:JN,capdot:ZN,CapitalDifferentialD:QN,caps:tM,caret:eM,caron:nM,Cayleys:rM,ccaps:iM,Ccaron:oM,ccaron:sM,Ccedil:lM,ccedil:aM,Ccirc:cM,ccirc:uM,Cconint:fM,ccups:hM,ccupssm:dM,Cdot:pM,cdot:gM,cedil:vM,Cedilla:mM,cemptyv:yM,cent:bM,centerdot:wM,CenterDot:xM,cfr:_M,Cfr:SM,CHcy:kM,chcy:CM,check:TM,checkmark:LM,Chi:EM,chi:AM,circ:NM,circeq:MM,circlearrowleft:OM,circlearrowright:PM,circledast:$M,circledcirc:DM,circleddash:RM,CircleDot:zM,circledR:IM,circledS:FM,CircleMinus:qM,CirclePlus:HM,CircleTimes:BM,cir:WM,cirE:UM,cire:jM,cirfnint:GM,cirmid:VM,cirscir:KM,ClockwiseContourIntegral:XM,CloseCurlyDoubleQuote:YM,CloseCurlyQuote:JM,clubs:ZM,clubsuit:QM,colon:tO,Colon:eO,Colone:nO,colone:rO,coloneq:iO,comma:oO,commat:sO,comp:lO,compfn:aO,complement:cO,complexes:uO,cong:fO,congdot:hO,Congruent:dO,conint:pO,Conint:gO,ContourIntegral:vO,copf:mO,Copf:yO,coprod:bO,Coproduct:wO,copy:xO,COPY:_O,copysr:SO,CounterClockwiseContourIntegral:kO,crarr:CO,cross:TO,Cross:LO,Cscr:EO,cscr:AO,csub:NO,csube:MO,csup:OO,csupe:PO,ctdot:$O,cudarrl:DO,cudarrr:RO,cuepr:zO,cuesc:IO,cularr:FO,cularrp:qO,cupbrcap:HO,cupcap:BO,CupCap:WO,cup:UO,Cup:jO,cupcup:GO,cupdot:VO,cupor:KO,cups:XO,curarr:YO,curarrm:JO,curlyeqprec:ZO,curlyeqsucc:QO,curlyvee:tP,curlywedge:eP,curren:nP,curvearrowleft:rP,curvearrowright:iP,cuvee:oP,cuwed:sP,cwconint:lP,cwint:aP,cylcty:cP,dagger:uP,Dagger:fP,daleth:hP,darr:dP,Darr:pP,dArr:gP,dash:vP,Dashv:mP,dashv:yP,dbkarow:bP,dblac:wP,Dcaron:xP,dcaron:_P,Dcy:SP,dcy:kP,ddagger:CP,ddarr:TP,DD:LP,dd:EP,DDotrahd:AP,ddotseq:NP,deg:MP,Del:OP,Delta:PP,delta:$P,demptyv:DP,dfisht:RP,Dfr:zP,dfr:IP,dHar:FP,dharl:qP,dharr:HP,DiacriticalAcute:BP,DiacriticalDot:WP,DiacriticalDoubleAcute:UP,DiacriticalGrave:jP,DiacriticalTilde:GP,diam:VP,diamond:KP,Diamond:XP,diamondsuit:YP,diams:JP,die:ZP,DifferentialD:QP,digamma:t$,disin:e$,div:n$,divide:r$,divideontimes:i$,divonx:o$,DJcy:s$,djcy:l$,dlcorn:a$,dlcrop:c$,dollar:u$,Dopf:f$,dopf:h$,Dot:d$,dot:p$,DotDot:g$,doteq:v$,doteqdot:m$,DotEqual:y$,dotminus:b$,dotplus:w$,dotsquare:x$,doublebarwedge:_$,DoubleContourIntegral:S$,DoubleDot:k$,DoubleDownArrow:C$,DoubleLeftArrow:T$,DoubleLeftRightArrow:L$,DoubleLeftTee:E$,DoubleLongLeftArrow:A$,DoubleLongLeftRightArrow:N$,DoubleLongRightArrow:M$,DoubleRightArrow:O$,DoubleRightTee:P$,DoubleUpArrow:$$,DoubleUpDownArrow:D$,DoubleVerticalBar:R$,DownArrowBar:z$,downarrow:I$,DownArrow:F$,Downarrow:q$,DownArrowUpArrow:H$,DownBreve:B$,downdownarrows:W$,downharpoonleft:U$,downharpoonright:j$,DownLeftRightVector:G$,DownLeftTeeVector:V$,DownLeftVectorBar:K$,DownLeftVector:X$,DownRightTeeVector:Y$,DownRightVectorBar:J$,DownRightVector:Z$,DownTeeArrow:Q$,DownTee:tD,drbkarow:eD,drcorn:nD,drcrop:rD,Dscr:iD,dscr:oD,DScy:sD,dscy:lD,dsol:aD,Dstrok:cD,dstrok:uD,dtdot:fD,dtri:hD,dtrif:dD,duarr:pD,duhar:gD,dwangle:vD,DZcy:mD,dzcy:yD,dzigrarr:bD,Eacute:wD,eacute:xD,easter:_D,Ecaron:SD,ecaron:kD,Ecirc:CD,ecirc:TD,ecir:LD,ecolon:ED,Ecy:AD,ecy:ND,eDDot:MD,Edot:OD,edot:PD,eDot:$D,ee:DD,efDot:RD,Efr:zD,efr:ID,eg:FD,Egrave:qD,egrave:HD,egs:BD,egsdot:WD,el:UD,Element:jD,elinters:GD,ell:VD,els:KD,elsdot:XD,Emacr:YD,emacr:JD,empty:ZD,emptyset:QD,EmptySmallSquare:tR,emptyv:eR,EmptyVerySmallSquare:nR,emsp13:rR,emsp14:iR,emsp:oR,ENG:sR,eng:lR,ensp:aR,Eogon:cR,eogon:uR,Eopf:fR,eopf:hR,epar:dR,eparsl:pR,eplus:gR,epsi:vR,Epsilon:mR,epsilon:yR,epsiv:bR,eqcirc:wR,eqcolon:xR,eqsim:_R,eqslantgtr:SR,eqslantless:kR,Equal:CR,equals:TR,EqualTilde:LR,equest:ER,Equilibrium:AR,equiv:NR,equivDD:MR,eqvparsl:OR,erarr:PR,erDot:$R,escr:DR,Escr:RR,esdot:zR,Esim:IR,esim:FR,Eta:qR,eta:HR,ETH:BR,eth:WR,Euml:UR,euml:jR,euro:GR,excl:VR,exist:KR,Exists:XR,expectation:YR,exponentiale:JR,ExponentialE:ZR,fallingdotseq:QR,Fcy:t2,fcy:e2,female:n2,ffilig:r2,fflig:i2,ffllig:o2,Ffr:s2,ffr:l2,filig:a2,FilledSmallSquare:c2,FilledVerySmallSquare:u2,fjlig:f2,flat:h2,fllig:d2,fltns:p2,fnof:g2,Fopf:v2,fopf:m2,forall:y2,ForAll:b2,fork:w2,forkv:x2,Fouriertrf:_2,fpartint:S2,frac12:k2,frac13:C2,frac14:T2,frac15:L2,frac16:E2,frac18:A2,frac23:N2,frac25:M2,frac34:O2,frac35:P2,frac38:$2,frac45:D2,frac56:R2,frac58:z2,frac78:I2,frasl:F2,frown:q2,fscr:H2,Fscr:B2,gacute:W2,Gamma:U2,gamma:j2,Gammad:G2,gammad:V2,gap:K2,Gbreve:X2,gbreve:Y2,Gcedil:J2,Gcirc:Z2,gcirc:Q2,Gcy:tz,gcy:ez,Gdot:nz,gdot:rz,ge:iz,gE:oz,gEl:sz,gel:lz,geq:az,geqq:cz,geqslant:uz,gescc:fz,ges:hz,gesdot:dz,gesdoto:pz,gesdotol:gz,gesl:vz,gesles:mz,Gfr:yz,gfr:bz,gg:wz,Gg:xz,ggg:_z,gimel:Sz,GJcy:kz,gjcy:Cz,gla:Tz,gl:Lz,glE:Ez,glj:Az,gnap:Nz,gnapprox:Mz,gne:Oz,gnE:Pz,gneq:$z,gneqq:Dz,gnsim:Rz,Gopf:zz,gopf:Iz,grave:Fz,GreaterEqual:qz,GreaterEqualLess:Hz,GreaterFullEqual:Bz,GreaterGreater:Wz,GreaterLess:Uz,GreaterSlantEqual:jz,GreaterTilde:Gz,Gscr:Vz,gscr:Kz,gsim:Xz,gsime:Yz,gsiml:Jz,gtcc:Zz,gtcir:Qz,gt:tI,GT:eI,Gt:nI,gtdot:rI,gtlPar:iI,gtquest:oI,gtrapprox:sI,gtrarr:lI,gtrdot:aI,gtreqless:cI,gtreqqless:uI,gtrless:fI,gtrsim:hI,gvertneqq:dI,gvnE:pI,Hacek:gI,hairsp:vI,half:mI,hamilt:yI,HARDcy:bI,hardcy:wI,harrcir:xI,harr:_I,hArr:SI,harrw:kI,Hat:CI,hbar:TI,Hcirc:LI,hcirc:EI,hearts:AI,heartsuit:NI,hellip:MI,hercon:OI,hfr:PI,Hfr:$I,HilbertSpace:DI,hksearow:RI,hkswarow:zI,hoarr:II,homtht:FI,hookleftarrow:qI,hookrightarrow:HI,hopf:BI,Hopf:WI,horbar:UI,HorizontalLine:jI,hscr:GI,Hscr:VI,hslash:KI,Hstrok:XI,hstrok:YI,HumpDownHump:JI,HumpEqual:ZI,hybull:QI,hyphen:tF,Iacute:eF,iacute:nF,ic:rF,Icirc:iF,icirc:oF,Icy:sF,icy:lF,Idot:aF,IEcy:cF,iecy:uF,iexcl:fF,iff:hF,ifr:dF,Ifr:pF,Igrave:gF,igrave:vF,ii:mF,iiiint:yF,iiint:bF,iinfin:wF,iiota:xF,IJlig:_F,ijlig:SF,Imacr:kF,imacr:CF,image:TF,ImaginaryI:LF,imagline:EF,imagpart:AF,imath:NF,Im:MF,imof:OF,imped:PF,Implies:$F,incare:DF,in:"∈",infin:RF,infintie:zF,inodot:IF,intcal:FF,int:qF,Int:HF,integers:BF,Integral:WF,intercal:UF,Intersection:jF,intlarhk:GF,intprod:VF,InvisibleComma:KF,InvisibleTimes:XF,IOcy:YF,iocy:JF,Iogon:ZF,iogon:QF,Iopf:tq,iopf:eq,Iota:nq,iota:rq,iprod:iq,iquest:oq,iscr:sq,Iscr:lq,isin:aq,isindot:cq,isinE:uq,isins:fq,isinsv:hq,isinv:dq,it:pq,Itilde:gq,itilde:vq,Iukcy:mq,iukcy:yq,Iuml:bq,iuml:wq,Jcirc:xq,jcirc:_q,Jcy:Sq,jcy:kq,Jfr:Cq,jfr:Tq,jmath:Lq,Jopf:Eq,jopf:Aq,Jscr:Nq,jscr:Mq,Jsercy:Oq,jsercy:Pq,Jukcy:$q,jukcy:Dq,Kappa:Rq,kappa:zq,kappav:Iq,Kcedil:Fq,kcedil:qq,Kcy:Hq,kcy:Bq,Kfr:Wq,kfr:Uq,kgreen:jq,KHcy:Gq,khcy:Vq,KJcy:Kq,kjcy:Xq,Kopf:Yq,kopf:Jq,Kscr:Zq,kscr:Qq,lAarr:tH,Lacute:eH,lacute:nH,laemptyv:rH,lagran:iH,Lambda:oH,lambda:sH,lang:lH,Lang:aH,langd:cH,langle:uH,lap:fH,Laplacetrf:hH,laquo:dH,larrb:pH,larrbfs:gH,larr:vH,Larr:mH,lArr:yH,larrfs:bH,larrhk:wH,larrlp:xH,larrpl:_H,larrsim:SH,larrtl:kH,latail:CH,lAtail:TH,lat:LH,late:EH,lates:AH,lbarr:NH,lBarr:MH,lbbrk:OH,lbrace:PH,lbrack:$H,lbrke:DH,lbrksld:RH,lbrkslu:zH,Lcaron:IH,lcaron:FH,Lcedil:qH,lcedil:HH,lceil:BH,lcub:WH,Lcy:UH,lcy:jH,ldca:GH,ldquo:VH,ldquor:KH,ldrdhar:XH,ldrushar:YH,ldsh:JH,le:ZH,lE:QH,LeftAngleBracket:tB,LeftArrowBar:eB,leftarrow:nB,LeftArrow:rB,Leftarrow:iB,LeftArrowRightArrow:oB,leftarrowtail:sB,LeftCeiling:lB,LeftDoubleBracket:aB,LeftDownTeeVector:cB,LeftDownVectorBar:uB,LeftDownVector:fB,LeftFloor:hB,leftharpoondown:dB,leftharpoonup:pB,leftleftarrows:gB,leftrightarrow:vB,LeftRightArrow:mB,Leftrightarrow:yB,leftrightarrows:bB,leftrightharpoons:wB,leftrightsquigarrow:xB,LeftRightVector:_B,LeftTeeArrow:SB,LeftTee:kB,LeftTeeVector:CB,leftthreetimes:TB,LeftTriangleBar:LB,LeftTriangle:EB,LeftTriangleEqual:AB,LeftUpDownVector:NB,LeftUpTeeVector:MB,LeftUpVectorBar:OB,LeftUpVector:PB,LeftVectorBar:$B,LeftVector:DB,lEg:RB,leg:zB,leq:IB,leqq:FB,leqslant:qB,lescc:HB,les:BB,lesdot:WB,lesdoto:UB,lesdotor:jB,lesg:GB,lesges:VB,lessapprox:KB,lessdot:XB,lesseqgtr:YB,lesseqqgtr:JB,LessEqualGreater:ZB,LessFullEqual:QB,LessGreater:t3,lessgtr:e3,LessLess:n3,lesssim:r3,LessSlantEqual:i3,LessTilde:o3,lfisht:s3,lfloor:l3,Lfr:a3,lfr:c3,lg:u3,lgE:f3,lHar:h3,lhard:d3,lharu:p3,lharul:g3,lhblk:v3,LJcy:m3,ljcy:y3,llarr:b3,ll:w3,Ll:x3,llcorner:_3,Lleftarrow:S3,llhard:k3,lltri:C3,Lmidot:T3,lmidot:L3,lmoustache:E3,lmoust:A3,lnap:N3,lnapprox:M3,lne:O3,lnE:P3,lneq:$3,lneqq:D3,lnsim:R3,loang:z3,loarr:I3,lobrk:F3,longleftarrow:q3,LongLeftArrow:H3,Longleftarrow:B3,longleftrightarrow:W3,LongLeftRightArrow:U3,Longleftrightarrow:j3,longmapsto:G3,longrightarrow:V3,LongRightArrow:K3,Longrightarrow:X3,looparrowleft:Y3,looparrowright:J3,lopar:Z3,Lopf:Q3,lopf:t5,loplus:e5,lotimes:n5,lowast:r5,lowbar:i5,LowerLeftArrow:o5,LowerRightArrow:s5,loz:l5,lozenge:a5,lozf:c5,lpar:u5,lparlt:f5,lrarr:h5,lrcorner:d5,lrhar:p5,lrhard:g5,lrm:v5,lrtri:m5,lsaquo:y5,lscr:b5,Lscr:w5,lsh:x5,Lsh:_5,lsim:S5,lsime:k5,lsimg:C5,lsqb:T5,lsquo:L5,lsquor:E5,Lstrok:A5,lstrok:N5,ltcc:M5,ltcir:O5,lt:P5,LT:$5,Lt:D5,ltdot:R5,lthree:z5,ltimes:I5,ltlarr:F5,ltquest:q5,ltri:H5,ltrie:B5,ltrif:W5,ltrPar:U5,lurdshar:j5,luruhar:G5,lvertneqq:V5,lvnE:K5,macr:X5,male:Y5,malt:J5,maltese:Z5,Map:"⤅",map:Q5,mapsto:tW,mapstodown:eW,mapstoleft:nW,mapstoup:rW,marker:iW,mcomma:oW,Mcy:sW,mcy:lW,mdash:aW,mDDot:cW,measuredangle:uW,MediumSpace:fW,Mellintrf:hW,Mfr:dW,mfr:pW,mho:gW,micro:vW,midast:mW,midcir:yW,mid:bW,middot:wW,minusb:xW,minus:_W,minusd:SW,minusdu:kW,MinusPlus:CW,mlcp:TW,mldr:LW,mnplus:EW,models:AW,Mopf:NW,mopf:MW,mp:OW,mscr:PW,Mscr:$W,mstpos:DW,Mu:RW,mu:zW,multimap:IW,mumap:FW,nabla:qW,Nacute:HW,nacute:BW,nang:WW,nap:UW,napE:jW,napid:GW,napos:VW,napprox:KW,natural:XW,naturals:YW,natur:JW,nbsp:ZW,nbump:QW,nbumpe:tU,ncap:eU,Ncaron:nU,ncaron:rU,Ncedil:iU,ncedil:oU,ncong:sU,ncongdot:lU,ncup:aU,Ncy:cU,ncy:uU,ndash:fU,nearhk:hU,nearr:dU,neArr:pU,nearrow:gU,ne:vU,nedot:mU,NegativeMediumSpace:yU,NegativeThickSpace:bU,NegativeThinSpace:wU,NegativeVeryThinSpace:xU,nequiv:_U,nesear:SU,nesim:kU,NestedGreaterGreater:CU,NestedLessLess:TU,NewLine:LU,nexist:EU,nexists:AU,Nfr:NU,nfr:MU,ngE:OU,nge:PU,ngeq:$U,ngeqq:DU,ngeqslant:RU,nges:zU,nGg:IU,ngsim:FU,nGt:qU,ngt:HU,ngtr:BU,nGtv:WU,nharr:UU,nhArr:jU,nhpar:GU,ni:VU,nis:KU,nisd:XU,niv:YU,NJcy:JU,njcy:ZU,nlarr:QU,nlArr:t8,nldr:e8,nlE:n8,nle:r8,nleftarrow:i8,nLeftarrow:o8,nleftrightarrow:s8,nLeftrightarrow:l8,nleq:a8,nleqq:c8,nleqslant:u8,nles:f8,nless:h8,nLl:d8,nlsim:p8,nLt:g8,nlt:v8,nltri:m8,nltrie:y8,nLtv:b8,nmid:w8,NoBreak:x8,NonBreakingSpace:_8,nopf:S8,Nopf:k8,Not:C8,not:T8,NotCongruent:L8,NotCupCap:E8,NotDoubleVerticalBar:A8,NotElement:N8,NotEqual:M8,NotEqualTilde:O8,NotExists:P8,NotGreater:$8,NotGreaterEqual:D8,NotGreaterFullEqual:R8,NotGreaterGreater:z8,NotGreaterLess:I8,NotGreaterSlantEqual:F8,NotGreaterTilde:q8,NotHumpDownHump:H8,NotHumpEqual:B8,notin:W8,notindot:U8,notinE:j8,notinva:G8,notinvb:V8,notinvc:K8,NotLeftTriangleBar:X8,NotLeftTriangle:Y8,NotLeftTriangleEqual:J8,NotLess:Z8,NotLessEqual:Q8,NotLessGreater:t4,NotLessLess:e4,NotLessSlantEqual:n4,NotLessTilde:r4,NotNestedGreaterGreater:i4,NotNestedLessLess:o4,notni:s4,notniva:l4,notnivb:a4,notnivc:c4,NotPrecedes:u4,NotPrecedesEqual:f4,NotPrecedesSlantEqual:h4,NotReverseElement:d4,NotRightTriangleBar:p4,NotRightTriangle:g4,NotRightTriangleEqual:v4,NotSquareSubset:m4,NotSquareSubsetEqual:y4,NotSquareSuperset:b4,NotSquareSupersetEqual:w4,NotSubset:x4,NotSubsetEqual:_4,NotSucceeds:S4,NotSucceedsEqual:k4,NotSucceedsSlantEqual:C4,NotSucceedsTilde:T4,NotSuperset:L4,NotSupersetEqual:E4,NotTilde:A4,NotTildeEqual:N4,NotTildeFullEqual:M4,NotTildeTilde:O4,NotVerticalBar:P4,nparallel:$4,npar:D4,nparsl:R4,npart:z4,npolint:I4,npr:F4,nprcue:q4,nprec:H4,npreceq:B4,npre:W4,nrarrc:U4,nrarr:j4,nrArr:G4,nrarrw:V4,nrightarrow:K4,nRightarrow:X4,nrtri:Y4,nrtrie:J4,nsc:Z4,nsccue:Q4,nsce:t6,Nscr:e6,nscr:n6,nshortmid:r6,nshortparallel:i6,nsim:o6,nsime:s6,nsimeq:l6,nsmid:a6,nspar:c6,nsqsube:u6,nsqsupe:f6,nsub:h6,nsubE:d6,nsube:p6,nsubset:g6,nsubseteq:v6,nsubseteqq:m6,nsucc:y6,nsucceq:b6,nsup:w6,nsupE:x6,nsupe:_6,nsupset:S6,nsupseteq:k6,nsupseteqq:C6,ntgl:T6,Ntilde:L6,ntilde:E6,ntlg:A6,ntriangleleft:N6,ntrianglelefteq:M6,ntriangleright:O6,ntrianglerighteq:P6,Nu:$6,nu:D6,num:R6,numero:z6,numsp:I6,nvap:F6,nvdash:q6,nvDash:H6,nVdash:B6,nVDash:W6,nvge:U6,nvgt:j6,nvHarr:G6,nvinfin:V6,nvlArr:K6,nvle:X6,nvlt:Y6,nvltrie:J6,nvrArr:Z6,nvrtrie:Q6,nvsim:tj,nwarhk:ej,nwarr:nj,nwArr:rj,nwarrow:ij,nwnear:oj,Oacute:sj,oacute:lj,oast:aj,Ocirc:cj,ocirc:uj,ocir:fj,Ocy:hj,ocy:dj,odash:pj,Odblac:gj,odblac:vj,odiv:mj,odot:yj,odsold:bj,OElig:wj,oelig:xj,ofcir:_j,Ofr:Sj,ofr:kj,ogon:Cj,Ograve:Tj,ograve:Lj,ogt:Ej,ohbar:Aj,ohm:Nj,oint:Mj,olarr:Oj,olcir:Pj,olcross:$j,oline:Dj,olt:Rj,Omacr:zj,omacr:Ij,Omega:Fj,omega:qj,Omicron:Hj,omicron:Bj,omid:Wj,ominus:Uj,Oopf:jj,oopf:Gj,opar:Vj,OpenCurlyDoubleQuote:Kj,OpenCurlyQuote:Xj,operp:Yj,oplus:Jj,orarr:Zj,Or:Qj,or:t9,ord:e9,order:n9,orderof:r9,ordf:i9,ordm:o9,origof:s9,oror:l9,orslope:a9,orv:c9,oS:u9,Oscr:f9,oscr:h9,Oslash:d9,oslash:p9,osol:g9,Otilde:v9,otilde:m9,otimesas:y9,Otimes:b9,otimes:w9,Ouml:x9,ouml:_9,ovbar:S9,OverBar:k9,OverBrace:C9,OverBracket:T9,OverParenthesis:L9,para:E9,parallel:A9,par:N9,parsim:M9,parsl:O9,part:P9,PartialD:$9,Pcy:D9,pcy:R9,percnt:z9,period:I9,permil:F9,perp:q9,pertenk:H9,Pfr:B9,pfr:W9,Phi:U9,phi:j9,phiv:G9,phmmat:V9,phone:K9,Pi:X9,pi:Y9,pitchfork:J9,piv:Z9,planck:Q9,planckh:tG,plankv:eG,plusacir:nG,plusb:rG,pluscir:iG,plus:oG,plusdo:sG,plusdu:lG,pluse:aG,PlusMinus:cG,plusmn:uG,plussim:fG,plustwo:hG,pm:dG,Poincareplane:pG,pointint:gG,popf:vG,Popf:mG,pound:yG,prap:bG,Pr:wG,pr:xG,prcue:_G,precapprox:SG,prec:kG,preccurlyeq:CG,Precedes:TG,PrecedesEqual:LG,PrecedesSlantEqual:EG,PrecedesTilde:AG,preceq:NG,precnapprox:MG,precneqq:OG,precnsim:PG,pre:$G,prE:DG,precsim:RG,prime:zG,Prime:IG,primes:FG,prnap:qG,prnE:HG,prnsim:BG,prod:WG,Product:UG,profalar:jG,profline:GG,profsurf:VG,prop:KG,Proportional:XG,Proportion:YG,propto:JG,prsim:ZG,prurel:QG,Pscr:tV,pscr:eV,Psi:nV,psi:rV,puncsp:iV,Qfr:oV,qfr:sV,qint:lV,qopf:aV,Qopf:cV,qprime:uV,Qscr:fV,qscr:hV,quaternions:dV,quatint:pV,quest:gV,questeq:vV,quot:mV,QUOT:yV,rAarr:bV,race:wV,Racute:xV,racute:_V,radic:SV,raemptyv:kV,rang:CV,Rang:TV,rangd:LV,range:EV,rangle:AV,raquo:NV,rarrap:MV,rarrb:OV,rarrbfs:PV,rarrc:$V,rarr:DV,Rarr:RV,rArr:zV,rarrfs:IV,rarrhk:FV,rarrlp:qV,rarrpl:HV,rarrsim:BV,Rarrtl:WV,rarrtl:UV,rarrw:jV,ratail:GV,rAtail:VV,ratio:KV,rationals:XV,rbarr:YV,rBarr:JV,RBarr:ZV,rbbrk:QV,rbrace:t7,rbrack:e7,rbrke:n7,rbrksld:r7,rbrkslu:i7,Rcaron:o7,rcaron:s7,Rcedil:l7,rcedil:a7,rceil:c7,rcub:u7,Rcy:f7,rcy:h7,rdca:d7,rdldhar:p7,rdquo:g7,rdquor:v7,rdsh:m7,real:y7,realine:b7,realpart:w7,reals:x7,Re:_7,rect:S7,reg:k7,REG:C7,ReverseElement:T7,ReverseEquilibrium:L7,ReverseUpEquilibrium:E7,rfisht:A7,rfloor:N7,rfr:M7,Rfr:O7,rHar:P7,rhard:$7,rharu:D7,rharul:R7,Rho:z7,rho:I7,rhov:F7,RightAngleBracket:q7,RightArrowBar:H7,rightarrow:B7,RightArrow:W7,Rightarrow:U7,RightArrowLeftArrow:j7,rightarrowtail:G7,RightCeiling:V7,RightDoubleBracket:K7,RightDownTeeVector:X7,RightDownVectorBar:Y7,RightDownVector:J7,RightFloor:Z7,rightharpoondown:Q7,rightharpoonup:tK,rightleftarrows:eK,rightleftharpoons:nK,rightrightarrows:rK,rightsquigarrow:iK,RightTeeArrow:oK,RightTee:sK,RightTeeVector:lK,rightthreetimes:aK,RightTriangleBar:cK,RightTriangle:uK,RightTriangleEqual:fK,RightUpDownVector:hK,RightUpTeeVector:dK,RightUpVectorBar:pK,RightUpVector:gK,RightVectorBar:vK,RightVector:mK,ring:yK,risingdotseq:bK,rlarr:wK,rlhar:xK,rlm:_K,rmoustache:SK,rmoust:kK,rnmid:CK,roang:TK,roarr:LK,robrk:EK,ropar:AK,ropf:NK,Ropf:MK,roplus:OK,rotimes:PK,RoundImplies:$K,rpar:DK,rpargt:RK,rppolint:zK,rrarr:IK,Rrightarrow:FK,rsaquo:qK,rscr:HK,Rscr:BK,rsh:WK,Rsh:UK,rsqb:jK,rsquo:GK,rsquor:VK,rthree:KK,rtimes:XK,rtri:YK,rtrie:JK,rtrif:ZK,rtriltri:QK,RuleDelayed:tX,ruluhar:eX,rx:nX,Sacute:rX,sacute:iX,sbquo:oX,scap:sX,Scaron:lX,scaron:aX,Sc:cX,sc:uX,sccue:fX,sce:hX,scE:dX,Scedil:pX,scedil:gX,Scirc:vX,scirc:mX,scnap:yX,scnE:bX,scnsim:wX,scpolint:xX,scsim:_X,Scy:SX,scy:kX,sdotb:CX,sdot:TX,sdote:LX,searhk:EX,searr:AX,seArr:NX,searrow:MX,sect:OX,semi:PX,seswar:$X,setminus:DX,setmn:RX,sext:zX,Sfr:IX,sfr:FX,sfrown:qX,sharp:HX,SHCHcy:BX,shchcy:WX,SHcy:UX,shcy:jX,ShortDownArrow:GX,ShortLeftArrow:VX,shortmid:KX,shortparallel:XX,ShortRightArrow:YX,ShortUpArrow:JX,shy:ZX,Sigma:QX,sigma:tY,sigmaf:eY,sigmav:nY,sim:rY,simdot:iY,sime:oY,simeq:sY,simg:lY,simgE:aY,siml:cY,simlE:uY,simne:fY,simplus:hY,simrarr:dY,slarr:pY,SmallCircle:gY,smallsetminus:vY,smashp:mY,smeparsl:yY,smid:bY,smile:wY,smt:xY,smte:_Y,smtes:SY,SOFTcy:kY,softcy:CY,solbar:TY,solb:LY,sol:EY,Sopf:AY,sopf:NY,spades:MY,spadesuit:OY,spar:PY,sqcap:$Y,sqcaps:DY,sqcup:RY,sqcups:zY,Sqrt:IY,sqsub:FY,sqsube:qY,sqsubset:HY,sqsubseteq:BY,sqsup:WY,sqsupe:UY,sqsupset:jY,sqsupseteq:GY,square:VY,Square:KY,SquareIntersection:XY,SquareSubset:YY,SquareSubsetEqual:JY,SquareSuperset:ZY,SquareSupersetEqual:QY,SquareUnion:tJ,squarf:eJ,squ:nJ,squf:rJ,srarr:iJ,Sscr:oJ,sscr:sJ,ssetmn:lJ,ssmile:aJ,sstarf:cJ,Star:uJ,star:fJ,starf:hJ,straightepsilon:dJ,straightphi:pJ,strns:gJ,sub:vJ,Sub:mJ,subdot:yJ,subE:bJ,sube:wJ,subedot:xJ,submult:_J,subnE:SJ,subne:kJ,subplus:CJ,subrarr:TJ,subset:LJ,Subset:EJ,subseteq:AJ,subseteqq:NJ,SubsetEqual:MJ,subsetneq:OJ,subsetneqq:PJ,subsim:$J,subsub:DJ,subsup:RJ,succapprox:zJ,succ:IJ,succcurlyeq:FJ,Succeeds:qJ,SucceedsEqual:HJ,SucceedsSlantEqual:BJ,SucceedsTilde:WJ,succeq:UJ,succnapprox:jJ,succneqq:GJ,succnsim:VJ,succsim:KJ,SuchThat:XJ,sum:YJ,Sum:JJ,sung:ZJ,sup1:QJ,sup2:tZ,sup3:eZ,sup:nZ,Sup:rZ,supdot:iZ,supdsub:oZ,supE:sZ,supe:lZ,supedot:aZ,Superset:cZ,SupersetEqual:uZ,suphsol:fZ,suphsub:hZ,suplarr:dZ,supmult:pZ,supnE:gZ,supne:vZ,supplus:mZ,supset:yZ,Supset:bZ,supseteq:wZ,supseteqq:xZ,supsetneq:_Z,supsetneqq:SZ,supsim:kZ,supsub:CZ,supsup:TZ,swarhk:LZ,swarr:EZ,swArr:AZ,swarrow:NZ,swnwar:MZ,szlig:OZ,Tab:PZ,target:$Z,Tau:DZ,tau:RZ,tbrk:zZ,Tcaron:IZ,tcaron:FZ,Tcedil:qZ,tcedil:HZ,Tcy:BZ,tcy:WZ,tdot:UZ,telrec:jZ,Tfr:GZ,tfr:VZ,there4:KZ,therefore:XZ,Therefore:YZ,Theta:JZ,theta:ZZ,thetasym:QZ,thetav:tQ,thickapprox:eQ,thicksim:nQ,ThickSpace:rQ,ThinSpace:iQ,thinsp:oQ,thkap:sQ,thksim:lQ,THORN:aQ,thorn:cQ,tilde:uQ,Tilde:fQ,TildeEqual:hQ,TildeFullEqual:dQ,TildeTilde:pQ,timesbar:gQ,timesb:vQ,times:mQ,timesd:yQ,tint:bQ,toea:wQ,topbot:xQ,topcir:_Q,top:SQ,Topf:kQ,topf:CQ,topfork:TQ,tosa:LQ,tprime:EQ,trade:AQ,TRADE:NQ,triangle:MQ,triangledown:OQ,triangleleft:PQ,trianglelefteq:$Q,triangleq:DQ,triangleright:RQ,trianglerighteq:zQ,tridot:IQ,trie:FQ,triminus:qQ,TripleDot:HQ,triplus:BQ,trisb:WQ,tritime:UQ,trpezium:jQ,Tscr:GQ,tscr:VQ,TScy:KQ,tscy:XQ,TSHcy:YQ,tshcy:JQ,Tstrok:ZQ,tstrok:QQ,twixt:ttt,twoheadleftarrow:ett,twoheadrightarrow:ntt,Uacute:rtt,uacute:itt,uarr:ott,Uarr:stt,uArr:ltt,Uarrocir:att,Ubrcy:ctt,ubrcy:utt,Ubreve:ftt,ubreve:htt,Ucirc:dtt,ucirc:ptt,Ucy:gtt,ucy:vtt,udarr:mtt,Udblac:ytt,udblac:btt,udhar:wtt,ufisht:xtt,Ufr:_tt,ufr:Stt,Ugrave:ktt,ugrave:Ctt,uHar:Ttt,uharl:Ltt,uharr:Ett,uhblk:Att,ulcorn:Ntt,ulcorner:Mtt,ulcrop:Ott,ultri:Ptt,Umacr:$tt,umacr:Dtt,uml:Rtt,UnderBar:ztt,UnderBrace:Itt,UnderBracket:Ftt,UnderParenthesis:qtt,Union:Htt,UnionPlus:Btt,Uogon:Wtt,uogon:Utt,Uopf:jtt,uopf:Gtt,UpArrowBar:Vtt,uparrow:Ktt,UpArrow:Xtt,Uparrow:Ytt,UpArrowDownArrow:Jtt,updownarrow:Ztt,UpDownArrow:Qtt,Updownarrow:tet,UpEquilibrium:eet,upharpoonleft:net,upharpoonright:ret,uplus:iet,UpperLeftArrow:oet,UpperRightArrow:set,upsi:aet,Upsi:cet,upsih:uet,Upsilon:fet,upsilon:het,UpTeeArrow:det,UpTee:pet,upuparrows:get,urcorn:vet,urcorner:met,urcrop:yet,Uring:bet,uring:wet,urtri:xet,Uscr:_et,uscr:ket,utdot:Cet,Utilde:Tet,utilde:Let,utri:Eet,utrif:Aet,uuarr:Net,Uuml:Met,uuml:Oet,uwangle:Pet,vangrt:$et,varepsilon:Det,varkappa:Ret,varnothing:zet,varphi:Iet,varpi:Fet,varpropto:qet,varr:Het,vArr:Bet,varrho:Wet,varsigma:Uet,varsubsetneq:jet,varsubsetneqq:Get,varsupsetneq:Vet,varsupsetneqq:Ket,vartheta:Xet,vartriangleleft:Yet,vartriangleright:Jet,vBar:Zet,Vbar:Qet,vBarv:tnt,Vcy:ent,vcy:nnt,vdash:rnt,vDash:int,Vdash:ont,VDash:snt,Vdashl:lnt,veebar:ant,vee:cnt,Vee:unt,veeeq:fnt,vellip:hnt,verbar:dnt,Verbar:pnt,vert:gnt,Vert:vnt,VerticalBar:mnt,VerticalLine:ynt,VerticalSeparator:bnt,VerticalTilde:wnt,VeryThinSpace:xnt,Vfr:_nt,vfr:Snt,vltri:knt,vnsub:Cnt,vnsup:Tnt,Vopf:Lnt,vopf:Ent,vprop:Ant,vrtri:Nnt,Vscr:Mnt,vscr:Ont,vsubnE:Pnt,vsubne:$nt,vsupnE:Dnt,vsupne:Rnt,Vvdash:znt,vzigzag:Int,Wcirc:Fnt,wcirc:qnt,wedbar:Hnt,wedge:Bnt,Wedge:Wnt,wedgeq:Unt,weierp:jnt,Wfr:Gnt,wfr:Vnt,Wopf:Knt,wopf:Xnt,wp:Ynt,wr:Jnt,wreath:Znt,Wscr:Qnt,wscr:trt,xcap:ert,xcirc:nrt,xcup:rrt,xdtri:irt,Xfr:ort,xfr:srt,xharr:lrt,xhArr:art,Xi:crt,xi:urt,xlarr:frt,xlArr:hrt,xmap:drt,xnis:prt,xodot:grt,Xopf:vrt,xopf:mrt,xoplus:yrt,xotime:brt,xrarr:wrt,xrArr:xrt,Xscr:_rt,xscr:Srt,xsqcup:krt,xuplus:Crt,xutri:Trt,xvee:Lrt,xwedge:Ert,Yacute:Art,yacute:Nrt,YAcy:Mrt,yacy:Ort,Ycirc:Prt,ycirc:$rt,Ycy:Drt,ycy:Rrt,yen:zrt,Yfr:Irt,yfr:Frt,YIcy:qrt,yicy:Hrt,Yopf:Brt,yopf:Wrt,Yscr:Urt,yscr:jrt,YUcy:Grt,yucy:Vrt,yuml:Krt,Yuml:Xrt,Zacute:Yrt,zacute:Jrt,Zcaron:Zrt,zcaron:Qrt,Zcy:tit,zcy:eit,Zdot:nit,zdot:rit,zeetrf:iit,ZeroWidthSpace:oit,Zeta:sit,zeta:lit,zfr:ait,Zfr:cit,ZHcy:uit,zhcy:fit,zigrarr:hit,zopf:dit,Zopf:pit,Zscr:git,zscr:vit,zwj:mit,zwnj:yit},bit="Á",wit="á",xit="Â",_it="â",Sit="´",kit="Æ",Cit="æ",Tit="À",Lit="à",Eit="&",Ait="&",Nit="Å",Mit="å",Oit="Ã",Pit="ã",$it="Ä",Dit="ä",Rit="¦",zit="Ç",Iit="ç",Fit="¸",qit="¢",Hit="©",Bit="©",Wit="¤",Uit="°",jit="÷",Git="É",Vit="é",Kit="Ê",Xit="ê",Yit="È",Jit="è",Zit="Ð",Qit="ð",tot="Ë",eot="ë",not="½",rot="¼",iot="¾",oot=">",sot=">",lot="Í",aot="í",cot="Î",uot="î",fot="¡",hot="Ì",dot="ì",pot="¿",got="Ï",vot="ï",mot="«",yot="<",bot="<",wot="¯",xot="µ",_ot="·",Sot=" ",kot="¬",Cot="Ñ",Tot="ñ",Lot="Ó",Eot="ó",Aot="Ô",Not="ô",Mot="Ò",Oot="ò",Pot="ª",$ot="º",Dot="Ø",Rot="ø",zot="Õ",Iot="õ",Fot="Ö",qot="ö",Hot="¶",Bot="±",Wot="£",Uot='"',jot='"',Got="»",Vot="®",Kot="®",Xot="§",Yot="",Jot="¹",Zot="²",Qot="³",tst="ß",est="Þ",nst="þ",rst="×",ist="Ú",ost="ú",sst="Û",lst="û",ast="Ù",cst="ù",ust="¨",fst="Ü",hst="ü",dst="Ý",pst="ý",gst="¥",vst="ÿ",mst={Aacute:bit,aacute:wit,Acirc:xit,acirc:_it,acute:Sit,AElig:kit,aelig:Cit,Agrave:Tit,agrave:Lit,amp:Eit,AMP:Ait,Aring:Nit,aring:Mit,Atilde:Oit,atilde:Pit,Auml:$it,auml:Dit,brvbar:Rit,Ccedil:zit,ccedil:Iit,cedil:Fit,cent:qit,copy:Hit,COPY:Bit,curren:Wit,deg:Uit,divide:jit,Eacute:Git,eacute:Vit,Ecirc:Kit,ecirc:Xit,Egrave:Yit,egrave:Jit,ETH:Zit,eth:Qit,Euml:tot,euml:eot,frac12:not,frac14:rot,frac34:iot,gt:oot,GT:sot,Iacute:lot,iacute:aot,Icirc:cot,icirc:uot,iexcl:fot,Igrave:hot,igrave:dot,iquest:pot,Iuml:got,iuml:vot,laquo:mot,lt:yot,LT:bot,macr:wot,micro:xot,middot:_ot,nbsp:Sot,not:kot,Ntilde:Cot,ntilde:Tot,Oacute:Lot,oacute:Eot,Ocirc:Aot,ocirc:Not,Ograve:Mot,ograve:Oot,ordf:Pot,ordm:$ot,Oslash:Dot,oslash:Rot,Otilde:zot,otilde:Iot,Ouml:Fot,ouml:qot,para:Hot,plusmn:Bot,pound:Wot,quot:Uot,QUOT:jot,raquo:Got,reg:Vot,REG:Kot,sect:Xot,shy:Yot,sup1:Jot,sup2:Zot,sup3:Qot,szlig:tst,THORN:est,thorn:nst,times:rst,Uacute:ist,uacute:ost,Ucirc:sst,ucirc:lst,Ugrave:ast,ugrave:cst,uml:ust,Uuml:fst,uuml:hst,Yacute:dst,yacute:pst,yen:gst,yuml:vst},yst="&",bst="'",wst=">",xst="<",_st='"',oy={amp:yst,apos:bst,gt:wst,lt:xst,quot:_st};var hh={};const Sst={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 kst=Xi&&Xi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hh,"__esModule",{value:!0});var cv=kst(Sst),Cst=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 Tst(t){return t>=55296&&t<=57343||t>1114111?"�":(t in cv.default&&(t=cv.default[t]),Cst(t))}hh.default=Tst;var yc=Xi&&Xi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.decodeHTML=Pr.decodeHTMLStrict=Pr.decodeXML=void 0;var gf=yc(iy),Lst=yc(mst),Est=yc(oy),uv=yc(hh),Ast=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Pr.decodeXML=sy(Est.default);Pr.decodeHTMLStrict=sy(gf.default);function sy(t){var e=ly(t);return function(r){return String(r).replace(Ast,e)}}var fv=function(t,e){return t<e?1:-1};Pr.decodeHTML=function(){for(var t=Object.keys(Lst.default).sort(fv),e=Object.keys(gf.default).sort(fv),r=0,o=0;r<e.length;r++)t[o]===e[r]?(e[r]+=";?",o++):e[r]+=";";var a=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=ly(gf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function ly(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?uv.default(parseInt(r.substr(3),16)):uv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Mn={},ay=Xi&&Xi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.escapeUTF8=Mn.escape=Mn.encodeNonAsciiHTML=Mn.encodeHTML=Mn.encodeXML=void 0;var Nst=ay(oy),cy=fy(Nst.default),uy=hy(cy);Mn.encodeXML=gy(cy);var Mst=ay(iy),dh=fy(Mst.default),Ost=hy(dh);Mn.encodeHTML=$st(dh,Ost);Mn.encodeNonAsciiHTML=gy(dh);function fy(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function hy(t){for(var e=[],r=[],o=0,a=Object.keys(t);o<a.length;o++){var u=a[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,Pst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function bc(t){return"&#x"+(t.length>1?Pst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function $st(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(dy,bc)}}var py=new RegExp(uy.source+"|"+dy.source,"g");function Dst(t){return t.replace(py,bc)}Mn.escape=Dst;function Rst(t){return t.replace(uy,bc)}Mn.escapeUTF8=Rst;function gy(t){return function(e){return e.replace(py,function(r){return t[r]||bc(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=Pr,r=Mn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function a(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=a;function u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=u;var f=Mn;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=Pr;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}})})(ry);function zst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hv(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 Ist(t,e,r){return e&&hv(t.prototype,e),r&&hv(t,r),t}function vy(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Fst(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
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 Fst(t,e){if(!!t){if(typeof t=="string")return dv(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 dv(t,e)}}function dv(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 qst=ry,pv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Hst()};function Hst(){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 la(0,5).forEach(function(e){la(0,5).forEach(function(r){la(0,5).forEach(function(o){return Bst(e,r,o,t)})})}),la(0,23).forEach(function(e){var r=e+232,o=my(e*10+8);t[r]="#"+o+o+o}),t}function Bst(t,e,r,o){var a=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[a]=Wst([u,f,h])}function my(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function Wst(t){var e=[],r=vy(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;e.push(my(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+e.join("")}function gv(t,e,r,o){var a;return e==="text"?a=Vst(r,o):e==="display"?a=jst(t,r,o):e==="xterm256Foreground"?a=_a(t,o.colors[r]):e==="xterm256Background"?a=Sa(t,o.colors[r]):e==="rgb"&&(a=Ust(t,r)),a}function Ust(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),a=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return xa(t,(r===38?"color:#":"background-color:#")+a)}function jst(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&yy(t)},1:function(){return si(t,"b")},3:function(){return si(t,"i")},4:function(){return si(t,"u")},8:function(){return xa(t,"display:none")},9:function(){return si(t,"strike")},22:function(){return xa(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return mv(t,"i")},24:function(){return mv(t,"u")},39:function(){return _a(t,r.fg)},49:function(){return Sa(t,r.bg)},53:function(){return xa(t,"text-decoration:overline")}},a;return o[e]?a=o[e]():4<e&&e<7?a=si(t,"blink"):29<e&&e<38?a=_a(t,r.colors[e-30]):39<e&&e<48?a=Sa(t,r.colors[e-40]):89<e&&e<98?a=_a(t,r.colors[8+(e-90)]):99<e&&e<108&&(a=Sa(t,r.colors[8+(e-100)])),a}function yy(t){var e=t.slice(0);return t.length=0,e.reverse().map(function(r){return"</"+r+">"}).join("")}function la(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function Gst(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function vv(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 Vst(t,e){return e.escapeXML?qst.encodeXML(t):t}function si(t,e,r){return r||(r=""),t.push(e),"<".concat(e).concat(r?' style="'.concat(r,'"'):"",">")}function xa(t,e){return si(t,"span",e)}function _a(t,e){return si(t,"span","color:"+e)}function Sa(t,e){return si(t,"span","background-color:"+e)}function mv(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return"</"+e+">"}function Kst(t,e,r){var o=!1,a=3;function u(){return""}function f(G,j){return r("xterm256Foreground",j),""}function h(G,j){return r("xterm256Background",j),""}function d(G){return e.newline?r("display",-1):r("text",G),""}function g(G,j){o=!0,j.trim().length===0&&(j="0"),j=j.trimRight(";").split(";");var rt=vy(j),Z;try{for(rt.s();!(Z=rt.n()).done;){var ct=Z.value;r("display",ct)}}catch(vt){rt.e(vt)}finally{rt.f()}return""}function v(G){return r("text",G),""}function b(G){return r("rgb",G),""}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(G,j){j>a&&o||(o=!1,t=t.replace(G.pattern,G.sub))}var N=[],A=t,L=A.length;t:for(;L>0;){for(var k=0,E=0,R=x.length;E<R;k=++E){var P=x[k];if(S(P,k),t.length!==L){L=t.length;continue t}}if(t.length===L)break;N.push(0),L=t.length}return N}function Xst(t,e,r){return e!=="text"&&(t=t.filter(Gst(vv(r))),t.push({token:e,data:r,category:vv(r)})),t}var Yst=function(){function t(e){zst(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},pv.colors,e.colors)),this.options=Object.assign({},pv,e),this.stack=[],this.stickyStack=[]}return Ist(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var a=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var d=gv(a,h.token,h.data,u);d&&f.push(d)}),Kst(r.join(""),u,function(h,d){var g=gv(a,h,d,u);g&&f.push(g),u.stream&&(o.stickyStack=Xst(o.stickyStack,h,d))}),a.length&&f.push(yy(a)),f.join("")}}]),t}(),Jst=Yst;function Zst(t,e){return e&&t.endsWith(e)}async function by(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wy(t){return new Jst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const wc=rT(),Qst=gC(wc),tlt={"h-full":"",class:"scrolls"},elt={key:0,class:"scrolls scrolls-rounded task-error"},nlt=["innerHTML"],rlt={key:1,class:"scrolls scrolls-rounded task-error"},ilt=["onClickPassive"],olt={key:0},slt={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},llt=oe({__name:"ViewReport",props:{file:null},setup(t){const e=t;function r(b,x){var S;return((S=b.result)==null?void 0:S.state)!=="fail"?[]:b.type==="test"||b.type==="benchmark"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(N=>r(N,x+1))]}function o(b){return b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(b,x){const S=wy(b);return x.map(N=>{var L,k;const A=N.result;if(A){const E=A.error;if(E){let R="";E.message.includes("\x1B")&&(R=`<b>${E.nameStr||E.name}</b>: ${S.toHtml(o(E.message))}`);const P=(L=E.stackStr)==null?void 0:L.includes("\x1B");(P||((k=E.stack)==null?void 0:k.includes("\x1B")))&&(R.length>0?R+=S.toHtml(o(P?E.stackStr:E.stack)):R=`<b>${E.nameStr||E.name}</b>: ${E.message}${S.toHtml(o(P?E.stackStr:E.stack))}`),R.length>0&&(A.htmlError=R)}}return N})}const u=St(()=>{var A;const b=e.file,x=((A=b==null?void 0:b.tasks)==null?void 0:A.flatMap(L=>r(L,0)))??[],S=b==null?void 0:b.result;if(S==null?void 0:S.error){const L={id:b.id,name:b.name,level:0,type:"suite",mode:"run",tasks:[],result:S};x.unshift(L)}return x.length>0?a(wc.value,x):x});function f(b){return b.startsWith(ff.value.root)?b.slice(ff.value.root.length):b}function h(b){var x;return((x=b.sourcePos)==null?void 0:x.line)??b.line}function d(b){var x;return((x=b.sourcePos)==null?void 0:x.column)??b.column}function g(b){var x,S;return b&&((x=b==null?void 0:b.error)==null?void 0:x.expected)&&((S=b==null?void 0:b.error)==null?void 0:S.actual)}function v(b){return QT(b.error.actual,b.error.expected,{outputTruncateLength:80})}return(b,x)=>{const S=Zi("tooltip");return dt(),At("div",tlt,[J(u).length?(dt(!0),At(ue,{key:0},lr(J(u),N=>{var A,L,k;return dt(),At("div",{key:N.id},[ht("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:kn({"margin-left":`${(A=N.result)!=null&&A.htmlError?.5:2*N.level+.5}rem`})},[fn(Xt(N.name)+" ",1),(L=N.result)!=null&&L.htmlError?(dt(),At("div",elt,[ht("pre",{innerHTML:N.result.htmlError},null,8,nlt)])):(k=N.result)!=null&&k.error?(dt(),At("div",rlt,[ht("pre",null,[ht("b",null,Xt(N.result.error.name||N.result.error.nameStr),1),fn(": "+Xt(N.result.error.message),1)]),(dt(!0),At(ue,null,lr(N.result.error.stacks,(E,R)=>{var P;return dt(),At("div",{key:R,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ht("pre",null," - "+Xt(f(E.file))+":"+Xt(h(E))+":"+Xt(d(E)),1),J(Zst)(E.file,(P=e.file)==null?void 0:P.name)?pn((dt(),At("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:G=>J(by)(E.file,h(E),d(E))},null,40,ilt)),[[S,"Open in Editor",void 0,{bottom:!0}]]):ve("",!0)])}),128)),g(N.result)?(dt(),At("pre",olt," "+Xt(`
|
|
10
|
+
${v(N.result)}`)+`
|
|
11
|
+
`,1)):ve("",!0)])):ve("",!0)],4)])}),128)):(dt(),At("div",slt," All tests passed in this file "))])}}});const alt=Yo(llt,[["__scopeId","data-v-cb2a9ae6"]]),clt={border:"b base","p-4":""},ult=["innerHTML"],flt=["textContent"],hlt=oe({__name:"ViewConsoleOutputEntry",props:{taskName:null,type:null,time:null,content:null,html:{type:Boolean}},setup(t){const e=t;function r(o){return new Date(o).toLocaleTimeString()}return(o,a)=>(dt(),At("div",clt,[ht("div",{"text-xs":"","mb-1":"",class:ge(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Xt(r(e.time))+" | "+Xt(e.taskName)+" | "+Xt(e.type),3),e.html?(dt(),At("pre",{key:0,"data-type":"html",innerHTML:e.content},null,8,ult)):(dt(),At("pre",{key:1,"data-type":"text",textContent:Xt(e.content)},null,8,flt))]))}}),dlt={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},plt={key:1,p6:""},glt=ht("pre",{inline:""},"console.log(foo)",-1),vlt=oe({__name:"ViewConsoleOutput",setup(t){const e=St(()=>{const o=ty.value;if(o){const a=wy(wc.value);return o.map(({taskId:u,type:f,time:h,content:d})=>{const g=d.trim(),v=a.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 a=o&&We.state.idMap.get(o);return a?AT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=hlt;return(f=J(e))!=null&&f.length?(dt(),At("div",dlt,[(dt(!0),At(ue,null,lr(J(e),({taskId:h,type:d,time:g,html:v,content:b})=>(dt(),At("div",{key:h,"font-mono":""},[Rt(u,{"task-name":r(h),type:d,time:g,content:b,html:v},null,8,["task-name","type","time","content","html"])]))),128))])):(dt(),At("p",plt,[fn(" Log something in your test and it would print here. (e.g. "),glt,fn(") ")]))}}});var Ou={exports:{}},yv;function Jo(){return yv||(yv=1,function(t,e){(function(r,o){t.exports=o()})(Xi,function(){var r=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),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),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),k=/PhantomJS/.test(r),E=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),P=E||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),G=E||/Mac/.test(o),j=/\bCrOS\b/.test(r),rt=/win/i.test(o),Z=N&&r.match(/Version\/(\d*\.\d*)/);Z&&(Z=Number(Z[1])),Z&&Z>=15&&(N=!1,v=!0);var ct=G&&(b||N&&(Z==null||Z<12.11)),vt=a||d&&g>=9;function kt(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var ut=function(n,i){var l=n.className,s=kt(i).exec(l);if(s){var c=l.slice(s.index+s[0].length);n.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function U(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function z(n,i){return U(n).appendChild(i)}function C(n,i,l,s){var c=document.createElement(n);if(l&&(c.className=l),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,l,s){var c=C(n,i,l,s);return c.setAttribute("role","presentation"),c}var W;document.createRange?W=function(n,i,l,s){var c=document.createRange();return c.setEnd(s||n,l),c.setStart(n,i),c}:W=function(n,i,l){var s=document.body.createTextRange();try{s.moveToElementText(n.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",i),s};function et(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 Et(n,i){var l=n.className;kt(i).test(l)||(n.className+=(l?" ":"")+i)}function qt(n,i){for(var l=n.split(" "),s=0;s<l.length;s++)l[s]&&!kt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Bt=function(n){n.select()};E?Bt=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(Bt=function(n){try{n.select()}catch{}});function Gt(n){return n.display.wrapper.ownerDocument}function ne(n){return Gt(n).defaultView}function Q(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function tt(n,i,l){i||(i={});for(var s in n)n.hasOwnProperty(s)&&(l!==!1||!i.hasOwnProperty(s))&&(i[s]=n[s]);return i}function V(n,i,l,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+=l-m%l,p=y+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=Q(this.onTimeout,this)};st.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},st.prototype.set=function(n,i){this.f=i;var l=+new Date+n;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=l)};function Ct(n,i){for(var l=0;l<n.length;++l)if(n[l]==i)return l;return-1}var de=50,Lt={toString:function(){return"CodeMirror.Pass"}},O={scroll:!1},F={origin:"*mouse"},Y={origin:"+move"};function nt(n,i,l){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+=l-c%l,s=p+1,c>=i)return s}}var ot=[""];function pt(n){for(;ot.length<=n;)ot.push(lt(ot)+" ");return ot[n]}function lt(n){return n[n.length-1]}function gt(n,i){for(var l=[],s=0;s<n.length;s++)l[s]=i(n[s],s);return l}function xt(n,i,l){for(var s=0,c=l(i);s<n.length&&l(n[s])<=c;)s++;n.splice(s,0,i)}function at(){}function $t(n,i){var l;return Object.create?l=Object.create(n):(at.prototype=n,l=new at),i&&tt(i,l),l}var Mt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Pt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Mt.test(n))}function zt(n,i){return i?i.source.indexOf("\\w")>-1&&Pt(n)?!0:i.test(n):Pt(n)}function jt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var te=/[\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 Qt(n){return n.charCodeAt(0)>=768&&te.test(n)}function se(n,i,l){for(;(l<0?i>0:i<n.length)&&Qt(n.charAt(i));)i+=l;return i}function Yt(n,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,p=s<0?Math.ceil(c):Math.floor(c);if(p==i)return n(p)?i:l;n(p)?l=p:i=p+s}}function mn(n,i,l,s){if(!n)return s(i,l,"ltr",0);for(var c=!1,p=0;p<n.length;++p){var m=n[p];(m.from<l&&m.to>i||i==l&&m.to==i)&&(s(Math.max(m.from,i),Math.min(m.to,l),m.level==1?"rtl":"ltr",p),c=!0)}c||s(i,l,"ltr")}var Ln=null;function qe(n,i,l){var s;Ln=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&&l=="before"?s=c:Ln=c),p.from==i&&(p.from!=p.to&&l!="before"?s=c:Ln=c)}return s??Ln}var Qi=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){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(_,M,$){this.level=_,this.from=M,this.to=$}return function(_,M){var $=M=="ltr"?"L":"R";if(_.length==0||M=="ltr"&&!s.test(_))return!1;for(var B=_.length,q=[],X=0;X<B;++X)q.push(l(_.charCodeAt(X)));for(var it=0,ft=$;it<B;++it){var mt=q[it];mt=="m"?q[it]=ft:ft=mt}for(var _t=0,yt=$;_t<B;++_t){var Tt=q[_t];Tt=="1"&&yt=="r"?q[_t]="n":p.test(Tt)&&(yt=Tt,Tt=="r"&&(q[_t]="R"))}for(var Dt=1,Ot=q[0];Dt<B-1;++Dt){var Ut=q[Dt];Ut=="+"&&Ot=="1"&&q[Dt+1]=="1"?q[Dt]="1":Ut==","&&Ot==q[Dt+1]&&(Ot=="1"||Ot=="n")&&(q[Dt]=Ot),Ot=Ut}for(var pe=0;pe<B;++pe){var Re=q[pe];if(Re==",")q[pe]="N";else if(Re=="%"){var _e=void 0;for(_e=pe+1;_e<B&&q[_e]=="%";++_e);for(var wn=pe&&q[pe-1]=="!"||_e<B&&q[_e]=="1"?"1":"N",ln=pe;ln<_e;++ln)q[ln]=wn;pe=_e-1}}for(var Ee=0,an=$;Ee<B;++Ee){var He=q[Ee];an=="L"&&He=="1"?q[Ee]="L":p.test(He)&&(an=He)}for(var Oe=0;Oe<B;++Oe)if(c.test(q[Oe])){var Ae=void 0;for(Ae=Oe+1;Ae<B&&c.test(q[Ae]);++Ae);for(var Ce=(Oe?q[Oe-1]:$)=="L",cn=(Ae<B?q[Ae]:$)=="L",xo=Ce==cn?Ce?"L":"R":$,Zr=Oe;Zr<Ae;++Zr)q[Zr]=xo;Oe=Ae-1}for(var Ke=[],rr,ze=0;ze<B;)if(m.test(q[ze])){var vu=ze;for(++ze;ze<B&&m.test(q[ze]);++ze);Ke.push(new w(0,vu,ze))}else{var Cr=ze,Ei=Ke.length,Ai=M=="rtl"?1:0;for(++ze;ze<B&&q[ze]!="L";++ze);for(var Qe=Cr;Qe<ze;)if(y.test(q[Qe])){Cr<Qe&&(Ke.splice(Ei,0,new w(1,Cr,Qe)),Ei+=Ai);var _o=Qe;for(++Qe;Qe<ze&&y.test(q[Qe]);++Qe);Ke.splice(Ei,0,new w(2,_o,Qe)),Ei+=Ai,Cr=Qe}else++Qe;Cr<ze&&Ke.splice(Ei,0,new w(1,Cr,ze))}return M=="ltr"&&(Ke[0].level==1&&(rr=_.match(/^\s+/))&&(Ke[0].from=rr[0].length,Ke.unshift(new w(0,0,rr[0].length))),lt(Ke).level==1&&(rr=_.match(/\s+$/))&&(lt(Ke).to-=rr[0].length,Ke.push(new w(0,B-rr[0].length,B)))),M=="rtl"?Ke.reverse():Ke}}();function be(n,i){var l=n.order;return l==null&&(l=n.order=Qi(n.text,i)),l}var nn=[],bt=function(n,i,l){if(n.addEventListener)n.addEventListener(i,l,!1);else if(n.attachEvent)n.attachEvent("on"+i,l);else{var s=n._handlers||(n._handlers={});s[i]=(s[i]||nn).concat(l)}};function Qo(n,i){return n._handlers&&n._handlers[i]||nn}function je(n,i,l){if(n.removeEventListener)n.removeEventListener(i,l,!1);else if(n.detachEvent)n.detachEvent("on"+i,l);else{var s=n._handlers,c=s&&s[i];if(c){var p=Ct(c,l);p>-1&&(s[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function me(n,i){var l=Qo(n,i);if(!!l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function Se(n,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),me(n,l||i.type,n,i),ts(i)||i.codemirrorIgnore}function wl(n){var i=n._handlers&&n._handlers.cursorActivity;if(!!i)for(var l=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)Ct(l,i[s])==-1&&l.push(i[s])}function Ye(n,i){return Qo(n,i).length>0}function Je(n){n.prototype.on=function(i,l){bt(this,i,l)},n.prototype.off=function(i,l){je(this,i,l)}}function Ge(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function bi(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function ts(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vr(n){Ge(n),bi(n)}function rn(n){return n.target||n.srcElement}function es(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),G&&n.ctrlKey&&i==1&&(i=3),i}var kc=function(){if(d&&g<9)return!1;var n=C("div");return"draggable"in n||"dragDrop"in n}(),$n;function Cc(n){if($n==null){var i=C("span","");z(n,C("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&($n=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var l=$n?C("span",""):C("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var to;function xl(n){if(to!=null)return to;var i=z(n,document.createTextNode("AخA")),l=W(i,0,1).getBoundingClientRect(),s=W(i,1,2).getBoundingClientRect();return U(n),!l||l.left==l.right?!1:to=s.right-l.right<3}var ns=`
|
|
12
|
+
|
|
13
|
+
b`.split(/\n/).length!=3?function(n){for(var i=0,l=[],s=n.length;i<=s;){var c=n.indexOf(`
|
|
14
|
+
`,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?(l.push(p.slice(0,m)),i+=m+1):(l.push(p),i=c+1)}return l}:function(n){return n.split(/\r\n?|\n/)},qr=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},Jn=function(){var n=C("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Zn=null;function _l(n){if(Zn!=null)return Zn;var i=z(n,C("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return Zn=Math.abs(l.left-s.left)>1}var Fn={},Hr={};function Sl(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fn[n]=i}function eo(n,i){Hr[n]=i}function yn(n){if(typeof n=="string"&&Hr.hasOwnProperty(n))n=Hr[n];else if(n&&typeof n.name=="string"&&Hr.hasOwnProperty(n.name)){var i=Hr[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 yn("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return yn("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function mr(n,i){i=yn(i);var l=Fn[i.name];if(!l)return mr(n,"text/plain");var s=l(n,i);if(Br.hasOwnProperty(i.name)){var c=Br[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 Br={};function kl(n,i){var l=Br.hasOwnProperty(n)?Br[n]:Br[n]={};tt(i,l)}function yr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var l={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function Wr(n,i){for(var l;n.innerMode&&(l=n.innerMode(i),!(!l||l.mode==n));)i=l.state,n=l.mode;return l||{mode:n,state:i}}function rs(n,i,l){return n.startState?n.startState(i,l):!0}var ke=function(n,i,l){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.prototype.eat=function(n){var i=this.string.charAt(this.pos),l;if(typeof n=="string"?l=i==n:l=i&&(n.test?n.test(i):n(i)),l)return++this.pos,i},ke.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},ke.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},ke.prototype.backUp=function(n){this.pos-=n},ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(n,i,l){if(typeof n=="string"){var s=function(m){return l?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)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},ke.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},ke.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Nt(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 l=n;!l.lines;)for(var s=0;;++s){var c=l.children[s],p=c.chunkSize();if(i<p){l=c;break}i-=p}return l.lines[i]}function br(n,i,l){var s=[],c=i.line;return n.iter(i.line,l.line+1,function(p){var m=p.text;c==l.line&&(m=m.slice(0,l.ch)),c==i.line&&(m=m.slice(i.ch)),s.push(m),++c}),s}function no(n,i,l){var s=[];return n.iter(i,l,function(c){s.push(c.text)}),s}function Dn(n,i){var l=i-n.height;if(l)for(var s=n;s;s=s.parent)s.height+=l}function re(n){if(n.parent==null)return null;for(var i=n.parent,l=Ct(i.lines,n),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)l+=s.children[c].chunkSize();return l+i.first}function Qn(n,i){var l=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,l+=c.chunkSize()}return l}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 l+m}function T(n,i){return i>=n.first&&i<n.first+n.size}function D(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function I(n,i,l){if(l===void 0&&(l=null),!(this instanceof I))return new I(n,i,l);this.line=n,this.ch=i,this.sticky=l}function K(n,i){return n.line-i.line||n.ch-i.ch}function It(n,i){return n.sticky==i.sticky&&K(n,i)==0}function Vt(n){return I(n.line,n.ch)}function ee(n,i){return K(n,i)<0?i:n}function Me(n,i){return K(n,i)<0?n:i}function En(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ft(n,i){if(i.line<n.first)return I(n.first,0);var l=n.first+n.size-1;return i.line>l?I(l,Nt(n,l).text.length):db(i,Nt(n,i.line).text.length)}function db(n,i){var l=n.ch;return l==null||l>i?I(n.line,i):l<0?I(n.line,0):n}function Ah(n,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(n,i[s]);return l}var Cl=function(n,i){this.state=n,this.lookAhead=i},tr=function(n,i,l,s){this.state=i,this.doc=n,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};tr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},tr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},tr.fromSaved=function(n,i,l){return i instanceof Cl?new tr(n,yr(n.mode,i.state),l,i.lookAhead):new tr(n,yr(n.mode,i),l)},tr.prototype.save=function(n){var i=n!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Cl(i,this.maxLookAhead):i};function Nh(n,i,l,s){var c=[n.state.modeGen],p={};Rh(n,i.text,n.doc.mode,l,function(_,M){return c.push(_,M)},p,s);for(var m=l.state,y=function(_){l.baseTokens=c;var M=n.state.overlays[_],$=1,B=0;l.state=!0,Rh(n,i.text,M.mode,l,function(q,X){for(var it=$;B<q;){var ft=c[$];ft>q&&c.splice($,1,q,c[$+1],ft),$+=2,B=Math.min(q,ft)}if(!!X)if(M.opaque)c.splice(it,$-it,q,"overlay "+X),$=it+2;else for(;it<$;it+=2){var mt=c[it+1];c[it+1]=(mt?mt+" ":"")+"overlay "+X}},p),l.state=m,l.baseTokens=null,l.baseTokenPos=1},w=0;w<n.state.overlays.length;++w)y(w);return{styles:c,classes:p.bgClass||p.textClass?p:null}}function Mh(n,i,l){if(!i.styles||i.styles[0]!=n.state.modeGen){var s=is(n,re(i)),c=i.text.length>n.options.maxHighlightLength&&yr(n.doc.mode,s.state),p=Nh(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),l===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function is(n,i,l){var s=n.doc,c=n.display;if(!s.mode.startState)return new tr(s,!0,i);var p=pb(n,i,l),m=p>s.first&&Nt(s,p-1).stateAfter,y=m?tr.fromSaved(s,m,p):new tr(s,rs(s.mode),p);return s.iter(p,i,function(w){Tc(n,w.text,y);var _=y.line;w.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function Tc(n,i,l,s){var c=n.doc.mode,p=new ke(i,n.options.tabSize,l);for(p.start=p.pos=s||0,i==""&&Oh(c,l.state);!p.eol();)Lc(c,p,l.state),p.start=p.pos}function Oh(n,i){if(n.blankLine)return n.blankLine(i);if(!!n.innerMode){var l=Wr(n,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Lc(n,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=Wr(n,l).mode);var p=n.token(i,l);if(i.pos>i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var Ph=function(n,i,l){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=l};function $h(n,i,l,s){var c=n.doc,p=c.mode,m;i=Ft(c,i);var y=Nt(c,i.line),w=is(n,i.line,l),_=new ke(y.text,n.options.tabSize,w),M;for(s&&(M=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Lc(p,_,w.state),s&&M.push(new Ph(_,m,yr(c.mode,w.state)));return s?M:new Ph(_,m,w.state)}function Dh(n,i){if(n)for(;;){var l=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;n=n.slice(0,l.index)+n.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";i[s]==null?i[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+l[2])}return n}function Rh(n,i,l,s,c,p,m){var y=l.flattenSpans;y==null&&(y=n.options.flattenSpans);var w=0,_=null,M=new ke(i,n.options.tabSize,s),$,B=n.options.addModeClass&&[null];for(i==""&&Dh(Oh(l,s.state),p);!M.eol();){if(M.pos>n.options.maxHighlightLength?(y=!1,m&&Tc(n,i,s,M.pos),M.pos=i.length,$=null):$=Dh(Lc(l,M,s.state,B),p),B){var q=B[0].name;q&&($="m-"+($?q+" "+$:q))}if(!y||_!=$){for(;w<M.start;)w=Math.min(M.start,w+5e3),c(w,_);_=$}M.start=M.pos}for(;w<M.pos;){var X=Math.min(M.pos,w+5e3);c(X,_),w=X}}function pb(n,i,l){for(var s,c,p=n.doc,m=l?-1:i-(n.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=p.first)return p.first;var w=Nt(p,y-1),_=w.stateAfter;if(_&&(!l||y+(_ instanceof Cl?_.lookAhead:0)<=p.modeFrontier))return y;var M=V(w.text,null,n.options.tabSize);(c==null||s>M)&&(c=y-1,s=M)}return c}function gb(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var l=n.first,s=i-1;s>l;s--){var c=Nt(n,s).stateAfter;if(c&&(!(c instanceof Cl)||s+c.lookAhead<i)){l=s+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,l)}}var zh=!1,wr=!1;function vb(){zh=!0}function mb(){wr=!0}function Tl(n,i,l){this.marker=n,this.from=i,this.to=l}function os(n,i){if(n)for(var l=0;l<n.length;++l){var s=n[l];if(s.marker==i)return s}}function yb(n,i){for(var l,s=0;s<n.length;++s)n[s]!=i&&(l||(l=[])).push(n[s]);return l}function bb(n,i,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.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 wb(n,i,l){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"&&(!l||!p.marker.insertLeft)){var w=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(s||(s=[])).push(new Tl(m,p.from,w?null:p.to))}}return s}function xb(n,i,l){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"&&(!l||p.marker.insertLeft)){var w=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(s||(s=[])).push(new Tl(m,w?null:p.from-i,p.to==null?null:p.to-i))}}return s}function Ec(n,i){if(i.full)return null;var l=T(n,i.from.line)&&Nt(n,i.from.line).markedSpans,s=T(n,i.to.line)&&Nt(n,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,p=i.to.ch,m=K(i.from,i.to)==0,y=wb(l,c,m),w=xb(s,p,m),_=i.text.length==1,M=lt(i.text).length+(_?c:0);if(y)for(var $=0;$<y.length;++$){var B=y[$];if(B.to==null){var q=os(w,B.marker);q?_&&(B.to=q.to==null?null:q.to+M):B.to=c}}if(w)for(var X=0;X<w.length;++X){var it=w[X];if(it.to!=null&&(it.to+=M),it.from==null){var ft=os(y,it.marker);ft||(it.from=M,_&&(y||(y=[])).push(it))}else it.from+=M,_&&(y||(y=[])).push(it)}y&&(y=Ih(y)),w&&w!=y&&(w=Ih(w));var mt=[y];if(!_){var _t=i.text.length-2,yt;if(_t>0&&y)for(var Tt=0;Tt<y.length;++Tt)y[Tt].to==null&&(yt||(yt=[])).push(new Tl(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(w)}return mt}function Ih(n){for(var i=0;i<n.length;++i){var l=n[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function _b(n,i,l){var s=null;if(n.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var X=0;X<q.markedSpans.length;++X){var it=q.markedSpans[X].marker;it.readOnly&&(!s||Ct(s,it)==-1)&&(s||(s=[])).push(it)}}),!s)return null;for(var c=[{from:i,to:l}],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(!(K(_.to,y.from)<0||K(_.from,y.to)>0)){var M=[w,1],$=K(_.from,y.from),B=K(_.to,y.to);($<0||!m.inclusiveLeft&&!$)&&M.push({from:_.from,to:y.from}),(B>0||!m.inclusiveRight&&!B)&&M.push({from:y.to,to:_.to}),c.splice.apply(c,M),w+=M.length-3}}return c}function Fh(n){var i=n.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(n);n.markedSpans=null}}function qh(n,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(n);n.markedSpans=i}}function Ll(n){return n.inclusiveLeft?-1:0}function El(n){return n.inclusiveRight?1:0}function Ac(n,i){var l=n.lines.length-i.lines.length;if(l!=0)return l;var s=n.find(),c=i.find(),p=K(s.from,c.from)||Ll(n)-Ll(i);if(p)return-p;var m=K(s.to,c.to)||El(n)-El(i);return m||i.id-n.id}function Hh(n,i){var l=wr&&n.markedSpans,s;if(l)for(var c=void 0,p=0;p<l.length;++p)c=l[p],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Ac(s,c.marker)<0)&&(s=c.marker);return s}function Bh(n){return Hh(n,!0)}function Al(n){return Hh(n,!1)}function Sb(n,i){var l=wr&&n.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var p=l[c];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!s||Ac(s,p.marker)<0)&&(s=p.marker)}return s}function Wh(n,i,l,s,c){var p=Nt(n,i),m=wr&&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),M=K(_.from,l)||Ll(w.marker)-Ll(c),$=K(_.to,s)||El(w.marker)-El(c);if(!(M>=0&&$<=0||M<=0&&$>=0)&&(M<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.to,l)>=0:K(_.to,l)>0)||M>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.from,s)<=0:K(_.from,s)<0)))return!0}}}function qn(n){for(var i;i=Bh(n);)n=i.find(-1,!0).line;return n}function kb(n){for(var i;i=Al(n);)n=i.find(1,!0).line;return n}function Cb(n){for(var i,l;i=Al(n);)n=i.find(1,!0).line,(l||(l=[])).push(n);return l}function Nc(n,i){var l=Nt(n,i),s=qn(l);return l==s?i:re(s)}function Uh(n,i){if(i>n.lastLine())return i;var l=Nt(n,i),s;if(!Ur(n,l))return i;for(;s=Al(l);)l=s.find(1,!0).line;return re(l)+1}function Ur(n,i){var l=wr&&i.markedSpans;if(l){for(var s=void 0,c=0;c<l.length;++c)if(s=l[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Mc(n,i,s))return!0}}}function Mc(n,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Mc(n,s.line,os(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.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==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Mc(n,i,c))return!0}function xr(n){n=qn(n);for(var i=0,l=n.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==n)break;i+=c.height}for(var p=l.parent;p;l=p,p=l.parent)for(var m=0;m<p.children.length;++m){var y=p.children[m];if(y==l)break;i+=y.height}return i}function Nl(n){if(n.height==0)return 0;for(var i=n.text.length,l,s=n;l=Bh(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=n;l=Al(s);){var p=l.find(0,!0);i-=s.text.length-p.from.ch,s=p.to.line,i+=s.text.length-p.to.ch}return i}function Oc(n){var i=n.display,l=n.doc;i.maxLine=Nt(l,l.first),i.maxLineLength=Nl(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Nl(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var ro=function(n,i,l){this.text=n,qh(this,i),this.height=l?l(this):1};ro.prototype.lineNo=function(){return re(this)},Je(ro);function Tb(n,i,l,s){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Fh(n),qh(n,l);var c=s?s(n):1;c!=n.height&&Dn(n,c)}function Lb(n){n.parent=null,Fh(n)}var Eb={},Ab={};function jh(n,i){if(!n||/^\s*$/.test(n))return null;var l=i.addModeClass?Ab:Eb;return l[n]||(l[n]=n.replace(/\S+/g,"cm-$&"))}function Gh(n,i){var l=H("span",null,null,v?"padding-right: .1px":null),s={pre:H("pre",[l],"CodeMirror-line"),content:l,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=Mb,xl(n.display.measure)&&(m=be(p,n.doc.direction))&&(s.addToken=Pb(s.addToken,m)),s.map=[];var y=i!=n.display.externalMeasured&&re(p);$b(p,s,Mh(n,p,y)),p.styleClasses&&(p.styleClasses.bgClass&&(s.bgClass=qt(p.styleClasses.bgClass,s.bgClass||"")),p.styleClasses.textClass&&(s.textClass=qt(p.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Cc(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=qt(s.pre.className,s.textClass||"")),s}function Nb(n){var i=C("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Mb(n,i,l,s,c,p,m){if(!!i){var y=n.splitSpaces?Ob(i,n.trailingSpace):i,w=n.cm.state.specialChars,_=!1,M;if(!w.test(i))n.col+=i.length,M=document.createTextNode(y),n.map.push(n.pos,n.pos+i.length,M),d&&g<9&&(_=!0),n.pos+=i.length;else{M=document.createDocumentFragment();for(var $=0;;){w.lastIndex=$;var B=w.exec(i),q=B?B.index-$:i.length-$;if(q){var X=document.createTextNode(y.slice($,$+q));d&&g<9?M.appendChild(C("span",[X])):M.appendChild(X),n.map.push(n.pos,n.pos+q,X),n.col+=q,n.pos+=q}if(!B)break;$+=q+1;var it=void 0;if(B[0]==" "){var ft=n.cm.options.tabSize,mt=ft-n.col%ft;it=M.appendChild(C("span",pt(mt),"cm-tab")),it.setAttribute("role","presentation"),it.setAttribute("cm-text"," "),n.col+=mt}else B[0]=="\r"||B[0]==`
|
|
15
|
+
`?(it=M.appendChild(C("span",B[0]=="\r"?"␍":"","cm-invalidchar")),it.setAttribute("cm-text",B[0]),n.col+=1):(it=n.cm.options.specialCharPlaceholder(B[0]),it.setAttribute("cm-text",B[0]),d&&g<9?M.appendChild(C("span",[it])):M.appendChild(it),n.col+=1);n.map.push(n.pos,n.pos+1,it),n.pos++}}if(n.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||p||m){var _t=l||"";s&&(_t+=s),c&&(_t+=c);var yt=C("span",[M],_t,p);if(m)for(var Tt in m)m.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&&yt.setAttribute(Tt,m[Tt]);return n.content.appendChild(yt)}n.content.appendChild(M)}}function Ob(n,i){if(n.length>1&&!/ /.test(n))return n;for(var l=i,s="",c=0;c<n.length;c++){var p=n.charAt(c);p==" "&&l&&(c==n.length-1||n.charCodeAt(c+1)==32)&&(p=" "),s+=p,l=p==" "}return s}function Pb(n,i){return function(l,s,c,p,m,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,M=_+s.length;;){for(var $=void 0,B=0;B<i.length&&($=i[B],!($.to>_&&$.from<=_));B++);if($.to>=M)return n(l,s,c,p,m,y,w);n(l,s.slice(0,$.to-_),c,p,null,y,w),p=null,s=s.slice($.to-_),_=$.to}}}function Vh(n,i,l,s){var c=!s&&l.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",l.id)),c&&(n.cm.display.input.setUneditable(c),n.content.appendChild(c)),n.pos+=i,n.trailingSpace=!1}function $b(n,i,l){var s=n.markedSpans,c=n.text,p=0;if(!s){for(var m=1;m<l.length;m+=2)i.addToken(i,c.slice(p,p=l[m]),jh(l[m+1],i.cm.options));return}for(var y=c.length,w=0,_=1,M="",$,B,q=0,X,it,ft,mt,_t;;){if(q==w){X=it=ft=B="",_t=null,mt=null,q=1/0;for(var yt=[],Tt=void 0,Dt=0;Dt<s.length;++Dt){var Ot=s[Dt],Ut=Ot.marker;if(Ut.type=="bookmark"&&Ot.from==w&&Ut.widgetNode)yt.push(Ut);else if(Ot.from<=w&&(Ot.to==null||Ot.to>w||Ut.collapsed&&Ot.to==w&&Ot.from==w)){if(Ot.to!=null&&Ot.to!=w&&q>Ot.to&&(q=Ot.to,it=""),Ut.className&&(X+=" "+Ut.className),Ut.css&&(B=(B?B+";":"")+Ut.css),Ut.startStyle&&Ot.from==w&&(ft+=" "+Ut.startStyle),Ut.endStyle&&Ot.to==q&&(Tt||(Tt=[])).push(Ut.endStyle,Ot.to),Ut.title&&((_t||(_t={})).title=Ut.title),Ut.attributes)for(var pe in Ut.attributes)(_t||(_t={}))[pe]=Ut.attributes[pe];Ut.collapsed&&(!mt||Ac(mt.marker,Ut)<0)&&(mt=Ot)}else Ot.from>w&&q>Ot.from&&(q=Ot.from)}if(Tt)for(var Re=0;Re<Tt.length;Re+=2)Tt[Re+1]==q&&(it+=" "+Tt[Re]);if(!mt||mt.from==w)for(var _e=0;_e<yt.length;++_e)Vh(i,0,yt[_e]);if(mt&&(mt.from||0)==w){if(Vh(i,(mt.to==null?y+1:mt.to)-w,mt.marker,mt.from==null),mt.to==null)return;mt.to==w&&(mt=!1)}}if(w>=y)break;for(var wn=Math.min(y,q);;){if(M){var ln=w+M.length;if(!mt){var Ee=ln>wn?M.slice(0,wn-w):M;i.addToken(i,Ee,$?$+X:X,ft,w+Ee.length==q?it:"",B,_t)}if(ln>=wn){M=M.slice(wn-w),w=wn;break}w=ln,ft=""}M=c.slice(p,p=l[_++]),$=jh(l[_++],i.cm.options)}}}function Kh(n,i,l){this.line=i,this.rest=Cb(i),this.size=this.rest?re(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ur(n,i)}function Ml(n,i,l){for(var s=[],c,p=i;p<l;p=c){var m=new Kh(n.doc,Nt(n.doc,p),p);c=p+m.size,s.push(m)}return s}var io=null;function Db(n){io?io.ops.push(n):n.ownsGroup=io={ops:[n],delayedCallbacks:[]}}function Rb(n){var i=n.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].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(l<i.length)}function zb(n,i){var l=n.ownsGroup;if(!!l)try{Rb(l)}finally{io=null,i(l)}}var ss=null;function Pe(n,i){var l=Qo(n,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;io?c=io.delayedCallbacks:ss?c=ss:(c=ss=[],setTimeout(Ib,0));for(var p=function(y){c.push(function(){return l[y].apply(null,s)})},m=0;m<l.length;++m)p(m)}}function Ib(){var n=ss;ss=null;for(var i=0;i<n.length;++i)n[i]()}function Xh(n,i,l,s){for(var c=0;c<i.changes.length;c++){var p=i.changes[c];p=="text"?qb(n,i):p=="gutter"?Jh(n,i,l,s):p=="class"?Pc(n,i):p=="widget"&&Hb(n,i,s)}i.changes=null}function ls(n){return n.node==n.text&&(n.node=C("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 Fb(n,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var s=ls(i);i.background=s.insertBefore(C("div",null,l),s.firstChild),n.display.input.setUneditable(i.background)}}function Yh(n,i){var l=n.display.externalMeasured;return l&&l.line==i.line?(n.display.externalMeasured=null,i.measure=l.measure,l.built):Gh(n,i)}function qb(n,i){var l=i.text.className,s=Yh(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,Pc(n,i)):l&&(i.text.className=l)}function Pc(n,i){Fb(n,i),i.line.wrapClass?ls(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var l=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=l||""}function Jh(n,i,l,s){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=ls(i);i.gutterBackground=C("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=ls(i),y=i.gutter=C("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(C("div",D(n.options,l),"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,M=p.hasOwnProperty(_)&&p[_];M&&y.appendChild(C("div",[M],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function Hb(n,i,l){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);Zh(n,i,l)}function Bb(n,i,l,s){var c=Yh(n,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Pc(n,i),Jh(n,i,l,s),Zh(n,i,s),i.node}function Zh(n,i,l){if(Qh(n,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Qh(n,i.rest[s],i,l,!1)}function Qh(n,i,l,s,c){if(!!i.widgets)for(var p=ls(l),m=0,y=i.widgets;m<y.length;++m){var w=y[m],_=C("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Wb(w,_,l,s),n.display.input.setUneditable(_),c&&w.above?p.insertBefore(_,l.gutter||l.text):p.appendChild(_),Pe(w,"redraw")}}function Wb(n,i,l,s){if(n.noHScroll){(l.alignable||(l.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 as(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!et(document.body,n.node)){var l="position: relative;";n.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),z(i.display.measure,C("div",[n.node],null,l))}return n.height=n.node.parentNode.offsetHeight}function _r(n,i){for(var l=rn(i);l!=n.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==n.sizer&&l!=n.mover)return!0}function Ol(n){return n.lineSpace.offsetTop}function $c(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function td(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=z(n.measure,C("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(n.cachedPaddingH=s),s}function er(n){return de-n.display.nativeBarWidth}function wi(n){return n.display.scroller.clientWidth-er(n)-n.display.barWidth}function Dc(n){return n.display.scroller.clientHeight-er(n)-n.display.barHeight}function Ub(n,i,l){var s=n.options.lineWrapping,c=s&&wi(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-l.top)}}p.push(l.bottom-l.top)}}function ed(n,i,l){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(re(n.rest[c])>l)return{map:n.measure.maps[c],cache:n.measure.caches[c],before:!0}}}function jb(n,i){i=qn(i);var l=re(i),s=n.display.externalMeasured=new Kh(n.doc,i,l);s.lineN=l;var c=s.built=Gh(n,s);return s.text=c.pre,z(n.display.lineMeasure,c.pre),s}function nd(n,i,l,s){return nr(n,oo(n,i),l,s)}function Rc(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Si(n,i)];var l=n.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function oo(n,i){var l=re(i),s=Rc(n,l);s&&!s.text?s=null:s&&s.changes&&(Xh(n,s,l,Hc(n)),n.curOp.forceUpdate=!0),s||(s=jb(n,i));var c=ed(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function nr(n,i,l,s,c){i.before&&(l=-1);var p=l+(s||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Ub(n,i.view,i.rect),i.hasHeights=!0),m=Vb(n,i,l,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 rd={left:0,right:0,top:0,bottom:0};function id(n,i,l){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&&l==(s.insertLeft?"left":"right")&&(m=l),l=="left"&&c==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)s=n[(_-=3)+2],m="left";if(l=="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 Gb(n,i){var l=rd;if(i=="left")for(var s=0;s<n.length&&(l=n[s]).left==l.right;s++);else for(var c=n.length-1;c>=0&&(l=n[c]).left==l.right;c--);return l}function Vb(n,i,l,s){var c=id(i.map,l,s),p=c.node,m=c.start,y=c.end,w=c.collapse,_;if(p.nodeType==3){for(var M=0;M<4;M++){for(;m&&Qt(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&Qt(i.line.text.charAt(c.coverStart+y));)++y;if(d&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=p.parentNode.getBoundingClientRect():_=Gb(W(p,m,y).getClientRects(),s),_.left||_.right||m==0)break;y=m,m=m-1,w="right"}d&&g<11&&(_=Kb(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 B=p.parentNode.getClientRects()[0];B?_={left:B.left,right:B.left+lo(n.display),top:B.top,bottom:B.bottom}:_=rd}for(var q=_.top-i.rect.top,X=_.bottom-i.rect.top,it=(q+X)/2,ft=i.view.measure.heights,mt=0;mt<ft.length-1&&!(it<ft[mt]);mt++);var _t=mt?ft[mt-1]:0,yt=ft[mt],Tt={left:(w=="right"?_.right:_.left)-i.rect.left,right:(w=="left"?_.left:_.right)-i.rect.left,top:_t,bottom:yt};return!_.left&&!_.right&&(Tt.bogus=!0),n.options.singleCursorHeightPerLine||(Tt.rtop=q,Tt.rbottom=X),Tt}function Kb(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_l(n))return i;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*s,bottom:i.bottom*s}}function od(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 sd(n){n.display.externalMeasure=null,U(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)od(n.display.view[i])}function cs(n){sd(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function ld(n){return x&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function ad(n){return x&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function zc(n){var i=qn(n),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=as(l[c]));return s}function Pl(n,i,l,s,c){if(!c){var p=zc(i);l.top+=p,l.bottom+=p}if(s=="line")return l;s||(s="local");var m=xr(i);if(s=="local"?m+=Ol(n.display):m-=n.display.viewOffset,s=="page"||s=="window"){var y=n.display.lineSpace.getBoundingClientRect();m+=y.top+(s=="window"?0:ad(Gt(n)));var w=y.left+(s=="window"?0:ld(Gt(n)));l.left+=w,l.right+=w}return l.top+=m,l.bottom+=m,l}function cd(n,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=ld(Gt(n)),c-=ad(Gt(n));else if(l=="local"||!l){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 $l(n,i,l,s,c){return s||(s=Nt(n.doc,i.line)),Pl(n,s,nd(n,s,i.ch,c),l)}function Hn(n,i,l,s,c,p){s=s||Nt(n.doc,i.line),c||(c=oo(n,s));function m(X,it){var ft=nr(n,c,X,it?"right":"left",p);return it?ft.left=ft.right:ft.right=ft.left,Pl(n,s,ft,l)}var y=be(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 M(X,it,ft){var mt=y[it],_t=mt.level==1;return m(ft?X-1:X,_t!=ft)}var $=qe(y,w,_),B=Ln,q=M(w,$,_=="before");return B!=null&&(q.other=M(w,B,_!="before")),q}function ud(n,i){var l=0;i=Ft(n.doc,i),n.options.lineWrapping||(l=lo(n.display)*i.ch);var s=Nt(n.doc,i.line),c=xr(s)+Ol(n.display);return{left:l,right:l,top:c,bottom:c+s.height}}function Ic(n,i,l,s,c){var p=I(n,i,l);return p.xRel=c,s&&(p.outside=s),p}function Fc(n,i,l){var s=n.doc;if(l+=n.display.viewOffset,l<0)return Ic(s.first,0,null,-1,-1);var c=Qn(s,l),p=s.first+s.size-1;if(c>p)return Ic(s.first+s.size-1,Nt(s,p).text.length,null,1,1);i<0&&(i=0);for(var m=Nt(s,c);;){var y=Xb(n,m,c,i,l),w=Sb(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;m=Nt(s,c=_.line)}}function fd(n,i,l,s){s-=zc(i);var c=i.text.length,p=Yt(function(m){return nr(n,l,m-1).bottom<=s},c,0);return c=Yt(function(m){return nr(n,l,m).top>s},p,c),{begin:p,end:c}}function hd(n,i,l,s){l||(l=oo(n,i));var c=Pl(n,i,nr(n,l,s),"line").top;return fd(n,i,l,c)}function qc(n,i,l,s){return n.bottom<=l?!1:n.top>l?!0:(s?n.left:n.right)>i}function Xb(n,i,l,s,c){c-=xr(i);var p=oo(n,i),m=zc(i),y=0,w=i.text.length,_=!0,M=be(i,n.doc.direction);if(M){var $=(n.options.lineWrapping?Jb:Yb)(n,i,l,p,M,s,c);_=$.level!=1,y=_?$.from:$.to-1,w=_?$.to:$.from-1}var B=null,q=null,X=Yt(function(Dt){var Ot=nr(n,p,Dt);return Ot.top+=m,Ot.bottom+=m,qc(Ot,s,c,!1)?(Ot.top<=c&&Ot.left<=s&&(B=Dt,q=Ot),!0):!1},y,w),it,ft,mt=!1;if(q){var _t=s-q.left<q.right-s,yt=_t==_;X=B+(yt?0:1),ft=yt?"after":"before",it=_t?q.left:q.right}else{!_&&(X==w||X==y)&&X++,ft=X==0?"after":X==i.text.length?"before":nr(n,p,X-(_?1:0)).bottom+m<=c==_?"after":"before";var Tt=Hn(n,I(l,X,ft),"line",i,p);it=Tt.left,mt=c<Tt.top?-1:c>=Tt.bottom?1:0}return X=se(i.text,X,1),Ic(l,X,ft,mt,s-it)}function Yb(n,i,l,s,c,p,m){var y=Yt(function($){var B=c[$],q=B.level!=1;return qc(Hn(n,I(l,q?B.to:B.from,q?"before":"after"),"line",i,s),p,m,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,M=Hn(n,I(l,_?w.from:w.to,_?"after":"before"),"line",i,s);qc(M,p,m,!0)&&M.top>m&&(w=c[y-1])}return w}function Jb(n,i,l,s,c,p,m){var y=fd(n,i,s,m),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var M=null,$=null,B=0;B<c.length;B++){var q=c[B];if(!(q.from>=_||q.to<=w)){var X=q.level!=1,it=nr(n,s,X?Math.min(_,q.to)-1:Math.max(w,q.from)).right,ft=it<p?p-it+1e9:it-p;(!M||$>ft)&&(M=q,$=ft)}}return M||(M=c[c.length-1]),M.from<w&&(M={from:w,to:M.to,level:M.level}),M.to>_&&(M={from:M.from,to:_,level:M.level}),M}var xi;function so(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(xi==null){xi=C("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)xi.appendChild(document.createTextNode("x")),xi.appendChild(C("br"));xi.appendChild(document.createTextNode("x"))}z(n.measure,xi);var l=xi.offsetHeight/50;return l>3&&(n.cachedTextHeight=l),U(n.measure),l||1}function lo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=C("span","xxxxxxxxxx"),l=C("pre",[i],"CodeMirror-line-like");z(n.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(n.cachedCharWidth=c),c||10}function Hc(n){for(var i=n.display,l={},s={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var y=n.display.gutterSpecs[m].className;l[y]=p.offsetLeft+p.clientLeft+c,s[y]=p.clientWidth}return{fixedPos:Bc(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Bc(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function dd(n){var i=so(n.display),l=n.options.lineWrapping,s=l&&Math.max(5,n.display.scroller.clientWidth/lo(n.display)-3);return function(c){if(Ur(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 l?p+(Math.ceil(c.text.length/s)||1)*i:p+i}}function Wc(n){var i=n.doc,l=dd(n);i.iter(function(s){var c=l(s);c!=s.height&&Dn(s,c)})}function _i(n,i,l,s){var c=n.display;if(!l&&rn(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=Fc(n,p,m),_;if(s&&w.xRel>0&&(_=Nt(n.doc,w.line).text).length==w.ch){var M=V(_,_.length,n.options.tabSize)-_.length;w=I(w.line,Math.max(0,Math.round((p-td(n.display).left)/lo(n.display))-M))}return w}function Si(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var l=n.display.view,s=0;s<l.length;s++)if(i-=l[s].size,i<0)return s}function on(n,i,l,s){i==null&&(i=n.doc.first),l==null&&(l=n.doc.first+n.doc.size),s||(s=0);var c=n.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=c.viewTo)wr&&Nc(n.doc,i)<c.viewTo&&Gr(n);else if(l<=c.viewFrom)wr&&Uh(n.doc,l+s)>c.viewFrom?Gr(n):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Gr(n);else if(i<=c.viewFrom){var p=Dl(n,l,l+s,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=s):Gr(n)}else if(l>=c.viewTo){var m=Dl(n,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):Gr(n)}else{var y=Dl(n,i,i,-1),w=Dl(n,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Ml(n,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):Gr(n)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function jr(n,i,l){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[Si(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Ct(m,l)==-1&&m.push(l)}}}function Gr(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Dl(n,i,l,s){var c=Si(n,i),p,m=n.display.view;if(!wr||l==n.doc.first+n.doc.size)return{index:c,lineN:l};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,l+=p}for(;Nc(n.doc,l)!=l;){if(c==(s<0?0:m.length-1))return null;l+=s*m[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function Zb(n,i,l){var s=n.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Ml(n,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Ml(n,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(Si(n,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Ml(n,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,Si(n,l)))),s.viewTo=l}function pd(n){for(var i=n.display.view,l=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function us(n){n.display.input.showSelection(n.display.input.prepareSelection())}function gd(n,i){i===void 0&&(i=!0);var l=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<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var w=l.sel.ranges[y];if(!(w.from().line>=n.display.viewTo||w.to().line<n.display.viewFrom)){var _=w.empty();if(m){var M=m(n,w);M&&Uc(n,M,c)}else(_||n.options.showCursorWhenSelecting)&&Uc(n,w.head,c);_||Qb(n,w,p)}}return s}function Uc(n,i,l){var s=Hn(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),c=l.appendChild(C("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=$l(n,i,"div",null,null),m=p.right-p.left;c.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(C("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 Rl(n,i){return n.top-i.top||n.left-i.left}function Qb(n,i,l){var s=n.display,c=n.doc,p=document.createDocumentFragment(),m=td(n.display),y=m.left,w=Math.max(s.sizerWidth,wi(n)-s.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function M(yt,Tt,Dt,Ot){Tt<0&&(Tt=0),Tt=Math.round(Tt),Ot=Math.round(Ot),p.appendChild(C("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
|
|
16
|
+
top: `+Tt+"px; width: "+(Dt??w-yt)+`px;
|
|
17
|
+
height: `+(Ot-Tt)+"px"))}function $(yt,Tt,Dt){var Ot=Nt(c,yt),Ut=Ot.text.length,pe,Re;function _e(Ee,an){return $l(n,I(yt,Ee),"div",Ot,an)}function wn(Ee,an,He){var Oe=hd(n,Ot,null,Ee),Ae=an=="ltr"==(He=="after")?"left":"right",Ce=He=="after"?Oe.begin:Oe.end-(/\s/.test(Ot.text.charAt(Oe.end-1))?2:1);return _e(Ce,Ae)[Ae]}var ln=be(Ot,c.direction);return mn(ln,Tt||0,Dt??Ut,function(Ee,an,He,Oe){var Ae=He=="ltr",Ce=_e(Ee,Ae?"left":"right"),cn=_e(an-1,Ae?"right":"left"),xo=Tt==null&&Ee==0,Zr=Dt==null&&an==Ut,Ke=Oe==0,rr=!ln||Oe==ln.length-1;if(cn.top-Ce.top<=3){var ze=(_?xo:Zr)&&Ke,vu=(_?Zr:xo)&&rr,Cr=ze?y:(Ae?Ce:cn).left,Ei=vu?w:(Ae?cn:Ce).right;M(Cr,Ce.top,Ei-Cr,Ce.bottom)}else{var Ai,Qe,_o,mu;Ae?(Ai=_&&xo&&Ke?y:Ce.left,Qe=_?w:wn(Ee,He,"before"),_o=_?y:wn(an,He,"after"),mu=_&&Zr&&rr?w:cn.right):(Ai=_?wn(Ee,He,"before"):y,Qe=!_&&xo&&Ke?w:Ce.right,_o=!_&&Zr&&rr?y:cn.left,mu=_?wn(an,He,"after"):w),M(Ai,Ce.top,Qe-Ai,Ce.bottom),Ce.bottom<cn.top&&M(y,Ce.bottom,null,cn.top),M(_o,cn.top,mu-_o,cn.bottom)}(!pe||Rl(Ce,pe)<0)&&(pe=Ce),Rl(cn,pe)<0&&(pe=cn),(!Re||Rl(Ce,Re)<0)&&(Re=Ce),Rl(cn,Re)<0&&(Re=cn)}),{start:pe,end:Re}}var B=i.from(),q=i.to();if(B.line==q.line)$(B.line,B.ch,q.ch);else{var X=Nt(c,B.line),it=Nt(c,q.line),ft=qn(X)==qn(it),mt=$(B.line,B.ch,ft?X.text.length+1:null).end,_t=$(q.line,ft?0:null,q.ch).start;ft&&(mt.top<_t.top-2?(M(mt.right,mt.top,null,mt.bottom),M(y,_t.top,_t.left,_t.bottom)):M(mt.right,mt.top,_t.left-mt.right,mt.bottom)),mt.bottom<_t.top&&M(y,mt.bottom,null,_t.top)}l.appendChild(p)}function jc(n){if(!!n.state.focused){var i=n.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||ao(n),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function vd(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Vc(n))}function Gc(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&ao(n))},100)}function Vc(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,Et(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()),jc(n))}function ao(n,i){n.state.delayingBlurEvent||(n.state.focused&&(me(n,"blur",n,i),n.state.focused=!1,ut(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function zl(n){for(var i=n.display,l=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,M=0;if(!y.hidden){if(c+=y.line.height,d&&g<8){var $=y.node.offsetTop+y.node.offsetHeight;_=$-l,l=$}else{var B=y.node.getBoundingClientRect();_=B.bottom-B.top,!w&&y.text.firstChild&&(M=y.text.firstChild.getBoundingClientRect().right-B.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(p-=q),Dn(y.line,_),md(y.line),y.rest))for(var X=0;X<y.rest.length;X++)md(y.rest[X]);if(M>n.display.sizerWidth){var it=Math.ceil(M/lo(n.display));it>n.display.maxLineLength&&(n.display.maxLineLength=it,n.display.maxLine=y.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function md(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var l=n.widgets[i],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function Il(n,i,l){var s=l&&l.top!=null?Math.max(0,l.top):n.scroller.scrollTop;s=Math.floor(s-Ol(n));var c=l&&l.bottom!=null?l.bottom:s+n.wrapper.clientHeight,p=Qn(i,s),m=Qn(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<p?(p=y,m=Qn(i,xr(Nt(i,y))+n.wrapper.clientHeight)):Math.min(w,i.lastLine())>=m&&(p=Qn(i,xr(Nt(i,w))-n.wrapper.clientHeight),m=w)}return{from:p,to:Math.max(m,p+1)}}function tw(n,i){if(!Se(n,"scrollCursorIntoView")){var l=n.display,s=l.sizer.getBoundingClientRect(),c=null,p=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!k){var m=C("div","",null,`position: absolute;
|
|
18
|
+
top: `+(i.top-l.viewOffset-Ol(n.display))+`px;
|
|
19
|
+
height: `+(i.bottom-i.top+er(n)+l.barHeight)+`px;
|
|
20
|
+
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 ew(n,i,l,s){s==null&&(s=0);var c;!n.options.lineWrapping&&i==l&&(l=i.sticky=="before"?I(i.line,i.ch+1,"before"):i,i=i.ch?I(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,y=Hn(n,i),w=!l||l==i?y:Hn(n,l);c={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-s,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+s};var _=Kc(n,c),M=n.doc.scrollTop,$=n.doc.scrollLeft;if(_.scrollTop!=null&&(hs(n,_.scrollTop),Math.abs(n.doc.scrollTop-M)>1&&(m=!0)),_.scrollLeft!=null&&(ki(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-$)>1&&(m=!0)),!m)break}return c}function nw(n,i){var l=Kc(n,i);l.scrollTop!=null&&hs(n,l.scrollTop),l.scrollLeft!=null&&ki(n,l.scrollLeft)}function Kc(n,i){var l=n.display,s=so(n.display);i.top<0&&(i.top=0);var c=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:l.scroller.scrollTop,p=Dc(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var y=n.doc.height+$c(l),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 M=Math.min(i.top,(_?y:i.bottom)-p);M!=c&&(m.scrollTop=M)}var $=n.options.fixedGutter?0:l.gutters.offsetWidth,B=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:l.scroller.scrollLeft-$,q=wi(n)-l.gutters.offsetWidth,X=i.right-i.left>q;return X&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<B?m.scrollLeft=Math.max(0,i.left+$-(X?0:10)):i.right>q+B-3&&(m.scrollLeft=i.right+(X?0:10)-q),m}function Xc(n,i){i!=null&&(Fl(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function co(n){Fl(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function fs(n,i,l){(i!=null||l!=null)&&Fl(n),i!=null&&(n.curOp.scrollLeft=i),l!=null&&(n.curOp.scrollTop=l)}function rw(n,i){Fl(n),n.curOp.scrollToPos=i}function Fl(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var l=ud(n,i.from),s=ud(n,i.to);yd(n,l,s,i.margin)}}function yd(n,i,l,s){var c=Kc(n,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-s,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+s});fs(n,c.scrollLeft,c.scrollTop)}function hs(n,i){Math.abs(n.doc.scrollTop-i)<2||(a||Jc(n,{top:i}),bd(n,i,!0),a&&Jc(n),gs(n,100))}function bd(n,i,l){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!l)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function ki(n,i,l,s){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((l?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!s)&&(n.doc.scrollLeft=i,kd(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function ds(n){var i=n.display,l=i.gutters.offsetWidth,s=Math.round(n.doc.height+$c(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?l:0,docHeight:s,scrollHeight:s+er(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var Ci=function(n,i,l){this.cm=l;var s=this.vert=C("div",[C("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=C("div",[C("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,n(s),n(c),bt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),bt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ci.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,l=n.scrollHeight>n.clientHeight+1,s=n.nativeBarWidth;if(l){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=l?s+"px":"0",this.horiz.style.left=n.barLeft+"px";var p=n.viewWidth-n.barLeft-(l?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:l?s:0,bottom:i?s:0}},Ci.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ci.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ci.prototype.zeroWidthHack=function(){var n=G&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new st,this.disableVert=new st},Ci.prototype.enableZeroWidthBar=function(n,i,l){n.style.visibility="";function s(){var c=n.getBoundingClientRect(),p=l=="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)},Ci.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var ps=function(){};ps.prototype.update=function(){return{bottom:0,right:0}},ps.prototype.setScrollLeft=function(){},ps.prototype.setScrollTop=function(){},ps.prototype.clear=function(){};function uo(n,i){i||(i=ds(n));var l=n.display.barWidth,s=n.display.barHeight;wd(n,i);for(var c=0;c<4&&l!=n.display.barWidth||s!=n.display.barHeight;c++)l!=n.display.barWidth&&n.options.lineWrapping&&zl(n),wd(n,ds(n)),l=n.display.barWidth,s=n.display.barHeight}function wd(n,i){var l=n.display,s=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var xd={native:Ci,null:ps};function _d(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&ut(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new xd[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),bt(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?ki(n,i):hs(n,i)},n),n.display.scrollbars.addClass&&Et(n.display.wrapper,n.display.scrollbars.addClass)}var iw=0;function Ti(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:++iw,markArrays:null},Db(n.curOp)}function Li(n){var i=n.curOp;i&&zb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;ow(l)})}function ow(n){for(var i=n.ops,l=0;l<i.length;l++)sw(i[l]);for(var s=0;s<i.length;s++)lw(i[s]);for(var c=0;c<i.length;c++)aw(i[c]);for(var p=0;p<i.length;p++)cw(i[p]);for(var m=0;m<i.length;m++)uw(i[m])}function sw(n){var i=n.cm,l=i.display;hw(i),n.updateMaxLine&&Oc(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<l.viewFrom||n.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new ql(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function lw(n){n.updatedDisplay=n.mustUpdate&&Yc(n.cm,n.update)}function aw(n){var i=n.cm,l=i.display;n.updatedDisplay&&zl(i),n.barMeasure=ds(i),l.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=nd(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+n.adjustWidthTo+er(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+n.adjustWidthTo-wi(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=l.input.prepareSelection())}function cw(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&ki(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=n.focus&&n.focus==wt(Gt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,l),(n.updatedDisplay||n.startHeight!=i.doc.height)&&uo(i,n.barMeasure),n.updatedDisplay&&Qc(i,n.barMeasure),n.selectionChanged&&jc(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),l&&vd(n.cm)}function uw(n){var i=n.cm,l=i.display,s=i.doc;if(n.updatedDisplay&&Sd(i,n.update),l.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),n.scrollTop!=null&&bd(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&ki(i,n.scrollLeft,!0,!0),n.scrollToPos){var c=ew(i,Ft(s,n.scrollToPos.from),Ft(s,n.scrollToPos.to),n.scrollToPos.margin);tw(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");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&me(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function bn(n,i){if(n.curOp)return i();Ti(n);try{return i()}finally{Li(n)}}function $e(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Ti(n);try{return i.apply(n,arguments)}finally{Li(n)}}}function Ze(n){return function(){if(this.curOp)return n.apply(this,arguments);Ti(this);try{return n.apply(this,arguments)}finally{Li(this)}}}function De(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Ti(i);try{return n.apply(this,arguments)}finally{Li(i)}}}function gs(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Q(fw,n))}function fw(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var l=+new Date+n.options.workTime,s=is(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?yr(i.mode,s.state):null,w=Nh(n,p,s,!0);y&&(s.state=y),p.styles=w.styles;var _=p.styleClasses,M=w.classes;M?p.styleClasses=M:_&&(p.styleClasses=null);for(var $=!m||m.length!=p.styles.length||_!=M&&(!_||!M||_.bgClass!=M.bgClass||_.textClass!=M.textClass),B=0;!$&&B<m.length;++B)$=m[B]!=p.styles[B];$&&c.push(s.line),p.stateAfter=s.save(),s.nextLine()}else p.text.length<=n.options.maxHighlightLength&&Tc(n,p.text,s),p.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return gs(n,n.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&bn(n,function(){for(var p=0;p<c.length;p++)jr(n,c[p],"text")})}}var ql=function(n,i,l){var s=n.display;this.viewport=i,this.visible=Il(s,n.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=wi(n),this.force=l,this.dims=Hc(n),this.events=[]};ql.prototype.signal=function(n,i){Ye(n,i)&&this.events.push(arguments)},ql.prototype.finish=function(){for(var n=0;n<this.events.length;n++)me.apply(null,this.events[n])};function hw(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=er(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=er(n)+"px",i.scrollbarsClipped=!0)}function dw(n){if(n.hasFocus())return null;var i=wt(Gt(n));if(!i||!et(n.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=ne(n).getSelection();s.anchorNode&&s.extend&&et(n.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function pw(n){if(!(!n||!n.activeElt||n.activeElt==wt(n.activeElt.ownerDocument))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&et(document.body,n.anchorNode)&&et(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,l=i.defaultView.getSelection(),s=i.createRange();s.setEnd(n.anchorNode,n.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(n.focusNode,n.focusOffset)}}function Yc(n,i){var l=n.display,s=n.doc;if(i.editorIsHidden)return Gr(n),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&pd(n)==0)return!1;Cd(n)&&(Gr(n),i.dims=Hc(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);l.viewFrom<p&&p-l.viewFrom<20&&(p=Math.max(s.first,l.viewFrom)),l.viewTo>m&&l.viewTo-m<20&&(m=Math.min(c,l.viewTo)),wr&&(p=Nc(n.doc,p),m=Uh(n.doc,m));var y=p!=l.viewFrom||m!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Zb(n,p,m),l.viewOffset=xr(Nt(n.doc,l.viewFrom)),n.display.mover.style.top=l.viewOffset+"px";var w=pd(n);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=dw(n);return w>4&&(l.lineDiv.style.display="none"),gw(n,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,pw(_),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,gs(n,400)),l.updateLineNumbers=null,!0}function Sd(n,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!n.options.lineWrapping||i.oldDisplayWidth==wi(n)){if(l&&l.top!=null&&(l={top:Math.min(n.doc.height+$c(n.display)-Dc(n),l.top)}),i.visible=Il(n.display,n.doc,l),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else s&&(i.visible=Il(n.display,n.doc,l));if(!Yc(n,i))break;zl(n);var c=ds(n);us(n),uo(n,c),Qc(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 Jc(n,i){var l=new ql(n,i);if(Yc(n,l)){zl(n),Sd(n,l);var s=ds(n);us(n),uo(n,s),Qc(n,s),l.finish()}}function gw(n,i,l){var s=n.display,c=n.options.lineNumbers,p=s.lineDiv,m=p.firstChild;function y(X){var it=X.nextSibling;return v&&G&&n.display.currentWheelTarget==X?X.style.display="none":X.parentNode.removeChild(X),it}for(var w=s.view,_=s.viewFrom,M=0;M<w.length;M++){var $=w[M];if(!$.hidden)if(!$.node||$.node.parentNode!=p){var B=Bb(n,$,_,l);p.insertBefore(B,m)}else{for(;m!=$.node;)m=y(m);var q=c&&i!=null&&i<=_&&$.lineNumber;$.changes&&(Ct($.changes,"gutter")>-1&&(q=!1),Xh(n,$,_,l)),q&&(U($.lineNumber),$.lineNumber.appendChild(document.createTextNode(D(n.options,_)))),m=$.node.nextSibling}_+=$.size}for(;m;)m=y(m)}function Zc(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Pe(n,"gutterChanged",n)}function Qc(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+er(n)+"px"}function kd(n){var i=n.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var s=Bc(i)-i.scroller.scrollLeft+n.doc.scrollLeft,c=i.gutters.offsetWidth,p=s+"px",m=0;m<l.length;m++)if(!l[m].hidden){n.options.fixedGutter&&(l[m].gutter&&(l[m].gutter.style.left=p),l[m].gutterBackground&&(l[m].gutterBackground.style.left=p));var y=l[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 Cd(n){if(!n.options.lineNumbers)return!1;var i=n.doc,l=D(n.options,i.first+i.size-1),s=n.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(C("div",[C("div",l)],"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?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",Zc(n.display),!0}return!1}function tu(n,i){for(var l=[],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;l.push({className:p,style:m})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function Td(n){var i=n.gutters,l=n.gutterSpecs;U(i),n.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],p=c.className,m=c.style,y=i.appendChild(C("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=l.length?"":"none",Zc(n)}function vs(n){Td(n.display),on(n),kd(n)}function vw(n,i,l,s){var c=this;this.input=l,c.scrollbarFiller=C("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=C("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=H("div",null,"CodeMirror-code"),c.selectionDiv=C("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=C("div",null,"CodeMirror-cursors"),c.measure=C("div",null,"CodeMirror-measure"),c.lineMeasure=C("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=C("div",[p],null,"position: relative"),c.sizer=C("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=C("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),c.gutters=C("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=C("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=C("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&&!(a&&P)&&(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=tu(s.gutters,s.lineNumbers),Td(c),l.init(c)}var Hl=0,Sr=null;d?Sr=-.53:a?Sr=15:x?Sr=-.7:A&&(Sr=-1/3);function Ld(n){var i=n.wheelDeltaX,l=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),l==null&&n.detail&&n.axis==n.VERTICAL_AXIS?l=n.detail:l==null&&(l=n.wheelDelta),{x:i,y:l}}function mw(n){var i=Ld(n);return i.x*=Sr,i.y*=Sr,i}function Ed(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 l=Ld(i),s=l.x,c=l.y,p=Sr;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&&G&&v){t:for(var M=i.target,$=m.view;M!=y;M=M.parentNode)for(var B=0;B<$.length;B++)if($[B].node==M){n.display.currentWheelTarget=M;break t}}if(s&&!a&&!N&&p!=null){c&&_&&hs(n,Math.max(0,y.scrollTop+c*p)),ki(n,Math.max(0,y.scrollLeft+s*p)),(!c||c&&_)&&Ge(i),m.wheelStartX=null;return}if(c&&p!=null){var q=c*p,X=n.doc.scrollTop,it=X+m.wrapper.clientHeight;q<0?X=Math.max(0,X+q-50):it=Math.min(n.doc.height,it+q+50),Jc(n,{top:X,bottom:it})}Hl<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 ft=y.scrollLeft-m.wheelStartX,mt=y.scrollTop-m.wheelStartY,_t=mt&&m.wheelDY&&mt/m.wheelDY||ft&&m.wheelDX&&ft/m.wheelDX;m.wheelStartX=m.wheelStartY=null,_t&&(Sr=(Sr*Hl+_t)/(Hl+1),++Hl)}},200)):(m.wheelDX+=s,m.wheelDY+=c))}}var An=function(n,i){this.ranges=n,this.primIndex=i};An.prototype.primary=function(){return this.ranges[this.primIndex]},An.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 l=this.ranges[i],s=n.ranges[i];if(!It(l.anchor,s.anchor)||!It(l.head,s.head))return!1}return!0},An.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ie(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new An(n,this.primIndex)},An.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},An.prototype.contains=function(n,i){i||(i=n);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(K(i,s.from())>=0&&K(n,s.to())<=0)return l}return-1};var ie=function(n,i){this.anchor=n,this.head=i};ie.prototype.from=function(){return Me(this.anchor,this.head)},ie.prototype.to=function(){return ee(this.anchor,this.head)},ie.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bn(n,i,l){var s=n&&n.options.selectionsMayTouch,c=i[l];i.sort(function(B,q){return K(B.from(),q.from())}),l=Ct(i,c);for(var p=1;p<i.length;p++){var m=i[p],y=i[p-1],w=K(y.to(),m.from());if(s&&!m.empty()?w>0:w>=0){var _=Me(y.from(),m.from()),M=ee(y.to(),m.to()),$=y.empty()?m.from()==m.head:y.from()==y.head;p<=l&&--l,i.splice(--p,2,new ie($?M:_,$?_:M))}}return new An(i,l)}function Vr(n,i){return new An([new ie(n,i||n)],0)}function Kr(n){return n.text?I(n.from.line+n.text.length-1,lt(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Ad(n,i){if(K(n,i.from)<0)return n;if(K(n,i.to)<=0)return Kr(i);var l=n.line+i.text.length-(i.to.line-i.from.line)-1,s=n.ch;return n.line==i.to.line&&(s+=Kr(i).ch-i.to.ch),I(l,s)}function eu(n,i){for(var l=[],s=0;s<n.sel.ranges.length;s++){var c=n.sel.ranges[s];l.push(new ie(Ad(c.anchor,i),Ad(c.head,i)))}return Bn(n.cm,l,n.sel.primIndex)}function Nd(n,i,l){return n.line==i.line?I(l.line,n.ch-i.ch+l.ch):I(l.line+(n.line-i.line),n.ch)}function yw(n,i,l){for(var s=[],c=I(n.first,0),p=c,m=0;m<i.length;m++){var y=i[m],w=Nd(y.from,c,p),_=Nd(Kr(y),c,p);if(c=y.to,p=_,l=="around"){var M=n.sel.ranges[m],$=K(M.head,M.anchor)<0;s[m]=new ie($?_:w,$?w:_)}else s[m]=new ie(w,w)}return new An(s,n.sel.primIndex)}function nu(n){n.doc.mode=mr(n.options,n.doc.modeOption),ms(n)}function ms(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,gs(n,100),n.state.modeGen++,n.curOp&&on(n)}function Md(n,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function ru(n,i,l,s){function c(_t){return l?l[_t]:null}function p(_t,yt,Tt){Tb(_t,yt,Tt,s),Pe(_t,"change",_t,i)}function m(_t,yt){for(var Tt=[],Dt=_t;Dt<yt;++Dt)Tt.push(new ro(_[Dt],c(Dt),s));return Tt}var y=i.from,w=i.to,_=i.text,M=Nt(n,y.line),$=Nt(n,w.line),B=lt(_),q=c(_.length-1),X=w.line-y.line;if(i.full)n.insert(0,m(0,_.length)),n.remove(_.length,n.size-_.length);else if(Md(n,i)){var it=m(0,_.length-1);p($,$.text,q),X&&n.remove(y.line,X),it.length&&n.insert(y.line,it)}else if(M==$)if(_.length==1)p(M,M.text.slice(0,y.ch)+B+M.text.slice(w.ch),q);else{var ft=m(1,_.length-1);ft.push(new ro(B+M.text.slice(w.ch),q,s)),p(M,M.text.slice(0,y.ch)+_[0],c(0)),n.insert(y.line+1,ft)}else if(_.length==1)p(M,M.text.slice(0,y.ch)+_[0]+$.text.slice(w.ch),c(0)),n.remove(y.line+1,X);else{p(M,M.text.slice(0,y.ch)+_[0],c(0)),p($,B+$.text.slice(w.ch),q);var mt=m(1,_.length-1);X>1&&n.remove(y.line+1,X-1),n.insert(y.line+1,mt)}Pe(n,"change",n,i)}function Xr(n,i,l){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;l&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(n,null,!0)}function Od(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Wc(n),nu(n),Pd(n),n.options.direction=i.direction,n.options.lineWrapping||Oc(n),n.options.mode=i.modeOption,on(n)}function Pd(n){(n.doc.direction=="rtl"?Et:ut)(n.display.lineDiv,"CodeMirror-rtl")}function bw(n){bn(n,function(){Pd(n),on(n)})}function Bl(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 iu(n,i){var l={from:Vt(i.from),to:Kr(i),text:br(n,i.from,i.to)};return Rd(n,l,i.from.line,i.to.line+1),Xr(n,function(s){return Rd(s,l,i.from.line,i.to.line+1)},!0),l}function $d(n){for(;n.length;){var i=lt(n);if(i.ranges)n.pop();else break}}function ww(n,i){if(i)return $d(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 Dd(n,i,l,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=ww(c,c.lastOp==s)))y=lt(m.changes),K(i.from,i.to)==0&&K(i.from,y.to)==0?y.to=Kr(i):m.changes.push(iu(n,i));else{var w=lt(c.done);for((!w||!w.ranges)&&Wl(n.sel,c.done),m={changes:[iu(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(l),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 xw(n,i,l,s){var c=i.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function _w(n,i,l,s){var c=n.history,p=s&&s.origin;l==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||xw(n,p,lt(c.done),i))?c.done[c.done.length-1]=i:Wl(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=l,s&&s.clearRedo!==!1&&$d(c.undone)}function Wl(n,i){var l=lt(i);l&&l.ranges&&l.equals(n)||i.push(n)}function Rd(n,i,l,s){var c=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,l),Math.min(n.first+n.size,s),function(m){m.markedSpans&&((c||(c=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function Sw(n){if(!n)return null;for(var i,l=0;l<n.length;++l)n[l].marker.explicitlyCleared?i||(i=n.slice(0,l)):i&&i.push(n[l]);return i?i.length?i:null:n}function kw(n,i){var l=i["spans_"+n.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(Sw(l[c]));return s}function zd(n,i){var l=kw(n,i),s=Ec(n,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var p=l[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&&(l[c]=m)}return l}function fo(n,i,l){for(var s=[],c=0;c<n.length;++c){var p=n[c];if(p.ranges){s.push(l?An.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],M=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var $ in _)(M=$.match(/^spans_(\d+)$/))&&Ct(i,Number(M[1]))>-1&&(lt(y)[$]=_[$],delete _[$])}}return s}function ou(n,i,l,s){if(s){var c=n.anchor;if(l){var p=K(i,c)<0;p!=K(l,c)<0?(c=i,i=l):p!=K(i,l)<0&&(i=l)}return new ie(c,i)}else return new ie(l||i,i)}function Ul(n,i,l,s,c){c==null&&(c=n.cm&&(n.cm.display.shift||n.extend)),Ve(n,new An([ou(n.sel.primary(),i,l,c)],0),s)}function Id(n,i,l){for(var s=[],c=n.cm&&(n.cm.display.shift||n.extend),p=0;p<n.sel.ranges.length;p++)s[p]=ou(n.sel.ranges[p],i[p],null,c);var m=Bn(n.cm,s,n.sel.primIndex);Ve(n,m,l)}function su(n,i,l,s){var c=n.sel.ranges.slice(0);c[i]=l,Ve(n,Bn(n.cm,c,n.sel.primIndex),s)}function Fd(n,i,l,s){Ve(n,Vr(i,l),s)}function Cw(n,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var p=0;p<c.length;p++)this.ranges[p]=new ie(Ft(n,c[p].anchor),Ft(n,c[p].head))},origin:l&&l.origin};return me(n,"beforeSelectionChange",n,s),n.cm&&me(n.cm,"beforeSelectionChange",n.cm,s),s.ranges!=i.ranges?Bn(n.cm,s.ranges,s.ranges.length-1):i}function qd(n,i,l){var s=n.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,jl(n,i,l)):Ve(n,i,l)}function Ve(n,i,l){jl(n,i,l),_w(n,n.sel,n.cm?n.cm.curOp.id:NaN,l)}function jl(n,i,l){(Ye(n,"beforeSelectionChange")||n.cm&&Ye(n.cm,"beforeSelectionChange"))&&(i=Cw(n,i,l));var s=l&&l.bias||(K(i.primary().head,n.sel.primary().head)<0?-1:1);Hd(n,Wd(n,i,s,!0)),!(l&&l.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&co(n.cm)}function Hd(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,wl(n.cm)),Pe(n,"cursorActivity",n))}function Bd(n){Hd(n,Wd(n,n.sel,null,!1))}function Wd(n,i,l,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=Gl(n,m.anchor,y&&y.anchor,l,s),_=m.head==m.anchor?w:Gl(n,m.head,y&&y.head,l,s);(c||w!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,p)),c[p]=new ie(w,_))}return c?Bn(n.cm,c,i.primIndex):i}function ho(n,i,l,s,c){var p=Nt(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,M="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(M?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(l){var $=w.find(s<0?1:-1),B=void 0;if((s<0?M:_)&&($=Ud(n,$,-s,$&&$.line==i.line?p:null)),$&&$.line==i.line&&(B=K($,l))&&(s<0?B<0:B>0))return ho(n,$,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:M)&&(q=Ud(n,q,s,q.line==i.line?p:null)),q?ho(n,q,i,s,c):null}}return i}function Gl(n,i,l,s,c){var p=s||1,m=ho(n,i,l,p,c)||!c&&ho(n,i,l,p,!0)||ho(n,i,l,-p,c)||!c&&ho(n,i,l,-p,!0);return m||(n.cantEdit=!0,I(n.first,0))}function Ud(n,i,l,s){return l<0&&i.ch==0?i.line>n.first?Ft(n,I(i.line-1)):null:l>0&&i.ch==(s||Nt(n,i.line)).text.length?i.line<n.first+n.size-1?I(i.line+1,0):null:new I(i.line,i.ch+l)}function jd(n){n.setSelection(I(n.firstLine(),0),I(n.lastLine()),O)}function Gd(n,i,l){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,p,m,y){c&&(s.from=Ft(n,c)),p&&(s.to=Ft(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 po(n,i,l){if(n.cm){if(!n.cm.curOp)return $e(n.cm,po)(n,i,l);if(n.cm.state.suppressEdits)return}if(!((Ye(n,"beforeChange")||n.cm&&Ye(n.cm,"beforeChange"))&&(i=Gd(n,i,!0),!i))){var s=zh&&!l&&_b(n,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Vd(n,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Vd(n,i)}}function Vd(n,i){if(!(i.text.length==1&&i.text[0]==""&&K(i.from,i.to)==0)){var l=eu(n,i);Dd(n,i,l,n.cm?n.cm.curOp.id:NaN),ys(n,i,l,Ec(n,i));var s=[];Xr(n,function(c,p){!p&&Ct(s,c.history)==-1&&(Jd(c.history,i),s.push(c.history)),ys(c,i,null,Ec(c,i))})}}function Vl(n,i,l){var s=n.cm&&n.cm.state.suppressEdits;if(!(s&&!l)){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[_],!(l?p.ranges&&!p.equals(n.sel):!p.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(p=y.pop(),p.ranges){if(Wl(p,w),l&&!p.equals(n.sel)){Ve(n,p,{clearRedo:!1});return}m=p}else if(s){y.push(p);return}else break;var M=[];Wl(m,w),w.push({changes:M,generation:c.generation}),c.generation=p.generation||++c.maxGeneration;for(var $=Ye(n,"beforeChange")||n.cm&&Ye(n.cm,"beforeChange"),B=function(it){var ft=p.changes[it];if(ft.origin=i,$&&!Gd(n,ft,!1))return y.length=0,{};M.push(iu(n,ft));var mt=it?eu(n,ft):lt(y);ys(n,ft,mt,zd(n,ft)),!it&&n.cm&&n.cm.scrollIntoView({from:ft.from,to:Kr(ft)});var _t=[];Xr(n,function(yt,Tt){!Tt&&Ct(_t,yt.history)==-1&&(Jd(yt.history,ft),_t.push(yt.history)),ys(yt,ft,null,zd(yt,ft))})},q=p.changes.length-1;q>=0;--q){var X=B(q);if(X)return X.v}}}}function Kd(n,i){if(i!=0&&(n.first+=i,n.sel=new An(gt(n.sel.ranges,function(c){return new ie(I(c.anchor.line+i,c.anchor.ch),I(c.head.line+i,c.head.ch))}),n.sel.primIndex),n.cm)){on(n.cm,n.first,n.first-i,i);for(var l=n.cm.display,s=l.viewFrom;s<l.viewTo;s++)jr(n.cm,s,"gutter")}}function ys(n,i,l,s){if(n.cm&&!n.cm.curOp)return $e(n.cm,ys)(n,i,l,s);if(i.to.line<n.first){Kd(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);Kd(n,c),i={from:I(n.first,0),to:I(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:I(p,Nt(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=br(n,i.from,i.to),l||(l=eu(n,i)),n.cm?Tw(n.cm,i,s):ru(n,i,s),jl(n,l,O),n.cantEdit&&Gl(n,I(n.firstLine(),0))&&(n.cantEdit=!1)}}function Tw(n,i,l){var s=n.doc,c=n.display,p=i.from,m=i.to,y=!1,w=p.line;n.options.lineWrapping||(w=re(qn(Nt(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&&wl(n),ru(s,i,l,dd(n)),n.options.lineWrapping||(s.iter(w,p.line+i.text.length,function(q){var X=Nl(q);X>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(n.curOp.updateMaxLine=!0)),gb(s,p.line),gs(n,400);var _=i.text.length-(m.line-p.line)-1;i.full?on(n):p.line==m.line&&i.text.length==1&&!Md(n.doc,i)?jr(n,p.line,"text"):on(n,p.line,m.line+1,_);var M=Ye(n,"changes"),$=Ye(n,"change");if($||M){var B={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};$&&Pe(n,"change",n,B),M&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(B)}n.display.selForContextMenu=null}function go(n,i,l,s,c){var p;s||(s=l),K(s,l)<0&&(p=[s,l],l=p[0],s=p[1]),typeof i=="string"&&(i=n.splitLines(i)),po(n,{from:l,to:s,text:i,origin:c})}function Xd(n,i,l,s){l<n.line?n.line+=s:i<n.line&&(n.line=i,n.ch=0)}function Yd(n,i,l,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++)Xd(p.ranges[y].anchor,i,l,s),Xd(p.ranges[y].head,i,l,s);continue}for(var w=0;w<p.changes.length;++w){var _=p.changes[w];if(l<_.from.line)_.from=I(_.from.line+s,_.from.ch),_.to=I(_.to.line+s,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(n.splice(0,c+1),c=0)}}function Jd(n,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Yd(n.done,l,s,c),Yd(n.undone,l,s,c)}function bs(n,i,l,s){var c=i,p=i;return typeof i=="number"?p=Nt(n,En(n,i)):c=re(i),c==null?null:(s(p,c)&&n.cm&&jr(n.cm,c,l),p)}function ws(n){this.lines=n,this.parent=null;for(var i=0,l=0;l<n.length;++l)n[l].parent=this,i+=n[l].height;this.height=i}ws.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var l=n,s=n+i;l<s;++l){var c=this.lines[l];this.height-=c.height,Lb(c),Pe(c,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,l){this.height+=l,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,l){for(var s=n+i;n<s;++n)if(l(this.lines[n]))return!0}};function xs(n){this.children=n;for(var i=0,l=0,s=0;s<n.length;++s){var c=n[s];i+=c.chunkSize(),l+=c.height,c.parent=this}this.size=i,this.height=l,this.parent=null}xs.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var l=0;l<this.children.length;++l){var s=this.children[l],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(l--,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 ws))){var y=[];this.collapse(y),this.children=[new ws(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,l){this.size+=i.length,this.height+=l;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,l),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var w=new ws(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),l=new xs(i);if(n.parent){n.size-=l.size,n.height-=l.height;var c=Ct(n.parent.children,n);n.parent.children.splice(c+1,0,l)}else{var s=new xs(n.children);s.parent=n,n.children=[s,l],n=s}l.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,l){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,l))return!0;if((i-=m)==0)break;n=0}else n-=p}}};var _s=function(n,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=n,this.node=i};_s.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,l=this.line,s=re(l);if(!(s==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(l.widgets=null);var p=as(this);Dn(l,Math.max(0,l.height-p)),n&&(bn(n,function(){Zd(n,l,-p),jr(n,s,"widget")}),Pe(n,"lineWidgetCleared",n,this,s))}},_s.prototype.changed=function(){var n=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=as(this)-i;!c||(Ur(this.doc,s)||Dn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,Zd(l,s,c),Pe(l,"lineWidgetChanged",l,n,re(s))}))},Je(_s);function Zd(n,i,l){xr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Xc(n,l)}function Lw(n,i,l,s){var c=new _s(n,l,s),p=n.cm;return p&&c.noHScroll&&(p.display.alignWidgets=!0),bs(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&&!Ur(n,m)){var w=xr(m)<n.scrollTop;Dn(m,m.height+as(c)),w&&Xc(p,c.height),p.curOp.forceUpdate=!0}return!0}),p&&Pe(p,"lineWidgetAdded",p,c,typeof i=="number"?i:re(i)),c}var Qd=0,Yr=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Qd};Yr.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Ti(n),Ye(this,"clear")){var l=this.find();l&&Pe(this,"clear",l.from,l.to)}for(var s=null,c=null,p=0;p<this.lines.length;++p){var m=this.lines[p],y=os(m.markedSpans,this);n&&!this.collapsed?jr(n,re(m),"text"):n&&(y.to!=null&&(c=re(m)),y.from!=null&&(s=re(m))),m.markedSpans=yb(m.markedSpans,y),y.from==null&&this.collapsed&&!Ur(this.doc,m)&&n&&Dn(m,so(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=qn(this.lines[w]),M=Nl(_);M>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=M,n.display.maxLineChanged=!0)}s!=null&&n&&this.collapsed&&on(n,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Bd(n.doc)),n&&Pe(n,"markerCleared",n,this,s,c),i&&Li(n),this.parent&&this.parent.clear()}},Yr.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var l,s,c=0;c<this.lines.length;++c){var p=this.lines[c],m=os(p.markedSpans,this);if(m.from!=null&&(l=I(i?p:re(p),m.from),n==-1))return l;if(m.to!=null&&(s=I(i?p:re(p),m.to),n==1))return s}return l&&{from:l,to:s}},Yr.prototype.changed=function(){var n=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||bn(s,function(){var c=i.line,p=re(i.line),m=Rc(s,p);if(m&&(od(m),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Ur(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var w=as(l)-y;w&&Dn(c,c.height+w)}Pe(s,"markerChanged",s,n)})},Yr.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ct(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Yr.prototype.detachLine=function(n){if(this.lines.splice(Ct(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Je(Yr);function vo(n,i,l,s,c){if(s&&s.shared)return Ew(n,i,l,s,c);if(n.cm&&!n.cm.curOp)return $e(n.cm,vo)(n,i,l,s,c);var p=new Yr(n,c),m=K(i,l);if(s&&tt(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(Wh(n,i.line,i,l,p)||i.line!=l.line&&Wh(n,l.line,i,l,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");mb()}p.addToHistory&&Dd(n,{from:i,to:l,origin:"markText"},n.sel,NaN);var y=i.line,w=n.cm,_;if(n.iter(y,l.line+1,function($){w&&p.collapsed&&!w.options.lineWrapping&&qn($)==w.display.maxLine&&(_=!0),p.collapsed&&y!=i.line&&Dn($,0),bb($,new Tl(p,y==i.line?i.ch:null,y==l.line?l.ch:null),n.cm&&n.cm.curOp),++y}),p.collapsed&&n.iter(i.line,l.line+1,function($){Ur(n,$)&&Dn($,0)}),p.clearOnEnter&&bt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(vb(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++Qd,p.atomic=!0),w){if(_&&(w.curOp.updateMaxLine=!0),p.collapsed)on(w,i.line,l.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var M=i.line;M<=l.line;M++)jr(w,M,"text");p.atomic&&Bd(w.doc),Pe(w,"markerAdded",w,p)}return p}var Ss=function(n,i){this.markers=n,this.primary=i;for(var l=0;l<n.length;++l)n[l].parent=this};Ss.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Pe(this,"clear")}},Ss.prototype.find=function(n,i){return this.primary.find(n,i)},Je(Ss);function Ew(n,i,l,s,c){s=tt(s),s.shared=!1;var p=[vo(n,i,l,s,c)],m=p[0],y=s.widgetNode;return Xr(n,function(w){y&&(s.widgetNode=y.cloneNode(!0)),p.push(vo(w,Ft(w,i),Ft(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;m=lt(p)}),new Ss(p,m)}function tp(n){return n.findMarks(I(n.first,0),n.clipPos(I(n.lastLine())),function(i){return i.parent})}function Aw(n,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),p=n.clipPos(c.from),m=n.clipPos(c.to);if(K(p,m)){var y=vo(n,p,m,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function Nw(n){for(var i=function(s){var c=n[s],p=[c.primary.doc];Xr(c.primary.doc,function(w){return p.push(w)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];Ct(p,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},l=0;l<n.length;l++)i(l)}var Mw=0,sn=function(n,i,l,s,c){if(!(this instanceof sn))return new sn(n,i,l,s,c);l==null&&(l=0),xs.call(this,[new ws([new ro("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var p=I(l,0);this.sel=Vr(p),this.history=new Bl(null),this.id=++Mw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),ru(this,{from:p,to:p,text:n}),Ve(this,Vr(p),O)};sn.prototype=$t(xs.prototype,{constructor:sn,iter:function(n,i,l){l?this.iterN(n-this.first,i-n,l):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var l=0,s=0;s<i.length;++s)l+=i[s].height;this.insertInner(n-this.first,i,l)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=no(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:De(function(n){var i=I(this.first,0),l=this.first+this.size-1;po(this,{from:i,to:I(l,Nt(this,l).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&fs(this.cm,0,0),Ve(this,Vr(i),O)}),replaceRange:function(n,i,l,s){i=Ft(this,i),l=l?Ft(this,l):i,go(this,n,i,l,s)},getRange:function(n,i,l){var s=br(this,Ft(this,n),Ft(this,i));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(T(this,n))return Nt(this,n)},getLineNumber:function(n){return re(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Nt(this,n)),qn(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ft(this,n)},getCursor:function(n){var i=this.sel.primary(),l;return n==null||n=="head"?l=i.head:n=="anchor"?l=i.anchor:n=="end"||n=="to"||n===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:De(function(n,i,l){Fd(this,Ft(this,typeof n=="number"?I(n,i||0):n),null,l)}),setSelection:De(function(n,i,l){Fd(this,Ft(this,n),Ft(this,i||n),l)}),extendSelection:De(function(n,i,l){Ul(this,Ft(this,n),i&&Ft(this,i),l)}),extendSelections:De(function(n,i){Id(this,Ah(this,n),i)}),extendSelectionsBy:De(function(n,i){var l=gt(this.sel.ranges,n);Id(this,Ah(this,l),i)}),setSelections:De(function(n,i,l){if(!!n.length){for(var s=[],c=0;c<n.length;c++)s[c]=new ie(Ft(this,n[c].anchor),Ft(this,n[c].head||n[c].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),Ve(this,Bn(this.cm,s,i),l)}}),addSelection:De(function(n,i,l){var s=this.sel.ranges.slice(0);s.push(new ie(Ft(this,n),Ft(this,i||n))),Ve(this,Bn(this.cm,s,s.length-1),l)}),getSelection:function(n){for(var i=this.sel.ranges,l,s=0;s<i.length;s++){var c=br(this,i[s].from(),i[s].to());l=l?l.concat(c):c}return n===!1?l:l.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=br(this,l[s].from(),l[s].to());n!==!1&&(c=c.join(n||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(n,i,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=n;this.replaceSelections(s,i,l||"+input")},replaceSelections:De(function(n,i,l){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:l}}for(var y=i&&i!="end"&&yw(this,s,i),w=s.length-1;w>=0;w--)po(this,s[w]);y?qd(this,y):this.cm&&co(this.cm)}),undo:De(function(){Vl(this,"undo")}),redo:De(function(){Vl(this,"redo")}),undoSelection:De(function(){Vl(this,"undo",!0)}),redoSelection:De(function(){Vl(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,l=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||++l;return{undo:i,redo:l}},clearHistory:function(){var n=this;this.history=new Bl(this.history),Xr(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:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(n){var i=this.history=new Bl(this.history);i.done=fo(n.done.slice(0),null,!0),i.undone=fo(n.undone.slice(0),null,!0)},setGutterMarker:De(function(n,i,l){return bs(this,n,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:De(function(n){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[n]&&bs(i,l,"gutter",function(){return l.gutterMarkers[n]=null,jt(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!T(this,n)||(i=n,n=Nt(this,n),!n))return null}else if(i=re(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:De(function(n,i,l){return bs(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]=l;else{if(kt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:De(function(n,i,l){return bs(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(l==null)s[c]=null;else{var m=p.match(kt(l));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:De(function(n,i,l){return Lw(this,n,i,l)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,l){return vo(this,Ft(this,n),Ft(this,i),l,l&&l.type||"range")},setBookmark:function(n,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ft(this,n),vo(this,n,n,l,"bookmark")},findMarksAt:function(n){n=Ft(this,n);var i=[],l=Nt(this,n.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[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,l){n=Ft(this,n),i=Ft(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)&&(!l||l(w.marker))&&s.push(w.marker.parent||w.marker)}++c}),s},getAllMarks:function(){var n=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&n.push(l[s].marker)}),n},posFromIndex:function(n){var i,l=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,++l}),Ft(this,I(l,i))},indexFromPos:function(n){n=Ft(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,n.line,function(s){i+=s.text.length+l}),i},copy:function(n){var i=new sn(no(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,l=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<l&&(l=n.to);var s=new sn(no(this,i,l),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}],Aw(s,tp(this)),s},unlinkDoc:function(n){if(n instanceof we&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),Nw(tp(this));break}}if(n.history==this.history){var s=[n.id];Xr(n,function(c){return s.push(c.id)},!0),n.history=new Bl(null),n.history.done=fo(this.history.done,s),n.history.undone=fo(this.history.undone,s)}},iterLinkedDocs:function(n){Xr(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):ns(n)},lineSeparator:function(){return this.lineSep||`
|
|
21
|
+
`},setDirection:De(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&bw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var ep=0;function Ow(n){var i=this;if(np(i),!(Se(i,n)||_r(i.display,n))){Ge(n),d&&(ep=+new Date);var l=_i(i,n,!0),s=n.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,p=Array(c),m=0,y=function(){++m==c&&$e(i,function(){l=Ft(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(p.filter(function(X){return X!=null}).join(i.doc.lineSeparator())),origin:"paste"};po(i.doc,q),qd(i.doc,Vr(Ft(i.doc,l),Ft(i.doc,Kr(q))))})()},w=function(q,X){if(i.options.allowDropFileTypes&&Ct(i.options.allowDropFileTypes,q.type)==-1){y();return}var it=new FileReader;it.onerror=function(){return y()},it.onload=function(){var ft=it.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ft)){y();return}p[X]=ft,y()},it.readAsText(q)},_=0;_<s.length;_++)w(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var M=n.dataTransfer.getData("Text");if(M){var $;if(i.state.draggingText&&!i.state.draggingText.copy&&($=i.listSelections()),jl(i.doc,Vr(l,l)),$)for(var B=0;B<$.length;++B)go(i.doc,"",$[B].anchor,$[B].head,"drag");i.replaceSelection(M,"around","paste"),i.display.input.focus()}}catch{}}}}function Pw(n,i){if(d&&(!n.state.draggingText||+new Date-ep<100)){vr(i);return}if(!(Se(n,i)||_r(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var l=C("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",N&&(l.width=l.height=1,n.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),N&&l.parentNode.removeChild(l)}}function $w(n,i){var l=_i(n,i);if(!!l){var s=document.createDocumentFragment();Uc(n,l,s),n.display.dragCursor||(n.display.dragCursor=C("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),z(n.display.dragCursor,s)}}function np(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function rp(n){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var p=0;p<l.length;p++)n(l[p])})}}var ip=!1;function Dw(){ip||(Rw(),ip=!0)}function Rw(){var n;bt(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,rp(zw)},100))}),bt(window,"blur",function(){return rp(ao)})}function zw(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Jr={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"},ks=0;ks<10;ks++)Jr[ks+48]=Jr[ks+96]=String(ks);for(var Kl=65;Kl<=90;Kl++)Jr[Kl]=String.fromCharCode(Kl);for(var Cs=1;Cs<=12;Cs++)Jr[Cs+111]=Jr[Cs+63235]="F"+Cs;var kr={};kr.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"},kr.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"},kr.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"},kr.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"]},kr.default=G?kr.macDefault:kr.pcDefault;function Iw(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var l,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))l=!0;else if(/^(c|ctrl|control)$/i.test(y))s=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return l&&(n="Alt-"+n),s&&(n="Ctrl-"+n),p&&(n="Cmd-"+n),c&&(n="Shift-"+n),n}function Fw(n){var i={};for(var l in n)if(n.hasOwnProperty(l)){var s=n[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete n[l];continue}for(var c=gt(l.split(" "),Iw),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[l]}for(var _ in i)n[_]=i[_];return n}function mo(n,i,l,s){i=Xl(i);var c=i.call?i.call(n,s):i[n];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return mo(n,i.fallthrough,l,s);for(var p=0;p<i.fallthrough.length;p++){var m=mo(n,i.fallthrough[p],l,s);if(m)return m}}}function op(n){var i=typeof n=="string"?n:Jr[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function sp(n,i,l){var s=n;return i.altKey&&s!="Alt"&&(n="Alt-"+n),(ct?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(n="Ctrl-"+n),(ct?i.ctrlKey:i.metaKey)&&s!="Mod"&&(n="Cmd-"+n),!l&&i.shiftKey&&s!="Shift"&&(n="Shift-"+n),n}function lp(n,i){if(N&&n.keyCode==34&&n.char)return!1;var l=Jr[n.keyCode];return l==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(l=n.code),sp(l,n,i))}function Xl(n){return typeof n=="string"?kr[n]:n}function yo(n,i){for(var l=n.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var p=i(l[c]);s.length&&K(p.from,lt(s).to)<=0;){var m=s.pop();if(K(m.from,p.from)<0){p.from=m.from;break}}s.push(p)}bn(n,function(){for(var y=s.length-1;y>=0;y--)go(n.doc,"",s[y].from,s[y].to,"+delete");co(n)})}function lu(n,i,l){var s=se(n.text,i+l,l);return s<0||s>n.text.length?null:s}function au(n,i,l){var s=lu(n,i.ch,l);return s==null?null:new I(i.line,s,l<0?"after":"before")}function cu(n,i,l,s,c){if(n){i.doc.direction=="rtl"&&(c=-c);var p=be(l,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 M=oo(i,l);_=c<0?l.text.length-1:0;var $=nr(i,M,_).top;_=Yt(function(B){return nr(i,M,B).top==$},c<0==(m.level==1)?m.from:m.to-1,_),w=="before"&&(_=lu(l,_,1))}else _=c<0?m.to:m.from;return new I(s,_,w)}}return new I(s,c<0?l.text.length:0,c<0?"before":"after")}function qw(n,i,l,s){var c=be(i,n.doc.direction);if(!c)return au(i,l,s);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var p=qe(c,l.ch,l.sticky),m=c[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(s>0?m.to>l.ch:m.from<l.ch))return au(i,l,s);var y=function(mt,_t){return lu(i,mt instanceof I?mt.ch:mt,_t)},w,_=function(mt){return n.options.lineWrapping?(w=w||oo(n,i),hd(n,i,w,mt)):{begin:0,end:i.text.length}},M=_(l.sticky=="before"?y(l,-1):l.ch);if(n.doc.direction=="rtl"||m.level==1){var $=m.level==1==s<0,B=y(l,$?1:-1);if(B!=null&&($?B<=m.to&&B<=M.end:B>=m.from&&B>=M.begin)){var q=$?"before":"after";return new I(l.line,B,q)}}var X=function(mt,_t,yt){for(var Tt=function(pe,Re){return Re?new I(l.line,y(pe,1),"before"):new I(l.line,pe,"after")};mt>=0&&mt<c.length;mt+=_t){var Dt=c[mt],Ot=_t>0==(Dt.level!=1),Ut=Ot?yt.begin:y(yt.end,-1);if(Dt.from<=Ut&&Ut<Dt.to||(Ut=Ot?Dt.from:y(Dt.to,-1),yt.begin<=Ut&&Ut<yt.end))return Tt(Ut,Ot)}},it=X(p+s,s,M);if(it)return it;var ft=s>0?M.end:y(M.begin,-1);return ft!=null&&!(s>0&&ft==i.text.length)&&(it=X(s>0?0:c.length-1,s,_(ft)),it)?it:null}var Ts={selectAll:jd,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),O)},killLine:function(n){return yo(n,function(i){if(i.empty()){var l=Nt(n.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<n.lastLine()?{from:i.head,to:I(i.head.line+1,0)}:{from:i.head,to:I(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return yo(n,function(i){return{from:I(i.from().line,0),to:Ft(n.doc,I(i.to().line+1,0))}})},delLineLeft:function(n){return yo(n,function(i){return{from:I(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return yo(n,function(i){var l=n.charCoords(i.head,"div").top+5,s=n.coordsChar({left:0,top:l},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(n){return yo(n,function(i){var l=n.charCoords(i.head,"div").top+5,s=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:l},"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(I(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(I(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return ap(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return cp(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return Hw(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var l=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:l},"div")},Y)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var l=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:l},"div")},Y)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var l=n.cursorCoords(i.head,"div").top+5,s=n.coordsChar({left:0,top:l},"div");return s.ch<n.getLine(s.line).search(/\S/)?cp(n,i.head):s},Y)},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=[],l=n.listSelections(),s=n.options.tabSize,c=0;c<l.length;c++){var p=l[c].from(),m=V(n.getLine(p.line),p.ch,s);i.push(pt(s-m%s))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return bn(n,function(){for(var i=n.listSelections(),l=[],s=0;s<i.length;s++)if(!!i[s].empty()){var c=i[s].head,p=Nt(n.doc,c.line).text;if(p){if(c.ch==p.length&&(c=new I(c.line,c.ch-1)),c.ch>0)c=new I(c.line,c.ch+1),n.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),I(c.line,c.ch-2),c,"+transpose");else if(c.line>n.doc.first){var m=Nt(n.doc,c.line-1).text;m&&(c=new I(c.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),I(c.line-1,m.length-1),c,"+transpose"))}}l.push(new ie(c,c))}n.setSelections(l)})},newlineAndIndent:function(n){return bn(n,function(){for(var i=n.listSelections(),l=i.length-1;l>=0;l--)n.replaceRange(n.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=n.listSelections();for(var s=0;s<i.length;s++)n.indentLine(i[s].from().line,null,!0);co(n)})},openLine:function(n){return n.replaceSelection(`
|
|
22
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function ap(n,i){var l=Nt(n.doc,i),s=qn(l);return s!=l&&(i=re(s)),cu(!0,n,s,i,1)}function Hw(n,i){var l=Nt(n.doc,i),s=kb(l);return s!=l&&(i=re(s)),cu(!0,n,l,i,-1)}function cp(n,i){var l=ap(n,i.line),s=Nt(n.doc,l.line),c=be(s,n.doc.direction);if(!c||c[0].level==0){var p=Math.max(l.ch,s.text.search(/\S/)),m=i.line==l.line&&i.ch<=p&&i.ch;return I(l.line,m?0:p,l.sticky)}return l}function Yl(n,i,l){if(typeof i=="string"&&(i=Ts[i],!i))return!1;n.display.input.ensurePolled();var s=n.display.shift,c=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),l&&(n.display.shift=!1),c=i(n)!=Lt}finally{n.display.shift=s,n.state.suppressEdits=!1}return c}function Bw(n,i,l){for(var s=0;s<n.state.keyMaps.length;s++){var c=mo(i,n.state.keyMaps[s],l,n);if(c)return c}return n.options.extraKeys&&mo(i,n.options.extraKeys,l,n)||mo(i,n.options.keyMap,l,n)}var Ww=new st;function Ls(n,i,l,s){var c=n.state.keySeq;if(c){if(op(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:Ww.set(50,function(){n.state.keySeq==c&&(n.state.keySeq=null,n.display.input.reset())}),up(n,c+" "+i,l,s))return!0}return up(n,i,l,s)}function up(n,i,l,s){var c=Bw(n,i,s);return c=="multi"&&(n.state.keySeq=i),c=="handled"&&Pe(n,"keyHandled",n,i,l),(c=="handled"||c=="multi")&&(Ge(l),jc(n)),!!c}function fp(n,i){var l=lp(i,!0);return l?i.shiftKey&&!n.state.keySeq?Ls(n,"Shift-"+l,i,function(s){return Yl(n,s,!0)})||Ls(n,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Yl(n,s)}):Ls(n,l,i,function(s){return Yl(n,s)}):!1}function Uw(n,i,l){return Ls(n,"'"+l+"'",i,function(s){return Yl(n,s,!0)})}var uu=null;function hp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=wt(Gt(i)),!Se(i,n))){d&&g<11&&n.keyCode==27&&(n.returnValue=!1);var l=n.keyCode;i.display.shift=l==16||n.shiftKey;var s=fp(i,n);N&&(uu=s?l:null,!s&&l==88&&!Jn&&(G?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!G&&!s&&l==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&jw(i)}}function jw(n){var i=n.display.lineDiv;Et(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ut(i,"CodeMirror-crosshair"),je(document,"keyup",l),je(document,"mouseover",l))}bt(document,"keyup",l),bt(document,"mouseover",l)}function dp(n){n.keyCode==16&&(this.doc.sel.shift=!1),Se(this,n)}function pp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(_r(i.display,n)||Se(i,n)||n.ctrlKey&&!n.altKey||G&&n.metaKey)){var l=n.keyCode,s=n.charCode;if(N&&l==uu){uu=null,Ge(n);return}if(!(N&&(!n.which||n.which<10)&&fp(i,n))){var c=String.fromCharCode(s??l);c!="\b"&&(Uw(i,n,c)||i.display.input.onKeyPress(n))}}}var Gw=400,fu=function(n,i,l){this.time=n,this.pos=i,this.button=l};fu.prototype.compare=function(n,i,l){return this.time+Gw>n&&K(i,this.pos)==0&&l==this.button};var Es,As;function Vw(n,i){var l=+new Date;return As&&As.compare(l,n,i)?(Es=As=null,"triple"):Es&&Es.compare(l,n,i)?(As=new fu(l,n,i),Es=null,"double"):(Es=new fu(l,n,i),As=null,"single")}function gp(n){var i=this,l=i.display;if(!(Se(i,n)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=n.shiftKey,_r(l,n)){v||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!hu(i,n)){var s=_i(i,n),c=es(n),p=s?Vw(s,c):"single";ne(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(n),!(s&&Kw(i,c,s,p,n))&&(c==1?s?Yw(i,s,p,n):rn(n)==l.scroller&&Ge(n):c==2?(s&&Ul(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(n):Gc(i)))}}}function Kw(n,i,l,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,Ls(n,sp(p,c),c,function(m){if(typeof m=="string"&&(m=Ts[m]),!m)return!1;var y=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),y=m(n,l)!=Lt}finally{n.state.suppressEdits=!1}return y})}function Xw(n,i,l){var s=n.getOption("configureMouse"),c=s?s(n,i,l):{};if(c.unit==null){var p=j?l.shiftKey&&l.metaKey:l.altKey;c.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||n.doc.extend)&&(c.extend=n.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=G?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(G?l.altKey:l.ctrlKey)),c}function Yw(n,i,l,s){d?setTimeout(Q(vd,n),0):n.curOp.focus=wt(Gt(n));var c=Xw(n,l,s),p=n.doc.sel,m;n.options.dragDrop&&kc&&!n.isReadOnly()&&l=="single"&&(m=p.contains(i))>-1&&(K((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(K(m.to(),i)>0||i.xRel<0)?Jw(n,s,i,c):Zw(n,s,i,c)}function Jw(n,i,l,s){var c=n.display,p=!1,m=$e(n,function(_){v&&(c.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Gc(n)),je(c.wrapper.ownerDocument,"mouseup",m),je(c.wrapper.ownerDocument,"mousemove",y),je(c.scroller,"dragstart",w),je(c.scroller,"drop",m),p||(Ge(_),s.addNew||Ul(n.doc,l,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,bt(c.wrapper.ownerDocument,"mouseup",m),bt(c.wrapper.ownerDocument,"mousemove",y),bt(c.scroller,"dragstart",w),bt(c.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function vp(n,i,l){if(l=="char")return new ie(i,i);if(l=="word")return n.findWordAt(i);if(l=="line")return new ie(I(i.line,0),Ft(n.doc,I(i.line+1,0)));var s=l(n,i);return new ie(s.from,s.to)}function Zw(n,i,l,s){d&&Gc(n);var c=n.display,p=n.doc;Ge(i);var m,y,w=p.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=p.sel.contains(l),y>-1?m=_[y]:m=new ie(l,l)):(m=p.sel.primary(),y=p.sel.primIndex),s.unit=="rectangle")s.addNew||(m=new ie(l,l)),l=_i(n,i,!0,!0),y=-1;else{var M=vp(n,l,s.unit);s.extend?m=ou(m,M.anchor,M.head,s.extend):m=M}s.addNew?y==-1?(y=_.length,Ve(p,Bn(n,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ve(p,Bn(n,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=p.sel):su(p,y,m,F):(y=0,Ve(p,new An([m],0),F),w=p.sel);var $=l;function B(yt){if(K($,yt)!=0)if($=yt,s.unit=="rectangle"){for(var Tt=[],Dt=n.options.tabSize,Ot=V(Nt(p,l.line).text,l.ch,Dt),Ut=V(Nt(p,yt.line).text,yt.ch,Dt),pe=Math.min(Ot,Ut),Re=Math.max(Ot,Ut),_e=Math.min(l.line,yt.line),wn=Math.min(n.lastLine(),Math.max(l.line,yt.line));_e<=wn;_e++){var ln=Nt(p,_e).text,Ee=nt(ln,pe,Dt);pe==Re?Tt.push(new ie(I(_e,Ee),I(_e,Ee))):ln.length>Ee&&Tt.push(new ie(I(_e,Ee),I(_e,nt(ln,Re,Dt))))}Tt.length||Tt.push(new ie(l,l)),Ve(p,Bn(n,w.ranges.slice(0,y).concat(Tt),y),{origin:"*mouse",scroll:!1}),n.scrollIntoView(yt)}else{var an=m,He=vp(n,yt,s.unit),Oe=an.anchor,Ae;K(He.anchor,Oe)>0?(Ae=He.head,Oe=Me(an.from(),He.anchor)):(Ae=He.anchor,Oe=ee(an.to(),He.head));var Ce=w.ranges.slice(0);Ce[y]=Qw(n,new ie(Ft(p,Oe),Ae)),Ve(p,Bn(n,Ce,y),F)}}var q=c.wrapper.getBoundingClientRect(),X=0;function it(yt){var Tt=++X,Dt=_i(n,yt,!0,s.unit=="rectangle");if(!!Dt)if(K(Dt,$)!=0){n.curOp.focus=wt(Gt(n)),B(Dt);var Ot=Il(c,p);(Dt.line>=Ot.to||Dt.line<Ot.from)&&setTimeout($e(n,function(){X==Tt&&it(yt)}),150)}else{var Ut=yt.clientY<q.top?-20:yt.clientY>q.bottom?20:0;Ut&&setTimeout($e(n,function(){X==Tt&&(c.scroller.scrollTop+=Ut,it(yt))}),50)}}function ft(yt){n.state.selectingText=!1,X=1/0,yt&&(Ge(yt),c.input.focus()),je(c.wrapper.ownerDocument,"mousemove",mt),je(c.wrapper.ownerDocument,"mouseup",_t),p.history.lastSelOrigin=null}var mt=$e(n,function(yt){yt.buttons===0||!es(yt)?ft(yt):it(yt)}),_t=$e(n,ft);n.state.selectingText=_t,bt(c.wrapper.ownerDocument,"mousemove",mt),bt(c.wrapper.ownerDocument,"mouseup",_t)}function Qw(n,i){var l=i.anchor,s=i.head,c=Nt(n.doc,l.line);if(K(l,s)==0&&l.sticky==s.sticky)return i;var p=be(c);if(!p)return i;var m=qe(p,l.ch,l.sticky),y=p[m];if(y.from!=l.ch&&y.to!=l.ch)return i;var w=m+(y.from==l.ch==(y.level!=1)?0:1);if(w==0||w==p.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var M=qe(p,s.ch,s.sticky),$=M-m||(s.ch-l.ch)*(y.level==1?-1:1);M==w-1||M==w?_=$<0:_=$>0}var B=p[w+(_?-1:0)],q=_==(B.level==1),X=q?B.from:B.to,it=q?"after":"before";return l.ch==X&&l.sticky==it?i:new ie(new I(l.line,X,it),s)}function mp(n,i,l,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&&Ge(i);var m=n.display,y=m.lineDiv.getBoundingClientRect();if(p>y.bottom||!Ye(n,l))return ts(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 M=Qn(n.doc,p),$=n.display.gutterSpecs[w];return me(n,l,n,M,$.className,i),ts(i)}}}function hu(n,i){return mp(n,i,"gutterClick",!0)}function yp(n,i){_r(n.display,i)||tx(n,i)||Se(n,i,"contextmenu")||vt||n.display.input.onContextMenu(i)}function tx(n,i){return Ye(n,"gutterContextMenu")?mp(n,i,"gutterContextMenu",!1):!1}function bp(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cs(n)}var bo={toString:function(){return"CodeMirror.Init"}},wp={},Jl={};function ex(n){var i=n.optionHandlers;function l(s,c,p,m){n.defaults[s]=c,p&&(i[s]=m?function(y,w,_){_!=bo&&p(y,w,_)}:p)}n.defineOption=l,n.Init=bo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,nu(s)},!0),l("indentUnit",2,nu,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){ms(s),cs(s),on(s)},!0),l("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 M=w.text.indexOf(c,_);if(M==-1)break;_=M+c.length,p.push(I(m,M))}m++});for(var y=p.length-1;y>=0;y--)go(s.doc,c,p[y],I(p[y].line,p[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,p){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=bo&&s.refresh()}),l("specialCharPlaceholder",Nb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",P?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),l("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),l("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),l("rtlMoveVisually",!rt),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){bp(s),vs(s)},!0),l("keyMap","default",function(s,c,p){var m=Xl(c),y=p!=bo&&Xl(p);y&&y.detach&&y.detach(s,m),m.attach&&m.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,rx,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=tu(c,s.options.lineNumbers),vs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Bc(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return uo(s)},!0),l("scrollbarStyle","native",function(s){_d(s),uo(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,c){s.display.gutterSpecs=tu(s.options.gutters,c),vs(s)},!0),l("firstLineNumber",1,vs,!0),l("lineNumberFormatter",function(s){return s},vs,!0),l("showCursorWhenSelecting",!1,us,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(ao(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),l("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),l("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),l("dragDrop",!0,nx),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,us,!0),l("singleCursorHeightPerLine",!0,us,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,ms,!0),l("addModeClass",!1,ms,!0),l("pollInterval",100),l("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),l("historyEventDelay",1250),l("viewportMargin",10,function(s){return s.refresh()},!0),l("maxHighlightLength",1e4,ms,!0),l("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),l("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),l("autofocus",null),l("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),l("phrases",null)}function nx(n,i,l){var s=l&&l!=bo;if(!i!=!s){var c=n.display.dragFunctions,p=i?bt:je;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 rx(n){n.options.lineWrapping?(Et(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(ut(n.display.wrapper,"CodeMirror-wrap"),Oc(n)),Wc(n),on(n),cs(n),setTimeout(function(){return uo(n)},100)}function we(n,i){var l=this;if(!(this instanceof we))return new we(n,i);this.options=i=i?tt(i):{},tt(wp,i,!1);var s=i.value;typeof s=="string"?s=new sn(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new we.inputStyles[i.inputStyle](this),p=this.display=new vw(n,s,c,i);p.wrapper.CodeMirror=this,bp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_d(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 st,keySeq:null,specialChars:null},i.autofocus&&!P&&p.input.focus(),d&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),ix(this),Dw(),Ti(this),this.curOp.forceUpdate=!0,Od(this,s),i.autofocus&&!P||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Vc(l)},20):ao(this);for(var m in Jl)Jl.hasOwnProperty(m)&&Jl[m](this,i[m],bo);Cd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<du.length;++y)du[y](this);Li(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}we.defaults=wp,we.optionHandlers=Jl;function ix(n){var i=n.display;bt(i.scroller,"mousedown",$e(n,gp)),d&&g<11?bt(i.scroller,"dblclick",$e(n,function(w){if(!Se(n,w)){var _=_i(n,w);if(!(!_||hu(n,w)||_r(n.display,w))){Ge(w);var M=n.findWordAt(_);Ul(n.doc,M.anchor,M.head)}}})):bt(i.scroller,"dblclick",function(w){return Se(n,w)||Ge(w)}),bt(i.scroller,"contextmenu",function(w){return yp(n,w)}),bt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||yp(n,w)});var l,s={end:0};function c(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function 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 M=_.left-w.left,$=_.top-w.top;return M*M+$*$>20*20}bt(i.scroller,"touchstart",function(w){if(!Se(n,w)&&!p(w)&&!hu(n,w)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},w.touches.length==1&&(i.activeTouch.left=w.touches[0].pageX,i.activeTouch.top=w.touches[0].pageY)}}),bt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),bt(i.scroller,"touchend",function(w){var _=i.activeTouch;if(_&&!_r(i,w)&&_.left!=null&&!_.moved&&new Date-_.start<300){var M=n.coordsChar(i.activeTouch,"page"),$;!_.prev||m(_,_.prev)?$=new ie(M,M):!_.prev.prev||m(_,_.prev.prev)?$=n.findWordAt(M):$=new ie(I(M.line,0),Ft(n.doc,I(M.line+1,0))),n.setSelection($.anchor,$.head),n.focus(),Ge(w)}c()}),bt(i.scroller,"touchcancel",c),bt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(hs(n,i.scroller.scrollTop),ki(n,i.scroller.scrollLeft,!0),me(n,"scroll",n))}),bt(i.scroller,"mousewheel",function(w){return Ed(n,w)}),bt(i.scroller,"DOMMouseScroll",function(w){return Ed(n,w)}),bt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){Se(n,w)||vr(w)},over:function(w){Se(n,w)||($w(n,w),vr(w))},start:function(w){return Pw(n,w)},drop:$e(n,Ow),leave:function(w){Se(n,w)||np(n)}};var y=i.input.getField();bt(y,"keyup",function(w){return dp.call(n,w)}),bt(y,"keydown",$e(n,hp)),bt(y,"keypress",$e(n,pp)),bt(y,"focus",function(w){return Vc(n,w)}),bt(y,"blur",function(w){return ao(n,w)})}var du=[];we.defineInitHook=function(n){return du.push(n)};function Ns(n,i,l,s){var c=n.doc,p;l==null&&(l="add"),l=="smart"&&(c.mode.indent?p=is(n,i).state:l="prev");var m=n.options.tabSize,y=Nt(c,i),w=V(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],M;if(!s&&!/\S/.test(y.text))M=0,l="not";else if(l=="smart"&&(M=c.mode.indent(p,y.text.slice(_.length),y.text),M==Lt||M>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?M=V(Nt(c,i-1).text,null,m):M=0:l=="add"?M=w+n.options.indentUnit:l=="subtract"?M=w-n.options.indentUnit:typeof l=="number"&&(M=w+l),M=Math.max(0,M);var $="",B=0;if(n.options.indentWithTabs)for(var q=Math.floor(M/m);q;--q)B+=m,$+=" ";if(B<M&&($+=pt(M-B)),$!=_)return go(c,$,I(i,0),I(i,_.length),"+input"),y.stateAfter=null,!0;for(var X=0;X<c.sel.ranges.length;X++){var it=c.sel.ranges[X];if(it.head.line==i&&it.head.ch<_.length){var ft=I(i,_.length);su(c,X,new ie(ft,ft));break}}}var Wn=null;function Zl(n){Wn=n}function pu(n,i,l,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=ns(i),_=null;if(y&&s.ranges.length>1)if(Wn&&Wn.text.join(`
|
|
23
|
+
`)==i){if(s.ranges.length%Wn.text.length==0){_=[];for(var M=0;M<Wn.text.length;M++)_.push(p.splitLines(Wn.text[M]))}}else w.length==s.ranges.length&&n.options.pasteLinesPerSelection&&(_=gt(w,function(mt){return[mt]}));for(var $=n.curOp.updateInput,B=s.ranges.length-1;B>=0;B--){var q=s.ranges[B],X=q.from(),it=q.to();q.empty()&&(l&&l>0?X=I(X.line,X.ch-l):n.state.overwrite&&!y?it=I(it.line,Math.min(Nt(p,it.line).text.length,it.ch+lt(w).length)):y&&Wn&&Wn.lineWise&&Wn.text.join(`
|
|
24
|
+
`)==w.join(`
|
|
25
|
+
`)&&(X=it=I(X.line,0)));var ft={from:X,to:it,text:_?_[B%_.length]:w,origin:c||(y?"paste":n.state.cutIncoming>m?"cut":"+input")};po(n.doc,ft),Pe(n,"inputRead",n,ft)}i&&!y&&_p(n,i),co(n),n.curOp.updateInput<2&&(n.curOp.updateInput=$),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function xp(n,i){var l=n.clipboardData&&n.clipboardData.getData("Text");if(l)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return pu(i,l,0,null,"paste")}),!0}function _p(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var l=n.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var 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=Ns(n,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Nt(n.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Ns(n,c.head.line,"smart"));m&&Pe(n,"electricInput",n,c.head.line)}}}function Sp(n){for(var i=[],l=[],s=0;s<n.doc.sel.ranges.length;s++){var c=n.doc.sel.ranges[s].head.line,p={anchor:I(c,0),head:I(c+1,0)};l.push(p),i.push(n.getRange(p.anchor,p.head))}return{text:i,ranges:l}}function kp(n,i,l,s){n.setAttribute("autocorrect",l?"":"off"),n.setAttribute("autocapitalize",s?"":"off"),n.setAttribute("spellcheck",!!i)}function Cp(){var n=C("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=C("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"),kp(n),i}function ox(n){var i=n.optionHandlers,l=n.helpers={};n.prototype={constructor:n,focus:function(){ne(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)&&$e(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"](Xl(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:Ze(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++,on(this)}),removeOverlay:Ze(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++,on(this);return}}}),indentLine:Ze(function(s,c,p){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),T(this.doc,s)&&Ns(this,s,c,p)}),indentSelection:Ze(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&&(Ns(this,y.head.line,s,!0),p=y.head.line,m==this.doc.sel.primIndex&&co(this));else{var w=y.from(),_=y.to(),M=Math.max(p,w.line);p=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var $=M;$<p;++$)Ns(this,$,s);var B=this.doc.sel.ranges;w.ch==0&&c.length==B.length&&B[m].from().ch>0&&su(this.doc,m,new ie(w,B[m].to()),O)}}}),getTokenAt:function(s,c){return $h(this,s,c)},getLineTokens:function(s,c){return $h(this,I(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=Mh(this,Nt(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 M=w?w.indexOf("overlay "):-1;return M<0?w:M==0?null:w.slice(0,M-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(!l.hasOwnProperty(c))return p;var m=l[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 M=0;M<m._global.length;M++){var $=m._global[M];$.pred(y,this)&&Ct(p,$.val)==-1&&p.push($.val)}return p},getStateAfter:function(s,c){var p=this.doc;return s=En(p,s??p.first+p.size-1),is(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=Ft(this.doc,s):p=s?m.from():m.to(),Hn(this,p,c||"page")},charCoords:function(s,c){return $l(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=cd(this,s,c||"page"),Fc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=cd(this,{top:s,left:0},c||"page").top,Qn(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=Nt(this.doc,s)}else y=s;return Pl(this,y,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-xr(y):0)},defaultTextHeight:function(){return so(this.display)},defaultCharWidth:function(){return lo(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=Hn(this,Ft(this.doc,s));var _=s.bottom,M=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),B=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),M+c.offsetWidth>B&&(M=B-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(M=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?M=0:y=="middle"&&(M=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=M+"px"),p&&nw(this,{left:M,top:_,right:M+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Ze(hp),triggerOnKeyPress:Ze(pp),triggerOnKeyUp:dp,triggerOnMouseDown:Ze(gp),execCommand:function(s){if(Ts.hasOwnProperty(s))return Ts[s].call(null,this)},triggerElectric:Ze(function(s){_p(this,s)}),findPosH:function(s,c,p,m){var y=1;c<0&&(y=-1,c=-c);for(var w=Ft(this.doc,s),_=0;_<c&&(w=gu(this.doc,w,y,p,m),!w.hitSide);++_);return w},moveH:Ze(function(s,c){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?gu(p.doc,m.head,s,c,p.options.rtlMoveVisually):s<0?m.from():m.to()},Y)}),deleteH:Ze(function(s,c){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):yo(this,function(y){var w=gu(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 _=Ft(this.doc,s),M=0;M<c;++M){var $=Hn(this,_,"div");if(w==null?w=$.left:$.left=w,_=Tp(this,$,y,p),_.hitSide)break}return _},moveV:Ze(function(s,c){var p=this,m=this.doc,y=[],w=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(M){if(w)return s<0?M.from():M.to();var $=Hn(p,M.head,"div");M.goalColumn!=null&&($.left=M.goalColumn),y.push($.left);var B=Tp(p,$,s,c);return c=="page"&&M==m.sel.primary()&&Xc(p,$l(p,B,"div").top-$.top),B},Y),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,p=Nt(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),M=zt(_,w)?function($){return zt($,w)}:/\s/.test(_)?function($){return/\s/.test($)}:function($){return!/\s/.test($)&&!zt($)};m>0&&M(p.charAt(m-1));)--m;for(;y<p.length&&M(p.charAt(y));)++y}return new ie(I(s.line,m),I(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Et(this.display.cursorDiv,"CodeMirror-overwrite"):ut(this.display.cursorDiv,"CodeMirror-overwrite"),me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt(Gt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ze(function(s,c){fs(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-er(this)-this.display.barHeight,width:s.scrollWidth-er(this)-this.display.barWidth,clientHeight:Dc(this),clientWidth:wi(this)}},scrollIntoView:Ze(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:I(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?rw(this,s):yd(this,s.from,s.to,s.margin)}),setSize:Ze(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&&sd(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){jr(p,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,me(this,"refresh",this)}),operation:function(s){return bn(this,s)},startOperation:function(){return Ti(this)},endOperation:function(){return Li(this)},refresh:Ze(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,cs(this),fs(this,this.doc.scrollLeft,this.doc.scrollTop),Zc(this.display),(s==null||Math.abs(s-so(this.display))>.5||this.options.lineWrapping)&&Wc(this),me(this,"refresh",this)}),swapDoc:Ze(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Od(this,s),cs(this),this.display.input.reset(),fs(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Pe(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}},Je(n),n.registerHelper=function(s,c,p){l.hasOwnProperty(s)||(l[s]=n[s]={_global:[]}),l[s][c]=p},n.registerGlobalHelper=function(s,c,p,m){n.registerHelper(s,c,m),l[s]._global.push({pred:p,val:m})}}function gu(n,i,l,s,c){var p=i,m=l,y=Nt(n,i.line),w=c&&n.direction=="rtl"?-l:l;function _(){var _t=i.line+w;return _t<n.first||_t>=n.first+n.size?!1:(i=new I(_t,i.ch,i.sticky),y=Nt(n,_t))}function M(_t){var yt;if(s=="codepoint"){var Tt=y.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(Tt))yt=null;else{var Dt=l>0?Tt>=55296&&Tt<56320:Tt>=56320&&Tt<57343;yt=new I(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Dt?2:1))),-l)}}else c?yt=qw(n.cm,y,i,l):yt=au(y,i,l);if(yt==null)if(!_t&&_())i=cu(c,n.cm,y,i.line,w);else return!1;else i=yt;return!0}if(s=="char"||s=="codepoint")M();else if(s=="column")M(!0);else if(s=="word"||s=="group")for(var $=null,B=s=="group",q=n.cm&&n.cm.getHelper(i,"wordChars"),X=!0;!(l<0&&!M(!X));X=!1){var it=y.text.charAt(i.ch)||`
|
|
26
|
+
`,ft=zt(it,q)?"w":B&&it==`
|
|
27
|
+
`?"n":!B||/\s/.test(it)?null:"p";if(B&&!X&&!ft&&(ft="s"),$&&$!=ft){l<0&&(l=1,M(),i.sticky="after");break}if(ft&&($=ft),l>0&&!M(!X))break}var mt=Gl(n,i,p,m,!0);return It(p,mt)&&(mt.hitSide=!0),mt}function Tp(n,i,l,s){var c=n.doc,p=i.left,m;if(s=="page"){var y=Math.min(n.display.wrapper.clientHeight,ne(n).innerHeight||c(n).documentElement.clientHeight),w=Math.max(y-.5*so(n.display),3);m=(l>0?i.bottom:i.top)+l*w}else s=="line"&&(m=l>0?i.bottom+3:i.top-3);for(var _;_=Fc(n,p,m),!!_.outside;){if(l<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=l*5}return _}var ae=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new st,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ae.prototype.init=function(n){var i=this,l=this,s=l.cm,c=l.div=n.lineDiv;c.contentEditable=!0,kp(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}bt(c,"paste",function(y){!p(y)||Se(s,y)||xp(y,s)||g<=11&&setTimeout($e(s,function(){return i.updateFromDOM()}),20)}),bt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),bt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),bt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),bt(c,"touchstart",function(){return l.forceCompositionEnd()}),bt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!p(y)||Se(s,y))){if(s.somethingSelected())Zl({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=Sp(s);Zl({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 _=Wn.text.join(`
|
|
28
|
+
`);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var M=Cp(),$=M.firstChild;s.display.lineSpace.insertBefore(M,s.display.lineSpace.firstChild),$.value=Wn.text.join(`
|
|
29
|
+
`);var B=wt(c.ownerDocument);Bt($),setTimeout(function(){s.display.lineSpace.removeChild(M),B.focus(),B==c&&l.showPrimarySelection()},50)}}bt(c,"copy",m),bt(c,"cut",m)},ae.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},ae.prototype.prepareSelection=function(){var n=gd(this.cm,!1);return n.focus=wt(this.div.ownerDocument)==this.div,n},ae.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},ae.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ae.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){n.removeAllRanges();return}var p=Ql(i,n.anchorNode,n.anchorOffset),m=Ql(i,n.focusNode,n.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&K(Me(p,m),s)==0&&K(ee(p,m),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&Lp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&Lp(i,c);if(!_){var M=y[y.length-1].measure,$=M.maps?M.maps[M.maps.length-1]:M.map;_={node:$[$.length-1],offset:$[$.length-2]-$[$.length-3]}}if(!w||!_){n.removeAllRanges();return}var B=n.rangeCount&&n.getRangeAt(0),q;try{q=W(w.node,w.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(n.collapse(w.node,w.offset),q.collapsed||(n.removeAllRanges(),n.addRange(q))):(n.removeAllRanges(),n.addRange(q)),B&&n.anchorNode==null?n.addRange(B):a&&this.startGracePeriod()),this.rememberSelection()}},ae.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)},ae.prototype.showMultipleSelections=function(n){z(this.cm.display.cursorDiv,n.cursors),z(this.cm.display.selectionDiv,n.selection)},ae.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},ae.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return et(this.div,i)},ae.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||wt(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ae.prototype.blur=function(){this.div.blur()},ae.prototype.getField=function(){return this.div},ae.prototype.supportsTouch=function(){return!0},ae.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):bn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function l(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},ae.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},ae.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&x&&this.cm.display.gutterSpecs.length&&sx(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Ql(i,n.anchorNode,n.anchorOffset),s=Ql(i,n.focusNode,n.focusOffset);l&&s&&bn(i,function(){Ve(i.doc,Vr(l,s),O),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},ae.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,l=n.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>n.firstLine()&&(s=I(s.line-1,Nt(n.doc,s.line-1).length)),c.ch==Nt(n.doc,c.line).text.length&&c.line<n.lastLine()&&(c=I(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var p,m,y;s.line==i.viewFrom||(p=Si(n,s.line))==0?(m=re(i.view[0].line),y=i.view[0].node):(m=re(i.view[p].line),y=i.view[p-1].node.nextSibling);var w=Si(n,c.line),_,M;if(w==i.view.length-1?(_=i.viewTo-1,M=i.lineDiv.lastChild):(_=re(i.view[w+1].line)-1,M=i.view[w+1].node.previousSibling),!y)return!1;for(var $=n.doc.splitLines(lx(n,y,M,m,_)),B=br(n.doc,I(m,0),I(_,Nt(n.doc,_).text.length));$.length>1&&B.length>1;)if(lt($)==lt(B))$.pop(),B.pop(),_--;else if($[0]==B[0])$.shift(),B.shift(),m++;else break;for(var q=0,X=0,it=$[0],ft=B[0],mt=Math.min(it.length,ft.length);q<mt&&it.charCodeAt(q)==ft.charCodeAt(q);)++q;for(var _t=lt($),yt=lt(B),Tt=Math.min(_t.length-($.length==1?q:0),yt.length-(B.length==1?q:0));X<Tt&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)++X;if($.length==1&&B.length==1&&m==s.line)for(;q&&q>s.ch&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)q--,X++;$[$.length-1]=_t.slice(0,_t.length-X).replace(/^\u200b+/,""),$[0]=$[0].slice(q).replace(/\u200b+$/,"");var Dt=I(m,q),Ot=I(_,B.length?lt(B).length-X:0);if($.length>1||$[0]||K(Dt,Ot))return go(n.doc,$,Dt,Ot,"+input"),!0},ae.prototype.ensurePolled=function(){this.forceCompositionEnd()},ae.prototype.reset=function(){this.forceCompositionEnd()},ae.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ae.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))},ae.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return on(n.cm)})},ae.prototype.setUneditable=function(n){n.contentEditable="false"},ae.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||$e(this.cm,pu)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},ae.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},ae.prototype.onContextMenu=function(){},ae.prototype.resetPosition=function(){},ae.prototype.needsContentAttribute=!0;function Lp(n,i){var l=Rc(n,i.line);if(!l||l.hidden)return null;var s=Nt(n.doc,i.line),c=ed(l,s,i.line),p=be(s,n.doc.direction),m="left";if(p){var y=qe(p,i.ch);m=y%2?"right":"left"}var w=id(c.map,i.ch,m);return w.offset=w.collapse=="right"?w.end:w.start,w}function sx(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function wo(n,i){return i&&(n.bad=!0),n}function lx(n,i,l,s,c){var p="",m=!1,y=n.doc.lineSeparator(),w=!1;function _(q){return function(X){return X.id==q}}function M(){m&&(p+=y,w&&(p+=y),m=w=!1)}function $(q){q&&(M(),p+=q)}function B(q){if(q.nodeType==1){var X=q.getAttribute("cm-text");if(X){$(X);return}var it=q.getAttribute("cm-marker"),ft;if(it){var mt=n.findMarks(I(s,0),I(c+1,0),_(+it));mt.length&&(ft=mt[0].find(0))&&$(br(n.doc,ft.from,ft.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var _t=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;_t&&M();for(var yt=0;yt<q.childNodes.length;yt++)B(q.childNodes[yt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),_t&&(m=!0)}else q.nodeType==3&&$(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(i),i!=l;)i=i.nextSibling,w=!1;return p}function Ql(n,i,l){var s;if(i==n.display.lineDiv){if(s=n.display.lineDiv.childNodes[l],!s)return wo(n.clipPos(I(n.display.viewTo-1)),!0);i=null,l=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 ax(p,i,l)}}function ax(n,i,l){var s=n.text.firstChild,c=!1;if(!i||!et(s,i))return wo(I(re(n.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var p=n.rest?lt(n.rest):n.line;return wo(I(re(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,l&&(l=m.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=n.measure,_=w.maps;function M(ft,mt,_t){for(var yt=-1;yt<(_?_.length:0);yt++)for(var Tt=yt<0?w.map:_[yt],Dt=0;Dt<Tt.length;Dt+=3){var Ot=Tt[Dt+2];if(Ot==ft||Ot==mt){var Ut=re(yt<0?n.line:n.rest[yt]),pe=Tt[Dt]+_t;return(_t<0||Ot!=ft)&&(pe=Tt[Dt+(_t?1:0)]),I(Ut,pe)}}}var $=M(m,y,l);if($)return wo($,c);for(var B=y.nextSibling,q=m?m.nodeValue.length-l:0;B;B=B.nextSibling){if($=M(B,B.firstChild,0),$)return wo(I($.line,$.ch-q),c);q+=B.textContent.length}for(var X=y.previousSibling,it=l;X;X=X.previousSibling){if($=M(X,X.firstChild,-1),$)return wo(I($.line,$.ch+it),c);it+=X.textContent.length}}var Te=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new st,this.hasSelection=!1,this.composing=null,this.resetting=!1};Te.prototype.init=function(n){var i=this,l=this,s=this.cm;this.createField(n);var c=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),E&&(c.style.width="0px"),bt(c,"input",function(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),bt(c,"paste",function(m){Se(s,m)||xp(m,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function p(m){if(!Se(s,m)){if(s.somethingSelected())Zl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=Sp(s);Zl({lineWise:!0,text:y.text}),m.type=="cut"?s.setSelections(y.ranges,null,O):(l.prevInput="",c.value=y.text.join(`
|
|
30
|
+
`),Bt(c))}else return;m.type=="cut"&&(s.state.cutIncoming=+new Date)}}bt(c,"cut",p),bt(c,"copy",p),bt(n.scroller,"paste",function(m){if(!(_r(n,m)||Se(s,m))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),bt(n.lineSpace,"selectstart",function(m){_r(n,m)||Ge(m)}),bt(c,"compositionstart",function(){var m=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:m,range:s.markText(m,s.getCursor("to"),{className:"CodeMirror-composing"})}}),bt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Te.prototype.createField=function(n){this.wrapper=Cp(),this.textarea=this.wrapper.firstChild},Te.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var n=this.cm,i=n.display,l=n.doc,s=gd(n);if(n.options.moveInputWithCursor){var c=Hn(n,l.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},Te.prototype.showSelection=function(n){var i=this.cm,l=i.display;z(l.cursorDiv,n.cursors),z(l.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Te.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Bt(this.textarea),d&&g>=9&&(this.hasSelection=l)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Te.prototype.getField=function(){return this.textarea},Te.prototype.supportsTouch=function(){return!1},Te.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!P||wt(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Te.prototype.blur=function(){this.textarea.blur()},Te.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Te.prototype.receivedFocus=function(){this.slowPoll()},Te.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Te.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function l(){var s=i.poll();!s&&!n?(n=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},Te.prototype.poll=function(){var n=this,i=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||qr(l)&&!s&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=l.value;if(c==s&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===c||G&&/[\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 bn(i,function(){pu(i,c.slice(m),s.length-m,null,n.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
31
|
+
`)>-1?l.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},Te.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Te.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Te.prototype.onContextMenu=function(n){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=_i(l,n),m=s.scroller.scrollTop;if(!p||N)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(p)==-1&&$e(l,Ve)(l.doc,Vr(p),O);var w=c.style.cssText,_=i.wrapper.style.cssText,M=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
32
|
+
top: `+(n.clientY-M.top-5)+"px; left: "+(n.clientX-M.left-5)+`px;
|
|
33
|
+
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
34
|
+
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(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function B(){if(c.selectionStart!=null){var it=l.somethingSelected(),ft=""+(it?c.value:"");c.value="⇚",c.value=ft,i.prevInput=it?"":"",c.selectionStart=1,c.selectionEnd=ft.length,s.selForContextMenu=l.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)&&B();var it=0,ft=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput==""?$e(l,jd)(l):it++<10?s.detectingSelectAll=setTimeout(ft,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ft,200)}}if(d&&g>=9&&B(),vt){vr(n);var X=function(){je(window,"mouseup",X),setTimeout(q,20)};bt(window,"mouseup",X)}else setTimeout(q,50)},Te.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Te.prototype.setUneditable=function(){},Te.prototype.needsContentAttribute=!1;function cx(n,i){if(i=i?tt(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 l=wt(n.ownerDocument);i.autofocus=l==n||n.getAttribute("autofocus")!=null&&l==document.body}function s(){n.value=y.getValue()}var c;if(n.form&&(bt(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&&(je(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 ux(n){n.off=je,n.on=bt,n.wheelEventPixels=mw,n.Doc=sn,n.splitLines=ns,n.countColumn=V,n.findColumn=nt,n.isWordChar=Pt,n.Pass=Lt,n.signal=me,n.Line=ro,n.changeEnd=Kr,n.scrollbarModel=xd,n.Pos=I,n.cmpPos=K,n.modes=Fn,n.mimeModes=Hr,n.resolveMode=yn,n.getMode=mr,n.modeExtensions=Br,n.extendMode=kl,n.copyState=yr,n.startState=rs,n.innerMode=Wr,n.commands=Ts,n.keyMap=kr,n.keyName=lp,n.isModifierKey=op,n.lookupKey=mo,n.normalizeKeyMap=Fw,n.StringStream=ke,n.SharedTextMarker=Ss,n.TextMarker=Yr,n.LineWidget=_s,n.e_preventDefault=Ge,n.e_stopPropagation=bi,n.e_stop=vr,n.addClass=Et,n.contains=et,n.rmClass=ut,n.keyNames=Jr}ex(we),ox(we);var fx="iter insert remove copy getEditor constructor".split(" ");for(var ta in sn.prototype)sn.prototype.hasOwnProperty(ta)&&Ct(fx,ta)<0&&(we.prototype[ta]=function(n){return function(){return n.apply(this.doc,arguments)}}(sn.prototype[ta]));return Je(sn),we.inputStyles={textarea:Te,contenteditable:ae},we.defineMode=function(n){!we.defaults.mode&&n!="null"&&(we.defaults.mode=n),Sl.apply(this,arguments)},we.defineMIME=eo,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){sn.prototype[n]=i},we.fromTextArea=cx,ux(we),we.version="5.65.9",we})}(Ou)),Ou.exports}var mlt=Jo(),bv={exports:{}},wv;function xy(){return wv||(wv=1,function(t,e){(function(r){r(Jo())})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,d=a.json||h,g=a.trackScope!==!1,v=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function T(Me){return{type:Me,style:"keyword"}}var D=T("keyword a"),I=T("keyword b"),K=T("keyword c"),It=T("keyword d"),Vt=T("operator"),ee={type:"atom",style:"atom"};return{if:T("if"),while:D,with:D,else:I,do:I,try:I,finally:I,return:It,break:It,continue:It,new:T("new"),delete:K,void:K,throw:K,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ee,false:ee,null:ee,undefined:ee,NaN:ee,Infinity:ee,this:T("this"),class:T("class"),super:T("atom"),yield:K,export:T("export"),import:T("import"),extends:K,await:K}}(),S=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(T){for(var D=!1,I,K=!1;(I=T.next())!=null;){if(!D){if(I=="/"&&!K)return;I=="["?K=!0:K&&I=="]"&&(K=!1)}D=!D&&I=="\\"}}var L,k;function E(T,D,I){return L=T,k=I,D}function R(T,D){var I=T.next();if(I=='"'||I=="'")return D.tokenize=P(I),D.tokenize(T,D);if(I=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(I=="."&&T.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(I))return E(I);if(I=="="&&T.eat(">"))return E("=>","operator");if(I=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(I))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(I=="/")return T.eat("*")?(D.tokenize=G,G(T,D)):T.eat("/")?(T.skipToEnd(),E("comment","comment")):Qn(T,D,1)?(A(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(T.eat("="),E("operator","operator",T.current()));if(I=="`")return D.tokenize=j,j(T,D);if(I=="#"&&T.peek()=="!")return T.skipToEnd(),E("meta","meta");if(I=="#"&&T.eatWhile(b))return E("variable","property");if(I=="<"&&T.match("!--")||I=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),E("comment","comment");if(S.test(I))return(I!=">"||!D.lexical||D.lexical.type!=">")&&(T.eat("=")?(I=="!"||I=="=")&&T.eat("="):/[<>*+\-|&?]/.test(I)&&(T.eat(I),I==">"&&T.eat(I))),I=="?"&&T.eat(".")?E("."):E("operator","operator",T.current());if(b.test(I)){T.eatWhile(b);var K=T.current();if(D.lastType!="."){if(x.propertyIsEnumerable(K)){var It=x[K];return E(It.type,It.style,K)}if(K=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",K)}return E("variable","variable",K)}}function P(T){return function(D,I){var K=!1,It;if(h&&D.peek()=="@"&&D.match(N))return I.tokenize=R,E("jsonld-keyword","meta");for(;(It=D.next())!=null&&!(It==T&&!K);)K=!K&&It=="\\";return K||(I.tokenize=R),E("string","string")}}function G(T,D){for(var I=!1,K;K=T.next();){if(K=="/"&&I){D.tokenize=R;break}I=K=="*"}return E("comment","comment")}function j(T,D){for(var I=!1,K;(K=T.next())!=null;){if(!I&&(K=="`"||K=="$"&&T.eat("{"))){D.tokenize=R;break}I=!I&&K=="\\"}return E("quasi","string-2",T.current())}var rt="([{}])";function Z(T,D){D.fatArrowAt&&(D.fatArrowAt=null);var I=T.string.indexOf("=>",T.start);if(!(I<0)){if(v){var K=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,I));K&&(I=K.index)}for(var It=0,Vt=!1,ee=I-1;ee>=0;--ee){var Me=T.string.charAt(ee),En=rt.indexOf(Me);if(En>=0&&En<3){if(!It){++ee;break}if(--It==0){Me=="("&&(Vt=!0);break}}else if(En>=3&&En<6)++It;else if(b.test(Me))Vt=!0;else if(/["'\/`]/.test(Me))for(;;--ee){if(ee==0)return;var Ft=T.string.charAt(ee-1);if(Ft==Me&&T.string.charAt(ee-2)!="\\"){ee--;break}}else if(Vt&&!It){++ee;break}}Vt&&!It&&(D.fatArrowAt=ee)}}var ct={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vt(T,D,I,K,It,Vt){this.indented=T,this.column=D,this.type=I,this.prev=It,this.info=Vt,K!=null&&(this.align=K)}function kt(T,D){if(!g)return!1;for(var I=T.localVars;I;I=I.next)if(I.name==D)return!0;for(var K=T.context;K;K=K.prev)for(var I=K.vars;I;I=I.next)if(I.name==D)return!0}function ut(T,D,I,K,It){var Vt=T.cc;for(U.state=T,U.stream=It,U.marked=null,U.cc=Vt,U.style=D,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ee=Vt.length?Vt.pop():d?Lt:Ct;if(ee(I,K)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return U.marked?U.marked:I=="variable"&&kt(T,K)?"variable-2":D}}}var U={state:null,column:null,marked:null,cc:null};function z(){for(var T=arguments.length-1;T>=0;T--)U.cc.push(arguments[T])}function C(){return z.apply(null,arguments),!0}function H(T,D){for(var I=D;I;I=I.next)if(I.name==T)return!0;return!1}function W(T){var D=U.state;if(U.marked="def",!!g){if(D.context){if(D.lexical.info=="var"&&D.context&&D.context.block){var I=et(T,D.context);if(I!=null){D.context=I;return}}else if(!H(T,D.localVars)){D.localVars=new qt(T,D.localVars);return}}a.globalVars&&!H(T,D.globalVars)&&(D.globalVars=new qt(T,D.globalVars))}}function et(T,D){if(D)if(D.block){var I=et(T,D.prev);return I?I==D.prev?D:new Et(I,D.vars,!0):null}else return H(T,D.vars)?D:new Et(D.prev,new qt(T,D.vars),!1);else return null}function wt(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Et(T,D,I){this.prev=T,this.vars=D,this.block=I}function qt(T,D){this.name=T,this.next=D}var Bt=new qt("this",new qt("arguments",null));function Gt(){U.state.context=new Et(U.state.context,U.state.localVars,!1),U.state.localVars=Bt}function ne(){U.state.context=new Et(U.state.context,U.state.localVars,!0),U.state.localVars=null}Gt.lex=ne.lex=!0;function Q(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}Q.lex=!0;function tt(T,D){var I=function(){var K=U.state,It=K.indented;if(K.lexical.type=="stat")It=K.lexical.indented;else for(var Vt=K.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;K.lexical=new vt(It,U.stream.column(),T,null,K.lexical,D)};return I.lex=!0,I}function V(){var T=U.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}V.lex=!0;function st(T){function D(I){return I==T?C():T==";"||I=="}"||I==")"||I=="]"?z():C(D)}return D}function Ct(T,D){return T=="var"?C(tt("vardef",D),vr,st(";"),V):T=="keyword a"?C(tt("form"),F,Ct,V):T=="keyword b"?C(tt("form"),Ct,V):T=="keyword d"?U.stream.match(/^\s*$/,!1)?C():C(tt("stat"),nt,st(";"),V):T=="debugger"?C(st(";")):T=="{"?C(tt("}"),ne,Ln,V,Q):T==";"?C():T=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==V&&U.state.cc.pop()(),C(tt("form"),F,Ct,V,to)):T=="function"?C(Jn):T=="for"?C(tt("form"),ne,xl,Ct,Q,V):T=="class"||v&&D=="interface"?(U.marked="keyword",C(tt("form",T=="class"?T:D),Sl,V)):T=="variable"?v&&D=="declare"?(U.marked="keyword",C(Ct)):v&&(D=="module"||D=="enum"||D=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",D=="enum"?C(no):D=="type"?C(_l,st("operator"),bt,st(";")):C(tt("form"),rn,st("{"),tt("}"),Ln,V,V)):v&&D=="namespace"?(U.marked="keyword",C(tt("form"),Lt,Ct,V)):v&&D=="abstract"?(U.marked="keyword",C(Ct)):C(tt("stat"),zt):T=="switch"?C(tt("form"),F,st("{"),tt("}","switch"),ne,Ln,V,V,Q):T=="case"?C(Lt,st(":")):T=="default"?C(st(":")):T=="catch"?C(tt("form"),Gt,de,Ct,V,Q):T=="export"?C(tt("stat"),Br,V):T=="import"?C(tt("stat"),yr,V):T=="async"?C(Ct):D=="@"?C(Lt,Ct):z(tt("stat"),Lt,st(";"),V)}function de(T){if(T=="(")return C(Fn,st(")"))}function Lt(T,D){return Y(T,D,!1)}function O(T,D){return Y(T,D,!0)}function F(T){return T!="("?z():C(tt(")"),nt,st(")"),V)}function Y(T,D,I){if(U.state.fatArrowAt==U.stream.start){var K=I?at:xt;if(T=="(")return C(Gt,tt(")"),Yt(Fn,")"),V,st("=>"),K,Q);if(T=="variable")return z(Gt,rn,st("=>"),K,Q)}var It=I?pt:ot;return ct.hasOwnProperty(T)?C(It):T=="function"?C(Jn,It):T=="class"||v&&D=="interface"?(U.marked="keyword",C(tt("form"),Hr,V)):T=="keyword c"||T=="async"?C(I?O:Lt):T=="("?C(tt(")"),nt,st(")"),V,It):T=="operator"||T=="spread"?C(I?O:Lt):T=="["?C(tt("]"),br,V,It):T=="{"?mn(te,"}",null,It):T=="quasi"?z(lt,It):T=="new"?C($t(I)):C()}function nt(T){return T.match(/[;\}\)\],]/)?z():z(Lt)}function ot(T,D){return T==","?C(nt):pt(T,D,!1)}function pt(T,D,I){var K=I==!1?ot:pt,It=I==!1?Lt:O;if(T=="=>")return C(Gt,I?at:xt,Q);if(T=="operator")return/\+\+|--/.test(D)||v&&D=="!"?C(K):v&&D=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(tt(">"),Yt(bt,">"),V,K):D=="?"?C(Lt,st(":"),It):C(It);if(T=="quasi")return z(lt,K);if(T!=";"){if(T=="(")return mn(O,")","call",K);if(T==".")return C(jt,K);if(T=="[")return C(tt("]"),nt,st("]"),V,K);if(v&&D=="as")return U.marked="keyword",C(bt,K);if(T=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),C(It)}}function lt(T,D){return T!="quasi"?z():D.slice(D.length-2)!="${"?C(lt):C(nt,gt)}function gt(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,C(lt)}function xt(T){return Z(U.stream,U.state),z(T=="{"?Ct:Lt)}function at(T){return Z(U.stream,U.state),z(T=="{"?Ct:O)}function $t(T){return function(D){return D=="."?C(T?Pt:Mt):D=="variable"&&v?C(Ge,T?pt:ot):z(T?O:Lt)}}function Mt(T,D){if(D=="target")return U.marked="keyword",C(ot)}function Pt(T,D){if(D=="target")return U.marked="keyword",C(pt)}function zt(T){return T==":"?C(V,Ct):z(ot,st(";"),V)}function jt(T){if(T=="variable")return U.marked="property",C()}function te(T,D){if(T=="async")return U.marked="property",C(te);if(T=="variable"||U.style=="keyword"){if(U.marked="property",D=="get"||D=="set")return C(Qt);var I;return v&&U.state.fatArrowAt==U.stream.start&&(I=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+I[0].length),C(se)}else{if(T=="number"||T=="string")return U.marked=h?"property":U.style+" property",C(se);if(T=="jsonld-keyword")return C(se);if(v&&wt(D))return U.marked="keyword",C(te);if(T=="[")return C(Lt,qe,st("]"),se);if(T=="spread")return C(O,se);if(D=="*")return U.marked="keyword",C(te);if(T==":")return z(se)}}function Qt(T){return T!="variable"?z(se):(U.marked="property",C(Jn))}function se(T){if(T==":")return C(O);if(T=="(")return z(Jn)}function Yt(T,D,I){function K(It,Vt){if(I?I.indexOf(It)>-1:It==","){var ee=U.state.lexical;return ee.info=="call"&&(ee.pos=(ee.pos||0)+1),C(function(Me,En){return Me==D||En==D?z():z(T)},K)}return It==D||Vt==D?C():I&&I.indexOf(";")>-1?z(T):C(st(D))}return function(It,Vt){return It==D||Vt==D?C():z(T,K)}}function mn(T,D,I){for(var K=3;K<arguments.length;K++)U.cc.push(arguments[K]);return C(tt(D,I),Yt(T,D),V)}function Ln(T){return T=="}"?C():z(Ct,Ln)}function qe(T,D){if(v){if(T==":")return C(bt);if(D=="?")return C(qe)}}function Qi(T,D){if(v&&(T==":"||D=="in"))return C(bt)}function be(T){if(v&&T==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?C(Lt,nn,bt):C(bt)}function nn(T,D){if(D=="is")return U.marked="keyword",C()}function bt(T,D){if(D=="keyof"||D=="typeof"||D=="infer"||D=="readonly")return U.marked="keyword",C(D=="typeof"?O:bt);if(T=="variable"||D=="void")return U.marked="type",C(Je);if(D=="|"||D=="&")return C(bt);if(T=="string"||T=="number"||T=="atom")return C(Je);if(T=="[")return C(tt("]"),Yt(bt,"]",","),V,Je);if(T=="{")return C(tt("}"),je,V,Je);if(T=="(")return C(Yt(Ye,")"),Qo,Je);if(T=="<")return C(Yt(bt,">"),bt);if(T=="quasi")return z(Se,Je)}function Qo(T){if(T=="=>")return C(bt)}function je(T){return T.match(/[\}\)\]]/)?C():T==","||T==";"?C(je):z(me,je)}function me(T,D){if(T=="variable"||U.style=="keyword")return U.marked="property",C(me);if(D=="?"||T=="number"||T=="string")return C(me);if(T==":")return C(bt);if(T=="[")return C(st("variable"),Qi,st("]"),me);if(T=="(")return z(Zn,me);if(!T.match(/[;\}\)\],]/))return C()}function Se(T,D){return T!="quasi"?z():D.slice(D.length-2)!="${"?C(Se):C(bt,wl)}function wl(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,C(Se)}function Ye(T,D){return T=="variable"&&U.stream.match(/^\s*[?:]/,!1)||D=="?"?C(Ye):T==":"?C(bt):T=="spread"?C(Ye):z(bt)}function Je(T,D){if(D=="<")return C(tt(">"),Yt(bt,">"),V,Je);if(D=="|"||T=="."||D=="&")return C(bt);if(T=="[")return C(bt,st("]"),Je);if(D=="extends"||D=="implements")return U.marked="keyword",C(bt);if(D=="?")return C(bt,st(":"),bt)}function Ge(T,D){if(D=="<")return C(tt(">"),Yt(bt,">"),V,Je)}function bi(){return z(bt,ts)}function ts(T,D){if(D=="=")return C(bt)}function vr(T,D){return D=="enum"?(U.marked="keyword",C(no)):z(rn,qe,$n,Cc)}function rn(T,D){if(v&&wt(D))return U.marked="keyword",C(rn);if(T=="variable")return W(D),C();if(T=="spread")return C(rn);if(T=="[")return mn(kc,"]");if(T=="{")return mn(es,"}")}function es(T,D){return T=="variable"&&!U.stream.match(/^\s*:/,!1)?(W(D),C($n)):(T=="variable"&&(U.marked="property"),T=="spread"?C(rn):T=="}"?z():T=="["?C(Lt,st("]"),st(":"),es):C(st(":"),rn,$n))}function kc(){return z(rn,$n)}function $n(T,D){if(D=="=")return C(O)}function Cc(T){if(T==",")return C(vr)}function to(T,D){if(T=="keyword b"&&D=="else")return C(tt("form","else"),Ct,V)}function xl(T,D){if(D=="await")return C(xl);if(T=="(")return C(tt(")"),ns,V)}function ns(T){return T=="var"?C(vr,qr):T=="variable"?C(qr):z(qr)}function qr(T,D){return T==")"?C():T==";"?C(qr):D=="in"||D=="of"?(U.marked="keyword",C(Lt,qr)):z(Lt,qr)}function Jn(T,D){if(D=="*")return U.marked="keyword",C(Jn);if(T=="variable")return W(D),C(Jn);if(T=="(")return C(Gt,tt(")"),Yt(Fn,")"),V,be,Ct,Q);if(v&&D=="<")return C(tt(">"),Yt(bi,">"),V,Jn)}function Zn(T,D){if(D=="*")return U.marked="keyword",C(Zn);if(T=="variable")return W(D),C(Zn);if(T=="(")return C(Gt,tt(")"),Yt(Fn,")"),V,be,Q);if(v&&D=="<")return C(tt(">"),Yt(bi,">"),V,Zn)}function _l(T,D){if(T=="keyword"||T=="variable")return U.marked="type",C(_l);if(D=="<")return C(tt(">"),Yt(bi,">"),V)}function Fn(T,D){return D=="@"&&C(Lt,Fn),T=="spread"?C(Fn):v&&wt(D)?(U.marked="keyword",C(Fn)):v&&T=="this"?C(qe,$n):z(rn,qe,$n)}function Hr(T,D){return T=="variable"?Sl(T,D):eo(T,D)}function Sl(T,D){if(T=="variable")return W(D),C(eo)}function eo(T,D){if(D=="<")return C(tt(">"),Yt(bi,">"),V,eo);if(D=="extends"||D=="implements"||v&&T==",")return D=="implements"&&(U.marked="keyword"),C(v?bt:Lt,eo);if(T=="{")return C(tt("}"),yn,V)}function yn(T,D){if(T=="async"||T=="variable"&&(D=="static"||D=="get"||D=="set"||v&&wt(D))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",C(yn);if(T=="variable"||U.style=="keyword")return U.marked="property",C(mr,yn);if(T=="number"||T=="string")return C(mr,yn);if(T=="[")return C(Lt,qe,st("]"),mr,yn);if(D=="*")return U.marked="keyword",C(yn);if(v&&T=="(")return z(Zn,yn);if(T==";"||T==",")return C(yn);if(T=="}")return C();if(D=="@")return C(Lt,yn)}function mr(T,D){if(D=="!"||D=="?")return C(mr);if(T==":")return C(bt,$n);if(D=="=")return C(O);var I=U.state.lexical.prev,K=I&&I.info=="interface";return z(K?Zn:Jn)}function Br(T,D){return D=="*"?(U.marked="keyword",C(Nt,st(";"))):D=="default"?(U.marked="keyword",C(Lt,st(";"))):T=="{"?C(Yt(kl,"}"),Nt,st(";")):z(Ct)}function kl(T,D){if(D=="as")return U.marked="keyword",C(st("variable"));if(T=="variable")return z(O,kl)}function yr(T){return T=="string"?C():T=="("?z(Lt):T=="."?z(ot):z(Wr,rs,Nt)}function Wr(T,D){return T=="{"?mn(Wr,"}"):(T=="variable"&&W(D),D=="*"&&(U.marked="keyword"),C(ke))}function rs(T){if(T==",")return C(Wr,rs)}function ke(T,D){if(D=="as")return U.marked="keyword",C(Wr)}function Nt(T,D){if(D=="from")return U.marked="keyword",C(Lt)}function br(T){return T=="]"?C():z(Yt(O,"]"))}function no(){return z(tt("form"),rn,st("{"),tt("}"),Yt(Dn,"}"),V,V)}function Dn(){return z(rn,$n)}function re(T,D){return T.lastType=="operator"||T.lastType==","||S.test(D.charAt(0))||/[,.]/.test(D.charAt(0))}function Qn(T,D,I){return D.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(D.lastType)||D.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(I||0)))}return{startState:function(T){var D={tokenize:R,lastType:"sof",cc:[],lexical:new vt((T||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Et(null,null,!1),indented:T||0};return a.globalVars&&typeof a.globalVars=="object"&&(D.globalVars=a.globalVars),D},token:function(T,D){if(T.sol()&&(D.lexical.hasOwnProperty("align")||(D.lexical.align=!1),D.indented=T.indentation(),Z(T,D)),D.tokenize!=G&&T.eatSpace())return null;var I=D.tokenize(T,D);return L=="comment"?I:(D.lastType=L=="operator"&&(k=="++"||k=="--")?"incdec":L,ut(D,I,L,k,T))},indent:function(T,D){if(T.tokenize==G||T.tokenize==j)return r.Pass;if(T.tokenize!=R)return 0;var I=D&&D.charAt(0),K=T.lexical,It;if(!/^\s*else\b/.test(D))for(var Vt=T.cc.length-1;Vt>=0;--Vt){var ee=T.cc[Vt];if(ee==V)K=K.prev;else if(ee!=to&&ee!=Q)break}for(;(K.type=="stat"||K.type=="form")&&(I=="}"||(It=T.cc[T.cc.length-1])&&(It==ot||It==pt)&&!/^[,\.=+\-*:?[\(]/.test(D));)K=K.prev;f&&K.type==")"&&K.prev.type=="stat"&&(K=K.prev);var Me=K.type,En=I==Me;return Me=="vardef"?K.indented+(T.lastType=="operator"||T.lastType==","?K.info.length+1:0):Me=="form"&&I=="{"?K.indented:Me=="form"?K.indented+u:Me=="stat"?K.indented+(re(T,D)?f||u:0):K.info=="switch"&&!En&&a.doubleIndentSwitch!=!1?K.indented+(/^(?:case|default)\b/.test(D)?u:2*u):K.align?K.column+(En?0:1):K.indented+(En?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:Qn,skipExpression:function(T){ut(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),bv.exports}xy();var xv={exports:{}},_v;function _y(){return _v||(_v=1,function(t,e){(function(r){r(Jo())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,d={},g=f.htmlMode?o:a;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var b,x;function S(C,H){function W(Et){return H.tokenize=Et,Et(C,H)}var et=C.next();if(et=="<")return C.eat("!")?C.eat("[")?C.match("CDATA[")?W(L("atom","]]>")):null:C.match("--")?W(L("comment","-->")):C.match("DOCTYPE",!0,!0)?(C.eatWhile(/[\w\._\-]/),W(k(1))):null:C.eat("?")?(C.eatWhile(/[\w\._\-]/),H.tokenize=L("meta","?>"),"meta"):(b=C.eat("/")?"closeTag":"openTag",H.tokenize=N,"tag bracket");if(et=="&"){var wt;return C.eat("#")?C.eat("x")?wt=C.eatWhile(/[a-fA-F\d]/)&&C.eat(";"):wt=C.eatWhile(/[\d]/)&&C.eat(";"):wt=C.eatWhile(/[\w\.\-:]/)&&C.eat(";"),wt?"atom":"error"}else return C.eatWhile(/[^&<]/),null}S.isInText=!0;function N(C,H){var W=C.next();if(W==">"||W=="/"&&C.eat(">"))return H.tokenize=S,b=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return b="equals",null;if(W=="<"){H.tokenize=S,H.state=j,H.tagName=H.tagStart=null;var et=H.tokenize(C,H);return et?et+" tag error":"tag error"}else return/[\'\"]/.test(W)?(H.tokenize=A(W),H.stringStartCol=C.column(),H.tokenize(C,H)):(C.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(C){var H=function(W,et){for(;!W.eol();)if(W.next()==C){et.tokenize=N;break}return"string"};return H.isInAttribute=!0,H}function L(C,H){return function(W,et){for(;!W.eol();){if(W.match(H)){et.tokenize=S;break}W.next()}return C}}function k(C){return function(H,W){for(var et;(et=H.next())!=null;){if(et=="<")return W.tokenize=k(C+1),W.tokenize(H,W);if(et==">")if(C==1){W.tokenize=S;break}else return W.tokenize=k(C-1),W.tokenize(H,W)}return"meta"}}function E(C){return C&&C.toLowerCase()}function R(C,H,W){this.prev=C.context,this.tagName=H||"",this.indent=C.indented,this.startOfLine=W,(d.doNotIndent.hasOwnProperty(H)||C.context&&C.context.noIndent)&&(this.noIndent=!0)}function P(C){C.context&&(C.context=C.context.prev)}function G(C,H){for(var W;;){if(!C.context||(W=C.context.tagName,!d.contextGrabbers.hasOwnProperty(E(W))||!d.contextGrabbers[E(W)].hasOwnProperty(E(H))))return;P(C)}}function j(C,H,W){return C=="openTag"?(W.tagStart=H.column(),rt):C=="closeTag"?Z:j}function rt(C,H,W){return C=="word"?(W.tagName=H.current(),x="tag",kt):d.allowMissingTagName&&C=="endTag"?(x="tag bracket",kt(C,H,W)):(x="error",rt)}function Z(C,H,W){if(C=="word"){var et=H.current();return W.context&&W.context.tagName!=et&&d.implicitlyClosed.hasOwnProperty(E(W.context.tagName))&&P(W),W.context&&W.context.tagName==et||d.matchClosing===!1?(x="tag",ct):(x="tag error",vt)}else return d.allowMissingTagName&&C=="endTag"?(x="tag bracket",ct(C,H,W)):(x="error",vt)}function ct(C,H,W){return C!="endTag"?(x="error",ct):(P(W),j)}function vt(C,H,W){return x="error",ct(C,H,W)}function kt(C,H,W){if(C=="word")return x="attribute",ut;if(C=="endTag"||C=="selfcloseTag"){var et=W.tagName,wt=W.tagStart;return W.tagName=W.tagStart=null,C=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(E(et))?G(W,et):(G(W,et),W.context=new R(W,et,wt==W.indented)),j}return x="error",kt}function ut(C,H,W){return C=="equals"?U:(d.allowMissing||(x="error"),kt(C,H,W))}function U(C,H,W){return C=="string"?z:C=="word"&&d.allowUnquoted?(x="string",kt):(x="error",kt(C,H,W))}function z(C,H,W){return C=="string"?z:kt(C,H,W)}return{startState:function(C){var H={tokenize:S,state:j,indented:C||0,tagName:null,tagStart:null,context:null};return C!=null&&(H.baseIndent=C),H},token:function(C,H){if(!H.tagName&&C.sol()&&(H.indented=C.indentation()),C.eatSpace())return null;b=null;var W=H.tokenize(C,H);return(W||b)&&W!="comment"&&(x=null,H.state=H.state(b||W,C,H),x&&(W=x=="error"?W+" error":x)),W},indent:function(C,H,W){var et=C.context;if(C.tokenize.isInAttribute)return C.tagStart==C.indented?C.stringStartCol+1:C.indented+h;if(et&&et.noIndent)return r.Pass;if(C.tokenize!=N&&C.tokenize!=S)return W?W.match(/^(\s*)/)[0].length:0;if(C.tagName)return d.multilineTagIndentPastTag!==!1?C.tagStart+C.tagName.length+2:C.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var wt=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(wt&&wt[1])for(;et;)if(et.tagName==wt[2]){et=et.prev;break}else if(d.implicitlyClosed.hasOwnProperty(E(et.tagName)))et=et.prev;else break;else if(wt)for(;et;){var Et=d.contextGrabbers[E(et.tagName)];if(Et&&Et.hasOwnProperty(E(wt[2])))et=et.prev;else break}for(;et&&et.prev&&!et.startOfLine;)et=et.prev;return et?et.indent+h:C.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(C){C.state==U&&(C.state=kt)},xmlCurrentTag:function(C){return C.tagName?{name:C.tagName,close:C.type=="closeTag"}:null},xmlCurrentContext:function(C){for(var H=[],W=C.context;W;W=W.prev)H.push(W.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xv.exports}_y();(function(t,e){(function(r){r(Jo(),_y(),xy())})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}function a(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&a(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),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 L=g(A.state),k=A.state.context;if(k&&S.match(/^[^>]*>\s*$/,!1)){for(;k.prev&&!k.startOfLine;)k=k.prev;k.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return N.context=new o(r.startState(d,L),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),R=S.current(),P;return/\btag\b/.test(E)?/>$/.test(R)?A.state.context?A.depth=0:N.context=N.context.prev:/^</.test(R)&&(A.depth=1):!E&&(P=R.indexOf("{"))>-1&&S.backUp(R.length-P),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 L=d.token(S,A.state);if(!L&&A.depth!=null){var k=S.current();k=="{"?A.depth++:k=="}"&&--A.depth==0&&(N.context=N.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(S){return{context:a(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(Jo())})(function(r){r.defineOption("placeholder","",function(g,v,b){var x=b&&b!=r.Init;if(v&&!x)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!v&&x){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var S=g.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function a(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),v.appendChild(b),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var b=g.getInputField();v=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}v?a(g):o(g)},20)}function f(g){d(g)&&a(g)}function h(g){var v=g.getWrapperElement(),b=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(Jo())})(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",L),r.off(document,"mouseup",A)}function L(k){if(k.which!=1)return A();g.moveTo(N+(k[x]-S)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var x=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientX<x.left?-1:b.clientX>x.right?1:0:S=b.clientY<x.top?-1:b.clientY>x.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function v(b){var x=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+x),g.pos!=S&&r.e_preventDefault(b)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var a=10;o.prototype.update=function(f,h,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<a&&(this.size-=a-v,v=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,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 ylt(t,e,r={}){const o=mlt.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}e.value=o.getValue()}),Fe(e,u=>{if(u!==o.getValue()){a=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(1/0)),o.setSelections(f)}},{immediate:!0}),Ff(o)}const blt={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Sy=oe({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:e,emit:r}){const o=t,a=p_(),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=pT(o,"modelValue",r,{passive:!0}),d=cl();return e({cm:d}),hl(async()=>{d.value=ylt(f,h,{...o,...a,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)=>(dt(),At("div",blt,[ht("textarea",{ref_key:"el",ref:f},null,512)]))}}),wlt=oe({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:e}){const r=t,o=Kt(""),a=cl(void 0),u=Kt(!1);Fe(()=>r.file,async()=>{var k;if(!r.file||!((k=r.file)!=null&&k.filepath)){o.value="",a.value=o.value,u.value=!1;return}o.value=await We.rpc.readFile(r.file.filepath),a.value=o.value,u.value=!1},{immediate:!0});const f=St(()=>{var k,E;return((E=(k=r.file)==null?void 0:k.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),h=Kt(),d=St(()=>{var k;return(k=h.value)==null?void 0:k.cm}),g=St(()=>{var k;return((k=r.file)==null?void 0:k.tasks.filter(E=>{var R;return((R=E.result)==null?void 0:R.state)==="fail"}))||[]}),v=[],b=[],x=[],S=Kt(!1),N=()=>{x.forEach(([k,E,R])=>{k.removeEventListener("click",E),R()}),x.length=0};lT(h,()=>{var k;(k=d.value)==null||k.refresh()});function A(){u.value=a.value!==d.value.getValue()}Fe(u,k=>{e("draft",k)},{immediate:!0}),Fe([d,g],([k])=>{if(!k){N();return}setTimeout(()=>{N(),v.forEach(E=>E.clear()),b.forEach(E=>{var R;return(R=d.value)==null?void 0:R.removeLineClass(E,"wrap")}),v.length=0,b.length=0,k.on("changes",A),g.value.forEach(E=>{var G;const R=(G=E.result)==null?void 0:G.error,P=((R==null?void 0:R.stacks)||[]).filter(j=>{var rt;return j.file&&j.file===((rt=r.file)==null?void 0:rt.filepath)});if(P.length){const j=P[0].sourcePos||P[0],rt=document.createElement("div");rt.className="op80 flex gap-x-2 items-center";const Z=document.createElement("pre");Z.className="c-red-600 dark:c-red-400",Z.textContent=`${" ".repeat(j.column)}^ ${R==null?void 0:R.nameStr}: ${R==null?void 0:R.message}`,rt.appendChild(Z);const ct=document.createElement("span");ct.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ct.tabIndex=0,ct.ariaLabel="Open in Editor",L0(ct,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await by(P[0].file,j.line,j.column)};rt.appendChild(ct),x.push([ct,vt,()=>sh(ct)]),b.push(d.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),v.push(d.value.addLineWidget(j.line-1,rt))}}),S.value||k.clearHistory()},100)},{flush:"post"});async function L(k){S.value=!0,await We.rpc.writeFile(r.file.filepath,k),a.value=k,u.value=!1}return(k,E)=>{const R=Sy;return dt(),ce(R,hi({ref_key:"editor",ref:h,modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=P=>o.value=P),"h-full":""},{lineNumbers:!0},{mode:J(f),"data-testid":"code-mirror",onSave:L}),null,16,["modelValue","mode"])}}}),xlt=oe({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const e=t,r=St(()=>{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=St(()=>{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(a,u)=>(dt(),At("div",{class:ge(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[ht("div",{class:ge(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.modelValue?"opacity-50":"opacity-0"]),onClick:u[0]||(u[0]=f=>a.$emit("update:modelValue",!1))},null,2),ht("div",{class:ge(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[J(r)]]),style:kn(t.modelValue?{}:{transform:J(o)})},[Kn(a.$slots,"default")],6)],2))}}),_lt=["aria-label","opacity","disabled","hover"],Zo=oe({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(t){return(e,r)=>(dt(),At("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Kn(e.$slots,"default",{},()=>[ht("div",{class:ge(t.icon),ma:""},null,2)])],8,_lt))}}),Slt={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},klt={"p-4":"",relative:""},Clt=ht("p",null,"Module Info",-1),Tlt={op50:"","font-mono":"","text-sm":""},Llt={key:0,"p-5":""},Elt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Alt=ht("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Nlt=ht("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Mlt={key:0},Olt={p:"x3 y-1","bg-overlay":"",border:"base b t"},Plt=oe({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:e}){const r=t,o=PC(()=>We.rpc.getTransformResult(r.id)),a=St(()=>{var d;return((d=r.id)==null?void 0:d.split(/\./g).pop())||"js"}),u=St(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.source)==null?void 0:g.trim())||""}),f=St(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=St(()=>{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 DC("Escape",()=>{e("close")}),(d,g)=>{const v=Zo,b=Sy;return dt(),At("div",Slt,[ht("div",klt,[Clt,ht("p",Tlt,Xt(t.id),1),Rt(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=x=>e("close"))})]),J(o)?(dt(),At(ue,{key:1},[ht("div",Elt,[Alt,Nlt,Rt(b,hi({"h-full":"","model-value":J(u),"read-only":""},{lineNumbers:!0},{mode:J(a)}),null,16,["model-value","mode"]),Rt(b,hi({"h-full":"","model-value":J(f),"read-only":""},{lineNumbers:!0},{mode:J(a)}),null,16,["model-value","mode"])]),J(h).mappings!==""?(dt(),At("div",Mlt,[ht("div",Olt," Source map (v"+Xt(J(h).version)+") ",1),Rt(b,hi({"model-value":J(h).mappings,"read-only":""},{lineNumbers:!0},{mode:J(a)}),null,16,["model-value","mode"])])):ve("",!0)],64)):(dt(),At("div",Llt," No transform result found for this module. "))])}}});var vf="http://www.w3.org/1999/xhtml";const Sv={svg:"http://www.w3.org/2000/svg",xhtml:vf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Sv.hasOwnProperty(e)?{space:Sv[e],local:t}:t}function $lt(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===vf&&e.documentElement.namespaceURI===vf?e.createElement(t):e.createElementNS(r,t)}}function Dlt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ky(t){var e=xc(t);return(e.local?Dlt:$lt)(e)}function Rlt(){}function ph(t){return t==null?Rlt:function(){return this.querySelector(t)}}function zlt(t){typeof t!="function"&&(t=ph(t));for(var e=this._groups,r=e.length,o=new Array(r),a=0;a<r;++a)for(var u=e[a],f=u.length,h=o[a]=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 Pn(o,this._parents)}function Ilt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Flt(){return[]}function Cy(t){return t==null?Flt:function(){return this.querySelectorAll(t)}}function qlt(t){return function(){return Ilt(t.apply(this,arguments))}}function Hlt(t){typeof t=="function"?t=qlt(t):t=Cy(t);for(var e=this._groups,r=e.length,o=[],a=[],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)),a.push(d));return new Pn(o,a)}function Ty(t){return function(){return this.matches(t)}}function Ly(t){return function(e){return e.matches(t)}}var Blt=Array.prototype.find;function Wlt(t){return function(){return Blt.call(this.children,t)}}function Ult(){return this.firstElementChild}function jlt(t){return this.select(t==null?Ult:Wlt(typeof t=="function"?t:Ly(t)))}var Glt=Array.prototype.filter;function Vlt(){return Array.from(this.children)}function Klt(t){return function(){return Glt.call(this.children,t)}}function Xlt(t){return this.selectAll(t==null?Vlt:Klt(typeof t=="function"?t:Ly(t)))}function Ylt(t){typeof t!="function"&&(t=Ty(t));for(var e=this._groups,r=e.length,o=new Array(r),a=0;a<r;++a)for(var u=e[a],f=u.length,h=o[a]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Pn(o,this._parents)}function Ey(t){return new Array(t.length)}function Jlt(){return new Pn(this._enter||this._groups.map(Ey),this._parents)}function Wa(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Wa.prototype={constructor:Wa,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 Zlt(t){return function(){return t}}function Qlt(t,e,r,o,a,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 Wa(t,u[f]);for(;f<d;++f)(h=e[f])&&(a[f]=h)}function tat(t,e,r,o,a,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)?a[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 Wa(t,u[h]);for(h=0;h<v;++h)(d=e[h])&&g.get(x[h])===d&&(a[h]=d)}function eat(t){return t.__data__}function nat(t,e){if(!arguments.length)return Array.from(this,eat);var r=e?tat:Qlt,o=this._parents,a=this._groups;typeof t!="function"&&(t=Zlt(t));for(var u=a.length,f=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var v=o[g],b=a[g],x=b.length,S=rat(t.call(v,v&&v.__data__,g,o)),N=S.length,A=h[g]=new Array(N),L=f[g]=new Array(N),k=d[g]=new Array(x);r(v,b,A,L,k,S,e);for(var E=0,R=0,P,G;E<N;++E)if(P=A[E]){for(E>=R&&(R=E+1);!(G=L[R])&&++R<N;);P._next=G||null}}return f=new Pn(f,o),f._enter=h,f._exit=d,f}function rat(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function iat(){return new Pn(this._exit||this._groups.map(Ey),this._parents)}function oat(t,e,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),e!=null&&(a=e(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function sat(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),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<a;++d)h[d]=r[d];return new Pn(h,this._parents)}function lat(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o=t[e],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function aat(t){t||(t=cat);function e(b,x){return b&&x?t(b.__data__,x.__data__):!b-!x}for(var r=this._groups,o=r.length,a=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,d=a[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(e)}return new Pn(a,this._parents).order()}function cat(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function uat(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function fat(){return Array.from(this)}function hat(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function dat(){let t=0;for(const e of this)++t;return t}function pat(){return!this.node()}function gat(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var a=e[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function vat(t){return function(){this.removeAttribute(t)}}function mat(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yat(t,e){return function(){this.setAttribute(t,e)}}function bat(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function wat(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function xat(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 _at(t,e){var r=xc(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?mat:vat:typeof e=="function"?r.local?xat:wat:r.local?bat:yat)(r,e))}function Ay(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Sat(t){return function(){this.style.removeProperty(t)}}function kat(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Cat(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Tat(t,e,r){return arguments.length>1?this.each((e==null?Sat:typeof e=="function"?Cat:kat)(t,e,r??"")):jo(this.node(),t)}function jo(t,e){return t.style.getPropertyValue(e)||Ay(t).getComputedStyle(t,null).getPropertyValue(e)}function Lat(t){return function(){delete this[t]}}function Eat(t,e){return function(){this[t]=e}}function Aat(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Nat(t,e){return arguments.length>1?this.each((e==null?Lat:typeof e=="function"?Aat:Eat)(t,e)):this.node()[t]}function Ny(t){return t.trim().split(/^|\s+/)}function gh(t){return t.classList||new My(t)}function My(t){this._node=t,this._names=Ny(t.getAttribute("class")||"")}My.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 Oy(t,e){for(var r=gh(t),o=-1,a=e.length;++o<a;)r.add(e[o])}function Py(t,e){for(var r=gh(t),o=-1,a=e.length;++o<a;)r.remove(e[o])}function Mat(t){return function(){Oy(this,t)}}function Oat(t){return function(){Py(this,t)}}function Pat(t,e){return function(){(e.apply(this,arguments)?Oy:Py)(this,t)}}function $at(t,e){var r=Ny(t+"");if(arguments.length<2){for(var o=gh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof e=="function"?Pat:e?Mat:Oat)(r,e))}function Dat(){this.textContent=""}function Rat(t){return function(){this.textContent=t}}function zat(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Iat(t){return arguments.length?this.each(t==null?Dat:(typeof t=="function"?zat:Rat)(t)):this.node().textContent}function Fat(){this.innerHTML=""}function qat(t){return function(){this.innerHTML=t}}function Hat(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Bat(t){return arguments.length?this.each(t==null?Fat:(typeof t=="function"?Hat:qat)(t)):this.node().innerHTML}function Wat(){this.nextSibling&&this.parentNode.appendChild(this)}function Uat(){return this.each(Wat)}function jat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gat(){return this.each(jat)}function Vat(t){var e=typeof t=="function"?t:ky(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Kat(){return null}function Xat(t,e){var r=typeof t=="function"?t:ky(t),o=e==null?Kat:typeof e=="function"?e:ph(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Yat(){var t=this.parentNode;t&&t.removeChild(this)}function Jat(){return this.each(Yat)}function Zat(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qat(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tct(t){return this.select(t?Qat:Zat)}function ect(t){return arguments.length?this.property("__data__",t):this.node().__data__}function nct(t){return function(e){t.call(this,e,this.__data__)}}function rct(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 ict(t){return function(){var e=this.__on;if(!!e){for(var r=0,o=-1,a=e.length,u;r<a;++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 oct(t,e,r){return function(){var o=this.__on,a,u=nct(e);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=e;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},o?o.push(a):this.__on=[a]}}function sct(t,e,r){var o=rct(t+""),a,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(a=0,v=h[d];a<u;++a)if((f=o[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=e?oct:ict,a=0;a<u;++a)this.each(h(o[a],e,r));return this}function $y(t,e,r){var o=Ay(t),a=o.CustomEvent;typeof a=="function"?a=new a(e,r):(a=o.document.createEvent("Event"),r?(a.initEvent(e,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function lct(t,e){return function(){return $y(this,t,e)}}function act(t,e){return function(){return $y(this,t,e.apply(this,arguments))}}function cct(t,e){return this.each((typeof e=="function"?act:lct)(t,e))}function*uct(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var Dy=[null];function Pn(t,e){this._groups=t,this._parents=e}function vl(){return new Pn([[document.documentElement]],Dy)}function fct(){return this}Pn.prototype=vl.prototype={constructor:Pn,select:zlt,selectAll:Hlt,selectChild:jlt,selectChildren:Xlt,filter:Ylt,data:nat,enter:Jlt,exit:iat,join:oat,merge:sat,selection:fct,order:lat,sort:aat,call:uat,nodes:fat,node:hat,size:dat,empty:pat,each:gat,attr:_at,style:Tat,property:Nat,classed:$at,text:Iat,html:Bat,raise:Uat,lower:Gat,append:Vat,insert:Xat,remove:Jat,clone:tct,datum:ect,on:sct,dispatch:cct,[Symbol.iterator]:uct};function _n(t){return typeof t=="string"?new Pn([[document.querySelector(t)]],[document.documentElement]):new Pn([[t]],Dy)}function hct(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ar(t,e){if(t=hct(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 a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}}return[t.pageX,t.pageY]}var dct={value:()=>{}};function ml(){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 ka(r)}function ka(t){this._=t}function pct(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}ka.prototype=ml.prototype={constructor:ka,on:function(t,e){var r=this._,o=pct(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=gct(r[a],t.name)))return a;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(a=(t=o[u]).type)r[a]=kv(r[a],t.name,e);else if(e==null)for(a in r)r[a]=kv(r[a],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ka(t)},call:function(t,e){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(e,r)}};function gct(t,e){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===e)return a.value}function kv(t,e,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===e){t[o]=dct,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}const vct={passive:!1},il={capture:!0,passive:!1};function Pu(t){t.stopImmediatePropagation()}function Po(t){t.preventDefault(),t.stopImmediatePropagation()}function Ry(t){var e=t.document.documentElement,r=_n(t).on("dragstart.drag",Po,il);"onselectstart"in e?r.on("selectstart.drag",Po,il):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function zy(t,e){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);e&&(o.on("click.drag",Po,il),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 aa=t=>()=>t;function mf(t,{sourceEvent:e,subject:r,target:o,identifier:a,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:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}mf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function mct(t){return!t.ctrlKey&&!t.button}function yct(){return this.parentNode}function bct(t,e){return e??{x:t.x,y:t.y}}function wct(){return navigator.maxTouchPoints||"ontouchstart"in this}function xct(){var t=mct,e=yct,r=bct,o=wct,a={},u=ml("start","drag","end"),f=0,h,d,g,v,b=0;function x(P){P.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",k,vct).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(P,G){if(!(v||!t.call(this,P,G))){var j=R(this,e.call(this,P,G),P,G,"mouse");!j||(_n(P.view).on("mousemove.drag",N,il).on("mouseup.drag",A,il),Ry(P.view),Pu(P),g=!1,h=P.clientX,d=P.clientY,j("start",P))}}function N(P){if(Po(P),!g){var G=P.clientX-h,j=P.clientY-d;g=G*G+j*j>b}a.mouse("drag",P)}function A(P){_n(P.view).on("mousemove.drag mouseup.drag",null),zy(P.view,g),Po(P),a.mouse("end",P)}function L(P,G){if(!!t.call(this,P,G)){var j=P.changedTouches,rt=e.call(this,P,G),Z=j.length,ct,vt;for(ct=0;ct<Z;++ct)(vt=R(this,rt,P,G,j[ct].identifier,j[ct]))&&(Pu(P),vt("start",P,j[ct]))}}function k(P){var G=P.changedTouches,j=G.length,rt,Z;for(rt=0;rt<j;++rt)(Z=a[G[rt].identifier])&&(Po(P),Z("drag",P,G[rt]))}function E(P){var G=P.changedTouches,j=G.length,rt,Z;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),rt=0;rt<j;++rt)(Z=a[G[rt].identifier])&&(Pu(P),Z("end",P,G[rt]))}function R(P,G,j,rt,Z,ct){var vt=u.copy(),kt=Ar(ct||j,G),ut,U,z;if((z=r.call(P,new mf("beforestart",{sourceEvent:j,target:x,identifier:Z,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:vt}),rt))!=null)return ut=z.x-kt[0]||0,U=z.y-kt[1]||0,function C(H,W,et){var wt=kt,Et;switch(H){case"start":a[Z]=C,Et=f++;break;case"end":delete a[Z],--f;case"drag":kt=Ar(et||W,G),Et=f;break}vt.call(H,P,new mf(H,{sourceEvent:W,subject:z,target:x,identifier:Z,active:Et,x:kt[0]+ut,y:kt[1]+U,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:vt}),rt)}}return x.filter=function(P){return arguments.length?(t=typeof P=="function"?P:aa(!!P),x):t},x.container=function(P){return arguments.length?(e=typeof P=="function"?P:aa(P),x):e},x.subject=function(P){return arguments.length?(r=typeof P=="function"?P:aa(P),x):r},x.touchable=function(P){return arguments.length?(o=typeof P=="function"?P:aa(!!P),x):o},x.on=function(){var P=u.on.apply(u,arguments);return P===u?x:P},x.clickDistance=function(P){return arguments.length?(b=(P=+P)*P,x):Math.sqrt(b)},x}function vh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Iy(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function yl(){}var ol=.7,Ua=1/ol,$o="\\s*([+-]?\\d+)\\s*",sl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_ct=/^#([0-9a-f]{3,8})$/,Sct=new RegExp(`^rgb\\(${$o},${$o},${$o}\\)$`),kct=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),Cct=new RegExp(`^rgba\\(${$o},${$o},${$o},${sl}\\)$`),Tct=new RegExp(`^rgba\\(${ur},${ur},${ur},${sl}\\)$`),Lct=new RegExp(`^hsl\\(${sl},${ur},${ur}\\)$`),Ect=new RegExp(`^hsla\\(${sl},${ur},${ur},${sl}\\)$`),Cv={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};vh(yl,ll,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Tv,formatHex:Tv,formatHex8:Act,formatHsl:Nct,formatRgb:Lv,toString:Lv});function Tv(){return this.rgb().formatHex()}function Act(){return this.rgb().formatHex8()}function Nct(){return Fy(this).formatHsl()}function Lv(){return this.rgb().formatRgb()}function ll(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=_ct.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Ev(e):r===3?new Sn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ca(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ca(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=Sct.exec(t))?new Sn(e[1],e[2],e[3],1):(e=kct.exec(t))?new Sn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Cct.exec(t))?ca(e[1],e[2],e[3],e[4]):(e=Tct.exec(t))?ca(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Lct.exec(t))?Mv(e[1],e[2]/100,e[3]/100,1):(e=Ect.exec(t))?Mv(e[1],e[2]/100,e[3]/100,e[4]):Cv.hasOwnProperty(t)?Ev(Cv[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function Ev(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function ca(t,e,r,o){return o<=0&&(t=e=r=NaN),new Sn(t,e,r,o)}function Mct(t){return t instanceof yl||(t=ll(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function yf(t,e,r,o){return arguments.length===1?Mct(t):new Sn(t,e,r,o??1)}function Sn(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}vh(Sn,yf,Iy(yl,{brighter(t){return t=t==null?Ua:Math.pow(Ua,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ol:Math.pow(ol,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(Gi(this.r),Gi(this.g),Gi(this.b),ja(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:Av,formatHex:Av,formatHex8:Oct,formatRgb:Nv,toString:Nv}));function Av(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}`}function Oct(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}${Bi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Nv(){const t=ja(this.opacity);return`${t===1?"rgb(":"rgba("}${Gi(this.r)}, ${Gi(this.g)}, ${Gi(this.b)}${t===1?")":`, ${t})`}`}function ja(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Bi(t){return t=Gi(t),(t<16?"0":"")+t.toString(16)}function Mv(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Gn(t,e,r,o)}function Fy(t){if(t instanceof Gn)return new Gn(t.h,t.s,t.l,t.opacity);if(t instanceof yl||(t=ll(t)),!t)return new Gn;if(t instanceof Gn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(e,r,o),u=Math.max(e,r,o),f=NaN,h=u-a,d=(u+a)/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+a:2-u-a,f*=60):h=d>0&&d<1?0:f,new Gn(f,h,d,t.opacity)}function Pct(t,e,r,o){return arguments.length===1?Fy(t):new Gn(t,e,r,o??1)}function Gn(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}vh(Gn,Pct,Iy(yl,{brighter(t){return t=t==null?Ua:Math.pow(Ua,t),new Gn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ol:Math.pow(ol,t),new Gn(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,a=2*r-o;return new Sn($u(t>=240?t-240:t+120,a,o),$u(t,a,o),$u(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Gn(Ov(this.h),ua(this.s),ua(this.l),ja(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=ja(this.opacity);return`${t===1?"hsl(":"hsla("}${Ov(this.h)}, ${ua(this.s)*100}%, ${ua(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ov(t){return t=(t||0)%360,t<0?t+360:t}function ua(t){return Math.max(0,Math.min(1,t||0))}function $u(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 qy=t=>()=>t;function $ct(t,e){return function(r){return t+r*e}}function Dct(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 Rct(t){return(t=+t)==1?Hy:function(e,r){return r-e?Dct(e,r,t):qy(isNaN(e)?r:e)}}function Hy(t,e){var r=e-t;return r?$ct(t,r):qy(isNaN(t)?e:t)}const Pv=function t(e){var r=Rct(e);function o(a,u){var f=r((a=yf(a)).r,(u=yf(u)).r),h=r(a.g,u.g),d=r(a.b,u.b),g=Hy(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=d(v),a.opacity=g(v),a+""}}return o.gamma=t,o}(1);function oi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var bf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Du=new RegExp(bf.source,"g");function zct(t){return function(){return t}}function Ict(t){return function(e){return t(e)+""}}function Fct(t,e){var r=bf.lastIndex=Du.lastIndex=0,o,a,u,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=bf.exec(t))&&(a=Du.exec(e));)(u=a.index)>r&&(u=e.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,d.push({i:f,x:oi(o,a)})),r=Du.lastIndex;return r<e.length&&(u=e.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?d[0]?Ict(d[0].x):zct(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 $v=180/Math.PI,wf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function By(t,e,r,o,a,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:a,translateY:u,rotate:Math.atan2(e,t)*$v,skewX:Math.atan(d)*$v,scaleX:f,scaleY:h}}var fa;function qct(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?wf:By(e.a,e.b,e.c,e.d,e.e,e.f)}function Hct(t){return t==null||(fa||(fa=document.createElementNS("http://www.w3.org/2000/svg","g")),fa.setAttribute("transform",t),!(t=fa.transform.baseVal.consolidate()))?wf:(t=t.matrix,By(t.a,t.b,t.c,t.d,t.e,t.f))}function Wy(t,e,r,o){function a(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:oi(g,b)},{i:A-2,x:oi(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(a(b)+"rotate(",null,o)-2,x:oi(g,v)})):v&&b.push(a(b)+"rotate("+v+o)}function h(g,v,b,x){g!==v?x.push({i:b.push(a(b)+"skewX(",null,o)-2,x:oi(g,v)}):v&&b.push(a(b)+"skewX("+v+o)}function d(g,v,b,x,S,N){if(g!==b||v!==x){var A=S.push(a(S)+"scale(",null,",",null,")");N.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(v,x)})}else(b!==1||x!==1)&&S.push(a(S)+"scale("+b+","+x+")")}return function(g,v){var b=[],x=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,b,x),f(g.rotate,v.rotate,b,x),h(g.skewX,v.skewX,b,x),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,x),g=v=null,function(S){for(var N=-1,A=x.length,L;++N<A;)b[(L=x[N]).i]=L.x(S);return b.join("")}}}var Bct=Wy(qct,"px, ","px)","deg)"),Wct=Wy(Hct,", ",")",")"),Uct=1e-12;function Dv(t){return((t=Math.exp(t))+1/t)/2}function jct(t){return((t=Math.exp(t))-1/t)/2}function Gct(t){return((t=Math.exp(2*t))-1)/(t+1)}const Vct=function t(e,r,o){function a(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,L,k;if(A<Uct)k=Math.log(x/g)/e,L=function(rt){return[h+rt*S,d+rt*N,g*Math.exp(e*rt*k)]};else{var E=Math.sqrt(A),R=(x*x-g*g+o*A)/(2*g*r*E),P=(x*x-g*g-o*A)/(2*x*r*E),G=Math.log(Math.sqrt(R*R+1)-R),j=Math.log(Math.sqrt(P*P+1)-P);k=(j-G)/e,L=function(rt){var Z=rt*k,ct=Dv(G),vt=g/(r*E)*(ct*Gct(e*Z+G)-jct(G));return[h+vt*S,d+vt*N,g*ct/Dv(e*Z+G)]}}return L.duration=k*1e3*e/Math.SQRT2,L}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,d=h*h;return t(f,h,d)},a}(Math.SQRT2,2,4);var Go=0,zs=0,$s=0,Uy=1e3,Ga,Is,Va=0,Yi=0,_c=0,al=typeof performance=="object"&&performance.now?performance:Date,jy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function mh(){return Yi||(jy(Kct),Yi=al.now()+_c)}function Kct(){Yi=0}function Ka(){this._call=this._time=this._next=null}Ka.prototype=yh.prototype={constructor:Ka,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?mh():+r)+(e==null?0:+e),!this._next&&Is!==this&&(Is?Is._next=this:Ga=this,Is=this),this._call=t,this._time=r,xf()},stop:function(){this._call&&(this._call=null,this._time=1/0,xf())}};function yh(t,e,r){var o=new Ka;return o.restart(t,e,r),o}function Xct(){mh(),++Go;for(var t=Ga,e;t;)(e=Yi-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Go}function Rv(){Yi=(Va=al.now())+_c,Go=zs=0;try{Xct()}finally{Go=0,Jct(),Yi=0}}function Yct(){var t=al.now(),e=t-Va;e>Uy&&(_c-=e,Va=t)}function Jct(){for(var t,e=Ga,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:Ga=r);Is=t,xf(o)}function xf(t){if(!Go){zs&&(zs=clearTimeout(zs));var e=t-Yi;e>24?(t<1/0&&(zs=setTimeout(Rv,t-al.now()-_c)),$s&&($s=clearInterval($s))):($s||(Va=al.now(),$s=setInterval(Yct,Uy)),Go=1,jy(Rv))}}function zv(t,e,r){var o=new Ka;return e=e==null?0:+e,o.restart(a=>{o.stop(),t(a+e)},e,r),o}var Zct=ml("start","end","cancel","interrupt"),Qct=[],Gy=0,Iv=1,_f=2,Ca=3,Fv=4,Sf=5,Ta=6;function Sc(t,e,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;tut(t,r,{name:e,index:o,group:a,on:Zct,tween:Qct,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Gy})}function bh(t,e){var r=Yn(t,e);if(r.state>Gy)throw new Error("too late; already scheduled");return r}function pr(t,e){var r=Yn(t,e);if(r.state>Ca)throw new Error("too late; already running");return r}function Yn(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function tut(t,e,r){var o=t.__transition,a;o[e]=r,r.timer=yh(u,0,r.time);function u(g){r.state=Iv,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!==Iv)return d();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ca)return zv(f);S.state===Fv?(S.state=Ta,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<e&&(S.state=Ta,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if(zv(function(){r.state===Ca&&(r.state=Fv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=_f,r.on.call("start",t,t.__data__,r.index,r.group),r.state===_f){for(r.state=Ca,a=new Array(x=r.tween.length),v=0,b=-1;v<x;++v)(S=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=Sf,1),b=-1,x=a.length;++b<x;)a[b].call(t,v);r.state===Sf&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=Ta,r.timer.stop(),delete o[e];for(var g in o)return;delete t.__transition}}function La(t,e){var r=t.__transition,o,a,u=!0,f;if(!!r){e=e==null?null:e+"";for(f in r){if((o=r[f]).name!==e){u=!1;continue}a=o.state>_f&&o.state<Sf,o.state=Ta,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function eut(t){return this.each(function(){La(this,t)})}function nut(t,e){var r,o;return function(){var a=pr(this,t),u=a.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===e){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function rut(t,e,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=pr(this,t),f=u.tween;if(f!==o){a=(o=f).slice();for(var h={name:e,value:r},d=0,g=a.length;d<g;++d)if(a[d].name===e){a[d]=h;break}d===g&&a.push(h)}u.tween=a}}function iut(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o=Yn(this.node(),r).tween,a=0,u=o.length,f;a<u;++a)if((f=o[a]).name===t)return f.value;return null}return this.each((e==null?nut:rut)(r,t,e))}function wh(t,e,r){var o=t._id;return t.each(function(){var a=pr(this,o);(a.value||(a.value={}))[e]=r.apply(this,arguments)}),function(a){return Yn(a,o).value[e]}}function Vy(t,e){var r;return(typeof e=="number"?oi:e instanceof ll?Pv:(r=ll(e))?(e=r,Pv):Fct)(t,e)}function out(t){return function(){this.removeAttribute(t)}}function sut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lut(t,e,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=e(o=f,r)}}function aut(t,e,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=e(o=f,r)}}function cut(t,e,r){var o,a,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===a?u:(a=d,u=e(o=f,h)))}}function uut(t,e,r){var o,a,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===a?u:(a=d,u=e(o=f,h)))}}function fut(t,e){var r=xc(t),o=r==="transform"?Wct:Vy;return this.attrTween(t,typeof e=="function"?(r.local?uut:cut)(r,o,wh(this,"attr."+t,e)):e==null?(r.local?sut:out)(r):(r.local?aut:lut)(r,o,e))}function hut(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function dut(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function put(t,e){var r,o;function a(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&dut(t,u)),r}return a._value=e,a}function gut(t,e){var r,o;function a(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&hut(t,u)),r}return a._value=e,a}function vut(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=xc(t);return this.tween(r,(o.local?put:gut)(o,e))}function mut(t,e){return function(){bh(this,t).delay=+e.apply(this,arguments)}}function yut(t,e){return e=+e,function(){bh(this,t).delay=e}}function but(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?mut:yut)(e,t)):Yn(this.node(),e).delay}function wut(t,e){return function(){pr(this,t).duration=+e.apply(this,arguments)}}function xut(t,e){return e=+e,function(){pr(this,t).duration=e}}function _ut(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wut:xut)(e,t)):Yn(this.node(),e).duration}function Sut(t,e){if(typeof e!="function")throw new Error;return function(){pr(this,t).ease=e}}function kut(t){var e=this._id;return arguments.length?this.each(Sut(e,t)):Yn(this.node(),e).ease}function Cut(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function Tut(t){if(typeof t!="function")throw new Error;return this.each(Cut(this._id,t))}function Lut(t){typeof t!="function"&&(t=Ty(t));for(var e=this._groups,r=e.length,o=new Array(r),a=0;a<r;++a)for(var u=e[a],f=u.length,h=o[a]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new zr(o,this._parents,this._name,this._id)}function Eut(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,a=r.length,u=Math.min(o,a),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 zr(f,this._parents,this._name,this._id)}function Aut(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 Nut(t,e,r){var o,a,u=Aut(e)?bh:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(e,r),f.on=a}}function Mut(t,e){var r=this._id;return arguments.length<2?Yn(this.node(),r).on.on(t):this.each(Nut(r,t,e))}function Out(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Put(){return this.on("end.remove",Out(this._id))}function $ut(t){var e=this._name,r=this._id;typeof t!="function"&&(t=ph(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++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,Sc(g[x],e,r,x,g,Yn(v,r)));return new zr(u,this._parents,e,r)}function Dut(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Cy(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++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=Yn(v,r),A=0,L=x.length;A<L;++A)(S=x[A])&&Sc(S,e,r,A,x,N);u.push(x),f.push(v)}return new zr(u,f,e,r)}var Rut=vl.prototype.constructor;function zut(){return new Rut(this._groups,this._parents)}function Iut(t,e){var r,o,a;return function(){var u=jo(this,t),f=(this.style.removeProperty(t),jo(this,t));return u===f?null:u===r&&f===o?a:a=e(r=u,o=f)}}function Ky(t){return function(){this.style.removeProperty(t)}}function Fut(t,e,r){var o,a=r+"",u;return function(){var f=jo(this,t);return f===a?null:f===o?u:u=e(o=f,r)}}function qut(t,e,r){var o,a,u;return function(){var f=jo(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),jo(this,t))),f===d?null:f===o&&d===a?u:(a=d,u=e(o=f,h))}}function Hut(t,e){var r,o,a,u="style."+e,f="end."+u,h;return function(){var d=pr(this,t),g=d.on,v=d.value[u]==null?h||(h=Ky(e)):void 0;(g!==r||a!==v)&&(o=(r=g).copy()).on(f,a=v),d.on=o}}function But(t,e,r){var o=(t+="")=="transform"?Bct:Vy;return e==null?this.styleTween(t,Iut(t,o)).on("end.style."+t,Ky(t)):typeof e=="function"?this.styleTween(t,qut(t,o,wh(this,"style."+t,e))).each(Hut(this._id,t)):this.styleTween(t,Fut(t,o,e),r).on("end.style."+t,null)}function Wut(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Uut(t,e,r){var o,a;function u(){var f=e.apply(this,arguments);return f!==a&&(o=(a=f)&&Wut(t,f,r)),o}return u._value=e,u}function jut(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,Uut(t,e,r??""))}function Gut(t){return function(){this.textContent=t}}function Vut(t){return function(){var e=t(this);this.textContent=e??""}}function Kut(t){return this.tween("text",typeof t=="function"?Vut(wh(this,"text",t)):Gut(t==null?"":t+""))}function Xut(t){return function(e){this.textContent=t.call(this,e)}}function Yut(t){var e,r;function o(){var a=t.apply(this,arguments);return a!==r&&(e=(r=a)&&Xut(a)),e}return o._value=t,o}function Jut(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,Yut(t))}function Zut(){for(var t=this._name,e=this._id,r=Xy(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=Yn(d,e);Sc(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new zr(o,this._parents,t,r)}function Qut(){var t,e,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},d={value:function(){--a===0&&u()}};r.each(function(){var g=pr(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}),a===0&&u()})}var tft=0;function zr(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Xy(){return++tft}var Lr=vl.prototype;zr.prototype={constructor:zr,select:$ut,selectAll:Dut,selectChild:Lr.selectChild,selectChildren:Lr.selectChildren,filter:Lut,merge:Eut,selection:zut,transition:Zut,call:Lr.call,nodes:Lr.nodes,node:Lr.node,size:Lr.size,empty:Lr.empty,each:Lr.each,on:Mut,attr:fut,attrTween:vut,style:But,styleTween:jut,text:Kut,textTween:Jut,remove:Put,tween:iut,delay:but,duration:_ut,ease:kut,easeVarying:Tut,end:Qut,[Symbol.iterator]:Lr[Symbol.iterator]};function eft(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var nft={time:null,delay:0,duration:250,ease:eft};function rft(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 ift(t){var e,r;t instanceof zr?(e=t._id,t=t._name):(e=Xy(),(r=nft).time=mh(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&Sc(d,t,e,g,f,r||rft(d,e));return new zr(o,this._parents,t,e)}vl.prototype.interrupt=eut;vl.prototype.transition=ift;const ha=t=>()=>t;function oft(t,{sourceEvent:e,target:r,transform:o,dispatch:a}){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:a}})}function Or(t,e,r){this.k=t,this.x=e,this.y=r}Or.prototype={constructor:Or,scale:function(t){return t===1?this:new Or(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Or(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 xh=new Or(1,0,0);Or.prototype;function Ru(t){t.stopImmediatePropagation()}function Ds(t){t.preventDefault(),t.stopImmediatePropagation()}function sft(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function lft(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function qv(){return this.__zoom||xh}function aft(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function cft(){return navigator.maxTouchPoints||"ontouchstart"in this}function uft(t,e,r){var o=t.invertX(e[0][0])-r[0][0],a=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(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function fft(){var t=sft,e=lft,r=uft,o=aft,a=cft,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=Vct,g=ml("start","zoom","end"),v,b,x,S=500,N=150,A=0,L=10;function k(z){z.property("__zoom",qv).on("wheel.zoom",Z,{passive:!1}).on("mousedown.zoom",ct).on("dblclick.zoom",vt).filter(a).on("touchstart.zoom",kt).on("touchmove.zoom",ut).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(z,C,H,W){var et=z.selection?z.selection():z;et.property("__zoom",qv),z!==et?G(z,C,H,W):et.interrupt().each(function(){j(this,arguments).event(W).start().zoom(null,typeof C=="function"?C.apply(this,arguments):C).end()})},k.scaleBy=function(z,C,H,W){k.scaleTo(z,function(){var et=this.__zoom.k,wt=typeof C=="function"?C.apply(this,arguments):C;return et*wt},H,W)},k.scaleTo=function(z,C,H,W){k.transform(z,function(){var et=e.apply(this,arguments),wt=this.__zoom,Et=H==null?P(et):typeof H=="function"?H.apply(this,arguments):H,qt=wt.invert(Et),Bt=typeof C=="function"?C.apply(this,arguments):C;return r(R(E(wt,Bt),Et,qt),et,f)},H,W)},k.translateBy=function(z,C,H,W){k.transform(z,function(){return r(this.__zoom.translate(typeof C=="function"?C.apply(this,arguments):C,typeof H=="function"?H.apply(this,arguments):H),e.apply(this,arguments),f)},null,W)},k.translateTo=function(z,C,H,W,et){k.transform(z,function(){var wt=e.apply(this,arguments),Et=this.__zoom,qt=W==null?P(wt):typeof W=="function"?W.apply(this,arguments):W;return r(xh.translate(qt[0],qt[1]).scale(Et.k).translate(typeof C=="function"?-C.apply(this,arguments):-C,typeof H=="function"?-H.apply(this,arguments):-H),wt,f)},W,et)};function E(z,C){return C=Math.max(u[0],Math.min(u[1],C)),C===z.k?z:new Or(C,z.x,z.y)}function R(z,C,H){var W=C[0]-H[0]*z.k,et=C[1]-H[1]*z.k;return W===z.x&&et===z.y?z:new Or(z.k,W,et)}function P(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function G(z,C,H,W){z.on("start.zoom",function(){j(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(W).end()}).tween("zoom",function(){var et=this,wt=arguments,Et=j(et,wt).event(W),qt=e.apply(et,wt),Bt=H==null?P(qt):typeof H=="function"?H.apply(et,wt):H,Gt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),ne=et.__zoom,Q=typeof C=="function"?C.apply(et,wt):C,tt=d(ne.invert(Bt).concat(Gt/ne.k),Q.invert(Bt).concat(Gt/Q.k));return function(V){if(V===1)V=Q;else{var st=tt(V),Ct=Gt/st[2];V=new Or(Ct,Bt[0]-st[0]*Ct,Bt[1]-st[1]*Ct)}Et.zoom(null,V)}})}function j(z,C,H){return!H&&z.__zooming||new rt(z,C)}function rt(z,C){this.that=z,this.args=C,this.active=0,this.sourceEvent=null,this.extent=e.apply(z,C),this.taps=0}rt.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,C){return this.mouse&&z!=="mouse"&&(this.mouse[1]=C.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=C.invert(this.touch0[0])),this.touch1&&z!=="touch"&&(this.touch1[1]=C.invert(this.touch1[0])),this.that.__zoom=C,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){var C=_n(this.that).datum();g.call(z,this.that,new oft(z,{sourceEvent:this.sourceEvent,target:k,type:z,transform:this.that.__zoom,dispatch:g}),C)}};function Z(z,...C){if(!t.apply(this,arguments))return;var H=j(this,C).event(z),W=this.__zoom,et=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),wt=Ar(z);if(H.wheel)(H.mouse[0][0]!==wt[0]||H.mouse[0][1]!==wt[1])&&(H.mouse[1]=W.invert(H.mouse[0]=wt)),clearTimeout(H.wheel);else{if(W.k===et)return;H.mouse=[wt,W.invert(wt)],La(this),H.start()}Ds(z),H.wheel=setTimeout(Et,N),H.zoom("mouse",r(R(E(W,et),H.mouse[0],H.mouse[1]),H.extent,f));function Et(){H.wheel=null,H.end()}}function ct(z,...C){if(x||!t.apply(this,arguments))return;var H=z.currentTarget,W=j(this,C,!0).event(z),et=_n(z.view).on("mousemove.zoom",Bt,!0).on("mouseup.zoom",Gt,!0),wt=Ar(z,H),Et=z.clientX,qt=z.clientY;Ry(z.view),Ru(z),W.mouse=[wt,this.__zoom.invert(wt)],La(this),W.start();function Bt(ne){if(Ds(ne),!W.moved){var Q=ne.clientX-Et,tt=ne.clientY-qt;W.moved=Q*Q+tt*tt>A}W.event(ne).zoom("mouse",r(R(W.that.__zoom,W.mouse[0]=Ar(ne,H),W.mouse[1]),W.extent,f))}function Gt(ne){et.on("mousemove.zoom mouseup.zoom",null),zy(ne.view,W.moved),Ds(ne),W.event(ne).end()}}function vt(z,...C){if(!!t.apply(this,arguments)){var H=this.__zoom,W=Ar(z.changedTouches?z.changedTouches[0]:z,this),et=H.invert(W),wt=H.k*(z.shiftKey?.5:2),Et=r(R(E(H,wt),W,et),e.apply(this,C),f);Ds(z),h>0?_n(this).transition().duration(h).call(G,Et,W,z):_n(this).call(k.transform,Et,W,z)}}function kt(z,...C){if(!!t.apply(this,arguments)){var H=z.touches,W=H.length,et=j(this,C,z.changedTouches.length===W).event(z),wt,Et,qt,Bt;for(Ru(z),Et=0;Et<W;++Et)qt=H[Et],Bt=Ar(qt,this),Bt=[Bt,this.__zoom.invert(Bt),qt.identifier],et.touch0?!et.touch1&&et.touch0[2]!==Bt[2]&&(et.touch1=Bt,et.taps=0):(et.touch0=Bt,wt=!0,et.taps=1+!!v);v&&(v=clearTimeout(v)),wt&&(et.taps<2&&(b=Bt[0],v=setTimeout(function(){v=null},S)),La(this),et.start())}}function ut(z,...C){if(!!this.__zooming){var H=j(this,C).event(z),W=z.changedTouches,et=W.length,wt,Et,qt,Bt;for(Ds(z),wt=0;wt<et;++wt)Et=W[wt],qt=Ar(Et,this),H.touch0&&H.touch0[2]===Et.identifier?H.touch0[0]=qt:H.touch1&&H.touch1[2]===Et.identifier&&(H.touch1[0]=qt);if(Et=H.that.__zoom,H.touch1){var Gt=H.touch0[0],ne=H.touch0[1],Q=H.touch1[0],tt=H.touch1[1],V=(V=Q[0]-Gt[0])*V+(V=Q[1]-Gt[1])*V,st=(st=tt[0]-ne[0])*st+(st=tt[1]-ne[1])*st;Et=E(Et,Math.sqrt(V/st)),qt=[(Gt[0]+Q[0])/2,(Gt[1]+Q[1])/2],Bt=[(ne[0]+tt[0])/2,(ne[1]+tt[1])/2]}else if(H.touch0)qt=H.touch0[0],Bt=H.touch0[1];else return;H.zoom("touch",r(R(Et,qt,Bt),H.extent,f))}}function U(z,...C){if(!!this.__zooming){var H=j(this,C).event(z),W=z.changedTouches,et=W.length,wt,Et;for(Ru(z),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),wt=0;wt<et;++wt)Et=W[wt],H.touch0&&H.touch0[2]===Et.identifier?delete H.touch0:H.touch1&&H.touch1[2]===Et.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&&(Et=Ar(Et,this),Math.hypot(b[0]-Et[0],b[1]-Et[1])<L)){var qt=_n(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return k.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:ha(+z),k):o},k.filter=function(z){return arguments.length?(t=typeof z=="function"?z:ha(!!z),k):t},k.touchable=function(z){return arguments.length?(a=typeof z=="function"?z:ha(!!z),k):a},k.extent=function(z){return arguments.length?(e=typeof z=="function"?z:ha([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),k):e},k.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],k):[u[0],u[1]]},k.translateExtent=function(z){return arguments.length?(f[0][0]=+z[0][0],f[1][0]=+z[1][0],f[0][1]=+z[0][1],f[1][1]=+z[1][1],k):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},k.constrain=function(z){return arguments.length?(r=z,k):r},k.duration=function(z){return arguments.length?(h=+z,k):h},k.interpolate=function(z){return arguments.length?(d=z,k):d},k.on=function(){var z=g.on.apply(g,arguments);return z===g?k:z},k.clickDistance=function(z){return arguments.length?(A=(z=+z)*z,k):Math.sqrt(A)},k.tapDistance=function(z){return arguments.length?(L=+z,k):L},k}class hn{constructor(e,r){this.x=e,this.y=r}static of([e,r]){return new hn(e,r)}add(e){return new hn(this.x+e.x,this.y+e.y)}subtract(e){return new hn(this.x-e.x,this.y-e.y)}multiply(e){return new hn(this.x*e,this.y*e)}divide(e){return new hn(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 hn(this.x*e.x,this.y*e.y)}length(){return Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2))}normalize(){const e=this.length();return new hn(this.x/e,this.y/e)}rotateByRadians(e){const r=Math.cos(e),o=Math.sin(e);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}}function hft(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return Yy(this.cover(e,r),e,r,t)}function Yy(t,e,r,o){if(isNaN(e)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,b,x,S,N,A,L,k,E;if(!u)return t._root=f,t;for(;u.length;)if((A=e>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(d+v)/2))?d=x:v=x,a=u,!(u=u[k=L<<1|A]))return a[k]=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,a?a[k]=f:t._root=f,t;do a=a?a[k]=new Array(4):t._root=new Array(4),(A=e>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(d+v)/2))?d=x:v=x;while((k=L<<1|A)===(E=(N>=x)<<1|S>=b));return a[E]=u,a[k]=f,t}function dft(t){var e,r,o=t.length,a,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(a=+this._x.call(null,e=t[r]))||isNaN(u=+this._y.call(null,e))||(f[r]=a,h[r]=u,a<d&&(d=a),a>v&&(v=a),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)Yy(this,f[r],h[r],t[r]);return this}function pft(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(e))+1;else{for(var f=a-r||1,h=this._root,d,g;r>t||t>=a||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:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function gft(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function vft(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,e,r,o,a){this.node=t,this.x0=e,this.y0=r,this.x1=o,this.y1=a}function mft(t,e,r){var o,a=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 dn(S,a,u,v,b)),r==null?r=1/0:(a=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)<a||(g=N.y1)<u))if(S.length){var L=(f+d)/2,k=(h+g)/2;x.push(new dn(S[3],L,k,d,g),new dn(S[2],f,k,L,g),new dn(S[1],L,h,d,k),new dn(S[0],f,h,L,k)),(A=(e>=k)<<1|t>=L)&&(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),R=e-+this._y.call(null,S.data),P=E*E+R*R;if(P<r){var G=Math.sqrt(r=P);a=t-G,u=e-G,v=t+G,b=e+G,o=S.data}}return o}function yft(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var e,r=this._root,o,a,u,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,b,x,S,N,A,L,k;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[L=A<<1|N]))return this;if(!r.length)break;(e[L+1&3]||e[L+2&3]||e[L+3&3])&&(o=e,k=L)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,a?(u?a.next=u:delete a.next,this):e?(u?e[L]=u:delete e[L],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[k]=r:this._root=r),this):(this._root=u,this)}function bft(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function wft(){return this._root}function xft(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function _ft(t){var e=[],r,o=this._root,a,u,f,h,d;for(o&&e.push(new dn(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;(a=o[3])&&e.push(new dn(a,g,v,h,d)),(a=o[2])&&e.push(new dn(a,u,v,g,d)),(a=o[1])&&e.push(new dn(a,g,f,h,v)),(a=o[0])&&e.push(new dn(a,u,f,g,v))}return this}function Sft(t){var e=[],r=[],o;for(this._root&&e.push(new dn(this._root,this._x0,this._y0,this._x1,this._y1));o=e.pop();){var a=o.node;if(a.length){var u,f=o.x0,h=o.y0,d=o.x1,g=o.y1,v=(f+d)/2,b=(h+g)/2;(u=a[0])&&e.push(new dn(u,f,h,v,b)),(u=a[1])&&e.push(new dn(u,v,h,d,b)),(u=a[2])&&e.push(new dn(u,f,b,v,g)),(u=a[3])&&e.push(new dn(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 kft(t){return t[0]}function Cft(t){return arguments.length?(this._x=t,this):this._x}function Tft(t){return t[1]}function Lft(t){return arguments.length?(this._y=t,this):this._y}function _h(t,e,r){var o=new Sh(e??kft,r??Tft,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function Sh(t,e,r,o,a,u){this._x=t,this._y=e,this._x0=r,this._y0=o,this._x1=a,this._y1=u,this._root=void 0}function Hv(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var vn=_h.prototype=Sh.prototype;vn.copy=function(){var t=new Sh(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=Hv(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var a=0;a<4;++a)(o=e.source[a])&&(o.length?r.push({source:o,target:e.target[a]=new Array(4)}):e.target[a]=Hv(o));return t};vn.add=hft;vn.addAll=dft;vn.cover=pft;vn.data=gft;vn.extent=vft;vn.find=mft;vn.remove=yft;vn.removeAll=bft;vn.root=wft;vn.size=xft;vn.visit=_ft;vn.visitAfter=Sft;vn.x=Cft;vn.y=Lft;function gn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function Eft(t){return t.x+t.vx}function Aft(t){return t.y+t.vy}function Nft(t){var e,r,o,a=1,u=1;typeof t!="function"&&(t=gn(t==null?1:+t));function f(){for(var g,v=e.length,b,x,S,N,A,L,k=0;k<u;++k)for(b=_h(e,Eft,Aft).visitAfter(h),g=0;g<v;++g)x=e[g],A=r[x.index],L=A*A,S=x.x+x.vx,N=x.y+x.vy,b.visit(E);function E(R,P,G,j,rt){var Z=R.data,ct=R.r,vt=A+ct;if(Z){if(Z.index>x.index){var kt=S-Z.x-Z.vx,ut=N-Z.y-Z.vy,U=kt*kt+ut*ut;U<vt*vt&&(kt===0&&(kt=li(o),U+=kt*kt),ut===0&&(ut=li(o),U+=ut*ut),U=(vt-(U=Math.sqrt(U)))/U*a,x.vx+=(kt*=U)*(vt=(ct*=ct)/(L+ct)),x.vy+=(ut*=U)*vt,Z.vx-=kt*(vt=1-vt),Z.vy-=ut*vt)}return}return P>S+vt||j<S-vt||G>N+vt||rt<N-vt}}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?(a=+g,f):a},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:gn(+g),d(),f):t},f}function Mft(t){return t.index}function Bv(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Oft(t){var e=Mft,r=b,o,a=gn(30),u,f,h,d,g,v=1;t==null&&(t=[]);function b(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function x(L){for(var k=0,E=t.length;k<v;++k)for(var R=0,P,G,j,rt,Z,ct,vt;R<E;++R)P=t[R],G=P.source,j=P.target,rt=j.x+j.vx-G.x-G.vx||li(g),Z=j.y+j.vy-G.y-G.vy||li(g),ct=Math.sqrt(rt*rt+Z*Z),ct=(ct-u[R])/ct*L*o[R],rt*=ct,Z*=ct,j.vx-=rt*(vt=d[R]),j.vy-=Z*vt,G.vx+=rt*(vt=1-vt),G.vy+=Z*vt}function S(){if(!!f){var L,k=f.length,E=t.length,R=new Map(f.map((G,j)=>[e(G,j,f),G])),P;for(L=0,h=new Array(k);L<E;++L)P=t[L],P.index=L,typeof P.source!="object"&&(P.source=Bv(R,P.source)),typeof P.target!="object"&&(P.target=Bv(R,P.target)),h[P.source.index]=(h[P.source.index]||0)+1,h[P.target.index]=(h[P.target.index]||0)+1;for(L=0,d=new Array(E);L<E;++L)P=t[L],d[L]=h[P.source.index]/(h[P.source.index]+h[P.target.index]);o=new Array(E),N(),u=new Array(E),A()}}function N(){if(!!f)for(var L=0,k=t.length;L<k;++L)o[L]=+r(t[L],L,t)}function A(){if(!!f)for(var L=0,k=t.length;L<k;++L)u[L]=+a(t[L],L,t)}return x.initialize=function(L,k){f=L,g=k,S()},x.links=function(L){return arguments.length?(t=L,S(),x):t},x.id=function(L){return arguments.length?(e=L,x):e},x.iterations=function(L){return arguments.length?(v=+L,x):v},x.strength=function(L){return arguments.length?(r=typeof L=="function"?L:gn(+L),N(),x):r},x.distance=function(L){return arguments.length?(a=typeof L=="function"?L:gn(+L),A(),x):a},x}const Pft=1664525,$ft=1013904223,Wv=4294967296;function Dft(){let t=1;return()=>(t=(Pft*t+$ft)%Wv)/Wv}function Rft(t){return t.x}function zft(t){return t.y}var Ift=10,Fft=Math.PI*(3-Math.sqrt(5));function qft(t){var e,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=yh(b),g=ml("tick","end"),v=Dft();t==null&&(t=[]);function b(){x(),g.call("tick",e),r<o&&(d.stop(),g.call("end",e))}function x(A){var L,k=t.length,E;A===void 0&&(A=1);for(var R=0;R<A;++R)for(r+=(u-r)*a,h.forEach(function(P){P(r)}),L=0;L<k;++L)E=t[L],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,L=t.length,k;A<L;++A){if(k=t[A],k.index=A,k.fx!=null&&(k.x=k.fx),k.fy!=null&&(k.y=k.fy),isNaN(k.x)||isNaN(k.y)){var E=Ift*Math.sqrt(.5+A),R=A*Fft;k.x=E*Math.cos(R),k.y=E*Math.sin(R)}(isNaN(k.vx)||isNaN(k.vy))&&(k.vx=k.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?(a=+A,e):+a},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,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,N(L)),e):h.get(A)},find:function(A,L,k){var E=0,R=t.length,P,G,j,rt,Z;for(k==null?k=1/0:k*=k,E=0;E<R;++E)rt=t[E],P=A-rt.x,G=L-rt.y,j=P*P+G*G,j<k&&(Z=rt,k=j);return Z},on:function(A,L){return arguments.length>1?(g.on(A,L),e):g.on(A)}}}function Hft(){var t,e,r,o,a=gn(-30),u,f=1,h=1/0,d=.81;function g(S){var N,A=t.length,L=_h(t,Rft,zft).visitAfter(b);for(o=S,N=0;N<A;++N)e=t[N],L.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]=+a(A,S,t)}}function b(S){var N=0,A,L,k=0,E,R,P;if(S.length){for(E=R=P=0;P<4;++P)(A=S[P])&&(L=Math.abs(A.value))&&(N+=A.value,k+=L,E+=L*A.x,R+=L*A.y);S.x=E/k,S.y=R/k}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,L){if(!S.value)return!0;var k=S.x-e.x,E=S.y-e.y,R=L-N,P=k*k+E*E;if(R*R/d<P)return P<h&&(k===0&&(k=li(r),P+=k*k),E===0&&(E=li(r),P+=E*E),P<f&&(P=Math.sqrt(f*P)),e.vx+=k*S.value*o/P,e.vy+=E*S.value*o/P),!0;if(S.length||P>=h)return;(S.data!==e||S.next)&&(k===0&&(k=li(r),P+=k*k),E===0&&(E=li(r),P+=E*E),P<f&&(P=Math.sqrt(f*P)));do S.data!==e&&(R=u[S.data.index]*o/P,e.vx+=k*R,e.vy+=E*R);while(S=S.next)}return g.initialize=function(S,N){t=S,r=N,v()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:gn(+S),v(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(d=S*S,g):Math.sqrt(d)},g}function Bft(t){var e=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(a[d]-v.x)*o[d]*h}function f(){if(!!r){var h,d=r.length;for(o=new Array(d),a=new Array(d),h=0;h<d;++h)o[h]=isNaN(a[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:gn(+h),f(),u):e},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}function Wft(t){var e=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(a[d]-v.y)*o[d]*h}function f(){if(!!r){var h,d=r.length;for(o=new Array(d),a=new Array(d),h=0;h<d;++h)o[h]=isNaN(a[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:gn(+h),f(),u):e},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}var Uft=Object.defineProperty,jft=(t,e,r)=>e in t?Uft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ne=(t,e,r)=>(jft(t,typeof e!="symbol"?e+"":e,r),r);function Gft(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function Vft(){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 Kft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Jy(t){t.preventDefault(),t.stopPropagation()}function Zy(t){return typeof t=="number"}function gi(t,e){return Zy(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function Xft(t){return`${t.source.id}-${t.target.id}`}function Qy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function Yft(t){return`url(#${Qy(t.color)})`}function Jft(t){return{size:t,padding:(e,r)=>gi(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const tb={Arrow:t=>Jft(t)},Zft=(t,e,r)=>[e/2,r/2],Qft=(t,e,r)=>[Uv(0,e),Uv(0,r)];function Uv(t,e){return Math.random()*(e-t)+t}const kf={Centered:Zft,Randomized:Qft};var Vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eb={},Cf=Vo&&Vo.__assign||function(){return Cf=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Cf.apply(this,arguments)},tht=Vo&&Vo.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),a,u=[],f;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(h){f={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(f)throw f.error}}return u},eht=Vo&&Vo.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))};Object.defineProperty(eb,"__esModule",{value:!0});var jv=function(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){var e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},ai=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(function(r,o){if(Array.isArray(o))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(o).forEach(function(a){["__proto__","constructor","prototype"].includes(a)||(Array.isArray(r[a])&&Array.isArray(o[a])?r[a]=ai.options.mergeArrays?Array.from(new Set(r[a].concat(o[a]))):o[a]:jv(r[a])&&jv(o[a])?r[a]=ai(r[a],o[a]):r[a]=o[a])}),r},{})},nb={mergeArrays:!0};ai.options=nb;ai.withOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];ai.options=Cf({mergeArrays:!0},t);var o=ai.apply(void 0,eht([],tht(e),!1));return ai.options=nb,o};var nht=eb.default=ai;function rht(){return{autoResize:!1,callbacks:{},initial:Kft(),nodeRadius:16,marker:tb.Arrow(4),modifiers:{},positionInitializer:kf.Centered,simulation:{alphas:Gft(),forces:Vft()},zoom:{initial:1,min:.1,max:2}}}function iht(t={}){return nht.withOptions({mergeArrays:!1},rht(),t)}function oht(t,e){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),e)}}function sht({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,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=>Jy(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>a==null?void 0:a(v)).style("cursor","grab");return t&&g.call(d.transform,xh.translate(u,f).scale(h)),g.append("g")}function lht({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function aht({config:t,onDragStart:e,onDragEnd:r}){var o,a;const u=xct().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),_n(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),_n(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(a=(o=t.modifiers).drag)==null||a.call(o,u),u}function cht({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&a(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}:uht({nodes:h,links:u},r)}function uht(t,e){const r=[...fht(t,e),...hht(t,e)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function fht(t,e){return rb(t,e,(r,o)=>r.target.id===o.id)}function hht(t,e){return rb(t,e,(r,o)=>r.source.id===o.id)}function rb(t,e,r){const o=new Set(t.links),a=new Set([e]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(d=>r(h,d)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function Tf(t){var e;return(e=t.x)!=null?e:0}function Lf(t){var e;return(e=t.y)!=null?e:0}function kh({source:t,target:e}){const r=new hn(Tf(t),Lf(t)),o=new hn(Tf(e),Lf(e)),a=o.subtract(r),u=a.length(),f=a.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function ib({center:t,node:e}){const r=new hn(Tf(e),Lf(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new hn(0,1))),{n:r,c:o}}function ob({config:t,source:e,target:r}){const{s:o,t:a,norm:u}=kh({config:t,source:e,target:r}),f=o.add(u.multiply(gi(t,e)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function dht(t){const{start:e,end:r}=ob(t);return`M${e.x},${e.y}
|
|
35
|
+
L${r.x},${r.y}`}function pht(t){const{start:e,end:r}=ob(t),o=r.subtract(e).multiply(.5),a=e.add(o);return`translate(${a.x-8},${a.y-4})`}function ght({config:t,source:e,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=kh({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(gi(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(gi(t,r)).add(a).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
|
|
36
|
+
A${b},${b},0,0,1,${v.x},${v.y}`}function vht({center:t,config:e,node:r}){const{n:o,c:a}=ib({center:t,config:e,node:r}),u=gi(e,r),f=o.subtract(a),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}
|
|
37
|
+
A${u},${u},0,1,0,${v.x},${v.y}`}function mht({config:t,source:e,target:r}){const{t:o,dist:a,endNorm:u}=kh({config:t,source:e,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function yht({center:t,config:e,node:r}){const{n:o,c:a}=ib({center:t,config:e,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*gi(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const Do={line:{labelTransform:pht,path:dht},arc:{labelTransform:mht,path:ght},reflexive:{labelTransform:yht,path:vht}};function bht(t){return t.append("g").classed("links",!0).selectAll("path")}function wht({config:t,graph:e,selection:r,showLabels:o}){const a=r==null?void 0:r.data(e.links,u=>Xft(u)).join(u=>{var f,h,d,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>Yft(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 a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function xht(t){_ht(t),Sht(t)}function _ht({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"":a.source.id===a.target.id?Do.reflexive.path({config:e,node:a.source,center:t}):sb(r,a.source,a.target)?Do.arc.path({config:e,source:a.source,target:a.target}):Do.line.path({config:e,source:a.source,target:a.target}))}function Sht({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"translate(0, 0)":a.source.id===a.target.id?Do.reflexive.labelTransform({config:t,node:a.source,center:e}):sb(r,a.source,a.target)?Do.arc.labelTransform({config:t,source:a.source,target:a.target}):Do.line.labelTransform({config:t,source:a.source,target:a.target}))}function sb(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 kht(t){return t.append("defs").selectAll("marker")}function Cht({config:t,graph:e,selection:r}){return r==null?void 0:r.data(Tht(e),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>Qy(u)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",u=>u);return a.append("path").attr("d",Lht(t.marker.path)),a})}function Tht(t){return[...new Set(t.links.map(e=>e.color))]}function Lht(t){if(t.length<1)return"M0,0";const[[e,r],...o]=t;return o.reduce((a,[u,f])=>`${a}L${u},${f}`,`M${e},${r}`)}function Eht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Aht({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:a,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("aria-label",L=>L.label?L.label.text:L.id).attr("r",L=>gi(t,L)).on("contextmenu",(L,k)=>{Jy(L),o(k)}).on("pointerdown",(L,k)=>Mht(L,k,a??o)).style("fill",L=>L.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",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(x=(b=t.modifiers).nodeLabel)==null||x.call(b,A),S});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Nht=500;function Mht(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,a=Date.now();if(o===void 0||a-o>Nht){e.lastInteractionTimestamp=a;return}e.lastInteractionTimestamp=void 0,r(e)}function Oht(t){t==null||t.attr("transform",e=>{var r,o;return`translate(${(r=e.x)!=null?r:0},${(o=e.y)!=null?o:0})`})}function Pht({center:t,config:e,graph:r,onTick:o}){var a,u;const f=qft(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",Bft(()=>t().x).strength(b)).force("y",Wft(()=>t().y).strength(b))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",Hft().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",Nft().radius(b=>g.radiusMultiplier*gi(e,b)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",Oft(r.links).id(b=>b.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(a=e.modifiers).simulation)==null||u.call(a,f),f}function $ht({canvasContainer:t,config:e,min:r,max:o,onZoom:a}){var u,f;const h=fft().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=>a(d)).on("end",()=>t().classed("grabbed",!1));return(f=(u=e.modifiers).zoom)==null||f.call(u,h),h}class Dht{constructor(e,r,o){if(Ne(this,"nodeTypes"),Ne(this,"_nodeTypeFilter"),Ne(this,"_includeUnlinked",!0),Ne(this,"_linkFilter",()=>!0),Ne(this,"_showLinkLabels",!0),Ne(this,"_showNodeLabels",!0),Ne(this,"filteredGraph"),Ne(this,"width",0),Ne(this,"height",0),Ne(this,"simulation"),Ne(this,"canvas"),Ne(this,"linkSelection"),Ne(this,"nodeSelection"),Ne(this,"markerSelection"),Ne(this,"zoom"),Ne(this,"drag"),Ne(this,"xOffset",0),Ne(this,"yOffset",0),Ne(this,"scale"),Ne(this,"focusedNode"),Ne(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{var u,f;const[h,d]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=(u=a.x)!=null?u:h,a.y=(f=a.y)!=null?f:d}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=a??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(oht(()=>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,a=e?r:o;this.restart(a)}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,a=e?o:r;this.restart(a)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,a=e?o:r;this.restart(a)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return hn.of([this.width,this.height]).divide(2).subtract(hn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,a=this.container.getBoundingClientRect().height,u=e.toFixed()!==o.toFixed(),f=r.toFixed()!==a.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(Zy(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:a}))}restart(e){var r;this.markerSelection=Cht({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=wht({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Aht({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=Pht({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=$ht({config:this.config,canvasContainer:()=>_n(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=sht({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=bht(this.canvas),this.nodeSelection=Eht(this.canvas),this.markerSelection=kht(this.canvas),this.drag=aht({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(){Oht(this.nodeSelection),xht({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),_n(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){var r;this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),(r=this.simulation)==null||r.restart()}applyZoom(){lht({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=cht({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Gv({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function Rht(t){return{...t}}function lb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const zht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Iht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Fht=["id","checked","onChange"],qht=["for"],Hht=ht("div",{"flex-auto":""},null,-1),Bht=oe({__name:"ViewModuleGraph",props:{graph:null},setup(t){const e=t,{graph:r}=i1(e),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();Gf(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),hl(()=>{g()}),Kf(()=>{var b;(b=f.value)==null||b.shutdown()}),Fe(r,g);function h(b,x){var S;(S=f.value)==null||S.filterNodesByType(x,b)}function d(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Dht(o.value,r.value,iht({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:tb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?kf.Randomized:kf.Centered,zoom:{min:.5,max:2}})))}function v(b){const x=L=>L.button===0;let S=0,N=0,A=0;b.on("pointerdown",(L,k)=>{k.type!=="external"&&(!k.x||!k.y||!x(L)||(S=k.x,N=k.y,A=Date.now()))}).on("pointerup",(L,k)=>{if(k.type==="external"||!k.x||!k.y||!x(L)||Date.now()-A>500)return;const E=k.x-S,R=k.y-N;E**2+R**2<100&&d(k.id)})}return(b,x)=>{var k;const S=Zo,N=Plt,A=xlt,L=Zi("tooltip");return dt(),At("div",zht,[ht("div",null,[ht("div",Iht,[(dt(!0),At(ue,null,lr((k=f.value)==null?void 0:k.nodeTypes.sort(),E=>{var R;return dt(),At("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[ht("input",{id:`type-${E}`,type:"checkbox",checked:(R=f.value)==null?void 0:R.nodeTypeFilter.includes(E),onChange:P=>h(E,P.target.checked)},null,40,Fht),ht("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:kn({"border-color":`var(--color-node-${E})`})},Xt(E)+" Modules",13,qht)])}),128)),Hht,ht("div",null,[pn(Rt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ht("div",{ref_key:"el",ref:o},null,512),Rt(A,{modelValue:a.value,"onUpdate:modelValue":x[1]||(x[1]=E=>a.value=E),direction:"right"},{default:Zt(()=>[u.value?(dt(),ce(w1,{key:0},{default:Zt(()=>[Rt(N,{id:u.value,onClose:x[0]||(x[0]=E=>a.value=!1)},null,8,["id"])]),_:1})):ve("",!0)]),_:1},8,["modelValue"])])}}});const Wht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Uht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},jht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Ght={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Vht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Kht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Ch=oe({__name:"StatusIcon",props:{task:null},setup(t){return(e,r)=>{var a,u,f;const o=Zi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(dt(),At("div",Wht)):J(mc)(t.task)?pn((dt(),At("div",Uht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(dt(),At("div",jht)):t.task.mode==="todo"?pn((dt(),At("div",Ght,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?pn((dt(),At("div",Vht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(dt(),At("div",Kht))}}});function Xht(t){const e=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){a++;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,a===t.length)break}return e}function Yht(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 Jht(t){const e=t.map(o=>Yht(o)),r=Xht(e);return e.map(({raw:o,id:a})=>lb({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:a,type:"external"}))}function Zht(t,e){return lb({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 Qht(t,e){if(!t)return Gv({});const r=Jht(t.externalized),o=t.inlined.map(h=>Zht(h,h===e))??[],a=[...r,...o],u=Object.fromEntries(a.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 Rht({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return Gv({nodes:a,links:f})}const tdt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},edt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},ndt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},rdt={class:"flex text-lg"},idt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},odt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},sdt={key:0,"flex-1":""},ldt=oe({__name:"FileDetails",setup(t){const e=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);CC(Le,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await We.rpc.getModuleGraph(g.filepath),r.value=Qht(e.value,g.filepath))},{debounce:100,immediate:!0});const u=()=>{var v;const g=(v=Le.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)},f=g=>{g==="graph"&&(a.value=!0),or.value=g},h=St(()=>{var g;return((g=ty.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function d(g){o.value=g}return(g,v)=>{var E,R;const b=Ch,x=Zo,S=Bht,N=wlt,A=vlt,L=alt,k=Zi("tooltip");return J(Le)?(dt(),At("div",tdt,[ht("div",null,[ht("div",edt,[Rt(b,{task:J(Le)},null,8,["task"]),ht("div",ndt,Xt((E=J(Le))==null?void 0:E.filepath),1),ht("div",rdt,[pn(Rt(x,{title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=J(Le))!=null&&R.filepath),onClick:u},null,8,["disabled"]),[[k,"Open in editor",void 0,{bottom:!0}]])])]),ht("div",idt,[ht("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==null}),onClick:v[0]||(v[0]=P=>f(null))}," Report ",2),ht("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==="graph"}),onClick:v[1]||(v[1]=P=>f("graph"))}," Module Graph ",2),ht("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==="editor"}),onClick:v[2]||(v[2]=P=>f("editor"))},Xt(o.value?"* ":"")+"Code ",3),ht("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==="console",op20:J(or)!=="console"&&J(h)===0}),onClick:v[3]||(v[3]=P=>f("console"))}," Console ("+Xt(J(h))+") ",3)])]),ht("div",odt,[a.value?(dt(),At("div",sdt,[pn(Rt(S,{graph:r.value},null,8,["graph"]),[[Zm,J(or)==="graph"]])])):ve("",!0),J(or)==="editor"?(dt(),ce(N,{key:J(Le).filepath,file:J(Le),onDraft:d},null,8,["file"])):J(or)==="console"?(dt(),ce(A,{key:2,file:J(Le)},null,8,["file"])):J(or)?ve("",!0):(dt(),ce(L,{key:3,file:J(Le)},null,8,["file"]))])])):ve("",!0)}}}),adt=["open"],cdt=ht("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),udt=ht("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),fdt=oe({__name:"DetailsPanel",props:{color:null},setup(t){const e=Kt(!0);return(r,o)=>(dt(),At("div",{open:e.value,class:"details-panel",onToggle:o[0]||(o[0]=a=>e.value=a.target.open)},[ht("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ge(t.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[cdt,Kn(r.$slots,"summary",{open:e.value}),udt],2),Kn(r.$slots,"default")],40,adt))}});const hdt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},ddt=["text"],pdt={"text-sm":"",truncate:"","font-light":""},gdt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},vdt=oe({__name:"TaskItem",props:{task:null},setup(t){const e=t,r=St(()=>{const{result:o}=e.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=Ch;return t.task?(dt(),At("div",hdt,[Rt(u,{task:t.task,"mr-2":""},null,8,["task"]),ht("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=t.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ht("span",pdt,Xt(t.task.name),1),typeof J(r)=="number"?(dt(),At("span",gdt,Xt(J(r)>0?J(r):"< 1")+"ms ",1)):ve("",!0)],8,ddt)])):ve("",!0)}}});function mdt(t){return Object.hasOwnProperty.call(t,"tasks")}function ab(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}const ydt={key:1},bdt={inheritAttrs:!1},wdt=oe({...bdt,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(e,r)=>{const o=vdt,a=Vi("TaskTree",!0);return dt(),At(ue,null,[!t.search||J(ab)(t.task.name,t.search)?(dt(),ce(o,hi({key:0},e.$attrs,{task:t.task,style:{paddingLeft:`${t.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>t.onItemClick&&t.onItemClick(t.task))}),null,16,["task","style"])):ve("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(dt(),At("div",ydt,[(dt(!0),At(ue,null,lr(t.task.tasks,u=>(dt(),ce(a,{key:u.id,task:u,nested:t.nested,indent:t.indent+1,search:t.search,"on-item-click":t.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):ve("",!0)],64)}}}),xdt={h:"full",flex:"~ col"},_dt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Sdt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},kdt=ht("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Cdt=["op"],Tdt={class:"scrolls","flex-auto":"","py-1":""},Ldt={"text-red5":""},Edt={"text-yellow5":""},Adt={"text-green5":""},Ndt={class:"text-purple5:50"},Mdt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Odt=ht("div",{op30:""}," No matched test ",-1),Pdt={inheritAttrs:!1},cb=oe({...Pdt,__name:"TasksList",props:{tasks:null,indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:null},emits:["run"],setup(t,{emit:e}){const r=t,o=Kt(""),a=Kt(),u=St(()=>o.value.trim()!==""),f=(L,k)=>{let E=!1;for(let R=0;R<L.length;R++){const P=L[R];if(ab(P.name,k)){E=!0;break}if(mdt(P)&&P.tasks&&(E=f(P.tasks,k),E))break}return E},h=St(()=>o.value.trim()?r.tasks.filter(L=>f([L],o.value)):r.tasks),d=St(()=>u.value?h.value.map(L=>Ba(L.id)).filter(Boolean):[]),g=St(()=>h.value.filter(L=>{var k;return((k=L.result)==null?void 0:k.state)==="fail"})),v=St(()=>h.value.filter(L=>{var k;return((k=L.result)==null?void 0:k.state)==="pass"})),b=St(()=>h.value.filter(L=>L.mode==="skip"||L.mode==="todo")),x=St(()=>h.value.filter(L=>!g.value.includes(L)&&!v.value.includes(L)&&!b.value.includes(L))),S=dC(x,250),N=L=>{var k;o.value="",L&&((k=a.value)==null||k.focus())},A=St(()=>o.value==="");return(L,k)=>{const E=Zo,R=wdt,P=fdt,G=Zi("tooltip");return dt(),At("div",xdt,[ht("div",null,[ht("div",_dt,[Kn(L.$slots,"header",{filteredTests:J(u)?J(d):void 0})]),ht("div",Sdt,[kdt,pn(ht("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":k[0]||(k[0]=j=>o.value=j),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:o.value.length?"100":"50",onKeydown:[k[1]||(k[1]=Ju(j=>N(!1),["esc"])),k[2]||(k[2]=Ju(j=>e("run",J(u)?J(d):void 0),["enter"]))]},null,40,Cdt),[[F_,o.value]]),pn(Rt(E,{disabled:J(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:k[3]||(k[3]=j=>N(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),ht("div",Tdt,[t.groupByType?(dt(),At(ue,{key:0},[J(g).length?(dt(),ce(P,{key:0},{summary:Zt(()=>[ht("div",Ldt," FAIL ("+Xt(J(g).length)+") ",1)]),default:Zt(()=>[(dt(!0),At(ue,null,lr(J(g),j=>(dt(),ce(R,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Nr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ve("",!0),J(x).length||J(Ha)==="running"?(dt(),ce(P,{key:1},{summary:Zt(()=>[ht("div",Edt," RUNNING ("+Xt(J(S).length)+") ",1)]),default:Zt(()=>[(dt(!0),At(ue,null,lr(J(S),j=>(dt(),ce(R,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Nr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ve("",!0),J(v).length?(dt(),ce(P,{key:2},{summary:Zt(()=>[ht("div",Adt," PASS ("+Xt(J(v).length)+") ",1)]),default:Zt(()=>[(dt(!0),At(ue,null,lr(J(v),j=>(dt(),ce(R,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Nr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ve("",!0),J(b).length?(dt(),ce(P,{key:3},{summary:Zt(()=>[ht("div",Ndt," SKIP ("+Xt(J(b).length)+") ",1)]),default:Zt(()=>[(dt(!0),At(ue,null,lr(J(b),j=>(dt(),ce(R,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Nr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ve("",!0)],64)):(dt(!0),At(ue,{key:1},lr(J(h),j=>(dt(),ce(R,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Nr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),J(u)&&J(h).length===0?(dt(),At("div",Mdt,[Odt,ht("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:k[4]||(k[4]=j=>N(!0))}," Clear ",32)])):ve("",!0)])])}}}),$dt={key:0,"h-full":""},Ddt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},Rdt={class:"flex text-lg"},zdt=oe({__name:"Suites",setup(t){const e=St(()=>{var a;return(a=Le.value)==null?void 0:a.name.split(/\//g).pop()}),r=St(()=>{var a,u;return((a=Le.value)==null?void 0:a.tasks)&&mc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&We.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=Ch,h=Zo,d=cb,g=Zi("tooltip");return J(Le)?(dt(),At("div",$dt,[Rt(d,{tasks:J(Le).tasks,nested:!0},{header:Zt(()=>[Rt(f,{"mx-1":"",task:J(Le)},null,8,["task"]),ht("span",Ddt,Xt(J(e)),1),ht("div",Rdt,[J(r)?pn((dt(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:u[0]||(u[0]=v=>o())},null,512)),[[g,`Update failed snapshot(s) of ${J(Le).name}`,void 0,{bottom:!0}]]):ve("",!0),pn(Rt(h,{icon:"i-carbon-play",onClick:u[1]||(u[1]=v=>J(DT)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ve("",!0)}}}),Xa=St(()=>Tn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Ya=St(()=>Tn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Th=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!Xa.value.includes(t)&&!Ya.value.includes(t)&&!Th.value.includes(t)));St(()=>Th.value.filter(t=>t.mode==="skip"));const Vv=St(()=>Tn.value.filter(mc));St(()=>Th.value.filter(t=>t.mode==="todo"));const Idt=St(()=>Ha.value==="idle"),bl=St(()=>Lh(Tn.value)),ub=St(()=>bl.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),fb=St(()=>bl.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),hb=St(()=>bl.value.filter(t=>t.mode==="skip"||t.mode==="todo")),Fdt=St(()=>hb.value.filter(t=>t.mode==="skip")),qdt=St(()=>hb.value.filter(t=>t.mode==="todo"));St(()=>ub.value.length+fb.value.length);const Hdt=St(()=>{const t=Lh(bl.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 Bdt(t){return t=t||[],Array.isArray(t)?t:[t]}function Kv(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function Lh(t){return Bdt(t).flatMap(e=>Kv(e)?[e]:e.tasks.flatMap(r=>Kv(r)?[r]:Lh(r)))}const gr=t=>(Tm("data-v-6679a536"),t=t(),Lm(),t),Wdt={"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:""},Udt=gr(()=>ht("div",{"i-carbon-document":""},null,-1)),jdt=gr(()=>ht("div",null,"Files",-1)),Gdt={class:"number","data-testid":"num-files"},Vdt=gr(()=>ht("div",{"i-carbon-checkmark":""},null,-1)),Kdt=gr(()=>ht("div",null,"Pass",-1)),Xdt={class:"number"},Ydt=gr(()=>ht("div",{"i-carbon-close":""},null,-1)),Jdt=gr(()=>ht("div",null," Fail ",-1)),Zdt={class:"number","text-red5":""},Qdt=gr(()=>ht("div",{"i-carbon-compare":""},null,-1)),tpt=gr(()=>ht("div",null," Snapshot Fail ",-1)),ept={class:"number","text-red5":""},npt=gr(()=>ht("div",{"i-carbon-timer":""},null,-1)),rpt=gr(()=>ht("div",null,"Time",-1)),ipt={class:"number","data-testid":"run-time"},opt=oe({__name:"TestFilesEntry",setup(t){return(e,r)=>(dt(),At("div",Wdt,[Udt,jdt,ht("div",Gdt,Xt(J(Tn).length),1),J(Ya).length?(dt(),At(ue,{key:0},[Vdt,Kdt,ht("div",Xdt,Xt(J(Ya).length),1)],64)):ve("",!0),J(Xa).length?(dt(),At(ue,{key:1},[Ydt,Jdt,ht("div",Zdt,Xt(J(Xa).length),1)],64)):ve("",!0),J(Vv).length?(dt(),At(ue,{key:2},[Qdt,tpt,ht("div",ept,Xt(J(Vv).length),1)],64)):ve("",!0),npt,rpt,ht("div",ipt,Xt(J(Hdt)),1)]))}});const spt=Yo(opt,[["__scopeId","data-v-6679a536"]]),lpt={"p-2":"","text-center":"",flex:""},apt={"text-4xl":"","min-w-2em":""},cpt={"text-md":""},upt=oe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(dt(),At("div",lpt,[ht("div",null,[ht("div",apt,[Kn(e.$slots,"body")]),ht("div",cpt,[Kn(e.$slots,"header")])])]))}}),fpt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},hpt=oe({__name:"TestsEntry",setup(t){const e=St(()=>bl.value.length),r=St(()=>fb.value.length),o=St(()=>ub.value.length),a=St(()=>Fdt.value.length),u=St(()=>qdt.value.length);return St(()=>J(e)-o.value-r.value),(f,h)=>{const d=upt;return dt(),At("div",fpt,[Rt(d,{"text-green5":"","data-testid":"pass-entry"},{header:Zt(()=>[fn(" Pass ")]),body:Zt(()=>[fn(Xt(J(r)),1)]),_:1}),Rt(d,{class:ge({"text-red5":J(o),op50:!J(o)}),"data-testid":"fail-entry"},{header:Zt(()=>[fn(" Fail ")]),body:Zt(()=>[fn(Xt(J(o)),1)]),_:1},8,["class"]),J(a)?(dt(),ce(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Zt(()=>[fn(" Skip ")]),body:Zt(()=>[fn(Xt(J(a)),1)]),_:1})):ve("",!0),J(u)?(dt(),ce(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Zt(()=>[fn(" Todo ")]),body:Zt(()=>[fn(Xt(J(u)),1)]),_:1})):ve("",!0),Rt(d,{tail:!0,"data-testid":"total-entry"},{header:Zt(()=>[fn(" Total ")]),body:Zt(()=>[fn(Xt(J(e)),1)]),_:1})])}}}),dpt={},ppt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},gpt={"aria-labelledby":"tests",m:"y-4 x-2"};function vpt(t,e){const r=hpt,o=spt;return dt(),At("div",ppt,[ht("section",gpt,[Rt(r)]),Rt(o)])}const mpt=Yo(dpt,[["render",vpt]]),ypt={},bpt={h:"full",flex:"~ col"},wpt=ht("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ht("div",{class:"i-carbon-dashboard"}),ht("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),xpt={class:"scrolls","flex-auto":"","py-1":""};function _pt(t,e){const r=mpt;return dt(),At("div",bpt,[wpt,ht("div",xpt,[Rt(r)])])}const Spt=Yo(ypt,[["render",_pt]]),kpt="/__vitest__/favicon.svg",Ja=Kt(),Us=Kt(!0);function Cpt(){const t=Nr.value;if(t&&t.length>0){const e=Ba(t);e?(Ja.value=e,Us.value=!1):TC(()=>We.state.getFiles(),()=>{Ja.value=Ba(t),Us.value=!1})}return Us}function Xv(t){Us.value=t,t&&(Ja.value=void 0,Nr.value="")}const Tpt=ht("img",{"w-6":"","h-6":"",src:kpt,alt:"Vitest logo"},null,-1),Lpt=ht("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Ept={class:"flex text-lg"},Apt=oe({__name:"Navigation",setup(t){const e=St(()=>Tn.value&&mc(Tn.value)),r=()=>We.rpc.updateSnapshot();function o(u){Nr.value=u.id,Ja.value=Ba(u.id),Xv(!1)}const a=St(()=>wc.value?"light":"dark");return(u,f)=>{const h=Zo,d=cb,g=Zi("tooltip");return dt(),ce(d,{border:"r base",tasks:J(Tn),"on-item-click":o,"group-by-type":!0,onRun:J(sv)},{header:Zt(({filteredTests:v})=>[Tpt,Lpt,ht("div",Ept,[pn(Rt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>J(Xv)(!0))},null,512),[[Zm,!J(Us)],[g,"Dashboard",void 0,{bottom:!0}]]),J(e)?pn((dt(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:f[1]||(f[1]=b=>r())},null,512)),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ve("",!0),pn(Rt(h,{disabled:(v==null?void 0:v.length)===0,icon:"i-carbon-play",onClick:b=>J(sv)(v)},null,8,["disabled","onClick"]),[[g,v?v.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),pn(Rt(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:f[2]||(f[2]=b=>J(Qst)())},null,512),[[g,`Toggle to ${J(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),Npt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Mpt=oe({__name:"ProgressBar",setup(t){const{width:e}=gT(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Idt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>Ya.value.length),u=St(()=>Xa.value.length),f=St(()=>{const v=J(o);return v>0?e.value*a.value/v:0}),h=St(()=>{const v=J(o);return v>0?e.value*u.value/v:0}),d=St(()=>J(o)-u.value-a.value),g=St(()=>{const v=J(o);return v>0?e.value*d.value/v:0});return(v,b)=>(dt(),At("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ge(J(r))},[ht("div",Npt,[ht("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ge(J(r)),style:kn(`width: ${J(h)}px;`)}," ",6),ht("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ge(J(r)),style:kn(`left: ${J(h)}px; width: ${J(f)}px;`)}," ",6),ht("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ge(J(r)),style:kn(`left: ${J(f)+J(h)}px; width: ${J(g)}px;`)}," ",6)])],2))}});const Opt=Yo(Mpt,[["__scopeId","data-v-f967c1fe"]]),Yv={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,a)=>(o.size=a===e?o.max:o.min,a!==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),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),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((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):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((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((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,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),e.parentNode.insertBefore(a,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,a])=>r[o]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===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((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,a)=>o.index=a),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(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.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 a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!e.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((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 dl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Ppt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},$pt={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 Dpt(t,e,r,o,a,u){return dt(),At("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>u.onPaneClick(f,t._.uid)),style:kn(t.style)},[Kn(t.$slots,"default")],4)}const da=Ppt($pt,[["render",Dpt]]),Rpt={"h-screen":"","w-screen":"",overflow:"hidden"},zpt=oe({__name:"index",setup(t){const e=Cpt(),r=hr([33,67]),o=hr([33,67]),a=Wg(h=>{h.forEach((d,g)=>{r[g]=d.size})},0),u=Wg(h=>{h.forEach((d,g)=>{o[g]=d.size})},0),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=Opt,v=Apt,b=Spt,x=zdt,S=ldt,N=IT;return dt(),At(ue,null,[Rt(g),ht("div",Rpt,[Rt(J(Yv),{class:"pt-4px",onResized:J(a),onReady:f},{default:Zt(()=>[Rt(J(da),{size:r[0]},{default:Zt(()=>[Rt(v)]),_:1},8,["size"]),Rt(J(da),{size:r[1]},{default:Zt(()=>[Rt(Qf,null,{default:Zt(()=>[J(e)?(dt(),ce(b,{key:"summary"})):(dt(),ce(J(Yv),{key:"detail",onResized:J(u)},{default:Zt(()=>[Rt(J(da),{size:o[0]},{default:Zt(()=>[Rt(x)]),_:1},8,["size"]),Rt(J(da),{size:o[1]},{default:Zt(()=>[Rt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Rt(N)],64)}}}),Ipt=[{name:"index",path:"/",component:zpt,props:!0}];const Fpt={tooltip:oC};P0.options.instantMove=!0;P0.options.distance=10;const qpt=()=>KS({history:uS("/__vitest__/"),routes:Ipt}),Hpt=[qpt],Eh=Qm(G_);Hpt.forEach(t=>{Eh.use(t())});Object.entries(Fpt).forEach(([t,e])=>{Eh.directive(t,e)});Eh.mount("#app");
|