@vitest/browser 0.28.0 → 0.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,37 @@
1
+ var px=Object.defineProperty;var gx=(t,e,r)=>e in t?px(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ni=(t,e,r)=>(gx(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerpolicy&&(u.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?u.credentials="include":a.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function Of(t,e){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return e?a=>!!r[a.toLowerCase()]:a=>!!r[a]}function kn(t){if(Ht(t)){const e={};for(let r=0;r<t.length;r++){const o=t[r],a=qe(o)?bx(o):kn(o);if(a)for(const u in a)e[u]=a[u]}return e}else{if(qe(t))return t;if(xe(t))return t}}const vx=/;(?![^(]*\))/g,mx=/:([^]+)/,yx=/\/\*.*?\*\//gs;function bx(t){const e={};return t.replace(yx,"").split(vx).forEach(r=>{if(r){const o=r.split(mx);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ve(t){let e="";if(qe(t))e=t;else if(Ht(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(e+=o+" ")}else if(xe(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const wx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xx=Of(wx);function Jv(t){return!!t||t===""}const Xt=t=>qe(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===em||!Wt(t.toString))?JSON.stringify(t,Zv,2):String(t),Zv=(t,e)=>e&&e.__v_isRef?Zv(t,e.value):Mo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Qv(e)?{[`Set(${e.size})`]:[...e.values()]}:xe(e)&&!Ht(e)&&!nm(e)?String(e):e,we={},Ao=[],Kn=()=>{},_x=()=>!1,Sx=/^on[^a-z]/,tc=t=>Sx.test(t),$f=t=>t.startsWith("onUpdate:"),Ye=Object.assign,Df=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},kx=Object.prototype.hasOwnProperty,ee=(t,e)=>kx.call(t,e),Ht=Array.isArray,Mo=t=>ec(t)==="[object Map]",Qv=t=>ec(t)==="[object Set]",Wt=t=>typeof t=="function",qe=t=>typeof t=="string",Rf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",tm=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),em=Object.prototype.toString,ec=t=>em.call(t),Cx=t=>ec(t).slice(8,-1),nm=t=>ec(t)==="[object Object]",zf=t=>qe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ya=Of(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),nc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Tx=/-(\w)/g,hr=nc(t=>t.replace(Tx,(e,r)=>r?r.toUpperCase():"")),Lx=/\B([A-Z])/g,Zi=nc(t=>t.replace(Lx,"-$1").toLowerCase()),rc=nc(t=>t.charAt(0).toUpperCase()+t.slice(1)),_u=nc(t=>t?`on${rc(t)}`:""),Xs=(t,e)=>!Object.is(t,e),ba=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},Na=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Io=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Np;const Ex=()=>Np||(Np=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class Ax{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Mn,!e&&Mn&&(this.index=(Mn.scopes||(Mn.scopes=[])).push(this)-1)}run(e){if(this.active){const r=Mn;try{return Mn=this,e()}finally{Mn=r}}}on(){Mn=this}off(){Mn=this.parent}stop(e){if(this.active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!e){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this.active=!1}}}function Mx(t,e=Mn){e&&e.active&&e.effects.push(t)}function Nx(){return Mn}function Px(t){Mn&&Mn.cleanups.push(t)}const If=t=>{const e=new Set(t);return e.w=0,e.n=0,e},rm=t=>(t.w&di)>0,im=t=>(t.n&di)>0,Ox=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=di},$x=t=>{const{deps:e}=t;if(e.length){let r=0;for(let o=0;o<e.length;o++){const a=e[o];rm(a)&&!im(a)?a.delete(t):e[r++]=a,a.w&=~di,a.n&=~di}e.length=r}},Bu=new WeakMap;let Fs=0,di=1;const Wu=30;let Gn;const Ui=Symbol(""),Uu=Symbol("");class Ff{constructor(e,r=null,o){this.fn=e,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Mx(this,o)}run(){if(!this.active)return this.fn();let e=Gn,r=ui;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Gn,Gn=this,ui=!0,di=1<<++Fs,Fs<=Wu?Ox(this):Pp(this),this.fn()}finally{Fs<=Wu&&$x(this),di=1<<--Fs,Gn=this.parent,ui=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Gn===this?this.deferStop=!0:this.active&&(Pp(this),this.onStop&&this.onStop(),this.active=!1)}}function Pp(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}let ui=!0;const om=[];function Jo(){om.push(ui),ui=!1}function Zo(){const t=om.pop();ui=t===void 0?!0:t}function On(t,e,r){if(ui&&Gn){let o=Bu.get(t);o||Bu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=If()),sm(a)}}function sm(t,e){let r=!1;Fs<=Wu?im(t)||(t.n|=di,r=!rm(t)):r=!t.has(Gn),r&&(t.add(Gn),Gn.deps.push(t))}function Dr(t,e,r,o,a,u){const f=Bu.get(t);if(!f)return;let h=[];if(e==="clear")h=[...f.values()];else if(r==="length"&&Ht(t)){const d=Io(o);f.forEach((g,v)=>{(v==="length"||v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":Ht(t)?zf(r)&&h.push(f.get("length")):(h.push(f.get(Ui)),Mo(t)&&h.push(f.get(Uu)));break;case"delete":Ht(t)||(h.push(f.get(Ui)),Mo(t)&&h.push(f.get(Uu)));break;case"set":Mo(t)&&h.push(f.get(Ui));break}if(h.length===1)h[0]&&ju(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);ju(If(d))}}function ju(t,e){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&Op(o);for(const o of r)o.computed||Op(o)}function Op(t,e){(t!==Gn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Dx=Of("__proto__,__v_isRef,__isVue"),lm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Rf)),Rx=qf(),zx=qf(!1,!0),Ix=qf(!0),$p=Fx();function Fx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=ce(this);for(let u=0,f=this.length;u<f;u++)On(o,"get",u+"");const a=o[e](...r);return a===-1||a===!1?o[e](...r.map(ce)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){Jo();const o=ce(this)[e].apply(this,r);return Zo(),o}}),t}function qf(t=!1,e=!1){return function(o,a,u){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&u===(t?e?e1:hm:e?fm:um).get(o))return o;const f=Ht(o);if(!t&&f&&ee($p,a))return Reflect.get($p,a,u);const h=Reflect.get(o,a,u);return(Rf(a)?lm.has(a):Dx(a))||(t||On(o,"get",a),e)?h:Ee(h)?f&&zf(a)?h:h.value:xe(h)?t?dm(h):Pn(h):h}}const qx=am(),Hx=am(!0);function am(t=!1){return function(r,o,a,u){let f=r[o];if(Fo(f)&&Ee(f)&&!Ee(a))return!1;if(!t&&(!Pa(a)&&!Fo(a)&&(f=ce(f),a=ce(a)),!Ht(r)&&Ee(f)&&!Ee(a)))return f.value=a,!0;const h=Ht(r)&&zf(o)?Number(o)<r.length:ee(r,o),d=Reflect.set(r,o,a,u);return r===ce(u)&&(h?Xs(a,f)&&Dr(r,"set",o,a):Dr(r,"add",o,a)),d}}function Bx(t,e){const r=ee(t,e);t[e];const o=Reflect.deleteProperty(t,e);return o&&r&&Dr(t,"delete",e,void 0),o}function Wx(t,e){const r=Reflect.has(t,e);return(!Rf(e)||!lm.has(e))&&On(t,"has",e),r}function Ux(t){return On(t,"iterate",Ht(t)?"length":Ui),Reflect.ownKeys(t)}const cm={get:Rx,set:qx,deleteProperty:Bx,has:Wx,ownKeys:Ux},jx={get:Ix,set(t,e){return!0},deleteProperty(t,e){return!0}},Gx=Ye({},cm,{get:zx,set:Hx}),Hf=t=>t,ic=t=>Reflect.getPrototypeOf(t);function ia(t,e,r=!1,o=!1){t=t.__v_raw;const a=ce(t),u=ce(e);r||(e!==u&&On(a,"get",e),On(a,"get",u));const{has:f}=ic(a),h=o?Hf:r?jf:Ys;if(f.call(a,e))return h(t.get(e));if(f.call(a,u))return h(t.get(u));t!==a&&t.get(e)}function oa(t,e=!1){const r=this.__v_raw,o=ce(r),a=ce(t);return e||(t!==a&&On(o,"has",t),On(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function sa(t,e=!1){return t=t.__v_raw,!e&&On(ce(t),"iterate",Ui),Reflect.get(t,"size",t)}function Dp(t){t=ce(t);const e=ce(this);return ic(e).has.call(e,t)||(e.add(t),Dr(e,"add",t,t)),this}function Rp(t,e){e=ce(e);const r=ce(this),{has:o,get:a}=ic(r);let u=o.call(r,t);u||(t=ce(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,e),u?Xs(e,f)&&Dr(r,"set",t,e):Dr(r,"add",t,e),this}function zp(t){const e=ce(this),{has:r,get:o}=ic(e);let a=r.call(e,t);a||(t=ce(t),a=r.call(e,t)),o&&o.call(e,t);const u=e.delete(t);return a&&Dr(e,"delete",t,void 0),u}function Ip(){const t=ce(this),e=t.size!==0,r=t.clear();return e&&Dr(t,"clear",void 0,void 0),r}function la(t,e){return function(o,a){const u=this,f=u.__v_raw,h=ce(f),d=e?Hf:t?jf:Ys;return!t&&On(h,"iterate",Ui),f.forEach((g,v)=>o.call(a,d(g),d(v),u))}}function aa(t,e,r){return function(...o){const a=this.__v_raw,u=ce(a),f=Mo(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=a[t](...o),v=r?Hf:e?jf:Ys;return!e&&On(u,"iterate",d?Uu:Ui),{next(){const{value:b,done:w}=g.next();return w?{value:b,done:w}:{value:h?[v(b[0]),v(b[1])]:v(b),done:w}},[Symbol.iterator](){return this}}}}function ti(t){return function(...e){return t==="delete"?!1:this}}function Vx(){const t={get(u){return ia(this,u)},get size(){return sa(this)},has:oa,add:Dp,set:Rp,delete:zp,clear:Ip,forEach:la(!1,!1)},e={get(u){return ia(this,u,!1,!0)},get size(){return sa(this)},has:oa,add:Dp,set:Rp,delete:zp,clear:Ip,forEach:la(!1,!0)},r={get(u){return ia(this,u,!0)},get size(){return sa(this,!0)},has(u){return oa.call(this,u,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:la(!0,!1)},o={get(u){return ia(this,u,!0,!0)},get size(){return sa(this,!0)},has(u){return oa.call(this,u,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:la(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=aa(u,!1,!1),r[u]=aa(u,!0,!1),e[u]=aa(u,!1,!0),o[u]=aa(u,!0,!0)}),[t,r,e,o]}const[Kx,Xx,Yx,Jx]=Vx();function Bf(t,e){const r=e?t?Jx:Yx:t?Xx:Kx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(ee(r,a)&&a in o?r:o,a,u)}const Zx={get:Bf(!1,!1)},Qx={get:Bf(!1,!0)},t1={get:Bf(!0,!1)},um=new WeakMap,fm=new WeakMap,hm=new WeakMap,e1=new WeakMap;function n1(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function r1(t){return t.__v_skip||!Object.isExtensible(t)?0:n1(Cx(t))}function Pn(t){return Fo(t)?t:Wf(t,!1,cm,Zx,um)}function i1(t){return Wf(t,!1,Gx,Qx,fm)}function dm(t){return Wf(t,!0,jx,t1,hm)}function Wf(t,e,r,o,a){if(!xe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=r1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function No(t){return Fo(t)?No(t.__v_raw):!!(t&&t.__v_isReactive)}function Fo(t){return!!(t&&t.__v_isReadonly)}function Pa(t){return!!(t&&t.__v_isShallow)}function pm(t){return No(t)||Fo(t)}function ce(t){const e=t&&t.__v_raw;return e?ce(e):t}function Uf(t){return Na(t,"__v_skip",!0),t}const Ys=t=>xe(t)?Pn(t):t,jf=t=>xe(t)?dm(t):t;function gm(t){ui&&Gn&&(t=ce(t),sm(t.dep||(t.dep=If())))}function vm(t,e){t=ce(t),t.dep&&ju(t.dep)}function Ee(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return mm(t,!1)}function hl(t){return mm(t,!0)}function mm(t,e){return Ee(t)?t:new o1(t,e)}class o1{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:ce(e),this._value=r?e:Ys(e)}get value(){return gm(this),this._value}set value(e){const r=this.__v_isShallow||Pa(e)||Fo(e);e=r?e:ce(e),Xs(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:Ys(e),vm(this))}}function j(t){return Ee(t)?t.value:t}const s1={get:(t,e,r)=>j(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const a=t[e];return Ee(a)&&!Ee(r)?(a.value=r,!0):Reflect.set(t,e,r,o)}};function ym(t){return No(t)?t:new Proxy(t,s1)}function l1(t){const e=Ht(t)?new Array(t.length):{};for(const r in t)e[r]=Gf(t,r);return e}class a1{constructor(e,r,o){this._object=e,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Gf(t,e,r){const o=t[e];return Ee(o)?o:new a1(t,e,r)}var bm;class c1{constructor(e,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[bm]=!1,this._dirty=!0,this.effect=new Ff(e,()=>{this._dirty||(this._dirty=!0,vm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const e=ce(this);return gm(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}bm="__v_isReadonly";function u1(t,e,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Kn):(o=t.get,a=t.set),new c1(o,a,u||!a,r)}function fi(t,e,r,o){let a;try{a=o?t(...o):t()}catch(u){dl(u,e,r)}return a}function Fn(t,e,r,o){if(Wt(t)){const u=fi(t,e,r,o);return u&&tm(u)&&u.catch(f=>{dl(f,e,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(Fn(t[u],e,r,o));return a}function dl(t,e,r,o=!0){const a=e?e.vnode:null;if(e){let u=e.parent;const f=e.proxy,h=r;for(;u;){const g=u.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](t,f,h)===!1)return}u=u.parent}const d=e.appContext.config.errorHandler;if(d){fi(d,null,10,[t,f,h]);return}}f1(t,r,a,o)}function f1(t,e,r,o=!0){console.error(t)}let Js=!1,Gu=!1;const en=[];let lr=0;const Po=[];let Er=null,Ii=0;const wm=Promise.resolve();let Vf=null;function pl(t){const e=Vf||wm;return t?e.then(this?t.bind(this):t):e}function h1(t){let e=lr+1,r=en.length;for(;e<r;){const o=e+r>>>1;Zs(en[o])<t?e=o+1:r=o}return e}function Kf(t){(!en.length||!en.includes(t,Js&&t.allowRecurse?lr+1:lr))&&(t.id==null?en.push(t):en.splice(h1(t.id),0,t),xm())}function xm(){!Js&&!Gu&&(Gu=!0,Vf=wm.then(km))}function d1(t){const e=en.indexOf(t);e>lr&&en.splice(e,1)}function _m(t){Ht(t)?Po.push(...t):(!Er||!Er.includes(t,t.allowRecurse?Ii+1:Ii))&&Po.push(t),xm()}function Fp(t,e=Js?lr+1:0){for(;e<en.length;e++){const r=en[e];r&&r.pre&&(en.splice(e,1),e--,r())}}function Sm(t){if(Po.length){const e=[...new Set(Po)];if(Po.length=0,Er){Er.push(...e);return}for(Er=e,Er.sort((r,o)=>Zs(r)-Zs(o)),Ii=0;Ii<Er.length;Ii++)Er[Ii]();Er=null,Ii=0}}const Zs=t=>t.id==null?1/0:t.id,p1=(t,e)=>{const r=Zs(t)-Zs(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function km(t){Gu=!1,Js=!0,en.sort(p1);const e=Kn;try{for(lr=0;lr<en.length;lr++){const r=en[lr];r&&r.active!==!1&&fi(r,null,14)}}finally{lr=0,en.length=0,Sm(),Js=!1,Vf=null,(en.length||Po.length)&&km()}}function g1(t,e,...r){if(t.isUnmounted)return;const o=t.vnode.props||we;let a=r;const u=e.startsWith("update:"),f=u&&e.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:w}=o[v]||we;w&&(a=r.map(S=>qe(S)?S.trim():S)),b&&(a=r.map(Io))}let h,d=o[h=_u(e)]||o[h=_u(hr(e))];!d&&u&&(d=o[h=_u(Zi(e))]),d&&Fn(d,t,6,a);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,Fn(g,t,6,a)}}function Cm(t,e,r=!1){const o=e.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let f={},h=!1;if(!Wt(t)){const d=g=>{const v=Cm(g,e,!0);v&&(h=!0,Ye(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(xe(t)&&o.set(t,null),null):(Ht(u)?u.forEach(d=>f[d]=null):Ye(f,u),xe(t)&&o.set(t,f),f)}function oc(t,e){return!t||!tc(e)?!1:(e=e.slice(2).replace(/Once$/,""),ee(t,e[0].toLowerCase()+e.slice(1))||ee(t,Zi(e))||ee(t,e))}let Xe=null,sc=null;function Oa(t){const e=Xe;return Xe=t,sc=t&&t.type.__scopeId||null,e}function Tm(t){sc=t}function Lm(){sc=null}const v1=t=>Jt;function Jt(t,e=Xe,r){if(!e||t._n)return t;const o=(...a)=>{o._d&&Yp(-1);const u=Oa(e);let f;try{f=t(...a)}finally{Oa(u),o._d&&Yp(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Su(t){const{type:e,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:b,data:w,setupState:S,ctx:M,inheritAttrs:A}=t;let E,C;const L=Oa(t);try{if(r.shapeFlag&4){const O=a||o;E=jn(v.call(O,O,b,u,S,w,M)),C=d}else{const O=e;E=jn(O.length>1?O(u,{attrs:d,slots:h,emit:g}):O(u,null)),C=e.props?d:y1(d)}}catch(O){Us.length=0,dl(O,t,1),E=zt(Cn)}let $=E;if(C&&A!==!1){const O=Object.keys(C),{shapeFlag:G}=$;O.length&&G&7&&(f&&O.some($f)&&(C=b1(C,f)),$=pi($,C))}return r.dirs&&($=pi($),$.dirs=$.dirs?$.dirs.concat(r.dirs):r.dirs),r.transition&&($.transition=r.transition),E=$,Oa(L),E}function m1(t){let e;for(let r=0;r<t.length;r++){const o=t[r];if(tl(o)){if(o.type!==Cn||o.children==="v-if"){if(e)return;e=o}}else return}return e}const y1=t=>{let e;for(const r in t)(r==="class"||r==="style"||tc(r))&&((e||(e={}))[r]=t[r]);return e},b1=(t,e)=>{const r={};for(const o in t)(!$f(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function w1(t,e,r){const{props:o,children:a,component:u}=t,{props:f,children:h,patchFlag:d}=e,g=u.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?qp(o,f,g):!!f;if(d&8){const v=e.dynamicProps;for(let b=0;b<v.length;b++){const w=v[b];if(f[w]!==o[w]&&!oc(g,w))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?qp(o,f,g):!0:!!f;return!1}function qp(t,e,r){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(e[u]!==t[u]&&!oc(r,u))return!0}return!1}function Xf({vnode:t,parent:e},r){for(;e&&e.subTree===t;)(t=e.vnode).el=r,e=e.parent}const x1=t=>t.__isSuspense,_1={name:"Suspense",__isSuspense:!0,process(t,e,r,o,a,u,f,h,d,g){t==null?k1(e,r,o,a,u,f,h,d,g):C1(t,e,r,o,a,f,h,d,g)},hydrate:T1,create:Yf,normalize:L1},S1=_1;function Qs(t,e){const r=t.props&&t.props[e];Wt(r)&&r()}function k1(t,e,r,o,a,u,f,h,d){const{p:g,o:{createElement:v}}=d,b=v("div"),w=t.suspense=Yf(t,a,o,e,b,r,u,f,h,d);g(null,w.pendingBranch=t.ssContent,b,null,o,w,u,f),w.deps>0?(Qs(t,"onPending"),Qs(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,u,f),Oo(w,t.ssFallback)):w.resolve()}function C1(t,e,r,o,a,u,f,h,{p:d,um:g,o:{createElement:v}}){const b=e.suspense=t.suspense;b.vnode=e,e.el=t.el;const w=e.ssContent,S=e.ssFallback,{activeBranch:M,pendingBranch:A,isInFallback:E,isHydrating:C}=b;if(A)b.pendingBranch=w,cr(w,A)?(d(A,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():E&&(d(M,S,r,o,a,null,u,f,h),Oo(b,S))):(b.pendingId++,C?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),E?(d(null,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(d(M,S,r,o,a,null,u,f,h),Oo(b,S))):M&&cr(w,M)?(d(M,w,r,o,a,b,u,f,h),b.resolve(!0)):(d(null,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(M&&cr(w,M))d(M,w,r,o,a,b,u,f,h),Oo(b,w);else if(Qs(e,"onPending"),b.pendingBranch=w,b.pendingId++,d(null,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:L,pendingId:$}=b;L>0?setTimeout(()=>{b.pendingId===$&&b.fallback(S)},L):L===0&&b.fallback(S)}}function Yf(t,e,r,o,a,u,f,h,d,g,v=!1){const{p:b,m:w,um:S,n:M,o:{parentNode:A,remove:E}}=g,C=Io(t.props&&t.props.timeout),L={vnode:t,parent:e,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:v,isUnmounted:!1,effects:[],resolve($=!1){const{vnode:O,activeBranch:G,pendingBranch:V,pendingId:rt,effects:Z,parentComponent:ut,container:vt}=L;if(L.isHydrating)L.isHydrating=!1;else if(!$){const U=G&&V.transition&&V.transition.mode==="out-in";U&&(G.transition.afterLeave=()=>{rt===L.pendingId&&w(V,vt,z,0)});let{anchor:z}=L;G&&(z=M(G),S(G,ut,L,!0)),U||w(V,vt,z,0)}Oo(L,V),L.pendingBranch=null,L.isInFallback=!1;let kt=L.parent,ft=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...Z),ft=!0;break}kt=kt.parent}ft||_m(Z),L.effects=[],Qs(O,"onResolve")},fallback($){if(!L.pendingBranch)return;const{vnode:O,activeBranch:G,parentComponent:V,container:rt,isSVG:Z}=L;Qs(O,"onFallback");const ut=M(G),vt=()=>{!L.isInFallback||(b(null,$,rt,ut,V,null,Z,h,d),Oo(L,$))},kt=$.transition&&$.transition.mode==="out-in";kt&&(G.transition.afterLeave=vt),L.isInFallback=!0,S(G,V,null,!0),kt||vt()},move($,O,G){L.activeBranch&&w(L.activeBranch,$,O,G),L.container=$},next(){return L.activeBranch&&M(L.activeBranch)},registerDep($,O){const G=!!L.pendingBranch;G&&L.deps++;const V=$.vnode.el;$.asyncDep.catch(rt=>{dl(rt,$,0)}).then(rt=>{if($.isUnmounted||L.isUnmounted||L.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:Z}=$;tf($,rt,!1),V&&(Z.el=V);const ut=!V&&$.subTree.el;O($,Z,A(V||$.subTree.el),V?null:M($.subTree),L,f,d),ut&&E(ut),Xf($,Z.el),G&&--L.deps===0&&L.resolve()})},unmount($,O){L.isUnmounted=!0,L.activeBranch&&S(L.activeBranch,r,$,O),L.pendingBranch&&S(L.pendingBranch,r,$,O)}};return L}function T1(t,e,r,o,a,u,f,h,d){const g=e.suspense=Yf(e,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),v}function L1(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=Hp(o?r.default:r),t.ssFallback=o?Hp(r.fallback):zt(Cn)}function Hp(t){let e;if(Wt(t)){const r=qo&&t._c;r&&(t._d=!1,at()),t=t(),r&&(t._d=!0,e=In,jm())}return Ht(t)&&(t=m1(t)),t=jn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function E1(t,e){e&&e.pendingBranch?Ht(t)?e.effects.push(...t):e.effects.push(t):_m(t)}function Oo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t,a=r.el=e.el;o&&o.subTree===r&&(o.vnode.el=a,Xf(o,a))}function wa(t,e){if(We){let r=We.provides;const o=We.parent&&We.parent.provides;o===r&&(r=We.provides=Object.create(o)),r[t]=e}}function Or(t,e,r=!1){const o=We||Xe;if(o){const a=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(a&&t in a)return a[t];if(arguments.length>1)return r&&Wt(e)?e.call(o.proxy):e}}function Jf(t,e){return Zf(t,null,e)}const ca={};function Fe(t,e,r){return Zf(t,e,r)}function Zf(t,e,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=we){const h=We;let d,g=!1,v=!1;if(Ee(t)?(d=()=>t.value,g=Pa(t)):No(t)?(d=()=>t,o=!0):Ht(t)?(v=!0,g=t.some($=>No($)||Pa($)),d=()=>t.map($=>{if(Ee($))return $.value;if(No($))return qi($);if(Wt($))return fi($,h,2)})):Wt(t)?e?d=()=>fi(t,h,2):d=()=>{if(!(h&&h.isUnmounted))return b&&b(),Fn(t,h,3,[w])}:d=Kn,e&&o){const $=d;d=()=>qi($())}let b,w=$=>{b=C.onStop=()=>{fi($,h,4)}},S;if(el)if(w=Kn,e?r&&Fn(e,h,3,[d(),v?[]:void 0,w]):d(),a==="sync"){const $=w_();S=$.__watcherHandles||($.__watcherHandles=[])}else return Kn;let M=v?new Array(t.length).fill(ca):ca;const A=()=>{if(!!C.active)if(e){const $=C.run();(o||g||(v?$.some((O,G)=>Xs(O,M[G])):Xs($,M)))&&(b&&b(),Fn(e,h,3,[$,M===ca?void 0:v&&M[0]===ca?[]:M,w]),M=$)}else C.run()};A.allowRecurse=!!e;let E;a==="sync"?E=A:a==="post"?E=()=>xn(A,h&&h.suspense):(A.pre=!0,h&&(A.id=h.uid),E=()=>Kf(A));const C=new Ff(d,E);e?r?A():M=C.run():a==="post"?xn(C.run.bind(C),h&&h.suspense):C.run();const L=()=>{C.stop(),h&&h.scope&&Df(h.scope.effects,C)};return S&&S.push(L),L}function A1(t,e,r){const o=this.proxy,a=qe(t)?t.includes(".")?Em(o,t):()=>o[t]:t.bind(o,o);let u;Wt(e)?u=e:(u=e.handler,r=e);const f=We;Ho(this);const h=Zf(a,u.bind(o),r);return f?Ho(f):ji(),h}function Em(t,e){const r=e.split(".");return()=>{let o=t;for(let a=0;a<r.length&&o;a++)o=o[r[a]];return o}}function qi(t,e){if(!xe(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Ee(t))qi(t.value,e);else if(Ht(t))for(let r=0;r<t.length;r++)qi(t[r],e);else if(Qv(t)||Mo(t))t.forEach(r=>{qi(r,e)});else if(nm(t))for(const r in t)qi(t[r],e);return t}function M1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gl(()=>{t.isMounted=!0}),Om(()=>{t.isUnmounting=!0}),t}const zn=[Function,Array],N1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zn,onEnter:zn,onAfterEnter:zn,onEnterCancelled:zn,onBeforeLeave:zn,onLeave:zn,onAfterLeave:zn,onLeaveCancelled:zn,onBeforeAppear:zn,onAppear:zn,onAfterAppear:zn,onAppearCancelled:zn},setup(t,{slots:e}){const r=fc(),o=M1();let a;return()=>{const u=e.default&&Nm(e.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Cn){f=A;break}}const h=ce(t),{mode:d}=h;if(o.isLeaving)return ku(f);const g=Bp(f);if(!g)return ku(f);const v=Vu(g,h,o,r);Ku(g,v);const b=r.subTree,w=b&&Bp(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(w&&w.type!==Cn&&(!cr(g,w)||S)){const A=Vu(w,h,o,r);if(Ku(w,A),d==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},ku(f);d==="in-out"&&g.type!==Cn&&(A.delayLeave=(E,C,L)=>{const $=Mm(o,w);$[String(w.key)]=w,E._leaveCb=()=>{C(),E._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=L})}return f}}},Am=N1;function Mm(t,e){const{leavingVNodes:r}=t;let o=r.get(e.type);return o||(o=Object.create(null),r.set(e.type,o)),o}function Vu(t,e,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:S,onLeaveCancelled:M,onBeforeAppear:A,onAppear:E,onAfterAppear:C,onAppearCancelled:L}=e,$=String(t.key),O=Mm(r,t),G=(Z,ut)=>{Z&&Fn(Z,o,9,ut)},V=(Z,ut)=>{const vt=ut[1];G(Z,ut),Ht(Z)?Z.every(kt=>kt.length<=1)&&vt():Z.length<=1&&vt()},rt={mode:u,persisted:f,beforeEnter(Z){let ut=h;if(!r.isMounted)if(a)ut=A||h;else return;Z._leaveCb&&Z._leaveCb(!0);const vt=O[$];vt&&cr(t,vt)&&vt.el._leaveCb&&vt.el._leaveCb(),G(ut,[Z])},enter(Z){let ut=d,vt=g,kt=v;if(!r.isMounted)if(a)ut=E||d,vt=C||g,kt=L||v;else return;let ft=!1;const U=Z._enterCb=z=>{ft||(ft=!0,z?G(kt,[Z]):G(vt,[Z]),rt.delayedLeave&&rt.delayedLeave(),Z._enterCb=void 0)};ut?V(ut,[Z,U]):U()},leave(Z,ut){const vt=String(t.key);if(Z._enterCb&&Z._enterCb(!0),r.isUnmounting)return ut();G(b,[Z]);let kt=!1;const ft=Z._leaveCb=U=>{kt||(kt=!0,ut(),U?G(M,[Z]):G(S,[Z]),Z._leaveCb=void 0,O[vt]===t&&delete O[vt])};O[vt]=t,w?V(w,[Z,ft]):ft()},clone(Z){return Vu(Z,e,r,o)}};return rt}function ku(t){if(lc(t))return t=pi(t),t.children=null,t}function Bp(t){return lc(t)?t.children?t.children[0]:void 0:t}function Ku(t,e){t.shapeFlag&6&&t.component?Ku(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Nm(t,e=!1,r){let o=[],a=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===fe?(f.patchFlag&128&&a++,o=o.concat(Nm(f.children,e,h))):(e||f.type!==Cn)&&o.push(h!=null?pi(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function le(t){return Wt(t)?{setup:t,name:t.name}:t}const Bs=t=>!!t.type.__asyncLoader,lc=t=>t.type.__isKeepAlive;function P1(t,e){Pm(t,"a",e)}function O1(t,e){Pm(t,"da",e)}function Pm(t,e,r=We){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(ac(e,o,r),r){let a=r.parent;for(;a&&a.parent;)lc(a.parent.vnode)&&$1(o,e,r,a),a=a.parent}}function $1(t,e,r,o){const a=ac(e,t,o,!0);Qf(()=>{Df(o[e],a)},r)}function ac(t,e,r=We,o=!1){if(r){const a=r[t]||(r[t]=[]),u=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;Jo(),Ho(r);const h=Fn(e,r,t,f);return ji(),Zo(),h});return o?a.unshift(u):a.push(u),u}}const Fr=t=>(e,r=We)=>(!el||t==="sp")&&ac(t,(...o)=>e(...o),r),D1=Fr("bm"),gl=Fr("m"),R1=Fr("bu"),z1=Fr("u"),Om=Fr("bum"),Qf=Fr("um"),I1=Fr("sp"),F1=Fr("rtg"),q1=Fr("rtc");function H1(t,e=We){ac("ec",t,e)}function pn(t,e){const r=Xe;if(r===null)return t;const o=hc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[f,h,d,g=we]=e[u];f&&(Wt(f)&&(f={mounted:f,updated:f}),f.deep&&qi(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:d,modifiers:g}))}return t}function Pi(t,e,r,o){const a=t.dirs,u=e&&e.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let d=h.dir[o];d&&(Jo(),Fn(d,r,8,[t.el,h,t,e]),Zo())}}const $m="components",B1="directives";function Ki(t,e){return Dm($m,t,!0,e)||t}const W1=Symbol();function Qi(t){return Dm(B1,t)}function Dm(t,e,r=!0,o=!1){const a=Xe||We;if(a){const u=a.type;if(t===$m){const h=g_(u,!1);if(h&&(h===e||h===hr(e)||h===rc(hr(e))))return u}const f=Wp(a[t]||u[t],e)||Wp(a.appContext[t],e);return!f&&o?u:f}}function Wp(t,e){return t&&(t[e]||t[hr(e)]||t[rc(hr(e))])}function ar(t,e,r,o){let a;const u=r&&r[o];if(Ht(t)||qe(t)){a=new Array(t.length);for(let f=0,h=t.length;f<h;f++)a[f]=e(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){a=new Array(t);for(let f=0;f<t;f++)a[f]=e(f+1,f,void 0,u&&u[f])}else if(xe(t))if(t[Symbol.iterator])a=Array.from(t,(f,h)=>e(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);a=new Array(f.length);for(let h=0,d=f.length;h<d;h++){const g=f[h];a[h]=e(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function Xn(t,e,r={},o,a){if(Xe.isCE||Xe.parent&&Bs(Xe.parent)&&Xe.parent.isCE)return e!=="default"&&(r.name=e),zt("slot",r,o&&o());let u=t[e];u&&u._c&&(u._d=!1),at();const f=u&&Rm(u(r)),h=ne(fe,{key:r.key||f&&f.key||`_${e}`},f||(o?o():[]),f&&t._===1?64:-2);return!a&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function Rm(t){return t.some(e=>tl(e)?!(e.type===Cn||e.type===fe&&!Rm(e.children)):!0)?t:null}const Xu=t=>t?Km(t)?hc(t)||t.proxy:Xu(t.parent):null,Ws=Ye(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=>Xu(t.parent),$root:t=>Xu(t.root),$emit:t=>t.emit,$options:t=>th(t),$forceUpdate:t=>t.f||(t.f=()=>Kf(t.update)),$nextTick:t=>t.n||(t.n=pl.bind(t.proxy)),$watch:t=>A1.bind(t)}),Cu=(t,e)=>t!==we&&!t.__isScriptSetup&&ee(t,e),U1={get({_:t},e){const{ctx:r,setupState:o,data:a,props:u,accessCache:f,type:h,appContext:d}=t;let g;if(e[0]!=="$"){const S=f[e];if(S!==void 0)switch(S){case 1:return o[e];case 2:return a[e];case 4:return r[e];case 3:return u[e]}else{if(Cu(o,e))return f[e]=1,o[e];if(a!==we&&ee(a,e))return f[e]=2,a[e];if((g=t.propsOptions[0])&&ee(g,e))return f[e]=3,u[e];if(r!==we&&ee(r,e))return f[e]=4,r[e];Yu&&(f[e]=0)}}const v=Ws[e];let b,w;if(v)return e==="$attrs"&&On(t,"get",e),v(t);if((b=h.__cssModules)&&(b=b[e]))return b;if(r!==we&&ee(r,e))return f[e]=4,r[e];if(w=d.config.globalProperties,ee(w,e))return w[e]},set({_:t},e,r){const{data:o,setupState:a,ctx:u}=t;return Cu(a,e)?(a[e]=r,!0):o!==we&&ee(o,e)?(o[e]=r,!0):ee(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(u[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:a,propsOptions:u}},f){let h;return!!r[f]||t!==we&&ee(t,f)||Cu(e,f)||(h=u[0])&&ee(h,f)||ee(o,f)||ee(Ws,f)||ee(a.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:ee(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};let Yu=!0;function j1(t){const e=th(t),r=t.proxy,o=t.ctx;Yu=!1,e.beforeCreate&&Up(e.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:b,mounted:w,beforeUpdate:S,updated:M,activated:A,deactivated:E,beforeDestroy:C,beforeUnmount:L,destroyed:$,unmounted:O,render:G,renderTracked:V,renderTriggered:rt,errorCaptured:Z,serverPrefetch:ut,expose:vt,inheritAttrs:kt,components:ft,directives:U,filters:z}=e;if(g&&G1(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=Pn(W))}if(Yu=!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):Kn,Et=!Wt(et)&&Wt(et.set)?et.set.bind(r):Kn,qt=St({get:wt,set:Et});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Bt=>qt.value=Bt})}if(h)for(const W in h)zm(h[W],o,r,W);if(d){const W=Wt(d)?d.call(r):d;Reflect.ownKeys(W).forEach(et=>{wa(et,W[et])})}v&&Up(v,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(D1,b),H(gl,w),H(R1,S),H(z1,M),H(P1,A),H(O1,E),H(H1,Z),H(q1,V),H(F1,rt),H(Om,L),H(Qf,O),H(I1,ut),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===Kn&&(t.render=G),kt!=null&&(t.inheritAttrs=kt),ft&&(t.components=ft),U&&(t.directives=U)}function G1(t,e,r=Kn,o=!1){Ht(t)&&(t=Ju(t));for(const a in t){const u=t[a];let f;xe(u)?"default"in u?f=Or(u.from||a,u.default,!0):f=Or(u.from||a):f=Or(u),Ee(f)&&o?Object.defineProperty(e,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):e[a]=f}}function Up(t,e,r){Fn(Ht(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function zm(t,e,r,o){const a=o.includes(".")?Em(r,o):()=>r[o];if(qe(t)){const u=e[t];Wt(u)&&Fe(a,u)}else if(Wt(t))Fe(a,t.bind(r));else if(xe(t))if(Ht(t))t.forEach(u=>zm(u,e,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):e[t.handler];Wt(u)&&Fe(a,u,t)}}function th(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(e);let d;return h?d=h:!a.length&&!r&&!o?d=e:(d={},a.length&&a.forEach(g=>$a(d,g,f,!0)),$a(d,e,f)),xe(e)&&u.set(e,d),d}function $a(t,e,r,o=!1){const{mixins:a,extends:u}=e;u&&$a(t,u,r,!0),a&&a.forEach(f=>$a(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=V1[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const V1={data:jp,props:Ri,emits:Ri,methods:Ri,computed:Ri,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:Ri,directives:Ri,watch:X1,provide:jp,inject:K1};function jp(t,e){return e?t?function(){return Ye(Wt(t)?t.call(this,this):t,Wt(e)?e.call(this,this):e)}:e:t}function K1(t,e){return Ri(Ju(t),Ju(e))}function Ju(t){if(Ht(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function un(t,e){return t?[...new Set([].concat(t,e))]:e}function Ri(t,e){return t?Ye(Ye(Object.create(null),t),e):e}function X1(t,e){if(!t)return e;if(!e)return t;const r=Ye(Object.create(null),t);for(const o in e)r[o]=un(t[o],e[o]);return r}function Y1(t,e,r,o=!1){const a={},u={};Na(u,uc,1),t.propsDefaults=Object.create(null),Im(t,e,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:i1(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function J1(t,e,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=ce(a),[d]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let b=0;b<v.length;b++){let w=v[b];if(oc(t.emitsOptions,w))continue;const S=e[w];if(d)if(ee(u,w))S!==u[w]&&(u[w]=S,g=!0);else{const M=hr(w);a[M]=Zu(d,h,M,S,t,!1)}else S!==u[w]&&(u[w]=S,g=!0)}}}else{Im(t,e,a,u)&&(g=!0);let v;for(const b in h)(!e||!ee(e,b)&&((v=Zi(b))===b||!ee(e,v)))&&(d?r&&(r[b]!==void 0||r[v]!==void 0)&&(a[b]=Zu(d,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!e||!ee(e,b)&&!0)&&(delete u[b],g=!0)}g&&Dr(t,"set","$attrs")}function Im(t,e,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(e)for(let d in e){if(ya(d))continue;const g=e[d];let v;a&&ee(a,v=hr(d))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:oc(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(u){const d=ce(r),g=h||we;for(let v=0;v<u.length;v++){const b=u[v];r[b]=Zu(a,d,b,g[b],t,!ee(g,b))}}return f}function Zu(t,e,r,o,a,u){const f=t[r];if(f!=null){const h=ee(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&Wt(d)){const{propsDefaults:g}=a;r in g?o=g[r]:(Ho(a),o=g[r]=d.call(null,e),ji())}else o=d}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Zi(r))&&(o=!0))}return o}function Fm(t,e,r=!1){const o=e.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let d=!1;if(!Wt(t)){const v=b=>{d=!0;const[w,S]=Fm(b,e,!0);Ye(f,w),S&&h.push(...S)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!d)return xe(t)&&o.set(t,Ao),Ao;if(Ht(u))for(let v=0;v<u.length;v++){const b=hr(u[v]);Gp(b)&&(f[b]=we)}else if(u)for(const v in u){const b=hr(v);if(Gp(b)){const w=u[v],S=f[b]=Ht(w)||Wt(w)?{type:w}:Object.assign({},w);if(S){const M=Xp(Boolean,S.type),A=Xp(String,S.type);S[0]=M>-1,S[1]=A<0||M<A,(M>-1||ee(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function Gp(t){return t[0]!=="$"}function Vp(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function Kp(t,e){return Vp(t)===Vp(e)}function Xp(t,e){return Ht(e)?e.findIndex(r=>Kp(r,t)):Wt(e)&&Kp(e,t)?0:-1}const qm=t=>t[0]==="_"||t==="$stable",eh=t=>Ht(t)?t.map(jn):[jn(t)],Z1=(t,e,r)=>{if(e._n)return e;const o=Jt((...a)=>eh(e(...a)),r);return o._c=!1,o},Hm=(t,e,r)=>{const o=t._ctx;for(const a in t){if(qm(a))continue;const u=t[a];if(Wt(u))e[a]=Z1(a,u,o);else if(u!=null){const f=eh(u);e[a]=()=>f}}},Bm=(t,e)=>{const r=eh(e);t.slots.default=()=>r},Q1=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=ce(e),Na(e,"_",r)):Hm(e,t.slots={})}else t.slots={},e&&Bm(t,e);Na(t.slots,uc,1)},t_=(t,e,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=we;if(o.shapeFlag&32){const h=e._;h?r&&h===1?u=!1:(Ye(a,e),!r&&h===1&&delete a._):(u=!e.$stable,Hm(e,a)),f=e}else e&&(Bm(t,e),f={default:1});if(u)for(const h in a)!qm(h)&&!(h in f)&&delete a[h]};function Wm(){return{app:null,config:{isNativeTag:_x,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 e_=0;function n_(t,e){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Wm(),f=new Set;let h=!1;const d=u.app={_uid:e_++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:x_,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&Wt(g.install)?(f.add(g),g.install(d,...v)):Wt(g)&&(f.add(g),g(d,...v))),d},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),d},component(g,v){return v?(u.components[g]=v,d):u.components[g]},directive(g,v){return v?(u.directives[g]=v,d):u.directives[g]},mount(g,v,b){if(!h){const w=zt(o,a);return w.appContext=u,v&&e?e(w,g):t(w,g,b),h=!0,d._container=g,g.__vue_app__=d,hc(w.component)||w.component.proxy}},unmount(){h&&(t(null,d._container),delete d._container.__vue_app__)},provide(g,v){return u.provides[g]=v,d}};return d}}function Qu(t,e,r,o,a=!1){if(Ht(t)){t.forEach((w,S)=>Qu(w,e&&(Ht(e)?e[S]:e),r,o,a));return}if(Bs(o)&&!a)return;const u=o.shapeFlag&4?hc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:d}=t,g=e&&e.r,v=h.refs===we?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==d&&(qe(g)?(v[g]=null,ee(b,g)&&(b[g]=null)):Ee(g)&&(g.value=null)),Wt(d))fi(d,h,12,[f,v]);else{const w=qe(d),S=Ee(d);if(w||S){const M=()=>{if(t.f){const A=w?ee(b,d)?b[d]:v[d]:d.value;a?Ht(A)&&Df(A,u):Ht(A)?A.includes(u)||A.push(u):w?(v[d]=[u],ee(b,d)&&(b[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,ee(b,d)&&(b[d]=f)):S&&(d.value=f,t.k&&(v[t.k]=f))};f?(M.id=-1,xn(M,r)):M()}}}const xn=E1;function r_(t){return i_(t)}function i_(t,e){const r=Ex();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:b,nextSibling:w,setScopeId:S=Kn,insertStaticContent:M}=t,A=(P,F,J,nt=null,ot=null,pt=null,lt=!1,gt=null,xt=!!F.dynamicChildren)=>{if(P===F)return;P&&!cr(P,F)&&(nt=K(P),Bt(P,ot,pt,!0),P=null),F.patchFlag===-2&&(xt=!1,F.dynamicChildren=null);const{type:ct,ref:$t,shapeFlag:Nt}=F;switch(ct){case cc:E(P,F,J,nt);break;case Cn:C(P,F,J,nt);break;case Tu:P==null&&L(F,J,nt,lt);break;case fe:ft(P,F,J,nt,ot,pt,lt,gt,xt);break;default:Nt&1?G(P,F,J,nt,ot,pt,lt,gt,xt):Nt&6?U(P,F,J,nt,ot,pt,lt,gt,xt):(Nt&64||Nt&128)&&ct.process(P,F,J,nt,ot,pt,lt,gt,xt,Ct)}$t!=null&&ot&&Qu($t,P&&P.ref,pt,F||P,!F)},E=(P,F,J,nt)=>{if(P==null)o(F.el=h(F.children),J,nt);else{const ot=F.el=P.el;F.children!==P.children&&g(ot,F.children)}},C=(P,F,J,nt)=>{P==null?o(F.el=d(F.children||""),J,nt):F.el=P.el},L=(P,F,J,nt)=>{[P.el,P.anchor]=M(P.children,F,J,nt,P.el,P.anchor)},$=({el:P,anchor:F},J,nt)=>{let ot;for(;P&&P!==F;)ot=w(P),o(P,J,nt),P=ot;o(F,J,nt)},O=({el:P,anchor:F})=>{let J;for(;P&&P!==F;)J=w(P),a(P),P=J;a(F)},G=(P,F,J,nt,ot,pt,lt,gt,xt)=>{lt=lt||F.type==="svg",P==null?V(F,J,nt,ot,pt,lt,gt,xt):ut(P,F,ot,pt,lt,gt,xt)},V=(P,F,J,nt,ot,pt,lt,gt)=>{let xt,ct;const{type:$t,props:Nt,shapeFlag:Ot,transition:Rt,dirs:jt}=P;if(xt=P.el=f(P.type,pt,Nt&&Nt.is,Nt),Ot&8?v(xt,P.children):Ot&16&&Z(P.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,gt),jt&&Pi(P,null,nt,"created"),Nt){for(const Zt in Nt)Zt!=="value"&&!ya(Zt)&&u(xt,Zt,null,Nt[Zt],pt,P.children,nt,ot,tt);"value"in Nt&&u(xt,"value",null,Nt.value),(ct=Nt.onVnodeBeforeMount)&&or(ct,nt,P)}rt(xt,P,P.scopeId,lt,nt),jt&&Pi(P,null,nt,"beforeMount");const Qt=(!ot||ot&&!ot.pendingBranch)&&Rt&&!Rt.persisted;Qt&&Rt.beforeEnter(xt),o(xt,F,J),((ct=Nt&&Nt.onVnodeMounted)||Qt||jt)&&xn(()=>{ct&&or(ct,nt,P),Qt&&Rt.enter(xt),jt&&Pi(P,null,nt,"mounted")},ot)},rt=(P,F,J,nt,ot)=>{if(J&&S(P,J),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;rt(P,lt,lt.scopeId,lt.slotScopeIds,ot.parent)}}},Z=(P,F,J,nt,ot,pt,lt,gt,xt=0)=>{for(let ct=xt;ct<P.length;ct++){const $t=P[ct]=gt?ii(P[ct]):jn(P[ct]);A(null,$t,F,J,nt,ot,pt,lt,gt)}},ut=(P,F,J,nt,ot,pt,lt)=>{const gt=F.el=P.el;let{patchFlag:xt,dynamicChildren:ct,dirs:$t}=F;xt|=P.patchFlag&16;const Nt=P.props||we,Ot=F.props||we;let Rt;J&&Oi(J,!1),(Rt=Ot.onVnodeBeforeUpdate)&&or(Rt,J,F,P),$t&&Pi(F,P,J,"beforeUpdate"),J&&Oi(J,!0);const jt=ot&&F.type!=="foreignObject";if(ct?vt(P.dynamicChildren,ct,gt,J,nt,jt,pt):lt||et(P,F,gt,null,J,nt,jt,pt,!1),xt>0){if(xt&16)kt(gt,F,Nt,Ot,J,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 Qt=F.dynamicProps;for(let Zt=0;Zt<Qt.length;Zt++){const ae=Qt[Zt],Yt=Nt[ae],mn=Ot[ae];(mn!==Yt||ae==="value")&&u(gt,ae,Yt,mn,ot,P.children,J,nt,tt)}}xt&1&&P.children!==F.children&&v(gt,F.children)}else!lt&&ct==null&&kt(gt,F,Nt,Ot,J,nt,ot);((Rt=Ot.onVnodeUpdated)||$t)&&xn(()=>{Rt&&or(Rt,J,F,P),$t&&Pi(F,P,J,"updated")},nt)},vt=(P,F,J,nt,ot,pt,lt)=>{for(let gt=0;gt<F.length;gt++){const xt=P[gt],ct=F[gt],$t=xt.el&&(xt.type===fe||!cr(xt,ct)||xt.shapeFlag&70)?b(xt.el):J;A(xt,ct,$t,null,nt,ot,pt,lt,!0)}},kt=(P,F,J,nt,ot,pt,lt)=>{if(J!==nt){if(J!==we)for(const gt in J)!ya(gt)&&!(gt in nt)&&u(P,gt,J[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(ya(gt))continue;const xt=nt[gt],ct=J[gt];xt!==ct&&gt!=="value"&&u(P,gt,ct,xt,lt,F.children,ot,pt,tt)}"value"in nt&&u(P,"value",J.value,nt.value)}},ft=(P,F,J,nt,ot,pt,lt,gt,xt)=>{const ct=F.el=P?P.el:h(""),$t=F.anchor=P?P.anchor:h("");let{patchFlag:Nt,dynamicChildren:Ot,slotScopeIds:Rt}=F;Rt&&(gt=gt?gt.concat(Rt):Rt),P==null?(o(ct,J,nt),o($t,J,nt),Z(F.children,J,$t,ot,pt,lt,gt,xt)):Nt>0&&Nt&64&&Ot&&P.dynamicChildren?(vt(P.dynamicChildren,Ot,J,ot,pt,lt,gt),(F.key!=null||ot&&F===ot.subTree)&&Um(P,F,!0)):et(P,F,J,$t,ot,pt,lt,gt,xt)},U=(P,F,J,nt,ot,pt,lt,gt,xt)=>{F.slotScopeIds=gt,P==null?F.shapeFlag&512?ot.ctx.activate(F,J,nt,lt,xt):z(F,J,nt,ot,pt,lt,xt):k(P,F,xt)},z=(P,F,J,nt,ot,pt,lt)=>{const gt=P.component=f_(P,nt,ot);if(lc(P)&&(gt.ctx.renderer=Ct),h_(gt),gt.asyncDep){if(ot&&ot.registerDep(gt,H),!P.el){const xt=gt.subTree=zt(Cn);C(null,xt,F,J)}return}H(gt,P,F,J,ot,pt,lt)},k=(P,F,J)=>{const nt=F.component=P.component;if(w1(P,F,J))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,J);return}else nt.next=F,d1(nt.update),nt.update();else F.el=P.el,nt.vnode=F},H=(P,F,J,nt,ot,pt,lt)=>{const gt=()=>{if(P.isMounted){let{next:$t,bu:Nt,u:Ot,parent:Rt,vnode:jt}=P,Qt=$t,Zt;Oi(P,!1),$t?($t.el=jt.el,W(P,$t,lt)):$t=jt,Nt&&ba(Nt),(Zt=$t.props&&$t.props.onVnodeBeforeUpdate)&&or(Zt,Rt,$t,jt),Oi(P,!0);const ae=Su(P),Yt=P.subTree;P.subTree=ae,A(Yt,ae,b(Yt.el),K(Yt),P,ot,pt),$t.el=ae.el,Qt===null&&Xf(P,ae.el),Ot&&xn(Ot,ot),(Zt=$t.props&&$t.props.onVnodeUpdated)&&xn(()=>or(Zt,Rt,$t,jt),ot)}else{let $t;const{el:Nt,props:Ot}=F,{bm:Rt,m:jt,parent:Qt}=P,Zt=Bs(F);if(Oi(P,!1),Rt&&ba(Rt),!Zt&&($t=Ot&&Ot.onVnodeBeforeMount)&&or($t,Qt,F),Oi(P,!0),Nt&&Lt){const ae=()=>{P.subTree=Su(P),Lt(Nt,P.subTree,P,ot,null)};Zt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&ae()):ae()}else{const ae=P.subTree=Su(P);A(null,ae,J,nt,P,ot,pt),F.el=ae.el}if(jt&&xn(jt,ot),!Zt&&($t=Ot&&Ot.onVnodeMounted)){const ae=F;xn(()=>or($t,Qt,ae),ot)}(F.shapeFlag&256||Qt&&Bs(Qt.vnode)&&Qt.vnode.shapeFlag&256)&&P.a&&xn(P.a,ot),P.isMounted=!0,F=J=nt=null}},xt=P.effect=new Ff(gt,()=>Kf(ct),P.scope),ct=P.update=()=>xt.run();ct.id=P.uid,Oi(P,!0),ct()},W=(P,F,J)=>{F.component=P;const nt=P.vnode.props;P.vnode=F,P.next=null,J1(P,F.props,nt,J),t_(P,F.children,J),Jo(),Fp(),Zo()},et=(P,F,J,nt,ot,pt,lt,gt,xt=!1)=>{const ct=P&&P.children,$t=P?P.shapeFlag:0,Nt=F.children,{patchFlag:Ot,shapeFlag:Rt}=F;if(Ot>0){if(Ot&128){Et(ct,Nt,J,nt,ot,pt,lt,gt,xt);return}else if(Ot&256){wt(ct,Nt,J,nt,ot,pt,lt,gt,xt);return}}Rt&8?($t&16&&tt(ct,ot,pt),Nt!==ct&&v(J,Nt)):$t&16?Rt&16?Et(ct,Nt,J,nt,ot,pt,lt,gt,xt):tt(ct,ot,pt,!0):($t&8&&v(J,""),Rt&16&&Z(Nt,J,nt,ot,pt,lt,gt,xt))},wt=(P,F,J,nt,ot,pt,lt,gt,xt)=>{P=P||Ao,F=F||Ao;const ct=P.length,$t=F.length,Nt=Math.min(ct,$t);let Ot;for(Ot=0;Ot<Nt;Ot++){const Rt=F[Ot]=xt?ii(F[Ot]):jn(F[Ot]);A(P[Ot],Rt,J,null,ot,pt,lt,gt,xt)}ct>$t?tt(P,ot,pt,!0,!1,Nt):Z(F,J,nt,ot,pt,lt,gt,xt,Nt)},Et=(P,F,J,nt,ot,pt,lt,gt,xt)=>{let ct=0;const $t=F.length;let Nt=P.length-1,Ot=$t-1;for(;ct<=Nt&&ct<=Ot;){const Rt=P[ct],jt=F[ct]=xt?ii(F[ct]):jn(F[ct]);if(cr(Rt,jt))A(Rt,jt,J,null,ot,pt,lt,gt,xt);else break;ct++}for(;ct<=Nt&&ct<=Ot;){const Rt=P[Nt],jt=F[Ot]=xt?ii(F[Ot]):jn(F[Ot]);if(cr(Rt,jt))A(Rt,jt,J,null,ot,pt,lt,gt,xt);else break;Nt--,Ot--}if(ct>Nt){if(ct<=Ot){const Rt=Ot+1,jt=Rt<$t?F[Rt].el:nt;for(;ct<=Ot;)A(null,F[ct]=xt?ii(F[ct]):jn(F[ct]),J,jt,ot,pt,lt,gt,xt),ct++}}else if(ct>Ot)for(;ct<=Nt;)Bt(P[ct],ot,pt,!0),ct++;else{const Rt=ct,jt=ct,Qt=new Map;for(ct=jt;ct<=Ot;ct++){const ye=F[ct]=xt?ii(F[ct]):jn(F[ct]);ye.key!=null&&Qt.set(ye.key,ct)}let Zt,ae=0;const Yt=Ot-jt+1;let mn=!1,Ln=0;const He=new Array(Yt);for(ct=0;ct<Yt;ct++)He[ct]=0;for(ct=Rt;ct<=Nt;ct++){const ye=P[ct];if(ae>=Yt){Bt(ye,ot,pt,!0);continue}let nn;if(ye.key!=null)nn=Qt.get(ye.key);else for(Zt=jt;Zt<=Ot;Zt++)if(He[Zt-jt]===0&&cr(ye,F[Zt])){nn=Zt;break}nn===void 0?Bt(ye,ot,pt,!0):(He[nn-jt]=ct+1,nn>=Ln?Ln=nn:mn=!0,A(ye,F[nn],J,null,ot,pt,lt,gt,xt),ae++)}const to=mn?o_(He):Ao;for(Zt=to.length-1,ct=Yt-1;ct>=0;ct--){const ye=jt+ct,nn=F[ye],bt=ye+1<$t?F[ye+1].el:nt;He[ct]===0?A(null,nn,J,bt,ot,pt,lt,gt,xt):mn&&(Zt<0||ct!==to[Zt]?qt(nn,J,bt,2):Zt--)}}},qt=(P,F,J,nt,ot=null)=>{const{el:pt,type:lt,transition:gt,children:xt,shapeFlag:ct}=P;if(ct&6){qt(P.component.subTree,F,J,nt);return}if(ct&128){P.suspense.move(F,J,nt);return}if(ct&64){lt.move(P,F,J,Ct);return}if(lt===fe){o(pt,F,J);for(let Nt=0;Nt<xt.length;Nt++)qt(xt[Nt],F,J,nt);o(P.anchor,F,J);return}if(lt===Tu){$(P,F,J);return}if(nt!==2&&ct&1&&gt)if(nt===0)gt.beforeEnter(pt),o(pt,F,J),xn(()=>gt.enter(pt),ot);else{const{leave:Nt,delayLeave:Ot,afterLeave:Rt}=gt,jt=()=>o(pt,F,J),Qt=()=>{Nt(pt,()=>{jt(),Rt&&Rt()})};Ot?Ot(pt,jt,Qt):Qt()}else o(pt,F,J)},Bt=(P,F,J,nt=!1,ot=!1)=>{const{type:pt,props:lt,ref:gt,children:xt,dynamicChildren:ct,shapeFlag:$t,patchFlag:Nt,dirs:Ot}=P;if(gt!=null&&Qu(gt,null,J,P,!0),$t&256){F.ctx.deactivate(P);return}const Rt=$t&1&&Ot,jt=!Bs(P);let Qt;if(jt&&(Qt=lt&&lt.onVnodeBeforeUnmount)&&or(Qt,F,P),$t&6)Q(P.component,J,nt);else{if($t&128){P.suspense.unmount(J,nt);return}Rt&&Pi(P,null,F,"beforeUnmount"),$t&64?P.type.remove(P,F,J,ot,Ct,nt):ct&&(pt!==fe||Nt>0&&Nt&64)?tt(ct,F,J,!1,!0):(pt===fe&&Nt&384||!ot&&$t&16)&&tt(xt,F,J),nt&&Gt(P)}(jt&&(Qt=lt&&lt.onVnodeUnmounted)||Rt)&&xn(()=>{Qt&&or(Qt,F,P),Rt&&Pi(P,null,F,"unmounted")},J)},Gt=P=>{const{type:F,el:J,anchor:nt,transition:ot}=P;if(F===fe){re(J,nt);return}if(F===Tu){O(P);return}const pt=()=>{a(J),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if(P.shapeFlag&1&&ot&&!ot.persisted){const{leave:lt,delayLeave:gt}=ot,xt=()=>lt(J,pt);gt?gt(P.el,pt,xt):xt()}else pt()},re=(P,F)=>{let J;for(;P!==F;)J=w(P),a(P),P=J;a(F)},Q=(P,F,J)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:gt}=P;nt&&ba(nt),ot.stop(),pt&&(pt.active=!1,Bt(lt,P,F,J)),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,J,nt=!1,ot=!1,pt=0)=>{for(let lt=pt;lt<P.length;lt++)Bt(P[lt],F,J,nt,ot)},K=P=>P.shapeFlag&6?K(P.component.subTree):P.shapeFlag&128?P.suspense.next():w(P.anchor||P.el),st=(P,F,J)=>{P==null?F._vnode&&Bt(F._vnode,null,null,!0):A(F._vnode||null,P,F,null,null,null,J),Fp(),Sm(),F._vnode=P},Ct={p:A,um:Bt,m:qt,r:Gt,mt:z,mc:Z,pc:et,pbc:vt,n:K,o:t};let pe,Lt;return e&&([pe,Lt]=e(Ct)),{render:st,hydrate:pe,createApp:n_(st,pe)}}function Oi({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Um(t,e,r=!1){const o=t.children,a=e.children;if(Ht(o)&&Ht(a))for(let u=0;u<o.length;u++){const f=o[u];let h=a[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=a[u]=ii(a[u]),h.el=f.el),r||Um(f,h)),h.type===cc&&(h.el=f.el)}}function o_(t){const e=t.slice(),r=[0];let o,a,u,f,h;const d=t.length;for(o=0;o<d;o++){const g=t[o];if(g!==0){if(a=r[r.length-1],t[a]<g){e[o]=a,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(e[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=e[f];return r}const s_=t=>t.__isTeleport,fe=Symbol(void 0),cc=Symbol(void 0),Cn=Symbol(void 0),Tu=Symbol(void 0),Us=[];let In=null;function at(t=!1){Us.push(In=t?null:[])}function jm(){Us.pop(),In=Us[Us.length-1]||null}let qo=1;function Yp(t){qo+=t}function Gm(t){return t.dynamicChildren=qo>0?In||Ao:null,jm(),qo>0&&In&&In.push(t),t}function At(t,e,r,o,a,u){return Gm(dt(t,e,r,o,a,u,!0))}function ne(t,e,r,o,a){return Gm(zt(t,e,r,o,a,!0))}function tl(t){return t?t.__v_isVNode===!0:!1}function cr(t,e){return t.type===e.type&&t.key===e.key}const uc="__vInternal",Vm=({key:t})=>t??null,xa=({ref:t,ref_key:e,ref_for:r})=>t!=null?qe(t)||Ee(t)||Wt(t)?{i:Xe,r:t,k:e,f:!!r}:t:null;function dt(t,e=null,r=null,o=0,a=null,u=t===fe?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Vm(e),ref:e&&xa(e),scopeId:sc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Xe};return h?(nh(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=qe(r)?8:16),qo>0&&!f&&In&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&In.push(d),d}const zt=l_;function l_(t,e=null,r=null,o=0,a=null,u=!1){if((!t||t===W1)&&(t=Cn),tl(t)){const h=pi(t,e,!0);return r&&nh(h,r),qo>0&&!u&&In&&(h.shapeFlag&6?In[In.indexOf(t)]=h:In.push(h)),h.patchFlag|=-2,h}if(v_(t)&&(t=t.__vccOpts),e){e=a_(e);let{class:h,style:d}=e;h&&!qe(h)&&(e.class=ve(h)),xe(d)&&(pm(d)&&!Ht(d)&&(d=Ye({},d)),e.style=kn(d))}const f=qe(t)?1:x1(t)?128:s_(t)?64:xe(t)?4:Wt(t)?2:0;return dt(t,e,r,o,a,f,u,!0)}function a_(t){return t?pm(t)||uc in t?Ye({},t):t:null}function pi(t,e,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=e?hi(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Vm(h),ref:e&&e.ref?r&&a?Ht(a)?a.concat(xa(e)):[a,xa(e)]:xa(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==fe?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pi(t.ssContent),ssFallback:t.ssFallback&&pi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx}}function fn(t=" ",e=0){return zt(cc,null,t,e)}function se(t="",e=!1){return e?(at(),ne(Cn,null,t)):zt(Cn,null,t)}function jn(t){return t==null||typeof t=="boolean"?zt(Cn):Ht(t)?zt(fe,null,t.slice()):typeof t=="object"?ii(t):zt(cc,null,String(t))}function ii(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function nh(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(Ht(e))r=16;else if(typeof e=="object")if(o&65){const a=e.default;a&&(a._c&&(a._d=!1),nh(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=e._;!a&&!(uc in e)?e._ctx=Xe:a===3&&Xe&&(Xe.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Wt(e)?(e={default:e,_ctx:Xe},r=32):(e=String(e),o&64?(r=16,e=[fn(e)]):r=8);t.children=e,t.shapeFlag|=r}function hi(...t){const e={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")e.class!==o.class&&(e.class=ve([e.class,o.class]));else if(a==="style")e.style=kn([e.style,o.style]);else if(tc(a)){const u=e[a],f=o[a];f&&u!==f&&!(Ht(u)&&u.includes(f))&&(e[a]=u?[].concat(u,f):f)}else a!==""&&(e[a]=o[a])}return e}function or(t,e,r,o=null){Fn(t,e,7,[r,o])}const c_=Wm();let u_=0;function f_(t,e,r){const o=t.type,a=(e?e.appContext:t.appContext)||c_,u={uid:u_++,vnode:t,type:o,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ax(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fm(o,a),emitsOptions:Cm(o,a),emit:null,emitted:null,propsDefaults:we,inheritAttrs:o.inheritAttrs,ctx:we,data:we,props:we,attrs:we,slots:we,refs:we,setupState:we,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=e?e.root:u,u.emit=g1.bind(null,u),t.ce&&t.ce(u),u}let We=null;const fc=()=>We||Xe,Ho=t=>{We=t,t.scope.on()},ji=()=>{We&&We.scope.off(),We=null};function Km(t){return t.vnode.shapeFlag&4}let el=!1;function h_(t,e=!1){el=e;const{props:r,children:o}=t.vnode,a=Km(t);Y1(t,r,a,e),Q1(t,o);const u=a?d_(t,e):void 0;return el=!1,u}function d_(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Uf(new Proxy(t.ctx,U1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Ym(t):null;Ho(t),Jo();const u=fi(o,t,0,[t.props,a]);if(Zo(),ji(),tm(u)){if(u.then(ji,ji),e)return u.then(f=>{tf(t,f,e)}).catch(f=>{dl(f,t,0)});t.asyncDep=u}else tf(t,u,e)}else Xm(t,e)}function tf(t,e,r){Wt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:xe(e)&&(t.setupState=ym(e)),Xm(t,r)}let Jp;function Xm(t,e,r){const o=t.type;if(!t.render){if(!e&&Jp&&!o.render){const a=o.template||th(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Ye(Ye({isCustomElement:u,delimiters:h},f),d);o.render=Jp(a,g)}}t.render=o.render||Kn}Ho(t),Jo(),j1(t),Zo(),ji()}function p_(t){return new Proxy(t.attrs,{get(e,r){return On(t,"get","$attrs"),e[r]}})}function Ym(t){const e=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=p_(t))},slots:t.slots,emit:t.emit,expose:e}}function hc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ym(Uf(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Ws)return Ws[r](t)},has(e,r){return r in e||r in Ws}}))}function g_(t,e=!0){return Wt(t)?t.displayName||t.name:t.name||e&&t.__name}function v_(t){return Wt(t)&&"__vccOpts"in t}const St=(t,e)=>u1(t,e,el);function m_(){return y_().attrs}function y_(){const t=fc();return t.setupContext||(t.setupContext=Ym(t))}function vl(t,e,r){const o=arguments.length;return o===2?xe(e)&&!Ht(e)?tl(e)?zt(t,null,[e]):zt(t,e):zt(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&tl(r)&&(r=[r]),zt(t,e,r))}const b_=Symbol(""),w_=()=>Or(b_),x_="3.2.45",__="http://www.w3.org/2000/svg",Fi=typeof document<"u"?document:null,Zp=Fi&&Fi.createElement("template"),S_={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,o)=>{const a=e?Fi.createElementNS(__,t):Fi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>Fi.createTextNode(t),createComment:t=>Fi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Fi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,a,u){const f=r?r.previousSibling:e.lastChild;if(a&&(a===u||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{Zp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Zp.content;if(o){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}e.insertBefore(h,r)}return[f?f.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function k_(t,e,r){const o=t._vtc;o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function C_(t,e,r){const o=t.style,a=qe(r);if(r&&!a){for(const u in r)ef(o,u,r[u]);if(e&&!qe(e))for(const u in e)r[u]==null&&ef(o,u,"")}else{const u=o.display;a?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Qp=/\s*!important$/;function ef(t,e,r){if(Ht(r))r.forEach(o=>ef(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=T_(t,e);Qp.test(r)?t.setProperty(Zi(o),r.replace(Qp,""),"important"):t[o]=r}}const tg=["Webkit","Moz","ms"],Lu={};function T_(t,e){const r=Lu[e];if(r)return r;let o=hr(e);if(o!=="filter"&&o in t)return Lu[e]=o;o=rc(o);for(let a=0;a<tg.length;a++){const u=tg[a]+o;if(u in t)return Lu[e]=u}return e}const eg="http://www.w3.org/1999/xlink";function L_(t,e,r,o,a){if(o&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(eg,e.slice(6,e.length)):t.setAttributeNS(eg,e,r);else{const u=xx(e);r==null||u&&!Jv(r)?t.removeAttribute(e):t.setAttribute(e,u?"":r)}}function E_(t,e,r,o,a,u,f){if(e==="innerHTML"||e==="textContent"){o&&f(o,a,u),t[e]=r??"";return}if(e==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=r;const d=r??"";(t.value!==d||t.tagName==="OPTION")&&(t.value=d),r==null&&t.removeAttribute(e);return}let h=!1;if(r===""||r==null){const d=typeof t[e];d==="boolean"?r=Jv(r):r==null&&d==="string"?(r="",h=!0):d==="number"&&(r=0,h=!0)}try{t[e]=r}catch{}h&&t.removeAttribute(e)}function Lo(t,e,r,o){t.addEventListener(e,r,o)}function A_(t,e,r,o){t.removeEventListener(e,r,o)}function M_(t,e,r,o,a=null){const u=t._vei||(t._vei={}),f=u[e];if(o&&f)f.value=o;else{const[h,d]=N_(e);if(o){const g=u[e]=$_(o,a);Lo(t,h,g,d)}else f&&(A_(t,h,f,d),u[e]=void 0)}}const ng=/(?:Once|Passive|Capture)$/;function N_(t){let e;if(ng.test(t)){e={};let o;for(;o=t.match(ng);)t=t.slice(0,t.length-o[0].length),e[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Zi(t.slice(2)),e]}let Eu=0;const P_=Promise.resolve(),O_=()=>Eu||(P_.then(()=>Eu=0),Eu=Date.now());function $_(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Fn(D_(o,r.value),e,5,[o])};return r.value=t,r.attached=O_(),r}function D_(t,e){if(Ht(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>a=>!a._stopped&&o&&o(a))}else return e}const rg=/^on[a-z]/,R_=(t,e,r,o,a=!1,u,f,h,d)=>{e==="class"?k_(t,o,a):e==="style"?C_(t,r,o):tc(e)?$f(e)||M_(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):z_(t,e,o,a))?E_(t,e,o,u,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),L_(t,e,o,a))};function z_(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&rg.test(e)&&Wt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||rg.test(e)&&qe(r)?!1:e in t}const ei="transition",$s="animation",rh=(t,{slots:e})=>vl(Am,I_(t),e);rh.displayName="Transition";const Jm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};rh.props=Ye({},Am.props,Jm);const $i=(t,e=[])=>{Ht(t)?t.forEach(r=>r(...e)):t&&t(...e)},ig=t=>t?Ht(t)?t.some(e=>e.length>1):t.length>1:!1;function I_(t){const e={};for(const ft in t)ft in Jm||(e[ft]=t[ft]);if(t.css===!1)return e;const{name:r="v",type:o,duration:a,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:w=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,M=F_(a),A=M&&M[0],E=M&&M[1],{onBeforeEnter:C,onEnter:L,onEnterCancelled:$,onLeave:O,onLeaveCancelled:G,onBeforeAppear:V=C,onAppear:rt=L,onAppearCancelled:Z=$}=e,ut=(ft,U,z)=>{Di(ft,U?v:h),Di(ft,U?g:f),z&&z()},vt=(ft,U)=>{ft._isLeaving=!1,Di(ft,b),Di(ft,S),Di(ft,w),U&&U()},kt=ft=>(U,z)=>{const k=ft?rt:L,H=()=>ut(U,ft,z);$i(k,[U,H]),og(()=>{Di(U,ft?d:u),ni(U,ft?v:h),ig(k)||sg(U,o,A,H)})};return Ye(e,{onBeforeEnter(ft){$i(C,[ft]),ni(ft,u),ni(ft,f)},onBeforeAppear(ft){$i(V,[ft]),ni(ft,d),ni(ft,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(ft,U){ft._isLeaving=!0;const z=()=>vt(ft,U);ni(ft,b),B_(),ni(ft,w),og(()=>{!ft._isLeaving||(Di(ft,b),ni(ft,S),ig(O)||sg(ft,o,E,z))}),$i(O,[ft,z])},onEnterCancelled(ft){ut(ft,!1),$i($,[ft])},onAppearCancelled(ft){ut(ft,!0),$i(Z,[ft])},onLeaveCancelled(ft){vt(ft),$i(G,[ft])}})}function F_(t){if(t==null)return null;if(xe(t))return[Au(t.enter),Au(t.leave)];{const e=Au(t);return[e,e]}}function Au(t){return Io(t)}function ni(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function Di(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function og(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let q_=0;function sg(t,e,r,o){const a=t._endId=++q_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=H_(t,e);if(!f)return o();const g=f+"end";let v=0;const b=()=>{t.removeEventListener(g,w),u()},w=S=>{S.target===t&&++v>=d&&b()};setTimeout(()=>{v<d&&b()},h+1),t.addEventListener(g,w)}function H_(t,e){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),a=o(`${ei}Delay`),u=o(`${ei}Duration`),f=lg(a,u),h=o(`${$s}Delay`),d=o(`${$s}Duration`),g=lg(h,d);let v=null,b=0,w=0;e===ei?f>0&&(v=ei,b=f,w=u.length):e===$s?g>0&&(v=$s,b=g,w=d.length):(b=Math.max(f,g),v=b>0?f>g?ei:$s:null,w=v?v===ei?u.length:d.length:0);const S=v===ei&&/\b(transform|all)(,|$)/.test(o(`${ei}Property`).toString());return{type:v,timeout:b,propCount:w,hasTransform:S}}function lg(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,o)=>ag(r)+ag(t[o])))}function ag(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function B_(){return document.body.offsetHeight}const cg=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ht(e)?r=>ba(e,r):e};function W_(t){t.target.composing=!0}function ug(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const U_={created(t,{modifiers:{lazy:e,trim:r,number:o}},a){t._assign=cg(a);const u=o||a.props&&a.props.type==="number";Lo(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=Io(h)),t._assign(h)}),r&&Lo(t,"change",()=>{t.value=t.value.trim()}),e||(Lo(t,"compositionstart",W_),Lo(t,"compositionend",ug),Lo(t,"change",ug))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=cg(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===e||(a||t.type==="number")&&Io(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},j_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},nf=(t,e)=>r=>{if(!("key"in r))return;const o=Zi(r.key);if(e.some(a=>a===o||j_[a]===o))return t(r)},Zm={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Ds(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:o}){!e!=!r&&(o?e?(o.beforeEnter(t),Ds(t,!0),o.enter(t)):o.leave(t,()=>{Ds(t,!1)}):Ds(t,e))},beforeUnmount(t,{value:e}){Ds(t,e)}};function Ds(t,e){t.style.display=e?t._vod:"none"}const G_=Ye({patchProp:R_},S_);let fg;function V_(){return fg||(fg=r_(G_))}const Qm=(...t)=>{const e=V_().createApp(...t),{mount:r}=e;return e.mount=o=>{const a=K_(o);if(!a)return;const u=e._component;!Wt(u)&&!u.render&&!u.template&&(u.template=a.innerHTML),a.innerHTML="";const f=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),f},e};function K_(t){return qe(t)?document.querySelector(t):t}const Qo=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},X_={};function Y_(t,e){const r=Ki("RouterView");return at(),ne(r)}const J_=Qo(X_,[["render",Y_]]);const Eo=typeof window<"u";function Z_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const de=Object.assign;function Mu(t,e){const r={};for(const o in e){const a=e[o];r[o]=Yn(a)?a.map(t):t(a)}return r}const js=()=>{},Yn=Array.isArray,Q_=/\/$/,tS=t=>t.replace(Q_,"");function Nu(t,e,r="/"){let o,a={},u="",f="";const h=e.indexOf("#");let d=e.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(o=e.slice(0,d),u=e.slice(d+1,h>-1?h:e.length),a=t(u)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=iS(o??e,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function eS(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function hg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function nS(t,e,r){const o=e.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&Bo(e.matched[o],r.matched[a])&&t0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Bo(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function t0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!rS(t[r],e[r]))return!1;return!0}function rS(t,e){return Yn(t)?dg(t,e):Yn(e)?dg(e,t):t===e}function dg(t,e){return Yn(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function iS(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/");let a=r.length-1,u,f;for(u=0;u<o.length;u++)if(f=o[u],f!==".")if(f==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+o.slice(u-(u===o.length?1:0)).join("/")}var nl;(function(t){t.pop="pop",t.push="push"})(nl||(nl={}));var Gs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Gs||(Gs={}));function oS(t){if(!t)if(Eo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),tS(t)}const sS=/^[^#]+#/;function lS(t,e){return t.replace(sS,"#")+e}function aS(t,e){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-r.left-(e.left||0),top:o.top-r.top-(e.top||0)}}const dc=()=>({left:window.pageXOffset,top:window.pageYOffset});function cS(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;e=aS(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function pg(t,e){return(history.state?history.state.position-e:-1)+t}const rf=new Map;function uS(t,e){rf.set(t,e)}function fS(t){const e=rf.get(t);return rf.delete(t),e}let hS=()=>location.protocol+"//"+location.host;function e0(t,e){const{pathname:r,search:o,hash:a}=e,u=t.indexOf("#");if(u>-1){let h=a.includes(t.slice(u))?t.slice(u).length:1,d=a.slice(h);return d[0]!=="/"&&(d="/"+d),hg(d,"")}return hg(r,t)+o+a}function dS(t,e,r,o){let a=[],u=[],f=null;const h=({state:w})=>{const S=e0(t,location),M=r.value,A=e.value;let E=0;if(w){if(r.value=S,e.value=w,f&&f===M){f=null;return}E=A?w.position-A.position:0}else o(S);a.forEach(C=>{C(r.value,M,{delta:E,type:nl.pop,direction:E?E>0?Gs.forward:Gs.back:Gs.unknown})})};function d(){f=r.value}function g(w){a.push(w);const S=()=>{const M=a.indexOf(w);M>-1&&a.splice(M,1)};return u.push(S),S}function v(){const{history:w}=window;!w.state||w.replaceState(de({},w.state,{scroll:dc()}),"")}function b(){for(const w of u)w();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v),{pauseListeners:d,listen:g,destroy:b}}function gg(t,e,r,o=!1,a=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:a?dc():null}}function pS(t){const{history:e,location:r}=window,o={value:e0(t,r)},a={value:e.state};a.value||u(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function u(d,g,v){const b=t.indexOf("#"),w=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+d:hS()+t+d;try{e[v?"replaceState":"pushState"](g,"",w),a.value=g}catch(S){console.error(S),r[v?"replace":"assign"](w)}}function f(d,g){const v=de({},e.state,gg(a.value.back,d,a.value.forward,!0),g,{position:a.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=de({},a.value,e.state,{forward:d,scroll:dc()});u(v.current,v,!0);const b=de({},gg(o.value,d,null),{position:v.position+1},g);u(d,b,!1),o.value=d}return{location:o,state:a,push:h,replace:f}}function gS(t){t=oS(t);const e=pS(t),r=dS(t,e.state,e.location,e.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=de({location:"",base:t,go:o,createHref:lS.bind(null,t)},e,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function vS(t){return typeof t=="string"||t&&typeof t=="object"}function n0(t){return typeof t=="string"||typeof t=="symbol"}const ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},r0=Symbol("");var vg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(vg||(vg={}));function Wo(t,e){return de(new Error,{type:t,[r0]:!0},e)}function Tr(t,e){return t instanceof Error&&r0 in t&&(e==null||!!(t.type&e))}const mg="[^/]+?",mS={sensitive:!1,strict:!1,start:!0,end:!0},yS=/[.+*?^${}()[\]/\\]/g;function bS(t,e){const r=de({},mS,e),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(a+="/");for(let b=0;b<g.length;b++){const w=g[b];let S=40+(r.sensitive?.25:0);if(w.type===0)b||(a+="/"),a+=w.value.replace(yS,"\\$&"),S+=40;else if(w.type===1){const{value:M,repeatable:A,optional:E,regexp:C}=w;u.push({name:M,repeatable:A,optional:E});const L=C||mg;if(L!==mg){S+=10;try{new RegExp(`(${L})`)}catch(O){throw new Error(`Invalid custom RegExp for param "${M}" (${L}): `+O.message)}}let $=A?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;b||($=E&&g.length<2?`(?:/${$})`:"/"+$),E&&($+="?"),a+=$,S+=20,E&&(S+=-8),A&&(S+=-20),L===".*"&&(S+=-50)}v.push(S)}o.push(v)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const f=new RegExp(a,r.sensitive?"":"i");function h(g){const v=g.match(f),b={};if(!v)return null;for(let w=1;w<v.length;w++){const S=v[w]||"",M=u[w-1];b[M.name]=S&&M.repeatable?S.split("/"):S}return b}function d(g){let v="",b=!1;for(const w of t){(!b||!v.endsWith("/"))&&(v+="/"),b=!1;for(const S of w)if(S.type===0)v+=S.value;else if(S.type===1){const{value:M,repeatable:A,optional:E}=S,C=M in g?g[M]:"";if(Yn(C)&&!A)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const L=Yn(C)?C.join("/"):C;if(!L)if(E)w.length<2&&(v.endsWith("/")?v=v.slice(0,-1):b=!0);else throw new Error(`Missing required param "${M}"`);v+=L}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:d}}function wS(t,e){let r=0;for(;r<t.length&&r<e.length;){const o=e[r]-t[r];if(o)return o;r++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function xS(t,e){let r=0;const o=t.score,a=e.score;for(;r<o.length&&r<a.length;){const u=wS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(yg(o))return 1;if(yg(a))return-1}return a.length-o.length}function yg(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const _S={type:0,value:""},SS=/[a-zA-Z0-9_]/;function kS(t){if(!t)return[[]];if(t==="/")return[[_S]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,d,g="",v="";function b(){!g||(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:v,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),g="")}function w(){g+=d}for(;h<t.length;){if(d=t[h++],d==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:d==="/"?(g&&b(),f()):d===":"?(b(),r=1):w();break;case 4:w(),r=o;break;case 1:d==="("?r=2:SS.test(d)?w():(b(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+d:r=3:v+=d;break;case 3:b(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,v="";break;default:e("Unknown state");break}}return r===2&&e(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function CS(t,e,r){const o=bS(kS(t.path),r),a=de(o,{record:t,parent:e,children:[],alias:[]});return e&&!a.record.aliasOf==!e.record.aliasOf&&e.children.push(a),a}function TS(t,e){const r=[],o=new Map;e=xg({strict:!1,end:!0,sensitive:!1},e);function a(v){return o.get(v)}function u(v,b,w){const S=!w,M=LS(v);M.aliasOf=w&&w.record;const A=xg(e,v),E=[M];if("alias"in v){const $=typeof v.alias=="string"?[v.alias]:v.alias;for(const O of $)E.push(de({},M,{components:w?w.record.components:M.components,path:O,aliasOf:w?w.record:M}))}let C,L;for(const $ of E){const{path:O}=$;if(b&&O[0]!=="/"){const G=b.record.path,V=G[G.length-1]==="/"?"":"/";$.path=b.record.path+(O&&V+O)}if(C=CS($,b,A),w?w.alias.push(C):(L=L||C,L!==C&&L.alias.push(C),S&&v.name&&!wg(C)&&f(v.name)),M.children){const G=M.children;for(let V=0;V<G.length;V++)u(G[V],C,w&&w.children[V])}w=w||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&d(C)}return L?()=>{f(L)}:js}function f(v){if(n0(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function d(v){let b=0;for(;b<r.length&&xS(v,r[b])>=0&&(v.record.path!==r[b].record.path||!i0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!wg(v)&&o.set(v.record.name,v)}function g(v,b){let w,S={},M,A;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw Wo(1,{location:v});A=w.record.name,S=de(bg(b.params,w.keys.filter(L=>!L.optional).map(L=>L.name)),v.params&&bg(v.params,w.keys.map(L=>L.name))),M=w.stringify(S)}else if("path"in v)M=v.path,w=r.find(L=>L.re.test(M)),w&&(S=w.parse(M),A=w.record.name);else{if(w=b.name?o.get(b.name):r.find(L=>L.re.test(b.path)),!w)throw Wo(1,{location:v,currentLocation:b});A=w.record.name,S=de({},b.params,v.params),M=w.stringify(S)}const E=[];let C=w;for(;C;)E.unshift(C.record),C=C.parent;return{name:A,path:M,params:S,matched:E,meta:AS(E)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function bg(t,e){const r={};for(const o of e)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:ES(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 ES(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const o in t.components)e[o]=typeof r=="boolean"?r:r[o];return e}function wg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function AS(t){return t.reduce((e,r)=>de(e,r.meta),{})}function xg(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function i0(t,e){return e.children.some(r=>r===t||i0(t,r))}const o0=/#/g,MS=/&/g,NS=/\//g,PS=/=/g,OS=/\?/g,s0=/\+/g,$S=/%5B/g,DS=/%5D/g,l0=/%5E/g,RS=/%60/g,a0=/%7B/g,zS=/%7C/g,c0=/%7D/g,IS=/%20/g;function ih(t){return encodeURI(""+t).replace(zS,"|").replace($S,"[").replace(DS,"]")}function FS(t){return ih(t).replace(a0,"{").replace(c0,"}").replace(l0,"^")}function of(t){return ih(t).replace(s0,"%2B").replace(IS,"+").replace(o0,"%23").replace(MS,"%26").replace(RS,"`").replace(a0,"{").replace(c0,"}").replace(l0,"^")}function qS(t){return of(t).replace(PS,"%3D")}function HS(t){return ih(t).replace(o0,"%23").replace(OS,"%3F")}function BS(t){return t==null?"":HS(t).replace(NS,"%2F")}function Da(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function WS(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<o.length;++a){const u=o[a].replace(s0," "),f=u.indexOf("="),h=Da(f<0?u:u.slice(0,f)),d=f<0?null:Da(u.slice(f+1));if(h in e){let g=e[h];Yn(g)||(g=e[h]=[g]),g.push(d)}else e[h]=d}return e}function _g(t){let e="";for(let r in t){const o=t[r];if(r=qS(r),o==null){o!==void 0&&(e+=(e.length?"&":"")+r);continue}(Yn(o)?o.map(u=>u&&of(u)):[o&&of(o)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function US(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=Yn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return e}const jS=Symbol(""),Sg=Symbol(""),oh=Symbol(""),u0=Symbol(""),sf=Symbol("");function Rs(){let t=[];function e(o){return t.push(o),()=>{const a=t.indexOf(o);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:e,list:()=>t,reset:r}}function oi(t,e,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const d=b=>{b===!1?h(Wo(4,{from:r,to:e})):b instanceof Error?h(b):vS(b)?h(Wo(2,{from:e,to:b})):(u&&o.enterCallbacks[a]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[a],e,r,d);let v=Promise.resolve(g);t.length<3&&(v=v.then(d)),v.catch(b=>h(b))})}function Pu(t,e,r,o){const a=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(e!=="beforeRouteEnter"&&!u.instances[f]))if(GS(h)){const g=(h.__vccOpts||h)[e];g&&a.push(oi(g,r,o,u,f))}else{let d=h();a.push(()=>d.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=Z_(g)?g.default:g;u.components[f]=v;const w=(v.__vccOpts||v)[e];return w&&oi(w,r,o,u,f)()}))}}return a}function GS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function kg(t){const e=Or(oh),r=Or(u0),o=St(()=>e.resolve(j(t.to))),a=St(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],b=r.matched;if(!v||!b.length)return-1;const w=b.findIndex(Bo.bind(null,v));if(w>-1)return w;const S=Cg(d[g-2]);return g>1&&Cg(v)===S&&b[b.length-1].path!==S?b.findIndex(Bo.bind(null,d[g-2])):w}),u=St(()=>a.value>-1&&YS(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&t0(r.params,o.value.params));function h(d={}){return XS(d)?e[j(t.replace)?"replace":"push"](j(t.to)).catch(js):Promise.resolve()}return{route:o,href:St(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const VS=le({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:kg,setup(t,{slots:e}){const r=Pn(kg(t)),{options:o}=Or(oh),a=St(()=>({[Tg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Tg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=e.default&&e.default(r);return t.custom?u:vl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),KS=VS;function XS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function YS(t,e){for(const r in e){const o=e[r],a=t[r];if(typeof o=="string"){if(o!==a)return!1}else if(!Yn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function Cg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Tg=(t,e,r)=>t??e??r,JS=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=Or(sf),a=St(()=>t.route||o.value),u=Or(Sg,0),f=St(()=>{let g=j(u);const{matched:v}=a.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=St(()=>a.value.matched[f.value]);wa(Sg,St(()=>f.value+1)),wa(jS,h),wa(sf,a);const d=Kt();return Fe(()=>[d.value,h.value,t.name],([g,v,b],[w,S,M])=>{v&&(v.instances[b]=g,S&&S!==v&&g&&g===w&&(v.leaveGuards.size||(v.leaveGuards=S.leaveGuards),v.updateGuards.size||(v.updateGuards=S.updateGuards))),g&&v&&(!S||!Bo(v,S)||!w)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,v=t.name,b=h.value,w=b&&b.components[v];if(!w)return Lg(r.default,{Component:w,route:g});const S=b.props[v],M=S?S===!0?g.params:typeof S=="function"?S(g):S:null,E=vl(w,de({},M,e,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(b.instances[v]=null)},ref:d}));return Lg(r.default,{Component:E,route:g})||E}}});function Lg(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const ZS=JS;function QS(t){const e=TS(t.routes,t),r=t.parseQuery||WS,o=t.stringifyQuery||_g,a=t.history,u=Rs(),f=Rs(),h=Rs(),d=hl(ri);let g=ri;Eo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Mu.bind(null,Q=>""+Q),b=Mu.bind(null,BS),w=Mu.bind(null,Da);function S(Q,tt){let K,st;return n0(Q)?(K=e.getRecordMatcher(Q),st=tt):st=Q,e.addRoute(st,K)}function M(Q){const tt=e.getRecordMatcher(Q);tt&&e.removeRoute(tt)}function A(){return e.getRoutes().map(Q=>Q.record)}function E(Q){return!!e.getRecordMatcher(Q)}function C(Q,tt){if(tt=de({},tt||d.value),typeof Q=="string"){const P=Nu(r,Q,tt.path),F=e.resolve({path:P.path},tt),J=a.createHref(P.fullPath);return de(P,F,{params:w(F.params),hash:Da(P.hash),redirectedFrom:void 0,href:J})}let K;if("path"in Q)K=de({},Q,{path:Nu(r,Q.path,tt.path).path});else{const P=de({},Q.params);for(const F in P)P[F]==null&&delete P[F];K=de({},Q,{params:b(Q.params)}),tt.params=b(tt.params)}const st=e.resolve(K,tt),Ct=Q.hash||"";st.params=v(w(st.params));const pe=eS(o,de({},Q,{hash:FS(Ct),path:st.path})),Lt=a.createHref(pe);return de({fullPath:pe,hash:Ct,query:o===_g?US(Q.query):Q.query||{}},st,{redirectedFrom:void 0,href:Lt})}function L(Q){return typeof Q=="string"?Nu(r,Q,d.value.path):de({},Q)}function $(Q,tt){if(g!==Q)return Wo(8,{from:tt,to:Q})}function O(Q){return rt(Q)}function G(Q){return O(de(L(Q),{replace:!0}))}function V(Q){const tt=Q.matched[Q.matched.length-1];if(tt&&tt.redirect){const{redirect:K}=tt;let st=typeof K=="function"?K(Q):K;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=L(st):{path:st},st.params={}),de({query:Q.query,hash:Q.hash,params:"path"in st?{}:Q.params},st)}}function rt(Q,tt){const K=g=C(Q),st=d.value,Ct=Q.state,pe=Q.force,Lt=Q.replace===!0,P=V(K);if(P)return rt(de(L(P),{state:typeof P=="object"?de({},Ct,P.state):Ct,force:pe,replace:Lt}),tt||K);const F=K;F.redirectedFrom=tt;let J;return!pe&&nS(o,st,K)&&(J=Wo(16,{to:F,from:st}),Et(st,st,!0,!1)),(J?Promise.resolve(J):ut(F,st)).catch(nt=>Tr(nt)?Tr(nt,2)?nt:wt(nt):W(nt,F,st)).then(nt=>{if(nt){if(Tr(nt,2))return rt(de({replace:Lt},L(nt.to),{state:typeof nt.to=="object"?de({},Ct,nt.to.state):Ct,force:pe}),tt||F)}else nt=kt(F,st,!0,Lt,Ct);return vt(F,st,nt),nt})}function Z(Q,tt){const K=$(Q,tt);return K?Promise.reject(K):Promise.resolve()}function ut(Q,tt){let K;const[st,Ct,pe]=tk(Q,tt);K=Pu(st.reverse(),"beforeRouteLeave",Q,tt);for(const P of st)P.leaveGuards.forEach(F=>{K.push(oi(F,Q,tt))});const Lt=Z.bind(null,Q,tt);return K.push(Lt),ko(K).then(()=>{K=[];for(const P of u.list())K.push(oi(P,Q,tt));return K.push(Lt),ko(K)}).then(()=>{K=Pu(Ct,"beforeRouteUpdate",Q,tt);for(const P of Ct)P.updateGuards.forEach(F=>{K.push(oi(F,Q,tt))});return K.push(Lt),ko(K)}).then(()=>{K=[];for(const P of Q.matched)if(P.beforeEnter&&!tt.matched.includes(P))if(Yn(P.beforeEnter))for(const F of P.beforeEnter)K.push(oi(F,Q,tt));else K.push(oi(P.beforeEnter,Q,tt));return K.push(Lt),ko(K)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),K=Pu(pe,"beforeRouteEnter",Q,tt),K.push(Lt),ko(K))).then(()=>{K=[];for(const P of f.list())K.push(oi(P,Q,tt));return K.push(Lt),ko(K)}).catch(P=>Tr(P,8)?P:Promise.reject(P))}function vt(Q,tt,K){for(const st of h.list())st(Q,tt,K)}function kt(Q,tt,K,st,Ct){const pe=$(Q,tt);if(pe)return pe;const Lt=tt===ri,P=Eo?history.state:{};K&&(st||Lt?a.replace(Q.fullPath,de({scroll:Lt&&P&&P.scroll},Ct)):a.push(Q.fullPath,Ct)),d.value=Q,Et(Q,tt,K,Lt),wt()}let ft;function U(){ft||(ft=a.listen((Q,tt,K)=>{if(!re.listening)return;const st=C(Q),Ct=V(st);if(Ct){rt(de(Ct,{replace:!0}),st).catch(js);return}g=st;const pe=d.value;Eo&&uS(pg(pe.fullPath,K.delta),dc()),ut(st,pe).catch(Lt=>Tr(Lt,12)?Lt:Tr(Lt,2)?(rt(Lt.to,st).then(P=>{Tr(P,20)&&!K.delta&&K.type===nl.pop&&a.go(-1,!1)}).catch(js),Promise.reject()):(K.delta&&a.go(-K.delta,!1),W(Lt,st,pe))).then(Lt=>{Lt=Lt||kt(st,pe,!1),Lt&&(K.delta&&!Tr(Lt,8)?a.go(-K.delta,!1):K.type===nl.pop&&Tr(Lt,20)&&a.go(-1,!1)),vt(st,pe,Lt)}).catch(js)}))}let z=Rs(),k=Rs(),H;function W(Q,tt,K){wt(Q);const st=k.list();return st.length?st.forEach(Ct=>Ct(Q,tt,K)):console.error(Q),Promise.reject(Q)}function et(){return H&&d.value!==ri?Promise.resolve():new Promise((Q,tt)=>{z.add([Q,tt])})}function wt(Q){return H||(H=!Q,U(),z.list().forEach(([tt,K])=>Q?K(Q):tt()),z.reset()),Q}function Et(Q,tt,K,st){const{scrollBehavior:Ct}=t;if(!Eo||!Ct)return Promise.resolve();const pe=!K&&fS(pg(Q.fullPath,0))||(st||!K)&&history.state&&history.state.scroll||null;return pl().then(()=>Ct(Q,tt,pe)).then(Lt=>Lt&&cS(Lt)).catch(Lt=>W(Lt,Q,tt))}const qt=Q=>a.go(Q);let Bt;const Gt=new Set,re={currentRoute:d,listening:!0,addRoute:S,removeRoute:M,hasRoute:E,getRoutes:A,resolve:C,options:t,push:O,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(Q){const tt=this;Q.component("RouterLink",KS),Q.component("RouterView",ZS),Q.config.globalProperties.$router=tt,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>j(d)}),Eo&&!Bt&&d.value===ri&&(Bt=!0,O(a.location).catch(Ct=>{}));const K={};for(const Ct in ri)K[Ct]=St(()=>d.value[Ct]);Q.provide(oh,tt),Q.provide(u0,Pn(K)),Q.provide(sf,d);const st=Q.unmount;Gt.add(Q),Q.unmount=function(){Gt.delete(Q),Gt.size<1&&(g=ri,ft&&ft(),ft=null,d.value=ri,Bt=!1,H=!1),st()}}};return re}function ko(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function tk(t,e){const r=[],o=[],a=[],u=Math.max(e.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=e.matched[f];h&&(t.matched.find(g=>Bo(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>Bo(g,d))||a.push(d))}return[r,o,a]}function qr(t){return t.split("-")[0]}function $o(t){return t.split("-")[1]}function ml(t){return["top","bottom"].includes(qr(t))?"x":"y"}function sh(t){return t==="y"?"height":"width"}function Eg(t){let{reference:e,floating:r,placement:o}=t;const a=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2;let f;switch(qr(o)){case"top":f={x:a,y:e.y-r.height};break;case"bottom":f={x:a,y:e.y+e.height};break;case"right":f={x:e.x+e.width,y:u};break;case"left":f={x:e.x-r.width,y:u};break;default:f={x:e.x,y:e.y}}const h=ml(o),d=sh(h);switch($o(o)){case"start":f[h]=f[h]-(e[d]/2-r[d]/2);break;case"end":f[h]=f[h]+(e[d]/2-r[d]/2);break}return f}const ek=async(t,e,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:g}=Eg({...h,placement:o}),v=o,b={};for(let w=0;w<u.length;w++){const{name:S,fn:M}=u[w],{x:A,y:E,data:C,reset:L}=await M({x:d,y:g,initialPlacement:o,placement:v,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:e}});if(d=A??d,g=E??g,b={...b,[S]:C??{}},L){typeof L=="object"&&(L.placement&&(v=L.placement),L.rects&&(h=L.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:a}):L.rects),{x:d,y:g}=Eg({...h,placement:v})),w=-1;continue}}return{x:d,y:g,placement:v,strategy:a,middlewareData:b}};function nk(t){return{top:0,right:0,bottom:0,left:0,...t}}function f0(t){return typeof t!="number"?nk(t):{top:t,right:t,bottom:t,left:t}}function lf(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function pc(t,e){e===void 0&&(e={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:d="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=e,S=f0(w),A=f[b?v==="floating"?"reference":"floating":v],E=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:d,rootBoundary:g}),C=lf(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:E.top-C.top+S.top,bottom:C.bottom-E.bottom+S.bottom,left:E.left-C.left+S.left,right:C.right-E.right+S.right}}const rk=Math.min,zi=Math.max;function af(t,e,r){return zi(t,rk(e,r))}const ik=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t??{},{x:a,y:u,placement:f,rects:h,platform:d}=e;if(r==null)return{};const g=f0(o),v={x:a,y:u},b=qr(f),w=ml(b),S=sh(w),M=await d.getDimensions({element:r}),A=w==="y"?"top":"left",E=w==="y"?"bottom":"right",C=h.reference[S]+h.reference[w]-v[w]-h.floating[S],L=v[w]-h.reference[w],$=await d.getOffsetParent({element:r}),O=$?w==="y"?$.clientHeight||0:$.clientWidth||0:0,G=C/2-L/2,V=g[A],rt=O-M[S]-g[E],Z=O/2-M[S]/2+G,ut=af(V,Z,rt);return{data:{[w]:ut,centerOffset:Z-ut}}}}),ok={left:"right",right:"left",bottom:"top",top:"bottom"};function Ra(t){return t.replace(/left|right|bottom|top/g,e=>ok[e])}function h0(t,e){const r=$o(t)==="start",o=ml(t),a=sh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return e.reference[a]>e.floating[a]&&(u=Ra(u)),{main:u,cross:Ra(u)}}const sk={start:"end",end:"start"};function cf(t){return t.replace(/start|end/g,e=>sk[e])}const lk=["top","right","bottom","left"],ak=lk.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function ck(t,e,r){return(t?[...r.filter(a=>$o(a)===t),...r.filter(a=>$o(a)!==t)]:r.filter(a=>qr(a)===a)).filter(a=>t?$o(a)===t||(e?cf(a)!==a:!1):!0)}const uk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,a,u,f,h;const{x:d,y:g,rects:v,middlewareData:b,placement:w}=e,{alignment:S=null,allowedPlacements:M=ak,autoAlignment:A=!0,...E}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const C=ck(S,A,M),L=await pc(e,E),$=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,O=C[$],{main:G,cross:V}=h0(O,v);if(w!==O)return{x:d,y:g,reset:{placement:C[0]}};const rt=[L[qr(O)],L[G],L[V]],Z=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:O,overflows:rt}],ut=C[$+1];if(ut)return{data:{index:$+1,overflows:Z},reset:{placement:ut}};const vt=Z.slice().sort((ft,U)=>ft.overflows[0]-U.overflows[0]),kt=(h=vt.find(ft=>{let{overflows:U}=ft;return U.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt??vt[0].placement}}}}};function fk(t){const e=Ra(t);return[cf(t),e,cf(e)]}const hk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:a,middlewareData:u,rects:f,initialPlacement:h}=e;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",flipAlignment:w=!0,...S}=t,M=qr(a),E=v||(M===h||!w?[Ra(h)]:fk(h)),C=[h,...E],L=await pc(e,S),$=[];let O=((o=u.flip)==null?void 0:o.overflows)||[];if(d&&$.push(L[M]),g){const{main:Z,cross:ut}=h0(a,f);$.push(L[Z],L[ut])}if(O=[...O,{placement:a,overflows:$}],!$.every(Z=>Z<=0)){var G,V;const Z=((G=(V=u.flip)==null?void 0:V.index)!=null?G:0)+1,ut=C[Z];if(ut)return{data:{index:Z,overflows:O},reset:{placement:ut}};let vt="bottom";switch(b){case"bestFit":{var rt;const kt=(rt=O.slice().sort((ft,U)=>ft.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0)-U.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0))[0])==null?void 0:rt.placement;kt&&(vt=kt);break}case"initialPlacement":vt=h;break}return{data:{skip:!0},reset:{placement:vt}}}return{}}}};function dk(t){let{placement:e,rects:r,value:o}=t;const a=qr(e),u=["left","top"].includes(a)?-1:1,f=typeof o=="function"?o({...r,placement:e}):o,{mainAxis:h,crossAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return ml(a)==="x"?{x:d,y:h*u}:{x:h*u,y:d}}const pk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:r,y:o,placement:a,rects:u}=e,f=dk({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function gk(t){return t==="x"?"y":"x"}const vk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:a}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:E=>{let{x:C,y:L}=E;return{x:C,y:L}}},...d}=t,g={x:r,y:o},v=await pc(e,d),b=ml(qr(a)),w=gk(b);let S=g[b],M=g[w];if(u){const E=b==="y"?"top":"left",C=b==="y"?"bottom":"right",L=S+v[E],$=S-v[C];S=af(L,S,$)}if(f){const E=w==="y"?"top":"left",C=w==="y"?"bottom":"right",L=M+v[E],$=M-v[C];M=af(L,M,$)}const A=h.fn({...e,[b]:S,[w]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},mk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r;const{placement:o,rects:a,middlewareData:u}=e,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const d=await pc(e,h),g=qr(o),v=$o(o)==="end";let b,w;g==="top"||g==="bottom"?(b=g,w=v?"left":"right"):(w=g,b=v?"top":"bottom");const S=zi(d.left,0),M=zi(d.right,0),A=zi(d.top,0),E=zi(d.bottom,0),C={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||E!==0?A+E:zi(d.top,d.bottom)):d[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||M!==0?S+M:zi(d.left,d.right)):d[w])};return f==null||f({...C,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function lh(t){return(t==null?void 0:t.toString())==="[object Window]"}function mi(t){if(t==null)return window;if(!lh(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function gc(t){return mi(t).getComputedStyle(t)}function Rr(t){return lh(t)?"":t?(t.nodeName||"").toLowerCase():""}function zr(t){return t instanceof mi(t).HTMLElement}function za(t){return t instanceof mi(t).Element}function yk(t){return t instanceof mi(t).Node}function d0(t){const e=mi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function vc(t){const{overflow:e,overflowX:r,overflowY:o}=gc(t);return/auto|scroll|overlay|hidden/.test(e+o+r)}function bk(t){return["table","td","th"].includes(Rr(t))}function p0(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),r=gc(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":!1)}const Ag=Math.min,Vs=Math.max,Ia=Math.round;function Uo(t,e){e===void 0&&(e=!1);const r=t.getBoundingClientRect();let o=1,a=1;return e&&zr(t)&&(o=t.offsetWidth>0&&Ia(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ia(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 yi(t){return((yk(t)?t.ownerDocument:t.document)||window.document).documentElement}function mc(t){return lh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function g0(t){return Uo(yi(t)).left+mc(t).scrollLeft}function wk(t){const e=Uo(t);return Ia(e.width)!==t.offsetWidth||Ia(e.height)!==t.offsetHeight}function xk(t,e,r){const o=zr(e),a=yi(e),u=Uo(t,o&&wk(e));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Rr(e)!=="body"||vc(a))&&(f=mc(e)),zr(e)){const d=Uo(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else a&&(h.x=g0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function yc(t){return Rr(t)==="html"?t:t.assignedSlot||t.parentNode||(d0(t)?t.host:null)||yi(t)}function Mg(t){return!zr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function _k(t){let e=yc(t);for(;zr(e)&&!["html","body"].includes(Rr(e));){if(p0(e))return e;e=e.parentNode}return null}function uf(t){const e=mi(t);let r=Mg(t);for(;r&&bk(r)&&getComputedStyle(r).position==="static";)r=Mg(r);return r&&(Rr(r)==="html"||Rr(r)==="body"&&getComputedStyle(r).position==="static"&&!p0(r))?e:r||_k(t)||e}function Ng(t){return{width:t.offsetWidth,height:t.offsetHeight}}function Sk(t){let{rect:e,offsetParent:r,strategy:o}=t;const a=zr(r),u=yi(r);if(r===u)return e;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Rr(r)!=="body"||vc(u))&&(f=mc(r)),zr(r))){const d=Uo(r,!0);h.x=d.x+r.clientLeft,h.y=d.y+r.clientTop}return{...e,x:e.x-f.scrollLeft+h.x,y:e.y-f.scrollTop+h.y}}function kk(t){const e=mi(t),r=yi(t),o=e.visualViewport;let a=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(a=o.width,u=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:a,height:u,x:f,y:h}}function Ck(t){var e;const r=yi(t),o=mc(t),a=(e=t.ownerDocument)==null?void 0:e.body,u=Vs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Vs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+g0(t);const d=-o.scrollTop;return gc(a||r).direction==="rtl"&&(h+=Vs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:d}}function v0(t){return["html","body","#document"].includes(Rr(t))?t.ownerDocument.body:zr(t)&&vc(t)?t:v0(yc(t))}function Fa(t,e){var r;e===void 0&&(e=[]);const o=v0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=mi(o),f=a?[u].concat(u.visualViewport||[],vc(o)?o:[]):o,h=e.concat(f);return a?h:h.concat(Fa(yc(f)))}function Tk(t,e){const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&d0(r)){let o=e;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Lk(t){const e=Uo(t),r=e.top+t.clientTop,o=e.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function Pg(t,e){return e==="viewport"?lf(kk(t)):za(e)?Lk(e):lf(Ck(yi(t)))}function Ek(t){const e=Fa(yc(t)),o=["absolute","fixed"].includes(gc(t).position)&&zr(t)?uf(t):t;return za(o)?e.filter(a=>za(a)&&Tk(a,o)&&Rr(a)!=="body"):[]}function Ak(t){let{element:e,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?Ek(e):[].concat(r),o],f=u[0],h=u.reduce((d,g)=>{const v=Pg(e,g);return d.top=Vs(v.top,d.top),d.right=Ag(v.right,d.right),d.bottom=Ag(v.bottom,d.bottom),d.left=Vs(v.left,d.left),d},Pg(e,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const Mk={getElementRects:t=>{let{reference:e,floating:r,strategy:o}=t;return{reference:xk(e,uf(r),o),floating:{...Ng(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>Sk(t),getOffsetParent:t=>{let{element:e}=t;return uf(e)},isElement:t=>za(t),getDocumentElement:t=>{let{element:e}=t;return yi(e)},getClippingClientRect:t=>Ak(t),getDimensions:t=>{let{element:e}=t;return Ng(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},Nk=(t,e,r)=>ek(t,e,{platform:Mk,...r});var Pk=Object.defineProperty,Ok=Object.defineProperties,$k=Object.getOwnPropertyDescriptors,Og=Object.getOwnPropertySymbols,Dk=Object.prototype.hasOwnProperty,Rk=Object.prototype.propertyIsEnumerable,$g=(t,e,r)=>e in t?Pk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nr=(t,e)=>{for(var r in e||(e={}))Dk.call(e,r)&&$g(t,r,e[r]);if(Og)for(var r of Og(e))Rk.call(e,r)&&$g(t,r,e[r]);return t},yl=(t,e)=>Ok(t,$k(e));function m0(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?m0(t[r],e[r]):t[r]=e[r])}const Gi={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 jo(t,e){let r=Gi.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=Gi.themes[r.$extend]||{}:(r=null,o=Gi[e]):r=null;while(r);return o}function zk(t){const e=[t];let r=Gi.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=Gi.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}let Go=!1;if(typeof window<"u"){Go=!1;try{const t=Object.defineProperty({},"passive",{get(){Go=!0}});window.addEventListener("test",null,t)}catch{}}let y0=!1;typeof window<"u"&&typeof navigator<"u"&&(y0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const b0=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),Dg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Rg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Ik(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function Ou(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const ur=[];let Co=null,ff=function(){};typeof window<"u"&&(ff=window.Element);function he(t){return function(e){return jo(e.theme,t)}}var w0=()=>le({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:he("disabled")},placement:{type:String,default:he("placement"),validator:t=>b0.includes(t)},delay:{type:[String,Number,Object],default:he("delay")},distance:{type:[Number,String],default:he("distance")},skidding:{type:[Number,String],default:he("skidding")},triggers:{type:Array,default:he("triggers")},showTriggers:{type:[Array,Function],default:he("showTriggers")},hideTriggers:{type:[Array,Function],default:he("hideTriggers")},popperTriggers:{type:Array,default:he("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:he("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:he("popperHideTriggers")},container:{type:[String,Object,ff,Boolean],default:he("container")},boundary:{type:[String,ff],default:he("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:he("strategy")},autoHide:{type:Boolean,default:he("autoHide")},handleResize:{type:Boolean,default:he("handleResize")},instantMove:{type:Boolean,default:he("instantMove")},eagerMount:{type:Boolean,default:he("eagerMount")},popperClass:{type:[String,Array,Object],default:he("popperClass")},computeTransformOrigin:{type:Boolean,default:he("computeTransformOrigin")},autoMinSize:{type:Boolean,default:he("autoMinSize")},autoMaxSize:{type:Boolean,default:he("autoMaxSize")},preventOverflow:{type:Boolean,default:he("preventOverflow")},overflowPadding:{type:[Number,String],default:he("overflowPadding")},arrowPadding:{type:[Number,String],default:he("arrowPadding")},arrowOverflow:{type:Boolean,default:he("arrowOverflow")},flip:{type:Boolean,default:he("flip")},shift:{type:Boolean,default:he("shift")},shiftCrossAxis:{type:Boolean,default:he("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:yl(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,e)=>(t[e]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:e=!1,force:r=!1}={}){(r||!this.disabled)&&(this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0)},hide({event:t=null,skipDelay:e=!1}={}){this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)},init(){!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(pk({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?e.middleware.push(uk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(vk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&e.middleware.push(hk({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ik({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:d}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(d)>u.reference.width/2:h=Math.abs(d)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&e.middleware.push({name:"autoMinSize",fn:({rects:a,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let d,g;return u.startsWith("top")||u.startsWith("bottom")?d=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=d!=null?`${d}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&e.middleware.push(mk({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 Nk(this.$_referenceNode,this.$_popperNode,e);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,e=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Co&&this.instantMove&&Co.instantMove){Co.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,e=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Co=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Ou(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=e.x+e.width/2-(o.left+r.offsetLeft),u=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let r=0;r<ur.length;r++)e=ur[r],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}ur.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ou(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Ik(ur,this),Co===this&&(Co=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=jo(this.theme,"disposeTimeout");e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ou(),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,Go?{passive:!0}:void 0))},e=(a,u,f,h,d)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(v=>{const b=u[v];b&&t(a,b,d)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};e(this.$_targetNodes,Dg,this.triggers,this.showTriggers,r),e([this.$_popperNode],Dg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};e(this.$_targetNodes,Rg,this.triggers,this.hideTriggers,o),e([this.$_popperNode],Rg,this.popperTriggers,this.popperHideTriggers,o),t([...Fa(this.$_referenceNode),...Fa(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:e,handler:r})=>{t.forEach(o=>o.removeEventListener(e,r))}),this.$_events=[]},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(e,o))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const r in t){const o=t[r];o==null?e.removeAttribute(r):e.setAttribute(r,o)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(y0?(document.addEventListener("touchstart",zg,Go?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",qk,Go?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",zg,!0),window.addEventListener("click",Fk,!0)),window.addEventListener("resize",Hk));function zg(t){for(let e=0;e<ur.length;e++){const r=ur[e],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function Fk(t){x0(t)}function qk(t){x0(t,!0)}function x0(t,e=!1){for(let r=0;r<ur.length;r++){const o=ur[r],a=o.popperNode(),u=o.$_mouseDownContains||a.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,e)})}}function Hk(t){for(let e=0;e<ur.length;e++)ur[e].$_computePosition(t)}function Bk(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var a=t.indexOf("Edge/");return a>0?parseInt(t.substring(a+5,t.indexOf(".",a)),10):-1}let _a;function hf(){hf.init||(hf.init=!0,_a=Bk()!==-1)}var bc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){hf(),pl(()=>{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",_a&&this.$el.appendChild(t),t.data="about:blank",_a||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&&(!_a&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Wk=v1();Tm("data-v-b329ee4c");const Uk={class:"resize-observer",tabindex:"-1"};Lm();const jk=Wk((t,e,r,o,a,u)=>(at(),ne("div",Uk)));bc.render=jk;bc.__scopeId="data-v-b329ee4c";bc.__file="src/components/ResizeObserver.vue";var _0={computed:{themeClass(){return zk(this.theme)}}},ah=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r};const Gk=le({name:"VPopperContent",components:{ResizeObserver:bc},mixins:[_0],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),Vk=["id","aria-hidden","tabindex","data-popper-placement"],Kk={ref:"inner",class:"v-popper__inner"},Xk=dt("div",{class:"v-popper__arrow-outer"},null,-1),Yk=dt("div",{class:"v-popper__arrow-inner"},null,-1),Jk=[Xk,Yk];function Zk(t,e,r,o,a,u){const f=Ki("ResizeObserver");return at(),At("div",{id:t.popperId,ref:"popover",class:ve(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result.arrow.overflow}]]),style:kn({position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result.placement,onKeyup:e[1]||(e[1]=nf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[dt("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[dt("div",Kk,[t.mounted?(at(),At(fe,{key:0},[dt("div",null,[Xn(t.$slots,"default")]),t.handleResize?(at(),ne(f,{key:0,onNotify:e[0]||(e[0]=h=>t.$emit("resize",h))})):se("",!0)],64)):se("",!0)],512),dt("div",{ref:"arrow",class:"v-popper__arrow-container",style:kn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},Jk,4)],4)],46,Vk)}var S0=ah(Gk,[["render",Zk]]),k0={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};const Qk=le({name:"VPopperWrapper",components:{Popper:w0(),PopperContent:S0},mixins:[k0,_0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=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 tC(t,e,r,o,a,u){const f=Ki("PopperContent"),h=Ki("Popper");return at(),ne(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:Jt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,show:S,hide:M,handleResize:A,onResize:E,classes:C,result:L})=>[dt("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:kn(t.$attrs.style)},[Xn(t.$slots,"default",{shown:g,show:S,hide:M}),zt(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":A,classes:C,result:L,onHide:M,onResize:E},{default:Jt(()=>[Xn(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 ch=ah(Qk,[["render",tC]]);const Ig=le(yl(Nr({},ch),{name:"VDropdown",vPopperTheme:"dropdown"})),Fg=le(yl(Nr({},ch),{name:"VMenu",vPopperTheme:"menu"})),qg=le(yl(Nr({},ch),{name:"VTooltip",vPopperTheme:"tooltip"})),eC=le({name:"VTooltipDirective",components:{Popper:w0(),PopperContent:S0},mixins:[k0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>jo(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>jo(t.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(e,o)):this.onResult(e,r)}},onResult(t,e){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),nC=["innerHTML"],rC=["textContent"];function iC(t,e,r,o,a,u){const f=Ki("PopperContent"),h=Ki("Popper");return at(),ne(h,hi({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Jt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,hide:S,handleResize:M,onResize:A,classes:E,result:C})=>[zt(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":M,classes:E,result:C,onHide:S,onResize:A},{default:Jt(()=>[t.html?(at(),At("div",{key:0,innerHTML:t.finalContent},null,8,nC)):(at(),At("div",{key:1,textContent:Xt(t.finalContent)},null,8,rC))]),_: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 oC=ah(eC,[["render",iC]]);const C0="v-popper--has-tooltip";function sC(t,e){let r=t.placement;if(!r&&e)for(const o of b0)e[o]&&(r=o);return r||(r=jo(t.theme||"tooltip","placement")),r}function T0(t,e,r){let o;const a=typeof e;return a==="string"?o={content:e}:e&&a==="object"?o=e:o={content:!1},o.placement=sC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let $u,rl,lC=0;function aC(){if($u)return;rl=Kt([]),$u=Qm({name:"VTooltipDirectiveApp",setup(){return{directives:rl}},render(){return this.directives.map(e=>vl(oC,yl(Nr({},e.options),{shown:e.shown.value||e.options.shown,key:e.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),$u.mount(t)}function L0(t,e,r){aC();const o=Kt(T0(t,e,r)),a=Kt(!1),u={id:lC++,options:o,shown:a};return rl.value.push(u),t.classList&&t.classList.add(C0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function uh(t){if(t.$_popper){const e=rl.value.indexOf(t.$_popper.item);e!==-1&&rl.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(C0)}function Hg(t,{value:e,oldValue:r,modifiers:o}){const a=T0(t,e,o);if(!a.content||jo(a.theme||"tooltip","disabled"))uh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=L0(t,e,o),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?u.show():u.hide())}}var E0={beforeMount:Hg,updated:Hg,beforeUnmount(t){uh(t)}};function Bg(t){t.addEventListener("click",A0),t.addEventListener("touchstart",M0,Go?{passive:!0}:!1)}function Wg(t){t.removeEventListener("click",A0),t.removeEventListener("touchstart",M0),t.removeEventListener("touchend",N0),t.removeEventListener("touchcancel",P0)}function A0(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function M0(t){if(t.changedTouches.length===1){const e=t.currentTarget;e.$_vclosepopover_touch=!0;const r=t.changedTouches[0];e.$_vclosepopover_touchPoint=r,e.addEventListener("touchend",N0),e.addEventListener("touchcancel",P0)}}function N0(t){const e=t.currentTarget;if(e.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function P0(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}var cC={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&Bg(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?Bg(t):Wg(t))},beforeUnmount(t){Wg(t)}};const uC=E0;function fC(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,m0(Gi,e),t.directive("tooltip",E0),t.directive("close-popper",cC),t.component("v-tooltip",qg),t.component("VTooltip",qg),t.component("v-dropdown",Ig),t.component("VDropdown",Ig),t.component("v-menu",Fg),t.component("VMenu",Fg))}const O0={version:"2.0.0-y.0",install:fC,options:Gi};var Ug;const $0=typeof window<"u",hC=t=>typeof t<"u",D0=t=>typeof t=="function",dC=t=>typeof t=="string",R0=()=>{};$0&&((Ug=window==null?void 0:window.navigator)==null?void 0:Ug.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xi(t){return typeof t=="function"?t():j(t)}function fh(t,e){function r(...o){t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})}return r}const z0=t=>t();function I0(t,e={}){let r,o;return u=>{const f=Xi(t),h=Xi(e.maxWait);if(r&&clearTimeout(r),f<=0||h!==void 0&&h<=0)return o&&(clearTimeout(o),o=null),u();h&&!o&&(o=setTimeout(()=>{r&&clearTimeout(r),o=null,u()},h)),r=setTimeout(()=>{o&&clearTimeout(o),o=null,u()},f)}}function pC(t,e=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return d=>{const g=Xi(t),v=Date.now()-o;if(f(),g<=0)return o=Date.now(),d();v>g&&(r||!u)?(o=Date.now(),d()):e&&(a=setTimeout(()=>{o=Date.now(),u=!0,f(),d()},g-v)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function gC(t=z0){const e=Kt(!0);function r(){e.value=!1}function o(){e.value=!0}return{isActive:e,pause:r,resume:o,eventFilter:(...u)=>{e.value&&t(...u)}}}function vC(t){return t}function hh(t){return Nx()?(Px(t),!0):!1}function jg(t,e=200,r={}){return fh(I0(e,r),t)}function mC(t,e=200,r=!1,o=!0){return fh(pC(e,r,o),t)}function yC(t,e=200,r=!0,o=!0){if(e<=0)return t;const a=Kt(t.value),u=mC(()=>{a.value=t.value},e,r,o);return Fe(t,()=>u()),a}function bC(t){return typeof t=="function"?St(t):Kt(t)}function dh(t,e=!0){fc()?gl(t):e?t():pl(t)}function wC(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,a=Ee(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Xi(r);return u.value=u.value===d?Xi(o):d,u.value}}return a?f:[u,f]}var Gg=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,_C=Object.prototype.propertyIsEnumerable,SC=(t,e)=>{var r={};for(var o in t)xC.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Gg)for(var o of Gg(t))e.indexOf(o)<0&&_C.call(t,o)&&(r[o]=t[o]);return r};function F0(t,e,r={}){const o=r,{eventFilter:a=z0}=o,u=SC(o,["eventFilter"]);return Fe(t,fh(a,e),u)}var kC=Object.defineProperty,CC=Object.defineProperties,TC=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,q0=Object.prototype.hasOwnProperty,H0=Object.prototype.propertyIsEnumerable,Vg=(t,e,r)=>e in t?kC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,LC=(t,e)=>{for(var r in e||(e={}))q0.call(e,r)&&Vg(t,r,e[r]);if(qa)for(var r of qa(e))H0.call(e,r)&&Vg(t,r,e[r]);return t},EC=(t,e)=>CC(t,TC(e)),AC=(t,e)=>{var r={};for(var o in t)q0.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&qa)for(var o of qa(t))e.indexOf(o)<0&&H0.call(t,o)&&(r[o]=t[o]);return r};function MC(t,e,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=AC(o,["debounce","maxWait"]);return F0(t,e,EC(LC({},f),{eventFilter:I0(a,{maxWait:u})}))}function NC(t,e,r){const o=Fe(t,(...a)=>(pl(()=>o()),e(...a)),r)}var PC=Object.defineProperty,OC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,Ha=Object.getOwnPropertySymbols,B0=Object.prototype.hasOwnProperty,W0=Object.prototype.propertyIsEnumerable,Kg=(t,e,r)=>e in t?PC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,DC=(t,e)=>{for(var r in e||(e={}))B0.call(e,r)&&Kg(t,r,e[r]);if(Ha)for(var r of Ha(e))W0.call(e,r)&&Kg(t,r,e[r]);return t},RC=(t,e)=>OC(t,$C(e)),zC=(t,e)=>{var r={};for(var o in t)B0.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ha)for(var o of Ha(t))e.indexOf(o)<0&&W0.call(t,o)&&(r[o]=t[o]);return r};function U0(t,e,r={}){const o=r,{eventFilter:a}=o,u=zC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:d,isActive:g}=gC(a);return{stop:F0(t,e,RC(DC({},u),{eventFilter:f})),pause:h,resume:d,isActive:g}}function IC(t,e,r){let o;Ee(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=R0}=o,h=Kt(!a),d=Kt(e);let g=0;return Jf(async v=>{if(!h.value)return;g++;const b=g;let w=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const S=await t(M=>{v(()=>{u&&(u.value=!1),w||M()})});b===g&&(d.value=S)}catch(S){f(S)}finally{u&&b===g&&(u.value=!1),w=!0}}),a?St(()=>(h.value=!0,d.value)):d}function j0(t){var e;const r=Xi(t);return(e=r==null?void 0:r.$el)!=null?e:r}const dr=$0?window:void 0;function Vo(...t){let e,r,o,a;if(dC(t[0])||Array.isArray(t[0])?([r,o,a]=t,e=dr):[e,r,o,a]=t,!e)return R0;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,b,w)=>(v.addEventListener(b,w,a),()=>v.removeEventListener(b,w,a)),d=Fe(()=>j0(e),v=>{f(),v&&u.push(...r.flatMap(b=>o.map(w=>h(v,b,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return hh(g),g}const FC=t=>typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0;function qC(...t){let e,r,o={};t.length===3?(e=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],o=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:a=dr,eventName:u="keydown",passive:f=!1}=o,h=FC(e);return Vo(a,u,g=>{h(g)&&r(g)},f)}function G0(t,e=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),dh(o,e),r}function HC(t,e={}){const{window:r=dr}=e,o=G0(()=>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(bC(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return Jf(h),hh(()=>f()),u}function BC(t){return JSON.parse(JSON.stringify(t))}const df=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pf="__vueuse_ssr_handlers__";df[pf]=df[pf]||{};const WC=df[pf];function V0(t,e){return WC[t]||e}function UC(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var jC=Object.defineProperty,Xg=Object.getOwnPropertySymbols,GC=Object.prototype.hasOwnProperty,VC=Object.prototype.propertyIsEnumerable,Yg=(t,e,r)=>e in t?jC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Jg=(t,e)=>{for(var r in e||(e={}))GC.call(e,r)&&Yg(t,r,e[r]);if(Xg)for(var r of Xg(e))VC.call(e,r)&&Yg(t,r,e[r]);return t};const KC={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 XC(t,e,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:b=dr,eventFilter:w,onError:S=rt=>{console.error(rt)}}=o,M=(v?hl:Kt)(e);if(!r)try{r=V0("getDefaultStorage",()=>{var rt;return(rt=dr)==null?void 0:rt.localStorage})()}catch(rt){S(rt)}if(!r)return M;const A=Xi(e),E=UC(A),C=(a=o.serializer)!=null?a:KC[E],{pause:L,resume:$}=U0(M,()=>O(M.value),{flush:u,deep:f,eventFilter:w});return b&&h&&Vo(b,"storage",V),V(),M;function O(rt){try{rt==null?r.removeItem(t):r.setItem(t,C.write(rt))}catch(Z){S(Z)}}function G(rt){L();try{const Z=rt?rt.newValue:r.getItem(t);if(Z==null)return d&&A!==null&&r.setItem(t,C.write(A)),A;if(!rt&&g){const ut=C.read(Z);return D0(g)?g(ut,A):E==="object"&&!Array.isArray(ut)?Jg(Jg({},A),ut):ut}else return typeof Z!="string"?Z:C.read(Z)}catch(Z){S(Z)}finally{$()}}function V(rt){if(!(rt&&rt.storageArea!==r)){if(rt&&rt.key===null){M.value=A;return}rt&&rt.key!==t||(M.value=G(rt))}}}function K0(t){return HC("(prefers-color-scheme: dark)",t)}var YC=Object.defineProperty,Zg=Object.getOwnPropertySymbols,JC=Object.prototype.hasOwnProperty,ZC=Object.prototype.propertyIsEnumerable,Qg=(t,e,r)=>e in t?YC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,QC=(t,e)=>{for(var r in e||(e={}))JC.call(e,r)&&Qg(t,r,e[r]);if(Zg)for(var r of Zg(e))ZC.call(e,r)&&Qg(t,r,e[r]);return t};function tT(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:a=dr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g}=t,v=QC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=K0({window:a}),w=St(()=>b.value?"dark":"light"),S=d||(f==null?Kt(o):XC(f,o,u,{window:a,listenToStorageChanges:h})),M=St({get(){return S.value==="auto"&&!g?w.value:S.value},set(L){S.value=L}}),A=V0("updateHTMLAttrs",(L,$,O)=>{const G=a==null?void 0:a.document.querySelector(L);if(!!G)if($==="class"){const V=O.split(/\s/g);Object.values(v).flatMap(rt=>(rt||"").split(/\s/g)).filter(Boolean).forEach(rt=>{V.includes(rt)?G.classList.add(rt):G.classList.remove(rt)})}else G.setAttribute($,O)});function E(L){var $;const O=L==="auto"?w.value:L;A(e,r,($=v[O])!=null?$:O)}function C(L){t.onChanged?t.onChanged(L,E):E(L)}return Fe(M,C,{flush:"post",immediate:!0}),g&&Fe(w,()=>C(M.value),{flush:"post"}),dh(()=>C(M.value)),M}var eT=Object.defineProperty,nT=Object.defineProperties,rT=Object.getOwnPropertyDescriptors,tv=Object.getOwnPropertySymbols,iT=Object.prototype.hasOwnProperty,oT=Object.prototype.propertyIsEnumerable,ev=(t,e,r)=>e in t?eT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sT=(t,e)=>{for(var r in e||(e={}))iT.call(e,r)&&ev(t,r,e[r]);if(tv)for(var r of tv(e))oT.call(e,r)&&ev(t,r,e[r]);return t},lT=(t,e)=>nT(t,rT(e));function aT(t={}){const{valueDark:e="dark",valueLight:r="",window:o=dr}=t,a=tT(lT(sT({},t),{onChanged:(h,d)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark"):d(h)},modes:{dark:e,light:r}})),u=K0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var nv=Object.getOwnPropertySymbols,cT=Object.prototype.hasOwnProperty,uT=Object.prototype.propertyIsEnumerable,fT=(t,e)=>{var r={};for(var o in t)cT.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&nv)for(var o of nv(t))e.indexOf(o)<0&&uT.call(t,o)&&(r[o]=t[o]);return r};function hT(t,e,r={}){const o=r,{window:a=dr}=o,u=fT(o,["window"]);let f;const h=G0(()=>a&&"ResizeObserver"in a),d=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>j0(t),b=>{d(),h.value&&a&&b&&(f=new ResizeObserver(e),f.observe(b,u))},{immediate:!0,flush:"post"}),v=()=>{d(),g()};return hh(v),{isSupported:h,stop:v}}var rv;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(rv||(rv={}));var dT=Object.defineProperty,iv=Object.getOwnPropertySymbols,pT=Object.prototype.hasOwnProperty,gT=Object.prototype.propertyIsEnumerable,ov=(t,e,r)=>e in t?dT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vT=(t,e)=>{for(var r in e||(e={}))pT.call(e,r)&&ov(t,r,e[r]);if(iv)for(var r of iv(e))gT.call(e,r)&&ov(t,r,e[r]);return t};const mT={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]};vT({linear:vC},mT);function yT(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=dr}=e;if(!f)return Pn(r);const h=Pn({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const C=f.location.hash||"",L=C.indexOf("?");return L>0?C.slice(L):""}else return(f.location.hash||"").replace(/^#/,"")}function g(C){const L=C.toString();if(t==="history")return`${L?`?${L}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${L?`#${L}`:""}`;const $=f.location.hash||"#",O=$.indexOf("?");return O>0?`${$.slice(0,O)}${L?`?${L}`:""}`:`${$}${L?`?${L}`:""}`}function v(){return new URLSearchParams(d())}function b(C){const L=new Set(Object.keys(h));for(const $ of C.keys()){const O=C.getAll($);h[$]=O.length>1?O:C.get($)||"",L.delete($)}Array.from(L).forEach($=>delete h[$])}const{pause:w,resume:S}=U0(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(L=>{const $=h[L];Array.isArray($)?$.forEach(O=>C.append(L,O)):o&&$==null||a&&!$?C.delete(L):C.set(L,$)}),M(C)},{deep:!0});function M(C,L){w(),L&&b(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(C)),S()}function A(){!u||M(v(),!0)}Vo(f,"popstate",A,!1),t!=="history"&&Vo(f,"hashchange",A,!1);const E=v();return E.keys().next().value?b(E):Object.assign(h,r),h}function bT(t,e,r,o={}){var a,u,f;const{clone:h=!1,passive:d=!1,eventName:g,deep:v=!1,defaultValue:b}=o,w=fc(),S=r||(w==null?void 0:w.emit)||((a=w==null?void 0:w.$emit)==null?void 0:a.bind(w))||((f=(u=w==null?void 0:w.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(w==null?void 0:w.proxy));let M=g;e||(e="modelValue"),M=g||M||`update:${e.toString()}`;const A=C=>h?D0(h)?h(C):BC(C):C,E=()=>hC(t[e])?A(t[e]):b;if(d){const C=E(),L=Kt(C);return Fe(()=>t[e],$=>L.value=A($)),Fe(L,$=>{($!==t[e]||v)&&S(M,$)},{deep:v}),L}else return St({get(){return E()},set(C){S(M,C)}})}function wT(t={}){const{window:e=dr,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:a=!0,includeScrollbar:u=!0}=t,f=Kt(r),h=Kt(o),d=()=>{e&&(u?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};return d(),dh(d),Vo("resize",d,{passive:!0}),a&&Vo("orientationchange",d,{passive:!0}),{width:f,height:h}}const xT=6e4;function _T(t,e){const{post:r,on:o,eventNames:a=[],serialize:u=v=>v,deserialize:f=v=>v,timeout:h=xT}=e,d=new Map,g=new Proxy({},{get(v,b){const w=(...M)=>{r(u({m:b,a:M,t:"q"}))};if(a.includes(b))return w.asEvent=w,w;const S=(...M)=>new Promise((A,E)=>{const C=kT();d.set(C,{resolve:A,reject:E}),r(u({m:b,a:M,i:C,t:"q"})),h>=0&&setTimeout(()=>{E(new Error(`[birpc] timeout on calling "${b}"`)),d.delete(C)},h)});return S.asEvent=w,S}});return o(async(v,...b)=>{const w=f(v);if(w.t==="q"){const{m:S,a:M}=w;let A,E;try{A=await t[S].apply(g,M)}catch(C){E=C}w.i&&r(u({t:"s",i:w.i,r:A,e:E}),...b)}else{const{i:S,r:M,e:A}=w,E=d.get(S);A?E==null||E.reject(A):E==null||E.resolve(M),d.delete(S)}}),g}const ST="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function kT(t=21){let e="",r=t;for(;r--;)e+=ST[Math.random()*64|0];return e}const{parse:CT,stringify:TT}=JSON,{keys:LT}=Object,il=String,X0="string",sv={},Ba="object",Y0=(t,e)=>e,ET=t=>t instanceof il?il(t):t,AT=(t,e)=>typeof e===X0?new il(e):e,J0=(t,e,r,o)=>{const a=[];for(let u=LT(r),{length:f}=u,h=0;h<f;h++){const d=u[h],g=r[d];if(g instanceof il){const v=t[g];typeof v===Ba&&!e.has(v)?(e.add(v),r[d]=sv,a.push({k:d,a:[t,e,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==sv&&(r[d]=o.call(r,d,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:d}=a[f];r[h]=o.call(r,h,J0.apply(null,d))}return r},lv=(t,e,r)=>{const o=il(e.push(r)-1);return t.set(r,o),o},Z0=(t,e)=>{const r=CT(t,AT).map(ET),o=r[0],a=e||Y0,u=typeof o===Ba&&o?J0(r,new Set,o,a):o;return a.call({"":u},"",u)},MT=(t,e,r)=>{const o=e&&typeof e===Ba?(v,b)=>v===""||-1<e.indexOf(v)?b:void 0:e||Y0,a=new Map,u=[],f=[];let h=+lv(a,u,o.call({"":t},"",t)),d=!h;for(;h<u.length;)d=!0,f[h]=TT(u[h++],g,r);return"["+f.join(",")+"]";function g(v,b){if(d)return d=!d,b;const w=o.call(this,v,b);switch(typeof w){case Ba:if(w===null)return w;case X0:return a.get(w)||lv(a,u,w)}return w}},NT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class Q0{constructor(){Ni(this,"filesMap",new Map);Ni(this,"pathsSet",new Set);Ni(this,"collectingPromise");Ni(this,"idMap",new Map);Ni(this,"taskFileMap",new WeakMap);Ni(this,"errorsSet",new Set)}catchError(e,r){if(NT(e))return e.errors.forEach(o=>this.catchError(o,r));e.type=r,this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}startCollectingPaths(){let e;const r=new Promise(o=>{e=o});this.collectingPromise={promise:r,resolve:e}}finishCollectingPaths(){var e;(e=this.collectingPromise)==null||e.resolve(),this.collectingPromise=void 0}async getPaths(){var e;return await((e=this.collectingPromise)==null?void 0:e.promise),Array.from(this.pathsSet)}getFiles(e){return e?e.map(r=>this.filesMap.get(r)).filter(Boolean):Array.from(this.filesMap.values())}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).map(e=>e.filepath)}collectPaths(e=[]){e.forEach(r=>{this.pathsSet.add(r)})}collectFiles(e=[]){e.forEach(r=>{this.filesMap.set(r.filepath,r),this.updateId(r)})}clearFiles(e=[]){e.forEach(r=>{this.filesMap.delete(r)})}updateId(e){this.idMap.get(e.id)!==e&&(this.idMap.set(e.id,e),e.type==="suite"&&e.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(e){for(const[r,o]of e)this.idMap.has(r)&&(this.idMap.get(r).result=o)}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}}const Hi=Date;class ol extends Hi{constructor(e,r,o,a,u,f,h){super();let d;switch(arguments.length){case 0:d=new Hi;break;case 1:d=new Hi(e);break;default:o=typeof o>"u"?1:o,a=a||0,u=u||0,f=f||0,h=h||0,d=new Hi(e,r,o,a,u,f,h);break}return d}}ol.UTC=Hi.UTC;ol.now=function(){return new ol().valueOf()};ol.parse=function(t){return Hi.parse(t)};ol.toString=function(){return Hi.toString()};function ty(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function gf(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function ey(t){return ty(t).flatMap(e=>gf(e)?[e]:e.tasks.flatMap(r=>gf(r)?[r]:ey(r)))}function ph(t=[]){return ty(t).flatMap(e=>gf(e)?[e]:[e,...ph(e.tasks)])}function wc(t){return ey(t).some(e=>{var o,a;const r=(a=(o=e.result)==null?void 0:o.error)==null?void 0:a.message;return r==null?void 0:r.match(/Snapshot .* mismatched/)})}function PT(t){const e=[t.name];let r=t;for(;(r==null?void 0:r.suite)||(r==null?void 0:r.file);)r=r.suite||r.file,r!=null&&r.name&&e.unshift(r.name);return e}function OT(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=e;let d=u;const g=f({ws:new h(t),state:new Q0,waitForConnection:E,reconnect:M});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(C){var L;g.state.collectPaths(C),(L=r.onPathsCollected)==null||L.call(r,C)},onCollected(C){var L;g.state.collectFiles(C),(L=r.onCollected)==null||L.call(r,C)},onTaskUpdate(C){var L;g.state.updateTasks(C),(L=r.onTaskUpdate)==null||L.call(r,C)},onUserConsoleLog(C){g.state.updateUserLog(C)},onFinished(C){var L;(L=r.onFinished)==null||L.call(r,C)}},w={post:C=>g.ws.send(C),on:C=>v=C,serialize:MT,deserialize:Z0};g.rpc=_T(b,w);let S;function M(C=!1){C&&(d=u),g.ws=new h(t),A()}function A(){S=new Promise(C=>{g.ws.addEventListener("open",()=>{d=u,C()})}),g.ws.addEventListener("message",C=>{v(C.data)}),g.ws.addEventListener("close",()=>{d-=1,o&&d>0&&setTimeout(M,a)})}A();function E(){return S}return g}const ny=yT("hash-params",{initialValue:{file:"",view:null}}),Mr=Gf(ny,"file"),sr=Gf(ny,"view"),$T=()=>{},To=()=>Promise.resolve();function DT(){const t=Pn({state:new Q0,waitForConnection:f,reconnect:a,ws:new EventTarget});t.state.filesMap=Pn(t.state.filesMap),t.state.idMap=Pn(t.state.idMap);let e;const r={getFiles:()=>e.files,getPaths:async()=>e.paths,getConfig:()=>e.config,getModuleGraph:async h=>e.moduleGraph[h],getTransformResult:async h=>({code:h,source:""}),readFile:async h=>Promise.resolve(h),onWatcherStart:To,onFinished:To,onCollected:To,onTaskUpdate:$T,writeFile:To,rerun:To,updateSnapshot:To};t.rpc=r;let o;function a(){u()}async function u(){const h=await fetch(window.METADATA_PATH);e=Z0(await h.text());const d=new Event("open");t.ws.dispatchEvent(d)}u();function f(){return o}return t}const RT=location.port,zT=[location.hostname,RT].filter(Boolean).join(":"),IT=`${location.protocol==="https:"?"wss:":"ws:"}//${zT}/__vitest_api__`,gi=!!window.METADATA_PATH,Wa=Kt("idle"),Ue=function(){return gi?DT():OT(IT,{reactive:Pn,handlers:{onTaskUpdate(){Wa.value="running"},onFinished(){Wa.value="idle"}}})}(),vf=hl({}),Bi=Kt("CONNECTING"),Tn=St(()=>Ue.state.getFiles()),Le=St(()=>Tn.value.find(t=>t.id===Mr.value)),ry=St(()=>ph(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Ua=t=>Tn.value.find(e=>e.id===t),FT=St(()=>Bi.value==="OPEN"),Du=St(()=>Bi.value==="CONNECTING");St(()=>Bi.value==="CLOSED");function av(t=Ue.state.getFiles()){return iy(t)}function iy(t){return t.forEach(e=>{delete e.result,ph(e).forEach(r=>delete r.result)}),Ue.rpc.rerun(t.map(e=>e.filepath))}function qT(){if(Le.value)return iy([Le.value])}Fe(()=>Ue.ws,t=>{Bi.value="CONNECTING",t.addEventListener("open",async()=>{Bi.value="OPEN",Ue.state.filesMap.clear();const[e,r]=await Promise.all([Ue.rpc.getFiles(),Ue.rpc.getConfig()]);Ue.state.collectFiles(e),vf.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Bi.value==="CONNECTING"&&(Bi.value="CLOSED")},1e3)})},{immediate:!0});const HT={"text-2xl":""},BT=dt("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),WT=le({__name:"ConnectionOverlay",setup(t){return(e,r)=>j(FT)?se("",!0):(at(),At("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>j(Ue).reconnect&&j(Ue).reconnect(...o))},[dt("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(j(Du)?"animate-pulse":"")},[dt("div",{text:"5xl",class:ve(j(Du)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),dt("div",HT,Xt(j(Du)?"Connecting...":"Disconnected"),1),BT],2)]))}});function bi(){}bi.prototype={diff:function(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var u=this;function f(A){return a?(setTimeout(function(){a(void 0,A)},0),!0):A}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var h=r.length,d=e.length,g=1,v=h+d;o.maxEditLength&&(v=Math.min(v,o.maxEditLength));var b=[{newPos:-1,components:[]}],w=this.extractCommon(b[0],r,e,0);if(b[0].newPos+1>=h&&w+1>=d)return f([{value:this.join(r),count:r.length}]);function S(){for(var A=-1*g;A<=g;A+=2){var E=void 0,C=b[A-1],L=b[A+1],$=(L?L.newPos:0)-A;C&&(b[A-1]=void 0);var O=C&&C.newPos+1<h,G=L&&0<=$&&$<d;if(!O&&!G){b[A]=void 0;continue}if(!O||G&&C.newPos<L.newPos?(E=jT(L),u.pushComponent(E.components,void 0,!0)):(E=C,E.newPos++,u.pushComponent(E.components,!0,void 0)),$=u.extractCommon(E,r,e,A),E.newPos+1>=h&&$+1>=d)return f(UT(u,E.components,r,e,u.useLongestToken));b[A]=E}g++}if(a)(function A(){setTimeout(function(){if(g>v)return a();S()||A()},0)})();else for(;g<=v;){var M=S();if(M)return M}},pushComponent:function(e,r,o){var a=e[e.length-1];a&&a.added===r&&a.removed===o?e[e.length-1]={count:a.count+1,added:r,removed:o}:e.push({count:1,added:r,removed:o})},extractCommon:function(e,r,o,a){for(var u=r.length,f=o.length,h=e.newPos,d=h-a,g=0;h+1<u&&d+1<f&&this.equals(r[h+1],o[d+1]);)h++,d++,g++;return g&&e.components.push({count:g}),e.newPos=h,d},equals:function(e,r){return this.options.comparator?this.options.comparator(e,r):e===r||this.options.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],o=0;o<e.length;o++)e[o]&&r.push(e[o]);return r},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function UT(t,e,r,o,a){for(var u=0,f=e.length,h=0,d=0;u<f;u++){var g=e[u];if(g.removed){if(g.value=t.join(o.slice(d,d+g.count)),d+=g.count,u&&e[u-1].added){var b=e[u-1];e[u-1]=e[u],e[u]=b}}else{if(!g.added&&a){var v=r.slice(h,h+g.count);v=v.map(function(S,M){var A=o[d+M];return A.length>S.length?A:S}),g.value=t.join(v)}else g.value=t.join(r.slice(h,h+g.count));h+=g.count,g.added||(d+=g.count)}}var w=e[f-1];return f>1&&typeof w.value=="string"&&(w.added||w.removed)&&t.equals("",w.value)&&(e[f-2].value+=w.value,e.pop()),e}function jT(t){return{newPos:t.newPos,components:t.components.slice(0)}}var cv=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,uv=/\S/,oy=new bi;oy.equals=function(t,e){return this.options.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e||this.options.ignoreWhitespace&&!uv.test(t)&&!uv.test(e)};oy.tokenize=function(t){for(var e=t.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<e.length-1;r++)!e[r+1]&&e[r+2]&&cv.test(e[r])&&cv.test(e[r+2])&&(e[r]+=e[r+2],e.splice(r+1,2),r--);return e};var gh=new bi;gh.tokenize=function(t){var e=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var a=r[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),e.push(a))}return e};function GT(t,e,r){return gh.diff(t,e,r)}var VT=new bi;VT.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var KT=new bi;KT.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function Sa(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sa=function(e){return typeof e}:Sa=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa(t)}function Ru(t){return XT(t)||YT(t)||JT(t)||ZT()}function XT(t){if(Array.isArray(t))return mf(t)}function YT(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function JT(t,e){if(!!t){if(typeof t=="string")return mf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mf(t,e)}}function mf(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function ZT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var QT=Object.prototype.toString,sl=new bi;sl.useLongestToken=!0;sl.tokenize=gh.tokenize;sl.castInput=function(t){var e=this.options,r=e.undefinedReplacement,o=e.stringifyReplacer,a=o===void 0?function(u,f){return typeof f>"u"?r:f}:o;return typeof t=="string"?t:JSON.stringify(yf(t,null,null,a),a," ")};sl.equals=function(t,e){return bi.prototype.equals.call(sl,t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function yf(t,e,r,o,a){e=e||[],r=r||[],o&&(t=o(a,t));var u;for(u=0;u<e.length;u+=1)if(e[u]===t)return r[u];var f;if(QT.call(t)==="[object Array]"){for(e.push(t),f=new Array(t.length),r.push(f),u=0;u<t.length;u+=1)f[u]=yf(t[u],e,r,o,a);return e.pop(),r.pop(),f}if(t&&t.toJSON&&(t=t.toJSON()),Sa(t)==="object"&&t!==null){e.push(t),f={},r.push(f);var h=[],d;for(d in t)t.hasOwnProperty(d)&&h.push(d);for(h.sort(),u=0;u<h.length;u+=1)d=h[u],f[d]=yf(t[d],e,r,o,d);e.pop(),r.pop()}else f=t;return f}var bf=new bi;bf.tokenize=function(t){return t.slice()};bf.join=bf.removeEmpty=function(t){return t};function tL(t,e,r,o,a,u,f){f||(f={}),typeof f.context>"u"&&(f.context=4);var h=GT(r,o,f);if(!h)return;h.push({value:"",lines:[]});function d(C){return C.map(function(L){return" "+L})}for(var g=[],v=0,b=0,w=[],S=1,M=1,A=function(L){var $=h[L],O=$.lines||$.value.replace(/\n$/,"").split(`
3
+ `);if($.lines=O,$.added||$.removed){var G;if(!v){var V=h[L-1];v=S,b=M,V&&(w=f.context>0?d(V.lines.slice(-f.context)):[],v-=w.length,b-=w.length)}(G=w).push.apply(G,Ru(O.map(function(z){return($.added?"+":"-")+z}))),$.added?M+=O.length:S+=O.length}else{if(v)if(O.length<=f.context*2&&L<h.length-2){var rt;(rt=w).push.apply(rt,Ru(d(O)))}else{var Z,ut=Math.min(O.length,f.context);(Z=w).push.apply(Z,Ru(d(O.slice(0,ut))));var vt={oldStart:v,oldLines:S-v+ut,newStart:b,newLines:M-b+ut,lines:w};if(L>=h.length-2&&O.length<=f.context){var kt=/\n$/.test(r),ft=/\n$/.test(o),U=O.length==0&&w.length>vt.oldLines;!kt&&U&&r.length>0&&w.splice(vt.oldLines,0,"\"),(!kt&&!U||!ft)&&w.push("\")}g.push(vt),v=0,b=0,w=[]}S+=O.length,M+=O.length}},E=0;E<h.length;E++)A(E);return{oldFileName:t,newFileName:e,oldHeader:a,newHeader:u,hunks:g}}function eL(t){var e=[];t.oldFileName==t.newFileName&&e.push("Index: "+t.oldFileName),e.push("==================================================================="),e.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),e.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader));for(var r=0;r<t.hunks.length;r++){var o=t.hunks[r];o.oldLines===0&&(o.oldStart-=1),o.newLines===0&&(o.newStart-=1),e.push("@@ -"+o.oldStart+","+o.oldLines+" +"+o.newStart+","+o.newLines+" @@"),e.push.apply(e,o.lines)}return e.join(`
4
+ `)+`
5
+ `}function nL(t,e,r,o,a,u,f){return eL(tL(t,e,r,o,a,u,f))}function rL(t,e,r,o,a,u){return nL(t,t,e,r,o,a,u)}function ua(t,e){return t.slice(0,e)+(t.length>e?"…":"")}function iL(t,e,r={}){if(t===e)return"";const{outputTruncateLength:o=80,outputDiffLines:a,showLegend:u=!0}=r,f=" ",h=a||15,d={"+":0,"-":0};let g=null,v=0;function b(E){if(!E||E.match(/\\ No newline/))return;const C=E[0];if("-+".includes(C)){if(g!==C&&(g=C,v=0),v++,d[C]++,v===h)return`${C} ...`;if(v>h)return}return E}const S=rL("string",e,t).split(`
6
+ `).slice(5).map(b).filter(Boolean),M=d["+"]===1&&d["-"]===1&&S.length===2;let A=S.map(E=>(E=E.replace(/\\"/g,'"'),E[0]==="-"?(E=ua(E.slice(1),o),M?E:`- ${ua(E,o)}`):E[0]==="+"?(E=ua(E.slice(1),o),M?E:`+ ${ua(E,o)}`):E.match(/@@/)?"--":` ${E}`));if(u)if(M)A=[`- Expected ${A[0]}`,`+ Received ${A[1]}`];else{A[0].includes('"')&&(A[0]=A[0].replace('"',""));const E=A.length-1;A[E].endsWith('"')&&(A[E]=A[E].slice(0,A[E].length-1)),A.unshift(`- Expected - ${d["-"]}`,`+ Received + ${d["+"]}`,"")}return A.map(E=>f+E).join(`
7
+ `)}var Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sy={},$r={};const oL="Á",sL="á",lL="Ă",aL="ă",cL="∾",uL="∿",fL="∾̳",hL="Â",dL="â",pL="´",gL="А",vL="а",mL="Æ",yL="æ",bL="⁡",wL="𝔄",xL="𝔞",_L="À",SL="à",kL="ℵ",CL="ℵ",TL="Α",LL="α",EL="Ā",AL="ā",ML="⨿",NL="&",PL="&",OL="⩕",$L="⩓",DL="∧",RL="⩜",zL="⩘",IL="⩚",FL="∠",qL="⦤",HL="∠",BL="⦨",WL="⦩",UL="⦪",jL="⦫",GL="⦬",VL="⦭",KL="⦮",XL="⦯",YL="∡",JL="∟",ZL="⊾",QL="⦝",tE="∢",eE="Å",nE="⍼",rE="Ą",iE="ą",oE="𝔸",sE="𝕒",lE="⩯",aE="≈",cE="⩰",uE="≊",fE="≋",hE="'",dE="⁡",pE="≈",gE="≊",vE="Å",mE="å",yE="𝒜",bE="𝒶",wE="≔",xE="*",_E="≈",SE="≍",kE="Ã",CE="ã",TE="Ä",LE="ä",EE="∳",AE="⨑",ME="≌",NE="϶",PE="‵",OE="∽",$E="⋍",DE="∖",RE="⫧",zE="⊽",IE="⌅",FE="⌆",qE="⌅",HE="⎵",BE="⎶",WE="≌",UE="Б",jE="б",GE="„",VE="∵",KE="∵",XE="∵",YE="⦰",JE="϶",ZE="ℬ",QE="ℬ",tA="Β",eA="β",nA="ℶ",rA="≬",iA="𝔅",oA="𝔟",sA="⋂",lA="◯",aA="⋃",cA="⨀",uA="⨁",fA="⨂",hA="⨆",dA="★",pA="▽",gA="△",vA="⨄",mA="⋁",yA="⋀",bA="⤍",wA="⧫",xA="▪",_A="▴",SA="▾",kA="◂",CA="▸",TA="␣",LA="▒",EA="░",AA="▓",MA="█",NA="=⃥",PA="≡⃥",OA="⫭",$A="⌐",DA="𝔹",RA="𝕓",zA="⊥",IA="⊥",FA="⋈",qA="⧉",HA="┐",BA="╕",WA="╖",UA="╗",jA="┌",GA="╒",VA="╓",KA="╔",XA="─",YA="═",JA="┬",ZA="╤",QA="╥",tM="╦",eM="┴",nM="╧",rM="╨",iM="╩",oM="⊟",sM="⊞",lM="⊠",aM="┘",cM="╛",uM="╜",fM="╝",hM="└",dM="╘",pM="╙",gM="╚",vM="│",mM="║",yM="┼",bM="╪",wM="╫",xM="╬",_M="┤",SM="╡",kM="╢",CM="╣",TM="├",LM="╞",EM="╟",AM="╠",MM="‵",NM="˘",PM="˘",OM="¦",$M="𝒷",DM="ℬ",RM="⁏",zM="∽",IM="⋍",FM="⧅",qM="\\",HM="⟈",BM="•",WM="•",UM="≎",jM="⪮",GM="≏",VM="≎",KM="≏",XM="Ć",YM="ć",JM="⩄",ZM="⩉",QM="⩋",tN="∩",eN="⋒",nN="⩇",rN="⩀",iN="ⅅ",oN="∩︀",sN="⁁",lN="ˇ",aN="ℭ",cN="⩍",uN="Č",fN="č",hN="Ç",dN="ç",pN="Ĉ",gN="ĉ",vN="∰",mN="⩌",yN="⩐",bN="Ċ",wN="ċ",xN="¸",_N="¸",SN="⦲",kN="¢",CN="·",TN="·",LN="𝔠",EN="ℭ",AN="Ч",MN="ч",NN="✓",PN="✓",ON="Χ",$N="χ",DN="ˆ",RN="≗",zN="↺",IN="↻",FN="⊛",qN="⊚",HN="⊝",BN="⊙",WN="®",UN="Ⓢ",jN="⊖",GN="⊕",VN="⊗",KN="○",XN="⧃",YN="≗",JN="⨐",ZN="⫯",QN="⧂",tP="∲",eP="”",nP="’",rP="♣",iP="♣",oP=":",sP="∷",lP="⩴",aP="≔",cP="≔",uP=",",fP="@",hP="∁",dP="∘",pP="∁",gP="ℂ",vP="≅",mP="⩭",yP="≡",bP="∮",wP="∯",xP="∮",_P="𝕔",SP="ℂ",kP="∐",CP="∐",TP="©",LP="©",EP="℗",AP="∳",MP="↵",NP="✗",PP="⨯",OP="𝒞",$P="𝒸",DP="⫏",RP="⫑",zP="⫐",IP="⫒",FP="⋯",qP="⤸",HP="⤵",BP="⋞",WP="⋟",UP="↶",jP="⤽",GP="⩈",VP="⩆",KP="≍",XP="∪",YP="⋓",JP="⩊",ZP="⊍",QP="⩅",tO="∪︀",eO="↷",nO="⤼",rO="⋞",iO="⋟",oO="⋎",sO="⋏",lO="¤",aO="↶",cO="↷",uO="⋎",fO="⋏",hO="∲",dO="∱",pO="⌭",gO="†",vO="‡",mO="ℸ",yO="↓",bO="↡",wO="⇓",xO="‐",_O="⫤",SO="⊣",kO="⤏",CO="˝",TO="Ď",LO="ď",EO="Д",AO="д",MO="‡",NO="⇊",PO="ⅅ",OO="ⅆ",$O="⤑",DO="⩷",RO="°",zO="∇",IO="Δ",FO="δ",qO="⦱",HO="⥿",BO="𝔇",WO="𝔡",UO="⥥",jO="⇃",GO="⇂",VO="´",KO="˙",XO="˝",YO="`",JO="˜",ZO="⋄",QO="⋄",t$="⋄",e$="♦",n$="♦",r$="¨",i$="ⅆ",o$="ϝ",s$="⋲",l$="÷",a$="÷",c$="⋇",u$="⋇",f$="Ђ",h$="ђ",d$="⌞",p$="⌍",g$="$",v$="𝔻",m$="𝕕",y$="¨",b$="˙",w$="⃜",x$="≐",_$="≑",S$="≐",k$="∸",C$="∔",T$="⊡",L$="⌆",E$="∯",A$="¨",M$="⇓",N$="⇐",P$="⇔",O$="⫤",$$="⟸",D$="⟺",R$="⟹",z$="⇒",I$="⊨",F$="⇑",q$="⇕",H$="∥",B$="⤓",W$="↓",U$="↓",j$="⇓",G$="⇵",V$="̑",K$="⇊",X$="⇃",Y$="⇂",J$="⥐",Z$="⥞",Q$="⥖",tD="↽",eD="⥟",nD="⥗",rD="⇁",iD="↧",oD="⊤",sD="⤐",lD="⌟",aD="⌌",cD="𝒟",uD="𝒹",fD="Ѕ",hD="ѕ",dD="⧶",pD="Đ",gD="đ",vD="⋱",mD="▿",yD="▾",bD="⇵",wD="⥯",xD="⦦",_D="Џ",SD="џ",kD="⟿",CD="É",TD="é",LD="⩮",ED="Ě",AD="ě",MD="Ê",ND="ê",PD="≖",OD="≕",$D="Э",DD="э",RD="⩷",zD="Ė",ID="ė",FD="≑",qD="ⅇ",HD="≒",BD="𝔈",WD="𝔢",UD="⪚",jD="È",GD="è",VD="⪖",KD="⪘",XD="⪙",YD="∈",JD="⏧",ZD="ℓ",QD="⪕",tR="⪗",eR="Ē",nR="ē",rR="∅",iR="∅",oR="◻",sR="∅",lR="▫",aR=" ",cR=" ",uR=" ",fR="Ŋ",hR="ŋ",dR=" ",pR="Ę",gR="ę",vR="𝔼",mR="𝕖",yR="⋕",bR="⧣",wR="⩱",xR="ε",_R="Ε",SR="ε",kR="ϵ",CR="≖",TR="≕",LR="≂",ER="⪖",AR="⪕",MR="⩵",NR="=",PR="≂",OR="≟",$R="⇌",DR="≡",RR="⩸",zR="⧥",IR="⥱",FR="≓",qR="ℯ",HR="ℰ",BR="≐",WR="⩳",UR="≂",jR="Η",GR="η",VR="Ð",KR="ð",XR="Ë",YR="ë",JR="€",ZR="!",QR="∃",t2="∃",e2="ℰ",n2="ⅇ",r2="ⅇ",i2="≒",o2="Ф",s2="ф",l2="♀",a2="ffi",c2="ff",u2="ffl",f2="𝔉",h2="𝔣",d2="fi",p2="◼",g2="▪",v2="fj",m2="♭",y2="fl",b2="▱",w2="ƒ",x2="𝔽",_2="𝕗",S2="∀",k2="∀",C2="⋔",T2="⫙",L2="ℱ",E2="⨍",A2="½",M2="⅓",N2="¼",P2="⅕",O2="⅙",$2="⅛",D2="⅔",R2="⅖",z2="¾",I2="⅗",F2="⅜",q2="⅘",H2="⅚",B2="⅝",W2="⅞",U2="⁄",j2="⌢",G2="𝒻",V2="ℱ",K2="ǵ",X2="Γ",Y2="γ",J2="Ϝ",Z2="ϝ",Q2="⪆",tz="Ğ",ez="ğ",nz="Ģ",rz="Ĝ",iz="ĝ",oz="Г",sz="г",lz="Ġ",az="ġ",cz="≥",uz="≧",fz="⪌",hz="⋛",dz="≥",pz="≧",gz="⩾",vz="⪩",mz="⩾",yz="⪀",bz="⪂",wz="⪄",xz="⋛︀",_z="⪔",Sz="𝔊",kz="𝔤",Cz="≫",Tz="⋙",Lz="⋙",Ez="ℷ",Az="Ѓ",Mz="ѓ",Nz="⪥",Pz="≷",Oz="⪒",$z="⪤",Dz="⪊",Rz="⪊",zz="⪈",Iz="≩",Fz="⪈",qz="≩",Hz="⋧",Bz="𝔾",Wz="𝕘",Uz="`",jz="≥",Gz="⋛",Vz="≧",Kz="⪢",Xz="≷",Yz="⩾",Jz="≳",Zz="𝒢",Qz="ℊ",tI="≳",eI="⪎",nI="⪐",rI="⪧",iI="⩺",oI=">",sI=">",lI="≫",aI="⋗",cI="⦕",uI="⩼",fI="⪆",hI="⥸",dI="⋗",pI="⋛",gI="⪌",vI="≷",mI="≳",yI="≩︀",bI="≩︀",wI="ˇ",xI=" ",_I="½",SI="ℋ",kI="Ъ",CI="ъ",TI="⥈",LI="↔",EI="⇔",AI="↭",MI="^",NI="ℏ",PI="Ĥ",OI="ĥ",$I="♥",DI="♥",RI="…",zI="⊹",II="𝔥",FI="ℌ",qI="ℋ",HI="⤥",BI="⤦",WI="⇿",UI="∻",jI="↩",GI="↪",VI="𝕙",KI="ℍ",XI="―",YI="─",JI="𝒽",ZI="ℋ",QI="ℏ",tF="Ħ",eF="ħ",nF="≎",rF="≏",iF="⁃",oF="‐",sF="Í",lF="í",aF="⁣",cF="Î",uF="î",fF="И",hF="и",dF="İ",pF="Е",gF="е",vF="¡",mF="⇔",yF="𝔦",bF="ℑ",wF="Ì",xF="ì",_F="ⅈ",SF="⨌",kF="∭",CF="⧜",TF="℩",LF="IJ",EF="ij",AF="Ī",MF="ī",NF="ℑ",PF="ⅈ",OF="ℐ",$F="ℑ",DF="ı",RF="ℑ",zF="⊷",IF="Ƶ",FF="⇒",qF="℅",HF="∞",BF="⧝",WF="ı",UF="⊺",jF="∫",GF="∬",VF="ℤ",KF="∫",XF="⊺",YF="⋂",JF="⨗",ZF="⨼",QF="⁣",tq="⁢",eq="Ё",nq="ё",rq="Į",iq="į",oq="𝕀",sq="𝕚",lq="Ι",aq="ι",cq="⨼",uq="¿",fq="𝒾",hq="ℐ",dq="∈",pq="⋵",gq="⋹",vq="⋴",mq="⋳",yq="∈",bq="⁢",wq="Ĩ",xq="ĩ",_q="І",Sq="і",kq="Ï",Cq="ï",Tq="Ĵ",Lq="ĵ",Eq="Й",Aq="й",Mq="𝔍",Nq="𝔧",Pq="ȷ",Oq="𝕁",$q="𝕛",Dq="𝒥",Rq="𝒿",zq="Ј",Iq="ј",Fq="Є",qq="є",Hq="Κ",Bq="κ",Wq="ϰ",Uq="Ķ",jq="ķ",Gq="К",Vq="к",Kq="𝔎",Xq="𝔨",Yq="ĸ",Jq="Х",Zq="х",Qq="Ќ",tH="ќ",eH="𝕂",nH="𝕜",rH="𝒦",iH="𝓀",oH="⇚",sH="Ĺ",lH="ĺ",aH="⦴",cH="ℒ",uH="Λ",fH="λ",hH="⟨",dH="⟪",pH="⦑",gH="⟨",vH="⪅",mH="ℒ",yH="«",bH="⇤",wH="⤟",xH="←",_H="↞",SH="⇐",kH="⤝",CH="↩",TH="↫",LH="⤹",EH="⥳",AH="↢",MH="⤙",NH="⤛",PH="⪫",OH="⪭",$H="⪭︀",DH="⤌",RH="⤎",zH="❲",IH="{",FH="[",qH="⦋",HH="⦏",BH="⦍",WH="Ľ",UH="ľ",jH="Ļ",GH="ļ",VH="⌈",KH="{",XH="Л",YH="л",JH="⤶",ZH="“",QH="„",tB="⥧",eB="⥋",nB="↲",rB="≤",iB="≦",oB="⟨",sB="⇤",lB="←",aB="←",cB="⇐",uB="⇆",fB="↢",hB="⌈",dB="⟦",pB="⥡",gB="⥙",vB="⇃",mB="⌊",yB="↽",bB="↼",wB="⇇",xB="↔",_B="↔",SB="⇔",kB="⇆",CB="⇋",TB="↭",LB="⥎",EB="↤",AB="⊣",MB="⥚",NB="⋋",PB="⧏",OB="⊲",$B="⊴",DB="⥑",RB="⥠",zB="⥘",IB="↿",FB="⥒",qB="↼",HB="⪋",BB="⋚",WB="≤",UB="≦",jB="⩽",GB="⪨",VB="⩽",KB="⩿",XB="⪁",YB="⪃",JB="⋚︀",ZB="⪓",QB="⪅",t3="⋖",e3="⋚",n3="⪋",r3="⋚",i3="≦",o3="≶",s3="≶",l3="⪡",a3="≲",c3="⩽",u3="≲",f3="⥼",h3="⌊",d3="𝔏",p3="𝔩",g3="≶",v3="⪑",m3="⥢",y3="↽",b3="↼",w3="⥪",x3="▄",_3="Љ",S3="љ",k3="⇇",C3="≪",T3="⋘",L3="⌞",E3="⇚",A3="⥫",M3="◺",N3="Ŀ",P3="ŀ",O3="⎰",$3="⎰",D3="⪉",R3="⪉",z3="⪇",I3="≨",F3="⪇",q3="≨",H3="⋦",B3="⟬",W3="⇽",U3="⟦",j3="⟵",G3="⟵",V3="⟸",K3="⟷",X3="⟷",Y3="⟺",J3="⟼",Z3="⟶",Q3="⟶",t5="⟹",e5="↫",n5="↬",r5="⦅",i5="𝕃",o5="𝕝",s5="⨭",l5="⨴",a5="∗",c5="_",u5="↙",f5="↘",h5="◊",d5="◊",p5="⧫",g5="(",v5="⦓",m5="⇆",y5="⌟",b5="⇋",w5="⥭",x5="‎",_5="⊿",S5="‹",k5="𝓁",C5="ℒ",T5="↰",L5="↰",E5="≲",A5="⪍",M5="⪏",N5="[",P5="‘",O5="‚",$5="Ł",D5="ł",R5="⪦",z5="⩹",I5="<",F5="<",q5="≪",H5="⋖",B5="⋋",W5="⋉",U5="⥶",j5="⩻",G5="◃",V5="⊴",K5="◂",X5="⦖",Y5="⥊",J5="⥦",Z5="≨︀",Q5="≨︀",tW="¯",eW="♂",nW="✠",rW="✠",iW="↦",oW="↦",sW="↧",lW="↤",aW="↥",cW="▮",uW="⨩",fW="М",hW="м",dW="—",pW="∺",gW="∡",vW=" ",mW="ℳ",yW="𝔐",bW="𝔪",wW="℧",xW="µ",_W="*",SW="⫰",kW="∣",CW="·",TW="⊟",LW="−",EW="∸",AW="⨪",MW="∓",NW="⫛",PW="…",OW="∓",$W="⊧",DW="𝕄",RW="𝕞",zW="∓",IW="𝓂",FW="ℳ",qW="∾",HW="Μ",BW="μ",WW="⊸",UW="⊸",jW="∇",GW="Ń",VW="ń",KW="∠⃒",XW="≉",YW="⩰̸",JW="≋̸",ZW="ʼn",QW="≉",tU="♮",eU="ℕ",nU="♮",rU=" ",iU="≎̸",oU="≏̸",sU="⩃",lU="Ň",aU="ň",cU="Ņ",uU="ņ",fU="≇",hU="⩭̸",dU="⩂",pU="Н",gU="н",vU="–",mU="⤤",yU="↗",bU="⇗",wU="↗",xU="≠",_U="≐̸",SU="​",kU="​",CU="​",TU="​",LU="≢",EU="⤨",AU="≂̸",MU="≫",NU="≪",PU=`
8
+ `,OU="∄",$U="∄",DU="𝔑",RU="𝔫",zU="≧̸",IU="≱",FU="≱",qU="≧̸",HU="⩾̸",BU="⩾̸",WU="⋙̸",UU="≵",jU="≫⃒",GU="≯",VU="≯",KU="≫̸",XU="↮",YU="⇎",JU="⫲",ZU="∋",QU="⋼",t8="⋺",e8="∋",n8="Њ",r8="њ",i8="↚",o8="⇍",s8="‥",l8="≦̸",a8="≰",c8="↚",u8="⇍",f8="↮",h8="⇎",d8="≰",p8="≦̸",g8="⩽̸",v8="⩽̸",m8="≮",y8="⋘̸",b8="≴",w8="≪⃒",x8="≮",_8="⋪",S8="⋬",k8="≪̸",C8="∤",T8="⁠",L8=" ",E8="𝕟",A8="ℕ",M8="⫬",N8="¬",P8="≢",O8="≭",$8="∦",D8="∉",R8="≠",z8="≂̸",I8="∄",F8="≯",q8="≱",H8="≧̸",B8="≫̸",W8="≹",U8="⩾̸",j8="≵",G8="≎̸",V8="≏̸",K8="∉",X8="⋵̸",Y8="⋹̸",J8="∉",Z8="⋷",Q8="⋶",t4="⧏̸",e4="⋪",n4="⋬",r4="≮",i4="≰",o4="≸",s4="≪̸",l4="⩽̸",a4="≴",c4="⪢̸",u4="⪡̸",f4="∌",h4="∌",d4="⋾",p4="⋽",g4="⊀",v4="⪯̸",m4="⋠",y4="∌",b4="⧐̸",w4="⋫",x4="⋭",_4="⊏̸",S4="⋢",k4="⊐̸",C4="⋣",T4="⊂⃒",L4="⊈",E4="⊁",A4="⪰̸",M4="⋡",N4="≿̸",P4="⊃⃒",O4="⊉",$4="≁",D4="≄",R4="≇",z4="≉",I4="∤",F4="∦",q4="∦",H4="⫽⃥",B4="∂̸",W4="⨔",U4="⊀",j4="⋠",G4="⊀",V4="⪯̸",K4="⪯̸",X4="⤳̸",Y4="↛",J4="⇏",Z4="↝̸",Q4="↛",t6="⇏",e6="⋫",n6="⋭",r6="⊁",i6="⋡",o6="⪰̸",s6="𝒩",l6="𝓃",a6="∤",c6="∦",u6="≁",f6="≄",h6="≄",d6="∤",p6="∦",g6="⋢",v6="⋣",m6="⊄",y6="⫅̸",b6="⊈",w6="⊂⃒",x6="⊈",_6="⫅̸",S6="⊁",k6="⪰̸",C6="⊅",T6="⫆̸",L6="⊉",E6="⊃⃒",A6="⊉",M6="⫆̸",N6="≹",P6="Ñ",O6="ñ",$6="≸",D6="⋪",R6="⋬",z6="⋫",I6="⋭",F6="Ν",q6="ν",H6="#",B6="№",W6=" ",U6="≍⃒",j6="⊬",G6="⊭",V6="⊮",K6="⊯",X6="≥⃒",Y6=">⃒",J6="⤄",Z6="⧞",Q6="⤂",tj="≤⃒",ej="<⃒",nj="⊴⃒",rj="⤃",ij="⊵⃒",oj="∼⃒",sj="⤣",lj="↖",aj="⇖",cj="↖",uj="⤧",fj="Ó",hj="ó",dj="⊛",pj="Ô",gj="ô",vj="⊚",mj="О",yj="о",bj="⊝",wj="Ő",xj="ő",_j="⨸",Sj="⊙",kj="⦼",Cj="Œ",Tj="œ",Lj="⦿",Ej="𝔒",Aj="𝔬",Mj="˛",Nj="Ò",Pj="ò",Oj="⧁",$j="⦵",Dj="Ω",Rj="∮",zj="↺",Ij="⦾",Fj="⦻",qj="‾",Hj="⧀",Bj="Ō",Wj="ō",Uj="Ω",jj="ω",Gj="Ο",Vj="ο",Kj="⦶",Xj="⊖",Yj="𝕆",Jj="𝕠",Zj="⦷",Qj="“",t9="‘",e9="⦹",n9="⊕",r9="↻",i9="⩔",o9="∨",s9="⩝",l9="ℴ",a9="ℴ",c9="ª",u9="º",f9="⊶",h9="⩖",d9="⩗",p9="⩛",g9="Ⓢ",v9="𝒪",m9="ℴ",y9="Ø",b9="ø",w9="⊘",x9="Õ",_9="õ",S9="⨶",k9="⨷",C9="⊗",T9="Ö",L9="ö",E9="⌽",A9="‾",M9="⏞",N9="⎴",P9="⏜",O9="¶",$9="∥",D9="∥",R9="⫳",z9="⫽",I9="∂",F9="∂",q9="П",H9="п",B9="%",W9=".",U9="‰",j9="⊥",G9="‱",V9="𝔓",K9="𝔭",X9="Φ",Y9="φ",J9="ϕ",Z9="ℳ",Q9="☎",tG="Π",eG="π",nG="⋔",rG="ϖ",iG="ℏ",oG="ℎ",sG="ℏ",lG="⨣",aG="⊞",cG="⨢",uG="+",fG="∔",hG="⨥",dG="⩲",pG="±",gG="±",vG="⨦",mG="⨧",yG="±",bG="ℌ",wG="⨕",xG="𝕡",_G="ℙ",SG="£",kG="⪷",CG="⪻",TG="≺",LG="≼",EG="⪷",AG="≺",MG="≼",NG="≺",PG="⪯",OG="≼",$G="≾",DG="⪯",RG="⪹",zG="⪵",IG="⋨",FG="⪯",qG="⪳",HG="≾",BG="′",WG="″",UG="ℙ",jG="⪹",GG="⪵",VG="⋨",KG="∏",XG="∏",YG="⌮",JG="⌒",ZG="⌓",QG="∝",tV="∝",eV="∷",nV="∝",rV="≾",iV="⊰",oV="𝒫",sV="𝓅",lV="Ψ",aV="ψ",cV=" ",uV="𝔔",fV="𝔮",hV="⨌",dV="𝕢",pV="ℚ",gV="⁗",vV="𝒬",mV="𝓆",yV="ℍ",bV="⨖",wV="?",xV="≟",_V='"',SV='"',kV="⇛",CV="∽̱",TV="Ŕ",LV="ŕ",EV="√",AV="⦳",MV="⟩",NV="⟫",PV="⦒",OV="⦥",$V="⟩",DV="»",RV="⥵",zV="⇥",IV="⤠",FV="⤳",qV="→",HV="↠",BV="⇒",WV="⤞",UV="↪",jV="↬",GV="⥅",VV="⥴",KV="⤖",XV="↣",YV="↝",JV="⤚",ZV="⤜",QV="∶",t7="ℚ",e7="⤍",n7="⤏",r7="⤐",i7="❳",o7="}",s7="]",l7="⦌",a7="⦎",c7="⦐",u7="Ř",f7="ř",h7="Ŗ",d7="ŗ",p7="⌉",g7="}",v7="Р",m7="р",y7="⤷",b7="⥩",w7="”",x7="”",_7="↳",S7="ℜ",k7="ℛ",C7="ℜ",T7="ℝ",L7="ℜ",E7="▭",A7="®",M7="®",N7="∋",P7="⇋",O7="⥯",$7="⥽",D7="⌋",R7="𝔯",z7="ℜ",I7="⥤",F7="⇁",q7="⇀",H7="⥬",B7="Ρ",W7="ρ",U7="ϱ",j7="⟩",G7="⇥",V7="→",K7="→",X7="⇒",Y7="⇄",J7="↣",Z7="⌉",Q7="⟧",tK="⥝",eK="⥕",nK="⇂",rK="⌋",iK="⇁",oK="⇀",sK="⇄",lK="⇌",aK="⇉",cK="↝",uK="↦",fK="⊢",hK="⥛",dK="⋌",pK="⧐",gK="⊳",vK="⊵",mK="⥏",yK="⥜",bK="⥔",wK="↾",xK="⥓",_K="⇀",SK="˚",kK="≓",CK="⇄",TK="⇌",LK="‏",EK="⎱",AK="⎱",MK="⫮",NK="⟭",PK="⇾",OK="⟧",$K="⦆",DK="𝕣",RK="ℝ",zK="⨮",IK="⨵",FK="⥰",qK=")",HK="⦔",BK="⨒",WK="⇉",UK="⇛",jK="›",GK="𝓇",VK="ℛ",KK="↱",XK="↱",YK="]",JK="’",ZK="’",QK="⋌",tX="⋊",eX="▹",nX="⊵",rX="▸",iX="⧎",oX="⧴",sX="⥨",lX="℞",aX="Ś",cX="ś",uX="‚",fX="⪸",hX="Š",dX="š",pX="⪼",gX="≻",vX="≽",mX="⪰",yX="⪴",bX="Ş",wX="ş",xX="Ŝ",_X="ŝ",SX="⪺",kX="⪶",CX="⋩",TX="⨓",LX="≿",EX="С",AX="с",MX="⊡",NX="⋅",PX="⩦",OX="⤥",$X="↘",DX="⇘",RX="↘",zX="§",IX=";",FX="⤩",qX="∖",HX="∖",BX="✶",WX="𝔖",UX="𝔰",jX="⌢",GX="♯",VX="Щ",KX="щ",XX="Ш",YX="ш",JX="↓",ZX="←",QX="∣",tY="∥",eY="→",nY="↑",rY="­",iY="Σ",oY="σ",sY="ς",lY="ς",aY="∼",cY="⩪",uY="≃",fY="≃",hY="⪞",dY="⪠",pY="⪝",gY="⪟",vY="≆",mY="⨤",yY="⥲",bY="←",wY="∘",xY="∖",_Y="⨳",SY="⧤",kY="∣",CY="⌣",TY="⪪",LY="⪬",EY="⪬︀",AY="Ь",MY="ь",NY="⌿",PY="⧄",OY="/",$Y="𝕊",DY="𝕤",RY="♠",zY="♠",IY="∥",FY="⊓",qY="⊓︀",HY="⊔",BY="⊔︀",WY="√",UY="⊏",jY="⊑",GY="⊏",VY="⊑",KY="⊐",XY="⊒",YY="⊐",JY="⊒",ZY="□",QY="□",tJ="⊓",eJ="⊏",nJ="⊑",rJ="⊐",iJ="⊒",oJ="⊔",sJ="▪",lJ="□",aJ="▪",cJ="→",uJ="𝒮",fJ="𝓈",hJ="∖",dJ="⌣",pJ="⋆",gJ="⋆",vJ="☆",mJ="★",yJ="ϵ",bJ="ϕ",wJ="¯",xJ="⊂",_J="⋐",SJ="⪽",kJ="⫅",CJ="⊆",TJ="⫃",LJ="⫁",EJ="⫋",AJ="⊊",MJ="⪿",NJ="⥹",PJ="⊂",OJ="⋐",$J="⊆",DJ="⫅",RJ="⊆",zJ="⊊",IJ="⫋",FJ="⫇",qJ="⫕",HJ="⫓",BJ="⪸",WJ="≻",UJ="≽",jJ="≻",GJ="⪰",VJ="≽",KJ="≿",XJ="⪰",YJ="⪺",JJ="⪶",ZJ="⋩",QJ="≿",tZ="∋",eZ="∑",nZ="∑",rZ="♪",iZ="¹",oZ="²",sZ="³",lZ="⊃",aZ="⋑",cZ="⪾",uZ="⫘",fZ="⫆",hZ="⊇",dZ="⫄",pZ="⊃",gZ="⊇",vZ="⟉",mZ="⫗",yZ="⥻",bZ="⫂",wZ="⫌",xZ="⊋",_Z="⫀",SZ="⊃",kZ="⋑",CZ="⊇",TZ="⫆",LZ="⊋",EZ="⫌",AZ="⫈",MZ="⫔",NZ="⫖",PZ="⤦",OZ="↙",$Z="⇙",DZ="↙",RZ="⤪",zZ="ß",IZ=" ",FZ="⌖",qZ="Τ",HZ="τ",BZ="⎴",WZ="Ť",UZ="ť",jZ="Ţ",GZ="ţ",VZ="Т",KZ="т",XZ="⃛",YZ="⌕",JZ="𝔗",ZZ="𝔱",QZ="∴",tQ="∴",eQ="∴",nQ="Θ",rQ="θ",iQ="ϑ",oQ="ϑ",sQ="≈",lQ="∼",aQ="  ",cQ=" ",uQ=" ",fQ="≈",hQ="∼",dQ="Þ",pQ="þ",gQ="˜",vQ="∼",mQ="≃",yQ="≅",bQ="≈",wQ="⨱",xQ="⊠",_Q="×",SQ="⨰",kQ="∭",CQ="⤨",TQ="⌶",LQ="⫱",EQ="⊤",AQ="𝕋",MQ="𝕥",NQ="⫚",PQ="⤩",OQ="‴",$Q="™",DQ="™",RQ="▵",zQ="▿",IQ="◃",FQ="⊴",qQ="≜",HQ="▹",BQ="⊵",WQ="◬",UQ="≜",jQ="⨺",GQ="⃛",VQ="⨹",KQ="⧍",XQ="⨻",YQ="⏢",JQ="𝒯",ZQ="𝓉",QQ="Ц",ttt="ц",ett="Ћ",ntt="ћ",rtt="Ŧ",itt="ŧ",ott="≬",stt="↞",ltt="↠",att="Ú",ctt="ú",utt="↑",ftt="↟",htt="⇑",dtt="⥉",ptt="Ў",gtt="ў",vtt="Ŭ",mtt="ŭ",ytt="Û",btt="û",wtt="У",xtt="у",_tt="⇅",Stt="Ű",ktt="ű",Ctt="⥮",Ttt="⥾",Ltt="𝔘",Ett="𝔲",Att="Ù",Mtt="ù",Ntt="⥣",Ptt="↿",Ott="↾",$tt="▀",Dtt="⌜",Rtt="⌜",ztt="⌏",Itt="◸",Ftt="Ū",qtt="ū",Htt="¨",Btt="_",Wtt="⏟",Utt="⎵",jtt="⏝",Gtt="⋃",Vtt="⊎",Ktt="Ų",Xtt="ų",Ytt="𝕌",Jtt="𝕦",Ztt="⤒",Qtt="↑",tet="↑",eet="⇑",net="⇅",ret="↕",iet="↕",oet="⇕",set="⥮",aet="↿",cet="↾",uet="⊎",fet="↖",het="↗",det="υ",pet="ϒ",get="ϒ",vet="Υ",met="υ",yet="↥",bet="⊥",wet="⇈",xet="⌝",_et="⌝",ket="⌎",Cet="Ů",Tet="ů",Let="◹",Eet="𝒰",Aet="𝓊",Met="⋰",Net="Ũ",Pet="ũ",Oet="▵",$et="▴",Det="⇈",Ret="Ü",zet="ü",Iet="⦧",Fet="⦜",qet="ϵ",Het="ϰ",Bet="∅",Wet="ϕ",Uet="ϖ",jet="∝",Get="↕",Vet="⇕",Ket="ϱ",Xet="ς",Yet="⊊︀",Jet="⫋︀",Zet="⊋︀",Qet="⫌︀",tnt="ϑ",ent="⊲",nnt="⊳",rnt="⫨",int="⫫",ont="⫩",snt="В",lnt="в",ant="⊢",cnt="⊨",unt="⊩",fnt="⊫",hnt="⫦",dnt="⊻",pnt="∨",gnt="⋁",vnt="≚",mnt="⋮",ynt="|",bnt="‖",wnt="|",xnt="‖",_nt="∣",Snt="|",knt="❘",Cnt="≀",Tnt=" ",Lnt="𝔙",Ent="𝔳",Ant="⊲",Mnt="⊂⃒",Nnt="⊃⃒",Pnt="𝕍",Ont="𝕧",$nt="∝",Dnt="⊳",Rnt="𝒱",znt="𝓋",Int="⫋︀",Fnt="⊊︀",qnt="⫌︀",Hnt="⊋︀",Bnt="⊪",Wnt="⦚",Unt="Ŵ",jnt="ŵ",Gnt="⩟",Vnt="∧",Knt="⋀",Xnt="≙",Ynt="℘",Jnt="𝔚",Znt="𝔴",Qnt="𝕎",trt="𝕨",ert="℘",nrt="≀",rrt="≀",irt="𝒲",ort="𝓌",srt="⋂",lrt="◯",art="⋃",crt="▽",urt="𝔛",frt="𝔵",hrt="⟷",drt="⟺",prt="Ξ",grt="ξ",vrt="⟵",mrt="⟸",yrt="⟼",brt="⋻",wrt="⨀",xrt="𝕏",_rt="𝕩",Srt="⨁",krt="⨂",Crt="⟶",Trt="⟹",Lrt="𝒳",Ert="𝓍",Art="⨆",Mrt="⨄",Nrt="△",Prt="⋁",Ort="⋀",$rt="Ý",Drt="ý",Rrt="Я",zrt="я",Irt="Ŷ",Frt="ŷ",qrt="Ы",Hrt="ы",Brt="¥",Wrt="𝔜",Urt="𝔶",jrt="Ї",Grt="ї",Vrt="𝕐",Krt="𝕪",Xrt="𝒴",Yrt="𝓎",Jrt="Ю",Zrt="ю",Qrt="ÿ",tit="Ÿ",eit="Ź",nit="ź",rit="Ž",iit="ž",oit="З",sit="з",lit="Ż",ait="ż",cit="ℨ",uit="​",fit="Ζ",hit="ζ",dit="𝔷",pit="ℨ",git="Ж",vit="ж",mit="⇝",yit="𝕫",bit="ℤ",wit="𝒵",xit="𝓏",_it="‍",Sit="‌",ly={Aacute:oL,aacute:sL,Abreve:lL,abreve:aL,ac:cL,acd:uL,acE:fL,Acirc:hL,acirc:dL,acute:pL,Acy:gL,acy:vL,AElig:mL,aelig:yL,af:bL,Afr:wL,afr:xL,Agrave:_L,agrave:SL,alefsym:kL,aleph:CL,Alpha:TL,alpha:LL,Amacr:EL,amacr:AL,amalg:ML,amp:NL,AMP:PL,andand:OL,And:$L,and:DL,andd:RL,andslope:zL,andv:IL,ang:FL,ange:qL,angle:HL,angmsdaa:BL,angmsdab:WL,angmsdac:UL,angmsdad:jL,angmsdae:GL,angmsdaf:VL,angmsdag:KL,angmsdah:XL,angmsd:YL,angrt:JL,angrtvb:ZL,angrtvbd:QL,angsph:tE,angst:eE,angzarr:nE,Aogon:rE,aogon:iE,Aopf:oE,aopf:sE,apacir:lE,ap:aE,apE:cE,ape:uE,apid:fE,apos:hE,ApplyFunction:dE,approx:pE,approxeq:gE,Aring:vE,aring:mE,Ascr:yE,ascr:bE,Assign:wE,ast:xE,asymp:_E,asympeq:SE,Atilde:kE,atilde:CE,Auml:TE,auml:LE,awconint:EE,awint:AE,backcong:ME,backepsilon:NE,backprime:PE,backsim:OE,backsimeq:$E,Backslash:DE,Barv:RE,barvee:zE,barwed:IE,Barwed:FE,barwedge:qE,bbrk:HE,bbrktbrk:BE,bcong:WE,Bcy:UE,bcy:jE,bdquo:GE,becaus:VE,because:KE,Because:XE,bemptyv:YE,bepsi:JE,bernou:ZE,Bernoullis:QE,Beta:tA,beta:eA,beth:nA,between:rA,Bfr:iA,bfr:oA,bigcap:sA,bigcirc:lA,bigcup:aA,bigodot:cA,bigoplus:uA,bigotimes:fA,bigsqcup:hA,bigstar:dA,bigtriangledown:pA,bigtriangleup:gA,biguplus:vA,bigvee:mA,bigwedge:yA,bkarow:bA,blacklozenge:wA,blacksquare:xA,blacktriangle:_A,blacktriangledown:SA,blacktriangleleft:kA,blacktriangleright:CA,blank:TA,blk12:LA,blk14:EA,blk34:AA,block:MA,bne:NA,bnequiv:PA,bNot:OA,bnot:$A,Bopf:DA,bopf:RA,bot:zA,bottom:IA,bowtie:FA,boxbox:qA,boxdl:HA,boxdL:BA,boxDl:WA,boxDL:UA,boxdr:jA,boxdR:GA,boxDr:VA,boxDR:KA,boxh:XA,boxH:YA,boxhd:JA,boxHd:ZA,boxhD:QA,boxHD:tM,boxhu:eM,boxHu:nM,boxhU:rM,boxHU:iM,boxminus:oM,boxplus:sM,boxtimes:lM,boxul:aM,boxuL:cM,boxUl:uM,boxUL:fM,boxur:hM,boxuR:dM,boxUr:pM,boxUR:gM,boxv:vM,boxV:mM,boxvh:yM,boxvH:bM,boxVh:wM,boxVH:xM,boxvl:_M,boxvL:SM,boxVl:kM,boxVL:CM,boxvr:TM,boxvR:LM,boxVr:EM,boxVR:AM,bprime:MM,breve:NM,Breve:PM,brvbar:OM,bscr:$M,Bscr:DM,bsemi:RM,bsim:zM,bsime:IM,bsolb:FM,bsol:qM,bsolhsub:HM,bull:BM,bullet:WM,bump:UM,bumpE:jM,bumpe:GM,Bumpeq:VM,bumpeq:KM,Cacute:XM,cacute:YM,capand:JM,capbrcup:ZM,capcap:QM,cap:tN,Cap:eN,capcup:nN,capdot:rN,CapitalDifferentialD:iN,caps:oN,caret:sN,caron:lN,Cayleys:aN,ccaps:cN,Ccaron:uN,ccaron:fN,Ccedil:hN,ccedil:dN,Ccirc:pN,ccirc:gN,Cconint:vN,ccups:mN,ccupssm:yN,Cdot:bN,cdot:wN,cedil:xN,Cedilla:_N,cemptyv:SN,cent:kN,centerdot:CN,CenterDot:TN,cfr:LN,Cfr:EN,CHcy:AN,chcy:MN,check:NN,checkmark:PN,Chi:ON,chi:$N,circ:DN,circeq:RN,circlearrowleft:zN,circlearrowright:IN,circledast:FN,circledcirc:qN,circleddash:HN,CircleDot:BN,circledR:WN,circledS:UN,CircleMinus:jN,CirclePlus:GN,CircleTimes:VN,cir:KN,cirE:XN,cire:YN,cirfnint:JN,cirmid:ZN,cirscir:QN,ClockwiseContourIntegral:tP,CloseCurlyDoubleQuote:eP,CloseCurlyQuote:nP,clubs:rP,clubsuit:iP,colon:oP,Colon:sP,Colone:lP,colone:aP,coloneq:cP,comma:uP,commat:fP,comp:hP,compfn:dP,complement:pP,complexes:gP,cong:vP,congdot:mP,Congruent:yP,conint:bP,Conint:wP,ContourIntegral:xP,copf:_P,Copf:SP,coprod:kP,Coproduct:CP,copy:TP,COPY:LP,copysr:EP,CounterClockwiseContourIntegral:AP,crarr:MP,cross:NP,Cross:PP,Cscr:OP,cscr:$P,csub:DP,csube:RP,csup:zP,csupe:IP,ctdot:FP,cudarrl:qP,cudarrr:HP,cuepr:BP,cuesc:WP,cularr:UP,cularrp:jP,cupbrcap:GP,cupcap:VP,CupCap:KP,cup:XP,Cup:YP,cupcup:JP,cupdot:ZP,cupor:QP,cups:tO,curarr:eO,curarrm:nO,curlyeqprec:rO,curlyeqsucc:iO,curlyvee:oO,curlywedge:sO,curren:lO,curvearrowleft:aO,curvearrowright:cO,cuvee:uO,cuwed:fO,cwconint:hO,cwint:dO,cylcty:pO,dagger:gO,Dagger:vO,daleth:mO,darr:yO,Darr:bO,dArr:wO,dash:xO,Dashv:_O,dashv:SO,dbkarow:kO,dblac:CO,Dcaron:TO,dcaron:LO,Dcy:EO,dcy:AO,ddagger:MO,ddarr:NO,DD:PO,dd:OO,DDotrahd:$O,ddotseq:DO,deg:RO,Del:zO,Delta:IO,delta:FO,demptyv:qO,dfisht:HO,Dfr:BO,dfr:WO,dHar:UO,dharl:jO,dharr:GO,DiacriticalAcute:VO,DiacriticalDot:KO,DiacriticalDoubleAcute:XO,DiacriticalGrave:YO,DiacriticalTilde:JO,diam:ZO,diamond:QO,Diamond:t$,diamondsuit:e$,diams:n$,die:r$,DifferentialD:i$,digamma:o$,disin:s$,div:l$,divide:a$,divideontimes:c$,divonx:u$,DJcy:f$,djcy:h$,dlcorn:d$,dlcrop:p$,dollar:g$,Dopf:v$,dopf:m$,Dot:y$,dot:b$,DotDot:w$,doteq:x$,doteqdot:_$,DotEqual:S$,dotminus:k$,dotplus:C$,dotsquare:T$,doublebarwedge:L$,DoubleContourIntegral:E$,DoubleDot:A$,DoubleDownArrow:M$,DoubleLeftArrow:N$,DoubleLeftRightArrow:P$,DoubleLeftTee:O$,DoubleLongLeftArrow:$$,DoubleLongLeftRightArrow:D$,DoubleLongRightArrow:R$,DoubleRightArrow:z$,DoubleRightTee:I$,DoubleUpArrow:F$,DoubleUpDownArrow:q$,DoubleVerticalBar:H$,DownArrowBar:B$,downarrow:W$,DownArrow:U$,Downarrow:j$,DownArrowUpArrow:G$,DownBreve:V$,downdownarrows:K$,downharpoonleft:X$,downharpoonright:Y$,DownLeftRightVector:J$,DownLeftTeeVector:Z$,DownLeftVectorBar:Q$,DownLeftVector:tD,DownRightTeeVector:eD,DownRightVectorBar:nD,DownRightVector:rD,DownTeeArrow:iD,DownTee:oD,drbkarow:sD,drcorn:lD,drcrop:aD,Dscr:cD,dscr:uD,DScy:fD,dscy:hD,dsol:dD,Dstrok:pD,dstrok:gD,dtdot:vD,dtri:mD,dtrif:yD,duarr:bD,duhar:wD,dwangle:xD,DZcy:_D,dzcy:SD,dzigrarr:kD,Eacute:CD,eacute:TD,easter:LD,Ecaron:ED,ecaron:AD,Ecirc:MD,ecirc:ND,ecir:PD,ecolon:OD,Ecy:$D,ecy:DD,eDDot:RD,Edot:zD,edot:ID,eDot:FD,ee:qD,efDot:HD,Efr:BD,efr:WD,eg:UD,Egrave:jD,egrave:GD,egs:VD,egsdot:KD,el:XD,Element:YD,elinters:JD,ell:ZD,els:QD,elsdot:tR,Emacr:eR,emacr:nR,empty:rR,emptyset:iR,EmptySmallSquare:oR,emptyv:sR,EmptyVerySmallSquare:lR,emsp13:aR,emsp14:cR,emsp:uR,ENG:fR,eng:hR,ensp:dR,Eogon:pR,eogon:gR,Eopf:vR,eopf:mR,epar:yR,eparsl:bR,eplus:wR,epsi:xR,Epsilon:_R,epsilon:SR,epsiv:kR,eqcirc:CR,eqcolon:TR,eqsim:LR,eqslantgtr:ER,eqslantless:AR,Equal:MR,equals:NR,EqualTilde:PR,equest:OR,Equilibrium:$R,equiv:DR,equivDD:RR,eqvparsl:zR,erarr:IR,erDot:FR,escr:qR,Escr:HR,esdot:BR,Esim:WR,esim:UR,Eta:jR,eta:GR,ETH:VR,eth:KR,Euml:XR,euml:YR,euro:JR,excl:ZR,exist:QR,Exists:t2,expectation:e2,exponentiale:n2,ExponentialE:r2,fallingdotseq:i2,Fcy:o2,fcy:s2,female:l2,ffilig:a2,fflig:c2,ffllig:u2,Ffr:f2,ffr:h2,filig:d2,FilledSmallSquare:p2,FilledVerySmallSquare:g2,fjlig:v2,flat:m2,fllig:y2,fltns:b2,fnof:w2,Fopf:x2,fopf:_2,forall:S2,ForAll:k2,fork:C2,forkv:T2,Fouriertrf:L2,fpartint:E2,frac12:A2,frac13:M2,frac14:N2,frac15:P2,frac16:O2,frac18:$2,frac23:D2,frac25:R2,frac34:z2,frac35:I2,frac38:F2,frac45:q2,frac56:H2,frac58:B2,frac78:W2,frasl:U2,frown:j2,fscr:G2,Fscr:V2,gacute:K2,Gamma:X2,gamma:Y2,Gammad:J2,gammad:Z2,gap:Q2,Gbreve:tz,gbreve:ez,Gcedil:nz,Gcirc:rz,gcirc:iz,Gcy:oz,gcy:sz,Gdot:lz,gdot:az,ge:cz,gE:uz,gEl:fz,gel:hz,geq:dz,geqq:pz,geqslant:gz,gescc:vz,ges:mz,gesdot:yz,gesdoto:bz,gesdotol:wz,gesl:xz,gesles:_z,Gfr:Sz,gfr:kz,gg:Cz,Gg:Tz,ggg:Lz,gimel:Ez,GJcy:Az,gjcy:Mz,gla:Nz,gl:Pz,glE:Oz,glj:$z,gnap:Dz,gnapprox:Rz,gne:zz,gnE:Iz,gneq:Fz,gneqq:qz,gnsim:Hz,Gopf:Bz,gopf:Wz,grave:Uz,GreaterEqual:jz,GreaterEqualLess:Gz,GreaterFullEqual:Vz,GreaterGreater:Kz,GreaterLess:Xz,GreaterSlantEqual:Yz,GreaterTilde:Jz,Gscr:Zz,gscr:Qz,gsim:tI,gsime:eI,gsiml:nI,gtcc:rI,gtcir:iI,gt:oI,GT:sI,Gt:lI,gtdot:aI,gtlPar:cI,gtquest:uI,gtrapprox:fI,gtrarr:hI,gtrdot:dI,gtreqless:pI,gtreqqless:gI,gtrless:vI,gtrsim:mI,gvertneqq:yI,gvnE:bI,Hacek:wI,hairsp:xI,half:_I,hamilt:SI,HARDcy:kI,hardcy:CI,harrcir:TI,harr:LI,hArr:EI,harrw:AI,Hat:MI,hbar:NI,Hcirc:PI,hcirc:OI,hearts:$I,heartsuit:DI,hellip:RI,hercon:zI,hfr:II,Hfr:FI,HilbertSpace:qI,hksearow:HI,hkswarow:BI,hoarr:WI,homtht:UI,hookleftarrow:jI,hookrightarrow:GI,hopf:VI,Hopf:KI,horbar:XI,HorizontalLine:YI,hscr:JI,Hscr:ZI,hslash:QI,Hstrok:tF,hstrok:eF,HumpDownHump:nF,HumpEqual:rF,hybull:iF,hyphen:oF,Iacute:sF,iacute:lF,ic:aF,Icirc:cF,icirc:uF,Icy:fF,icy:hF,Idot:dF,IEcy:pF,iecy:gF,iexcl:vF,iff:mF,ifr:yF,Ifr:bF,Igrave:wF,igrave:xF,ii:_F,iiiint:SF,iiint:kF,iinfin:CF,iiota:TF,IJlig:LF,ijlig:EF,Imacr:AF,imacr:MF,image:NF,ImaginaryI:PF,imagline:OF,imagpart:$F,imath:DF,Im:RF,imof:zF,imped:IF,Implies:FF,incare:qF,in:"∈",infin:HF,infintie:BF,inodot:WF,intcal:UF,int:jF,Int:GF,integers:VF,Integral:KF,intercal:XF,Intersection:YF,intlarhk:JF,intprod:ZF,InvisibleComma:QF,InvisibleTimes:tq,IOcy:eq,iocy:nq,Iogon:rq,iogon:iq,Iopf:oq,iopf:sq,Iota:lq,iota:aq,iprod:cq,iquest:uq,iscr:fq,Iscr:hq,isin:dq,isindot:pq,isinE:gq,isins:vq,isinsv:mq,isinv:yq,it:bq,Itilde:wq,itilde:xq,Iukcy:_q,iukcy:Sq,Iuml:kq,iuml:Cq,Jcirc:Tq,jcirc:Lq,Jcy:Eq,jcy:Aq,Jfr:Mq,jfr:Nq,jmath:Pq,Jopf:Oq,jopf:$q,Jscr:Dq,jscr:Rq,Jsercy:zq,jsercy:Iq,Jukcy:Fq,jukcy:qq,Kappa:Hq,kappa:Bq,kappav:Wq,Kcedil:Uq,kcedil:jq,Kcy:Gq,kcy:Vq,Kfr:Kq,kfr:Xq,kgreen:Yq,KHcy:Jq,khcy:Zq,KJcy:Qq,kjcy:tH,Kopf:eH,kopf:nH,Kscr:rH,kscr:iH,lAarr:oH,Lacute:sH,lacute:lH,laemptyv:aH,lagran:cH,Lambda:uH,lambda:fH,lang:hH,Lang:dH,langd:pH,langle:gH,lap:vH,Laplacetrf:mH,laquo:yH,larrb:bH,larrbfs:wH,larr:xH,Larr:_H,lArr:SH,larrfs:kH,larrhk:CH,larrlp:TH,larrpl:LH,larrsim:EH,larrtl:AH,latail:MH,lAtail:NH,lat:PH,late:OH,lates:$H,lbarr:DH,lBarr:RH,lbbrk:zH,lbrace:IH,lbrack:FH,lbrke:qH,lbrksld:HH,lbrkslu:BH,Lcaron:WH,lcaron:UH,Lcedil:jH,lcedil:GH,lceil:VH,lcub:KH,Lcy:XH,lcy:YH,ldca:JH,ldquo:ZH,ldquor:QH,ldrdhar:tB,ldrushar:eB,ldsh:nB,le:rB,lE:iB,LeftAngleBracket:oB,LeftArrowBar:sB,leftarrow:lB,LeftArrow:aB,Leftarrow:cB,LeftArrowRightArrow:uB,leftarrowtail:fB,LeftCeiling:hB,LeftDoubleBracket:dB,LeftDownTeeVector:pB,LeftDownVectorBar:gB,LeftDownVector:vB,LeftFloor:mB,leftharpoondown:yB,leftharpoonup:bB,leftleftarrows:wB,leftrightarrow:xB,LeftRightArrow:_B,Leftrightarrow:SB,leftrightarrows:kB,leftrightharpoons:CB,leftrightsquigarrow:TB,LeftRightVector:LB,LeftTeeArrow:EB,LeftTee:AB,LeftTeeVector:MB,leftthreetimes:NB,LeftTriangleBar:PB,LeftTriangle:OB,LeftTriangleEqual:$B,LeftUpDownVector:DB,LeftUpTeeVector:RB,LeftUpVectorBar:zB,LeftUpVector:IB,LeftVectorBar:FB,LeftVector:qB,lEg:HB,leg:BB,leq:WB,leqq:UB,leqslant:jB,lescc:GB,les:VB,lesdot:KB,lesdoto:XB,lesdotor:YB,lesg:JB,lesges:ZB,lessapprox:QB,lessdot:t3,lesseqgtr:e3,lesseqqgtr:n3,LessEqualGreater:r3,LessFullEqual:i3,LessGreater:o3,lessgtr:s3,LessLess:l3,lesssim:a3,LessSlantEqual:c3,LessTilde:u3,lfisht:f3,lfloor:h3,Lfr:d3,lfr:p3,lg:g3,lgE:v3,lHar:m3,lhard:y3,lharu:b3,lharul:w3,lhblk:x3,LJcy:_3,ljcy:S3,llarr:k3,ll:C3,Ll:T3,llcorner:L3,Lleftarrow:E3,llhard:A3,lltri:M3,Lmidot:N3,lmidot:P3,lmoustache:O3,lmoust:$3,lnap:D3,lnapprox:R3,lne:z3,lnE:I3,lneq:F3,lneqq:q3,lnsim:H3,loang:B3,loarr:W3,lobrk:U3,longleftarrow:j3,LongLeftArrow:G3,Longleftarrow:V3,longleftrightarrow:K3,LongLeftRightArrow:X3,Longleftrightarrow:Y3,longmapsto:J3,longrightarrow:Z3,LongRightArrow:Q3,Longrightarrow:t5,looparrowleft:e5,looparrowright:n5,lopar:r5,Lopf:i5,lopf:o5,loplus:s5,lotimes:l5,lowast:a5,lowbar:c5,LowerLeftArrow:u5,LowerRightArrow:f5,loz:h5,lozenge:d5,lozf:p5,lpar:g5,lparlt:v5,lrarr:m5,lrcorner:y5,lrhar:b5,lrhard:w5,lrm:x5,lrtri:_5,lsaquo:S5,lscr:k5,Lscr:C5,lsh:T5,Lsh:L5,lsim:E5,lsime:A5,lsimg:M5,lsqb:N5,lsquo:P5,lsquor:O5,Lstrok:$5,lstrok:D5,ltcc:R5,ltcir:z5,lt:I5,LT:F5,Lt:q5,ltdot:H5,lthree:B5,ltimes:W5,ltlarr:U5,ltquest:j5,ltri:G5,ltrie:V5,ltrif:K5,ltrPar:X5,lurdshar:Y5,luruhar:J5,lvertneqq:Z5,lvnE:Q5,macr:tW,male:eW,malt:nW,maltese:rW,Map:"⤅",map:iW,mapsto:oW,mapstodown:sW,mapstoleft:lW,mapstoup:aW,marker:cW,mcomma:uW,Mcy:fW,mcy:hW,mdash:dW,mDDot:pW,measuredangle:gW,MediumSpace:vW,Mellintrf:mW,Mfr:yW,mfr:bW,mho:wW,micro:xW,midast:_W,midcir:SW,mid:kW,middot:CW,minusb:TW,minus:LW,minusd:EW,minusdu:AW,MinusPlus:MW,mlcp:NW,mldr:PW,mnplus:OW,models:$W,Mopf:DW,mopf:RW,mp:zW,mscr:IW,Mscr:FW,mstpos:qW,Mu:HW,mu:BW,multimap:WW,mumap:UW,nabla:jW,Nacute:GW,nacute:VW,nang:KW,nap:XW,napE:YW,napid:JW,napos:ZW,napprox:QW,natural:tU,naturals:eU,natur:nU,nbsp:rU,nbump:iU,nbumpe:oU,ncap:sU,Ncaron:lU,ncaron:aU,Ncedil:cU,ncedil:uU,ncong:fU,ncongdot:hU,ncup:dU,Ncy:pU,ncy:gU,ndash:vU,nearhk:mU,nearr:yU,neArr:bU,nearrow:wU,ne:xU,nedot:_U,NegativeMediumSpace:SU,NegativeThickSpace:kU,NegativeThinSpace:CU,NegativeVeryThinSpace:TU,nequiv:LU,nesear:EU,nesim:AU,NestedGreaterGreater:MU,NestedLessLess:NU,NewLine:PU,nexist:OU,nexists:$U,Nfr:DU,nfr:RU,ngE:zU,nge:IU,ngeq:FU,ngeqq:qU,ngeqslant:HU,nges:BU,nGg:WU,ngsim:UU,nGt:jU,ngt:GU,ngtr:VU,nGtv:KU,nharr:XU,nhArr:YU,nhpar:JU,ni:ZU,nis:QU,nisd:t8,niv:e8,NJcy:n8,njcy:r8,nlarr:i8,nlArr:o8,nldr:s8,nlE:l8,nle:a8,nleftarrow:c8,nLeftarrow:u8,nleftrightarrow:f8,nLeftrightarrow:h8,nleq:d8,nleqq:p8,nleqslant:g8,nles:v8,nless:m8,nLl:y8,nlsim:b8,nLt:w8,nlt:x8,nltri:_8,nltrie:S8,nLtv:k8,nmid:C8,NoBreak:T8,NonBreakingSpace:L8,nopf:E8,Nopf:A8,Not:M8,not:N8,NotCongruent:P8,NotCupCap:O8,NotDoubleVerticalBar:$8,NotElement:D8,NotEqual:R8,NotEqualTilde:z8,NotExists:I8,NotGreater:F8,NotGreaterEqual:q8,NotGreaterFullEqual:H8,NotGreaterGreater:B8,NotGreaterLess:W8,NotGreaterSlantEqual:U8,NotGreaterTilde:j8,NotHumpDownHump:G8,NotHumpEqual:V8,notin:K8,notindot:X8,notinE:Y8,notinva:J8,notinvb:Z8,notinvc:Q8,NotLeftTriangleBar:t4,NotLeftTriangle:e4,NotLeftTriangleEqual:n4,NotLess:r4,NotLessEqual:i4,NotLessGreater:o4,NotLessLess:s4,NotLessSlantEqual:l4,NotLessTilde:a4,NotNestedGreaterGreater:c4,NotNestedLessLess:u4,notni:f4,notniva:h4,notnivb:d4,notnivc:p4,NotPrecedes:g4,NotPrecedesEqual:v4,NotPrecedesSlantEqual:m4,NotReverseElement:y4,NotRightTriangleBar:b4,NotRightTriangle:w4,NotRightTriangleEqual:x4,NotSquareSubset:_4,NotSquareSubsetEqual:S4,NotSquareSuperset:k4,NotSquareSupersetEqual:C4,NotSubset:T4,NotSubsetEqual:L4,NotSucceeds:E4,NotSucceedsEqual:A4,NotSucceedsSlantEqual:M4,NotSucceedsTilde:N4,NotSuperset:P4,NotSupersetEqual:O4,NotTilde:$4,NotTildeEqual:D4,NotTildeFullEqual:R4,NotTildeTilde:z4,NotVerticalBar:I4,nparallel:F4,npar:q4,nparsl:H4,npart:B4,npolint:W4,npr:U4,nprcue:j4,nprec:G4,npreceq:V4,npre:K4,nrarrc:X4,nrarr:Y4,nrArr:J4,nrarrw:Z4,nrightarrow:Q4,nRightarrow:t6,nrtri:e6,nrtrie:n6,nsc:r6,nsccue:i6,nsce:o6,Nscr:s6,nscr:l6,nshortmid:a6,nshortparallel:c6,nsim:u6,nsime:f6,nsimeq:h6,nsmid:d6,nspar:p6,nsqsube:g6,nsqsupe:v6,nsub:m6,nsubE:y6,nsube:b6,nsubset:w6,nsubseteq:x6,nsubseteqq:_6,nsucc:S6,nsucceq:k6,nsup:C6,nsupE:T6,nsupe:L6,nsupset:E6,nsupseteq:A6,nsupseteqq:M6,ntgl:N6,Ntilde:P6,ntilde:O6,ntlg:$6,ntriangleleft:D6,ntrianglelefteq:R6,ntriangleright:z6,ntrianglerighteq:I6,Nu:F6,nu:q6,num:H6,numero:B6,numsp:W6,nvap:U6,nvdash:j6,nvDash:G6,nVdash:V6,nVDash:K6,nvge:X6,nvgt:Y6,nvHarr:J6,nvinfin:Z6,nvlArr:Q6,nvle:tj,nvlt:ej,nvltrie:nj,nvrArr:rj,nvrtrie:ij,nvsim:oj,nwarhk:sj,nwarr:lj,nwArr:aj,nwarrow:cj,nwnear:uj,Oacute:fj,oacute:hj,oast:dj,Ocirc:pj,ocirc:gj,ocir:vj,Ocy:mj,ocy:yj,odash:bj,Odblac:wj,odblac:xj,odiv:_j,odot:Sj,odsold:kj,OElig:Cj,oelig:Tj,ofcir:Lj,Ofr:Ej,ofr:Aj,ogon:Mj,Ograve:Nj,ograve:Pj,ogt:Oj,ohbar:$j,ohm:Dj,oint:Rj,olarr:zj,olcir:Ij,olcross:Fj,oline:qj,olt:Hj,Omacr:Bj,omacr:Wj,Omega:Uj,omega:jj,Omicron:Gj,omicron:Vj,omid:Kj,ominus:Xj,Oopf:Yj,oopf:Jj,opar:Zj,OpenCurlyDoubleQuote:Qj,OpenCurlyQuote:t9,operp:e9,oplus:n9,orarr:r9,Or:i9,or:o9,ord:s9,order:l9,orderof:a9,ordf:c9,ordm:u9,origof:f9,oror:h9,orslope:d9,orv:p9,oS:g9,Oscr:v9,oscr:m9,Oslash:y9,oslash:b9,osol:w9,Otilde:x9,otilde:_9,otimesas:S9,Otimes:k9,otimes:C9,Ouml:T9,ouml:L9,ovbar:E9,OverBar:A9,OverBrace:M9,OverBracket:N9,OverParenthesis:P9,para:O9,parallel:$9,par:D9,parsim:R9,parsl:z9,part:I9,PartialD:F9,Pcy:q9,pcy:H9,percnt:B9,period:W9,permil:U9,perp:j9,pertenk:G9,Pfr:V9,pfr:K9,Phi:X9,phi:Y9,phiv:J9,phmmat:Z9,phone:Q9,Pi:tG,pi:eG,pitchfork:nG,piv:rG,planck:iG,planckh:oG,plankv:sG,plusacir:lG,plusb:aG,pluscir:cG,plus:uG,plusdo:fG,plusdu:hG,pluse:dG,PlusMinus:pG,plusmn:gG,plussim:vG,plustwo:mG,pm:yG,Poincareplane:bG,pointint:wG,popf:xG,Popf:_G,pound:SG,prap:kG,Pr:CG,pr:TG,prcue:LG,precapprox:EG,prec:AG,preccurlyeq:MG,Precedes:NG,PrecedesEqual:PG,PrecedesSlantEqual:OG,PrecedesTilde:$G,preceq:DG,precnapprox:RG,precneqq:zG,precnsim:IG,pre:FG,prE:qG,precsim:HG,prime:BG,Prime:WG,primes:UG,prnap:jG,prnE:GG,prnsim:VG,prod:KG,Product:XG,profalar:YG,profline:JG,profsurf:ZG,prop:QG,Proportional:tV,Proportion:eV,propto:nV,prsim:rV,prurel:iV,Pscr:oV,pscr:sV,Psi:lV,psi:aV,puncsp:cV,Qfr:uV,qfr:fV,qint:hV,qopf:dV,Qopf:pV,qprime:gV,Qscr:vV,qscr:mV,quaternions:yV,quatint:bV,quest:wV,questeq:xV,quot:_V,QUOT:SV,rAarr:kV,race:CV,Racute:TV,racute:LV,radic:EV,raemptyv:AV,rang:MV,Rang:NV,rangd:PV,range:OV,rangle:$V,raquo:DV,rarrap:RV,rarrb:zV,rarrbfs:IV,rarrc:FV,rarr:qV,Rarr:HV,rArr:BV,rarrfs:WV,rarrhk:UV,rarrlp:jV,rarrpl:GV,rarrsim:VV,Rarrtl:KV,rarrtl:XV,rarrw:YV,ratail:JV,rAtail:ZV,ratio:QV,rationals:t7,rbarr:e7,rBarr:n7,RBarr:r7,rbbrk:i7,rbrace:o7,rbrack:s7,rbrke:l7,rbrksld:a7,rbrkslu:c7,Rcaron:u7,rcaron:f7,Rcedil:h7,rcedil:d7,rceil:p7,rcub:g7,Rcy:v7,rcy:m7,rdca:y7,rdldhar:b7,rdquo:w7,rdquor:x7,rdsh:_7,real:S7,realine:k7,realpart:C7,reals:T7,Re:L7,rect:E7,reg:A7,REG:M7,ReverseElement:N7,ReverseEquilibrium:P7,ReverseUpEquilibrium:O7,rfisht:$7,rfloor:D7,rfr:R7,Rfr:z7,rHar:I7,rhard:F7,rharu:q7,rharul:H7,Rho:B7,rho:W7,rhov:U7,RightAngleBracket:j7,RightArrowBar:G7,rightarrow:V7,RightArrow:K7,Rightarrow:X7,RightArrowLeftArrow:Y7,rightarrowtail:J7,RightCeiling:Z7,RightDoubleBracket:Q7,RightDownTeeVector:tK,RightDownVectorBar:eK,RightDownVector:nK,RightFloor:rK,rightharpoondown:iK,rightharpoonup:oK,rightleftarrows:sK,rightleftharpoons:lK,rightrightarrows:aK,rightsquigarrow:cK,RightTeeArrow:uK,RightTee:fK,RightTeeVector:hK,rightthreetimes:dK,RightTriangleBar:pK,RightTriangle:gK,RightTriangleEqual:vK,RightUpDownVector:mK,RightUpTeeVector:yK,RightUpVectorBar:bK,RightUpVector:wK,RightVectorBar:xK,RightVector:_K,ring:SK,risingdotseq:kK,rlarr:CK,rlhar:TK,rlm:LK,rmoustache:EK,rmoust:AK,rnmid:MK,roang:NK,roarr:PK,robrk:OK,ropar:$K,ropf:DK,Ropf:RK,roplus:zK,rotimes:IK,RoundImplies:FK,rpar:qK,rpargt:HK,rppolint:BK,rrarr:WK,Rrightarrow:UK,rsaquo:jK,rscr:GK,Rscr:VK,rsh:KK,Rsh:XK,rsqb:YK,rsquo:JK,rsquor:ZK,rthree:QK,rtimes:tX,rtri:eX,rtrie:nX,rtrif:rX,rtriltri:iX,RuleDelayed:oX,ruluhar:sX,rx:lX,Sacute:aX,sacute:cX,sbquo:uX,scap:fX,Scaron:hX,scaron:dX,Sc:pX,sc:gX,sccue:vX,sce:mX,scE:yX,Scedil:bX,scedil:wX,Scirc:xX,scirc:_X,scnap:SX,scnE:kX,scnsim:CX,scpolint:TX,scsim:LX,Scy:EX,scy:AX,sdotb:MX,sdot:NX,sdote:PX,searhk:OX,searr:$X,seArr:DX,searrow:RX,sect:zX,semi:IX,seswar:FX,setminus:qX,setmn:HX,sext:BX,Sfr:WX,sfr:UX,sfrown:jX,sharp:GX,SHCHcy:VX,shchcy:KX,SHcy:XX,shcy:YX,ShortDownArrow:JX,ShortLeftArrow:ZX,shortmid:QX,shortparallel:tY,ShortRightArrow:eY,ShortUpArrow:nY,shy:rY,Sigma:iY,sigma:oY,sigmaf:sY,sigmav:lY,sim:aY,simdot:cY,sime:uY,simeq:fY,simg:hY,simgE:dY,siml:pY,simlE:gY,simne:vY,simplus:mY,simrarr:yY,slarr:bY,SmallCircle:wY,smallsetminus:xY,smashp:_Y,smeparsl:SY,smid:kY,smile:CY,smt:TY,smte:LY,smtes:EY,SOFTcy:AY,softcy:MY,solbar:NY,solb:PY,sol:OY,Sopf:$Y,sopf:DY,spades:RY,spadesuit:zY,spar:IY,sqcap:FY,sqcaps:qY,sqcup:HY,sqcups:BY,Sqrt:WY,sqsub:UY,sqsube:jY,sqsubset:GY,sqsubseteq:VY,sqsup:KY,sqsupe:XY,sqsupset:YY,sqsupseteq:JY,square:ZY,Square:QY,SquareIntersection:tJ,SquareSubset:eJ,SquareSubsetEqual:nJ,SquareSuperset:rJ,SquareSupersetEqual:iJ,SquareUnion:oJ,squarf:sJ,squ:lJ,squf:aJ,srarr:cJ,Sscr:uJ,sscr:fJ,ssetmn:hJ,ssmile:dJ,sstarf:pJ,Star:gJ,star:vJ,starf:mJ,straightepsilon:yJ,straightphi:bJ,strns:wJ,sub:xJ,Sub:_J,subdot:SJ,subE:kJ,sube:CJ,subedot:TJ,submult:LJ,subnE:EJ,subne:AJ,subplus:MJ,subrarr:NJ,subset:PJ,Subset:OJ,subseteq:$J,subseteqq:DJ,SubsetEqual:RJ,subsetneq:zJ,subsetneqq:IJ,subsim:FJ,subsub:qJ,subsup:HJ,succapprox:BJ,succ:WJ,succcurlyeq:UJ,Succeeds:jJ,SucceedsEqual:GJ,SucceedsSlantEqual:VJ,SucceedsTilde:KJ,succeq:XJ,succnapprox:YJ,succneqq:JJ,succnsim:ZJ,succsim:QJ,SuchThat:tZ,sum:eZ,Sum:nZ,sung:rZ,sup1:iZ,sup2:oZ,sup3:sZ,sup:lZ,Sup:aZ,supdot:cZ,supdsub:uZ,supE:fZ,supe:hZ,supedot:dZ,Superset:pZ,SupersetEqual:gZ,suphsol:vZ,suphsub:mZ,suplarr:yZ,supmult:bZ,supnE:wZ,supne:xZ,supplus:_Z,supset:SZ,Supset:kZ,supseteq:CZ,supseteqq:TZ,supsetneq:LZ,supsetneqq:EZ,supsim:AZ,supsub:MZ,supsup:NZ,swarhk:PZ,swarr:OZ,swArr:$Z,swarrow:DZ,swnwar:RZ,szlig:zZ,Tab:IZ,target:FZ,Tau:qZ,tau:HZ,tbrk:BZ,Tcaron:WZ,tcaron:UZ,Tcedil:jZ,tcedil:GZ,Tcy:VZ,tcy:KZ,tdot:XZ,telrec:YZ,Tfr:JZ,tfr:ZZ,there4:QZ,therefore:tQ,Therefore:eQ,Theta:nQ,theta:rQ,thetasym:iQ,thetav:oQ,thickapprox:sQ,thicksim:lQ,ThickSpace:aQ,ThinSpace:cQ,thinsp:uQ,thkap:fQ,thksim:hQ,THORN:dQ,thorn:pQ,tilde:gQ,Tilde:vQ,TildeEqual:mQ,TildeFullEqual:yQ,TildeTilde:bQ,timesbar:wQ,timesb:xQ,times:_Q,timesd:SQ,tint:kQ,toea:CQ,topbot:TQ,topcir:LQ,top:EQ,Topf:AQ,topf:MQ,topfork:NQ,tosa:PQ,tprime:OQ,trade:$Q,TRADE:DQ,triangle:RQ,triangledown:zQ,triangleleft:IQ,trianglelefteq:FQ,triangleq:qQ,triangleright:HQ,trianglerighteq:BQ,tridot:WQ,trie:UQ,triminus:jQ,TripleDot:GQ,triplus:VQ,trisb:KQ,tritime:XQ,trpezium:YQ,Tscr:JQ,tscr:ZQ,TScy:QQ,tscy:ttt,TSHcy:ett,tshcy:ntt,Tstrok:rtt,tstrok:itt,twixt:ott,twoheadleftarrow:stt,twoheadrightarrow:ltt,Uacute:att,uacute:ctt,uarr:utt,Uarr:ftt,uArr:htt,Uarrocir:dtt,Ubrcy:ptt,ubrcy:gtt,Ubreve:vtt,ubreve:mtt,Ucirc:ytt,ucirc:btt,Ucy:wtt,ucy:xtt,udarr:_tt,Udblac:Stt,udblac:ktt,udhar:Ctt,ufisht:Ttt,Ufr:Ltt,ufr:Ett,Ugrave:Att,ugrave:Mtt,uHar:Ntt,uharl:Ptt,uharr:Ott,uhblk:$tt,ulcorn:Dtt,ulcorner:Rtt,ulcrop:ztt,ultri:Itt,Umacr:Ftt,umacr:qtt,uml:Htt,UnderBar:Btt,UnderBrace:Wtt,UnderBracket:Utt,UnderParenthesis:jtt,Union:Gtt,UnionPlus:Vtt,Uogon:Ktt,uogon:Xtt,Uopf:Ytt,uopf:Jtt,UpArrowBar:Ztt,uparrow:Qtt,UpArrow:tet,Uparrow:eet,UpArrowDownArrow:net,updownarrow:ret,UpDownArrow:iet,Updownarrow:oet,UpEquilibrium:set,upharpoonleft:aet,upharpoonright:cet,uplus:uet,UpperLeftArrow:fet,UpperRightArrow:het,upsi:det,Upsi:pet,upsih:get,Upsilon:vet,upsilon:met,UpTeeArrow:yet,UpTee:bet,upuparrows:wet,urcorn:xet,urcorner:_et,urcrop:ket,Uring:Cet,uring:Tet,urtri:Let,Uscr:Eet,uscr:Aet,utdot:Met,Utilde:Net,utilde:Pet,utri:Oet,utrif:$et,uuarr:Det,Uuml:Ret,uuml:zet,uwangle:Iet,vangrt:Fet,varepsilon:qet,varkappa:Het,varnothing:Bet,varphi:Wet,varpi:Uet,varpropto:jet,varr:Get,vArr:Vet,varrho:Ket,varsigma:Xet,varsubsetneq:Yet,varsubsetneqq:Jet,varsupsetneq:Zet,varsupsetneqq:Qet,vartheta:tnt,vartriangleleft:ent,vartriangleright:nnt,vBar:rnt,Vbar:int,vBarv:ont,Vcy:snt,vcy:lnt,vdash:ant,vDash:cnt,Vdash:unt,VDash:fnt,Vdashl:hnt,veebar:dnt,vee:pnt,Vee:gnt,veeeq:vnt,vellip:mnt,verbar:ynt,Verbar:bnt,vert:wnt,Vert:xnt,VerticalBar:_nt,VerticalLine:Snt,VerticalSeparator:knt,VerticalTilde:Cnt,VeryThinSpace:Tnt,Vfr:Lnt,vfr:Ent,vltri:Ant,vnsub:Mnt,vnsup:Nnt,Vopf:Pnt,vopf:Ont,vprop:$nt,vrtri:Dnt,Vscr:Rnt,vscr:znt,vsubnE:Int,vsubne:Fnt,vsupnE:qnt,vsupne:Hnt,Vvdash:Bnt,vzigzag:Wnt,Wcirc:Unt,wcirc:jnt,wedbar:Gnt,wedge:Vnt,Wedge:Knt,wedgeq:Xnt,weierp:Ynt,Wfr:Jnt,wfr:Znt,Wopf:Qnt,wopf:trt,wp:ert,wr:nrt,wreath:rrt,Wscr:irt,wscr:ort,xcap:srt,xcirc:lrt,xcup:art,xdtri:crt,Xfr:urt,xfr:frt,xharr:hrt,xhArr:drt,Xi:prt,xi:grt,xlarr:vrt,xlArr:mrt,xmap:yrt,xnis:brt,xodot:wrt,Xopf:xrt,xopf:_rt,xoplus:Srt,xotime:krt,xrarr:Crt,xrArr:Trt,Xscr:Lrt,xscr:Ert,xsqcup:Art,xuplus:Mrt,xutri:Nrt,xvee:Prt,xwedge:Ort,Yacute:$rt,yacute:Drt,YAcy:Rrt,yacy:zrt,Ycirc:Irt,ycirc:Frt,Ycy:qrt,ycy:Hrt,yen:Brt,Yfr:Wrt,yfr:Urt,YIcy:jrt,yicy:Grt,Yopf:Vrt,yopf:Krt,Yscr:Xrt,yscr:Yrt,YUcy:Jrt,yucy:Zrt,yuml:Qrt,Yuml:tit,Zacute:eit,zacute:nit,Zcaron:rit,zcaron:iit,Zcy:oit,zcy:sit,Zdot:lit,zdot:ait,zeetrf:cit,ZeroWidthSpace:uit,Zeta:fit,zeta:hit,zfr:dit,Zfr:pit,ZHcy:git,zhcy:vit,zigrarr:mit,zopf:yit,Zopf:bit,Zscr:wit,zscr:xit,zwj:_it,zwnj:Sit},kit="Á",Cit="á",Tit="Â",Lit="â",Eit="´",Ait="Æ",Mit="æ",Nit="À",Pit="à",Oit="&",$it="&",Dit="Å",Rit="å",zit="Ã",Iit="ã",Fit="Ä",qit="ä",Hit="¦",Bit="Ç",Wit="ç",Uit="¸",jit="¢",Git="©",Vit="©",Kit="¤",Xit="°",Yit="÷",Jit="É",Zit="é",Qit="Ê",tot="ê",eot="È",not="è",rot="Ð",iot="ð",oot="Ë",sot="ë",lot="½",aot="¼",cot="¾",uot=">",fot=">",hot="Í",dot="í",pot="Î",got="î",vot="¡",mot="Ì",yot="ì",bot="¿",wot="Ï",xot="ï",_ot="«",Sot="<",kot="<",Cot="¯",Tot="µ",Lot="·",Eot=" ",Aot="¬",Mot="Ñ",Not="ñ",Pot="Ó",Oot="ó",$ot="Ô",Dot="ô",Rot="Ò",zot="ò",Iot="ª",Fot="º",qot="Ø",Hot="ø",Bot="Õ",Wot="õ",Uot="Ö",jot="ö",Got="¶",Vot="±",Kot="£",Xot='"',Yot='"',Jot="»",Zot="®",Qot="®",tst="§",est="­",nst="¹",rst="²",ist="³",ost="ß",sst="Þ",lst="þ",ast="×",cst="Ú",ust="ú",fst="Û",hst="û",dst="Ù",pst="ù",gst="¨",vst="Ü",mst="ü",yst="Ý",bst="ý",wst="¥",xst="ÿ",_st={Aacute:kit,aacute:Cit,Acirc:Tit,acirc:Lit,acute:Eit,AElig:Ait,aelig:Mit,Agrave:Nit,agrave:Pit,amp:Oit,AMP:$it,Aring:Dit,aring:Rit,Atilde:zit,atilde:Iit,Auml:Fit,auml:qit,brvbar:Hit,Ccedil:Bit,ccedil:Wit,cedil:Uit,cent:jit,copy:Git,COPY:Vit,curren:Kit,deg:Xit,divide:Yit,Eacute:Jit,eacute:Zit,Ecirc:Qit,ecirc:tot,Egrave:eot,egrave:not,ETH:rot,eth:iot,Euml:oot,euml:sot,frac12:lot,frac14:aot,frac34:cot,gt:uot,GT:fot,Iacute:hot,iacute:dot,Icirc:pot,icirc:got,iexcl:vot,Igrave:mot,igrave:yot,iquest:bot,Iuml:wot,iuml:xot,laquo:_ot,lt:Sot,LT:kot,macr:Cot,micro:Tot,middot:Lot,nbsp:Eot,not:Aot,Ntilde:Mot,ntilde:Not,Oacute:Pot,oacute:Oot,Ocirc:$ot,ocirc:Dot,Ograve:Rot,ograve:zot,ordf:Iot,ordm:Fot,Oslash:qot,oslash:Hot,Otilde:Bot,otilde:Wot,Ouml:Uot,ouml:jot,para:Got,plusmn:Vot,pound:Kot,quot:Xot,QUOT:Yot,raquo:Jot,reg:Zot,REG:Qot,sect:tst,shy:est,sup1:nst,sup2:rst,sup3:ist,szlig:ost,THORN:sst,thorn:lst,times:ast,Uacute:cst,uacute:ust,Ucirc:fst,ucirc:hst,Ugrave:dst,ugrave:pst,uml:gst,Uuml:vst,uuml:mst,Yacute:yst,yacute:bst,yen:wst,yuml:xst},Sst="&",kst="'",Cst=">",Tst="<",Lst='"',ay={amp:Sst,apos:kst,gt:Cst,lt:Tst,quot:Lst};var vh={};const Est={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 Ast=Yi&&Yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vh,"__esModule",{value:!0});var fv=Ast(Est),Mst=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function Nst(t){return t>=55296&&t<=57343||t>1114111?"�":(t in fv.default&&(t=fv.default[t]),Mst(t))}vh.default=Nst;var xc=Yi&&Yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($r,"__esModule",{value:!0});$r.decodeHTML=$r.decodeHTMLStrict=$r.decodeXML=void 0;var wf=xc(ly),Pst=xc(_st),Ost=xc(ay),hv=xc(vh),$st=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;$r.decodeXML=cy(Ost.default);$r.decodeHTMLStrict=cy(wf.default);function cy(t){var e=uy(t);return function(r){return String(r).replace($st,e)}}var dv=function(t,e){return t<e?1:-1};$r.decodeHTML=function(){for(var t=Object.keys(Pst.default).sort(dv),e=Object.keys(wf.default).sort(dv),r=0,o=0;r<e.length;r++)t[o]===e[r]?(e[r]+=";?",o++):e[r]+=";";var a=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=uy(wf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function uy(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?hv.default(parseInt(r.substr(3),16)):hv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Nn={},fy=Yi&&Yi.__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 Dst=fy(ay),hy=py(Dst.default),dy=gy(hy);Nn.encodeXML=yy(hy);var Rst=fy(ly),mh=py(Rst.default),zst=gy(mh);Nn.encodeHTML=Fst(mh,zst);Nn.encodeNonAsciiHTML=yy(mh);function py(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function gy(t){for(var e=[],r=[],o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];u.length===1?e.push("\\"+u):r.push(u)}e.sort();for(var f=0;f<e.length-1;f++){for(var h=f;h<e.length-1&&e[h].charCodeAt(1)+1===e[h+1].charCodeAt(1);)h+=1;var d=1+h-f;d<3||e.splice(f,d,e[f]+"-"+e[h])}return r.unshift("["+e.join("")+"]"),new RegExp(r.join("|"),"g")}var vy=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Ist=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function _c(t){return"&#x"+(t.length>1?Ist(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Fst(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(vy,_c)}}var my=new RegExp(dy.source+"|"+vy.source,"g");function qst(t){return t.replace(my,_c)}Nn.escape=qst;function Hst(t){return t.replace(dy,_c)}Nn.escapeUTF8=Hst;function yy(t){return function(e){return e.replace(my,function(r){return t[r]||_c(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=$r,r=Nn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function a(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=a;function u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=u;var f=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=$r;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}})})(sy);function Bst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pv(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Wst(t,e,r){return e&&pv(t.prototype,e),r&&pv(t,r),t}function by(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ust(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function Ust(t,e){if(!!t){if(typeof t=="string")return gv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gv(t,e)}}function gv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var jst=sy,vv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Gst()};function Gst(){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 fa(0,5).forEach(function(e){fa(0,5).forEach(function(r){fa(0,5).forEach(function(o){return Vst(e,r,o,t)})})}),fa(0,23).forEach(function(e){var r=e+232,o=wy(e*10+8);t[r]="#"+o+o+o}),t}function Vst(t,e,r,o){var a=16+t*36+e*6+r,u=t>0?t*40+55:0,f=e>0?e*40+55:0,h=r>0?r*40+55:0;o[a]=Kst([u,f,h])}function wy(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function Kst(t){var e=[],r=by(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;e.push(wy(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+e.join("")}function mv(t,e,r,o){var a;return e==="text"?a=Zst(r,o):e==="display"?a=Yst(t,r,o):e==="xterm256Foreground"?a=Ca(t,o.colors[r]):e==="xterm256Background"?a=Ta(t,o.colors[r]):e==="rgb"&&(a=Xst(t,r)),a}function Xst(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),a=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return ka(t,(r===38?"color:#":"background-color:#")+a)}function Yst(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&xy(t)},1:function(){return li(t,"b")},3:function(){return li(t,"i")},4:function(){return li(t,"u")},8:function(){return ka(t,"display:none")},9:function(){return li(t,"strike")},22:function(){return ka(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return bv(t,"i")},24:function(){return bv(t,"u")},39:function(){return Ca(t,r.fg)},49:function(){return Ta(t,r.bg)},53:function(){return ka(t,"text-decoration:overline")}},a;return o[e]?a=o[e]():4<e&&e<7?a=li(t,"blink"):29<e&&e<38?a=Ca(t,r.colors[e-30]):39<e&&e<48?a=Ta(t,r.colors[e-40]):89<e&&e<98?a=Ca(t,r.colors[8+(e-90)]):99<e&&e<108&&(a=Ta(t,r.colors[8+(e-100)])),a}function xy(t){var e=t.slice(0);return t.length=0,e.reverse().map(function(r){return"</"+r+">"}).join("")}function fa(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function Jst(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function yv(t){t=parseInt(t,10);var e=null;return t===0?e="all":t===1?e="bold":2<t&&t<5?e="underline":4<t&&t<7?e="blink":t===8?e="hide":t===9?e="strike":29<t&&t<38||t===39||89<t&&t<98?e="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(e="background-color"),e}function Zst(t,e){return e.escapeXML?jst.encodeXML(t):t}function li(t,e,r){return r||(r=""),t.push(e),"<".concat(e).concat(r?' style="'.concat(r,'"'):"",">")}function ka(t,e){return li(t,"span",e)}function Ca(t,e){return li(t,"span","color:"+e)}function Ta(t,e){return li(t,"span","background-color:"+e)}function bv(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return"</"+e+">"}function Qst(t,e,r){var o=!1,a=3;function u(){return""}function f(G,V){return r("xterm256Foreground",V),""}function h(G,V){return r("xterm256Background",V),""}function d(G){return e.newline?r("display",-1):r("text",G),""}function g(G,V){o=!0,V.trim().length===0&&(V="0"),V=V.trimRight(";").split(";");var rt=by(V),Z;try{for(rt.s();!(Z=rt.n()).done;){var ut=Z.value;r("display",ut)}}catch(vt){rt.e(vt)}finally{rt.f()}return""}function v(G){return r("text",G),""}function b(G){return r("rgb",G),""}var w=[{pattern:/^\x08+/,sub:u},{pattern:/^\x1b\[[012]?K/,sub:u},{pattern:/^\x1b\[\(B/,sub:u},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:b},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function S(G,V){V>a&&o||(o=!1,t=t.replace(G.pattern,G.sub))}var M=[],A=t,E=A.length;t:for(;E>0;){for(var C=0,L=0,$=w.length;L<$;C=++L){var O=w[C];if(S(O,C),t.length!==E){E=t.length;continue t}}if(t.length===E)break;M.push(0),E=t.length}return M}function tlt(t,e,r){return e!=="text"&&(t=t.filter(Jst(yv(r))),t.push({token:e,data:r,category:yv(r)})),t}var elt=function(){function t(e){Bst(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},vv.colors,e.colors)),this.options=Object.assign({},vv,e),this.stack=[],this.stickyStack=[]}return Wst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var a=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var d=mv(a,h.token,h.data,u);d&&f.push(d)}),Qst(r.join(""),u,function(h,d){var g=mv(a,h,d,u);g&&f.push(g),u.stream&&(o.stickyStack=tlt(o.stickyStack,h,d))}),a.length&&f.push(xy(a)),f.join("")}}]),t}(),nlt=elt;function rlt(t,e){return e&&t.endsWith(e)}async function _y(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Sy(t){return new nlt({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const Sc=aT(),ilt=wC(Sc),olt={"h-full":"",class:"scrolls"},slt={key:0,class:"scrolls scrolls-rounded task-error"},llt=["innerHTML"],alt={key:1,class:"scrolls scrolls-rounded task-error"},clt=["onClickPassive"],ult={key:0},flt={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},hlt=le({__name:"ViewReport",props:{file:null},setup(t){const e=t;function r(b,w){var S;return((S=b.result)==null?void 0:S.state)!=="fail"?[]:b.type==="test"||b.type==="benchmark"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(M=>r(M,w+1))]}function o(b){return b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function a(b,w){const S=Sy(b);return w.map(M=>{var E,C;const A=M.result;if(A){const L=A.error;if(L){let $="";L.message.includes("\x1B")&&($=`<b>${L.nameStr||L.name}</b>: ${S.toHtml(o(L.message))}`);const O=(E=L.stackStr)==null?void 0:E.includes("\x1B");(O||((C=L.stack)==null?void 0:C.includes("\x1B")))&&($.length>0?$+=S.toHtml(o(O?L.stackStr:L.stack)):$=`<b>${L.nameStr||L.name}</b>: ${L.message}${S.toHtml(o(O?L.stackStr:L.stack))}`),$.length>0&&(A.htmlError=$)}}return M})}const u=St(()=>{var A;const b=e.file,w=((A=b==null?void 0:b.tasks)==null?void 0:A.flatMap(E=>r(E,0)))??[],S=b==null?void 0:b.result;if(S==null?void 0:S.error){const E={id:b.id,name:b.name,level:0,type:"suite",mode:"run",tasks:[],result:S};w.unshift(E)}return w.length>0?a(Sc.value,w):w});function f(b){return b.startsWith(vf.value.root)?b.slice(vf.value.root.length):b}function h(b){var w;return((w=b.sourcePos)==null?void 0:w.line)??b.line}function d(b){var w;return((w=b.sourcePos)==null?void 0:w.column)??b.column}function g(b){var w,S;return b&&((w=b==null?void 0:b.error)==null?void 0:w.expected)&&((S=b==null?void 0:b.error)==null?void 0:S.actual)}function v(b){return iL(b.error.actual,b.error.expected,{outputTruncateLength:80})}return(b,w)=>{const S=Qi("tooltip");return at(),At("div",olt,[j(u).length?(at(!0),At(fe,{key:0},ar(j(u),M=>{var A,E,C;return at(),At("div",{key:M.id},[dt("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:kn({"margin-left":`${(A=M.result)!=null&&A.htmlError?.5:2*M.level+.5}rem`})},[fn(Xt(M.name)+" ",1),(E=M.result)!=null&&E.htmlError?(at(),At("div",slt,[dt("pre",{innerHTML:M.result.htmlError},null,8,llt)])):(C=M.result)!=null&&C.error?(at(),At("div",alt,[dt("pre",null,[dt("b",null,Xt(M.result.error.name||M.result.error.nameStr),1),fn(": "+Xt(M.result.error.message),1)]),(at(!0),At(fe,null,ar(M.result.error.stacks,(L,$)=>{var O;return at(),At("div",{key:$,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[dt("pre",null," - "+Xt(f(L.file))+":"+Xt(h(L))+":"+Xt(d(L)),1),j(rlt)(L.file,(O=e.file)==null?void 0:O.name)?pn((at(),At("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:G=>j(_y)(L.file,h(L),d(L))},null,40,clt)),[[S,"Open in Editor",void 0,{bottom:!0}]]):se("",!0)])}),128)),g(M.result)?(at(),At("pre",ult," "+Xt(`
10
+ ${v(M.result)}`)+`
11
+ `,1)):se("",!0)])):se("",!0)],4)])}),128)):(at(),At("div",flt," All tests passed in this file "))])}}});const dlt=Qo(hlt,[["__scopeId","data-v-cb2a9ae6"]]),plt={border:"b base","p-4":""},glt=["innerHTML"],vlt=["textContent"],mlt=le({__name:"ViewConsoleOutputEntry",props:{taskName:null,type:null,time:null,content:null,html:{type:Boolean}},setup(t){const e=t;function r(o){return new Date(o).toLocaleTimeString()}return(o,a)=>(at(),At("div",plt,[dt("div",{"text-xs":"","mb-1":"",class:ve(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Xt(r(e.time))+" | "+Xt(e.taskName)+" | "+Xt(e.type),3),e.html?(at(),At("pre",{key:0,"data-type":"html",innerHTML:e.content},null,8,glt)):(at(),At("pre",{key:1,"data-type":"text",textContent:Xt(e.content)},null,8,vlt))]))}}),ylt={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},blt={key:1,p6:""},wlt=dt("pre",{inline:""},"console.log(foo)",-1),xlt=le({__name:"ViewConsoleOutput",setup(t){const e=St(()=>{const o=ry.value;if(o){const a=Sy(Sc.value);return o.map(({taskId:u,type:f,time:h,content:d})=>{const g=d.trim(),v=a.toHtml(g);return v!==g?{taskId:u,type:f,time:h,html:!0,content:v}:{taskId:u,type:f,time:h,html:!1,content:d}})}});function r(o){const a=o&&Ue.state.idMap.get(o);return a?PT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=mlt;return(f=j(e))!=null&&f.length?(at(),At("div",ylt,[(at(!0),At(fe,null,ar(j(e),({taskId:h,type:d,time:g,html:v,content:b})=>(at(),At("div",{key:h,"font-mono":""},[zt(u,{"task-name":r(h),type:d,time:g,content:b,html:v},null,8,["task-name","type","time","content","html"])]))),128))])):(at(),At("p",blt,[fn(" Log something in your test and it would print here. (e.g. "),wlt,fn(") ")]))}}});var zu={exports:{}},wv;function ts(){return wv||(wv=1,function(t,e){(function(r,o){t.exports=o()})(Yi,function(){var r=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),d=u||f||h,g=d&&(u?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),b=v&&/Qt\/\d+\.\d+/.test(r),w=!h&&/Chrome\/(\d+)/.exec(r),S=w&&+w[1],M=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),L=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),$=/Android/.test(r),O=L||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),G=L||/Mac/.test(o),V=/\bCrOS\b/.test(r),rt=/win/i.test(o),Z=M&&r.match(/Version\/(\d*\.\d*)/);Z&&(Z=Number(Z[1])),Z&&Z>=15&&(M=!1,v=!0);var ut=G&&(b||M&&(Z==null||Z<12.11)),vt=a||d&&g>=9;function kt(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var ft=function(n,i){var l=n.className,s=kt(i).exec(l);if(s){var c=l.slice(s.index+s[0].length);n.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function U(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function z(n,i){return U(n).appendChild(i)}function k(n,i,l,s){var c=document.createElement(n);if(l&&(c.className=l),s&&(c.style.cssText=s),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var p=0;p<i.length;++p)c.appendChild(i[p]);return c}function H(n,i,l,s){var c=k(n,i,l,s);return c.setAttribute("role","presentation"),c}var W;document.createRange?W=function(n,i,l,s){var c=document.createRange();return c.setEnd(s||n,l),c.setStart(n,i),c}:W=function(n,i,l){var s=document.body.createTextRange();try{s.moveToElementText(n.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",i),s};function et(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function wt(n){var i;try{i=n.activeElement}catch{i=n.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Et(n,i){var l=n.className;kt(i).test(l)||(n.className+=(l?" ":"")+i)}function qt(n,i){for(var l=n.split(" "),s=0;s<l.length;s++)l[s]&&!kt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Bt=function(n){n.select()};L?Bt=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(Bt=function(n){try{n.select()}catch{}});function Gt(n){return n.display.wrapper.ownerDocument}function re(n){return Gt(n).defaultView}function Q(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function tt(n,i,l){i||(i={});for(var s in n)n.hasOwnProperty(s)&&(l!==!1||!i.hasOwnProperty(s))&&(i[s]=n[s]);return i}function K(n,i,l,s,c){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var p=s||0,m=c||0;;){var y=n.indexOf(" ",p);if(y<0||y>=i)return m+(i-p);m+=y-p,m+=l-m%l,p=y+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=Q(this.onTimeout,this)};st.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},st.prototype.set=function(n,i){this.f=i;var l=+new Date+n;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=l)};function Ct(n,i){for(var l=0;l<n.length;++l)if(n[l]==i)return l;return-1}var pe=50,Lt={toString:function(){return"CodeMirror.Pass"}},P={scroll:!1},F={origin:"*mouse"},J={origin:"+move"};function nt(n,i,l){for(var s=0,c=0;;){var p=n.indexOf(" ",s);p==-1&&(p=n.length);var m=p-s;if(p==n.length||c+m>=i)return s+Math.min(m,i-c);if(c+=p-s,c+=l-c%l,s=p+1,c>=i)return s}}var ot=[""];function pt(n){for(;ot.length<=n;)ot.push(lt(ot)+" ");return ot[n]}function lt(n){return n[n.length-1]}function gt(n,i){for(var l=[],s=0;s<n.length;s++)l[s]=i(n[s],s);return l}function xt(n,i,l){for(var s=0,c=l(i);s<n.length&&l(n[s])<=c;)s++;n.splice(s,0,i)}function ct(){}function $t(n,i){var l;return Object.create?l=Object.create(n):(ct.prototype=n,l=new ct),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(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Nt.test(n))}function Rt(n,i){return i?i.source.indexOf("\\w")>-1&&Ot(n)?!0:i.test(n):Ot(n)}function jt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Qt=/[\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 Zt(n){return n.charCodeAt(0)>=768&&Qt.test(n)}function ae(n,i,l){for(;(l<0?i>0:i<n.length)&&Zt(n.charAt(i));)i+=l;return i}function Yt(n,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,p=s<0?Math.ceil(c):Math.floor(c);if(p==i)return n(p)?i:l;n(p)?l=p:i=p+s}}function mn(n,i,l,s){if(!n)return s(i,l,"ltr",0);for(var c=!1,p=0;p<n.length;++p){var m=n[p];(m.from<l&&m.to>i||i==l&&m.to==i)&&(s(Math.max(m.from,i),Math.min(m.to,l),m.level==1?"rtl":"ltr",p),c=!0)}c||s(i,l,"ltr")}var Ln=null;function He(n,i,l){var s;Ln=null;for(var c=0;c<n.length;++c){var p=n[c];if(p.from<i&&p.to>i)return c;p.to==i&&(p.from!=p.to&&l=="before"?s=c:Ln=c),p.from==i&&(p.from!=p.to&&l!="before"?s=c:Ln=c)}return s??Ln}var to=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,p=/[LRr]/,m=/[Lb1n]/,y=/[1n]/;function x(_,N,D){this.level=_,this.from=N,this.to=D}return function(_,N){var D=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!s.test(_))return!1;for(var B=_.length,q=[],Y=0;Y<B;++Y)q.push(l(_.charCodeAt(Y)));for(var it=0,ht=D;it<B;++it){var mt=q[it];mt=="m"?q[it]=ht:ht=mt}for(var _t=0,yt=D;_t<B;++_t){var Tt=q[_t];Tt=="1"&&yt=="r"?q[_t]="n":p.test(Tt)&&(yt=Tt,Tt=="r"&&(q[_t]="R"))}for(var Dt=1,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 ge=0;ge<B;++ge){var ze=q[ge];if(ze==",")q[ge]="N";else if(ze=="%"){var _e=void 0;for(_e=ge+1;_e<B&&q[_e]=="%";++_e);for(var wn=ge&&q[ge-1]=="!"||_e<B&&q[_e]=="1"?"1":"N",ln=ge;ln<_e;++ln)q[ln]=wn;ge=_e-1}}for(var Ae=0,an=D;Ae<B;++Ae){var Be=q[Ae];an=="L"&&Be=="1"?q[Ae]="L":p.test(Be)&&(an=Be)}for(var Oe=0;Oe<B;++Oe)if(c.test(q[Oe])){var Me=void 0;for(Me=Oe+1;Me<B&&c.test(q[Me]);++Me);for(var Ce=(Oe?q[Oe-1]:D)=="L",cn=(Me<B?q[Me]:D)=="L",_o=Ce==cn?Ce?"L":"R":D,Qr=Oe;Qr<Me;++Qr)q[Qr]=_o;Oe=Me-1}for(var Ke=[],ir,Ie=0;Ie<B;)if(m.test(q[Ie])){var wu=Ie;for(++Ie;Ie<B&&m.test(q[Ie]);++Ie);Ke.push(new x(0,wu,Ie))}else{var Cr=Ie,Ai=Ke.length,Mi=N=="rtl"?1:0;for(++Ie;Ie<B&&q[Ie]!="L";++Ie);for(var tn=Cr;tn<Ie;)if(y.test(q[tn])){Cr<tn&&(Ke.splice(Ai,0,new x(1,Cr,tn)),Ai+=Mi);var So=tn;for(++tn;tn<Ie&&y.test(q[tn]);++tn);Ke.splice(Ai,0,new x(2,So,tn)),Ai+=Mi,Cr=tn}else++tn;Cr<Ie&&Ke.splice(Ai,0,new x(1,Cr,Ie))}return N=="ltr"&&(Ke[0].level==1&&(ir=_.match(/^\s+/))&&(Ke[0].from=ir[0].length,Ke.unshift(new x(0,0,ir[0].length))),lt(Ke).level==1&&(ir=_.match(/\s+$/))&&(lt(Ke).to-=ir[0].length,Ke.push(new x(0,B-ir[0].length,B)))),N=="rtl"?Ke.reverse():Ke}}();function ye(n,i){var l=n.order;return l==null&&(l=n.order=to(n.text,i)),l}var nn=[],bt=function(n,i,l){if(n.addEventListener)n.addEventListener(i,l,!1);else if(n.attachEvent)n.attachEvent("on"+i,l);else{var s=n._handlers||(n._handlers={});s[i]=(s[i]||nn).concat(l)}};function ns(n,i){return n._handlers&&n._handlers[i]||nn}function je(n,i,l){if(n.removeEventListener)n.removeEventListener(i,l,!1);else if(n.detachEvent)n.detachEvent("on"+i,l);else{var s=n._handlers,c=s&&s[i];if(c){var p=Ct(c,l);p>-1&&(s[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function me(n,i){var l=ns(n,i);if(!!l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function Se(n,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),me(n,l||i.type,n,i),rs(i)||i.codemirrorIgnore}function Sl(n){var i=n._handlers&&n._handlers.cursorActivity;if(!!i)for(var l=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)Ct(l,i[s])==-1&&l.push(i[s])}function Je(n,i){return ns(n,i).length>0}function Ze(n){n.prototype.on=function(i,l){bt(this,i,l)},n.prototype.off=function(i,l){je(this,i,l)}}function Ge(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function wi(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function rs(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vr(n){Ge(n),wi(n)}function rn(n){return n.target||n.srcElement}function is(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),G&&n.ctrlKey&&i==1&&(i=3),i}var Lc=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Dn;function Ec(n){if(Dn==null){var i=k("span","​");z(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Dn=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var l=Dn?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var eo;function kl(n){if(eo!=null)return eo;var i=z(n,document.createTextNode("AخA")),l=W(i,0,1).getBoundingClientRect(),s=W(i,1,2).getBoundingClientRect();return U(n),!l||l.left==l.right?!1:eo=s.right-l.right<3}var os=`
12
+
13
+ b`.split(/\n/).length!=3?function(n){for(var i=0,l=[],s=n.length;i<=s;){var c=n.indexOf(`
14
+ `,i);c==-1&&(c=n.length);var p=n.slice(i,n.charAt(c-1)=="\r"?c-1:c),m=p.indexOf("\r");m!=-1?(l.push(p.slice(0,m)),i+=m+1):(l.push(p),i=c+1)}return l}:function(n){return n.split(/\r\n?|\n/)},Hr=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Zn=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Qn=null;function Cl(n){if(Qn!=null)return Qn;var i=z(n,k("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return Qn=Math.abs(l.left-s.left)>1}var qn={},Br={};function Tl(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),qn[n]=i}function no(n,i){Br[n]=i}function yn(n){if(typeof n=="string"&&Br.hasOwnProperty(n))n=Br[n];else if(n&&typeof n.name=="string"&&Br.hasOwnProperty(n.name)){var i=Br[n.name];typeof i=="string"&&(i={name:i}),n=$t(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return yn("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return yn("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function mr(n,i){i=yn(i);var l=qn[i.name];if(!l)return mr(n,"text/plain");var s=l(n,i);if(Wr.hasOwnProperty(i.name)){var c=Wr[i.name];for(var p in c)!c.hasOwnProperty(p)||(s.hasOwnProperty(p)&&(s["_"+p]=s[p]),s[p]=c[p])}if(s.name=i.name,i.helperType&&(s.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)s[m]=i.modeProps[m];return s}var Wr={};function Ll(n,i){var l=Wr.hasOwnProperty(n)?Wr[n]:Wr[n]={};tt(i,l)}function yr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var l={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function Ur(n,i){for(var l;n.innerMode&&(l=n.innerMode(i),!(!l||l.mode==n));)i=l.state,n=l.mode;return l||{mode:n,state:i}}function ss(n,i,l){return n.startState?n.startState(i,l):!0}var ke=function(n,i,l){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.prototype.eat=function(n){var i=this.string.charAt(this.pos),l;if(typeof n=="string"?l=i==n:l=i&&(n.test?n.test(i):n(i)),l)return++this.pos,i},ke.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},ke.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},ke.prototype.backUp=function(n){this.pos-=n},ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(n,i,l){if(typeof n=="string"){var s=function(m){return l?m.toLowerCase():m},c=this.string.substr(this.pos,n.length);if(s(c)==s(n))return i!==!1&&(this.pos+=n.length),!0}else{var p=this.string.slice(this.pos).match(n);return p&&p.index>0?null:(p&&i!==!1&&(this.pos+=p[0].length),p)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},ke.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},ke.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Mt(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var l=n;!l.lines;)for(var s=0;;++s){var c=l.children[s],p=c.chunkSize();if(i<p){l=c;break}i-=p}return l.lines[i]}function br(n,i,l){var s=[],c=i.line;return n.iter(i.line,l.line+1,function(p){var m=p.text;c==l.line&&(m=m.slice(0,l.ch)),c==i.line&&(m=m.slice(i.ch)),s.push(m),++c}),s}function ro(n,i,l){var s=[];return n.iter(i,l,function(c){s.push(c.text)}),s}function Rn(n,i){var l=i-n.height;if(l)for(var s=n;s;s=s.parent)s.height+=l}function ie(n){if(n.parent==null)return null;for(var i=n.parent,l=Ct(i.lines,n),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)l+=s.children[c].chunkSize();return l+i.first}function tr(n,i){var l=n.first;t:do{for(var s=0;s<n.children.length;++s){var c=n.children[s],p=c.height;if(i<p){n=c;continue t}i-=p,l+=c.chunkSize()}return l}while(!n.lines);for(var m=0;m<n.lines.length;++m){var y=n.lines[m],x=y.height;if(i<x)break;i-=x}return l+m}function T(n,i){return i>=n.first&&i<n.first+n.size}function R(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function I(n,i,l){if(l===void 0&&(l=null),!(this instanceof I))return new I(n,i,l);this.line=n,this.ch=i,this.sticky=l}function X(n,i){return n.line-i.line||n.ch-i.ch}function It(n,i){return n.sticky==i.sticky&&X(n,i)==0}function Vt(n){return I(n.line,n.ch)}function te(n,i){return X(n,i)<0?i:n}function Pe(n,i){return X(n,i)<0?n:i}function En(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ft(n,i){if(i.line<n.first)return I(n.first,0);var l=n.first+n.size-1;return i.line>l?I(l,Mt(n,l).text.length):gb(i,Mt(n,i.line).text.length)}function gb(n,i){var l=n.ch;return l==null||l>i?I(n.line,i):l<0?I(n.line,0):n}function Oh(n,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(n,i[s]);return l}var El=function(n,i){this.state=n,this.lookAhead=i},er=function(n,i,l,s){this.state=i,this.doc=n,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};er.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},er.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},er.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},er.fromSaved=function(n,i,l){return i instanceof El?new er(n,yr(n.mode,i.state),l,i.lookAhead):new er(n,yr(n.mode,i),l)},er.prototype.save=function(n){var i=n!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new El(i,this.maxLookAhead):i};function $h(n,i,l,s){var c=[n.state.modeGen],p={};qh(n,i.text,n.doc.mode,l,function(_,N){return c.push(_,N)},p,s);for(var m=l.state,y=function(_){l.baseTokens=c;var N=n.state.overlays[_],D=1,B=0;l.state=!0,qh(n,i.text,N.mode,l,function(q,Y){for(var it=D;B<q;){var ht=c[D];ht>q&&c.splice(D,1,q,c[D+1],ht),D+=2,B=Math.min(q,ht)}if(!!Y)if(N.opaque)c.splice(it,D-it,q,"overlay "+Y),D=it+2;else for(;it<D;it+=2){var mt=c[it+1];c[it+1]=(mt?mt+" ":"")+"overlay "+Y}},p),l.state=m,l.baseTokens=null,l.baseTokenPos=1},x=0;x<n.state.overlays.length;++x)y(x);return{styles:c,classes:p.bgClass||p.textClass?p:null}}function Dh(n,i,l){if(!i.styles||i.styles[0]!=n.state.modeGen){var s=ls(n,ie(i)),c=i.text.length>n.options.maxHighlightLength&&yr(n.doc.mode,s.state),p=$h(n,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=p.styles,p.classes?i.styleClasses=p.classes:i.styleClasses&&(i.styleClasses=null),l===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ls(n,i,l){var s=n.doc,c=n.display;if(!s.mode.startState)return new er(s,!0,i);var p=vb(n,i,l),m=p>s.first&&Mt(s,p-1).stateAfter,y=m?er.fromSaved(s,m,p):new er(s,ss(s.mode),p);return s.iter(p,i,function(x){Ac(n,x.text,y);var _=y.line;x.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function Ac(n,i,l,s){var c=n.doc.mode,p=new ke(i,n.options.tabSize,l);for(p.start=p.pos=s||0,i==""&&Rh(c,l.state);!p.eol();)Mc(c,p,l.state),p.start=p.pos}function Rh(n,i){if(n.blankLine)return n.blankLine(i);if(!!n.innerMode){var l=Ur(n,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Mc(n,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=Ur(n,l).mode);var p=n.token(i,l);if(i.pos>i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var zh=function(n,i,l){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=l};function Ih(n,i,l,s){var c=n.doc,p=c.mode,m;i=Ft(c,i);var y=Mt(c,i.line),x=ls(n,i.line,l),_=new ke(y.text,n.options.tabSize,x),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Mc(p,_,x.state),s&&N.push(new zh(_,m,yr(c.mode,x.state)));return s?N:new zh(_,m,x.state)}function Fh(n,i){if(n)for(;;){var l=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;n=n.slice(0,l.index)+n.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";i[s]==null?i[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+l[2])}return n}function qh(n,i,l,s,c,p,m){var y=l.flattenSpans;y==null&&(y=n.options.flattenSpans);var x=0,_=null,N=new ke(i,n.options.tabSize,s),D,B=n.options.addModeClass&&[null];for(i==""&&Fh(Rh(l,s.state),p);!N.eol();){if(N.pos>n.options.maxHighlightLength?(y=!1,m&&Ac(n,i,s,N.pos),N.pos=i.length,D=null):D=Fh(Mc(l,N,s.state,B),p),B){var q=B[0].name;q&&(D="m-"+(D?q+" "+D:q))}if(!y||_!=D){for(;x<N.start;)x=Math.min(N.start,x+5e3),c(x,_);_=D}N.start=N.pos}for(;x<N.pos;){var Y=Math.min(N.pos,x+5e3);c(Y,_),x=Y}}function vb(n,i,l){for(var s,c,p=n.doc,m=l?-1:i-(n.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=p.first)return p.first;var x=Mt(p,y-1),_=x.stateAfter;if(_&&(!l||y+(_ instanceof El?_.lookAhead:0)<=p.modeFrontier))return y;var N=K(x.text,null,n.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function mb(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var l=n.first,s=i-1;s>l;s--){var c=Mt(n,s).stateAfter;if(c&&(!(c instanceof El)||s+c.lookAhead<i)){l=s+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,l)}}var Hh=!1,wr=!1;function yb(){Hh=!0}function bb(){wr=!0}function Al(n,i,l){this.marker=n,this.from=i,this.to=l}function as(n,i){if(n)for(var l=0;l<n.length;++l){var s=n[l];if(s.marker==i)return s}}function wb(n,i){for(var l,s=0;s<n.length;++s)n[s]!=i&&(l||(l=[])).push(n[s]);return l}function xb(n,i,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&n.markedSpans&&s.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],s&&s.add(n.markedSpans)),i.marker.attachLine(n)}function _b(n,i,l){var s;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,y=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);if(y||p.from==i&&m.type=="bookmark"&&(!l||!p.marker.insertLeft)){var x=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(s||(s=[])).push(new Al(m,p.from,x?null:p.to))}}return s}function Sb(n,i,l){var s;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,y=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);if(y||p.from==i&&m.type=="bookmark"&&(!l||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(s||(s=[])).push(new Al(m,x?null:p.from-i,p.to==null?null:p.to-i))}}return s}function Nc(n,i){if(i.full)return null;var l=T(n,i.from.line)&&Mt(n,i.from.line).markedSpans,s=T(n,i.to.line)&&Mt(n,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,p=i.to.ch,m=X(i.from,i.to)==0,y=_b(l,c,m),x=Sb(s,p,m),_=i.text.length==1,N=lt(i.text).length+(_?c:0);if(y)for(var D=0;D<y.length;++D){var B=y[D];if(B.to==null){var q=as(x,B.marker);q?_&&(B.to=q.to==null?null:q.to+N):B.to=c}}if(x)for(var Y=0;Y<x.length;++Y){var it=x[Y];if(it.to!=null&&(it.to+=N),it.from==null){var ht=as(y,it.marker);ht||(it.from=N,_&&(y||(y=[])).push(it))}else it.from+=N,_&&(y||(y=[])).push(it)}y&&(y=Bh(y)),x&&x!=y&&(x=Bh(x));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 Al(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(x)}return mt}function Bh(n){for(var i=0;i<n.length;++i){var l=n[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function kb(n,i,l){var s=null;if(n.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var Y=0;Y<q.markedSpans.length;++Y){var it=q.markedSpans[Y].marker;it.readOnly&&(!s||Ct(s,it)==-1)&&(s||(s=[])).push(it)}}),!s)return null;for(var c=[{from:i,to:l}],p=0;p<s.length;++p)for(var m=s[p],y=m.find(0),x=0;x<c.length;++x){var _=c[x];if(!(X(_.to,y.from)<0||X(_.from,y.to)>0)){var N=[x,1],D=X(_.from,y.from),B=X(_.to,y.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:_.from,to:y.from}),(B>0||!m.inclusiveRight&&!B)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),x+=N.length-3}}return c}function Wh(n){var i=n.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(n);n.markedSpans=null}}function Uh(n,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(n);n.markedSpans=i}}function Ml(n){return n.inclusiveLeft?-1:0}function Nl(n){return n.inclusiveRight?1:0}function Pc(n,i){var l=n.lines.length-i.lines.length;if(l!=0)return l;var s=n.find(),c=i.find(),p=X(s.from,c.from)||Ml(n)-Ml(i);if(p)return-p;var m=X(s.to,c.to)||Nl(n)-Nl(i);return m||i.id-n.id}function jh(n,i){var l=wr&&n.markedSpans,s;if(l)for(var c=void 0,p=0;p<l.length;++p)c=l[p],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Pc(s,c.marker)<0)&&(s=c.marker);return s}function Gh(n){return jh(n,!0)}function Pl(n){return jh(n,!1)}function Cb(n,i){var l=wr&&n.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var p=l[c];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!s||Pc(s,p.marker)<0)&&(s=p.marker)}return s}function Vh(n,i,l,s,c){var p=Mt(n,i),m=wr&&p.markedSpans;if(m)for(var y=0;y<m.length;++y){var x=m[y];if(!!x.marker.collapsed){var _=x.marker.find(0),N=X(_.from,l)||Ml(x.marker)-Ml(c),D=X(_.to,s)||Nl(x.marker)-Nl(c);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?X(_.to,l)>=0:X(_.to,l)>0)||N>=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?X(_.from,s)<=0:X(_.from,s)<0)))return!0}}}function Hn(n){for(var i;i=Gh(n);)n=i.find(-1,!0).line;return n}function Tb(n){for(var i;i=Pl(n);)n=i.find(1,!0).line;return n}function Lb(n){for(var i,l;i=Pl(n);)n=i.find(1,!0).line,(l||(l=[])).push(n);return l}function Oc(n,i){var l=Mt(n,i),s=Hn(l);return l==s?i:ie(s)}function Kh(n,i){if(i>n.lastLine())return i;var l=Mt(n,i),s;if(!jr(n,l))return i;for(;s=Pl(l);)l=s.find(1,!0).line;return ie(l)+1}function jr(n,i){var l=wr&&i.markedSpans;if(l){for(var s=void 0,c=0;c<l.length;++c)if(s=l[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&$c(n,i,s))return!0}}}function $c(n,i,l){if(l.to==null){var s=l.marker.find(1,!0);return $c(n,s.line,as(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var c=void 0,p=0;p<i.markedSpans.length;++p)if(c=i.markedSpans[p],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&$c(n,i,c))return!0}function xr(n){n=Hn(n);for(var i=0,l=n.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==n)break;i+=c.height}for(var p=l.parent;p;l=p,p=l.parent)for(var m=0;m<p.children.length;++m){var y=p.children[m];if(y==l)break;i+=y.height}return i}function Ol(n){if(n.height==0)return 0;for(var i=n.text.length,l,s=n;l=Gh(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=n;l=Pl(s);){var p=l.find(0,!0);i-=s.text.length-p.from.ch,s=p.to.line,i+=s.text.length-p.to.ch}return i}function Dc(n){var i=n.display,l=n.doc;i.maxLine=Mt(l,l.first),i.maxLineLength=Ol(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Ol(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var io=function(n,i,l){this.text=n,Uh(this,i),this.height=l?l(this):1};io.prototype.lineNo=function(){return ie(this)},Ze(io);function Eb(n,i,l,s){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Wh(n),Uh(n,l);var c=s?s(n):1;c!=n.height&&Rn(n,c)}function Ab(n){n.parent=null,Wh(n)}var Mb={},Nb={};function Xh(n,i){if(!n||/^\s*$/.test(n))return null;var l=i.addModeClass?Nb:Mb;return l[n]||(l[n]=n.replace(/\S+/g,"cm-$&"))}function Yh(n,i){var l=H("span",null,null,v?"padding-right: .1px":null),s={pre:H("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var p=c?i.rest[c-1]:i.line,m=void 0;s.pos=0,s.addToken=Ob,kl(n.display.measure)&&(m=ye(p,n.doc.direction))&&(s.addToken=Db(s.addToken,m)),s.map=[];var y=i!=n.display.externalMeasured&&ie(p);Rb(p,s,Dh(n,p,y)),p.styleClasses&&(p.styleClasses.bgClass&&(s.bgClass=qt(p.styleClasses.bgClass,s.bgClass||"")),p.styleClasses.textClass&&(s.textClass=qt(p.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Ec(n.display.measure))),c==0?(i.measure.map=s.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(s.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=s.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return me(n,"renderLine",n,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function Pb(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Ob(n,i,l,s,c,p,m){if(!!i){var y=n.splitSpaces?$b(i,n.trailingSpace):i,x=n.cm.state.specialChars,_=!1,N;if(!x.test(i))n.col+=i.length,N=document.createTextNode(y),n.map.push(n.pos,n.pos+i.length,N),d&&g<9&&(_=!0),n.pos+=i.length;else{N=document.createDocumentFragment();for(var D=0;;){x.lastIndex=D;var B=x.exec(i),q=B?B.index-D:i.length-D;if(q){var Y=document.createTextNode(y.slice(D,D+q));d&&g<9?N.appendChild(k("span",[Y])):N.appendChild(Y),n.map.push(n.pos,n.pos+q,Y),n.col+=q,n.pos+=q}if(!B)break;D+=q+1;var it=void 0;if(B[0]==" "){var ht=n.cm.options.tabSize,mt=ht-n.col%ht;it=N.appendChild(k("span",pt(mt),"cm-tab")),it.setAttribute("role","presentation"),it.setAttribute("cm-text"," "),n.col+=mt}else B[0]=="\r"||B[0]==`
15
+ `?(it=N.appendChild(k("span",B[0]=="\r"?"␍":"␤","cm-invalidchar")),it.setAttribute("cm-text",B[0]),n.col+=1):(it=n.cm.options.specialCharPlaceholder(B[0]),it.setAttribute("cm-text",B[0]),d&&g<9?N.appendChild(k("span",[it])):N.appendChild(it),n.col+=1);n.map.push(n.pos,n.pos+1,it),n.pos++}}if(n.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||p||m){var _t=l||"";s&&(_t+=s),c&&(_t+=c);var yt=k("span",[N],_t,p);if(m)for(var Tt in m)m.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&&yt.setAttribute(Tt,m[Tt]);return n.content.appendChild(yt)}n.content.appendChild(N)}}function $b(n,i){if(n.length>1&&!/ /.test(n))return n;for(var l=i,s="",c=0;c<n.length;c++){var p=n.charAt(c);p==" "&&l&&(c==n.length-1||n.charCodeAt(c+1)==32)&&(p=" "),s+=p,l=p==" "}return s}function Db(n,i){return function(l,s,c,p,m,y,x){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var D=void 0,B=0;B<i.length&&(D=i[B],!(D.to>_&&D.from<=_));B++);if(D.to>=N)return n(l,s,c,p,m,y,x);n(l,s.slice(0,D.to-_),c,p,null,y,x),p=null,s=s.slice(D.to-_),_=D.to}}}function Jh(n,i,l,s){var c=!s&&l.widgetNode;c&&n.map.push(n.pos,n.pos+i,c),!s&&n.cm.display.input.needsContentAttribute&&(c||(c=n.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",l.id)),c&&(n.cm.display.input.setUneditable(c),n.content.appendChild(c)),n.pos+=i,n.trailingSpace=!1}function Rb(n,i,l){var s=n.markedSpans,c=n.text,p=0;if(!s){for(var m=1;m<l.length;m+=2)i.addToken(i,c.slice(p,p=l[m]),Xh(l[m+1],i.cm.options));return}for(var y=c.length,x=0,_=1,N="",D,B,q=0,Y,it,ht,mt,_t;;){if(q==x){Y=it=ht=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==x&&Ut.widgetNode)yt.push(Ut);else if(Pt.from<=x&&(Pt.to==null||Pt.to>x||Ut.collapsed&&Pt.to==x&&Pt.from==x)){if(Pt.to!=null&&Pt.to!=x&&q>Pt.to&&(q=Pt.to,it=""),Ut.className&&(Y+=" "+Ut.className),Ut.css&&(B=(B?B+";":"")+Ut.css),Ut.startStyle&&Pt.from==x&&(ht+=" "+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 ge in Ut.attributes)(_t||(_t={}))[ge]=Ut.attributes[ge];Ut.collapsed&&(!mt||Pc(mt.marker,Ut)<0)&&(mt=Pt)}else Pt.from>x&&q>Pt.from&&(q=Pt.from)}if(Tt)for(var ze=0;ze<Tt.length;ze+=2)Tt[ze+1]==q&&(it+=" "+Tt[ze]);if(!mt||mt.from==x)for(var _e=0;_e<yt.length;++_e)Jh(i,0,yt[_e]);if(mt&&(mt.from||0)==x){if(Jh(i,(mt.to==null?y+1:mt.to)-x,mt.marker,mt.from==null),mt.to==null)return;mt.to==x&&(mt=!1)}}if(x>=y)break;for(var wn=Math.min(y,q);;){if(N){var ln=x+N.length;if(!mt){var Ae=ln>wn?N.slice(0,wn-x):N;i.addToken(i,Ae,D?D+Y:Y,ht,x+Ae.length==q?it:"",B,_t)}if(ln>=wn){N=N.slice(wn-x),x=wn;break}x=ln,ht=""}N=c.slice(p,p=l[_++]),D=Xh(l[_++],i.cm.options)}}}function Zh(n,i,l){this.line=i,this.rest=Lb(i),this.size=this.rest?ie(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=jr(n,i)}function $l(n,i,l){for(var s=[],c,p=i;p<l;p=c){var m=new Zh(n.doc,Mt(n.doc,p),p);c=p+m.size,s.push(m)}return s}var oo=null;function zb(n){oo?oo.ops.push(n):n.ownsGroup=oo={ops:[n],delayedCallbacks:[]}}function Ib(n){var i=n.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].call(null);for(var s=0;s<n.ops.length;s++){var c=n.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(l<i.length)}function Fb(n,i){var l=n.ownsGroup;if(!!l)try{Ib(l)}finally{oo=null,i(l)}}var cs=null;function $e(n,i){var l=ns(n,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;oo?c=oo.delayedCallbacks:cs?c=cs:(c=cs=[],setTimeout(qb,0));for(var p=function(y){c.push(function(){return l[y].apply(null,s)})},m=0;m<l.length;++m)p(m)}}function qb(){var n=cs;cs=null;for(var i=0;i<n.length;++i)n[i]()}function Qh(n,i,l,s){for(var c=0;c<i.changes.length;c++){var p=i.changes[c];p=="text"?Bb(n,i):p=="gutter"?ed(n,i,l,s):p=="class"?Rc(n,i):p=="widget"&&Wb(n,i,s)}i.changes=null}function us(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),d&&g<8&&(n.node.style.zIndex=2)),n.node}function Hb(n,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var s=us(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),n.display.input.setUneditable(i.background)}}function td(n,i){var l=n.display.externalMeasured;return l&&l.line==i.line?(n.display.externalMeasured=null,i.measure=l.measure,l.built):Yh(n,i)}function Bb(n,i){var l=i.text.className,s=td(n,i);i.text==i.node&&(i.node=s.pre),i.text.parentNode.replaceChild(s.pre,i.text),i.text=s.pre,s.bgClass!=i.bgClass||s.textClass!=i.textClass?(i.bgClass=s.bgClass,i.textClass=s.textClass,Rc(n,i)):l&&(i.text.className=l)}function Rc(n,i){Hb(n,i),i.line.wrapClass?us(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 ed(n,i,l,s){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=us(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var p=i.line.gutterMarkers;if(n.options.lineNumbers||p){var m=us(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),n.display.input.setUneditable(y),m.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",R(n.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),p)for(var x=0;x<n.display.gutterSpecs.length;++x){var _=n.display.gutterSpecs[x].className,N=p.hasOwnProperty(_)&&p[_];N&&y.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function Wb(n,i,l){i.alignable&&(i.alignable=null);for(var s=kt("CodeMirror-linewidget"),c=i.node.firstChild,p=void 0;c;c=p)p=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);nd(n,i,l)}function Ub(n,i,l,s){var c=td(n,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Rc(n,i),ed(n,i,l,s),nd(n,i,s),i.node}function nd(n,i,l){if(rd(n,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)rd(n,i.rest[s],i,l,!1)}function rd(n,i,l,s,c){if(!!i.widgets)for(var p=us(l),m=0,y=i.widgets;m<y.length;++m){var x=y[m],_=k("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),jb(x,_,l,s),n.display.input.setUneditable(_),c&&x.above?p.insertBefore(_,l.gutter||l.text):p.appendChild(_),$e(x,"redraw")}}function jb(n,i,l,s){if(n.noHScroll){(l.alignable||(l.alignable=[])).push(i);var c=s.wrapperWidth;i.style.left=s.fixedPos+"px",n.coverGutter||(c-=s.gutterTotalWidth,i.style.paddingLeft=s.gutterTotalWidth+"px"),i.style.width=c+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-s.gutterTotalWidth+"px"))}function fs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!et(document.body,n.node)){var l="position: relative;";n.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),z(i.display.measure,k("div",[n.node],null,l))}return n.height=n.node.parentNode.offsetHeight}function _r(n,i){for(var l=rn(i);l!=n.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==n.sizer&&l!=n.mover)return!0}function Dl(n){return n.lineSpace.offsetTop}function zc(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function id(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=z(n.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)&&(n.cachedPaddingH=s),s}function nr(n){return pe-n.display.nativeBarWidth}function xi(n){return n.display.scroller.clientWidth-nr(n)-n.display.barWidth}function Ic(n){return n.display.scroller.clientHeight-nr(n)-n.display.barHeight}function Gb(n,i,l){var s=n.options.lineWrapping,c=s&&xi(n);if(!i.measure.heights||s&&i.measure.width!=c){var p=i.measure.heights=[];if(s){i.measure.width=c;for(var m=i.text.firstChild.getClientRects(),y=0;y<m.length-1;y++){var x=m[y],_=m[y+1];Math.abs(x.bottom-_.bottom)>2&&p.push((x.bottom+_.top)/2-l.top)}}p.push(l.bottom-l.top)}}function od(n,i,l){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var s=0;s<n.rest.length;s++)if(n.rest[s]==i)return{map:n.measure.maps[s],cache:n.measure.caches[s]};for(var c=0;c<n.rest.length;c++)if(ie(n.rest[c])>l)return{map:n.measure.maps[c],cache:n.measure.caches[c],before:!0}}}function Vb(n,i){i=Hn(i);var l=ie(i),s=n.display.externalMeasured=new Zh(n.doc,i,l);s.lineN=l;var c=s.built=Yh(n,s);return s.text=c.pre,z(n.display.lineMeasure,c.pre),s}function sd(n,i,l,s){return rr(n,so(n,i),l,s)}function Fc(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[ki(n,i)];var l=n.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function so(n,i){var l=ie(i),s=Fc(n,l);s&&!s.text?s=null:s&&s.changes&&(Qh(n,s,l,Uc(n)),n.curOp.forceUpdate=!0),s||(s=Vb(n,i));var c=od(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function rr(n,i,l,s,c){i.before&&(l=-1);var p=l+(s||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Gb(n,i.view,i.rect),i.hasHeights=!0),m=Xb(n,i,l,s),m.bogus||(i.cache[p]=m)),{left:m.left,right:m.right,top:c?m.rtop:m.top,bottom:c?m.rbottom:m.bottom}}var ld={left:0,right:0,top:0,bottom:0};function ad(n,i,l){for(var s,c,p,m,y,x,_=0;_<n.length;_+=3)if(y=n[_],x=n[_+1],i<y?(c=0,p=1,m="left"):i<x?(c=i-y,p=c+1):(_==n.length-3||i==x&&n[_+3]>i)&&(p=x-y,c=p-1,i>=x&&(m="right")),c!=null){if(s=n[_+2],y==x&&l==(s.insertLeft?"left":"right")&&(m=l),l=="left"&&c==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)s=n[(_-=3)+2],m="left";if(l=="right"&&c==x-y)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)s=n[(_+=3)+2],m="right";break}return{node:s,start:c,end:p,collapse:m,coverStart:y,coverEnd:x}}function Kb(n,i){var l=ld;if(i=="left")for(var s=0;s<n.length&&(l=n[s]).left==l.right;s++);else for(var c=n.length-1;c>=0&&(l=n[c]).left==l.right;c--);return l}function Xb(n,i,l,s){var c=ad(i.map,l,s),p=c.node,m=c.start,y=c.end,x=c.collapse,_;if(p.nodeType==3){for(var N=0;N<4;N++){for(;m&&Zt(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&Zt(i.line.text.charAt(c.coverStart+y));)++y;if(d&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=p.parentNode.getBoundingClientRect():_=Kb(W(p,m,y).getClientRects(),s),_.left||_.right||m==0)break;y=m,m=m-1,x="right"}d&&g<11&&(_=Yb(n.display.measure,_))}else{m>0&&(x=s="right");var D;n.options.lineWrapping&&(D=p.getClientRects()).length>1?_=D[s=="right"?D.length-1:0]:_=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!_||!_.left&&!_.right)){var B=p.parentNode.getClientRects()[0];B?_={left:B.left,right:B.left+ao(n.display),top:B.top,bottom:B.bottom}:_=ld}for(var q=_.top-i.rect.top,Y=_.bottom-i.rect.top,it=(q+Y)/2,ht=i.view.measure.heights,mt=0;mt<ht.length-1&&!(it<ht[mt]);mt++);var _t=mt?ht[mt-1]:0,yt=ht[mt],Tt={left:(x=="right"?_.right:_.left)-i.rect.left,right:(x=="left"?_.left:_.right)-i.rect.left,top:_t,bottom:yt};return!_.left&&!_.right&&(Tt.bogus=!0),n.options.singleCursorHeightPerLine||(Tt.rtop=q,Tt.rbottom=Y),Tt}function Yb(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Cl(n))return i;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*s,bottom:i.bottom*s}}function cd(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function ud(n){n.display.externalMeasure=null,U(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)cd(n.display.view[i])}function hs(n){ud(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function fd(n){return w&&$?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function hd(n){return w&&$?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function qc(n){var i=Hn(n),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=fs(l[c]));return s}function Rl(n,i,l,s,c){if(!c){var p=qc(i);l.top+=p,l.bottom+=p}if(s=="line")return l;s||(s="local");var m=xr(i);if(s=="local"?m+=Dl(n.display):m-=n.display.viewOffset,s=="page"||s=="window"){var y=n.display.lineSpace.getBoundingClientRect();m+=y.top+(s=="window"?0:hd(Gt(n)));var x=y.left+(s=="window"?0:fd(Gt(n)));l.left+=x,l.right+=x}return l.top+=m,l.bottom+=m,l}function dd(n,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=fd(Gt(n)),c-=hd(Gt(n));else if(l=="local"||!l){var p=n.display.sizer.getBoundingClientRect();s+=p.left,c+=p.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:s-m.left,top:c-m.top}}function zl(n,i,l,s,c){return s||(s=Mt(n.doc,i.line)),Rl(n,s,sd(n,s,i.ch,c),l)}function Bn(n,i,l,s,c,p){s=s||Mt(n.doc,i.line),c||(c=so(n,s));function m(Y,it){var ht=rr(n,c,Y,it?"right":"left",p);return it?ht.left=ht.right:ht.right=ht.left,Rl(n,s,ht,l)}var y=ye(s,n.doc.direction),x=i.ch,_=i.sticky;if(x>=s.text.length?(x=s.text.length,_="before"):x<=0&&(x=0,_="after"),!y)return m(_=="before"?x-1:x,_=="before");function N(Y,it,ht){var mt=y[it],_t=mt.level==1;return m(ht?Y-1:Y,_t!=ht)}var D=He(y,x,_),B=Ln,q=N(x,D,_=="before");return B!=null&&(q.other=N(x,B,_!="before")),q}function pd(n,i){var l=0;i=Ft(n.doc,i),n.options.lineWrapping||(l=ao(n.display)*i.ch);var s=Mt(n.doc,i.line),c=xr(s)+Dl(n.display);return{left:l,right:l,top:c,bottom:c+s.height}}function Hc(n,i,l,s,c){var p=I(n,i,l);return p.xRel=c,s&&(p.outside=s),p}function Bc(n,i,l){var s=n.doc;if(l+=n.display.viewOffset,l<0)return Hc(s.first,0,null,-1,-1);var c=tr(s,l),p=s.first+s.size-1;if(c>p)return Hc(s.first+s.size-1,Mt(s,p).text.length,null,1,1);i<0&&(i=0);for(var m=Mt(s,c);;){var y=Jb(n,m,c,i,l),x=Cb(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!x)return y;var _=x.find(1);if(_.line==c)return _;m=Mt(s,c=_.line)}}function gd(n,i,l,s){s-=qc(i);var c=i.text.length,p=Yt(function(m){return rr(n,l,m-1).bottom<=s},c,0);return c=Yt(function(m){return rr(n,l,m).top>s},p,c),{begin:p,end:c}}function vd(n,i,l,s){l||(l=so(n,i));var c=Rl(n,i,rr(n,l,s),"line").top;return gd(n,i,l,c)}function Wc(n,i,l,s){return n.bottom<=l?!1:n.top>l?!0:(s?n.left:n.right)>i}function Jb(n,i,l,s,c){c-=xr(i);var p=so(n,i),m=qc(i),y=0,x=i.text.length,_=!0,N=ye(i,n.doc.direction);if(N){var D=(n.options.lineWrapping?Qb:Zb)(n,i,l,p,N,s,c);_=D.level!=1,y=_?D.from:D.to-1,x=_?D.to:D.from-1}var B=null,q=null,Y=Yt(function(Dt){var Pt=rr(n,p,Dt);return Pt.top+=m,Pt.bottom+=m,Wc(Pt,s,c,!1)?(Pt.top<=c&&Pt.left<=s&&(B=Dt,q=Pt),!0):!1},y,x),it,ht,mt=!1;if(q){var _t=s-q.left<q.right-s,yt=_t==_;Y=B+(yt?0:1),ht=yt?"after":"before",it=_t?q.left:q.right}else{!_&&(Y==x||Y==y)&&Y++,ht=Y==0?"after":Y==i.text.length?"before":rr(n,p,Y-(_?1:0)).bottom+m<=c==_?"after":"before";var Tt=Bn(n,I(l,Y,ht),"line",i,p);it=Tt.left,mt=c<Tt.top?-1:c>=Tt.bottom?1:0}return Y=ae(i.text,Y,1),Hc(l,Y,ht,mt,s-it)}function Zb(n,i,l,s,c,p,m){var y=Yt(function(D){var B=c[D],q=B.level!=1;return Wc(Bn(n,I(l,q?B.to:B.from,q?"before":"after"),"line",i,s),p,m,!0)},0,c.length-1),x=c[y];if(y>0){var _=x.level!=1,N=Bn(n,I(l,_?x.from:x.to,_?"after":"before"),"line",i,s);Wc(N,p,m,!0)&&N.top>m&&(x=c[y-1])}return x}function Qb(n,i,l,s,c,p,m){var y=gd(n,i,s,m),x=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,D=null,B=0;B<c.length;B++){var q=c[B];if(!(q.from>=_||q.to<=x)){var Y=q.level!=1,it=rr(n,s,Y?Math.min(_,q.to)-1:Math.max(x,q.from)).right,ht=it<p?p-it+1e9:it-p;(!N||D>ht)&&(N=q,D=ht)}}return N||(N=c[c.length-1]),N.from<x&&(N={from:x,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var _i;function lo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(_i==null){_i=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)_i.appendChild(document.createTextNode("x")),_i.appendChild(k("br"));_i.appendChild(document.createTextNode("x"))}z(n.measure,_i);var l=_i.offsetHeight/50;return l>3&&(n.cachedTextHeight=l),U(n.measure),l||1}function ao(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");z(n.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(n.cachedCharWidth=c),c||10}function Uc(n){for(var i=n.display,l={},s={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var y=n.display.gutterSpecs[m].className;l[y]=p.offsetLeft+p.clientLeft+c,s[y]=p.clientWidth}return{fixedPos:jc(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function jc(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function md(n){var i=lo(n.display),l=n.options.lineWrapping,s=l&&Math.max(5,n.display.scroller.clientWidth/ao(n.display)-3);return function(c){if(jr(n.doc,c))return 0;var p=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(p+=c.widgets[m].height);return l?p+(Math.ceil(c.text.length/s)||1)*i:p+i}}function Gc(n){var i=n.doc,l=md(n);i.iter(function(s){var c=l(s);c!=s.height&&Rn(s,c)})}function Si(n,i,l,s){var c=n.display;if(!l&&rn(i).getAttribute("cm-not-content")=="true")return null;var p,m,y=c.lineSpace.getBoundingClientRect();try{p=i.clientX-y.left,m=i.clientY-y.top}catch{return null}var x=Bc(n,p,m),_;if(s&&x.xRel>0&&(_=Mt(n.doc,x.line).text).length==x.ch){var N=K(_,_.length,n.options.tabSize)-_.length;x=I(x.line,Math.max(0,Math.round((p-id(n.display).left)/ao(n.display))-N))}return x}function ki(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var l=n.display.view,s=0;s<l.length;s++)if(i-=l[s].size,i<0)return s}function on(n,i,l,s){i==null&&(i=n.doc.first),l==null&&(l=n.doc.first+n.doc.size),s||(s=0);var c=n.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=c.viewTo)wr&&Oc(n.doc,i)<c.viewTo&&Vr(n);else if(l<=c.viewFrom)wr&&Kh(n.doc,l+s)>c.viewFrom?Vr(n):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Vr(n);else if(i<=c.viewFrom){var p=Il(n,l,l+s,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=s):Vr(n)}else if(l>=c.viewTo){var m=Il(n,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):Vr(n)}else{var y=Il(n,i,i,-1),x=Il(n,l,l+s,1);y&&x?(c.view=c.view.slice(0,y.index).concat($l(n,y.lineN,x.lineN)).concat(c.view.slice(x.index)),c.viewTo+=s):Vr(n)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function Gr(n,i,l){n.curOp.viewChanged=!0;var s=n.display,c=n.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(s.externalMeasured=null),!(i<s.viewFrom||i>=s.viewTo)){var p=s.view[ki(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Ct(m,l)==-1&&m.push(l)}}}function Vr(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Il(n,i,l,s){var c=ki(n,i),p,m=n.display.view;if(!wr||l==n.doc.first+n.doc.size)return{index:c,lineN:l};for(var y=n.display.viewFrom,x=0;x<c;x++)y+=m[x].size;if(y!=i){if(s>0){if(c==m.length-1)return null;p=y+m[c].size-i,c++}else p=y-i;i+=p,l+=p}for(;Oc(n.doc,l)!=l;){if(c==(s<0?0:m.length-1))return null;l+=s*m[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function tw(n,i,l){var s=n.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=$l(n,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=$l(n,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(ki(n,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat($l(n,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,ki(n,l)))),s.viewTo=l}function yd(n){for(var i=n.display.view,l=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function ds(n){n.display.input.showSelection(n.display.input.prepareSelection())}function bd(n,i){i===void 0&&(i=!0);var l=n.doc,s={},c=s.cursors=document.createDocumentFragment(),p=s.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var y=0;y<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var x=l.sel.ranges[y];if(!(x.from().line>=n.display.viewTo||x.to().line<n.display.viewFrom)){var _=x.empty();if(m){var N=m(n,x);N&&Vc(n,N,c)}else(_||n.options.showCursorWhenSelecting)&&Vc(n,x.head,c);_||ew(n,x,p)}}return s}function Vc(n,i,l){var s=Bn(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),c=l.appendChild(k("div"," ","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var p=zl(n,i,"div",null,null),m=p.right-p.left;c.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=s.other.left+"px",y.style.top=s.other.top+"px",y.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function Fl(n,i){return n.top-i.top||n.left-i.left}function ew(n,i,l){var s=n.display,c=n.doc,p=document.createDocumentFragment(),m=id(n.display),y=m.left,x=Math.max(s.sizerWidth,xi(n)-s.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function N(yt,Tt,Dt,Pt){Tt<0&&(Tt=0),Tt=Math.round(Tt),Pt=Math.round(Pt),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
16
+ top: `+Tt+"px; width: "+(Dt??x-yt)+`px;
17
+ height: `+(Pt-Tt)+"px"))}function D(yt,Tt,Dt){var Pt=Mt(c,yt),Ut=Pt.text.length,ge,ze;function _e(Ae,an){return zl(n,I(yt,Ae),"div",Pt,an)}function wn(Ae,an,Be){var Oe=vd(n,Pt,null,Ae),Me=an=="ltr"==(Be=="after")?"left":"right",Ce=Be=="after"?Oe.begin:Oe.end-(/\s/.test(Pt.text.charAt(Oe.end-1))?2:1);return _e(Ce,Me)[Me]}var ln=ye(Pt,c.direction);return mn(ln,Tt||0,Dt??Ut,function(Ae,an,Be,Oe){var Me=Be=="ltr",Ce=_e(Ae,Me?"left":"right"),cn=_e(an-1,Me?"right":"left"),_o=Tt==null&&Ae==0,Qr=Dt==null&&an==Ut,Ke=Oe==0,ir=!ln||Oe==ln.length-1;if(cn.top-Ce.top<=3){var Ie=(_?_o:Qr)&&Ke,wu=(_?Qr:_o)&&ir,Cr=Ie?y:(Me?Ce:cn).left,Ai=wu?x:(Me?cn:Ce).right;N(Cr,Ce.top,Ai-Cr,Ce.bottom)}else{var Mi,tn,So,xu;Me?(Mi=_&&_o&&Ke?y:Ce.left,tn=_?x:wn(Ae,Be,"before"),So=_?y:wn(an,Be,"after"),xu=_&&Qr&&ir?x:cn.right):(Mi=_?wn(Ae,Be,"before"):y,tn=!_&&_o&&Ke?x:Ce.right,So=!_&&Qr&&ir?y:cn.left,xu=_?wn(an,Be,"after"):x),N(Mi,Ce.top,tn-Mi,Ce.bottom),Ce.bottom<cn.top&&N(y,Ce.bottom,null,cn.top),N(So,cn.top,xu-So,cn.bottom)}(!ge||Fl(Ce,ge)<0)&&(ge=Ce),Fl(cn,ge)<0&&(ge=cn),(!ze||Fl(Ce,ze)<0)&&(ze=Ce),Fl(cn,ze)<0&&(ze=cn)}),{start:ge,end:ze}}var B=i.from(),q=i.to();if(B.line==q.line)D(B.line,B.ch,q.ch);else{var Y=Mt(c,B.line),it=Mt(c,q.line),ht=Hn(Y)==Hn(it),mt=D(B.line,B.ch,ht?Y.text.length+1:null).end,_t=D(q.line,ht?0:null,q.ch).start;ht&&(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(p)}function Kc(n){if(!!n.state.focused){var i=n.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||co(n),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function wd(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Yc(n))}function Xc(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&co(n))},100)}function Yc(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(me(n,"focus",n,i),n.state.focused=!0,Et(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Kc(n))}function co(n,i){n.state.delayingBlurEvent||(n.state.focused&&(me(n,"blur",n,i),n.state.focused=!1,ft(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ql(n){for(var i=n.display,l=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m<i.view.length;m++){var y=i.view[m],x=n.options.lineWrapping,_=void 0,N=0;if(!y.hidden){if(c+=y.line.height,d&&g<8){var D=y.node.offsetTop+y.node.offsetHeight;_=D-l,l=D}else{var B=y.node.getBoundingClientRect();_=B.bottom-B.top,!x&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-B.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(p-=q),Rn(y.line,_),xd(y.line),y.rest))for(var Y=0;Y<y.rest.length;Y++)xd(y.rest[Y]);if(N>n.display.sizerWidth){var it=Math.ceil(N/ao(n.display));it>n.display.maxLineLength&&(n.display.maxLineLength=it,n.display.maxLine=y.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function xd(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var l=n.widgets[i],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function Hl(n,i,l){var s=l&&l.top!=null?Math.max(0,l.top):n.scroller.scrollTop;s=Math.floor(s-Dl(n));var c=l&&l.bottom!=null?l.bottom:s+n.wrapper.clientHeight,p=tr(i,s),m=tr(i,c);if(l&&l.ensure){var y=l.ensure.from.line,x=l.ensure.to.line;y<p?(p=y,m=tr(i,xr(Mt(i,y))+n.wrapper.clientHeight)):Math.min(x,i.lastLine())>=m&&(p=tr(i,xr(Mt(i,x))-n.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function nw(n,i){if(!Se(n,"scrollCursorIntoView")){var l=n.display,s=l.sizer.getBoundingClientRect(),c=null,p=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!C){var m=k("div","​",null,`position: absolute;
18
+ top: `+(i.top-l.viewOffset-Dl(n.display))+`px;
19
+ height: `+(i.bottom-i.top+nr(n)+l.barHeight)+`px;
20
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(c),n.display.lineSpace.removeChild(m)}}}function rw(n,i,l,s){s==null&&(s=0);var c;!n.options.lineWrapping&&i==l&&(l=i.sticky=="before"?I(i.line,i.ch+1,"before"):i,i=i.ch?I(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,y=Bn(n,i),x=!l||l==i?y:Bn(n,l);c={left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-s,right:Math.max(y.left,x.left),bottom:Math.max(y.bottom,x.bottom)+s};var _=Jc(n,c),N=n.doc.scrollTop,D=n.doc.scrollLeft;if(_.scrollTop!=null&&(gs(n,_.scrollTop),Math.abs(n.doc.scrollTop-N)>1&&(m=!0)),_.scrollLeft!=null&&(Ci(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function iw(n,i){var l=Jc(n,i);l.scrollTop!=null&&gs(n,l.scrollTop),l.scrollLeft!=null&&Ci(n,l.scrollLeft)}function Jc(n,i){var l=n.display,s=lo(n.display);i.top<0&&(i.top=0);var c=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:l.scroller.scrollTop,p=Ic(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var y=n.doc.height+zc(l),x=i.top<s,_=i.bottom>y-s;if(i.top<c)m.scrollTop=x?0:i.top;else if(i.bottom>c+p){var N=Math.min(i.top,(_?y:i.bottom)-p);N!=c&&(m.scrollTop=N)}var D=n.options.fixedGutter?0:l.gutters.offsetWidth,B=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:l.scroller.scrollLeft-D,q=xi(n)-l.gutters.offsetWidth,Y=i.right-i.left>q;return Y&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<B?m.scrollLeft=Math.max(0,i.left+D-(Y?0:10)):i.right>q+B-3&&(m.scrollLeft=i.right+(Y?0:10)-q),m}function Zc(n,i){i!=null&&(Bl(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function uo(n){Bl(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function ps(n,i,l){(i!=null||l!=null)&&Bl(n),i!=null&&(n.curOp.scrollLeft=i),l!=null&&(n.curOp.scrollTop=l)}function ow(n,i){Bl(n),n.curOp.scrollToPos=i}function Bl(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var l=pd(n,i.from),s=pd(n,i.to);_d(n,l,s,i.margin)}}function _d(n,i,l,s){var c=Jc(n,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-s,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+s});ps(n,c.scrollLeft,c.scrollTop)}function gs(n,i){Math.abs(n.doc.scrollTop-i)<2||(a||tu(n,{top:i}),Sd(n,i,!0),a&&tu(n),ys(n,100))}function Sd(n,i,l){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!l)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function Ci(n,i,l,s){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((l?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!s)&&(n.doc.scrollLeft=i,Ed(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function vs(n){var i=n.display,l=i.gutters.offsetWidth,s=Math.round(n.doc.height+zc(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+nr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var Ti=function(n,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,n(s),n(c),bt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),bt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ti.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,l=n.scrollHeight>n.clientHeight+1,s=n.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=i?s+"px":"0";var c=n.viewHeight-(i?s:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=l?s+"px":"0",this.horiz.style.left=n.barLeft+"px";var p=n.viewWidth-n.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:i?s:0}},Ti.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ti.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ti.prototype.zeroWidthHack=function(){var n=G&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new st,this.disableVert=new st},Ti.prototype.enableZeroWidthBar=function(n,i,l){n.style.visibility="";function s(){var c=n.getBoundingClientRect(),p=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},Ti.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var ms=function(){};ms.prototype.update=function(){return{bottom:0,right:0}},ms.prototype.setScrollLeft=function(){},ms.prototype.setScrollTop=function(){},ms.prototype.clear=function(){};function fo(n,i){i||(i=vs(n));var l=n.display.barWidth,s=n.display.barHeight;kd(n,i);for(var c=0;c<4&&l!=n.display.barWidth||s!=n.display.barHeight;c++)l!=n.display.barWidth&&n.options.lineWrapping&&ql(n),kd(n,vs(n)),l=n.display.barWidth,s=n.display.barHeight}function kd(n,i){var l=n.display,s=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var Cd={native:Ti,null:ms};function Td(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&ft(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Cd[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),bt(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?Ci(n,i):gs(n,i)},n),n.display.scrollbars.addClass&&Et(n.display.wrapper,n.display.scrollbars.addClass)}var sw=0;function Li(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++sw,markArrays:null},zb(n.curOp)}function Ei(n){var i=n.curOp;i&&Fb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;lw(l)})}function lw(n){for(var i=n.ops,l=0;l<i.length;l++)aw(i[l]);for(var s=0;s<i.length;s++)cw(i[s]);for(var c=0;c<i.length;c++)uw(i[c]);for(var p=0;p<i.length;p++)fw(i[p]);for(var m=0;m<i.length;m++)hw(i[m])}function aw(n){var i=n.cm,l=i.display;pw(i),n.updateMaxLine&&Dc(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<l.viewFrom||n.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Wl(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function cw(n){n.updatedDisplay=n.mustUpdate&&Qc(n.cm,n.update)}function uw(n){var i=n.cm,l=i.display;n.updatedDisplay&&ql(i),n.barMeasure=vs(i),l.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=sd(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+n.adjustWidthTo+nr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+n.adjustWidthTo-xi(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=l.input.prepareSelection())}function fw(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&Ci(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=n.focus&&n.focus==wt(Gt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,l),(n.updatedDisplay||n.startHeight!=i.doc.height)&&fo(i,n.barMeasure),n.updatedDisplay&&nu(i,n.barMeasure),n.selectionChanged&&Kc(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),l&&wd(n.cm)}function hw(n){var i=n.cm,l=i.display,s=i.doc;if(n.updatedDisplay&&Ld(i,n.update),l.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),n.scrollTop!=null&&Sd(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&Ci(i,n.scrollLeft,!0,!0),n.scrollToPos){var c=rw(i,Ft(s,n.scrollToPos.from),Ft(s,n.scrollToPos.to),n.scrollToPos.margin);nw(i,c)}var p=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(p)for(var y=0;y<p.length;++y)p[y].lines.length||me(p[y],"hide");if(m)for(var x=0;x<m.length;++x)m[x].lines.length&&me(m[x],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&me(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function bn(n,i){if(n.curOp)return i();Li(n);try{return i()}finally{Ei(n)}}function De(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Li(n);try{return i.apply(n,arguments)}finally{Ei(n)}}}function Qe(n){return function(){if(this.curOp)return n.apply(this,arguments);Li(this);try{return n.apply(this,arguments)}finally{Ei(this)}}}function Re(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Li(i);try{return n.apply(this,arguments)}finally{Ei(i)}}}function ys(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Q(dw,n))}function dw(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var l=+new Date+n.options.workTime,s=ls(n,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,n.display.viewTo+500),function(p){if(s.line>=n.display.viewFrom){var m=p.styles,y=p.text.length>n.options.maxHighlightLength?yr(i.mode,s.state):null,x=$h(n,p,s,!0);y&&(s.state=y),p.styles=x.styles;var _=p.styleClasses,N=x.classes;N?p.styleClasses=N:_&&(p.styleClasses=null);for(var D=!m||m.length!=p.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),B=0;!D&&B<m.length;++B)D=m[B]!=p.styles[B];D&&c.push(s.line),p.stateAfter=s.save(),s.nextLine()}else p.text.length<=n.options.maxHighlightLength&&Ac(n,p.text,s),p.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return ys(n,n.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&bn(n,function(){for(var p=0;p<c.length;p++)Gr(n,c[p],"text")})}}var Wl=function(n,i,l){var s=n.display;this.viewport=i,this.visible=Hl(s,n.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=xi(n),this.force=l,this.dims=Uc(n),this.events=[]};Wl.prototype.signal=function(n,i){Je(n,i)&&this.events.push(arguments)},Wl.prototype.finish=function(){for(var n=0;n<this.events.length;n++)me.apply(null,this.events[n])};function pw(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=nr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=nr(n)+"px",i.scrollbarsClipped=!0)}function gw(n){if(n.hasFocus())return null;var i=wt(Gt(n));if(!i||!et(n.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=re(n).getSelection();s.anchorNode&&s.extend&&et(n.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function vw(n){if(!(!n||!n.activeElt||n.activeElt==wt(n.activeElt.ownerDocument))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&et(document.body,n.anchorNode)&&et(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,l=i.defaultView.getSelection(),s=i.createRange();s.setEnd(n.anchorNode,n.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(n.focusNode,n.focusOffset)}}function Qc(n,i){var l=n.display,s=n.doc;if(i.editorIsHidden)return Vr(n),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&yd(n)==0)return!1;Ad(n)&&(Vr(n),i.dims=Uc(n));var c=s.first+s.size,p=Math.max(i.visible.from-n.options.viewportMargin,s.first),m=Math.min(c,i.visible.to+n.options.viewportMargin);l.viewFrom<p&&p-l.viewFrom<20&&(p=Math.max(s.first,l.viewFrom)),l.viewTo>m&&l.viewTo-m<20&&(m=Math.min(c,l.viewTo)),wr&&(p=Oc(n.doc,p),m=Kh(n.doc,m));var y=p!=l.viewFrom||m!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;tw(n,p,m),l.viewOffset=xr(Mt(n.doc,l.viewFrom)),n.display.mover.style.top=l.viewOffset+"px";var x=yd(n);if(!y&&x==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=gw(n);return x>4&&(l.lineDiv.style.display="none"),mw(n,l.updateLineNumbers,i.dims),x>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,vw(_),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,ys(n,400)),l.updateLineNumbers=null,!0}function Ld(n,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!n.options.lineWrapping||i.oldDisplayWidth==xi(n)){if(l&&l.top!=null&&(l={top:Math.min(n.doc.height+zc(n.display)-Ic(n),l.top)}),i.visible=Hl(n.display,n.doc,l),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else s&&(i.visible=Hl(n.display,n.doc,l));if(!Qc(n,i))break;ql(n);var c=vs(n);ds(n),fo(n,c),nu(n,c),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function tu(n,i){var l=new Wl(n,i);if(Qc(n,l)){ql(n),Ld(n,l);var s=vs(n);ds(n),fo(n,s),nu(n,s),l.finish()}}function mw(n,i,l){var s=n.display,c=n.options.lineNumbers,p=s.lineDiv,m=p.firstChild;function y(Y){var it=Y.nextSibling;return v&&G&&n.display.currentWheelTarget==Y?Y.style.display="none":Y.parentNode.removeChild(Y),it}for(var x=s.view,_=s.viewFrom,N=0;N<x.length;N++){var D=x[N];if(!D.hidden)if(!D.node||D.node.parentNode!=p){var B=Ub(n,D,_,l);p.insertBefore(B,m)}else{for(;m!=D.node;)m=y(m);var q=c&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Ct(D.changes,"gutter")>-1&&(q=!1),Qh(n,D,_,l)),q&&(U(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(R(n.options,_)))),m=D.node.nextSibling}_+=D.size}for(;m;)m=y(m)}function eu(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",$e(n,"gutterChanged",n)}function nu(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+nr(n)+"px"}function Ed(n){var i=n.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var s=jc(i)-i.scroller.scrollLeft+n.doc.scrollLeft,c=i.gutters.offsetWidth,p=s+"px",m=0;m<l.length;m++)if(!l[m].hidden){n.options.fixedGutter&&(l[m].gutter&&(l[m].gutter.style.left=p),l[m].gutterBackground&&(l[m].gutterBackground.style.left=p));var y=l[m].alignable;if(y)for(var x=0;x<y.length;x++)y[x].style.left=p}n.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function Ad(n){if(!n.options.lineNumbers)return!1;var i=n.doc,l=R(n.options,i.first+i.size-1),s=n.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(k("div",[k("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=c.firstChild.offsetWidth,m=c.offsetWidth-p;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(p,s.lineGutter.offsetWidth-m)+1,s.lineNumWidth=s.lineNumInnerWidth+m,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",eu(n.display),!0}return!1}function ru(n,i){for(var l=[],s=!1,c=0;c<n.length;c++){var p=n[c],m=null;if(typeof p!="string"&&(m=p.style,p=p.className),p=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:p,style:m})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function Md(n){var i=n.gutters,l=n.gutterSpecs;U(i),n.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],p=c.className,m=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+p));m&&(y.style.cssText=m),p=="CodeMirror-linenumbers"&&(n.lineGutter=y,y.style.width=(n.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",eu(n)}function bs(n){Md(n.display),on(n),Ed(n)}function yw(n,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 p=H("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[p],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+pe+"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"),w&&S>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),d&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(a&&O)&&(c.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(c.wrapper):n(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=ru(s.gutters,s.lineNumbers),Md(c),l.init(c)}var Ul=0,Sr=null;d?Sr=-.53:a?Sr=15:w?Sr=-.7:A&&(Sr=-1/3);function Nd(n){var i=n.wheelDeltaX,l=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),l==null&&n.detail&&n.axis==n.VERTICAL_AXIS?l=n.detail:l==null&&(l=n.wheelDelta),{x:i,y:l}}function bw(n){var i=Nd(n);return i.x*=Sr,i.y*=Sr,i}function Pd(n,i){w&&S==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var l=Nd(i),s=l.x,c=l.y,p=Sr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,p=1);var m=n.display,y=m.scroller,x=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(!!(s&&x||c&&_)){if(c&&G&&v){t:for(var N=i.target,D=m.view;N!=y;N=N.parentNode)for(var B=0;B<D.length;B++)if(D[B].node==N){n.display.currentWheelTarget=N;break t}}if(s&&!a&&!M&&p!=null){c&&_&&gs(n,Math.max(0,y.scrollTop+c*p)),Ci(n,Math.max(0,y.scrollLeft+s*p)),(!c||c&&_)&&Ge(i),m.wheelStartX=null;return}if(c&&p!=null){var q=c*p,Y=n.doc.scrollTop,it=Y+m.wrapper.clientHeight;q<0?Y=Math.max(0,Y+q-50):it=Math.min(n.doc.height,it+q+50),tu(n,{top:Y,bottom:it})}Ul<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=y.scrollLeft,m.wheelStartY=y.scrollTop,m.wheelDX=s,m.wheelDY=c,setTimeout(function(){if(m.wheelStartX!=null){var ht=y.scrollLeft-m.wheelStartX,mt=y.scrollTop-m.wheelStartY,_t=mt&&m.wheelDY&&mt/m.wheelDY||ht&&m.wheelDX&&ht/m.wheelDX;m.wheelStartX=m.wheelStartY=null,_t&&(Sr=(Sr*Ul+_t)/(Ul+1),++Ul)}},200)):(m.wheelDX+=s,m.wheelDY+=c))}}var An=function(n,i){this.ranges=n,this.primIndex=i};An.prototype.primary=function(){return this.ranges[this.primIndex]},An.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var l=this.ranges[i],s=n.ranges[i];if(!It(l.anchor,s.anchor)||!It(l.head,s.head))return!1}return!0},An.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new oe(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new An(n,this.primIndex)},An.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},An.prototype.contains=function(n,i){i||(i=n);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(X(i,s.from())>=0&&X(n,s.to())<=0)return l}return-1};var oe=function(n,i){this.anchor=n,this.head=i};oe.prototype.from=function(){return Pe(this.anchor,this.head)},oe.prototype.to=function(){return te(this.anchor,this.head)},oe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wn(n,i,l){var s=n&&n.options.selectionsMayTouch,c=i[l];i.sort(function(B,q){return X(B.from(),q.from())}),l=Ct(i,c);for(var p=1;p<i.length;p++){var m=i[p],y=i[p-1],x=X(y.to(),m.from());if(s&&!m.empty()?x>0:x>=0){var _=Pe(y.from(),m.from()),N=te(y.to(),m.to()),D=y.empty()?m.from()==m.head:y.from()==y.head;p<=l&&--l,i.splice(--p,2,new oe(D?N:_,D?_:N))}}return new An(i,l)}function Kr(n,i){return new An([new oe(n,i||n)],0)}function Xr(n){return n.text?I(n.from.line+n.text.length-1,lt(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Od(n,i){if(X(n,i.from)<0)return n;if(X(n,i.to)<=0)return Xr(i);var l=n.line+i.text.length-(i.to.line-i.from.line)-1,s=n.ch;return n.line==i.to.line&&(s+=Xr(i).ch-i.to.ch),I(l,s)}function iu(n,i){for(var l=[],s=0;s<n.sel.ranges.length;s++){var c=n.sel.ranges[s];l.push(new oe(Od(c.anchor,i),Od(c.head,i)))}return Wn(n.cm,l,n.sel.primIndex)}function $d(n,i,l){return n.line==i.line?I(l.line,n.ch-i.ch+l.ch):I(l.line+(n.line-i.line),n.ch)}function ww(n,i,l){for(var s=[],c=I(n.first,0),p=c,m=0;m<i.length;m++){var y=i[m],x=$d(y.from,c,p),_=$d(Xr(y),c,p);if(c=y.to,p=_,l=="around"){var N=n.sel.ranges[m],D=X(N.head,N.anchor)<0;s[m]=new oe(D?_:x,D?x:_)}else s[m]=new oe(x,x)}return new An(s,n.sel.primIndex)}function ou(n){n.doc.mode=mr(n.options,n.doc.modeOption),ws(n)}function ws(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,ys(n,100),n.state.modeGen++,n.curOp&&on(n)}function Dd(n,i){return i.from.ch==0&&i.to.ch==0&&lt(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function su(n,i,l,s){function c(_t){return l?l[_t]:null}function p(_t,yt,Tt){Eb(_t,yt,Tt,s),$e(_t,"change",_t,i)}function m(_t,yt){for(var Tt=[],Dt=_t;Dt<yt;++Dt)Tt.push(new io(_[Dt],c(Dt),s));return Tt}var y=i.from,x=i.to,_=i.text,N=Mt(n,y.line),D=Mt(n,x.line),B=lt(_),q=c(_.length-1),Y=x.line-y.line;if(i.full)n.insert(0,m(0,_.length)),n.remove(_.length,n.size-_.length);else if(Dd(n,i)){var it=m(0,_.length-1);p(D,D.text,q),Y&&n.remove(y.line,Y),it.length&&n.insert(y.line,it)}else if(N==D)if(_.length==1)p(N,N.text.slice(0,y.ch)+B+N.text.slice(x.ch),q);else{var ht=m(1,_.length-1);ht.push(new io(B+N.text.slice(x.ch),q,s)),p(N,N.text.slice(0,y.ch)+_[0],c(0)),n.insert(y.line+1,ht)}else if(_.length==1)p(N,N.text.slice(0,y.ch)+_[0]+D.text.slice(x.ch),c(0)),n.remove(y.line+1,Y);else{p(N,N.text.slice(0,y.ch)+_[0],c(0)),p(D,B+D.text.slice(x.ch),q);var mt=m(1,_.length-1);Y>1&&n.remove(y.line+1,Y-1),n.insert(y.line+1,mt)}$e(n,"change",n,i)}function Yr(n,i,l){function s(c,p,m){if(c.linked)for(var y=0;y<c.linked.length;++y){var x=c.linked[y];if(x.doc!=p){var _=m&&x.sharedHist;l&&!_||(i(x.doc,_),s(x.doc,c,_))}}}s(n,null,!0)}function Rd(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Gc(n),ou(n),zd(n),n.options.direction=i.direction,n.options.lineWrapping||Dc(n),n.options.mode=i.modeOption,on(n)}function zd(n){(n.doc.direction=="rtl"?Et:ft)(n.display.lineDiv,"CodeMirror-rtl")}function xw(n){bn(n,function(){zd(n),on(n)})}function jl(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function lu(n,i){var l={from:Vt(i.from),to:Xr(i),text:br(n,i.from,i.to)};return qd(n,l,i.from.line,i.to.line+1),Yr(n,function(s){return qd(s,l,i.from.line,i.to.line+1)},!0),l}function Id(n){for(;n.length;){var i=lt(n);if(i.ranges)n.pop();else break}}function _w(n,i){if(i)return Id(n.done),lt(n.done);if(n.done.length&&!lt(n.done).ranges)return lt(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),lt(n.done)}function Fd(n,i,l,s){var c=n.history;c.undone.length=0;var p=+new Date,m,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>p-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=_w(c,c.lastOp==s)))y=lt(m.changes),X(i.from,i.to)==0&&X(i.from,y.to)==0?y.to=Xr(i):m.changes.push(lu(n,i));else{var x=lt(c.done);for((!x||!x.ranges)&&Gl(n.sel,c.done),m={changes:[lu(n,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=p,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||me(n,"historyAdded")}function Sw(n,i,l,s){var c=i.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function kw(n,i,l,s){var c=n.history,p=s&&s.origin;l==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||Sw(n,p,lt(c.done),i))?c.done[c.done.length-1]=i:Gl(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=l,s&&s.clearRedo!==!1&&Id(c.undone)}function Gl(n,i){var l=lt(i);l&&l.ranges&&l.equals(n)||i.push(n)}function qd(n,i,l,s){var c=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,l),Math.min(n.first+n.size,s),function(m){m.markedSpans&&((c||(c=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function Cw(n){if(!n)return null;for(var i,l=0;l<n.length;++l)n[l].marker.explicitlyCleared?i||(i=n.slice(0,l)):i&&i.push(n[l]);return i?i.length?i:null:n}function Tw(n,i){var l=i["spans_"+n.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(Cw(l[c]));return s}function Hd(n,i){var l=Tw(n,i),s=Nc(n,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var p=l[c],m=s[c];if(p&&m){t:for(var y=0;y<m.length;++y){for(var x=m[y],_=0;_<p.length;++_)if(p[_].marker==x.marker)continue t;p.push(x)}}else m&&(l[c]=m)}return l}function ho(n,i,l){for(var s=[],c=0;c<n.length;++c){var p=n[c];if(p.ranges){s.push(l?An.prototype.deepCopy.call(p):p);continue}var m=p.changes,y=[];s.push({changes:y});for(var x=0;x<m.length;++x){var _=m[x],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var D in _)(N=D.match(/^spans_(\d+)$/))&&Ct(i,Number(N[1]))>-1&&(lt(y)[D]=_[D],delete _[D])}}return s}function au(n,i,l,s){if(s){var c=n.anchor;if(l){var p=X(i,c)<0;p!=X(l,c)<0?(c=i,i=l):p!=X(i,l)<0&&(i=l)}return new oe(c,i)}else return new oe(l||i,i)}function Vl(n,i,l,s,c){c==null&&(c=n.cm&&(n.cm.display.shift||n.extend)),Ve(n,new An([au(n.sel.primary(),i,l,c)],0),s)}function Bd(n,i,l){for(var s=[],c=n.cm&&(n.cm.display.shift||n.extend),p=0;p<n.sel.ranges.length;p++)s[p]=au(n.sel.ranges[p],i[p],null,c);var m=Wn(n.cm,s,n.sel.primIndex);Ve(n,m,l)}function cu(n,i,l,s){var c=n.sel.ranges.slice(0);c[i]=l,Ve(n,Wn(n.cm,c,n.sel.primIndex),s)}function Wd(n,i,l,s){Ve(n,Kr(i,l),s)}function Lw(n,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var p=0;p<c.length;p++)this.ranges[p]=new oe(Ft(n,c[p].anchor),Ft(n,c[p].head))},origin:l&&l.origin};return me(n,"beforeSelectionChange",n,s),n.cm&&me(n.cm,"beforeSelectionChange",n.cm,s),s.ranges!=i.ranges?Wn(n.cm,s.ranges,s.ranges.length-1):i}function Ud(n,i,l){var s=n.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Kl(n,i,l)):Ve(n,i,l)}function Ve(n,i,l){Kl(n,i,l),kw(n,n.sel,n.cm?n.cm.curOp.id:NaN,l)}function Kl(n,i,l){(Je(n,"beforeSelectionChange")||n.cm&&Je(n.cm,"beforeSelectionChange"))&&(i=Lw(n,i,l));var s=l&&l.bias||(X(i.primary().head,n.sel.primary().head)<0?-1:1);jd(n,Vd(n,i,s,!0)),!(l&&l.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&uo(n.cm)}function jd(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Sl(n.cm)),$e(n,"cursorActivity",n))}function Gd(n){jd(n,Vd(n,n.sel,null,!1))}function Vd(n,i,l,s){for(var c,p=0;p<i.ranges.length;p++){var m=i.ranges[p],y=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[p],x=Xl(n,m.anchor,y&&y.anchor,l,s),_=m.head==m.anchor?x:Xl(n,m.head,y&&y.head,l,s);(c||x!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,p)),c[p]=new oe(x,_))}return c?Wn(n.cm,c,i.primIndex):i}function po(n,i,l,s,c){var p=Mt(n,i.line);if(p.markedSpans)for(var m=0;m<p.markedSpans.length;++m){var y=p.markedSpans[m],x=y.marker,_="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,N="selectRight"in x?!x.selectRight:x.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&&(me(x,"beforeCursorEnter"),x.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(l){var D=x.find(s<0?1:-1),B=void 0;if((s<0?N:_)&&(D=Kd(n,D,-s,D&&D.line==i.line?p:null)),D&&D.line==i.line&&(B=X(D,l))&&(s<0?B<0:B>0))return po(n,D,i,s,c)}var q=x.find(s<0?-1:1);return(s<0?_:N)&&(q=Kd(n,q,s,q.line==i.line?p:null)),q?po(n,q,i,s,c):null}}return i}function Xl(n,i,l,s,c){var p=s||1,m=po(n,i,l,p,c)||!c&&po(n,i,l,p,!0)||po(n,i,l,-p,c)||!c&&po(n,i,l,-p,!0);return m||(n.cantEdit=!0,I(n.first,0))}function Kd(n,i,l,s){return l<0&&i.ch==0?i.line>n.first?Ft(n,I(i.line-1)):null:l>0&&i.ch==(s||Mt(n,i.line)).text.length?i.line<n.first+n.size-1?I(i.line+1,0):null:new I(i.line,i.ch+l)}function Xd(n){n.setSelection(I(n.firstLine(),0),I(n.lastLine()),P)}function Yd(n,i,l){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,p,m,y){c&&(s.from=Ft(n,c)),p&&(s.to=Ft(n,p)),m&&(s.text=m),y!==void 0&&(s.origin=y)}),me(n,"beforeChange",n,s),n.cm&&me(n.cm,"beforeChange",n.cm,s),s.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function go(n,i,l){if(n.cm){if(!n.cm.curOp)return De(n.cm,go)(n,i,l);if(n.cm.state.suppressEdits)return}if(!((Je(n,"beforeChange")||n.cm&&Je(n.cm,"beforeChange"))&&(i=Yd(n,i,!0),!i))){var s=Hh&&!l&&kb(n,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Jd(n,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Jd(n,i)}}function Jd(n,i){if(!(i.text.length==1&&i.text[0]==""&&X(i.from,i.to)==0)){var l=iu(n,i);Fd(n,i,l,n.cm?n.cm.curOp.id:NaN),xs(n,i,l,Nc(n,i));var s=[];Yr(n,function(c,p){!p&&Ct(s,c.history)==-1&&(ep(c.history,i),s.push(c.history)),xs(c,i,null,Nc(c,i))})}}function Yl(n,i,l){var s=n.cm&&n.cm.state.suppressEdits;if(!(s&&!l)){for(var c=n.history,p,m=n.sel,y=i=="undo"?c.done:c.undone,x=i=="undo"?c.undone:c.done,_=0;_<y.length&&(p=y[_],!(l?p.ranges&&!p.equals(n.sel):!p.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(p=y.pop(),p.ranges){if(Gl(p,x),l&&!p.equals(n.sel)){Ve(n,p,{clearRedo:!1});return}m=p}else if(s){y.push(p);return}else break;var N=[];Gl(m,x),x.push({changes:N,generation:c.generation}),c.generation=p.generation||++c.maxGeneration;for(var D=Je(n,"beforeChange")||n.cm&&Je(n.cm,"beforeChange"),B=function(it){var ht=p.changes[it];if(ht.origin=i,D&&!Yd(n,ht,!1))return y.length=0,{};N.push(lu(n,ht));var mt=it?iu(n,ht):lt(y);xs(n,ht,mt,Hd(n,ht)),!it&&n.cm&&n.cm.scrollIntoView({from:ht.from,to:Xr(ht)});var _t=[];Yr(n,function(yt,Tt){!Tt&&Ct(_t,yt.history)==-1&&(ep(yt.history,ht),_t.push(yt.history)),xs(yt,ht,null,Hd(yt,ht))})},q=p.changes.length-1;q>=0;--q){var Y=B(q);if(Y)return Y.v}}}}function Zd(n,i){if(i!=0&&(n.first+=i,n.sel=new An(gt(n.sel.ranges,function(c){return new oe(I(c.anchor.line+i,c.anchor.ch),I(c.head.line+i,c.head.ch))}),n.sel.primIndex),n.cm)){on(n.cm,n.first,n.first-i,i);for(var l=n.cm.display,s=l.viewFrom;s<l.viewTo;s++)Gr(n.cm,s,"gutter")}}function xs(n,i,l,s){if(n.cm&&!n.cm.curOp)return De(n.cm,xs)(n,i,l,s);if(i.to.line<n.first){Zd(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var c=i.text.length-1-(n.first-i.from.line);Zd(n,c),i={from:I(n.first,0),to:I(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var p=n.lastLine();i.to.line>p&&(i={from:i.from,to:I(p,Mt(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=br(n,i.from,i.to),l||(l=iu(n,i)),n.cm?Ew(n.cm,i,s):su(n,i,s),Kl(n,l,P),n.cantEdit&&Xl(n,I(n.firstLine(),0))&&(n.cantEdit=!1)}}function Ew(n,i,l){var s=n.doc,c=n.display,p=i.from,m=i.to,y=!1,x=p.line;n.options.lineWrapping||(x=ie(Hn(Mt(s,p.line))),s.iter(x,m.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&Sl(n),su(s,i,l,md(n)),n.options.lineWrapping||(s.iter(x,p.line+i.text.length,function(q){var Y=Ol(q);Y>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=Y,c.maxLineChanged=!0,y=!1)}),y&&(n.curOp.updateMaxLine=!0)),mb(s,p.line),ys(n,400);var _=i.text.length-(m.line-p.line)-1;i.full?on(n):p.line==m.line&&i.text.length==1&&!Dd(n.doc,i)?Gr(n,p.line,"text"):on(n,p.line,m.line+1,_);var N=Je(n,"changes"),D=Je(n,"change");if(D||N){var B={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&$e(n,"change",n,B),N&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(B)}n.display.selForContextMenu=null}function vo(n,i,l,s,c){var p;s||(s=l),X(s,l)<0&&(p=[s,l],l=p[0],s=p[1]),typeof i=="string"&&(i=n.splitLines(i)),go(n,{from:l,to:s,text:i,origin:c})}function Qd(n,i,l,s){l<n.line?n.line+=s:i<n.line&&(n.line=i,n.ch=0)}function tp(n,i,l,s){for(var c=0;c<n.length;++c){var p=n[c],m=!0;if(p.ranges){p.copied||(p=n[c]=p.deepCopy(),p.copied=!0);for(var y=0;y<p.ranges.length;y++)Qd(p.ranges[y].anchor,i,l,s),Qd(p.ranges[y].head,i,l,s);continue}for(var x=0;x<p.changes.length;++x){var _=p.changes[x];if(l<_.from.line)_.from=I(_.from.line+s,_.from.ch),_.to=I(_.to.line+s,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(n.splice(0,c+1),c=0)}}function ep(n,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;tp(n.done,l,s,c),tp(n.undone,l,s,c)}function _s(n,i,l,s){var c=i,p=i;return typeof i=="number"?p=Mt(n,En(n,i)):c=ie(i),c==null?null:(s(p,c)&&n.cm&&Gr(n.cm,c,l),p)}function Ss(n){this.lines=n,this.parent=null;for(var i=0,l=0;l<n.length;++l)n[l].parent=this,i+=n[l].height;this.height=i}Ss.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var l=n,s=n+i;l<s;++l){var c=this.lines[l];this.height-=c.height,Ab(c),$e(c,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,l){this.height+=l,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var s=0;s<i.length;++s)i[s].parent=this},iterN:function(n,i,l){for(var s=n+i;n<s;++n)if(l(this.lines[n]))return!0}};function ks(n){this.children=n;for(var i=0,l=0,s=0;s<n.length;++s){var c=n[s];i+=c.chunkSize(),l+=c.height,c.parent=this}this.size=i,this.height=l,this.parent=null}ks.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var l=0;l<this.children.length;++l){var s=this.children[l],c=s.chunkSize();if(n<c){var p=Math.min(i,c-n),m=s.height;if(s.removeInner(n,p),this.height-=m-s.height,c==p&&(this.children.splice(l--,1),s.parent=null),(i-=p)==0)break;n=0}else n-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Ss))){var y=[];this.collapse(y),this.children=[new Ss(y)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,l){this.size+=i.length,this.height+=l;for(var s=0;s<this.children.length;++s){var c=this.children[s],p=c.chunkSize();if(n<=p){if(c.insertInner(n,i,l),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var x=new Ss(c.lines.slice(y,y+=25));c.height-=x.height,this.children.splice(++s,0,x),x.parent=this}c.lines=c.lines.slice(0,m),this.maybeSpill()}break}n-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),l=new ks(i);if(n.parent){n.size-=l.size,n.height-=l.height;var c=Ct(n.parent.children,n);n.parent.children.splice(c+1,0,l)}else{var s=new ks(n.children);s.parent=n,n.children=[s,l],n=s}l.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,l){for(var s=0;s<this.children.length;++s){var c=this.children[s],p=c.chunkSize();if(n<p){var m=Math.min(i,p-n);if(c.iterN(n,m,l))return!0;if((i-=m)==0)break;n=0}else n-=p}}};var Cs=function(n,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=n,this.node=i};Cs.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,l=this.line,s=ie(l);if(!(s==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(l.widgets=null);var p=fs(this);Rn(l,Math.max(0,l.height-p)),n&&(bn(n,function(){np(n,l,-p),Gr(n,s,"widget")}),$e(n,"lineWidgetCleared",n,this,s))}},Cs.prototype.changed=function(){var n=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=fs(this)-i;!c||(jr(this.doc,s)||Rn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,np(l,s,c),$e(l,"lineWidgetChanged",l,n,ie(s))}))},Ze(Cs);function np(n,i,l){xr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Zc(n,l)}function Aw(n,i,l,s){var c=new Cs(n,l,s),p=n.cm;return p&&c.noHScroll&&(p.display.alignWidgets=!0),_s(n,i,"widget",function(m){var y=m.widgets||(m.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=m,p&&!jr(n,m)){var x=xr(m)<n.scrollTop;Rn(m,m.height+fs(c)),x&&Zc(p,c.height),p.curOp.forceUpdate=!0}return!0}),p&&$e(p,"lineWidgetAdded",p,c,typeof i=="number"?i:ie(i)),c}var rp=0,Jr=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++rp};Jr.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Li(n),Je(this,"clear")){var l=this.find();l&&$e(this,"clear",l.from,l.to)}for(var s=null,c=null,p=0;p<this.lines.length;++p){var m=this.lines[p],y=as(m.markedSpans,this);n&&!this.collapsed?Gr(n,ie(m),"text"):n&&(y.to!=null&&(c=ie(m)),y.from!=null&&(s=ie(m))),m.markedSpans=wb(m.markedSpans,y),y.from==null&&this.collapsed&&!jr(this.doc,m)&&n&&Rn(m,lo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var _=Hn(this.lines[x]),N=Ol(_);N>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=N,n.display.maxLineChanged=!0)}s!=null&&n&&this.collapsed&&on(n,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Gd(n.doc)),n&&$e(n,"markerCleared",n,this,s,c),i&&Ei(n),this.parent&&this.parent.clear()}},Jr.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var l,s,c=0;c<this.lines.length;++c){var p=this.lines[c],m=as(p.markedSpans,this);if(m.from!=null&&(l=I(i?p:ie(p),m.from),n==-1))return l;if(m.to!=null&&(s=I(i?p:ie(p),m.to),n==1))return s}return l&&{from:l,to:s}},Jr.prototype.changed=function(){var n=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||bn(s,function(){var c=i.line,p=ie(i.line),m=Fc(s,p);if(m&&(cd(m),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!jr(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var x=fs(l)-y;x&&Rn(c,c.height+x)}$e(s,"markerChanged",s,n)})},Jr.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ct(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Jr.prototype.detachLine=function(n){if(this.lines.splice(Ct(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Ze(Jr);function mo(n,i,l,s,c){if(s&&s.shared)return Mw(n,i,l,s,c);if(n.cm&&!n.cm.curOp)return De(n.cm,mo)(n,i,l,s,c);var p=new Jr(n,c),m=X(i,l);if(s&&tt(s,p,!1),m>0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=H("span",[p.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(Vh(n,i.line,i,l,p)||i.line!=l.line&&Vh(n,l.line,i,l,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");bb()}p.addToHistory&&Fd(n,{from:i,to:l,origin:"markText"},n.sel,NaN);var y=i.line,x=n.cm,_;if(n.iter(y,l.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&Hn(D)==x.display.maxLine&&(_=!0),p.collapsed&&y!=i.line&&Rn(D,0),xb(D,new Al(p,y==i.line?i.ch:null,y==l.line?l.ch:null),n.cm&&n.cm.curOp),++y}),p.collapsed&&n.iter(i.line,l.line+1,function(D){jr(n,D)&&Rn(D,0)}),p.clearOnEnter&&bt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(yb(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++rp,p.atomic=!0),x){if(_&&(x.curOp.updateMaxLine=!0),p.collapsed)on(x,i.line,l.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var N=i.line;N<=l.line;N++)Gr(x,N,"text");p.atomic&&Gd(x.doc),$e(x,"markerAdded",x,p)}return p}var Ts=function(n,i){this.markers=n,this.primary=i;for(var l=0;l<n.length;++l)n[l].parent=this};Ts.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();$e(this,"clear")}},Ts.prototype.find=function(n,i){return this.primary.find(n,i)},Ze(Ts);function Mw(n,i,l,s,c){s=tt(s),s.shared=!1;var p=[mo(n,i,l,s,c)],m=p[0],y=s.widgetNode;return Yr(n,function(x){y&&(s.widgetNode=y.cloneNode(!0)),p.push(mo(x,Ft(x,i),Ft(x,l),s,c));for(var _=0;_<x.linked.length;++_)if(x.linked[_].isParent)return;m=lt(p)}),new Ts(p,m)}function ip(n){return n.findMarks(I(n.first,0),n.clipPos(I(n.lastLine())),function(i){return i.parent})}function Nw(n,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),p=n.clipPos(c.from),m=n.clipPos(c.to);if(X(p,m)){var y=mo(n,p,m,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function Pw(n){for(var i=function(s){var c=n[s],p=[c.primary.doc];Yr(c.primary.doc,function(x){return p.push(x)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];Ct(p,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},l=0;l<n.length;l++)i(l)}var Ow=0,sn=function(n,i,l,s,c){if(!(this instanceof sn))return new sn(n,i,l,s,c);l==null&&(l=0),ks.call(this,[new Ss([new io("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var p=I(l,0);this.sel=Kr(p),this.history=new jl(null),this.id=++Ow,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),su(this,{from:p,to:p,text:n}),Ve(this,Kr(p),P)};sn.prototype=$t(ks.prototype,{constructor:sn,iter:function(n,i,l){l?this.iterN(n-this.first,i-n,l):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var l=0,s=0;s<i.length;++s)l+=i[s].height;this.insertInner(n-this.first,i,l)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=ro(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Re(function(n){var i=I(this.first,0),l=this.first+this.size-1;go(this,{from:i,to:I(l,Mt(this,l).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&ps(this.cm,0,0),Ve(this,Kr(i),P)}),replaceRange:function(n,i,l,s){i=Ft(this,i),l=l?Ft(this,l):i,vo(this,n,i,l,s)},getRange:function(n,i,l){var s=br(this,Ft(this,n),Ft(this,i));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(T(this,n))return Mt(this,n)},getLineNumber:function(n){return ie(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Mt(this,n)),Hn(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ft(this,n)},getCursor:function(n){var i=this.sel.primary(),l;return n==null||n=="head"?l=i.head:n=="anchor"?l=i.anchor:n=="end"||n=="to"||n===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Re(function(n,i,l){Wd(this,Ft(this,typeof n=="number"?I(n,i||0):n),null,l)}),setSelection:Re(function(n,i,l){Wd(this,Ft(this,n),Ft(this,i||n),l)}),extendSelection:Re(function(n,i,l){Vl(this,Ft(this,n),i&&Ft(this,i),l)}),extendSelections:Re(function(n,i){Bd(this,Oh(this,n),i)}),extendSelectionsBy:Re(function(n,i){var l=gt(this.sel.ranges,n);Bd(this,Oh(this,l),i)}),setSelections:Re(function(n,i,l){if(!!n.length){for(var s=[],c=0;c<n.length;c++)s[c]=new oe(Ft(this,n[c].anchor),Ft(this,n[c].head||n[c].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),Ve(this,Wn(this.cm,s,i),l)}}),addSelection:Re(function(n,i,l){var s=this.sel.ranges.slice(0);s.push(new oe(Ft(this,n),Ft(this,i||n))),Ve(this,Wn(this.cm,s,s.length-1),l)}),getSelection:function(n){for(var i=this.sel.ranges,l,s=0;s<i.length;s++){var c=br(this,i[s].from(),i[s].to());l=l?l.concat(c):c}return n===!1?l:l.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=br(this,l[s].from(),l[s].to());n!==!1&&(c=c.join(n||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(n,i,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=n;this.replaceSelections(s,i,l||"+input")},replaceSelections:Re(function(n,i,l){for(var s=[],c=this.sel,p=0;p<c.ranges.length;p++){var m=c.ranges[p];s[p]={from:m.from(),to:m.to(),text:this.splitLines(n[p]),origin:l}}for(var y=i&&i!="end"&&ww(this,s,i),x=s.length-1;x>=0;x--)go(this,s[x]);y?Ud(this,y):this.cm&&uo(this.cm)}),undo:Re(function(){Yl(this,"undo")}),redo:Re(function(){Yl(this,"redo")}),undoSelection:Re(function(){Yl(this,"undo",!0)}),redoSelection:Re(function(){Yl(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,l=0,s=0;s<n.done.length;s++)n.done[s].ranges||++i;for(var c=0;c<n.undone.length;c++)n.undone[c].ranges||++l;return{undo:i,redo:l}},clearHistory:function(){var n=this;this.history=new jl(this.history),Yr(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ho(this.history.done),undone:ho(this.history.undone)}},setHistory:function(n){var i=this.history=new jl(this.history);i.done=ho(n.done.slice(0),null,!0),i.undone=ho(n.undone.slice(0),null,!0)},setGutterMarker:Re(function(n,i,l){return _s(this,n,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:Re(function(n){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[n]&&_s(i,l,"gutter",function(){return l.gutterMarkers[n]=null,jt(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!T(this,n)||(i=n,n=Mt(this,n),!n))return null}else if(i=ie(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Re(function(n,i,l){return _s(this,n,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=l;else{if(kt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:Re(function(n,i,l){return _s(this,n,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",p=s[c];if(p)if(l==null)s[c]=null;else{var m=p.match(kt(l));if(!m)return!1;var y=m.index+m[0].length;s[c]=p.slice(0,m.index)+(!m.index||y==p.length?"":" ")+p.slice(y)||null}else return!1;return!0})}),addLineWidget:Re(function(n,i,l){return Aw(this,n,i,l)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,l){return mo(this,Ft(this,n),Ft(this,i),l,l&&l.type||"range")},setBookmark:function(n,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ft(this,n),mo(this,n,n,l,"bookmark")},findMarksAt:function(n){n=Ft(this,n);var i=[],l=Mt(this,n.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[s];(c.from==null||c.from<=n.ch)&&(c.to==null||c.to>=n.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(n,i,l){n=Ft(this,n),i=Ft(this,i);var s=[],c=n.line;return this.iter(n.line,i.line+1,function(p){var m=p.markedSpans;if(m)for(var y=0;y<m.length;y++){var x=m[y];!(x.to!=null&&c==n.line&&n.ch>=x.to||x.from==null&&c!=n.line||x.from!=null&&c==i.line&&x.from>=i.ch)&&(!l||l(x.marker))&&s.push(x.marker.parent||x.marker)}++c}),s},getAllMarks:function(){var n=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&n.push(l[s].marker)}),n},posFromIndex:function(n){var i,l=this.first,s=this.lineSeparator().length;return this.iter(function(c){var p=c.text.length+s;if(p>n)return i=n,!0;n-=p,++l}),Ft(this,I(l,i))},indexFromPos:function(n){n=Ft(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,n.line,function(s){i+=s.text.length+l}),i},copy:function(n){var i=new sn(ro(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,l=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<l&&(l=n.to);var s=new sn(ro(this,i,l),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:n.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],Nw(s,ip(this)),s},unlinkDoc:function(n){if(n instanceof be&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),Pw(ip(this));break}}if(n.history==this.history){var s=[n.id];Yr(n,function(c){return s.push(c.id)},!0),n.history=new jl(null),n.history.done=ho(this.history.done,s),n.history.undone=ho(this.history.undone,s)}},iterLinkedDocs:function(n){Yr(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):os(n)},lineSeparator:function(){return this.lineSep||`
21
+ `},setDirection:Re(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&xw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var op=0;function $w(n){var i=this;if(sp(i),!(Se(i,n)||_r(i.display,n))){Ge(n),d&&(op=+new Date);var l=Si(i,n,!0),s=n.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,p=Array(c),m=0,y=function(){++m==c&&De(i,function(){l=Ft(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(p.filter(function(Y){return Y!=null}).join(i.doc.lineSeparator())),origin:"paste"};go(i.doc,q),Ud(i.doc,Kr(Ft(i.doc,l),Ft(i.doc,Xr(q))))})()},x=function(q,Y){if(i.options.allowDropFileTypes&&Ct(i.options.allowDropFileTypes,q.type)==-1){y();return}var it=new FileReader;it.onerror=function(){return y()},it.onload=function(){var ht=it.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ht)){y();return}p[Y]=ht,y()},it.readAsText(q)},_=0;_<s.length;_++)x(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=n.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Kl(i.doc,Kr(l,l)),D)for(var B=0;B<D.length;++B)vo(i.doc,"",D[B].anchor,D[B].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function Dw(n,i){if(d&&(!n.state.draggingText||+new Date-op<100)){vr(i);return}if(!(Se(n,i)||_r(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var l=k("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",M&&(l.width=l.height=1,n.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),M&&l.parentNode.removeChild(l)}}function Rw(n,i){var l=Si(n,i);if(!!l){var s=document.createDocumentFragment();Vc(n,l,s),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),z(n.display.dragCursor,s)}}function sp(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function lp(n){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var p=0;p<l.length;p++)n(l[p])})}}var ap=!1;function zw(){ap||(Iw(),ap=!0)}function Iw(){var n;bt(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,lp(Fw)},100))}),bt(window,"blur",function(){return lp(co)})}function Fw(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.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"},Ls=0;Ls<10;Ls++)Zr[Ls+48]=Zr[Ls+96]=String(Ls);for(var Jl=65;Jl<=90;Jl++)Zr[Jl]=String.fromCharCode(Jl);for(var Es=1;Es<=12;Es++)Zr[Es+111]=Zr[Es+63235]="F"+Es;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 qw(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var l,s,c,p,m=0;m<i.length-1;m++){var y=i[m];if(/^(cmd|meta|m)$/i.test(y))p=!0;else if(/^a(lt)?$/i.test(y))l=!0;else if(/^(c|ctrl|control)$/i.test(y))s=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return l&&(n="Alt-"+n),s&&(n="Ctrl-"+n),p&&(n="Cmd-"+n),c&&(n="Shift-"+n),n}function Hw(n){var i={};for(var l in n)if(n.hasOwnProperty(l)){var s=n[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete n[l];continue}for(var c=gt(l.split(" "),qw),p=0;p<c.length;p++){var m=void 0,y=void 0;p==c.length-1?(y=c.join(" "),m=s):(y=c.slice(0,p+1).join(" "),m="...");var x=i[y];if(!x)i[y]=m;else if(x!=m)throw new Error("Inconsistent bindings for "+y)}delete n[l]}for(var _ in i)n[_]=i[_];return n}function yo(n,i,l,s){i=Zl(i);var c=i.call?i.call(n,s):i[n];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return yo(n,i.fallthrough,l,s);for(var p=0;p<i.fallthrough.length;p++){var m=yo(n,i.fallthrough[p],l,s);if(m)return m}}}function cp(n){var i=typeof n=="string"?n:Zr[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function up(n,i,l){var s=n;return i.altKey&&s!="Alt"&&(n="Alt-"+n),(ut?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(n="Ctrl-"+n),(ut?i.ctrlKey:i.metaKey)&&s!="Mod"&&(n="Cmd-"+n),!l&&i.shiftKey&&s!="Shift"&&(n="Shift-"+n),n}function fp(n,i){if(M&&n.keyCode==34&&n.char)return!1;var l=Zr[n.keyCode];return l==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(l=n.code),up(l,n,i))}function Zl(n){return typeof n=="string"?kr[n]:n}function bo(n,i){for(var l=n.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var p=i(l[c]);s.length&&X(p.from,lt(s).to)<=0;){var m=s.pop();if(X(m.from,p.from)<0){p.from=m.from;break}}s.push(p)}bn(n,function(){for(var y=s.length-1;y>=0;y--)vo(n.doc,"",s[y].from,s[y].to,"+delete");uo(n)})}function uu(n,i,l){var s=ae(n.text,i+l,l);return s<0||s>n.text.length?null:s}function fu(n,i,l){var s=uu(n,i.ch,l);return s==null?null:new I(i.line,s,l<0?"after":"before")}function hu(n,i,l,s,c){if(n){i.doc.direction=="rtl"&&(c=-c);var p=ye(l,i.doc.direction);if(p){var m=c<0?lt(p):p[0],y=c<0==(m.level==1),x=y?"after":"before",_;if(m.level>0||i.doc.direction=="rtl"){var N=so(i,l);_=c<0?l.text.length-1:0;var D=rr(i,N,_).top;_=Yt(function(B){return rr(i,N,B).top==D},c<0==(m.level==1)?m.from:m.to-1,_),x=="before"&&(_=uu(l,_,1))}else _=c<0?m.to:m.from;return new I(s,_,x)}}return new I(s,c<0?l.text.length:0,c<0?"before":"after")}function Bw(n,i,l,s){var c=ye(i,n.doc.direction);if(!c)return fu(i,l,s);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var p=He(c,l.ch,l.sticky),m=c[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(s>0?m.to>l.ch:m.from<l.ch))return fu(i,l,s);var y=function(mt,_t){return uu(i,mt instanceof I?mt.ch:mt,_t)},x,_=function(mt){return n.options.lineWrapping?(x=x||so(n,i),vd(n,i,x,mt)):{begin:0,end:i.text.length}},N=_(l.sticky=="before"?y(l,-1):l.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==s<0,B=y(l,D?1:-1);if(B!=null&&(D?B<=m.to&&B<=N.end:B>=m.from&&B>=N.begin)){var q=D?"before":"after";return new I(l.line,B,q)}}var Y=function(mt,_t,yt){for(var Tt=function(ge,ze){return ze?new I(l.line,y(ge,1),"before"):new I(l.line,ge,"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)}},it=Y(p+s,s,N);if(it)return it;var ht=s>0?N.end:y(N.begin,-1);return ht!=null&&!(s>0&&ht==i.text.length)&&(it=Y(s>0?0:c.length-1,s,_(ht)),it)?it:null}var As={selectAll:Xd,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),P)},killLine:function(n){return bo(n,function(i){if(i.empty()){var l=Mt(n.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<n.lastLine()?{from:i.head,to:I(i.head.line+1,0)}:{from:i.head,to:I(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return bo(n,function(i){return{from:I(i.from().line,0),to:Ft(n.doc,I(i.to().line+1,0))}})},delLineLeft:function(n){return bo(n,function(i){return{from:I(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return bo(n,function(i){var l=n.charCoords(i.head,"div").top+5,s=n.coordsChar({left:0,top:l},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(n){return bo(n,function(i){var l=n.charCoords(i.head,"div").top+5,s=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:l},"div");return{from:i.from(),to:s}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(I(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(I(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return hp(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return dp(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return Ww(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var l=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:l},"div")},J)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var l=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:l},"div")},J)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var l=n.cursorCoords(i.head,"div").top+5,s=n.coordsChar({left:0,top:l},"div");return s.ch<n.getLine(s.line).search(/\S/)?dp(n,i.head):s},J)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],l=n.listSelections(),s=n.options.tabSize,c=0;c<l.length;c++){var p=l[c].from(),m=K(n.getLine(p.line),p.ch,s);i.push(pt(s-m%s))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return bn(n,function(){for(var i=n.listSelections(),l=[],s=0;s<i.length;s++)if(!!i[s].empty()){var c=i[s].head,p=Mt(n.doc,c.line).text;if(p){if(c.ch==p.length&&(c=new I(c.line,c.ch-1)),c.ch>0)c=new I(c.line,c.ch+1),n.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),I(c.line,c.ch-2),c,"+transpose");else if(c.line>n.doc.first){var m=Mt(n.doc,c.line-1).text;m&&(c=new I(c.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),I(c.line-1,m.length-1),c,"+transpose"))}}l.push(new oe(c,c))}n.setSelections(l)})},newlineAndIndent:function(n){return bn(n,function(){for(var i=n.listSelections(),l=i.length-1;l>=0;l--)n.replaceRange(n.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=n.listSelections();for(var s=0;s<i.length;s++)n.indentLine(i[s].from().line,null,!0);uo(n)})},openLine:function(n){return n.replaceSelection(`
22
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function hp(n,i){var l=Mt(n.doc,i),s=Hn(l);return s!=l&&(i=ie(s)),hu(!0,n,s,i,1)}function Ww(n,i){var l=Mt(n.doc,i),s=Tb(l);return s!=l&&(i=ie(s)),hu(!0,n,l,i,-1)}function dp(n,i){var l=hp(n,i.line),s=Mt(n.doc,l.line),c=ye(s,n.doc.direction);if(!c||c[0].level==0){var p=Math.max(l.ch,s.text.search(/\S/)),m=i.line==l.line&&i.ch<=p&&i.ch;return I(l.line,m?0:p,l.sticky)}return l}function Ql(n,i,l){if(typeof i=="string"&&(i=As[i],!i))return!1;n.display.input.ensurePolled();var s=n.display.shift,c=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),l&&(n.display.shift=!1),c=i(n)!=Lt}finally{n.display.shift=s,n.state.suppressEdits=!1}return c}function Uw(n,i,l){for(var s=0;s<n.state.keyMaps.length;s++){var c=yo(i,n.state.keyMaps[s],l,n);if(c)return c}return n.options.extraKeys&&yo(i,n.options.extraKeys,l,n)||yo(i,n.options.keyMap,l,n)}var jw=new st;function Ms(n,i,l,s){var c=n.state.keySeq;if(c){if(cp(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:jw.set(50,function(){n.state.keySeq==c&&(n.state.keySeq=null,n.display.input.reset())}),pp(n,c+" "+i,l,s))return!0}return pp(n,i,l,s)}function pp(n,i,l,s){var c=Uw(n,i,s);return c=="multi"&&(n.state.keySeq=i),c=="handled"&&$e(n,"keyHandled",n,i,l),(c=="handled"||c=="multi")&&(Ge(l),Kc(n)),!!c}function gp(n,i){var l=fp(i,!0);return l?i.shiftKey&&!n.state.keySeq?Ms(n,"Shift-"+l,i,function(s){return Ql(n,s,!0)})||Ms(n,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Ql(n,s)}):Ms(n,l,i,function(s){return Ql(n,s)}):!1}function Gw(n,i,l){return Ms(n,"'"+l+"'",i,function(s){return Ql(n,s,!0)})}var du=null;function vp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=wt(Gt(i)),!Se(i,n))){d&&g<11&&n.keyCode==27&&(n.returnValue=!1);var l=n.keyCode;i.display.shift=l==16||n.shiftKey;var s=gp(i,n);M&&(du=s?l:null,!s&&l==88&&!Zn&&(G?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!G&&!s&&l==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Vw(i)}}function Vw(n){var i=n.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 mp(n){n.keyCode==16&&(this.doc.sel.shift=!1),Se(this,n)}function yp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(_r(i.display,n)||Se(i,n)||n.ctrlKey&&!n.altKey||G&&n.metaKey)){var l=n.keyCode,s=n.charCode;if(M&&l==du){du=null,Ge(n);return}if(!(M&&(!n.which||n.which<10)&&gp(i,n))){var c=String.fromCharCode(s??l);c!="\b"&&(Gw(i,n,c)||i.display.input.onKeyPress(n))}}}var Kw=400,pu=function(n,i,l){this.time=n,this.pos=i,this.button=l};pu.prototype.compare=function(n,i,l){return this.time+Kw>n&&X(i,this.pos)==0&&l==this.button};var Ns,Ps;function Xw(n,i){var l=+new Date;return Ps&&Ps.compare(l,n,i)?(Ns=Ps=null,"triple"):Ns&&Ns.compare(l,n,i)?(Ps=new pu(l,n,i),Ns=null,"double"):(Ns=new pu(l,n,i),Ps=null,"single")}function bp(n){var i=this,l=i.display;if(!(Se(i,n)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=n.shiftKey,_r(l,n)){v||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!gu(i,n)){var s=Si(i,n),c=is(n),p=s?Xw(s,c):"single";re(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(n),!(s&&Yw(i,c,s,p,n))&&(c==1?s?Zw(i,s,p,n):rn(n)==l.scroller&&Ge(n):c==2?(s&&Vl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(n):Xc(i)))}}}function Yw(n,i,l,s,c){var p="Click";return s=="double"?p="Double"+p:s=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Ms(n,up(p,c),c,function(m){if(typeof m=="string"&&(m=As[m]),!m)return!1;var y=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),y=m(n,l)!=Lt}finally{n.state.suppressEdits=!1}return y})}function Jw(n,i,l){var s=n.getOption("configureMouse"),c=s?s(n,i,l):{};if(c.unit==null){var p=V?l.shiftKey&&l.metaKey:l.altKey;c.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||n.doc.extend)&&(c.extend=n.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=G?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(G?l.altKey:l.ctrlKey)),c}function Zw(n,i,l,s){d?setTimeout(Q(wd,n),0):n.curOp.focus=wt(Gt(n));var c=Jw(n,l,s),p=n.doc.sel,m;n.options.dragDrop&&Lc&&!n.isReadOnly()&&l=="single"&&(m=p.contains(i))>-1&&(X((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(X(m.to(),i)>0||i.xRel<0)?Qw(n,s,i,c):tx(n,s,i,c)}function Qw(n,i,l,s){var c=n.display,p=!1,m=De(n,function(_){v&&(c.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Xc(n)),je(c.wrapper.ownerDocument,"mouseup",m),je(c.wrapper.ownerDocument,"mousemove",y),je(c.scroller,"dragstart",x),je(c.scroller,"drop",m),p||(Ge(_),s.addNew||Vl(n.doc,l,null,null,s.extend),v&&!A||d&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){p=p||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},x=function(){return p=!0};v&&(c.scroller.draggable=!0),n.state.draggingText=m,m.copy=!s.moveOnDrag,bt(c.wrapper.ownerDocument,"mouseup",m),bt(c.wrapper.ownerDocument,"mousemove",y),bt(c.scroller,"dragstart",x),bt(c.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function wp(n,i,l){if(l=="char")return new oe(i,i);if(l=="word")return n.findWordAt(i);if(l=="line")return new oe(I(i.line,0),Ft(n.doc,I(i.line+1,0)));var s=l(n,i);return new oe(s.from,s.to)}function tx(n,i,l,s){d&&Xc(n);var c=n.display,p=n.doc;Ge(i);var m,y,x=p.sel,_=x.ranges;if(s.addNew&&!s.extend?(y=p.sel.contains(l),y>-1?m=_[y]:m=new oe(l,l)):(m=p.sel.primary(),y=p.sel.primIndex),s.unit=="rectangle")s.addNew||(m=new oe(l,l)),l=Si(n,i,!0,!0),y=-1;else{var N=wp(n,l,s.unit);s.extend?m=au(m,N.anchor,N.head,s.extend):m=N}s.addNew?y==-1?(y=_.length,Ve(p,Wn(n,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ve(p,Wn(n,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):cu(p,y,m,F):(y=0,Ve(p,new An([m],0),F),x=p.sel);var D=l;function B(yt){if(X(D,yt)!=0)if(D=yt,s.unit=="rectangle"){for(var Tt=[],Dt=n.options.tabSize,Pt=K(Mt(p,l.line).text,l.ch,Dt),Ut=K(Mt(p,yt.line).text,yt.ch,Dt),ge=Math.min(Pt,Ut),ze=Math.max(Pt,Ut),_e=Math.min(l.line,yt.line),wn=Math.min(n.lastLine(),Math.max(l.line,yt.line));_e<=wn;_e++){var ln=Mt(p,_e).text,Ae=nt(ln,ge,Dt);ge==ze?Tt.push(new oe(I(_e,Ae),I(_e,Ae))):ln.length>Ae&&Tt.push(new oe(I(_e,Ae),I(_e,nt(ln,ze,Dt))))}Tt.length||Tt.push(new oe(l,l)),Ve(p,Wn(n,x.ranges.slice(0,y).concat(Tt),y),{origin:"*mouse",scroll:!1}),n.scrollIntoView(yt)}else{var an=m,Be=wp(n,yt,s.unit),Oe=an.anchor,Me;X(Be.anchor,Oe)>0?(Me=Be.head,Oe=Pe(an.from(),Be.anchor)):(Me=Be.anchor,Oe=te(an.to(),Be.head));var Ce=x.ranges.slice(0);Ce[y]=ex(n,new oe(Ft(p,Oe),Me)),Ve(p,Wn(n,Ce,y),F)}}var q=c.wrapper.getBoundingClientRect(),Y=0;function it(yt){var Tt=++Y,Dt=Si(n,yt,!0,s.unit=="rectangle");if(!!Dt)if(X(Dt,D)!=0){n.curOp.focus=wt(Gt(n)),B(Dt);var Pt=Hl(c,p);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout(De(n,function(){Y==Tt&&it(yt)}),150)}else{var Ut=yt.clientY<q.top?-20:yt.clientY>q.bottom?20:0;Ut&&setTimeout(De(n,function(){Y==Tt&&(c.scroller.scrollTop+=Ut,it(yt))}),50)}}function ht(yt){n.state.selectingText=!1,Y=1/0,yt&&(Ge(yt),c.input.focus()),je(c.wrapper.ownerDocument,"mousemove",mt),je(c.wrapper.ownerDocument,"mouseup",_t),p.history.lastSelOrigin=null}var mt=De(n,function(yt){yt.buttons===0||!is(yt)?ht(yt):it(yt)}),_t=De(n,ht);n.state.selectingText=_t,bt(c.wrapper.ownerDocument,"mousemove",mt),bt(c.wrapper.ownerDocument,"mouseup",_t)}function ex(n,i){var l=i.anchor,s=i.head,c=Mt(n.doc,l.line);if(X(l,s)==0&&l.sticky==s.sticky)return i;var p=ye(c);if(!p)return i;var m=He(p,l.ch,l.sticky),y=p[m];if(y.from!=l.ch&&y.to!=l.ch)return i;var x=m+(y.from==l.ch==(y.level!=1)?0:1);if(x==0||x==p.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var N=He(p,s.ch,s.sticky),D=N-m||(s.ch-l.ch)*(y.level==1?-1:1);N==x-1||N==x?_=D<0:_=D>0}var B=p[x+(_?-1:0)],q=_==(B.level==1),Y=q?B.from:B.to,it=q?"after":"before";return l.ch==Y&&l.sticky==it?i:new oe(new I(l.line,Y,it),s)}function xp(n,i,l,s){var c,p;if(i.touches)c=i.touches[0].clientX,p=i.touches[0].clientY;else try{c=i.clientX,p=i.clientY}catch{return!1}if(c>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;s&&Ge(i);var m=n.display,y=m.lineDiv.getBoundingClientRect();if(p>y.bottom||!Je(n,l))return rs(i);p-=y.top-m.viewOffset;for(var x=0;x<n.display.gutterSpecs.length;++x){var _=m.gutters.childNodes[x];if(_&&_.getBoundingClientRect().right>=c){var N=tr(n.doc,p),D=n.display.gutterSpecs[x];return me(n,l,n,N,D.className,i),rs(i)}}}function gu(n,i){return xp(n,i,"gutterClick",!0)}function _p(n,i){_r(n.display,i)||nx(n,i)||Se(n,i,"contextmenu")||vt||n.display.input.onContextMenu(i)}function nx(n,i){return Je(n,"gutterContextMenu")?xp(n,i,"gutterContextMenu",!1):!1}function Sp(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hs(n)}var wo={toString:function(){return"CodeMirror.Init"}},kp={},ta={};function rx(n){var i=n.optionHandlers;function l(s,c,p,m){n.defaults[s]=c,p&&(i[s]=m?function(y,x,_){_!=wo&&p(y,x,_)}:p)}n.defineOption=l,n.Init=wo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,ou(s)},!0),l("indentUnit",2,ou,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){ws(s),hs(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var p=[],m=s.doc.first;s.doc.iter(function(x){for(var _=0;;){var N=x.text.indexOf(c,_);if(N==-1)break;_=N+c.length,p.push(I(m,N))}m++});for(var y=p.length-1;y>=0;y--)vo(s.doc,c,p[y],I(p[y].line,p[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,p){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=wo&&s.refresh()}),l("specialCharPlaceholder",Pb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",O?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),l("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),l("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),l("rtlMoveVisually",!rt),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){Sp(s),bs(s)},!0),l("keyMap","default",function(s,c,p){var m=Zl(c),y=p!=wo&&Zl(p);y&&y.detach&&y.detach(s,m),m.attach&&m.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,ox,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=ru(c,s.options.lineNumbers),bs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?jc(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return fo(s)},!0),l("scrollbarStyle","native",function(s){Td(s),fo(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=ru(s.options.gutters,c),bs(s)},!0),l("firstLineNumber",1,bs,!0),l("lineNumberFormatter",function(s){return s},bs,!0),l("showCursorWhenSelecting",!1,ds,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(co(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,ix),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,ds,!0),l("singleCursorHeightPerLine",!0,ds,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,ws,!0),l("addModeClass",!1,ws,!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,ws,!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 ix(n,i,l){var s=l&&l!=wo;if(!i!=!s){var c=n.display.dragFunctions,p=i?bt:je;p(n.display.scroller,"dragstart",c.start),p(n.display.scroller,"dragenter",c.enter),p(n.display.scroller,"dragover",c.over),p(n.display.scroller,"dragleave",c.leave),p(n.display.scroller,"drop",c.drop)}}function ox(n){n.options.lineWrapping?(Et(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(ft(n.display.wrapper,"CodeMirror-wrap"),Dc(n)),Gc(n),on(n),hs(n),setTimeout(function(){return fo(n)},100)}function be(n,i){var l=this;if(!(this instanceof be))return new be(n,i);this.options=i=i?tt(i):{},tt(kp,i,!1);var s=i.value;typeof s=="string"?s=new sn(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new be.inputStyles[i.inputStyle](this),p=this.display=new yw(n,s,c,i);p.wrapper.CodeMirror=this,Sp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Td(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&&!O&&p.input.focus(),d&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),sx(this),zw(),Li(this),this.curOp.forceUpdate=!0,Rd(this,s),i.autofocus&&!O||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Yc(l)},20):co(this);for(var m in ta)ta.hasOwnProperty(m)&&ta[m](this,i[m],wo);Ad(this),i.finishInit&&i.finishInit(this);for(var y=0;y<vu.length;++y)vu[y](this);Ei(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}be.defaults=kp,be.optionHandlers=ta;function sx(n){var i=n.display;bt(i.scroller,"mousedown",De(n,bp)),d&&g<11?bt(i.scroller,"dblclick",De(n,function(x){if(!Se(n,x)){var _=Si(n,x);if(!(!_||gu(n,x)||_r(n.display,x))){Ge(x);var N=n.findWordAt(_);Vl(n.doc,N.anchor,N.head)}}})):bt(i.scroller,"dblclick",function(x){return Se(n,x)||Ge(x)}),bt(i.scroller,"contextmenu",function(x){return _p(n,x)}),bt(i.input.getField(),"contextmenu",function(x){i.scroller.contains(x.target)||_p(n,x)});var l,s={end:0};function c(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function p(x){if(x.touches.length!=1)return!1;var _=x.touches[0];return _.radiusX<=1&&_.radiusY<=1}function m(x,_){if(_.left==null)return!0;var N=_.left-x.left,D=_.top-x.top;return N*N+D*D>20*20}bt(i.scroller,"touchstart",function(x){if(!Se(n,x)&&!p(x)&&!gu(n,x)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),bt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),bt(i.scroller,"touchend",function(x){var _=i.activeTouch;if(_&&!_r(i,x)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=n.coordsChar(i.activeTouch,"page"),D;!_.prev||m(_,_.prev)?D=new oe(N,N):!_.prev.prev||m(_,_.prev.prev)?D=n.findWordAt(N):D=new oe(I(N.line,0),Ft(n.doc,I(N.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),Ge(x)}c()}),bt(i.scroller,"touchcancel",c),bt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(gs(n,i.scroller.scrollTop),Ci(n,i.scroller.scrollLeft,!0),me(n,"scroll",n))}),bt(i.scroller,"mousewheel",function(x){return Pd(n,x)}),bt(i.scroller,"DOMMouseScroll",function(x){return Pd(n,x)}),bt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Se(n,x)||vr(x)},over:function(x){Se(n,x)||(Rw(n,x),vr(x))},start:function(x){return Dw(n,x)},drop:De(n,$w),leave:function(x){Se(n,x)||sp(n)}};var y=i.input.getField();bt(y,"keyup",function(x){return mp.call(n,x)}),bt(y,"keydown",De(n,vp)),bt(y,"keypress",De(n,yp)),bt(y,"focus",function(x){return Yc(n,x)}),bt(y,"blur",function(x){return co(n,x)})}var vu=[];be.defineInitHook=function(n){return vu.push(n)};function Os(n,i,l,s){var c=n.doc,p;l==null&&(l="add"),l=="smart"&&(c.mode.indent?p=ls(n,i).state:l="prev");var m=n.options.tabSize,y=Mt(c,i),x=K(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!s&&!/\S/.test(y.text))N=0,l="not";else if(l=="smart"&&(N=c.mode.indent(p,y.text.slice(_.length),y.text),N==Lt||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=K(Mt(c,i-1).text,null,m):N=0:l=="add"?N=x+n.options.indentUnit:l=="subtract"?N=x-n.options.indentUnit:typeof l=="number"&&(N=x+l),N=Math.max(0,N);var D="",B=0;if(n.options.indentWithTabs)for(var q=Math.floor(N/m);q;--q)B+=m,D+=" ";if(B<N&&(D+=pt(N-B)),D!=_)return vo(c,D,I(i,0),I(i,_.length),"+input"),y.stateAfter=null,!0;for(var Y=0;Y<c.sel.ranges.length;Y++){var it=c.sel.ranges[Y];if(it.head.line==i&&it.head.ch<_.length){var ht=I(i,_.length);cu(c,Y,new oe(ht,ht));break}}}var Un=null;function ea(n){Un=n}function mu(n,i,l,s,c){var p=n.doc;n.display.shift=!1,s||(s=p.sel);var m=+new Date-200,y=c=="paste"||n.state.pasteIncoming>m,x=os(i),_=null;if(y&&s.ranges.length>1)if(Un&&Un.text.join(`
23
+ `)==i){if(s.ranges.length%Un.text.length==0){_=[];for(var N=0;N<Un.text.length;N++)_.push(p.splitLines(Un.text[N]))}}else x.length==s.ranges.length&&n.options.pasteLinesPerSelection&&(_=gt(x,function(mt){return[mt]}));for(var D=n.curOp.updateInput,B=s.ranges.length-1;B>=0;B--){var q=s.ranges[B],Y=q.from(),it=q.to();q.empty()&&(l&&l>0?Y=I(Y.line,Y.ch-l):n.state.overwrite&&!y?it=I(it.line,Math.min(Mt(p,it.line).text.length,it.ch+lt(x).length)):y&&Un&&Un.lineWise&&Un.text.join(`
24
+ `)==x.join(`
25
+ `)&&(Y=it=I(Y.line,0)));var ht={from:Y,to:it,text:_?_[B%_.length]:x,origin:c||(y?"paste":n.state.cutIncoming>m?"cut":"+input")};go(n.doc,ht),$e(n,"inputRead",n,ht)}i&&!y&&Tp(n,i),uo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Cp(n,i){var l=n.clipboardData&&n.clipboardData.getData("Text");if(l)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return mu(i,l,0,null,"paste")}),!0}function Tp(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var l=n.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var p=n.getModeAt(c.head),m=!1;if(p.electricChars){for(var y=0;y<p.electricChars.length;y++)if(i.indexOf(p.electricChars.charAt(y))>-1){m=Os(n,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Mt(n.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Os(n,c.head.line,"smart"));m&&$e(n,"electricInput",n,c.head.line)}}}function Lp(n){for(var i=[],l=[],s=0;s<n.doc.sel.ranges.length;s++){var c=n.doc.sel.ranges[s].head.line,p={anchor:I(c,0),head:I(c+1,0)};l.push(p),i.push(n.getRange(p.anchor,p.head))}return{text:i,ranges:l}}function yu(n,i,l,s){n.setAttribute("autocorrect",l?"on":"off"),n.setAttribute("autocapitalize",s?"on":"off"),n.setAttribute("spellcheck",!!i)}function Ep(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),L&&(n.style.border="1px solid black"),i}function lx(n){var i=n.optionHandlers,l=n.helpers={};n.prototype={constructor:n,focus:function(){re(this).focus(),this.display.input.focus()},setOption:function(s,c){var p=this.options,m=p[s];p[s]==c&&s!="mode"||(p[s]=c,i.hasOwnProperty(s)&&De(this,i[s])(this,c,m),me(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](Zl(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,p=0;p<c.length;++p)if(c[p]==s||c[p].name==s)return c.splice(p,1),!0},addOverlay:Qe(function(s,c){var p=s.token?s:n.getMode(this.options,s);if(p.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:p,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,on(this)}),removeOverlay:Qe(function(s){for(var c=this.state.overlays,p=0;p<c.length;++p){var m=c[p].modeSpec;if(m==s||typeof s=="string"&&m.name==s){c.splice(p,1),this.state.modeGen++,on(this);return}}}),indentLine:Qe(function(s,c,p){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),T(this.doc,s)&&Os(this,s,c,p)}),indentSelection:Qe(function(s){for(var c=this.doc.sel.ranges,p=-1,m=0;m<c.length;m++){var y=c[m];if(y.empty())y.head.line>p&&(Os(this,y.head.line,s,!0),p=y.head.line,m==this.doc.sel.primIndex&&uo(this));else{var x=y.from(),_=y.to(),N=Math.max(p,x.line);p=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=N;D<p;++D)Os(this,D,s);var B=this.doc.sel.ranges;x.ch==0&&c.length==B.length&&B[m].from().ch>0&&cu(this.doc,m,new oe(x,B[m].to()),P)}}}),getTokenAt:function(s,c){return Ih(this,s,c)},getLineTokens:function(s,c){return Ih(this,I(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=Dh(this,Mt(this.doc,s.line)),p=0,m=(c.length-1)/2,y=s.ch,x;if(y==0)x=c[2];else for(;;){var _=p+m>>1;if((_?c[_*2-1]:0)>=y)m=_;else if(c[_*2+1]<y)p=_+1;else{x=c[_*2+2];break}}var N=x?x.indexOf("overlay "):-1;return N<0?x:N==0?null:x.slice(0,N-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?n.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var p=[];if(!l.hasOwnProperty(c))return p;var m=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")m[y[c]]&&p.push(m[y[c]]);else if(y[c])for(var x=0;x<y[c].length;x++){var _=m[y[c][x]];_&&p.push(_)}else y.helperType&&m[y.helperType]?p.push(m[y.helperType]):m[y.name]&&p.push(m[y.name]);for(var N=0;N<m._global.length;N++){var D=m._global[N];D.pred(y,this)&&Ct(p,D.val)==-1&&p.push(D.val)}return p},getStateAfter:function(s,c){var p=this.doc;return s=En(p,s??p.first+p.size-1),ls(this,s+1,c).state},cursorCoords:function(s,c){var p,m=this.doc.sel.primary();return s==null?p=m.head:typeof s=="object"?p=Ft(this.doc,s):p=s?m.from():m.to(),Bn(this,p,c||"page")},charCoords:function(s,c){return zl(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=dd(this,s,c||"page"),Bc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=dd(this,{top:s,left:0},c||"page").top,tr(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,p){var m=!1,y;if(typeof s=="number"){var x=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>x&&(s=x,m=!0),y=Mt(this.doc,s)}else y=s;return Rl(this,y,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-xr(y):0)},defaultTextHeight:function(){return lo(this.display)},defaultCharWidth:function(){return ao(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,p,m,y){var x=this.display;s=Bn(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),x.sizer.appendChild(c),m=="over")_=s.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),B=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||s.bottom+c.offsetHeight>D)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=D&&(_=s.bottom),N+c.offsetWidth>B&&(N=B-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=x.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(x.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),p&&iw(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Qe(vp),triggerOnKeyPress:Qe(yp),triggerOnKeyUp:mp,triggerOnMouseDown:Qe(bp),execCommand:function(s){if(As.hasOwnProperty(s))return As[s].call(null,this)},triggerElectric:Qe(function(s){Tp(this,s)}),findPosH:function(s,c,p,m){var y=1;c<0&&(y=-1,c=-c);for(var x=Ft(this.doc,s),_=0;_<c&&(x=bu(this.doc,x,y,p,m),!x.hitSide);++_);return x},moveH:Qe(function(s,c){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?bu(p.doc,m.head,s,c,p.options.rtlMoveVisually):s<0?m.from():m.to()},J)}),deleteH:Qe(function(s,c){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):bo(this,function(y){var x=bu(m,y.head,s,c,!1);return s<0?{from:x,to:y.head}:{from:y.head,to:x}})}),findPosV:function(s,c,p,m){var y=1,x=m;c<0&&(y=-1,c=-c);for(var _=Ft(this.doc,s),N=0;N<c;++N){var D=Bn(this,_,"div");if(x==null?x=D.left:D.left=x,_=Ap(this,D,y,p),_.hitSide)break}return _},moveV:Qe(function(s,c){var p=this,m=this.doc,y=[],x=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(N){if(x)return s<0?N.from():N.to();var D=Bn(p,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),y.push(D.left);var B=Ap(p,D,s,c);return c=="page"&&N==m.sel.primary()&&Zc(p,zl(p,B,"div").top-D.top),B},J),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,p=Mt(c,s.line).text,m=s.ch,y=s.ch;if(p){var x=this.getHelper(s,"wordChars");(s.sticky=="before"||y==p.length)&&m?--m:++y;for(var _=p.charAt(m),N=Rt(_,x)?function(D){return Rt(D,x)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Rt(D)};m>0&&N(p.charAt(m-1));)--m;for(;y<p.length&&N(p.charAt(y));)++y}return new oe(I(s.line,m),I(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Et(this.display.cursorDiv,"CodeMirror-overwrite"):ft(this.display.cursorDiv,"CodeMirror-overwrite"),me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt(Gt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Qe(function(s,c){ps(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-nr(this)-this.display.barHeight,width:s.scrollWidth-nr(this)-this.display.barWidth,clientHeight:Ic(this),clientWidth:xi(this)}},scrollIntoView:Qe(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:I(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?ow(this,s):_d(this,s.from,s.to,s.margin)}),setSize:Qe(function(s,c){var p=this,m=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};s!=null&&(this.display.wrapper.style.width=m(s)),c!=null&&(this.display.wrapper.style.height=m(c)),this.options.lineWrapping&&ud(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(x){if(x.widgets){for(var _=0;_<x.widgets.length;_++)if(x.widgets[_].noHScroll){Gr(p,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,me(this,"refresh",this)}),operation:function(s){return bn(this,s)},startOperation:function(){return Li(this)},endOperation:function(){return Ei(this)},refresh:Qe(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,hs(this),ps(this,this.doc.scrollLeft,this.doc.scrollTop),eu(this.display),(s==null||Math.abs(s-lo(this.display))>.5||this.options.lineWrapping)&&Gc(this),me(this,"refresh",this)}),swapDoc:Qe(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Rd(this,s),hs(this),this.display.input.reset(),ps(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,$e(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(n),n.registerHelper=function(s,c,p){l.hasOwnProperty(s)||(l[s]=n[s]={_global:[]}),l[s][c]=p},n.registerGlobalHelper=function(s,c,p,m){n.registerHelper(s,c,m),l[s]._global.push({pred:p,val:m})}}function bu(n,i,l,s,c){var p=i,m=l,y=Mt(n,i.line),x=c&&n.direction=="rtl"?-l:l;function _(){var _t=i.line+x;return _t<n.first||_t>=n.first+n.size?!1:(i=new I(_t,i.ch,i.sticky),y=Mt(n,_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 I(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Dt?2:1))),-l)}}else c?yt=Bw(n.cm,y,i,l):yt=fu(y,i,l);if(yt==null)if(!_t&&_())i=hu(c,n.cm,y,i.line,x);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 D=null,B=s=="group",q=n.cm&&n.cm.getHelper(i,"wordChars"),Y=!0;!(l<0&&!N(!Y));Y=!1){var it=y.text.charAt(i.ch)||`
26
+ `,ht=Rt(it,q)?"w":B&&it==`
27
+ `?"n":!B||/\s/.test(it)?null:"p";if(B&&!Y&&!ht&&(ht="s"),D&&D!=ht){l<0&&(l=1,N(),i.sticky="after");break}if(ht&&(D=ht),l>0&&!N(!Y))break}var mt=Xl(n,i,p,m,!0);return It(p,mt)&&(mt.hitSide=!0),mt}function Ap(n,i,l,s){var c=n.doc,p=i.left,m;if(s=="page"){var y=Math.min(n.display.wrapper.clientHeight,re(n).innerHeight||c(n).documentElement.clientHeight),x=Math.max(y-.5*lo(n.display),3);m=(l>0?i.bottom:i.top)+l*x}else s=="line"&&(m=l>0?i.bottom+3:i.top-3);for(var _;_=Bc(n,p,m),!!_.outside;){if(l<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=l*5}return _}var ue=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new st,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ue.prototype.init=function(n){var i=this,l=this,s=l.cm,c=l.div=n.lineDiv;c.contentEditable=!0,yu(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function p(y){for(var x=y.target;x;x=x.parentNode){if(x==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}bt(c,"paste",function(y){!p(y)||Se(s,y)||Cp(y,s)||g<=11&&setTimeout(De(s,function(){return i.updateFromDOM()}),20)}),bt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),bt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),bt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),bt(c,"touchstart",function(){return l.forceCompositionEnd()}),bt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!p(y)||Se(s,y))){if(s.somethingSelected())ea({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var x=Lp(s);ea({lineWise:!0,text:x.text}),y.type=="cut"&&s.operation(function(){s.setSelections(x.ranges,0,P),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Un.text.join(`
28
+ `);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=Ep(),D=N.firstChild;yu(D),s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),D.value=Un.text.join(`
29
+ `);var B=wt(c.ownerDocument);Bt(D),setTimeout(function(){s.display.lineSpace.removeChild(N),B.focus(),B==c&&l.showPrimarySelection()},50)}}bt(c,"copy",m),bt(c,"cut",m)},ue.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},ue.prototype.prepareSelection=function(){var n=bd(this.cm,!1);return n.focus=wt(this.div.ownerDocument)==this.div,n},ue.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},ue.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ue.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){n.removeAllRanges();return}var p=na(i,n.anchorNode,n.anchorOffset),m=na(i,n.focusNode,n.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&X(Pe(p,m),s)==0&&X(te(p,m),c)==0)){var y=i.display.view,x=s.line>=i.display.viewFrom&&Mp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&Mp(i,c);if(!_){var N=y[y.length-1].measure,D=N.maps?N.maps[N.maps.length-1]:N.map;_={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!x||!_){n.removeAllRanges();return}var B=n.rangeCount&&n.getRangeAt(0),q;try{q=W(x.node,x.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(n.collapse(x.node,x.offset),q.collapsed||(n.removeAllRanges(),n.addRange(q))):(n.removeAllRanges(),n.addRange(q)),B&&n.anchorNode==null?n.addRange(B):a&&this.startGracePeriod()),this.rememberSelection()}},ue.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},ue.prototype.showMultipleSelections=function(n){z(this.cm.display.cursorDiv,n.cursors),z(this.cm.display.selectionDiv,n.selection)},ue.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},ue.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return et(this.div,i)},ue.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||wt(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ue.prototype.blur=function(){this.div.blur()},ue.prototype.getField=function(){return this.div},ue.prototype.supportsTouch=function(){return!0},ue.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):bn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function l(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},ue.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},ue.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if($&&w&&this.cm.display.gutterSpecs.length&&ax(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=na(i,n.anchorNode,n.anchorOffset),s=na(i,n.focusNode,n.focusOffset);l&&s&&bn(i,function(){Ve(i.doc,Kr(l,s),P),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},ue.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,l=n.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>n.firstLine()&&(s=I(s.line-1,Mt(n.doc,s.line-1).length)),c.ch==Mt(n.doc,c.line).text.length&&c.line<n.lastLine()&&(c=I(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var p,m,y;s.line==i.viewFrom||(p=ki(n,s.line))==0?(m=ie(i.view[0].line),y=i.view[0].node):(m=ie(i.view[p].line),y=i.view[p-1].node.nextSibling);var x=ki(n,c.line),_,N;if(x==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=ie(i.view[x+1].line)-1,N=i.view[x+1].node.previousSibling),!y)return!1;for(var D=n.doc.splitLines(cx(n,y,N,m,_)),B=br(n.doc,I(m,0),I(_,Mt(n.doc,_).text.length));D.length>1&&B.length>1;)if(lt(D)==lt(B))D.pop(),B.pop(),_--;else if(D[0]==B[0])D.shift(),B.shift(),m++;else break;for(var q=0,Y=0,it=D[0],ht=B[0],mt=Math.min(it.length,ht.length);q<mt&&it.charCodeAt(q)==ht.charCodeAt(q);)++q;for(var _t=lt(D),yt=lt(B),Tt=Math.min(_t.length-(D.length==1?q:0),yt.length-(B.length==1?q:0));Y<Tt&&_t.charCodeAt(_t.length-Y-1)==yt.charCodeAt(yt.length-Y-1);)++Y;if(D.length==1&&B.length==1&&m==s.line)for(;q&&q>s.ch&&_t.charCodeAt(_t.length-Y-1)==yt.charCodeAt(yt.length-Y-1);)q--,Y++;D[D.length-1]=_t.slice(0,_t.length-Y).replace(/^\u200b+/,""),D[0]=D[0].slice(q).replace(/\u200b+$/,"");var Dt=I(m,q),Pt=I(_,B.length?lt(B).length-Y:0);if(D.length>1||D[0]||X(Dt,Pt))return vo(n.doc,D,Dt,Pt,"+input"),!0},ue.prototype.ensurePolled=function(){this.forceCompositionEnd()},ue.prototype.reset=function(){this.forceCompositionEnd()},ue.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ue.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},ue.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return on(n.cm)})},ue.prototype.setUneditable=function(n){n.contentEditable="false"},ue.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||De(this.cm,mu)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},ue.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},ue.prototype.onContextMenu=function(){},ue.prototype.resetPosition=function(){},ue.prototype.needsContentAttribute=!0;function Mp(n,i){var l=Fc(n,i.line);if(!l||l.hidden)return null;var s=Mt(n.doc,i.line),c=od(l,s,i.line),p=ye(s,n.doc.direction),m="left";if(p){var y=He(p,i.ch);m=y%2?"right":"left"}var x=ad(c.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function ax(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function xo(n,i){return i&&(n.bad=!0),n}function cx(n,i,l,s,c){var p="",m=!1,y=n.doc.lineSeparator(),x=!1;function _(q){return function(Y){return Y.id==q}}function N(){m&&(p+=y,x&&(p+=y),m=x=!1)}function D(q){q&&(N(),p+=q)}function B(q){if(q.nodeType==1){var Y=q.getAttribute("cm-text");if(Y){D(Y);return}var it=q.getAttribute("cm-marker"),ht;if(it){var mt=n.findMarks(I(s,0),I(c+1,0),_(+it));mt.length&&(ht=mt[0].find(0))&&D(br(n.doc,ht.from,ht.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)&&(x=!0),_t&&(m=!0)}else q.nodeType==3&&D(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(i),i!=l;)i=i.nextSibling,x=!1;return p}function na(n,i,l){var s;if(i==n.display.lineDiv){if(s=n.display.lineDiv.childNodes[l],!s)return xo(n.clipPos(I(n.display.viewTo-1)),!0);i=null,l=0}else for(s=i;;s=s.parentNode){if(!s||s==n.display.lineDiv)return null;if(s.parentNode&&s.parentNode==n.display.lineDiv)break}for(var c=0;c<n.display.view.length;c++){var p=n.display.view[c];if(p.node==s)return ux(p,i,l)}}function ux(n,i,l){var s=n.text.firstChild,c=!1;if(!i||!et(s,i))return xo(I(ie(n.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var p=n.rest?lt(n.rest):n.line;return xo(I(ie(p),p.text.length),c)}var m=i.nodeType==3?i:null,y=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,l&&(l=m.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var x=n.measure,_=x.maps;function N(ht,mt,_t){for(var yt=-1;yt<(_?_.length:0);yt++)for(var Tt=yt<0?x.map:_[yt],Dt=0;Dt<Tt.length;Dt+=3){var Pt=Tt[Dt+2];if(Pt==ht||Pt==mt){var Ut=ie(yt<0?n.line:n.rest[yt]),ge=Tt[Dt]+_t;return(_t<0||Pt!=ht)&&(ge=Tt[Dt+(_t?1:0)]),I(Ut,ge)}}}var D=N(m,y,l);if(D)return xo(D,c);for(var B=y.nextSibling,q=m?m.nodeValue.length-l:0;B;B=B.nextSibling){if(D=N(B,B.firstChild,0),D)return xo(I(D.line,D.ch-q),c);q+=B.textContent.length}for(var Y=y.previousSibling,it=l;Y;Y=Y.previousSibling){if(D=N(Y,Y.firstChild,-1),D)return xo(I(D.line,D.ch+it),c);it+=Y.textContent.length}}var Te=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new st,this.hasSelection=!1,this.composing=null,this.resetting=!1};Te.prototype.init=function(n){var i=this,l=this,s=this.cm;this.createField(n);var c=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),L&&(c.style.width="0px"),bt(c,"input",function(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),bt(c,"paste",function(m){Se(s,m)||Cp(m,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function p(m){if(!Se(s,m)){if(s.somethingSelected())ea({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=Lp(s);ea({lineWise:!0,text:y.text}),m.type=="cut"?s.setSelections(y.ranges,null,P):(l.prevInput="",c.value=y.text.join(`
30
+ `),Bt(c))}else return;m.type=="cut"&&(s.state.cutIncoming=+new Date)}}bt(c,"cut",p),bt(c,"copy",p),bt(n.scroller,"paste",function(m){if(!(_r(n,m)||Se(s,m))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),bt(n.lineSpace,"selectstart",function(m){_r(n,m)||Ge(m)}),bt(c,"compositionstart",function(){var m=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:m,range:s.markText(m,s.getCursor("to"),{className:"CodeMirror-composing"})}}),bt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Te.prototype.createField=function(n){this.wrapper=Ep(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;yu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Te.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var n=this.cm,i=n.display,l=n.doc,s=bd(n);if(n.options.moveInputWithCursor){var c=Bn(n,l.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-p.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-p.left))}return s},Te.prototype.showSelection=function(n){var i=this.cm,l=i.display;z(l.cursorDiv,n.cursors),z(l.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Te.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Bt(this.textarea),d&&g>=9&&(this.hasSelection=l)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Te.prototype.getField=function(){return this.textarea},Te.prototype.supportsTouch=function(){return!1},Te.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!O||wt(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Te.prototype.blur=function(){this.textarea.blur()},Te.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Te.prototype.receivedFocus=function(){this.slowPoll()},Te.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Te.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function l(){var s=i.poll();!s&&!n?(n=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},Te.prototype.poll=function(){var n=this,i=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Hr(l)&&!s&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=l.value;if(c==s&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===c||G&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=c.charCodeAt(0);if(p==8203&&!s&&(s="​"),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,y=Math.min(s.length,c.length);m<y&&s.charCodeAt(m)==c.charCodeAt(m);)++m;return bn(i,function(){mu(i,c.slice(m),s.length-m,null,n.composing?"*compose":null),c.length>1e3||c.indexOf(`
31
+ `)>-1?l.value=n.prevInput="":n.prevInput=c,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Te.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Te.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Te.prototype.onContextMenu=function(n){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=Si(l,n),m=s.scroller.scrollTop;if(!p||M)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(p)==-1&&De(l,Ve)(l.doc,Kr(p),P);var x=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;
32
+ top: `+(n.clientY-N.top-5)+"px; left: "+(n.clientX-N.left-5)+`px;
33
+ z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
34
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=c.ownerDocument.defaultView.scrollY),s.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function B(){if(c.selectionStart!=null){var it=l.somethingSelected(),ht="​"+(it?c.value:"");c.value="⇚",c.value=ht,i.prevInput=it?"":"​",c.selectionStart=1,c.selectionEnd=ht.length,s.selForContextMenu=l.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=x,d&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=m),c.selectionStart!=null)){(!d||d&&g<9)&&B();var it=0,ht=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="​"?De(l,Xd)(l):it++<10?s.detectingSelectAll=setTimeout(ht,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ht,200)}}if(d&&g>=9&&B(),vt){vr(n);var Y=function(){je(window,"mouseup",Y),setTimeout(q,20)};bt(window,"mouseup",Y)}else setTimeout(q,50)},Te.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Te.prototype.setUneditable=function(){},Te.prototype.needsContentAttribute=!1;function fx(n,i){if(i=i?tt(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var l=wt(n.ownerDocument);i.autofocus=l==n||n.getAttribute("autofocus")!=null&&l==document.body}function s(){n.value=y.getValue()}var c;if(n.form&&(bt(n.form,"submit",s),!i.leaveSubmitMethodAlone)){var p=n.form;c=p.submit;try{var m=p.submit=function(){s(),p.submit=c,p.submit(),p.submit=m}}catch{}}i.finishInit=function(x){x.save=s,x.getTextArea=function(){return n},x.toTextArea=function(){x.toTextArea=isNaN,s(),n.parentNode.removeChild(x.getWrapperElement()),n.style.display="",n.form&&(je(n.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=c))}},n.style.display="none";var y=be(function(x){return n.parentNode.insertBefore(x,n.nextSibling)},i);return y}function hx(n){n.off=je,n.on=bt,n.wheelEventPixels=bw,n.Doc=sn,n.splitLines=os,n.countColumn=K,n.findColumn=nt,n.isWordChar=Ot,n.Pass=Lt,n.signal=me,n.Line=io,n.changeEnd=Xr,n.scrollbarModel=Cd,n.Pos=I,n.cmpPos=X,n.modes=qn,n.mimeModes=Br,n.resolveMode=yn,n.getMode=mr,n.modeExtensions=Wr,n.extendMode=Ll,n.copyState=yr,n.startState=ss,n.innerMode=Ur,n.commands=As,n.keyMap=kr,n.keyName=fp,n.isModifierKey=cp,n.lookupKey=yo,n.normalizeKeyMap=Hw,n.StringStream=ke,n.SharedTextMarker=Ts,n.TextMarker=Jr,n.LineWidget=Cs,n.e_preventDefault=Ge,n.e_stopPropagation=wi,n.e_stop=vr,n.addClass=Et,n.contains=et,n.rmClass=ft,n.keyNames=Zr}rx(be),lx(be);var dx="iter insert remove copy getEditor constructor".split(" ");for(var ra in sn.prototype)sn.prototype.hasOwnProperty(ra)&&Ct(dx,ra)<0&&(be.prototype[ra]=function(n){return function(){return n.apply(this.doc,arguments)}}(sn.prototype[ra]));return Ze(sn),be.inputStyles={textarea:Te,contenteditable:ue},be.defineMode=function(n){!be.defaults.mode&&n!="null"&&(be.defaults.mode=n),Tl.apply(this,arguments)},be.defineMIME=no,be.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),be.defineMIME("text/plain","null"),be.defineExtension=function(n,i){be.prototype[n]=i},be.defineDocExtension=function(n,i){sn.prototype[n]=i},be.fromTextArea=fx,hx(be),be.version="5.65.11",be})}(zu)),zu.exports}var _lt=ts(),xv={exports:{}},_v;function ky(){return _v||(_v=1,function(t,e){(function(r){r(ts())})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,d=a.json||h,g=a.trackScope!==!1,v=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function T(Pe){return{type:Pe,style:"keyword"}}var R=T("keyword a"),I=T("keyword b"),X=T("keyword c"),It=T("keyword d"),Vt=T("operator"),te={type:"atom",style:"atom"};return{if:T("if"),while:R,with:R,else:I,do:I,try:I,finally:I,return:It,break:It,continue:It,new:T("new"),delete:X,void:X,throw:X,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:te,false:te,null:te,undefined:te,NaN:te,Infinity:te,this:T("this"),class:T("class"),super:T("atom"),yield:X,export:T("export"),import:T("import"),extends:X,await:X}}(),S=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(T){for(var R=!1,I,X=!1;(I=T.next())!=null;){if(!R){if(I=="/"&&!X)return;I=="["?X=!0:X&&I=="]"&&(X=!1)}R=!R&&I=="\\"}}var E,C;function L(T,R,I){return E=T,C=I,R}function $(T,R){var I=T.next();if(I=='"'||I=="'")return R.tokenize=O(I),R.tokenize(T,R);if(I=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(I=="."&&T.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(I))return L(I);if(I=="="&&T.eat(">"))return L("=>","operator");if(I=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(I))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(I=="/")return T.eat("*")?(R.tokenize=G,G(T,R)):T.eat("/")?(T.skipToEnd(),L("comment","comment")):tr(T,R,1)?(A(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(T.eat("="),L("operator","operator",T.current()));if(I=="`")return R.tokenize=V,V(T,R);if(I=="#"&&T.peek()=="!")return T.skipToEnd(),L("meta","meta");if(I=="#"&&T.eatWhile(b))return L("variable","property");if(I=="<"&&T.match("!--")||I=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),L("comment","comment");if(S.test(I))return(I!=">"||!R.lexical||R.lexical.type!=">")&&(T.eat("=")?(I=="!"||I=="=")&&T.eat("="):/[<>*+\-|&?]/.test(I)&&(T.eat(I),I==">"&&T.eat(I))),I=="?"&&T.eat(".")?L("."):L("operator","operator",T.current());if(b.test(I)){T.eatWhile(b);var X=T.current();if(R.lastType!="."){if(w.propertyIsEnumerable(X)){var It=w[X];return L(It.type,It.style,X)}if(X=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",X)}return L("variable","variable",X)}}function O(T){return function(R,I){var X=!1,It;if(h&&R.peek()=="@"&&R.match(M))return I.tokenize=$,L("jsonld-keyword","meta");for(;(It=R.next())!=null&&!(It==T&&!X);)X=!X&&It=="\\";return X||(I.tokenize=$),L("string","string")}}function G(T,R){for(var I=!1,X;X=T.next();){if(X=="/"&&I){R.tokenize=$;break}I=X=="*"}return L("comment","comment")}function V(T,R){for(var I=!1,X;(X=T.next())!=null;){if(!I&&(X=="`"||X=="$"&&T.eat("{"))){R.tokenize=$;break}I=!I&&X=="\\"}return L("quasi","string-2",T.current())}var rt="([{}])";function Z(T,R){R.fatArrowAt&&(R.fatArrowAt=null);var I=T.string.indexOf("=>",T.start);if(!(I<0)){if(v){var X=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,I));X&&(I=X.index)}for(var It=0,Vt=!1,te=I-1;te>=0;--te){var Pe=T.string.charAt(te),En=rt.indexOf(Pe);if(En>=0&&En<3){if(!It){++te;break}if(--It==0){Pe=="("&&(Vt=!0);break}}else if(En>=3&&En<6)++It;else if(b.test(Pe))Vt=!0;else if(/["'\/`]/.test(Pe))for(;;--te){if(te==0)return;var Ft=T.string.charAt(te-1);if(Ft==Pe&&T.string.charAt(te-2)!="\\"){te--;break}}else if(Vt&&!It){++te;break}}Vt&&!It&&(R.fatArrowAt=te)}}var ut={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vt(T,R,I,X,It,Vt){this.indented=T,this.column=R,this.type=I,this.prev=It,this.info=Vt,X!=null&&(this.align=X)}function kt(T,R){if(!g)return!1;for(var I=T.localVars;I;I=I.next)if(I.name==R)return!0;for(var X=T.context;X;X=X.prev)for(var I=X.vars;I;I=I.next)if(I.name==R)return!0}function ft(T,R,I,X,It){var Vt=T.cc;for(U.state=T,U.stream=It,U.marked=null,U.cc=Vt,U.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var te=Vt.length?Vt.pop():d?Lt:Ct;if(te(I,X)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return U.marked?U.marked:I=="variable"&&kt(T,X)?"variable-2":R}}}var U={state:null,column:null,marked:null,cc:null};function z(){for(var T=arguments.length-1;T>=0;T--)U.cc.push(arguments[T])}function k(){return z.apply(null,arguments),!0}function H(T,R){for(var I=R;I;I=I.next)if(I.name==T)return!0;return!1}function W(T){var R=U.state;if(U.marked="def",!!g){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var I=et(T,R.context);if(I!=null){R.context=I;return}}else if(!H(T,R.localVars)){R.localVars=new qt(T,R.localVars);return}}a.globalVars&&!H(T,R.globalVars)&&(R.globalVars=new qt(T,R.globalVars))}}function et(T,R){if(R)if(R.block){var I=et(T,R.prev);return I?I==R.prev?R:new Et(I,R.vars,!0):null}else return H(T,R.vars)?R:new Et(R.prev,new qt(T,R.vars),!1);else return null}function wt(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Et(T,R,I){this.prev=T,this.vars=R,this.block=I}function qt(T,R){this.name=T,this.next=R}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 re(){U.state.context=new Et(U.state.context,U.state.localVars,!0),U.state.localVars=null}Gt.lex=re.lex=!0;function Q(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}Q.lex=!0;function tt(T,R){var I=function(){var X=U.state,It=X.indented;if(X.lexical.type=="stat")It=X.lexical.indented;else for(var Vt=X.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;X.lexical=new vt(It,U.stream.column(),T,null,X.lexical,R)};return I.lex=!0,I}function K(){var T=U.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}K.lex=!0;function st(T){function R(I){return I==T?k():T==";"||I=="}"||I==")"||I=="]"?z():k(R)}return R}function Ct(T,R){return T=="var"?k(tt("vardef",R),vr,st(";"),K):T=="keyword a"?k(tt("form"),F,Ct,K):T=="keyword b"?k(tt("form"),Ct,K):T=="keyword d"?U.stream.match(/^\s*$/,!1)?k():k(tt("stat"),nt,st(";"),K):T=="debugger"?k(st(";")):T=="{"?k(tt("}"),re,Ln,K,Q):T==";"?k():T=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==K&&U.state.cc.pop()(),k(tt("form"),F,Ct,K,eo)):T=="function"?k(Zn):T=="for"?k(tt("form"),re,kl,Ct,Q,K):T=="class"||v&&R=="interface"?(U.marked="keyword",k(tt("form",T=="class"?T:R),Tl,K)):T=="variable"?v&&R=="declare"?(U.marked="keyword",k(Ct)):v&&(R=="module"||R=="enum"||R=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",R=="enum"?k(ro):R=="type"?k(Cl,st("operator"),bt,st(";")):k(tt("form"),rn,st("{"),tt("}"),Ln,K,K)):v&&R=="namespace"?(U.marked="keyword",k(tt("form"),Lt,Ct,K)):v&&R=="abstract"?(U.marked="keyword",k(Ct)):k(tt("stat"),Rt):T=="switch"?k(tt("form"),F,st("{"),tt("}","switch"),re,Ln,K,K,Q):T=="case"?k(Lt,st(":")):T=="default"?k(st(":")):T=="catch"?k(tt("form"),Gt,pe,Ct,K,Q):T=="export"?k(tt("stat"),Wr,K):T=="import"?k(tt("stat"),yr,K):T=="async"?k(Ct):R=="@"?k(Lt,Ct):z(tt("stat"),Lt,st(";"),K)}function pe(T){if(T=="(")return k(qn,st(")"))}function Lt(T,R){return J(T,R,!1)}function P(T,R){return J(T,R,!0)}function F(T){return T!="("?z():k(tt(")"),nt,st(")"),K)}function J(T,R,I){if(U.state.fatArrowAt==U.stream.start){var X=I?ct:xt;if(T=="(")return k(Gt,tt(")"),Yt(qn,")"),K,st("=>"),X,Q);if(T=="variable")return z(Gt,rn,st("=>"),X,Q)}var It=I?pt:ot;return ut.hasOwnProperty(T)?k(It):T=="function"?k(Zn,It):T=="class"||v&&R=="interface"?(U.marked="keyword",k(tt("form"),Br,K)):T=="keyword c"||T=="async"?k(I?P:Lt):T=="("?k(tt(")"),nt,st(")"),K,It):T=="operator"||T=="spread"?k(I?P:Lt):T=="["?k(tt("]"),br,K,It):T=="{"?mn(Qt,"}",null,It):T=="quasi"?z(lt,It):T=="new"?k($t(I)):k()}function nt(T){return T.match(/[;\}\)\],]/)?z():z(Lt)}function ot(T,R){return T==","?k(nt):pt(T,R,!1)}function pt(T,R,I){var X=I==!1?ot:pt,It=I==!1?Lt:P;if(T=="=>")return k(Gt,I?ct:xt,Q);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(X):v&&R=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(tt(">"),Yt(bt,">"),K,X):R=="?"?k(Lt,st(":"),It):k(It);if(T=="quasi")return z(lt,X);if(T!=";"){if(T=="(")return mn(P,")","call",X);if(T==".")return k(jt,X);if(T=="[")return k(tt("]"),nt,st("]"),K,X);if(v&&R=="as")return U.marked="keyword",k(bt,X);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,R){return T!="quasi"?z():R.slice(R.length-2)!="${"?k(lt):k(nt,gt)}function gt(T){if(T=="}")return U.marked="string-2",U.state.tokenize=V,k(lt)}function xt(T){return Z(U.stream,U.state),z(T=="{"?Ct:Lt)}function ct(T){return Z(U.stream,U.state),z(T=="{"?Ct:P)}function $t(T){return function(R){return R=="."?k(T?Ot:Nt):R=="variable"&&v?k(Ge,T?pt:ot):z(T?P:Lt)}}function Nt(T,R){if(R=="target")return U.marked="keyword",k(ot)}function Ot(T,R){if(R=="target")return U.marked="keyword",k(pt)}function Rt(T){return T==":"?k(K,Ct):z(ot,st(";"),K)}function jt(T){if(T=="variable")return U.marked="property",k()}function Qt(T,R){if(T=="async")return U.marked="property",k(Qt);if(T=="variable"||U.style=="keyword"){if(U.marked="property",R=="get"||R=="set")return k(Zt);var I;return v&&U.state.fatArrowAt==U.stream.start&&(I=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+I[0].length),k(ae)}else{if(T=="number"||T=="string")return U.marked=h?"property":U.style+" property",k(ae);if(T=="jsonld-keyword")return k(ae);if(v&&wt(R))return U.marked="keyword",k(Qt);if(T=="[")return k(Lt,He,st("]"),ae);if(T=="spread")return k(P,ae);if(R=="*")return U.marked="keyword",k(Qt);if(T==":")return z(ae)}}function Zt(T){return T!="variable"?z(ae):(U.marked="property",k(Zn))}function ae(T){if(T==":")return k(P);if(T=="(")return z(Zn)}function Yt(T,R,I){function X(It,Vt){if(I?I.indexOf(It)>-1:It==","){var te=U.state.lexical;return te.info=="call"&&(te.pos=(te.pos||0)+1),k(function(Pe,En){return Pe==R||En==R?z():z(T)},X)}return It==R||Vt==R?k():I&&I.indexOf(";")>-1?z(T):k(st(R))}return function(It,Vt){return It==R||Vt==R?k():z(T,X)}}function mn(T,R,I){for(var X=3;X<arguments.length;X++)U.cc.push(arguments[X]);return k(tt(R,I),Yt(T,R),K)}function Ln(T){return T=="}"?k():z(Ct,Ln)}function He(T,R){if(v){if(T==":")return k(bt);if(R=="?")return k(He)}}function to(T,R){if(v&&(T==":"||R=="in"))return k(bt)}function ye(T){if(v&&T==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?k(Lt,nn,bt):k(bt)}function nn(T,R){if(R=="is")return U.marked="keyword",k()}function bt(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return U.marked="keyword",k(R=="typeof"?P:bt);if(T=="variable"||R=="void")return U.marked="type",k(Ze);if(R=="|"||R=="&")return k(bt);if(T=="string"||T=="number"||T=="atom")return k(Ze);if(T=="[")return k(tt("]"),Yt(bt,"]",","),K,Ze);if(T=="{")return k(tt("}"),je,K,Ze);if(T=="(")return k(Yt(Je,")"),ns,Ze);if(T=="<")return k(Yt(bt,">"),bt);if(T=="quasi")return z(Se,Ze)}function ns(T){if(T=="=>")return k(bt)}function je(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(je):z(me,je)}function me(T,R){if(T=="variable"||U.style=="keyword")return U.marked="property",k(me);if(R=="?"||T=="number"||T=="string")return k(me);if(T==":")return k(bt);if(T=="[")return k(st("variable"),to,st("]"),me);if(T=="(")return z(Qn,me);if(!T.match(/[;\}\)\],]/))return k()}function Se(T,R){return T!="quasi"?z():R.slice(R.length-2)!="${"?k(Se):k(bt,Sl)}function Sl(T){if(T=="}")return U.marked="string-2",U.state.tokenize=V,k(Se)}function Je(T,R){return T=="variable"&&U.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Je):T==":"?k(bt):T=="spread"?k(Je):z(bt)}function Ze(T,R){if(R=="<")return k(tt(">"),Yt(bt,">"),K,Ze);if(R=="|"||T=="."||R=="&")return k(bt);if(T=="[")return k(bt,st("]"),Ze);if(R=="extends"||R=="implements")return U.marked="keyword",k(bt);if(R=="?")return k(bt,st(":"),bt)}function Ge(T,R){if(R=="<")return k(tt(">"),Yt(bt,">"),K,Ze)}function wi(){return z(bt,rs)}function rs(T,R){if(R=="=")return k(bt)}function vr(T,R){return R=="enum"?(U.marked="keyword",k(ro)):z(rn,He,Dn,Ec)}function rn(T,R){if(v&&wt(R))return U.marked="keyword",k(rn);if(T=="variable")return W(R),k();if(T=="spread")return k(rn);if(T=="[")return mn(Lc,"]");if(T=="{")return mn(is,"}")}function is(T,R){return T=="variable"&&!U.stream.match(/^\s*:/,!1)?(W(R),k(Dn)):(T=="variable"&&(U.marked="property"),T=="spread"?k(rn):T=="}"?z():T=="["?k(Lt,st("]"),st(":"),is):k(st(":"),rn,Dn))}function Lc(){return z(rn,Dn)}function Dn(T,R){if(R=="=")return k(P)}function Ec(T){if(T==",")return k(vr)}function eo(T,R){if(T=="keyword b"&&R=="else")return k(tt("form","else"),Ct,K)}function kl(T,R){if(R=="await")return k(kl);if(T=="(")return k(tt(")"),os,K)}function os(T){return T=="var"?k(vr,Hr):T=="variable"?k(Hr):z(Hr)}function Hr(T,R){return T==")"?k():T==";"?k(Hr):R=="in"||R=="of"?(U.marked="keyword",k(Lt,Hr)):z(Lt,Hr)}function Zn(T,R){if(R=="*")return U.marked="keyword",k(Zn);if(T=="variable")return W(R),k(Zn);if(T=="(")return k(Gt,tt(")"),Yt(qn,")"),K,ye,Ct,Q);if(v&&R=="<")return k(tt(">"),Yt(wi,">"),K,Zn)}function Qn(T,R){if(R=="*")return U.marked="keyword",k(Qn);if(T=="variable")return W(R),k(Qn);if(T=="(")return k(Gt,tt(")"),Yt(qn,")"),K,ye,Q);if(v&&R=="<")return k(tt(">"),Yt(wi,">"),K,Qn)}function Cl(T,R){if(T=="keyword"||T=="variable")return U.marked="type",k(Cl);if(R=="<")return k(tt(">"),Yt(wi,">"),K)}function qn(T,R){return R=="@"&&k(Lt,qn),T=="spread"?k(qn):v&&wt(R)?(U.marked="keyword",k(qn)):v&&T=="this"?k(He,Dn):z(rn,He,Dn)}function Br(T,R){return T=="variable"?Tl(T,R):no(T,R)}function Tl(T,R){if(T=="variable")return W(R),k(no)}function no(T,R){if(R=="<")return k(tt(">"),Yt(wi,">"),K,no);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(U.marked="keyword"),k(v?bt:Lt,no);if(T=="{")return k(tt("}"),yn,K)}function yn(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&wt(R))&&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,He,st("]"),mr,yn);if(R=="*")return U.marked="keyword",k(yn);if(v&&T=="(")return z(Qn,yn);if(T==";"||T==",")return k(yn);if(T=="}")return k();if(R=="@")return k(Lt,yn)}function mr(T,R){if(R=="!"||R=="?")return k(mr);if(T==":")return k(bt,Dn);if(R=="=")return k(P);var I=U.state.lexical.prev,X=I&&I.info=="interface";return z(X?Qn:Zn)}function Wr(T,R){return R=="*"?(U.marked="keyword",k(Mt,st(";"))):R=="default"?(U.marked="keyword",k(Lt,st(";"))):T=="{"?k(Yt(Ll,"}"),Mt,st(";")):z(Ct)}function Ll(T,R){if(R=="as")return U.marked="keyword",k(st("variable"));if(T=="variable")return z(P,Ll)}function yr(T){return T=="string"?k():T=="("?z(Lt):T=="."?z(ot):z(Ur,ss,Mt)}function Ur(T,R){return T=="{"?mn(Ur,"}"):(T=="variable"&&W(R),R=="*"&&(U.marked="keyword"),k(ke))}function ss(T){if(T==",")return k(Ur,ss)}function ke(T,R){if(R=="as")return U.marked="keyword",k(Ur)}function Mt(T,R){if(R=="from")return U.marked="keyword",k(Lt)}function br(T){return T=="]"?k():z(Yt(P,"]"))}function ro(){return z(tt("form"),rn,st("{"),tt("}"),Yt(Rn,"}"),K,K)}function Rn(){return z(rn,Dn)}function ie(T,R){return T.lastType=="operator"||T.lastType==","||S.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function tr(T,R,I){return R.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(I||0)))}return{startState:function(T){var R={tokenize:$,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"&&(R.globalVars=a.globalVars),R},token:function(T,R){if(T.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=T.indentation(),Z(T,R)),R.tokenize!=G&&T.eatSpace())return null;var I=R.tokenize(T,R);return E=="comment"?I:(R.lastType=E=="operator"&&(C=="++"||C=="--")?"incdec":E,ft(R,I,E,C,T))},indent:function(T,R){if(T.tokenize==G||T.tokenize==V)return r.Pass;if(T.tokenize!=$)return 0;var I=R&&R.charAt(0),X=T.lexical,It;if(!/^\s*else\b/.test(R))for(var Vt=T.cc.length-1;Vt>=0;--Vt){var te=T.cc[Vt];if(te==K)X=X.prev;else if(te!=eo&&te!=Q)break}for(;(X.type=="stat"||X.type=="form")&&(I=="}"||(It=T.cc[T.cc.length-1])&&(It==ot||It==pt)&&!/^[,\.=+\-*:?[\(]/.test(R));)X=X.prev;f&&X.type==")"&&X.prev.type=="stat"&&(X=X.prev);var Pe=X.type,En=I==Pe;return Pe=="vardef"?X.indented+(T.lastType=="operator"||T.lastType==","?X.info.length+1:0):Pe=="form"&&I=="{"?X.indented:Pe=="form"?X.indented+u:Pe=="stat"?X.indented+(ie(T,R)?f||u:0):X.info=="switch"&&!En&&a.doubleIndentSwitch!=!1?X.indented+(/^(?:case|default)\b/.test(R)?u:2*u):X.align?X.column+(En?0:1):X.indented+(En?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:tr,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})})}()),xv.exports}ky();var Slt={exports:{}};(function(t,e){(function(r){r(ts())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,d={},g=f.htmlMode?o:a;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var b,w;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(E("atom","]]>")):null:k.match("--")?W(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(C(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=E("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=V,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 E(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 L(k){return k&&k.toLowerCase()}function $(k,H,W){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=W,(d.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function O(k){k.context&&(k.context=k.context.prev)}function G(k,H){for(var W;;){if(!k.context||(W=k.context.tagName,!d.contextGrabbers.hasOwnProperty(L(W))||!d.contextGrabbers[L(W)].hasOwnProperty(L(H))))return;O(k)}}function V(k,H,W){return k=="openTag"?(W.tagStart=H.column(),rt):k=="closeTag"?Z:V}function rt(k,H,W){return k=="word"?(W.tagName=H.current(),w="tag",kt):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",kt(k,H,W)):(w="error",rt)}function Z(k,H,W){if(k=="word"){var et=H.current();return W.context&&W.context.tagName!=et&&d.implicitlyClosed.hasOwnProperty(L(W.context.tagName))&&O(W),W.context&&W.context.tagName==et||d.matchClosing===!1?(w="tag",ut):(w="tag error",vt)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",ut(k,H,W)):(w="error",vt)}function ut(k,H,W){return k!="endTag"?(w="error",ut):(O(W),V)}function vt(k,H,W){return w="error",ut(k,H,W)}function kt(k,H,W){if(k=="word")return w="attribute",ft;if(k=="endTag"||k=="selfcloseTag"){var et=W.tagName,wt=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(L(et))?G(W,et):(G(W,et),W.context=new $(W,et,wt==W.indented)),V}return w="error",kt}function ft(k,H,W){return k=="equals"?U:(d.allowMissing||(w="error"),kt(k,H,W))}function U(k,H,W){return k=="string"?z:k=="word"&&d.allowUnquoted?(w="string",kt):(w="error",kt(k,H,W))}function z(k,H,W){return k=="string"?z:kt(k,H,W)}return{startState:function(k){var H={tokenize:S,state:V,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"&&(w=null,H.state=H.state(b||W,k,H),w&&(W=w=="error"?W+" error":w)),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 d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var wt=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(wt&&wt[1])for(;et;)if(et.tagName==wt[2]){et=et.prev;break}else if(d.implicitlyClosed.hasOwnProperty(L(et.tagName)))et=et.prev;else break;else if(wt)for(;et;){var Et=d.contextGrabbers[L(et.tagName)];if(Et&&Et.hasOwnProperty(L(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:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==U&&(k.state=kt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],W=k.context;W;W=W.prev)H.push(W.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(t,e){(function(r){r(ts(),Slt.exports,ky())})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}function a(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&a(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(u,f&&f.base||"javascript");function g(S){var M=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=M,A}function v(S,M){return M.context.mode==h?b(S,M,M.context):w(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 E=g(A.state),C=A.state.context;if(C&&S.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?E-=u.indentUnit:A.prev.state.lexical&&(E=A.prev.state.lexical.indented)}else A.depth==1&&(E+=u.indentUnit);return M.context=new o(r.startState(d,E),d,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,v(S,M)}var L=h.token(S,A.state),$=S.current(),O;return/\btag\b/.test(L)?/>$/.test($)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test($)&&(A.depth=1):!L&&(O=$.indexOf("{"))>-1&&S.backUp($.length-O),L}function w(S,M,A){if(S.peek()=="<"&&d.expressionAllowed(S,A.state))return M.context=new o(r.startState(h,d.indent(A.state,"","")),h,0,M.context),d.skipExpression(A.state),null;var E=d.token(S,A.state);if(!E&&A.depth!=null){var C=S.current();C=="{"?A.depth++:C=="}"&&--A.depth==0&&(M.context=M.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(S){return{context:a(S.context)}},token:v,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,e){(function(r){r(ts())})(function(r){r.defineOption("placeholder","",function(g,v,b){var w=b&&b!=r.Init;if(v&&!w)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!v&&w){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var S=g.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function a(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),v.appendChild(b),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var b=g.getInputField();v=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}v?a(g):o(g)},20)}function f(g){d(g)&&a(g)}function h(g){var v=g.getWrapperElement(),b=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(ts())})(function(r){function o(f,h,d){this.orientation=h,this.scroll=d,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(b){if(b.which!=1)return;r.e_preventDefault(b);var w=g.orientation=="horizontal"?"pageX":"pageY",S=b[w],M=g.pos;function A(){r.off(document,"mousemove",E),r.off(document,"mouseup",A)}function E(C){if(C.which!=1)return A();g.moveTo(M+(C[w]-S)*(g.total/g.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var w=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientX<w.left?-1:b.clientX>w.right?1:0:S=b.clientY<w.top?-1:b.clientY>w.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function v(b){var w=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+w),g.pos!=S&&r.e_preventDefault(b)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var a=10;o.prototype.update=function(f,h,d){var g=this.screen!=h||this.total!=f||this.size!=d;g&&(this.screen=h,this.total=f,this.size=d);var v=this.screen*(this.size/this.total);v<a&&(this.size-=a-v,v=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,d){this.addClass=f,this.horiz=new o(f,"horizontal",d),h(this.horiz.node),this.vert=new o(f,"vertical",d),h(this.vert.node),this.width=null}u.prototype.update=function(f){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var d=this.width||0,g=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?d:0)),this.vert.node.style.bottom=g?d+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?d:0)-f.barLeft),this.horiz.node.style.right=v?d+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?d:0,bottom:g?d:0}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function klt(t,e,r={}){const o=_lt.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}e.value=o.getValue()}),Fe(e,u=>{if(u!==o.getValue()){a=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(1/0)),o.setSelections(f)}},{immediate:!0}),Uf(o)}const Clt={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Cy=le({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:e,emit:r}){const o=t,a=m_(),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=bT(o,"modelValue",r,{passive:!0}),d=hl();return e({cm:d}),gl(async()=>{d.value=klt(f,h,{...o,...a,mode:u[o.mode||""]||o.mode,readOnly:o.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){r("save",g.getValue())},"Ctrl-S":function(g){r("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(at(),At("div",Clt,[dt("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tlt=le({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:e}){const r=t,o=Kt(""),a=hl(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 Ue.rpc.readFile(r.file.filepath),a.value=o.value,u.value=!1},{immediate:!0});const f=St(()=>{var C,L;return((L=(C=r.file)==null?void 0:C.filepath)==null?void 0:L.split(/\./g).pop())||"js"}),h=Kt(),d=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(L=>{var $;return(($=L.result)==null?void 0:$.state)==="fail"}))||[]}),v=[],b=[],w=[],S=Kt(!1),M=()=>{w.forEach(([C,L,$])=>{C.removeEventListener("click",L),$()}),w.length=0};hT(h,()=>{var C;(C=d.value)==null||C.refresh()});function A(){u.value=a.value!==d.value.getValue()}Fe(u,C=>{e("draft",C)},{immediate:!0}),Fe([d,g],([C])=>{if(!C){M();return}setTimeout(()=>{M(),v.forEach(L=>L.clear()),b.forEach(L=>{var $;return($=d.value)==null?void 0:$.removeLineClass(L,"wrap")}),v.length=0,b.length=0,C.on("changes",A),g.value.forEach(L=>{var G;const $=(G=L.result)==null?void 0:G.error,O=(($==null?void 0:$.stacks)||[]).filter(V=>{var rt;return V.file&&V.file===((rt=r.file)==null?void 0:rt.filepath)});if(O.length){const V=O[0].sourcePos||O[0],rt=document.createElement("div");rt.className="op80 flex gap-x-2 items-center";const Z=document.createElement("pre");Z.className="c-red-600 dark:c-red-400",Z.textContent=`${" ".repeat(V.column)}^ ${$==null?void 0:$.nameStr}: ${$==null?void 0:$.message}`,rt.appendChild(Z);const ut=document.createElement("span");ut.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ut.tabIndex=0,ut.ariaLabel="Open in Editor",L0(ut,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await _y(O[0].file,V.line,V.column)};rt.appendChild(ut),w.push([ut,vt,()=>uh(ut)]),b.push(d.value.addLineClass(V.line-1,"wrap","bg-red-500/10")),v.push(d.value.addLineWidget(V.line-1,rt))}}),S.value||C.clearHistory()},100)},{flush:"post"});async function E(C){S.value=!0,await Ue.rpc.writeFile(r.file.filepath,C),a.value=C,u.value=!1}return(C,L)=>{const $=Cy;return at(),ne($,hi({ref_key:"editor",ref:h,modelValue:j(o),"onUpdate:modelValue":L[0]||(L[0]=O=>Ee(o)?o.value=O:null),"h-full":""},{lineNumbers:!0},{mode:j(f),"data-testid":"code-mirror",onSave:E}),null,16,["modelValue","mode"])}}}),Llt=le({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const e=t,r=St(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=St(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}});return(a,u)=>(at(),At("div",{class:ve(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[dt("div",{class:ve(["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),dt("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[j(r)]]),style:kn(t.modelValue?{}:{transform:j(o)})},[Xn(a.$slots,"default")],6)],2))}}),Elt=["aria-label","opacity","disabled","hover"],es=le({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(t){return(e,r)=>(at(),At("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Xn(e.$slots,"default",{},()=>[dt("div",{class:ve(t.icon),ma:""},null,2)])],8,Elt))}}),Alt={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Mlt={"p-4":"",relative:""},Nlt=dt("p",null,"Module Info",-1),Plt={op50:"","font-mono":"","text-sm":""},Olt={key:0,"p-5":""},$lt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Dlt=dt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Rlt=dt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),zlt={key:0},Ilt={p:"x3 y-1","bg-overlay":"",border:"base b t"},Flt=le({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:e}){const r=t,o=IC(()=>Ue.rpc.getTransformResult(r.id)),a=St(()=>{var d;return((d=r.id)==null?void 0:d.split(/\./g).pop())||"js"}),u=St(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.source)==null?void 0:g.trim())||""}),f=St(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=St(()=>{var d,g,v,b;return{mappings:((g=(d=o.value)==null?void 0:d.map)==null?void 0:g.mappings)??"",version:(b=(v=o.value)==null?void 0:v.map)==null?void 0:b.version}});return qC("Escape",()=>{e("close")}),(d,g)=>{const v=es,b=Cy;return at(),At("div",Alt,[dt("div",Mlt,[Nlt,dt("p",Plt,Xt(t.id),1),zt(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=w=>e("close"))})]),j(o)?(at(),At(fe,{key:1},[dt("div",$lt,[Dlt,Rlt,zt(b,hi({"h-full":"","model-value":j(u),"read-only":""},{lineNumbers:!0},{mode:j(a)}),null,16,["model-value","mode"]),zt(b,hi({"h-full":"","model-value":j(f),"read-only":""},{lineNumbers:!0},{mode:j(a)}),null,16,["model-value","mode"])]),j(h).mappings!==""?(at(),At("div",zlt,[dt("div",Ilt," Source map (v"+Xt(j(h).version)+") ",1),zt(b,hi({"model-value":j(h).mappings,"read-only":""},{lineNumbers:!0},{mode:j(a)}),null,16,["model-value","mode"])])):se("",!0)],64)):(at(),At("div",Olt," No transform result found for this module. "))])}}});var xf="http://www.w3.org/1999/xhtml";const Sv={svg:"http://www.w3.org/2000/svg",xhtml:xf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Sv.hasOwnProperty(e)?{space:Sv[e],local:t}:t}function qlt(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===xf&&e.documentElement.namespaceURI===xf?e.createElement(t):e.createElementNS(r,t)}}function Hlt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ty(t){var e=kc(t);return(e.local?Hlt:qlt)(e)}function Blt(){}function yh(t){return t==null?Blt:function(){return this.querySelector(t)}}function Wlt(t){typeof t!="function"&&(t=yh(t));for(var e=this._groups,r=e.length,o=new Array(r),a=0;a<r;++a)for(var u=e[a],f=u.length,h=o[a]=new Array(f),d,g,v=0;v<f;++v)(d=u[v])&&(g=t.call(d,d.__data__,v,u))&&("__data__"in d&&(g.__data__=d.__data__),h[v]=g);return new $n(o,this._parents)}function Ult(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function jlt(){return[]}function Ly(t){return t==null?jlt:function(){return this.querySelectorAll(t)}}function Glt(t){return function(){return Ult(t.apply(this,arguments))}}function Vlt(t){typeof t=="function"?t=Glt(t):t=Ly(t);for(var e=this._groups,r=e.length,o=[],a=[],u=0;u<r;++u)for(var f=e[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&(o.push(t.call(d,d.__data__,g,f)),a.push(d));return new $n(o,a)}function Ey(t){return function(){return this.matches(t)}}function Ay(t){return function(e){return e.matches(t)}}var Klt=Array.prototype.find;function Xlt(t){return function(){return Klt.call(this.children,t)}}function Ylt(){return this.firstElementChild}function Jlt(t){return this.select(t==null?Ylt:Xlt(typeof t=="function"?t:Ay(t)))}var Zlt=Array.prototype.filter;function Qlt(){return Array.from(this.children)}function tat(t){return function(){return Zlt.call(this.children,t)}}function eat(t){return this.selectAll(t==null?Qlt:tat(typeof t=="function"?t:Ay(t)))}function nat(t){typeof t!="function"&&(t=Ey(t));for(var e=this._groups,r=e.length,o=new Array(r),a=0;a<r;++a)for(var u=e[a],f=u.length,h=o[a]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new $n(o,this._parents)}function My(t){return new Array(t.length)}function rat(){return new $n(this._enter||this._groups.map(My),this._parents)}function ja(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ja.prototype={constructor:ja,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function iat(t){return function(){return t}}function oat(t,e,r,o,a,u){for(var f=0,h,d=e.length,g=u.length;f<g;++f)(h=e[f])?(h.__data__=u[f],o[f]=h):r[f]=new ja(t,u[f]);for(;f<d;++f)(h=e[f])&&(a[f]=h)}function sat(t,e,r,o,a,u,f){var h,d,g=new Map,v=e.length,b=u.length,w=new Array(v),S;for(h=0;h<v;++h)(d=e[h])&&(w[h]=S=f.call(d,d.__data__,h,e)+"",g.has(S)?a[h]=d:g.set(S,d));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(d=g.get(S))?(o[h]=d,d.__data__=u[h],g.delete(S)):r[h]=new ja(t,u[h]);for(h=0;h<v;++h)(d=e[h])&&g.get(w[h])===d&&(a[h]=d)}function lat(t){return t.__data__}function aat(t,e){if(!arguments.length)return Array.from(this,lat);var r=e?sat:oat,o=this._parents,a=this._groups;typeof t!="function"&&(t=iat(t));for(var u=a.length,f=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var v=o[g],b=a[g],w=b.length,S=cat(t.call(v,v&&v.__data__,g,o)),M=S.length,A=h[g]=new Array(M),E=f[g]=new Array(M),C=d[g]=new Array(w);r(v,b,A,E,C,S,e);for(var L=0,$=0,O,G;L<M;++L)if(O=A[L]){for(L>=$&&($=L+1);!(G=E[$])&&++$<M;);O._next=G||null}}return f=new $n(f,o),f._enter=h,f._exit=d,f}function cat(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function uat(){return new $n(this._exit||this._groups.map(My),this._parents)}function fat(t,e,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),e!=null&&(a=e(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function hat(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),d=0;d<f;++d)for(var g=r[d],v=o[d],b=g.length,w=h[d]=new Array(b),S,M=0;M<b;++M)(S=g[M]||v[M])&&(w[M]=S);for(;d<a;++d)h[d]=r[d];return new $n(h,this._parents)}function dat(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o=t[e],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function pat(t){t||(t=gat);function e(b,w){return b&&w?t(b.__data__,w.__data__):!b-!w}for(var r=this._groups,o=r.length,a=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,d=a[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(e)}return new $n(a,this._parents).order()}function gat(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function vat(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function mat(){return Array.from(this)}function yat(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function bat(){let t=0;for(const e of this)++t;return t}function wat(){return!this.node()}function xat(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var a=e[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function _at(t){return function(){this.removeAttribute(t)}}function Sat(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kat(t,e){return function(){this.setAttribute(t,e)}}function Cat(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Tat(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Lat(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Eat(t,e){var r=kc(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?Sat:_at:typeof e=="function"?r.local?Lat:Tat:r.local?Cat:kat)(r,e))}function Ny(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Aat(t){return function(){this.style.removeProperty(t)}}function Mat(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Nat(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Pat(t,e,r){return arguments.length>1?this.each((e==null?Aat:typeof e=="function"?Nat:Mat)(t,e,r??"")):Ko(this.node(),t)}function Ko(t,e){return t.style.getPropertyValue(e)||Ny(t).getComputedStyle(t,null).getPropertyValue(e)}function Oat(t){return function(){delete this[t]}}function $at(t,e){return function(){this[t]=e}}function Dat(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Rat(t,e){return arguments.length>1?this.each((e==null?Oat:typeof e=="function"?Dat:$at)(t,e)):this.node()[t]}function Py(t){return t.trim().split(/^|\s+/)}function bh(t){return t.classList||new Oy(t)}function Oy(t){this._node=t,this._names=Py(t.getAttribute("class")||"")}Oy.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function $y(t,e){for(var r=bh(t),o=-1,a=e.length;++o<a;)r.add(e[o])}function Dy(t,e){for(var r=bh(t),o=-1,a=e.length;++o<a;)r.remove(e[o])}function zat(t){return function(){$y(this,t)}}function Iat(t){return function(){Dy(this,t)}}function Fat(t,e){return function(){(e.apply(this,arguments)?$y:Dy)(this,t)}}function qat(t,e){var r=Py(t+"");if(arguments.length<2){for(var o=bh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof e=="function"?Fat:e?zat:Iat)(r,e))}function Hat(){this.textContent=""}function Bat(t){return function(){this.textContent=t}}function Wat(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Uat(t){return arguments.length?this.each(t==null?Hat:(typeof t=="function"?Wat:Bat)(t)):this.node().textContent}function jat(){this.innerHTML=""}function Gat(t){return function(){this.innerHTML=t}}function Vat(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Kat(t){return arguments.length?this.each(t==null?jat:(typeof t=="function"?Vat:Gat)(t)):this.node().innerHTML}function Xat(){this.nextSibling&&this.parentNode.appendChild(this)}function Yat(){return this.each(Xat)}function Jat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zat(){return this.each(Jat)}function Qat(t){var e=typeof t=="function"?t:Ty(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function tct(){return null}function ect(t,e){var r=typeof t=="function"?t:Ty(t),o=e==null?tct:typeof e=="function"?e:yh(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function nct(){var t=this.parentNode;t&&t.removeChild(this)}function rct(){return this.each(nct)}function ict(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oct(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function sct(t){return this.select(t?oct:ict)}function lct(t){return arguments.length?this.property("__data__",t):this.node().__data__}function act(t){return function(e){t.call(this,e,this.__data__)}}function cct(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function uct(t){return function(){var e=this.__on;if(!!e){for(var r=0,o=-1,a=e.length,u;r<a;++r)u=e[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):e[++o]=u;++o?e.length=o:delete this.__on}}}function fct(t,e,r){return function(){var o=this.__on,a,u=act(e);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=e;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},o?o.push(a):this.__on=[a]}}function hct(t,e,r){var o=cct(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,g=h.length,v;d<g;++d)for(a=0,v=h[d];a<u;++a)if((f=o[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=e?fct:uct,a=0;a<u;++a)this.each(h(o[a],e,r));return this}function Ry(t,e,r){var o=Ny(t),a=o.CustomEvent;typeof a=="function"?a=new a(e,r):(a=o.document.createEvent("Event"),r?(a.initEvent(e,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function dct(t,e){return function(){return Ry(this,t,e)}}function pct(t,e){return function(){return Ry(this,t,e.apply(this,arguments))}}function gct(t,e){return this.each((typeof e=="function"?pct:dct)(t,e))}function*vct(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var zy=[null];function $n(t,e){this._groups=t,this._parents=e}function bl(){return new $n([[document.documentElement]],zy)}function mct(){return this}$n.prototype=bl.prototype={constructor:$n,select:Wlt,selectAll:Vlt,selectChild:Jlt,selectChildren:eat,filter:nat,data:aat,enter:rat,exit:uat,join:fat,merge:hat,selection:mct,order:dat,sort:pat,call:vat,nodes:mat,node:yat,size:bat,empty:wat,each:xat,attr:Eat,style:Pat,property:Rat,classed:qat,text:Uat,html:Kat,raise:Yat,lower:Zat,append:Qat,insert:ect,remove:rct,clone:sct,datum:lct,on:hct,dispatch:gct,[Symbol.iterator]:vct};function _n(t){return typeof t=="string"?new $n([[document.querySelector(t)]],[document.documentElement]):new $n([[t]],zy)}function yct(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ar(t,e){if(t=yct(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}if(e.getBoundingClientRect){var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}}return[t.pageX,t.pageY]}class hn{constructor(e,r){this.x=e,this.y=r}static of([e,r]){return new hn(e,r)}add(e){return new hn(this.x+e.x,this.y+e.y)}subtract(e){return new hn(this.x-e.x,this.y-e.y)}multiply(e){return new hn(this.x*e,this.y*e)}divide(e){return new hn(this.x/e,this.y/e)}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-e.x*this.y}hadamard(e){return new hn(this.x*e.x,this.y*e.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const e=this.length();return new hn(this.x/e,this.y/e)}rotateByRadians(e){const r=Math.cos(e),o=Math.sin(e);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}}var bct={value:()=>{}};function wl(){for(var t=0,e=arguments.length,r={},o;t<e;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new La(r)}function La(t){this._=t}function wct(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}La.prototype=wl.prototype={constructor:La,on:function(t,e){var r=this._,o=wct(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=xct(r[a],t.name)))return a;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(a=(t=o[u]).type)r[a]=kv(r[a],t.name,e);else if(e==null)for(a in r)r[a]=kv(r[a],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new La(t)},call:function(t,e){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(e,r)}};function xct(t,e){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===e)return a.value}function kv(t,e,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===e){t[o]=bct,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}const _ct={passive:!1},ll={capture:!0,passive:!1};function Iu(t){t.stopImmediatePropagation()}function Do(t){t.preventDefault(),t.stopImmediatePropagation()}function Iy(t){var e=t.document.documentElement,r=_n(t).on("dragstart.drag",Do,ll);"onselectstart"in e?r.on("selectstart.drag",Do,ll):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Fy(t,e){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);e&&(o.on("click.drag",Do,ll),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 ha=t=>()=>t;function _f(t,{sourceEvent:e,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:d,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}_f.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Sct(t){return!t.ctrlKey&&!t.button}function kct(){return this.parentNode}function Cct(t,e){return e??{x:t.x,y:t.y}}function Tct(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lct(){var t=Sct,e=kct,r=Cct,o=Tct,a={},u=wl("start","drag","end"),f=0,h,d,g,v,b=0;function w(O){O.on("mousedown.drag",S).filter(o).on("touchstart.drag",E).on("touchmove.drag",C,_ct).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(O,G){if(!(v||!t.call(this,O,G))){var V=$(this,e.call(this,O,G),O,G,"mouse");!V||(_n(O.view).on("mousemove.drag",M,ll).on("mouseup.drag",A,ll),Iy(O.view),Iu(O),g=!1,h=O.clientX,d=O.clientY,V("start",O))}}function M(O){if(Do(O),!g){var G=O.clientX-h,V=O.clientY-d;g=G*G+V*V>b}a.mouse("drag",O)}function A(O){_n(O.view).on("mousemove.drag mouseup.drag",null),Fy(O.view,g),Do(O),a.mouse("end",O)}function E(O,G){if(!!t.call(this,O,G)){var V=O.changedTouches,rt=e.call(this,O,G),Z=V.length,ut,vt;for(ut=0;ut<Z;++ut)(vt=$(this,rt,O,G,V[ut].identifier,V[ut]))&&(Iu(O),vt("start",O,V[ut]))}}function C(O){var G=O.changedTouches,V=G.length,rt,Z;for(rt=0;rt<V;++rt)(Z=a[G[rt].identifier])&&(Do(O),Z("drag",O,G[rt]))}function L(O){var G=O.changedTouches,V=G.length,rt,Z;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),rt=0;rt<V;++rt)(Z=a[G[rt].identifier])&&(Iu(O),Z("end",O,G[rt]))}function $(O,G,V,rt,Z,ut){var vt=u.copy(),kt=Ar(ut||V,G),ft,U,z;if((z=r.call(O,new _f("beforestart",{sourceEvent:V,target:w,identifier:Z,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:vt}),rt))!=null)return ft=z.x-kt[0]||0,U=z.y-kt[1]||0,function k(H,W,et){var wt=kt,Et;switch(H){case"start":a[Z]=k,Et=f++;break;case"end":delete a[Z],--f;case"drag":kt=Ar(et||W,G),Et=f;break}vt.call(H,O,new _f(H,{sourceEvent:W,subject:z,target:w,identifier:Z,active:Et,x:kt[0]+ft,y:kt[1]+U,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:vt}),rt)}}return w.filter=function(O){return arguments.length?(t=typeof O=="function"?O:ha(!!O),w):t},w.container=function(O){return arguments.length?(e=typeof O=="function"?O:ha(O),w):e},w.subject=function(O){return arguments.length?(r=typeof O=="function"?O:ha(O),w):r},w.touchable=function(O){return arguments.length?(o=typeof O=="function"?O:ha(!!O),w):o},w.on=function(){var O=u.on.apply(u,arguments);return O===u?w:O},w.clickDistance=function(O){return arguments.length?(b=(O=+O)*O,w):Math.sqrt(b)},w}function wh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function qy(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function xl(){}var al=.7,Ga=1/al,Ro="\\s*([+-]?\\d+)\\s*",cl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ect=/^#([0-9a-f]{3,8})$/,Act=new RegExp(`^rgb\\(${Ro},${Ro},${Ro}\\)$`),Mct=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),Nct=new RegExp(`^rgba\\(${Ro},${Ro},${Ro},${cl}\\)$`),Pct=new RegExp(`^rgba\\(${fr},${fr},${fr},${cl}\\)$`),Oct=new RegExp(`^hsl\\(${cl},${fr},${fr}\\)$`),$ct=new RegExp(`^hsla\\(${cl},${fr},${fr},${cl}\\)$`),Cv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wh(xl,ul,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Tv,formatHex:Tv,formatHex8:Dct,formatHsl:Rct,formatRgb:Lv,toString:Lv});function Tv(){return this.rgb().formatHex()}function Dct(){return this.rgb().formatHex8()}function Rct(){return Hy(this).formatHsl()}function Lv(){return this.rgb().formatRgb()}function ul(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Ect.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Ev(e):r===3?new Sn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?da(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?da(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Act.exec(t))?new Sn(e[1],e[2],e[3],1):(e=Mct.exec(t))?new Sn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Nct.exec(t))?da(e[1],e[2],e[3],e[4]):(e=Pct.exec(t))?da(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Oct.exec(t))?Nv(e[1],e[2]/100,e[3]/100,1):(e=$ct.exec(t))?Nv(e[1],e[2]/100,e[3]/100,e[4]):Cv.hasOwnProperty(t)?Ev(Cv[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function Ev(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function da(t,e,r,o){return o<=0&&(t=e=r=NaN),new Sn(t,e,r,o)}function zct(t){return t instanceof xl||(t=ul(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function Sf(t,e,r,o){return arguments.length===1?zct(t):new Sn(t,e,r,o??1)}function Sn(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}wh(Sn,Sf,qy(xl,{brighter(t){return t=t==null?Ga:Math.pow(Ga,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?al:Math.pow(al,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(Vi(this.r),Vi(this.g),Vi(this.b),Va(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Av,formatHex:Av,formatHex8:Ict,formatRgb:Mv,toString:Mv}));function Av(){return`#${Wi(this.r)}${Wi(this.g)}${Wi(this.b)}`}function Ict(){return`#${Wi(this.r)}${Wi(this.g)}${Wi(this.b)}${Wi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mv(){const t=Va(this.opacity);return`${t===1?"rgb(":"rgba("}${Vi(this.r)}, ${Vi(this.g)}, ${Vi(this.b)}${t===1?")":`, ${t})`}`}function Va(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Vi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wi(t){return t=Vi(t),(t<16?"0":"")+t.toString(16)}function Nv(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Vn(t,e,r,o)}function Hy(t){if(t instanceof Vn)return new Vn(t.h,t.s,t.l,t.opacity);if(t instanceof xl||(t=ul(t)),!t)return new Vn;if(t instanceof Vn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(e,r,o),u=Math.max(e,r,o),f=NaN,h=u-a,d=(u+a)/2;return h?(e===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-e)/h+2:f=(e-r)/h+4,h/=d<.5?u+a:2-u-a,f*=60):h=d>0&&d<1?0:f,new Vn(f,h,d,t.opacity)}function Fct(t,e,r,o){return arguments.length===1?Hy(t):new Vn(t,e,r,o??1)}function Vn(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}wh(Vn,Fct,qy(xl,{brighter(t){return t=t==null?Ga:Math.pow(Ga,t),new Vn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?al:Math.pow(al,t),new Vn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,a=2*r-o;return new Sn(Fu(t>=240?t-240:t+120,a,o),Fu(t,a,o),Fu(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Vn(Pv(this.h),pa(this.s),pa(this.l),Va(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=Va(this.opacity);return`${t===1?"hsl(":"hsla("}${Pv(this.h)}, ${pa(this.s)*100}%, ${pa(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Pv(t){return t=(t||0)%360,t<0?t+360:t}function pa(t){return Math.max(0,Math.min(1,t||0))}function Fu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const By=t=>()=>t;function qct(t,e){return function(r){return t+r*e}}function Hct(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}function Bct(t){return(t=+t)==1?Wy:function(e,r){return r-e?Hct(e,r,t):By(isNaN(e)?r:e)}}function Wy(t,e){var r=e-t;return r?qct(t,r):By(isNaN(t)?e:t)}const Ov=function t(e){var r=Bct(e);function o(a,u){var f=r((a=Sf(a)).r,(u=Sf(u)).r),h=r(a.g,u.g),d=r(a.b,u.b),g=Wy(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=d(v),a.opacity=g(v),a+""}}return o.gamma=t,o}(1);function si(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var kf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qu=new RegExp(kf.source,"g");function Wct(t){return function(){return t}}function Uct(t){return function(e){return t(e)+""}}function jct(t,e){var r=kf.lastIndex=qu.lastIndex=0,o,a,u,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=kf.exec(t))&&(a=qu.exec(e));)(u=a.index)>r&&(u=e.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,d.push({i:f,x:si(o,a)})),r=qu.lastIndex;return r<e.length&&(u=e.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?d[0]?Uct(d[0].x):Wct(e):(e=d.length,function(g){for(var v=0,b;v<e;++v)h[(b=d[v]).i]=b.x(g);return h.join("")})}var $v=180/Math.PI,Cf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Uy(t,e,r,o,a,u){var f,h,d;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(d=t*r+e*o)&&(r-=t*d,o-=e*d),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,d/=h),t*o<e*r&&(t=-t,e=-e,d=-d,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(e,t)*$v,skewX:Math.atan(d)*$v,scaleX:f,scaleY:h}}var ga;function Gct(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Cf:Uy(e.a,e.b,e.c,e.d,e.e,e.f)}function Vct(t){return t==null||(ga||(ga=document.createElementNS("http://www.w3.org/2000/svg","g")),ga.setAttribute("transform",t),!(t=ga.transform.baseVal.consolidate()))?Cf:(t=t.matrix,Uy(t.a,t.b,t.c,t.d,t.e,t.f))}function jy(t,e,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,v,b,w,S,M){if(g!==b||v!==w){var A=S.push("translate(",null,e,null,r);M.push({i:A-4,x:si(g,b)},{i:A-2,x:si(v,w)})}else(b||w)&&S.push("translate("+b+e+w+r)}function f(g,v,b,w){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),w.push({i:b.push(a(b)+"rotate(",null,o)-2,x:si(g,v)})):v&&b.push(a(b)+"rotate("+v+o)}function h(g,v,b,w){g!==v?w.push({i:b.push(a(b)+"skewX(",null,o)-2,x:si(g,v)}):v&&b.push(a(b)+"skewX("+v+o)}function d(g,v,b,w,S,M){if(g!==b||v!==w){var A=S.push(a(S)+"scale(",null,",",null,")");M.push({i:A-4,x:si(g,b)},{i:A-2,x:si(v,w)})}else(b!==1||w!==1)&&S.push(a(S)+"scale("+b+","+w+")")}return function(g,v){var b=[],w=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,b,w),f(g.rotate,v.rotate,b,w),h(g.skewX,v.skewX,b,w),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,w),g=v=null,function(S){for(var M=-1,A=w.length,E;++M<A;)b[(E=w[M]).i]=E.x(S);return b.join("")}}}var Kct=jy(Gct,"px, ","px)","deg)"),Xct=jy(Vct,", ",")",")"),Yct=1e-12;function Dv(t){return((t=Math.exp(t))+1/t)/2}function Jct(t){return((t=Math.exp(t))-1/t)/2}function Zct(t){return((t=Math.exp(2*t))-1)/(t+1)}const Qct=function t(e,r,o){function a(u,f){var h=u[0],d=u[1],g=u[2],v=f[0],b=f[1],w=f[2],S=v-h,M=b-d,A=S*S+M*M,E,C;if(A<Yct)C=Math.log(w/g)/e,E=function(rt){return[h+rt*S,d+rt*M,g*Math.exp(e*rt*C)]};else{var L=Math.sqrt(A),$=(w*w-g*g+o*A)/(2*g*r*L),O=(w*w-g*g-o*A)/(2*w*r*L),G=Math.log(Math.sqrt($*$+1)-$),V=Math.log(Math.sqrt(O*O+1)-O);C=(V-G)/e,E=function(rt){var Z=rt*C,ut=Dv(G),vt=g/(r*L)*(ut*Zct(e*Z+G)-Jct(G));return[h+vt*S,d+vt*M,g*ut/Dv(e*Z+G)]}}return E.duration=C*1e3*e/Math.SQRT2,E}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,d=h*h;return t(f,h,d)},a}(Math.SQRT2,2,4);var Xo=0,qs=0,zs=0,Gy=1e3,Ka,Hs,Xa=0,Ji=0,Cc=0,fl=typeof performance=="object"&&performance.now?performance:Date,Vy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function xh(){return Ji||(Vy(tut),Ji=fl.now()+Cc)}function tut(){Ji=0}function Ya(){this._call=this._time=this._next=null}Ya.prototype=_h.prototype={constructor:Ya,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?xh():+r)+(e==null?0:+e),!this._next&&Hs!==this&&(Hs?Hs._next=this:Ka=this,Hs=this),this._call=t,this._time=r,Tf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Tf())}};function _h(t,e,r){var o=new Ya;return o.restart(t,e,r),o}function eut(){xh(),++Xo;for(var t=Ka,e;t;)(e=Ji-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Xo}function Rv(){Ji=(Xa=fl.now())+Cc,Xo=qs=0;try{eut()}finally{Xo=0,rut(),Ji=0}}function nut(){var t=fl.now(),e=t-Xa;e>Gy&&(Cc-=e,Xa=t)}function rut(){for(var t,e=Ka,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ka=r);Hs=t,Tf(o)}function Tf(t){if(!Xo){qs&&(qs=clearTimeout(qs));var e=t-Ji;e>24?(t<1/0&&(qs=setTimeout(Rv,t-fl.now()-Cc)),zs&&(zs=clearInterval(zs))):(zs||(Xa=fl.now(),zs=setInterval(nut,Gy)),Xo=1,Vy(Rv))}}function zv(t,e,r){var o=new Ya;return e=e==null?0:+e,o.restart(a=>{o.stop(),t(a+e)},e,r),o}var iut=wl("start","end","cancel","interrupt"),out=[],Ky=0,Iv=1,Lf=2,Ea=3,Fv=4,Ef=5,Aa=6;function Tc(t,e,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;sut(t,r,{name:e,index:o,group:a,on:iut,tween:out,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Ky})}function Sh(t,e){var r=Jn(t,e);if(r.state>Ky)throw new Error("too late; already scheduled");return r}function pr(t,e){var r=Jn(t,e);if(r.state>Ea)throw new Error("too late; already running");return r}function Jn(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function sut(t,e,r){var o=t.__transition,a;o[e]=r,r.timer=_h(u,0,r.time);function u(g){r.state=Iv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,b,w,S;if(r.state!==Iv)return d();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ea)return zv(f);S.state===Fv?(S.state=Aa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<e&&(S.state=Aa,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if(zv(function(){r.state===Ea&&(r.state=Fv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=Lf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Lf){for(r.state=Ea,a=new Array(w=r.tween.length),v=0,b=-1;v<w;++v)(S=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=Ef,1),b=-1,w=a.length;++b<w;)a[b].call(t,v);r.state===Ef&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=Aa,r.timer.stop(),delete o[e];for(var g in o)return;delete t.__transition}}function Ma(t,e){var r=t.__transition,o,a,u=!0,f;if(!!r){e=e==null?null:e+"";for(f in r){if((o=r[f]).name!==e){u=!1;continue}a=o.state>Lf&&o.state<Ef,o.state=Aa,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function lut(t){return this.each(function(){Ma(this,t)})}function aut(t,e){var r,o;return function(){var a=pr(this,t),u=a.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===e){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function cut(t,e,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=pr(this,t),f=u.tween;if(f!==o){a=(o=f).slice();for(var h={name:e,value:r},d=0,g=a.length;d<g;++d)if(a[d].name===e){a[d]=h;break}d===g&&a.push(h)}u.tween=a}}function uut(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o=Jn(this.node(),r).tween,a=0,u=o.length,f;a<u;++a)if((f=o[a]).name===t)return f.value;return null}return this.each((e==null?aut:cut)(r,t,e))}function kh(t,e,r){var o=t._id;return t.each(function(){var a=pr(this,o);(a.value||(a.value={}))[e]=r.apply(this,arguments)}),function(a){return Jn(a,o).value[e]}}function Xy(t,e){var r;return(typeof e=="number"?si:e instanceof ul?Ov:(r=ul(e))?(e=r,Ov):jct)(t,e)}function fut(t){return function(){this.removeAttribute(t)}}function hut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function dut(t,e,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=e(o=f,r)}}function put(t,e,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=e(o=f,r)}}function gut(t,e,r){var o,a,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),d=h+"",f===d?null:f===o&&d===a?u:(a=d,u=e(o=f,h)))}}function vut(t,e,r){var o,a,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),d=h+"",f===d?null:f===o&&d===a?u:(a=d,u=e(o=f,h)))}}function mut(t,e){var r=kc(t),o=r==="transform"?Xct:Xy;return this.attrTween(t,typeof e=="function"?(r.local?vut:gut)(r,o,kh(this,"attr."+t,e)):e==null?(r.local?hut:fut)(r):(r.local?put:dut)(r,o,e))}function yut(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function but(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function wut(t,e){var r,o;function a(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&but(t,u)),r}return a._value=e,a}function xut(t,e){var r,o;function a(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&yut(t,u)),r}return a._value=e,a}function _ut(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var o=kc(t);return this.tween(r,(o.local?wut:xut)(o,e))}function Sut(t,e){return function(){Sh(this,t).delay=+e.apply(this,arguments)}}function kut(t,e){return e=+e,function(){Sh(this,t).delay=e}}function Cut(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Sut:kut)(e,t)):Jn(this.node(),e).delay}function Tut(t,e){return function(){pr(this,t).duration=+e.apply(this,arguments)}}function Lut(t,e){return e=+e,function(){pr(this,t).duration=e}}function Eut(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Tut:Lut)(e,t)):Jn(this.node(),e).duration}function Aut(t,e){if(typeof e!="function")throw new Error;return function(){pr(this,t).ease=e}}function Mut(t){var e=this._id;return arguments.length?this.each(Aut(e,t)):Jn(this.node(),e).ease}function Nut(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function Put(t){if(typeof t!="function")throw new Error;return this.each(Nut(this._id,t))}function Out(t){typeof t!="function"&&(t=Ey(t));for(var e=this._groups,r=e.length,o=new Array(r),a=0;a<r;++a)for(var u=e[a],f=u.length,h=o[a]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Ir(o,this._parents,this._name,this._id)}function $ut(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,a=r.length,u=Math.min(o,a),f=new Array(o),h=0;h<u;++h)for(var d=e[h],g=r[h],v=d.length,b=f[h]=new Array(v),w,S=0;S<v;++S)(w=d[S]||g[S])&&(b[S]=w);for(;h<o;++h)f[h]=e[h];return new Ir(f,this._parents,this._name,this._id)}function Dut(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function Rut(t,e,r){var o,a,u=Dut(e)?Sh:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(e,r),f.on=a}}function zut(t,e){var r=this._id;return arguments.length<2?Jn(this.node(),r).on.on(t):this.each(Rut(r,t,e))}function Iut(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Fut(){return this.on("end.remove",Iut(this._id))}function qut(t){var e=this._name,r=this._id;typeof t!="function"&&(t=yh(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++f)for(var h=o[f],d=h.length,g=u[f]=new Array(d),v,b,w=0;w<d;++w)(v=h[w])&&(b=t.call(v,v.__data__,w,h))&&("__data__"in v&&(b.__data__=v.__data__),g[w]=b,Tc(g[w],e,r,w,g,Jn(v,r)));return new Ir(u,this._parents,e,r)}function Hut(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ly(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var d=o[h],g=d.length,v,b=0;b<g;++b)if(v=d[b]){for(var w=t.call(v,v.__data__,b,d),S,M=Jn(v,r),A=0,E=w.length;A<E;++A)(S=w[A])&&Tc(S,e,r,A,w,M);u.push(w),f.push(v)}return new Ir(u,f,e,r)}var But=bl.prototype.constructor;function Wut(){return new But(this._groups,this._parents)}function Uut(t,e){var r,o,a;return function(){var u=Ko(this,t),f=(this.style.removeProperty(t),Ko(this,t));return u===f?null:u===r&&f===o?a:a=e(r=u,o=f)}}function Yy(t){return function(){this.style.removeProperty(t)}}function jut(t,e,r){var o,a=r+"",u;return function(){var f=Ko(this,t);return f===a?null:f===o?u:u=e(o=f,r)}}function Gut(t,e,r){var o,a,u;return function(){var f=Ko(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),Ko(this,t))),f===d?null:f===o&&d===a?u:(a=d,u=e(o=f,h))}}function Vut(t,e){var r,o,a,u="style."+e,f="end."+u,h;return function(){var d=pr(this,t),g=d.on,v=d.value[u]==null?h||(h=Yy(e)):void 0;(g!==r||a!==v)&&(o=(r=g).copy()).on(f,a=v),d.on=o}}function Kut(t,e,r){var o=(t+="")=="transform"?Kct:Xy;return e==null?this.styleTween(t,Uut(t,o)).on("end.style."+t,Yy(t)):typeof e=="function"?this.styleTween(t,Gut(t,o,kh(this,"style."+t,e))).each(Vut(this._id,t)):this.styleTween(t,jut(t,o,e),r).on("end.style."+t,null)}function Xut(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Yut(t,e,r){var o,a;function u(){var f=e.apply(this,arguments);return f!==a&&(o=(a=f)&&Xut(t,f,r)),o}return u._value=e,u}function Jut(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,Yut(t,e,r??""))}function Zut(t){return function(){this.textContent=t}}function Qut(t){return function(){var e=t(this);this.textContent=e??""}}function tft(t){return this.tween("text",typeof t=="function"?Qut(kh(this,"text",t)):Zut(t==null?"":t+""))}function eft(t){return function(e){this.textContent=t.call(this,e)}}function nft(t){var e,r;function o(){var a=t.apply(this,arguments);return a!==r&&(e=(r=a)&&eft(a)),e}return o._value=t,o}function rft(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,nft(t))}function ift(){for(var t=this._name,e=this._id,r=Jy(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=Jn(d,e);Tc(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Ir(o,this._parents,t,r)}function oft(){var t,e,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},d={value:function(){--a===0&&u()}};r.each(function(){var g=pr(this,o),v=g.on;v!==t&&(e=(t=v).copy(),e._.cancel.push(h),e._.interrupt.push(h),e._.end.push(d)),g.on=e}),a===0&&u()})}var sft=0;function Ir(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Jy(){return++sft}var Lr=bl.prototype;Ir.prototype={constructor:Ir,select:qut,selectAll:Hut,selectChild:Lr.selectChild,selectChildren:Lr.selectChildren,filter:Out,merge:$ut,selection:Wut,transition:ift,call:Lr.call,nodes:Lr.nodes,node:Lr.node,size:Lr.size,empty:Lr.empty,each:Lr.each,on:zut,attr:mut,attrTween:_ut,style:Kut,styleTween:Jut,text:tft,textTween:rft,remove:Fut,tween:uut,delay:Cut,duration:Eut,ease:Mut,easeVarying:Put,end:oft,[Symbol.iterator]:Lr[Symbol.iterator]};function lft(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var aft={time:null,delay:0,duration:250,ease:lft};function cft(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function uft(t){var e,r;t instanceof Ir?(e=t._id,t=t._name):(e=Jy(),(r=aft).time=xh(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&Tc(d,t,e,g,f,r||cft(d,e));return new Ir(o,this._parents,t,e)}bl.prototype.interrupt=lut;bl.prototype.transition=uft;const va=t=>()=>t;function fft(t,{sourceEvent:e,target:r,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Pr(t,e,r){this.k=t,this.x=e,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,e){return t===0&e===0?this:new Pr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ch=new Pr(1,0,0);Pr.prototype;function Hu(t){t.stopImmediatePropagation()}function Is(t){t.preventDefault(),t.stopImmediatePropagation()}function hft(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function dft(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function qv(){return this.__zoom||Ch}function pft(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function gft(){return navigator.maxTouchPoints||"ontouchstart"in this}function vft(t,e,r){var o=t.invertX(e[0][0])-r[0][0],a=t.invertX(e[1][0])-r[1][0],u=t.invertY(e[0][1])-r[0][1],f=t.invertY(e[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function mft(){var t=hft,e=dft,r=vft,o=pft,a=gft,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=Qct,g=wl("start","zoom","end"),v,b,w,S=500,M=150,A=0,E=10;function C(z){z.property("__zoom",qv).on("wheel.zoom",Z,{passive:!1}).on("mousedown.zoom",ut).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(z,k,H,W){var et=z.selection?z.selection():z;et.property("__zoom",qv),z!==et?G(z,k,H,W):et.interrupt().each(function(){V(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},C.scaleBy=function(z,k,H,W){C.scaleTo(z,function(){var et=this.__zoom.k,wt=typeof k=="function"?k.apply(this,arguments):k;return et*wt},H,W)},C.scaleTo=function(z,k,H,W){C.transform(z,function(){var et=e.apply(this,arguments),wt=this.__zoom,Et=H==null?O(et):typeof H=="function"?H.apply(this,arguments):H,qt=wt.invert(Et),Bt=typeof k=="function"?k.apply(this,arguments):k;return r($(L(wt,Bt),Et,qt),et,f)},H,W)},C.translateBy=function(z,k,H,W){C.transform(z,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof H=="function"?H.apply(this,arguments):H),e.apply(this,arguments),f)},null,W)},C.translateTo=function(z,k,H,W,et){C.transform(z,function(){var wt=e.apply(this,arguments),Et=this.__zoom,qt=W==null?O(wt):typeof W=="function"?W.apply(this,arguments):W;return r(Ch.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 L(z,k){return k=Math.max(u[0],Math.min(u[1],k)),k===z.k?z:new Pr(k,z.x,z.y)}function $(z,k,H){var W=k[0]-H[0]*z.k,et=k[1]-H[1]*z.k;return W===z.x&&et===z.y?z:new Pr(z.k,W,et)}function O(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function G(z,k,H,W){z.on("start.zoom",function(){V(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(W).end()}).tween("zoom",function(){var et=this,wt=arguments,Et=V(et,wt).event(W),qt=e.apply(et,wt),Bt=H==null?O(qt):typeof H=="function"?H.apply(et,wt):H,Gt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),re=et.__zoom,Q=typeof k=="function"?k.apply(et,wt):k,tt=d(re.invert(Bt).concat(Gt/re.k),Q.invert(Bt).concat(Gt/Q.k));return function(K){if(K===1)K=Q;else{var st=tt(K),Ct=Gt/st[2];K=new Pr(Ct,Bt[0]-st[0]*Ct,Bt[1]-st[1]*Ct)}Et.zoom(null,K)}})}function V(z,k,H){return!H&&z.__zooming||new rt(z,k)}function rt(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(z,k),this.taps=0}rt.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,k){return this.mouse&&z!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&z!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){var k=_n(this.that).datum();g.call(z,this.that,new fft(z,{sourceEvent:this.sourceEvent,target:C,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function Z(z,...k){if(!t.apply(this,arguments))return;var H=V(this,k).event(z),W=this.__zoom,et=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),wt=Ar(z);if(H.wheel)(H.mouse[0][0]!==wt[0]||H.mouse[0][1]!==wt[1])&&(H.mouse[1]=W.invert(H.mouse[0]=wt)),clearTimeout(H.wheel);else{if(W.k===et)return;H.mouse=[wt,W.invert(wt)],Ma(this),H.start()}Is(z),H.wheel=setTimeout(Et,M),H.zoom("mouse",r($(L(W,et),H.mouse[0],H.mouse[1]),H.extent,f));function Et(){H.wheel=null,H.end()}}function ut(z,...k){if(w||!t.apply(this,arguments))return;var H=z.currentTarget,W=V(this,k,!0).event(z),et=_n(z.view).on("mousemove.zoom",Bt,!0).on("mouseup.zoom",Gt,!0),wt=Ar(z,H),Et=z.clientX,qt=z.clientY;Iy(z.view),Hu(z),W.mouse=[wt,this.__zoom.invert(wt)],Ma(this),W.start();function Bt(re){if(Is(re),!W.moved){var Q=re.clientX-Et,tt=re.clientY-qt;W.moved=Q*Q+tt*tt>A}W.event(re).zoom("mouse",r($(W.that.__zoom,W.mouse[0]=Ar(re,H),W.mouse[1]),W.extent,f))}function Gt(re){et.on("mousemove.zoom mouseup.zoom",null),Fy(re.view,W.moved),Is(re),W.event(re).end()}}function vt(z,...k){if(!!t.apply(this,arguments)){var H=this.__zoom,W=Ar(z.changedTouches?z.changedTouches[0]:z,this),et=H.invert(W),wt=H.k*(z.shiftKey?.5:2),Et=r($(L(H,wt),W,et),e.apply(this,k),f);Is(z),h>0?_n(this).transition().duration(h).call(G,Et,W,z):_n(this).call(C.transform,Et,W,z)}}function kt(z,...k){if(!!t.apply(this,arguments)){var H=z.touches,W=H.length,et=V(this,k,z.changedTouches.length===W).event(z),wt,Et,qt,Bt;for(Hu(z),Et=0;Et<W;++Et)qt=H[Et],Bt=Ar(qt,this),Bt=[Bt,this.__zoom.invert(Bt),qt.identifier],et.touch0?!et.touch1&&et.touch0[2]!==Bt[2]&&(et.touch1=Bt,et.taps=0):(et.touch0=Bt,wt=!0,et.taps=1+!!v);v&&(v=clearTimeout(v)),wt&&(et.taps<2&&(b=Bt[0],v=setTimeout(function(){v=null},S)),Ma(this),et.start())}}function ft(z,...k){if(!!this.__zooming){var H=V(this,k).event(z),W=z.changedTouches,et=W.length,wt,Et,qt,Bt;for(Is(z),wt=0;wt<et;++wt)Et=W[wt],qt=Ar(Et,this),H.touch0&&H.touch0[2]===Et.identifier?H.touch0[0]=qt:H.touch1&&H.touch1[2]===Et.identifier&&(H.touch1[0]=qt);if(Et=H.that.__zoom,H.touch1){var Gt=H.touch0[0],re=H.touch0[1],Q=H.touch1[0],tt=H.touch1[1],K=(K=Q[0]-Gt[0])*K+(K=Q[1]-Gt[1])*K,st=(st=tt[0]-re[0])*st+(st=tt[1]-re[1])*st;Et=L(Et,Math.sqrt(K/st)),qt=[(Gt[0]+Q[0])/2,(Gt[1]+Q[1])/2],Bt=[(re[0]+tt[0])/2,(re[1]+tt[1])/2]}else if(H.touch0)qt=H.touch0[0],Bt=H.touch0[1];else return;H.zoom("touch",r($(Et,qt,Bt),H.extent,f))}}function U(z,...k){if(!!this.__zooming){var H=V(this,k).event(z),W=z.changedTouches,et=W.length,wt,Et;for(Hu(z),w&&clearTimeout(w),w=setTimeout(function(){w=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])<E)){var qt=_n(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return C.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:va(+z),C):o},C.filter=function(z){return arguments.length?(t=typeof z=="function"?z:va(!!z),C):t},C.touchable=function(z){return arguments.length?(a=typeof z=="function"?z:va(!!z),C):a},C.extent=function(z){return arguments.length?(e=typeof z=="function"?z:va([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),C):e},C.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],C):[u[0],u[1]]},C.translateExtent=function(z){return arguments.length?(f[0][0]=+z[0][0],f[1][0]=+z[1][0],f[0][1]=+z[0][1],f[1][1]=+z[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(z){return arguments.length?(r=z,C):r},C.duration=function(z){return arguments.length?(h=+z,C):h},C.interpolate=function(z){return arguments.length?(d=z,C):d},C.on=function(){var z=g.on.apply(g,arguments);return z===g?C:z},C.clickDistance=function(z){return arguments.length?(A=(z=+z)*z,C):Math.sqrt(A)},C.tapDistance=function(z){return arguments.length?(E=+z,C):E},C}function yft(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return Zy(this.cover(e,r),e,r,t)}function Zy(t,e,r,o){if(isNaN(e)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,b,w,S,M,A,E,C,L;if(!u)return t._root=f,t;for(;u.length;)if((A=e>=(b=(h+g)/2))?h=b:g=b,(E=r>=(w=(d+v)/2))?d=w:v=w,a=u,!(u=u[C=E<<1|A]))return a[C]=f,t;if(S=+t._x.call(null,u.data),M=+t._y.call(null,u.data),e===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=e>=(b=(h+g)/2))?h=b:g=b,(E=r>=(w=(d+v)/2))?d=w:v=w;while((C=E<<1|A)===(L=(M>=w)<<1|S>=b));return a[L]=u,a[C]=f,t}function bft(t){var e,r,o=t.length,a,u,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,e=t[r]))||isNaN(u=+this._y.call(null,e))||(f[r]=a,h[r]=u,a<d&&(d=a),a>v&&(v=a),u<g&&(g=u),u>b&&(b=u));if(d>v||g>b)return this;for(this.cover(d,g).cover(v,b),r=0;r<o;++r)Zy(this,f[r],h[r],t[r]);return this}function wft(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(e))+1;else{for(var f=a-r||1,h=this._root,d,g;r>t||t>=a||o>e||e>=u;)switch(g=(e<o)<<1|t<r,d=new Array(4),d[g]=h,h=d,f*=2,g){case 0:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function xft(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function _ft(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,e,r,o,a){this.node=t,this.x0=e,this.y0=r,this.x1=o,this.y1=a}function Sft(t,e,r){var o,a=this._x0,u=this._y0,f,h,d,g,v=this._x1,b=this._y1,w=[],S=this._root,M,A;for(S&&w.push(new dn(S,a,u,v,b)),r==null?r=1/0:(a=t-r,u=e-r,v=t+r,b=e+r,r*=r);M=w.pop();)if(!(!(S=M.node)||(f=M.x0)>v||(h=M.y0)>b||(d=M.x1)<a||(g=M.y1)<u))if(S.length){var E=(f+d)/2,C=(h+g)/2;w.push(new dn(S[3],E,C,d,g),new dn(S[2],f,C,E,g),new dn(S[1],E,h,d,C),new dn(S[0],f,h,E,C)),(A=(e>=C)<<1|t>=E)&&(M=w[w.length-1],w[w.length-1]=w[w.length-1-A],w[w.length-1-A]=M)}else{var L=t-+this._x.call(null,S.data),$=e-+this._y.call(null,S.data),O=L*L+$*$;if(O<r){var G=Math.sqrt(r=O);a=t-G,u=e-G,v=t+G,b=e+G,o=S.data}}return o}function kft(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var e,r=this._root,o,a,u,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,b,w,S,M,A,E,C;if(!r)return this;if(r.length)for(;;){if((M=v>=(w=(f+d)/2))?f=w:d=w,(A=b>=(S=(h+g)/2))?h=S:g=S,e=r,!(r=r[E=A<<1|M]))return this;if(!r.length)break;(e[E+1&3]||e[E+2&3]||e[E+3&3])&&(o=e,C=E)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,a?(u?a.next=u:delete a.next,this):e?(u?e[E]=u:delete e[E],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[C]=r:this._root=r),this):(this._root=u,this)}function Cft(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function Tft(){return this._root}function Lft(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function Eft(t){var e=[],r,o=this._root,a,u,f,h,d;for(o&&e.push(new dn(o,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,d=r.y1)&&o.length){var g=(u+h)/2,v=(f+d)/2;(a=o[3])&&e.push(new dn(a,g,v,h,d)),(a=o[2])&&e.push(new dn(a,u,v,g,d)),(a=o[1])&&e.push(new dn(a,g,f,h,v)),(a=o[0])&&e.push(new dn(a,u,f,g,v))}return this}function Aft(t){var e=[],r=[],o;for(this._root&&e.push(new dn(this._root,this._x0,this._y0,this._x1,this._y1));o=e.pop();){var a=o.node;if(a.length){var u,f=o.x0,h=o.y0,d=o.x1,g=o.y1,v=(f+d)/2,b=(h+g)/2;(u=a[0])&&e.push(new dn(u,f,h,v,b)),(u=a[1])&&e.push(new dn(u,v,h,d,b)),(u=a[2])&&e.push(new dn(u,f,b,v,g)),(u=a[3])&&e.push(new dn(u,v,b,d,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Mft(t){return t[0]}function Nft(t){return arguments.length?(this._x=t,this):this._x}function Pft(t){return t[1]}function Oft(t){return arguments.length?(this._y=t,this):this._y}function Th(t,e,r){var o=new Lh(e??Mft,r??Pft,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function Lh(t,e,r,o,a,u){this._x=t,this._y=e,this._x0=r,this._y0=o,this._x1=a,this._y1=u,this._root=void 0}function Hv(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var vn=Th.prototype=Lh.prototype;vn.copy=function(){var t=new Lh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,o;if(!e)return t;if(!e.length)return t._root=Hv(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var a=0;a<4;++a)(o=e.source[a])&&(o.length?r.push({source:o,target:e.target[a]=new Array(4)}):e.target[a]=Hv(o));return t};vn.add=yft;vn.addAll=bft;vn.cover=wft;vn.data=xft;vn.extent=_ft;vn.find=Sft;vn.remove=kft;vn.removeAll=Cft;vn.root=Tft;vn.size=Lft;vn.visit=Eft;vn.visitAfter=Aft;vn.x=Nft;vn.y=Oft;function gn(t){return function(){return t}}function ai(t){return(t()-.5)*1e-6}function $ft(t){return t.x+t.vx}function Dft(t){return t.y+t.vy}function Rft(t){var e,r,o,a=1,u=1;typeof t!="function"&&(t=gn(t==null?1:+t));function f(){for(var g,v=e.length,b,w,S,M,A,E,C=0;C<u;++C)for(b=Th(e,$ft,Dft).visitAfter(h),g=0;g<v;++g)w=e[g],A=r[w.index],E=A*A,S=w.x+w.vx,M=w.y+w.vy,b.visit(L);function L($,O,G,V,rt){var Z=$.data,ut=$.r,vt=A+ut;if(Z){if(Z.index>w.index){var kt=S-Z.x-Z.vx,ft=M-Z.y-Z.vy,U=kt*kt+ft*ft;U<vt*vt&&(kt===0&&(kt=ai(o),U+=kt*kt),ft===0&&(ft=ai(o),U+=ft*ft),U=(vt-(U=Math.sqrt(U)))/U*a,w.vx+=(kt*=U)*(vt=(ut*=ut)/(E+ut)),w.vy+=(ft*=U)*vt,Z.vx-=kt*(vt=1-vt),Z.vy-=ft*vt)}return}return O>S+vt||V<S-vt||G>M+vt||rt<M-vt}}function h(g){if(g.data)return g.r=r[g.data.index];for(var v=g.r=0;v<4;++v)g[v]&&g[v].r>g.r&&(g.r=g[v].r)}function d(){if(!!e){var g,v=e.length,b;for(r=new Array(v),g=0;g<v;++g)b=e[g],r[b.index]=+t(b,g,e)}}return f.initialize=function(g,v){e=g,o=v,d()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(a=+g,f):a},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:gn(+g),d(),f):t},f}function zft(t){return t.index}function Bv(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Ift(t){var e=zft,r=b,o,a=gn(30),u,f,h,d,g,v=1;t==null&&(t=[]);function b(E){return 1/Math.min(h[E.source.index],h[E.target.index])}function w(E){for(var C=0,L=t.length;C<v;++C)for(var $=0,O,G,V,rt,Z,ut,vt;$<L;++$)O=t[$],G=O.source,V=O.target,rt=V.x+V.vx-G.x-G.vx||ai(g),Z=V.y+V.vy-G.y-G.vy||ai(g),ut=Math.sqrt(rt*rt+Z*Z),ut=(ut-u[$])/ut*E*o[$],rt*=ut,Z*=ut,V.vx-=rt*(vt=d[$]),V.vy-=Z*vt,G.vx+=rt*(vt=1-vt),G.vy+=Z*vt}function S(){if(!!f){var E,C=f.length,L=t.length,$=new Map(f.map((G,V)=>[e(G,V,f),G])),O;for(E=0,h=new Array(C);E<L;++E)O=t[E],O.index=E,typeof O.source!="object"&&(O.source=Bv($,O.source)),typeof O.target!="object"&&(O.target=Bv($,O.target)),h[O.source.index]=(h[O.source.index]||0)+1,h[O.target.index]=(h[O.target.index]||0)+1;for(E=0,d=new Array(L);E<L;++E)O=t[E],d[E]=h[O.source.index]/(h[O.source.index]+h[O.target.index]);o=new Array(L),M(),u=new Array(L),A()}}function M(){if(!!f)for(var E=0,C=t.length;E<C;++E)o[E]=+r(t[E],E,t)}function A(){if(!!f)for(var E=0,C=t.length;E<C;++E)u[E]=+a(t[E],E,t)}return w.initialize=function(E,C){f=E,g=C,S()},w.links=function(E){return arguments.length?(t=E,S(),w):t},w.id=function(E){return arguments.length?(e=E,w):e},w.iterations=function(E){return arguments.length?(v=+E,w):v},w.strength=function(E){return arguments.length?(r=typeof E=="function"?E:gn(+E),M(),w):r},w.distance=function(E){return arguments.length?(a=typeof E=="function"?E:gn(+E),A(),w):a},w}const Fft=1664525,qft=1013904223,Wv=4294967296;function Hft(){let t=1;return()=>(t=(Fft*t+qft)%Wv)/Wv}function Bft(t){return t.x}function Wft(t){return t.y}var Uft=10,jft=Math.PI*(3-Math.sqrt(5));function Gft(t){var e,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=_h(b),g=wl("tick","end"),v=Hft();t==null&&(t=[]);function b(){w(),g.call("tick",e),r<o&&(d.stop(),g.call("end",e))}function w(A){var E,C=t.length,L;A===void 0&&(A=1);for(var $=0;$<A;++$)for(r+=(u-r)*a,h.forEach(function(O){O(r)}),E=0;E<C;++E)L=t[E],L.fx==null?L.x+=L.vx*=f:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=f:(L.y=L.fy,L.vy=0);return e}function S(){for(var A=0,E=t.length,C;A<E;++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 L=Uft*Math.sqrt(.5+A),$=A*jft;C.x=L*Math.cos($),C.y=L*Math.sin($)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function M(A){return A.initialize&&A.initialize(t,v),A}return S(),e={tick:w,restart:function(){return d.restart(b),e},stop:function(){return d.stop(),e},nodes:function(A){return arguments.length?(t=A,S(),h.forEach(M),e):t},alpha:function(A){return arguments.length?(r=+A,e):r},alphaMin:function(A){return arguments.length?(o=+A,e):o},alphaDecay:function(A){return arguments.length?(a=+A,e):+a},alphaTarget:function(A){return arguments.length?(u=+A,e):u},velocityDecay:function(A){return arguments.length?(f=1-A,e):1-f},randomSource:function(A){return arguments.length?(v=A,h.forEach(M),e):v},force:function(A,E){return arguments.length>1?(E==null?h.delete(A):h.set(A,M(E)),e):h.get(A)},find:function(A,E,C){var L=0,$=t.length,O,G,V,rt,Z;for(C==null?C=1/0:C*=C,L=0;L<$;++L)rt=t[L],O=A-rt.x,G=E-rt.y,V=O*O+G*G,V<C&&(Z=rt,C=V);return Z},on:function(A,E){return arguments.length>1?(g.on(A,E),e):g.on(A)}}}function Vft(){var t,e,r,o,a=gn(-30),u,f=1,h=1/0,d=.81;function g(S){var M,A=t.length,E=Th(t,Bft,Wft).visitAfter(b);for(o=S,M=0;M<A;++M)e=t[M],E.visit(w)}function v(){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,E,C=0,L,$,O;if(S.length){for(L=$=O=0;O<4;++O)(A=S[O])&&(E=Math.abs(A.value))&&(M+=A.value,C+=E,L+=E*A.x,$+=E*A.y);S.x=L/C,S.y=$/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 w(S,M,A,E){if(!S.value)return!0;var C=S.x-e.x,L=S.y-e.y,$=E-M,O=C*C+L*L;if($*$/d<O)return O<h&&(C===0&&(C=ai(r),O+=C*C),L===0&&(L=ai(r),O+=L*L),O<f&&(O=Math.sqrt(f*O)),e.vx+=C*S.value*o/O,e.vy+=L*S.value*o/O),!0;if(S.length||O>=h)return;(S.data!==e||S.next)&&(C===0&&(C=ai(r),O+=C*C),L===0&&(L=ai(r),O+=L*L),O<f&&(O=Math.sqrt(f*O)));do S.data!==e&&($=u[S.data.index]*o/O,e.vx+=C*$,e.vy+=L*$);while(S=S.next)}return g.initialize=function(S,M){t=S,r=M,v()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:gn(+S),v(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(d=S*S,g):Math.sqrt(d)},g}function Kft(t){var e=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(a[d]-v.x)*o[d]*h}function f(){if(!!r){var h,d=r.length;for(o=new Array(d),a=new Array(d),h=0;h<d;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:gn(+h),f(),u):e},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}function Xft(t){var e=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(a[d]-v.y)*o[d]*h}function f(){if(!!r){var h,d=r.length;for(o=new Array(d),a=new Array(d),h=0;h<d;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:gn(+h),f(),u):e},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}var Yft=Object.defineProperty,Jft=(t,e,r)=>e in t?Yft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ne=(t,e,r)=>(Jft(t,typeof e!="symbol"?e+"":e,r),r);function Zft(){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}}var Yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qy={},Af=Yo&&Yo.__assign||function(){return Af=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Af.apply(this,arguments)},Qft=Yo&&Yo.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),a,u=[],f;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(h){f={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(f)throw f.error}}return u},tht=Yo&&Yo.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var o=0,a=e.length,u;o<a;o++)(u||!(o in e))&&(u||(u=Array.prototype.slice.call(e,0,o)),u[o]=e[o]);return t.concat(u||Array.prototype.slice.call(e))};Object.defineProperty(Qy,"__esModule",{value:!0});var Uv=function(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){var e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},ci=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(function(r,o){if(Array.isArray(o))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(o).forEach(function(a){["__proto__","constructor","prototype"].includes(a)||(Array.isArray(r[a])&&Array.isArray(o[a])?r[a]=ci.options.mergeArrays?Array.from(new Set(r[a].concat(o[a]))):o[a]:Uv(r[a])&&Uv(o[a])?r[a]=ci(r[a],o[a]):r[a]=o[a])}),r},{})},tb={mergeArrays:!0};ci.options=tb;ci.withOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];ci.options=Af({mergeArrays:!0},t);var o=ci.apply(void 0,tht([],Qft(e),!1));return ci.options=tb,o};var eht=Qy.default=ci;function nht(){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 rht(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function eb(t){t.preventDefault(),t.stopPropagation()}function nb(t){return typeof t=="number"}function vi(t,e){return nb(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function iht(t){return`${t.source.id}-${t.target.id}`}function rb(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function oht(t){return`url(#${rb(t.color)})`}function sht(t){return{size:t,padding:(e,r)=>vi(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const ib={Arrow:t=>sht(t)},lht=(t,e,r)=>[e/2,r/2],aht=(t,e,r)=>[jv(0,e),jv(0,r)];function jv(t,e){return Math.random()*(e-t)+t}const Mf={Centered:lht,Randomized:aht};function cht(){return{autoResize:!1,callbacks:{},hooks:{},initial:rht(),nodeRadius:16,marker:ib.Arrow(4),modifiers:{},positionInitializer:Mf.Centered,simulation:{alphas:Zft(),forces:nht()},zoom:{initial:1,min:.1,max:2}}}function uht(t={}){return eht.withOptions({mergeArrays:!1},cht(),t)}function fht(t,e){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),e)}}function hht({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,offset:[u,f],scale:h,zoom:d}){const g=e.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>eb(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>a==null?void 0:a(v)).style("cursor","grab");return t&&g.call(d.transform,Ch.translate(u,f).scale(h)),g.append("g")}function dht({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function pht({config:t,onDragStart:e,onDragEnd:r}){var o,a;const u=Lct().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&e(f,h),_n(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),_n(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(a=(o=t.modifiers).drag)==null||a.call(o,u),u}function ght({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&a(d)),f=d=>u.find(g=>g.source.id===d.id||g.target.id===d.id)!==void 0,h=t.nodes.filter(d=>e.includes(d.type)&&(o||f(d)));return r===void 0||!e.includes(r.type)?{nodes:h,links:u}:vht({nodes:h,links:u},r)}function vht(t,e){const r=[...mht(t,e),...yht(t,e)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function mht(t,e){return ob(t,e,(r,o)=>r.target.id===o.id)}function yht(t,e){return ob(t,e,(r,o)=>r.source.id===o.id)}function ob(t,e,r){const o=new Set(t.links),a=new Set([e]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(d=>r(h,d)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function Nf(t){var e;return(e=t.x)!=null?e:0}function Pf(t){var e;return(e=t.y)!=null?e:0}function Eh({source:t,target:e}){const r=new hn(Nf(t),Pf(t)),o=new hn(Nf(e),Pf(e)),a=o.subtract(r),u=a.length(),f=a.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function sb({center:t,node:e}){const r=new hn(Nf(e),Pf(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new hn(0,1))),{n:r,c:o}}function lb({config:t,source:e,target:r}){const{s:o,t:a,norm:u}=Eh({config:t,source:e,target:r}),f=o.add(u.multiply(vi(t,e)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function bht(t){const{start:e,end:r}=lb(t);return`M${e.x},${e.y}
35
+ L${r.x},${r.y}`}function wht(t){const{start:e,end:r}=lb(t),o=r.subtract(e).multiply(.5),a=e.add(o);return`translate(${a.x-8},${a.y-4})`}function xht({config:t,source:e,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=Eh({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(vi(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(vi(t,r)).add(a).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
36
+ A${b},${b},0,0,1,${v.x},${v.y}`}function _ht({center:t,config:e,node:r}){const{n:o,c:a}=sb({center:t,config:e,node:r}),u=vi(e,r),f=o.subtract(a),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(u-1).add(o),v=h.rotateByDegrees(-d).multiply(u).add(o).add(h.rotateByDegrees(-d).multiply(2*e.marker.size));return`M${g.x},${g.y}
37
+ A${u},${u},0,1,0,${v.x},${v.y}`}function Sht({config:t,source:e,target:r}){const{t:o,dist:a,endNorm:u}=Eh({config:t,source:e,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function kht({center:t,config:e,node:r}){const{n:o,c:a}=sb({center:t,config:e,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*vi(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const zo={line:{labelTransform:wht,path:bht},arc:{labelTransform:Sht,path:xht},reflexive:{labelTransform:kht,path:_ht}};function Cht(t){return t.append("g").classed("links",!0).selectAll("path")}function Tht({config:t,graph:e,selection:r,showLabels:o}){const a=r==null?void 0:r.data(e.links,u=>iht(u)).join(u=>{var f,h,d,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>oht(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const w=v.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(d=t.modifiers).linkLabel)==null||g.call(d,w),v});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function Lht(t){Eht(t),Aht(t)}function Eht({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"":a.source.id===a.target.id?zo.reflexive.path({config:e,node:a.source,center:t}):ab(r,a.source,a.target)?zo.arc.path({config:e,source:a.source,target:a.target}):zo.line.path({config:e,source:a.source,target:a.target}))}function Aht({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"translate(0, 0)":a.source.id===a.target.id?zo.reflexive.labelTransform({config:t,node:a.source,center:e}):ab(r,a.source,a.target)?zo.arc.labelTransform({config:t,source:a.source,target:a.target}):zo.line.labelTransform({config:t,source:a.source,target:a.target}))}function ab(t,e,r){return e.id!==r.id&&t.links.some(o=>o.target.id===e.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===e.id)}function Mht(t){return t.append("defs").selectAll("marker")}function Nht({config:t,graph:e,selection:r}){return r==null?void 0:r.data(Pht(e),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>rb(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",Oht(t.marker.path)),a})}function Pht(t){return[...new Set(t.links.map(e=>e.color))]}function Oht(t){if(t.length<1)return"M0,0";const[[e,r],...o]=t;return o.reduce((a,[u,f])=>`${a}L${u},${f}`,`M${e},${r}`)}function $ht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Dht({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:a,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,d=>d.id).join(d=>{var g,v,b,w;const S=d.append("g");e!==void 0&&S.call(e);const M=S.append("circle").classed("node",!0).attr("aria-label",E=>E.label?E.label.text:E.id).attr("r",E=>vi(t,E)).on("contextmenu",(E,C)=>{eb(E),o(C)}).on("pointerdown",(E,C)=>zht(E,C,a??o)).style("fill",E=>E.color);(v=(g=t.modifiers).node)==null||v.call(g,M);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(w=(b=t.modifiers).nodeLabel)==null||w.call(b,A),S});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Rht=500;function zht(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,a=Date.now();if(o===void 0||a-o>Rht){e.lastInteractionTimestamp=a;return}e.lastInteractionTimestamp=void 0,r(e)}function Iht(t){t==null||t.attr("transform",e=>{var r,o;return`translate(${(r=e.x)!=null?r:0},${(o=e.y)!=null?o:0})`})}function Fht({center:t,config:e,graph:r,onTick:o}){var a,u;const f=Gft(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",Kft(()=>t().x).strength(b)).force("y",Xft(()=>t().y).strength(b))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",Vft().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",Rft().radius(b=>g.radiusMultiplier*vi(e,b)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",Ift(r.links).id(b=>b.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(a=e.modifiers).simulation)==null||u.call(a,f),f}function qht({canvasContainer:t,config:e,min:r,max:o,onZoom:a}){var u,f;const h=mft().scaleExtent([r,o]).filter(d=>{var g;return d.button===0||((g=d.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",d=>a(d)).on("end",()=>t().classed("grabbed",!1));return(f=(u=e.modifiers).zoom)==null||f.call(u,h),h}class Hht{constructor(e,r,o){if(Ne(this,"nodeTypes"),Ne(this,"_nodeTypeFilter"),Ne(this,"_includeUnlinked",!0),Ne(this,"_linkFilter",()=>!0),Ne(this,"_showLinkLabels",!0),Ne(this,"_showNodeLabels",!0),Ne(this,"filteredGraph"),Ne(this,"width",0),Ne(this,"height",0),Ne(this,"simulation"),Ne(this,"canvas"),Ne(this,"linkSelection"),Ne(this,"nodeSelection"),Ne(this,"markerSelection"),Ne(this,"zoom"),Ne(this,"drag"),Ne(this,"xOffset",0),Ne(this,"yOffset",0),Ne(this,"scale"),Ne(this,"focusedNode"),Ne(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{var u,f;const[h,d]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=(u=a.x)!=null?u:h,a.y=(f=a.y)!=null?f:d}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=a??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=u??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(fht(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,a=e?r:o;this.restart(a)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,a=e?o:r;this.restart(a)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,a=e?o:r;this.restart(a)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return hn.of([this.width,this.height]).divide(2).subtract(hn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,a=this.container.getBoundingClientRect().height,u=e.toFixed()!==o.toFixed(),f=r.toFixed()!==a.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(nb(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:a}))}restart(e){var r;this.markerSelection=Nht({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Tht({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Dht({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=Fht({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,r){e?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var e,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(e=this.resizeObserver)==null||e.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=qht({config:this.config,canvasContainer:()=>_n(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=hht({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Cht(this.canvas),this.nodeSelection=$ht(this.canvas),this.markerSelection=Mht(this.canvas),this.drag=pht({config:this.config,onDragStart:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Iht(this.nodeSelection),Lht({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),_n(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){var r,o,a;this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(a=this.simulation)==null||a.restart()}applyZoom(){dht({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=ght({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Gv({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function Bht(t){return{...t}}function cb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Wht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Uht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},jht=["id","checked","onChange"],Ght=["for"],Vht=dt("div",{"flex-auto":""},null,-1),Kht=le({__name:"ViewModuleGraph",props:{graph:null},setup(t){const e=t,{graph:r}=l1(e),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();Jf(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),gl(()=>{g()}),Qf(()=>{var b;(b=f.value)==null||b.shutdown()}),Fe(r,g);function h(b,w){var S;(S=f.value)==null||S.filterNodesByType(w,b)}function d(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Hht(o.value,r.value,uht({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:S})=>w===0&&S===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:ib.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Mf.Randomized:Mf.Centered,zoom:{min:.5,max:2}})))}function v(b){if(gi)return;const w=E=>E.button===0;let S=0,M=0,A=0;b.on("pointerdown",(E,C)=>{C.type!=="external"&&(!C.x||!C.y||!w(E)||(S=C.x,M=C.y,A=Date.now()))}).on("pointerup",(E,C)=>{if(C.type==="external"||!C.x||!C.y||!w(E)||Date.now()-A>500)return;const L=C.x-S,$=C.y-M;L**2+$**2<100&&d(C.id)})}return(b,w)=>{var C;const S=es,M=Flt,A=Llt,E=Qi("tooltip");return at(),At("div",Wht,[dt("div",null,[dt("div",Uht,[(at(!0),At(fe,null,ar((C=j(f))==null?void 0:C.nodeTypes.sort(),L=>{var $;return at(),At("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[dt("input",{id:`type-${L}`,type:"checkbox",checked:($=j(f))==null?void 0:$.nodeTypeFilter.includes(L),onChange:O=>h(L,O.target.checked)},null,40,jht),dt("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${L}`,"border-b-2":"",style:kn({"border-color":`var(--color-node-${L})`})},Xt(L)+" Modules",13,Ght)])}),128)),Vht,dt("div",null,[pn(zt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[E,"Reset",void 0,{bottom:!0}]])])])]),dt("div",{ref_key:"el",ref:o},null,512),zt(A,{modelValue:j(a),"onUpdate:modelValue":w[1]||(w[1]=L=>Ee(a)?a.value=L:null),direction:"right"},{default:Jt(()=>[j(u)?(at(),ne(S1,{key:0},{default:Jt(()=>[zt(M,{id:j(u),onClose:w[0]||(w[0]=L=>a.value=!1)},null,8,["id"])]),_:1})):se("",!0)]),_:1},8,["modelValue"])])}}});const Xht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Yht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Jht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Zht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Qht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},tdt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Ah=le({__name:"StatusIcon",props:{task:null},setup(t){return(e,r)=>{var a,u,f;const o=Qi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(at(),At("div",Xht)):j(wc)(t.task)?pn((at(),At("div",Yht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(at(),At("div",Jht)):t.task.mode==="todo"?pn((at(),At("div",Zht,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?pn((at(),At("div",Qht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(at(),At("div",tdt))}}});function edt(t){const e=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){a++;const{raw:b,candidate:w}=u;e.set(b,w);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,a===t.length)break}return e}function ndt(t){let e=t;e.includes("/node_modules/")&&(e=t.split(/\/node_modules\//g).pop());const r=e.split(/\//g);return{raw:e,splits:r,candidate:"",finished:!1,id:t}}function rdt(t){const e=t.map(o=>ndt(o)),r=edt(e);return e.map(({raw:o,id:a})=>cb({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:a,type:"external"}))}function idt(t,e){return cb({color:e?"var(--color-node-root)":"var(--color-node-inline)",label:{color:e?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function odt(t,e){if(!t)return Gv({});const r=rdt(t.externalized),o=t.inlined.map(h=>idt(h,h===e))??[],a=[...r,...o],u=Object.fromEntries(a.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=u[h],b=u[g];if(!(v===void 0||b===void 0))return Bht({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return Gv({nodes:a,links:f})}const sdt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},ldt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},adt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},cdt={class:"flex text-lg"},udt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},fdt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},hdt={key:0,"flex-1":""},ddt=le({__name:"FileDetails",setup(t){const e=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);MC(Le,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await Ue.rpc.getModuleGraph(g.filepath),r.value=odt(e.value,g.filepath))},{debounce:100,immediate:!0});const u=()=>{var v;const g=(v=Le.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)},f=g=>{g==="graph"&&(a.value=!0),sr.value=g},h=St(()=>{var g;return((g=ry.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function d(g){o.value=g}return(g,v)=>{var L,$;const b=Ah,w=es,S=Kht,M=Tlt,A=xlt,E=dlt,C=Qi("tooltip");return j(Le)?(at(),At("div",sdt,[dt("div",null,[dt("div",ldt,[zt(b,{task:j(Le)},null,8,["task"]),dt("div",adt,Xt((L=j(Le))==null?void 0:L.filepath),1),dt("div",cdt,[j(gi)?se("",!0):pn((at(),ne(w,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!(($=j(Le))!=null&&$.filepath),onClick:u},null,8,["disabled"])),[[C,"Open in editor",void 0,{bottom:!0}]])])]),dt("div",udt,[dt("button",{"tab-button":"",class:ve({"tab-button-active":j(sr)==null}),onClick:v[0]||(v[0]=O=>f(null))}," Report ",2),dt("button",{"tab-button":"",class:ve({"tab-button-active":j(sr)==="graph"}),onClick:v[1]||(v[1]=O=>f("graph"))}," Module Graph ",2),j(gi)?se("",!0):(at(),At("button",{key:0,"tab-button":"",class:ve({"tab-button-active":j(sr)==="editor"}),onClick:v[2]||(v[2]=O=>f("editor"))},Xt(j(o)?"* ":"")+"Code ",3)),dt("button",{"tab-button":"",class:ve({"tab-button-active":j(sr)==="console",op20:j(sr)!=="console"&&j(h)===0}),onClick:v[3]||(v[3]=O=>f("console"))}," Console ("+Xt(j(h))+") ",3)])]),dt("div",fdt,[j(a)?(at(),At("div",hdt,[pn(zt(S,{graph:j(r)},null,8,["graph"]),[[Zm,j(sr)==="graph"]])])):se("",!0),j(sr)==="editor"?(at(),ne(M,{key:j(Le).filepath,file:j(Le),onDraft:d},null,8,["file"])):j(sr)==="console"?(at(),ne(A,{key:2,file:j(Le)},null,8,["file"])):j(sr)?se("",!0):(at(),ne(E,{key:3,file:j(Le)},null,8,["file"]))])])):se("",!0)}}}),pdt=["open"],gdt=dt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),vdt=dt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),mdt=le({__name:"DetailsPanel",props:{color:null},setup(t){const e=Kt(!0);return(r,o)=>(at(),At("div",{open:j(e),class:"details-panel",onToggle:o[0]||(o[0]=a=>e.value=a.target.open)},[dt("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ve(t.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[gdt,Xn(r.$slots,"summary",{open:j(e)}),vdt],2),Xn(r.$slots,"default")],40,pdt))}});const ydt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},bdt=["text"],wdt={"text-sm":"",truncate:"","font-light":""},xdt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},_dt=le({__name:"TaskItem",props:{task:null},setup(t){const e=t,r=St(()=>{const{result:o}=e.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=Ah;return t.task?(at(),At("div",ydt,[zt(u,{task:t.task,"mr-2":""},null,8,["task"]),dt("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=t.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[dt("span",wdt,Xt(t.task.name),1),typeof j(r)=="number"?(at(),At("span",xdt,Xt(j(r)>0?j(r):"< 1")+"ms ",1)):se("",!0)],8,bdt)])):se("",!0)}}});function Sdt(t){return Object.hasOwnProperty.call(t,"tasks")}function ub(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}const kdt={key:1},Cdt={inheritAttrs:!1},Tdt=le({...Cdt,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(e,r)=>{const o=_dt,a=Ki("TaskTree",!0);return at(),At(fe,null,[!t.search||j(ub)(t.task.name,t.search)?(at(),ne(o,hi({key:0},e.$attrs,{task:t.task,style:{paddingLeft:`${t.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>t.onItemClick&&t.onItemClick(t.task))}),null,16,["task","style"])):se("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(at(),At("div",kdt,[(at(!0),At(fe,null,ar(t.task.tasks,u=>(at(),ne(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))])):se("",!0)],64)}}}),Ldt={h:"full",flex:"~ col"},Edt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Adt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Mdt=dt("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Ndt=["op"],Pdt={class:"scrolls","flex-auto":"","py-1":""},Odt={"text-red5":""},$dt={"text-yellow5":""},Ddt={"text-green5":""},Rdt={class:"text-purple5:50"},zdt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Idt=dt("div",{op30:""}," No matched test ",-1),Fdt={inheritAttrs:!1},fb=le({...Fdt,__name:"TasksList",props:{tasks:null,indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:null},emits:["run"],setup(t,{emit:e}){const r=t,o=Kt(""),a=Kt(),u=St(()=>o.value.trim()!==""),f=(E,C)=>{let L=!1;for(let $=0;$<E.length;$++){const O=E[$];if(ub(O.name,C)){L=!0;break}if(Sdt(O)&&O.tasks&&(L=f(O.tasks,C),L))break}return L},h=St(()=>o.value.trim()?r.tasks.filter(E=>f([E],o.value)):r.tasks),d=St(()=>u.value?h.value.map(E=>Ua(E.id)).filter(Boolean):[]),g=St(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="fail"})),v=St(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="pass"})),b=St(()=>h.value.filter(E=>E.mode==="skip"||E.mode==="todo")),w=St(()=>h.value.filter(E=>!g.value.includes(E)&&!v.value.includes(E)&&!b.value.includes(E))),S=yC(w,250),M=E=>{var C;o.value="",E&&((C=a.value)==null||C.focus())},A=St(()=>o.value==="");return(E,C)=>{const L=es,$=Tdt,O=mdt,G=Qi("tooltip");return at(),At("div",Ldt,[dt("div",null,[dt("div",Edt,[Xn(E.$slots,"header",{filteredTests:j(u)?j(d):void 0})]),dt("div",Adt,[Mdt,pn(dt("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":C[0]||(C[0]=V=>Ee(o)?o.value=V:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:j(o).length?"100":"50",onKeydown:[C[1]||(C[1]=nf(V=>M(!1),["esc"])),C[2]||(C[2]=nf(V=>e("run",j(u)?j(d):void 0),["enter"]))]},null,40,Ndt),[[U_,j(o)]]),pn(zt(L,{disabled:j(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=V=>M(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),dt("div",Pdt,[t.groupByType?(at(),At(fe,{key:0},[j(g).length?(at(),ne(O,{key:0},{summary:Jt(()=>[dt("div",Odt," FAIL ("+Xt(j(g).length)+") ",1)]),default:Jt(()=>[(at(!0),At(fe,null,ar(j(g),V=>(at(),ne($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Mr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):se("",!0),j(w).length||j(Wa)==="running"?(at(),ne(O,{key:1},{summary:Jt(()=>[dt("div",$dt," RUNNING ("+Xt(j(S).length)+") ",1)]),default:Jt(()=>[(at(!0),At(fe,null,ar(j(S),V=>(at(),ne($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Mr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):se("",!0),j(v).length?(at(),ne(O,{key:2},{summary:Jt(()=>[dt("div",Ddt," PASS ("+Xt(j(v).length)+") ",1)]),default:Jt(()=>[(at(!0),At(fe,null,ar(j(v),V=>(at(),ne($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Mr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):se("",!0),j(b).length?(at(),ne(O,{key:3},{summary:Jt(()=>[dt("div",Rdt," SKIP ("+Xt(j(b).length)+") ",1)]),default:Jt(()=>[(at(!0),At(fe,null,ar(j(b),V=>(at(),ne($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Mr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):se("",!0)],64)):(at(!0),At(fe,{key:1},ar(j(h),V=>(at(),ne($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Mr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),j(u)&&j(h).length===0?(at(),At("div",zdt,[Idt,dt("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]=V=>M(!0))}," Clear ",32)])):se("",!0)])])}}}),qdt={key:0,"h-full":""},Hdt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},Bdt={class:"flex text-lg"},Wdt=le({__name:"Suites",setup(t){const e=St(()=>{var a;return(a=Le.value)==null?void 0:a.name.split(/\//g).pop()}),r=St(()=>{var a,u;return((a=Le.value)==null?void 0:a.tasks)&&wc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&Ue.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=Ah,h=es,d=fb,g=Qi("tooltip");return j(Le)?(at(),At("div",qdt,[zt(d,{tasks:j(Le).tasks,nested:!0},{header:Jt(()=>[zt(f,{"mx-1":"",task:j(Le)},null,8,["task"]),dt("span",Hdt,Xt(j(e)),1),dt("div",Bdt,[j(r)&&!j(gi)?pn((at(),ne(h,{key:0,icon:"i-carbon-result-old",onClick:u[0]||(u[0]=v=>o())},null,512)),[[g,`Update failed snapshot(s) of ${j(Le).name}`,void 0,{bottom:!0}]]):se("",!0),j(gi)?se("",!0):pn((at(),ne(h,{key:1,icon:"i-carbon-play",onClick:u[1]||(u[1]=v=>j(qT)())},null,512)),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):se("",!0)}}}),Ja=St(()=>Tn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Za=St(()=>Tn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Mh=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!Ja.value.includes(t)&&!Za.value.includes(t)&&!Mh.value.includes(t)));St(()=>Mh.value.filter(t=>t.mode==="skip"));const Vv=St(()=>Tn.value.filter(wc));St(()=>Mh.value.filter(t=>t.mode==="todo"));const Udt=St(()=>Wa.value==="idle"),_l=St(()=>Nh(Tn.value)),hb=St(()=>_l.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),db=St(()=>_l.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),pb=St(()=>_l.value.filter(t=>t.mode==="skip"||t.mode==="todo")),jdt=St(()=>pb.value.filter(t=>t.mode==="skip")),Gdt=St(()=>pb.value.filter(t=>t.mode==="todo"));St(()=>hb.value.length+db.value.length);const Vdt=St(()=>{const t=Nh(_l.value).reduce((e,r)=>{var o;return(o=r.result)!=null&&o.duration&&(e+=r.result.duration),e},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function Kdt(t){return t=t||[],Array.isArray(t)?t:[t]}function Kv(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function Nh(t){return Kdt(t).flatMap(e=>Kv(e)?[e]:e.tasks.flatMap(r=>Kv(r)?[r]:Nh(r)))}const gr=t=>(Tm("data-v-6679a536"),t=t(),Lm(),t),Xdt={"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:""},Ydt=gr(()=>dt("div",{"i-carbon-document":""},null,-1)),Jdt=gr(()=>dt("div",null,"Files",-1)),Zdt={class:"number","data-testid":"num-files"},Qdt=gr(()=>dt("div",{"i-carbon-checkmark":""},null,-1)),tpt=gr(()=>dt("div",null,"Pass",-1)),ept={class:"number"},npt=gr(()=>dt("div",{"i-carbon-close":""},null,-1)),rpt=gr(()=>dt("div",null," Fail ",-1)),ipt={class:"number","text-red5":""},opt=gr(()=>dt("div",{"i-carbon-compare":""},null,-1)),spt=gr(()=>dt("div",null," Snapshot Fail ",-1)),lpt={class:"number","text-red5":""},apt=gr(()=>dt("div",{"i-carbon-timer":""},null,-1)),cpt=gr(()=>dt("div",null,"Time",-1)),upt={class:"number","data-testid":"run-time"},fpt=le({__name:"TestFilesEntry",setup(t){return(e,r)=>(at(),At("div",Xdt,[Ydt,Jdt,dt("div",Zdt,Xt(j(Tn).length),1),j(Za).length?(at(),At(fe,{key:0},[Qdt,tpt,dt("div",ept,Xt(j(Za).length),1)],64)):se("",!0),j(Ja).length?(at(),At(fe,{key:1},[npt,rpt,dt("div",ipt,Xt(j(Ja).length),1)],64)):se("",!0),j(Vv).length?(at(),At(fe,{key:2},[opt,spt,dt("div",lpt,Xt(j(Vv).length),1)],64)):se("",!0),apt,cpt,dt("div",upt,Xt(j(Vdt)),1)]))}});const hpt=Qo(fpt,[["__scopeId","data-v-6679a536"]]),dpt={"p-2":"","text-center":"",flex:""},ppt={"text-4xl":"","min-w-2em":""},gpt={"text-md":""},vpt=le({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(at(),At("div",dpt,[dt("div",null,[dt("div",ppt,[Xn(e.$slots,"body")]),dt("div",gpt,[Xn(e.$slots,"header")])])]))}}),mpt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},ypt=le({__name:"TestsEntry",setup(t){const e=St(()=>_l.value.length),r=St(()=>db.value.length),o=St(()=>hb.value.length),a=St(()=>jdt.value.length),u=St(()=>Gdt.value.length);return St(()=>j(e)-o.value-r.value),(f,h)=>{const d=vpt;return at(),At("div",mpt,[zt(d,{"text-green5":"","data-testid":"pass-entry"},{header:Jt(()=>[fn(" Pass ")]),body:Jt(()=>[fn(Xt(j(r)),1)]),_:1}),zt(d,{class:ve({"text-red5":j(o),op50:!j(o)}),"data-testid":"fail-entry"},{header:Jt(()=>[fn(" Fail ")]),body:Jt(()=>[fn(Xt(j(o)),1)]),_:1},8,["class"]),j(a)?(at(),ne(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Jt(()=>[fn(" Skip ")]),body:Jt(()=>[fn(Xt(j(a)),1)]),_:1})):se("",!0),j(u)?(at(),ne(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Jt(()=>[fn(" Todo ")]),body:Jt(()=>[fn(Xt(j(u)),1)]),_:1})):se("",!0),zt(d,{tail:!0,"data-testid":"total-entry"},{header:Jt(()=>[fn(" Total ")]),body:Jt(()=>[fn(Xt(j(e)),1)]),_:1})])}}}),bpt={},wpt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},xpt={"aria-labelledby":"tests",m:"y-4 x-2"};function _pt(t,e){const r=ypt,o=hpt;return at(),At("div",wpt,[dt("section",xpt,[zt(r)]),zt(o)])}const Spt=Qo(bpt,[["render",_pt]]),kpt={},Cpt={h:"full",flex:"~ col"},Tpt=dt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[dt("div",{class:"i-carbon-dashboard"}),dt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Lpt={class:"scrolls","flex-auto":"","py-1":""};function Ept(t,e){const r=Spt;return at(),At("div",Cpt,[Tpt,dt("div",Lpt,[zt(r)])])}const Apt=Qo(kpt,[["render",Ept]]),Mpt="/__vitest__/favicon.svg",Qa=Kt(),Ks=Kt(!0);function Npt(){const t=Mr.value;if(t&&t.length>0){const e=Ua(t);e?(Qa.value=e,Ks.value=!1):NC(()=>Ue.state.getFiles(),()=>{Qa.value=Ua(t),Ks.value=!1})}return Ks}function Xv(t){Ks.value=t,t&&(Qa.value=void 0,Mr.value="")}const Ppt=dt("img",{"w-6":"","h-6":"",src:Mpt,alt:"Vitest logo"},null,-1),Opt=dt("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),$pt={class:"flex text-lg"},Dpt=le({__name:"Navigation",setup(t){const e=St(()=>Tn.value&&wc(Tn.value)),r=()=>Ue.rpc.updateSnapshot();function o(u){Mr.value=u.id,Qa.value=Ua(u.id),Xv(!1)}const a=St(()=>Sc.value?"light":"dark");return(u,f)=>{const h=es,d=fb,g=Qi("tooltip");return at(),ne(d,{border:"r base",tasks:j(Tn),"on-item-click":o,"group-by-type":!0,onRun:j(av)},{header:Jt(({filteredTests:v})=>[Ppt,Opt,dt("div",$pt,[pn(zt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>j(Xv)(!0))},null,512),[[Zm,!j(Ks)],[g,"Dashboard",void 0,{bottom:!0}]]),j(e)&&!j(gi)?pn((at(),ne(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}]]):se("",!0),j(gi)?se("",!0):pn((at(),ne(h,{key:1,disabled:(v==null?void 0:v.length)===0,icon:"i-carbon-play",onClick:b=>j(av)(v)},null,8,["disabled","onClick"])),[[g,v?v.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),pn(zt(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:f[2]||(f[2]=b=>j(ilt)())},null,512),[[g,`Toggle to ${j(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),Rpt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},zpt=le({__name:"ProgressBar",setup(t){const{width:e}=wT(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Udt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>Za.value.length),u=St(()=>Ja.value.length),f=St(()=>{const v=j(o);return v>0?e.value*a.value/v:0}),h=St(()=>{const v=j(o);return v>0?e.value*u.value/v:0}),d=St(()=>j(o)-u.value-a.value),g=St(()=>{const v=j(o);return v>0?e.value*d.value/v:0});return(v,b)=>(at(),At("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ve(j(r))},[dt("div",Rpt,[dt("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(j(r)),style:kn(`width: ${j(h)}px;`)},"   ",6),dt("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(j(r)),style:kn(`left: ${j(h)}px; width: ${j(f)}px;`)},"   ",6),dt("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(j(r)),style:kn(`left: ${j(f)+j(h)}px; width: ${j(g)}px;`)},"   ",6)])],2))}});const Ipt=Qo(zpt,[["__scopeId","data-v-f967c1fe"]]),Yv={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===e?o.max:o.min,a!==e&&(r+=o.min),o)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:o-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[e,e+1],h=this.panes[f[0]]||null,d=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,v=d.max<100&&u<=100-(d.max+this.sumNextPanesSize(e+1));if(g||v){g?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),d.size=d.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(r,u);if(!b)return;({sums:r,panesToResize:f}=b),h=this.panes[f[0]]||null,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,o=[r,r+1];return e<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.index<t&&e.size>e.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,e,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([o,a])=>r[o]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),e>.1&&this.readjustSizes(e,r,o)},initialPanesSizing(){let t=100;const e=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&e.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!e.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,r)=>{e.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return vl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Fpt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},qpt={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 Hpt(t,e,r,o,a,u){return at(),At("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>u.onPaneClick(f,t._.uid)),style:kn(t.style)},[Xn(t.$slots,"default")],4)}const ma=Fpt(qpt,[["render",Hpt]]),Bpt={"h-screen":"","w-screen":"",overflow:"hidden"},Wpt=le({__name:"index",setup(t){const e=Npt(),r=Pn([33,67]),o=Pn([33,67]),a=jg(h=>{h.forEach((d,g)=>{r[g]=d.size})},0),u=jg(h=>{h.forEach((d,g)=>{o[g]=d.size})},0),f=()=>{const h=window.innerWidth,d=Math.min(h/3,300);r[0]=100*d/h,r[1]=100-r[0],o[0]=100*d/(h-d),o[1]=100-o[0]};return(h,d)=>{const g=Ipt,v=Dpt,b=Apt,w=Wdt,S=ddt,M=WT;return at(),At(fe,null,[zt(g),dt("div",Bpt,[zt(j(Yv),{class:"pt-4px",onResized:j(a),onReady:f},{default:Jt(()=>[zt(j(ma),{size:j(r)[0]},{default:Jt(()=>[zt(v)]),_:1},8,["size"]),zt(j(ma),{size:j(r)[1]},{default:Jt(()=>[zt(rh,null,{default:Jt(()=>[j(e)?(at(),ne(b,{key:"summary"})):(at(),ne(j(Yv),{key:"detail",onResized:j(u)},{default:Jt(()=>[zt(j(ma),{size:j(o)[0]},{default:Jt(()=>[zt(w)]),_:1},8,["size"]),zt(j(ma),{size:j(o)[1]},{default:Jt(()=>[zt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),zt(M)],64)}}}),Upt=[{name:"index",path:"/",component:Wpt,props:!0}];const jpt={tooltip:uC};O0.options.instantMove=!0;O0.options.distance=10;const Gpt=()=>QS({history:gS("/__vitest__/"),routes:Upt}),Vpt=[Gpt],Ph=Qm(J_);Vpt.forEach(t=>{Ph.use(t())});Object.entries(jpt).forEach(([t,e])=>{Ph.directive(t,e)});Ph.mount("#app");