astro-ghostcms/.pnpm-store/v3/files/b6/352d75f45821782c69402bcfd2b...

36 lines
547 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var jx=Object.defineProperty;var Vx=(t,e,r)=>e in t?jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ci=(t,e,r)=>(Vx(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 s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)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(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function lh(t,e){const r=Object.create(null),o=t.split(",");for(let s=0;s<o.length;s++)r[o[s]]=!0;return e?s=>!!r[s.toLowerCase()]:s=>!!r[s]}const we={},Go=[],wr=()=>{},Gx=()=>!1,Kx=/^on[^a-z]/,_c=t=>Kx.test(t),ah=t=>t.startsWith("onUpdate:"),ze=Object.assign,ch=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Xx=Object.prototype.hasOwnProperty,le=(t,e)=>Xx.call(t,e),It=Array.isArray,Ko=t=>kc(t)==="[object Map]",xm=t=>kc(t)==="[object Set]",jt=t=>typeof t=="function",Ie=t=>typeof t=="string",Sc=t=>typeof t=="symbol",ye=t=>t!==null&&typeof t=="object",_m=t=>(ye(t)||jt(t))&&jt(t.then)&&jt(t.catch),Sm=Object.prototype.toString,kc=t=>Sm.call(t),Yx=t=>kc(t).slice(8,-1),km=t=>kc(t)==="[object Object]",uh=t=>Ie(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ia=lh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Zx=/-(\w)/g,_r=Cc(t=>t.replace(Zx,(e,r)=>r?r.toUpperCase():"")),Qx=/\B([A-Z])/g,co=Cc(t=>t.replace(Qx,"-$1").toLowerCase()),Tc=Cc(t=>t.charAt(0).toUpperCase()+t.slice(1)),ju=Cc(t=>t?`on${Tc(t)}`:""),ro=(t,e)=>!Object.is(t,e),Fa=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},Za=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},gf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Cm=t=>{const e=Ie(t)?Number(t):NaN;return isNaN(e)?t:e};let cg;const vf=()=>cg||(cg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function An(t){if(It(t)){const e={};for(let r=0;r<t.length;r++){const o=t[r],s=Ie(o)?n1(o):An(o);if(s)for(const u in s)e[u]=s[u]}return e}else if(Ie(t)||ye(t))return t}const Jx=/;(?![^(]*\))/g,t1=/:([^]+)/,e1=/\/\*[^]*?\*\//g;function n1(t){const e={};return t.replace(e1,"").split(Jx).forEach(r=>{if(r){const o=r.split(t1);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function ve(t){let e="";if(Ie(t))e=t;else if(It(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(e+=o+" ")}else if(ye(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const r1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",i1=lh(r1);function Tm(t){return!!t||t===""}const Ut=t=>Ie(t)?t:t==null?"":It(t)||ye(t)&&(t.toString===Sm||!jt(t.toString))?JSON.stringify(t,Em,2):String(t),Em=(t,e)=>e&&e.__v_isRef?Em(t,e.value):Ko(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,s])=>(r[`${o} =>`]=s,r),{})}:xm(e)?{[`Set(${e.size})`]:[...e.values()]}:ye(e)&&!It(e)&&!km(e)?String(e):e;let $n;class o1{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$n,!e&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=$n;try{return $n=this,e()}finally{$n=r}}}on(){$n=this}off(){$n=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 s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function s1(t,e=$n){e&&e.active&&e.effects.push(t)}function Lm(){return $n}function l1(t){$n&&$n.cleanups.push(t)}const fh=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Am=t=>(t.w&Ti)>0,Mm=t=>(t.n&Ti)>0,a1=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=Ti},c1=t=>{const{deps:e}=t;if(e.length){let r=0;for(let o=0;o<e.length;o++){const s=e[o];Am(s)&&!Mm(s)?s.delete(t):e[r++]=s,s.w&=~Ti,s.n&=~Ti}e.length=r}},Qa=new WeakMap;let rl=0,Ti=1;const mf=30;let ir;const Ji=Symbol(""),yf=Symbol("");class hh{constructor(e,r=null,o){this.fn=e,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,s1(this,o)}run(){if(!this.active)return this.fn();let e=ir,r=Si;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ir,ir=this,Si=!0,Ti=1<<++rl,rl<=mf?a1(this):ug(this),this.fn()}finally{rl<=mf&&c1(this),Ti=1<<--rl,ir=this.parent,Si=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ir===this?this.deferStop=!0:this.active&&(ug(this),this.onStop&&this.onStop(),this.active=!1)}}function ug(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}let Si=!0;const Nm=[];function ps(){Nm.push(Si),Si=!1}function gs(){const t=Nm.pop();Si=t===void 0?!0:t}function Nn(t,e,r){if(Si&&ir){let o=Qa.get(t);o||Qa.set(t,o=new Map);let s=o.get(r);s||o.set(r,s=fh()),Pm(s)}}function Pm(t,e){let r=!1;rl<=mf?Mm(t)||(t.n|=Ti,r=!Am(t)):r=!t.has(ir),r&&(t.add(ir),ir.deps.push(t))}function Fr(t,e,r,o,s,u){const f=Qa.get(t);if(!f)return;let h=[];if(e==="clear")h=[...f.values()];else if(r==="length"&&It(t)){const d=Number(o);f.forEach((g,v)=>{(v==="length"||!Sc(v)&&v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":It(t)?uh(r)&&h.push(f.get("length")):(h.push(f.get(Ji)),Ko(t)&&h.push(f.get(yf)));break;case"delete":It(t)||(h.push(f.get(Ji)),Ko(t)&&h.push(f.get(yf)));break;case"set":Ko(t)&&h.push(f.get(Ji));break}if(h.length===1)h[0]&&bf(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);bf(fh(d))}}function bf(t,e){const r=It(t)?t:[...t];for(const o of r)o.computed&&fg(o);for(const o of r)o.computed||fg(o)}function fg(t,e){(t!==ir||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function u1(t,e){var r;return(r=Qa.get(t))==null?void 0:r.get(e)}const f1=lh("__proto__,__v_isRef,__isVue"),Om=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Sc)),hg=h1();function h1(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=ae(this);for(let u=0,f=this.length;u<f;u++)Nn(o,"get",u+"");const s=o[e](...r);return s===-1||s===!1?o[e](...r.map(ae)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){ps();const o=ae(this)[e].apply(this,r);return gs(),o}}),t}function d1(t){const e=ae(this);return Nn(e,"has",t),e.hasOwnProperty(t)}class Dm{constructor(e=!1,r=!1){this._isReadonly=e,this._shallow=r}get(e,r,o){const s=this._isReadonly,u=this._shallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return u;if(r==="__v_raw"&&o===(s?u?T1:Im:u?zm:Rm).get(e))return e;const f=It(e);if(!s){if(f&&le(hg,r))return Reflect.get(hg,r,o);if(r==="hasOwnProperty")return d1}const h=Reflect.get(e,r,o);return(Sc(r)?Om.has(r):f1(r))||(s||Nn(e,"get",r),u)?h:Le(h)?f&&uh(r)?h:h.value:ye(h)?s?Lc(h):Un(h):h}}class $m extends Dm{constructor(e=!1){super(!1,e)}set(e,r,o,s){let u=e[r];if(rs(u)&&Le(u)&&!Le(o))return!1;if(!this._shallow&&(!Ja(o)&&!rs(o)&&(u=ae(u),o=ae(o)),!It(e)&&Le(u)&&!Le(o)))return u.value=o,!0;const f=It(e)&&uh(r)?Number(r)<e.length:le(e,r),h=Reflect.set(e,r,o,s);return e===ae(s)&&(f?ro(o,u)&&Fr(e,"set",r,o):Fr(e,"add",r,o)),h}deleteProperty(e,r){const o=le(e,r);e[r];const s=Reflect.deleteProperty(e,r);return s&&o&&Fr(e,"delete",r,void 0),s}has(e,r){const o=Reflect.has(e,r);return(!Sc(r)||!Om.has(r))&&Nn(e,"has",r),o}ownKeys(e){return Nn(e,"iterate",It(e)?"length":Ji),Reflect.ownKeys(e)}}class p1 extends Dm{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const g1=new $m,v1=new p1,m1=new $m(!0),dh=t=>t,Ec=t=>Reflect.getPrototypeOf(t);function wa(t,e,r=!1,o=!1){t=t.__v_raw;const s=ae(t),u=ae(e);r||(ro(e,u)&&Nn(s,"get",e),Nn(s,"get",u));const{has:f}=Ec(s),h=o?dh:r?mh:pl;if(f.call(s,e))return h(t.get(e));if(f.call(s,u))return h(t.get(u));t!==s&&t.get(e)}function xa(t,e=!1){const r=this.__v_raw,o=ae(r),s=ae(t);return e||(ro(t,s)&&Nn(o,"has",t),Nn(o,"has",s)),t===s?r.has(t):r.has(t)||r.has(s)}function _a(t,e=!1){return t=t.__v_raw,!e&&Nn(ae(t),"iterate",Ji),Reflect.get(t,"size",t)}function dg(t){t=ae(t);const e=ae(this);return Ec(e).has.call(e,t)||(e.add(t),Fr(e,"add",t,t)),this}function pg(t,e){e=ae(e);const r=ae(this),{has:o,get:s}=Ec(r);let u=o.call(r,t);u||(t=ae(t),u=o.call(r,t));const f=s.call(r,t);return r.set(t,e),u?ro(e,f)&&Fr(r,"set",t,e):Fr(r,"add",t,e),this}function gg(t){const e=ae(this),{has:r,get:o}=Ec(e);let s=r.call(e,t);s||(t=ae(t),s=r.call(e,t)),o&&o.call(e,t);const u=e.delete(t);return s&&Fr(e,"delete",t,void 0),u}function vg(){const t=ae(this),e=t.size!==0,r=t.clear();return e&&Fr(t,"clear",void 0,void 0),r}function Sa(t,e){return function(o,s){const u=this,f=u.__v_raw,h=ae(f),d=e?dh:t?mh:pl;return!t&&Nn(h,"iterate",Ji),f.forEach((g,v)=>o.call(s,d(g),d(v),u))}}function ka(t,e,r){return function(...o){const s=this.__v_raw,u=ae(s),f=Ko(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=s[t](...o),v=r?dh:e?mh:pl;return!e&&Nn(u,"iterate",d?yf:Ji),{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 ui(t){return function(...e){return t==="delete"?!1:this}}function y1(){const t={get(u){return wa(this,u)},get size(){return _a(this)},has:xa,add:dg,set:pg,delete:gg,clear:vg,forEach:Sa(!1,!1)},e={get(u){return wa(this,u,!1,!0)},get size(){return _a(this)},has:xa,add:dg,set:pg,delete:gg,clear:vg,forEach:Sa(!1,!0)},r={get(u){return wa(this,u,!0)},get size(){return _a(this,!0)},has(u){return xa.call(this,u,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:Sa(!0,!1)},o={get(u){return wa(this,u,!0,!0)},get size(){return _a(this,!0)},has(u){return xa.call(this,u,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:Sa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ka(u,!1,!1),r[u]=ka(u,!0,!1),e[u]=ka(u,!1,!0),o[u]=ka(u,!0,!0)}),[t,r,e,o]}const[b1,w1,x1,_1]=y1();function ph(t,e){const r=e?t?_1:x1:t?w1:b1;return(o,s,u)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?o:Reflect.get(le(r,s)&&s in o?r:o,s,u)}const S1={get:ph(!1,!1)},k1={get:ph(!1,!0)},C1={get:ph(!0,!1)},Rm=new WeakMap,zm=new WeakMap,Im=new WeakMap,T1=new WeakMap;function E1(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L1(t){return t.__v_skip||!Object.isExtensible(t)?0:E1(Yx(t))}function Un(t){return rs(t)?t:gh(t,!1,g1,S1,Rm)}function Fm(t){return gh(t,!1,m1,k1,zm)}function Lc(t){return gh(t,!0,v1,C1,Im)}function gh(t,e,r,o,s){if(!ye(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=s.get(t);if(u)return u;const f=L1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return s.set(t,h),h}function Xo(t){return rs(t)?Xo(t.__v_raw):!!(t&&t.__v_isReactive)}function rs(t){return!!(t&&t.__v_isReadonly)}function Ja(t){return!!(t&&t.__v_isShallow)}function qm(t){return Xo(t)||rs(t)}function ae(t){const e=t&&t.__v_raw;return e?ae(e):t}function vh(t){return Za(t,"__v_skip",!0),t}const pl=t=>ye(t)?Un(t):t,mh=t=>ye(t)?Lc(t):t;function yh(t){Si&&ir&&(t=ae(t),Pm(t.dep||(t.dep=fh())))}function bh(t,e){t=ae(t);const r=t.dep;r&&bf(r)}function Le(t){return!!(t&&t.__v_isRef===!0)}function Zt(t){return Hm(t,!1)}function vs(t){return Hm(t,!0)}function Hm(t,e){return Le(t)?t:new A1(t,e)}class A1{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:ae(e),this._value=r?e:pl(e)}get value(){return yh(this),this._value}set value(e){const r=this.__v_isShallow||Ja(e)||rs(e);e=r?e:ae(e),ro(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:pl(e),bh(this))}}function U(t){return Le(t)?t.value:t}const M1={get:(t,e,r)=>U(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const s=t[e];return Le(s)&&!Le(r)?(s.value=r,!0):Reflect.set(t,e,r,o)}};function Bm(t){return Xo(t)?t:new Proxy(t,M1)}class N1{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=e(()=>yh(this),()=>bh(this));this._get=r,this._set=o}get value(){return this._get()}set value(e){this._set(e)}}function P1(t){return new N1(t)}function O1(t){const e=It(t)?new Array(t.length):{};for(const r in t)e[r]=Wm(t,r);return e}class D1{constructor(e,r,o){this._object=e,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return u1(ae(this._object),this._key)}}class $1{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function wh(t,e,r){return Le(t)?t:jt(t)?new $1(t):ye(t)&&arguments.length>1?Wm(t,e,r):Zt(t)}function Wm(t,e,r){const o=t[e];return Le(o)?o:new D1(t,e,r)}class R1{constructor(e,r,o,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new hh(e,()=>{this._dirty||(this._dirty=!0,bh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const e=ae(this);return yh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function z1(t,e,r=!1){let o,s;const u=jt(t);return u?(o=t,s=wr):(o=t.get,s=t.set),new R1(o,s,u||!s,r)}function ki(t,e,r,o){let s;try{s=o?t(...o):t()}catch(u){Nl(u,e,r)}return s}function jn(t,e,r,o){if(jt(t)){const u=ki(t,e,r,o);return u&&_m(u)&&u.catch(f=>{Nl(f,e,r)}),u}const s=[];for(let u=0;u<t.length;u++)s.push(jn(t[u],e,r,o));return s}function Nl(t,e,r,o=!0){const s=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){ki(d,null,10,[t,f,h]);return}}I1(t,r,s,o)}function I1(t,e,r,o=!0){console.error(t)}let gl=!1,wf=!1;const en=[];let vr=0;const Yo=[];let $r=null,Ki=0;const Um=Promise.resolve();let xh=null;function Br(t){const e=xh||Um;return t?e.then(this?t.bind(this):t):e}function F1(t){let e=vr+1,r=en.length;for(;e<r;){const o=e+r>>>1,s=en[o],u=vl(s);u<t||u===t&&s.pre?e=o+1:r=o}return e}function _h(t){(!en.length||!en.includes(t,gl&&t.allowRecurse?vr+1:vr))&&(t.id==null?en.push(t):en.splice(F1(t.id),0,t),jm())}function jm(){!gl&&!wf&&(wf=!0,xh=Um.then(Gm))}function q1(t){const e=en.indexOf(t);e>vr&&en.splice(e,1)}function xf(t){It(t)?Yo.push(...t):(!$r||!$r.includes(t,t.allowRecurse?Ki+1:Ki))&&Yo.push(t),jm()}function mg(t,e=gl?vr+1:0){for(;e<en.length;e++){const r=en[e];r&&r.pre&&(en.splice(e,1),e--,r())}}function Vm(t){if(Yo.length){const e=[...new Set(Yo)];if(Yo.length=0,$r){$r.push(...e);return}for($r=e,$r.sort((r,o)=>vl(r)-vl(o)),Ki=0;Ki<$r.length;Ki++)$r[Ki]();$r=null,Ki=0}}const vl=t=>t.id==null?1/0:t.id,H1=(t,e)=>{const r=vl(t)-vl(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Gm(t){wf=!1,gl=!0,en.sort(H1);try{for(vr=0;vr<en.length;vr++){const e=en[vr];e&&e.active!==!1&&ki(e,null,14)}}finally{vr=0,en.length=0,Vm(),gl=!1,xh=null,(en.length||Yo.length)&&Gm()}}function B1(t,e,...r){if(t.isUnmounted)return;const o=t.vnode.props||we;let s=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&&(s=r.map(S=>Ie(S)?S.trim():S)),b&&(s=r.map(gf))}let h,d=o[h=ju(e)]||o[h=ju(_r(e))];!d&&u&&(d=o[h=ju(co(e))]),d&&jn(d,t,6,s);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,jn(g,t,6,s)}}function Km(t,e,r=!1){const o=e.emitsCache,s=o.get(t);if(s!==void 0)return s;const u=t.emits;let f={},h=!1;if(!jt(t)){const d=g=>{const v=Km(g,e,!0);v&&(h=!0,ze(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(ye(t)&&o.set(t,null),null):(It(u)?u.forEach(d=>f[d]=null):ze(f,u),ye(t)&&o.set(t,f),f)}function Ac(t,e){return!t||!_c(e)?!1:(e=e.slice(2).replace(/Once$/,""),le(t,e[0].toLowerCase()+e.slice(1))||le(t,co(e))||le(t,e))}let Qe=null,Mc=null;function tc(t){const e=Qe;return Qe=t,Mc=t&&t.type.__scopeId||null,e}function Xm(t){Mc=t}function Ym(){Mc=null}const W1=t=>ee;function ee(t,e=Qe,r){if(!e||t._n)return t;const o=(...s)=>{o._d&&Ag(-1);const u=tc(e);let f;try{f=t(...s)}finally{tc(u),o._d&&Ag(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Vu(t){const{type:e,vnode:r,proxy:o,withProxy:s,props:u,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:b,data:w,setupState:S,ctx:P,inheritAttrs:A}=t;let L,T;const M=tc(t);try{if(r.shapeFlag&4){const E=s||o;L=rr(v.call(E,E,b,u,S,w,P)),T=d}else{const E=e;L=rr(E.length>1?E(u,{attrs:d,slots:h,emit:g}):E(u,null)),T=e.props?d:j1(d)}}catch(E){cl.length=0,Nl(E,t,1),L=Ft(Mn)}let R=L;if(T&&A!==!1){const E=Object.keys(T),{shapeFlag:B}=R;E.length&&B&7&&(f&&E.some(ah)&&(T=V1(T,f)),R=Ei(R,T))}return r.dirs&&(R=Ei(R),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&(R.transition=r.transition),L=R,tc(M),L}function U1(t){let e;for(let r=0;r<t.length;r++){const o=t[r];if(yl(o)){if(o.type!==Mn||o.children==="v-if"){if(e)return;e=o}}else return}return e}const j1=t=>{let e;for(const r in t)(r==="class"||r==="style"||_c(r))&&((e||(e={}))[r]=t[r]);return e},V1=(t,e)=>{const r={};for(const o in t)(!ah(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function G1(t,e,r){const{props:o,children:s,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?yg(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]&&!Ac(g,w))return!0}}}else return(s||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?yg(o,f,g):!0:!!f;return!1}function yg(t,e,r){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let s=0;s<o.length;s++){const u=o[s];if(e[u]!==t[u]&&!Ac(r,u))return!0}return!1}function Sh({vnode:t,parent:e},r){for(;e&&e.subTree===t;)(t=e.vnode).el=r,e=e.parent}const Zm="components",K1="directives";function io(t,e){return Qm(Zm,t,!0,e)||t}const X1=Symbol.for("v-ndc");function uo(t){return Qm(K1,t)}function Qm(t,e,r=!0,o=!1){const s=Qe||Ge;if(s){const u=s.type;if(t===Zm){const h=G_(u,!1);if(h&&(h===e||h===_r(e)||h===Tc(_r(e))))return u}const f=bg(s[t]||u[t],e)||bg(s.appContext[t],e);return!f&&o?u:f}}function bg(t,e){return t&&(t[e]||t[_r(e)]||t[Tc(_r(e))])}const Y1=t=>t.__isSuspense,Z1={name:"Suspense",__isSuspense:!0,process(t,e,r,o,s,u,f,h,d,g){t==null?J1(e,r,o,s,u,f,h,d,g):t_(t,e,r,o,s,f,h,d,g)},hydrate:e_,create:kh,normalize:n_},Q1=Z1;function ml(t,e){const r=t.props&&t.props[e];jt(r)&&r()}function J1(t,e,r,o,s,u,f,h,d){const{p:g,o:{createElement:v}}=d,b=v("div"),w=t.suspense=kh(t,s,o,e,b,r,u,f,h,d);g(null,w.pendingBranch=t.ssContent,b,null,o,w,u,f),w.deps>0?(ml(t,"onPending"),ml(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,u,f),Zo(w,t.ssFallback)):w.resolve(!1,!0)}function t_(t,e,r,o,s,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:P,pendingBranch:A,isInFallback:L,isHydrating:T}=b;if(A)b.pendingBranch=w,mr(w,A)?(d(A,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0?b.resolve():L&&(d(P,S,r,o,s,null,u,f,h),Zo(b,S))):(b.pendingId++,T?(b.isHydrating=!1,b.activeBranch=A):g(A,s,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),L?(d(null,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0?b.resolve():(d(P,S,r,o,s,null,u,f,h),Zo(b,S))):P&&mr(w,P)?(d(P,w,r,o,s,b,u,f,h),b.resolve(!0)):(d(null,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0&&b.resolve()));else if(P&&mr(w,P))d(P,w,r,o,s,b,u,f,h),Zo(b,w);else if(ml(e,"onPending"),b.pendingBranch=w,b.pendingId++,d(null,w,b.hiddenContainer,null,s,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:M,pendingId:R}=b;M>0?setTimeout(()=>{b.pendingId===R&&b.fallback(S)},M):M===0&&b.fallback(S)}}function kh(t,e,r,o,s,u,f,h,d,g,v=!1){const{p:b,m:w,um:S,n:P,o:{parentNode:A,remove:L}}=g;let T;const M=i_(t);M&&e!=null&&e.pendingBranch&&(T=e.pendingId,e.deps++);const R=t.props?Cm(t.props.timeout):void 0,E={vnode:t,parent:e,parentComponent:r,isSVG:f,container:o,hiddenContainer:s,anchor:u,deps:0,pendingId:0,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(B=!1,K=!1){const{vnode:ht,activeBranch:Y,pendingBranch:nt,pendingId:at,effects:pt,parentComponent:gt,container:G}=E;let z=!1;if(E.isHydrating)E.isHydrating=!1;else if(!B){z=Y&&nt.transition&&nt.transition.mode==="out-in",z&&(Y.transition.afterLeave=()=>{at===E.pendingId&&(w(nt,G,H,0),xf(pt))});let{anchor:H}=E;Y&&(H=P(Y),S(Y,gt,E,!0)),z||w(nt,G,H,0)}Zo(E,nt),E.pendingBranch=null,E.isInFallback=!1;let k=E.parent,F=!1;for(;k;){if(k.pendingBranch){k.effects.push(...pt),F=!0;break}k=k.parent}!F&&!z&&xf(pt),E.effects=[],M&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!K&&e.resolve()),ml(ht,"onResolve")},fallback(B){if(!E.pendingBranch)return;const{vnode:K,activeBranch:ht,parentComponent:Y,container:nt,isSVG:at}=E;ml(K,"onFallback");const pt=P(ht),gt=()=>{E.isInFallback&&(b(null,B,nt,pt,Y,null,at,h,d),Zo(E,B))},G=B.transition&&B.transition.mode==="out-in";G&&(ht.transition.afterLeave=gt),E.isInFallback=!0,S(ht,Y,null,!0),G||gt()},move(B,K,ht){E.activeBranch&&w(E.activeBranch,B,K,ht),E.container=B},next(){return E.activeBranch&&P(E.activeBranch)},registerDep(B,K){const ht=!!E.pendingBranch;ht&&E.deps++;const Y=B.vnode.el;B.asyncDep.catch(nt=>{Nl(nt,B,0)}).then(nt=>{if(B.isUnmounted||E.isUnmounted||E.pendingId!==B.suspenseId)return;B.asyncResolved=!0;const{vnode:at}=B;Mf(B,nt,!1),Y&&(at.el=Y);const pt=!Y&&B.subTree.el;K(B,at,A(Y||B.subTree.el),Y?null:P(B.subTree),E,f,d),pt&&L(pt),Sh(B,at.el),ht&&--E.deps===0&&E.resolve()})},unmount(B,K){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,B,K),E.pendingBranch&&S(E.pendingBranch,r,B,K)}};return E}function e_(t,e,r,o,s,u,f,h,d){const g=e.suspense=kh(e,o,r,t.parentNode,document.createElement("div"),null,s,u,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,u,f);return g.deps===0&&g.resolve(!1,!0),v}function n_(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=wg(o?r.default:r),t.ssFallback=o?wg(r.fallback):Ft(Mn)}function wg(t){let e;if(jt(t)){const r=is&&t._c;r&&(t._d=!1,st()),t=t(),r&&(t._d=!0,e=Wn,g0())}return It(t)&&(t=U1(t)),t=rr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function r_(t,e){e&&e.pendingBranch?It(t)?e.effects.push(...t):e.effects.push(t):xf(t)}function Zo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t,s=r.el=e.el;o&&o.subTree===r&&(o.vnode.el=s,Sh(o,s))}function i_(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Ch(t,e){return Th(t,null,e)}const Ca={};function Re(t,e,r){return Th(t,e,r)}function Th(t,e,{immediate:r,deep:o,flush:s,onTrack:u,onTrigger:f}=we){var h;const d=Lm()===((h=Ge)==null?void 0:h.scope)?Ge:null;let g,v=!1,b=!1;if(Le(t)?(g=()=>t.value,v=Ja(t)):Xo(t)?(g=()=>t,o=!0):It(t)?(b=!0,v=t.some(E=>Xo(E)||Ja(E)),g=()=>t.map(E=>{if(Le(E))return E.value;if(Xo(E))return Yi(E);if(jt(E))return ki(E,d,2)})):jt(t)?e?g=()=>ki(t,d,2):g=()=>{if(!(d&&d.isUnmounted))return w&&w(),jn(t,d,3,[S])}:g=wr,e&&o){const E=g;g=()=>Yi(E())}let w,S=E=>{w=M.onStop=()=>{ki(E,d,4)}},P;if(bl)if(S=wr,e?r&&jn(e,d,3,[g(),b?[]:void 0,S]):g(),s==="sync"){const E=Y_();P=E.__watcherHandles||(E.__watcherHandles=[])}else return wr;let A=b?new Array(t.length).fill(Ca):Ca;const L=()=>{if(M.active)if(e){const E=M.run();(o||v||(b?E.some((B,K)=>ro(B,A[K])):ro(E,A)))&&(w&&w(),jn(e,d,3,[E,A===Ca?void 0:b&&A[0]===Ca?[]:A,S]),A=E)}else M.run()};L.allowRecurse=!!e;let T;s==="sync"?T=L:s==="post"?T=()=>Cn(L,d&&d.suspense):(L.pre=!0,d&&(L.id=d.uid),T=()=>_h(L));const M=new hh(g,T);e?r?L():A=M.run():s==="post"?Cn(M.run.bind(M),d&&d.suspense):M.run();const R=()=>{M.stop(),d&&d.scope&&ch(d.scope.effects,M)};return P&&P.push(R),R}function o_(t,e,r){const o=this.proxy,s=Ie(t)?t.includes(".")?Jm(o,t):()=>o[t]:t.bind(o,o);let u;jt(e)?u=e:(u=e.handler,r=e);const f=Ge;os(this);const h=Th(s,u.bind(o),r);return f?os(f):to(),h}function Jm(t,e){const r=e.split(".");return()=>{let o=t;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Yi(t,e){if(!ye(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Le(t))Yi(t.value,e);else if(It(t))for(let r=0;r<t.length;r++)Yi(t[r],e);else if(xm(t)||Ko(t))t.forEach(r=>{Yi(r,e)});else if(km(t))for(const r in t)Yi(t[r],e);return t}function nn(t,e){const r=Qe;if(r===null)return t;const o=$c(r)||r.proxy,s=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[f,h,d,g=we]=e[u];f&&(jt(f)&&(f={mounted:f,updated:f}),f.deep&&Yi(h),s.push({dir:f,instance:o,value:h,oldValue:void 0,arg:d,modifiers:g}))}return t}function Wi(t,e,r,o){const s=t.dirs,u=e&&e.dirs;for(let f=0;f<s.length;f++){const h=s[f];u&&(h.oldValue=u[f].value);let d=h.dir[o];d&&(ps(),jn(d,r,8,[t.el,h,t,e]),gs())}}const gi=Symbol("_leaveCb"),Ta=Symbol("_enterCb");function s_(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ms(()=>{t.isMounted=!0}),i0(()=>{t.isUnmounting=!0}),t}const Bn=[Function,Array],t0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bn,onEnter:Bn,onAfterEnter:Bn,onEnterCancelled:Bn,onBeforeLeave:Bn,onLeave:Bn,onAfterLeave:Bn,onLeaveCancelled:Bn,onBeforeAppear:Bn,onAppear:Bn,onAfterAppear:Bn,onAppearCancelled:Bn},l_={name:"BaseTransition",props:t0,setup(t,{slots:e}){const r=Pl(),o=s_();let s;return()=>{const u=e.default&&n0(e.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Mn){f=A;break}}const h=ae(t),{mode:d}=h;if(o.isLeaving)return Gu(f);const g=xg(f);if(!g)return Gu(f);const v=_f(g,h,o,r);Sf(g,v);const b=r.subTree,w=b&&xg(b);let S=!1;const{getTransitionKey:P}=g.type;if(P){const A=P();s===void 0?s=A:A!==s&&(s=A,S=!0)}if(w&&w.type!==Mn&&(!mr(g,w)||S)){const A=_f(w,h,o,r);if(Sf(w,A),d==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},Gu(f);d==="in-out"&&g.type!==Mn&&(A.delayLeave=(L,T,M)=>{const R=e0(o,w);R[String(w.key)]=w,L[gi]=()=>{T(),L[gi]=void 0,delete v.delayedLeave},v.delayedLeave=M})}return f}}},a_=l_;function e0(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 _f(t,e,r,o){const{appear:s,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:S,onLeaveCancelled:P,onBeforeAppear:A,onAppear:L,onAfterAppear:T,onAppearCancelled:M}=e,R=String(t.key),E=e0(r,t),B=(Y,nt)=>{Y&&jn(Y,o,9,nt)},K=(Y,nt)=>{const at=nt[1];B(Y,nt),It(Y)?Y.every(pt=>pt.length<=1)&&at():Y.length<=1&&at()},ht={mode:u,persisted:f,beforeEnter(Y){let nt=h;if(!r.isMounted)if(s)nt=A||h;else return;Y[gi]&&Y[gi](!0);const at=E[R];at&&mr(t,at)&&at.el[gi]&&at.el[gi](),B(nt,[Y])},enter(Y){let nt=d,at=g,pt=v;if(!r.isMounted)if(s)nt=L||d,at=T||g,pt=M||v;else return;let gt=!1;const G=Y[Ta]=z=>{gt||(gt=!0,z?B(pt,[Y]):B(at,[Y]),ht.delayedLeave&&ht.delayedLeave(),Y[Ta]=void 0)};nt?K(nt,[Y,G]):G()},leave(Y,nt){const at=String(t.key);if(Y[Ta]&&Y[Ta](!0),r.isUnmounting)return nt();B(b,[Y]);let pt=!1;const gt=Y[gi]=G=>{pt||(pt=!0,nt(),G?B(P,[Y]):B(S,[Y]),Y[gi]=void 0,E[at]===t&&delete E[at])};E[at]=t,w?K(w,[Y,gt]):gt()},clone(Y){return _f(Y,e,r,o)}};return ht}function Gu(t){if(Nc(t))return t=Ei(t),t.children=null,t}function xg(t){return Nc(t)?t.children?t.children[0]:void 0:t}function Sf(t,e){t.shapeFlag&6&&t.component?Sf(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 n0(t,e=!1,r){let o=[],s=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===ne?(f.patchFlag&128&&s++,o=o.concat(n0(f.children,e,h))):(e||f.type!==Mn)&&o.push(h!=null?Ei(f,{key:h}):f)}if(s>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ie(t,e){return jt(t)?(()=>ze({name:t.name},e,{setup:t}))():t}const ll=t=>!!t.type.__asyncLoader,Nc=t=>t.type.__isKeepAlive;function c_(t,e){r0(t,"a",e)}function u_(t,e){r0(t,"da",e)}function r0(t,e,r=Ge){const o=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Pc(e,o,r),r){let s=r.parent;for(;s&&s.parent;)Nc(s.parent.vnode)&&f_(o,e,r,s),s=s.parent}}function f_(t,e,r,o){const s=Pc(e,t,o,!0);Eh(()=>{ch(o[e],s)},r)}function Pc(t,e,r=Ge,o=!1){if(r){const s=r[t]||(r[t]=[]),u=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;ps(),os(r);const h=jn(e,r,t,f);return to(),gs(),h});return o?s.unshift(u):s.push(u),u}}const Kr=t=>(e,r=Ge)=>(!bl||t==="sp")&&Pc(t,(...o)=>e(...o),r),h_=Kr("bm"),ms=Kr("m"),d_=Kr("bu"),p_=Kr("u"),i0=Kr("bum"),Eh=Kr("um"),g_=Kr("sp"),v_=Kr("rtg"),m_=Kr("rtc");function y_(t,e=Ge){Pc("ec",t,e)}function Rn(t,e,r,o){let s;const u=r&&r[o];if(It(t)||Ie(t)){s=new Array(t.length);for(let f=0,h=t.length;f<h;f++)s[f]=e(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){s=new Array(t);for(let f=0;f<t;f++)s[f]=e(f+1,f,void 0,u&&u[f])}else if(ye(t))if(t[Symbol.iterator])s=Array.from(t,(f,h)=>e(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);s=new Array(f.length);for(let h=0,d=f.length;h<d;h++){const g=f[h];s[h]=e(t[g],g,h,u&&u[h])}}else s=[];return r&&(r[o]=s),s}function sr(t,e,r={},o,s){if(Qe.isCE||Qe.parent&&ll(Qe.parent)&&Qe.parent.isCE)return e!=="default"&&(r.name=e),Ft("slot",r,o&&o());let u=t[e];u&&u._c&&(u._d=!1),st();const f=u&&o0(u(r)),h=te(ne,{key:r.key||f&&f.key||`_${e}`},f||(o?o():[]),f&&t._===1?64:-2);return!s&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function o0(t){return t.some(e=>yl(e)?!(e.type===Mn||e.type===ne&&!o0(e.children)):!0)?t:null}const kf=t=>t?y0(t)?$c(t)||t.proxy:kf(t.parent):null,al=ze(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=>kf(t.parent),$root:t=>kf(t.root),$emit:t=>t.emit,$options:t=>Lh(t),$forceUpdate:t=>t.f||(t.f=()=>_h(t.update)),$nextTick:t=>t.n||(t.n=Br.bind(t.proxy)),$watch:t=>o_.bind(t)}),Ku=(t,e)=>t!==we&&!t.__isScriptSetup&&le(t,e),b_={get({_:t},e){const{ctx:r,setupState:o,data:s,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 s[e];case 4:return r[e];case 3:return u[e]}else{if(Ku(o,e))return f[e]=1,o[e];if(s!==we&&le(s,e))return f[e]=2,s[e];if((g=t.propsOptions[0])&&le(g,e))return f[e]=3,u[e];if(r!==we&&le(r,e))return f[e]=4,r[e];Tf&&(f[e]=0)}}const v=al[e];let b,w;if(v)return e==="$attrs"&&Nn(t,"get",e),v(t);if((b=h.__cssModules)&&(b=b[e]))return b;if(r!==we&&le(r,e))return f[e]=4,r[e];if(w=d.config.globalProperties,le(w,e))return w[e]},set({_:t},e,r){const{data:o,setupState:s,ctx:u}=t;return Ku(s,e)?(s[e]=r,!0):o!==we&&le(o,e)?(o[e]=r,!0):le(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:s,propsOptions:u}},f){let h;return!!r[f]||t!==we&&le(t,f)||Ku(e,f)||(h=u[0])&&le(h,f)||le(o,f)||le(al,f)||le(s.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:le(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function w_(){return x_().attrs}function s0(t,e,r){const o=Pl();if(r&&r.local){const s=Zt(t[e]);return Re(()=>t[e],u=>s.value=u),Re(s,u=>{u!==t[e]&&o.emit(`update:${e}`,u)}),s}else return{__v_isRef:!0,get value(){return t[e]},set value(s){o.emit(`update:${e}`,s)}}}function x_(){const t=Pl();return t.setupContext||(t.setupContext=w0(t))}function ec(t){return It(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function Cf(t,e){return!t||!e?t||e:It(t)&&It(e)?t.concat(e):ze({},ec(t),ec(e))}let Tf=!0;function __(t){const e=Lh(t),r=t.proxy,o=t.ctx;Tf=!1,e.beforeCreate&&_g(e.beforeCreate,t,"bc");const{data:s,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:b,mounted:w,beforeUpdate:S,updated:P,activated:A,deactivated:L,beforeDestroy:T,beforeUnmount:M,destroyed:R,unmounted:E,render:B,renderTracked:K,renderTriggered:ht,errorCaptured:Y,serverPrefetch:nt,expose:at,inheritAttrs:pt,components:gt,directives:G,filters:z}=e;if(g&&S_(g,o,null),f)for(const H in f){const Q=f[H];jt(Q)&&(o[H]=Q.bind(r))}if(s){const H=s.call(r,r);ye(H)&&(t.data=Un(H))}if(Tf=!0,u)for(const H in u){const Q=u[H],yt=jt(Q)?Q.bind(r,r):jt(Q.get)?Q.get.bind(r,r):wr,At=!jt(Q)&&jt(Q.set)?Q.set.bind(r):wr,qt=xt({get:yt,set:At});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Ht=>qt.value=Ht})}if(h)for(const H in h)l0(h[H],o,r,H);if(d){const H=jt(d)?d.call(r):d;Reflect.ownKeys(H).forEach(Q=>{qa(Q,H[Q])})}v&&_g(v,t,"c");function F(H,Q){It(Q)?Q.forEach(yt=>H(yt.bind(r))):Q&&H(Q.bind(r))}if(F(h_,b),F(ms,w),F(d_,S),F(p_,P),F(c_,A),F(u_,L),F(y_,Y),F(m_,K),F(v_,ht),F(i0,M),F(Eh,E),F(g_,nt),It(at))if(at.length){const H=t.exposed||(t.exposed={});at.forEach(Q=>{Object.defineProperty(H,Q,{get:()=>r[Q],set:yt=>r[Q]=yt})})}else t.exposed||(t.exposed={});B&&t.render===wr&&(t.render=B),pt!=null&&(t.inheritAttrs=pt),gt&&(t.components=gt),G&&(t.directives=G)}function S_(t,e,r=wr){It(t)&&(t=Ef(t));for(const o in t){const s=t[o];let u;ye(s)?"default"in s?u=qr(s.from||o,s.default,!0):u=qr(s.from||o):u=qr(s),Le(u)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):e[o]=u}}function _g(t,e,r){jn(It(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function l0(t,e,r,o){const s=o.includes(".")?Jm(r,o):()=>r[o];if(Ie(t)){const u=e[t];jt(u)&&Re(s,u)}else if(jt(t))Re(s,t.bind(r));else if(ye(t))if(It(t))t.forEach(u=>l0(u,e,r,o));else{const u=jt(t.handler)?t.handler.bind(r):e[t.handler];jt(u)&&Re(s,u,t)}}function Lh(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:s,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(e);let d;return h?d=h:!s.length&&!r&&!o?d=e:(d={},s.length&&s.forEach(g=>nc(d,g,f,!0)),nc(d,e,f)),ye(e)&&u.set(e,d),d}function nc(t,e,r,o=!1){const{mixins:s,extends:u}=e;u&&nc(t,u,r,!0),s&&s.forEach(f=>nc(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=k_[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const k_={data:Sg,props:kg,emits:kg,methods:il,computed:il,beforeCreate:dn,created:dn,beforeMount:dn,mounted:dn,beforeUpdate:dn,updated:dn,beforeDestroy:dn,beforeUnmount:dn,destroyed:dn,unmounted:dn,activated:dn,deactivated:dn,errorCaptured:dn,serverPrefetch:dn,components:il,directives:il,watch:T_,provide:Sg,inject:C_};function Sg(t,e){return e?t?function(){return ze(jt(t)?t.call(this,this):t,jt(e)?e.call(this,this):e)}:e:t}function C_(t,e){return il(Ef(t),Ef(e))}function Ef(t){if(It(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function dn(t,e){return t?[...new Set([].concat(t,e))]:e}function il(t,e){return t?ze(Object.create(null),t,e):e}function kg(t,e){return t?It(t)&&It(e)?[...new Set([...t,...e])]:ze(Object.create(null),ec(t),ec(e??{})):e}function T_(t,e){if(!t)return e;if(!e)return t;const r=ze(Object.create(null),t);for(const o in e)r[o]=dn(t[o],e[o]);return r}function a0(){return{app:null,config:{isNativeTag:Gx,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 L_(t,e){return function(o,s=null){jt(o)||(o=ze({},o)),s!=null&&!ye(s)&&(s=null);const u=a0(),f=new WeakSet;let h=!1;const d=u.app={_uid:E_++,_component:o,_props:s,_container:null,_context:u,_instance:null,version:Z_,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&jt(g.install)?(f.add(g),g.install(d,...v)):jt(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=Ft(o,s);return w.appContext=u,v&&e?e(w,g):t(w,g,b),h=!0,d._container=g,g.__vue_app__=d,$c(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},runWithContext(g){rc=d;try{return g()}finally{rc=null}}};return d}}let rc=null;function qa(t,e){if(Ge){let r=Ge.provides;const o=Ge.parent&&Ge.parent.provides;o===r&&(r=Ge.provides=Object.create(o)),r[t]=e}}function qr(t,e,r=!1){const o=Ge||Qe;if(o||rc){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:rc._context.provides;if(s&&t in s)return s[t];if(arguments.length>1)return r&&jt(e)?e.call(o&&o.proxy):e}}function A_(t,e,r,o=!1){const s={},u={};Za(u,Dc,1),t.propsDefaults=Object.create(null),c0(t,e,s,u);for(const f in t.propsOptions[0])f in s||(s[f]=void 0);r?t.props=o?s:Fm(s):t.type.props?t.props=s:t.props=u,t.attrs=u}function M_(t,e,r,o){const{props:s,attrs:u,vnode:{patchFlag:f}}=t,h=ae(s),[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(Ac(t.emitsOptions,w))continue;const S=e[w];if(d)if(le(u,w))S!==u[w]&&(u[w]=S,g=!0);else{const P=_r(w);s[P]=Lf(d,h,P,S,t,!1)}else S!==u[w]&&(u[w]=S,g=!0)}}}else{c0(t,e,s,u)&&(g=!0);let v;for(const b in h)(!e||!le(e,b)&&((v=co(b))===b||!le(e,v)))&&(d?r&&(r[b]!==void 0||r[v]!==void 0)&&(s[b]=Lf(d,h,b,void 0,t,!0)):delete s[b]);if(u!==h)for(const b in u)(!e||!le(e,b))&&(delete u[b],g=!0)}g&&Fr(t,"set","$attrs")}function c0(t,e,r,o){const[s,u]=t.propsOptions;let f=!1,h;if(e)for(let d in e){if(Ia(d))continue;const g=e[d];let v;s&&le(s,v=_r(d))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:Ac(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(u){const d=ae(r),g=h||we;for(let v=0;v<u.length;v++){const b=u[v];r[b]=Lf(s,d,b,g[b],t,!le(g,b))}}return f}function Lf(t,e,r,o,s,u){const f=t[r];if(f!=null){const h=le(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&!f.skipFactory&&jt(d)){const{propsDefaults:g}=s;r in g?o=g[r]:(os(s),o=g[r]=d.call(null,e),to())}else o=d}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===co(r))&&(o=!0))}return o}function u0(t,e,r=!1){const o=e.propsCache,s=o.get(t);if(s)return s;const u=t.props,f={},h=[];let d=!1;if(!jt(t)){const v=b=>{d=!0;const[w,S]=u0(b,e,!0);ze(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 ye(t)&&o.set(t,Go),Go;if(It(u))for(let v=0;v<u.length;v++){const b=_r(u[v]);Cg(b)&&(f[b]=we)}else if(u)for(const v in u){const b=_r(v);if(Cg(b)){const w=u[v],S=f[b]=It(w)||jt(w)?{type:w}:ze({},w);if(S){const P=Lg(Boolean,S.type),A=Lg(String,S.type);S[0]=P>-1,S[1]=A<0||P<A,(P>-1||le(S,"default"))&&h.push(b)}}}const g=[f,h];return ye(t)&&o.set(t,g),g}function Cg(t){return t[0]!=="$"}function Tg(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Eg(t,e){return Tg(t)===Tg(e)}function Lg(t,e){return It(e)?e.findIndex(r=>Eg(r,t)):jt(e)&&Eg(e,t)?0:-1}const f0=t=>t[0]==="_"||t==="$stable",Ah=t=>It(t)?t.map(rr):[rr(t)],N_=(t,e,r)=>{if(e._n)return e;const o=ee((...s)=>Ah(e(...s)),r);return o._c=!1,o},h0=(t,e,r)=>{const o=t._ctx;for(const s in t){if(f0(s))continue;const u=t[s];if(jt(u))e[s]=N_(s,u,o);else if(u!=null){const f=Ah(u);e[s]=()=>f}}},d0=(t,e)=>{const r=Ah(e);t.slots.default=()=>r},P_=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=ae(e),Za(e,"_",r)):h0(e,t.slots={})}else t.slots={},e&&d0(t,e);Za(t.slots,Dc,1)},O_=(t,e,r)=>{const{vnode:o,slots:s}=t;let u=!0,f=we;if(o.shapeFlag&32){const h=e._;h?r&&h===1?u=!1:(ze(s,e),!r&&h===1&&delete s._):(u=!e.$stable,h0(e,s)),f=e}else e&&(d0(t,e),f={default:1});if(u)for(const h in s)!f0(h)&&f[h]==null&&delete s[h]};function Af(t,e,r,o,s=!1){if(It(t)){t.forEach((w,S)=>Af(w,e&&(It(e)?e[S]:e),r,o,s));return}if(ll(o)&&!s)return;const u=o.shapeFlag&4?$c(o.component)||o.component.proxy:o.el,f=s?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&&(Ie(g)?(v[g]=null,le(b,g)&&(b[g]=null)):Le(g)&&(g.value=null)),jt(d))ki(d,h,12,[f,v]);else{const w=Ie(d),S=Le(d);if(w||S){const P=()=>{if(t.f){const A=w?le(b,d)?b[d]:v[d]:d.value;s?It(A)&&ch(A,u):It(A)?A.includes(u)||A.push(u):w?(v[d]=[u],le(b,d)&&(b[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,le(b,d)&&(b[d]=f)):S&&(d.value=f,t.k&&(v[t.k]=f))};f?(P.id=-1,Cn(P,r)):P()}}}const Cn=r_;function D_(t){return $_(t)}function $_(t,e){const r=vf();r.__VUE__=!0;const{insert:o,remove:s,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:b,nextSibling:w,setScopeId:S=wr,insertStaticContent:P}=t,A=($,I,V,J=null,ot=null,ut=null,St=!1,mt=null,ct=!!I.dynamicChildren)=>{if($===I)return;$&&!mr($,I)&&(J=j($),Ht($,ot,ut,!0),$=null),I.patchFlag===-2&&(ct=!1,I.dynamicChildren=null);const{type:ft,ref:$t,shapeFlag:Nt}=I;switch(ft){case Oc:L($,I,V,J);break;case Mn:T($,I,V,J);break;case Xu:$==null&&M(I,V,J,St);break;case ne:gt($,I,V,J,ot,ut,St,mt,ct);break;default:Nt&1?B($,I,V,J,ot,ut,St,mt,ct):Nt&6?G($,I,V,J,ot,ut,St,mt,ct):(Nt&64||Nt&128)&&ft.process($,I,V,J,ot,ut,St,mt,ct,lt)}$t!=null&&ot&&Af($t,$&&$.ref,ut,I||$,!I)},L=($,I,V,J)=>{if($==null)o(I.el=h(I.children),V,J);else{const ot=I.el=$.el;I.children!==$.children&&g(ot,I.children)}},T=($,I,V,J)=>{$==null?o(I.el=d(I.children||""),V,J):I.el=$.el},M=($,I,V,J)=>{[$.el,$.anchor]=P($.children,I,V,J,$.el,$.anchor)},R=({el:$,anchor:I},V,J)=>{let ot;for(;$&&$!==I;)ot=w($),o($,V,J),$=ot;o(I,V,J)},E=({el:$,anchor:I})=>{let V;for(;$&&$!==I;)V=w($),s($),$=V;s(I)},B=($,I,V,J,ot,ut,St,mt,ct)=>{St=St||I.type==="svg",$==null?K(I,V,J,ot,ut,St,mt,ct):nt($,I,ot,ut,St,mt,ct)},K=($,I,V,J,ot,ut,St,mt)=>{let ct,ft;const{type:$t,props:Nt,shapeFlag:Dt,transition:Bt,dirs:Kt}=$;if(ct=$.el=f($.type,ut,Nt&&Nt.is,Nt),Dt&8?v(ct,$.children):Dt&16&&Y($.children,ct,null,J,ot,ut&&$t!=="foreignObject",St,mt),Kt&&Wi($,null,J,"created"),ht(ct,$,$.scopeId,St,J),Nt){for(const oe in Nt)oe!=="value"&&!Ia(oe)&&u(ct,oe,null,Nt[oe],ut,$.children,J,ot,Tt);"value"in Nt&&u(ct,"value",null,Nt.value),(ft=Nt.onVnodeBeforeMount)&&gr(ft,J,$)}Kt&&Wi($,null,J,"beforeMount");const re=R_(ot,Bt);re&&Bt.beforeEnter(ct),o(ct,I,V),((ft=Nt&&Nt.onVnodeMounted)||re||Kt)&&Cn(()=>{ft&&gr(ft,J,$),re&&Bt.enter(ct),Kt&&Wi($,null,J,"mounted")},ot)},ht=($,I,V,J,ot)=>{if(V&&S($,V),J)for(let ut=0;ut<J.length;ut++)S($,J[ut]);if(ot){let ut=ot.subTree;if(I===ut){const St=ot.vnode;ht($,St,St.scopeId,St.slotScopeIds,ot.parent)}}},Y=($,I,V,J,ot,ut,St,mt,ct=0)=>{for(let ft=ct;ft<$.length;ft++){const $t=$[ft]=mt?vi($[ft]):rr($[ft]);A(null,$t,I,V,J,ot,ut,St,mt)}},nt=($,I,V,J,ot,ut,St)=>{const mt=I.el=$.el;let{patchFlag:ct,dynamicChildren:ft,dirs:$t}=I;ct|=$.patchFlag&16;const Nt=$.props||we,Dt=I.props||we;let Bt;V&&Ui(V,!1),(Bt=Dt.onVnodeBeforeUpdate)&&gr(Bt,V,I,$),$t&&Wi(I,$,V,"beforeUpdate"),V&&Ui(V,!0);const Kt=ot&&I.type!=="foreignObject";if(ft?at($.dynamicChildren,ft,mt,V,J,Kt,ut):St||Q($,I,mt,null,V,J,Kt,ut,!1),ct>0){if(ct&16)pt(mt,I,Nt,Dt,V,J,ot);else if(ct&2&&Nt.class!==Dt.class&&u(mt,"class",null,Dt.class,ot),ct&4&&u(mt,"style",Nt.style,Dt.style,ot),ct&8){const re=I.dynamicProps;for(let oe=0;oe<re.length;oe++){const fe=re[oe],se=Nt[fe],rn=Dt[fe];(rn!==se||fe==="value")&&u(mt,fe,se,rn,ot,$.children,V,J,Tt)}}ct&1&&$.children!==I.children&&v(mt,I.children)}else!St&&ft==null&&pt(mt,I,Nt,Dt,V,J,ot);((Bt=Dt.onVnodeUpdated)||$t)&&Cn(()=>{Bt&&gr(Bt,V,I,$),$t&&Wi(I,$,V,"updated")},J)},at=($,I,V,J,ot,ut,St)=>{for(let mt=0;mt<I.length;mt++){const ct=$[mt],ft=I[mt],$t=ct.el&&(ct.type===ne||!mr(ct,ft)||ct.shapeFlag&70)?b(ct.el):V;A(ct,ft,$t,null,J,ot,ut,St,!0)}},pt=($,I,V,J,ot,ut,St)=>{if(V!==J){if(V!==we)for(const mt in V)!Ia(mt)&&!(mt in J)&&u($,mt,V[mt],null,St,I.children,ot,ut,Tt);for(const mt in J){if(Ia(mt))continue;const ct=J[mt],ft=V[mt];ct!==ft&&mt!=="value"&&u($,mt,ft,ct,St,I.children,ot,ut,Tt)}"value"in J&&u($,"value",V.value,J.value)}},gt=($,I,V,J,ot,ut,St,mt,ct)=>{const ft=I.el=$?$.el:h(""),$t=I.anchor=$?$.anchor:h("");let{patchFlag:Nt,dynamicChildren:Dt,slotScopeIds:Bt}=I;Bt&&(mt=mt?mt.concat(Bt):Bt),$==null?(o(ft,V,J),o($t,V,J),Y(I.children,V,$t,ot,ut,St,mt,ct)):Nt>0&&Nt&64&&Dt&&$.dynamicChildren?(at($.dynamicChildren,Dt,V,ot,ut,St,mt),(I.key!=null||ot&&I===ot.subTree)&&p0($,I,!0)):Q($,I,V,$t,ot,ut,St,mt,ct)},G=($,I,V,J,ot,ut,St,mt,ct)=>{I.slotScopeIds=mt,$==null?I.shapeFlag&512?ot.ctx.activate(I,V,J,St,ct):z(I,V,J,ot,ut,St,ct):k($,I,ct)},z=($,I,V,J,ot,ut,St)=>{const mt=$.component=W_($,J,ot);if(Nc($)&&(mt.ctx.renderer=lt),U_(mt),mt.asyncDep){if(ot&&ot.registerDep(mt,F),!$.el){const ct=mt.subTree=Ft(Mn);T(null,ct,I,V)}return}F(mt,$,I,V,ot,ut,St)},k=($,I,V)=>{const J=I.component=$.component;if(G1($,I,V))if(J.asyncDep&&!J.asyncResolved){H(J,I,V);return}else J.next=I,q1(J.update),J.update();else I.el=$.el,J.vnode=I},F=($,I,V,J,ot,ut,St)=>{const mt=()=>{if($.isMounted){let{next:$t,bu:Nt,u:Dt,parent:Bt,vnode:Kt}=$,re=$t,oe;Ui($,!1),$t?($t.el=Kt.el,H($,$t,St)):$t=Kt,Nt&&Fa(Nt),(oe=$t.props&&$t.props.onVnodeBeforeUpdate)&&gr(oe,Bt,$t,Kt),Ui($,!0);const fe=Vu($),se=$.subTree;$.subTree=fe,A(se,fe,b(se.el),j(se),$,ot,ut),$t.el=fe.el,re===null&&Sh($,fe.el),Dt&&Cn(Dt,ot),(oe=$t.props&&$t.props.onVnodeUpdated)&&Cn(()=>gr(oe,Bt,$t,Kt),ot)}else{let $t;const{el:Nt,props:Dt}=I,{bm:Bt,m:Kt,parent:re}=$,oe=ll(I);if(Ui($,!1),Bt&&Fa(Bt),!oe&&($t=Dt&&Dt.onVnodeBeforeMount)&&gr($t,re,I),Ui($,!0),Nt&&Et){const fe=()=>{$.subTree=Vu($),Et(Nt,$.subTree,$,ot,null)};oe?I.type.__asyncLoader().then(()=>!$.isUnmounted&&fe()):fe()}else{const fe=$.subTree=Vu($);A(null,fe,V,J,$,ot,ut),I.el=fe.el}if(Kt&&Cn(Kt,ot),!oe&&($t=Dt&&Dt.onVnodeMounted)){const fe=I;Cn(()=>gr($t,re,fe),ot)}(I.shapeFlag&256||re&&ll(re.vnode)&&re.vnode.shapeFlag&256)&&$.a&&Cn($.a,ot),$.isMounted=!0,I=V=J=null}},ct=$.effect=new hh(mt,()=>_h(ft),$.scope),ft=$.update=()=>ct.run();ft.id=$.uid,Ui($,!0),ft()},H=($,I,V)=>{I.component=$;const J=$.vnode.props;$.vnode=I,$.next=null,M_($,I.props,J,V),O_($,I.children,V),ps(),mg(),gs()},Q=($,I,V,J,ot,ut,St,mt,ct=!1)=>{const ft=$&&$.children,$t=$?$.shapeFlag:0,Nt=I.children,{patchFlag:Dt,shapeFlag:Bt}=I;if(Dt>0){if(Dt&128){At(ft,Nt,V,J,ot,ut,St,mt,ct);return}else if(Dt&256){yt(ft,Nt,V,J,ot,ut,St,mt,ct);return}}Bt&8?($t&16&&Tt(ft,ot,ut),Nt!==ft&&v(V,Nt)):$t&16?Bt&16?At(ft,Nt,V,J,ot,ut,St,mt,ct):Tt(ft,ot,ut,!0):($t&8&&v(V,""),Bt&16&&Y(Nt,V,J,ot,ut,St,mt,ct))},yt=($,I,V,J,ot,ut,St,mt,ct)=>{$=$||Go,I=I||Go;const ft=$.length,$t=I.length,Nt=Math.min(ft,$t);let Dt;for(Dt=0;Dt<Nt;Dt++){const Bt=I[Dt]=ct?vi(I[Dt]):rr(I[Dt]);A($[Dt],Bt,V,null,ot,ut,St,mt,ct)}ft>$t?Tt($,ot,ut,!0,!1,Nt):Y(I,V,J,ot,ut,St,mt,ct,Nt)},At=($,I,V,J,ot,ut,St,mt,ct)=>{let ft=0;const $t=I.length;let Nt=$.length-1,Dt=$t-1;for(;ft<=Nt&&ft<=Dt;){const Bt=$[ft],Kt=I[ft]=ct?vi(I[ft]):rr(I[ft]);if(mr(Bt,Kt))A(Bt,Kt,V,null,ot,ut,St,mt,ct);else break;ft++}for(;ft<=Nt&&ft<=Dt;){const Bt=$[Nt],Kt=I[Dt]=ct?vi(I[Dt]):rr(I[Dt]);if(mr(Bt,Kt))A(Bt,Kt,V,null,ot,ut,St,mt,ct);else break;Nt--,Dt--}if(ft>Nt){if(ft<=Dt){const Bt=Dt+1,Kt=Bt<$t?I[Bt].el:J;for(;ft<=Dt;)A(null,I[ft]=ct?vi(I[ft]):rr(I[ft]),V,Kt,ot,ut,St,mt,ct),ft++}}else if(ft>Dt)for(;ft<=Nt;)Ht($[ft],ot,ut,!0),ft++;else{const Bt=ft,Kt=ft,re=new Map;for(ft=Kt;ft<=Dt;ft++){const Ae=I[ft]=ct?vi(I[ft]):rr(I[ft]);Ae.key!=null&&re.set(Ae.key,ft)}let oe,fe=0;const se=Dt-Kt+1;let rn=!1,Pn=0;const wn=new Array(se);for(ft=0;ft<se;ft++)wn[ft]=0;for(ft=Bt;ft<=Nt;ft++){const Ae=$[ft];if(fe>=se){Ht(Ae,ot,ut,!0);continue}let xn;if(Ae.key!=null)xn=re.get(Ae.key);else for(oe=Kt;oe<=Dt;oe++)if(wn[oe-Kt]===0&&mr(Ae,I[oe])){xn=oe;break}xn===void 0?Ht(Ae,ot,ut,!0):(wn[xn-Kt]=ft+1,xn>=Pn?Pn=xn:rn=!0,A(Ae,I[xn],V,null,ot,ut,St,mt,ct),fe++)}const cr=rn?z_(wn):Go;for(oe=cr.length-1,ft=se-1;ft>=0;ft--){const Ae=Kt+ft,xn=I[Ae],Yt=Ae+1<$t?I[Ae+1].el:J;wn[ft]===0?A(null,xn,V,Yt,ot,ut,St,mt,ct):rn&&(oe<0||ft!==cr[oe]?qt(xn,V,Yt,2):oe--)}}},qt=($,I,V,J,ot=null)=>{const{el:ut,type:St,transition:mt,children:ct,shapeFlag:ft}=$;if(ft&6){qt($.component.subTree,I,V,J);return}if(ft&128){$.suspense.move(I,V,J);return}if(ft&64){St.move($,I,V,lt);return}if(St===ne){o(ut,I,V);for(let Nt=0;Nt<ct.length;Nt++)qt(ct[Nt],I,V,J);o($.anchor,I,V);return}if(St===Xu){R($,I,V);return}if(J!==2&&ft&1&&mt)if(J===0)mt.beforeEnter(ut),o(ut,I,V),Cn(()=>mt.enter(ut),ot);else{const{leave:Nt,delayLeave:Dt,afterLeave:Bt}=mt,Kt=()=>o(ut,I,V),re=()=>{Nt(ut,()=>{Kt(),Bt&&Bt()})};Dt?Dt(ut,Kt,re):re()}else o(ut,I,V)},Ht=($,I,V,J=!1,ot=!1)=>{const{type:ut,props:St,ref:mt,children:ct,dynamicChildren:ft,shapeFlag:$t,patchFlag:Nt,dirs:Dt}=$;if(mt!=null&&Af(mt,null,V,$,!0),$t&256){I.ctx.deactivate($);return}const Bt=$t&1&&Dt,Kt=!ll($);let re;if(Kt&&(re=St&&St.onVnodeBeforeUnmount)&&gr(re,I,$),$t&6)Gt($.component,V,J);else{if($t&128){$.suspense.unmount(V,J);return}Bt&&Wi($,null,I,"beforeUnmount"),$t&64?$.type.remove($,I,V,ot,lt,J):ft&&(ut!==ne||Nt>0&&Nt&64)?Tt(ft,I,V,!1,!0):(ut===ne&&Nt&384||!ot&&$t&16)&&Tt(ct,I,V),J&&Jt($)}(Kt&&(re=St&&St.onVnodeUnmounted)||Bt)&&Cn(()=>{re&&gr(re,I,$),Bt&&Wi($,null,I,"unmounted")},V)},Jt=$=>{const{type:I,el:V,anchor:J,transition:ot}=$;if(I===ne){Qt(V,J);return}if(I===Xu){E($);return}const ut=()=>{s(V),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if($.shapeFlag&1&&ot&&!ot.persisted){const{leave:St,delayLeave:mt}=ot,ct=()=>St(V,ut);mt?mt($.el,ut,ct):ct()}else ut()},Qt=($,I)=>{let V;for(;$!==I;)V=w($),s($),$=V;s(I)},Gt=($,I,V)=>{const{bum:J,scope:ot,update:ut,subTree:St,um:mt}=$;J&&Fa(J),ot.stop(),ut&&(ut.active=!1,Ht(St,$,I,V)),mt&&Cn(mt,I),Cn(()=>{$.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Tt=($,I,V,J=!1,ot=!1,ut=0)=>{for(let St=ut;St<$.length;St++)Ht($[St],I,V,J,ot)},j=$=>$.shapeFlag&6?j($.component.subTree):$.shapeFlag&128?$.suspense.next():w($.anchor||$.el),rt=($,I,V)=>{$==null?I._vnode&&Ht(I._vnode,null,null,!0):A(I._vnode||null,$,I,null,null,null,V),mg(),Vm(),I._vnode=$},lt={p:A,um:Ht,m:qt,r:Jt,mt:z,mc:Y,pc:Q,pbc:at,n:j,o:t};let Mt,Et;return e&&([Mt,Et]=e(lt)),{render:rt,hydrate:Mt,createApp:L_(rt,Mt)}}function Ui({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function R_(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function p0(t,e,r=!1){const o=t.children,s=e.children;if(It(o)&&It(s))for(let u=0;u<o.length;u++){const f=o[u];let h=s[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=s[u]=vi(s[u]),h.el=f.el),r||p0(f,h)),h.type===Oc&&(h.el=f.el)}}function z_(t){const e=t.slice(),r=[0];let o,s,u,f,h;const d=t.length;for(o=0;o<d;o++){const g=t[o];if(g!==0){if(s=r[r.length-1],t[s]<g){e[o]=s,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 I_=t=>t.__isTeleport,ne=Symbol.for("v-fgt"),Oc=Symbol.for("v-txt"),Mn=Symbol.for("v-cmt"),Xu=Symbol.for("v-stc"),cl=[];let Wn=null;function st(t=!1){cl.push(Wn=t?null:[])}function g0(){cl.pop(),Wn=cl[cl.length-1]||null}let is=1;function Ag(t){is+=t}function v0(t){return t.dynamicChildren=is>0?Wn||Go:null,g0(),is>0&&Wn&&Wn.push(t),t}function kt(t,e,r,o,s,u){return v0(tt(t,e,r,o,s,u,!0))}function te(t,e,r,o,s){return v0(Ft(t,e,r,o,s,!0))}function yl(t){return t?t.__v_isVNode===!0:!1}function mr(t,e){return t.type===e.type&&t.key===e.key}const Dc="__vInternal",m0=({key:t})=>t??null,Ha=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Ie(t)||Le(t)||jt(t)?{i:Qe,r:t,k:e,f:!!r}:t:null);function tt(t,e=null,r=null,o=0,s=null,u=t===ne?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&m0(e),ref:e&&Ha(e),scopeId:Mc,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:s,dynamicChildren:null,appContext:null,ctx:Qe};return h?(Mh(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=Ie(r)?8:16),is>0&&!f&&Wn&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&Wn.push(d),d}const Ft=F_;function F_(t,e=null,r=null,o=0,s=null,u=!1){if((!t||t===X1)&&(t=Mn),yl(t)){const h=Ei(t,e,!0);return r&&Mh(h,r),is>0&&!u&&Wn&&(h.shapeFlag&6?Wn[Wn.indexOf(t)]=h:Wn.push(h)),h.patchFlag|=-2,h}if(K_(t)&&(t=t.__vccOpts),e){e=q_(e);let{class:h,style:d}=e;h&&!Ie(h)&&(e.class=ve(h)),ye(d)&&(qm(d)&&!It(d)&&(d=ze({},d)),e.style=An(d))}const f=Ie(t)?1:Y1(t)?128:I_(t)?64:ye(t)?4:jt(t)?2:0;return tt(t,e,r,o,s,f,u,!0)}function q_(t){return t?qm(t)||Dc in t?ze({},t):t:null}function Ei(t,e,r=!1){const{props:o,ref:s,patchFlag:u,children:f}=t,h=e?Ci(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&m0(h),ref:e&&e.ref?r&&s?It(s)?s.concat(Ha(e)):[s,Ha(e)]:Ha(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ne?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&&Ei(t.ssContent),ssFallback:t.ssFallback&&Ei(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function me(t=" ",e=0){return Ft(Oc,null,t,e)}function Vt(t="",e=!1){return e?(st(),te(Mn,null,t)):Ft(Mn,null,t)}function rr(t){return t==null||typeof t=="boolean"?Ft(Mn):It(t)?Ft(ne,null,t.slice()):typeof t=="object"?vi(t):Ft(Oc,null,String(t))}function vi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ei(t)}function Mh(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(It(e))r=16;else if(typeof e=="object")if(o&65){const s=e.default;s&&(s._c&&(s._d=!1),Mh(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!(Dc in e)?e._ctx=Qe:s===3&&Qe&&(Qe.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else jt(e)?(e={default:e,_ctx:Qe},r=32):(e=String(e),o&64?(r=16,e=[me(e)]):r=8);t.children=e,t.shapeFlag|=r}function Ci(...t){const e={};for(let r=0;r<t.length;r++){const o=t[r];for(const s in o)if(s==="class")e.class!==o.class&&(e.class=ve([e.class,o.class]));else if(s==="style")e.style=An([e.style,o.style]);else if(_c(s)){const u=e[s],f=o[s];f&&u!==f&&!(It(u)&&u.includes(f))&&(e[s]=u?[].concat(u,f):f)}else s!==""&&(e[s]=o[s])}return e}function gr(t,e,r,o=null){jn(t,e,7,[r,o])}const H_=a0();let B_=0;function W_(t,e,r){const o=t.type,s=(e?e.appContext:t.appContext)||H_,u={uid:B_++,vnode:t,type:o,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new o1(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:u0(o,s),emitsOptions:Km(o,s),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,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=e?e.root:u,u.emit=B1.bind(null,u),t.ce&&t.ce(u),u}let Ge=null;const Pl=()=>Ge||Qe;let Nh,qo,Mg="__VUE_INSTANCE_SETTERS__";(qo=vf()[Mg])||(qo=vf()[Mg]=[]),qo.push(t=>Ge=t),Nh=t=>{qo.length>1?qo.forEach(e=>e(t)):qo[0](t)};const os=t=>{Nh(t),t.scope.on()},to=()=>{Ge&&Ge.scope.off(),Nh(null)};function y0(t){return t.vnode.shapeFlag&4}let bl=!1;function U_(t,e=!1){bl=e;const{props:r,children:o}=t.vnode,s=y0(t);A_(t,r,s,e),P_(t,o);const u=s?j_(t,e):void 0;return bl=!1,u}function j_(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=vh(new Proxy(t.ctx,b_));const{setup:o}=r;if(o){const s=t.setupContext=o.length>1?w0(t):null;os(t),ps();const u=ki(o,t,0,[t.props,s]);if(gs(),to(),_m(u)){if(u.then(to,to),e)return u.then(f=>{Mf(t,f,e)}).catch(f=>{Nl(f,t,0)});t.asyncDep=u}else Mf(t,u,e)}else b0(t,e)}function Mf(t,e,r){jt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ye(e)&&(t.setupState=Bm(e)),b0(t,r)}let Ng;function b0(t,e,r){const o=t.type;if(!t.render){if(!e&&Ng&&!o.render){const s=o.template||Lh(t).template;if(s){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=ze(ze({isCustomElement:u,delimiters:h},f),d);o.render=Ng(s,g)}}t.render=o.render||wr}{os(t),ps();try{__(t)}finally{gs(),to()}}}function V_(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return Nn(t,"get","$attrs"),e[r]}}))}function w0(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return V_(t)},slots:t.slots,emit:t.emit,expose:e}}function $c(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Bm(vh(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in al)return al[r](t)},has(e,r){return r in e||r in al}}))}function G_(t,e=!0){return jt(t)?t.displayName||t.name:t.name||e&&t.__name}function K_(t){return jt(t)&&"__vccOpts"in t}const xt=(t,e)=>z1(t,e,bl);function Ol(t,e,r){const o=arguments.length;return o===2?ye(e)&&!It(e)?yl(e)?Ft(t,null,[e]):Ft(t,e):Ft(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&yl(r)&&(r=[r]),Ft(t,e,r))}const X_=Symbol.for("v-scx"),Y_=()=>qr(X_),Z_="3.3.8",Q_="http://www.w3.org/2000/svg",Xi=typeof document<"u"?document:null,Pg=Xi&&Xi.createElement("template"),J_={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 s=e?Xi.createElementNS(Q_,t):Xi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:t=>Xi.createTextNode(t),createComment:t=>Xi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Xi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,s,u){const f=r?r.previousSibling:e.lastChild;if(s&&(s===u||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===u||!(s=s.nextSibling)););else{Pg.innerHTML=o?`<svg>${t}</svg>`:t;const h=Pg.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]}},fi="transition",Zs="animation",wl=Symbol("_vtc"),Ph=(t,{slots:e})=>Ol(a_,tS(t),e);Ph.displayName="Transition";const x0={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};Ph.props=ze({},t0,x0);const ji=(t,e=[])=>{It(t)?t.forEach(r=>r(...e)):t&&t(...e)},Og=t=>t?It(t)?t.some(e=>e.length>1):t.length>1:!1;function tS(t){const e={};for(const gt in t)gt in x0||(e[gt]=t[gt]);if(t.css===!1)return e;const{name:r="v",type:o,duration:s,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,P=eS(s),A=P&&P[0],L=P&&P[1],{onBeforeEnter:T,onEnter:M,onEnterCancelled:R,onLeave:E,onLeaveCancelled:B,onBeforeAppear:K=T,onAppear:ht=M,onAppearCancelled:Y=R}=e,nt=(gt,G,z)=>{Vi(gt,G?v:h),Vi(gt,G?g:f),z&&z()},at=(gt,G)=>{gt._isLeaving=!1,Vi(gt,b),Vi(gt,S),Vi(gt,w),G&&G()},pt=gt=>(G,z)=>{const k=gt?ht:M,F=()=>nt(G,gt,z);ji(k,[G,F]),Dg(()=>{Vi(G,gt?d:u),hi(G,gt?v:h),Og(k)||$g(G,o,A,F)})};return ze(e,{onBeforeEnter(gt){ji(T,[gt]),hi(gt,u),hi(gt,f)},onBeforeAppear(gt){ji(K,[gt]),hi(gt,d),hi(gt,g)},onEnter:pt(!1),onAppear:pt(!0),onLeave(gt,G){gt._isLeaving=!0;const z=()=>at(gt,G);hi(gt,b),iS(),hi(gt,w),Dg(()=>{gt._isLeaving&&(Vi(gt,b),hi(gt,S),Og(E)||$g(gt,o,L,z))}),ji(E,[gt,z])},onEnterCancelled(gt){nt(gt,!1),ji(R,[gt])},onAppearCancelled(gt){nt(gt,!0),ji(Y,[gt])},onLeaveCancelled(gt){at(gt),ji(B,[gt])}})}function eS(t){if(t==null)return null;if(ye(t))return[Yu(t.enter),Yu(t.leave)];{const e=Yu(t);return[e,e]}}function Yu(t){return Cm(t)}function hi(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[wl]||(t[wl]=new Set)).add(e)}function Vi(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[wl];r&&(r.delete(e),r.size||(t[wl]=void 0))}function Dg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let nS=0;function $g(t,e,r,o){const s=t._endId=++nS,u=()=>{s===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=rS(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 rS(t,e){const r=window.getComputedStyle(t),o=P=>(r[P]||"").split(", "),s=o(`${fi}Delay`),u=o(`${fi}Duration`),f=Rg(s,u),h=o(`${Zs}Delay`),d=o(`${Zs}Duration`),g=Rg(h,d);let v=null,b=0,w=0;e===fi?f>0&&(v=fi,b=f,w=u.length):e===Zs?g>0&&(v=Zs,b=g,w=d.length):(b=Math.max(f,g),v=b>0?f>g?fi:Zs:null,w=v?v===fi?u.length:d.length:0);const S=v===fi&&/\b(transform|all)(,|$)/.test(o(`${fi}Property`).toString());return{type:v,timeout:b,propCount:w,hasTransform:S}}function Rg(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,o)=>zg(r)+zg(t[o])))}function zg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function iS(){return document.body.offsetHeight}function oS(t,e,r){const o=t[wl];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Oh=Symbol("_vod"),Nf={beforeMount(t,{value:e},{transition:r}){t[Oh]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Qs(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),Qs(t,!0),o.enter(t)):o.leave(t,()=>{Qs(t,!1)}):Qs(t,e))},beforeUnmount(t,{value:e}){Qs(t,e)}};function Qs(t,e){t.style.display=e?t[Oh]:"none"}function sS(t,e,r){const o=t.style,s=Ie(r);if(r&&!s){if(e&&!Ie(e))for(const u in e)r[u]==null&&Pf(o,u,"");for(const u in r)Pf(o,u,r[u])}else{const u=o.display;s?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),Oh in t&&(o.display=u)}}const Ig=/\s*!important$/;function Pf(t,e,r){if(It(r))r.forEach(o=>Pf(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=lS(t,e);Ig.test(r)?t.setProperty(co(o),r.replace(Ig,""),"important"):t[o]=r}}const Fg=["Webkit","Moz","ms"],Zu={};function lS(t,e){const r=Zu[e];if(r)return r;let o=_r(e);if(o!=="filter"&&o in t)return Zu[e]=o;o=Tc(o);for(let s=0;s<Fg.length;s++){const u=Fg[s]+o;if(u in t)return Zu[e]=u}return e}const qg="http://www.w3.org/1999/xlink";function aS(t,e,r,o,s){if(o&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(qg,e.slice(6,e.length)):t.setAttributeNS(qg,e,r);else{const u=i1(e);r==null||u&&!Tm(r)?t.removeAttribute(e):t.setAttribute(e,u?"":r)}}function cS(t,e,r,o,s,u,f){if(e==="innerHTML"||e==="textContent"){o&&f(o,s,u),t[e]=r??"";return}const h=t.tagName;if(e==="value"&&h!=="PROGRESS"&&!h.includes("-")){t._value=r;const g=h==="OPTION"?t.getAttribute("value"):t.value,v=r??"";g!==v&&(t.value=v),r==null&&t.removeAttribute(e);return}let d=!1;if(r===""||r==null){const g=typeof t[e];g==="boolean"?r=Tm(r):r==null&&g==="string"?(r="",d=!0):g==="number"&&(r=0,d=!0)}try{t[e]=r}catch{}d&&t.removeAttribute(e)}function Bo(t,e,r,o){t.addEventListener(e,r,o)}function uS(t,e,r,o){t.removeEventListener(e,r,o)}const Hg=Symbol("_vei");function fS(t,e,r,o,s=null){const u=t[Hg]||(t[Hg]={}),f=u[e];if(o&&f)f.value=o;else{const[h,d]=hS(e);if(o){const g=u[e]=gS(o,s);Bo(t,h,g,d)}else f&&(uS(t,h,f,d),u[e]=void 0)}}const Bg=/(?:Once|Passive|Capture)$/;function hS(t){let e;if(Bg.test(t)){e={};let o;for(;o=t.match(Bg);)t=t.slice(0,t.length-o[0].length),e[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):co(t.slice(2)),e]}let Qu=0;const dS=Promise.resolve(),pS=()=>Qu||(dS.then(()=>Qu=0),Qu=Date.now());function gS(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;jn(vS(o,r.value),e,5,[o])};return r.value=t,r.attached=pS(),r}function vS(t,e){if(It(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>s=>!s._stopped&&o&&o(s))}else return e}const Wg=/^on[a-z]/,mS=(t,e,r,o,s=!1,u,f,h,d)=>{e==="class"?oS(t,o,s):e==="style"?sS(t,r,o):_c(e)?ah(e)||fS(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):yS(t,e,o,s))?cS(t,e,o,u,f,h,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),aS(t,e,o,s))};function yS(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&Wg.test(e)&&jt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Wg.test(e)&&Ie(r)?!1:e in t}const Ug=t=>{const e=t.props["onUpdate:modelValue"]||!1;return It(e)?r=>Fa(e,r):e};function bS(t){t.target.composing=!0}function jg(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ju=Symbol("_assign"),wS={created(t,{modifiers:{lazy:e,trim:r,number:o}},s){t[Ju]=Ug(s);const u=o||s.props&&s.props.type==="number";Bo(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=gf(h)),t[Ju](h)}),r&&Bo(t,"change",()=>{t.value=t.value.trim()}),e||(Bo(t,"compositionstart",bS),Bo(t,"compositionend",jg),Bo(t,"change",jg))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:o,number:s}},u){if(t[Ju]=Ug(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===e||(s||t.type==="number")&&gf(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},xS={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Of=(t,e)=>r=>{if(!("key"in r))return;const o=co(r.key);if(e.some(s=>s===o||xS[s]===o))return t(r)},_S=ze({patchProp:mS},J_);let Vg;function SS(){return Vg||(Vg=D_(_S))}const _0=(...t)=>{const e=SS().createApp(...t),{mount:r}=e;return e.mount=o=>{const s=kS(o);if(!s)return;const u=e._component;!jt(u)&&!u.render&&!u.template&&(u.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},e};function kS(t){return Ie(t)?document.querySelector(t):t}const fo=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},CS={};function TS(t,e){const r=io("RouterView");return st(),te(r)}const ES=fo(CS,[["render",TS]]);/*!
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const Wo=typeof window<"u";function LS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function tf(t,e){const r={};for(const o in e){const s=e[o];r[o]=lr(s)?s.map(t):t(s)}return r}const ul=()=>{},lr=Array.isArray,AS=/\/$/,MS=t=>t.replace(AS,"");function ef(t,e,r="/"){let o,s={},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),s=t(u)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=DS(o??e,r),{fullPath:o+(u&&"?")+u+f,path:o,query:s,hash:f}}function NS(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Gg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function PS(t,e,r){const o=e.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&ss(e.matched[o],r.matched[s])&&S0(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function ss(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function S0(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!OS(t[r],e[r]))return!1;return!0}function OS(t,e){return lr(t)?Kg(t,e):lr(e)?Kg(e,t):t===e}function Kg(t,e){return lr(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function DS(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let u=r.length-1,f,h;for(f=0;f<o.length;f++)if(h=o[f],h!==".")if(h==="..")u>1&&u--;else break;return r.slice(0,u).join("/")+"/"+o.slice(f-(f===o.length?1:0)).join("/")}var xl;(function(t){t.pop="pop",t.push="push"})(xl||(xl={}));var fl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(fl||(fl={}));function $S(t){if(!t)if(Wo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),MS(t)}const RS=/^[^#]+#/;function zS(t,e){return t.replace(RS,"#")+e}function IS(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 Rc=()=>({left:window.pageXOffset,top:window.pageYOffset});function FS(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;e=IS(s,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 Xg(t,e){return(history.state?history.state.position-e:-1)+t}const Df=new Map;function qS(t,e){Df.set(t,e)}function HS(t){const e=Df.get(t);return Df.delete(t),e}let BS=()=>location.protocol+"//"+location.host;function k0(t,e){const{pathname:r,search:o,hash:s}=e,u=t.indexOf("#");if(u>-1){let h=s.includes(t.slice(u))?t.slice(u).length:1,d=s.slice(h);return d[0]!=="/"&&(d="/"+d),Gg(d,"")}return Gg(r,t)+o+s}function WS(t,e,r,o){let s=[],u=[],f=null;const h=({state:w})=>{const S=k0(t,location),P=r.value,A=e.value;let L=0;if(w){if(r.value=S,e.value=w,f&&f===P){f=null;return}L=A?w.position-A.position:0}else o(S);s.forEach(T=>{T(r.value,P,{delta:L,type:xl.pop,direction:L?L>0?fl.forward:fl.back:fl.unknown})})};function d(){f=r.value}function g(w){s.push(w);const S=()=>{const P=s.indexOf(w);P>-1&&s.splice(P,1)};return u.push(S),S}function v(){const{history:w}=window;w.state&&w.replaceState(pe({},w.state,{scroll:Rc()}),"")}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,{passive:!0}),{pauseListeners:d,listen:g,destroy:b}}function Yg(t,e,r,o=!1,s=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:s?Rc():null}}function US(t){const{history:e,location:r}=window,o={value:k0(t,r)},s={value:e.state};s.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:BS()+t+d;try{e[v?"replaceState":"pushState"](g,"",w),s.value=g}catch(S){console.error(S),r[v?"replace":"assign"](w)}}function f(d,g){const v=pe({},e.state,Yg(s.value.back,d,s.value.forward,!0),g,{position:s.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=pe({},s.value,e.state,{forward:d,scroll:Rc()});u(v.current,v,!0);const b=pe({},Yg(o.value,d,null),{position:v.position+1},g);u(d,b,!1),o.value=d}return{location:o,state:s,push:h,replace:f}}function jS(t){t=$S(t);const e=US(t),r=WS(t,e.state,e.location,e.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const s=pe({location:"",base:t,go:o,createHref:zS.bind(null,t)},e,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function VS(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),jS(t)}function GS(t){return typeof t=="string"||t&&typeof t=="object"}function C0(t){return typeof t=="string"||typeof t=="symbol"}const di={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},T0=Symbol("");var Zg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Zg||(Zg={}));function ls(t,e){return pe(new Error,{type:t,[T0]:!0},e)}function Or(t,e){return t instanceof Error&&T0 in t&&(e==null||!!(t.type&e))}const Qg="[^/]+?",KS={sensitive:!1,strict:!1,start:!0,end:!0},XS=/[.+*?^${}()[\]/\\]/g;function YS(t,e){const r=pe({},KS,e),o=[];let s=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(s+="/");for(let b=0;b<g.length;b++){const w=g[b];let S=40+(r.sensitive?.25:0);if(w.type===0)b||(s+="/"),s+=w.value.replace(XS,"\\$&"),S+=40;else if(w.type===1){const{value:P,repeatable:A,optional:L,regexp:T}=w;u.push({name:P,repeatable:A,optional:L});const M=T||Qg;if(M!==Qg){S+=10;try{new RegExp(`(${M})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${P}" (${M}): `+E.message)}}let R=A?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;b||(R=L&&g.length<2?`(?:/${R})`:"/"+R),L&&(R+="?"),s+=R,S+=20,L&&(S+=-8),A&&(S+=-20),M===".*"&&(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||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,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]||"",P=u[w-1];b[P.name]=S&&P.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:P,repeatable:A,optional:L}=S,T=P in g?g[P]:"";if(lr(T)&&!A)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const M=lr(T)?T.join("/"):T;if(!M)if(L)w.length<2&&(v.endsWith("/")?v=v.slice(0,-1):b=!0);else throw new Error(`Missing required param "${P}"`);v+=M}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:d}}function ZS(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 QS(t,e){let r=0;const o=t.score,s=e.score;for(;r<o.length&&r<s.length;){const u=ZS(o[r],s[r]);if(u)return u;r++}if(Math.abs(s.length-o.length)===1){if(Jg(o))return 1;if(Jg(s))return-1}return s.length-o.length}function Jg(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const JS={type:0,value:""},tk=/[a-zA-Z0-9_]/;function ek(t){if(!t)return[[]];if(t==="/")return[[JS]];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 s=[];let u;function f(){u&&s.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:tk.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(),s}function nk(t,e,r){const o=YS(ek(t.path),r),s=pe(o,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function rk(t,e){const r=[],o=new Map;e=nv({strict:!1,end:!0,sensitive:!1},e);function s(v){return o.get(v)}function u(v,b,w){const S=!w,P=ik(v);P.aliasOf=w&&w.record;const A=nv(e,v),L=[P];if("alias"in v){const R=typeof v.alias=="string"?[v.alias]:v.alias;for(const E of R)L.push(pe({},P,{components:w?w.record.components:P.components,path:E,aliasOf:w?w.record:P}))}let T,M;for(const R of L){const{path:E}=R;if(b&&E[0]!=="/"){const B=b.record.path,K=B[B.length-1]==="/"?"":"/";R.path=b.record.path+(E&&K+E)}if(T=nk(R,b,A),w?w.alias.push(T):(M=M||T,M!==T&&M.alias.push(T),S&&v.name&&!ev(T)&&f(v.name)),P.children){const B=P.children;for(let K=0;K<B.length;K++)u(B[K],T,w&&w.children[K])}w=w||T,(T.record.components&&Object.keys(T.record.components).length||T.record.name||T.record.redirect)&&d(T)}return M?()=>{f(M)}:ul}function f(v){if(C0(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&&QS(v,r[b])>=0&&(v.record.path!==r[b].record.path||!E0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!ev(v)&&o.set(v.record.name,v)}function g(v,b){let w,S={},P,A;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw ls(1,{location:v});A=w.record.name,S=pe(tv(b.params,w.keys.filter(M=>!M.optional).map(M=>M.name)),v.params&&tv(v.params,w.keys.map(M=>M.name))),P=w.stringify(S)}else if("path"in v)P=v.path,w=r.find(M=>M.re.test(P)),w&&(S=w.parse(P),A=w.record.name);else{if(w=b.name?o.get(b.name):r.find(M=>M.re.test(b.path)),!w)throw ls(1,{location:v,currentLocation:b});A=w.record.name,S=pe({},b.params,v.params),P=w.stringify(S)}const L=[];let T=w;for(;T;)L.unshift(T.record),T=T.parent;return{name:A,path:P,params:S,matched:L,meta:sk(L)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:s}}function tv(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function ik(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:ok(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 ok(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=="object"?r[o]:r;return e}function ev(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function sk(t){return t.reduce((e,r)=>pe(e,r.meta),{})}function nv(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function E0(t,e){return e.children.some(r=>r===t||E0(t,r))}const L0=/#/g,lk=/&/g,ak=/\//g,ck=/=/g,uk=/\?/g,A0=/\+/g,fk=/%5B/g,hk=/%5D/g,M0=/%5E/g,dk=/%60/g,N0=/%7B/g,pk=/%7C/g,P0=/%7D/g,gk=/%20/g;function Dh(t){return encodeURI(""+t).replace(pk,"|").replace(fk,"[").replace(hk,"]")}function vk(t){return Dh(t).replace(N0,"{").replace(P0,"}").replace(M0,"^")}function $f(t){return Dh(t).replace(A0,"%2B").replace(gk,"+").replace(L0,"%23").replace(lk,"%26").replace(dk,"`").replace(N0,"{").replace(P0,"}").replace(M0,"^")}function mk(t){return $f(t).replace(ck,"%3D")}function yk(t){return Dh(t).replace(L0,"%23").replace(uk,"%3F")}function bk(t){return t==null?"":yk(t).replace(ak,"%2F")}function ic(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function wk(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<o.length;++s){const u=o[s].replace(A0," "),f=u.indexOf("="),h=ic(f<0?u:u.slice(0,f)),d=f<0?null:ic(u.slice(f+1));if(h in e){let g=e[h];lr(g)||(g=e[h]=[g]),g.push(d)}else e[h]=d}return e}function rv(t){let e="";for(let r in t){const o=t[r];if(r=mk(r),o==null){o!==void 0&&(e+=(e.length?"&":"")+r);continue}(lr(o)?o.map(u=>u&&$f(u)):[o&&$f(o)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function xk(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=lr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return e}const _k=Symbol(""),iv=Symbol(""),$h=Symbol(""),O0=Symbol(""),Rf=Symbol("");function Js(){let t=[];function e(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function mi(t,e,r,o,s){const u=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((f,h)=>{const d=b=>{b===!1?h(ls(4,{from:r,to:e})):b instanceof Error?h(b):GS(b)?h(ls(2,{from:e,to:b})):(u&&o.enterCallbacks[s]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[s],e,r,d);let v=Promise.resolve(g);t.length<3&&(v=v.then(d)),v.catch(b=>h(b))})}function nf(t,e,r,o){const s=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(e!=="beforeRouteEnter"&&!u.instances[f]))if(Sk(h)){const g=(h.__vccOpts||h)[e];g&&s.push(mi(g,r,o,u,f))}else{let d=h();s.push(()=>d.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=LS(g)?g.default:g;u.components[f]=v;const w=(v.__vccOpts||v)[e];return w&&mi(w,r,o,u,f)()}))}}return s}function Sk(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function ov(t){const e=qr($h),r=qr(O0),o=xt(()=>e.resolve(U(t.to))),s=xt(()=>{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(ss.bind(null,v));if(w>-1)return w;const S=sv(d[g-2]);return g>1&&sv(v)===S&&b[b.length-1].path!==S?b.findIndex(ss.bind(null,d[g-2])):w}),u=xt(()=>s.value>-1&&Ek(r.params,o.value.params)),f=xt(()=>s.value>-1&&s.value===r.matched.length-1&&S0(r.params,o.value.params));function h(d={}){return Tk(d)?e[U(t.replace)?"replace":"push"](U(t.to)).catch(ul):Promise.resolve()}return{route:o,href:xt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const kk=ie({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:ov,setup(t,{slots:e}){const r=Un(ov(t)),{options:o}=qr($h),s=xt(()=>({[lv(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[lv(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=e.default&&e.default(r);return t.custom?u:Ol("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},u)}}}),Ck=kk;function Tk(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 Ek(t,e){for(const r in e){const o=e[r],s=t[r];if(typeof o=="string"){if(o!==s)return!1}else if(!lr(s)||s.length!==o.length||o.some((u,f)=>u!==s[f]))return!1}return!0}function sv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const lv=(t,e,r)=>t??e??r,Lk=ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=qr(Rf),s=xt(()=>t.route||o.value),u=qr(iv,0),f=xt(()=>{let g=U(u);const{matched:v}=s.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=xt(()=>s.value.matched[f.value]);qa(iv,xt(()=>f.value+1)),qa(_k,h),qa(Rf,s);const d=Zt();return Re(()=>[d.value,h.value,t.name],([g,v,b],[w,S,P])=>{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||!ss(v,S)||!w)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=s.value,v=t.name,b=h.value,w=b&&b.components[v];if(!w)return av(r.default,{Component:w,route:g});const S=b.props[v],P=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=Ol(w,pe({},P,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(b.instances[v]=null)},ref:d}));return av(r.default,{Component:L,route:g})||L}}});function av(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const Ak=Lk;function Mk(t){const e=rk(t.routes,t),r=t.parseQuery||wk,o=t.stringifyQuery||rv,s=t.history,u=Js(),f=Js(),h=Js(),d=vs(di);let g=di;Wo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=tf.bind(null,j=>""+j),b=tf.bind(null,bk),w=tf.bind(null,ic);function S(j,rt){let lt,Mt;return C0(j)?(lt=e.getRecordMatcher(j),Mt=rt):Mt=j,e.addRoute(Mt,lt)}function P(j){const rt=e.getRecordMatcher(j);rt&&e.removeRoute(rt)}function A(){return e.getRoutes().map(j=>j.record)}function L(j){return!!e.getRecordMatcher(j)}function T(j,rt){if(rt=pe({},rt||d.value),typeof j=="string"){const V=ef(r,j,rt.path),J=e.resolve({path:V.path},rt),ot=s.createHref(V.fullPath);return pe(V,J,{params:w(J.params),hash:ic(V.hash),redirectedFrom:void 0,href:ot})}let lt;if("path"in j)lt=pe({},j,{path:ef(r,j.path,rt.path).path});else{const V=pe({},j.params);for(const J in V)V[J]==null&&delete V[J];lt=pe({},j,{params:b(V)}),rt.params=b(rt.params)}const Mt=e.resolve(lt,rt),Et=j.hash||"";Mt.params=v(w(Mt.params));const $=NS(o,pe({},j,{hash:vk(Et),path:Mt.path})),I=s.createHref($);return pe({fullPath:$,hash:Et,query:o===rv?xk(j.query):j.query||{}},Mt,{redirectedFrom:void 0,href:I})}function M(j){return typeof j=="string"?ef(r,j,d.value.path):pe({},j)}function R(j,rt){if(g!==j)return ls(8,{from:rt,to:j})}function E(j){return ht(j)}function B(j){return E(pe(M(j),{replace:!0}))}function K(j){const rt=j.matched[j.matched.length-1];if(rt&&rt.redirect){const{redirect:lt}=rt;let Mt=typeof lt=="function"?lt(j):lt;return typeof Mt=="string"&&(Mt=Mt.includes("?")||Mt.includes("#")?Mt=M(Mt):{path:Mt},Mt.params={}),pe({query:j.query,hash:j.hash,params:"path"in Mt?{}:j.params},Mt)}}function ht(j,rt){const lt=g=T(j),Mt=d.value,Et=j.state,$=j.force,I=j.replace===!0,V=K(lt);if(V)return ht(pe(M(V),{state:typeof V=="object"?pe({},Et,V.state):Et,force:$,replace:I}),rt||lt);const J=lt;J.redirectedFrom=rt;let ot;return!$&&PS(o,Mt,lt)&&(ot=ls(16,{to:J,from:Mt}),qt(Mt,Mt,!0,!1)),(ot?Promise.resolve(ot):at(J,Mt)).catch(ut=>Or(ut)?Or(ut,2)?ut:At(ut):Q(ut,J,Mt)).then(ut=>{if(ut){if(Or(ut,2))return ht(pe({replace:I},M(ut.to),{state:typeof ut.to=="object"?pe({},Et,ut.to.state):Et,force:$}),rt||J)}else ut=gt(J,Mt,!0,I,Et);return pt(J,Mt,ut),ut})}function Y(j,rt){const lt=R(j,rt);return lt?Promise.reject(lt):Promise.resolve()}function nt(j){const rt=Qt.values().next().value;return rt&&typeof rt.runWithContext=="function"?rt.runWithContext(j):j()}function at(j,rt){let lt;const[Mt,Et,$]=Nk(j,rt);lt=nf(Mt.reverse(),"beforeRouteLeave",j,rt);for(const V of Mt)V.leaveGuards.forEach(J=>{lt.push(mi(J,j,rt))});const I=Y.bind(null,j,rt);return lt.push(I),Tt(lt).then(()=>{lt=[];for(const V of u.list())lt.push(mi(V,j,rt));return lt.push(I),Tt(lt)}).then(()=>{lt=nf(Et,"beforeRouteUpdate",j,rt);for(const V of Et)V.updateGuards.forEach(J=>{lt.push(mi(J,j,rt))});return lt.push(I),Tt(lt)}).then(()=>{lt=[];for(const V of $)if(V.beforeEnter)if(lr(V.beforeEnter))for(const J of V.beforeEnter)lt.push(mi(J,j,rt));else lt.push(mi(V.beforeEnter,j,rt));return lt.push(I),Tt(lt)}).then(()=>(j.matched.forEach(V=>V.enterCallbacks={}),lt=nf($,"beforeRouteEnter",j,rt),lt.push(I),Tt(lt))).then(()=>{lt=[];for(const V of f.list())lt.push(mi(V,j,rt));return lt.push(I),Tt(lt)}).catch(V=>Or(V,8)?V:Promise.reject(V))}function pt(j,rt,lt){h.list().forEach(Mt=>nt(()=>Mt(j,rt,lt)))}function gt(j,rt,lt,Mt,Et){const $=R(j,rt);if($)return $;const I=rt===di,V=Wo?history.state:{};lt&&(Mt||I?s.replace(j.fullPath,pe({scroll:I&&V&&V.scroll},Et)):s.push(j.fullPath,Et)),d.value=j,qt(j,rt,lt,I),At()}let G;function z(){G||(G=s.listen((j,rt,lt)=>{if(!Gt.listening)return;const Mt=T(j),Et=K(Mt);if(Et){ht(pe(Et,{replace:!0}),Mt).catch(ul);return}g=Mt;const $=d.value;Wo&&qS(Xg($.fullPath,lt.delta),Rc()),at(Mt,$).catch(I=>Or(I,12)?I:Or(I,2)?(ht(I.to,Mt).then(V=>{Or(V,20)&&!lt.delta&&lt.type===xl.pop&&s.go(-1,!1)}).catch(ul),Promise.reject()):(lt.delta&&s.go(-lt.delta,!1),Q(I,Mt,$))).then(I=>{I=I||gt(Mt,$,!1),I&&(lt.delta&&!Or(I,8)?s.go(-lt.delta,!1):lt.type===xl.pop&&Or(I,20)&&s.go(-1,!1)),pt(Mt,$,I)}).catch(ul)}))}let k=Js(),F=Js(),H;function Q(j,rt,lt){At(j);const Mt=F.list();return Mt.length?Mt.forEach(Et=>Et(j,rt,lt)):console.error(j),Promise.reject(j)}function yt(){return H&&d.value!==di?Promise.resolve():new Promise((j,rt)=>{k.add([j,rt])})}function At(j){return H||(H=!j,z(),k.list().forEach(([rt,lt])=>j?lt(j):rt()),k.reset()),j}function qt(j,rt,lt,Mt){const{scrollBehavior:Et}=t;if(!Wo||!Et)return Promise.resolve();const $=!lt&&HS(Xg(j.fullPath,0))||(Mt||!lt)&&history.state&&history.state.scroll||null;return Br().then(()=>Et(j,rt,$)).then(I=>I&&FS(I)).catch(I=>Q(I,j,rt))}const Ht=j=>s.go(j);let Jt;const Qt=new Set,Gt={currentRoute:d,listening:!0,addRoute:S,removeRoute:P,hasRoute:L,getRoutes:A,resolve:T,options:t,push:E,replace:B,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:F.add,isReady:yt,install(j){const rt=this;j.component("RouterLink",Ck),j.component("RouterView",Ak),j.config.globalProperties.$router=rt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>U(d)}),Wo&&!Jt&&d.value===di&&(Jt=!0,E(s.location).catch(Et=>{}));const lt={};for(const Et in di)Object.defineProperty(lt,Et,{get:()=>d.value[Et],enumerable:!0});j.provide($h,rt),j.provide(O0,Fm(lt)),j.provide(Rf,d);const Mt=j.unmount;Qt.add(j),j.unmount=function(){Qt.delete(j),Qt.size<1&&(g=di,G&&G(),G=null,d.value=di,Jt=!1,H=!1),Mt()}}};function Tt(j){return j.reduce((rt,lt)=>rt.then(()=>nt(lt)),Promise.resolve())}return Gt}function Nk(t,e){const r=[],o=[],s=[],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=>ss(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>ss(g,d))||s.push(d))}return[r,o,s]}function Xr(t){return t.split("-")[0]}function Qo(t){return t.split("-")[1]}function Dl(t){return["top","bottom"].includes(Xr(t))?"x":"y"}function Rh(t){return t==="y"?"height":"width"}function cv(t){let{reference:e,floating:r,placement:o}=t;const s=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2;let f;switch(Xr(o)){case"top":f={x:s,y:e.y-r.height};break;case"bottom":f={x:s,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=Dl(o),d=Rh(h);switch(Qo(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 Pk=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:g}=cv({...h,placement:o}),v=o,b={};for(let w=0;w<u.length;w++){const{name:S,fn:P}=u[w],{x:A,y:L,data:T,reset:M}=await P({x:d,y:g,initialPlacement:o,placement:v,strategy:s,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:e}});if(d=A??d,g=L??g,b={...b,[S]:T??{}},M){typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(h=M.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:s}):M.rects),{x:d,y:g}=cv({...h,placement:v})),w=-1;continue}}return{x:d,y:g,placement:v,strategy:s,middlewareData:b}};function Ok(t){return{top:0,right:0,bottom:0,left:0,...t}}function D0(t){return typeof t!="number"?Ok(t):{top:t,right:t,bottom:t,left:t}}function zf(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function zc(t,e){e===void 0&&(e={});const{x:r,y:o,platform:s,rects:u,elements:f,strategy:h}=t,{boundary:d="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=e,S=D0(w),A=f[b?v==="floating"?"reference":"floating":v],L=await s.getClippingClientRect({element:await s.isElement(A)?A:A.contextElement||await s.getDocumentElement({element:f.floating}),boundary:d,rootBoundary:g}),T=zf(await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await s.getOffsetParent({element:f.floating}),strategy:h}));return{top:L.top-T.top+S.top,bottom:T.bottom-L.bottom+S.bottom,left:L.left-T.left+S.left,right:T.right-L.right+S.right}}const Dk=Math.min,Gi=Math.max;function If(t,e,r){return Gi(t,Dk(e,r))}const $k=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t??{},{x:s,y:u,placement:f,rects:h,platform:d}=e;if(r==null)return{};const g=D0(o),v={x:s,y:u},b=Xr(f),w=Dl(b),S=Rh(w),P=await d.getDimensions({element:r}),A=w==="y"?"top":"left",L=w==="y"?"bottom":"right",T=h.reference[S]+h.reference[w]-v[w]-h.floating[S],M=v[w]-h.reference[w],R=await d.getOffsetParent({element:r}),E=R?w==="y"?R.clientHeight||0:R.clientWidth||0:0,B=T/2-M/2,K=g[A],ht=E-P[S]-g[L],Y=E/2-P[S]/2+B,nt=If(K,Y,ht);return{data:{[w]:nt,centerOffset:Y-nt}}}}),Rk={left:"right",right:"left",bottom:"top",top:"bottom"};function oc(t){return t.replace(/left|right|bottom|top/g,e=>Rk[e])}function $0(t,e){const r=Qo(t)==="start",o=Dl(t),s=Rh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return e.reference[s]>e.floating[s]&&(u=oc(u)),{main:u,cross:oc(u)}}const zk={start:"end",end:"start"};function Ff(t){return t.replace(/start|end/g,e=>zk[e])}const Ik=["top","right","bottom","left"],Fk=Ik.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function qk(t,e,r){return(t?[...r.filter(s=>Qo(s)===t),...r.filter(s=>Qo(s)!==t)]:r.filter(s=>Xr(s)===s)).filter(s=>t?Qo(s)===t||(e?Ff(s)!==s:!1):!0)}const Hk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,s,u,f,h;const{x:d,y:g,rects:v,middlewareData:b,placement:w}=e,{alignment:S=null,allowedPlacements:P=Fk,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const T=qk(S,A,P),M=await zc(e,L),R=(o=(s=b.autoPlacement)==null?void 0:s.index)!=null?o:0,E=T[R],{main:B,cross:K}=$0(E,v);if(w!==E)return{x:d,y:g,reset:{placement:T[0]}};const ht=[M[Xr(E)],M[B],M[K]],Y=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:E,overflows:ht}],nt=T[R+1];if(nt)return{data:{index:R+1,overflows:Y},reset:{placement:nt}};const at=Y.slice().sort((gt,G)=>gt.overflows[0]-G.overflows[0]),pt=(h=at.find(gt=>{let{overflows:G}=gt;return G.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:pt??at[0].placement}}}}};function Bk(t){const e=oc(t);return[Ff(t),e,Ff(e)]}const Wk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,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,P=Xr(s),L=v||(P===h||!w?[oc(h)]:Bk(h)),T=[h,...L],M=await zc(e,S),R=[];let E=((o=u.flip)==null?void 0:o.overflows)||[];if(d&&R.push(M[P]),g){const{main:Y,cross:nt}=$0(s,f);R.push(M[Y],M[nt])}if(E=[...E,{placement:s,overflows:R}],!R.every(Y=>Y<=0)){var B,K;const Y=((B=(K=u.flip)==null?void 0:K.index)!=null?B:0)+1,nt=T[Y];if(nt)return{data:{index:Y,overflows:E},reset:{placement:nt}};let at="bottom";switch(b){case"bestFit":{var ht;const pt=(ht=E.slice().sort((gt,G)=>gt.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0)-G.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0))[0])==null?void 0:ht.placement;pt&&(at=pt);break}case"initialPlacement":at=h;break}return{data:{skip:!0},reset:{placement:at}}}return{}}}};function Uk(t){let{placement:e,rects:r,value:o}=t;const s=Xr(e),u=["left","top"].includes(s)?-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 Dl(s)==="x"?{x:d,y:h*u}:{x:h*u,y:d}}const jk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(e){const{x:r,y:o,placement:s,rects:u}=e,f=Uk({placement:s,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function Vk(t){return t==="x"?"y":"x"}const Gk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:T,y:M}=L;return{x:T,y:M}}},...d}=t,g={x:r,y:o},v=await zc(e,d),b=Dl(Xr(s)),w=Vk(b);let S=g[b],P=g[w];if(u){const L=b==="y"?"top":"left",T=b==="y"?"bottom":"right",M=S+v[L],R=S-v[T];S=If(M,S,R)}if(f){const L=w==="y"?"top":"left",T=w==="y"?"bottom":"right",M=P+v[L],R=P-v[T];P=If(M,P,R)}const A=h.fn({...e,[b]:S,[w]:P});return{...A,data:{x:A.x-r,y:A.y-o}}}}},Kk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r;const{placement:o,rects:s,middlewareData:u}=e,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const d=await zc(e,h),g=Xr(o),v=Qo(o)==="end";let b,w;g==="top"||g==="bottom"?(b=g,w=v?"left":"right"):(w=g,b=v?"top":"bottom");const S=Gi(d.left,0),P=Gi(d.right,0),A=Gi(d.top,0),L=Gi(d.bottom,0),T={height:s.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Gi(d.top,d.bottom)):d[b]),width:s.floating.width-(["top","bottom"].includes(o)?2*(S!==0||P!==0?S+P:Gi(d.left,d.right)):d[w])};return f==null||f({...T,...s}),{data:{skip:!0},reset:{rects:!0}}}}};function zh(t){return(t==null?void 0:t.toString())==="[object Window]"}function Mi(t){if(t==null)return window;if(!zh(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ic(t){return Mi(t).getComputedStyle(t)}function Wr(t){return zh(t)?"":t?(t.nodeName||"").toLowerCase():""}function Ur(t){return t instanceof Mi(t).HTMLElement}function sc(t){return t instanceof Mi(t).Element}function Xk(t){return t instanceof Mi(t).Node}function R0(t){const e=Mi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Fc(t){const{overflow:e,overflowX:r,overflowY:o}=Ic(t);return/auto|scroll|overlay|hidden/.test(e+o+r)}function Yk(t){return["table","td","th"].includes(Wr(t))}function z0(t){const e=navigator.userAgent.toLowerCase().includes("firefox"),r=Ic(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 uv=Math.min,hl=Math.max,lc=Math.round;function as(t,e){e===void 0&&(e=!1);const r=t.getBoundingClientRect();let o=1,s=1;return e&&Ur(t)&&(o=t.offsetWidth>0&&lc(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&lc(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/s,top:r.top/s,right:r.right/o,bottom:r.bottom/s,left:r.left/o,x:r.left/o,y:r.top/s}}function Ni(t){return((Xk(t)?t.ownerDocument:t.document)||window.document).documentElement}function qc(t){return zh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function I0(t){return as(Ni(t)).left+qc(t).scrollLeft}function Zk(t){const e=as(t);return lc(e.width)!==t.offsetWidth||lc(e.height)!==t.offsetHeight}function Qk(t,e,r){const o=Ur(e),s=Ni(e),u=as(t,o&&Zk(e));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Wr(e)!=="body"||Fc(s))&&(f=qc(e)),Ur(e)){const d=as(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else s&&(h.x=I0(s));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function Hc(t){return Wr(t)==="html"?t:t.assignedSlot||t.parentNode||(R0(t)?t.host:null)||Ni(t)}function fv(t){return!Ur(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function Jk(t){let e=Hc(t);for(;Ur(e)&&!["html","body"].includes(Wr(e));){if(z0(e))return e;e=e.parentNode}return null}function qf(t){const e=Mi(t);let r=fv(t);for(;r&&Yk(r)&&getComputedStyle(r).position==="static";)r=fv(r);return r&&(Wr(r)==="html"||Wr(r)==="body"&&getComputedStyle(r).position==="static"&&!z0(r))?e:r||Jk(t)||e}function hv(t){return{width:t.offsetWidth,height:t.offsetHeight}}function tC(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Ur(r),u=Ni(r);if(r===u)return e;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Wr(r)!=="body"||Fc(u))&&(f=qc(r)),Ur(r))){const d=as(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 eC(t){const e=Mi(t),r=Ni(t),o=e.visualViewport;let s=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(s=o.width,u=o.height,Math.abs(e.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:s,height:u,x:f,y:h}}function nC(t){var e;const r=Ni(t),o=qc(t),s=(e=t.ownerDocument)==null?void 0:e.body,u=hl(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),f=hl(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let h=-o.scrollLeft+I0(t);const d=-o.scrollTop;return Ic(s||r).direction==="rtl"&&(h+=hl(r.clientWidth,s?s.clientWidth:0)-u),{width:u,height:f,x:h,y:d}}function F0(t){return["html","body","#document"].includes(Wr(t))?t.ownerDocument.body:Ur(t)&&Fc(t)?t:F0(Hc(t))}function ac(t,e){var r;e===void 0&&(e=[]);const o=F0(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),u=Mi(o),f=s?[u].concat(u.visualViewport||[],Fc(o)?o:[]):o,h=e.concat(f);return s?h:h.concat(ac(Hc(f)))}function rC(t,e){const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&R0(r)){let o=e;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function iC(t){const e=as(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 dv(t,e){return e==="viewport"?zf(eC(t)):sc(e)?iC(e):zf(nC(Ni(t)))}function oC(t){const e=ac(Hc(t)),o=["absolute","fixed"].includes(Ic(t).position)&&Ur(t)?qf(t):t;return sc(o)?e.filter(s=>sc(s)&&rC(s,o)&&Wr(s)!=="body"):[]}function sC(t){let{element:e,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?oC(e):[].concat(r),o],f=u[0],h=u.reduce((d,g)=>{const v=dv(e,g);return d.top=hl(v.top,d.top),d.right=uv(v.right,d.right),d.bottom=uv(v.bottom,d.bottom),d.left=hl(v.left,d.left),d},dv(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 lC={getElementRects:t=>{let{reference:e,floating:r,strategy:o}=t;return{reference:Qk(e,qf(r),o),floating:{...hv(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>tC(t),getOffsetParent:t=>{let{element:e}=t;return qf(e)},isElement:t=>sc(t),getDocumentElement:t=>{let{element:e}=t;return Ni(e)},getClippingClientRect:t=>sC(t),getDimensions:t=>{let{element:e}=t;return hv(e)},getClientRects:t=>{let{element:e}=t;return e.getClientRects()}},aC=(t,e,r)=>Pk(t,e,{platform:lC,...r});var cC=Object.defineProperty,uC=Object.defineProperties,fC=Object.getOwnPropertyDescriptors,pv=Object.getOwnPropertySymbols,hC=Object.prototype.hasOwnProperty,dC=Object.prototype.propertyIsEnumerable,gv=(t,e,r)=>e in t?cC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zr=(t,e)=>{for(var r in e||(e={}))hC.call(e,r)&&gv(t,r,e[r]);if(pv)for(var r of pv(e))dC.call(e,r)&&gv(t,r,e[r]);return t},$l=(t,e)=>uC(t,fC(e));function q0(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?q0(t[r],e[r]):t[r]=e[r])}const eo={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 cs(t,e){let r=eo.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=eo.themes[r.$extend]||{}:(r=null,o=eo[e]):r=null;while(r);return o}function pC(t){const e=[t];let r=eo.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=eo.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}let us=!1;if(typeof window<"u"){us=!1;try{const t=Object.defineProperty({},"passive",{get(){us=!0}});window.addEventListener("test",null,t)}catch{}}let H0=!1;typeof window<"u"&&typeof navigator<"u"&&(H0=/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`]),[]),vv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},mv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function gC(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function rf(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const br=[];let Ho=null,Hf=function(){};typeof window<"u"&&(Hf=window.Element);function de(t){return function(e){return cs(e.theme,t)}}var W0=()=>ie({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:de("disabled")},placement:{type:String,default:de("placement"),validator:t=>B0.includes(t)},delay:{type:[String,Number,Object],default:de("delay")},distance:{type:[Number,String],default:de("distance")},skidding:{type:[Number,String],default:de("skidding")},triggers:{type:Array,default:de("triggers")},showTriggers:{type:[Array,Function],default:de("showTriggers")},hideTriggers:{type:[Array,Function],default:de("hideTriggers")},popperTriggers:{type:Array,default:de("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:de("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:de("popperHideTriggers")},container:{type:[String,Object,Hf,Boolean],default:de("container")},boundary:{type:[String,Hf],default:de("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:de("strategy")},autoHide:{type:Boolean,default:de("autoHide")},handleResize:{type:Boolean,default:de("handleResize")},instantMove:{type:Boolean,default:de("instantMove")},eagerMount:{type:Boolean,default:de("eagerMount")},popperClass:{type:[String,Array,Object],default:de("popperClass")},computeTransformOrigin:{type:Boolean,default:de("computeTransformOrigin")},autoMinSize:{type:Boolean,default:de("autoMinSize")},autoMaxSize:{type:Boolean,default:de("autoMaxSize")},preventOverflow:{type:Boolean,default:de("preventOverflow")},overflowPadding:{type:[Number,String],default:de("overflowPadding")},arrowPadding:{type:[Number,String],default:de("arrowPadding")},arrowOverflow:{type:Boolean,default:de("arrowOverflow")},flip:{type:Boolean,default:de("flip")},shift:{type:Boolean,default:de("shift")},shiftCrossAxis:{type:Boolean,default:de("shiftCrossAxis")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null}}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:$l(zr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:zr({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(jk({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?e.middleware.push(Hk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Gk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&e.middleware.push(Wk({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push($k({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:u,middlewareData:f})=>{let h;const{centerOffset:d}=f.arrow;return s.startsWith("top")||s.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:s,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=s.reference.width:g=s.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(Kk({boundary:this.boundary,padding:this.overflowPadding,apply:({width:s,height:u})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await aC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:zr(zr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,e=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ho&&this.instantMove&&Ho.instantMove){Ho.$_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&&(Ho=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 rf(),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(),s=e.x+e.width/2-(o.left+r.offsetLeft),u=e.y+e.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}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<br.length;r++)e=br[r],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}br.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await rf(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,gC(br,this),Ho===this&&(Ho=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=cs(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 rf(),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=(s,u,f)=>{this.$_events.push({targetNodes:s,eventType:u,handler:f}),s.forEach(h=>h.addEventListener(u,f,us?{passive:!0}:void 0))},e=(s,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(s,b,d)})},r=s=>{this.isShown&&!this.$_hideInProgress||(s.usedByTooltip=!0,!this.$_preventShow&&this.show({event:s}))};e(this.$_targetNodes,vv,this.triggers,this.showTriggers,r),e([this.$_popperNode],vv,this.popperTriggers,this.popperShowTriggers,r);const o=s=>{s.usedByTooltip||this.hide({event:s})};e(this.$_targetNodes,mv,this.triggers,this.hideTriggers,o),e([this.$_popperNode],mv,this.popperTriggers,this.popperHideTriggers,o),t([...ac(this.$_referenceNode),...ac(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"&&(H0?(document.addEventListener("touchstart",yv,us?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",mC,us?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",yv,!0),window.addEventListener("click",vC,!0)),window.addEventListener("resize",yC));function yv(t){for(let e=0;e<br.length;e++){const r=br[e],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function vC(t){U0(t)}function mC(t){U0(t,!0)}function U0(t,e=!1){for(let r=0;r<br.length;r++){const o=br[r],s=o.popperNode(),u=o.$_mouseDownContains||s.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,e)})}}function yC(t){for(let e=0;e<br.length;e++)br[e].$_computePosition(t)}function bC(){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 s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}let Ba;function Bf(){Bf.init||(Bf.init=!0,Ba=bC()!==-1)}var Bc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bf(),Br(()=>{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",Ba&&this.$el.appendChild(t),t.data="about:blank",Ba||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&&(!Ba&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wC=W1();Xm("data-v-b329ee4c");const xC={class:"resize-observer",tabindex:"-1"};Ym();const _C=wC((t,e,r,o,s,u)=>(st(),te("div",xC)));Bc.render=_C;Bc.__scopeId="data-v-b329ee4c";Bc.__file="src/components/ResizeObserver.vue";var j0={computed:{themeClass(){return pC(this.theme)}}},Ih=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r};const SC=ie({name:"VPopperContent",components:{ResizeObserver:Bc},mixins:[j0],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}}}),kC=["id","aria-hidden","tabindex","data-popper-placement"],CC={ref:"inner",class:"v-popper__inner"},TC=tt("div",{class:"v-popper__arrow-outer"},null,-1),EC=tt("div",{class:"v-popper__arrow-inner"},null,-1),LC=[TC,EC];function AC(t,e,r,o,s,u){const f=io("ResizeObserver");return st(),kt("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:An({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]=Of(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[tt("div",{class:"v-popper__wrapper",style:An({transformOrigin:t.result.transformOrigin})},[tt("div",CC,[t.mounted?(st(),kt(ne,{key:0},[tt("div",null,[sr(t.$slots,"default")]),t.handleResize?(st(),te(f,{key:0,onNotify:e[0]||(e[0]=h=>t.$emit("resize",h))})):Vt("",!0)],64)):Vt("",!0)],512),tt("div",{ref:"arrow",class:"v-popper__arrow-container",style:An({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},LC,4)],4)],46,kC)}var V0=Ih(SC,[["render",AC]]),G0={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 MC=ie({name:"VPopperWrapper",components:{Popper:W0(),PopperContent:V0},mixins:[G0,j0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=zr({},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 NC(t,e,r,o,s,u){const f=io("PopperContent"),h=io("Popper");return st(),te(h,Ci({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:ee(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,show:S,hide:P,handleResize:A,onResize:L,classes:T,result:M})=>[tt("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:An(t.$attrs.style)},[sr(t.$slots,"default",{shown:g,show:S,hide:P}),Ft(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":A,classes:T,result:M,onHide:P,onResize:L},{default:ee(()=>[sr(t.$slots,"popper",{shown:g,hide:P})]),_: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 Fh=Ih(MC,[["render",NC]]);const bv=ie($l(zr({},Fh),{name:"VDropdown",vPopperTheme:"dropdown"})),wv=ie($l(zr({},Fh),{name:"VMenu",vPopperTheme:"menu"})),Wf=ie($l(zr({},Fh),{name:"VTooltip",vPopperTheme:"tooltip"})),PC=ie({name:"VTooltipDirective",components:{Popper:W0(),PopperContent:V0},mixins:[G0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>cs(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>cs(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}}}),OC=["innerHTML"],DC=["textContent"];function $C(t,e,r,o,s,u){const f=io("PopperContent"),h=io("Popper");return st(),te(h,Ci({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:ee(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,hide:S,handleResize:P,onResize:A,classes:L,result:T})=>[Ft(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":P,classes:L,result:T,onHide:S,onResize:A},{default:ee(()=>[t.html?(st(),kt("div",{key:0,innerHTML:t.finalContent},null,8,OC)):(st(),kt("div",{key:1,textContent:Ut(t.finalContent)},null,8,DC))]),_: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 RC=Ih(PC,[["render",$C]]);const K0="v-popper--has-tooltip";function zC(t,e){let r=t.placement;if(!r&&e)for(const o of B0)e[o]&&(r=o);return r||(r=cs(t.theme||"tooltip","placement")),r}function X0(t,e,r){let o;const s=typeof e;return s==="string"?o={content:e}:e&&s==="object"?o=e:o={content:!1},o.placement=zC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let of,_l,IC=0;function FC(){if(of)return;_l=Zt([]),of=_0({name:"VTooltipDirectiveApp",setup(){return{directives:_l}},render(){return this.directives.map(e=>Ol(RC,$l(zr({},e.options),{shown:e.shown.value||e.options.shown,key:e.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),of.mount(t)}function Y0(t,e,r){FC();const o=Zt(X0(t,e,r)),s=Zt(!1),u={id:IC++,options:o,shown:s};return _l.value.push(u),t.classList&&t.classList.add(K0),t.$_popper={options:o,item:u,show(){s.value=!0},hide(){s.value=!1}}}function qh(t){if(t.$_popper){const e=_l.value.indexOf(t.$_popper.item);e!==-1&&_l.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(K0)}function xv(t,{value:e,oldValue:r,modifiers:o}){const s=X0(t,e,o);if(!s.content||cs(s.theme||"tooltip","disabled"))qh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=s):u=Y0(t,e,o),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?u.show():u.hide())}}var Z0={beforeMount:xv,updated:xv,beforeUnmount(t){qh(t)}};function _v(t){t.addEventListener("click",Q0),t.addEventListener("touchstart",J0,us?{passive:!0}:!1)}function Sv(t){t.removeEventListener("click",Q0),t.removeEventListener("touchstart",J0),t.removeEventListener("touchend",ty),t.removeEventListener("touchcancel",ey)}function Q0(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function J0(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",ty),e.addEventListener("touchcancel",ey)}}function ty(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 ey(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}var qC={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&_v(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?_v(t):Sv(t))},beforeUnmount(t){Sv(t)}};const HC=Z0,BC=Wf;function WC(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,q0(eo,e),t.directive("tooltip",Z0),t.directive("close-popper",qC),t.component("v-tooltip",Wf),t.component("VTooltip",Wf),t.component("v-dropdown",bv),t.component("VDropdown",bv),t.component("v-menu",wv),t.component("VMenu",wv))}const ny={version:"2.0.0-y.0",install:WC,options:eo},UC=6e4;function ry(t){return t}const jC=ry,{clearTimeout:VC,setTimeout:GC}=globalThis,KC=Math.random.bind(Math);function XC(t,e){const{post:r,on:o,eventNames:s=[],serialize:u=ry,deserialize:f=jC,resolver:h,timeout:d=UC}=e,g=new Map;let v;const b=new Proxy({},{get(w,S){if(S==="$functions")return t;const P=(...L)=>{r(u({m:S,a:L,t:"q"}))};if(s.includes(S))return P.asEvent=P,P;const A=async(...L)=>(await v,new Promise((T,M)=>{var B,K;const R=ZC();let E;d>=0&&(E=(K=(B=GC(()=>{M(new Error(`[birpc] timeout on calling "${S}"`)),g.delete(R)},d)).unref)==null?void 0:K.call(B)),g.set(R,{resolve:T,reject:M,timeoutId:E}),r(u({m:S,a:L,i:R,t:"q"}))}));return A.asEvent=P,A}});return v=o(async(w,...S)=>{const P=f(w);if(P.t==="q"){const{m:A,a:L}=P;let T,M;const R=h?h(A,t[A]):t[A];if(!R)M=new Error(`[birpc] function "${A}" not found`);else try{T=await R.apply(b,L)}catch(E){M=E}P.i&&(M&&e.onError&&e.onError(M,A,L),r(u({t:"s",i:P.i,r:T,e:M}),...S))}else{const{i:A,r:L,e:T}=P,M=g.get(A);M&&(VC(M.timeoutId),T?M.reject(T):M.resolve(L)),g.delete(A)}}),b}const YC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ZC(t=21){let e="",r=t;for(;r--;)e+=YC[KC()*64|0];return e}/*! (c) 2020 Andrea Giammarchi */const{parse:QC,stringify:JC}=JSON,{keys:tT}=Object,Sl=String,iy="string",kv={},cc="object",oy=(t,e)=>e,eT=t=>t instanceof Sl?Sl(t):t,nT=(t,e)=>typeof e===iy?new Sl(e):e,sy=(t,e,r,o)=>{const s=[];for(let u=tT(r),{length:f}=u,h=0;h<f;h++){const d=u[h],g=r[d];if(g instanceof Sl){const v=t[g];typeof v===cc&&!e.has(v)?(e.add(v),r[d]=kv,s.push({k:d,a:[t,e,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==kv&&(r[d]=o.call(r,d,g))}for(let{length:u}=s,f=0;f<u;f++){const{k:h,a:d}=s[f];r[h]=o.call(r,h,sy.apply(null,d))}return r},Cv=(t,e,r)=>{const o=Sl(e.push(r)-1);return t.set(r,o),o},Uf=(t,e)=>{const r=QC(t,nT).map(eT),o=r[0],s=e||oy,u=typeof o===cc&&o?sy(r,new Set,o,s):o;return s.call({"":u},"",u)},rT=(t,e,r)=>{const o=e&&typeof e===cc?(v,b)=>v===""||-1<e.indexOf(v)?b:void 0:e||oy,s=new Map,u=[],f=[];let h=+Cv(s,u,o.call({"":t},"",t)),d=!h;for(;h<u.length;)d=!0,f[h]=JC(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 cc:if(w===null)return w;case iy:return s.get(w)||Cv(s,u,w)}return w}};function iT(t=""){return!t||!t.includes("\\")?t:t.replace(/\\/g,"/")}const oT=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function sT(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const Tv=function(...t){t=t.map(o=>iT(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:sT();!s||s.length===0||(e=`${s}/${e}`,r=Ev(s))}return e=lT(e,!r),r&&!Ev(e)?`/${e}`:e.length>0?e:"."};function lT(t,e){let r="",o=0,s=-1,u=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===h-1||u===1))if(u===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,u=0;continue}else if(r.length>0){r="",o=0,s=h,u=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const Ev=function(t){return oT.test(t)},aT=function(t,e){const r=Tv(t).split("/"),o=Tv(e).split("/"),s=[...r];for(const u of s){if(o[0]!==u)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function cT(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class ly{constructor(){ci(this,"filesMap",new Map);ci(this,"pathsSet",new Set);ci(this,"browserTestPromises",new Map);ci(this,"idMap",new Map);ci(this,"taskFileMap",new WeakMap);ci(this,"errorsSet",new Set);ci(this,"processTimeoutCauses",new Set)}catchError(e,r){if(cT(e))return e.errors.forEach(s=>this.catchError(s,r));e===Object(e)?e.type=r:e={type:r,message:e};const o=e;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const s=this.idMap.get(o.taskId);s&&(s.mode="skip",s.result??(s.result={state:"skip"}),s.result.state="skip");return}this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(e){this.processTimeoutCauses.add(e)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(e){return e?e.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).map(e=>e.filepath)}collectPaths(e=[]){e.forEach(r=>{this.pathsSet.add(r)})}collectFiles(e=[]){e.forEach(r=>{const s=(this.filesMap.get(r.filepath)||[]).filter(u=>u.projectName!==r.projectName);s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(e,r=[]){const o=e;r.forEach(s=>{const u=this.filesMap.get(s);if(!u)return;const f=u.filter(h=>h.projectName!==o.config.name);f.length?this.filesMap.set(s,f):this.filesMap.delete(s)})}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,s]of e){const u=this.idMap.get(r);u&&(u.result=o,u.meta=s,(o==null?void 0:o.state)==="skip"&&(u.mode="skip"))}}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(e,r,o){this.collectFiles(e.map(s=>({filepath:s,name:aT(r,s),id:s,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:o})))}}var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ay(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cy(t){return t!=null}function uy(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function jf(t){return t.type==="test"||t.type==="custom"}function fy(t){const e=[],r=uy(t);for(const o of r)if(jf(o))e.push(o);else for(const s of o.tasks)jf(s)?e.push(s):e.push(...fy(s));return e}function Hh(t=[]){return uy(t).flatMap(e=>jf(e)?[e]:[e,...Hh(e.tasks)])}function uT(t){const e=[t.name];let r=t;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&e.unshift(r.name);return e}function Wc(t){return fy(t).some(e=>{var r,o;return(o=(r=e.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function fT(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=e;let d=u;const g=f({ws:new h(t),state:new ly,waitForConnection:L,reconnect:P});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(T){var M;g.state.collectPaths(T),(M=r.onPathsCollected)==null||M.call(r,T)},onCollected(T){var M;g.state.collectFiles(T),(M=r.onCollected)==null||M.call(r,T)},onTaskUpdate(T){var M;g.state.updateTasks(T),(M=r.onTaskUpdate)==null||M.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T,M){var R;(R=r.onFinished)==null||R.call(r,T,M)},onCancel(T){var M;(M=r.onCancel)==null||M.call(r,T)}},w={post:T=>g.ws.send(T),on:T=>v=T,serialize:rT,deserialize:Uf};g.rpc=XC(b,w);let S;function P(T=!1){T&&(d=u),g.ws=new h(t),A()}function A(){S=new Promise(T=>{g.ws.addEventListener("open",()=>{d=u,T()})}),g.ws.addEventListener("message",T=>{v(T.data)}),g.ws.addEventListener("close",()=>{d-=1,o&&d>0&&setTimeout(P,s)})}A();function L(){return S}return g}const hT=location.port,dT=[location.hostname,hT].filter(Boolean).join(":"),pT=`${location.protocol==="https:"?"wss:":"ws:"}//${dT}/__vitest_api__`,jr=!!window.METADATA_PATH;var hy={},Hr={};const gT="Á",vT="á",mT="Ă",yT="ă",bT="∾",wT="∿",xT="∾̳",_T="Â",ST="â",kT="´",CT="А",TT="а",ET="Æ",LT="æ",AT="",MT="𝔄",NT="𝔞",PT="À",OT="à",DT="ℵ",$T="ℵ",RT="Α",zT="α",IT="Ā",FT="ā",qT="⨿",HT="&",BT="&",WT="⩕",UT="⩓",jT="∧",VT="⩜",GT="⩘",KT="⩚",XT="∠",YT="⦤",ZT="∠",QT="⦨",JT="⦩",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="Å",EE="å",LE="𝒜",AE="𝒶",ME="≔",NE="*",PE="≈",OE="≍",DE="Ã",$E="ã",RE="Ä",zE="ä",IE="∳",FE="⨑",qE="≌",HE="϶",BE="",WE="∽",UE="⋍",jE="",VE="⫧",GE="⊽",KE="⌅",XE="⌆",YE="⌅",ZE="⎵",QE="⎶",JE="≌",tL="Б",eL="б",nL="„",rL="∵",iL="∵",oL="∵",sL="⦰",lL="϶",aL="",cL="",uL="Β",fL="β",hL="ℶ",dL="≬",pL="𝔅",gL="𝔟",vL="⋂",mL="◯",yL="",bL="⨀",wL="⨁",xL="⨂",_L="⨆",SL="★",kL="▽",CL="△",TL="⨄",EL="",LL="⋀",AL="⤍",ML="⧫",NL="▪",PL="▴",OL="▾",DL="◂",$L="▸",RL="␣",zL="▒",IL="░",FL="▓",qL="█",HL="=⃥",BL="≡⃥",WL="⫭",UL="⌐",jL="𝔹",VL="𝕓",GL="⊥",KL="⊥",XL="⋈",YL="⧉",ZL="┐",QL="╕",JL="╖",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="│",EA="║",LA="┼",AA="╪",MA="╫",NA="╬",PA="┤",OA="╡",DA="╢",$A="╣",RA="├",zA="╞",IA="╟",FA="╠",qA="",HA="˘",BA="˘",WA="¦",UA="𝒷",jA="",VA="⁏",GA="∽",KA="⋍",XA="⧅",YA="\\",ZA="⟈",QA="•",JA="•",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="∰",EM="⩌",LM="⩐",AM="Ċ",MM="ċ",NM="¸",PM="¸",OM="⦲",DM="¢",$M="·",RM="·",zM="𝔠",IM="",FM="Ч",qM="ч",HM="✓",BM="✓",WM="Χ",UM="χ",jM="ˆ",VM="≗",GM="↺",KM="↻",XM="⊛",YM="⊚",ZM="⊝",QM="⊙",JM="®",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="≅",EN="⩭",LN="≡",AN="∮",MN="∯",NN="∮",PN="𝕔",ON="",DN="∐",$N="∐",RN="©",zN="©",IN="℗",FN="∳",qN="↵",HN="✗",BN="",WN="𝒞",UN="𝒸",jN="⫏",VN="⫑",GN="⫐",KN="⫒",XN="⋯",YN="⤸",ZN="⤵",QN="⋞",JN="⋟",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="‡",EP="ℸ",LP="↓",AP="↡",MP="⇓",NP="",PP="⫤",OP="⊣",DP="⤏",$P="˝",RP="Ď",zP="ď",IP="Д",FP="д",qP="‡",HP="⇊",BP="",WP="",UP="⤑",jP="⩷",VP="°",GP="∇",KP="Δ",XP="δ",YP="⦱",ZP="⥿",QP="𝔇",JP="𝔡",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="𝔻",EO="𝕕",LO="¨",AO="˙",MO="⃜",NO="≐",PO="≑",OO="≐",DO="∸",$O="∔",RO="⊡",zO="⌆",IO="∯",FO="¨",qO="⇓",HO="⇐",BO="⇔",WO="⫤",UO="⟸",jO="⟺",VO="⟹",GO="⇒",KO="⊨",XO="⇑",YO="⇕",ZO="∥",QO="⤓",JO="↓",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="⋱",ED="▿",LD="▾",AD="⇵",MD="⥯",ND="⦦",PD="Џ",OD="џ",DD="⟿",$D="É",RD="é",zD="⩮",ID="Ě",FD="ě",qD="Ê",HD="ê",BD="≖",WD="≕",UD="Э",jD="э",VD="⩷",GD="Ė",KD="ė",XD="≑",YD="",ZD="≒",QD="𝔈",JD="𝔢",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$="𝔼",E$="𝕖",L$="⋕",A$="⧣",M$="⩱",N$="ε",P$="Ε",O$="ε",D$="ϵ",$$="≖",R$="≕",z$="≂",I$="⪖",F$="⪕",q$="⩵",H$="=",B$="≂",W$="≟",U$="⇌",j$="≡",V$="⩸",G$="⧥",K$="⥱",X$="≓",Y$="",Z$="",Q$="≐",J$="⩳",tR="≂",eR="Η",nR="η",rR="Ð",iR="ð",oR="Ë",sR="ë",lR="€",aR="!",cR="∃",uR="∃",fR="",hR="",dR="",pR="≒",gR="Ф",vR="ф",mR="♀",yR="ffi",bR="ff",wR="ffl",xR="𝔉",_R="𝔣",SR="fi",kR="◼",CR="▪",TR="fj",ER="♭",LR="fl",AR="▱",MR="ƒ",NR="𝔽",PR="𝕗",OR="∀",DR="∀",$R="⋔",RR="⫙",zR="",IR="⨍",FR="½",qR="⅓",HR="¼",BR="⅕",WR="⅙",UR="⅛",jR="⅔",VR="⅖",GR="¾",KR="⅗",XR="⅜",YR="⅘",ZR="⅚",QR="⅝",JR="⅞",t2="",e2="⌢",n2="𝒻",r2="",i2="ǵ",o2="Γ",s2="γ",l2="Ϝ",a2="ϝ",c2="⪆",u2="Ğ",f2="ğ",h2="Ģ",d2="Ĝ",p2="ĝ",g2="Г",v2="г",m2="Ġ",y2="ġ",b2="≥",w2="≧",x2="⪌",_2="⋛",S2="≥",k2="≧",C2="⩾",T2="⪩",E2="⩾",L2="⪀",A2="⪂",M2="⪄",N2="⋛︀",P2="⪔",O2="𝔊",D2="𝔤",$2="≫",R2="⋙",z2="⋙",I2="ℷ",F2="Ѓ",q2="ѓ",H2="⪥",B2="≷",W2="⪒",U2="⪤",j2="⪊",V2="⪊",G2="⪈",K2="≩",X2="⪈",Y2="≩",Z2="⋧",Q2="𝔾",J2="𝕘",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="≷",Ez="≳",Lz="≩︀",Az="≩︀",Mz="ˇ",Nz="",Pz="½",Oz="",Dz="Ъ",$z="ъ",Rz="⥈",zz="↔",Iz="⇔",Fz="↭",qz="^",Hz="ℏ",Bz="Ĥ",Wz="ĥ",Uz="♥",jz="♥",Vz="…",Gz="⊹",Kz="𝔥",Xz="",Yz="",Zz="⤥",Qz="⤦",Jz="⇿",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="¡",EI="⇔",LI="𝔦",AI="",MI="Ì",NI="ì",PI="",OI="⨌",DI="∭",$I="⧜",RI="℩",zI="IJ",II="ij",FI="Ī",qI="ī",HI="",BI="",WI="",UI="",jI="ı",VI="",GI="⊷",KI="Ƶ",XI="⇒",YI="℅",ZI="∞",QI="⧝",JI="ı",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="⋴",EF="⋳",LF="∈",AF="",MF="Ĩ",NF="ĩ",PF="І",OF="і",DF="Ï",$F="ï",RF="Ĵ",zF="ĵ",IF="Й",FF="й",qF="𝔍",HF="𝔧",BF="ȷ",WF="𝕁",UF="𝕛",jF="𝒥",VF="𝒿",GF="Ј",KF="ј",XF="Є",YF="є",ZF="Κ",QF="κ",JF="ϰ",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="⪅",Eq="",Lq="«",Aq="⇤",Mq="⤟",Nq="←",Pq="↞",Oq="⇐",Dq="⤝",$q="↩",Rq="↫",zq="⤹",Iq="⥳",Fq="↢",qq="⤙",Hq="⤛",Bq="⪫",Wq="⪭",Uq="⪭︀",jq="⤌",Vq="⤎",Gq="",Kq="{",Xq="[",Yq="⦋",Zq="⦏",Qq="⦍",Jq="Ľ",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="⇃",EH="⌊",LH="↽",AH="↼",MH="⇇",NH="↔",PH="↔",OH="⇔",DH="⇆",$H="⇋",RH="↭",zH="⥎",IH="↤",FH="⊣",qH="⥚",HH="⋋",BH="⧏",WH="⊲",UH="⊴",jH="⥑",VH="⥠",GH="⥘",KH="↿",XH="⥒",YH="↼",ZH="⪋",QH="⋚",JH="≤",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="⪑",EB="⥢",LB="↽",AB="↼",MB="⥪",NB="▄",PB="Љ",OB="љ",DB="⇇",$B="≪",RB="⋘",zB="⌞",IB="⇚",FB="⥫",qB="◺",HB="Ŀ",BB="ŀ",WB="⎰",UB="⎰",jB="⪉",VB="⪉",GB="⪇",KB="≨",XB="⪇",YB="≨",ZB="⋦",QB="⟬",JB="⇽",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="⦓",E3="⇆",L3="⌟",A3="⇋",M3="⥭",N3="",P3="⊿",O3="",D3="𝓁",$3="",R3="↰",z3="↰",I3="≲",F3="⪍",q3="⪏",H3="[",B3="",W3="",U3="Ł",j3="ł",V3="⪦",G3="⩹",K3="<",X3="<",Y3="≪",Z3="⋖",Q3="⋋",J3="⋉",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="",E5="",L5="𝔐",A5="𝔪",M5="℧",N5="µ",P5="*",O5="⫰",D5="",$5="·",R5="⊟",z5="",I5="∸",F5="⨪",q5="∓",H5="⫛",B5="…",W5="∓",U5="⊧",j5="𝕄",V5="𝕞",G5="∓",K5="𝓂",X5="",Y5="∾",Z5="Μ",Q5="μ",J5="⊸",t8="⊸",e8="∇",n8="Ń",r8="ń",i8="∠⃒",o8="≉",s8="⩰̸",l8="≋̸",a8="ʼn",c8="≉",u8="♮",f8="",h8="♮",d8=" ",p8="≎̸",g8="≏̸",v8="⩃",m8="Ň",y8="ň",b8="Ņ",w8="ņ",x8="≇",_8="⩭̸",S8="⩂",k8="Н",C8="н",T8="",E8="⤤",L8="↗",A8="⇗",M8="↗",N8="≠",P8="≐̸",O8="",D8="",$8="",R8="",z8="≢",I8="⤨",F8="≂̸",q8="≫",H8="≪",B8=`
`,W8="∄",U8="∄",j8="𝔑",V8="𝔫",G8="≧̸",K8="≱",X8="≱",Y8="≧̸",Z8="⩾̸",Q8="⩾̸",J8="⋙̸",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="⩽̸",EW="≮",LW="⋘̸",AW="≴",MW="≪⃒",NW="≮",PW="⋪",OW="⋬",DW="≪̸",$W="∤",RW="",zW=" ",IW="𝕟",FW="",qW="⫬",HW="¬",BW="≢",WW="≭",UW="∦",jW="∉",VW="≠",GW="≂̸",KW="∄",XW="≯",YW="≱",ZW="≧̸",QW="≫̸",JW="≹",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="⪯̸",EU="⋠",LU="∌",AU="⧐̸",MU="⋫",NU="⋭",PU="⊏̸",OU="⋢",DU="⊐̸",$U="⋣",RU="⊂⃒",zU="⊈",IU="⊁",FU="⪰̸",qU="⋡",HU="≿̸",BU="⊃⃒",WU="⊉",UU="≁",jU="≄",VU="≇",GU="≉",KU="∤",XU="∦",YU="∦",ZU="⫽⃥",QU="∂̸",JU="⨔",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="⋣",E4="⊄",L4="⫅̸",A4="⊈",M4="⊂⃒",N4="⊈",P4="⫅̸",O4="⊁",D4="⪰̸",$4="⊅",R4="⫆̸",z4="⊉",I4="⊃⃒",F4="⊉",q4="⫆̸",H4="≹",B4="Ñ",W4="ñ",U4="≸",j4="⋪",V4="⋬",G4="⋫",K4="⋭",X4="Ν",Y4="ν",Z4="#",Q4="№",J4="",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="⊚",E6="О",L6="о",A6="⊝",M6="Ő",N6="ő",P6="⨸",O6="⊙",D6="⦼",$6="Œ",R6="œ",z6="⦿",I6="𝔒",F6="𝔬",q6="˛",H6="Ò",B6="ò",W6="⧁",U6="⦵",j6="Ω",V6="∮",G6="↺",K6="⦾",X6="⦻",Y6="‾",Z6="⧀",Q6="Ō",J6="ō",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="𝒪",Ej="",Lj="Ø",Aj="ø",Mj="⊘",Nj="Õ",Pj="õ",Oj="⨶",Dj="⨷",$j="⊗",Rj="Ö",zj="ö",Ij="⌽",Fj="‾",qj="⏞",Hj="⎴",Bj="⏜",Wj="¶",Uj="∥",jj="∥",Vj="⫳",Gj="⫽",Kj="∂",Xj="∂",Yj="П",Zj="п",Qj="%",Jj=".",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="⨦",E9="⨧",L9="±",A9="",M9="⨕",N9="𝕡",P9="",O9="£",D9="⪷",$9="⪻",R9="≺",z9="≼",I9="⪷",F9="≺",q9="≼",H9="≺",B9="⪯",W9="≼",U9="≾",j9="⪯",V9="⪹",G9="⪵",K9="⋨",X9="⪯",Y9="⪳",Z9="≾",Q9="",J9="″",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="𝒬",EV="𝓆",LV="",AV="⨖",MV="?",NV="≟",PV='"',OV='"',DV="⇛",$V="∽̱",RV="Ŕ",zV="ŕ",IV="√",FV="⦳",qV="⟩",HV="⟫",BV="⦒",WV="⦥",UV="⟩",jV="»",VV="⥵",GV="⇥",KV="⤠",XV="⤳",YV="→",ZV="↠",QV="⇒",JV="⤞",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="Р",EG="р",LG="⤷",AG="⥩",MG="”",NG="”",PG="↳",OG="",DG="",$G="",RG="",zG="",IG="▭",FG="®",qG="®",HG="∋",BG="⇋",WG="⥯",UG="⥽",jG="⌋",VG="𝔯",GG="",KG="⥤",XG="⇁",YG="⇀",ZG="⥬",QG="Ρ",JG="ρ",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="⊵",E7="⥏",L7="⥜",A7="⥔",M7="↾",N7="⥓",P7="⇀",O7="˚",D7="≓",$7="⇄",R7="⇌",z7="",I7="⎱",F7="⎱",q7="⫮",H7="⟭",B7="⇾",W7="⟧",U7="⦆",j7="𝕣",V7="",G7="⨮",K7="⨵",X7="⥰",Y7=")",Z7="⦔",Q7="⨒",J7="⇉",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="≽",EK="⪰",LK="⪴",AK="Ş",MK="ş",NK="Ŝ",PK="ŝ",OK="⪺",DK="⪶",$K="⋩",RK="⨓",zK="≿",IK="С",FK="с",qK="⊡",HK="⋅",BK="⩦",WK="⤥",UK="↘",jK="⇘",VK="↘",GK="§",KK=";",XK="⤩",YK="",ZK="",QK="✶",JK="𝔖",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="≆",EX="⨤",LX="⥲",AX="←",MX="∘",NX="",PX="⨳",OX="⧤",DX="",$X="⌣",RX="⪪",zX="⪬",IX="⪬︀",FX="Ь",qX="ь",HX="⌿",BX="⧄",WX="/",UX="𝕊",jX="𝕤",VX="♠",GX="♠",KX="∥",XX="⊓",YX="⊓︀",ZX="⊔",QX="⊔︀",JX="√",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="☆",EY="★",LY="ϵ",AY="ϕ",MY="¯",NY="⊂",PY="⋐",OY="⪽",DY="⫅",$Y="⊆",RY="⫃",zY="⫁",IY="⫋",FY="⊊",qY="⪿",HY="⥹",BY="⊂",WY="⋐",UY="⊆",jY="⫅",VY="⊆",GY="⊊",KY="⫋",XY="⫇",YY="⫕",ZY="⫓",QY="⪸",JY="≻",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="⟉",EZ="⫗",LZ="⥻",AZ="⫂",MZ="⫌",NZ="⊋",PZ="⫀",OZ="⊃",DZ="⋑",$Z="⊇",RZ="⫆",zZ="⊋",IZ="⫌",FZ="⫈",qZ="⫔",HZ="⫖",BZ="⤦",WZ="↙",UZ="⇙",jZ="↙",VZ="⤪",GZ="ß",KZ=" ",XZ="⌖",YZ="Τ",ZZ="τ",QZ="⎴",JZ="Ť",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="",EQ="≃",LQ="≅",AQ="≈",MQ="⨱",NQ="⊠",PQ="×",OQ="⨰",DQ="∭",$Q="⤨",RQ="⌶",zQ="⫱",IQ="",FQ="𝕋",qQ="𝕥",HQ="⫚",BQ="⤩",WQ="‴",UQ="™",jQ="™",VQ="▵",GQ="▿",KQ="◃",XQ="⊴",YQ="≜",ZQ="▹",QQ="⊵",JQ="◬",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="Ŭ",EJ="ŭ",LJ="Û",AJ="û",MJ="У",NJ="у",PJ="⇅",OJ="Ű",DJ="ű",$J="⥮",RJ="⥾",zJ="𝔘",IJ="𝔲",FJ="Ù",qJ="ù",HJ="⥣",BJ="↿",WJ="↾",UJ="▀",jJ="⌜",VJ="⌜",GJ="⌏",KJ="◸",XJ="Ū",YJ="ū",ZJ="¨",QJ="_",JJ="⏟",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="υ",Ett="↥",Ltt="⊥",Att="⇈",Mtt="⌝",Ntt="⌝",Ptt="⌎",Ott="Ů",Dtt="ů",$tt="◹",Rtt="𝒰",ztt="𝓊",Itt="⋰",Ftt="Ũ",qtt="ũ",Htt="▵",Btt="▴",Wtt="⇈",Utt="Ü",jtt="ü",Vtt="⦧",Gtt="⦜",Ktt="ϵ",Xtt="ϰ",Ytt="∅",Ztt="ϕ",Qtt="ϖ",Jtt="∝",tet="↕",eet="⇕",net="ϱ",ret="ς",iet="⊊︀",oet="⫋︀",set="⊋︀",aet="⫌︀",cet="ϑ",uet="⊲",fet="⊳",het="⫨",det="⫫",pet="⫩",get="В",vet="в",met="⊢",yet="⊨",bet="⊩",wet="⊫",xet="⫦",_et="⊻",ket="",Cet="",Tet="≚",Eet="⋮",Let="|",Aet="‖",Met="|",Net="‖",Pet="",Oet="|",Det="❘",$et="≀",Ret="",zet="𝔙",Iet="𝔳",Fet="⊲",qet="⊂⃒",Het="⊃⃒",Bet="𝕍",Wet="𝕧",Uet="∝",jet="⊳",Vet="𝒱",Get="𝓋",Ket="⫋︀",Xet="⊊︀",Yet="⫌︀",Zet="⊋︀",Qet="⊪",Jet="⦚",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="⟵",Ent="⟸",Lnt="⟼",Ant="⋻",Mnt="⨀",Nnt="𝕏",Pnt="𝕩",Ont="⨁",Dnt="⨂",$nt="⟶",Rnt="⟹",znt="𝒳",Int="𝓍",Fnt="⨆",qnt="⨄",Hnt="△",Bnt="",Wnt="⋀",Unt="Ý",jnt="ý",Vnt="Я",Gnt="я",Knt="Ŷ",Xnt="ŷ",Ynt="Ы",Znt="ы",Qnt="¥",Jnt="𝔜",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="ж",Ert="⇝",Lrt="𝕫",Art="",Mrt="𝒵",Nrt="𝓏",Prt="",Ort="",dy={Aacute:gT,aacute:vT,Abreve:mT,abreve:yT,ac:bT,acd:wT,acE:xT,Acirc:_T,acirc:ST,acute:kT,Acy:CT,acy:TT,AElig:ET,aelig:LT,af:AT,Afr:MT,afr:NT,Agrave:PT,agrave:OT,alefsym:DT,aleph:$T,Alpha:RT,alpha:zT,Amacr:IT,amacr:FT,amalg:qT,amp:HT,AMP:BT,andand:WT,And:UT,and:jT,andd:VT,andslope:GT,andv:KT,ang:XT,ange:YT,angle:ZT,angmsdaa:QT,angmsdab:JT,angmsdac:tE,angmsdad:eE,angmsdae:nE,angmsdaf:rE,angmsdag:iE,angmsdah:oE,angmsd:sE,angrt:lE,angrtvb:aE,angrtvbd:cE,angsph:uE,angst:fE,angzarr:hE,Aogon:dE,aogon:pE,Aopf:gE,aopf:vE,apacir:mE,ap:yE,apE:bE,ape:wE,apid:xE,apos:_E,ApplyFunction:SE,approx:kE,approxeq:CE,Aring:TE,aring:EE,Ascr:LE,ascr:AE,Assign:ME,ast:NE,asymp:PE,asympeq:OE,Atilde:DE,atilde:$E,Auml:RE,auml:zE,awconint:IE,awint:FE,backcong:qE,backepsilon:HE,backprime:BE,backsim:WE,backsimeq:UE,Backslash:jE,Barv:VE,barvee:GE,barwed:KE,Barwed:XE,barwedge:YE,bbrk:ZE,bbrktbrk:QE,bcong:JE,Bcy:tL,bcy:eL,bdquo:nL,becaus:rL,because:iL,Because:oL,bemptyv:sL,bepsi:lL,bernou:aL,Bernoullis:cL,Beta:uL,beta:fL,beth:hL,between:dL,Bfr:pL,bfr:gL,bigcap:vL,bigcirc:mL,bigcup:yL,bigodot:bL,bigoplus:wL,bigotimes:xL,bigsqcup:_L,bigstar:SL,bigtriangledown:kL,bigtriangleup:CL,biguplus:TL,bigvee:EL,bigwedge:LL,bkarow:AL,blacklozenge:ML,blacksquare:NL,blacktriangle:PL,blacktriangledown:OL,blacktriangleleft:DL,blacktriangleright:$L,blank:RL,blk12:zL,blk14:IL,blk34:FL,block:qL,bne:HL,bnequiv:BL,bNot:WL,bnot:UL,Bopf:jL,bopf:VL,bot:GL,bottom:KL,bowtie:XL,boxbox:YL,boxdl:ZL,boxdL:QL,boxDl:JL,boxDL:tA,boxdr:eA,boxdR:nA,boxDr:rA,boxDR:iA,boxh:oA,boxH:sA,boxhd:lA,boxHd:aA,boxhD:cA,boxHD:uA,boxhu:fA,boxHu:hA,boxhU:dA,boxHU:pA,boxminus:gA,boxplus:vA,boxtimes:mA,boxul:yA,boxuL:bA,boxUl:wA,boxUL:xA,boxur:_A,boxuR:SA,boxUr:kA,boxUR:CA,boxv:TA,boxV:EA,boxvh:LA,boxvH:AA,boxVh:MA,boxVH:NA,boxvl:PA,boxvL:OA,boxVl:DA,boxVL:$A,boxvr:RA,boxvR:zA,boxVr:IA,boxVR:FA,bprime:qA,breve:HA,Breve:BA,brvbar:WA,bscr:UA,Bscr:jA,bsemi:VA,bsim:GA,bsime:KA,bsolb:XA,bsol:YA,bsolhsub:ZA,bull:QA,bullet:JA,bump:tM,bumpE:eM,bumpe:nM,Bumpeq:rM,bumpeq:iM,Cacute:oM,cacute:sM,capand:lM,capbrcup:aM,capcap:cM,cap:uM,Cap:fM,capcup:hM,capdot:dM,CapitalDifferentialD:pM,caps:gM,caret:vM,caron:mM,Cayleys:yM,ccaps:bM,Ccaron:wM,ccaron:xM,Ccedil:_M,ccedil:SM,Ccirc:kM,ccirc:CM,Cconint:TM,ccups:EM,ccupssm:LM,Cdot:AM,cdot:MM,cedil:NM,Cedilla:PM,cemptyv:OM,cent:DM,centerdot:$M,CenterDot:RM,cfr:zM,Cfr:IM,CHcy:FM,chcy:qM,check:HM,checkmark:BM,Chi:WM,chi:UM,circ:jM,circeq:VM,circlearrowleft:GM,circlearrowright:KM,circledast:XM,circledcirc:YM,circleddash:ZM,CircleDot:QM,circledR:JM,circledS:tN,CircleMinus:eN,CirclePlus:nN,CircleTimes:rN,cir:iN,cirE:oN,cire:sN,cirfnint:lN,cirmid:aN,cirscir:cN,ClockwiseContourIntegral:uN,CloseCurlyDoubleQuote:fN,CloseCurlyQuote:hN,clubs:dN,clubsuit:pN,colon:gN,Colon:vN,Colone:mN,colone:yN,coloneq:bN,comma:wN,commat:xN,comp:_N,compfn:SN,complement:kN,complexes:CN,cong:TN,congdot:EN,Congruent:LN,conint:AN,Conint:MN,ContourIntegral:NN,copf:PN,Copf:ON,coprod:DN,Coproduct:$N,copy:RN,COPY:zN,copysr:IN,CounterClockwiseContourIntegral:FN,crarr:qN,cross:HN,Cross:BN,Cscr:WN,cscr:UN,csub:jN,csube:VN,csup:GN,csupe:KN,ctdot:XN,cudarrl:YN,cudarrr:ZN,cuepr:QN,cuesc:JN,cularr:tP,cularrp:eP,cupbrcap:nP,cupcap:rP,CupCap:iP,cup:oP,Cup:sP,cupcup:lP,cupdot:aP,cupor:cP,cups:uP,curarr:fP,curarrm:hP,curlyeqprec:dP,curlyeqsucc:pP,curlyvee:gP,curlywedge:vP,curren:mP,curvearrowleft:yP,curvearrowright:bP,cuvee:wP,cuwed:xP,cwconint:_P,cwint:SP,cylcty:kP,dagger:CP,Dagger:TP,daleth:EP,darr:LP,Darr:AP,dArr:MP,dash:NP,Dashv:PP,dashv:OP,dbkarow:DP,dblac:$P,Dcaron:RP,dcaron:zP,Dcy:IP,dcy:FP,ddagger:qP,ddarr:HP,DD:BP,dd:WP,DDotrahd:UP,ddotseq:jP,deg:VP,Del:GP,Delta:KP,delta:XP,demptyv:YP,dfisht:ZP,Dfr:QP,dfr:JP,dHar:tO,dharl:eO,dharr:nO,DiacriticalAcute:rO,DiacriticalDot:iO,DiacriticalDoubleAcute:oO,DiacriticalGrave:sO,DiacriticalTilde:lO,diam:aO,diamond:cO,Diamond:uO,diamondsuit:fO,diams:hO,die:dO,DifferentialD:pO,digamma:gO,disin:vO,div:mO,divide:yO,divideontimes:bO,divonx:wO,DJcy:xO,djcy:_O,dlcorn:SO,dlcrop:kO,dollar:CO,Dopf:TO,dopf:EO,Dot:LO,dot:AO,DotDot:MO,doteq:NO,doteqdot:PO,DotEqual:OO,dotminus:DO,dotplus:$O,dotsquare:RO,doublebarwedge:zO,DoubleContourIntegral:IO,DoubleDot:FO,DoubleDownArrow:qO,DoubleLeftArrow:HO,DoubleLeftRightArrow:BO,DoubleLeftTee:WO,DoubleLongLeftArrow:UO,DoubleLongLeftRightArrow:jO,DoubleLongRightArrow:VO,DoubleRightArrow:GO,DoubleRightTee:KO,DoubleUpArrow:XO,DoubleUpDownArrow:YO,DoubleVerticalBar:ZO,DownArrowBar:QO,downarrow:JO,DownArrow:tD,Downarrow:eD,DownArrowUpArrow:nD,DownBreve:rD,downdownarrows:iD,downharpoonleft:oD,downharpoonright:sD,DownLeftRightVector:lD,DownLeftTeeVector:aD,DownLeftVectorBar:cD,DownLeftVector:uD,DownRightTeeVector:fD,DownRightVectorBar:hD,DownRightVector:dD,DownTeeArrow:pD,DownTee:gD,drbkarow:vD,drcorn:mD,drcrop:yD,Dscr:bD,dscr:wD,DScy:xD,dscy:_D,dsol:SD,Dstrok:kD,dstrok:CD,dtdot:TD,dtri:ED,dtrif:LD,duarr:AD,duhar:MD,dwangle:ND,DZcy:PD,dzcy:OD,dzigrarr:DD,Eacute:$D,eacute:RD,easter:zD,Ecaron:ID,ecaron:FD,Ecirc:qD,ecirc:HD,ecir:BD,ecolon:WD,Ecy:UD,ecy:jD,eDDot:VD,Edot:GD,edot:KD,eDot:XD,ee:YD,efDot:ZD,Efr:QD,efr:JD,eg:t$,Egrave:e$,egrave:n$,egs:r$,egsdot:i$,el:o$,Element:s$,elinters:l$,ell:a$,els:c$,elsdot:u$,Emacr:f$,emacr:h$,empty:d$,emptyset:p$,EmptySmallSquare:g$,emptyv:v$,EmptyVerySmallSquare:m$,emsp13:y$,emsp14:b$,emsp:w$,ENG:x$,eng:_$,ensp:S$,Eogon:k$,eogon:C$,Eopf:T$,eopf:E$,epar:L$,eparsl:A$,eplus:M$,epsi:N$,Epsilon:P$,epsilon:O$,epsiv:D$,eqcirc:$$,eqcolon:R$,eqsim:z$,eqslantgtr:I$,eqslantless:F$,Equal:q$,equals:H$,EqualTilde:B$,equest:W$,Equilibrium:U$,equiv:j$,equivDD:V$,eqvparsl:G$,erarr:K$,erDot:X$,escr:Y$,Escr:Z$,esdot:Q$,Esim:J$,esim:tR,Eta:eR,eta:nR,ETH:rR,eth:iR,Euml:oR,euml:sR,euro:lR,excl:aR,exist:cR,Exists:uR,expectation:fR,exponentiale:hR,ExponentialE:dR,fallingdotseq:pR,Fcy:gR,fcy:vR,female:mR,ffilig:yR,fflig:bR,ffllig:wR,Ffr:xR,ffr:_R,filig:SR,FilledSmallSquare:kR,FilledVerySmallSquare:CR,fjlig:TR,flat:ER,fllig:LR,fltns:AR,fnof:MR,Fopf:NR,fopf:PR,forall:OR,ForAll:DR,fork:$R,forkv:RR,Fouriertrf:zR,fpartint:IR,frac12:FR,frac13:qR,frac14:HR,frac15:BR,frac16:WR,frac18:UR,frac23:jR,frac25:VR,frac34:GR,frac35:KR,frac38:XR,frac45:YR,frac56:ZR,frac58:QR,frac78:JR,frasl:t2,frown:e2,fscr:n2,Fscr:r2,gacute:i2,Gamma:o2,gamma:s2,Gammad:l2,gammad:a2,gap:c2,Gbreve:u2,gbreve:f2,Gcedil:h2,Gcirc:d2,gcirc:p2,Gcy:g2,gcy:v2,Gdot:m2,gdot:y2,ge:b2,gE:w2,gEl:x2,gel:_2,geq:S2,geqq:k2,geqslant:C2,gescc:T2,ges:E2,gesdot:L2,gesdoto:A2,gesdotol:M2,gesl:N2,gesles:P2,Gfr:O2,gfr:D2,gg:$2,Gg:R2,ggg:z2,gimel:I2,GJcy:F2,gjcy:q2,gla:H2,gl:B2,glE:W2,glj:U2,gnap:j2,gnapprox:V2,gne:G2,gnE:K2,gneq:X2,gneqq:Y2,gnsim:Z2,Gopf:Q2,gopf:J2,grave:tz,GreaterEqual:ez,GreaterEqualLess:nz,GreaterFullEqual:rz,GreaterGreater:iz,GreaterLess:oz,GreaterSlantEqual:sz,GreaterTilde:lz,Gscr:az,gscr:cz,gsim:uz,gsime:fz,gsiml:hz,gtcc:dz,gtcir:pz,gt:gz,GT:vz,Gt:mz,gtdot:yz,gtlPar:bz,gtquest:wz,gtrapprox:xz,gtrarr:_z,gtrdot:Sz,gtreqless:kz,gtreqqless:Cz,gtrless:Tz,gtrsim:Ez,gvertneqq:Lz,gvnE:Az,Hacek:Mz,hairsp:Nz,half:Pz,hamilt:Oz,HARDcy:Dz,hardcy:$z,harrcir:Rz,harr:zz,hArr:Iz,harrw:Fz,Hat:qz,hbar:Hz,Hcirc:Bz,hcirc:Wz,hearts:Uz,heartsuit:jz,hellip:Vz,hercon:Gz,hfr:Kz,Hfr:Xz,HilbertSpace:Yz,hksearow:Zz,hkswarow:Qz,hoarr:Jz,homtht:tI,hookleftarrow:eI,hookrightarrow:nI,hopf:rI,Hopf:iI,horbar:oI,HorizontalLine:sI,hscr:lI,Hscr:aI,hslash:cI,Hstrok:uI,hstrok:fI,HumpDownHump:hI,HumpEqual:dI,hybull:pI,hyphen:gI,Iacute:vI,iacute:mI,ic:yI,Icirc:bI,icirc:wI,Icy:xI,icy:_I,Idot:SI,IEcy:kI,iecy:CI,iexcl:TI,iff:EI,ifr:LI,Ifr:AI,Igrave:MI,igrave:NI,ii:PI,iiiint:OI,iiint:DI,iinfin:$I,iiota:RI,IJlig:zI,ijlig:II,Imacr:FI,imacr:qI,image:HI,ImaginaryI:BI,imagline:WI,imagpart:UI,imath:jI,Im:VI,imof:GI,imped:KI,Implies:XI,incare:YI,in:"∈",infin:ZI,infintie:QI,inodot:JI,intcal:tF,int:eF,Int:nF,integers:rF,Integral:iF,intercal:oF,Intersection:sF,intlarhk:lF,intprod:aF,InvisibleComma:cF,InvisibleTimes:uF,IOcy:fF,iocy:hF,Iogon:dF,iogon:pF,Iopf:gF,iopf:vF,Iota:mF,iota:yF,iprod:bF,iquest:wF,iscr:xF,Iscr:_F,isin:SF,isindot:kF,isinE:CF,isins:TF,isinsv:EF,isinv:LF,it:AF,Itilde:MF,itilde:NF,Iukcy:PF,iukcy:OF,Iuml:DF,iuml:$F,Jcirc:RF,jcirc:zF,Jcy:IF,jcy:FF,Jfr:qF,jfr:HF,jmath:BF,Jopf:WF,jopf:UF,Jscr:jF,jscr:VF,Jsercy:GF,jsercy:KF,Jukcy:XF,jukcy:YF,Kappa:ZF,kappa:QF,kappav:JF,Kcedil:tq,kcedil:eq,Kcy:nq,kcy:rq,Kfr:iq,kfr:oq,kgreen:sq,KHcy:lq,khcy:aq,KJcy:cq,kjcy:uq,Kopf:fq,kopf:hq,Kscr:dq,kscr:pq,lAarr:gq,Lacute:vq,lacute:mq,laemptyv:yq,lagran:bq,Lambda:wq,lambda:xq,lang:_q,Lang:Sq,langd:kq,langle:Cq,lap:Tq,Laplacetrf:Eq,laquo:Lq,larrb:Aq,larrbfs:Mq,larr:Nq,Larr:Pq,lArr:Oq,larrfs:Dq,larrhk:$q,larrlp:Rq,larrpl:zq,larrsim:Iq,larrtl:Fq,latail:qq,lAtail:Hq,lat:Bq,late:Wq,lates:Uq,lbarr:jq,lBarr:Vq,lbbrk:Gq,lbrace:Kq,lbrack:Xq,lbrke:Yq,lbrksld:Zq,lbrkslu:Qq,Lcaron:Jq,lcaron:tH,Lcedil:eH,lcedil:nH,lceil:rH,lcub:iH,Lcy:oH,lcy:sH,ldca:lH,ldquo:aH,ldquor:cH,ldrdhar:uH,ldrushar:fH,ldsh:hH,le:dH,lE:pH,LeftAngleBracket:gH,LeftArrowBar:vH,leftarrow:mH,LeftArrow:yH,Leftarrow:bH,LeftArrowRightArrow:wH,leftarrowtail:xH,LeftCeiling:_H,LeftDoubleBracket:SH,LeftDownTeeVector:kH,LeftDownVectorBar:CH,LeftDownVector:TH,LeftFloor:EH,leftharpoondown:LH,leftharpoonup:AH,leftleftarrows:MH,leftrightarrow:NH,LeftRightArrow:PH,Leftrightarrow:OH,leftrightarrows:DH,leftrightharpoons:$H,leftrightsquigarrow:RH,LeftRightVector:zH,LeftTeeArrow:IH,LeftTee:FH,LeftTeeVector:qH,leftthreetimes:HH,LeftTriangleBar:BH,LeftTriangle:WH,LeftTriangleEqual:UH,LeftUpDownVector:jH,LeftUpTeeVector:VH,LeftUpVectorBar:GH,LeftUpVector:KH,LeftVectorBar:XH,LeftVector:YH,lEg:ZH,leg:QH,leq:JH,leqq:tB,leqslant:eB,lescc:nB,les:rB,lesdot:iB,lesdoto:oB,lesdotor:sB,lesg:lB,lesges:aB,lessapprox:cB,lessdot:uB,lesseqgtr:fB,lesseqqgtr:hB,LessEqualGreater:dB,LessFullEqual:pB,LessGreater:gB,lessgtr:vB,LessLess:mB,lesssim:yB,LessSlantEqual:bB,LessTilde:wB,lfisht:xB,lfloor:_B,Lfr:SB,lfr:kB,lg:CB,lgE:TB,lHar:EB,lhard:LB,lharu:AB,lharul:MB,lhblk:NB,LJcy:PB,ljcy:OB,llarr:DB,ll:$B,Ll:RB,llcorner:zB,Lleftarrow:IB,llhard:FB,lltri:qB,Lmidot:HB,lmidot:BB,lmoustache:WB,lmoust:UB,lnap:jB,lnapprox:VB,lne:GB,lnE:KB,lneq:XB,lneqq:YB,lnsim:ZB,loang:QB,loarr:JB,lobrk:t3,longleftarrow:e3,LongLeftArrow:n3,Longleftarrow:r3,longleftrightarrow:i3,LongLeftRightArrow:o3,Longleftrightarrow:s3,longmapsto:l3,longrightarrow:a3,LongRightArrow:c3,Longrightarrow:u3,looparrowleft:f3,looparrowright:h3,lopar:d3,Lopf:p3,lopf:g3,loplus:v3,lotimes:m3,lowast:y3,lowbar:b3,LowerLeftArrow:w3,LowerRightArrow:x3,loz:_3,lozenge:S3,lozf:k3,lpar:C3,lparlt:T3,lrarr:E3,lrcorner:L3,lrhar:A3,lrhard:M3,lrm:N3,lrtri:P3,lsaquo:O3,lscr:D3,Lscr:$3,lsh:R3,Lsh:z3,lsim:I3,lsime:F3,lsimg:q3,lsqb:H3,lsquo:B3,lsquor:W3,Lstrok:U3,lstrok:j3,ltcc:V3,ltcir:G3,lt:K3,LT:X3,Lt:Y3,ltdot:Z3,lthree:Q3,ltimes:J3,ltlarr:t5,ltquest:e5,ltri:n5,ltrie:r5,ltrif:i5,ltrPar:o5,lurdshar:s5,luruhar:l5,lvertneqq:a5,lvnE:c5,macr:u5,male:f5,malt:h5,maltese:d5,Map:"⤅",map:p5,mapsto:g5,mapstodown:v5,mapstoleft:m5,mapstoup:y5,marker:b5,mcomma:w5,Mcy:x5,mcy:_5,mdash:S5,mDDot:k5,measuredangle:C5,MediumSpace:T5,Mellintrf:E5,Mfr:L5,mfr:A5,mho:M5,micro:N5,midast:P5,midcir:O5,mid:D5,middot:$5,minusb:R5,minus:z5,minusd:I5,minusdu:F5,MinusPlus:q5,mlcp:H5,mldr:B5,mnplus:W5,models:U5,Mopf:j5,mopf:V5,mp:G5,mscr:K5,Mscr:X5,mstpos:Y5,Mu:Z5,mu:Q5,multimap:J5,mumap:t8,nabla:e8,Nacute:n8,nacute:r8,nang:i8,nap:o8,napE:s8,napid:l8,napos:a8,napprox:c8,natural:u8,naturals:f8,natur:h8,nbsp:d8,nbump:p8,nbumpe:g8,ncap:v8,Ncaron:m8,ncaron:y8,Ncedil:b8,ncedil:w8,ncong:x8,ncongdot:_8,ncup:S8,Ncy:k8,ncy:C8,ndash:T8,nearhk:E8,nearr:L8,neArr:A8,nearrow:M8,ne:N8,nedot:P8,NegativeMediumSpace:O8,NegativeThickSpace:D8,NegativeThinSpace:$8,NegativeVeryThinSpace:R8,nequiv:z8,nesear:I8,nesim:F8,NestedGreaterGreater:q8,NestedLessLess:H8,NewLine:B8,nexist:W8,nexists:U8,Nfr:j8,nfr:V8,ngE:G8,nge:K8,ngeq:X8,ngeqq:Y8,ngeqslant:Z8,nges:Q8,nGg:J8,ngsim:tW,nGt:eW,ngt:nW,ngtr:rW,nGtv:iW,nharr:oW,nhArr:sW,nhpar:lW,ni:aW,nis:cW,nisd:uW,niv:fW,NJcy:hW,njcy:dW,nlarr:pW,nlArr:gW,nldr:vW,nlE:mW,nle:yW,nleftarrow:bW,nLeftarrow:wW,nleftrightarrow:xW,nLeftrightarrow:_W,nleq:SW,nleqq:kW,nleqslant:CW,nles:TW,nless:EW,nLl:LW,nlsim:AW,nLt:MW,nlt:NW,nltri:PW,nltrie:OW,nLtv:DW,nmid:$W,NoBreak:RW,NonBreakingSpace:zW,nopf:IW,Nopf:FW,Not:qW,not:HW,NotCongruent:BW,NotCupCap:WW,NotDoubleVerticalBar:UW,NotElement:jW,NotEqual:VW,NotEqualTilde:GW,NotExists:KW,NotGreater:XW,NotGreaterEqual:YW,NotGreaterFullEqual:ZW,NotGreaterGreater:QW,NotGreaterLess:JW,NotGreaterSlantEqual:tU,NotGreaterTilde:eU,NotHumpDownHump:nU,NotHumpEqual:rU,notin:iU,notindot:oU,notinE:sU,notinva:lU,notinvb:aU,notinvc:cU,NotLeftTriangleBar:uU,NotLeftTriangle:fU,NotLeftTriangleEqual:hU,NotLess:dU,NotLessEqual:pU,NotLessGreater:gU,NotLessLess:vU,NotLessSlantEqual:mU,NotLessTilde:yU,NotNestedGreaterGreater:bU,NotNestedLessLess:wU,notni:xU,notniva:_U,notnivb:SU,notnivc:kU,NotPrecedes:CU,NotPrecedesEqual:TU,NotPrecedesSlantEqual:EU,NotReverseElement:LU,NotRightTriangleBar:AU,NotRightTriangle:MU,NotRightTriangleEqual:NU,NotSquareSubset:PU,NotSquareSubsetEqual:OU,NotSquareSuperset:DU,NotSquareSupersetEqual:$U,NotSubset:RU,NotSubsetEqual:zU,NotSucceeds:IU,NotSucceedsEqual:FU,NotSucceedsSlantEqual:qU,NotSucceedsTilde:HU,NotSuperset:BU,NotSupersetEqual:WU,NotTilde:UU,NotTildeEqual:jU,NotTildeFullEqual:VU,NotTildeTilde:GU,NotVerticalBar:KU,nparallel:XU,npar:YU,nparsl:ZU,npart:QU,npolint:JU,npr:t4,nprcue:e4,nprec:n4,npreceq:r4,npre:i4,nrarrc:o4,nrarr:s4,nrArr:l4,nrarrw:a4,nrightarrow:c4,nRightarrow:u4,nrtri:f4,nrtrie:h4,nsc:d4,nsccue:p4,nsce:g4,Nscr:v4,nscr:m4,nshortmid:y4,nshortparallel:b4,nsim:w4,nsime:x4,nsimeq:_4,nsmid:S4,nspar:k4,nsqsube:C4,nsqsupe:T4,nsub:E4,nsubE:L4,nsube:A4,nsubset:M4,nsubseteq:N4,nsubseteqq:P4,nsucc:O4,nsucceq:D4,nsup:$4,nsupE:R4,nsupe:z4,nsupset:I4,nsupseteq:F4,nsupseteqq:q4,ntgl:H4,Ntilde:B4,ntilde:W4,ntlg:U4,ntriangleleft:j4,ntrianglelefteq:V4,ntriangleright:G4,ntrianglerighteq:K4,Nu:X4,nu:Y4,num:Z4,numero:Q4,numsp:J4,nvap:t6,nvdash:e6,nvDash:n6,nVdash:r6,nVDash:i6,nvge:o6,nvgt:s6,nvHarr:l6,nvinfin:a6,nvlArr:c6,nvle:u6,nvlt:f6,nvltrie:h6,nvrArr:d6,nvrtrie:p6,nvsim:g6,nwarhk:v6,nwarr:m6,nwArr:y6,nwarrow:b6,nwnear:w6,Oacute:x6,oacute:_6,oast:S6,Ocirc:k6,ocirc:C6,ocir:T6,Ocy:E6,ocy:L6,odash:A6,Odblac:M6,odblac:N6,odiv:P6,odot:O6,odsold:D6,OElig:$6,oelig:R6,ofcir:z6,Ofr:I6,ofr:F6,ogon:q6,Ograve:H6,ograve:B6,ogt:W6,ohbar:U6,ohm:j6,oint:V6,olarr:G6,olcir:K6,olcross:X6,oline:Y6,olt:Z6,Omacr:Q6,omacr:J6,Omega:tj,omega:ej,Omicron:nj,omicron:rj,omid:ij,ominus:oj,Oopf:sj,oopf:lj,opar:aj,OpenCurlyDoubleQuote:cj,OpenCurlyQuote:uj,operp:fj,oplus:hj,orarr:dj,Or:pj,or:gj,ord:vj,order:mj,orderof:yj,ordf:bj,ordm:wj,origof:xj,oror:_j,orslope:Sj,orv:kj,oS:Cj,Oscr:Tj,oscr:Ej,Oslash:Lj,oslash:Aj,osol:Mj,Otilde:Nj,otilde:Pj,otimesas:Oj,Otimes:Dj,otimes:$j,Ouml:Rj,ouml:zj,ovbar:Ij,OverBar:Fj,OverBrace:qj,OverBracket:Hj,OverParenthesis:Bj,para:Wj,parallel:Uj,par:jj,parsim:Vj,parsl:Gj,part:Kj,PartialD:Xj,Pcy:Yj,pcy:Zj,percnt:Qj,period:Jj,permil:t9,perp:e9,pertenk:n9,Pfr:r9,pfr:i9,Phi:o9,phi:s9,phiv:l9,phmmat:a9,phone:c9,Pi:u9,pi:f9,pitchfork:h9,piv:d9,planck:p9,planckh:g9,plankv:v9,plusacir:m9,plusb:y9,pluscir:b9,plus:w9,plusdo:x9,plusdu:_9,pluse:S9,PlusMinus:k9,plusmn:C9,plussim:T9,plustwo:E9,pm:L9,Poincareplane:A9,pointint:M9,popf:N9,Popf:P9,pound:O9,prap:D9,Pr:$9,pr:R9,prcue:z9,precapprox:I9,prec:F9,preccurlyeq:q9,Precedes:H9,PrecedesEqual:B9,PrecedesSlantEqual:W9,PrecedesTilde:U9,preceq:j9,precnapprox:V9,precneqq:G9,precnsim:K9,pre:X9,prE:Y9,precsim:Z9,prime:Q9,Prime:J9,primes:tV,prnap:eV,prnE:nV,prnsim:rV,prod:iV,Product:oV,profalar:sV,profline:lV,profsurf:aV,prop:cV,Proportional:uV,Proportion:fV,propto:hV,prsim:dV,prurel:pV,Pscr:gV,pscr:vV,Psi:mV,psi:yV,puncsp:bV,Qfr:wV,qfr:xV,qint:_V,qopf:SV,Qopf:kV,qprime:CV,Qscr:TV,qscr:EV,quaternions:LV,quatint:AV,quest:MV,questeq:NV,quot:PV,QUOT:OV,rAarr:DV,race:$V,Racute:RV,racute:zV,radic:IV,raemptyv:FV,rang:qV,Rang:HV,rangd:BV,range:WV,rangle:UV,raquo:jV,rarrap:VV,rarrb:GV,rarrbfs:KV,rarrc:XV,rarr:YV,Rarr:ZV,rArr:QV,rarrfs:JV,rarrhk:tG,rarrlp:eG,rarrpl:nG,rarrsim:rG,Rarrtl:iG,rarrtl:oG,rarrw:sG,ratail:lG,rAtail:aG,ratio:cG,rationals:uG,rbarr:fG,rBarr:hG,RBarr:dG,rbbrk:pG,rbrace:gG,rbrack:vG,rbrke:mG,rbrksld:yG,rbrkslu:bG,Rcaron:wG,rcaron:xG,Rcedil:_G,rcedil:SG,rceil:kG,rcub:CG,Rcy:TG,rcy:EG,rdca:LG,rdldhar:AG,rdquo:MG,rdquor:NG,rdsh:PG,real:OG,realine:DG,realpart:$G,reals:RG,Re:zG,rect:IG,reg:FG,REG:qG,ReverseElement:HG,ReverseEquilibrium:BG,ReverseUpEquilibrium:WG,rfisht:UG,rfloor:jG,rfr:VG,Rfr:GG,rHar:KG,rhard:XG,rharu:YG,rharul:ZG,Rho:QG,rho:JG,rhov:t7,RightAngleBracket:e7,RightArrowBar:n7,rightarrow:r7,RightArrow:i7,Rightarrow:o7,RightArrowLeftArrow:s7,rightarrowtail:l7,RightCeiling:a7,RightDoubleBracket:c7,RightDownTeeVector:u7,RightDownVectorBar:f7,RightDownVector:h7,RightFloor:d7,rightharpoondown:p7,rightharpoonup:g7,rightleftarrows:v7,rightleftharpoons:m7,rightrightarrows:y7,rightsquigarrow:b7,RightTeeArrow:w7,RightTee:x7,RightTeeVector:_7,rightthreetimes:S7,RightTriangleBar:k7,RightTriangle:C7,RightTriangleEqual:T7,RightUpDownVector:E7,RightUpTeeVector:L7,RightUpVectorBar:A7,RightUpVector:M7,RightVectorBar:N7,RightVector:P7,ring:O7,risingdotseq:D7,rlarr:$7,rlhar:R7,rlm:z7,rmoustache:I7,rmoust:F7,rnmid:q7,roang:H7,roarr:B7,robrk:W7,ropar:U7,ropf:j7,Ropf:V7,roplus:G7,rotimes:K7,RoundImplies:X7,rpar:Y7,rpargt:Z7,rppolint:Q7,rrarr:J7,Rrightarrow:tK,rsaquo:eK,rscr:nK,Rscr:rK,rsh:iK,Rsh:oK,rsqb:sK,rsquo:lK,rsquor:aK,rthree:cK,rtimes:uK,rtri:fK,rtrie:hK,rtrif:dK,rtriltri:pK,RuleDelayed:gK,ruluhar:vK,rx:mK,Sacute:yK,sacute:bK,sbquo:wK,scap:xK,Scaron:_K,scaron:SK,Sc:kK,sc:CK,sccue:TK,sce:EK,scE:LK,Scedil:AK,scedil:MK,Scirc:NK,scirc:PK,scnap:OK,scnE:DK,scnsim:$K,scpolint:RK,scsim:zK,Scy:IK,scy:FK,sdotb:qK,sdot:HK,sdote:BK,searhk:WK,searr:UK,seArr:jK,searrow:VK,sect:GK,semi:KK,seswar:XK,setminus:YK,setmn:ZK,sext:QK,Sfr:JK,sfr:tX,sfrown:eX,sharp:nX,SHCHcy:rX,shchcy:iX,SHcy:oX,shcy:sX,ShortDownArrow:lX,ShortLeftArrow:aX,shortmid:cX,shortparallel:uX,ShortRightArrow:fX,ShortUpArrow:hX,shy:dX,Sigma:pX,sigma:gX,sigmaf:vX,sigmav:mX,sim:yX,simdot:bX,sime:wX,simeq:xX,simg:_X,simgE:SX,siml:kX,simlE:CX,simne:TX,simplus:EX,simrarr:LX,slarr:AX,SmallCircle:MX,smallsetminus:NX,smashp:PX,smeparsl:OX,smid:DX,smile:$X,smt:RX,smte:zX,smtes:IX,SOFTcy:FX,softcy:qX,solbar:HX,solb:BX,sol:WX,Sopf:UX,sopf:jX,spades:VX,spadesuit:GX,spar:KX,sqcap:XX,sqcaps:YX,sqcup:ZX,sqcups:QX,Sqrt:JX,sqsub:tY,sqsube:eY,sqsubset:nY,sqsubseteq:rY,sqsup:iY,sqsupe:oY,sqsupset:sY,sqsupseteq:lY,square:aY,Square:cY,SquareIntersection:uY,SquareSubset:fY,SquareSubsetEqual:hY,SquareSuperset:dY,SquareSupersetEqual:pY,SquareUnion:gY,squarf:vY,squ:mY,squf:yY,srarr:bY,Sscr:wY,sscr:xY,ssetmn:_Y,ssmile:SY,sstarf:kY,Star:CY,star:TY,starf:EY,straightepsilon:LY,straightphi:AY,strns:MY,sub:NY,Sub:PY,subdot:OY,subE:DY,sube:$Y,subedot:RY,submult:zY,subnE:IY,subne:FY,subplus:qY,subrarr:HY,subset:BY,Subset:WY,subseteq:UY,subseteqq:jY,SubsetEqual:VY,subsetneq:GY,subsetneqq:KY,subsim:XY,subsub:YY,subsup:ZY,succapprox:QY,succ:JY,succcurlyeq:tZ,Succeeds:eZ,SucceedsEqual:nZ,SucceedsSlantEqual:rZ,SucceedsTilde:iZ,succeq:oZ,succnapprox:sZ,succneqq:lZ,succnsim:aZ,succsim:cZ,SuchThat:uZ,sum:fZ,Sum:hZ,sung:dZ,sup1:pZ,sup2:gZ,sup3:vZ,sup:mZ,Sup:yZ,supdot:bZ,supdsub:wZ,supE:xZ,supe:_Z,supedot:SZ,Superset:kZ,SupersetEqual:CZ,suphsol:TZ,suphsub:EZ,suplarr:LZ,supmult:AZ,supnE:MZ,supne:NZ,supplus:PZ,supset:OZ,Supset:DZ,supseteq:$Z,supseteqq:RZ,supsetneq:zZ,supsetneqq:IZ,supsim:FZ,supsub:qZ,supsup:HZ,swarhk:BZ,swarr:WZ,swArr:UZ,swarrow:jZ,swnwar:VZ,szlig:GZ,Tab:KZ,target:XZ,Tau:YZ,tau:ZZ,tbrk:QZ,Tcaron:JZ,tcaron:tQ,Tcedil:eQ,tcedil:nQ,Tcy:rQ,tcy:iQ,tdot:oQ,telrec:sQ,Tfr:lQ,tfr:aQ,there4:cQ,therefore:uQ,Therefore:fQ,Theta:hQ,theta:dQ,thetasym:pQ,thetav:gQ,thickapprox:vQ,thicksim:mQ,ThickSpace:yQ,ThinSpace:bQ,thinsp:wQ,thkap:xQ,thksim:_Q,THORN:SQ,thorn:kQ,tilde:CQ,Tilde:TQ,TildeEqual:EQ,TildeFullEqual:LQ,TildeTilde:AQ,timesbar:MQ,timesb:NQ,times:PQ,timesd:OQ,tint:DQ,toea:$Q,topbot:RQ,topcir:zQ,top:IQ,Topf:FQ,topf:qQ,topfork:HQ,tosa:BQ,tprime:WQ,trade:UQ,TRADE:jQ,triangle:VQ,triangledown:GQ,triangleleft:KQ,trianglelefteq:XQ,triangleq:YQ,triangleright:ZQ,trianglerighteq:QQ,tridot:JQ,trie:tJ,triminus:eJ,TripleDot:nJ,triplus:rJ,trisb:iJ,tritime:oJ,trpezium:sJ,Tscr:lJ,tscr:aJ,TScy:cJ,tscy:uJ,TSHcy:fJ,tshcy:hJ,Tstrok:dJ,tstrok:pJ,twixt:gJ,twoheadleftarrow:vJ,twoheadrightarrow:mJ,Uacute:yJ,uacute:bJ,uarr:wJ,Uarr:xJ,uArr:_J,Uarrocir:SJ,Ubrcy:kJ,ubrcy:CJ,Ubreve:TJ,ubreve:EJ,Ucirc:LJ,ucirc:AJ,Ucy:MJ,ucy:NJ,udarr:PJ,Udblac:OJ,udblac:DJ,udhar:$J,ufisht:RJ,Ufr:zJ,ufr:IJ,Ugrave:FJ,ugrave:qJ,uHar:HJ,uharl:BJ,uharr:WJ,uhblk:UJ,ulcorn:jJ,ulcorner:VJ,ulcrop:GJ,ultri:KJ,Umacr:XJ,umacr:YJ,uml:ZJ,UnderBar:QJ,UnderBrace:JJ,UnderBracket:ttt,UnderParenthesis:ett,Union:ntt,UnionPlus:rtt,Uogon:itt,uogon:ott,Uopf:stt,uopf:ltt,UpArrowBar:att,uparrow:ctt,UpArrow:utt,Uparrow:ftt,UpArrowDownArrow:htt,updownarrow:dtt,UpDownArrow:ptt,Updownarrow:gtt,UpEquilibrium:vtt,upharpoonleft:mtt,upharpoonright:ytt,uplus:btt,UpperLeftArrow:wtt,UpperRightArrow:xtt,upsi:_tt,Upsi:Stt,upsih:ktt,Upsilon:Ctt,upsilon:Ttt,UpTeeArrow:Ett,UpTee:Ltt,upuparrows:Att,urcorn:Mtt,urcorner:Ntt,urcrop:Ptt,Uring:Ott,uring:Dtt,urtri:$tt,Uscr:Rtt,uscr:ztt,utdot:Itt,Utilde:Ftt,utilde:qtt,utri:Htt,utrif:Btt,uuarr:Wtt,Uuml:Utt,uuml:jtt,uwangle:Vtt,vangrt:Gtt,varepsilon:Ktt,varkappa:Xtt,varnothing:Ytt,varphi:Ztt,varpi:Qtt,varpropto:Jtt,varr:tet,vArr:eet,varrho:net,varsigma:ret,varsubsetneq:iet,varsubsetneqq:oet,varsupsetneq:set,varsupsetneqq:aet,vartheta:cet,vartriangleleft:uet,vartriangleright:fet,vBar:het,Vbar:det,vBarv:pet,Vcy:get,vcy:vet,vdash:met,vDash:yet,Vdash:bet,VDash:wet,Vdashl:xet,veebar:_et,vee:ket,Vee:Cet,veeeq:Tet,vellip:Eet,verbar:Let,Verbar:Aet,vert:Met,Vert:Net,VerticalBar:Pet,VerticalLine:Oet,VerticalSeparator:Det,VerticalTilde:$et,VeryThinSpace:Ret,Vfr:zet,vfr:Iet,vltri:Fet,vnsub:qet,vnsup:Het,Vopf:Bet,vopf:Wet,vprop:Uet,vrtri:jet,Vscr:Vet,vscr:Get,vsubnE:Ket,vsubne:Xet,vsupnE:Yet,vsupne:Zet,Vvdash:Qet,vzigzag:Jet,Wcirc:tnt,wcirc:ent,wedbar:nnt,wedge:rnt,Wedge:int,wedgeq:ont,weierp:snt,Wfr:lnt,wfr:ant,Wopf:cnt,wopf:unt,wp:fnt,wr:hnt,wreath:dnt,Wscr:pnt,wscr:gnt,xcap:vnt,xcirc:mnt,xcup:ynt,xdtri:bnt,Xfr:wnt,xfr:xnt,xharr:_nt,xhArr:Snt,Xi:knt,xi:Cnt,xlarr:Tnt,xlArr:Ent,xmap:Lnt,xnis:Ant,xodot:Mnt,Xopf:Nnt,xopf:Pnt,xoplus:Ont,xotime:Dnt,xrarr:$nt,xrArr:Rnt,Xscr:znt,xscr:Int,xsqcup:Fnt,xuplus:qnt,xutri:Hnt,xvee:Bnt,xwedge:Wnt,Yacute:Unt,yacute:jnt,YAcy:Vnt,yacy:Gnt,Ycirc:Knt,ycirc:Xnt,Ycy:Ynt,ycy:Znt,yen:Qnt,Yfr:Jnt,yfr:trt,YIcy:ert,yicy:nrt,Yopf:rrt,yopf:irt,Yscr:ort,yscr:srt,YUcy:lrt,yucy:art,yuml:crt,Yuml:urt,Zacute:frt,zacute:hrt,Zcaron:drt,zcaron:prt,Zcy:grt,zcy:vrt,Zdot:mrt,zdot:yrt,zeetrf:brt,ZeroWidthSpace:wrt,Zeta:xrt,zeta:_rt,zfr:Srt,Zfr:krt,ZHcy:Crt,zhcy:Trt,zigrarr:Ert,zopf:Lrt,Zopf:Art,Zscr:Mrt,zscr:Nrt,zwj:Prt,zwnj:Ort},Drt="Á",$rt="á",Rrt="Â",zrt="â",Irt="´",Frt="Æ",qrt="æ",Hrt="À",Brt="à",Wrt="&",Urt="&",jrt="Å",Vrt="å",Grt="Ã",Krt="ã",Xrt="Ä",Yrt="ä",Zrt="¦",Qrt="Ç",Jrt="ç",tit="¸",eit="¢",nit="©",rit="©",iit="¤",oit="°",sit="÷",lit="É",ait="é",cit="Ê",uit="ê",fit="È",hit="è",dit="Ð",pit="ð",git="Ë",vit="ë",mit="½",yit="¼",bit="¾",wit=">",xit=">",_it="Í",Sit="í",kit="Î",Cit="î",Tit="¡",Eit="Ì",Lit="ì",Ait="¿",Mit="Ï",Nit="ï",Pit="«",Oit="<",Dit="<",$it="¯",Rit="µ",zit="·",Iit=" ",Fit="¬",qit="Ñ",Hit="ñ",Bit="Ó",Wit="ó",Uit="Ô",jit="ô",Vit="Ò",Git="ò",Kit="ª",Xit="º",Yit="Ø",Zit="ø",Qit="Õ",Jit="õ",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="Ü",Eot="ü",Lot="Ý",Aot="ý",Mot="¥",Not="ÿ",Pot={Aacute:Drt,aacute:$rt,Acirc:Rrt,acirc:zrt,acute:Irt,AElig:Frt,aelig:qrt,Agrave:Hrt,agrave:Brt,amp:Wrt,AMP:Urt,Aring:jrt,aring:Vrt,Atilde:Grt,atilde:Krt,Auml:Xrt,auml:Yrt,brvbar:Zrt,Ccedil:Qrt,ccedil:Jrt,cedil:tit,cent:eit,copy:nit,COPY:rit,curren:iit,deg:oit,divide:sit,Eacute:lit,eacute:ait,Ecirc:cit,ecirc:uit,Egrave:fit,egrave:hit,ETH:dit,eth:pit,Euml:git,euml:vit,frac12:mit,frac14:yit,frac34:bit,gt:wit,GT:xit,Iacute:_it,iacute:Sit,Icirc:kit,icirc:Cit,iexcl:Tit,Igrave:Eit,igrave:Lit,iquest:Ait,Iuml:Mit,iuml:Nit,laquo:Pit,lt:Oit,LT:Dit,macr:$it,micro:Rit,middot:zit,nbsp:Iit,not:Fit,Ntilde:qit,ntilde:Hit,Oacute:Bit,oacute:Wit,Ocirc:Uit,ocirc:jit,Ograve:Vit,ograve:Git,ordf:Kit,ordm:Xit,Oslash:Yit,oslash:Zit,Otilde:Qit,otilde:Jit,Ouml:tot,ouml:eot,para:not,plusmn:rot,pound:iot,quot:oot,QUOT:sot,raquo:lot,reg:aot,REG:cot,sect:uot,shy:fot,sup1:hot,sup2:dot,sup3:pot,szlig:got,THORN:vot,thorn:mot,times:yot,Uacute:bot,uacute:wot,Ucirc:xot,ucirc:_ot,Ugrave:Sot,ugrave:kot,uml:Cot,Uuml:Tot,uuml:Eot,Yacute:Lot,yacute:Aot,yen:Mot,yuml:Not},Oot="&",Dot="'",$ot=">",Rot="<",zot='"',py={amp:Oot,apos:Dot,gt:$ot,lt:Rot,quot:zot};var Bh={};const Iot={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 Fot=oo&&oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bh,"__esModule",{value:!0});var Lv=Fot(Iot),qot=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 Hot(t){return t>=55296&&t<=57343||t>1114111?"<22>":(t in Lv.default&&(t=Lv.default[t]),qot(t))}Bh.default=Hot;var Uc=oo&&oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.decodeHTML=Hr.decodeHTMLStrict=Hr.decodeXML=void 0;var Vf=Uc(dy),Bot=Uc(Pot),Wot=Uc(py),Av=Uc(Bh),Uot=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Hr.decodeXML=gy(Wot.default);Hr.decodeHTMLStrict=gy(Vf.default);function gy(t){var e=vy(t);return function(r){return String(r).replace(Uot,e)}}var Mv=function(t,e){return t<e?1:-1};Hr.decodeHTML=function(){for(var t=Object.keys(Bot.default).sort(Mv),e=Object.keys(Vf.default).sort(Mv),r=0,o=0;r<e.length;r++)t[o]===e[r]?(e[r]+=";?",o++):e[r]+=";";var s=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=vy(Vf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(s,f)}}();function vy(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Av.default(parseInt(r.substr(3),16)):Av.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var zn={},my=oo&&oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zn,"__esModule",{value:!0});zn.escapeUTF8=zn.escape=zn.encodeNonAsciiHTML=zn.encodeHTML=zn.encodeXML=void 0;var jot=my(py),yy=wy(jot.default),by=xy(yy);zn.encodeXML=ky(yy);var Vot=my(dy),Wh=wy(Vot.default),Got=xy(Wh);zn.encodeHTML=Xot(Wh,Got);zn.encodeNonAsciiHTML=ky(Wh);function wy(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function xy(t){for(var e=[],r=[],o=0,s=Object.keys(t);o<s.length;o++){var u=s[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 _y=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Kot=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function jc(t){return"&#x"+(t.length>1?Kot(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Xot(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(_y,jc)}}var Sy=new RegExp(by.source+"|"+_y.source,"g");function Yot(t){return t.replace(Sy,jc)}zn.escape=Yot;function Zot(t){return t.replace(by,jc)}zn.escapeUTF8=Zot;function ky(t){return function(e){return e.replace(Sy,function(r){return t[r]||jc(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=Hr,r=zn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function s(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=s;function u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=u;var f=zn;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=Hr;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}})})(hy);function Qot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nv(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 Jot(t,e,r){return e&&Nv(t.prototype,e),r&&Nv(t,r),t}function Cy(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=tst(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
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 tst(t,e){if(t){if(typeof t=="string")return Pv(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 Pv(t,e)}}function Pv(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 est=hy,Ov={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:nst()};function nst(){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 Ea(0,5).forEach(function(e){Ea(0,5).forEach(function(r){Ea(0,5).forEach(function(o){return rst(e,r,o,t)})})}),Ea(0,23).forEach(function(e){var r=e+232,o=Ty(e*10+8);t[r]="#"+o+o+o}),t}function rst(t,e,r,o){var s=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[s]=ist([u,f,h])}function Ty(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function ist(t){var e=[],r=Cy(t),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;e.push(Ty(s))}}catch(u){r.e(u)}finally{r.f()}return"#"+e.join("")}function Dv(t,e,r,o){var s;return e==="text"?s=ast(r,o):e==="display"?s=sst(t,r,o):e==="xterm256Foreground"?s=Ua(t,o.colors[r]):e==="xterm256Background"?s=ja(t,o.colors[r]):e==="rgb"&&(s=ost(t,r)),s}function ost(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),s=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return Wa(t,(r===38?"color:#":"background-color:#")+s)}function sst(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&Ey(t)},1:function(){return wi(t,"b")},3:function(){return wi(t,"i")},4:function(){return wi(t,"u")},8:function(){return Wa(t,"display:none")},9:function(){return wi(t,"strike")},22:function(){return Wa(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Rv(t,"i")},24:function(){return Rv(t,"u")},39:function(){return Ua(t,r.fg)},49:function(){return ja(t,r.bg)},53:function(){return Wa(t,"text-decoration:overline")}},s;return o[e]?s=o[e]():4<e&&e<7?s=wi(t,"blink"):29<e&&e<38?s=Ua(t,r.colors[e-30]):39<e&&e<48?s=ja(t,r.colors[e-40]):89<e&&e<98?s=Ua(t,r.colors[8+(e-90)]):99<e&&e<108&&(s=ja(t,r.colors[8+(e-100)])),s}function Ey(t){var e=t.slice(0);return t.length=0,e.reverse().map(function(r){return"</"+r+">"}).join("")}function Ea(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function lst(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function $v(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 ast(t,e){return e.escapeXML?est.encodeXML(t):t}function wi(t,e,r){return r||(r=""),t.push(e),"<".concat(e).concat(r?' style="'.concat(r,'"'):"",">")}function Wa(t,e){return wi(t,"span",e)}function Ua(t,e){return wi(t,"span","color:"+e)}function ja(t,e){return wi(t,"span","background-color:"+e)}function Rv(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return"</"+e+">"}function cst(t,e,r){var o=!1,s=3;function u(){return""}function f(B,K){return r("xterm256Foreground",K),""}function h(B,K){return r("xterm256Background",K),""}function d(B){return e.newline?r("display",-1):r("text",B),""}function g(B,K){o=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var ht=Cy(K),Y;try{for(ht.s();!(Y=ht.n()).done;){var nt=Y.value;r("display",nt)}}catch(at){ht.e(at)}finally{ht.f()}return""}function v(B){return r("text",B),""}function b(B){return r("rgb",B),""}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(B,K){K>s&&o||(o=!1,t=t.replace(B.pattern,B.sub))}var P=[],A=t,L=A.length;t:for(;L>0;){for(var T=0,M=0,R=w.length;M<R;T=++M){var E=w[T];if(S(E,T),t.length!==L){L=t.length;continue t}}if(t.length===L)break;P.push(0),L=t.length}return P}function ust(t,e,r){return e!=="text"&&(t=t.filter(lst($v(r))),t.push({token:e,data:r,category:$v(r)})),t}var fst=function(){function t(e){Qot(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},Ov.colors,e.colors)),this.options=Object.assign({},Ov,e),this.stack=[],this.stickyStack=[]}return Jot(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var d=Dv(s,h.token,h.data,u);d&&f.push(d)}),cst(r.join(""),u,function(h,d){var g=Dv(s,h,d,u);g&&f.push(g),u.stream&&(o.stickyStack=ust(o.stickyStack,h,d))}),s.length&&f.push(Ey(s)),f.join("")}}]),t}(),hst=fst;const dst=ay(hst);function pst(t=""){return!t||!t.includes("\\")?t:t.replace(/\\/g,"/")}const gst=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function vst(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const mst=function(...t){t=t.map(o=>pst(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:vst();!s||s.length===0||(e=`${s}/${e}`,r=zv(s))}return e=yst(e,!r),r&&!zv(e)?`/${e}`:e.length>0?e:"."};function yst(t,e){let r="",o=0,s=-1,u=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===h-1||u===1))if(u===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,u=0;continue}else if(r.length>0){r="",o=0,s=h,u=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const zv=function(t){return gst.test(t)},bst=",".charCodeAt(0),Iv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wst=new Uint8Array(64),Ly=new Uint8Array(128);for(let t=0;t<Iv.length;t++){const e=Iv.charCodeAt(t);wst[t]=e,Ly[e]=t}function xst(t){const e=new Int32Array(5),r=[];let o=0;do{const s=_st(t,o),u=[];let f=!0,h=0;e[0]=0;for(let d=o;d<s;d++){let g;d=tl(t,d,e,0);const v=e[0];v<h&&(f=!1),h=v,Fv(t,d,s)?(d=tl(t,d,e,1),d=tl(t,d,e,2),d=tl(t,d,e,3),Fv(t,d,s)?(d=tl(t,d,e,4),g=[v,e[1],e[2],e[3],e[4]]):g=[v,e[1],e[2],e[3]]):g=[v],u.push(g)}f||Sst(u),r.push(u),o=s+1}while(o<=t.length);return r}function _st(t,e){const r=t.indexOf(";",e);return r===-1?t.length:r}function tl(t,e,r,o){let s=0,u=0,f=0;do{const d=t.charCodeAt(e++);f=Ly[d],s|=(f&31)<<u,u+=5}while(f&32);const h=s&1;return s>>>=1,h&&(s=-2147483648|-s),r[o]+=s,e}function Fv(t,e,r){return e>=r?!1:t.charCodeAt(e)!==bst}function Sst(t){t.sort(kst)}function kst(t,e){return t[0]-e[0]}const Cst=/^[\w+.-]+:\/\//,Tst=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Est=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var De;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(De||(De={}));function Lst(t){return Cst.test(t)}function Ast(t){return t.startsWith("//")}function Ay(t){return t.startsWith("/")}function Mst(t){return t.startsWith("file:")}function qv(t){return/^[.?#]/.test(t)}function La(t){const e=Tst.exec(t);return My(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Nst(t){const e=Est.exec(t),r=e[2];return My("file:","",e[1]||"","",Ay(r)?r:"/"+r,e[3]||"",e[4]||"")}function My(t,e,r,o,s,u,f){return{scheme:t,user:e,host:r,port:o,path:s,query:u,hash:f,type:De.Absolute}}function Hv(t){if(Ast(t)){const r=La("http:"+t);return r.scheme="",r.type=De.SchemeRelative,r}if(Ay(t)){const r=La("http://foo.com"+t);return r.scheme="",r.host="",r.type=De.AbsolutePath,r}if(Mst(t))return Nst(t);if(Lst(t))return La(t);const e=La("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?De.Query:t.startsWith("#")?De.Hash:De.RelativePath:De.Empty,e}function Pst(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function Ost(t,e){Ny(e,e.type),t.path==="/"?t.path=e.path:t.path=Pst(e.path)+t.path}function Ny(t,e){const r=e<=De.RelativePath,o=t.path.split("/");let s=1,u=0,f=!1;for(let d=1;d<o.length;d++){const g=o[d];if(!g){f=!0;continue}if(f=!1,g!=="."){if(g===".."){u?(f=!0,u--,s--):r&&(o[s++]=g);continue}o[s++]=g,u++}}let h="";for(let d=1;d<s;d++)h+="/"+o[d];(!h||f&&!h.endsWith("/.."))&&(h+="/"),t.path=h}function Dst(t,e){if(!t&&!e)return"";const r=Hv(t);let o=r.type;if(e&&o!==De.Absolute){const u=Hv(e),f=u.type;switch(o){case De.Empty:r.hash=u.hash;case De.Hash:r.query=u.query;case De.Query:case De.RelativePath:Ost(r,u);case De.AbsolutePath:r.user=u.user,r.host=u.host,r.port=u.port;case De.SchemeRelative:r.scheme=u.scheme}f>o&&(o=f)}Ny(r,o);const s=r.query+r.hash;switch(o){case De.Hash:case De.Query:return s;case De.RelativePath:{const u=r.path.slice(1);return u?qv(e||t)&&!qv(u)?"./"+u+s:u+s:s||"."}case De.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Bv(t,e){return e&&!e.endsWith("/")&&(e+="/"),Dst(t,e)}function $st(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const Li=0,Rst=1,zst=2,Ist=3,Fst=4;function qst(t,e){const r=Wv(t,0);if(r===t.length)return t;e||(t=t.slice());for(let o=r;o<t.length;o=Wv(t,o+1))t[o]=Bst(t[o],e);return t}function Wv(t,e){for(let r=e;r<t.length;r++)if(!Hst(t[r]))return r;return t.length}function Hst(t){for(let e=1;e<t.length;e++)if(t[e][Li]<t[e-1][Li])return!1;return!0}function Bst(t,e){return e||(t=t.slice()),t.sort(Wst)}function Wst(t,e){return t[Li]-e[Li]}let uc=!1;function Ust(t,e,r,o){for(;r<=o;){const s=r+(o-r>>1),u=t[s][Li]-e;if(u===0)return uc=!0,s;u<0?r=s+1:o=s-1}return uc=!1,r-1}function jst(t,e,r){for(let o=r+1;o<t.length&&t[o][Li]===e;r=o++);return r}function Vst(t,e,r){for(let o=r-1;o>=0&&t[o][Li]===e;r=o--);return r}function Gst(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Kst(t,e,r,o){const{lastKey:s,lastNeedle:u,lastIndex:f}=r;let h=0,d=t.length-1;if(o===s){if(e===u)return uc=f!==-1&&t[f][Li]===e,f;e>=u?h=f===-1?0:f:d=f}return r.lastKey=o,r.lastNeedle=e,r.lastIndex=Ust(t,e,h,d)}const Xst="`line` must be greater than 0 (lines start at line 1)",Yst="`column` must be greater than or equal to 0 (columns start at column 0)",Uv=-1,Zst=1;let jv,Py;class Qst{constructor(e,r){const o=typeof e=="string";if(!o&&e._decodedMemo)return e;const s=o?JSON.parse(e):e,{version:u,file:f,names:h,sourceRoot:d,sources:g,sourcesContent:v}=s;this.version=u,this.file=f,this.names=h||[],this.sourceRoot=d,this.sources=g,this.sourcesContent=v;const b=Bv(d||"",$st(r));this.resolvedSources=g.map(S=>Bv(S||"",b));const{mappings:w}=s;typeof w=="string"?(this._encoded=w,this._decoded=void 0):(this._encoded=void 0,this._decoded=qst(w,o)),this._decodedMemo=Gst(),this._bySources=void 0,this._bySourceMemos=void 0}}jv=t=>t._decoded||(t._decoded=xst(t._encoded)),Py=(t,{line:e,column:r,bias:o})=>{if(e--,e<0)throw new Error(Xst);if(r<0)throw new Error(Yst);const s=jv(t);if(e>=s.length)return Aa(null,null,null,null);const u=s[e],f=Jst(u,t._decodedMemo,e,r,o||Zst);if(f===-1)return Aa(null,null,null,null);const h=u[f];if(h.length===1)return Aa(null,null,null,null);const{names:d,resolvedSources:g}=t;return Aa(g[h[Rst]],h[zst]+1,h[Ist],h.length===5?d[h[Fst]]:null)};function Aa(t,e,r,o){return{source:t,line:e,column:r,name:o}}function Jst(t,e,r,o,s){let u=Kst(t,o,e,r);return uc?u=(s===Uv?jst:Vst)(t,o,u):s===Uv&&u++,u===-1||u===t.length?-1:u}const Oy=/^\s*at .*(\S+:\d+|\(native\))/m,tlt=/^(eval@)?(\[native code])?$/,elt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chai.js",/__vitest_browser__/];function Dy(t){if(!t.includes(":"))return[t];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!r)return[t];let o=r[1];return(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")&&(o=o.slice(typeof process<"u"&&process.platform==="win32"?5:4)),[o,r[2]||void 0,r[3]||void 0]}function nlt(t){let e=t.trim();if(tlt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,[u,f,h]=Dy(e.replace(r,""));return!u||!f||!h?null:{file:u,method:s||"",line:Number.parseInt(f),column:Number.parseInt(h)}}function rlt(t){let e=t.trim();if(!Oy.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,u,f]=Dy(o?o[1]:r);let h=o&&r||"",d=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!d||!u||!f?null:(h.startsWith("async ")&&(h=h.slice(6)),d.startsWith("file://")&&(d=d.slice(7)),d=mst(d),h&&(h=h.replace(/__vite_ssr_import_\d+__\./g,"")),{method:h,file:d,line:Number.parseInt(u),column:Number.parseInt(f)})}function ilt(t,e={}){const{ignoreStackEntries:r=elt}=e;let o=Oy.test(t)?slt(t):olt(t);return r.length&&(o=o.filter(s=>!r.some(u=>s.file.match(u)))),o.map(s=>{var u;const f=(u=e.getSourceMap)==null?void 0:u.call(e,s.file);if(!f||typeof f!="object"||!f.version)return s;const h=new Qst(f),{line:d,column:g}=Py(h,s);return d!=null&&g!=null?{...s,line:d,column:g}:s})}function olt(t){return t.split(`
`).map(e=>nlt(e)).filter(cy)}function slt(t){return t.split(`
`).map(e=>rlt(e)).filter(cy)}function llt(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 Uh(t){return new dst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}function alt(t){return t===null||typeof t!="function"&&typeof t!="object"}function Ry(t){let e=t;if(alt(t)&&(e={message:String(e).split(/\n/g)[0],stack:String(e),name:""}),!t){const r=new Error("unknown error");e={message:r.message,stack:r.stack,name:""}}return e.stacks=ilt(e.stack||e.stackStr||"",{ignoreStackEntries:[]}),e}function jh(t){return Lm()?(l1(t),!0):!1}function Sr(t){return typeof t=="function"?t():U(t)}const clt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ult=Object.prototype.toString,flt=t=>ult.call(t)==="[object Object]",so=()=>{};function Vh(t,e){function r(...o){return new Promise((s,u)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(u)})}return r}const zy=t=>t();function Iy(t,e={}){let r,o,s=so;const u=h=>{clearTimeout(h),s(),s=so};return h=>{const d=Sr(t),g=Sr(e.maxWait);return r&&u(r),d<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=e.rejectOnCancel?b:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},d)})}}function hlt(t,e=!0,r=!0,o=!1){let s=0,u,f=!0,h=so,d;const g=()=>{u&&(clearTimeout(u),u=void 0,h(),h=so)};return b=>{const w=Sr(t),S=Date.now()-s,P=()=>d=b();return g(),w<=0?(s=Date.now(),P()):(S>w&&(r||!f)?(s=Date.now(),P()):e&&(d=new Promise((A,L)=>{h=o?L:A,u=setTimeout(()=>{s=Date.now(),f=!0,A(P()),g()},Math.max(0,w-S))})),!r&&!u&&(u=setTimeout(()=>f=!0,w)),f=!1,d)}}function dlt(t=zy){const e=Zt(!0);function r(){e.value=!1}function o(){e.value=!0}const s=(...u)=>{e.value&&t(...u)};return{isActive:Lc(e),pause:r,resume:o,eventFilter:s}}function plt(...t){if(t.length!==1)return wh(...t);const e=t[0];return typeof e=="function"?Lc(P1(()=>({get:e,set:so}))):Zt(e)}function Vv(t,e=200,r={}){return Vh(Iy(e,r),t)}function glt(t,e=200,r=!1,o=!0,s=!1){return Vh(hlt(e,r,o,s),t)}function vlt(t,e=200,r=!0,o=!0){if(e<=0)return t;const s=Zt(t.value),u=glt(()=>{s.value=t.value},e,r,o);return Re(t,()=>u()),s}function Fy(t,e,r={}){const{eventFilter:o=zy,...s}=r;return Re(t,Vh(o,e),s)}function qy(t,e,r={}){const{eventFilter:o,...s}=r,{eventFilter:u,pause:f,resume:h,isActive:d}=dlt(o);return{stop:Fy(t,e,{...s,eventFilter:u}),pause:f,resume:h,isActive:d}}function Gh(t,e=!0){Pl()?ms(t):e?t():Br(t)}function mlt(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,s=Le(t),u=Zt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Sr(r);return u.value=u.value===d?Sr(o):d,u.value}}return s?f:[u,f]}function ylt(t,e,r={}){const{debounce:o=0,maxWait:s=void 0,...u}=r;return Fy(t,e,{...u,eventFilter:Iy(o,{maxWait:s})})}function blt(t,e,r){const o=Re(t,(...s)=>(Br(()=>o()),e(...s)),r);return o}function wlt(t,e,r){let o;Le(r)?o={evaluating:r}:o=r||{};const{lazy:s=!1,evaluating:u=void 0,shallow:f=!0,onError:h=so}=o,d=Zt(!s),g=f?vs(e):Zt(e);let v=0;return Ch(async b=>{if(!d.value)return;v++;const w=v;let S=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const P=await t(A=>{b(()=>{u&&(u.value=!1),S||A()})});w===v&&(g.value=P)}catch(P){h(P)}finally{u&&w===v&&(u.value=!1),S=!0}}),s?xt(()=>(d.value=!0,g.value)):g}function fc(t){var e;const r=Sr(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Vr=clt?window:void 0;function fs(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=Vr):[e,r,o,s]=t,!e)return so;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,b,w,S)=>(v.addEventListener(b,w,S),()=>v.removeEventListener(b,w,S)),d=Re(()=>[fc(e),Sr(s)],([v,b])=>{if(f(),!v)return;const w=flt(b)?{...b}:b;u.push(...r.flatMap(S=>o.map(P=>h(v,S,P,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return jh(g),g}function xlt(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function _lt(...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:s=Vr,eventName:u="keydown",passive:f=!1,dedupe:h=!1}=o,d=xlt(e);return fs(s,u,v=>{v.repeat&&Sr(h)||d(v)&&r(v)},f)}function Slt(){const t=Zt(!1);return Pl()&&ms(()=>{t.value=!0}),t}function Hy(t){const e=Slt();return xt(()=>(e.value,!!t()))}function By(t,e={}){const{window:r=Vr}=e,o=Hy(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const u=Zt(!1),f=g=>{u.value=g.matches},h=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},d=Ch(()=>{o.value&&(h(),s=r.matchMedia(Sr(t)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),u.value=s.matches)});return jh(()=>{d(),h(),s=void 0}),u}const Ma=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Na="__vueuse_ssr_handlers__",klt=Clt();function Clt(){return Na in Ma||(Ma[Na]=Ma[Na]||{}),Ma[Na]}function Wy(t,e){return klt[t]||e}function Tlt(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"}const Elt={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()}},Gv="vueuse-storage";function Llt(t,e,r,o={}){var s;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:b=Vr,eventFilter:w,onError:S=nt=>{console.error(nt)},initOnMounted:P}=o,A=(v?vs:Zt)(typeof e=="function"?e():e);if(!r)try{r=Wy("getDefaultStorage",()=>{var nt;return(nt=Vr)==null?void 0:nt.localStorage})()}catch(nt){S(nt)}if(!r)return A;const L=Sr(e),T=Tlt(L),M=(s=o.serializer)!=null?s:Elt[T],{pause:R,resume:E}=qy(A,()=>B(A.value),{flush:u,deep:f,eventFilter:w});return b&&h&&Gh(()=>{fs(b,"storage",Y),fs(b,Gv,ht),P&&Y()}),P||Y(),A;function B(nt){try{if(nt==null)r.removeItem(t);else{const at=M.write(nt),pt=r.getItem(t);pt!==at&&(r.setItem(t,at),b&&b.dispatchEvent(new CustomEvent(Gv,{detail:{key:t,oldValue:pt,newValue:at,storageArea:r}})))}}catch(at){S(at)}}function K(nt){const at=nt?nt.newValue:r.getItem(t);if(at==null)return d&&L!==null&&r.setItem(t,M.write(L)),L;if(!nt&&g){const pt=M.read(at);return typeof g=="function"?g(pt,L):T==="object"&&!Array.isArray(pt)?{...L,...pt}:pt}else return typeof at!="string"?at:M.read(at)}function ht(nt){Y(nt.detail)}function Y(nt){if(!(nt&&nt.storageArea!==r)){if(nt&&nt.key==null){A.value=L;return}if(!(nt&&nt.key!==t)){R();try{(nt==null?void 0:nt.newValue)!==M.write(A.value)&&(A.value=K(nt))}catch(at){S(at)}finally{nt?Br(E):E()}}}}}function Alt(t){return By("(prefers-color-scheme: dark)",t)}function Mlt(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:s=Vr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g,disableTransition:v=!0}=t,b={auto:"",light:"light",dark:"dark",...t.modes||{}},w=Alt({window:s}),S=xt(()=>w.value?"dark":"light"),P=d||(f==null?plt(o):Llt(f,o,u,{window:s,listenToStorageChanges:h})),A=xt(()=>P.value==="auto"?S.value:P.value),L=Wy("updateHTMLAttrs",(E,B,K)=>{const ht=typeof E=="string"?s==null?void 0:s.document.querySelector(E):fc(E);if(!ht)return;let Y;if(v){Y=s.document.createElement("style");const nt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Y.appendChild(document.createTextNode(nt)),s.document.head.appendChild(Y)}if(B==="class"){const nt=K.split(/\s/g);Object.values(b).flatMap(at=>(at||"").split(/\s/g)).filter(Boolean).forEach(at=>{nt.includes(at)?ht.classList.add(at):ht.classList.remove(at)})}else ht.setAttribute(B,K);v&&(s.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function T(E){var B;L(e,r,(B=b[E])!=null?B:E)}function M(E){t.onChanged?t.onChanged(E,T):T(E)}Re(A,M,{flush:"post",immediate:!0}),Gh(()=>M(A.value));const R=xt({get(){return g?P.value:A.value},set(E){P.value=E}});try{return Object.assign(R,{store:P,system:S,state:A})}catch{return R}}function Nlt(t={}){const{valueDark:e="dark",valueLight:r=""}=t,o=Mlt({...t,onChanged:(u,f)=>{var h;t.onChanged?(h=t.onChanged)==null||h.call(t,u==="dark",f,u):f(u)},modes:{dark:e,light:r}});return xt({get(){return o.value==="dark"},set(u){const f=u?"dark":"light";o.system.value===f?o.value="auto":o.value=f}})}function Plt(t,e,r={}){const{window:o=Vr,...s}=r;let u;const f=Hy(()=>o&&"ResizeObserver"in o),h=()=>{u&&(u.disconnect(),u=void 0)},d=xt(()=>Array.isArray(t)?t.map(b=>fc(b)):[fc(t)]),g=Re(d,b=>{if(h(),f.value&&o){u=new ResizeObserver(e);for(const w of b)w&&u.observe(w,s)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{h(),g()};return jh(v),{isSupported:f,stop:v}}function Olt(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:u=!0,window:f=Vr}=e;if(!f)return Un(r);const h=Un({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",M=T.indexOf("?");return M>0?T.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const M=T.toString();if(t==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const R=f.location.hash||"#",E=R.indexOf("?");return E>0?`${R.slice(0,E)}${M?`?${M}`:""}`:`${R}${M?`?${M}`:""}`}function v(){return new URLSearchParams(d())}function b(T){const M=new Set(Object.keys(h));for(const R of T.keys()){const E=T.getAll(R);h[R]=E.length>1?E:T.get(R)||"",M.delete(R)}Array.from(M).forEach(R=>delete h[R])}const{pause:w,resume:S}=qy(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(M=>{const R=h[M];Array.isArray(R)?R.forEach(E=>T.append(M,E)):o&&R==null||s&&!R?T.delete(M):T.set(M,R)}),P(T)},{deep:!0});function P(T,M){w(),M&&b(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),S()}function A(){u&&P(v(),!0)}fs(f,"popstate",A,!1),t!=="history"&&fs(f,"hashchange",A,!1);const L=v();return L.keys().next().value?b(L):Object.assign(h,r),h}function Dlt(t={}){const{window:e=Vr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:u=!0}=t,f=Zt(r),h=Zt(o),d=()=>{e&&(u?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(d(),Gh(d),fs("resize",d,{passive:!0}),s){const g=By("(orientation: portrait)");Re(g,()=>d())}return{width:f,height:h}}const Uy=Olt("hash",{initialValue:{file:"",view:null}}),yr=wh(Uy,"file"),er=wh(Uy,"view");var In=Uint8Array,Uo=Uint16Array,$lt=Int32Array,jy=new In([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vy=new In([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Rlt=new In([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gy=function(t,e){for(var r=new Uo(31),o=0;o<31;++o)r[o]=e+=1<<t[o-1];for(var s=new $lt(r[30]),o=1;o<30;++o)for(var u=r[o];u<r[o+1];++u)s[u]=u-r[o]<<5|o;return{b:r,r:s}},Ky=Gy(jy,2),Xy=Ky.b,zlt=Ky.r;Xy[28]=258,zlt[258]=28;var Ilt=Gy(Vy,0),Flt=Ilt.b,Gf=new Uo(32768);for(var xe=0;xe<32768;++xe){var pi=(xe&43690)>>1|(xe&21845)<<1;pi=(pi&52428)>>2|(pi&13107)<<2,pi=(pi&61680)>>4|(pi&3855)<<4,Gf[xe]=((pi&65280)>>8|(pi&255)<<8)>>1}var dl=function(t,e,r){for(var o=t.length,s=0,u=new Uo(e);s<o;++s)t[s]&&++u[t[s]-1];var f=new Uo(e);for(s=1;s<e;++s)f[s]=f[s-1]+u[s-1]<<1;var h;if(r){h=new Uo(1<<e);var d=15-e;for(s=0;s<o;++s)if(t[s])for(var g=s<<4|t[s],v=e-t[s],b=f[t[s]-1]++<<v,w=b|(1<<v)-1;b<=w;++b)h[Gf[b]>>d]=g}else for(h=new Uo(o),s=0;s<o;++s)t[s]&&(h[s]=Gf[f[t[s]-1]++]>>15-t[s]);return h},Rl=new In(288);for(var xe=0;xe<144;++xe)Rl[xe]=8;for(var xe=144;xe<256;++xe)Rl[xe]=9;for(var xe=256;xe<280;++xe)Rl[xe]=7;for(var xe=280;xe<288;++xe)Rl[xe]=8;var Yy=new In(32);for(var xe=0;xe<32;++xe)Yy[xe]=5;var qlt=dl(Rl,9,1),Hlt=dl(Yy,5,1),sf=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},nr=function(t,e,r){var o=e/8|0;return(t[o]|t[o+1]<<8)>>(e&7)&r},lf=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},Blt=function(t){return(t+7)/8|0},Zy=function(t,e,r){return(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length),new In(t.subarray(e,r))},Wlt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Tn=function(t,e,r){var o=new Error(e||Wlt[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,Tn),!r)throw o;return o},Kh=function(t,e,r,o){var s=t.length,u=o?o.length:0;if(!s||e.f&&!e.l)return r||new In(0);var f=!r,h=f||e.i!=2,d=e.i;f&&(r=new In(s*3));var g=function(Et){var $=r.length;if(Et>$){var I=new In(Math.max($*2,Et));I.set(r),r=I}},v=e.f||0,b=e.p||0,w=e.b||0,S=e.l,P=e.d,A=e.m,L=e.n,T=s*8;do{if(!S){v=nr(t,b,1);var M=nr(t,b+1,3);if(b+=3,M)if(M==1)S=qlt,P=Hlt,A=9,L=5;else if(M==2){var K=nr(t,b,31)+257,ht=nr(t,b+10,15)+4,Y=K+nr(t,b+5,31)+1;b+=14;for(var nt=new In(Y),at=new In(19),pt=0;pt<ht;++pt)at[Rlt[pt]]=nr(t,b+pt*3,7);b+=ht*3;for(var gt=sf(at),G=(1<<gt)-1,z=dl(at,gt,1),pt=0;pt<Y;){var k=z[nr(t,b,G)];b+=k&15;var R=k>>4;if(R<16)nt[pt++]=R;else{var F=0,H=0;for(R==16?(H=3+nr(t,b,3),b+=2,F=nt[pt-1]):R==17?(H=3+nr(t,b,7),b+=3):R==18&&(H=11+nr(t,b,127),b+=7);H--;)nt[pt++]=F}}var Q=nt.subarray(0,K),yt=nt.subarray(K);A=sf(Q),L=sf(yt),S=dl(Q,A,1),P=dl(yt,L,1)}else Tn(1);else{var R=Blt(b)+4,E=t[R-4]|t[R-3]<<8,B=R+E;if(B>s){d&&Tn(0);break}h&&g(w+E),r.set(t.subarray(R,B),w),e.b=w+=E,e.p=b=B*8,e.f=v;continue}if(b>T){d&&Tn(0);break}}h&&g(w+131072);for(var At=(1<<A)-1,qt=(1<<L)-1,Ht=b;;Ht=b){var F=S[lf(t,b)&At],Jt=F>>4;if(b+=F&15,b>T){d&&Tn(0);break}if(F||Tn(2),Jt<256)r[w++]=Jt;else if(Jt==256){Ht=b,S=null;break}else{var Qt=Jt-254;if(Jt>264){var pt=Jt-257,Gt=jy[pt];Qt=nr(t,b,(1<<Gt)-1)+Xy[pt],b+=Gt}var Tt=P[lf(t,b)&qt],j=Tt>>4;Tt||Tn(3),b+=Tt&15;var yt=Flt[j];if(j>3){var Gt=Vy[j];yt+=lf(t,b)&(1<<Gt)-1,b+=Gt}if(b>T){d&&Tn(0);break}h&&g(w+131072);var rt=w+Qt;if(w<yt){var lt=u-yt,Mt=Math.min(yt,rt);for(lt+w<0&&Tn(3);w<Mt;++w)r[w]=o[lt+w]}for(;w<rt;++w)r[w]=r[w-yt]}}e.l=S,e.p=Ht,e.b=w,e.f=v,S&&(v=1,e.m=A,e.d=P,e.n=L)}while(!v);return w!=r.length&&f?Zy(r,0,w):r.subarray(0,w)},Ult=new In(0),jlt=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&Tn(6,"invalid gzip data");var e=t[3],r=10;e&4&&(r+=(t[10]|t[11]<<8)+2);for(var o=(e>>3&1)+(e>>4&1);o>0;o-=!t[r++]);return r+(e&2)},Vlt=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Glt=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Tn(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Tn(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function Klt(t,e){return Kh(t,{i:2},e&&e.out,e&&e.dictionary)}function Xlt(t,e){var r=jlt(t);return r+8>t.length&&Tn(6,"invalid gzip data"),Kh(t.subarray(r,-8),{i:2},e&&e.out||new In(Vlt(t)),e&&e.dictionary)}function Ylt(t,e){return Kh(t.subarray(Glt(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function Zlt(t,e){return t[0]==31&&t[1]==139&&t[2]==8?Xlt(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Klt(t,e):Ylt(t,e)}var Kf=typeof TextDecoder<"u"&&new TextDecoder,Qlt=0;try{Kf.decode(Ult,{stream:!0}),Qlt=1}catch{}var Jlt=function(t){for(var e="",r=0;;){var o=t[r++],s=(o>127)+(o>223)+(o>239);if(r+s>t.length)return{s:e,r:Zy(t,r-1)};s?s==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,e+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?e+=String.fromCharCode((o&31)<<6|t[r++]&63):e+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):e+=String.fromCharCode(o)}};function tat(t,e){if(e){for(var r="",o=0;o<t.length;o+=16384)r+=String.fromCharCode.apply(null,t.subarray(o,o+16384));return r}else{if(Kf)return Kf.decode(t);var s=Jlt(t),u=s.s,r=s.r;return r.length&&Tn(8),u}}const af=()=>{},hn=()=>Promise.resolve();function eat(){const t=Un({state:new ly,waitForConnection:f,reconnect:s,ws:new EventTarget});t.state.filesMap=Un(t.state.filesMap),t.state.idMap=Un(t.state.idMap);let e;const r={getFiles:()=>e.files,getPaths:()=>e.paths,getConfig:()=>e.config,getModuleGraph:async h=>e.moduleGraph[h],getUnhandledErrors:()=>e.unhandledErrors,getTransformResult:async h=>({code:h,source:"",map:null}),onDone:af,onCollected:hn,onTaskUpdate:af,writeFile:hn,rerun:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:hn,removeSnapshotFile:hn,onUnhandledError:af,saveTestFile:hn,getProvidedContext:()=>({})};t.rpc=r;let o;function s(){u()}async function u(){var v;const h=await fetch(window.METADATA_PATH),d=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const b=new Uint8Array(await h.arrayBuffer()),w=tat(Zlt(b));e=Uf(w)}else e=Uf(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}u();function f(){return o}return t}const kl=Zt("idle"),yi=Zt([]),je=function(){return jr?eat():fT(pT,{reactive:Un,handlers:{onTaskUpdate(){kl.value="running"},onFinished(e,r){kl.value="idle",yi.value=(r||[]).map(Ry)}}})}(),Xh=vs({}),Zi=Zt("CONNECTING"),mn=xt(()=>je.state.getFiles()),Se=xt(()=>mn.value.find(t=>t.id===yr.value)),Qy=xt(()=>Hh(Se.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function hc(t){return mn.value.find(e=>e.id===t)}const nat=xt(()=>Zi.value==="OPEN"),cf=xt(()=>Zi.value==="CONNECTING");xt(()=>Zi.value==="CLOSED");function rat(t=je.state.getFiles()){return Jy(t)}function Jy(t){return t.forEach(e=>{delete e.result,Hh(e).forEach(r=>delete r.result)}),je.rpc.rerun(t.map(e=>e.filepath))}function iat(){if(Se.value)return Jy([Se.value])}Re(()=>je.ws,t=>{Zi.value=jr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{Zi.value="OPEN",je.state.filesMap.clear();const[e,r,o]=await Promise.all([je.rpc.getFiles(),je.rpc.getConfig(),je.rpc.getUnhandledErrors()]);je.state.collectFiles(e),yi.value=(o||[]).map(Ry),Xh.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Zi.value==="CONNECTING"&&(Zi.value="CLOSED")},1e3)})},{immediate:!0});const oat={"text-2xl":""},sat=tt("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),lat=ie({__name:"ConnectionOverlay",setup(t){return(e,r)=>U(nat)?Vt("",!0):(st(),kt("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)=>U(je).reconnect&&U(je).reconnect(...o))},[tt("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(U(cf)?"animate-pulse":"")},[tt("div",{text:"5xl",class:ve(U(cf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),tt("div",oat,Ut(U(cf)?"Connecting...":"Disconnected"),1),sat],2)]))}}),zl=Nlt(),aat=mlt(zl),cat={class:"scrolls scrolls-rounded task-error"},uat=["onClickPassive"],fat=["innerHTML"],hat=ie({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const e=t;function r(f){return f.startsWith(e.root)?f.slice(e.root.length):f}const o=xt(()=>Uh(zl.value)),s=xt(()=>{var f;return!!((f=e.error)!=null&&f.diff)}),u=xt(()=>e.error.diff?o.value.toHtml(e.error.diff):void 0);return(f,h)=>{const d=uo("tooltip");return st(),kt("div",cat,[tt("pre",null,[tt("b",null,Ut(f.error.name||f.error.nameStr),1),me(": "+Ut(f.error.message),1)]),(st(!0),kt(ne,null,Rn(f.error.stacks,(g,v)=>(st(),kt("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[tt("pre",null," - "+Ut(r(g.file))+":"+Ut(g.line)+":"+Ut(g.column),1),U(llt)(g.file,f.filename)?nn((st(),kt("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:b=>U($y)(g.file,g.line,g.column)},null,40,uat)),[[d,"Open in Editor",void 0,{bottom:!0}]]):Vt("",!0)]))),128)),U(s)?(st(),kt("pre",{key:0,"data-testid":"diff",innerHTML:U(u)},null,8,fat)):Vt("",!0)])}}}),dat=fo(hat,[["__scopeId","data-v-93ed29fc"]]);function Va(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const pat={"h-full":"",class:"scrolls"},gat={key:0,class:"scrolls scrolls-rounded task-error"},vat=["innerHTML"],mat={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},yat=ie({__name:"ViewReport",props:{file:{}},setup(t){const e=t;function r(f,h){var d;return((d=f.result)==null?void 0:d.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:h}]:[{...f,level:h},...f.tasks.flatMap(g=>r(g,h+1))]}function o(f,h){var v,b,w;let d="";(v=h.message)!=null&&v.includes("\x1B")&&(d=`<b>${h.nameStr||h.name}</b>: ${f.toHtml(Va(h.message))}`);const g=(b=h.stackStr)==null?void 0:b.includes("\x1B");return(g||(w=h.stack)!=null&&w.includes("\x1B"))&&(d.length>0?d+=f.toHtml(Va(g?h.stackStr:h.stack)):d=`<b>${h.nameStr||h.name}</b>: ${h.message}${f.toHtml(Va(g?h.stackStr:h.stack))}`),d.length>0?d:null}function s(f,h){const d=Uh(f);return h.map(g=>{var w;const v=g.result;if(!v)return g;const b=(w=v.errors)==null?void 0:w.map(S=>o(d,S)).filter(S=>S!=null).join("<br><br>");return b!=null&&b.length&&(v.htmlError=b),g})}const u=xt(()=>{var v,b;const f=e.file,h=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(w=>r(w,0)))??[],d=f==null?void 0:f.result;if((b=d==null?void 0:d.errors)==null?void 0:b[0]){const w={id:f.id,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:d};h.unshift(w)}return h.length>0?s(zl.value,h):h});return(f,h)=>(st(),kt("div",pat,[U(u).length?(st(!0),kt(ne,{key:0},Rn(U(u),d=>{var g,v,b;return st(),kt("div",{key:d.id},[tt("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:An({"margin-left":`${(g=d.result)!=null&&g.htmlError?.5:2*d.level+.5}rem`})},[me(Ut(d.name)+" ",1),(v=d.result)!=null&&v.htmlError?(st(),kt("div",gat,[tt("pre",{innerHTML:d.result.htmlError},null,8,vat)])):(b=d.result)!=null&&b.errors?(st(!0),kt(ne,{key:1},Rn(d.result.errors,(w,S)=>{var P;return st(),te(dat,{key:S,error:w,filename:(P=f.file)==null?void 0:P.name,root:U(Xh).root},null,8,["error","filename","root"])}),128)):Vt("",!0)],4)])}),128)):(st(),kt("div",mat," All tests passed in this file "))]))}}),bat=fo(yat,[["__scopeId","data-v-5e7bb715"]]),wat={border:"b base","p-4":""},xat=["innerHTML"],_at=ie({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function e(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(st(),kt("div",wat,[tt("div",{"text-xs":"","mb-1":"",class:ve(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ut(e(r.time))+" | "+Ut(r.taskName)+" | "+Ut(r.type),3),tt("pre",{"data-type":"html",innerHTML:r.content},null,8,xat)]))}}),dc=xt(()=>mn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),pc=xt(()=>mn.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Yh=xt(()=>mn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));xt(()=>mn.value.filter(t=>!dc.value.includes(t)&&!pc.value.includes(t)&&!Yh.value.includes(t)));xt(()=>Yh.value.filter(t=>t.mode==="skip"));const Kv=xt(()=>mn.value.filter(Wc));xt(()=>Yh.value.filter(t=>t.mode==="todo"));const Sat=xt(()=>kl.value==="idle"),Vc=xt(()=>rb(mn.value)),tb=xt(()=>Vc.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),eb=xt(()=>Vc.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),nb=xt(()=>Vc.value.filter(t=>t.mode==="skip"||t.mode==="todo")),kat=xt(()=>nb.value.filter(t=>t.mode==="skip")),Cat=xt(()=>nb.value.filter(t=>t.mode==="todo"));xt(()=>tb.value.length+eb.value.length);const Tat=xt(()=>{const t=mn.value.reduce((e,r)=>{var o;return e+=Math.max(0,r.collectDuration||0),e+=Math.max(0,r.setupDuration||0),e+=Math.max(0,((o=r.result)==null?void 0:o.duration)||0),e},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function Eat(t){return t=t||[],Array.isArray(t)?t:[t]}function Xv(t){return t.type==="test"||t.type==="custom"}function rb(t){const e=[],r=Eat(t);for(const o of r)if(Xv(o))e.push(o);else for(const s of o.tasks)Xv(s)?e.push(s):e.push(...rb(s));return e}const Lat={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Aat={key:1,p6:""},Mat=tt("pre",{inline:""},"console.log(foo)",-1),Nat=ie({__name:"ViewConsoleOutput",setup(t){const e=xt(()=>{const o=Qy.value;if(o){const s=Uh(zl.value);return o.map(({taskId:u,type:f,time:h,content:d})=>({taskId:u,type:f,time:h,content:s.toHtml(Va(d))}))}});function r(o){const s=o&&je.state.idMap.get(o);return(s?uT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const u=_at;return(f=U(e))!=null&&f.length?(st(),kt("div",Lat,[(st(!0),kt(ne,null,Rn(U(e),({taskId:h,type:d,time:g,content:v})=>(st(),kt("div",{key:h,"font-mono":""},[Ft(u,{"task-name":r(h),type:d,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(st(),kt("p",Aat,[me(" Log something in your test and it would print here. (e.g. "),Mat,me(") ")]))}}});var ib={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/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],P=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),M=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),E=M||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=M||/Mac/.test(o),K=/\bCrOS\b/.test(r),ht=/win/i.test(o),Y=P&&r.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(P=!1,v=!0);var nt=B&&(b||P&&(Y==null||Y<12.11)),at=s||d&&g>=9;function pt(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var gt=function(n,i){var a=n.className,l=pt(i).exec(a);if(l){var c=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(c?l[1]+c:"")}};function G(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function z(n,i){return G(n).appendChild(i)}function k(n,i,a,l){var c=document.createElement(n);if(a&&(c.className=a),l&&(c.style.cssText=l),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 F(n,i,a,l){var c=k(n,i,a,l);return c.setAttribute("role","presentation"),c}var H;document.createRange?H=function(n,i,a,l){var c=document.createRange();return c.setEnd(l||n,a),c.setStart(n,i),c}:H=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function Q(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function yt(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function At(n,i){var a=n.className;pt(i).test(a)||(n.className+=(a?" ":"")+i)}function qt(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!pt(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ht=function(n){n.select()};M?Ht=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(Ht=function(n){try{n.select()}catch{}});function Jt(n){return n.display.wrapper.ownerDocument}function Qt(n){return Gt(n.display.wrapper)}function Gt(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Tt(n){return Jt(n).defaultView}function j(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function rt(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function lt(n,i,a,l,c){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var p=l||0,m=c||0;;){var y=n.indexOf(" ",p);if(y<0||y>=i)return m+(i-p);m+=y-p,m+=a-m%a,p=y+1}}var Mt=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};Mt.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Mt.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Et(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var $=50,I={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},J={origin:"*mouse"},ot={origin:"+move"};function ut(n,i,a){for(var l=0,c=0;;){var p=n.indexOf(" ",l);p==-1&&(p=n.length);var m=p-l;if(p==n.length||c+m>=i)return l+Math.min(m,i-c);if(c+=p-l,c+=a-c%a,l=p+1,c>=i)return l}}var St=[""];function mt(n){for(;St.length<=n;)St.push(ct(St)+" ");return St[n]}function ct(n){return n[n.length-1]}function ft(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function $t(n,i,a){for(var l=0,c=a(i);l<n.length&&a(n[l])<=c;)l++;n.splice(l,0,i)}function Nt(){}function Dt(n,i){var a;return Object.create?a=Object.create(n):(Nt.prototype=n,a=new Nt),i&&rt(i,a),a}var Bt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Kt(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Bt.test(n))}function re(n,i){return i?i.source.indexOf("\\w")>-1&&Kt(n)?!0:i.test(n):Kt(n)}function oe(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var fe=/[\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 se(n){return n.charCodeAt(0)>=768&&fe.test(n)}function rn(n,i,a){for(;(a<0?i>0:i<n.length)&&se(n.charAt(i));)i+=a;return i}function Pn(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var c=(i+a)/2,p=l<0?Math.ceil(c):Math.floor(c);if(p==i)return n(p)?i:a;n(p)?a=p:i=p+l}}function wn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var c=!1,p=0;p<n.length;++p){var m=n[p];(m.from<a&&m.to>i||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",p),c=!0)}c||l(i,a,"ltr")}var cr=null;function Ae(n,i,a){var l;cr=null;for(var c=0;c<n.length;++c){var p=n[c];if(p.from<i&&p.to>i)return c;p.to==i&&(p.from!=p.to&&a=="before"?l=c:cr=c),p.from==i&&(p.from!=p.to&&a!="before"?l=c:cr=c)}return l??cr}var xn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\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"&&!l.test(_))return!1;for(var W=_.length,q=[],Z=0;Z<W;++Z)q.push(a(_.charCodeAt(Z)));for(var it=0,vt=D;it<W;++it){var bt=q[it];bt=="m"?q[it]=vt:vt=bt}for(var Ct=0,wt=D;Ct<W;++Ct){var Lt=q[Ct];Lt=="1"&&wt=="r"?q[Ct]="n":p.test(Lt)&&(wt=Lt,Lt=="r"&&(q[Ct]="R"))}for(var zt=1,Ot=q[0];zt<W-1;++zt){var Xt=q[zt];Xt=="+"&&Ot=="1"&&q[zt+1]=="1"?q[zt]="1":Xt==","&&Ot==q[zt+1]&&(Ot=="1"||Ot=="n")&&(q[zt]=Ot),Ot=Xt}for(var ge=0;ge<W;++ge){var We=q[ge];if(We==",")q[ge]="N";else if(We=="%"){var _e=void 0;for(_e=ge+1;_e<W&&q[_e]=="%";++_e);for(var kn=ge&&q[ge-1]=="!"||_e<W&&q[_e]=="1"?"1":"N",cn=ge;cn<_e;++cn)q[cn]=kn;ge=_e-1}}for(var Ne=0,un=D;Ne<W;++Ne){var Ve=q[Ne];un=="L"&&Ve=="1"?q[Ne]="L":p.test(Ve)&&(un=Ve)}for(var $e=0;$e<W;++$e)if(c.test(q[$e])){var Pe=void 0;for(Pe=$e+1;Pe<W&&c.test(q[Pe]);++Pe);for(var Ee=($e?q[$e-1]:D)=="L",fn=(Pe<W?q[Pe]:D)=="L",Io=Ee==fn?Ee?"L":"R":D,ai=$e;ai<Pe;++ai)q[ai]=Io;$e=Pe-1}for(var Ze=[],pr,Ue=0;Ue<W;)if(m.test(q[Ue])){var Wu=Ue;for(++Ue;Ue<W&&m.test(q[Ue]);++Ue);Ze.push(new x(0,Wu,Ue))}else{var Pr=Ue,Hi=Ze.length,Bi=N=="rtl"?1:0;for(++Ue;Ue<W&&q[Ue]!="L";++Ue);for(var tn=Pr;tn<Ue;)if(y.test(q[tn])){Pr<tn&&(Ze.splice(Hi,0,new x(1,Pr,tn)),Hi+=Bi);var Fo=tn;for(++tn;tn<Ue&&y.test(q[tn]);++tn);Ze.splice(Hi,0,new x(2,Fo,tn)),Hi+=Bi,Pr=tn}else++tn;Pr<Ue&&Ze.splice(Hi,0,new x(1,Pr,Ue))}return N=="ltr"&&(Ze[0].level==1&&(pr=_.match(/^\s+/))&&(Ze[0].from=pr[0].length,Ze.unshift(new x(0,0,pr[0].length))),ct(Ze).level==1&&(pr=_.match(/\s+$/))&&(ct(Ze).to-=pr[0].length,Ze.push(new x(0,W-pr[0].length,W)))),N=="rtl"?Ze.reverse():Ze}}();function Yt(n,i){var a=n.order;return a==null&&(a=n.order=xn(n.text,i)),a}var Hl=[],Rt=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||Hl).concat(a)}};function Cr(n,i){return n._handlers&&n._handlers[i]||Hl}function Ke(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,c=l&&l[i];if(c){var p=Et(c,a);p>-1&&(l[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function ke(n,i){var a=Cr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c<a.length;++c)a[c].apply(null,l)}function Ce(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ke(n,a||i.type,n,i),on(i)||i.codemirrorIgnore}function qn(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Et(a,i[l])==-1&&a.push(i[l])}function _n(n,i){return Cr(n,i).length>0}function Vn(n){n.prototype.on=function(i,a){Rt(this,i,a)},n.prototype.off=function(i,a){Ke(this,i,a)}}function Xe(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function ho(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function on(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Yr(n){Xe(n),ho(n)}function ws(n){return n.target||n.srcElement}function Gn(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var Yc=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),po;function Bl(n){if(po==null){var i=k("span","");z(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(po=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var a=po?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var xs;function Zr(n){if(xs!=null)return xs;var i=z(n,document.createTextNode("AخA")),a=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return G(n),!a||a.left==a.right?!1:xs=l.right-a.right<3}var Hn=`
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var c=n.indexOf(`
`,i);c==-1&&(c=n.length);var p=n.slice(i,n.charAt(c-1)=="\r"?c-1:c),m=p.indexOf("\r");m!=-1?(a.push(p.slice(0,m)),i+=m+1):(a.push(p),i=c+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Qr=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Wl=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Kn=null;function Zc(n){if(Kn!=null)return Kn;var i=z(n,k("span","x")),a=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return Kn=Math.abs(a.left-l.left)>1}var go={},Xn={};function Yn(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),go[n]=i}function Pi(n,i){Xn[n]=i}function vo(n){if(typeof n=="string"&&Xn.hasOwnProperty(n))n=Xn[n];else if(n&&typeof n.name=="string"&&Xn.hasOwnProperty(n.name)){var i=Xn[n.name];typeof i=="string"&&(i={name:i}),n=Dt(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return vo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return vo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function mo(n,i){i=vo(i);var a=go[i.name];if(!a)return mo(n,"text/plain");var l=a(n,i);if(Jr.hasOwnProperty(i.name)){var c=Jr[i.name];for(var p in c)c.hasOwnProperty(p)&&(l.hasOwnProperty(p)&&(l["_"+p]=l[p]),l[p]=c[p])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var Jr={};function yo(n,i){var a=Jr.hasOwnProperty(n)?Jr[n]:Jr[n]={};rt(i,a)}function ur(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var c=i[l];c instanceof Array&&(c=c.concat([])),a[l]=c}return a}function _s(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function bo(n,i,a){return n.startState?n.startState(i,a):!0}var Te=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Te.prototype.eol=function(){return this.pos>=this.string.length},Te.prototype.sol=function(){return this.pos==this.lineStart},Te.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Te.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Te.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},Te.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Te.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Te.prototype.skipToEnd=function(){this.pos=this.string.length},Te.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Te.prototype.backUp=function(n){this.pos-=n},Te.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=lt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},Te.prototype.indentation=function(){return lt(this.string,null,this.tabSize)-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},Te.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},c=this.string.substr(this.pos,n.length);if(l(c)==l(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)}},Te.prototype.current=function(){return this.string.slice(this.start,this.pos)},Te.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Te.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Te.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pt(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var c=a.children[l],p=c.chunkSize();if(i<p){a=c;break}i-=p}return a.lines[i]}function Tr(n,i,a){var l=[],c=i.line;return n.iter(i.line,a.line+1,function(p){var m=p.text;c==a.line&&(m=m.slice(0,a.ch)),c==i.line&&(m=m.slice(i.ch)),l.push(m),++c}),l}function Ss(n,i,a){var l=[];return n.iter(i,a,function(c){l.push(c.text)}),l}function On(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=Et(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var c=0;l.children[c]!=i;++c)a+=l.children[c].chunkSize();return a+i.first}function O(n,i){var a=n.first;t:do{for(var l=0;l<n.children.length;++l){var c=n.children[l],p=c.height;if(i<p){n=c;continue t}i-=p,a+=c.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var y=n.lines[m],x=y.height;if(i<x)break;i-=x}return a+m}function et(n,i){return i>=n.first&&i<n.first+n.size}function dt(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function X(n,i,a){if(a===void 0&&(a=null),!(this instanceof X))return new X(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _t(n,i){return n.line-i.line||n.ch-i.ch}function ce(n,i){return n.sticky==i.sticky&&_t(n,i)==0}function Fe(n){return X(n.line,n.ch)}function sn(n,i){return _t(n,i)<0?i:n}function wo(n,i){return _t(n,i)<0?n:i}function ud(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Wt(n,i){if(i.line<n.first)return X(n.first,0);var a=n.first+n.size-1;return i.line>a?X(a,Pt(n,a).text.length):Vb(i,Pt(n,i.line).text.length)}function Vb(n,i){var a=n.ch;return a==null||a>i?X(n.line,i):a<0?X(n.line,0):n}function fd(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Wt(n,i[l]);return a}var Ul=function(n,i){this.state=n,this.lookAhead=i},fr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};fr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},fr.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}},fr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fr.fromSaved=function(n,i,a){return i instanceof Ul?new fr(n,ur(n.mode,i.state),a,i.lookAhead):new fr(n,ur(n.mode,i),a)},fr.prototype.save=function(n){var i=n!==!1?ur(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ul(i,this.maxLookAhead):i};function hd(n,i,a,l){var c=[n.state.modeGen],p={};yd(n,i.text,n.doc.mode,a,function(_,N){return c.push(_,N)},p,l);for(var m=a.state,y=function(_){a.baseTokens=c;var N=n.state.overlays[_],D=1,W=0;a.state=!0,yd(n,i.text,N.mode,a,function(q,Z){for(var it=D;W<q;){var vt=c[D];vt>q&&c.splice(D,1,q,c[D+1],vt),D+=2,W=Math.min(q,vt)}if(Z)if(N.opaque)c.splice(it,D-it,q,"overlay "+Z),D=it+2;else for(;it<D;it+=2){var bt=c[it+1];c[it+1]=(bt?bt+" ":"")+"overlay "+Z}},p),a.state=m,a.baseTokens=null,a.baseTokenPos=1},x=0;x<n.state.overlays.length;++x)y(x);return{styles:c,classes:p.bgClass||p.textClass?p:null}}function dd(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ks(n,C(i)),c=i.text.length>n.options.maxHighlightLength&&ur(n.doc.mode,l.state),p=hd(n,i,l);c&&(l.state=c),i.stateAfter=l.save(!c),i.styles=p.styles,p.classes?i.styleClasses=p.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ks(n,i,a){var l=n.doc,c=n.display;if(!l.mode.startState)return new fr(l,!0,i);var p=Gb(n,i,a),m=p>l.first&&Pt(l,p-1).stateAfter,y=m?fr.fromSaved(l,m,p):new fr(l,bo(l.mode),p);return l.iter(p,i,function(x){Qc(n,x.text,y);var _=y.line;x.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),a&&(l.modeFrontier=y.line),y}function Qc(n,i,a,l){var c=n.doc.mode,p=new Te(i,n.options.tabSize,a);for(p.start=p.pos=l||0,i==""&&pd(c,a.state);!p.eol();)Jc(c,p,a.state),p.start=p.pos}function pd(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=_s(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Jc(n,i,a,l){for(var c=0;c<10;c++){l&&(l[0]=_s(n,a).mode);var p=n.token(i,a);if(i.pos>i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var gd=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function vd(n,i,a,l){var c=n.doc,p=c.mode,m;i=Wt(c,i);var y=Pt(c,i.line),x=ks(n,i.line,a),_=new Te(y.text,n.options.tabSize,x),N;for(l&&(N=[]);(l||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Jc(p,_,x.state),l&&N.push(new gd(_,m,ur(c.mode,x.state)));return l?N:new gd(_,m,x.state)}function md(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function yd(n,i,a,l,c,p,m){var y=a.flattenSpans;y==null&&(y=n.options.flattenSpans);var x=0,_=null,N=new Te(i,n.options.tabSize,l),D,W=n.options.addModeClass&&[null];for(i==""&&md(pd(a,l.state),p);!N.eol();){if(N.pos>n.options.maxHighlightLength?(y=!1,m&&Qc(n,i,l,N.pos),N.pos=i.length,D=null):D=md(Jc(a,N,l.state,W),p),W){var q=W[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 Z=Math.min(N.pos,x+5e3);c(Z,_),x=Z}}function Gb(n,i,a){for(var l,c,p=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=p.first)return p.first;var x=Pt(p,y-1),_=x.stateAfter;if(_&&(!a||y+(_ instanceof Ul?_.lookAhead:0)<=p.modeFrontier))return y;var N=lt(x.text,null,n.options.tabSize);(c==null||l>N)&&(c=y-1,l=N)}return c}function Kb(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var c=Pt(n,l).stateAfter;if(c&&(!(c instanceof Ul)||l+c.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var bd=!1,Er=!1;function Xb(){bd=!0}function Yb(){Er=!0}function jl(n,i,a){this.marker=n,this.from=i,this.to=a}function Cs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function Zb(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function Qb(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function Jb(n,i,a){var l;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,y=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);if(y||p.from==i&&m.type=="bookmark"&&(!a||!p.marker.insertLeft)){var x=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(l||(l=[])).push(new jl(m,p.from,x?null:p.to))}}return l}function tw(n,i,a){var l;if(n)for(var c=0;c<n.length;++c){var p=n[c],m=p.marker,y=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);if(y||p.from==i&&m.type=="bookmark"&&(!a||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(l||(l=[])).push(new jl(m,x?null:p.from-i,p.to==null?null:p.to-i))}}return l}function tu(n,i){if(i.full)return null;var a=et(n,i.from.line)&&Pt(n,i.from.line).markedSpans,l=et(n,i.to.line)&&Pt(n,i.to.line).markedSpans;if(!a&&!l)return null;var c=i.from.ch,p=i.to.ch,m=_t(i.from,i.to)==0,y=Jb(a,c,m),x=tw(l,p,m),_=i.text.length==1,N=ct(i.text).length+(_?c:0);if(y)for(var D=0;D<y.length;++D){var W=y[D];if(W.to==null){var q=Cs(x,W.marker);q?_&&(W.to=q.to==null?null:q.to+N):W.to=c}}if(x)for(var Z=0;Z<x.length;++Z){var it=x[Z];if(it.to!=null&&(it.to+=N),it.from==null){var vt=Cs(y,it.marker);vt||(it.from=N,_&&(y||(y=[])).push(it))}else it.from+=N,_&&(y||(y=[])).push(it)}y&&(y=wd(y)),x&&x!=y&&(x=wd(x));var bt=[y];if(!_){var Ct=i.text.length-2,wt;if(Ct>0&&y)for(var Lt=0;Lt<y.length;++Lt)y[Lt].to==null&&(wt||(wt=[])).push(new jl(y[Lt].marker,null,null));for(var zt=0;zt<Ct;++zt)bt.push(wt);bt.push(x)}return bt}function wd(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function ew(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(q){if(q.markedSpans)for(var Z=0;Z<q.markedSpans.length;++Z){var it=q.markedSpans[Z].marker;it.readOnly&&(!l||Et(l,it)==-1)&&(l||(l=[])).push(it)}}),!l)return null;for(var c=[{from:i,to:a}],p=0;p<l.length;++p)for(var m=l[p],y=m.find(0),x=0;x<c.length;++x){var _=c[x];if(!(_t(_.to,y.from)<0||_t(_.from,y.to)>0)){var N=[x,1],D=_t(_.from,y.from),W=_t(_.to,y.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:_.from,to:y.from}),(W>0||!m.inclusiveRight&&!W)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),x+=N.length-3}}return c}function xd(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function _d(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Vl(n){return n.inclusiveLeft?-1:0}function Gl(n){return n.inclusiveRight?1:0}function eu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),c=i.find(),p=_t(l.from,c.from)||Vl(n)-Vl(i);if(p)return-p;var m=_t(l.to,c.to)||Gl(n)-Gl(i);return m||i.id-n.id}function Sd(n,i){var a=Er&&n.markedSpans,l;if(a)for(var c=void 0,p=0;p<a.length;++p)c=a[p],c.marker.collapsed&&(i?c.from:c.to)==null&&(!l||eu(l,c.marker)<0)&&(l=c.marker);return l}function kd(n){return Sd(n,!0)}function Kl(n){return Sd(n,!1)}function nw(n,i){var a=Er&&n.markedSpans,l;if(a)for(var c=0;c<a.length;++c){var p=a[c];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!l||eu(l,p.marker)<0)&&(l=p.marker)}return l}function Cd(n,i,a,l,c){var p=Pt(n,i),m=Er&&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=_t(_.from,a)||Vl(x.marker)-Vl(c),D=_t(_.to,l)||Gl(x.marker)-Gl(c);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?_t(_.to,a)>=0:_t(_.to,a)>0)||N>=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?_t(_.from,l)<=0:_t(_.from,l)<0)))return!0}}}function Zn(n){for(var i;i=kd(n);)n=i.find(-1,!0).line;return n}function rw(n){for(var i;i=Kl(n);)n=i.find(1,!0).line;return n}function iw(n){for(var i,a;i=Kl(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function nu(n,i){var a=Pt(n,i),l=Zn(a);return a==l?i:C(l)}function Td(n,i){if(i>n.lastLine())return i;var a=Pt(n,i),l;if(!ti(n,a))return i;for(;l=Kl(a);)a=l.find(1,!0).line;return C(a)+1}function ti(n,i){var a=Er&&i.markedSpans;if(a){for(var l=void 0,c=0;c<a.length;++c)if(l=a[c],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&ru(n,i,l))return!0}}}function ru(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return ru(n,l.line,Cs(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var c=void 0,p=0;p<i.markedSpans.length;++p)if(c=i.markedSpans[p],c.marker.collapsed&&!c.marker.widgetNode&&c.from==a.to&&(c.to==null||c.to!=a.from)&&(c.marker.inclusiveLeft||a.marker.inclusiveRight)&&ru(n,i,c))return!0}function Lr(n){n=Zn(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var c=a.lines[l];if(c==n)break;i+=c.height}for(var p=a.parent;p;a=p,p=a.parent)for(var m=0;m<p.children.length;++m){var y=p.children[m];if(y==a)break;i+=y.height}return i}function Xl(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=kd(l);){var c=a.find(0,!0);l=c.from.line,i+=c.from.ch-c.to.ch}for(l=n;a=Kl(l);){var p=a.find(0,!0);i-=l.text.length-p.from.ch,l=p.to.line,i+=l.text.length-p.to.ch}return i}function iu(n){var i=n.display,a=n.doc;i.maxLine=Pt(a,a.first),i.maxLineLength=Xl(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var c=Xl(l);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=l)})}var xo=function(n,i,a){this.text=n,_d(this,i),this.height=a?a(this):1};xo.prototype.lineNo=function(){return C(this)},Vn(xo);function ow(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),xd(n),_d(n,a);var c=l?l(n):1;c!=n.height&&On(n,c)}function sw(n){n.parent=null,xd(n)}var lw={},aw={};function Ed(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?aw:lw;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ld(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var p=c?i.rest[c-1]:i.line,m=void 0;l.pos=0,l.addToken=uw,Zr(n.display.measure)&&(m=Yt(p,n.doc.direction))&&(l.addToken=hw(l.addToken,m)),l.map=[];var y=i!=n.display.externalMeasured&&C(p);dw(p,l,dd(n,p,y)),p.styleClasses&&(p.styleClasses.bgClass&&(l.bgClass=qt(p.styleClasses.bgClass,l.bgClass||"")),p.styleClasses.textClass&&(l.textClass=qt(p.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Bl(n.display.measure))),c==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=l.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ke(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=qt(l.pre.className,l.textClass||"")),l}function cw(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function uw(n,i,a,l,c,p,m){if(i){var y=n.splitSpaces?fw(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 W=x.exec(i),q=W?W.index-D:i.length-D;if(q){var Z=document.createTextNode(y.slice(D,D+q));d&&g<9?N.appendChild(k("span",[Z])):N.appendChild(Z),n.map.push(n.pos,n.pos+q,Z),n.col+=q,n.pos+=q}if(!W)break;D+=q+1;var it=void 0;if(W[0]==" "){var vt=n.cm.options.tabSize,bt=vt-n.col%vt;it=N.appendChild(k("span",mt(bt),"cm-tab")),it.setAttribute("role","presentation"),it.setAttribute("cm-text"," "),n.col+=bt}else W[0]=="\r"||W[0]==`
`?(it=N.appendChild(k("span",W[0]=="\r"?"␍":"␤","cm-invalidchar")),it.setAttribute("cm-text",W[0]),n.col+=1):(it=n.cm.options.specialCharPlaceholder(W[0]),it.setAttribute("cm-text",W[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,a||l||c||_||p||m){var Ct=a||"";l&&(Ct+=l),c&&(Ct+=c);var wt=k("span",[N],Ct,p);if(m)for(var Lt in m)m.hasOwnProperty(Lt)&&Lt!="style"&&Lt!="class"&&wt.setAttribute(Lt,m[Lt]);return n.content.appendChild(wt)}n.content.appendChild(N)}}function fw(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",c=0;c<n.length;c++){var p=n.charAt(c);p==" "&&a&&(c==n.length-1||n.charCodeAt(c+1)==32)&&(p=" "),l+=p,a=p==" "}return l}function hw(n,i){return function(a,l,c,p,m,y,x){c=c?c+" cm-force-border":"cm-force-border";for(var _=a.pos,N=_+l.length;;){for(var D=void 0,W=0;W<i.length&&(D=i[W],!(D.to>_&&D.from<=_));W++);if(D.to>=N)return n(a,l,c,p,m,y,x);n(a,l.slice(0,D.to-_),c,p,null,y,x),p=null,l=l.slice(D.to-_),_=D.to}}}function Ad(n,i,a,l){var c=!l&&a.widgetNode;c&&n.map.push(n.pos,n.pos+i,c),!l&&n.cm.display.input.needsContentAttribute&&(c||(c=n.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",a.id)),c&&(n.cm.display.input.setUneditable(c),n.content.appendChild(c)),n.pos+=i,n.trailingSpace=!1}function dw(n,i,a){var l=n.markedSpans,c=n.text,p=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,c.slice(p,p=a[m]),Ed(a[m+1],i.cm.options));return}for(var y=c.length,x=0,_=1,N="",D,W,q=0,Z,it,vt,bt,Ct;;){if(q==x){Z=it=vt=W="",Ct=null,bt=null,q=1/0;for(var wt=[],Lt=void 0,zt=0;zt<l.length;++zt){var Ot=l[zt],Xt=Ot.marker;if(Xt.type=="bookmark"&&Ot.from==x&&Xt.widgetNode)wt.push(Xt);else if(Ot.from<=x&&(Ot.to==null||Ot.to>x||Xt.collapsed&&Ot.to==x&&Ot.from==x)){if(Ot.to!=null&&Ot.to!=x&&q>Ot.to&&(q=Ot.to,it=""),Xt.className&&(Z+=" "+Xt.className),Xt.css&&(W=(W?W+";":"")+Xt.css),Xt.startStyle&&Ot.from==x&&(vt+=" "+Xt.startStyle),Xt.endStyle&&Ot.to==q&&(Lt||(Lt=[])).push(Xt.endStyle,Ot.to),Xt.title&&((Ct||(Ct={})).title=Xt.title),Xt.attributes)for(var ge in Xt.attributes)(Ct||(Ct={}))[ge]=Xt.attributes[ge];Xt.collapsed&&(!bt||eu(bt.marker,Xt)<0)&&(bt=Ot)}else Ot.from>x&&q>Ot.from&&(q=Ot.from)}if(Lt)for(var We=0;We<Lt.length;We+=2)Lt[We+1]==q&&(it+=" "+Lt[We]);if(!bt||bt.from==x)for(var _e=0;_e<wt.length;++_e)Ad(i,0,wt[_e]);if(bt&&(bt.from||0)==x){if(Ad(i,(bt.to==null?y+1:bt.to)-x,bt.marker,bt.from==null),bt.to==null)return;bt.to==x&&(bt=!1)}}if(x>=y)break;for(var kn=Math.min(y,q);;){if(N){var cn=x+N.length;if(!bt){var Ne=cn>kn?N.slice(0,kn-x):N;i.addToken(i,Ne,D?D+Z:Z,vt,x+Ne.length==q?it:"",W,Ct)}if(cn>=kn){N=N.slice(kn-x),x=kn;break}x=cn,vt=""}N=c.slice(p,p=a[_++]),D=Ed(a[_++],i.cm.options)}}}function Md(n,i,a){this.line=i,this.rest=iw(i),this.size=this.rest?C(ct(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ti(n,i)}function Yl(n,i,a){for(var l=[],c,p=i;p<a;p=c){var m=new Md(n.doc,Pt(n.doc,p),p);c=p+m.size,l.push(m)}return l}var _o=null;function pw(n){_o?_o.ops.push(n):n.ownsGroup=_o={ops:[n],delayedCallbacks:[]}}function gw(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var c=n.ops[l];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(a<i.length)}function vw(n,i){var a=n.ownsGroup;if(a)try{gw(a)}finally{_o=null,i(a)}}var Ts=null;function qe(n,i){var a=Cr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),c;_o?c=_o.delayedCallbacks:Ts?c=Ts:(c=Ts=[],setTimeout(mw,0));for(var p=function(y){c.push(function(){return a[y].apply(null,l)})},m=0;m<a.length;++m)p(m)}}function mw(){var n=Ts;Ts=null;for(var i=0;i<n.length;++i)n[i]()}function Nd(n,i,a,l){for(var c=0;c<i.changes.length;c++){var p=i.changes[c];p=="text"?bw(n,i):p=="gutter"?Od(n,i,a,l):p=="class"?ou(n,i):p=="widget"&&ww(n,i,l)}i.changes=null}function Es(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 yw(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Es(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Pd(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ld(n,i)}function bw(n,i){var a=i.text.className,l=Pd(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,ou(n,i)):a&&(i.text.className=a)}function ou(n,i){yw(n,i),i.line.wrapClass?Es(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Od(n,i,a,l){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=Es(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.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=Es(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.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",dt(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.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: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function ww(n,i,a){i.alignable&&(i.alignable=null);for(var l=pt("CodeMirror-linewidget"),c=i.node.firstChild,p=void 0;c;c=p)p=c.nextSibling,l.test(c.className)&&i.node.removeChild(c);Dd(n,i,a)}function xw(n,i,a,l){var c=Pd(n,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),ou(n,i),Od(n,i,a,l),Dd(n,i,l),i.node}function Dd(n,i,a){if($d(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)$d(n,i.rest[l],i,a,!1)}function $d(n,i,a,l,c){if(i.widgets)for(var p=Es(a),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"),_w(x,_,a,l),n.display.input.setUneditable(_),c&&x.above?p.insertBefore(_,a.gutter||a.text):p.appendChild(_),qe(x,"redraw")}}function _w(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var c=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(c-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=c+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ls(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!Q(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),z(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Ar(n,i){for(var a=ws(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Zl(n){return n.lineSpace.offsetTop}function su(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Rd(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=z(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function hr(n){return $-n.display.nativeBarWidth}function Oi(n){return n.display.scroller.clientWidth-hr(n)-n.display.barWidth}function lu(n){return n.display.scroller.clientHeight-hr(n)-n.display.barHeight}function Sw(n,i,a){var l=n.options.lineWrapping,c=l&&Oi(n);if(!i.measure.heights||l&&i.measure.width!=c){var p=i.measure.heights=[];if(l){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-a.top)}}p.push(a.bottom-a.top)}}function zd(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var c=0;c<n.rest.length;c++)if(C(n.rest[c])>a)return{map:n.measure.maps[c],cache:n.measure.caches[c],before:!0}}}function kw(n,i){i=Zn(i);var a=C(i),l=n.display.externalMeasured=new Md(n.doc,i,a);l.lineN=a;var c=l.built=Ld(n,l);return l.text=c.pre,z(n.display.lineMeasure,c.pre),l}function Id(n,i,a,l){return dr(n,So(n,i),a,l)}function au(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Ri(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function So(n,i){var a=C(i),l=au(n,a);l&&!l.text?l=null:l&&l.changes&&(Nd(n,l,a,du(n)),n.curOp.forceUpdate=!0),l||(l=kw(n,i));var c=zd(l,i,a);return{line:i,view:l,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function dr(n,i,a,l,c){i.before&&(a=-1);var p=a+(l||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Sw(n,i.view,i.rect),i.hasHeights=!0),m=Tw(n,i,a,l),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 Fd={left:0,right:0,top:0,bottom:0};function qd(n,i,a){for(var l,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(l=n[_+2],y==x&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&c==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)l=n[(_-=3)+2],m="left";if(a=="right"&&c==x-y)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)l=n[(_+=3)+2],m="right";break}return{node:l,start:c,end:p,collapse:m,coverStart:y,coverEnd:x}}function Cw(n,i){var a=Fd;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var c=n.length-1;c>=0&&(a=n[c]).left==a.right;c--);return a}function Tw(n,i,a,l){var c=qd(i.map,a,l),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&&se(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&se(i.line.text.charAt(c.coverStart+y));)++y;if(d&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=p.parentNode.getBoundingClientRect():_=Cw(H(p,m,y).getClientRects(),l),_.left||_.right||m==0)break;y=m,m=m-1,x="right"}d&&g<11&&(_=Ew(n.display.measure,_))}else{m>0&&(x=l="right");var D;n.options.lineWrapping&&(D=p.getClientRects()).length>1?_=D[l=="right"?D.length-1:0]:_=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!_||!_.left&&!_.right)){var W=p.parentNode.getClientRects()[0];W?_={left:W.left,right:W.left+Co(n.display),top:W.top,bottom:W.bottom}:_=Fd}for(var q=_.top-i.rect.top,Z=_.bottom-i.rect.top,it=(q+Z)/2,vt=i.view.measure.heights,bt=0;bt<vt.length-1&&!(it<vt[bt]);bt++);var Ct=bt?vt[bt-1]:0,wt=vt[bt],Lt={left:(x=="right"?_.right:_.left)-i.rect.left,right:(x=="left"?_.left:_.right)-i.rect.left,top:Ct,bottom:wt};return!_.left&&!_.right&&(Lt.bogus=!0),n.options.singleCursorHeightPerLine||(Lt.rtop=q,Lt.rbottom=Z),Lt}function Ew(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zc(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Hd(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 Bd(n){n.display.externalMeasure=null,G(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Hd(n.display.view[i])}function As(n){Bd(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Wd(n){return w&&R?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Ud(n){return w&&R?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function cu(n){var i=Zn(n),a=i.widgets,l=0;if(a)for(var c=0;c<a.length;++c)a[c].above&&(l+=Ls(a[c]));return l}function Ql(n,i,a,l,c){if(!c){var p=cu(i);a.top+=p,a.bottom+=p}if(l=="line")return a;l||(l="local");var m=Lr(i);if(l=="local"?m+=Zl(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var y=n.display.lineSpace.getBoundingClientRect();m+=y.top+(l=="window"?0:Ud(Jt(n)));var x=y.left+(l=="window"?0:Wd(Jt(n)));a.left+=x,a.right+=x}return a.top+=m,a.bottom+=m,a}function jd(n,i,a){if(a=="div")return i;var l=i.left,c=i.top;if(a=="page")l-=Wd(Jt(n)),c-=Ud(Jt(n));else if(a=="local"||!a){var p=n.display.sizer.getBoundingClientRect();l+=p.left,c+=p.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:c-m.top}}function Jl(n,i,a,l,c){return l||(l=Pt(n.doc,i.line)),Ql(n,l,Id(n,l,i.ch,c),a)}function Qn(n,i,a,l,c,p){l=l||Pt(n.doc,i.line),c||(c=So(n,l));function m(Z,it){var vt=dr(n,c,Z,it?"right":"left",p);return it?vt.left=vt.right:vt.right=vt.left,Ql(n,l,vt,a)}var y=Yt(l,n.doc.direction),x=i.ch,_=i.sticky;if(x>=l.text.length?(x=l.text.length,_="before"):x<=0&&(x=0,_="after"),!y)return m(_=="before"?x-1:x,_=="before");function N(Z,it,vt){var bt=y[it],Ct=bt.level==1;return m(vt?Z-1:Z,Ct!=vt)}var D=Ae(y,x,_),W=cr,q=N(x,D,_=="before");return W!=null&&(q.other=N(x,W,_!="before")),q}function Vd(n,i){var a=0;i=Wt(n.doc,i),n.options.lineWrapping||(a=Co(n.display)*i.ch);var l=Pt(n.doc,i.line),c=Lr(l)+Zl(n.display);return{left:a,right:a,top:c,bottom:c+l.height}}function uu(n,i,a,l,c){var p=X(n,i,a);return p.xRel=c,l&&(p.outside=l),p}function fu(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return uu(l.first,0,null,-1,-1);var c=O(l,a),p=l.first+l.size-1;if(c>p)return uu(l.first+l.size-1,Pt(l,p).text.length,null,1,1);i<0&&(i=0);for(var m=Pt(l,c);;){var y=Lw(n,m,c,i,a),x=nw(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!x)return y;var _=x.find(1);if(_.line==c)return _;m=Pt(l,c=_.line)}}function Gd(n,i,a,l){l-=cu(i);var c=i.text.length,p=Pn(function(m){return dr(n,a,m-1).bottom<=l},c,0);return c=Pn(function(m){return dr(n,a,m).top>l},p,c),{begin:p,end:c}}function Kd(n,i,a,l){a||(a=So(n,i));var c=Ql(n,i,dr(n,a,l),"line").top;return Gd(n,i,a,c)}function hu(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Lw(n,i,a,l,c){c-=Lr(i);var p=So(n,i),m=cu(i),y=0,x=i.text.length,_=!0,N=Yt(i,n.doc.direction);if(N){var D=(n.options.lineWrapping?Mw:Aw)(n,i,a,p,N,l,c);_=D.level!=1,y=_?D.from:D.to-1,x=_?D.to:D.from-1}var W=null,q=null,Z=Pn(function(zt){var Ot=dr(n,p,zt);return Ot.top+=m,Ot.bottom+=m,hu(Ot,l,c,!1)?(Ot.top<=c&&Ot.left<=l&&(W=zt,q=Ot),!0):!1},y,x),it,vt,bt=!1;if(q){var Ct=l-q.left<q.right-l,wt=Ct==_;Z=W+(wt?0:1),vt=wt?"after":"before",it=Ct?q.left:q.right}else{!_&&(Z==x||Z==y)&&Z++,vt=Z==0?"after":Z==i.text.length?"before":dr(n,p,Z-(_?1:0)).bottom+m<=c==_?"after":"before";var Lt=Qn(n,X(a,Z,vt),"line",i,p);it=Lt.left,bt=c<Lt.top?-1:c>=Lt.bottom?1:0}return Z=rn(i.text,Z,1),uu(a,Z,vt,bt,l-it)}function Aw(n,i,a,l,c,p,m){var y=Pn(function(D){var W=c[D],q=W.level!=1;return hu(Qn(n,X(a,q?W.to:W.from,q?"before":"after"),"line",i,l),p,m,!0)},0,c.length-1),x=c[y];if(y>0){var _=x.level!=1,N=Qn(n,X(a,_?x.from:x.to,_?"after":"before"),"line",i,l);hu(N,p,m,!0)&&N.top>m&&(x=c[y-1])}return x}function Mw(n,i,a,l,c,p,m){var y=Gd(n,i,l,m),x=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,D=null,W=0;W<c.length;W++){var q=c[W];if(!(q.from>=_||q.to<=x)){var Z=q.level!=1,it=dr(n,l,Z?Math.min(_,q.to)-1:Math.max(x,q.from)).right,vt=it<p?p-it+1e9:it-p;(!N||D>vt)&&(N=q,D=vt)}}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 Di;function ko(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Di==null){Di=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Di.appendChild(document.createTextNode("x")),Di.appendChild(k("br"));Di.appendChild(document.createTextNode("x"))}z(n.measure,Di);var a=Di.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),G(n.measure),a||1}function Co(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");z(n.measure,a);var l=i.getBoundingClientRect(),c=(l.right-l.left)/10;return c>2&&(n.cachedCharWidth=c),c||10}function du(n){for(var i=n.display,a={},l={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var y=n.display.gutterSpecs[m].className;a[y]=p.offsetLeft+p.clientLeft+c,l[y]=p.clientWidth}return{fixedPos:pu(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function pu(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Xd(n){var i=ko(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Co(n.display)-3);return function(c){if(ti(n.doc,c))return 0;var p=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(p+=c.widgets[m].height);return a?p+(Math.ceil(c.text.length/l)||1)*i:p+i}}function gu(n){var i=n.doc,a=Xd(n);i.iter(function(l){var c=a(l);c!=l.height&&On(l,c)})}function $i(n,i,a,l){var c=n.display;if(!a&&ws(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=fu(n,p,m),_;if(l&&x.xRel>0&&(_=Pt(n.doc,x.line).text).length==x.ch){var N=lt(_,_.length,n.options.tabSize)-_.length;x=X(x.line,Math.max(0,Math.round((p-Rd(n.display).left)/Co(n.display))-N))}return x}function Ri(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function ln(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var c=n.display;if(l&&a<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=c.viewTo)Er&&nu(n.doc,i)<c.viewTo&&ni(n);else if(a<=c.viewFrom)Er&&Td(n.doc,a+l)>c.viewFrom?ni(n):(c.viewFrom+=l,c.viewTo+=l);else if(i<=c.viewFrom&&a>=c.viewTo)ni(n);else if(i<=c.viewFrom){var p=ta(n,a,a+l,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=l):ni(n)}else if(a>=c.viewTo){var m=ta(n,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):ni(n)}else{var y=ta(n,i,i,-1),x=ta(n,a,a+l,1);y&&x?(c.view=c.view.slice(0,y.index).concat(Yl(n,y.lineN,x.lineN)).concat(c.view.slice(x.index)),c.viewTo+=l):ni(n)}var _=c.externalMeasured;_&&(a<_.lineN?_.lineN+=l:i<_.lineN+_.size&&(c.externalMeasured=null))}function ei(n,i,a){n.curOp.viewChanged=!0;var l=n.display,c=n.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var p=l.view[Ri(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Et(m,a)==-1&&m.push(a)}}}function ni(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function ta(n,i,a,l){var c=Ri(n,i),p,m=n.display.view;if(!Er||a==n.doc.first+n.doc.size)return{index:c,lineN:a};for(var y=n.display.viewFrom,x=0;x<c;x++)y+=m[x].size;if(y!=i){if(l>0){if(c==m.length-1)return null;p=y+m[c].size-i,c++}else p=y-i;i+=p,a+=p}for(;nu(n.doc,a)!=a;){if(c==(l<0?0:m.length-1))return null;a+=l*m[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:a}}function Nw(n,i,a){var l=n.display,c=l.view;c.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Yl(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Yl(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Ri(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Yl(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,Ri(n,a)))),l.viewTo=a}function Yd(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var c=i[l];!c.hidden&&(!c.node||c.changes)&&++a}return a}function Ms(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Zd(n,i){i===void 0&&(i=!0);var a=n.doc,l={},c=l.cursors=document.createDocumentFragment(),p=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var y=0;y<a.sel.ranges.length;y++)if(!(!i&&y==a.sel.primIndex)){var x=a.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&&vu(n,N,c)}else(_||n.options.showCursorWhenSelecting)&&vu(n,x.head,c);_||Pw(n,x,p)}}return l}function vu(n,i,a){var l=Qn(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),c=a.appendChild(k("div"," ","CodeMirror-cursor"));if(c.style.left=l.left+"px",c.style.top=l.top+"px",c.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var p=Jl(n,i,"div",null,null),m=p.right-p.left;c.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var y=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=l.other.left+"px",y.style.top=l.other.top+"px",y.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ea(n,i){return n.top-i.top||n.left-i.left}function Pw(n,i,a){var l=n.display,c=n.doc,p=document.createDocumentFragment(),m=Rd(n.display),y=m.left,x=Math.max(l.sizerWidth,Oi(n)-l.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function N(wt,Lt,zt,Ot){Lt<0&&(Lt=0),Lt=Math.round(Lt),Ot=Math.round(Ot),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px;
top: `+Lt+"px; width: "+(zt??x-wt)+`px;
height: `+(Ot-Lt)+"px"))}function D(wt,Lt,zt){var Ot=Pt(c,wt),Xt=Ot.text.length,ge,We;function _e(Ne,un){return Jl(n,X(wt,Ne),"div",Ot,un)}function kn(Ne,un,Ve){var $e=Kd(n,Ot,null,Ne),Pe=un=="ltr"==(Ve=="after")?"left":"right",Ee=Ve=="after"?$e.begin:$e.end-(/\s/.test(Ot.text.charAt($e.end-1))?2:1);return _e(Ee,Pe)[Pe]}var cn=Yt(Ot,c.direction);return wn(cn,Lt||0,zt??Xt,function(Ne,un,Ve,$e){var Pe=Ve=="ltr",Ee=_e(Ne,Pe?"left":"right"),fn=_e(un-1,Pe?"right":"left"),Io=Lt==null&&Ne==0,ai=zt==null&&un==Xt,Ze=$e==0,pr=!cn||$e==cn.length-1;if(fn.top-Ee.top<=3){var Ue=(_?Io:ai)&&Ze,Wu=(_?ai:Io)&&pr,Pr=Ue?y:(Pe?Ee:fn).left,Hi=Wu?x:(Pe?fn:Ee).right;N(Pr,Ee.top,Hi-Pr,Ee.bottom)}else{var Bi,tn,Fo,Uu;Pe?(Bi=_&&Io&&Ze?y:Ee.left,tn=_?x:kn(Ne,Ve,"before"),Fo=_?y:kn(un,Ve,"after"),Uu=_&&ai&&pr?x:fn.right):(Bi=_?kn(Ne,Ve,"before"):y,tn=!_&&Io&&Ze?x:Ee.right,Fo=!_&&ai&&pr?y:fn.left,Uu=_?kn(un,Ve,"after"):x),N(Bi,Ee.top,tn-Bi,Ee.bottom),Ee.bottom<fn.top&&N(y,Ee.bottom,null,fn.top),N(Fo,fn.top,Uu-Fo,fn.bottom)}(!ge||ea(Ee,ge)<0)&&(ge=Ee),ea(fn,ge)<0&&(ge=fn),(!We||ea(Ee,We)<0)&&(We=Ee),ea(fn,We)<0&&(We=fn)}),{start:ge,end:We}}var W=i.from(),q=i.to();if(W.line==q.line)D(W.line,W.ch,q.ch);else{var Z=Pt(c,W.line),it=Pt(c,q.line),vt=Zn(Z)==Zn(it),bt=D(W.line,W.ch,vt?Z.text.length+1:null).end,Ct=D(q.line,vt?0:null,q.ch).start;vt&&(bt.top<Ct.top-2?(N(bt.right,bt.top,null,bt.bottom),N(y,Ct.top,Ct.left,Ct.bottom)):N(bt.right,bt.top,Ct.left-bt.right,bt.bottom)),bt.bottom<Ct.top&&N(y,bt.bottom,null,Ct.top)}a.appendChild(p)}function mu(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||To(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qd(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||bu(n))}function yu(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&To(n))},100)}function bu(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(ke(n,"focus",n,i),n.state.focused=!0,At(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()),mu(n))}function To(n,i){n.state.delayingBlurEvent||(n.state.focused&&(ke(n,"blur",n,i),n.state.focused=!1,gt(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function na(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=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-a,a=D}else{var W=y.node.getBoundingClientRect();_=W.bottom-W.top,!x&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-W.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<l&&(p-=q),On(y.line,_),Jd(y.line),y.rest))for(var Z=0;Z<y.rest.length;Z++)Jd(y.rest[Z]);if(N>n.display.sizerWidth){var it=Math.ceil(N/Co(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 Jd(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function ra(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Zl(n));var c=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,p=O(i,l),m=O(i,c);if(a&&a.ensure){var y=a.ensure.from.line,x=a.ensure.to.line;y<p?(p=y,m=O(i,Lr(Pt(i,y))+n.wrapper.clientHeight)):Math.min(x,i.lastLine())>=m&&(p=O(i,Lr(Pt(i,x))-n.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function Ow(n,i){if(!Ce(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),c=null,p=a.wrapper.ownerDocument;if(i.top+l.top<0?c=!0:i.bottom+l.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","",null,`position: absolute;
top: `+(i.top-a.viewOffset-Zl(n.display))+`px;
height: `+(i.bottom-i.top+hr(n)+a.barHeight)+`px;
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 Dw(n,i,a,l){l==null&&(l=0);var c;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?X(i.line,i.ch+1,"before"):i,i=i.ch?X(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,y=Qn(n,i),x=!a||a==i?y:Qn(n,a);c={left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-l,right:Math.max(y.left,x.left),bottom:Math.max(y.bottom,x.bottom)+l};var _=wu(n,c),N=n.doc.scrollTop,D=n.doc.scrollLeft;if(_.scrollTop!=null&&(Ps(n,_.scrollTop),Math.abs(n.doc.scrollTop-N)>1&&(m=!0)),_.scrollLeft!=null&&(zi(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function $w(n,i){var a=wu(n,i);a.scrollTop!=null&&Ps(n,a.scrollTop),a.scrollLeft!=null&&zi(n,a.scrollLeft)}function wu(n,i){var a=n.display,l=ko(n.display);i.top<0&&(i.top=0);var c=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,p=lu(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var y=n.doc.height+su(a),x=i.top<l,_=i.bottom>y-l;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:a.gutters.offsetWidth,W=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,q=Oi(n)-a.gutters.offsetWidth,Z=i.right-i.left>q;return Z&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<W?m.scrollLeft=Math.max(0,i.left+D-(Z?0:10)):i.right>q+W-3&&(m.scrollLeft=i.right+(Z?0:10)-q),m}function xu(n,i){i!=null&&(ia(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Eo(n){ia(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Ns(n,i,a){(i!=null||a!=null)&&ia(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Rw(n,i){ia(n),n.curOp.scrollToPos=i}function ia(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Vd(n,i.from),l=Vd(n,i.to);tp(n,a,l,i.margin)}}function tp(n,i,a,l){var c=wu(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});Ns(n,c.scrollLeft,c.scrollTop)}function Ps(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Su(n,{top:i}),ep(n,i,!0),s&&Su(n),$s(n,100))}function ep(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function zi(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,sp(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Os(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+su(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+hr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Ii=function(n,i,a){this.cm=a;var l=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");l.tabIndex=c.tabIndex=-1,n(l),n(c),Rt(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Rt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ii.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var c=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var p=n.viewWidth-n.barLeft-(a?l: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&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},Ii.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ii.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ii.prototype.zeroWidthHack=function(){var n=B&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Mt,this.disableVert=new Mt},Ii.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var c=n.getBoundingClientRect(),p=a=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Ii.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ds=function(){};Ds.prototype.update=function(){return{bottom:0,right:0}},Ds.prototype.setScrollLeft=function(){},Ds.prototype.setScrollTop=function(){},Ds.prototype.clear=function(){};function Lo(n,i){i||(i=Os(n));var a=n.display.barWidth,l=n.display.barHeight;np(n,i);for(var c=0;c<4&&a!=n.display.barWidth||l!=n.display.barHeight;c++)a!=n.display.barWidth&&n.options.lineWrapping&&na(n),np(n,Os(n)),a=n.display.barWidth,l=n.display.barHeight}function np(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var rp={native:Ii,null:Ds};function ip(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&gt(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new rp[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Rt(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?zi(n,i):Ps(n,i)},n),n.display.scrollbars.addClass&&At(n.display.wrapper,n.display.scrollbars.addClass)}var zw=0;function Fi(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:++zw,markArrays:null},pw(n.curOp)}function qi(n){var i=n.curOp;i&&vw(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Iw(a)})}function Iw(n){for(var i=n.ops,a=0;a<i.length;a++)Fw(i[a]);for(var l=0;l<i.length;l++)qw(i[l]);for(var c=0;c<i.length;c++)Hw(i[c]);for(var p=0;p<i.length;p++)Bw(i[p]);for(var m=0;m<i.length;m++)Ww(i[m])}function Fw(n){var i=n.cm,a=i.display;jw(i),n.updateMaxLine&&iu(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new oa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function qw(n){n.updatedDisplay=n.mustUpdate&&_u(n.cm,n.update)}function Hw(n){var i=n.cm,a=i.display;n.updatedDisplay&&na(i),n.barMeasure=Os(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Id(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+hr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Oi(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Bw(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&zi(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==yt(Qt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Lo(i,n.barMeasure),n.updatedDisplay&&Cu(i,n.barMeasure),n.selectionChanged&&mu(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Qd(n.cm)}function Ww(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&op(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ep(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&zi(i,n.scrollLeft,!0,!0),n.scrollToPos){var c=Dw(i,Wt(l,n.scrollToPos.from),Wt(l,n.scrollToPos.to),n.scrollToPos.margin);Ow(i,c)}var p=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(p)for(var y=0;y<p.length;++y)p[y].lines.length||ke(p[y],"hide");if(m)for(var x=0;x<m.length;++x)m[x].lines.length&&ke(m[x],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&ke(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Sn(n,i){if(n.curOp)return i();Fi(n);try{return i()}finally{qi(n)}}function He(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Fi(n);try{return i.apply(n,arguments)}finally{qi(n)}}}function Je(n){return function(){if(this.curOp)return n.apply(this,arguments);Fi(this);try{return n.apply(this,arguments)}finally{qi(this)}}}function Be(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Fi(i);try{return n.apply(this,arguments)}finally{qi(i)}}}function $s(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,j(Uw,n))}function Uw(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ks(n,i.highlightFrontier),c=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(p){if(l.line>=n.display.viewFrom){var m=p.styles,y=p.text.length>n.options.maxHighlightLength?ur(i.mode,l.state):null,x=hd(n,p,l,!0);y&&(l.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),W=0;!D&&W<m.length;++W)D=m[W]!=p.styles[W];D&&c.push(l.line),p.stateAfter=l.save(),l.nextLine()}else p.text.length<=n.options.maxHighlightLength&&Qc(n,p.text,l),p.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return $s(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),c.length&&Sn(n,function(){for(var p=0;p<c.length;p++)ei(n,c[p],"text")})}}var oa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ra(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Oi(n),this.force=a,this.dims=du(n),this.events=[]};oa.prototype.signal=function(n,i){_n(n,i)&&this.events.push(arguments)},oa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)ke.apply(null,this.events[n])};function jw(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=hr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=hr(n)+"px",i.scrollbarsClipped=!0)}function Vw(n){if(n.hasFocus())return null;var i=yt(Qt(n));if(!i||!Q(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Tt(n).getSelection();l.anchorNode&&l.extend&&Q(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Gw(n){if(!(!n||!n.activeElt||n.activeElt==yt(Gt(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&Q(document.body,n.anchorNode)&&Q(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function _u(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return ni(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Yd(n)==0)return!1;lp(n)&&(ni(n),i.dims=du(n));var c=l.first+l.size,p=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(c,i.visible.to+n.options.viewportMargin);a.viewFrom<p&&p-a.viewFrom<20&&(p=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(c,a.viewTo)),Er&&(p=nu(n.doc,p),m=Td(n.doc,m));var y=p!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Nw(n,p,m),a.viewOffset=Lr(Pt(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var x=Yd(n);if(!y&&x==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=Vw(n);return x>4&&(a.lineDiv.style.display="none"),Kw(n,a.updateLineNumbers,i.dims),x>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Gw(_),G(a.cursorDiv),G(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,y&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,$s(n,400)),a.updateLineNumbers=null,!0}function op(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Oi(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+su(n.display)-lu(n),a.top)}),i.visible=ra(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ra(n.display,n.doc,a));if(!_u(n,i))break;na(n);var c=Os(n);Ms(n),Lo(n,c),Cu(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 Su(n,i){var a=new oa(n,i);if(_u(n,a)){na(n),op(n,a);var l=Os(n);Ms(n),Lo(n,l),Cu(n,l),a.finish()}}function Kw(n,i,a){var l=n.display,c=n.options.lineNumbers,p=l.lineDiv,m=p.firstChild;function y(Z){var it=Z.nextSibling;return v&&B&&n.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),it}for(var x=l.view,_=l.viewFrom,N=0;N<x.length;N++){var D=x[N];if(!D.hidden)if(!D.node||D.node.parentNode!=p){var W=xw(n,D,_,a);p.insertBefore(W,m)}else{for(;m!=D.node;)m=y(m);var q=c&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Et(D.changes,"gutter")>-1&&(q=!1),Nd(n,D,_,a)),q&&(G(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(dt(n.options,_)))),m=D.node.nextSibling}_+=D.size}for(;m;)m=y(m)}function ku(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",qe(n,"gutterChanged",n)}function Cu(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+hr(n)+"px"}function sp(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=pu(i)-i.scroller.scrollLeft+n.doc.scrollLeft,c=i.gutters.offsetWidth,p=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=p),a[m].gutterBackground&&(a[m].gutterBackground.style.left=p));var y=a[m].alignable;if(y)for(var x=0;x<y.length;x++)y[x].style.left=p}n.options.fixedGutter&&(i.gutters.style.left=l+c+"px")}}function lp(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=dt(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var c=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=c.firstChild.offsetWidth,m=c.offsetWidth-p;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(p,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",ku(n.display),!0}return!1}function Tu(n,i){for(var a=[],l=!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)l=!0;else continue;a.push({className:p,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function ap(n){var i=n.gutters,a=n.gutterSpecs;G(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var c=a[l],p=c.className,m=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+p));m&&(y.style.cssText=m),p=="CodeMirror-linenumbers"&&(n.lineGutter=y,y.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",ku(n)}function Rs(n){ap(n.display),ln(n),sp(n)}function Xw(n,i,a,l){var c=this;this.input=a,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=F("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=F("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var p=F("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: "+$+"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&&!(s&&E)&&(c.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(c.wrapper):n(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Tu(l.gutters,l.lineNumbers),ap(c),a.init(c)}var sa=0,Mr=null;d?Mr=-.53:s?Mr=15:w?Mr=-.7:A&&(Mr=-1/3);function cp(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Yw(n){var i=cp(n);return i.x*=Mr,i.y*=Mr,i}function up(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 a=cp(i),l=a.x,c=a.y,p=Mr;i.deltaMode===0&&(l=i.deltaX,c=i.deltaY,p=1);var m=n.display,y=m.scroller,x=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(l&&x||c&&_){if(c&&B&&v){t:for(var N=i.target,D=m.view;N!=y;N=N.parentNode)for(var W=0;W<D.length;W++)if(D[W].node==N){n.display.currentWheelTarget=N;break t}}if(l&&!s&&!P&&p!=null){c&&_&&Ps(n,Math.max(0,y.scrollTop+c*p)),zi(n,Math.max(0,y.scrollLeft+l*p)),(!c||c&&_)&&Xe(i),m.wheelStartX=null;return}if(c&&p!=null){var q=c*p,Z=n.doc.scrollTop,it=Z+m.wrapper.clientHeight;q<0?Z=Math.max(0,Z+q-50):it=Math.min(n.doc.height,it+q+50),Su(n,{top:Z,bottom:it})}sa<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=y.scrollLeft,m.wheelStartY=y.scrollTop,m.wheelDX=l,m.wheelDY=c,setTimeout(function(){if(m.wheelStartX!=null){var vt=y.scrollLeft-m.wheelStartX,bt=y.scrollTop-m.wheelStartY,Ct=bt&&m.wheelDY&&bt/m.wheelDY||vt&&m.wheelDX&&vt/m.wheelDX;m.wheelStartX=m.wheelStartY=null,Ct&&(Mr=(Mr*sa+Ct)/(sa+1),++sa)}},200)):(m.wheelDX+=l,m.wheelDY+=c))}}var Dn=function(n,i){this.ranges=n,this.primIndex=i};Dn.prototype.primary=function(){return this.ranges[this.primIndex]},Dn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ce(a.anchor,l.anchor)||!ce(a.head,l.head))return!1}return!0},Dn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ue(Fe(this.ranges[i].anchor),Fe(this.ranges[i].head));return new Dn(n,this.primIndex)},Dn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Dn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_t(i,l.from())>=0&&_t(n,l.to())<=0)return a}return-1};var ue=function(n,i){this.anchor=n,this.head=i};ue.prototype.from=function(){return wo(this.anchor,this.head)},ue.prototype.to=function(){return sn(this.anchor,this.head)},ue.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Jn(n,i,a){var l=n&&n.options.selectionsMayTouch,c=i[a];i.sort(function(W,q){return _t(W.from(),q.from())}),a=Et(i,c);for(var p=1;p<i.length;p++){var m=i[p],y=i[p-1],x=_t(y.to(),m.from());if(l&&!m.empty()?x>0:x>=0){var _=wo(y.from(),m.from()),N=sn(y.to(),m.to()),D=y.empty()?m.from()==m.head:y.from()==y.head;p<=a&&--a,i.splice(--p,2,new ue(D?N:_,D?_:N))}}return new Dn(i,a)}function ri(n,i){return new Dn([new ue(n,i||n)],0)}function ii(n){return n.text?X(n.from.line+n.text.length-1,ct(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function fp(n,i){if(_t(n,i.from)<0)return n;if(_t(n,i.to)<=0)return ii(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=ii(i).ch-i.to.ch),X(a,l)}function Eu(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var c=n.sel.ranges[l];a.push(new ue(fp(c.anchor,i),fp(c.head,i)))}return Jn(n.cm,a,n.sel.primIndex)}function hp(n,i,a){return n.line==i.line?X(a.line,n.ch-i.ch+a.ch):X(a.line+(n.line-i.line),n.ch)}function Zw(n,i,a){for(var l=[],c=X(n.first,0),p=c,m=0;m<i.length;m++){var y=i[m],x=hp(y.from,c,p),_=hp(ii(y),c,p);if(c=y.to,p=_,a=="around"){var N=n.sel.ranges[m],D=_t(N.head,N.anchor)<0;l[m]=new ue(D?_:x,D?x:_)}else l[m]=new ue(x,x)}return new Dn(l,n.sel.primIndex)}function Lu(n){n.doc.mode=mo(n.options,n.doc.modeOption),zs(n)}function zs(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,$s(n,100),n.state.modeGen++,n.curOp&&ln(n)}function dp(n,i){return i.from.ch==0&&i.to.ch==0&&ct(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Au(n,i,a,l){function c(Ct){return a?a[Ct]:null}function p(Ct,wt,Lt){ow(Ct,wt,Lt,l),qe(Ct,"change",Ct,i)}function m(Ct,wt){for(var Lt=[],zt=Ct;zt<wt;++zt)Lt.push(new xo(_[zt],c(zt),l));return Lt}var y=i.from,x=i.to,_=i.text,N=Pt(n,y.line),D=Pt(n,x.line),W=ct(_),q=c(_.length-1),Z=x.line-y.line;if(i.full)n.insert(0,m(0,_.length)),n.remove(_.length,n.size-_.length);else if(dp(n,i)){var it=m(0,_.length-1);p(D,D.text,q),Z&&n.remove(y.line,Z),it.length&&n.insert(y.line,it)}else if(N==D)if(_.length==1)p(N,N.text.slice(0,y.ch)+W+N.text.slice(x.ch),q);else{var vt=m(1,_.length-1);vt.push(new xo(W+N.text.slice(x.ch),q,l)),p(N,N.text.slice(0,y.ch)+_[0],c(0)),n.insert(y.line+1,vt)}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,Z);else{p(N,N.text.slice(0,y.ch)+_[0],c(0)),p(D,W+D.text.slice(x.ch),q);var bt=m(1,_.length-1);Z>1&&n.remove(y.line+1,Z-1),n.insert(y.line+1,bt)}qe(n,"change",n,i)}function oi(n,i,a){function l(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;a&&!_||(i(x.doc,_),l(x.doc,c,_))}}}l(n,null,!0)}function pp(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,gu(n),Lu(n),gp(n),n.options.direction=i.direction,n.options.lineWrapping||iu(n),n.options.mode=i.modeOption,ln(n)}function gp(n){(n.doc.direction=="rtl"?At:gt)(n.display.lineDiv,"CodeMirror-rtl")}function Qw(n){Sn(n,function(){gp(n),ln(n)})}function la(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 Mu(n,i){var a={from:Fe(i.from),to:ii(i),text:Tr(n,i.from,i.to)};return yp(n,a,i.from.line,i.to.line+1),oi(n,function(l){return yp(l,a,i.from.line,i.to.line+1)},!0),a}function vp(n){for(;n.length;){var i=ct(n);if(i.ranges)n.pop();else break}}function Jw(n,i){if(i)return vp(n.done),ct(n.done);if(n.done.length&&!ct(n.done).ranges)return ct(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ct(n.done)}function mp(n,i,a,l){var c=n.history;c.undone.length=0;var p=+new Date,m,y;if((c.lastOp==l||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=Jw(c,c.lastOp==l)))y=ct(m.changes),_t(i.from,i.to)==0&&_t(i.from,y.to)==0?y.to=ii(i):m.changes.push(Mu(n,i));else{var x=ct(c.done);for((!x||!x.ranges)&&aa(n.sel,c.done),m={changes:[Mu(n,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(a),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=p,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=i.origin,y||ke(n,"historyAdded")}function tx(n,i,a,l){var c=i.charAt(0);return c=="*"||c=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function ex(n,i,a,l){var c=n.history,p=l&&l.origin;a==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||tx(n,p,ct(c.done),i))?c.done[c.done.length-1]=i:aa(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=a,l&&l.clearRedo!==!1&&vp(c.undone)}function aa(n,i){var a=ct(i);a&&a.ranges&&a.equals(n)||i.push(n)}function yp(n,i,a,l){var c=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((c||(c=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function nx(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function rx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],c=0;c<i.text.length;++c)l.push(nx(a[c]));return l}function bp(n,i){var a=rx(n,i),l=tu(n,i);if(!a)return l;if(!l)return a;for(var c=0;c<a.length;++c){var p=a[c],m=l[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&&(a[c]=m)}return a}function Ao(n,i,a){for(var l=[],c=0;c<n.length;++c){var p=n[c];if(p.ranges){l.push(a?Dn.prototype.deepCopy.call(p):p);continue}var m=p.changes,y=[];l.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+)$/))&&Et(i,Number(N[1]))>-1&&(ct(y)[D]=_[D],delete _[D])}}return l}function Nu(n,i,a,l){if(l){var c=n.anchor;if(a){var p=_t(i,c)<0;p!=_t(a,c)<0?(c=i,i=a):p!=_t(i,a)<0&&(i=a)}return new ue(c,i)}else return new ue(a||i,i)}function ca(n,i,a,l,c){c==null&&(c=n.cm&&(n.cm.display.shift||n.extend)),Ye(n,new Dn([Nu(n.sel.primary(),i,a,c)],0),l)}function wp(n,i,a){for(var l=[],c=n.cm&&(n.cm.display.shift||n.extend),p=0;p<n.sel.ranges.length;p++)l[p]=Nu(n.sel.ranges[p],i[p],null,c);var m=Jn(n.cm,l,n.sel.primIndex);Ye(n,m,a)}function Pu(n,i,a,l){var c=n.sel.ranges.slice(0);c[i]=a,Ye(n,Jn(n.cm,c,n.sel.primIndex),l)}function xp(n,i,a,l){Ye(n,ri(i,a),l)}function ix(n,i,a){var l={ranges:i.ranges,update:function(c){this.ranges=[];for(var p=0;p<c.length;p++)this.ranges[p]=new ue(Wt(n,c[p].anchor),Wt(n,c[p].head))},origin:a&&a.origin};return ke(n,"beforeSelectionChange",n,l),n.cm&&ke(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Jn(n.cm,l.ranges,l.ranges.length-1):i}function _p(n,i,a){var l=n.history.done,c=ct(l);c&&c.ranges?(l[l.length-1]=i,ua(n,i,a)):Ye(n,i,a)}function Ye(n,i,a){ua(n,i,a),ex(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function ua(n,i,a){(_n(n,"beforeSelectionChange")||n.cm&&_n(n.cm,"beforeSelectionChange"))&&(i=ix(n,i,a));var l=a&&a.bias||(_t(i.primary().head,n.sel.primary().head)<0?-1:1);Sp(n,Cp(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Eo(n.cm)}function Sp(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,qn(n.cm)),qe(n,"cursorActivity",n))}function kp(n){Sp(n,Cp(n,n.sel,null,!1))}function Cp(n,i,a,l){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=fa(n,m.anchor,y&&y.anchor,a,l),_=m.head==m.anchor?x:fa(n,m.head,y&&y.head,a,l);(c||x!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,p)),c[p]=new ue(x,_))}return c?Jn(n.cm,c,i.primIndex):i}function Mo(n,i,a,l,c){var p=Pt(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&&(ke(x,"beforeCursorEnter"),x.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(a){var D=x.find(l<0?1:-1),W=void 0;if((l<0?N:_)&&(D=Tp(n,D,-l,D&&D.line==i.line?p:null)),D&&D.line==i.line&&(W=_t(D,a))&&(l<0?W<0:W>0))return Mo(n,D,i,l,c)}var q=x.find(l<0?-1:1);return(l<0?_:N)&&(q=Tp(n,q,l,q.line==i.line?p:null)),q?Mo(n,q,i,l,c):null}}return i}function fa(n,i,a,l,c){var p=l||1,m=Mo(n,i,a,p,c)||!c&&Mo(n,i,a,p,!0)||Mo(n,i,a,-p,c)||!c&&Mo(n,i,a,-p,!0);return m||(n.cantEdit=!0,X(n.first,0))}function Tp(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Wt(n,X(i.line-1)):null:a>0&&i.ch==(l||Pt(n,i.line)).text.length?i.line<n.first+n.size-1?X(i.line+1,0):null:new X(i.line,i.ch+a)}function Ep(n){n.setSelection(X(n.firstLine(),0),X(n.lastLine()),V)}function Lp(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(c,p,m,y){c&&(l.from=Wt(n,c)),p&&(l.to=Wt(n,p)),m&&(l.text=m),y!==void 0&&(l.origin=y)}),ke(n,"beforeChange",n,l),n.cm&&ke(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function No(n,i,a){if(n.cm){if(!n.cm.curOp)return He(n.cm,No)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((_n(n,"beforeChange")||n.cm&&_n(n.cm,"beforeChange"))&&(i=Lp(n,i,!0),!i))){var l=bd&&!a&&ew(n,i.from,i.to);if(l)for(var c=l.length-1;c>=0;--c)Ap(n,{from:l[c].from,to:l[c].to,text:c?[""]:i.text,origin:i.origin});else Ap(n,i)}}function Ap(n,i){if(!(i.text.length==1&&i.text[0]==""&&_t(i.from,i.to)==0)){var a=Eu(n,i);mp(n,i,a,n.cm?n.cm.curOp.id:NaN),Is(n,i,a,tu(n,i));var l=[];oi(n,function(c,p){!p&&Et(l,c.history)==-1&&(Op(c.history,i),l.push(c.history)),Is(c,i,null,tu(c,i))})}}function ha(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){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[_],!(a?p.ranges&&!p.equals(n.sel):!p.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(p=y.pop(),p.ranges){if(aa(p,x),a&&!p.equals(n.sel)){Ye(n,p,{clearRedo:!1});return}m=p}else if(l){y.push(p);return}else break;var N=[];aa(m,x),x.push({changes:N,generation:c.generation}),c.generation=p.generation||++c.maxGeneration;for(var D=_n(n,"beforeChange")||n.cm&&_n(n.cm,"beforeChange"),W=function(it){var vt=p.changes[it];if(vt.origin=i,D&&!Lp(n,vt,!1))return y.length=0,{};N.push(Mu(n,vt));var bt=it?Eu(n,vt):ct(y);Is(n,vt,bt,bp(n,vt)),!it&&n.cm&&n.cm.scrollIntoView({from:vt.from,to:ii(vt)});var Ct=[];oi(n,function(wt,Lt){!Lt&&Et(Ct,wt.history)==-1&&(Op(wt.history,vt),Ct.push(wt.history)),Is(wt,vt,null,bp(wt,vt))})},q=p.changes.length-1;q>=0;--q){var Z=W(q);if(Z)return Z.v}}}}function Mp(n,i){if(i!=0&&(n.first+=i,n.sel=new Dn(ft(n.sel.ranges,function(c){return new ue(X(c.anchor.line+i,c.anchor.ch),X(c.head.line+i,c.head.ch))}),n.sel.primIndex),n.cm)){ln(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)ei(n.cm,l,"gutter")}}function Is(n,i,a,l){if(n.cm&&!n.cm.curOp)return He(n.cm,Is)(n,i,a,l);if(i.to.line<n.first){Mp(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);Mp(n,c),i={from:X(n.first,0),to:X(i.to.line+c,i.to.ch),text:[ct(i.text)],origin:i.origin}}var p=n.lastLine();i.to.line>p&&(i={from:i.from,to:X(p,Pt(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Tr(n,i.from,i.to),a||(a=Eu(n,i)),n.cm?ox(n.cm,i,l):Au(n,i,l),ua(n,a,V),n.cantEdit&&fa(n,X(n.firstLine(),0))&&(n.cantEdit=!1)}}function ox(n,i,a){var l=n.doc,c=n.display,p=i.from,m=i.to,y=!1,x=p.line;n.options.lineWrapping||(x=C(Zn(Pt(l,p.line))),l.iter(x,m.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),l.sel.contains(i.from,i.to)>-1&&qn(n),Au(l,i,a,Xd(n)),n.options.lineWrapping||(l.iter(x,p.line+i.text.length,function(q){var Z=Xl(q);Z>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=Z,c.maxLineChanged=!0,y=!1)}),y&&(n.curOp.updateMaxLine=!0)),Kb(l,p.line),$s(n,400);var _=i.text.length-(m.line-p.line)-1;i.full?ln(n):p.line==m.line&&i.text.length==1&&!dp(n.doc,i)?ei(n,p.line,"text"):ln(n,p.line,m.line+1,_);var N=_n(n,"changes"),D=_n(n,"change");if(D||N){var W={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&qe(n,"change",n,W),N&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(W)}n.display.selForContextMenu=null}function Po(n,i,a,l,c){var p;l||(l=a),_t(l,a)<0&&(p=[l,a],a=p[0],l=p[1]),typeof i=="string"&&(i=n.splitLines(i)),No(n,{from:a,to:l,text:i,origin:c})}function Np(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Pp(n,i,a,l){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++)Np(p.ranges[y].anchor,i,a,l),Np(p.ranges[y].head,i,a,l);continue}for(var x=0;x<p.changes.length;++x){var _=p.changes[x];if(a<_.from.line)_.from=X(_.from.line+l,_.from.ch),_.to=X(_.to.line+l,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(n.splice(0,c+1),c=0)}}function Op(n,i){var a=i.from.line,l=i.to.line,c=i.text.length-(l-a)-1;Pp(n.done,a,l,c),Pp(n.undone,a,l,c)}function Fs(n,i,a,l){var c=i,p=i;return typeof i=="number"?p=Pt(n,ud(n,i)):c=C(i),c==null?null:(l(p,c)&&n.cm&&ei(n.cm,c,a),p)}function qs(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}qs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var c=this.lines[a];this.height-=c.height,sw(c),qe(c,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function Hs(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var c=n[l];i+=c.chunkSize(),a+=c.height,c.parent=this}this.size=i,this.height=a,this.parent=null}Hs.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],c=l.chunkSize();if(n<c){var p=Math.min(i,c-n),m=l.height;if(l.removeInner(n,p),this.height-=m-l.height,c==p&&(this.children.splice(a--,1),l.parent=null),(i-=p)==0)break;n=0}else n-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof qs))){var y=[];this.collapse(y),this.children=[new qs(y)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var c=this.children[l],p=c.chunkSize();if(n<=p){if(c.insertInner(n,i,a),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var x=new qs(c.lines.slice(y,y+=25));c.height-=x.height,this.children.splice(++l,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),a=new Hs(i);if(n.parent){n.size-=a.size,n.height-=a.height;var c=Et(n.parent.children,n);n.parent.children.splice(c+1,0,a)}else{var l=new Hs(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var c=this.children[l],p=c.chunkSize();if(n<p){var m=Math.min(i,p-n);if(c.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=p}}};var Bs=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Bs.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(a.widgets=null);var p=Ls(this);On(a,Math.max(0,a.height-p)),n&&(Sn(n,function(){Dp(n,a,-p),ei(n,l,"widget")}),qe(n,"lineWidgetCleared",n,this,l))}},Bs.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var c=Ls(this)-i;c&&(ti(this.doc,l)||On(l,l.height+c),a&&Sn(a,function(){a.curOp.forceUpdate=!0,Dp(a,l,c),qe(a,"lineWidgetChanged",a,n,C(l))}))},Vn(Bs);function Dp(n,i,a){Lr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&xu(n,a)}function sx(n,i,a,l){var c=new Bs(n,a,l),p=n.cm;return p&&c.noHScroll&&(p.display.alignWidgets=!0),Fs(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&&!ti(n,m)){var x=Lr(m)<n.scrollTop;On(m,m.height+Ls(c)),x&&xu(p,c.height),p.curOp.forceUpdate=!0}return!0}),p&&qe(p,"lineWidgetAdded",p,c,typeof i=="number"?i:C(i)),c}var $p=0,si=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++$p};si.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Fi(n),_n(this,"clear")){var a=this.find();a&&qe(this,"clear",a.from,a.to)}for(var l=null,c=null,p=0;p<this.lines.length;++p){var m=this.lines[p],y=Cs(m.markedSpans,this);n&&!this.collapsed?ei(n,C(m),"text"):n&&(y.to!=null&&(c=C(m)),y.from!=null&&(l=C(m))),m.markedSpans=Zb(m.markedSpans,y),y.from==null&&this.collapsed&&!ti(this.doc,m)&&n&&On(m,ko(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var _=Zn(this.lines[x]),N=Xl(_);N>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=N,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&ln(n,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&kp(n.doc)),n&&qe(n,"markerCleared",n,this,l,c),i&&qi(n),this.parent&&this.parent.clear()}},si.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,c=0;c<this.lines.length;++c){var p=this.lines[c],m=Cs(p.markedSpans,this);if(m.from!=null&&(a=X(i?p:C(p),m.from),n==-1))return a;if(m.to!=null&&(l=X(i?p:C(p),m.to),n==1))return l}return a&&{from:a,to:l}},si.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Sn(l,function(){var c=i.line,p=C(i.line),m=au(l,p);if(m&&(Hd(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ti(a.doc,c)&&a.height!=null){var y=a.height;a.height=null;var x=Ls(a)-y;x&&On(c,c.height+x)}qe(l,"markerChanged",l,n)})},si.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Et(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},si.prototype.detachLine=function(n){if(this.lines.splice(Et(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Vn(si);function Oo(n,i,a,l,c){if(l&&l.shared)return lx(n,i,a,l,c);if(n.cm&&!n.cm.curOp)return He(n.cm,Oo)(n,i,a,l,c);var p=new si(n,c),m=_t(i,a);if(l&&rt(l,p,!1),m>0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=F("span",[p.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(Cd(n,i.line,i,a,p)||i.line!=a.line&&Cd(n,a.line,i,a,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yb()}p.addToHistory&&mp(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var y=i.line,x=n.cm,_;if(n.iter(y,a.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&Zn(D)==x.display.maxLine&&(_=!0),p.collapsed&&y!=i.line&&On(D,0),Qb(D,new jl(p,y==i.line?i.ch:null,y==a.line?a.ch:null),n.cm&&n.cm.curOp),++y}),p.collapsed&&n.iter(i.line,a.line+1,function(D){ti(n,D)&&On(D,0)}),p.clearOnEnter&&Rt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(Xb(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++$p,p.atomic=!0),x){if(_&&(x.curOp.updateMaxLine=!0),p.collapsed)ln(x,i.line,a.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var N=i.line;N<=a.line;N++)ei(x,N,"text");p.atomic&&kp(x.doc),qe(x,"markerAdded",x,p)}return p}var Ws=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Ws.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();qe(this,"clear")}},Ws.prototype.find=function(n,i){return this.primary.find(n,i)},Vn(Ws);function lx(n,i,a,l,c){l=rt(l),l.shared=!1;var p=[Oo(n,i,a,l,c)],m=p[0],y=l.widgetNode;return oi(n,function(x){y&&(l.widgetNode=y.cloneNode(!0)),p.push(Oo(x,Wt(x,i),Wt(x,a),l,c));for(var _=0;_<x.linked.length;++_)if(x.linked[_].isParent)return;m=ct(p)}),new Ws(p,m)}function Rp(n){return n.findMarks(X(n.first,0),n.clipPos(X(n.lastLine())),function(i){return i.parent})}function ax(n,i){for(var a=0;a<i.length;a++){var l=i[a],c=l.find(),p=n.clipPos(c.from),m=n.clipPos(c.to);if(_t(p,m)){var y=Oo(n,p,m,l.primary,l.primary.type);l.markers.push(y),y.parent=l}}}function cx(n){for(var i=function(l){var c=n[l],p=[c.primary.doc];oi(c.primary.doc,function(x){return p.push(x)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];Et(p,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var ux=0,an=function(n,i,a,l,c){if(!(this instanceof an))return new an(n,i,a,l,c);a==null&&(a=0),Hs.call(this,[new qs([new xo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var p=X(a,0);this.sel=ri(p),this.history=new la(null),this.id=++ux,this.modeOption=i,this.lineSep=l,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Au(this,{from:p,to:p,text:n}),Ye(this,ri(p),V)};an.prototype=Dt(Hs.prototype,{constructor:an,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=Ss(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Be(function(n){var i=X(this.first,0),a=this.first+this.size-1;No(this,{from:i,to:X(a,Pt(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Ns(this.cm,0,0),Ye(this,ri(i),V)}),replaceRange:function(n,i,a,l){i=Wt(this,i),a=a?Wt(this,a):i,Po(this,n,i,a,l)},getRange:function(n,i,a){var l=Tr(this,Wt(this,n),Wt(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(et(this,n))return Pt(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pt(this,n)),Zn(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Wt(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Be(function(n,i,a){xp(this,Wt(this,typeof n=="number"?X(n,i||0):n),null,a)}),setSelection:Be(function(n,i,a){xp(this,Wt(this,n),Wt(this,i||n),a)}),extendSelection:Be(function(n,i,a){ca(this,Wt(this,n),i&&Wt(this,i),a)}),extendSelections:Be(function(n,i){wp(this,fd(this,n),i)}),extendSelectionsBy:Be(function(n,i){var a=ft(this.sel.ranges,n);wp(this,fd(this,a),i)}),setSelections:Be(function(n,i,a){if(n.length){for(var l=[],c=0;c<n.length;c++)l[c]=new ue(Wt(this,n[c].anchor),Wt(this,n[c].head||n[c].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),Ye(this,Jn(this.cm,l,i),a)}}),addSelection:Be(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ue(Wt(this,n),Wt(this,i||n))),Ye(this,Jn(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var c=Tr(this,i[l].from(),i[l].to());a=a?a.concat(c):c}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var c=Tr(this,a[l].from(),a[l].to());n!==!1&&(c=c.join(n||this.lineSeparator())),i[l]=c}return i},replaceSelection:function(n,i,a){for(var l=[],c=0;c<this.sel.ranges.length;c++)l[c]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Be(function(n,i,a){for(var l=[],c=this.sel,p=0;p<c.ranges.length;p++){var m=c.ranges[p];l[p]={from:m.from(),to:m.to(),text:this.splitLines(n[p]),origin:a}}for(var y=i&&i!="end"&&Zw(this,l,i),x=l.length-1;x>=0;x--)No(this,l[x]);y?_p(this,y):this.cm&&Eo(this.cm)}),undo:Be(function(){ha(this,"undo")}),redo:Be(function(){ha(this,"redo")}),undoSelection:Be(function(){ha(this,"undo",!0)}),redoSelection:Be(function(){ha(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var c=0;c<n.undone.length;c++)n.undone[c].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new la(this.history),oi(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:Ao(this.history.done),undone:Ao(this.history.undone)}},setHistory:function(n){var i=this.history=new la(this.history);i.done=Ao(n.done.slice(0),null,!0),i.undone=Ao(n.undone.slice(0),null,!0)},setGutterMarker:Be(function(n,i,a){return Fs(this,n,"gutter",function(l){var c=l.gutterMarkers||(l.gutterMarkers={});return c[i]=a,!a&&oe(c)&&(l.gutterMarkers=null),!0})}),clearGutter:Be(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Fs(i,a,"gutter",function(){return a.gutterMarkers[n]=null,oe(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!et(this,n)||(i=n,n=Pt(this,n),!n))return null}else if(i=C(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:Be(function(n,i,a){return Fs(this,n,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[c])l[c]=a;else{if(pt(a).test(l[c]))return!1;l[c]+=" "+a}return!0})}),removeLineClass:Be(function(n,i,a){return Fs(this,n,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",p=l[c];if(p)if(a==null)l[c]=null;else{var m=p.match(pt(a));if(!m)return!1;var y=m.index+m[0].length;l[c]=p.slice(0,m.index)+(!m.index||y==p.length?"":" ")+p.slice(y)||null}else return!1;return!0})}),addLineWidget:Be(function(n,i,a){return sx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Oo(this,Wt(this,n),Wt(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Wt(this,n),Oo(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Wt(this,n);var i=[],a=Pt(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var c=a[l];(c.from==null||c.from<=n.ch)&&(c.to==null||c.to>=n.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(n,i,a){n=Wt(this,n),i=Wt(this,i);var l=[],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)&&(!a||a(x.marker))&&l.push(x.marker.parent||x.marker)}++c}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(c){var p=c.text.length+l;if(p>n)return i=n,!0;n-=p,++a}),Wt(this,X(a,i))},indexFromPos:function(n){n=Wt(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new an(Ss(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new an(Ss(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],ax(l,Rp(this)),l},unlinkDoc:function(n){if(n instanceof be&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),cx(Rp(this));break}}if(n.history==this.history){var l=[n.id];oi(n,function(c){return l.push(c.id)},!0),n.history=new la(null),n.history.done=Ao(this.history.done,l),n.history.undone=Ao(this.history.undone,l)}},iterLinkedDocs:function(n){oi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Hn(n)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Be(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Qw(this.cm))})}),an.prototype.eachLine=an.prototype.iter;var zp=0;function fx(n){var i=this;if(Ip(i),!(Ce(i,n)||Ar(i.display,n))){Xe(n),d&&(zp=+new Date);var a=$i(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var c=l.length,p=Array(c),m=0,y=function(){++m==c&&He(i,function(){a=Wt(i.doc,a);var q={from:a,to:a,text:i.doc.splitLines(p.filter(function(Z){return Z!=null}).join(i.doc.lineSeparator())),origin:"paste"};No(i.doc,q),_p(i.doc,ri(Wt(i.doc,a),Wt(i.doc,ii(q))))})()},x=function(q,Z){if(i.options.allowDropFileTypes&&Et(i.options.allowDropFileTypes,q.type)==-1){y();return}var it=new FileReader;it.onerror=function(){return y()},it.onload=function(){var vt=it.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(vt)){y();return}p[Z]=vt,y()},it.readAsText(q)},_=0;_<l.length;_++)x(l[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=n.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),ua(i.doc,ri(a,a)),D)for(var W=0;W<D.length;++W)Po(i.doc,"",D[W].anchor,D[W].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function hx(n,i){if(d&&(!n.state.draggingText||+new Date-zp<100)){Yr(i);return}if(!(Ce(n,i)||Ar(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",P&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),P&&a.parentNode.removeChild(a)}}function dx(n,i){var a=$i(n,i);if(a){var l=document.createDocumentFragment();vu(n,a,l),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,l)}}function Ip(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Fp(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var c=i[l].CodeMirror;c&&a.push(c)}a.length&&a[0].operation(function(){for(var p=0;p<a.length;p++)n(a[p])})}}var qp=!1;function px(){qp||(gx(),qp=!0)}function gx(){var n;Rt(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Fp(vx)},100))}),Rt(window,"blur",function(){return Fp(To)})}function vx(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var li={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"},Us=0;Us<10;Us++)li[Us+48]=li[Us+96]=String(Us);for(var da=65;da<=90;da++)li[da]=String.fromCharCode(da);for(var js=1;js<=12;js++)li[js+111]=li[js+63235]="F"+js;var Nr={};Nr.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"},Nr.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"},Nr.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"},Nr.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"]},Nr.default=B?Nr.macDefault:Nr.pcDefault;function mx(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,c,p,m=0;m<i.length-1;m++){var y=i[m];if(/^(cmd|meta|m)$/i.test(y))p=!0;else if(/^a(lt)?$/i.test(y))a=!0;else if(/^(c|ctrl|control)$/i.test(y))l=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),p&&(n="Cmd-"+n),c&&(n="Shift-"+n),n}function yx(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var c=ft(a.split(" "),mx),p=0;p<c.length;p++){var m=void 0,y=void 0;p==c.length-1?(y=c.join(" "),m=l):(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[a]}for(var _ in i)n[_]=i[_];return n}function Do(n,i,a,l){i=pa(i);var c=i.call?i.call(n,l):i[n];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&a(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Do(n,i.fallthrough,a,l);for(var p=0;p<i.fallthrough.length;p++){var m=Do(n,i.fallthrough[p],a,l);if(m)return m}}}function Hp(n){var i=typeof n=="string"?n:li[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Bp(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(nt?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(nt?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Wp(n,i){if(P&&n.keyCode==34&&n.char)return!1;var a=li[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Bp(a,n,i))}function pa(n){return typeof n=="string"?Nr[n]:n}function $o(n,i){for(var a=n.doc.sel.ranges,l=[],c=0;c<a.length;c++){for(var p=i(a[c]);l.length&&_t(p.from,ct(l).to)<=0;){var m=l.pop();if(_t(m.from,p.from)<0){p.from=m.from;break}}l.push(p)}Sn(n,function(){for(var y=l.length-1;y>=0;y--)Po(n.doc,"",l[y].from,l[y].to,"+delete");Eo(n)})}function Ou(n,i,a){var l=rn(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Du(n,i,a){var l=Ou(n,i.ch,a);return l==null?null:new X(i.line,l,a<0?"after":"before")}function $u(n,i,a,l,c){if(n){i.doc.direction=="rtl"&&(c=-c);var p=Yt(a,i.doc.direction);if(p){var m=c<0?ct(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,a);_=c<0?a.text.length-1:0;var D=dr(i,N,_).top;_=Pn(function(W){return dr(i,N,W).top==D},c<0==(m.level==1)?m.from:m.to-1,_),x=="before"&&(_=Ou(a,_,1))}else _=c<0?m.to:m.from;return new X(l,_,x)}}return new X(l,c<0?a.text.length:0,c<0?"before":"after")}function bx(n,i,a,l){var c=Yt(i,n.doc.direction);if(!c)return Du(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var p=Ae(c,a.ch,a.sticky),m=c[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Du(i,a,l);var y=function(bt,Ct){return Ou(i,bt instanceof X?bt.ch:bt,Ct)},x,_=function(bt){return n.options.lineWrapping?(x=x||So(n,i),Kd(n,i,x,bt)):{begin:0,end:i.text.length}},N=_(a.sticky=="before"?y(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==l<0,W=y(a,D?1:-1);if(W!=null&&(D?W<=m.to&&W<=N.end:W>=m.from&&W>=N.begin)){var q=D?"before":"after";return new X(a.line,W,q)}}var Z=function(bt,Ct,wt){for(var Lt=function(ge,We){return We?new X(a.line,y(ge,1),"before"):new X(a.line,ge,"after")};bt>=0&&bt<c.length;bt+=Ct){var zt=c[bt],Ot=Ct>0==(zt.level!=1),Xt=Ot?wt.begin:y(wt.end,-1);if(zt.from<=Xt&&Xt<zt.to||(Xt=Ot?zt.from:y(zt.to,-1),wt.begin<=Xt&&Xt<wt.end))return Lt(Xt,Ot)}},it=Z(p+l,l,N);if(it)return it;var vt=l>0?N.end:y(N.begin,-1);return vt!=null&&!(l>0&&vt==i.text.length)&&(it=Z(l>0?0:c.length-1,l,_(vt)),it)?it:null}var Vs={selectAll:Ep,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),V)},killLine:function(n){return $o(n,function(i){if(i.empty()){var a=Pt(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:X(i.head.line+1,0)}:{from:i.head,to:X(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return $o(n,function(i){return{from:X(i.from().line,0),to:Wt(n.doc,X(i.to().line+1,0))}})},delLineLeft:function(n){return $o(n,function(i){return{from:X(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return $o(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return $o(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},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(X(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(X(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Up(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return jp(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return wx(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},ot)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},ot)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?jp(n,i.head):l},ot)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,c=0;c<a.length;c++){var p=a[c].from(),m=lt(n.getLine(p.line),p.ch,l);i.push(mt(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Sn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var c=i[l].head,p=Pt(n.doc,c.line).text;if(p){if(c.ch==p.length&&(c=new X(c.line,c.ch-1)),c.ch>0)c=new X(c.line,c.ch+1),n.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),X(c.line,c.ch-2),c,"+transpose");else if(c.line>n.doc.first){var m=Pt(n.doc,c.line-1).text;m&&(c=new X(c.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),X(c.line-1,m.length-1),c,"+transpose"))}}a.push(new ue(c,c))}n.setSelections(a)})},newlineAndIndent:function(n){return Sn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Eo(n)})},openLine:function(n){return n.replaceSelection(`
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Up(n,i){var a=Pt(n.doc,i),l=Zn(a);return l!=a&&(i=C(l)),$u(!0,n,l,i,1)}function wx(n,i){var a=Pt(n.doc,i),l=rw(a);return l!=a&&(i=C(l)),$u(!0,n,a,i,-1)}function jp(n,i){var a=Up(n,i.line),l=Pt(n.doc,a.line),c=Yt(l,n.doc.direction);if(!c||c[0].level==0){var p=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=p&&i.ch;return X(a.line,m?0:p,a.sticky)}return a}function ga(n,i,a){if(typeof i=="string"&&(i=Vs[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,c=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),c=i(n)!=I}finally{n.display.shift=l,n.state.suppressEdits=!1}return c}function xx(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var c=Do(i,n.state.keyMaps[l],a,n);if(c)return c}return n.options.extraKeys&&Do(i,n.options.extraKeys,a,n)||Do(i,n.options.keyMap,a,n)}var _x=new Mt;function Gs(n,i,a,l){var c=n.state.keySeq;if(c){if(Hp(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:_x.set(50,function(){n.state.keySeq==c&&(n.state.keySeq=null,n.display.input.reset())}),Vp(n,c+" "+i,a,l))return!0}return Vp(n,i,a,l)}function Vp(n,i,a,l){var c=xx(n,i,l);return c=="multi"&&(n.state.keySeq=i),c=="handled"&&qe(n,"keyHandled",n,i,a),(c=="handled"||c=="multi")&&(Xe(a),mu(n)),!!c}function Gp(n,i){var a=Wp(i,!0);return a?i.shiftKey&&!n.state.keySeq?Gs(n,"Shift-"+a,i,function(l){return ga(n,l,!0)})||Gs(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return ga(n,l)}):Gs(n,a,i,function(l){return ga(n,l)}):!1}function Sx(n,i,a){return Gs(n,"'"+a+"'",i,function(l){return ga(n,l,!0)})}var Ru=null;function Kp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=yt(Qt(i)),!Ce(i,n))){d&&g<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Gp(i,n);P&&(Ru=l?a:null,!l&&a==88&&!Wl&&(B?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!B&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&kx(i)}}function kx(n){var i=n.display.lineDiv;At(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(gt(i,"CodeMirror-crosshair"),Ke(document,"keyup",a),Ke(document,"mouseover",a))}Rt(document,"keyup",a),Rt(document,"mouseover",a)}function Xp(n){n.keyCode==16&&(this.doc.sel.shift=!1),Ce(this,n)}function Yp(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Ar(i.display,n)||Ce(i,n)||n.ctrlKey&&!n.altKey||B&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(P&&a==Ru){Ru=null,Xe(n);return}if(!(P&&(!n.which||n.which<10)&&Gp(i,n))){var c=String.fromCharCode(l??a);c!="\b"&&(Sx(i,n,c)||i.display.input.onKeyPress(n))}}}var Cx=400,zu=function(n,i,a){this.time=n,this.pos=i,this.button=a};zu.prototype.compare=function(n,i,a){return this.time+Cx>n&&_t(i,this.pos)==0&&a==this.button};var Ks,Xs;function Tx(n,i){var a=+new Date;return Xs&&Xs.compare(a,n,i)?(Ks=Xs=null,"triple"):Ks&&Ks.compare(a,n,i)?(Xs=new zu(a,n,i),Ks=null,"double"):(Ks=new zu(a,n,i),Xs=null,"single")}function Zp(n){var i=this,a=i.display;if(!(Ce(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Ar(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Iu(i,n)){var l=$i(i,n),c=Gn(n),p=l?Tx(l,c):"single";Tt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&Ex(i,c,l,p,n))&&(c==1?l?Ax(i,l,p,n):ws(n)==a.scroller&&Xe(n):c==2?(l&&ca(i.doc,l),setTimeout(function(){return a.input.focus()},20)):c==3&&(at?i.display.input.onContextMenu(n):yu(i)))}}}function Ex(n,i,a,l,c){var p="Click";return l=="double"?p="Double"+p:l=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Gs(n,Bp(p,c),c,function(m){if(typeof m=="string"&&(m=Vs[m]),!m)return!1;var y=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),y=m(n,a)!=I}finally{n.state.suppressEdits=!1}return y})}function Lx(n,i,a){var l=n.getOption("configureMouse"),c=l?l(n,i,a):{};if(c.unit==null){var p=K?a.shiftKey&&a.metaKey:a.altKey;c.unit=p?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||n.doc.extend)&&(c.extend=n.doc.extend||a.shiftKey),c.addNew==null&&(c.addNew=B?a.metaKey:a.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?a.altKey:a.ctrlKey)),c}function Ax(n,i,a,l){d?setTimeout(j(Qd,n),0):n.curOp.focus=yt(Qt(n));var c=Lx(n,a,l),p=n.doc.sel,m;n.options.dragDrop&&Yc&&!n.isReadOnly()&&a=="single"&&(m=p.contains(i))>-1&&(_t((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(_t(m.to(),i)>0||i.xRel<0)?Mx(n,l,i,c):Nx(n,l,i,c)}function Mx(n,i,a,l){var c=n.display,p=!1,m=He(n,function(_){v&&(c.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:yu(n)),Ke(c.wrapper.ownerDocument,"mouseup",m),Ke(c.wrapper.ownerDocument,"mousemove",y),Ke(c.scroller,"dragstart",x),Ke(c.scroller,"drop",m),p||(Xe(_),l.addNew||ca(n.doc,a,null,null,l.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=!l.moveOnDrag,Rt(c.wrapper.ownerDocument,"mouseup",m),Rt(c.wrapper.ownerDocument,"mousemove",y),Rt(c.scroller,"dragstart",x),Rt(c.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Qp(n,i,a){if(a=="char")return new ue(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ue(X(i.line,0),Wt(n.doc,X(i.line+1,0)));var l=a(n,i);return new ue(l.from,l.to)}function Nx(n,i,a,l){d&&yu(n);var c=n.display,p=n.doc;Xe(i);var m,y,x=p.sel,_=x.ranges;if(l.addNew&&!l.extend?(y=p.sel.contains(a),y>-1?m=_[y]:m=new ue(a,a)):(m=p.sel.primary(),y=p.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ue(a,a)),a=$i(n,i,!0,!0),y=-1;else{var N=Qp(n,a,l.unit);l.extend?m=Nu(m,N.anchor,N.head,l.extend):m=N}l.addNew?y==-1?(y=_.length,Ye(p,Jn(n,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&l.unit=="char"&&!l.extend?(Ye(p,Jn(n,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):Pu(p,y,m,J):(y=0,Ye(p,new Dn([m],0),J),x=p.sel);var D=a;function W(wt){if(_t(D,wt)!=0)if(D=wt,l.unit=="rectangle"){for(var Lt=[],zt=n.options.tabSize,Ot=lt(Pt(p,a.line).text,a.ch,zt),Xt=lt(Pt(p,wt.line).text,wt.ch,zt),ge=Math.min(Ot,Xt),We=Math.max(Ot,Xt),_e=Math.min(a.line,wt.line),kn=Math.min(n.lastLine(),Math.max(a.line,wt.line));_e<=kn;_e++){var cn=Pt(p,_e).text,Ne=ut(cn,ge,zt);ge==We?Lt.push(new ue(X(_e,Ne),X(_e,Ne))):cn.length>Ne&&Lt.push(new ue(X(_e,Ne),X(_e,ut(cn,We,zt))))}Lt.length||Lt.push(new ue(a,a)),Ye(p,Jn(n,x.ranges.slice(0,y).concat(Lt),y),{origin:"*mouse",scroll:!1}),n.scrollIntoView(wt)}else{var un=m,Ve=Qp(n,wt,l.unit),$e=un.anchor,Pe;_t(Ve.anchor,$e)>0?(Pe=Ve.head,$e=wo(un.from(),Ve.anchor)):(Pe=Ve.anchor,$e=sn(un.to(),Ve.head));var Ee=x.ranges.slice(0);Ee[y]=Px(n,new ue(Wt(p,$e),Pe)),Ye(p,Jn(n,Ee,y),J)}}var q=c.wrapper.getBoundingClientRect(),Z=0;function it(wt){var Lt=++Z,zt=$i(n,wt,!0,l.unit=="rectangle");if(zt)if(_t(zt,D)!=0){n.curOp.focus=yt(Qt(n)),W(zt);var Ot=ra(c,p);(zt.line>=Ot.to||zt.line<Ot.from)&&setTimeout(He(n,function(){Z==Lt&&it(wt)}),150)}else{var Xt=wt.clientY<q.top?-20:wt.clientY>q.bottom?20:0;Xt&&setTimeout(He(n,function(){Z==Lt&&(c.scroller.scrollTop+=Xt,it(wt))}),50)}}function vt(wt){n.state.selectingText=!1,Z=1/0,wt&&(Xe(wt),c.input.focus()),Ke(c.wrapper.ownerDocument,"mousemove",bt),Ke(c.wrapper.ownerDocument,"mouseup",Ct),p.history.lastSelOrigin=null}var bt=He(n,function(wt){wt.buttons===0||!Gn(wt)?vt(wt):it(wt)}),Ct=He(n,vt);n.state.selectingText=Ct,Rt(c.wrapper.ownerDocument,"mousemove",bt),Rt(c.wrapper.ownerDocument,"mouseup",Ct)}function Px(n,i){var a=i.anchor,l=i.head,c=Pt(n.doc,a.line);if(_t(a,l)==0&&a.sticky==l.sticky)return i;var p=Yt(c);if(!p)return i;var m=Ae(p,a.ch,a.sticky),y=p[m];if(y.from!=a.ch&&y.to!=a.ch)return i;var x=m+(y.from==a.ch==(y.level!=1)?0:1);if(x==0||x==p.length)return i;var _;if(l.line!=a.line)_=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var N=Ae(p,l.ch,l.sticky),D=N-m||(l.ch-a.ch)*(y.level==1?-1:1);N==x-1||N==x?_=D<0:_=D>0}var W=p[x+(_?-1:0)],q=_==(W.level==1),Z=q?W.from:W.to,it=q?"after":"before";return a.ch==Z&&a.sticky==it?i:new ue(new X(a.line,Z,it),l)}function Jp(n,i,a,l){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;l&&Xe(i);var m=n.display,y=m.lineDiv.getBoundingClientRect();if(p>y.bottom||!_n(n,a))return on(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=O(n.doc,p),D=n.display.gutterSpecs[x];return ke(n,a,n,N,D.className,i),on(i)}}}function Iu(n,i){return Jp(n,i,"gutterClick",!0)}function tg(n,i){Ar(n.display,i)||Ox(n,i)||Ce(n,i,"contextmenu")||at||n.display.input.onContextMenu(i)}function Ox(n,i){return _n(n,"gutterContextMenu")?Jp(n,i,"gutterContextMenu",!1):!1}function eg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),As(n)}var Ro={toString:function(){return"CodeMirror.Init"}},ng={},va={};function Dx(n){var i=n.optionHandlers;function a(l,c,p,m){n.defaults[l]=c,p&&(i[l]=m?function(y,x,_){_!=Ro&&p(y,x,_)}:p)}n.defineOption=a,n.Init=Ro,a("value","",function(l,c){return l.setValue(c)},!0),a("mode",null,function(l,c){l.doc.modeOption=c,Lu(l)},!0),a("indentUnit",2,Lu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){zs(l),As(l),ln(l)},!0),a("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var p=[],m=l.doc.first;l.doc.iter(function(x){for(var _=0;;){var N=x.text.indexOf(c,_);if(N==-1)break;_=N+c.length,p.push(X(m,N))}m++});for(var y=p.length-1;y>=0;y--)Po(l.doc,c,p[y],X(p[y].line,p[y].ch+c.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,c,p){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=Ro&&l.refresh()}),a("specialCharPlaceholder",cw,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,c){return l.getInputField().spellcheck=c},!0),a("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),a("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),a("rtlMoveVisually",!ht),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){eg(l),Rs(l)},!0),a("keyMap","default",function(l,c,p){var m=pa(c),y=p!=Ro&&pa(p);y&&y.detach&&y.detach(l,m),m.attach&&m.attach(l,y||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Rx,!0),a("gutters",[],function(l,c){l.display.gutterSpecs=Tu(c,l.options.lineNumbers),Rs(l)},!0),a("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?pu(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Lo(l)},!0),a("scrollbarStyle","native",function(l){ip(l),Lo(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,c){l.display.gutterSpecs=Tu(l.options.gutters,c),Rs(l)},!0),a("firstLineNumber",1,Rs,!0),a("lineNumberFormatter",function(l){return l},Rs,!0),a("showCursorWhenSelecting",!1,Ms,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,c){c=="nocursor"&&(To(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),a("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),a("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),a("dragDrop",!0,$x),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Ms,!0),a("singleCursorHeightPerLine",!0,Ms,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,zs,!0),a("addModeClass",!1,zs,!0),a("pollInterval",100),a("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,zs,!0),a("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),a("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),a("autofocus",null),a("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),a("phrases",null)}function $x(n,i,a){var l=a&&a!=Ro;if(!i!=!l){var c=n.display.dragFunctions,p=i?Rt:Ke;p(n.display.scroller,"dragstart",c.start),p(n.display.scroller,"dragenter",c.enter),p(n.display.scroller,"dragover",c.over),p(n.display.scroller,"dragleave",c.leave),p(n.display.scroller,"drop",c.drop)}}function Rx(n){n.options.lineWrapping?(At(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(gt(n.display.wrapper,"CodeMirror-wrap"),iu(n)),gu(n),ln(n),As(n),setTimeout(function(){return Lo(n)},100)}function be(n,i){var a=this;if(!(this instanceof be))return new be(n,i);this.options=i=i?rt(i):{},rt(ng,i,!1);var l=i.value;typeof l=="string"?l=new an(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var c=new be.inputStyles[i.inputStyle](this),p=this.display=new Xw(n,l,c,i);p.wrapper.CodeMirror=this,eg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ip(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 Mt,keySeq:null,specialChars:null},i.autofocus&&!E&&p.input.focus(),d&&g<11&&setTimeout(function(){return a.display.input.reset(!0)},20),zx(this),px(),Fi(this),this.curOp.forceUpdate=!0,pp(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&bu(a)},20):To(this);for(var m in va)va.hasOwnProperty(m)&&va[m](this,i[m],Ro);lp(this),i.finishInit&&i.finishInit(this);for(var y=0;y<Fu.length;++y)Fu[y](this);qi(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}be.defaults=ng,be.optionHandlers=va;function zx(n){var i=n.display;Rt(i.scroller,"mousedown",He(n,Zp)),d&&g<11?Rt(i.scroller,"dblclick",He(n,function(x){if(!Ce(n,x)){var _=$i(n,x);if(!(!_||Iu(n,x)||Ar(n.display,x))){Xe(x);var N=n.findWordAt(_);ca(n.doc,N.anchor,N.head)}}})):Rt(i.scroller,"dblclick",function(x){return Ce(n,x)||Xe(x)}),Rt(i.scroller,"contextmenu",function(x){return tg(n,x)}),Rt(i.input.getField(),"contextmenu",function(x){i.scroller.contains(x.target)||tg(n,x)});var a,l={end:0};function c(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.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}Rt(i.scroller,"touchstart",function(x){if(!Ce(n,x)&&!p(x)&&!Iu(n,x)){i.input.ensurePolled(),clearTimeout(a);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-l.end<=300?l:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),Rt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Rt(i.scroller,"touchend",function(x){var _=i.activeTouch;if(_&&!Ar(i,x)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=n.coordsChar(i.activeTouch,"page"),D;!_.prev||m(_,_.prev)?D=new ue(N,N):!_.prev.prev||m(_,_.prev.prev)?D=n.findWordAt(N):D=new ue(X(N.line,0),Wt(n.doc,X(N.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),Xe(x)}c()}),Rt(i.scroller,"touchcancel",c),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ps(n,i.scroller.scrollTop),zi(n,i.scroller.scrollLeft,!0),ke(n,"scroll",n))}),Rt(i.scroller,"mousewheel",function(x){return up(n,x)}),Rt(i.scroller,"DOMMouseScroll",function(x){return up(n,x)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Ce(n,x)||Yr(x)},over:function(x){Ce(n,x)||(dx(n,x),Yr(x))},start:function(x){return hx(n,x)},drop:He(n,fx),leave:function(x){Ce(n,x)||Ip(n)}};var y=i.input.getField();Rt(y,"keyup",function(x){return Xp.call(n,x)}),Rt(y,"keydown",He(n,Kp)),Rt(y,"keypress",He(n,Yp)),Rt(y,"focus",function(x){return bu(n,x)}),Rt(y,"blur",function(x){return To(n,x)})}var Fu=[];be.defineInitHook=function(n){return Fu.push(n)};function Ys(n,i,a,l){var c=n.doc,p;a==null&&(a="add"),a=="smart"&&(c.mode.indent?p=ks(n,i).state:a="prev");var m=n.options.tabSize,y=Pt(c,i),x=lt(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!l&&!/\S/.test(y.text))N=0,a="not";else if(a=="smart"&&(N=c.mode.indent(p,y.text.slice(_.length),y.text),N==I||N>150)){if(!l)return;a="prev"}a=="prev"?i>c.first?N=lt(Pt(c,i-1).text,null,m):N=0:a=="add"?N=x+n.options.indentUnit:a=="subtract"?N=x-n.options.indentUnit:typeof a=="number"&&(N=x+a),N=Math.max(0,N);var D="",W=0;if(n.options.indentWithTabs)for(var q=Math.floor(N/m);q;--q)W+=m,D+=" ";if(W<N&&(D+=mt(N-W)),D!=_)return Po(c,D,X(i,0),X(i,_.length),"+input"),y.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var it=c.sel.ranges[Z];if(it.head.line==i&&it.head.ch<_.length){var vt=X(i,_.length);Pu(c,Z,new ue(vt,vt));break}}}var tr=null;function ma(n){tr=n}function qu(n,i,a,l,c){var p=n.doc;n.display.shift=!1,l||(l=p.sel);var m=+new Date-200,y=c=="paste"||n.state.pasteIncoming>m,x=Hn(i),_=null;if(y&&l.ranges.length>1)if(tr&&tr.text.join(`
`)==i){if(l.ranges.length%tr.text.length==0){_=[];for(var N=0;N<tr.text.length;N++)_.push(p.splitLines(tr.text[N]))}}else x.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(_=ft(x,function(bt){return[bt]}));for(var D=n.curOp.updateInput,W=l.ranges.length-1;W>=0;W--){var q=l.ranges[W],Z=q.from(),it=q.to();q.empty()&&(a&&a>0?Z=X(Z.line,Z.ch-a):n.state.overwrite&&!y?it=X(it.line,Math.min(Pt(p,it.line).text.length,it.ch+ct(x).length)):y&&tr&&tr.lineWise&&tr.text.join(`
`)==x.join(`
`)&&(Z=it=X(Z.line,0)));var vt={from:Z,to:it,text:_?_[W%_.length]:x,origin:c||(y?"paste":n.state.cutIncoming>m?"cut":"+input")};No(n.doc,vt),qe(n,"inputRead",n,vt)}i&&!y&&ig(n,i),Eo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function rg(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Sn(i,function(){return qu(i,a,0,null,"paste")}),!0}function ig(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var c=a.ranges[l];if(!(c.head.ch>100||l&&a.ranges[l-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=Ys(n,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Pt(n.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Ys(n,c.head.line,"smart"));m&&qe(n,"electricInput",n,c.head.line)}}}function og(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var c=n.doc.sel.ranges[l].head.line,p={anchor:X(c,0),head:X(c+1,0)};a.push(p),i.push(n.getRange(p.anchor,p.head))}return{text:i,ranges:a}}function Hu(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function sg(){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"),M&&(n.style.border="1px solid black"),i}function Ix(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Tt(this).focus(),this.display.input.focus()},setOption:function(l,c){var p=this.options,m=p[l];p[l]==c&&l!="mode"||(p[l]=c,i.hasOwnProperty(l)&&He(this,i[l])(this,c,m),ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,c){this.state.keyMaps[c?"push":"unshift"](pa(l))},removeKeyMap:function(l){for(var c=this.state.keyMaps,p=0;p<c.length;++p)if(c[p]==l||c[p].name==l)return c.splice(p,1),!0},addOverlay:Je(function(l,c){var p=l.token?l:n.getMode(this.options,l);if(p.startState)throw new Error("Overlays may not be stateful.");$t(this.state.overlays,{mode:p,modeSpec:l,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,ln(this)}),removeOverlay:Je(function(l){for(var c=this.state.overlays,p=0;p<c.length;++p){var m=c[p].modeSpec;if(m==l||typeof l=="string"&&m.name==l){c.splice(p,1),this.state.modeGen++,ln(this);return}}}),indentLine:Je(function(l,c,p){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),et(this.doc,l)&&Ys(this,l,c,p)}),indentSelection:Je(function(l){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&&(Ys(this,y.head.line,l,!0),p=y.head.line,m==this.doc.sel.primIndex&&Eo(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)Ys(this,D,l);var W=this.doc.sel.ranges;x.ch==0&&c.length==W.length&&W[m].from().ch>0&&Pu(this.doc,m,new ue(x,W[m].to()),V)}}}),getTokenAt:function(l,c){return vd(this,l,c)},getLineTokens:function(l,c){return vd(this,X(l),c,!0)},getTokenTypeAt:function(l){l=Wt(this.doc,l);var c=dd(this,Pt(this.doc,l.line)),p=0,m=(c.length-1)/2,y=l.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(l){var c=this.doc.mode;return c.innerMode?n.innerMode(c,this.getTokenAt(l).state).mode:c},getHelper:function(l,c){return this.getHelpers(l,c)[0]},getHelpers:function(l,c){var p=[];if(!a.hasOwnProperty(c))return p;var m=a[c],y=this.getModeAt(l);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)&&Et(p,D.val)==-1&&p.push(D.val)}return p},getStateAfter:function(l,c){var p=this.doc;return l=ud(p,l??p.first+p.size-1),ks(this,l+1,c).state},cursorCoords:function(l,c){var p,m=this.doc.sel.primary();return l==null?p=m.head:typeof l=="object"?p=Wt(this.doc,l):p=l?m.from():m.to(),Qn(this,p,c||"page")},charCoords:function(l,c){return Jl(this,Wt(this.doc,l),c||"page")},coordsChar:function(l,c){return l=jd(this,l,c||"page"),fu(this,l.left,l.top)},lineAtHeight:function(l,c){return l=jd(this,{top:l,left:0},c||"page").top,O(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,c,p){var m=!1,y;if(typeof l=="number"){var x=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>x&&(l=x,m=!0),y=Pt(this.doc,l)}else y=l;return Ql(this,y,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-Lr(y):0)},defaultTextHeight:function(){return ko(this.display)},defaultCharWidth:function(){return Co(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,p,m,y){var x=this.display;l=Qn(this,Wt(this.doc,l));var _=l.bottom,N=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),x.sizer.appendChild(c),m=="over")_=l.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),W=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||l.bottom+c.offsetHeight>D)&&l.top>c.offsetHeight?_=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=D&&(_=l.bottom),N+c.offsetWidth>W&&(N=W-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&&$w(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Je(Kp),triggerOnKeyPress:Je(Yp),triggerOnKeyUp:Xp,triggerOnMouseDown:Je(Zp),execCommand:function(l){if(Vs.hasOwnProperty(l))return Vs[l].call(null,this)},triggerElectric:Je(function(l){ig(this,l)}),findPosH:function(l,c,p,m){var y=1;c<0&&(y=-1,c=-c);for(var x=Wt(this.doc,l),_=0;_<c&&(x=Bu(this.doc,x,y,p,m),!x.hitSide);++_);return x},moveH:Je(function(l,c){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?Bu(p.doc,m.head,l,c,p.options.rtlMoveVisually):l<0?m.from():m.to()},ot)}),deleteH:Je(function(l,c){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):$o(this,function(y){var x=Bu(m,y.head,l,c,!1);return l<0?{from:x,to:y.head}:{from:y.head,to:x}})}),findPosV:function(l,c,p,m){var y=1,x=m;c<0&&(y=-1,c=-c);for(var _=Wt(this.doc,l),N=0;N<c;++N){var D=Qn(this,_,"div");if(x==null?x=D.left:D.left=x,_=lg(this,D,y,p),_.hitSide)break}return _},moveV:Je(function(l,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 l<0?N.from():N.to();var D=Qn(p,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),y.push(D.left);var W=lg(p,D,l,c);return c=="page"&&N==m.sel.primary()&&xu(p,Jl(p,W,"div").top-D.top),W},ot),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(l){var c=this.doc,p=Pt(c,l.line).text,m=l.ch,y=l.ch;if(p){var x=this.getHelper(l,"wordChars");(l.sticky=="before"||y==p.length)&&m?--m:++y;for(var _=p.charAt(m),N=re(_,x)?function(D){return re(D,x)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!re(D)};m>0&&N(p.charAt(m-1));)--m;for(;y<p.length&&N(p.charAt(y));)++y}return new ue(X(l.line,m),X(l.line,y))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):gt(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==yt(Qt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Je(function(l,c){Ns(this,l,c)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-hr(this)-this.display.barHeight,width:l.scrollWidth-hr(this)-this.display.barWidth,clientHeight:lu(this),clientWidth:Oi(this)}},scrollIntoView:Je(function(l,c){l==null?(l={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof l=="number"?l={from:X(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=c||0,l.from.line!=null?Rw(this,l):tp(this,l.from,l.to,l.margin)}),setSize:Je(function(l,c){var p=this,m=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};l!=null&&(this.display.wrapper.style.width=m(l)),c!=null&&(this.display.wrapper.style.height=m(c)),this.options.lineWrapping&&Bd(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){ei(p,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ke(this,"refresh",this)}),operation:function(l){return Sn(this,l)},startOperation:function(){return Fi(this)},endOperation:function(){return qi(this)},refresh:Je(function(){var l=this.display.cachedTextHeight;ln(this),this.curOp.forceUpdate=!0,As(this),Ns(this,this.doc.scrollLeft,this.doc.scrollTop),ku(this.display),(l==null||Math.abs(l-ko(this.display))>.5||this.options.lineWrapping)&&gu(this),ke(this,"refresh",this)}),swapDoc:Je(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),pp(this,l),As(this),this.display.input.reset(),Ns(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,qe(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[l]:l},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}},Vn(n),n.registerHelper=function(l,c,p){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][c]=p},n.registerGlobalHelper=function(l,c,p,m){n.registerHelper(l,c,m),a[l]._global.push({pred:p,val:m})}}function Bu(n,i,a,l,c){var p=i,m=a,y=Pt(n,i.line),x=c&&n.direction=="rtl"?-a:a;function _(){var Ct=i.line+x;return Ct<n.first||Ct>=n.first+n.size?!1:(i=new X(Ct,i.ch,i.sticky),y=Pt(n,Ct))}function N(Ct){var wt;if(l=="codepoint"){var Lt=y.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Lt))wt=null;else{var zt=a>0?Lt>=55296&&Lt<56320:Lt>=56320&&Lt<57343;wt=new X(i.line,Math.max(0,Math.min(y.text.length,i.ch+a*(zt?2:1))),-a)}}else c?wt=bx(n.cm,y,i,a):wt=Du(y,i,a);if(wt==null)if(!Ct&&_())i=$u(c,n.cm,y,i.line,x);else return!1;else i=wt;return!0}if(l=="char"||l=="codepoint")N();else if(l=="column")N(!0);else if(l=="word"||l=="group")for(var D=null,W=l=="group",q=n.cm&&n.cm.getHelper(i,"wordChars"),Z=!0;!(a<0&&!N(!Z));Z=!1){var it=y.text.charAt(i.ch)||`
`,vt=re(it,q)?"w":W&&it==`
`?"n":!W||/\s/.test(it)?null:"p";if(W&&!Z&&!vt&&(vt="s"),D&&D!=vt){a<0&&(a=1,N(),i.sticky="after");break}if(vt&&(D=vt),a>0&&!N(!Z))break}var bt=fa(n,i,p,m,!0);return ce(p,bt)&&(bt.hitSide=!0),bt}function lg(n,i,a,l){var c=n.doc,p=i.left,m;if(l=="page"){var y=Math.min(n.display.wrapper.clientHeight,Tt(n).innerHeight||c(n).documentElement.clientHeight),x=Math.max(y-.5*ko(n.display),3);m=(a>0?i.bottom:i.top)+a*x}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var _;_=fu(n,p,m),!!_.outside;){if(a<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=a*5}return _}var he=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Mt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};he.prototype.init=function(n){var i=this,a=this,l=a.cm,c=a.div=n.lineDiv;c.contentEditable=!0,Hu(c,l.options.spellcheck,l.options.autocorrect,l.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}Rt(c,"paste",function(y){!p(y)||Ce(l,y)||rg(y,l)||g<=11&&setTimeout(He(l,function(){return i.updateFromDOM()}),20)}),Rt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),Rt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),Rt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(c,"touchstart",function(){return a.forceCompositionEnd()}),Rt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!p(y)||Ce(l,y))){if(l.somethingSelected())ma({lineWise:!1,text:l.getSelections()}),y.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var x=og(l);ma({lineWise:!0,text:x.text}),y.type=="cut"&&l.operation(function(){l.setSelections(x.ranges,0,V),l.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=tr.text.join(`
`);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=sg(),D=N.firstChild;Hu(D),l.display.lineSpace.insertBefore(N,l.display.lineSpace.firstChild),D.value=tr.text.join(`
`);var W=yt(Gt(c));Ht(D),setTimeout(function(){l.display.lineSpace.removeChild(N),W.focus(),W==c&&a.showPrimarySelection()},50)}}Rt(c,"copy",m),Rt(c,"cut",m)},he.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},he.prototype.prepareSelection=function(){var n=Zd(this.cm,!1);return n.focus=yt(Gt(this.div))==this.div,n},he.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},he.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},he.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),c=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||c.line<i.display.viewFrom){n.removeAllRanges();return}var p=ya(i,n.anchorNode,n.anchorOffset),m=ya(i,n.focusNode,n.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&_t(wo(p,m),l)==0&&_t(sn(p,m),c)==0)){var y=i.display.view,x=l.line>=i.display.viewFrom&&ag(i,l)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&ag(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 W=n.rangeCount&&n.getRangeAt(0),q;try{q=H(x.node,x.offset,_.offset,_.node)}catch{}q&&(!s&&i.state.focused?(n.collapse(x.node,x.offset),q.collapsed||(n.removeAllRanges(),n.addRange(q))):(n.removeAllRanges(),n.addRange(q)),W&&n.anchorNode==null?n.addRange(W):s&&this.startGracePeriod()),this.rememberSelection()}},he.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},he.prototype.showMultipleSelections=function(n){z(this.cm.display.cursorDiv,n.cursors),z(this.cm.display.selectionDiv,n.selection)},he.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},he.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return Q(this.div,i)},he.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||yt(Gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},he.prototype.blur=function(){this.div.blur()},he.prototype.getField=function(){return this.div},he.prototype.supportsTouch=function(){return!0},he.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Sn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},he.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},he.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(R&&w&&this.cm.display.gutterSpecs.length&&Fx(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=ya(i,n.anchorNode,n.anchorOffset),l=ya(i,n.focusNode,n.focusOffset);a&&l&&Sn(i,function(){Ye(i.doc,ri(a,l),V),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},he.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),c=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=X(l.line-1,Pt(n.doc,l.line-1).length)),c.ch==Pt(n.doc,c.line).text.length&&c.line<n.lastLine()&&(c=X(c.line+1,0)),l.line<i.viewFrom||c.line>i.viewTo-1)return!1;var p,m,y;l.line==i.viewFrom||(p=Ri(n,l.line))==0?(m=C(i.view[0].line),y=i.view[0].node):(m=C(i.view[p].line),y=i.view[p-1].node.nextSibling);var x=Ri(n,c.line),_,N;if(x==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=C(i.view[x+1].line)-1,N=i.view[x+1].node.previousSibling),!y)return!1;for(var D=n.doc.splitLines(qx(n,y,N,m,_)),W=Tr(n.doc,X(m,0),X(_,Pt(n.doc,_).text.length));D.length>1&&W.length>1;)if(ct(D)==ct(W))D.pop(),W.pop(),_--;else if(D[0]==W[0])D.shift(),W.shift(),m++;else break;for(var q=0,Z=0,it=D[0],vt=W[0],bt=Math.min(it.length,vt.length);q<bt&&it.charCodeAt(q)==vt.charCodeAt(q);)++q;for(var Ct=ct(D),wt=ct(W),Lt=Math.min(Ct.length-(D.length==1?q:0),wt.length-(W.length==1?q:0));Z<Lt&&Ct.charCodeAt(Ct.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)++Z;if(D.length==1&&W.length==1&&m==l.line)for(;q&&q>l.ch&&Ct.charCodeAt(Ct.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)q--,Z++;D[D.length-1]=Ct.slice(0,Ct.length-Z).replace(/^\u200b+/,""),D[0]=D[0].slice(q).replace(/\u200b+$/,"");var zt=X(m,q),Ot=X(_,W.length?ct(W).length-Z:0);if(D.length>1||D[0]||_t(zt,Ot))return Po(n.doc,D,zt,Ot,"+input"),!0},he.prototype.ensurePolled=function(){this.forceCompositionEnd()},he.prototype.reset=function(){this.forceCompositionEnd()},he.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},he.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},he.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Sn(this.cm,function(){return ln(n.cm)})},he.prototype.setUneditable=function(n){n.contentEditable="false"},he.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||He(this.cm,qu)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},he.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},he.prototype.onContextMenu=function(){},he.prototype.resetPosition=function(){},he.prototype.needsContentAttribute=!0;function ag(n,i){var a=au(n,i.line);if(!a||a.hidden)return null;var l=Pt(n.doc,i.line),c=zd(a,l,i.line),p=Yt(l,n.doc.direction),m="left";if(p){var y=Ae(p,i.ch);m=y%2?"right":"left"}var x=qd(c.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function Fx(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function zo(n,i){return i&&(n.bad=!0),n}function qx(n,i,a,l,c){var p="",m=!1,y=n.doc.lineSeparator(),x=!1;function _(q){return function(Z){return Z.id==q}}function N(){m&&(p+=y,x&&(p+=y),m=x=!1)}function D(q){q&&(N(),p+=q)}function W(q){if(q.nodeType==1){var Z=q.getAttribute("cm-text");if(Z){D(Z);return}var it=q.getAttribute("cm-marker"),vt;if(it){var bt=n.findMarks(X(l,0),X(c+1,0),_(+it));bt.length&&(vt=bt[0].find(0))&&D(Tr(n.doc,vt.from,vt.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var Ct=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;Ct&&N();for(var wt=0;wt<q.childNodes.length;wt++)W(q.childNodes[wt]);/^(pre|p)$/i.test(q.nodeName)&&(x=!0),Ct&&(m=!0)}else q.nodeType==3&&D(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(i),i!=a;)i=i.nextSibling,x=!1;return p}function ya(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return zo(n.clipPos(X(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var c=0;c<n.display.view.length;c++){var p=n.display.view[c];if(p.node==l)return Hx(p,i,a)}}function Hx(n,i,a){var l=n.text.firstChild,c=!1;if(!i||!Q(l,i))return zo(X(C(n.line),0),!0);if(i==l&&(c=!0,i=l.childNodes[a],a=0,!i)){var p=n.rest?ct(n.rest):n.line;return zo(X(C(p),p.text.length),c)}var m=i.nodeType==3?i:null,y=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));y.parentNode!=l;)y=y.parentNode;var x=n.measure,_=x.maps;function N(vt,bt,Ct){for(var wt=-1;wt<(_?_.length:0);wt++)for(var Lt=wt<0?x.map:_[wt],zt=0;zt<Lt.length;zt+=3){var Ot=Lt[zt+2];if(Ot==vt||Ot==bt){var Xt=C(wt<0?n.line:n.rest[wt]),ge=Lt[zt]+Ct;return(Ct<0||Ot!=vt)&&(ge=Lt[zt+(Ct?1:0)]),X(Xt,ge)}}}var D=N(m,y,a);if(D)return zo(D,c);for(var W=y.nextSibling,q=m?m.nodeValue.length-a:0;W;W=W.nextSibling){if(D=N(W,W.firstChild,0),D)return zo(X(D.line,D.ch-q),c);q+=W.textContent.length}for(var Z=y.previousSibling,it=a;Z;Z=Z.previousSibling){if(D=N(Z,Z.firstChild,-1),D)return zo(X(D.line,D.ch+it),c);it+=Z.textContent.length}}var Me=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new Mt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Me.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var c=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),M&&(c.style.width="0px"),Rt(c,"input",function(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Rt(c,"paste",function(m){Ce(l,m)||rg(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function p(m){if(!Ce(l,m)){if(l.somethingSelected())ma({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var y=og(l);ma({lineWise:!0,text:y.text}),m.type=="cut"?l.setSelections(y.ranges,null,V):(a.prevInput="",c.value=y.text.join(`
`),Ht(c))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Rt(c,"cut",p),Rt(c,"copy",p),Rt(n.scroller,"paste",function(m){if(!(Ar(n,m)||Ce(l,m))){if(!c.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),Rt(n.lineSpace,"selectstart",function(m){Ar(n,m)||Xe(m)}),Rt(c,"compositionstart",function(){var m=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:m,range:l.markText(m,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(c,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Me.prototype.createField=function(n){this.wrapper=sg(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Hu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Me.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Me.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Zd(n);if(n.options.moveInputWithCursor){var c=Qn(n,a.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-p.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-p.left))}return l},Me.prototype.showSelection=function(n){var i=this.cm,a=i.display;z(a.cursorDiv,n.cursors),z(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Me.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ht(this.textarea),d&&g>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Me.prototype.getField=function(){return this.textarea},Me.prototype.supportsTouch=function(){return!1},Me.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||yt(Gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Me.prototype.blur=function(){this.textarea.blur()},Me.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Me.prototype.receivedFocus=function(){this.slowPoll()},Me.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Me.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Me.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Qr(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=a.value;if(c==l&&!i.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===c||B&&/[\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&&!l&&(l=""),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,y=Math.min(l.length,c.length);m<y&&l.charCodeAt(m)==c.charCodeAt(m);)++m;return Sn(i,function(){qu(i,c.slice(m),l.length-m,null,n.composing?"*compose":null),c.length>1e3||c.indexOf(`
`)>-1?a.value=n.prevInput="":n.prevInput=c,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Me.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Me.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Me.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=$i(a,n),m=l.scroller.scrollTop;if(!p||P)return;var y=a.options.resetSelectionOnContextMenu;y&&a.doc.sel.contains(p)==-1&&He(a,Ye)(a.doc,ri(p),V);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;
top: `+(n.clientY-N.top-5)+"px; left: "+(n.clientX-N.left-5)+`px;
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=c.ownerDocument.defaultView.scrollY),l.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function W(){if(c.selectionStart!=null){var it=a.somethingSelected(),vt=""+(it?c.value:"");c.value="⇚",c.value=vt,i.prevInput=it?"":"",c.selectionStart=1,c.selectionEnd=vt.length,l.selForContextMenu=a.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=x,d&&g<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),c.selectionStart!=null)){(!d||d&&g<9)&&W();var it=0,vt=function(){l.selForContextMenu==a.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput==""?He(a,Ep)(a):it++<10?l.detectingSelectAll=setTimeout(vt,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(vt,200)}}if(d&&g>=9&&W(),at){Yr(n);var Z=function(){Ke(window,"mouseup",Z),setTimeout(q,20)};Rt(window,"mouseup",Z)}else setTimeout(q,50)},Me.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Me.prototype.setUneditable=function(){},Me.prototype.needsContentAttribute=!1;function Bx(n,i){if(i=i?rt(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=yt(Gt(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=y.getValue()}var c;if(n.form&&(Rt(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var p=n.form;c=p.submit;try{var m=p.submit=function(){l(),p.submit=c,p.submit(),p.submit=m}}catch{}}i.finishInit=function(x){x.save=l,x.getTextArea=function(){return n},x.toTextArea=function(){x.toTextArea=isNaN,l(),n.parentNode.removeChild(x.getWrapperElement()),n.style.display="",n.form&&(Ke(n.form,"submit",l),!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 Wx(n){n.off=Ke,n.on=Rt,n.wheelEventPixels=Yw,n.Doc=an,n.splitLines=Hn,n.countColumn=lt,n.findColumn=ut,n.isWordChar=Kt,n.Pass=I,n.signal=ke,n.Line=xo,n.changeEnd=ii,n.scrollbarModel=rp,n.Pos=X,n.cmpPos=_t,n.modes=go,n.mimeModes=Xn,n.resolveMode=vo,n.getMode=mo,n.modeExtensions=Jr,n.extendMode=yo,n.copyState=ur,n.startState=bo,n.innerMode=_s,n.commands=Vs,n.keyMap=Nr,n.keyName=Wp,n.isModifierKey=Hp,n.lookupKey=Do,n.normalizeKeyMap=yx,n.StringStream=Te,n.SharedTextMarker=Ws,n.TextMarker=si,n.LineWidget=Bs,n.e_preventDefault=Xe,n.e_stopPropagation=ho,n.e_stop=Yr,n.addClass=At,n.contains=Q,n.rmClass=gt,n.keyNames=li}Dx(be),Ix(be);var Ux="iter insert remove copy getEditor constructor".split(" ");for(var ba in an.prototype)an.prototype.hasOwnProperty(ba)&&Et(Ux,ba)<0&&(be.prototype[ba]=function(n){return function(){return n.apply(this.doc,arguments)}}(an.prototype[ba]));return Vn(an),be.inputStyles={textarea:Me,contenteditable:he},be.defineMode=function(n){!be.defaults.mode&&n!="null"&&(be.defaults.mode=n),Yn.apply(this,arguments)},be.defineMIME=Pi,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){an.prototype[n]=i},be.fromTextArea=Bx,Wx(be),be.version="5.65.16",be})})(ib);var ys=ib.exports;const Pat=ay(ys);var Oat={exports:{}};(function(t,e){(function(r){r(ys)})(function(r){r.defineMode("javascript",function(o,s){var u=o.indentUnit,f=s.statementIndent,h=s.jsonld,d=s.json||h,g=s.trackScope!==!1,v=s.typescript,b=s.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function C(Fe){return{type:Fe,style:"keyword"}}var O=C("keyword a"),et=C("keyword b"),dt=C("keyword c"),X=C("keyword d"),_t=C("operator"),ce={type:"atom",style:"atom"};return{if:C("if"),while:O,with:O,else:et,do:et,try:et,finally:et,return:X,break:X,continue:X,new:C("new"),delete:dt,void:dt,throw:dt,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_t,typeof:_t,instanceof:_t,true:ce,false:ce,null:ce,undefined:ce,NaN:ce,Infinity:ce,this:C("this"),class:C("class"),super:C("atom"),yield:dt,export:C("export"),import:C("import"),extends:dt,await:dt}}(),S=/[+\-*&%=<>!?|~^@]/,P=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var O=!1,et,dt=!1;(et=C.next())!=null;){if(!O){if(et=="/"&&!dt)return;et=="["?dt=!0:dt&&et=="]"&&(dt=!1)}O=!O&&et=="\\"}}var L,T;function M(C,O,et){return L=C,T=et,O}function R(C,O){var et=C.next();if(et=='"'||et=="'")return O.tokenize=E(et),O.tokenize(C,O);if(et=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(et=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(et))return M(et);if(et=="="&&C.eat(">"))return M("=>","operator");if(et=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(et))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(et=="/")return C.eat("*")?(O.tokenize=B,B(C,O)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):On(C,O,1)?(A(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(et=="`")return O.tokenize=K,K(C,O);if(et=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(et=="#"&&C.eatWhile(b))return M("variable","property");if(et=="<"&&C.match("!--")||et=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(S.test(et))return(et!=">"||!O.lexical||O.lexical.type!=">")&&(C.eat("=")?(et=="!"||et=="=")&&C.eat("="):/[<>*+\-|&?]/.test(et)&&(C.eat(et),et==">"&&C.eat(et))),et=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(b.test(et)){C.eatWhile(b);var dt=C.current();if(O.lastType!="."){if(w.propertyIsEnumerable(dt)){var X=w[dt];return M(X.type,X.style,dt)}if(dt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",dt)}return M("variable","variable",dt)}}function E(C){return function(O,et){var dt=!1,X;if(h&&O.peek()=="@"&&O.match(P))return et.tokenize=R,M("jsonld-keyword","meta");for(;(X=O.next())!=null&&!(X==C&&!dt);)dt=!dt&&X=="\\";return dt||(et.tokenize=R),M("string","string")}}function B(C,O){for(var et=!1,dt;dt=C.next();){if(dt=="/"&&et){O.tokenize=R;break}et=dt=="*"}return M("comment","comment")}function K(C,O){for(var et=!1,dt;(dt=C.next())!=null;){if(!et&&(dt=="`"||dt=="$"&&C.eat("{"))){O.tokenize=R;break}et=!et&&dt=="\\"}return M("quasi","string-2",C.current())}var ht="([{}])";function Y(C,O){O.fatArrowAt&&(O.fatArrowAt=null);var et=C.string.indexOf("=>",C.start);if(!(et<0)){if(v){var dt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,et));dt&&(et=dt.index)}for(var X=0,_t=!1,ce=et-1;ce>=0;--ce){var Fe=C.string.charAt(ce),sn=ht.indexOf(Fe);if(sn>=0&&sn<3){if(!X){++ce;break}if(--X==0){Fe=="("&&(_t=!0);break}}else if(sn>=3&&sn<6)++X;else if(b.test(Fe))_t=!0;else if(/["'\/`]/.test(Fe))for(;;--ce){if(ce==0)return;var wo=C.string.charAt(ce-1);if(wo==Fe&&C.string.charAt(ce-2)!="\\"){ce--;break}}else if(_t&&!X){++ce;break}}_t&&!X&&(O.fatArrowAt=ce)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function at(C,O,et,dt,X,_t){this.indented=C,this.column=O,this.type=et,this.prev=X,this.info=_t,dt!=null&&(this.align=dt)}function pt(C,O){if(!g)return!1;for(var et=C.localVars;et;et=et.next)if(et.name==O)return!0;for(var dt=C.context;dt;dt=dt.prev)for(var et=dt.vars;et;et=et.next)if(et.name==O)return!0}function gt(C,O,et,dt,X){var _t=C.cc;for(G.state=C,G.stream=X,G.marked=null,G.cc=_t,G.style=O,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ce=_t.length?_t.pop():d?Et:lt;if(ce(et,dt)){for(;_t.length&&_t[_t.length-1].lex;)_t.pop()();return G.marked?G.marked:et=="variable"&&pt(C,dt)?"variable-2":O}}}var G={state:null,column:null,marked:null,cc:null};function z(){for(var C=arguments.length-1;C>=0;C--)G.cc.push(arguments[C])}function k(){return z.apply(null,arguments),!0}function F(C,O){for(var et=O;et;et=et.next)if(et.name==C)return!0;return!1}function H(C){var O=G.state;if(G.marked="def",!!g){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var et=Q(C,O.context);if(et!=null){O.context=et;return}}else if(!F(C,O.localVars)){O.localVars=new qt(C,O.localVars);return}}s.globalVars&&!F(C,O.globalVars)&&(O.globalVars=new qt(C,O.globalVars))}}function Q(C,O){if(O)if(O.block){var et=Q(C,O.prev);return et?et==O.prev?O:new At(et,O.vars,!0):null}else return F(C,O.vars)?O:new At(O.prev,new qt(C,O.vars),!1);else return null}function yt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function At(C,O,et){this.prev=C,this.vars=O,this.block=et}function qt(C,O){this.name=C,this.next=O}var Ht=new qt("this",new qt("arguments",null));function Jt(){G.state.context=new At(G.state.context,G.state.localVars,!1),G.state.localVars=Ht}function Qt(){G.state.context=new At(G.state.context,G.state.localVars,!0),G.state.localVars=null}Jt.lex=Qt.lex=!0;function Gt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}Gt.lex=!0;function Tt(C,O){var et=function(){var dt=G.state,X=dt.indented;if(dt.lexical.type=="stat")X=dt.lexical.indented;else for(var _t=dt.lexical;_t&&_t.type==")"&&_t.align;_t=_t.prev)X=_t.indented;dt.lexical=new at(X,G.stream.column(),C,null,dt.lexical,O)};return et.lex=!0,et}function j(){var C=G.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}j.lex=!0;function rt(C){function O(et){return et==C?k():C==";"||et=="}"||et==")"||et=="]"?z():k(O)}return O}function lt(C,O){return C=="var"?k(Tt("vardef",O),ho,rt(";"),j):C=="keyword a"?k(Tt("form"),I,lt,j):C=="keyword b"?k(Tt("form"),lt,j):C=="keyword d"?G.stream.match(/^\s*$/,!1)?k():k(Tt("stat"),J,rt(";"),j):C=="debugger"?k(rt(";")):C=="{"?k(Tt("}"),Qt,Pn,j,Gt):C==";"?k():C=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==j&&G.state.cc.pop()(),k(Tt("form"),I,lt,j,po)):C=="function"?k(Hn):C=="for"?k(Tt("form"),Qt,Bl,lt,Gt,j):C=="class"||v&&O=="interface"?(G.marked="keyword",k(Tt("form",C=="class"?C:O),go,j)):C=="variable"?v&&O=="declare"?(G.marked="keyword",k(lt)):v&&(O=="module"||O=="enum"||O=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",O=="enum"?k(Pt):O=="type"?k(Wl,rt("operator"),Yt,rt(";")):k(Tt("form"),on,rt("{"),Tt("}"),Pn,j,j)):v&&O=="namespace"?(G.marked="keyword",k(Tt("form"),Et,lt,j)):v&&O=="abstract"?(G.marked="keyword",k(lt)):k(Tt("stat"),Bt):C=="switch"?k(Tt("form"),I,rt("{"),Tt("}","switch"),Qt,Pn,j,j,Gt):C=="case"?k(Et,rt(":")):C=="default"?k(rt(":")):C=="catch"?k(Tt("form"),Jt,Mt,lt,j,Gt):C=="export"?k(Tt("stat"),vo,j):C=="import"?k(Tt("stat"),Jr,j):C=="async"?k(lt):O=="@"?k(Et,lt):z(Tt("stat"),Et,rt(";"),j)}function Mt(C){if(C=="(")return k(Kn,rt(")"))}function Et(C,O){return V(C,O,!1)}function $(C,O){return V(C,O,!0)}function I(C){return C!="("?z():k(Tt(")"),J,rt(")"),j)}function V(C,O,et){if(G.state.fatArrowAt==G.stream.start){var dt=et?ft:ct;if(C=="(")return k(Jt,Tt(")"),se(Kn,")"),j,rt("=>"),dt,Gt);if(C=="variable")return z(Jt,on,rt("=>"),dt,Gt)}var X=et?ut:ot;return nt.hasOwnProperty(C)?k(X):C=="function"?k(Hn,X):C=="class"||v&&O=="interface"?(G.marked="keyword",k(Tt("form"),Zc,j)):C=="keyword c"||C=="async"?k(et?$:Et):C=="("?k(Tt(")"),J,rt(")"),j,X):C=="operator"||C=="spread"?k(et?$:Et):C=="["?k(Tt("]"),Te,j,X):C=="{"?rn(re,"}",null,X):C=="quasi"?z(St,X):C=="new"?k($t(et)):k()}function J(C){return C.match(/[;\}\)\],]/)?z():z(Et)}function ot(C,O){return C==","?k(J):ut(C,O,!1)}function ut(C,O,et){var dt=et==!1?ot:ut,X=et==!1?Et:$;if(C=="=>")return k(Jt,et?ft:ct,Gt);if(C=="operator")return/\+\+|--/.test(O)||v&&O=="!"?k(dt):v&&O=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Tt(">"),se(Yt,">"),j,dt):O=="?"?k(Et,rt(":"),X):k(X);if(C=="quasi")return z(St,dt);if(C!=";"){if(C=="(")return rn($,")","call",dt);if(C==".")return k(Kt,dt);if(C=="[")return k(Tt("]"),J,rt("]"),j,dt);if(v&&O=="as")return G.marked="keyword",k(Yt,dt);if(C=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),k(X)}}function St(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(St):k(J,mt)}function mt(C){if(C=="}")return G.marked="string-2",G.state.tokenize=K,k(St)}function ct(C){return Y(G.stream,G.state),z(C=="{"?lt:Et)}function ft(C){return Y(G.stream,G.state),z(C=="{"?lt:$)}function $t(C){return function(O){return O=="."?k(C?Dt:Nt):O=="variable"&&v?k(_n,C?ut:ot):z(C?$:Et)}}function Nt(C,O){if(O=="target")return G.marked="keyword",k(ot)}function Dt(C,O){if(O=="target")return G.marked="keyword",k(ut)}function Bt(C){return C==":"?k(j,lt):z(ot,rt(";"),j)}function Kt(C){if(C=="variable")return G.marked="property",k()}function re(C,O){if(C=="async")return G.marked="property",k(re);if(C=="variable"||G.style=="keyword"){if(G.marked="property",O=="get"||O=="set")return k(oe);var et;return v&&G.state.fatArrowAt==G.stream.start&&(et=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+et[0].length),k(fe)}else{if(C=="number"||C=="string")return G.marked=h?"property":G.style+" property",k(fe);if(C=="jsonld-keyword")return k(fe);if(v&&yt(O))return G.marked="keyword",k(re);if(C=="[")return k(Et,wn,rt("]"),fe);if(C=="spread")return k($,fe);if(O=="*")return G.marked="keyword",k(re);if(C==":")return z(fe)}}function oe(C){return C!="variable"?z(fe):(G.marked="property",k(Hn))}function fe(C){if(C==":")return k($);if(C=="(")return z(Hn)}function se(C,O,et){function dt(X,_t){if(et?et.indexOf(X)>-1:X==","){var ce=G.state.lexical;return ce.info=="call"&&(ce.pos=(ce.pos||0)+1),k(function(Fe,sn){return Fe==O||sn==O?z():z(C)},dt)}return X==O||_t==O?k():et&&et.indexOf(";")>-1?z(C):k(rt(O))}return function(X,_t){return X==O||_t==O?k():z(C,dt)}}function rn(C,O,et){for(var dt=3;dt<arguments.length;dt++)G.cc.push(arguments[dt]);return k(Tt(O,et),se(C,O),j)}function Pn(C){return C=="}"?k():z(lt,Pn)}function wn(C,O){if(v){if(C==":")return k(Yt);if(O=="?")return k(wn)}}function cr(C,O){if(v&&(C==":"||O=="in"))return k(Yt)}function Ae(C){if(v&&C==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?k(Et,xn,Yt):k(Yt)}function xn(C,O){if(O=="is")return G.marked="keyword",k()}function Yt(C,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return G.marked="keyword",k(O=="typeof"?$:Yt);if(C=="variable"||O=="void")return G.marked="type",k(qn);if(O=="|"||O=="&")return k(Yt);if(C=="string"||C=="number"||C=="atom")return k(qn);if(C=="[")return k(Tt("]"),se(Yt,"]",","),j,qn);if(C=="{")return k(Tt("}"),Rt,j,qn);if(C=="(")return k(se(Ce,")"),Hl,qn);if(C=="<")return k(se(Yt,">"),Yt);if(C=="quasi")return z(Ke,qn)}function Hl(C){if(C=="=>")return k(Yt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):z(Cr,Rt)}function Cr(C,O){if(C=="variable"||G.style=="keyword")return G.marked="property",k(Cr);if(O=="?"||C=="number"||C=="string")return k(Cr);if(C==":")return k(Yt);if(C=="[")return k(rt("variable"),cr,rt("]"),Cr);if(C=="(")return z(Qr,Cr);if(!C.match(/[;\}\)\],]/))return k()}function Ke(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(Ke):k(Yt,ke)}function ke(C){if(C=="}")return G.marked="string-2",G.state.tokenize=K,k(Ke)}function Ce(C,O){return C=="variable"&&G.stream.match(/^\s*[?:]/,!1)||O=="?"?k(Ce):C==":"?k(Yt):C=="spread"?k(Ce):z(Yt)}function qn(C,O){if(O=="<")return k(Tt(">"),se(Yt,">"),j,qn);if(O=="|"||C=="."||O=="&")return k(Yt);if(C=="[")return k(Yt,rt("]"),qn);if(O=="extends"||O=="implements")return G.marked="keyword",k(Yt);if(O=="?")return k(Yt,rt(":"),Yt)}function _n(C,O){if(O=="<")return k(Tt(">"),se(Yt,">"),j,qn)}function Vn(){return z(Yt,Xe)}function Xe(C,O){if(O=="=")return k(Yt)}function ho(C,O){return O=="enum"?(G.marked="keyword",k(Pt)):z(on,wn,Gn,Yc)}function on(C,O){if(v&&yt(O))return G.marked="keyword",k(on);if(C=="variable")return H(O),k();if(C=="spread")return k(on);if(C=="[")return rn(ws,"]");if(C=="{")return rn(Yr,"}")}function Yr(C,O){return C=="variable"&&!G.stream.match(/^\s*:/,!1)?(H(O),k(Gn)):(C=="variable"&&(G.marked="property"),C=="spread"?k(on):C=="}"?z():C=="["?k(Et,rt("]"),rt(":"),Yr):k(rt(":"),on,Gn))}function ws(){return z(on,Gn)}function Gn(C,O){if(O=="=")return k($)}function Yc(C){if(C==",")return k(ho)}function po(C,O){if(C=="keyword b"&&O=="else")return k(Tt("form","else"),lt,j)}function Bl(C,O){if(O=="await")return k(Bl);if(C=="(")return k(Tt(")"),xs,j)}function xs(C){return C=="var"?k(ho,Zr):C=="variable"?k(Zr):z(Zr)}function Zr(C,O){return C==")"?k():C==";"?k(Zr):O=="in"||O=="of"?(G.marked="keyword",k(Et,Zr)):z(Et,Zr)}function Hn(C,O){if(O=="*")return G.marked="keyword",k(Hn);if(C=="variable")return H(O),k(Hn);if(C=="(")return k(Jt,Tt(")"),se(Kn,")"),j,Ae,lt,Gt);if(v&&O=="<")return k(Tt(">"),se(Vn,">"),j,Hn)}function Qr(C,O){if(O=="*")return G.marked="keyword",k(Qr);if(C=="variable")return H(O),k(Qr);if(C=="(")return k(Jt,Tt(")"),se(Kn,")"),j,Ae,Gt);if(v&&O=="<")return k(Tt(">"),se(Vn,">"),j,Qr)}function Wl(C,O){if(C=="keyword"||C=="variable")return G.marked="type",k(Wl);if(O=="<")return k(Tt(">"),se(Vn,">"),j)}function Kn(C,O){return O=="@"&&k(Et,Kn),C=="spread"?k(Kn):v&&yt(O)?(G.marked="keyword",k(Kn)):v&&C=="this"?k(wn,Gn):z(on,wn,Gn)}function Zc(C,O){return C=="variable"?go(C,O):Xn(C,O)}function go(C,O){if(C=="variable")return H(O),k(Xn)}function Xn(C,O){if(O=="<")return k(Tt(">"),se(Vn,">"),j,Xn);if(O=="extends"||O=="implements"||v&&C==",")return O=="implements"&&(G.marked="keyword"),k(v?Yt:Et,Xn);if(C=="{")return k(Tt("}"),Yn,j)}function Yn(C,O){if(C=="async"||C=="variable"&&(O=="static"||O=="get"||O=="set"||v&&yt(O))&&G.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return G.marked="keyword",k(Yn);if(C=="variable"||G.style=="keyword")return G.marked="property",k(Pi,Yn);if(C=="number"||C=="string")return k(Pi,Yn);if(C=="[")return k(Et,wn,rt("]"),Pi,Yn);if(O=="*")return G.marked="keyword",k(Yn);if(v&&C=="(")return z(Qr,Yn);if(C==";"||C==",")return k(Yn);if(C=="}")return k();if(O=="@")return k(Et,Yn)}function Pi(C,O){if(O=="!"||O=="?")return k(Pi);if(C==":")return k(Yt,Gn);if(O=="=")return k($);var et=G.state.lexical.prev,dt=et&&et.info=="interface";return z(dt?Qr:Hn)}function vo(C,O){return O=="*"?(G.marked="keyword",k(bo,rt(";"))):O=="default"?(G.marked="keyword",k(Et,rt(";"))):C=="{"?k(se(mo,"}"),bo,rt(";")):z(lt)}function mo(C,O){if(O=="as")return G.marked="keyword",k(rt("variable"));if(C=="variable")return z($,mo)}function Jr(C){return C=="string"?k():C=="("?z(Et):C=="."?z(ot):z(yo,ur,bo)}function yo(C,O){return C=="{"?rn(yo,"}"):(C=="variable"&&H(O),O=="*"&&(G.marked="keyword"),k(_s))}function ur(C){if(C==",")return k(yo,ur)}function _s(C,O){if(O=="as")return G.marked="keyword",k(yo)}function bo(C,O){if(O=="from")return G.marked="keyword",k(Et)}function Te(C){return C=="]"?k():z(se($,"]"))}function Pt(){return z(Tt("form"),on,rt("{"),Tt("}"),se(Tr,"}"),j,j)}function Tr(){return z(on,Gn)}function Ss(C,O){return C.lastType=="operator"||C.lastType==","||S.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function On(C,O,et){return O.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(et||0)))}return{startState:function(C){var O={tokenize:R,lastType:"sof",cc:[],lexical:new at((C||0)-u,0,"block",!1),localVars:s.localVars,context:s.localVars&&new At(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(O.globalVars=s.globalVars),O},token:function(C,O){if(C.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=C.indentation(),Y(C,O)),O.tokenize!=B&&C.eatSpace())return null;var et=O.tokenize(C,O);return L=="comment"?et:(O.lastType=L=="operator"&&(T=="++"||T=="--")?"incdec":L,gt(O,et,L,T,C))},indent:function(C,O){if(C.tokenize==B||C.tokenize==K)return r.Pass;if(C.tokenize!=R)return 0;var et=O&&O.charAt(0),dt=C.lexical,X;if(!/^\s*else\b/.test(O))for(var _t=C.cc.length-1;_t>=0;--_t){var ce=C.cc[_t];if(ce==j)dt=dt.prev;else if(ce!=po&&ce!=Gt)break}for(;(dt.type=="stat"||dt.type=="form")&&(et=="}"||(X=C.cc[C.cc.length-1])&&(X==ot||X==ut)&&!/^[,\.=+\-*:?[\(]/.test(O));)dt=dt.prev;f&&dt.type==")"&&dt.prev.type=="stat"&&(dt=dt.prev);var Fe=dt.type,sn=et==Fe;return Fe=="vardef"?dt.indented+(C.lastType=="operator"||C.lastType==","?dt.info.length+1:0):Fe=="form"&&et=="{"?dt.indented:Fe=="form"?dt.indented+u:Fe=="stat"?dt.indented+(Ss(C,O)?f||u:0):dt.info=="switch"&&!sn&&s.doubleIndentSwitch!=!1?dt.indented+(/^(?:case|default)\b/.test(O)?u:2*u):dt.align?dt.column+(sn?0:1):dt.indented+(sn?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:On,skipExpression:function(C){gt(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Dat=Oat.exports,$at={exports:{}};(function(t,e){(function(r){r(ys)})(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},s={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:s;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var b,w;function S(k,F){function H(At){return F.tokenize=At,At(k,F)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?H(L("atom","]]>")):null:k.match("--")?H(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),H(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),F.tokenize=L("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",F.tokenize=P,"tag bracket");if(Q=="&"){var yt;return k.eat("#")?k.eat("x")?yt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):yt=k.eatWhile(/[\d]/)&&k.eat(";"):yt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),yt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function P(k,F){var H=k.next();if(H==">"||H=="/"&&k.eat(">"))return F.tokenize=S,b=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return b="equals",null;if(H=="<"){F.tokenize=S,F.state=K,F.tagName=F.tagStart=null;var Q=F.tokenize(k,F);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(H)?(F.tokenize=A(H),F.stringStartCol=k.column(),F.tokenize(k,F)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var F=function(H,Q){for(;!H.eol();)if(H.next()==k){Q.tokenize=P;break}return"string"};return F.isInAttribute=!0,F}function L(k,F){return function(H,Q){for(;!H.eol();){if(H.match(F)){Q.tokenize=S;break}H.next()}return k}}function T(k){return function(F,H){for(var Q;(Q=F.next())!=null;){if(Q=="<")return H.tokenize=T(k+1),H.tokenize(F,H);if(Q==">")if(k==1){H.tokenize=S;break}else return H.tokenize=T(k-1),H.tokenize(F,H)}return"meta"}}function M(k){return k&&k.toLowerCase()}function R(k,F,H){this.prev=k.context,this.tagName=F||"",this.indent=k.indented,this.startOfLine=H,(d.doNotIndent.hasOwnProperty(F)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function B(k,F){for(var H;;){if(!k.context||(H=k.context.tagName,!d.contextGrabbers.hasOwnProperty(M(H))||!d.contextGrabbers[M(H)].hasOwnProperty(M(F))))return;E(k)}}function K(k,F,H){return k=="openTag"?(H.tagStart=F.column(),ht):k=="closeTag"?Y:K}function ht(k,F,H){return k=="word"?(H.tagName=F.current(),w="tag",pt):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",pt(k,F,H)):(w="error",ht)}function Y(k,F,H){if(k=="word"){var Q=F.current();return H.context&&H.context.tagName!=Q&&d.implicitlyClosed.hasOwnProperty(M(H.context.tagName))&&E(H),H.context&&H.context.tagName==Q||d.matchClosing===!1?(w="tag",nt):(w="tag error",at)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",nt(k,F,H)):(w="error",at)}function nt(k,F,H){return k!="endTag"?(w="error",nt):(E(H),K)}function at(k,F,H){return w="error",nt(k,F,H)}function pt(k,F,H){if(k=="word")return w="attribute",gt;if(k=="endTag"||k=="selfcloseTag"){var Q=H.tagName,yt=H.tagStart;return H.tagName=H.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(M(Q))?B(H,Q):(B(H,Q),H.context=new R(H,Q,yt==H.indented)),K}return w="error",pt}function gt(k,F,H){return k=="equals"?G:(d.allowMissing||(w="error"),pt(k,F,H))}function G(k,F,H){return k=="string"?z:k=="word"&&d.allowUnquoted?(w="string",pt):(w="error",pt(k,F,H))}function z(k,F,H){return k=="string"?z:pt(k,F,H)}return{startState:function(k){var F={tokenize:S,state:K,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(F.baseIndent=k),F},token:function(k,F){if(!F.tagName&&k.sol()&&(F.indented=k.indentation()),k.eatSpace())return null;b=null;var H=F.tokenize(k,F);return(H||b)&&H!="comment"&&(w=null,F.state=F.state(b||H,k,F),w&&(H=w=="error"?H+" error":w)),H},indent:function(k,F,H){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return r.Pass;if(k.tokenize!=P&&k.tokenize!=S)return H?H.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(F))return 0;var yt=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(yt&&yt[1])for(;Q;)if(Q.tagName==yt[2]){Q=Q.prev;break}else if(d.implicitlyClosed.hasOwnProperty(M(Q.tagName)))Q=Q.prev;else break;else if(yt)for(;Q;){var At=d.contextGrabbers[M(Q.tagName)];if(At&&At.hasOwnProperty(M(yt[2])))Q=Q.prev;else break}for(;Q&&Q.prev&&!Q.startOfLine;)Q=Q.prev;return Q?Q.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==G&&(k.state=pt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var F=[],H=k.context;H;H=H.prev)F.push(H.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Rat=$at.exports;(function(t,e){(function(r){r(ys,Rat,Dat)})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}function s(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&s(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 P=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=P,A}function v(S,P){return P.context.mode==h?b(S,P,P.context):w(S,P,P.context)}function b(S,P,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var L=g(A.state),T=A.state.context;if(T&&S.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return P.context=new o(r.startState(d,L),d,0,P.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),P.context=new o(r.startState(h,g(A.state)),h,0,P.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,v(S,P)}var M=h.token(S,A.state),R=S.current(),E;return/\btag\b/.test(M)?/>$/.test(R)?A.state.context?A.depth=0:P.context=P.context.prev:/^</.test(R)&&(A.depth=1):!M&&(E=R.indexOf("{"))>-1&&S.backUp(R.length-E),M}function w(S,P,A){if(S.peek()=="<"&&!S.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&d.expressionAllowed(S,A.state))return P.context=new o(r.startState(h,d.indent(A.state,"","")),h,0,P.context),d.skipExpression(A.state),null;var L=d.token(S,A.state);if(!L&&A.depth!=null){var T=S.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(P.context=P.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(S){return{context:s(S.context)}},token:v,indent:function(S,P,A){return S.context.mode.indent(S.context.state,P,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(ys)})(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 s(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?s(g):o(g)},20)}function f(g){d(g)&&s(g)}function h(g){var v=g.getWrapperElement(),b=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?s(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(ys)})(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],P=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(T){if(T.which!=1)return A();g.moveTo(P+(T[w]-S)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var 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 s=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<s&&(this.size-=s-v,v=s),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 zat(t,e,r={}){const o=Pat.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}e.value=o.getValue()}),Re(e,u=>{if(u!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),vh(o)}const Iat={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},ob=ie({__name:"CodeMirror",props:Cf({mode:{},readOnly:{type:Boolean}},{modelValue:{}}),emits:Cf(["save"],["update:modelValue"]),setup(t,{expose:e,emit:r}){const o=r,s=s0(t,"modelValue"),u=w_(),f={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}},h=Zt(),d=vs();return e({cm:d}),ms(async()=>{d.value=zat(h,s,{...u,mode:f[t.mode||""]||t.mode,readOnly:t.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){o("save",g.getValue())},"Ctrl-S":function(g){o("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(st(),kt("div",Iat,[tt("textarea",{ref_key:"el",ref:h},null,512)]))}}),Fat=ie({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:e}){const r=t,o=e,s=Zt(""),u=vs(void 0),f=Zt(!1);Re(()=>r.file,async()=>{var R;if(!r.file||!((R=r.file)!=null&&R.filepath)){s.value="",u.value=s.value,f.value=!1;return}s.value=await je.rpc.readTestFile(r.file.filepath)||"",u.value=s.value,f.value=!1},{immediate:!0});const h=xt(()=>{var R,E;return((E=(R=r.file)==null?void 0:R.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),d=Zt(),g=xt(()=>{var R;return(R=d.value)==null?void 0:R.cm}),v=xt(()=>{var R;return((R=r.file)==null?void 0:R.tasks.filter(E=>{var B;return((B=E.result)==null?void 0:B.state)==="fail"}))||[]}),b=[],w=[],S=[],P=Zt(!1);function A(){S.forEach(([R,E,B])=>{R.removeEventListener("click",E),B()}),S.length=0}Plt(d,()=>{var R;(R=g.value)==null||R.refresh()});function L(){f.value=u.value!==g.value.getValue()}Re(f,R=>{o("draft",R)},{immediate:!0});function T(R){const E=((R==null?void 0:R.stacks)||[]).filter(at=>{var pt;return at.file&&at.file===((pt=r.file)==null?void 0:pt.filepath)}),B=E==null?void 0:E[0];if(!B)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const ht=document.createElement("pre");ht.className="c-red-600 dark:c-red-400",ht.textContent=`${" ".repeat(B.column)}^ ${(R==null?void 0:R.nameStr)||R.name}: ${(R==null?void 0:R.message)||""}`,K.appendChild(ht);const Y=document.createElement("span");Y.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Y.tabIndex=0,Y.ariaLabel="Open in Editor",Y0(Y,{content:"Open in Editor",placement:"bottom"},!1);const nt=async()=>{await $y(B.file,B.line,B.column)};K.appendChild(Y),S.push([Y,nt,()=>qh(Y)]),w.push(g.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),b.push(g.value.addLineWidget(B.line-1,K))}Re([g,v],([R])=>{if(!R){A();return}setTimeout(()=>{A(),b.forEach(E=>E.clear()),w.forEach(E=>{var B;return(B=g.value)==null?void 0:B.removeLineClass(E,"wrap")}),b.length=0,w.length=0,R.on("changes",L),v.value.forEach(E=>{var B,K;(K=(B=E.result)==null?void 0:B.errors)==null||K.forEach(T)}),P.value||R.clearHistory()},100)},{flush:"post"});async function M(R){P.value=!0,await je.rpc.saveTestFile(r.file.filepath,R),u.value=R,f.value=!1}return(R,E)=>{const B=ob;return st(),te(B,Ci({ref_key:"editor",ref:d,modelValue:U(s),"onUpdate:modelValue":E[0]||(E[0]=K=>Le(s)?s.value=K:null),"h-full":""},{lineNumbers:!0},{mode:U(h),"data-testid":"code-mirror",onSave:M}),null,16,["modelValue","mode"])}}}),qat=ie({__name:"Modal",props:Cf({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup(t){const e=s0(t,"modelValue"),r=xt(()=>{switch(t.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=xt(()=>{switch(t.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>e.value=!1;return(u,f)=>(st(),kt("div",{class:ve(["fixed inset-0 z-40",e.value?"":"pointer-events-none"])},[tt("div",{class:ve(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",e.value?"opacity-50":"opacity-0"]),onClick:s},null,2),tt("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:An(e.value?{}:{transform:U(o)})},[sr(u.$slots,"default")],6)],2))}}),Hat=["aria-label","opacity","disabled","hover"],bs=ie({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(e,r)=>(st(),kt("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[sr(e.$slots,"default",{},()=>[tt("div",{class:ve(e.icon),ma:""},null,2)])],8,Hat))}}),Bat={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wat={"p-4":"",relative:""},Uat=tt("p",null,"Module Info",-1),jat={op50:"","font-mono":"","text-sm":""},Vat={key:0,"p-5":""},Gat={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Kat=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Xat=tt("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Yat={key:0},Zat={p:"x3 y-1","bg-overlay":"",border:"base b t"},Qat=ie({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:e}){const r=t,o=e,s=wlt(()=>je.rpc.getTransformResult(r.id)),u=xt(()=>{var g;return((g=r.id)==null?void 0:g.split(/\./g).pop())||"js"}),f=xt(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.source)==null?void 0:v.trim())||""}),h=xt(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),d=xt(()=>{var g,v,b,w;return{mappings:((v=(g=s.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(w=(b=s.value)==null?void 0:b.map)==null?void 0:w.version}});return _lt("Escape",()=>{o("close")}),(g,v)=>{const b=bs,w=ob;return st(),kt("div",Bat,[tt("div",Wat,[Uat,tt("p",jat,Ut(g.id),1),Ft(b,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=S=>o("close"))})]),U(s)?(st(),kt(ne,{key:1},[tt("div",Gat,[Kat,Xat,Ft(w,Ci({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"]),Ft(w,Ci({"h-full":"","model-value":U(h),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])]),U(d).mappings!==""?(st(),kt("div",Yat,[tt("div",Zat," Source map (v"+Ut(U(d).version)+") ",1),Ft(w,Ci({"model-value":U(d).mappings,"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])])):Vt("",!0)],64)):(st(),kt("div",Vat," No transform result found for this module. "))])}}});function Jat(t,e){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),e)}}var Xf="http://www.w3.org/1999/xhtml";const Yv={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 Gc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Yv.hasOwnProperty(e)?{space:Yv[e],local:t}:t}function tct(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 ect(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function sb(t){var e=Gc(t);return(e.local?ect:tct)(e)}function nct(){}function Zh(t){return t==null?nct:function(){return this.querySelector(t)}}function rct(t){typeof t!="function"&&(t=Zh(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var u=e[s],f=u.length,h=o[s]=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 Fn(o,this._parents)}function ict(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function oct(){return[]}function lb(t){return t==null?oct:function(){return this.querySelectorAll(t)}}function sct(t){return function(){return ict(t.apply(this,arguments))}}function lct(t){typeof t=="function"?t=sct(t):t=lb(t);for(var e=this._groups,r=e.length,o=[],s=[],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)),s.push(d));return new Fn(o,s)}function ab(t){return function(){return this.matches(t)}}function cb(t){return function(e){return e.matches(t)}}var act=Array.prototype.find;function cct(t){return function(){return act.call(this.children,t)}}function uct(){return this.firstElementChild}function fct(t){return this.select(t==null?uct:cct(typeof t=="function"?t:cb(t)))}var hct=Array.prototype.filter;function dct(){return Array.from(this.children)}function pct(t){return function(){return hct.call(this.children,t)}}function gct(t){return this.selectAll(t==null?dct:pct(typeof t=="function"?t:cb(t)))}function vct(t){typeof t!="function"&&(t=ab(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var u=e[s],f=u.length,h=o[s]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Fn(o,this._parents)}function ub(t){return new Array(t.length)}function mct(){return new Fn(this._enter||this._groups.map(ub),this._parents)}function gc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}gc.prototype={constructor:gc,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 yct(t){return function(){return t}}function bct(t,e,r,o,s,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 gc(t,u[f]);for(;f<d;++f)(h=e[f])&&(s[f]=h)}function wct(t,e,r,o,s,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)?s[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 gc(t,u[h]);for(h=0;h<v;++h)(d=e[h])&&g.get(w[h])===d&&(s[h]=d)}function xct(t){return t.__data__}function _ct(t,e){if(!arguments.length)return Array.from(this,xct);var r=e?wct:bct,o=this._parents,s=this._groups;typeof t!="function"&&(t=yct(t));for(var u=s.length,f=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var v=o[g],b=s[g],w=b.length,S=Sct(t.call(v,v&&v.__data__,g,o)),P=S.length,A=h[g]=new Array(P),L=f[g]=new Array(P),T=d[g]=new Array(w);r(v,b,A,L,T,S,e);for(var M=0,R=0,E,B;M<P;++M)if(E=A[M]){for(M>=R&&(R=M+1);!(B=L[R])&&++R<P;);E._next=B||null}}return f=new Fn(f,o),f._enter=h,f._exit=d,f}function Sct(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function kct(){return new Fn(this._exit||this._groups.map(ub),this._parents)}function Cct(t,e,r){var o=this.enter(),s=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),e!=null&&(s=e(s),s&&(s=s.selection())),r==null?u.remove():r(u),o&&s?o.merge(s).order():s}function Tct(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,s=r.length,u=o.length,f=Math.min(s,u),h=new Array(s),d=0;d<f;++d)for(var g=r[d],v=o[d],b=g.length,w=h[d]=new Array(b),S,P=0;P<b;++P)(S=g[P]||v[P])&&(w[P]=S);for(;d<s;++d)h[d]=r[d];return new Fn(h,this._parents)}function Ect(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o=t[e],s=o.length-1,u=o[s],f;--s>=0;)(f=o[s])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function Lct(t){t||(t=Act);function e(b,w){return b&&w?t(b.__data__,w.__data__):!b-!w}for(var r=this._groups,o=r.length,s=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,d=s[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(e)}return new Fn(s,this._parents).order()}function Act(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Mct(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Nct(){return Array.from(this)}function Pct(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],s=0,u=o.length;s<u;++s){var f=o[s];if(f)return f}return null}function Oct(){let t=0;for(const e of this)++t;return t}function Dct(){return!this.node()}function $ct(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var s=e[r],u=0,f=s.length,h;u<f;++u)(h=s[u])&&t.call(h,h.__data__,u,s);return this}function Rct(t){return function(){this.removeAttribute(t)}}function zct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ict(t,e){return function(){this.setAttribute(t,e)}}function Fct(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function qct(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Hct(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 Bct(t,e){var r=Gc(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?zct:Rct:typeof e=="function"?r.local?Hct:qct:r.local?Fct:Ict)(r,e))}function fb(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Wct(t){return function(){this.style.removeProperty(t)}}function Uct(t,e,r){return function(){this.style.setProperty(t,e,r)}}function jct(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Vct(t,e,r){return arguments.length>1?this.each((e==null?Wct:typeof e=="function"?jct:Uct)(t,e,r??"")):hs(this.node(),t)}function hs(t,e){return t.style.getPropertyValue(e)||fb(t).getComputedStyle(t,null).getPropertyValue(e)}function Gct(t){return function(){delete this[t]}}function Kct(t,e){return function(){this[t]=e}}function Xct(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Yct(t,e){return arguments.length>1?this.each((e==null?Gct:typeof e=="function"?Xct:Kct)(t,e)):this.node()[t]}function hb(t){return t.trim().split(/^|\s+/)}function Qh(t){return t.classList||new db(t)}function db(t){this._node=t,this._names=hb(t.getAttribute("class")||"")}db.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 pb(t,e){for(var r=Qh(t),o=-1,s=e.length;++o<s;)r.add(e[o])}function gb(t,e){for(var r=Qh(t),o=-1,s=e.length;++o<s;)r.remove(e[o])}function Zct(t){return function(){pb(this,t)}}function Qct(t){return function(){gb(this,t)}}function Jct(t,e){return function(){(e.apply(this,arguments)?pb:gb)(this,t)}}function tut(t,e){var r=hb(t+"");if(arguments.length<2){for(var o=Qh(this.node()),s=-1,u=r.length;++s<u;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof e=="function"?Jct:e?Zct:Qct)(r,e))}function eut(){this.textContent=""}function nut(t){return function(){this.textContent=t}}function rut(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function iut(t){return arguments.length?this.each(t==null?eut:(typeof t=="function"?rut:nut)(t)):this.node().textContent}function out(){this.innerHTML=""}function sut(t){return function(){this.innerHTML=t}}function lut(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function aut(t){return arguments.length?this.each(t==null?out:(typeof t=="function"?lut:sut)(t)):this.node().innerHTML}function cut(){this.nextSibling&&this.parentNode.appendChild(this)}function uut(){return this.each(cut)}function fut(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hut(){return this.each(fut)}function dut(t){var e=typeof t=="function"?t:sb(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function put(){return null}function gut(t,e){var r=typeof t=="function"?t:sb(t),o=e==null?put:typeof e=="function"?e:Zh(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function vut(){var t=this.parentNode;t&&t.removeChild(this)}function mut(){return this.each(vut)}function yut(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function but(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wut(t){return this.select(t?but:yut)}function xut(t){return arguments.length?this.property("__data__",t):this.node().__data__}function _ut(t){return function(e){t.call(this,e,this.__data__)}}function Sut(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 kut(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,s=e.length,u;r<s;++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 Cut(t,e,r){return function(){var o=this.__on,s,u=_ut(e);if(o){for(var f=0,h=o.length;f<h;++f)if((s=o[f]).type===t.type&&s.name===t.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=u,s.options=r),s.value=e;return}}this.addEventListener(t.type,u,r),s={type:t.type,name:t.name,value:e,listener:u,options:r},o?o.push(s):this.__on=[s]}}function Tut(t,e,r){var o=Sut(t+""),s,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(s=0,v=h[d];s<u;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(h=e?Cut:kut,s=0;s<u;++s)this.each(h(o[s],e,r));return this}function vb(t,e,r){var o=fb(t),s=o.CustomEvent;typeof s=="function"?s=new s(e,r):(s=o.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function Eut(t,e){return function(){return vb(this,t,e)}}function Lut(t,e){return function(){return vb(this,t,e.apply(this,arguments))}}function Aut(t,e){return this.each((typeof e=="function"?Lut:Eut)(t,e))}function*Mut(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],s=0,u=o.length,f;s<u;++s)(f=o[s])&&(yield f)}var mb=[null];function Fn(t,e){this._groups=t,this._parents=e}function Il(){return new Fn([[document.documentElement]],mb)}function Nut(){return this}Fn.prototype=Il.prototype={constructor:Fn,select:rct,selectAll:lct,selectChild:fct,selectChildren:gct,filter:vct,data:_ct,enter:mct,exit:kct,join:Cct,merge:Tct,selection:Nut,order:Ect,sort:Lct,call:Mct,nodes:Nct,node:Pct,size:Oct,empty:Dct,each:$ct,attr:Bct,style:Vct,property:Yct,classed:tut,text:iut,html:aut,raise:uut,lower:hut,append:dut,insert:gut,remove:mut,clone:wut,datum:xut,on:Tut,dispatch:Aut,[Symbol.iterator]:Mut};function En(t){return typeof t=="string"?new Fn([[document.querySelector(t)]],[document.documentElement]):new Fn([[t]],mb)}function Put(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Rr(t,e){if(t=Put(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 s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}}return[t.pageX,t.pageY]}class pn{constructor(e,r){this.x=e,this.y=r}static of([e,r]){return new pn(e,r)}add(e){return new pn(this.x+e.x,this.y+e.y)}subtract(e){return new pn(this.x-e.x,this.y-e.y)}multiply(e){return new pn(this.x*e,this.y*e)}divide(e){return new pn(this.x/e,this.y/e)}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-e.x*this.y}hadamard(e){return new pn(this.x*e.x,this.y*e.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const e=this.length();return new pn(this.x/e,this.y/e)}rotateByRadians(e){const r=Math.cos(e),o=Math.sin(e);return new pn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}}var Out={value:()=>{}};function Fl(){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 Ga(r)}function Ga(t){this._=t}function Dut(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Ga.prototype=Fl.prototype={constructor:Ga,on:function(t,e){var r=this._,o=Dut(t+"",r),s,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((s=(t=o[u]).type)&&(s=$ut(r[s],t.name)))return s;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(s=(t=o[u]).type)r[s]=Zv(r[s],t.name,e);else if(e==null)for(s in r)r[s]=Zv(r[s],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Ga(t)},call:function(t,e){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,u;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,s=u.length;o<s;++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],s=0,u=o.length;s<u;++s)o[s].value.apply(e,r)}};function $ut(t,e){for(var r=0,o=t.length,s;r<o;++r)if((s=t[r]).name===e)return s.value}function Zv(t,e,r){for(var o=0,s=t.length;o<s;++o)if(t[o].name===e){t[o]=Out,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}const Rut={passive:!1},Cl={capture:!0,passive:!1};function uf(t){t.stopImmediatePropagation()}function Jo(t){t.preventDefault(),t.stopImmediatePropagation()}function yb(t){var e=t.document.documentElement,r=En(t).on("dragstart.drag",Jo,Cl);"onselectstart"in e?r.on("selectstart.drag",Jo,Cl):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function bb(t,e){var r=t.document.documentElement,o=En(t).on("dragstart.drag",null);e&&(o.on("click.drag",Jo,Cl),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 Pa=t=>()=>t;function Yf(t,{sourceEvent:e,subject:r,target:o,identifier:s,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:s,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}})}Yf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function zut(t){return!t.ctrlKey&&!t.button}function Iut(){return this.parentNode}function Fut(t,e){return e??{x:t.x,y:t.y}}function qut(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hut(){var t=zut,e=Iut,r=Fut,o=qut,s={},u=Fl("start","drag","end"),f=0,h,d,g,v,b=0;function w(E){E.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",T,Rut).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(E,B){if(!(v||!t.call(this,E,B))){var K=R(this,e.call(this,E,B),E,B,"mouse");K&&(En(E.view).on("mousemove.drag",P,Cl).on("mouseup.drag",A,Cl),yb(E.view),uf(E),g=!1,h=E.clientX,d=E.clientY,K("start",E))}}function P(E){if(Jo(E),!g){var B=E.clientX-h,K=E.clientY-d;g=B*B+K*K>b}s.mouse("drag",E)}function A(E){En(E.view).on("mousemove.drag mouseup.drag",null),bb(E.view,g),Jo(E),s.mouse("end",E)}function L(E,B){if(t.call(this,E,B)){var K=E.changedTouches,ht=e.call(this,E,B),Y=K.length,nt,at;for(nt=0;nt<Y;++nt)(at=R(this,ht,E,B,K[nt].identifier,K[nt]))&&(uf(E),at("start",E,K[nt]))}}function T(E){var B=E.changedTouches,K=B.length,ht,Y;for(ht=0;ht<K;++ht)(Y=s[B[ht].identifier])&&(Jo(E),Y("drag",E,B[ht]))}function M(E){var B=E.changedTouches,K=B.length,ht,Y;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ht=0;ht<K;++ht)(Y=s[B[ht].identifier])&&(uf(E),Y("end",E,B[ht]))}function R(E,B,K,ht,Y,nt){var at=u.copy(),pt=Rr(nt||K,B),gt,G,z;if((z=r.call(E,new Yf("beforestart",{sourceEvent:K,target:w,identifier:Y,active:f,x:pt[0],y:pt[1],dx:0,dy:0,dispatch:at}),ht))!=null)return gt=z.x-pt[0]||0,G=z.y-pt[1]||0,function k(F,H,Q){var yt=pt,At;switch(F){case"start":s[Y]=k,At=f++;break;case"end":delete s[Y],--f;case"drag":pt=Rr(Q||H,B),At=f;break}at.call(F,E,new Yf(F,{sourceEvent:H,subject:z,target:w,identifier:Y,active:At,x:pt[0]+gt,y:pt[1]+G,dx:pt[0]-yt[0],dy:pt[1]-yt[1],dispatch:at}),ht)}}return w.filter=function(E){return arguments.length?(t=typeof E=="function"?E:Pa(!!E),w):t},w.container=function(E){return arguments.length?(e=typeof E=="function"?E:Pa(E),w):e},w.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Pa(E),w):r},w.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Pa(!!E),w):o},w.on=function(){var E=u.on.apply(u,arguments);return E===u?w:E},w.clickDistance=function(E){return arguments.length?(b=(E=+E)*E,w):Math.sqrt(b)},w}function Jh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function wb(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function ql(){}var Tl=.7,vc=1/Tl,ts="\\s*([+-]?\\d+)\\s*",El="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",But=/^#([0-9a-f]{3,8})$/,Wut=new RegExp(`^rgb\\(${ts},${ts},${ts}\\)$`),Uut=new RegExp(`^rgb\\(${xr},${xr},${xr}\\)$`),jut=new RegExp(`^rgba\\(${ts},${ts},${ts},${El}\\)$`),Vut=new RegExp(`^rgba\\(${xr},${xr},${xr},${El}\\)$`),Gut=new RegExp(`^hsl\\(${El},${xr},${xr}\\)$`),Kut=new RegExp(`^hsla\\(${El},${xr},${xr},${El}\\)$`),Qv={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};Jh(ql,Ll,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jv,formatHex:Jv,formatHex8:Xut,formatHsl:Yut,formatRgb:tm,toString:tm});function Jv(){return this.rgb().formatHex()}function Xut(){return this.rgb().formatHex8()}function Yut(){return xb(this).formatHsl()}function tm(){return this.rgb().formatRgb()}function Ll(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=But.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?em(e):r===3?new Ln(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Oa(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Oa(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=Wut.exec(t))?new Ln(e[1],e[2],e[3],1):(e=Uut.exec(t))?new Ln(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=jut.exec(t))?Oa(e[1],e[2],e[3],e[4]):(e=Vut.exec(t))?Oa(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Gut.exec(t))?im(e[1],e[2]/100,e[3]/100,1):(e=Kut.exec(t))?im(e[1],e[2]/100,e[3]/100,e[4]):Qv.hasOwnProperty(t)?em(Qv[t]):t==="transparent"?new Ln(NaN,NaN,NaN,0):null}function em(t){return new Ln(t>>16&255,t>>8&255,t&255,1)}function Oa(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ln(t,e,r,o)}function Zut(t){return t instanceof ql||(t=Ll(t)),t?(t=t.rgb(),new Ln(t.r,t.g,t.b,t.opacity)):new Ln}function Zf(t,e,r,o){return arguments.length===1?Zut(t):new Ln(t,e,r,o??1)}function Ln(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}Jh(Ln,Zf,wb(ql,{brighter(t){return t=t==null?vc:Math.pow(vc,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Tl:Math.pow(Tl,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ln(no(this.r),no(this.g),no(this.b),mc(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:nm,formatHex:nm,formatHex8:Qut,formatRgb:rm,toString:rm}));function nm(){return`#${Qi(this.r)}${Qi(this.g)}${Qi(this.b)}`}function Qut(){return`#${Qi(this.r)}${Qi(this.g)}${Qi(this.b)}${Qi((isNaN(this.opacity)?1:this.opacity)*255)}`}function rm(){const t=mc(this.opacity);return`${t===1?"rgb(":"rgba("}${no(this.r)}, ${no(this.g)}, ${no(this.b)}${t===1?")":`, ${t})`}`}function mc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function no(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Qi(t){return t=no(t),(t<16?"0":"")+t.toString(16)}function im(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new or(t,e,r,o)}function xb(t){if(t instanceof or)return new or(t.h,t.s,t.l,t.opacity);if(t instanceof ql||(t=Ll(t)),!t)return new or;if(t instanceof or)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,s=Math.min(e,r,o),u=Math.max(e,r,o),f=NaN,h=u-s,d=(u+s)/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+s:2-u-s,f*=60):h=d>0&&d<1?0:f,new or(f,h,d,t.opacity)}function Jut(t,e,r,o){return arguments.length===1?xb(t):new or(t,e,r,o??1)}function or(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}Jh(or,Jut,wb(ql,{brighter(t){return t=t==null?vc:Math.pow(vc,t),new or(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Tl:Math.pow(Tl,t),new or(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,s=2*r-o;return new Ln(ff(t>=240?t-240:t+120,s,o),ff(t,s,o),ff(t<120?t+240:t-120,s,o),this.opacity)},clamp(){return new or(om(this.h),Da(this.s),Da(this.l),mc(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=mc(this.opacity);return`${t===1?"hsl(":"hsla("}${om(this.h)}, ${Da(this.s)*100}%, ${Da(this.l)*100}%${t===1?")":`, ${t})`}`}}));function om(t){return t=(t||0)%360,t<0?t+360:t}function Da(t){return Math.max(0,Math.min(1,t||0))}function ff(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 _b=t=>()=>t;function tft(t,e){return function(r){return t+r*e}}function eft(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 nft(t){return(t=+t)==1?Sb:function(e,r){return r-e?eft(e,r,t):_b(isNaN(e)?r:e)}}function Sb(t,e){var r=e-t;return r?tft(t,r):_b(isNaN(t)?e:t)}const sm=function t(e){var r=nft(e);function o(s,u){var f=r((s=Zf(s)).r,(u=Zf(u)).r),h=r(s.g,u.g),d=r(s.b,u.b),g=Sb(s.opacity,u.opacity);return function(v){return s.r=f(v),s.g=h(v),s.b=d(v),s.opacity=g(v),s+""}}return o.gamma=t,o}(1);function bi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Qf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hf=new RegExp(Qf.source,"g");function rft(t){return function(){return t}}function ift(t){return function(e){return t(e)+""}}function oft(t,e){var r=Qf.lastIndex=hf.lastIndex=0,o,s,u,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=Qf.exec(t))&&(s=hf.exec(e));)(u=s.index)>r&&(u=e.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,d.push({i:f,x:bi(o,s)})),r=hf.lastIndex;return r<e.length&&(u=e.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?d[0]?ift(d[0].x):rft(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 lm=180/Math.PI,Jf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kb(t,e,r,o,s,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:s,translateY:u,rotate:Math.atan2(e,t)*lm,skewX:Math.atan(d)*lm,scaleX:f,scaleY:h}}var $a;function sft(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Jf:kb(e.a,e.b,e.c,e.d,e.e,e.f)}function lft(t){return t==null||($a||($a=document.createElementNS("http://www.w3.org/2000/svg","g")),$a.setAttribute("transform",t),!(t=$a.transform.baseVal.consolidate()))?Jf:(t=t.matrix,kb(t.a,t.b,t.c,t.d,t.e,t.f))}function Cb(t,e,r,o){function s(g){return g.length?g.pop()+" ":""}function u(g,v,b,w,S,P){if(g!==b||v!==w){var A=S.push("translate(",null,e,null,r);P.push({i:A-4,x:bi(g,b)},{i:A-2,x:bi(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(s(b)+"rotate(",null,o)-2,x:bi(g,v)})):v&&b.push(s(b)+"rotate("+v+o)}function h(g,v,b,w){g!==v?w.push({i:b.push(s(b)+"skewX(",null,o)-2,x:bi(g,v)}):v&&b.push(s(b)+"skewX("+v+o)}function d(g,v,b,w,S,P){if(g!==b||v!==w){var A=S.push(s(S)+"scale(",null,",",null,")");P.push({i:A-4,x:bi(g,b)},{i:A-2,x:bi(v,w)})}else(b!==1||w!==1)&&S.push(s(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 P=-1,A=w.length,L;++P<A;)b[(L=w[P]).i]=L.x(S);return b.join("")}}}var aft=Cb(sft,"px, ","px)","deg)"),cft=Cb(lft,", ",")",")"),uft=1e-12;function am(t){return((t=Math.exp(t))+1/t)/2}function fft(t){return((t=Math.exp(t))-1/t)/2}function hft(t){return((t=Math.exp(2*t))-1)/(t+1)}const dft=function t(e,r,o){function s(u,f){var h=u[0],d=u[1],g=u[2],v=f[0],b=f[1],w=f[2],S=v-h,P=b-d,A=S*S+P*P,L,T;if(A<uft)T=Math.log(w/g)/e,L=function(ht){return[h+ht*S,d+ht*P,g*Math.exp(e*ht*T)]};else{var M=Math.sqrt(A),R=(w*w-g*g+o*A)/(2*g*r*M),E=(w*w-g*g-o*A)/(2*w*r*M),B=Math.log(Math.sqrt(R*R+1)-R),K=Math.log(Math.sqrt(E*E+1)-E);T=(K-B)/e,L=function(ht){var Y=ht*T,nt=am(B),at=g/(r*M)*(nt*hft(e*Y+B)-fft(B));return[h+at*S,d+at*P,g*nt/am(e*Y+B)]}}return L.duration=T*1e3*e/Math.SQRT2,L}return s.rho=function(u){var f=Math.max(.001,+u),h=f*f,d=h*h;return t(f,h,d)},s}(Math.SQRT2,2,4);var ds=0,ol=0,el=0,Tb=1e3,yc,sl,bc=0,lo=0,Kc=0,Al=typeof performance=="object"&&performance.now?performance:Date,Eb=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function td(){return lo||(Eb(pft),lo=Al.now()+Kc)}function pft(){lo=0}function wc(){this._call=this._time=this._next=null}wc.prototype=ed.prototype={constructor:wc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?td():+r)+(e==null?0:+e),!this._next&&sl!==this&&(sl?sl._next=this:yc=this,sl=this),this._call=t,this._time=r,th()},stop:function(){this._call&&(this._call=null,this._time=1/0,th())}};function ed(t,e,r){var o=new wc;return o.restart(t,e,r),o}function gft(){td(),++ds;for(var t=yc,e;t;)(e=lo-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ds}function cm(){lo=(bc=Al.now())+Kc,ds=ol=0;try{gft()}finally{ds=0,mft(),lo=0}}function vft(){var t=Al.now(),e=t-bc;e>Tb&&(Kc-=e,bc=t)}function mft(){for(var t,e=yc,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:yc=r);sl=t,th(o)}function th(t){if(!ds){ol&&(ol=clearTimeout(ol));var e=t-lo;e>24?(t<1/0&&(ol=setTimeout(cm,t-Al.now()-Kc)),el&&(el=clearInterval(el))):(el||(bc=Al.now(),el=setInterval(vft,Tb)),ds=1,Eb(cm))}}function um(t,e,r){var o=new wc;return e=e==null?0:+e,o.restart(s=>{o.stop(),t(s+e)},e,r),o}var yft=Fl("start","end","cancel","interrupt"),bft=[],Lb=0,fm=1,eh=2,Ka=3,hm=4,nh=5,Xa=6;function Xc(t,e,r,o,s,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;wft(t,r,{name:e,index:o,group:s,on:yft,tween:bft,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Lb})}function nd(t,e){var r=ar(t,e);if(r.state>Lb)throw new Error("too late; already scheduled");return r}function kr(t,e){var r=ar(t,e);if(r.state>Ka)throw new Error("too late; already running");return r}function ar(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function wft(t,e,r){var o=t.__transition,s;o[e]=r,r.timer=ed(u,0,r.time);function u(g){r.state=fm,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!==fm)return d();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ka)return um(f);S.state===hm?(S.state=Xa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<e&&(S.state=Xa,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if(um(function(){r.state===Ka&&(r.state=hm,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=eh,r.on.call("start",t,t.__data__,r.index,r.group),r.state===eh){for(r.state=Ka,s=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))&&(s[++b]=S);s.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=nh,1),b=-1,w=s.length;++b<w;)s[b].call(t,v);r.state===nh&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=Xa,r.timer.stop(),delete o[e];for(var g in o)return;delete t.__transition}}function Ya(t,e){var r=t.__transition,o,s,u=!0,f;if(r){e=e==null?null:e+"";for(f in r){if((o=r[f]).name!==e){u=!1;continue}s=o.state>eh&&o.state<nh,o.state=Xa,o.timer.stop(),o.on.call(s?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function xft(t){return this.each(function(){Ya(this,t)})}function _ft(t,e){var r,o;return function(){var s=kr(this,t),u=s.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}}s.tween=o}}function Sft(t,e,r){var o,s;if(typeof r!="function")throw new Error;return function(){var u=kr(this,t),f=u.tween;if(f!==o){s=(o=f).slice();for(var h={name:e,value:r},d=0,g=s.length;d<g;++d)if(s[d].name===e){s[d]=h;break}d===g&&s.push(h)}u.tween=s}}function kft(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o=ar(this.node(),r).tween,s=0,u=o.length,f;s<u;++s)if((f=o[s]).name===t)return f.value;return null}return this.each((e==null?_ft:Sft)(r,t,e))}function rd(t,e,r){var o=t._id;return t.each(function(){var s=kr(this,o);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return ar(s,o).value[e]}}function Ab(t,e){var r;return(typeof e=="number"?bi:e instanceof Ll?sm:(r=Ll(e))?(e=r,sm):oft)(t,e)}function Cft(t){return function(){this.removeAttribute(t)}}function Tft(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Eft(t,e,r){var o,s=r+"",u;return function(){var f=this.getAttribute(t);return f===s?null:f===o?u:u=e(o=f,r)}}function Lft(t,e,r){var o,s=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===s?null:f===o?u:u=e(o=f,r)}}function Aft(t,e,r){var o,s,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===s?u:(s=d,u=e(o=f,h)))}}function Mft(t,e,r){var o,s,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===s?u:(s=d,u=e(o=f,h)))}}function Nft(t,e){var r=Gc(t),o=r==="transform"?cft:Ab;return this.attrTween(t,typeof e=="function"?(r.local?Mft:Aft)(r,o,rd(this,"attr."+t,e)):e==null?(r.local?Tft:Cft)(r):(r.local?Lft:Eft)(r,o,e))}function Pft(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Oft(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Dft(t,e){var r,o;function s(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&Oft(t,u)),r}return s._value=e,s}function $ft(t,e){var r,o;function s(){var u=e.apply(this,arguments);return u!==o&&(r=(o=u)&&Pft(t,u)),r}return s._value=e,s}function Rft(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=Gc(t);return this.tween(r,(o.local?Dft:$ft)(o,e))}function zft(t,e){return function(){nd(this,t).delay=+e.apply(this,arguments)}}function Ift(t,e){return e=+e,function(){nd(this,t).delay=e}}function Fft(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zft:Ift)(e,t)):ar(this.node(),e).delay}function qft(t,e){return function(){kr(this,t).duration=+e.apply(this,arguments)}}function Hft(t,e){return e=+e,function(){kr(this,t).duration=e}}function Bft(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?qft:Hft)(e,t)):ar(this.node(),e).duration}function Wft(t,e){if(typeof e!="function")throw new Error;return function(){kr(this,t).ease=e}}function Uft(t){var e=this._id;return arguments.length?this.each(Wft(e,t)):ar(this.node(),e).ease}function jft(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;kr(this,t).ease=r}}function Vft(t){if(typeof t!="function")throw new Error;return this.each(jft(this._id,t))}function Gft(t){typeof t!="function"&&(t=ab(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var u=e[s],f=u.length,h=o[s]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Gr(o,this._parents,this._name,this._id)}function Kft(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,s=r.length,u=Math.min(o,s),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 Gr(f,this._parents,this._name,this._id)}function Xft(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 Yft(t,e,r){var o,s,u=Xft(e)?nd:kr;return function(){var f=u(this,t),h=f.on;h!==o&&(s=(o=h).copy()).on(e,r),f.on=s}}function Zft(t,e){var r=this._id;return arguments.length<2?ar(this.node(),r).on.on(t):this.each(Yft(r,t,e))}function Qft(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Jft(){return this.on("end.remove",Qft(this._id))}function tht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Zh(t));for(var o=this._groups,s=o.length,u=new Array(s),f=0;f<s;++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,Xc(g[w],e,r,w,g,ar(v,r)));return new Gr(u,this._parents,e,r)}function eht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=lb(t));for(var o=this._groups,s=o.length,u=[],f=[],h=0;h<s;++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,P=ar(v,r),A=0,L=w.length;A<L;++A)(S=w[A])&&Xc(S,e,r,A,w,P);u.push(w),f.push(v)}return new Gr(u,f,e,r)}var nht=Il.prototype.constructor;function rht(){return new nht(this._groups,this._parents)}function iht(t,e){var r,o,s;return function(){var u=hs(this,t),f=(this.style.removeProperty(t),hs(this,t));return u===f?null:u===r&&f===o?s:s=e(r=u,o=f)}}function Mb(t){return function(){this.style.removeProperty(t)}}function oht(t,e,r){var o,s=r+"",u;return function(){var f=hs(this,t);return f===s?null:f===o?u:u=e(o=f,r)}}function sht(t,e,r){var o,s,u;return function(){var f=hs(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),hs(this,t))),f===d?null:f===o&&d===s?u:(s=d,u=e(o=f,h))}}function lht(t,e){var r,o,s,u="style."+e,f="end."+u,h;return function(){var d=kr(this,t),g=d.on,v=d.value[u]==null?h||(h=Mb(e)):void 0;(g!==r||s!==v)&&(o=(r=g).copy()).on(f,s=v),d.on=o}}function aht(t,e,r){var o=(t+="")=="transform"?aft:Ab;return e==null?this.styleTween(t,iht(t,o)).on("end.style."+t,Mb(t)):typeof e=="function"?this.styleTween(t,sht(t,o,rd(this,"style."+t,e))).each(lht(this._id,t)):this.styleTween(t,oht(t,o,e),r).on("end.style."+t,null)}function cht(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function uht(t,e,r){var o,s;function u(){var f=e.apply(this,arguments);return f!==s&&(o=(s=f)&&cht(t,f,r)),o}return u._value=e,u}function fht(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,uht(t,e,r??""))}function hht(t){return function(){this.textContent=t}}function dht(t){return function(){var e=t(this);this.textContent=e??""}}function pht(t){return this.tween("text",typeof t=="function"?dht(rd(this,"text",t)):hht(t==null?"":t+""))}function ght(t){return function(e){this.textContent=t.call(this,e)}}function vht(t){var e,r;function o(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&ght(s)),e}return o._value=t,o}function mht(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,vht(t))}function yht(){for(var t=this._name,e=this._id,r=Nb(),o=this._groups,s=o.length,u=0;u<s;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=ar(d,e);Xc(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Gr(o,this._parents,t,r)}function bht(){var t,e,r=this,o=r._id,s=r.size();return new Promise(function(u,f){var h={value:f},d={value:function(){--s===0&&u()}};r.each(function(){var g=kr(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}),s===0&&u()})}var wht=0;function Gr(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Nb(){return++wht}var Dr=Il.prototype;Gr.prototype={constructor:Gr,select:tht,selectAll:eht,selectChild:Dr.selectChild,selectChildren:Dr.selectChildren,filter:Gft,merge:Kft,selection:rht,transition:yht,call:Dr.call,nodes:Dr.nodes,node:Dr.node,size:Dr.size,empty:Dr.empty,each:Dr.each,on:Zft,attr:Nft,attrTween:Rft,style:aht,styleTween:fht,text:pht,textTween:mht,remove:Jft,tween:kft,delay:Fft,duration:Bft,ease:Uft,easeVarying:Vft,end:bht,[Symbol.iterator]:Dr[Symbol.iterator]};function xht(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var _ht={time:null,delay:0,duration:250,ease:xht};function Sht(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 kht(t){var e,r;t instanceof Gr?(e=t._id,t=t._name):(e=Nb(),(r=_ht).time=td(),t=t==null?null:t+"");for(var o=this._groups,s=o.length,u=0;u<s;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&Xc(d,t,e,g,f,r||Sht(d,e));return new Gr(o,this._parents,t,e)}Il.prototype.interrupt=xft;Il.prototype.transition=kht;const Ra=t=>()=>t;function Cht(t,{sourceEvent:e,target:r,transform:o,dispatch:s}){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:s}})}function Ir(t,e,r){this.k=t,this.x=e,this.y=r}Ir.prototype={constructor:Ir,scale:function(t){return t===1?this:new Ir(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ir(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 id=new Ir(1,0,0);Ir.prototype;function df(t){t.stopImmediatePropagation()}function nl(t){t.preventDefault(),t.stopImmediatePropagation()}function Tht(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Eht(){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 dm(){return this.__zoom||id}function Lht(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Aht(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mht(t,e,r){var o=t.invertX(e[0][0])-r[0][0],s=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(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function Nht(){var t=Tht,e=Eht,r=Mht,o=Lht,s=Aht,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=dft,g=Fl("start","zoom","end"),v,b,w,S=500,P=150,A=0,L=10;function T(z){z.property("__zoom",dm).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",nt).on("dblclick.zoom",at).filter(s).on("touchstart.zoom",pt).on("touchmove.zoom",gt).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,F,H){var Q=z.selection?z.selection():z;Q.property("__zoom",dm),z!==Q?B(z,k,F,H):Q.interrupt().each(function(){K(this,arguments).event(H).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,F,H){T.scaleTo(z,function(){var Q=this.__zoom.k,yt=typeof k=="function"?k.apply(this,arguments):k;return Q*yt},F,H)},T.scaleTo=function(z,k,F,H){T.transform(z,function(){var Q=e.apply(this,arguments),yt=this.__zoom,At=F==null?E(Q):typeof F=="function"?F.apply(this,arguments):F,qt=yt.invert(At),Ht=typeof k=="function"?k.apply(this,arguments):k;return r(R(M(yt,Ht),At,qt),Q,f)},F,H)},T.translateBy=function(z,k,F,H){T.transform(z,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof F=="function"?F.apply(this,arguments):F),e.apply(this,arguments),f)},null,H)},T.translateTo=function(z,k,F,H,Q){T.transform(z,function(){var yt=e.apply(this,arguments),At=this.__zoom,qt=H==null?E(yt):typeof H=="function"?H.apply(this,arguments):H;return r(id.translate(qt[0],qt[1]).scale(At.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof F=="function"?-F.apply(this,arguments):-F),yt,f)},H,Q)};function M(z,k){return k=Math.max(u[0],Math.min(u[1],k)),k===z.k?z:new Ir(k,z.x,z.y)}function R(z,k,F){var H=k[0]-F[0]*z.k,Q=k[1]-F[1]*z.k;return H===z.x&&Q===z.y?z:new Ir(z.k,H,Q)}function E(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function B(z,k,F,H){z.on("start.zoom",function(){K(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(H).end()}).tween("zoom",function(){var Q=this,yt=arguments,At=K(Q,yt).event(H),qt=e.apply(Q,yt),Ht=F==null?E(qt):typeof F=="function"?F.apply(Q,yt):F,Jt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),Qt=Q.__zoom,Gt=typeof k=="function"?k.apply(Q,yt):k,Tt=d(Qt.invert(Ht).concat(Jt/Qt.k),Gt.invert(Ht).concat(Jt/Gt.k));return function(j){if(j===1)j=Gt;else{var rt=Tt(j),lt=Jt/rt[2];j=new Ir(lt,Ht[0]-rt[0]*lt,Ht[1]-rt[1]*lt)}At.zoom(null,j)}})}function K(z,k,F){return!F&&z.__zooming||new ht(z,k)}function ht(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(z,k),this.taps=0}ht.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=En(this.that).datum();g.call(z,this.that,new Cht(z,{sourceEvent:this.sourceEvent,target:T,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function Y(z,...k){if(!t.apply(this,arguments))return;var F=K(this,k).event(z),H=this.__zoom,Q=Math.max(u[0],Math.min(u[1],H.k*Math.pow(2,o.apply(this,arguments)))),yt=Rr(z);if(F.wheel)(F.mouse[0][0]!==yt[0]||F.mouse[0][1]!==yt[1])&&(F.mouse[1]=H.invert(F.mouse[0]=yt)),clearTimeout(F.wheel);else{if(H.k===Q)return;F.mouse=[yt,H.invert(yt)],Ya(this),F.start()}nl(z),F.wheel=setTimeout(At,P),F.zoom("mouse",r(R(M(H,Q),F.mouse[0],F.mouse[1]),F.extent,f));function At(){F.wheel=null,F.end()}}function nt(z,...k){if(w||!t.apply(this,arguments))return;var F=z.currentTarget,H=K(this,k,!0).event(z),Q=En(z.view).on("mousemove.zoom",Ht,!0).on("mouseup.zoom",Jt,!0),yt=Rr(z,F),At=z.clientX,qt=z.clientY;yb(z.view),df(z),H.mouse=[yt,this.__zoom.invert(yt)],Ya(this),H.start();function Ht(Qt){if(nl(Qt),!H.moved){var Gt=Qt.clientX-At,Tt=Qt.clientY-qt;H.moved=Gt*Gt+Tt*Tt>A}H.event(Qt).zoom("mouse",r(R(H.that.__zoom,H.mouse[0]=Rr(Qt,F),H.mouse[1]),H.extent,f))}function Jt(Qt){Q.on("mousemove.zoom mouseup.zoom",null),bb(Qt.view,H.moved),nl(Qt),H.event(Qt).end()}}function at(z,...k){if(t.apply(this,arguments)){var F=this.__zoom,H=Rr(z.changedTouches?z.changedTouches[0]:z,this),Q=F.invert(H),yt=F.k*(z.shiftKey?.5:2),At=r(R(M(F,yt),H,Q),e.apply(this,k),f);nl(z),h>0?En(this).transition().duration(h).call(B,At,H,z):En(this).call(T.transform,At,H,z)}}function pt(z,...k){if(t.apply(this,arguments)){var F=z.touches,H=F.length,Q=K(this,k,z.changedTouches.length===H).event(z),yt,At,qt,Ht;for(df(z),At=0;At<H;++At)qt=F[At],Ht=Rr(qt,this),Ht=[Ht,this.__zoom.invert(Ht),qt.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==Ht[2]&&(Q.touch1=Ht,Q.taps=0):(Q.touch0=Ht,yt=!0,Q.taps=1+!!v);v&&(v=clearTimeout(v)),yt&&(Q.taps<2&&(b=Ht[0],v=setTimeout(function(){v=null},S)),Ya(this),Q.start())}}function gt(z,...k){if(this.__zooming){var F=K(this,k).event(z),H=z.changedTouches,Q=H.length,yt,At,qt,Ht;for(nl(z),yt=0;yt<Q;++yt)At=H[yt],qt=Rr(At,this),F.touch0&&F.touch0[2]===At.identifier?F.touch0[0]=qt:F.touch1&&F.touch1[2]===At.identifier&&(F.touch1[0]=qt);if(At=F.that.__zoom,F.touch1){var Jt=F.touch0[0],Qt=F.touch0[1],Gt=F.touch1[0],Tt=F.touch1[1],j=(j=Gt[0]-Jt[0])*j+(j=Gt[1]-Jt[1])*j,rt=(rt=Tt[0]-Qt[0])*rt+(rt=Tt[1]-Qt[1])*rt;At=M(At,Math.sqrt(j/rt)),qt=[(Jt[0]+Gt[0])/2,(Jt[1]+Gt[1])/2],Ht=[(Qt[0]+Tt[0])/2,(Qt[1]+Tt[1])/2]}else if(F.touch0)qt=F.touch0[0],Ht=F.touch0[1];else return;F.zoom("touch",r(R(At,qt,Ht),F.extent,f))}}function G(z,...k){if(this.__zooming){var F=K(this,k).event(z),H=z.changedTouches,Q=H.length,yt,At;for(df(z),w&&clearTimeout(w),w=setTimeout(function(){w=null},S),yt=0;yt<Q;++yt)At=H[yt],F.touch0&&F.touch0[2]===At.identifier?delete F.touch0:F.touch1&&F.touch1[2]===At.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(At=Rr(At,this),Math.hypot(b[0]-At[0],b[1]-At[1])<L)){var qt=En(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return T.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:Ra(+z),T):o},T.filter=function(z){return arguments.length?(t=typeof z=="function"?z:Ra(!!z),T):t},T.touchable=function(z){return arguments.length?(s=typeof z=="function"?z:Ra(!!z),T):s},T.extent=function(z){return arguments.length?(e=typeof z=="function"?z:Ra([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),T):e},T.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],T):[u[0],u[1]]},T.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],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(z){return arguments.length?(r=z,T):r},T.duration=function(z){return arguments.length?(h=+z,T):h},T.interpolate=function(z){return arguments.length?(d=z,T):d},T.on=function(){var z=g.on.apply(g,arguments);return z===g?T:z},T.clickDistance=function(z){return arguments.length?(A=(z=+z)*z,T):Math.sqrt(A)},T.tapDistance=function(z){return arguments.length?(L=+z,T):L},T}function Pht(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return Pb(this.cover(e,r),e,r,t)}function Pb(t,e,r,o){if(isNaN(e)||isNaN(r))return t;var s,u=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,b,w,S,P,A,L,T,M;if(!u)return t._root=f,t;for(;u.length;)if((A=e>=(b=(h+g)/2))?h=b:g=b,(L=r>=(w=(d+v)/2))?d=w:v=w,s=u,!(u=u[T=L<<1|A]))return s[T]=f,t;if(S=+t._x.call(null,u.data),P=+t._y.call(null,u.data),e===S&&r===P)return f.next=u,s?s[T]=f:t._root=f,t;do s=s?s[T]=new Array(4):t._root=new Array(4),(A=e>=(b=(h+g)/2))?h=b:g=b,(L=r>=(w=(d+v)/2))?d=w:v=w;while((T=L<<1|A)===(M=(P>=w)<<1|S>=b));return s[M]=u,s[T]=f,t}function Oht(t){var e,r,o=t.length,s,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(s=+this._x.call(null,e=t[r]))||isNaN(u=+this._y.call(null,e))||(f[r]=s,h[r]=u,s<d&&(d=s),s>v&&(v=s),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)Pb(this,f[r],h[r],t[r]);return this}function Dht(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,o=this._y0,s=this._x1,u=this._y1;if(isNaN(r))s=(r=Math.floor(t))+1,u=(o=Math.floor(e))+1;else{for(var f=s-r||1,h=this._root,d,g;r>t||t>=s||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:s=r+f,u=o+f;break;case 1:r=s-f,u=o+f;break;case 2:s=r+f,o=u-f;break;case 3:r=s-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=s,this._y1=u,this}function $ht(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function Rht(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function gn(t,e,r,o,s){this.node=t,this.x0=e,this.y0=r,this.x1=o,this.y1=s}function zht(t,e,r){var o,s=this._x0,u=this._y0,f,h,d,g,v=this._x1,b=this._y1,w=[],S=this._root,P,A;for(S&&w.push(new gn(S,s,u,v,b)),r==null?r=1/0:(s=t-r,u=e-r,v=t+r,b=e+r,r*=r);P=w.pop();)if(!(!(S=P.node)||(f=P.x0)>v||(h=P.y0)>b||(d=P.x1)<s||(g=P.y1)<u))if(S.length){var L=(f+d)/2,T=(h+g)/2;w.push(new gn(S[3],L,T,d,g),new gn(S[2],f,T,L,g),new gn(S[1],L,h,d,T),new gn(S[0],f,h,L,T)),(A=(e>=T)<<1|t>=L)&&(P=w[w.length-1],w[w.length-1]=w[w.length-1-A],w[w.length-1-A]=P)}else{var M=t-+this._x.call(null,S.data),R=e-+this._y.call(null,S.data),E=M*M+R*R;if(E<r){var B=Math.sqrt(r=E);s=t-B,u=e-B,v=t+B,b=e+B,o=S.data}}return o}function Iht(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var e,r=this._root,o,s,u,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,b,w,S,P,A,L,T;if(!r)return this;if(r.length)for(;;){if((P=v>=(w=(f+d)/2))?f=w:d=w,(A=b>=(S=(h+g)/2))?h=S:g=S,e=r,!(r=r[L=A<<1|P]))return this;if(!r.length)break;(e[L+1&3]||e[L+2&3]||e[L+3&3])&&(o=e,T=L)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,s?(u?s.next=u:delete s.next,this):e?(u?e[L]=u:delete e[L],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=u,this)}function Fht(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function qht(){return this._root}function Hht(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function Bht(t){var e=[],r,o=this._root,s,u,f,h,d;for(o&&e.push(new gn(o,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,d=r.y1)&&o.length){var g=(u+h)/2,v=(f+d)/2;(s=o[3])&&e.push(new gn(s,g,v,h,d)),(s=o[2])&&e.push(new gn(s,u,v,g,d)),(s=o[1])&&e.push(new gn(s,g,f,h,v)),(s=o[0])&&e.push(new gn(s,u,f,g,v))}return this}function Wht(t){var e=[],r=[],o;for(this._root&&e.push(new gn(this._root,this._x0,this._y0,this._x1,this._y1));o=e.pop();){var s=o.node;if(s.length){var u,f=o.x0,h=o.y0,d=o.x1,g=o.y1,v=(f+d)/2,b=(h+g)/2;(u=s[0])&&e.push(new gn(u,f,h,v,b)),(u=s[1])&&e.push(new gn(u,v,h,d,b)),(u=s[2])&&e.push(new gn(u,f,b,v,g)),(u=s[3])&&e.push(new gn(u,v,b,d,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Uht(t){return t[0]}function jht(t){return arguments.length?(this._x=t,this):this._x}function Vht(t){return t[1]}function Ght(t){return arguments.length?(this._y=t,this):this._y}function od(t,e,r){var o=new sd(e??Uht,r??Vht,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function sd(t,e,r,o,s,u){this._x=t,this._y=e,this._x0=r,this._y0=o,this._x1=s,this._y1=u,this._root=void 0}function pm(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var yn=od.prototype=sd.prototype;yn.copy=function(){var t=new sd(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=pm(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var s=0;s<4;++s)(o=e.source[s])&&(o.length?r.push({source:o,target:e.target[s]=new Array(4)}):e.target[s]=pm(o));return t};yn.add=Pht;yn.addAll=Oht;yn.cover=Dht;yn.data=$ht;yn.extent=Rht;yn.find=zht;yn.remove=Iht;yn.removeAll=Fht;yn.root=qht;yn.size=Hht;yn.visit=Bht;yn.visitAfter=Wht;yn.x=jht;yn.y=Ght;function vn(t){return function(){return t}}function xi(t){return(t()-.5)*1e-6}function Kht(t){return t.x+t.vx}function Xht(t){return t.y+t.vy}function Yht(t){var e,r,o,s=1,u=1;typeof t!="function"&&(t=vn(t==null?1:+t));function f(){for(var g,v=e.length,b,w,S,P,A,L,T=0;T<u;++T)for(b=od(e,Kht,Xht).visitAfter(h),g=0;g<v;++g)w=e[g],A=r[w.index],L=A*A,S=w.x+w.vx,P=w.y+w.vy,b.visit(M);function M(R,E,B,K,ht){var Y=R.data,nt=R.r,at=A+nt;if(Y){if(Y.index>w.index){var pt=S-Y.x-Y.vx,gt=P-Y.y-Y.vy,G=pt*pt+gt*gt;G<at*at&&(pt===0&&(pt=xi(o),G+=pt*pt),gt===0&&(gt=xi(o),G+=gt*gt),G=(at-(G=Math.sqrt(G)))/G*s,w.vx+=(pt*=G)*(at=(nt*=nt)/(L+nt)),w.vy+=(gt*=G)*at,Y.vx-=pt*(at=1-at),Y.vy-=gt*at)}return}return E>S+at||K<S-at||B>P+at||ht<P-at}}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?(s=+g,f):s},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:vn(+g),d(),f):t},f}function Zht(t){return t.index}function gm(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Qht(t){var e=Zht,r=b,o,s=vn(30),u,f,h,d,g,v=1;t==null&&(t=[]);function b(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function w(L){for(var T=0,M=t.length;T<v;++T)for(var R=0,E,B,K,ht,Y,nt,at;R<M;++R)E=t[R],B=E.source,K=E.target,ht=K.x+K.vx-B.x-B.vx||xi(g),Y=K.y+K.vy-B.y-B.vy||xi(g),nt=Math.sqrt(ht*ht+Y*Y),nt=(nt-u[R])/nt*L*o[R],ht*=nt,Y*=nt,K.vx-=ht*(at=d[R]),K.vy-=Y*at,B.vx+=ht*(at=1-at),B.vy+=Y*at}function S(){if(f){var L,T=f.length,M=t.length,R=new Map(f.map((B,K)=>[e(B,K,f),B])),E;for(L=0,h=new Array(T);L<M;++L)E=t[L],E.index=L,typeof E.source!="object"&&(E.source=gm(R,E.source)),typeof E.target!="object"&&(E.target=gm(R,E.target)),h[E.source.index]=(h[E.source.index]||0)+1,h[E.target.index]=(h[E.target.index]||0)+1;for(L=0,d=new Array(M);L<M;++L)E=t[L],d[L]=h[E.source.index]/(h[E.source.index]+h[E.target.index]);o=new Array(M),P(),u=new Array(M),A()}}function P(){if(f)for(var L=0,T=t.length;L<T;++L)o[L]=+r(t[L],L,t)}function A(){if(f)for(var L=0,T=t.length;L<T;++L)u[L]=+s(t[L],L,t)}return w.initialize=function(L,T){f=L,g=T,S()},w.links=function(L){return arguments.length?(t=L,S(),w):t},w.id=function(L){return arguments.length?(e=L,w):e},w.iterations=function(L){return arguments.length?(v=+L,w):v},w.strength=function(L){return arguments.length?(r=typeof L=="function"?L:vn(+L),P(),w):r},w.distance=function(L){return arguments.length?(s=typeof L=="function"?L:vn(+L),A(),w):s},w}const Jht=1664525,tdt=1013904223,vm=4294967296;function edt(){let t=1;return()=>(t=(Jht*t+tdt)%vm)/vm}function ndt(t){return t.x}function rdt(t){return t.y}var idt=10,odt=Math.PI*(3-Math.sqrt(5));function sdt(t){var e,r=1,o=.001,s=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=ed(b),g=Fl("tick","end"),v=edt();t==null&&(t=[]);function b(){w(),g.call("tick",e),r<o&&(d.stop(),g.call("end",e))}function w(A){var L,T=t.length,M;A===void 0&&(A=1);for(var R=0;R<A;++R)for(r+=(u-r)*s,h.forEach(function(E){E(r)}),L=0;L<T;++L)M=t[L],M.fx==null?M.x+=M.vx*=f:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=f:(M.y=M.fy,M.vy=0);return e}function S(){for(var A=0,L=t.length,T;A<L;++A){if(T=t[A],T.index=A,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var M=idt*Math.sqrt(.5+A),R=A*odt;T.x=M*Math.cos(R),T.y=M*Math.sin(R)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function P(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(P),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?(s=+A,e):+s},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(P),e):v},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,P(L)),e):h.get(A)},find:function(A,L,T){var M=0,R=t.length,E,B,K,ht,Y;for(T==null?T=1/0:T*=T,M=0;M<R;++M)ht=t[M],E=A-ht.x,B=L-ht.y,K=E*E+B*B,K<T&&(Y=ht,T=K);return Y},on:function(A,L){return arguments.length>1?(g.on(A,L),e):g.on(A)}}}function ldt(){var t,e,r,o,s=vn(-30),u,f=1,h=1/0,d=.81;function g(S){var P,A=t.length,L=od(t,ndt,rdt).visitAfter(b);for(o=S,P=0;P<A;++P)e=t[P],L.visit(w)}function v(){if(t){var S,P=t.length,A;for(u=new Array(P),S=0;S<P;++S)A=t[S],u[A.index]=+s(A,S,t)}}function b(S){var P=0,A,L,T=0,M,R,E;if(S.length){for(M=R=E=0;E<4;++E)(A=S[E])&&(L=Math.abs(A.value))&&(P+=A.value,T+=L,M+=L*A.x,R+=L*A.y);S.x=M/T,S.y=R/T}else{A=S,A.x=A.data.x,A.y=A.data.y;do P+=u[A.data.index];while(A=A.next)}S.value=P}function w(S,P,A,L){if(!S.value)return!0;var T=S.x-e.x,M=S.y-e.y,R=L-P,E=T*T+M*M;if(R*R/d<E)return E<h&&(T===0&&(T=xi(r),E+=T*T),M===0&&(M=xi(r),E+=M*M),E<f&&(E=Math.sqrt(f*E)),e.vx+=T*S.value*o/E,e.vy+=M*S.value*o/E),!0;if(S.length||E>=h)return;(S.data!==e||S.next)&&(T===0&&(T=xi(r),E+=T*T),M===0&&(M=xi(r),E+=M*M),E<f&&(E=Math.sqrt(f*E)));do S.data!==e&&(R=u[S.data.index]*o/E,e.vx+=T*R,e.vy+=M*R);while(S=S.next)}return g.initialize=function(S,P){t=S,r=P,v()},g.strength=function(S){return arguments.length?(s=typeof S=="function"?S:vn(+S),v(),g):s},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 adt(t){var e=vn(.1),r,o,s;typeof t!="function"&&(t=vn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(s[d]-v.x)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),s=new Array(d),h=0;h<d;++h)o[h]=isNaN(s[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:vn(+h),f(),u):e},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:vn(+h),f(),u):t},u}function cdt(t){var e=vn(.1),r,o,s;typeof t!="function"&&(t=vn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(s[d]-v.y)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),s=new Array(d),h=0;h<d;++h)o[h]=isNaN(s[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(e=typeof h=="function"?h:vn(+h),f(),u):e},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:vn(+h),f(),u):t},u}var udt=Object.defineProperty,fdt=(t,e,r)=>e in t?udt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oe=(t,e,r)=>(fdt(t,typeof e!="symbol"?e+"":e,r),r);function hdt(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function mm(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}function _i(...t){return t.reduce((e,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(e[o])&&Array.isArray(r[o])?e[o]=_i.options.mergeArrays?Array.from(new Set(e[o].concat(r[o]))):r[o]:mm(e[o])&&mm(r[o])?e[o]=_i(e[o],r[o]):e[o]=r[o])}),e},{})}const Ob={mergeArrays:!0};_i.options=Ob;_i.withOptions=(t,...e)=>{_i.options={mergeArrays:!0,...t};const r=_i(...e);return _i.options=Ob,r};function ddt(){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 pdt(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Db(t){t.preventDefault(),t.stopPropagation()}function $b(t){return typeof t=="number"}function Ai(t,e){return $b(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function gdt(t){return`${t.source.id}-${t.target.id}`}function Rb(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function vdt(t){return`url(#${Rb(t.color)})`}function mdt(t){return{size:t,padding:(e,r)=>Ai(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const zb={Arrow:t=>mdt(t)},ydt=(t,e,r)=>[e/2,r/2],Ib=(t,e,r)=>[ym(0,e),ym(0,r)];function ym(t,e){return Math.random()*(e-t)+t}function bdt(t){const e=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[u,f]=e[r.id]??[];return!u||!f?Ib(r,o,s):[u,f]}}const rh={Centered:ydt,Randomized:Ib,Stable:bdt};function wdt(){return{autoResize:!1,callbacks:{},hooks:{},initial:pdt(),nodeRadius:16,marker:zb.Arrow(4),modifiers:{},positionInitializer:rh.Centered,simulation:{alphas:hdt(),forces:ddt()},zoom:{initial:1,min:.1,max:2}}}function xdt(t={}){return _i.withOptions({mergeArrays:!1},wdt(),t)}function _dt({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,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=>Db(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=>s==null?void 0:s(v)).style("cursor","grab");return t&&g.call(d.transform,id.translate(u,f).scale(h)),g.append("g")}function Sdt({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function kdt({config:t,onDragStart:e,onDragEnd:r}){var o,s;const u=Hut().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),En(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),En(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(s=(o=t.modifiers).drag)==null||s.call(o,u),u}function Cdt({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:s}){const u=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&s(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}:Tdt({nodes:h,links:u},r)}function Tdt(t,e){const r=[...Edt(t,e),...Ldt(t,e)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function Edt(t,e){return Fb(t,e,(r,o)=>r.target.id===o.id)}function Ldt(t,e){return Fb(t,e,(r,o)=>r.source.id===o.id)}function Fb(t,e,r){const o=new Set(t.links),s=new Set([e]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...s].some(d=>r(h,d)));if(f.length===0)return u;f.forEach(h=>{s.add(h.source),s.add(h.target),u.push(h),o.delete(h)})}return u}function ih(t){return t.x??0}function oh(t){return t.y??0}function ld({source:t,target:e}){const r=new pn(ih(t),oh(t)),o=new pn(ih(e),oh(e)),s=o.subtract(r),u=s.length(),f=s.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function qb({center:t,node:e}){const r=new pn(ih(e),oh(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new pn(0,1))),{n:r,c:o}}function Hb({config:t,source:e,target:r}){const{s:o,t:s,norm:u}=ld({config:t,source:e,target:r}),f=o.add(u.multiply(Ai(t,e)-1)),h=s.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function Adt(t){const{start:e,end:r}=Hb(t);return`M${e.x},${e.y}
L${r.x},${r.y}`}function Mdt(t){const{start:e,end:r}=Hb(t),o=r.subtract(e).multiply(.5),s=e.add(o);return`translate(${s.x-8},${s.y-4})`}function Ndt({config:t,source:e,target:r}){const{s:o,t:s,dist:u,norm:f,endNorm:h}=ld({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(Ai(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(Ai(t,r)).add(s).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
A${b},${b},0,0,1,${v.x},${v.y}`}function Pdt({center:t,config:e,node:r}){const{n:o,c:s}=qb({center:t,config:e,node:r}),u=Ai(e,r),f=o.subtract(s),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}
A${u},${u},0,1,0,${v.x},${v.y}`}function Odt({config:t,source:e,target:r}){const{t:o,dist:s,endNorm:u}=ld({config:t,source:e,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*s).add(o);return`translate(${h.x},${h.y})`}function Ddt({center:t,config:e,node:r}){const{n:o,c:s}=qb({center:t,config:e,node:r}),u=o.subtract(s),f=u.multiply(1/u.length()).multiply(3*Ai(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const es={line:{labelTransform:Mdt,path:Adt},arc:{labelTransform:Odt,path:Ndt},reflexive:{labelTransform:Ddt,path:Pdt}};function $dt(t){return t.append("g").classed("links",!0).selectAll("path")}function Rdt({config:t,graph:e,selection:r,showLabels:o}){const s=r==null?void 0:r.data(e.links,u=>gdt(u)).join(u=>{var f,h,d,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>vdt(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 s==null||s.select(".link__label").attr("opacity",u=>u.label&&o?1:0),s}function zdt(t){Idt(t),Fdt(t)}function Idt({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?es.reflexive.path({config:e,node:s.source,center:t}):Bb(r,s.source,s.target)?es.arc.path({config:e,source:s.source,target:s.target}):es.line.path({config:e,source:s.source,target:s.target}))}function Fdt({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?es.reflexive.labelTransform({config:t,node:s.source,center:e}):Bb(r,s.source,s.target)?es.arc.labelTransform({config:t,source:s.source,target:s.target}):es.line.labelTransform({config:t,source:s.source,target:s.target}))}function Bb(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 qdt(t){return t.append("defs").selectAll("marker")}function Hdt({config:t,graph:e,selection:r}){return r==null?void 0:r.data(Bdt(e),o=>o).join(o=>{const s=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 s.append("path").attr("d",Wdt(t.marker.path)),s})}function Bdt(t){return[...new Set(t.links.map(e=>e.color))]}function Wdt(t){const[e,...r]=t;if(!e)return"M0,0";const[o,s]=e;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${s}`)}function Udt(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function jdt({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:s,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 P=S.append("circle").classed("node",!0).attr("r",L=>Ai(t,L)).on("contextmenu",(L,T)=>{Db(L),o(T)}).on("pointerdown",(L,T)=>Gdt(L,T,s??o)).style("fill",L=>L.color);(v=(g=t.modifiers).node)==null||v.call(g,P);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(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 Vdt=500;function Gdt(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Vdt){e.lastInteractionTimestamp=s;return}e.lastInteractionTimestamp=void 0,r(e)}function Kdt(t){t==null||t.attr("transform",e=>`translate(${e.x??0},${e.y??0})`)}function Xdt({center:t,config:e,graph:r,onTick:o}){var s,u;const f=sdt(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",adt(()=>t().x).strength(b)).force("y",cdt(()=>t().y).strength(b))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",ldt().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",Yht().radius(b=>g.radiusMultiplier*Ai(e,b)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",Qht(r.links).id(b=>b.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(s=e.modifiers).simulation)==null||u.call(s,f),f}function Ydt({canvasContainer:t,config:e,min:r,max:o,onZoom:s}){var u,f;const h=Nht().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=>s(d)).on("end",()=>t().classed("grabbed",!1));return(f=(u=e.modifiers).zoom)==null||f.call(u,h),h}class Zdt{constructor(e,r,o){if(Oe(this,"nodeTypes"),Oe(this,"_nodeTypeFilter"),Oe(this,"_includeUnlinked",!0),Oe(this,"_linkFilter",()=>!0),Oe(this,"_showLinkLabels",!0),Oe(this,"_showNodeLabels",!0),Oe(this,"filteredGraph"),Oe(this,"width",0),Oe(this,"height",0),Oe(this,"simulation"),Oe(this,"canvas"),Oe(this,"linkSelection"),Oe(this,"nodeSelection"),Oe(this,"markerSelection"),Oe(this,"zoom"),Oe(this,"drag"),Oe(this,"xOffset",0),Oe(this,"yOffset",0),Oe(this,"scale"),Oe(this,"focusedNode"),Oe(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[u,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??u,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=s??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(Jat(()=>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,s=e?r:o;this.restart(s)}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,s=e?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=e?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return pn.of([this.width,this.height]).divide(2).subtract(pn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,u=e.toFixed()!==o.toFixed(),f=r.toFixed()!==s.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($b(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:s}))}restart(e){var r;this.markerSelection=Hdt({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Rdt({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=jdt({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=Xdt({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=Ydt({config:this.config,canvasContainer:()=>En(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=_dt({applyZoom:this.scale!==1,container:En(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=$dt(this.canvas),this.nodeSelection=Udt(this.canvas),this.markerSelection=qdt(this.canvas),this.drag=kdt({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(){Kdt(this.nodeSelection),zdt({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),En(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,s;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),(s=this.simulation)==null||s.restart()}applyZoom(){Sdt({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=Cdt({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function bm({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function Qdt(t){return{...t}}function Wb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Jdt={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},tpt={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},ept=["id","checked","onChange"],npt=["for"],rpt=tt("div",{"flex-auto":""},null,-1),ipt=ie({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const e=t,{graph:r}=O1(e),o=Zt(),s=Zt(!1),u=Zt(),f=Zt();Ch(()=>{s.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ms(()=>{g()}),Eh(()=>{var b;(b=f.value)==null||b.shutdown()}),Re(r,g);function h(b,w){var S;(S=f.value)==null||S.filterNodesByType(w,b)}function d(b){u.value=b,s.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Zdt(o.value,r.value,xdt({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:zb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?rh.Randomized:rh.Centered,zoom:{min:.5,max:2}})))}function v(b){if(jr)return;const w=L=>L.button===0;let S=0,P=0,A=0;b.on("pointerdown",(L,T)=>{T.type!=="external"&&(!T.x||!T.y||!w(L)||(S=T.x,P=T.y,A=Date.now()))}).on("pointerup",(L,T)=>{if(T.type==="external"||!T.x||!T.y||!w(L)||Date.now()-A>500)return;const M=T.x-S,R=T.y-P;M**2+R**2<100&&d(T.id)})}return(b,w)=>{var T;const S=bs,P=Qat,A=qat,L=uo("tooltip");return st(),kt("div",Jdt,[tt("div",null,[tt("div",tpt,[(st(!0),kt(ne,null,Rn((T=U(f))==null?void 0:T.nodeTypes.sort(),M=>{var R;return st(),kt("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[tt("input",{id:`type-${M}`,type:"checkbox",checked:(R=U(f))==null?void 0:R.nodeTypeFilter.includes(M),onChange:E=>h(M,E.target.checked)},null,40,ept),tt("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${M}`,"border-b-2":"",style:An({"border-color":`var(--color-node-${M})`})},Ut(M)+" Modules",13,npt)])}),128)),rpt,tt("div",null,[nn(Ft(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),tt("div",{ref_key:"el",ref:o},null,512),Ft(A,{modelValue:U(s),"onUpdate:modelValue":w[1]||(w[1]=M=>Le(s)?s.value=M:null),direction:"right"},{default:ee(()=>[U(u)?(st(),te(Q1,{key:0},{default:ee(()=>[Ft(P,{id:U(u),onClose:w[0]||(w[0]=M=>s.value=!1)},null,8,["id"])]),_:1})):Vt("",!0)]),_:1},8,["modelValue"])])}}}),opt={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},spt={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},lpt={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},apt={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},cpt={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},upt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},ad=ie({__name:"StatusIcon",props:{task:{}},setup(t){return(e,r)=>{var s,u,f;const o=uo("tooltip");return((s=e.task.result)==null?void 0:s.state)==="pass"?(st(),kt("div",opt)):U(Wc)(e.task)?nn((st(),kt("div",spt,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=e.task.result)==null?void 0:u.state)==="fail"?(st(),kt("div",lpt)):e.task.mode==="todo"?nn((st(),kt("div",apt,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((f=e.task.result)==null?void 0:f.state)==="skip"?nn((st(),kt("div",cpt,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(st(),kt("div",upt))}}});function fpt(t){const e=new Map,r=new Map,o=[];for(;;){let s=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){s++;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,s===t.length)break}return e}function hpt(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 dpt(t){const e=t.map(o=>hpt(o)),r=fpt(e);return e.map(({raw:o,id:s})=>Wb({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function ppt(t,e){return Wb({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 gpt(t,e){if(!t)return bm({});const r=dpt(t.externalized),o=t.inlined.map(h=>ppt(h,h===e))??[],s=[...r,...o],u=Object.fromEntries(s.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 Qdt({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return bm({nodes:s,links:f})}const vpt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},mpt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},ypt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},bpt={class:"flex text-lg"},wpt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},xpt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},_pt=["flex-1"],Spt=ie({__name:"FileDetails",setup(t){const e=Zt({externalized:[],graph:{},inlined:[]}),r=Zt({nodes:[],links:[]}),o=Zt(!1),s=Zt(!1);ylt(Se,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(e.value=await je.rpc.getModuleGraph(g.filepath),r.value=gpt(e.value,g.filepath))},{debounce:100,immediate:!0});function u(){var v;const g=(v=Se.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)}function f(g){g==="graph"&&(s.value=!0),er.value=g}const h=xt(()=>{var g;return((g=Qy.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function d(g){o.value=g}return(g,v)=>{var M,R;const b=ad,w=bs,S=ipt,P=Fat,A=Nat,L=bat,T=uo("tooltip");return U(Se)?(st(),kt("div",vpt,[tt("div",null,[tt("div",mpt,[Ft(b,{task:U(Se)},null,8,["task"]),tt("div",ypt,Ut((M=U(Se))==null?void 0:M.filepath),1),tt("div",bpt,[U(jr)?Vt("",!0):nn((st(),te(w,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=U(Se))!=null&&R.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),tt("div",wpt,[tt("button",{"tab-button":"",class:ve({"tab-button-active":U(er)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=E=>f(null))}," Report ",2),tt("button",{"tab-button":"","data-testid":"btn-graph",class:ve({"tab-button-active":U(er)==="graph"}),onClick:v[1]||(v[1]=E=>f("graph"))}," Module Graph ",2),U(jr)?Vt("",!0):(st(),kt("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ve({"tab-button-active":U(er)==="editor"}),onClick:v[2]||(v[2]=E=>f("editor"))},Ut(U(o)?"* ":"")+"Code ",3)),tt("button",{"tab-button":"","data-testid":"btn-console",class:ve({"tab-button-active":U(er)==="console",op20:U(er)!=="console"&&U(h)===0}),onClick:v[3]||(v[3]=E=>f("console"))}," Console ("+Ut(U(h))+") ",3)])]),tt("div",xpt,[U(s)?(st(),kt("div",{key:0,"flex-1":U(er)==="graph"&&""},[nn(Ft(S,{graph:U(r),"data-testid":"graph"},null,8,["graph"]),[[Nf,U(er)==="graph"]])],8,_pt)):Vt("",!0),U(er)==="editor"?(st(),te(P,{key:U(Se).filepath,file:U(Se),"data-testid":"editor",onDraft:d},null,8,["file"])):U(er)==="console"?(st(),te(A,{key:2,file:U(Se),"data-testid":"console"},null,8,["file"])):U(er)?Vt("",!0):(st(),te(L,{key:3,file:U(Se),"data-testid":"report"},null,8,["file"]))])])):Vt("",!0)}}}),kpt=["open"],Cpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Tpt=tt("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Ept=ie({__name:"DetailsPanel",props:{color:{}},setup(t){const e=Zt(!0);return(r,o)=>(st(),kt("div",{open:U(e),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>e.value=s.target.open)},[tt("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ve(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[Cpt,sr(r.$slots,"summary",{open:U(e)}),Tpt],2),sr(r.$slots,"default")],40,kpt))}}),Lpt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Apt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},Mpt=["text"],Npt={"text-sm":"",truncate:"","font-light":""},Ppt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Opt=ie({__name:"TaskItem",props:{task:{}},setup(t){const e=t,r=xt(()=>{const{result:o}=e.task;return o&&Math.round(o.duration||0)});return(o,s)=>{var f,h;const u=ad;return o.task?(st(),kt("div",Lpt,[Ft(u,{task:o.task,"mr-2":""},null,8,["task"]),o.task.type==="suite"&&o.task.meta.typecheck?(st(),kt("div",Apt)):Vt("",!0),tt("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=o.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[tt("span",Npt,Ut(o.task.name),1),typeof U(r)=="number"?(st(),kt("span",Ppt,Ut(U(r)>0?U(r):"< 1")+"ms ",1)):Vt("",!0)],8,Mpt)])):Vt("",!0)}}});function Dpt(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 $pt={key:1},Rpt=ie({inheritAttrs:!1,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{type:Function}},setup(t){return(e,r)=>{const o=Opt,s=io("TaskTree",!0);return st(),kt(ne,null,[!e.nested||!e.search||U(Ub)(e.task.name,e.search)?(st(),te(o,Ci({key:0},e.$attrs,{task:e.task,style:{paddingLeft:`${e.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>e.onItemClick&&e.onItemClick(e.task))}),null,16,["task","style"])):Vt("",!0),e.nested&&e.task.type==="suite"&&e.task.tasks.length?(st(),kt("div",$pt,[(st(!0),kt(ne,null,Rn(e.task.tasks,u=>(st(),te(s,{key:u.id,task:u,nested:e.nested,indent:e.indent+1,search:e.search,"on-item-click":e.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):Vt("",!0)],64)}}}),zpt={h:"full",flex:"~ col"},Ipt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Fpt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},qpt=tt("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Hpt=["op"],Bpt={class:"scrolls","flex-auto":"","py-1":""},Wpt={"text-red5":""},Upt={"text-yellow5":""},jpt={"text-green5":""},Vpt={class:"text-purple5:50"},Gpt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Kpt=tt("div",{op30:""}," No matched test ",-1),jb=ie({inheritAttrs:!1,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{type:Function}},emits:["run"],setup(t,{emit:e}){const r=e,o=Zt(""),s=Zt(),u=xt(()=>o.value.trim()!==""),f=xt(()=>o.value.trim()?t.tasks.filter(L=>A([L],o.value)):t.tasks),h=xt(()=>u.value?f.value.map(L=>hc(L.id)).filter(Boolean):[]),d=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="fail"})),g=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="pass"})),v=xt(()=>f.value.filter(L=>L.mode==="skip"||L.mode==="todo")),b=xt(()=>f.value.filter(L=>!d.value.includes(L)&&!g.value.includes(L)&&!v.value.includes(L))),w=xt(()=>o.value===""),S=vlt(b,250);function P(L){var T;o.value="",L&&((T=s.value)==null||T.focus())}function A(L,T){let M=!1;for(let R=0;R<L.length;R++){const E=L[R];if(Ub(E.name,T)){M=!0;break}if(Dpt(E)&&E.tasks&&(M=A(E.tasks,T),M))break}return M}return(L,T)=>{const M=bs,R=Rpt,E=Ept,B=uo("tooltip");return st(),kt("div",zpt,[tt("div",null,[tt("div",Ipt,[sr(L.$slots,"header",{filteredTests:U(u)?U(h):void 0})]),tt("div",Fpt,[qpt,nn(tt("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":T[0]||(T[0]=K=>Le(o)?o.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(o).length?"100":"50",onKeydown:[T[1]||(T[1]=Of(K=>P(!1),["esc"])),T[2]||(T[2]=Of(K=>r("run",U(u)?U(h):void 0),["enter"]))]},null,40,Hpt),[[wS,U(o)]]),nn(Ft(M,{disabled:U(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=K=>P(!0))},null,8,["disabled"]),[[B,"Clear search",void 0,{bottom:!0}]])])]),tt("div",Bpt,[L.groupByType?(st(),kt(ne,{key:0},[U(d).length?(st(),te(E,{key:0},{summary:ee(()=>[tt("div",Wpt," FAIL ("+Ut(U(d).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(d),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0),U(b).length||U(kl)==="running"?(st(),te(E,{key:1},{summary:ee(()=>[tt("div",Upt," RUNNING ("+Ut(U(S).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(S),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0),U(g).length?(st(),te(E,{key:2},{summary:ee(()=>[tt("div",jpt," PASS ("+Ut(U(g).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(g),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0),U(v).length?(st(),te(E,{key:3},{summary:ee(()=>[tt("div",Vpt," SKIP ("+Ut(U(v).length)+") ",1)]),default:ee(()=>[(st(!0),kt(ne,null,Rn(U(v),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):Vt("",!0)],64)):(st(!0),kt(ne,{key:1},Rn(U(f),K=>(st(),te(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(yr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),U(u)&&U(f).length===0?(st(),kt("div",Gpt,[Kpt,tt("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=K=>P(!0))}," Clear ",32)])):Vt("",!0)])])}}}),Ml=Zt(),ns=Zt(!0),ao=Zt(!1),xc=Zt(!0),jo=xt(()=>{var t;return(t=Xh.value)==null?void 0:t.coverage}),sh=xt(()=>{var t;return(t=jo.value)==null?void 0:t.enabled}),Vo=xt(()=>sh.value&&jo.value.reporter.map(([t])=>t).includes("html")),Xpt=xt(()=>{if(Vo.value){const t=jo.value.reportsDirectory.lastIndexOf("/"),e=jo.value.reporter.find(r=>{if(r[0]==="html")return r});return e&&"subdir"in e[1]?`/${jo.value.reportsDirectory.slice(t+1)}/${e[1].subdir}/index.html`:`/${jo.value.reportsDirectory.slice(t+1)}/index.html`}});Re(kl,t=>{xc.value=t==="running"},{immediate:!0});function Ypt(){const t=yr.value;if(t&&t.length>0){const e=hc(t);e?(Ml.value=e,ns.value=!1,ao.value=!1):blt(()=>je.state.getFiles(),()=>{Ml.value=hc(t),ns.value=!1,ao.value=!1})}return ns}function pf(t){ns.value=t,ao.value=!1,t&&(Ml.value=void 0,yr.value="")}function Zpt(){ao.value=!0,ns.value=!1,Ml.value=void 0,yr.value=""}const Qpt={key:0,"h-full":""},Jpt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-1":""},tgt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},egt={class:"flex text-lg"},ngt=ie({__name:"Suites",setup(t){const e=xt(()=>{var u;return(u=Se.value)==null?void 0:u.name.split(/\//g).pop()}),r=xt(()=>{var u,f;return((u=Se.value)==null?void 0:u.tasks)&&Wc((f=Se.value)==null?void 0:f.tasks)});function o(){return Se.value&&je.rpc.updateSnapshot(Se.value)}async function s(){Vo.value&&(xc.value=!0,await Br()),await iat()}return(u,f)=>{const h=ad,d=bs,g=jb,v=uo("tooltip");return U(Se)?(st(),kt("div",Qpt,[Ft(g,{tasks:U(Se).tasks,nested:!0},{header:ee(()=>[Ft(h,{"mx-1":"",task:U(Se)},null,8,["task"]),U(Se).type==="suite"&&U(Se).meta.typecheck?(st(),kt("div",Jpt)):Vt("",!0),tt("span",tgt,Ut(U(e)),1),tt("div",egt,[U(r)&&!U(jr)?nn((st(),te(d,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=b=>o())},null,512)),[[v,`Update failed snapshot(s) of ${U(Se).name}`,void 0,{bottom:!0}]]):Vt("",!0),U(jr)?Vt("",!0):nn((st(),te(d,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=b=>s())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):Vt("",!0)}}}),rgt={h:"full",flex:"~ col"},igt=tt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[tt("div",{class:"i-carbon:folder-details-reference"}),tt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),ogt={"flex-auto":"","py-1":"","bg-white":""},sgt=["src"],lgt=ie({__name:"Coverage",props:{src:{}},setup(t){return(e,r)=>(st(),kt("div",rgt,[igt,tt("div",ogt,[tt("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,sgt)])]))}}),agt={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},cgt={"font-bold":""},ugt={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},fgt=["font-bold"],hgt={text:"red500/70"},dgt=tt("br",null,null,-1),pgt={key:1,text:"sm","mb-2":""},ggt={"font-bold":""},vgt={key:2,text:"sm","mb-2":""},mgt={"font-bold":""},ygt=tt("br",null,null,-1),bgt=tt("ul",null,[tt("li",null," The error was thrown, while Vitest was running this test. "),tt("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),wgt={key:3,text:"sm","font-thin":""},xgt=tt("br",null,null,-1),_gt=tt("ul",null,[tt("li",null," Cancel timeouts using clearTimeout and clearInterval. "),tt("li",null," Wait for promises to resolve using the await keyword. ")],-1),Sgt=ie({__name:"ErrorEntry",props:{error:{}},setup(t){return(e,r)=>{var o;return st(),kt(ne,null,[tt("h4",agt,[tt("span",cgt,[me(Ut(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(st(),kt(ne,{key:0},[me(":")],64)):Vt("",!0)]),me(" "+Ut(e.error.message),1)]),(o=e.error.stacks)!=null&&o.length?(st(),kt("p",ugt,[(st(!0),kt(ne,null,Rn(e.error.stacks,(s,u)=>(st(),kt("span",{"whitespace-pre":"","font-bold":u===0?"":null},[me(" "+Ut(s.method)+" "+Ut(s.file)+":",1),tt("span",hgt,Ut(s.line)+":"+Ut(s.column),1),dgt],8,fgt))),256))])):Vt("",!0),e.error.VITEST_TEST_PATH?(st(),kt("p",pgt,[me(" This error originated in "),tt("span",ggt,Ut(e.error.VITEST_TEST_PATH),1),me(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Vt("",!0),e.error.VITEST_TEST_NAME?(st(),kt("p",vgt,[me(" The latest test that might've caused the error is "),tt("span",mgt,Ut(e.error.VITEST_TEST_NAME),1),me(". It might mean one of the following:"),ygt,bgt])):Vt("",!0),e.error.VITEST_AFTER_ENV_TEARDOWN?(st(),kt("p",wgt,[me(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),xgt,_gt])):Vt("",!0)],64)}}}),bn=t=>(Xm("data-v-09d153f7"),t=t(),Ym(),t),kgt={"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:""},Cgt=bn(()=>tt("div",{"i-carbon-document":""},null,-1)),Tgt=bn(()=>tt("div",null,"Files",-1)),Egt={class:"number","data-testid":"num-files"},Lgt=bn(()=>tt("div",{"i-carbon-checkmark":""},null,-1)),Agt=bn(()=>tt("div",null,"Pass",-1)),Mgt={class:"number"},Ngt=bn(()=>tt("div",{"i-carbon-close":""},null,-1)),Pgt=bn(()=>tt("div",null," Fail ",-1)),Ogt={class:"number","text-red5":""},Dgt=bn(()=>tt("div",{"i-carbon-compare":""},null,-1)),$gt=bn(()=>tt("div",null," Snapshot Fail ",-1)),Rgt={class:"number","text-red5":""},zgt=bn(()=>tt("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Igt=bn(()=>tt("div",null," Errors ",-1)),Fgt={class:"number","text-red5":""},qgt=bn(()=>tt("div",{"i-carbon-timer":""},null,-1)),Hgt=bn(()=>tt("div",null,"Time",-1)),Bgt={class:"number","data-testid":"run-time"},Wgt={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Ugt=bn(()=>tt("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),jgt={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Vgt=bn(()=>tt("br",null,null,-1)),Ggt={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Kgt=bn(()=>tt("summary",{"font-bold":"","cursor-pointer":""},"Errors",-1)),Xgt=ie({__name:"TestFilesEntry",setup(t){return(e,r)=>{const o=Sgt;return st(),kt(ne,null,[tt("div",kgt,[Cgt,Tgt,tt("div",Egt,Ut(U(mn).length),1),U(pc).length?(st(),kt(ne,{key:0},[Lgt,Agt,tt("div",Mgt,Ut(U(pc).length),1)],64)):Vt("",!0),U(dc).length?(st(),kt(ne,{key:1},[Ngt,Pgt,tt("div",Ogt,Ut(U(dc).length),1)],64)):Vt("",!0),U(Kv).length?(st(),kt(ne,{key:2},[Dgt,$gt,tt("div",Rgt,Ut(U(Kv).length),1)],64)):Vt("",!0),U(yi).length?(st(),kt(ne,{key:3},[zgt,Igt,tt("div",Fgt,Ut(U(yi).length),1)],64)):Vt("",!0),qgt,Hgt,tt("div",Bgt,Ut(U(Tat)),1)]),U(yi).length?(st(),kt("div",Wgt,[Ugt,tt("p",jgt,[me(" Vitest caught "+Ut(U(yi).length)+" error"+Ut(U(yi).length>1?"s":"")+" during the test run.",1),Vgt,me(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),tt("details",Ggt,[Kgt,(st(!0),kt(ne,null,Rn(U(yi),s=>(st(),te(o,{error:s},null,8,["error"]))),256))])])):Vt("",!0)],64)}}}),Ygt=fo(Xgt,[["__scopeId","data-v-09d153f7"]]),Zgt={"p-2":"","text-center":"",flex:""},Qgt={"text-4xl":"","min-w-2em":""},Jgt={"text-md":""},tvt=ie({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(e,r)=>(st(),kt("div",Zgt,[tt("div",null,[tt("div",Qgt,[sr(e.$slots,"body")]),tt("div",Jgt,[sr(e.$slots,"header")])])]))}}),evt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},nvt=ie({__name:"TestsEntry",setup(t){const e=xt(()=>Vc.value.length),r=xt(()=>eb.value.length),o=xt(()=>tb.value.length),s=xt(()=>kat.value.length),u=xt(()=>Cat.value.length);return(f,h)=>{const d=tvt;return st(),kt("div",evt,[Ft(d,{"text-green5":"","data-testid":"pass-entry"},{header:ee(()=>[me(" Pass ")]),body:ee(()=>[me(Ut(U(r)),1)]),_:1}),Ft(d,{class:ve({"text-red5":U(o),op50:!U(o)}),"data-testid":"fail-entry"},{header:ee(()=>[me(" Fail ")]),body:ee(()=>[me(Ut(U(o)),1)]),_:1},8,["class"]),U(s)?(st(),te(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:ee(()=>[me(" Skip ")]),body:ee(()=>[me(Ut(U(s)),1)]),_:1})):Vt("",!0),U(u)?(st(),te(d,{key:1,op50:"","data-testid":"todo-entry"},{header:ee(()=>[me(" Todo ")]),body:ee(()=>[me(Ut(U(u)),1)]),_:1})):Vt("",!0),Ft(d,{tail:!0,"data-testid":"total-entry"},{header:ee(()=>[me(" Total ")]),body:ee(()=>[me(Ut(U(e)),1)]),_:1})])}}}),rvt={},ivt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},ovt={"aria-labelledby":"tests",m:"y-4 x-2"};function svt(t,e){const r=nvt,o=Ygt;return st(),kt("div",ivt,[tt("section",ovt,[Ft(r)]),Ft(o)])}const lvt=fo(rvt,[["render",svt]]),avt={},cvt={h:"full",flex:"~ col"},uvt=tt("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[tt("div",{class:"i-carbon-dashboard"}),tt("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),fvt={class:"scrolls","flex-auto":"","py-1":""};function hvt(t,e){const r=lvt;return st(),kt("div",cvt,[uvt,tt("div",fvt,[Ft(r)])])}const dvt=fo(avt,[["render",hvt]]),pvt=""+new URL("../favicon.svg",import.meta.url).href,gvt=tt("img",{"w-6":"","h-6":"",src:pvt,alt:"Vitest logo"},null,-1),vvt=tt("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),mvt={class:"flex text-lg"},yvt=tt("div",{class:"i-carbon:folder-off ma"},null,-1),bvt=tt("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[tt("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),tt("div",null,"Coverage enabled but missing html reporter."),tt("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),wvt=ie({__name:"Navigation",setup(t){const e=xt(()=>mn.value&&Wc(mn.value));function r(){return je.rpc.updateSnapshot()}const o=xt(()=>zl.value?"light":"dark");function s(f){yr.value=f.id,Ml.value=hc(f.id),pf(!1)}async function u(f){Vo.value&&(xc.value=!0,await Br(),ao.value&&(pf(!0),await Br())),await rat(f)}return(f,h)=>{const d=bs,g=jb,v=uo("tooltip");return st(),te(g,{border:"r base",tasks:U(mn),"on-item-click":s,"group-by-type":!0,onRun:u},{header:ee(({filteredTests:b})=>[gvt,vvt,tt("div",mvt,[nn(Ft(d,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=w=>U(pf)(!0))},null,512),[[Nf,U(sh)&&!U(Vo)||!U(ns)],[v,"Dashboard",void 0,{bottom:!0}]]),U(sh)&&!U(Vo)?(st(),te(U(BC),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:ee(()=>[bvt]),default:ee(()=>[yvt]),_:1})):Vt("",!0),U(Vo)?nn((st(),te(d,{key:1,disabled:U(xc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=w=>U(Zpt)())},null,8,["disabled"])),[[Nf,!U(ao)],[v,"Coverage",void 0,{bottom:!0}]]):Vt("",!0),U(e)&&!U(jr)?nn((st(),te(d,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=w=>r())},null,512)),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Vt("",!0),U(jr)?Vt("",!0):nn((st(),te(d,{key:3,disabled:(b==null?void 0:b.length)===0,icon:"i-carbon:play",onClick:w=>u(b)},null,8,["disabled","onClick"])),[[v,b?b.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),nn(Ft(d,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=w=>U(aat)())},null,512),[[v,`Toggle to ${U(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),xvt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},_vt=ie({__name:"ProgressBar",setup(t){const{width:e}=Dlt(),r=xt(()=>mn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Sat.value?null:"in-progress"),o=xt(()=>mn.value.length),s=xt(()=>pc.value.length),u=xt(()=>dc.value.length),f=xt(()=>{const v=U(o);return v>0?e.value*s.value/v:0}),h=xt(()=>{const v=U(o);return v>0?e.value*u.value/v:0}),d=xt(()=>U(o)-u.value-s.value),g=xt(()=>{const v=U(o);return v>0?e.value*d.value/v:0});return(v,b)=>(st(),kt("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(U(r))},[tt("div",xvt,[tt("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(U(r)),style:An(`width: ${U(h)}px;`)},"   ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(U(r)),style:An(`left: ${U(h)}px; width: ${U(f)}px;`)},"   ",6),tt("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(U(r)),style:An(`left: ${U(f)+U(h)}px; width: ${U(g)}px;`)},"   ",6)])],2))}}),Svt=fo(_vt,[["__scopeId","data-v-f967c1fe"]]),wm={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,s)=>(o.size=s===e?o.max:o.min,s!==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),s=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),s),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((s,u)=>{u>o[0]&&u<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.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((s,u)=>{u>0&&u<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.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((s,u)=>{u>r&&u<o[1]&&(s.size=s.min,t.nextReachedMinPanes+=s.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((s,u)=>{u<this.panesCount-1&&u>=r+1&&(s.size=s.min,t.nextReachedMinPanes+=s.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,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=u=>this.onMouseDown(u,o)),s.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(s.ondblclick=u=>this.onSplitterDblClick(u,o+1)),e.parentNode.insertBefore(s,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,s])=>r[o]=s)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&e++,s===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((s,u)=>s.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,s)=>o.index=s),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(s=>{s.size=Math.max(Math.min(t,s.max),s.min),e-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.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 s=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),s-=u.size}),s>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const s=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.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&&s.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,s,u))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((s,u)=>{if(t>0&&!e.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.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 Ol("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},kvt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},Cvt={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 Tvt(t,e,r,o,s,u){return st(),kt("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>u.onPaneClick(f,t._.uid)),style:An(t.style)},[sr(t.$slots,"default")],4)}const za=kvt(Cvt,[["render",Tvt]]),Evt={"h-screen":"","w-screen":"",overflow:"hidden"},Lvt=ie({__name:"index",setup(t){const e=Ypt(),r=Un([33,67]),o=Un([33,67]),s=Vv(h=>{h.forEach((d,g)=>{r[g]=d.size})},0),u=Vv(h=>{h.forEach((d,g)=>{o[g]=d.size})},0);function f(){const h=window.innerWidth,d=Math.min(h/3,300);r[0]=100*d/h,r[1]=100-r[0],o[0]=100*d/(h-d),o[1]=100-o[0]}return(h,d)=>{const g=Svt,v=wvt,b=dvt,w=lgt,S=ngt,P=Spt,A=lat;return st(),kt(ne,null,[Ft(g),tt("div",Evt,[Ft(U(wm),{class:"pt-4px",onResized:U(s),onReady:f},{default:ee(()=>[Ft(U(za),{size:U(r)[0]},{default:ee(()=>[Ft(v)]),_:1},8,["size"]),Ft(U(za),{size:U(r)[1]},{default:ee(()=>[Ft(Ph,null,{default:ee(()=>[U(e)?(st(),te(b,{key:"summary"})):U(ao)?(st(),te(w,{key:"coverage",src:U(Xpt)},null,8,["src"])):(st(),te(U(wm),{key:"detail",onResized:U(u)},{default:ee(()=>[Ft(U(za),{size:U(o)[0]},{default:ee(()=>[Ft(S)]),_:1},8,["size"]),Ft(U(za),{size:U(o)[1]},{default:ee(()=>[Ft(P)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Ft(A)],64)}}}),Avt=[{name:"index",path:"/",component:Lvt,props:!0}],Mvt={tooltip:HC};ny.options.instantMove=!0;ny.options.distance=10;function Nvt(){return Mk({history:VS(),routes:Avt})}const Pvt=[Nvt],cd=_0(ES);Pvt.forEach(t=>{cd.use(t())});Object.entries(Mvt).forEach(([t,e])=>{cd.directive(t,e)});cd.mount("#app");