@vitest/browser 0.25.2 → 0.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var Zw=Object.defineProperty;var Jw=(t,n,r)=>n in t?Zw(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var Ai=(t,n,r)=>(Jw(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 wf(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 Qw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tx=wf(Qw);function Iv(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)?rx(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 ex=/;(?![^(]*\))/g,nx=/:(.+)/;function rx(t){const n={};return t.split(ex).forEach(r=>{if(r){const o=r.split(nx);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===Bv||!Wt(t.toString))?JSON.stringify(t,Fv,2):String(t),Fv=(t,n)=>n&&n.__v_isRef?Fv(t,n.value):Lo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:qv(n)?{[`Set(${n.size})`]:[...n.values()]}:xe(n)&&!Ht(n)&&!Wv(n)?String(n):n,me={},To=[],Vn=()=>{},ix=()=>!1,ox=/^on[^a-z]/,Ka=t=>ox.test(t),xf=t=>t.startsWith("onUpdate:"),Xe=Object.assign,_f=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},sx=Object.prototype.hasOwnProperty,Yt=(t,n)=>sx.call(t,n),Ht=Array.isArray,Lo=t=>Xa(t)==="[object Map]",qv=t=>Xa(t)==="[object Set]",Wt=t=>typeof t=="function",Ue=t=>typeof t=="string",Sf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",Hv=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),Bv=Object.prototype.toString,Xa=t=>Bv.call(t),lx=t=>Xa(t).slice(8,-1),Wv=t=>Xa(t)==="[object Object]",kf=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fa=wf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ya=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},ax=/-(\w)/g,fr=Ya(t=>t.replace(ax,(n,r)=>r?r.toUpperCase():"")),cx=/\B([A-Z])/g,Yi=Ya(t=>t.replace(cx,"-$1").toLowerCase()),Za=Ya(t=>t.charAt(0).toUpperCase()+t.slice(1)),pu=Ya(t=>t?`on${Za(t)}`:""),Us=(t,n)=>!Object.is(t,n),ha=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},ka=(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 bp;const ux=()=>bp||(bp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class fx{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 hx(t,n=Mn){n&&n.active&&n.effects.push(t)}function dx(){return Mn}function px(t){Mn&&Mn.cleanups.push(t)}const Cf=t=>{const n=new Set(t);return n.w=0,n.n=0,n},Uv=t=>(t.w&di)>0,jv=t=>(t.n&di)>0,gx=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=di},vx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];Uv(a)&&!jv(a)?a.delete(t):n[r++]=a,a.w&=~di,a.n&=~di}n.length=r}},Pu=new WeakMap;let Ds=0,di=1;const Ou=30;let jn;const Bi=Symbol(""),$u=Symbol("");class Tf{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,hx(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<=Ou?gx(this):wp(this),this.fn()}finally{Ds<=Ou&&vx(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&&(wp(this),this.onStop&&this.onStop(),this.active=!1)}}function wp(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 Gv=[];function Vo(){Gv.push(ci),ci=!1}function Ko(){const t=Gv.pop();ci=t===void 0?!0:t}function Pn(t,n,r){if(ci&&jn){let o=Pu.get(t);o||Pu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Cf()),Vv(a)}}function Vv(t,n){let r=!1;Ds<=Ou?jv(t)||(t.n|=di,r=!Uv(t)):r=!t.has(jn),r&&(t.add(jn),jn.deps.push(t))}function $r(t,n,r,o,a,u){const f=Pu.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)?kf(r)&&h.push(f.get("length")):(h.push(f.get(Bi)),Lo(t)&&h.push(f.get($u)));break;case"delete":Ht(t)||(h.push(f.get(Bi)),Lo(t)&&h.push(f.get($u)));break;case"set":Lo(t)&&h.push(f.get(Bi));break}if(h.length===1)h[0]&&Du(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);Du(Cf(p))}}function Du(t,n){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&xp(o);for(const o of r)o.computed||xp(o)}function xp(t,n){(t!==jn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const mx=wf("__proto__,__v_isRef,__isVue"),Kv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Sf)),yx=Lf(),bx=Lf(!1,!0),wx=Lf(!0),_p=xx();function xx(){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 Lf(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?zx:Qv:n?Jv:Zv).get(o))return o;const f=Ht(o);if(!t&&f&&Yt(_p,a))return Reflect.get(_p,a,u);const h=Reflect.get(o,a,u);return(Sf(a)?Kv.has(a):mx(a))||(t||Pn(o,"get",a),n)?h:Ie(h)?f&&kf(a)?h:h.value:xe(h)?t?tm(h):hr(h):h}}const _x=Xv(),Sx=Xv(!0);function Xv(t=!1){return function(r,o,a,u){let f=r[o];if(Do(f)&&Ie(f)&&!Ie(a))return!1;if(!t&&(!Ca(a)&&!Do(a)&&(f=le(f),a=le(a)),!Ht(r)&&Ie(f)&&!Ie(a)))return f.value=a,!0;const h=Ht(r)&&kf(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 kx(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 Cx(t,n){const r=Reflect.has(t,n);return(!Sf(n)||!Kv.has(n))&&Pn(t,"has",n),r}function Tx(t){return Pn(t,"iterate",Ht(t)?"length":Bi),Reflect.ownKeys(t)}const Yv={get:yx,set:_x,deleteProperty:kx,has:Cx,ownKeys:Tx},Lx={get:wx,set(t,n){return!0},deleteProperty(t,n){return!0}},Ex=Xe({},Yv,{get:bx,set:Sx}),Ef=t=>t,Ja=t=>Reflect.getPrototypeOf(t);function Ql(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}=Ja(a),h=o?Ef:r?Pf: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 ta(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 ea(t,n=!1){return t=t.__v_raw,!n&&Pn(le(t),"iterate",Bi),Reflect.get(t,"size",t)}function Sp(t){t=le(t);const n=le(this);return Ja(n).has.call(n,t)||(n.add(t),$r(n,"add",t,t)),this}function kp(t,n){n=le(n);const r=le(this),{has:o,get:a}=Ja(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 Cp(t){const n=le(this),{has:r,get:o}=Ja(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 Tp(){const t=le(this),n=t.size!==0,r=t.clear();return n&&$r(t,"clear",void 0,void 0),r}function na(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?Ef:t?Pf:Gs;return!t&&Pn(h,"iterate",Bi),f.forEach((g,m)=>o.call(a,p(g),p(m),u))}}function ra(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?Ef:n?Pf:Gs;return!n&&Pn(u,"iterate",p?$u: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 Ax(){const t={get(u){return Ql(this,u)},get size(){return ea(this)},has:ta,add:Sp,set:kp,delete:Cp,clear:Tp,forEach:na(!1,!1)},n={get(u){return Ql(this,u,!1,!0)},get size(){return ea(this)},has:ta,add:Sp,set:kp,delete:Cp,clear:Tp,forEach:na(!1,!0)},r={get(u){return Ql(this,u,!0)},get size(){return ea(this,!0)},has(u){return ta.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:na(!0,!1)},o={get(u){return Ql(this,u,!0,!0)},get size(){return ea(this,!0)},has(u){return ta.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:na(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ra(u,!1,!1),r[u]=ra(u,!0,!1),n[u]=ra(u,!1,!0),o[u]=ra(u,!0,!0)}),[t,r,n,o]}const[Mx,Nx,Px,Ox]=Ax();function Af(t,n){const r=n?t?Ox:Px:t?Nx:Mx;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 $x={get:Af(!1,!1)},Dx={get:Af(!1,!0)},Rx={get:Af(!0,!1)},Zv=new WeakMap,Jv=new WeakMap,Qv=new WeakMap,zx=new WeakMap;function Ix(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fx(t){return t.__v_skip||!Object.isExtensible(t)?0:Ix(lx(t))}function hr(t){return Do(t)?t:Mf(t,!1,Yv,$x,Zv)}function qx(t){return Mf(t,!1,Ex,Dx,Jv)}function tm(t){return Mf(t,!0,Lx,Rx,Qv)}function Mf(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=Fx(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 Ca(t){return!!(t&&t.__v_isShallow)}function em(t){return Eo(t)||Do(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function Nf(t){return ka(t,"__v_skip",!0),t}const Gs=t=>xe(t)?hr(t):t,Pf=t=>xe(t)?tm(t):t;function nm(t){ci&&jn&&(t=le(t),Vv(t.dep||(t.dep=Cf())))}function rm(t,n){t=le(t),t.dep&&Du(t.dep)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return im(t,!1)}function ll(t){return im(t,!0)}function im(t,n){return Ie(t)?t:new Hx(t,n)}class Hx{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 nm(this),this._value}set value(n){const r=this.__v_isShallow||Ca(n)||Do(n);n=r?n:le(n),Us(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Gs(n),rm(this))}}function Z(t){return Ie(t)?t.value:t}const Bx={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 om(t){return Eo(t)?t:new Proxy(t,Bx)}function Wx(t){const n=Ht(t)?new Array(t.length):{};for(const r in t)n[r]=Of(t,r);return n}class Ux{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 Of(t,n,r){const o=t[n];return Ie(o)?o:new Ux(t,n,r)}var sm;class jx{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[sm]=!1,this._dirty=!0,this.effect=new Tf(n,()=>{this._dirty||(this._dirty=!0,rm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return nm(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}sm="__v_isReadonly";function Gx(t,n,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Vn):(o=t.get,a=t.set),new jx(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&&Hv(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}}Vx(t,r,a,o)}function Vx(t,n,r,o=!0){console.error(t)}let Vs=!1,Ru=!1;const tn=[];let sr=0;const Ao=[];let Er=null,Ri=0;const lm=Promise.resolve();let $f=null;function cl(t){const n=$f||lm;return t?n.then(this?t.bind(this):t):n}function Kx(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 Df(t){(!tn.length||!tn.includes(t,Vs&&t.allowRecurse?sr+1:sr))&&(t.id==null?tn.push(t):tn.splice(Kx(t.id),0,t),am())}function am(){!Vs&&!Ru&&(Ru=!0,$f=lm.then(fm))}function Xx(t){const n=tn.indexOf(t);n>sr&&tn.splice(n,1)}function cm(t){Ht(t)?Ao.push(...t):(!Er||!Er.includes(t,t.allowRecurse?Ri+1:Ri))&&Ao.push(t),am()}function Lp(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 um(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,Yx=(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 fm(t){Ru=!1,Vs=!0,tn.sort(Yx);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,um(),Vs=!1,$f=null,(tn.length||Ao.length)&&fm()}}function Zx(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=pu(n)]||o[h=pu(fr(n))];!p&&u&&(p=o[h=pu(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 hm(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=hm(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 Qa(t,n){return!t||!Ka(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,tc=null;function Ta(t){const n=en;return en=t,tc=t&&t.type.__scopeId||null,n}function dm(t){tc=t}function pm(){tc=null}const Jx=t=>Zt;function Zt(t,n=en,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&Fp(-1);const u=Ta(n);let f;try{f=t(...a)}finally{Ta(u),o._d&&Fp(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function gu(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=Ta(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:t1(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(xf)&&(C=e1(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,Ta(E),L}function Qx(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 t1=t=>{let n;for(const r in t)(r==="class"||r==="style"||Ka(r))&&((n||(n={}))[r]=t[r]);return n},e1=(t,n)=>{const r={};for(const o in t)(!xf(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function n1(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?Ep(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]&&!Qa(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Ep(o,f,g):!0:!!f;return!1}function Ep(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]&&!Qa(r,u))return!0}return!1}function Rf({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const r1=t=>t.__isSuspense,i1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?s1(n,r,o,a,u,f,h,p,g):l1(t,n,r,o,a,f,h,p,g)},hydrate:a1,create:zf,normalize:c1},o1=i1;function Xs(t,n){const r=t.props&&t.props[n];Wt(r)&&r()}function s1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:m}}=p,b=m("div"),x=t.suspense=zf(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 l1(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 zf(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||cm(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;Uu(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),Rf(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 a1(t,n,r,o,a,u,f,h,p){const g=n.suspense=zf(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 c1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=Ap(o?r.default:r),t.ssFallback=o?Ap(r.fallback):Rt(Cn)}function Ap(t){let n;if(Wt(t)){const r=Ro&&t._c;r&&(t._d=!1,ht()),t=t(),r&&(t._d=!0,n=zn,Pm())}return Ht(t)&&(t=Qx(t)),t=Un(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function u1(t,n){n&&n.pendingBranch?Ht(t)?n.effects.push(...t):n.effects.push(t):cm(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,Rf(o,a))}function da(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 If(t,n){return Ff(t,null,n)}const Mp={};function Fe(t,n,r){return Ff(t,n,r)}function Ff(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=Ca(t)):Eo(t)?(p=()=>t,o=!0):Ht(t)?(m=!0,g=t.some(C=>Eo(C)||Ca(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?[]:Mp;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===Mp?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=()=>Df(M));const L=new Tf(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&&_f(h.scope.effects,L)}}function f1(t,n,r){const o=this.proxy,a=Ue(t)?t.includes(".")?gm(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=Ff(a,u.bind(o),r);return f?zo(f):Wi(),h}function gm(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(qv(t)||Lo(t))t.forEach(r=>{Ii(r,n)});else if(Wv(t))for(const r in t)Ii(t[r],n);return t}function h1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ul(()=>{t.isMounted=!0}),wm(()=>{t.isUnmounting=!0}),t}const Rn=[Function,Array],d1={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=ic(),o=h1();let a;return()=>{const u=n.default&&ym(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 vu(f);const g=Np(f);if(!g)return vu(f);const m=zu(g,h,o,r);Iu(g,m);const b=r.subTree,x=b&&Np(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=zu(x,h,o,r);if(Iu(x,A),p==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update()},vu(f);p==="in-out"&&g.type!==Cn&&(A.delayLeave=(L,C,E)=>{const z=mm(o,x);z[String(x.key)]=x,L._leaveCb=()=>{C(),L._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=E})}return f}}},vm=d1;function mm(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 zu(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=mm(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 zu(Q,n,r,o)}};return it}function vu(t){if(ec(t))return t=pi(t),t.children=null,t}function Np(t){return ec(t)?t.children?t.children[0]:void 0:t}function Iu(t,n){t.shapeFlag&6&&t.component?Iu(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 ym(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(ym(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,ec=t=>t.type.__isKeepAlive;function p1(t,n){bm(t,"a",n)}function g1(t,n){bm(t,"da",n)}function bm(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(nc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)ec(a.parent.vnode)&&v1(o,n,r,a),a=a.parent}}function v1(t,n,r,o){const a=nc(n,t,o,!0);qf(()=>{_f(o[n],a)},r)}function nc(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")&&nc(t,(...o)=>n(...o),r),m1=Ir("bm"),ul=Ir("m"),y1=Ir("bu"),b1=Ir("u"),wm=Ir("bum"),qf=Ir("um"),w1=Ir("sp"),x1=Ir("rtg"),_1=Ir("rtc");function S1(t,n=Be){nc("ec",t,n)}function pn(t,n){const r=en;if(r===null)return t;const o=oc(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 xm="components",k1="directives";function Gi(t,n){return _m(xm,t,!0,n)||t}const C1=Symbol();function Zi(t){return _m(k1,t)}function _m(t,n,r=!0,o=!1){const a=en||Be;if(a){const u=a.type;if(t===xm){const h=Z1(u,!1);if(h&&(h===n||h===fr(n)||h===Za(fr(n))))return u}const f=Pp(a[t]||u[t],n)||Pp(a.appContext[t],n);return!f&&o?u:f}}function Pp(t,n){return t&&(t[n]||t[fr(n)]||t[Za(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&&Sm(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 Sm(t){return t.some(n=>Ys(n)?!(n.type===Cn||n.type===ue&&!Sm(n.children)):!0)?t:null}const Fu=t=>t?Dm(t)?oc(t)||t.proxy:Fu(t.parent):null,La=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=>Fu(t.parent),$root:t=>Fu(t.root),$emit:t=>t.emit,$options:t=>Hf(t),$forceUpdate:t=>t.f||(t.f=()=>Df(t.update)),$nextTick:t=>t.n||(t.n=cl.bind(t.proxy)),$watch:t=>f1.bind(t)}),T1={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];qu&&(f[n]=0)}}const m=La[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(La,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 qu=!0;function L1(t){const n=Hf(t),r=t.proxy,o=t.ctx;qu=!1,n.beforeCreate&&Op(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&&E1(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(qu=!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)km(h[W],o,r,W);if(p){const W=Wt(p)?p.call(r):p;Reflect.ownKeys(W).forEach(et=>{da(et,W[et])})}m&&Op(m,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(m1,b),H(ul,x),H(y1,S),H(b1,M),H(p1,A),H(g1,L),H(S1,Q),H(_1,j),H(x1,it),H(wm,E),H(qf,D),H(w1,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 E1(t,n,r=Vn,o=!1){Ht(t)&&(t=Hu(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 Op(t,n,r){In(Ht(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function km(t,n,r,o){const a=o.includes(".")?gm(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=>km(u,n,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):n[t.handler];Wt(u)&&Fe(a,u,t)}}function Hf(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=>Ea(p,g,f,!0)),Ea(p,n,f)),xe(n)&&u.set(n,p),p}function Ea(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Ea(t,u,r,!0),a&&a.forEach(f=>Ea(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=A1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const A1={data:$p,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:N1,provide:$p,inject:M1};function $p(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 M1(t,n){return $i(Hu(t),Hu(n))}function Hu(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 N1(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 P1(t,n,r,o=!1){const a={},u={};ka(u,rc,1),t.propsDefaults=Object.create(null),Cm(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:qx(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function O1(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(Qa(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]=Bu(p,h,M,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{Cm(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]=Bu(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 Cm(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(fa(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:Qa(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]=Bu(a,p,b,g[b],t,!Yt(g,b))}}return f}function Bu(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 Tm(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]=Tm(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]);Dp(b)&&(f[b]=me)}else if(u)for(const m in u){const b=fr(m);if(Dp(b)){const x=u[m],S=f[b]=Ht(x)||Wt(x)?{type:x}:x;if(S){const M=Ip(Boolean,S.type),A=Ip(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 Dp(t){return t[0]!=="$"}function Rp(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function zp(t,n){return Rp(t)===Rp(n)}function Ip(t,n){return Ht(n)?n.findIndex(r=>zp(r,t)):Wt(n)&&zp(n,t)?0:-1}const Lm=t=>t[0]==="_"||t==="$stable",Bf=t=>Ht(t)?t.map(Un):[Un(t)],$1=(t,n,r)=>{if(n._n)return n;const o=Zt((...a)=>Bf(n(...a)),r);return o._c=!1,o},Em=(t,n,r)=>{const o=t._ctx;for(const a in t){if(Lm(a))continue;const u=t[a];if(Wt(u))n[a]=$1(a,u,o);else if(u!=null){const f=Bf(u);n[a]=()=>f}}},Am=(t,n)=>{const r=Bf(n);t.slots.default=()=>r},D1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),ka(n,"_",r)):Em(n,t.slots={})}else t.slots={},n&&Am(t,n);ka(t.slots,rc,1)},R1=(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,Em(n,a)),f=n}else n&&(Am(t,n),f={default:1});if(u)for(const h in a)!Lm(h)&&!(h in f)&&delete a[h]};function Mm(){return{app:null,config:{isNativeTag:ix,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let z1=0;function I1(t,n){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Mm(),f=new Set;let h=!1;const p=u.app={_uid:z1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:e_,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,oc(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 Wu(t,n,r,o,a=!1){if(Ht(t)){t.forEach((x,S)=>Wu(x,n&&(Ht(n)?n[S]:n),r,o,a));return}if(Is(o)&&!a)return;const u=o.shapeFlag&4?oc(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)&&_f(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=u1;function F1(t){return q1(t)}function q1(t,n){const r=ux();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 Wf:L(P,F,Y,nt);break;case Cn:C(P,F,Y,nt);break;case mu: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&&Wu($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"&&!fa(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)!fa(gt)&&!(gt in nt)&&u(P,gt,Y[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(fa(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)&&Nm(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=V1(P,nt,ot);if(ec(P)&&(gt.ctx.renderer=Ct),K1(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(n1(P,F,Y))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Y);return}else nt.next=F,Xx(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&&ha(Nt),(Qt=$t.props&&$t.props.onVnodeBeforeUpdate)&&ir(Qt,zt,$t,jt),Ni(P,!0);const se=gu(P),Xt=P.subTree;P.subTree=se,A(Xt,se,b(Xt.el),V(Xt),P,ot,pt),$t.el=se.el,te===null&&Rf(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&&ha(zt),!Qt&&($t=Ot&&Ot.onVnodeBeforeMount)&&ir($t,te,F),Ni(P,!0),Nt&&Lt){const se=()=>{P.subTree=gu(P),Lt(Nt,P.subTree,P,ot,null)};Qt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&se()):se()}else{const se=P.subTree=gu(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 Tf(gt,()=>Df(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,O1(P,F.props,nt,Y),R1(P,F.children,Y),Vo(),Lp(),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?H1(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===mu){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&&Wu(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===mu){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&&ha(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),Lp(),um(),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:I1(st,de)}}function Ni({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Nm(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||Nm(f,h))}}function H1(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 B1=t=>t.__isTeleport,ue=Symbol(void 0),Wf=Symbol(void 0),Cn=Symbol(void 0),mu=Symbol(void 0),Fs=[];let zn=null;function ht(t=!1){Fs.push(zn=t?null:[])}function Pm(){Fs.pop(),zn=Fs[Fs.length-1]||null}let Ro=1;function Fp(t){Ro+=t}function Om(t){return t.dynamicChildren=Ro>0?zn||To:null,Pm(),Ro>0&&zn&&zn.push(t),t}function Mt(t,n,r,o,a,u){return Om(ut(t,n,r,o,a,u,!0))}function ce(t,n,r,o,a){return Om(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 rc="__vInternal",$m=({key:t})=>t!=null?t:null,pa=({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&&$m(n),ref:n&&pa(n),scopeId:tc,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?(Uf(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=W1;function W1(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===C1)&&(t=Cn),Ys(t)){const h=pi(t,n,!0);return r&&Uf(h,r),Ro>0&&!u&&zn&&(h.shapeFlag&6?zn[zn.indexOf(t)]=h:zn.push(h)),h.patchFlag|=-2,h}if(J1(t)&&(t=t.__vccOpts),n){n=U1(n);let{class:h,style:p}=n;h&&!Ue(h)&&(n.class=ge(h)),xe(p)&&(em(p)&&!Ht(p)&&(p=Xe({},p)),n.style=kn(p))}const f=Ue(t)?1:r1(t)?128:B1(t)?64:xe(t)?4:Wt(t)?2:0;return ut(t,n,r,o,a,f,u,!0)}function U1(t){return t?em(t)||rc 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&&$m(h),ref:n&&n.ref?r&&a?Ht(a)?a.concat(pa(n)):[a,pa(n)]:pa(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(Wf,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(Wf,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function Uf(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),Uf(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(rc 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(Ka(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 j1=Mm();let G1=0;function V1(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||j1,u={uid:G1++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new fx(!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:Tm(o,a),emitsOptions:hm(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=Zx.bind(null,u),t.ce&&t.ce(u),u}let Be=null;const ic=()=>Be||en,zo=t=>{Be=t,t.scope.on()},Wi=()=>{Be&&Be.scope.off(),Be=null};function Dm(t){return t.vnode.shapeFlag&4}let Zs=!1;function K1(t,n=!1){Zs=n;const{props:r,children:o}=t.vnode,a=Dm(t);P1(t,r,a,n),D1(t,o);const u=a?X1(t,n):void 0;return Zs=!1,u}function X1(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=Nf(new Proxy(t.ctx,T1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?zm(t):null;zo(t),Vo();const u=ui(o,t,0,[t.props,a]);if(Ko(),Wi(),Hv(u)){if(u.then(Wi,Wi),n)return u.then(f=>{Uu(t,f,n)}).catch(f=>{al(f,t,0)});t.asyncDep=u}else Uu(t,u,n)}else Rm(t,n)}function Uu(t,n,r){Wt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:xe(n)&&(t.setupState=om(n)),Rm(t,r)}let qp;function Rm(t,n,r){const o=t.type;if(!t.render){if(!n&&qp&&!o.render){const a=o.template||Hf(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=qp(a,g)}}t.render=o.render||Vn}zo(t),Vo(),L1(t),Ko(),Wi()}function Y1(t){return new Proxy(t.attrs,{get(n,r){return Pn(t,"get","$attrs"),n[r]}})}function zm(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=Y1(t))},slots:t.slots,emit:t.emit,expose:n}}function oc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(om(Nf(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in La)return La[r](t)}}))}function Z1(t,n=!0){return Wt(t)?t.displayName||t.name:t.name||n&&t.__name}function J1(t){return Wt(t)&&"__vccOpts"in t}const St=(t,n)=>Gx(t,n,Zs);function Q1(){return t_().attrs}function t_(){const t=ic();return t.setupContext||(t.setupContext=zm(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 e_="3.2.41",n_="http://www.w3.org/2000/svg",zi=typeof document<"u"?document:null,Hp=zi&&zi.createElement("template"),r_={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(n_,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{Hp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Hp.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 i_(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 o_(t,n,r){const o=t.style,a=Ue(r);if(r&&!a){for(const u in r)ju(o,u,r[u]);if(n&&!Ue(n))for(const u in n)r[u]==null&&ju(o,u,"")}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Bp=/\s*!important$/;function ju(t,n,r){if(Ht(r))r.forEach(o=>ju(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=s_(t,n);Bp.test(r)?t.setProperty(Yi(o),r.replace(Bp,""),"important"):t[o]=r}}const Wp=["Webkit","Moz","ms"],yu={};function s_(t,n){const r=yu[n];if(r)return r;let o=fr(n);if(o!=="filter"&&o in t)return yu[n]=o;o=Za(o);for(let a=0;a<Wp.length;a++){const u=Wp[a]+o;if(u in t)return yu[n]=u}return n}const Up="http://www.w3.org/1999/xlink";function l_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Up,n.slice(6,n.length)):t.setAttributeNS(Up,n,r);else{const u=tx(n);r==null||u&&!Iv(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function a_(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=Iv(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 c_(t,n,r,o){t.removeEventListener(n,r,o)}function u_(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]=f_(n);if(o){const g=u[n]=p_(o,a);ko(t,h,g,p)}else f&&(c_(t,h,f,p),u[n]=void 0)}}const jp=/(?:Once|Passive|Capture)$/;function f_(t){let n;if(jp.test(t)){n={};let o;for(;o=t.match(jp);)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 bu=0;const h_=Promise.resolve(),d_=()=>bu||(h_.then(()=>bu=0),bu=Date.now());function p_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;In(g_(o,r.value),n,5,[o])};return r.value=t,r.attached=d_(),r}function g_(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 Gp=/^on[a-z]/,v_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?i_(t,o,a):n==="style"?o_(t,r,o):Ka(n)?xf(n)||u_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):m_(t,n,o,a))?a_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),l_(t,n,o,a))};function m_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Gp.test(n)&&Wt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Gp.test(n)&&Ue(r)?!1:n in t}const ti="transition",Ms="animation",jf=(t,{slots:n})=>fl(vm,y_(t),n);jf.displayName="Transition";const Im={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};jf.props=Xe({},vm.props,Im);const Pi=(t,n=[])=>{Ht(t)?t.forEach(r=>r(...n)):t&&t(...n)},Vp=t=>t?Ht(t)?t.some(n=>n.length>1):t.length>1:!1;function y_(t){const n={};for(const ft in t)ft in Im||(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=b_(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]),Kp(()=>{Oi(U,ft?p:u),ei(U,ft?m:h),Vp(k)||Xp(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),__(),ei(ft,x),Kp(()=>{!ft._isLeaving||(Oi(ft,b),ei(ft,S),Vp(D)||Xp(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 b_(t){if(t==null)return null;if(xe(t))return[wu(t.enter),wu(t.leave)];{const n=wu(t);return[n,n]}}function wu(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 Kp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let w_=0;function Xp(t,n,r,o){const a=t._endId=++w_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=x_(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 x_(t,n){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),a=o(ti+"Delay"),u=o(ti+"Duration"),f=Yp(a,u),h=o(Ms+"Delay"),p=o(Ms+"Duration"),g=Yp(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 Yp(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Zp(r)+Zp(t[o])))}function Zp(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function __(){return document.body.offsetHeight}const Jp=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ht(n)?r=>ha(n,r):n};function S_(t){t.target.composing=!0}function Qp(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const k_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=Jp(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",S_),ko(t,"compositionend",Qp),ko(t,"change",Qp))},mounted(t,{value:n}){t.value=n==null?"":n},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=Jp(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)}},C_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gu=(t,n)=>r=>{if(!("key"in r))return;const o=Yi(r.key);if(n.some(a=>a===o||C_[a]===o))return t(r)},Fm={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 T_=Xe({patchProp:v_},r_);let tg;function L_(){return tg||(tg=F1(T_))}const qm=(...t)=>{const n=L_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=E_(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 E_(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},A_={};function M_(t,n){const r=Gi("RouterView");return ht(),ce(r)}const N_=Xo(A_,[["render",M_]]);/*!
|
|
2
|
+
* vue-router v4.1.6
|
|
3
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const Co=typeof window<"u";function P_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const he=Object.assign;function xu(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,O_=/\/$/,$_=t=>t.replace(O_,"");function _u(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=I_(o!=null?o:n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function D_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function eg(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function R_(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])&&Hm(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 Hm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!z_(t[r],n[r]))return!1;return!0}function z_(t,n){return Xn(t)?ng(t,n):Xn(n)?ng(n,t):t===n}function ng(t,n){return Xn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function I_(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 F_(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),$_(t)}const q_=/^[^#]+#/;function H_(t,n){return t.replace(q_,"#")+n}function B_(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 sc=()=>({left:window.pageXOffset,top:window.pageYOffset});function W_(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=B_(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 rg(t,n){return(history.state?history.state.position-n:-1)+t}const Vu=new Map;function U_(t,n){Vu.set(t,n)}function j_(t){const n=Vu.get(t);return Vu.delete(t),n}let G_=()=>location.protocol+"//"+location.host;function Bm(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),eg(p,"")}return eg(r,t)+o+a}function V_(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=Bm(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:sc()}),"")}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 ig(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?sc():null}}function K_(t){const{history:n,location:r}=window,o={value:Bm(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:G_()+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,ig(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:sc()});u(m.current,m,!0);const b=he({},ig(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 X_(t){t=F_(t);const n=K_(t),r=V_(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:H_.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 Y_(t){return typeof t=="string"||t&&typeof t=="object"}function Wm(t){return typeof t=="string"||typeof t=="symbol"}const ni={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Um=Symbol("");var og;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(og||(og={}));function Fo(t,n){return he(new Error,{type:t,[Um]:!0},n)}function Tr(t,n){return t instanceof Error&&Um in t&&(n==null||!!(t.type&n))}const sg="[^/]+?",Z_={sensitive:!1,strict:!1,start:!0,end:!0},J_=/[.+*?^${}()[\]/\\]/g;function Q_(t,n){const r=he({},Z_,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(J_,"\\$&"),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||sg;if(E!==sg){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 tS(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 eS(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=tS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(lg(o))return 1;if(lg(a))return-1}return a.length-o.length}function lg(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const nS={type:0,value:""},rS=/[a-zA-Z0-9_]/;function iS(t){if(!t)return[[]];if(t==="/")return[[nS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,p,g="",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:rS.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 oS(t,n,r){const o=Q_(iS(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 sS(t,n){const r=[],o=new Map;n=ug({strict:!1,end:!0,sensitive:!1},n);function a(m){return o.get(m)}function u(m,b,x){const S=!x,M=lS(m);M.aliasOf=x&&x.record;const A=ug(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=oS(z,b,A),x?x.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),S&&m.name&&!cg(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(Wm(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&&eS(m,r[b])>=0&&(m.record.path!==r[b].record.path||!jm(m,r[b]));)b++;r.splice(b,0,m),m.record.name&&!cg(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(ag(b.params,x.keys.filter(E=>!E.optional).map(E=>E.name)),m.params&&ag(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:cS(L)}}return t.forEach(m=>u(m)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function ag(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function lS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:aS(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 aS(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 cg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function cS(t){return t.reduce((n,r)=>he(n,r.meta),{})}function ug(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function jm(t,n){return n.children.some(r=>r===t||jm(t,r))}const Gm=/#/g,uS=/&/g,fS=/\//g,hS=/=/g,dS=/\?/g,Vm=/\+/g,pS=/%5B/g,gS=/%5D/g,Km=/%5E/g,vS=/%60/g,Xm=/%7B/g,mS=/%7C/g,Ym=/%7D/g,yS=/%20/g;function Gf(t){return encodeURI(""+t).replace(mS,"|").replace(pS,"[").replace(gS,"]")}function bS(t){return Gf(t).replace(Xm,"{").replace(Ym,"}").replace(Km,"^")}function Ku(t){return Gf(t).replace(Vm,"%2B").replace(yS,"+").replace(Gm,"%23").replace(uS,"%26").replace(vS,"`").replace(Xm,"{").replace(Ym,"}").replace(Km,"^")}function wS(t){return Ku(t).replace(hS,"%3D")}function xS(t){return Gf(t).replace(Gm,"%23").replace(dS,"%3F")}function _S(t){return t==null?"":xS(t).replace(fS,"%2F")}function Aa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function SS(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(Vm," "),f=u.indexOf("="),h=Aa(f<0?u:u.slice(0,f)),p=f<0?null:Aa(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 fg(t){let n="";for(let r in t){const o=t[r];if(r=wS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(Xn(o)?o.map(u=>u&&Ku(u)):[o&&Ku(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function kS(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 CS=Symbol(""),hg=Symbol(""),Vf=Symbol(""),Zm=Symbol(""),Xu=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):Y_(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 Su(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(TS(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=P_(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 TS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dg(t){const n=fi(Vf),r=fi(Zm),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=pg(p[g-2]);return g>1&&pg(m)===S&&b[b.length-1].path!==S?b.findIndex(Io.bind(null,p[g-2])):x}),u=St(()=>a.value>-1&&MS(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&Hm(r.params,o.value.params));function h(p={}){return AS(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 LS=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:dg,setup(t,{slots:n}){const r=hr(dg(t)),{options:o}=fi(Vf),a=St(()=>({[gg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[gg(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)}}}),ES=LS;function AS(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 MS(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 pg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const gg=(t,n,r)=>t!=null?t:n!=null?n:r,NS=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(Xu),a=St(()=>t.route||o.value),u=fi(hg,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]);da(hg,St(()=>f.value+1)),da(CS,h),da(Xu,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 vg(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 vg(r.default,{Component:L,route:g})||L}}});function vg(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const PS=NS;function OS(t){const n=sS(t.routes,t),r=t.parseQuery||SS,o=t.stringifyQuery||fg,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=xu.bind(null,J=>""+J),b=xu.bind(null,_S),x=xu.bind(null,Aa);function S(J,tt){let V,st;return Wm(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=_u(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:Aa(P.hash),redirectedFrom:void 0,href:Y})}let V;if("path"in J)V=he({},J,{path:_u(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=D_(o,he({},J,{hash:bS(Ct),path:st.path})),Lt=a.createHref(de);return he({fullPath:de,hash:Ct,query:o===fg?kS(J.query):J.query||{}},st,{redirectedFrom:void 0,href:Lt})}function E(J){return typeof J=="string"?_u(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&&R_(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]=$S(J,tt);V=Su(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=Su(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=Su(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&&U_(rg(de.fullPath,V.delta),sc()),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&&j_(rg(J.fullPath,0))||(st||!V)&&history.state&&history.state.scroll||null;return cl().then(()=>Ct(J,tt,de)).then(Lt=>Lt&&W_(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",ES),J.component("RouterView",PS),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(Vf,tt),J.provide(Zm,hr(V)),J.provide(Xu,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 $S(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 Kf(t){return t==="y"?"height":"width"}function mg(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=Kf(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 DS=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}=mg({...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}=mg({...h,placement:m})),x=-1;continue}}return{x:p,y:g,placement:m,strategy:a,middlewareData:b}};function RS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Jm(t){return typeof t!="number"?RS(t):{top:t,right:t,bottom:t,left:t}}function Yu(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function lc(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=Jm(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=Yu(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 zS=Math.min,Di=Math.max;function Zu(t,n,r){return Di(t,zS(n,r))}const IS=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=Jm(o),m={x:a,y:u},b=Fr(f),x=hl(b),S=Kf(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=Zu(j,Q,it);return{data:{[x]:dt,centerOffset:Q-dt}}}}),FS={left:"right",right:"left",bottom:"top",top:"bottom"};function Ma(t){return t.replace(/left|right|bottom|top/g,n=>FS[n])}function Qm(t,n){const r=No(t)==="start",o=hl(t),a=Kf(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Ma(u)),{main:u,cross:Ma(u)}}const qS={start:"end",end:"start"};function Ju(t){return t.replace(/start|end/g,n=>qS[n])}const HS=["top","right","bottom","left"],BS=HS.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function WS(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?Ju(a)!==a:!1):!0)}const US=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=BS,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const C=WS(S,A,M),E=await lc(n,L),z=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,D=C[z],{main:G,cross:j}=Qm(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 jS(t){const n=Ma(t);return[Ju(t),n,Ju(n)]}const GS=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?[Ma(h)]:jS(h)),C=[h,...L],E=await lc(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}=Qm(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 VS(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 KS=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=VS({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function XS(t){return t==="x"?"y":"x"}const YS=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 lc(n,p),b=hl(Fr(a)),x=XS(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=Zu(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=Zu(E,M,z)}const A=h.fn({...n,[b]:S,[x]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},ZS=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 lc(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 Xf(t){return(t==null?void 0:t.toString())==="[object Window]"}function vi(t){if(t==null)return window;if(!Xf(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function ac(t){return vi(t).getComputedStyle(t)}function Dr(t){return Xf(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rr(t){return t instanceof vi(t).HTMLElement}function Na(t){return t instanceof vi(t).Element}function JS(t){return t instanceof vi(t).Node}function t0(t){const n=vi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function cc(t){const{overflow:n,overflowX:r,overflowY:o}=ac(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function QS(t){return["table","td","th"].includes(Dr(t))}function e0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=ac(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 yg=Math.min,Bs=Math.max,Pa=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&&Pa(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Pa(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((JS(t)?t.ownerDocument:t.document)||window.document).documentElement}function uc(t){return Xf(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function n0(t){return qo(mi(t)).left+uc(t).scrollLeft}function tk(t){const n=qo(t);return Pa(n.width)!==t.offsetWidth||Pa(n.height)!==t.offsetHeight}function ek(t,n,r){const o=Rr(n),a=mi(n),u=qo(t,o&&tk(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Dr(n)!=="body"||cc(a))&&(f=uc(n)),Rr(n)){const p=qo(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=n0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function fc(t){return Dr(t)==="html"?t:t.assignedSlot||t.parentNode||(t0(t)?t.host:null)||mi(t)}function bg(t){return!Rr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function nk(t){let n=fc(t);for(;Rr(n)&&!["html","body"].includes(Dr(n));){if(e0(n))return n;n=n.parentNode}return null}function Qu(t){const n=vi(t);let r=bg(t);for(;r&&QS(r)&&getComputedStyle(r).position==="static";)r=bg(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&getComputedStyle(r).position==="static"&&!e0(r))?n:r||nk(t)||n}function wg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function rk(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"||cc(u))&&(f=uc(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 ik(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 ok(t){var n;const r=mi(t),o=uc(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+n0(t);const p=-o.scrollTop;return ac(a||r).direction==="rtl"&&(h+=Bs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function r0(t){return["html","body","#document"].includes(Dr(t))?t.ownerDocument.body:Rr(t)&&cc(t)?t:r0(fc(t))}function Oa(t,n){var r;n===void 0&&(n=[]);const o=r0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=vi(o),f=a?[u].concat(u.visualViewport||[],cc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(Oa(fc(f)))}function sk(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&t0(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function lk(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 xg(t,n){return n==="viewport"?Yu(ik(t)):Na(n)?lk(n):Yu(ok(mi(t)))}function ak(t){const n=Oa(fc(t)),o=["absolute","fixed"].includes(ac(t).position)&&Rr(t)?Qu(t):t;return Na(o)?n.filter(a=>Na(a)&&sk(a,o)&&Dr(a)!=="body"):[]}function ck(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?ak(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const m=xg(n,g);return p.top=Bs(m.top,p.top),p.right=yg(m.right,p.right),p.bottom=yg(m.bottom,p.bottom),p.left=Bs(m.left,p.left),p},xg(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 uk={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:ek(n,Qu(r),o),floating:{...wg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>rk(t),getOffsetParent:t=>{let{element:n}=t;return Qu(n)},isElement:t=>Na(t),getDocumentElement:t=>{let{element:n}=t;return mi(n)},getClippingClientRect:t=>ck(t),getDimensions:t=>{let{element:n}=t;return wg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},fk=(t,n,r)=>DS(t,n,{platform:uk,...r});var hk=Object.defineProperty,dk=Object.defineProperties,pk=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertySymbols,gk=Object.prototype.hasOwnProperty,vk=Object.prototype.propertyIsEnumerable,Sg=(t,n,r)=>n in t?hk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Nr=(t,n)=>{for(var r in n||(n={}))gk.call(n,r)&&Sg(t,r,n[r]);if(_g)for(var r of _g(n))vk.call(n,r)&&Sg(t,r,n[r]);return t},dl=(t,n)=>dk(t,pk(n));function i0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?i0(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 mk(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 o0=!1;typeof window<"u"&&typeof navigator<"u"&&(o0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const s0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),kg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Cg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function yk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function ku(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const cr=[];let So=null,tf=function(){};typeof window<"u"&&(tf=window.Element);function fe(t){return function(n){return Ho(n.theme,t)}}var l0=()=>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=>s0.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,tf,Boolean],default:fe("container")},boundary:{type:[String,tf],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(KS({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(US({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(YS({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(GS({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(IS({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(ZS({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 fk(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 ku(),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 ku(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,yk(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 ku(),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,kg,this.triggers,this.showTriggers,r),n([this.$_popperNode],kg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,Cg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],Cg,this.popperTriggers,this.popperHideTriggers,o),t([...Oa(this.$_referenceNode),...Oa(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"&&(o0?(document.addEventListener("touchstart",Tg,Bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",wk,Bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Tg,!0),window.addEventListener("click",bk,!0)),window.addEventListener("resize",xk));function Tg(t){for(let n=0;n<cr.length;n++){const r=cr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function bk(t){a0(t)}function wk(t){a0(t,!0)}function a0(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 xk(t){for(let n=0;n<cr.length;n++)cr[n].$_computePosition(t)}function _k(){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 ga;function ef(){ef.init||(ef.init=!0,ga=_k()!==-1)}var hc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ef(),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",ga&&this.$el.appendChild(t),t.data="about:blank",ga||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&&(!ga&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Sk=Jx();dm("data-v-b329ee4c");const kk={class:"resize-observer",tabindex:"-1"};pm();const Ck=Sk((t,n,r,o,a,u)=>(ht(),ce("div",kk)));hc.render=Ck;hc.__scopeId="data-v-b329ee4c";hc.__file="src/components/ResizeObserver.vue";var c0={computed:{themeClass(){return mk(this.theme)}}},Yf=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const Tk=oe({name:"VPopperContent",components:{ResizeObserver:hc},mixins:[c0],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}}}),Lk=["id","aria-hidden","tabindex","data-popper-placement"],Ek={ref:"inner",class:"v-popper__inner"},Ak=ut("div",{class:"v-popper__arrow-outer"},null,-1),Mk=ut("div",{class:"v-popper__arrow-inner"},null,-1),Nk=[Ak,Mk];function Pk(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]=Gu(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ut("div",Ek,[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)})},Nk,4)],4)],46,Lk)}var u0=Yf(Tk,[["render",Pk]]),f0={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 Ok=oe({name:"VPopperWrapper",components:{Popper:l0(),PopperContent:u0},mixins:[f0,c0],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 $k(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 Zf=Yf(Ok,[["render",$k]]);const Lg=oe(dl(Nr({},Zf),{name:"VDropdown",vPopperTheme:"dropdown"})),Eg=oe(dl(Nr({},Zf),{name:"VMenu",vPopperTheme:"menu"})),Ag=oe(dl(Nr({},Zf),{name:"VTooltip",vPopperTheme:"tooltip"})),Dk=oe({name:"VTooltipDirective",components:{Popper:l0(),PopperContent:u0},mixins:[f0],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}}}),Rk=["innerHTML"],zk=["textContent"];function Ik(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,Rk)):(ht(),Mt("div",{key:1,textContent:Jt(t.finalContent)},null,8,zk))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Fk=Yf(Dk,[["render",Ik]]);const h0="v-popper--has-tooltip";function qk(t,n){let r=t.placement;if(!r&&n)for(const o of s0)n[o]&&(r=o);return r||(r=Ho(t.theme||"tooltip","placement")),r}function d0(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=qk(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Cu,Qs,Hk=0;function Bk(){if(Cu)return;Qs=Kt([]),Cu=qm({name:"VTooltipDirectiveApp",setup(){return{directives:Qs}},render(){return this.directives.map(n=>fl(Fk,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),Cu.mount(t)}function p0(t,n,r){Bk();const o=Kt(d0(t,n,r)),a=Kt(!1),u={id:Hk++,options:o,shown:a};return Qs.value.push(u),t.classList&&t.classList.add(h0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Jf(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(h0)}function Mg(t,{value:n,oldValue:r,modifiers:o}){const a=d0(t,n,o);if(!a.content||Ho(a.theme||"tooltip","disabled"))Jf(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=p0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var g0={beforeMount:Mg,updated:Mg,beforeUnmount(t){Jf(t)}};function Ng(t){t.addEventListener("click",v0),t.addEventListener("touchstart",m0,Bo?{passive:!0}:!1)}function Pg(t){t.removeEventListener("click",v0),t.removeEventListener("touchstart",m0),t.removeEventListener("touchend",y0),t.removeEventListener("touchcancel",b0)}function v0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function m0(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",y0),n.addEventListener("touchcancel",b0)}}function y0(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 b0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var Wk={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&Ng(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?Ng(t):Pg(t))},beforeUnmount(t){Pg(t)}};const Uk=g0;function jk(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,i0(Ui,n),t.directive("tooltip",g0),t.directive("close-popper",Wk),t.component("v-tooltip",Ag),t.component("VTooltip",Ag),t.component("v-dropdown",Lg),t.component("VDropdown",Lg),t.component("v-menu",Eg),t.component("VMenu",Eg))}const w0={version:"2.0.0-y.0",install:jk,options:Ui};var Og;const x0=typeof window<"u",Gk=t=>typeof t<"u",_0=t=>typeof t=="function",Vk=t=>typeof t=="string",va=()=>{};x0&&((Og=window==null?void 0:window.navigator)==null?void 0:Og.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Vi(t){return typeof t=="function"?t():Z(t)}function Qf(t,n){function r(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return r}const S0=t=>t();function k0(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 Kk(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 Xk(t=S0){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 Yk(t){return t}function th(t){return dx()?(px(t),!0):!1}function $g(t,n=200,r={}){return Qf(k0(n,r),t)}function Zk(t,n=200,r=!1,o=!0){return Qf(Kk(n,r,o),t)}function Jk(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Kt(t.value),u=Zk(()=>{a.value=t.value},n,r,o);return Fe(t,()=>u()),a}function Qk(t){return typeof t=="function"?St(t):Kt(t)}function eh(t,n=!0){ic()?ul(t):n?t():cl(t)}function tC(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 Dg=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,nC=Object.prototype.propertyIsEnumerable,rC=(t,n)=>{var r={};for(var o in t)eC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Dg)for(var o of Dg(t))n.indexOf(o)<0&&nC.call(t,o)&&(r[o]=t[o]);return r};function C0(t,n,r={}){const o=r,{eventFilter:a=S0}=o,u=rC(o,["eventFilter"]);return Fe(t,Qf(a,n),u)}var iC=Object.defineProperty,oC=Object.defineProperties,sC=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,T0=Object.prototype.hasOwnProperty,L0=Object.prototype.propertyIsEnumerable,Rg=(t,n,r)=>n in t?iC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,lC=(t,n)=>{for(var r in n||(n={}))T0.call(n,r)&&Rg(t,r,n[r]);if($a)for(var r of $a(n))L0.call(n,r)&&Rg(t,r,n[r]);return t},aC=(t,n)=>oC(t,sC(n)),cC=(t,n)=>{var r={};for(var o in t)T0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&$a)for(var o of $a(t))n.indexOf(o)<0&&L0.call(t,o)&&(r[o]=t[o]);return r};function uC(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=cC(o,["debounce","maxWait"]);return C0(t,n,aC(lC({},f),{eventFilter:k0(a,{maxWait:u})}))}function fC(t,n,r){const o=Fe(t,(...a)=>(cl(()=>o()),n(...a)),r)}var hC=Object.defineProperty,dC=Object.defineProperties,pC=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,E0=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable,zg=(t,n,r)=>n in t?hC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,gC=(t,n)=>{for(var r in n||(n={}))E0.call(n,r)&&zg(t,r,n[r]);if(Da)for(var r of Da(n))A0.call(n,r)&&zg(t,r,n[r]);return t},vC=(t,n)=>dC(t,pC(n)),mC=(t,n)=>{var r={};for(var o in t)E0.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&&A0.call(t,o)&&(r[o]=t[o]);return r};function M0(t,n,r={}){const o=r,{eventFilter:a}=o,u=mC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:p,isActive:g}=Xk(a);return{stop:C0(t,n,vC(gC({},u),{eventFilter:f})),pause:h,resume:p,isActive:g}}function yC(t,n,r){let o;Ie(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=va}=o,h=Kt(!a),p=Kt(n);let g=0;return If(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 N0(t){var n;const r=Vi(t);return(n=r==null?void 0:r.$el)!=null?n:r}const dr=x0?window:void 0;function Wo(...t){let n,r,o,a;if(Vk(t[0])?([r,o,a]=t,n=dr):[n,r,o,a]=t,!n)return va;let u=va;const f=Fe(()=>N0(n),p=>{u(),p&&(p.addEventListener(r,o,a),u=()=>{p.removeEventListener(r,o,a),u=va})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return th(h),h}const bC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0;function wC(...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=bC(n);return Wo(a,u,g=>{h(g)&&r(g)},f)}function P0(t,n=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),eh(o,n),r}function xC(t,n={}){const{window:r=dr}=n,o=P0(()=>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(Qk(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return If(h),th(()=>f()),u}function _C(t){return JSON.parse(JSON.stringify(t))}const nf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rf="__vueuse_ssr_handlers__";nf[rf]=nf[rf]||{};const SC=nf[rf];function O0(t,n){return SC[t]||n}function kC(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 CC=Object.defineProperty,Ig=Object.getOwnPropertySymbols,TC=Object.prototype.hasOwnProperty,LC=Object.prototype.propertyIsEnumerable,Fg=(t,n,r)=>n in t?CC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,qg=(t,n)=>{for(var r in n||(n={}))TC.call(n,r)&&Fg(t,r,n[r]);if(Ig)for(var r of Ig(n))LC.call(n,r)&&Fg(t,r,n[r]);return t};const EC={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 AC(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=O0("getDefaultStorage",()=>{var it;return(it=dr)==null?void 0:it.localStorage})()}catch(it){S(it)}if(!r)return M;const A=Vi(n),L=kC(A),C=(a=o.serializer)!=null?a:EC[L],{pause:E,resume:z}=M0(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 _0(g)?g(dt,A):L==="object"&&!Array.isArray(dt)?qg(qg({},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 $0(t){return xC("(prefers-color-scheme: dark)",t)}var MC=Object.defineProperty,Hg=Object.getOwnPropertySymbols,NC=Object.prototype.hasOwnProperty,PC=Object.prototype.propertyIsEnumerable,Bg=(t,n,r)=>n in t?MC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,OC=(t,n)=>{for(var r in n||(n={}))NC.call(n,r)&&Bg(t,r,n[r]);if(Hg)for(var r of Hg(n))PC.call(n,r)&&Bg(t,r,n[r]);return t};function $C(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=OC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=$0({window:a}),x=St(()=>b.value?"dark":"light"),S=p||(f==null?Kt(o):AC(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=O0("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"}),eh(()=>C(M.value)),M}var DC=Object.defineProperty,RC=Object.defineProperties,zC=Object.getOwnPropertyDescriptors,Wg=Object.getOwnPropertySymbols,IC=Object.prototype.hasOwnProperty,FC=Object.prototype.propertyIsEnumerable,Ug=(t,n,r)=>n in t?DC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,qC=(t,n)=>{for(var r in n||(n={}))IC.call(n,r)&&Ug(t,r,n[r]);if(Wg)for(var r of Wg(n))FC.call(n,r)&&Ug(t,r,n[r]);return t},HC=(t,n)=>RC(t,zC(n));function BC(t={}){const{valueDark:n="dark",valueLight:r="",window:o=dr}=t,a=$C(HC(qC({},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=$0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var jg=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,UC=Object.prototype.propertyIsEnumerable,jC=(t,n)=>{var r={};for(var o in t)WC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&jg)for(var o of jg(t))n.indexOf(o)<0&&UC.call(t,o)&&(r[o]=t[o]);return r};function GC(t,n,r={}){const o=r,{window:a=dr}=o,u=jC(o,["window"]);let f;const h=P0(()=>a&&"ResizeObserver"in a),p=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>N0(t),b=>{p(),h.value&&a&&b&&(f=new ResizeObserver(n),f.observe(b,u))},{immediate:!0,flush:"post"}),m=()=>{p(),g()};return th(m),{isSupported:h,stop:m}}var Gg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Gg||(Gg={}));var VC=Object.defineProperty,Vg=Object.getOwnPropertySymbols,KC=Object.prototype.hasOwnProperty,XC=Object.prototype.propertyIsEnumerable,Kg=(t,n,r)=>n in t?VC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,YC=(t,n)=>{for(var r in n||(n={}))KC.call(n,r)&&Kg(t,r,n[r]);if(Vg)for(var r of Vg(n))XC.call(n,r)&&Kg(t,r,n[r]);return t};const ZC={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]};YC({linear:Yk},ZC);function JC(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}=M0(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 QC(t,n,r,o={}){var a,u,f;const{clone:h=!1,passive:p=!1,eventName:g,deep:m=!1,defaultValue:b}=o,x=ic(),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?_0(h)?h(C):_C(C):C,L=()=>Gk(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 tT(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(),eh(p),Wo("resize",p,{passive:!0}),a&&Wo("orientationchange",p,{passive:!0}),{width:f,height:h}}const eT=6e4;function nT(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=m=>m,deserialize:f=m=>m,timeout:h=eT}=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=iT();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 rT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function iT(t=21){let n="",r=t;for(;r--;)n+=rT[Math.random()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:oT,stringify:sT}=JSON,{keys:lT}=Object,tl=String,D0="string",Xg={},Ra="object",R0=(t,n)=>n,aT=t=>t instanceof tl?tl(t):t,cT=(t,n)=>typeof n===D0?new tl(n):n,z0=(t,n,r,o)=>{const a=[];for(let u=lT(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===Ra&&!n.has(m)?(n.add(m),r[p]=Xg,a.push({k:p,a:[t,n,m,o]})):r[p]=o.call(r,p,m)}else r[p]!==Xg&&(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,z0.apply(null,p))}return r},Yg=(t,n,r)=>{const o=tl(n.push(r)-1);return t.set(r,o),o},uT=(t,n)=>{const r=oT(t,cT).map(aT),o=r[0],a=n||R0,u=typeof o===Ra&&o?z0(r,new Set,o,a):o;return a.call({"":u},"",u)},fT=(t,n,r)=>{const o=n&&typeof n===Ra?(m,b)=>m===""||-1<n.indexOf(m)?b:void 0:n||R0,a=new Map,u=[],f=[];let h=+Yg(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=sT(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 Ra:if(x===null)return x;case D0:return a.get(x)||Yg(a,u,x)}return x}},hT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class dT{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(hT(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 I0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function of(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function F0(t){return I0(t).flatMap(n=>of(n)?[n]:n.tasks.flatMap(r=>of(r)?[r]:F0(r)))}function nh(t=[]){return I0(t).flatMap(n=>of(n)?[n]:[n,...nh(n.tasks)])}function dc(t){return F0(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 pT(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 gT(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 dT,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:fT,deserialize:uT};g.rpc=nT(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 q0=JC("hash-params",{initialValue:{file:"",view:null}}),Mr=Of(q0,"file"),or=Of(q0,"view"),vT=location.port,mT=[location.hostname,vT].filter(Boolean).join(":"),yT=`${location.protocol==="https:"?"wss:":"ws:"}//${mT}/__vitest_api__`,za=Kt("idle"),We=gT(yT,{reactive:hr,handlers:{onTaskUpdate(){za.value="running"},onFinished(){za.value="idle"}}}),sf=ll({}),qi=Kt("CONNECTING"),Tn=St(()=>We.state.getFiles()),Le=St(()=>Tn.value.find(t=>t.id===Mr.value)),H0=St(()=>nh(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Ia=t=>Tn.value.find(n=>n.id===t),bT=St(()=>qi.value==="OPEN"),Tu=St(()=>qi.value==="CONNECTING");St(()=>qi.value==="CLOSED");function Zg(t=We.state.getFiles()){return B0(t)}function B0(t){return t.forEach(n=>{delete n.result,nh(n).forEach(r=>delete r.result)}),We.rpc.rerun(t.map(n=>n.filepath))}function wT(){if(Le.value)return B0([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=>sf.value=n)}),t.addEventListener("close",()=>{setTimeout(()=>{qi.value==="CONNECTING"&&(qi.value="CLOSED")},1e3)})},{immediate:!0});const xT={"text-2xl":""},_T=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),ST=oe({__name:"ConnectionOverlay",setup(t){return(n,r)=>Z(bT)?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(Tu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ge(Z(Tu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",xT,Jt(Z(Tu)?"Connecting...":"Disconnected"),1),_T],2)]))}});var Ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},W0={},Or={};const kT="\xC1",CT="\xE1",TT="\u0102",LT="\u0103",ET="\u223E",AT="\u223F",MT="\u223E\u0333",NT="\xC2",PT="\xE2",OT="\xB4",$T="\u0410",DT="\u0430",RT="\xC6",zT="\xE6",IT="\u2061",FT="\u{1D504}",qT="\u{1D51E}",HT="\xC0",BT="\xE0",WT="\u2135",UT="\u2135",jT="\u0391",GT="\u03B1",VT="\u0100",KT="\u0101",XT="\u2A3F",YT="&",ZT="&",JT="\u2A55",QT="\u2A53",tL="\u2227",eL="\u2A5C",nL="\u2A58",rL="\u2A5A",iL="\u2220",oL="\u29A4",sL="\u2220",lL="\u29A8",aL="\u29A9",cL="\u29AA",uL="\u29AB",fL="\u29AC",hL="\u29AD",dL="\u29AE",pL="\u29AF",gL="\u2221",vL="\u221F",mL="\u22BE",yL="\u299D",bL="\u2222",wL="\xC5",xL="\u237C",_L="\u0104",SL="\u0105",kL="\u{1D538}",CL="\u{1D552}",TL="\u2A6F",LL="\u2248",EL="\u2A70",AL="\u224A",ML="\u224B",NL="'",PL="\u2061",OL="\u2248",$L="\u224A",DL="\xC5",RL="\xE5",zL="\u{1D49C}",IL="\u{1D4B6}",FL="\u2254",qL="*",HL="\u2248",BL="\u224D",WL="\xC3",UL="\xE3",jL="\xC4",GL="\xE4",VL="\u2233",KL="\u2A11",XL="\u224C",YL="\u03F6",ZL="\u2035",JL="\u223D",QL="\u22CD",tE="\u2216",eE="\u2AE7",nE="\u22BD",rE="\u2305",iE="\u2306",oE="\u2305",sE="\u23B5",lE="\u23B6",aE="\u224C",cE="\u0411",uE="\u0431",fE="\u201E",hE="\u2235",dE="\u2235",pE="\u2235",gE="\u29B0",vE="\u03F6",mE="\u212C",yE="\u212C",bE="\u0392",wE="\u03B2",xE="\u2136",_E="\u226C",SE="\u{1D505}",kE="\u{1D51F}",CE="\u22C2",TE="\u25EF",LE="\u22C3",EE="\u2A00",AE="\u2A01",ME="\u2A02",NE="\u2A06",PE="\u2605",OE="\u25BD",$E="\u25B3",DE="\u2A04",RE="\u22C1",zE="\u22C0",IE="\u290D",FE="\u29EB",qE="\u25AA",HE="\u25B4",BE="\u25BE",WE="\u25C2",UE="\u25B8",jE="\u2423",GE="\u2592",VE="\u2591",KE="\u2593",XE="\u2588",YE="=\u20E5",ZE="\u2261\u20E5",JE="\u2AED",QE="\u2310",tA="\u{1D539}",eA="\u{1D553}",nA="\u22A5",rA="\u22A5",iA="\u22C8",oA="\u29C9",sA="\u2510",lA="\u2555",aA="\u2556",cA="\u2557",uA="\u250C",fA="\u2552",hA="\u2553",dA="\u2554",pA="\u2500",gA="\u2550",vA="\u252C",mA="\u2564",yA="\u2565",bA="\u2566",wA="\u2534",xA="\u2567",_A="\u2568",SA="\u2569",kA="\u229F",CA="\u229E",TA="\u22A0",LA="\u2518",EA="\u255B",AA="\u255C",MA="\u255D",NA="\u2514",PA="\u2558",OA="\u2559",$A="\u255A",DA="\u2502",RA="\u2551",zA="\u253C",IA="\u256A",FA="\u256B",qA="\u256C",HA="\u2524",BA="\u2561",WA="\u2562",UA="\u2563",jA="\u251C",GA="\u255E",VA="\u255F",KA="\u2560",XA="\u2035",YA="\u02D8",ZA="\u02D8",JA="\xA6",QA="\u{1D4B7}",tM="\u212C",eM="\u204F",nM="\u223D",rM="\u22CD",iM="\u29C5",oM="\\",sM="\u27C8",lM="\u2022",aM="\u2022",cM="\u224E",uM="\u2AAE",fM="\u224F",hM="\u224E",dM="\u224F",pM="\u0106",gM="\u0107",vM="\u2A44",mM="\u2A49",yM="\u2A4B",bM="\u2229",wM="\u22D2",xM="\u2A47",_M="\u2A40",SM="\u2145",kM="\u2229\uFE00",CM="\u2041",TM="\u02C7",LM="\u212D",EM="\u2A4D",AM="\u010C",MM="\u010D",NM="\xC7",PM="\xE7",OM="\u0108",$M="\u0109",DM="\u2230",RM="\u2A4C",zM="\u2A50",IM="\u010A",FM="\u010B",qM="\xB8",HM="\xB8",BM="\u29B2",WM="\xA2",UM="\xB7",jM="\xB7",GM="\u{1D520}",VM="\u212D",KM="\u0427",XM="\u0447",YM="\u2713",ZM="\u2713",JM="\u03A7",QM="\u03C7",tN="\u02C6",eN="\u2257",nN="\u21BA",rN="\u21BB",iN="\u229B",oN="\u229A",sN="\u229D",lN="\u2299",aN="\xAE",cN="\u24C8",uN="\u2296",fN="\u2295",hN="\u2297",dN="\u25CB",pN="\u29C3",gN="\u2257",vN="\u2A10",mN="\u2AEF",yN="\u29C2",bN="\u2232",wN="\u201D",xN="\u2019",_N="\u2663",SN="\u2663",kN=":",CN="\u2237",TN="\u2A74",LN="\u2254",EN="\u2254",AN=",",MN="@",NN="\u2201",PN="\u2218",ON="\u2201",$N="\u2102",DN="\u2245",RN="\u2A6D",zN="\u2261",IN="\u222E",FN="\u222F",qN="\u222E",HN="\u{1D554}",BN="\u2102",WN="\u2210",UN="\u2210",jN="\xA9",GN="\xA9",VN="\u2117",KN="\u2233",XN="\u21B5",YN="\u2717",ZN="\u2A2F",JN="\u{1D49E}",QN="\u{1D4B8}",tP="\u2ACF",eP="\u2AD1",nP="\u2AD0",rP="\u2AD2",iP="\u22EF",oP="\u2938",sP="\u2935",lP="\u22DE",aP="\u22DF",cP="\u21B6",uP="\u293D",fP="\u2A48",hP="\u2A46",dP="\u224D",pP="\u222A",gP="\u22D3",vP="\u2A4A",mP="\u228D",yP="\u2A45",bP="\u222A\uFE00",wP="\u21B7",xP="\u293C",_P="\u22DE",SP="\u22DF",kP="\u22CE",CP="\u22CF",TP="\xA4",LP="\u21B6",EP="\u21B7",AP="\u22CE",MP="\u22CF",NP="\u2232",PP="\u2231",OP="\u232D",$P="\u2020",DP="\u2021",RP="\u2138",zP="\u2193",IP="\u21A1",FP="\u21D3",qP="\u2010",HP="\u2AE4",BP="\u22A3",WP="\u290F",UP="\u02DD",jP="\u010E",GP="\u010F",VP="\u0414",KP="\u0434",XP="\u2021",YP="\u21CA",ZP="\u2145",JP="\u2146",QP="\u2911",tO="\u2A77",eO="\xB0",nO="\u2207",rO="\u0394",iO="\u03B4",oO="\u29B1",sO="\u297F",lO="\u{1D507}",aO="\u{1D521}",cO="\u2965",uO="\u21C3",fO="\u21C2",hO="\xB4",dO="\u02D9",pO="\u02DD",gO="`",vO="\u02DC",mO="\u22C4",yO="\u22C4",bO="\u22C4",wO="\u2666",xO="\u2666",_O="\xA8",SO="\u2146",kO="\u03DD",CO="\u22F2",TO="\xF7",LO="\xF7",EO="\u22C7",AO="\u22C7",MO="\u0402",NO="\u0452",PO="\u231E",OO="\u230D",$O="$",DO="\u{1D53B}",RO="\u{1D555}",zO="\xA8",IO="\u02D9",FO="\u20DC",qO="\u2250",HO="\u2251",BO="\u2250",WO="\u2238",UO="\u2214",jO="\u22A1",GO="\u2306",VO="\u222F",KO="\xA8",XO="\u21D3",YO="\u21D0",ZO="\u21D4",JO="\u2AE4",QO="\u27F8",t$="\u27FA",e$="\u27F9",n$="\u21D2",r$="\u22A8",i$="\u21D1",o$="\u21D5",s$="\u2225",l$="\u2913",a$="\u2193",c$="\u2193",u$="\u21D3",f$="\u21F5",h$="\u0311",d$="\u21CA",p$="\u21C3",g$="\u21C2",v$="\u2950",m$="\u295E",y$="\u2956",b$="\u21BD",w$="\u295F",x$="\u2957",_$="\u21C1",S$="\u21A7",k$="\u22A4",C$="\u2910",T$="\u231F",L$="\u230C",E$="\u{1D49F}",A$="\u{1D4B9}",M$="\u0405",N$="\u0455",P$="\u29F6",O$="\u0110",$$="\u0111",D$="\u22F1",R$="\u25BF",z$="\u25BE",I$="\u21F5",F$="\u296F",q$="\u29A6",H$="\u040F",B$="\u045F",W$="\u27FF",U$="\xC9",j$="\xE9",G$="\u2A6E",V$="\u011A",K$="\u011B",X$="\xCA",Y$="\xEA",Z$="\u2256",J$="\u2255",Q$="\u042D",tD="\u044D",eD="\u2A77",nD="\u0116",rD="\u0117",iD="\u2251",oD="\u2147",sD="\u2252",lD="\u{1D508}",aD="\u{1D522}",cD="\u2A9A",uD="\xC8",fD="\xE8",hD="\u2A96",dD="\u2A98",pD="\u2A99",gD="\u2208",vD="\u23E7",mD="\u2113",yD="\u2A95",bD="\u2A97",wD="\u0112",xD="\u0113",_D="\u2205",SD="\u2205",kD="\u25FB",CD="\u2205",TD="\u25AB",LD="\u2004",ED="\u2005",AD="\u2003",MD="\u014A",ND="\u014B",PD="\u2002",OD="\u0118",$D="\u0119",DD="\u{1D53C}",RD="\u{1D556}",zD="\u22D5",ID="\u29E3",FD="\u2A71",qD="\u03B5",HD="\u0395",BD="\u03B5",WD="\u03F5",UD="\u2256",jD="\u2255",GD="\u2242",VD="\u2A96",KD="\u2A95",XD="\u2A75",YD="=",ZD="\u2242",JD="\u225F",QD="\u21CC",tR="\u2261",eR="\u2A78",nR="\u29E5",rR="\u2971",iR="\u2253",oR="\u212F",sR="\u2130",lR="\u2250",aR="\u2A73",cR="\u2242",uR="\u0397",fR="\u03B7",hR="\xD0",dR="\xF0",pR="\xCB",gR="\xEB",vR="\u20AC",mR="!",yR="\u2203",bR="\u2203",wR="\u2130",xR="\u2147",_R="\u2147",SR="\u2252",kR="\u0424",CR="\u0444",TR="\u2640",LR="\uFB03",ER="\uFB00",AR="\uFB04",MR="\u{1D509}",NR="\u{1D523}",PR="\uFB01",OR="\u25FC",$R="\u25AA",DR="fj",RR="\u266D",zR="\uFB02",IR="\u25B1",FR="\u0192",qR="\u{1D53D}",HR="\u{1D557}",BR="\u2200",WR="\u2200",UR="\u22D4",jR="\u2AD9",GR="\u2131",VR="\u2A0D",KR="\xBD",XR="\u2153",YR="\xBC",ZR="\u2155",JR="\u2159",QR="\u215B",tz="\u2154",ez="\u2156",nz="\xBE",rz="\u2157",iz="\u215C",oz="\u2158",sz="\u215A",lz="\u215D",az="\u215E",cz="\u2044",uz="\u2322",fz="\u{1D4BB}",hz="\u2131",dz="\u01F5",pz="\u0393",gz="\u03B3",vz="\u03DC",mz="\u03DD",yz="\u2A86",bz="\u011E",wz="\u011F",xz="\u0122",_z="\u011C",Sz="\u011D",kz="\u0413",Cz="\u0433",Tz="\u0120",Lz="\u0121",Ez="\u2265",Az="\u2267",Mz="\u2A8C",Nz="\u22DB",Pz="\u2265",Oz="\u2267",$z="\u2A7E",Dz="\u2AA9",Rz="\u2A7E",zz="\u2A80",Iz="\u2A82",Fz="\u2A84",qz="\u22DB\uFE00",Hz="\u2A94",Bz="\u{1D50A}",Wz="\u{1D524}",Uz="\u226B",jz="\u22D9",Gz="\u22D9",Vz="\u2137",Kz="\u0403",Xz="\u0453",Yz="\u2AA5",Zz="\u2277",Jz="\u2A92",Qz="\u2AA4",t2="\u2A8A",e2="\u2A8A",n2="\u2A88",r2="\u2269",i2="\u2A88",o2="\u2269",s2="\u22E7",l2="\u{1D53E}",a2="\u{1D558}",c2="`",u2="\u2265",f2="\u22DB",h2="\u2267",d2="\u2AA2",p2="\u2277",g2="\u2A7E",v2="\u2273",m2="\u{1D4A2}",y2="\u210A",b2="\u2273",w2="\u2A8E",x2="\u2A90",_2="\u2AA7",S2="\u2A7A",k2=">",C2=">",T2="\u226B",L2="\u22D7",E2="\u2995",A2="\u2A7C",M2="\u2A86",N2="\u2978",P2="\u22D7",O2="\u22DB",$2="\u2A8C",D2="\u2277",R2="\u2273",z2="\u2269\uFE00",I2="\u2269\uFE00",F2="\u02C7",q2="\u200A",H2="\xBD",B2="\u210B",W2="\u042A",U2="\u044A",j2="\u2948",G2="\u2194",V2="\u21D4",K2="\u21AD",X2="^",Y2="\u210F",Z2="\u0124",J2="\u0125",Q2="\u2665",tI="\u2665",eI="\u2026",nI="\u22B9",rI="\u{1D525}",iI="\u210C",oI="\u210B",sI="\u2925",lI="\u2926",aI="\u21FF",cI="\u223B",uI="\u21A9",fI="\u21AA",hI="\u{1D559}",dI="\u210D",pI="\u2015",gI="\u2500",vI="\u{1D4BD}",mI="\u210B",yI="\u210F",bI="\u0126",wI="\u0127",xI="\u224E",_I="\u224F",SI="\u2043",kI="\u2010",CI="\xCD",TI="\xED",LI="\u2063",EI="\xCE",AI="\xEE",MI="\u0418",NI="\u0438",PI="\u0130",OI="\u0415",$I="\u0435",DI="\xA1",RI="\u21D4",zI="\u{1D526}",II="\u2111",FI="\xCC",qI="\xEC",HI="\u2148",BI="\u2A0C",WI="\u222D",UI="\u29DC",jI="\u2129",GI="\u0132",VI="\u0133",KI="\u012A",XI="\u012B",YI="\u2111",ZI="\u2148",JI="\u2110",QI="\u2111",tF="\u0131",eF="\u2111",nF="\u22B7",rF="\u01B5",iF="\u21D2",oF="\u2105",sF="\u221E",lF="\u29DD",aF="\u0131",cF="\u22BA",uF="\u222B",fF="\u222C",hF="\u2124",dF="\u222B",pF="\u22BA",gF="\u22C2",vF="\u2A17",mF="\u2A3C",yF="\u2063",bF="\u2062",wF="\u0401",xF="\u0451",_F="\u012E",SF="\u012F",kF="\u{1D540}",CF="\u{1D55A}",TF="\u0399",LF="\u03B9",EF="\u2A3C",AF="\xBF",MF="\u{1D4BE}",NF="\u2110",PF="\u2208",OF="\u22F5",$F="\u22F9",DF="\u22F4",RF="\u22F3",zF="\u2208",IF="\u2062",FF="\u0128",qF="\u0129",HF="\u0406",BF="\u0456",WF="\xCF",UF="\xEF",jF="\u0134",GF="\u0135",VF="\u0419",KF="\u0439",XF="\u{1D50D}",YF="\u{1D527}",ZF="\u0237",JF="\u{1D541}",QF="\u{1D55B}",tq="\u{1D4A5}",eq="\u{1D4BF}",nq="\u0408",rq="\u0458",iq="\u0404",oq="\u0454",sq="\u039A",lq="\u03BA",aq="\u03F0",cq="\u0136",uq="\u0137",fq="\u041A",hq="\u043A",dq="\u{1D50E}",pq="\u{1D528}",gq="\u0138",vq="\u0425",mq="\u0445",yq="\u040C",bq="\u045C",wq="\u{1D542}",xq="\u{1D55C}",_q="\u{1D4A6}",Sq="\u{1D4C0}",kq="\u21DA",Cq="\u0139",Tq="\u013A",Lq="\u29B4",Eq="\u2112",Aq="\u039B",Mq="\u03BB",Nq="\u27E8",Pq="\u27EA",Oq="\u2991",$q="\u27E8",Dq="\u2A85",Rq="\u2112",zq="\xAB",Iq="\u21E4",Fq="\u291F",qq="\u2190",Hq="\u219E",Bq="\u21D0",Wq="\u291D",Uq="\u21A9",jq="\u21AB",Gq="\u2939",Vq="\u2973",Kq="\u21A2",Xq="\u2919",Yq="\u291B",Zq="\u2AAB",Jq="\u2AAD",Qq="\u2AAD\uFE00",tH="\u290C",eH="\u290E",nH="\u2772",rH="{",iH="[",oH="\u298B",sH="\u298F",lH="\u298D",aH="\u013D",cH="\u013E",uH="\u013B",fH="\u013C",hH="\u2308",dH="{",pH="\u041B",gH="\u043B",vH="\u2936",mH="\u201C",yH="\u201E",bH="\u2967",wH="\u294B",xH="\u21B2",_H="\u2264",SH="\u2266",kH="\u27E8",CH="\u21E4",TH="\u2190",LH="\u2190",EH="\u21D0",AH="\u21C6",MH="\u21A2",NH="\u2308",PH="\u27E6",OH="\u2961",$H="\u2959",DH="\u21C3",RH="\u230A",zH="\u21BD",IH="\u21BC",FH="\u21C7",qH="\u2194",HH="\u2194",BH="\u21D4",WH="\u21C6",UH="\u21CB",jH="\u21AD",GH="\u294E",VH="\u21A4",KH="\u22A3",XH="\u295A",YH="\u22CB",ZH="\u29CF",JH="\u22B2",QH="\u22B4",tB="\u2951",eB="\u2960",nB="\u2958",rB="\u21BF",iB="\u2952",oB="\u21BC",sB="\u2A8B",lB="\u22DA",aB="\u2264",cB="\u2266",uB="\u2A7D",fB="\u2AA8",hB="\u2A7D",dB="\u2A7F",pB="\u2A81",gB="\u2A83",vB="\u22DA\uFE00",mB="\u2A93",yB="\u2A85",bB="\u22D6",wB="\u22DA",xB="\u2A8B",_B="\u22DA",SB="\u2266",kB="\u2276",CB="\u2276",TB="\u2AA1",LB="\u2272",EB="\u2A7D",AB="\u2272",MB="\u297C",NB="\u230A",PB="\u{1D50F}",OB="\u{1D529}",$B="\u2276",DB="\u2A91",RB="\u2962",zB="\u21BD",IB="\u21BC",FB="\u296A",qB="\u2584",HB="\u0409",BB="\u0459",WB="\u21C7",UB="\u226A",jB="\u22D8",GB="\u231E",VB="\u21DA",KB="\u296B",XB="\u25FA",YB="\u013F",ZB="\u0140",JB="\u23B0",QB="\u23B0",t3="\u2A89",e3="\u2A89",n3="\u2A87",r3="\u2268",i3="\u2A87",o3="\u2268",s3="\u22E6",l3="\u27EC",a3="\u21FD",c3="\u27E6",u3="\u27F5",f3="\u27F5",h3="\u27F8",d3="\u27F7",p3="\u27F7",g3="\u27FA",v3="\u27FC",m3="\u27F6",y3="\u27F6",b3="\u27F9",w3="\u21AB",x3="\u21AC",_3="\u2985",S3="\u{1D543}",k3="\u{1D55D}",C3="\u2A2D",T3="\u2A34",L3="\u2217",E3="_",A3="\u2199",M3="\u2198",N3="\u25CA",P3="\u25CA",O3="\u29EB",$3="(",D3="\u2993",R3="\u21C6",z3="\u231F",I3="\u21CB",F3="\u296D",q3="\u200E",H3="\u22BF",B3="\u2039",W3="\u{1D4C1}",U3="\u2112",j3="\u21B0",G3="\u21B0",V3="\u2272",K3="\u2A8D",X3="\u2A8F",Y3="[",Z3="\u2018",J3="\u201A",Q3="\u0141",t5="\u0142",e5="\u2AA6",n5="\u2A79",r5="<",i5="<",o5="\u226A",s5="\u22D6",l5="\u22CB",a5="\u22C9",c5="\u2976",u5="\u2A7B",f5="\u25C3",h5="\u22B4",d5="\u25C2",p5="\u2996",g5="\u294A",v5="\u2966",m5="\u2268\uFE00",y5="\u2268\uFE00",b5="\xAF",w5="\u2642",x5="\u2720",_5="\u2720",S5="\u21A6",k5="\u21A6",C5="\u21A7",T5="\u21A4",L5="\u21A5",E5="\u25AE",A5="\u2A29",M5="\u041C",N5="\u043C",P5="\u2014",O5="\u223A",$5="\u2221",D5="\u205F",R5="\u2133",z5="\u{1D510}",I5="\u{1D52A}",F5="\u2127",q5="\xB5",H5="*",B5="\u2AF0",W5="\u2223",U5="\xB7",j5="\u229F",G5="\u2212",V5="\u2238",K5="\u2A2A",X5="\u2213",Y5="\u2ADB",Z5="\u2026",J5="\u2213",Q5="\u22A7",tW="\u{1D544}",eW="\u{1D55E}",nW="\u2213",rW="\u{1D4C2}",iW="\u2133",oW="\u223E",sW="\u039C",lW="\u03BC",aW="\u22B8",cW="\u22B8",uW="\u2207",fW="\u0143",hW="\u0144",dW="\u2220\u20D2",pW="\u2249",gW="\u2A70\u0338",vW="\u224B\u0338",mW="\u0149",yW="\u2249",bW="\u266E",wW="\u2115",xW="\u266E",_W="\xA0",SW="\u224E\u0338",kW="\u224F\u0338",CW="\u2A43",TW="\u0147",LW="\u0148",EW="\u0145",AW="\u0146",MW="\u2247",NW="\u2A6D\u0338",PW="\u2A42",OW="\u041D",$W="\u043D",DW="\u2013",RW="\u2924",zW="\u2197",IW="\u21D7",FW="\u2197",qW="\u2260",HW="\u2250\u0338",BW="\u200B",WW="\u200B",UW="\u200B",jW="\u200B",GW="\u2262",VW="\u2928",KW="\u2242\u0338",XW="\u226B",YW="\u226A",ZW=`
|
|
6
|
+
`,JW="\u2204",QW="\u2204",tU="\u{1D511}",eU="\u{1D52B}",nU="\u2267\u0338",rU="\u2271",iU="\u2271",oU="\u2267\u0338",sU="\u2A7E\u0338",lU="\u2A7E\u0338",aU="\u22D9\u0338",cU="\u2275",uU="\u226B\u20D2",fU="\u226F",hU="\u226F",dU="\u226B\u0338",pU="\u21AE",gU="\u21CE",vU="\u2AF2",mU="\u220B",yU="\u22FC",bU="\u22FA",wU="\u220B",xU="\u040A",_U="\u045A",SU="\u219A",kU="\u21CD",CU="\u2025",TU="\u2266\u0338",LU="\u2270",EU="\u219A",AU="\u21CD",MU="\u21AE",NU="\u21CE",PU="\u2270",OU="\u2266\u0338",$U="\u2A7D\u0338",DU="\u2A7D\u0338",RU="\u226E",zU="\u22D8\u0338",IU="\u2274",FU="\u226A\u20D2",qU="\u226E",HU="\u22EA",BU="\u22EC",WU="\u226A\u0338",UU="\u2224",jU="\u2060",GU="\xA0",VU="\u{1D55F}",KU="\u2115",XU="\u2AEC",YU="\xAC",ZU="\u2262",JU="\u226D",QU="\u2226",t8="\u2209",e8="\u2260",n8="\u2242\u0338",r8="\u2204",i8="\u226F",o8="\u2271",s8="\u2267\u0338",l8="\u226B\u0338",a8="\u2279",c8="\u2A7E\u0338",u8="\u2275",f8="\u224E\u0338",h8="\u224F\u0338",d8="\u2209",p8="\u22F5\u0338",g8="\u22F9\u0338",v8="\u2209",m8="\u22F7",y8="\u22F6",b8="\u29CF\u0338",w8="\u22EA",x8="\u22EC",_8="\u226E",S8="\u2270",k8="\u2278",C8="\u226A\u0338",T8="\u2A7D\u0338",L8="\u2274",E8="\u2AA2\u0338",A8="\u2AA1\u0338",M8="\u220C",N8="\u220C",P8="\u22FE",O8="\u22FD",$8="\u2280",D8="\u2AAF\u0338",R8="\u22E0",z8="\u220C",I8="\u29D0\u0338",F8="\u22EB",q8="\u22ED",H8="\u228F\u0338",B8="\u22E2",W8="\u2290\u0338",U8="\u22E3",j8="\u2282\u20D2",G8="\u2288",V8="\u2281",K8="\u2AB0\u0338",X8="\u22E1",Y8="\u227F\u0338",Z8="\u2283\u20D2",J8="\u2289",Q8="\u2241",t4="\u2244",e4="\u2247",n4="\u2249",r4="\u2224",i4="\u2226",o4="\u2226",s4="\u2AFD\u20E5",l4="\u2202\u0338",a4="\u2A14",c4="\u2280",u4="\u22E0",f4="\u2280",h4="\u2AAF\u0338",d4="\u2AAF\u0338",p4="\u2933\u0338",g4="\u219B",v4="\u21CF",m4="\u219D\u0338",y4="\u219B",b4="\u21CF",w4="\u22EB",x4="\u22ED",_4="\u2281",S4="\u22E1",k4="\u2AB0\u0338",C4="\u{1D4A9}",T4="\u{1D4C3}",L4="\u2224",E4="\u2226",A4="\u2241",M4="\u2244",N4="\u2244",P4="\u2224",O4="\u2226",$4="\u22E2",D4="\u22E3",R4="\u2284",z4="\u2AC5\u0338",I4="\u2288",F4="\u2282\u20D2",q4="\u2288",H4="\u2AC5\u0338",B4="\u2281",W4="\u2AB0\u0338",U4="\u2285",j4="\u2AC6\u0338",G4="\u2289",V4="\u2283\u20D2",K4="\u2289",X4="\u2AC6\u0338",Y4="\u2279",Z4="\xD1",J4="\xF1",Q4="\u2278",t6="\u22EA",e6="\u22EC",n6="\u22EB",r6="\u22ED",i6="\u039D",o6="\u03BD",s6="#",l6="\u2116",a6="\u2007",c6="\u224D\u20D2",u6="\u22AC",f6="\u22AD",h6="\u22AE",d6="\u22AF",p6="\u2265\u20D2",g6=">\u20D2",v6="\u2904",m6="\u29DE",y6="\u2902",b6="\u2264\u20D2",w6="<\u20D2",x6="\u22B4\u20D2",_6="\u2903",S6="\u22B5\u20D2",k6="\u223C\u20D2",C6="\u2923",T6="\u2196",L6="\u21D6",E6="\u2196",A6="\u2927",M6="\xD3",N6="\xF3",P6="\u229B",O6="\xD4",$6="\xF4",D6="\u229A",R6="\u041E",z6="\u043E",I6="\u229D",F6="\u0150",q6="\u0151",H6="\u2A38",B6="\u2299",W6="\u29BC",U6="\u0152",j6="\u0153",G6="\u29BF",V6="\u{1D512}",K6="\u{1D52C}",X6="\u02DB",Y6="\xD2",Z6="\xF2",J6="\u29C1",Q6="\u29B5",tj="\u03A9",ej="\u222E",nj="\u21BA",rj="\u29BE",ij="\u29BB",oj="\u203E",sj="\u29C0",lj="\u014C",aj="\u014D",cj="\u03A9",uj="\u03C9",fj="\u039F",hj="\u03BF",dj="\u29B6",pj="\u2296",gj="\u{1D546}",vj="\u{1D560}",mj="\u29B7",yj="\u201C",bj="\u2018",wj="\u29B9",xj="\u2295",_j="\u21BB",Sj="\u2A54",kj="\u2228",Cj="\u2A5D",Tj="\u2134",Lj="\u2134",Ej="\xAA",Aj="\xBA",Mj="\u22B6",Nj="\u2A56",Pj="\u2A57",Oj="\u2A5B",$j="\u24C8",Dj="\u{1D4AA}",Rj="\u2134",zj="\xD8",Ij="\xF8",Fj="\u2298",qj="\xD5",Hj="\xF5",Bj="\u2A36",Wj="\u2A37",Uj="\u2297",jj="\xD6",Gj="\xF6",Vj="\u233D",Kj="\u203E",Xj="\u23DE",Yj="\u23B4",Zj="\u23DC",Jj="\xB6",Qj="\u2225",t9="\u2225",e9="\u2AF3",n9="\u2AFD",r9="\u2202",i9="\u2202",o9="\u041F",s9="\u043F",l9="%",a9=".",c9="\u2030",u9="\u22A5",f9="\u2031",h9="\u{1D513}",d9="\u{1D52D}",p9="\u03A6",g9="\u03C6",v9="\u03D5",m9="\u2133",y9="\u260E",b9="\u03A0",w9="\u03C0",x9="\u22D4",_9="\u03D6",S9="\u210F",k9="\u210E",C9="\u210F",T9="\u2A23",L9="\u229E",E9="\u2A22",A9="+",M9="\u2214",N9="\u2A25",P9="\u2A72",O9="\xB1",$9="\xB1",D9="\u2A26",R9="\u2A27",z9="\xB1",I9="\u210C",F9="\u2A15",q9="\u{1D561}",H9="\u2119",B9="\xA3",W9="\u2AB7",U9="\u2ABB",j9="\u227A",G9="\u227C",V9="\u2AB7",K9="\u227A",X9="\u227C",Y9="\u227A",Z9="\u2AAF",J9="\u227C",Q9="\u227E",tG="\u2AAF",eG="\u2AB9",nG="\u2AB5",rG="\u22E8",iG="\u2AAF",oG="\u2AB3",sG="\u227E",lG="\u2032",aG="\u2033",cG="\u2119",uG="\u2AB9",fG="\u2AB5",hG="\u22E8",dG="\u220F",pG="\u220F",gG="\u232E",vG="\u2312",mG="\u2313",yG="\u221D",bG="\u221D",wG="\u2237",xG="\u221D",_G="\u227E",SG="\u22B0",kG="\u{1D4AB}",CG="\u{1D4C5}",TG="\u03A8",LG="\u03C8",EG="\u2008",AG="\u{1D514}",MG="\u{1D52E}",NG="\u2A0C",PG="\u{1D562}",OG="\u211A",$G="\u2057",DG="\u{1D4AC}",RG="\u{1D4C6}",zG="\u210D",IG="\u2A16",FG="?",qG="\u225F",HG='"',BG='"',WG="\u21DB",UG="\u223D\u0331",jG="\u0154",GG="\u0155",VG="\u221A",KG="\u29B3",XG="\u27E9",YG="\u27EB",ZG="\u2992",JG="\u29A5",QG="\u27E9",tV="\xBB",eV="\u2975",nV="\u21E5",rV="\u2920",iV="\u2933",oV="\u2192",sV="\u21A0",lV="\u21D2",aV="\u291E",cV="\u21AA",uV="\u21AC",fV="\u2945",hV="\u2974",dV="\u2916",pV="\u21A3",gV="\u219D",vV="\u291A",mV="\u291C",yV="\u2236",bV="\u211A",wV="\u290D",xV="\u290F",_V="\u2910",SV="\u2773",kV="}",CV="]",TV="\u298C",LV="\u298E",EV="\u2990",AV="\u0158",MV="\u0159",NV="\u0156",PV="\u0157",OV="\u2309",$V="}",DV="\u0420",RV="\u0440",zV="\u2937",IV="\u2969",FV="\u201D",qV="\u201D",HV="\u21B3",BV="\u211C",WV="\u211B",UV="\u211C",jV="\u211D",GV="\u211C",VV="\u25AD",KV="\xAE",XV="\xAE",YV="\u220B",ZV="\u21CB",JV="\u296F",QV="\u297D",tK="\u230B",eK="\u{1D52F}",nK="\u211C",rK="\u2964",iK="\u21C1",oK="\u21C0",sK="\u296C",lK="\u03A1",aK="\u03C1",cK="\u03F1",uK="\u27E9",fK="\u21E5",hK="\u2192",dK="\u2192",pK="\u21D2",gK="\u21C4",vK="\u21A3",mK="\u2309",yK="\u27E7",bK="\u295D",wK="\u2955",xK="\u21C2",_K="\u230B",SK="\u21C1",kK="\u21C0",CK="\u21C4",TK="\u21CC",LK="\u21C9",EK="\u219D",AK="\u21A6",MK="\u22A2",NK="\u295B",PK="\u22CC",OK="\u29D0",$K="\u22B3",DK="\u22B5",RK="\u294F",zK="\u295C",IK="\u2954",FK="\u21BE",qK="\u2953",HK="\u21C0",BK="\u02DA",WK="\u2253",UK="\u21C4",jK="\u21CC",GK="\u200F",VK="\u23B1",KK="\u23B1",XK="\u2AEE",YK="\u27ED",ZK="\u21FE",JK="\u27E7",QK="\u2986",t7="\u{1D563}",e7="\u211D",n7="\u2A2E",r7="\u2A35",i7="\u2970",o7=")",s7="\u2994",l7="\u2A12",a7="\u21C9",c7="\u21DB",u7="\u203A",f7="\u{1D4C7}",h7="\u211B",d7="\u21B1",p7="\u21B1",g7="]",v7="\u2019",m7="\u2019",y7="\u22CC",b7="\u22CA",w7="\u25B9",x7="\u22B5",_7="\u25B8",S7="\u29CE",k7="\u29F4",C7="\u2968",T7="\u211E",L7="\u015A",E7="\u015B",A7="\u201A",M7="\u2AB8",N7="\u0160",P7="\u0161",O7="\u2ABC",$7="\u227B",D7="\u227D",R7="\u2AB0",z7="\u2AB4",I7="\u015E",F7="\u015F",q7="\u015C",H7="\u015D",B7="\u2ABA",W7="\u2AB6",U7="\u22E9",j7="\u2A13",G7="\u227F",V7="\u0421",K7="\u0441",X7="\u22A1",Y7="\u22C5",Z7="\u2A66",J7="\u2925",Q7="\u2198",tX="\u21D8",eX="\u2198",nX="\xA7",rX=";",iX="\u2929",oX="\u2216",sX="\u2216",lX="\u2736",aX="\u{1D516}",cX="\u{1D530}",uX="\u2322",fX="\u266F",hX="\u0429",dX="\u0449",pX="\u0428",gX="\u0448",vX="\u2193",mX="\u2190",yX="\u2223",bX="\u2225",wX="\u2192",xX="\u2191",_X="\xAD",SX="\u03A3",kX="\u03C3",CX="\u03C2",TX="\u03C2",LX="\u223C",EX="\u2A6A",AX="\u2243",MX="\u2243",NX="\u2A9E",PX="\u2AA0",OX="\u2A9D",$X="\u2A9F",DX="\u2246",RX="\u2A24",zX="\u2972",IX="\u2190",FX="\u2218",qX="\u2216",HX="\u2A33",BX="\u29E4",WX="\u2223",UX="\u2323",jX="\u2AAA",GX="\u2AAC",VX="\u2AAC\uFE00",KX="\u042C",XX="\u044C",YX="\u233F",ZX="\u29C4",JX="/",QX="\u{1D54A}",tY="\u{1D564}",eY="\u2660",nY="\u2660",rY="\u2225",iY="\u2293",oY="\u2293\uFE00",sY="\u2294",lY="\u2294\uFE00",aY="\u221A",cY="\u228F",uY="\u2291",fY="\u228F",hY="\u2291",dY="\u2290",pY="\u2292",gY="\u2290",vY="\u2292",mY="\u25A1",yY="\u25A1",bY="\u2293",wY="\u228F",xY="\u2291",_Y="\u2290",SY="\u2292",kY="\u2294",CY="\u25AA",TY="\u25A1",LY="\u25AA",EY="\u2192",AY="\u{1D4AE}",MY="\u{1D4C8}",NY="\u2216",PY="\u2323",OY="\u22C6",$Y="\u22C6",DY="\u2606",RY="\u2605",zY="\u03F5",IY="\u03D5",FY="\xAF",qY="\u2282",HY="\u22D0",BY="\u2ABD",WY="\u2AC5",UY="\u2286",jY="\u2AC3",GY="\u2AC1",VY="\u2ACB",KY="\u228A",XY="\u2ABF",YY="\u2979",ZY="\u2282",JY="\u22D0",QY="\u2286",tZ="\u2AC5",eZ="\u2286",nZ="\u228A",rZ="\u2ACB",iZ="\u2AC7",oZ="\u2AD5",sZ="\u2AD3",lZ="\u2AB8",aZ="\u227B",cZ="\u227D",uZ="\u227B",fZ="\u2AB0",hZ="\u227D",dZ="\u227F",pZ="\u2AB0",gZ="\u2ABA",vZ="\u2AB6",mZ="\u22E9",yZ="\u227F",bZ="\u220B",wZ="\u2211",xZ="\u2211",_Z="\u266A",SZ="\xB9",kZ="\xB2",CZ="\xB3",TZ="\u2283",LZ="\u22D1",EZ="\u2ABE",AZ="\u2AD8",MZ="\u2AC6",NZ="\u2287",PZ="\u2AC4",OZ="\u2283",$Z="\u2287",DZ="\u27C9",RZ="\u2AD7",zZ="\u297B",IZ="\u2AC2",FZ="\u2ACC",qZ="\u228B",HZ="\u2AC0",BZ="\u2283",WZ="\u22D1",UZ="\u2287",jZ="\u2AC6",GZ="\u228B",VZ="\u2ACC",KZ="\u2AC8",XZ="\u2AD4",YZ="\u2AD6",ZZ="\u2926",JZ="\u2199",QZ="\u21D9",tJ="\u2199",eJ="\u292A",nJ="\xDF",rJ=" ",iJ="\u2316",oJ="\u03A4",sJ="\u03C4",lJ="\u23B4",aJ="\u0164",cJ="\u0165",uJ="\u0162",fJ="\u0163",hJ="\u0422",dJ="\u0442",pJ="\u20DB",gJ="\u2315",vJ="\u{1D517}",mJ="\u{1D531}",yJ="\u2234",bJ="\u2234",wJ="\u2234",xJ="\u0398",_J="\u03B8",SJ="\u03D1",kJ="\u03D1",CJ="\u2248",TJ="\u223C",LJ="\u205F\u200A",EJ="\u2009",AJ="\u2009",MJ="\u2248",NJ="\u223C",PJ="\xDE",OJ="\xFE",$J="\u02DC",DJ="\u223C",RJ="\u2243",zJ="\u2245",IJ="\u2248",FJ="\u2A31",qJ="\u22A0",HJ="\xD7",BJ="\u2A30",WJ="\u222D",UJ="\u2928",jJ="\u2336",GJ="\u2AF1",VJ="\u22A4",KJ="\u{1D54B}",XJ="\u{1D565}",YJ="\u2ADA",ZJ="\u2929",JJ="\u2034",QJ="\u2122",tQ="\u2122",eQ="\u25B5",nQ="\u25BF",rQ="\u25C3",iQ="\u22B4",oQ="\u225C",sQ="\u25B9",lQ="\u22B5",aQ="\u25EC",cQ="\u225C",uQ="\u2A3A",fQ="\u20DB",hQ="\u2A39",dQ="\u29CD",pQ="\u2A3B",gQ="\u23E2",vQ="\u{1D4AF}",mQ="\u{1D4C9}",yQ="\u0426",bQ="\u0446",wQ="\u040B",xQ="\u045B",_Q="\u0166",SQ="\u0167",kQ="\u226C",CQ="\u219E",TQ="\u21A0",LQ="\xDA",EQ="\xFA",AQ="\u2191",MQ="\u219F",NQ="\u21D1",PQ="\u2949",OQ="\u040E",$Q="\u045E",DQ="\u016C",RQ="\u016D",zQ="\xDB",IQ="\xFB",FQ="\u0423",qQ="\u0443",HQ="\u21C5",BQ="\u0170",WQ="\u0171",UQ="\u296E",jQ="\u297E",GQ="\u{1D518}",VQ="\u{1D532}",KQ="\xD9",XQ="\xF9",YQ="\u2963",ZQ="\u21BF",JQ="\u21BE",QQ="\u2580",ttt="\u231C",ett="\u231C",ntt="\u230F",rtt="\u25F8",itt="\u016A",ott="\u016B",stt="\xA8",ltt="_",att="\u23DF",ctt="\u23B5",utt="\u23DD",ftt="\u22C3",htt="\u228E",dtt="\u0172",ptt="\u0173",gtt="\u{1D54C}",vtt="\u{1D566}",mtt="\u2912",ytt="\u2191",btt="\u2191",wtt="\u21D1",xtt="\u21C5",_tt="\u2195",Stt="\u2195",ktt="\u21D5",Ctt="\u296E",Ttt="\u21BF",Ltt="\u21BE",Ett="\u228E",Att="\u2196",Mtt="\u2197",Ntt="\u03C5",Ptt="\u03D2",Ott="\u03D2",$tt="\u03A5",Dtt="\u03C5",Rtt="\u21A5",ztt="\u22A5",Itt="\u21C8",Ftt="\u231D",qtt="\u231D",Htt="\u230E",Btt="\u016E",Wtt="\u016F",Utt="\u25F9",jtt="\u{1D4B0}",Gtt="\u{1D4CA}",Vtt="\u22F0",Ktt="\u0168",Xtt="\u0169",Ytt="\u25B5",Ztt="\u25B4",Jtt="\u21C8",Qtt="\xDC",tet="\xFC",eet="\u29A7",net="\u299C",ret="\u03F5",iet="\u03F0",oet="\u2205",set="\u03D5",aet="\u03D6",cet="\u221D",uet="\u2195",fet="\u21D5",het="\u03F1",det="\u03C2",pet="\u228A\uFE00",get="\u2ACB\uFE00",vet="\u228B\uFE00",met="\u2ACC\uFE00",yet="\u03D1",bet="\u22B2",wet="\u22B3",xet="\u2AE8",_et="\u2AEB",ket="\u2AE9",Cet="\u0412",Tet="\u0432",Let="\u22A2",Eet="\u22A8",Aet="\u22A9",Met="\u22AB",Net="\u2AE6",Pet="\u22BB",Oet="\u2228",$et="\u22C1",Det="\u225A",Ret="\u22EE",zet="|",Iet="\u2016",Fet="|",qet="\u2016",Het="\u2223",Bet="|",Wet="\u2758",Uet="\u2240",jet="\u200A",Get="\u{1D519}",Vet="\u{1D533}",Ket="\u22B2",Xet="\u2282\u20D2",Yet="\u2283\u20D2",Zet="\u{1D54D}",Jet="\u{1D567}",Qet="\u221D",tnt="\u22B3",ent="\u{1D4B1}",nnt="\u{1D4CB}",rnt="\u2ACB\uFE00",int="\u228A\uFE00",ont="\u2ACC\uFE00",snt="\u228B\uFE00",lnt="\u22AA",ant="\u299A",cnt="\u0174",unt="\u0175",fnt="\u2A5F",hnt="\u2227",dnt="\u22C0",pnt="\u2259",gnt="\u2118",vnt="\u{1D51A}",mnt="\u{1D534}",ynt="\u{1D54E}",bnt="\u{1D568}",wnt="\u2118",xnt="\u2240",_nt="\u2240",Snt="\u{1D4B2}",knt="\u{1D4CC}",Cnt="\u22C2",Tnt="\u25EF",Lnt="\u22C3",Ent="\u25BD",Ant="\u{1D51B}",Mnt="\u{1D535}",Nnt="\u27F7",Pnt="\u27FA",Ont="\u039E",$nt="\u03BE",Dnt="\u27F5",Rnt="\u27F8",znt="\u27FC",Int="\u22FB",Fnt="\u2A00",qnt="\u{1D54F}",Hnt="\u{1D569}",Bnt="\u2A01",Wnt="\u2A02",Unt="\u27F6",jnt="\u27F9",Gnt="\u{1D4B3}",Vnt="\u{1D4CD}",Knt="\u2A06",Xnt="\u2A04",Ynt="\u25B3",Znt="\u22C1",Jnt="\u22C0",Qnt="\xDD",trt="\xFD",ert="\u042F",nrt="\u044F",rrt="\u0176",irt="\u0177",ort="\u042B",srt="\u044B",lrt="\xA5",art="\u{1D51C}",crt="\u{1D536}",urt="\u0407",frt="\u0457",hrt="\u{1D550}",drt="\u{1D56A}",prt="\u{1D4B4}",grt="\u{1D4CE}",vrt="\u042E",mrt="\u044E",yrt="\xFF",brt="\u0178",wrt="\u0179",xrt="\u017A",_rt="\u017D",Srt="\u017E",krt="\u0417",Crt="\u0437",Trt="\u017B",Lrt="\u017C",Ert="\u2128",Art="\u200B",Mrt="\u0396",Nrt="\u03B6",Prt="\u{1D537}",Ort="\u2128",$rt="\u0416",Drt="\u0436",Rrt="\u21DD",zrt="\u{1D56B}",Irt="\u2124",Frt="\u{1D4B5}",qrt="\u{1D4CF}",Hrt="\u200D",Brt="\u200C",U0={Aacute:kT,aacute:CT,Abreve:TT,abreve:LT,ac:ET,acd:AT,acE:MT,Acirc:NT,acirc:PT,acute:OT,Acy:$T,acy:DT,AElig:RT,aelig:zT,af:IT,Afr:FT,afr:qT,Agrave:HT,agrave:BT,alefsym:WT,aleph:UT,Alpha:jT,alpha:GT,Amacr:VT,amacr:KT,amalg:XT,amp:YT,AMP:ZT,andand:JT,And:QT,and:tL,andd:eL,andslope:nL,andv:rL,ang:iL,ange:oL,angle:sL,angmsdaa:lL,angmsdab:aL,angmsdac:cL,angmsdad:uL,angmsdae:fL,angmsdaf:hL,angmsdag:dL,angmsdah:pL,angmsd:gL,angrt:vL,angrtvb:mL,angrtvbd:yL,angsph:bL,angst:wL,angzarr:xL,Aogon:_L,aogon:SL,Aopf:kL,aopf:CL,apacir:TL,ap:LL,apE:EL,ape:AL,apid:ML,apos:NL,ApplyFunction:PL,approx:OL,approxeq:$L,Aring:DL,aring:RL,Ascr:zL,ascr:IL,Assign:FL,ast:qL,asymp:HL,asympeq:BL,Atilde:WL,atilde:UL,Auml:jL,auml:GL,awconint:VL,awint:KL,backcong:XL,backepsilon:YL,backprime:ZL,backsim:JL,backsimeq:QL,Backslash:tE,Barv:eE,barvee:nE,barwed:rE,Barwed:iE,barwedge:oE,bbrk:sE,bbrktbrk:lE,bcong:aE,Bcy:cE,bcy:uE,bdquo:fE,becaus:hE,because:dE,Because:pE,bemptyv:gE,bepsi:vE,bernou:mE,Bernoullis:yE,Beta:bE,beta:wE,beth:xE,between:_E,Bfr:SE,bfr:kE,bigcap:CE,bigcirc:TE,bigcup:LE,bigodot:EE,bigoplus:AE,bigotimes:ME,bigsqcup:NE,bigstar:PE,bigtriangledown:OE,bigtriangleup:$E,biguplus:DE,bigvee:RE,bigwedge:zE,bkarow:IE,blacklozenge:FE,blacksquare:qE,blacktriangle:HE,blacktriangledown:BE,blacktriangleleft:WE,blacktriangleright:UE,blank:jE,blk12:GE,blk14:VE,blk34:KE,block:XE,bne:YE,bnequiv:ZE,bNot:JE,bnot:QE,Bopf:tA,bopf:eA,bot:nA,bottom:rA,bowtie:iA,boxbox:oA,boxdl:sA,boxdL:lA,boxDl:aA,boxDL:cA,boxdr:uA,boxdR:fA,boxDr:hA,boxDR:dA,boxh:pA,boxH:gA,boxhd:vA,boxHd:mA,boxhD:yA,boxHD:bA,boxhu:wA,boxHu:xA,boxhU:_A,boxHU:SA,boxminus:kA,boxplus:CA,boxtimes:TA,boxul:LA,boxuL:EA,boxUl:AA,boxUL:MA,boxur:NA,boxuR:PA,boxUr:OA,boxUR:$A,boxv:DA,boxV:RA,boxvh:zA,boxvH:IA,boxVh:FA,boxVH:qA,boxvl:HA,boxvL:BA,boxVl:WA,boxVL:UA,boxvr:jA,boxvR:GA,boxVr:VA,boxVR:KA,bprime:XA,breve:YA,Breve:ZA,brvbar:JA,bscr:QA,Bscr:tM,bsemi:eM,bsim:nM,bsime:rM,bsolb:iM,bsol:oM,bsolhsub:sM,bull:lM,bullet:aM,bump:cM,bumpE:uM,bumpe:fM,Bumpeq:hM,bumpeq:dM,Cacute:pM,cacute:gM,capand:vM,capbrcup:mM,capcap:yM,cap:bM,Cap:wM,capcup:xM,capdot:_M,CapitalDifferentialD:SM,caps:kM,caret:CM,caron:TM,Cayleys:LM,ccaps:EM,Ccaron:AM,ccaron:MM,Ccedil:NM,ccedil:PM,Ccirc:OM,ccirc:$M,Cconint:DM,ccups:RM,ccupssm:zM,Cdot:IM,cdot:FM,cedil:qM,Cedilla:HM,cemptyv:BM,cent:WM,centerdot:UM,CenterDot:jM,cfr:GM,Cfr:VM,CHcy:KM,chcy:XM,check:YM,checkmark:ZM,Chi:JM,chi:QM,circ:tN,circeq:eN,circlearrowleft:nN,circlearrowright:rN,circledast:iN,circledcirc:oN,circleddash:sN,CircleDot:lN,circledR:aN,circledS:cN,CircleMinus:uN,CirclePlus:fN,CircleTimes:hN,cir:dN,cirE:pN,cire:gN,cirfnint:vN,cirmid:mN,cirscir:yN,ClockwiseContourIntegral:bN,CloseCurlyDoubleQuote:wN,CloseCurlyQuote:xN,clubs:_N,clubsuit:SN,colon:kN,Colon:CN,Colone:TN,colone:LN,coloneq:EN,comma:AN,commat:MN,comp:NN,compfn:PN,complement:ON,complexes:$N,cong:DN,congdot:RN,Congruent:zN,conint:IN,Conint:FN,ContourIntegral:qN,copf:HN,Copf:BN,coprod:WN,Coproduct:UN,copy:jN,COPY:GN,copysr:VN,CounterClockwiseContourIntegral:KN,crarr:XN,cross:YN,Cross:ZN,Cscr:JN,cscr:QN,csub:tP,csube:eP,csup:nP,csupe:rP,ctdot:iP,cudarrl:oP,cudarrr:sP,cuepr:lP,cuesc:aP,cularr:cP,cularrp:uP,cupbrcap:fP,cupcap:hP,CupCap:dP,cup:pP,Cup:gP,cupcup:vP,cupdot:mP,cupor:yP,cups:bP,curarr:wP,curarrm:xP,curlyeqprec:_P,curlyeqsucc:SP,curlyvee:kP,curlywedge:CP,curren:TP,curvearrowleft:LP,curvearrowright:EP,cuvee:AP,cuwed:MP,cwconint:NP,cwint:PP,cylcty:OP,dagger:$P,Dagger:DP,daleth:RP,darr:zP,Darr:IP,dArr:FP,dash:qP,Dashv:HP,dashv:BP,dbkarow:WP,dblac:UP,Dcaron:jP,dcaron:GP,Dcy:VP,dcy:KP,ddagger:XP,ddarr:YP,DD:ZP,dd:JP,DDotrahd:QP,ddotseq:tO,deg:eO,Del:nO,Delta:rO,delta:iO,demptyv:oO,dfisht:sO,Dfr:lO,dfr:aO,dHar:cO,dharl:uO,dharr:fO,DiacriticalAcute:hO,DiacriticalDot:dO,DiacriticalDoubleAcute:pO,DiacriticalGrave:gO,DiacriticalTilde:vO,diam:mO,diamond:yO,Diamond:bO,diamondsuit:wO,diams:xO,die:_O,DifferentialD:SO,digamma:kO,disin:CO,div:TO,divide:LO,divideontimes:EO,divonx:AO,DJcy:MO,djcy:NO,dlcorn:PO,dlcrop:OO,dollar:$O,Dopf:DO,dopf:RO,Dot:zO,dot:IO,DotDot:FO,doteq:qO,doteqdot:HO,DotEqual:BO,dotminus:WO,dotplus:UO,dotsquare:jO,doublebarwedge:GO,DoubleContourIntegral:VO,DoubleDot:KO,DoubleDownArrow:XO,DoubleLeftArrow:YO,DoubleLeftRightArrow:ZO,DoubleLeftTee:JO,DoubleLongLeftArrow:QO,DoubleLongLeftRightArrow:t$,DoubleLongRightArrow:e$,DoubleRightArrow:n$,DoubleRightTee:r$,DoubleUpArrow:i$,DoubleUpDownArrow:o$,DoubleVerticalBar:s$,DownArrowBar:l$,downarrow:a$,DownArrow:c$,Downarrow:u$,DownArrowUpArrow:f$,DownBreve:h$,downdownarrows:d$,downharpoonleft:p$,downharpoonright:g$,DownLeftRightVector:v$,DownLeftTeeVector:m$,DownLeftVectorBar:y$,DownLeftVector:b$,DownRightTeeVector:w$,DownRightVectorBar:x$,DownRightVector:_$,DownTeeArrow:S$,DownTee:k$,drbkarow:C$,drcorn:T$,drcrop:L$,Dscr:E$,dscr:A$,DScy:M$,dscy:N$,dsol:P$,Dstrok:O$,dstrok:$$,dtdot:D$,dtri:R$,dtrif:z$,duarr:I$,duhar:F$,dwangle:q$,DZcy:H$,dzcy:B$,dzigrarr:W$,Eacute:U$,eacute:j$,easter:G$,Ecaron:V$,ecaron:K$,Ecirc:X$,ecirc:Y$,ecir:Z$,ecolon:J$,Ecy:Q$,ecy:tD,eDDot:eD,Edot:nD,edot:rD,eDot:iD,ee:oD,efDot:sD,Efr:lD,efr:aD,eg:cD,Egrave:uD,egrave:fD,egs:hD,egsdot:dD,el:pD,Element:gD,elinters:vD,ell:mD,els:yD,elsdot:bD,Emacr:wD,emacr:xD,empty:_D,emptyset:SD,EmptySmallSquare:kD,emptyv:CD,EmptyVerySmallSquare:TD,emsp13:LD,emsp14:ED,emsp:AD,ENG:MD,eng:ND,ensp:PD,Eogon:OD,eogon:$D,Eopf:DD,eopf:RD,epar:zD,eparsl:ID,eplus:FD,epsi:qD,Epsilon:HD,epsilon:BD,epsiv:WD,eqcirc:UD,eqcolon:jD,eqsim:GD,eqslantgtr:VD,eqslantless:KD,Equal:XD,equals:YD,EqualTilde:ZD,equest:JD,Equilibrium:QD,equiv:tR,equivDD:eR,eqvparsl:nR,erarr:rR,erDot:iR,escr:oR,Escr:sR,esdot:lR,Esim:aR,esim:cR,Eta:uR,eta:fR,ETH:hR,eth:dR,Euml:pR,euml:gR,euro:vR,excl:mR,exist:yR,Exists:bR,expectation:wR,exponentiale:xR,ExponentialE:_R,fallingdotseq:SR,Fcy:kR,fcy:CR,female:TR,ffilig:LR,fflig:ER,ffllig:AR,Ffr:MR,ffr:NR,filig:PR,FilledSmallSquare:OR,FilledVerySmallSquare:$R,fjlig:DR,flat:RR,fllig:zR,fltns:IR,fnof:FR,Fopf:qR,fopf:HR,forall:BR,ForAll:WR,fork:UR,forkv:jR,Fouriertrf:GR,fpartint:VR,frac12:KR,frac13:XR,frac14:YR,frac15:ZR,frac16:JR,frac18:QR,frac23:tz,frac25:ez,frac34:nz,frac35:rz,frac38:iz,frac45:oz,frac56:sz,frac58:lz,frac78:az,frasl:cz,frown:uz,fscr:fz,Fscr:hz,gacute:dz,Gamma:pz,gamma:gz,Gammad:vz,gammad:mz,gap:yz,Gbreve:bz,gbreve:wz,Gcedil:xz,Gcirc:_z,gcirc:Sz,Gcy:kz,gcy:Cz,Gdot:Tz,gdot:Lz,ge:Ez,gE:Az,gEl:Mz,gel:Nz,geq:Pz,geqq:Oz,geqslant:$z,gescc:Dz,ges:Rz,gesdot:zz,gesdoto:Iz,gesdotol:Fz,gesl:qz,gesles:Hz,Gfr:Bz,gfr:Wz,gg:Uz,Gg:jz,ggg:Gz,gimel:Vz,GJcy:Kz,gjcy:Xz,gla:Yz,gl:Zz,glE:Jz,glj:Qz,gnap:t2,gnapprox:e2,gne:n2,gnE:r2,gneq:i2,gneqq:o2,gnsim:s2,Gopf:l2,gopf:a2,grave:c2,GreaterEqual:u2,GreaterEqualLess:f2,GreaterFullEqual:h2,GreaterGreater:d2,GreaterLess:p2,GreaterSlantEqual:g2,GreaterTilde:v2,Gscr:m2,gscr:y2,gsim:b2,gsime:w2,gsiml:x2,gtcc:_2,gtcir:S2,gt:k2,GT:C2,Gt:T2,gtdot:L2,gtlPar:E2,gtquest:A2,gtrapprox:M2,gtrarr:N2,gtrdot:P2,gtreqless:O2,gtreqqless:$2,gtrless:D2,gtrsim:R2,gvertneqq:z2,gvnE:I2,Hacek:F2,hairsp:q2,half:H2,hamilt:B2,HARDcy:W2,hardcy:U2,harrcir:j2,harr:G2,hArr:V2,harrw:K2,Hat:X2,hbar:Y2,Hcirc:Z2,hcirc:J2,hearts:Q2,heartsuit:tI,hellip:eI,hercon:nI,hfr:rI,Hfr:iI,HilbertSpace:oI,hksearow:sI,hkswarow:lI,hoarr:aI,homtht:cI,hookleftarrow:uI,hookrightarrow:fI,hopf:hI,Hopf:dI,horbar:pI,HorizontalLine:gI,hscr:vI,Hscr:mI,hslash:yI,Hstrok:bI,hstrok:wI,HumpDownHump:xI,HumpEqual:_I,hybull:SI,hyphen:kI,Iacute:CI,iacute:TI,ic:LI,Icirc:EI,icirc:AI,Icy:MI,icy:NI,Idot:PI,IEcy:OI,iecy:$I,iexcl:DI,iff:RI,ifr:zI,Ifr:II,Igrave:FI,igrave:qI,ii:HI,iiiint:BI,iiint:WI,iinfin:UI,iiota:jI,IJlig:GI,ijlig:VI,Imacr:KI,imacr:XI,image:YI,ImaginaryI:ZI,imagline:JI,imagpart:QI,imath:tF,Im:eF,imof:nF,imped:rF,Implies:iF,incare:oF,in:"\u2208",infin:sF,infintie:lF,inodot:aF,intcal:cF,int:uF,Int:fF,integers:hF,Integral:dF,intercal:pF,Intersection:gF,intlarhk:vF,intprod:mF,InvisibleComma:yF,InvisibleTimes:bF,IOcy:wF,iocy:xF,Iogon:_F,iogon:SF,Iopf:kF,iopf:CF,Iota:TF,iota:LF,iprod:EF,iquest:AF,iscr:MF,Iscr:NF,isin:PF,isindot:OF,isinE:$F,isins:DF,isinsv:RF,isinv:zF,it:IF,Itilde:FF,itilde:qF,Iukcy:HF,iukcy:BF,Iuml:WF,iuml:UF,Jcirc:jF,jcirc:GF,Jcy:VF,jcy:KF,Jfr:XF,jfr:YF,jmath:ZF,Jopf:JF,jopf:QF,Jscr:tq,jscr:eq,Jsercy:nq,jsercy:rq,Jukcy:iq,jukcy:oq,Kappa:sq,kappa:lq,kappav:aq,Kcedil:cq,kcedil:uq,Kcy:fq,kcy:hq,Kfr:dq,kfr:pq,kgreen:gq,KHcy:vq,khcy:mq,KJcy:yq,kjcy:bq,Kopf:wq,kopf:xq,Kscr:_q,kscr:Sq,lAarr:kq,Lacute:Cq,lacute:Tq,laemptyv:Lq,lagran:Eq,Lambda:Aq,lambda:Mq,lang:Nq,Lang:Pq,langd:Oq,langle:$q,lap:Dq,Laplacetrf:Rq,laquo:zq,larrb:Iq,larrbfs:Fq,larr:qq,Larr:Hq,lArr:Bq,larrfs:Wq,larrhk:Uq,larrlp:jq,larrpl:Gq,larrsim:Vq,larrtl:Kq,latail:Xq,lAtail:Yq,lat:Zq,late:Jq,lates:Qq,lbarr:tH,lBarr:eH,lbbrk:nH,lbrace:rH,lbrack:iH,lbrke:oH,lbrksld:sH,lbrkslu:lH,Lcaron:aH,lcaron:cH,Lcedil:uH,lcedil:fH,lceil:hH,lcub:dH,Lcy:pH,lcy:gH,ldca:vH,ldquo:mH,ldquor:yH,ldrdhar:bH,ldrushar:wH,ldsh:xH,le:_H,lE:SH,LeftAngleBracket:kH,LeftArrowBar:CH,leftarrow:TH,LeftArrow:LH,Leftarrow:EH,LeftArrowRightArrow:AH,leftarrowtail:MH,LeftCeiling:NH,LeftDoubleBracket:PH,LeftDownTeeVector:OH,LeftDownVectorBar:$H,LeftDownVector:DH,LeftFloor:RH,leftharpoondown:zH,leftharpoonup:IH,leftleftarrows:FH,leftrightarrow:qH,LeftRightArrow:HH,Leftrightarrow:BH,leftrightarrows:WH,leftrightharpoons:UH,leftrightsquigarrow:jH,LeftRightVector:GH,LeftTeeArrow:VH,LeftTee:KH,LeftTeeVector:XH,leftthreetimes:YH,LeftTriangleBar:ZH,LeftTriangle:JH,LeftTriangleEqual:QH,LeftUpDownVector:tB,LeftUpTeeVector:eB,LeftUpVectorBar:nB,LeftUpVector:rB,LeftVectorBar:iB,LeftVector:oB,lEg:sB,leg:lB,leq:aB,leqq:cB,leqslant:uB,lescc:fB,les:hB,lesdot:dB,lesdoto:pB,lesdotor:gB,lesg:vB,lesges:mB,lessapprox:yB,lessdot:bB,lesseqgtr:wB,lesseqqgtr:xB,LessEqualGreater:_B,LessFullEqual:SB,LessGreater:kB,lessgtr:CB,LessLess:TB,lesssim:LB,LessSlantEqual:EB,LessTilde:AB,lfisht:MB,lfloor:NB,Lfr:PB,lfr:OB,lg:$B,lgE:DB,lHar:RB,lhard:zB,lharu:IB,lharul:FB,lhblk:qB,LJcy:HB,ljcy:BB,llarr:WB,ll:UB,Ll:jB,llcorner:GB,Lleftarrow:VB,llhard:KB,lltri:XB,Lmidot:YB,lmidot:ZB,lmoustache:JB,lmoust:QB,lnap:t3,lnapprox:e3,lne:n3,lnE:r3,lneq:i3,lneqq:o3,lnsim:s3,loang:l3,loarr:a3,lobrk:c3,longleftarrow:u3,LongLeftArrow:f3,Longleftarrow:h3,longleftrightarrow:d3,LongLeftRightArrow:p3,Longleftrightarrow:g3,longmapsto:v3,longrightarrow:m3,LongRightArrow:y3,Longrightarrow:b3,looparrowleft:w3,looparrowright:x3,lopar:_3,Lopf:S3,lopf:k3,loplus:C3,lotimes:T3,lowast:L3,lowbar:E3,LowerLeftArrow:A3,LowerRightArrow:M3,loz:N3,lozenge:P3,lozf:O3,lpar:$3,lparlt:D3,lrarr:R3,lrcorner:z3,lrhar:I3,lrhard:F3,lrm:q3,lrtri:H3,lsaquo:B3,lscr:W3,Lscr:U3,lsh:j3,Lsh:G3,lsim:V3,lsime:K3,lsimg:X3,lsqb:Y3,lsquo:Z3,lsquor:J3,Lstrok:Q3,lstrok:t5,ltcc:e5,ltcir:n5,lt:r5,LT:i5,Lt:o5,ltdot:s5,lthree:l5,ltimes:a5,ltlarr:c5,ltquest:u5,ltri:f5,ltrie:h5,ltrif:d5,ltrPar:p5,lurdshar:g5,luruhar:v5,lvertneqq:m5,lvnE:y5,macr:b5,male:w5,malt:x5,maltese:_5,Map:"\u2905",map:S5,mapsto:k5,mapstodown:C5,mapstoleft:T5,mapstoup:L5,marker:E5,mcomma:A5,Mcy:M5,mcy:N5,mdash:P5,mDDot:O5,measuredangle:$5,MediumSpace:D5,Mellintrf:R5,Mfr:z5,mfr:I5,mho:F5,micro:q5,midast:H5,midcir:B5,mid:W5,middot:U5,minusb:j5,minus:G5,minusd:V5,minusdu:K5,MinusPlus:X5,mlcp:Y5,mldr:Z5,mnplus:J5,models:Q5,Mopf:tW,mopf:eW,mp:nW,mscr:rW,Mscr:iW,mstpos:oW,Mu:sW,mu:lW,multimap:aW,mumap:cW,nabla:uW,Nacute:fW,nacute:hW,nang:dW,nap:pW,napE:gW,napid:vW,napos:mW,napprox:yW,natural:bW,naturals:wW,natur:xW,nbsp:_W,nbump:SW,nbumpe:kW,ncap:CW,Ncaron:TW,ncaron:LW,Ncedil:EW,ncedil:AW,ncong:MW,ncongdot:NW,ncup:PW,Ncy:OW,ncy:$W,ndash:DW,nearhk:RW,nearr:zW,neArr:IW,nearrow:FW,ne:qW,nedot:HW,NegativeMediumSpace:BW,NegativeThickSpace:WW,NegativeThinSpace:UW,NegativeVeryThinSpace:jW,nequiv:GW,nesear:VW,nesim:KW,NestedGreaterGreater:XW,NestedLessLess:YW,NewLine:ZW,nexist:JW,nexists:QW,Nfr:tU,nfr:eU,ngE:nU,nge:rU,ngeq:iU,ngeqq:oU,ngeqslant:sU,nges:lU,nGg:aU,ngsim:cU,nGt:uU,ngt:fU,ngtr:hU,nGtv:dU,nharr:pU,nhArr:gU,nhpar:vU,ni:mU,nis:yU,nisd:bU,niv:wU,NJcy:xU,njcy:_U,nlarr:SU,nlArr:kU,nldr:CU,nlE:TU,nle:LU,nleftarrow:EU,nLeftarrow:AU,nleftrightarrow:MU,nLeftrightarrow:NU,nleq:PU,nleqq:OU,nleqslant:$U,nles:DU,nless:RU,nLl:zU,nlsim:IU,nLt:FU,nlt:qU,nltri:HU,nltrie:BU,nLtv:WU,nmid:UU,NoBreak:jU,NonBreakingSpace:GU,nopf:VU,Nopf:KU,Not:XU,not:YU,NotCongruent:ZU,NotCupCap:JU,NotDoubleVerticalBar:QU,NotElement:t8,NotEqual:e8,NotEqualTilde:n8,NotExists:r8,NotGreater:i8,NotGreaterEqual:o8,NotGreaterFullEqual:s8,NotGreaterGreater:l8,NotGreaterLess:a8,NotGreaterSlantEqual:c8,NotGreaterTilde:u8,NotHumpDownHump:f8,NotHumpEqual:h8,notin:d8,notindot:p8,notinE:g8,notinva:v8,notinvb:m8,notinvc:y8,NotLeftTriangleBar:b8,NotLeftTriangle:w8,NotLeftTriangleEqual:x8,NotLess:_8,NotLessEqual:S8,NotLessGreater:k8,NotLessLess:C8,NotLessSlantEqual:T8,NotLessTilde:L8,NotNestedGreaterGreater:E8,NotNestedLessLess:A8,notni:M8,notniva:N8,notnivb:P8,notnivc:O8,NotPrecedes:$8,NotPrecedesEqual:D8,NotPrecedesSlantEqual:R8,NotReverseElement:z8,NotRightTriangleBar:I8,NotRightTriangle:F8,NotRightTriangleEqual:q8,NotSquareSubset:H8,NotSquareSubsetEqual:B8,NotSquareSuperset:W8,NotSquareSupersetEqual:U8,NotSubset:j8,NotSubsetEqual:G8,NotSucceeds:V8,NotSucceedsEqual:K8,NotSucceedsSlantEqual:X8,NotSucceedsTilde:Y8,NotSuperset:Z8,NotSupersetEqual:J8,NotTilde:Q8,NotTildeEqual:t4,NotTildeFullEqual:e4,NotTildeTilde:n4,NotVerticalBar:r4,nparallel:i4,npar:o4,nparsl:s4,npart:l4,npolint:a4,npr:c4,nprcue:u4,nprec:f4,npreceq:h4,npre:d4,nrarrc:p4,nrarr:g4,nrArr:v4,nrarrw:m4,nrightarrow:y4,nRightarrow:b4,nrtri:w4,nrtrie:x4,nsc:_4,nsccue:S4,nsce:k4,Nscr:C4,nscr:T4,nshortmid:L4,nshortparallel:E4,nsim:A4,nsime:M4,nsimeq:N4,nsmid:P4,nspar:O4,nsqsube:$4,nsqsupe:D4,nsub:R4,nsubE:z4,nsube:I4,nsubset:F4,nsubseteq:q4,nsubseteqq:H4,nsucc:B4,nsucceq:W4,nsup:U4,nsupE:j4,nsupe:G4,nsupset:V4,nsupseteq:K4,nsupseteqq:X4,ntgl:Y4,Ntilde:Z4,ntilde:J4,ntlg:Q4,ntriangleleft:t6,ntrianglelefteq:e6,ntriangleright:n6,ntrianglerighteq:r6,Nu:i6,nu:o6,num:s6,numero:l6,numsp:a6,nvap:c6,nvdash:u6,nvDash:f6,nVdash:h6,nVDash:d6,nvge:p6,nvgt:g6,nvHarr:v6,nvinfin:m6,nvlArr:y6,nvle:b6,nvlt:w6,nvltrie:x6,nvrArr:_6,nvrtrie:S6,nvsim:k6,nwarhk:C6,nwarr:T6,nwArr:L6,nwarrow:E6,nwnear:A6,Oacute:M6,oacute:N6,oast:P6,Ocirc:O6,ocirc:$6,ocir:D6,Ocy:R6,ocy:z6,odash:I6,Odblac:F6,odblac:q6,odiv:H6,odot:B6,odsold:W6,OElig:U6,oelig:j6,ofcir:G6,Ofr:V6,ofr:K6,ogon:X6,Ograve:Y6,ograve:Z6,ogt:J6,ohbar:Q6,ohm:tj,oint:ej,olarr:nj,olcir:rj,olcross:ij,oline:oj,olt:sj,Omacr:lj,omacr:aj,Omega:cj,omega:uj,Omicron:fj,omicron:hj,omid:dj,ominus:pj,Oopf:gj,oopf:vj,opar:mj,OpenCurlyDoubleQuote:yj,OpenCurlyQuote:bj,operp:wj,oplus:xj,orarr:_j,Or:Sj,or:kj,ord:Cj,order:Tj,orderof:Lj,ordf:Ej,ordm:Aj,origof:Mj,oror:Nj,orslope:Pj,orv:Oj,oS:$j,Oscr:Dj,oscr:Rj,Oslash:zj,oslash:Ij,osol:Fj,Otilde:qj,otilde:Hj,otimesas:Bj,Otimes:Wj,otimes:Uj,Ouml:jj,ouml:Gj,ovbar:Vj,OverBar:Kj,OverBrace:Xj,OverBracket:Yj,OverParenthesis:Zj,para:Jj,parallel:Qj,par:t9,parsim:e9,parsl:n9,part:r9,PartialD:i9,Pcy:o9,pcy:s9,percnt:l9,period:a9,permil:c9,perp:u9,pertenk:f9,Pfr:h9,pfr:d9,Phi:p9,phi:g9,phiv:v9,phmmat:m9,phone:y9,Pi:b9,pi:w9,pitchfork:x9,piv:_9,planck:S9,planckh:k9,plankv:C9,plusacir:T9,plusb:L9,pluscir:E9,plus:A9,plusdo:M9,plusdu:N9,pluse:P9,PlusMinus:O9,plusmn:$9,plussim:D9,plustwo:R9,pm:z9,Poincareplane:I9,pointint:F9,popf:q9,Popf:H9,pound:B9,prap:W9,Pr:U9,pr:j9,prcue:G9,precapprox:V9,prec:K9,preccurlyeq:X9,Precedes:Y9,PrecedesEqual:Z9,PrecedesSlantEqual:J9,PrecedesTilde:Q9,preceq:tG,precnapprox:eG,precneqq:nG,precnsim:rG,pre:iG,prE:oG,precsim:sG,prime:lG,Prime:aG,primes:cG,prnap:uG,prnE:fG,prnsim:hG,prod:dG,Product:pG,profalar:gG,profline:vG,profsurf:mG,prop:yG,Proportional:bG,Proportion:wG,propto:xG,prsim:_G,prurel:SG,Pscr:kG,pscr:CG,Psi:TG,psi:LG,puncsp:EG,Qfr:AG,qfr:MG,qint:NG,qopf:PG,Qopf:OG,qprime:$G,Qscr:DG,qscr:RG,quaternions:zG,quatint:IG,quest:FG,questeq:qG,quot:HG,QUOT:BG,rAarr:WG,race:UG,Racute:jG,racute:GG,radic:VG,raemptyv:KG,rang:XG,Rang:YG,rangd:ZG,range:JG,rangle:QG,raquo:tV,rarrap:eV,rarrb:nV,rarrbfs:rV,rarrc:iV,rarr:oV,Rarr:sV,rArr:lV,rarrfs:aV,rarrhk:cV,rarrlp:uV,rarrpl:fV,rarrsim:hV,Rarrtl:dV,rarrtl:pV,rarrw:gV,ratail:vV,rAtail:mV,ratio:yV,rationals:bV,rbarr:wV,rBarr:xV,RBarr:_V,rbbrk:SV,rbrace:kV,rbrack:CV,rbrke:TV,rbrksld:LV,rbrkslu:EV,Rcaron:AV,rcaron:MV,Rcedil:NV,rcedil:PV,rceil:OV,rcub:$V,Rcy:DV,rcy:RV,rdca:zV,rdldhar:IV,rdquo:FV,rdquor:qV,rdsh:HV,real:BV,realine:WV,realpart:UV,reals:jV,Re:GV,rect:VV,reg:KV,REG:XV,ReverseElement:YV,ReverseEquilibrium:ZV,ReverseUpEquilibrium:JV,rfisht:QV,rfloor:tK,rfr:eK,Rfr:nK,rHar:rK,rhard:iK,rharu:oK,rharul:sK,Rho:lK,rho:aK,rhov:cK,RightAngleBracket:uK,RightArrowBar:fK,rightarrow:hK,RightArrow:dK,Rightarrow:pK,RightArrowLeftArrow:gK,rightarrowtail:vK,RightCeiling:mK,RightDoubleBracket:yK,RightDownTeeVector:bK,RightDownVectorBar:wK,RightDownVector:xK,RightFloor:_K,rightharpoondown:SK,rightharpoonup:kK,rightleftarrows:CK,rightleftharpoons:TK,rightrightarrows:LK,rightsquigarrow:EK,RightTeeArrow:AK,RightTee:MK,RightTeeVector:NK,rightthreetimes:PK,RightTriangleBar:OK,RightTriangle:$K,RightTriangleEqual:DK,RightUpDownVector:RK,RightUpTeeVector:zK,RightUpVectorBar:IK,RightUpVector:FK,RightVectorBar:qK,RightVector:HK,ring:BK,risingdotseq:WK,rlarr:UK,rlhar:jK,rlm:GK,rmoustache:VK,rmoust:KK,rnmid:XK,roang:YK,roarr:ZK,robrk:JK,ropar:QK,ropf:t7,Ropf:e7,roplus:n7,rotimes:r7,RoundImplies:i7,rpar:o7,rpargt:s7,rppolint:l7,rrarr:a7,Rrightarrow:c7,rsaquo:u7,rscr:f7,Rscr:h7,rsh:d7,Rsh:p7,rsqb:g7,rsquo:v7,rsquor:m7,rthree:y7,rtimes:b7,rtri:w7,rtrie:x7,rtrif:_7,rtriltri:S7,RuleDelayed:k7,ruluhar:C7,rx:T7,Sacute:L7,sacute:E7,sbquo:A7,scap:M7,Scaron:N7,scaron:P7,Sc:O7,sc:$7,sccue:D7,sce:R7,scE:z7,Scedil:I7,scedil:F7,Scirc:q7,scirc:H7,scnap:B7,scnE:W7,scnsim:U7,scpolint:j7,scsim:G7,Scy:V7,scy:K7,sdotb:X7,sdot:Y7,sdote:Z7,searhk:J7,searr:Q7,seArr:tX,searrow:eX,sect:nX,semi:rX,seswar:iX,setminus:oX,setmn:sX,sext:lX,Sfr:aX,sfr:cX,sfrown:uX,sharp:fX,SHCHcy:hX,shchcy:dX,SHcy:pX,shcy:gX,ShortDownArrow:vX,ShortLeftArrow:mX,shortmid:yX,shortparallel:bX,ShortRightArrow:wX,ShortUpArrow:xX,shy:_X,Sigma:SX,sigma:kX,sigmaf:CX,sigmav:TX,sim:LX,simdot:EX,sime:AX,simeq:MX,simg:NX,simgE:PX,siml:OX,simlE:$X,simne:DX,simplus:RX,simrarr:zX,slarr:IX,SmallCircle:FX,smallsetminus:qX,smashp:HX,smeparsl:BX,smid:WX,smile:UX,smt:jX,smte:GX,smtes:VX,SOFTcy:KX,softcy:XX,solbar:YX,solb:ZX,sol:JX,Sopf:QX,sopf:tY,spades:eY,spadesuit:nY,spar:rY,sqcap:iY,sqcaps:oY,sqcup:sY,sqcups:lY,Sqrt:aY,sqsub:cY,sqsube:uY,sqsubset:fY,sqsubseteq:hY,sqsup:dY,sqsupe:pY,sqsupset:gY,sqsupseteq:vY,square:mY,Square:yY,SquareIntersection:bY,SquareSubset:wY,SquareSubsetEqual:xY,SquareSuperset:_Y,SquareSupersetEqual:SY,SquareUnion:kY,squarf:CY,squ:TY,squf:LY,srarr:EY,Sscr:AY,sscr:MY,ssetmn:NY,ssmile:PY,sstarf:OY,Star:$Y,star:DY,starf:RY,straightepsilon:zY,straightphi:IY,strns:FY,sub:qY,Sub:HY,subdot:BY,subE:WY,sube:UY,subedot:jY,submult:GY,subnE:VY,subne:KY,subplus:XY,subrarr:YY,subset:ZY,Subset:JY,subseteq:QY,subseteqq:tZ,SubsetEqual:eZ,subsetneq:nZ,subsetneqq:rZ,subsim:iZ,subsub:oZ,subsup:sZ,succapprox:lZ,succ:aZ,succcurlyeq:cZ,Succeeds:uZ,SucceedsEqual:fZ,SucceedsSlantEqual:hZ,SucceedsTilde:dZ,succeq:pZ,succnapprox:gZ,succneqq:vZ,succnsim:mZ,succsim:yZ,SuchThat:bZ,sum:wZ,Sum:xZ,sung:_Z,sup1:SZ,sup2:kZ,sup3:CZ,sup:TZ,Sup:LZ,supdot:EZ,supdsub:AZ,supE:MZ,supe:NZ,supedot:PZ,Superset:OZ,SupersetEqual:$Z,suphsol:DZ,suphsub:RZ,suplarr:zZ,supmult:IZ,supnE:FZ,supne:qZ,supplus:HZ,supset:BZ,Supset:WZ,supseteq:UZ,supseteqq:jZ,supsetneq:GZ,supsetneqq:VZ,supsim:KZ,supsub:XZ,supsup:YZ,swarhk:ZZ,swarr:JZ,swArr:QZ,swarrow:tJ,swnwar:eJ,szlig:nJ,Tab:rJ,target:iJ,Tau:oJ,tau:sJ,tbrk:lJ,Tcaron:aJ,tcaron:cJ,Tcedil:uJ,tcedil:fJ,Tcy:hJ,tcy:dJ,tdot:pJ,telrec:gJ,Tfr:vJ,tfr:mJ,there4:yJ,therefore:bJ,Therefore:wJ,Theta:xJ,theta:_J,thetasym:SJ,thetav:kJ,thickapprox:CJ,thicksim:TJ,ThickSpace:LJ,ThinSpace:EJ,thinsp:AJ,thkap:MJ,thksim:NJ,THORN:PJ,thorn:OJ,tilde:$J,Tilde:DJ,TildeEqual:RJ,TildeFullEqual:zJ,TildeTilde:IJ,timesbar:FJ,timesb:qJ,times:HJ,timesd:BJ,tint:WJ,toea:UJ,topbot:jJ,topcir:GJ,top:VJ,Topf:KJ,topf:XJ,topfork:YJ,tosa:ZJ,tprime:JJ,trade:QJ,TRADE:tQ,triangle:eQ,triangledown:nQ,triangleleft:rQ,trianglelefteq:iQ,triangleq:oQ,triangleright:sQ,trianglerighteq:lQ,tridot:aQ,trie:cQ,triminus:uQ,TripleDot:fQ,triplus:hQ,trisb:dQ,tritime:pQ,trpezium:gQ,Tscr:vQ,tscr:mQ,TScy:yQ,tscy:bQ,TSHcy:wQ,tshcy:xQ,Tstrok:_Q,tstrok:SQ,twixt:kQ,twoheadleftarrow:CQ,twoheadrightarrow:TQ,Uacute:LQ,uacute:EQ,uarr:AQ,Uarr:MQ,uArr:NQ,Uarrocir:PQ,Ubrcy:OQ,ubrcy:$Q,Ubreve:DQ,ubreve:RQ,Ucirc:zQ,ucirc:IQ,Ucy:FQ,ucy:qQ,udarr:HQ,Udblac:BQ,udblac:WQ,udhar:UQ,ufisht:jQ,Ufr:GQ,ufr:VQ,Ugrave:KQ,ugrave:XQ,uHar:YQ,uharl:ZQ,uharr:JQ,uhblk:QQ,ulcorn:ttt,ulcorner:ett,ulcrop:ntt,ultri:rtt,Umacr:itt,umacr:ott,uml:stt,UnderBar:ltt,UnderBrace:att,UnderBracket:ctt,UnderParenthesis:utt,Union:ftt,UnionPlus:htt,Uogon:dtt,uogon:ptt,Uopf:gtt,uopf:vtt,UpArrowBar:mtt,uparrow:ytt,UpArrow:btt,Uparrow:wtt,UpArrowDownArrow:xtt,updownarrow:_tt,UpDownArrow:Stt,Updownarrow:ktt,UpEquilibrium:Ctt,upharpoonleft:Ttt,upharpoonright:Ltt,uplus:Ett,UpperLeftArrow:Att,UpperRightArrow:Mtt,upsi:Ntt,Upsi:Ptt,upsih:Ott,Upsilon:$tt,upsilon:Dtt,UpTeeArrow:Rtt,UpTee:ztt,upuparrows:Itt,urcorn:Ftt,urcorner:qtt,urcrop:Htt,Uring:Btt,uring:Wtt,urtri:Utt,Uscr:jtt,uscr:Gtt,utdot:Vtt,Utilde:Ktt,utilde:Xtt,utri:Ytt,utrif:Ztt,uuarr:Jtt,Uuml:Qtt,uuml:tet,uwangle:eet,vangrt:net,varepsilon:ret,varkappa:iet,varnothing:oet,varphi:set,varpi:aet,varpropto:cet,varr:uet,vArr:fet,varrho:het,varsigma:det,varsubsetneq:pet,varsubsetneqq:get,varsupsetneq:vet,varsupsetneqq:met,vartheta:yet,vartriangleleft:bet,vartriangleright:wet,vBar:xet,Vbar:_et,vBarv:ket,Vcy:Cet,vcy:Tet,vdash:Let,vDash:Eet,Vdash:Aet,VDash:Met,Vdashl:Net,veebar:Pet,vee:Oet,Vee:$et,veeeq:Det,vellip:Ret,verbar:zet,Verbar:Iet,vert:Fet,Vert:qet,VerticalBar:Het,VerticalLine:Bet,VerticalSeparator:Wet,VerticalTilde:Uet,VeryThinSpace:jet,Vfr:Get,vfr:Vet,vltri:Ket,vnsub:Xet,vnsup:Yet,Vopf:Zet,vopf:Jet,vprop:Qet,vrtri:tnt,Vscr:ent,vscr:nnt,vsubnE:rnt,vsubne:int,vsupnE:ont,vsupne:snt,Vvdash:lnt,vzigzag:ant,Wcirc:cnt,wcirc:unt,wedbar:fnt,wedge:hnt,Wedge:dnt,wedgeq:pnt,weierp:gnt,Wfr:vnt,wfr:mnt,Wopf:ynt,wopf:bnt,wp:wnt,wr:xnt,wreath:_nt,Wscr:Snt,wscr:knt,xcap:Cnt,xcirc:Tnt,xcup:Lnt,xdtri:Ent,Xfr:Ant,xfr:Mnt,xharr:Nnt,xhArr:Pnt,Xi:Ont,xi:$nt,xlarr:Dnt,xlArr:Rnt,xmap:znt,xnis:Int,xodot:Fnt,Xopf:qnt,xopf:Hnt,xoplus:Bnt,xotime:Wnt,xrarr:Unt,xrArr:jnt,Xscr:Gnt,xscr:Vnt,xsqcup:Knt,xuplus:Xnt,xutri:Ynt,xvee:Znt,xwedge:Jnt,Yacute:Qnt,yacute:trt,YAcy:ert,yacy:nrt,Ycirc:rrt,ycirc:irt,Ycy:ort,ycy:srt,yen:lrt,Yfr:art,yfr:crt,YIcy:urt,yicy:frt,Yopf:hrt,yopf:drt,Yscr:prt,yscr:grt,YUcy:vrt,yucy:mrt,yuml:yrt,Yuml:brt,Zacute:wrt,zacute:xrt,Zcaron:_rt,zcaron:Srt,Zcy:krt,zcy:Crt,Zdot:Trt,zdot:Lrt,zeetrf:Ert,ZeroWidthSpace:Art,Zeta:Mrt,zeta:Nrt,zfr:Prt,Zfr:Ort,ZHcy:$rt,zhcy:Drt,zigrarr:Rrt,zopf:zrt,Zopf:Irt,Zscr:Frt,zscr:qrt,zwj:Hrt,zwnj:Brt},Wrt="\xC1",Urt="\xE1",jrt="\xC2",Grt="\xE2",Vrt="\xB4",Krt="\xC6",Xrt="\xE6",Yrt="\xC0",Zrt="\xE0",Jrt="&",Qrt="&",tit="\xC5",eit="\xE5",nit="\xC3",rit="\xE3",iit="\xC4",oit="\xE4",sit="\xA6",lit="\xC7",ait="\xE7",cit="\xB8",uit="\xA2",fit="\xA9",hit="\xA9",dit="\xA4",pit="\xB0",git="\xF7",vit="\xC9",mit="\xE9",yit="\xCA",bit="\xEA",wit="\xC8",xit="\xE8",_it="\xD0",Sit="\xF0",kit="\xCB",Cit="\xEB",Tit="\xBD",Lit="\xBC",Eit="\xBE",Ait=">",Mit=">",Nit="\xCD",Pit="\xED",Oit="\xCE",$it="\xEE",Dit="\xA1",Rit="\xCC",zit="\xEC",Iit="\xBF",Fit="\xCF",qit="\xEF",Hit="\xAB",Bit="<",Wit="<",Uit="\xAF",jit="\xB5",Git="\xB7",Vit="\xA0",Kit="\xAC",Xit="\xD1",Yit="\xF1",Zit="\xD3",Jit="\xF3",Qit="\xD4",tot="\xF4",eot="\xD2",not="\xF2",rot="\xAA",iot="\xBA",oot="\xD8",sot="\xF8",lot="\xD5",aot="\xF5",cot="\xD6",uot="\xF6",fot="\xB6",hot="\xB1",dot="\xA3",pot='"',got='"',vot="\xBB",mot="\xAE",yot="\xAE",bot="\xA7",wot="\xAD",xot="\xB9",_ot="\xB2",Sot="\xB3",kot="\xDF",Cot="\xDE",Tot="\xFE",Lot="\xD7",Eot="\xDA",Aot="\xFA",Mot="\xDB",Not="\xFB",Pot="\xD9",Oot="\xF9",$ot="\xA8",Dot="\xDC",Rot="\xFC",zot="\xDD",Iot="\xFD",Fot="\xA5",qot="\xFF",Hot={Aacute:Wrt,aacute:Urt,Acirc:jrt,acirc:Grt,acute:Vrt,AElig:Krt,aelig:Xrt,Agrave:Yrt,agrave:Zrt,amp:Jrt,AMP:Qrt,Aring:tit,aring:eit,Atilde:nit,atilde:rit,Auml:iit,auml:oit,brvbar:sit,Ccedil:lit,ccedil:ait,cedil:cit,cent:uit,copy:fit,COPY:hit,curren:dit,deg:pit,divide:git,Eacute:vit,eacute:mit,Ecirc:yit,ecirc:bit,Egrave:wit,egrave:xit,ETH:_it,eth:Sit,Euml:kit,euml:Cit,frac12:Tit,frac14:Lit,frac34:Eit,gt:Ait,GT:Mit,Iacute:Nit,iacute:Pit,Icirc:Oit,icirc:$it,iexcl:Dit,Igrave:Rit,igrave:zit,iquest:Iit,Iuml:Fit,iuml:qit,laquo:Hit,lt:Bit,LT:Wit,macr:Uit,micro:jit,middot:Git,nbsp:Vit,not:Kit,Ntilde:Xit,ntilde:Yit,Oacute:Zit,oacute:Jit,Ocirc:Qit,ocirc:tot,Ograve:eot,ograve:not,ordf:rot,ordm:iot,Oslash:oot,oslash:sot,Otilde:lot,otilde:aot,Ouml:cot,ouml:uot,para:fot,plusmn:hot,pound:dot,quot:pot,QUOT:got,raquo:vot,reg:mot,REG:yot,sect:bot,shy:wot,sup1:xot,sup2:_ot,sup3:Sot,szlig:kot,THORN:Cot,thorn:Tot,times:Lot,Uacute:Eot,uacute:Aot,Ucirc:Mot,ucirc:Not,Ugrave:Pot,ugrave:Oot,uml:$ot,Uuml:Dot,uuml:Rot,Yacute:zot,yacute:Iot,yen:Fot,yuml:qot},Bot="&",Wot="'",Uot=">",jot="<",Got='"',j0={amp:Bot,apos:Wot,gt:Uot,lt:jot,quot:Got};var rh={};const Vot={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 Kot=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rh,"__esModule",{value:!0});var Jg=Kot(Vot),Xot=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 Yot(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in Jg.default&&(t=Jg.default[t]),Xot(t))}rh.default=Yot;var pc=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 lf=pc(U0),Zot=pc(Hot),Jot=pc(j0),Qg=pc(rh),Qot=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Or.decodeXML=G0(Jot.default);Or.decodeHTMLStrict=G0(lf.default);function G0(t){var n=V0(t);return function(r){return String(r).replace(Qot,n)}}var tv=function(t,n){return t<n?1:-1};Or.decodeHTML=function(){for(var t=Object.keys(Zot.default).sort(tv),n=Object.keys(lf.default).sort(tv),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=V0(lf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function V0(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Qg.default(parseInt(r.substr(3),16)):Qg.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Nn={},K0=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 tst=K0(j0),X0=Z0(tst.default),Y0=J0(X0);Nn.encodeXML=ey(X0);var est=K0(U0),ih=Z0(est.default),nst=J0(ih);Nn.encodeHTML=ist(ih,nst);Nn.encodeNonAsciiHTML=ey(ih);function Z0(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function J0(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 Q0=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,rst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function gc(t){return"&#x"+(t.length>1?rst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function ist(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(Q0,gc)}}var ty=new RegExp(Y0.source+"|"+Q0.source,"g");function ost(t){return t.replace(ty,gc)}Nn.escape=ost;function sst(t){return t.replace(Y0,gc)}Nn.escapeUTF8=sst;function ey(t){return function(n){return n.replace(ty,function(r){return t[r]||gc(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}})})(W0);function lst(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function ev(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 ast(t,n,r){return n&&ev(t.prototype,n),r&&ev(t,r),t}function ny(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=cst(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 cst(t,n){if(!!t){if(typeof t=="string")return nv(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 nv(t,n)}}function nv(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 ust=W0,rv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:fst()};function fst(){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 ia(0,5).forEach(function(n){ia(0,5).forEach(function(r){ia(0,5).forEach(function(o){return hst(n,r,o,t)})})}),ia(0,23).forEach(function(n){var r=n+232,o=ry(n*10+8);t[r]="#"+o+o+o}),t}function hst(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]=dst([u,f,h])}function ry(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function dst(t){var n=[],r=ny(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(ry(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function iv(t,n,r,o){var a;return n==="text"?a=mst(r,o):n==="display"?a=gst(t,r,o):n==="xterm256Foreground"?a=ya(t,o.colors[r]):n==="xterm256Background"?a=ba(t,o.colors[r]):n==="rgb"&&(a=pst(t,r)),a}function pst(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 ma(t,(r===38?"color:#":"background-color:#")+a)}function gst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&iy(t)},1:function(){return si(t,"b")},3:function(){return si(t,"i")},4:function(){return si(t,"u")},8:function(){return ma(t,"display:none")},9:function(){return si(t,"strike")},22:function(){return ma(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return sv(t,"i")},24:function(){return sv(t,"u")},39:function(){return ya(t,r.fg)},49:function(){return ba(t,r.bg)},53:function(){return ma(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=si(t,"blink"):29<n&&n<38?a=ya(t,r.colors[n-30]):39<n&&n<48?a=ba(t,r.colors[n-40]):89<n&&n<98?a=ya(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=ba(t,r.colors[8+(n-100)])),a}function iy(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function ia(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function vst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function ov(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 mst(t,n){return n.escapeXML?ust.encodeXML(t):t}function si(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function ma(t,n){return si(t,"span",n)}function ya(t,n){return si(t,"span","color:"+n)}function ba(t,n){return si(t,"span","background-color:"+n)}function sv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function yst(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=ny(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 bst(t,n,r){return n!=="text"&&(t=t.filter(vst(ov(r))),t.push({token:n,data:r,category:ov(r)})),t}var wst=function(){function t(n){lst(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},rv.colors,n.colors)),this.options=Object.assign({},rv,n),this.stack=[],this.stickyStack=[]}return ast(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=iv(a,h.token,h.data,u);p&&f.push(p)}),yst(r.join(""),u,function(h,p){var g=iv(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=bst(o.stickyStack,h,p))}),a.length&&f.push(iy(a)),f.join("")}}]),t}(),xst=wst;function _st(t,n){return n&&t.endsWith(n)}async function oy(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function sy(t){return new xst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const vc=BC(),Sst=tC(vc),kst={"h-full":"",class:"scrolls"},Cst={key:0,class:"scrolls scrolls-rounded task-error"},Tst=["innerHTML"],Lst={key:1,class:"scrolls scrolls-rounded task-error"},Est=["onClickPassive"],Ast={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Mst=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=sy(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(vc.value,m):m});function f(g){return g.startsWith(sf.value.root)?g.slice(sf.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",kst,[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",Cst,[ut("pre",{innerHTML:x.result.htmlError},null,8,Tst)])):(A=x.result)!=null&&A.error?(ht(),Mt("div",Lst,[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(_st)(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(oy)(L.file,h(L),p(L))},null,40,Est)),[[b,"Open in Editor",void 0,{bottom:!0}]]):ye("",!0)])}),128))])):ye("",!0)],4)])}),128)):(ht(),Mt("div",Ast," All tests passed in this file "))])}}});const Nst=Xo(Mst,[["__scopeId","data-v-cbc93645"]]),Pst={border:"b base","p-4":""},Ost=["innerHTML"],$st=["textContent"],Dst=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",Pst,[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,Ost)):(ht(),Mt("pre",{key:1,"data-type":"text",textContent:Jt(n.content)},null,8,$st))]))}}),Rst={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},zst={key:1,p6:""},Ist=ut("pre",{inline:""},"console.log(foo)",-1),Fst=oe({__name:"ViewConsoleOutput",setup(t){const n=St(()=>{const o=H0.value;if(o){const a=sy(vc.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?pT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=Dst;return(f=Z(n))!=null&&f.length?(ht(),Mt("div",Rst,[(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",zst,[fn(" Log something in your test and it would print here. (e.g. "),Ist,fn(") ")]))}}});var Lu={exports:{}},lv;function Yo(){return lv||(lv=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 hu=ze;for(++ze;ze<B&&v.test(q[ze]);++ze);Ke.push(new w(0,hu,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 yl(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 wc=function(){if(p&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),$n;function xc(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 bl(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 wl(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 xl(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 _l(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):Jy(i,At(e,i.line).text.length)}function Jy(e,i){var l=e.ch;return l==null||l>i?R(e.line,i):l<0?R(e.line,0):e}function wh(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(e,i[s]);return l}var Sl=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 Sl?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 Sl(i,this.maxLookAhead):i};function xh(e,i,l,s){var c=[e.state.modeGen],d={};Lh(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,Lh(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 _h(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=xh(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=Qy(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){_c(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 _c(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==""&&Sh(c,l.state);!d.eol();)Sc(c,d,l.state),d.start=d.pos}function Sh(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 Sc(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 kh=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function Ch(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=Sc(d,_,w.state),s&&N.push(new kh(_,v,yr(c.mode,w.state)));return s?N:new kh(_,v,w.state)}function Th(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 Lh(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==""&&Th(Sh(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,v&&_c(e,i,s,N.pos),N.pos=i.length,O=null):O=Th(Sc(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 Qy(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 Sl?_.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 tb(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var l=e.first,s=i-1;s>l;s--){var c=At(e,s).stateAfter;if(c&&(!(c instanceof Sl)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var Eh=!1,wr=!1;function eb(){Eh=!0}function nb(){wr=!0}function kl(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 rb(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function ib(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 ob(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 kl(v,d.from,w?null:d.to))}}return s}function sb(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 kl(v,w?null:d.from-i,d.to==null?null:d.to-i))}}return s}function kc(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=ob(l,c,v),w=sb(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=Ah(y)),w&&w!=y&&(w=Ah(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 kl(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(w)}return mt}function Ah(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 lb(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 Mh(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function Nh(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function Cl(e){return e.inclusiveLeft?-1:0}function Tl(e){return e.inclusiveRight?1:0}function Cc(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)||Cl(e)-Cl(i);if(d)return-d;var v=K(s.to,c.to)||Tl(e)-Tl(i);return v||i.id-e.id}function Ph(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||Cc(s,c.marker)<0)&&(s=c.marker);return s}function Oh(e){return Ph(e,!0)}function Ll(e){return Ph(e,!1)}function ab(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||Cc(s,d.marker)<0)&&(s=d.marker)}return s}function $h(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)||Cl(w.marker)-Cl(c),O=K(_.to,s)||Tl(w.marker)-Tl(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=Oh(e);)e=i.find(-1,!0).line;return e}function cb(e){for(var i;i=Ll(e);)e=i.find(1,!0).line;return e}function ub(e){for(var i,l;i=Ll(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Tc(e,i){var l=At(e,i),s=qn(l);return l==s?i:re(s)}function Dh(e,i){if(i>e.lastLine())return i;var l=At(e,i),s;if(!Ur(e,l))return i;for(;s=Ll(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&&Lc(e,i,s))return!0}}}function Lc(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Lc(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)&&Lc(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 El(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=Oh(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=Ll(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 Ec(e){var i=e.display,l=e.doc;i.maxLine=At(l,l.first),i.maxLineLength=El(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=El(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var no=function(e,i,l){this.text=e,Nh(this,i),this.height=l?l(this):1};no.prototype.lineNo=function(){return re(this)},Ze(no);function fb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Mh(e),Nh(e,l);var c=s?s(e):1;c!=e.height&&Dn(e,c)}function hb(e){e.parent=null,Mh(e)}var db={},pb={};function Rh(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?pb:db;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function zh(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=vb,bl(e.display.measure)&&(v=be(d,e.doc.direction))&&(s.addToken=yb(s.addToken,v)),s.map=[];var y=i!=e.display.externalMeasured&&re(d);bb(d,s,_h(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(xc(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 gb(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 vb(e,i,l,s,c,d,v){if(!!i){var y=e.splitSpaces?mb(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 mb(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 yb(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 Ih(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 bb(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]),Rh(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||Cc(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)Ih(i,0,yt[_e]);if(mt&&(mt.from||0)==w){if(Ih(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=Rh(l[_++],i.cm.options)}}}function Fh(e,i,l){this.line=i,this.rest=ub(i),this.size=this.rest?re(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ur(e,i)}function Al(e,i,l){for(var s=[],c,d=i;d<l;d=c){var v=new Fh(e.doc,At(e.doc,d),d);c=d+v.size,s.push(v)}return s}var ro=null;function wb(e){ro?ro.ops.push(e):e.ownsGroup=ro={ops:[e],delayedCallbacks:[]}}function xb(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 _b(e,i){var l=e.ownsGroup;if(!!l)try{xb(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(Sb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},v=0;v<l.length;++v)d(v)}}function Sb(){var e=os;os=null;for(var i=0;i<e.length;++i)e[i]()}function qh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?Cb(e,i):d=="gutter"?Bh(e,i,l,s):d=="class"?Ac(e,i):d=="widget"&&Tb(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 kb(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 Hh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):zh(e,i)}function Cb(e,i){var l=i.text.className,s=Hh(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,Ac(e,i)):l&&(i.text.className=l)}function Ac(e,i){kb(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 Bh(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 Tb(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);Wh(e,i,l)}function Lb(e,i,l,s){var c=Hh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Ac(e,i),Bh(e,i,l,s),Wh(e,i,s),i.node}function Wh(e,i,l){if(Uh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Uh(e,i.rest[s],i,l,!1)}function Uh(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"),Eb(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Oe(w,"redraw")}}function Eb(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 Ml(e){return e.lineSpace.offsetTop}function Mc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jh(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 Nc(e){return e.display.scroller.clientHeight-er(e)-e.display.barHeight}function Ab(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 Gh(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 Mb(e,i){i=qn(i);var l=re(i),s=e.display.externalMeasured=new Fh(e.doc,i,l);s.lineN=l;var c=s.built=zh(e,s);return s.text=c.pre,I(e.display.lineMeasure,c.pre),s}function Vh(e,i,l,s){return nr(e,io(e,i),l,s)}function Pc(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=Pc(e,l);s&&!s.text?s=null:s&&s.changes&&(qh(e,s,l,zc(e)),e.curOp.forceUpdate=!0),s||(s=Mb(e,i));var c=Gh(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||(Ab(e,i.view,i.rect),i.hasHeights=!0),v=Pb(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 Kh={left:0,right:0,top:0,bottom:0};function Xh(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 Nb(e,i){var l=Kh;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 Pb(e,i,l,s){var c=Xh(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():_=Nb(W(d,v,y).getClientRects(),s),_.left||_.right||v==0)break;y=v,v=v-1,w="right"}p&&g<11&&(_=Ob(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}:_=Kh}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 Ob(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wl(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 Yh(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 Zh(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Yh(e.display.view[i])}function as(e){Zh(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Jh(e){return x&&z?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Qh(e){return x&&z?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Oc(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 Nl(e,i,l,s,c){if(!c){var d=Oc(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var v=xr(i);if(s=="local"?v+=Ml(e.display):v-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();v+=y.top+(s=="window"?0:Qh(Gt(e)));var w=y.left+(s=="window"?0:Jh(Gt(e)));l.left+=w,l.right+=w}return l.top+=v,l.bottom+=v,l}function td(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Jh(Gt(e)),c-=Qh(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 Pl(e,i,l,s,c){return s||(s=At(e.doc,i.line)),Nl(e,s,Vh(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,Nl(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 ed(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)+Ml(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function $c(e,i,l,s,c){var d=R(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function Dc(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return $c(s.first,0,null,-1,-1);var c=Qn(s,l),d=s.first+s.size-1;if(c>d)return $c(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=$b(e,v,c,i,l),w=ab(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 nd(e,i,l,s){s-=Oc(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 rd(e,i,l,s){l||(l=io(e,i));var c=Nl(e,i,nr(e,l,s),"line").top;return nd(e,i,l,c)}function Rc(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function $b(e,i,l,s,c){c-=xr(i);var d=io(e,i),v=Oc(i),y=0,w=i.text.length,_=!0,N=be(i,e.doc.direction);if(N){var O=(e.options.lineWrapping?Rb:Db)(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,Rc(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),$c(l,X,ct,mt,s-rt)}function Db(e,i,l,s,c,d,v){var y=Xt(function(O){var B=c[O],q=B.level!=1;return Rc(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);Rc(N,d,v,!0)&&N.top>v&&(w=c[y-1])}return w}function Rb(e,i,l,s,c,d,v){var y=nd(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 zc(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:Ic(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Ic(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function id(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 Fc(e){var i=e.doc,l=id(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=Dc(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-jh(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&&Tc(e.doc,i)<c.viewTo&&Gr(e);else if(l<=c.viewFrom)wr&&Dh(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=Ol(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=Ol(e,i,i,-1);v?(c.view=c.view.slice(0,v.index),c.viewTo=v.lineN):Gr(e)}else{var y=Ol(e,i,i,-1),w=Ol(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Al(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 Ol(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(;Tc(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 zb(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Al(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Al(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(Al(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,_i(e,l)))),s.viewTo=l}function od(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 sd(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&&qc(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&qc(e,w.head,c);_||Ib(e,w,d)}}return s}function qc(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=Pl(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 $l(e,i){return e.top-i.top||e.left-i.left}function Ib(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),v=jh(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 Pl(e,R(yt,Ee),"div",Pt,an)}function wn(Ee,an,He){var Pe=rd(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,hu=(_?Jr:wo)&&rr,Cr=ze?y:(Ae?Ce:cn).left,Li=hu?w:(Ae?cn:Ce).right;N(Cr,Ce.top,Li-Cr,Ce.bottom)}else{var Ei,Qe,xo,du;Ae?(Ei=_&&wo&&Ke?y:Ce.left,Qe=_?w:wn(Ee,He,"before"),xo=_?y:wn(an,He,"after"),du=_&&Jr&&rr?w:cn.right):(Ei=_?wn(Ee,He,"before"):y,Qe=!_&&wo&&Ke?w:Ce.right,xo=!_&&Jr&&rr?y:cn.left,du=_?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,du-xo,cn.bottom)}(!pe||$l(Ce,pe)<0)&&(pe=Ce),$l(cn,pe)<0&&(pe=cn),(!Re||$l(Ce,Re)<0)&&(Re=Ce),$l(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 Hc(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 ld(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Wc(e))}function Bc(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&lo(e))},100)}function Wc(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()),Hc(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 Dl(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,_),ad(y.line),y.rest))for(var X=0;X<y.rest.length;X++)ad(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 ad(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 Rl(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Ml(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 Fb(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-Ml(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 qb(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 _=Uc(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 Hb(e,i){var l=Uc(e,i);l.scrollTop!=null&&fs(e,l.scrollTop),l.scrollLeft!=null&&Si(e,l.scrollLeft)}function Uc(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=Nc(e),v={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Mc(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 jc(e,i){i!=null&&(zl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function ao(e){zl(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)&&zl(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function Bb(e,i){zl(e),e.curOp.scrollToPos=i}function zl(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=ed(e,i.from),s=ed(e,i.to);cd(e,l,s,i.margin)}}function cd(e,i,l,s){var c=Uc(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||Vc(e,{top:i}),ud(e,i,!0),a&&Vc(e),ps(e,100))}function ud(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,gd(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+Mc(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;fd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Dl(e),fd(e,hs(e)),l=e.display.barWidth,s=e.display.barHeight}function fd(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 hd={native:ki,null:ds};function dd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ft(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new hd[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 Wb=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:++Wb,markArrays:null},wb(e.curOp)}function Ti(e){var i=e.curOp;i&&_b(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;Ub(l)})}function Ub(e){for(var i=e.ops,l=0;l<i.length;l++)jb(i[l]);for(var s=0;s<i.length;s++)Gb(i[s]);for(var c=0;c<i.length;c++)Vb(i[c]);for(var d=0;d<i.length;d++)Kb(i[d]);for(var v=0;v<i.length;v++)Xb(i[v])}function jb(e){var i=e.cm,l=i.display;Zb(i),e.updateMaxLine&&Ec(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 Il(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Gb(e){e.updatedDisplay=e.mustUpdate&&Gc(e.cm,e.update)}function Vb(e){var i=e.cm,l=i.display;e.updatedDisplay&&Dl(i),e.barMeasure=hs(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Vh(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 Kb(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&&Xc(i,e.barMeasure),e.selectionChanged&&Hc(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&ld(e.cm)}function Xb(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&pd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&ud(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Si(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=qb(i,Ft(s,e.scrollToPos.from),Ft(s,e.scrollToPos.to),e.scrollToPos.margin);Fb(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(Yb,e))}function Yb(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=xh(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&&_c(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 Il=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Rl(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=zc(e),this.events=[]};Il.prototype.signal=function(e,i){Ye(e,i)&&this.events.push(arguments)},Il.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};function Zb(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 Jb(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 Qb(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 Gc(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&&od(e)==0)return!1;vd(e)&&(Gr(e),i.dims=zc(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=Tc(e.doc,d),v=Dh(e.doc,v));var y=d!=l.viewFrom||v!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;zb(e,d,v),l.viewOffset=xr(At(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=od(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=Jb(e);return w>4&&(l.lineDiv.style.display="none"),tw(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Qb(_),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 pd(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+Mc(e.display)-Nc(e),l.top)}),i.visible=Rl(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Rl(e.display,e.doc,l));if(!Gc(e,i))break;Dl(e);var c=hs(e);cs(e),co(e,c),Xc(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 Vc(e,i){var l=new Il(e,i);if(Gc(e,l)){Dl(e),pd(e,l);var s=hs(e);cs(e),co(e,s),Xc(e,s),l.finish()}}function tw(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=Lb(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),qh(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 Kc(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Oe(e,"gutterChanged",e)}function Xc(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 gd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=Ic(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 vd(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",Kc(e.display),!0}return!1}function Yc(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 md(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",Kc(e)}function gs(e){md(e.display),on(e),gd(e)}function ew(e,i,l,s){var c=this;this.input=l,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=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=Yc(s.gutters,s.lineNumbers),md(c),l.init(c)}var Fl=0,Sr=null;p?Sr=-.53:a?Sr=15:x?Sr=-.7:A&&(Sr=-1/3);function yd(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 nw(e){var i=yd(e);return i.x*=Sr,i.y*=Sr,i}function bd(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=yd(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),Vc(e,{top:X,bottom:rt})}Fl<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*Fl+_t)/(Fl+1),++Fl)}},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 wd(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 Zc(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ie(wd(c.anchor,i),wd(c.head,i)))}return Bn(e.cm,l,e.sel.primIndex)}function xd(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 rw(e,i,l){for(var s=[],c=R(e.first,0),d=c,v=0;v<i.length;v++){var y=i[v],w=xd(y.from,c,d),_=xd(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 Jc(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 _d(e,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Qc(e,i,l,s){function c(_t){return l?l[_t]:null}function d(_t,yt,Tt){fb(_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(_d(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 Sd(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,Fc(e),Jc(e),kd(e),e.options.direction=i.direction,e.options.lineWrapping||Ec(e),e.options.mode=i.modeOption,on(e)}function kd(e){(e.doc.direction=="rtl"?Et:ft)(e.display.lineDiv,"CodeMirror-rtl")}function iw(e){bn(e,function(){kd(e),on(e)})}function ql(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 tu(e,i){var l={from:Vt(i.from),to:Kr(i),text:br(e,i.from,i.to)};return Ld(e,l,i.from.line,i.to.line+1),Xr(e,function(s){return Ld(s,l,i.from.line,i.to.line+1)},!0),l}function Cd(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function ow(e,i){if(i)return Cd(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 Td(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=ow(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(tu(e,i));else{var w=lt(c.done);for((!w||!w.ranges)&&Hl(e.sel,c.done),v={changes:[tu(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 sw(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 lw(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||sw(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:Hl(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&Cd(c.undone)}function Hl(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Ld(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 aw(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 cw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(aw(l[c]));return s}function Ed(e,i){var l=cw(e,i),s=kc(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 eu(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 Bl(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ve(e,new An([eu(e.sel.primary(),i,l,c)],0),s)}function Ad(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]=eu(e.sel.ranges[d],i[d],null,c);var v=Bn(e.cm,s,e.sel.primIndex);Ve(e,v,l)}function nu(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 Md(e,i,l,s){Ve(e,Vr(i,l),s)}function uw(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 Nd(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Wl(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){Wl(e,i,l),lw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Wl(e,i,l){(Ye(e,"beforeSelectionChange")||e.cm&&Ye(e.cm,"beforeSelectionChange"))&&(i=uw(e,i,l));var s=l&&l.bias||(K(i.primary().head,e.sel.primary().head)<0?-1:1);Pd(e,$d(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ao(e.cm)}function Pd(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,yl(e.cm)),Oe(e,"cursorActivity",e))}function Od(e){Pd(e,$d(e,e.sel,null,!1))}function $d(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=Ul(e,v.anchor,y&&y.anchor,l,s),_=v.head==v.anchor?w:Ul(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=Dd(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=Dd(e,q,s,q.line==i.line?d:null)),q?fo(e,q,i,s,c):null}}return i}function Ul(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 Dd(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 Rd(e){e.setSelection(R(e.firstLine(),0),R(e.lastLine()),P)}function zd(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=zd(e,i,!0),!i))){var s=Eh&&!l&&lb(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Id(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Id(e,i)}}function Id(e,i){if(!(i.text.length==1&&i.text[0]==""&&K(i.from,i.to)==0)){var l=Zc(e,i);Td(e,i,l,e.cm?e.cm.curOp.id:NaN),ms(e,i,l,kc(e,i));var s=[];Xr(e,function(c,d){!d&&Ct(s,c.history)==-1&&(Bd(c.history,i),s.push(c.history)),ms(c,i,null,kc(c,i))})}}function jl(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(Hl(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=[];Hl(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&&!zd(e,ct,!1))return y.length=0,{};N.push(tu(e,ct));var mt=rt?Zc(e,ct):lt(y);ms(e,ct,mt,Ed(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&&(Bd(yt.history,ct),_t.push(yt.history)),ms(yt,ct,null,Ed(yt,ct))})},q=d.changes.length-1;q>=0;--q){var X=B(q);if(X)return X.v}}}}function Fd(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){Fd(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);Fd(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=Zc(e,i)),e.cm?fw(e.cm,i,s):Qc(e,i,s),Wl(e,l,P),e.cantEdit&&Ul(e,R(e.firstLine(),0))&&(e.cantEdit=!1)}}function fw(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&&yl(e),Qc(s,i,l,id(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var X=El(q);X>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),tb(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&&!_d(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 qd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function Hd(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++)qd(d.ranges[y].anchor,i,l,s),qd(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 Bd(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Hd(e.done,l,s,c),Hd(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,hb(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(){Wd(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,Wd(l,s,c),Oe(l,"lineWidgetChanged",l,e,re(s))}))},Ze(xs);function Wd(e,i,l){xr(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jc(e,l)}function hw(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&&jc(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Oe(d,"lineWidgetAdded",d,c,typeof i=="number"?i:re(i)),c}var Ud=0,Yr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Ud};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=rb(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=El(_);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&&Od(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=Pc(s,d);if(v&&(Yh(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 dw(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($h(e,i.line,i,l,d)||i.line!=l.line&&$h(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");nb()}d.addToHistory&&Td(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),ib(O,new kl(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&&(eb(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++Ud,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&&Od(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 dw(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 jd(e){return e.findMarks(R(e.first,0),e.clipPos(R(e.lastLine())),function(i){return i.parent})}function pw(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 gw(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 vw=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 ql(null),this.id=++vw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Qc(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){Md(this,Ft(this,typeof e=="number"?R(e,i||0):e),null,l)}),setSelection:De(function(e,i,l){Md(this,Ft(this,e),Ft(this,i||e),l)}),extendSelection:De(function(e,i,l){Bl(this,Ft(this,e),i&&Ft(this,i),l)}),extendSelections:De(function(e,i){Ad(this,wh(this,e),i)}),extendSelectionsBy:De(function(e,i){var l=gt(this.sel.ranges,e);Ad(this,wh(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"&&rw(this,s,i),w=s.length-1;w>=0;w--)ho(this,s[w]);y?Nd(this,y):this.cm&&ao(this.cm)}),undo:De(function(){jl(this,"undo")}),redo:De(function(){jl(this,"redo")}),undoSelection:De(function(){jl(this,"undo",!0)}),redoSelection:De(function(){jl(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 ql(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 ql(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 hw(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}],pw(s,jd(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),gw(jd(this));break}}if(e.history==this.history){var s=[e.id];Xr(e,function(c){return s.push(c.id)},!0),e.history=new ql(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&&iw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var Gd=0;function mw(e){var i=this;if(Vd(i),!(Se(i,e)||_r(i.display,e))){Ge(e),p&&(Gd=+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),Nd(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()),Wl(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 yw(e,i){if(p&&(!e.state.draggingText||+new Date-Gd<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 bw(e,i){var l=xi(e,i);if(!!l){var s=document.createDocumentFragment();qc(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 Vd(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Kd(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 Xd=!1;function ww(){Xd||(xw(),Xd=!0)}function xw(){var e;bt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Kd(_w)},100))}),bt(window,"blur",function(){return Kd(lo)})}function _w(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 Gl=65;Gl<=90;Gl++)Zr[Gl]=String.fromCharCode(Gl);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 Sw(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 kw(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(" "),Sw),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=Vl(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 Yd(e){var i=typeof e=="string"?e:Zr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Zd(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 Jd(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),Zd(l,e,i))}function Vl(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 ru(e,i,l){var s=se(e.text,i+l,l);return s<0||s>e.text.length?null:s}function iu(e,i,l){var s=ru(e,i.ch,l);return s==null?null:new R(i.line,s,l<0?"after":"before")}function ou(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"&&(_=ru(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 Cw(e,i,l,s){var c=be(i,e.doc.direction);if(!c)return iu(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 iu(i,l,s);var y=function(mt,_t){return ru(i,mt instanceof R?mt.ch:mt,_t)},w,_=function(mt){return e.options.lineWrapping?(w=w||io(e,i),rd(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:Rd,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 Qd(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return tp(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return Tw(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/)?tp(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 Qd(e,i){var l=At(e.doc,i),s=qn(l);return s!=l&&(i=re(s)),ou(!0,e,s,i,1)}function Tw(e,i){var l=At(e.doc,i),s=cb(l);return s!=l&&(i=re(s)),ou(!0,e,l,i,-1)}function tp(e,i){var l=Qd(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 Kl(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 Lw(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 Ew=new st;function Ts(e,i,l,s){var c=e.state.keySeq;if(c){if(Yd(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:Ew.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),ep(e,c+" "+i,l,s))return!0}return ep(e,i,l,s)}function ep(e,i,l,s){var c=Lw(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Oe(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ge(l),Hc(e)),!!c}function np(e,i){var l=Jd(i,!0);return l?i.shiftKey&&!e.state.keySeq?Ts(e,"Shift-"+l,i,function(s){return Kl(e,s,!0)})||Ts(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Kl(e,s)}):Ts(e,l,i,function(s){return Kl(e,s)}):!1}function Aw(e,i,l){return Ts(e,"'"+l+"'",i,function(s){return Kl(e,s,!0)})}var su=null;function rp(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=np(i,e);M&&(su=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)&&Mw(i)}}function Mw(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 ip(e){e.keyCode==16&&(this.doc.sel.shift=!1),Se(this,e)}function op(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==su){su=null,Ge(e);return}if(!(M&&(!e.which||e.which<10)&&np(i,e))){var c=String.fromCharCode(s==null?l:s);c!="\b"&&(Aw(i,e,c)||i.display.input.onKeyPress(e))}}}var Nw=400,lu=function(e,i,l){this.time=e,this.pos=i,this.button=l};lu.prototype.compare=function(e,i,l){return this.time+Nw>e&&K(i,this.pos)==0&&l==this.button};var Ls,Es;function Pw(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 lu(l,e,i),Ls=null,"double"):(Ls=new lu(l,e,i),Es=null,"single")}function sp(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(!au(i,e)){var s=xi(i,e),c=ts(e),d=s?Pw(s,c):"single";ne(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&Ow(i,c,s,d,e))&&(c==1?s?Dw(i,s,d,e):rn(e)==l.scroller&&Ge(e):c==2?(s&&Bl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(e):Bc(i)))}}}function Ow(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,Zd(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 $w(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 Dw(e,i,l,s){p?setTimeout(J(ld,e),0):e.curOp.focus=wt(Gt(e));var c=$w(e,l,s),d=e.doc.sel,v;e.options.dragDrop&&wc&&!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)?Rw(e,s,i,c):zw(e,s,i,c)}function Rw(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:Bc(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||Bl(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 lp(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 zw(e,i,l,s){p&&Bc(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=lp(e,l,s.unit);s.extend?v=eu(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):nu(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=lp(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]=Iw(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=Rl(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 Iw(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 ap(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 au(e,i){return ap(e,i,"gutterClick",!0)}function cp(e,i){_r(e.display,i)||Fw(e,i)||Se(e,i,"contextmenu")||vt||e.display.input.onContextMenu(i)}function Fw(e,i){return Ye(e,"gutterContextMenu")?ap(e,i,"gutterContextMenu",!1):!1}function up(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"}},fp={},Xl={};function qw(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,Jc(s)},!0),l("indentUnit",2,Jc,!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",gb,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){up(s),gs(s)},!0),l("keyMap","default",function(s,c,d){var v=Vl(c),y=d!=yo&&Vl(d);y&&y.detach&&y.detach(s,v),v.attach&&v.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,Bw,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Yc(c,s.options.lineNumbers),gs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Ic(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return co(s)},!0),l("scrollbarStyle","native",function(s){dd(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=Yc(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,Hw),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 Hw(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 Bw(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"),Ec(e)),Fc(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(fp,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 ew(e,s,c,i);d.wrapper.CodeMirror=this,up(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),dd(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),Ww(this),ww(),Ci(this),this.curOp.forceUpdate=!0,Sd(this,s),i.autofocus&&!D||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Wc(l)},20):lo(this);for(var v in Xl)Xl.hasOwnProperty(v)&&Xl[v](this,i[v],yo);vd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<cu.length;++y)cu[y](this);Ti(this),m&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}we.defaults=fp,we.optionHandlers=Xl;function Ww(e){var i=e.display;bt(i.scroller,"mousedown",$e(e,sp)),p&&g<11?bt(i.scroller,"dblclick",$e(e,function(w){if(!Se(e,w)){var _=xi(e,w);if(!(!_||au(e,w)||_r(e.display,w))){Ge(w);var N=e.findWordAt(_);Bl(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 cp(e,w)}),bt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||cp(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)&&!au(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 bd(e,w)}),bt(i.scroller,"DOMMouseScroll",function(w){return bd(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)||(bw(e,w),vr(w))},start:function(w){return yw(e,w)},drop:$e(e,mw),leave:function(w){Se(e,w)||Vd(e)}};var y=i.input.getField();bt(y,"keyup",function(w){return ip.call(e,w)}),bt(y,"keydown",$e(e,rp)),bt(y,"keypress",$e(e,op)),bt(y,"focus",function(w){return Wc(e,w)}),bt(y,"blur",function(w){return lo(e,w)})}var cu=[];we.defineInitHook=function(e){return cu.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);nu(c,X,new ie(ct,ct));break}}}var Wn=null;function Yl(e){Wn=e}function uu(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&&dp(e,i),ao(e),e.curOp.updateInput<2&&(e.curOp.updateInput=O),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function hp(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 uu(i,l,0,null,"paste")}),!0}function dp(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 pp(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 gp(e,i,l,s){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!i)}function vp(){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"),gp(e),i}function Uw(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"](Vl(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&&nu(this.doc,v,new ie(w,B[v].to()),P)}}}),getTokenAt:function(s,c){return Ch(this,s,c)},getLineTokens:function(s,c){return Ch(this,R(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=_h(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 Pl(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=td(this,s,c||"page"),Dc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=td(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 Nl(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&&Hb(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Je(rp),triggerOnKeyPress:Je(op),triggerOnKeyUp:ip,triggerOnMouseDown:Je(sp),execCommand:function(s){if(Cs.hasOwnProperty(s))return Cs[s].call(null,this)},triggerElectric:Je(function(s){dp(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=fu(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()?fu(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=fu(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,_=mp(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=mp(d,O,s,c);return c=="page"&&N==v.sel.primary()&&jc(d,Pl(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:Nc(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?Bb(this,s):cd(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&&Zh(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),Kc(this.display),(s==null||Math.abs(s-oo(this.display))>.5||this.options.lineWrapping)&&Fc(this),ve(this,"refresh",this)}),swapDoc:Je(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Sd(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 fu(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=Cw(e.cm,y,i,l):yt=iu(y,i,l);if(yt==null)if(!_t&&_())i=ou(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=Ul(e,i,d,v,!0);return It(d,mt)&&(mt.hitSide=!0),mt}function mp(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 _;_=Dc(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,gp(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)||hp(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())Yl({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=pp(s);Yl({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=vp(),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=sd(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=Zl(i,e.anchorNode,e.anchorOffset),v=Zl(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&&yp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&yp(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&&jw(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Zl(i,e.anchorNode,e.anchorOffset),s=Zl(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(Gw(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,uu)(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 yp(e,i){var l=Pc(e,i.line);if(!l||l.hidden)return null;var s=At(e.doc,i.line),c=Gh(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=Xh(c.map,i.ch,v);return w.offset=w.collapse=="right"?w.end:w.start,w}function jw(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 Gw(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 Zl(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 Vw(d,i,l)}}function Vw(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)||hp(v,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(v){if(!Se(s,v)){if(s.somethingSelected())Yl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=pp(s);Yl({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=vp(),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=sd(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(){uu(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,Rd)(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 Kw(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 Xw(e){e.off=je,e.on=bt,e.wheelEventPixels=nw,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=hd,e.Pos=R,e.cmpPos=K,e.modes=Fn,e.mimeModes=Hr,e.resolveMode=yn,e.getMode=mr,e.modeExtensions=Br,e.extendMode=_l,e.copyState=yr,e.startState=ns,e.innerMode=Wr,e.commands=Cs,e.keyMap=kr,e.keyName=Jd,e.isModifierKey=Yd,e.lookupKey=vo,e.normalizeKeyMap=kw,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}qw(we),Uw(we);var Yw="iter insert remove copy getEditor constructor".split(" ");for(var Jl in sn.prototype)sn.prototype.hasOwnProperty(Jl)&&Ct(Yw,Jl)<0&&(we.prototype[Jl]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[Jl]));return Ze(sn),we.inputStyles={textarea:Te,contenteditable:ae},we.defineMode=function(e){!we.defaults.mode&&e!="null"&&(we.defaults.mode=e),xl.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=Kw,Xw(we),we.version="5.65.9",we})}(Lu)),Lu.exports}var qst=Yo(),Hst={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,bl,Ct,J,V):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form",T=="class"?T:$),xl,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(wl,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,yl)}function yl(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,xc)}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(wc,"]");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 wc(){return I(rn,$n)}function $n(T,$){if($=="=")return k(P)}function xc(T){if(T==",")return k(vr)}function Qi(T,$){if(T=="keyword b"&&$=="else")return k(tt("form","else"),Ct,V)}function bl(T,$){if($=="await")return k(bl);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 wl(T,$){if(T=="keyword"||T=="variable")return U.marked="type",k(wl);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"?xl(T,$):to(T,$)}function xl(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(_l,"}"),At,st(";")):I(Ct)}function _l(T,$){if($=="as")return U.marked="keyword",k(st("variable"));if(T=="variable")return I(P,_l)}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 av={exports:{}},cv;function ly(){return cv||(cv=1,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})})}()),av.exports}ly();(function(t,n){(function(r){r(Yo(),ly(),Hst.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 Bst(t,n,r={}){const o=qst.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}),Nf(o)}const Wst={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},ay=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=Q1(),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=QC(o,"modelValue",r,{passive:!0}),p=ll();return n({cm:p}),ul(async()=>{p.value=Bst(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",Wst,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),Ust=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};GC(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",p0(dt,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await oy(D[0].file,j.line,j.column)};it.appendChild(dt),x.push([dt,vt,()=>Jf(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=ay;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"])}}}),jst=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))}}),Gst=["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,Gst))}}),Vst={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Kst={"p-4":"",relative:""},Xst=ut("p",null,"Module Info",-1),Yst={op50:"","font-mono":"","text-sm":""},Zst={key:0,"p-5":""},Jst={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Qst=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),tlt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),elt={key:0},nlt={p:"x3 y-1","bg-overlay":"",border:"base b t"},rlt=oe({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=yC(()=>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 wC("Escape",()=>{n("close")}),(p,g)=>{const m=Zo,b=ay;return ht(),Mt("div",Vst,[ut("div",Kst,[Xst,ut("p",Yst,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",Jst,[Qst,tlt,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",elt,[ut("div",nlt," 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",Zst," No transform result found for this module. "))])}}});var af="http://www.w3.org/1999/xhtml";const uv={svg:"http://www.w3.org/2000/svg",xhtml:af,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),uv.hasOwnProperty(n)?{space:uv[n],local:t}:t}function ilt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===af&&n.documentElement.namespaceURI===af?n.createElement(t):n.createElementNS(r,t)}}function olt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cy(t){var n=mc(t);return(n.local?olt:ilt)(n)}function slt(){}function oh(t){return t==null?slt:function(){return this.querySelector(t)}}function llt(t){typeof t!="function"&&(t=oh(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 alt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function clt(){return[]}function uy(t){return t==null?clt:function(){return this.querySelectorAll(t)}}function ult(t){return function(){return alt(t.apply(this,arguments))}}function flt(t){typeof t=="function"?t=ult(t):t=uy(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 fy(t){return function(){return this.matches(t)}}function hy(t){return function(n){return n.matches(t)}}var hlt=Array.prototype.find;function dlt(t){return function(){return hlt.call(this.children,t)}}function plt(){return this.firstElementChild}function glt(t){return this.select(t==null?plt:dlt(typeof t=="function"?t:hy(t)))}var vlt=Array.prototype.filter;function mlt(){return Array.from(this.children)}function ylt(t){return function(){return vlt.call(this.children,t)}}function blt(t){return this.selectAll(t==null?mlt:ylt(typeof t=="function"?t:hy(t)))}function wlt(t){typeof t!="function"&&(t=fy(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 dy(t){return new Array(t.length)}function xlt(){return new On(this._enter||this._groups.map(dy),this._parents)}function Fa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Fa.prototype={constructor:Fa,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 _lt(t){return function(){return t}}function Slt(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 Fa(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function klt(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 Fa(t,u[h]);for(h=0;h<m;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function Clt(t){return t.__data__}function Tlt(t,n){if(!arguments.length)return Array.from(this,Clt);var r=n?klt:Slt,o=this._parents,a=this._groups;typeof t!="function"&&(t=_lt(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=Llt(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 Llt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Elt(){return new On(this._exit||this._groups.map(dy),this._parents)}function Alt(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 Mlt(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 Nlt(){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 Plt(t){t||(t=Olt);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 Olt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function $lt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Dlt(){return Array.from(this)}function Rlt(){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 zlt(){let t=0;for(const n of this)++t;return t}function Ilt(){return!this.node()}function Flt(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 qlt(t){return function(){this.removeAttribute(t)}}function Hlt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Blt(t,n){return function(){this.setAttribute(t,n)}}function Wlt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Ult(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function jlt(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 Glt(t,n){var r=mc(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?Hlt:qlt:typeof n=="function"?r.local?jlt:Ult:r.local?Wlt:Blt)(r,n))}function py(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Vlt(t){return function(){this.style.removeProperty(t)}}function Klt(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Xlt(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Ylt(t,n,r){return arguments.length>1?this.each((n==null?Vlt:typeof n=="function"?Xlt:Klt)(t,n,r==null?"":r)):Uo(this.node(),t)}function Uo(t,n){return t.style.getPropertyValue(n)||py(t).getComputedStyle(t,null).getPropertyValue(n)}function Zlt(t){return function(){delete this[t]}}function Jlt(t,n){return function(){this[t]=n}}function Qlt(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function tat(t,n){return arguments.length>1?this.each((n==null?Zlt:typeof n=="function"?Qlt:Jlt)(t,n)):this.node()[t]}function gy(t){return t.trim().split(/^|\s+/)}function sh(t){return t.classList||new vy(t)}function vy(t){this._node=t,this._names=gy(t.getAttribute("class")||"")}vy.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 my(t,n){for(var r=sh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function yy(t,n){for(var r=sh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function eat(t){return function(){my(this,t)}}function nat(t){return function(){yy(this,t)}}function rat(t,n){return function(){(n.apply(this,arguments)?my:yy)(this,t)}}function iat(t,n){var r=gy(t+"");if(arguments.length<2){for(var o=sh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?rat:n?eat:nat)(r,n))}function oat(){this.textContent=""}function sat(t){return function(){this.textContent=t}}function lat(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function aat(t){return arguments.length?this.each(t==null?oat:(typeof t=="function"?lat:sat)(t)):this.node().textContent}function cat(){this.innerHTML=""}function uat(t){return function(){this.innerHTML=t}}function fat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function hat(t){return arguments.length?this.each(t==null?cat:(typeof t=="function"?fat:uat)(t)):this.node().innerHTML}function dat(){this.nextSibling&&this.parentNode.appendChild(this)}function pat(){return this.each(dat)}function gat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vat(){return this.each(gat)}function mat(t){var n=typeof t=="function"?t:cy(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function yat(){return null}function bat(t,n){var r=typeof t=="function"?t:cy(t),o=n==null?yat:typeof n=="function"?n:oh(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function wat(){var t=this.parentNode;t&&t.removeChild(this)}function xat(){return this.each(wat)}function _at(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Sat(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function kat(t){return this.select(t?Sat:_at)}function Cat(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Tat(t){return function(n){t.call(this,n,this.__data__)}}function Lat(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 Eat(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 Aat(t,n,r){return function(){var o=this.__on,a,u=Tat(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 Mat(t,n,r){var o=Lat(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?Aat:Eat,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function by(t,n,r){var o=py(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 Nat(t,n){return function(){return by(this,t,n)}}function Pat(t,n){return function(){return by(this,t,n.apply(this,arguments))}}function Oat(t,n){return this.each((typeof n=="function"?Pat:Nat)(t,n))}function*$at(){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 wy=[null];function On(t,n){this._groups=t,this._parents=n}function pl(){return new On([[document.documentElement]],wy)}function Dat(){return this}On.prototype=pl.prototype={constructor:On,select:llt,selectAll:flt,selectChild:glt,selectChildren:blt,filter:wlt,data:Tlt,enter:xlt,exit:Elt,join:Alt,merge:Mlt,selection:Dat,order:Nlt,sort:Plt,call:$lt,nodes:Dlt,node:Rlt,size:zlt,empty:Ilt,each:Flt,attr:Glt,style:Ylt,property:tat,classed:iat,text:aat,html:hat,raise:pat,lower:vat,append:mat,insert:bat,remove:xat,clone:kat,datum:Cat,on:Mat,dispatch:Oat,[Symbol.iterator]:$at};function _n(t){return typeof t=="string"?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],wy)}function Rat(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Ar(t,n){if(t=Rat(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 zat={value:()=>{}};function gl(){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 wa(r)}function wa(t){this._=t}function Iat(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}})}wa.prototype=gl.prototype={constructor:wa,on:function(t,n){var r=this._,o=Iat(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=Fat(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]=fv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=fv(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 wa(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 Fat(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function fv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=zat,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const qat={passive:!1},nl={capture:!0,passive:!1};function Eu(t){t.stopImmediatePropagation()}function Po(t){t.preventDefault(),t.stopImmediatePropagation()}function xy(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 _y(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 oa=t=>()=>t;function cf(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}})}cf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Hat(t){return!t.ctrlKey&&!t.button}function Bat(){return this.parentNode}function Wat(t,n){return n==null?{x:t.x,y:t.y}:n}function Uat(){return navigator.maxTouchPoints||"ontouchstart"in this}function jat(){var t=Hat,n=Bat,r=Wat,o=Uat,a={},u=gl("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,qat).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),xy(D.view),Eu(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),_y(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]))&&(Eu(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])&&(Eu(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 cf("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 cf(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:oa(!!D),x):t},x.container=function(D){return arguments.length?(n=typeof D=="function"?D:oa(D),x):n},x.subject=function(D){return arguments.length?(r=typeof D=="function"?D:oa(D),x):r},x.touchable=function(D){return arguments.length?(o=typeof D=="function"?D:oa(!!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 lh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function Sy(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function vl(){}var rl=.7,qa=1/rl,Oo="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gat=/^#([0-9a-f]{3,8})$/,Vat=new RegExp(`^rgb\\(${Oo},${Oo},${Oo}\\)$`),Kat=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),Xat=new RegExp(`^rgba\\(${Oo},${Oo},${Oo},${il}\\)$`),Yat=new RegExp(`^rgba\\(${ur},${ur},${ur},${il}\\)$`),Zat=new RegExp(`^hsl\\(${il},${ur},${ur}\\)$`),Jat=new RegExp(`^hsla\\(${il},${ur},${ur},${il}\\)$`),hv={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};lh(vl,ol,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:dv,formatHex:dv,formatHex8:Qat,formatHsl:tct,formatRgb:pv,toString:pv});function dv(){return this.rgb().formatHex()}function Qat(){return this.rgb().formatHex8()}function tct(){return ky(this).formatHsl()}function pv(){return this.rgb().formatRgb()}function ol(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Gat.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?gv(n):r===3?new Sn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?sa(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?sa(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=Vat.exec(t))?new Sn(n[1],n[2],n[3],1):(n=Kat.exec(t))?new Sn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Xat.exec(t))?sa(n[1],n[2],n[3],n[4]):(n=Yat.exec(t))?sa(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Zat.exec(t))?yv(n[1],n[2]/100,n[3]/100,1):(n=Jat.exec(t))?yv(n[1],n[2]/100,n[3]/100,n[4]):hv.hasOwnProperty(t)?gv(hv[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function gv(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function sa(t,n,r,o){return o<=0&&(t=n=r=NaN),new Sn(t,n,r,o)}function ect(t){return t instanceof vl||(t=ol(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function uf(t,n,r,o){return arguments.length===1?ect(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}lh(Sn,uf,Sy(vl,{brighter(t){return t=t==null?qa:Math.pow(qa,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),Ha(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vv,formatHex:vv,formatHex8:nct,formatRgb:mv,toString:mv}));function vv(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function nct(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function mv(){const t=Ha(this.opacity);return`${t===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${t===1?")":`, ${t})`}`}function Ha(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 yv(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 ky(t){if(t instanceof Gn)return new Gn(t.h,t.s,t.l,t.opacity);if(t instanceof vl||(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 rct(t,n,r,o){return arguments.length===1?ky(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}lh(Gn,rct,Sy(vl,{brighter(t){return t=t==null?qa:Math.pow(qa,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(Au(t>=240?t-240:t+120,a,o),Au(t,a,o),Au(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Gn(bv(this.h),la(this.s),la(this.l),Ha(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=Ha(this.opacity);return`${t===1?"hsl(":"hsla("}${bv(this.h)}, ${la(this.s)*100}%, ${la(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bv(t){return t=(t||0)%360,t<0?t+360:t}function la(t){return Math.max(0,Math.min(1,t||0))}function Au(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 Cy=t=>()=>t;function ict(t,n){return function(r){return t+r*n}}function oct(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 sct(t){return(t=+t)==1?Ty:function(n,r){return r-n?oct(n,r,t):Cy(isNaN(n)?r:n)}}function Ty(t,n){var r=n-t;return r?ict(t,r):Cy(isNaN(t)?n:t)}const wv=function t(n){var r=sct(n);function o(a,u){var f=r((a=uf(a)).r,(u=uf(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=Ty(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 ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mu=new RegExp(ff.source,"g");function lct(t){return function(){return t}}function act(t){return function(n){return t(n)+""}}function cct(t,n){var r=ff.lastIndex=Mu.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=ff.exec(t))&&(a=Mu.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=Mu.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?act(p[0].x):lct(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 xv=180/Math.PI,hf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ly(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)*xv,skewX:Math.atan(p)*xv,scaleX:f,scaleY:h}}var aa;function uct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?hf:Ly(n.a,n.b,n.c,n.d,n.e,n.f)}function fct(t){return t==null||(aa||(aa=document.createElementNS("http://www.w3.org/2000/svg","g")),aa.setAttribute("transform",t),!(t=aa.transform.baseVal.consolidate()))?hf:(t=t.matrix,Ly(t.a,t.b,t.c,t.d,t.e,t.f))}function Ey(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 hct=Ey(uct,"px, ","px)","deg)"),dct=Ey(fct,", ",")",")"),pct=1e-12;function _v(t){return((t=Math.exp(t))+1/t)/2}function gct(t){return((t=Math.exp(t))-1/t)/2}function vct(t){return((t=Math.exp(2*t))-1)/(t+1)}const mct=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<pct)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=_v(G),vt=g/(r*E)*(dt*vct(n*Q+G)-gct(G));return[h+vt*S,p+vt*M,g*dt/_v(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,Ay=1e3,Ba,zs,Wa=0,Xi=0,yc=0,sl=typeof performance=="object"&&performance.now?performance:Date,My=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ah(){return Xi||(My(yct),Xi=sl.now()+yc)}function yct(){Xi=0}function Ua(){this._call=this._time=this._next=null}Ua.prototype=ch.prototype={constructor:Ua,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ah():+r)+(n==null?0:+n),!this._next&&zs!==this&&(zs?zs._next=this:Ba=this,zs=this),this._call=t,this._time=r,df()},stop:function(){this._call&&(this._call=null,this._time=1/0,df())}};function ch(t,n,r){var o=new Ua;return o.restart(t,n,r),o}function bct(){ah(),++jo;for(var t=Ba,n;t;)(n=Xi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--jo}function Sv(){Xi=(Wa=sl.now())+yc,jo=Rs=0;try{bct()}finally{jo=0,xct(),Xi=0}}function wct(){var t=sl.now(),n=t-Wa;n>Ay&&(yc-=n,Wa=t)}function xct(){for(var t,n=Ba,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:Ba=r);zs=t,df(o)}function df(t){if(!jo){Rs&&(Rs=clearTimeout(Rs));var n=t-Xi;n>24?(t<1/0&&(Rs=setTimeout(Sv,t-sl.now()-yc)),Os&&(Os=clearInterval(Os))):(Os||(Wa=sl.now(),Os=setInterval(wct,Ay)),jo=1,My(Sv))}}function kv(t,n,r){var o=new Ua;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var _ct=gl("start","end","cancel","interrupt"),Sct=[],Ny=0,Cv=1,pf=2,xa=3,Tv=4,gf=5,_a=6;function bc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;kct(t,r,{name:n,index:o,group:a,on:_ct,tween:Sct,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Ny})}function uh(t,n){var r=Yn(t,n);if(r.state>Ny)throw new Error("too late; already scheduled");return r}function pr(t,n){var r=Yn(t,n);if(r.state>xa)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 kct(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=ch(u,0,r.time);function u(g){r.state=Cv,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!==Cv)return p();for(m in o)if(S=o[m],S.name===r.name){if(S.state===xa)return kv(f);S.state===Tv?(S.state=_a,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[m]):+m<n&&(S.state=_a,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[m])}if(kv(function(){r.state===xa&&(r.state=Tv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=pf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===pf){for(r.state=xa,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=gf,1),b=-1,x=a.length;++b<x;)a[b].call(t,m);r.state===gf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=_a,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function Sa(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>pf&&o.state<gf,o.state=_a,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function Cct(t){return this.each(function(){Sa(this,t)})}function Tct(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 Lct(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 Ect(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?Tct:Lct)(r,t,n))}function fh(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 Py(t,n){var r;return(typeof n=="number"?oi:n instanceof ol?wv:(r=ol(n))?(n=r,wv):cct)(t,n)}function Act(t){return function(){this.removeAttribute(t)}}function Mct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Nct(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 Pct(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 Oct(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 $ct(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 Dct(t,n){var r=mc(t),o=r==="transform"?dct:Py;return this.attrTween(t,typeof n=="function"?(r.local?$ct:Oct)(r,o,fh(this,"attr."+t,n)):n==null?(r.local?Mct:Act)(r):(r.local?Pct:Nct)(r,o,n))}function Rct(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function zct(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function Ict(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&zct(t,u)),r}return a._value=n,a}function Fct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Rct(t,u)),r}return a._value=n,a}function qct(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=mc(t);return this.tween(r,(o.local?Ict:Fct)(o,n))}function Hct(t,n){return function(){uh(this,t).delay=+n.apply(this,arguments)}}function Bct(t,n){return n=+n,function(){uh(this,t).delay=n}}function Wct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Hct:Bct)(n,t)):Yn(this.node(),n).delay}function Uct(t,n){return function(){pr(this,t).duration=+n.apply(this,arguments)}}function jct(t,n){return n=+n,function(){pr(this,t).duration=n}}function Gct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Uct:jct)(n,t)):Yn(this.node(),n).duration}function Vct(t,n){if(typeof n!="function")throw new Error;return function(){pr(this,t).ease=n}}function Kct(t){var n=this._id;return arguments.length?this.each(Vct(n,t)):Yn(this.node(),n).ease}function Xct(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function Yct(t){if(typeof t!="function")throw new Error;return this.each(Xct(this._id,t))}function Zct(t){typeof t!="function"&&(t=fy(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 Jct(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 Qct(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 tut(t,n,r){var o,a,u=Qct(n)?uh:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function eut(t,n){var r=this._id;return arguments.length<2?Yn(this.node(),r).on.on(t):this.each(tut(r,t,n))}function nut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function rut(){return this.on("end.remove",nut(this._id))}function iut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=oh(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,bc(g[x],n,r,x,g,Yn(m,r)));return new zr(u,this._parents,n,r)}function out(t){var n=this._name,r=this._id;typeof t!="function"&&(t=uy(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])&&bc(S,n,r,A,x,M);u.push(x),f.push(m)}return new zr(u,f,n,r)}var sut=pl.prototype.constructor;function lut(){return new sut(this._groups,this._parents)}function aut(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 Oy(t){return function(){this.style.removeProperty(t)}}function cut(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 uut(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 fut(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=Oy(n)):void 0;(g!==r||a!==m)&&(o=(r=g).copy()).on(f,a=m),p.on=o}}function hut(t,n,r){var o=(t+="")=="transform"?hct:Py;return n==null?this.styleTween(t,aut(t,o)).on("end.style."+t,Oy(t)):typeof n=="function"?this.styleTween(t,uut(t,o,fh(this,"style."+t,n))).each(fut(this._id,t)):this.styleTween(t,cut(t,o,n),r).on("end.style."+t,null)}function dut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function put(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&dut(t,f,r)),o}return u._value=n,u}function gut(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,put(t,n,r==null?"":r))}function vut(t){return function(){this.textContent=t}}function mut(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function yut(t){return this.tween("text",typeof t=="function"?mut(fh(this,"text",t)):vut(t==null?"":t+""))}function but(t){return function(n){this.textContent=t.call(this,n)}}function wut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&but(a)),n}return o._value=t,o}function xut(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,wut(t))}function _ut(){for(var t=this._name,n=this._id,r=$y(),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);bc(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 Sut(){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 kut=0;function zr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function $y(){return++kut}var Lr=pl.prototype;zr.prototype={constructor:zr,select:iut,selectAll:out,selectChild:Lr.selectChild,selectChildren:Lr.selectChildren,filter:Zct,merge:Jct,selection:lut,transition:_ut,call:Lr.call,nodes:Lr.nodes,node:Lr.node,size:Lr.size,empty:Lr.empty,each:Lr.each,on:eut,attr:Dct,attrTween:qct,style:hut,styleTween:gut,text:yut,textTween:xut,remove:rut,tween:Ect,delay:Wct,duration:Gct,ease:Kct,easeVarying:Yct,end:Sut,[Symbol.iterator]:Lr[Symbol.iterator]};function Cut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Tut={time:null,delay:0,duration:250,ease:Cut};function Lut(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 Eut(t){var n,r;t instanceof zr?(n=t._id,t=t._name):(n=$y(),(r=Tut).time=ah(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&bc(p,t,n,g,f,r||Lut(p,n));return new zr(o,this._parents,t,n)}pl.prototype.interrupt=Cct;pl.prototype.transition=Eut;const ca=t=>()=>t;function Aut(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 hh=new Pr(1,0,0);Pr.prototype;function Nu(t){t.stopImmediatePropagation()}function $s(t){t.preventDefault(),t.stopImmediatePropagation()}function Mut(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Nut(){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 Lv(){return this.__zoom||hh}function Put(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Out(){return navigator.maxTouchPoints||"ontouchstart"in this}function $ut(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 Dut(){var t=Mut,n=Nut,r=$ut,o=Put,a=Out,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=mct,g=gl("start","zoom","end"),m,b,x,S=500,M=150,A=0,L=10;function C(I){I.property("__zoom",Lv).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",Lv),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(hh.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 Aut(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)],Sa(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;xy(I.view),Nu(I),W.mouse=[wt,this.__zoom.invert(wt)],Sa(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),_y(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(Nu(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)),Sa(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(Nu(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:ca(+I),C):o},C.filter=function(I){return arguments.length?(t=typeof I=="function"?I:ca(!!I),C):t},C.touchable=function(I){return arguments.length?(a=typeof I=="function"?I:ca(!!I),C):a},C.extent=function(I){return arguments.length?(n=typeof I=="function"?I:ca([[+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 Rut(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return Dy(this.cover(n,r),n,r,t)}function Dy(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 zut(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)Dy(this,f[r],h[r],t[r]);return this}function Iut(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 Fut(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function qut(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 Hut(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 But(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 Wut(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function Uut(){return this._root}function jut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Gut(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 Vut(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 Kut(t){return t[0]}function Xut(t){return arguments.length?(this._x=t,this):this._x}function Yut(t){return t[1]}function Zut(t){return arguments.length?(this._y=t,this):this._y}function dh(t,n,r){var o=new ph(n==null?Kut:n,r==null?Yut:r,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function ph(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 Ev(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=dh.prototype=ph.prototype;vn.copy=function(){var t=new ph(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=Ev(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]=Ev(o));return t};vn.add=Rut;vn.addAll=zut;vn.cover=Iut;vn.data=Fut;vn.extent=qut;vn.find=Hut;vn.remove=But;vn.removeAll=Wut;vn.root=Uut;vn.size=jut;vn.visit=Gut;vn.visitAfter=Vut;vn.x=Xut;vn.y=Zut;function gn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function Jut(t){return t.x+t.vx}function Qut(t){return t.y+t.vy}function tft(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=dh(n,Jut,Qut).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 eft(t){return t.index}function Av(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function nft(t){var n=eft,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=Av(z,D.source)),typeof D.target!="object"&&(D.target=Av(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 rft=1664525,ift=1013904223,Mv=4294967296;function oft(){let t=1;return()=>(t=(rft*t+ift)%Mv)/Mv}function sft(t){return t.x}function lft(t){return t.y}var aft=10,cft=Math.PI*(3-Math.sqrt(5));function uft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=ch(b),g=gl("tick","end"),m=oft();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=aft*Math.sqrt(.5+A),z=A*cft;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 fft(){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=dh(t,sft,lft).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 hft(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 dft(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 pft=Object.defineProperty,gft=(t,n,r)=>n in t?pft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Me=(t,n,r)=>(gft(t,typeof n!="symbol"?n+"":n,r),r);function vft(){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 mft(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function yft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Ry(t){t.preventDefault(),t.stopPropagation()}function zy(t){return typeof t=="number"}function gi(t,n){return zy(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function bft(t){return`${t.source.id}-${t.target.id}`}function Iy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function wft(t){return`url(#${Iy(t.color)})`}function xft(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 Fy={Arrow:t=>xft(t)},_ft=(t,n,r)=>[n/2,r/2],Sft=(t,n,r)=>[Nv(0,n),Nv(0,r)];function Nv(t,n){return Math.random()*(n-t)+t}const vf={Centered:_ft,Randomized:Sft};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qy={},mf=Go&&Go.__assign||function(){return mf=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},mf.apply(this,arguments)},kft=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},Cft=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(qy,"__esModule",{value:!0});var Pv=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]:Pv(r[a])&&Pv(o[a])?r[a]=ai(r[a],o[a]):r[a]=o[a])}),r},{})},Hy={mergeArrays:!0};ai.options=Hy;ai.withOptions=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ai.options=mf({mergeArrays:!0},t);var o=ai.apply(void 0,Cft([],kft(n),!1));return ai.options=Hy,o};var Tft=qy.default=ai;function Lft(){return{autoResize:!1,callbacks:{},initial:yft(),nodeRadius:16,marker:Fy.Arrow(4),modifiers:{},positionInitializer:vf.Centered,simulation:{alphas:vft(),forces:mft()},zoom:{initial:1,min:.1,max:2}}}function Eft(t={}){return Tft.withOptions({mergeArrays:!1},Lft(),t)}function Aft(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function Mft({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=>Ry(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,hh.translate(u,f).scale(h)),g.append("g")}function Nft({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function Pft({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=jat().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 Oft({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}:$ft({nodes:h,links:u},r)}function $ft(t,n){const r=[...Dft(t,n),...Rft(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function Dft(t,n){return By(t,n,(r,o)=>r.target.id===o.id)}function Rft(t,n){return By(t,n,(r,o)=>r.source.id===o.id)}function By(t,n,r){const o=new Set(t.links),a=new Set([n]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(p=>r(h,p)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function yf(t){var n;return(n=t.x)!=null?n:0}function bf(t){var n;return(n=t.y)!=null?n:0}function gh({source:t,target:n}){const r=new hn(yf(t),bf(t)),o=new hn(yf(n),bf(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 Wy({center:t,node:n}){const r=new hn(yf(n),bf(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 Uy({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=gh({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 zft(t){const{start:n,end:r}=Uy(t);return`M${n.x},${n.y}
|
|
31
|
+
L${r.x},${r.y}`}function Ift(t){const{start:n,end:r}=Uy(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function Fft({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=gh({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 qft({center:t,config:n,node:r}){const{n:o,c:a}=Wy({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 Hft({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=gh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function Bft({center:t,config:n,node:r}){const{n:o,c:a}=Wy({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:Ift,path:zft},arc:{labelTransform:Hft,path:Fft},reflexive:{labelTransform:Bft,path:qft}};function Wft(t){return t.append("g").classed("links",!0).selectAll("path")}function Uft({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>bft(u)).join(u=>{var f,h,p,g;const m=u.append("g"),b=m.append("path").classed("link",!0).style("marker-end",S=>wft(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 jft(t){Gft(t),Vft(t)}function Gft({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}):jy(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 Vft({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}):jy(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 jy(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 Kft(t){return t.append("defs").selectAll("marker")}function Xft({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Yft(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>Iy(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",Zft(t.marker.path)),a})}function Yft(t){return[...new Set(t.links.map(n=>n.color))]}function Zft(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 Jft(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Qft({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)=>{Ry(L),o(C)}).on("pointerdown",(L,C)=>eht(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 tht=500;function eht(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>tht){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function nht(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 rht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=uft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",hft(()=>t().x).strength(b)).force("y",dft(()=>t().y).strength(b))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",fft().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",tft().radius(b=>g.radiusMultiplier*gi(n,b)));const m=n.simulation.forces.link;return m&&m.enabled&&f.force("link",nft(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 iht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=Dut().scaleExtent([r,o]).filter(p=>{var g;return p.button===0||((g=p.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",p=>a(p)).on("end",()=>t().classed("grabbed",!1));return(f=(u=n.modifiers).zoom)==null||f.call(u,h),h}class oht{constructor(n,r,o){if(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(Aft(()=>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(zy(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Xft({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Uft({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Qft({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=rht({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=iht({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=Mft({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Wft(this.canvas),this.nodeSelection=Jft(this.canvas),this.markerSelection=Kft(this.canvas),this.drag=Pft({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(){nht(this.nodeSelection),jft({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(){Nft({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=Oft({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Ov({nodes:t,links:n}){return{nodes:t!=null?t:[],links:n!=null?n:[]}}function sht(t){return{...t}}function Gy(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const lht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},aht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},cht=["id","checked","onChange"],uht=["for"],fht=ut("div",{"flex-auto":""},null,-1),hht=oe({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=Wx(n),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();If(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ul(()=>{g()}),qf(()=>{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 oht(o.value,r.value,Eft({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:Fy.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?vf.Randomized:vf.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=rlt,A=jst,L=Zi("tooltip");return ht(),Mt("div",lht,[ut("div",null,[ut("div",aht,[(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,cht),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,uht)])}),128)),fht,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(o1,{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 dht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},pht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},ght={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},vht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},mht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},yht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},vh=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",dht)):Z(dc)(t.task)?pn((ht(),Mt("div",pht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(ht(),Mt("div",ght)):t.task.mode==="todo"?pn((ht(),Mt("div",vht,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",mht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ht(),Mt("div",yht))}}});function bht(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 wht(t){let n=t;n.includes("/node_modules/")&&(n=t.split(/\/node_modules\//g).pop());const r=n.split(/\//g);return{raw:n,splits:r,candidate:"",finished:!1,id:t}}function xht(t){const n=t.map(o=>wht(o)),r=bht(n);return n.map(({raw:o,id:a})=>{var u;return Gy({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 _ht(t,n){return Gy({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 Sht(t,n){var h;if(!t)return Ov({});const r=xht(t.externalized),o=(h=t.inlined.map(p=>_ht(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 sht({source:b,target:x,color:"var(--color-link)",label:!1})}).filter(m=>m!==void 0));return Ov({nodes:a,links:f})}const kht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},Cht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Tht={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Lht={class:"flex text-lg"},Eht={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Aht={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Mht={key:0,"flex-1":""},Nht=oe({__name:"FileDetails",setup(t){const n=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);uC(Le,async(g,m)=>{g&&g.filepath!==(m==null?void 0:m.filepath)&&(n.value=await We.rpc.getModuleGraph(g.filepath),r.value=Sht(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=H0.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=vh,x=Zo,S=hht,M=Ust,A=Fst,L=Nst,C=Zi("tooltip");return Z(Le)?(ht(),Mt("div",kht,[ut("div",null,[ut("div",Cht,[Rt(b,{task:Z(Le)},null,8,["task"]),ut("div",Tht,Jt((E=Z(Le))==null?void 0:E.filepath),1),ut("div",Lht,[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",Eht,[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",Aht,[a.value?(ht(),Mt("div",Mht,[pn(Rt(S,{graph:r.value},null,8,["graph"]),[[Fm,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)}}}),Pht=["open"],Oht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),$ht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Dht=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"},[Oht,Kn(r.$slots,"summary",{open:n.value}),$ht],2),Kn(r.$slots,"default")],40,Pht))}});const Rht={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},zht=["text"],Iht={"text-sm":"",truncate:"","font-light":""},Fht={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},qht=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=vh;return t.task?(ht(),Mt("div",Rht,[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",Iht,Jt(t.task.name),1),typeof Z(r)=="number"?(ht(),Mt("span",Fht,Jt(Z(r)>0?Z(r):"< 1")+"ms ",1)):ye("",!0)],8,zht)])):ye("",!0)}}});function Hht(t){return Object.hasOwnProperty.call(t,"tasks")}function Vy(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const Bht={key:1},Wht={inheritAttrs:!1},Uht=oe({...Wht,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=qht,a=Gi("TaskTree",!0);return ht(),Mt(ue,null,[!t.search||Z(Vy)(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",Bht,[(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)}}}),jht={h:"full",flex:"~ col"},Ght={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Vht={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Kht=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Xht=["op"],Yht={class:"scrolls","flex-auto":"","py-1":""},Zht={"text-red5":""},Jht={"text-yellow5":""},Qht={"text-green5":""},tdt={class:"text-purple5:50"},edt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},ndt=ut("div",{op30:""}," No matched test ",-1),rdt={inheritAttrs:!1},Ky=oe({...rdt,__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(Vy(D.name,C)){E=!0;break}if(Hht(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=>Ia(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=Jk(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=Uht,D=Dht,G=Zi("tooltip");return ht(),Mt("div",jht,[ut("div",null,[ut("div",Ght,[Kn(L.$slots,"header",{filteredTests:Z(u)?Z(p):void 0})]),ut("div",Vht,[Kht,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]=Gu(j=>M(!1),["esc"])),C[2]||(C[2]=Gu(j=>n("run",Z(u)?Z(p):void 0),["enter"]))]},null,40,Xht),[[k_,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",Yht,[t.groupByType?(ht(),Mt(ue,{key:0},[Z(g).length?(ht(),ce(D,{key:0},{summary:Zt(()=>[ut("div",Zht," 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(za)==="running"?(ht(),ce(D,{key:1},{summary:Zt(()=>[ut("div",Jht," 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",Qht," 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",tdt," 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",edt,[ndt,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)])])}}}),idt={key:0,"h-full":""},odt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},sdt={class:"flex text-lg"},ldt=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)&&dc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&We.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=vh,h=Zo,p=Ky,g=Zi("tooltip");return Z(Le)?(ht(),Mt("div",idt,[Rt(p,{tasks:Z(Le).tasks,nested:!0},{header:Zt(()=>[Rt(f,{"mx-1":"",task:Z(Le)},null,8,["task"]),ut("span",odt,Jt(Z(n)),1),ut("div",sdt,[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(wT)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ye("",!0)}}}),ja=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Ga=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),mh=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!ja.value.includes(t)&&!Ga.value.includes(t)&&!mh.value.includes(t)));St(()=>mh.value.filter(t=>t.mode==="skip"));const $v=St(()=>Tn.value.filter(dc));St(()=>mh.value.filter(t=>t.mode==="todo"));const adt=St(()=>za.value==="idle"),ml=St(()=>yh(Tn.value)),Xy=St(()=>ml.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Yy=St(()=>ml.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Zy=St(()=>ml.value.filter(t=>t.mode==="skip"||t.mode==="todo")),cdt=St(()=>Zy.value.filter(t=>t.mode==="skip")),udt=St(()=>Zy.value.filter(t=>t.mode==="todo"));St(()=>Xy.value.length+Yy.value.length);const fdt=St(()=>{const t=yh(ml.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 hdt(t){return t=t||[],Array.isArray(t)?t:[t]}function Dv(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function yh(t){return hdt(t).flatMap(n=>Dv(n)?[n]:n.tasks.flatMap(r=>Dv(r)?[r]:yh(r)))}const gr=t=>(dm("data-v-6679a536"),t=t(),pm(),t),ddt={"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:""},pdt=gr(()=>ut("div",{"i-carbon-document":""},null,-1)),gdt=gr(()=>ut("div",null,"Files",-1)),vdt={class:"number","data-testid":"num-files"},mdt=gr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),ydt=gr(()=>ut("div",null,"Pass",-1)),bdt={class:"number"},wdt=gr(()=>ut("div",{"i-carbon-close":""},null,-1)),xdt=gr(()=>ut("div",null," Fail ",-1)),_dt={class:"number","text-red5":""},Sdt=gr(()=>ut("div",{"i-carbon-compare":""},null,-1)),kdt=gr(()=>ut("div",null," Snapshot Fail ",-1)),Cdt={class:"number","text-red5":""},Tdt=gr(()=>ut("div",{"i-carbon-timer":""},null,-1)),Ldt=gr(()=>ut("div",null,"Time",-1)),Edt={class:"number","data-testid":"run-time"},Adt=oe({__name:"TestFilesEntry",setup(t){return(n,r)=>(ht(),Mt("div",ddt,[pdt,gdt,ut("div",vdt,Jt(Z(Tn).length),1),Z(Ga).length?(ht(),Mt(ue,{key:0},[mdt,ydt,ut("div",bdt,Jt(Z(Ga).length),1)],64)):ye("",!0),Z(ja).length?(ht(),Mt(ue,{key:1},[wdt,xdt,ut("div",_dt,Jt(Z(ja).length),1)],64)):ye("",!0),Z($v).length?(ht(),Mt(ue,{key:2},[Sdt,kdt,ut("div",Cdt,Jt(Z($v).length),1)],64)):ye("",!0),Tdt,Ldt,ut("div",Edt,Jt(Z(fdt)),1)]))}});const Mdt=Xo(Adt,[["__scopeId","data-v-6679a536"]]),Ndt={"p-2":"","text-center":"",flex:""},Pdt={"text-4xl":"","min-w-2em":""},Odt={"text-md":""},$dt=oe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ht(),Mt("div",Ndt,[ut("div",null,[ut("div",Pdt,[Kn(n.$slots,"body")]),ut("div",Odt,[Kn(n.$slots,"header")])])]))}}),Ddt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Rdt=oe({__name:"TestsEntry",setup(t){const n=St(()=>ml.value.length),r=St(()=>Yy.value.length),o=St(()=>Xy.value.length),a=St(()=>cdt.value.length),u=St(()=>udt.value.length);return St(()=>Z(n)-o.value-r.value),(f,h)=>{const p=$dt;return ht(),Mt("div",Ddt,[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})])}}}),zdt={},Idt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Fdt={"aria-labelledby":"tests",m:"y-4 x-2"};function qdt(t,n){const r=Rdt,o=Mdt;return ht(),Mt("div",Idt,[ut("section",Fdt,[Rt(r)]),Rt(o)])}const Hdt=Xo(zdt,[["render",qdt]]),Bdt={},Wdt={h:"full",flex:"~ col"},Udt=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),jdt={class:"scrolls","flex-auto":"","py-1":""};function Gdt(t,n){const r=Hdt;return ht(),Mt("div",Wdt,[Udt,ut("div",jdt,[Rt(r)])])}const Vdt=Xo(Bdt,[["render",Gdt]]),Kdt="/__vitest__/favicon.svg",Va=Kt(),Ws=Kt(!0);function Xdt(){const t=Mr.value;if(t&&t.length>0){const n=Ia(t);n?(Va.value=n,Ws.value=!1):fC(()=>We.state.getFiles(),()=>{Va.value=Ia(t),Ws.value=!1})}return Ws}function Rv(t){Ws.value=t,t&&(Va.value=void 0,Mr.value="")}const Ydt=ut("img",{"w-6":"","h-6":"",src:Kdt,alt:"Vitest logo"},null,-1),Zdt=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Jdt={class:"flex text-lg"},Qdt=oe({__name:"Navigation",setup(t){const n=St(()=>Tn.value&&dc(Tn.value)),r=()=>We.rpc.updateSnapshot();function o(u){Mr.value=u.id,Va.value=Ia(u.id),Rv(!1)}const a=St(()=>vc.value?"light":"dark");return(u,f)=>{const h=Zo,p=Ky,g=Zi("tooltip");return ht(),ce(p,{border:"r base",tasks:Z(Tn),"on-item-click":o,"group-by-type":!0,onRun:Z(Zg)},{header:Zt(({filteredTests:m})=>[Ydt,Zdt,ut("div",Jdt,[pn(Rt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>Z(Rv)(!0))},null,512),[[Fm,!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(Zg)(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(Sst)())},null,512),[[g,`Toggle to ${Z(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),tpt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},ept=oe({__name:"ProgressBar",setup(t){const{width:n}=tT(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":adt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>Ga.value.length),u=St(()=>ja.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",tpt,[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 npt=Xo(ept,[["__scopeId","data-v-f967c1fe"]]),zv={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())}},rpt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},ipt={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 opt(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 ua=rpt(ipt,[["render",opt]]),spt={"h-screen":"","w-screen":"",overflow:"hidden"},lpt=oe({__name:"index",setup(t){const n=Xdt(),r=hr([33,67]),o=hr([33,67]),a=$g(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=$g(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=npt,m=Qdt,b=Vdt,x=ldt,S=Nht,M=ST;return ht(),Mt(ue,null,[Rt(g),ut("div",spt,[Rt(Z(zv),{class:"pt-4px",onResized:Z(a),onReady:f},{default:Zt(()=>[Rt(Z(ua),{size:r[0]},{default:Zt(()=>[Rt(m)]),_:1},8,["size"]),Rt(Z(ua),{size:r[1]},{default:Zt(()=>[Rt(jf,null,{default:Zt(()=>[Z(n)?(ht(),ce(b,{key:"summary"})):(ht(),ce(Z(zv),{key:"detail",onResized:Z(u)},{default:Zt(()=>[Rt(Z(ua),{size:o[0]},{default:Zt(()=>[Rt(x)]),_:1},8,["size"]),Rt(Z(ua),{size:o[1]},{default:Zt(()=>[Rt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Rt(M)],64)}}}),apt=[{name:"index",path:"/",component:lpt,props:!0}];const cpt={tooltip:Uk};w0.options.instantMove=!0;w0.options.distance=10;const upt=()=>OS({history:X_("/__vitest__/"),routes:apt}),fpt=[upt],bh=qm(N_);fpt.forEach(t=>{bh.use(t())});Object.entries(cpt).forEach(([t,n])=>{bh.directive(t,n)});bh.mount("#app");
|