@vitest/browser 0.25.1 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var Kw=Object.defineProperty;var Xw=(t,n,r)=>n in t?Kw(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var Ai=(t,n,r)=>(Xw(t,typeof n!="symbol"?n+"":n,r),r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerpolicy&&(u.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?u.credentials="include":a.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function xf(t,n){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return n?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const Yw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zw=xf(Yw);function zv(t){return!!t||t===""}function kn(t){if(Ht(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=Ue(o)?tx(o):kn(o);if(a)for(const u in a)n[u]=a[u]}return n}else{if(Ue(t))return t;if(xe(t))return t}}const Jw=/;(?![^(]*\))/g,Qw=/:(.+)/;function tx(t){const n={};return t.split(Jw).forEach(r=>{if(r){const o=r.split(Qw);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ge(t){let n="";if(Ue(t))n=t;else if(Ht(t))for(let r=0;r<t.length;r++){const o=ge(t[r]);o&&(n+=o+" ")}else if(xe(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const Jt=t=>Ue(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===Hv||!Wt(t.toString))?JSON.stringify(t,Iv,2):String(t),Iv=(t,n)=>n&&n.__v_isRef?Iv(t,n.value):Lo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Fv(n)?{[`Set(${n.size})`]:[...n.values()]}:xe(n)&&!Ht(n)&&!Bv(n)?String(n):n,me={},To=[],Vn=()=>{},ex=()=>!1,nx=/^on[^a-z]/,Xa=t=>nx.test(t),_f=t=>t.startsWith("onUpdate:"),Xe=Object.assign,Sf=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},rx=Object.prototype.hasOwnProperty,Yt=(t,n)=>rx.call(t,n),Ht=Array.isArray,Lo=t=>Ya(t)==="[object Map]",Fv=t=>Ya(t)==="[object Set]",Wt=t=>typeof t=="function",Ue=t=>typeof t=="string",kf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",qv=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),Hv=Object.prototype.toString,Ya=t=>Hv.call(t),ix=t=>Ya(t).slice(8,-1),Bv=t=>Ya(t)==="[object Object]",Cf=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ha=xf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Za=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},ox=/-(\w)/g,fr=Za(t=>t.replace(ox,(n,r)=>r?r.toUpperCase():"")),sx=/\B([A-Z])/g,Yi=Za(t=>t.replace(sx,"-$1").toLowerCase()),Ja=Za(t=>t.charAt(0).toUpperCase()+t.slice(1)),gu=Za(t=>t?`on${Ja(t)}`:""),Us=(t,n)=>!Object.is(t,n),da=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},Ca=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},js=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let wp;const lx=()=>wp||(wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class ax{constructor(n=!1){this.detached=n,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Mn,!n&&Mn&&(this.index=(Mn.scopes||(Mn.scopes=[])).push(this)-1)}run(n){if(this.active){const r=Mn;try{return Mn=this,n()}finally{Mn=r}}}on(){Mn=this}off(){Mn=this.parent}stop(n){if(this.active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!n){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this.active=!1}}}function cx(t,n=Mn){n&&n.active&&n.effects.push(t)}function ux(){return Mn}function fx(t){Mn&&Mn.cleanups.push(t)}const Tf=t=>{const n=new Set(t);return n.w=0,n.n=0,n},Wv=t=>(t.w&di)>0,Uv=t=>(t.n&di)>0,hx=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=di},dx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];Wv(a)&&!Uv(a)?a.delete(t):n[r++]=a,a.w&=~di,a.n&=~di}n.length=r}},Ou=new WeakMap;let Ds=0,di=1;const $u=30;let jn;const Bi=Symbol(""),Du=Symbol("");class Lf{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,cx(this,o)}run(){if(!this.active)return this.fn();let n=jn,r=ci;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=jn,jn=this,ci=!0,di=1<<++Ds,Ds<=$u?hx(this):xp(this),this.fn()}finally{Ds<=$u&&dx(this),di=1<<--Ds,jn=this.parent,ci=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jn===this?this.deferStop=!0:this.active&&(xp(this),this.onStop&&this.onStop(),this.active=!1)}}function xp(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let ci=!0;const jv=[];function Vo(){jv.push(ci),ci=!1}function Ko(){const t=jv.pop();ci=t===void 0?!0:t}function Pn(t,n,r){if(ci&&jn){let o=Ou.get(t);o||Ou.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Tf()),Gv(a)}}function Gv(t,n){let r=!1;Ds<=$u?Uv(t)||(t.n|=di,r=!Wv(t)):r=!t.has(jn),r&&(t.add(jn),jn.deps.push(t))}function $r(t,n,r,o,a,u){const f=Ou.get(t);if(!f)return;let h=[];if(n==="clear")h=[...f.values()];else if(r==="length"&&Ht(t))f.forEach((p,g)=>{(g==="length"||g>=o)&&h.push(p)});else switch(r!==void 0&&h.push(f.get(r)),n){case"add":Ht(t)?Cf(r)&&h.push(f.get("length")):(h.push(f.get(Bi)),Lo(t)&&h.push(f.get(Du)));break;case"delete":Ht(t)||(h.push(f.get(Bi)),Lo(t)&&h.push(f.get(Du)));break;case"set":Lo(t)&&h.push(f.get(Bi));break}if(h.length===1)h[0]&&Ru(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);Ru(Tf(p))}}function Ru(t,n){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&_p(o);for(const o of r)o.computed||_p(o)}function _p(t,n){(t!==jn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const px=xf("__proto__,__v_isRef,__isVue"),Vv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(kf)),gx=Ef(),vx=Ef(!1,!0),mx=Ef(!0),Sp=yx();function yx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=le(this);for(let u=0,f=this.length;u<f;u++)Pn(o,"get",u+"");const a=o[n](...r);return a===-1||a===!1?o[n](...r.map(le)):a}}),["push","pop","shift","unshift","splice"].forEach(n=>{t[n]=function(...r){Vo();const o=le(this)[n].apply(this,r);return Ko(),o}}),t}function Ef(t=!1,n=!1){return function(o,a,u){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return n;if(a==="__v_raw"&&u===(t?n?$x:Jv:n?Zv:Yv).get(o))return o;const f=Ht(o);if(!t&&f&&Yt(Sp,a))return Reflect.get(Sp,a,u);const h=Reflect.get(o,a,u);return(kf(a)?Vv.has(a):px(a))||(t||Pn(o,"get",a),n)?h:Ie(h)?f&&Cf(a)?h:h.value:xe(h)?t?Qv(h):hr(h):h}}const bx=Kv(),wx=Kv(!0);function Kv(t=!1){return function(r,o,a,u){let f=r[o];if(Do(f)&&Ie(f)&&!Ie(a))return!1;if(!t&&(!Ta(a)&&!Do(a)&&(f=le(f),a=le(a)),!Ht(r)&&Ie(f)&&!Ie(a)))return f.value=a,!0;const h=Ht(r)&&Cf(o)?Number(o)<r.length:Yt(r,o),p=Reflect.set(r,o,a,u);return r===le(u)&&(h?Us(a,f)&&$r(r,"set",o,a):$r(r,"add",o,a)),p}}function xx(t,n){const r=Yt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&$r(t,"delete",n,void 0),o}function _x(t,n){const r=Reflect.has(t,n);return(!kf(n)||!Vv.has(n))&&Pn(t,"has",n),r}function Sx(t){return Pn(t,"iterate",Ht(t)?"length":Bi),Reflect.ownKeys(t)}const Xv={get:gx,set:bx,deleteProperty:xx,has:_x,ownKeys:Sx},kx={get:mx,set(t,n){return!0},deleteProperty(t,n){return!0}},Cx=Xe({},Xv,{get:vx,set:wx}),Af=t=>t,Qa=t=>Reflect.getPrototypeOf(t);function ta(t,n,r=!1,o=!1){t=t.__v_raw;const a=le(t),u=le(n);r||(n!==u&&Pn(a,"get",n),Pn(a,"get",u));const{has:f}=Qa(a),h=o?Af:r?Of:Gs;if(f.call(a,n))return h(t.get(n));if(f.call(a,u))return h(t.get(u));t!==a&&t.get(n)}function ea(t,n=!1){const r=this.__v_raw,o=le(r),a=le(t);return n||(t!==a&&Pn(o,"has",t),Pn(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function na(t,n=!1){return t=t.__v_raw,!n&&Pn(le(t),"iterate",Bi),Reflect.get(t,"size",t)}function kp(t){t=le(t);const n=le(this);return Qa(n).has.call(n,t)||(n.add(t),$r(n,"add",t,t)),this}function Cp(t,n){n=le(n);const r=le(this),{has:o,get:a}=Qa(r);let u=o.call(r,t);u||(t=le(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,n),u?Us(n,f)&&$r(r,"set",t,n):$r(r,"add",t,n),this}function Tp(t){const n=le(this),{has:r,get:o}=Qa(n);let a=r.call(n,t);a||(t=le(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&$r(n,"delete",t,void 0),u}function Lp(){const t=le(this),n=t.size!==0,r=t.clear();return n&&$r(t,"clear",void 0,void 0),r}function ra(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?Af:t?Of:Gs;return!t&&Pn(h,"iterate",Bi),f.forEach((g,m)=>o.call(a,p(g),p(m),u))}}function ia(t,n,r){return function(...o){const a=this.__v_raw,u=le(a),f=Lo(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),m=r?Af:n?Of:Gs;return!n&&Pn(u,"iterate",p?Du:Bi),{next(){const{value:b,done:x}=g.next();return x?{value:b,done:x}:{value:h?[m(b[0]),m(b[1])]:m(b),done:x}},[Symbol.iterator](){return this}}}}function Qr(t){return function(...n){return t==="delete"?!1:this}}function Tx(){const t={get(u){return ta(this,u)},get size(){return na(this)},has:ea,add:kp,set:Cp,delete:Tp,clear:Lp,forEach:ra(!1,!1)},n={get(u){return ta(this,u,!1,!0)},get size(){return na(this)},has:ea,add:kp,set:Cp,delete:Tp,clear:Lp,forEach:ra(!1,!0)},r={get(u){return ta(this,u,!0)},get size(){return na(this,!0)},has(u){return ea.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:ra(!0,!1)},o={get(u){return ta(this,u,!0,!0)},get size(){return na(this,!0)},has(u){return ea.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:ra(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ia(u,!1,!1),r[u]=ia(u,!0,!1),n[u]=ia(u,!1,!0),o[u]=ia(u,!0,!0)}),[t,r,n,o]}const[Lx,Ex,Ax,Mx]=Tx();function Mf(t,n){const r=n?t?Mx:Ax:t?Ex:Lx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Yt(r,a)&&a in o?r:o,a,u)}const Nx={get:Mf(!1,!1)},Px={get:Mf(!1,!0)},Ox={get:Mf(!0,!1)},Yv=new WeakMap,Zv=new WeakMap,Jv=new WeakMap,$x=new WeakMap;function Dx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rx(t){return t.__v_skip||!Object.isExtensible(t)?0:Dx(ix(t))}function hr(t){return Do(t)?t:Nf(t,!1,Xv,Nx,Yv)}function zx(t){return Nf(t,!1,Cx,Px,Zv)}function Qv(t){return Nf(t,!0,kx,Ox,Jv)}function Nf(t,n,r,o,a){if(!xe(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=Rx(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Eo(t){return Do(t)?Eo(t.__v_raw):!!(t&&t.__v_isReactive)}function Do(t){return!!(t&&t.__v_isReadonly)}function Ta(t){return!!(t&&t.__v_isShallow)}function tm(t){return Eo(t)||Do(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function Pf(t){return Ca(t,"__v_skip",!0),t}const Gs=t=>xe(t)?hr(t):t,Of=t=>xe(t)?Qv(t):t;function em(t){ci&&jn&&(t=le(t),Gv(t.dep||(t.dep=Tf())))}function nm(t,n){t=le(t),t.dep&&Ru(t.dep)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return rm(t,!1)}function ll(t){return rm(t,!0)}function rm(t,n){return Ie(t)?t:new Ix(t,n)}class Ix{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:le(n),this._value=r?n:Gs(n)}get value(){return em(this),this._value}set value(n){const r=this.__v_isShallow||Ta(n)||Do(n);n=r?n:le(n),Us(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Gs(n),nm(this))}}function Z(t){return Ie(t)?t.value:t}const Fx={get:(t,n,r)=>Z(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Ie(a)&&!Ie(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function im(t){return Eo(t)?t:new Proxy(t,Fx)}function qx(t){const n=Ht(t)?new Array(t.length):{};for(const r in t)n[r]=$f(t,r);return n}class Hx{constructor(n,r,o){this._object=n,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}}function $f(t,n,r){const o=t[n];return Ie(o)?o:new Hx(t,n,r)}var om;class Bx{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[om]=!1,this._dirty=!0,this.effect=new Lf(n,()=>{this._dirty||(this._dirty=!0,nm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return em(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}om="__v_isReadonly";function Wx(t,n,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Vn):(o=t.get,a=t.set),new Bx(o,a,u||!a,r)}function ui(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){al(u,n,r)}return a}function In(t,n,r,o){if(Wt(t)){const u=ui(t,n,r,o);return u&&qv(u)&&u.catch(f=>{al(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(In(t[u],n,r,o));return a}function al(t,n,r,o=!0){const a=n?n.vnode:null;if(n){let u=n.parent;const f=n.proxy,h=r;for(;u;){const g=u.ec;if(g){for(let m=0;m<g.length;m++)if(g[m](t,f,h)===!1)return}u=u.parent}const p=n.appContext.config.errorHandler;if(p){ui(p,null,10,[t,f,h]);return}}Ux(t,r,a,o)}function Ux(t,n,r,o=!0){console.error(t)}let Vs=!1,zu=!1;const tn=[];let sr=0;const Ao=[];let Er=null,Ri=0;const sm=Promise.resolve();let Df=null;function cl(t){const n=Df||sm;return t?n.then(this?t.bind(this):t):n}function jx(t){let n=sr+1,r=tn.length;for(;n<r;){const o=n+r>>>1;Ks(tn[o])<t?n=o+1:r=o}return n}function Rf(t){(!tn.length||!tn.includes(t,Vs&&t.allowRecurse?sr+1:sr))&&(t.id==null?tn.push(t):tn.splice(jx(t.id),0,t),lm())}function lm(){!Vs&&!zu&&(zu=!0,Df=sm.then(um))}function Gx(t){const n=tn.indexOf(t);n>sr&&tn.splice(n,1)}function am(t){Ht(t)?Ao.push(...t):(!Er||!Er.includes(t,t.allowRecurse?Ri+1:Ri))&&Ao.push(t),lm()}function Ep(t,n=Vs?sr+1:0){for(;n<tn.length;n++){const r=tn[n];r&&r.pre&&(tn.splice(n,1),n--,r())}}function cm(t){if(Ao.length){const n=[...new Set(Ao)];if(Ao.length=0,Er){Er.push(...n);return}for(Er=n,Er.sort((r,o)=>Ks(r)-Ks(o)),Ri=0;Ri<Er.length;Ri++)Er[Ri]();Er=null,Ri=0}}const Ks=t=>t.id==null?1/0:t.id,Vx=(t,n)=>{const r=Ks(t)-Ks(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function um(t){zu=!1,Vs=!0,tn.sort(Vx);const n=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,cm(),Vs=!1,Df=null,(tn.length||Ao.length)&&um()}}function Kx(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||me;let a=r;const u=n.startsWith("update:"),f=u&&n.slice(7);if(f&&f in o){const m=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:x}=o[m]||me;x&&(a=r.map(S=>S.trim())),b&&(a=r.map(js))}let h,p=o[h=gu(n)]||o[h=gu(fr(n))];!p&&u&&(p=o[h=gu(Yi(n))]),p&&In(p,t,6,a);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,In(g,t,6,a)}}function fm(t,n,r=!1){const o=n.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let f={},h=!1;if(!Wt(t)){const p=g=>{const m=fm(g,n,!0);m&&(h=!0,Xe(f,m))};!r&&n.mixins.length&&n.mixins.forEach(p),t.extends&&p(t.extends),t.mixins&&t.mixins.forEach(p)}return!u&&!h?(xe(t)&&o.set(t,null),null):(Ht(u)?u.forEach(p=>f[p]=null):Xe(f,u),xe(t)&&o.set(t,f),f)}function tc(t,n){return!t||!Xa(n)?!1:(n=n.slice(2).replace(/Once$/,""),Yt(t,n[0].toLowerCase()+n.slice(1))||Yt(t,Yi(n))||Yt(t,n))}let en=null,ec=null;function La(t){const n=en;return en=t,ec=t&&t.type.__scopeId||null,n}function hm(t){ec=t}function dm(){ec=null}const Xx=t=>Zt;function Zt(t,n=en,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&qp(-1);const u=La(n);let f;try{f=t(...a)}finally{La(u),o._d&&qp(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function vu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:p,emit:g,render:m,renderCache:b,data:x,setupState:S,ctx:M,inheritAttrs:A}=t;let L,C;const E=La(t);try{if(r.shapeFlag&4){const D=a||o;L=Un(m.call(D,D,b,u,S,x,M)),C=p}else{const D=n;L=Un(D.length>1?D(u,{attrs:p,slots:h,emit:g}):D(u,null)),C=n.props?p:Zx(p)}}catch(D){Fs.length=0,al(D,t,1),L=Rt(Cn)}let z=L;if(C&&A!==!1){const D=Object.keys(C),{shapeFlag:G}=z;D.length&&G&7&&(f&&D.some(_f)&&(C=Jx(C,f)),z=pi(z,C))}return r.dirs&&(z=pi(z),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&(z.transition=r.transition),L=z,La(E),L}function Yx(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(Ys(o)){if(o.type!==Cn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Zx=t=>{let n;for(const r in t)(r==="class"||r==="style"||Xa(r))&&((n||(n={}))[r]=t[r]);return n},Jx=(t,n)=>{const r={};for(const o in t)(!_f(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function Qx(t,n,r){const{props:o,children:a,component:u}=t,{props:f,children:h,patchFlag:p}=n,g=u.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&p>=0){if(p&1024)return!0;if(p&16)return o?Ap(o,f,g):!!f;if(p&8){const m=n.dynamicProps;for(let b=0;b<m.length;b++){const x=m[b];if(f[x]!==o[x]&&!tc(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Ap(o,f,g):!0:!!f;return!1}function Ap(t,n,r){const o=Object.keys(n);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(n[u]!==t[u]&&!tc(r,u))return!0}return!1}function zf({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const t1=t=>t.__isSuspense,e1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?r1(n,r,o,a,u,f,h,p,g):i1(t,n,r,o,a,f,h,p,g)},hydrate:o1,create:If,normalize:s1},n1=e1;function Xs(t,n){const r=t.props&&t.props[n];Wt(r)&&r()}function r1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:m}}=p,b=m("div"),x=t.suspense=If(t,a,o,n,b,r,u,f,h,p);g(null,x.pendingBranch=t.ssContent,b,null,o,x,u,f),x.deps>0?(Xs(t,"onPending"),Xs(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),Mo(x,t.ssFallback)):x.resolve()}function i1(t,n,r,o,a,u,f,h,{p,um:g,o:{createElement:m}}){const b=n.suspense=t.suspense;b.vnode=n,n.el=t.el;const x=n.ssContent,S=n.ssFallback,{activeBranch:M,pendingBranch:A,isInFallback:L,isHydrating:C}=b;if(A)b.pendingBranch=x,ar(x,A)?(p(A,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():L&&(p(M,S,r,o,a,null,u,f,h),Mo(b,S))):(b.pendingId++,C?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=m("div"),L?(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(p(M,S,r,o,a,null,u,f,h),Mo(b,S))):M&&ar(x,M)?(p(M,x,r,o,a,b,u,f,h),b.resolve(!0)):(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(M&&ar(x,M))p(M,x,r,o,a,b,u,f,h),Mo(b,x);else if(Xs(n,"onPending"),b.pendingBranch=x,b.pendingId++,p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:E,pendingId:z}=b;E>0?setTimeout(()=>{b.pendingId===z&&b.fallback(S)},E):E===0&&b.fallback(S)}}function If(t,n,r,o,a,u,f,h,p,g,m=!1){const{p:b,m:x,um:S,n:M,o:{parentNode:A,remove:L}}=g,C=js(t.props&&t.props.timeout),E={vnode:t,parent:n,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:m,isUnmounted:!1,effects:[],resolve(z=!1){const{vnode:D,activeBranch:G,pendingBranch:j,pendingId:it,effects:Q,parentComponent:dt,container:vt}=E;if(E.isHydrating)E.isHydrating=!1;else if(!z){const U=G&&j.transition&&j.transition.mode==="out-in";U&&(G.transition.afterLeave=()=>{it===E.pendingId&&x(j,vt,I,0)});let{anchor:I}=E;G&&(I=M(G),S(G,dt,E,!0)),U||x(j,vt,I,0)}Mo(E,j),E.pendingBranch=null,E.isInFallback=!1;let kt=E.parent,ft=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...Q),ft=!0;break}kt=kt.parent}ft||am(Q),E.effects=[],Xs(D,"onResolve")},fallback(z){if(!E.pendingBranch)return;const{vnode:D,activeBranch:G,parentComponent:j,container:it,isSVG:Q}=E;Xs(D,"onFallback");const dt=M(G),vt=()=>{!E.isInFallback||(b(null,z,it,dt,j,null,Q,h,p),Mo(E,z))},kt=z.transition&&z.transition.mode==="out-in";kt&&(G.transition.afterLeave=vt),E.isInFallback=!0,S(G,j,null,!0),kt||vt()},move(z,D,G){E.activeBranch&&x(E.activeBranch,z,D,G),E.container=z},next(){return E.activeBranch&&M(E.activeBranch)},registerDep(z,D){const G=!!E.pendingBranch;G&&E.deps++;const j=z.vnode.el;z.asyncDep.catch(it=>{al(it,z,0)}).then(it=>{if(z.isUnmounted||E.isUnmounted||E.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:Q}=z;ju(z,it,!1),j&&(Q.el=j);const dt=!j&&z.subTree.el;D(z,Q,A(j||z.subTree.el),j?null:M(z.subTree),E,f,p),dt&&L(dt),zf(z,Q.el),G&&--E.deps===0&&E.resolve()})},unmount(z,D){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,z,D),E.pendingBranch&&S(E.pendingBranch,r,z,D)}};return E}function o1(t,n,r,o,a,u,f,h,p){const g=n.suspense=If(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),m=p(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),m}function s1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=Mp(o?r.default:r),t.ssFallback=o?Mp(r.fallback):Rt(Cn)}function Mp(t){let n;if(Wt(t)){const r=Ro&&t._c;r&&(t._d=!1,ht()),t=t(),r&&(t._d=!0,n=zn,Nm())}return Ht(t)&&(t=Yx(t)),t=Un(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function l1(t,n){n&&n.pendingBranch?Ht(t)?n.effects.push(...t):n.effects.push(t):am(t)}function Mo(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,zf(o,a))}function pa(t,n){if(Be){let r=Be.provides;const o=Be.parent&&Be.parent.provides;o===r&&(r=Be.provides=Object.create(o)),r[t]=n}}function fi(t,n,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(n)?n.call(o.proxy):n}}function Ff(t,n){return qf(t,null,n)}const Np={};function Fe(t,n,r){return qf(t,n,r)}function qf(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=me){const h=Be;let p,g=!1,m=!1;if(Ie(t)?(p=()=>t.value,g=Ta(t)):Eo(t)?(p=()=>t,o=!0):Ht(t)?(m=!0,g=t.some(C=>Eo(C)||Ta(C)),p=()=>t.map(C=>{if(Ie(C))return C.value;if(Eo(C))return Ii(C);if(Wt(C))return ui(C,h,2)})):Wt(t)?n?p=()=>ui(t,h,2):p=()=>{if(!(h&&h.isUnmounted))return b&&b(),In(t,h,3,[x])}:p=Vn,n&&o){const C=p;p=()=>Ii(C())}let b,x=C=>{b=L.onStop=()=>{ui(C,h,4)}};if(Zs)return x=Vn,n?r&&In(n,h,3,[p(),m?[]:void 0,x]):p(),Vn;let S=m?[]:Np;const M=()=>{if(!!L.active)if(n){const C=L.run();(o||g||(m?C.some((E,z)=>Us(E,S[z])):Us(C,S)))&&(b&&b(),In(n,h,3,[C,S===Np?void 0:S,x]),S=C)}else L.run()};M.allowRecurse=!!n;let A;a==="sync"?A=M:a==="post"?A=()=>xn(M,h&&h.suspense):(M.pre=!0,h&&(M.id=h.uid),A=()=>Rf(M));const L=new Lf(p,A);return n?r?M():S=L.run():a==="post"?xn(L.run.bind(L),h&&h.suspense):L.run(),()=>{L.stop(),h&&h.scope&&Sf(h.scope.effects,L)}}function a1(t,n,r){const o=this.proxy,a=Ue(t)?t.includes(".")?pm(o,t):()=>o[t]:t.bind(o,o);let u;Wt(n)?u=n:(u=n.handler,r=n);const f=Be;zo(this);const h=qf(a,u.bind(o),r);return f?zo(f):Wi(),h}function pm(t,n){const r=n.split(".");return()=>{let o=t;for(let a=0;a<r.length&&o;a++)o=o[r[a]];return o}}function Ii(t,n){if(!xe(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ie(t))Ii(t.value,n);else if(Ht(t))for(let r=0;r<t.length;r++)Ii(t[r],n);else if(Fv(t)||Lo(t))t.forEach(r=>{Ii(r,n)});else if(Bv(t))for(const r in t)Ii(t[r],n);return t}function c1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ul(()=>{t.isMounted=!0}),bm(()=>{t.isUnmounting=!0}),t}const Rn=[Function,Array],u1={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:n}){const r=oc(),o=c1();let a;return()=>{const u=n.default&&mm(n.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:p}=h;if(o.isLeaving)return mu(f);const g=Pp(f);if(!g)return mu(f);const m=Iu(g,h,o,r);Fu(g,m);const b=r.subTree,x=b&&Pp(b);let S=!1;const{getTransitionKey:M}=g.type;if(M){const A=M();a===void 0?a=A:A!==a&&(a=A,S=!0)}if(x&&x.type!==Cn&&(!ar(g,x)||S)){const A=Iu(x,h,o,r);if(Fu(x,A),p==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update()},mu(f);p==="in-out"&&g.type!==Cn&&(A.delayLeave=(L,C,E)=>{const z=vm(o,x);z[String(x.key)]=x,L._leaveCb=()=>{C(),L._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=E})}return f}}},gm=u1;function vm(t,n){const{leavingVNodes:r}=t;let o=r.get(n.type);return o||(o=Object.create(null),r.set(n.type,o)),o}function Iu(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:M,onBeforeAppear:A,onAppear:L,onAfterAppear:C,onAppearCancelled:E}=n,z=String(t.key),D=vm(r,t),G=(Q,dt)=>{Q&&In(Q,o,9,dt)},j=(Q,dt)=>{const vt=dt[1];G(Q,dt),Ht(Q)?Q.every(kt=>kt.length<=1)&&vt():Q.length<=1&&vt()},it={mode:u,persisted:f,beforeEnter(Q){let dt=h;if(!r.isMounted)if(a)dt=A||h;else return;Q._leaveCb&&Q._leaveCb(!0);const vt=D[z];vt&&ar(t,vt)&&vt.el._leaveCb&&vt.el._leaveCb(),G(dt,[Q])},enter(Q){let dt=p,vt=g,kt=m;if(!r.isMounted)if(a)dt=L||p,vt=C||g,kt=E||m;else return;let ft=!1;const U=Q._enterCb=I=>{ft||(ft=!0,I?G(kt,[Q]):G(vt,[Q]),it.delayedLeave&&it.delayedLeave(),Q._enterCb=void 0)};dt?j(dt,[Q,U]):U()},leave(Q,dt){const vt=String(t.key);if(Q._enterCb&&Q._enterCb(!0),r.isUnmounting)return dt();G(b,[Q]);let kt=!1;const ft=Q._leaveCb=U=>{kt||(kt=!0,dt(),U?G(M,[Q]):G(S,[Q]),Q._leaveCb=void 0,D[vt]===t&&delete D[vt])};D[vt]=t,x?j(x,[Q,ft]):ft()},clone(Q){return Iu(Q,n,r,o)}};return it}function mu(t){if(nc(t))return t=pi(t),t.children=null,t}function Pp(t){return nc(t)?t.children?t.children[0]:void 0:t}function Fu(t,n){t.shapeFlag&6&&t.component?Fu(t.component.subTree,n):t.shapeFlag&128?(t.ssContent.transition=n.clone(t.ssContent),t.ssFallback.transition=n.clone(t.ssFallback)):t.transition=n}function mm(t,n=!1,r){let o=[],a=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===ue?(f.patchFlag&128&&a++,o=o.concat(mm(f.children,n,h))):(n||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 Is=t=>!!t.type.__asyncLoader,nc=t=>t.type.__isKeepAlive;function f1(t,n){ym(t,"a",n)}function h1(t,n){ym(t,"da",n)}function ym(t,n,r=Be){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(rc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)nc(a.parent.vnode)&&d1(o,n,r,a),a=a.parent}}function d1(t,n,r,o){const a=rc(n,t,o,!0);Hf(()=>{Sf(o[n],a)},r)}function rc(t,n,r=Be,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;Vo(),zo(r);const h=In(n,r,t,f);return Wi(),Ko(),h});return o?a.unshift(u):a.push(u),u}}const Ir=t=>(n,r=Be)=>(!Zs||t==="sp")&&rc(t,(...o)=>n(...o),r),p1=Ir("bm"),ul=Ir("m"),g1=Ir("bu"),v1=Ir("u"),bm=Ir("bum"),Hf=Ir("um"),m1=Ir("sp"),y1=Ir("rtg"),b1=Ir("rtc");function w1(t,n=Be){rc("ec",t,n)}function pn(t,n){const r=en;if(r===null)return t;const o=sc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,p,g=me]=n[u];Wt(f)&&(f={mounted:f,updated:f}),f.deep&&Ii(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:p,modifiers:g})}return t}function Mi(t,n,r,o){const a=t.dirs,u=n&&n.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let p=h.dir[o];p&&(Vo(),In(p,r,8,[t.el,h,t,n]),Ko())}}const wm="components",x1="directives";function Gi(t,n){return xm(wm,t,!0,n)||t}const _1=Symbol();function Zi(t){return xm(x1,t)}function xm(t,n,r=!0,o=!1){const a=en||Be;if(a){const u=a.type;if(t===wm){const h=K1(u,!1);if(h&&(h===n||h===fr(n)||h===Ja(fr(n))))return u}const f=Op(a[t]||u[t],n)||Op(a.appContext[t],n);return!f&&o?u:f}}function Op(t,n){return t&&(t[n]||t[fr(n)]||t[Ja(fr(n))])}function lr(t,n,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]=n(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){a=new Array(t);for(let f=0;f<t;f++)a[f]=n(f+1,f,void 0,u&&u[f])}else if(xe(t))if(t[Symbol.iterator])a=Array.from(t,(f,h)=>n(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);a=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];a[h]=n(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function Kn(t,n,r={},o,a){if(en.isCE||en.parent&&Is(en.parent)&&en.parent.isCE)return Rt("slot",n==="default"?null:{name:n},o&&o());let u=t[n];u&&u._c&&(u._d=!1),ht();const f=u&&_m(u(r)),h=ce(ue,{key:r.key||f&&f.key||`_${n}`},f||(o?o():[]),f&&t._===1?64:-2);return!a&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function _m(t){return t.some(n=>Ys(n)?!(n.type===Cn||n.type===ue&&!_m(n.children)):!0)?t:null}const qu=t=>t?$m(t)?sc(t)||t.proxy:qu(t.parent):null,Ea=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=>qu(t.parent),$root:t=>qu(t.root),$emit:t=>t.emit,$options:t=>Bf(t),$forceUpdate:t=>t.f||(t.f=()=>Rf(t.update)),$nextTick:t=>t.n||(t.n=cl.bind(t.proxy)),$watch:t=>a1.bind(t)}),S1={get({_:t},n){const{ctx:r,setupState:o,data:a,props:u,accessCache:f,type:h,appContext:p}=t;let g;if(n[0]!=="$"){const S=f[n];if(S!==void 0)switch(S){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return u[n]}else{if(o!==me&&Yt(o,n))return f[n]=1,o[n];if(a!==me&&Yt(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&Yt(g,n))return f[n]=3,u[n];if(r!==me&&Yt(r,n))return f[n]=4,r[n];Hu&&(f[n]=0)}}const m=Ea[n];let b,x;if(m)return n==="$attrs"&&Pn(t,"get",n),m(t);if((b=h.__cssModules)&&(b=b[n]))return b;if(r!==me&&Yt(r,n))return f[n]=4,r[n];if(x=p.config.globalProperties,Yt(x,n))return x[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return a!==me&&Yt(a,n)?(a[n]=r,!0):o!==me&&Yt(o,n)?(o[n]=r,!0):Yt(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(u[n]=r,!0)},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:a,propsOptions:u}},f){let h;return!!r[f]||t!==me&&Yt(t,f)||n!==me&&Yt(n,f)||(h=u[0])&&Yt(h,f)||Yt(o,f)||Yt(Ea,f)||Yt(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:Yt(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};let Hu=!0;function k1(t){const n=Bf(t),r=t.proxy,o=t.ctx;Hu=!1,n.beforeCreate&&$p(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:p,inject:g,created:m,beforeMount:b,mounted:x,beforeUpdate:S,updated:M,activated:A,deactivated:L,beforeDestroy:C,beforeUnmount:E,destroyed:z,unmounted:D,render:G,renderTracked:j,renderTriggered:it,errorCaptured:Q,serverPrefetch:dt,expose:vt,inheritAttrs:kt,components:ft,directives:U,filters:I}=n;if(g&&C1(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(Hu=!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)Sm(h[W],o,r,W);if(p){const W=Wt(p)?p.call(r):p;Reflect.ownKeys(W).forEach(et=>{pa(et,W[et])})}m&&$p(m,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(p1,b),H(ul,x),H(g1,S),H(v1,M),H(f1,A),H(h1,L),H(w1,Q),H(b1,j),H(y1,it),H(bm,E),H(Hf,D),H(m1,dt),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),ft&&(t.components=ft),U&&(t.directives=U)}function C1(t,n,r=Vn,o=!1){Ht(t)&&(t=Bu(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(n,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):n[a]=f}}function $p(t,n,r){In(Ht(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function Sm(t,n,r,o){const a=o.includes(".")?pm(r,o):()=>r[o];if(Ue(t)){const u=n[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=>Sm(u,n,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):n[t.handler];Wt(u)&&Fe(a,u,t)}}function Bf(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(n);let p;return h?p=h:!a.length&&!r&&!o?p=n:(p={},a.length&&a.forEach(g=>Aa(p,g,f,!0)),Aa(p,n,f)),xe(n)&&u.set(n,p),p}function Aa(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Aa(t,u,r,!0),a&&a.forEach(f=>Aa(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=T1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const T1={data:Dp,props:$i,emits:$i,methods:$i,computed:$i,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:$i,directives:$i,watch:E1,provide:Dp,inject:L1};function Dp(t,n){return n?t?function(){return Xe(Wt(t)?t.call(this,this):t,Wt(n)?n.call(this,this):n)}:n:t}function L1(t,n){return $i(Bu(t),Bu(n))}function Bu(t){if(Ht(t)){const n={};for(let r=0;r<t.length;r++)n[t[r]]=t[r];return n}return t}function un(t,n){return t?[...new Set([].concat(t,n))]:n}function $i(t,n){return t?Xe(Xe(Object.create(null),t),n):n}function E1(t,n){if(!t)return n;if(!n)return t;const r=Xe(Object.create(null),t);for(const o in n)r[o]=un(t[o],n[o]);return r}function A1(t,n,r,o=!1){const a={},u={};Ca(u,ic,1),t.propsDefaults=Object.create(null),km(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:zx(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function M1(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=le(a),[p]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const m=t.vnode.dynamicProps;for(let b=0;b<m.length;b++){let x=m[b];if(tc(t.emitsOptions,x))continue;const S=n[x];if(p)if(Yt(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const M=fr(x);a[M]=Wu(p,h,M,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{km(t,n,a,u)&&(g=!0);let m;for(const b in h)(!n||!Yt(n,b)&&((m=Yi(b))===b||!Yt(n,m)))&&(p?r&&(r[b]!==void 0||r[m]!==void 0)&&(a[b]=Wu(p,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!n||!Yt(n,b)&&!0)&&(delete u[b],g=!0)}g&&$r(t,"set","$attrs")}function km(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(ha(p))continue;const g=n[p];let m;a&&Yt(a,m=fr(p))?!u||!u.includes(m)?r[m]=g:(h||(h={}))[m]=g:tc(t.emitsOptions,p)||(!(p in o)||g!==o[p])&&(o[p]=g,f=!0)}if(u){const p=le(r),g=h||me;for(let m=0;m<u.length;m++){const b=u[m];r[b]=Wu(a,p,b,g[b],t,!Yt(g,b))}}return f}function Wu(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=Yt(f,"default");if(h&&o===void 0){const p=f.default;if(f.type!==Function&&Wt(p)){const{propsDefaults:g}=a;r in g?o=g[r]:(zo(a),o=g[r]=p.call(null,n),Wi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Yi(r))&&(o=!0))}return o}function Cm(t,n,r=!1){const o=n.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let p=!1;if(!Wt(t)){const m=b=>{p=!0;const[x,S]=Cm(b,n,!0);Xe(f,x),S&&h.push(...S)};!r&&n.mixins.length&&n.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!u&&!p)return xe(t)&&o.set(t,To),To;if(Ht(u))for(let m=0;m<u.length;m++){const b=fr(u[m]);Rp(b)&&(f[b]=me)}else if(u)for(const m in u){const b=fr(m);if(Rp(b)){const x=u[m],S=f[b]=Ht(x)||Wt(x)?{type:x}:x;if(S){const M=Fp(Boolean,S.type),A=Fp(String,S.type);S[0]=M>-1,S[1]=A<0||M<A,(M>-1||Yt(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function Rp(t){return t[0]!=="$"}function zp(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function Ip(t,n){return zp(t)===zp(n)}function Fp(t,n){return Ht(n)?n.findIndex(r=>Ip(r,t)):Wt(n)&&Ip(n,t)?0:-1}const Tm=t=>t[0]==="_"||t==="$stable",Wf=t=>Ht(t)?t.map(Un):[Un(t)],N1=(t,n,r)=>{if(n._n)return n;const o=Zt((...a)=>Wf(n(...a)),r);return o._c=!1,o},Lm=(t,n,r)=>{const o=t._ctx;for(const a in t){if(Tm(a))continue;const u=t[a];if(Wt(u))n[a]=N1(a,u,o);else if(u!=null){const f=Wf(u);n[a]=()=>f}}},Em=(t,n)=>{const r=Wf(n);t.slots.default=()=>r},P1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),Ca(n,"_",r)):Lm(n,t.slots={})}else t.slots={},n&&Em(t,n);Ca(t.slots,ic,1)},O1=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=me;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:(Xe(a,n),!r&&h===1&&delete a._):(u=!n.$stable,Lm(n,a)),f=n}else n&&(Em(t,n),f={default:1});if(u)for(const h in a)!Tm(h)&&!(h in f)&&delete a[h]};function Am(){return{app:null,config:{isNativeTag:ex,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 $1=0;function D1(t,n){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Am(),f=new Set;let h=!1;const p=u.app={_uid:$1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:J1,get config(){return u.config},set config(g){},use(g,...m){return f.has(g)||(g&&Wt(g.install)?(f.add(g),g.install(p,...m)):Wt(g)&&(f.add(g),g(p,...m))),p},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),p},component(g,m){return m?(u.components[g]=m,p):u.components[g]},directive(g,m){return m?(u.directives[g]=m,p):u.directives[g]},mount(g,m,b){if(!h){const x=Rt(o,a);return x.appContext=u,m&&n?n(x,g):t(x,g,b),h=!0,p._container=g,g.__vue_app__=p,sc(x.component)||x.component.proxy}},unmount(){h&&(t(null,p._container),delete p._container.__vue_app__)},provide(g,m){return u.provides[g]=m,p}};return p}}function Uu(t,n,r,o,a=!1){if(Ht(t)){t.forEach((x,S)=>Uu(x,n&&(Ht(n)?n[S]:n),r,o,a));return}if(Is(o)&&!a)return;const u=o.shapeFlag&4?sc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:p}=t,g=n&&n.r,m=h.refs===me?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==p&&(Ue(g)?(m[g]=null,Yt(b,g)&&(b[g]=null)):Ie(g)&&(g.value=null)),Wt(p))ui(p,h,12,[f,m]);else{const x=Ue(p),S=Ie(p);if(x||S){const M=()=>{if(t.f){const A=x?Yt(b,p)?b[p]:m[p]:p.value;a?Ht(A)&&Sf(A,u):Ht(A)?A.includes(u)||A.push(u):x?(m[p]=[u],Yt(b,p)&&(b[p]=m[p])):(p.value=[u],t.k&&(m[t.k]=p.value))}else x?(m[p]=f,Yt(b,p)&&(b[p]=f)):S&&(p.value=f,t.k&&(m[t.k]=f))};f?(M.id=-1,xn(M,r)):M()}}}const xn=l1;function R1(t){return z1(t)}function z1(t,n){const r=lx();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:p,setText:g,setElementText:m,parentNode:b,nextSibling:x,setScopeId:S=Vn,insertStaticContent:M}=t,A=(P,F,Y,nt=null,ot=null,pt=null,lt=!1,gt=null,xt=!!F.dynamicChildren)=>{if(P===F)return;P&&!ar(P,F)&&(nt=V(P),Bt(P,ot,pt,!0),P=null),F.patchFlag===-2&&(xt=!1,F.dynamicChildren=null);const{type:at,ref:$t,shapeFlag:Nt}=F;switch(at){case Uf:L(P,F,Y,nt);break;case Cn:C(P,F,Y,nt);break;case yu:P==null&&E(F,Y,nt,lt);break;case ue:ft(P,F,Y,nt,ot,pt,lt,gt,xt);break;default:Nt&1?G(P,F,Y,nt,ot,pt,lt,gt,xt):Nt&6?U(P,F,Y,nt,ot,pt,lt,gt,xt):(Nt&64||Nt&128)&&at.process(P,F,Y,nt,ot,pt,lt,gt,xt,Ct)}$t!=null&&ot&&Uu($t,P&&P.ref,pt,F||P,!F)},L=(P,F,Y,nt)=>{if(P==null)o(F.el=h(F.children),Y,nt);else{const ot=F.el=P.el;F.children!==P.children&&g(ot,F.children)}},C=(P,F,Y,nt)=>{P==null?o(F.el=p(F.children||""),Y,nt):F.el=P.el},E=(P,F,Y,nt)=>{[P.el,P.anchor]=M(P.children,F,Y,nt,P.el,P.anchor)},z=({el:P,anchor:F},Y,nt)=>{let ot;for(;P&&P!==F;)ot=x(P),o(P,Y,nt),P=ot;o(F,Y,nt)},D=({el:P,anchor:F})=>{let Y;for(;P&&P!==F;)Y=x(P),a(P),P=Y;a(F)},G=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{lt=lt||F.type==="svg",P==null?j(F,Y,nt,ot,pt,lt,gt,xt):dt(P,F,ot,pt,lt,gt,xt)},j=(P,F,Y,nt,ot,pt,lt,gt)=>{let xt,at;const{type:$t,props:Nt,shapeFlag:Ot,transition:zt,dirs:jt}=P;if(xt=P.el=f(P.type,pt,Nt&&Nt.is,Nt),Ot&8?m(xt,P.children):Ot&16&&Q(P.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,gt),jt&&Mi(P,null,nt,"created"),Nt){for(const Qt in Nt)Qt!=="value"&&!ha(Qt)&&u(xt,Qt,null,Nt[Qt],pt,P.children,nt,ot,tt);"value"in Nt&&u(xt,"value",null,Nt.value),(at=Nt.onVnodeBeforeMount)&&ir(at,nt,P)}it(xt,P,P.scopeId,lt,nt),jt&&Mi(P,null,nt,"beforeMount");const te=(!ot||ot&&!ot.pendingBranch)&&zt&&!zt.persisted;te&&zt.beforeEnter(xt),o(xt,F,Y),((at=Nt&&Nt.onVnodeMounted)||te||jt)&&xn(()=>{at&&ir(at,nt,P),te&&zt.enter(xt),jt&&Mi(P,null,nt,"mounted")},ot)},it=(P,F,Y,nt,ot)=>{if(Y&&S(P,Y),nt)for(let pt=0;pt<nt.length;pt++)S(P,nt[pt]);if(ot){let pt=ot.subTree;if(F===pt){const lt=ot.vnode;it(P,lt,lt.scopeId,lt.slotScopeIds,ot.parent)}}},Q=(P,F,Y,nt,ot,pt,lt,gt,xt=0)=>{for(let at=xt;at<P.length;at++){const $t=P[at]=gt?ri(P[at]):Un(P[at]);A(null,$t,F,Y,nt,ot,pt,lt,gt)}},dt=(P,F,Y,nt,ot,pt,lt)=>{const gt=F.el=P.el;let{patchFlag:xt,dynamicChildren:at,dirs:$t}=F;xt|=P.patchFlag&16;const Nt=P.props||me,Ot=F.props||me;let zt;Y&&Ni(Y,!1),(zt=Ot.onVnodeBeforeUpdate)&&ir(zt,Y,F,P),$t&&Mi(F,P,Y,"beforeUpdate"),Y&&Ni(Y,!0);const jt=ot&&F.type!=="foreignObject";if(at?vt(P.dynamicChildren,at,gt,Y,nt,jt,pt):lt||et(P,F,gt,null,Y,nt,jt,pt,!1),xt>0){if(xt&16)kt(gt,F,Nt,Ot,Y,nt,ot);else if(xt&2&&Nt.class!==Ot.class&&u(gt,"class",null,Ot.class,ot),xt&4&&u(gt,"style",Nt.style,Ot.style,ot),xt&8){const te=F.dynamicProps;for(let Qt=0;Qt<te.length;Qt++){const se=te[Qt],Xt=Nt[se],mn=Ot[se];(mn!==Xt||se==="value")&&u(gt,se,Xt,mn,ot,P.children,Y,nt,tt)}}xt&1&&P.children!==F.children&&m(gt,F.children)}else!lt&&at==null&&kt(gt,F,Nt,Ot,Y,nt,ot);((zt=Ot.onVnodeUpdated)||$t)&&xn(()=>{zt&&ir(zt,Y,F,P),$t&&Mi(F,P,Y,"updated")},nt)},vt=(P,F,Y,nt,ot,pt,lt)=>{for(let gt=0;gt<F.length;gt++){const xt=P[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=(P,F,Y,nt,ot,pt,lt)=>{if(Y!==nt){if(Y!==me)for(const gt in Y)!ha(gt)&&!(gt in nt)&&u(P,gt,Y[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(ha(gt))continue;const xt=nt[gt],at=Y[gt];xt!==at&>!=="value"&&u(P,gt,at,xt,lt,F.children,ot,pt,tt)}"value"in nt&&u(P,"value",Y.value,nt.value)}},ft=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{const at=F.el=P?P.el:h(""),$t=F.anchor=P?P.anchor:h("");let{patchFlag:Nt,dynamicChildren:Ot,slotScopeIds:zt}=F;zt&&(gt=gt?gt.concat(zt):zt),P==null?(o(at,Y,nt),o($t,Y,nt),Q(F.children,Y,$t,ot,pt,lt,gt,xt)):Nt>0&&Nt&64&&Ot&&P.dynamicChildren?(vt(P.dynamicChildren,Ot,Y,ot,pt,lt,gt),(F.key!=null||ot&&F===ot.subTree)&&Mm(P,F,!0)):et(P,F,Y,$t,ot,pt,lt,gt,xt)},U=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{F.slotScopeIds=gt,P==null?F.shapeFlag&512?ot.ctx.activate(F,Y,nt,lt,xt):I(F,Y,nt,ot,pt,lt,xt):k(P,F,xt)},I=(P,F,Y,nt,ot,pt,lt)=>{const gt=P.component=U1(P,nt,ot);if(nc(P)&&(gt.ctx.renderer=Ct),j1(gt),gt.asyncDep){if(ot&&ot.registerDep(gt,H),!P.el){const xt=gt.subTree=Rt(Cn);C(null,xt,F,Y)}return}H(gt,P,F,Y,ot,pt,lt)},k=(P,F,Y)=>{const nt=F.component=P.component;if(Qx(P,F,Y))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Y);return}else nt.next=F,Gx(nt.update),nt.update();else F.el=P.el,nt.vnode=F},H=(P,F,Y,nt,ot,pt,lt)=>{const gt=()=>{if(P.isMounted){let{next:$t,bu:Nt,u:Ot,parent:zt,vnode:jt}=P,te=$t,Qt;Ni(P,!1),$t?($t.el=jt.el,W(P,$t,lt)):$t=jt,Nt&&da(Nt),(Qt=$t.props&&$t.props.onVnodeBeforeUpdate)&&ir(Qt,zt,$t,jt),Ni(P,!0);const se=vu(P),Xt=P.subTree;P.subTree=se,A(Xt,se,b(Xt.el),V(Xt),P,ot,pt),$t.el=se.el,te===null&&zf(P,se.el),Ot&&xn(Ot,ot),(Qt=$t.props&&$t.props.onVnodeUpdated)&&xn(()=>ir(Qt,zt,$t,jt),ot)}else{let $t;const{el:Nt,props:Ot}=F,{bm:zt,m:jt,parent:te}=P,Qt=Is(F);if(Ni(P,!1),zt&&da(zt),!Qt&&($t=Ot&&Ot.onVnodeBeforeMount)&&ir($t,te,F),Ni(P,!0),Nt&&Lt){const se=()=>{P.subTree=vu(P),Lt(Nt,P.subTree,P,ot,null)};Qt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&se()):se()}else{const se=P.subTree=vu(P);A(null,se,Y,nt,P,ot,pt),F.el=se.el}if(jt&&xn(jt,ot),!Qt&&($t=Ot&&Ot.onVnodeMounted)){const se=F;xn(()=>ir($t,te,se),ot)}(F.shapeFlag&256||te&&Is(te.vnode)&&te.vnode.shapeFlag&256)&&P.a&&xn(P.a,ot),P.isMounted=!0,F=Y=nt=null}},xt=P.effect=new Lf(gt,()=>Rf(at),P.scope),at=P.update=()=>xt.run();at.id=P.uid,Ni(P,!0),at()},W=(P,F,Y)=>{F.component=P;const nt=P.vnode.props;P.vnode=F,P.next=null,M1(P,F.props,nt,Y),O1(P,F.children,Y),Vo(),Ep(),Ko()},et=(P,F,Y,nt,ot,pt,lt,gt,xt=!1)=>{const at=P&&P.children,$t=P?P.shapeFlag:0,Nt=F.children,{patchFlag:Ot,shapeFlag:zt}=F;if(Ot>0){if(Ot&128){Et(at,Nt,Y,nt,ot,pt,lt,gt,xt);return}else if(Ot&256){wt(at,Nt,Y,nt,ot,pt,lt,gt,xt);return}}zt&8?($t&16&&tt(at,ot,pt),Nt!==at&&m(Y,Nt)):$t&16?zt&16?Et(at,Nt,Y,nt,ot,pt,lt,gt,xt):tt(at,ot,pt,!0):($t&8&&m(Y,""),zt&16&&Q(Nt,Y,nt,ot,pt,lt,gt,xt))},wt=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{P=P||To,F=F||To;const at=P.length,$t=F.length,Nt=Math.min(at,$t);let Ot;for(Ot=0;Ot<Nt;Ot++){const zt=F[Ot]=xt?ri(F[Ot]):Un(F[Ot]);A(P[Ot],zt,Y,null,ot,pt,lt,gt,xt)}at>$t?tt(P,ot,pt,!0,!1,Nt):Q(F,Y,nt,ot,pt,lt,gt,xt,Nt)},Et=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{let at=0;const $t=F.length;let Nt=P.length-1,Ot=$t-1;for(;at<=Nt&&at<=Ot;){const zt=P[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<=Nt&&at<=Ot;){const zt=P[Nt],jt=F[Ot]=xt?ri(F[Ot]):Un(F[Ot]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;Nt--,Ot--}if(at>Nt){if(at<=Ot){const zt=Ot+1,jt=zt<$t?F[zt].el:nt;for(;at<=Ot;)A(null,F[at]=xt?ri(F[at]):Un(F[at]),Y,jt,ot,pt,lt,gt,xt),at++}}else if(at>Ot)for(;at<=Nt;)Bt(P[at],ot,pt,!0),at++;else{const zt=at,jt=at,te=new Map;for(at=jt;at<=Ot;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 Xt=Ot-jt+1;let mn=!1,Ln=0;const qe=new Array(Xt);for(at=0;at<Xt;at++)qe[at]=0;for(at=zt;at<=Nt;at++){const be=P[at];if(se>=Xt){Bt(be,ot,pt,!0);continue}let nn;if(be.key!=null)nn=te.get(be.key);else for(Qt=jt;Qt<=Ot;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 Ji=mn?I1(qe):To;for(Qt=Ji.length-1,at=Xt-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!==Ji[Qt]?qt(nn,Y,bt,2):Qt--)}}},qt=(P,F,Y,nt,ot=null)=>{const{el:pt,type:lt,transition:gt,children:xt,shapeFlag:at}=P;if(at&6){qt(P.component.subTree,F,Y,nt);return}if(at&128){P.suspense.move(F,Y,nt);return}if(at&64){lt.move(P,F,Y,Ct);return}if(lt===ue){o(pt,F,Y);for(let Nt=0;Nt<xt.length;Nt++)qt(xt[Nt],F,Y,nt);o(P.anchor,F,Y);return}if(lt===yu){z(P,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:Nt,delayLeave:Ot,afterLeave:zt}=gt,jt=()=>o(pt,F,Y),te=()=>{Nt(pt,()=>{jt(),zt&&zt()})};Ot?Ot(pt,jt,te):te()}else o(pt,F,Y)},Bt=(P,F,Y,nt=!1,ot=!1)=>{const{type:pt,props:lt,ref:gt,children:xt,dynamicChildren:at,shapeFlag:$t,patchFlag:Nt,dirs:Ot}=P;if(gt!=null&&Uu(gt,null,Y,P,!0),$t&256){F.ctx.deactivate(P);return}const zt=$t&1&&Ot,jt=!Is(P);let te;if(jt&&(te=lt&<.onVnodeBeforeUnmount)&&ir(te,F,P),$t&6)J(P.component,Y,nt);else{if($t&128){P.suspense.unmount(Y,nt);return}zt&&Mi(P,null,F,"beforeUnmount"),$t&64?P.type.remove(P,F,Y,ot,Ct,nt):at&&(pt!==ue||Nt>0&&Nt&64)?tt(at,F,Y,!1,!0):(pt===ue&&Nt&384||!ot&&$t&16)&&tt(xt,F,Y),nt&&Gt(P)}(jt&&(te=lt&<.onVnodeUnmounted)||zt)&&xn(()=>{te&&ir(te,F,P),zt&&Mi(P,null,F,"unmounted")},Y)},Gt=P=>{const{type:F,el:Y,anchor:nt,transition:ot}=P;if(F===ue){ne(Y,nt);return}if(F===yu){D(P);return}const pt=()=>{a(Y),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if(P.shapeFlag&1&&ot&&!ot.persisted){const{leave:lt,delayLeave:gt}=ot,xt=()=>lt(Y,pt);gt?gt(P.el,pt,xt):xt()}else pt()},ne=(P,F)=>{let Y;for(;P!==F;)Y=x(P),a(P),P=Y;a(F)},J=(P,F,Y)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:gt}=P;nt&&da(nt),ot.stop(),pt&&(pt.active=!1,Bt(lt,P,F,Y)),gt&&xn(gt,F),xn(()=>{P.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},tt=(P,F,Y,nt=!1,ot=!1,pt=0)=>{for(let lt=pt;lt<P.length;lt++)Bt(P[lt],F,Y,nt,ot)},V=P=>P.shapeFlag&6?V(P.component.subTree):P.shapeFlag&128?P.suspense.next():x(P.anchor||P.el),st=(P,F,Y)=>{P==null?F._vnode&&Bt(F._vnode,null,null,!0):A(F._vnode||null,P,F,null,null,null,Y),Ep(),cm(),F._vnode=P},Ct={p:A,um:Bt,m:qt,r:Gt,mt:I,mc:Q,pc:et,pbc:vt,n:V,o:t};let de,Lt;return n&&([de,Lt]=n(Ct)),{render:st,hydrate:de,createApp:D1(st,de)}}function Ni({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Mm(t,n,r=!1){const o=t.children,a=n.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||Mm(f,h))}}function I1(t){const n=t.slice(),r=[0];let o,a,u,f,h;const p=t.length;for(o=0;o<p;o++){const g=t[o];if(g!==0){if(a=r[r.length-1],t[a]<g){n[o]=a,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(n[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=n[f];return r}const F1=t=>t.__isTeleport,ue=Symbol(void 0),Uf=Symbol(void 0),Cn=Symbol(void 0),yu=Symbol(void 0),Fs=[];let zn=null;function ht(t=!1){Fs.push(zn=t?null:[])}function Nm(){Fs.pop(),zn=Fs[Fs.length-1]||null}let Ro=1;function qp(t){Ro+=t}function Pm(t){return t.dynamicChildren=Ro>0?zn||To:null,Nm(),Ro>0&&zn&&zn.push(t),t}function Mt(t,n,r,o,a,u){return Pm(ut(t,n,r,o,a,u,!0))}function ce(t,n,r,o,a){return Pm(Rt(t,n,r,o,a,!0))}function Ys(t){return t?t.__v_isVNode===!0:!1}function ar(t,n){return t.type===n.type&&t.key===n.key}const ic="__vInternal",Om=({key:t})=>t!=null?t:null,ga=({ref:t,ref_key:n,ref_for:r})=>t!=null?Ue(t)||Ie(t)||Wt(t)?{i:en,r:t,k:n,f:!!r}:t:null;function ut(t,n=null,r=null,o=0,a=null,u=t===ue?0:1,f=!1,h=!1){const p={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&Om(n),ref:n&&ga(n),scopeId:ec,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?(jf(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Ue(r)?8:16),Ro>0&&!f&&zn&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&zn.push(p),p}const Rt=q1;function q1(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===_1)&&(t=Cn),Ys(t)){const h=pi(t,n,!0);return r&&jf(h,r),Ro>0&&!u&&zn&&(h.shapeFlag&6?zn[zn.indexOf(t)]=h:zn.push(h)),h.patchFlag|=-2,h}if(X1(t)&&(t=t.__vccOpts),n){n=H1(n);let{class:h,style:p}=n;h&&!Ue(h)&&(n.class=ge(h)),xe(p)&&(tm(p)&&!Ht(p)&&(p=Xe({},p)),n.style=kn(p))}const f=Ue(t)?1:t1(t)?128:F1(t)?64:xe(t)?4:Wt(t)?2:0;return ut(t,n,r,o,a,f,u,!0)}function H1(t){return t?tm(t)||ic in t?Xe({},t):t:null}function pi(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?hi(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Om(h),ref:n&&n.ref?r&&a?Ht(a)?a.concat(ga(n)):[a,ga(n)]:ga(n):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==ue?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pi(t.ssContent),ssFallback:t.ssFallback&&pi(t.ssFallback),el:t.el,anchor:t.anchor}}function fn(t=" ",n=0){return Rt(Uf,null,t,n)}function ye(t="",n=!1){return n?(ht(),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(Uf,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function jf(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Ht(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),jf(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(ic in n)?n._ctx=en:a===3&&en&&(en.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Wt(n)?(n={default:n,_ctx:en},r=32):(n=String(n),o&64?(r=16,n=[fn(n)]):r=8);t.children=n,t.shapeFlag|=r}function hi(...t){const n={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")n.class!==o.class&&(n.class=ge([n.class,o.class]));else if(a==="style")n.style=kn([n.style,o.style]);else if(Xa(a)){const u=n[a],f=o[a];f&&u!==f&&!(Ht(u)&&u.includes(f))&&(n[a]=u?[].concat(u,f):f)}else a!==""&&(n[a]=o[a])}return n}function ir(t,n,r,o=null){In(t,n,7,[r,o])}const B1=Am();let W1=0;function U1(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||B1,u={uid:W1++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new ax(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cm(o,a),emitsOptions:fm(o,a),emit:null,emitted:null,propsDefaults:me,inheritAttrs:o.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,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=n?n.root:u,u.emit=Kx.bind(null,u),t.ce&&t.ce(u),u}let Be=null;const oc=()=>Be||en,zo=t=>{Be=t,t.scope.on()},Wi=()=>{Be&&Be.scope.off(),Be=null};function $m(t){return t.vnode.shapeFlag&4}let Zs=!1;function j1(t,n=!1){Zs=n;const{props:r,children:o}=t.vnode,a=$m(t);A1(t,r,a,n),P1(t,o);const u=a?G1(t,n):void 0;return Zs=!1,u}function G1(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=Pf(new Proxy(t.ctx,S1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Rm(t):null;zo(t),Vo();const u=ui(o,t,0,[t.props,a]);if(Ko(),Wi(),qv(u)){if(u.then(Wi,Wi),n)return u.then(f=>{ju(t,f,n)}).catch(f=>{al(f,t,0)});t.asyncDep=u}else ju(t,u,n)}else Dm(t,n)}function ju(t,n,r){Wt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:xe(n)&&(t.setupState=im(n)),Dm(t,r)}let Hp;function Dm(t,n,r){const o=t.type;if(!t.render){if(!n&&Hp&&!o.render){const a=o.template||Bf(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:p}=o,g=Xe(Xe({isCustomElement:u,delimiters:h},f),p);o.render=Hp(a,g)}}t.render=o.render||Vn}zo(t),Vo(),k1(t),Ko(),Wi()}function V1(t){return new Proxy(t.attrs,{get(n,r){return Pn(t,"get","$attrs"),n[r]}})}function Rm(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=V1(t))},slots:t.slots,emit:t.emit,expose:n}}function sc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(im(Pf(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in Ea)return Ea[r](t)}}))}function K1(t,n=!0){return Wt(t)?t.displayName||t.name:t.name||n&&t.__name}function X1(t){return Wt(t)&&"__vccOpts"in t}const St=(t,n)=>Wx(t,n,Zs);function Y1(){return Z1().attrs}function Z1(){const t=oc();return t.setupContext||(t.setupContext=Rm(t))}function fl(t,n,r){const o=arguments.length;return o===2?xe(n)&&!Ht(n)?Ys(n)?Rt(t,null,[n]):Rt(t,n):Rt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ys(r)&&(r=[r]),Rt(t,n,r))}const J1="3.2.41",Q1="http://www.w3.org/2000/svg",zi=typeof document<"u"?document:null,Bp=zi&&zi.createElement("template"),t_={insert:(t,n,r)=>{n.insertBefore(t,r||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,r,o)=>{const a=n?zi.createElementNS(Q1,t):zi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>zi.createTextNode(t),createComment:t=>zi.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>zi.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,r,o,a,u){const f=r?r.previousSibling:n.lastChild;if(a&&(a===u||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{Bp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Bp.content;if(o){const p=h.firstChild;for(;p.firstChild;)h.appendChild(p.firstChild);h.removeChild(p)}n.insertBefore(h,r)}return[f?f.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}};function e_(t,n,r){const o=t._vtc;o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}function n_(t,n,r){const o=t.style,a=Ue(r);if(r&&!a){for(const u in r)Gu(o,u,r[u]);if(n&&!Ue(n))for(const u in n)r[u]==null&&Gu(o,u,"")}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Wp=/\s*!important$/;function Gu(t,n,r){if(Ht(r))r.forEach(o=>Gu(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=r_(t,n);Wp.test(r)?t.setProperty(Yi(o),r.replace(Wp,""),"important"):t[o]=r}}const Up=["Webkit","Moz","ms"],bu={};function r_(t,n){const r=bu[n];if(r)return r;let o=fr(n);if(o!=="filter"&&o in t)return bu[n]=o;o=Ja(o);for(let a=0;a<Up.length;a++){const u=Up[a]+o;if(u in t)return bu[n]=u}return n}const jp="http://www.w3.org/1999/xlink";function i_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(jp,n.slice(6,n.length)):t.setAttributeNS(jp,n,r);else{const u=Zw(n);r==null||u&&!zv(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function o_(t,n,r,o,a,u,f){if(n==="innerHTML"||n==="textContent"){o&&f(o,a,u),t[n]=r==null?"":r;return}if(n==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=r;const p=r==null?"":r;(t.value!==p||t.tagName==="OPTION")&&(t.value=p),r==null&&t.removeAttribute(n);return}let h=!1;if(r===""||r==null){const p=typeof t[n];p==="boolean"?r=zv(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{t[n]=r}catch{}h&&t.removeAttribute(n)}function ko(t,n,r,o){t.addEventListener(n,r,o)}function s_(t,n,r,o){t.removeEventListener(n,r,o)}function l_(t,n,r,o,a=null){const u=t._vei||(t._vei={}),f=u[n];if(o&&f)f.value=o;else{const[h,p]=a_(n);if(o){const g=u[n]=f_(o,a);ko(t,h,g,p)}else f&&(s_(t,h,f,p),u[n]=void 0)}}const Gp=/(?:Once|Passive|Capture)$/;function a_(t){let n;if(Gp.test(t)){n={};let o;for(;o=t.match(Gp);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Yi(t.slice(2)),n]}let wu=0;const c_=Promise.resolve(),u_=()=>wu||(c_.then(()=>wu=0),wu=Date.now());function f_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;In(h_(o,r.value),n,5,[o])};return r.value=t,r.attached=u_(),r}function h_(t,n){if(Ht(n)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},n.map(o=>a=>!a._stopped&&o&&o(a))}else return n}const Vp=/^on[a-z]/,d_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?e_(t,o,a):n==="style"?n_(t,r,o):Xa(n)?_f(n)||l_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):p_(t,n,o,a))?o_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),i_(t,n,o,a))};function p_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Vp.test(n)&&Wt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Vp.test(n)&&Ue(r)?!1:n in t}const ti="transition",Ms="animation",Gf=(t,{slots:n})=>fl(gm,g_(t),n);Gf.displayName="Transition";const zm={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};Gf.props=Xe({},gm.props,zm);const Pi=(t,n=[])=>{Ht(t)?t.forEach(r=>r(...n)):t&&t(...n)},Kp=t=>t?Ht(t)?t.some(n=>n.length>1):t.length>1:!1;function g_(t){const n={};for(const ft in t)ft in zm||(n[ft]=t[ft]);if(t.css===!1)return n;const{name:r="v",type:o,duration:a,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:p=u,appearActiveClass:g=f,appearToClass:m=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:x=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,M=v_(a),A=M&&M[0],L=M&&M[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:z,onLeave:D,onLeaveCancelled:G,onBeforeAppear:j=C,onAppear:it=E,onAppearCancelled:Q=z}=n,dt=(ft,U,I)=>{Oi(ft,U?m:h),Oi(ft,U?g:f),I&&I()},vt=(ft,U)=>{ft._isLeaving=!1,Oi(ft,b),Oi(ft,S),Oi(ft,x),U&&U()},kt=ft=>(U,I)=>{const k=ft?it:E,H=()=>dt(U,ft,I);Pi(k,[U,H]),Xp(()=>{Oi(U,ft?p:u),ei(U,ft?m:h),Kp(k)||Yp(U,o,A,H)})};return Xe(n,{onBeforeEnter(ft){Pi(C,[ft]),ei(ft,u),ei(ft,f)},onBeforeAppear(ft){Pi(j,[ft]),ei(ft,p),ei(ft,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(ft,U){ft._isLeaving=!0;const I=()=>vt(ft,U);ei(ft,b),b_(),ei(ft,x),Xp(()=>{!ft._isLeaving||(Oi(ft,b),ei(ft,S),Kp(D)||Yp(ft,o,L,I))}),Pi(D,[ft,I])},onEnterCancelled(ft){dt(ft,!1),Pi(z,[ft])},onAppearCancelled(ft){dt(ft,!0),Pi(Q,[ft])},onLeaveCancelled(ft){vt(ft),Pi(G,[ft])}})}function v_(t){if(t==null)return null;if(xe(t))return[xu(t.enter),xu(t.leave)];{const n=xu(t);return[n,n]}}function xu(t){return js(t)}function ei(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(n)}function Oi(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const{_vtc:r}=t;r&&(r.delete(n),r.size||(t._vtc=void 0))}function Xp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let m_=0;function Yp(t,n,r,o){const a=t._endId=++m_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=y_(t,n);if(!f)return o();const g=f+"end";let m=0;const b=()=>{t.removeEventListener(g,x),u()},x=S=>{S.target===t&&++m>=p&&b()};setTimeout(()=>{m<p&&b()},h+1),t.addEventListener(g,x)}function y_(t,n){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),a=o(ti+"Delay"),u=o(ti+"Duration"),f=Zp(a,u),h=o(Ms+"Delay"),p=o(Ms+"Duration"),g=Zp(h,p);let m=null,b=0,x=0;n===ti?f>0&&(m=ti,b=f,x=u.length):n===Ms?g>0&&(m=Ms,b=g,x=p.length):(b=Math.max(f,g),m=b>0?f>g?ti:Ms:null,x=m?m===ti?u.length:p.length:0);const S=m===ti&&/\b(transform|all)(,|$)/.test(r[ti+"Property"]);return{type:m,timeout:b,propCount:x,hasTransform:S}}function Zp(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Jp(r)+Jp(t[o])))}function Jp(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function b_(){return document.body.offsetHeight}const Qp=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ht(n)?r=>da(n,r):n};function w_(t){t.target.composing=!0}function tg(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const x_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=Qp(a);const u=o||a.props&&a.props.type==="number";ko(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=js(h)),t._assign(h)}),r&&ko(t,"change",()=>{t.value=t.value.trim()}),n||(ko(t,"compositionstart",w_),ko(t,"compositionend",tg),ko(t,"change",tg))},mounted(t,{value:n}){t.value=n==null?"":n},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=Qp(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&js(t.value)===n))return;const f=n==null?"":n;t.value!==f&&(t.value=f)}},__={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vu=(t,n)=>r=>{if(!("key"in r))return;const o=Yi(r.key);if(n.some(a=>a===o||__[a]===o))return t(r)},Im={beforeMount(t,{value:n},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Ns(t,n)},mounted(t,{value:n},{transition:r}){r&&n&&r.enter(t)},updated(t,{value:n,oldValue:r},{transition:o}){!n!=!r&&(o?n?(o.beforeEnter(t),Ns(t,!0),o.enter(t)):o.leave(t,()=>{Ns(t,!1)}):Ns(t,n))},beforeUnmount(t,{value:n}){Ns(t,n)}};function Ns(t,n){t.style.display=n?t._vod:"none"}const S_=Xe({patchProp:d_},t_);let eg;function k_(){return eg||(eg=R1(S_))}const Fm=(...t)=>{const n=k_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=C_(o);if(!a)return;const u=n._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},n};function C_(t){return Ue(t)?document.querySelector(t):t}const Xo=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},T_={};function L_(t,n){const r=Gi("RouterView");return ht(),ce(r)}const E_=Xo(T_,[["render",L_]]);/*!
|
|
2
|
+
* vue-router v4.1.6
|
|
3
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const Co=typeof window<"u";function A_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const he=Object.assign;function _u(t,n){const r={};for(const o in n){const a=n[o];r[o]=Xn(a)?a.map(t):t(a)}return r}const qs=()=>{},Xn=Array.isArray,M_=/\/$/,N_=t=>t.replace(M_,"");function Su(t,n,r="/"){let o,a={},u="",f="";const h=n.indexOf("#");let p=n.indexOf("?");return h<p&&h>=0&&(p=-1),p>-1&&(o=n.slice(0,p),u=n.slice(p+1,h>-1?h:n.length),a=t(u)),h>-1&&(o=o||n.slice(0,h),f=n.slice(h,n.length)),o=D_(o!=null?o:n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function P_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function ng(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function O_(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&Io(n.matched[o],r.matched[a])&&qm(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function Io(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function qm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!$_(t[r],n[r]))return!1;return!0}function $_(t,n){return Xn(t)?rg(t,n):Xn(n)?rg(n,t):t===n}function rg(t,n){return Xn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function D_(t,n){if(t.startsWith("/"))return t;if(!t)return n;const r=n.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 Js;(function(t){t.pop="pop",t.push="push"})(Js||(Js={}));var Hs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Hs||(Hs={}));function R_(t){if(!t)if(Co){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),N_(t)}const z_=/^[^#]+#/;function I_(t,n){return t.replace(z_,"#")+n}function F_(t,n){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:n.behavior,left:o.left-r.left-(n.left||0),top:o.top-r.top-(n.top||0)}}const lc=()=>({left:window.pageXOffset,top:window.pageYOffset});function q_(t){let n;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;n=F_(a,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function ig(t,n){return(history.state?history.state.position-n:-1)+t}const Ku=new Map;function H_(t,n){Ku.set(t,n)}function B_(t){const n=Ku.get(t);return Ku.delete(t),n}let W_=()=>location.protocol+"//"+location.host;function Hm(t,n){const{pathname:r,search:o,hash:a}=n,u=t.indexOf("#");if(u>-1){let h=a.includes(t.slice(u))?t.slice(u).length:1,p=a.slice(h);return p[0]!=="/"&&(p="/"+p),ng(p,"")}return ng(r,t)+o+a}function U_(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=Hm(t,location),M=r.value,A=n.value;let L=0;if(x){if(r.value=S,n.value=x,f&&f===M){f=null;return}L=A?x.position-A.position:0}else o(S);a.forEach(C=>{C(r.value,M,{delta:L,type:Js.pop,direction:L?L>0?Hs.forward:Hs.back:Hs.unknown})})};function p(){f=r.value}function g(x){a.push(x);const S=()=>{const M=a.indexOf(x);M>-1&&a.splice(M,1)};return u.push(S),S}function m(){const{history:x}=window;!x.state||x.replaceState(he({},x.state,{scroll:lc()}),"")}function b(){for(const x of u)x();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",m),{pauseListeners:p,listen:g,destroy:b}}function og(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?lc():null}}function j_(t){const{history:n,location:r}=window,o={value:Hm(t,r)},a={value:n.state};a.value||u(o.value,{back:null,current:o.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function u(p,g,m){const b=t.indexOf("#"),x=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+p:W_()+t+p;try{n[m?"replaceState":"pushState"](g,"",x),a.value=g}catch(S){console.error(S),r[m?"replace":"assign"](x)}}function f(p,g){const m=he({},n.state,og(a.value.back,p,a.value.forward,!0),g,{position:a.value.position});u(p,m,!0),o.value=p}function h(p,g){const m=he({},a.value,n.state,{forward:p,scroll:lc()});u(m.current,m,!0);const b=he({},og(o.value,p,null),{position:m.position+1},g);u(p,b,!1),o.value=p}return{location:o,state:a,push:h,replace:f}}function G_(t){t=R_(t);const n=j_(t),r=U_(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=he({location:"",base:t,go:o,createHref:I_.bind(null,t)},n,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n.state.value}),a}function V_(t){return typeof t=="string"||t&&typeof t=="object"}function Bm(t){return typeof t=="string"||typeof t=="symbol"}const ni={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Wm=Symbol("");var sg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(sg||(sg={}));function Fo(t,n){return he(new Error,{type:t,[Wm]:!0},n)}function Tr(t,n){return t instanceof Error&&Wm in t&&(n==null||!!(t.type&n))}const lg="[^/]+?",K_={sensitive:!1,strict:!1,start:!0,end:!0},X_=/[.+*?^${}()[\]/\\]/g;function Y_(t,n){const r=he({},K_,n),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const m=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(X_,"\\$&"),S+=40;else if(x.type===1){const{value:M,repeatable:A,optional:L,regexp:C}=x;u.push({name:M,repeatable:A,optional:L});const E=C||lg;if(E!==lg){S+=10;try{new RegExp(`(${E})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${M}" (${E}): `+D.message)}}let z=A?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;b||(z=L&&g.length<2?`(?:/${z})`:"/"+z),L&&(z+="?"),a+=z,S+=20,L&&(S+=-8),A&&(S+=-20),E===".*"&&(S+=-50)}m.push(S)}o.push(m)}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 m=g.match(f),b={};if(!m)return null;for(let x=1;x<m.length;x++){const S=m[x]||"",M=u[x-1];b[M.name]=S&&M.repeatable?S.split("/"):S}return b}function p(g){let m="",b=!1;for(const x of t){(!b||!m.endsWith("/"))&&(m+="/"),b=!1;for(const S of x)if(S.type===0)m+=S.value;else if(S.type===1){const{value:M,repeatable:A,optional:L}=S,C=M in g?g[M]:"";if(Xn(C)&&!A)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const E=Xn(C)?C.join("/"):C;if(!E)if(L)x.length<2&&(m.endsWith("/")?m=m.slice(0,-1):b=!0);else throw new Error(`Missing required param "${M}"`);m+=E}}return m||"/"}return{re:f,score:o,keys:u,parse:h,stringify:p}}function Z_(t,n){let r=0;for(;r<t.length&&r<n.length;){const o=n[r]-t[r];if(o)return o;r++}return t.length<n.length?t.length===1&&t[0]===40+40?-1:1:t.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function J_(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=Z_(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(ag(o))return 1;if(ag(a))return-1}return a.length-o.length}function ag(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const Q_={type:0,value:""},tS=/[a-zA-Z0-9_]/;function eS(t){if(!t)return[[]];if(t==="/")return[[Q_]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,p,g="",m="";function b(){!g||(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(p==="*"||p==="+")&&n(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:m,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):n("Invalid state to consume buffer"),g="")}function x(){g+=p}for(;h<t.length;){if(p=t[h++],p==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:p==="/"?(g&&b(),f()):p===":"?(b(),r=1):x();break;case 4:x(),r=o;break;case 1:p==="("?r=2:tS.test(p)?x():(b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--);break;case 2:p===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+p:r=3:m+=p;break;case 3:b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--,m="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function nS(t,n,r){const o=Y_(eS(t.path),r),a=he(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function rS(t,n){const r=[],o=new Map;n=fg({strict:!1,end:!0,sensitive:!1},n);function a(m){return o.get(m)}function u(m,b,x){const S=!x,M=iS(m);M.aliasOf=x&&x.record;const A=fg(n,m),L=[M];if("alias"in m){const z=typeof m.alias=="string"?[m.alias]:m.alias;for(const D of z)L.push(he({},M,{components:x?x.record.components:M.components,path:D,aliasOf:x?x.record:M}))}let C,E;for(const z of L){const{path:D}=z;if(b&&D[0]!=="/"){const G=b.record.path,j=G[G.length-1]==="/"?"":"/";z.path=b.record.path+(D&&j+D)}if(C=nS(z,b,A),x?x.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),S&&m.name&&!ug(C)&&f(m.name)),M.children){const G=M.children;for(let j=0;j<G.length;j++)u(G[j],C,x&&x.children[j])}x=x||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&p(C)}return E?()=>{f(E)}:qs}function f(m){if(Bm(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function h(){return r}function p(m){let b=0;for(;b<r.length&&J_(m,r[b])>=0&&(m.record.path!==r[b].record.path||!Um(m,r[b]));)b++;r.splice(b,0,m),m.record.name&&!ug(m)&&o.set(m.record.name,m)}function g(m,b){let x,S={},M,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Fo(1,{location:m});A=x.record.name,S=he(cg(b.params,x.keys.filter(E=>!E.optional).map(E=>E.name)),m.params&&cg(m.params,x.keys.map(E=>E.name))),M=x.stringify(S)}else if("path"in m)M=m.path,x=r.find(E=>E.re.test(M)),x&&(S=x.parse(M),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(E=>E.re.test(b.path)),!x)throw Fo(1,{location:m,currentLocation:b});A=x.record.name,S=he({},b.params,m.params),M=x.stringify(S)}const L=[];let C=x;for(;C;)L.unshift(C.record),C=C.parent;return{name:A,path:M,params:S,matched:L,meta:sS(L)}}return t.forEach(m=>u(m)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function cg(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function iS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:oS(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 oS(t){const n={},r=t.props||!1;if("component"in t)n.default=r;else for(const o in t.components)n[o]=typeof r=="boolean"?r:r[o];return n}function ug(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function sS(t){return t.reduce((n,r)=>he(n,r.meta),{})}function fg(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function Um(t,n){return n.children.some(r=>r===t||Um(t,r))}const jm=/#/g,lS=/&/g,aS=/\//g,cS=/=/g,uS=/\?/g,Gm=/\+/g,fS=/%5B/g,hS=/%5D/g,Vm=/%5E/g,dS=/%60/g,Km=/%7B/g,pS=/%7C/g,Xm=/%7D/g,gS=/%20/g;function Vf(t){return encodeURI(""+t).replace(pS,"|").replace(fS,"[").replace(hS,"]")}function vS(t){return Vf(t).replace(Km,"{").replace(Xm,"}").replace(Vm,"^")}function Xu(t){return Vf(t).replace(Gm,"%2B").replace(gS,"+").replace(jm,"%23").replace(lS,"%26").replace(dS,"`").replace(Km,"{").replace(Xm,"}").replace(Vm,"^")}function mS(t){return Xu(t).replace(cS,"%3D")}function yS(t){return Vf(t).replace(jm,"%23").replace(uS,"%3F")}function bS(t){return t==null?"":yS(t).replace(aS,"%2F")}function Ma(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function wS(t){const n={};if(t===""||t==="?")return n;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<o.length;++a){const u=o[a].replace(Gm," "),f=u.indexOf("="),h=Ma(f<0?u:u.slice(0,f)),p=f<0?null:Ma(u.slice(f+1));if(h in n){let g=n[h];Xn(g)||(g=n[h]=[g]),g.push(p)}else n[h]=p}return n}function hg(t){let n="";for(let r in t){const o=t[r];if(r=mS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(Xn(o)?o.map(u=>u&&Xu(u)):[o&&Xu(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function xS(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=Xn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const _S=Symbol(""),dg=Symbol(""),Kf=Symbol(""),Ym=Symbol(""),Yu=Symbol("");function Ps(){let t=[];function n(o){return t.push(o),()=>{const a=t.indexOf(o);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:n,list:()=>t,reset:r}}function ii(t,n,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=b=>{b===!1?h(Fo(4,{from:r,to:n})):b instanceof Error?h(b):V_(b)?h(Fo(2,{from:n,to:b})):(u&&o.enterCallbacks[a]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[a],n,r,p);let m=Promise.resolve(g);t.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function ku(t,n,r,o){const a=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(n!=="beforeRouteEnter"&&!u.instances[f]))if(SS(h)){const g=(h.__vccOpts||h)[n];g&&a.push(ii(g,r,o,u,f))}else{let p=h();a.push(()=>p.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const m=A_(g)?g.default:g;u.components[f]=m;const x=(m.__vccOpts||m)[n];return x&&ii(x,r,o,u,f)()}))}}return a}function SS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function pg(t){const n=fi(Kf),r=fi(Ym),o=St(()=>n.resolve(Z(t.to))),a=St(()=>{const{matched:p}=o.value,{length:g}=p,m=p[g-1],b=r.matched;if(!m||!b.length)return-1;const x=b.findIndex(Io.bind(null,m));if(x>-1)return x;const S=gg(p[g-2]);return g>1&&gg(m)===S&&b[b.length-1].path!==S?b.findIndex(Io.bind(null,p[g-2])):x}),u=St(()=>a.value>-1&&LS(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&qm(r.params,o.value.params));function h(p={}){return TS(p)?n[Z(t.replace)?"replace":"push"](Z(t.to)).catch(qs):Promise.resolve()}return{route:o,href:St(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const kS=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:pg,setup(t,{slots:n}){const r=hr(pg(t)),{options:o}=fi(Kf),a=St(()=>({[vg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[vg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:fl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),CS=kS;function TS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function LS(t,n){for(const r in n){const o=n[r],a=t[r];if(typeof o=="string"){if(o!==a)return!1}else if(!Xn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function gg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const vg=(t,n,r)=>t!=null?t:n!=null?n:r,ES=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=fi(Yu),a=St(()=>t.route||o.value),u=fi(dg,0),f=St(()=>{let g=Z(u);const{matched:m}=a.value;let b;for(;(b=m[g])&&!b.components;)g++;return g}),h=St(()=>a.value.matched[f.value]);pa(dg,St(()=>f.value+1)),pa(_S,h),pa(Yu,a);const p=Kt();return Fe(()=>[p.value,h.value,t.name],([g,m,b],[x,S,M])=>{m&&(m.instances[b]=g,S&&S!==m&&g&&g===x&&(m.leaveGuards.size||(m.leaveGuards=S.leaveGuards),m.updateGuards.size||(m.updateGuards=S.updateGuards))),g&&m&&(!S||!Io(m,S)||!x)&&(m.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,m=t.name,b=h.value,x=b&&b.components[m];if(!x)return mg(r.default,{Component:x,route:g});const S=b.props[m],M=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=fl(x,he({},M,n,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(b.instances[m]=null)},ref:p}));return mg(r.default,{Component:L,route:g})||L}}});function mg(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const AS=ES;function MS(t){const n=rS(t.routes,t),r=t.parseQuery||wS,o=t.stringifyQuery||hg,a=t.history,u=Ps(),f=Ps(),h=Ps(),p=ll(ni);let g=ni;Co&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=_u.bind(null,J=>""+J),b=_u.bind(null,bS),x=_u.bind(null,Ma);function S(J,tt){let V,st;return Bm(J)?(V=n.getRecordMatcher(J),st=tt):st=J,n.addRoute(st,V)}function M(J){const tt=n.getRecordMatcher(J);tt&&n.removeRoute(tt)}function A(){return n.getRoutes().map(J=>J.record)}function L(J){return!!n.getRecordMatcher(J)}function C(J,tt){if(tt=he({},tt||p.value),typeof J=="string"){const P=Su(r,J,tt.path),F=n.resolve({path:P.path},tt),Y=a.createHref(P.fullPath);return he(P,F,{params:x(F.params),hash:Ma(P.hash),redirectedFrom:void 0,href:Y})}let V;if("path"in J)V=he({},J,{path:Su(r,J.path,tt.path).path});else{const P=he({},J.params);for(const F in P)P[F]==null&&delete P[F];V=he({},J,{params:b(J.params)}),tt.params=b(tt.params)}const st=n.resolve(V,tt),Ct=J.hash||"";st.params=m(x(st.params));const de=P_(o,he({},J,{hash:vS(Ct),path:st.path})),Lt=a.createHref(de);return he({fullPath:de,hash:Ct,query:o===hg?xS(J.query):J.query||{}},st,{redirectedFrom:void 0,href:Lt})}function E(J){return typeof J=="string"?Su(r,J,p.value.path):he({},J)}function z(J,tt){if(g!==J)return Fo(8,{from:tt,to:J})}function D(J){return it(J)}function G(J){return D(he(E(J),{replace:!0}))}function j(J){const tt=J.matched[J.matched.length-1];if(tt&&tt.redirect){const{redirect:V}=tt;let st=typeof V=="function"?V(J):V;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=E(st):{path:st},st.params={}),he({query:J.query,hash:J.hash,params:"path"in st?{}:J.params},st)}}function it(J,tt){const V=g=C(J),st=p.value,Ct=J.state,de=J.force,Lt=J.replace===!0,P=j(V);if(P)return it(he(E(P),{state:typeof P=="object"?he({},Ct,P.state):Ct,force:de,replace:Lt}),tt||V);const F=V;F.redirectedFrom=tt;let Y;return!de&&O_(o,st,V)&&(Y=Fo(16,{to:F,from:st}),Et(st,st,!0,!1)),(Y?Promise.resolve(Y):dt(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 it(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 Q(J,tt){const V=z(J,tt);return V?Promise.reject(V):Promise.resolve()}function dt(J,tt){let V;const[st,Ct,de]=NS(J,tt);V=ku(st.reverse(),"beforeRouteLeave",J,tt);for(const P of st)P.leaveGuards.forEach(F=>{V.push(ii(F,J,tt))});const Lt=Q.bind(null,J,tt);return V.push(Lt),_o(V).then(()=>{V=[];for(const P of u.list())V.push(ii(P,J,tt));return V.push(Lt),_o(V)}).then(()=>{V=ku(Ct,"beforeRouteUpdate",J,tt);for(const P of Ct)P.updateGuards.forEach(F=>{V.push(ii(F,J,tt))});return V.push(Lt),_o(V)}).then(()=>{V=[];for(const P of J.matched)if(P.beforeEnter&&!tt.matched.includes(P))if(Xn(P.beforeEnter))for(const F of P.beforeEnter)V.push(ii(F,J,tt));else V.push(ii(P.beforeEnter,J,tt));return V.push(Lt),_o(V)}).then(()=>(J.matched.forEach(P=>P.enterCallbacks={}),V=ku(de,"beforeRouteEnter",J,tt),V.push(Lt),_o(V))).then(()=>{V=[];for(const P of f.list())V.push(ii(P,J,tt));return V.push(Lt),_o(V)}).catch(P=>Tr(P,8)?P:Promise.reject(P))}function vt(J,tt,V){for(const st of h.list())st(J,tt,V)}function kt(J,tt,V,st,Ct){const de=z(J,tt);if(de)return de;const Lt=tt===ni,P=Co?history.state:{};V&&(st||Lt?a.replace(J.fullPath,he({scroll:Lt&&P&&P.scroll},Ct)):a.push(J.fullPath,Ct)),p.value=J,Et(J,tt,V,Lt),wt()}let ft;function U(){ft||(ft=a.listen((J,tt,V)=>{if(!ne.listening)return;const st=C(J),Ct=j(st);if(Ct){it(he(Ct,{replace:!0}),st).catch(qs);return}g=st;const de=p.value;Co&&H_(ig(de.fullPath,V.delta),lc()),dt(st,de).catch(Lt=>Tr(Lt,12)?Lt:Tr(Lt,2)?(it(Lt.to,st).then(P=>{Tr(P,20)&&!V.delta&&V.type===Js.pop&&a.go(-1,!1)}).catch(qs),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===Js.pop&&Tr(Lt,20)&&a.go(-1,!1)),vt(st,de,Lt)}).catch(qs)}))}let I=Ps(),k=Ps(),H;function W(J,tt,V){wt(J);const st=k.list();return st.length?st.forEach(Ct=>Ct(J,tt,V)):console.error(J),Promise.reject(J)}function et(){return H&&p.value!==ni?Promise.resolve():new Promise((J,tt)=>{I.add([J,tt])})}function wt(J){return H||(H=!J,U(),I.list().forEach(([tt,V])=>J?V(J):tt()),I.reset()),J}function Et(J,tt,V,st){const{scrollBehavior:Ct}=t;if(!Co||!Ct)return Promise.resolve();const de=!V&&B_(ig(J.fullPath,0))||(st||!V)&&history.state&&history.state.scroll||null;return cl().then(()=>Ct(J,tt,de)).then(Lt=>Lt&&q_(Lt)).catch(Lt=>W(Lt,J,tt))}const qt=J=>a.go(J);let Bt;const Gt=new Set,ne={currentRoute:p,listening:!0,addRoute:S,removeRoute:M,hasRoute:L,getRoutes:A,resolve:C,options:t,push:D,replace:G,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:k.add,isReady:et,install(J){const tt=this;J.component("RouterLink",CS),J.component("RouterView",AS),J.config.globalProperties.$router=tt,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(p)}),Co&&!Bt&&p.value===ni&&(Bt=!0,D(a.location).catch(Ct=>{}));const V={};for(const Ct in ni)V[Ct]=St(()=>p.value[Ct]);J.provide(Kf,tt),J.provide(Ym,hr(V)),J.provide(Yu,p);const st=J.unmount;Gt.add(J),J.unmount=function(){Gt.delete(J),Gt.size<1&&(g=ni,ft&&ft(),ft=null,p.value=ni,Bt=!1,H=!1),st()}}};return ne}function _o(t){return t.reduce((n,r)=>n.then(()=>r()),Promise.resolve())}function NS(t,n){const r=[],o=[],a=[],u=Math.max(n.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=n.matched[f];h&&(t.matched.find(g=>Io(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>Io(g,p))||a.push(p))}return[r,o,a]}function Fr(t){return t.split("-")[0]}function No(t){return t.split("-")[1]}function hl(t){return["top","bottom"].includes(Fr(t))?"x":"y"}function Xf(t){return t==="y"?"height":"width"}function yg(t){let{reference:n,floating:r,placement:o}=t;const a=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;let f;switch(Fr(o)){case"top":f={x:a,y:n.y-r.height};break;case"bottom":f={x:a,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-r.width,y:u};break;default:f={x:n.x,y:n.y}}const h=hl(o),p=Xf(h);switch(No(o)){case"start":f[h]=f[h]-(n[p]/2-r[p]/2);break;case"end":f[h]=f[h]+(n[p]/2-r[p]/2);break}return f}const PS=async(t,n,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:g}=yg({...h,placement:o}),m=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:M}=u[x],{x:A,y:L,data:C,reset:E}=await M({x:p,y:g,initialPlacement:o,placement:m,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:n}});if(p=A!=null?A:p,g=L!=null?L:g,b={...b,[S]:C!=null?C:{}},E){typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(h=E.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:a}):E.rects),{x:p,y:g}=yg({...h,placement:m})),x=-1;continue}}return{x:p,y:g,placement:m,strategy:a,middlewareData:b}};function OS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zm(t){return typeof t!="number"?OS(t):{top:t,right:t,bottom:t,left:t}}function Zu(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function ac(t,n){n===void 0&&(n={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:p="clippingParents",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=n,S=Zm(x),A=f[b?m==="floating"?"reference":"floating":m],L=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:p,rootBoundary:g}),C=Zu(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:L.top-C.top+S.top,bottom:C.bottom-L.bottom+S.bottom,left:L.left-C.left+S.left,right:C.right-L.right+S.right}}const $S=Math.min,Di=Math.max;function Ju(t,n,r){return Di(t,$S(n,r))}const DS=t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:o=0}=t!=null?t:{},{x:a,y:u,placement:f,rects:h,platform:p}=n;if(r==null)return{};const g=Zm(o),m={x:a,y:u},b=Fr(f),x=hl(b),S=Xf(x),M=await p.getDimensions({element:r}),A=x==="y"?"top":"left",L=x==="y"?"bottom":"right",C=h.reference[S]+h.reference[x]-m[x]-h.floating[S],E=m[x]-h.reference[x],z=await p.getOffsetParent({element:r}),D=z?x==="y"?z.clientHeight||0:z.clientWidth||0:0,G=C/2-E/2,j=g[A],it=D-M[S]-g[L],Q=D/2-M[S]/2+G,dt=Ju(j,Q,it);return{data:{[x]:dt,centerOffset:Q-dt}}}}),RS={left:"right",right:"left",bottom:"top",top:"bottom"};function Na(t){return t.replace(/left|right|bottom|top/g,n=>RS[n])}function Jm(t,n){const r=No(t)==="start",o=hl(t),a=Xf(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Na(u)),{main:u,cross:Na(u)}}const zS={start:"end",end:"start"};function Qu(t){return t.replace(/start|end/g,n=>zS[n])}const IS=["top","right","bottom","left"],FS=IS.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function qS(t,n,r){return(t?[...r.filter(a=>No(a)===t),...r.filter(a=>No(a)!==t)]:r.filter(a=>Fr(a)===a)).filter(a=>t?No(a)===t||(n?Qu(a)!==a:!1):!0)}const HS=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var r,o,a,u,f,h;const{x:p,y:g,rects:m,middlewareData:b,placement:x}=n,{alignment:S=null,allowedPlacements:M=FS,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const C=qS(S,A,M),E=await ac(n,L),z=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,D=C[z],{main:G,cross:j}=Jm(D,m);if(x!==D)return{x:p,y:g,reset:{placement:C[0]}};const it=[E[Fr(D)],E[G],E[j]],Q=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:D,overflows:it}],dt=C[z+1];if(dt)return{data:{index:z+1,overflows:Q},reset:{placement:dt}};const vt=Q.slice().sort((ft,U)=>ft.overflows[0]-U.overflows[0]),kt=(h=vt.find(ft=>{let{overflows:U}=ft;return U.every(I=>I<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt!=null?kt:vt[0].placement}}}}};function BS(t){const n=Na(t);return[Qu(t),n,Qu(n)]}const WS=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:a,middlewareData:u,rects:f,initialPlacement:h}=n;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",flipAlignment:x=!0,...S}=t,M=Fr(a),L=m||(M===h||!x?[Na(h)]:BS(h)),C=[h,...L],E=await ac(n,S),z=[];let D=((o=u.flip)==null?void 0:o.overflows)||[];if(p&&z.push(E[M]),g){const{main:Q,cross:dt}=Jm(a,f);z.push(E[Q],E[dt])}if(D=[...D,{placement:a,overflows:z}],!z.every(Q=>Q<=0)){var G,j;const Q=((G=(j=u.flip)==null?void 0:j.index)!=null?G:0)+1,dt=C[Q];if(dt)return{data:{index:Q,overflows:D},reset:{placement:dt}};let vt="bottom";switch(b){case"bestFit":{var it;const kt=(it=D.slice().sort((ft,U)=>ft.overflows.filter(I=>I>0).reduce((I,k)=>I+k,0)-U.overflows.filter(I=>I>0).reduce((I,k)=>I+k,0))[0])==null?void 0:it.placement;kt&&(vt=kt);break}case"initialPlacement":vt=h;break}return{data:{skip:!0},reset:{placement:vt}}}return{}}}};function US(t){let{placement:n,rects:r,value:o}=t;const a=Fr(n),u=["left","top"].includes(a)?-1:1,f=typeof o=="function"?o({...r,placement:n}):o,{mainAxis:h,crossAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return hl(a)==="x"?{x:p,y:h*u}:{x:h*u,y:p}}const jS=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){const{x:r,y:o,placement:a,rects:u}=n,f=US({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function GS(t){return t==="x"?"y":"x"}const VS=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:a}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:C,y:E}=L;return{x:C,y:E}}},...p}=t,g={x:r,y:o},m=await ac(n,p),b=hl(Fr(a)),x=GS(b);let S=g[b],M=g[x];if(u){const L=b==="y"?"top":"left",C=b==="y"?"bottom":"right",E=S+m[L],z=S-m[C];S=Ju(E,S,z)}if(f){const L=x==="y"?"top":"left",C=x==="y"?"bottom":"right",E=M+m[L],z=M-m[C];M=Ju(E,M,z)}const A=h.fn({...n,[b]:S,[x]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},KS=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r;const{placement:o,rects:a,middlewareData:u}=n,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const p=await ac(n,h),g=Fr(o),m=No(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=m?"left":"right"):(x=g,b=m?"top":"bottom");const S=Di(p.left,0),M=Di(p.right,0),A=Di(p.top,0),L=Di(p.bottom,0),C={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Di(p.top,p.bottom)):p[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||M!==0?S+M:Di(p.left,p.right)):p[x])};return f==null||f({...C,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Yf(t){return(t==null?void 0:t.toString())==="[object Window]"}function vi(t){if(t==null)return window;if(!Yf(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function cc(t){return vi(t).getComputedStyle(t)}function Dr(t){return Yf(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rr(t){return t instanceof vi(t).HTMLElement}function Pa(t){return t instanceof vi(t).Element}function XS(t){return t instanceof vi(t).Node}function Qm(t){const n=vi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function uc(t){const{overflow:n,overflowX:r,overflowY:o}=cc(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function YS(t){return["table","td","th"].includes(Dr(t))}function t0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=cc(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||n&&r.willChange==="filter"||n&&(r.filter?r.filter!=="none":!1)}const bg=Math.min,Bs=Math.max,Oa=Math.round;function qo(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Rr(t)&&(o=t.offsetWidth>0&&Oa(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Oa(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((XS(t)?t.ownerDocument:t.document)||window.document).documentElement}function fc(t){return Yf(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function e0(t){return qo(mi(t)).left+fc(t).scrollLeft}function ZS(t){const n=qo(t);return Oa(n.width)!==t.offsetWidth||Oa(n.height)!==t.offsetHeight}function JS(t,n,r){const o=Rr(n),a=mi(n),u=qo(t,o&&ZS(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Dr(n)!=="body"||uc(a))&&(f=fc(n)),Rr(n)){const p=qo(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=e0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function hc(t){return Dr(t)==="html"?t:t.assignedSlot||t.parentNode||(Qm(t)?t.host:null)||mi(t)}function wg(t){return!Rr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function QS(t){let n=hc(t);for(;Rr(n)&&!["html","body"].includes(Dr(n));){if(t0(n))return n;n=n.parentNode}return null}function tf(t){const n=vi(t);let r=wg(t);for(;r&&YS(r)&&getComputedStyle(r).position==="static";)r=wg(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&getComputedStyle(r).position==="static"&&!t0(r))?n:r||QS(t)||n}function xg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function tk(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Rr(r),u=mi(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Dr(r)!=="body"||uc(u))&&(f=fc(r)),Rr(r))){const p=qo(r,!0);h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{...n,x:n.x-f.scrollLeft+h.x,y:n.y-f.scrollTop+h.y}}function ek(t){const n=vi(t),r=mi(t),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(a=o.width,u=o.height,Math.abs(n.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:a,height:u,x:f,y:h}}function nk(t){var n;const r=mi(t),o=fc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=Bs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Bs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+e0(t);const p=-o.scrollTop;return cc(a||r).direction==="rtl"&&(h+=Bs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function n0(t){return["html","body","#document"].includes(Dr(t))?t.ownerDocument.body:Rr(t)&&uc(t)?t:n0(hc(t))}function $a(t,n){var r;n===void 0&&(n=[]);const o=n0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=vi(o),f=a?[u].concat(u.visualViewport||[],uc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat($a(hc(f)))}function rk(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&Qm(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function ik(t){const n=qo(t),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function _g(t,n){return n==="viewport"?Zu(ek(t)):Pa(n)?ik(n):Zu(nk(mi(t)))}function ok(t){const n=$a(hc(t)),o=["absolute","fixed"].includes(cc(t).position)&&Rr(t)?tf(t):t;return Pa(o)?n.filter(a=>Pa(a)&&rk(a,o)&&Dr(a)!=="body"):[]}function sk(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?ok(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const m=_g(n,g);return p.top=Bs(m.top,p.top),p.right=bg(m.right,p.right),p.bottom=bg(m.bottom,p.bottom),p.left=Bs(m.left,p.left),p},_g(n,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const lk={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:JS(n,tf(r),o),floating:{...xg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>tk(t),getOffsetParent:t=>{let{element:n}=t;return tf(n)},isElement:t=>Pa(t),getDocumentElement:t=>{let{element:n}=t;return mi(n)},getClippingClientRect:t=>sk(t),getDimensions:t=>{let{element:n}=t;return xg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},ak=(t,n,r)=>PS(t,n,{platform:lk,...r});var ck=Object.defineProperty,uk=Object.defineProperties,fk=Object.getOwnPropertyDescriptors,Sg=Object.getOwnPropertySymbols,hk=Object.prototype.hasOwnProperty,dk=Object.prototype.propertyIsEnumerable,kg=(t,n,r)=>n in t?ck(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Nr=(t,n)=>{for(var r in n||(n={}))hk.call(n,r)&&kg(t,r,n[r]);if(Sg)for(var r of Sg(n))dk.call(n,r)&&kg(t,r,n[r]);return t},dl=(t,n)=>uk(t,fk(n));function r0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?r0(t[r],n[r]):t[r]=n[r])}const Ui={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 Ho(t,n){let r=Ui.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Ui.themes[r.$extend]||{}:(r=null,o=Ui[n]):r=null;while(r);return o}function pk(t){const n=[t];let r=Ui.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Ui.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let Bo=!1;if(typeof window<"u"){Bo=!1;try{const t=Object.defineProperty({},"passive",{get(){Bo=!0}});window.addEventListener("test",null,t)}catch{}}let i0=!1;typeof window<"u"&&typeof navigator<"u"&&(i0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const o0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),Cg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Tg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function gk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function Cu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const cr=[];let So=null,ef=function(){};typeof window<"u"&&(ef=window.Element);function fe(t){return function(n){return Ho(n.theme,t)}}var s0=()=>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=>o0.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,ef,Boolean],default:fe("container")},boundary:{type:[String,ef],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:dl(Nr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Nr({shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())}},["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,n)=>(t[n]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:n=!1,force:r=!1}={}){(r||!this.disabled)&&(this.$_scheduleShow(t,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0)},hide({event:t=null,skipDelay:n=!1}={}){this.$_scheduleHide(t,n),this.$emit("hide"),this.$emit("update:shown",!1)},init(){!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(jS({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(HS({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(VS({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(WS({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(DS({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:p}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(p)>u.reference.width/2:h=Math.abs(p)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&n.middleware.push({name:"autoMinSize",fn:({rects:a,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let p,g;return u.startsWith("top")||u.startsWith("bottom")?p=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=p!=null?`${p}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&n.middleware.push(KS({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 ak(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Nr(Nr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),So&&this.instantMove&&So.instantMove){So.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,n=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(So=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const n=this.delay;return parseInt(n&&n[t]||n||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Cu(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=n.x+n.width/2-(o.left+r.offsetLeft),u=n.y+n.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let n;for(let r=0;r<cr.length;r++)n=cr[r],n.showGroup!==t&&(n.hide(),n.$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 Cu(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,gk(cr,this),So===this&&(So=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=Ho(this.theme,"disposeTimeout");n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Cu(),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,Bo?{passive:!0}:void 0))},n=(a,u,f,h,p)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(m=>{const b=u[m];b&&t(a,b,p)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,Cg,this.triggers,this.showTriggers,r),n([this.$_popperNode],Cg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,Tg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],Tg,this.popperTriggers,this.popperHideTriggers,o),t([...$a(this.$_referenceNode),...$a(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:n,handler:r})=>{t.forEach(o=>o.removeEventListener(n,r))}),this.$_events=[]},$_handleGlobalClose(t,n=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,n){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(n,o))}},$_applyAttrsToTarget(t){for(const n of this.$_targetNodes)for(const r in t){const o=t[r];o==null?n.removeAttribute(r):n.setAttribute(r,o)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(i0?(document.addEventListener("touchstart",Lg,Bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",mk,Bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Lg,!0),window.addEventListener("click",vk,!0)),window.addEventListener("resize",yk));function Lg(t){for(let n=0;n<cr.length;n++){const r=cr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function vk(t){l0(t)}function mk(t){l0(t,!0)}function l0(t,n=!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,n)})}}function yk(t){for(let n=0;n<cr.length;n++)cr[n].$_computePosition(t)}function bk(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var a=t.indexOf("Edge/");return a>0?parseInt(t.substring(a+5,t.indexOf(".",a)),10):-1}let va;function nf(){nf.init||(nf.init=!0,va=bk()!==-1)}var dc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nf(),cl(()=>{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",va&&this.$el.appendChild(t),t.data="about:blank",va||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&&(!va&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wk=Xx();hm("data-v-b329ee4c");const xk={class:"resize-observer",tabindex:"-1"};dm();const _k=wk((t,n,r,o,a,u)=>(ht(),ce("div",xk)));dc.render=_k;dc.__scopeId="data-v-b329ee4c";dc.__file="src/components/ResizeObserver.vue";var a0={computed:{themeClass(){return pk(this.theme)}}},Zf=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const Sk=oe({name:"VPopperContent",components:{ResizeObserver:dc},mixins:[a0],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}}}),kk=["id","aria-hidden","tabindex","data-popper-placement"],Ck={ref:"inner",class:"v-popper__inner"},Tk=ut("div",{class:"v-popper__arrow-outer"},null,-1),Lk=ut("div",{class:"v-popper__arrow-inner"},null,-1),Ek=[Tk,Lk];function Ak(t,n,r,o,a,u){const f=Gi("ResizeObserver");return ht(),Mt("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:n[1]||(n[1]=Vu(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ut("div",Ck,[t.mounted?(ht(),Mt(ue,{key:0},[ut("div",null,[Kn(t.$slots,"default")]),t.handleResize?(ht(),ce(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):ye("",!0)],64)):ye("",!0)],512),ut("div",{ref:"arrow",class:"v-popper__arrow-container",style:kn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},Ek,4)],4)],46,kk)}var c0=Zf(Sk,[["render",Ak]]),u0={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 Mk=oe({name:"VPopperWrapper",components:{Popper:s0(),PopperContent:c0},mixins:[u0,a0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Nr({},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 Nk(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("Popper");return ht(),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:p,isShown:g,shouldMountContent:m,skipTransition:b,autoHide:x,show:S,hide:M,handleResize:A,onResize:L,classes:C,result:E})=>[ut("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:M}),Rt(f,{ref:"popperContent","popper-id":p,theme:t.finalTheme,shown:g,mounted:m,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:C,result:E,onHide:M,onResize:L},{default:Zt(()=>[Kn(t.$slots,"popper",{shown:g,hide:M})]),_: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 Jf=Zf(Mk,[["render",Nk]]);const Eg=oe(dl(Nr({},Jf),{name:"VDropdown",vPopperTheme:"dropdown"})),Ag=oe(dl(Nr({},Jf),{name:"VMenu",vPopperTheme:"menu"})),Mg=oe(dl(Nr({},Jf),{name:"VTooltip",vPopperTheme:"tooltip"})),Pk=oe({name:"VTooltipDirective",components:{Popper:s0(),PopperContent:c0},mixins:[u0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Ho(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Ho(t.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(n,o)):this.onResult(n,r)}},onResult(t,n){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Ok=["innerHTML"],$k=["textContent"];function Dk(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("Popper");return ht(),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:p,isShown:g,shouldMountContent:m,skipTransition:b,autoHide:x,hide:S,handleResize:M,onResize:A,classes:L,result:C})=>[Rt(f,{ref:"popperContent",class:ge({"v-popper--tooltip-loading":t.loading}),"popper-id":p,theme:t.theme,shown:g,mounted:m,"skip-transition":b,"auto-hide":x,"handle-resize":M,classes:L,result:C,onHide:S,onResize:A},{default:Zt(()=>[t.html?(ht(),Mt("div",{key:0,innerHTML:t.finalContent},null,8,Ok)):(ht(),Mt("div",{key:1,textContent:Jt(t.finalContent)},null,8,$k))]),_: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 Rk=Zf(Pk,[["render",Dk]]);const f0="v-popper--has-tooltip";function zk(t,n){let r=t.placement;if(!r&&n)for(const o of o0)n[o]&&(r=o);return r||(r=Ho(t.theme||"tooltip","placement")),r}function h0(t,n,r){let o;const a=typeof n;return a==="string"?o={content:n}:n&&a==="object"?o=n:o={content:!1},o.placement=zk(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Tu,Qs,Ik=0;function Fk(){if(Tu)return;Qs=Kt([]),Tu=Fm({name:"VTooltipDirectiveApp",setup(){return{directives:Qs}},render(){return this.directives.map(n=>fl(Rk,dl(Nr({},n.options),{shown:n.shown.value||n.options.shown,key:n.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Tu.mount(t)}function d0(t,n,r){Fk();const o=Kt(h0(t,n,r)),a=Kt(!1),u={id:Ik++,options:o,shown:a};return Qs.value.push(u),t.classList&&t.classList.add(f0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Qf(t){if(t.$_popper){const n=Qs.value.indexOf(t.$_popper.item);n!==-1&&Qs.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(f0)}function Ng(t,{value:n,oldValue:r,modifiers:o}){const a=h0(t,n,o);if(!a.content||Ho(a.theme||"tooltip","disabled"))Qf(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=d0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var p0={beforeMount:Ng,updated:Ng,beforeUnmount(t){Qf(t)}};function Pg(t){t.addEventListener("click",g0),t.addEventListener("touchstart",v0,Bo?{passive:!0}:!1)}function Og(t){t.removeEventListener("click",g0),t.removeEventListener("touchstart",v0),t.removeEventListener("touchend",m0),t.removeEventListener("touchcancel",y0)}function g0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function v0(t){if(t.changedTouches.length===1){const n=t.currentTarget;n.$_vclosepopover_touch=!0;const r=t.changedTouches[0];n.$_vclosepopover_touchPoint=r,n.addEventListener("touchend",m0),n.addEventListener("touchcancel",y0)}}function m0(t){const n=t.currentTarget;if(n.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=n.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function y0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var qk={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&Pg(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?Pg(t):Og(t))},beforeUnmount(t){Og(t)}};const Hk=p0;function Bk(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,r0(Ui,n),t.directive("tooltip",p0),t.directive("close-popper",qk),t.component("v-tooltip",Mg),t.component("VTooltip",Mg),t.component("v-dropdown",Eg),t.component("VDropdown",Eg),t.component("v-menu",Ag),t.component("VMenu",Ag))}const b0={version:"2.0.0-y.0",install:Bk,options:Ui};var $g;const pl=typeof window<"u",Wk=t=>typeof t<"u",w0=t=>typeof t=="function",Uk=t=>typeof t=="string",ma=()=>{};pl&&(($g=window==null?void 0:window.navigator)==null?void 0:$g.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Vi(t){return typeof t=="function"?t():Z(t)}function th(t,n){function r(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return r}const x0=t=>t();function _0(t,n={}){let r,o;return u=>{const f=Vi(t),h=Vi(n.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 jk(t,n=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return p=>{const g=Vi(t),m=Date.now()-o;if(f(),g<=0)return o=Date.now(),p();m>g&&(r||!u)?(o=Date.now(),p()):n&&(a=setTimeout(()=>{o=Date.now(),u=!0,f(),p()},g-m)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function Gk(t=x0){const n=Kt(!0);function r(){n.value=!1}function o(){n.value=!0}return{isActive:n,pause:r,resume:o,eventFilter:(...u)=>{n.value&&t(...u)}}}function Vk(t){return t}function eh(t){return ux()?(fx(t),!0):!1}function Dg(t,n=200,r={}){return th(_0(n,r),t)}function Kk(t,n=200,r=!1,o=!0){return th(jk(n,r,o),t)}function Xk(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Kt(t.value),u=Kk(()=>{a.value=t.value},n,r,o);return Fe(t,()=>u()),a}function Yk(t){return typeof t=="function"?St(t):Kt(t)}function nh(t,n=!0){oc()?ul(t):n?t():cl(t)}function Zk(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=Ie(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const p=Vi(r);return u.value=u.value===p?Vi(o):p,u.value}}return a?f:[u,f]}var Rg=Object.getOwnPropertySymbols,Jk=Object.prototype.hasOwnProperty,Qk=Object.prototype.propertyIsEnumerable,tC=(t,n)=>{var r={};for(var o in t)Jk.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Rg)for(var o of Rg(t))n.indexOf(o)<0&&Qk.call(t,o)&&(r[o]=t[o]);return r};function S0(t,n,r={}){const o=r,{eventFilter:a=x0}=o,u=tC(o,["eventFilter"]);return Fe(t,th(a,n),u)}var eC=Object.defineProperty,nC=Object.defineProperties,rC=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,k0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,zg=(t,n,r)=>n in t?eC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,iC=(t,n)=>{for(var r in n||(n={}))k0.call(n,r)&&zg(t,r,n[r]);if(Da)for(var r of Da(n))C0.call(n,r)&&zg(t,r,n[r]);return t},oC=(t,n)=>nC(t,rC(n)),sC=(t,n)=>{var r={};for(var o in t)k0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Da)for(var o of Da(t))n.indexOf(o)<0&&C0.call(t,o)&&(r[o]=t[o]);return r};function lC(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=sC(o,["debounce","maxWait"]);return S0(t,n,oC(iC({},f),{eventFilter:_0(a,{maxWait:u})}))}function aC(t,n,r){const o=Fe(t,(...a)=>(cl(()=>o()),n(...a)),r)}var cC=Object.defineProperty,uC=Object.defineProperties,fC=Object.getOwnPropertyDescriptors,Ra=Object.getOwnPropertySymbols,T0=Object.prototype.hasOwnProperty,L0=Object.prototype.propertyIsEnumerable,Ig=(t,n,r)=>n in t?cC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,hC=(t,n)=>{for(var r in n||(n={}))T0.call(n,r)&&Ig(t,r,n[r]);if(Ra)for(var r of Ra(n))L0.call(n,r)&&Ig(t,r,n[r]);return t},dC=(t,n)=>uC(t,fC(n)),pC=(t,n)=>{var r={};for(var o in t)T0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ra)for(var o of Ra(t))n.indexOf(o)<0&&L0.call(t,o)&&(r[o]=t[o]);return r};function E0(t,n,r={}){const o=r,{eventFilter:a}=o,u=pC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:p,isActive:g}=Gk(a);return{stop:S0(t,n,dC(hC({},u),{eventFilter:f})),pause:h,resume:p,isActive:g}}function gC(t,n,r){let o;Ie(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=ma}=o,h=Kt(!a),p=Kt(n);let g=0;return Ff(async m=>{if(!h.value)return;g++;const b=g;let x=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const S=await t(M=>{m(()=>{u&&(u.value=!1),x||M()})});b===g&&(p.value=S)}catch(S){f(S)}finally{u&&b===g&&(u.value=!1),x=!0}}),a?St(()=>(h.value=!0,p.value)):p}function A0(t){var n;const r=Vi(t);return(n=r==null?void 0:r.$el)!=null?n:r}const dr=pl?window:void 0;pl&&window.document;pl&&window.navigator;pl&&window.location;function Wo(...t){let n,r,o,a;if(Uk(t[0])?([r,o,a]=t,n=dr):[n,r,o,a]=t,!n)return ma;let u=ma;const f=Fe(()=>A0(n),p=>{u(),p&&(p.addEventListener(r,o,a),u=()=>{p.removeEventListener(r,o,a),u=ma})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return eh(h),h}const vC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0;function mC(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:a=dr,eventName:u="keydown",passive:f=!1}=o,h=vC(n);return Wo(a,u,g=>{h(g)&&r(g)},f)}function M0(t,n=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),nh(o,n),r}function yC(t,n={}){const{window:r=dr}=n,o=M0(()=>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(Yk(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return Ff(h),eh(()=>f()),u}function bC(t){return JSON.parse(JSON.stringify(t))}const rf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},of="__vueuse_ssr_handlers__";rf[of]=rf[of]||{};const wC=rf[of];function N0(t,n){return wC[t]||n}function xC(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 _C=Object.defineProperty,Fg=Object.getOwnPropertySymbols,SC=Object.prototype.hasOwnProperty,kC=Object.prototype.propertyIsEnumerable,qg=(t,n,r)=>n in t?_C(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Hg=(t,n)=>{for(var r in n||(n={}))SC.call(n,r)&&qg(t,r,n[r]);if(Fg)for(var r of Fg(n))kC.call(n,r)&&qg(t,r,n[r]);return t};const CC={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 TC(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:p=!0,mergeDefaults:g=!1,shallow:m,window:b=dr,eventFilter:x,onError:S=it=>{console.error(it)}}=o,M=(m?ll:Kt)(n);if(!r)try{r=N0("getDefaultStorage",()=>{var it;return(it=dr)==null?void 0:it.localStorage})()}catch(it){S(it)}if(!r)return M;const A=Vi(n),L=xC(A),C=(a=o.serializer)!=null?a:CC[L],{pause:E,resume:z}=E0(M,()=>D(M.value),{flush:u,deep:f,eventFilter:x});return b&&h&&Wo(b,"storage",j),j(),M;function D(it){try{it==null?r.removeItem(t):r.setItem(t,C.write(it))}catch(Q){S(Q)}}function G(it){E();try{const Q=it?it.newValue:r.getItem(t);if(Q==null)return p&&A!==null&&r.setItem(t,C.write(A)),A;if(!it&&g){const dt=C.read(Q);return w0(g)?g(dt,A):L==="object"&&!Array.isArray(dt)?Hg(Hg({},A),dt):dt}else return typeof Q!="string"?Q:C.read(Q)}catch(Q){S(Q)}finally{z()}}function j(it){if(!(it&&it.storageArea!==r)){if(it&&it.key===null){M.value=A;return}it&&it.key!==t||(M.value=G(it))}}}function P0(t){return yC("(prefers-color-scheme: dark)",t)}var LC=Object.defineProperty,Bg=Object.getOwnPropertySymbols,EC=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,Wg=(t,n,r)=>n in t?LC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,MC=(t,n)=>{for(var r in n||(n={}))EC.call(n,r)&&Wg(t,r,n[r]);if(Bg)for(var r of Bg(n))AC.call(n,r)&&Wg(t,r,n[r]);return t};function NC(t={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:a=dr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:p,emitAuto:g}=t,m=MC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=P0({window:a}),x=St(()=>b.value?"dark":"light"),S=p||(f==null?Kt(o):TC(f,o,u,{window:a,listenToStorageChanges:h})),M=St({get(){return S.value==="auto"&&!g?x.value:S.value},set(E){S.value=E}}),A=N0("updateHTMLAttrs",(E,z,D)=>{const G=a==null?void 0:a.document.querySelector(E);if(!!G)if(z==="class"){const j=D.split(/\s/g);Object.values(m).flatMap(it=>(it||"").split(/\s/g)).filter(Boolean).forEach(it=>{j.includes(it)?G.classList.add(it):G.classList.remove(it)})}else G.setAttribute(z,D)});function L(E){var z;const D=E==="auto"?x.value:E;A(n,r,(z=m[D])!=null?z:D)}function C(E){t.onChanged?t.onChanged(E,L):L(E)}return Fe(M,C,{flush:"post",immediate:!0}),g&&Fe(x,()=>C(M.value),{flush:"post"}),nh(()=>C(M.value)),M}var PC=Object.defineProperty,OC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,Ug=Object.getOwnPropertySymbols,DC=Object.prototype.hasOwnProperty,RC=Object.prototype.propertyIsEnumerable,jg=(t,n,r)=>n in t?PC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,zC=(t,n)=>{for(var r in n||(n={}))DC.call(n,r)&&jg(t,r,n[r]);if(Ug)for(var r of Ug(n))RC.call(n,r)&&jg(t,r,n[r]);return t},IC=(t,n)=>OC(t,$C(n));function FC(t={}){const{valueDark:n="dark",valueLight:r="",window:o=dr}=t,a=NC(IC(zC({},t),{onChanged:(h,p)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark"):p(h)},modes:{dark:n,light:r}})),u=P0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var Gg=Object.getOwnPropertySymbols,qC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,BC=(t,n)=>{var r={};for(var o in t)qC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Gg)for(var o of Gg(t))n.indexOf(o)<0&&HC.call(t,o)&&(r[o]=t[o]);return r};function WC(t,n,r={}){const o=r,{window:a=dr}=o,u=BC(o,["window"]);let f;const h=M0(()=>a&&"ResizeObserver"in a),p=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>A0(t),b=>{p(),h.value&&a&&b&&(f=new ResizeObserver(n),f.observe(b,u))},{immediate:!0,flush:"post"}),m=()=>{p(),g()};return eh(m),{isSupported:h,stop:m}}var Vg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Vg||(Vg={}));var UC=Object.defineProperty,Kg=Object.getOwnPropertySymbols,jC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,Xg=(t,n,r)=>n in t?UC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,VC=(t,n)=>{for(var r in n||(n={}))jC.call(n,r)&&Xg(t,r,n[r]);if(Kg)for(var r of Kg(n))GC.call(n,r)&&Xg(t,r,n[r]);return t};const KC={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]};VC({linear:Vk},KC);function XC(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=dr}=n;if(!f)return hr(r);const h=hr({});function p(){if(t==="history")return f.location.search||"";if(t==="hash"){const C=f.location.hash||"",E=C.indexOf("?");return E>0?C.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function g(C){const E=C.toString();if(t==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const z=f.location.hash||"#",D=z.indexOf("?");return D>0?`${z.slice(0,D)}${E?`?${E}`:""}`:`${z}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(C){const E=new Set(Object.keys(h));for(const z of C.keys()){const D=C.getAll(z);h[z]=D.length>1?D:C.get(z)||"",E.delete(z)}Array.from(E).forEach(z=>delete h[z])}const{pause:x,resume:S}=E0(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(E=>{const z=h[E];Array.isArray(z)?z.forEach(D=>C.append(E,D)):o&&z==null||a&&!z?C.delete(E):C.set(E,z)}),M(C)},{deep:!0});function M(C,E){x(),E&&b(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(C)),S()}function A(){!u||M(m(),!0)}Wo(f,"popstate",A,!1),t!=="history"&&Wo(f,"hashchange",A,!1);const L=m();return L.keys().next().value?b(L):Object.assign(h,r),h}function YC(t,n,r,o={}){var a,u,f;const{clone:h=!1,passive:p=!1,eventName:g,deep:m=!1,defaultValue:b}=o,x=oc(),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 M=g;n||(n="modelValue"),M=g||M||`update:${n.toString()}`;const A=C=>h?w0(h)?h(C):bC(C):C,L=()=>Wk(t[n])?A(t[n]):b;if(p){const C=L(),E=Kt(C);return Fe(()=>t[n],z=>E.value=A(z)),Fe(E,z=>{(z!==t[n]||m)&&S(M,z)},{deep:m}),E}else return St({get(){return L()},set(C){S(M,C)}})}function ZC(t={}){const{window:n=dr,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:a=!0,includeScrollbar:u=!0}=t,f=Kt(r),h=Kt(o),p=()=>{n&&(u?(f.value=n.innerWidth,h.value=n.innerHeight):(f.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};return p(),nh(p),Wo("resize",p,{passive:!0}),a&&Wo("orientationchange",p,{passive:!0}),{width:f,height:h}}const JC=6e4;function QC(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=m=>m,deserialize:f=m=>m,timeout:h=JC}=n,p=new Map,g=new Proxy({},{get(m,b){const x=(...M)=>{r(u({m:b,a:M,t:"q"}))};if(a.includes(b))return x.asEvent=x,x;const S=(...M)=>new Promise((A,L)=>{const C=eT();p.set(C,{resolve:A,reject:L}),r(u({m:b,a:M,i:C,t:"q"})),h>=0&&setTimeout(()=>{L(new Error(`[birpc] timeout on calling "${b}"`)),p.delete(C)},h)});return S.asEvent=x,S}});return o(async(m,...b)=>{const x=f(m);if(x.t==="q"){const{m:S,a:M}=x;let A,L;try{A=await t[S].apply(g,M)}catch(C){L=C}x.i&&r(u({t:"s",i:x.i,r:A,e:L}),...b)}else{const{i:S,r:M,e:A}=x,L=p.get(S);A?L==null||L.reject(A):L==null||L.resolve(M),p.delete(S)}}),g}const tT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function eT(t=21){let n="",r=t;for(;r--;)n+=tT[Math.random()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:nT,stringify:rT}=JSON,{keys:iT}=Object,tl=String,O0="string",Yg={},za="object",$0=(t,n)=>n,oT=t=>t instanceof tl?tl(t):t,sT=(t,n)=>typeof n===O0?new tl(n):n,D0=(t,n,r,o)=>{const a=[];for(let u=iT(r),{length:f}=u,h=0;h<f;h++){const p=u[h],g=r[p];if(g instanceof tl){const m=t[g];typeof m===za&&!n.has(m)?(n.add(m),r[p]=Yg,a.push({k:p,a:[t,n,m,o]})):r[p]=o.call(r,p,m)}else r[p]!==Yg&&(r[p]=o.call(r,p,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:p}=a[f];r[h]=o.call(r,h,D0.apply(null,p))}return r},Zg=(t,n,r)=>{const o=tl(n.push(r)-1);return t.set(r,o),o},lT=(t,n)=>{const r=nT(t,sT).map(oT),o=r[0],a=n||$0,u=typeof o===za&&o?D0(r,new Set,o,a):o;return a.call({"":u},"",u)},aT=(t,n,r)=>{const o=n&&typeof n===za?(m,b)=>m===""||-1<n.indexOf(m)?b:void 0:n||$0,a=new Map,u=[],f=[];let h=+Zg(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=rT(u[h++],g,r);return"["+f.join(",")+"]";function g(m,b){if(p)return p=!p,b;const x=o.call(this,m,b);switch(typeof x){case za:if(x===null)return x;case O0:return a.get(x)||Zg(a,u,x)}return x}},cT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class uT{constructor(){Ai(this,"filesMap",new Map);Ai(this,"pathsSet",new Set);Ai(this,"collectingPromise");Ai(this,"idMap",new Map);Ai(this,"taskFileMap",new WeakMap);Ai(this,"errorsSet",new Set)}catchError(n,r){if(cT(n))return n.errors.forEach(o=>this.catchError(o,r));n.type=r,this.errorsSet.add(n)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}startCollectingPaths(){let n;const r=new Promise(o=>{n=o});this.collectingPromise={promise:r,resolve:n}}finishCollectingPaths(){var n;(n=this.collectingPromise)==null||n.resolve(),this.collectingPromise=void 0}async getPaths(){var n;return await((n=this.collectingPromise)==null?void 0:n.promise),Array.from(this.pathsSet)}getFiles(n){return n?n.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(n=>{var r;return((r=n.result)==null?void 0:r.state)==="fail"}).map(n=>n.filepath)}collectPaths(n=[]){n.forEach(r=>{this.pathsSet.add(r)})}collectFiles(n=[]){n.forEach(r=>{this.filesMap.set(r.filepath,r),this.updateId(r)})}clearFiles(n=[]){n.forEach(r=>{this.filesMap.delete(r)})}updateId(n){this.idMap.get(n.id)!==n&&(this.idMap.set(n.id,n),n.type==="suite"&&n.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(n){for(const[r,o]of n)this.idMap.has(r)&&(this.idMap.get(r).result=o)}updateUserLog(n){const r=n.taskId&&this.idMap.get(n.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(n))}}const Fi=Date;class el extends Fi{constructor(n,r,o,a,u,f,h){super();let p;switch(arguments.length){case 0:p=new Fi;break;case 1:p=new Fi(n);break;default:o=typeof o>"u"?1:o,a=a||0,u=u||0,f=f||0,h=h||0,p=new Fi(n,r,o,a,u,f,h);break}return p}}el.UTC=Fi.UTC;el.now=function(){return new el().valueOf()};el.parse=function(t){return Fi.parse(t)};el.toString=function(){return Fi.toString()};function R0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function sf(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function z0(t){return R0(t).flatMap(n=>sf(n)?[n]:n.tasks.flatMap(r=>sf(r)?[r]:z0(r)))}function rh(t=[]){return R0(t).flatMap(n=>sf(n)?[n]:[n,...rh(n.tasks)])}function pc(t){return z0(t).some(n=>{var o,a;const r=(a=(o=n.result)==null?void 0:o.error)==null?void 0:a.message;return r==null?void 0:r.match(/Snapshot .* mismatched/)})}function fT(t){const n=[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&&n.unshift(r.name);return n}function hT(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=n;let p=u;const g=f({ws:new h(t),state:new uT,waitForConnection:L,reconnect:M});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let m;const b={onPathsCollected(C){var E;g.state.collectPaths(C),(E=r.onPathsCollected)==null||E.call(r,C)},onCollected(C){var E;g.state.collectFiles(C),(E=r.onCollected)==null||E.call(r,C)},onTaskUpdate(C){var E;g.state.updateTasks(C),(E=r.onTaskUpdate)==null||E.call(r,C)},onUserConsoleLog(C){g.state.updateUserLog(C)},onFinished(C){var E;(E=r.onFinished)==null||E.call(r,C)}},x={post:C=>g.ws.send(C),on:C=>m=C,serialize:aT,deserialize:lT};g.rpc=QC(b,x);let S;function M(C=!1){C&&(p=u),g.ws=new h(t),A()}function A(){S=new Promise(C=>{g.ws.addEventListener("open",()=>{p=u,C()})}),g.ws.addEventListener("message",C=>{m(C.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,a)})}A();function L(){return S}return g}const I0=XC("hash-params",{initialValue:{file:"",view:null}}),Mr=$f(I0,"file"),or=$f(I0,"view"),dT=location.port,pT=[location.hostname,dT].filter(Boolean).join(":"),gT=`${location.protocol==="https:"?"wss:":"ws:"}//${pT}/__vitest_api__`,Ia=Kt("idle"),We=hT(gT,{reactive:hr,handlers:{onTaskUpdate(){Ia.value="running"},onFinished(){Ia.value="idle"}}}),lf=ll({}),qi=Kt("CONNECTING"),Tn=St(()=>We.state.getFiles()),Le=St(()=>Tn.value.find(t=>t.id===Mr.value)),F0=St(()=>rh(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Fa=t=>Tn.value.find(n=>n.id===t),vT=St(()=>qi.value==="OPEN"),Lu=St(()=>qi.value==="CONNECTING");St(()=>qi.value==="CLOSED");function Jg(t=We.state.getFiles()){return q0(t)}function q0(t){return t.forEach(n=>{delete n.result,rh(n).forEach(r=>delete r.result)}),We.rpc.rerun(t.map(n=>n.filepath))}function mT(){if(Le.value)return q0([Le.value])}Fe(()=>We.ws,t=>{qi.value="CONNECTING",t.addEventListener("open",()=>{qi.value="OPEN",We.state.filesMap.clear(),We.rpc.getFiles().then(n=>We.state.collectFiles(n)),We.rpc.getConfig().then(n=>lf.value=n)}),t.addEventListener("close",()=>{setTimeout(()=>{qi.value==="CONNECTING"&&(qi.value="CLOSED")},1e3)})},{immediate:!0});const yT={"text-2xl":""},bT=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),wT=oe({__name:"ConnectionOverlay",setup(t){return(n,r)=>Z(vT)?ye("",!0):(ht(),Mt("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)=>Z(We).reconnect&&Z(We).reconnect(...o))},[ut("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ge(Z(Lu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ge(Z(Lu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",yT,Jt(Z(Lu)?"Connecting...":"Disconnected"),1),bT],2)]))}});var Ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H0={},Or={};const xT="\xC1",_T="\xE1",ST="\u0102",kT="\u0103",CT="\u223E",TT="\u223F",LT="\u223E\u0333",ET="\xC2",AT="\xE2",MT="\xB4",NT="\u0410",PT="\u0430",OT="\xC6",$T="\xE6",DT="\u2061",RT="\u{1D504}",zT="\u{1D51E}",IT="\xC0",FT="\xE0",qT="\u2135",HT="\u2135",BT="\u0391",WT="\u03B1",UT="\u0100",jT="\u0101",GT="\u2A3F",VT="&",KT="&",XT="\u2A55",YT="\u2A53",ZT="\u2227",JT="\u2A5C",QT="\u2A58",tL="\u2A5A",eL="\u2220",nL="\u29A4",rL="\u2220",iL="\u29A8",oL="\u29A9",sL="\u29AA",lL="\u29AB",aL="\u29AC",cL="\u29AD",uL="\u29AE",fL="\u29AF",hL="\u2221",dL="\u221F",pL="\u22BE",gL="\u299D",vL="\u2222",mL="\xC5",yL="\u237C",bL="\u0104",wL="\u0105",xL="\u{1D538}",_L="\u{1D552}",SL="\u2A6F",kL="\u2248",CL="\u2A70",TL="\u224A",LL="\u224B",EL="'",AL="\u2061",ML="\u2248",NL="\u224A",PL="\xC5",OL="\xE5",$L="\u{1D49C}",DL="\u{1D4B6}",RL="\u2254",zL="*",IL="\u2248",FL="\u224D",qL="\xC3",HL="\xE3",BL="\xC4",WL="\xE4",UL="\u2233",jL="\u2A11",GL="\u224C",VL="\u03F6",KL="\u2035",XL="\u223D",YL="\u22CD",ZL="\u2216",JL="\u2AE7",QL="\u22BD",tE="\u2305",eE="\u2306",nE="\u2305",rE="\u23B5",iE="\u23B6",oE="\u224C",sE="\u0411",lE="\u0431",aE="\u201E",cE="\u2235",uE="\u2235",fE="\u2235",hE="\u29B0",dE="\u03F6",pE="\u212C",gE="\u212C",vE="\u0392",mE="\u03B2",yE="\u2136",bE="\u226C",wE="\u{1D505}",xE="\u{1D51F}",_E="\u22C2",SE="\u25EF",kE="\u22C3",CE="\u2A00",TE="\u2A01",LE="\u2A02",EE="\u2A06",AE="\u2605",ME="\u25BD",NE="\u25B3",PE="\u2A04",OE="\u22C1",$E="\u22C0",DE="\u290D",RE="\u29EB",zE="\u25AA",IE="\u25B4",FE="\u25BE",qE="\u25C2",HE="\u25B8",BE="\u2423",WE="\u2592",UE="\u2591",jE="\u2593",GE="\u2588",VE="=\u20E5",KE="\u2261\u20E5",XE="\u2AED",YE="\u2310",ZE="\u{1D539}",JE="\u{1D553}",QE="\u22A5",tA="\u22A5",eA="\u22C8",nA="\u29C9",rA="\u2510",iA="\u2555",oA="\u2556",sA="\u2557",lA="\u250C",aA="\u2552",cA="\u2553",uA="\u2554",fA="\u2500",hA="\u2550",dA="\u252C",pA="\u2564",gA="\u2565",vA="\u2566",mA="\u2534",yA="\u2567",bA="\u2568",wA="\u2569",xA="\u229F",_A="\u229E",SA="\u22A0",kA="\u2518",CA="\u255B",TA="\u255C",LA="\u255D",EA="\u2514",AA="\u2558",MA="\u2559",NA="\u255A",PA="\u2502",OA="\u2551",$A="\u253C",DA="\u256A",RA="\u256B",zA="\u256C",IA="\u2524",FA="\u2561",qA="\u2562",HA="\u2563",BA="\u251C",WA="\u255E",UA="\u255F",jA="\u2560",GA="\u2035",VA="\u02D8",KA="\u02D8",XA="\xA6",YA="\u{1D4B7}",ZA="\u212C",JA="\u204F",QA="\u223D",tM="\u22CD",eM="\u29C5",nM="\\",rM="\u27C8",iM="\u2022",oM="\u2022",sM="\u224E",lM="\u2AAE",aM="\u224F",cM="\u224E",uM="\u224F",fM="\u0106",hM="\u0107",dM="\u2A44",pM="\u2A49",gM="\u2A4B",vM="\u2229",mM="\u22D2",yM="\u2A47",bM="\u2A40",wM="\u2145",xM="\u2229\uFE00",_M="\u2041",SM="\u02C7",kM="\u212D",CM="\u2A4D",TM="\u010C",LM="\u010D",EM="\xC7",AM="\xE7",MM="\u0108",NM="\u0109",PM="\u2230",OM="\u2A4C",$M="\u2A50",DM="\u010A",RM="\u010B",zM="\xB8",IM="\xB8",FM="\u29B2",qM="\xA2",HM="\xB7",BM="\xB7",WM="\u{1D520}",UM="\u212D",jM="\u0427",GM="\u0447",VM="\u2713",KM="\u2713",XM="\u03A7",YM="\u03C7",ZM="\u02C6",JM="\u2257",QM="\u21BA",tN="\u21BB",eN="\u229B",nN="\u229A",rN="\u229D",iN="\u2299",oN="\xAE",sN="\u24C8",lN="\u2296",aN="\u2295",cN="\u2297",uN="\u25CB",fN="\u29C3",hN="\u2257",dN="\u2A10",pN="\u2AEF",gN="\u29C2",vN="\u2232",mN="\u201D",yN="\u2019",bN="\u2663",wN="\u2663",xN=":",_N="\u2237",SN="\u2A74",kN="\u2254",CN="\u2254",TN=",",LN="@",EN="\u2201",AN="\u2218",MN="\u2201",NN="\u2102",PN="\u2245",ON="\u2A6D",$N="\u2261",DN="\u222E",RN="\u222F",zN="\u222E",IN="\u{1D554}",FN="\u2102",qN="\u2210",HN="\u2210",BN="\xA9",WN="\xA9",UN="\u2117",jN="\u2233",GN="\u21B5",VN="\u2717",KN="\u2A2F",XN="\u{1D49E}",YN="\u{1D4B8}",ZN="\u2ACF",JN="\u2AD1",QN="\u2AD0",tP="\u2AD2",eP="\u22EF",nP="\u2938",rP="\u2935",iP="\u22DE",oP="\u22DF",sP="\u21B6",lP="\u293D",aP="\u2A48",cP="\u2A46",uP="\u224D",fP="\u222A",hP="\u22D3",dP="\u2A4A",pP="\u228D",gP="\u2A45",vP="\u222A\uFE00",mP="\u21B7",yP="\u293C",bP="\u22DE",wP="\u22DF",xP="\u22CE",_P="\u22CF",SP="\xA4",kP="\u21B6",CP="\u21B7",TP="\u22CE",LP="\u22CF",EP="\u2232",AP="\u2231",MP="\u232D",NP="\u2020",PP="\u2021",OP="\u2138",$P="\u2193",DP="\u21A1",RP="\u21D3",zP="\u2010",IP="\u2AE4",FP="\u22A3",qP="\u290F",HP="\u02DD",BP="\u010E",WP="\u010F",UP="\u0414",jP="\u0434",GP="\u2021",VP="\u21CA",KP="\u2145",XP="\u2146",YP="\u2911",ZP="\u2A77",JP="\xB0",QP="\u2207",tO="\u0394",eO="\u03B4",nO="\u29B1",rO="\u297F",iO="\u{1D507}",oO="\u{1D521}",sO="\u2965",lO="\u21C3",aO="\u21C2",cO="\xB4",uO="\u02D9",fO="\u02DD",hO="`",dO="\u02DC",pO="\u22C4",gO="\u22C4",vO="\u22C4",mO="\u2666",yO="\u2666",bO="\xA8",wO="\u2146",xO="\u03DD",_O="\u22F2",SO="\xF7",kO="\xF7",CO="\u22C7",TO="\u22C7",LO="\u0402",EO="\u0452",AO="\u231E",MO="\u230D",NO="$",PO="\u{1D53B}",OO="\u{1D555}",$O="\xA8",DO="\u02D9",RO="\u20DC",zO="\u2250",IO="\u2251",FO="\u2250",qO="\u2238",HO="\u2214",BO="\u22A1",WO="\u2306",UO="\u222F",jO="\xA8",GO="\u21D3",VO="\u21D0",KO="\u21D4",XO="\u2AE4",YO="\u27F8",ZO="\u27FA",JO="\u27F9",QO="\u21D2",t$="\u22A8",e$="\u21D1",n$="\u21D5",r$="\u2225",i$="\u2913",o$="\u2193",s$="\u2193",l$="\u21D3",a$="\u21F5",c$="\u0311",u$="\u21CA",f$="\u21C3",h$="\u21C2",d$="\u2950",p$="\u295E",g$="\u2956",v$="\u21BD",m$="\u295F",y$="\u2957",b$="\u21C1",w$="\u21A7",x$="\u22A4",_$="\u2910",S$="\u231F",k$="\u230C",C$="\u{1D49F}",T$="\u{1D4B9}",L$="\u0405",E$="\u0455",A$="\u29F6",M$="\u0110",N$="\u0111",P$="\u22F1",O$="\u25BF",$$="\u25BE",D$="\u21F5",R$="\u296F",z$="\u29A6",I$="\u040F",F$="\u045F",q$="\u27FF",H$="\xC9",B$="\xE9",W$="\u2A6E",U$="\u011A",j$="\u011B",G$="\xCA",V$="\xEA",K$="\u2256",X$="\u2255",Y$="\u042D",Z$="\u044D",J$="\u2A77",Q$="\u0116",tD="\u0117",eD="\u2251",nD="\u2147",rD="\u2252",iD="\u{1D508}",oD="\u{1D522}",sD="\u2A9A",lD="\xC8",aD="\xE8",cD="\u2A96",uD="\u2A98",fD="\u2A99",hD="\u2208",dD="\u23E7",pD="\u2113",gD="\u2A95",vD="\u2A97",mD="\u0112",yD="\u0113",bD="\u2205",wD="\u2205",xD="\u25FB",_D="\u2205",SD="\u25AB",kD="\u2004",CD="\u2005",TD="\u2003",LD="\u014A",ED="\u014B",AD="\u2002",MD="\u0118",ND="\u0119",PD="\u{1D53C}",OD="\u{1D556}",$D="\u22D5",DD="\u29E3",RD="\u2A71",zD="\u03B5",ID="\u0395",FD="\u03B5",qD="\u03F5",HD="\u2256",BD="\u2255",WD="\u2242",UD="\u2A96",jD="\u2A95",GD="\u2A75",VD="=",KD="\u2242",XD="\u225F",YD="\u21CC",ZD="\u2261",JD="\u2A78",QD="\u29E5",tR="\u2971",eR="\u2253",nR="\u212F",rR="\u2130",iR="\u2250",oR="\u2A73",sR="\u2242",lR="\u0397",aR="\u03B7",cR="\xD0",uR="\xF0",fR="\xCB",hR="\xEB",dR="\u20AC",pR="!",gR="\u2203",vR="\u2203",mR="\u2130",yR="\u2147",bR="\u2147",wR="\u2252",xR="\u0424",_R="\u0444",SR="\u2640",kR="\uFB03",CR="\uFB00",TR="\uFB04",LR="\u{1D509}",ER="\u{1D523}",AR="\uFB01",MR="\u25FC",NR="\u25AA",PR="fj",OR="\u266D",$R="\uFB02",DR="\u25B1",RR="\u0192",zR="\u{1D53D}",IR="\u{1D557}",FR="\u2200",qR="\u2200",HR="\u22D4",BR="\u2AD9",WR="\u2131",UR="\u2A0D",jR="\xBD",GR="\u2153",VR="\xBC",KR="\u2155",XR="\u2159",YR="\u215B",ZR="\u2154",JR="\u2156",QR="\xBE",tz="\u2157",ez="\u215C",nz="\u2158",rz="\u215A",iz="\u215D",oz="\u215E",sz="\u2044",lz="\u2322",az="\u{1D4BB}",cz="\u2131",uz="\u01F5",fz="\u0393",hz="\u03B3",dz="\u03DC",pz="\u03DD",gz="\u2A86",vz="\u011E",mz="\u011F",yz="\u0122",bz="\u011C",wz="\u011D",xz="\u0413",_z="\u0433",Sz="\u0120",kz="\u0121",Cz="\u2265",Tz="\u2267",Lz="\u2A8C",Ez="\u22DB",Az="\u2265",Mz="\u2267",Nz="\u2A7E",Pz="\u2AA9",Oz="\u2A7E",$z="\u2A80",Dz="\u2A82",Rz="\u2A84",zz="\u22DB\uFE00",Iz="\u2A94",Fz="\u{1D50A}",qz="\u{1D524}",Hz="\u226B",Bz="\u22D9",Wz="\u22D9",Uz="\u2137",jz="\u0403",Gz="\u0453",Vz="\u2AA5",Kz="\u2277",Xz="\u2A92",Yz="\u2AA4",Zz="\u2A8A",Jz="\u2A8A",Qz="\u2A88",t2="\u2269",e2="\u2A88",n2="\u2269",r2="\u22E7",i2="\u{1D53E}",o2="\u{1D558}",s2="`",l2="\u2265",a2="\u22DB",c2="\u2267",u2="\u2AA2",f2="\u2277",h2="\u2A7E",d2="\u2273",p2="\u{1D4A2}",g2="\u210A",v2="\u2273",m2="\u2A8E",y2="\u2A90",b2="\u2AA7",w2="\u2A7A",x2=">",_2=">",S2="\u226B",k2="\u22D7",C2="\u2995",T2="\u2A7C",L2="\u2A86",E2="\u2978",A2="\u22D7",M2="\u22DB",N2="\u2A8C",P2="\u2277",O2="\u2273",$2="\u2269\uFE00",D2="\u2269\uFE00",R2="\u02C7",z2="\u200A",I2="\xBD",F2="\u210B",q2="\u042A",H2="\u044A",B2="\u2948",W2="\u2194",U2="\u21D4",j2="\u21AD",G2="^",V2="\u210F",K2="\u0124",X2="\u0125",Y2="\u2665",Z2="\u2665",J2="\u2026",Q2="\u22B9",tI="\u{1D525}",eI="\u210C",nI="\u210B",rI="\u2925",iI="\u2926",oI="\u21FF",sI="\u223B",lI="\u21A9",aI="\u21AA",cI="\u{1D559}",uI="\u210D",fI="\u2015",hI="\u2500",dI="\u{1D4BD}",pI="\u210B",gI="\u210F",vI="\u0126",mI="\u0127",yI="\u224E",bI="\u224F",wI="\u2043",xI="\u2010",_I="\xCD",SI="\xED",kI="\u2063",CI="\xCE",TI="\xEE",LI="\u0418",EI="\u0438",AI="\u0130",MI="\u0415",NI="\u0435",PI="\xA1",OI="\u21D4",$I="\u{1D526}",DI="\u2111",RI="\xCC",zI="\xEC",II="\u2148",FI="\u2A0C",qI="\u222D",HI="\u29DC",BI="\u2129",WI="\u0132",UI="\u0133",jI="\u012A",GI="\u012B",VI="\u2111",KI="\u2148",XI="\u2110",YI="\u2111",ZI="\u0131",JI="\u2111",QI="\u22B7",tF="\u01B5",eF="\u21D2",nF="\u2105",rF="\u221E",iF="\u29DD",oF="\u0131",sF="\u22BA",lF="\u222B",aF="\u222C",cF="\u2124",uF="\u222B",fF="\u22BA",hF="\u22C2",dF="\u2A17",pF="\u2A3C",gF="\u2063",vF="\u2062",mF="\u0401",yF="\u0451",bF="\u012E",wF="\u012F",xF="\u{1D540}",_F="\u{1D55A}",SF="\u0399",kF="\u03B9",CF="\u2A3C",TF="\xBF",LF="\u{1D4BE}",EF="\u2110",AF="\u2208",MF="\u22F5",NF="\u22F9",PF="\u22F4",OF="\u22F3",$F="\u2208",DF="\u2062",RF="\u0128",zF="\u0129",IF="\u0406",FF="\u0456",qF="\xCF",HF="\xEF",BF="\u0134",WF="\u0135",UF="\u0419",jF="\u0439",GF="\u{1D50D}",VF="\u{1D527}",KF="\u0237",XF="\u{1D541}",YF="\u{1D55B}",ZF="\u{1D4A5}",JF="\u{1D4BF}",QF="\u0408",tq="\u0458",eq="\u0404",nq="\u0454",rq="\u039A",iq="\u03BA",oq="\u03F0",sq="\u0136",lq="\u0137",aq="\u041A",cq="\u043A",uq="\u{1D50E}",fq="\u{1D528}",hq="\u0138",dq="\u0425",pq="\u0445",gq="\u040C",vq="\u045C",mq="\u{1D542}",yq="\u{1D55C}",bq="\u{1D4A6}",wq="\u{1D4C0}",xq="\u21DA",_q="\u0139",Sq="\u013A",kq="\u29B4",Cq="\u2112",Tq="\u039B",Lq="\u03BB",Eq="\u27E8",Aq="\u27EA",Mq="\u2991",Nq="\u27E8",Pq="\u2A85",Oq="\u2112",$q="\xAB",Dq="\u21E4",Rq="\u291F",zq="\u2190",Iq="\u219E",Fq="\u21D0",qq="\u291D",Hq="\u21A9",Bq="\u21AB",Wq="\u2939",Uq="\u2973",jq="\u21A2",Gq="\u2919",Vq="\u291B",Kq="\u2AAB",Xq="\u2AAD",Yq="\u2AAD\uFE00",Zq="\u290C",Jq="\u290E",Qq="\u2772",tH="{",eH="[",nH="\u298B",rH="\u298F",iH="\u298D",oH="\u013D",sH="\u013E",lH="\u013B",aH="\u013C",cH="\u2308",uH="{",fH="\u041B",hH="\u043B",dH="\u2936",pH="\u201C",gH="\u201E",vH="\u2967",mH="\u294B",yH="\u21B2",bH="\u2264",wH="\u2266",xH="\u27E8",_H="\u21E4",SH="\u2190",kH="\u2190",CH="\u21D0",TH="\u21C6",LH="\u21A2",EH="\u2308",AH="\u27E6",MH="\u2961",NH="\u2959",PH="\u21C3",OH="\u230A",$H="\u21BD",DH="\u21BC",RH="\u21C7",zH="\u2194",IH="\u2194",FH="\u21D4",qH="\u21C6",HH="\u21CB",BH="\u21AD",WH="\u294E",UH="\u21A4",jH="\u22A3",GH="\u295A",VH="\u22CB",KH="\u29CF",XH="\u22B2",YH="\u22B4",ZH="\u2951",JH="\u2960",QH="\u2958",tB="\u21BF",eB="\u2952",nB="\u21BC",rB="\u2A8B",iB="\u22DA",oB="\u2264",sB="\u2266",lB="\u2A7D",aB="\u2AA8",cB="\u2A7D",uB="\u2A7F",fB="\u2A81",hB="\u2A83",dB="\u22DA\uFE00",pB="\u2A93",gB="\u2A85",vB="\u22D6",mB="\u22DA",yB="\u2A8B",bB="\u22DA",wB="\u2266",xB="\u2276",_B="\u2276",SB="\u2AA1",kB="\u2272",CB="\u2A7D",TB="\u2272",LB="\u297C",EB="\u230A",AB="\u{1D50F}",MB="\u{1D529}",NB="\u2276",PB="\u2A91",OB="\u2962",$B="\u21BD",DB="\u21BC",RB="\u296A",zB="\u2584",IB="\u0409",FB="\u0459",qB="\u21C7",HB="\u226A",BB="\u22D8",WB="\u231E",UB="\u21DA",jB="\u296B",GB="\u25FA",VB="\u013F",KB="\u0140",XB="\u23B0",YB="\u23B0",ZB="\u2A89",JB="\u2A89",QB="\u2A87",t3="\u2268",e3="\u2A87",n3="\u2268",r3="\u22E6",i3="\u27EC",o3="\u21FD",s3="\u27E6",l3="\u27F5",a3="\u27F5",c3="\u27F8",u3="\u27F7",f3="\u27F7",h3="\u27FA",d3="\u27FC",p3="\u27F6",g3="\u27F6",v3="\u27F9",m3="\u21AB",y3="\u21AC",b3="\u2985",w3="\u{1D543}",x3="\u{1D55D}",_3="\u2A2D",S3="\u2A34",k3="\u2217",C3="_",T3="\u2199",L3="\u2198",E3="\u25CA",A3="\u25CA",M3="\u29EB",N3="(",P3="\u2993",O3="\u21C6",$3="\u231F",D3="\u21CB",R3="\u296D",z3="\u200E",I3="\u22BF",F3="\u2039",q3="\u{1D4C1}",H3="\u2112",B3="\u21B0",W3="\u21B0",U3="\u2272",j3="\u2A8D",G3="\u2A8F",V3="[",K3="\u2018",X3="\u201A",Y3="\u0141",Z3="\u0142",J3="\u2AA6",Q3="\u2A79",t5="<",e5="<",n5="\u226A",r5="\u22D6",i5="\u22CB",o5="\u22C9",s5="\u2976",l5="\u2A7B",a5="\u25C3",c5="\u22B4",u5="\u25C2",f5="\u2996",h5="\u294A",d5="\u2966",p5="\u2268\uFE00",g5="\u2268\uFE00",v5="\xAF",m5="\u2642",y5="\u2720",b5="\u2720",w5="\u21A6",x5="\u21A6",_5="\u21A7",S5="\u21A4",k5="\u21A5",C5="\u25AE",T5="\u2A29",L5="\u041C",E5="\u043C",A5="\u2014",M5="\u223A",N5="\u2221",P5="\u205F",O5="\u2133",$5="\u{1D510}",D5="\u{1D52A}",R5="\u2127",z5="\xB5",I5="*",F5="\u2AF0",q5="\u2223",H5="\xB7",B5="\u229F",W5="\u2212",U5="\u2238",j5="\u2A2A",G5="\u2213",V5="\u2ADB",K5="\u2026",X5="\u2213",Y5="\u22A7",Z5="\u{1D544}",J5="\u{1D55E}",Q5="\u2213",tW="\u{1D4C2}",eW="\u2133",nW="\u223E",rW="\u039C",iW="\u03BC",oW="\u22B8",sW="\u22B8",lW="\u2207",aW="\u0143",cW="\u0144",uW="\u2220\u20D2",fW="\u2249",hW="\u2A70\u0338",dW="\u224B\u0338",pW="\u0149",gW="\u2249",vW="\u266E",mW="\u2115",yW="\u266E",bW="\xA0",wW="\u224E\u0338",xW="\u224F\u0338",_W="\u2A43",SW="\u0147",kW="\u0148",CW="\u0145",TW="\u0146",LW="\u2247",EW="\u2A6D\u0338",AW="\u2A42",MW="\u041D",NW="\u043D",PW="\u2013",OW="\u2924",$W="\u2197",DW="\u21D7",RW="\u2197",zW="\u2260",IW="\u2250\u0338",FW="\u200B",qW="\u200B",HW="\u200B",BW="\u200B",WW="\u2262",UW="\u2928",jW="\u2242\u0338",GW="\u226B",VW="\u226A",KW=`
|
|
6
|
+
`,XW="\u2204",YW="\u2204",ZW="\u{1D511}",JW="\u{1D52B}",QW="\u2267\u0338",tU="\u2271",eU="\u2271",nU="\u2267\u0338",rU="\u2A7E\u0338",iU="\u2A7E\u0338",oU="\u22D9\u0338",sU="\u2275",lU="\u226B\u20D2",aU="\u226F",cU="\u226F",uU="\u226B\u0338",fU="\u21AE",hU="\u21CE",dU="\u2AF2",pU="\u220B",gU="\u22FC",vU="\u22FA",mU="\u220B",yU="\u040A",bU="\u045A",wU="\u219A",xU="\u21CD",_U="\u2025",SU="\u2266\u0338",kU="\u2270",CU="\u219A",TU="\u21CD",LU="\u21AE",EU="\u21CE",AU="\u2270",MU="\u2266\u0338",NU="\u2A7D\u0338",PU="\u2A7D\u0338",OU="\u226E",$U="\u22D8\u0338",DU="\u2274",RU="\u226A\u20D2",zU="\u226E",IU="\u22EA",FU="\u22EC",qU="\u226A\u0338",HU="\u2224",BU="\u2060",WU="\xA0",UU="\u{1D55F}",jU="\u2115",GU="\u2AEC",VU="\xAC",KU="\u2262",XU="\u226D",YU="\u2226",ZU="\u2209",JU="\u2260",QU="\u2242\u0338",t8="\u2204",e8="\u226F",n8="\u2271",r8="\u2267\u0338",i8="\u226B\u0338",o8="\u2279",s8="\u2A7E\u0338",l8="\u2275",a8="\u224E\u0338",c8="\u224F\u0338",u8="\u2209",f8="\u22F5\u0338",h8="\u22F9\u0338",d8="\u2209",p8="\u22F7",g8="\u22F6",v8="\u29CF\u0338",m8="\u22EA",y8="\u22EC",b8="\u226E",w8="\u2270",x8="\u2278",_8="\u226A\u0338",S8="\u2A7D\u0338",k8="\u2274",C8="\u2AA2\u0338",T8="\u2AA1\u0338",L8="\u220C",E8="\u220C",A8="\u22FE",M8="\u22FD",N8="\u2280",P8="\u2AAF\u0338",O8="\u22E0",$8="\u220C",D8="\u29D0\u0338",R8="\u22EB",z8="\u22ED",I8="\u228F\u0338",F8="\u22E2",q8="\u2290\u0338",H8="\u22E3",B8="\u2282\u20D2",W8="\u2288",U8="\u2281",j8="\u2AB0\u0338",G8="\u22E1",V8="\u227F\u0338",K8="\u2283\u20D2",X8="\u2289",Y8="\u2241",Z8="\u2244",J8="\u2247",Q8="\u2249",t4="\u2224",e4="\u2226",n4="\u2226",r4="\u2AFD\u20E5",i4="\u2202\u0338",o4="\u2A14",s4="\u2280",l4="\u22E0",a4="\u2280",c4="\u2AAF\u0338",u4="\u2AAF\u0338",f4="\u2933\u0338",h4="\u219B",d4="\u21CF",p4="\u219D\u0338",g4="\u219B",v4="\u21CF",m4="\u22EB",y4="\u22ED",b4="\u2281",w4="\u22E1",x4="\u2AB0\u0338",_4="\u{1D4A9}",S4="\u{1D4C3}",k4="\u2224",C4="\u2226",T4="\u2241",L4="\u2244",E4="\u2244",A4="\u2224",M4="\u2226",N4="\u22E2",P4="\u22E3",O4="\u2284",$4="\u2AC5\u0338",D4="\u2288",R4="\u2282\u20D2",z4="\u2288",I4="\u2AC5\u0338",F4="\u2281",q4="\u2AB0\u0338",H4="\u2285",B4="\u2AC6\u0338",W4="\u2289",U4="\u2283\u20D2",j4="\u2289",G4="\u2AC6\u0338",V4="\u2279",K4="\xD1",X4="\xF1",Y4="\u2278",Z4="\u22EA",J4="\u22EC",Q4="\u22EB",t6="\u22ED",e6="\u039D",n6="\u03BD",r6="#",i6="\u2116",o6="\u2007",s6="\u224D\u20D2",l6="\u22AC",a6="\u22AD",c6="\u22AE",u6="\u22AF",f6="\u2265\u20D2",h6=">\u20D2",d6="\u2904",p6="\u29DE",g6="\u2902",v6="\u2264\u20D2",m6="<\u20D2",y6="\u22B4\u20D2",b6="\u2903",w6="\u22B5\u20D2",x6="\u223C\u20D2",_6="\u2923",S6="\u2196",k6="\u21D6",C6="\u2196",T6="\u2927",L6="\xD3",E6="\xF3",A6="\u229B",M6="\xD4",N6="\xF4",P6="\u229A",O6="\u041E",$6="\u043E",D6="\u229D",R6="\u0150",z6="\u0151",I6="\u2A38",F6="\u2299",q6="\u29BC",H6="\u0152",B6="\u0153",W6="\u29BF",U6="\u{1D512}",j6="\u{1D52C}",G6="\u02DB",V6="\xD2",K6="\xF2",X6="\u29C1",Y6="\u29B5",Z6="\u03A9",J6="\u222E",Q6="\u21BA",tj="\u29BE",ej="\u29BB",nj="\u203E",rj="\u29C0",ij="\u014C",oj="\u014D",sj="\u03A9",lj="\u03C9",aj="\u039F",cj="\u03BF",uj="\u29B6",fj="\u2296",hj="\u{1D546}",dj="\u{1D560}",pj="\u29B7",gj="\u201C",vj="\u2018",mj="\u29B9",yj="\u2295",bj="\u21BB",wj="\u2A54",xj="\u2228",_j="\u2A5D",Sj="\u2134",kj="\u2134",Cj="\xAA",Tj="\xBA",Lj="\u22B6",Ej="\u2A56",Aj="\u2A57",Mj="\u2A5B",Nj="\u24C8",Pj="\u{1D4AA}",Oj="\u2134",$j="\xD8",Dj="\xF8",Rj="\u2298",zj="\xD5",Ij="\xF5",Fj="\u2A36",qj="\u2A37",Hj="\u2297",Bj="\xD6",Wj="\xF6",Uj="\u233D",jj="\u203E",Gj="\u23DE",Vj="\u23B4",Kj="\u23DC",Xj="\xB6",Yj="\u2225",Zj="\u2225",Jj="\u2AF3",Qj="\u2AFD",t9="\u2202",e9="\u2202",n9="\u041F",r9="\u043F",i9="%",o9=".",s9="\u2030",l9="\u22A5",a9="\u2031",c9="\u{1D513}",u9="\u{1D52D}",f9="\u03A6",h9="\u03C6",d9="\u03D5",p9="\u2133",g9="\u260E",v9="\u03A0",m9="\u03C0",y9="\u22D4",b9="\u03D6",w9="\u210F",x9="\u210E",_9="\u210F",S9="\u2A23",k9="\u229E",C9="\u2A22",T9="+",L9="\u2214",E9="\u2A25",A9="\u2A72",M9="\xB1",N9="\xB1",P9="\u2A26",O9="\u2A27",$9="\xB1",D9="\u210C",R9="\u2A15",z9="\u{1D561}",I9="\u2119",F9="\xA3",q9="\u2AB7",H9="\u2ABB",B9="\u227A",W9="\u227C",U9="\u2AB7",j9="\u227A",G9="\u227C",V9="\u227A",K9="\u2AAF",X9="\u227C",Y9="\u227E",Z9="\u2AAF",J9="\u2AB9",Q9="\u2AB5",tG="\u22E8",eG="\u2AAF",nG="\u2AB3",rG="\u227E",iG="\u2032",oG="\u2033",sG="\u2119",lG="\u2AB9",aG="\u2AB5",cG="\u22E8",uG="\u220F",fG="\u220F",hG="\u232E",dG="\u2312",pG="\u2313",gG="\u221D",vG="\u221D",mG="\u2237",yG="\u221D",bG="\u227E",wG="\u22B0",xG="\u{1D4AB}",_G="\u{1D4C5}",SG="\u03A8",kG="\u03C8",CG="\u2008",TG="\u{1D514}",LG="\u{1D52E}",EG="\u2A0C",AG="\u{1D562}",MG="\u211A",NG="\u2057",PG="\u{1D4AC}",OG="\u{1D4C6}",$G="\u210D",DG="\u2A16",RG="?",zG="\u225F",IG='"',FG='"',qG="\u21DB",HG="\u223D\u0331",BG="\u0154",WG="\u0155",UG="\u221A",jG="\u29B3",GG="\u27E9",VG="\u27EB",KG="\u2992",XG="\u29A5",YG="\u27E9",ZG="\xBB",JG="\u2975",QG="\u21E5",tV="\u2920",eV="\u2933",nV="\u2192",rV="\u21A0",iV="\u21D2",oV="\u291E",sV="\u21AA",lV="\u21AC",aV="\u2945",cV="\u2974",uV="\u2916",fV="\u21A3",hV="\u219D",dV="\u291A",pV="\u291C",gV="\u2236",vV="\u211A",mV="\u290D",yV="\u290F",bV="\u2910",wV="\u2773",xV="}",_V="]",SV="\u298C",kV="\u298E",CV="\u2990",TV="\u0158",LV="\u0159",EV="\u0156",AV="\u0157",MV="\u2309",NV="}",PV="\u0420",OV="\u0440",$V="\u2937",DV="\u2969",RV="\u201D",zV="\u201D",IV="\u21B3",FV="\u211C",qV="\u211B",HV="\u211C",BV="\u211D",WV="\u211C",UV="\u25AD",jV="\xAE",GV="\xAE",VV="\u220B",KV="\u21CB",XV="\u296F",YV="\u297D",ZV="\u230B",JV="\u{1D52F}",QV="\u211C",tK="\u2964",eK="\u21C1",nK="\u21C0",rK="\u296C",iK="\u03A1",oK="\u03C1",sK="\u03F1",lK="\u27E9",aK="\u21E5",cK="\u2192",uK="\u2192",fK="\u21D2",hK="\u21C4",dK="\u21A3",pK="\u2309",gK="\u27E7",vK="\u295D",mK="\u2955",yK="\u21C2",bK="\u230B",wK="\u21C1",xK="\u21C0",_K="\u21C4",SK="\u21CC",kK="\u21C9",CK="\u219D",TK="\u21A6",LK="\u22A2",EK="\u295B",AK="\u22CC",MK="\u29D0",NK="\u22B3",PK="\u22B5",OK="\u294F",$K="\u295C",DK="\u2954",RK="\u21BE",zK="\u2953",IK="\u21C0",FK="\u02DA",qK="\u2253",HK="\u21C4",BK="\u21CC",WK="\u200F",UK="\u23B1",jK="\u23B1",GK="\u2AEE",VK="\u27ED",KK="\u21FE",XK="\u27E7",YK="\u2986",ZK="\u{1D563}",JK="\u211D",QK="\u2A2E",t7="\u2A35",e7="\u2970",n7=")",r7="\u2994",i7="\u2A12",o7="\u21C9",s7="\u21DB",l7="\u203A",a7="\u{1D4C7}",c7="\u211B",u7="\u21B1",f7="\u21B1",h7="]",d7="\u2019",p7="\u2019",g7="\u22CC",v7="\u22CA",m7="\u25B9",y7="\u22B5",b7="\u25B8",w7="\u29CE",x7="\u29F4",_7="\u2968",S7="\u211E",k7="\u015A",C7="\u015B",T7="\u201A",L7="\u2AB8",E7="\u0160",A7="\u0161",M7="\u2ABC",N7="\u227B",P7="\u227D",O7="\u2AB0",$7="\u2AB4",D7="\u015E",R7="\u015F",z7="\u015C",I7="\u015D",F7="\u2ABA",q7="\u2AB6",H7="\u22E9",B7="\u2A13",W7="\u227F",U7="\u0421",j7="\u0441",G7="\u22A1",V7="\u22C5",K7="\u2A66",X7="\u2925",Y7="\u2198",Z7="\u21D8",J7="\u2198",Q7="\xA7",tX=";",eX="\u2929",nX="\u2216",rX="\u2216",iX="\u2736",oX="\u{1D516}",sX="\u{1D530}",lX="\u2322",aX="\u266F",cX="\u0429",uX="\u0449",fX="\u0428",hX="\u0448",dX="\u2193",pX="\u2190",gX="\u2223",vX="\u2225",mX="\u2192",yX="\u2191",bX="\xAD",wX="\u03A3",xX="\u03C3",_X="\u03C2",SX="\u03C2",kX="\u223C",CX="\u2A6A",TX="\u2243",LX="\u2243",EX="\u2A9E",AX="\u2AA0",MX="\u2A9D",NX="\u2A9F",PX="\u2246",OX="\u2A24",$X="\u2972",DX="\u2190",RX="\u2218",zX="\u2216",IX="\u2A33",FX="\u29E4",qX="\u2223",HX="\u2323",BX="\u2AAA",WX="\u2AAC",UX="\u2AAC\uFE00",jX="\u042C",GX="\u044C",VX="\u233F",KX="\u29C4",XX="/",YX="\u{1D54A}",ZX="\u{1D564}",JX="\u2660",QX="\u2660",tY="\u2225",eY="\u2293",nY="\u2293\uFE00",rY="\u2294",iY="\u2294\uFE00",oY="\u221A",sY="\u228F",lY="\u2291",aY="\u228F",cY="\u2291",uY="\u2290",fY="\u2292",hY="\u2290",dY="\u2292",pY="\u25A1",gY="\u25A1",vY="\u2293",mY="\u228F",yY="\u2291",bY="\u2290",wY="\u2292",xY="\u2294",_Y="\u25AA",SY="\u25A1",kY="\u25AA",CY="\u2192",TY="\u{1D4AE}",LY="\u{1D4C8}",EY="\u2216",AY="\u2323",MY="\u22C6",NY="\u22C6",PY="\u2606",OY="\u2605",$Y="\u03F5",DY="\u03D5",RY="\xAF",zY="\u2282",IY="\u22D0",FY="\u2ABD",qY="\u2AC5",HY="\u2286",BY="\u2AC3",WY="\u2AC1",UY="\u2ACB",jY="\u228A",GY="\u2ABF",VY="\u2979",KY="\u2282",XY="\u22D0",YY="\u2286",ZY="\u2AC5",JY="\u2286",QY="\u228A",tZ="\u2ACB",eZ="\u2AC7",nZ="\u2AD5",rZ="\u2AD3",iZ="\u2AB8",oZ="\u227B",sZ="\u227D",lZ="\u227B",aZ="\u2AB0",cZ="\u227D",uZ="\u227F",fZ="\u2AB0",hZ="\u2ABA",dZ="\u2AB6",pZ="\u22E9",gZ="\u227F",vZ="\u220B",mZ="\u2211",yZ="\u2211",bZ="\u266A",wZ="\xB9",xZ="\xB2",_Z="\xB3",SZ="\u2283",kZ="\u22D1",CZ="\u2ABE",TZ="\u2AD8",LZ="\u2AC6",EZ="\u2287",AZ="\u2AC4",MZ="\u2283",NZ="\u2287",PZ="\u27C9",OZ="\u2AD7",$Z="\u297B",DZ="\u2AC2",RZ="\u2ACC",zZ="\u228B",IZ="\u2AC0",FZ="\u2283",qZ="\u22D1",HZ="\u2287",BZ="\u2AC6",WZ="\u228B",UZ="\u2ACC",jZ="\u2AC8",GZ="\u2AD4",VZ="\u2AD6",KZ="\u2926",XZ="\u2199",YZ="\u21D9",ZZ="\u2199",JZ="\u292A",QZ="\xDF",tJ=" ",eJ="\u2316",nJ="\u03A4",rJ="\u03C4",iJ="\u23B4",oJ="\u0164",sJ="\u0165",lJ="\u0162",aJ="\u0163",cJ="\u0422",uJ="\u0442",fJ="\u20DB",hJ="\u2315",dJ="\u{1D517}",pJ="\u{1D531}",gJ="\u2234",vJ="\u2234",mJ="\u2234",yJ="\u0398",bJ="\u03B8",wJ="\u03D1",xJ="\u03D1",_J="\u2248",SJ="\u223C",kJ="\u205F\u200A",CJ="\u2009",TJ="\u2009",LJ="\u2248",EJ="\u223C",AJ="\xDE",MJ="\xFE",NJ="\u02DC",PJ="\u223C",OJ="\u2243",$J="\u2245",DJ="\u2248",RJ="\u2A31",zJ="\u22A0",IJ="\xD7",FJ="\u2A30",qJ="\u222D",HJ="\u2928",BJ="\u2336",WJ="\u2AF1",UJ="\u22A4",jJ="\u{1D54B}",GJ="\u{1D565}",VJ="\u2ADA",KJ="\u2929",XJ="\u2034",YJ="\u2122",ZJ="\u2122",JJ="\u25B5",QJ="\u25BF",tQ="\u25C3",eQ="\u22B4",nQ="\u225C",rQ="\u25B9",iQ="\u22B5",oQ="\u25EC",sQ="\u225C",lQ="\u2A3A",aQ="\u20DB",cQ="\u2A39",uQ="\u29CD",fQ="\u2A3B",hQ="\u23E2",dQ="\u{1D4AF}",pQ="\u{1D4C9}",gQ="\u0426",vQ="\u0446",mQ="\u040B",yQ="\u045B",bQ="\u0166",wQ="\u0167",xQ="\u226C",_Q="\u219E",SQ="\u21A0",kQ="\xDA",CQ="\xFA",TQ="\u2191",LQ="\u219F",EQ="\u21D1",AQ="\u2949",MQ="\u040E",NQ="\u045E",PQ="\u016C",OQ="\u016D",$Q="\xDB",DQ="\xFB",RQ="\u0423",zQ="\u0443",IQ="\u21C5",FQ="\u0170",qQ="\u0171",HQ="\u296E",BQ="\u297E",WQ="\u{1D518}",UQ="\u{1D532}",jQ="\xD9",GQ="\xF9",VQ="\u2963",KQ="\u21BF",XQ="\u21BE",YQ="\u2580",ZQ="\u231C",JQ="\u231C",QQ="\u230F",ttt="\u25F8",ett="\u016A",ntt="\u016B",rtt="\xA8",itt="_",ott="\u23DF",stt="\u23B5",ltt="\u23DD",att="\u22C3",ctt="\u228E",utt="\u0172",ftt="\u0173",htt="\u{1D54C}",dtt="\u{1D566}",ptt="\u2912",gtt="\u2191",vtt="\u2191",mtt="\u21D1",ytt="\u21C5",btt="\u2195",wtt="\u2195",xtt="\u21D5",_tt="\u296E",Stt="\u21BF",ktt="\u21BE",Ctt="\u228E",Ttt="\u2196",Ltt="\u2197",Ett="\u03C5",Att="\u03D2",Mtt="\u03D2",Ntt="\u03A5",Ptt="\u03C5",Ott="\u21A5",$tt="\u22A5",Dtt="\u21C8",Rtt="\u231D",ztt="\u231D",Itt="\u230E",Ftt="\u016E",qtt="\u016F",Htt="\u25F9",Btt="\u{1D4B0}",Wtt="\u{1D4CA}",Utt="\u22F0",jtt="\u0168",Gtt="\u0169",Vtt="\u25B5",Ktt="\u25B4",Xtt="\u21C8",Ytt="\xDC",Ztt="\xFC",Jtt="\u29A7",Qtt="\u299C",tet="\u03F5",eet="\u03F0",net="\u2205",ret="\u03D5",iet="\u03D6",oet="\u221D",set="\u2195",aet="\u21D5",cet="\u03F1",uet="\u03C2",fet="\u228A\uFE00",het="\u2ACB\uFE00",det="\u228B\uFE00",pet="\u2ACC\uFE00",get="\u03D1",vet="\u22B2",met="\u22B3",yet="\u2AE8",bet="\u2AEB",wet="\u2AE9",xet="\u0412",_et="\u0432",ket="\u22A2",Cet="\u22A8",Tet="\u22A9",Let="\u22AB",Eet="\u2AE6",Aet="\u22BB",Met="\u2228",Net="\u22C1",Pet="\u225A",Oet="\u22EE",$et="|",Det="\u2016",Ret="|",zet="\u2016",Iet="\u2223",Fet="|",qet="\u2758",Het="\u2240",Bet="\u200A",Wet="\u{1D519}",Uet="\u{1D533}",jet="\u22B2",Get="\u2282\u20D2",Vet="\u2283\u20D2",Ket="\u{1D54D}",Xet="\u{1D567}",Yet="\u221D",Zet="\u22B3",Jet="\u{1D4B1}",Qet="\u{1D4CB}",tnt="\u2ACB\uFE00",ent="\u228A\uFE00",nnt="\u2ACC\uFE00",rnt="\u228B\uFE00",int="\u22AA",ont="\u299A",snt="\u0174",lnt="\u0175",ant="\u2A5F",cnt="\u2227",unt="\u22C0",fnt="\u2259",hnt="\u2118",dnt="\u{1D51A}",pnt="\u{1D534}",gnt="\u{1D54E}",vnt="\u{1D568}",mnt="\u2118",ynt="\u2240",bnt="\u2240",wnt="\u{1D4B2}",xnt="\u{1D4CC}",_nt="\u22C2",Snt="\u25EF",knt="\u22C3",Cnt="\u25BD",Tnt="\u{1D51B}",Lnt="\u{1D535}",Ent="\u27F7",Ant="\u27FA",Mnt="\u039E",Nnt="\u03BE",Pnt="\u27F5",Ont="\u27F8",$nt="\u27FC",Dnt="\u22FB",Rnt="\u2A00",znt="\u{1D54F}",Int="\u{1D569}",Fnt="\u2A01",qnt="\u2A02",Hnt="\u27F6",Bnt="\u27F9",Wnt="\u{1D4B3}",Unt="\u{1D4CD}",jnt="\u2A06",Gnt="\u2A04",Vnt="\u25B3",Knt="\u22C1",Xnt="\u22C0",Ynt="\xDD",Znt="\xFD",Jnt="\u042F",Qnt="\u044F",trt="\u0176",ert="\u0177",nrt="\u042B",rrt="\u044B",irt="\xA5",ort="\u{1D51C}",srt="\u{1D536}",lrt="\u0407",art="\u0457",crt="\u{1D550}",urt="\u{1D56A}",frt="\u{1D4B4}",hrt="\u{1D4CE}",drt="\u042E",prt="\u044E",grt="\xFF",vrt="\u0178",mrt="\u0179",yrt="\u017A",brt="\u017D",wrt="\u017E",xrt="\u0417",_rt="\u0437",Srt="\u017B",krt="\u017C",Crt="\u2128",Trt="\u200B",Lrt="\u0396",Ert="\u03B6",Art="\u{1D537}",Mrt="\u2128",Nrt="\u0416",Prt="\u0436",Ort="\u21DD",$rt="\u{1D56B}",Drt="\u2124",Rrt="\u{1D4B5}",zrt="\u{1D4CF}",Irt="\u200D",Frt="\u200C",B0={Aacute:xT,aacute:_T,Abreve:ST,abreve:kT,ac:CT,acd:TT,acE:LT,Acirc:ET,acirc:AT,acute:MT,Acy:NT,acy:PT,AElig:OT,aelig:$T,af:DT,Afr:RT,afr:zT,Agrave:IT,agrave:FT,alefsym:qT,aleph:HT,Alpha:BT,alpha:WT,Amacr:UT,amacr:jT,amalg:GT,amp:VT,AMP:KT,andand:XT,And:YT,and:ZT,andd:JT,andslope:QT,andv:tL,ang:eL,ange:nL,angle:rL,angmsdaa:iL,angmsdab:oL,angmsdac:sL,angmsdad:lL,angmsdae:aL,angmsdaf:cL,angmsdag:uL,angmsdah:fL,angmsd:hL,angrt:dL,angrtvb:pL,angrtvbd:gL,angsph:vL,angst:mL,angzarr:yL,Aogon:bL,aogon:wL,Aopf:xL,aopf:_L,apacir:SL,ap:kL,apE:CL,ape:TL,apid:LL,apos:EL,ApplyFunction:AL,approx:ML,approxeq:NL,Aring:PL,aring:OL,Ascr:$L,ascr:DL,Assign:RL,ast:zL,asymp:IL,asympeq:FL,Atilde:qL,atilde:HL,Auml:BL,auml:WL,awconint:UL,awint:jL,backcong:GL,backepsilon:VL,backprime:KL,backsim:XL,backsimeq:YL,Backslash:ZL,Barv:JL,barvee:QL,barwed:tE,Barwed:eE,barwedge:nE,bbrk:rE,bbrktbrk:iE,bcong:oE,Bcy:sE,bcy:lE,bdquo:aE,becaus:cE,because:uE,Because:fE,bemptyv:hE,bepsi:dE,bernou:pE,Bernoullis:gE,Beta:vE,beta:mE,beth:yE,between:bE,Bfr:wE,bfr:xE,bigcap:_E,bigcirc:SE,bigcup:kE,bigodot:CE,bigoplus:TE,bigotimes:LE,bigsqcup:EE,bigstar:AE,bigtriangledown:ME,bigtriangleup:NE,biguplus:PE,bigvee:OE,bigwedge:$E,bkarow:DE,blacklozenge:RE,blacksquare:zE,blacktriangle:IE,blacktriangledown:FE,blacktriangleleft:qE,blacktriangleright:HE,blank:BE,blk12:WE,blk14:UE,blk34:jE,block:GE,bne:VE,bnequiv:KE,bNot:XE,bnot:YE,Bopf:ZE,bopf:JE,bot:QE,bottom:tA,bowtie:eA,boxbox:nA,boxdl:rA,boxdL:iA,boxDl:oA,boxDL:sA,boxdr:lA,boxdR:aA,boxDr:cA,boxDR:uA,boxh:fA,boxH:hA,boxhd:dA,boxHd:pA,boxhD:gA,boxHD:vA,boxhu:mA,boxHu:yA,boxhU:bA,boxHU:wA,boxminus:xA,boxplus:_A,boxtimes:SA,boxul:kA,boxuL:CA,boxUl:TA,boxUL:LA,boxur:EA,boxuR:AA,boxUr:MA,boxUR:NA,boxv:PA,boxV:OA,boxvh:$A,boxvH:DA,boxVh:RA,boxVH:zA,boxvl:IA,boxvL:FA,boxVl:qA,boxVL:HA,boxvr:BA,boxvR:WA,boxVr:UA,boxVR:jA,bprime:GA,breve:VA,Breve:KA,brvbar:XA,bscr:YA,Bscr:ZA,bsemi:JA,bsim:QA,bsime:tM,bsolb:eM,bsol:nM,bsolhsub:rM,bull:iM,bullet:oM,bump:sM,bumpE:lM,bumpe:aM,Bumpeq:cM,bumpeq:uM,Cacute:fM,cacute:hM,capand:dM,capbrcup:pM,capcap:gM,cap:vM,Cap:mM,capcup:yM,capdot:bM,CapitalDifferentialD:wM,caps:xM,caret:_M,caron:SM,Cayleys:kM,ccaps:CM,Ccaron:TM,ccaron:LM,Ccedil:EM,ccedil:AM,Ccirc:MM,ccirc:NM,Cconint:PM,ccups:OM,ccupssm:$M,Cdot:DM,cdot:RM,cedil:zM,Cedilla:IM,cemptyv:FM,cent:qM,centerdot:HM,CenterDot:BM,cfr:WM,Cfr:UM,CHcy:jM,chcy:GM,check:VM,checkmark:KM,Chi:XM,chi:YM,circ:ZM,circeq:JM,circlearrowleft:QM,circlearrowright:tN,circledast:eN,circledcirc:nN,circleddash:rN,CircleDot:iN,circledR:oN,circledS:sN,CircleMinus:lN,CirclePlus:aN,CircleTimes:cN,cir:uN,cirE:fN,cire:hN,cirfnint:dN,cirmid:pN,cirscir:gN,ClockwiseContourIntegral:vN,CloseCurlyDoubleQuote:mN,CloseCurlyQuote:yN,clubs:bN,clubsuit:wN,colon:xN,Colon:_N,Colone:SN,colone:kN,coloneq:CN,comma:TN,commat:LN,comp:EN,compfn:AN,complement:MN,complexes:NN,cong:PN,congdot:ON,Congruent:$N,conint:DN,Conint:RN,ContourIntegral:zN,copf:IN,Copf:FN,coprod:qN,Coproduct:HN,copy:BN,COPY:WN,copysr:UN,CounterClockwiseContourIntegral:jN,crarr:GN,cross:VN,Cross:KN,Cscr:XN,cscr:YN,csub:ZN,csube:JN,csup:QN,csupe:tP,ctdot:eP,cudarrl:nP,cudarrr:rP,cuepr:iP,cuesc:oP,cularr:sP,cularrp:lP,cupbrcap:aP,cupcap:cP,CupCap:uP,cup:fP,Cup:hP,cupcup:dP,cupdot:pP,cupor:gP,cups:vP,curarr:mP,curarrm:yP,curlyeqprec:bP,curlyeqsucc:wP,curlyvee:xP,curlywedge:_P,curren:SP,curvearrowleft:kP,curvearrowright:CP,cuvee:TP,cuwed:LP,cwconint:EP,cwint:AP,cylcty:MP,dagger:NP,Dagger:PP,daleth:OP,darr:$P,Darr:DP,dArr:RP,dash:zP,Dashv:IP,dashv:FP,dbkarow:qP,dblac:HP,Dcaron:BP,dcaron:WP,Dcy:UP,dcy:jP,ddagger:GP,ddarr:VP,DD:KP,dd:XP,DDotrahd:YP,ddotseq:ZP,deg:JP,Del:QP,Delta:tO,delta:eO,demptyv:nO,dfisht:rO,Dfr:iO,dfr:oO,dHar:sO,dharl:lO,dharr:aO,DiacriticalAcute:cO,DiacriticalDot:uO,DiacriticalDoubleAcute:fO,DiacriticalGrave:hO,DiacriticalTilde:dO,diam:pO,diamond:gO,Diamond:vO,diamondsuit:mO,diams:yO,die:bO,DifferentialD:wO,digamma:xO,disin:_O,div:SO,divide:kO,divideontimes:CO,divonx:TO,DJcy:LO,djcy:EO,dlcorn:AO,dlcrop:MO,dollar:NO,Dopf:PO,dopf:OO,Dot:$O,dot:DO,DotDot:RO,doteq:zO,doteqdot:IO,DotEqual:FO,dotminus:qO,dotplus:HO,dotsquare:BO,doublebarwedge:WO,DoubleContourIntegral:UO,DoubleDot:jO,DoubleDownArrow:GO,DoubleLeftArrow:VO,DoubleLeftRightArrow:KO,DoubleLeftTee:XO,DoubleLongLeftArrow:YO,DoubleLongLeftRightArrow:ZO,DoubleLongRightArrow:JO,DoubleRightArrow:QO,DoubleRightTee:t$,DoubleUpArrow:e$,DoubleUpDownArrow:n$,DoubleVerticalBar:r$,DownArrowBar:i$,downarrow:o$,DownArrow:s$,Downarrow:l$,DownArrowUpArrow:a$,DownBreve:c$,downdownarrows:u$,downharpoonleft:f$,downharpoonright:h$,DownLeftRightVector:d$,DownLeftTeeVector:p$,DownLeftVectorBar:g$,DownLeftVector:v$,DownRightTeeVector:m$,DownRightVectorBar:y$,DownRightVector:b$,DownTeeArrow:w$,DownTee:x$,drbkarow:_$,drcorn:S$,drcrop:k$,Dscr:C$,dscr:T$,DScy:L$,dscy:E$,dsol:A$,Dstrok:M$,dstrok:N$,dtdot:P$,dtri:O$,dtrif:$$,duarr:D$,duhar:R$,dwangle:z$,DZcy:I$,dzcy:F$,dzigrarr:q$,Eacute:H$,eacute:B$,easter:W$,Ecaron:U$,ecaron:j$,Ecirc:G$,ecirc:V$,ecir:K$,ecolon:X$,Ecy:Y$,ecy:Z$,eDDot:J$,Edot:Q$,edot:tD,eDot:eD,ee:nD,efDot:rD,Efr:iD,efr:oD,eg:sD,Egrave:lD,egrave:aD,egs:cD,egsdot:uD,el:fD,Element:hD,elinters:dD,ell:pD,els:gD,elsdot:vD,Emacr:mD,emacr:yD,empty:bD,emptyset:wD,EmptySmallSquare:xD,emptyv:_D,EmptyVerySmallSquare:SD,emsp13:kD,emsp14:CD,emsp:TD,ENG:LD,eng:ED,ensp:AD,Eogon:MD,eogon:ND,Eopf:PD,eopf:OD,epar:$D,eparsl:DD,eplus:RD,epsi:zD,Epsilon:ID,epsilon:FD,epsiv:qD,eqcirc:HD,eqcolon:BD,eqsim:WD,eqslantgtr:UD,eqslantless:jD,Equal:GD,equals:VD,EqualTilde:KD,equest:XD,Equilibrium:YD,equiv:ZD,equivDD:JD,eqvparsl:QD,erarr:tR,erDot:eR,escr:nR,Escr:rR,esdot:iR,Esim:oR,esim:sR,Eta:lR,eta:aR,ETH:cR,eth:uR,Euml:fR,euml:hR,euro:dR,excl:pR,exist:gR,Exists:vR,expectation:mR,exponentiale:yR,ExponentialE:bR,fallingdotseq:wR,Fcy:xR,fcy:_R,female:SR,ffilig:kR,fflig:CR,ffllig:TR,Ffr:LR,ffr:ER,filig:AR,FilledSmallSquare:MR,FilledVerySmallSquare:NR,fjlig:PR,flat:OR,fllig:$R,fltns:DR,fnof:RR,Fopf:zR,fopf:IR,forall:FR,ForAll:qR,fork:HR,forkv:BR,Fouriertrf:WR,fpartint:UR,frac12:jR,frac13:GR,frac14:VR,frac15:KR,frac16:XR,frac18:YR,frac23:ZR,frac25:JR,frac34:QR,frac35:tz,frac38:ez,frac45:nz,frac56:rz,frac58:iz,frac78:oz,frasl:sz,frown:lz,fscr:az,Fscr:cz,gacute:uz,Gamma:fz,gamma:hz,Gammad:dz,gammad:pz,gap:gz,Gbreve:vz,gbreve:mz,Gcedil:yz,Gcirc:bz,gcirc:wz,Gcy:xz,gcy:_z,Gdot:Sz,gdot:kz,ge:Cz,gE:Tz,gEl:Lz,gel:Ez,geq:Az,geqq:Mz,geqslant:Nz,gescc:Pz,ges:Oz,gesdot:$z,gesdoto:Dz,gesdotol:Rz,gesl:zz,gesles:Iz,Gfr:Fz,gfr:qz,gg:Hz,Gg:Bz,ggg:Wz,gimel:Uz,GJcy:jz,gjcy:Gz,gla:Vz,gl:Kz,glE:Xz,glj:Yz,gnap:Zz,gnapprox:Jz,gne:Qz,gnE:t2,gneq:e2,gneqq:n2,gnsim:r2,Gopf:i2,gopf:o2,grave:s2,GreaterEqual:l2,GreaterEqualLess:a2,GreaterFullEqual:c2,GreaterGreater:u2,GreaterLess:f2,GreaterSlantEqual:h2,GreaterTilde:d2,Gscr:p2,gscr:g2,gsim:v2,gsime:m2,gsiml:y2,gtcc:b2,gtcir:w2,gt:x2,GT:_2,Gt:S2,gtdot:k2,gtlPar:C2,gtquest:T2,gtrapprox:L2,gtrarr:E2,gtrdot:A2,gtreqless:M2,gtreqqless:N2,gtrless:P2,gtrsim:O2,gvertneqq:$2,gvnE:D2,Hacek:R2,hairsp:z2,half:I2,hamilt:F2,HARDcy:q2,hardcy:H2,harrcir:B2,harr:W2,hArr:U2,harrw:j2,Hat:G2,hbar:V2,Hcirc:K2,hcirc:X2,hearts:Y2,heartsuit:Z2,hellip:J2,hercon:Q2,hfr:tI,Hfr:eI,HilbertSpace:nI,hksearow:rI,hkswarow:iI,hoarr:oI,homtht:sI,hookleftarrow:lI,hookrightarrow:aI,hopf:cI,Hopf:uI,horbar:fI,HorizontalLine:hI,hscr:dI,Hscr:pI,hslash:gI,Hstrok:vI,hstrok:mI,HumpDownHump:yI,HumpEqual:bI,hybull:wI,hyphen:xI,Iacute:_I,iacute:SI,ic:kI,Icirc:CI,icirc:TI,Icy:LI,icy:EI,Idot:AI,IEcy:MI,iecy:NI,iexcl:PI,iff:OI,ifr:$I,Ifr:DI,Igrave:RI,igrave:zI,ii:II,iiiint:FI,iiint:qI,iinfin:HI,iiota:BI,IJlig:WI,ijlig:UI,Imacr:jI,imacr:GI,image:VI,ImaginaryI:KI,imagline:XI,imagpart:YI,imath:ZI,Im:JI,imof:QI,imped:tF,Implies:eF,incare:nF,in:"\u2208",infin:rF,infintie:iF,inodot:oF,intcal:sF,int:lF,Int:aF,integers:cF,Integral:uF,intercal:fF,Intersection:hF,intlarhk:dF,intprod:pF,InvisibleComma:gF,InvisibleTimes:vF,IOcy:mF,iocy:yF,Iogon:bF,iogon:wF,Iopf:xF,iopf:_F,Iota:SF,iota:kF,iprod:CF,iquest:TF,iscr:LF,Iscr:EF,isin:AF,isindot:MF,isinE:NF,isins:PF,isinsv:OF,isinv:$F,it:DF,Itilde:RF,itilde:zF,Iukcy:IF,iukcy:FF,Iuml:qF,iuml:HF,Jcirc:BF,jcirc:WF,Jcy:UF,jcy:jF,Jfr:GF,jfr:VF,jmath:KF,Jopf:XF,jopf:YF,Jscr:ZF,jscr:JF,Jsercy:QF,jsercy:tq,Jukcy:eq,jukcy:nq,Kappa:rq,kappa:iq,kappav:oq,Kcedil:sq,kcedil:lq,Kcy:aq,kcy:cq,Kfr:uq,kfr:fq,kgreen:hq,KHcy:dq,khcy:pq,KJcy:gq,kjcy:vq,Kopf:mq,kopf:yq,Kscr:bq,kscr:wq,lAarr:xq,Lacute:_q,lacute:Sq,laemptyv:kq,lagran:Cq,Lambda:Tq,lambda:Lq,lang:Eq,Lang:Aq,langd:Mq,langle:Nq,lap:Pq,Laplacetrf:Oq,laquo:$q,larrb:Dq,larrbfs:Rq,larr:zq,Larr:Iq,lArr:Fq,larrfs:qq,larrhk:Hq,larrlp:Bq,larrpl:Wq,larrsim:Uq,larrtl:jq,latail:Gq,lAtail:Vq,lat:Kq,late:Xq,lates:Yq,lbarr:Zq,lBarr:Jq,lbbrk:Qq,lbrace:tH,lbrack:eH,lbrke:nH,lbrksld:rH,lbrkslu:iH,Lcaron:oH,lcaron:sH,Lcedil:lH,lcedil:aH,lceil:cH,lcub:uH,Lcy:fH,lcy:hH,ldca:dH,ldquo:pH,ldquor:gH,ldrdhar:vH,ldrushar:mH,ldsh:yH,le:bH,lE:wH,LeftAngleBracket:xH,LeftArrowBar:_H,leftarrow:SH,LeftArrow:kH,Leftarrow:CH,LeftArrowRightArrow:TH,leftarrowtail:LH,LeftCeiling:EH,LeftDoubleBracket:AH,LeftDownTeeVector:MH,LeftDownVectorBar:NH,LeftDownVector:PH,LeftFloor:OH,leftharpoondown:$H,leftharpoonup:DH,leftleftarrows:RH,leftrightarrow:zH,LeftRightArrow:IH,Leftrightarrow:FH,leftrightarrows:qH,leftrightharpoons:HH,leftrightsquigarrow:BH,LeftRightVector:WH,LeftTeeArrow:UH,LeftTee:jH,LeftTeeVector:GH,leftthreetimes:VH,LeftTriangleBar:KH,LeftTriangle:XH,LeftTriangleEqual:YH,LeftUpDownVector:ZH,LeftUpTeeVector:JH,LeftUpVectorBar:QH,LeftUpVector:tB,LeftVectorBar:eB,LeftVector:nB,lEg:rB,leg:iB,leq:oB,leqq:sB,leqslant:lB,lescc:aB,les:cB,lesdot:uB,lesdoto:fB,lesdotor:hB,lesg:dB,lesges:pB,lessapprox:gB,lessdot:vB,lesseqgtr:mB,lesseqqgtr:yB,LessEqualGreater:bB,LessFullEqual:wB,LessGreater:xB,lessgtr:_B,LessLess:SB,lesssim:kB,LessSlantEqual:CB,LessTilde:TB,lfisht:LB,lfloor:EB,Lfr:AB,lfr:MB,lg:NB,lgE:PB,lHar:OB,lhard:$B,lharu:DB,lharul:RB,lhblk:zB,LJcy:IB,ljcy:FB,llarr:qB,ll:HB,Ll:BB,llcorner:WB,Lleftarrow:UB,llhard:jB,lltri:GB,Lmidot:VB,lmidot:KB,lmoustache:XB,lmoust:YB,lnap:ZB,lnapprox:JB,lne:QB,lnE:t3,lneq:e3,lneqq:n3,lnsim:r3,loang:i3,loarr:o3,lobrk:s3,longleftarrow:l3,LongLeftArrow:a3,Longleftarrow:c3,longleftrightarrow:u3,LongLeftRightArrow:f3,Longleftrightarrow:h3,longmapsto:d3,longrightarrow:p3,LongRightArrow:g3,Longrightarrow:v3,looparrowleft:m3,looparrowright:y3,lopar:b3,Lopf:w3,lopf:x3,loplus:_3,lotimes:S3,lowast:k3,lowbar:C3,LowerLeftArrow:T3,LowerRightArrow:L3,loz:E3,lozenge:A3,lozf:M3,lpar:N3,lparlt:P3,lrarr:O3,lrcorner:$3,lrhar:D3,lrhard:R3,lrm:z3,lrtri:I3,lsaquo:F3,lscr:q3,Lscr:H3,lsh:B3,Lsh:W3,lsim:U3,lsime:j3,lsimg:G3,lsqb:V3,lsquo:K3,lsquor:X3,Lstrok:Y3,lstrok:Z3,ltcc:J3,ltcir:Q3,lt:t5,LT:e5,Lt:n5,ltdot:r5,lthree:i5,ltimes:o5,ltlarr:s5,ltquest:l5,ltri:a5,ltrie:c5,ltrif:u5,ltrPar:f5,lurdshar:h5,luruhar:d5,lvertneqq:p5,lvnE:g5,macr:v5,male:m5,malt:y5,maltese:b5,Map:"\u2905",map:w5,mapsto:x5,mapstodown:_5,mapstoleft:S5,mapstoup:k5,marker:C5,mcomma:T5,Mcy:L5,mcy:E5,mdash:A5,mDDot:M5,measuredangle:N5,MediumSpace:P5,Mellintrf:O5,Mfr:$5,mfr:D5,mho:R5,micro:z5,midast:I5,midcir:F5,mid:q5,middot:H5,minusb:B5,minus:W5,minusd:U5,minusdu:j5,MinusPlus:G5,mlcp:V5,mldr:K5,mnplus:X5,models:Y5,Mopf:Z5,mopf:J5,mp:Q5,mscr:tW,Mscr:eW,mstpos:nW,Mu:rW,mu:iW,multimap:oW,mumap:sW,nabla:lW,Nacute:aW,nacute:cW,nang:uW,nap:fW,napE:hW,napid:dW,napos:pW,napprox:gW,natural:vW,naturals:mW,natur:yW,nbsp:bW,nbump:wW,nbumpe:xW,ncap:_W,Ncaron:SW,ncaron:kW,Ncedil:CW,ncedil:TW,ncong:LW,ncongdot:EW,ncup:AW,Ncy:MW,ncy:NW,ndash:PW,nearhk:OW,nearr:$W,neArr:DW,nearrow:RW,ne:zW,nedot:IW,NegativeMediumSpace:FW,NegativeThickSpace:qW,NegativeThinSpace:HW,NegativeVeryThinSpace:BW,nequiv:WW,nesear:UW,nesim:jW,NestedGreaterGreater:GW,NestedLessLess:VW,NewLine:KW,nexist:XW,nexists:YW,Nfr:ZW,nfr:JW,ngE:QW,nge:tU,ngeq:eU,ngeqq:nU,ngeqslant:rU,nges:iU,nGg:oU,ngsim:sU,nGt:lU,ngt:aU,ngtr:cU,nGtv:uU,nharr:fU,nhArr:hU,nhpar:dU,ni:pU,nis:gU,nisd:vU,niv:mU,NJcy:yU,njcy:bU,nlarr:wU,nlArr:xU,nldr:_U,nlE:SU,nle:kU,nleftarrow:CU,nLeftarrow:TU,nleftrightarrow:LU,nLeftrightarrow:EU,nleq:AU,nleqq:MU,nleqslant:NU,nles:PU,nless:OU,nLl:$U,nlsim:DU,nLt:RU,nlt:zU,nltri:IU,nltrie:FU,nLtv:qU,nmid:HU,NoBreak:BU,NonBreakingSpace:WU,nopf:UU,Nopf:jU,Not:GU,not:VU,NotCongruent:KU,NotCupCap:XU,NotDoubleVerticalBar:YU,NotElement:ZU,NotEqual:JU,NotEqualTilde:QU,NotExists:t8,NotGreater:e8,NotGreaterEqual:n8,NotGreaterFullEqual:r8,NotGreaterGreater:i8,NotGreaterLess:o8,NotGreaterSlantEqual:s8,NotGreaterTilde:l8,NotHumpDownHump:a8,NotHumpEqual:c8,notin:u8,notindot:f8,notinE:h8,notinva:d8,notinvb:p8,notinvc:g8,NotLeftTriangleBar:v8,NotLeftTriangle:m8,NotLeftTriangleEqual:y8,NotLess:b8,NotLessEqual:w8,NotLessGreater:x8,NotLessLess:_8,NotLessSlantEqual:S8,NotLessTilde:k8,NotNestedGreaterGreater:C8,NotNestedLessLess:T8,notni:L8,notniva:E8,notnivb:A8,notnivc:M8,NotPrecedes:N8,NotPrecedesEqual:P8,NotPrecedesSlantEqual:O8,NotReverseElement:$8,NotRightTriangleBar:D8,NotRightTriangle:R8,NotRightTriangleEqual:z8,NotSquareSubset:I8,NotSquareSubsetEqual:F8,NotSquareSuperset:q8,NotSquareSupersetEqual:H8,NotSubset:B8,NotSubsetEqual:W8,NotSucceeds:U8,NotSucceedsEqual:j8,NotSucceedsSlantEqual:G8,NotSucceedsTilde:V8,NotSuperset:K8,NotSupersetEqual:X8,NotTilde:Y8,NotTildeEqual:Z8,NotTildeFullEqual:J8,NotTildeTilde:Q8,NotVerticalBar:t4,nparallel:e4,npar:n4,nparsl:r4,npart:i4,npolint:o4,npr:s4,nprcue:l4,nprec:a4,npreceq:c4,npre:u4,nrarrc:f4,nrarr:h4,nrArr:d4,nrarrw:p4,nrightarrow:g4,nRightarrow:v4,nrtri:m4,nrtrie:y4,nsc:b4,nsccue:w4,nsce:x4,Nscr:_4,nscr:S4,nshortmid:k4,nshortparallel:C4,nsim:T4,nsime:L4,nsimeq:E4,nsmid:A4,nspar:M4,nsqsube:N4,nsqsupe:P4,nsub:O4,nsubE:$4,nsube:D4,nsubset:R4,nsubseteq:z4,nsubseteqq:I4,nsucc:F4,nsucceq:q4,nsup:H4,nsupE:B4,nsupe:W4,nsupset:U4,nsupseteq:j4,nsupseteqq:G4,ntgl:V4,Ntilde:K4,ntilde:X4,ntlg:Y4,ntriangleleft:Z4,ntrianglelefteq:J4,ntriangleright:Q4,ntrianglerighteq:t6,Nu:e6,nu:n6,num:r6,numero:i6,numsp:o6,nvap:s6,nvdash:l6,nvDash:a6,nVdash:c6,nVDash:u6,nvge:f6,nvgt:h6,nvHarr:d6,nvinfin:p6,nvlArr:g6,nvle:v6,nvlt:m6,nvltrie:y6,nvrArr:b6,nvrtrie:w6,nvsim:x6,nwarhk:_6,nwarr:S6,nwArr:k6,nwarrow:C6,nwnear:T6,Oacute:L6,oacute:E6,oast:A6,Ocirc:M6,ocirc:N6,ocir:P6,Ocy:O6,ocy:$6,odash:D6,Odblac:R6,odblac:z6,odiv:I6,odot:F6,odsold:q6,OElig:H6,oelig:B6,ofcir:W6,Ofr:U6,ofr:j6,ogon:G6,Ograve:V6,ograve:K6,ogt:X6,ohbar:Y6,ohm:Z6,oint:J6,olarr:Q6,olcir:tj,olcross:ej,oline:nj,olt:rj,Omacr:ij,omacr:oj,Omega:sj,omega:lj,Omicron:aj,omicron:cj,omid:uj,ominus:fj,Oopf:hj,oopf:dj,opar:pj,OpenCurlyDoubleQuote:gj,OpenCurlyQuote:vj,operp:mj,oplus:yj,orarr:bj,Or:wj,or:xj,ord:_j,order:Sj,orderof:kj,ordf:Cj,ordm:Tj,origof:Lj,oror:Ej,orslope:Aj,orv:Mj,oS:Nj,Oscr:Pj,oscr:Oj,Oslash:$j,oslash:Dj,osol:Rj,Otilde:zj,otilde:Ij,otimesas:Fj,Otimes:qj,otimes:Hj,Ouml:Bj,ouml:Wj,ovbar:Uj,OverBar:jj,OverBrace:Gj,OverBracket:Vj,OverParenthesis:Kj,para:Xj,parallel:Yj,par:Zj,parsim:Jj,parsl:Qj,part:t9,PartialD:e9,Pcy:n9,pcy:r9,percnt:i9,period:o9,permil:s9,perp:l9,pertenk:a9,Pfr:c9,pfr:u9,Phi:f9,phi:h9,phiv:d9,phmmat:p9,phone:g9,Pi:v9,pi:m9,pitchfork:y9,piv:b9,planck:w9,planckh:x9,plankv:_9,plusacir:S9,plusb:k9,pluscir:C9,plus:T9,plusdo:L9,plusdu:E9,pluse:A9,PlusMinus:M9,plusmn:N9,plussim:P9,plustwo:O9,pm:$9,Poincareplane:D9,pointint:R9,popf:z9,Popf:I9,pound:F9,prap:q9,Pr:H9,pr:B9,prcue:W9,precapprox:U9,prec:j9,preccurlyeq:G9,Precedes:V9,PrecedesEqual:K9,PrecedesSlantEqual:X9,PrecedesTilde:Y9,preceq:Z9,precnapprox:J9,precneqq:Q9,precnsim:tG,pre:eG,prE:nG,precsim:rG,prime:iG,Prime:oG,primes:sG,prnap:lG,prnE:aG,prnsim:cG,prod:uG,Product:fG,profalar:hG,profline:dG,profsurf:pG,prop:gG,Proportional:vG,Proportion:mG,propto:yG,prsim:bG,prurel:wG,Pscr:xG,pscr:_G,Psi:SG,psi:kG,puncsp:CG,Qfr:TG,qfr:LG,qint:EG,qopf:AG,Qopf:MG,qprime:NG,Qscr:PG,qscr:OG,quaternions:$G,quatint:DG,quest:RG,questeq:zG,quot:IG,QUOT:FG,rAarr:qG,race:HG,Racute:BG,racute:WG,radic:UG,raemptyv:jG,rang:GG,Rang:VG,rangd:KG,range:XG,rangle:YG,raquo:ZG,rarrap:JG,rarrb:QG,rarrbfs:tV,rarrc:eV,rarr:nV,Rarr:rV,rArr:iV,rarrfs:oV,rarrhk:sV,rarrlp:lV,rarrpl:aV,rarrsim:cV,Rarrtl:uV,rarrtl:fV,rarrw:hV,ratail:dV,rAtail:pV,ratio:gV,rationals:vV,rbarr:mV,rBarr:yV,RBarr:bV,rbbrk:wV,rbrace:xV,rbrack:_V,rbrke:SV,rbrksld:kV,rbrkslu:CV,Rcaron:TV,rcaron:LV,Rcedil:EV,rcedil:AV,rceil:MV,rcub:NV,Rcy:PV,rcy:OV,rdca:$V,rdldhar:DV,rdquo:RV,rdquor:zV,rdsh:IV,real:FV,realine:qV,realpart:HV,reals:BV,Re:WV,rect:UV,reg:jV,REG:GV,ReverseElement:VV,ReverseEquilibrium:KV,ReverseUpEquilibrium:XV,rfisht:YV,rfloor:ZV,rfr:JV,Rfr:QV,rHar:tK,rhard:eK,rharu:nK,rharul:rK,Rho:iK,rho:oK,rhov:sK,RightAngleBracket:lK,RightArrowBar:aK,rightarrow:cK,RightArrow:uK,Rightarrow:fK,RightArrowLeftArrow:hK,rightarrowtail:dK,RightCeiling:pK,RightDoubleBracket:gK,RightDownTeeVector:vK,RightDownVectorBar:mK,RightDownVector:yK,RightFloor:bK,rightharpoondown:wK,rightharpoonup:xK,rightleftarrows:_K,rightleftharpoons:SK,rightrightarrows:kK,rightsquigarrow:CK,RightTeeArrow:TK,RightTee:LK,RightTeeVector:EK,rightthreetimes:AK,RightTriangleBar:MK,RightTriangle:NK,RightTriangleEqual:PK,RightUpDownVector:OK,RightUpTeeVector:$K,RightUpVectorBar:DK,RightUpVector:RK,RightVectorBar:zK,RightVector:IK,ring:FK,risingdotseq:qK,rlarr:HK,rlhar:BK,rlm:WK,rmoustache:UK,rmoust:jK,rnmid:GK,roang:VK,roarr:KK,robrk:XK,ropar:YK,ropf:ZK,Ropf:JK,roplus:QK,rotimes:t7,RoundImplies:e7,rpar:n7,rpargt:r7,rppolint:i7,rrarr:o7,Rrightarrow:s7,rsaquo:l7,rscr:a7,Rscr:c7,rsh:u7,Rsh:f7,rsqb:h7,rsquo:d7,rsquor:p7,rthree:g7,rtimes:v7,rtri:m7,rtrie:y7,rtrif:b7,rtriltri:w7,RuleDelayed:x7,ruluhar:_7,rx:S7,Sacute:k7,sacute:C7,sbquo:T7,scap:L7,Scaron:E7,scaron:A7,Sc:M7,sc:N7,sccue:P7,sce:O7,scE:$7,Scedil:D7,scedil:R7,Scirc:z7,scirc:I7,scnap:F7,scnE:q7,scnsim:H7,scpolint:B7,scsim:W7,Scy:U7,scy:j7,sdotb:G7,sdot:V7,sdote:K7,searhk:X7,searr:Y7,seArr:Z7,searrow:J7,sect:Q7,semi:tX,seswar:eX,setminus:nX,setmn:rX,sext:iX,Sfr:oX,sfr:sX,sfrown:lX,sharp:aX,SHCHcy:cX,shchcy:uX,SHcy:fX,shcy:hX,ShortDownArrow:dX,ShortLeftArrow:pX,shortmid:gX,shortparallel:vX,ShortRightArrow:mX,ShortUpArrow:yX,shy:bX,Sigma:wX,sigma:xX,sigmaf:_X,sigmav:SX,sim:kX,simdot:CX,sime:TX,simeq:LX,simg:EX,simgE:AX,siml:MX,simlE:NX,simne:PX,simplus:OX,simrarr:$X,slarr:DX,SmallCircle:RX,smallsetminus:zX,smashp:IX,smeparsl:FX,smid:qX,smile:HX,smt:BX,smte:WX,smtes:UX,SOFTcy:jX,softcy:GX,solbar:VX,solb:KX,sol:XX,Sopf:YX,sopf:ZX,spades:JX,spadesuit:QX,spar:tY,sqcap:eY,sqcaps:nY,sqcup:rY,sqcups:iY,Sqrt:oY,sqsub:sY,sqsube:lY,sqsubset:aY,sqsubseteq:cY,sqsup:uY,sqsupe:fY,sqsupset:hY,sqsupseteq:dY,square:pY,Square:gY,SquareIntersection:vY,SquareSubset:mY,SquareSubsetEqual:yY,SquareSuperset:bY,SquareSupersetEqual:wY,SquareUnion:xY,squarf:_Y,squ:SY,squf:kY,srarr:CY,Sscr:TY,sscr:LY,ssetmn:EY,ssmile:AY,sstarf:MY,Star:NY,star:PY,starf:OY,straightepsilon:$Y,straightphi:DY,strns:RY,sub:zY,Sub:IY,subdot:FY,subE:qY,sube:HY,subedot:BY,submult:WY,subnE:UY,subne:jY,subplus:GY,subrarr:VY,subset:KY,Subset:XY,subseteq:YY,subseteqq:ZY,SubsetEqual:JY,subsetneq:QY,subsetneqq:tZ,subsim:eZ,subsub:nZ,subsup:rZ,succapprox:iZ,succ:oZ,succcurlyeq:sZ,Succeeds:lZ,SucceedsEqual:aZ,SucceedsSlantEqual:cZ,SucceedsTilde:uZ,succeq:fZ,succnapprox:hZ,succneqq:dZ,succnsim:pZ,succsim:gZ,SuchThat:vZ,sum:mZ,Sum:yZ,sung:bZ,sup1:wZ,sup2:xZ,sup3:_Z,sup:SZ,Sup:kZ,supdot:CZ,supdsub:TZ,supE:LZ,supe:EZ,supedot:AZ,Superset:MZ,SupersetEqual:NZ,suphsol:PZ,suphsub:OZ,suplarr:$Z,supmult:DZ,supnE:RZ,supne:zZ,supplus:IZ,supset:FZ,Supset:qZ,supseteq:HZ,supseteqq:BZ,supsetneq:WZ,supsetneqq:UZ,supsim:jZ,supsub:GZ,supsup:VZ,swarhk:KZ,swarr:XZ,swArr:YZ,swarrow:ZZ,swnwar:JZ,szlig:QZ,Tab:tJ,target:eJ,Tau:nJ,tau:rJ,tbrk:iJ,Tcaron:oJ,tcaron:sJ,Tcedil:lJ,tcedil:aJ,Tcy:cJ,tcy:uJ,tdot:fJ,telrec:hJ,Tfr:dJ,tfr:pJ,there4:gJ,therefore:vJ,Therefore:mJ,Theta:yJ,theta:bJ,thetasym:wJ,thetav:xJ,thickapprox:_J,thicksim:SJ,ThickSpace:kJ,ThinSpace:CJ,thinsp:TJ,thkap:LJ,thksim:EJ,THORN:AJ,thorn:MJ,tilde:NJ,Tilde:PJ,TildeEqual:OJ,TildeFullEqual:$J,TildeTilde:DJ,timesbar:RJ,timesb:zJ,times:IJ,timesd:FJ,tint:qJ,toea:HJ,topbot:BJ,topcir:WJ,top:UJ,Topf:jJ,topf:GJ,topfork:VJ,tosa:KJ,tprime:XJ,trade:YJ,TRADE:ZJ,triangle:JJ,triangledown:QJ,triangleleft:tQ,trianglelefteq:eQ,triangleq:nQ,triangleright:rQ,trianglerighteq:iQ,tridot:oQ,trie:sQ,triminus:lQ,TripleDot:aQ,triplus:cQ,trisb:uQ,tritime:fQ,trpezium:hQ,Tscr:dQ,tscr:pQ,TScy:gQ,tscy:vQ,TSHcy:mQ,tshcy:yQ,Tstrok:bQ,tstrok:wQ,twixt:xQ,twoheadleftarrow:_Q,twoheadrightarrow:SQ,Uacute:kQ,uacute:CQ,uarr:TQ,Uarr:LQ,uArr:EQ,Uarrocir:AQ,Ubrcy:MQ,ubrcy:NQ,Ubreve:PQ,ubreve:OQ,Ucirc:$Q,ucirc:DQ,Ucy:RQ,ucy:zQ,udarr:IQ,Udblac:FQ,udblac:qQ,udhar:HQ,ufisht:BQ,Ufr:WQ,ufr:UQ,Ugrave:jQ,ugrave:GQ,uHar:VQ,uharl:KQ,uharr:XQ,uhblk:YQ,ulcorn:ZQ,ulcorner:JQ,ulcrop:QQ,ultri:ttt,Umacr:ett,umacr:ntt,uml:rtt,UnderBar:itt,UnderBrace:ott,UnderBracket:stt,UnderParenthesis:ltt,Union:att,UnionPlus:ctt,Uogon:utt,uogon:ftt,Uopf:htt,uopf:dtt,UpArrowBar:ptt,uparrow:gtt,UpArrow:vtt,Uparrow:mtt,UpArrowDownArrow:ytt,updownarrow:btt,UpDownArrow:wtt,Updownarrow:xtt,UpEquilibrium:_tt,upharpoonleft:Stt,upharpoonright:ktt,uplus:Ctt,UpperLeftArrow:Ttt,UpperRightArrow:Ltt,upsi:Ett,Upsi:Att,upsih:Mtt,Upsilon:Ntt,upsilon:Ptt,UpTeeArrow:Ott,UpTee:$tt,upuparrows:Dtt,urcorn:Rtt,urcorner:ztt,urcrop:Itt,Uring:Ftt,uring:qtt,urtri:Htt,Uscr:Btt,uscr:Wtt,utdot:Utt,Utilde:jtt,utilde:Gtt,utri:Vtt,utrif:Ktt,uuarr:Xtt,Uuml:Ytt,uuml:Ztt,uwangle:Jtt,vangrt:Qtt,varepsilon:tet,varkappa:eet,varnothing:net,varphi:ret,varpi:iet,varpropto:oet,varr:set,vArr:aet,varrho:cet,varsigma:uet,varsubsetneq:fet,varsubsetneqq:het,varsupsetneq:det,varsupsetneqq:pet,vartheta:get,vartriangleleft:vet,vartriangleright:met,vBar:yet,Vbar:bet,vBarv:wet,Vcy:xet,vcy:_et,vdash:ket,vDash:Cet,Vdash:Tet,VDash:Let,Vdashl:Eet,veebar:Aet,vee:Met,Vee:Net,veeeq:Pet,vellip:Oet,verbar:$et,Verbar:Det,vert:Ret,Vert:zet,VerticalBar:Iet,VerticalLine:Fet,VerticalSeparator:qet,VerticalTilde:Het,VeryThinSpace:Bet,Vfr:Wet,vfr:Uet,vltri:jet,vnsub:Get,vnsup:Vet,Vopf:Ket,vopf:Xet,vprop:Yet,vrtri:Zet,Vscr:Jet,vscr:Qet,vsubnE:tnt,vsubne:ent,vsupnE:nnt,vsupne:rnt,Vvdash:int,vzigzag:ont,Wcirc:snt,wcirc:lnt,wedbar:ant,wedge:cnt,Wedge:unt,wedgeq:fnt,weierp:hnt,Wfr:dnt,wfr:pnt,Wopf:gnt,wopf:vnt,wp:mnt,wr:ynt,wreath:bnt,Wscr:wnt,wscr:xnt,xcap:_nt,xcirc:Snt,xcup:knt,xdtri:Cnt,Xfr:Tnt,xfr:Lnt,xharr:Ent,xhArr:Ant,Xi:Mnt,xi:Nnt,xlarr:Pnt,xlArr:Ont,xmap:$nt,xnis:Dnt,xodot:Rnt,Xopf:znt,xopf:Int,xoplus:Fnt,xotime:qnt,xrarr:Hnt,xrArr:Bnt,Xscr:Wnt,xscr:Unt,xsqcup:jnt,xuplus:Gnt,xutri:Vnt,xvee:Knt,xwedge:Xnt,Yacute:Ynt,yacute:Znt,YAcy:Jnt,yacy:Qnt,Ycirc:trt,ycirc:ert,Ycy:nrt,ycy:rrt,yen:irt,Yfr:ort,yfr:srt,YIcy:lrt,yicy:art,Yopf:crt,yopf:urt,Yscr:frt,yscr:hrt,YUcy:drt,yucy:prt,yuml:grt,Yuml:vrt,Zacute:mrt,zacute:yrt,Zcaron:brt,zcaron:wrt,Zcy:xrt,zcy:_rt,Zdot:Srt,zdot:krt,zeetrf:Crt,ZeroWidthSpace:Trt,Zeta:Lrt,zeta:Ert,zfr:Art,Zfr:Mrt,ZHcy:Nrt,zhcy:Prt,zigrarr:Ort,zopf:$rt,Zopf:Drt,Zscr:Rrt,zscr:zrt,zwj:Irt,zwnj:Frt},qrt="\xC1",Hrt="\xE1",Brt="\xC2",Wrt="\xE2",Urt="\xB4",jrt="\xC6",Grt="\xE6",Vrt="\xC0",Krt="\xE0",Xrt="&",Yrt="&",Zrt="\xC5",Jrt="\xE5",Qrt="\xC3",tit="\xE3",eit="\xC4",nit="\xE4",rit="\xA6",iit="\xC7",oit="\xE7",sit="\xB8",lit="\xA2",ait="\xA9",cit="\xA9",uit="\xA4",fit="\xB0",hit="\xF7",dit="\xC9",pit="\xE9",git="\xCA",vit="\xEA",mit="\xC8",yit="\xE8",bit="\xD0",wit="\xF0",xit="\xCB",_it="\xEB",Sit="\xBD",kit="\xBC",Cit="\xBE",Tit=">",Lit=">",Eit="\xCD",Ait="\xED",Mit="\xCE",Nit="\xEE",Pit="\xA1",Oit="\xCC",$it="\xEC",Dit="\xBF",Rit="\xCF",zit="\xEF",Iit="\xAB",Fit="<",qit="<",Hit="\xAF",Bit="\xB5",Wit="\xB7",Uit="\xA0",jit="\xAC",Git="\xD1",Vit="\xF1",Kit="\xD3",Xit="\xF3",Yit="\xD4",Zit="\xF4",Jit="\xD2",Qit="\xF2",tot="\xAA",eot="\xBA",not="\xD8",rot="\xF8",iot="\xD5",oot="\xF5",sot="\xD6",lot="\xF6",aot="\xB6",cot="\xB1",uot="\xA3",fot='"',hot='"',dot="\xBB",pot="\xAE",got="\xAE",vot="\xA7",mot="\xAD",yot="\xB9",bot="\xB2",wot="\xB3",xot="\xDF",_ot="\xDE",Sot="\xFE",kot="\xD7",Cot="\xDA",Tot="\xFA",Lot="\xDB",Eot="\xFB",Aot="\xD9",Mot="\xF9",Not="\xA8",Pot="\xDC",Oot="\xFC",$ot="\xDD",Dot="\xFD",Rot="\xA5",zot="\xFF",Iot={Aacute:qrt,aacute:Hrt,Acirc:Brt,acirc:Wrt,acute:Urt,AElig:jrt,aelig:Grt,Agrave:Vrt,agrave:Krt,amp:Xrt,AMP:Yrt,Aring:Zrt,aring:Jrt,Atilde:Qrt,atilde:tit,Auml:eit,auml:nit,brvbar:rit,Ccedil:iit,ccedil:oit,cedil:sit,cent:lit,copy:ait,COPY:cit,curren:uit,deg:fit,divide:hit,Eacute:dit,eacute:pit,Ecirc:git,ecirc:vit,Egrave:mit,egrave:yit,ETH:bit,eth:wit,Euml:xit,euml:_it,frac12:Sit,frac14:kit,frac34:Cit,gt:Tit,GT:Lit,Iacute:Eit,iacute:Ait,Icirc:Mit,icirc:Nit,iexcl:Pit,Igrave:Oit,igrave:$it,iquest:Dit,Iuml:Rit,iuml:zit,laquo:Iit,lt:Fit,LT:qit,macr:Hit,micro:Bit,middot:Wit,nbsp:Uit,not:jit,Ntilde:Git,ntilde:Vit,Oacute:Kit,oacute:Xit,Ocirc:Yit,ocirc:Zit,Ograve:Jit,ograve:Qit,ordf:tot,ordm:eot,Oslash:not,oslash:rot,Otilde:iot,otilde:oot,Ouml:sot,ouml:lot,para:aot,plusmn:cot,pound:uot,quot:fot,QUOT:hot,raquo:dot,reg:pot,REG:got,sect:vot,shy:mot,sup1:yot,sup2:bot,sup3:wot,szlig:xot,THORN:_ot,thorn:Sot,times:kot,Uacute:Cot,uacute:Tot,Ucirc:Lot,ucirc:Eot,Ugrave:Aot,ugrave:Mot,uml:Not,Uuml:Pot,uuml:Oot,Yacute:$ot,yacute:Dot,yen:Rot,yuml:zot},Fot="&",qot="'",Hot=">",Bot="<",Wot='"',W0={amp:Fot,apos:qot,gt:Hot,lt:Bot,quot:Wot};var ih={};const Uot={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 jot=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ih,"__esModule",{value:!0});var Qg=jot(Uot),Got=String.fromCodePoint||function(t){var n="";return t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),n+=String.fromCharCode(t),n};function Vot(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in Qg.default&&(t=Qg.default[t]),Got(t))}ih.default=Vot;var gc=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.decodeHTML=Or.decodeHTMLStrict=Or.decodeXML=void 0;var af=gc(B0),Kot=gc(Iot),Xot=gc(W0),tv=gc(ih),Yot=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Or.decodeXML=U0(Xot.default);Or.decodeHTMLStrict=U0(af.default);function U0(t){var n=j0(t);return function(r){return String(r).replace(Yot,n)}}var ev=function(t,n){return t<n?1:-1};Or.decodeHTML=function(){for(var t=Object.keys(Kot.default).sort(ev),n=Object.keys(af.default).sort(ev),r=0,o=0;r<n.length;r++)t[o]===n[r]?(n[r]+=";?",o++):n[r]+=";";var a=new RegExp("&(?:"+n.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=j0(af.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function j0(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?tv.default(parseInt(r.substr(3),16)):tv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Nn={},G0=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.escapeUTF8=Nn.escape=Nn.encodeNonAsciiHTML=Nn.encodeHTML=Nn.encodeXML=void 0;var Zot=G0(W0),V0=X0(Zot.default),K0=Y0(V0);Nn.encodeXML=Q0(V0);var Jot=G0(B0),oh=X0(Jot.default),Qot=Y0(oh);Nn.encodeHTML=est(oh,Qot);Nn.encodeNonAsciiHTML=Q0(oh);function X0(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function Y0(t){for(var n=[],r=[],o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];u.length===1?n.push("\\"+u):r.push(u)}n.sort();for(var f=0;f<n.length-1;f++){for(var h=f;h<n.length-1&&n[h].charCodeAt(1)+1===n[h+1].charCodeAt(1);)h+=1;var p=1+h-f;p<3||n.splice(f,p,n[f]+"-"+n[h])}return r.unshift("["+n.join("")+"]"),new RegExp(r.join("|"),"g")}var Z0=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,tst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function vc(t){return"&#x"+(t.length>1?tst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function est(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(Z0,vc)}}var J0=new RegExp(K0.source+"|"+Z0.source,"g");function nst(t){return t.replace(J0,vc)}Nn.escape=nst;function rst(t){return t.replace(K0,vc)}Nn.escapeUTF8=rst;function Q0(t){return function(n){return n.replace(J0,function(r){return t[r]||vc(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=Or,r=Nn;function o(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTML)(p)}t.decode=o;function a(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTMLStrict)(p)}t.decodeStrict=a;function u(p,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(p)}t.encode=u;var f=Nn;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=Or;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}})})(H0);function ist(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function nv(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ost(t,n,r){return n&&nv(t.prototype,n),r&&nv(t,r),t}function ty(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=sst(t))||n&&t&&typeof t.length=="number"){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function sst(t,n){if(!!t){if(typeof t=="string")return rv(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rv(t,n)}}function rv(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=t[r];return o}var lst=H0,iv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:ast()};function ast(){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 oa(0,5).forEach(function(n){oa(0,5).forEach(function(r){oa(0,5).forEach(function(o){return cst(n,r,o,t)})})}),oa(0,23).forEach(function(n){var r=n+232,o=ey(n*10+8);t[r]="#"+o+o+o}),t}function cst(t,n,r,o){var a=16+t*36+n*6+r,u=t>0?t*40+55:0,f=n>0?n*40+55:0,h=r>0?r*40+55:0;o[a]=ust([u,f,h])}function ey(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function ust(t){var n=[],r=ty(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(ey(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function ov(t,n,r,o){var a;return n==="text"?a=pst(r,o):n==="display"?a=hst(t,r,o):n==="xterm256Foreground"?a=ba(t,o.colors[r]):n==="xterm256Background"?a=wa(t,o.colors[r]):n==="rgb"&&(a=fst(t,r)),a}function fst(t,n){n=n.substring(2).slice(0,-1);var r=+n.substr(0,2),o=n.substring(5).split(";"),a=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return ya(t,(r===38?"color:#":"background-color:#")+a)}function hst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&ny(t)},1:function(){return si(t,"b")},3:function(){return si(t,"i")},4:function(){return si(t,"u")},8:function(){return ya(t,"display:none")},9:function(){return si(t,"strike")},22:function(){return ya(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return lv(t,"i")},24:function(){return lv(t,"u")},39:function(){return ba(t,r.fg)},49:function(){return wa(t,r.bg)},53:function(){return ya(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=si(t,"blink"):29<n&&n<38?a=ba(t,r.colors[n-30]):39<n&&n<48?a=wa(t,r.colors[n-40]):89<n&&n<98?a=ba(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=wa(t,r.colors[8+(n-100)])),a}function ny(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function oa(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function dst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function sv(t){t=parseInt(t,10);var n=null;return t===0?n="all":t===1?n="bold":2<t&&t<5?n="underline":4<t&&t<7?n="blink":t===8?n="hide":t===9?n="strike":29<t&&t<38||t===39||89<t&&t<98?n="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(n="background-color"),n}function pst(t,n){return n.escapeXML?lst.encodeXML(t):t}function si(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function ya(t,n){return si(t,"span",n)}function ba(t,n){return si(t,"span","color:"+n)}function wa(t,n){return si(t,"span","background-color:"+n)}function lv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function gst(t,n,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 p(G){return n.newline?r("display",-1):r("text",G),""}function g(G,j){o=!0,j.trim().length===0&&(j="0"),j=j.trimRight(";").split(";");var it=ty(j),Q;try{for(it.s();!(Q=it.n()).done;){var dt=Q.value;r("display",dt)}}catch(vt){it.e(vt)}finally{it.f()}return""}function m(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:p},{pattern:/^\r+\n/,sub:p},{pattern:/^\r/,sub:p},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:m}];function S(G,j){j>a&&o||(o=!1,t=t.replace(G.pattern,G.sub))}var M=[],A=t,L=A.length;t:for(;L>0;){for(var C=0,E=0,z=x.length;E<z;C=++E){var D=x[C];if(S(D,C),t.length!==L){L=t.length;continue t}}if(t.length===L)break;M.push(0),L=t.length}return M}function vst(t,n,r){return n!=="text"&&(t=t.filter(dst(sv(r))),t.push({token:n,data:r,category:sv(r)})),t}var mst=function(){function t(n){ist(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},iv.colors,n.colors)),this.options=Object.assign({},iv,n),this.stack=[],this.stickyStack=[]}return ost(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var a=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var p=ov(a,h.token,h.data,u);p&&f.push(p)}),gst(r.join(""),u,function(h,p){var g=ov(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=vst(o.stickyStack,h,p))}),a.length&&f.push(ny(a)),f.join("")}}]),t}(),yst=mst;function bst(t,n){return n&&t.endsWith(n)}async function ry(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function iy(t){return new yst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const mc=FC(),wst=Zk(mc),xst={"h-full":"",class:"scrolls"},_st={key:0,class:"scrolls scrolls-rounded task-error"},Sst=["innerHTML"],kst={key:1,class:"scrolls scrolls-rounded task-error"},Cst=["onClickPassive"],Tst={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Lst=oe({__name:"ViewReport",props:{file:null},setup(t){const n=t;function r(g,m){var b;return((b=g.result)==null?void 0:b.state)!=="fail"?[]:g.type==="test"||g.type==="benchmark"?[{...g,level:m}]:[{...g,level:m},...g.tasks.flatMap(x=>r(x,m+1))]}function o(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(g,m){const b=iy(g);return m.map(x=>{var M,A;const S=x.result;if(S){const L=S.error;if(L){let C="";L.message.includes("\x1B")&&(C=`<b>${L.nameStr||L.name}</b>: ${b.toHtml(o(L.message))}`);const E=(M=L.stackStr)==null?void 0:M.includes("\x1B");(E||((A=L.stack)==null?void 0:A.includes("\x1B")))&&(C.length>0?C+=b.toHtml(o(E?L.stackStr:L.stack)):C=`<b>${L.nameStr||L.name}</b>: ${L.message}${b.toHtml(o(E?L.stackStr:L.stack))}`),C.length>0&&(S.htmlError=C)}}return x})}const u=St(()=>{var S,M;const g=n.file,m=(M=(S=g==null?void 0:g.tasks)==null?void 0:S.flatMap(A=>r(A,0)))!=null?M:[],b=g==null?void 0:g.result;if(b==null?void 0:b.error){const A={id:g.id,name:g.name,level:0,type:"suite",mode:"run",tasks:[],result:b};m.unshift(A)}return m.length>0?a(mc.value,m):m});function f(g){return g.startsWith(lf.value.root)?g.slice(lf.value.root.length):g}function h(g){var m,b;return(b=(m=g.sourcePos)==null?void 0:m.line)!=null?b:g.line}function p(g){var m,b;return(b=(m=g.sourcePos)==null?void 0:m.column)!=null?b:g.column}return(g,m)=>{const b=Zi("tooltip");return ht(),Mt("div",xst,[Z(u).length?(ht(!0),Mt(ue,{key:0},lr(Z(u),x=>{var S,M,A;return ht(),Mt("div",{key:x.id},[ut("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:kn({"margin-left":`${(S=x.result)!=null&&S.htmlError?.5:2*x.level+.5}rem`})},[fn(Jt(x.name)+" ",1),(M=x.result)!=null&&M.htmlError?(ht(),Mt("div",_st,[ut("pre",{innerHTML:x.result.htmlError},null,8,Sst)])):(A=x.result)!=null&&A.error?(ht(),Mt("div",kst,[ut("pre",null,[ut("b",null,Jt(x.result.error.name||x.result.error.nameStr),1),fn(": "+Jt(x.result.error.message),1)]),(ht(!0),Mt(ue,null,lr(x.result.error.stacks,(L,C)=>{var E;return ht(),Mt("div",{key:C,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ut("pre",null," - "+Jt(f(L.file))+":"+Jt(h(L))+":"+Jt(p(L)),1),Z(bst)(L.file,(E=n.file)==null?void 0:E.name)?pn((ht(),Mt("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:z=>Z(ry)(L.file,h(L),p(L))},null,40,Cst)),[[b,"Open in Editor",void 0,{bottom:!0}]]):ye("",!0)])}),128))])):ye("",!0)],4)])}),128)):(ht(),Mt("div",Tst," All tests passed in this file "))])}}});const Est=Xo(Lst,[["__scopeId","data-v-cbc93645"]]),Ast={border:"b base","p-4":""},Mst=["innerHTML"],Nst=["textContent"],Pst=oe({__name:"ViewConsoleOutputEntry",props:{taskName:null,type:null,time:null,content:null,html:{type:Boolean}},setup(t){const n=t;function r(o){return new Date(o).toLocaleTimeString()}return(o,a)=>(ht(),Mt("div",Ast,[ut("div",{"text-xs":"","mb-1":"",class:ge(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Jt(r(n.time))+" | "+Jt(n.taskName)+" | "+Jt(n.type),3),n.html?(ht(),Mt("pre",{key:0,"data-type":"html",innerHTML:n.content},null,8,Mst)):(ht(),Mt("pre",{key:1,"data-type":"text",textContent:Jt(n.content)},null,8,Nst))]))}}),Ost={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},$st={key:1,p6:""},Dst=ut("pre",{inline:""},"console.log(foo)",-1),Rst=oe({__name:"ViewConsoleOutput",setup(t){const n=St(()=>{const o=F0.value;if(o){const a=iy(mc.value);return o.map(({taskId:u,type:f,time:h,content:p})=>{const g=p.trim(),m=a.toHtml(g);return m!==g?{taskId:u,type:f,time:h,html:!0,content:m}:{taskId:u,type:f,time:h,html:!1,content:p}})}});function r(o){const a=o&&We.state.idMap.get(o);return a?fT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=Pst;return(f=Z(n))!=null&&f.length?(ht(),Mt("div",Ost,[(ht(!0),Mt(ue,null,lr(Z(n),({taskId:h,type:p,time:g,html:m,content:b})=>(ht(),Mt("div",{key:h,"font-mono":""},[Rt(u,{"task-name":r(h),type:p,time:g,content:b,html:m},null,8,["task-name","type","time","content","html"])]))),128))])):(ht(),Mt("p",$st,[fn(" Log something in your test and it would print here. (e.g. "),Dst,fn(") ")]))}}});var Eu={exports:{}},av;function Yo(){return av||(av=1,function(t,n){(function(r,o){t.exports=o()})(Ki,function(){var r=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),p=u||f||h,g=p&&(u?document.documentMode||6:+(h||f)[1]),m=!h&&/WebKit\//.test(r),b=m&&/Qt\/\d+\.\d+/.test(r),x=!h&&/Chrome\/(\d+)/.exec(r),S=x&&+x[1],M=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),E=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),z=/Android/.test(r),D=E||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),G=E||/Mac/.test(o),j=/\bCrOS\b/.test(r),it=/win/i.test(o),Q=M&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(M=!1,m=!0);var dt=G&&(b||M&&(Q==null||Q<12.11)),vt=a||p&&g>=9;function kt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ft=function(e,i){var l=e.className,s=kt(i).exec(l);if(s){var c=l.slice(s.index+s[0].length);e.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function U(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function I(e,i){return U(e).appendChild(i)}function k(e,i,l,s){var c=document.createElement(e);if(l&&(c.className=l),s&&(c.style.cssText=s),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var d=0;d<i.length;++d)c.appendChild(i[d]);return c}function H(e,i,l,s){var c=k(e,i,l,s);return c.setAttribute("role","presentation"),c}var W;document.createRange?W=function(e,i,l,s){var c=document.createRange();return c.setEnd(s||e,l),c.setStart(e,i),c}:W=function(e,i,l){var s=document.body.createTextRange();try{s.moveToElementText(e.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",i),s};function et(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function wt(e){var i;try{i=e.activeElement}catch{i=e.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Et(e,i){var l=e.className;kt(i).test(l)||(e.className+=(l?" ":"")+i)}function qt(e,i){for(var l=e.split(" "),s=0;s<l.length;s++)l[s]&&!kt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Bt=function(e){e.select()};E?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Bt=function(e){try{e.select()}catch{}});function Gt(e){return e.display.wrapper.ownerDocument}function ne(e){return Gt(e).defaultView}function J(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function tt(e,i,l){i||(i={});for(var s in e)e.hasOwnProperty(s)&&(l!==!1||!i.hasOwnProperty(s))&&(i[s]=e[s]);return i}function V(e,i,l,s,c){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var d=s||0,v=c||0;;){var y=e.indexOf(" ",d);if(y<0||y>=i)return v+(i-d);v+=y-d,v+=l-v%l,d=y+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=J(this.onTimeout,this)};st.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},st.prototype.set=function(e,i){this.f=i;var l=+new Date+e;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=l)};function Ct(e,i){for(var l=0;l<e.length;++l)if(e[l]==i)return l;return-1}var de=50,Lt={toString:function(){return"CodeMirror.Pass"}},P={scroll:!1},F={origin:"*mouse"},Y={origin:"+move"};function nt(e,i,l){for(var s=0,c=0;;){var d=e.indexOf(" ",s);d==-1&&(d=e.length);var v=d-s;if(d==e.length||c+v>=i)return s+Math.min(v,i-c);if(c+=d-s,c+=l-c%l,s=d+1,c>=i)return s}}var ot=[""];function pt(e){for(;ot.length<=e;)ot.push(lt(ot)+" ");return ot[e]}function lt(e){return e[e.length-1]}function gt(e,i){for(var l=[],s=0;s<e.length;s++)l[s]=i(e[s],s);return l}function xt(e,i,l){for(var s=0,c=l(i);s<e.length&&l(e[s])<=c;)s++;e.splice(s,0,i)}function at(){}function $t(e,i){var l;return Object.create?l=Object.create(e):(at.prototype=e,l=new at),i&&tt(i,l),l}var Nt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ot(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Nt.test(e))}function zt(e,i){return i?i.source.indexOf("\\w")>-1&&Ot(e)?!0:i.test(e):Ot(e)}function jt(e){for(var i in e)if(e.hasOwnProperty(i)&&e[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(e){return e.charCodeAt(0)>=768&&te.test(e)}function se(e,i,l){for(;(l<0?i>0:i<e.length)&&Qt(e.charAt(i));)i+=l;return i}function Xt(e,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,d=s<0?Math.ceil(c):Math.floor(c);if(d==i)return e(d)?i:l;e(d)?l=d:i=d+s}}function mn(e,i,l,s){if(!e)return s(i,l,"ltr",0);for(var c=!1,d=0;d<e.length;++d){var v=e[d];(v.from<l&&v.to>i||i==l&&v.to==i)&&(s(Math.max(v.from,i),Math.min(v.to,l),v.level==1?"rtl":"ltr",d),c=!0)}c||s(i,l,"ltr")}var Ln=null;function qe(e,i,l){var s;Ln=null;for(var c=0;c<e.length;++c){var d=e[c];if(d.from<i&&d.to>i)return c;d.to==i&&(d.from!=d.to&&l=="before"?s=c:Ln=c),d.from==i&&(d.from!=d.to&&l!="before"?s=c:Ln=c)}return s!=null?s:Ln}var Ji=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?e.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,d=/[LRr]/,v=/[Lb1n]/,y=/[1n]/;function w(_,N,O){this.level=_,this.from=N,this.to=O}return function(_,N){var O=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!s.test(_))return!1;for(var B=_.length,q=[],X=0;X<B;++X)q.push(l(_.charCodeAt(X)));for(var rt=0,ct=O;rt<B;++rt){var mt=q[rt];mt=="m"?q[rt]=ct:ct=mt}for(var _t=0,yt=O;_t<B;++_t){var Tt=q[_t];Tt=="1"&&yt=="r"?q[_t]="n":d.test(Tt)&&(yt=Tt,Tt=="r"&&(q[_t]="R"))}for(var Dt=1,Pt=q[0];Dt<B-1;++Dt){var Ut=q[Dt];Ut=="+"&&Pt=="1"&&q[Dt+1]=="1"?q[Dt]="1":Ut==","&&Pt==q[Dt+1]&&(Pt=="1"||Pt=="n")&&(q[Dt]=Pt),Pt=Ut}for(var 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=O;Ee<B;++Ee){var He=q[Ee];an=="L"&&He=="1"?q[Ee]="L":d.test(He)&&(an=He)}for(var Pe=0;Pe<B;++Pe)if(c.test(q[Pe])){var Ae=void 0;for(Ae=Pe+1;Ae<B&&c.test(q[Ae]);++Ae);for(var Ce=(Pe?q[Pe-1]:O)=="L",cn=(Ae<B?q[Ae]:O)=="L",wo=Ce==cn?Ce?"L":"R":O,Jr=Pe;Jr<Ae;++Jr)q[Jr]=wo;Pe=Ae-1}for(var Ke=[],rr,ze=0;ze<B;)if(v.test(q[ze])){var du=ze;for(++ze;ze<B&&v.test(q[ze]);++ze);Ke.push(new w(0,du,ze))}else{var Cr=ze,Li=Ke.length,Ei=N=="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(Li,0,new w(1,Cr,Qe)),Li+=Ei);var xo=Qe;for(++Qe;Qe<ze&&y.test(q[Qe]);++Qe);Ke.splice(Li,0,new w(2,xo,Qe)),Li+=Ei,Cr=Qe}else++Qe;Cr<ze&&Ke.splice(Li,0,new w(1,Cr,ze))}return N=="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)))),N=="rtl"?Ke.reverse():Ke}}();function be(e,i){var l=e.order;return l==null&&(l=e.order=Ji(e.text,i)),l}var nn=[],bt=function(e,i,l){if(e.addEventListener)e.addEventListener(i,l,!1);else if(e.attachEvent)e.attachEvent("on"+i,l);else{var s=e._handlers||(e._handlers={});s[i]=(s[i]||nn).concat(l)}};function Jo(e,i){return e._handlers&&e._handlers[i]||nn}function je(e,i,l){if(e.removeEventListener)e.removeEventListener(i,l,!1);else if(e.detachEvent)e.detachEvent("on"+i,l);else{var s=e._handlers,c=s&&s[i];if(c){var d=Ct(c,l);d>-1&&(s[i]=c.slice(0,d).concat(c.slice(d+1)))}}}function ve(e,i){var l=Jo(e,i);if(!!l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function Se(e,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,l||i.type,e,i),Qo(i)||i.codemirrorIgnore}function bl(e){var i=e._handlers&&e._handlers.cursorActivity;if(!!i)for(var l=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)Ct(l,i[s])==-1&&l.push(i[s])}function Ye(e,i){return Jo(e,i).length>0}function Ze(e){e.prototype.on=function(i,l){bt(this,i,l)},e.prototype.off=function(i,l){je(this,i,l)}}function Ge(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function yi(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qo(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function vr(e){Ge(e),yi(e)}function rn(e){return e.target||e.srcElement}function ts(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),G&&e.ctrlKey&&i==1&&(i=3),i}var xc=function(){if(p&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),$n;function _c(e){if($n==null){var i=k("span","\u200B");I(e,k("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($n=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&g<8))}var l=$n?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var Qi;function wl(e){if(Qi!=null)return Qi;var i=I(e,document.createTextNode("A\u062EA")),l=W(i,0,1).getBoundingClientRect(),s=W(i,1,2).getBoundingClientRect();return U(e),!l||l.left==l.right?!1:Qi=s.right-l.right<3}var es=`
|
|
8
|
+
|
|
9
|
+
b`.split(/\n/).length!=3?function(e){for(var i=0,l=[],s=e.length;i<=s;){var c=e.indexOf(`
|
|
10
|
+
`,i);c==-1&&(c=e.length);var d=e.slice(i,e.charAt(c-1)=="\r"?c-1:c),v=d.indexOf("\r");v!=-1?(l.push(d.slice(0,v)),i+=v+1):(l.push(d),i=c+1)}return l}:function(e){return e.split(/\r\n?|\n/)},qr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Zn=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Jn=null;function xl(e){if(Jn!=null)return Jn;var i=I(e,k("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return Jn=Math.abs(l.left-s.left)>1}var Fn={},Hr={};function _l(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fn[e]=i}function to(e,i){Hr[e]=i}function yn(e){if(typeof e=="string"&&Hr.hasOwnProperty(e))e=Hr[e];else if(e&&typeof e.name=="string"&&Hr.hasOwnProperty(e.name)){var i=Hr[e.name];typeof i=="string"&&(i={name:i}),e=$t(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function mr(e,i){i=yn(i);var l=Fn[i.name];if(!l)return mr(e,"text/plain");var s=l(e,i);if(Br.hasOwnProperty(i.name)){var c=Br[i.name];for(var d in c)!c.hasOwnProperty(d)||(s.hasOwnProperty(d)&&(s["_"+d]=s[d]),s[d]=c[d])}if(s.name=i.name,i.helperType&&(s.helperType=i.helperType),i.modeProps)for(var v in i.modeProps)s[v]=i.modeProps[v];return s}var Br={};function Sl(e,i){var l=Br.hasOwnProperty(e)?Br[e]:Br[e]={};tt(i,l)}function yr(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var l={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function Wr(e,i){for(var l;e.innerMode&&(l=e.innerMode(i),!(!l||l.mode==e));)i=l.state,e=l.mode;return l||{mode:e,state:i}}function ns(e,i,l){return e.startState?e.startState(i,l):!0}var ke=function(e,i,l){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};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(e){var i=this.string.charAt(this.pos),l;if(typeof e=="string"?l=i==e:l=i&&(e.test?e.test(i):e(i)),l)return++this.pos,i},ke.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},ke.prototype.backUp=function(e){this.pos-=e},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(e,i,l){if(typeof e=="string"){var s=function(v){return l?v.toLowerCase():v},c=this.string.substr(this.pos,e.length);if(s(c)==s(e))return i!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&i!==!1&&(this.pos+=d[0].length),d)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},ke.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function At(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var l=e;!l.lines;)for(var s=0;;++s){var c=l.children[s],d=c.chunkSize();if(i<d){l=c;break}i-=d}return l.lines[i]}function br(e,i,l){var s=[],c=i.line;return e.iter(i.line,l.line+1,function(d){var v=d.text;c==l.line&&(v=v.slice(0,l.ch)),c==i.line&&(v=v.slice(i.ch)),s.push(v),++c}),s}function eo(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Dn(e,i){var l=i-e.height;if(l)for(var s=e;s;s=s.parent)s.height+=l}function re(e){if(e.parent==null)return null;for(var i=e.parent,l=Ct(i.lines,e),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)l+=s.children[c].chunkSize();return l+i.first}function Qn(e,i){var l=e.first;t:do{for(var s=0;s<e.children.length;++s){var c=e.children[s],d=c.height;if(i<d){e=c;continue t}i-=d,l+=c.chunkSize()}return l}while(!e.lines);for(var v=0;v<e.lines.length;++v){var y=e.lines[v],w=y.height;if(i<w)break;i-=w}return l+v}function T(e,i){return i>=e.first&&i<e.first+e.size}function $(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function R(e,i,l){if(l===void 0&&(l=null),!(this instanceof R))return new R(e,i,l);this.line=e,this.ch=i,this.sticky=l}function K(e,i){return e.line-i.line||e.ch-i.ch}function It(e,i){return e.sticky==i.sticky&&K(e,i)==0}function Vt(e){return R(e.line,e.ch)}function ee(e,i){return K(e,i)<0?i:e}function Ne(e,i){return K(e,i)<0?e:i}function En(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function Ft(e,i){if(i.line<e.first)return R(e.first,0);var l=e.first+e.size-1;return i.line>l?R(l,At(e,l).text.length):Xy(i,At(e,i.line).text.length)}function Xy(e,i){var l=e.ch;return l==null||l>i?R(e.line,i):l<0?R(e.line,0):e}function xh(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(e,i[s]);return l}var kl=function(e,i){this.state=e,this.lookAhead=i},tr=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};tr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},tr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},tr.fromSaved=function(e,i,l){return i instanceof kl?new tr(e,yr(e.mode,i.state),l,i.lookAhead):new tr(e,yr(e.mode,i),l)},tr.prototype.save=function(e){var i=e!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new kl(i,this.maxLookAhead):i};function _h(e,i,l,s){var c=[e.state.modeGen],d={};Eh(e,i.text,e.doc.mode,l,function(_,N){return c.push(_,N)},d,s);for(var v=l.state,y=function(_){l.baseTokens=c;var N=e.state.overlays[_],O=1,B=0;l.state=!0,Eh(e,i.text,N.mode,l,function(q,X){for(var rt=O;B<q;){var ct=c[O];ct>q&&c.splice(O,1,q,c[O+1],ct),O+=2,B=Math.min(q,ct)}if(!!X)if(N.opaque)c.splice(rt,O-rt,q,"overlay "+X),O=rt+2;else for(;rt<O;rt+=2){var mt=c[rt+1];c[rt+1]=(mt?mt+" ":"")+"overlay "+X}},d),l.state=v,l.baseTokens=null,l.baseTokenPos=1},w=0;w<e.state.overlays.length;++w)y(w);return{styles:c,classes:d.bgClass||d.textClass?d:null}}function Sh(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=rs(e,re(i)),c=i.text.length>e.options.maxHighlightLength&&yr(e.doc.mode,s.state),d=_h(e,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=d.styles,d.classes?i.styleClasses=d.classes:i.styleClasses&&(i.styleClasses=null),l===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function rs(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new tr(s,!0,i);var d=Yy(e,i,l),v=d>s.first&&At(s,d-1).stateAfter,y=v?tr.fromSaved(s,v,d):new tr(s,ns(s.mode),d);return s.iter(d,i,function(w){Sc(e,w.text,y);var _=y.line;w.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function Sc(e,i,l,s){var c=e.doc.mode,d=new ke(i,e.options.tabSize,l);for(d.start=d.pos=s||0,i==""&&kh(c,l.state);!d.eol();)kc(c,d,l.state),d.start=d.pos}function kh(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var l=Wr(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function kc(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=Wr(e,l).mode);var d=e.token(i,l);if(i.pos>i.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ch=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function Th(e,i,l,s){var c=e.doc,d=c.mode,v;i=Ft(c,i);var y=At(c,i.line),w=rs(e,i.line,l),_=new ke(y.text,e.options.tabSize,w),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,v=kc(d,_,w.state),s&&N.push(new Ch(_,v,yr(c.mode,w.state)));return s?N:new Ch(_,v,w.state)}function Lh(e,i){if(e)for(;;){var l=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;e=e.slice(0,l.index)+e.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";i[s]==null?i[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+l[2])}return e}function Eh(e,i,l,s,c,d,v){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var w=0,_=null,N=new ke(i,e.options.tabSize,s),O,B=e.options.addModeClass&&[null];for(i==""&&Lh(kh(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,v&&Sc(e,i,s,N.pos),N.pos=i.length,O=null):O=Lh(kc(l,N,s.state,B),d),B){var q=B[0].name;q&&(O="m-"+(O?q+" "+O:q))}if(!y||_!=O){for(;w<N.start;)w=Math.min(N.start,w+5e3),c(w,_);_=O}N.start=N.pos}for(;w<N.pos;){var X=Math.min(N.pos,w+5e3);c(X,_),w=X}}function Yy(e,i,l){for(var s,c,d=e.doc,v=l?-1:i-(e.doc.mode.innerMode?1e3:100),y=i;y>v;--y){if(y<=d.first)return d.first;var w=At(d,y-1),_=w.stateAfter;if(_&&(!l||y+(_ instanceof kl?_.lookAhead:0)<=d.modeFrontier))return y;var N=V(w.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function Zy(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var l=e.first,s=i-1;s>l;s--){var c=At(e,s).stateAfter;if(c&&(!(c instanceof kl)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var Ah=!1,wr=!1;function Jy(){Ah=!0}function Qy(){wr=!0}function Cl(e,i,l){this.marker=e,this.from=i,this.to=l}function is(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function tb(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function eb(e,i,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&e.markedSpans&&s.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],s&&s.add(e.markedSpans)),i.marker.attachLine(e)}function nb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],v=d.marker,y=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);if(y||d.from==i&&v.type=="bookmark"&&(!l||!d.marker.insertLeft)){var w=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);(s||(s=[])).push(new Cl(v,d.from,w?null:d.to))}}return s}function rb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],v=d.marker,y=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);if(y||d.from==i&&v.type=="bookmark"&&(!l||d.marker.insertLeft)){var w=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);(s||(s=[])).push(new Cl(v,w?null:d.from-i,d.to==null?null:d.to-i))}}return s}function Cc(e,i){if(i.full)return null;var l=T(e,i.from.line)&&At(e,i.from.line).markedSpans,s=T(e,i.to.line)&&At(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,d=i.to.ch,v=K(i.from,i.to)==0,y=nb(l,c,v),w=rb(s,d,v),_=i.text.length==1,N=lt(i.text).length+(_?c:0);if(y)for(var O=0;O<y.length;++O){var B=y[O];if(B.to==null){var q=is(w,B.marker);q?_&&(B.to=q.to==null?null:q.to+N):B.to=c}}if(w)for(var X=0;X<w.length;++X){var rt=w[X];if(rt.to!=null&&(rt.to+=N),rt.from==null){var ct=is(y,rt.marker);ct||(rt.from=N,_&&(y||(y=[])).push(rt))}else rt.from+=N,_&&(y||(y=[])).push(rt)}y&&(y=Mh(y)),w&&w!=y&&(w=Mh(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 Cl(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(w)}return mt}function Mh(e){for(var i=0;i<e.length;++i){var l=e[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function ib(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var X=0;X<q.markedSpans.length;++X){var rt=q.markedSpans[X].marker;rt.readOnly&&(!s||Ct(s,rt)==-1)&&(s||(s=[])).push(rt)}}),!s)return null;for(var c=[{from:i,to:l}],d=0;d<s.length;++d)for(var v=s[d],y=v.find(0),w=0;w<c.length;++w){var _=c[w];if(!(K(_.to,y.from)<0||K(_.from,y.to)>0)){var N=[w,1],O=K(_.from,y.from),B=K(_.to,y.to);(O<0||!v.inclusiveLeft&&!O)&&N.push({from:_.from,to:y.from}),(B>0||!v.inclusiveRight&&!B)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),w+=N.length-3}}return c}function Nh(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function Ph(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function Tl(e){return e.inclusiveLeft?-1:0}function Ll(e){return e.inclusiveRight?1:0}function Tc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),d=K(s.from,c.from)||Tl(e)-Tl(i);if(d)return-d;var v=K(s.to,c.to)||Ll(e)-Ll(i);return v||i.id-e.id}function Oh(e,i){var l=wr&&e.markedSpans,s;if(l)for(var c=void 0,d=0;d<l.length;++d)c=l[d],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Tc(s,c.marker)<0)&&(s=c.marker);return s}function $h(e){return Oh(e,!0)}function El(e){return Oh(e,!1)}function ob(e,i){var l=wr&&e.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var d=l[c];d.marker.collapsed&&(d.from==null||d.from<i)&&(d.to==null||d.to>i)&&(!s||Tc(s,d.marker)<0)&&(s=d.marker)}return s}function Dh(e,i,l,s,c){var d=At(e,i),v=wr&&d.markedSpans;if(v)for(var y=0;y<v.length;++y){var w=v[y];if(!!w.marker.collapsed){var _=w.marker.find(0),N=K(_.from,l)||Tl(w.marker)-Tl(c),O=K(_.to,s)||Ll(w.marker)-Ll(c);if(!(N>=0&&O<=0||N<=0&&O>=0)&&(N<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.to,l)>=0:K(_.to,l)>0)||N>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.from,s)<=0:K(_.from,s)<0)))return!0}}}function qn(e){for(var i;i=$h(e);)e=i.find(-1,!0).line;return e}function sb(e){for(var i;i=El(e);)e=i.find(1,!0).line;return e}function lb(e){for(var i,l;i=El(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Lc(e,i){var l=At(e,i),s=qn(l);return l==s?i:re(s)}function Rh(e,i){if(i>e.lastLine())return i;var l=At(e,i),s;if(!Ur(e,l))return i;for(;s=El(l);)l=s.find(1,!0).line;return re(l)+1}function Ur(e,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&&Ec(e,i,s))return!0}}}function Ec(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Ec(e,s.line,is(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var c=void 0,d=0;d<i.markedSpans.length;++d)if(c=i.markedSpans[d],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Ec(e,i,c))return!0}function xr(e){e=qn(e);for(var i=0,l=e.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==e)break;i+=c.height}for(var d=l.parent;d;l=d,d=l.parent)for(var v=0;v<d.children.length;++v){var y=d.children[v];if(y==l)break;i+=y.height}return i}function Al(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=$h(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=El(s);){var d=l.find(0,!0);i-=s.text.length-d.from.ch,s=d.to.line,i+=s.text.length-d.to.ch}return i}function Ac(e){var i=e.display,l=e.doc;i.maxLine=At(l,l.first),i.maxLineLength=Al(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Al(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var no=function(e,i,l){this.text=e,Ph(this,i),this.height=l?l(this):1};no.prototype.lineNo=function(){return re(this)},Ze(no);function ab(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Nh(e),Ph(e,l);var c=s?s(e):1;c!=e.height&&Dn(e,c)}function cb(e){e.parent=null,Nh(e)}var ub={},fb={};function zh(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?fb:ub;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function Ih(e,i){var l=H("span",null,null,m?"padding-right: .1px":null),s={pre:H("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var d=c?i.rest[c-1]:i.line,v=void 0;s.pos=0,s.addToken=db,wl(e.display.measure)&&(v=be(d,e.doc.direction))&&(s.addToken=gb(s.addToken,v)),s.map=[];var y=i!=e.display.externalMeasured&&re(d);vb(d,s,Sh(e,d,y)),d.styleClasses&&(d.styleClasses.bgClass&&(s.bgClass=qt(d.styleClasses.bgClass,s.bgClass||"")),d.styleClasses.textClass&&(s.textClass=qt(d.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(_c(e.display.measure))),c==0?(i.measure.map=s.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(s.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(m){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 ve(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function hb(e){var i=k("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function db(e,i,l,s,c,d,v){if(!!i){var y=e.splitSpaces?pb(i,e.trailingSpace):i,w=e.cm.state.specialChars,_=!1,N;if(!w.test(i))e.col+=i.length,N=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,N),p&&g<9&&(_=!0),e.pos+=i.length;else{N=document.createDocumentFragment();for(var O=0;;){w.lastIndex=O;var B=w.exec(i),q=B?B.index-O:i.length-O;if(q){var X=document.createTextNode(y.slice(O,O+q));p&&g<9?N.appendChild(k("span",[X])):N.appendChild(X),e.map.push(e.pos,e.pos+q,X),e.col+=q,e.pos+=q}if(!B)break;O+=q+1;var rt=void 0;if(B[0]==" "){var ct=e.cm.options.tabSize,mt=ct-e.col%ct;rt=N.appendChild(k("span",pt(mt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=mt}else B[0]=="\r"||B[0]==`
|
|
11
|
+
`?(rt=N.appendChild(k("span",B[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rt.setAttribute("cm-text",B[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(B[0]),rt.setAttribute("cm-text",B[0]),p&&g<9?N.appendChild(k("span",[rt])):N.appendChild(rt),e.col+=1);e.map.push(e.pos,e.pos+1,rt),e.pos++}}if(e.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||d||v){var _t=l||"";s&&(_t+=s),c&&(_t+=c);var yt=k("span",[N],_t,d);if(v)for(var Tt in v)v.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&&yt.setAttribute(Tt,v[Tt]);return e.content.appendChild(yt)}e.content.appendChild(N)}}function pb(e,i){if(e.length>1&&!/ /.test(e))return e;for(var l=i,s="",c=0;c<e.length;c++){var d=e.charAt(c);d==" "&&l&&(c==e.length-1||e.charCodeAt(c+1)==32)&&(d="\xA0"),s+=d,l=d==" "}return s}function gb(e,i){return function(l,s,c,d,v,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var O=void 0,B=0;B<i.length&&(O=i[B],!(O.to>_&&O.from<=_));B++);if(O.to>=N)return e(l,s,c,d,v,y,w);e(l,s.slice(0,O.to-_),c,d,null,y,w),d=null,s=s.slice(O.to-_),_=O.to}}}function Fh(e,i,l,s){var c=!s&&l.widgetNode;c&&e.map.push(e.pos,e.pos+i,c),!s&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",l.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=i,e.trailingSpace=!1}function vb(e,i,l){var s=e.markedSpans,c=e.text,d=0;if(!s){for(var v=1;v<l.length;v+=2)i.addToken(i,c.slice(d,d=l[v]),zh(l[v+1],i.cm.options));return}for(var y=c.length,w=0,_=1,N="",O,B,q=0,X,rt,ct,mt,_t;;){if(q==w){X=rt=ct=B="",_t=null,mt=null,q=1/0;for(var yt=[],Tt=void 0,Dt=0;Dt<s.length;++Dt){var Pt=s[Dt],Ut=Pt.marker;if(Ut.type=="bookmark"&&Pt.from==w&&Ut.widgetNode)yt.push(Ut);else if(Pt.from<=w&&(Pt.to==null||Pt.to>w||Ut.collapsed&&Pt.to==w&&Pt.from==w)){if(Pt.to!=null&&Pt.to!=w&&q>Pt.to&&(q=Pt.to,rt=""),Ut.className&&(X+=" "+Ut.className),Ut.css&&(B=(B?B+";":"")+Ut.css),Ut.startStyle&&Pt.from==w&&(ct+=" "+Ut.startStyle),Ut.endStyle&&Pt.to==q&&(Tt||(Tt=[])).push(Ut.endStyle,Pt.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||Tc(mt.marker,Ut)<0)&&(mt=Pt)}else Pt.from>w&&q>Pt.from&&(q=Pt.from)}if(Tt)for(var Re=0;Re<Tt.length;Re+=2)Tt[Re+1]==q&&(rt+=" "+Tt[Re]);if(!mt||mt.from==w)for(var _e=0;_e<yt.length;++_e)Fh(i,0,yt[_e]);if(mt&&(mt.from||0)==w){if(Fh(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(N){var ln=w+N.length;if(!mt){var Ee=ln>wn?N.slice(0,wn-w):N;i.addToken(i,Ee,O?O+X:X,ct,w+Ee.length==q?rt:"",B,_t)}if(ln>=wn){N=N.slice(wn-w),w=wn;break}w=ln,ct=""}N=c.slice(d,d=l[_++]),O=zh(l[_++],i.cm.options)}}}function qh(e,i,l){this.line=i,this.rest=lb(i),this.size=this.rest?re(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ur(e,i)}function Ml(e,i,l){for(var s=[],c,d=i;d<l;d=c){var v=new qh(e.doc,At(e.doc,d),d);c=d+v.size,s.push(v)}return s}var ro=null;function mb(e){ro?ro.ops.push(e):e.ownsGroup=ro={ops:[e],delayedCallbacks:[]}}function yb(e){var i=e.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].call(null);for(var s=0;s<e.ops.length;s++){var c=e.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(l<i.length)}function bb(e,i){var l=e.ownsGroup;if(!!l)try{yb(l)}finally{ro=null,i(l)}}var os=null;function Oe(e,i){var l=Jo(e,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;ro?c=ro.delayedCallbacks:os?c=os:(c=os=[],setTimeout(wb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},v=0;v<l.length;++v)d(v)}}function wb(){var e=os;os=null;for(var i=0;i<e.length;++i)e[i]()}function Hh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?_b(e,i):d=="gutter"?Wh(e,i,l,s):d=="class"?Mc(e,i):d=="widget"&&Sb(e,i,s)}i.changes=null}function ss(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&g<8&&(e.node.style.zIndex=2)),e.node}function xb(e,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var s=ss(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function Bh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):Ih(e,i)}function _b(e,i){var l=i.text.className,s=Bh(e,i);i.text==i.node&&(i.node=s.pre),i.text.parentNode.replaceChild(s.pre,i.text),i.text=s.pre,s.bgClass!=i.bgClass||s.textClass!=i.textClass?(i.bgClass=s.bgClass,i.textClass=s.textClass,Mc(e,i)):l&&(i.text.className=l)}function Mc(e,i){xb(e,i),i.line.wrapClass?ss(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 Wh(e,i,l,s){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=ss(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var d=i.line.gutterMarkers;if(e.options.lineNumbers||d){var v=ss(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),e.display.input.setUneditable(y),v.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",$(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var w=0;w<e.display.gutterSpecs.length;++w){var _=e.display.gutterSpecs[w].className,N=d.hasOwnProperty(_)&&d[_];N&&y.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function Sb(e,i,l){i.alignable&&(i.alignable=null);for(var s=kt("CodeMirror-linewidget"),c=i.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Uh(e,i,l)}function kb(e,i,l,s){var c=Bh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Mc(e,i),Wh(e,i,l,s),Uh(e,i,s),i.node}function Uh(e,i,l){if(jh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)jh(e,i.rest[s],i,l,!1)}function jh(e,i,l,s,c){if(!!i.widgets)for(var d=ss(l),v=0,y=i.widgets;v<y.length;++v){var w=y[v],_=k("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Cb(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Oe(w,"redraw")}}function Cb(e,i,l,s){if(e.noHScroll){(l.alignable||(l.alignable=[])).push(i);var c=s.wrapperWidth;i.style.left=s.fixedPos+"px",e.coverGutter||(c-=s.gutterTotalWidth,i.style.paddingLeft=s.gutterTotalWidth+"px"),i.style.width=c+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-s.gutterTotalWidth+"px"))}function ls(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!et(document.body,e.node)){var l="position: relative;";e.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,k("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function _r(e,i){for(var l=rn(i);l!=e.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==e.sizer&&l!=e.mover)return!0}function Nl(e){return e.lineSpace.offsetTop}function Nc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gh(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=I(e.measure,k("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function er(e){return de-e.display.nativeBarWidth}function bi(e){return e.display.scroller.clientWidth-er(e)-e.display.barWidth}function Pc(e){return e.display.scroller.clientHeight-er(e)-e.display.barHeight}function Tb(e,i,l){var s=e.options.lineWrapping,c=s&&bi(e);if(!i.measure.heights||s&&i.measure.width!=c){var d=i.measure.heights=[];if(s){i.measure.width=c;for(var v=i.text.firstChild.getClientRects(),y=0;y<v.length-1;y++){var w=v[y],_=v[y+1];Math.abs(w.bottom-_.bottom)>2&&d.push((w.bottom+_.top)/2-l.top)}}d.push(l.bottom-l.top)}}function Vh(e,i,l){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var s=0;s<e.rest.length;s++)if(e.rest[s]==i)return{map:e.measure.maps[s],cache:e.measure.caches[s]};for(var c=0;c<e.rest.length;c++)if(re(e.rest[c])>l)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}}function Lb(e,i){i=qn(i);var l=re(i),s=e.display.externalMeasured=new qh(e.doc,i,l);s.lineN=l;var c=s.built=Ih(e,s);return s.text=c.pre,I(e.display.lineMeasure,c.pre),s}function Kh(e,i,l,s){return nr(e,io(e,i),l,s)}function Oc(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[_i(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function io(e,i){var l=re(i),s=Oc(e,l);s&&!s.text?s=null:s&&s.changes&&(Hh(e,s,l,Ic(e)),e.curOp.forceUpdate=!0),s||(s=Lb(e,i));var c=Vh(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function nr(e,i,l,s,c){i.before&&(l=-1);var d=l+(s||""),v;return i.cache.hasOwnProperty(d)?v=i.cache[d]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Tb(e,i.view,i.rect),i.hasHeights=!0),v=Ab(e,i,l,s),v.bogus||(i.cache[d]=v)),{left:v.left,right:v.right,top:c?v.rtop:v.top,bottom:c?v.rbottom:v.bottom}}var Xh={left:0,right:0,top:0,bottom:0};function Yh(e,i,l){for(var s,c,d,v,y,w,_=0;_<e.length;_+=3)if(y=e[_],w=e[_+1],i<y?(c=0,d=1,v="left"):i<w?(c=i-y,d=c+1):(_==e.length-3||i==w&&e[_+3]>i)&&(d=w-y,c=d-1,i>=w&&(v="right")),c!=null){if(s=e[_+2],y==w&&l==(s.insertLeft?"left":"right")&&(v=l),l=="left"&&c==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)s=e[(_-=3)+2],v="left";if(l=="right"&&c==w-y)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)s=e[(_+=3)+2],v="right";break}return{node:s,start:c,end:d,collapse:v,coverStart:y,coverEnd:w}}function Eb(e,i){var l=Xh;if(i=="left")for(var s=0;s<e.length&&(l=e[s]).left==l.right;s++);else for(var c=e.length-1;c>=0&&(l=e[c]).left==l.right;c--);return l}function Ab(e,i,l,s){var c=Yh(i.map,l,s),d=c.node,v=c.start,y=c.end,w=c.collapse,_;if(d.nodeType==3){for(var N=0;N<4;N++){for(;v&&Qt(i.line.text.charAt(c.coverStart+v));)--v;for(;c.coverStart+y<c.coverEnd&&Qt(i.line.text.charAt(c.coverStart+y));)++y;if(p&&g<9&&v==0&&y==c.coverEnd-c.coverStart?_=d.parentNode.getBoundingClientRect():_=Eb(W(d,v,y).getClientRects(),s),_.left||_.right||v==0)break;y=v,v=v-1,w="right"}p&&g<11&&(_=Mb(e.display.measure,_))}else{v>0&&(w=s="right");var O;e.options.lineWrapping&&(O=d.getClientRects()).length>1?_=O[s=="right"?O.length-1:0]:_=d.getBoundingClientRect()}if(p&&g<9&&!v&&(!_||!_.left&&!_.right)){var B=d.parentNode.getClientRects()[0];B?_={left:B.left,right:B.left+so(e.display),top:B.top,bottom:B.bottom}:_=Xh}for(var q=_.top-i.rect.top,X=_.bottom-i.rect.top,rt=(q+X)/2,ct=i.view.measure.heights,mt=0;mt<ct.length-1&&!(rt<ct[mt]);mt++);var _t=mt?ct[mt-1]:0,yt=ct[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),e.options.singleCursorHeightPerLine||(Tt.rtop=q,Tt.rbottom=X),Tt}function Mb(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!xl(e))return i;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*s,bottom:i.bottom*s}}function Zh(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function Jh(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Zh(e.display.view[i])}function as(e){Jh(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Qh(e){return x&&z?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function td(e){return x&&z?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function $c(e){var i=qn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=ls(l[c]));return s}function Pl(e,i,l,s,c){if(!c){var d=$c(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var v=xr(i);if(s=="local"?v+=Nl(e.display):v-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();v+=y.top+(s=="window"?0:td(Gt(e)));var w=y.left+(s=="window"?0:Qh(Gt(e)));l.left+=w,l.right+=w}return l.top+=v,l.bottom+=v,l}function ed(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Qh(Gt(e)),c-=td(Gt(e));else if(l=="local"||!l){var d=e.display.sizer.getBoundingClientRect();s+=d.left,c+=d.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:s-v.left,top:c-v.top}}function Ol(e,i,l,s,c){return s||(s=At(e.doc,i.line)),Pl(e,s,Kh(e,s,i.ch,c),l)}function Hn(e,i,l,s,c,d){s=s||At(e.doc,i.line),c||(c=io(e,s));function v(X,rt){var ct=nr(e,c,X,rt?"right":"left",d);return rt?ct.left=ct.right:ct.right=ct.left,Pl(e,s,ct,l)}var y=be(s,e.doc.direction),w=i.ch,_=i.sticky;if(w>=s.text.length?(w=s.text.length,_="before"):w<=0&&(w=0,_="after"),!y)return v(_=="before"?w-1:w,_=="before");function N(X,rt,ct){var mt=y[rt],_t=mt.level==1;return v(ct?X-1:X,_t!=ct)}var O=qe(y,w,_),B=Ln,q=N(w,O,_=="before");return B!=null&&(q.other=N(w,B,_!="before")),q}function nd(e,i){var l=0;i=Ft(e.doc,i),e.options.lineWrapping||(l=so(e.display)*i.ch);var s=At(e.doc,i.line),c=xr(s)+Nl(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function Dc(e,i,l,s,c){var d=R(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function Rc(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return Dc(s.first,0,null,-1,-1);var c=Qn(s,l),d=s.first+s.size-1;if(c>d)return Dc(s.first+s.size-1,At(s,d).text.length,null,1,1);i<0&&(i=0);for(var v=At(s,c);;){var y=Nb(e,v,c,i,l),w=ob(v,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;v=At(s,c=_.line)}}function rd(e,i,l,s){s-=$c(i);var c=i.text.length,d=Xt(function(v){return nr(e,l,v-1).bottom<=s},c,0);return c=Xt(function(v){return nr(e,l,v).top>s},d,c),{begin:d,end:c}}function id(e,i,l,s){l||(l=io(e,i));var c=Pl(e,i,nr(e,l,s),"line").top;return rd(e,i,l,c)}function zc(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function Nb(e,i,l,s,c){c-=xr(i);var d=io(e,i),v=$c(i),y=0,w=i.text.length,_=!0,N=be(i,e.doc.direction);if(N){var O=(e.options.lineWrapping?Ob:Pb)(e,i,l,d,N,s,c);_=O.level!=1,y=_?O.from:O.to-1,w=_?O.to:O.from-1}var B=null,q=null,X=Xt(function(Dt){var Pt=nr(e,d,Dt);return Pt.top+=v,Pt.bottom+=v,zc(Pt,s,c,!1)?(Pt.top<=c&&Pt.left<=s&&(B=Dt,q=Pt),!0):!1},y,w),rt,ct,mt=!1;if(q){var _t=s-q.left<q.right-s,yt=_t==_;X=B+(yt?0:1),ct=yt?"after":"before",rt=_t?q.left:q.right}else{!_&&(X==w||X==y)&&X++,ct=X==0?"after":X==i.text.length?"before":nr(e,d,X-(_?1:0)).bottom+v<=c==_?"after":"before";var Tt=Hn(e,R(l,X,ct),"line",i,d);rt=Tt.left,mt=c<Tt.top?-1:c>=Tt.bottom?1:0}return X=se(i.text,X,1),Dc(l,X,ct,mt,s-rt)}function Pb(e,i,l,s,c,d,v){var y=Xt(function(O){var B=c[O],q=B.level!=1;return zc(Hn(e,R(l,q?B.to:B.from,q?"before":"after"),"line",i,s),d,v,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,N=Hn(e,R(l,_?w.from:w.to,_?"after":"before"),"line",i,s);zc(N,d,v,!0)&&N.top>v&&(w=c[y-1])}return w}function Ob(e,i,l,s,c,d,v){var y=rd(e,i,s,v),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,O=null,B=0;B<c.length;B++){var q=c[B];if(!(q.from>=_||q.to<=w)){var X=q.level!=1,rt=nr(e,s,X?Math.min(_,q.to)-1:Math.max(w,q.from)).right,ct=rt<d?d-rt+1e9:rt-d;(!N||O>ct)&&(N=q,O=ct)}}return N||(N=c[c.length-1]),N.from<w&&(N={from:w,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var wi;function oo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wi==null){wi=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)wi.appendChild(document.createTextNode("x")),wi.appendChild(k("br"));wi.appendChild(document.createTextNode("x"))}I(e.measure,wi);var l=wi.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),U(e.measure),l||1}function so(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");I(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function Ic(e){for(var i=e.display,l={},s={},c=i.gutters.clientLeft,d=i.gutters.firstChild,v=0;d;d=d.nextSibling,++v){var y=e.display.gutterSpecs[v].className;l[y]=d.offsetLeft+d.clientLeft+c,s[y]=d.clientWidth}return{fixedPos:Fc(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Fc(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function od(e){var i=oo(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/so(e.display)-3);return function(c){if(Ur(e.doc,c))return 0;var d=0;if(c.widgets)for(var v=0;v<c.widgets.length;v++)c.widgets[v].height&&(d+=c.widgets[v].height);return l?d+(Math.ceil(c.text.length/s)||1)*i:d+i}}function qc(e){var i=e.doc,l=od(e);i.iter(function(s){var c=l(s);c!=s.height&&Dn(s,c)})}function xi(e,i,l,s){var c=e.display;if(!l&&rn(i).getAttribute("cm-not-content")=="true")return null;var d,v,y=c.lineSpace.getBoundingClientRect();try{d=i.clientX-y.left,v=i.clientY-y.top}catch{return null}var w=Rc(e,d,v),_;if(s&&w.xRel>0&&(_=At(e.doc,w.line).text).length==w.ch){var N=V(_,_.length,e.options.tabSize)-_.length;w=R(w.line,Math.max(0,Math.round((d-Gh(e.display).left)/so(e.display))-N))}return w}function _i(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var l=e.display.view,s=0;s<l.length;s++)if(i-=l[s].size,i<0)return s}function on(e,i,l,s){i==null&&(i=e.doc.first),l==null&&(l=e.doc.first+e.doc.size),s||(s=0);var c=e.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=c.viewTo)wr&&Lc(e.doc,i)<c.viewTo&&Gr(e);else if(l<=c.viewFrom)wr&&Rh(e.doc,l+s)>c.viewFrom?Gr(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Gr(e);else if(i<=c.viewFrom){var d=$l(e,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):Gr(e)}else if(l>=c.viewTo){var v=$l(e,i,i,-1);v?(c.view=c.view.slice(0,v.index),c.viewTo=v.lineN):Gr(e)}else{var y=$l(e,i,i,-1),w=$l(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Ml(e,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):Gr(e)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function jr(e,i,l){e.curOp.viewChanged=!0;var s=e.display,c=e.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(s.externalMeasured=null),!(i<s.viewFrom||i>=s.viewTo)){var d=s.view[_i(e,i)];if(d.node!=null){var v=d.changes||(d.changes=[]);Ct(v,l)==-1&&v.push(l)}}}function Gr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function $l(e,i,l,s){var c=_i(e,i),d,v=e.display.view;if(!wr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,w=0;w<c;w++)y+=v[w].size;if(y!=i){if(s>0){if(c==v.length-1)return null;d=y+v[c].size-i,c++}else d=y-i;i+=d,l+=d}for(;Lc(e.doc,l)!=l;){if(c==(s<0?0:v.length-1))return null;l+=s*v[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function $b(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Ml(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Ml(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(_i(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Ml(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,_i(e,l)))),s.viewTo=l}function sd(e){for(var i=e.display.view,l=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function cs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ld(e,i){i===void 0&&(i=!0);var l=e.doc,s={},c=s.cursors=document.createDocumentFragment(),d=s.selection=document.createDocumentFragment(),v=e.options.$customCursor;v&&(i=!0);for(var y=0;y<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var w=l.sel.ranges[y];if(!(w.from().line>=e.display.viewTo||w.to().line<e.display.viewFrom)){var _=w.empty();if(v){var N=v(e,w);N&&Hc(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&Hc(e,w.head,c);_||Db(e,w,d)}}return s}function Hc(e,i,l){var s=Hn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(k("div","\xA0","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=Ol(e,i,"div",null,null),v=d.right-d.left;c.style.width=(v>0?v:e.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div","\xA0","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 Dl(e,i){return e.top-i.top||e.left-i.left}function Db(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),v=Gh(e.display),y=v.left,w=Math.max(s.sizerWidth,bi(e)-s.sizer.offsetLeft)-v.right,_=c.direction=="ltr";function N(yt,Tt,Dt,Pt){Tt<0&&(Tt=0),Tt=Math.round(Tt),Pt=Math.round(Pt),d.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
|
|
12
|
+
top: `+Tt+"px; width: "+(Dt==null?w-yt:Dt)+`px;
|
|
13
|
+
height: `+(Pt-Tt)+"px"))}function O(yt,Tt,Dt){var Pt=At(c,yt),Ut=Pt.text.length,pe,Re;function _e(Ee,an){return Ol(e,R(yt,Ee),"div",Pt,an)}function wn(Ee,an,He){var Pe=id(e,Pt,null,Ee),Ae=an=="ltr"==(He=="after")?"left":"right",Ce=He=="after"?Pe.begin:Pe.end-(/\s/.test(Pt.text.charAt(Pe.end-1))?2:1);return _e(Ce,Ae)[Ae]}var ln=be(Pt,c.direction);return mn(ln,Tt||0,Dt==null?Ut:Dt,function(Ee,an,He,Pe){var Ae=He=="ltr",Ce=_e(Ee,Ae?"left":"right"),cn=_e(an-1,Ae?"right":"left"),wo=Tt==null&&Ee==0,Jr=Dt==null&&an==Ut,Ke=Pe==0,rr=!ln||Pe==ln.length-1;if(cn.top-Ce.top<=3){var ze=(_?wo:Jr)&&Ke,du=(_?Jr:wo)&&rr,Cr=ze?y:(Ae?Ce:cn).left,Li=du?w:(Ae?cn:Ce).right;N(Cr,Ce.top,Li-Cr,Ce.bottom)}else{var Ei,Qe,xo,pu;Ae?(Ei=_&&wo&&Ke?y:Ce.left,Qe=_?w:wn(Ee,He,"before"),xo=_?y:wn(an,He,"after"),pu=_&&Jr&&rr?w:cn.right):(Ei=_?wn(Ee,He,"before"):y,Qe=!_&&wo&&Ke?w:Ce.right,xo=!_&&Jr&&rr?y:cn.left,pu=_?wn(an,He,"after"):w),N(Ei,Ce.top,Qe-Ei,Ce.bottom),Ce.bottom<cn.top&&N(y,Ce.bottom,null,cn.top),N(xo,cn.top,pu-xo,cn.bottom)}(!pe||Dl(Ce,pe)<0)&&(pe=Ce),Dl(cn,pe)<0&&(pe=cn),(!Re||Dl(Ce,Re)<0)&&(Re=Ce),Dl(cn,Re)<0&&(Re=cn)}),{start:pe,end:Re}}var B=i.from(),q=i.to();if(B.line==q.line)O(B.line,B.ch,q.ch);else{var X=At(c,B.line),rt=At(c,q.line),ct=qn(X)==qn(rt),mt=O(B.line,B.ch,ct?X.text.length+1:null).end,_t=O(q.line,ct?0:null,q.ch).start;ct&&(mt.top<_t.top-2?(N(mt.right,mt.top,null,mt.bottom),N(y,_t.top,_t.left,_t.bottom)):N(mt.right,mt.top,_t.left-mt.right,mt.bottom)),mt.bottom<_t.top&&N(y,mt.bottom,null,_t.top)}l.appendChild(d)}function Bc(e){if(!!e.state.focused){var i=e.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||lo(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function ad(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Uc(e))}function Wc(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&lo(e))},100)}function Uc(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ve(e,"focus",e,i),e.state.focused=!0,Et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),m&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Bc(e))}function lo(e,i){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,i),e.state.focused=!1,ft(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Rl(e){for(var i=e.display,l=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,d=0,v=0;v<i.view.length;v++){var y=i.view[v],w=e.options.lineWrapping,_=void 0,N=0;if(!y.hidden){if(c+=y.line.height,p&&g<8){var O=y.node.offsetTop+y.node.offsetHeight;_=O-l,l=O}else{var B=y.node.getBoundingClientRect();_=B.bottom-B.top,!w&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-B.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(d-=q),Dn(y.line,_),cd(y.line),y.rest))for(var X=0;X<y.rest.length;X++)cd(y.rest[X]);if(N>e.display.sizerWidth){var rt=Math.ceil(N/so(e.display));rt>e.display.maxLineLength&&(e.display.maxLineLength=rt,e.display.maxLine=y.line,e.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(i.scroller.scrollTop+=d)}function cd(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var l=e.widgets[i],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function zl(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Nl(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=Qn(i,s),v=Qn(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<d?(d=y,v=Qn(i,xr(At(i,y))+e.wrapper.clientHeight)):Math.min(w,i.lastLine())>=v&&(d=Qn(i,xr(At(i,w))-e.wrapper.clientHeight),v=w)}return{from:d,to:Math.max(v,d+1)}}function Rb(e,i){if(!Se(e,"scrollCursorIntoView")){var l=e.display,s=l.sizer.getBoundingClientRect(),c=null,d=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(d.defaultView.innerHeight||d.documentElement.clientHeight)&&(c=!1),c!=null&&!C){var v=k("div","\u200B",null,`position: absolute;
|
|
14
|
+
top: `+(i.top-l.viewOffset-Nl(e.display))+`px;
|
|
15
|
+
height: `+(i.bottom-i.top+er(e)+l.barHeight)+`px;
|
|
16
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(v),v.scrollIntoView(c),e.display.lineSpace.removeChild(v)}}}function zb(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?R(i.line,i.ch+1,"before"):i,i=i.ch?R(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var d=0;d<5;d++){var v=!1,y=Hn(e,i),w=!l||l==i?y:Hn(e,l);c={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-s,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+s};var _=jc(e,c),N=e.doc.scrollTop,O=e.doc.scrollLeft;if(_.scrollTop!=null&&(fs(e,_.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(v=!0)),_.scrollLeft!=null&&(Si(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-O)>1&&(v=!0)),!v)break}return c}function Ib(e,i){var l=jc(e,i);l.scrollTop!=null&&fs(e,l.scrollTop),l.scrollLeft!=null&&Si(e,l.scrollLeft)}function jc(e,i){var l=e.display,s=oo(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,d=Pc(e),v={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Nc(l),w=i.top<s,_=i.bottom>y-s;if(i.top<c)v.scrollTop=w?0:i.top;else if(i.bottom>c+d){var N=Math.min(i.top,(_?y:i.bottom)-d);N!=c&&(v.scrollTop=N)}var O=e.options.fixedGutter?0:l.gutters.offsetWidth,B=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-O,q=bi(e)-l.gutters.offsetWidth,X=i.right-i.left>q;return X&&(i.right=i.left+q),i.left<10?v.scrollLeft=0:i.left<B?v.scrollLeft=Math.max(0,i.left+O-(X?0:10)):i.right>q+B-3&&(v.scrollLeft=i.right+(X?0:10)-q),v}function Gc(e,i){i!=null&&(Il(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function ao(e){Il(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function us(e,i,l){(i!=null||l!=null)&&Il(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function Fb(e,i){Il(e),e.curOp.scrollToPos=i}function Il(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=nd(e,i.from),s=nd(e,i.to);ud(e,l,s,i.margin)}}function ud(e,i,l,s){var c=jc(e,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-s,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+s});us(e,c.scrollLeft,c.scrollTop)}function fs(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||Kc(e,{top:i}),fd(e,i,!0),a&&Kc(e),ps(e,100))}function fd(e,i,l){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!l)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Si(e,i,l,s){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((l?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!s)&&(e.doc.scrollLeft=i,vd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function hs(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Nc(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+er(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var ki=function(e,i,l){this.cm=l;var s=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,e(s),e(c),bt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),bt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ki.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,l=e.scrollHeight>e.clientHeight+1,s=e.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=i?s+"px":"0";var c=e.viewHeight-(i?s:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=l?s+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:i?s:0}},ki.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ki.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ki.prototype.zeroWidthHack=function(){var e=G&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new st,this.disableVert=new st},ki.prototype.enableZeroWidthBar=function(e,i,l){e.style.visibility="";function s(){var c=e.getBoundingClientRect(),d=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);d!=e?e.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},ki.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ds=function(){};ds.prototype.update=function(){return{bottom:0,right:0}},ds.prototype.setScrollLeft=function(){},ds.prototype.setScrollTop=function(){},ds.prototype.clear=function(){};function co(e,i){i||(i=hs(e));var l=e.display.barWidth,s=e.display.barHeight;hd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Rl(e),hd(e,hs(e)),l=e.display.barWidth,s=e.display.barHeight}function hd(e,i){var l=e.display,s=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var dd={native:ki,null:ds};function pd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ft(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new dd[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),bt(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?Si(e,i):fs(e,i)},e),e.display.scrollbars.addClass&&Et(e.display.wrapper,e.display.scrollbars.addClass)}var qb=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qb,markArrays:null},mb(e.curOp)}function Ti(e){var i=e.curOp;i&&bb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;Hb(l)})}function Hb(e){for(var i=e.ops,l=0;l<i.length;l++)Bb(i[l]);for(var s=0;s<i.length;s++)Wb(i[s]);for(var c=0;c<i.length;c++)Ub(i[c]);for(var d=0;d<i.length;d++)jb(i[d]);for(var v=0;v<i.length;v++)Gb(i[v])}function Bb(e){var i=e.cm,l=i.display;Kb(i),e.updateMaxLine&&Ac(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<l.viewFrom||e.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new Fl(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wb(e){e.updatedDisplay=e.mustUpdate&&Vc(e.cm,e.update)}function Ub(e){var i=e.cm,l=i.display;e.updatedDisplay&&Rl(i),e.barMeasure=hs(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Kh(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+e.adjustWidthTo+er(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-bi(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function jb(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Si(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=e.focus&&e.focus==wt(Gt(i));e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=i.doc.height)&&co(i,e.barMeasure),e.updatedDisplay&&Yc(i,e.barMeasure),e.selectionChanged&&Bc(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&ad(e.cm)}function Gb(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&gd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&fd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Si(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=zb(i,Ft(s,e.scrollToPos.from),Ft(s,e.scrollToPos.to),e.scrollToPos.margin);Rb(i,c)}var d=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(d)for(var y=0;y<d.length;++y)d[y].lines.length||ve(d[y],"hide");if(v)for(var w=0;w<v.length;++w)v[w].lines.length&&ve(v[w],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&ve(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function bn(e,i){if(e.curOp)return i();Ci(e);try{return i()}finally{Ti(e)}}function $e(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ci(e);try{return i.apply(e,arguments)}finally{Ti(e)}}}function Je(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Ti(this)}}}function De(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ci(i);try{return e.apply(this,arguments)}finally{Ti(i)}}}function ps(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,J(Vb,e))}function Vb(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=rs(e,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,e.display.viewTo+500),function(d){if(s.line>=e.display.viewFrom){var v=d.styles,y=d.text.length>e.options.maxHighlightLength?yr(i.mode,s.state):null,w=_h(e,d,s,!0);y&&(s.state=y),d.styles=w.styles;var _=d.styleClasses,N=w.classes;N?d.styleClasses=N:_&&(d.styleClasses=null);for(var O=!v||v.length!=d.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),B=0;!O&&B<v.length;++B)O=v[B]!=d.styles[B];O&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=e.options.maxHighlightLength&&Sc(e,d.text,s),d.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return ps(e,e.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&bn(e,function(){for(var d=0;d<c.length;d++)jr(e,c[d],"text")})}}var Fl=function(e,i,l){var s=e.display;this.viewport=i,this.visible=zl(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=bi(e),this.force=l,this.dims=Ic(e),this.events=[]};Fl.prototype.signal=function(e,i){Ye(e,i)&&this.events.push(arguments)},Fl.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};function Kb(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=er(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=er(e)+"px",i.scrollbarsClipped=!0)}function Xb(e){if(e.hasFocus())return null;var i=wt(Gt(e));if(!i||!et(e.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=ne(e).getSelection();s.anchorNode&&s.extend&&et(e.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function Yb(e){if(!(!e||!e.activeElt||e.activeElt==wt(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&et(document.body,e.anchorNode)&&et(document.body,e.focusNode))){var i=e.activeElt.ownerDocument,l=i.defaultView.getSelection(),s=i.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(e.focusNode,e.focusOffset)}}function Vc(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return Gr(e),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&sd(e)==0)return!1;md(e)&&(Gr(e),i.dims=Ic(e));var c=s.first+s.size,d=Math.max(i.visible.from-e.options.viewportMargin,s.first),v=Math.min(c,i.visible.to+e.options.viewportMargin);l.viewFrom<d&&d-l.viewFrom<20&&(d=Math.max(s.first,l.viewFrom)),l.viewTo>v&&l.viewTo-v<20&&(v=Math.min(c,l.viewTo)),wr&&(d=Lc(e.doc,d),v=Rh(e.doc,v));var y=d!=l.viewFrom||v!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;$b(e,d,v),l.viewOffset=xr(At(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=sd(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=Xb(e);return w>4&&(l.lineDiv.style.display="none"),Zb(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Yb(_),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,ps(e,400)),l.updateLineNumbers=null,!0}function gd(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==bi(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Nc(e.display)-Pc(e),l.top)}),i.visible=zl(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=zl(e.display,e.doc,l));if(!Vc(e,i))break;Rl(e);var c=hs(e);cs(e),co(e,c),Yc(e,c),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Kc(e,i){var l=new Fl(e,i);if(Vc(e,l)){Rl(e),gd(e,l);var s=hs(e);cs(e),co(e,s),Yc(e,s),l.finish()}}function Zb(e,i,l){var s=e.display,c=e.options.lineNumbers,d=s.lineDiv,v=d.firstChild;function y(X){var rt=X.nextSibling;return m&&G&&e.display.currentWheelTarget==X?X.style.display="none":X.parentNode.removeChild(X),rt}for(var w=s.view,_=s.viewFrom,N=0;N<w.length;N++){var O=w[N];if(!O.hidden)if(!O.node||O.node.parentNode!=d){var B=kb(e,O,_,l);d.insertBefore(B,v)}else{for(;v!=O.node;)v=y(v);var q=c&&i!=null&&i<=_&&O.lineNumber;O.changes&&(Ct(O.changes,"gutter")>-1&&(q=!1),Hh(e,O,_,l)),q&&(U(O.lineNumber),O.lineNumber.appendChild(document.createTextNode($(e.options,_)))),v=O.node.nextSibling}_+=O.size}for(;v;)v=y(v)}function Xc(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Oe(e,"gutterChanged",e)}function Yc(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+er(e)+"px"}function vd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=Fc(i)-i.scroller.scrollLeft+e.doc.scrollLeft,c=i.gutters.offsetWidth,d=s+"px",v=0;v<l.length;v++)if(!l[v].hidden){e.options.fixedGutter&&(l[v].gutter&&(l[v].gutter.style.left=d),l[v].gutterBackground&&(l[v].gutterBackground.style.left=d));var y=l[v].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=d}e.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function md(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=$(e.options,i.first+i.size-1),s=e.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(k("div",[k("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=c.firstChild.offsetWidth,v=c.offsetWidth-d;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(d,s.lineGutter.offsetWidth-v)+1,s.lineNumWidth=s.lineNumInnerWidth+v,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",Xc(e.display),!0}return!1}function Zc(e,i){for(var l=[],s=!1,c=0;c<e.length;c++){var d=e[c],v=null;if(typeof d!="string"&&(v=d.style,d=d.className),d=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:d,style:v})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function yd(e){var i=e.gutters,l=e.gutterSpecs;U(i),e.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],d=c.className,v=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+d));v&&(y.style.cssText=v),d=="CodeMirror-linenumbers"&&(e.lineGutter=y,y.style.width=(e.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",Xc(e)}function gs(e){yd(e.display),on(e),vd(e)}function Jb(e,i,l,s){var c=this;this.input=l,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=H("div",null,"CodeMirror-code"),c.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=k("div",null,"CodeMirror-cursors"),c.measure=k("div",null,"CodeMirror-measure"),c.lineMeasure=k("div",null,"CodeMirror-measure"),c.lineSpace=H("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=H("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[d],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),c.gutters=k("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=k("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=k("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),x&&S>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),p&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!m&&!(a&&D)&&(c.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(c.wrapper):e(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Zc(s.gutters,s.lineNumbers),yd(c),l.init(c)}var ql=0,Sr=null;p?Sr=-.53:a?Sr=15:x?Sr=-.7:A&&(Sr=-1/3);function bd(e){var i=e.wheelDeltaX,l=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),l==null&&e.detail&&e.axis==e.VERTICAL_AXIS?l=e.detail:l==null&&(l=e.wheelDelta),{x:i,y:l}}function Qb(e){var i=bd(e);return i.x*=Sr,i.y*=Sr,i}function wd(e,i){x&&S==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var l=bd(i),s=l.x,c=l.y,d=Sr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,d=1);var v=e.display,y=v.scroller,w=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(!!(s&&w||c&&_)){if(c&&G&&m){t:for(var N=i.target,O=v.view;N!=y;N=N.parentNode)for(var B=0;B<O.length;B++)if(O[B].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!M&&d!=null){c&&_&&fs(e,Math.max(0,y.scrollTop+c*d)),Si(e,Math.max(0,y.scrollLeft+s*d)),(!c||c&&_)&&Ge(i),v.wheelStartX=null;return}if(c&&d!=null){var q=c*d,X=e.doc.scrollTop,rt=X+v.wrapper.clientHeight;q<0?X=Math.max(0,X+q-50):rt=Math.min(e.doc.height,rt+q+50),Kc(e,{top:X,bottom:rt})}ql<20&&i.deltaMode!==0&&(v.wheelStartX==null?(v.wheelStartX=y.scrollLeft,v.wheelStartY=y.scrollTop,v.wheelDX=s,v.wheelDY=c,setTimeout(function(){if(v.wheelStartX!=null){var ct=y.scrollLeft-v.wheelStartX,mt=y.scrollTop-v.wheelStartY,_t=mt&&v.wheelDY&&mt/v.wheelDY||ct&&v.wheelDX&&ct/v.wheelDX;v.wheelStartX=v.wheelStartY=null,_t&&(Sr=(Sr*ql+_t)/(ql+1),++ql)}},200)):(v.wheelDX+=s,v.wheelDY+=c))}}var An=function(e,i){this.ranges=e,this.primIndex=i};An.prototype.primary=function(){return this.ranges[this.primIndex]},An.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var l=this.ranges[i],s=e.ranges[i];if(!It(l.anchor,s.anchor)||!It(l.head,s.head))return!1}return!0},An.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new ie(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new An(e,this.primIndex)},An.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},An.prototype.contains=function(e,i){i||(i=e);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(K(i,s.from())>=0&&K(e,s.to())<=0)return l}return-1};var ie=function(e,i){this.anchor=e,this.head=i};ie.prototype.from=function(){return Ne(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(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(B,q){return K(B.from(),q.from())}),l=Ct(i,c);for(var d=1;d<i.length;d++){var v=i[d],y=i[d-1],w=K(y.to(),v.from());if(s&&!v.empty()?w>0:w>=0){var _=Ne(y.from(),v.from()),N=ee(y.to(),v.to()),O=y.empty()?v.from()==v.head:y.from()==y.head;d<=l&&--l,i.splice(--d,2,new ie(O?N:_,O?_:N))}}return new An(i,l)}function Vr(e,i){return new An([new ie(e,i||e)],0)}function Kr(e){return e.text?R(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function xd(e,i){if(K(e,i.from)<0)return e;if(K(e,i.to)<=0)return Kr(i);var l=e.line+i.text.length-(i.to.line-i.from.line)-1,s=e.ch;return e.line==i.to.line&&(s+=Kr(i).ch-i.to.ch),R(l,s)}function Jc(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ie(xd(c.anchor,i),xd(c.head,i)))}return Bn(e.cm,l,e.sel.primIndex)}function _d(e,i,l){return e.line==i.line?R(l.line,e.ch-i.ch+l.ch):R(l.line+(e.line-i.line),e.ch)}function tw(e,i,l){for(var s=[],c=R(e.first,0),d=c,v=0;v<i.length;v++){var y=i[v],w=_d(y.from,c,d),_=_d(Kr(y),c,d);if(c=y.to,d=_,l=="around"){var N=e.sel.ranges[v],O=K(N.head,N.anchor)<0;s[v]=new ie(O?_:w,O?w:_)}else s[v]=new ie(w,w)}return new An(s,e.sel.primIndex)}function Qc(e){e.doc.mode=mr(e.options,e.doc.modeOption),vs(e)}function vs(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ps(e,100),e.state.modeGen++,e.curOp&&on(e)}function Sd(e,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function tu(e,i,l,s){function c(_t){return l?l[_t]:null}function d(_t,yt,Tt){ab(_t,yt,Tt,s),Oe(_t,"change",_t,i)}function v(_t,yt){for(var Tt=[],Dt=_t;Dt<yt;++Dt)Tt.push(new no(_[Dt],c(Dt),s));return Tt}var y=i.from,w=i.to,_=i.text,N=At(e,y.line),O=At(e,w.line),B=lt(_),q=c(_.length-1),X=w.line-y.line;if(i.full)e.insert(0,v(0,_.length)),e.remove(_.length,e.size-_.length);else if(Sd(e,i)){var rt=v(0,_.length-1);d(O,O.text,q),X&&e.remove(y.line,X),rt.length&&e.insert(y.line,rt)}else if(N==O)if(_.length==1)d(N,N.text.slice(0,y.ch)+B+N.text.slice(w.ch),q);else{var ct=v(1,_.length-1);ct.push(new no(B+N.text.slice(w.ch),q,s)),d(N,N.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,ct)}else if(_.length==1)d(N,N.text.slice(0,y.ch)+_[0]+O.text.slice(w.ch),c(0)),e.remove(y.line+1,X);else{d(N,N.text.slice(0,y.ch)+_[0],c(0)),d(O,B+O.text.slice(w.ch),q);var mt=v(1,_.length-1);X>1&&e.remove(y.line+1,X-1),e.insert(y.line+1,mt)}Oe(e,"change",e,i)}function Xr(e,i,l){function s(c,d,v){if(c.linked)for(var y=0;y<c.linked.length;++y){var w=c.linked[y];if(w.doc!=d){var _=v&&w.sharedHist;l&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(e,null,!0)}function kd(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,qc(e),Qc(e),Cd(e),e.options.direction=i.direction,e.options.lineWrapping||Ac(e),e.options.mode=i.modeOption,on(e)}function Cd(e){(e.doc.direction=="rtl"?Et:ft)(e.display.lineDiv,"CodeMirror-rtl")}function ew(e){bn(e,function(){Cd(e),on(e)})}function Hl(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function eu(e,i){var l={from:Vt(i.from),to:Kr(i),text:br(e,i.from,i.to)};return Ed(e,l,i.from.line,i.to.line+1),Xr(e,function(s){return Ed(s,l,i.from.line,i.to.line+1)},!0),l}function Td(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function nw(e,i){if(i)return Td(e.done),lt(e.done);if(e.done.length&&!lt(e.done).ranges)return lt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),lt(e.done)}function Ld(e,i,l,s){var c=e.history;c.undone.length=0;var d=+new Date,v,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(v=nw(c,c.lastOp==s)))y=lt(v.changes),K(i.from,i.to)==0&&K(i.from,y.to)==0?y.to=Kr(i):v.changes.push(eu(e,i));else{var w=lt(c.done);for((!w||!w.ranges)&&Bl(e.sel,c.done),v={changes:[eu(e,i)],generation:c.generation},c.done.push(v);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=d,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||ve(e,"historyAdded")}function rw(e,i,l,s){var c=i.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function iw(e,i,l,s){var c=e.history,d=s&&s.origin;l==c.lastSelOp||d&&c.lastSelOrigin==d&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==d||rw(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:Bl(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&Td(c.undone)}function Bl(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Ed(e,i,l,s){var c=i["spans_"+e.id],d=0;e.iter(Math.max(e.first,l),Math.min(e.first+e.size,s),function(v){v.markedSpans&&((c||(c=i["spans_"+e.id]={}))[d]=v.markedSpans),++d})}function ow(e){if(!e)return null;for(var i,l=0;l<e.length;++l)e[l].marker.explicitlyCleared?i||(i=e.slice(0,l)):i&&i.push(e[l]);return i?i.length?i:null:e}function sw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(ow(l[c]));return s}function Ad(e,i){var l=sw(e,i),s=Cc(e,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var d=l[c],v=s[c];if(d&&v){t:for(var y=0;y<v.length;++y){for(var w=v[y],_=0;_<d.length;++_)if(d[_].marker==w.marker)continue t;d.push(w)}}else v&&(l[c]=v)}return l}function uo(e,i,l){for(var s=[],c=0;c<e.length;++c){var d=e[c];if(d.ranges){s.push(l?An.prototype.deepCopy.call(d):d);continue}var v=d.changes,y=[];s.push({changes:y});for(var w=0;w<v.length;++w){var _=v[w],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var O in _)(N=O.match(/^spans_(\d+)$/))&&Ct(i,Number(N[1]))>-1&&(lt(y)[O]=_[O],delete _[O])}}return s}function nu(e,i,l,s){if(s){var c=e.anchor;if(l){var d=K(i,c)<0;d!=K(l,c)<0?(c=i,i=l):d!=K(i,l)<0&&(i=l)}return new ie(c,i)}else return new ie(l||i,i)}function Wl(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ve(e,new An([nu(e.sel.primary(),i,l,c)],0),s)}function Md(e,i,l){for(var s=[],c=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)s[d]=nu(e.sel.ranges[d],i[d],null,c);var v=Bn(e.cm,s,e.sel.primIndex);Ve(e,v,l)}function ru(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ve(e,Bn(e.cm,c,e.sel.primIndex),s)}function Nd(e,i,l,s){Ve(e,Vr(i,l),s)}function lw(e,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var d=0;d<c.length;d++)this.ranges[d]=new ie(Ft(e,c[d].anchor),Ft(e,c[d].head))},origin:l&&l.origin};return ve(e,"beforeSelectionChange",e,s),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Bn(e.cm,s.ranges,s.ranges.length-1):i}function Pd(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Ul(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){Ul(e,i,l),iw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Ul(e,i,l){(Ye(e,"beforeSelectionChange")||e.cm&&Ye(e.cm,"beforeSelectionChange"))&&(i=lw(e,i,l));var s=l&&l.bias||(K(i.primary().head,e.sel.primary().head)<0?-1:1);Od(e,Dd(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ao(e.cm)}function Od(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,bl(e.cm)),Oe(e,"cursorActivity",e))}function $d(e){Od(e,Dd(e,e.sel,null,!1))}function Dd(e,i,l,s){for(var c,d=0;d<i.ranges.length;d++){var v=i.ranges[d],y=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],w=jl(e,v.anchor,y&&y.anchor,l,s),_=v.head==v.anchor?w:jl(e,v.head,y&&y.head,l,s);(c||w!=v.anchor||_!=v.head)&&(c||(c=i.ranges.slice(0,d)),c[d]=new ie(w,_))}return c?Bn(e.cm,c,i.primIndex):i}function fo(e,i,l,s,c){var d=At(e,i.line);if(d.markedSpans)for(var v=0;v<d.markedSpans.length;++v){var y=d.markedSpans[v],w=y.marker,_="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,N="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(N?y.to>=i.ch:y.to>i.ch))){if(c&&(ve(w,"beforeCursorEnter"),w.explicitlyCleared))if(d.markedSpans){--v;continue}else break;if(!w.atomic)continue;if(l){var O=w.find(s<0?1:-1),B=void 0;if((s<0?N:_)&&(O=Rd(e,O,-s,O&&O.line==i.line?d:null)),O&&O.line==i.line&&(B=K(O,l))&&(s<0?B<0:B>0))return fo(e,O,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:N)&&(q=Rd(e,q,s,q.line==i.line?d:null)),q?fo(e,q,i,s,c):null}}return i}function jl(e,i,l,s,c){var d=s||1,v=fo(e,i,l,d,c)||!c&&fo(e,i,l,d,!0)||fo(e,i,l,-d,c)||!c&&fo(e,i,l,-d,!0);return v||(e.cantEdit=!0,R(e.first,0))}function Rd(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?Ft(e,R(i.line-1)):null:l>0&&i.ch==(s||At(e,i.line)).text.length?i.line<e.first+e.size-1?R(i.line+1,0):null:new R(i.line,i.ch+l)}function zd(e){e.setSelection(R(e.firstLine(),0),R(e.lastLine()),P)}function Id(e,i,l){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,d,v,y){c&&(s.from=Ft(e,c)),d&&(s.to=Ft(e,d)),v&&(s.text=v),y!==void 0&&(s.origin=y)}),ve(e,"beforeChange",e,s),e.cm&&ve(e.cm,"beforeChange",e.cm,s),s.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function ho(e,i,l){if(e.cm){if(!e.cm.curOp)return $e(e.cm,ho)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"))&&(i=Id(e,i,!0),!i))){var s=Ah&&!l&&ib(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Fd(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Fd(e,i)}}function Fd(e,i){if(!(i.text.length==1&&i.text[0]==""&&K(i.from,i.to)==0)){var l=Jc(e,i);Ld(e,i,l,e.cm?e.cm.curOp.id:NaN),ms(e,i,l,Cc(e,i));var s=[];Xr(e,function(c,d){!d&&Ct(s,c.history)==-1&&(Wd(c.history,i),s.push(c.history)),ms(c,i,null,Cc(c,i))})}}function Gl(e,i,l){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!l)){for(var c=e.history,d,v=e.sel,y=i=="undo"?c.done:c.undone,w=i=="undo"?c.undone:c.done,_=0;_<y.length&&(d=y[_],!(l?d.ranges&&!d.equals(e.sel):!d.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(d=y.pop(),d.ranges){if(Bl(d,w),l&&!d.equals(e.sel)){Ve(e,d,{clearRedo:!1});return}v=d}else if(s){y.push(d);return}else break;var N=[];Bl(v,w),w.push({changes:N,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var O=Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"),B=function(rt){var ct=d.changes[rt];if(ct.origin=i,O&&!Id(e,ct,!1))return y.length=0,{};N.push(eu(e,ct));var mt=rt?Jc(e,ct):lt(y);ms(e,ct,mt,Ad(e,ct)),!rt&&e.cm&&e.cm.scrollIntoView({from:ct.from,to:Kr(ct)});var _t=[];Xr(e,function(yt,Tt){!Tt&&Ct(_t,yt.history)==-1&&(Wd(yt.history,ct),_t.push(yt.history)),ms(yt,ct,null,Ad(yt,ct))})},q=d.changes.length-1;q>=0;--q){var X=B(q);if(X)return X.v}}}}function qd(e,i){if(i!=0&&(e.first+=i,e.sel=new An(gt(e.sel.ranges,function(c){return new ie(R(c.anchor.line+i,c.anchor.ch),R(c.head.line+i,c.head.ch))}),e.sel.primIndex),e.cm)){on(e.cm,e.first,e.first-i,i);for(var l=e.cm.display,s=l.viewFrom;s<l.viewTo;s++)jr(e.cm,s,"gutter")}}function ms(e,i,l,s){if(e.cm&&!e.cm.curOp)return $e(e.cm,ms)(e,i,l,s);if(i.to.line<e.first){qd(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var c=i.text.length-1-(e.first-i.from.line);qd(e,c),i={from:R(e.first,0),to:R(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var d=e.lastLine();i.to.line>d&&(i={from:i.from,to:R(d,At(e,d).text.length),text:[i.text[0]],origin:i.origin}),i.removed=br(e,i.from,i.to),l||(l=Jc(e,i)),e.cm?aw(e.cm,i,s):tu(e,i,s),Ul(e,l,P),e.cantEdit&&jl(e,R(e.firstLine(),0))&&(e.cantEdit=!1)}}function aw(e,i,l){var s=e.doc,c=e.display,d=i.from,v=i.to,y=!1,w=d.line;e.options.lineWrapping||(w=re(qn(At(s,d.line))),s.iter(w,v.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&bl(e),tu(s,i,l,od(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var X=Al(q);X>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),Zy(s,d.line),ps(e,400);var _=i.text.length-(v.line-d.line)-1;i.full?on(e):d.line==v.line&&i.text.length==1&&!Sd(e.doc,i)?jr(e,d.line,"text"):on(e,d.line,v.line+1,_);var N=Ye(e,"changes"),O=Ye(e,"change");if(O||N){var B={from:d,to:v,text:i.text,removed:i.removed,origin:i.origin};O&&Oe(e,"change",e,B),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function po(e,i,l,s,c){var d;s||(s=l),K(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof i=="string"&&(i=e.splitLines(i)),ho(e,{from:l,to:s,text:i,origin:c})}function Hd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function Bd(e,i,l,s){for(var c=0;c<e.length;++c){var d=e[c],v=!0;if(d.ranges){d.copied||(d=e[c]=d.deepCopy(),d.copied=!0);for(var y=0;y<d.ranges.length;y++)Hd(d.ranges[y].anchor,i,l,s),Hd(d.ranges[y].head,i,l,s);continue}for(var w=0;w<d.changes.length;++w){var _=d.changes[w];if(l<_.from.line)_.from=R(_.from.line+s,_.from.ch),_.to=R(_.to.line+s,_.to.ch);else if(i<=_.to.line){v=!1;break}}v||(e.splice(0,c+1),c=0)}}function Wd(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Bd(e.done,l,s,c),Bd(e.undone,l,s,c)}function ys(e,i,l,s){var c=i,d=i;return typeof i=="number"?d=At(e,En(e,i)):c=re(i),c==null?null:(s(d,c)&&e.cm&&jr(e.cm,c,l),d)}function bs(e){this.lines=e,this.parent=null;for(var i=0,l=0;l<e.length;++l)e[l].parent=this,i+=e[l].height;this.height=i}bs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var l=e,s=e+i;l<s;++l){var c=this.lines[l];this.height-=c.height,cb(c),Oe(c,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,l){this.height+=l,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var s=0;s<i.length;++s)i[s].parent=this},iterN:function(e,i,l){for(var s=e+i;e<s;++e)if(l(this.lines[e]))return!0}};function ws(e){this.children=e;for(var i=0,l=0,s=0;s<e.length;++s){var c=e[s];i+=c.chunkSize(),l+=c.height,c.parent=this}this.size=i,this.height=l,this.parent=null}ws.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var l=0;l<this.children.length;++l){var s=this.children[l],c=s.chunkSize();if(e<c){var d=Math.min(i,c-e),v=s.height;if(s.removeInner(e,d),this.height-=v-s.height,c==d&&(this.children.splice(l--,1),s.parent=null),(i-=d)==0)break;e=0}else e-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof bs))){var y=[];this.collapse(y),this.children=[new bs(y)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,l){this.size+=i.length,this.height+=l;for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<=d){if(c.insertInner(e,i,l),c.lines&&c.lines.length>50){for(var v=c.lines.length%25+25,y=v;y<c.lines.length;){var w=new bs(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,v),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),l=new ws(i);if(e.parent){e.size-=l.size,e.height-=l.height;var c=Ct(e.parent.children,e);e.parent.children.splice(c+1,0,l)}else{var s=new ws(e.children);s.parent=e,e.children=[s,l],e=s}l.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,l){for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<d){var v=Math.min(i,d-e);if(c.iterN(e,v,l))return!0;if((i-=v)==0)break;e=0}else e-=d}}};var xs=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};xs.prototype.clear=function(){var e=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 d=ls(this);Dn(l,Math.max(0,l.height-d)),e&&(bn(e,function(){Ud(e,l,-d),jr(e,s,"widget")}),Oe(e,"lineWidgetCleared",e,this,s))}},xs.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=ls(this)-i;!c||(Ur(this.doc,s)||Dn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,Ud(l,s,c),Oe(l,"lineWidgetChanged",l,e,re(s))}))},Ze(xs);function Ud(e,i,l){xr(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Gc(e,l)}function cw(e,i,l,s){var c=new xs(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),ys(e,i,"widget",function(v){var y=v.widgets||(v.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=v,d&&!Ur(e,v)){var w=xr(v)<e.scrollTop;Dn(v,v.height+ls(c)),w&&Gc(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Oe(d,"lineWidgetAdded",d,c,typeof i=="number"?i:re(i)),c}var jd=0,Yr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++jd};Yr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ci(e),Ye(this,"clear")){var l=this.find();l&&Oe(this,"clear",l.from,l.to)}for(var s=null,c=null,d=0;d<this.lines.length;++d){var v=this.lines[d],y=is(v.markedSpans,this);e&&!this.collapsed?jr(e,re(v),"text"):e&&(y.to!=null&&(c=re(v)),y.from!=null&&(s=re(v))),v.markedSpans=tb(v.markedSpans,y),y.from==null&&this.collapsed&&!Ur(this.doc,v)&&e&&Dn(v,oo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=qn(this.lines[w]),N=Al(_);N>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&on(e,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$d(e.doc)),e&&Oe(e,"markerCleared",e,this,s,c),i&&Ti(e),this.parent&&this.parent.clear()}},Yr.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var l,s,c=0;c<this.lines.length;++c){var d=this.lines[c],v=is(d.markedSpans,this);if(v.from!=null&&(l=R(i?d:re(d),v.from),e==-1))return l;if(v.to!=null&&(s=R(i?d:re(d),v.to),e==1))return s}return l&&{from:l,to:s}},Yr.prototype.changed=function(){var e=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||bn(s,function(){var c=i.line,d=re(i.line),v=Oc(s,d);if(v&&(Zh(v),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=ls(l)-y;w&&Dn(c,c.height+w)}Oe(s,"markerChanged",s,e)})},Yr.prototype.attachLine=function(e){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(e)},Yr.prototype.detachLine=function(e){if(this.lines.splice(Ct(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Ze(Yr);function go(e,i,l,s,c){if(s&&s.shared)return uw(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return $e(e.cm,go)(e,i,l,s,c);var d=new Yr(e,c),v=K(i,l);if(s&&tt(s,d,!1),v>0||v==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=H("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(Dh(e,i.line,i,l,d)||i.line!=l.line&&Dh(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Qy()}d.addToHistory&&Ld(e,{from:i,to:l,origin:"markText"},e.sel,NaN);var y=i.line,w=e.cm,_;if(e.iter(y,l.line+1,function(O){w&&d.collapsed&&!w.options.lineWrapping&&qn(O)==w.display.maxLine&&(_=!0),d.collapsed&&y!=i.line&&Dn(O,0),eb(O,new Cl(d,y==i.line?i.ch:null,y==l.line?l.ch:null),e.cm&&e.cm.curOp),++y}),d.collapsed&&e.iter(i.line,l.line+1,function(O){Ur(e,O)&&Dn(O,0)}),d.clearOnEnter&&bt(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(Jy(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++jd,d.atomic=!0),w){if(_&&(w.curOp.updateMaxLine=!0),d.collapsed)on(w,i.line,l.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var N=i.line;N<=l.line;N++)jr(w,N,"text");d.atomic&&$d(w.doc),Oe(w,"markerAdded",w,d)}return d}var _s=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};_s.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Oe(this,"clear")}},_s.prototype.find=function(e,i){return this.primary.find(e,i)},Ze(_s);function uw(e,i,l,s,c){s=tt(s),s.shared=!1;var d=[go(e,i,l,s,c)],v=d[0],y=s.widgetNode;return Xr(e,function(w){y&&(s.widgetNode=y.cloneNode(!0)),d.push(go(w,Ft(w,i),Ft(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;v=lt(d)}),new _s(d,v)}function Gd(e){return e.findMarks(R(e.first,0),e.clipPos(R(e.lastLine())),function(i){return i.parent})}function fw(e,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),d=e.clipPos(c.from),v=e.clipPos(c.to);if(K(d,v)){var y=go(e,d,v,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function hw(e){for(var i=function(s){var c=e[s],d=[c.primary.doc];Xr(c.primary.doc,function(w){return d.push(w)});for(var v=0;v<c.markers.length;v++){var y=c.markers[v];Ct(d,y.doc)==-1&&(y.parent=null,c.markers.splice(v--,1))}},l=0;l<e.length;l++)i(l)}var dw=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),ws.call(this,[new bs([new no("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=R(l,0);this.sel=Vr(d),this.history=new Hl(null),this.id=++dw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),tu(this,{from:d,to:d,text:e}),Ve(this,Vr(d),P)};sn.prototype=$t(ws.prototype,{constructor:sn,iter:function(e,i,l){l?this.iterN(e-this.first,i-e,l):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var l=0,s=0;s<i.length;++s)l+=i[s].height;this.insertInner(e-this.first,i,l)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=eo(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:De(function(e){var i=R(this.first,0),l=this.first+this.size-1;ho(this,{from:i,to:R(l,At(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&us(this.cm,0,0),Ve(this,Vr(i),P)}),replaceRange:function(e,i,l,s){i=Ft(this,i),l=l?Ft(this,l):i,po(this,e,i,l,s)},getRange:function(e,i,l){var s=br(this,Ft(this,e),Ft(this,i));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(T(this,e))return At(this,e)},getLineNumber:function(e){return re(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=At(this,e)),qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ft(this,e)},getCursor:function(e){var i=this.sel.primary(),l;return e==null||e=="head"?l=i.head:e=="anchor"?l=i.anchor:e=="end"||e=="to"||e===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:De(function(e,i,l){Nd(this,Ft(this,typeof e=="number"?R(e,i||0):e),null,l)}),setSelection:De(function(e,i,l){Nd(this,Ft(this,e),Ft(this,i||e),l)}),extendSelection:De(function(e,i,l){Wl(this,Ft(this,e),i&&Ft(this,i),l)}),extendSelections:De(function(e,i){Md(this,xh(this,e),i)}),extendSelectionsBy:De(function(e,i){var l=gt(this.sel.ranges,e);Md(this,xh(this,l),i)}),setSelections:De(function(e,i,l){if(!!e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new ie(Ft(this,e[c].anchor),Ft(this,e[c].head||e[c].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ve(this,Bn(this.cm,s,i),l)}}),addSelection:De(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new ie(Ft(this,e),Ft(this,i||e))),Ve(this,Bn(this.cm,s,s.length-1),l)}),getSelection:function(e){for(var i=this.sel.ranges,l,s=0;s<i.length;s++){var c=br(this,i[s].from(),i[s].to());l=l?l.concat(c):c}return e===!1?l:l.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=br(this,l[s].from(),l[s].to());e!==!1&&(c=c.join(e||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(e,i,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=e;this.replaceSelections(s,i,l||"+input")},replaceSelections:De(function(e,i,l){for(var s=[],c=this.sel,d=0;d<c.ranges.length;d++){var v=c.ranges[d];s[d]={from:v.from(),to:v.to(),text:this.splitLines(e[d]),origin:l}}for(var y=i&&i!="end"&&tw(this,s,i),w=s.length-1;w>=0;w--)ho(this,s[w]);y?Pd(this,y):this.cm&&ao(this.cm)}),undo:De(function(){Gl(this,"undo")}),redo:De(function(){Gl(this,"redo")}),undoSelection:De(function(){Gl(this,"undo",!0)}),redoSelection:De(function(){Gl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,l=0,s=0;s<e.done.length;s++)e.done[s].ranges||++i;for(var c=0;c<e.undone.length;c++)e.undone[c].ranges||++l;return{undo:i,redo:l}},clearHistory:function(){var e=this;this.history=new Hl(this.history),Xr(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:uo(this.history.done),undone:uo(this.history.undone)}},setHistory:function(e){var i=this.history=new Hl(this.history);i.done=uo(e.done.slice(0),null,!0),i.undone=uo(e.undone.slice(0),null,!0)},setGutterMarker:De(function(e,i,l){return ys(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:De(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&ys(i,l,"gutter",function(){return l.gutterMarkers[e]=null,jt(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!T(this,e)||(i=e,e=At(this,e),!e))return null}else if(i=re(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:De(function(e,i,l){return ys(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=l;else{if(kt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:De(function(e,i,l){return ys(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",d=s[c];if(d)if(l==null)s[c]=null;else{var v=d.match(kt(l));if(!v)return!1;var y=v.index+v[0].length;s[c]=d.slice(0,v.index)+(!v.index||y==d.length?"":" ")+d.slice(y)||null}else return!1;return!0})}),addLineWidget:De(function(e,i,l){return cw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return go(this,Ft(this,e),Ft(this,i),l,l&&l.type||"range")},setBookmark:function(e,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=Ft(this,e),go(this,e,e,l,"bookmark")},findMarksAt:function(e){e=Ft(this,e);var i=[],l=At(this,e.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[s];(c.from==null||c.from<=e.ch)&&(c.to==null||c.to>=e.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(e,i,l){e=Ft(this,e),i=Ft(this,i);var s=[],c=e.line;return this.iter(e.line,i.line+1,function(d){var v=d.markedSpans;if(v)for(var y=0;y<v.length;y++){var w=v[y];!(w.to!=null&&c==e.line&&e.ch>=w.to||w.from==null&&c!=e.line||w.from!=null&&c==i.line&&w.from>=i.ch)&&(!l||l(w.marker))&&s.push(w.marker.parent||w.marker)}++c}),s},getAllMarks:function(){var e=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&e.push(l[s].marker)}),e},posFromIndex:function(e){var i,l=this.first,s=this.lineSeparator().length;return this.iter(function(c){var d=c.text.length+s;if(d>e)return i=e,!0;e-=d,++l}),Ft(this,R(l,i))},indexFromPos:function(e){e=Ft(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,e.line,function(s){i+=s.text.length+l}),i},copy:function(e){var i=new sn(eo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,l=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<l&&(l=e.to);var s=new sn(eo(this,i,l),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:e.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],fw(s,Gd(this)),s},unlinkDoc:function(e){if(e instanceof we&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),hw(Gd(this));break}}if(e.history==this.history){var s=[e.id];Xr(e,function(c){return s.push(c.id)},!0),e.history=new Hl(null),e.history.done=uo(this.history.done,s),e.history.undone=uo(this.history.undone,s)}},iterLinkedDocs:function(e){Xr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):es(e)},lineSeparator:function(){return this.lineSep||`
|
|
17
|
+
`},setDirection:De(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&ew(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var Vd=0;function pw(e){var i=this;if(Kd(i),!(Se(i,e)||_r(i.display,e))){Ge(e),p&&(Vd=+new Date);var l=xi(i,e,!0),s=e.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,d=Array(c),v=0,y=function(){++v==c&&$e(i,function(){l=Ft(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(d.filter(function(X){return X!=null}).join(i.doc.lineSeparator())),origin:"paste"};ho(i.doc,q),Pd(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 rt=new FileReader;rt.onerror=function(){return y()},rt.onload=function(){var ct=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ct)){y();return}d[X]=ct,y()},rt.readAsText(q)},_=0;_<s.length;_++)w(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var O;if(i.state.draggingText&&!i.state.draggingText.copy&&(O=i.listSelections()),Ul(i.doc,Vr(l,l)),O)for(var B=0;B<O.length;++B)po(i.doc,"",O[B].anchor,O[B].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function gw(e,i){if(p&&(!e.state.draggingText||+new Date-Vd<100)){vr(i);return}if(!(Se(e,i)||_r(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var l=k("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",M&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),M&&l.parentNode.removeChild(l)}}function vw(e,i){var l=xi(e,i);if(!!l){var s=document.createDocumentFragment();Hc(e,l,s),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),I(e.display.dragCursor,s)}}function Kd(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Xd(e){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var d=0;d<l.length;d++)e(l[d])})}}var Yd=!1;function mw(){Yd||(yw(),Yd=!0)}function yw(){var e;bt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Xd(bw)},100))}),bt(window,"blur",function(){return Xd(lo)})}function bw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var Zr={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"},Ss=0;Ss<10;Ss++)Zr[Ss+48]=Zr[Ss+96]=String(Ss);for(var Vl=65;Vl<=90;Vl++)Zr[Vl]=String.fromCharCode(Vl);for(var ks=1;ks<=12;ks++)Zr[ks+111]=Zr[ks+63235]="F"+ks;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 ww(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var l,s,c,d,v=0;v<i.length-1;v++){var y=i[v];if(/^(cmd|meta|m)$/i.test(y))d=!0;else if(/^a(lt)?$/i.test(y))l=!0;else if(/^(c|ctrl|control)$/i.test(y))s=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return l&&(e="Alt-"+e),s&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),c&&(e="Shift-"+e),e}function xw(e){var i={};for(var l in e)if(e.hasOwnProperty(l)){var s=e[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete e[l];continue}for(var c=gt(l.split(" "),ww),d=0;d<c.length;d++){var v=void 0,y=void 0;d==c.length-1?(y=c.join(" "),v=s):(y=c.slice(0,d+1).join(" "),v="...");var w=i[y];if(!w)i[y]=v;else if(w!=v)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var _ in i)e[_]=i[_];return e}function vo(e,i,l,s){i=Kl(i);var c=i.call?i.call(e,s):i[e];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return vo(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var v=vo(e,i.fallthrough[d],l,s);if(v)return v}}}function Zd(e){var i=typeof e=="string"?e:Zr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Jd(e,i,l){var s=e;return i.altKey&&s!="Alt"&&(e="Alt-"+e),(dt?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(dt?i.ctrlKey:i.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!l&&i.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Qd(e,i){if(M&&e.keyCode==34&&e.char)return!1;var l=Zr[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),Jd(l,e,i))}function Kl(e){return typeof e=="string"?kr[e]:e}function mo(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=i(l[c]);s.length&&K(d.from,lt(s).to)<=0;){var v=s.pop();if(K(v.from,d.from)<0){d.from=v.from;break}}s.push(d)}bn(e,function(){for(var y=s.length-1;y>=0;y--)po(e.doc,"",s[y].from,s[y].to,"+delete");ao(e)})}function iu(e,i,l){var s=se(e.text,i+l,l);return s<0||s>e.text.length?null:s}function ou(e,i,l){var s=iu(e,i.ch,l);return s==null?null:new R(i.line,s,l<0?"after":"before")}function su(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var d=be(l,i.doc.direction);if(d){var v=c<0?lt(d):d[0],y=c<0==(v.level==1),w=y?"after":"before",_;if(v.level>0||i.doc.direction=="rtl"){var N=io(i,l);_=c<0?l.text.length-1:0;var O=nr(i,N,_).top;_=Xt(function(B){return nr(i,N,B).top==O},c<0==(v.level==1)?v.from:v.to-1,_),w=="before"&&(_=iu(l,_,1))}else _=c<0?v.to:v.from;return new R(s,_,w)}}return new R(s,c<0?l.text.length:0,c<0?"before":"after")}function _w(e,i,l,s){var c=be(i,e.doc.direction);if(!c)return ou(i,l,s);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var d=qe(c,l.ch,l.sticky),v=c[d];if(e.doc.direction=="ltr"&&v.level%2==0&&(s>0?v.to>l.ch:v.from<l.ch))return ou(i,l,s);var y=function(mt,_t){return iu(i,mt instanceof R?mt.ch:mt,_t)},w,_=function(mt){return e.options.lineWrapping?(w=w||io(e,i),id(e,i,w,mt)):{begin:0,end:i.text.length}},N=_(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||v.level==1){var O=v.level==1==s<0,B=y(l,O?1:-1);if(B!=null&&(O?B<=v.to&&B<=N.end:B>=v.from&&B>=N.begin)){var q=O?"before":"after";return new R(l.line,B,q)}}var X=function(mt,_t,yt){for(var Tt=function(pe,Re){return Re?new R(l.line,y(pe,1),"before"):new R(l.line,pe,"after")};mt>=0&&mt<c.length;mt+=_t){var Dt=c[mt],Pt=_t>0==(Dt.level!=1),Ut=Pt?yt.begin:y(yt.end,-1);if(Dt.from<=Ut&&Ut<Dt.to||(Ut=Pt?Dt.from:y(Dt.to,-1),yt.begin<=Ut&&Ut<yt.end))return Tt(Ut,Pt)}},rt=X(d+s,s,N);if(rt)return rt;var ct=s>0?N.end:y(N.begin,-1);return ct!=null&&!(s>0&&ct==i.text.length)&&(rt=X(s>0?0:c.length-1,s,_(ct)),rt)?rt:null}var Cs={selectAll:zd,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),P)},killLine:function(e){return mo(e,function(i){if(i.empty()){var l=At(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:R(i.head.line+1,0)}:{from:i.head,to:R(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return mo(e,function(i){return{from:R(i.from().line,0),to:Ft(e.doc,R(i.to().line+1,0))}})},delLineLeft:function(e){return mo(e,function(i){return{from:R(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return mo(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(e){return mo(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div");return{from:i.from(),to:s}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(R(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(R(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return tp(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return ep(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return Sw(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div")},Y)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:l},"div")},Y)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return s.ch<e.getLine(s.line).search(/\S/)?ep(e,i.head):s},Y)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],l=e.listSelections(),s=e.options.tabSize,c=0;c<l.length;c++){var d=l[c].from(),v=V(e.getLine(d.line),d.ch,s);i.push(pt(s-v%s))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return bn(e,function(){for(var i=e.listSelections(),l=[],s=0;s<i.length;s++)if(!!i[s].empty()){var c=i[s].head,d=At(e.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new R(c.line,c.ch-1)),c.ch>0)c=new R(c.line,c.ch+1),e.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),R(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var v=At(e.doc,c.line-1).text;v&&(c=new R(c.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),R(c.line-1,v.length-1),c,"+transpose"))}}l.push(new ie(c,c))}e.setSelections(l)})},newlineAndIndent:function(e){return bn(e,function(){for(var i=e.listSelections(),l=i.length-1;l>=0;l--)e.replaceRange(e.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=e.listSelections();for(var s=0;s<i.length;s++)e.indentLine(i[s].from().line,null,!0);ao(e)})},openLine:function(e){return e.replaceSelection(`
|
|
18
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function tp(e,i){var l=At(e.doc,i),s=qn(l);return s!=l&&(i=re(s)),su(!0,e,s,i,1)}function Sw(e,i){var l=At(e.doc,i),s=sb(l);return s!=l&&(i=re(s)),su(!0,e,l,i,-1)}function ep(e,i){var l=tp(e,i.line),s=At(e.doc,l.line),c=be(s,e.doc.direction);if(!c||c[0].level==0){var d=Math.max(l.ch,s.text.search(/\S/)),v=i.line==l.line&&i.ch<=d&&i.ch;return R(l.line,v?0:d,l.sticky)}return l}function Xl(e,i,l){if(typeof i=="string"&&(i=Cs[i],!i))return!1;e.display.input.ensurePolled();var s=e.display.shift,c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l&&(e.display.shift=!1),c=i(e)!=Lt}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function kw(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=vo(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&vo(i,e.options.extraKeys,l,e)||vo(i,e.options.keyMap,l,e)}var Cw=new st;function Ts(e,i,l,s){var c=e.state.keySeq;if(c){if(Zd(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:Cw.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),np(e,c+" "+i,l,s))return!0}return np(e,i,l,s)}function np(e,i,l,s){var c=kw(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Oe(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ge(l),Bc(e)),!!c}function rp(e,i){var l=Qd(i,!0);return l?i.shiftKey&&!e.state.keySeq?Ts(e,"Shift-"+l,i,function(s){return Xl(e,s,!0)})||Ts(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Xl(e,s)}):Ts(e,l,i,function(s){return Xl(e,s)}):!1}function Tw(e,i,l){return Ts(e,"'"+l+"'",i,function(s){return Xl(e,s,!0)})}var lu=null;function ip(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=wt(Gt(i)),!Se(i,e))){p&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=rp(i,e);M&&(lu=s?l:null,!s&&l==88&&!Zn&&(G?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!G&&!s&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Lw(i)}}function Lw(e){var i=e.display.lineDiv;Et(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ft(i,"CodeMirror-crosshair"),je(document,"keyup",l),je(document,"mouseover",l))}bt(document,"keyup",l),bt(document,"mouseover",l)}function op(e){e.keyCode==16&&(this.doc.sel.shift=!1),Se(this,e)}function sp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(_r(i.display,e)||Se(i,e)||e.ctrlKey&&!e.altKey||G&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(M&&l==lu){lu=null,Ge(e);return}if(!(M&&(!e.which||e.which<10)&&rp(i,e))){var c=String.fromCharCode(s==null?l:s);c!="\b"&&(Tw(i,e,c)||i.display.input.onKeyPress(e))}}}var Ew=400,au=function(e,i,l){this.time=e,this.pos=i,this.button=l};au.prototype.compare=function(e,i,l){return this.time+Ew>e&&K(i,this.pos)==0&&l==this.button};var Ls,Es;function Aw(e,i){var l=+new Date;return Es&&Es.compare(l,e,i)?(Ls=Es=null,"triple"):Ls&&Ls.compare(l,e,i)?(Es=new au(l,e,i),Ls=null,"double"):(Ls=new au(l,e,i),Es=null,"single")}function lp(e){var i=this,l=i.display;if(!(Se(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,_r(l,e)){m||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!cu(i,e)){var s=xi(i,e),c=ts(e),d=s?Aw(s,c):"single";ne(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&Mw(i,c,s,d,e))&&(c==1?s?Pw(i,s,d,e):rn(e)==l.scroller&&Ge(e):c==2?(s&&Wl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(e):Wc(i)))}}}function Mw(e,i,l,s,c){var d="Click";return s=="double"?d="Double"+d:s=="triple"&&(d="Triple"+d),d=(i==1?"Left":i==2?"Middle":"Right")+d,Ts(e,Jd(d,c),c,function(v){if(typeof v=="string"&&(v=Cs[v]),!v)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=v(e,l)!=Lt}finally{e.state.suppressEdits=!1}return y})}function Nw(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var d=j?l.shiftKey&&l.metaKey:l.altKey;c.unit=d?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=G?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(G?l.altKey:l.ctrlKey)),c}function Pw(e,i,l,s){p?setTimeout(J(ad,e),0):e.curOp.focus=wt(Gt(e));var c=Nw(e,l,s),d=e.doc.sel,v;e.options.dragDrop&&xc&&!e.isReadOnly()&&l=="single"&&(v=d.contains(i))>-1&&(K((v=d.ranges[v]).from(),i)<0||i.xRel>0)&&(K(v.to(),i)>0||i.xRel<0)?Ow(e,s,i,c):$w(e,s,i,c)}function Ow(e,i,l,s){var c=e.display,d=!1,v=$e(e,function(_){m&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wc(e)),je(c.wrapper.ownerDocument,"mouseup",v),je(c.wrapper.ownerDocument,"mousemove",y),je(c.scroller,"dragstart",w),je(c.scroller,"drop",v),d||(Ge(_),s.addNew||Wl(e.doc,l,null,null,s.extend),m&&!A||p&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){d=d||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},w=function(){return d=!0};m&&(c.scroller.draggable=!0),e.state.draggingText=v,v.copy=!s.moveOnDrag,bt(c.wrapper.ownerDocument,"mouseup",v),bt(c.wrapper.ownerDocument,"mousemove",y),bt(c.scroller,"dragstart",w),bt(c.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function ap(e,i,l){if(l=="char")return new ie(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new ie(R(i.line,0),Ft(e.doc,R(i.line+1,0)));var s=l(e,i);return new ie(s.from,s.to)}function $w(e,i,l,s){p&&Wc(e);var c=e.display,d=e.doc;Ge(i);var v,y,w=d.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=d.sel.contains(l),y>-1?v=_[y]:v=new ie(l,l)):(v=d.sel.primary(),y=d.sel.primIndex),s.unit=="rectangle")s.addNew||(v=new ie(l,l)),l=xi(e,i,!0,!0),y=-1;else{var N=ap(e,l,s.unit);s.extend?v=nu(v,N.anchor,N.head,s.extend):v=N}s.addNew?y==-1?(y=_.length,Ve(d,Bn(e,_.concat([v]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ve(d,Bn(e,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=d.sel):ru(d,y,v,F):(y=0,Ve(d,new An([v],0),F),w=d.sel);var O=l;function B(yt){if(K(O,yt)!=0)if(O=yt,s.unit=="rectangle"){for(var Tt=[],Dt=e.options.tabSize,Pt=V(At(d,l.line).text,l.ch,Dt),Ut=V(At(d,yt.line).text,yt.ch,Dt),pe=Math.min(Pt,Ut),Re=Math.max(Pt,Ut),_e=Math.min(l.line,yt.line),wn=Math.min(e.lastLine(),Math.max(l.line,yt.line));_e<=wn;_e++){var ln=At(d,_e).text,Ee=nt(ln,pe,Dt);pe==Re?Tt.push(new ie(R(_e,Ee),R(_e,Ee))):ln.length>Ee&&Tt.push(new ie(R(_e,Ee),R(_e,nt(ln,Re,Dt))))}Tt.length||Tt.push(new ie(l,l)),Ve(d,Bn(e,w.ranges.slice(0,y).concat(Tt),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var an=v,He=ap(e,yt,s.unit),Pe=an.anchor,Ae;K(He.anchor,Pe)>0?(Ae=He.head,Pe=Ne(an.from(),He.anchor)):(Ae=He.anchor,Pe=ee(an.to(),He.head));var Ce=w.ranges.slice(0);Ce[y]=Dw(e,new ie(Ft(d,Pe),Ae)),Ve(d,Bn(e,Ce,y),F)}}var q=c.wrapper.getBoundingClientRect(),X=0;function rt(yt){var Tt=++X,Dt=xi(e,yt,!0,s.unit=="rectangle");if(!!Dt)if(K(Dt,O)!=0){e.curOp.focus=wt(Gt(e)),B(Dt);var Pt=zl(c,d);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout($e(e,function(){X==Tt&&rt(yt)}),150)}else{var Ut=yt.clientY<q.top?-20:yt.clientY>q.bottom?20:0;Ut&&setTimeout($e(e,function(){X==Tt&&(c.scroller.scrollTop+=Ut,rt(yt))}),50)}}function ct(yt){e.state.selectingText=!1,X=1/0,yt&&(Ge(yt),c.input.focus()),je(c.wrapper.ownerDocument,"mousemove",mt),je(c.wrapper.ownerDocument,"mouseup",_t),d.history.lastSelOrigin=null}var mt=$e(e,function(yt){yt.buttons===0||!ts(yt)?ct(yt):rt(yt)}),_t=$e(e,ct);e.state.selectingText=_t,bt(c.wrapper.ownerDocument,"mousemove",mt),bt(c.wrapper.ownerDocument,"mouseup",_t)}function Dw(e,i){var l=i.anchor,s=i.head,c=At(e.doc,l.line);if(K(l,s)==0&&l.sticky==s.sticky)return i;var d=be(c);if(!d)return i;var v=qe(d,l.ch,l.sticky),y=d[v];if(y.from!=l.ch&&y.to!=l.ch)return i;var w=v+(y.from==l.ch==(y.level!=1)?0:1);if(w==0||w==d.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=qe(d,s.ch,s.sticky),O=N-v||(s.ch-l.ch)*(y.level==1?-1:1);N==w-1||N==w?_=O<0:_=O>0}var B=d[w+(_?-1:0)],q=_==(B.level==1),X=q?B.from:B.to,rt=q?"after":"before";return l.ch==X&&l.sticky==rt?i:new ie(new R(l.line,X,rt),s)}function cp(e,i,l,s){var c,d;if(i.touches)c=i.touches[0].clientX,d=i.touches[0].clientY;else try{c=i.clientX,d=i.clientY}catch{return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;s&&Ge(i);var v=e.display,y=v.lineDiv.getBoundingClientRect();if(d>y.bottom||!Ye(e,l))return Qo(i);d-=y.top-v.viewOffset;for(var w=0;w<e.display.gutterSpecs.length;++w){var _=v.gutters.childNodes[w];if(_&&_.getBoundingClientRect().right>=c){var N=Qn(e.doc,d),O=e.display.gutterSpecs[w];return ve(e,l,e,N,O.className,i),Qo(i)}}}function cu(e,i){return cp(e,i,"gutterClick",!0)}function up(e,i){_r(e.display,i)||Rw(e,i)||Se(e,i,"contextmenu")||vt||e.display.input.onContextMenu(i)}function Rw(e,i){return Ye(e,"gutterContextMenu")?cp(e,i,"gutterContextMenu",!1):!1}function fp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),as(e)}var yo={toString:function(){return"CodeMirror.Init"}},hp={},Yl={};function zw(e){var i=e.optionHandlers;function l(s,c,d,v){e.defaults[s]=c,d&&(i[s]=v?function(y,w,_){_!=yo&&d(y,w,_)}:d)}e.defineOption=l,e.Init=yo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,Qc(s)},!0),l("indentUnit",2,Qc,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){vs(s),as(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],v=s.doc.first;s.doc.iter(function(w){for(var _=0;;){var N=w.text.indexOf(c,_);if(N==-1)break;_=N+c.length,d.push(R(v,N))}v++});for(var y=d.length-1;y>=0;y--)po(s.doc,c,d[y],R(d[y].line,d[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,d){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),d!=yo&&s.refresh()}),l("specialCharPlaceholder",hb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",D?"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",!it),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){fp(s),gs(s)},!0),l("keyMap","default",function(s,c,d){var v=Kl(c),y=d!=yo&&Kl(d);y&&y.detach&&y.detach(s,v),v.attach&&v.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,Fw,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Zc(c,s.options.lineNumbers),gs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Fc(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return co(s)},!0),l("scrollbarStyle","native",function(s){pd(s),co(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,c){s.display.gutterSpecs=Zc(s.options.gutters,c),gs(s)},!0),l("firstLineNumber",1,gs,!0),l("lineNumberFormatter",function(s){return s},gs,!0),l("showCursorWhenSelecting",!1,cs,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(lo(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,Iw),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,cs,!0),l("singleCursorHeightPerLine",!0,cs,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,vs,!0),l("addModeClass",!1,vs,!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,vs,!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 Iw(e,i,l){var s=l&&l!=yo;if(!i!=!s){var c=e.display.dragFunctions,d=i?bt:je;d(e.display.scroller,"dragstart",c.start),d(e.display.scroller,"dragenter",c.enter),d(e.display.scroller,"dragover",c.over),d(e.display.scroller,"dragleave",c.leave),d(e.display.scroller,"drop",c.drop)}}function Fw(e){e.options.lineWrapping?(Et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ft(e.display.wrapper,"CodeMirror-wrap"),Ac(e)),qc(e),on(e),as(e),setTimeout(function(){return co(e)},100)}function we(e,i){var l=this;if(!(this instanceof we))return new we(e,i);this.options=i=i?tt(i):{},tt(hp,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),d=this.display=new Jb(e,s,c,i);d.wrapper.CodeMirror=this,fp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),pd(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&&!D&&d.input.focus(),p&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),qw(this),mw(),Ci(this),this.curOp.forceUpdate=!0,kd(this,s),i.autofocus&&!D||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Uc(l)},20):lo(this);for(var v in Yl)Yl.hasOwnProperty(v)&&Yl[v](this,i[v],yo);md(this),i.finishInit&&i.finishInit(this);for(var y=0;y<uu.length;++y)uu[y](this);Ti(this),m&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}we.defaults=hp,we.optionHandlers=Yl;function qw(e){var i=e.display;bt(i.scroller,"mousedown",$e(e,lp)),p&&g<11?bt(i.scroller,"dblclick",$e(e,function(w){if(!Se(e,w)){var _=xi(e,w);if(!(!_||cu(e,w)||_r(e.display,w))){Ge(w);var N=e.findWordAt(_);Wl(e.doc,N.anchor,N.head)}}})):bt(i.scroller,"dblclick",function(w){return Se(e,w)||Ge(w)}),bt(i.scroller,"contextmenu",function(w){return up(e,w)}),bt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||up(e,w)});var l,s={end:0};function c(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function d(w){if(w.touches.length!=1)return!1;var _=w.touches[0];return _.radiusX<=1&&_.radiusY<=1}function v(w,_){if(_.left==null)return!0;var N=_.left-w.left,O=_.top-w.top;return N*N+O*O>20*20}bt(i.scroller,"touchstart",function(w){if(!Se(e,w)&&!d(w)&&!cu(e,w)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},w.touches.length==1&&(i.activeTouch.left=w.touches[0].pageX,i.activeTouch.top=w.touches[0].pageY)}}),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 N=e.coordsChar(i.activeTouch,"page"),O;!_.prev||v(_,_.prev)?O=new ie(N,N):!_.prev.prev||v(_,_.prev.prev)?O=e.findWordAt(N):O=new ie(R(N.line,0),Ft(e.doc,R(N.line+1,0))),e.setSelection(O.anchor,O.head),e.focus(),Ge(w)}c()}),bt(i.scroller,"touchcancel",c),bt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(fs(e,i.scroller.scrollTop),Si(e,i.scroller.scrollLeft,!0),ve(e,"scroll",e))}),bt(i.scroller,"mousewheel",function(w){return wd(e,w)}),bt(i.scroller,"DOMMouseScroll",function(w){return wd(e,w)}),bt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){Se(e,w)||vr(w)},over:function(w){Se(e,w)||(vw(e,w),vr(w))},start:function(w){return gw(e,w)},drop:$e(e,pw),leave:function(w){Se(e,w)||Kd(e)}};var y=i.input.getField();bt(y,"keyup",function(w){return op.call(e,w)}),bt(y,"keydown",$e(e,ip)),bt(y,"keypress",$e(e,sp)),bt(y,"focus",function(w){return Uc(e,w)}),bt(y,"blur",function(w){return lo(e,w)})}var uu=[];we.defineInitHook=function(e){return uu.push(e)};function As(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=rs(e,i).state:l="prev");var v=e.options.tabSize,y=At(c,i),w=V(y.text,null,v);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!s&&!/\S/.test(y.text))N=0,l="not";else if(l=="smart"&&(N=c.mode.indent(d,y.text.slice(_.length),y.text),N==Lt||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=V(At(c,i-1).text,null,v):N=0:l=="add"?N=w+e.options.indentUnit:l=="subtract"?N=w-e.options.indentUnit:typeof l=="number"&&(N=w+l),N=Math.max(0,N);var O="",B=0;if(e.options.indentWithTabs)for(var q=Math.floor(N/v);q;--q)B+=v,O+=" ";if(B<N&&(O+=pt(N-B)),O!=_)return po(c,O,R(i,0),R(i,_.length),"+input"),y.stateAfter=null,!0;for(var X=0;X<c.sel.ranges.length;X++){var rt=c.sel.ranges[X];if(rt.head.line==i&&rt.head.ch<_.length){var ct=R(i,_.length);ru(c,X,new ie(ct,ct));break}}}var Wn=null;function Zl(e){Wn=e}function fu(e,i,l,s,c){var d=e.doc;e.display.shift=!1,s||(s=d.sel);var v=+new Date-200,y=c=="paste"||e.state.pasteIncoming>v,w=es(i),_=null;if(y&&s.ranges.length>1)if(Wn&&Wn.text.join(`
|
|
19
|
+
`)==i){if(s.ranges.length%Wn.text.length==0){_=[];for(var N=0;N<Wn.text.length;N++)_.push(d.splitLines(Wn.text[N]))}}else w.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(_=gt(w,function(mt){return[mt]}));for(var O=e.curOp.updateInput,B=s.ranges.length-1;B>=0;B--){var q=s.ranges[B],X=q.from(),rt=q.to();q.empty()&&(l&&l>0?X=R(X.line,X.ch-l):e.state.overwrite&&!y?rt=R(rt.line,Math.min(At(d,rt.line).text.length,rt.ch+lt(w).length)):y&&Wn&&Wn.lineWise&&Wn.text.join(`
|
|
20
|
+
`)==w.join(`
|
|
21
|
+
`)&&(X=rt=R(X.line,0)));var ct={from:X,to:rt,text:_?_[B%_.length]:w,origin:c||(y?"paste":e.state.cutIncoming>v?"cut":"+input")};ho(e.doc,ct),Oe(e,"inputRead",e,ct)}i&&!y&&pp(e,i),ao(e),e.curOp.updateInput<2&&(e.curOp.updateInput=O),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function dp(e,i){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return fu(i,l,0,null,"paste")}),!0}function pp(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var l=e.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var d=e.getModeAt(c.head),v=!1;if(d.electricChars){for(var y=0;y<d.electricChars.length;y++)if(i.indexOf(d.electricChars.charAt(y))>-1){v=As(e,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(At(e.doc,c.head.line).text.slice(0,c.head.ch))&&(v=As(e,c.head.line,"smart"));v&&Oe(e,"electricInput",e,c.head.line)}}}function gp(e){for(var i=[],l=[],s=0;s<e.doc.sel.ranges.length;s++){var c=e.doc.sel.ranges[s].head.line,d={anchor:R(c,0),head:R(c+1,0)};l.push(d),i.push(e.getRange(d.anchor,d.head))}return{text:i,ranges:l}}function vp(e,i,l,s){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!i)}function mp(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?e.style.width="1000px":e.setAttribute("wrap","off"),E&&(e.style.border="1px solid black"),vp(e),i}function Hw(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){ne(this).focus(),this.display.input.focus()},setOption:function(s,c){var d=this.options,v=d[s];d[s]==c&&s!="mode"||(d[s]=c,i.hasOwnProperty(s)&&$e(this,i[s])(this,c,v),ve(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"](Kl(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,d=0;d<c.length;++d)if(c[d]==s||c[d].name==s)return c.splice(d,1),!0},addOverlay:Je(function(s,c){var d=s.token?s:e.getMode(this.options,s);if(d.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(v){return v.priority}),this.state.modeGen++,on(this)}),removeOverlay:Je(function(s){for(var c=this.state.overlays,d=0;d<c.length;++d){var v=c[d].modeSpec;if(v==s||typeof s=="string"&&v.name==s){c.splice(d,1),this.state.modeGen++,on(this);return}}}),indentLine:Je(function(s,c,d){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),T(this.doc,s)&&As(this,s,c,d)}),indentSelection:Je(function(s){for(var c=this.doc.sel.ranges,d=-1,v=0;v<c.length;v++){var y=c[v];if(y.empty())y.head.line>d&&(As(this,y.head.line,s,!0),d=y.head.line,v==this.doc.sel.primIndex&&ao(this));else{var w=y.from(),_=y.to(),N=Math.max(d,w.line);d=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var O=N;O<d;++O)As(this,O,s);var B=this.doc.sel.ranges;w.ch==0&&c.length==B.length&&B[v].from().ch>0&&ru(this.doc,v,new ie(w,B[v].to()),P)}}}),getTokenAt:function(s,c){return Th(this,s,c)},getLineTokens:function(s,c){return Th(this,R(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=Sh(this,At(this.doc,s.line)),d=0,v=(c.length-1)/2,y=s.ch,w;if(y==0)w=c[2];else for(;;){var _=d+v>>1;if((_?c[_*2-1]:0)>=y)v=_;else if(c[_*2+1]<y)d=_+1;else{w=c[_*2+2];break}}var N=w?w.indexOf("overlay "):-1;return N<0?w:N==0?null:w.slice(0,N-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?e.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var d=[];if(!l.hasOwnProperty(c))return d;var v=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")v[y[c]]&&d.push(v[y[c]]);else if(y[c])for(var w=0;w<y[c].length;w++){var _=v[y[c][w]];_&&d.push(_)}else y.helperType&&v[y.helperType]?d.push(v[y.helperType]):v[y.name]&&d.push(v[y.name]);for(var N=0;N<v._global.length;N++){var O=v._global[N];O.pred(y,this)&&Ct(d,O.val)==-1&&d.push(O.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=En(d,s==null?d.first+d.size-1:s),rs(this,s+1,c).state},cursorCoords:function(s,c){var d,v=this.doc.sel.primary();return s==null?d=v.head:typeof s=="object"?d=Ft(this.doc,s):d=s?v.from():v.to(),Hn(this,d,c||"page")},charCoords:function(s,c){return Ol(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=ed(this,s,c||"page"),Rc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=ed(this,{top:s,left:0},c||"page").top,Qn(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var v=!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,v=!0),y=At(this.doc,s)}else y=s;return Pl(this,y,{top:0,left:0},c||"page",d||v).top+(v?this.doc.height-xr(y):0)},defaultTextHeight:function(){return oo(this.display)},defaultCharWidth:function(){return so(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,v,y){var w=this.display;s=Hn(this,Ft(this.doc,s));var _=s.bottom,N=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),w.sizer.appendChild(c),v=="over")_=s.top;else if(v=="above"||v=="near"){var O=Math.max(w.wrapper.clientHeight,this.doc.height),B=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(v=="above"||s.bottom+c.offsetHeight>O)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=O&&(_=s.bottom),N+c.offsetWidth>B&&(N=B-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),d&&Ib(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Je(ip),triggerOnKeyPress:Je(sp),triggerOnKeyUp:op,triggerOnMouseDown:Je(lp),execCommand:function(s){if(Cs.hasOwnProperty(s))return Cs[s].call(null,this)},triggerElectric:Je(function(s){pp(this,s)}),findPosH:function(s,c,d,v){var y=1;c<0&&(y=-1,c=-c);for(var w=Ft(this.doc,s),_=0;_<c&&(w=hu(this.doc,w,y,d,v),!w.hitSide);++_);return w},moveH:Je(function(s,c){var d=this;this.extendSelectionsBy(function(v){return d.display.shift||d.doc.extend||v.empty()?hu(d.doc,v.head,s,c,d.options.rtlMoveVisually):s<0?v.from():v.to()},Y)}),deleteH:Je(function(s,c){var d=this.doc.sel,v=this.doc;d.somethingSelected()?v.replaceSelection("",null,"+delete"):mo(this,function(y){var w=hu(v,y.head,s,c,!1);return s<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(s,c,d,v){var y=1,w=v;c<0&&(y=-1,c=-c);for(var _=Ft(this.doc,s),N=0;N<c;++N){var O=Hn(this,_,"div");if(w==null?w=O.left:O.left=w,_=yp(this,O,y,d),_.hitSide)break}return _},moveV:Je(function(s,c){var d=this,v=this.doc,y=[],w=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(N){if(w)return s<0?N.from():N.to();var O=Hn(d,N.head,"div");N.goalColumn!=null&&(O.left=N.goalColumn),y.push(O.left);var B=yp(d,O,s,c);return c=="page"&&N==v.sel.primary()&&Gc(d,Ol(d,B,"div").top-O.top),B},Y),y.length)for(var _=0;_<v.sel.ranges.length;_++)v.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,d=At(c,s.line).text,v=s.ch,y=s.ch;if(d){var w=this.getHelper(s,"wordChars");(s.sticky=="before"||y==d.length)&&v?--v:++y;for(var _=d.charAt(v),N=zt(_,w)?function(O){return zt(O,w)}:/\s/.test(_)?function(O){return/\s/.test(O)}:function(O){return!/\s/.test(O)&&!zt(O)};v>0&&N(d.charAt(v-1));)--v;for(;y<d.length&&N(d.charAt(y));)++y}return new ie(R(s.line,v),R(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Et(this.display.cursorDiv,"CodeMirror-overwrite"):ft(this.display.cursorDiv,"CodeMirror-overwrite"),ve(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:Je(function(s,c){us(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:Pc(this),clientWidth:bi(this)}},scrollIntoView:Je(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:R(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?Fb(this,s):ud(this,s.from,s.to,s.margin)}),setSize:Je(function(s,c){var d=this,v=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};s!=null&&(this.display.wrapper.style.width=v(s)),c!=null&&(this.display.wrapper.style.height=v(c)),this.options.lineWrapping&&Jh(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(d,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(s){return bn(this,s)},startOperation:function(){return Ci(this)},endOperation:function(){return Ti(this)},refresh:Je(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,as(this),us(this,this.doc.scrollLeft,this.doc.scrollTop),Xc(this.display),(s==null||Math.abs(s-oo(this.display))>.5||this.options.lineWrapping)&&qc(this),ve(this,"refresh",this)}),swapDoc:Je(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),kd(this,s),as(this),this.display.input.reset(),us(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Oe(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}},Ze(e),e.registerHelper=function(s,c,d){l.hasOwnProperty(s)||(l[s]=e[s]={_global:[]}),l[s][c]=d},e.registerGlobalHelper=function(s,c,d,v){e.registerHelper(s,c,v),l[s]._global.push({pred:d,val:v})}}function hu(e,i,l,s,c){var d=i,v=l,y=At(e,i.line),w=c&&e.direction=="rtl"?-l:l;function _(){var _t=i.line+w;return _t<e.first||_t>=e.first+e.size?!1:(i=new R(_t,i.ch,i.sticky),y=At(e,_t))}function N(_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 R(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Dt?2:1))),-l)}}else c?yt=_w(e.cm,y,i,l):yt=ou(y,i,l);if(yt==null)if(!_t&&_())i=su(c,e.cm,y,i.line,w);else return!1;else i=yt;return!0}if(s=="char"||s=="codepoint")N();else if(s=="column")N(!0);else if(s=="word"||s=="group")for(var O=null,B=s=="group",q=e.cm&&e.cm.getHelper(i,"wordChars"),X=!0;!(l<0&&!N(!X));X=!1){var rt=y.text.charAt(i.ch)||`
|
|
22
|
+
`,ct=zt(rt,q)?"w":B&&rt==`
|
|
23
|
+
`?"n":!B||/\s/.test(rt)?null:"p";if(B&&!X&&!ct&&(ct="s"),O&&O!=ct){l<0&&(l=1,N(),i.sticky="after");break}if(ct&&(O=ct),l>0&&!N(!X))break}var mt=jl(e,i,d,v,!0);return It(d,mt)&&(mt.hitSide=!0),mt}function yp(e,i,l,s){var c=e.doc,d=i.left,v;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,ne(e).innerHeight||c(e).documentElement.clientHeight),w=Math.max(y-.5*oo(e.display),3);v=(l>0?i.bottom:i.top)+l*w}else s=="line"&&(v=l>0?i.bottom+3:i.top-3);for(var _;_=Rc(e,d,v),!!_.outside;){if(l<0?v<=0:v>=c.height){_.hitSide=!0;break}v+=l*5}return _}var ae=function(e){this.cm=e,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(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,vp(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function d(y){for(var w=y.target;w;w=w.parentNode){if(w==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}bt(c,"paste",function(y){!d(y)||Se(s,y)||dp(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 v(y){if(!(!d(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=gp(s);Zl({lineWise:!0,text:w.text}),y.type=="cut"&&s.operation(function(){s.setSelections(w.ranges,0,P),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Wn.text.join(`
|
|
24
|
+
`);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=mp(),O=N.firstChild;s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),O.value=Wn.text.join(`
|
|
25
|
+
`);var B=wt(c.ownerDocument);Bt(O),setTimeout(function(){s.display.lineSpace.removeChild(N),B.focus(),B==c&&l.showPrimarySelection()},50)}}bt(c,"copy",v),bt(c,"cut",v)},ae.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ae.prototype.prepareSelection=function(){var e=ld(this.cm,!1);return e.focus=wt(this.div.ownerDocument)==this.div,e},ae.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ae.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ae.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){e.removeAllRanges();return}var d=Jl(i,e.anchorNode,e.anchorOffset),v=Jl(i,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&v&&!v.bad&&K(Ne(d,v),s)==0&&K(ee(d,v),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&bp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&bp(i,c);if(!_){var N=y[y.length-1].measure,O=N.maps?N.maps[N.maps.length-1]:N.map;_={node:O[O.length-1],offset:O[O.length-2]-O[O.length-3]}}if(!w||!_){e.removeAllRanges();return}var B=e.rangeCount&&e.getRangeAt(0),q;try{q=W(w.node,w.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(e.collapse(w.node,w.offset),q.collapsed||(e.removeAllRanges(),e.addRange(q))):(e.removeAllRanges(),e.addRange(q)),B&&e.anchorNode==null?e.addRange(B):a&&this.startGracePeriod()),this.rememberSelection()}},ae.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ae.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},ae.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ae.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.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 e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.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 e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ae.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(z&&x&&this.cm.display.gutterSpecs.length&&Bw(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Jl(i,e.anchorNode,e.anchorOffset),s=Jl(i,e.focusNode,e.focusOffset);l&&s&&bn(i,function(){Ve(i.doc,Vr(l,s),P),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},ae.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,l=e.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>e.firstLine()&&(s=R(s.line-1,At(e.doc,s.line-1).length)),c.ch==At(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=R(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var d,v,y;s.line==i.viewFrom||(d=_i(e,s.line))==0?(v=re(i.view[0].line),y=i.view[0].node):(v=re(i.view[d].line),y=i.view[d-1].node.nextSibling);var w=_i(e,c.line),_,N;if(w==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=re(i.view[w+1].line)-1,N=i.view[w+1].node.previousSibling),!y)return!1;for(var O=e.doc.splitLines(Ww(e,y,N,v,_)),B=br(e.doc,R(v,0),R(_,At(e.doc,_).text.length));O.length>1&&B.length>1;)if(lt(O)==lt(B))O.pop(),B.pop(),_--;else if(O[0]==B[0])O.shift(),B.shift(),v++;else break;for(var q=0,X=0,rt=O[0],ct=B[0],mt=Math.min(rt.length,ct.length);q<mt&&rt.charCodeAt(q)==ct.charCodeAt(q);)++q;for(var _t=lt(O),yt=lt(B),Tt=Math.min(_t.length-(O.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(O.length==1&&B.length==1&&v==s.line)for(;q&&q>s.ch&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)q--,X++;O[O.length-1]=_t.slice(0,_t.length-X).replace(/^\u200b+/,""),O[0]=O[0].slice(q).replace(/\u200b+$/,"");var Dt=R(v,q),Pt=R(_,B.length?lt(B).length-X:0);if(O.length>1||O[0]||K(Dt,Pt))return po(e.doc,O,Dt,Pt,"+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 e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ae.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return on(e.cm)})},ae.prototype.setUneditable=function(e){e.contentEditable="false"},ae.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$e(this.cm,fu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ae.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ae.prototype.onContextMenu=function(){},ae.prototype.resetPosition=function(){},ae.prototype.needsContentAttribute=!0;function bp(e,i){var l=Oc(e,i.line);if(!l||l.hidden)return null;var s=At(e.doc,i.line),c=Vh(l,s,i.line),d=be(s,e.doc.direction),v="left";if(d){var y=qe(d,i.ch);v=y%2?"right":"left"}var w=Yh(c.map,i.ch,v);return w.offset=w.collapse=="right"?w.end:w.start,w}function Bw(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function bo(e,i){return i&&(e.bad=!0),e}function Ww(e,i,l,s,c){var d="",v=!1,y=e.doc.lineSeparator(),w=!1;function _(q){return function(X){return X.id==q}}function N(){v&&(d+=y,w&&(d+=y),v=w=!1)}function O(q){q&&(N(),d+=q)}function B(q){if(q.nodeType==1){var X=q.getAttribute("cm-text");if(X){O(X);return}var rt=q.getAttribute("cm-marker"),ct;if(rt){var mt=e.findMarks(R(s,0),R(c+1,0),_(+rt));mt.length&&(ct=mt[0].find(0))&&O(br(e.doc,ct.from,ct.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&&N();for(var yt=0;yt<q.childNodes.length;yt++)B(q.childNodes[yt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),_t&&(v=!0)}else q.nodeType==3&&O(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(i),i!=l;)i=i.nextSibling,w=!1;return d}function Jl(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return bo(e.clipPos(R(e.display.viewTo-1)),!0);i=null,l=0}else for(s=i;;s=s.parentNode){if(!s||s==e.display.lineDiv)return null;if(s.parentNode&&s.parentNode==e.display.lineDiv)break}for(var c=0;c<e.display.view.length;c++){var d=e.display.view[c];if(d.node==s)return Uw(d,i,l)}}function Uw(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!et(s,i))return bo(R(re(e.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var d=e.rest?lt(e.rest):e.line;return bo(R(re(d),d.text.length),c)}var v=i.nodeType==3?i:null,y=i;for(!v&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(v=i.firstChild,l&&(l=v.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=e.measure,_=w.maps;function N(ct,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 Pt=Tt[Dt+2];if(Pt==ct||Pt==mt){var Ut=re(yt<0?e.line:e.rest[yt]),pe=Tt[Dt]+_t;return(_t<0||Pt!=ct)&&(pe=Tt[Dt+(_t?1:0)]),R(Ut,pe)}}}var O=N(v,y,l);if(O)return bo(O,c);for(var B=y.nextSibling,q=v?v.nodeValue.length-l:0;B;B=B.nextSibling){if(O=N(B,B.firstChild,0),O)return bo(R(O.line,O.ch-q),c);q+=B.textContent.length}for(var X=y.previousSibling,rt=l;X;X=X.previousSibling){if(O=N(X,X.firstChild,-1),O)return bo(R(O.line,O.ch+rt),c);rt+=X.textContent.length}}var Te=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new st,this.hasSelection=!1,this.composing=null,this.resetting=!1};Te.prototype.init=function(e){var i=this,l=this,s=this.cm;this.createField(e);var c=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),E&&(c.style.width="0px"),bt(c,"input",function(){p&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),bt(c,"paste",function(v){Se(s,v)||dp(v,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(v){if(!Se(s,v)){if(s.somethingSelected())Zl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=gp(s);Zl({lineWise:!0,text:y.text}),v.type=="cut"?s.setSelections(y.ranges,null,P):(l.prevInput="",c.value=y.text.join(`
|
|
26
|
+
`),Bt(c))}else return;v.type=="cut"&&(s.state.cutIncoming=+new Date)}}bt(c,"cut",d),bt(c,"copy",d),bt(e.scroller,"paste",function(v){if(!(_r(e,v)||Se(s,v))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=v.clipboardData,c.dispatchEvent(y)}}),bt(e.lineSpace,"selectstart",function(v){_r(e,v)||Ge(v)}),bt(c,"compositionstart",function(){var v=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:v,range:s.markText(v,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(e){this.wrapper=mp(),this.textarea=this.wrapper.firstChild},Te.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var e=this.cm,i=e.display,l=e.doc,s=ld(e);if(e.options.moveInputWithCursor){var c=Hn(e,l.sel.primary().head,"div"),d=i.wrapper.getBoundingClientRect(),v=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+v.top-d.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+v.left-d.left))}return s},Te.prototype.showSelection=function(e){var i=this.cm,l=i.display;I(l.cursorDiv,e.cursors),I(l.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Te.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Bt(this.textarea),p&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",p&&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"&&(!D||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 e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Te.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function l(){var s=i.poll();!s&&!e?(e=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},Te.prototype.poll=function(){var e=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(p&&g>=9&&this.hasSelection===c||G&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var d=c.charCodeAt(0);if(d==8203&&!s&&(s="\u200B"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var v=0,y=Math.min(s.length,c.length);v<y&&s.charCodeAt(v)==c.charCodeAt(v);)++v;return bn(i,function(){fu(i,c.slice(v),s.length-v,null,e.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
27
|
+
`)>-1?l.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Te.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Te.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Te.prototype.onContextMenu=function(e){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var d=xi(l,e),v=s.scroller.scrollTop;if(!d||M)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(d)==-1&&$e(l,Ve)(l.doc,Vr(d),P);var w=c.style.cssText,_=i.wrapper.style.cssText,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
28
|
+
top: `+(e.clientY-N.top-5)+"px; left: "+(e.clientX-N.left-5)+`px;
|
|
29
|
+
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
30
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var O;m&&(O=c.ownerDocument.defaultView.scrollY),s.input.focus(),m&&c.ownerDocument.defaultView.scrollTo(null,O),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 rt=l.somethingSelected(),ct="\u200B"+(rt?c.value:"");c.value="\u21DA",c.value=ct,i.prevInput=rt?"":"\u200B",c.selectionStart=1,c.selectionEnd=ct.length,s.selForContextMenu=l.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=w,p&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=v),c.selectionStart!=null)){(!p||p&&g<9)&&B();var rt=0,ct=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?$e(l,zd)(l):rt++<10?s.detectingSelectAll=setTimeout(ct,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ct,200)}}if(p&&g>=9&&B(),vt){vr(e);var X=function(){je(window,"mouseup",X),setTimeout(q,20)};bt(window,"mouseup",X)}else setTimeout(q,50)},Te.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Te.prototype.setUneditable=function(){},Te.prototype.needsContentAttribute=!1;function jw(e,i){if(i=i?tt(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var l=wt(e.ownerDocument);i.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function s(){e.value=y.getValue()}var c;if(e.form&&(bt(e.form,"submit",s),!i.leaveSubmitMethodAlone)){var d=e.form;c=d.submit;try{var v=d.submit=function(){s(),d.submit=c,d.submit(),d.submit=v}}catch{}}i.finishInit=function(w){w.save=s,w.getTextArea=function(){return e},w.toTextArea=function(){w.toTextArea=isNaN,s(),e.parentNode.removeChild(w.getWrapperElement()),e.style.display="",e.form&&(je(e.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var y=we(function(w){return e.parentNode.insertBefore(w,e.nextSibling)},i);return y}function Gw(e){e.off=je,e.on=bt,e.wheelEventPixels=Qb,e.Doc=sn,e.splitLines=es,e.countColumn=V,e.findColumn=nt,e.isWordChar=Ot,e.Pass=Lt,e.signal=ve,e.Line=no,e.changeEnd=Kr,e.scrollbarModel=dd,e.Pos=R,e.cmpPos=K,e.modes=Fn,e.mimeModes=Hr,e.resolveMode=yn,e.getMode=mr,e.modeExtensions=Br,e.extendMode=Sl,e.copyState=yr,e.startState=ns,e.innerMode=Wr,e.commands=Cs,e.keyMap=kr,e.keyName=Qd,e.isModifierKey=Zd,e.lookupKey=vo,e.normalizeKeyMap=xw,e.StringStream=ke,e.SharedTextMarker=_s,e.TextMarker=Yr,e.LineWidget=xs,e.e_preventDefault=Ge,e.e_stopPropagation=yi,e.e_stop=vr,e.addClass=Et,e.contains=et,e.rmClass=ft,e.keyNames=Zr}zw(we),Hw(we);var Vw="iter insert remove copy getEditor constructor".split(" ");for(var Ql in sn.prototype)sn.prototype.hasOwnProperty(Ql)&&Ct(Vw,Ql)<0&&(we.prototype[Ql]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[Ql]));return Ze(sn),we.inputStyles={textarea:Te,contenteditable:ae},we.defineMode=function(e){!we.defaults.mode&&e!="null"&&(we.defaults.mode=e),_l.apply(this,arguments)},we.defineMIME=to,we.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),we.defineMIME("text/plain","null"),we.defineExtension=function(e,i){we.prototype[e]=i},we.defineDocExtension=function(e,i){sn.prototype[e]=i},we.fromTextArea=jw,Gw(we),we.version="5.65.9",we})}(Eu)),Eu.exports}var zst=Yo(),Ist={exports:{}};(function(t,n){(function(r){r(Yo())})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,p=a.json||h,g=a.trackScope!==!1,m=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function T(Ne){return{type:Ne,style:"keyword"}}var $=T("keyword a"),R=T("keyword b"),K=T("keyword c"),It=T("keyword d"),Vt=T("operator"),ee={type:"atom",style:"atom"};return{if:T("if"),while:$,with:$,else:R,do:R,try:R,finally:R,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=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(T){for(var $=!1,R,K=!1;(R=T.next())!=null;){if(!$){if(R=="/"&&!K)return;R=="["?K=!0:K&&R=="]"&&(K=!1)}$=!$&&R=="\\"}}var L,C;function E(T,$,R){return L=T,C=R,$}function z(T,$){var R=T.next();if(R=='"'||R=="'")return $.tokenize=D(R),$.tokenize(T,$);if(R=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(R=="."&&T.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(R))return E(R);if(R=="="&&T.eat(">"))return E("=>","operator");if(R=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(R))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(R=="/")return T.eat("*")?($.tokenize=G,G(T,$)):T.eat("/")?(T.skipToEnd(),E("comment","comment")):Qn(T,$,1)?(A(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(T.eat("="),E("operator","operator",T.current()));if(R=="`")return $.tokenize=j,j(T,$);if(R=="#"&&T.peek()=="!")return T.skipToEnd(),E("meta","meta");if(R=="#"&&T.eatWhile(b))return E("variable","property");if(R=="<"&&T.match("!--")||R=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),E("comment","comment");if(S.test(R))return(R!=">"||!$.lexical||$.lexical.type!=">")&&(T.eat("=")?(R=="!"||R=="=")&&T.eat("="):/[<>*+\-|&?]/.test(R)&&(T.eat(R),R==">"&&T.eat(R))),R=="?"&&T.eat(".")?E("."):E("operator","operator",T.current());if(b.test(R)){T.eatWhile(b);var K=T.current();if($.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 D(T){return function($,R){var K=!1,It;if(h&&$.peek()=="@"&&$.match(M))return R.tokenize=z,E("jsonld-keyword","meta");for(;(It=$.next())!=null&&!(It==T&&!K);)K=!K&&It=="\\";return K||(R.tokenize=z),E("string","string")}}function G(T,$){for(var R=!1,K;K=T.next();){if(K=="/"&&R){$.tokenize=z;break}R=K=="*"}return E("comment","comment")}function j(T,$){for(var R=!1,K;(K=T.next())!=null;){if(!R&&(K=="`"||K=="$"&&T.eat("{"))){$.tokenize=z;break}R=!R&&K=="\\"}return E("quasi","string-2",T.current())}var it="([{}])";function Q(T,$){$.fatArrowAt&&($.fatArrowAt=null);var R=T.string.indexOf("=>",T.start);if(!(R<0)){if(m){var K=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,R));K&&(R=K.index)}for(var It=0,Vt=!1,ee=R-1;ee>=0;--ee){var Ne=T.string.charAt(ee),En=it.indexOf(Ne);if(En>=0&&En<3){if(!It){++ee;break}if(--It==0){Ne=="("&&(Vt=!0);break}}else if(En>=3&&En<6)++It;else if(b.test(Ne))Vt=!0;else if(/["'\/`]/.test(Ne))for(;;--ee){if(ee==0)return;var Ft=T.string.charAt(ee-1);if(Ft==Ne&&T.string.charAt(ee-2)!="\\"){ee--;break}}else if(Vt&&!It){++ee;break}}Vt&&!It&&($.fatArrowAt=ee)}}var dt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vt(T,$,R,K,It,Vt){this.indented=T,this.column=$,this.type=R,this.prev=It,this.info=Vt,K!=null&&(this.align=K)}function kt(T,$){if(!g)return!1;for(var R=T.localVars;R;R=R.next)if(R.name==$)return!0;for(var K=T.context;K;K=K.prev)for(var R=K.vars;R;R=R.next)if(R.name==$)return!0}function ft(T,$,R,K,It){var Vt=T.cc;for(U.state=T,U.stream=It,U.marked=null,U.cc=Vt,U.style=$,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ee=Vt.length?Vt.pop():p?Lt:Ct;if(ee(R,K)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return U.marked?U.marked:R=="variable"&&kt(T,K)?"variable-2":$}}}var U={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)U.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function H(T,$){for(var R=$;R;R=R.next)if(R.name==T)return!0;return!1}function W(T){var $=U.state;if(U.marked="def",!!g){if($.context){if($.lexical.info=="var"&&$.context&&$.context.block){var R=et(T,$.context);if(R!=null){$.context=R;return}}else if(!H(T,$.localVars)){$.localVars=new qt(T,$.localVars);return}}a.globalVars&&!H(T,$.globalVars)&&($.globalVars=new qt(T,$.globalVars))}}function et(T,$){if($)if($.block){var R=et(T,$.prev);return R?R==$.prev?$:new Et(R,$.vars,!0):null}else return H(T,$.vars)?$:new Et($.prev,new qt(T,$.vars),!1);else return null}function wt(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Et(T,$,R){this.prev=T,this.vars=$,this.block=R}function qt(T,$){this.name=T,this.next=$}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 J(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}J.lex=!0;function tt(T,$){var R=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,$)};return R.lex=!0,R}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 $(R){return R==T?k():T==";"||R=="}"||R==")"||R=="]"?I():k($)}return $}function Ct(T,$){return T=="var"?k(tt("vardef",$),vr,st(";"),V):T=="keyword a"?k(tt("form"),F,Ct,V):T=="keyword b"?k(tt("form"),Ct,V):T=="keyword d"?U.stream.match(/^\s*$/,!1)?k():k(tt("stat"),nt,st(";"),V):T=="debugger"?k(st(";")):T=="{"?k(tt("}"),ne,Ln,V,J):T==";"?k():T=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==V&&U.state.cc.pop()(),k(tt("form"),F,Ct,V,Qi)):T=="function"?k(Zn):T=="for"?k(tt("form"),ne,wl,Ct,J,V):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form",T=="class"?T:$),_l,V)):T=="variable"?m&&$=="declare"?(U.marked="keyword",k(Ct)):m&&($=="module"||$=="enum"||$=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",$=="enum"?k(eo):$=="type"?k(xl,st("operator"),bt,st(";")):k(tt("form"),rn,st("{"),tt("}"),Ln,V,V)):m&&$=="namespace"?(U.marked="keyword",k(tt("form"),Lt,Ct,V)):m&&$=="abstract"?(U.marked="keyword",k(Ct)):k(tt("stat"),zt):T=="switch"?k(tt("form"),F,st("{"),tt("}","switch"),ne,Ln,V,V,J):T=="case"?k(Lt,st(":")):T=="default"?k(st(":")):T=="catch"?k(tt("form"),Gt,de,Ct,V,J):T=="export"?k(tt("stat"),Br,V):T=="import"?k(tt("stat"),yr,V):T=="async"?k(Ct):$=="@"?k(Lt,Ct):I(tt("stat"),Lt,st(";"),V)}function de(T){if(T=="(")return k(Fn,st(")"))}function Lt(T,$){return Y(T,$,!1)}function P(T,$){return Y(T,$,!0)}function F(T){return T!="("?I():k(tt(")"),nt,st(")"),V)}function Y(T,$,R){if(U.state.fatArrowAt==U.stream.start){var K=R?at:xt;if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,st("=>"),K,J);if(T=="variable")return I(Gt,rn,st("=>"),K,J)}var It=R?pt:ot;return dt.hasOwnProperty(T)?k(It):T=="function"?k(Zn,It):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form"),Hr,V)):T=="keyword c"||T=="async"?k(R?P:Lt):T=="("?k(tt(")"),nt,st(")"),V,It):T=="operator"||T=="spread"?k(R?P:Lt):T=="["?k(tt("]"),br,V,It):T=="{"?mn(te,"}",null,It):T=="quasi"?I(lt,It):T=="new"?k($t(R)):k()}function nt(T){return T.match(/[;\}\)\],]/)?I():I(Lt)}function ot(T,$){return T==","?k(nt):pt(T,$,!1)}function pt(T,$,R){var K=R==!1?ot:pt,It=R==!1?Lt:P;if(T=="=>")return k(Gt,R?at:xt,J);if(T=="operator")return/\+\+|--/.test($)||m&&$=="!"?k(K):m&&$=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(tt(">"),Xt(bt,">"),V,K):$=="?"?k(Lt,st(":"),It):k(It);if(T=="quasi")return I(lt,K);if(T!=";"){if(T=="(")return mn(P,")","call",K);if(T==".")return k(jt,K);if(T=="[")return k(tt("]"),nt,st("]"),V,K);if(m&&$=="as")return U.marked="keyword",k(bt,K);if(T=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),k(It)}}function lt(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(lt):k(nt,gt)}function gt(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,k(lt)}function xt(T){return Q(U.stream,U.state),I(T=="{"?Ct:Lt)}function at(T){return Q(U.stream,U.state),I(T=="{"?Ct:P)}function $t(T){return function($){return $=="."?k(T?Ot:Nt):$=="variable"&&m?k(Ge,T?pt:ot):I(T?P:Lt)}}function Nt(T,$){if($=="target")return U.marked="keyword",k(ot)}function Ot(T,$){if($=="target")return U.marked="keyword",k(pt)}function zt(T){return T==":"?k(V,Ct):I(ot,st(";"),V)}function jt(T){if(T=="variable")return U.marked="property",k()}function te(T,$){if(T=="async")return U.marked="property",k(te);if(T=="variable"||U.style=="keyword"){if(U.marked="property",$=="get"||$=="set")return k(Qt);var R;return m&&U.state.fatArrowAt==U.stream.start&&(R=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+R[0].length),k(se)}else{if(T=="number"||T=="string")return U.marked=h?"property":U.style+" property",k(se);if(T=="jsonld-keyword")return k(se);if(m&&wt($))return U.marked="keyword",k(te);if(T=="[")return k(Lt,qe,st("]"),se);if(T=="spread")return k(P,se);if($=="*")return U.marked="keyword",k(te);if(T==":")return I(se)}}function Qt(T){return T!="variable"?I(se):(U.marked="property",k(Zn))}function se(T){if(T==":")return k(P);if(T=="(")return I(Zn)}function Xt(T,$,R){function K(It,Vt){if(R?R.indexOf(It)>-1:It==","){var ee=U.state.lexical;return ee.info=="call"&&(ee.pos=(ee.pos||0)+1),k(function(Ne,En){return Ne==$||En==$?I():I(T)},K)}return It==$||Vt==$?k():R&&R.indexOf(";")>-1?I(T):k(st($))}return function(It,Vt){return It==$||Vt==$?k():I(T,K)}}function mn(T,$,R){for(var K=3;K<arguments.length;K++)U.cc.push(arguments[K]);return k(tt($,R),Xt(T,$),V)}function Ln(T){return T=="}"?k():I(Ct,Ln)}function qe(T,$){if(m){if(T==":")return k(bt);if($=="?")return k(qe)}}function Ji(T,$){if(m&&(T==":"||$=="in"))return k(bt)}function be(T){if(m&&T==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?k(Lt,nn,bt):k(bt)}function nn(T,$){if($=="is")return U.marked="keyword",k()}function bt(T,$){if($=="keyof"||$=="typeof"||$=="infer"||$=="readonly")return U.marked="keyword",k($=="typeof"?P:bt);if(T=="variable"||$=="void")return U.marked="type",k(Ze);if($=="|"||$=="&")return k(bt);if(T=="string"||T=="number"||T=="atom")return k(Ze);if(T=="[")return k(tt("]"),Xt(bt,"]",","),V,Ze);if(T=="{")return k(tt("}"),je,V,Ze);if(T=="(")return k(Xt(Ye,")"),Jo,Ze);if(T=="<")return k(Xt(bt,">"),bt);if(T=="quasi")return I(Se,Ze)}function Jo(T){if(T=="=>")return k(bt)}function je(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(je):I(ve,je)}function ve(T,$){if(T=="variable"||U.style=="keyword")return U.marked="property",k(ve);if($=="?"||T=="number"||T=="string")return k(ve);if(T==":")return k(bt);if(T=="[")return k(st("variable"),Ji,st("]"),ve);if(T=="(")return I(Jn,ve);if(!T.match(/[;\}\)\],]/))return k()}function Se(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(Se):k(bt,bl)}function bl(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,k(Se)}function Ye(T,$){return T=="variable"&&U.stream.match(/^\s*[?:]/,!1)||$=="?"?k(Ye):T==":"?k(bt):T=="spread"?k(Ye):I(bt)}function Ze(T,$){if($=="<")return k(tt(">"),Xt(bt,">"),V,Ze);if($=="|"||T=="."||$=="&")return k(bt);if(T=="[")return k(bt,st("]"),Ze);if($=="extends"||$=="implements")return U.marked="keyword",k(bt);if($=="?")return k(bt,st(":"),bt)}function Ge(T,$){if($=="<")return k(tt(">"),Xt(bt,">"),V,Ze)}function yi(){return I(bt,Qo)}function Qo(T,$){if($=="=")return k(bt)}function vr(T,$){return $=="enum"?(U.marked="keyword",k(eo)):I(rn,qe,$n,_c)}function rn(T,$){if(m&&wt($))return U.marked="keyword",k(rn);if(T=="variable")return W($),k();if(T=="spread")return k(rn);if(T=="[")return mn(xc,"]");if(T=="{")return mn(ts,"}")}function ts(T,$){return T=="variable"&&!U.stream.match(/^\s*:/,!1)?(W($),k($n)):(T=="variable"&&(U.marked="property"),T=="spread"?k(rn):T=="}"?I():T=="["?k(Lt,st("]"),st(":"),ts):k(st(":"),rn,$n))}function xc(){return I(rn,$n)}function $n(T,$){if($=="=")return k(P)}function _c(T){if(T==",")return k(vr)}function Qi(T,$){if(T=="keyword b"&&$=="else")return k(tt("form","else"),Ct,V)}function wl(T,$){if($=="await")return k(wl);if(T=="(")return k(tt(")"),es,V)}function es(T){return T=="var"?k(vr,qr):T=="variable"?k(qr):I(qr)}function qr(T,$){return T==")"?k():T==";"?k(qr):$=="in"||$=="of"?(U.marked="keyword",k(Lt,qr)):I(Lt,qr)}function Zn(T,$){if($=="*")return U.marked="keyword",k(Zn);if(T=="variable")return W($),k(Zn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,Ct,J);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Zn)}function Jn(T,$){if($=="*")return U.marked="keyword",k(Jn);if(T=="variable")return W($),k(Jn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,J);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Jn)}function xl(T,$){if(T=="keyword"||T=="variable")return U.marked="type",k(xl);if($=="<")return k(tt(">"),Xt(yi,">"),V)}function Fn(T,$){return $=="@"&&k(Lt,Fn),T=="spread"?k(Fn):m&&wt($)?(U.marked="keyword",k(Fn)):m&&T=="this"?k(qe,$n):I(rn,qe,$n)}function Hr(T,$){return T=="variable"?_l(T,$):to(T,$)}function _l(T,$){if(T=="variable")return W($),k(to)}function to(T,$){if($=="<")return k(tt(">"),Xt(yi,">"),V,to);if($=="extends"||$=="implements"||m&&T==",")return $=="implements"&&(U.marked="keyword"),k(m?bt:Lt,to);if(T=="{")return k(tt("}"),yn,V)}function yn(T,$){if(T=="async"||T=="variable"&&($=="static"||$=="get"||$=="set"||m&&wt($))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",k(yn);if(T=="variable"||U.style=="keyword")return U.marked="property",k(mr,yn);if(T=="number"||T=="string")return k(mr,yn);if(T=="[")return k(Lt,qe,st("]"),mr,yn);if($=="*")return U.marked="keyword",k(yn);if(m&&T=="(")return I(Jn,yn);if(T==";"||T==",")return k(yn);if(T=="}")return k();if($=="@")return k(Lt,yn)}function mr(T,$){if($=="!"||$=="?")return k(mr);if(T==":")return k(bt,$n);if($=="=")return k(P);var R=U.state.lexical.prev,K=R&&R.info=="interface";return I(K?Jn:Zn)}function Br(T,$){return $=="*"?(U.marked="keyword",k(At,st(";"))):$=="default"?(U.marked="keyword",k(Lt,st(";"))):T=="{"?k(Xt(Sl,"}"),At,st(";")):I(Ct)}function Sl(T,$){if($=="as")return U.marked="keyword",k(st("variable"));if(T=="variable")return I(P,Sl)}function yr(T){return T=="string"?k():T=="("?I(Lt):T=="."?I(ot):I(Wr,ns,At)}function Wr(T,$){return T=="{"?mn(Wr,"}"):(T=="variable"&&W($),$=="*"&&(U.marked="keyword"),k(ke))}function ns(T){if(T==",")return k(Wr,ns)}function ke(T,$){if($=="as")return U.marked="keyword",k(Wr)}function At(T,$){if($=="from")return U.marked="keyword",k(Lt)}function br(T){return T=="]"?k():I(Xt(P,"]"))}function eo(){return I(tt("form"),rn,st("{"),tt("}"),Xt(Dn,"}"),V,V)}function Dn(){return I(rn,$n)}function re(T,$){return T.lastType=="operator"||T.lastType==","||S.test($.charAt(0))||/[,.]/.test($.charAt(0))}function Qn(T,$,R){return $.tokenize==z&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test($.lastType)||$.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(R||0)))}return{startState:function(T){var $={tokenize:z,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"&&($.globalVars=a.globalVars),$},token:function(T,$){if(T.sol()&&($.lexical.hasOwnProperty("align")||($.lexical.align=!1),$.indented=T.indentation(),Q(T,$)),$.tokenize!=G&&T.eatSpace())return null;var R=$.tokenize(T,$);return L=="comment"?R:($.lastType=L=="operator"&&(C=="++"||C=="--")?"incdec":L,ft($,R,L,C,T))},indent:function(T,$){if(T.tokenize==G||T.tokenize==j)return r.Pass;if(T.tokenize!=z)return 0;var R=$&&$.charAt(0),K=T.lexical,It;if(!/^\s*else\b/.test($))for(var Vt=T.cc.length-1;Vt>=0;--Vt){var ee=T.cc[Vt];if(ee==V)K=K.prev;else if(ee!=Qi&&ee!=J)break}for(;(K.type=="stat"||K.type=="form")&&(R=="}"||(It=T.cc[T.cc.length-1])&&(It==ot||It==pt)&&!/^[,\.=+\-*:?[\(]/.test($));)K=K.prev;f&&K.type==")"&&K.prev.type=="stat"&&(K=K.prev);var Ne=K.type,En=R==Ne;return Ne=="vardef"?K.indented+(T.lastType=="operator"||T.lastType==","?K.info.length+1:0):Ne=="form"&&R=="{"?K.indented:Ne=="form"?K.indented+u:Ne=="stat"?K.indented+(re(T,$)?f||u:0):K.info=="switch"&&!En&&a.doubleIndentSwitch!=!1?K.indented+(/^(?:case|default)\b/.test($)?u:2*u):K.align?K.column+(En?0:1):K.indented+(En?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:h,jsonMode:p,expressionAllowed:Qn,skipExpression:function(T){ft(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Fst={exports:{}};(function(t,n){(function(r){r(Yo())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,p={},g=f.htmlMode?o:a;for(var m in g)p[m]=g[m];for(var m in f)p[m]=f[m];var b,x;function S(k,H){function W(Et){return H.tokenize=Et,Et(k,H)}var et=k.next();if(et=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(L("atom","]]>")):null:k.match("--")?W(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(C(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=L("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",H.tokenize=M,"tag bracket");if(et=="&"){var wt;return k.eat("#")?k.eat("x")?wt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):wt=k.eatWhile(/[\d]/)&&k.eat(";"):wt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),wt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function M(k,H){var W=k.next();if(W==">"||W=="/"&&k.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(k,H);return et?et+" tag error":"tag error"}else return/[\'\"]/.test(W)?(H.tokenize=A(W),H.stringStartCol=k.column(),H.tokenize(k,H)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var H=function(W,et){for(;!W.eol();)if(W.next()==k){et.tokenize=M;break}return"string"};return H.isInAttribute=!0,H}function L(k,H){return function(W,et){for(;!W.eol();){if(W.match(H)){et.tokenize=S;break}W.next()}return k}}function C(k){return function(H,W){for(var et;(et=H.next())!=null;){if(et=="<")return W.tokenize=C(k+1),W.tokenize(H,W);if(et==">")if(k==1){W.tokenize=S;break}else return W.tokenize=C(k-1),W.tokenize(H,W)}return"meta"}}function E(k){return k&&k.toLowerCase()}function z(k,H,W){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=W,(p.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function D(k){k.context&&(k.context=k.context.prev)}function G(k,H){for(var W;;){if(!k.context||(W=k.context.tagName,!p.contextGrabbers.hasOwnProperty(E(W))||!p.contextGrabbers[E(W)].hasOwnProperty(E(H))))return;D(k)}}function j(k,H,W){return k=="openTag"?(W.tagStart=H.column(),it):k=="closeTag"?Q:j}function it(k,H,W){return k=="word"?(W.tagName=H.current(),x="tag",kt):p.allowMissingTagName&&k=="endTag"?(x="tag bracket",kt(k,H,W)):(x="error",it)}function Q(k,H,W){if(k=="word"){var et=H.current();return W.context&&W.context.tagName!=et&&p.implicitlyClosed.hasOwnProperty(E(W.context.tagName))&&D(W),W.context&&W.context.tagName==et||p.matchClosing===!1?(x="tag",dt):(x="tag error",vt)}else return p.allowMissingTagName&&k=="endTag"?(x="tag bracket",dt(k,H,W)):(x="error",vt)}function dt(k,H,W){return k!="endTag"?(x="error",dt):(D(W),j)}function vt(k,H,W){return x="error",dt(k,H,W)}function kt(k,H,W){if(k=="word")return x="attribute",ft;if(k=="endTag"||k=="selfcloseTag"){var et=W.tagName,wt=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(E(et))?G(W,et):(G(W,et),W.context=new z(W,et,wt==W.indented)),j}return x="error",kt}function ft(k,H,W){return k=="equals"?U:(p.allowMissing||(x="error"),kt(k,H,W))}function U(k,H,W){return k=="string"?I:k=="word"&&p.allowUnquoted?(x="string",kt):(x="error",kt(k,H,W))}function I(k,H,W){return k=="string"?I:kt(k,H,W)}return{startState:function(k){var H={tokenize:S,state:j,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(H.baseIndent=k),H},token:function(k,H){if(!H.tagName&&k.sol()&&(H.indented=k.indentation()),k.eatSpace())return null;b=null;var W=H.tokenize(k,H);return(W||b)&&W!="comment"&&(x=null,H.state=H.state(b||W,k,H),x&&(W=x=="error"?W+" error":x)),W},indent:function(k,H,W){var et=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(et&&et.noIndent)return r.Pass;if(k.tokenize!=M&&k.tokenize!=S)return W?W.match(/^(\s*)/)[0].length:0;if(k.tagName)return p.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(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(p.implicitlyClosed.hasOwnProperty(E(et.tagName)))et=et.prev;else break;else if(wt)for(;et;){var Et=p.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:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(k){k.state==U&&(k.state=kt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],W=k.context;W;W=W.prev)H.push(W.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(t,n){(function(r){r(Yo(),Fst.exports,Ist.exports)})(function(r){function o(u,f,h,p){this.state=u,this.mode=f,this.depth=h,this.prev=p}function a(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&a(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),p=r.getMode(u,f&&f.base||"javascript");function g(S){var M=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=M,A}function m(S,M){return M.context.mode==h?b(S,M,M.context):x(S,M,M.context)}function b(S,M,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),C=A.state.context;if(C&&S.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return M.context=new o(r.startState(p,L),p,0,M.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),M.context=new o(r.startState(h,g(A.state)),h,0,M.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,m(S,M)}var E=h.token(S,A.state),z=S.current(),D;return/\btag\b/.test(E)?/>$/.test(z)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test(z)&&(A.depth=1):!E&&(D=z.indexOf("{"))>-1&&S.backUp(z.length-D),E}function x(S,M,A){if(S.peek()=="<"&&p.expressionAllowed(S,A.state))return M.context=new o(r.startState(h,p.indent(A.state,"","")),h,0,M.context),p.skipExpression(A.state),null;var L=p.token(S,A.state);if(!L&&A.depth!=null){var C=S.current();C=="{"?A.depth++:C=="}"&&--A.depth==0&&(M.context=M.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(p),p)}},copyState:function(S){return{context:a(S.context)}},token:m,indent:function(S,M,A){return S.context.mode.indent(S.context.state,M,A)},innerMode:function(S){return S.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,n){(function(r){r(Yo())})(function(r){r.defineOption("placeholder","",function(g,m,b){var x=b&&b!=r.Init;if(m&&!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(!m&&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","")}m&&!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 m=g.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=g.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),m.appendChild(b),g.display.lineSpace.insertBefore(m,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var m=!1;if(g.lineCount()==1){var b=g.getInputField();m=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}m?a(g):o(g)},20)}function f(g){p(g)&&a(g)}function h(g){var m=g.getWrapperElement(),b=p(g);m.className=m.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function p(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,n){(function(r){r(Yo())})(function(r){function o(f,h,p){this.orientation=h,this.scroll=p,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(b){if(b.which!=1)return;r.e_preventDefault(b);var x=g.orientation=="horizontal"?"pageX":"pageY",S=b[x],M=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(C){if(C.which!=1)return A();g.moveTo(M+(C[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 m(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",m),r.on(this.node,"DOMMouseScroll",m)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var a=10;o.prototype.update=function(f,h,p){var g=this.screen!=h||this.total!=f||this.size!=p;g&&(this.screen=h,this.total=f,this.size=p);var m=this.screen*(this.size/this.total);m<a&&(this.size-=a-m,m=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=m+"px",this.setPos(this.pos,g)};function u(f,h,p){this.addClass=f,this.horiz=new o(f,"horizontal",p),h(this.horiz.node),this.vert=new o(f,"vertical",p),h(this.vert.node),this.width=null}u.prototype.update=function(f){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var p=this.width||0,g=f.scrollWidth>f.clientWidth+1,m=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=m?"block":"none",this.horiz.node.style.display=g?"block":"none",m&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?p:0)),this.vert.node.style.bottom=g?p+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(m?p:0)-f.barLeft),this.horiz.node.style.right=m?p+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:m?p:0,bottom:g?p:0}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function qst(t,n,r={}){const o=zst.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),Fe(n,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}),Pf(o)}const Hst={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},oy=oe({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:n,emit:r}){const o=t,a=Y1(),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=YC(o,"modelValue",r,{passive:!0}),p=ll();return n({cm:p}),ul(async()=>{p.value=qst(f,h,{...o,...a,mode:u[o.mode||""]||o.mode,readOnly:o.readOnly?"nocursor":void 0,extraKeys:{"Cmd-S":function(g){r("save",g.getValue())},"Ctrl-S":function(g){r("save",g.getValue())}}}),p.value.setSize("100%","100%"),p.value.clearHistory(),setTimeout(()=>p.value.refresh(),100)}),(g,m)=>(ht(),Mt("div",Hst,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),Bst=oe({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:n}){const r=t,o=Kt(""),a=ll(void 0),u=Kt(!1);Fe(()=>r.file,async()=>{var C;if(!r.file||!((C=r.file)!=null&&C.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 C,E;return((E=(C=r.file)==null?void 0:C.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),h=Kt(),p=St(()=>{var C;return(C=h.value)==null?void 0:C.cm}),g=St(()=>{var C;return((C=r.file)==null?void 0:C.tasks.filter(E=>{var z;return((z=E.result)==null?void 0:z.state)==="fail"}))||[]}),m=[],b=[],x=[],S=Kt(!1),M=()=>{x.forEach(([C,E,z])=>{C.removeEventListener("click",E),z()}),x.length=0};WC(h,()=>{var C;(C=p.value)==null||C.refresh()});function A(){u.value=a.value!==p.value.getValue()}Fe(u,C=>{n("draft",C)},{immediate:!0}),Fe([p,g],([C])=>{if(!C){M();return}setTimeout(()=>{M(),m.forEach(E=>E.clear()),b.forEach(E=>{var z;return(z=p.value)==null?void 0:z.removeLineClass(E,"wrap")}),m.length=0,b.length=0,C.on("changes",A),g.value.forEach(E=>{var G;const z=(G=E.result)==null?void 0:G.error,D=((z==null?void 0:z.stacks)||[]).filter(j=>{var it;return j.file&&j.file===((it=r.file)==null?void 0:it.filepath)});if(D.length){const j=D[0].sourcePos||D[0],it=document.createElement("div");it.className="op80 flex gap-x-2 items-center";const Q=document.createElement("pre");Q.className="c-red-600 dark:c-red-400",Q.textContent=`${" ".repeat(j.column)}^ ${z==null?void 0:z.nameStr}: ${z==null?void 0:z.message}`,it.appendChild(Q);const dt=document.createElement("span");dt.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",dt.tabIndex=0,dt.ariaLabel="Open in Editor",d0(dt,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await ry(D[0].file,j.line,j.column)};it.appendChild(dt),x.push([dt,vt,()=>Qf(dt)]),b.push(p.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),m.push(p.value.addLineWidget(j.line-1,it))}}),S.value||C.clearHistory()},100)},{flush:"post"});async function L(C){S.value=!0,await We.rpc.writeFile(r.file.filepath,C),a.value=C,u.value=!1}return(C,E)=>{const z=oy;return ht(),ce(z,hi({ref_key:"editor",ref:h,modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=D=>o.value=D),"h-full":""},{lineNumbers:!0},{mode:Z(f),"data-testid":"code-mirror",onSave:L}),null,16,["modelValue","mode"])}}}),Wst=oe({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const n=t,r=St(()=>{switch(n.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(n.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)=>(ht(),Mt("div",{class:ge(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[ut("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),ut("div",{class:ge(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[Z(r)]]),style:kn(t.modelValue?{}:{transform:Z(o)})},[Kn(a.$slots,"default")],6)],2))}}),Ust=["aria-label","opacity","disabled","hover"],Zo=oe({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(t){return(n,r)=>(ht(),Mt("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(n.$slots,"default",{},()=>[ut("div",{class:ge(t.icon),ma:""},null,2)])],8,Ust))}}),jst={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Gst={"p-4":"",relative:""},Vst=ut("p",null,"Module Info",-1),Kst={op50:"","font-mono":"","text-sm":""},Xst={key:0,"p-5":""},Yst={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Zst=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Jst=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Qst={key:0},tlt={p:"x3 y-1","bg-overlay":"",border:"base b t"},elt=oe({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=gC(()=>We.rpc.getTransformResult(r.id)),a=St(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=St(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=St(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=St(()=>{var p,g,m,b,x;return{mappings:(m=(g=(p=o.value)==null?void 0:p.map)==null?void 0:g.mappings)!=null?m:"",version:(x=(b=o.value)==null?void 0:b.map)==null?void 0:x.version}});return mC("Escape",()=>{n("close")}),(p,g)=>{const m=Zo,b=oy;return ht(),Mt("div",jst,[ut("div",Gst,[Vst,ut("p",Kst,Jt(t.id),1),Rt(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=x=>n("close"))})]),Z(o)?(ht(),Mt(ue,{key:1},[ut("div",Yst,[Zst,Jst,Rt(b,hi({"h-full":"","model-value":Z(u),"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"]),Rt(b,hi({"h-full":"","model-value":Z(f),"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"])]),Z(h).mappings!==""?(ht(),Mt("div",Qst,[ut("div",tlt," Source map (v"+Jt(Z(h).version)+") ",1),Rt(b,hi({"model-value":Z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"])])):ye("",!0)],64)):(ht(),Mt("div",Xst," No transform result found for this module. "))])}}});var cf="http://www.w3.org/1999/xhtml";const cv={svg:"http://www.w3.org/2000/svg",xhtml:cf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),cv.hasOwnProperty(n)?{space:cv[n],local:t}:t}function nlt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===cf&&n.documentElement.namespaceURI===cf?n.createElement(t):n.createElementNS(r,t)}}function rlt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function sy(t){var n=yc(t);return(n.local?rlt:nlt)(n)}function ilt(){}function sh(t){return t==null?ilt:function(){return this.querySelector(t)}}function olt(t){typeof t!="function"&&(t=sh(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=new Array(f),p,g,m=0;m<f;++m)(p=u[m])&&(g=t.call(p,p.__data__,m,u))&&("__data__"in p&&(g.__data__=p.__data__),h[m]=g);return new On(o,this._parents)}function slt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function llt(){return[]}function ly(t){return t==null?llt:function(){return this.querySelectorAll(t)}}function alt(t){return function(){return slt(t.apply(this,arguments))}}function clt(t){typeof t=="function"?t=alt(t):t=ly(t);for(var n=this._groups,r=n.length,o=[],a=[],u=0;u<r;++u)for(var f=n[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&(o.push(t.call(p,p.__data__,g,f)),a.push(p));return new On(o,a)}function ay(t){return function(){return this.matches(t)}}function cy(t){return function(n){return n.matches(t)}}var ult=Array.prototype.find;function flt(t){return function(){return ult.call(this.children,t)}}function hlt(){return this.firstElementChild}function dlt(t){return this.select(t==null?hlt:flt(typeof t=="function"?t:cy(t)))}var plt=Array.prototype.filter;function glt(){return Array.from(this.children)}function vlt(t){return function(){return plt.call(this.children,t)}}function mlt(t){return this.selectAll(t==null?glt:vlt(typeof t=="function"?t:cy(t)))}function ylt(t){typeof t!="function"&&(t=ay(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new On(o,this._parents)}function uy(t){return new Array(t.length)}function blt(){return new On(this._enter||this._groups.map(uy),this._parents)}function qa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}qa.prototype={constructor:qa,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function wlt(t){return function(){return t}}function xlt(t,n,r,o,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],o[f]=h):r[f]=new qa(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function _lt(t,n,r,o,a,u,f){var h,p,g=new Map,m=n.length,b=u.length,x=new Array(m),S;for(h=0;h<m;++h)(p=n[h])&&(x[h]=S=f.call(p,p.__data__,h,n)+"",g.has(S)?a[h]=p:g.set(S,p));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(p=g.get(S))?(o[h]=p,p.__data__=u[h],g.delete(S)):r[h]=new qa(t,u[h]);for(h=0;h<m;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function Slt(t){return t.__data__}function klt(t,n){if(!arguments.length)return Array.from(this,Slt);var r=n?_lt:xlt,o=this._parents,a=this._groups;typeof t!="function"&&(t=wlt(t));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var m=o[g],b=a[g],x=b.length,S=Clt(t.call(m,m&&m.__data__,g,o)),M=S.length,A=h[g]=new Array(M),L=f[g]=new Array(M),C=p[g]=new Array(x);r(m,b,A,L,C,S,n);for(var E=0,z=0,D,G;E<M;++E)if(D=A[E]){for(E>=z&&(z=E+1);!(G=L[z])&&++z<M;);D._next=G||null}}return f=new On(f,o),f._enter=h,f._exit=p,f}function Clt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Tlt(){return new On(this._exit||this._groups.map(uy),this._parents)}function Llt(t,n,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),n!=null&&(a=n(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function Elt(t){for(var n=t.selection?t.selection():t,r=this._groups,o=n._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var g=r[p],m=o[p],b=g.length,x=h[p]=new Array(b),S,M=0;M<b;++M)(S=g[M]||m[M])&&(x[M]=S);for(;p<a;++p)h[p]=r[p];return new On(h,this._parents)}function Alt(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var o=t[n],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function Mlt(t){t||(t=Nlt);function n(b,x){return b&&x?t(b.__data__,x.__data__):!b-!x}for(var r=this._groups,o=r.length,a=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,p=a[u]=new Array(h),g,m=0;m<h;++m)(g=f[m])&&(p[m]=g);p.sort(n)}return new On(a,this._parents).order()}function Nlt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Plt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Olt(){return Array.from(this)}function $lt(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function Dlt(){let t=0;for(const n of this)++t;return t}function Rlt(){return!this.node()}function zlt(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var a=n[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function Ilt(t){return function(){this.removeAttribute(t)}}function Flt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qlt(t,n){return function(){this.setAttribute(t,n)}}function Hlt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Blt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Wlt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Ult(t,n){var r=yc(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((n==null?r.local?Flt:Ilt:typeof n=="function"?r.local?Wlt:Blt:r.local?Hlt:qlt)(r,n))}function fy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function jlt(t){return function(){this.style.removeProperty(t)}}function Glt(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Vlt(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Klt(t,n,r){return arguments.length>1?this.each((n==null?jlt:typeof n=="function"?Vlt:Glt)(t,n,r==null?"":r)):Uo(this.node(),t)}function Uo(t,n){return t.style.getPropertyValue(n)||fy(t).getComputedStyle(t,null).getPropertyValue(n)}function Xlt(t){return function(){delete this[t]}}function Ylt(t,n){return function(){this[t]=n}}function Zlt(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Jlt(t,n){return arguments.length>1?this.each((n==null?Xlt:typeof n=="function"?Zlt:Ylt)(t,n)):this.node()[t]}function hy(t){return t.trim().split(/^|\s+/)}function lh(t){return t.classList||new dy(t)}function dy(t){this._node=t,this._names=hy(t.getAttribute("class")||"")}dy.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function py(t,n){for(var r=lh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function gy(t,n){for(var r=lh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function Qlt(t){return function(){py(this,t)}}function tat(t){return function(){gy(this,t)}}function eat(t,n){return function(){(n.apply(this,arguments)?py:gy)(this,t)}}function nat(t,n){var r=hy(t+"");if(arguments.length<2){for(var o=lh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?eat:n?Qlt:tat)(r,n))}function rat(){this.textContent=""}function iat(t){return function(){this.textContent=t}}function oat(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function sat(t){return arguments.length?this.each(t==null?rat:(typeof t=="function"?oat:iat)(t)):this.node().textContent}function lat(){this.innerHTML=""}function aat(t){return function(){this.innerHTML=t}}function cat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function uat(t){return arguments.length?this.each(t==null?lat:(typeof t=="function"?cat:aat)(t)):this.node().innerHTML}function fat(){this.nextSibling&&this.parentNode.appendChild(this)}function hat(){return this.each(fat)}function dat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function pat(){return this.each(dat)}function gat(t){var n=typeof t=="function"?t:sy(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function vat(){return null}function mat(t,n){var r=typeof t=="function"?t:sy(t),o=n==null?vat:typeof n=="function"?n:sh(n);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 bat(){return this.each(yat)}function wat(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function xat(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function _at(t){return this.select(t?xat:wat)}function Sat(t){return arguments.length?this.property("__data__",t):this.node().__data__}function kat(t){return function(n){t.call(this,n,this.__data__)}}function Cat(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}function Tat(t){return function(){var n=this.__on;if(!!n){for(var r=0,o=-1,a=n.length,u;r<a;++r)u=n[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):n[++o]=u;++o?n.length=o:delete this.__on}}}function Lat(t,n,r){return function(){var o=this.__on,a,u=kat(n);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=n;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:n,listener:u,options:r},o?o.push(a):this.__on=[a]}}function Eat(t,n,r){var o=Cat(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,m;p<g;++p)for(a=0,m=h[p];a<u;++a)if((f=o[a]).type===m.type&&f.name===m.name)return m.value}return}for(h=n?Lat:Tat,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function vy(t,n,r){var o=fy(t),a=o.CustomEvent;typeof a=="function"?a=new a(n,r):(a=o.document.createEvent("Event"),r?(a.initEvent(n,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function Aat(t,n){return function(){return vy(this,t,n)}}function Mat(t,n){return function(){return vy(this,t,n.apply(this,arguments))}}function Nat(t,n){return this.each((typeof n=="function"?Mat:Aat)(t,n))}function*Pat(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var my=[null];function On(t,n){this._groups=t,this._parents=n}function gl(){return new On([[document.documentElement]],my)}function Oat(){return this}On.prototype=gl.prototype={constructor:On,select:olt,selectAll:clt,selectChild:dlt,selectChildren:mlt,filter:ylt,data:klt,enter:blt,exit:Tlt,join:Llt,merge:Elt,selection:Oat,order:Alt,sort:Mlt,call:Plt,nodes:Olt,node:$lt,size:Dlt,empty:Rlt,each:zlt,attr:Ult,style:Klt,property:Jlt,classed:nat,text:sat,html:uat,raise:hat,lower:pat,append:gat,insert:mat,remove:bat,clone:_at,datum:Sat,on:Eat,dispatch:Nat,[Symbol.iterator]:Pat};function _n(t){return typeof t=="string"?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],my)}function $at(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Ar(t,n){if(t=$at(t),n===void 0&&(n=t.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(n.getScreenCTM().inverse()),[o.x,o.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}var Dat={value:()=>{}};function vl(){for(var t=0,n=arguments.length,r={},o;t<n;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new xa(r)}function xa(t){this._=t}function Rat(t,n){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}xa.prototype=vl.prototype={constructor:xa,on:function(t,n){var r=this._,o=Rat(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=zat(r[a],t.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(t=o[u]).type)r[a]=uv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=uv(r[a],t.name,null);return this},copy:function(){var t={},n=this._;for(var r in n)t[r]=n[r].slice();return new xa(t)},call:function(t,n){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(n,r)},apply:function(t,n,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(n,r)}};function zat(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function uv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=Dat,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const Iat={passive:!1},nl={capture:!0,passive:!1};function Au(t){t.stopImmediatePropagation()}function Po(t){t.preventDefault(),t.stopImmediatePropagation()}function yy(t){var n=t.document.documentElement,r=_n(t).on("dragstart.drag",Po,nl);"onselectstart"in n?r.on("selectstart.drag",Po,nl):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function by(t,n){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);n&&(o.on("click.drag",Po,nl),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 sa=t=>()=>t;function uf(t,{sourceEvent:n,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:p,dy:g,dispatch:m}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:m}})}uf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Fat(t){return!t.ctrlKey&&!t.button}function qat(){return this.parentNode}function Hat(t,n){return n==null?{x:t.x,y:t.y}:n}function Bat(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wat(){var t=Fat,n=qat,r=Hat,o=Bat,a={},u=vl("start","drag","end"),f=0,h,p,g,m,b=0;function x(D){D.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",C,Iat).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(D,G){if(!(m||!t.call(this,D,G))){var j=z(this,n.call(this,D,G),D,G,"mouse");!j||(_n(D.view).on("mousemove.drag",M,nl).on("mouseup.drag",A,nl),yy(D.view),Au(D),g=!1,h=D.clientX,p=D.clientY,j("start",D))}}function M(D){if(Po(D),!g){var G=D.clientX-h,j=D.clientY-p;g=G*G+j*j>b}a.mouse("drag",D)}function A(D){_n(D.view).on("mousemove.drag mouseup.drag",null),by(D.view,g),Po(D),a.mouse("end",D)}function L(D,G){if(!!t.call(this,D,G)){var j=D.changedTouches,it=n.call(this,D,G),Q=j.length,dt,vt;for(dt=0;dt<Q;++dt)(vt=z(this,it,D,G,j[dt].identifier,j[dt]))&&(Au(D),vt("start",D,j[dt]))}}function C(D){var G=D.changedTouches,j=G.length,it,Q;for(it=0;it<j;++it)(Q=a[G[it].identifier])&&(Po(D),Q("drag",D,G[it]))}function E(D){var G=D.changedTouches,j=G.length,it,Q;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),it=0;it<j;++it)(Q=a[G[it].identifier])&&(Au(D),Q("end",D,G[it]))}function z(D,G,j,it,Q,dt){var vt=u.copy(),kt=Ar(dt||j,G),ft,U,I;if((I=r.call(D,new uf("beforestart",{sourceEvent:j,target:x,identifier:Q,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:vt}),it))!=null)return ft=I.x-kt[0]||0,U=I.y-kt[1]||0,function k(H,W,et){var wt=kt,Et;switch(H){case"start":a[Q]=k,Et=f++;break;case"end":delete a[Q],--f;case"drag":kt=Ar(et||W,G),Et=f;break}vt.call(H,D,new uf(H,{sourceEvent:W,subject:I,target:x,identifier:Q,active:Et,x:kt[0]+ft,y:kt[1]+U,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:vt}),it)}}return x.filter=function(D){return arguments.length?(t=typeof D=="function"?D:sa(!!D),x):t},x.container=function(D){return arguments.length?(n=typeof D=="function"?D:sa(D),x):n},x.subject=function(D){return arguments.length?(r=typeof D=="function"?D:sa(D),x):r},x.touchable=function(D){return arguments.length?(o=typeof D=="function"?D:sa(!!D),x):o},x.on=function(){var D=u.on.apply(u,arguments);return D===u?x:D},x.clickDistance=function(D){return arguments.length?(b=(D=+D)*D,x):Math.sqrt(b)},x}function ah(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function wy(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function ml(){}var rl=.7,Ha=1/rl,Oo="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uat=/^#([0-9a-f]{3,8})$/,jat=new RegExp(`^rgb\\(${Oo},${Oo},${Oo}\\)$`),Gat=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),Vat=new RegExp(`^rgba\\(${Oo},${Oo},${Oo},${il}\\)$`),Kat=new RegExp(`^rgba\\(${ur},${ur},${ur},${il}\\)$`),Xat=new RegExp(`^hsl\\(${il},${ur},${ur}\\)$`),Yat=new RegExp(`^hsla\\(${il},${ur},${ur},${il}\\)$`),fv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ah(ml,ol,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:hv,formatHex:hv,formatHex8:Zat,formatHsl:Jat,formatRgb:dv,toString:dv});function hv(){return this.rgb().formatHex()}function Zat(){return this.rgb().formatHex8()}function Jat(){return xy(this).formatHsl()}function dv(){return this.rgb().formatRgb()}function ol(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Uat.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?pv(n):r===3?new Sn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?la(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?la(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=jat.exec(t))?new Sn(n[1],n[2],n[3],1):(n=Gat.exec(t))?new Sn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Vat.exec(t))?la(n[1],n[2],n[3],n[4]):(n=Kat.exec(t))?la(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Xat.exec(t))?mv(n[1],n[2]/100,n[3]/100,1):(n=Yat.exec(t))?mv(n[1],n[2]/100,n[3]/100,n[4]):fv.hasOwnProperty(t)?pv(fv[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function pv(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function la(t,n,r,o){return o<=0&&(t=n=r=NaN),new Sn(t,n,r,o)}function Qat(t){return t instanceof ml||(t=ol(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function ff(t,n,r,o){return arguments.length===1?Qat(t):new Sn(t,n,r,o==null?1:o)}function Sn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}ah(Sn,ff,wy(ml,{brighter(t){return t=t==null?Ha:Math.pow(Ha,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(ji(this.r),ji(this.g),ji(this.b),Ba(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:gv,formatHex:gv,formatHex8:tct,formatRgb:vv,toString:vv}));function gv(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function tct(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function vv(){const t=Ba(this.opacity);return`${t===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${t===1?")":`, ${t})`}`}function Ba(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ji(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Hi(t){return t=ji(t),(t<16?"0":"")+t.toString(16)}function mv(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new Gn(t,n,r,o)}function xy(t){if(t instanceof Gn)return new Gn(t.h,t.s,t.l,t.opacity);if(t instanceof ml||(t=ol(t)),!t)return new Gn;if(t instanceof Gn)return t;t=t.rgb();var n=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(n,r,o),u=Math.max(n,r,o),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-n)/h+2:f=(n-r)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new Gn(f,h,p,t.opacity)}function ect(t,n,r,o){return arguments.length===1?xy(t):new Gn(t,n,r,o==null?1:o)}function Gn(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}ah(Gn,ect,wy(ml,{brighter(t){return t=t==null?Ha:Math.pow(Ha,t),new Gn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new Gn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,a=2*r-o;return new Sn(Mu(t>=240?t-240:t+120,a,o),Mu(t,a,o),Mu(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Gn(yv(this.h),aa(this.s),aa(this.l),Ba(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=Ba(this.opacity);return`${t===1?"hsl(":"hsla("}${yv(this.h)}, ${aa(this.s)*100}%, ${aa(this.l)*100}%${t===1?")":`, ${t})`}`}}));function yv(t){return t=(t||0)%360,t<0?t+360:t}function aa(t){return Math.max(0,Math.min(1,t||0))}function Mu(t,n,r){return(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)*255}const _y=t=>()=>t;function nct(t,n){return function(r){return t+r*n}}function rct(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}function ict(t){return(t=+t)==1?Sy:function(n,r){return r-n?rct(n,r,t):_y(isNaN(n)?r:n)}}function Sy(t,n){var r=n-t;return r?nct(t,r):_y(isNaN(t)?n:t)}const bv=function t(n){var r=ict(n);function o(a,u){var f=r((a=ff(a)).r,(u=ff(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=Sy(a.opacity,u.opacity);return function(m){return a.r=f(m),a.g=h(m),a.b=p(m),a.opacity=g(m),a+""}}return o.gamma=t,o}(1);function oi(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var hf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nu=new RegExp(hf.source,"g");function oct(t){return function(){return t}}function sct(t){return function(n){return t(n)+""}}function lct(t,n){var r=hf.lastIndex=Nu.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=hf.exec(t))&&(a=Nu.exec(n));)(u=a.index)>r&&(u=n.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:oi(o,a)})),r=Nu.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?sct(p[0].x):oct(n):(n=p.length,function(g){for(var m=0,b;m<n;++m)h[(b=p[m]).i]=b.x(g);return h.join("")})}var wv=180/Math.PI,df={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ky(t,n,r,o,a,u){var f,h,p;return(f=Math.sqrt(t*t+n*n))&&(t/=f,n/=f),(p=t*r+n*o)&&(r-=t*p,o-=n*p),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,p/=h),t*o<n*r&&(t=-t,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,t)*wv,skewX:Math.atan(p)*wv,scaleX:f,scaleY:h}}var ca;function act(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?df:ky(n.a,n.b,n.c,n.d,n.e,n.f)}function cct(t){return t==null||(ca||(ca=document.createElementNS("http://www.w3.org/2000/svg","g")),ca.setAttribute("transform",t),!(t=ca.transform.baseVal.consolidate()))?df:(t=t.matrix,ky(t.a,t.b,t.c,t.d,t.e,t.f))}function Cy(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,m,b,x,S,M){if(g!==b||m!==x){var A=S.push("translate(",null,n,null,r);M.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(m,x)})}else(b||x)&&S.push("translate("+b+n+x+r)}function f(g,m,b,x){g!==m?(g-m>180?m+=360:m-g>180&&(g+=360),x.push({i:b.push(a(b)+"rotate(",null,o)-2,x:oi(g,m)})):m&&b.push(a(b)+"rotate("+m+o)}function h(g,m,b,x){g!==m?x.push({i:b.push(a(b)+"skewX(",null,o)-2,x:oi(g,m)}):m&&b.push(a(b)+"skewX("+m+o)}function p(g,m,b,x,S,M){if(g!==b||m!==x){var A=S.push(a(S)+"scale(",null,",",null,")");M.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(m,x)})}else(b!==1||x!==1)&&S.push(a(S)+"scale("+b+","+x+")")}return function(g,m){var b=[],x=[];return g=t(g),m=t(m),u(g.translateX,g.translateY,m.translateX,m.translateY,b,x),f(g.rotate,m.rotate,b,x),h(g.skewX,m.skewX,b,x),p(g.scaleX,g.scaleY,m.scaleX,m.scaleY,b,x),g=m=null,function(S){for(var M=-1,A=x.length,L;++M<A;)b[(L=x[M]).i]=L.x(S);return b.join("")}}}var uct=Cy(act,"px, ","px)","deg)"),fct=Cy(cct,", ",")",")"),hct=1e-12;function xv(t){return((t=Math.exp(t))+1/t)/2}function dct(t){return((t=Math.exp(t))-1/t)/2}function pct(t){return((t=Math.exp(2*t))-1)/(t+1)}const gct=function t(n,r,o){function a(u,f){var h=u[0],p=u[1],g=u[2],m=f[0],b=f[1],x=f[2],S=m-h,M=b-p,A=S*S+M*M,L,C;if(A<hct)C=Math.log(x/g)/n,L=function(it){return[h+it*S,p+it*M,g*Math.exp(n*it*C)]};else{var E=Math.sqrt(A),z=(x*x-g*g+o*A)/(2*g*r*E),D=(x*x-g*g-o*A)/(2*x*r*E),G=Math.log(Math.sqrt(z*z+1)-z),j=Math.log(Math.sqrt(D*D+1)-D);C=(j-G)/n,L=function(it){var Q=it*C,dt=xv(G),vt=g/(r*E)*(dt*pct(n*Q+G)-dct(G));return[h+vt*S,p+vt*M,g*dt/xv(n*Q+G)]}}return L.duration=C*1e3*n/Math.SQRT2,L}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return t(f,h,p)},a}(Math.SQRT2,2,4);var jo=0,Rs=0,Os=0,Ty=1e3,Wa,zs,Ua=0,Xi=0,bc=0,sl=typeof performance=="object"&&performance.now?performance:Date,Ly=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ch(){return Xi||(Ly(vct),Xi=sl.now()+bc)}function vct(){Xi=0}function ja(){this._call=this._time=this._next=null}ja.prototype=uh.prototype={constructor:ja,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ch():+r)+(n==null?0:+n),!this._next&&zs!==this&&(zs?zs._next=this:Wa=this,zs=this),this._call=t,this._time=r,pf()},stop:function(){this._call&&(this._call=null,this._time=1/0,pf())}};function uh(t,n,r){var o=new ja;return o.restart(t,n,r),o}function mct(){ch(),++jo;for(var t=Wa,n;t;)(n=Xi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--jo}function _v(){Xi=(Ua=sl.now())+bc,jo=Rs=0;try{mct()}finally{jo=0,bct(),Xi=0}}function yct(){var t=sl.now(),n=t-Ua;n>Ty&&(bc-=n,Ua=t)}function bct(){for(var t,n=Wa,r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(r=n._next,n._next=null,n=t?t._next=r:Wa=r);zs=t,pf(o)}function pf(t){if(!jo){Rs&&(Rs=clearTimeout(Rs));var n=t-Xi;n>24?(t<1/0&&(Rs=setTimeout(_v,t-sl.now()-bc)),Os&&(Os=clearInterval(Os))):(Os||(Ua=sl.now(),Os=setInterval(yct,Ty)),jo=1,Ly(_v))}}function Sv(t,n,r){var o=new ja;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var wct=vl("start","end","cancel","interrupt"),xct=[],Ey=0,kv=1,gf=2,_a=3,Cv=4,vf=5,Sa=6;function wc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;_ct(t,r,{name:n,index:o,group:a,on:wct,tween:xct,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Ey})}function fh(t,n){var r=Yn(t,n);if(r.state>Ey)throw new Error("too late; already scheduled");return r}function pr(t,n){var r=Yn(t,n);if(r.state>_a)throw new Error("too late; already running");return r}function Yn(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function _ct(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=uh(u,0,r.time);function u(g){r.state=kv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var m,b,x,S;if(r.state!==kv)return p();for(m in o)if(S=o[m],S.name===r.name){if(S.state===_a)return Sv(f);S.state===Cv?(S.state=Sa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[m]):+m<n&&(S.state=Sa,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[m])}if(Sv(function(){r.state===_a&&(r.state=Cv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=gf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===gf){for(r.state=_a,a=new Array(x=r.tween.length),m=0,b=-1;m<x;++m)(S=r.tween[m].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var m=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(p),r.state=vf,1),b=-1,x=a.length;++b<x;)a[b].call(t,m);r.state===vf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=Sa,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function ka(t,n){var r=t.__transition,o,a,u=!0,f;if(!!r){n=n==null?null:n+"";for(f in r){if((o=r[f]).name!==n){u=!1;continue}a=o.state>gf&&o.state<vf,o.state=Sa,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function Sct(t){return this.each(function(){ka(this,t)})}function kct(t,n){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===n){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function Cct(t,n,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:n,value:r},p=0,g=a.length;p<g;++p)if(a[p].name===n){a[p]=h;break}p===g&&a.push(h)}u.tween=a}}function Tct(t,n){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((n==null?kct:Cct)(r,t,n))}function hh(t,n,r){var o=t._id;return t.each(function(){var a=pr(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return Yn(a,o).value[n]}}function Ay(t,n){var r;return(typeof n=="number"?oi:n instanceof ol?bv:(r=ol(n))?(n=r,bv):lct)(t,n)}function Lct(t){return function(){this.removeAttribute(t)}}function Ect(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Act(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=n(o=f,r)}}function Mct(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=n(o=f,r)}}function Nct(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function Pct(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function Oct(t,n){var r=yc(t),o=r==="transform"?fct:Ay;return this.attrTween(t,typeof n=="function"?(r.local?Pct:Nct)(r,o,hh(this,"attr."+t,n)):n==null?(r.local?Ect:Lct)(r):(r.local?Mct:Act)(r,o,n))}function $ct(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function Dct(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function Rct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Dct(t,u)),r}return a._value=n,a}function zct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&$ct(t,u)),r}return a._value=n,a}function Ict(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var o=yc(t);return this.tween(r,(o.local?Rct:zct)(o,n))}function Fct(t,n){return function(){fh(this,t).delay=+n.apply(this,arguments)}}function qct(t,n){return n=+n,function(){fh(this,t).delay=n}}function Hct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Fct:qct)(n,t)):Yn(this.node(),n).delay}function Bct(t,n){return function(){pr(this,t).duration=+n.apply(this,arguments)}}function Wct(t,n){return n=+n,function(){pr(this,t).duration=n}}function Uct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Bct:Wct)(n,t)):Yn(this.node(),n).duration}function jct(t,n){if(typeof n!="function")throw new Error;return function(){pr(this,t).ease=n}}function Gct(t){var n=this._id;return arguments.length?this.each(jct(n,t)):Yn(this.node(),n).ease}function Vct(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function Kct(t){if(typeof t!="function")throw new Error;return this.each(Vct(this._id,t))}function Xct(t){typeof t!="function"&&(t=ay(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new zr(o,this._parents,this._name,this._id)}function Yct(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,a=r.length,u=Math.min(o,a),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=r[h],m=p.length,b=f[h]=new Array(m),x,S=0;S<m;++S)(x=p[S]||g[S])&&(b[S]=x);for(;h<o;++h)f[h]=n[h];return new zr(f,this._parents,this._name,this._id)}function Zct(t){return(t+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function Jct(t,n,r){var o,a,u=Zct(n)?fh:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function Qct(t,n){var r=this._id;return arguments.length<2?Yn(this.node(),r).on.on(t):this.each(Jct(r,t,n))}function tut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function eut(){return this.on("end.remove",tut(this._id))}function nut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=sh(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++f)for(var h=o[f],p=h.length,g=u[f]=new Array(p),m,b,x=0;x<p;++x)(m=h[x])&&(b=t.call(m,m.__data__,x,h))&&("__data__"in m&&(b.__data__=m.__data__),g[x]=b,wc(g[x],n,r,x,g,Yn(m,r)));return new zr(u,this._parents,n,r)}function rut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=ly(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var p=o[h],g=p.length,m,b=0;b<g;++b)if(m=p[b]){for(var x=t.call(m,m.__data__,b,p),S,M=Yn(m,r),A=0,L=x.length;A<L;++A)(S=x[A])&&wc(S,n,r,A,x,M);u.push(x),f.push(m)}return new zr(u,f,n,r)}var iut=gl.prototype.constructor;function out(){return new iut(this._groups,this._parents)}function sut(t,n){var r,o,a;return function(){var u=Uo(this,t),f=(this.style.removeProperty(t),Uo(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function My(t){return function(){this.style.removeProperty(t)}}function lut(t,n,r){var o,a=r+"",u;return function(){var f=Uo(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function aut(t,n,r){var o,a,u;return function(){var f=Uo(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),Uo(this,t))),f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h))}}function cut(t,n){var r,o,a,u="style."+n,f="end."+u,h;return function(){var p=pr(this,t),g=p.on,m=p.value[u]==null?h||(h=My(n)):void 0;(g!==r||a!==m)&&(o=(r=g).copy()).on(f,a=m),p.on=o}}function uut(t,n,r){var o=(t+="")=="transform"?uct:Ay;return n==null?this.styleTween(t,sut(t,o)).on("end.style."+t,My(t)):typeof n=="function"?this.styleTween(t,aut(t,o,hh(this,"style."+t,n))).each(cut(this._id,t)):this.styleTween(t,lut(t,o,n),r).on("end.style."+t,null)}function fut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function hut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&fut(t,f,r)),o}return u._value=n,u}function dut(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(n==null)return this.tween(o,null);if(typeof n!="function")throw new Error;return this.tween(o,hut(t,n,r==null?"":r))}function put(t){return function(){this.textContent=t}}function gut(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function vut(t){return this.tween("text",typeof t=="function"?gut(hh(this,"text",t)):put(t==null?"":t+""))}function mut(t){return function(n){this.textContent=t.call(this,n)}}function yut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&mut(a)),n}return o._value=t,o}function but(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,yut(t))}function wut(){for(var t=this._name,n=this._id,r=Ny(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)if(p=f[g]){var m=Yn(p,n);wc(p,t,r,g,f,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new zr(o,this._parents,t,r)}function xut(){var t,n,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};r.each(function(){var g=pr(this,o),m=g.on;m!==t&&(n=(t=m).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var _ut=0;function zr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Ny(){return++_ut}var Lr=gl.prototype;zr.prototype={constructor:zr,select:nut,selectAll:rut,selectChild:Lr.selectChild,selectChildren:Lr.selectChildren,filter:Xct,merge:Yct,selection:out,transition:wut,call:Lr.call,nodes:Lr.nodes,node:Lr.node,size:Lr.size,empty:Lr.empty,each:Lr.each,on:Qct,attr:Oct,attrTween:Ict,style:uut,styleTween:dut,text:vut,textTween:but,remove:eut,tween:Tct,delay:Hct,duration:Uct,ease:Gct,easeVarying:Kct,end:xut,[Symbol.iterator]:Lr[Symbol.iterator]};function Sut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var kut={time:null,delay:0,duration:250,ease:Sut};function Cut(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return r}function Tut(t){var n,r;t instanceof zr?(n=t._id,t=t._name):(n=Ny(),(r=kut).time=ch(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&wc(p,t,n,g,f,r||Cut(p,n));return new zr(o,this._parents,t,n)}gl.prototype.interrupt=Sct;gl.prototype.transition=Tut;const ua=t=>()=>t;function Lut(t,{sourceEvent:n,target:r,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Pr(t,n,r){this.k=t,this.x=n,this.y=r}Pr.prototype={constructor:Pr,scale:function(t){return t===1?this:new Pr(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Pr(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dh=new Pr(1,0,0);Pr.prototype;function Pu(t){t.stopImmediatePropagation()}function $s(t){t.preventDefault(),t.stopImmediatePropagation()}function Eut(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Aut(){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 Tv(){return this.__zoom||dh}function Mut(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Nut(){return navigator.maxTouchPoints||"ontouchstart"in this}function Put(t,n,r){var o=t.invertX(n[0][0])-r[0][0],a=t.invertX(n[1][0])-r[1][0],u=t.invertY(n[0][1])-r[0][1],f=t.invertY(n[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function Out(){var t=Eut,n=Aut,r=Put,o=Mut,a=Nut,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=gct,g=vl("start","zoom","end"),m,b,x,S=500,M=150,A=0,L=10;function C(I){I.property("__zoom",Tv).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",vt).filter(a).on("touchstart.zoom",kt).on("touchmove.zoom",ft).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(I,k,H,W){var et=I.selection?I.selection():I;et.property("__zoom",Tv),I!==et?G(I,k,H,W):et.interrupt().each(function(){j(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},C.scaleBy=function(I,k,H,W){C.scaleTo(I,function(){var et=this.__zoom.k,wt=typeof k=="function"?k.apply(this,arguments):k;return et*wt},H,W)},C.scaleTo=function(I,k,H,W){C.transform(I,function(){var et=n.apply(this,arguments),wt=this.__zoom,Et=H==null?D(et):typeof H=="function"?H.apply(this,arguments):H,qt=wt.invert(Et),Bt=typeof k=="function"?k.apply(this,arguments):k;return r(z(E(wt,Bt),Et,qt),et,f)},H,W)},C.translateBy=function(I,k,H,W){C.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof H=="function"?H.apply(this,arguments):H),n.apply(this,arguments),f)},null,W)},C.translateTo=function(I,k,H,W,et){C.transform(I,function(){var wt=n.apply(this,arguments),Et=this.__zoom,qt=W==null?D(wt):typeof W=="function"?W.apply(this,arguments):W;return r(dh.translate(qt[0],qt[1]).scale(Et.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof H=="function"?-H.apply(this,arguments):-H),wt,f)},W,et)};function E(I,k){return k=Math.max(u[0],Math.min(u[1],k)),k===I.k?I:new Pr(k,I.x,I.y)}function z(I,k,H){var W=k[0]-H[0]*I.k,et=k[1]-H[1]*I.k;return W===I.x&&et===I.y?I:new Pr(I.k,W,et)}function D(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function G(I,k,H,W){I.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=n.apply(et,wt),Bt=H==null?D(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,J=typeof k=="function"?k.apply(et,wt):k,tt=p(ne.invert(Bt).concat(Gt/ne.k),J.invert(Bt).concat(Gt/J.k));return function(V){if(V===1)V=J;else{var st=tt(V),Ct=Gt/st[2];V=new Pr(Ct,Bt[0]-st[0]*Ct,Bt[1]-st[1]*Ct)}Et.zoom(null,V)}})}function j(I,k,H){return!H&&I.__zooming||new it(I,k)}function it(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=n.apply(I,k),this.taps=0}it.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=_n(this.that).datum();g.call(I,this.that,new Lut(I,{sourceEvent:this.sourceEvent,target:C,type:I,transform:this.that.__zoom,dispatch:g}),k)}};function Q(I,...k){if(!t.apply(this,arguments))return;var H=j(this,k).event(I),W=this.__zoom,et=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),wt=Ar(I);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)],ka(this),H.start()}$s(I),H.wheel=setTimeout(Et,M),H.zoom("mouse",r(z(E(W,et),H.mouse[0],H.mouse[1]),H.extent,f));function Et(){H.wheel=null,H.end()}}function dt(I,...k){if(x||!t.apply(this,arguments))return;var H=I.currentTarget,W=j(this,k,!0).event(I),et=_n(I.view).on("mousemove.zoom",Bt,!0).on("mouseup.zoom",Gt,!0),wt=Ar(I,H),Et=I.clientX,qt=I.clientY;yy(I.view),Pu(I),W.mouse=[wt,this.__zoom.invert(wt)],ka(this),W.start();function Bt(ne){if($s(ne),!W.moved){var J=ne.clientX-Et,tt=ne.clientY-qt;W.moved=J*J+tt*tt>A}W.event(ne).zoom("mouse",r(z(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),by(ne.view,W.moved),$s(ne),W.event(ne).end()}}function vt(I,...k){if(!!t.apply(this,arguments)){var H=this.__zoom,W=Ar(I.changedTouches?I.changedTouches[0]:I,this),et=H.invert(W),wt=H.k*(I.shiftKey?.5:2),Et=r(z(E(H,wt),W,et),n.apply(this,k),f);$s(I),h>0?_n(this).transition().duration(h).call(G,Et,W,I):_n(this).call(C.transform,Et,W,I)}}function kt(I,...k){if(!!t.apply(this,arguments)){var H=I.touches,W=H.length,et=j(this,k,I.changedTouches.length===W).event(I),wt,Et,qt,Bt;for(Pu(I),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+!!m);m&&(m=clearTimeout(m)),wt&&(et.taps<2&&(b=Bt[0],m=setTimeout(function(){m=null},S)),ka(this),et.start())}}function ft(I,...k){if(!!this.__zooming){var H=j(this,k).event(I),W=I.changedTouches,et=W.length,wt,Et,qt,Bt;for($s(I),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],J=H.touch1[0],tt=H.touch1[1],V=(V=J[0]-Gt[0])*V+(V=J[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]+J[0])/2,(Gt[1]+J[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(z(Et,qt,Bt),H.extent,f))}}function U(I,...k){if(!!this.__zooming){var H=j(this,k).event(I),W=I.changedTouches,et=W.length,wt,Et;for(Pu(I),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 C.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:ua(+I),C):o},C.filter=function(I){return arguments.length?(t=typeof I=="function"?I:ua(!!I),C):t},C.touchable=function(I){return arguments.length?(a=typeof I=="function"?I:ua(!!I),C):a},C.extent=function(I){return arguments.length?(n=typeof I=="function"?I:ua([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),C):n},C.scaleExtent=function(I){return arguments.length?(u[0]=+I[0],u[1]=+I[1],C):[u[0],u[1]]},C.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(I){return arguments.length?(r=I,C):r},C.duration=function(I){return arguments.length?(h=+I,C):h},C.interpolate=function(I){return arguments.length?(p=I,C):p},C.on=function(){var I=g.on.apply(g,arguments);return I===g?C:I},C.clickDistance=function(I){return arguments.length?(A=(I=+I)*I,C):Math.sqrt(A)},C.tapDistance=function(I){return arguments.length?(L=+I,C):L},C}class hn{constructor(n,r){this.x=n,this.y=r}static of([n,r]){return new hn(n,r)}add(n){return new hn(this.x+n.x,this.y+n.y)}subtract(n){return new hn(this.x-n.x,this.y-n.y)}multiply(n){return new hn(this.x*n,this.y*n)}divide(n){return new hn(this.x/n,this.y/n)}dot(n){return this.x*n.x+this.y*n.y}cross(n){return this.x*n.y-n.x*this.y}hadamard(n){return new hn(this.x*n.x,this.y*n.y)}length(){return Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2))}normalize(){const n=this.length();return new hn(this.x/n,this.y/n)}rotateByRadians(n){const r=Math.cos(n),o=Math.sin(n);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(n){return this.rotateByRadians(n*Math.PI/180)}}function $ut(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return Py(this.cover(n,r),n,r,t)}function Py(t,n,r,o){if(isNaN(n)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,p=t._y0,g=t._x1,m=t._y1,b,x,S,M,A,L,C,E;if(!u)return t._root=f,t;for(;u.length;)if((A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+m)/2))?p=x:m=x,a=u,!(u=u[C=L<<1|A]))return a[C]=f,t;if(S=+t._x.call(null,u.data),M=+t._y.call(null,u.data),n===S&&r===M)return f.next=u,a?a[C]=f:t._root=f,t;do a=a?a[C]=new Array(4):t._root=new Array(4),(A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+m)/2))?p=x:m=x;while((C=L<<1|A)===(E=(M>=x)<<1|S>=b));return a[E]=u,a[C]=f,t}function Dut(t){var n,r,o=t.length,a,u,f=new Array(o),h=new Array(o),p=1/0,g=1/0,m=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,n=t[r]))||isNaN(u=+this._y.call(null,n))||(f[r]=a,h[r]=u,a<p&&(p=a),a>m&&(m=a),u<g&&(g=u),u>b&&(b=u));if(p>m||g>b)return this;for(this.cover(p,g).cover(m,b),r=0;r<o;++r)Py(this,f[r],h[r],t[r]);return this}function Rut(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var f=a-r||1,h=this._root,p,g;r>t||t>=a||o>n||n>=u;)switch(g=(n<o)<<1|t<r,p=new Array(4),p[g]=h,h=p,f*=2,g){case 0:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function zut(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function Iut(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,n,r,o,a){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=a}function Fut(t,n,r){var o,a=this._x0,u=this._y0,f,h,p,g,m=this._x1,b=this._y1,x=[],S=this._root,M,A;for(S&&x.push(new dn(S,a,u,m,b)),r==null?r=1/0:(a=t-r,u=n-r,m=t+r,b=n+r,r*=r);M=x.pop();)if(!(!(S=M.node)||(f=M.x0)>m||(h=M.y0)>b||(p=M.x1)<a||(g=M.y1)<u))if(S.length){var L=(f+p)/2,C=(h+g)/2;x.push(new dn(S[3],L,C,p,g),new dn(S[2],f,C,L,g),new dn(S[1],L,h,p,C),new dn(S[0],f,h,L,C)),(A=(n>=C)<<1|t>=L)&&(M=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=M)}else{var E=t-+this._x.call(null,S.data),z=n-+this._y.call(null,S.data),D=E*E+z*z;if(D<r){var G=Math.sqrt(r=D);a=t-G,u=n-G,m=t+G,b=n+G,o=S.data}}return o}function qut(t){if(isNaN(m=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,r=this._root,o,a,u,f=this._x0,h=this._y0,p=this._x1,g=this._y1,m,b,x,S,M,A,L,C;if(!r)return this;if(r.length)for(;;){if((M=m>=(x=(f+p)/2))?f=x:p=x,(A=b>=(S=(h+g)/2))?h=S:g=S,n=r,!(r=r[L=A<<1|M]))return this;if(!r.length)break;(n[L+1&3]||n[L+2&3]||n[L+3&3])&&(o=n,C=L)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,a?(u?a.next=u:delete a.next,this):n?(u?n[L]=u:delete n[L],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(o?o[C]=r:this._root=r),this):(this._root=u,this)}function Hut(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function But(){return this._root}function Wut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Uut(t){var n=[],r,o=this._root,a,u,f,h,p;for(o&&n.push(new dn(o,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,p=r.y1)&&o.length){var g=(u+h)/2,m=(f+p)/2;(a=o[3])&&n.push(new dn(a,g,m,h,p)),(a=o[2])&&n.push(new dn(a,u,m,g,p)),(a=o[1])&&n.push(new dn(a,g,f,h,m)),(a=o[0])&&n.push(new dn(a,u,f,g,m))}return this}function jut(t){var n=[],r=[],o;for(this._root&&n.push(new dn(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var a=o.node;if(a.length){var u,f=o.x0,h=o.y0,p=o.x1,g=o.y1,m=(f+p)/2,b=(h+g)/2;(u=a[0])&&n.push(new dn(u,f,h,m,b)),(u=a[1])&&n.push(new dn(u,m,h,p,b)),(u=a[2])&&n.push(new dn(u,f,b,m,g)),(u=a[3])&&n.push(new dn(u,m,b,p,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Gut(t){return t[0]}function Vut(t){return arguments.length?(this._x=t,this):this._x}function Kut(t){return t[1]}function Xut(t){return arguments.length?(this._y=t,this):this._y}function ph(t,n,r){var o=new gh(n==null?Gut:n,r==null?Kut:r,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function gh(t,n,r,o,a,u){this._x=t,this._y=n,this._x0=r,this._y0=o,this._x1=a,this._y1=u,this._root=void 0}function Lv(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=ph.prototype=gh.prototype;vn.copy=function(){var t=new gh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,o;if(!n)return t;if(!n.length)return t._root=Lv(n),t;for(r=[{source:n,target:t._root=new Array(4)}];n=r.pop();)for(var a=0;a<4;++a)(o=n.source[a])&&(o.length?r.push({source:o,target:n.target[a]=new Array(4)}):n.target[a]=Lv(o));return t};vn.add=$ut;vn.addAll=Dut;vn.cover=Rut;vn.data=zut;vn.extent=Iut;vn.find=Fut;vn.remove=qut;vn.removeAll=Hut;vn.root=But;vn.size=Wut;vn.visit=Uut;vn.visitAfter=jut;vn.x=Vut;vn.y=Xut;function gn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function Yut(t){return t.x+t.vx}function Zut(t){return t.y+t.vy}function Jut(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=gn(t==null?1:+t));function f(){for(var g,m=n.length,b,x,S,M,A,L,C=0;C<u;++C)for(b=ph(n,Yut,Zut).visitAfter(h),g=0;g<m;++g)x=n[g],A=r[x.index],L=A*A,S=x.x+x.vx,M=x.y+x.vy,b.visit(E);function E(z,D,G,j,it){var Q=z.data,dt=z.r,vt=A+dt;if(Q){if(Q.index>x.index){var kt=S-Q.x-Q.vx,ft=M-Q.y-Q.vy,U=kt*kt+ft*ft;U<vt*vt&&(kt===0&&(kt=li(o),U+=kt*kt),ft===0&&(ft=li(o),U+=ft*ft),U=(vt-(U=Math.sqrt(U)))/U*a,x.vx+=(kt*=U)*(vt=(dt*=dt)/(L+dt)),x.vy+=(ft*=U)*vt,Q.vx-=kt*(vt=1-vt),Q.vy-=ft*vt)}return}return D>S+vt||j<S-vt||G>M+vt||it<M-vt}}function h(g){if(g.data)return g.r=r[g.data.index];for(var m=g.r=0;m<4;++m)g[m]&&g[m].r>g.r&&(g.r=g[m].r)}function p(){if(!!n){var g,m=n.length,b;for(r=new Array(m),g=0;g<m;++g)b=n[g],r[b.index]=+t(b,g,n)}}return f.initialize=function(g,m){n=g,o=m,p()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(a=+g,f):a},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:gn(+g),p(),f):t},f}function Qut(t){return t.index}function Ev(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function tft(t){var n=Qut,r=b,o,a=gn(30),u,f,h,p,g,m=1;t==null&&(t=[]);function b(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function x(L){for(var C=0,E=t.length;C<m;++C)for(var z=0,D,G,j,it,Q,dt,vt;z<E;++z)D=t[z],G=D.source,j=D.target,it=j.x+j.vx-G.x-G.vx||li(g),Q=j.y+j.vy-G.y-G.vy||li(g),dt=Math.sqrt(it*it+Q*Q),dt=(dt-u[z])/dt*L*o[z],it*=dt,Q*=dt,j.vx-=it*(vt=p[z]),j.vy-=Q*vt,G.vx+=it*(vt=1-vt),G.vy+=Q*vt}function S(){if(!!f){var L,C=f.length,E=t.length,z=new Map(f.map((G,j)=>[n(G,j,f),G])),D;for(L=0,h=new Array(C);L<E;++L)D=t[L],D.index=L,typeof D.source!="object"&&(D.source=Ev(z,D.source)),typeof D.target!="object"&&(D.target=Ev(z,D.target)),h[D.source.index]=(h[D.source.index]||0)+1,h[D.target.index]=(h[D.target.index]||0)+1;for(L=0,p=new Array(E);L<E;++L)D=t[L],p[L]=h[D.source.index]/(h[D.source.index]+h[D.target.index]);o=new Array(E),M(),u=new Array(E),A()}}function M(){if(!!f)for(var L=0,C=t.length;L<C;++L)o[L]=+r(t[L],L,t)}function A(){if(!!f)for(var L=0,C=t.length;L<C;++L)u[L]=+a(t[L],L,t)}return x.initialize=function(L,C){f=L,g=C,S()},x.links=function(L){return arguments.length?(t=L,S(),x):t},x.id=function(L){return arguments.length?(n=L,x):n},x.iterations=function(L){return arguments.length?(m=+L,x):m},x.strength=function(L){return arguments.length?(r=typeof L=="function"?L:gn(+L),M(),x):r},x.distance=function(L){return arguments.length?(a=typeof L=="function"?L:gn(+L),A(),x):a},x}const eft=1664525,nft=1013904223,Av=4294967296;function rft(){let t=1;return()=>(t=(eft*t+nft)%Av)/Av}function ift(t){return t.x}function oft(t){return t.y}var sft=10,lft=Math.PI*(3-Math.sqrt(5));function aft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=uh(b),g=vl("tick","end"),m=rft();t==null&&(t=[]);function b(){x(),g.call("tick",n),r<o&&(p.stop(),g.call("end",n))}function x(A){var L,C=t.length,E;A===void 0&&(A=1);for(var z=0;z<A;++z)for(r+=(u-r)*a,h.forEach(function(D){D(r)}),L=0;L<C;++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 n}function S(){for(var A=0,L=t.length,C;A<L;++A){if(C=t[A],C.index=A,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var E=sft*Math.sqrt(.5+A),z=A*lft;C.x=E*Math.cos(z),C.y=E*Math.sin(z)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function M(A){return A.initialize&&A.initialize(t,m),A}return S(),n={tick:x,restart:function(){return p.restart(b),n},stop:function(){return p.stop(),n},nodes:function(A){return arguments.length?(t=A,S(),h.forEach(M),n):t},alpha:function(A){return arguments.length?(r=+A,n):r},alphaMin:function(A){return arguments.length?(o=+A,n):o},alphaDecay:function(A){return arguments.length?(a=+A,n):+a},alphaTarget:function(A){return arguments.length?(u=+A,n):u},velocityDecay:function(A){return arguments.length?(f=1-A,n):1-f},randomSource:function(A){return arguments.length?(m=A,h.forEach(M),n):m},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,M(L)),n):h.get(A)},find:function(A,L,C){var E=0,z=t.length,D,G,j,it,Q;for(C==null?C=1/0:C*=C,E=0;E<z;++E)it=t[E],D=A-it.x,G=L-it.y,j=D*D+G*G,j<C&&(Q=it,C=j);return Q},on:function(A,L){return arguments.length>1?(g.on(A,L),n):g.on(A)}}}function cft(){var t,n,r,o,a=gn(-30),u,f=1,h=1/0,p=.81;function g(S){var M,A=t.length,L=ph(t,ift,oft).visitAfter(b);for(o=S,M=0;M<A;++M)n=t[M],L.visit(x)}function m(){if(!!t){var S,M=t.length,A;for(u=new Array(M),S=0;S<M;++S)A=t[S],u[A.index]=+a(A,S,t)}}function b(S){var M=0,A,L,C=0,E,z,D;if(S.length){for(E=z=D=0;D<4;++D)(A=S[D])&&(L=Math.abs(A.value))&&(M+=A.value,C+=L,E+=L*A.x,z+=L*A.y);S.x=E/C,S.y=z/C}else{A=S,A.x=A.data.x,A.y=A.data.y;do M+=u[A.data.index];while(A=A.next)}S.value=M}function x(S,M,A,L){if(!S.value)return!0;var C=S.x-n.x,E=S.y-n.y,z=L-M,D=C*C+E*E;if(z*z/p<D)return D<h&&(C===0&&(C=li(r),D+=C*C),E===0&&(E=li(r),D+=E*E),D<f&&(D=Math.sqrt(f*D)),n.vx+=C*S.value*o/D,n.vy+=E*S.value*o/D),!0;if(S.length||D>=h)return;(S.data!==n||S.next)&&(C===0&&(C=li(r),D+=C*C),E===0&&(E=li(r),D+=E*E),D<f&&(D=Math.sqrt(f*D)));do S.data!==n&&(z=u[S.data.index]*o/D,n.vx+=C*z,n.vy+=E*z);while(S=S.next)}return g.initialize=function(S,M){t=S,r=M,m()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:gn(+S),m(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(p=S*S,g):Math.sqrt(p)},g}function uft(t){var n=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var p=0,g=r.length,m;p<g;++p)m=r[p],m.vx+=(a[p]-m.x)*o[p]*h}function f(){if(!!r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:gn(+h),f(),u):n},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}function fft(t){var n=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var p=0,g=r.length,m;p<g;++p)m=r[p],m.vy+=(a[p]-m.y)*o[p]*h}function f(){if(!!r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:gn(+h),f(),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}var hft=Object.defineProperty,dft=(t,n,r)=>n in t?hft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Me=(t,n,r)=>(dft(t,typeof n!="symbol"?n+"":n,r),r);function pft(){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 gft(){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 vft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Oy(t){t.preventDefault(),t.stopPropagation()}function $y(t){return typeof t=="number"}function gi(t,n){return $y(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function mft(t){return`${t.source.id}-${t.target.id}`}function Dy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function yft(t){return`url(#${Dy(t.color)})`}function bft(t){return{size:t,padding:(n,r)=>gi(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const Ry={Arrow:t=>bft(t)},wft=(t,n,r)=>[n/2,r/2],xft=(t,n,r)=>[Mv(0,n),Mv(0,r)];function Mv(t,n){return Math.random()*(n-t)+t}const mf={Centered:wft,Randomized:xft};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zy={},yf=Go&&Go.__assign||function(){return yf=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},yf.apply(this,arguments)},_ft=Go&&Go.__read||function(t,n){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),a,u=[],f;try{for(;(n===void 0||n-- >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},Sft=Go&&Go.__spreadArray||function(t,n,r){if(r||arguments.length===2)for(var o=0,a=n.length,u;o<a;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return t.concat(u||Array.prototype.slice.call(n))};Object.defineProperty(zy,"__esModule",{value:!0});var Nv=function(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},ai=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];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]:Nv(r[a])&&Nv(o[a])?r[a]=ai(r[a],o[a]):r[a]=o[a])}),r},{})},Iy={mergeArrays:!0};ai.options=Iy;ai.withOptions=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ai.options=yf({mergeArrays:!0},t);var o=ai.apply(void 0,Sft([],_ft(n),!1));return ai.options=Iy,o};var kft=zy.default=ai;function Cft(){return{autoResize:!1,callbacks:{},initial:vft(),nodeRadius:16,marker:Ry.Arrow(4),modifiers:{},positionInitializer:mf.Centered,simulation:{alphas:pft(),forces:gft()},zoom:{initial:1,min:.1,max:2}}}function Tft(t={}){return kft.withOptions({mergeArrays:!1},Cft(),t)}function Lft(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function Eft({applyZoom:t,container:n,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,offset:[u,f],scale:h,zoom:p}){const g=n.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(p).on("contextmenu",m=>Oy(m)).on("dblclick",m=>r==null?void 0:r(m)).on("dblclick.zoom",null).on("pointermove",m=>o==null?void 0:o(m)).on("pointerup",m=>a==null?void 0:a(m)).style("cursor","grab");return t&&g.call(p.transform,dh.translate(u,f).scale(h)),g.append("g")}function Aft({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function Mft({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Wat().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&n(f,h),_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 Nft({graph:t,filter:n,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(p=>n.includes(p.source.type)&&n.includes(p.target.type)&&a(p)),f=p=>u.find(g=>g.source.id===p.id||g.target.id===p.id)!==void 0,h=t.nodes.filter(p=>n.includes(p.type)&&(o||f(p)));return r===void 0||!n.includes(r.type)?{nodes:h,links:u}:Pft({nodes:h,links:u},r)}function Pft(t,n){const r=[...Oft(t,n),...$ft(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function Oft(t,n){return Fy(t,n,(r,o)=>r.target.id===o.id)}function $ft(t,n){return Fy(t,n,(r,o)=>r.source.id===o.id)}function Fy(t,n,r){const o=new Set(t.links),a=new Set([n]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(p=>r(h,p)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function bf(t){var n;return(n=t.x)!=null?n:0}function wf(t){var n;return(n=t.y)!=null?n:0}function vh({source:t,target:n}){const r=new hn(bf(t),wf(t)),o=new hn(bf(n),wf(n)),a=o.subtract(r),u=a.length(),f=a.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function qy({center:t,node:n}){const r=new hn(bf(n),wf(n));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new hn(0,1))),{n:r,c:o}}function Hy({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=vh({config:t,source:n,target:r}),f=o.add(u.multiply(gi(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function Dft(t){const{start:n,end:r}=Hy(t);return`M${n.x},${n.y}
|
|
31
|
+
L${r.x},${r.y}`}function Rft(t){const{start:n,end:r}=Hy(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function zft({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=vh({config:t,source:n,target:r}),p=10,g=f.rotateByDegrees(-p).multiply(gi(t,n)-1).add(o),m=h.rotateByDegrees(p).multiply(gi(t,r)).add(a).add(h.rotateByDegrees(p).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
|
|
32
|
+
A${b},${b},0,0,1,${m.x},${m.y}`}function Ift({center:t,config:n,node:r}){const{n:o,c:a}=qy({center:t,config:n,node:r}),u=gi(n,r),f=o.subtract(a),h=f.multiply(1/f.length()),p=40,g=h.rotateByDegrees(p).multiply(u-1).add(o),m=h.rotateByDegrees(-p).multiply(u).add(o).add(h.rotateByDegrees(-p).multiply(2*n.marker.size));return`M${g.x},${g.y}
|
|
33
|
+
A${u},${u},0,1,0,${m.x},${m.y}`}function Fft({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=vh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function qft({center:t,config:n,node:r}){const{n:o,c:a}=qy({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*gi(n,r)+8).add(o);return`translate(${f.x},${f.y})`}const $o={line:{labelTransform:Rft,path:Dft},arc:{labelTransform:Fft,path:zft},reflexive:{labelTransform:qft,path:Ift}};function Hft(t){return t.append("g").classed("links",!0).selectAll("path")}function Bft({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>mft(u)).join(u=>{var f,h,p,g;const m=u.append("g"),b=m.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=m.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(p=t.modifiers).linkLabel)==null||g.call(p,x),m});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function Wft(t){Uft(t),jft(t)}function Uft({center:t,config:n,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"":a.source.id===a.target.id?$o.reflexive.path({config:n,node:a.source,center:t}):By(r,a.source,a.target)?$o.arc.path({config:n,source:a.source,target:a.target}):$o.line.path({config:n,source:a.source,target:a.target}))}function jft({config:t,center:n,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"translate(0, 0)":a.source.id===a.target.id?$o.reflexive.labelTransform({config:t,node:a.source,center:n}):By(r,a.source,a.target)?$o.arc.labelTransform({config:t,source:a.source,target:a.target}):$o.line.labelTransform({config:t,source:a.source,target:a.target}))}function By(t,n,r){return n.id!==r.id&&t.links.some(o=>o.target.id===n.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===n.id)}function Gft(t){return t.append("defs").selectAll("marker")}function Vft({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Kft(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>Dy(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",Xft(t.marker.path)),a})}function Kft(t){return[...new Set(t.links.map(n=>n.color))]}function Xft(t){if(t.length<1)return"M0,0";const[[n,r],...o]=t;return o.reduce((a,[u,f])=>`${a}L${u},${f}`,`M${n},${r}`)}function Yft(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Zft({config:t,drag:n,graph:r,onNodeContext:o,onNodeSelected:a,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,p=>p.id).join(p=>{var g,m,b,x;const S=p.append("g");n!==void 0&&S.call(n);const M=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,C)=>{Oy(L),o(C)}).on("pointerdown",(L,C)=>Qft(L,C,a!=null?a:o)).style("fill",L=>L.color);(m=(g=t.modifiers).node)==null||m.call(g,M);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(x=(b=t.modifiers).nodeLabel)==null||x.call(b,A),S});return h==null||h.select(".node").classed("focused",p=>p.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Jft=500;function Qft(t,n,r){if(t.button!==void 0&&t.button!==0)return;const o=n.lastInteractionTimestamp,a=Date.now();if(o===void 0||a-o>Jft){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function tht(t){t==null||t.attr("transform",n=>{var r,o;return`translate(${(r=n.x)!=null?r:0},${(o=n.y)!=null?o:0})`})}function eht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=aft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",uft(()=>t().x).strength(b)).force("y",fft(()=>t().y).strength(b))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",cft().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",Jut().radius(b=>g.radiusMultiplier*gi(n,b)));const m=n.simulation.forces.link;return m&&m.enabled&&f.force("link",tft(r.links).id(b=>b.id).distance(n.simulation.forces.link.length).strength(m.strength)),f.on("tick",()=>o()),(u=(a=n.modifiers).simulation)==null||u.call(a,f),f}function nht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=Out().scaleExtent([r,o]).filter(p=>{var g;return p.button===0||((g=p.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",p=>a(p)).on("end",()=>t().classed("grabbed",!1));return(f=(u=n.modifiers).zoom)==null||f.call(u,h),h}class rht{constructor(n,r,o){if(Me(this,"nodeTypes"),Me(this,"_nodeTypeFilter"),Me(this,"_includeUnlinked",!0),Me(this,"_linkFilter",()=>!0),Me(this,"_showLinkLabels",!0),Me(this,"_showNodeLabels",!0),Me(this,"filteredGraph"),Me(this,"width",0),Me(this,"height",0),Me(this,"simulation"),Me(this,"canvas"),Me(this,"linkSelection"),Me(this,"nodeSelection"),Me(this,"markerSelection"),Me(this,"zoom"),Me(this,"drag"),Me(this,"xOffset",0),Me(this,"yOffset",0),Me(this,"scale"),Me(this,"focusedNode"),Me(this,"resizeObserver"),this.container=n,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{var u,f;const[h,p]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=(u=a.x)!=null?u:h,a.y=(f=a.y)!=null?f:p}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:p}=o.initial;this._includeUnlinked=a!=null?a:this._includeUnlinked,this._showLinkLabels=h!=null?h:this._showLinkLabels,this._showNodeLabels=p!=null?p:this._showNodeLabels,this._nodeTypeFilter=u!=null?u:this._nodeTypeFilter,this._linkFilter=f!=null?f:this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Lft(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(n){this._includeUnlinked=n,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,a=n?r:o;this.restart(a)}set linkFilter(n){this._linkFilter=n,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(n){this._showNodeLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,a=n?o:r;this.restart(a)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(n){this._showLinkLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,a=n?o:r;this.restart(a)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return hn.of([this.width,this.height]).divide(2).subtract(hn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const n=this.width,r=this.height,o=this.container.getBoundingClientRect().width,a=this.container.getBoundingClientRect().height,u=n.toFixed()!==o.toFixed(),f=r.toFixed()!==a.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart($y(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Vft({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Bft({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Zft({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=eht({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(n).restart()}filterNodesByType(n,r){n?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var n,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(n=this.resizeObserver)==null||n.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=nht({config:this.config,canvasContainer:()=>_n(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:n=>this.onZoom(n)}),this.canvas=Eft({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Hft(this.canvas),this.nodeSelection=Yft(this.canvas),this.markerSelection=Gft(this.canvas),this.drag=Mft({config:this.config,onDragStart:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){tht(this.nodeSelection),Wft({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var n;(n=this.simulation)==null||n.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(n){var r;this.xOffset=n.transform.x,this.yOffset=n.transform.y,this.scale=n.transform.k,this.applyZoom(),(r=this.simulation)==null||r.restart()}applyZoom(){Aft({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(n){n.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(n))):this.focusNode(n)}focusNode(n){this.filterGraph(n),this.restart(this.config.simulation.alphas.focus.acquire(n))}filterGraph(n){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),n!==void 0&&this._nodeTypeFilter.includes(n.type)&&(n.isFocused=!0,this.focusedNode=n),this.filteredGraph=Nft({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Pv({nodes:t,links:n}){return{nodes:t!=null?t:[],links:n!=null?n:[]}}function iht(t){return{...t}}function Wy(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const oht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},sht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},lht=["id","checked","onChange"],aht=["for"],cht=ut("div",{"flex-auto":""},null,-1),uht=oe({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=qx(n),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();Ff(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ul(()=>{g()}),Hf(()=>{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 p(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new rht(o.value,r.value,Tft({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:Ry.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?mf.Randomized:mf.Centered,zoom:{min:.5,max:2}})))}function m(b){const x=L=>L.button===0;let S=0,M=0,A=0;b.on("pointerdown",(L,C)=>{C.type!=="external"&&(!C.x||!C.y||!x(L)||(S=C.x,M=C.y,A=Date.now()))}).on("pointerup",(L,C)=>{if(C.type==="external"||!C.x||!C.y||!x(L)||Date.now()-A>500)return;const E=C.x-S,z=C.y-M;E**2+z**2<100&&p(C.id)})}return(b,x)=>{var C;const S=Zo,M=elt,A=Wst,L=Zi("tooltip");return ht(),Mt("div",oht,[ut("div",null,[ut("div",sht,[(ht(!0),Mt(ue,null,lr((C=f.value)==null?void 0:C.nodeTypes.sort(),E=>{var z;return ht(),Mt("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[ut("input",{id:`type-${E}`,type:"checkbox",checked:(z=f.value)==null?void 0:z.nodeTypeFilter.includes(E),onChange:D=>h(E,D.target.checked)},null,40,lht),ut("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})`})},Jt(E)+" Modules",13,aht)])}),128)),cht,ut("div",null,[pn(Rt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ut("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?(ht(),ce(n1,{key:0},{default:Zt(()=>[Rt(M,{id:u.value,onClose:x[0]||(x[0]=E=>a.value=!1)},null,8,["id"])]),_:1})):ye("",!0)]),_:1},8,["modelValue"])])}}});const fht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},hht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},dht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},pht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},ght={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},vht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},mh=oe({__name:"StatusIcon",props:{task:null},setup(t){return(n,r)=>{var a,u,f;const o=Zi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(ht(),Mt("div",fht)):Z(pc)(t.task)?pn((ht(),Mt("div",hht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(ht(),Mt("div",dht)):t.task.mode==="todo"?pn((ht(),Mt("div",pht,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?pn((ht(),Mt("div",ght,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ht(),Mt("div",vht))}}});function mht(t){const n=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var m;const{splits:h,finished:p}=u;if(p){a++;const{raw:b,candidate:x}=u;n.set(b,x);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(m=r.get(g))==null||m.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,a===t.length)break}return n}function yht(t){let n=t;n.includes("/node_modules/")&&(n=t.split(/\/node_modules\//g).pop());const r=n.split(/\//g);return{raw:n,splits:r,candidate:"",finished:!1,id:t}}function bht(t){const n=t.map(o=>yht(o)),r=mht(n);return n.map(({raw:o,id:a})=>{var u;return Wy({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:(u=r.get(o))!=null?u:""},isFocused:!1,id:a,type:"external"})})}function wht(t,n){return Wy({color:n?"var(--color-node-root)":"var(--color-node-inline)",label:{color:n?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function xht(t,n){var h;if(!t)return Pv({});const r=bht(t.externalized),o=(h=t.inlined.map(p=>wht(p,p===n)))!=null?h:[],a=[...r,...o],u=Object.fromEntries(a.map(p=>[p.id,p])),f=Object.entries(t.graph).flatMap(([p,g])=>g.map(m=>{const b=u[p],x=u[m];if(!(b===void 0||x===void 0))return iht({source:b,target:x,color:"var(--color-link)",label:!1})}).filter(m=>m!==void 0));return Pv({nodes:a,links:f})}const _ht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},Sht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},kht={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Cht={class:"flex text-lg"},Tht={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Lht={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Eht={key:0,"flex-1":""},Aht=oe({__name:"FileDetails",setup(t){const n=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);lC(Le,async(g,m)=>{g&&g.filepath!==(m==null?void 0:m.filepath)&&(n.value=await We.rpc.getModuleGraph(g.filepath),r.value=xht(n.value,g.filepath))},{debounce:100,immediate:!0});const u=()=>{var m;const g=(m=Le.value)==null?void 0:m.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)},f=g=>{g==="graph"&&(a.value=!0),or.value=g},h=St(()=>{var g,m;return(m=(g=F0.value)==null?void 0:g.reduce((b,{size:x})=>b+x,0))!=null?m:0});function p(g){o.value=g}return(g,m)=>{var E,z;const b=mh,x=Zo,S=uht,M=Bst,A=Rst,L=Est,C=Zi("tooltip");return Z(Le)?(ht(),Mt("div",_ht,[ut("div",null,[ut("div",Sht,[Rt(b,{task:Z(Le)},null,8,["task"]),ut("div",kht,Jt((E=Z(Le))==null?void 0:E.filepath),1),ut("div",Cht,[pn(Rt(x,{title:"Open in editor",icon:"i-carbon-launch",disabled:!((z=Z(Le))!=null&&z.filepath),onClick:u},null,8,["disabled"]),[[C,"Open in editor",void 0,{bottom:!0}]])])]),ut("div",Tht,[ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==null}),onClick:m[0]||(m[0]=D=>f(null))}," Report ",2),ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==="graph"}),onClick:m[1]||(m[1]=D=>f("graph"))}," Module Graph ",2),ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==="editor"}),onClick:m[2]||(m[2]=D=>f("editor"))},Jt(o.value?"*\xA0":"")+"Code ",3),ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==="console",op20:Z(or)!=="console"&&Z(h)===0}),onClick:m[3]||(m[3]=D=>f("console"))}," Console ("+Jt(Z(h))+") ",3)])]),ut("div",Lht,[a.value?(ht(),Mt("div",Eht,[pn(Rt(S,{graph:r.value},null,8,["graph"]),[[Im,Z(or)==="graph"]])])):ye("",!0),Z(or)==="editor"?(ht(),ce(M,{key:Z(Le).filepath,file:Z(Le),onDraft:p},null,8,["file"])):Z(or)==="console"?(ht(),ce(A,{key:2,file:Z(Le)},null,8,["file"])):Z(or)?ye("",!0):(ht(),ce(L,{key:3,file:Z(Le)},null,8,["file"]))])])):ye("",!0)}}}),Mht=["open"],Nht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Pht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Oht=oe({__name:"DetailsPanel",props:{color:null},setup(t){const n=Kt(!0);return(r,o)=>(ht(),Mt("div",{open:n.value,class:"details-panel",onToggle:o[0]||(o[0]=a=>n.value=a.target.open)},[ut("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"},[Nht,Kn(r.$slots,"summary",{open:n.value}),Pht],2),Kn(r.$slots,"default")],40,Mht))}});const $ht={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Dht=["text"],Rht={"text-sm":"",truncate:"","font-light":""},zht={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Iht=oe({__name:"TaskItem",props:{task:null},setup(t){const n=t,r=St(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=mh;return t.task?(ht(),Mt("div",$ht,[Rt(u,{task:t.task,"mr-2":""},null,8,["task"]),ut("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=t.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ut("span",Rht,Jt(t.task.name),1),typeof Z(r)=="number"?(ht(),Mt("span",zht,Jt(Z(r)>0?Z(r):"< 1")+"ms ",1)):ye("",!0)],8,Dht)])):ye("",!0)}}});function Fht(t){return Object.hasOwnProperty.call(t,"tasks")}function Uy(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const qht={key:1},Hht={inheritAttrs:!1},Bht=oe({...Hht,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=Iht,a=Gi("TaskTree",!0);return ht(),Mt(ue,null,[!t.search||Z(Uy)(t.task.name,t.search)?(ht(),ce(o,hi({key:0},n.$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"])):ye("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(ht(),Mt("div",qht,[(ht(!0),Mt(ue,null,lr(t.task.tasks,u=>(ht(),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))])):ye("",!0)],64)}}}),Wht={h:"full",flex:"~ col"},Uht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},jht={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Ght=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Vht=["op"],Kht={class:"scrolls","flex-auto":"","py-1":""},Xht={"text-red5":""},Yht={"text-yellow5":""},Zht={"text-green5":""},Jht={class:"text-purple5:50"},Qht={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},tdt=ut("div",{op30:""}," No matched test ",-1),edt={inheritAttrs:!1},jy=oe({...edt,__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:n}){const r=t,o=Kt(""),a=Kt(),u=St(()=>o.value.trim()!==""),f=(L,C)=>{let E=!1;for(let z=0;z<L.length;z++){const D=L[z];if(Uy(D.name,C)){E=!0;break}if(Fht(D)&&D.tasks&&(E=f(D.tasks,C),E))break}return E},h=St(()=>o.value.trim()?r.tasks.filter(L=>f([L],o.value)):r.tasks),p=St(()=>u.value?h.value.map(L=>Fa(L.id)).filter(Boolean):[]),g=St(()=>h.value.filter(L=>{var C;return((C=L.result)==null?void 0:C.state)==="fail"})),m=St(()=>h.value.filter(L=>{var C;return((C=L.result)==null?void 0:C.state)==="pass"})),b=St(()=>h.value.filter(L=>L.mode==="skip"||L.mode==="todo")),x=St(()=>h.value.filter(L=>!g.value.includes(L)&&!m.value.includes(L)&&!b.value.includes(L))),S=Xk(x,250),M=L=>{var C;o.value="",L&&((C=a.value)==null||C.focus())},A=St(()=>o.value==="");return(L,C)=>{const E=Zo,z=Bht,D=Oht,G=Zi("tooltip");return ht(),Mt("div",Wht,[ut("div",null,[ut("div",Uht,[Kn(L.$slots,"header",{filteredTests:Z(u)?Z(p):void 0})]),ut("div",jht,[Ght,pn(ut("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":C[0]||(C[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:[C[1]||(C[1]=Vu(j=>M(!1),["esc"])),C[2]||(C[2]=Vu(j=>n("run",Z(u)?Z(p):void 0),["enter"]))]},null,40,Vht),[[x_,o.value]]),pn(Rt(E,{disabled:Z(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=j=>M(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),ut("div",Kht,[t.groupByType?(ht(),Mt(ue,{key:0},[Z(g).length?(ht(),ce(D,{key:0},{summary:Zt(()=>[ut("div",Xht," FAIL ("+Jt(Z(g).length)+") ",1)]),default:Zt(()=>[(ht(!0),Mt(ue,null,lr(Z(g),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),Z(x).length||Z(Ia)==="running"?(ht(),ce(D,{key:1},{summary:Zt(()=>[ut("div",Yht," RUNNING ("+Jt(Z(S).length)+") ",1)]),default:Zt(()=>[(ht(!0),Mt(ue,null,lr(Z(S),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),Z(m).length?(ht(),ce(D,{key:2},{summary:Zt(()=>[ut("div",Zht," PASS ("+Jt(Z(m).length)+") ",1)]),default:Zt(()=>[(ht(!0),Mt(ue,null,lr(Z(m),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),Z(b).length?(ht(),ce(D,{key:3},{summary:Zt(()=>[ut("div",Jht," SKIP ("+Jt(Z(b).length)+") ",1)]),default:Zt(()=>[(ht(!0),Mt(ue,null,lr(Z(b),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0)],64)):(ht(!0),Mt(ue,{key:1},lr(Z(h),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),Z(u)&&Z(h).length===0?(ht(),Mt("div",Qht,[tdt,ut("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:C[4]||(C[4]=j=>M(!0))}," Clear ",32)])):ye("",!0)])])}}}),ndt={key:0,"h-full":""},rdt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},idt={class:"flex text-lg"},odt=oe({__name:"Suites",setup(t){const n=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)&&pc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&We.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=mh,h=Zo,p=jy,g=Zi("tooltip");return Z(Le)?(ht(),Mt("div",ndt,[Rt(p,{tasks:Z(Le).tasks,nested:!0},{header:Zt(()=>[Rt(f,{"mx-1":"",task:Z(Le)},null,8,["task"]),ut("span",rdt,Jt(Z(n)),1),ut("div",idt,[Z(r)?pn((ht(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:u[0]||(u[0]=m=>o())},null,512)),[[g,`Update failed snapshot(s) of ${Z(Le).name}`,void 0,{bottom:!0}]]):ye("",!0),pn(Rt(h,{icon:"i-carbon-play",onClick:u[1]||(u[1]=m=>Z(mT)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ye("",!0)}}}),Ga=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Va=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),yh=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!Ga.value.includes(t)&&!Va.value.includes(t)&&!yh.value.includes(t)));St(()=>yh.value.filter(t=>t.mode==="skip"));const Ov=St(()=>Tn.value.filter(pc));St(()=>yh.value.filter(t=>t.mode==="todo"));const sdt=St(()=>Ia.value==="idle"),yl=St(()=>bh(Tn.value)),Gy=St(()=>yl.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Vy=St(()=>yl.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Ky=St(()=>yl.value.filter(t=>t.mode==="skip"||t.mode==="todo")),ldt=St(()=>Ky.value.filter(t=>t.mode==="skip")),adt=St(()=>Ky.value.filter(t=>t.mode==="todo"));St(()=>Gy.value.length+Vy.value.length);const cdt=St(()=>{const t=bh(yl.value).reduce((n,r)=>{var o;return(o=r.result)!=null&&o.duration&&(n+=r.result.duration),n},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function udt(t){return t=t||[],Array.isArray(t)?t:[t]}function $v(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function bh(t){return udt(t).flatMap(n=>$v(n)?[n]:n.tasks.flatMap(r=>$v(r)?[r]:bh(r)))}const gr=t=>(hm("data-v-6679a536"),t=t(),dm(),t),fdt={"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:""},hdt=gr(()=>ut("div",{"i-carbon-document":""},null,-1)),ddt=gr(()=>ut("div",null,"Files",-1)),pdt={class:"number","data-testid":"num-files"},gdt=gr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),vdt=gr(()=>ut("div",null,"Pass",-1)),mdt={class:"number"},ydt=gr(()=>ut("div",{"i-carbon-close":""},null,-1)),bdt=gr(()=>ut("div",null," Fail ",-1)),wdt={class:"number","text-red5":""},xdt=gr(()=>ut("div",{"i-carbon-compare":""},null,-1)),_dt=gr(()=>ut("div",null," Snapshot Fail ",-1)),Sdt={class:"number","text-red5":""},kdt=gr(()=>ut("div",{"i-carbon-timer":""},null,-1)),Cdt=gr(()=>ut("div",null,"Time",-1)),Tdt={class:"number","data-testid":"run-time"},Ldt=oe({__name:"TestFilesEntry",setup(t){return(n,r)=>(ht(),Mt("div",fdt,[hdt,ddt,ut("div",pdt,Jt(Z(Tn).length),1),Z(Va).length?(ht(),Mt(ue,{key:0},[gdt,vdt,ut("div",mdt,Jt(Z(Va).length),1)],64)):ye("",!0),Z(Ga).length?(ht(),Mt(ue,{key:1},[ydt,bdt,ut("div",wdt,Jt(Z(Ga).length),1)],64)):ye("",!0),Z(Ov).length?(ht(),Mt(ue,{key:2},[xdt,_dt,ut("div",Sdt,Jt(Z(Ov).length),1)],64)):ye("",!0),kdt,Cdt,ut("div",Tdt,Jt(Z(cdt)),1)]))}});const Edt=Xo(Ldt,[["__scopeId","data-v-6679a536"]]),Adt={"p-2":"","text-center":"",flex:""},Mdt={"text-4xl":"","min-w-2em":""},Ndt={"text-md":""},Pdt=oe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ht(),Mt("div",Adt,[ut("div",null,[ut("div",Mdt,[Kn(n.$slots,"body")]),ut("div",Ndt,[Kn(n.$slots,"header")])])]))}}),Odt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},$dt=oe({__name:"TestsEntry",setup(t){const n=St(()=>yl.value.length),r=St(()=>Vy.value.length),o=St(()=>Gy.value.length),a=St(()=>ldt.value.length),u=St(()=>adt.value.length);return St(()=>Z(n)-o.value-r.value),(f,h)=>{const p=Pdt;return ht(),Mt("div",Odt,[Rt(p,{"text-green5":"","data-testid":"pass-entry"},{header:Zt(()=>[fn(" Pass ")]),body:Zt(()=>[fn(Jt(Z(r)),1)]),_:1}),Rt(p,{class:ge({"text-red5":Z(o),op50:!Z(o)}),"data-testid":"fail-entry"},{header:Zt(()=>[fn(" Fail ")]),body:Zt(()=>[fn(Jt(Z(o)),1)]),_:1},8,["class"]),Z(a)?(ht(),ce(p,{key:0,op50:"","data-testid":"skipped-entry"},{header:Zt(()=>[fn(" Skip ")]),body:Zt(()=>[fn(Jt(Z(a)),1)]),_:1})):ye("",!0),Z(u)?(ht(),ce(p,{key:1,op50:"","data-testid":"todo-entry"},{header:Zt(()=>[fn(" Todo ")]),body:Zt(()=>[fn(Jt(Z(u)),1)]),_:1})):ye("",!0),Rt(p,{tail:!0,"data-testid":"total-entry"},{header:Zt(()=>[fn(" Total ")]),body:Zt(()=>[fn(Jt(Z(n)),1)]),_:1})])}}}),Ddt={},Rdt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},zdt={"aria-labelledby":"tests",m:"y-4 x-2"};function Idt(t,n){const r=$dt,o=Edt;return ht(),Mt("div",Rdt,[ut("section",zdt,[Rt(r)]),Rt(o)])}const Fdt=Xo(Ddt,[["render",Idt]]),qdt={},Hdt={h:"full",flex:"~ col"},Bdt=ut("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ut("div",{class:"i-carbon-dashboard"}),ut("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Wdt={class:"scrolls","flex-auto":"","py-1":""};function Udt(t,n){const r=Fdt;return ht(),Mt("div",Hdt,[Bdt,ut("div",Wdt,[Rt(r)])])}const jdt=Xo(qdt,[["render",Udt]]),Gdt="/__vitest__/favicon.svg",Ka=Kt(),Ws=Kt(!0);function Vdt(){const t=Mr.value;if(t&&t.length>0){const n=Fa(t);n?(Ka.value=n,Ws.value=!1):aC(()=>We.state.getFiles(),()=>{Ka.value=Fa(t),Ws.value=!1})}return Ws}function Dv(t){Ws.value=t,t&&(Ka.value=void 0,Mr.value="")}const Kdt=ut("img",{"w-6":"","h-6":"",src:Gdt,alt:"Vitest logo"},null,-1),Xdt=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Ydt={class:"flex text-lg"},Zdt=oe({__name:"Navigation",setup(t){const n=St(()=>Tn.value&&pc(Tn.value)),r=()=>We.rpc.updateSnapshot();function o(u){Mr.value=u.id,Ka.value=Fa(u.id),Dv(!1)}const a=St(()=>mc.value?"light":"dark");return(u,f)=>{const h=Zo,p=jy,g=Zi("tooltip");return ht(),ce(p,{border:"r base",tasks:Z(Tn),"on-item-click":o,"group-by-type":!0,onRun:Z(Jg)},{header:Zt(({filteredTests:m})=>[Kdt,Xdt,ut("div",Ydt,[pn(Rt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>Z(Dv)(!0))},null,512),[[Im,!Z(Ws)],[g,"Dashboard",void 0,{bottom:!0}]]),Z(n)?pn((ht(),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}]]):ye("",!0),pn(Rt(h,{disabled:(m==null?void 0:m.length)===0,icon:"i-carbon-play",onClick:b=>Z(Jg)(m)},null,8,["disabled","onClick"]),[[g,m?m.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=>Z(wst)())},null,512),[[g,`Toggle to ${Z(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),Jdt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Qdt=oe({__name:"ProgressBar",setup(t){const{width:n}=ZC(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":sdt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>Va.value.length),u=St(()=>Ga.value.length),f=St(()=>{const m=Z(o);return m>0?n.value*a.value/m:0}),h=St(()=>{const m=Z(o);return m>0?n.value*u.value/m:0}),p=St(()=>Z(o)-u.value-a.value),g=St(()=>{const m=Z(o);return m>0?n.value*p.value/m:0});return(m,b)=>(ht(),Mt("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(Z(r))},[ut("div",Jdt,[ut("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ge(Z(r)),style:kn(`width: ${Z(h)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ge(Z(r)),style:kn(`left: ${Z(h)}px; width: ${Z(f)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ge(Z(r)),style:kn(`left: ${Z(f)+Z(h)}px; width: ${Z(g)}px;`)}," \xA0 ",6)])],2))}});const tpt=Xo(Qdt,[["__scopeId","data-v-f967c1fe"]]),Rv={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,n)=>(t[n.id]=n)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,n){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=n},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,n){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===n?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,n),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=n,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[n])},onSplitterDblClick(t,n){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===n?o.max:o.min,a!==n&&(r+=o.min),o)),this.panes[n].size-=r,this.$emit("pane-maximize",this.panes[n]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,n){this.$emit("pane-click",this.indexedPanes[n])},getCurrentMouseDrag(t){const n=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-n.left,y:o-n.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const n=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=n-t),t*100/n},calculatePanesSize(t){const n=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(n),nextPanesSize:this.sumNextPanesSize(n),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[n,n+1],h=this.panes[f[0]]||null,p=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,m=p.max<100&&u<=100-(p.max+this.sumNextPanesSize(n+1));if(g||m){g?(h.size=h.max,p.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-p.max-r.prevPanesSize-this.sumNextPanesSize(n+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(r,u);if(!b)return;({sums:r,panesToResize:f}=b),h=this.panes[f[0]]||null,p=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),p!==null&&(p.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(t,n){const r=this.touch.activeSplitter,o=[r,r+1];return n<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):n>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(n=>n.index<t&&n.size>n.min)||{}},findNextExpandedPane(t){return this.panes.find(n=>n.index>t+1&&n.size>n.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const n=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!n&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,n,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),n.parentNode.insertBefore(a,n)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let n=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!n&&this.firstSplitter?this.addSplitter(n,r,!0):n&&this.addSplitter(n,r),n++)})},requestUpdate({target:t,...n}){const r=this.indexedPanes[t._.uid];Object.entries(n).forEach(([o,a])=>r[o]=a)},onPaneAdd(t){let n=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&n++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(n,0,{id:t._.uid,index:n,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[n]}),this.$emit("pane-add",{index:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const n=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(n,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:n}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(n=>n.givenSize!==null||n.min||n.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},equalize(){const t=100/this.panesCount;let n=0;const r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),n-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,r,o)},initialPanesSizing(){let t=100;const n=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&n.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,n,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:n}={}){let r=100/this.panesCount,o=0;const a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,n,r){let o;t>0?o=t/(this.panesCount-n.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!n.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((n,r)=>{n.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return fl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},ept=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},npt={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 rpt(t,n,r,o,a,u){return ht(),Mt("div",{class:"splitpanes__pane",onClick:n[0]||(n[0]=f=>u.onPaneClick(f,t._.uid)),style:kn(t.style)},[Kn(t.$slots,"default")],4)}const fa=ept(npt,[["render",rpt]]),ipt={"h-screen":"","w-screen":"",overflow:"hidden"},opt=oe({__name:"index",setup(t){const n=Vdt(),r=hr([33,67]),o=hr([33,67]),a=Dg(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=Dg(h=>{h.forEach((p,g)=>{o[g]=p.size})},0),f=()=>{const h=window.innerWidth,p=Math.min(h/3,300);r[0]=100*p/h,r[1]=100-r[0],o[0]=100*p/(h-p),o[1]=100-o[0]};return(h,p)=>{const g=tpt,m=Zdt,b=jdt,x=odt,S=Aht,M=wT;return ht(),Mt(ue,null,[Rt(g),ut("div",ipt,[Rt(Z(Rv),{class:"pt-4px",onResized:Z(a),onReady:f},{default:Zt(()=>[Rt(Z(fa),{size:r[0]},{default:Zt(()=>[Rt(m)]),_:1},8,["size"]),Rt(Z(fa),{size:r[1]},{default:Zt(()=>[Rt(Gf,null,{default:Zt(()=>[Z(n)?(ht(),ce(b,{key:"summary"})):(ht(),ce(Z(Rv),{key:"detail",onResized:Z(u)},{default:Zt(()=>[Rt(Z(fa),{size:o[0]},{default:Zt(()=>[Rt(x)]),_:1},8,["size"]),Rt(Z(fa),{size:o[1]},{default:Zt(()=>[Rt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Rt(M)],64)}}}),spt=[{name:"index",path:"/",component:opt,props:!0}];const lpt={tooltip:Hk};b0.options.instantMove=!0;b0.options.distance=10;const apt=()=>MS({history:G_("/__vitest__/"),routes:spt}),cpt=[apt],wh=Fm(E_);cpt.forEach(t=>{wh.use(t())});Object.entries(lpt).forEach(([t,n])=>{wh.directive(t,n)});wh.mount("#app");
|